diff --git a/15.213ac7cc.async.js b/15.213ac7cc.async.js new file mode 100644 index 0000000..855819a --- /dev/null +++ b/15.213ac7cc.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[15],{6015:function(k,a,s){s.r(a),s.d(a,{conf:function(){return b},language:function(){return y}});var g=s(23978);var l=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,c=(r,t,i,p)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of u(t))!m.call(r,o)&&o!==i&&l(r,o,{get:()=>t[o],enumerable:!(p=d(t,o))||p.enumerable});return r},f=(r,t,i)=>(c(r,t,"default"),i&&c(i,t,"default")),n={};f(n,g);var x={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:n.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:n.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:n.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:n.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},e={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};var b=x,y={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer}}}]); diff --git a/272.674197f2.chunk.css b/236.674197f2.chunk.css similarity index 100% rename from 272.674197f2.chunk.css rename to 236.674197f2.chunk.css diff --git a/272.94ac652e.async.js b/236.cc9b5cb9.async.js similarity index 66% rename from 272.94ac652e.async.js rename to 236.cc9b5cb9.async.js index fabb0a6..c4c3847 100644 --- a/272.94ac652e.async.js +++ b/236.cc9b5cb9.async.js @@ -1,5 +1,5 @@ -!(function(){var wpe=Object.defineProperty,Cpe=Object.defineProperties;var Spe=Object.getOwnPropertyDescriptors;var AV=Object.getOwnPropertySymbols;var Lre=Object.prototype.hasOwnProperty,Mre=Object.prototype.propertyIsEnumerable;var ty=Math.pow,PJ=(_t,Y,_)=>Y in _t?wpe(_t,Y,{enumerable:!0,configurable:!0,writable:!0,value:_}):_t[Y]=_,kf=(_t,Y)=>{for(var _ in Y||(Y={}))Lre.call(Y,_)&&PJ(_t,_,Y[_]);if(AV)for(var _ of AV(Y))Mre.call(Y,_)&&PJ(_t,_,Y[_]);return _t},Sv=(_t,Y)=>Cpe(_t,Spe(Y));var BE=(_t,Y)=>{var _={};for(var v in _t)Lre.call(_t,v)&&Y.indexOf(v)<0&&(_[v]=_t[v]);if(_t!=null&&AV)for(var v of AV(_t))Y.indexOf(v)<0&&Mre.call(_t,v)&&(_[v]=_t[v]);return _};var zE=(_t,Y,_)=>(PJ(_t,typeof Y!="symbol"?Y+"":Y,_),_);var Tg=(_t,Y,_)=>new Promise((v,R)=>{var w=V=>{try{B(_.next(V))}catch(k){R(k)}},b=V=>{try{B(_.throw(V))}catch(k){R(k)}},B=V=>V.done?v(V.value):Promise.resolve(V.value).then(w,b);B((_=_.apply(_t,Y)).next())});(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[272],{95906:function(_t){"use strict";(function(Y,_){_t.exports=_()})(this,function(){function Y(M){var C=[];return M.AMapUI&&C.push(_(M.AMapUI)),M.Loca&&C.push(v(M.Loca)),Promise.all(C)}function _(M){return new Promise(function(C,g){var A=[];if(M.plugins)for(var O=0;O=60&&Math.round(Ct.h)<=240?Rt=Gt?Math.round(Ct.h)-w*lt:Math.round(Ct.h)+w*lt:Rt=Gt?Math.round(Ct.h)+w*lt:Math.round(Ct.h)-w*lt,Rt<0?Rt+=360:Rt>=360&&(Rt-=360),Rt}function de(Ct,lt,Gt){if(Ct.h===0&&Ct.s===0)return Ct.s;var Rt;return Gt?Rt=Ct.s-b*lt:lt===C?Rt=Ct.s+b:Rt=Ct.s+B*lt,Rt>1&&(Rt=1),Gt&<===M&&Rt>.1&&(Rt=.1),Rt<.06&&(Rt=.06),Number(Rt.toFixed(2))}function ve(Ct,lt,Gt){var Rt;return Gt?Rt=Ct.v+V*lt:Rt=Ct.v-k*lt,Rt>1&&(Rt=1),Number(Rt.toFixed(2))}function Ee(Ct){for(var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Gt=[],Rt=(0,R.uA)(Ct),an=M;an>0;an-=1){var cn=A(Rt),Cr=O((0,R.uA)({h:ce(cn,an,!0),s:de(cn,an,!0),v:ve(cn,an,!0)}));Gt.push(Cr)}Gt.push(O(Rt));for(var ii=1;ii<=C;ii+=1){var Pi=A(Rt),Ni=O((0,R.uA)({h:ce(Pi,ii),s:de(Pi,ii),v:ve(Pi,ii)}));Gt.push(Ni)}return lt.theme==="dark"?g.map(function(Yi){var ti=Yi.index,Ts=Yi.opacity,Bs=O(K((0,R.uA)(lt.backgroundColor||"#141414"),(0,R.uA)(Gt[ti]),Ts*100));return Bs}):Gt}var _e={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},we={},ot={};Object.keys(_e).forEach(function(Ct){we[Ct]=Ee(_e[Ct]),we[Ct].primary=we[Ct][5],ot[Ct]=Ee(_e[Ct],{theme:"dark",backgroundColor:"#141414"}),ot[Ct].primary=ot[Ct][5]});var He=we.red,vt=we.volcano,dt=we.gold,Pe=we.orange,De=we.yellow,Ae=we.lime,Re=we.green,$e=we.cyan,Ie=we.blue,Xe=we.geekblue,ze=we.purple,Kt=we.magenta,St=we.grey,nt=we.grey},36646:function(_t,Y,_){"use strict";_.d(Y,{E4:function(){return vh},jG:function(){return nt},t2:function(){return $n},ks:function(){return fi},bf:function(){return qi},CI:function(){return nc},fp:function(){return Dr},xy:function(){return jl}});var v=_(35005),R=_(61860),w=_(40877),b=_(36439);function B(zs){for(var $a=0,Ja,pl=0,au=zs.length;au>=4;++pl,au-=4)Ja=zs.charCodeAt(pl)&255|(zs.charCodeAt(++pl)&255)<<8|(zs.charCodeAt(++pl)&255)<<16|(zs.charCodeAt(++pl)&255)<<24,Ja=(Ja&65535)*1540483477+((Ja>>>16)*59797<<16),Ja^=Ja>>>24,$a=(Ja&65535)*1540483477+((Ja>>>16)*59797<<16)^($a&65535)*1540483477+(($a>>>16)*59797<<16);switch(au){case 3:$a^=(zs.charCodeAt(pl+2)&255)<<16;case 2:$a^=(zs.charCodeAt(pl+1)&255)<<8;case 1:$a^=zs.charCodeAt(pl)&255,$a=($a&65535)*1540483477+(($a>>>16)*59797<<16)}return $a^=$a>>>13,$a=($a&65535)*1540483477+(($a>>>16)*59797<<16),(($a^$a>>>15)>>>0).toString(36)}var V=B,k=_(75966),M=_(77617),C=_.t(M,2),g=_(4065),A=_(70780),O=_(67873),K=_(22695),ce="%",de=function(){function zs($a){(0,O.Z)(this,zs),(0,v.Z)(this,"instanceId",void 0),(0,v.Z)(this,"cache",new Map),this.instanceId=$a}return(0,K.Z)(zs,[{key:"get",value:function(Ja){return this.cache.get(Ja.join(ce))||null}},{key:"update",value:function(Ja,pl){var au=Ja.join(ce),ac=this.cache.get(au),$u=pl(ac);$u===null?this.cache.delete(au):this.cache.set(au,$u)}}]),zs}(),ve=de,Ee=null,_e="data-token-hash",we="data-css-hash",ot="data-cache-path",He="__cssinjs_instance__";function vt(){var zs=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var $a=document.body.querySelectorAll("style[".concat(we,"]"))||[],Ja=document.head.firstChild;Array.from($a).forEach(function(au){au[He]=au[He]||zs,au[He]===zs&&document.head.insertBefore(au,Ja)});var pl={};Array.from(document.querySelectorAll("style[".concat(we,"]"))).forEach(function(au){var ac=au.getAttribute(we);if(pl[ac]){if(au[He]===zs){var $u;($u=au.parentNode)===null||$u===void 0||$u.removeChild(au)}}else pl[ac]=!0})}return new ve(zs)}var dt=M.createContext({hashPriority:"low",cache:vt(),defaultCache:!0}),Pe=function($a){var Ja=$a.children,pl=_objectWithoutProperties($a,Ee),au=React.useContext(dt),ac=useMemo(function(){var $u=_objectSpread({},au);Object.keys(pl).forEach(function(Hu){var Fl=pl[Hu];pl[Hu]!==void 0&&($u[Hu]=Fl)});var cc=pl.cache;return $u.cache=$u.cache||vt(),$u.defaultCache=!cc&&au.defaultCache,$u},[au,pl],function($u,cc){return!isEqual($u[0],cc[0],!0)||!isEqual($u[1],cc[1],!0)});return React.createElement(dt.Provider,{value:ac},Ja)},De=dt,Ae=_(96522),Re=_(42871);function $e(zs,$a){if(zs.length!==$a.length)return!1;for(var Ja=0;Ja1&&arguments[1]!==void 0?arguments[1]:!1,$u={map:this.cache};return Ja.forEach(function(cc){if(!$u)$u=void 0;else{var Hu;$u=(Hu=$u)===null||Hu===void 0||(Hu=Hu.map)===null||Hu===void 0?void 0:Hu.get(cc)}}),(pl=$u)!==null&&pl!==void 0&&pl.value&&ac&&($u.value[1]=this.cacheCallTimes++),(au=$u)===null||au===void 0?void 0:au.value}},{key:"get",value:function(Ja){var pl;return(pl=this.internalGet(Ja,!0))===null||pl===void 0?void 0:pl[0]}},{key:"has",value:function(Ja){return!!this.internalGet(Ja)}},{key:"set",value:function(Ja,pl){var au=this;if(!this.has(Ja)){if(this.size()+1>zs.MAX_CACHE_SIZE+zs.MAX_CACHE_OFFSET){var ac=this.keys.reduce(function(Fl,Ou){var Qc=(0,R.Z)(Fl,2),fd=Qc[1];return au.internalGet(Ou)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),ze+=1}return(0,K.Z)(zs,[{key:"getDerivativeToken",value:function(Ja){return this.derivatives.reduce(function(pl,au){return au(Ja,pl)},void 0)}}]),zs}(),St=new Ie;function nt(zs){var $a=Array.isArray(zs)?zs:[zs];return St.has($a)||St.set($a,new Kt($a)),St.get($a)}var Ct=new WeakMap,lt={};function Gt(zs,$a){for(var Ja=Ct,pl=0;pl<$a.length;pl+=1){var au=$a[pl];Ja.has(au)||Ja.set(au,new WeakMap),Ja=Ja.get(au)}return Ja.has(lt)||Ja.set(lt,zs()),Ja.get(lt)}var Rt=new WeakMap;function an(zs){var $a=Rt.get(zs)||"";return $a||(Object.keys(zs).forEach(function(Ja){var pl=zs[Ja];$a+=Ja,pl instanceof Kt?$a+=pl.id:pl&&(0,Ae.Z)(pl)==="object"?$a+=an(pl):$a+=pl}),Rt.set(zs,$a)),$a}function cn(zs,$a){return V("".concat($a,"_").concat(an(zs)))}var Cr="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),ii="_bAmBoO_";function Pi(zs,$a,Ja){if((0,Re.Z)()){var pl,au;(0,k.hq)(zs,Cr);var ac=document.createElement("div");ac.style.position="fixed",ac.style.left="0",ac.style.top="0",$a==null||$a(ac),document.body.appendChild(ac);var $u=Ja?Ja(ac):(pl=getComputedStyle(ac).content)===null||pl===void 0?void 0:pl.includes(ii);return(au=ac.parentNode)===null||au===void 0||au.removeChild(ac),(0,k.jL)(Cr),$u}return!1}var Ni=void 0;function Yi(){return Ni===void 0&&(Ni=Pi("@layer ".concat(Cr," { .").concat(Cr,' { content: "').concat(ii,'"!important; } }'),function(zs){zs.className=Cr})),Ni}var ti=void 0;function Ts(){return ti===void 0&&(ti=Pi(":where(.".concat(Cr,') { content: "').concat(ii,'"!important; }'),function(zs){zs.className=Cr})),ti}var Bs=void 0;function Ce(){return Bs===void 0&&(Bs=Pi(".".concat(Cr," { inset-block: 93px !important; }"),function(zs){zs.className=Cr},function(zs){return getComputedStyle(zs).bottom==="93px"})),Bs}var Gi=(0,Re.Z)();function qi(zs){return typeof zs=="number"?"".concat(zs,"px"):zs}function co(zs,$a,Ja){var pl,au=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ac=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(ac)return zs;var $u=(0,b.Z)((0,b.Z)({},au),{},(pl={},(0,v.Z)(pl,_e,$a),(0,v.Z)(pl,we,Ja),pl)),cc=Object.keys($u).map(function(Hu){var Fl=$u[Hu];return Fl?"".concat(Hu,'="').concat(Fl,'"'):null}).filter(function(Hu){return Hu}).join(" ");return"")}var fi=function($a){var Ja=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(Ja?"".concat(Ja,"-"):"").concat($a).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Ms=function($a,Ja,pl){return Object.keys($a).length?".".concat(Ja).concat(pl!=null&&pl.scope?".".concat(pl.scope):"","{").concat(Object.entries($a).map(function(au){var ac=(0,R.Z)(au,2),$u=ac[0],cc=ac[1];return"".concat($u,":").concat(cc,";")}).join(""),"}"):""},In=function($a,Ja,pl){var au={},ac={};return Object.entries($a).forEach(function($u){var cc,Hu,Fl=(0,R.Z)($u,2),Ou=Fl[0],Qc=Fl[1];if(pl!=null&&(cc=pl.preserve)!==null&&cc!==void 0&&cc[Ou])ac[Ou]=Qc;else if((typeof Qc=="string"||typeof Qc=="number")&&!(pl!=null&&(Hu=pl.ignore)!==null&&Hu!==void 0&&Hu[Ou])){var fd,Qd=fi(Ou,pl==null?void 0:pl.prefix);au[Qd]=typeof Qc=="number"&&!(pl!=null&&(fd=pl.unitless)!==null&&fd!==void 0&&fd[Ou])?"".concat(Qc,"px"):String(Qc),ac[Ou]="var(".concat(Qd,")")}}),[ac,Ms(au,Ja,{scope:pl==null?void 0:pl.scope})]},et=_(70658),Dt=(0,b.Z)({},C),$t=Dt.useInsertionEffect,Dn=function($a,Ja,pl){M.useMemo($a,pl),(0,et.Z)(function(){return Ja(!0)},pl)},gr=$t?function(zs,$a,Ja){return $t(function(){return zs(),$a()},Ja)}:Dn,kn=gr,bn=(0,b.Z)({},C),zt=bn.useInsertionEffect,Jt=function($a){var Ja=[],pl=!1;function au(ac){pl||Ja.push(ac)}return M.useEffect(function(){return pl=!1,function(){pl=!0,Ja.length&&Ja.forEach(function(ac){return ac()})}},$a),au},yn=function(){return function($a){$a()}},fr=typeof zt!="undefined"?Jt:yn,vr=fr;function pn(){return!1}var wr=!1;function Sr(){return wr}var Ai=pn;if(!1)var mo,Fr;function to(zs,$a,Ja,pl,au){var ac=M.useContext(De),$u=ac.cache,cc=[zs].concat((0,w.Z)($a)),Hu=cc.join("_"),Fl=vr([Hu]),Ou=Ai(),Qc=function(Gd){$u.update(cc,function(Ch){var Ad=Ch||[void 0,void 0],bd=(0,R.Z)(Ad,2),su=bd[0],nh=su===void 0?0:su,tl=bd[1],mu=tl,md=mu||Ja(),Uh=[nh,md];return Gd?Gd(Uh):Uh})};M.useMemo(function(){Qc()},[Hu]);var fd=$u.get(cc),Qd=fd[1];return kn(function(){au==null||au(Qd)},function(Bh){return Qc(function(Gd){var Ch=(0,R.Z)(Gd,2),Ad=Ch[0],bd=Ch[1];return Bh&&Ad===0&&(au==null||au(Qd)),[Ad+1,bd]}),function(){$u.update(cc,function(Gd){var Ch=Gd||[],Ad=(0,R.Z)(Ch,2),bd=Ad[0],su=bd===void 0?0:bd,nh=Ad[1],tl=su-1;return tl===0?(Fl(function(){(Bh||!$u.get(cc))&&(pl==null||pl(nh,!1))}),null):[su-1,nh]})}},[Hu]),Qd}var Ji={},bo="css",xn=new Map;function fn(zs){xn.set(zs,(xn.get(zs)||0)+1)}function It(zs,$a){if(typeof document!="undefined"){var Ja=document.querySelectorAll("style[".concat(_e,'="').concat(zs,'"]'));Ja.forEach(function(pl){if(pl[He]===$a){var au;(au=pl.parentNode)===null||au===void 0||au.removeChild(pl)}})}}var Zt=0;function gn(zs,$a){xn.set(zs,(xn.get(zs)||0)-1);var Ja=Array.from(xn.keys()),pl=Ja.filter(function(au){var ac=xn.get(au)||0;return ac<=0});Ja.length-pl.length>Zt&&pl.forEach(function(au){It(au,$a),xn.delete(au)})}var $n=function($a,Ja,pl,au){var ac=pl.getDerivativeToken($a),$u=(0,b.Z)((0,b.Z)({},ac),Ja);return au&&($u=au($u)),$u},Ar="token";function Dr(zs,$a){var Ja=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pl=(0,M.useContext)(De),au=pl.cache.instanceId,ac=pl.container,$u=Ja.salt,cc=$u===void 0?"":$u,Hu=Ja.override,Fl=Hu===void 0?Ji:Hu,Ou=Ja.formatToken,Qc=Ja.getComputedToken,fd=Ja.cssVar,Qd=Gt(function(){return Object.assign.apply(Object,[{}].concat((0,w.Z)($a)))},$a),Bh=an(Qd),Gd=an(Fl),Ch=fd?an(fd):"",Ad=to(Ar,[cc,zs.id,Bh,Gd,Ch],function(){var bd,su=Qc?Qc(Qd,Fl,zs):$n(Qd,Fl,zs,Ou),nh=(0,b.Z)({},su),tl="";if(fd){var mu=In(su,fd.key,{prefix:fd.prefix,ignore:fd.ignore,unitless:fd.unitless,preserve:fd.preserve}),md=(0,R.Z)(mu,2);su=md[0],tl=md[1]}var Uh=cn(su,cc);su._tokenKey=Uh,nh._tokenKey=cn(nh,cc);var Qa=(bd=fd==null?void 0:fd.key)!==null&&bd!==void 0?bd:Uh;su._themeKey=Qa,fn(Qa);var _u="".concat(bo,"-").concat(V(Uh));return su._hashId=_u,[su,_u,nh,tl,(fd==null?void 0:fd.key)||""]},function(bd){gn(bd[0]._themeKey,au)},function(bd){var su=(0,R.Z)(bd,4),nh=su[0],tl=su[3];if(fd&&tl){var mu=(0,k.hq)(tl,V("css-variables-".concat(nh._themeKey)),{mark:we,prepend:"queue",attachTo:ac,priority:-999});mu[He]=au,mu.setAttribute(_e,nh._themeKey)}});return Ad}var dr=function($a,Ja,pl){var au=(0,R.Z)($a,5),ac=au[2],$u=au[3],cc=au[4],Hu=pl||{},Fl=Hu.plain;if(!$u)return null;var Ou=ac._tokenKey,Qc=-999,fd={"data-rc-order":"prependQueue","data-rc-priority":"".concat(Qc)},Qd=co($u,cc,Ou,fd,Fl);return[Qc,Ou,Qd]},Xt=_(61796),Cn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},er=Cn,Mr="-ms-",ji="-moz-",An="-webkit-",Xn="comm",nr="rule",qr="decl",vi="@page",Hr="@media",di="@import",gi="@charset",mi="@viewport",Bi="@supports",zr="@document",Xr="@namespace",Qi="@keyframes",rs="@font-face",Ur="@counter-style",gs="@font-feature-values",Kr="@layer",ri=Math.abs,is=String.fromCharCode,Jr=Object.assign;function _n(zs,$a){return Ba(zs,0)^45?((($a<<2^Ba(zs,0))<<2^Ba(zs,1))<<2^Ba(zs,2))<<2^Ba(zs,3):0}function Br(zs){return zs.trim()}function es(zs,$a){return(zs=$a.exec(zs))?zs[0]:zs}function ko(zs,$a,Ja){return zs.replace($a,Ja)}function vs(zs,$a){return zs.indexOf($a)}function Ba(zs,$a){return zs.charCodeAt($a)|0}function uo(zs,$a,Ja){return zs.slice($a,Ja)}function ca(zs){return zs.length}function ll(zs){return zs.length}function Ti(zs,$a){return $a.push(zs),zs}function Li(zs,$a){return zs.map($a).join("")}function eo(zs,$a){return zs.filter(function(Ja){return!es(Ja,$a)})}function Eo(zs,$a){for(var Ja="",pl=0;pl0?Ba(Yn,--os):0,yo--,Ko===10&&(yo=1,Wn--),Ko}function Ue(){return Ko=os2||sr(Ko)>3?"":" "}function Is(zs){for(;Ue();)switch(sr(Ko)){case 0:append(Ps(os-1),zs);break;case 2:append(To(Ko),zs);break;default:append(from(Ko),zs)}return zs}function Rs(zs,$a){for(;--$a&&Ue()&&!(Ko<48||Ko>102||Ko>57&&Ko<65||Ko>70&&Ko<97););return ln(zs,Pt()+($a<6&&ft()==32&&Ue()==32))}function Ns(zs){for(;Ue();)switch(Ko){case zs:return os;case 34:case 39:zs!==34&&zs!==39&&Ns(Ko);break;case 40:zs===41&&Ns(zs);break;case 92:Ue();break}return os}function Lo(zs,$a){for(;Ue()&&zs+Ko!==47+10;)if(zs+Ko===42+42&&ft()===47)break;return"/*"+ln($a,os-1)+"*"+is(zs===47?zs:Ue())}function Ps(zs){for(;!sr(ft());)Ue();return ln(zs,os)}function ua(zs){return Ui(Ka("",null,null,null,[""],zs=Zr(zs),0,[0],zs))}function Ka(zs,$a,Ja,pl,au,ac,$u,cc,Hu){for(var Fl=0,Ou=0,Qc=$u,fd=0,Qd=0,Bh=0,Gd=1,Ch=1,Ad=1,bd=0,su="",nh=au,tl=ac,mu=pl,md=su;Ch;)switch(Bh=bd,bd=Ue()){case 40:if(Bh!=108&&Ba(md,Qc-1)==58){vs(md+=ko(To(bd),"&","&\f"),"&\f")!=-1&&(Ad=-1);break}case 34:case 39:case 91:md+=To(bd);break;case 9:case 10:case 13:case 32:md+=Us(Bh);break;case 92:md+=Rs(Pt()-1,7);continue;case 47:switch(ft()){case 42:case 47:Ti(Gl(Lo(Ue(),Pt()),$a,Ja,Hu),Hu);break;default:md+="/"}break;case 123*Gd:cc[Fl++]=ca(md)*Ad;case 125*Gd:case 59:case 0:switch(bd){case 0:case 125:Ch=0;case 59+Ou:Ad==-1&&(md=ko(md,/\f/g,"")),Qd>0&&ca(md)-Qc&&Ti(Qd>32?fs(md+";",pl,Ja,Qc-1,Hu):fs(ko(md," ","")+";",pl,Ja,Qc-2,Hu),Hu);break;case 59:md+=";";default:if(Ti(mu=Hl(md,$a,Ja,Fl,Ou,au,cc,su,nh=[],tl=[],Qc,ac),ac),bd===123)if(Ou===0)Ka(md,$a,mu,mu,nh,ac,Qc,cc,tl);else switch(fd===99&&Ba(md,3)===110?100:fd){case 100:case 108:case 109:case 115:Ka(zs,mu,mu,pl&&Ti(Hl(zs,mu,mu,0,0,au,cc,su,au,nh=[],Qc,tl),tl),au,tl,Qc,cc,pl?nh:tl);break;default:Ka(md,mu,mu,mu,[""],tl,0,cc,tl)}}Fl=Ou=Qd=0,Gd=Ad=1,su=md="",Qc=$u;break;case 58:Qc=1+ca(md),Qd=Bh;default:if(Gd<1){if(bd==123)--Gd;else if(bd==125&&Gd++==0&&ht()==125)continue}switch(md+=is(bd),bd*Gd){case 38:Ad=Ou>0?1:(md+="\f",-1);break;case 44:cc[Fl++]=(ca(md)-1)*Ad,Ad=1;break;case 64:ft()===45&&(md+=To(Ue())),fd=ft(),Ou=Qc=ca(su=md+=Ps(Pt())),bd++;break;case 45:Bh===45&&ca(md)==2&&(Gd=0)}}return ac}function Hl(zs,$a,Ja,pl,au,ac,$u,cc,Hu,Fl,Ou,Qc){for(var fd=au-1,Qd=au===0?ac:[""],Bh=ll(Qd),Gd=0,Ch=0,Ad=0;Gd0?Qd[bd]+" "+su:ko(su,/&\f/g,Qd[bd])))&&(Hu[Ad++]=nh);return kr(zs,$a,Ja,au===0?nr:cc,Hu,Fl,Ou,Qc)}function Gl(zs,$a,Ja,pl){return kr(zs,$a,Ja,Xn,is(ut()),uo(zs,2,-2),0,pl)}function fs(zs,$a,Ja,pl,au){return kr(zs,$a,Ja,qr,uo(zs,0,pl),uo(zs,pl+1,-1),pl,au)}function Hs(zs,$a){var Ja=$a.path,pl=$a.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(Ja?"Error in ".concat(Ja,": "):"").concat(zs).concat(pl.length?" Selector: ".concat(pl.join(" | ")):""))}var dl=function($a,Ja,pl){if($a==="content"){var au=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,ac=["normal","none","initial","inherit","unset"];(typeof Ja!="string"||ac.indexOf(Ja)===-1&&!au.test(Ja)&&(Ja.charAt(0)!==Ja.charAt(Ja.length-1)||Ja.charAt(0)!=='"'&&Ja.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(Ja,"\"'`."),pl)}},Xo=null,Mi=function($a,Ja,pl){$a==="animation"&&pl.hashId&&Ja!=="none"&&lintWarning("You seem to be using hashed animation '".concat(Ja,"', in which case 'animationName' with Keyframe as value is recommended."),pl)},Yo=null;function Os(zs){var $a,Ja=(($a=zs.match(/:not\(([^)]*)\)/))===null||$a===void 0?void 0:$a[1])||"",pl=Ja.split(/(\[[^[]*])|(?=[.#])/).filter(function(au){return au});return pl.length>1}function Cs(zs){return zs.parentSelectors.reduce(function($a,Ja){return $a?Ja.includes("&")?Ja.replace(/&/g,$a):"".concat($a," ").concat(Ja):Ja},"")}var xa=function($a,Ja,pl){var au=Cs(pl),ac=au.match(/:not\([^)]*\)/g)||[];ac.length>0&&ac.some(Os)&&lintWarning("Concat ':not' selector not support in legacy browsers.",pl)},Xu=null,gc=function($a,Ja,pl){switch($a){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":lintWarning("You seem to be using non-logical property '".concat($a,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),pl);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof Ja=="string"){var au=Ja.split(" ").map(function(cc){return cc.trim()});au.length===4&&au[1]!==au[3]&&lintWarning("You seem to be using '".concat($a,"' property with different left ").concat($a," and right ").concat($a,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),pl)}return;case"clear":case"textAlign":(Ja==="left"||Ja==="right")&&lintWarning("You seem to be using non-logical value '".concat(Ja,"' of ").concat($a,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),pl);return;case"borderRadius":if(typeof Ja=="string"){var ac=Ja.split("/").map(function(cc){return cc.trim()}),$u=ac.reduce(function(cc,Hu){if(cc)return cc;var Fl=Hu.split(" ").map(function(Ou){return Ou.trim()});return Fl.length>=2&&Fl[0]!==Fl[1]||Fl.length===3&&Fl[1]!==Fl[2]||Fl.length===4&&Fl[2]!==Fl[3]?!0:cc},!1);$u&&lintWarning("You seem to be using non-logical value '".concat(Ja,"' of ").concat($a,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),pl)}return;default:}},Zu=null,Cd=function($a,Ja,pl){(typeof Ja=="string"&&/NaN/g.test(Ja)||Number.isNaN(Ja))&&lintWarning("Unexpected 'NaN' in property '".concat($a,": ").concat(Ja,"'."),pl)},ad=null,gu=function($a,Ja,pl){pl.parentSelectors.some(function(au){var ac=au.split(",");return ac.some(function($u){return $u.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",pl)},iu=null,Tu="data-ant-cssinjs-cache-path",Si="_FILE_STYLE__";function tr(zs){return Object.keys(zs).map(function($a){var Ja=zs[$a];return"".concat($a,":").concat(Ja)}).join(";")}var Un,jr=!0;function Qr(zs){var $a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Un=zs,jr=$a}function _o(){if(!Un&&(Un={},(0,Re.Z)())){var zs=document.createElement("div");zs.className=Tu,zs.style.position="fixed",zs.style.visibility="hidden",zs.style.top="-9999px",document.body.appendChild(zs);var $a=getComputedStyle(zs).content||"";$a=$a.replace(/^"/,"").replace(/"$/,""),$a.split(";").forEach(function(au){var ac=au.split(":"),$u=(0,R.Z)(ac,2),cc=$u[0],Hu=$u[1];Un[cc]=Hu});var Ja=document.querySelector("style[".concat(Tu,"]"));if(Ja){var pl;jr=!1,(pl=Ja.parentNode)===null||pl===void 0||pl.removeChild(Ja)}document.body.removeChild(zs)}}function us(zs){return _o(),!!Un[zs]}function ns(zs){var $a=Un[zs],Ja=null;if($a&&(0,Re.Z)())if(jr)Ja=Si;else{var pl=document.querySelector("style[".concat(we,'="').concat(Un[zs],'"]'));pl?Ja=pl.innerHTML:delete Un[zs]}return[Ja,$a]}var Oa="_skip_check_",ga="_multi_value_";function Va(zs){var $a=Eo(ua(zs),hs);return $a.replace(/\{%%%\:[^;];}/g,";")}function ea(zs){return(0,Ae.Z)(zs)==="object"&&zs&&(Oa in zs||ga in zs)}function Xl(zs,$a,Ja){if(!$a)return zs;var pl=".".concat($a),au=Ja==="low"?":where(".concat(pl,")"):pl,ac=zs.split(",").map(function($u){var cc,Hu=$u.trim().split(/\s+/),Fl=Hu[0]||"",Ou=((cc=Fl.match(/^\w+/))===null||cc===void 0?void 0:cc[0])||"";return Fl="".concat(Ou).concat(au).concat(Fl.slice(Ou.length)),[Fl].concat((0,w.Z)(Hu.slice(1))).join(" ")});return ac.join(",")}var _a=function zs($a){var Ja=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},au=pl.root,ac=pl.injectHash,$u=pl.parentSelectors,cc=Ja.hashId,Hu=Ja.layer,Fl=Ja.path,Ou=Ja.hashPriority,Qc=Ja.transformers,fd=Qc===void 0?[]:Qc,Qd=Ja.linters,Bh=Qd===void 0?[]:Qd,Gd="",Ch={};function Ad(mu){var md=mu.getName(cc);if(!Ch[md]){var Uh=zs(mu.style,Ja,{root:!1,parentSelectors:$u}),Qa=(0,R.Z)(Uh,1),_u=Qa[0];Ch[md]="@keyframes ".concat(mu.getName(cc)).concat(_u)}}function bd(mu){var md=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return mu.forEach(function(Uh){Array.isArray(Uh)?bd(Uh,md):Uh&&md.push(Uh)}),md}var su=bd(Array.isArray($a)?$a:[$a]);if(su.forEach(function(mu){var md=typeof mu=="string"&&!au?{}:mu;if(typeof md=="string")Gd+="".concat(md,` -`);else if(md._keyframe)Ad(md);else{var Uh=fd.reduce(function(Qa,_u){var Al;return(_u==null||(Al=_u.visit)===null||Al===void 0?void 0:Al.call(_u,Qa))||Qa},md);Object.keys(Uh).forEach(function(Qa){var _u=Uh[Qa];if((0,Ae.Z)(_u)==="object"&&_u&&(Qa!=="animationName"||!_u._keyframe)&&!ea(_u)){var Al=!1,du=Qa.trim(),Au=!1;(au||ac)&&cc?du.startsWith("@")?Al=!0:du=Xl(Qa,cc,Ou):au&&!cc&&(du==="&"||du==="")&&(du="",Au=!0);var Sc=zs(_u,Ja,{root:Au,injectHash:Al,parentSelectors:[].concat((0,w.Z)($u),[du])}),_d=(0,R.Z)(Sc,2),wd=_d[0],ef=_d[1];Ch=(0,b.Z)((0,b.Z)({},Ch),ef),Gd+="".concat(du).concat(wd)}else{let cf=function(Rh,yc){var qd=Rh.replace(/[A-Z]/g,function(Mf){return"-".concat(Mf.toLowerCase())}),rd=yc;!er[Rh]&&typeof rd=="number"&&rd!==0&&(rd="".concat(rd,"px")),Rh==="animationName"&&yc!==null&&yc!==void 0&&yc._keyframe&&(Ad(yc),rd=yc.getName(cc)),Gd+="".concat(qd,":").concat(rd,";")};var Jh,uh=(Jh=_u==null?void 0:_u.value)!==null&&Jh!==void 0?Jh:_u;(0,Ae.Z)(_u)==="object"&&_u!==null&&_u!==void 0&&_u[ga]&&Array.isArray(uh)?uh.forEach(function(Rh){cf(Qa,Rh)}):cf(Qa,uh)}})}}),!au)Gd="{".concat(Gd,"}");else if(Hu&&Yi()){var nh=Hu.split(","),tl=nh[nh.length-1].trim();Gd="@layer ".concat(tl," {").concat(Gd,"}"),nh.length>1&&(Gd="@layer ".concat(Hu,"{%%%:%}").concat(Gd))}return[Gd,Ch]};function Ta(zs,$a){return V("".concat(zs.join("%")).concat($a))}function Ya(){return null}var cu="style";function jl(zs,$a){var Ja=zs.token,pl=zs.path,au=zs.hashId,ac=zs.layer,$u=zs.nonce,cc=zs.clientOnly,Hu=zs.order,Fl=Hu===void 0?0:Hu,Ou=M.useContext(De),Qc=Ou.autoClear,fd=Ou.mock,Qd=Ou.defaultCache,Bh=Ou.hashPriority,Gd=Ou.container,Ch=Ou.ssrInline,Ad=Ou.transformers,bd=Ou.linters,su=Ou.cache,nh=Ja._tokenKey,tl=[nh].concat((0,w.Z)(pl)),mu=Gi,md=to(cu,tl,function(){var du=tl.join("|");if(us(du)){var Au=ns(du),Sc=(0,R.Z)(Au,2),_d=Sc[0],wd=Sc[1];if(_d)return[_d,nh,wd,{},cc,Fl]}var ef=$a(),Jh=_a(ef,{hashId:au,hashPriority:Bh,layer:ac,path:pl.join("-"),transformers:Ad,linters:bd}),uh=(0,R.Z)(Jh,2),cf=uh[0],Rh=uh[1],yc=Va(cf),qd=Ta(tl,yc);return[yc,nh,qd,Rh,cc,Fl]},function(du,Au){var Sc=(0,R.Z)(du,3),_d=Sc[2];(Au||Qc)&&Gi&&(0,k.jL)(_d,{mark:we})},function(du){var Au=(0,R.Z)(du,4),Sc=Au[0],_d=Au[1],wd=Au[2],ef=Au[3];if(mu&&Sc!==Si){var Jh={mark:we,prepend:"queue",attachTo:Gd,priority:Fl},uh=typeof $u=="function"?$u():$u;uh&&(Jh.csp={nonce:uh});var cf=(0,k.hq)(Sc,wd,Jh);cf[He]=su.instanceId,cf.setAttribute(_e,nh),Object.keys(ef).forEach(function(Rh){(0,k.hq)(Va(ef[Rh]),"_effect-".concat(Rh),Jh)})}}),Uh=(0,R.Z)(md,3),Qa=Uh[0],_u=Uh[1],Al=Uh[2];return function(du){var Au;if(!Ch||mu||!Qd)Au=M.createElement(Ya,null);else{var Sc;Au=M.createElement("style",(0,Xt.Z)({},(Sc={},(0,v.Z)(Sc,_e,_u),(0,v.Z)(Sc,we,Al),Sc),{dangerouslySetInnerHTML:{__html:Qa}}))}return M.createElement(M.Fragment,null,Au,du)}}var Mu=function($a,Ja,pl){var au=(0,R.Z)($a,6),ac=au[0],$u=au[1],cc=au[2],Hu=au[3],Fl=au[4],Ou=au[5],Qc=pl||{},fd=Qc.plain;if(Fl)return null;var Qd=ac,Bh={"data-rc-order":"prependQueue","data-rc-priority":"".concat(Ou)};return Qd=co(ac,$u,cc,Bh,fd),Hu&&Object.keys(Hu).forEach(function(Gd){if(!Ja[Gd]){Ja[Gd]=!0;var Ch=Va(Hu[Gd]);Qd+=co(Ch,$u,"_effect-".concat(Gd),Bh,fd)}}),[Ou,cc,Qd]},Bl="cssVar",wl=function($a,Ja){var pl=$a.key,au=$a.prefix,ac=$a.unitless,$u=$a.ignore,cc=$a.token,Hu=$a.scope,Fl=Hu===void 0?"":Hu,Ou=(0,M.useContext)(De),Qc=Ou.cache.instanceId,fd=Ou.container,Qd=cc._tokenKey,Bh=[].concat((0,w.Z)($a.path),[pl,Fl,Qd]),Gd=to(Bl,Bh,function(){var Ch=Ja(),Ad=In(Ch,pl,{prefix:au,unitless:ac,ignore:$u,scope:Fl}),bd=(0,R.Z)(Ad,2),su=bd[0],nh=bd[1],tl=Ta(Bh,nh);return[su,nh,tl,pl]},function(Ch){var Ad=(0,R.Z)(Ch,3),bd=Ad[2];Gi&&(0,k.jL)(bd,{mark:we})},function(Ch){var Ad=(0,R.Z)(Ch,3),bd=Ad[1],su=Ad[2];if(bd){var nh=(0,k.hq)(bd,su,{mark:we,prepend:"queue",attachTo:fd,priority:-999});nh[He]=Qc,nh.setAttribute(_e,pl)}});return Gd},Tn=function($a,Ja,pl){var au=(0,R.Z)($a,4),ac=au[1],$u=au[2],cc=au[3],Hu=pl||{},Fl=Hu.plain;if(!ac)return null;var Ou=-999,Qc={"data-rc-order":"prependQueue","data-rc-priority":"".concat(Ou)},fd=co(ac,cc,$u,Qc,Fl);return[Ou,$u,fd]},nc=wl,Iu,Pc=(Iu={},(0,v.Z)(Iu,cu,Mu),(0,v.Z)(Iu,Ar,dr),(0,v.Z)(Iu,Bl,Tn),Iu);function Wc(zs){return zs!==null}function cd(zs){var $a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ja=new RegExp("^(".concat(Object.keys(Pc).join("|"),")%")),pl=Array.from(zs.cache.keys()).filter(function(cc){return Ja.test(cc)}),au={},ac={},$u="";return pl.map(function(cc){var Hu=cc.replace(Ja,"").replace(/%/g,"|"),Fl=cc.split("%"),Ou=_slicedToArray(Fl,1),Qc=Ou[0],fd=Pc[Qc],Qd=fd(zs.cache.get(cc)[1],au,{plain:$a});if(!Qd)return null;var Bh=_slicedToArray(Qd,3),Gd=Bh[0],Ch=Bh[1],Ad=Bh[2];return cc.startsWith("style")&&(ac[Hu]=Ch),[Gd,Ad]}).filter(Wc).sort(function(cc,Hu){var Fl=_slicedToArray(cc,1),Ou=Fl[0],Qc=_slicedToArray(Hu,1),fd=Qc[0];return Ou-fd}).forEach(function(cc){var Hu=_slicedToArray(cc,2),Fl=Hu[1];$u+=Fl}),$u+=toStyleStr(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serializeCacheMap(ac),'";}'),void 0,void 0,_defineProperty({},ATTR_CACHE_MAP,ATTR_CACHE_MAP),$a),$u}var Fc=function(){function zs($a,Ja){(0,O.Z)(this,zs),(0,v.Z)(this,"name",void 0),(0,v.Z)(this,"style",void 0),(0,v.Z)(this,"_keyframe",!0),this.name=$a,this.style=Ja}return(0,K.Z)(zs,[{key:"getName",value:function(){var Ja=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ja?"".concat(Ja,"-").concat(this.name):this.name}}]),zs}(),vh=Fc;function Td(zs){if(typeof zs=="number")return[[zs],!1];var $a=String(zs).trim(),Ja=$a.match(/(.*)(!important)/),pl=(Ja?Ja[1]:$a).trim().split(/\s+/),au="",ac=0;return[pl.reduce(function($u,cc){if(cc.includes("(")||cc.includes(")")){var Hu=cc.split("(").length-1,Fl=cc.split(")").length-1;ac+=Hu-Fl}return ac===0?($u.push(au+cc),au=""):ac>0&&(au+=cc),$u},[]),!!Ja]}function Gh(zs){return zs.notSplit=!0,zs}var yh={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:Gh(["borderTop","borderBottom"]),borderBlockStart:Gh(["borderTop"]),borderBlockEnd:Gh(["borderBottom"]),borderInline:Gh(["borderLeft","borderRight"]),borderInlineStart:Gh(["borderLeft"]),borderInlineEnd:Gh(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function kc(zs,$a){var Ja=zs;return $a&&(Ja="".concat(Ja," !important")),{_skip_check_:!0,value:Ja}}var Kh={visit:function($a){var Ja={};return Object.keys($a).forEach(function(pl){var au=$a[pl],ac=yh[pl];if(ac&&(typeof au=="number"||typeof au=="string")){var $u=Td(au),cc=(0,R.Z)($u,2),Hu=cc[0],Fl=cc[1];ac.length&&ac.notSplit?ac.forEach(function(Ou){Ja[Ou]=kc(au,Fl)}):ac.length===1?Ja[ac[0]]=kc(au,Fl):ac.length===2?ac.forEach(function(Ou,Qc){var fd;Ja[Ou]=kc((fd=Hu[Qc])!==null&&fd!==void 0?fd:Hu[0],Fl)}):ac.length===4?ac.forEach(function(Ou,Qc){var fd,Qd;Ja[Ou]=kc((fd=(Qd=Hu[Qc])!==null&&Qd!==void 0?Qd:Hu[Qc-2])!==null&&fd!==void 0?fd:Hu[0],Fl)}):Ja[pl]=au}else Ja[pl]=au}),Ja}},$f=null,Vf=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function _h(zs,$a){var Ja=Math.pow(10,$a+1),pl=Math.floor(zs*Ja);return Math.round(pl/10)*10/Ja}var Qh=function(){var $a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ja=$a.rootValue,pl=Ja===void 0?16:Ja,au=$a.precision,ac=au===void 0?5:au,$u=$a.mediaQuery,cc=$u===void 0?!1:$u,Hu=function(Qc,fd){if(!fd)return Qc;var Qd=parseFloat(fd);if(Qd<=1)return Qc;var Bh=_h(Qd/pl,ac);return"".concat(Bh,"rem")},Fl=function(Qc){var fd=_objectSpread({},Qc);return Object.entries(Qc).forEach(function(Qd){var Bh=_slicedToArray(Qd,2),Gd=Bh[0],Ch=Bh[1];if(typeof Ch=="string"&&Ch.includes("px")){var Ad=Ch.replace(Vf,Hu);fd[Gd]=Ad}!unitless[Gd]&&typeof Ch=="number"&&Ch!==0&&(fd[Gd]="".concat(Ch,"px").replace(Vf,Hu));var bd=Gd.trim();if(bd.startsWith("@")&&bd.includes("px")&&cc){var su=Gd.replace(Vf,Hu);fd[su]=fd[Gd],delete fd[Gd]}}),fd};return{visit:Fl}},Mh=null,Wd={supportModernCSS:function(){return Ts()&&Ce()}}},7786:function(_t,Y){"use strict";var _={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};Y.Z=_},77364:function(_t,Y){"use strict";var _={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};Y.Z=_},58825:function(_t,Y){"use strict";var _={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};Y.Z=_},28186:function(_t,Y){"use strict";var _={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};Y.Z=_},15702:function(_t,Y){"use strict";var _={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};Y.Z=_},40043:function(_t,Y){"use strict";var _={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};Y.Z=_},58781:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return vr}});var v=_(36439),R=_(61860),w=_(35005),b=_(33649),B=_(77617),V=_(12124),k=_.n(V),M=(0,B.createContext)({}),C=M,g=_(96522),A=_(12722),O=_(9915),K=2,ce=.16,de=.05,ve=.05,Ee=.15,_e=5,we=4,ot=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function He(pn){var wr=pn.r,Sr=pn.g,Ai=pn.b,mo=(0,A.py)(wr,Sr,Ai);return{h:mo.h*360,s:mo.s,v:mo.v}}function vt(pn){var wr=pn.r,Sr=pn.g,Ai=pn.b;return"#".concat((0,A.vq)(wr,Sr,Ai,!1))}function dt(pn,wr,Sr){var Ai=Sr/100,mo={r:(wr.r-pn.r)*Ai+pn.r,g:(wr.g-pn.g)*Ai+pn.g,b:(wr.b-pn.b)*Ai+pn.b};return mo}function Pe(pn,wr,Sr){var Ai;return Math.round(pn.h)>=60&&Math.round(pn.h)<=240?Ai=Sr?Math.round(pn.h)-K*wr:Math.round(pn.h)+K*wr:Ai=Sr?Math.round(pn.h)+K*wr:Math.round(pn.h)-K*wr,Ai<0?Ai+=360:Ai>=360&&(Ai-=360),Ai}function De(pn,wr,Sr){if(pn.h===0&&pn.s===0)return pn.s;var Ai;return Sr?Ai=pn.s-ce*wr:wr===we?Ai=pn.s+ce:Ai=pn.s+de*wr,Ai>1&&(Ai=1),Sr&&wr===_e&&Ai>.1&&(Ai=.1),Ai<.06&&(Ai=.06),Number(Ai.toFixed(2))}function Ae(pn,wr,Sr){var Ai;return Sr?Ai=pn.v+ve*wr:Ai=pn.v-Ee*wr,Ai>1&&(Ai=1),Number(Ai.toFixed(2))}function Re(pn){for(var wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Sr=[],Ai=(0,O.uA)(pn),mo=_e;mo>0;mo-=1){var Fr=He(Ai),to=vt((0,O.uA)({h:Pe(Fr,mo,!0),s:De(Fr,mo,!0),v:Ae(Fr,mo,!0)}));Sr.push(to)}Sr.push(vt(Ai));for(var Ji=1;Ji<=we;Ji+=1){var bo=He(Ai),xn=vt((0,O.uA)({h:Pe(bo,Ji),s:De(bo,Ji),v:Ae(bo,Ji)}));Sr.push(xn)}return wr.theme==="dark"?ot.map(function(fn){var It=fn.index,Zt=fn.opacity,gn=vt(dt((0,O.uA)(wr.backgroundColor||"#141414"),(0,O.uA)(Sr[It]),Zt*100));return gn}):Sr}var $e={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Ie={},Xe={};Object.keys($e).forEach(function(pn){Ie[pn]=Re($e[pn]),Ie[pn].primary=Ie[pn][5],Xe[pn]=Re($e[pn],{theme:"dark",backgroundColor:"#141414"}),Xe[pn].primary=Xe[pn][5]});var ze=Ie.red,Kt=Ie.volcano,St=Ie.gold,nt=Ie.orange,Ct=Ie.yellow,lt=Ie.lime,Gt=Ie.green,Rt=Ie.cyan,an=Ie.blue,cn=Ie.geekblue,Cr=Ie.purple,ii=Ie.magenta,Pi=Ie.grey,Ni=_(36014),Yi=_(75966),ti=_(34301),Ts=_.n(ti);function Bs(pn,wr){(0,Ni.ZP)(pn,"[@ant-design/icons] ".concat(wr))}function Ce(pn){return(0,g.Z)(pn)==="object"&&typeof pn.name=="string"&&typeof pn.theme=="string"&&((0,g.Z)(pn.icon)==="object"||typeof pn.icon=="function")}function Gi(){var pn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(pn).reduce(function(wr,Sr){var Ai=pn[Sr];switch(Sr){case"class":wr.className=Ai,delete wr.class;break;default:delete wr[Sr],wr[Ts()(Sr)]=Ai}return wr},{})}function qi(pn,wr,Sr){return Sr?B.createElement(pn.tag,(0,v.Z)((0,v.Z)({key:wr},Gi(pn.attrs)),Sr),(pn.children||[]).map(function(Ai,mo){return qi(Ai,"".concat(wr,"-").concat(pn.tag,"-").concat(mo))})):B.createElement(pn.tag,(0,v.Z)({key:wr},Gi(pn.attrs)),(pn.children||[]).map(function(Ai,mo){return qi(Ai,"".concat(wr,"-").concat(pn.tag,"-").concat(mo))}))}function co(pn){return Re(pn)[0]}function fi(pn){return pn?Array.isArray(pn)?pn:[pn]:[]}var Ms={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},In=` +!(function(){var wpe=Object.defineProperty,Cpe=Object.defineProperties;var Spe=Object.getOwnPropertyDescriptors;var EV=Object.getOwnPropertySymbols;var Lre=Object.prototype.hasOwnProperty,Mre=Object.prototype.propertyIsEnumerable;var ty=Math.pow,PJ=(yt,Y,y)=>Y in yt?wpe(yt,Y,{enumerable:!0,configurable:!0,writable:!0,value:y}):yt[Y]=y,Rf=(yt,Y)=>{for(var y in Y||(Y={}))Lre.call(Y,y)&&PJ(yt,y,Y[y]);if(EV)for(var y of EV(Y))Mre.call(Y,y)&&PJ(yt,y,Y[y]);return yt},Cv=(yt,Y)=>Cpe(yt,Spe(Y));var $E=(yt,Y)=>{var y={};for(var v in yt)Lre.call(yt,v)&&Y.indexOf(v)<0&&(y[v]=yt[v]);if(yt!=null&&EV)for(var v of EV(yt))Y.indexOf(v)<0&&Mre.call(yt,v)&&(y[v]=yt[v]);return y};var VE=(yt,Y,y)=>(PJ(yt,typeof Y!="symbol"?Y+"":Y,y),y);var Dg=(yt,Y,y)=>new Promise((v,P)=>{var w=V=>{try{B(y.next(V))}catch(k){P(k)}},b=V=>{try{B(y.throw(V))}catch(k){P(k)}},B=V=>V.done?v(V.value):Promise.resolve(V.value).then(w,b);B((y=y.apply(yt,Y)).next())});(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[236],{81618:function(yt){"use strict";(function(Y,y){yt.exports=y()})(this,function(){function Y(R){var C=[];return R.AMapUI&&C.push(y(R.AMapUI)),R.Loca&&C.push(v(R.Loca)),Promise.all(C)}function y(R){return new Promise(function(C,g){var A=[];if(R.plugins)for(var O=0;O=60&&Math.round(wt.h)<=240?Mt=Kt?Math.round(wt.h)-w*lt:Math.round(wt.h)+w*lt:Mt=Kt?Math.round(wt.h)+w*lt:Math.round(wt.h)-w*lt,Mt<0?Mt+=360:Mt>=360&&(Mt-=360),Mt}function ae(wt,lt,Kt){if(wt.h===0&&wt.s===0)return wt.s;var Mt;return Kt?Mt=wt.s-b*lt:lt===C?Mt=wt.s+b:Mt=wt.s+B*lt,Mt>1&&(Mt=1),Kt&<===R&&Mt>.1&&(Mt=.1),Mt<.06&&(Mt=.06),Number(Mt.toFixed(2))}function fe(wt,lt,Kt){var Mt;return Kt?Mt=wt.v+V*lt:Mt=wt.v-k*lt,Mt>1&&(Mt=1),Number(Mt.toFixed(2))}function xe(wt){for(var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Kt=[],Mt=(0,P.uA)(wt),hn=R;hn>0;hn-=1){var un=A(Mt),Sr=O((0,P.uA)({h:he(un,hn,!0),s:ae(un,hn,!0),v:fe(un,hn,!0)}));Kt.push(Sr)}Kt.push(O(Mt));for(var ii=1;ii<=C;ii+=1){var Ii=A(Mt),Ni=O((0,P.uA)({h:he(Ii,ii),s:ae(Ii,ii),v:fe(Ii,ii)}));Kt.push(Ni)}return lt.theme==="dark"?g.map(function(eo){var ti=eo.index,Is=eo.opacity,Ns=O(K((0,P.uA)(lt.backgroundColor||"#141414"),(0,P.uA)(Kt[ti]),Is*100));return Ns}):Kt}var ye={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},be={},Qe={};Object.keys(ye).forEach(function(wt){be[wt]=xe(ye[wt]),be[wt].primary=be[wt][5],Qe[wt]=xe(ye[wt],{theme:"dark",backgroundColor:"#141414"}),Qe[wt].primary=Qe[wt][5]});var Ve=be.red,pt=be.volcano,st=be.gold,Ae=be.orange,De=be.yellow,Te=be.lime,Me=be.green,Ue=be.cyan,Pe=be.blue,Xe=be.geekblue,Be=be.purple,Xt=be.magenta,St=be.grey,nt=be.grey},43109:function(yt,Y,y){"use strict";y.d(Y,{E4:function(){return vd},jG:function(){return nt},t2:function(){return $n},ks:function(){return di},bf:function(){return Yi},CI:function(){return nc},fp:function(){return Dr},xy:function(){return $l}});var v=y(4942),P=y(97685),w=y(74902),b=y(1413);function B(Bs){for(var Ua=0,Ya,ml=0,ou=Bs.length;ou>=4;++ml,ou-=4)Ya=Bs.charCodeAt(ml)&255|(Bs.charCodeAt(++ml)&255)<<8|(Bs.charCodeAt(++ml)&255)<<16|(Bs.charCodeAt(++ml)&255)<<24,Ya=(Ya&65535)*1540483477+((Ya>>>16)*59797<<16),Ya^=Ya>>>24,Ua=(Ya&65535)*1540483477+((Ya>>>16)*59797<<16)^(Ua&65535)*1540483477+((Ua>>>16)*59797<<16);switch(ou){case 3:Ua^=(Bs.charCodeAt(ml+2)&255)<<16;case 2:Ua^=(Bs.charCodeAt(ml+1)&255)<<8;case 1:Ua^=Bs.charCodeAt(ml)&255,Ua=(Ua&65535)*1540483477+((Ua>>>16)*59797<<16)}return Ua^=Ua>>>13,Ua=(Ua&65535)*1540483477+((Ua>>>16)*59797<<16),((Ua^Ua>>>15)>>>0).toString(36)}var V=B,k=y(44958),R=y(67294),C=y.t(R,2),g=y(56982),A=y(91881),O=y(15671),K=y(43144),he="%",ae=function(){function Bs(Ua){(0,O.Z)(this,Bs),(0,v.Z)(this,"instanceId",void 0),(0,v.Z)(this,"cache",new Map),this.instanceId=Ua}return(0,K.Z)(Bs,[{key:"get",value:function(Ya){return this.cache.get(Ya.join(he))||null}},{key:"update",value:function(Ya,ml){var ou=Ya.join(he),ac=this.cache.get(ou),ju=ml(ac);ju===null?this.cache.delete(ou):this.cache.set(ou,ju)}}]),Bs}(),fe=ae,xe=null,ye="data-token-hash",be="data-css-hash",Qe="data-cache-path",Ve="__cssinjs_instance__";function pt(){var Bs=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var Ua=document.body.querySelectorAll("style[".concat(be,"]"))||[],Ya=document.head.firstChild;Array.from(Ua).forEach(function(ou){ou[Ve]=ou[Ve]||Bs,ou[Ve]===Bs&&document.head.insertBefore(ou,Ya)});var ml={};Array.from(document.querySelectorAll("style[".concat(be,"]"))).forEach(function(ou){var ac=ou.getAttribute(be);if(ml[ac]){if(ou[Ve]===Bs){var ju;(ju=ou.parentNode)===null||ju===void 0||ju.removeChild(ou)}}else ml[ac]=!0})}return new fe(Bs)}var st=R.createContext({hashPriority:"low",cache:pt(),defaultCache:!0}),Ae=function(Ua){var Ya=Ua.children,ml=_objectWithoutProperties(Ua,xe),ou=React.useContext(st),ac=useMemo(function(){var ju=_objectSpread({},ou);Object.keys(ml).forEach(function(Gu){var Ol=ml[Gu];ml[Gu]!==void 0&&(ju[Gu]=Ol)});var uc=ml.cache;return ju.cache=ju.cache||pt(),ju.defaultCache=!uc&&ou.defaultCache,ju},[ou,ml],function(ju,uc){return!isEqual(ju[0],uc[0],!0)||!isEqual(ju[1],uc[1],!0)});return React.createElement(st.Provider,{value:ac},Ya)},De=st,Te=y(71002),Me=y(98924);function Ue(Bs,Ua){if(Bs.length!==Ua.length)return!1;for(var Ya=0;Ya1&&arguments[1]!==void 0?arguments[1]:!1,ju={map:this.cache};return Ya.forEach(function(uc){if(!ju)ju=void 0;else{var Gu;ju=(Gu=ju)===null||Gu===void 0||(Gu=Gu.map)===null||Gu===void 0?void 0:Gu.get(uc)}}),(ml=ju)!==null&&ml!==void 0&&ml.value&&ac&&(ju.value[1]=this.cacheCallTimes++),(ou=ju)===null||ou===void 0?void 0:ou.value}},{key:"get",value:function(Ya){var ml;return(ml=this.internalGet(Ya,!0))===null||ml===void 0?void 0:ml[0]}},{key:"has",value:function(Ya){return!!this.internalGet(Ya)}},{key:"set",value:function(Ya,ml){var ou=this;if(!this.has(Ya)){if(this.size()+1>Bs.MAX_CACHE_SIZE+Bs.MAX_CACHE_OFFSET){var ac=this.keys.reduce(function(Ol,Nu){var qc=(0,P.Z)(Ol,2),fh=qc[1];return ou.internalGet(Nu)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Be+=1}return(0,K.Z)(Bs,[{key:"getDerivativeToken",value:function(Ya){return this.derivatives.reduce(function(ml,ou){return ou(Ya,ml)},void 0)}}]),Bs}(),St=new Pe;function nt(Bs){var Ua=Array.isArray(Bs)?Bs:[Bs];return St.has(Ua)||St.set(Ua,new Xt(Ua)),St.get(Ua)}var wt=new WeakMap,lt={};function Kt(Bs,Ua){for(var Ya=wt,ml=0;ml3&&arguments[3]!==void 0?arguments[3]:{},ac=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(ac)return Bs;var ju=(0,b.Z)((0,b.Z)({},ou),{},(ml={},(0,v.Z)(ml,ye,Ua),(0,v.Z)(ml,be,Ya),ml)),uc=Object.keys(ju).map(function(Gu){var Ol=ju[Gu];return Ol?"".concat(Gu,'="').concat(Ol,'"'):null}).filter(function(Gu){return Gu}).join(" ");return"")}var di=function(Ua){var Ya=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(Ya?"".concat(Ya,"-"):"").concat(Ua).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Fs=function(Ua,Ya,ml){return Object.keys(Ua).length?".".concat(Ya).concat(ml!=null&&ml.scope?".".concat(ml.scope):"","{").concat(Object.entries(Ua).map(function(ou){var ac=(0,P.Z)(ou,2),ju=ac[0],uc=ac[1];return"".concat(ju,":").concat(uc,";")}).join(""),"}"):""},Ln=function(Ua,Ya,ml){var ou={},ac={};return Object.entries(Ua).forEach(function(ju){var uc,Gu,Ol=(0,P.Z)(ju,2),Nu=Ol[0],qc=Ol[1];if(ml!=null&&(uc=ml.preserve)!==null&&uc!==void 0&&uc[Nu])ac[Nu]=qc;else if((typeof qc=="string"||typeof qc=="number")&&!(ml!=null&&(Gu=ml.ignore)!==null&&Gu!==void 0&&Gu[Nu])){var fh,Qh=di(Nu,ml==null?void 0:ml.prefix);ou[Qh]=typeof qc=="number"&&!(ml!=null&&(fh=ml.unitless)!==null&&fh!==void 0&&fh[Nu])?"".concat(qc,"px"):String(qc),ac[Nu]="var(".concat(Qh,")")}}),[ac,Fs(ou,Ya,{scope:ml==null?void 0:ml.scope})]},it=y(8410),Ot=(0,b.Z)({},C),Ht=Ot.useInsertionEffect,Pn=function(Ua,Ya,ml){R.useMemo(Ua,ml),(0,it.Z)(function(){return Ya(!0)},ml)},fr=Ht?function(Bs,Ua,Ya){return Ht(function(){return Bs(),Ua()},Ya)}:Pn,In=fr,mn=(0,b.Z)({},C),Ut=mn.useInsertionEffect,en=function(Ua){var Ya=[],ml=!1;function ou(ac){ml||Ya.push(ac)}return R.useEffect(function(){return ml=!1,function(){ml=!0,Ya.length&&Ya.forEach(function(ac){return ac()})}},Ua),ou},Cn=function(){return function(Ua){Ua()}},lr=typeof Ut!="undefined"?en:Cn,pr=lr;function an(){return!1}var wr=!1;function Cr(){return wr}var Ei=an;if(!1)var vo,kr;function ro(Bs,Ua,Ya,ml,ou){var ac=R.useContext(De),ju=ac.cache,uc=[Bs].concat((0,w.Z)(Ua)),Gu=uc.join("_"),Ol=pr([Gu]),Nu=Ei(),qc=function(Hh){ju.update(uc,function(Cd){var Ah=Cd||[void 0,void 0],bh=(0,P.Z)(Ah,2),su=bh[0],nd=su===void 0?0:su,el=bh[1],pu=el,mh=pu||Ya(),Ud=[nd,mh];return Hh?Hh(Ud):Ud})};R.useMemo(function(){qc()},[Gu]);var fh=ju.get(uc),Qh=fh[1];return In(function(){ou==null||ou(Qh)},function(Bd){return qc(function(Hh){var Cd=(0,P.Z)(Hh,2),Ah=Cd[0],bh=Cd[1];return Bd&&Ah===0&&(ou==null||ou(Qh)),[Ah+1,bh]}),function(){ju.update(uc,function(Hh){var Cd=Hh||[],Ah=(0,P.Z)(Cd,2),bh=Ah[0],su=bh===void 0?0:bh,nd=Ah[1],el=su-1;return el===0?(Ol(function(){(Bd||!ju.get(uc))&&(ml==null||ml(nd,!1))}),null):[su-1,nd]})}},[Gu]),Qh}var qi={},bo="css",xn=new Map;function pn(Bs){xn.set(Bs,(xn.get(Bs)||0)+1)}function Dt(Bs,Ua){if(typeof document!="undefined"){var Ya=document.querySelectorAll("style[".concat(ye,'="').concat(Bs,'"]'));Ya.forEach(function(ml){if(ml[Ve]===Ua){var ou;(ou=ml.parentNode)===null||ou===void 0||ou.removeChild(ml)}})}}var Zt=0;function vn(Bs,Ua){xn.set(Bs,(xn.get(Bs)||0)-1);var Ya=Array.from(xn.keys()),ml=Ya.filter(function(ou){var ac=xn.get(ou)||0;return ac<=0});Ya.length-ml.length>Zt&&ml.forEach(function(ou){Dt(ou,Ua),xn.delete(ou)})}var $n=function(Ua,Ya,ml,ou){var ac=ml.getDerivativeToken(Ua),ju=(0,b.Z)((0,b.Z)({},ac),Ya);return ou&&(ju=ou(ju)),ju},Ar="token";function Dr(Bs,Ua){var Ya=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ml=(0,R.useContext)(De),ou=ml.cache.instanceId,ac=ml.container,ju=Ya.salt,uc=ju===void 0?"":ju,Gu=Ya.override,Ol=Gu===void 0?qi:Gu,Nu=Ya.formatToken,qc=Ya.getComputedToken,fh=Ya.cssVar,Qh=Kt(function(){return Object.assign.apply(Object,[{}].concat((0,w.Z)(Ua)))},Ua),Bd=hn(Qh),Hh=hn(Ol),Cd=fh?hn(fh):"",Ah=ro(Ar,[uc,Bs.id,Bd,Hh,Cd],function(){var bh,su=qc?qc(Qh,Ol,Bs):$n(Qh,Ol,Bs,Nu),nd=(0,b.Z)({},su),el="";if(fh){var pu=Ln(su,fh.key,{prefix:fh.prefix,ignore:fh.ignore,unitless:fh.unitless,preserve:fh.preserve}),mh=(0,P.Z)(pu,2);su=mh[0],el=mh[1]}var Ud=un(su,uc);su._tokenKey=Ud,nd._tokenKey=un(nd,uc);var Qa=(bh=fh==null?void 0:fh.key)!==null&&bh!==void 0?bh:Ud;su._themeKey=Qa,pn(Qa);var mu="".concat(bo,"-").concat(V(Ud));return su._hashId=mu,[su,mu,nd,el,(fh==null?void 0:fh.key)||""]},function(bh){vn(bh[0]._themeKey,ou)},function(bh){var su=(0,P.Z)(bh,4),nd=su[0],el=su[3];if(fh&&el){var pu=(0,k.hq)(el,V("css-variables-".concat(nd._themeKey)),{mark:be,prepend:"queue",attachTo:ac,priority:-999});pu[Ve]=ou,pu.setAttribute(ye,nd._themeKey)}});return Ah}var dr=function(Ua,Ya,ml){var ou=(0,P.Z)(Ua,5),ac=ou[2],ju=ou[3],uc=ou[4],Gu=ml||{},Ol=Gu.plain;if(!ju)return null;var Nu=ac._tokenKey,qc=-999,fh={"data-rc-order":"prependQueue","data-rc-priority":"".concat(qc)},Qh=fo(ju,uc,Nu,fh,Ol);return[qc,Nu,Qh]},Yt=y(87462),wn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qn=wn,Mr="-ms-",Wi="-moz-",Dn="-webkit-",Kn="comm",nr="rule",qr="decl",yi="@page",Hr="@media",ci="@import",gi="@charset",mi="@viewport",Bi="@supports",Nr="@document",Kr="@namespace",Qi="@keyframes",ns="@font-face",Ur="@counter-style",gs="@font-feature-values",Gr="@layer",ni=Math.abs,is=String.fromCharCode,Jr=Object.assign;function bn(Bs,Ua){return Na(Bs,0)^45?(((Ua<<2^Na(Bs,0))<<2^Na(Bs,1))<<2^Na(Bs,2))<<2^Na(Bs,3):0}function Or(Bs){return Bs.trim()}function qo(Bs,Ua){return(Bs=Ua.exec(Bs))?Bs[0]:Bs}function Mo(Bs,Ua,Ya){return Bs.replace(Ua,Ya)}function vs(Bs,Ua){return Bs.indexOf(Ua)}function Na(Bs,Ua){return Bs.charCodeAt(Ua)|0}function ho(Bs,Ua,Ya){return Bs.slice(Ua,Ya)}function aa(Bs){return Bs.length}function Ka(Bs){return Bs.length}function Si(Bs,Ua){return Ua.push(Bs),Bs}function Pi(Bs,Ua){return Bs.map(Ua).join("")}function to(Bs,Ua){return Bs.filter(function(Ya){return!qo(Ya,Ua)})}function So(Bs,Ua){for(var Ya="",ml=0;ml0?Na(Xn,--ss):0,yo--,Ko===10&&(yo=1,Wn--),Ko}function $e(){return Ko=ss2||rr(Ko)>3?"":" "}function Ps(Bs){for(;$e();)switch(rr(Ko)){case 0:append(As(ss-1),Bs);break;case 2:append(xo(Ko),Bs);break;default:append(from(Ko),Bs)}return Bs}function Ms(Bs,Ua){for(;--Ua&&$e()&&!(Ko<48||Ko>102||Ko>57&&Ko<65||Ko>70&&Ko<97););return gn(Bs,Lt()+(Ua<6&&ft()==32&&$e()==32))}function ks(Bs){for(;$e();)switch(Ko){case Bs:return ss;case 34:case 39:Bs!==34&&Bs!==39&&ks(Ko);break;case 40:Bs===41&&ks(Bs);break;case 92:$e();break}return ss}function ko(Bs,Ua){for(;$e()&&Bs+Ko!==47+10;)if(Bs+Ko===42+42&&ft()===47)break;return"/*"+gn(Ua,ss-1)+"*"+is(Bs===47?Bs:$e())}function As(Bs){for(;!rr(ft());)$e();return gn(Bs,ss)}function ia(Bs){return Fi(za("",null,null,null,[""],Bs=zr(Bs),0,[0],Bs))}function za(Bs,Ua,Ya,ml,ou,ac,ju,uc,Gu){for(var Ol=0,Nu=0,qc=ju,fh=0,Qh=0,Bd=0,Hh=1,Cd=1,Ah=1,bh=0,su="",nd=ou,el=ac,pu=ml,mh=su;Cd;)switch(Bd=bh,bh=$e()){case 40:if(Bd!=108&&Na(mh,qc-1)==58){vs(mh+=Mo(xo(bh),"&","&\f"),"&\f")!=-1&&(Ah=-1);break}case 34:case 39:case 91:mh+=xo(bh);break;case 9:case 10:case 13:case 32:mh+=zs(Bd);break;case 92:mh+=Ms(Lt()-1,7);continue;case 47:switch(ft()){case 42:case 47:Si(Hl(ko($e(),Lt()),Ua,Ya,Gu),Gu);break;default:mh+="/"}break;case 123*Hh:uc[Ol++]=aa(mh)*Ah;case 125*Hh:case 59:case 0:switch(bh){case 0:case 125:Cd=0;case 59+Nu:Ah==-1&&(mh=Mo(mh,/\f/g,"")),Qh>0&&aa(mh)-qc&&Si(Qh>32?fs(mh+";",ml,Ya,qc-1,Gu):fs(Mo(mh," ","")+";",ml,Ya,qc-2,Gu),Gu);break;case 59:mh+=";";default:if(Si(pu=Zl(mh,Ua,Ya,Ol,Nu,ou,uc,su,nd=[],el=[],qc,ac),ac),bh===123)if(Nu===0)za(mh,Ua,pu,pu,nd,ac,qc,uc,el);else switch(fh===99&&Na(mh,3)===110?100:fh){case 100:case 108:case 109:case 115:za(Bs,pu,pu,ml&&Si(Zl(Bs,pu,pu,0,0,ou,uc,su,ou,nd=[],qc,el),el),ou,el,qc,uc,ml?nd:el);break;default:za(mh,pu,pu,pu,[""],el,0,uc,el)}}Ol=Nu=Qh=0,Hh=Ah=1,su=mh="",qc=ju;break;case 58:qc=1+aa(mh),Qh=Bd;default:if(Hh<1){if(bh==123)--Hh;else if(bh==125&&Hh++==0&&dt()==125)continue}switch(mh+=is(bh),bh*Hh){case 38:Ah=Nu>0?1:(mh+="\f",-1);break;case 44:uc[Ol++]=(aa(mh)-1)*Ah,Ah=1;break;case 64:ft()===45&&(mh+=xo($e())),fh=ft(),Nu=qc=aa(su=mh+=As(Lt())),bh++;break;case 45:Bd===45&&aa(mh)==2&&(Hh=0)}}return ac}function Zl(Bs,Ua,Ya,ml,ou,ac,ju,uc,Gu,Ol,Nu,qc){for(var fh=ou-1,Qh=ou===0?ac:[""],Bd=Ka(Qh),Hh=0,Cd=0,Ah=0;Hh0?Qh[bh]+" "+su:Mo(su,/&\f/g,Qh[bh])))&&(Gu[Ah++]=nd);return Rr(Bs,Ua,Ya,ou===0?nr:uc,Gu,Ol,Nu,qc)}function Hl(Bs,Ua,Ya,ml){return Rr(Bs,Ua,Ya,Kn,is(ht()),ho(Bs,2,-2),0,ml)}function fs(Bs,Ua,Ya,ml,ou){return Rr(Bs,Ua,Ya,qr,ho(Bs,0,ml),ho(Bs,ml+1,-1),ml,ou)}function js(Bs,Ua){var Ya=Ua.path,ml=Ua.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(Ya?"Error in ".concat(Ya,": "):"").concat(Bs).concat(ml.length?" Selector: ".concat(ml.join(" | ")):""))}var hl=function(Ua,Ya,ml){if(Ua==="content"){var ou=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,ac=["normal","none","initial","inherit","unset"];(typeof Ya!="string"||ac.indexOf(Ya)===-1&&!ou.test(Ya)&&(Ya.charAt(0)!==Ya.charAt(Ya.length-1)||Ya.charAt(0)!=='"'&&Ya.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(Ya,"\"'`."),ml)}},Xo=null,Li=function(Ua,Ya,ml){Ua==="animation"&&ml.hashId&&Ya!=="none"&&lintWarning("You seem to be using hashed animation '".concat(Ya,"', in which case 'animationName' with Keyframe as value is recommended."),ml)},Yo=null;function Os(Bs){var Ua,Ya=((Ua=Bs.match(/:not\(([^)]*)\)/))===null||Ua===void 0?void 0:Ua[1])||"",ml=Ya.split(/(\[[^[]*])|(?=[.#])/).filter(function(ou){return ou});return ml.length>1}function Cs(Bs){return Bs.parentSelectors.reduce(function(Ua,Ya){return Ua?Ya.includes("&")?Ya.replace(/&/g,Ua):"".concat(Ua," ").concat(Ya):Ya},"")}var ba=function(Ua,Ya,ml){var ou=Cs(ml),ac=ou.match(/:not\([^)]*\)/g)||[];ac.length>0&&ac.some(Os)&&lintWarning("Concat ':not' selector not support in legacy browsers.",ml)},Yu=null,pc=function(Ua,Ya,ml){switch(Ua){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":lintWarning("You seem to be using non-logical property '".concat(Ua,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),ml);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof Ya=="string"){var ou=Ya.split(" ").map(function(uc){return uc.trim()});ou.length===4&&ou[1]!==ou[3]&&lintWarning("You seem to be using '".concat(Ua,"' property with different left ").concat(Ua," and right ").concat(Ua,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),ml)}return;case"clear":case"textAlign":(Ya==="left"||Ya==="right")&&lintWarning("You seem to be using non-logical value '".concat(Ya,"' of ").concat(Ua,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),ml);return;case"borderRadius":if(typeof Ya=="string"){var ac=Ya.split("/").map(function(uc){return uc.trim()}),ju=ac.reduce(function(uc,Gu){if(uc)return uc;var Ol=Gu.split(" ").map(function(Nu){return Nu.trim()});return Ol.length>=2&&Ol[0]!==Ol[1]||Ol.length===3&&Ol[1]!==Ol[2]||Ol.length===4&&Ol[2]!==Ol[3]?!0:uc},!1);ju&&lintWarning("You seem to be using non-logical value '".concat(Ya,"' of ").concat(Ua,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),ml)}return;default:}},Hu=null,wh=function(Ua,Ya,ml){(typeof Ya=="string"&&/NaN/g.test(Ya)||Number.isNaN(Ya))&&lintWarning("Unexpected 'NaN' in property '".concat(Ua,": ").concat(Ya,"'."),ml)},lh=null,fu=function(Ua,Ya,ml){ml.parentSelectors.some(function(ou){var ac=ou.split(",");return ac.some(function(ju){return ju.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",ml)},ru=null,Tu="data-ant-cssinjs-cache-path",wi="_FILE_STYLE__";function er(Bs){return Object.keys(Bs).map(function(Ua){var Ya=Bs[Ua];return"".concat(Ua,":").concat(Ya)}).join(";")}var Un,Wr=!0;function Qr(Bs){var Ua=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Un=Bs,Wr=Ua}function _o(){if(!Un&&(Un={},(0,Me.Z)())){var Bs=document.createElement("div");Bs.className=Tu,Bs.style.position="fixed",Bs.style.visibility="hidden",Bs.style.top="-9999px",document.body.appendChild(Bs);var Ua=getComputedStyle(Bs).content||"";Ua=Ua.replace(/^"/,"").replace(/"$/,""),Ua.split(";").forEach(function(ou){var ac=ou.split(":"),ju=(0,P.Z)(ac,2),uc=ju[0],Gu=ju[1];Un[uc]=Gu});var Ya=document.querySelector("style[".concat(Tu,"]"));if(Ya){var ml;Wr=!1,(ml=Ya.parentNode)===null||ml===void 0||ml.removeChild(Ya)}document.body.removeChild(Bs)}}function us(Bs){return _o(),!!Un[Bs]}function es(Bs){var Ua=Un[Bs],Ya=null;if(Ua&&(0,Me.Z)())if(Wr)Ya=wi;else{var ml=document.querySelector("style[".concat(be,'="').concat(Un[Bs],'"]'));ml?Ya=ml.innerHTML:delete Un[Bs]}return[Ya,Ua]}var Ma="_skip_check_",ga="_multi_value_";function $a(Bs){var Ua=So(ia(Bs),ps);return Ua.replace(/\{%%%\:[^;];}/g,";")}function Js(Bs){return(0,Te.Z)(Bs)==="object"&&Bs&&(Ma in Bs||ga in Bs)}function Kl(Bs,Ua,Ya){if(!Ua)return Bs;var ml=".".concat(Ua),ou=Ya==="low"?":where(".concat(ml,")"):ml,ac=Bs.split(",").map(function(ju){var uc,Gu=ju.trim().split(/\s+/),Ol=Gu[0]||"",Nu=((uc=Ol.match(/^\w+/))===null||uc===void 0?void 0:uc[0])||"";return Ol="".concat(Nu).concat(ou).concat(Ol.slice(Nu.length)),[Ol].concat((0,w.Z)(Gu.slice(1))).join(" ")});return ac.join(",")}var ya=function Bs(Ua){var Ya=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ml=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},ou=ml.root,ac=ml.injectHash,ju=ml.parentSelectors,uc=Ya.hashId,Gu=Ya.layer,Ol=Ya.path,Nu=Ya.hashPriority,qc=Ya.transformers,fh=qc===void 0?[]:qc,Qh=Ya.linters,Bd=Qh===void 0?[]:Qh,Hh="",Cd={};function Ah(pu){var mh=pu.getName(uc);if(!Cd[mh]){var Ud=Bs(pu.style,Ya,{root:!1,parentSelectors:ju}),Qa=(0,P.Z)(Ud,1),mu=Qa[0];Cd[mh]="@keyframes ".concat(pu.getName(uc)).concat(mu)}}function bh(pu){var mh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return pu.forEach(function(Ud){Array.isArray(Ud)?bh(Ud,mh):Ud&&mh.push(Ud)}),mh}var su=bh(Array.isArray(Ua)?Ua:[Ua]);if(su.forEach(function(pu){var mh=typeof pu=="string"&&!ou?{}:pu;if(typeof mh=="string")Hh+="".concat(mh,` +`);else if(mh._keyframe)Ah(mh);else{var Ud=fh.reduce(function(Qa,mu){var Dl;return(mu==null||(Dl=mu.visit)===null||Dl===void 0?void 0:Dl.call(mu,Qa))||Qa},mh);Object.keys(Ud).forEach(function(Qa){var mu=Ud[Qa];if((0,Te.Z)(mu)==="object"&&mu&&(Qa!=="animationName"||!mu._keyframe)&&!Js(mu)){var Dl=!1,uu=Qa.trim(),Au=!1;(ou||ac)&&uc?uu.startsWith("@")?Dl=!0:uu=Kl(Qa,uc,Nu):ou&&!uc&&(uu==="&"||uu==="")&&(uu="",Au=!0);var xc=Bs(mu,Ya,{root:Au,injectHash:Dl,parentSelectors:[].concat((0,w.Z)(ju),[uu])}),yh=(0,P.Z)(xc,2),xh=yh[0],ef=yh[1];Cd=(0,b.Z)((0,b.Z)({},Cd),ef),Hh+="".concat(uu).concat(xh)}else{let hf=function(Od,yc){var Yh=Od.replace(/[A-Z]/g,function(Mf){return"-".concat(Mf.toLowerCase())}),rh=yc;!Qn[Od]&&typeof rh=="number"&&rh!==0&&(rh="".concat(rh,"px")),Od==="animationName"&&yc!==null&&yc!==void 0&&yc._keyframe&&(Ah(yc),rh=yc.getName(uc)),Hh+="".concat(Yh,":").concat(rh,";")};var qd,ld=(qd=mu==null?void 0:mu.value)!==null&&qd!==void 0?qd:mu;(0,Te.Z)(mu)==="object"&&mu!==null&&mu!==void 0&&mu[ga]&&Array.isArray(ld)?ld.forEach(function(Od){hf(Qa,Od)}):hf(Qa,ld)}})}}),!ou)Hh="{".concat(Hh,"}");else if(Gu&&eo()){var nd=Gu.split(","),el=nd[nd.length-1].trim();Hh="@layer ".concat(el," {").concat(Hh,"}"),nd.length>1&&(Hh="@layer ".concat(Gu,"{%%%:%}").concat(Hh))}return[Hh,Cd]};function Ta(Bs,Ua){return V("".concat(Bs.join("%")).concat(Ua))}function Xa(){return null}var au="style";function $l(Bs,Ua){var Ya=Bs.token,ml=Bs.path,ou=Bs.hashId,ac=Bs.layer,ju=Bs.nonce,uc=Bs.clientOnly,Gu=Bs.order,Ol=Gu===void 0?0:Gu,Nu=R.useContext(De),qc=Nu.autoClear,fh=Nu.mock,Qh=Nu.defaultCache,Bd=Nu.hashPriority,Hh=Nu.container,Cd=Nu.ssrInline,Ah=Nu.transformers,bh=Nu.linters,su=Nu.cache,nd=Ya._tokenKey,el=[nd].concat((0,w.Z)(ml)),pu=Xi,mh=ro(au,el,function(){var uu=el.join("|");if(us(uu)){var Au=es(uu),xc=(0,P.Z)(Au,2),yh=xc[0],xh=xc[1];if(yh)return[yh,nd,xh,{},uc,Ol]}var ef=Ua(),qd=ya(ef,{hashId:ou,hashPriority:Bd,layer:ac,path:ml.join("-"),transformers:Ah,linters:bh}),ld=(0,P.Z)(qd,2),hf=ld[0],Od=ld[1],yc=$a(hf),Yh=Ta(el,yc);return[yc,nd,Yh,Od,uc,Ol]},function(uu,Au){var xc=(0,P.Z)(uu,3),yh=xc[2];(Au||qc)&&Xi&&(0,k.jL)(yh,{mark:be})},function(uu){var Au=(0,P.Z)(uu,4),xc=Au[0],yh=Au[1],xh=Au[2],ef=Au[3];if(pu&&xc!==wi){var qd={mark:be,prepend:"queue",attachTo:Hh,priority:Ol},ld=typeof ju=="function"?ju():ju;ld&&(qd.csp={nonce:ld});var hf=(0,k.hq)(xc,xh,qd);hf[Ve]=su.instanceId,hf.setAttribute(ye,nd),Object.keys(ef).forEach(function(Od){(0,k.hq)($a(ef[Od]),"_effect-".concat(Od),qd)})}}),Ud=(0,P.Z)(mh,3),Qa=Ud[0],mu=Ud[1],Dl=Ud[2];return function(uu){var Au;if(!Cd||pu||!Qh)Au=R.createElement(Xa,null);else{var xc;Au=R.createElement("style",(0,Yt.Z)({},(xc={},(0,v.Z)(xc,ye,mu),(0,v.Z)(xc,be,Dl),xc),{dangerouslySetInnerHTML:{__html:Qa}}))}return R.createElement(R.Fragment,null,Au,uu)}}var Mu=function(Ua,Ya,ml){var ou=(0,P.Z)(Ua,6),ac=ou[0],ju=ou[1],uc=ou[2],Gu=ou[3],Ol=ou[4],Nu=ou[5],qc=ml||{},fh=qc.plain;if(Ol)return null;var Qh=ac,Bd={"data-rc-order":"prependQueue","data-rc-priority":"".concat(Nu)};return Qh=fo(ac,ju,uc,Bd,fh),Gu&&Object.keys(Gu).forEach(function(Hh){if(!Ya[Hh]){Ya[Hh]=!0;var Cd=$a(Gu[Hh]);Qh+=fo(Cd,ju,"_effect-".concat(Hh),Bd,fh)}}),[Nu,uc,Qh]},Bl="cssVar",Sl=function(Ua,Ya){var ml=Ua.key,ou=Ua.prefix,ac=Ua.unitless,ju=Ua.ignore,uc=Ua.token,Gu=Ua.scope,Ol=Gu===void 0?"":Gu,Nu=(0,R.useContext)(De),qc=Nu.cache.instanceId,fh=Nu.container,Qh=uc._tokenKey,Bd=[].concat((0,w.Z)(Ua.path),[ml,Ol,Qh]),Hh=ro(Bl,Bd,function(){var Cd=Ya(),Ah=Ln(Cd,ml,{prefix:ou,unitless:ac,ignore:ju,scope:Ol}),bh=(0,P.Z)(Ah,2),su=bh[0],nd=bh[1],el=Ta(Bd,nd);return[su,nd,el,ml]},function(Cd){var Ah=(0,P.Z)(Cd,3),bh=Ah[2];Xi&&(0,k.jL)(bh,{mark:be})},function(Cd){var Ah=(0,P.Z)(Cd,3),bh=Ah[1],su=Ah[2];if(bh){var nd=(0,k.hq)(bh,su,{mark:be,prepend:"queue",attachTo:fh,priority:-999});nd[Ve]=qc,nd.setAttribute(ye,ml)}});return Hh},Tn=function(Ua,Ya,ml){var ou=(0,P.Z)(Ua,4),ac=ou[1],ju=ou[2],uc=ou[3],Gu=ml||{},Ol=Gu.plain;if(!ac)return null;var Nu=-999,qc={"data-rc-order":"prependQueue","data-rc-priority":"".concat(Nu)},fh=fo(ac,uc,ju,qc,Ol);return[Nu,ju,fh]},nc=Sl,Iu,Ic=(Iu={},(0,v.Z)(Iu,au,Mu),(0,v.Z)(Iu,Ar,dr),(0,v.Z)(Iu,Bl,Tn),Iu);function Vc(Bs){return Bs!==null}function dh(Bs){var Ua=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ya=new RegExp("^(".concat(Object.keys(Ic).join("|"),")%")),ml=Array.from(Bs.cache.keys()).filter(function(uc){return Ya.test(uc)}),ou={},ac={},ju="";return ml.map(function(uc){var Gu=uc.replace(Ya,"").replace(/%/g,"|"),Ol=uc.split("%"),Nu=_slicedToArray(Ol,1),qc=Nu[0],fh=Ic[qc],Qh=fh(Bs.cache.get(uc)[1],ou,{plain:Ua});if(!Qh)return null;var Bd=_slicedToArray(Qh,3),Hh=Bd[0],Cd=Bd[1],Ah=Bd[2];return uc.startsWith("style")&&(ac[Gu]=Cd),[Hh,Ah]}).filter(Vc).sort(function(uc,Gu){var Ol=_slicedToArray(uc,1),Nu=Ol[0],qc=_slicedToArray(Gu,1),fh=qc[0];return Nu-fh}).forEach(function(uc){var Gu=_slicedToArray(uc,2),Ol=Gu[1];ju+=Ol}),ju+=toStyleStr(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serializeCacheMap(ac),'";}'),void 0,void 0,_defineProperty({},ATTR_CACHE_MAP,ATTR_CACHE_MAP),Ua),ju}var Nc=function(){function Bs(Ua,Ya){(0,O.Z)(this,Bs),(0,v.Z)(this,"name",void 0),(0,v.Z)(this,"style",void 0),(0,v.Z)(this,"_keyframe",!0),this.name=Ua,this.style=Ya}return(0,K.Z)(Bs,[{key:"getName",value:function(){var Ya=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ya?"".concat(Ya,"-").concat(this.name):this.name}}]),Bs}(),vd=Nc;function Th(Bs){if(typeof Bs=="number")return[[Bs],!1];var Ua=String(Bs).trim(),Ya=Ua.match(/(.*)(!important)/),ml=(Ya?Ya[1]:Ua).trim().split(/\s+/),ou="",ac=0;return[ml.reduce(function(ju,uc){if(uc.includes("(")||uc.includes(")")){var Gu=uc.split("(").length-1,Ol=uc.split(")").length-1;ac+=Gu-Ol}return ac===0?(ju.push(ou+uc),ou=""):ac>0&&(ou+=uc),ju},[]),!!Ya]}function Gd(Bs){return Bs.notSplit=!0,Bs}var yd={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:Gd(["borderTop","borderBottom"]),borderBlockStart:Gd(["borderTop"]),borderBlockEnd:Gd(["borderBottom"]),borderInline:Gd(["borderLeft","borderRight"]),borderInlineStart:Gd(["borderLeft"]),borderInlineEnd:Gd(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function Mc(Bs,Ua){var Ya=Bs;return Ua&&(Ya="".concat(Ya," !important")),{_skip_check_:!0,value:Ya}}var Kd={visit:function(Ua){var Ya={};return Object.keys(Ua).forEach(function(ml){var ou=Ua[ml],ac=yd[ml];if(ac&&(typeof ou=="number"||typeof ou=="string")){var ju=Th(ou),uc=(0,P.Z)(ju,2),Gu=uc[0],Ol=uc[1];ac.length&&ac.notSplit?ac.forEach(function(Nu){Ya[Nu]=Mc(ou,Ol)}):ac.length===1?Ya[ac[0]]=Mc(ou,Ol):ac.length===2?ac.forEach(function(Nu,qc){var fh;Ya[Nu]=Mc((fh=Gu[qc])!==null&&fh!==void 0?fh:Gu[0],Ol)}):ac.length===4?ac.forEach(function(Nu,qc){var fh,Qh;Ya[Nu]=Mc((fh=(Qh=Gu[qc])!==null&&Qh!==void 0?Qh:Gu[qc-2])!==null&&fh!==void 0?fh:Gu[0],Ol)}):Ya[ml]=ou}else Ya[ml]=ou}),Ya}},Vf=null,jf=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function _d(Bs,Ua){var Ya=Math.pow(10,Ua+1),ml=Math.floor(Bs*Ya);return Math.round(ml/10)*10/Ya}var Qd=function(){var Ua=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ya=Ua.rootValue,ml=Ya===void 0?16:Ya,ou=Ua.precision,ac=ou===void 0?5:ou,ju=Ua.mediaQuery,uc=ju===void 0?!1:ju,Gu=function(qc,fh){if(!fh)return qc;var Qh=parseFloat(fh);if(Qh<=1)return qc;var Bd=_d(Qh/ml,ac);return"".concat(Bd,"rem")},Ol=function(qc){var fh=_objectSpread({},qc);return Object.entries(qc).forEach(function(Qh){var Bd=_slicedToArray(Qh,2),Hh=Bd[0],Cd=Bd[1];if(typeof Cd=="string"&&Cd.includes("px")){var Ah=Cd.replace(jf,Gu);fh[Hh]=Ah}!unitless[Hh]&&typeof Cd=="number"&&Cd!==0&&(fh[Hh]="".concat(Cd,"px").replace(jf,Gu));var bh=Hh.trim();if(bh.startsWith("@")&&bh.includes("px")&&uc){var su=Hh.replace(jf,Gu);fh[su]=fh[Hh],delete fh[Hh]}}),fh};return{visit:Ol}},Md=null,jh={supportModernCSS:function(){return Is()&&Se()}}},89503:function(yt,Y){"use strict";var y={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};Y.Z=y},47046:function(yt,Y){"use strict";var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};Y.Z=y},98851:function(yt,Y){"use strict";var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};Y.Z=y},42110:function(yt,Y){"use strict";var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};Y.Z=y},43114:function(yt,Y){"use strict";var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};Y.Z=y},36688:function(yt,Y){"use strict";var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};Y.Z=y},89099:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return pr}});var v=y(1413),P=y(97685),w=y(4942),b=y(91),B=y(67294),V=y(94184),k=y.n(V),R=(0,B.createContext)({}),C=R,g=y(71002),A=y(86500),O=y(1350),K=2,he=.16,ae=.05,fe=.05,xe=.15,ye=5,be=4,Qe=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Ve(an){var wr=an.r,Cr=an.g,Ei=an.b,vo=(0,A.py)(wr,Cr,Ei);return{h:vo.h*360,s:vo.s,v:vo.v}}function pt(an){var wr=an.r,Cr=an.g,Ei=an.b;return"#".concat((0,A.vq)(wr,Cr,Ei,!1))}function st(an,wr,Cr){var Ei=Cr/100,vo={r:(wr.r-an.r)*Ei+an.r,g:(wr.g-an.g)*Ei+an.g,b:(wr.b-an.b)*Ei+an.b};return vo}function Ae(an,wr,Cr){var Ei;return Math.round(an.h)>=60&&Math.round(an.h)<=240?Ei=Cr?Math.round(an.h)-K*wr:Math.round(an.h)+K*wr:Ei=Cr?Math.round(an.h)+K*wr:Math.round(an.h)-K*wr,Ei<0?Ei+=360:Ei>=360&&(Ei-=360),Ei}function De(an,wr,Cr){if(an.h===0&&an.s===0)return an.s;var Ei;return Cr?Ei=an.s-he*wr:wr===be?Ei=an.s+he:Ei=an.s+ae*wr,Ei>1&&(Ei=1),Cr&&wr===ye&&Ei>.1&&(Ei=.1),Ei<.06&&(Ei=.06),Number(Ei.toFixed(2))}function Te(an,wr,Cr){var Ei;return Cr?Ei=an.v+fe*wr:Ei=an.v-xe*wr,Ei>1&&(Ei=1),Number(Ei.toFixed(2))}function Me(an){for(var wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Cr=[],Ei=(0,O.uA)(an),vo=ye;vo>0;vo-=1){var kr=Ve(Ei),ro=pt((0,O.uA)({h:Ae(kr,vo,!0),s:De(kr,vo,!0),v:Te(kr,vo,!0)}));Cr.push(ro)}Cr.push(pt(Ei));for(var qi=1;qi<=be;qi+=1){var bo=Ve(Ei),xn=pt((0,O.uA)({h:Ae(bo,qi),s:De(bo,qi),v:Te(bo,qi)}));Cr.push(xn)}return wr.theme==="dark"?Qe.map(function(pn){var Dt=pn.index,Zt=pn.opacity,vn=pt(st((0,O.uA)(wr.backgroundColor||"#141414"),(0,O.uA)(Cr[Dt]),Zt*100));return vn}):Cr}var Ue={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Pe={},Xe={};Object.keys(Ue).forEach(function(an){Pe[an]=Me(Ue[an]),Pe[an].primary=Pe[an][5],Xe[an]=Me(Ue[an],{theme:"dark",backgroundColor:"#141414"}),Xe[an].primary=Xe[an][5]});var Be=Pe.red,Xt=Pe.volcano,St=Pe.gold,nt=Pe.orange,wt=Pe.yellow,lt=Pe.lime,Kt=Pe.green,Mt=Pe.cyan,hn=Pe.blue,un=Pe.geekblue,Sr=Pe.purple,ii=Pe.magenta,Ii=Pe.grey,Ni=y(80334),eo=y(44958),ti=y(68929),Is=y.n(ti);function Ns(an,wr){(0,Ni.ZP)(an,"[@ant-design/icons] ".concat(wr))}function Se(an){return(0,g.Z)(an)==="object"&&typeof an.name=="string"&&typeof an.theme=="string"&&((0,g.Z)(an.icon)==="object"||typeof an.icon=="function")}function Xi(){var an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(an).reduce(function(wr,Cr){var Ei=an[Cr];switch(Cr){case"class":wr.className=Ei,delete wr.class;break;default:delete wr[Cr],wr[Is()(Cr)]=Ei}return wr},{})}function Yi(an,wr,Cr){return Cr?B.createElement(an.tag,(0,v.Z)((0,v.Z)({key:wr},Xi(an.attrs)),Cr),(an.children||[]).map(function(Ei,vo){return Yi(Ei,"".concat(wr,"-").concat(an.tag,"-").concat(vo))})):B.createElement(an.tag,(0,v.Z)({key:wr},Xi(an.attrs)),(an.children||[]).map(function(Ei,vo){return Yi(Ei,"".concat(wr,"-").concat(an.tag,"-").concat(vo))}))}function fo(an){return Me(an)[0]}function di(an){return an?Array.isArray(an)?an:[an]:[]}var Fs={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Ln=` .anticon { display: inline-block; color: inherit; @@ -53,99 +53,45 @@ transform: rotate(360deg); } } -`,et=function(){var wr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:In,Sr=(0,B.useContext)(C),Ai=Sr.csp;(0,B.useEffect)(function(){(0,Yi.hq)(wr,"@ant-design-icons",{prepend:!0,csp:Ai})},[])},Dt=["icon","className","onClick","style","primaryColor","secondaryColor"],$t={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Dn(pn){var wr=pn.primaryColor,Sr=pn.secondaryColor;$t.primaryColor=wr,$t.secondaryColor=Sr||co(wr),$t.calculated=!!Sr}function gr(){return(0,v.Z)({},$t)}var kn=function(wr){var Sr=wr.icon,Ai=wr.className,mo=wr.onClick,Fr=wr.style,to=wr.primaryColor,Ji=wr.secondaryColor,bo=(0,b.Z)(wr,Dt),xn=$t;if(to&&(xn={primaryColor:to,secondaryColor:Ji||co(to)}),et(),Bs(Ce(Sr),"icon should be icon definiton, but got ".concat(Sr)),!Ce(Sr))return null;var fn=Sr;return fn&&typeof fn.icon=="function"&&(fn=(0,v.Z)((0,v.Z)({},fn),{},{icon:fn.icon(xn.primaryColor,xn.secondaryColor)})),qi(fn.icon,"svg-".concat(fn.name),(0,v.Z)({className:Ai,onClick:mo,style:Fr,"data-icon":fn.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},bo))};kn.displayName="IconReact",kn.getTwoToneColors=gr,kn.setTwoToneColors=Dn;var bn=kn;function zt(pn){var wr=fi(pn),Sr=(0,R.Z)(wr,2),Ai=Sr[0],mo=Sr[1];return bn.setTwoToneColors({primaryColor:Ai,secondaryColor:mo})}function Jt(){var pn=bn.getTwoToneColors();return pn.calculated?[pn.primaryColor,pn.secondaryColor]:pn.primaryColor}var yn=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];zt("#1890ff");var fr=B.forwardRef(function(pn,wr){var Sr,Ai=pn.className,mo=pn.icon,Fr=pn.spin,to=pn.rotate,Ji=pn.tabIndex,bo=pn.onClick,xn=pn.twoToneColor,fn=(0,b.Z)(pn,yn),It=B.useContext(C),Zt=It.prefixCls,gn=Zt===void 0?"anticon":Zt,$n=It.rootClassName,Ar=k()($n,gn,(Sr={},(0,w.Z)(Sr,"".concat(gn,"-").concat(mo.name),!!mo.name),(0,w.Z)(Sr,"".concat(gn,"-spin"),!!Fr||mo.name==="loading"),Sr),Ai),Dr=Ji;Dr===void 0&&bo&&(Dr=-1);var dr=to?{msTransform:"rotate(".concat(to,"deg)"),transform:"rotate(".concat(to,"deg)")}:void 0,Xt=fi(xn),Cn=(0,R.Z)(Xt,2),er=Cn[0],Mr=Cn[1];return B.createElement("span",(0,v.Z)((0,v.Z)({role:"img","aria-label":mo.name},fn),{},{ref:wr,tabIndex:Dr,onClick:bo,className:Ar}),B.createElement(bn,{icon:mo,primaryColor:er,secondaryColor:Mr,style:dr}))});fr.displayName="AntdIcon",fr.getTwoToneColor=Jt,fr.setTwoToneColor=zt;var vr=fr},63887:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(36439),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},b=w,B=_(58781),V=function(C,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="CaretRightOutlined";var k=R.forwardRef(V)},66850:function(_t,Y,_){"use strict";var v=_(36439),R=_(77617),w=_(7786),b=_(58781),B=function(k,M){return R.createElement(b.Z,(0,v.Z)((0,v.Z)({},k),{},{ref:M,icon:w.Z}))};B.displayName="CloseOutlined",Y.Z=R.forwardRef(B)},36584:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(36439),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"},b=w,B=_(58781),V=function(C,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="CloudDownloadOutlined";var k=R.forwardRef(V)},25394:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(36439),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},b=w,B=_(58781),V=function(C,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="CloudUploadOutlined";var k=R.forwardRef(V)},74307:function(_t,Y,_){"use strict";var v=_(36439),R=_(77617),w=_(77364),b=_(58781),B=function(k,M){return R.createElement(b.Z,(0,v.Z)((0,v.Z)({},k),{},{ref:M,icon:w.Z}))};B.displayName="DeleteOutlined",Y.Z=R.forwardRef(B)},69768:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(36439),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingtalk",theme:"outlined"},b=w,B=_(58781),V=function(C,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="DingtalkOutlined";var k=R.forwardRef(V)},41445:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(36439),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M600 395.4h91V649h79V267c0-4.4-3.6-8-8-8h-48.2c-3.7 0-7 2.6-7.7 6.3-2.6 12.1-6.9 22.3-12.9 30.9a86.14 86.14 0 01-26.3 24.4c-10.3 6.2-22 10.5-35 12.9-10.4 1.9-21 3-32 3.1a8 8 0 00-7.9 8v42.8c0 4.4 3.6 8 8 8zM871 702H567c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM443.9 312.7c-16.1-19-34.4-32.4-55.2-40.4-21.3-8.2-44.1-12.3-68.4-12.3-23.9 0-46.4 4.1-67.7 12.3-20.8 8-39 21.4-54.8 40.3-15.9 19.1-28.7 44.7-38.3 77-9.6 32.5-14.5 73-14.5 121.5 0 49.9 4.9 91.4 14.5 124.4 9.6 32.8 22.4 58.7 38.3 77.7 15.8 18.9 34 32.3 54.8 40.3 21.3 8.2 43.8 12.3 67.7 12.3 24.4 0 47.2-4.1 68.4-12.3 20.8-8 39.2-21.4 55.2-40.4 16.1-19 29-44.9 38.6-77.7 9.6-33 14.5-74.5 14.5-124.4 0-48.4-4.9-88.9-14.5-121.5-9.5-32.1-22.4-57.7-38.6-76.8zm-29.5 251.7c-1 21.4-4.2 42-9.5 61.9-5.5 20.7-14.5 38.5-27 53.4-13.6 16.3-33.2 24.3-57.6 24.3-24 0-43.2-8.1-56.7-24.4-12.2-14.8-21.1-32.6-26.6-53.3-5.3-19.9-8.5-40.6-9.5-61.9-1-20.8-1.5-38.5-1.5-53.2 0-8.8.1-19.4.4-31.8.2-12.7 1.1-25.8 2.6-39.2 1.5-13.6 4-27.1 7.6-40.5 3.7-13.8 8.8-26.3 15.4-37.4 6.9-11.6 15.8-21.1 26.7-28.3 11.4-7.6 25.3-11.3 41.5-11.3 16.1 0 30.1 3.7 41.7 11.2a87.94 87.94 0 0127.4 28.2c6.9 11.2 12.1 23.8 15.6 37.7 3.3 13.2 5.8 26.6 7.5 40.1 1.8 13.5 2.8 26.6 3 39.4.2 12.4.4 23 .4 31.8.1 14.8-.4 32.5-1.4 53.3z"}}]},name:"field-binary",theme:"outlined"},b=w,B=_(58781),V=function(C,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="FieldBinaryOutlined";var k=R.forwardRef(V)},64015:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(36439),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M875.6 515.9c2.1.8 4.4-.3 5.2-2.4.2-.4.2-.9.2-1.4v-58.3c0-1.8-1.1-3.3-2.8-3.8-6-1.8-17.2-3-27.2-3-32.9 0-61.7 16.7-73.5 41.2v-28.6c0-4.4-3.6-8-8-8H717c-4.4 0-8 3.6-8 8V729c0 4.4 3.6 8 8 8h54.8c4.4 0 8-3.6 8-8V572.7c0-36.2 26.1-60.2 65.1-60.2 10.4.1 26.6 1.8 30.7 3.4zm-537-40.5l-54.7-12.6c-61.2-14.2-87.7-34.8-87.7-70.7 0-44.6 39.1-73.5 96.9-73.5 52.8 0 91.4 26.5 99.9 68.9h70C455.9 311.6 387.6 259 293.4 259c-103.3 0-171 55.5-171 139 0 68.6 38.6 109.5 122.2 128.5l61.6 14.3c63.6 14.9 91.6 37.1 91.6 75.1 0 44.1-43.5 75.2-102.5 75.2-60.6 0-104.5-27.2-112.8-70.5H111c7.2 79.9 75.6 130.4 179.1 130.4C402.3 751 471 695.2 471 605.3c0-70.2-38.6-108.5-132.4-129.9zM841 729a36 36 0 1072 0 36 36 0 10-72 0zM653 457.8h-51.4V396c0-4.4-3.6-8-8-8h-54.7c-4.4 0-8 3.6-8 8v61.8H495c-4.4 0-8 3.6-8 8v42.3c0 4.4 3.6 8 8 8h35.9v147.5c0 56.2 27.4 79.4 93.1 79.4 11.7 0 23.6-1.2 33.8-3.1 1.9-.3 3.2-2 3.2-3.9v-49.3c0-2.2-1.8-4-4-4h-.4c-4.9.5-6.2.6-8.3.8-4.1.3-7.8.5-12.6.5-24.1 0-34.1-10.3-34.1-35.6V516.1H653c4.4 0 8-3.6 8-8v-42.3c0-4.4-3.6-8-8-8z"}}]},name:"field-string",theme:"outlined"},b=w,B=_(58781),V=function(C,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="FieldStringOutlined";var k=R.forwardRef(V)},54068:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(36439),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},b=w,B=_(58781),V=function(C,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="FileTextOutlined";var k=R.forwardRef(V)},7741:function(_t,Y,_){"use strict";var v=_(36439),R=_(77617),w=_(58825),b=_(58781),B=function(k,M){return R.createElement(b.Z,(0,v.Z)((0,v.Z)({},k),{},{ref:M,icon:w.Z}))};B.displayName="FilterFilled",Y.Z=R.forwardRef(B)},28909:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(36439),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},b=w,B=_(58781),V=function(C,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="FilterOutlined";var k=R.forwardRef(V)},9971:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(36439),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z"}}]},name:"flag",theme:"outlined"},b=w,B=_(58781),V=function(C,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="FlagOutlined";var k=R.forwardRef(V)},87922:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(36439),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},b=w,B=_(58781),V=function(C,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="FormOutlined";var k=R.forwardRef(V)},68380:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(36439),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},b=w,B=_(58781),V=function(C,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="GithubOutlined";var k=R.forwardRef(V)},54977:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(36439),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},b=w,B=_(58781),V=function(C,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="GlobalOutlined";var k=R.forwardRef(V)},20884:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(36439),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},b=w,B=_(58781),V=function(C,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="MinusCircleOutlined";var k=R.forwardRef(V)},22840:function(_t,Y,_){"use strict";var v=_(36439),R=_(77617),w=_(28186),b=_(58781),B=function(k,M){return R.createElement(b.Z,(0,v.Z)((0,v.Z)({},k),{},{ref:M,icon:w.Z}))};B.displayName="PlusOutlined",Y.Z=R.forwardRef(B)},43056:function(_t,Y,_){"use strict";var v=_(36439),R=_(77617),w=_(15702),b=_(58781),B=function(k,M){return R.createElement(b.Z,(0,v.Z)((0,v.Z)({},k),{},{ref:M,icon:w.Z}))};B.displayName="PlusSquareOutlined",Y.Z=R.forwardRef(B)},83624:function(_t,Y,_){"use strict";var v=_(36439),R=_(77617),w=_(40043),b=_(58781),B=function(k,M){return R.createElement(b.Z,(0,v.Z)((0,v.Z)({},k),{},{ref:M,icon:w.Z}))};B.displayName="QuestionCircleOutlined",Y.Z=R.forwardRef(B)},96278:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(36439),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},b=w,B=_(58781),V=function(C,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="SaveOutlined";var k=R.forwardRef(V)},48619:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(36439),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},b=w,B=_(58781),V=function(C,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="SettingOutlined";var k=R.forwardRef(V)},43959:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(36439),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"}}]},name:"table",theme:"outlined"},b=w,B=_(58781),V=function(C,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="TableOutlined";var k=R.forwardRef(V)},74852:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(36439),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},b=w,B=_(58781),V=function(C,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="UploadOutlined";var k=R.forwardRef(V)},91851:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return Ct}});var v=_(61796),R=_(61860),w=_(35005),b=_(33649),B=_(77617),V=_(12124),k=_.n(V),M=_(63511),C=_(35954),g=_(36439),A=_(96522),O=_(75966),K=_(39057),ce=_(36014);function de(lt){return lt.replace(/-(.)/g,function(Gt,Rt){return Rt.toUpperCase()})}function ve(lt,Gt){(0,ce.ZP)(lt,"[@ant-design/icons] ".concat(Gt))}function Ee(lt){return(0,A.Z)(lt)==="object"&&typeof lt.name=="string"&&typeof lt.theme=="string"&&((0,A.Z)(lt.icon)==="object"||typeof lt.icon=="function")}function _e(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(lt).reduce(function(Gt,Rt){var an=lt[Rt];switch(Rt){case"class":Gt.className=an,delete Gt.class;break;default:delete Gt[Rt],Gt[de(Rt)]=an}return Gt},{})}function we(lt,Gt,Rt){return Rt?B.createElement(lt.tag,(0,g.Z)((0,g.Z)({key:Gt},_e(lt.attrs)),Rt),(lt.children||[]).map(function(an,cn){return we(an,"".concat(Gt,"-").concat(lt.tag,"-").concat(cn))})):B.createElement(lt.tag,(0,g.Z)({key:Gt},_e(lt.attrs)),(lt.children||[]).map(function(an,cn){return we(an,"".concat(Gt,"-").concat(lt.tag,"-").concat(cn))}))}function ot(lt){return(0,M.R_)(lt)[0]}function He(lt){return lt?Array.isArray(lt)?lt:[lt]:[]}var vt={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},dt=` -.anticon { - display: inline-block; - color: inherit; - font-style: normal; - line-height: 0; - text-align: center; - text-transform: none; - vertical-align: -0.125em; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.anticon > * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`,Pe=function(Gt){var Rt=(0,B.useContext)(C.Z),an=Rt.csp,cn=Rt.prefixCls,Cr=dt;cn&&(Cr=Cr.replace(/anticon/g,cn)),(0,B.useEffect)(function(){var ii=Gt.current,Pi=(0,K.A)(ii);(0,O.hq)(Cr,"@ant-design-icons",{prepend:!0,csp:an,attachTo:Pi})},[])},De=["icon","className","onClick","style","primaryColor","secondaryColor"],Ae={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Re(lt){var Gt=lt.primaryColor,Rt=lt.secondaryColor;Ae.primaryColor=Gt,Ae.secondaryColor=Rt||ot(Gt),Ae.calculated=!!Rt}function $e(){return(0,g.Z)({},Ae)}var Ie=function(Gt){var Rt=Gt.icon,an=Gt.className,cn=Gt.onClick,Cr=Gt.style,ii=Gt.primaryColor,Pi=Gt.secondaryColor,Ni=(0,b.Z)(Gt,De),Yi=B.useRef(),ti=Ae;if(ii&&(ti={primaryColor:ii,secondaryColor:Pi||ot(ii)}),Pe(Yi),ve(Ee(Rt),"icon should be icon definiton, but got ".concat(Rt)),!Ee(Rt))return null;var Ts=Rt;return Ts&&typeof Ts.icon=="function"&&(Ts=(0,g.Z)((0,g.Z)({},Ts),{},{icon:Ts.icon(ti.primaryColor,ti.secondaryColor)})),we(Ts.icon,"svg-".concat(Ts.name),(0,g.Z)((0,g.Z)({className:an,onClick:cn,style:Cr,"data-icon":Ts.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},Ni),{},{ref:Yi}))};Ie.displayName="IconReact",Ie.getTwoToneColors=$e,Ie.setTwoToneColors=Re;var Xe=Ie;function ze(lt){var Gt=He(lt),Rt=(0,R.Z)(Gt,2),an=Rt[0],cn=Rt[1];return Xe.setTwoToneColors({primaryColor:an,secondaryColor:cn})}function Kt(){var lt=Xe.getTwoToneColors();return lt.calculated?[lt.primaryColor,lt.secondaryColor]:lt.primaryColor}var St=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ze(M.iN.primary);var nt=B.forwardRef(function(lt,Gt){var Rt,an=lt.className,cn=lt.icon,Cr=lt.spin,ii=lt.rotate,Pi=lt.tabIndex,Ni=lt.onClick,Yi=lt.twoToneColor,ti=(0,b.Z)(lt,St),Ts=B.useContext(C.Z),Bs=Ts.prefixCls,Ce=Bs===void 0?"anticon":Bs,Gi=Ts.rootClassName,qi=k()(Gi,Ce,(Rt={},(0,w.Z)(Rt,"".concat(Ce,"-").concat(cn.name),!!cn.name),(0,w.Z)(Rt,"".concat(Ce,"-spin"),!!Cr||cn.name==="loading"),Rt),an),co=Pi;co===void 0&&Ni&&(co=-1);var fi=ii?{msTransform:"rotate(".concat(ii,"deg)"),transform:"rotate(".concat(ii,"deg)")}:void 0,Ms=He(Yi),In=(0,R.Z)(Ms,2),et=In[0],Dt=In[1];return B.createElement("span",(0,v.Z)({role:"img","aria-label":cn.name},ti,{ref:Gt,tabIndex:co,onClick:Ni,className:qi}),B.createElement(Xe,{icon:cn,primaryColor:et,secondaryColor:Dt,style:fi}))});nt.displayName="AntdIcon",nt.getTwoToneColor=Kt,nt.setTwoToneColor=ze;var Ct=nt},35954:function(_t,Y,_){"use strict";var v=_(77617),R=(0,v.createContext)({});Y.Z=R},95934:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(61796),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},b=w,B=_(91851),V=function(C,g){return R.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=R.forwardRef(V)},75769:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(61796),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},b=w,B=_(91851),V=function(C,g){return R.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=R.forwardRef(V)},48796:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(61796),R=_(77617),w={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},b=w,B=_(91851),V=function(C,g){return R.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=R.forwardRef(V)},49934:function(_t,Y,_){"use strict";var v=_(61796),R=_(77617),w=_(7786),b=_(91851),B=function(k,M){return R.createElement(b.Z,(0,v.Z)({},k,{ref:M,icon:w.Z}))};Y.Z=R.forwardRef(B)},42884:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(61796),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},b=w,B=_(91851),V=function(C,g){return R.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=R.forwardRef(V)},93319:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(61796),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},b=w,B=_(91851),V=function(C,g){return R.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=R.forwardRef(V)},86850:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(61796),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},b=w,B=_(91851),V=function(C,g){return R.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=R.forwardRef(V)},15997:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(61796),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},b=w,B=_(91851),V=function(C,g){return R.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=R.forwardRef(V)},37748:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(61796),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},b=w,B=_(91851),V=function(C,g){return R.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=R.forwardRef(V)},52063:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(61796),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},b=w,B=_(91851),V=function(C,g){return R.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=R.forwardRef(V)},38521:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(61796),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},b=w,B=_(91851),V=function(C,g){return R.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=R.forwardRef(V)},22311:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(61796),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},b=w,B=_(91851),V=function(C,g){return R.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=R.forwardRef(V)},46820:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(61796),R=_(77617),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},b=w,B=_(91851),V=function(C,g){return R.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=R.forwardRef(V)},73450:function(){window._iconfont_svg_string_3580659='',function(_t){try{let C=function(){B||(B=!0,w())},g=function(){try{b.documentElement.doScroll("left")}catch(A){return void setTimeout(g,50)}C()};var k=C,M=g,_=(_=document.getElementsByTagName("script"))[_.length-1],Y=_.getAttribute("data-injectcss"),_=_.getAttribute("data-disable-injectsvg");if(!_){var v,R,w,b,B,V=function(O,K){K.parentNode.insertBefore(O,K)};if(Y&&!_t.__iconfont__svg__cssinject__){_t.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(A){console&&console.log(A)}}v=function(){var O,K=document.createElement("div");K.innerHTML=_t._iconfont_svg_string_3580659,(K=K.getElementsByTagName("svg")[0])&&(K.setAttribute("aria-hidden","true"),K.style.position="absolute",K.style.width=0,K.style.height=0,K.style.overflow="hidden",K=K,(O=document.body).firstChild?V(K,O.firstChild):O.appendChild(K))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(v,0):(R=function(){document.removeEventListener("DOMContentLoaded",R,!1),v()},document.addEventListener("DOMContentLoaded",R,!1)):document.attachEvent&&(w=v,b=_t.document,B=!1,g(),b.onreadystatechange=function(){b.readyState=="complete"&&(b.onreadystatechange=null,C())})}}catch(C){}}(window)},50153:function(_t,Y,_){(function(v,R){R(Y,_(19501))})(this,function(v,R){"use strict";var w={draw:"crosshair",pointHover:"pointer",pointDrag:"move",lineHover:"pointer",lineDrag:"move",polygonHover:"pointer",polygonDrag:"move"},b={point:[],line:[],polygon:[],midPoint:[],dashLine:[],text:[]},B="top",V="bottom",k="right",M="left",C="auto",g=[B,V,k,M],A="start",O="end",K="clippingParents",ce="viewport",de="popper",ve="reference",Ee=g.reduce(function(Me,f){return Me.concat([f+"-"+A,f+"-"+O])},[]),_e=[].concat(g,[C]).reduce(function(Me,f){return Me.concat([f,f+"-"+A,f+"-"+O])},[]),we=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ot(Me){return Me?(Me.nodeName||"").toLowerCase():null}function He(Me){if(Me==null)return window;if(""+Me!="[object Window]"){var f=Me.ownerDocument;return f&&f.defaultView||window}return Me}function vt(Me){return Me instanceof He(Me).Element||Me instanceof Element}function dt(Me){return Me instanceof He(Me).HTMLElement||Me instanceof HTMLElement}function Pe(Me){return typeof ShadowRoot!="undefined"&&(Me instanceof He(Me).ShadowRoot||Me instanceof ShadowRoot)}var De={name:"applyStyles",enabled:!0,phase:"write",fn:function(Me){var f=Me.state;Object.keys(f.elements).forEach(function(y){var T=f.styles[y]||{},W=f.attributes[y]||{},re=f.elements[y];dt(re)&&ot(re)&&(Object.assign(re.style,T),Object.keys(W).forEach(function(he){var Le=W[he];Le===!1?re.removeAttribute(he):re.setAttribute(he,Le===!0?"":Le)}))})},effect:function(Me){var f=Me.state,y={popper:{position:f.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(f.elements.popper.style,y.popper),f.styles=y,f.elements.arrow&&Object.assign(f.elements.arrow.style,y.arrow),function(){Object.keys(f.elements).forEach(function(T){var W=f.elements[T],re=f.attributes[T]||{},he=Object.keys(f.styles.hasOwnProperty(T)?f.styles[T]:y[T]).reduce(function(Le,qe){return Le[qe]="",Le},{});dt(W)&&ot(W)&&(Object.assign(W.style,he),Object.keys(re).forEach(function(Le){W.removeAttribute(Le)}))})}},requires:["computeStyles"]};function Ae(Me){return Me.split("-")[0]}var Re=Math.max,$e=Math.min,Ie=Math.round;function Xe(){var Me=navigator.userAgentData;return Me!=null&&Me.brands&&Array.isArray(Me.brands)?Me.brands.map(function(f){return f.brand+"/"+f.version}).join(" "):navigator.userAgent}function ze(){return!/^((?!chrome|android).)*safari/i.test(Xe())}function Kt(Me,f,y){f===void 0&&(f=!1),y===void 0&&(y=!1);var T=Me.getBoundingClientRect(),W=1,re=1;f&&dt(Me)&&(W=Me.offsetWidth>0&&Ie(T.width)/Me.offsetWidth||1,re=Me.offsetHeight>0&&Ie(T.height)/Me.offsetHeight||1);var he=(vt(Me)?He(Me):window).visualViewport,Le=!ze()&&y,qe=(T.left+(Le&&he?he.offsetLeft:0))/W,Ut=(T.top+(Le&&he?he.offsetTop:0))/re,rn=T.width/W,Qn=T.height/re;return{width:rn,height:Qn,top:Ut,right:qe+rn,bottom:Ut+Qn,left:qe,x:qe,y:Ut}}function St(Me){var f=Kt(Me),y=Me.offsetWidth,T=Me.offsetHeight;return Math.abs(f.width-y)>1||(y=f.width),Math.abs(f.height-T)>1||(T=f.height),{x:Me.offsetLeft,y:Me.offsetTop,width:y,height:T}}function nt(Me,f){var y=f.getRootNode&&f.getRootNode();if(Me.contains(f))return!0;if(y&&Pe(y)){var T=f;do{if(T&&Me.isSameNode(T))return!0;T=T.parentNode||T.host}while(T)}return!1}function Ct(Me){return He(Me).getComputedStyle(Me)}function lt(Me){return["table","td","th"].indexOf(ot(Me))>=0}function Gt(Me){return((vt(Me)?Me.ownerDocument:Me.document)||window.document).documentElement}function Rt(Me){return ot(Me)==="html"?Me:Me.assignedSlot||Me.parentNode||(Pe(Me)?Me.host:null)||Gt(Me)}function an(Me){return dt(Me)&&Ct(Me).position!=="fixed"?Me.offsetParent:null}function cn(Me){for(var f=He(Me),y=an(Me);y&<(y)&&Ct(y).position==="static";)y=an(y);return y&&(ot(y)==="html"||ot(y)==="body"&&Ct(y).position==="static")?f:y||function(T){var W=/firefox/i.test(Xe());if(/Trident/i.test(Xe())&&dt(T)&&Ct(T).position==="fixed")return null;var re=Rt(T);for(Pe(re)&&(re=re.host);dt(re)&&0>["html","body"].indexOf(ot(re));){var he=Ct(re);if(he.transform!=="none"||he.perspective!=="none"||he.contain==="paint"||["transform","perspective"].indexOf(he.willChange)!==-1||W&&he.willChange==="filter"||W&&he.filter&&he.filter!=="none")return re;re=re.parentNode}return null}(Me)||f}function Cr(Me){return 0>["top","bottom"].indexOf(Me)?"y":"x"}function ii(Me,f,y){return Re(Me,$e(f,y))}function Pi(Me){return Object.assign({},{top:0,right:0,bottom:0,left:0},Me)}function Ni(Me,f){return f.reduce(function(y,T){return y[T]=Me,y},{})}var Yi={name:"arrow",enabled:!0,phase:"main",fn:function(Me){var f,y=Me.state,T=Me.name,W=Me.options,re=y.elements.arrow,he=y.modifiersData.popperOffsets,Le=Ae(y.placement),qe=Cr(Le),Ut=[M,k].indexOf(Le)>=0?"height":"width";if(re&&he){var rn=function(Js,Ua){return Pi(typeof(Js=typeof Js=="function"?Js(Object.assign({},Ua.rects,{placement:Ua.placement})):Js)!="number"?Js:Ni(Js,g))}(W.padding,y),Qn=St(re),br=qe==="y"?B:M,Ci=qe==="y"?V:k,Ii=y.rects.reference[Ut]+y.rects.reference[qe]-he[qe]-y.rects.popper[Ut],Po=he[qe]-y.rects.reference[qe],Io=cn(re),Zo=Io?qe==="y"?Io.clientHeight||0:Io.clientWidth||0:0,Ro=Zo/2-Qn[Ut]/2+(Ii/2-Po/2),lo=ii(rn[br],Ro,Zo-Qn[Ut]-rn[Ci]);y.modifiersData[T]=((f={})[qe]=lo,f.centerOffset=lo-Ro,f)}},effect:function(Me){var f=Me.state,y=Me.options.element,T=y===void 0?"[data-popper-arrow]":y;T!=null&&(typeof T!="string"||(T=f.elements.popper.querySelector(T)))&&nt(f.elements.popper,T)&&(f.elements.arrow=T)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ti(Me){return Me.split("-")[1]}var Ts={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bs(Me){var f,y=Me.popper,T=Me.popperRect,W=Me.placement,re=Me.variation,he=Me.offsets,Le=Me.position,qe=Me.gpuAcceleration,Ut=Me.adaptive,rn=Me.roundOffsets,Qn=Me.isFixed,br=he.x,Ci=br===void 0?0:br,Ii=he.y,Po=Ii===void 0?0:Ii,Io=typeof rn=="function"?rn({x:Ci,y:Po}):{x:Ci,y:Po};Ci=Io.x,Po=Io.y;var Zo=he.hasOwnProperty("x"),Ro=he.hasOwnProperty("y"),lo=M,Js=B,Ua=window;if(Ut){var _l=cn(y),fu="clientHeight",zu="clientWidth";_l===He(y)&&Ct(_l=Gt(y)).position!=="static"&&Le==="absolute"&&(fu="scrollHeight",zu="scrollWidth"),(W===B||(W===M||W===k)&&re===O)&&(Js=V,Po-=(Qn&&_l===Ua&&Ua.visualViewport?Ua.visualViewport.height:_l[fu])-T.height,Po*=qe?1:-1),(W===M||(W===B||W===V)&&re===O)&&(lo=k,Ci-=(Qn&&_l===Ua&&Ua.visualViewport?Ua.visualViewport.width:_l[zu])-T.width,Ci*=qe?1:-1)}var Lu,od=Object.assign({position:Le},Ut&&Ts),wu=rn===!0?function(zc,Nn){var or=zc.y,Wr=Nn.devicePixelRatio||1;return{x:Ie(zc.x*Wr)/Wr||0,y:Ie(or*Wr)/Wr||0}}({x:Ci,y:Po},He(y)):{x:Ci,y:Po};return Ci=wu.x,Po=wu.y,Object.assign({},od,qe?((Lu={})[Js]=Ro?"0":"",Lu[lo]=Zo?"0":"",Lu.transform=(Ua.devicePixelRatio||1)>1?"translate3d("+Ci+"px, "+Po+"px, 0)":"translate("+Ci+"px, "+Po+"px)",Lu):((f={})[Js]=Ro?Po+"px":"",f[lo]=Zo?Ci+"px":"",f.transform="",f))}var Ce={passive:!0},Gi={left:"right",right:"left",bottom:"top",top:"bottom"};function qi(Me){return Me.replace(/left|right|bottom|top/g,function(f){return Gi[f]})}var co={start:"end",end:"start"};function fi(Me){return Me.replace(/start|end/g,function(f){return co[f]})}function Ms(Me){var f=He(Me);return{scrollLeft:f.pageXOffset,scrollTop:f.pageYOffset}}function In(Me){return Kt(Gt(Me)).left+Ms(Me).scrollLeft}function et(Me){var f=Ct(Me);return/auto|scroll|overlay|hidden/.test(f.overflow+f.overflowY+f.overflowX)}function Dt(Me){return 0>["html","body","#document"].indexOf(ot(Me))?dt(Me)&&et(Me)?Me:Dt(Rt(Me)):Me.ownerDocument.body}function $t(Me,f){var y;f===void 0&&(f=[]);var T=Dt(Me),W=T===((y=Me.ownerDocument)==null?void 0:y.body),re=He(T),he=W?[re].concat(re.visualViewport||[],et(T)?T:[]):T,Le=f.concat(he);return W?Le:Le.concat($t(Rt(he)))}function Dn(Me){return Object.assign({},Me,{left:Me.x,top:Me.y,right:Me.x+Me.width,bottom:Me.y+Me.height})}function gr(Me,f,y){return f===ce?Dn(function(T,W){var re=He(T),he=Gt(T),Le=re.visualViewport,qe=he.clientWidth,Ut=he.clientHeight,rn=0,Qn=0;if(Le){qe=Le.width,Ut=Le.height;var br=ze();(br||!br&&W==="fixed")&&(rn=Le.offsetLeft,Qn=Le.offsetTop)}return{width:qe,height:Ut,x:rn+In(T),y:Qn}}(Me,y)):vt(f)?function(T,W){var re=Kt(T,!1,W==="fixed");return re.top=re.top+T.clientTop,re.left=re.left+T.clientLeft,re.bottom=re.top+T.clientHeight,re.right=re.left+T.clientWidth,re.width=T.clientWidth,re.height=T.clientHeight,re.x=re.left,re.y=re.top,re}(f,y):Dn(function(T){var W,re=Gt(T),he=Ms(T),Le=(W=T.ownerDocument)==null?void 0:W.body,qe=Re(re.scrollWidth,re.clientWidth,Le?Le.scrollWidth:0,Le?Le.clientWidth:0),Ut=Re(re.scrollHeight,re.clientHeight,Le?Le.scrollHeight:0,Le?Le.clientHeight:0),rn=-he.scrollLeft+In(T),Qn=-he.scrollTop;return Ct(Le||re).direction==="rtl"&&(rn+=Re(re.clientWidth,Le?Le.clientWidth:0)-qe),{width:qe,height:Ut,x:rn,y:Qn}}(Gt(Me)))}function kn(Me,f,y,T){var W=f==="clippingParents"?function(Le){var qe=$t(Rt(Le)),Ut=["absolute","fixed"].indexOf(Ct(Le).position)>=0&&dt(Le)?cn(Le):Le;return vt(Ut)?qe.filter(function(rn){return vt(rn)&&nt(rn,Ut)&&ot(rn)!=="body"}):[]}(Me):[].concat(f),re=[].concat(W,[y]),he=re.reduce(function(Le,qe){var Ut=gr(Me,qe,T);return Le.top=Re(Ut.top,Le.top),Le.right=$e(Ut.right,Le.right),Le.bottom=$e(Ut.bottom,Le.bottom),Le.left=Re(Ut.left,Le.left),Le},gr(Me,re[0],T));return he.width=he.right-he.left,he.height=he.bottom-he.top,he.x=he.left,he.y=he.top,he}function bn(Me){var f,y=Me.reference,T=Me.element,W=Me.placement,re=W?Ae(W):null,he=W?ti(W):null,Le=y.x+y.width/2-T.width/2,qe=y.y+y.height/2-T.height/2;switch(re){case B:f={x:Le,y:y.y-T.height};break;case V:f={x:Le,y:y.y+y.height};break;case k:f={x:y.x+y.width,y:qe};break;case M:f={x:y.x-T.width,y:qe};break;default:f={x:y.x,y:y.y}}var Ut=re?Cr(re):null;if(Ut!=null){var rn=Ut==="y"?"height":"width";switch(he){case A:f[Ut]=f[Ut]-(y[rn]/2-T[rn]/2);break;case O:f[Ut]=f[Ut]+(y[rn]/2-T[rn]/2)}}return f}function zt(Me,f){f===void 0&&(f={});var y=f.placement,T=y===void 0?Me.placement:y,W=f.strategy,re=W===void 0?Me.strategy:W,he=f.boundary,Le=he===void 0?K:he,qe=f.rootBoundary,Ut=qe===void 0?ce:qe,rn=f.elementContext,Qn=rn===void 0?de:rn,br=f.altBoundary,Ci=br!==void 0&&br,Ii=f.padding,Po=Ii===void 0?0:Ii,Io=Pi(typeof Po!="number"?Po:Ni(Po,g)),Zo=Me.rects.popper,Ro=Me.elements[Ci?Qn===de?ve:de:Qn],lo=kn(vt(Ro)?Ro:Ro.contextElement||Gt(Me.elements.popper),Le,Ut,re),Js=Kt(Me.elements.reference),Ua=bn({reference:Js,element:Zo,strategy:"absolute",placement:T}),_l=Dn(Object.assign({},Zo,Ua)),fu=Qn===de?_l:Js,zu={top:lo.top-fu.top+Io.top,bottom:fu.bottom-lo.bottom+Io.bottom,left:lo.left-fu.left+Io.left,right:fu.right-lo.right+Io.right},Lu=Me.modifiersData.offset;if(Qn===de&&Lu){var od=Lu[T];Object.keys(zu).forEach(function(wu){var zc=0>[k,V].indexOf(wu)?-1:1;zu[wu]+=od[0>[B,V].indexOf(wu)?"x":"y"]*zc})}return zu}function Jt(Me,f){f===void 0&&(f={});var y=f.boundary,T=f.rootBoundary,W=f.padding,re=f.flipVariations,he=f.allowedAutoPlacements,Le=he===void 0?_e:he,qe=ti(f.placement),Ut=qe?re?Ee:Ee.filter(function(br){return ti(br)===qe}):g,rn=Ut.filter(function(br){return Le.indexOf(br)>=0});rn.length===0&&(rn=Ut);var Qn=rn.reduce(function(br,Ci){return br[Ci]=zt(Me,{placement:Ci,boundary:y,rootBoundary:T,padding:W})[Ae(Ci)],br},{});return Object.keys(Qn).sort(function(br,Ci){return Qn[br]-Qn[Ci]})}var yn={name:"flip",enabled:!0,phase:"main",fn:function(Me){var f=Me.state,y=Me.options,T=Me.name;if(!f.modifiersData[T]._skip){for(var W=y.mainAxis,re=W===void 0||W,he=y.altAxis,Le=he===void 0||he,qe=y.fallbackPlacements,Ut=y.padding,rn=y.boundary,Qn=y.rootBoundary,br=y.altBoundary,Ci=y.flipVariations,Ii=Ci===void 0||Ci,Po=y.allowedAutoPlacements,Io=f.options.placement,Zo=Ae(Io),Ro=qe||(Zo===Io||!Ii?[qi(Io)]:function(ul){if(Ae(ul)===C)return[];var nu=qi(ul);return[fi(ul),nu,fi(nu)]}(Io)),lo=[Io].concat(Ro).reduce(function(ul,nu){return ul.concat(Ae(nu)===C?Jt(f,{placement:nu,boundary:rn,rootBoundary:Qn,padding:Ut,flipVariations:Ii,allowedAutoPlacements:Po}):nu)},[]),Js=f.rects.reference,Ua=f.rects.popper,_l=new Map,fu=!0,zu=lo[0],Lu=0;lo.length>Lu;Lu++){var od=lo[Lu],wu=Ae(od),zc=ti(od)===A,Nn=[B,V].indexOf(wu)>=0,or=Nn?"width":"height",Wr=zt(f,{placement:od,boundary:rn,rootBoundary:Qn,altBoundary:br,padding:Ut}),hi=Nn?zc?k:M:zc?V:B;Js[or]>Ua[or]&&(hi=qi(hi));var io=qi(hi),ia=[];if(re&&ia.push(0>=Wr[wu]),Le&&ia.push(0>=Wr[hi],0>=Wr[io]),ia.every(function(ul){return ul})){zu=od,fu=!1;break}_l.set(od,ia)}if(fu)for(var rl=function(ul){var nu=lo.find(function(ks){var Tc=_l.get(ks);if(Tc)return Tc.slice(0,ul).every(function(ah){return ah})});if(nu)return zu=nu,"break"},js=Ii?3:1;js>0&&rl(js)!=="break";js--);f.placement!==zu&&(f.modifiersData[T]._skip=!0,f.placement=zu,f.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function fr(Me,f,y){return y===void 0&&(y={x:0,y:0}),{top:Me.top-f.height-y.y,right:Me.right-f.width+y.x,bottom:Me.bottom-f.height+y.y,left:Me.left-f.width-y.x}}function vr(Me){return[B,k,V,M].some(function(f){return Me[f]>=0})}var pn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(Me){var f=Me.state,y=Me.name,T=Me.options.offset,W=T===void 0?[0,0]:T,re=_e.reduce(function(qe,Ut){return qe[Ut]=function(rn,Qn,br){var Ci=Ae(rn),Ii=0>[M,B].indexOf(Ci)?1:-1,Po=typeof br=="function"?br(Object.assign({},Qn,{placement:rn})):br,Io=Po[0],Zo=Po[1];return Io=Io||0,Zo=(Zo||0)*Ii,0>[M,k].indexOf(Ci)?{x:Io,y:Zo}:{x:Zo,y:Io}}(Ut,f.rects,W),qe},{}),he=re[f.placement],Le=he.y;f.modifiersData.popperOffsets!=null&&(f.modifiersData.popperOffsets.x+=he.x,f.modifiersData.popperOffsets.y+=Le),f.modifiersData[y]=re}},wr={name:"preventOverflow",enabled:!0,phase:"main",fn:function(Me){var f=Me.state,y=Me.options,T=Me.name,W=y.mainAxis,re=W===void 0||W,he=y.altAxis,Le=he!==void 0&&he,qe=y.tether,Ut=qe===void 0||qe,rn=y.tetherOffset,Qn=rn===void 0?0:rn,br=zt(f,{boundary:y.boundary,rootBoundary:y.rootBoundary,padding:y.padding,altBoundary:y.altBoundary}),Ci=Ae(f.placement),Ii=ti(f.placement),Po=!Ii,Io=Cr(Ci),Zo=Io==="x"?"y":"x",Ro=f.modifiersData.popperOffsets,lo=f.rects.reference,Js=f.rects.popper,Ua=typeof Qn=="function"?Qn(Object.assign({},f.rects,{placement:f.placement})):Qn,_l=typeof Ua=="number"?{mainAxis:Ua,altAxis:Ua}:Object.assign({mainAxis:0,altAxis:0},Ua),fu=f.modifiersData.offset?f.modifiersData.offset[f.placement]:null,zu={x:0,y:0};if(Ro){if(re){var Lu,od=Io==="y"?B:M,wu=Io==="y"?V:k,zc=Io==="y"?"height":"width",Nn=Ro[Io],or=Nn+br[od],Wr=Nn-br[wu],hi=Ut?-Js[zc]/2:0,io=Ii===A?lo[zc]:Js[zc],ia=Ii===A?-Js[zc]:-lo[zc],rl=f.elements.arrow,js=Ut&&rl?St(rl):{width:0,height:0},ul=f.modifiersData["arrow#persistent"]?f.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},nu=ul[od],ks=ul[wu],Tc=ii(0,lo[zc],js[zc]),ah=Po?lo[zc]/2-hi-Tc-nu-_l.mainAxis:io-Tc-nu-_l.mainAxis,kd=Po?-lo[zc]/2+hi+Tc+ks+_l.mainAxis:ia+Tc+ks+_l.mainAxis,Sd=f.elements.arrow&&cn(f.elements.arrow),lh=(Lu=fu==null?void 0:fu[Io])!=null?Lu:0,sp=Nn+kd-lh,Ip=ii(Ut?$e(or,Nn+ah-lh-(Sd?Io==="y"?Sd.clientTop||0:Sd.clientLeft||0:0)):or,Nn,Ut?Re(Wr,sp):Wr);Ro[Io]=Ip,zu[Io]=Ip-Nn}if(Le){var wh,Fh=Ro[Zo],ss=Zo==="y"?"height":"width",Ll=Fh+br[Io==="x"?B:M],hf=Fh-br[Io==="x"?V:k],ff=[B,M].indexOf(Ci)!==-1,xf=(wh=fu==null?void 0:fu[Zo])!=null?wh:0,pg=ff?Ll:Fh-lo[ss]-Js[ss]-xf+_l.altAxis,wf=ff?Fh+lo[ss]+Js[ss]-xf-_l.altAxis:hf,ou=Ut&&ff?function(Id,rf,Vc){var zd=ii(Id,rf,Vc);return zd>Vc?Vc:zd}(pg,Fh,wf):ii(Ut?pg:Ll,Fh,Ut?wf:hf);Ro[Zo]=ou,zu[Zo]=ou-Fh}f.modifiersData[T]=zu}},requiresIfExists:["offset"]};function Sr(Me,f,y){y===void 0&&(y=!1);var T,W,re=dt(f),he=dt(f)&&function(Qn){var br=Qn.getBoundingClientRect(),Ci=Ie(br.width)/Qn.offsetWidth||1,Ii=Ie(br.height)/Qn.offsetHeight||1;return Ci!==1||Ii!==1}(f),Le=Gt(f),qe=Kt(Me,he,y),Ut={scrollLeft:0,scrollTop:0},rn={x:0,y:0};return(re||!re&&!y)&&((ot(f)!=="body"||et(Le))&&(Ut=(T=f)!==He(T)&&dt(T)?{scrollLeft:(W=T).scrollLeft,scrollTop:W.scrollTop}:Ms(T)),dt(f)?((rn=Kt(f,!0)).x+=f.clientLeft,rn.y+=f.clientTop):Le&&(rn.x=In(Le))),{x:qe.left+Ut.scrollLeft-rn.x,y:qe.top+Ut.scrollTop-rn.y,width:qe.width,height:qe.height}}function Ai(Me){var f=new Map,y=new Set,T=[];function W(re){y.add(re.name),[].concat(re.requires||[],re.requiresIfExists||[]).forEach(function(he){if(!y.has(he)){var Le=f.get(he);Le&&W(Le)}}),T.push(re)}return Me.forEach(function(re){f.set(re.name,re)}),Me.forEach(function(re){y.has(re.name)||W(re)}),T}var mo={placement:"bottom",modifiers:[],strategy:"absolute"};function Fr(){for(var Me=arguments.length,f=Array(Me),y=0;Me>y;y++)f[y]=arguments[y];return!f.some(function(T){return!(T&&typeof T.getBoundingClientRect=="function")})}function to(Me){Me===void 0&&(Me={});var f=Me.defaultModifiers,y=f===void 0?[]:f,T=Me.defaultOptions,W=T===void 0?mo:T;return function(re,he,Le){Le===void 0&&(Le=W);var qe,Ut,rn={placement:"bottom",orderedModifiers:[],options:Object.assign({},mo,W),modifiersData:{},elements:{reference:re,popper:he},attributes:{},styles:{}},Qn=[],br=!1,Ci={state:rn,setOptions:function(Po){var Io=typeof Po=="function"?Po(rn.options):Po;Ii(),rn.options=Object.assign({},W,rn.options,Io),rn.scrollParents={reference:vt(re)?$t(re):re.contextElement?$t(re.contextElement):[],popper:$t(he)};var Zo,Ro,lo=function(Js){var Ua=Ai(Js);return we.reduce(function(_l,fu){return _l.concat(Ua.filter(function(zu){return zu.phase===fu}))},[])}((Zo=[].concat(y,rn.options.modifiers),Ro=Zo.reduce(function(Js,Ua){var _l=Js[Ua.name];return Js[Ua.name]=_l?Object.assign({},_l,Ua,{options:Object.assign({},_l.options,Ua.options),data:Object.assign({},_l.data,Ua.data)}):Ua,Js},{}),Object.keys(Ro).map(function(Js){return Ro[Js]})));return rn.orderedModifiers=lo.filter(function(Js){return Js.enabled}),rn.orderedModifiers.forEach(function(Js){var Ua=Js.options,_l=Js.effect;if(typeof _l=="function"){var fu=_l({state:rn,name:Js.name,instance:Ci,options:Ua===void 0?{}:Ua});Qn.push(fu||function(){})}}),Ci.update()},forceUpdate:function(){if(!br){var Po=rn.elements,Io=Po.reference,Zo=Po.popper;if(Fr(Io,Zo)){rn.rects={reference:Sr(Io,cn(Zo),rn.options.strategy==="fixed"),popper:St(Zo)},rn.reset=!1,rn.placement=rn.options.placement,rn.orderedModifiers.forEach(function(_l){return rn.modifiersData[_l.name]=Object.assign({},_l.data)});for(var Ro=0;rn.orderedModifiers.length>Ro;Ro++)if(rn.reset!==!0){var lo=rn.orderedModifiers[Ro],Js=lo.fn,Ua=lo.options;typeof Js=="function"&&(rn=Js({state:rn,options:Ua===void 0?{}:Ua,name:lo.name,instance:Ci})||rn)}else rn.reset=!1,Ro=-1}}},update:(qe=function(){return new Promise(function(Po){Ci.forceUpdate(),Po(rn)})},function(){return Ut||(Ut=new Promise(function(Po){Promise.resolve().then(function(){Ut=void 0,Po(qe())})})),Ut}),destroy:function(){Ii(),br=!0}};if(!Fr(re,he))return Ci;function Ii(){Qn.forEach(function(Po){return Po()}),Qn=[]}return Ci.setOptions(Le).then(function(Po){!br&&Le.onFirstUpdate&&Le.onFirstUpdate(Po)}),Ci}}var Ji=to({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(Me){var f=Me.state,y=Me.instance,T=Me.options,W=T.scroll,re=W===void 0||W,he=T.resize,Le=he===void 0||he,qe=He(f.elements.popper),Ut=[].concat(f.scrollParents.reference,f.scrollParents.popper);return re&&Ut.forEach(function(rn){rn.addEventListener("scroll",y.update,Ce)}),Le&&qe.addEventListener("resize",y.update,Ce),function(){re&&Ut.forEach(function(rn){rn.removeEventListener("scroll",y.update,Ce)}),Le&&qe.removeEventListener("resize",y.update,Ce)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(Me){var f=Me.state;f.modifiersData[Me.name]=bn({reference:f.rects.reference,element:f.rects.popper,strategy:"absolute",placement:f.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(Me){var f=Me.state,y=Me.options,T=y.gpuAcceleration,W=T===void 0||T,re=y.adaptive,he=re===void 0||re,Le=y.roundOffsets,qe=Le===void 0||Le,Ut={placement:Ae(f.placement),variation:ti(f.placement),popper:f.elements.popper,popperRect:f.rects.popper,gpuAcceleration:W,isFixed:f.options.strategy==="fixed"};f.modifiersData.popperOffsets!=null&&(f.styles.popper=Object.assign({},f.styles.popper,Bs(Object.assign({},Ut,{offsets:f.modifiersData.popperOffsets,position:f.options.strategy,adaptive:he,roundOffsets:qe})))),f.modifiersData.arrow!=null&&(f.styles.arrow=Object.assign({},f.styles.arrow,Bs(Object.assign({},Ut,{offsets:f.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:qe})))),f.attributes.popper=Object.assign({},f.attributes.popper,{"data-popper-placement":f.placement})},data:{}},De,pn,yn,wr,Yi,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(Me){var f=Me.state,y=Me.name,T=f.rects.reference,W=f.rects.popper,re=f.modifiersData.preventOverflow,he=zt(f,{elementContext:"reference"}),Le=zt(f,{altBoundary:!0}),qe=fr(he,T),Ut=fr(Le,W,re),rn=vr(qe),Qn=vr(Ut);f.modifiersData[y]={referenceClippingOffsets:qe,popperEscapeOffsets:Ut,isReferenceHidden:rn,hasPopperEscaped:Qn},f.attributes.popper=Object.assign({},f.attributes.popper,{"data-popper-reference-hidden":rn,"data-popper-escaped":Qn})}}]}),bo="tippy-content",xn="tippy-backdrop",fn="tippy-arrow",It="tippy-svg-arrow",Zt={passive:!0,capture:!0},gn=function(){return document.body};function $n(Me,f,y){if(Array.isArray(Me)){var T=Me[f];return T==null?Array.isArray(y)?y[f]:y:T}return Me}function Ar(Me,f){var y={}.toString.call(Me);return y.indexOf("[object")===0&&y.indexOf(f+"]")>-1}function Dr(Me,f){return typeof Me=="function"?Me.apply(void 0,f):Me}function dr(Me,f){return f===0?Me:function(T){clearTimeout(y),y=setTimeout(function(){Me(T)},f)};var y}function Xt(Me){return[].concat(Me)}function Cn(Me,f){Me.indexOf(f)===-1&&Me.push(f)}function er(Me){return[].slice.call(Me)}function Mr(Me){return Object.keys(Me).reduce(function(f,y){return Me[y]!==void 0&&(f[y]=Me[y]),f},{})}function ji(){return document.createElement("div")}function An(Me){return["Element","Fragment"].some(function(f){return Ar(Me,f)})}function Xn(Me){return Ar(Me,"MouseEvent")}function nr(Me){return An(Me)?[Me]:function(f){return Ar(f,"NodeList")}(Me)?er(Me):Array.isArray(Me)?Me:er(document.querySelectorAll(Me))}function qr(Me,f){Me.forEach(function(y){y&&(y.style.transitionDuration=f+"ms")})}function vi(Me,f){Me.forEach(function(y){y&&y.setAttribute("data-state",f)})}function Hr(Me){var f,y=Xt(Me)[0];return y!=null&&(f=y.ownerDocument)!=null&&f.body?y.ownerDocument:document}function di(Me,f,y){var T=f+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(W){Me[T](W,y)})}function gi(Me,f){for(var y=f;y;){var T;if(Me.contains(y))return!0;y=y.getRootNode==null||(T=y.getRootNode())==null?void 0:T.host}return!1}var mi={isTouch:!1},Bi=0;function zr(){mi.isTouch||(mi.isTouch=!0,window.performance&&document.addEventListener("mousemove",Xr))}function Xr(){var Me=performance.now();20>Me-Bi&&(mi.isTouch=!1,document.removeEventListener("mousemove",Xr)),Bi=Me}function Qi(){var Me,f=document.activeElement;(Me=f)&&Me._tippy&&Me._tippy.reference===Me&&f.blur&&!f._tippy.state.isVisible&&f.blur()}var rs=typeof window!="undefined"&&typeof document!="undefined"&&!!window.msCrypto,Ur=Object.assign({appendTo:gn,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),gs=Object.keys(Ur);function Kr(Me){var f=(Me.plugins||[]).reduce(function(y,T){var W,re=T.name;return re&&(y[re]=Me[re]!==void 0?Me[re]:(W=Ur[re])!=null?W:T.defaultValue),y},{});return Object.assign({},Me,f)}function ri(Me,f){var y=Object.assign({},f,{content:Dr(f.content,[Me])},f.ignoreAttributes?{}:function(T,W){return(W?Object.keys(Kr(Object.assign({},Ur,{plugins:W}))):gs).reduce(function(re,he){var Le=(T.getAttribute("data-tippy-"+he)||"").trim();if(!Le)return re;if(he==="content")re[he]=Le;else try{re[he]=JSON.parse(Le)}catch(qe){re[he]=Le}return re},{})}(Me,f.plugins));return y.aria=Object.assign({},Ur.aria,y.aria),y.aria={expanded:y.aria.expanded==="auto"?f.interactive:y.aria.expanded,content:y.aria.content==="auto"?f.interactive?null:"describedby":y.aria.content},y}var is=function(){return"innerHTML"};function Jr(Me,f){Me[is()]=f}function _n(Me){var f=ji();return Me===!0?f.className=fn:(f.className=It,An(Me)?f.appendChild(Me):Jr(f,Me)),f}function Br(Me,f){An(f.content)?(Jr(Me,""),Me.appendChild(f.content)):typeof f.content!="function"&&(f.allowHTML?Jr(Me,f.content):Me.textContent=f.content)}function es(Me){var f=Me.firstElementChild,y=er(f.children);return{box:f,content:y.find(function(T){return T.classList.contains(bo)}),arrow:y.find(function(T){return T.classList.contains(fn)||T.classList.contains(It)}),backdrop:y.find(function(T){return T.classList.contains(xn)})}}function ko(Me){var f=ji(),y=ji();y.className="tippy-box",y.setAttribute("data-state","hidden"),y.setAttribute("tabindex","-1");var T=ji();function W(re,he){var Le=es(f),qe=Le.box,Ut=Le.content,rn=Le.arrow;he.theme?qe.setAttribute("data-theme",he.theme):qe.removeAttribute("data-theme"),typeof he.animation=="string"?qe.setAttribute("data-animation",he.animation):qe.removeAttribute("data-animation"),he.inertia?qe.setAttribute("data-inertia",""):qe.removeAttribute("data-inertia"),qe.style.maxWidth=typeof he.maxWidth=="number"?he.maxWidth+"px":he.maxWidth,he.role?qe.setAttribute("role",he.role):qe.removeAttribute("role"),re.content===he.content&&re.allowHTML===he.allowHTML||Br(Ut,Me.props),he.arrow?rn?re.arrow!==he.arrow&&(qe.removeChild(rn),qe.appendChild(_n(he.arrow))):qe.appendChild(_n(he.arrow)):rn&&qe.removeChild(rn)}return T.className=bo,T.setAttribute("data-state","hidden"),Br(T,Me.props),f.appendChild(y),y.appendChild(T),W(Me.props,Me.props),{popper:f,onUpdate:W}}ko.$$tippy=!0;var vs=1,Ba=[],uo=[];function ca(Me,f){var y,T,W,re,he,Le,qe,Ut,rn=ri(Me,Object.assign({},Ur,Kr(Mr(f)))),Qn=!1,br=!1,Ci=!1,Ii=!1,Po=[],Io=dr(wh,rn.interactiveDebounce),Zo=vs++,Ro=(Ut=rn.plugins).filter(function(ou,Id){return Ut.indexOf(ou)===Id}),lo={id:Zo,reference:Me,popper:ji(),popperInstance:null,props:rn,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:Ro,clearDelayTimeouts:function(){clearTimeout(y),clearTimeout(T),cancelAnimationFrame(W)},setProps:function(ou){if(!lo.state.isDestroyed){io("onBeforeUpdate",[lo,ou]),sp();var Id=lo.props,rf=ri(Me,Object.assign({},Id,Mr(ou),{ignoreAttributes:!0}));lo.props=rf,lh(),Id.interactiveDebounce!==rf.interactiveDebounce&&(js(),Io=dr(wh,rf.interactiveDebounce)),Id.triggerTarget&&!rf.triggerTarget?Xt(Id.triggerTarget).forEach(function(Vc){Vc.removeAttribute("aria-expanded")}):rf.triggerTarget&&Me.removeAttribute("aria-expanded"),rl(),hi(),_l&&_l(Id,rf),lo.popperInstance&&(hf(),xf().forEach(function(Vc){requestAnimationFrame(Vc._tippy.popperInstance.forceUpdate)})),io("onAfterUpdate",[lo,ou])}},setContent:function(ou){lo.setProps({content:ou})},show:function(){var ou=lo.state.isVisible,Id=lo.state.isDestroyed,rf=!lo.state.isEnabled,Vc=mi.isTouch&&!lo.props.touch,zd=$n(lo.props.duration,0,Ur.duration);if(!(ou||Id||rf||Vc)&&!zc().hasAttribute("disabled")&&(io("onShow",[lo],!1),lo.props.onShow(lo)!==!1)){if(lo.state.isVisible=!0,wu()&&(Ua.style.visibility="visible"),hi(),Tc(),lo.state.isMounted||(Ua.style.transition="none"),wu()){var H=or();qr([H.box,H.content],0)}Le=function(){var F;if(lo.state.isVisible&&!Ii){if(Ii=!0,Ua.style.transition=lo.props.moveTransition,wu()&&lo.props.animation){var te=or(),me=te.box,Ve=te.content;qr([me,Ve],zd),vi([me,Ve],"visible")}ia(),rl(),Cn(uo,lo),(F=lo.popperInstance)==null||F.forceUpdate(),io("onMount",[lo]),lo.props.animation&&wu()&&function(bt,gt){kd(bt,gt)}(zd,function(){lo.state.isShown=!0,io("onShown",[lo])})}},function(){var F,te=lo.props.appendTo,me=zc();F=lo.props.interactive&&te===gn||te==="parent"?me.parentNode:Dr(te,[me]),F.contains(Ua)||F.appendChild(Ua),lo.state.isMounted=!0,hf()}()}},hide:function(){var ou=!lo.state.isVisible,Id=lo.state.isDestroyed,rf=!lo.state.isEnabled,Vc=$n(lo.props.duration,1,Ur.duration);if(!(ou||Id||rf)&&(io("onHide",[lo],!1),lo.props.onHide(lo)!==!1)){if(lo.state.isVisible=!1,lo.state.isShown=!1,Ii=!1,Qn=!1,wu()&&(Ua.style.visibility="hidden"),js(),ah(),hi(!0),wu()){var zd=or(),H=zd.box,F=zd.content;lo.props.animation&&(qr([H,F],Vc),vi([H,F],"hidden"))}ia(),rl(),lo.props.animation?wu()&&function(te,me){kd(te,function(){!lo.state.isVisible&&Ua.parentNode&&Ua.parentNode.contains(Ua)&&me()})}(Vc,lo.unmount):lo.unmount()}},hideWithInteractivity:function(ou){Nn().addEventListener("mousemove",Io),Cn(Ba,Io),Io(ou)},enable:function(){lo.state.isEnabled=!0},disable:function(){lo.hide(),lo.state.isEnabled=!1},unmount:function(){lo.state.isVisible&&lo.hide(),lo.state.isMounted&&(ff(),xf().forEach(function(ou){ou._tippy.unmount()}),Ua.parentNode&&Ua.parentNode.removeChild(Ua),uo=uo.filter(function(ou){return ou!==lo}),lo.state.isMounted=!1,io("onHidden",[lo]))},destroy:function(){lo.state.isDestroyed||(lo.clearDelayTimeouts(),lo.unmount(),sp(),delete Me._tippy,lo.state.isDestroyed=!0,io("onDestroy",[lo]))}};if(!rn.render)return lo;var Js=rn.render(lo),Ua=Js.popper,_l=Js.onUpdate;Ua.setAttribute("data-tippy-root",""),Ua.id="tippy-"+lo.id,lo.popper=Ua,Me._tippy=lo,Ua._tippy=lo;var fu=Ro.map(function(ou){return ou.fn(lo)}),zu=Me.hasAttribute("aria-expanded");return lh(),rl(),hi(),io("onCreate",[lo]),rn.showOnCreate&&pg(),Ua.addEventListener("mouseenter",function(){lo.props.interactive&&lo.state.isVisible&&lo.clearDelayTimeouts()}),Ua.addEventListener("mouseleave",function(){lo.props.interactive&&lo.props.trigger.indexOf("mouseenter")>=0&&Nn().addEventListener("mousemove",Io)}),lo;function Lu(){var ou=lo.props.touch;return Array.isArray(ou)?ou:[ou,0]}function od(){return Lu()[0]==="hold"}function wu(){var ou;return!((ou=lo.props.render)==null||!ou.$$tippy)}function zc(){return qe||Me}function Nn(){var ou=zc().parentNode;return ou?Hr(ou):document}function or(){return es(Ua)}function Wr(ou){return lo.state.isMounted&&!lo.state.isVisible||mi.isTouch||re&&re.type==="focus"?0:$n(lo.props.delay,ou?0:1,Ur.delay)}function hi(ou){ou===void 0&&(ou=!1),Ua.style.pointerEvents=lo.props.interactive&&!ou?"":"none",Ua.style.zIndex=""+lo.props.zIndex}function io(ou,Id,rf){var Vc;rf===void 0&&(rf=!0),fu.forEach(function(zd){zd[ou]&&zd[ou].apply(zd,Id)}),rf&&(Vc=lo.props)[ou].apply(Vc,Id)}function ia(){var ou=lo.props.aria;if(ou.content){var Id="aria-"+ou.content,rf=Ua.id;Xt(lo.props.triggerTarget||Me).forEach(function(Vc){var zd=Vc.getAttribute(Id);if(lo.state.isVisible)Vc.setAttribute(Id,zd?zd+" "+rf:rf);else{var H=zd&&zd.replace(rf,"").trim();H?Vc.setAttribute(Id,H):Vc.removeAttribute(Id)}})}}function rl(){!zu&&lo.props.aria.expanded&&Xt(lo.props.triggerTarget||Me).forEach(function(ou){lo.props.interactive?ou.setAttribute("aria-expanded",lo.state.isVisible&&ou===zc()?"true":"false"):ou.removeAttribute("aria-expanded")})}function js(){Nn().removeEventListener("mousemove",Io),Ba=Ba.filter(function(ou){return ou!==Io})}function ul(ou){if(!mi.isTouch||!Ci&&ou.type!=="mousedown"){var Id=ou.composedPath&&ou.composedPath()[0]||ou.target;if(!lo.props.interactive||!gi(Ua,Id)){if(Xt(lo.props.triggerTarget||Me).some(function(rf){return gi(rf,Id)})){if(mi.isTouch||lo.state.isVisible&&lo.props.trigger.indexOf("click")>=0)return}else io("onClickOutside",[lo,ou]);lo.props.hideOnClick===!0&&(lo.clearDelayTimeouts(),lo.hide(),br=!0,setTimeout(function(){br=!1}),lo.state.isMounted||ah())}}}function nu(){Ci=!0}function ks(){Ci=!1}function Tc(){var ou=Nn();ou.addEventListener("mousedown",ul,!0),ou.addEventListener("touchend",ul,Zt),ou.addEventListener("touchstart",ks,Zt),ou.addEventListener("touchmove",nu,Zt)}function ah(){var ou=Nn();ou.removeEventListener("mousedown",ul,!0),ou.removeEventListener("touchend",ul,Zt),ou.removeEventListener("touchstart",ks,Zt),ou.removeEventListener("touchmove",nu,Zt)}function kd(ou,Id){var rf=or().box;function Vc(zd){zd.target===rf&&(di(rf,"remove",Vc),Id())}if(ou===0)return Id();di(rf,"remove",he),di(rf,"add",Vc),he=Vc}function Sd(ou,Id,rf){rf===void 0&&(rf=!1),Xt(lo.props.triggerTarget||Me).forEach(function(Vc){Vc.addEventListener(ou,Id,rf),Po.push({node:Vc,eventType:ou,handler:Id,options:rf})})}function lh(){var ou;od()&&(Sd("touchstart",Ip,{passive:!0}),Sd("touchend",Fh,{passive:!0})),(ou=lo.props.trigger,ou.split(/\s+/).filter(Boolean)).forEach(function(Id){if(Id!=="manual")switch(Sd(Id,Ip),Id){case"mouseenter":Sd("mouseleave",Fh);break;case"focus":Sd(rs?"focusout":"blur",ss);break;case"focusin":Sd("focusout",ss)}})}function sp(){Po.forEach(function(ou){ou.node.removeEventListener(ou.eventType,ou.handler,ou.options)}),Po=[]}function Ip(ou){var Id,rf=!1;if(lo.state.isEnabled&&!Ll(ou)&&!br){var Vc=((Id=re)==null?void 0:Id.type)==="focus";re=ou,qe=ou.currentTarget,rl(),!lo.state.isVisible&&Xn(ou)&&Ba.forEach(function(zd){return zd(ou)}),ou.type==="click"&&(0>lo.props.trigger.indexOf("mouseenter")||Qn)&&lo.props.hideOnClick!==!1&&lo.state.isVisible?rf=!0:pg(ou),ou.type==="click"&&(Qn=!rf),rf&&!Vc&&wf(ou)}}function wh(ou){var Id=ou.target,rf=zc().contains(Id)||Ua.contains(Id);if(ou.type!=="mousemove"||!rf){var Vc=xf().concat(Ua).map(function(zd){var H,F=(H=zd._tippy.popperInstance)==null?void 0:H.state;return F?{popperRect:zd.getBoundingClientRect(),popperState:F,props:rn}:null}).filter(Boolean);(function(zd,H){var F=H.clientX,te=H.clientY;return zd.every(function(me){var Ve=me.popperRect,bt=me.popperState,gt=me.props.interactiveBorder,Qt=bt.placement.split("-")[0],En=bt.modifiersData.offset;return!En||Ve.top-te+(Qt==="bottom"?En.top.y:0)>gt||te-Ve.bottom-(Qt==="top"?En.bottom.y:0)>gt||Ve.left-F+(Qt==="right"?En.left.x:0)>gt||F-Ve.right-(Qt==="left"?En.right.x:0)>gt})})(Vc,ou)&&(js(),wf(ou))}}function Fh(ou){Ll(ou)||lo.props.trigger.indexOf("click")>=0&&Qn||(lo.props.interactive?lo.hideWithInteractivity(ou):wf(ou))}function ss(ou){0>lo.props.trigger.indexOf("focusin")&&ou.target!==zc()||lo.props.interactive&&ou.relatedTarget&&Ua.contains(ou.relatedTarget)||wf(ou)}function Ll(ou){return!!mi.isTouch&&od()!==ou.type.indexOf("touch")>=0}function hf(){ff();var ou=lo.props,Id=ou.popperOptions,rf=ou.placement,Vc=ou.offset,zd=ou.getReferenceClientRect,H=ou.moveTransition,F=wu()?es(Ua).arrow:null,te=zd?{getBoundingClientRect:zd,contextElement:zd.contextElement||zc()}:Me,me={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(bt){var gt=bt.state;if(wu()){var Qt=or().box;["placement","reference-hidden","escaped"].forEach(function(En){En==="placement"?Qt.setAttribute("data-placement",gt.placement):gt.attributes.popper["data-popper-"+En]?Qt.setAttribute("data-"+En,""):Qt.removeAttribute("data-"+En)}),gt.attributes.popper={}}}},Ve=[{name:"offset",options:{offset:Vc}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!H}},me];wu()&&F&&Ve.push({name:"arrow",options:{element:F,padding:3}}),Ve.push.apply(Ve,(Id==null?void 0:Id.modifiers)||[]),lo.popperInstance=Ji(te,Ua,Object.assign({},Id,{placement:rf,onFirstUpdate:Le,modifiers:Ve}))}function ff(){lo.popperInstance&&(lo.popperInstance.destroy(),lo.popperInstance=null)}function xf(){return er(Ua.querySelectorAll("[data-tippy-root]"))}function pg(ou){lo.clearDelayTimeouts(),ou&&io("onTrigger",[lo,ou]),Tc();var Id=Wr(!0),rf=Lu(),Vc=rf[1];mi.isTouch&&rf[0]==="hold"&&Vc&&(Id=Vc),Id?y=setTimeout(function(){lo.show()},Id):lo.show()}function wf(ou){if(lo.clearDelayTimeouts(),io("onUntrigger",[lo,ou]),lo.state.isVisible){if(0>lo.props.trigger.indexOf("mouseenter")||0>lo.props.trigger.indexOf("click")||0>["mouseleave","mousemove"].indexOf(ou.type)||!Qn){var Id=Wr(!1);Id?T=setTimeout(function(){lo.state.isVisible&&lo.hide()},Id):W=requestAnimationFrame(function(){lo.hide()})}}else ah()}}function ll(Me,f){f===void 0&&(f={});var y=Ur.plugins.concat(f.plugins||[]);document.addEventListener("touchstart",zr,Zt),window.addEventListener("blur",Qi);var T=Object.assign({},f,{plugins:y}),W=nr(Me).reduce(function(re,he){var Le=he&&ca(he,T);return Le&&re.push(Le),re},[]);return An(Me)?W[0]:W}ll.defaultProps=Ur,ll.setDefaultProps=function(Me){Object.keys(Me).forEach(function(f){Ur[f]=Me[f]})},ll.currentInput=mi,Object.assign({},De,{effect:function(Me){var f=Me.state,y={popper:{position:f.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(f.elements.popper.style,y.popper),f.styles=y,f.elements.arrow&&Object.assign(f.elements.arrow.style,y.arrow)}});var Ti={clientX:0,clientY:0},Li=[];function eo(Me){Ti={clientX:Me.clientX,clientY:Me.clientY}}var Eo={name:"followCursor",defaultValue:!1,fn:function(Me){var f=Me.reference,y=Hr(Me.props.triggerTarget||f),T=!1,W=!1,re=!0,he=Me.props;function Le(){return Me.props.followCursor==="initial"&&Me.state.isVisible}function qe(){y.addEventListener("mousemove",Qn)}function Ut(){y.removeEventListener("mousemove",Qn)}function rn(){T=!0,Me.setProps({getReferenceClientRect:null}),T=!1}function Qn(Ii){var Po=!Ii.target||f.contains(Ii.target),Io=Me.props.followCursor,Zo=Ii.clientX,Ro=Ii.clientY,lo=f.getBoundingClientRect(),Js=Zo-lo.left,Ua=Ro-lo.top;!Po&&Me.props.interactive||Me.setProps({getReferenceClientRect:function(){var _l=f.getBoundingClientRect(),fu=Zo,zu=Ro;Io==="initial"&&(fu=_l.left+Js,zu=_l.top+Ua);var Lu=Io==="horizontal"?_l.top:zu,od=Io==="vertical"?_l.right:fu,wu=Io==="horizontal"?_l.bottom:zu,zc=Io==="vertical"?_l.left:fu;return{width:od-zc,height:wu-Lu,top:Lu,right:od,bottom:wu,left:zc}}})}function br(){Me.props.followCursor&&(Li.push({instance:Me,doc:y}),function(Ii){Ii.addEventListener("mousemove",eo)}(y))}function Ci(){(Li=Li.filter(function(Ii){return Ii.instance!==Me})).filter(function(Ii){return Ii.doc===y}).length===0&&function(Ii){Ii.removeEventListener("mousemove",eo)}(y)}return{onCreate:br,onDestroy:Ci,onBeforeUpdate:function(){he=Me.props},onAfterUpdate:function(Ii,Po){var Io=Po.followCursor;T||Io!==void 0&&he.followCursor!==Io&&(Ci(),Io?(br(),!Me.state.isMounted||W||Le()||qe()):(Ut(),rn()))},onMount:function(){Me.props.followCursor&&!W&&(re&&(Qn(Ti),re=!1),Le()||qe())},onTrigger:function(Ii,Po){Xn(Po)&&(Ti={clientX:Po.clientX,clientY:Po.clientY}),W=Po.type==="focus"},onHidden:function(){Me.props.followCursor&&(rn(),Ut(),re=!0)}}}};ll.setDefaultProps({render:ko});var hs,Wn,yo,Qo,os,Ko,Yn={showTotalDistance:!1,showDashDistance:!0,showWhen:["normal","active"],format:function(Me){return 1e3>Me?+Me.toFixed(2)+"m":+(Me/1e3).toFixed(2)+"km"}},kr={showWhen:["normal","active"],format:function(Me){return Me>1e6?"".concat(+(Me/1e6).toFixed(2),"km\xB2"):"".concat(+Me.toFixed(2),"m\xB2")}},Gr={maxSize:100},je={remove:["del","backspace"],revert:["command+z","ctrl+z"],redo:["command+shift+z","ctrl+shift+z"]},ut={allowHTML:!0,followCursor:!0,placement:"bottom-start",offset:[-10,20],plugins:[Eo],trigger:"manual",hideOnClick:!1,theme:"light"},ht={data:"drawData",pointAdsorbPixel:12,lineAdsorbPixel:10};function Ue(Me,f){var y=Object.keys(Me);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(Me);f&&(T=T.filter(function(W){return Object.getOwnPropertyDescriptor(Me,W).enumerable})),y.push.apply(y,T)}return y}function ft(Me){for(var f=1;arguments.length>f;f++){var y=arguments[f]!=null?arguments[f]:{};f%2?Ue(Object(y),!0).forEach(function(T){Ui(Me,T,y[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Me,Object.getOwnPropertyDescriptors(y)):Ue(Object(y)).forEach(function(T){Object.defineProperty(Me,T,Object.getOwnPropertyDescriptor(y,T))})}return Me}function Pt(Me){return Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},Pt(Me)}function ln(Me,f){if(!(Me instanceof f))throw new TypeError("Cannot call a class as a function")}function sr(Me,f){for(var y=0;f.length>y;y++){var T=f[y];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(Me,Hl(T.key),T)}}function Zr(Me,f,y){return f&&sr(Me.prototype,f),y&&sr(Me,y),Object.defineProperty(Me,"prototype",{writable:!1}),Me}function Ui(Me,f,y){return(f=Hl(f))in Me?Object.defineProperty(Me,f,{value:y,enumerable:!0,configurable:!0,writable:!0}):Me[f]=y,Me}function To(Me,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");Me.prototype=Object.create(f&&f.prototype,{constructor:{value:Me,writable:!0,configurable:!0}}),Object.defineProperty(Me,"prototype",{writable:!1}),f&&Us(Me,f)}function Vi(Me){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},Vi(Me)}function Us(Me,f){return Us=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,T){return y.__proto__=T,y},Us(Me,f)}function Is(Me){if(Me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me}function Rs(Me){var f=function(){if(typeof Reflect=="undefined"||!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(y){return!1}}();return function(){var y,T=Vi(Me);if(f){var W=Vi(this).constructor;y=Reflect.construct(T,arguments,W)}else y=T.apply(this,arguments);return function(re,he){if(he&&(typeof he=="object"||typeof he=="function"))return he;if(he!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Is(re)}(this,y)}}function Ns(){return Ns=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(Me,f,y){var T=function(re,he){for(;!Object.prototype.hasOwnProperty.call(re,he)&&(re=Vi(re))!==null;);return re}(Me,f);if(T){var W=Object.getOwnPropertyDescriptor(T,f);return W.get?W.get.call(3>arguments.length?Me:y):W.value}},Ns.apply(this,arguments)}function Lo(Me,f){return function(y){if(Array.isArray(y))return y}(Me)||function(y,T){var W=y==null?null:typeof Symbol!="undefined"&&y[Symbol.iterator]||y["@@iterator"];if(W!=null){var re,he,Le,qe,Ut=[],rn=!0,Qn=!1;try{if(Le=(W=W.call(y)).next,T===0){if(Object(W)!==W)return;rn=!1}else for(;!(rn=(re=Le.call(W)).done)&&(Ut.push(re.value),Ut.length!==T);rn=!0);}catch(br){Qn=!0,he=br}finally{try{if(!rn&&W.return!=null&&(qe=W.return(),Object(qe)!==qe))return}finally{if(Qn)throw he}}return Ut}}(Me,f)||ua(Me,f)||function(){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 Ps(Me){return function(f){if(Array.isArray(f))return Ka(f)}(Me)||function(f){if(typeof Symbol!="undefined"&&f[Symbol.iterator]!=null||f["@@iterator"]!=null)return Array.from(f)}(Me)||ua(Me)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ua(Me,f){if(Me){if(typeof Me=="string")return Ka(Me,f);var y=Object.prototype.toString.call(Me).slice(8,-1);return y==="Object"&&Me.constructor&&(y=Me.constructor.name),y==="Map"||y==="Set"?Array.from(Me):y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)?Ka(Me,f):void 0}}function Ka(Me,f){(f==null||f>Me.length)&&(f=Me.length);for(var y=0,T=Array(f);f>y;y++)T[y]=Me[y];return T}function Hl(Me){var f=function(y,T){if(typeof y!="object"||y===null)return y;var W=y[Symbol.toPrimitive];if(W!==void 0){var re=W.call(y,T||"default");if(typeof re!="object")return re;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(y)}(Me,"string");return typeof f=="symbol"?f:f+""}(hs=v.DrawEvent||(v.DrawEvent={})).Init="init",hs.Destroy="destroy",hs.Enable="enable",hs.Disable="disable",hs.Add="add",hs.Edit="edit",hs.Remove="remove",hs.Clear="clear",hs.Change="change",hs.DragStart="dragStart",hs.Dragging="dragging",hs.DragEnd="dragEnd",hs.Select="select",hs.AddNode="addNode",hs.RemoveNode="removeNode",(Wn=v.SourceEvent||(v.SourceEvent={})).Change="change",Wn.Update="update",(yo=v.RenderEvent||(v.RenderEvent={})).Click="click",yo.UnClick="unclick",yo.Dragstart="dragstart",yo.Mousemove="mousemove",yo.Mouseout="mouseout",yo.Dragging="dragging",yo.Dragend="dragend",yo.DblClick="dblClick",yo.Contextmenu="contextmenu",(Qo=v.LayerEvent||(v.LayerEvent={})).Mousedown="mousedown",Qo.Mouseup="mouseup",Qo.Click="click",Qo.UnClick="unclick",Qo.Dblclick="dblclick",Qo.Mousemove="mousemove",Qo.Mouseover="mouseover",Qo.Mouseenter="mouseenter",Qo.Mouseleave="mouseleave",Qo.Mouseout="mouseout",Qo.Contextmenu="contextmenu",(os=v.SceneEvent||(v.SceneEvent={})).Loaded="loaded",os.MapMove="mapmove",os.MoveStart="movestart",os.MoveEnd="moveend",os.ZoomChange="zoomchange",os.ZoomStart="zoomstart",os.ZoomEnd="zoomend",os.Click="click",os.Dblclick="dblclick",os.Mousemove="mousemove",os.Mousewheel="mousewheel",os.Mouseover="mouseover",os.Mouseout="mouseout",os.Mouseup="mouseup",os.Mousedown="mousedown",os.Contextmenu="contextmenu",os.Dragstart="dragstart",os.Dragging="dragging",os.Dragend="dragend",(Ko=v.ControlEvent||(v.ControlEvent={})).DrawChange="drawchange",Ko.DataChange="datachange",Ko.DrawSelect="drawselect",Ko.DrawClear="drawclear";var Gl=63710088e-1,fs={centimeters:637100880,centimetres:637100880,degrees:57.22891354143274,feet:20902260511392e-6,inches:39.37*Gl,kilometers:6371.0088,kilometres:6371.0088,meters:Gl,metres:Gl,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:Gl/1852,radians:1,yards:6967335223679999e-9},Hs={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,millimeters:1e6,millimetres:1e6,yards:1.195990046};function dl(Me,f,y){y===void 0&&(y={});var T={type:"Feature"};return(y.id===0||y.id)&&(T.id=y.id),y.bbox&&(T.bbox=y.bbox),T.properties=f||{},T.geometry=Me,T}function Xo(Me,f,y){if(y===void 0&&(y={}),!Me)throw Error("coordinates is required");if(!Array.isArray(Me))throw Error("coordinates must be an Array");if(2>Me.length)throw Error("coordinates must be at least 2 numbers long");if(!gu(Me[0])||!gu(Me[1]))throw Error("coordinates must contain numbers");return dl({type:"Point",coordinates:Me},f,y)}function Mi(Me,f,y){y===void 0&&(y={});for(var T=0,W=Me;W.length>T;T++){var re=W[T];if(4>re.length)throw Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var he=0;re[re.length-1].length>he;he++)if(re[re.length-1][he]!==re[0][he])throw Error("First and last Position are not equivalent.")}return dl({type:"Polygon",coordinates:Me},f,y)}function Yo(Me,f,y){if(y===void 0&&(y={}),2>Me.length)throw Error("coordinates must be an array of two or more positions");return dl({type:"LineString",coordinates:Me},f,y)}function Os(Me,f){f===void 0&&(f={});var y={type:"FeatureCollection"};return f.id&&(y.id=f.id),f.bbox&&(y.bbox=f.bbox),y.features=Me,y}function Cs(Me,f,y){return y===void 0&&(y={}),dl({type:"MultiLineString",coordinates:Me},f,y)}function xa(Me,f,y){return y===void 0&&(y={}),dl({type:"MultiPoint",coordinates:Me},f,y)}function Xu(Me,f,y){return y===void 0&&(y={}),dl({type:"MultiPolygon",coordinates:Me},f,y)}function gc(Me,f){f===void 0&&(f="kilometers");var y=fs[f];if(!y)throw Error(f+" units is invalid");return Me*y}function Zu(Me,f){f===void 0&&(f="kilometers");var y=fs[f];if(!y)throw Error(f+" units is invalid");return Me/y}function Cd(Me){return 180*(Me%(2*Math.PI))/Math.PI}function ad(Me){return Me%360*Math.PI/180}function gu(Me){return!isNaN(Me)&&Me!==null&&!Array.isArray(Me)}function iu(Me){return!!Me&&Me.constructor===Object}var Tu=Object.freeze({__proto__:null,earthRadius:Gl,factors:fs,unitsFactors:{centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/Gl,yards:1.0936133},areaFactors:Hs,feature:dl,geometry:function(Me,f,y){switch(Me){case"Point":return Xo(f).geometry;case"LineString":return Yo(f).geometry;case"Polygon":return Mi(f).geometry;case"MultiPoint":return xa(f).geometry;case"MultiLineString":return Cs(f).geometry;case"MultiPolygon":return Xu(f).geometry;default:throw Error(Me+" is invalid")}},point:Xo,points:function(Me,f,y){return y===void 0&&(y={}),Os(Me.map(function(T){return Xo(T,f)}),y)},polygon:Mi,polygons:function(Me,f,y){return y===void 0&&(y={}),Os(Me.map(function(T){return Mi(T,f)}),y)},lineString:Yo,lineStrings:function(Me,f,y){return y===void 0&&(y={}),Os(Me.map(function(T){return Yo(T,f)}),y)},featureCollection:Os,multiLineString:Cs,multiPoint:xa,multiPolygon:Xu,geometryCollection:function(Me,f,y){return y===void 0&&(y={}),dl({type:"GeometryCollection",geometries:Me},f,y)},round:function(Me,f){if(f===void 0&&(f=0),f&&f<0)throw Error("precision must be a positive number");var y=Math.pow(10,f||0);return Math.round(Me*y)/y},radiansToLength:gc,lengthToRadians:Zu,lengthToDegrees:function(Me,f){return Cd(Zu(Me,f))},bearingToAzimuth:function(Me){var f=Me%360;return 0>f&&(f+=360),f},radiansToDegrees:Cd,degreesToRadians:ad,convertLength:function(Me,f,y){if(f===void 0&&(f="kilometers"),y===void 0&&(y="kilometers"),Me<0)throw Error("length must be a positive number");return gc(Zu(Me,f),y)},convertArea:function(Me,f,y){if(f===void 0&&(f="meters"),y===void 0&&(y="kilometers"),Me<0)throw Error("area must be a positive number");var T=Hs[f];if(!T)throw Error("invalid original units");var W=Hs[y];if(!W)throw Error("invalid final units");return Me/T*W},isNumber:gu,isObject:iu,validateBBox:function(Me){if(!Me)throw Error("bbox is required");if(!Array.isArray(Me))throw Error("bbox must be an Array");if(Me.length!==4&&Me.length!==6)throw Error("bbox must be an Array of 4 or 6 numbers");Me.forEach(function(f){if(!gu(f))throw Error("bbox must only contain numbers")})},validateId:function(Me){if(!Me)throw Error("id is required");if(["string","number"].indexOf(typeof Me)===-1)throw Error("id must be a number or a string")}});function Si(Me,f,y){if(Me!==null)for(var T,W,re,he,Le,qe,Ut,rn,Qn=0,br=0,Ci=Me.type,Ii=Ci==="FeatureCollection",Po=Ci==="Feature",Io=Ii?Me.features.length:1,Zo=0;Io>Zo;Zo++){Le=(rn=!!(Ut=Ii?Me.features[Zo].geometry:Po?Me.geometry:Me)&&Ut.type==="GeometryCollection")?Ut.geometries.length:1;for(var Ro=0;Le>Ro;Ro++){var lo=0,Js=0;if((he=rn?Ut.geometries[Ro]:Ut)!==null){qe=he.coordinates;var Ua=he.type;switch(Qn=!y||Ua!=="Polygon"&&Ua!=="MultiPolygon"?0:1,Ua){case null:break;case"Point":if(f(qe,br,Zo,lo,Js)===!1)return!1;br++,lo++;break;case"LineString":case"MultiPoint":for(T=0;qe.length>T;T++){if(f(qe[T],br,Zo,lo,Js)===!1)return!1;br++,Ua==="MultiPoint"&&lo++}Ua==="LineString"&&lo++;break;case"Polygon":case"MultiLineString":for(T=0;qe.length>T;T++){for(W=0;qe[T].length-Qn>W;W++){if(f(qe[T][W],br,Zo,lo,Js)===!1)return!1;br++}Ua==="MultiLineString"&&lo++,Ua==="Polygon"&&Js++}Ua==="Polygon"&&lo++;break;case"MultiPolygon":for(T=0;qe.length>T;T++){for(Js=0,W=0;qe[T].length>W;W++){for(re=0;qe[T][W].length-Qn>re;re++){if(f(qe[T][W][re],br,Zo,lo,Js)===!1)return!1;br++}Js++}lo++}break;case"GeometryCollection":for(T=0;he.geometries.length>T;T++)if(Si(he.geometries[T],f,y)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}}}}}function tr(Me,f){var y;switch(Me.type){case"FeatureCollection":for(y=0;Me.features.length>y&&f(Me.features[y].properties,y)!==!1;y++);break;case"Feature":f(Me.properties,0)}}function Un(Me,f){if(Me.type==="Feature")f(Me,0);else if(Me.type==="FeatureCollection")for(var y=0;Me.features.length>y&&f(Me.features[y],y)!==!1;y++);}function jr(Me){var f=[];return Si(Me,function(y){f.push(y)}),f}function Qr(Me,f){var y,T,W,re,he,Le,qe,Ut,rn,Qn,br=0,Ci=Me.type==="FeatureCollection",Ii=Me.type==="Feature",Po=Ci?Me.features.length:1;for(y=0;Po>y;y++){for(Ut=Ci?Me.features[y].properties:Ii?Me.properties:{},rn=Ci?Me.features[y].bbox:Ii?Me.bbox:void 0,Qn=Ci?Me.features[y].id:Ii?Me.id:void 0,he=(qe=!!(Le=Ci?Me.features[y].geometry:Ii?Me.geometry:Me)&&Le.type==="GeometryCollection")?Le.geometries.length:1,W=0;he>W;W++)if((re=qe?Le.geometries[W]:Le)!==null)switch(re.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(f(re,br,Ut,rn,Qn)===!1)return!1;break;case"GeometryCollection":for(T=0;re.geometries.length>T;T++)if(f(re.geometries[T],br,Ut,rn,Qn)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}else if(f(null,br,Ut,rn,Qn)===!1)return!1;br++}}function _o(Me,f,y){var T=y;return Qr(Me,function(W,re,he,Le,qe){T=re===0&&y===void 0?W:f(T,W,re,he,Le,qe)}),T}function us(Me,f){Qr(Me,function(y,T,W,re,he){var Le,qe=y===null?null:y.type;switch(qe){case null:case"Point":case"LineString":case"Polygon":return f(dl(y,W,{bbox:re,id:he}),T,0)!==!1&&void 0}switch(qe){case"MultiPoint":Le="Point";break;case"MultiLineString":Le="LineString";break;case"MultiPolygon":Le="Polygon"}for(var Ut=0;y.coordinates.length>Ut;Ut++)if(f(dl({type:Le,coordinates:y.coordinates[Ut]},W),T,Ut)===!1)return!1})}function ns(Me,f){us(Me,function(y,T,W){var re=0;if(y.geometry){var he=y.geometry.type;if(he!=="Point"&&he!=="MultiPoint"){var Le,qe=0,Ut=0,rn=0;return Si(y,function(Qn,br,Ci,Ii,Po){if(Le===void 0||T>qe||Ii>Ut||Po>rn)return Le=Qn,qe=T,Ut=Ii,rn=Po,void(re=0);var Io=Yo([Le,Qn],y.properties);if(f(Io,T,W,Po,re)===!1)return!1;re++,Le=Qn})!==!1&&void 0}}})}function Oa(Me,f,y){var T=y,W=!1;return ns(Me,function(re,he,Le,qe,Ut){T=W===!1&&y===void 0?re:f(T,re,he,Le,qe,Ut),W=!0}),T}function ga(Me,f){if(!Me)throw Error("geojson is required");us(Me,function(y,T,W){if(y.geometry!==null){var re=y.geometry.coordinates;switch(y.geometry.type){case"LineString":if(f(y,T,W,0,0)===!1)return!1;break;case"Polygon":for(var he=0;re.length>he;he++)if(f(Yo(re[he],y.properties),T,W,he)===!1)return!1}}})}var Va=Object.freeze({__proto__:null,coordAll:jr,coordEach:Si,coordReduce:function(Me,f,y,T){var W=y;return Si(Me,function(re,he,Le,qe,Ut){W=he===0&&y===void 0?re:f(W,re,he,Le,qe,Ut)},T),W},featureEach:Un,featureReduce:function(Me,f,y){var T=y;return Un(Me,function(W,re){T=re===0&&y===void 0?W:f(T,W,re)}),T},findPoint:function(Me,f){if(!iu(f=f||{}))throw Error("options is invalid");var y,T=f.featureIndex||0,W=f.multiFeatureIndex||0,re=f.geometryIndex||0,he=f.coordIndex||0,Le=f.properties;switch(Me.type){case"FeatureCollection":0>T&&(T=Me.features.length+T),Le=Le||Me.features[T].properties,y=Me.features[T].geometry;break;case"Feature":Le=Le||Me.properties,y=Me.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":y=Me;break;default:throw Error("geojson is invalid")}if(y===null)return null;var qe=y.coordinates;switch(y.type){case"Point":return Xo(qe,Le,f);case"MultiPoint":return 0>W&&(W=qe.length+W),Xo(qe[W],Le,f);case"LineString":return 0>he&&(he=qe.length+he),Xo(qe[he],Le,f);case"Polygon":return 0>re&&(re=qe.length+re),0>he&&(he=qe[re].length+he),Xo(qe[re][he],Le,f);case"MultiLineString":return 0>W&&(W=qe.length+W),0>he&&(he=qe[W].length+he),Xo(qe[W][he],Le,f);case"MultiPolygon":return 0>W&&(W=qe.length+W),0>re&&(re=qe[W].length+re),0>he&&(he=qe[W][re].length-he),Xo(qe[W][re][he],Le,f)}throw Error("geojson is invalid")},findSegment:function(Me,f){if(!iu(f=f||{}))throw Error("options is invalid");var y,T=f.featureIndex||0,W=f.multiFeatureIndex||0,re=f.geometryIndex||0,he=f.segmentIndex||0,Le=f.properties;switch(Me.type){case"FeatureCollection":0>T&&(T=Me.features.length+T),Le=Le||Me.features[T].properties,y=Me.features[T].geometry;break;case"Feature":Le=Le||Me.properties,y=Me.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":y=Me;break;default:throw Error("geojson is invalid")}if(y===null)return null;var qe=y.coordinates;switch(y.type){case"Point":case"MultiPoint":return null;case"LineString":return 0>he&&(he=qe.length+he-1),Yo([qe[he],qe[he+1]],Le,f);case"Polygon":return 0>re&&(re=qe.length+re),0>he&&(he=qe[re].length+he-1),Yo([qe[re][he],qe[re][he+1]],Le,f);case"MultiLineString":return 0>W&&(W=qe.length+W),0>he&&(he=qe[W].length+he-1),Yo([qe[W][he],qe[W][he+1]],Le,f);case"MultiPolygon":return 0>W&&(W=qe.length+W),0>re&&(re=qe[W].length+re),0>he&&(he=qe[W][re].length-he-1),Yo([qe[W][re][he],qe[W][re][he+1]],Le,f)}throw Error("geojson is invalid")},flattenEach:us,flattenReduce:function(Me,f,y){var T=y;return us(Me,function(W,re,he){T=re===0&&he===0&&y===void 0?W:f(T,W,re,he)}),T},geomEach:Qr,geomReduce:_o,lineEach:ga,lineReduce:function(Me,f,y){var T=y;return ga(Me,function(W,re,he,Le){T=re===0&&y===void 0?W:f(T,W,re,he,Le)}),T},propEach:tr,propReduce:function(Me,f,y){var T=y;return tr(Me,function(W,re){T=re===0&&y===void 0?W:f(T,W,re)}),T},segmentEach:ns,segmentReduce:Oa});function ea(Me){var f=[1/0,1/0,-1/0,-1/0];return Si(Me,function(y){f[0]>y[0]&&(f[0]=y[0]),f[1]>y[1]&&(f[1]=y[1]),y[0]>f[2]&&(f[2]=y[0]),y[1]>f[3]&&(f[3]=y[1])}),f}ea.default=ea;var Xl=Object.freeze({__proto__:null,default:ea});function _a(Me){if(!Me)throw Error("coord is required");if(!Array.isArray(Me)){if(Me.type==="Feature"&&Me.geometry!==null&&Me.geometry.type==="Point")return Me.geometry.coordinates;if(Me.type==="Point")return Me.coordinates}if(Array.isArray(Me)&&Me.length>=2&&!Array.isArray(Me[0])&&!Array.isArray(Me[1]))return Me;throw Error("coord must be GeoJSON Point or an Array of numbers")}function Ta(Me){if(Array.isArray(Me))return Me;if(Me.type==="Feature"){if(Me.geometry!==null)return Me.geometry.coordinates}else if(Me.coordinates)return Me.coordinates;throw Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Ya(Me){return Me.type==="Feature"?Me.geometry:Me}function cu(Me,f){return Me.type==="FeatureCollection"?"FeatureCollection":Me.type==="GeometryCollection"?"GeometryCollection":Me.type==="Feature"&&Me.geometry!==null?Me.geometry.type:Me.type}function jl(Me,f,y,T,W){Mu(Me,f,y||0,T||Me.length-1,W||wl)}function Mu(Me,f,y,T,W){for(;T>y;){if(T-y>600){var re=T-y+1,he=f-y+1,Le=Math.log(re),qe=.5*Math.exp(2*Le/3),Ut=.5*Math.sqrt(Le*qe*(re-qe)/re)*(0>he-re/2?-1:1);Mu(Me,f,Math.max(y,Math.floor(f-he*qe/re+Ut)),Math.min(T,Math.floor(f+(re-he)*qe/re+Ut)),W)}var rn=Me[f],Qn=y,br=T;for(Bl(Me,y,f),W(Me[T],rn)>0&&Bl(Me,y,T);br>Qn;){for(Bl(Me,Qn,br),Qn++,br--;0>W(Me[Qn],rn);)Qn++;for(;W(Me[br],rn)>0;)br--}W(Me[y],rn)===0?Bl(Me,y,br):Bl(Me,++br,T),br>f||(y=br+1),f>br||(T=br-1)}}function Bl(Me,f,y){var T=Me[f];Me[f]=Me[y],Me[y]=T}function wl(Me,f){return f>Me?-1:Me>f?1:0}function Tn(Me,f,y){if(!y)return f.indexOf(Me);for(let T=0;f.length>T;T++)if(y(Me,f[T]))return T;return-1}function nc(Me,f){Iu(Me,0,Me.children.length,f,Me)}function Iu(Me,f,y,T,W){W||(W=kc(null)),W.minX=1/0,W.minY=1/0,W.maxX=-1/0,W.maxY=-1/0;for(let re=f;y>re;re++){const he=Me.children[re];Pc(W,Me.leaf?T(he):he)}return W}function Pc(Me,f){return Me.minX=Math.min(Me.minX,f.minX),Me.minY=Math.min(Me.minY,f.minY),Me.maxX=Math.max(Me.maxX,f.maxX),Me.maxY=Math.max(Me.maxY,f.maxY),Me}function Wc(Me,f){return Me.minX-f.minX}function cd(Me,f){return Me.minY-f.minY}function Fc(Me){return(Me.maxX-Me.minX)*(Me.maxY-Me.minY)}function vh(Me){return Me.maxX-Me.minX+(Me.maxY-Me.minY)}function Td(Me,f){const y=Math.max(Me.minX,f.minX),T=Math.max(Me.minY,f.minY),W=Math.min(Me.maxX,f.maxX),re=Math.min(Me.maxY,f.maxY);return Math.max(0,W-y)*Math.max(0,re-T)}function Gh(Me,f){return!(Me.minX>f.minX||Me.minY>f.minY||f.maxX>Me.maxX||f.maxY>Me.maxY)}function yh(Me,f){return!(f.minX>Me.maxX||f.minY>Me.maxY||Me.minX>f.maxX||Me.minY>f.maxY)}function kc(Me){return{children:Me,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Kh(Me,f,y,T,W){const re=[f,y];for(;re.length;){if(T>=(y=re.pop())-(f=re.pop()))continue;const he=f+Math.ceil((y-f)/T/2)*T;jl(Me,he,f,y,W),re.push(f,he,he,y)}}var $f=Object.freeze({__proto__:null,default:class{constructor(Me=9){this._maxEntries=Math.max(4,Me),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(Me){let f=this.data;const y=[];if(!yh(Me,f))return y;const T=this.toBBox,W=[];for(;f;){for(let re=0;f.children.length>re;re++){const he=f.children[re],Le=f.leaf?T(he):he;yh(Me,Le)&&(f.leaf?y.push(he):Gh(Me,Le)?this._all(he,y):W.push(he))}f=W.pop()}return y}collides(Me){let f=this.data;if(!yh(Me,f))return!1;const y=[];for(;f;){for(let T=0;f.children.length>T;T++){const W=f.children[T],re=f.leaf?this.toBBox(W):W;if(yh(Me,re)){if(f.leaf||Gh(Me,re))return!0;y.push(W)}}f=y.pop()}return!1}load(Me){if(!Me||!Me.length)return this;if(this._minEntries>Me.length){for(let y=0;Me.length>y;y++)this.insert(Me[y]);return this}let f=this._build(Me.slice(),0,Me.length-1,0);if(this.data.children.length)if(this.data.height===f.height)this._splitRoot(this.data,f);else{if(f.height>this.data.height){const y=this.data;this.data=f,f=y}this._insert(f,this.data.height-f.height-1,!0)}else this.data=f;return this}insert(Me){return Me&&this._insert(Me,this.data.height-1),this}clear(){return this.data=kc([]),this}remove(Me,f){if(!Me)return this;let y=this.data;const T=this.toBBox(Me),W=[],re=[];let he,Le,qe;for(;y||W.length;){if(y||(y=W.pop(),Le=W[W.length-1],he=re.pop(),qe=!0),y.leaf){const Ut=Tn(Me,y.children,f);if(Ut!==-1)return y.children.splice(Ut,1),W.push(y),this._condense(W),this}qe||y.leaf||!Gh(y,T)?Le?(he++,y=Le.children[he],qe=!1):y=null:(W.push(y),re.push(he),he=0,Le=y,y=y.children[0])}return this}toBBox(Me){return Me}compareMinX(Me,f){return Me.minX-f.minX}compareMinY(Me,f){return Me.minY-f.minY}toJSON(){return this.data}fromJSON(Me){return this.data=Me,this}_all(Me,f){const y=[];for(;Me;)Me.leaf?f.push(...Me.children):y.push(...Me.children),Me=y.pop();return f}_build(Me,f,y,T){const W=y-f+1;let re,he=this._maxEntries;if(he>=W)return re=kc(Me.slice(f,y+1)),nc(re,this.toBBox),re;T||(he=Math.ceil(W/Math.pow(he,(T=Math.ceil(Math.log(W)/Math.log(he)))-1))),re=kc([]),re.leaf=!1,re.height=T;const Le=Math.ceil(W/he),qe=Le*Math.ceil(Math.sqrt(he));Kh(Me,f,y,qe,this.compareMinX);for(let Ut=f;y>=Ut;Ut+=qe){const rn=Math.min(Ut+qe-1,y);Kh(Me,Ut,rn,Le,this.compareMinY);for(let Qn=Ut;rn>=Qn;Qn+=Le)re.children.push(this._build(Me,Qn,Math.min(Qn+Le-1,rn),T-1))}return nc(re,this.toBBox),re}_chooseSubtree(Me,f,y,T){for(;T.push(f),!f.leaf&&T.length-1!==y;){let he,Le=1/0,qe=1/0;for(let Ut=0;f.children.length>Ut;Ut++){const rn=f.children[Ut],Qn=Fc(rn),br=(Math.max((re=rn).maxX,(W=Me).maxX)-Math.min(re.minX,W.minX))*(Math.max(re.maxY,W.maxY)-Math.min(re.minY,W.minY))-Qn;qe>br?(qe=br,Le=Le>Qn?Qn:Le,he=rn):br===qe&&Le>Qn&&(Le=Qn,he=rn)}f=he||f.children[0]}var W,re;return f}_insert(Me,f,y){const T=y?Me:this.toBBox(Me),W=[],re=this._chooseSubtree(T,this.data,f,W);for(re.children.push(Me),Pc(re,T);f>=0&&W[f].children.length>this._maxEntries;)this._split(W,f),f--;this._adjustParentBBoxes(T,W,f)}_split(Me,f){const y=Me[f],T=y.children.length,W=this._minEntries;this._chooseSplitAxis(y,W,T);const re=this._chooseSplitIndex(y,W,T),he=kc(y.children.splice(re,y.children.length-re));he.height=y.height,he.leaf=y.leaf,nc(y,this.toBBox),nc(he,this.toBBox),f?Me[f-1].children.push(he):this._splitRoot(y,he)}_splitRoot(Me,f){this.data=kc([Me,f]),this.data.height=Me.height+1,this.data.leaf=!1,nc(this.data,this.toBBox)}_chooseSplitIndex(Me,f,y){let T,W=1/0,re=1/0;for(let he=f;y-f>=he;he++){const Le=Iu(Me,0,he,this.toBBox),qe=Iu(Me,he,y,this.toBBox),Ut=Td(Le,qe),rn=Fc(Le)+Fc(qe);W>Ut?(W=Ut,T=he,re=re>rn?rn:re):Ut===W&&re>rn&&(re=rn,T=he)}return T||y-f}_chooseSplitAxis(Me,f,y){const T=Me.leaf?this.compareMinX:Wc,W=Me.leaf?this.compareMinY:cd,re=this._allDistMargin(Me,f,y,T);this._allDistMargin(Me,f,y,W)>re&&Me.children.sort(T)}_allDistMargin(Me,f,y,T){Me.children.sort(T);const W=this.toBBox,re=Iu(Me,0,f,W),he=Iu(Me,y-f,y,W);let Le=vh(re)+vh(he);for(let qe=f;y-f>qe;qe++){const Ut=Me.children[qe];Pc(re,Me.leaf?W(Ut):Ut),Le+=vh(re)}for(let qe=y-f-1;qe>=f;qe--){const Ut=Me.children[qe];Pc(he,Me.leaf?W(Ut):Ut),Le+=vh(he)}return Le}_adjustParentBBoxes(Me,f,y){for(let T=y;T>=0;T--)Pc(f[T],Me)}_condense(Me){for(let f,y=Me.length-1;y>=0;y--)Me[y].children.length===0?y>0?(f=Me[y-1].children,f.splice(f.indexOf(Me[y]),1)):this.clear():nc(Me[y],this.toBBox)}}});function Vf(Me,f){return f>Me?-1:Me>f?1:0}var _h=Object.freeze({__proto__:null,default:class{constructor(Me=[],f=Vf){if(this.data=Me,this.length=this.data.length,this.compare=f,this.length>0)for(let y=(this.length>>1)-1;y>=0;y--)this._down(y)}push(Me){this.data.push(Me),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const Me=this.data[0],f=this.data.pop();return this.length--,this.length>0&&(this.data[0]=f,this._down(0)),Me}peek(){return this.data[0]}_up(Me){const{data:f,compare:y}=this,T=f[Me];for(;Me>0;){const W=Me-1>>1,re=f[W];if(y(T,re)>=0)break;f[Me]=re,Me=W}f[Me]=T}_down(Me){const{data:f,compare:y}=this,T=this.length>>1,W=f[Me];for(;T>Me;){let re=1+(Me<<1),he=f[re];const Le=re+1;if(this.length>Le&&0>y(f[Le],he)&&(re=Le,he=f[Le]),y(he,W)>=0)break;f[Me]=he,Me=re}f[Me]=W}}}),Qh=function(Me,f,y,T){var W=Me[0],re=Me[1],he=!1;y===void 0&&(y=0),T===void 0&&(T=f.length);for(var Le=(T-y)/2,qe=0,Ut=Le-1;Le>qe;Ut=qe++){var rn=f[y+2*qe+0],Qn=f[y+2*qe+1],br=f[y+2*Ut+1];Qn>re!=br>re&&(f[y+2*Ut+0]-rn)*(re-Qn)/(br-Qn)+rn>W&&(he=!he)}return he},Mh=function(Me,f,y,T){var W=Me[0],re=Me[1],he=!1;y===void 0&&(y=0),T===void 0&&(T=f.length);for(var Le=T-y,qe=0,Ut=Le-1;Le>qe;Ut=qe++){var rn=f[qe+y][0],Qn=f[qe+y][1],br=f[Ut+y][1];Qn>re!=br>re&&(f[Ut+y][0]-rn)*(re-Qn)/(br-Qn)+rn>W&&(he=!he)}return he},Wd=function(Me,f,y,T){return f.length>0&&Array.isArray(f[0])?Mh(Me,f,y,T):Qh(Me,f,y,T)},zs=Qh;Wd.nested=Mh,Wd.flat=zs;var $a=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof _.g!="undefined"?_.g:typeof self!="undefined"?self:{};function Ja(Me,f,y){return Me(y={path:f,exports:{},require:function(T,W){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},y.exports),y.exports}function pl(Me){if(Me.__esModule)return Me;var f=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(Me).forEach(function(y){var T=Object.getOwnPropertyDescriptor(Me,y);Object.defineProperty(f,y,T.get?T:{enumerable:!0,get:function(){return Me[y]}})}),f}var au=Ja(function(Me,f){(function(y){const W=33306690738754706e-32;function re(Po,Io,Zo,Ro,lo){let Js,Ua,_l,fu,zu=Io[0],Lu=Ro[0],od=0,wu=0;Lu>zu==Lu>-zu?(Js=zu,zu=Io[++od]):(Js=Lu,Lu=Ro[++wu]);let zc=0;if(Po>od&&Zo>wu)for(Lu>zu==Lu>-zu?(_l=Js-((Ua=zu+Js)-zu),zu=Io[++od]):(_l=Js-((Ua=Lu+Js)-Lu),Lu=Ro[++wu]),Js=Ua,_l!==0&&(lo[zc++]=_l);Po>od&&Zo>wu;)Lu>zu==Lu>-zu?(_l=Js-((Ua=Js+zu)-(fu=Ua-Js))+(zu-fu),zu=Io[++od]):(_l=Js-((Ua=Js+Lu)-(fu=Ua-Js))+(Lu-fu),Lu=Ro[++wu]),Js=Ua,_l!==0&&(lo[zc++]=_l);for(;Po>od;)_l=Js-((Ua=Js+zu)-(fu=Ua-Js))+(zu-fu),zu=Io[++od],Js=Ua,_l!==0&&(lo[zc++]=_l);for(;Zo>wu;)_l=Js-((Ua=Js+Lu)-(fu=Ua-Js))+(Lu-fu),Lu=Ro[++wu],Js=Ua,_l!==0&&(lo[zc++]=_l);return Js===0&&zc!==0||(lo[zc++]=Js),zc}function he(Po){return new Float64Array(Po)}const Le=33306690738754716e-32,qe=22204460492503146e-32,Ut=11093356479670487e-47,rn=he(4),Qn=he(8),br=he(12),Ci=he(16),Ii=he(4);y.orient2d=function(Po,Io,Zo,Ro,lo,Js){const Ua=(Io-Js)*(Zo-lo),_l=(Po-lo)*(Ro-Js),fu=Ua-_l;if(Ua===0||_l===0||Ua>0!=_l>0)return fu;const zu=Math.abs(Ua+_l);return Le*zu>Math.abs(fu)?-function(Lu,od,wu,zc,Nn,or,Wr){let hi,io,ia,rl,js,ul,nu,ks,Tc,ah,kd,Sd,lh,sp,Ip,wh,Fh,ss;const Ll=Lu-Nn,hf=wu-Nn,ff=od-or,xf=zc-or;js=(Ip=(ks=Ll-(nu=(ul=134217729*Ll)-(ul-Ll)))*(ah=xf-(Tc=(ul=134217729*xf)-(ul-xf)))-((sp=Ll*xf)-nu*Tc-ks*Tc-nu*ah))-(kd=Ip-(Fh=(ks=ff-(nu=(ul=134217729*ff)-(ul-ff)))*(ah=hf-(Tc=(ul=134217729*hf)-(ul-hf)))-((wh=ff*hf)-nu*Tc-ks*Tc-nu*ah))),rn[0]=Ip-(kd+js)+(js-Fh),js=(lh=sp-((Sd=sp+kd)-(js=Sd-sp))+(kd-js))-(kd=lh-wh),rn[1]=lh-(kd+js)+(js-wh),js=(ss=Sd+kd)-Sd,rn[2]=Sd-(ss-js)+(kd-js),rn[3]=ss;let pg=function(Vc,zd){let H=zd[0];for(let F=1;Vc>F;F++)H+=zd[F];return H}(4,rn),wf=qe*Wr;if(pg>=wf||-pg>=wf||(hi=Lu-(Ll+(js=Lu-Ll))+(js-Nn),ia=wu-(hf+(js=wu-hf))+(js-Nn),io=od-(ff+(js=od-ff))+(js-or),rl=zc-(xf+(js=zc-xf))+(js-or),hi===0&&io===0&&ia===0&&rl===0)||(wf=Ut*Wr+W*Math.abs(pg),(pg+=Ll*rl+xf*hi-(ff*ia+hf*io))>=wf||-pg>=wf))return pg;js=(Ip=(ks=hi-(nu=(ul=134217729*hi)-(ul-hi)))*(ah=xf-(Tc=(ul=134217729*xf)-(ul-xf)))-((sp=hi*xf)-nu*Tc-ks*Tc-nu*ah))-(kd=Ip-(Fh=(ks=io-(nu=(ul=134217729*io)-(ul-io)))*(ah=hf-(Tc=(ul=134217729*hf)-(ul-hf)))-((wh=io*hf)-nu*Tc-ks*Tc-nu*ah))),Ii[0]=Ip-(kd+js)+(js-Fh),js=(lh=sp-((Sd=sp+kd)-(js=Sd-sp))+(kd-js))-(kd=lh-wh),Ii[1]=lh-(kd+js)+(js-wh),js=(ss=Sd+kd)-Sd,Ii[2]=Sd-(ss-js)+(kd-js),Ii[3]=ss;const ou=re(4,rn,4,Ii,Qn);js=(Ip=(ks=Ll-(nu=(ul=134217729*Ll)-(ul-Ll)))*(ah=rl-(Tc=(ul=134217729*rl)-(ul-rl)))-((sp=Ll*rl)-nu*Tc-ks*Tc-nu*ah))-(kd=Ip-(Fh=(ks=ff-(nu=(ul=134217729*ff)-(ul-ff)))*(ah=ia-(Tc=(ul=134217729*ia)-(ul-ia)))-((wh=ff*ia)-nu*Tc-ks*Tc-nu*ah))),Ii[0]=Ip-(kd+js)+(js-Fh),js=(lh=sp-((Sd=sp+kd)-(js=Sd-sp))+(kd-js))-(kd=lh-wh),Ii[1]=lh-(kd+js)+(js-wh),js=(ss=Sd+kd)-Sd,Ii[2]=Sd-(ss-js)+(kd-js),Ii[3]=ss;const Id=re(ou,Qn,4,Ii,br);js=(Ip=(ks=hi-(nu=(ul=134217729*hi)-(ul-hi)))*(ah=rl-(Tc=(ul=134217729*rl)-(ul-rl)))-((sp=hi*rl)-nu*Tc-ks*Tc-nu*ah))-(kd=Ip-(Fh=(ks=io-(nu=(ul=134217729*io)-(ul-io)))*(ah=ia-(Tc=(ul=134217729*ia)-(ul-ia)))-((wh=io*ia)-nu*Tc-ks*Tc-nu*ah))),Ii[0]=Ip-(kd+js)+(js-Fh),js=(lh=sp-((Sd=sp+kd)-(js=Sd-sp))+(kd-js))-(kd=lh-wh),Ii[1]=lh-(kd+js)+(js-wh),js=(ss=Sd+kd)-Sd,Ii[2]=Sd-(ss-js)+(kd-js),Ii[3]=ss;const rf=re(Id,br,4,Ii,Ci);return Ci[rf-1]}(Po,Io,Zo,Ro,lo,Js,zu):fu},y.orient2dfast=function(Po,Io,Zo,Ro,lo,Js){return(Io-Js)*(Zo-lo)-(Po-lo)*(Ro-Js)},Object.defineProperty(y,"__esModule",{value:!0})})(f)}),ac=pl($f),$u=pl(_h),cc=au.orient2d;$u.default&&($u=$u.default);var Hu=Fl;function Fl(Me,f,y){f=Math.max(0,f===void 0?2:f),y=y||0;var T=function(Ro){for(var lo=Ro[0],Js=Ro[0],Ua=Ro[0],_l=Ro[0],fu=0;Ro.length>fu;fu++){var zu=Ro[fu];lo[0]>zu[0]&&(lo=zu),zu[0]>Ua[0]&&(Ua=zu),Js[1]>zu[1]&&(Js=zu),zu[1]>_l[1]&&(_l=zu)}var Lu=[lo,Js,Ua,_l],od=Lu.slice();for(fu=0;Ro.length>fu;fu++)Wd(Ro[fu],Lu)||od.push(Ro[fu]);return function(wu){wu.sort(tl);for(var zc=[],Nn=0;wu.length>Nn;Nn++){for(;zc.length>=2&&0>=Gd(zc[zc.length-2],zc[zc.length-1],wu[Nn]);)zc.pop();zc.push(wu[Nn])}for(var or=[],Wr=wu.length-1;Wr>=0;Wr--){for(;or.length>=2&&0>=Gd(or[or.length-2],or[or.length-1],wu[Wr]);)or.pop();or.push(wu[Wr])}return or.pop(),zc.pop(),zc.concat(or)}(od)}(Me),W=new ac(16);W.toBBox=function(Ro){return{minX:Ro[0],minY:Ro[1],maxX:Ro[0],maxY:Ro[1]}},W.compareMinX=function(Ro,lo){return Ro[0]-lo[0]},W.compareMinY=function(Ro,lo){return Ro[1]-lo[1]},W.load(Me);for(var re,he=[],Le=0;T.length>Le;Le++){var qe=T[Le];W.remove(qe),re=Ad(qe,re),he.push(re)}var Ut=new ac(16);for(Le=0;he.length>Le;Le++)Ut.insert(Ch(he[Le]));for(var rn=f*f,Qn=y*y;he.length;){var br=he.shift(),Ci=br.p,Ii=br.next.p,Po=bd(Ci,Ii);if(Po>=Qn){var Io=Po/rn;(qe=Ou(W,br.prev.p,Ci,Ii,br.next.next.p,Io,Ut))&&Math.min(bd(qe,Ci),bd(qe,Ii))<=Io&&(he.push(br),he.push(Ad(qe,br)),W.remove(qe),Ut.remove(br),Ut.insert(Ch(br)),Ut.insert(Ch(br.next)))}}br=re;var Zo=[];do Zo.push(br.p),br=br.next;while(br!==re);return Zo.push(br.p),Zo}function Ou(Me,f,y,T,W,re,he){for(var Le=new $u([],Qc),qe=Me.data;qe;){for(var Ut=0;qe.children.length>Ut;Ut++){var rn=qe.children[Ut],Qn=qe.leaf?su(rn,y,T):fd(y,T,rn);rebr.dist&&Po>br.dist&&Bh(y,Ci,he)&&Bh(T,Ci,he))return Ci}(qe=Le.pop())&&(qe=qe.node)}return null}function Qc(Me,f){return Me.dist-f.dist}function fd(Me,f,y){if(Qd(Me,y)||Qd(f,y))return 0;var T=nh(Me[0],Me[1],f[0],f[1],y.minX,y.minY,y.maxX,y.minY);if(T===0)return 0;var W=nh(Me[0],Me[1],f[0],f[1],y.minX,y.minY,y.minX,y.maxY);if(W===0)return 0;var re=nh(Me[0],Me[1],f[0],f[1],y.maxX,y.minY,y.maxX,y.maxY);if(re===0)return 0;var he=nh(Me[0],Me[1],f[0],f[1],y.minX,y.maxY,y.maxX,y.maxY);return he===0?0:Math.min(T,W,re,he)}function Qd(Me,f){return!(f.minX>Me[0]||Me[0]>f.maxX||f.minY>Me[1]||Me[1]>f.maxY)}function Bh(Me,f,y){for(var T,W,re,he,Le=y.search({minX:Math.min(Me[0],f[0]),minY:Math.min(Me[1],f[1]),maxX:Math.max(Me[0],f[0]),maxY:Math.max(Me[1],f[1])}),qe=0;Le.length>qe;qe++)if(W=Le[qe].next.p,re=Me,(T=Le[qe].p)!==(he=f)&&W!==re&&Gd(T,W,re)>0!=Gd(T,W,he)>0&&Gd(re,he,T)>0!=Gd(re,he,W)>0)return!1;return!0}function Gd(Me,f,y){return cc(Me[0],Me[1],f[0],f[1],y[0],y[1])}function Ch(Me){var f=Me.p,y=Me.next.p;return Me.minX=Math.min(f[0],y[0]),Me.minY=Math.min(f[1],y[1]),Me.maxX=Math.max(f[0],y[0]),Me.maxY=Math.max(f[1],y[1]),Me}function Ad(Me,f){var y={p:Me,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return f?(y.next=f.next,y.prev=f,f.next.prev=y,f.next=y):(y.prev=y,y.next=y),y}function bd(Me,f){var y=Me[0]-f[0],T=Me[1]-f[1];return y*y+T*T}function su(Me,f,y){var T=f[0],W=f[1],re=y[0]-T,he=y[1]-W;if(re!==0||he!==0){var Le=((Me[0]-T)*re+(Me[1]-W)*he)/(re*re+he*he);Le>1?(T=y[0],W=y[1]):Le>0&&(T+=re*Le,W+=he*Le)}return(re=Me[0]-T)*re+(he=Me[1]-W)*he}function nh(Me,f,y,T,W,re,he,Le){var qe,Ut,rn,Qn,br=y-Me,Ci=T-f,Ii=he-W,Po=Le-re,Io=Me-W,Zo=f-re,Ro=br*br+Ci*Ci,lo=br*Ii+Ci*Po,Js=Ii*Ii+Po*Po,Ua=br*Io+Ci*Zo,_l=Ii*Io+Po*Zo,fu=Ro*Js-lo*lo,zu=fu,Lu=fu;fu===0?(Ut=0,zu=1,Qn=_l,Lu=Js):(Qn=Ro*_l-lo*Ua,0>(Ut=lo*_l-Js*Ua)?(Ut=0,Qn=_l,Lu=Js):Ut>zu&&(Ut=zu,Qn=_l+lo,Lu=Js)),0>Qn?(Qn=0,0>-Ua?Ut=0:-Ua>Ro?Ut=zu:(Ut=-Ua,zu=Ro)):Qn>Lu&&(Qn=Lu,0>-Ua+lo?Ut=0:-Ua+lo>Ro?Ut=zu:(Ut=-Ua+lo,zu=Ro));var od=(1-(rn=Qn===0?0:Qn/Lu))*W+rn*he-((1-(qe=Ut===0?0:Ut/zu))*Me+qe*y),wu=(1-rn)*re+rn*Le-((1-qe)*f+qe*T);return od*od+wu*wu}function tl(Me,f){return Me[0]===f[0]?Me[1]-f[1]:Me[0]-f[0]}function mu(Me,f,y){y===void 0&&(y={});var T=_a(Me),W=_a(f),re=ad(W[1]-T[1]),he=ad(W[0]-T[0]),Le=ad(T[1]),qe=ad(W[1]),Ut=Math.pow(Math.sin(re/2),2)+Math.pow(Math.sin(he/2),2)*Math.cos(Le)*Math.cos(qe);return gc(2*Math.atan2(Math.sqrt(Ut),Math.sqrt(1-Ut)),y.units)}function md(Me){return function(f,y){y===void 0&&(y={});var T=Number(f[0]),W=Number(f[1]),re=Number(f[2]),he=Number(f[3]);if(f.length===6)throw Error("@turf/bbox-polygon does not support BBox with 6 positions");var Le=[T,W];return Mi([[Le,[re,W],[re,he],[T,he],Le]],y.properties,{bbox:f,id:y.id})}(ea(Me))}function Uh(Me,f,y,T){T===void 0&&(T={});var W=_a(Me),re=ad(W[0]),he=ad(W[1]),Le=ad(y),qe=Zu(f,T.units),Ut=Math.asin(Math.sin(he)*Math.cos(qe)+Math.cos(he)*Math.sin(qe)*Math.cos(Le));return Xo([Cd(re+Math.atan2(Math.sin(Le)*Math.sin(qe)*Math.cos(he),Math.cos(qe)-Math.sin(he)*Math.sin(Ut))),Cd(Ut)],T.properties)}function Qa(Me,f,y){if(y===void 0&&(y={}),y.final===!0)return function(Ut,rn){var Qn=Qa(rn,Ut);return Qn=(Qn+180)%360}(Me,f);var T=_a(Me),W=_a(f),re=ad(T[0]),he=ad(W[0]),Le=ad(T[1]),qe=ad(W[1]);return Cd(Math.atan2(Math.sin(he-re)*Math.cos(qe),Math.cos(Le)*Math.sin(qe)-Math.sin(Le)*Math.cos(qe)*Math.cos(he-re)))}function _u(Me,f){f===void 0&&(f={});var y=ea(Me);return Xo([(y[0]+y[2])/2,(y[1]+y[3])/2],f.properties,f)}function Al(Me,f){f===void 0&&(f={});var y=0,T=0,W=0;return Si(Me,function(re){y+=re[0],T+=re[1],W++},!0),Xo([y/W,T/W],f.properties)}function du(Me,f){switch(f===void 0&&(f={}),cu(Me)){case"Point":return Xo(_a(Me),f.properties);case"Polygon":var y=[];Si(Me,function(lo){y.push(lo)});var T,W,re,he,Le,qe,Ut,rn,Qn=Al(Me,{properties:f.properties}),br=Qn.geometry.coordinates,Ci=0,Ii=0,Po=0,Io=y.map(function(lo){return[lo[0]-br[0],lo[1]-br[1]]});for(T=0;y.length-1>T;T++)Po+=rn=(he=(W=Io[T])[0])*(Ut=(re=Io[T+1])[1])-(Le=re[0])*(qe=W[1]),Ci+=(he+Le)*rn,Ii+=(qe+Ut)*rn;if(Po===0)return Qn;var Zo=1/(6*(.5*Po));return Xo([br[0]+Zo*Ci,br[1]+Zo*Ii],f.properties);default:var Ro=function(lo,Js){Js===void 0&&(Js={}),Js.concavity=Js.concavity||1/0;var Ua=[];if(Si(lo,function(fu){Ua.push([fu[0],fu[1]])}),!Ua.length)return null;var _l=Hu(Ua,Js.concavity);return _l.length>3?Mi([_l]):null}(Me);return Ro?du(Ro,{properties:f.properties}):Al(Me,{properties:f.properties})}}function Au(Me){if(!Me)throw Error("geojson is required");var f=[];return us(Me,function(y){(function(T,W){var re=[],he=T.geometry;if(he!==null){switch(he.type){case"Polygon":re=Ta(he);break;case"LineString":re=[Ta(he)]}re.forEach(function(Le){var qe=function(Ut,rn){var Qn=[];return Ut.reduce(function(br,Ci){var Ii,Po,Io,Zo,Ro,lo,Js=Yo([br,Ci],rn);return Js.bbox=[(Ro=(Po=Ci)[0])>(Io=(Ii=br)[0])?Io:Ro,(lo=Po[1])>(Zo=Ii[1])?Zo:lo,Io>Ro?Io:Ro,Zo>lo?Zo:lo],Qn.push(Js),Ci}),Qn}(Le,T.properties);qe.forEach(function(Ut){Ut.id=W.length,W.push(Ut)})})}})(y,f)}),Os(f)}Hu.default=Fl;function Sc(Me,f,y){if(!y)return f.indexOf(Me);for(let T=0;f.length>T;T++)if(y(Me,f[T]))return T;return-1}function _d(Me,f){wd(Me,0,Me.children.length,f,Me)}function wd(Me,f,y,T,W){W||(W=Mf(null)),W.minX=1/0,W.minY=1/0,W.maxX=-1/0,W.maxY=-1/0;for(let re=f;y>re;re++){const he=Me.children[re];ef(W,Me.leaf?T(he):he)}return W}function ef(Me,f){return Me.minX=Math.min(Me.minX,f.minX),Me.minY=Math.min(Me.minY,f.minY),Me.maxX=Math.max(Me.maxX,f.maxX),Me.maxY=Math.max(Me.maxY,f.maxY),Me}function Jh(Me,f){return Me.minX-f.minX}function uh(Me,f){return Me.minY-f.minY}function cf(Me){return(Me.maxX-Me.minX)*(Me.maxY-Me.minY)}function Rh(Me){return Me.maxX-Me.minX+(Me.maxY-Me.minY)}function yc(Me,f){const y=Math.max(Me.minX,f.minX),T=Math.max(Me.minY,f.minY),W=Math.min(Me.maxX,f.maxX),re=Math.min(Me.maxY,f.maxY);return Math.max(0,W-y)*Math.max(0,re-T)}function qd(Me,f){return!(Me.minX>f.minX||Me.minY>f.minY||f.maxX>Me.maxX||f.maxY>Me.maxY)}function rd(Me,f){return!(f.minX>Me.maxX||f.minY>Me.maxY||Me.minX>f.maxX||Me.minY>f.maxY)}function Mf(Me){return{children:Me,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function vf(Me,f,y,T,W){const re=[f,y];for(;re.length;){if(T>=(y=re.pop())-(f=re.pop()))continue;const he=f+Math.ceil((y-f)/T/2)*T;jl(Me,he,f,y,W),re.push(f,he,he,y)}}var qc=Object.freeze({__proto__:null,default:class{constructor(Me=9){this._maxEntries=Math.max(4,Me),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(Me){let f=this.data;const y=[];if(!rd(Me,f))return y;const T=this.toBBox,W=[];for(;f;){for(let re=0;f.children.length>re;re++){const he=f.children[re],Le=f.leaf?T(he):he;rd(Me,Le)&&(f.leaf?y.push(he):qd(Me,Le)?this._all(he,y):W.push(he))}f=W.pop()}return y}collides(Me){let f=this.data;if(!rd(Me,f))return!1;const y=[];for(;f;){for(let T=0;f.children.length>T;T++){const W=f.children[T],re=f.leaf?this.toBBox(W):W;if(rd(Me,re)){if(f.leaf||qd(Me,re))return!0;y.push(W)}}f=y.pop()}return!1}load(Me){if(!Me||!Me.length)return this;if(this._minEntries>Me.length){for(let y=0;Me.length>y;y++)this.insert(Me[y]);return this}let f=this._build(Me.slice(),0,Me.length-1,0);if(this.data.children.length)if(this.data.height===f.height)this._splitRoot(this.data,f);else{if(f.height>this.data.height){const y=this.data;this.data=f,f=y}this._insert(f,this.data.height-f.height-1,!0)}else this.data=f;return this}insert(Me){return Me&&this._insert(Me,this.data.height-1),this}clear(){return this.data=Mf([]),this}remove(Me,f){if(!Me)return this;let y=this.data;const T=this.toBBox(Me),W=[],re=[];let he,Le,qe;for(;y||W.length;){if(y||(y=W.pop(),Le=W[W.length-1],he=re.pop(),qe=!0),y.leaf){const Ut=Sc(Me,y.children,f);if(Ut!==-1)return y.children.splice(Ut,1),W.push(y),this._condense(W),this}qe||y.leaf||!qd(y,T)?Le?(he++,y=Le.children[he],qe=!1):y=null:(W.push(y),re.push(he),he=0,Le=y,y=y.children[0])}return this}toBBox(Me){return Me}compareMinX(Me,f){return Me.minX-f.minX}compareMinY(Me,f){return Me.minY-f.minY}toJSON(){return this.data}fromJSON(Me){return this.data=Me,this}_all(Me,f){const y=[];for(;Me;)Me.leaf?f.push(...Me.children):y.push(...Me.children),Me=y.pop();return f}_build(Me,f,y,T){const W=y-f+1;let re,he=this._maxEntries;if(he>=W)return re=Mf(Me.slice(f,y+1)),_d(re,this.toBBox),re;T||(he=Math.ceil(W/Math.pow(he,(T=Math.ceil(Math.log(W)/Math.log(he)))-1))),re=Mf([]),re.leaf=!1,re.height=T;const Le=Math.ceil(W/he),qe=Le*Math.ceil(Math.sqrt(he));vf(Me,f,y,qe,this.compareMinX);for(let Ut=f;y>=Ut;Ut+=qe){const rn=Math.min(Ut+qe-1,y);vf(Me,Ut,rn,Le,this.compareMinY);for(let Qn=Ut;rn>=Qn;Qn+=Le)re.children.push(this._build(Me,Qn,Math.min(Qn+Le-1,rn),T-1))}return _d(re,this.toBBox),re}_chooseSubtree(Me,f,y,T){for(;T.push(f),!f.leaf&&T.length-1!==y;){let he,Le=1/0,qe=1/0;for(let Ut=0;f.children.length>Ut;Ut++){const rn=f.children[Ut],Qn=cf(rn),br=(Math.max((re=rn).maxX,(W=Me).maxX)-Math.min(re.minX,W.minX))*(Math.max(re.maxY,W.maxY)-Math.min(re.minY,W.minY))-Qn;qe>br?(qe=br,Le=Le>Qn?Qn:Le,he=rn):br===qe&&Le>Qn&&(Le=Qn,he=rn)}f=he||f.children[0]}var W,re;return f}_insert(Me,f,y){const T=y?Me:this.toBBox(Me),W=[],re=this._chooseSubtree(T,this.data,f,W);for(re.children.push(Me),ef(re,T);f>=0&&W[f].children.length>this._maxEntries;)this._split(W,f),f--;this._adjustParentBBoxes(T,W,f)}_split(Me,f){const y=Me[f],T=y.children.length,W=this._minEntries;this._chooseSplitAxis(y,W,T);const re=this._chooseSplitIndex(y,W,T),he=Mf(y.children.splice(re,y.children.length-re));he.height=y.height,he.leaf=y.leaf,_d(y,this.toBBox),_d(he,this.toBBox),f?Me[f-1].children.push(he):this._splitRoot(y,he)}_splitRoot(Me,f){this.data=Mf([Me,f]),this.data.height=Me.height+1,this.data.leaf=!1,_d(this.data,this.toBBox)}_chooseSplitIndex(Me,f,y){let T,W=1/0,re=1/0;for(let he=f;y-f>=he;he++){const Le=wd(Me,0,he,this.toBBox),qe=wd(Me,he,y,this.toBBox),Ut=yc(Le,qe),rn=cf(Le)+cf(qe);W>Ut?(W=Ut,T=he,re=re>rn?rn:re):Ut===W&&re>rn&&(re=rn,T=he)}return T||y-f}_chooseSplitAxis(Me,f,y){const T=Me.leaf?this.compareMinX:Jh,W=Me.leaf?this.compareMinY:uh,re=this._allDistMargin(Me,f,y,T);this._allDistMargin(Me,f,y,W)>re&&Me.children.sort(T)}_allDistMargin(Me,f,y,T){Me.children.sort(T);const W=this.toBBox,re=wd(Me,0,f,W),he=wd(Me,y-f,y,W);let Le=Rh(re)+Rh(he);for(let qe=f;y-f>qe;qe++){const Ut=Me.children[qe];ef(re,Me.leaf?W(Ut):Ut),Le+=Rh(re)}for(let qe=y-f-1;qe>=f;qe--){const Ut=Me.children[qe];ef(he,Me.leaf?W(Ut):Ut),Le+=Rh(he)}return Le}_adjustParentBBoxes(Me,f,y){for(let T=y;T>=0;T--)ef(f[T],Me)}_condense(Me){for(let f,y=Me.length-1;y>=0;y--)Me[y].children.length===0?y>0?(f=Me[y-1].children,f.splice(f.indexOf(Me[y]),1)):this.clear():_d(Me[y],this.toBBox)}}}),id=pl(qc),Sh=pl(Tu),Pl=pl(Va),ms=pl(Xl).default,Cc=Pl.featureEach,Fi=Sh.featureCollection;function ug(Me){var f=new id(Me);return f.insert=function(y){if(y.type!=="Feature")throw Error("invalid feature");return y.bbox=y.bbox?y.bbox:ms(y),id.prototype.insert.call(this,y)},f.load=function(y){var T=[];return Array.isArray(y)?y.forEach(function(W){if(W.type!=="Feature")throw Error("invalid features");W.bbox=W.bbox?W.bbox:ms(W),T.push(W)}):Cc(y,function(W){if(W.type!=="Feature")throw Error("invalid features");W.bbox=W.bbox?W.bbox:ms(W),T.push(W)}),id.prototype.load.call(this,T)},f.remove=function(y,T){if(y.type!=="Feature")throw Error("invalid feature");return y.bbox=y.bbox?y.bbox:ms(y),id.prototype.remove.call(this,y,T)},f.clear=function(){return id.prototype.clear.call(this)},f.search=function(y){var T=id.prototype.search.call(this,this.toBBox(y));return Fi(T)},f.collides=function(y){return id.prototype.collides.call(this,this.toBBox(y))},f.all=function(){var y=id.prototype.all.call(this);return Fi(y)},f.toJSON=function(){return id.prototype.toJSON.call(this)},f.fromJSON=function(y){return id.prototype.fromJSON.call(this,y)},f.toBBox=function(y){var T;if(y.bbox)T=y.bbox;else if(Array.isArray(y)&&y.length===4)T=y;else if(Array.isArray(y)&&y.length===6)T=[y[0],y[1],y[3],y[4]];else if(y.type==="Feature")T=ms(y);else{if(y.type!=="FeatureCollection")throw Error("invalid geojson");T=ms(y)}return{minX:T[0],minY:T[1],maxX:T[2],maxY:T[3]}},f}var uc=ug;function dd(Me,f){var y={},T=[];if(Me.type==="LineString"&&(Me=dl(Me)),f.type==="LineString"&&(f=dl(f)),Me.type==="Feature"&&f.type==="Feature"&&Me.geometry!==null&&f.geometry!==null&&Me.geometry.type==="LineString"&&f.geometry.type==="LineString"&&Me.geometry.coordinates.length===2&&f.geometry.coordinates.length===2){var W=Ep(Me,f);return W&&T.push(W),Os(T)}var re=uc();return re.load(Au(f)),Un(Au(Me),function(he){Un(re.search(he),function(Le){var qe=Ep(he,Le);if(qe){var Ut=Ta(qe).join(",");y[Ut]||(y[Ut]=!0,T.push(qe))}})}),Os(T)}function Ep(Me,f){var y=Ta(Me),T=Ta(f);if(y.length!==2)throw Error(" line1 must only contain 2 coordinates");if(T.length!==2)throw Error(" line2 must only contain 2 coordinates");var W=y[0][0],re=y[0][1],he=y[1][0],Le=y[1][1],qe=T[0][0],Ut=T[0][1],rn=T[1][0],Qn=T[1][1],br=(Qn-Ut)*(he-W)-(rn-qe)*(Le-re),Ci=(rn-qe)*(re-Ut)-(Qn-Ut)*(W-qe),Ii=(he-W)*(re-Ut)-(Le-re)*(W-qe);if(br===0)return null;var Po=Ci/br,Io=Ii/br;return 0>Po||Po>1||0>Io||Io>1?null:Xo([W+Po*(he-W),re+Po*(Le-re)])}uc.default=ug;var Yp=6378137;function kg(Me){return _o(Me,function(f,y){return f+function(T){var W,re=0;switch(T.type){case"Polygon":return _f(T.coordinates);case"MultiPolygon":for(W=0;T.coordinates.length>W;W++)re+=_f(T.coordinates[W]);return re;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(y)},0)}function _f(Me){var f=0;if(Me&&Me.length>0){f+=Math.abs(bp(Me[0]));for(var y=1;Me.length>y;y++)f-=Math.abs(bp(Me[y]))}return f}function bp(Me){var f,y,T,W,re,he,Le=0,qe=Me.length;if(qe>2){for(he=0;qe>he;he++)he===qe-2?(T=qe-2,W=qe-1,re=0):he===qe-1?(T=qe-1,W=0,re=1):(T=he,W=he+1,re=he+2),f=Me[T],y=Me[W],Le+=(qp(Me[re][0])-qp(f[0]))*Math.sin(qp(y[1]));Le=Le*Yp*Yp/2}return Le}function qp(Me){return Me*Math.PI/180}function fp(Me,f){return f===void 0&&(f={}),Oa(Me,function(y,T){var W=T.geometry.coordinates;return y+mu(W[0],W[1],f)},0)}function Sg(Me,f){f===void 0&&(f={});var y=Ya(Me);switch(f.properties||Me.type!=="Feature"||(f.properties=Me.properties),y.type){case"Polygon":return function(T,W){W===void 0&&(W={});var re=Ya(T),he=re.coordinates,Le=W.properties?W.properties:T.type==="Feature"?T.properties:{};return ip(he,Le)}(y,f);case"MultiPolygon":return function(T,W){W===void 0&&(W={});var re=Ya(T),he=re.coordinates,Le=W.properties?W.properties:T.type==="Feature"?T.properties:{},qe=[];return he.forEach(function(Ut){qe.push(ip(Ut,Le))}),Os(qe)}(y,f);default:throw Error("invalid poly")}}function ip(Me,f){return Me.length>1?Cs(Me,f):Yo(Me[0],f)}function dp(Me){for(var f,y,T=Ta(Me),W=0,re=1;T.length>re;)f=y||T[0],W+=((y=T[re])[0]-f[0])*(y[1]+f[1]),re++;return W>0}var Kd=Ja(function(Me){var f=Object.prototype.hasOwnProperty,y="~";function T(){}function W(qe,Ut,rn){this.fn=qe,this.context=Ut,this.once=rn||!1}function re(qe,Ut,rn,Qn,br){if(typeof rn!="function")throw new TypeError("The listener must be a function");var Ci=new W(rn,Qn||qe,br),Ii=y?y+Ut:Ut;return qe._events[Ii]?qe._events[Ii].fn?qe._events[Ii]=[qe._events[Ii],Ci]:qe._events[Ii].push(Ci):(qe._events[Ii]=Ci,qe._eventsCount++),qe}function he(qe,Ut){--qe._eventsCount==0?qe._events=new T:delete qe._events[Ut]}function Le(){this._events=new T,this._eventsCount=0}Object.create&&(T.prototype=Object.create(null),new T().__proto__||(y=!1)),Le.prototype.eventNames=function(){var qe,Ut,rn=[];if(this._eventsCount===0)return rn;for(Ut in qe=this._events)f.call(qe,Ut)&&rn.push(y?Ut.slice(1):Ut);return Object.getOwnPropertySymbols?rn.concat(Object.getOwnPropertySymbols(qe)):rn},Le.prototype.listeners=function(qe){var Ut=this._events[y?y+qe:qe];if(!Ut)return[];if(Ut.fn)return[Ut.fn];for(var rn=0,Qn=Ut.length,br=Array(Qn);Qn>rn;rn++)br[rn]=Ut[rn].fn;return br},Le.prototype.listenerCount=function(qe){var Ut=this._events[y?y+qe:qe];return Ut?Ut.fn?1:Ut.length:0},Le.prototype.emit=function(qe,Ut,rn,Qn,br,Ci){var Ii=y?y+qe:qe;if(!this._events[Ii])return!1;var Po,Io,Zo=this._events[Ii],Ro=arguments.length;if(Zo.fn){switch(Zo.once&&this.removeListener(qe,Zo.fn,void 0,!0),Ro){case 1:return Zo.fn.call(Zo.context),!0;case 2:return Zo.fn.call(Zo.context,Ut),!0;case 3:return Zo.fn.call(Zo.context,Ut,rn),!0;case 4:return Zo.fn.call(Zo.context,Ut,rn,Qn),!0;case 5:return Zo.fn.call(Zo.context,Ut,rn,Qn,br),!0;case 6:return Zo.fn.call(Zo.context,Ut,rn,Qn,br,Ci),!0}for(Io=1,Po=Array(Ro-1);Ro>Io;Io++)Po[Io-1]=arguments[Io];Zo.fn.apply(Zo.context,Po)}else{var lo,Js=Zo.length;for(Io=0;Js>Io;Io++)switch(Zo[Io].once&&this.removeListener(qe,Zo[Io].fn,void 0,!0),Ro){case 1:Zo[Io].fn.call(Zo[Io].context);break;case 2:Zo[Io].fn.call(Zo[Io].context,Ut);break;case 3:Zo[Io].fn.call(Zo[Io].context,Ut,rn);break;case 4:Zo[Io].fn.call(Zo[Io].context,Ut,rn,Qn);break;default:if(!Po)for(lo=1,Po=Array(Ro-1);Ro>lo;lo++)Po[lo-1]=arguments[lo];Zo[Io].fn.apply(Zo[Io].context,Po)}}return!0},Le.prototype.on=function(qe,Ut,rn){return re(this,qe,Ut,rn,!1)},Le.prototype.once=function(qe,Ut,rn){return re(this,qe,Ut,rn,!0)},Le.prototype.removeListener=function(qe,Ut,rn,Qn){var br=y?y+qe:qe;if(!this._events[br])return this;if(!Ut)return he(this,br),this;var Ci=this._events[br];if(Ci.fn)Ci.fn!==Ut||Qn&&!Ci.once||rn&&Ci.context!==rn||he(this,br);else{for(var Ii=0,Po=[],Io=Ci.length;Io>Ii;Ii++)(Ci[Ii].fn!==Ut||Qn&&!Ci[Ii].once||rn&&Ci[Ii].context!==rn)&&Po.push(Ci[Ii]);Po.length?this._events[br]=Po.length===1?Po[0]:Po:he(this,br)}return this},Le.prototype.removeAllListeners=function(qe){var Ut;return qe?this._events[Ut=y?y+qe:qe]&&he(this,Ut):(this._events=new T,this._eventsCount=0),this},Le.prototype.off=Le.prototype.removeListener,Le.prototype.addListener=Le.prototype.on,Le.prefixed=y,Le.EventEmitter=Le,Me.exports=Le}),xp=function(Me){To(y,Me);var f=Rs(y);function y(T,W){var re,he=W.style;return ln(this,y),(re=f.call(this)).scene=void 0,re.style=void 0,re.layers=void 0,re.data=[],re.scene=T,re.style=he,re.layers=re.initLayers(),re.layers.forEach(function(Le){T.addLayer(Le)}),he.callback instanceof Function&&he.callback(re.layers),re}return Zr(y,[{key:"getLayers",value:function(){return this.layers}},{key:"show",value:function(){this.layers.forEach(function(T){T.show()})}},{key:"hide",value:function(){this.layers.forEach(function(T){T.hide()})}},{key:"setData",value:function(T){var W=Ps(T).sort(function(re,he){return+re.properties.isActive-+he.properties.isActive});this.data=W,this.layers.forEach(function(re){re.setData(Os(W))})}},{key:"destroy",value:function(){var T=this;this.layers.forEach(function(W){T.scene.removeLayer(W)})}}]),y}(Kd.EventEmitter),cg=function(Me){To(y,Me);var f=Rs(y);function y(){return ln(this,y),f.apply(this,arguments)}return Zr(y,[{key:"initLayers",value:function(){var T=this.style,W=T.normal,re=T.style,he=T.options;return[new R.LineLayer(he!=null?he:{}).source(Os([])).size(W.size).color(W.color).shape("line").style(re)]}}]),y}(xp),Lp=function(Me){var f=typeof Me;return Me!=null&&(f=="object"||f=="function")},gh=typeof $a=="object"&&$a&&$a.Object===Object&&$a,eg=typeof self=="object"&&self&&self.Object===Object&&self,Jd=gh||eg||Function("return this")(),Pf=function(){return Jd.Date.now()},hp=/\s/,Pu=function(Me){for(var f=Me.length;f--&&hp.test(Me.charAt(f)););return f},Rp=/^\s+/,Tp=function(Me){return Me&&Me.slice(0,Pu(Me)+1).replace(Rp,"")},Hf=Jd.Symbol,Od=Object.prototype,Fd=Od.hasOwnProperty,Nd=Od.toString,Ld=Hf?Hf.toStringTag:void 0,Sf=function(Me){var f=Fd.call(Me,Ld),y=Me[Ld];try{Me[Ld]=void 0;var T=!0}catch(re){}var W=Nd.call(Me);return T&&(f?Me[Ld]=y:delete Me[Ld]),W},pp=Object.prototype.toString,tg=function(Me){return pp.call(Me)},Dd=Hf?Hf.toStringTag:void 0,Rf=function(Me){return Me==null?Me===void 0?"[object Undefined]":"[object Null]":Dd&&Dd in Object(Me)?Sf(Me):tg(Me)},zh=function(Me){return Me!=null&&typeof Me=="object"},kh=function(Me){return typeof Me=="symbol"||zh(Me)&&Rf(Me)=="[object Symbol]"},Yf=/^[-+]0x[0-9a-f]+$/i,vd=/^0b[01]+$/i,$c=/^0o[0-7]+$/i,oh=parseInt,Xh=function(Me){if(typeof Me=="number")return Me;if(kh(Me))return NaN;if(Lp(Me)){var f=typeof Me.valueOf=="function"?Me.valueOf():Me;Me=Lp(f)?f+"":f}if(typeof Me!="string")return Me===0?Me:+Me;Me=Tp(Me);var y=vd.test(Me);return y||$c.test(Me)?oh(Me.slice(2),y?2:8):Yf.test(Me)?NaN:+Me},zo=Math.max,P=Math.min,j=function(Me,f,y){var T,W,re,he,Le,qe,Ut=0,rn=!1,Qn=!1,br=!0;if(typeof Me!="function")throw new TypeError("Expected a function");function Ci(Ro){var lo=T,Js=W;return T=W=void 0,Ut=Ro,he=Me.apply(Js,lo)}function Ii(Ro){var lo=Ro-qe;return qe===void 0||lo>=f||0>lo||Qn&&Ro-Ut>=re}function Po(){var Ro=Pf();if(Ii(Ro))return Io(Ro);Le=setTimeout(Po,function(lo){var Js=f-(lo-qe);return Qn?P(Js,re-(lo-Ut)):Js}(Ro))}function Io(Ro){return Le=void 0,br&&T?Ci(Ro):(T=W=void 0,he)}function Zo(){var Ro=Pf(),lo=Ii(Ro);if(T=arguments,W=this,qe=Ro,lo){if(Le===void 0)return function(Js){return Ut=Js,Le=setTimeout(Po,f),rn?Ci(Js):he}(qe);if(Qn)return clearTimeout(Le),Le=setTimeout(Po,f),Ci(qe)}return Le===void 0&&(Le=setTimeout(Po,f)),he}return f=Xh(f)||0,Lp(y)&&(rn=!!y.leading,re=(Qn="maxWait"in y)?zo(Xh(y.maxWait)||0,f):re,br="trailing"in y?!!y.trailing:br),Zo.cancel=function(){Le!==void 0&&clearTimeout(Le),Ut=0,T=qe=W=Le=void 0},Zo.flush=function(){return Le===void 0?he:Io(Pf())},Zo},ae=function(Me){To(y,Me);var f=Rs(y);function y(){var T;ln(this,y);for(var W=arguments.length,re=Array(W),he=0;W>he;he++)re[he]=arguments[he];return(T=f.call.apply(f,[this].concat(re))).onMouseMove=function(Le){T.emit(v.RenderEvent.Mousemove,Le)},T.onMouseOut=function(Le){T.emit(v.RenderEvent.Mouseout,Le)},T.onMouseDown=function(Le){T.emit(v.RenderEvent.Dragstart,Le)},T.onDragging=function(Le){T.emit(v.RenderEvent.Dragging,Le)},T.onDragEnd=j(function(Le){T.emit(v.RenderEvent.Dragend,Le)},0),T.onUnClick=function(Le){T.emit(v.RenderEvent.UnClick,Le)},T.enableHover=function(){var Le,qe;T.disableHover(),(Le=T.layers[0])===null||Le===void 0||Le.on(v.LayerEvent.Mousemove,T.onMouseMove),(qe=T.layers[0])===null||qe===void 0||qe.on(v.LayerEvent.Mouseout,T.onMouseOut)},T.disableHover=function(){var Le,qe;(Le=T.layers[0])===null||Le===void 0||Le.off(v.LayerEvent.Mousemove,T.onMouseMove),(qe=T.layers[0])===null||qe===void 0||qe.off(v.LayerEvent.Mouseout,T.onMouseOut)},T}return Zr(y,[{key:"initLayers",value:function(){var T=this.style,W=T.normal,re=T.hover,he=T.active,Le=T.style,qe=T.options;return[new R.LineLayer(qe!=null?qe:{}).source(Os([])).size("isHover*isActive",function(Ut,rn){return rn?he.size:Ut?re.size:W.size}).color("isHover*isActive",function(Ut,rn){return rn?he.color:Ut?re.color:W.color}).shape("line").style(Le)]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(v.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(v.LayerEvent.UnClick,this.onUnClick)}}]),y}(xp),pe=function(Me){To(y,Me);var f=Rs(y);function y(){var T;ln(this,y);for(var W=arguments.length,re=Array(W),he=0;W>he;he++)re[he]=arguments[he];return(T=f.call.apply(f,[this].concat(re))).onMouseMove=function(Le){T.emit(v.RenderEvent.Mousemove,Le)},T.onMouseOut=function(Le){T.emit(v.RenderEvent.Mouseout,Le)},T.onMouseDown=function(Le){T.emit(v.RenderEvent.Click,Le)},T}return Zr(y,[{key:"initLayers",value:function(){var T=this.style,W=T.normal,re=T.style,he=re===void 0?{}:re,Le=T.options,qe=W.shape,Ut=W.size,rn=W.color;return[new R.PointLayer(Le!=null?Le:{}).source(Os([])).size(Ut).color(rn).shape(qe).style(he)]}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown)}},{key:"disableClick",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown)}},{key:"enableHover",value:function(){var T,W;this.disableHover(),(T=this.layers[0])===null||T===void 0||T.on(v.LayerEvent.Mousemove,this.onMouseMove),(W=this.layers[0])===null||W===void 0||W.on(v.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var T,W;(T=this.layers[0])===null||T===void 0||T.off(v.LayerEvent.Mousemove,this.onMouseMove),(W=this.layers[0])===null||W===void 0||W.off(v.LayerEvent.Mouseout,this.onMouseOut)}}]),y}(xp),it=function(Me){To(y,Me);var f=Rs(y);function y(){var T;ln(this,y);for(var W=arguments.length,re=Array(W),he=0;W>he;he++)re[he]=arguments[he];return(T=f.call.apply(f,[this].concat(re))).onCreate=function(Le){T.emit(v.RenderEvent.UnClick,Le)},T.onMouseMove=function(Le){T.emit(v.RenderEvent.Mousemove,Le)},T.onMouseOut=function(Le){T.emit(v.RenderEvent.Mouseout,Le)},T.onMouseDown=function(Le){T.emit(v.RenderEvent.Dragstart,Le)},T.onDragging=function(Le){T.emit(v.RenderEvent.Dragging,Le)},T.onDragEnd=j(function(Le){T.emit(v.RenderEvent.Dragend,Le)},0),T.onClick=function(Le){T.emit(v.RenderEvent.Click,Le)},T.onContextmenu=function(Le){T.emit(v.RenderEvent.Contextmenu,Le)},T}return Zr(y,[{key:"initLayers",value:function(){var T=this.style,W=T.normal,re=T.hover,he=T.active,Le=T.style,qe=Le===void 0?{}:Le,Ut=T.options;return[new R.PointLayer(Ut!=null?Ut:{}).source(Os([])).size("isHover*isActive",function(rn,Qn){return Qn?he.size:rn?re.size:W.size}).color("isHover*isActive",function(rn,Qn){return Qn?he.color:rn?re.color:W.color}).shape("isHover*isActive",function(rn,Qn){return Qn?he.shape:rn?re.shape:W.shape}).style(qe)]}},{key:"enableCreate",value:function(){this.disableCreate(),this.layers[0].on(v.LayerEvent.UnClick,this.onCreate)}},{key:"disableCreate",value:function(){this.layers[0].off(v.LayerEvent.UnClick,this.onCreate)}},{key:"enableHover",value:function(){var T,W;this.disableHover(),(T=this.layers[0])===null||T===void 0||T.on(v.LayerEvent.Mousemove,this.onMouseMove),(W=this.layers[0])===null||W===void 0||W.on(v.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var T,W;(T=this.layers[0])===null||T===void 0||T.off(v.LayerEvent.Mousemove,this.onMouseMove),(W=this.layers[0])===null||W===void 0||W.off(v.LayerEvent.Mouseout,this.onMouseOut)}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(v.LayerEvent.Click,this.onClick)}},{key:"disableClick",value:function(){this.layers[0].off(v.LayerEvent.Click,this.onClick)}},{key:"enableContextMenu",value:function(){this.disableContextMenu(),this.layers[0].on(v.LayerEvent.Contextmenu,this.onContextmenu)}},{key:"disableContextMenu",value:function(){this.layers[0].off(v.LayerEvent.Contextmenu,this.onContextmenu)}}]),y}(xp),dn=function(Me){To(y,Me);var f=Rs(y);function y(){var T;ln(this,y);for(var W=arguments.length,re=Array(W),he=0;W>he;he++)re[he]=arguments[he];return(T=f.call.apply(f,[this].concat(re))).onMouseMove=function(Le){T.emit(v.RenderEvent.Mousemove,Le)},T.onMouseOut=function(Le){T.emit(v.RenderEvent.Mouseout,Le)},T.onMouseDown=function(Le){T.emit(v.RenderEvent.Dragstart,Le)},T.onDragging=function(Le){T.emit(v.RenderEvent.Dragging,Le)},T.onDragEnd=j(function(Le){T.emit(v.RenderEvent.Dragend,Le)},0),T.onUnClick=function(Le){T.emit(v.RenderEvent.UnClick,Le)},T.enableHover=function(){var Le,qe;T.disableHover(),(Le=T.layers[0])===null||Le===void 0||Le.on(v.LayerEvent.Mousemove,T.onMouseMove),(qe=T.layers[0])===null||qe===void 0||qe.on(v.LayerEvent.Mouseout,T.onMouseOut)},T.disableHover=function(){var Le,qe;(Le=T.layers[0])===null||Le===void 0||Le.off(v.LayerEvent.Mousemove,T.onMouseMove),(qe=T.layers[0])===null||qe===void 0||qe.off(v.LayerEvent.Mouseout,T.onMouseOut)},T}return Zr(y,[{key:"initLayers",value:function(){var T=this.style,W=T.normal,re=T.hover,he=T.active,Le=T.style,qe=T.options,Ut=new R.PolygonLayer(qe!=null?qe:{});return Ut.source(Os([])).color("isHover*isActive",function(rn,Qn){return Qn?he.color:rn?re.color:W.color}).style(Le),[Ut]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(v.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(v.LayerEvent.UnClick,this.onUnClick)}}]),y}(xp),ir=function(Me){To(y,Me);var f=Rs(y);function y(T){var W;return ln(this,y),(W=f.call(this)).scene=void 0,W.previousClick=void 0,W.onDblClick=function(re){var he,Le,qe=(he=(Le=re.pixel)!==null&&Le!==void 0?Le:re.point)!==null&&he!==void 0?he:{},Ut=qe.x,rn=Ut===void 0?0:Ut,Qn=qe.y,br=Qn===void 0?0:Qn,Ci=Date.now();if(W.previousClick){var Ii=W.previousClick,Po=Ii.y;300>Ci-Ii.time&&5>Math.abs(rn-Ii.x)&&5>Math.abs(br-Po)&&W.emit(v.RenderEvent.DblClick,re)}W.previousClick={x:rn,y:br,time:Ci}},W.onMouseMove=function(re){W.emit(v.RenderEvent.Mousemove,re)},W.onMouseDown=function(re){W.emit(v.RenderEvent.Dragstart,re)},W.onDragging=function(re){W.emit(v.RenderEvent.Dragging,re)},W.onDragEnd=j(function(re){W.emit(v.RenderEvent.Dragend,re)},0),W.scene=T,W}return Zr(y,[{key:"enableDrag",value:function(){this.disableDrag(),this.scene.on(v.SceneEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.scene.off(v.SceneEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableMouseMove",value:function(){this.disableMouseMove(),this.scene.on(v.SceneEvent.Mousemove,this.onMouseMove)}},{key:"disableMouseMove",value:function(){this.scene.off(v.SceneEvent.Mousemove,this.onMouseMove)}},{key:"enableDblClick",value:function(){this.disableDblClick(),this.scene.on(v.SceneEvent.Mousedown,this.onDblClick)}},{key:"disableDblClick",value:function(){this.scene.off(v.SceneEvent.Mousedown,this.onDblClick)}}]),y}(Kd),Te=function(Me){To(y,Me);var f=Rs(y);function y(){return ln(this,y),f.apply(this,arguments)}return Zr(y,[{key:"initLayers",value:function(){var T=this.style,W=T.normal,re=T.active,he=T.style,Le=he===void 0?{}:he,qe=T.options;return[new R.PointLayer(qe!=null?qe:{}).source(Os([])).size("isActive",function(Ut){return Ut?re.size:W.size}).color("isActive",function(Ut){return Ut?re.color:W.color}).shape("text","text").style(Le)]}}]),y}(xp),D={point:it,line:ae,dashLine:cg,midPoint:pe,text:Te,polygon:dn},ie="#1990FF",Se="#ED9D48",Ne={blend:"normal",pickingBuffer:5},ct={color:ie,shape:"circle",size:6},Ht={color:Se,shape:"circle",size:6},en={shape:"circle",size:6,color:Se},zn={options:Ne,normal:ct,hover:ft(ft({},ct),{},{size:8}),active:ft(ft({},ct),{},{size:8,color:Se}),style:{stroke:"#ffffff",strokeWidth:2}},Ir={options:Ne,normal:Ht,hover:ft(ft({},Ht),{},{size:8}),active:ft(ft({},Ht),{},{size:8}),style:{stroke:"#ffffff",strokeWidth:2}},G={color:ie,size:12},J={point:Ir,line:{options:Ne,normal:{color:ie,size:2},hover:{color:ie,size:2},active:{color:Se,size:2},style:{}},polygon:{options:Ne,normal:{color:ie},hover:{color:ie},active:{color:Se},style:{opacity:.15}},midPoint:{options:Ne,normal:en},dashLine:{options:Ne,normal:{color:Se,size:2},style:{lineType:"dash",dashArray:[6,6]}},text:{options:Ne,normal:G,active:ft(ft({},G),{},{color:Se}),style:{fontWeight:"800",textOffset:[0,G.size+6],textAllowOverlap:!0,stroke:"#ffffff",strokeWidth:2}}},Q=function(Me,f){return Me===f||Me!=Me&&f!=f},ue=function(Me,f){for(var y=Me.length;y--;)if(Q(Me[y][0],f))return y;return-1},Ze=Array.prototype.splice,Et=function(Me){var f=this.__data__,y=ue(f,Me);return y>=0&&(y==f.length-1?f.pop():Ze.call(f,y,1),--this.size,!0)},Ot=function(Me){var f=this.__data__,y=ue(f,Me);return 0>y?void 0:f[y][1]},mn=function(Me){return ue(this.__data__,Me)>-1},yr=function(Me,f){var y=this.__data__,T=ue(y,Me);return 0>T?(++this.size,y.push([Me,f])):y[T][1]=f,this};function Sn(Me){var f=-1,y=Me==null?0:Me.length;for(this.clear();++fT.length)return T.push([Me,f]),this.size=++y.size,this;y=this.__data__=new hd(T)}return y.set(Me,f),this.size=y.size,this};function rh(Me){var f=this.__data__=new bi(Me);this.size=f.size}rh.prototype.clear=ki,rh.prototype.delete=Zi,rh.prototype.get=Bo,rh.prototype.has=Go,rh.prototype.set=xd;var Ec=rh,Ph=function(Me,f){for(var y=-1,T=Me==null?0:Me.length;++y-1&&Me%1==0&&f>Me},Xg=function(Me){return typeof Me=="number"&&Me>-1&&Me%1==0&&9007199254740991>=Me},np={};np["[object Float32Array]"]=np["[object Float64Array]"]=np["[object Int8Array]"]=np["[object Int16Array]"]=np["[object Int32Array]"]=np["[object Uint8Array]"]=np["[object Uint8ClampedArray]"]=np["[object Uint16Array]"]=np["[object Uint32Array]"]=!0,np["[object Arguments]"]=np["[object Array]"]=np["[object ArrayBuffer]"]=np["[object Boolean]"]=np["[object DataView]"]=np["[object Date]"]=np["[object Error]"]=np["[object Function]"]=np["[object Map]"]=np["[object Number]"]=np["[object Object]"]=np["[object RegExp]"]=np["[object Set]"]=np["[object String]"]=np["[object WeakMap]"]=!1;var Eh=function(Me){return zh(Me)&&Xg(Me.length)&&!!np[Rf(Me)]},i0=function(Me){return function(f){return Me(f)}},Cm=Ja(function(Me,f){var y=f&&!f.nodeType&&f,T=y&&Me&&!Me.nodeType&&Me,W=T&&T.exports===y&&gh.process,re=function(){try{var he=T&&T.require&&T.require("util").types;return he||W&&W.binding&&W.binding("util")}catch(Le){}}();Me.exports=re}),o0=Cm&&Cm.isTypedArray,Yg=o0?i0(o0):Eh,Ym=Object.prototype.hasOwnProperty,x0=function(Me,f){var y=Ap(Me),T=!y&&Zp(Me),W=!y&&!T&&of(Me),re=!y&&!T&&!W&&Yg(Me),he=y||T||W||re,Le=he?Wg(Me.length,String):[],qe=Le.length;for(var Ut in Me)!f&&!Ym.call(Me,Ut)||he&&(Ut=="length"||W&&(Ut=="offset"||Ut=="parent")||re&&(Ut=="buffer"||Ut=="byteLength"||Ut=="byteOffset")||Eg(Ut,qe))||Le.push(Ut);return Le},Tm=Object.prototype,qg=function(Me){var f=Me&&Me.constructor;return Me===(typeof f=="function"&&f.prototype||Tm)},Jg=function(Me,f){return function(y){return Me(f(y))}},k0=Jg(Object.keys,Object),Ng=Object.prototype.hasOwnProperty,vm=function(Me){if(!qg(Me))return k0(Me);var f=[];for(var y in Object(Me))Ng.call(Me,y)&&y!="constructor"&&f.push(y);return f},Bg=function(Me){return Me!=null&&Xg(Me.length)&&!$o(Me)},Vm=function(Me){return Bg(Me)?x0(Me):vm(Me)},Pg=function(Me,f){return Me&&Op(f,Vm(f),Me)},cv=function(Me){var f=[];if(Me!=null)for(var y in Object(Me))f.push(y);return f},Jf=Object.prototype.hasOwnProperty,Dp=function(Me){if(!Lp(Me))return cv(Me);var f=qg(Me),y=[];for(var T in Me)(T!="constructor"||!f&&Jf.call(Me,T))&&y.push(T);return y},bf=function(Me){return Bg(Me)?x0(Me,!0):Dp(Me)},O0=function(Me,f){return Me&&Op(f,bf(f),Me)},N0=Ja(function(Me,f){var y=f&&!f.nodeType&&f,T=y&&Me&&!Me.nodeType&&Me,W=T&&T.exports===y?Jd.Buffer:void 0,re=W?W.allocUnsafe:void 0;Me.exports=function(he,Le){if(Le)return he.slice();var qe=he.length,Ut=re?re(qe):new he.constructor(qe);return he.copy(Ut),Ut}}),um=function(Me,f){var y=-1,T=Me.length;for(f||(f=Array(T));++yLe))return!1;var Ut=re.get(Me),rn=re.get(f);if(Ut&&rn)return Ut==f&&rn==Me;var Qn=-1,br=!0,Ci=2&y?new ws:void 0;for(re.set(Me,f),re.set(f,Me);++Qn0){if(++f>=800)return arguments[0]}else f=0;return Me.apply(void 0,arguments)}},vu=xu(ch?function(Me,f){return ch(Me,"toString",{configurable:!0,enumerable:!1,value:ma(f),writable:!0})}:Rl),ka=function(Me,f){return vu(ls(Me,f,Rl),Me+"")},xc=function(Me,f,y){if(!Lp(y))return!1;var T=typeof f;return!!(T=="number"?Bg(y)&&Eg(f,y.length):T=="string"&&f in y)&&Q(y[f],Me)},zl=function(Me){return ka(function(f,y){var T=-1,W=y.length,re=W>1?y[W-1]:void 0,he=W>2?y[2]:void 0;for(re=Me.length>3&&typeof re=="function"?(W--,re):void 0,he&&xc(y[0],y[1],he)&&(re=3>W?void 0:re,W=1),f=Object(f);++T":".","?":"/","|":"\\"},qe={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},Ut=1;20>Ut;++Ut)re[111+Ut]="f"+Ut;for(Ut=0;9>=Ut;++Ut)re[Ut+96]=""+Ut;Io.prototype.bind=function(Zo,Ro,lo){var Js=this;return Js._bindMultiple.call(Js,Zo=Zo instanceof Array?Zo:[Zo],Ro,lo),Js},Io.prototype.unbind=function(Zo,Ro){return this.bind.call(this,Zo,function(){},Ro)},Io.prototype.trigger=function(Zo,Ro){var lo=this;return lo._directMap[Zo+":"+Ro]&&lo._directMap[Zo+":"+Ro]({},Zo),lo},Io.prototype.reset=function(){var Zo=this;return Zo._callbacks={},Zo._directMap={},Zo},Io.prototype.stopCallback=function(Zo,Ro){if((" "+Ro.className+" ").indexOf(" mousetrap ")>-1||Po(Ro,this.target))return!1;if("composedPath"in Zo&&typeof Zo.composedPath=="function"){var lo=Zo.composedPath()[0];lo!==Zo.target&&(Ro=lo)}return Ro.tagName=="INPUT"||Ro.tagName=="SELECT"||Ro.tagName=="TEXTAREA"||Ro.isContentEditable},Io.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},Io.addKeycodes=function(Zo){for(var Ro in Zo)Zo.hasOwnProperty(Ro)&&(re[Ro]=Zo[Ro]);W=null},Io.init=function(){var Zo=Io(y);for(var Ro in Zo)Ro.charAt(0)!=="_"&&(Io[Ro]=function(lo){return function(){return Zo[lo].apply(Zo,arguments)}}(Ro))},Io.init(),f.Mousetrap=Io,Me.exports&&(Me.exports=Io)}function rn(Zo,Ro,lo){Zo.addEventListener?Zo.addEventListener(Ro,lo,!1):Zo.attachEvent("on"+Ro,lo)}function Qn(Zo){if(Zo.type=="keypress"){var Ro=String.fromCharCode(Zo.which);return Zo.shiftKey||(Ro=Ro.toLowerCase()),Ro}return re[Zo.which]?re[Zo.which]:he[Zo.which]?he[Zo.which]:String.fromCharCode(Zo.which).toLowerCase()}function br(Zo){return Zo=="shift"||Zo=="ctrl"||Zo=="alt"||Zo=="meta"}function Ci(Zo,Ro,lo){return lo||(lo=function(){if(!W)for(var Js in W={},re)Js>95&&112>Js||re.hasOwnProperty(Js)&&(W[re[Js]]=Js);return W}()[Zo]?"keydown":"keypress"),lo=="keypress"&&Ro.length&&(lo="keydown"),lo}function Ii(Zo,Ro){var lo,Js,Ua,_l=[];for(lo=function(fu){return fu==="+"?["+"]:(fu=fu.replace(/\+{2}/g,"+plus")).split("+")}(Zo),Ua=0;lo.length>Ua;++Ua)qe[Js=lo[Ua]]&&(Js=qe[Js]),Ro&&Ro!="keypress"&&Le[Js]&&(Js=Le[Js],_l.push("shift")),br(Js)&&_l.push(Js);return{key:Js,modifiers:_l,action:Ro=Ci(Js,_l,Ro)}}function Po(Zo,Ro){return Zo!==null&&Zo!==y&&(Zo===Ro||Po(Zo.parentNode,Ro))}function Io(Zo){var Ro=this;if(Zo=Zo||y,!(Ro instanceof Io))return new Io(Zo);Ro.target=Zo,Ro._callbacks={},Ro._directMap={};var lo,Js={},Ua=!1,_l=!1,fu=!1;function zu(or){or=or||{};var Wr,hi=!1;for(Wr in Js)or[Wr]?hi=!0:Js[Wr]=0;hi||(fu=!1)}function Lu(or,Wr,hi,io,ia,rl){var js,ul,nu,ks=[],Tc=hi.type;if(!Ro._callbacks[or])return[];for(Tc=="keyup"&&br(or)&&(Wr=[or]),js=0;Ro._callbacks[or].length>js;++js)ul=Ro._callbacks[or][js],(io||!ul.seq||Js[ul.seq]==ul.level)&&Tc==ul.action&&(Tc=="keypress"&&!hi.metaKey&&!hi.ctrlKey||(nu=ul.modifiers,Wr.sort().join(",")===nu.sort().join(",")))&&((!io&&ul.combo==ia||io&&ul.seq==io&&ul.level==rl)&&Ro._callbacks[or].splice(js,1),ks.push(ul));return ks}function od(or,Wr,hi,io){Ro.stopCallback(Wr,Wr.target||Wr.srcElement,hi,io)||or(Wr,hi)===!1&&(function(ia){ia.preventDefault?ia.preventDefault():ia.returnValue=!1}(Wr),function(ia){ia.stopPropagation?ia.stopPropagation():ia.cancelBubble=!0}(Wr))}function wu(or){typeof or.which!="number"&&(or.which=or.keyCode);var Wr=Qn(or);Wr&&(or.type!="keyup"||Ua!==Wr?Ro.handleKey(Wr,function(hi){var io=[];return hi.shiftKey&&io.push("shift"),hi.altKey&&io.push("alt"),hi.ctrlKey&&io.push("ctrl"),hi.metaKey&&io.push("meta"),io}(or),or):Ua=!1)}function zc(or,Wr,hi,io){function ia(nu){return function(){fu=nu,++Js[or],clearTimeout(lo),lo=setTimeout(zu,1e3)}}function rl(nu){od(hi,nu,or),io!=="keyup"&&(Ua=Qn(nu)),setTimeout(zu,10)}Js[or]=0;for(var js=0;Wr.length>js;++js){var ul=js+1===Wr.length?rl:ia(io||Ii(Wr[js+1]).action);Nn(Wr[js],ul,io,or,js)}}function Nn(or,Wr,hi,io,ia){Ro._directMap[or+":"+hi]=Wr;var rl,js=(or=or.replace(/\s+/g," ")).split(" ");js.length>1?zc(or,js,Wr,hi):(rl=Ii(or,hi),Ro._callbacks[rl.key]=Ro._callbacks[rl.key]||[],Lu(rl.key,rl.modifiers,{type:rl.action},io,or,ia),Ro._callbacks[rl.key][io?"unshift":"push"]({callback:Wr,modifiers:rl.modifiers,action:rl.action,seq:io,level:ia,combo:or}))}Ro._handleKey=function(or,Wr,hi){var io,ia=Lu(or,Wr,hi),rl={},js=0,ul=!1;for(io=0;ia.length>io;++io)ia[io].seq&&(js=Math.max(js,ia[io].level));for(io=0;ia.length>io;++io)if(ia[io].seq){if(ia[io].level!=js)continue;ul=!0,rl[ia[io].seq]=1,od(ia[io].callback,hi,ia[io].combo,ia[io].seq)}else ul||od(ia[io].callback,hi,ia[io].combo);var nu=hi.type=="keypress"&&_l;hi.type!=fu||br(or)||nu||zu(rl),_l=ul&&hi.type=="keydown"},Ro._bindMultiple=function(or,Wr,hi){for(var io=0;or.length>io;++io)Nn(or[io],Wr,hi)},rn(Zo,"keypress",wu),rn(Zo,"keydown",wu),rn(Zo,"keyup",wu)}})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)}),ud,Dc=function(Me){return Me&&Me.length?Me[0]:void 0},Ul=(ud=1,function(Me){return"".concat(Me,"-").concat(ud++)}),Nh=function(Me,f){var y,T;return!(!Me||!f||((y=Me.properties)===null||y===void 0?void 0:y.id)!==((T=f.properties)===null||T===void 0?void 0:T.id))},Ge=function(Me){var f=Me.target,y=Me.targetHandler,T=Me.otherHandler;return Me.data.map(function(W,re){var he,Le=Nh(W,f)?y:T;return(he=Le==null?void 0:Le(W,re))!==null&&he!==void 0?he:W})},We=function(){return{id:Ul("point"),isHover:!1,isActive:!1,isDrag:!1,createTime:Date.now()}},yt=function(){return{id:Ul("line"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},Pn=function(){return{id:Ul("polygon"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},xi=function(Me){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Xo(Me,ft(ft({},We()),f))},Zn=function(Me){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:ft(ft({},yt()),{},{nodes:Me},f),geometry:{type:"LineString",coordinates:jr(Os(Me))}}},ci=function(Me){return Yo(Me,{id:Ul("dashLine")})},So=function(Me){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:ft(ft({},Pn()),{},{nodes:Me},f),geometry:{type:"Polygon",coordinates:[jr(Os([].concat(Ps(Me),[Dc(Me)])))]}}},Zs=function(Me){return function(f,y,T){T===void 0&&(T={});for(var W=Ya(f).coordinates,re=0,he=0;W.length>he&&(re>y||he!==W.length-1);he++){if(re>=y){var Le=y-re;if(Le){var qe=Qa(W[he],W[he-1])-180;return Uh(W[he],Le,qe,T)}return Xo(W[he])}re+=mu(W[he],W[he+1],T)}return Xo(W[W.length-1])}(Me,fp(Me,{units:"meters"})/2,{units:"meters"})},La=function(Me,f){var y=f.format,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},W=[];if(f.showTotalDistance){var re=Zs(Me),he=fp(Me,{units:"meters"});re.properties=ft({id:Ul("text"),isActive:!1,meters:he,text:y(he),type:"totalDistance"},T),W.push(re)}else for(var Le=Me.geometry.coordinates,qe=0;Le.length-1>qe;qe++){var Ut=Xo(Le[qe]),rn=Xo(Le[qe+1]),Qn=mu(Ut,rn,{units:"meters"}),br=_u(Os([Ut,rn]));br.properties=ft({id:Ul("text"),isActive:!1,meters:Qn,text:y(Qn),type:"distance"},T),W.push(br)}return W},uu=function(Me,f){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},T=f.format,W=kg(Me);return du(Me,{properties:ft({meters:W,text:T(W),type:"area",isActive:!1},y)})},Jo=function(Me){var f,y,T,W,re,he,Le=Me.getContainer();return(f=(y=(T=(W=(re=(he=Le==null?void 0:Le.querySelector(".l7-marker-container"))!==null&&he!==void 0?he:Le==null?void 0:Le.querySelector(".BMap_mask"))!==null&&re!==void 0?re:Me.getMapCanvasContainer())!==null&&W!==void 0?W:Le==null?void 0:Le.querySelector(".l7-scene"))!==null&&T!==void 0?T:Le==null?void 0:Le.querySelector(".l7-control-container"))!==null&&y!==void 0?y:Le==null?void 0:Le.querySelector(".l7-marker-container2"))!==null&&f!==void 0?f:null},ya=function(Me){return Me.lngLat||Me.lnglat},Ea=function(Me){var f=ya(Me);return[f.lng,f.lat]},ts=function(Me){return[Me.lng,Me.lat]},Ma=function(Me){for(var f=Number.MAX_SAFE_INTEGER,y=0,T=Me.length,W=0;T>W;W++)f>Me[W]&&(f=Me[W],y=W);return y},Ls=function(Me,f){var y=[],T=[];return Me.forEach(function(W){Ke(W,f)?T.length&&(y.push(T),T=[]):T.push(W)}),T.length&&y.push(T),y},go=function(Me,f,y){var T=[],W=[],re=[];return T=Me==="allDrawData"?Da.instances.map(function(he){return he.getData()}).flat():Me==="drawData"?f.getData():Me instanceof Function?Me(y):Me,T.length&&(W=T.map(function(he){var Le,qe=(Le=he.properties)!==null&&Le!==void 0?Le:{},Ut=qe.nodes,rn=Ut===void 0?[]:Ut,Qn=qe.isActive;return Qn!==void 0&&Qn?rn.filter(function(br){return!Ke(br.geometry.coordinates,y)}):rn}).flat().filter(function(he){return he}),W.length||(W=jr(Os(T)).map(function(he){return Xo(he)})),re=T.map(function(he){var Le,qe,Ut=(Le=he.properties)===null||Le===void 0?void 0:Le.line;return!((qe=he.properties)===null||qe===void 0)&&qe.isActive&&Ut?Ls(Ut.properties.nodes.map(function(rn){return rn.geometry.coordinates}),y).filter(function(rn){return rn.length>1}).map(function(rn){return Yo(rn)}):[Ut]}).flat().filter(function(he){return he}),re.length||T.forEach(function(he){var Le=cu(he);if(/linestring/i.test(Le)&&re.push(he),/polygon/i.test(Le)){var qe,Ut,rn=Sg(he);return(qe=re).push.apply(qe,Ps((Ut=rn==null?void 0:rn.features)!==null&&Ut!==void 0?Ut:[rn]))}})),{points:W,lines:re}},Vo=function(Me,f,y,T){var W=y.pointAdsorbPixel,re=Lo(Me,2),he=T.lngLatToPixel([re[0],re[1]]),Le=he.x,qe=he.y,Ut=f.map(function(Qn){var br=Lo(Qn.geometry.coordinates,2),Ci=T.lngLatToPixel([br[0],br[1]]),Ii=Ci.y;return Math.pow(Le-Ci.x,2)+Math.pow(qe-Ii,2)}),rn=Ma(Ut);return Math.pow(Ut[rn],.5)>W?null:f[rn].geometry.coordinates},Fs=function(Me,f,y,T){var W=y.lineAdsorbPixel,re=Lo(Me,2),he=T.lngLatToPixel([re[0],re[1]]),Le=he.x,qe=he.y,Ut=f.filter(function(br){return jr(br).length>1}).map(function(br){return function(Ci,Ii,Po){Po===void 0&&(Po={});var Io=Xo([1/0,1/0],{dist:1/0}),Zo=0;return us(Ci,function(Ro){for(var lo=Ta(Ro),Js=0;lo.length-1>Js;Js++){var Ua=Xo(lo[Js]);Ua.properties.dist=mu(Ii,Ua,Po);var _l=Xo(lo[Js+1]);_l.properties.dist=mu(Ii,_l,Po);var fu=mu(Ua,_l,Po),zu=Math.max(Ua.properties.dist,_l.properties.dist),Lu=Qa(Ua,_l),od=Uh(Ii,zu,Lu+90,Po),wu=Uh(Ii,zu,Lu-90,Po),zc=dd(Yo([od.geometry.coordinates,wu.geometry.coordinates]),Yo([Ua.geometry.coordinates,_l.geometry.coordinates])),Nn=null;zc.features.length>0&&((Nn=zc.features[0]).properties.dist=mu(Ii,Nn,Po),Nn.properties.location=Zo+mu(Ua,Nn,Po)),Io.properties.dist>Ua.properties.dist&&((Io=Ua).properties.index=Js,Io.properties.location=Zo),Io.properties.dist>_l.properties.dist&&((Io=_l).properties.index=Js+1,Io.properties.location=Zo+fu),Nn&&Io.properties.dist>Nn.properties.dist&&((Io=Nn).properties.index=Js),Zo+=fu}}),Io}(br,Me)});if(!Ut.length)return null;var rn=Ut.map(function(br){var Ci=Lo(br.geometry.coordinates,2),Ii=T.lngLatToPixel([Ci[0],Ci[1]]),Po=Ii.y;return Math.pow(Le-Ii.x,2)+Math.pow(qe-Po,2)}),Qn=Ma(rn);return Math.pow(rn[Qn],.5)>W?null:Ut[Qn].geometry.coordinates},$l=function(Me,f){var y=Lo(f,2),T=y[0],W=y[1];Me.lngLat&&(Me.lngLat={lng:T,lat:W}),Me.lnglat&&(Me.lnglat={lng:T,lat:W})},Cl=function(){function Me(f,y){ln(this,Me),this.container=void 0,this.cursor=null,this.options=void 0,this.container=Jo(f),this.options=y}return Zr(Me,[{key:"setCursor",value:function(f){f!==this.cursor&&this.container&&(this.container.style.cursor=f?this.options[f]:"",this.cursor=f)}},{key:"destroy",value:function(){this.setCursor(null)}}]),Me}();function Ra(Me,f){f===void 0&&(f={});var y=f.insertAt;if(Me&&typeof document!="undefined"){var T=document.head||document.getElementsByTagName("head")[0],W=document.createElement("style");W.type="text/css",y==="top"&&T.firstChild?T.insertBefore(W,T.firstChild):T.appendChild(W),W.styleSheet?W.styleSheet.cssText=Me:W.appendChild(document.createTextNode(Me))}}Ra('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}'),Ra(".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}");var Xs=function(){function Me(f,y){var T=this;ln(this,Me),this.content="",this.tippy=void 0,this.scene=void 0,this.isMouseInner=!1,this.onMouseMove=function(){T.isMouseInner=!0,T.checkTippyShow()},this.onMouseOut=function(){T.isMouseInner=!1,T.checkTippyShow()},this.setContent=j(function(re){var he;T.content=re!=null?re:"",(he=T.tippy)===null||he===void 0||he.setContent(re!=null?re:""),T.checkTippyShow()},16,{maxWait:16});var W=Jo(f);this.scene=f,W&&(this.tippy=ll(Jo(f),ft(ft({},ut),y)),this.tippy.hide(),f.on(v.SceneEvent.Mousemove,this.onMouseMove),f.on(v.SceneEvent.Mouseout,this.onMouseOut))}return Zr(Me,[{key:"getContent",value:function(){return this.content}},{key:"checkTippyShow",value:function(){var f,y;this.content&&this.isMouseInner?(f=this.tippy)===null||f===void 0||f.show():(y=this.tippy)===null||y===void 0||y.hide()}},{key:"destroy",value:function(){var f;this.scene.off(v.SceneEvent.Mousemove,this.onMouseMove),this.scene.off(v.SceneEvent.Mouseout,this.onMouseOut),(f=this.tippy)===null||f===void 0||f.destroy()}}]),Me}(),Wa=function(){function Me(f){var y=f.config;ln(this,Me),this.historyList=[],this.historyIndex=0,this.config=void 0,this.config=y}return Zr(Me,[{key:"save",value:function(f){if(this.config){var y=this.config.maxSize;this.historyIndex&&(this.historyList=this.historyList.slice(this.historyIndex),this.historyIndex=0),y>this.historyList.length||this.historyList.pop();var T=po(f);return this.historyList.unshift(T),T}}},{key:"revert",value:function(){if(this.historyList.length&&this.historyList.length-1>this.historyIndex){var f=this.historyList[++this.historyIndex];return f?po(f):void 0}}},{key:"redo",value:function(){if(this.historyList.length&&this.historyIndex>0){var f=this.historyList[--this.historyIndex];return f?po(f):void 0}}}]),Me}(),Vs=function(Me){To(y,Me);var f=Rs(y);function y(T){var W,re=T.data,he=T.render,Le=T.history,qe=T.scene;return ln(this,y),(W=f.call(this)).scene=void 0,W.render=void 0,W.data=po(b),W.timeout=null,W.diffData={},W.history=void 0,W.scene=qe,W.render=he,Le&&(W.history=new Wa({config:Le})),re&&W.setData(re),W}return Zr(y,[{key:"saveHistory",value:function(){var T;return(T=this.history)===null||T===void 0?void 0:T.save(this.data)}},{key:"revertHistory",value:function(){var T,W=(T=this.history)===null||T===void 0?void 0:T.revert();if(W)return this.setData(W),W}},{key:"redoHistory",value:function(){var T,W=(T=this.history)===null||T===void 0?void 0:T.redo();if(W)return this.setData(W),W}},{key:"setData",value:function(T){var W=this;return Object.keys(T).length&&(this.data=ft(ft({},this.data),T),this.diffData=ft(ft({},this.diffData),T),this.timeout||(this.timeout=requestAnimationFrame(function(){return W.updateDiffData()})),this.emit(v.SourceEvent.Change,{data:this.data})),this.data}},{key:"getData",value:function(){return this.data}},{key:"getRenderData",value:function(T){return this.data[T]}},{key:"setRenderData",value:function(T,W){var re=typeof W=="function"?W(this.getRenderData(T)):W;return this.setData(Ui({},T,re)),this.emit(v.SourceEvent.Change,this.data),re}},{key:"updateDiffData",value:function(){var T=this,W=Object.entries(this.diffData);W.length&&(W.forEach(function(re){var he,Le=Lo(re,2),qe=Le[0],Ut=Le[1];Array.isArray(Ut)&&((he=T.getRender(qe))===null||he===void 0||he.setData(Ut))}),this.emit(v.SourceEvent.Update,this.data,this.diffData),this.diffData={},this.timeout=null,requestAnimationFrame(function(){T.scene.render()}))}},{key:"getRender",value:function(T){return this.render[T]}},{key:"clear",value:function(){this.setData(Uo(Object.keys(this.render).map(function(T){return[T,[]]})))}}]),y}(Kd),Da=function(Me){To(y,Me);var f=Rs(y);function y(T,W){var re;ln(this,y),(re=f.call(this)).scene=void 0,re.source=void 0,re.render=void 0,re.cursor=void 0,re.options=void 0,re.enabled=!1,re.allowCreate=!1,re.sceneRender=void 0,re.mouseLngLat={lng:0,lat:0},re.popup=void 0,re.addCount=0,re.saveMouseLngLat=j(function(Ut){re.mouseLngLat=ya(Ut)},100,{maxWait:100}),re.saveHistory=j(function(){re.options.history&&re.source.saveHistory()},100),re.bindThis(),re.scene=T,re.sceneRender=new ir(T),re.options=Zc({},re.getDefaultOptions(W),W),re.render=re.initRender(),re.source=new Vs({render:re.render,history:re.options.history||void 0,scene:T}),re.cursor=new Cl(T,re.options.cursor);var he=re.options,Le=he.initialData,qe=he.popup;return Le&&re.setData(Le),qe&&(re.popup=new Xs(T,qe instanceof Object?qe:{})),re.saveHistory(),re.bindCommonEvent(),re.emit(v.DrawEvent.Init,Is(re)),re.bindEnableEvent(),y.instances.push(Is(re)),re}return Zr(y,[{key:"addable",get:function(){var T=this.getData(),W=this.options,re=W.multiple,he=W.maxCount,Le=T.find(function(qe){return qe.properties.isDraw});return!(!this.enabled||!this.allowCreate)&&(!!(re&&0>=he||Le)||!(!re&&this.addCount>=1)&&(0>=he||he>T.length))}},{key:"getOptions",value:function(){return this.options}},{key:"getEditItem",value:function(){return this.editItem}},{key:"getDragItem",value:function(){return this.dragItem}},{key:"setHelper",value:function(T){var W,re,he=this.options.helper;if(he){var Le=(W=T in he?he[T]:T)!==null&&W!==void 0?W:null;(re=this.popup)===null||re===void 0||re.setContent(Le)}}},{key:"isEnable",value:function(){return this.enabled}},{key:"bindThis",value:function(){this.initRender=this.initRender.bind(this),this.getData=this.getData.bind(this),this.setData=this.setData.bind(this),this.emitChangeEvent=this.emitChangeEvent.bind(this),this.saveHistory=this.saveHistory.bind(this),this.onSceneMouseMove=this.onSceneMouseMove.bind(this),this.revertHistory=this.revertHistory.bind(this),this.redoHistory=this.redoHistory.bind(this),this.removeActiveFeature=this.removeActiveFeature.bind(this),this.bindCommonEvent=this.bindCommonEvent.bind(this),this.bindEnableEvent=this.bindEnableEvent.bind(this),this.unbindEnableEvent=this.unbindEnableEvent.bind(this),this.setActiveFeature=this.setActiveFeature.bind(this)}},{key:"bindCommonEvent",value:function(){var T=this;this.on(v.DrawEvent.Add,this.emitChangeEvent),this.on(v.DrawEvent.Add,function(){T.addCount++}),this.on(v.DrawEvent.Edit,this.emitChangeEvent),this.on(v.DrawEvent.Remove,this.emitChangeEvent),this.on(v.DrawEvent.Clear,this.emitChangeEvent),this.on(v.DrawEvent.AddNode,this.saveHistory),this.on(v.DrawEvent.RemoveNode,this.emitChangeEvent),this.bindEmitSelectEvent(!0)}},{key:"bindEmitSelectEvent",value:function(){var T=this,W=arguments.length>0&&arguments[0]!==void 0&&arguments[0],re=null,he=function(){var Le,qe,Ut,rn=T.getData().find(function(Qn){var br;return(br=Qn.properties)===null||br===void 0?void 0:br.isActive})||null;((Le=re)===null||Le===void 0||(qe=Le.properties)===null||qe===void 0?void 0:qe.id)!==(rn==null||(Ut=rn.properties)===null||Ut===void 0?void 0:Ut.id)&&(re=rn,T.emit(v.DrawEvent.Select,rn))};this.source.on(v.SourceEvent.Change,he),W&&he()}},{key:"bindEnableEvent",value:function(){this.unbindKeyboardEvent(),this.scene.setMapStatus({doubleClickZoom:!1}),this.scene.on(v.SceneEvent.Mousemove,this.saveMouseLngLat),this.bindKeyboardEvent()}},{key:"unbindEnableEvent",value:function(){this.scene.setMapStatus({doubleClickZoom:!0}),this.scene.off(v.SceneEvent.Mousemove,this.saveMouseLngLat),this.unbindKeyboardEvent()}},{key:"bindKeyboardEvent",value:function(){var T=this,W=this.options.keyboard||{},re=W.revert,he=W.redo,Le=W.remove;Le&&Oc.bind(Le,function(){T.removeActiveFeature()}),this.options.history&&(re&&Oc.bind(re,this.revertHistory),he&&Oc.bind(he,this.redoHistory))}},{key:"unbindKeyboardEvent",value:function(){var T=this.options.keyboard||{},W=T.revert,re=T.redo,he=T.remove;he&&Oc.unbind(he),this.options.history&&(W&&Oc.unbind(W),re&&Oc.unbind(re))}},{key:"emitChangeEvent",value:function(){this.emit(v.DrawEvent.Change,this.getData()),this.saveHistory()}},{key:"revertHistory",value:function(){this.enabled&&this.options.history&&this.source.revertHistory()&&(this.correctDrawItem(),this.emit(v.DrawEvent.Change,this.getData()))}},{key:"redoHistory",value:function(){this.enabled&&this.options.history&&this.source.redoHistory()&&(this.correctDrawItem(),this.emit(v.DrawEvent.Change,this.getData()))}},{key:"getRenderLayers",value:function(){return Uo(Vd(this.render).map(function(T){var W=Lo(T,2);return[W[0],W[1].getLayers()]}))}},{key:"getTargetFeature",value:function(T){var W,re,he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getData(),Le=null;return T&&(Le=(W=he.find(function(qe){var Ut;return qe.properties.id===(typeof T=="string"?T:(Ut=T.properties)===null||Ut===void 0?void 0:Ut.id)}))!==null&&W!==void 0?W:null,!Le&&T instanceof Object&&(Le=(re=he.find(function(qe){return Ke(T.geometry,qe.geometry)}))!==null&&re!==void 0?re:null)),Le}},{key:"removeActiveFeature",value:function(){var T=this.getData().find(function(W){var re=W.properties;return re.isActive||re.isDraw});return T&&this.removeFeature(T),T}},{key:"removeFeature",value:function(T){var W=this.getData(),re=this.getTargetFeature(T);re&&(this.setData(W.filter(function(he){return!Nh(re,he)})),this.emit(v.DrawEvent.Remove,T,this.getData()))}},{key:"correctDrawItem",value:function(){this.getData().find(function(T){return T.properties.isDraw})&&this.onSceneMouseMove({type:"mousemove",lnglat:this.mouseLngLat,lngLat:this.mouseLngLat})}},{key:"initRender",value:function(){var T,W={},re=function(Le,qe){var Ut=typeof Symbol!="undefined"&&Le[Symbol.iterator]||Le["@@iterator"];if(!Ut){if(Array.isArray(Le)||(Ut=ua(Le))||qe&&Le&&typeof Le.length=="number"){Ut&&(Le=Ut);var rn=0,Qn=function(){};return{s:Qn,n:function(){return Le.length>rn?{done:!1,value:Le[rn++]}:{done:!0}},e:function(Po){throw Po},f:Qn}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var br,Ci=!0,Ii=!1;return{s:function(){Ut=Ut.call(Le)},n:function(){var Po=Ut.next();return Ci=Po.done,Po},e:function(Po){Ii=!0,br=Po},f:function(){try{Ci||Ut.return==null||Ut.return()}finally{if(Ii)throw br}}}}(this.getRenderTypes());try{for(re.s();!(T=re.n()).done;){var he=T.value;W[he]=new D[he](this.scene,{style:this.options.style[he]})}}catch(Le){re.e(Le)}finally{re.f()}return W}},{key:"getCommonOptions",value:function(T){return{initialData:[],autoActive:!0,cursor:po(w),editable:!0,style:po(J),multiple:!0,history:po(Gr),keyboard:po(je),popup:!0,helper:{},maxCount:-1}}},{key:"setCursor",value:function(T){this.cursor.setCursor(T)}},{key:"resetCursor",value:function(){this.setCursor(this.addable?"draw":null)}},{key:"enable",value:function(){var T=this;this.allowCreate=0>=arguments.length||arguments[0]===void 0||arguments[0],this.addCount=0,this.enabled=!0,this.bindEnableEvent(),this.resetCursor(),this.setHelper(this.addable?"draw":null),setTimeout(function(){T.emit(v.DrawEvent.Enable,T)},0)}},{key:"disable",value:function(){var T=this;this.resetFeatures(),this.enabled=!1,this.setCursor(null),this.unbindEnableEvent(),this.addCount=0,this.setHelper(null),setTimeout(function(){T.emit(v.DrawEvent.Disable,T)},0)}},{key:"clear",value:function(){var T=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.source.clear(),this.emit(v.DrawEvent.Clear,this),T&&this.disable()}},{key:"show",value:function(){return Object.values(this.render).forEach(function(T){T.show()})}},{key:"hide",value:function(){return Object.values(this.render).forEach(function(T){T.hide()})}},{key:"destroy",value:function(){var T,W=this;Object.values(this.render).forEach(function(he){he.destroy()}),Object.values(v.RenderEvent).forEach(function(he){Object.values(W.render).forEach(function(Le){Le.removeAllListeners(he)}),W.sceneRender.removeAllListeners(he)}),setTimeout(function(){Object.values(v.DrawEvent).forEach(function(he){W.removeAllListeners(he)})},0),(T=this.popup)===null||T===void 0||T.destroy(),this.cursor.destroy(),this.emit(v.DrawEvent.Destroy,this);var re=y.instances.indexOf(this);re>-1&&y.instances.splice(re,1)}}]),y}(Kd);Da.instances=[];var No=function(Me){var f=Me==null?0:Me.length;return f?Me[f-1]:void 0},qa=function(Me){To(y,Me);var f=Rs(y);function y(){return ln(this,y),f.apply(this,arguments)}return Zr(y,[{key:"pointRender",get:function(){return this.render.point}},{key:"dragPoint",get:function(){return this.getPointData().find(function(T){return T.properties.isDrag})}},{key:"editPoint",get:function(){return this.getPointData().find(function(T){return T.properties.isActive})}},{key:"hoverPoint",get:function(){return this.getPointData().find(function(T){return T.properties.isHover})}},{key:"getDragPoint",value:function(){return this.dragPoint}},{key:"getEditPoint",value:function(){return this.editPoint}},{key:"getPointData",value:function(){return this.source.getRenderData("point")}},{key:"setPointData",value:function(T){return this.source.setRenderData("point",T)}},{key:"bindPointRenderEvent",value:function(){var T,W,re,he,Le,qe;(T=this.pointRender)===null||T===void 0||T.on(v.RenderEvent.UnClick,this.onPointCreate.bind(this)),(W=this.pointRender)===null||W===void 0||W.on(v.RenderEvent.Mousemove,this.onPointMouseMove.bind(this)),(re=this.pointRender)===null||re===void 0||re.on(v.RenderEvent.Mouseout,this.onPointMouseOut.bind(this)),(he=this.pointRender)===null||he===void 0||he.on(v.RenderEvent.Dragstart,this.onPointDragStart.bind(this)),(Le=this.pointRender)===null||Le===void 0||Le.on(v.RenderEvent.Dragging,this.onPointDragging.bind(this)),(qe=this.pointRender)===null||qe===void 0||qe.on(v.RenderEvent.Dragend,this.onPointDragEnd.bind(this))}},{key:"handleCreatePoint",value:function(T){var W=this.options,re=W.autoActive,he=W.editable,Le=xi(T);return this.setPointData(function(qe){return Ge({target:Le,data:[].concat(Ps(qe),[Le]),targetHandler:function(Ut){Ut.properties=ft(ft({},Ut.properties),{},{isHover:he,isActive:re&&he})},otherHandler:function(Ut){Ut.properties=ft(ft({},Ut.properties),{},{isHover:!1,isActive:!1,isDrag:!1})}})}),Le}},{key:"handlePointHover",value:function(T){return this.setCursor("pointHover"),Nh(T,this.hoverPoint)||this.setPointData(function(W){return Ge({target:T,data:W,targetHandler:function(re){re.properties.isHover=!0},otherHandler:function(re){re.properties.isHover=!1}})}),T}},{key:"handlePointUnHover",value:function(T){return this.resetCursor(),this.setPointData(function(W){return W.map(function(re){return re.properties.isHover=!1,re})}),T}},{key:"handlePointDragStart",value:function(T){return this.setPointData(function(W){return Ge({target:T,data:W,targetHandler:function(re){re.properties=ft(ft({},re.properties),{},{isDrag:!0,isActive:!0})},otherHandler:function(re){re.properties=ft(ft({},re.properties),{},{isDrag:!1,isActive:!1})}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),T}},{key:"handlePointDragging",value:function(T,W){return this.setPointData(function(re){return Ge({target:T,data:re,targetHandler:function(he){he.geometry.coordinates=ts(W)}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),T}},{key:"handlePointDragEnd",value:function(T){return this.setPointData(function(W){return Ge({target:T,data:W,targetHandler:function(re){re.properties.isDrag=!1}})}),this.scene.setMapStatus({dragEnable:!0}),this.setCursor("pointHover"),T}},{key:"onPointCreate",value:function(T){return this.handleCreatePoint(ts(ya(T)))}},{key:"onPointMouseMove",value:function(T){return this.handlePointHover(T.feature)}},{key:"onPointMouseOut",value:function(T){return this.handlePointUnHover(T.feature)}},{key:"onPointDragStart",value:function(T){if(this.options.editable)return this.handlePointDragStart(T.feature)}},{key:"onPointDragging",value:function(T){var W=this.dragPoint;if(this.options.editable&&W)return this.handlePointDragging(W,ya(T))}},{key:"onPointDragEnd",value:function(T){var W=this.dragPoint;if(this.options.editable&&W)return this.handlePointDragEnd(W)}},{key:"enablePointRenderAction",value:function(){var T,W,re,he,Le=this.options.editable;this.enabled&&((W=this.pointRender)===null||W===void 0||W.enableCreate()),(T=this.pointRender)===null||T===void 0||T.enableClick(),Le&&((re=this.pointRender)===null||re===void 0||re.enableHover(),(he=this.pointRender)===null||he===void 0||he.enableDrag())}},{key:"disablePointRenderAction",value:function(){var T,W,re,he;(T=this.pointRender)===null||T===void 0||T.disableCreate(),(W=this.pointRender)===null||W===void 0||W.disableHover(),(re=this.pointRender)===null||re===void 0||re.disableDrag(),(he=this.pointRender)===null||he===void 0||he.disableClick()}}]),y}(Da),xl=function(Me){To(y,Me);var f=Rs(y);function y(){return ln(this,y),f.apply(this,arguments)}return Zr(y,[{key:"midPointRender",get:function(){return this.render.midPoint}},{key:"getCommonOptions",value:function(T){return ft(ft({},Ns(Vi(y.prototype),"getCommonOptions",this).call(this,T)),{},{showMidPoint:!0})}},{key:"bindMidPointRenderEvent",value:function(){var T,W,re;(T=this.midPointRender)===null||T===void 0||T.on(v.RenderEvent.Click,this.onMidPointClick.bind(this)),(W=this.midPointRender)===null||W===void 0||W.on(v.RenderEvent.Mousemove,this.onMidPointHover.bind(this)),(re=this.midPointRender)===null||re===void 0||re.on(v.RenderEvent.Mouseout,this.onMidPointUnHover.bind(this))}},{key:"getMidPointData",value:function(){return this.source.getRenderData("midPoint")}},{key:"setMidPointData",value:function(T){return this.source.setRenderData("midPoint",T)}},{key:"getMidPointsByLine",value:function(T){var W=T.properties.nodes;if(!this.options.showMidPoint||2>W.length)return[];for(var re=[],he=0;W.length-1>he;he++){var Le,qe,Ut,rn,Qn=_u(Os([W[he],W[he+1]]),{properties:{id:Ul("midPoint"),startId:(Le=(qe=W[he].properties)===null||qe===void 0?void 0:qe.id)!==null&&Le!==void 0?Le:"",endId:(Ut=(rn=W[he+1].properties)===null||rn===void 0?void 0:rn.id)!==null&&Ut!==void 0?Ut:""}});re.push(Qn)}return re}},{key:"onMidPointHover",value:function(T){this.setCursor("pointHover")}},{key:"onMidPointUnHover",value:function(T){this.resetCursor()}},{key:"enableMidPointRenderAction",value:function(){var T,W;(T=this.midPointRender)===null||T===void 0||T.enableClick(),(W=this.midPointRender)===null||W===void 0||W.enableHover()}},{key:"disableMidPointRenderAction",value:function(){var T,W;(T=this.midPointRender)===null||T===void 0||T.disableClick(),(W=this.midPointRender)===null||W===void 0||W.disableHover()}}]),y}(qa),Sl={draw:"\u5355\u51FB\u7ED8\u5236\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u70B9\u4F4D\u7F6E",pointDrag:null},Uu={draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E",pointDrag:null,lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u7EBF\u4F4D\u7F6E",lineDrag:null,midPointHover:"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9",drawFinish:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236"},Fo={draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawContinue:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236",drawFinish:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236",midPointHover:"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E",pointDrag:null,lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u9762\u4F4D\u7F6E",lineDrag:null,polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u9762\u4F4D\u7F6E",polygonDrag:null},Co=ft(ft({},Fo),{},{draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawFinish:"\u5355\u51FB\u7ED3\u675F\u7ED8\u5236"}),Ws={draw:"\u62D6\u62FD\u5F00\u59CB\u7ED8\u5236",drawFinish:"\u677E\u5F00\u9F20\u6807\u7ED3\u675F\u7ED8\u5236"},za={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E"},Ql={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E"},lu=function(Me){To(y,Me);var f=Rs(y);function y(){var T;ln(this,y);for(var W=arguments.length,re=Array(W),he=0;W>he;he++)re[he]=arguments[he];return(T=f.call.apply(f,[this].concat(re))).previousPosition=[0,0],T}return Zr(y,[{key:"lineRender",get:function(){return this.render.line}},{key:"dragLine",get:function(){return this.getLineData().find(function(T){return T.properties.isDrag})}},{key:"drawLine",get:function(){return this.getLineData().find(function(T){return T.properties.isDraw})}},{key:"editLine",get:function(){return this.getLineData().find(function(T){var W=T.properties;return!W.isDraw&&W.isActive})}},{key:"hoverLine",get:function(){return this.getLineData().find(function(T){return T.properties.isHover})}},{key:"getDragLine",value:function(){return this.dragLine}},{key:"getDrawLine",value:function(){return this.drawLine}},{key:"getEditLine",value:function(){return this.editLine}},{key:"getDefaultOptions",value:function(T){var W=ft(ft({},this.getCommonOptions(T)),{},{showMidPoint:!0,distanceOptions:!1,helper:po(Uu)});return T.distanceOptions&&(W.distanceOptions=ft(ft({},Yn),W.distanceOptions)),T.adsorbOptions&&(W.adsorbOptions=ft(ft({},ht),W.adsorbOptions)),W}},{key:"getAdsorbPosition",value:function(T){var W=this.options.adsorbOptions;if(typeof W=="boolean")return T;var re=this.scene,he=W.pointAdsorbPixel,Le=W.lineAdsorbPixel,qe=null,Ut=go(W.data,this,T),rn=Ut.points,Qn=Ut.lines;return rn.length&&he>0&&(qe=Vo(T,rn,W,re)),!qe&&Qn.length&&Le>0&&(qe=Fs(T,Qn,W,re)),qe}},{key:"bindSceneEvent",value:function(){this.sceneRender.on(v.RenderEvent.Mousemove,this.onSceneMouseMove.bind(this))}},{key:"bindPointRenderEvent",value:function(){var T;Ns(Vi(y.prototype),"bindPointRenderEvent",this).call(this),(T=this.pointRender)===null||T===void 0||T.on(v.RenderEvent.Click,this.onPointClick.bind(this))}},{key:"bindLineRenderEvent",value:function(){var T,W,re,he,Le,qe;(T=this.lineRender)===null||T===void 0||T.on(v.RenderEvent.UnClick,this.onLineUnClick.bind(this)),(W=this.lineRender)===null||W===void 0||W.on(v.RenderEvent.Mousemove,this.onLineMouseMove.bind(this)),(re=this.lineRender)===null||re===void 0||re.on(v.RenderEvent.Mouseout,this.onLineMouseOut.bind(this)),(he=this.lineRender)===null||he===void 0||he.on(v.RenderEvent.Dragstart,this.onLineDragStart.bind(this)),(Le=this.lineRender)===null||Le===void 0||Le.on(v.RenderEvent.Dragging,this.onLineDragging.bind(this)),(qe=this.lineRender)===null||qe===void 0||qe.on(v.RenderEvent.Dragend,this.onLineDragEnd.bind(this))}},{key:"getDashLineDistanceTexts",value:function(T,W){var re=W.showTotalDistance,he=W.format;return W.showDashDistance?T.map(function(Le){return La(Le,{showTotalDistance:re,format:he},{isActive:!0,type:"dash"})}).flat():[]}},{key:"getLineDistanceTexts",value:function(T,W){var re=W.showTotalDistance,he=W.format,Le=W.showWhen,qe=[];if(Le.includes("active")){var Ut=T.filter(function(Qn){return Qn.properties.isActive&&Qn.properties.nodes.length>1});qe.push.apply(qe,Ps(Ut.map(function(Qn){return La(Qn,{showTotalDistance:re,format:he},{isActive:!0})}).flat()))}if(Le.includes("normal")){var rn=T.filter(function(Qn){return!Qn.properties.isActive&&Qn.properties.nodes.length>1});qe.push.apply(qe,Ps(rn.map(function(Qn){return La(Qn,{showTotalDistance:re,format:he})}).flat()))}return qe}},{key:"getDistanceTexts",value:function(){var T=this.options.distanceOptions;if(!T)return[];var W=[],re=T.showWhen,he=T.showDashDistance,Le=T.format,qe=T.showTotalDistance;return W.push.apply(W,Ps(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!1,format:Le,showDashDistance:he})).concat(Ps(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:qe,format:Le,showWhen:re})))),W}},{key:"getAllTexts",value:function(){return this.getDistanceTexts()}},{key:"handleCreateLine",value:function(T){var W=Zn([T],{isActive:!0,isDraw:!0});return this.setLineData(function(re){return Ge({target:W,data:[].concat(Ps(re),[W]),otherHandler:function(he){he.properties.isActive=!1}})}),this.setPointData([T]),this.setTextData(this.getAllTexts()),W}},{key:"syncLineNodes",value:function(T,W){return T.properties.nodes=W,T.geometry.coordinates=jr(Os(W)),this.setLineData(function(re){return re.map(function(he){return Nh(he,T)?T:he})}),Nh(this.editLine,T)&&this.setMidPointData(this.getMidPointsByLine(T)),this.setPointData(T.properties.nodes),this.setTextData(this.getAllTexts()),T}},{key:"setActiveLine",value:function(T){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setLineData(function(re){return Ge({target:T,data:re,targetHandler:function(he){he.properties=ft(ft({},he.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},W)},otherHandler:function(he){he.properties=ft(ft({},he.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(T.properties.nodes.map(function(re){return re.properties=ft(ft({},re.properties),{},{isHover:!1,isActive:!1}),re})),this.setMidPointData(this.getMidPointsByLine(T)),this.setDashLineData([]),this.setTextData(this.getAllTexts()),T}},{key:"clearActiveLine",value:function(){this.source.setData({point:[],line:this.getLineData().map(function(T){return T.properties=ft(ft({},T.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),T}),midPoint:[],text:this.getAllTexts()})}},{key:"handleLineUnClick",value:function(T){return this.clearActiveLine(),T}},{key:"handleLineHover",value:function(T){if(!this.drawLine)return this.setCursor("lineHover"),Nh(T,this.hoverLine)||this.setLineData(function(W){return Ge({target:T,data:W,targetHandler:function(re){re.properties.isHover=!0},otherHandler:function(re){re.properties.isHover=!1}})}),T}},{key:"handleLineUnHover",value:function(T){if(!this.drawLine)return this.resetCursor(),this.setLineData(function(W){return W.map(function(re){return re.properties.isHover=!1,re})}),T}},{key:"handleLineDragStart",value:function(T){return this.setActiveLine(T,{isDrag:!0,isActive:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("lineDrag"),T}},{key:"handleLineDragging",value:function(T,W){var re=W.lng,he=W.lat,Le=T.properties.nodes,qe=Lo(this.previousPosition,2),Ut=qe[0],rn=qe[1];return Le.forEach(function(Qn){var br=Qn.geometry.coordinates;Qn.geometry.coordinates=[br[0]+re-Ut,br[1]+he-rn]}),this.syncLineNodes(T,Le),this.setActiveLine(T,{isDrag:!0}),this.setCursor("lineDrag"),this.previousPosition=[re,he],T}},{key:"handleLineDragEnd",value:function(T){return T.properties.isDrag=!1,this.setLineData(function(W){return W}),this.scene.setMapStatus({dragEnable:!0}),T}},{key:"resetAdsorbLngLat",value:function(T){if(this.options.adsorbOptions){var W=this.getAdsorbPosition(ts(ya(T)));return W&&$l(T,W),W}}},{key:"onPointCreate",value:function(T){if(!this.editLine){this.resetAdsorbLngLat(T);var W=Ns(Vi(y.prototype),"onPointCreate",this).call(this,T),re=this.drawLine;if(W)return re?(this.syncLineNodes(re,[].concat(Ps(re.properties.nodes),[W])),this.setDashLineData([])):this.handleCreateLine(W),W}}},{key:"onPointDragStart",value:function(T){if(this.editLine)return this.setHelper("pointDrag"),Ns(Vi(y.prototype),"onPointDragStart",this).call(this,T)}},{key:"onPointDragging",value:function(T){var W=Ns(Vi(y.prototype),"onPointDragging",this).call(this,T);if(W){var re=this.resetAdsorbLngLat(T);re&&(W.geometry.coordinates=po(re))}var he=this.editLine;return he&&W&&(this.syncLineNodes(he,he.properties.nodes.map(function(Le){return Nh(W,Le)?W:Le})),this.setActiveLine(he)),W}},{key:"onPointDragEnd",value:function(T){if(this.editLine){var W=Ns(Vi(y.prototype),"onPointDragEnd",this).call(this,T);return this.setPointData(function(re){return re.map(function(he){return he.properties.isActive=!1,he})}),this.setHelper("pointHover"),W}}},{key:"onLineUnClick",value:function(T){var W=this.editLine;if(W)return this.handleLineUnClick(W)}},{key:"onLineMouseMove",value:function(T){if(!this.drawLine)return this.dragLine||this.drawLine||!this.options.editable||this.setHelper("lineHover"),this.handleLineHover(T.feature)}},{key:"onLineMouseOut",value:function(T){if(!this.drawLine)return this.dragLine||this.drawLine||this.setHelper(this.addable?"draw":null),this.handleLineUnHover(T.feature)}},{key:"onLineDragStart",value:function(T){if(this.options.editable&&!this.drawLine)return this.previousPosition=Ea(T),this.setHelper("lineDrag"),this.handleLineDragStart(T.feature)}},{key:"onLineDragging",value:function(T){var W=this.dragLine;if(W)return this.handleLineDragging(W,ya(T))}},{key:"onLineDragEnd",value:function(T){var W=this.dragLine;if(W)return this.setHelper("lineHover"),this.handleLineDragEnd(W)}},{key:"onPointMouseMove",value:function(T){var W=Ns(Vi(y.prototype),"onPointMouseMove",this).call(this,T);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper("pointHover"),W}},{key:"onPointMouseOut",value:function(T){var W=Ns(Vi(y.prototype),"onPointMouseOut",this).call(this,T);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper(this.addable?"draw":null),W}},{key:"onMidPointHover",value:function(T){Ns(Vi(y.prototype),"onMidPointHover",this).call(this,T),this.setHelper("midPointHover")}},{key:"onMidPointUnHover",value:function(T){Ns(Vi(y.prototype),"onMidPointUnHover",this).call(this,T),this.setHelper(null)}},{key:"onPointClick",value:function(T){}},{key:"getLineData",value:function(){return this.source.getRenderData("line")}},{key:"setLineData",value:function(T){return this.source.setRenderData("line",T)}},{key:"getTextData",value:function(){return this.source.getRenderData("text")}},{key:"setTextData",value:function(T){return this.source.setRenderData("text",T)}},{key:"getDashLineData",value:function(){return this.source.getRenderData("dashLine")}},{key:"setDashLineData",value:function(T){return this.source.setRenderData("dashLine",T)}},{key:"onMidPointClick",value:function(T){var W=this.editLine,re=T.feature;if(W&&re&&!this.dragPoint){var he=W.properties.nodes,Le=re.properties,qe=Le.startId,Ut=Le.endId,rn=he.findIndex(function(Ci){return Ci.properties.id===qe}),Qn=he.findIndex(function(Ci){return Ci.properties.id===Ut});if(rn>-1&&Qn>-1){var br=xi(re.geometry.coordinates,{isDrag:!0,isHover:!0});return this.setHelper("pointDrag"),he.splice(Qn,0,br),W.geometry.coordinates=jr(Os(he)),this.syncLineNodes(W,he),this.setActiveLine(W),br}}}},{key:"enableSceneRenderAction",value:function(){this.sceneRender.enableDrag(),this.sceneRender.enableMouseMove(),this.sceneRender.enableDblClick()}},{key:"disableSceneRenderAction",value:function(){this.sceneRender.disableDrag(),this.sceneRender.disableMouseMove(),this.sceneRender.disableDblClick()}},{key:"enableLineRenderAction",value:function(){var T,W,re,he=this.options.editable;(T=this.lineRender)===null||T===void 0||T.enableUnClick(),he&&((W=this.lineRender)===null||W===void 0||W.enableHover(),(re=this.lineRender)===null||re===void 0||re.enableDrag())}},{key:"disableLineRenderAction",value:function(){var T,W,re;(T=this.lineRender)===null||T===void 0||T.disableUnClick(),(W=this.lineRender)===null||W===void 0||W.disableHover(),(re=this.lineRender)===null||re===void 0||re.disableDrag()}}]),y}(xl),wc=function(Me){To(y,Me);var f=Rs(y);function y(){return ln(this,y),f.apply(this,arguments)}return Zr(y,[{key:"dragItem",get:function(){return this.dragPolygon}},{key:"editItem",get:function(){return this.editPolygon}},{key:"polygonRender",get:function(){return this.render.polygon}},{key:"dragPolygon",get:function(){return this.getPolygonData().find(function(T){return T.properties.isDrag})}},{key:"drawPolygon",get:function(){return this.getPolygonData().find(function(T){return T.properties.isDraw})}},{key:"editPolygon",get:function(){return this.getPolygonData().find(function(T){var W=T.properties;return!W.isDraw&&W.isActive})}},{key:"hoverPolygon",get:function(){return this.getPolygonData().find(function(T){return T.properties.isHover})}},{key:"getDragPolygon",value:function(){return this.dragPolygon}},{key:"getDrawPolygon",value:function(){return this.drawPolygon}},{key:"getEditPolygon",value:function(){return this.editPolygon}},{key:"getRenderTypes",value:function(){return["polygon","line","dashLine","midPoint","point","text"]}},{key:"getData",value:function(){return this.getPolygonData()}},{key:"getMainLayer",value:function(){var T,W;return(T=(W=this.render.polygon)===null||W===void 0?void 0:W.getLayers())!==null&&T!==void 0?T:[]}},{key:"getDefaultOptions",value:function(T){var W=ft(ft({},Ns(Vi(y.prototype),"getDefaultOptions",this).call(this,T)),{},{areaOptions:!1,helper:po(Fo)});return T.areaOptions&&(W.areaOptions=ft(ft({},kr),T.areaOptions)),W}},{key:"getAreaTexts",value:function(T){var W=this.options.areaOptions;if(!W)return[];var re=W.format,he=W.showWhen,Le=[],qe=T.filter(function(Ut){return Ut.geometry.coordinates[0].length>=4});return he.includes("active")&&qe.filter(function(Ut){return Ut.properties.isActive}).forEach(function(Ut){Le.push(uu(Ut,{format:re},{isActive:!0}))}),he.includes("normal")&&qe.filter(function(Ut){return!Ut.properties.isActive}).forEach(function(Ut){Le.push(uu(Ut,{format:re},{isActive:!1}))}),Le}},{key:"getAllTexts",value:function(){return[].concat(Ps(Ns(Vi(y.prototype),"getAllTexts",this).call(this)),Ps(this.getAreaTexts(this.getPolygonData())))}},{key:"getPolygonData",value:function(){return this.source.getRenderData("polygon")}},{key:"setPolygonData",value:function(T){return this.source.setRenderData("polygon",T)}},{key:"handleCreatePolygon",value:function(T,W){var re=So(T,{nodes:T,line:W,isActive:!0,isDraw:!0});return this.setPolygonData(function(he){return Ge({target:re,data:[].concat(Ps(he),[re]),otherHandler:function(Le){Le.properties.isActive=!1}})}),re}},{key:"handlePolygonUnClick",value:function(T){return this.clearActivePolygon(),T}},{key:"handlePolygonHover",value:function(T){return this.setCursor("polygonHover"),Nh(T,this.hoverPolygon)||this.setPolygonData(function(W){return Ge({target:T,data:W,targetHandler:function(re){re.properties.isHover=!0},otherHandler:function(re){re.properties.isHover=!1}})}),T}},{key:"handlePolygonUnHover",value:function(){this.resetCursor(),this.setPolygonData(function(T){return T.map(function(W){return W.properties.isHover=!1,W})})}},{key:"handlePolygonDragStart",value:function(T){return this.setActivePolygon(T,{isDrag:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("polygonDrag"),T}},{key:"bindPolygonRenderEvent",value:function(){var T,W,re,he;(T=this.polygonRender)===null||T===void 0||T.on(v.RenderEvent.UnClick,this.onPolygonUnClick.bind(this)),(W=this.polygonRender)===null||W===void 0||W.on(v.RenderEvent.Mousemove,this.onPolygonHover.bind(this)),(re=this.polygonRender)===null||re===void 0||re.on(v.RenderEvent.Mouseout,this.onPolygonUnHover.bind(this)),(he=this.polygonRender)===null||he===void 0||he.on(v.RenderEvent.Dragstart,this.onPolygonDragStart.bind(this))}},{key:"syncPolygonNodes",value:function(T,W){var re=jr(Os([].concat(Ps(W),[Dc(W)]))),he=T.properties,Le=he.line;if(T.properties.nodes=W,T.geometry.coordinates=[dp(Yo(re))?re:re.reverse()],this.setPolygonData(function(br){return br.map(function(Ci){return Nh(Ci,T)?T:Ci})}),!Nh(this.drawPolygon,T)){var qe=Le.properties.nodes,Ut=Ps(W),rn=Dc(Ut);Ut.push(qe.length===W.length?xi(rn.geometry.coordinates):No(qe));var Qn=No(Ut);Ke(rn.geometry.coordinates,Qn.geometry.coordinates)||(Qn.geometry.coordinates=po(rn.geometry.coordinates)),this.syncLineNodes(Le,Ut)}return T}},{key:"setActivePolygon",value:function(T){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setActiveLine(T.properties.line,W),this.setPolygonData(function(re){return Ge({target:T,data:re,targetHandler:function(he){he.properties=ft(ft({},he.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},W)},otherHandler:function(he){he.properties=ft(ft({},he.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setTextData(this.getAllTexts()),T}},{key:"clearActivePolygon",value:function(){this.setPolygonData(function(T){return T.map(function(W){return W.properties=ft(ft({},W.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),W})}),this.clearActiveLine()}},{key:"onLineDragStart",value:function(T){var W=Ns(Vi(y.prototype),"onLineDragStart",this).call(this,T),re=this.getPolygonData().find(function(he){return Nh(he.properties.line,W)});return re&&(this.setActivePolygon(re,{isDrag:!0}),this.emit(v.DrawEvent.DragStart,re,this.getPolygonData())),W}},{key:"onLineUnClick",value:function(T){return this.editLine}},{key:"onLineDragEnd",value:function(T){var W=Ns(Vi(y.prototype),"onLineDragEnd",this).call(this,T),re=this.dragPolygon;return W&&re&&(re.properties.isDrag=!1,this.emit(v.DrawEvent.DragEnd,re,this.getPolygonData()),this.emit(v.DrawEvent.Edit,re,this.getPolygonData())),W}},{key:"onPolygonUnClick",value:function(T){var W=this.editPolygon;if(W)return this.handlePolygonUnClick(W)}},{key:"onPolygonHover",value:function(T){if(!this.drawPolygon)return this.dragPolygon||this.setHelper("polygonHover"),this.handlePolygonHover(T.feature)}},{key:"onPolygonUnHover",value:function(T){if(!this.drawPolygon)return this.setHelper(this.addable?"draw":null),this.handlePolygonUnHover()}},{key:"onPolygonDragStart",value:function(T){if(this.options.editable&&!this.drawPolygon){var W=T.feature;return this.previousPosition=Ea(T),this.setHelper("polygonDrag"),this.emit(v.DrawEvent.DragStart,W,this.getPolygonData()),this.handlePolygonDragStart(W)}}},{key:"onMidPointClick",value:function(T){var W=this.editPolygon,re=Ns(Vi(y.prototype),"onMidPointClick",this).call(this,T);if(re&&W){var he=W.properties.line.properties.nodes;this.syncPolygonNodes(W,he.slice(0,he.length-1)),this.setActivePolygon(W)}return re}},{key:"onPointDragEnd",value:function(T){var W=this.editPolygon,re=Ns(Vi(y.prototype),"onPointDragEnd",this).call(this,T);return re&&W&&this.emit(v.DrawEvent.Edit,W,this.getPolygonData()),re}},{key:"enablePolygonRenderAction",value:function(){var T,W,re,he=this.options.editable;(T=this.polygonRender)===null||T===void 0||T.enableUnClick(),he&&((W=this.polygonRender)===null||W===void 0||W.enableHover(),(re=this.polygonRender)===null||re===void 0||re.enableDrag())}},{key:"disablePolygonRenderAction",value:function(){var T,W,re;(T=this.polygonRender)===null||T===void 0||T.disableUnClick(),(W=this.polygonRender)===null||W===void 0||W.disableHover(),(re=this.polygonRender)===null||re===void 0||re.disableDrag()}},{key:"bindEnableEvent",value:function(){Ns(Vi(y.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.enablePolygonRenderAction()}},{key:"unbindEnableEvent",value:function(){Ns(Vi(y.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.disablePolygonRenderAction()}},{key:"bindThis",value:function(){Ns(Vi(y.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this),this.bindSceneEvent=this.bindSceneEvent.bind(this),this.bindLineRenderEvent=this.bindLineRenderEvent.bind(this),this.bindMidPointRenderEvent=this.bindMidPointRenderEvent.bind(this),this.bindPolygonRenderEvent=this.bindPolygonRenderEvent.bind(this)}},{key:"setActiveFeature",value:function(T){var W=this.getTargetFeature(T);W?this.setActivePolygon(W):this.clearActivePolygon()}},{key:"resetFeatures",value:function(){var T=this.getPolygonData();this.drawPolygon&&(T=T.filter(function(W){return!W.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setLineData(function(W){return W.filter(function(re){return!re.properties.isDraw})}),this.setTextData(function(W){return W.filter(function(re){return!re.properties.isActive})})),this.editPolygon&&this.handlePolygonUnClick(this.editPolygon),this.setPolygonData(T.map(function(W){return W.properties=ft(ft({},W.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),W}))}}]),y}(lu),Zd=function(Me){To(y,Me);var f=Rs(y);function y(T,W){var re;return ln(this,y),(re=f.call(this,T,W)).onSceneDragStart=re.onSceneDragStart.bind(Is(re)),re.onSceneDragEnd=re.onSceneDragEnd.bind(Is(re)),re}return Zr(y,[{key:"drawLine",get:function(){var T;return(T=this.drawPolygon)===null||T===void 0?void 0:T.properties.line}},{key:"isDragTrigger",get:function(){return this.options.trigger==="drag"}},{key:"isClickTrigger",get:function(){return this.options.trigger==="click"}},{key:"getDefaultOptions",value:function(T){var W=ft(ft({},Ns(Vi(y.prototype),"getDefaultOptions",this).call(this,T)),{},{showMidPoint:!1,trigger:"click",autoActive:!1,helper:po(Co)});return T.trigger==="drag"&&(W.helper=ft(ft({},W.helper),Ws)),W}},{key:"getMidPointsByLine",value:function(T){return[]}},{key:"handleCreatePolygon",value:function(T,W){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},he=W.properties.nodes;return So(he.slice(0,he.length-1),ft({nodes:T,line:W},re))}},{key:"handleFirstNodeCreate",value:function(T){var W=xi(T.geometry.coordinates),re=this.handleCreatePolygonLine(T,W,{isDraw:!0,isActive:!0}),he=this.handleCreatePolygon([T,W],re,{isDraw:!0,isActive:!0});return this.setPolygonData(function(Le){return Ge({target:he,data:[].concat(Ps(Le),[he]),targetHandler:function(qe){qe.properties=ft(ft({},qe.properties),{},{isDraw:!0,isActive:!0})}})}),this.emit(v.DrawEvent.AddNode,T,this.drawPolygon,this.getPolygonData()),this.setHelper("drawFinish"),T}},{key:"handleLastNodeCreate",value:function(T){var W=this.options,re=W.autoActive,he=W.editable,Le=this.drawPolygon;return Le&&(this.setLineData(function(qe){return[].concat(Ps(qe),[Le.properties.line])}),this.setActivePolygon(Le),re&&he||this.handlePolygonUnClick(Le),this.emit(v.DrawEvent.Add,Le,this.getPolygonData()),this.emit(v.DrawEvent.AddNode,Le.properties.nodes[1],this.drawPolygon,this.getPolygonData()),this.setHelper(he?re?"pointHover":"polygonHover":this.addable?"draw":null)),T}},{key:"onPointCreate",value:function(T){var W=this;if(this.addable&&!this.dragPoint&&!this.editLine&&this.isClickTrigger){var re=this.drawPolygon,he=Ea(T),Le=this.handleCreatePoint(he);return re?requestAnimationFrame(function(){W.handleLastNodeCreate(Le)}):this.handleFirstNodeCreate(Le),Le}}},{key:"setActivePolygon",value:function(T){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.setActiveLine(T.properties.line,W),this.setPolygonData(function(he){return Ge({target:T,data:he,targetHandler:function(Le){Le.properties=ft(ft({},Le.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},W)},otherHandler:function(Le){Le.properties=ft(ft({},Le.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(T.properties.nodes),this.setDashLineData([]);var re=this.getAllTexts();return this.setTextData(re),T}},{key:"onPointDragging",value:function(T){var W=this.dragPoint;if(W){var re=this.handlePointDragging(W,ya(T)),he=this.editPolygon;return re&&he&&(this.syncPolygonNodes(he,he.properties.nodes.map(function(Le){return Nh(Le,re)?re:Le})),this.setActivePolygon(he)),re}}},{key:"onSceneDragStart",value:function(T){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&(this.scene.setMapStatus({dragEnable:!1}),this.handleFirstNodeCreate(this.handleCreatePoint(Ea(T))))}},{key:"onSceneDragEnd",value:function(T){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&this.drawPolygon&&(this.scene.setMapStatus({dragEnable:!1}),this.handleLastNodeCreate(this.handleCreatePoint(Ea(T))))}},{key:"onSceneMouseMove",value:function(T){var W=this.drawPolygon;if(W){var re=W.properties.nodes,he=Dc(re),Le=No(re);Le.geometry.coordinates=Ea(T),this.syncPolygonNodes(W,[he,Le]),this.setDashLineData([W.properties.line]),this.setTextData(this.getAllTexts()),this.resetCursor()}}},{key:"bindSceneDragEvent",value:function(){this.unbindSceneDragEvent(),this.sceneRender.on(v.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.on(v.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!1})}},{key:"unbindSceneDragEvent",value:function(){this.sceneRender.off(v.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.off(v.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!0})}},{key:"bindEnableEvent",value:function(){Ns(Vi(y.prototype),"bindEnableEvent",this).call(this),this.isDragTrigger&&this.bindSceneDragEvent()}},{key:"unbindEnableEvent",value:function(){Ns(Vi(y.prototype),"unbindEnableEvent",this).call(this),this.isDragTrigger&&this.unbindSceneDragEvent()}},{key:"bindThis",value:function(){Ns(Vi(y.prototype),"bindThis",this).call(this),this.onSceneDragStart=this.onSceneDragStart.bind(this),this.onSceneDragEnd=this.onSceneDragEnd.bind(this)}}]),y}(wc),_s=function(Me){To(y,Me);var f=Rs(y);function y(T,W){var re;return ln(this,y),(re=f.call(this,T,W)).bindPointRenderEvent(),re.bindSceneEvent(),re.bindMidPointRenderEvent(),re.bindLineRenderEvent(),re.bindPolygonRenderEvent(),re}return Zr(y,[{key:"getDefaultOptions",value:function(T){var W=ft(ft({},Ns(Vi(y.prototype),"getDefaultOptions",this).call(this,T)),{},{showMidPoint:!1,circleSteps:60});return W.distanceOptions&&(W.distanceOptions.showTotalDistance=!0,W.distanceOptions.showOnRadius===void 0&&(W.distanceOptions.showOnRadius=!0)),W.helper&&(W.helper=ft(ft({},W.helper),Ql)),W}},{key:"getDistanceTexts",value:function(){var T=this.options.distanceOptions;if(!T)return[];var W=[],re=T.showWhen,he=T.showDashDistance,Le=T.format,qe=T.showTotalDistance;return W.push.apply(W,Ps(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!0,format:Le,showDashDistance:he})).concat(Ps(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:qe,format:Le,showWhen:re})))),W}},{key:"setData",value:function(T){var W=this,re=T.map(function(he){var Le,qe,Ut;he.properties=ft(ft({},Pn()),he.properties);var rn=(Le=he.properties)===null||Le===void 0?void 0:Le.nodes;if(((qe=rn)===null||qe===void 0?void 0:qe.length)!==2){var Qn=Lo(_u(he).geometry.coordinates,2),br=Qn[0],Ci=Qn[1],Ii=ea(he),Po=Ii[2],Io=(Ii[1]+Ii[3])/2;rn=[xi([br,Ci]),xi([Po,Io])],he.properties.nodes=rn}var Zo=rn[0],Ro=rn[1],lo=!!(!((Ut=he.properties)===null||Ut===void 0)&&Ut.isActive),Js=he.properties.line;return Js||(Js=W.handleCreatePolygonLine(Zo,Ro,{isActive:lo}),he.properties.line=Js),W.handleCreatePolygon([Zo,Ro],Js,ft(ft({},he.properties),{},{isActive:lo}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:re,line:re.map(function(he){return he.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(T,W){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},he=this.getBoundaryPositions(T,W).map(function(Le){return xi(Le)});return Zn(he,re)}},{key:"syncPolygonNodes",value:function(T,W){var re=T.properties.line,he=this.getBoundaryPositions(W[0],W[1]);return T.properties.nodes=W,T.geometry.coordinates=[he],this.setPolygonData(function(Le){return Le.map(function(qe){return Nh(qe,T)?T:qe})}),this.setPointData(T.properties.isDraw?[W[0]]:W),re.properties.nodes.forEach(function(Le,qe){Le.geometry.coordinates=he[qe]}),re.geometry.coordinates=he,T}},{key:"onLineDragging",value:function(T){var W=this.dragPolygon,re=Lo(this.previousPosition,2),he=re[0],Le=re[1],qe=Ns(Vi(y.prototype),"onLineDragging",this).call(this,T);if(W){var Ut=Lo(Ea(T),2),rn=Ut[0],Qn=Ut[1];W.properties.nodes.forEach(function(br){var Ci=Lo(br.geometry.coordinates,2);br.geometry.coordinates=[Ci[0]+rn-he,Ci[1]+Qn-Le]}),this.syncPolygonNodes(W,W.properties.nodes),this.setActivePolygon(W,{isDrag:!0}),this.emit(v.DrawEvent.Dragging,W,this.getPolygonData())}return qe}},{key:"getBoundaryPositions",value:function(T,W){for(var re=this.options.circleSteps,he=mu(T,W,{units:"meters"}),Le=[],qe=0;re>qe;qe++)Le.push(Uh(T,he,-360*qe/re,{units:"meters"}).geometry.coordinates);return Le.push(Le[0]),Le}}]),y}(Zd),Mp=function(Me){To(y,Me);var f=Rs(y);function y(T,W){var re;return ln(this,y),(re=f.call(this,T,W)).drawLineFinish=function(){var he,Le=re.drawLine,qe=(he=Le==null?void 0:Le.properties.nodes)!==null&&he!==void 0?he:[];if(Le&&(qe==null?void 0:qe.length)>1){re.setActiveLine(Le);var Ut=re.options,rn=Ut.autoActive,Qn=Ut.editable;rn&&Qn||re.handleLineUnClick(Le),re.setHelper(Qn&&rn?"pointHover":re.addable?"draw":null),re.emit(v.DrawEvent.Add,Le,re.getLineData())}},re.sceneRender.on(v.RenderEvent.DblClick,re.drawLineFinish),re.bindPointRenderEvent(),re.bindSceneEvent(),re.bindMidPointRenderEvent(),re.bindLineRenderEvent(),re}return Zr(y,[{key:"dragItem",get:function(){return this.dragLine}},{key:"editItem",get:function(){return this.editLine}},{key:"getMainLayer",value:function(){var T,W;return(T=(W=this.render.line)===null||W===void 0?void 0:W.getLayers())!==null&&T!==void 0?T:[]}},{key:"setData",value:function(T){var W=T.map(function(re){var he,Le;return re.properties=ft(ft({},yt()),(he=re.properties)!==null&&he!==void 0?he:{}),!((Le=re.properties.nodes)===null||Le===void 0)&&Le.length||(re.properties.nodes=jr(re).map(function(qe){return xi(qe)})),re});this.source.setData({point:[],midPoint:[],dashLine:[],line:W}),this.setTextData(this.getAllTexts()),this.editLine&&this.setActiveLine(this.editLine)}},{key:"getData",value:function(){return this.getLineData()}},{key:"getRenderTypes",value:function(){return["line","dashLine","midPoint","point","text"]}},{key:"bindPointRenderEvent",value:function(){var T;Ns(Vi(y.prototype),"bindPointRenderEvent",this).call(this),(T=this.pointRender)===null||T===void 0||T.on(v.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"onPointClick",value:function(T){var W,re=this,he=this.drawLine,Le=(W=he==null?void 0:he.properties.nodes)!==null&&W!==void 0?W:[],qe=T.feature;if(Nh(qe,No(Le)))requestAnimationFrame(function(){re.drawLineFinish()});else{var Ut=Lo(qe.geometry.coordinates,2);T.lngLat={lng:Ut[0],lat:Ut[1]},this.onPointCreate(T)}}},{key:"removeNode",value:function(T,W){var re,he=this.getTargetFeature(W),Le=this.getTargetFeature(T,(re=he==null?void 0:he.properties.nodes)!==null&&re!==void 0?re:[]);if(he&&Le){var qe,Ut=(qe=he==null?void 0:he.properties.nodes)!==null&&qe!==void 0?qe:[];if(3>Ut.length)return;this.syncLineNodes(he,Ut.filter(function(rn){return!Nh(Le,rn)})),this.emit(v.DrawEvent.RemoveNode,Le,he,this.getLineData()),this.emit(v.DrawEvent.Edit,he,this.getLineData())}}},{key:"onPointContextMenu",value:function(T){var W,re=this.editLine,he=T.feature,Le=(W=re==null?void 0:re.properties.nodes)!==null&&W!==void 0?W:[];if(re&&Le.length>=3)return this.removeNode(he,re),this.scene.setMapStatus({dragEnable:!0}),he}},{key:"onPointCreate",value:function(T){if(this.addable){var W=Ns(Vi(y.prototype),"onPointCreate",this).call(this,T);return W&&(this.setHelper("drawFinish"),this.emit(v.DrawEvent.AddNode,W,this.drawLine,this.getLineData())),W}}},{key:"onPointDragEnd",value:function(T){var W=this.editLine,re=Ns(Vi(y.prototype),"onPointDragEnd",this).call(this,T);return W&&re&&this.emit(v.DrawEvent.Edit,W,this.getLineData()),re}},{key:"onLineDragStart",value:function(T){var W=Ns(Vi(y.prototype),"onLineDragStart",this).call(this,T);return W&&this.emit(v.DrawEvent.DragStart,W,this.getLineData()),W}},{key:"onLineDragging",value:function(T){var W=Ns(Vi(y.prototype),"onLineDragging",this).call(this,T);return W&&this.emit(v.DrawEvent.Dragging,W,this.getLineData()),W}},{key:"onLineDragEnd",value:function(T){var W=Ns(Vi(y.prototype),"onLineDragEnd",this).call(this,T);return W&&(this.emit(v.DrawEvent.DragEnd,W,this.getLineData()),this.emit(v.DrawEvent.Edit,W,this.getLineData())),W}},{key:"onMidPointClick",value:function(T){var W=this.editLine,re=Ns(Vi(y.prototype),"onMidPointClick",this).call(this,T);return W&&re&&(this.emit(v.DrawEvent.Edit,W,this.getLineData()),this.emit(v.DrawEvent.AddNode,re,W,this.getLineData())),re}},{key:"onSceneMouseMove",value:function(T){var W=this.drawLine;if(W){var re,he=No(W.properties.nodes),Le=Ea(T);this.options.adsorbOptions&&(Le=(re=this.getAdsorbPosition(Le))!==null&&re!==void 0?re:Le),this.setDashLineData([ci([Le,he.geometry.coordinates])]),this.setTextData(this.getAllTexts())}}},{key:"setActiveFeature",value:function(T){var W=this.getTargetFeature(T);W?this.setActiveLine(W):this.clearActiveLine()}},{key:"resetFeatures",value:function(){var T=this.getLineData();this.drawLine&&(T=T.filter(function(W){return!W.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setTextData(function(W){return W.filter(function(re){return!re.properties.isActive})})),this.editLine&&this.handleLineUnClick(this.editLine),this.setLineData(T.map(function(W){return W.properties=ft(ft({},W.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),W}))}},{key:"enablePointRenderAction",value:function(){var T;Ns(Vi(y.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((T=this.pointRender)===null||T===void 0||T.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var T;Ns(Vi(y.prototype),"disablePointRenderAction",this).call(this),(T=this.pointRender)===null||T===void 0||T.disableContextMenu()}},{key:"bindEnableEvent",value:function(){Ns(Vi(y.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.sceneRender.enableDblClick()}},{key:"unbindEnableEvent",value:function(){Ns(Vi(y.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.sceneRender.disableDblClick()}},{key:"bindThis",value:function(){Ns(Vi(y.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this),this.bindSceneEvent=this.bindSceneEvent.bind(this),this.bindLineRenderEvent=this.bindLineRenderEvent.bind(this),this.bindMidPointRenderEvent=this.bindMidPointRenderEvent.bind(this)}}]),y}(lu),df=function(Me){To(y,Me);var f=Rs(y);function y(T,W){var re;return ln(this,y),(re=f.call(this,T,W)).bindPointRenderEvent(),re}return Zr(y,[{key:"dragItem",get:function(){return this.dragPoint}},{key:"editItem",get:function(){return this.editPoint}},{key:"getDefaultOptions",value:function(T){var W=ft(ft({},this.getCommonOptions(T)),{},{helper:po(Sl),initialData:T.initialData});return W.style.point=zn,W}},{key:"bindEnableEvent",value:function(){Ns(Vi(y.prototype),"bindEnableEvent",this).call(this),this.enablePointRenderAction()}},{key:"unbindEnableEvent",value:function(){Ns(Vi(y.prototype),"unbindEnableEvent",this).call(this),this.disablePointRenderAction()}},{key:"getRenderTypes",value:function(){return["point"]}},{key:"getMainLayer",value:function(){var T,W;return(T=(W=this.render.point)===null||W===void 0?void 0:W.getLayers())!==null&&T!==void 0?T:[]}},{key:"setData",value:function(T){this.setPointData(T.map(function(W){var re;return W.properties=ft(ft({},We()),(re=W.properties)!==null&&re!==void 0?re:{}),W}))}},{key:"getData",value:function(){return this.getPointData()}},{key:"onPointCreate",value:function(T){if(this.addable){var W=Ns(Vi(y.prototype),"onPointCreate",this).call(this,T);if(W)return this.options.editable&&this.setHelper("pointHover"),this.emit(v.DrawEvent.Add,W,this.getData()),W}else this.setPointData(function(re){return re.map(function(he){return he.properties=ft(ft({},he.properties),{},{isHover:!1,isActive:!1}),he})})}},{key:"onPointMouseMove",value:function(T){var W=Ns(Vi(y.prototype),"onPointMouseMove",this).call(this,T);return this.options.editable&&!this.dragPoint&&this.setHelper("pointHover"),W}},{key:"onPointMouseOut",value:function(T){var W=Ns(Vi(y.prototype),"onPointMouseOut",this).call(this,T);return this.setHelper(this.addable?"draw":null),W}},{key:"onPointDragStart",value:function(T){var W=Ns(Vi(y.prototype),"onPointDragStart",this).call(this,T);return this.setHelper("pointDrag"),this.emit(v.DrawEvent.DragStart,W,this.getData()),W}},{key:"onPointDragging",value:function(T){var W=Ns(Vi(y.prototype),"onPointDragging",this).call(this,T);return W&&this.options.editable&&this.emit(v.DrawEvent.Dragging,W,this.getData()),W}},{key:"onPointDragEnd",value:function(T){var W=Ns(Vi(y.prototype),"onPointDragEnd",this).call(this,T);return W&&this.options.editable&&(this.setHelper("pointHover"),this.emit(v.DrawEvent.DragEnd,W,this.getData()),this.emit(v.DrawEvent.Edit,W,this.getData())),W}},{key:"bindThis",value:function(){Ns(Vi(y.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this)}},{key:"onSceneMouseMove",value:function(T){}},{key:"setActiveFeature",value:function(T){var W=this.getTargetFeature(T);this.setPointData(function(re){return re.map(function(he){return he.properties.isActive=Nh(W,he),he})})}},{key:"resetFeatures",value:function(){this.setPointData(function(T){return T.map(function(W){return W.properties=ft(ft({},W.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),W})})}}]),y}(qa),zp=function(Me){To(y,Me);var f=Rs(y);function y(T,W){var re;return ln(this,y),(re=f.call(this,T,W)).drawPolygonFinish=function(){var he,Le=re.drawPolygon,qe=(he=Le==null?void 0:Le.properties.nodes)!==null&&he!==void 0?he:[];if(Le&&qe.length>=3){Le.properties.isDraw=!1,re.syncPolygonNodes(Le,qe),re.setActivePolygon(Le);var Ut=re.options,rn=Ut.autoActive,Qn=Ut.editable;rn&&Qn||re.handlePolygonUnClick(Le),re.setHelper(Qn?rn?"pointHover":"polygonHover":re.addable?"draw":null),re.emit(v.DrawEvent.Add,Le,re.getPolygonData())}},re.sceneRender.on(v.RenderEvent.DblClick,re.drawPolygonFinish),re.bindPointRenderEvent(),re.bindSceneEvent(),re.bindMidPointRenderEvent(),re.bindLineRenderEvent(),re.bindPolygonRenderEvent(),re}return Zr(y,[{key:"getDefaultOptions",value:function(T){return ft(ft({},Ns(Vi(y.prototype),"getDefaultOptions",this).call(this,T)),{},{liveUpdate:!1})}},{key:"setData",value:function(T){var W=T.map(function(re){var he,Le;if(re.properties=ft(ft({},Pn()),(he=re.properties)!==null&&he!==void 0?he:{}),!(!((Le=re.properties.nodes)===null||Le===void 0)&&Le.length)){var qe=jr(re);qe=qe.slice(0,qe.length-1),re.properties.nodes=qe.map(function(rn){return xi(rn)})}if(!re.properties.line){var Ut=re.properties.nodes;re.properties.line=Zn([].concat(Ps(Ut),[xi(Dc(Ut).geometry.coordinates)]))}return re});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:W,line:W.map(function(re){return re.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"onPointCreate",value:function(T){if(this.addable&&!this.dragPoint){var W=Ns(Vi(y.prototype),"onPointCreate",this).call(this,T),re=this.drawPolygon,he=this.drawLine;return W&&(re?(this.syncPolygonNodes(re,[].concat(Ps(re.properties.nodes),[W])),this.setDashLineData([ci([Ea(T),re.properties.nodes[0].geometry.coordinates])]),re.properties.nodes.length>1&&this.setHelper("drawFinish")):he&&(this.handleCreatePolygon([W],he),this.setHelper("drawContinue")),this.emit(v.DrawEvent.AddNode,W,re,this.getPolygonData())),W}}},{key:"onPointClick",value:function(T){var W=this,re=this.drawPolygon,he=T.feature;if(re){var Le=re.properties.nodes;if(Le.length<3||!Nh(Dc(Le),he)&&!Nh(No(Le),he)){var qe=Lo(he.geometry.coordinates,2);T.lngLat={lng:qe[0],lat:qe[1]},this.onPointCreate(T)}else requestAnimationFrame(function(){W.drawPolygonFinish()})}}},{key:"onPointDragging",value:function(T){var W=this.dragPoint,re=this.editPolygon;if(W&&re){var he=re.properties.line;he.properties.nodes=he.properties.nodes.map(function(Ci){return Nh(Ci,W)?W:Ci});var Le=he.properties.nodes,qe=Le.slice(0,Le.length-1),Ut=Dc(Le),rn=No(Le),Qn=Nh(Ut,W)||Nh(rn,W);if(Qn&&(Ut.geometry.coordinates=rn.geometry.coordinates=Ea(T)),this.options.adsorbOptions&&Qn){var br=this.resetAdsorbLngLat(T);br&&(Ut.geometry.coordinates=rn.geometry.coordinates=br)}Ns(Vi(y.prototype),"onPointDragging",this).call(this,T),this.syncPolygonNodes(re,qe),this.setActivePolygon(re)}return W}},{key:"onLineDragging",value:function(T){var W=this.dragPolygon,re=Ns(Vi(y.prototype),"onLineDragging",this).call(this,T);if(re&&W){var he=re.properties.nodes;this.syncPolygonNodes(W,he.slice(0,he.length-1)),this.emit(v.DrawEvent.Dragging,W,this.getPolygonData())}return re}},{key:"onMidPointClick",value:function(T){var W=Ns(Vi(y.prototype),"onMidPointClick",this).call(this,T),re=this.editPolygon;return W&&re&&(this.emit(v.DrawEvent.Edit,re,this.getPolygonData()),this.emit(v.DrawEvent.AddNode,W,re,this.getPolygonData())),W}},{key:"onSceneMouseMove",value:function(T){var W,re=this.drawPolygon,he=(W=re==null?void 0:re.properties.nodes)!==null&&W!==void 0?W:[];if(re&&he.length){this.options.adsorbOptions&&this.resetAdsorbLngLat(T);var Le=Ea(T),qe=[];if(qe.push(ci([Le,Dc(he).geometry.coordinates])),he.length>1&&qe.push(ci([Le,No(he).geometry.coordinates])),this.options.liveUpdate&&he.length>=2){var Ut=jr(Os(he));re.geometry.coordinates=[[].concat(Ps(Ut),[Le,Ut[0]])],this.setPolygonData(this.getPolygonData())}this.setDashLineData(qe),this.setTextData(this.getAllTexts())}}},{key:"removeNode",value:function(T,W){var re,he=this.getTargetFeature(W),Le=this.getTargetFeature(T,(re=he==null?void 0:he.properties.nodes)!==null&&re!==void 0?re:[]);if(he&&Le){var qe,Ut=(qe=he==null?void 0:he.properties.nodes)!==null&&qe!==void 0?qe:[];if(4>Ut.length)return;this.syncPolygonNodes(he,Ut.filter(function(rn){return!Nh(Le,rn)})),this.emit(v.DrawEvent.RemoveNode,Le,he,this.getLineData()),this.emit(v.DrawEvent.Edit,he,this.getPolygonData())}}},{key:"onPointContextMenu",value:function(T){var W,re=this.editPolygon,he=T.feature,Le=(W=re==null?void 0:re.properties.nodes)!==null&&W!==void 0?W:[];if(re&&Le.length>=4)return Le.find(function(qe){return Nh(qe,he)})||(he=Le[0]),this.removeNode(he,re),he}},{key:"bindPointRenderEvent",value:function(){var T;Ns(Vi(y.prototype),"bindPointRenderEvent",this).call(this),(T=this.pointRender)===null||T===void 0||T.on(v.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"enablePointRenderAction",value:function(){var T;Ns(Vi(y.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((T=this.pointRender)===null||T===void 0||T.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var T;Ns(Vi(y.prototype),"disablePointRenderAction",this).call(this),(T=this.pointRender)===null||T===void 0||T.disableContextMenu()}}]),y}(wc),w0=function(Me){To(y,Me);var f=Rs(y);function y(T,W){var re;return ln(this,y),(re=f.call(this,T,W)).bindPointRenderEvent(),re.bindSceneEvent(),re.bindMidPointRenderEvent(),re.bindLineRenderEvent(),re.bindPolygonRenderEvent(),re}return Zr(y,[{key:"getDefaultOptions",value:function(T){var W=Ns(Vi(y.prototype),"getDefaultOptions",this).call(this,T);return W.helper&&(W.helper=ft(ft({},W.helper),za)),W}},{key:"setData",value:function(T){var W=this,re=T.map(function(he){var Le,qe,Ut;he.properties=ft(ft({},Pn()),(Le=he.properties)!==null&&Le!==void 0?Le:{});var rn=he.properties.nodes;if(((qe=rn)===null||qe===void 0?void 0:qe.length)!==2){var Qn=Lo(ea(he),4),br=Qn[2],Ci=Qn[3];rn=[xi([Qn[0],Qn[1]]),xi([br,Ci])],he.properties.nodes=rn}var Ii=Lo(rn,2),Po=Ii[0],Io=Ii[1],Zo=!!(!((Ut=he.properties)===null||Ut===void 0)&&Ut.isActive),Ro=he.properties.line;return Ro||(Ro=W.handleCreatePolygonLine(Po,Io,{isActive:Zo}),he.properties.line=Ro),W.handleCreatePolygon([Po,Io],Ro,ft(ft({},he.properties),{},{isActive:Zo}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:re,line:re.map(function(he){return he.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(T,W){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},he=jr(md(Os([T,W]))).map(function(Le,qe){return qe===0?T:qe===2?W:xi(Le)});return Zn(he,re)}},{key:"syncPolygonNodes",value:function(T,W){var re=T.properties.line,he=jr(md(Os(W)));T.properties.nodes=W,T.geometry.coordinates=[he],this.setPolygonData(function(Ut){return Ut.map(function(rn){return Nh(rn,T)?T:rn})}),this.setPointData(T.properties.isDraw?[W[0]]:W);var Le=re.properties.nodes,qe=he.filter(function(Ut){return!Ke(Ut,W[0].geometry.coordinates)&&!Ke(Ut,W[1].geometry.coordinates)});return Le.forEach(function(Ut,rn){var Qn=[0,0];switch(rn){case 0:Qn=W[0].geometry.coordinates;break;case 1:Qn=qe[0];break;case 2:Qn=W[1].geometry.coordinates;break;case 3:Qn=qe[1];break;case 4:Qn=po(W[0].geometry.coordinates)}Ut.geometry.coordinates=Qn}),re.geometry.coordinates=he,T}},{key:"onLineDragging",value:function(T){var W=Ns(Vi(y.prototype),"onLineDragging",this).call(this,T),re=this.dragPolygon;if(W&&re){var he=re.properties.line.properties.nodes;this.syncPolygonNodes(re,[he[0],he[2]]),this.setActivePolygon(re,{isDrag:!0}),this.emit(v.DrawEvent.Dragging,re,this.getPolygonData())}return W}}]),y}(Zd),jm=function(Me,f){for(var y=Me;y&&!Array.from(y.classList).includes(f);)y=y.parentElement;return y},qm=["point","line","polygon","rect","circle","clear"],Ev={point:"#l7draw-point",line:"#l7draw-line",polygon:"#l7draw-polygon",rect:"#l7draw-rect",circle:"#l7draw-circle",clear:"#l7draw-qingkong"},h0={point:df,line:Mp,polygon:zp,rect:w0,circle:_s},ym="data-draw-type",Jm="l7-draw-control",_m="".concat(Jm,"__btn"),hg="".concat(_m,"--active");(function(Me){var f,y,T,W,re,he='',Le=(Le=document.getElementsByTagName("script"))[Le.length-1].getAttribute("data-injectcss");if(Le&&!Me.__iconfont__svg__cssinject__){Me.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(Ut){console&&console.log(Ut)}}function qe(){re||(re=!0,T())}f=function(){var Ut,rn=document.createElement("div");rn.innerHTML=he,he=null,(rn=rn.getElementsByTagName("svg")[0])&&(rn.setAttribute("aria-hidden","true"),rn.style.position="absolute",rn.style.width=0,rn.style.height=0,rn.style.overflow="hidden",(Ut=document.body).firstChild?function(Qn,br){br.parentNode.insertBefore(Qn,br)}(rn,Ut.firstChild):Ut.appendChild(rn))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(f,0):(y=function(){document.removeEventListener("DOMContentLoaded",y,!1),f()},document.addEventListener("DOMContentLoaded",y,!1)):document.attachEvent&&(T=f,W=Me.document,re=!1,function Ut(){try{W.documentElement.doScroll("left")}catch(rn){return void setTimeout(Ut,50)}qe()}(),W.onreadystatechange=function(){W.readyState=="complete"&&(W.onreadystatechange=null,qe())})})(window),Ra(".l7-draw-control{display:flex;overflow:hidden;background:#fff;border-radius:2px;box-shadow:0 0 20px rgba(0,0,0,.14901960784313725)}.l7-draw-control__btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;text-align:center;background:transparent;border-width:0;border-right:1px solid #e0e0e0;outline:0;cursor:pointer}.l7-draw-control__btn:hover{background-color:#e5e5e5}.l7-draw-control__btn:last-child{border-right:0;border-bottom:0}.l7-draw-control__btn .l7-draw-icon{width:26px;height:26px;overflow:hidden;fill:currentColor}.l7-draw-control__btn--active svg{color:#0370fe}");var Of=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ag=/^\w*$/,Af=function(Me,f){if(Ap(Me))return!1;var y=typeof Me;return!(y!="number"&&y!="symbol"&&y!="boolean"&&Me!=null&&!kh(Me))||Ag.test(Me)||!Of.test(Me)||f!=null&&Me in Object(f)};function op(Me,f){if(typeof Me!="function"||f!=null&&typeof f!="function")throw new TypeError("Expected a function");var y=function(){var T=arguments,W=f?f.apply(this,T):T[0],re=y.cache;if(re.has(W))return re.get(W);var he=Me.apply(this,T);return y.cache=re.set(W,he)||re,he};return y.cache=new(op.Cache||hd),y}op.Cache=hd;var Qm=op,yp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vp=/\\(\\)?/g,Mc=function(Me){var f=Qm(Me,function(T){return y.size===500&&y.clear(),T}),y=f.cache;return f}(function(Me){var f=[];return Me.charCodeAt(0)===46&&f.push(""),Me.replace(yp,function(y,T,W,re){f.push(W?re.replace(Vp,"$1"):T||y)}),f}),cm=Hf?Hf.prototype:void 0,C0=cm?cm.toString:void 0,pc=function Me(f){if(typeof f=="string")return f;if(Ap(f))return Du(f,Me)+"";if(kh(f))return C0?C0.call(f):"";var y=f+"";return y=="0"&&1/f==-1/0?"-0":y},Nu=function(Me){return Me==null?"":pc(Me)},Nv=function(Me,f){return Ap(Me)?Me:Af(Me,f)?[Me]:Mc(Nu(Me))},Wm=function(Me){if(typeof Me=="string"||kh(Me))return Me;var f=Me+"";return f=="0"&&1/Me==-1/0?"-0":f},sg=function(Me,f){for(var y=0,T=(f=Nv(f,Me)).length;Me!=null&&T>y;)Me=Me[Wm(f[y++])];return y&&y==T?Me:void 0},Nf=function(Me,f,y){var T=-1,W=Me.length;0>f&&(f=-f>W?0:W+f),0>(y=y>W?W:y)&&(y+=W),W=f>y?0:y-f>>>0,f>>>=0;for(var re=Array(W);++Tf.length?Me:sg(Me,Nf(f,0,-1))},sf=function(Me,f){return f=Nv(f,Me),(Me=S0(Me,f))==null||delete Me[Wm(No(f))]},F1=function(Me){return ho(Me)?void 0:Me},mm=Hf?Hf.isConcatSpreadable:void 0,a0=function(Me){return Ap(Me)||Zp(Me)||!!(mm&&Me&&Me[mm])},l0=function Me(f,y,T,W,re){var he=-1,Le=f.length;for(T||(T=a0),re||(re=[]);++he0&&T(qe)?y>1?Me(qe,y-1,T,W,re):c0(re,qe):W||(re[re.length]=qe)}return re},Gs=function(Me){return Me!=null&&Me.length?l0(Me,1):[]},Xy=function(Me){return vu(ls(Me,void 0,Gs),Me+"")}(function(Me,f){var y={};if(Me==null)return y;var T=!1;f=Du(f,function(re){return re=Nv(re,Me),T||(T=re.length>1),re}),Op(Me,Bm(Me),y),T&&(y=Wo(y,7,F1));for(var W=f.length;W--;)sf(y,f[W]);return y}),vg=Xy,ev=function(Me){To(y,Me);var f=Rs(y);function y(T){var W,re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ln(this,y),(W=f.call(this,re)).controlOption=void 0,W.sceneInstance=void 0,W.drawMap={},W.btnMap={},W.activeType=null,W.emitDataChange=j(function(){W.emit(v.ControlEvent.DataChange,W.getDrawData())},16),W.emitDrawSelect=function(he,Le){W.emit(v.ControlEvent.DrawSelect,he,Le)},W.sceneInstance=T,W.controlOption=ft(ft({},W.getDefault()),re||{}),W.onBtnClick=W.onBtnClick.bind(Is(W)),W}return Zr(y,[{key:"getActiveType",value:function(){return this.activeType}},{key:"getDefault",value:function(){return ft(ft({},Ns(Vi(y.prototype),"getDefault",this).call(this)),{},{className:"",buttonClassName:"",activeButtonClassName:"",style:"",position:"topleft",commonDrawOptions:{},drawConfig:{point:!0,line:!0,polygon:!0,rect:!0,circle:!0,clear:!0}})}},{key:"addTo",value:function(T){return Ns(Vi(y.prototype),"addTo",this).call(this,T),this.init(),this}},{key:"onAdd",value:function(){var T=this.controlOption,W=T.className,re=T.style,he=R.DOM.create("div","".concat(Jm," ").concat(W));return re&&he.setAttribute("style",re),he}},{key:"onRemove",value:function(){Object.values(this.drawMap).forEach(function(T){T.clear(!0)})}},{key:"init",value:function(){var T,W=this,re=[];Object.entries(this.controlOption.drawConfig).filter(function(he){var Le=Lo(he,2);return Le[1]}).sort(function(he,Le){var qe=Lo(he,2)[1],Ut=Lo(Le,2)[1],rn=Number.MAX_SAFE_INTEGER;return(typeof qe=="boolean"?rn:qe.order)-(typeof Ut=="boolean"?rn:Ut.order)}).map(function(he){var Le=Lo(he,2),qe=Le[1];return[Le[0],Pt(qe)==="object"?vg(qe,"order"):qe]}).forEach(function(he){var Le=Lo(he,2),qe=Le[0],Ut=Le[1];if(Pt(Ut)==="object"&&Ut.button){var rn=Ut.button;rn.classList.contains("l7-draw-control__btn")||rn.classList.add("l7-draw-control__btn"),W.btnMap[qe]=rn,re.push(rn)}else if(Ut&&qm.includes(qe)){var Qn=W.initBtn(qe);Qn.addEventListener("click",W.onBtnClick),re.push(Qn),W.btnMap[qe]=Qn;var br=h0[qe];if(br&&W.sceneInstance){var Ci=new br(W.sceneInstance,ft(ft({},W.controlOption.commonDrawOptions),typeof Ut=="boolean"?{}:Ut));Ci.on(v.DrawEvent.Change,W.emitDataChange),Ci.on(v.DrawEvent.Select,function(Ii){W.emitDrawSelect(qe,Ii)}),W.drawMap[qe]=Ci}}}),(T=this.container).append.apply(T,re),this.controlOption.defaultActiveType&&this.onDrawClick(this.controlOption.defaultActiveType)}},{key:"getDrawData",value:function(){return Uo(Vd(this.drawMap).map(function(T){var W=Lo(T,2);return[W[0],W[1].getData()]}))}},{key:"getTypeDraw",value:function(T){var W;return(W=this.drawMap[T])!==null&&W!==void 0?W:null}},{key:"onBtnClick",value:function(T){var W=jm(T.target,_m);if(W){var re=W.getAttribute(ym);re==="clear"?this.clearDrawData():this.onDrawClick(re)}}},{key:"setActiveType",value:function(T){var W=null,re=this.activeType;if(re){var he,Le=this.btnMap[re];if(Le){R.DOM.removeClass(Le,hg);var qe=this.controlOption.activeButtonClassName;qe&&R.DOM.removeClass(Le,qe)}(he=this.drawMap[re])===null||he===void 0||he.disable(),W=null}if(re!==T&&T){var Ut;(Ut=this.drawMap[T])===null||Ut===void 0||Ut.enable();var rn=this.btnMap[T];rn&&R.DOM.addClass(rn,"".concat(hg," ").concat(this.controlOption.activeButtonClassName)),W=T}this.activeType=W,this.emit(v.ControlEvent.DrawChange,W)}},{key:"onDrawClick",value:function(T){this.setActiveType(T)}},{key:"clearDrawData",value:function(){Object.values(this.drawMap).forEach(function(T){T==null||T.clear()}),this.emit(v.ControlEvent.DrawClear)}},{key:"initBtn",value:function(T){var W=R.DOM.create("button","".concat(_m," ").concat(this.controlOption.buttonClassName));return W.innerHTML=``),W.setAttribute(ym,T),W}}]),y}(R.Control);v.ACTIVE_COLOR=Se,v.BaseMode=Da,v.CircleDrawer=_s,v.DEFAULT_ADSORB_CONFIG=ht,v.DEFAULT_AREA_OPTIONS=kr,v.DEFAULT_COMMON_OPTIONS=Ne,v.DEFAULT_CURSOR_MAP=w,v.DEFAULT_DISTANCE_OPTIONS=Yn,v.DEFAULT_HISTORY_CONFIG=Gr,v.DEFAULT_KEYBOARD_CONFIG=je,v.DEFAULT_MID_POINT_STYLE=en,v.DEFAULT_NODE_NORMAL_STYLE=Ht,v.DEFAULT_NODE_STYLE=Ir,v.DEFAULT_POINT_NORMAL_STYLE=ct,v.DEFAULT_POINT_STYLE=zn,v.DEFAULT_POPUP_CONFIG=ut,v.DEFAULT_SOURCE_DATA=b,v.DEFAULT_STYLE=J,v.DEFAULT_TEXT_NORMAL_STYLE=G,v.DashLineRender=cg,v.DragPolygonMode=Zd,v.DrawCircle=_s,v.DrawControl=ev,v.DrawLine=Mp,v.DrawPoint=df,v.DrawPolygon=zp,v.DrawRect=w0,v.LayerRender=xp,v.LineDrawer=Mp,v.LineMode=lu,v.LineRender=ae,v.MidPointMode=xl,v.MidPointRender=pe,v.NORMAL_COLOR=ie,v.PointDrawer=df,v.PointMode=qa,v.PointRender=it,v.PolygonDrawer=zp,v.PolygonMode=wc,v.PolygonRender=dn,v.RENDER_MAP=D,v.RectDrawer=w0,v.SceneRender=ir,v.Source=Vs,v.TextRender=Te,v.calcAreaText=uu,v.calcDistanceTextsByLine=La,v.createDashLine=ci,v.createLineFeature=Zn,v.createPointFeature=xi,v.createPolygonFeature=So,v.findMinIndex=Ma,v.getAdsorbFeature=go,v.getAdsorbLine=Fs,v.getAdsorbPoint=Vo,v.getDefaultLineProperties=yt,v.getDefaultPointProperties=We,v.getDefaultPolygonProperties=Pn,v.getLineCenterPoint=Zs,v.getLngLat=ya,v.getMapDom=Jo,v.getParentByClassName=jm,v.getPosition=Ea,v.getSingleColorStyle=function(Me){return{point:{normal:{color:Me},hover:{color:Me},active:{color:Me}},line:{normal:{color:Me},hover:{color:Me},active:{color:Me}},polygon:{normal:{color:Me},hover:{color:Me},active:{color:Me},style:{opacity:.2}},text:{normal:{color:Me},active:{color:Me}},midPoint:{normal:{color:Me}},dashLine:{normal:{color:Me}}}},v.getUuid=Ul,v.isDev=!1,v.isSameFeature=Nh,v.resetEventLngLat=$l,v.splitByPosition=Ls,v.transLngLat2Position=ts,v.updateTargetFeature=Ge,Object.defineProperty(v,"__esModule",{value:!0})})},19501:function(_t,Y,_){"use strict";_.r(Y),_.d(Y,{AJAXError:function(){return Bs},AttributeType:function(){return Ih},BKDRHash:function(){return Ad},BaiduMap:function(){return Ez},BaseLayer:function(){return i_},BaseMapService:function(){return uE},BaseMapWrapper:function(){return GC},BaseModel:function(){return ec},BasePostProcessingPass:function(){return yb},BlendType:function(){return wh},ButtonControl:function(){return kt},CameraUniform:function(){return __},CanvasLayer:function(){return AC},CanvasUpdateType:function(){return Ff},CityBuildingLayer:function(){return QV},Control:function(){return le},CoordinateSystem:function(){return Ud},CoordinateUniform:function(){return qh},DOM:function(){return v},Earth:function(){return FG},EarthLayer:function(){return QO},ExportImage:function(){return Ku},FrequencyController:function(){return Iu},Fullscreen:function(){return Sp},GaodeMap:function(){return Nw},GaodeMapV1:function(){return MH},GaodeMapV2:function(){return Nw},GeoLocate:function(){return Jp},GeometryLayer:function(){return m1},HeatmapLayer:function(){return mO},IDebugLog:function(){return Uv},ILayerStage:function(){return Ll},ImageLayer:function(){return HS},InteractionEvent:function(){return Gp},LRUCache:function(){return Rh},LayerPopup:function(){return H1},LayerSwitch:function(){return yu},LineLayer:function(){return KS},LineTriangulation:function(){return on},LinearDir:function(){return Df},LoadTileDataStatus:function(){return Yp},Logo:function(){return Ft},Map:function(){return lI},MapLibre:function(){return j2},MapServiceEvent:function(){return b_},MapTheme:function(){return Ss},MapType:function(){return nh},Mapbox:function(){return lU},Marker:function(){return T2},MarkerLayer:function(){return x},MaskLayer:function(){return n6},MaskOperation:function(){return ss},MouseLocation:function(){return tf},PassType:function(){return Vh},PointFillTriangulation:function(){return nn},PointLayer:function(){return Sw},PolygonLayer:function(){return jx},PopperControl:function(){return as},Popup:function(){return n0},PositionType:function(){return io},RasterLayer:function(){return W4},RasterTileType:function(){return Zg},Satistics:function(){return R},Scale:function(){return gg},ScaleTypes:function(){return B0},Scene:function(){return qK},SceneConifg:function(){return Ni},SceneEventList:function(){return C2},SelectControl:function(){return bl},SizeUnitType:function(){return Lf},Source:function(){return vw},SourceTile:function(){return Fd},StencilType:function(){return Fh},StyleScaleType:function(){return zx},TYPES:function(){return Ls},TencentMap:function(){return pU},TextureBlend:function(){return Kp},TileDebugLayer:function(){return lB},TilesetManager:function(){return Yf},UpdateTileStrategy:function(){return Ep},Viewport:function(){return KC},WindLayer:function(){return GW},WorkerSourceMap:function(){return Rr},Zoom:function(){return Z0},aProjectFlat:function(){return Mh},amap2Project:function(){return zs},amap2UnProject:function(){return $a},anchorTranslate:function(){return zt},anchorType:function(){return bn},applyAnchorClass:function(){return Jt},bBoxToBounds:function(){return $u},bindAll:function(){return nc},boundsContains:function(){return ac},calAngle:function(){return Qc},calDistance:function(){return Hu},calculateCentroid:function(){return Bh},calculatePointsCenterAndRadius:function(){return Gd},container:function(){return sy},createLayerContainer:function(){return Fx},createSceneContainer:function(){return V_},decodePickingColor:function(){return Bi},djb2hash:function(){return bd},encodePickingColor:function(){return zr},executeWorkerTask:function(){return Yr},expandUrl:function(){return $c},extent:function(){return Td},flow:function(){return Qd},formatImage:function(){return kn},generateCatRamp:function(){return rs},generateColorRamp:function(){return Xr},generateCustomRamp:function(){return gs},generateLinearRamp:function(){return Qi},generateQuantizeRamp:function(){return Ur},getAngle:function(){return fd},getArrayBuffer:function(){return fi},getBBoxFromPoints:function(){return Ch},getCullFace:function(){return Jr},getData:function(){return In},getDefaultDomain:function(){return ri},getImage:function(){return gr},getJSON:function(){return co},getProtocolAction:function(){return Ts},getReferrer:function(){return cu},getTileIndices:function(){return Rp},getTileWarpXY:function(){return Tp},getURLFromTemplate:function(){return oh},getWMTSURLFromTemplate:function(){return Xh},gl:function(){return Di},guid:function(){return su},isAndroid:function(){return Bl},isColor:function(){return gi},isImageBitmap:function(){return Ta},isPC:function(){return wl},isURLTemplate:function(){return vd},isWorker:function(){return Ya},isiOS:function(){return Mu},latitude:function(){return _h},lazyInject:function(){return A0},lazyMultiInject:function(){return hT},lineAtOffset:function(){return Jh},lineAtOffsetAsyc:function(){return uh},lineStyleType:function(){return lf},lngLatInExtent:function(){return vh},lngLatToMeters:function(){return Kh},lnglatDistance:function(){return Ja},lodashUtil:function(){return fs},longitude:function(){return Vf},makeXMLHttpRequestPromise:function(){return Gi},metersToLngLat:function(){return $f},normalize:function(){return cc},osmLonLat2TileXY:function(){return Pf},osmTileXY2LonLat:function(){return hp},packCircleVertex:function(){return QL},padBounds:function(){return au},polygonFillTriangulation:function(){return hn},postData:function(){return Ms},project:function(){return pl},removeDuplicateUniforms:function(){return Mt},rgb2arr:function(){return mi},sameOrigin:function(){return et},setL7WorkerSource:function(){return hr},tileToBounds:function(){return Pu},tranfrormCoord:function(){return yh},unProjectFlat:function(){return Wd},validateLngLat:function(){return Qh},version:function(){return SL}});var v={};_.r(v),_.d(v,{DPR:function(){return Un},addClass:function(){return xa},addStyle:function(){return jr},appendElementType:function(){return ea},clearChildren:function(){return ga},create:function(){return Os},css2Style:function(){return us},empty:function(){return ad},findParentElement:function(){return Xl},getClass:function(){return Cd},getContainer:function(){return dl},getDiffRect:function(){return ns},getStyleList:function(){return Qr},getViewPortScale:function(){return tr},hasClass:function(){return gc},printCanvas:function(){return Si},remove:function(){return Cs},removeClass:function(){return Xu},removeStyle:function(){return _o},setChecked:function(){return Oa},setClass:function(){return Zu},setTransform:function(){return iu},setUnDraggable:function(){return Va},splitWords:function(){return Mi},triggerResize:function(){return Tu},trim:function(){return Xo}});var R={};_.r(R),_.d(R,{getColumn:function(){return id},getSatByColumn:function(){return Sh},max:function(){return yc},mean:function(){return Mf},min:function(){return qd},mode:function(){return vf},statMap:function(){return qc},sum:function(){return rd}});var w={};_.r(w),_.d(w,{add:function(){return _l},adjoint:function(){return Wm},clone:function(){return Vp},copy:function(){return Mc},create:function(){return yp},determinant:function(){return sg},equals:function(){return wu},exactEquals:function(){return od},frob:function(){return Ua},fromQuat:function(){return Ut},fromQuat2:function(){return T},fromRotation:function(){return vg},fromRotationTranslation:function(){return y},fromRotationTranslationScale:function(){return Le},fromRotationTranslationScaleOrigin:function(){return qe},fromScaling:function(){return Xy},fromTranslation:function(){return Gs},fromValues:function(){return cm},fromXRotation:function(){return ev},fromYRotation:function(){return Me},fromZRotation:function(){return f},frustum:function(){return rn},getRotation:function(){return he},getScaling:function(){return re},getTranslation:function(){return W},identity:function(){return pc},invert:function(){return Nv},lookAt:function(){return Ro},mul:function(){return zc},multiply:function(){return Nf},multiplyScalar:function(){return zu},multiplyScalarAndAdd:function(){return Lu},ortho:function(){return Io},orthoNO:function(){return Po},orthoZO:function(){return Zo},perspective:function(){return br},perspectiveFromFieldOfView:function(){return Ii},perspectiveNO:function(){return Qn},perspectiveZO:function(){return Ci},rotate:function(){return F1},rotateX:function(){return mm},rotateY:function(){return a0},rotateZ:function(){return l0},scale:function(){return sf},set:function(){return C0},str:function(){return Js},sub:function(){return Nn},subtract:function(){return fu},targetTo:function(){return lo},translate:function(){return S0},transpose:function(){return Nu}});var b={};_.r(b),_.d(b,{add:function(){return WJ},angle:function(){return eO},bezier:function(){return HJ},ceil:function(){return iM},clone:function(){return D2},copy:function(){return FV},create:function(){return Vx},cross:function(){return Qk},dist:function(){return q3},distance:function(){return qk},div:function(){return BS},divide:function(){return Yk},dot:function(){return z0},equals:function(){return i7},exactEquals:function(){return r7},floor:function(){return uy},forEach:function(){return tO},fromValues:function(){return r0},hermite:function(){return t7},inverse:function(){return _w},len:function(){return s7},length:function(){return QF},lerp:function(){return ZJ},max:function(){return yw},min:function(){return UV},mul:function(){return XJ},multiply:function(){return Xk},negate:function(){return e7},normalize:function(){return bw},random:function(){return GJ},rotateX:function(){return aM},rotateY:function(){return jV},rotateZ:function(){return WV},round:function(){return FS},scale:function(){return oM},scaleAndAdd:function(){return $V},set:function(){return BV},sqrDist:function(){return P1},sqrLen:function(){return ZV},squaredDistance:function(){return sM},squaredLength:function(){return Jk},str:function(){return KJ},sub:function(){return o7},subtract:function(){return zV},transformMat3:function(){return ix},transformMat4:function(){return kT},transformQuat:function(){return VV},zero:function(){return n7}});var B={},V={},k=function(d){return V[d]},M=function(d,l){V[d]=l},C=function(d){return B[d]},g=function(d,l){B[d]=l},A={},O={},K=34,ce=10,de=13;function ve(o){return new Function("d","return {"+o.map(function(d,l){return JSON.stringify(d)+": d["+l+'] || ""'}).join(",")+"}")}function Ee(o,d){var l=ve(o);return function(c,u){return d(l(c),u,o)}}function _e(o){var d=Object.create(null),l=[];return o.forEach(function(c){for(var u in c)u in d||l.push(d[u]=u)}),l}function we(o,d){var l=o+"",c=l.length;return c9999?"+"+we(o,6):we(o,4)}function He(o){var d=o.getUTCHours(),l=o.getUTCMinutes(),c=o.getUTCSeconds(),u=o.getUTCMilliseconds();return isNaN(o)?"Invalid Date":ot(o.getUTCFullYear(),4)+"-"+we(o.getUTCMonth()+1,2)+"-"+we(o.getUTCDate(),2)+(u?"T"+we(d,2)+":"+we(l,2)+":"+we(c,2)+"."+we(u,3)+"Z":c?"T"+we(d,2)+":"+we(l,2)+":"+we(c,2)+"Z":l||d?"T"+we(d,2)+":"+we(l,2)+"Z":"")}function vt(o){var d=new RegExp('["'+o+` -\r]`),l=o.charCodeAt(0);function c(Oe,wt){var Bt,wn,Rn=u(Oe,function(Pr,ui){if(Bt)return Bt(Pr,ui-1);wn=Pr,Bt=wt?Ee(Pr,wt):ve(Pr)});return Rn.columns=wn||[],Rn}function u(Oe,wt){var Bt=[],wn=Oe.length,Rn=0,Pr=0,ui,oo=wn<=0,xo=!1;Oe.charCodeAt(wn-1)===ce&&--wn,Oe.charCodeAt(wn-1)===de&&--wn;function Ds(){if(oo)return O;if(xo)return xo=!1,A;var fa,Za=Rn,gl;if(Oe.charCodeAt(Za)===K){for(;Rn++=wn?oo=!0:(gl=Oe.charCodeAt(Rn++))===ce?xo=!0:gl===de&&(xo=!0,Oe.charCodeAt(Rn)===ce&&++Rn),Oe.slice(Za+1,fa-1).replace(/""/g,'"')}for(;Rn0&&arguments[0]!==void 0?arguments[0]:Ln,Cr=(0,B.useContext)(C),Ei=Cr.csp;(0,B.useEffect)(function(){(0,eo.hq)(wr,"@ant-design-icons",{prepend:!0,csp:Ei})},[])},Ot=["icon","className","onClick","style","primaryColor","secondaryColor"],Ht={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Pn(an){var wr=an.primaryColor,Cr=an.secondaryColor;Ht.primaryColor=wr,Ht.secondaryColor=Cr||fo(wr),Ht.calculated=!!Cr}function fr(){return(0,v.Z)({},Ht)}var In=function(wr){var Cr=wr.icon,Ei=wr.className,vo=wr.onClick,kr=wr.style,ro=wr.primaryColor,qi=wr.secondaryColor,bo=(0,b.Z)(wr,Ot),xn=Ht;if(ro&&(xn={primaryColor:ro,secondaryColor:qi||fo(ro)}),it(),Ns(Se(Cr),"icon should be icon definiton, but got ".concat(Cr)),!Se(Cr))return null;var pn=Cr;return pn&&typeof pn.icon=="function"&&(pn=(0,v.Z)((0,v.Z)({},pn),{},{icon:pn.icon(xn.primaryColor,xn.secondaryColor)})),Yi(pn.icon,"svg-".concat(pn.name),(0,v.Z)({className:Ei,onClick:vo,style:kr,"data-icon":pn.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},bo))};In.displayName="IconReact",In.getTwoToneColors=fr,In.setTwoToneColors=Pn;var mn=In;function Ut(an){var wr=di(an),Cr=(0,P.Z)(wr,2),Ei=Cr[0],vo=Cr[1];return mn.setTwoToneColors({primaryColor:Ei,secondaryColor:vo})}function en(){var an=mn.getTwoToneColors();return an.calculated?[an.primaryColor,an.secondaryColor]:an.primaryColor}var Cn=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ut("#1890ff");var lr=B.forwardRef(function(an,wr){var Cr,Ei=an.className,vo=an.icon,kr=an.spin,ro=an.rotate,qi=an.tabIndex,bo=an.onClick,xn=an.twoToneColor,pn=(0,b.Z)(an,Cn),Dt=B.useContext(C),Zt=Dt.prefixCls,vn=Zt===void 0?"anticon":Zt,$n=Dt.rootClassName,Ar=k()($n,vn,(Cr={},(0,w.Z)(Cr,"".concat(vn,"-").concat(vo.name),!!vo.name),(0,w.Z)(Cr,"".concat(vn,"-spin"),!!kr||vo.name==="loading"),Cr),Ei),Dr=qi;Dr===void 0&&bo&&(Dr=-1);var dr=ro?{msTransform:"rotate(".concat(ro,"deg)"),transform:"rotate(".concat(ro,"deg)")}:void 0,Yt=di(xn),wn=(0,P.Z)(Yt,2),Qn=wn[0],Mr=wn[1];return B.createElement("span",(0,v.Z)((0,v.Z)({role:"img","aria-label":vo.name},pn),{},{ref:wr,tabIndex:Dr,onClick:bo,className:Ar}),B.createElement(mn,{icon:vo,primaryColor:Qn,secondaryColor:Mr,style:dr}))});lr.displayName="AntdIcon",lr.getTwoToneColor=en,lr.setTwoToneColor=Ut;var pr=lr},14313:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(1413),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},b=w,B=y(89099),V=function(C,g){return P.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="CaretRightOutlined";var k=P.forwardRef(V)},28508:function(yt,Y,y){"use strict";var v=y(1413),P=y(67294),w=y(89503),b=y(89099),B=function(k,R){return P.createElement(b.Z,(0,v.Z)((0,v.Z)({},k),{},{ref:R,icon:w.Z}))};B.displayName="CloseOutlined",Y.Z=P.forwardRef(B)},85060:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(1413),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"},b=w,B=y(89099),V=function(C,g){return P.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="CloudDownloadOutlined";var k=P.forwardRef(V)},16596:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(1413),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},b=w,B=y(89099),V=function(C,g){return P.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="CloudUploadOutlined";var k=P.forwardRef(V)},82061:function(yt,Y,y){"use strict";var v=y(1413),P=y(67294),w=y(47046),b=y(89099),B=function(k,R){return P.createElement(b.Z,(0,v.Z)((0,v.Z)({},k),{},{ref:R,icon:w.Z}))};B.displayName="DeleteOutlined",Y.Z=P.forwardRef(B)},78588:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(1413),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingtalk",theme:"outlined"},b=w,B=y(89099),V=function(C,g){return P.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="DingtalkOutlined";var k=P.forwardRef(V)},37724:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(1413),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M600 395.4h91V649h79V267c0-4.4-3.6-8-8-8h-48.2c-3.7 0-7 2.6-7.7 6.3-2.6 12.1-6.9 22.3-12.9 30.9a86.14 86.14 0 01-26.3 24.4c-10.3 6.2-22 10.5-35 12.9-10.4 1.9-21 3-32 3.1a8 8 0 00-7.9 8v42.8c0 4.4 3.6 8 8 8zM871 702H567c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM443.9 312.7c-16.1-19-34.4-32.4-55.2-40.4-21.3-8.2-44.1-12.3-68.4-12.3-23.9 0-46.4 4.1-67.7 12.3-20.8 8-39 21.4-54.8 40.3-15.9 19.1-28.7 44.7-38.3 77-9.6 32.5-14.5 73-14.5 121.5 0 49.9 4.9 91.4 14.5 124.4 9.6 32.8 22.4 58.7 38.3 77.7 15.8 18.9 34 32.3 54.8 40.3 21.3 8.2 43.8 12.3 67.7 12.3 24.4 0 47.2-4.1 68.4-12.3 20.8-8 39.2-21.4 55.2-40.4 16.1-19 29-44.9 38.6-77.7 9.6-33 14.5-74.5 14.5-124.4 0-48.4-4.9-88.9-14.5-121.5-9.5-32.1-22.4-57.7-38.6-76.8zm-29.5 251.7c-1 21.4-4.2 42-9.5 61.9-5.5 20.7-14.5 38.5-27 53.4-13.6 16.3-33.2 24.3-57.6 24.3-24 0-43.2-8.1-56.7-24.4-12.2-14.8-21.1-32.6-26.6-53.3-5.3-19.9-8.5-40.6-9.5-61.9-1-20.8-1.5-38.5-1.5-53.2 0-8.8.1-19.4.4-31.8.2-12.7 1.1-25.8 2.6-39.2 1.5-13.6 4-27.1 7.6-40.5 3.7-13.8 8.8-26.3 15.4-37.4 6.9-11.6 15.8-21.1 26.7-28.3 11.4-7.6 25.3-11.3 41.5-11.3 16.1 0 30.1 3.7 41.7 11.2a87.94 87.94 0 0127.4 28.2c6.9 11.2 12.1 23.8 15.6 37.7 3.3 13.2 5.8 26.6 7.5 40.1 1.8 13.5 2.8 26.6 3 39.4.2 12.4.4 23 .4 31.8.1 14.8-.4 32.5-1.4 53.3z"}}]},name:"field-binary",theme:"outlined"},b=w,B=y(89099),V=function(C,g){return P.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="FieldBinaryOutlined";var k=P.forwardRef(V)},14468:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(1413),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M875.6 515.9c2.1.8 4.4-.3 5.2-2.4.2-.4.2-.9.2-1.4v-58.3c0-1.8-1.1-3.3-2.8-3.8-6-1.8-17.2-3-27.2-3-32.9 0-61.7 16.7-73.5 41.2v-28.6c0-4.4-3.6-8-8-8H717c-4.4 0-8 3.6-8 8V729c0 4.4 3.6 8 8 8h54.8c4.4 0 8-3.6 8-8V572.7c0-36.2 26.1-60.2 65.1-60.2 10.4.1 26.6 1.8 30.7 3.4zm-537-40.5l-54.7-12.6c-61.2-14.2-87.7-34.8-87.7-70.7 0-44.6 39.1-73.5 96.9-73.5 52.8 0 91.4 26.5 99.9 68.9h70C455.9 311.6 387.6 259 293.4 259c-103.3 0-171 55.5-171 139 0 68.6 38.6 109.5 122.2 128.5l61.6 14.3c63.6 14.9 91.6 37.1 91.6 75.1 0 44.1-43.5 75.2-102.5 75.2-60.6 0-104.5-27.2-112.8-70.5H111c7.2 79.9 75.6 130.4 179.1 130.4C402.3 751 471 695.2 471 605.3c0-70.2-38.6-108.5-132.4-129.9zM841 729a36 36 0 1072 0 36 36 0 10-72 0zM653 457.8h-51.4V396c0-4.4-3.6-8-8-8h-54.7c-4.4 0-8 3.6-8 8v61.8H495c-4.4 0-8 3.6-8 8v42.3c0 4.4 3.6 8 8 8h35.9v147.5c0 56.2 27.4 79.4 93.1 79.4 11.7 0 23.6-1.2 33.8-3.1 1.9-.3 3.2-2 3.2-3.9v-49.3c0-2.2-1.8-4-4-4h-.4c-4.9.5-6.2.6-8.3.8-4.1.3-7.8.5-12.6.5-24.1 0-34.1-10.3-34.1-35.6V516.1H653c4.4 0 8-3.6 8-8v-42.3c0-4.4-3.6-8-8-8z"}}]},name:"field-string",theme:"outlined"},b=w,B=y(89099),V=function(C,g){return P.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="FieldStringOutlined";var k=P.forwardRef(V)},15360:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(1413),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},b=w,B=y(89099),V=function(C,g){return P.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="FileTextOutlined";var k=P.forwardRef(V)},44230:function(yt,Y,y){"use strict";var v=y(1413),P=y(67294),w=y(98851),b=y(89099),B=function(k,R){return P.createElement(b.Z,(0,v.Z)((0,v.Z)({},k),{},{ref:R,icon:w.Z}))};B.displayName="FilterFilled",Y.Z=P.forwardRef(B)},26024:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(1413),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},b=w,B=y(89099),V=function(C,g){return P.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="FilterOutlined";var k=P.forwardRef(V)},75932:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(1413),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z"}}]},name:"flag",theme:"outlined"},b=w,B=y(89099),V=function(C,g){return P.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="FlagOutlined";var k=P.forwardRef(V)},77123:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(1413),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},b=w,B=y(89099),V=function(C,g){return P.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="FormOutlined";var k=P.forwardRef(V)},1210:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(1413),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},b=w,B=y(89099),V=function(C,g){return P.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="GithubOutlined";var k=P.forwardRef(V)},10524:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(1413),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},b=w,B=y(89099),V=function(C,g){return P.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="GlobalOutlined";var k=P.forwardRef(V)},3089:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(1413),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},b=w,B=y(89099),V=function(C,g){return P.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="MinusCircleOutlined";var k=P.forwardRef(V)},51042:function(yt,Y,y){"use strict";var v=y(1413),P=y(67294),w=y(42110),b=y(89099),B=function(k,R){return P.createElement(b.Z,(0,v.Z)((0,v.Z)({},k),{},{ref:R,icon:w.Z}))};B.displayName="PlusOutlined",Y.Z=P.forwardRef(B)},30723:function(yt,Y,y){"use strict";var v=y(1413),P=y(67294),w=y(43114),b=y(89099),B=function(k,R){return P.createElement(b.Z,(0,v.Z)((0,v.Z)({},k),{},{ref:R,icon:w.Z}))};B.displayName="PlusSquareOutlined",Y.Z=P.forwardRef(B)},63783:function(yt,Y,y){"use strict";var v=y(1413),P=y(67294),w=y(36688),b=y(89099),B=function(k,R){return P.createElement(b.Z,(0,v.Z)((0,v.Z)({},k),{},{ref:R,icon:w.Z}))};B.displayName="QuestionCircleOutlined",Y.Z=P.forwardRef(B)},60219:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(1413),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},b=w,B=y(89099),V=function(C,g){return P.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="SaveOutlined";var k=P.forwardRef(V)},42952:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(1413),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},b=w,B=y(89099),V=function(C,g){return P.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="SettingOutlined";var k=P.forwardRef(V)},15611:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(1413),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"}}]},name:"table",theme:"outlined"},b=w,B=y(89099),V=function(C,g){return P.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="TableOutlined";var k=P.forwardRef(V)},88484:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(1413),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},b=w,B=y(89099),V=function(C,g){return P.createElement(B.Z,(0,v.Z)((0,v.Z)({},C),{},{ref:g,icon:b}))};V.displayName="UploadOutlined";var k=P.forwardRef(V)},90857:function(yt){"use strict";var Y=Object.prototype.hasOwnProperty,y="~";function v(){}Object.create&&(v.prototype=Object.create(null),new v().__proto__||(y=!1));function P(V,k,R){this.fn=V,this.context=k,this.once=R||!1}function w(V,k,R,C,g){if(typeof R!="function")throw new TypeError("The listener must be a function");var A=new P(R,C||V,g),O=y?y+k:k;return V._events[O]?V._events[O].fn?V._events[O]=[V._events[O],A]:V._events[O].push(A):(V._events[O]=A,V._eventsCount++),V}function b(V,k){--V._eventsCount===0?V._events=new v:delete V._events[k]}function B(){this._events=new v,this._eventsCount=0}B.prototype.eventNames=function(){var k=[],R,C;if(this._eventsCount===0)return k;for(C in R=this._events)Y.call(R,C)&&k.push(y?C.slice(1):C);return Object.getOwnPropertySymbols?k.concat(Object.getOwnPropertySymbols(R)):k},B.prototype.listeners=function(k){var R=y?y+k:k,C=this._events[R];if(!C)return[];if(C.fn)return[C.fn];for(var g=0,A=C.length,O=new Array(A);g',function(yt){try{let C=function(){B||(B=!0,w())},g=function(){try{b.documentElement.doScroll("left")}catch(A){return void setTimeout(g,50)}C()};var k=C,R=g,y=(y=document.getElementsByTagName("script"))[y.length-1],Y=y.getAttribute("data-injectcss"),y=y.getAttribute("data-disable-injectsvg");if(!y){var v,P,w,b,B,V=function(O,K){K.parentNode.insertBefore(O,K)};if(Y&&!yt.__iconfont__svg__cssinject__){yt.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(A){console&&console.log(A)}}v=function(){var O,K=document.createElement("div");K.innerHTML=yt._iconfont_svg_string_3580659,(K=K.getElementsByTagName("svg")[0])&&(K.setAttribute("aria-hidden","true"),K.style.position="absolute",K.style.width=0,K.style.height=0,K.style.overflow="hidden",K=K,(O=document.body).firstChild?V(K,O.firstChild):O.appendChild(K))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(v,0):(P=function(){document.removeEventListener("DOMContentLoaded",P,!1),v()},document.addEventListener("DOMContentLoaded",P,!1)):document.attachEvent&&(w=v,b=yt.document,B=!1,g(),b.onreadystatechange=function(){b.readyState=="complete"&&(b.onreadystatechange=null,C())})}}catch(C){}}(window)},67135:function(yt,Y,y){(function(v,P){P(Y,y(5076))})(this,function(v,P){"use strict";var w={draw:"crosshair",pointHover:"pointer",pointDrag:"move",lineHover:"pointer",lineDrag:"move",polygonHover:"pointer",polygonDrag:"move"},b={point:[],line:[],polygon:[],midPoint:[],dashLine:[],text:[]},B="top",V="bottom",k="right",R="left",C="auto",g=[B,V,k,R],A="start",O="end",K="clippingParents",he="viewport",ae="popper",fe="reference",xe=g.reduce(function(Re,f){return Re.concat([f+"-"+A,f+"-"+O])},[]),ye=[].concat(g,[C]).reduce(function(Re,f){return Re.concat([f,f+"-"+A,f+"-"+O])},[]),be=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Qe(Re){return Re?(Re.nodeName||"").toLowerCase():null}function Ve(Re){if(Re==null)return window;if(""+Re!="[object Window]"){var f=Re.ownerDocument;return f&&f.defaultView||window}return Re}function pt(Re){return Re instanceof Ve(Re).Element||Re instanceof Element}function st(Re){return Re instanceof Ve(Re).HTMLElement||Re instanceof HTMLElement}function Ae(Re){return typeof ShadowRoot!="undefined"&&(Re instanceof Ve(Re).ShadowRoot||Re instanceof ShadowRoot)}var De={name:"applyStyles",enabled:!0,phase:"write",fn:function(Re){var f=Re.state;Object.keys(f.elements).forEach(function(_){var T=f.styles[_]||{},W=f.attributes[_]||{},re=f.elements[_];st(re)&&Qe(re)&&(Object.assign(re.style,T),Object.keys(W).forEach(function(de){var Le=W[de];Le===!1?re.removeAttribute(de):re.setAttribute(de,Le===!0?"":Le)}))})},effect:function(Re){var f=Re.state,_={popper:{position:f.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(f.elements.popper.style,_.popper),f.styles=_,f.elements.arrow&&Object.assign(f.elements.arrow.style,_.arrow),function(){Object.keys(f.elements).forEach(function(T){var W=f.elements[T],re=f.attributes[T]||{},de=Object.keys(f.styles.hasOwnProperty(T)?f.styles[T]:_[T]).reduce(function(Le,Je){return Le[Je]="",Le},{});st(W)&&Qe(W)&&(Object.assign(W.style,de),Object.keys(re).forEach(function(Le){W.removeAttribute(Le)}))})}},requires:["computeStyles"]};function Te(Re){return Re.split("-")[0]}var Me=Math.max,Ue=Math.min,Pe=Math.round;function Xe(){var Re=navigator.userAgentData;return Re!=null&&Re.brands&&Array.isArray(Re.brands)?Re.brands.map(function(f){return f.brand+"/"+f.version}).join(" "):navigator.userAgent}function Be(){return!/^((?!chrome|android).)*safari/i.test(Xe())}function Xt(Re,f,_){f===void 0&&(f=!1),_===void 0&&(_=!1);var T=Re.getBoundingClientRect(),W=1,re=1;f&&st(Re)&&(W=Re.offsetWidth>0&&Pe(T.width)/Re.offsetWidth||1,re=Re.offsetHeight>0&&Pe(T.height)/Re.offsetHeight||1);var de=(pt(Re)?Ve(Re):window).visualViewport,Le=!Be()&&_,Je=(T.left+(Le&&de?de.offsetLeft:0))/W,$t=(T.top+(Le&&de?de.offsetTop:0))/re,on=T.width/W,Jn=T.height/re;return{width:on,height:Jn,top:$t,right:Je+on,bottom:$t+Jn,left:Je,x:Je,y:$t}}function St(Re){var f=Xt(Re),_=Re.offsetWidth,T=Re.offsetHeight;return Math.abs(f.width-_)>1||(_=f.width),Math.abs(f.height-T)>1||(T=f.height),{x:Re.offsetLeft,y:Re.offsetTop,width:_,height:T}}function nt(Re,f){var _=f.getRootNode&&f.getRootNode();if(Re.contains(f))return!0;if(_&&Ae(_)){var T=f;do{if(T&&Re.isSameNode(T))return!0;T=T.parentNode||T.host}while(T)}return!1}function wt(Re){return Ve(Re).getComputedStyle(Re)}function lt(Re){return["table","td","th"].indexOf(Qe(Re))>=0}function Kt(Re){return((pt(Re)?Re.ownerDocument:Re.document)||window.document).documentElement}function Mt(Re){return Qe(Re)==="html"?Re:Re.assignedSlot||Re.parentNode||(Ae(Re)?Re.host:null)||Kt(Re)}function hn(Re){return st(Re)&&wt(Re).position!=="fixed"?Re.offsetParent:null}function un(Re){for(var f=Ve(Re),_=hn(Re);_&<(_)&&wt(_).position==="static";)_=hn(_);return _&&(Qe(_)==="html"||Qe(_)==="body"&&wt(_).position==="static")?f:_||function(T){var W=/firefox/i.test(Xe());if(/Trident/i.test(Xe())&&st(T)&&wt(T).position==="fixed")return null;var re=Mt(T);for(Ae(re)&&(re=re.host);st(re)&&0>["html","body"].indexOf(Qe(re));){var de=wt(re);if(de.transform!=="none"||de.perspective!=="none"||de.contain==="paint"||["transform","perspective"].indexOf(de.willChange)!==-1||W&&de.willChange==="filter"||W&&de.filter&&de.filter!=="none")return re;re=re.parentNode}return null}(Re)||f}function Sr(Re){return 0>["top","bottom"].indexOf(Re)?"y":"x"}function ii(Re,f,_){return Me(Re,Ue(f,_))}function Ii(Re){return Object.assign({},{top:0,right:0,bottom:0,left:0},Re)}function Ni(Re,f){return f.reduce(function(_,T){return _[T]=Re,_},{})}var eo={name:"arrow",enabled:!0,phase:"main",fn:function(Re){var f,_=Re.state,T=Re.name,W=Re.options,re=_.elements.arrow,de=_.modifiersData.popperOffsets,Le=Te(_.placement),Je=Sr(Le),$t=[R,k].indexOf(Le)>=0?"height":"width";if(re&&de){var on=function(Ys,Fa){return Ii(typeof(Ys=typeof Ys=="function"?Ys(Object.assign({},Fa.rects,{placement:Fa.placement})):Ys)!="number"?Ys:Ni(Ys,g))}(W.padding,_),Jn=St(re),br=Je==="y"?B:R,xi=Je==="y"?V:k,Di=_.rects.reference[$t]+_.rects.reference[Je]-de[Je]-_.rects.popper[$t],Do=de[Je]-_.rects.reference[Je],Ao=un(re),Vo=Ao?Je==="y"?Ao.clientHeight||0:Ao.clientWidth||0:0,Lo=Vo/2-Jn[$t]/2+(Di/2-Do/2),co=ii(on[br],Lo,Vo-Jn[$t]-on[xi]);_.modifiersData[T]=((f={})[Je]=co,f.centerOffset=co-Lo,f)}},effect:function(Re){var f=Re.state,_=Re.options.element,T=_===void 0?"[data-popper-arrow]":_;T!=null&&(typeof T!="string"||(T=f.elements.popper.querySelector(T)))&&nt(f.elements.popper,T)&&(f.elements.arrow=T)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ti(Re){return Re.split("-")[1]}var Is={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ns(Re){var f,_=Re.popper,T=Re.popperRect,W=Re.placement,re=Re.variation,de=Re.offsets,Le=Re.position,Je=Re.gpuAcceleration,$t=Re.adaptive,on=Re.roundOffsets,Jn=Re.isFixed,br=de.x,xi=br===void 0?0:br,Di=de.y,Do=Di===void 0?0:Di,Ao=typeof on=="function"?on({x:xi,y:Do}):{x:xi,y:Do};xi=Ao.x,Do=Ao.y;var Vo=de.hasOwnProperty("x"),Lo=de.hasOwnProperty("y"),co=R,Ys=B,Fa=window;if($t){var xl=un(_),cu="clientHeight",$u="clientWidth";xl===Ve(_)&&wt(xl=Kt(_)).position!=="static"&&Le==="absolute"&&(cu="scrollHeight",$u="scrollWidth"),(W===B||(W===R||W===k)&&re===O)&&(Ys=V,Do-=(Jn&&xl===Fa&&Fa.visualViewport?Fa.visualViewport.height:xl[cu])-T.height,Do*=Je?1:-1),(W===R||(W===B||W===V)&&re===O)&&(co=k,xi-=(Jn&&xl===Fa&&Fa.visualViewport?Fa.visualViewport.width:xl[$u])-T.width,xi*=Je?1:-1)}var Lu,sh=Object.assign({position:Le},$t&&Is),_u=on===!0?function(Bc,Nn){var sr=Bc.y,Zr=Nn.devicePixelRatio||1;return{x:Pe(Bc.x*Zr)/Zr||0,y:Pe(sr*Zr)/Zr||0}}({x:xi,y:Do},Ve(_)):{x:xi,y:Do};return xi=_u.x,Do=_u.y,Object.assign({},sh,Je?((Lu={})[Ys]=Lo?"0":"",Lu[co]=Vo?"0":"",Lu.transform=(Fa.devicePixelRatio||1)>1?"translate3d("+xi+"px, "+Do+"px, 0)":"translate("+xi+"px, "+Do+"px)",Lu):((f={})[Ys]=Lo?Do+"px":"",f[co]=Vo?xi+"px":"",f.transform="",f))}var Se={passive:!0},Xi={left:"right",right:"left",bottom:"top",top:"bottom"};function Yi(Re){return Re.replace(/left|right|bottom|top/g,function(f){return Xi[f]})}var fo={start:"end",end:"start"};function di(Re){return Re.replace(/start|end/g,function(f){return fo[f]})}function Fs(Re){var f=Ve(Re);return{scrollLeft:f.pageXOffset,scrollTop:f.pageYOffset}}function Ln(Re){return Xt(Kt(Re)).left+Fs(Re).scrollLeft}function it(Re){var f=wt(Re);return/auto|scroll|overlay|hidden/.test(f.overflow+f.overflowY+f.overflowX)}function Ot(Re){return 0>["html","body","#document"].indexOf(Qe(Re))?st(Re)&&it(Re)?Re:Ot(Mt(Re)):Re.ownerDocument.body}function Ht(Re,f){var _;f===void 0&&(f=[]);var T=Ot(Re),W=T===((_=Re.ownerDocument)==null?void 0:_.body),re=Ve(T),de=W?[re].concat(re.visualViewport||[],it(T)?T:[]):T,Le=f.concat(de);return W?Le:Le.concat(Ht(Mt(de)))}function Pn(Re){return Object.assign({},Re,{left:Re.x,top:Re.y,right:Re.x+Re.width,bottom:Re.y+Re.height})}function fr(Re,f,_){return f===he?Pn(function(T,W){var re=Ve(T),de=Kt(T),Le=re.visualViewport,Je=de.clientWidth,$t=de.clientHeight,on=0,Jn=0;if(Le){Je=Le.width,$t=Le.height;var br=Be();(br||!br&&W==="fixed")&&(on=Le.offsetLeft,Jn=Le.offsetTop)}return{width:Je,height:$t,x:on+Ln(T),y:Jn}}(Re,_)):pt(f)?function(T,W){var re=Xt(T,!1,W==="fixed");return re.top=re.top+T.clientTop,re.left=re.left+T.clientLeft,re.bottom=re.top+T.clientHeight,re.right=re.left+T.clientWidth,re.width=T.clientWidth,re.height=T.clientHeight,re.x=re.left,re.y=re.top,re}(f,_):Pn(function(T){var W,re=Kt(T),de=Fs(T),Le=(W=T.ownerDocument)==null?void 0:W.body,Je=Me(re.scrollWidth,re.clientWidth,Le?Le.scrollWidth:0,Le?Le.clientWidth:0),$t=Me(re.scrollHeight,re.clientHeight,Le?Le.scrollHeight:0,Le?Le.clientHeight:0),on=-de.scrollLeft+Ln(T),Jn=-de.scrollTop;return wt(Le||re).direction==="rtl"&&(on+=Me(re.clientWidth,Le?Le.clientWidth:0)-Je),{width:Je,height:$t,x:on,y:Jn}}(Kt(Re)))}function In(Re,f,_,T){var W=f==="clippingParents"?function(Le){var Je=Ht(Mt(Le)),$t=["absolute","fixed"].indexOf(wt(Le).position)>=0&&st(Le)?un(Le):Le;return pt($t)?Je.filter(function(on){return pt(on)&&nt(on,$t)&&Qe(on)!=="body"}):[]}(Re):[].concat(f),re=[].concat(W,[_]),de=re.reduce(function(Le,Je){var $t=fr(Re,Je,T);return Le.top=Me($t.top,Le.top),Le.right=Ue($t.right,Le.right),Le.bottom=Ue($t.bottom,Le.bottom),Le.left=Me($t.left,Le.left),Le},fr(Re,re[0],T));return de.width=de.right-de.left,de.height=de.bottom-de.top,de.x=de.left,de.y=de.top,de}function mn(Re){var f,_=Re.reference,T=Re.element,W=Re.placement,re=W?Te(W):null,de=W?ti(W):null,Le=_.x+_.width/2-T.width/2,Je=_.y+_.height/2-T.height/2;switch(re){case B:f={x:Le,y:_.y-T.height};break;case V:f={x:Le,y:_.y+_.height};break;case k:f={x:_.x+_.width,y:Je};break;case R:f={x:_.x-T.width,y:Je};break;default:f={x:_.x,y:_.y}}var $t=re?Sr(re):null;if($t!=null){var on=$t==="y"?"height":"width";switch(de){case A:f[$t]=f[$t]-(_[on]/2-T[on]/2);break;case O:f[$t]=f[$t]+(_[on]/2-T[on]/2)}}return f}function Ut(Re,f){f===void 0&&(f={});var _=f.placement,T=_===void 0?Re.placement:_,W=f.strategy,re=W===void 0?Re.strategy:W,de=f.boundary,Le=de===void 0?K:de,Je=f.rootBoundary,$t=Je===void 0?he:Je,on=f.elementContext,Jn=on===void 0?ae:on,br=f.altBoundary,xi=br!==void 0&&br,Di=f.padding,Do=Di===void 0?0:Di,Ao=Ii(typeof Do!="number"?Do:Ni(Do,g)),Vo=Re.rects.popper,Lo=Re.elements[xi?Jn===ae?fe:ae:Jn],co=In(pt(Lo)?Lo:Lo.contextElement||Kt(Re.elements.popper),Le,$t,re),Ys=Xt(Re.elements.reference),Fa=mn({reference:Ys,element:Vo,strategy:"absolute",placement:T}),xl=Pn(Object.assign({},Vo,Fa)),cu=Jn===ae?xl:Ys,$u={top:co.top-cu.top+Ao.top,bottom:cu.bottom-co.bottom+Ao.bottom,left:co.left-cu.left+Ao.left,right:cu.right-co.right+Ao.right},Lu=Re.modifiersData.offset;if(Jn===ae&&Lu){var sh=Lu[T];Object.keys($u).forEach(function(_u){var Bc=0>[k,V].indexOf(_u)?-1:1;$u[_u]+=sh[0>[B,V].indexOf(_u)?"x":"y"]*Bc})}return $u}function en(Re,f){f===void 0&&(f={});var _=f.boundary,T=f.rootBoundary,W=f.padding,re=f.flipVariations,de=f.allowedAutoPlacements,Le=de===void 0?ye:de,Je=ti(f.placement),$t=Je?re?xe:xe.filter(function(br){return ti(br)===Je}):g,on=$t.filter(function(br){return Le.indexOf(br)>=0});on.length===0&&(on=$t);var Jn=on.reduce(function(br,xi){return br[xi]=Ut(Re,{placement:xi,boundary:_,rootBoundary:T,padding:W})[Te(xi)],br},{});return Object.keys(Jn).sort(function(br,xi){return Jn[br]-Jn[xi]})}var Cn={name:"flip",enabled:!0,phase:"main",fn:function(Re){var f=Re.state,_=Re.options,T=Re.name;if(!f.modifiersData[T]._skip){for(var W=_.mainAxis,re=W===void 0||W,de=_.altAxis,Le=de===void 0||de,Je=_.fallbackPlacements,$t=_.padding,on=_.boundary,Jn=_.rootBoundary,br=_.altBoundary,xi=_.flipVariations,Di=xi===void 0||xi,Do=_.allowedAutoPlacements,Ao=f.options.placement,Vo=Te(Ao),Lo=Je||(Vo===Ao||!Di?[Yi(Ao)]:function(ll){if(Te(ll)===C)return[];var tu=Yi(ll);return[di(ll),tu,di(tu)]}(Ao)),co=[Ao].concat(Lo).reduce(function(ll,tu){return ll.concat(Te(tu)===C?en(f,{placement:tu,boundary:on,rootBoundary:Jn,padding:$t,flipVariations:Di,allowedAutoPlacements:Do}):tu)},[]),Ys=f.rects.reference,Fa=f.rects.popper,xl=new Map,cu=!0,$u=co[0],Lu=0;co.length>Lu;Lu++){var sh=co[Lu],_u=Te(sh),Bc=ti(sh)===A,Nn=[B,V].indexOf(_u)>=0,sr=Nn?"width":"height",Zr=Ut(f,{placement:sh,boundary:on,rootBoundary:Jn,altBoundary:br,padding:$t}),hi=Nn?Bc?k:R:Bc?V:B;Ys[sr]>Fa[sr]&&(hi=Yi(hi));var oo=Yi(hi),na=[];if(re&&na.push(0>=Zr[_u]),Le&&na.push(0>=Zr[hi],0>=Zr[oo]),na.every(function(ll){return ll})){$u=sh,cu=!1;break}xl.set(sh,na)}if(cu)for(var rl=function(ll){var tu=co.find(function(Rs){var Cc=xl.get(Rs);if(Cc)return Cc.slice(0,ll).every(function(sd){return sd})});if(tu)return $u=tu,"break"},$s=Di?3:1;$s>0&&rl($s)!=="break";$s--);f.placement!==$u&&(f.modifiersData[T]._skip=!0,f.placement=$u,f.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function lr(Re,f,_){return _===void 0&&(_={x:0,y:0}),{top:Re.top-f.height-_.y,right:Re.right-f.width+_.x,bottom:Re.bottom-f.height+_.y,left:Re.left-f.width-_.x}}function pr(Re){return[B,k,V,R].some(function(f){return Re[f]>=0})}var an={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(Re){var f=Re.state,_=Re.name,T=Re.options.offset,W=T===void 0?[0,0]:T,re=ye.reduce(function(Je,$t){return Je[$t]=function(on,Jn,br){var xi=Te(on),Di=0>[R,B].indexOf(xi)?1:-1,Do=typeof br=="function"?br(Object.assign({},Jn,{placement:on})):br,Ao=Do[0],Vo=Do[1];return Ao=Ao||0,Vo=(Vo||0)*Di,0>[R,k].indexOf(xi)?{x:Ao,y:Vo}:{x:Vo,y:Ao}}($t,f.rects,W),Je},{}),de=re[f.placement],Le=de.y;f.modifiersData.popperOffsets!=null&&(f.modifiersData.popperOffsets.x+=de.x,f.modifiersData.popperOffsets.y+=Le),f.modifiersData[_]=re}},wr={name:"preventOverflow",enabled:!0,phase:"main",fn:function(Re){var f=Re.state,_=Re.options,T=Re.name,W=_.mainAxis,re=W===void 0||W,de=_.altAxis,Le=de!==void 0&&de,Je=_.tether,$t=Je===void 0||Je,on=_.tetherOffset,Jn=on===void 0?0:on,br=Ut(f,{boundary:_.boundary,rootBoundary:_.rootBoundary,padding:_.padding,altBoundary:_.altBoundary}),xi=Te(f.placement),Di=ti(f.placement),Do=!Di,Ao=Sr(xi),Vo=Ao==="x"?"y":"x",Lo=f.modifiersData.popperOffsets,co=f.rects.reference,Ys=f.rects.popper,Fa=typeof Jn=="function"?Jn(Object.assign({},f.rects,{placement:f.placement})):Jn,xl=typeof Fa=="number"?{mainAxis:Fa,altAxis:Fa}:Object.assign({mainAxis:0,altAxis:0},Fa),cu=f.modifiersData.offset?f.modifiersData.offset[f.placement]:null,$u={x:0,y:0};if(Lo){if(re){var Lu,sh=Ao==="y"?B:R,_u=Ao==="y"?V:k,Bc=Ao==="y"?"height":"width",Nn=Lo[Ao],sr=Nn+br[sh],Zr=Nn-br[_u],hi=$t?-Ys[Bc]/2:0,oo=Di===A?co[Bc]:Ys[Bc],na=Di===A?-Ys[Bc]:-co[Bc],rl=f.elements.arrow,$s=$t&&rl?St(rl):{width:0,height:0},ll=f.modifiersData["arrow#persistent"]?f.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},tu=ll[sh],Rs=ll[_u],Cc=ii(0,co[Bc],$s[Bc]),sd=Do?co[Bc]/2-hi-Cc-tu-xl.mainAxis:oo-Cc-tu-xl.mainAxis,Rh=Do?-co[Bc]/2+hi+Cc+Rs+xl.mainAxis:na+Cc+Rs+xl.mainAxis,Ch=f.elements.arrow&&un(f.elements.arrow),ad=(Lu=cu==null?void 0:cu[Ao])!=null?Lu:0,up=Nn+Rh-ad,Pp=ii($t?Ue(sr,Nn+sd-ad-(Ch?Ao==="y"?Ch.clientTop||0:Ch.clientLeft||0:0)):sr,Nn,$t?Me(Zr,up):Zr);Lo[Ao]=Pp,$u[Ao]=Pp-Nn}if(Le){var wd,Fd=Lo[Vo],as=Vo==="y"?"height":"width",Ll=Fd+br[Ao==="x"?B:R],ff=Fd-br[Ao==="x"?V:k],pf=[B,R].indexOf(xi)!==-1,Cf=(wd=cu==null?void 0:cu[Vo])!=null?wd:0,vg=pf?Ll:Fd-co[as]-Ys[as]-Cf+xl.altAxis,Sf=pf?Fd+co[as]+Ys[as]-Cf-xl.altAxis:ff,iu=$t&&pf?function(Ih,rf,Uc){var Fh=ii(Ih,rf,Uc);return Fh>Uc?Uc:Fh}(vg,Fd,Sf):ii($t?vg:Ll,Fd,$t?Sf:ff);Lo[Vo]=iu,$u[Vo]=iu-Fd}f.modifiersData[T]=$u}},requiresIfExists:["offset"]};function Cr(Re,f,_){_===void 0&&(_=!1);var T,W,re=st(f),de=st(f)&&function(Jn){var br=Jn.getBoundingClientRect(),xi=Pe(br.width)/Jn.offsetWidth||1,Di=Pe(br.height)/Jn.offsetHeight||1;return xi!==1||Di!==1}(f),Le=Kt(f),Je=Xt(Re,de,_),$t={scrollLeft:0,scrollTop:0},on={x:0,y:0};return(re||!re&&!_)&&((Qe(f)!=="body"||it(Le))&&($t=(T=f)!==Ve(T)&&st(T)?{scrollLeft:(W=T).scrollLeft,scrollTop:W.scrollTop}:Fs(T)),st(f)?((on=Xt(f,!0)).x+=f.clientLeft,on.y+=f.clientTop):Le&&(on.x=Ln(Le))),{x:Je.left+$t.scrollLeft-on.x,y:Je.top+$t.scrollTop-on.y,width:Je.width,height:Je.height}}function Ei(Re){var f=new Map,_=new Set,T=[];function W(re){_.add(re.name),[].concat(re.requires||[],re.requiresIfExists||[]).forEach(function(de){if(!_.has(de)){var Le=f.get(de);Le&&W(Le)}}),T.push(re)}return Re.forEach(function(re){f.set(re.name,re)}),Re.forEach(function(re){_.has(re.name)||W(re)}),T}var vo={placement:"bottom",modifiers:[],strategy:"absolute"};function kr(){for(var Re=arguments.length,f=Array(Re),_=0;Re>_;_++)f[_]=arguments[_];return!f.some(function(T){return!(T&&typeof T.getBoundingClientRect=="function")})}function ro(Re){Re===void 0&&(Re={});var f=Re.defaultModifiers,_=f===void 0?[]:f,T=Re.defaultOptions,W=T===void 0?vo:T;return function(re,de,Le){Le===void 0&&(Le=W);var Je,$t,on={placement:"bottom",orderedModifiers:[],options:Object.assign({},vo,W),modifiersData:{},elements:{reference:re,popper:de},attributes:{},styles:{}},Jn=[],br=!1,xi={state:on,setOptions:function(Do){var Ao=typeof Do=="function"?Do(on.options):Do;Di(),on.options=Object.assign({},W,on.options,Ao),on.scrollParents={reference:pt(re)?Ht(re):re.contextElement?Ht(re.contextElement):[],popper:Ht(de)};var Vo,Lo,co=function(Ys){var Fa=Ei(Ys);return be.reduce(function(xl,cu){return xl.concat(Fa.filter(function($u){return $u.phase===cu}))},[])}((Vo=[].concat(_,on.options.modifiers),Lo=Vo.reduce(function(Ys,Fa){var xl=Ys[Fa.name];return Ys[Fa.name]=xl?Object.assign({},xl,Fa,{options:Object.assign({},xl.options,Fa.options),data:Object.assign({},xl.data,Fa.data)}):Fa,Ys},{}),Object.keys(Lo).map(function(Ys){return Lo[Ys]})));return on.orderedModifiers=co.filter(function(Ys){return Ys.enabled}),on.orderedModifiers.forEach(function(Ys){var Fa=Ys.options,xl=Ys.effect;if(typeof xl=="function"){var cu=xl({state:on,name:Ys.name,instance:xi,options:Fa===void 0?{}:Fa});Jn.push(cu||function(){})}}),xi.update()},forceUpdate:function(){if(!br){var Do=on.elements,Ao=Do.reference,Vo=Do.popper;if(kr(Ao,Vo)){on.rects={reference:Cr(Ao,un(Vo),on.options.strategy==="fixed"),popper:St(Vo)},on.reset=!1,on.placement=on.options.placement,on.orderedModifiers.forEach(function(xl){return on.modifiersData[xl.name]=Object.assign({},xl.data)});for(var Lo=0;on.orderedModifiers.length>Lo;Lo++)if(on.reset!==!0){var co=on.orderedModifiers[Lo],Ys=co.fn,Fa=co.options;typeof Ys=="function"&&(on=Ys({state:on,options:Fa===void 0?{}:Fa,name:co.name,instance:xi})||on)}else on.reset=!1,Lo=-1}}},update:(Je=function(){return new Promise(function(Do){xi.forceUpdate(),Do(on)})},function(){return $t||($t=new Promise(function(Do){Promise.resolve().then(function(){$t=void 0,Do(Je())})})),$t}),destroy:function(){Di(),br=!0}};if(!kr(re,de))return xi;function Di(){Jn.forEach(function(Do){return Do()}),Jn=[]}return xi.setOptions(Le).then(function(Do){!br&&Le.onFirstUpdate&&Le.onFirstUpdate(Do)}),xi}}var qi=ro({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(Re){var f=Re.state,_=Re.instance,T=Re.options,W=T.scroll,re=W===void 0||W,de=T.resize,Le=de===void 0||de,Je=Ve(f.elements.popper),$t=[].concat(f.scrollParents.reference,f.scrollParents.popper);return re&&$t.forEach(function(on){on.addEventListener("scroll",_.update,Se)}),Le&&Je.addEventListener("resize",_.update,Se),function(){re&&$t.forEach(function(on){on.removeEventListener("scroll",_.update,Se)}),Le&&Je.removeEventListener("resize",_.update,Se)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(Re){var f=Re.state;f.modifiersData[Re.name]=mn({reference:f.rects.reference,element:f.rects.popper,strategy:"absolute",placement:f.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(Re){var f=Re.state,_=Re.options,T=_.gpuAcceleration,W=T===void 0||T,re=_.adaptive,de=re===void 0||re,Le=_.roundOffsets,Je=Le===void 0||Le,$t={placement:Te(f.placement),variation:ti(f.placement),popper:f.elements.popper,popperRect:f.rects.popper,gpuAcceleration:W,isFixed:f.options.strategy==="fixed"};f.modifiersData.popperOffsets!=null&&(f.styles.popper=Object.assign({},f.styles.popper,Ns(Object.assign({},$t,{offsets:f.modifiersData.popperOffsets,position:f.options.strategy,adaptive:de,roundOffsets:Je})))),f.modifiersData.arrow!=null&&(f.styles.arrow=Object.assign({},f.styles.arrow,Ns(Object.assign({},$t,{offsets:f.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Je})))),f.attributes.popper=Object.assign({},f.attributes.popper,{"data-popper-placement":f.placement})},data:{}},De,an,Cn,wr,eo,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(Re){var f=Re.state,_=Re.name,T=f.rects.reference,W=f.rects.popper,re=f.modifiersData.preventOverflow,de=Ut(f,{elementContext:"reference"}),Le=Ut(f,{altBoundary:!0}),Je=lr(de,T),$t=lr(Le,W,re),on=pr(Je),Jn=pr($t);f.modifiersData[_]={referenceClippingOffsets:Je,popperEscapeOffsets:$t,isReferenceHidden:on,hasPopperEscaped:Jn},f.attributes.popper=Object.assign({},f.attributes.popper,{"data-popper-reference-hidden":on,"data-popper-escaped":Jn})}}]}),bo="tippy-content",xn="tippy-backdrop",pn="tippy-arrow",Dt="tippy-svg-arrow",Zt={passive:!0,capture:!0},vn=function(){return document.body};function $n(Re,f,_){if(Array.isArray(Re)){var T=Re[f];return T==null?Array.isArray(_)?_[f]:_:T}return Re}function Ar(Re,f){var _={}.toString.call(Re);return _.indexOf("[object")===0&&_.indexOf(f+"]")>-1}function Dr(Re,f){return typeof Re=="function"?Re.apply(void 0,f):Re}function dr(Re,f){return f===0?Re:function(T){clearTimeout(_),_=setTimeout(function(){Re(T)},f)};var _}function Yt(Re){return[].concat(Re)}function wn(Re,f){Re.indexOf(f)===-1&&Re.push(f)}function Qn(Re){return[].slice.call(Re)}function Mr(Re){return Object.keys(Re).reduce(function(f,_){return Re[_]!==void 0&&(f[_]=Re[_]),f},{})}function Wi(){return document.createElement("div")}function Dn(Re){return["Element","Fragment"].some(function(f){return Ar(Re,f)})}function Kn(Re){return Ar(Re,"MouseEvent")}function nr(Re){return Dn(Re)?[Re]:function(f){return Ar(f,"NodeList")}(Re)?Qn(Re):Array.isArray(Re)?Re:Qn(document.querySelectorAll(Re))}function qr(Re,f){Re.forEach(function(_){_&&(_.style.transitionDuration=f+"ms")})}function yi(Re,f){Re.forEach(function(_){_&&_.setAttribute("data-state",f)})}function Hr(Re){var f,_=Yt(Re)[0];return _!=null&&(f=_.ownerDocument)!=null&&f.body?_.ownerDocument:document}function ci(Re,f,_){var T=f+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(W){Re[T](W,_)})}function gi(Re,f){for(var _=f;_;){var T;if(Re.contains(_))return!0;_=_.getRootNode==null||(T=_.getRootNode())==null?void 0:T.host}return!1}var mi={isTouch:!1},Bi=0;function Nr(){mi.isTouch||(mi.isTouch=!0,window.performance&&document.addEventListener("mousemove",Kr))}function Kr(){var Re=performance.now();20>Re-Bi&&(mi.isTouch=!1,document.removeEventListener("mousemove",Kr)),Bi=Re}function Qi(){var Re,f=document.activeElement;(Re=f)&&Re._tippy&&Re._tippy.reference===Re&&f.blur&&!f._tippy.state.isVisible&&f.blur()}var ns=typeof window!="undefined"&&typeof document!="undefined"&&!!window.msCrypto,Ur=Object.assign({appendTo:vn,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),gs=Object.keys(Ur);function Gr(Re){var f=(Re.plugins||[]).reduce(function(_,T){var W,re=T.name;return re&&(_[re]=Re[re]!==void 0?Re[re]:(W=Ur[re])!=null?W:T.defaultValue),_},{});return Object.assign({},Re,f)}function ni(Re,f){var _=Object.assign({},f,{content:Dr(f.content,[Re])},f.ignoreAttributes?{}:function(T,W){return(W?Object.keys(Gr(Object.assign({},Ur,{plugins:W}))):gs).reduce(function(re,de){var Le=(T.getAttribute("data-tippy-"+de)||"").trim();if(!Le)return re;if(de==="content")re[de]=Le;else try{re[de]=JSON.parse(Le)}catch(Je){re[de]=Le}return re},{})}(Re,f.plugins));return _.aria=Object.assign({},Ur.aria,_.aria),_.aria={expanded:_.aria.expanded==="auto"?f.interactive:_.aria.expanded,content:_.aria.content==="auto"?f.interactive?null:"describedby":_.aria.content},_}var is=function(){return"innerHTML"};function Jr(Re,f){Re[is()]=f}function bn(Re){var f=Wi();return Re===!0?f.className=pn:(f.className=Dt,Dn(Re)?f.appendChild(Re):Jr(f,Re)),f}function Or(Re,f){Dn(f.content)?(Jr(Re,""),Re.appendChild(f.content)):typeof f.content!="function"&&(f.allowHTML?Jr(Re,f.content):Re.textContent=f.content)}function qo(Re){var f=Re.firstElementChild,_=Qn(f.children);return{box:f,content:_.find(function(T){return T.classList.contains(bo)}),arrow:_.find(function(T){return T.classList.contains(pn)||T.classList.contains(Dt)}),backdrop:_.find(function(T){return T.classList.contains(xn)})}}function Mo(Re){var f=Wi(),_=Wi();_.className="tippy-box",_.setAttribute("data-state","hidden"),_.setAttribute("tabindex","-1");var T=Wi();function W(re,de){var Le=qo(f),Je=Le.box,$t=Le.content,on=Le.arrow;de.theme?Je.setAttribute("data-theme",de.theme):Je.removeAttribute("data-theme"),typeof de.animation=="string"?Je.setAttribute("data-animation",de.animation):Je.removeAttribute("data-animation"),de.inertia?Je.setAttribute("data-inertia",""):Je.removeAttribute("data-inertia"),Je.style.maxWidth=typeof de.maxWidth=="number"?de.maxWidth+"px":de.maxWidth,de.role?Je.setAttribute("role",de.role):Je.removeAttribute("role"),re.content===de.content&&re.allowHTML===de.allowHTML||Or($t,Re.props),de.arrow?on?re.arrow!==de.arrow&&(Je.removeChild(on),Je.appendChild(bn(de.arrow))):Je.appendChild(bn(de.arrow)):on&&Je.removeChild(on)}return T.className=bo,T.setAttribute("data-state","hidden"),Or(T,Re.props),f.appendChild(_),_.appendChild(T),W(Re.props,Re.props),{popper:f,onUpdate:W}}Mo.$$tippy=!0;var vs=1,Na=[],ho=[];function aa(Re,f){var _,T,W,re,de,Le,Je,$t,on=ni(Re,Object.assign({},Ur,Gr(Mr(f)))),Jn=!1,br=!1,xi=!1,Di=!1,Do=[],Ao=dr(wd,on.interactiveDebounce),Vo=vs++,Lo=($t=on.plugins).filter(function(iu,Ih){return $t.indexOf(iu)===Ih}),co={id:Vo,reference:Re,popper:Wi(),popperInstance:null,props:on,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:Lo,clearDelayTimeouts:function(){clearTimeout(_),clearTimeout(T),cancelAnimationFrame(W)},setProps:function(iu){if(!co.state.isDestroyed){oo("onBeforeUpdate",[co,iu]),up();var Ih=co.props,rf=ni(Re,Object.assign({},Ih,Mr(iu),{ignoreAttributes:!0}));co.props=rf,ad(),Ih.interactiveDebounce!==rf.interactiveDebounce&&($s(),Ao=dr(wd,rf.interactiveDebounce)),Ih.triggerTarget&&!rf.triggerTarget?Yt(Ih.triggerTarget).forEach(function(Uc){Uc.removeAttribute("aria-expanded")}):rf.triggerTarget&&Re.removeAttribute("aria-expanded"),rl(),hi(),xl&&xl(Ih,rf),co.popperInstance&&(ff(),Cf().forEach(function(Uc){requestAnimationFrame(Uc._tippy.popperInstance.forceUpdate)})),oo("onAfterUpdate",[co,iu])}},setContent:function(iu){co.setProps({content:iu})},show:function(){var iu=co.state.isVisible,Ih=co.state.isDestroyed,rf=!co.state.isEnabled,Uc=mi.isTouch&&!co.props.touch,Fh=$n(co.props.duration,0,Ur.duration);if(!(iu||Ih||rf||Uc)&&!Bc().hasAttribute("disabled")&&(oo("onShow",[co],!1),co.props.onShow(co)!==!1)){if(co.state.isVisible=!0,_u()&&(Fa.style.visibility="visible"),hi(),Cc(),co.state.isMounted||(Fa.style.transition="none"),_u()){var H=sr();qr([H.box,H.content],0)}Le=function(){var F;if(co.state.isVisible&&!Di){if(Di=!0,Fa.style.transition=co.props.moveTransition,_u()&&co.props.animation){var te=sr(),ve=te.box,We=te.content;qr([ve,We],Fh),yi([ve,We],"visible")}na(),rl(),wn(ho,co),(F=co.popperInstance)==null||F.forceUpdate(),oo("onMount",[co]),co.props.animation&&_u()&&function(bt,mt){Rh(bt,mt)}(Fh,function(){co.state.isShown=!0,oo("onShown",[co])})}},function(){var F,te=co.props.appendTo,ve=Bc();F=co.props.interactive&&te===vn||te==="parent"?ve.parentNode:Dr(te,[ve]),F.contains(Fa)||F.appendChild(Fa),co.state.isMounted=!0,ff()}()}},hide:function(){var iu=!co.state.isVisible,Ih=co.state.isDestroyed,rf=!co.state.isEnabled,Uc=$n(co.props.duration,1,Ur.duration);if(!(iu||Ih||rf)&&(oo("onHide",[co],!1),co.props.onHide(co)!==!1)){if(co.state.isVisible=!1,co.state.isShown=!1,Di=!1,Jn=!1,_u()&&(Fa.style.visibility="hidden"),$s(),sd(),hi(!0),_u()){var Fh=sr(),H=Fh.box,F=Fh.content;co.props.animation&&(qr([H,F],Uc),yi([H,F],"hidden"))}na(),rl(),co.props.animation?_u()&&function(te,ve){Rh(te,function(){!co.state.isVisible&&Fa.parentNode&&Fa.parentNode.contains(Fa)&&ve()})}(Uc,co.unmount):co.unmount()}},hideWithInteractivity:function(iu){Nn().addEventListener("mousemove",Ao),wn(Na,Ao),Ao(iu)},enable:function(){co.state.isEnabled=!0},disable:function(){co.hide(),co.state.isEnabled=!1},unmount:function(){co.state.isVisible&&co.hide(),co.state.isMounted&&(pf(),Cf().forEach(function(iu){iu._tippy.unmount()}),Fa.parentNode&&Fa.parentNode.removeChild(Fa),ho=ho.filter(function(iu){return iu!==co}),co.state.isMounted=!1,oo("onHidden",[co]))},destroy:function(){co.state.isDestroyed||(co.clearDelayTimeouts(),co.unmount(),up(),delete Re._tippy,co.state.isDestroyed=!0,oo("onDestroy",[co]))}};if(!on.render)return co;var Ys=on.render(co),Fa=Ys.popper,xl=Ys.onUpdate;Fa.setAttribute("data-tippy-root",""),Fa.id="tippy-"+co.id,co.popper=Fa,Re._tippy=co,Fa._tippy=co;var cu=Lo.map(function(iu){return iu.fn(co)}),$u=Re.hasAttribute("aria-expanded");return ad(),rl(),hi(),oo("onCreate",[co]),on.showOnCreate&&vg(),Fa.addEventListener("mouseenter",function(){co.props.interactive&&co.state.isVisible&&co.clearDelayTimeouts()}),Fa.addEventListener("mouseleave",function(){co.props.interactive&&co.props.trigger.indexOf("mouseenter")>=0&&Nn().addEventListener("mousemove",Ao)}),co;function Lu(){var iu=co.props.touch;return Array.isArray(iu)?iu:[iu,0]}function sh(){return Lu()[0]==="hold"}function _u(){var iu;return!((iu=co.props.render)==null||!iu.$$tippy)}function Bc(){return Je||Re}function Nn(){var iu=Bc().parentNode;return iu?Hr(iu):document}function sr(){return qo(Fa)}function Zr(iu){return co.state.isMounted&&!co.state.isVisible||mi.isTouch||re&&re.type==="focus"?0:$n(co.props.delay,iu?0:1,Ur.delay)}function hi(iu){iu===void 0&&(iu=!1),Fa.style.pointerEvents=co.props.interactive&&!iu?"":"none",Fa.style.zIndex=""+co.props.zIndex}function oo(iu,Ih,rf){var Uc;rf===void 0&&(rf=!0),cu.forEach(function(Fh){Fh[iu]&&Fh[iu].apply(Fh,Ih)}),rf&&(Uc=co.props)[iu].apply(Uc,Ih)}function na(){var iu=co.props.aria;if(iu.content){var Ih="aria-"+iu.content,rf=Fa.id;Yt(co.props.triggerTarget||Re).forEach(function(Uc){var Fh=Uc.getAttribute(Ih);if(co.state.isVisible)Uc.setAttribute(Ih,Fh?Fh+" "+rf:rf);else{var H=Fh&&Fh.replace(rf,"").trim();H?Uc.setAttribute(Ih,H):Uc.removeAttribute(Ih)}})}}function rl(){!$u&&co.props.aria.expanded&&Yt(co.props.triggerTarget||Re).forEach(function(iu){co.props.interactive?iu.setAttribute("aria-expanded",co.state.isVisible&&iu===Bc()?"true":"false"):iu.removeAttribute("aria-expanded")})}function $s(){Nn().removeEventListener("mousemove",Ao),Na=Na.filter(function(iu){return iu!==Ao})}function ll(iu){if(!mi.isTouch||!xi&&iu.type!=="mousedown"){var Ih=iu.composedPath&&iu.composedPath()[0]||iu.target;if(!co.props.interactive||!gi(Fa,Ih)){if(Yt(co.props.triggerTarget||Re).some(function(rf){return gi(rf,Ih)})){if(mi.isTouch||co.state.isVisible&&co.props.trigger.indexOf("click")>=0)return}else oo("onClickOutside",[co,iu]);co.props.hideOnClick===!0&&(co.clearDelayTimeouts(),co.hide(),br=!0,setTimeout(function(){br=!1}),co.state.isMounted||sd())}}}function tu(){xi=!0}function Rs(){xi=!1}function Cc(){var iu=Nn();iu.addEventListener("mousedown",ll,!0),iu.addEventListener("touchend",ll,Zt),iu.addEventListener("touchstart",Rs,Zt),iu.addEventListener("touchmove",tu,Zt)}function sd(){var iu=Nn();iu.removeEventListener("mousedown",ll,!0),iu.removeEventListener("touchend",ll,Zt),iu.removeEventListener("touchstart",Rs,Zt),iu.removeEventListener("touchmove",tu,Zt)}function Rh(iu,Ih){var rf=sr().box;function Uc(Fh){Fh.target===rf&&(ci(rf,"remove",Uc),Ih())}if(iu===0)return Ih();ci(rf,"remove",de),ci(rf,"add",Uc),de=Uc}function Ch(iu,Ih,rf){rf===void 0&&(rf=!1),Yt(co.props.triggerTarget||Re).forEach(function(Uc){Uc.addEventListener(iu,Ih,rf),Do.push({node:Uc,eventType:iu,handler:Ih,options:rf})})}function ad(){var iu;sh()&&(Ch("touchstart",Pp,{passive:!0}),Ch("touchend",Fd,{passive:!0})),(iu=co.props.trigger,iu.split(/\s+/).filter(Boolean)).forEach(function(Ih){if(Ih!=="manual")switch(Ch(Ih,Pp),Ih){case"mouseenter":Ch("mouseleave",Fd);break;case"focus":Ch(ns?"focusout":"blur",as);break;case"focusin":Ch("focusout",as)}})}function up(){Do.forEach(function(iu){iu.node.removeEventListener(iu.eventType,iu.handler,iu.options)}),Do=[]}function Pp(iu){var Ih,rf=!1;if(co.state.isEnabled&&!Ll(iu)&&!br){var Uc=((Ih=re)==null?void 0:Ih.type)==="focus";re=iu,Je=iu.currentTarget,rl(),!co.state.isVisible&&Kn(iu)&&Na.forEach(function(Fh){return Fh(iu)}),iu.type==="click"&&(0>co.props.trigger.indexOf("mouseenter")||Jn)&&co.props.hideOnClick!==!1&&co.state.isVisible?rf=!0:vg(iu),iu.type==="click"&&(Jn=!rf),rf&&!Uc&&Sf(iu)}}function wd(iu){var Ih=iu.target,rf=Bc().contains(Ih)||Fa.contains(Ih);if(iu.type!=="mousemove"||!rf){var Uc=Cf().concat(Fa).map(function(Fh){var H,F=(H=Fh._tippy.popperInstance)==null?void 0:H.state;return F?{popperRect:Fh.getBoundingClientRect(),popperState:F,props:on}:null}).filter(Boolean);(function(Fh,H){var F=H.clientX,te=H.clientY;return Fh.every(function(ve){var We=ve.popperRect,bt=ve.popperState,mt=ve.props.interactiveBorder,Qt=bt.placement.split("-")[0],En=bt.modifiersData.offset;return!En||We.top-te+(Qt==="bottom"?En.top.y:0)>mt||te-We.bottom-(Qt==="top"?En.bottom.y:0)>mt||We.left-F+(Qt==="right"?En.left.x:0)>mt||F-We.right-(Qt==="left"?En.right.x:0)>mt})})(Uc,iu)&&($s(),Sf(iu))}}function Fd(iu){Ll(iu)||co.props.trigger.indexOf("click")>=0&&Jn||(co.props.interactive?co.hideWithInteractivity(iu):Sf(iu))}function as(iu){0>co.props.trigger.indexOf("focusin")&&iu.target!==Bc()||co.props.interactive&&iu.relatedTarget&&Fa.contains(iu.relatedTarget)||Sf(iu)}function Ll(iu){return!!mi.isTouch&&sh()!==iu.type.indexOf("touch")>=0}function ff(){pf();var iu=co.props,Ih=iu.popperOptions,rf=iu.placement,Uc=iu.offset,Fh=iu.getReferenceClientRect,H=iu.moveTransition,F=_u()?qo(Fa).arrow:null,te=Fh?{getBoundingClientRect:Fh,contextElement:Fh.contextElement||Bc()}:Re,ve={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(bt){var mt=bt.state;if(_u()){var Qt=sr().box;["placement","reference-hidden","escaped"].forEach(function(En){En==="placement"?Qt.setAttribute("data-placement",mt.placement):mt.attributes.popper["data-popper-"+En]?Qt.setAttribute("data-"+En,""):Qt.removeAttribute("data-"+En)}),mt.attributes.popper={}}}},We=[{name:"offset",options:{offset:Uc}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!H}},ve];_u()&&F&&We.push({name:"arrow",options:{element:F,padding:3}}),We.push.apply(We,(Ih==null?void 0:Ih.modifiers)||[]),co.popperInstance=qi(te,Fa,Object.assign({},Ih,{placement:rf,onFirstUpdate:Le,modifiers:We}))}function pf(){co.popperInstance&&(co.popperInstance.destroy(),co.popperInstance=null)}function Cf(){return Qn(Fa.querySelectorAll("[data-tippy-root]"))}function vg(iu){co.clearDelayTimeouts(),iu&&oo("onTrigger",[co,iu]),Cc();var Ih=Zr(!0),rf=Lu(),Uc=rf[1];mi.isTouch&&rf[0]==="hold"&&Uc&&(Ih=Uc),Ih?_=setTimeout(function(){co.show()},Ih):co.show()}function Sf(iu){if(co.clearDelayTimeouts(),oo("onUntrigger",[co,iu]),co.state.isVisible){if(0>co.props.trigger.indexOf("mouseenter")||0>co.props.trigger.indexOf("click")||0>["mouseleave","mousemove"].indexOf(iu.type)||!Jn){var Ih=Zr(!1);Ih?T=setTimeout(function(){co.state.isVisible&&co.hide()},Ih):W=requestAnimationFrame(function(){co.hide()})}}else sd()}}function Ka(Re,f){f===void 0&&(f={});var _=Ur.plugins.concat(f.plugins||[]);document.addEventListener("touchstart",Nr,Zt),window.addEventListener("blur",Qi);var T=Object.assign({},f,{plugins:_}),W=nr(Re).reduce(function(re,de){var Le=de&&aa(de,T);return Le&&re.push(Le),re},[]);return Dn(Re)?W[0]:W}Ka.defaultProps=Ur,Ka.setDefaultProps=function(Re){Object.keys(Re).forEach(function(f){Ur[f]=Re[f]})},Ka.currentInput=mi,Object.assign({},De,{effect:function(Re){var f=Re.state,_={popper:{position:f.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(f.elements.popper.style,_.popper),f.styles=_,f.elements.arrow&&Object.assign(f.elements.arrow.style,_.arrow)}});var Si={clientX:0,clientY:0},Pi=[];function to(Re){Si={clientX:Re.clientX,clientY:Re.clientY}}var So={name:"followCursor",defaultValue:!1,fn:function(Re){var f=Re.reference,_=Hr(Re.props.triggerTarget||f),T=!1,W=!1,re=!0,de=Re.props;function Le(){return Re.props.followCursor==="initial"&&Re.state.isVisible}function Je(){_.addEventListener("mousemove",Jn)}function $t(){_.removeEventListener("mousemove",Jn)}function on(){T=!0,Re.setProps({getReferenceClientRect:null}),T=!1}function Jn(Di){var Do=!Di.target||f.contains(Di.target),Ao=Re.props.followCursor,Vo=Di.clientX,Lo=Di.clientY,co=f.getBoundingClientRect(),Ys=Vo-co.left,Fa=Lo-co.top;!Do&&Re.props.interactive||Re.setProps({getReferenceClientRect:function(){var xl=f.getBoundingClientRect(),cu=Vo,$u=Lo;Ao==="initial"&&(cu=xl.left+Ys,$u=xl.top+Fa);var Lu=Ao==="horizontal"?xl.top:$u,sh=Ao==="vertical"?xl.right:cu,_u=Ao==="horizontal"?xl.bottom:$u,Bc=Ao==="vertical"?xl.left:cu;return{width:sh-Bc,height:_u-Lu,top:Lu,right:sh,bottom:_u,left:Bc}}})}function br(){Re.props.followCursor&&(Pi.push({instance:Re,doc:_}),function(Di){Di.addEventListener("mousemove",to)}(_))}function xi(){(Pi=Pi.filter(function(Di){return Di.instance!==Re})).filter(function(Di){return Di.doc===_}).length===0&&function(Di){Di.removeEventListener("mousemove",to)}(_)}return{onCreate:br,onDestroy:xi,onBeforeUpdate:function(){de=Re.props},onAfterUpdate:function(Di,Do){var Ao=Do.followCursor;T||Ao!==void 0&&de.followCursor!==Ao&&(xi(),Ao?(br(),!Re.state.isMounted||W||Le()||Je()):($t(),on()))},onMount:function(){Re.props.followCursor&&!W&&(re&&(Jn(Si),re=!1),Le()||Je())},onTrigger:function(Di,Do){Kn(Do)&&(Si={clientX:Do.clientX,clientY:Do.clientY}),W=Do.type==="focus"},onHidden:function(){Re.props.followCursor&&(on(),$t(),re=!0)}}}};Ka.setDefaultProps({render:Mo});var ps,Wn,yo,Qo,ss,Ko,Xn={showTotalDistance:!1,showDashDistance:!0,showWhen:["normal","active"],format:function(Re){return 1e3>Re?+Re.toFixed(2)+"m":+(Re/1e3).toFixed(2)+"km"}},Rr={showWhen:["normal","active"],format:function(Re){return Re>1e6?"".concat(+(Re/1e6).toFixed(2),"km\xB2"):"".concat(+Re.toFixed(2),"m\xB2")}},Xr={maxSize:100},Ze={remove:["del","backspace"],revert:["command+z","ctrl+z"],redo:["command+shift+z","ctrl+shift+z"]},ht={allowHTML:!0,followCursor:!0,placement:"bottom-start",offset:[-10,20],plugins:[So],trigger:"manual",hideOnClick:!1,theme:"light"},dt={data:"drawData",pointAdsorbPixel:12,lineAdsorbPixel:10};function $e(Re,f){var _=Object.keys(Re);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(Re);f&&(T=T.filter(function(W){return Object.getOwnPropertyDescriptor(Re,W).enumerable})),_.push.apply(_,T)}return _}function ft(Re){for(var f=1;arguments.length>f;f++){var _=arguments[f]!=null?arguments[f]:{};f%2?$e(Object(_),!0).forEach(function(T){Fi(Re,T,_[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Re,Object.getOwnPropertyDescriptors(_)):$e(Object(_)).forEach(function(T){Object.defineProperty(Re,T,Object.getOwnPropertyDescriptor(_,T))})}return Re}function Lt(Re){return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},Lt(Re)}function gn(Re,f){if(!(Re instanceof f))throw new TypeError("Cannot call a class as a function")}function rr(Re,f){for(var _=0;f.length>_;_++){var T=f[_];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(Re,Zl(T.key),T)}}function zr(Re,f,_){return f&&rr(Re.prototype,f),_&&rr(Re,_),Object.defineProperty(Re,"prototype",{writable:!1}),Re}function Fi(Re,f,_){return(f=Zl(f))in Re?Object.defineProperty(Re,f,{value:_,enumerable:!0,configurable:!0,writable:!0}):Re[f]=_,Re}function xo(Re,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");Re.prototype=Object.create(f&&f.prototype,{constructor:{value:Re,writable:!0,configurable:!0}}),Object.defineProperty(Re,"prototype",{writable:!1}),f&&zs(Re,f)}function Vi(Re){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},Vi(Re)}function zs(Re,f){return zs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(_,T){return _.__proto__=T,_},zs(Re,f)}function Ps(Re){if(Re===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Re}function Ms(Re){var f=function(){if(typeof Reflect=="undefined"||!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}}();return function(){var _,T=Vi(Re);if(f){var W=Vi(this).constructor;_=Reflect.construct(T,arguments,W)}else _=T.apply(this,arguments);return function(re,de){if(de&&(typeof de=="object"||typeof de=="function"))return de;if(de!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ps(re)}(this,_)}}function ks(){return ks=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(Re,f,_){var T=function(re,de){for(;!Object.prototype.hasOwnProperty.call(re,de)&&(re=Vi(re))!==null;);return re}(Re,f);if(T){var W=Object.getOwnPropertyDescriptor(T,f);return W.get?W.get.call(3>arguments.length?Re:_):W.value}},ks.apply(this,arguments)}function ko(Re,f){return function(_){if(Array.isArray(_))return _}(Re)||function(_,T){var W=_==null?null:typeof Symbol!="undefined"&&_[Symbol.iterator]||_["@@iterator"];if(W!=null){var re,de,Le,Je,$t=[],on=!0,Jn=!1;try{if(Le=(W=W.call(_)).next,T===0){if(Object(W)!==W)return;on=!1}else for(;!(on=(re=Le.call(W)).done)&&($t.push(re.value),$t.length!==T);on=!0);}catch(br){Jn=!0,de=br}finally{try{if(!on&&W.return!=null&&(Je=W.return(),Object(Je)!==Je))return}finally{if(Jn)throw de}}return $t}}(Re,f)||ia(Re,f)||function(){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 As(Re){return function(f){if(Array.isArray(f))return za(f)}(Re)||function(f){if(typeof Symbol!="undefined"&&f[Symbol.iterator]!=null||f["@@iterator"]!=null)return Array.from(f)}(Re)||ia(Re)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ia(Re,f){if(Re){if(typeof Re=="string")return za(Re,f);var _=Object.prototype.toString.call(Re).slice(8,-1);return _==="Object"&&Re.constructor&&(_=Re.constructor.name),_==="Map"||_==="Set"?Array.from(Re):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?za(Re,f):void 0}}function za(Re,f){(f==null||f>Re.length)&&(f=Re.length);for(var _=0,T=Array(f);f>_;_++)T[_]=Re[_];return T}function Zl(Re){var f=function(_,T){if(typeof _!="object"||_===null)return _;var W=_[Symbol.toPrimitive];if(W!==void 0){var re=W.call(_,T||"default");if(typeof re!="object")return re;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(_)}(Re,"string");return typeof f=="symbol"?f:f+""}(ps=v.DrawEvent||(v.DrawEvent={})).Init="init",ps.Destroy="destroy",ps.Enable="enable",ps.Disable="disable",ps.Add="add",ps.Edit="edit",ps.Remove="remove",ps.Clear="clear",ps.Change="change",ps.DragStart="dragStart",ps.Dragging="dragging",ps.DragEnd="dragEnd",ps.Select="select",ps.AddNode="addNode",ps.RemoveNode="removeNode",(Wn=v.SourceEvent||(v.SourceEvent={})).Change="change",Wn.Update="update",(yo=v.RenderEvent||(v.RenderEvent={})).Click="click",yo.UnClick="unclick",yo.Dragstart="dragstart",yo.Mousemove="mousemove",yo.Mouseout="mouseout",yo.Dragging="dragging",yo.Dragend="dragend",yo.DblClick="dblClick",yo.Contextmenu="contextmenu",(Qo=v.LayerEvent||(v.LayerEvent={})).Mousedown="mousedown",Qo.Mouseup="mouseup",Qo.Click="click",Qo.UnClick="unclick",Qo.Dblclick="dblclick",Qo.Mousemove="mousemove",Qo.Mouseover="mouseover",Qo.Mouseenter="mouseenter",Qo.Mouseleave="mouseleave",Qo.Mouseout="mouseout",Qo.Contextmenu="contextmenu",(ss=v.SceneEvent||(v.SceneEvent={})).Loaded="loaded",ss.MapMove="mapmove",ss.MoveStart="movestart",ss.MoveEnd="moveend",ss.ZoomChange="zoomchange",ss.ZoomStart="zoomstart",ss.ZoomEnd="zoomend",ss.Click="click",ss.Dblclick="dblclick",ss.Mousemove="mousemove",ss.Mousewheel="mousewheel",ss.Mouseover="mouseover",ss.Mouseout="mouseout",ss.Mouseup="mouseup",ss.Mousedown="mousedown",ss.Contextmenu="contextmenu",ss.Dragstart="dragstart",ss.Dragging="dragging",ss.Dragend="dragend",(Ko=v.ControlEvent||(v.ControlEvent={})).DrawChange="drawchange",Ko.DataChange="datachange",Ko.DrawSelect="drawselect",Ko.DrawClear="drawclear";var Hl=63710088e-1,fs={centimeters:637100880,centimetres:637100880,degrees:57.22891354143274,feet:20902260511392e-6,inches:39.37*Hl,kilometers:6371.0088,kilometres:6371.0088,meters:Hl,metres:Hl,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:Hl/1852,radians:1,yards:6967335223679999e-9},js={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,millimeters:1e6,millimetres:1e6,yards:1.195990046};function hl(Re,f,_){_===void 0&&(_={});var T={type:"Feature"};return(_.id===0||_.id)&&(T.id=_.id),_.bbox&&(T.bbox=_.bbox),T.properties=f||{},T.geometry=Re,T}function Xo(Re,f,_){if(_===void 0&&(_={}),!Re)throw Error("coordinates is required");if(!Array.isArray(Re))throw Error("coordinates must be an Array");if(2>Re.length)throw Error("coordinates must be at least 2 numbers long");if(!fu(Re[0])||!fu(Re[1]))throw Error("coordinates must contain numbers");return hl({type:"Point",coordinates:Re},f,_)}function Li(Re,f,_){_===void 0&&(_={});for(var T=0,W=Re;W.length>T;T++){var re=W[T];if(4>re.length)throw Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var de=0;re[re.length-1].length>de;de++)if(re[re.length-1][de]!==re[0][de])throw Error("First and last Position are not equivalent.")}return hl({type:"Polygon",coordinates:Re},f,_)}function Yo(Re,f,_){if(_===void 0&&(_={}),2>Re.length)throw Error("coordinates must be an array of two or more positions");return hl({type:"LineString",coordinates:Re},f,_)}function Os(Re,f){f===void 0&&(f={});var _={type:"FeatureCollection"};return f.id&&(_.id=f.id),f.bbox&&(_.bbox=f.bbox),_.features=Re,_}function Cs(Re,f,_){return _===void 0&&(_={}),hl({type:"MultiLineString",coordinates:Re},f,_)}function ba(Re,f,_){return _===void 0&&(_={}),hl({type:"MultiPoint",coordinates:Re},f,_)}function Yu(Re,f,_){return _===void 0&&(_={}),hl({type:"MultiPolygon",coordinates:Re},f,_)}function pc(Re,f){f===void 0&&(f="kilometers");var _=fs[f];if(!_)throw Error(f+" units is invalid");return Re*_}function Hu(Re,f){f===void 0&&(f="kilometers");var _=fs[f];if(!_)throw Error(f+" units is invalid");return Re/_}function wh(Re){return 180*(Re%(2*Math.PI))/Math.PI}function lh(Re){return Re%360*Math.PI/180}function fu(Re){return!isNaN(Re)&&Re!==null&&!Array.isArray(Re)}function ru(Re){return!!Re&&Re.constructor===Object}var Tu=Object.freeze({__proto__:null,earthRadius:Hl,factors:fs,unitsFactors:{centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/Hl,yards:1.0936133},areaFactors:js,feature:hl,geometry:function(Re,f,_){switch(Re){case"Point":return Xo(f).geometry;case"LineString":return Yo(f).geometry;case"Polygon":return Li(f).geometry;case"MultiPoint":return ba(f).geometry;case"MultiLineString":return Cs(f).geometry;case"MultiPolygon":return Yu(f).geometry;default:throw Error(Re+" is invalid")}},point:Xo,points:function(Re,f,_){return _===void 0&&(_={}),Os(Re.map(function(T){return Xo(T,f)}),_)},polygon:Li,polygons:function(Re,f,_){return _===void 0&&(_={}),Os(Re.map(function(T){return Li(T,f)}),_)},lineString:Yo,lineStrings:function(Re,f,_){return _===void 0&&(_={}),Os(Re.map(function(T){return Yo(T,f)}),_)},featureCollection:Os,multiLineString:Cs,multiPoint:ba,multiPolygon:Yu,geometryCollection:function(Re,f,_){return _===void 0&&(_={}),hl({type:"GeometryCollection",geometries:Re},f,_)},round:function(Re,f){if(f===void 0&&(f=0),f&&f<0)throw Error("precision must be a positive number");var _=Math.pow(10,f||0);return Math.round(Re*_)/_},radiansToLength:pc,lengthToRadians:Hu,lengthToDegrees:function(Re,f){return wh(Hu(Re,f))},bearingToAzimuth:function(Re){var f=Re%360;return 0>f&&(f+=360),f},radiansToDegrees:wh,degreesToRadians:lh,convertLength:function(Re,f,_){if(f===void 0&&(f="kilometers"),_===void 0&&(_="kilometers"),Re<0)throw Error("length must be a positive number");return pc(Hu(Re,f),_)},convertArea:function(Re,f,_){if(f===void 0&&(f="meters"),_===void 0&&(_="kilometers"),Re<0)throw Error("area must be a positive number");var T=js[f];if(!T)throw Error("invalid original units");var W=js[_];if(!W)throw Error("invalid final units");return Re/T*W},isNumber:fu,isObject:ru,validateBBox:function(Re){if(!Re)throw Error("bbox is required");if(!Array.isArray(Re))throw Error("bbox must be an Array");if(Re.length!==4&&Re.length!==6)throw Error("bbox must be an Array of 4 or 6 numbers");Re.forEach(function(f){if(!fu(f))throw Error("bbox must only contain numbers")})},validateId:function(Re){if(!Re)throw Error("id is required");if(["string","number"].indexOf(typeof Re)===-1)throw Error("id must be a number or a string")}});function wi(Re,f,_){if(Re!==null)for(var T,W,re,de,Le,Je,$t,on,Jn=0,br=0,xi=Re.type,Di=xi==="FeatureCollection",Do=xi==="Feature",Ao=Di?Re.features.length:1,Vo=0;Ao>Vo;Vo++){Le=(on=!!($t=Di?Re.features[Vo].geometry:Do?Re.geometry:Re)&&$t.type==="GeometryCollection")?$t.geometries.length:1;for(var Lo=0;Le>Lo;Lo++){var co=0,Ys=0;if((de=on?$t.geometries[Lo]:$t)!==null){Je=de.coordinates;var Fa=de.type;switch(Jn=!_||Fa!=="Polygon"&&Fa!=="MultiPolygon"?0:1,Fa){case null:break;case"Point":if(f(Je,br,Vo,co,Ys)===!1)return!1;br++,co++;break;case"LineString":case"MultiPoint":for(T=0;Je.length>T;T++){if(f(Je[T],br,Vo,co,Ys)===!1)return!1;br++,Fa==="MultiPoint"&&co++}Fa==="LineString"&&co++;break;case"Polygon":case"MultiLineString":for(T=0;Je.length>T;T++){for(W=0;Je[T].length-Jn>W;W++){if(f(Je[T][W],br,Vo,co,Ys)===!1)return!1;br++}Fa==="MultiLineString"&&co++,Fa==="Polygon"&&Ys++}Fa==="Polygon"&&co++;break;case"MultiPolygon":for(T=0;Je.length>T;T++){for(Ys=0,W=0;Je[T].length>W;W++){for(re=0;Je[T][W].length-Jn>re;re++){if(f(Je[T][W][re],br,Vo,co,Ys)===!1)return!1;br++}Ys++}co++}break;case"GeometryCollection":for(T=0;de.geometries.length>T;T++)if(wi(de.geometries[T],f,_)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}}}}}function er(Re,f){var _;switch(Re.type){case"FeatureCollection":for(_=0;Re.features.length>_&&f(Re.features[_].properties,_)!==!1;_++);break;case"Feature":f(Re.properties,0)}}function Un(Re,f){if(Re.type==="Feature")f(Re,0);else if(Re.type==="FeatureCollection")for(var _=0;Re.features.length>_&&f(Re.features[_],_)!==!1;_++);}function Wr(Re){var f=[];return wi(Re,function(_){f.push(_)}),f}function Qr(Re,f){var _,T,W,re,de,Le,Je,$t,on,Jn,br=0,xi=Re.type==="FeatureCollection",Di=Re.type==="Feature",Do=xi?Re.features.length:1;for(_=0;Do>_;_++){for($t=xi?Re.features[_].properties:Di?Re.properties:{},on=xi?Re.features[_].bbox:Di?Re.bbox:void 0,Jn=xi?Re.features[_].id:Di?Re.id:void 0,de=(Je=!!(Le=xi?Re.features[_].geometry:Di?Re.geometry:Re)&&Le.type==="GeometryCollection")?Le.geometries.length:1,W=0;de>W;W++)if((re=Je?Le.geometries[W]:Le)!==null)switch(re.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(f(re,br,$t,on,Jn)===!1)return!1;break;case"GeometryCollection":for(T=0;re.geometries.length>T;T++)if(f(re.geometries[T],br,$t,on,Jn)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}else if(f(null,br,$t,on,Jn)===!1)return!1;br++}}function _o(Re,f,_){var T=_;return Qr(Re,function(W,re,de,Le,Je){T=re===0&&_===void 0?W:f(T,W,re,de,Le,Je)}),T}function us(Re,f){Qr(Re,function(_,T,W,re,de){var Le,Je=_===null?null:_.type;switch(Je){case null:case"Point":case"LineString":case"Polygon":return f(hl(_,W,{bbox:re,id:de}),T,0)!==!1&&void 0}switch(Je){case"MultiPoint":Le="Point";break;case"MultiLineString":Le="LineString";break;case"MultiPolygon":Le="Polygon"}for(var $t=0;_.coordinates.length>$t;$t++)if(f(hl({type:Le,coordinates:_.coordinates[$t]},W),T,$t)===!1)return!1})}function es(Re,f){us(Re,function(_,T,W){var re=0;if(_.geometry){var de=_.geometry.type;if(de!=="Point"&&de!=="MultiPoint"){var Le,Je=0,$t=0,on=0;return wi(_,function(Jn,br,xi,Di,Do){if(Le===void 0||T>Je||Di>$t||Do>on)return Le=Jn,Je=T,$t=Di,on=Do,void(re=0);var Ao=Yo([Le,Jn],_.properties);if(f(Ao,T,W,Do,re)===!1)return!1;re++,Le=Jn})!==!1&&void 0}}})}function Ma(Re,f,_){var T=_,W=!1;return es(Re,function(re,de,Le,Je,$t){T=W===!1&&_===void 0?re:f(T,re,de,Le,Je,$t),W=!0}),T}function ga(Re,f){if(!Re)throw Error("geojson is required");us(Re,function(_,T,W){if(_.geometry!==null){var re=_.geometry.coordinates;switch(_.geometry.type){case"LineString":if(f(_,T,W,0,0)===!1)return!1;break;case"Polygon":for(var de=0;re.length>de;de++)if(f(Yo(re[de],_.properties),T,W,de)===!1)return!1}}})}var $a=Object.freeze({__proto__:null,coordAll:Wr,coordEach:wi,coordReduce:function(Re,f,_,T){var W=_;return wi(Re,function(re,de,Le,Je,$t){W=de===0&&_===void 0?re:f(W,re,de,Le,Je,$t)},T),W},featureEach:Un,featureReduce:function(Re,f,_){var T=_;return Un(Re,function(W,re){T=re===0&&_===void 0?W:f(T,W,re)}),T},findPoint:function(Re,f){if(!ru(f=f||{}))throw Error("options is invalid");var _,T=f.featureIndex||0,W=f.multiFeatureIndex||0,re=f.geometryIndex||0,de=f.coordIndex||0,Le=f.properties;switch(Re.type){case"FeatureCollection":0>T&&(T=Re.features.length+T),Le=Le||Re.features[T].properties,_=Re.features[T].geometry;break;case"Feature":Le=Le||Re.properties,_=Re.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":_=Re;break;default:throw Error("geojson is invalid")}if(_===null)return null;var Je=_.coordinates;switch(_.type){case"Point":return Xo(Je,Le,f);case"MultiPoint":return 0>W&&(W=Je.length+W),Xo(Je[W],Le,f);case"LineString":return 0>de&&(de=Je.length+de),Xo(Je[de],Le,f);case"Polygon":return 0>re&&(re=Je.length+re),0>de&&(de=Je[re].length+de),Xo(Je[re][de],Le,f);case"MultiLineString":return 0>W&&(W=Je.length+W),0>de&&(de=Je[W].length+de),Xo(Je[W][de],Le,f);case"MultiPolygon":return 0>W&&(W=Je.length+W),0>re&&(re=Je[W].length+re),0>de&&(de=Je[W][re].length-de),Xo(Je[W][re][de],Le,f)}throw Error("geojson is invalid")},findSegment:function(Re,f){if(!ru(f=f||{}))throw Error("options is invalid");var _,T=f.featureIndex||0,W=f.multiFeatureIndex||0,re=f.geometryIndex||0,de=f.segmentIndex||0,Le=f.properties;switch(Re.type){case"FeatureCollection":0>T&&(T=Re.features.length+T),Le=Le||Re.features[T].properties,_=Re.features[T].geometry;break;case"Feature":Le=Le||Re.properties,_=Re.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":_=Re;break;default:throw Error("geojson is invalid")}if(_===null)return null;var Je=_.coordinates;switch(_.type){case"Point":case"MultiPoint":return null;case"LineString":return 0>de&&(de=Je.length+de-1),Yo([Je[de],Je[de+1]],Le,f);case"Polygon":return 0>re&&(re=Je.length+re),0>de&&(de=Je[re].length+de-1),Yo([Je[re][de],Je[re][de+1]],Le,f);case"MultiLineString":return 0>W&&(W=Je.length+W),0>de&&(de=Je[W].length+de-1),Yo([Je[W][de],Je[W][de+1]],Le,f);case"MultiPolygon":return 0>W&&(W=Je.length+W),0>re&&(re=Je[W].length+re),0>de&&(de=Je[W][re].length-de-1),Yo([Je[W][re][de],Je[W][re][de+1]],Le,f)}throw Error("geojson is invalid")},flattenEach:us,flattenReduce:function(Re,f,_){var T=_;return us(Re,function(W,re,de){T=re===0&&de===0&&_===void 0?W:f(T,W,re,de)}),T},geomEach:Qr,geomReduce:_o,lineEach:ga,lineReduce:function(Re,f,_){var T=_;return ga(Re,function(W,re,de,Le){T=re===0&&_===void 0?W:f(T,W,re,de,Le)}),T},propEach:er,propReduce:function(Re,f,_){var T=_;return er(Re,function(W,re){T=re===0&&_===void 0?W:f(T,W,re)}),T},segmentEach:es,segmentReduce:Ma});function Js(Re){var f=[1/0,1/0,-1/0,-1/0];return wi(Re,function(_){f[0]>_[0]&&(f[0]=_[0]),f[1]>_[1]&&(f[1]=_[1]),_[0]>f[2]&&(f[2]=_[0]),_[1]>f[3]&&(f[3]=_[1])}),f}Js.default=Js;var Kl=Object.freeze({__proto__:null,default:Js});function ya(Re){if(!Re)throw Error("coord is required");if(!Array.isArray(Re)){if(Re.type==="Feature"&&Re.geometry!==null&&Re.geometry.type==="Point")return Re.geometry.coordinates;if(Re.type==="Point")return Re.coordinates}if(Array.isArray(Re)&&Re.length>=2&&!Array.isArray(Re[0])&&!Array.isArray(Re[1]))return Re;throw Error("coord must be GeoJSON Point or an Array of numbers")}function Ta(Re){if(Array.isArray(Re))return Re;if(Re.type==="Feature"){if(Re.geometry!==null)return Re.geometry.coordinates}else if(Re.coordinates)return Re.coordinates;throw Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Xa(Re){return Re.type==="Feature"?Re.geometry:Re}function au(Re,f){return Re.type==="FeatureCollection"?"FeatureCollection":Re.type==="GeometryCollection"?"GeometryCollection":Re.type==="Feature"&&Re.geometry!==null?Re.geometry.type:Re.type}function $l(Re,f,_,T,W){Mu(Re,f,_||0,T||Re.length-1,W||Sl)}function Mu(Re,f,_,T,W){for(;T>_;){if(T-_>600){var re=T-_+1,de=f-_+1,Le=Math.log(re),Je=.5*Math.exp(2*Le/3),$t=.5*Math.sqrt(Le*Je*(re-Je)/re)*(0>de-re/2?-1:1);Mu(Re,f,Math.max(_,Math.floor(f-de*Je/re+$t)),Math.min(T,Math.floor(f+(re-de)*Je/re+$t)),W)}var on=Re[f],Jn=_,br=T;for(Bl(Re,_,f),W(Re[T],on)>0&&Bl(Re,_,T);br>Jn;){for(Bl(Re,Jn,br),Jn++,br--;0>W(Re[Jn],on);)Jn++;for(;W(Re[br],on)>0;)br--}W(Re[_],on)===0?Bl(Re,_,br):Bl(Re,++br,T),br>f||(_=br+1),f>br||(T=br-1)}}function Bl(Re,f,_){var T=Re[f];Re[f]=Re[_],Re[_]=T}function Sl(Re,f){return f>Re?-1:Re>f?1:0}function Tn(Re,f,_){if(!_)return f.indexOf(Re);for(let T=0;f.length>T;T++)if(_(Re,f[T]))return T;return-1}function nc(Re,f){Iu(Re,0,Re.children.length,f,Re)}function Iu(Re,f,_,T,W){W||(W=Mc(null)),W.minX=1/0,W.minY=1/0,W.maxX=-1/0,W.maxY=-1/0;for(let re=f;_>re;re++){const de=Re.children[re];Ic(W,Re.leaf?T(de):de)}return W}function Ic(Re,f){return Re.minX=Math.min(Re.minX,f.minX),Re.minY=Math.min(Re.minY,f.minY),Re.maxX=Math.max(Re.maxX,f.maxX),Re.maxY=Math.max(Re.maxY,f.maxY),Re}function Vc(Re,f){return Re.minX-f.minX}function dh(Re,f){return Re.minY-f.minY}function Nc(Re){return(Re.maxX-Re.minX)*(Re.maxY-Re.minY)}function vd(Re){return Re.maxX-Re.minX+(Re.maxY-Re.minY)}function Th(Re,f){const _=Math.max(Re.minX,f.minX),T=Math.max(Re.minY,f.minY),W=Math.min(Re.maxX,f.maxX),re=Math.min(Re.maxY,f.maxY);return Math.max(0,W-_)*Math.max(0,re-T)}function Gd(Re,f){return!(Re.minX>f.minX||Re.minY>f.minY||f.maxX>Re.maxX||f.maxY>Re.maxY)}function yd(Re,f){return!(f.minX>Re.maxX||f.minY>Re.maxY||Re.minX>f.maxX||Re.minY>f.maxY)}function Mc(Re){return{children:Re,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Kd(Re,f,_,T,W){const re=[f,_];for(;re.length;){if(T>=(_=re.pop())-(f=re.pop()))continue;const de=f+Math.ceil((_-f)/T/2)*T;$l(Re,de,f,_,W),re.push(f,de,de,_)}}var Vf=Object.freeze({__proto__:null,default:class{constructor(Re=9){this._maxEntries=Math.max(4,Re),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(Re){let f=this.data;const _=[];if(!yd(Re,f))return _;const T=this.toBBox,W=[];for(;f;){for(let re=0;f.children.length>re;re++){const de=f.children[re],Le=f.leaf?T(de):de;yd(Re,Le)&&(f.leaf?_.push(de):Gd(Re,Le)?this._all(de,_):W.push(de))}f=W.pop()}return _}collides(Re){let f=this.data;if(!yd(Re,f))return!1;const _=[];for(;f;){for(let T=0;f.children.length>T;T++){const W=f.children[T],re=f.leaf?this.toBBox(W):W;if(yd(Re,re)){if(f.leaf||Gd(Re,re))return!0;_.push(W)}}f=_.pop()}return!1}load(Re){if(!Re||!Re.length)return this;if(this._minEntries>Re.length){for(let _=0;Re.length>_;_++)this.insert(Re[_]);return this}let f=this._build(Re.slice(),0,Re.length-1,0);if(this.data.children.length)if(this.data.height===f.height)this._splitRoot(this.data,f);else{if(f.height>this.data.height){const _=this.data;this.data=f,f=_}this._insert(f,this.data.height-f.height-1,!0)}else this.data=f;return this}insert(Re){return Re&&this._insert(Re,this.data.height-1),this}clear(){return this.data=Mc([]),this}remove(Re,f){if(!Re)return this;let _=this.data;const T=this.toBBox(Re),W=[],re=[];let de,Le,Je;for(;_||W.length;){if(_||(_=W.pop(),Le=W[W.length-1],de=re.pop(),Je=!0),_.leaf){const $t=Tn(Re,_.children,f);if($t!==-1)return _.children.splice($t,1),W.push(_),this._condense(W),this}Je||_.leaf||!Gd(_,T)?Le?(de++,_=Le.children[de],Je=!1):_=null:(W.push(_),re.push(de),de=0,Le=_,_=_.children[0])}return this}toBBox(Re){return Re}compareMinX(Re,f){return Re.minX-f.minX}compareMinY(Re,f){return Re.minY-f.minY}toJSON(){return this.data}fromJSON(Re){return this.data=Re,this}_all(Re,f){const _=[];for(;Re;)Re.leaf?f.push(...Re.children):_.push(...Re.children),Re=_.pop();return f}_build(Re,f,_,T){const W=_-f+1;let re,de=this._maxEntries;if(de>=W)return re=Mc(Re.slice(f,_+1)),nc(re,this.toBBox),re;T||(de=Math.ceil(W/Math.pow(de,(T=Math.ceil(Math.log(W)/Math.log(de)))-1))),re=Mc([]),re.leaf=!1,re.height=T;const Le=Math.ceil(W/de),Je=Le*Math.ceil(Math.sqrt(de));Kd(Re,f,_,Je,this.compareMinX);for(let $t=f;_>=$t;$t+=Je){const on=Math.min($t+Je-1,_);Kd(Re,$t,on,Le,this.compareMinY);for(let Jn=$t;on>=Jn;Jn+=Le)re.children.push(this._build(Re,Jn,Math.min(Jn+Le-1,on),T-1))}return nc(re,this.toBBox),re}_chooseSubtree(Re,f,_,T){for(;T.push(f),!f.leaf&&T.length-1!==_;){let de,Le=1/0,Je=1/0;for(let $t=0;f.children.length>$t;$t++){const on=f.children[$t],Jn=Nc(on),br=(Math.max((re=on).maxX,(W=Re).maxX)-Math.min(re.minX,W.minX))*(Math.max(re.maxY,W.maxY)-Math.min(re.minY,W.minY))-Jn;Je>br?(Je=br,Le=Le>Jn?Jn:Le,de=on):br===Je&&Le>Jn&&(Le=Jn,de=on)}f=de||f.children[0]}var W,re;return f}_insert(Re,f,_){const T=_?Re:this.toBBox(Re),W=[],re=this._chooseSubtree(T,this.data,f,W);for(re.children.push(Re),Ic(re,T);f>=0&&W[f].children.length>this._maxEntries;)this._split(W,f),f--;this._adjustParentBBoxes(T,W,f)}_split(Re,f){const _=Re[f],T=_.children.length,W=this._minEntries;this._chooseSplitAxis(_,W,T);const re=this._chooseSplitIndex(_,W,T),de=Mc(_.children.splice(re,_.children.length-re));de.height=_.height,de.leaf=_.leaf,nc(_,this.toBBox),nc(de,this.toBBox),f?Re[f-1].children.push(de):this._splitRoot(_,de)}_splitRoot(Re,f){this.data=Mc([Re,f]),this.data.height=Re.height+1,this.data.leaf=!1,nc(this.data,this.toBBox)}_chooseSplitIndex(Re,f,_){let T,W=1/0,re=1/0;for(let de=f;_-f>=de;de++){const Le=Iu(Re,0,de,this.toBBox),Je=Iu(Re,de,_,this.toBBox),$t=Th(Le,Je),on=Nc(Le)+Nc(Je);W>$t?(W=$t,T=de,re=re>on?on:re):$t===W&&re>on&&(re=on,T=de)}return T||_-f}_chooseSplitAxis(Re,f,_){const T=Re.leaf?this.compareMinX:Vc,W=Re.leaf?this.compareMinY:dh,re=this._allDistMargin(Re,f,_,T);this._allDistMargin(Re,f,_,W)>re&&Re.children.sort(T)}_allDistMargin(Re,f,_,T){Re.children.sort(T);const W=this.toBBox,re=Iu(Re,0,f,W),de=Iu(Re,_-f,_,W);let Le=vd(re)+vd(de);for(let Je=f;_-f>Je;Je++){const $t=Re.children[Je];Ic(re,Re.leaf?W($t):$t),Le+=vd(re)}for(let Je=_-f-1;Je>=f;Je--){const $t=Re.children[Je];Ic(de,Re.leaf?W($t):$t),Le+=vd(de)}return Le}_adjustParentBBoxes(Re,f,_){for(let T=_;T>=0;T--)Ic(f[T],Re)}_condense(Re){for(let f,_=Re.length-1;_>=0;_--)Re[_].children.length===0?_>0?(f=Re[_-1].children,f.splice(f.indexOf(Re[_]),1)):this.clear():nc(Re[_],this.toBBox)}}});function jf(Re,f){return f>Re?-1:Re>f?1:0}var _d=Object.freeze({__proto__:null,default:class{constructor(Re=[],f=jf){if(this.data=Re,this.length=this.data.length,this.compare=f,this.length>0)for(let _=(this.length>>1)-1;_>=0;_--)this._down(_)}push(Re){this.data.push(Re),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const Re=this.data[0],f=this.data.pop();return this.length--,this.length>0&&(this.data[0]=f,this._down(0)),Re}peek(){return this.data[0]}_up(Re){const{data:f,compare:_}=this,T=f[Re];for(;Re>0;){const W=Re-1>>1,re=f[W];if(_(T,re)>=0)break;f[Re]=re,Re=W}f[Re]=T}_down(Re){const{data:f,compare:_}=this,T=this.length>>1,W=f[Re];for(;T>Re;){let re=1+(Re<<1),de=f[re];const Le=re+1;if(this.length>Le&&0>_(f[Le],de)&&(re=Le,de=f[Le]),_(de,W)>=0)break;f[Re]=de,Re=re}f[Re]=W}}}),Qd=function(Re,f,_,T){var W=Re[0],re=Re[1],de=!1;_===void 0&&(_=0),T===void 0&&(T=f.length);for(var Le=(T-_)/2,Je=0,$t=Le-1;Le>Je;$t=Je++){var on=f[_+2*Je+0],Jn=f[_+2*Je+1],br=f[_+2*$t+1];Jn>re!=br>re&&(f[_+2*$t+0]-on)*(re-Jn)/(br-Jn)+on>W&&(de=!de)}return de},Md=function(Re,f,_,T){var W=Re[0],re=Re[1],de=!1;_===void 0&&(_=0),T===void 0&&(T=f.length);for(var Le=T-_,Je=0,$t=Le-1;Le>Je;$t=Je++){var on=f[Je+_][0],Jn=f[Je+_][1],br=f[$t+_][1];Jn>re!=br>re&&(f[$t+_][0]-on)*(re-Jn)/(br-Jn)+on>W&&(de=!de)}return de},jh=function(Re,f,_,T){return f.length>0&&Array.isArray(f[0])?Md(Re,f,_,T):Qd(Re,f,_,T)},Bs=Qd;jh.nested=Md,jh.flat=Bs;var Ua=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof y.g!="undefined"?y.g:typeof self!="undefined"?self:{};function Ya(Re,f,_){return Re(_={path:f,exports:{},require:function(T,W){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},_.exports),_.exports}function ml(Re){if(Re.__esModule)return Re;var f=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(Re).forEach(function(_){var T=Object.getOwnPropertyDescriptor(Re,_);Object.defineProperty(f,_,T.get?T:{enumerable:!0,get:function(){return Re[_]}})}),f}var ou=Ya(function(Re,f){(function(_){const W=33306690738754706e-32;function re(Do,Ao,Vo,Lo,co){let Ys,Fa,xl,cu,$u=Ao[0],Lu=Lo[0],sh=0,_u=0;Lu>$u==Lu>-$u?(Ys=$u,$u=Ao[++sh]):(Ys=Lu,Lu=Lo[++_u]);let Bc=0;if(Do>sh&&Vo>_u)for(Lu>$u==Lu>-$u?(xl=Ys-((Fa=$u+Ys)-$u),$u=Ao[++sh]):(xl=Ys-((Fa=Lu+Ys)-Lu),Lu=Lo[++_u]),Ys=Fa,xl!==0&&(co[Bc++]=xl);Do>sh&&Vo>_u;)Lu>$u==Lu>-$u?(xl=Ys-((Fa=Ys+$u)-(cu=Fa-Ys))+($u-cu),$u=Ao[++sh]):(xl=Ys-((Fa=Ys+Lu)-(cu=Fa-Ys))+(Lu-cu),Lu=Lo[++_u]),Ys=Fa,xl!==0&&(co[Bc++]=xl);for(;Do>sh;)xl=Ys-((Fa=Ys+$u)-(cu=Fa-Ys))+($u-cu),$u=Ao[++sh],Ys=Fa,xl!==0&&(co[Bc++]=xl);for(;Vo>_u;)xl=Ys-((Fa=Ys+Lu)-(cu=Fa-Ys))+(Lu-cu),Lu=Lo[++_u],Ys=Fa,xl!==0&&(co[Bc++]=xl);return Ys===0&&Bc!==0||(co[Bc++]=Ys),Bc}function de(Do){return new Float64Array(Do)}const Le=33306690738754716e-32,Je=22204460492503146e-32,$t=11093356479670487e-47,on=de(4),Jn=de(8),br=de(12),xi=de(16),Di=de(4);_.orient2d=function(Do,Ao,Vo,Lo,co,Ys){const Fa=(Ao-Ys)*(Vo-co),xl=(Do-co)*(Lo-Ys),cu=Fa-xl;if(Fa===0||xl===0||Fa>0!=xl>0)return cu;const $u=Math.abs(Fa+xl);return Le*$u>Math.abs(cu)?-function(Lu,sh,_u,Bc,Nn,sr,Zr){let hi,oo,na,rl,$s,ll,tu,Rs,Cc,sd,Rh,Ch,ad,up,Pp,wd,Fd,as;const Ll=Lu-Nn,ff=_u-Nn,pf=sh-sr,Cf=Bc-sr;$s=(Pp=(Rs=Ll-(tu=(ll=134217729*Ll)-(ll-Ll)))*(sd=Cf-(Cc=(ll=134217729*Cf)-(ll-Cf)))-((up=Ll*Cf)-tu*Cc-Rs*Cc-tu*sd))-(Rh=Pp-(Fd=(Rs=pf-(tu=(ll=134217729*pf)-(ll-pf)))*(sd=ff-(Cc=(ll=134217729*ff)-(ll-ff)))-((wd=pf*ff)-tu*Cc-Rs*Cc-tu*sd))),on[0]=Pp-(Rh+$s)+($s-Fd),$s=(ad=up-((Ch=up+Rh)-($s=Ch-up))+(Rh-$s))-(Rh=ad-wd),on[1]=ad-(Rh+$s)+($s-wd),$s=(as=Ch+Rh)-Ch,on[2]=Ch-(as-$s)+(Rh-$s),on[3]=as;let vg=function(Uc,Fh){let H=Fh[0];for(let F=1;Uc>F;F++)H+=Fh[F];return H}(4,on),Sf=Je*Zr;if(vg>=Sf||-vg>=Sf||(hi=Lu-(Ll+($s=Lu-Ll))+($s-Nn),na=_u-(ff+($s=_u-ff))+($s-Nn),oo=sh-(pf+($s=sh-pf))+($s-sr),rl=Bc-(Cf+($s=Bc-Cf))+($s-sr),hi===0&&oo===0&&na===0&&rl===0)||(Sf=$t*Zr+W*Math.abs(vg),(vg+=Ll*rl+Cf*hi-(pf*na+ff*oo))>=Sf||-vg>=Sf))return vg;$s=(Pp=(Rs=hi-(tu=(ll=134217729*hi)-(ll-hi)))*(sd=Cf-(Cc=(ll=134217729*Cf)-(ll-Cf)))-((up=hi*Cf)-tu*Cc-Rs*Cc-tu*sd))-(Rh=Pp-(Fd=(Rs=oo-(tu=(ll=134217729*oo)-(ll-oo)))*(sd=ff-(Cc=(ll=134217729*ff)-(ll-ff)))-((wd=oo*ff)-tu*Cc-Rs*Cc-tu*sd))),Di[0]=Pp-(Rh+$s)+($s-Fd),$s=(ad=up-((Ch=up+Rh)-($s=Ch-up))+(Rh-$s))-(Rh=ad-wd),Di[1]=ad-(Rh+$s)+($s-wd),$s=(as=Ch+Rh)-Ch,Di[2]=Ch-(as-$s)+(Rh-$s),Di[3]=as;const iu=re(4,on,4,Di,Jn);$s=(Pp=(Rs=Ll-(tu=(ll=134217729*Ll)-(ll-Ll)))*(sd=rl-(Cc=(ll=134217729*rl)-(ll-rl)))-((up=Ll*rl)-tu*Cc-Rs*Cc-tu*sd))-(Rh=Pp-(Fd=(Rs=pf-(tu=(ll=134217729*pf)-(ll-pf)))*(sd=na-(Cc=(ll=134217729*na)-(ll-na)))-((wd=pf*na)-tu*Cc-Rs*Cc-tu*sd))),Di[0]=Pp-(Rh+$s)+($s-Fd),$s=(ad=up-((Ch=up+Rh)-($s=Ch-up))+(Rh-$s))-(Rh=ad-wd),Di[1]=ad-(Rh+$s)+($s-wd),$s=(as=Ch+Rh)-Ch,Di[2]=Ch-(as-$s)+(Rh-$s),Di[3]=as;const Ih=re(iu,Jn,4,Di,br);$s=(Pp=(Rs=hi-(tu=(ll=134217729*hi)-(ll-hi)))*(sd=rl-(Cc=(ll=134217729*rl)-(ll-rl)))-((up=hi*rl)-tu*Cc-Rs*Cc-tu*sd))-(Rh=Pp-(Fd=(Rs=oo-(tu=(ll=134217729*oo)-(ll-oo)))*(sd=na-(Cc=(ll=134217729*na)-(ll-na)))-((wd=oo*na)-tu*Cc-Rs*Cc-tu*sd))),Di[0]=Pp-(Rh+$s)+($s-Fd),$s=(ad=up-((Ch=up+Rh)-($s=Ch-up))+(Rh-$s))-(Rh=ad-wd),Di[1]=ad-(Rh+$s)+($s-wd),$s=(as=Ch+Rh)-Ch,Di[2]=Ch-(as-$s)+(Rh-$s),Di[3]=as;const rf=re(Ih,br,4,Di,xi);return xi[rf-1]}(Do,Ao,Vo,Lo,co,Ys,$u):cu},_.orient2dfast=function(Do,Ao,Vo,Lo,co,Ys){return(Ao-Ys)*(Vo-co)-(Do-co)*(Lo-Ys)},Object.defineProperty(_,"__esModule",{value:!0})})(f)}),ac=ml(Vf),ju=ml(_d),uc=ou.orient2d;ju.default&&(ju=ju.default);var Gu=Ol;function Ol(Re,f,_){f=Math.max(0,f===void 0?2:f),_=_||0;var T=function(Lo){for(var co=Lo[0],Ys=Lo[0],Fa=Lo[0],xl=Lo[0],cu=0;Lo.length>cu;cu++){var $u=Lo[cu];co[0]>$u[0]&&(co=$u),$u[0]>Fa[0]&&(Fa=$u),Ys[1]>$u[1]&&(Ys=$u),$u[1]>xl[1]&&(xl=$u)}var Lu=[co,Ys,Fa,xl],sh=Lu.slice();for(cu=0;Lo.length>cu;cu++)jh(Lo[cu],Lu)||sh.push(Lo[cu]);return function(_u){_u.sort(el);for(var Bc=[],Nn=0;_u.length>Nn;Nn++){for(;Bc.length>=2&&0>=Hh(Bc[Bc.length-2],Bc[Bc.length-1],_u[Nn]);)Bc.pop();Bc.push(_u[Nn])}for(var sr=[],Zr=_u.length-1;Zr>=0;Zr--){for(;sr.length>=2&&0>=Hh(sr[sr.length-2],sr[sr.length-1],_u[Zr]);)sr.pop();sr.push(_u[Zr])}return sr.pop(),Bc.pop(),Bc.concat(sr)}(sh)}(Re),W=new ac(16);W.toBBox=function(Lo){return{minX:Lo[0],minY:Lo[1],maxX:Lo[0],maxY:Lo[1]}},W.compareMinX=function(Lo,co){return Lo[0]-co[0]},W.compareMinY=function(Lo,co){return Lo[1]-co[1]},W.load(Re);for(var re,de=[],Le=0;T.length>Le;Le++){var Je=T[Le];W.remove(Je),re=Ah(Je,re),de.push(re)}var $t=new ac(16);for(Le=0;de.length>Le;Le++)$t.insert(Cd(de[Le]));for(var on=f*f,Jn=_*_;de.length;){var br=de.shift(),xi=br.p,Di=br.next.p,Do=bh(xi,Di);if(Do>=Jn){var Ao=Do/on;(Je=Nu(W,br.prev.p,xi,Di,br.next.next.p,Ao,$t))&&Math.min(bh(Je,xi),bh(Je,Di))<=Ao&&(de.push(br),de.push(Ah(Je,br)),W.remove(Je),$t.remove(br),$t.insert(Cd(br)),$t.insert(Cd(br.next)))}}br=re;var Vo=[];do Vo.push(br.p),br=br.next;while(br!==re);return Vo.push(br.p),Vo}function Nu(Re,f,_,T,W,re,de){for(var Le=new ju([],qc),Je=Re.data;Je;){for(var $t=0;Je.children.length>$t;$t++){var on=Je.children[$t],Jn=Je.leaf?su(on,_,T):fh(_,T,on);rebr.dist&&Do>br.dist&&Bd(_,xi,de)&&Bd(T,xi,de))return xi}(Je=Le.pop())&&(Je=Je.node)}return null}function qc(Re,f){return Re.dist-f.dist}function fh(Re,f,_){if(Qh(Re,_)||Qh(f,_))return 0;var T=nd(Re[0],Re[1],f[0],f[1],_.minX,_.minY,_.maxX,_.minY);if(T===0)return 0;var W=nd(Re[0],Re[1],f[0],f[1],_.minX,_.minY,_.minX,_.maxY);if(W===0)return 0;var re=nd(Re[0],Re[1],f[0],f[1],_.maxX,_.minY,_.maxX,_.maxY);if(re===0)return 0;var de=nd(Re[0],Re[1],f[0],f[1],_.minX,_.maxY,_.maxX,_.maxY);return de===0?0:Math.min(T,W,re,de)}function Qh(Re,f){return!(f.minX>Re[0]||Re[0]>f.maxX||f.minY>Re[1]||Re[1]>f.maxY)}function Bd(Re,f,_){for(var T,W,re,de,Le=_.search({minX:Math.min(Re[0],f[0]),minY:Math.min(Re[1],f[1]),maxX:Math.max(Re[0],f[0]),maxY:Math.max(Re[1],f[1])}),Je=0;Le.length>Je;Je++)if(W=Le[Je].next.p,re=Re,(T=Le[Je].p)!==(de=f)&&W!==re&&Hh(T,W,re)>0!=Hh(T,W,de)>0&&Hh(re,de,T)>0!=Hh(re,de,W)>0)return!1;return!0}function Hh(Re,f,_){return uc(Re[0],Re[1],f[0],f[1],_[0],_[1])}function Cd(Re){var f=Re.p,_=Re.next.p;return Re.minX=Math.min(f[0],_[0]),Re.minY=Math.min(f[1],_[1]),Re.maxX=Math.max(f[0],_[0]),Re.maxY=Math.max(f[1],_[1]),Re}function Ah(Re,f){var _={p:Re,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return f?(_.next=f.next,_.prev=f,f.next.prev=_,f.next=_):(_.prev=_,_.next=_),_}function bh(Re,f){var _=Re[0]-f[0],T=Re[1]-f[1];return _*_+T*T}function su(Re,f,_){var T=f[0],W=f[1],re=_[0]-T,de=_[1]-W;if(re!==0||de!==0){var Le=((Re[0]-T)*re+(Re[1]-W)*de)/(re*re+de*de);Le>1?(T=_[0],W=_[1]):Le>0&&(T+=re*Le,W+=de*Le)}return(re=Re[0]-T)*re+(de=Re[1]-W)*de}function nd(Re,f,_,T,W,re,de,Le){var Je,$t,on,Jn,br=_-Re,xi=T-f,Di=de-W,Do=Le-re,Ao=Re-W,Vo=f-re,Lo=br*br+xi*xi,co=br*Di+xi*Do,Ys=Di*Di+Do*Do,Fa=br*Ao+xi*Vo,xl=Di*Ao+Do*Vo,cu=Lo*Ys-co*co,$u=cu,Lu=cu;cu===0?($t=0,$u=1,Jn=xl,Lu=Ys):(Jn=Lo*xl-co*Fa,0>($t=co*xl-Ys*Fa)?($t=0,Jn=xl,Lu=Ys):$t>$u&&($t=$u,Jn=xl+co,Lu=Ys)),0>Jn?(Jn=0,0>-Fa?$t=0:-Fa>Lo?$t=$u:($t=-Fa,$u=Lo)):Jn>Lu&&(Jn=Lu,0>-Fa+co?$t=0:-Fa+co>Lo?$t=$u:($t=-Fa+co,$u=Lo));var sh=(1-(on=Jn===0?0:Jn/Lu))*W+on*de-((1-(Je=$t===0?0:$t/$u))*Re+Je*_),_u=(1-on)*re+on*Le-((1-Je)*f+Je*T);return sh*sh+_u*_u}function el(Re,f){return Re[0]===f[0]?Re[1]-f[1]:Re[0]-f[0]}function pu(Re,f,_){_===void 0&&(_={});var T=ya(Re),W=ya(f),re=lh(W[1]-T[1]),de=lh(W[0]-T[0]),Le=lh(T[1]),Je=lh(W[1]),$t=Math.pow(Math.sin(re/2),2)+Math.pow(Math.sin(de/2),2)*Math.cos(Le)*Math.cos(Je);return pc(2*Math.atan2(Math.sqrt($t),Math.sqrt(1-$t)),_.units)}function mh(Re){return function(f,_){_===void 0&&(_={});var T=Number(f[0]),W=Number(f[1]),re=Number(f[2]),de=Number(f[3]);if(f.length===6)throw Error("@turf/bbox-polygon does not support BBox with 6 positions");var Le=[T,W];return Li([[Le,[re,W],[re,de],[T,de],Le]],_.properties,{bbox:f,id:_.id})}(Js(Re))}function Ud(Re,f,_,T){T===void 0&&(T={});var W=ya(Re),re=lh(W[0]),de=lh(W[1]),Le=lh(_),Je=Hu(f,T.units),$t=Math.asin(Math.sin(de)*Math.cos(Je)+Math.cos(de)*Math.sin(Je)*Math.cos(Le));return Xo([wh(re+Math.atan2(Math.sin(Le)*Math.sin(Je)*Math.cos(de),Math.cos(Je)-Math.sin(de)*Math.sin($t))),wh($t)],T.properties)}function Qa(Re,f,_){if(_===void 0&&(_={}),_.final===!0)return function($t,on){var Jn=Qa(on,$t);return Jn=(Jn+180)%360}(Re,f);var T=ya(Re),W=ya(f),re=lh(T[0]),de=lh(W[0]),Le=lh(T[1]),Je=lh(W[1]);return wh(Math.atan2(Math.sin(de-re)*Math.cos(Je),Math.cos(Le)*Math.sin(Je)-Math.sin(Le)*Math.cos(Je)*Math.cos(de-re)))}function mu(Re,f){f===void 0&&(f={});var _=Js(Re);return Xo([(_[0]+_[2])/2,(_[1]+_[3])/2],f.properties,f)}function Dl(Re,f){f===void 0&&(f={});var _=0,T=0,W=0;return wi(Re,function(re){_+=re[0],T+=re[1],W++},!0),Xo([_/W,T/W],f.properties)}function uu(Re,f){switch(f===void 0&&(f={}),au(Re)){case"Point":return Xo(ya(Re),f.properties);case"Polygon":var _=[];wi(Re,function(co){_.push(co)});var T,W,re,de,Le,Je,$t,on,Jn=Dl(Re,{properties:f.properties}),br=Jn.geometry.coordinates,xi=0,Di=0,Do=0,Ao=_.map(function(co){return[co[0]-br[0],co[1]-br[1]]});for(T=0;_.length-1>T;T++)Do+=on=(de=(W=Ao[T])[0])*($t=(re=Ao[T+1])[1])-(Le=re[0])*(Je=W[1]),xi+=(de+Le)*on,Di+=(Je+$t)*on;if(Do===0)return Jn;var Vo=1/(6*(.5*Do));return Xo([br[0]+Vo*xi,br[1]+Vo*Di],f.properties);default:var Lo=function(co,Ys){Ys===void 0&&(Ys={}),Ys.concavity=Ys.concavity||1/0;var Fa=[];if(wi(co,function(cu){Fa.push([cu[0],cu[1]])}),!Fa.length)return null;var xl=Gu(Fa,Ys.concavity);return xl.length>3?Li([xl]):null}(Re);return Lo?uu(Lo,{properties:f.properties}):Dl(Re,{properties:f.properties})}}function Au(Re){if(!Re)throw Error("geojson is required");var f=[];return us(Re,function(_){(function(T,W){var re=[],de=T.geometry;if(de!==null){switch(de.type){case"Polygon":re=Ta(de);break;case"LineString":re=[Ta(de)]}re.forEach(function(Le){var Je=function($t,on){var Jn=[];return $t.reduce(function(br,xi){var Di,Do,Ao,Vo,Lo,co,Ys=Yo([br,xi],on);return Ys.bbox=[(Lo=(Do=xi)[0])>(Ao=(Di=br)[0])?Ao:Lo,(co=Do[1])>(Vo=Di[1])?Vo:co,Ao>Lo?Ao:Lo,Vo>co?Vo:co],Jn.push(Ys),xi}),Jn}(Le,T.properties);Je.forEach(function($t){$t.id=W.length,W.push($t)})})}})(_,f)}),Os(f)}Gu.default=Ol;function xc(Re,f,_){if(!_)return f.indexOf(Re);for(let T=0;f.length>T;T++)if(_(Re,f[T]))return T;return-1}function yh(Re,f){xh(Re,0,Re.children.length,f,Re)}function xh(Re,f,_,T,W){W||(W=Mf(null)),W.minX=1/0,W.minY=1/0,W.maxX=-1/0,W.maxY=-1/0;for(let re=f;_>re;re++){const de=Re.children[re];ef(W,Re.leaf?T(de):de)}return W}function ef(Re,f){return Re.minX=Math.min(Re.minX,f.minX),Re.minY=Math.min(Re.minY,f.minY),Re.maxX=Math.max(Re.maxX,f.maxX),Re.maxY=Math.max(Re.maxY,f.maxY),Re}function qd(Re,f){return Re.minX-f.minX}function ld(Re,f){return Re.minY-f.minY}function hf(Re){return(Re.maxX-Re.minX)*(Re.maxY-Re.minY)}function Od(Re){return Re.maxX-Re.minX+(Re.maxY-Re.minY)}function yc(Re,f){const _=Math.max(Re.minX,f.minX),T=Math.max(Re.minY,f.minY),W=Math.min(Re.maxX,f.maxX),re=Math.min(Re.maxY,f.maxY);return Math.max(0,W-_)*Math.max(0,re-T)}function Yh(Re,f){return!(Re.minX>f.minX||Re.minY>f.minY||f.maxX>Re.maxX||f.maxY>Re.maxY)}function rh(Re,f){return!(f.minX>Re.maxX||f.minY>Re.maxY||Re.minX>f.maxX||Re.minY>f.maxY)}function Mf(Re){return{children:Re,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function yf(Re,f,_,T,W){const re=[f,_];for(;re.length;){if(T>=(_=re.pop())-(f=re.pop()))continue;const de=f+Math.ceil((_-f)/T/2)*T;$l(Re,de,f,_,W),re.push(f,de,de,_)}}var Yc=Object.freeze({__proto__:null,default:class{constructor(Re=9){this._maxEntries=Math.max(4,Re),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(Re){let f=this.data;const _=[];if(!rh(Re,f))return _;const T=this.toBBox,W=[];for(;f;){for(let re=0;f.children.length>re;re++){const de=f.children[re],Le=f.leaf?T(de):de;rh(Re,Le)&&(f.leaf?_.push(de):Yh(Re,Le)?this._all(de,_):W.push(de))}f=W.pop()}return _}collides(Re){let f=this.data;if(!rh(Re,f))return!1;const _=[];for(;f;){for(let T=0;f.children.length>T;T++){const W=f.children[T],re=f.leaf?this.toBBox(W):W;if(rh(Re,re)){if(f.leaf||Yh(Re,re))return!0;_.push(W)}}f=_.pop()}return!1}load(Re){if(!Re||!Re.length)return this;if(this._minEntries>Re.length){for(let _=0;Re.length>_;_++)this.insert(Re[_]);return this}let f=this._build(Re.slice(),0,Re.length-1,0);if(this.data.children.length)if(this.data.height===f.height)this._splitRoot(this.data,f);else{if(f.height>this.data.height){const _=this.data;this.data=f,f=_}this._insert(f,this.data.height-f.height-1,!0)}else this.data=f;return this}insert(Re){return Re&&this._insert(Re,this.data.height-1),this}clear(){return this.data=Mf([]),this}remove(Re,f){if(!Re)return this;let _=this.data;const T=this.toBBox(Re),W=[],re=[];let de,Le,Je;for(;_||W.length;){if(_||(_=W.pop(),Le=W[W.length-1],de=re.pop(),Je=!0),_.leaf){const $t=xc(Re,_.children,f);if($t!==-1)return _.children.splice($t,1),W.push(_),this._condense(W),this}Je||_.leaf||!Yh(_,T)?Le?(de++,_=Le.children[de],Je=!1):_=null:(W.push(_),re.push(de),de=0,Le=_,_=_.children[0])}return this}toBBox(Re){return Re}compareMinX(Re,f){return Re.minX-f.minX}compareMinY(Re,f){return Re.minY-f.minY}toJSON(){return this.data}fromJSON(Re){return this.data=Re,this}_all(Re,f){const _=[];for(;Re;)Re.leaf?f.push(...Re.children):_.push(...Re.children),Re=_.pop();return f}_build(Re,f,_,T){const W=_-f+1;let re,de=this._maxEntries;if(de>=W)return re=Mf(Re.slice(f,_+1)),yh(re,this.toBBox),re;T||(de=Math.ceil(W/Math.pow(de,(T=Math.ceil(Math.log(W)/Math.log(de)))-1))),re=Mf([]),re.leaf=!1,re.height=T;const Le=Math.ceil(W/de),Je=Le*Math.ceil(Math.sqrt(de));yf(Re,f,_,Je,this.compareMinX);for(let $t=f;_>=$t;$t+=Je){const on=Math.min($t+Je-1,_);yf(Re,$t,on,Le,this.compareMinY);for(let Jn=$t;on>=Jn;Jn+=Le)re.children.push(this._build(Re,Jn,Math.min(Jn+Le-1,on),T-1))}return yh(re,this.toBBox),re}_chooseSubtree(Re,f,_,T){for(;T.push(f),!f.leaf&&T.length-1!==_;){let de,Le=1/0,Je=1/0;for(let $t=0;f.children.length>$t;$t++){const on=f.children[$t],Jn=hf(on),br=(Math.max((re=on).maxX,(W=Re).maxX)-Math.min(re.minX,W.minX))*(Math.max(re.maxY,W.maxY)-Math.min(re.minY,W.minY))-Jn;Je>br?(Je=br,Le=Le>Jn?Jn:Le,de=on):br===Je&&Le>Jn&&(Le=Jn,de=on)}f=de||f.children[0]}var W,re;return f}_insert(Re,f,_){const T=_?Re:this.toBBox(Re),W=[],re=this._chooseSubtree(T,this.data,f,W);for(re.children.push(Re),ef(re,T);f>=0&&W[f].children.length>this._maxEntries;)this._split(W,f),f--;this._adjustParentBBoxes(T,W,f)}_split(Re,f){const _=Re[f],T=_.children.length,W=this._minEntries;this._chooseSplitAxis(_,W,T);const re=this._chooseSplitIndex(_,W,T),de=Mf(_.children.splice(re,_.children.length-re));de.height=_.height,de.leaf=_.leaf,yh(_,this.toBBox),yh(de,this.toBBox),f?Re[f-1].children.push(de):this._splitRoot(_,de)}_splitRoot(Re,f){this.data=Mf([Re,f]),this.data.height=Re.height+1,this.data.leaf=!1,yh(this.data,this.toBBox)}_chooseSplitIndex(Re,f,_){let T,W=1/0,re=1/0;for(let de=f;_-f>=de;de++){const Le=xh(Re,0,de,this.toBBox),Je=xh(Re,de,_,this.toBBox),$t=yc(Le,Je),on=hf(Le)+hf(Je);W>$t?(W=$t,T=de,re=re>on?on:re):$t===W&&re>on&&(re=on,T=de)}return T||_-f}_chooseSplitAxis(Re,f,_){const T=Re.leaf?this.compareMinX:qd,W=Re.leaf?this.compareMinY:ld,re=this._allDistMargin(Re,f,_,T);this._allDistMargin(Re,f,_,W)>re&&Re.children.sort(T)}_allDistMargin(Re,f,_,T){Re.children.sort(T);const W=this.toBBox,re=xh(Re,0,f,W),de=xh(Re,_-f,_,W);let Le=Od(re)+Od(de);for(let Je=f;_-f>Je;Je++){const $t=Re.children[Je];ef(re,Re.leaf?W($t):$t),Le+=Od(re)}for(let Je=_-f-1;Je>=f;Je--){const $t=Re.children[Je];ef(de,Re.leaf?W($t):$t),Le+=Od(de)}return Le}_adjustParentBBoxes(Re,f,_){for(let T=_;T>=0;T--)ef(f[T],Re)}_condense(Re){for(let f,_=Re.length-1;_>=0;_--)Re[_].children.length===0?_>0?(f=Re[_-1].children,f.splice(f.indexOf(Re[_]),1)):this.clear():yh(Re[_],this.toBBox)}}}),ih=ml(Yc),Sd=ml(Tu),Pl=ml($a),ys=ml(Kl).default,Oc=Pl.featureEach,Oi=Sd.featureCollection;function $p(Re){var f=new ih(Re);return f.insert=function(_){if(_.type!=="Feature")throw Error("invalid feature");return _.bbox=_.bbox?_.bbox:ys(_),ih.prototype.insert.call(this,_)},f.load=function(_){var T=[];return Array.isArray(_)?_.forEach(function(W){if(W.type!=="Feature")throw Error("invalid features");W.bbox=W.bbox?W.bbox:ys(W),T.push(W)}):Oc(_,function(W){if(W.type!=="Feature")throw Error("invalid features");W.bbox=W.bbox?W.bbox:ys(W),T.push(W)}),ih.prototype.load.call(this,T)},f.remove=function(_,T){if(_.type!=="Feature")throw Error("invalid feature");return _.bbox=_.bbox?_.bbox:ys(_),ih.prototype.remove.call(this,_,T)},f.clear=function(){return ih.prototype.clear.call(this)},f.search=function(_){var T=ih.prototype.search.call(this,this.toBBox(_));return Oi(T)},f.collides=function(_){return ih.prototype.collides.call(this,this.toBBox(_))},f.all=function(){var _=ih.prototype.all.call(this);return Oi(_)},f.toJSON=function(){return ih.prototype.toJSON.call(this)},f.fromJSON=function(_){return ih.prototype.fromJSON.call(this,_)},f.toBBox=function(_){var T;if(_.bbox)T=_.bbox;else if(Array.isArray(_)&&_.length===4)T=_;else if(Array.isArray(_)&&_.length===6)T=[_[0],_[1],_[3],_[4]];else if(_.type==="Feature")T=ys(_);else{if(_.type!=="FeatureCollection")throw Error("invalid geojson");T=ys(_)}return{minX:T[0],minY:T[1],maxX:T[2],maxY:T[3]}},f}var gc=$p;function uh(Re,f){var _={},T=[];if(Re.type==="LineString"&&(Re=hl(Re)),f.type==="LineString"&&(f=hl(f)),Re.type==="Feature"&&f.type==="Feature"&&Re.geometry!==null&&f.geometry!==null&&Re.geometry.type==="LineString"&&f.geometry.type==="LineString"&&Re.geometry.coordinates.length===2&&f.geometry.coordinates.length===2){var W=pp(Re,f);return W&&T.push(W),Os(T)}var re=gc();return re.load(Au(f)),Un(Au(Re),function(de){Un(re.search(de),function(Le){var Je=pp(de,Le);if(Je){var $t=Ta(Je).join(",");_[$t]||(_[$t]=!0,T.push(Je))}})}),Os(T)}function pp(Re,f){var _=Ta(Re),T=Ta(f);if(_.length!==2)throw Error(" line1 must only contain 2 coordinates");if(T.length!==2)throw Error(" line2 must only contain 2 coordinates");var W=_[0][0],re=_[0][1],de=_[1][0],Le=_[1][1],Je=T[0][0],$t=T[0][1],on=T[1][0],Jn=T[1][1],br=(Jn-$t)*(de-W)-(on-Je)*(Le-re),xi=(on-Je)*(re-$t)-(Jn-$t)*(W-Je),Di=(de-W)*(re-$t)-(Le-re)*(W-Je);if(br===0)return null;var Do=xi/br,Ao=Di/br;return 0>Do||Do>1||0>Ao||Ao>1?null:Xo([W+Do*(de-W),re+Do*(Le-re)])}gc.default=$p;var Qp=6378137;function Ng(Re){return _o(Re,function(f,_){return f+function(T){var W,re=0;switch(T.type){case"Polygon":return xf(T.coordinates);case"MultiPolygon":for(W=0;T.coordinates.length>W;W++)re+=xf(T.coordinates[W]);return re;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(_)},0)}function xf(Re){var f=0;if(Re&&Re.length>0){f+=Math.abs(wp(Re[0]));for(var _=1;Re.length>_;_++)f-=Math.abs(wp(Re[_]))}return f}function wp(Re){var f,_,T,W,re,de,Le=0,Je=Re.length;if(Je>2){for(de=0;Je>de;de++)de===Je-2?(T=Je-2,W=Je-1,re=0):de===Je-1?(T=Je-1,W=0,re=1):(T=de,W=de+1,re=de+2),f=Re[T],_=Re[W],Le+=(eg(Re[re][0])-eg(f[0]))*Math.sin(eg(_[1]));Le=Le*Qp*Qp/2}return Le}function eg(Re){return Re*Math.PI/180}function gp(Re,f){return f===void 0&&(f={}),Ma(Re,function(_,T){var W=T.geometry.coordinates;return _+pu(W[0],W[1],f)},0)}function Tg(Re,f){f===void 0&&(f={});var _=Xa(Re);switch(f.properties||Re.type!=="Feature"||(f.properties=Re.properties),_.type){case"Polygon":return function(T,W){W===void 0&&(W={});var re=Xa(T),de=re.coordinates,Le=W.properties?W.properties:T.type==="Feature"?T.properties:{};return sp(de,Le)}(_,f);case"MultiPolygon":return function(T,W){W===void 0&&(W={});var re=Xa(T),de=re.coordinates,Le=W.properties?W.properties:T.type==="Feature"?T.properties:{},Je=[];return de.forEach(function($t){Je.push(sp($t,Le))}),Os(Je)}(_,f);default:throw Error("invalid poly")}}function sp(Re,f){return Re.length>1?Cs(Re,f):Yo(Re[0],f)}function hp(Re){for(var f,_,T=Ta(Re),W=0,re=1;T.length>re;)f=_||T[0],W+=((_=T[re])[0]-f[0])*(_[1]+f[1]),re++;return W>0}var Wh=Ya(function(Re){var f=Object.prototype.hasOwnProperty,_="~";function T(){}function W(Je,$t,on){this.fn=Je,this.context=$t,this.once=on||!1}function re(Je,$t,on,Jn,br){if(typeof on!="function")throw new TypeError("The listener must be a function");var xi=new W(on,Jn||Je,br),Di=_?_+$t:$t;return Je._events[Di]?Je._events[Di].fn?Je._events[Di]=[Je._events[Di],xi]:Je._events[Di].push(xi):(Je._events[Di]=xi,Je._eventsCount++),Je}function de(Je,$t){--Je._eventsCount==0?Je._events=new T:delete Je._events[$t]}function Le(){this._events=new T,this._eventsCount=0}Object.create&&(T.prototype=Object.create(null),new T().__proto__||(_=!1)),Le.prototype.eventNames=function(){var Je,$t,on=[];if(this._eventsCount===0)return on;for($t in Je=this._events)f.call(Je,$t)&&on.push(_?$t.slice(1):$t);return Object.getOwnPropertySymbols?on.concat(Object.getOwnPropertySymbols(Je)):on},Le.prototype.listeners=function(Je){var $t=this._events[_?_+Je:Je];if(!$t)return[];if($t.fn)return[$t.fn];for(var on=0,Jn=$t.length,br=Array(Jn);Jn>on;on++)br[on]=$t[on].fn;return br},Le.prototype.listenerCount=function(Je){var $t=this._events[_?_+Je:Je];return $t?$t.fn?1:$t.length:0},Le.prototype.emit=function(Je,$t,on,Jn,br,xi){var Di=_?_+Je:Je;if(!this._events[Di])return!1;var Do,Ao,Vo=this._events[Di],Lo=arguments.length;if(Vo.fn){switch(Vo.once&&this.removeListener(Je,Vo.fn,void 0,!0),Lo){case 1:return Vo.fn.call(Vo.context),!0;case 2:return Vo.fn.call(Vo.context,$t),!0;case 3:return Vo.fn.call(Vo.context,$t,on),!0;case 4:return Vo.fn.call(Vo.context,$t,on,Jn),!0;case 5:return Vo.fn.call(Vo.context,$t,on,Jn,br),!0;case 6:return Vo.fn.call(Vo.context,$t,on,Jn,br,xi),!0}for(Ao=1,Do=Array(Lo-1);Lo>Ao;Ao++)Do[Ao-1]=arguments[Ao];Vo.fn.apply(Vo.context,Do)}else{var co,Ys=Vo.length;for(Ao=0;Ys>Ao;Ao++)switch(Vo[Ao].once&&this.removeListener(Je,Vo[Ao].fn,void 0,!0),Lo){case 1:Vo[Ao].fn.call(Vo[Ao].context);break;case 2:Vo[Ao].fn.call(Vo[Ao].context,$t);break;case 3:Vo[Ao].fn.call(Vo[Ao].context,$t,on);break;case 4:Vo[Ao].fn.call(Vo[Ao].context,$t,on,Jn);break;default:if(!Do)for(co=1,Do=Array(Lo-1);Lo>co;co++)Do[co-1]=arguments[co];Vo[Ao].fn.apply(Vo[Ao].context,Do)}}return!0},Le.prototype.on=function(Je,$t,on){return re(this,Je,$t,on,!1)},Le.prototype.once=function(Je,$t,on){return re(this,Je,$t,on,!0)},Le.prototype.removeListener=function(Je,$t,on,Jn){var br=_?_+Je:Je;if(!this._events[br])return this;if(!$t)return de(this,br),this;var xi=this._events[br];if(xi.fn)xi.fn!==$t||Jn&&!xi.once||on&&xi.context!==on||de(this,br);else{for(var Di=0,Do=[],Ao=xi.length;Ao>Di;Di++)(xi[Di].fn!==$t||Jn&&!xi[Di].once||on&&xi[Di].context!==on)&&Do.push(xi[Di]);Do.length?this._events[br]=Do.length===1?Do[0]:Do:de(this,br)}return this},Le.prototype.removeAllListeners=function(Je){var $t;return Je?this._events[$t=_?_+Je:Je]&&de(this,$t):(this._events=new T,this._eventsCount=0),this},Le.prototype.off=Le.prototype.removeListener,Le.prototype.addListener=Le.prototype.on,Le.prefixed=_,Le.EventEmitter=Le,Re.exports=Le}),Cp=function(Re){xo(_,Re);var f=Ms(_);function _(T,W){var re,de=W.style;return gn(this,_),(re=f.call(this)).scene=void 0,re.style=void 0,re.layers=void 0,re.data=[],re.scene=T,re.style=de,re.layers=re.initLayers(),re.layers.forEach(function(Le){T.addLayer(Le)}),de.callback instanceof Function&&de.callback(re.layers),re}return zr(_,[{key:"getLayers",value:function(){return this.layers}},{key:"show",value:function(){this.layers.forEach(function(T){T.show()})}},{key:"hide",value:function(){this.layers.forEach(function(T){T.hide()})}},{key:"setData",value:function(T){var W=As(T).sort(function(re,de){return+re.properties.isActive-+de.properties.isActive});this.data=W,this.layers.forEach(function(re){re.setData(Os(W))})}},{key:"destroy",value:function(){var T=this;this.layers.forEach(function(W){T.scene.removeLayer(W)})}}]),_}(Wh.EventEmitter),fg=function(Re){xo(_,Re);var f=Ms(_);function _(){return gn(this,_),f.apply(this,arguments)}return zr(_,[{key:"initLayers",value:function(){var T=this.style,W=T.normal,re=T.style,de=T.options;return[new P.LineLayer(de!=null?de:{}).source(Os([])).size(W.size).color(W.color).shape("line").style(re)]}}]),_}(Cp),Mp=function(Re){var f=typeof Re;return Re!=null&&(f=="object"||f=="function")},gd=typeof Ua=="object"&&Ua&&Ua.Object===Object&&Ua,ig=typeof self=="object"&&self&&self.Object===Object&&self,qh=gd||ig||Function("return this")(),kf=function(){return qh.Date.now()},_p=/\s/,Du=function(Re){for(var f=Re.length;f--&&_p.test(Re.charAt(f)););return f},Rp=/^\s+/,Dp=function(Re){return Re&&Re.slice(0,Du(Re)+1).replace(Rp,"")},Gf=qh.Symbol,kh=Object.prototype,Bh=kh.hasOwnProperty,Jh=kh.toString,Oh=Gf?Gf.toStringTag:void 0,Tf=function(Re){var f=Bh.call(Re,Oh),_=Re[Oh];try{Re[Oh]=void 0;var T=!0}catch(re){}var W=Jh.call(Re);return T&&(f?Re[Oh]=_:delete Re[Oh]),W},Zf=Object.prototype.toString,Ip=function(Re){return Zf.call(Re)},Dh=Gf?Gf.toStringTag:void 0,Of=function(Re){return Re==null?Re===void 0?"[object Undefined]":"[object Null]":Dh&&Dh in Object(Re)?Tf(Re):Ip(Re)},zd=function(Re){return Re!=null&&typeof Re=="object"},Rd=function(Re){return typeof Re=="symbol"||zd(Re)&&Of(Re)=="[object Symbol]"},Kf=/^[-+]0x[0-9a-f]+$/i,Eh=/^0b[01]+$/i,jc=/^0o[0-7]+$/i,zh=parseInt,Xd=function(Re){if(typeof Re=="number")return Re;if(Rd(Re))return NaN;if(Mp(Re)){var f=typeof Re.valueOf=="function"?Re.valueOf():Re;Re=Mp(f)?f+"":f}if(typeof Re!="string")return Re===0?Re:+Re;Re=Dp(Re);var _=Eh.test(Re);return _||jc.test(Re)?zh(Re.slice(2),_?2:8):Kf.test(Re)?NaN:+Re},zo=Math.max,L=Math.min,j=function(Re,f,_){var T,W,re,de,Le,Je,$t=0,on=!1,Jn=!1,br=!0;if(typeof Re!="function")throw new TypeError("Expected a function");function xi(Lo){var co=T,Ys=W;return T=W=void 0,$t=Lo,de=Re.apply(Ys,co)}function Di(Lo){var co=Lo-Je;return Je===void 0||co>=f||0>co||Jn&&Lo-$t>=re}function Do(){var Lo=kf();if(Di(Lo))return Ao(Lo);Le=setTimeout(Do,function(co){var Ys=f-(co-Je);return Jn?L(Ys,re-(co-$t)):Ys}(Lo))}function Ao(Lo){return Le=void 0,br&&T?xi(Lo):(T=W=void 0,de)}function Vo(){var Lo=kf(),co=Di(Lo);if(T=arguments,W=this,Je=Lo,co){if(Le===void 0)return function(Ys){return $t=Ys,Le=setTimeout(Do,f),on?xi(Ys):de}(Je);if(Jn)return clearTimeout(Le),Le=setTimeout(Do,f),xi(Je)}return Le===void 0&&(Le=setTimeout(Do,f)),de}return f=Xd(f)||0,Mp(_)&&(on=!!_.leading,re=(Jn="maxWait"in _)?zo(Xd(_.maxWait)||0,f):re,br="trailing"in _?!!_.trailing:br),Vo.cancel=function(){Le!==void 0&&clearTimeout(Le),$t=0,T=Je=W=Le=void 0},Vo.flush=function(){return Le===void 0?de:Ao(kf())},Vo},le=function(Re){xo(_,Re);var f=Ms(_);function _(){var T;gn(this,_);for(var W=arguments.length,re=Array(W),de=0;W>de;de++)re[de]=arguments[de];return(T=f.call.apply(f,[this].concat(re))).onMouseMove=function(Le){T.emit(v.RenderEvent.Mousemove,Le)},T.onMouseOut=function(Le){T.emit(v.RenderEvent.Mouseout,Le)},T.onMouseDown=function(Le){T.emit(v.RenderEvent.Dragstart,Le)},T.onDragging=function(Le){T.emit(v.RenderEvent.Dragging,Le)},T.onDragEnd=j(function(Le){T.emit(v.RenderEvent.Dragend,Le)},0),T.onUnClick=function(Le){T.emit(v.RenderEvent.UnClick,Le)},T.enableHover=function(){var Le,Je;T.disableHover(),(Le=T.layers[0])===null||Le===void 0||Le.on(v.LayerEvent.Mousemove,T.onMouseMove),(Je=T.layers[0])===null||Je===void 0||Je.on(v.LayerEvent.Mouseout,T.onMouseOut)},T.disableHover=function(){var Le,Je;(Le=T.layers[0])===null||Le===void 0||Le.off(v.LayerEvent.Mousemove,T.onMouseMove),(Je=T.layers[0])===null||Je===void 0||Je.off(v.LayerEvent.Mouseout,T.onMouseOut)},T}return zr(_,[{key:"initLayers",value:function(){var T=this.style,W=T.normal,re=T.hover,de=T.active,Le=T.style,Je=T.options;return[new P.LineLayer(Je!=null?Je:{}).source(Os([])).size("isHover*isActive",function($t,on){return on?de.size:$t?re.size:W.size}).color("isHover*isActive",function($t,on){return on?de.color:$t?re.color:W.color}).shape("line").style(Le)]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(v.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(v.LayerEvent.UnClick,this.onUnClick)}}]),_}(Cp),ge=function(Re){xo(_,Re);var f=Ms(_);function _(){var T;gn(this,_);for(var W=arguments.length,re=Array(W),de=0;W>de;de++)re[de]=arguments[de];return(T=f.call.apply(f,[this].concat(re))).onMouseMove=function(Le){T.emit(v.RenderEvent.Mousemove,Le)},T.onMouseOut=function(Le){T.emit(v.RenderEvent.Mouseout,Le)},T.onMouseDown=function(Le){T.emit(v.RenderEvent.Click,Le)},T}return zr(_,[{key:"initLayers",value:function(){var T=this.style,W=T.normal,re=T.style,de=re===void 0?{}:re,Le=T.options,Je=W.shape,$t=W.size,on=W.color;return[new P.PointLayer(Le!=null?Le:{}).source(Os([])).size($t).color(on).shape(Je).style(de)]}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown)}},{key:"disableClick",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown)}},{key:"enableHover",value:function(){var T,W;this.disableHover(),(T=this.layers[0])===null||T===void 0||T.on(v.LayerEvent.Mousemove,this.onMouseMove),(W=this.layers[0])===null||W===void 0||W.on(v.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var T,W;(T=this.layers[0])===null||T===void 0||T.off(v.LayerEvent.Mousemove,this.onMouseMove),(W=this.layers[0])===null||W===void 0||W.off(v.LayerEvent.Mouseout,this.onMouseOut)}}]),_}(Cp),ot=function(Re){xo(_,Re);var f=Ms(_);function _(){var T;gn(this,_);for(var W=arguments.length,re=Array(W),de=0;W>de;de++)re[de]=arguments[de];return(T=f.call.apply(f,[this].concat(re))).onCreate=function(Le){T.emit(v.RenderEvent.UnClick,Le)},T.onMouseMove=function(Le){T.emit(v.RenderEvent.Mousemove,Le)},T.onMouseOut=function(Le){T.emit(v.RenderEvent.Mouseout,Le)},T.onMouseDown=function(Le){T.emit(v.RenderEvent.Dragstart,Le)},T.onDragging=function(Le){T.emit(v.RenderEvent.Dragging,Le)},T.onDragEnd=j(function(Le){T.emit(v.RenderEvent.Dragend,Le)},0),T.onClick=function(Le){T.emit(v.RenderEvent.Click,Le)},T.onContextmenu=function(Le){T.emit(v.RenderEvent.Contextmenu,Le)},T}return zr(_,[{key:"initLayers",value:function(){var T=this.style,W=T.normal,re=T.hover,de=T.active,Le=T.style,Je=Le===void 0?{}:Le,$t=T.options;return[new P.PointLayer($t!=null?$t:{}).source(Os([])).size("isHover*isActive",function(on,Jn){return Jn?de.size:on?re.size:W.size}).color("isHover*isActive",function(on,Jn){return Jn?de.color:on?re.color:W.color}).shape("isHover*isActive",function(on,Jn){return Jn?de.shape:on?re.shape:W.shape}).style(Je)]}},{key:"enableCreate",value:function(){this.disableCreate(),this.layers[0].on(v.LayerEvent.UnClick,this.onCreate)}},{key:"disableCreate",value:function(){this.layers[0].off(v.LayerEvent.UnClick,this.onCreate)}},{key:"enableHover",value:function(){var T,W;this.disableHover(),(T=this.layers[0])===null||T===void 0||T.on(v.LayerEvent.Mousemove,this.onMouseMove),(W=this.layers[0])===null||W===void 0||W.on(v.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var T,W;(T=this.layers[0])===null||T===void 0||T.off(v.LayerEvent.Mousemove,this.onMouseMove),(W=this.layers[0])===null||W===void 0||W.off(v.LayerEvent.Mouseout,this.onMouseOut)}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(v.LayerEvent.Click,this.onClick)}},{key:"disableClick",value:function(){this.layers[0].off(v.LayerEvent.Click,this.onClick)}},{key:"enableContextMenu",value:function(){this.disableContextMenu(),this.layers[0].on(v.LayerEvent.Contextmenu,this.onContextmenu)}},{key:"disableContextMenu",value:function(){this.layers[0].off(v.LayerEvent.Contextmenu,this.onContextmenu)}}]),_}(Cp),dn=function(Re){xo(_,Re);var f=Ms(_);function _(){var T;gn(this,_);for(var W=arguments.length,re=Array(W),de=0;W>de;de++)re[de]=arguments[de];return(T=f.call.apply(f,[this].concat(re))).onMouseMove=function(Le){T.emit(v.RenderEvent.Mousemove,Le)},T.onMouseOut=function(Le){T.emit(v.RenderEvent.Mouseout,Le)},T.onMouseDown=function(Le){T.emit(v.RenderEvent.Dragstart,Le)},T.onDragging=function(Le){T.emit(v.RenderEvent.Dragging,Le)},T.onDragEnd=j(function(Le){T.emit(v.RenderEvent.Dragend,Le)},0),T.onUnClick=function(Le){T.emit(v.RenderEvent.UnClick,Le)},T.enableHover=function(){var Le,Je;T.disableHover(),(Le=T.layers[0])===null||Le===void 0||Le.on(v.LayerEvent.Mousemove,T.onMouseMove),(Je=T.layers[0])===null||Je===void 0||Je.on(v.LayerEvent.Mouseout,T.onMouseOut)},T.disableHover=function(){var Le,Je;(Le=T.layers[0])===null||Le===void 0||Le.off(v.LayerEvent.Mousemove,T.onMouseMove),(Je=T.layers[0])===null||Je===void 0||Je.off(v.LayerEvent.Mouseout,T.onMouseOut)},T}return zr(_,[{key:"initLayers",value:function(){var T=this.style,W=T.normal,re=T.hover,de=T.active,Le=T.style,Je=T.options,$t=new P.PolygonLayer(Je!=null?Je:{});return $t.source(Os([])).color("isHover*isActive",function(on,Jn){return Jn?de.color:on?re.color:W.color}).style(Le),[$t]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(v.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(v.LayerEvent.UnClick,this.onUnClick)}}]),_}(Cp),or=function(Re){xo(_,Re);var f=Ms(_);function _(T){var W;return gn(this,_),(W=f.call(this)).scene=void 0,W.previousClick=void 0,W.onDblClick=function(re){var de,Le,Je=(de=(Le=re.pixel)!==null&&Le!==void 0?Le:re.point)!==null&&de!==void 0?de:{},$t=Je.x,on=$t===void 0?0:$t,Jn=Je.y,br=Jn===void 0?0:Jn,xi=Date.now();if(W.previousClick){var Di=W.previousClick,Do=Di.y;300>xi-Di.time&&5>Math.abs(on-Di.x)&&5>Math.abs(br-Do)&&W.emit(v.RenderEvent.DblClick,re)}W.previousClick={x:on,y:br,time:xi}},W.onMouseMove=function(re){W.emit(v.RenderEvent.Mousemove,re)},W.onMouseDown=function(re){W.emit(v.RenderEvent.Dragstart,re)},W.onDragging=function(re){W.emit(v.RenderEvent.Dragging,re)},W.onDragEnd=j(function(re){W.emit(v.RenderEvent.Dragend,re)},0),W.scene=T,W}return zr(_,[{key:"enableDrag",value:function(){this.disableDrag(),this.scene.on(v.SceneEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.scene.off(v.SceneEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableMouseMove",value:function(){this.disableMouseMove(),this.scene.on(v.SceneEvent.Mousemove,this.onMouseMove)}},{key:"disableMouseMove",value:function(){this.scene.off(v.SceneEvent.Mousemove,this.onMouseMove)}},{key:"enableDblClick",value:function(){this.disableDblClick(),this.scene.on(v.SceneEvent.Mousedown,this.onDblClick)}},{key:"disableDblClick",value:function(){this.scene.off(v.SceneEvent.Mousedown,this.onDblClick)}}]),_}(Wh),Ie=function(Re){xo(_,Re);var f=Ms(_);function _(){return gn(this,_),f.apply(this,arguments)}return zr(_,[{key:"initLayers",value:function(){var T=this.style,W=T.normal,re=T.active,de=T.style,Le=de===void 0?{}:de,Je=T.options;return[new P.PointLayer(Je!=null?Je:{}).source(Os([])).size("isActive",function($t){return $t?re.size:W.size}).color("isActive",function($t){return $t?re.color:W.color}).shape("text","text").style(Le)]}}]),_}(Cp),D={point:ot,line:le,dashLine:fg,midPoint:ge,text:Ie,polygon:dn},ie="#1990FF",Ee="#ED9D48",Ne={blend:"normal",pickingBuffer:5},ct={color:ie,shape:"circle",size:6},Gt={color:Ee,shape:"circle",size:6},tn={shape:"circle",size:6,color:Ee},Bn={options:Ne,normal:ct,hover:ft(ft({},ct),{},{size:8}),active:ft(ft({},ct),{},{size:8,color:Ee}),style:{stroke:"#ffffff",strokeWidth:2}},Pr={options:Ne,normal:Gt,hover:ft(ft({},Gt),{},{size:8}),active:ft(ft({},Gt),{},{size:8}),style:{stroke:"#ffffff",strokeWidth:2}},G={color:ie,size:12},J={point:Pr,line:{options:Ne,normal:{color:ie,size:2},hover:{color:ie,size:2},active:{color:Ee,size:2},style:{}},polygon:{options:Ne,normal:{color:ie},hover:{color:ie},active:{color:Ee},style:{opacity:.15}},midPoint:{options:Ne,normal:tn},dashLine:{options:Ne,normal:{color:Ee,size:2},style:{lineType:"dash",dashArray:[6,6]}},text:{options:Ne,normal:G,active:ft(ft({},G),{},{color:Ee}),style:{fontWeight:"800",textOffset:[0,G.size+6],textAllowOverlap:!0,stroke:"#ffffff",strokeWidth:2}}},Q=function(Re,f){return Re===f||Re!=Re&&f!=f},ce=function(Re,f){for(var _=Re.length;_--;)if(Q(Re[_][0],f))return _;return-1},He=Array.prototype.splice,Et=function(Re){var f=this.__data__,_=ce(f,Re);return _>=0&&(_==f.length-1?f.pop():He.call(f,_,1),--this.size,!0)},Nt=function(Re){var f=this.__data__,_=ce(f,Re);return 0>_?void 0:f[_][1]},yn=function(Re){return ce(this.__data__,Re)>-1},yr=function(Re,f){var _=this.__data__,T=ce(_,Re);return 0>T?(++this.size,_.push([Re,f])):_[T][1]=f,this};function Sn(Re){var f=-1,_=Re==null?0:Re.length;for(this.clear();++f<_;){var T=Re[f];this.set(T[0],T[1])}}Sn.prototype.clear=function(){this.__data__=[],this.size=0},Sn.prototype.delete=Et,Sn.prototype.get=Nt,Sn.prototype.has=yn,Sn.prototype.set=yr;var _i=Sn,Ri=function(){this.__data__=new _i,this.size=0},Ki=function(Re){var f=this.__data__,_=f.delete(Re);return this.size=f.size,_},Fo=function(Re){return this.__data__.get(Re)},Wo=function(Re){return this.__data__.has(Re)},Ui,Uo=function(Re){if(!Mp(Re))return!1;var f=Of(Re);return f=="[object Function]"||f=="[object GeneratorFunction]"||f=="[object AsyncFunction]"||f=="[object Proxy]"},Hs=qh["__core-js_shared__"],tl=(Ui=/[^.]+$/.exec(Hs&&Hs.keys&&Hs.keys.IE_PROTO||""))?"Symbol(src)_1."+Ui:"",qa=function(Re){return!!tl&&tl in Re},Gl=Function.prototype.toString,bl=function(Re){if(Re!=null){try{return Gl.call(Re)}catch(f){}try{return Re+""}catch(f){}}return""},bu=/^\[object .+?Constructor\]$/,zu=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ic=function(Re){return!(!Mp(Re)||qa(Re))&&(Uo(Re)?zu:bu).test(bl(Re))},Ju=function(Re,f){return Re==null?void 0:Re[f]},oh=function(Re,f){var _=Ju(Re,f);return ic(_)?_:void 0},vh=oh(qh,"Map"),Gh=oh(Object,"create"),Nh=function(Re){var f=this.has(Re)&&delete this.__data__[Re];return this.size-=f?1:0,f},jd=Object.prototype.hasOwnProperty,Jc=function(Re){var f=this.__data__;if(Gh){var _=f[Re];return _==="__lodash_hash_undefined__"?void 0:_}return jd.call(f,Re)?f[Re]:void 0},Tc=Object.prototype.hasOwnProperty,tf=function(Re){var f=this.__data__;return Gh?f[Re]!==void 0:Tc.call(f,Re)},Wd=function(Re,f){var _=this.__data__;return this.size+=this.has(Re)?0:1,_[Re]=Gh&&f===void 0?"__lodash_hash_undefined__":f,this};function rd(Re){var f=-1,_=Re==null?0:Re.length;for(this.clear();++f<_;){var T=Re[f];this.set(T[0],T[1])}}rd.prototype.clear=function(){this.__data__=Gh?Gh(null):{},this.size=0},rd.prototype.delete=Nh,rd.prototype.get=Jc,rd.prototype.has=tf,rd.prototype.set=Wd;var of=rd,$d=function(Re){var f=typeof Re;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?Re!=="__proto__":Re===null},ud=function(Re,f){var _=Re.__data__;return $d(f)?_[typeof f=="string"?"string":"hash"]:_.map},kp=function(Re){var f=ud(this,Re).delete(Re);return this.size-=f?1:0,f},ap=function(Re){return ud(this,Re).get(Re)},mp=function(Re){return ud(this,Re).has(Re)},Kc=function(Re,f){var _=ud(this,Re),T=_.size;return _.set(Re,f),this.size+=_.size==T?0:1,this};function bc(Re){var f=-1,_=Re==null?0:Re.length;for(this.clear();++f<_;){var T=Re[f];this.set(T[0],T[1])}}bc.prototype.clear=function(){this.size=0,this.__data__={hash:new of,map:new(vh||_i),string:new of}},bc.prototype.delete=kp,bc.prototype.get=ap,bc.prototype.has=mp,bc.prototype.set=Kc;var ch=bc,_h=function(Re,f){var _=this.__data__;if(_ instanceof _i){var T=_.__data__;if(!vh||199>T.length)return T.push([Re,f]),this.size=++_.size,this;_=this.__data__=new ch(T)}return _.set(Re,f),this.size=_.size,this};function od(Re){var f=this.__data__=new _i(Re);this.size=f.size}od.prototype.clear=Ri,od.prototype.delete=Ki,od.prototype.get=Fo,od.prototype.has=Wo,od.prototype.set=_h;var wc=od,Pd=function(Re,f){for(var _=-1,T=Re==null?0:Re.length;++_-1&&Re%1==0&&f>Re},Jg=function(Re){return typeof Re=="number"&&Re>-1&&Re%1==0&&9007199254740991>=Re},rp={};rp["[object Float32Array]"]=rp["[object Float64Array]"]=rp["[object Int8Array]"]=rp["[object Int16Array]"]=rp["[object Int32Array]"]=rp["[object Uint8Array]"]=rp["[object Uint8ClampedArray]"]=rp["[object Uint16Array]"]=rp["[object Uint32Array]"]=!0,rp["[object Arguments]"]=rp["[object Array]"]=rp["[object ArrayBuffer]"]=rp["[object Boolean]"]=rp["[object DataView]"]=rp["[object Date]"]=rp["[object Error]"]=rp["[object Function]"]=rp["[object Map]"]=rp["[object Number]"]=rp["[object Object]"]=rp["[object RegExp]"]=rp["[object Set]"]=rp["[object String]"]=rp["[object WeakMap]"]=!1;var Ad=function(Re){return zd(Re)&&Jg(Re.length)&&!!rp[Of(Re)]},i0=function(Re){return function(f){return Re(f)}},vm=Ya(function(Re,f){var _=f&&!f.nodeType&&f,T=_&&Re&&!Re.nodeType&&Re,W=T&&T.exports===_&&gd.process,re=function(){try{var de=T&&T.require&&T.require("util").types;return de||W&&W.binding&&W.binding("util")}catch(Le){}}();Re.exports=re}),o0=vm&&vm.isTypedArray,Qg=o0?i0(o0):Ad,u0=Object.prototype.hasOwnProperty,x0=function(Re,f){var _=Sp(Re),T=!_&&Vp(Re),W=!_&&!T&&df(Re),re=!_&&!T&&!W&&Qg(Re),de=_||T||W||re,Le=de?Hg(Re.length,String):[],Je=Le.length;for(var $t in Re)!f&&!u0.call(Re,$t)||de&&($t=="length"||W&&($t=="offset"||$t=="parent")||re&&($t=="buffer"||$t=="byteLength"||$t=="byteOffset")||Ag($t,Je))||Le.push($t);return Le},ym=Object.prototype,um=function(Re){var f=Re&&Re.constructor;return Re===(typeof f=="function"&&f.prototype||ym)},_m=function(Re,f){return function(_){return Re(f(_))}},w0=_m(Object.keys,Object),Lg=Object.prototype.hasOwnProperty,bm=function(Re){if(!um(Re))return w0(Re);var f=[];for(var _ in Object(Re))Lg.call(Re,_)&&_!="constructor"&&f.push(_);return f},zg=function(Re){return Re!=null&&Jg(Re.length)&&!Uo(Re)},jm=function(Re){return zg(Re)?x0(Re):bm(Re)},Mg=function(Re,f){return Re&&zp(f,jm(f),Re)},uv=function(Re){var f=[];if(Re!=null)for(var _ in Object(Re))f.push(_);return f},ip=Object.prototype.hasOwnProperty,Np=function(Re){if(!Mp(Re))return uv(Re);var f=um(Re),_=[];for(var T in Re)(T!="constructor"||!f&&ip.call(Re,T))&&_.push(T);return _},_f=function(Re){return zg(Re)?x0(Re,!0):Np(Re)},K0=function(Re,f){return Re&&zp(f,_f(f),Re)},U0=Ya(function(Re,f){var _=f&&!f.nodeType&&f,T=_&&Re&&!Re.nodeType&&Re,W=T&&T.exports===_?qh.Buffer:void 0,re=W?W.allocUnsafe:void 0;Re.exports=function(de,Le){if(Le)return de.slice();var Je=de.length,$t=re?re(Je):new de.constructor(Je);return de.copy($t),$t}}),Tm=function(Re,f){var _=-1,T=Re.length;for(f||(f=Array(T));++_Le))return!1;var $t=re.get(Re),on=re.get(f);if($t&&on)return $t==f&&on==Re;var Jn=-1,br=!0,xi=2&_?new Ss:void 0;for(re.set(Re,f),re.set(f,Re);++Jn0){if(++f>=800)return arguments[0]}else f=0;return Re.apply(void 0,arguments)}},Cu=vu(cd?function(Re,f){return cd(Re,"toString",{configurable:!0,enumerable:!1,value:da(f),writable:!0})}:Nl),Ba=function(Re,f){return Cu(cs(Re,f,Nl),Re+"")},Sc=function(Re,f,_){if(!Mp(_))return!1;var T=typeof f;return!!(T=="number"?zg(_)&&Ag(f,_.length):T=="string"&&f in _)&&Q(_[f],Re)},Ml=function(Re){return Ba(function(f,_){var T=-1,W=_.length,re=W>1?_[W-1]:void 0,de=W>2?_[2]:void 0;for(re=Re.length>3&&typeof re=="function"?(W--,re):void 0,de&&Sc(_[0],_[1],de)&&(re=3>W?void 0:re,W=1),f=Object(f);++T":".","?":"/","|":"\\"},Je={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},$t=1;20>$t;++$t)re[111+$t]="f"+$t;for($t=0;9>=$t;++$t)re[$t+96]=""+$t;Ao.prototype.bind=function(Vo,Lo,co){var Ys=this;return Ys._bindMultiple.call(Ys,Vo=Vo instanceof Array?Vo:[Vo],Lo,co),Ys},Ao.prototype.unbind=function(Vo,Lo){return this.bind.call(this,Vo,function(){},Lo)},Ao.prototype.trigger=function(Vo,Lo){var co=this;return co._directMap[Vo+":"+Lo]&&co._directMap[Vo+":"+Lo]({},Vo),co},Ao.prototype.reset=function(){var Vo=this;return Vo._callbacks={},Vo._directMap={},Vo},Ao.prototype.stopCallback=function(Vo,Lo){if((" "+Lo.className+" ").indexOf(" mousetrap ")>-1||Do(Lo,this.target))return!1;if("composedPath"in Vo&&typeof Vo.composedPath=="function"){var co=Vo.composedPath()[0];co!==Vo.target&&(Lo=co)}return Lo.tagName=="INPUT"||Lo.tagName=="SELECT"||Lo.tagName=="TEXTAREA"||Lo.isContentEditable},Ao.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},Ao.addKeycodes=function(Vo){for(var Lo in Vo)Vo.hasOwnProperty(Lo)&&(re[Lo]=Vo[Lo]);W=null},Ao.init=function(){var Vo=Ao(_);for(var Lo in Vo)Lo.charAt(0)!=="_"&&(Ao[Lo]=function(co){return function(){return Vo[co].apply(Vo,arguments)}}(Lo))},Ao.init(),f.Mousetrap=Ao,Re.exports&&(Re.exports=Ao)}function on(Vo,Lo,co){Vo.addEventListener?Vo.addEventListener(Lo,co,!1):Vo.attachEvent("on"+Lo,co)}function Jn(Vo){if(Vo.type=="keypress"){var Lo=String.fromCharCode(Vo.which);return Vo.shiftKey||(Lo=Lo.toLowerCase()),Lo}return re[Vo.which]?re[Vo.which]:de[Vo.which]?de[Vo.which]:String.fromCharCode(Vo.which).toLowerCase()}function br(Vo){return Vo=="shift"||Vo=="ctrl"||Vo=="alt"||Vo=="meta"}function xi(Vo,Lo,co){return co||(co=function(){if(!W)for(var Ys in W={},re)Ys>95&&112>Ys||re.hasOwnProperty(Ys)&&(W[re[Ys]]=Ys);return W}()[Vo]?"keydown":"keypress"),co=="keypress"&&Lo.length&&(co="keydown"),co}function Di(Vo,Lo){var co,Ys,Fa,xl=[];for(co=function(cu){return cu==="+"?["+"]:(cu=cu.replace(/\+{2}/g,"+plus")).split("+")}(Vo),Fa=0;co.length>Fa;++Fa)Je[Ys=co[Fa]]&&(Ys=Je[Ys]),Lo&&Lo!="keypress"&&Le[Ys]&&(Ys=Le[Ys],xl.push("shift")),br(Ys)&&xl.push(Ys);return{key:Ys,modifiers:xl,action:Lo=xi(Ys,xl,Lo)}}function Do(Vo,Lo){return Vo!==null&&Vo!==_&&(Vo===Lo||Do(Vo.parentNode,Lo))}function Ao(Vo){var Lo=this;if(Vo=Vo||_,!(Lo instanceof Ao))return new Ao(Vo);Lo.target=Vo,Lo._callbacks={},Lo._directMap={};var co,Ys={},Fa=!1,xl=!1,cu=!1;function $u(sr){sr=sr||{};var Zr,hi=!1;for(Zr in Ys)sr[Zr]?hi=!0:Ys[Zr]=0;hi||(cu=!1)}function Lu(sr,Zr,hi,oo,na,rl){var $s,ll,tu,Rs=[],Cc=hi.type;if(!Lo._callbacks[sr])return[];for(Cc=="keyup"&&br(sr)&&(Zr=[sr]),$s=0;Lo._callbacks[sr].length>$s;++$s)ll=Lo._callbacks[sr][$s],(oo||!ll.seq||Ys[ll.seq]==ll.level)&&Cc==ll.action&&(Cc=="keypress"&&!hi.metaKey&&!hi.ctrlKey||(tu=ll.modifiers,Zr.sort().join(",")===tu.sort().join(",")))&&((!oo&&ll.combo==na||oo&&ll.seq==oo&&ll.level==rl)&&Lo._callbacks[sr].splice($s,1),Rs.push(ll));return Rs}function sh(sr,Zr,hi,oo){Lo.stopCallback(Zr,Zr.target||Zr.srcElement,hi,oo)||sr(Zr,hi)===!1&&(function(na){na.preventDefault?na.preventDefault():na.returnValue=!1}(Zr),function(na){na.stopPropagation?na.stopPropagation():na.cancelBubble=!0}(Zr))}function _u(sr){typeof sr.which!="number"&&(sr.which=sr.keyCode);var Zr=Jn(sr);Zr&&(sr.type!="keyup"||Fa!==Zr?Lo.handleKey(Zr,function(hi){var oo=[];return hi.shiftKey&&oo.push("shift"),hi.altKey&&oo.push("alt"),hi.ctrlKey&&oo.push("ctrl"),hi.metaKey&&oo.push("meta"),oo}(sr),sr):Fa=!1)}function Bc(sr,Zr,hi,oo){function na(tu){return function(){cu=tu,++Ys[sr],clearTimeout(co),co=setTimeout($u,1e3)}}function rl(tu){sh(hi,tu,sr),oo!=="keyup"&&(Fa=Jn(tu)),setTimeout($u,10)}Ys[sr]=0;for(var $s=0;Zr.length>$s;++$s){var ll=$s+1===Zr.length?rl:na(oo||Di(Zr[$s+1]).action);Nn(Zr[$s],ll,oo,sr,$s)}}function Nn(sr,Zr,hi,oo,na){Lo._directMap[sr+":"+hi]=Zr;var rl,$s=(sr=sr.replace(/\s+/g," ")).split(" ");$s.length>1?Bc(sr,$s,Zr,hi):(rl=Di(sr,hi),Lo._callbacks[rl.key]=Lo._callbacks[rl.key]||[],Lu(rl.key,rl.modifiers,{type:rl.action},oo,sr,na),Lo._callbacks[rl.key][oo?"unshift":"push"]({callback:Zr,modifiers:rl.modifiers,action:rl.action,seq:oo,level:na,combo:sr}))}Lo._handleKey=function(sr,Zr,hi){var oo,na=Lu(sr,Zr,hi),rl={},$s=0,ll=!1;for(oo=0;na.length>oo;++oo)na[oo].seq&&($s=Math.max($s,na[oo].level));for(oo=0;na.length>oo;++oo)if(na[oo].seq){if(na[oo].level!=$s)continue;ll=!0,rl[na[oo].seq]=1,sh(na[oo].callback,hi,na[oo].combo,na[oo].seq)}else ll||sh(na[oo].callback,hi,na[oo].combo);var tu=hi.type=="keypress"&&xl;hi.type!=cu||br(sr)||tu||$u(rl),xl=ll&&hi.type=="keydown"},Lo._bindMultiple=function(sr,Zr,hi){for(var oo=0;sr.length>oo;++oo)Nn(sr[oo],Zr,hi)},on(Vo,"keypress",_u),on(Vo,"keydown",_u),on(Vo,"keyup",_u)}})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)}),Ec,Ac=function(Re){return Re&&Re.length?Re[0]:void 0},Fl=(Ec=1,function(Re){return"".concat(Re,"-").concat(Ec++)}),kd=function(Re,f){var _,T;return!(!Re||!f||((_=Re.properties)===null||_===void 0?void 0:_.id)!==((T=f.properties)===null||T===void 0?void 0:T.id))},sf=function(Re){var f=Re.target,_=Re.targetHandler,T=Re.otherHandler;return Re.data.map(function(W,re){var de,Le=kd(W,f)?_:T;return(de=Le==null?void 0:Le(W,re))!==null&&de!==void 0?de:W})},th=function(){return{id:Fl("point"),isHover:!1,isActive:!1,isDrag:!1,createTime:Date.now()}},je=function(){return{id:Fl("line"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},Ge=function(){return{id:Fl("polygon"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},_t=function(Re){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Xo(Re,ft(ft({},th()),f))},Rt=function(Re){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:ft(ft({},je()),{},{nodes:Re},f),geometry:{type:"LineString",coordinates:Wr(Os(Re))}}},tr=function(Re){return Yo(Re,{id:Fl("dashLine")})},zi=function(Re){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:ft(ft({},Ge()),{},{nodes:Re},f),geometry:{type:"Polygon",coordinates:[Wr(Os([].concat(As(Re),[Ac(Re)])))]}}},Ho=function(Re){return function(f,_,T){T===void 0&&(T={});for(var W=Xa(f).coordinates,re=0,de=0;W.length>de&&(re>_||de!==W.length-1);de++){if(re>=_){var Le=_-re;if(Le){var Je=Qa(W[de],W[de-1])-180;return Ud(W[de],Le,Je,T)}return Xo(W[de])}re+=pu(W[de],W[de+1],T)}return Xo(W[W.length-1])}(Re,gp(Re,{units:"meters"})/2,{units:"meters"})},Jo=function(Re,f){var _=f.format,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},W=[];if(f.showTotalDistance){var re=Ho(Re),de=gp(Re,{units:"meters"});re.properties=ft({id:Fl("text"),isActive:!1,meters:de,text:_(de),type:"totalDistance"},T),W.push(re)}else for(var Le=Re.geometry.coordinates,Je=0;Le.length-1>Je;Je++){var $t=Xo(Le[Je]),on=Xo(Le[Je+1]),Jn=pu($t,on,{units:"meters"}),br=mu(Os([$t,on]));br.properties=ft({id:Fl("text"),isActive:!1,meters:Jn,text:_(Jn),type:"distance"},T),W.push(br)}return W},Pa=function(Re,f){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},T=f.format,W=Ng(Re);return uu(Re,{properties:ft({meters:W,text:T(W),type:"area",isActive:!1},_)})},Ti=function(Re){var f,_,T,W,re,de,Le=Re.getContainer();return(f=(_=(T=(W=(re=(de=Le==null?void 0:Le.querySelector(".l7-marker-container"))!==null&&de!==void 0?de:Le==null?void 0:Le.querySelector(".BMap_mask"))!==null&&re!==void 0?re:Re.getMapCanvasContainer())!==null&&W!==void 0?W:Le==null?void 0:Le.querySelector(".l7-scene"))!==null&&T!==void 0?T:Le==null?void 0:Le.querySelector(".l7-control-container"))!==null&&_!==void 0?_:Le==null?void 0:Le.querySelector(".l7-marker-container2"))!==null&&f!==void 0?f:null},os=function(Re){return Re.lngLat||Re.lnglat},ua=function(Re){var f=os(Re);return[f.lng,f.lat]},Go=function(Re){return[Re.lng,Re.lat]},nl=function(Re){for(var f=Number.MAX_SAFE_INTEGER,_=0,T=Re.length,W=0;T>W;W++)f>Re[W]&&(f=Re[W],_=W);return _},Zs=function(Re,f){var _=[],T=[];return Re.forEach(function(W){Ke(W,f)?T.length&&(_.push(T),T=[]):T.push(W)}),T.length&&_.push(T),_},Zi=function(Re,f,_){var T=[],W=[],re=[];return T=Re==="allDrawData"?La.instances.map(function(de){return de.getData()}).flat():Re==="drawData"?f.getData():Re instanceof Function?Re(_):Re,T.length&&(W=T.map(function(de){var Le,Je=(Le=de.properties)!==null&&Le!==void 0?Le:{},$t=Je.nodes,on=$t===void 0?[]:$t,Jn=Je.isActive;return Jn!==void 0&&Jn?on.filter(function(br){return!Ke(br.geometry.coordinates,_)}):on}).flat().filter(function(de){return de}),W.length||(W=Wr(Os(T)).map(function(de){return Xo(de)})),re=T.map(function(de){var Le,Je,$t=(Le=de.properties)===null||Le===void 0?void 0:Le.line;return!((Je=de.properties)===null||Je===void 0)&&Je.isActive&&$t?Zs($t.properties.nodes.map(function(on){return on.geometry.coordinates}),_).filter(function(on){return on.length>1}).map(function(on){return Yo(on)}):[$t]}).flat().filter(function(de){return de}),re.length||T.forEach(function(de){var Le=au(de);if(/linestring/i.test(Le)&&re.push(de),/polygon/i.test(Le)){var Je,$t,on=Tg(de);return(Je=re).push.apply(Je,As(($t=on==null?void 0:on.features)!==null&&$t!==void 0?$t:[on]))}})),{points:W,lines:re}},Io=function(Re,f,_,T){var W=_.pointAdsorbPixel,re=ko(Re,2),de=T.lngLatToPixel([re[0],re[1]]),Le=de.x,Je=de.y,$t=f.map(function(Jn){var br=ko(Jn.geometry.coordinates,2),xi=T.lngLatToPixel([br[0],br[1]]),Di=xi.y;return Math.pow(Le-xi.x,2)+Math.pow(Je-Di,2)}),on=nl($t);return Math.pow($t[on],.5)>W?null:f[on].geometry.coordinates},Us=function(Re,f,_,T){var W=_.lineAdsorbPixel,re=ko(Re,2),de=T.lngLatToPixel([re[0],re[1]]),Le=de.x,Je=de.y,$t=f.filter(function(br){return Wr(br).length>1}).map(function(br){return function(xi,Di,Do){Do===void 0&&(Do={});var Ao=Xo([1/0,1/0],{dist:1/0}),Vo=0;return us(xi,function(Lo){for(var co=Ta(Lo),Ys=0;co.length-1>Ys;Ys++){var Fa=Xo(co[Ys]);Fa.properties.dist=pu(Di,Fa,Do);var xl=Xo(co[Ys+1]);xl.properties.dist=pu(Di,xl,Do);var cu=pu(Fa,xl,Do),$u=Math.max(Fa.properties.dist,xl.properties.dist),Lu=Qa(Fa,xl),sh=Ud(Di,$u,Lu+90,Do),_u=Ud(Di,$u,Lu-90,Do),Bc=uh(Yo([sh.geometry.coordinates,_u.geometry.coordinates]),Yo([Fa.geometry.coordinates,xl.geometry.coordinates])),Nn=null;Bc.features.length>0&&((Nn=Bc.features[0]).properties.dist=pu(Di,Nn,Do),Nn.properties.location=Vo+pu(Fa,Nn,Do)),Ao.properties.dist>Fa.properties.dist&&((Ao=Fa).properties.index=Ys,Ao.properties.location=Vo),Ao.properties.dist>xl.properties.dist&&((Ao=xl).properties.index=Ys+1,Ao.properties.location=Vo+cu),Nn&&Ao.properties.dist>Nn.properties.dist&&((Ao=Nn).properties.index=Ys),Vo+=cu}}),Ao}(br,Re)});if(!$t.length)return null;var on=$t.map(function(br){var xi=ko(br.geometry.coordinates,2),Di=T.lngLatToPixel([xi[0],xi[1]]),Do=Di.y;return Math.pow(Le-Di.x,2)+Math.pow(Je-Do,2)}),Jn=nl(on);return Math.pow(on[Jn],.5)>W?null:$t[Jn].geometry.coordinates},pl=function(Re,f){var _=ko(f,2),T=_[0],W=_[1];Re.lngLat&&(Re.lngLat={lng:T,lat:W}),Re.lnglat&&(Re.lnglat={lng:T,lat:W})},al=function(){function Re(f,_){gn(this,Re),this.container=void 0,this.cursor=null,this.options=void 0,this.container=Ti(f),this.options=_}return zr(Re,[{key:"setCursor",value:function(f){f!==this.cursor&&this.container&&(this.container.style.cursor=f?this.options[f]:"",this.cursor=f)}},{key:"destroy",value:function(){this.setCursor(null)}}]),Re}();function Ia(Re,f){f===void 0&&(f={});var _=f.insertAt;if(Re&&typeof document!="undefined"){var T=document.head||document.getElementsByTagName("head")[0],W=document.createElement("style");W.type="text/css",_==="top"&&T.firstChild?T.insertBefore(W,T.firstChild):T.appendChild(W),W.styleSheet?W.styleSheet.cssText=Re:W.appendChild(document.createTextNode(Re))}}Ia('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}'),Ia(".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}");var va=function(){function Re(f,_){var T=this;gn(this,Re),this.content="",this.tippy=void 0,this.scene=void 0,this.isMouseInner=!1,this.onMouseMove=function(){T.isMouseInner=!0,T.checkTippyShow()},this.onMouseOut=function(){T.isMouseInner=!1,T.checkTippyShow()},this.setContent=j(function(re){var de;T.content=re!=null?re:"",(de=T.tippy)===null||de===void 0||de.setContent(re!=null?re:""),T.checkTippyShow()},16,{maxWait:16});var W=Ti(f);this.scene=f,W&&(this.tippy=Ka(Ti(f),ft(ft({},ht),_)),this.tippy.hide(),f.on(v.SceneEvent.Mousemove,this.onMouseMove),f.on(v.SceneEvent.Mouseout,this.onMouseOut))}return zr(Re,[{key:"getContent",value:function(){return this.content}},{key:"checkTippyShow",value:function(){var f,_;this.content&&this.isMouseInner?(f=this.tippy)===null||f===void 0||f.show():(_=this.tippy)===null||_===void 0||_.hide()}},{key:"destroy",value:function(){var f;this.scene.off(v.SceneEvent.Mousemove,this.onMouseMove),this.scene.off(v.SceneEvent.Mouseout,this.onMouseOut),(f=this.tippy)===null||f===void 0||f.destroy()}}]),Re}(),Ha=function(){function Re(f){var _=f.config;gn(this,Re),this.historyList=[],this.historyIndex=0,this.config=void 0,this.config=_}return zr(Re,[{key:"save",value:function(f){if(this.config){var _=this.config.maxSize;this.historyIndex&&(this.historyList=this.historyList.slice(this.historyIndex),this.historyIndex=0),_>this.historyList.length||this.historyList.pop();var T=mo(f);return this.historyList.unshift(T),T}}},{key:"revert",value:function(){if(this.historyList.length&&this.historyList.length-1>this.historyIndex){var f=this.historyList[++this.historyIndex];return f?mo(f):void 0}}},{key:"redo",value:function(){if(this.historyList.length&&this.historyIndex>0){var f=this.historyList[--this.historyIndex];return f?mo(f):void 0}}}]),Re}(),_s=function(Re){xo(_,Re);var f=Ms(_);function _(T){var W,re=T.data,de=T.render,Le=T.history,Je=T.scene;return gn(this,_),(W=f.call(this)).scene=void 0,W.render=void 0,W.data=mo(b),W.timeout=null,W.diffData={},W.history=void 0,W.scene=Je,W.render=de,Le&&(W.history=new Ha({config:Le})),re&&W.setData(re),W}return zr(_,[{key:"saveHistory",value:function(){var T;return(T=this.history)===null||T===void 0?void 0:T.save(this.data)}},{key:"revertHistory",value:function(){var T,W=(T=this.history)===null||T===void 0?void 0:T.revert();if(W)return this.setData(W),W}},{key:"redoHistory",value:function(){var T,W=(T=this.history)===null||T===void 0?void 0:T.redo();if(W)return this.setData(W),W}},{key:"setData",value:function(T){var W=this;return Object.keys(T).length&&(this.data=ft(ft({},this.data),T),this.diffData=ft(ft({},this.diffData),T),this.timeout||(this.timeout=requestAnimationFrame(function(){return W.updateDiffData()})),this.emit(v.SourceEvent.Change,{data:this.data})),this.data}},{key:"getData",value:function(){return this.data}},{key:"getRenderData",value:function(T){return this.data[T]}},{key:"setRenderData",value:function(T,W){var re=typeof W=="function"?W(this.getRenderData(T)):W;return this.setData(Fi({},T,re)),this.emit(v.SourceEvent.Change,this.data),re}},{key:"updateDiffData",value:function(){var T=this,W=Object.entries(this.diffData);W.length&&(W.forEach(function(re){var de,Le=ko(re,2),Je=Le[0],$t=Le[1];Array.isArray($t)&&((de=T.getRender(Je))===null||de===void 0||de.setData($t))}),this.emit(v.SourceEvent.Update,this.data,this.diffData),this.diffData={},this.timeout=null,requestAnimationFrame(function(){T.scene.render()}))}},{key:"getRender",value:function(T){return this.render[T]}},{key:"clear",value:function(){this.setData(No(Object.keys(this.render).map(function(T){return[T,[]]})))}}]),_}(Wh),La=function(Re){xo(_,Re);var f=Ms(_);function _(T,W){var re;gn(this,_),(re=f.call(this)).scene=void 0,re.source=void 0,re.render=void 0,re.cursor=void 0,re.options=void 0,re.enabled=!1,re.allowCreate=!1,re.sceneRender=void 0,re.mouseLngLat={lng:0,lat:0},re.popup=void 0,re.addCount=0,re.saveMouseLngLat=j(function($t){re.mouseLngLat=os($t)},100,{maxWait:100}),re.saveHistory=j(function(){re.options.history&&re.source.saveHistory()},100),re.bindThis(),re.scene=T,re.sceneRender=new or(T),re.options=Wc({},re.getDefaultOptions(W),W),re.render=re.initRender(),re.source=new _s({render:re.render,history:re.options.history||void 0,scene:T}),re.cursor=new al(T,re.options.cursor);var de=re.options,Le=de.initialData,Je=de.popup;return Le&&re.setData(Le),Je&&(re.popup=new va(T,Je instanceof Object?Je:{})),re.saveHistory(),re.bindCommonEvent(),re.emit(v.DrawEvent.Init,Ps(re)),re.bindEnableEvent(),_.instances.push(Ps(re)),re}return zr(_,[{key:"addable",get:function(){var T=this.getData(),W=this.options,re=W.multiple,de=W.maxCount,Le=T.find(function(Je){return Je.properties.isDraw});return!(!this.enabled||!this.allowCreate)&&(!!(re&&0>=de||Le)||!(!re&&this.addCount>=1)&&(0>=de||de>T.length))}},{key:"getOptions",value:function(){return this.options}},{key:"getEditItem",value:function(){return this.editItem}},{key:"getDragItem",value:function(){return this.dragItem}},{key:"setHelper",value:function(T){var W,re,de=this.options.helper;if(de){var Le=(W=T in de?de[T]:T)!==null&&W!==void 0?W:null;(re=this.popup)===null||re===void 0||re.setContent(Le)}}},{key:"isEnable",value:function(){return this.enabled}},{key:"bindThis",value:function(){this.initRender=this.initRender.bind(this),this.getData=this.getData.bind(this),this.setData=this.setData.bind(this),this.emitChangeEvent=this.emitChangeEvent.bind(this),this.saveHistory=this.saveHistory.bind(this),this.onSceneMouseMove=this.onSceneMouseMove.bind(this),this.revertHistory=this.revertHistory.bind(this),this.redoHistory=this.redoHistory.bind(this),this.removeActiveFeature=this.removeActiveFeature.bind(this),this.bindCommonEvent=this.bindCommonEvent.bind(this),this.bindEnableEvent=this.bindEnableEvent.bind(this),this.unbindEnableEvent=this.unbindEnableEvent.bind(this),this.setActiveFeature=this.setActiveFeature.bind(this)}},{key:"bindCommonEvent",value:function(){var T=this;this.on(v.DrawEvent.Add,this.emitChangeEvent),this.on(v.DrawEvent.Add,function(){T.addCount++}),this.on(v.DrawEvent.Edit,this.emitChangeEvent),this.on(v.DrawEvent.Remove,this.emitChangeEvent),this.on(v.DrawEvent.Clear,this.emitChangeEvent),this.on(v.DrawEvent.AddNode,this.saveHistory),this.on(v.DrawEvent.RemoveNode,this.emitChangeEvent),this.bindEmitSelectEvent(!0)}},{key:"bindEmitSelectEvent",value:function(){var T=this,W=arguments.length>0&&arguments[0]!==void 0&&arguments[0],re=null,de=function(){var Le,Je,$t,on=T.getData().find(function(Jn){var br;return(br=Jn.properties)===null||br===void 0?void 0:br.isActive})||null;((Le=re)===null||Le===void 0||(Je=Le.properties)===null||Je===void 0?void 0:Je.id)!==(on==null||($t=on.properties)===null||$t===void 0?void 0:$t.id)&&(re=on,T.emit(v.DrawEvent.Select,on))};this.source.on(v.SourceEvent.Change,de),W&&de()}},{key:"bindEnableEvent",value:function(){this.unbindKeyboardEvent(),this.scene.setMapStatus({doubleClickZoom:!1}),this.scene.on(v.SceneEvent.Mousemove,this.saveMouseLngLat),this.bindKeyboardEvent()}},{key:"unbindEnableEvent",value:function(){this.scene.setMapStatus({doubleClickZoom:!0}),this.scene.off(v.SceneEvent.Mousemove,this.saveMouseLngLat),this.unbindKeyboardEvent()}},{key:"bindKeyboardEvent",value:function(){var T=this,W=this.options.keyboard||{},re=W.revert,de=W.redo,Le=W.remove;Le&&kc.bind(Le,function(){T.removeActiveFeature()}),this.options.history&&(re&&kc.bind(re,this.revertHistory),de&&kc.bind(de,this.redoHistory))}},{key:"unbindKeyboardEvent",value:function(){var T=this.options.keyboard||{},W=T.revert,re=T.redo,de=T.remove;de&&kc.unbind(de),this.options.history&&(W&&kc.unbind(W),re&&kc.unbind(re))}},{key:"emitChangeEvent",value:function(){this.emit(v.DrawEvent.Change,this.getData()),this.saveHistory()}},{key:"revertHistory",value:function(){this.enabled&&this.options.history&&this.source.revertHistory()&&(this.correctDrawItem(),this.emit(v.DrawEvent.Change,this.getData()))}},{key:"redoHistory",value:function(){this.enabled&&this.options.history&&this.source.redoHistory()&&(this.correctDrawItem(),this.emit(v.DrawEvent.Change,this.getData()))}},{key:"getRenderLayers",value:function(){return No(Kh(this.render).map(function(T){var W=ko(T,2);return[W[0],W[1].getLayers()]}))}},{key:"getTargetFeature",value:function(T){var W,re,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getData(),Le=null;return T&&(Le=(W=de.find(function(Je){var $t;return Je.properties.id===(typeof T=="string"?T:($t=T.properties)===null||$t===void 0?void 0:$t.id)}))!==null&&W!==void 0?W:null,!Le&&T instanceof Object&&(Le=(re=de.find(function(Je){return Ke(T.geometry,Je.geometry)}))!==null&&re!==void 0?re:null)),Le}},{key:"removeActiveFeature",value:function(){var T=this.getData().find(function(W){var re=W.properties;return re.isActive||re.isDraw});return T&&this.removeFeature(T),T}},{key:"removeFeature",value:function(T){var W=this.getData(),re=this.getTargetFeature(T);re&&(this.setData(W.filter(function(de){return!kd(re,de)})),this.emit(v.DrawEvent.Remove,T,this.getData()))}},{key:"correctDrawItem",value:function(){this.getData().find(function(T){return T.properties.isDraw})&&this.onSceneMouseMove({type:"mousemove",lnglat:this.mouseLngLat,lngLat:this.mouseLngLat})}},{key:"initRender",value:function(){var T,W={},re=function(Le,Je){var $t=typeof Symbol!="undefined"&&Le[Symbol.iterator]||Le["@@iterator"];if(!$t){if(Array.isArray(Le)||($t=ia(Le))||Je&&Le&&typeof Le.length=="number"){$t&&(Le=$t);var on=0,Jn=function(){};return{s:Jn,n:function(){return Le.length>on?{done:!1,value:Le[on++]}:{done:!0}},e:function(Do){throw Do},f:Jn}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var br,xi=!0,Di=!1;return{s:function(){$t=$t.call(Le)},n:function(){var Do=$t.next();return xi=Do.done,Do},e:function(Do){Di=!0,br=Do},f:function(){try{xi||$t.return==null||$t.return()}finally{if(Di)throw br}}}}(this.getRenderTypes());try{for(re.s();!(T=re.n()).done;){var de=T.value;W[de]=new D[de](this.scene,{style:this.options.style[de]})}}catch(Le){re.e(Le)}finally{re.f()}return W}},{key:"getCommonOptions",value:function(T){return{initialData:[],autoActive:!0,cursor:mo(w),editable:!0,style:mo(J),multiple:!0,history:mo(Xr),keyboard:mo(Ze),popup:!0,helper:{},maxCount:-1}}},{key:"setCursor",value:function(T){this.cursor.setCursor(T)}},{key:"resetCursor",value:function(){this.setCursor(this.addable?"draw":null)}},{key:"enable",value:function(){var T=this;this.allowCreate=0>=arguments.length||arguments[0]===void 0||arguments[0],this.addCount=0,this.enabled=!0,this.bindEnableEvent(),this.resetCursor(),this.setHelper(this.addable?"draw":null),setTimeout(function(){T.emit(v.DrawEvent.Enable,T)},0)}},{key:"disable",value:function(){var T=this;this.resetFeatures(),this.enabled=!1,this.setCursor(null),this.unbindEnableEvent(),this.addCount=0,this.setHelper(null),setTimeout(function(){T.emit(v.DrawEvent.Disable,T)},0)}},{key:"clear",value:function(){var T=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.source.clear(),this.emit(v.DrawEvent.Clear,this),T&&this.disable()}},{key:"show",value:function(){return Object.values(this.render).forEach(function(T){T.show()})}},{key:"hide",value:function(){return Object.values(this.render).forEach(function(T){T.hide()})}},{key:"destroy",value:function(){var T,W=this;Object.values(this.render).forEach(function(de){de.destroy()}),Object.values(v.RenderEvent).forEach(function(de){Object.values(W.render).forEach(function(Le){Le.removeAllListeners(de)}),W.sceneRender.removeAllListeners(de)}),setTimeout(function(){Object.values(v.DrawEvent).forEach(function(de){W.removeAllListeners(de)})},0),(T=this.popup)===null||T===void 0||T.destroy(),this.cursor.destroy(),this.emit(v.DrawEvent.Destroy,this);var re=_.instances.indexOf(this);re>-1&&_.instances.splice(re,1)}}]),_}(Wh);La.instances=[];var Bo=function(Re){var f=Re==null?0:Re.length;return f?Re[f-1]:void 0},ka=function(Re){xo(_,Re);var f=Ms(_);function _(){return gn(this,_),f.apply(this,arguments)}return zr(_,[{key:"pointRender",get:function(){return this.render.point}},{key:"dragPoint",get:function(){return this.getPointData().find(function(T){return T.properties.isDrag})}},{key:"editPoint",get:function(){return this.getPointData().find(function(T){return T.properties.isActive})}},{key:"hoverPoint",get:function(){return this.getPointData().find(function(T){return T.properties.isHover})}},{key:"getDragPoint",value:function(){return this.dragPoint}},{key:"getEditPoint",value:function(){return this.editPoint}},{key:"getPointData",value:function(){return this.source.getRenderData("point")}},{key:"setPointData",value:function(T){return this.source.setRenderData("point",T)}},{key:"bindPointRenderEvent",value:function(){var T,W,re,de,Le,Je;(T=this.pointRender)===null||T===void 0||T.on(v.RenderEvent.UnClick,this.onPointCreate.bind(this)),(W=this.pointRender)===null||W===void 0||W.on(v.RenderEvent.Mousemove,this.onPointMouseMove.bind(this)),(re=this.pointRender)===null||re===void 0||re.on(v.RenderEvent.Mouseout,this.onPointMouseOut.bind(this)),(de=this.pointRender)===null||de===void 0||de.on(v.RenderEvent.Dragstart,this.onPointDragStart.bind(this)),(Le=this.pointRender)===null||Le===void 0||Le.on(v.RenderEvent.Dragging,this.onPointDragging.bind(this)),(Je=this.pointRender)===null||Je===void 0||Je.on(v.RenderEvent.Dragend,this.onPointDragEnd.bind(this))}},{key:"handleCreatePoint",value:function(T){var W=this.options,re=W.autoActive,de=W.editable,Le=_t(T);return this.setPointData(function(Je){return sf({target:Le,data:[].concat(As(Je),[Le]),targetHandler:function($t){$t.properties=ft(ft({},$t.properties),{},{isHover:de,isActive:re&&de})},otherHandler:function($t){$t.properties=ft(ft({},$t.properties),{},{isHover:!1,isActive:!1,isDrag:!1})}})}),Le}},{key:"handlePointHover",value:function(T){return this.setCursor("pointHover"),kd(T,this.hoverPoint)||this.setPointData(function(W){return sf({target:T,data:W,targetHandler:function(re){re.properties.isHover=!0},otherHandler:function(re){re.properties.isHover=!1}})}),T}},{key:"handlePointUnHover",value:function(T){return this.resetCursor(),this.setPointData(function(W){return W.map(function(re){return re.properties.isHover=!1,re})}),T}},{key:"handlePointDragStart",value:function(T){return this.setPointData(function(W){return sf({target:T,data:W,targetHandler:function(re){re.properties=ft(ft({},re.properties),{},{isDrag:!0,isActive:!0})},otherHandler:function(re){re.properties=ft(ft({},re.properties),{},{isDrag:!1,isActive:!1})}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),T}},{key:"handlePointDragging",value:function(T,W){return this.setPointData(function(re){return sf({target:T,data:re,targetHandler:function(de){de.geometry.coordinates=Go(W)}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),T}},{key:"handlePointDragEnd",value:function(T){return this.setPointData(function(W){return sf({target:T,data:W,targetHandler:function(re){re.properties.isDrag=!1}})}),this.scene.setMapStatus({dragEnable:!0}),this.setCursor("pointHover"),T}},{key:"onPointCreate",value:function(T){return this.handleCreatePoint(Go(os(T)))}},{key:"onPointMouseMove",value:function(T){return this.handlePointHover(T.feature)}},{key:"onPointMouseOut",value:function(T){return this.handlePointUnHover(T.feature)}},{key:"onPointDragStart",value:function(T){if(this.options.editable)return this.handlePointDragStart(T.feature)}},{key:"onPointDragging",value:function(T){var W=this.dragPoint;if(this.options.editable&&W)return this.handlePointDragging(W,os(T))}},{key:"onPointDragEnd",value:function(T){var W=this.dragPoint;if(this.options.editable&&W)return this.handlePointDragEnd(W)}},{key:"enablePointRenderAction",value:function(){var T,W,re,de,Le=this.options.editable;this.enabled&&((W=this.pointRender)===null||W===void 0||W.enableCreate()),(T=this.pointRender)===null||T===void 0||T.enableClick(),Le&&((re=this.pointRender)===null||re===void 0||re.enableHover(),(de=this.pointRender)===null||de===void 0||de.enableDrag())}},{key:"disablePointRenderAction",value:function(){var T,W,re,de;(T=this.pointRender)===null||T===void 0||T.disableCreate(),(W=this.pointRender)===null||W===void 0||W.disableHover(),(re=this.pointRender)===null||re===void 0||re.disableDrag(),(de=this.pointRender)===null||de===void 0||de.disableClick()}}]),_}(La),yl=function(Re){xo(_,Re);var f=Ms(_);function _(){return gn(this,_),f.apply(this,arguments)}return zr(_,[{key:"midPointRender",get:function(){return this.render.midPoint}},{key:"getCommonOptions",value:function(T){return ft(ft({},ks(Vi(_.prototype),"getCommonOptions",this).call(this,T)),{},{showMidPoint:!0})}},{key:"bindMidPointRenderEvent",value:function(){var T,W,re;(T=this.midPointRender)===null||T===void 0||T.on(v.RenderEvent.Click,this.onMidPointClick.bind(this)),(W=this.midPointRender)===null||W===void 0||W.on(v.RenderEvent.Mousemove,this.onMidPointHover.bind(this)),(re=this.midPointRender)===null||re===void 0||re.on(v.RenderEvent.Mouseout,this.onMidPointUnHover.bind(this))}},{key:"getMidPointData",value:function(){return this.source.getRenderData("midPoint")}},{key:"setMidPointData",value:function(T){return this.source.setRenderData("midPoint",T)}},{key:"getMidPointsByLine",value:function(T){var W=T.properties.nodes;if(!this.options.showMidPoint||2>W.length)return[];for(var re=[],de=0;W.length-1>de;de++){var Le,Je,$t,on,Jn=mu(Os([W[de],W[de+1]]),{properties:{id:Fl("midPoint"),startId:(Le=(Je=W[de].properties)===null||Je===void 0?void 0:Je.id)!==null&&Le!==void 0?Le:"",endId:($t=(on=W[de+1].properties)===null||on===void 0?void 0:on.id)!==null&&$t!==void 0?$t:""}});re.push(Jn)}return re}},{key:"onMidPointHover",value:function(T){this.setCursor("pointHover")}},{key:"onMidPointUnHover",value:function(T){this.resetCursor()}},{key:"enableMidPointRenderAction",value:function(){var T,W;(T=this.midPointRender)===null||T===void 0||T.enableClick(),(W=this.midPointRender)===null||W===void 0||W.enableHover()}},{key:"disableMidPointRenderAction",value:function(){var T,W;(T=this.midPointRender)===null||T===void 0||T.disableClick(),(W=this.midPointRender)===null||W===void 0||W.disableHover()}}]),_}(ka),Cl={draw:"\u5355\u51FB\u7ED8\u5236\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u70B9\u4F4D\u7F6E",pointDrag:null},Ru={draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E",pointDrag:null,lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u7EBF\u4F4D\u7F6E",lineDrag:null,midPointHover:"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9",drawFinish:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236"},Pu={draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawContinue:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236",drawFinish:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236",midPointHover:"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E",pointDrag:null,lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u9762\u4F4D\u7F6E",lineDrag:null,polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u9762\u4F4D\u7F6E",polygonDrag:null},eu=ft(ft({},Pu),{},{draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawFinish:"\u5355\u51FB\u7ED3\u675F\u7ED8\u5236"}),Vs={draw:"\u62D6\u62FD\u5F00\u59CB\u7ED8\u5236",drawFinish:"\u677E\u5F00\u9F20\u6807\u7ED3\u675F\u7ED8\u5236"},Po={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E"},ea={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E"},Vl=function(Re){xo(_,Re);var f=Ms(_);function _(){var T;gn(this,_);for(var W=arguments.length,re=Array(W),de=0;W>de;de++)re[de]=arguments[de];return(T=f.call.apply(f,[this].concat(re))).previousPosition=[0,0],T}return zr(_,[{key:"lineRender",get:function(){return this.render.line}},{key:"dragLine",get:function(){return this.getLineData().find(function(T){return T.properties.isDrag})}},{key:"drawLine",get:function(){return this.getLineData().find(function(T){return T.properties.isDraw})}},{key:"editLine",get:function(){return this.getLineData().find(function(T){var W=T.properties;return!W.isDraw&&W.isActive})}},{key:"hoverLine",get:function(){return this.getLineData().find(function(T){return T.properties.isHover})}},{key:"getDragLine",value:function(){return this.dragLine}},{key:"getDrawLine",value:function(){return this.drawLine}},{key:"getEditLine",value:function(){return this.editLine}},{key:"getDefaultOptions",value:function(T){var W=ft(ft({},this.getCommonOptions(T)),{},{showMidPoint:!0,distanceOptions:!1,helper:mo(Ru)});return T.distanceOptions&&(W.distanceOptions=ft(ft({},Xn),W.distanceOptions)),T.adsorbOptions&&(W.adsorbOptions=ft(ft({},dt),W.adsorbOptions)),W}},{key:"getAdsorbPosition",value:function(T){var W=this.options.adsorbOptions;if(typeof W=="boolean")return T;var re=this.scene,de=W.pointAdsorbPixel,Le=W.lineAdsorbPixel,Je=null,$t=Zi(W.data,this,T),on=$t.points,Jn=$t.lines;return on.length&&de>0&&(Je=Io(T,on,W,re)),!Je&&Jn.length&&Le>0&&(Je=Us(T,Jn,W,re)),Je}},{key:"bindSceneEvent",value:function(){this.sceneRender.on(v.RenderEvent.Mousemove,this.onSceneMouseMove.bind(this))}},{key:"bindPointRenderEvent",value:function(){var T;ks(Vi(_.prototype),"bindPointRenderEvent",this).call(this),(T=this.pointRender)===null||T===void 0||T.on(v.RenderEvent.Click,this.onPointClick.bind(this))}},{key:"bindLineRenderEvent",value:function(){var T,W,re,de,Le,Je;(T=this.lineRender)===null||T===void 0||T.on(v.RenderEvent.UnClick,this.onLineUnClick.bind(this)),(W=this.lineRender)===null||W===void 0||W.on(v.RenderEvent.Mousemove,this.onLineMouseMove.bind(this)),(re=this.lineRender)===null||re===void 0||re.on(v.RenderEvent.Mouseout,this.onLineMouseOut.bind(this)),(de=this.lineRender)===null||de===void 0||de.on(v.RenderEvent.Dragstart,this.onLineDragStart.bind(this)),(Le=this.lineRender)===null||Le===void 0||Le.on(v.RenderEvent.Dragging,this.onLineDragging.bind(this)),(Je=this.lineRender)===null||Je===void 0||Je.on(v.RenderEvent.Dragend,this.onLineDragEnd.bind(this))}},{key:"getDashLineDistanceTexts",value:function(T,W){var re=W.showTotalDistance,de=W.format;return W.showDashDistance?T.map(function(Le){return Jo(Le,{showTotalDistance:re,format:de},{isActive:!0,type:"dash"})}).flat():[]}},{key:"getLineDistanceTexts",value:function(T,W){var re=W.showTotalDistance,de=W.format,Le=W.showWhen,Je=[];if(Le.includes("active")){var $t=T.filter(function(Jn){return Jn.properties.isActive&&Jn.properties.nodes.length>1});Je.push.apply(Je,As($t.map(function(Jn){return Jo(Jn,{showTotalDistance:re,format:de},{isActive:!0})}).flat()))}if(Le.includes("normal")){var on=T.filter(function(Jn){return!Jn.properties.isActive&&Jn.properties.nodes.length>1});Je.push.apply(Je,As(on.map(function(Jn){return Jo(Jn,{showTotalDistance:re,format:de})}).flat()))}return Je}},{key:"getDistanceTexts",value:function(){var T=this.options.distanceOptions;if(!T)return[];var W=[],re=T.showWhen,de=T.showDashDistance,Le=T.format,Je=T.showTotalDistance;return W.push.apply(W,As(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!1,format:Le,showDashDistance:de})).concat(As(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:Je,format:Le,showWhen:re})))),W}},{key:"getAllTexts",value:function(){return this.getDistanceTexts()}},{key:"handleCreateLine",value:function(T){var W=Rt([T],{isActive:!0,isDraw:!0});return this.setLineData(function(re){return sf({target:W,data:[].concat(As(re),[W]),otherHandler:function(de){de.properties.isActive=!1}})}),this.setPointData([T]),this.setTextData(this.getAllTexts()),W}},{key:"syncLineNodes",value:function(T,W){return T.properties.nodes=W,T.geometry.coordinates=Wr(Os(W)),this.setLineData(function(re){return re.map(function(de){return kd(de,T)?T:de})}),kd(this.editLine,T)&&this.setMidPointData(this.getMidPointsByLine(T)),this.setPointData(T.properties.nodes),this.setTextData(this.getAllTexts()),T}},{key:"setActiveLine",value:function(T){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setLineData(function(re){return sf({target:T,data:re,targetHandler:function(de){de.properties=ft(ft({},de.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},W)},otherHandler:function(de){de.properties=ft(ft({},de.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(T.properties.nodes.map(function(re){return re.properties=ft(ft({},re.properties),{},{isHover:!1,isActive:!1}),re})),this.setMidPointData(this.getMidPointsByLine(T)),this.setDashLineData([]),this.setTextData(this.getAllTexts()),T}},{key:"clearActiveLine",value:function(){this.source.setData({point:[],line:this.getLineData().map(function(T){return T.properties=ft(ft({},T.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),T}),midPoint:[],text:this.getAllTexts()})}},{key:"handleLineUnClick",value:function(T){return this.clearActiveLine(),T}},{key:"handleLineHover",value:function(T){if(!this.drawLine)return this.setCursor("lineHover"),kd(T,this.hoverLine)||this.setLineData(function(W){return sf({target:T,data:W,targetHandler:function(re){re.properties.isHover=!0},otherHandler:function(re){re.properties.isHover=!1}})}),T}},{key:"handleLineUnHover",value:function(T){if(!this.drawLine)return this.resetCursor(),this.setLineData(function(W){return W.map(function(re){return re.properties.isHover=!1,re})}),T}},{key:"handleLineDragStart",value:function(T){return this.setActiveLine(T,{isDrag:!0,isActive:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("lineDrag"),T}},{key:"handleLineDragging",value:function(T,W){var re=W.lng,de=W.lat,Le=T.properties.nodes,Je=ko(this.previousPosition,2),$t=Je[0],on=Je[1];return Le.forEach(function(Jn){var br=Jn.geometry.coordinates;Jn.geometry.coordinates=[br[0]+re-$t,br[1]+de-on]}),this.syncLineNodes(T,Le),this.setActiveLine(T,{isDrag:!0}),this.setCursor("lineDrag"),this.previousPosition=[re,de],T}},{key:"handleLineDragEnd",value:function(T){return T.properties.isDrag=!1,this.setLineData(function(W){return W}),this.scene.setMapStatus({dragEnable:!0}),T}},{key:"resetAdsorbLngLat",value:function(T){if(this.options.adsorbOptions){var W=this.getAdsorbPosition(Go(os(T)));return W&&pl(T,W),W}}},{key:"onPointCreate",value:function(T){if(!this.editLine){this.resetAdsorbLngLat(T);var W=ks(Vi(_.prototype),"onPointCreate",this).call(this,T),re=this.drawLine;if(W)return re?(this.syncLineNodes(re,[].concat(As(re.properties.nodes),[W])),this.setDashLineData([])):this.handleCreateLine(W),W}}},{key:"onPointDragStart",value:function(T){if(this.editLine)return this.setHelper("pointDrag"),ks(Vi(_.prototype),"onPointDragStart",this).call(this,T)}},{key:"onPointDragging",value:function(T){var W=ks(Vi(_.prototype),"onPointDragging",this).call(this,T);if(W){var re=this.resetAdsorbLngLat(T);re&&(W.geometry.coordinates=mo(re))}var de=this.editLine;return de&&W&&(this.syncLineNodes(de,de.properties.nodes.map(function(Le){return kd(W,Le)?W:Le})),this.setActiveLine(de)),W}},{key:"onPointDragEnd",value:function(T){if(this.editLine){var W=ks(Vi(_.prototype),"onPointDragEnd",this).call(this,T);return this.setPointData(function(re){return re.map(function(de){return de.properties.isActive=!1,de})}),this.setHelper("pointHover"),W}}},{key:"onLineUnClick",value:function(T){var W=this.editLine;if(W)return this.handleLineUnClick(W)}},{key:"onLineMouseMove",value:function(T){if(!this.drawLine)return this.dragLine||this.drawLine||!this.options.editable||this.setHelper("lineHover"),this.handleLineHover(T.feature)}},{key:"onLineMouseOut",value:function(T){if(!this.drawLine)return this.dragLine||this.drawLine||this.setHelper(this.addable?"draw":null),this.handleLineUnHover(T.feature)}},{key:"onLineDragStart",value:function(T){if(this.options.editable&&!this.drawLine)return this.previousPosition=ua(T),this.setHelper("lineDrag"),this.handleLineDragStart(T.feature)}},{key:"onLineDragging",value:function(T){var W=this.dragLine;if(W)return this.handleLineDragging(W,os(T))}},{key:"onLineDragEnd",value:function(T){var W=this.dragLine;if(W)return this.setHelper("lineHover"),this.handleLineDragEnd(W)}},{key:"onPointMouseMove",value:function(T){var W=ks(Vi(_.prototype),"onPointMouseMove",this).call(this,T);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper("pointHover"),W}},{key:"onPointMouseOut",value:function(T){var W=ks(Vi(_.prototype),"onPointMouseOut",this).call(this,T);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper(this.addable?"draw":null),W}},{key:"onMidPointHover",value:function(T){ks(Vi(_.prototype),"onMidPointHover",this).call(this,T),this.setHelper("midPointHover")}},{key:"onMidPointUnHover",value:function(T){ks(Vi(_.prototype),"onMidPointUnHover",this).call(this,T),this.setHelper(null)}},{key:"onPointClick",value:function(T){}},{key:"getLineData",value:function(){return this.source.getRenderData("line")}},{key:"setLineData",value:function(T){return this.source.setRenderData("line",T)}},{key:"getTextData",value:function(){return this.source.getRenderData("text")}},{key:"setTextData",value:function(T){return this.source.setRenderData("text",T)}},{key:"getDashLineData",value:function(){return this.source.getRenderData("dashLine")}},{key:"setDashLineData",value:function(T){return this.source.setRenderData("dashLine",T)}},{key:"onMidPointClick",value:function(T){var W=this.editLine,re=T.feature;if(W&&re&&!this.dragPoint){var de=W.properties.nodes,Le=re.properties,Je=Le.startId,$t=Le.endId,on=de.findIndex(function(xi){return xi.properties.id===Je}),Jn=de.findIndex(function(xi){return xi.properties.id===$t});if(on>-1&&Jn>-1){var br=_t(re.geometry.coordinates,{isDrag:!0,isHover:!0});return this.setHelper("pointDrag"),de.splice(Jn,0,br),W.geometry.coordinates=Wr(Os(de)),this.syncLineNodes(W,de),this.setActiveLine(W),br}}}},{key:"enableSceneRenderAction",value:function(){this.sceneRender.enableDrag(),this.sceneRender.enableMouseMove(),this.sceneRender.enableDblClick()}},{key:"disableSceneRenderAction",value:function(){this.sceneRender.disableDrag(),this.sceneRender.disableMouseMove(),this.sceneRender.disableDblClick()}},{key:"enableLineRenderAction",value:function(){var T,W,re,de=this.options.editable;(T=this.lineRender)===null||T===void 0||T.enableUnClick(),de&&((W=this.lineRender)===null||W===void 0||W.enableHover(),(re=this.lineRender)===null||re===void 0||re.enableDrag())}},{key:"disableLineRenderAction",value:function(){var T,W,re;(T=this.lineRender)===null||T===void 0||T.disableUnClick(),(W=this.lineRender)===null||W===void 0||W.disableHover(),(re=this.lineRender)===null||re===void 0||re.disableDrag()}}]),_}(yl),lu=function(Re){xo(_,Re);var f=Ms(_);function _(){return gn(this,_),f.apply(this,arguments)}return zr(_,[{key:"dragItem",get:function(){return this.dragPolygon}},{key:"editItem",get:function(){return this.editPolygon}},{key:"polygonRender",get:function(){return this.render.polygon}},{key:"dragPolygon",get:function(){return this.getPolygonData().find(function(T){return T.properties.isDrag})}},{key:"drawPolygon",get:function(){return this.getPolygonData().find(function(T){return T.properties.isDraw})}},{key:"editPolygon",get:function(){return this.getPolygonData().find(function(T){var W=T.properties;return!W.isDraw&&W.isActive})}},{key:"hoverPolygon",get:function(){return this.getPolygonData().find(function(T){return T.properties.isHover})}},{key:"getDragPolygon",value:function(){return this.dragPolygon}},{key:"getDrawPolygon",value:function(){return this.drawPolygon}},{key:"getEditPolygon",value:function(){return this.editPolygon}},{key:"getRenderTypes",value:function(){return["polygon","line","dashLine","midPoint","point","text"]}},{key:"getData",value:function(){return this.getPolygonData()}},{key:"getMainLayer",value:function(){var T,W;return(T=(W=this.render.polygon)===null||W===void 0?void 0:W.getLayers())!==null&&T!==void 0?T:[]}},{key:"getDefaultOptions",value:function(T){var W=ft(ft({},ks(Vi(_.prototype),"getDefaultOptions",this).call(this,T)),{},{areaOptions:!1,helper:mo(Pu)});return T.areaOptions&&(W.areaOptions=ft(ft({},Rr),T.areaOptions)),W}},{key:"getAreaTexts",value:function(T){var W=this.options.areaOptions;if(!W)return[];var re=W.format,de=W.showWhen,Le=[],Je=T.filter(function($t){return $t.geometry.coordinates[0].length>=4});return de.includes("active")&&Je.filter(function($t){return $t.properties.isActive}).forEach(function($t){Le.push(Pa($t,{format:re},{isActive:!0}))}),de.includes("normal")&&Je.filter(function($t){return!$t.properties.isActive}).forEach(function($t){Le.push(Pa($t,{format:re},{isActive:!1}))}),Le}},{key:"getAllTexts",value:function(){return[].concat(As(ks(Vi(_.prototype),"getAllTexts",this).call(this)),As(this.getAreaTexts(this.getPolygonData())))}},{key:"getPolygonData",value:function(){return this.source.getRenderData("polygon")}},{key:"setPolygonData",value:function(T){return this.source.setRenderData("polygon",T)}},{key:"handleCreatePolygon",value:function(T,W){var re=zi(T,{nodes:T,line:W,isActive:!0,isDraw:!0});return this.setPolygonData(function(de){return sf({target:re,data:[].concat(As(de),[re]),otherHandler:function(Le){Le.properties.isActive=!1}})}),re}},{key:"handlePolygonUnClick",value:function(T){return this.clearActivePolygon(),T}},{key:"handlePolygonHover",value:function(T){return this.setCursor("polygonHover"),kd(T,this.hoverPolygon)||this.setPolygonData(function(W){return sf({target:T,data:W,targetHandler:function(re){re.properties.isHover=!0},otherHandler:function(re){re.properties.isHover=!1}})}),T}},{key:"handlePolygonUnHover",value:function(){this.resetCursor(),this.setPolygonData(function(T){return T.map(function(W){return W.properties.isHover=!1,W})})}},{key:"handlePolygonDragStart",value:function(T){return this.setActivePolygon(T,{isDrag:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("polygonDrag"),T}},{key:"bindPolygonRenderEvent",value:function(){var T,W,re,de;(T=this.polygonRender)===null||T===void 0||T.on(v.RenderEvent.UnClick,this.onPolygonUnClick.bind(this)),(W=this.polygonRender)===null||W===void 0||W.on(v.RenderEvent.Mousemove,this.onPolygonHover.bind(this)),(re=this.polygonRender)===null||re===void 0||re.on(v.RenderEvent.Mouseout,this.onPolygonUnHover.bind(this)),(de=this.polygonRender)===null||de===void 0||de.on(v.RenderEvent.Dragstart,this.onPolygonDragStart.bind(this))}},{key:"syncPolygonNodes",value:function(T,W){var re=Wr(Os([].concat(As(W),[Ac(W)]))),de=T.properties,Le=de.line;if(T.properties.nodes=W,T.geometry.coordinates=[hp(Yo(re))?re:re.reverse()],this.setPolygonData(function(br){return br.map(function(xi){return kd(xi,T)?T:xi})}),!kd(this.drawPolygon,T)){var Je=Le.properties.nodes,$t=As(W),on=Ac($t);$t.push(Je.length===W.length?_t(on.geometry.coordinates):Bo(Je));var Jn=Bo($t);Ke(on.geometry.coordinates,Jn.geometry.coordinates)||(Jn.geometry.coordinates=mo(on.geometry.coordinates)),this.syncLineNodes(Le,$t)}return T}},{key:"setActivePolygon",value:function(T){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setActiveLine(T.properties.line,W),this.setPolygonData(function(re){return sf({target:T,data:re,targetHandler:function(de){de.properties=ft(ft({},de.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},W)},otherHandler:function(de){de.properties=ft(ft({},de.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setTextData(this.getAllTexts()),T}},{key:"clearActivePolygon",value:function(){this.setPolygonData(function(T){return T.map(function(W){return W.properties=ft(ft({},W.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),W})}),this.clearActiveLine()}},{key:"onLineDragStart",value:function(T){var W=ks(Vi(_.prototype),"onLineDragStart",this).call(this,T),re=this.getPolygonData().find(function(de){return kd(de.properties.line,W)});return re&&(this.setActivePolygon(re,{isDrag:!0}),this.emit(v.DrawEvent.DragStart,re,this.getPolygonData())),W}},{key:"onLineUnClick",value:function(T){return this.editLine}},{key:"onLineDragEnd",value:function(T){var W=ks(Vi(_.prototype),"onLineDragEnd",this).call(this,T),re=this.dragPolygon;return W&&re&&(re.properties.isDrag=!1,this.emit(v.DrawEvent.DragEnd,re,this.getPolygonData()),this.emit(v.DrawEvent.Edit,re,this.getPolygonData())),W}},{key:"onPolygonUnClick",value:function(T){var W=this.editPolygon;if(W)return this.handlePolygonUnClick(W)}},{key:"onPolygonHover",value:function(T){if(!this.drawPolygon)return this.dragPolygon||this.setHelper("polygonHover"),this.handlePolygonHover(T.feature)}},{key:"onPolygonUnHover",value:function(T){if(!this.drawPolygon)return this.setHelper(this.addable?"draw":null),this.handlePolygonUnHover()}},{key:"onPolygonDragStart",value:function(T){if(this.options.editable&&!this.drawPolygon){var W=T.feature;return this.previousPosition=ua(T),this.setHelper("polygonDrag"),this.emit(v.DrawEvent.DragStart,W,this.getPolygonData()),this.handlePolygonDragStart(W)}}},{key:"onMidPointClick",value:function(T){var W=this.editPolygon,re=ks(Vi(_.prototype),"onMidPointClick",this).call(this,T);if(re&&W){var de=W.properties.line.properties.nodes;this.syncPolygonNodes(W,de.slice(0,de.length-1)),this.setActivePolygon(W)}return re}},{key:"onPointDragEnd",value:function(T){var W=this.editPolygon,re=ks(Vi(_.prototype),"onPointDragEnd",this).call(this,T);return re&&W&&this.emit(v.DrawEvent.Edit,W,this.getPolygonData()),re}},{key:"enablePolygonRenderAction",value:function(){var T,W,re,de=this.options.editable;(T=this.polygonRender)===null||T===void 0||T.enableUnClick(),de&&((W=this.polygonRender)===null||W===void 0||W.enableHover(),(re=this.polygonRender)===null||re===void 0||re.enableDrag())}},{key:"disablePolygonRenderAction",value:function(){var T,W,re;(T=this.polygonRender)===null||T===void 0||T.disableUnClick(),(W=this.polygonRender)===null||W===void 0||W.disableHover(),(re=this.polygonRender)===null||re===void 0||re.disableDrag()}},{key:"bindEnableEvent",value:function(){ks(Vi(_.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.enablePolygonRenderAction()}},{key:"unbindEnableEvent",value:function(){ks(Vi(_.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.disablePolygonRenderAction()}},{key:"bindThis",value:function(){ks(Vi(_.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this),this.bindSceneEvent=this.bindSceneEvent.bind(this),this.bindLineRenderEvent=this.bindLineRenderEvent.bind(this),this.bindMidPointRenderEvent=this.bindMidPointRenderEvent.bind(this),this.bindPolygonRenderEvent=this.bindPolygonRenderEvent.bind(this)}},{key:"setActiveFeature",value:function(T){var W=this.getTargetFeature(T);W?this.setActivePolygon(W):this.clearActivePolygon()}},{key:"resetFeatures",value:function(){var T=this.getPolygonData();this.drawPolygon&&(T=T.filter(function(W){return!W.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setLineData(function(W){return W.filter(function(re){return!re.properties.isDraw})}),this.setTextData(function(W){return W.filter(function(re){return!re.properties.isActive})})),this.editPolygon&&this.handlePolygonUnClick(this.editPolygon),this.setPolygonData(T.map(function(W){return W.properties=ft(ft({},W.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),W}))}}]),_}(Vl),Eu=function(Re){xo(_,Re);var f=Ms(_);function _(T,W){var re;return gn(this,_),(re=f.call(this,T,W)).onSceneDragStart=re.onSceneDragStart.bind(Ps(re)),re.onSceneDragEnd=re.onSceneDragEnd.bind(Ps(re)),re}return zr(_,[{key:"drawLine",get:function(){var T;return(T=this.drawPolygon)===null||T===void 0?void 0:T.properties.line}},{key:"isDragTrigger",get:function(){return this.options.trigger==="drag"}},{key:"isClickTrigger",get:function(){return this.options.trigger==="click"}},{key:"getDefaultOptions",value:function(T){var W=ft(ft({},ks(Vi(_.prototype),"getDefaultOptions",this).call(this,T)),{},{showMidPoint:!1,trigger:"click",autoActive:!1,helper:mo(eu)});return T.trigger==="drag"&&(W.helper=ft(ft({},W.helper),Vs)),W}},{key:"getMidPointsByLine",value:function(T){return[]}},{key:"handleCreatePolygon",value:function(T,W){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},de=W.properties.nodes;return zi(de.slice(0,de.length-1),ft({nodes:T,line:W},re))}},{key:"handleFirstNodeCreate",value:function(T){var W=_t(T.geometry.coordinates),re=this.handleCreatePolygonLine(T,W,{isDraw:!0,isActive:!0}),de=this.handleCreatePolygon([T,W],re,{isDraw:!0,isActive:!0});return this.setPolygonData(function(Le){return sf({target:de,data:[].concat(As(Le),[de]),targetHandler:function(Je){Je.properties=ft(ft({},Je.properties),{},{isDraw:!0,isActive:!0})}})}),this.emit(v.DrawEvent.AddNode,T,this.drawPolygon,this.getPolygonData()),this.setHelper("drawFinish"),T}},{key:"handleLastNodeCreate",value:function(T){var W=this.options,re=W.autoActive,de=W.editable,Le=this.drawPolygon;return Le&&(this.setLineData(function(Je){return[].concat(As(Je),[Le.properties.line])}),this.setActivePolygon(Le),re&&de||this.handlePolygonUnClick(Le),this.emit(v.DrawEvent.Add,Le,this.getPolygonData()),this.emit(v.DrawEvent.AddNode,Le.properties.nodes[1],this.drawPolygon,this.getPolygonData()),this.setHelper(de?re?"pointHover":"polygonHover":this.addable?"draw":null)),T}},{key:"onPointCreate",value:function(T){var W=this;if(this.addable&&!this.dragPoint&&!this.editLine&&this.isClickTrigger){var re=this.drawPolygon,de=ua(T),Le=this.handleCreatePoint(de);return re?requestAnimationFrame(function(){W.handleLastNodeCreate(Le)}):this.handleFirstNodeCreate(Le),Le}}},{key:"setActivePolygon",value:function(T){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.setActiveLine(T.properties.line,W),this.setPolygonData(function(de){return sf({target:T,data:de,targetHandler:function(Le){Le.properties=ft(ft({},Le.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},W)},otherHandler:function(Le){Le.properties=ft(ft({},Le.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(T.properties.nodes),this.setDashLineData([]);var re=this.getAllTexts();return this.setTextData(re),T}},{key:"onPointDragging",value:function(T){var W=this.dragPoint;if(W){var re=this.handlePointDragging(W,os(T)),de=this.editPolygon;return re&&de&&(this.syncPolygonNodes(de,de.properties.nodes.map(function(Le){return kd(Le,re)?re:Le})),this.setActivePolygon(de)),re}}},{key:"onSceneDragStart",value:function(T){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&(this.scene.setMapStatus({dragEnable:!1}),this.handleFirstNodeCreate(this.handleCreatePoint(ua(T))))}},{key:"onSceneDragEnd",value:function(T){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&this.drawPolygon&&(this.scene.setMapStatus({dragEnable:!1}),this.handleLastNodeCreate(this.handleCreatePoint(ua(T))))}},{key:"onSceneMouseMove",value:function(T){var W=this.drawPolygon;if(W){var re=W.properties.nodes,de=Ac(re),Le=Bo(re);Le.geometry.coordinates=ua(T),this.syncPolygonNodes(W,[de,Le]),this.setDashLineData([W.properties.line]),this.setTextData(this.getAllTexts()),this.resetCursor()}}},{key:"bindSceneDragEvent",value:function(){this.unbindSceneDragEvent(),this.sceneRender.on(v.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.on(v.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!1})}},{key:"unbindSceneDragEvent",value:function(){this.sceneRender.off(v.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.off(v.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!0})}},{key:"bindEnableEvent",value:function(){ks(Vi(_.prototype),"bindEnableEvent",this).call(this),this.isDragTrigger&&this.bindSceneDragEvent()}},{key:"unbindEnableEvent",value:function(){ks(Vi(_.prototype),"unbindEnableEvent",this).call(this),this.isDragTrigger&&this.unbindSceneDragEvent()}},{key:"bindThis",value:function(){ks(Vi(_.prototype),"bindThis",this).call(this),this.onSceneDragStart=this.onSceneDragStart.bind(this),this.onSceneDragEnd=this.onSceneDragEnd.bind(this)}}]),_}(lu),rs=function(Re){xo(_,Re);var f=Ms(_);function _(T,W){var re;return gn(this,_),(re=f.call(this,T,W)).bindPointRenderEvent(),re.bindSceneEvent(),re.bindMidPointRenderEvent(),re.bindLineRenderEvent(),re.bindPolygonRenderEvent(),re}return zr(_,[{key:"getDefaultOptions",value:function(T){var W=ft(ft({},ks(Vi(_.prototype),"getDefaultOptions",this).call(this,T)),{},{showMidPoint:!1,circleSteps:60});return W.distanceOptions&&(W.distanceOptions.showTotalDistance=!0,W.distanceOptions.showOnRadius===void 0&&(W.distanceOptions.showOnRadius=!0)),W.helper&&(W.helper=ft(ft({},W.helper),ea)),W}},{key:"getDistanceTexts",value:function(){var T=this.options.distanceOptions;if(!T)return[];var W=[],re=T.showWhen,de=T.showDashDistance,Le=T.format,Je=T.showTotalDistance;return W.push.apply(W,As(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!0,format:Le,showDashDistance:de})).concat(As(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:Je,format:Le,showWhen:re})))),W}},{key:"setData",value:function(T){var W=this,re=T.map(function(de){var Le,Je,$t;de.properties=ft(ft({},Ge()),de.properties);var on=(Le=de.properties)===null||Le===void 0?void 0:Le.nodes;if(((Je=on)===null||Je===void 0?void 0:Je.length)!==2){var Jn=ko(mu(de).geometry.coordinates,2),br=Jn[0],xi=Jn[1],Di=Js(de),Do=Di[2],Ao=(Di[1]+Di[3])/2;on=[_t([br,xi]),_t([Do,Ao])],de.properties.nodes=on}var Vo=on[0],Lo=on[1],co=!!(!(($t=de.properties)===null||$t===void 0)&&$t.isActive),Ys=de.properties.line;return Ys||(Ys=W.handleCreatePolygonLine(Vo,Lo,{isActive:co}),de.properties.line=Ys),W.handleCreatePolygon([Vo,Lo],Ys,ft(ft({},de.properties),{},{isActive:co}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:re,line:re.map(function(de){return de.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(T,W){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},de=this.getBoundaryPositions(T,W).map(function(Le){return _t(Le)});return Rt(de,re)}},{key:"syncPolygonNodes",value:function(T,W){var re=T.properties.line,de=this.getBoundaryPositions(W[0],W[1]);return T.properties.nodes=W,T.geometry.coordinates=[de],this.setPolygonData(function(Le){return Le.map(function(Je){return kd(Je,T)?T:Je})}),this.setPointData(T.properties.isDraw?[W[0]]:W),re.properties.nodes.forEach(function(Le,Je){Le.geometry.coordinates=de[Je]}),re.geometry.coordinates=de,T}},{key:"onLineDragging",value:function(T){var W=this.dragPolygon,re=ko(this.previousPosition,2),de=re[0],Le=re[1],Je=ks(Vi(_.prototype),"onLineDragging",this).call(this,T);if(W){var $t=ko(ua(T),2),on=$t[0],Jn=$t[1];W.properties.nodes.forEach(function(br){var xi=ko(br.geometry.coordinates,2);br.geometry.coordinates=[xi[0]+on-de,xi[1]+Jn-Le]}),this.syncPolygonNodes(W,W.properties.nodes),this.setActivePolygon(W,{isDrag:!0}),this.emit(v.DrawEvent.Dragging,W,this.getPolygonData())}return Je}},{key:"getBoundaryPositions",value:function(T,W){for(var re=this.options.circleSteps,de=pu(T,W,{units:"meters"}),Le=[],Je=0;re>Je;Je++)Le.push(Ud(T,de,-360*Je/re,{units:"meters"}).geometry.coordinates);return Le.push(Le[0]),Le}}]),_}(Eu),Jd=function(Re){xo(_,Re);var f=Ms(_);function _(T,W){var re;return gn(this,_),(re=f.call(this,T,W)).drawLineFinish=function(){var de,Le=re.drawLine,Je=(de=Le==null?void 0:Le.properties.nodes)!==null&&de!==void 0?de:[];if(Le&&(Je==null?void 0:Je.length)>1){re.setActiveLine(Le);var $t=re.options,on=$t.autoActive,Jn=$t.editable;on&&Jn||re.handleLineUnClick(Le),re.setHelper(Jn&&on?"pointHover":re.addable?"draw":null),re.emit(v.DrawEvent.Add,Le,re.getLineData())}},re.sceneRender.on(v.RenderEvent.DblClick,re.drawLineFinish),re.bindPointRenderEvent(),re.bindSceneEvent(),re.bindMidPointRenderEvent(),re.bindLineRenderEvent(),re}return zr(_,[{key:"dragItem",get:function(){return this.dragLine}},{key:"editItem",get:function(){return this.editLine}},{key:"getMainLayer",value:function(){var T,W;return(T=(W=this.render.line)===null||W===void 0?void 0:W.getLayers())!==null&&T!==void 0?T:[]}},{key:"setData",value:function(T){var W=T.map(function(re){var de,Le;return re.properties=ft(ft({},je()),(de=re.properties)!==null&&de!==void 0?de:{}),!((Le=re.properties.nodes)===null||Le===void 0)&&Le.length||(re.properties.nodes=Wr(re).map(function(Je){return _t(Je)})),re});this.source.setData({point:[],midPoint:[],dashLine:[],line:W}),this.setTextData(this.getAllTexts()),this.editLine&&this.setActiveLine(this.editLine)}},{key:"getData",value:function(){return this.getLineData()}},{key:"getRenderTypes",value:function(){return["line","dashLine","midPoint","point","text"]}},{key:"bindPointRenderEvent",value:function(){var T;ks(Vi(_.prototype),"bindPointRenderEvent",this).call(this),(T=this.pointRender)===null||T===void 0||T.on(v.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"onPointClick",value:function(T){var W,re=this,de=this.drawLine,Le=(W=de==null?void 0:de.properties.nodes)!==null&&W!==void 0?W:[],Je=T.feature;if(kd(Je,Bo(Le)))requestAnimationFrame(function(){re.drawLineFinish()});else{var $t=ko(Je.geometry.coordinates,2);T.lngLat={lng:$t[0],lat:$t[1]},this.onPointCreate(T)}}},{key:"removeNode",value:function(T,W){var re,de=this.getTargetFeature(W),Le=this.getTargetFeature(T,(re=de==null?void 0:de.properties.nodes)!==null&&re!==void 0?re:[]);if(de&&Le){var Je,$t=(Je=de==null?void 0:de.properties.nodes)!==null&&Je!==void 0?Je:[];if(3>$t.length)return;this.syncLineNodes(de,$t.filter(function(on){return!kd(Le,on)})),this.emit(v.DrawEvent.RemoveNode,Le,de,this.getLineData()),this.emit(v.DrawEvent.Edit,de,this.getLineData())}}},{key:"onPointContextMenu",value:function(T){var W,re=this.editLine,de=T.feature,Le=(W=re==null?void 0:re.properties.nodes)!==null&&W!==void 0?W:[];if(re&&Le.length>=3)return this.removeNode(de,re),this.scene.setMapStatus({dragEnable:!0}),de}},{key:"onPointCreate",value:function(T){if(this.addable){var W=ks(Vi(_.prototype),"onPointCreate",this).call(this,T);return W&&(this.setHelper("drawFinish"),this.emit(v.DrawEvent.AddNode,W,this.drawLine,this.getLineData())),W}}},{key:"onPointDragEnd",value:function(T){var W=this.editLine,re=ks(Vi(_.prototype),"onPointDragEnd",this).call(this,T);return W&&re&&this.emit(v.DrawEvent.Edit,W,this.getLineData()),re}},{key:"onLineDragStart",value:function(T){var W=ks(Vi(_.prototype),"onLineDragStart",this).call(this,T);return W&&this.emit(v.DrawEvent.DragStart,W,this.getLineData()),W}},{key:"onLineDragging",value:function(T){var W=ks(Vi(_.prototype),"onLineDragging",this).call(this,T);return W&&this.emit(v.DrawEvent.Dragging,W,this.getLineData()),W}},{key:"onLineDragEnd",value:function(T){var W=ks(Vi(_.prototype),"onLineDragEnd",this).call(this,T);return W&&(this.emit(v.DrawEvent.DragEnd,W,this.getLineData()),this.emit(v.DrawEvent.Edit,W,this.getLineData())),W}},{key:"onMidPointClick",value:function(T){var W=this.editLine,re=ks(Vi(_.prototype),"onMidPointClick",this).call(this,T);return W&&re&&(this.emit(v.DrawEvent.Edit,W,this.getLineData()),this.emit(v.DrawEvent.AddNode,re,W,this.getLineData())),re}},{key:"onSceneMouseMove",value:function(T){var W=this.drawLine;if(W){var re,de=Bo(W.properties.nodes),Le=ua(T);this.options.adsorbOptions&&(Le=(re=this.getAdsorbPosition(Le))!==null&&re!==void 0?re:Le),this.setDashLineData([tr([Le,de.geometry.coordinates])]),this.setTextData(this.getAllTexts())}}},{key:"setActiveFeature",value:function(T){var W=this.getTargetFeature(T);W?this.setActiveLine(W):this.clearActiveLine()}},{key:"resetFeatures",value:function(){var T=this.getLineData();this.drawLine&&(T=T.filter(function(W){return!W.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setTextData(function(W){return W.filter(function(re){return!re.properties.isActive})})),this.editLine&&this.handleLineUnClick(this.editLine),this.setLineData(T.map(function(W){return W.properties=ft(ft({},W.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),W}))}},{key:"enablePointRenderAction",value:function(){var T;ks(Vi(_.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((T=this.pointRender)===null||T===void 0||T.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var T;ks(Vi(_.prototype),"disablePointRenderAction",this).call(this),(T=this.pointRender)===null||T===void 0||T.disableContextMenu()}},{key:"bindEnableEvent",value:function(){ks(Vi(_.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.sceneRender.enableDblClick()}},{key:"unbindEnableEvent",value:function(){ks(Vi(_.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.sceneRender.disableDblClick()}},{key:"bindThis",value:function(){ks(Vi(_.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this),this.bindSceneEvent=this.bindSceneEvent.bind(this),this.bindLineRenderEvent=this.bindLineRenderEvent.bind(this),this.bindMidPointRenderEvent=this.bindMidPointRenderEvent.bind(this)}}]),_}(Vl),xd=function(Re){xo(_,Re);var f=Ms(_);function _(T,W){var re;return gn(this,_),(re=f.call(this,T,W)).bindPointRenderEvent(),re}return zr(_,[{key:"dragItem",get:function(){return this.dragPoint}},{key:"editItem",get:function(){return this.editPoint}},{key:"getDefaultOptions",value:function(T){var W=ft(ft({},this.getCommonOptions(T)),{},{helper:mo(Cl),initialData:T.initialData});return W.style.point=Bn,W}},{key:"bindEnableEvent",value:function(){ks(Vi(_.prototype),"bindEnableEvent",this).call(this),this.enablePointRenderAction()}},{key:"unbindEnableEvent",value:function(){ks(Vi(_.prototype),"unbindEnableEvent",this).call(this),this.disablePointRenderAction()}},{key:"getRenderTypes",value:function(){return["point"]}},{key:"getMainLayer",value:function(){var T,W;return(T=(W=this.render.point)===null||W===void 0?void 0:W.getLayers())!==null&&T!==void 0?T:[]}},{key:"setData",value:function(T){this.setPointData(T.map(function(W){var re;return W.properties=ft(ft({},th()),(re=W.properties)!==null&&re!==void 0?re:{}),W}))}},{key:"getData",value:function(){return this.getPointData()}},{key:"onPointCreate",value:function(T){if(this.addable){var W=ks(Vi(_.prototype),"onPointCreate",this).call(this,T);if(W)return this.options.editable&&this.setHelper("pointHover"),this.emit(v.DrawEvent.Add,W,this.getData()),W}else this.setPointData(function(re){return re.map(function(de){return de.properties=ft(ft({},de.properties),{},{isHover:!1,isActive:!1}),de})})}},{key:"onPointMouseMove",value:function(T){var W=ks(Vi(_.prototype),"onPointMouseMove",this).call(this,T);return this.options.editable&&!this.dragPoint&&this.setHelper("pointHover"),W}},{key:"onPointMouseOut",value:function(T){var W=ks(Vi(_.prototype),"onPointMouseOut",this).call(this,T);return this.setHelper(this.addable?"draw":null),W}},{key:"onPointDragStart",value:function(T){var W=ks(Vi(_.prototype),"onPointDragStart",this).call(this,T);return this.setHelper("pointDrag"),this.emit(v.DrawEvent.DragStart,W,this.getData()),W}},{key:"onPointDragging",value:function(T){var W=ks(Vi(_.prototype),"onPointDragging",this).call(this,T);return W&&this.options.editable&&this.emit(v.DrawEvent.Dragging,W,this.getData()),W}},{key:"onPointDragEnd",value:function(T){var W=ks(Vi(_.prototype),"onPointDragEnd",this).call(this,T);return W&&this.options.editable&&(this.setHelper("pointHover"),this.emit(v.DrawEvent.DragEnd,W,this.getData()),this.emit(v.DrawEvent.Edit,W,this.getData())),W}},{key:"bindThis",value:function(){ks(Vi(_.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this)}},{key:"onSceneMouseMove",value:function(T){}},{key:"setActiveFeature",value:function(T){var W=this.getTargetFeature(T);this.setPointData(function(re){return re.map(function(de){return de.properties.isActive=kd(W,de),de})})}},{key:"resetFeatures",value:function(){this.setPointData(function(T){return T.map(function(W){return W.properties=ft(ft({},W.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),W})})}}]),_}(ka),Fp=function(Re){xo(_,Re);var f=Ms(_);function _(T,W){var re;return gn(this,_),(re=f.call(this,T,W)).drawPolygonFinish=function(){var de,Le=re.drawPolygon,Je=(de=Le==null?void 0:Le.properties.nodes)!==null&&de!==void 0?de:[];if(Le&&Je.length>=3){Le.properties.isDraw=!1,re.syncPolygonNodes(Le,Je),re.setActivePolygon(Le);var $t=re.options,on=$t.autoActive,Jn=$t.editable;on&&Jn||re.handlePolygonUnClick(Le),re.setHelper(Jn?on?"pointHover":"polygonHover":re.addable?"draw":null),re.emit(v.DrawEvent.Add,Le,re.getPolygonData())}},re.sceneRender.on(v.RenderEvent.DblClick,re.drawPolygonFinish),re.bindPointRenderEvent(),re.bindSceneEvent(),re.bindMidPointRenderEvent(),re.bindLineRenderEvent(),re.bindPolygonRenderEvent(),re}return zr(_,[{key:"getDefaultOptions",value:function(T){return ft(ft({},ks(Vi(_.prototype),"getDefaultOptions",this).call(this,T)),{},{liveUpdate:!1})}},{key:"setData",value:function(T){var W=T.map(function(re){var de,Le;if(re.properties=ft(ft({},Ge()),(de=re.properties)!==null&&de!==void 0?de:{}),!(!((Le=re.properties.nodes)===null||Le===void 0)&&Le.length)){var Je=Wr(re);Je=Je.slice(0,Je.length-1),re.properties.nodes=Je.map(function(on){return _t(on)})}if(!re.properties.line){var $t=re.properties.nodes;re.properties.line=Rt([].concat(As($t),[_t(Ac($t).geometry.coordinates)]))}return re});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:W,line:W.map(function(re){return re.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"onPointCreate",value:function(T){if(this.addable&&!this.dragPoint){var W=ks(Vi(_.prototype),"onPointCreate",this).call(this,T),re=this.drawPolygon,de=this.drawLine;return W&&(re?(this.syncPolygonNodes(re,[].concat(As(re.properties.nodes),[W])),this.setDashLineData([tr([ua(T),re.properties.nodes[0].geometry.coordinates])]),re.properties.nodes.length>1&&this.setHelper("drawFinish")):de&&(this.handleCreatePolygon([W],de),this.setHelper("drawContinue")),this.emit(v.DrawEvent.AddNode,W,re,this.getPolygonData())),W}}},{key:"onPointClick",value:function(T){var W=this,re=this.drawPolygon,de=T.feature;if(re){var Le=re.properties.nodes;if(Le.length<3||!kd(Ac(Le),de)&&!kd(Bo(Le),de)){var Je=ko(de.geometry.coordinates,2);T.lngLat={lng:Je[0],lat:Je[1]},this.onPointCreate(T)}else requestAnimationFrame(function(){W.drawPolygonFinish()})}}},{key:"onPointDragging",value:function(T){var W=this.dragPoint,re=this.editPolygon;if(W&&re){var de=re.properties.line;de.properties.nodes=de.properties.nodes.map(function(xi){return kd(xi,W)?W:xi});var Le=de.properties.nodes,Je=Le.slice(0,Le.length-1),$t=Ac(Le),on=Bo(Le),Jn=kd($t,W)||kd(on,W);if(Jn&&($t.geometry.coordinates=on.geometry.coordinates=ua(T)),this.options.adsorbOptions&&Jn){var br=this.resetAdsorbLngLat(T);br&&($t.geometry.coordinates=on.geometry.coordinates=br)}ks(Vi(_.prototype),"onPointDragging",this).call(this,T),this.syncPolygonNodes(re,Je),this.setActivePolygon(re)}return W}},{key:"onLineDragging",value:function(T){var W=this.dragPolygon,re=ks(Vi(_.prototype),"onLineDragging",this).call(this,T);if(re&&W){var de=re.properties.nodes;this.syncPolygonNodes(W,de.slice(0,de.length-1)),this.emit(v.DrawEvent.Dragging,W,this.getPolygonData())}return re}},{key:"onMidPointClick",value:function(T){var W=ks(Vi(_.prototype),"onMidPointClick",this).call(this,T),re=this.editPolygon;return W&&re&&(this.emit(v.DrawEvent.Edit,re,this.getPolygonData()),this.emit(v.DrawEvent.AddNode,W,re,this.getPolygonData())),W}},{key:"onSceneMouseMove",value:function(T){var W,re=this.drawPolygon,de=(W=re==null?void 0:re.properties.nodes)!==null&&W!==void 0?W:[];if(re&&de.length){this.options.adsorbOptions&&this.resetAdsorbLngLat(T);var Le=ua(T),Je=[];if(Je.push(tr([Le,Ac(de).geometry.coordinates])),de.length>1&&Je.push(tr([Le,Bo(de).geometry.coordinates])),this.options.liveUpdate&&de.length>=2){var $t=Wr(Os(de));re.geometry.coordinates=[[].concat(As($t),[Le,$t[0]])],this.setPolygonData(this.getPolygonData())}this.setDashLineData(Je),this.setTextData(this.getAllTexts())}}},{key:"removeNode",value:function(T,W){var re,de=this.getTargetFeature(W),Le=this.getTargetFeature(T,(re=de==null?void 0:de.properties.nodes)!==null&&re!==void 0?re:[]);if(de&&Le){var Je,$t=(Je=de==null?void 0:de.properties.nodes)!==null&&Je!==void 0?Je:[];if(4>$t.length)return;this.syncPolygonNodes(de,$t.filter(function(on){return!kd(Le,on)})),this.emit(v.DrawEvent.RemoveNode,Le,de,this.getLineData()),this.emit(v.DrawEvent.Edit,de,this.getPolygonData())}}},{key:"onPointContextMenu",value:function(T){var W,re=this.editPolygon,de=T.feature,Le=(W=re==null?void 0:re.properties.nodes)!==null&&W!==void 0?W:[];if(re&&Le.length>=4)return Le.find(function(Je){return kd(Je,de)})||(de=Le[0]),this.removeNode(de,re),de}},{key:"bindPointRenderEvent",value:function(){var T;ks(Vi(_.prototype),"bindPointRenderEvent",this).call(this),(T=this.pointRender)===null||T===void 0||T.on(v.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"enablePointRenderAction",value:function(){var T;ks(Vi(_.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((T=this.pointRender)===null||T===void 0||T.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var T;ks(Vi(_.prototype),"disablePointRenderAction",this).call(this),(T=this.pointRender)===null||T===void 0||T.disableContextMenu()}}]),_}(lu),tg=function(Re){xo(_,Re);var f=Ms(_);function _(T,W){var re;return gn(this,_),(re=f.call(this,T,W)).bindPointRenderEvent(),re.bindSceneEvent(),re.bindMidPointRenderEvent(),re.bindLineRenderEvent(),re.bindPolygonRenderEvent(),re}return zr(_,[{key:"getDefaultOptions",value:function(T){var W=ks(Vi(_.prototype),"getDefaultOptions",this).call(this,T);return W.helper&&(W.helper=ft(ft({},W.helper),Po)),W}},{key:"setData",value:function(T){var W=this,re=T.map(function(de){var Le,Je,$t;de.properties=ft(ft({},Ge()),(Le=de.properties)!==null&&Le!==void 0?Le:{});var on=de.properties.nodes;if(((Je=on)===null||Je===void 0?void 0:Je.length)!==2){var Jn=ko(Js(de),4),br=Jn[2],xi=Jn[3];on=[_t([Jn[0],Jn[1]]),_t([br,xi])],de.properties.nodes=on}var Di=ko(on,2),Do=Di[0],Ao=Di[1],Vo=!!(!(($t=de.properties)===null||$t===void 0)&&$t.isActive),Lo=de.properties.line;return Lo||(Lo=W.handleCreatePolygonLine(Do,Ao,{isActive:Vo}),de.properties.line=Lo),W.handleCreatePolygon([Do,Ao],Lo,ft(ft({},de.properties),{},{isActive:Vo}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:re,line:re.map(function(de){return de.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(T,W){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},de=Wr(mh(Os([T,W]))).map(function(Le,Je){return Je===0?T:Je===2?W:_t(Le)});return Rt(de,re)}},{key:"syncPolygonNodes",value:function(T,W){var re=T.properties.line,de=Wr(mh(Os(W)));T.properties.nodes=W,T.geometry.coordinates=[de],this.setPolygonData(function($t){return $t.map(function(on){return kd(on,T)?T:on})}),this.setPointData(T.properties.isDraw?[W[0]]:W);var Le=re.properties.nodes,Je=de.filter(function($t){return!Ke($t,W[0].geometry.coordinates)&&!Ke($t,W[1].geometry.coordinates)});return Le.forEach(function($t,on){var Jn=[0,0];switch(on){case 0:Jn=W[0].geometry.coordinates;break;case 1:Jn=Je[0];break;case 2:Jn=W[1].geometry.coordinates;break;case 3:Jn=Je[1];break;case 4:Jn=mo(W[0].geometry.coordinates)}$t.geometry.coordinates=Jn}),re.geometry.coordinates=de,T}},{key:"onLineDragging",value:function(T){var W=ks(Vi(_.prototype),"onLineDragging",this).call(this,T),re=this.dragPolygon;if(W&&re){var de=re.properties.line.properties.nodes;this.syncPolygonNodes(re,[de[0],de[2]]),this.setActivePolygon(re,{isDrag:!0}),this.emit(v.DrawEvent.Dragging,re,this.getPolygonData())}return W}}]),_}(Eu),og=function(Re,f){for(var _=Re;_&&!Array.from(_.classList).includes(f);)_=_.parentElement;return _},qm=["point","line","polygon","rect","circle","clear"],Sv={point:"#l7draw-point",line:"#l7draw-line",polygon:"#l7draw-polygon",rect:"#l7draw-rect",circle:"#l7draw-circle",clear:"#l7draw-qingkong"},h0={point:xd,line:Jd,polygon:Fp,rect:tg,circle:rs},xm="data-draw-type",Jm="l7-draw-control",wm="".concat(Jm,"__btn"),gg="".concat(wm,"--active");(function(Re){var f,_,T,W,re,de='',Le=(Le=document.getElementsByTagName("script"))[Le.length-1].getAttribute("data-injectcss");if(Le&&!Re.__iconfont__svg__cssinject__){Re.__iconfont__svg__cssinject__=!0;try{document.write("")}catch($t){console&&console.log($t)}}function Je(){re||(re=!0,T())}f=function(){var $t,on=document.createElement("div");on.innerHTML=de,de=null,(on=on.getElementsByTagName("svg")[0])&&(on.setAttribute("aria-hidden","true"),on.style.position="absolute",on.style.width=0,on.style.height=0,on.style.overflow="hidden",($t=document.body).firstChild?function(Jn,br){br.parentNode.insertBefore(Jn,br)}(on,$t.firstChild):$t.appendChild(on))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(f,0):(_=function(){document.removeEventListener("DOMContentLoaded",_,!1),f()},document.addEventListener("DOMContentLoaded",_,!1)):document.attachEvent&&(T=f,W=Re.document,re=!1,function $t(){try{W.documentElement.doScroll("left")}catch(on){return void setTimeout($t,50)}Je()}(),W.onreadystatechange=function(){W.readyState=="complete"&&(W.onreadystatechange=null,Je())})})(window),Ia(".l7-draw-control{display:flex;overflow:hidden;background:#fff;border-radius:2px;box-shadow:0 0 20px rgba(0,0,0,.14901960784313725)}.l7-draw-control__btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;text-align:center;background:transparent;border-width:0;border-right:1px solid #e0e0e0;outline:0;cursor:pointer}.l7-draw-control__btn:hover{background-color:#e5e5e5}.l7-draw-control__btn:last-child{border-right:0;border-bottom:0}.l7-draw-control__btn .l7-draw-icon{width:26px;height:26px;overflow:hidden;fill:currentColor}.l7-draw-control__btn--active svg{color:#0370fe}");var Nf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ig=/^\w*$/,Df=function(Re,f){if(Sp(Re))return!1;var _=typeof Re;return!(_!="number"&&_!="symbol"&&_!="boolean"&&Re!=null&&!Rd(Re))||Ig.test(Re)||!Nf.test(Re)||f!=null&&Re in Object(f)};function lp(Re,f){if(typeof Re!="function"||f!=null&&typeof f!="function")throw new TypeError("Expected a function");var _=function(){var T=arguments,W=f?f.apply(this,T):T[0],re=_.cache;if(re.has(W))return re.get(W);var de=Re.apply(this,T);return _.cache=re.set(W,de)||re,de};return _.cache=new(lp.Cache||ch),_}lp.Cache=ch;var Qm=lp,bp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hp=/\\(\\)?/g,Pc=function(Re){var f=Qm(Re,function(T){return _.size===500&&_.clear(),T}),_=f.cache;return f}(function(Re){var f=[];return Re.charCodeAt(0)===46&&f.push(""),Re.replace(bp,function(_,T,W,re){f.push(W?re.replace(Hp,"$1"):T||_)}),f}),cm=Gf?Gf.prototype:void 0,E0=cm?cm.toString:void 0,fc=function Re(f){if(typeof f=="string")return f;if(Sp(f))return Su(f,Re)+"";if(Rd(f))return E0?E0.call(f):"";var _=f+"";return _=="0"&&1/f==-1/0?"-0":_},Fu=function(Re){return Re==null?"":fc(Re)},Nv=function(Re,f){return Sp(Re)?Re:Df(Re,f)?[Re]:Pc(Fu(Re))},Hm=function(Re){if(typeof Re=="string"||Rd(Re))return Re;var f=Re+"";return f=="0"&&1/Re==-1/0?"-0":f},cg=function(Re,f){for(var _=0,T=(f=Nv(f,Re)).length;Re!=null&&T>_;)Re=Re[Hm(f[_++])];return _&&_==T?Re:void 0},Ff=function(Re,f,_){var T=-1,W=Re.length;0>f&&(f=-f>W?0:W+f),0>(_=_>W?W:_)&&(_+=W),W=f>_?0:_-f>>>0,f>>>=0;for(var re=Array(W);++Tf.length?Re:cg(Re,Ff(f,0,-1))},af=function(Re,f){return f=Nv(f,Re),(Re=T0(Re,f))==null||delete Re[Hm(Bo(f))]},F1=function(Re){return so(Re)?void 0:Re},mm=Gf?Gf.isConcatSpreadable:void 0,s0=function(Re){return Sp(Re)||Vp(Re)||!!(mm&&Re&&Re[mm])},a0=function Re(f,_,T,W,re){var de=-1,Le=f.length;for(T||(T=s0),re||(re=[]);++de0&&T(Je)?_>1?Re(Je,_-1,T,W,re):c0(re,Je):W||(re[re.length]=Je)}return re},Ws=function(Re){return Re!=null&&Re.length?a0(Re,1):[]},qy=function(Re){return Cu(cs(Re,void 0,Ws),Re+"")}(function(Re,f){var _={};if(Re==null)return _;var T=!1;f=Su(f,function(re){return re=Nv(re,Re),T||(T=re.length>1),re}),zp(Re,Zm(Re),_),T&&(_=Zo(_,7,F1));for(var W=f.length;W--;)af(_,f[W]);return _}),_g=qy,J0=function(Re){xo(_,Re);var f=Ms(_);function _(T){var W,re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return gn(this,_),(W=f.call(this,re)).controlOption=void 0,W.sceneInstance=void 0,W.drawMap={},W.btnMap={},W.activeType=null,W.emitDataChange=j(function(){W.emit(v.ControlEvent.DataChange,W.getDrawData())},16),W.emitDrawSelect=function(de,Le){W.emit(v.ControlEvent.DrawSelect,de,Le)},W.sceneInstance=T,W.controlOption=ft(ft({},W.getDefault()),re||{}),W.onBtnClick=W.onBtnClick.bind(Ps(W)),W}return zr(_,[{key:"getActiveType",value:function(){return this.activeType}},{key:"getDefault",value:function(){return ft(ft({},ks(Vi(_.prototype),"getDefault",this).call(this)),{},{className:"",buttonClassName:"",activeButtonClassName:"",style:"",position:"topleft",commonDrawOptions:{},drawConfig:{point:!0,line:!0,polygon:!0,rect:!0,circle:!0,clear:!0}})}},{key:"addTo",value:function(T){return ks(Vi(_.prototype),"addTo",this).call(this,T),this.init(),this}},{key:"onAdd",value:function(){var T=this.controlOption,W=T.className,re=T.style,de=P.DOM.create("div","".concat(Jm," ").concat(W));return re&&de.setAttribute("style",re),de}},{key:"onRemove",value:function(){Object.values(this.drawMap).forEach(function(T){T.clear(!0)})}},{key:"init",value:function(){var T,W=this,re=[];Object.entries(this.controlOption.drawConfig).filter(function(de){var Le=ko(de,2);return Le[1]}).sort(function(de,Le){var Je=ko(de,2)[1],$t=ko(Le,2)[1],on=Number.MAX_SAFE_INTEGER;return(typeof Je=="boolean"?on:Je.order)-(typeof $t=="boolean"?on:$t.order)}).map(function(de){var Le=ko(de,2),Je=Le[1];return[Le[0],Lt(Je)==="object"?_g(Je,"order"):Je]}).forEach(function(de){var Le=ko(de,2),Je=Le[0],$t=Le[1];if(Lt($t)==="object"&&$t.button){var on=$t.button;on.classList.contains("l7-draw-control__btn")||on.classList.add("l7-draw-control__btn"),W.btnMap[Je]=on,re.push(on)}else if($t&&qm.includes(Je)){var Jn=W.initBtn(Je);Jn.addEventListener("click",W.onBtnClick),re.push(Jn),W.btnMap[Je]=Jn;var br=h0[Je];if(br&&W.sceneInstance){var xi=new br(W.sceneInstance,ft(ft({},W.controlOption.commonDrawOptions),typeof $t=="boolean"?{}:$t));xi.on(v.DrawEvent.Change,W.emitDataChange),xi.on(v.DrawEvent.Select,function(Di){W.emitDrawSelect(Je,Di)}),W.drawMap[Je]=xi}}}),(T=this.container).append.apply(T,re),this.controlOption.defaultActiveType&&this.onDrawClick(this.controlOption.defaultActiveType)}},{key:"getDrawData",value:function(){return No(Kh(this.drawMap).map(function(T){var W=ko(T,2);return[W[0],W[1].getData()]}))}},{key:"getTypeDraw",value:function(T){var W;return(W=this.drawMap[T])!==null&&W!==void 0?W:null}},{key:"onBtnClick",value:function(T){var W=og(T.target,wm);if(W){var re=W.getAttribute(xm);re==="clear"?this.clearDrawData():this.onDrawClick(re)}}},{key:"setActiveType",value:function(T){var W=null,re=this.activeType;if(re){var de,Le=this.btnMap[re];if(Le){P.DOM.removeClass(Le,gg);var Je=this.controlOption.activeButtonClassName;Je&&P.DOM.removeClass(Le,Je)}(de=this.drawMap[re])===null||de===void 0||de.disable(),W=null}if(re!==T&&T){var $t;($t=this.drawMap[T])===null||$t===void 0||$t.enable();var on=this.btnMap[T];on&&P.DOM.addClass(on,"".concat(gg," ").concat(this.controlOption.activeButtonClassName)),W=T}this.activeType=W,this.emit(v.ControlEvent.DrawChange,W)}},{key:"onDrawClick",value:function(T){this.setActiveType(T)}},{key:"clearDrawData",value:function(){Object.values(this.drawMap).forEach(function(T){T==null||T.clear()}),this.emit(v.ControlEvent.DrawClear)}},{key:"initBtn",value:function(T){var W=P.DOM.create("button","".concat(wm," ").concat(this.controlOption.buttonClassName));return W.innerHTML=``),W.setAttribute(xm,T),W}}]),_}(P.Control);v.ACTIVE_COLOR=Ee,v.BaseMode=La,v.CircleDrawer=rs,v.DEFAULT_ADSORB_CONFIG=dt,v.DEFAULT_AREA_OPTIONS=Rr,v.DEFAULT_COMMON_OPTIONS=Ne,v.DEFAULT_CURSOR_MAP=w,v.DEFAULT_DISTANCE_OPTIONS=Xn,v.DEFAULT_HISTORY_CONFIG=Xr,v.DEFAULT_KEYBOARD_CONFIG=Ze,v.DEFAULT_MID_POINT_STYLE=tn,v.DEFAULT_NODE_NORMAL_STYLE=Gt,v.DEFAULT_NODE_STYLE=Pr,v.DEFAULT_POINT_NORMAL_STYLE=ct,v.DEFAULT_POINT_STYLE=Bn,v.DEFAULT_POPUP_CONFIG=ht,v.DEFAULT_SOURCE_DATA=b,v.DEFAULT_STYLE=J,v.DEFAULT_TEXT_NORMAL_STYLE=G,v.DashLineRender=fg,v.DragPolygonMode=Eu,v.DrawCircle=rs,v.DrawControl=J0,v.DrawLine=Jd,v.DrawPoint=xd,v.DrawPolygon=Fp,v.DrawRect=tg,v.LayerRender=Cp,v.LineDrawer=Jd,v.LineMode=Vl,v.LineRender=le,v.MidPointMode=yl,v.MidPointRender=ge,v.NORMAL_COLOR=ie,v.PointDrawer=xd,v.PointMode=ka,v.PointRender=ot,v.PolygonDrawer=Fp,v.PolygonMode=lu,v.PolygonRender=dn,v.RENDER_MAP=D,v.RectDrawer=tg,v.SceneRender=or,v.Source=_s,v.TextRender=Ie,v.calcAreaText=Pa,v.calcDistanceTextsByLine=Jo,v.createDashLine=tr,v.createLineFeature=Rt,v.createPointFeature=_t,v.createPolygonFeature=zi,v.findMinIndex=nl,v.getAdsorbFeature=Zi,v.getAdsorbLine=Us,v.getAdsorbPoint=Io,v.getDefaultLineProperties=je,v.getDefaultPointProperties=th,v.getDefaultPolygonProperties=Ge,v.getLineCenterPoint=Ho,v.getLngLat=os,v.getMapDom=Ti,v.getParentByClassName=og,v.getPosition=ua,v.getSingleColorStyle=function(Re){return{point:{normal:{color:Re},hover:{color:Re},active:{color:Re}},line:{normal:{color:Re},hover:{color:Re},active:{color:Re}},polygon:{normal:{color:Re},hover:{color:Re},active:{color:Re},style:{opacity:.2}},text:{normal:{color:Re},active:{color:Re}},midPoint:{normal:{color:Re}},dashLine:{normal:{color:Re}}}},v.getUuid=Fl,v.isDev=!1,v.isSameFeature=kd,v.resetEventLngLat=pl,v.splitByPosition=Zs,v.transLngLat2Position=Go,v.updateTargetFeature=sf,Object.defineProperty(v,"__esModule",{value:!0})})},5076:function(yt,Y,y){"use strict";y.r(Y),y.d(Y,{AJAXError:function(){return Ns},AttributeType:function(){return Id},BKDRHash:function(){return Ah},BaiduMap:function(){return Ez},BaseLayer:function(){return s_},BaseMapService:function(){return uE},BaseMapWrapper:function(){return XC},BaseModel:function(){return ec},BasePostProcessingPass:function(){return _b},BlendType:function(){return wd},ButtonControl:function(){return kt},CameraUniform:function(){return b_},CanvasLayer:function(){return IC},CanvasUpdateType:function(){return Bf},CityBuildingLayer:function(){return qV},Control:function(){return ue},CoordinateSystem:function(){return Uh},CoordinateUniform:function(){return Yd},DOM:function(){return v},Earth:function(){return OG},EarthLayer:function(){return r6},ExportImage:function(){return Xu},FrequencyController:function(){return Iu},Fullscreen:function(){return Ap},GaodeMap:function(){return Fw},GaodeMapV1:function(){return PH},GaodeMapV2:function(){return Fw},GeoLocate:function(){return ng},GeometryLayer:function(){return m1},HeatmapLayer:function(){return bO},IDebugLog:function(){return Uv},ILayerStage:function(){return Ll},ImageLayer:function(){return HS},InteractionEvent:function(){return Xp},LRUCache:function(){return Od},LayerPopup:function(){return H1},LayerSwitch:function(){return gu},LineLayer:function(){return KS},LineTriangulation:function(){return sn},LinearDir:function(){return If},LoadTileDataStatus:function(){return Qp},Logo:function(){return zt},Map:function(){return cI},MapLibre:function(){return V2},MapServiceEvent:function(){return x_},MapTheme:function(){return Es},MapType:function(){return nd},Mapbox:function(){return lU},Marker:function(){return E2},MarkerLayer:function(){return x},MaskLayer:function(){return s6},MaskOperation:function(){return as},MouseLocation:function(){return nf},PassType:function(){return Vd},PointFillTriangulation:function(){return rn},PointLayer:function(){return Ew},PolygonLayer:function(){return Vx},PopperControl:function(){return ls},Popup:function(){return n0},PositionType:function(){return oo},RasterLayer:function(){return $4},RasterTileType:function(){return Kg},Satistics:function(){return P},Scale:function(){return yg},ScaleTypes:function(){return B0},Scene:function(){return xL},SceneConifg:function(){return Ni},SceneEventList:function(){return w2},SelectControl:function(){return wl},SizeUnitType:function(){return Lf},Source:function(){return yw},SourceTile:function(){return Bh},StencilType:function(){return Fd},StyleScaleType:function(){return Bx},TYPES:function(){return Zs},TencentMap:function(){return pU},TextureBlend:function(){return Yp},TileDebugLayer:function(){return lB},TilesetManager:function(){return Kf},UpdateTileStrategy:function(){return pp},Viewport:function(){return YC},WindLayer:function(){return ZW},WorkerSourceMap:function(){return Fr},Zoom:function(){return Z0},aProjectFlat:function(){return Md},amap2Project:function(){return Bs},amap2UnProject:function(){return Ua},anchorTranslate:function(){return Ut},anchorType:function(){return mn},applyAnchorClass:function(){return en},bBoxToBounds:function(){return ju},bindAll:function(){return nc},boundsContains:function(){return ac},calAngle:function(){return qc},calDistance:function(){return Gu},calculateCentroid:function(){return Bd},calculatePointsCenterAndRadius:function(){return Hh},container:function(){return sy},createLayerContainer:function(){return Nx},createSceneContainer:function(){return j_},decodePickingColor:function(){return Bi},djb2hash:function(){return bh},encodePickingColor:function(){return Nr},executeWorkerTask:function(){return Yr},expandUrl:function(){return jc},extent:function(){return Th},flow:function(){return Qh},formatImage:function(){return In},generateCatRamp:function(){return ns},generateColorRamp:function(){return Kr},generateCustomRamp:function(){return gs},generateLinearRamp:function(){return Qi},generateQuantizeRamp:function(){return Ur},getAngle:function(){return fh},getArrayBuffer:function(){return di},getBBoxFromPoints:function(){return Cd},getCullFace:function(){return Jr},getData:function(){return Ln},getDefaultDomain:function(){return ni},getImage:function(){return fr},getJSON:function(){return fo},getProtocolAction:function(){return Is},getReferrer:function(){return au},getTileIndices:function(){return Rp},getTileWarpXY:function(){return Dp},getURLFromTemplate:function(){return zh},getWMTSURLFromTemplate:function(){return Xd},gl:function(){return Ai},guid:function(){return su},isAndroid:function(){return Bl},isColor:function(){return gi},isImageBitmap:function(){return Ta},isPC:function(){return Sl},isURLTemplate:function(){return Eh},isWorker:function(){return Xa},isiOS:function(){return Mu},latitude:function(){return _d},lazyInject:function(){return I0},lazyMultiInject:function(){return gT},lineAtOffset:function(){return qd},lineAtOffsetAsyc:function(){return ld},lineStyleType:function(){return uf},lngLatInExtent:function(){return vd},lngLatToMeters:function(){return Kd},lnglatDistance:function(){return Ya},lodashUtil:function(){return fs},longitude:function(){return jf},makeXMLHttpRequestPromise:function(){return Xi},metersToLngLat:function(){return Vf},normalize:function(){return uc},osmLonLat2TileXY:function(){return kf},osmTileXY2LonLat:function(){return _p},packCircleVertex:function(){return qL},padBounds:function(){return ou},polygonFillTriangulation:function(){return fn},postData:function(){return Fs},project:function(){return ml},removeDuplicateUniforms:function(){return Pt},rgb2arr:function(){return mi},sameOrigin:function(){return it},setL7WorkerSource:function(){return gr},tileToBounds:function(){return Du},tranfrormCoord:function(){return yd},unProjectFlat:function(){return jh},validateLngLat:function(){return Qd},version:function(){return sk}});var v={};y.r(v),y.d(v,{DPR:function(){return Un},addClass:function(){return ba},addStyle:function(){return Wr},appendElementType:function(){return Js},clearChildren:function(){return ga},create:function(){return Os},css2Style:function(){return us},empty:function(){return lh},findParentElement:function(){return Kl},getClass:function(){return wh},getContainer:function(){return hl},getDiffRect:function(){return es},getStyleList:function(){return Qr},getViewPortScale:function(){return er},hasClass:function(){return pc},printCanvas:function(){return wi},remove:function(){return Cs},removeClass:function(){return Yu},removeStyle:function(){return _o},setChecked:function(){return Ma},setClass:function(){return Hu},setTransform:function(){return ru},setUnDraggable:function(){return $a},splitWords:function(){return Li},triggerResize:function(){return Tu},trim:function(){return Xo}});var P={};y.r(P),y.d(P,{getColumn:function(){return ih},getSatByColumn:function(){return Sd},max:function(){return yc},mean:function(){return Mf},min:function(){return Yh},mode:function(){return yf},statMap:function(){return Yc},sum:function(){return rh}});var w={};y.r(w),y.d(w,{add:function(){return xl},adjoint:function(){return Hm},clone:function(){return Hp},copy:function(){return Pc},create:function(){return bp},determinant:function(){return cg},equals:function(){return _u},exactEquals:function(){return sh},frob:function(){return Fa},fromQuat:function(){return $t},fromQuat2:function(){return T},fromRotation:function(){return _g},fromRotationTranslation:function(){return _},fromRotationTranslationScale:function(){return Le},fromRotationTranslationScaleOrigin:function(){return Je},fromScaling:function(){return qy},fromTranslation:function(){return Ws},fromValues:function(){return cm},fromXRotation:function(){return J0},fromYRotation:function(){return Re},fromZRotation:function(){return f},frustum:function(){return on},getRotation:function(){return de},getScaling:function(){return re},getTranslation:function(){return W},identity:function(){return fc},invert:function(){return Nv},lookAt:function(){return Lo},mul:function(){return Bc},multiply:function(){return Ff},multiplyScalar:function(){return $u},multiplyScalarAndAdd:function(){return Lu},ortho:function(){return Ao},orthoNO:function(){return Do},orthoZO:function(){return Vo},perspective:function(){return br},perspectiveFromFieldOfView:function(){return Di},perspectiveNO:function(){return Jn},perspectiveZO:function(){return xi},rotate:function(){return F1},rotateX:function(){return mm},rotateY:function(){return s0},rotateZ:function(){return a0},scale:function(){return af},set:function(){return E0},str:function(){return Ys},sub:function(){return Nn},subtract:function(){return cu},targetTo:function(){return co},translate:function(){return T0},transpose:function(){return Fu}});var b={};y.r(b),y.d(b,{add:function(){return WJ},angle:function(){return iO},bezier:function(){return HJ},ceil:function(){return nM},clone:function(){return A2},copy:function(){return OV},create:function(){return $x},cross:function(){return rO},dist:function(){return Q3},distance:function(){return tO},div:function(){return BS},divide:function(){return eO},dot:function(){return z0},equals:function(){return i7},exactEquals:function(){return r7},floor:function(){return uy},forEach:function(){return oO},fromValues:function(){return r0},hermite:function(){return t7},inverse:function(){return bw},len:function(){return s7},length:function(){return QF},lerp:function(){return ZJ},max:function(){return _w},min:function(){return BV},mul:function(){return XJ},multiply:function(){return Qk},negate:function(){return e7},normalize:function(){return xw},random:function(){return GJ},rotateX:function(){return oM},rotateY:function(){return $V},rotateZ:function(){return VV},round:function(){return FS},scale:function(){return rM},scaleAndAdd:function(){return zV},set:function(){return NV},sqrDist:function(){return P1},sqrLen:function(){return jV},squaredDistance:function(){return iM},squaredLength:function(){return nO},str:function(){return KJ},sub:function(){return o7},subtract:function(){return FV},transformMat3:function(){return ox},transformMat4:function(){return FT},transformQuat:function(){return UV},zero:function(){return n7}});var B={},V={},k=function(d){return V[d]},R=function(d,l){V[d]=l},C=function(d){return B[d]},g=function(d,l){B[d]=l},A={},O={},K=34,he=10,ae=13;function fe(o){return new Function("d","return {"+o.map(function(d,l){return JSON.stringify(d)+": d["+l+'] || ""'}).join(",")+"}")}function xe(o,d){var l=fe(o);return function(c,u){return d(l(c),u,o)}}function ye(o){var d=Object.create(null),l=[];return o.forEach(function(c){for(var u in c)u in d||l.push(d[u]=u)}),l}function be(o,d){var l=o+"",c=l.length;return c9999?"+"+be(o,6):be(o,4)}function Ve(o){var d=o.getUTCHours(),l=o.getUTCMinutes(),c=o.getUTCSeconds(),u=o.getUTCMilliseconds();return isNaN(o)?"Invalid Date":Qe(o.getUTCFullYear(),4)+"-"+be(o.getUTCMonth()+1,2)+"-"+be(o.getUTCDate(),2)+(u?"T"+be(d,2)+":"+be(l,2)+":"+be(c,2)+"."+be(u,3)+"Z":c?"T"+be(d,2)+":"+be(l,2)+":"+be(c,2)+"Z":l||d?"T"+be(d,2)+":"+be(l,2)+"Z":"")}function pt(o){var d=new RegExp('["'+o+` +\r]`),l=o.charCodeAt(0);function c(Oe,Ct){var Bt,An,kn=u(Oe,function(Ir,ui){if(Bt)return Bt(Ir,ui-1);An=Ir,Bt=Ct?xe(Ir,Ct):fe(Ir)});return kn.columns=An||[],kn}function u(Oe,Ct){var Bt=[],An=Oe.length,kn=0,Ir=0,ui,ao=An<=0,wo=!1;Oe.charCodeAt(An-1)===he&&--An,Oe.charCodeAt(An-1)===ae&&--An;function Ds(){if(ao)return O;if(wo)return wo=!1,A;var fa,Wa=kn,vl;if(Oe.charCodeAt(Wa)===K){for(;kn++=An?ao=!0:(vl=Oe.charCodeAt(kn++))===he?wo=!0:vl===ae&&(wo=!0,Oe.charCodeAt(kn)===he&&++kn),Oe.slice(Wa+1,fa-1).replace(/""/g,'"')}for(;kn=200&&l.status<300||l.status===0)&&l.response!==null){var m=l.response;if(o.type==="json")try{m=JSON.parse(l.response)}catch(L){return d(L)}d(null,m,l.getResponseHeader("Cache-Control"),l.getResponseHeader("Expires"),l)}else{var E=new Blob([l.response],{type:l.getResponseHeader("Content-Type")});d(new Bs(l.status,l.statusText,c.toString(),E))}},l.cancel=l.abort,l.send(o.body),l}function Gi(o){return new Promise(function(d,l){Ce(o,function(c,u,m,E,L){c?l({err:c,data:null,xhr:L}):d({err:null,data:u,cacheControl:m,expires:E,xhr:L})})})}function qi(o,d){return Ce(o,d)}var co=function(d,l){var c=Ts(d.url)||qi;return c((0,ze.Z)((0,ze.Z)({},d),{},{type:"json"}),l)},fi=function(d,l){var c=Ts(d.url)||qi;return c((0,ze.Z)((0,ze.Z)({},d),{},{type:"arrayBuffer"}),l)},Ms=function(d,l){return qi((0,ze.Z)((0,ze.Z)({},d),{},{method:"POST"}),l)},In=function(d,l){return qi((0,ze.Z)((0,ze.Z)({},d),{},{method:"GET"}),l)};function et(o){var d=window.document.createElement("a");return d.href=o,d.protocol===window.document.location.protocol&&d.host===window.document.location.host}var Dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function $t(o,d){var l=new window.Image,c=window.URL||window.webkitURL;l.crossOrigin="anonymous",l.onload=function(){d(null,l),c.revokeObjectURL(l.src),l.onload=null,window.requestAnimationFrame(function(){l.src=Dt})},l.onerror=function(){return d(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 u=new Blob([new Uint8Array(o)],{type:"image/png"});l.src=o.byteLength?c.createObjectURL(u):Dt}function Dn(o,d){var l=new Blob([new Uint8Array(o)],{type:"image/png"});createImageBitmap(l).then(function(c){d(null,c)}).catch(function(c){d(new Error("Could not load image because of ".concat(c.message,". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")))})}var gr=function(d,l,c){var u=function(E,L){if(E)l(E);else if(L){var Z=typeof createImageBitmap=="function",ne=c?c(L):L;Z?Dn(ne,l):$t(ne,l)}};return d.type==="json"?co(d,u):fi(d,u)},kn=function(d,l){var c=typeof createImageBitmap=="function";c?Dn(d,l):$t(d,l)},bn=function(o){return o.CENTER="center",o.TOP="top",o["TOP-LEFT"]="top-left",o["TOP-RIGHT"]="top-right",o.BOTTOM="bottom",o["BOTTOM-LEFT"]="bottom-left",o["BOTTOM-RIGHT"]="bottom-right",o.LEFT="left",o.RIGHT="right",o}({}),zt={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 Jt(o,d,l){var c=o.classList;for(var u in zt)zt.hasOwnProperty(u)&&c.remove("l7-".concat(l,"-anchor-").concat(u));c.add("l7-".concat(l,"-anchor-").concat(d))}function yn(o,d,l){o.prototype=d.prototype=l,l.constructor=o}function fr(o,d){var l=Object.create(o.prototype);for(var c in d)l[c]=d[c];return l}function vr(){}var pn=.7,wr=1/pn,Sr="\\s*([+-]?\\d+)\\s*",Ai="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",mo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fr=/^#([0-9a-f]{3,8})$/,to=new RegExp("^rgb\\("+[Sr,Sr,Sr]+"\\)$"),Ji=new RegExp("^rgb\\("+[mo,mo,mo]+"\\)$"),bo=new RegExp("^rgba\\("+[Sr,Sr,Sr,Ai]+"\\)$"),xn=new RegExp("^rgba\\("+[mo,mo,mo,Ai]+"\\)$"),fn=new RegExp("^hsl\\("+[Ai,mo,mo]+"\\)$"),It=new RegExp("^hsla\\("+[Ai,mo,mo,Ai]+"\\)$"),Zt={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};yn(vr,Dr,{copy:function(o){return Object.assign(new this.constructor,this,o)},displayable:function(){return this.rgb().displayable()},hex:gn,formatHex:gn,formatHsl:$n,formatRgb:Ar,toString:Ar});function gn(){return this.rgb().formatHex()}function $n(){return qr(this).formatHsl()}function Ar(){return this.rgb().formatRgb()}function Dr(o){var d,l;return o=(o+"").trim().toLowerCase(),(d=Fr.exec(o))?(l=d[1].length,d=parseInt(d[1],16),l===6?dr(d):l===3?new Mr(d>>8&15|d>>4&240,d>>4&15|d&240,(d&15)<<4|d&15,1):l===8?Xt(d>>24&255,d>>16&255,d>>8&255,(d&255)/255):l===4?Xt(d>>12&15|d>>8&240,d>>8&15|d>>4&240,d>>4&15|d&240,((d&15)<<4|d&15)/255):null):(d=to.exec(o))?new Mr(d[1],d[2],d[3],1):(d=Ji.exec(o))?new Mr(d[1]*255/100,d[2]*255/100,d[3]*255/100,1):(d=bo.exec(o))?Xt(d[1],d[2],d[3],d[4]):(d=xn.exec(o))?Xt(d[1]*255/100,d[2]*255/100,d[3]*255/100,d[4]):(d=fn.exec(o))?nr(d[1],d[2]/100,d[3]/100,1):(d=It.exec(o))?nr(d[1],d[2]/100,d[3]/100,d[4]):Zt.hasOwnProperty(o)?dr(Zt[o]):o==="transparent"?new Mr(NaN,NaN,NaN,0):null}function dr(o){return new Mr(o>>16&255,o>>8&255,o&255,1)}function Xt(o,d,l,c){return c<=0&&(o=d=l=NaN),new Mr(o,d,l,c)}function Cn(o){return o instanceof vr||(o=Dr(o)),o?(o=o.rgb(),new Mr(o.r,o.g,o.b,o.opacity)):new Mr}function er(o,d,l,c){return arguments.length===1?Cn(o):new Mr(o,d,l,c==null?1:c)}function Mr(o,d,l,c){this.r=+o,this.g=+d,this.b=+l,this.opacity=+c}yn(Mr,er,fr(vr,{brighter:function(o){return o=o==null?wr:Math.pow(wr,o),new Mr(this.r*o,this.g*o,this.b*o,this.opacity)},darker:function(o){return o=o==null?pn:Math.pow(pn,o),new Mr(this.r*o,this.g*o,this.b*o,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ji,formatHex:ji,formatRgb:An,toString:An}));function ji(){return"#"+Xn(this.r)+Xn(this.g)+Xn(this.b)}function An(){var o=this.opacity;return o=isNaN(o)?1:Math.max(0,Math.min(1,o)),(o===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(o===1?")":", "+o+")")}function Xn(o){return o=Math.max(0,Math.min(255,Math.round(o)||0)),(o<16?"0":"")+o.toString(16)}function nr(o,d,l,c){return c<=0?o=d=l=NaN:l<=0||l>=1?o=d=NaN:d<=0&&(o=NaN),new Hr(o,d,l,c)}function qr(o){if(o instanceof Hr)return new Hr(o.h,o.s,o.l,o.opacity);if(o instanceof vr||(o=Dr(o)),!o)return new Hr;if(o instanceof Hr)return o;o=o.rgb();var d=o.r/255,l=o.g/255,c=o.b/255,u=Math.min(d,l,c),m=Math.max(d,l,c),E=NaN,L=m-u,Z=(m+u)/2;return L?(d===m?E=(l-c)/L+(l0&&Z<1?0:E,new Hr(E,L,Z,o.opacity)}function vi(o,d,l,c){return arguments.length===1?qr(o):new Hr(o,d,l,c==null?1:c)}function Hr(o,d,l,c){this.h=+o,this.s=+d,this.l=+l,this.opacity=+c}yn(Hr,vi,fr(vr,{brighter:function(o){return o=o==null?wr:Math.pow(wr,o),new Hr(this.h,this.s,this.l*o,this.opacity)},darker:function(o){return o=o==null?pn:Math.pow(pn,o),new Hr(this.h,this.s,this.l*o,this.opacity)},rgb:function(){var o=this.h%360+(this.h<0)*360,d=isNaN(o)||isNaN(this.s)?0:this.s,l=this.l,c=l+(l<.5?l:1-l)*d,u=2*l-c;return new Mr(di(o>=240?o-240:o+120,u,c),di(o,u,c),di(o<120?o+240:o-120,u,c),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var o=this.opacity;return o=isNaN(o)?1:Math.max(0,Math.min(1,o)),(o===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(o===1?")":", "+o+")")}}));function di(o,d,l){return(o<60?d+(l-d)*o/60:o<180?l:o<240?d+(l-d)*(240-o)/60:d)*255}function gi(o){return typeof o=="string"?!!Dr(o):!1}function mi(o){var d=Dr(o),l=[0,0,0,0];return d!=null&&(l[0]=d.r/255,l[1]=d.g/255,l[2]=d.b/255,l[3]=d.opacity),l}function Bi(o){var d=o&&o[0],l=o&&o[1],c=o&&o[2],u=d+l*256+c*65536-1;return u}function zr(o){return[o+1&255,o+1>>8&255,o+1>>8>>8&255]}function Xr(o){var d=window.document.createElement("canvas"),l=d.getContext("2d");d.width=256,d.height=1;for(var c=null,u=l.createLinearGradient(0,0,256,1),m=o.positions[0],E=o.positions[o.positions.length-1],L=0;L0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(l)}function Zu(o,d){o instanceof HTMLElement?o.className=d:o.className.baseVal=d}function Cd(o){return o instanceof SVGElement&&(o=o.correspondingElement),o.className.baseVal===void 0?o.className:o.className.baseVal}function ad(o){for(;o&&o.firstChild;)o.removeChild(o.firstChild)}var gu=Yo(["transform","WebkitTransform"]);function iu(o,d){o.style[gu]=d}function Tu(){if(typeof Event=="function")window.dispatchEvent(new Event("resize"));else{var o=window.document.createEvent("UIEvents");o.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(o)}}function Si(o){var d=["padding: "+(o.height/2-8)+"px "+o.width/2+"px;","line-height: "+o.height+"px;","background-image: url("+o.toDataURL()+");"];console.log(`%c -`,d.join(""))}function tr(){var o,d=window.document.querySelector('meta[name="viewport"]');if(!d)return 1;var l=(o=d.content)===null||o===void 0?void 0:o.split(","),c=l.find(function(u){var m=u.split("="),E=(0,Br.Z)(m,1),L=E[0];return L==="initial-scale"});return c?c.split("=")[1]*1:1}var Un=tr()<1?1:window.devicePixelRatio;function jr(o,d){o.setAttribute("style","".concat(o.style.cssText).concat(d))}function Qr(o){return o.split(";").map(function(d){return d.trim()}).filter(function(d){return d})}function _o(o,d){var l,c=Qr((l=o.getAttribute("style"))!==null&&l!==void 0?l:""),u=Qr(d),m=Hs.apply(void 0,[c].concat((0,_n.Z)(u)));o.setAttribute("style",m.join(";"))}function us(o){return Object.entries(o).map(function(d){var l=(0,Br.Z)(d,2),c=l[0],u=l[1];return"".concat(c,": ").concat(u)}).join(";")}function ns(o,d){return{left:o.left-d.left,top:o.top-d.top,right:d.left+d.width-o.left-o.width,bottom:d.top+d.height-o.top-o.height}}function Oa(o,d){o.checked=d,d?o.setAttribute("checked","true"):o.removeAttribute("checked")}function ga(o){o.innerHTML=""}function Va(o){o.setAttribute("draggable","false")}function ea(o,d){if(typeof d=="string"){var l=document.createElement("div");for(l.innerHTML=d;l.firstChild;)o.append(l.firstChild)}else Array.isArray(d)?o.append.apply(o,(0,_n.Z)(d)):o.append(d)}function Xl(o,d){for(var l=Array.isArray(d)?d:[d],c=o;c instanceof Element&&c!==window.document.body;){var u,m;if(l.find(function(E){var L;return(L=c)===null||L===void 0?void 0:L.matches(E)}))return c;c=(u=(m=c)===null||m===void 0?void 0:m.parentElement)!==null&&u!==void 0?u:null}}var _a;function Ta(o){return typeof ImageBitmap!="undefined"&&o instanceof ImageBitmap}function Ya(){return typeof importScripts=="function"}var cu=Ya()?function(){return self.worker&&self.worker.referrer}:function(){return(window.location.protocol==="blob:"?window.parent:window).location.href},jl=(_a=navigator)===null||_a===void 0?void 0:_a.userAgent,Mu=!!jl.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),Bl=jl.indexOf("Android")>-1||jl.indexOf("Adr")>-1;function wl(){for(var o=jl,d=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],l=!0,c=0,u=d;c0){l=!1;break}}return l}var Tn=_(35005);function nc(o,d){o.forEach(function(l){d[l]&&(d[l]=d[l].bind(d))})}var Iu=function(){function o(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16;(0,Ct.Z)(this,o),(0,Tn.Z)(this,"duration",16),(0,Tn.Z)(this,"timestamp",new Date().getTime()),this.duration=d}return(0,nt.Z)(o,[{key:"run",value:function(l){var c=new Date().getTime(),u=c-this.timestamp;this.timestamp=c,u>=this.duration&&l()}}]),o}(),Pc=_(86461),Wc=_(8822);function cd(o){return typeof o=="number"}var Fc=2*Math.PI*6378137/2;function vh(o,d){var l=(0,Br.Z)(d,4),c=l[0],u=l[1],m=l[2],E=l[3];return o.lng>c&&o.lng<=m&&o.lat>u&&o.lat<=E}function Td(o){var d=[1/0,1/0,-1/0,-1/0];return o.forEach(function(l){var c=l.coordinates;Gh(d,c)}),d}function Gh(o,d){return Array.isArray(d[0])?d.forEach(function(l){Gh(o,l)}):(o[0]>d[0]&&(o[0]=d[0]),o[1]>d[1]&&(o[1]=d[1]),o[2]1&&arguments[1]!==void 0?arguments[1]:!0,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{enable:!0,decimal:1};o=Qh(o,d);var c=o[0],u=o[1],m=c*Fc/180,E=Math.log(Math.tan((90+u)*Math.PI/360))/(Math.PI/180);return E=E*Fc/180,l.enable&&(m=Number(m.toFixed(l.decimal)),E=Number(E.toFixed(l.decimal))),o.length===3?[m,E,o[2]]:[m,E]}function $f(o){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,l=o[0],c=o[1],u=l/Fc*180,m=c/Fc*180;return m=180/Math.PI*(2*Math.atan(Math.exp(m*Math.PI/180))-Math.PI/2),d!=null&&(u=Number(u.toFixed(d)),m=Number(m.toFixed(d))),o.length===3?[u,m,o[2]]:[u,m]}function Vf(o){if(o==null)throw new Error("lng is required");return(o>180||o<-180)&&(o=o%360,o>180&&(o=-360+o),o<-180&&(o=360+o),o===0&&(o=0)),o}function _h(o){if(o==null)throw new Error("lat is required");return(o>90||o<-90)&&(o=o%180,o>90&&(o=-180+o),o<-90&&(o=180+o),o===0&&(o=0)),o}function Qh(o,d){if(d===!1)return o;var l=Vf(o[0]),c=_h(o[1]);return c>85&&(c=85),c<-85&&(c=-85),o.length===3?[l,c,o[2]]:[l,c]}function Mh(o){var d=85.0511287798,l=Math.max(Math.min(d,o[1]),-d),c=256<<20,u=Math.PI/180,m=o[0]*u,E=l*u;E=Math.log(Math.tan(Math.PI/4+E/2));var L=.5/Math.PI,Z=.5,ne=-.5/Math.PI;return u=.5,m=c*(L*m+Z),E=c*(ne*E+u),[Math.floor(m),Math.floor(E)]}function Wd(o){var d=.5/Math.PI,l=.5,c=-.5/Math.PI,u=.5,m=256<<20,E=(0,Br.Z)(o,2),L=E[0],Z=E[1];L=(L/m-l)/d,Z=(Z/m-u)/c,Z=(Math.atan(Math.pow(Math.E,Z))-Math.PI/4)*2,u=Math.PI/180;var ne=Z/u,xe=L/u;return[xe,ne]}function zs(o,d){var l=85.0511287798,c=Math.PI/180,u=6378137;return d=Math.max(Math.min(l,d),-l),o*=c,d*=c,d=Math.log(Math.tan(Math.PI/4+d/2)),[o*u,d*u]}function $a(o,d){var l=Math.PI/180,c=6378137,u=o/c/l,m=2*(Math.atan(Math.exp(d/c))-Math.PI/4)/l;return[u,m]}function Ja(o,d,l){var c=(0,Wc.degreesToRadians)(d[1]-o[1]),u=(0,Wc.degreesToRadians)(d[0]-o[0]),m=(0,Wc.degreesToRadians)(o[1]),E=(0,Wc.degreesToRadians)(d[1]),L=Math.pow(Math.sin(c/2),2)+Math.pow(Math.sin(u/2),2)*Math.cos(m)*Math.cos(E);return(0,Wc.radiansToLength)(2*Math.atan2(Math.sqrt(L),Math.sqrt(1-L)),l="meters")}function pl(o){var d=Math.PI/180,l=85.0511287798,c=6378137,u=Math.max(Math.min(l,o[1]),-l),m=Math.sin(u*d),E=c*o[0]*d,L=c*Math.log((1+m)/(1-m))/2;return[E,L]}function au(o,d){var l=Math.abs(o[1][1]-o[0][1])*d,c=Math.abs(o[1][0]-o[0][0])*d;return[[o[0][0]-c,o[0][1]-l],[o[1][0]+c,o[1][1]+l]]}function ac(o,d){return o[0][0]<=d[0][0]&&o[0][1]<=d[0][1]&&o[1][0]>=d[1][0]&&o[1][1]>=d[1][1]}function $u(o){return[[o[0],o[1]],[o[2],o[3]]]}function cc(o){var d=Hu(o,[0,0]);return[o[0]/d,o[1]/d]}function Hu(o,d){return Math.sqrt(Math.pow(o[0]-d[0],2)+Math.pow(o[1]-d[1],2))}function Fl(o,d){return o[0]*d[0]+o[1]*d[1]}function Ou(o){return Math.sqrt(o[0]*o[0]+o[1]*o[1])}function Qc(o,d){return Math.acos(Fl(o,d)/(Ou(o)*Ou(d)))*180/Math.PI}function fd(o,d){return d[0]>0?d[1]>0?90-Math.atan(d[1]/d[0])*180/Math.PI:90+Math.atan(-d[1]/d[0])*180/Math.PI:d[1]<0?180+(90-Math.atan(d[1]/d[0])*180/Math.PI):270+Math.atan(d[1]/-d[0])*180/Math.PI}function Qd(o){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;if(!(!o||o.length<2)){for(var l=[0,1],c=0,u=[],m=0;m0){var Oe=u[m-1].rotation;Oe-xe>360-Oe+xe&&(xe=xe+360)}u.push({start:E,end:L,dis:Z,rotation:xe,duration:0})}return u.map(function(wt){wt.duration=d*(wt.dis/c)}),u}}function Bh(o){if(cd(o[0]))return o;if(cd(o[0][0]))throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8");if(cd(o[0][0][0])){var d=o,l=0,c=0,u=0;return d.forEach(function(m){m.forEach(function(E){l+=E[0],c+=E[1],u++})}),[l/u,c/u,0]}else throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8")}function Gd(o){for(var d=o[0],l=o[1],c=o[0],u=o[1],m=0,E=0,L=0,Z=0;Zu&&(c=Math.floor(c/l)),c=c*d+o.charCodeAt(m);return c}function bd(o){o=o.toString();for(var d=5381,l=o.length;l;)d=d*33^o.charCodeAt(--l);return d>>>0}function su(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(o){var d=Math.random()*16|0,l=o==="x"?d:d&3|8;return l.toString(16)})}var nh=function(o){return o["GAODE1.x"]="GAODE1.x",o["GAODE2.x"]="GAODE2.x",o.MAPBOX="MAPBOX",o.DEFAULT="DEFAUlTMAP",o.SIMPLE="SIMPLE",o.GLOBEL="GLOBEL",o}({});function tl(o,d,l,c,u){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,E=arguments.length>6?arguments[6]:void 0,L=l;return E&&(L=Math.round(l*(m-1))/(m-1)),c?Qa(o,d,L,c,u):Qa(o,d,L,.314,u)}function mu(o,d){var l=1-d;return(o[0]*l+o[1]*d)*l+(o[1]*l+o[2]*d)*d}function md(o,d){return Math.sqrt(Math.pow(o[0]-d[0],2)+Math.pow(o[1]-d[1],2))}function Uh(o,d,l){var c=[d[0]-o[0],d[1]-o[1]],u=md(c,[0,0]),m=Math.atan2(c[1],c[0]),E=u/2/Math.cos(l),L=m+l,Z=[E*Math.cos(L)+o[0],E*Math.sin(L)+o[1]];return Z}function Qa(o,d,l,c,u){if(u===nh["GAODE2.x"]){var m=zs(o[0],o[1]),E=zs(d[0],d[1]),L=Uh(m,E,c),Z=[m[0],L[0],E[0]],ne=[m[1],L[1],E[1]];return[].concat((0,_n.Z)($a(mu(Z,l),mu(ne,l))),[0])}else{var xe=Uh(o,d,c),Oe=[o[0],xe[0],d[0]],wt=[o[1],xe[1],d[1]];return[mu(Oe,l),mu(wt,l),0]}}function _u(o,d,l,c,u){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,E=arguments.length>6?arguments[6]:void 0,L=l;return E&&(L=Math.round(l*29)/29),Sc(o,d,L,u)}function Al(o,d){var l=[d[0]-o[0],d[1]-o[1]],c=Hu(l,[0,0]),u=Math.atan2(l[1],l[0]),m=.314,E=c/2/Math.cos(m),L=u+m,Z=[E*Math.cos(L)+o[0],E*Math.sin(L)+o[1]];return Z}function du(o,d){var l=1-d;return(o[0]*l+o[1]*d)*l+(o[1]*l+o[2]*d)*d}function Au(o,d){var l=[o[0]-d[0],o[1]-d[1]],c=[Math.sin(l[0]/2),Math.sin(l[1]/2)],u=c[1]*c[1]+Math.cos(o[1])*Math.cos(d[1])*c[0]*c[0];return 2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))}function Sc(o,d,l,c){var u=[(0,Wc.degreesToRadians)(o[0]),(0,Wc.degreesToRadians)(o[1])],m=[(0,Wc.degreesToRadians)(d[0]),(0,Wc.degreesToRadians)(d[1])];if(c==="GAODE2.x"){var E=Al(u,m),L=[u[0],E[0],m[0]],Z=[u[1],E[1],m[1]];return[du(L,l),du(Z,l),0]}else{var ne=Au(u,m);if(Math.abs(ne-Math.PI)<.001)return[(1-l)*u[0]+l*m[0],(1-l)*u[1]+l*m[1]];var xe=Math.sin((1-l)*ne)/Math.sin(ne),Oe=Math.sin(l*ne)/Math.sin(ne),wt=[Math.sin(u[0]),Math.sin(u[1])],Bt=[Math.cos(u[0]),Math.cos(u[1])],wn=[Math.sin(m[0]),Math.sin(m[1])],Rn=[Math.cos(m[0]),Math.cos(m[1])],Pr=xe*Bt[1]*Bt[0]+Oe*Rn[1]*Rn[0],ui=xe*Bt[1]*wt[0]+Oe*Rn[1]*wn[0],oo=xe*wt[1]+Oe*wn[1];return[(0,Wc.radiansToDegrees)(Math.atan2(ui,Pr)),(0,Wc.radiansToDegrees)(Math.atan2(oo,Math.sqrt(Pr*Pr+ui*ui)))]}}function _d(o,d){for(var l=0,c=[],u=0;une){var Pr=wn.p1,ui=wn.p2,oo=(ne-wn.lastTotalDistance)/wn.distance,xo=wd(ui,Pr,oo);xe=xo[0],Oe=xo[1];break}}return{lng:xe,lat:Oe,height:0}}function wd(o,d,l){return[o[0]*l+d[0]*(1-l),o[1]*l+d[1]*(1-l)]}function ef(o,d){return Math.sqrt(Math.pow(o[0]-d[0],2)+Math.pow(o[1]-d[1],2))}function Jh(o,d){var l=d.featureId,c=o.data.dataArray;return typeof l=="number"&&(c=c.filter(function(u){var m=u.id;return m===l})),c.map(function(u){var m=cf(u,d);return(0,ze.Z)((0,ze.Z)({},u),m)})}function uh(o,d){return new Promise(function(l){o.inited?l(Jh(o,d)):o.once("update",function(){l(Jh(o,d))})})}function cf(o,d){var l=d.offset,c=d.shape,u=d.thetaOffset,m=d.mapVersion,E=d.segmentNumber,L=E===void 0?30:E,Z=d.autoFit,ne=Z===void 0?!0:Z,xe=o.coordinates;if(c==="line")return _d(xe,l);var Oe=xe[0],wt=xe[1],Bt=typeof u=="string"?o[u]||0:u,wn;switch(c){case"arc":wn=tl;break;case"greatcircle":wn=_u;break;default:wn=tl}var Rn=wn(Oe,wt,l,Bt,m,L,ne),Pr=(0,Br.Z)(Rn,3),ui=Pr[0],oo=Pr[1],xo=Pr[2];return{lng:ui,lat:oo,height:xo}}var Rh=function(){function o(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:50,l=arguments.length>1?arguments[1]:void 0;(0,Ct.Z)(this,o),this.limit=d,this.destroy=l||this.defaultDestroy,this.order=[],this.clear()}return(0,nt.Z)(o,[{key:"clear",value:function(){var l=this;this.order.forEach(function(c){l.delete(c)}),this.cache={},this.order=[]}},{key:"get",value:function(l){var c=this.cache[l];return c&&(this.deleteOrder(l),this.appendOrder(l)),c}},{key:"set",value:function(l,c){this.cache[l]?(this.delete(l),this.cache[l]=c,this.appendOrder(l)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[l]=c,this.appendOrder(l))}},{key:"delete",value:function(l){var c=this.cache[l];c&&(this.deleteCache(l),this.deleteOrder(l),this.destroy(c,l))}},{key:"deleteCache",value:function(l){delete this.cache[l]}},{key:"deleteOrder",value:function(l){var c=this.order.findIndex(function(u){return u===l});c>=0&&this.order.splice(c,1)}},{key:"appendOrder",value:function(l){this.order.push(l)}},{key:"defaultDestroy",value:function(l,c){return null}}]),o}();function yc(o){if(o.length===0)throw new Error("max requires at least one data point");for(var d=o[0],l=1;ld&&(d=o[l]);return d*1}function qd(o){if(o.length===0)throw new Error("min requires at least one data point");for(var d=o[0],l=1;lc&&(c=u,l=d),u=1,d=o[m]):u++;return l*1}var qc={min:qd,max:yc,mean:Mf,sum:rd,mode:vf};function id(o,d){return o.map(function(l){return l[d]})}function Sh(o,d){return qc[o](d)}var Pl=_(54775),ms=_(85594),Cc=_(21548),Fi=_.n(Cc),ug=_(39511),uc=_(40666),dd=_.n(uc),Ep=function(o){return o.Realtime="realtime",o.Overlap="overlap",o.Replace="replace",o}({}),Yp=function(o){return o.Loading="Loading",o.Loaded="Loaded",o.Failure="Failure",o.Cancelled="Cancelled",o}({}),kg=0,_f=1,bp=2;function qp(o){o.forEach(function(d){d.isCurrent&&(d.isVisible=d.isLoaded)})}function fp(o){o.forEach(function(d){d.properties.state=kg}),o.forEach(function(d){d.isCurrent&&!ip(d)&&dp(d)}),o.forEach(function(d){d.isVisible=!!(d.properties.state&bp)})}function Sg(o){o.forEach(function(l){l.properties.state=kg}),o.forEach(function(l){l.isCurrent&&ip(l)});var d=o.slice().sort(function(l,c){return l.z-c.z});d.forEach(function(l){l.isVisible=!!(l.properties.state&bp),l.children.length&&(l.isVisible||l.properties.state&_f)?l.children.forEach(function(c){c.properties.state=_f}):l.isCurrent&&dp(l)})}function ip(o){for(;o;){if(o.isLoaded)return o.properties.state|=bp,!0;o=o.parent}return!1}function dp(o){o.children.forEach(function(d){d.isLoaded?d.properties.state|=bp:dp(d)})}var Kd,xp=256,cg=[-1/0,-1/0,1/0,1/0],Lp=.2,gh=5,eg=(Kd={},(0,Tn.Z)(Kd,Ep.Realtime,qp),(0,Tn.Z)(Kd,Ep.Overlap,fp),(0,Tn.Z)(Kd,Ep.Replace,Sg),Kd),Jd=function(){};function Pf(o,d,l){var c=Math.floor((o+180)/360*Math.pow(2,l)),u=Math.floor((1-Math.log(Math.tan(d*Math.PI/180)+1/Math.cos(d*Math.PI/180))/Math.PI)/2*Math.pow(2,l));return[c,u]}function hp(o,d,l){var c=o/Math.pow(2,l)*360-180,u=Math.PI-2*Math.PI*d/Math.pow(2,l),m=180/Math.PI*Math.atan(.5*(Math.exp(u)-Math.exp(-u)));return[c,m]}var Pu=function(d,l,c){var u=hp(d,l,c),m=(0,Br.Z)(u,2),E=m[0],L=m[1],Z=hp(d+1,l+1,c),ne=(0,Br.Z)(Z,2),xe=ne[0],Oe=ne[1];return[E,Oe,xe,L]};function Rp(o){var d=o.zoom,l=o.latLonBounds,c=o.maxZoom,u=c===void 0?1/0:c,m=o.minZoom,E=m===void 0?0:m,L=o.zoomOffset,Z=L===void 0?0:L,ne=o.extent,xe=ne===void 0?cg:ne,Oe=Math.ceil(d)+Z;if(Number.isFinite(E)&&Oeu&&(Oe=u);for(var wt=(0,Br.Z)(l,4),Bt=wt[0],wn=wt[1],Rn=wt[2],Pr=wt[3],ui=[Math.max(Bt,xe[0]),Math.max(wn,xe[1]),Math.min(Rn,xe[2]),Math.min(Pr,xe[3])],oo=[],xo=Pf(ui[0],ui[1],Oe),Ds=(0,Br.Z)(xo,2),aa=Ds[0],fa=Ds[1],Za=Pf(ui[2],ui[3],Oe),gl=(0,Br.Z)(Za,2),tu=gl[0],ku=gl[1],ju=aa;ju<=tu;ju++)for(var Xc=ku;Xc<=fa;Xc++)oo.push({x:ju,y:Xc,z:Oe});var Pd=(tu+aa)/2,Lh=(fa+ku)/2,fg=function(am,sv){return Math.abs(am-Pd)+Math.abs(sv-Lh)};return oo.sort(function(Gg,am){return fg(Gg.x,Gg.y)-fg(am.x,am.y)}),oo}var Tp=function(d,l,c){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,m=Math.pow(2,c),E=m-1,L=m,Z=d,ne=l;return u&&(Z<0?Z=Z+L:Z>E&&(Z=Z%L)),{warpX:Z,warpY:ne}};function Hf(o){var d=Od();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function Od(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Fd=function(o){(0,lt.Z)(l,o);var d=Hf(l);function l(c){var u;(0,Ct.Z)(this,l),u=d.call(this),(0,Tn.Z)((0,ms.Z)(u),"tileSize",256),(0,Tn.Z)((0,ms.Z)(u),"isVisible",!1),(0,Tn.Z)((0,ms.Z)(u),"isCurrent",!1),(0,Tn.Z)((0,ms.Z)(u),"isVisibleChange",!1),(0,Tn.Z)((0,ms.Z)(u),"loadedLayers",0),(0,Tn.Z)((0,ms.Z)(u),"isLayerLoaded",!1),(0,Tn.Z)((0,ms.Z)(u),"isLoad",!1),(0,Tn.Z)((0,ms.Z)(u),"isChildLoad",!1),(0,Tn.Z)((0,ms.Z)(u),"parent",null),(0,Tn.Z)((0,ms.Z)(u),"children",[]),(0,Tn.Z)((0,ms.Z)(u),"data",null),(0,Tn.Z)((0,ms.Z)(u),"properties",{}),(0,Tn.Z)((0,ms.Z)(u),"loadDataId",0);var m=c.x,E=c.y,L=c.z,Z=c.tileSize,ne=c.warp,xe=ne===void 0?!0:ne;return u.x=m,u.y=E,u.z=L,u.warp=xe||!0,u.tileSize=Z,u}return(0,nt.Z)(l,[{key:"isLoading",get:function(){return this.loadStatus===Yp.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===Yp.Loaded}},{key:"isFailure",get:function(){return this.loadStatus===Yp.Failure}},{key:"setTileLayerLoaded",value:function(){this.isLayerLoaded=!0}},{key:"isCancelled",get:function(){return this.loadStatus===Yp.Cancelled}},{key:"isDone",get:function(){return[Yp.Loaded,Yp.Cancelled,Yp.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return Pu(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var u=(0,Br.Z)(this.bounds,4),m=u[0],E=u[1],L=u[2],Z=u[3],ne=[(L-m)/2,(Z-E)/2],xe=(0,ug.Z)(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:ne,meta:` +`)}function ne(Oe){return Oe.map(Ce).join(o)}function Ce(Oe){return Oe==null?"":Oe instanceof Date?Ve(Oe):d.test(Oe+="")?'"'+Oe.replace(/"/g,'""')+'"':Oe}return{parse:c,parseRows:u,format:E,formatBody:M,formatRows:Z,formatRow:ne,formatValue:Ce}}var st=pt(","),Ae=st.parse,De=st.parseRows,Te=st.format,Me=st.formatBody,Ue=st.formatRows,Pe=st.formatRow,Xe=st.formatValue,Be=y(1413),Xt=y(36987),St=y(39034),nt=y(43144),wt=y(15671),lt=y(60136),Kt=y(82963),Mt=y(61120),hn=y(89611);function un(o){try{return Function.toString.call(o).indexOf("[native code]")!==-1}catch(d){return typeof o=="function"}}var Sr=y(78814);function ii(o,d,l){return(0,Sr.Z)()?ii=Reflect.construct.bind():ii=function(u,m,E){var M=[null];M.push.apply(M,m);var Z=Function.bind.apply(u,M),ne=new Z;return E&&(0,hn.Z)(ne,E.prototype),ne},ii.apply(null,arguments)}function Ii(o){var d=typeof Map=="function"?new Map:void 0;return Ii=function(c){if(c===null||!un(c))return c;if(typeof c!="function")throw new TypeError("Super expression must either be null or a function");if(typeof d!="undefined"){if(d.has(c))return d.get(c);d.set(c,u)}function u(){return ii(c,arguments,(0,Mt.Z)(this).constructor)}return u.prototype=Object.create(c.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),(0,hn.Z)(u,c)},Ii(o)}var Ni={REGISTERED_PROTOCOLS:{}};function eo(o){var d=ti();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function ti(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Is=function(d){return Ni.REGISTERED_PROTOCOLS[d.substring(0,d.indexOf("://"))]},Ns=function(o){(0,lt.Z)(l,o);var d=eo(l);function l(c,u,m,E){var M;return(0,wt.Z)(this,l),M=d.call(this,"AJAXError: ".concat(u," (").concat(c,"): ").concat(m)),M.status=c,M.statusText=u,M.url=m,M.body=E,M}return(0,nt.Z)(l)}(Ii(Error));function Se(o,d){var l=new XMLHttpRequest,c=Array.isArray(o.url)?o.url[0]:o.url;l.open(o.method||"GET",c,!0),o.type==="arrayBuffer"&&(l.responseType="arraybuffer");for(var u in o.headers)o.headers.hasOwnProperty(u)&&l.setRequestHeader(u,o.headers[u]);return o.type==="json"&&(l.responseType="text",l.setRequestHeader("Accept","application/json")),l.withCredentials=o.credentials==="include",l.onerror=function(){d(new Error(l.statusText))},l.onload=function(){if((l.status>=200&&l.status<300||l.status===0)&&l.response!==null){var m=l.response;if(o.type==="json")try{m=JSON.parse(l.response)}catch(M){return d(M)}d(null,m,l.getResponseHeader("Cache-Control"),l.getResponseHeader("Expires"),l)}else{var E=new Blob([l.response],{type:l.getResponseHeader("Content-Type")});d(new Ns(l.status,l.statusText,c.toString(),E))}},l.cancel=l.abort,l.send(o.body),l}function Xi(o){return new Promise(function(d,l){Se(o,function(c,u,m,E,M){c?l({err:c,data:null,xhr:M}):d({err:null,data:u,cacheControl:m,expires:E,xhr:M})})})}function Yi(o,d){return Se(o,d)}var fo=function(d,l){var c=Is(d.url)||Yi;return c((0,Be.Z)((0,Be.Z)({},d),{},{type:"json"}),l)},di=function(d,l){var c=Is(d.url)||Yi;return c((0,Be.Z)((0,Be.Z)({},d),{},{type:"arrayBuffer"}),l)},Fs=function(d,l){return Yi((0,Be.Z)((0,Be.Z)({},d),{},{method:"POST"}),l)},Ln=function(d,l){return Yi((0,Be.Z)((0,Be.Z)({},d),{},{method:"GET"}),l)};function it(o){var d=window.document.createElement("a");return d.href=o,d.protocol===window.document.location.protocol&&d.host===window.document.location.host}var Ot="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Ht(o,d){var l=new window.Image,c=window.URL||window.webkitURL;l.crossOrigin="anonymous",l.onload=function(){d(null,l),c.revokeObjectURL(l.src),l.onload=null,window.requestAnimationFrame(function(){l.src=Ot})},l.onerror=function(){return d(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 u=new Blob([new Uint8Array(o)],{type:"image/png"});l.src=o.byteLength?c.createObjectURL(u):Ot}function Pn(o,d){var l=new Blob([new Uint8Array(o)],{type:"image/png"});createImageBitmap(l).then(function(c){d(null,c)}).catch(function(c){d(new Error("Could not load image because of ".concat(c.message,". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")))})}var fr=function(d,l,c){var u=function(E,M){if(E)l(E);else if(M){var Z=typeof createImageBitmap=="function",ne=c?c(M):M;Z?Pn(ne,l):Ht(ne,l)}};return d.type==="json"?fo(d,u):di(d,u)},In=function(d,l){var c=typeof createImageBitmap=="function";c?Pn(d,l):Ht(d,l)},mn=function(o){return o.CENTER="center",o.TOP="top",o["TOP-LEFT"]="top-left",o["TOP-RIGHT"]="top-right",o.BOTTOM="bottom",o["BOTTOM-LEFT"]="bottom-left",o["BOTTOM-RIGHT"]="bottom-right",o.LEFT="left",o.RIGHT="right",o}({}),Ut={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 en(o,d,l){var c=o.classList;for(var u in Ut)Ut.hasOwnProperty(u)&&c.remove("l7-".concat(l,"-anchor-").concat(u));c.add("l7-".concat(l,"-anchor-").concat(d))}function Cn(o,d,l){o.prototype=d.prototype=l,l.constructor=o}function lr(o,d){var l=Object.create(o.prototype);for(var c in d)l[c]=d[c];return l}function pr(){}var an=.7,wr=1/an,Cr="\\s*([+-]?\\d+)\\s*",Ei="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",vo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kr=/^#([0-9a-f]{3,8})$/,ro=new RegExp("^rgb\\("+[Cr,Cr,Cr]+"\\)$"),qi=new RegExp("^rgb\\("+[vo,vo,vo]+"\\)$"),bo=new RegExp("^rgba\\("+[Cr,Cr,Cr,Ei]+"\\)$"),xn=new RegExp("^rgba\\("+[vo,vo,vo,Ei]+"\\)$"),pn=new RegExp("^hsl\\("+[Ei,vo,vo]+"\\)$"),Dt=new RegExp("^hsla\\("+[Ei,vo,vo,Ei]+"\\)$"),Zt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Cn(pr,Dr,{copy:function(o){return Object.assign(new this.constructor,this,o)},displayable:function(){return this.rgb().displayable()},hex:vn,formatHex:vn,formatHsl:$n,formatRgb:Ar,toString:Ar});function vn(){return this.rgb().formatHex()}function $n(){return qr(this).formatHsl()}function Ar(){return this.rgb().formatRgb()}function Dr(o){var d,l;return o=(o+"").trim().toLowerCase(),(d=kr.exec(o))?(l=d[1].length,d=parseInt(d[1],16),l===6?dr(d):l===3?new Mr(d>>8&15|d>>4&240,d>>4&15|d&240,(d&15)<<4|d&15,1):l===8?Yt(d>>24&255,d>>16&255,d>>8&255,(d&255)/255):l===4?Yt(d>>12&15|d>>8&240,d>>8&15|d>>4&240,d>>4&15|d&240,((d&15)<<4|d&15)/255):null):(d=ro.exec(o))?new Mr(d[1],d[2],d[3],1):(d=qi.exec(o))?new Mr(d[1]*255/100,d[2]*255/100,d[3]*255/100,1):(d=bo.exec(o))?Yt(d[1],d[2],d[3],d[4]):(d=xn.exec(o))?Yt(d[1]*255/100,d[2]*255/100,d[3]*255/100,d[4]):(d=pn.exec(o))?nr(d[1],d[2]/100,d[3]/100,1):(d=Dt.exec(o))?nr(d[1],d[2]/100,d[3]/100,d[4]):Zt.hasOwnProperty(o)?dr(Zt[o]):o==="transparent"?new Mr(NaN,NaN,NaN,0):null}function dr(o){return new Mr(o>>16&255,o>>8&255,o&255,1)}function Yt(o,d,l,c){return c<=0&&(o=d=l=NaN),new Mr(o,d,l,c)}function wn(o){return o instanceof pr||(o=Dr(o)),o?(o=o.rgb(),new Mr(o.r,o.g,o.b,o.opacity)):new Mr}function Qn(o,d,l,c){return arguments.length===1?wn(o):new Mr(o,d,l,c==null?1:c)}function Mr(o,d,l,c){this.r=+o,this.g=+d,this.b=+l,this.opacity=+c}Cn(Mr,Qn,lr(pr,{brighter:function(o){return o=o==null?wr:Math.pow(wr,o),new Mr(this.r*o,this.g*o,this.b*o,this.opacity)},darker:function(o){return o=o==null?an:Math.pow(an,o),new Mr(this.r*o,this.g*o,this.b*o,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Wi,formatHex:Wi,formatRgb:Dn,toString:Dn}));function Wi(){return"#"+Kn(this.r)+Kn(this.g)+Kn(this.b)}function Dn(){var o=this.opacity;return o=isNaN(o)?1:Math.max(0,Math.min(1,o)),(o===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(o===1?")":", "+o+")")}function Kn(o){return o=Math.max(0,Math.min(255,Math.round(o)||0)),(o<16?"0":"")+o.toString(16)}function nr(o,d,l,c){return c<=0?o=d=l=NaN:l<=0||l>=1?o=d=NaN:d<=0&&(o=NaN),new Hr(o,d,l,c)}function qr(o){if(o instanceof Hr)return new Hr(o.h,o.s,o.l,o.opacity);if(o instanceof pr||(o=Dr(o)),!o)return new Hr;if(o instanceof Hr)return o;o=o.rgb();var d=o.r/255,l=o.g/255,c=o.b/255,u=Math.min(d,l,c),m=Math.max(d,l,c),E=NaN,M=m-u,Z=(m+u)/2;return M?(d===m?E=(l-c)/M+(l0&&Z<1?0:E,new Hr(E,M,Z,o.opacity)}function yi(o,d,l,c){return arguments.length===1?qr(o):new Hr(o,d,l,c==null?1:c)}function Hr(o,d,l,c){this.h=+o,this.s=+d,this.l=+l,this.opacity=+c}Cn(Hr,yi,lr(pr,{brighter:function(o){return o=o==null?wr:Math.pow(wr,o),new Hr(this.h,this.s,this.l*o,this.opacity)},darker:function(o){return o=o==null?an:Math.pow(an,o),new Hr(this.h,this.s,this.l*o,this.opacity)},rgb:function(){var o=this.h%360+(this.h<0)*360,d=isNaN(o)||isNaN(this.s)?0:this.s,l=this.l,c=l+(l<.5?l:1-l)*d,u=2*l-c;return new Mr(ci(o>=240?o-240:o+120,u,c),ci(o,u,c),ci(o<120?o+240:o-120,u,c),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var o=this.opacity;return o=isNaN(o)?1:Math.max(0,Math.min(1,o)),(o===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(o===1?")":", "+o+")")}}));function ci(o,d,l){return(o<60?d+(l-d)*o/60:o<180?l:o<240?d+(l-d)*(240-o)/60:d)*255}function gi(o){return typeof o=="string"?!!Dr(o):!1}function mi(o){var d=Dr(o),l=[0,0,0,0];return d!=null&&(l[0]=d.r/255,l[1]=d.g/255,l[2]=d.b/255,l[3]=d.opacity),l}function Bi(o){var d=o&&o[0],l=o&&o[1],c=o&&o[2],u=d+l*256+c*65536-1;return u}function Nr(o){return[o+1&255,o+1>>8&255,o+1>>8>>8&255]}function Kr(o){var d=window.document.createElement("canvas"),l=d.getContext("2d");d.width=256,d.height=1;for(var c=null,u=l.createLinearGradient(0,0,256,1),m=o.positions[0],E=o.positions[o.positions.length-1],M=0;M0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(l)}function Hu(o,d){o instanceof HTMLElement?o.className=d:o.className.baseVal=d}function wh(o){return o instanceof SVGElement&&(o=o.correspondingElement),o.className.baseVal===void 0?o.className:o.className.baseVal}function lh(o){for(;o&&o.firstChild;)o.removeChild(o.firstChild)}var fu=Yo(["transform","WebkitTransform"]);function ru(o,d){o.style[fu]=d}function Tu(){if(typeof Event=="function")window.dispatchEvent(new Event("resize"));else{var o=window.document.createEvent("UIEvents");o.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(o)}}function wi(o){var d=["padding: "+(o.height/2-8)+"px "+o.width/2+"px;","line-height: "+o.height+"px;","background-image: url("+o.toDataURL()+");"];console.log(`%c +`,d.join(""))}function er(){var o,d=window.document.querySelector('meta[name="viewport"]');if(!d)return 1;var l=(o=d.content)===null||o===void 0?void 0:o.split(","),c=l.find(function(u){var m=u.split("="),E=(0,Or.Z)(m,1),M=E[0];return M==="initial-scale"});return c?c.split("=")[1]*1:1}var Un=er()<1?1:window.devicePixelRatio;function Wr(o,d){o.setAttribute("style","".concat(o.style.cssText).concat(d))}function Qr(o){return o.split(";").map(function(d){return d.trim()}).filter(function(d){return d})}function _o(o,d){var l,c=Qr((l=o.getAttribute("style"))!==null&&l!==void 0?l:""),u=Qr(d),m=js.apply(void 0,[c].concat((0,bn.Z)(u)));o.setAttribute("style",m.join(";"))}function us(o){return Object.entries(o).map(function(d){var l=(0,Or.Z)(d,2),c=l[0],u=l[1];return"".concat(c,": ").concat(u)}).join(";")}function es(o,d){return{left:o.left-d.left,top:o.top-d.top,right:d.left+d.width-o.left-o.width,bottom:d.top+d.height-o.top-o.height}}function Ma(o,d){o.checked=d,d?o.setAttribute("checked","true"):o.removeAttribute("checked")}function ga(o){o.innerHTML=""}function $a(o){o.setAttribute("draggable","false")}function Js(o,d){if(typeof d=="string"){var l=document.createElement("div");for(l.innerHTML=d;l.firstChild;)o.append(l.firstChild)}else Array.isArray(d)?o.append.apply(o,(0,bn.Z)(d)):o.append(d)}function Kl(o,d){for(var l=Array.isArray(d)?d:[d],c=o;c instanceof Element&&c!==window.document.body;){var u,m;if(l.find(function(E){var M;return(M=c)===null||M===void 0?void 0:M.matches(E)}))return c;c=(u=(m=c)===null||m===void 0?void 0:m.parentElement)!==null&&u!==void 0?u:null}}var ya;function Ta(o){return typeof ImageBitmap!="undefined"&&o instanceof ImageBitmap}function Xa(){return typeof importScripts=="function"}var au=Xa()?function(){return self.worker&&self.worker.referrer}:function(){return(window.location.protocol==="blob:"?window.parent:window).location.href},$l=(ya=navigator)===null||ya===void 0?void 0:ya.userAgent,Mu=!!$l.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),Bl=$l.indexOf("Android")>-1||$l.indexOf("Adr")>-1;function Sl(){for(var o=$l,d=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],l=!0,c=0,u=d;c0){l=!1;break}}return l}var Tn=y(4942);function nc(o,d){o.forEach(function(l){d[l]&&(d[l]=d[l].bind(d))})}var Iu=function(){function o(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16;(0,wt.Z)(this,o),(0,Tn.Z)(this,"duration",16),(0,Tn.Z)(this,"timestamp",new Date().getTime()),this.duration=d}return(0,nt.Z)(o,[{key:"run",value:function(l){var c=new Date().getTime(),u=c-this.timestamp;this.timestamp=c,u>=this.duration&&l()}}]),o}(),Ic=y(62096),Vc=y(1449);function dh(o){return typeof o=="number"}var Nc=2*Math.PI*6378137/2;function vd(o,d){var l=(0,Or.Z)(d,4),c=l[0],u=l[1],m=l[2],E=l[3];return o.lng>c&&o.lng<=m&&o.lat>u&&o.lat<=E}function Th(o){var d=[1/0,1/0,-1/0,-1/0];return o.forEach(function(l){var c=l.coordinates;Gd(d,c)}),d}function Gd(o,d){return Array.isArray(d[0])?d.forEach(function(l){Gd(o,l)}):(o[0]>d[0]&&(o[0]=d[0]),o[1]>d[1]&&(o[1]=d[1]),o[2]1&&arguments[1]!==void 0?arguments[1]:!0,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{enable:!0,decimal:1};o=Qd(o,d);var c=o[0],u=o[1],m=c*Nc/180,E=Math.log(Math.tan((90+u)*Math.PI/360))/(Math.PI/180);return E=E*Nc/180,l.enable&&(m=Number(m.toFixed(l.decimal)),E=Number(E.toFixed(l.decimal))),o.length===3?[m,E,o[2]]:[m,E]}function Vf(o){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,l=o[0],c=o[1],u=l/Nc*180,m=c/Nc*180;return m=180/Math.PI*(2*Math.atan(Math.exp(m*Math.PI/180))-Math.PI/2),d!=null&&(u=Number(u.toFixed(d)),m=Number(m.toFixed(d))),o.length===3?[u,m,o[2]]:[u,m]}function jf(o){if(o==null)throw new Error("lng is required");return(o>180||o<-180)&&(o=o%360,o>180&&(o=-360+o),o<-180&&(o=360+o),o===0&&(o=0)),o}function _d(o){if(o==null)throw new Error("lat is required");return(o>90||o<-90)&&(o=o%180,o>90&&(o=-180+o),o<-90&&(o=180+o),o===0&&(o=0)),o}function Qd(o,d){if(d===!1)return o;var l=jf(o[0]),c=_d(o[1]);return c>85&&(c=85),c<-85&&(c=-85),o.length===3?[l,c,o[2]]:[l,c]}function Md(o){var d=85.0511287798,l=Math.max(Math.min(d,o[1]),-d),c=256<<20,u=Math.PI/180,m=o[0]*u,E=l*u;E=Math.log(Math.tan(Math.PI/4+E/2));var M=.5/Math.PI,Z=.5,ne=-.5/Math.PI;return u=.5,m=c*(M*m+Z),E=c*(ne*E+u),[Math.floor(m),Math.floor(E)]}function jh(o){var d=.5/Math.PI,l=.5,c=-.5/Math.PI,u=.5,m=256<<20,E=(0,Or.Z)(o,2),M=E[0],Z=E[1];M=(M/m-l)/d,Z=(Z/m-u)/c,Z=(Math.atan(Math.pow(Math.E,Z))-Math.PI/4)*2,u=Math.PI/180;var ne=Z/u,Ce=M/u;return[Ce,ne]}function Bs(o,d){var l=85.0511287798,c=Math.PI/180,u=6378137;return d=Math.max(Math.min(l,d),-l),o*=c,d*=c,d=Math.log(Math.tan(Math.PI/4+d/2)),[o*u,d*u]}function Ua(o,d){var l=Math.PI/180,c=6378137,u=o/c/l,m=2*(Math.atan(Math.exp(d/c))-Math.PI/4)/l;return[u,m]}function Ya(o,d,l){var c=(0,Vc.degreesToRadians)(d[1]-o[1]),u=(0,Vc.degreesToRadians)(d[0]-o[0]),m=(0,Vc.degreesToRadians)(o[1]),E=(0,Vc.degreesToRadians)(d[1]),M=Math.pow(Math.sin(c/2),2)+Math.pow(Math.sin(u/2),2)*Math.cos(m)*Math.cos(E);return(0,Vc.radiansToLength)(2*Math.atan2(Math.sqrt(M),Math.sqrt(1-M)),l="meters")}function ml(o){var d=Math.PI/180,l=85.0511287798,c=6378137,u=Math.max(Math.min(l,o[1]),-l),m=Math.sin(u*d),E=c*o[0]*d,M=c*Math.log((1+m)/(1-m))/2;return[E,M]}function ou(o,d){var l=Math.abs(o[1][1]-o[0][1])*d,c=Math.abs(o[1][0]-o[0][0])*d;return[[o[0][0]-c,o[0][1]-l],[o[1][0]+c,o[1][1]+l]]}function ac(o,d){return o[0][0]<=d[0][0]&&o[0][1]<=d[0][1]&&o[1][0]>=d[1][0]&&o[1][1]>=d[1][1]}function ju(o){return[[o[0],o[1]],[o[2],o[3]]]}function uc(o){var d=Gu(o,[0,0]);return[o[0]/d,o[1]/d]}function Gu(o,d){return Math.sqrt(Math.pow(o[0]-d[0],2)+Math.pow(o[1]-d[1],2))}function Ol(o,d){return o[0]*d[0]+o[1]*d[1]}function Nu(o){return Math.sqrt(o[0]*o[0]+o[1]*o[1])}function qc(o,d){return Math.acos(Ol(o,d)/(Nu(o)*Nu(d)))*180/Math.PI}function fh(o,d){return d[0]>0?d[1]>0?90-Math.atan(d[1]/d[0])*180/Math.PI:90+Math.atan(-d[1]/d[0])*180/Math.PI:d[1]<0?180+(90-Math.atan(d[1]/d[0])*180/Math.PI):270+Math.atan(d[1]/-d[0])*180/Math.PI}function Qh(o){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;if(!(!o||o.length<2)){for(var l=[0,1],c=0,u=[],m=0;m0){var Oe=u[m-1].rotation;Oe-Ce>360-Oe+Ce&&(Ce=Ce+360)}u.push({start:E,end:M,dis:Z,rotation:Ce,duration:0})}return u.map(function(Ct){Ct.duration=d*(Ct.dis/c)}),u}}function Bd(o){if(dh(o[0]))return o;if(dh(o[0][0]))throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8");if(dh(o[0][0][0])){var d=o,l=0,c=0,u=0;return d.forEach(function(m){m.forEach(function(E){l+=E[0],c+=E[1],u++})}),[l/u,c/u,0]}else throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8")}function Hh(o){for(var d=o[0],l=o[1],c=o[0],u=o[1],m=0,E=0,M=0,Z=0;Zu&&(c=Math.floor(c/l)),c=c*d+o.charCodeAt(m);return c}function bh(o){o=o.toString();for(var d=5381,l=o.length;l;)d=d*33^o.charCodeAt(--l);return d>>>0}function su(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(o){var d=Math.random()*16|0,l=o==="x"?d:d&3|8;return l.toString(16)})}var nd=function(o){return o["GAODE1.x"]="GAODE1.x",o["GAODE2.x"]="GAODE2.x",o.MAPBOX="MAPBOX",o.DEFAULT="DEFAUlTMAP",o.SIMPLE="SIMPLE",o.GLOBEL="GLOBEL",o}({});function el(o,d,l,c,u){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,E=arguments.length>6?arguments[6]:void 0,M=l;return E&&(M=Math.round(l*(m-1))/(m-1)),c?Qa(o,d,M,c,u):Qa(o,d,M,.314,u)}function pu(o,d){var l=1-d;return(o[0]*l+o[1]*d)*l+(o[1]*l+o[2]*d)*d}function mh(o,d){return Math.sqrt(Math.pow(o[0]-d[0],2)+Math.pow(o[1]-d[1],2))}function Ud(o,d,l){var c=[d[0]-o[0],d[1]-o[1]],u=mh(c,[0,0]),m=Math.atan2(c[1],c[0]),E=u/2/Math.cos(l),M=m+l,Z=[E*Math.cos(M)+o[0],E*Math.sin(M)+o[1]];return Z}function Qa(o,d,l,c,u){if(u===nd["GAODE2.x"]){var m=Bs(o[0],o[1]),E=Bs(d[0],d[1]),M=Ud(m,E,c),Z=[m[0],M[0],E[0]],ne=[m[1],M[1],E[1]];return[].concat((0,bn.Z)(Ua(pu(Z,l),pu(ne,l))),[0])}else{var Ce=Ud(o,d,c),Oe=[o[0],Ce[0],d[0]],Ct=[o[1],Ce[1],d[1]];return[pu(Oe,l),pu(Ct,l),0]}}function mu(o,d,l,c,u){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,E=arguments.length>6?arguments[6]:void 0,M=l;return E&&(M=Math.round(l*29)/29),xc(o,d,M,u)}function Dl(o,d){var l=[d[0]-o[0],d[1]-o[1]],c=Gu(l,[0,0]),u=Math.atan2(l[1],l[0]),m=.314,E=c/2/Math.cos(m),M=u+m,Z=[E*Math.cos(M)+o[0],E*Math.sin(M)+o[1]];return Z}function uu(o,d){var l=1-d;return(o[0]*l+o[1]*d)*l+(o[1]*l+o[2]*d)*d}function Au(o,d){var l=[o[0]-d[0],o[1]-d[1]],c=[Math.sin(l[0]/2),Math.sin(l[1]/2)],u=c[1]*c[1]+Math.cos(o[1])*Math.cos(d[1])*c[0]*c[0];return 2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))}function xc(o,d,l,c){var u=[(0,Vc.degreesToRadians)(o[0]),(0,Vc.degreesToRadians)(o[1])],m=[(0,Vc.degreesToRadians)(d[0]),(0,Vc.degreesToRadians)(d[1])];if(c==="GAODE2.x"){var E=Dl(u,m),M=[u[0],E[0],m[0]],Z=[u[1],E[1],m[1]];return[uu(M,l),uu(Z,l),0]}else{var ne=Au(u,m);if(Math.abs(ne-Math.PI)<.001)return[(1-l)*u[0]+l*m[0],(1-l)*u[1]+l*m[1]];var Ce=Math.sin((1-l)*ne)/Math.sin(ne),Oe=Math.sin(l*ne)/Math.sin(ne),Ct=[Math.sin(u[0]),Math.sin(u[1])],Bt=[Math.cos(u[0]),Math.cos(u[1])],An=[Math.sin(m[0]),Math.sin(m[1])],kn=[Math.cos(m[0]),Math.cos(m[1])],Ir=Ce*Bt[1]*Bt[0]+Oe*kn[1]*kn[0],ui=Ce*Bt[1]*Ct[0]+Oe*kn[1]*An[0],ao=Ce*Ct[1]+Oe*An[1];return[(0,Vc.radiansToDegrees)(Math.atan2(ui,Ir)),(0,Vc.radiansToDegrees)(Math.atan2(ao,Math.sqrt(Ir*Ir+ui*ui)))]}}function yh(o,d){for(var l=0,c=[],u=0;une){var Ir=An.p1,ui=An.p2,ao=(ne-An.lastTotalDistance)/An.distance,wo=xh(ui,Ir,ao);Ce=wo[0],Oe=wo[1];break}}return{lng:Ce,lat:Oe,height:0}}function xh(o,d,l){return[o[0]*l+d[0]*(1-l),o[1]*l+d[1]*(1-l)]}function ef(o,d){return Math.sqrt(Math.pow(o[0]-d[0],2)+Math.pow(o[1]-d[1],2))}function qd(o,d){var l=d.featureId,c=o.data.dataArray;return typeof l=="number"&&(c=c.filter(function(u){var m=u.id;return m===l})),c.map(function(u){var m=hf(u,d);return(0,Be.Z)((0,Be.Z)({},u),m)})}function ld(o,d){return new Promise(function(l){o.inited?l(qd(o,d)):o.once("update",function(){l(qd(o,d))})})}function hf(o,d){var l=d.offset,c=d.shape,u=d.thetaOffset,m=d.mapVersion,E=d.segmentNumber,M=E===void 0?30:E,Z=d.autoFit,ne=Z===void 0?!0:Z,Ce=o.coordinates;if(c==="line")return yh(Ce,l);var Oe=Ce[0],Ct=Ce[1],Bt=typeof u=="string"?o[u]||0:u,An;switch(c){case"arc":An=el;break;case"greatcircle":An=mu;break;default:An=el}var kn=An(Oe,Ct,l,Bt,m,M,ne),Ir=(0,Or.Z)(kn,3),ui=Ir[0],ao=Ir[1],wo=Ir[2];return{lng:ui,lat:ao,height:wo}}var Od=function(){function o(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:50,l=arguments.length>1?arguments[1]:void 0;(0,wt.Z)(this,o),this.limit=d,this.destroy=l||this.defaultDestroy,this.order=[],this.clear()}return(0,nt.Z)(o,[{key:"clear",value:function(){var l=this;this.order.forEach(function(c){l.delete(c)}),this.cache={},this.order=[]}},{key:"get",value:function(l){var c=this.cache[l];return c&&(this.deleteOrder(l),this.appendOrder(l)),c}},{key:"set",value:function(l,c){this.cache[l]?(this.delete(l),this.cache[l]=c,this.appendOrder(l)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[l]=c,this.appendOrder(l))}},{key:"delete",value:function(l){var c=this.cache[l];c&&(this.deleteCache(l),this.deleteOrder(l),this.destroy(c,l))}},{key:"deleteCache",value:function(l){delete this.cache[l]}},{key:"deleteOrder",value:function(l){var c=this.order.findIndex(function(u){return u===l});c>=0&&this.order.splice(c,1)}},{key:"appendOrder",value:function(l){this.order.push(l)}},{key:"defaultDestroy",value:function(l,c){return null}}]),o}();function yc(o){if(o.length===0)throw new Error("max requires at least one data point");for(var d=o[0],l=1;ld&&(d=o[l]);return d*1}function Yh(o){if(o.length===0)throw new Error("min requires at least one data point");for(var d=o[0],l=1;lc&&(c=u,l=d),u=1,d=o[m]):u++;return l*1}var Yc={min:Yh,max:yc,mean:Mf,sum:rh,mode:yf};function ih(o,d){return o.map(function(l){return l[d]})}function Sd(o,d){return Yc[o](d)}var Pl=y(15861),ys=y(97326),Oc=y(64687),Oi=y.n(Oc),$p=y(95),gc=y(26729),uh=y.n(gc),pp=function(o){return o.Realtime="realtime",o.Overlap="overlap",o.Replace="replace",o}({}),Qp=function(o){return o.Loading="Loading",o.Loaded="Loaded",o.Failure="Failure",o.Cancelled="Cancelled",o}({}),Ng=0,xf=1,wp=2;function eg(o){o.forEach(function(d){d.isCurrent&&(d.isVisible=d.isLoaded)})}function gp(o){o.forEach(function(d){d.properties.state=Ng}),o.forEach(function(d){d.isCurrent&&!sp(d)&&hp(d)}),o.forEach(function(d){d.isVisible=!!(d.properties.state&wp)})}function Tg(o){o.forEach(function(l){l.properties.state=Ng}),o.forEach(function(l){l.isCurrent&&sp(l)});var d=o.slice().sort(function(l,c){return l.z-c.z});d.forEach(function(l){l.isVisible=!!(l.properties.state&wp),l.children.length&&(l.isVisible||l.properties.state&xf)?l.children.forEach(function(c){c.properties.state=xf}):l.isCurrent&&hp(l)})}function sp(o){for(;o;){if(o.isLoaded)return o.properties.state|=wp,!0;o=o.parent}return!1}function hp(o){o.children.forEach(function(d){d.isLoaded?d.properties.state|=wp:hp(d)})}var Wh,Cp=256,fg=[-1/0,-1/0,1/0,1/0],Mp=.2,gd=5,ig=(Wh={},(0,Tn.Z)(Wh,pp.Realtime,eg),(0,Tn.Z)(Wh,pp.Overlap,gp),(0,Tn.Z)(Wh,pp.Replace,Tg),Wh),qh=function(){};function kf(o,d,l){var c=Math.floor((o+180)/360*Math.pow(2,l)),u=Math.floor((1-Math.log(Math.tan(d*Math.PI/180)+1/Math.cos(d*Math.PI/180))/Math.PI)/2*Math.pow(2,l));return[c,u]}function _p(o,d,l){var c=o/Math.pow(2,l)*360-180,u=Math.PI-2*Math.PI*d/Math.pow(2,l),m=180/Math.PI*Math.atan(.5*(Math.exp(u)-Math.exp(-u)));return[c,m]}var Du=function(d,l,c){var u=_p(d,l,c),m=(0,Or.Z)(u,2),E=m[0],M=m[1],Z=_p(d+1,l+1,c),ne=(0,Or.Z)(Z,2),Ce=ne[0],Oe=ne[1];return[E,Oe,Ce,M]};function Rp(o){var d=o.zoom,l=o.latLonBounds,c=o.maxZoom,u=c===void 0?1/0:c,m=o.minZoom,E=m===void 0?0:m,M=o.zoomOffset,Z=M===void 0?0:M,ne=o.extent,Ce=ne===void 0?fg:ne,Oe=Math.ceil(d)+Z;if(Number.isFinite(E)&&Oeu&&(Oe=u);for(var Ct=(0,Or.Z)(l,4),Bt=Ct[0],An=Ct[1],kn=Ct[2],Ir=Ct[3],ui=[Math.max(Bt,Ce[0]),Math.max(An,Ce[1]),Math.min(kn,Ce[2]),Math.min(Ir,Ce[3])],ao=[],wo=kf(ui[0],ui[1],Oe),Ds=(0,Or.Z)(wo,2),oa=Ds[0],fa=Ds[1],Wa=kf(ui[2],ui[3],Oe),vl=(0,Or.Z)(Wa,2),Ql=vl[0],Ou=vl[1],Uu=oa;Uu<=Ql;Uu++)for(var hh=Ou;hh<=fa;hh++)ao.push({x:Uu,y:hh,z:Oe});var Ph=(Ql+oa)/2,Ld=(fa+Ou)/2,mg=function(am,iv){return Math.abs(am-Ph)+Math.abs(iv-Ld)};return ao.sort(function(Yg,am){return mg(Yg.x,Yg.y)-mg(am.x,am.y)}),ao}var Dp=function(d,l,c){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,m=Math.pow(2,c),E=m-1,M=m,Z=d,ne=l;return u&&(Z<0?Z=Z+M:Z>E&&(Z=Z%M)),{warpX:Z,warpY:ne}};function Gf(o){var d=kh();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function kh(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Bh=function(o){(0,lt.Z)(l,o);var d=Gf(l);function l(c){var u;(0,wt.Z)(this,l),u=d.call(this),(0,Tn.Z)((0,ys.Z)(u),"tileSize",256),(0,Tn.Z)((0,ys.Z)(u),"isVisible",!1),(0,Tn.Z)((0,ys.Z)(u),"isCurrent",!1),(0,Tn.Z)((0,ys.Z)(u),"isVisibleChange",!1),(0,Tn.Z)((0,ys.Z)(u),"loadedLayers",0),(0,Tn.Z)((0,ys.Z)(u),"isLayerLoaded",!1),(0,Tn.Z)((0,ys.Z)(u),"isLoad",!1),(0,Tn.Z)((0,ys.Z)(u),"isChildLoad",!1),(0,Tn.Z)((0,ys.Z)(u),"parent",null),(0,Tn.Z)((0,ys.Z)(u),"children",[]),(0,Tn.Z)((0,ys.Z)(u),"data",null),(0,Tn.Z)((0,ys.Z)(u),"properties",{}),(0,Tn.Z)((0,ys.Z)(u),"loadDataId",0);var m=c.x,E=c.y,M=c.z,Z=c.tileSize,ne=c.warp,Ce=ne===void 0?!0:ne;return u.x=m,u.y=E,u.z=M,u.warp=Ce||!0,u.tileSize=Z,u}return(0,nt.Z)(l,[{key:"isLoading",get:function(){return this.loadStatus===Qp.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===Qp.Loaded}},{key:"isFailure",get:function(){return this.loadStatus===Qp.Failure}},{key:"setTileLayerLoaded",value:function(){this.isLayerLoaded=!0}},{key:"isCancelled",get:function(){return this.loadStatus===Qp.Cancelled}},{key:"isDone",get:function(){return[Qp.Loaded,Qp.Cancelled,Qp.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return Du(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var u=(0,Or.Z)(this.bounds,4),m=u[0],E=u[1],M=u[2],Z=u[3],ne=[(M-m)/2,(Z-E)/2],Ce=(0,$p.Z)(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:ne,meta:` `.concat(this.key,` - `)}});return xe}},{key:"key",get:function(){var u="".concat(this.x,"_").concat(this.y,"_").concat(this.z);return u}},{key:"layerLoad",value:function(){this.loadedLayers++,this.emit("layerLoaded")}},{key:"loadData",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(E){var L,Z,ne,xe,Oe,wt,Bt,wn,Rn,Pr,ui,oo,xo,Ds,aa,fa,Za;return Fi().wrap(function(tu){for(;;)switch(tu.prev=tu.next){case 0:return L=E.getData,Z=E.onLoad,ne=E.onError,this.loadDataId++,xe=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=Yp.Loading,Oe=null,tu.prev=7,Bt=this.x,wn=this.y,Rn=this.z,Pr=this.bounds,ui=this.tileSize,oo=this.warp,xo=Tp(Bt,wn,Rn,oo),Ds=xo.warpX,aa=xo.warpY,fa=this.abortController.signal,Za={x:Ds,y:aa,z:Rn,bounds:Pr,tileSize:ui,signal:fa,warp:oo},tu.next=14,L(Za,this);case 14:Oe=tu.sent,tu.next=20;break;case 17:tu.prev=17,tu.t0=tu.catch(7),wt=tu.t0;case 20:if(xe===this.loadDataId){tu.next=22;break}return tu.abrupt("return");case 22:if(!(this.isCancelled&&!Oe)){tu.next=24;break}return tu.abrupt("return");case 24:if(!(wt||!Oe)){tu.next=28;break}return this.loadStatus=Yp.Failure,ne(wt,this),tu.abrupt("return");case 28:this.loadStatus=Yp.Loaded,this.data=Oe,Z(this);case 31:case"end":return tu.stop()}},m,this,[[7,17]])}));function u(m){return c.apply(this,arguments)}return u}()},{key:"reloadData",value:function(u){this.isLoading&&this.abortLoad(),this.loadData(u)}},{key:"abortLoad",value:function(){this.isLoaded||this.isCancelled||(this.loadStatus=Yp.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}}]),l}(uc.EventEmitter),Nd=function(d,l){var c=$u(d),u=au(c,l),m=360*3-180,E=85.0511287798065,L=[Math.max(u[0][0],-m),Math.max(u[0][1],-E),Math.min(u[1][0],m),Math.min(u[1][1],E)];return L},Ld=function(d,l){var c=$u(d),u=$u(l),m=ac(c,u);return m};function Sf(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=pp(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function pp(o,d){if(o){if(typeof o=="string")return tg(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return tg(o,d)}}function tg(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l=0&&Oe.x0;){var Z=u.shift();Z.abortLoad()}}},{key:"getTileByLngLat",value:function(u,m,E){var L=this.options.zoomOffset,Z=Math.ceil(E)+L,ne=Pf(u,m,Z),xe=this.tiles.filter(function(Oe){return Oe.key==="".concat(ne[0],"_").concat(ne[1],"_").concat(Z)});return xe[0]}},{key:"getTileExtent",value:function(u,m){return this.getTileIndices(m,u)}},{key:"getTileByZXY",value:function(u,m,E){var L=this.tiles.filter(function(Z){return Z.key==="".concat(m,"_").concat(E,"_").concat(u)});return L[0]}},{key:"clear",value:function(){var u=Sf(this.cacheTiles.values()),m;try{for(u.s();!(m=u.n()).done;){var E=m.value;E.isLoading?E.abortLoad():this.onTileUnload(E)}}catch(L){u.e(L)}finally{u.f()}this.lastViewStates=void 0,this.cacheTiles.clear(),this.currentTiles=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners()}},{key:"updateTileVisible",value:function(){var u=this.options.updateStrategy,m=new Map,E=Sf(this.cacheTiles.values()),L;try{for(E.s();!(L=E.n()).done;){var Z=L.value;m.set(Z.key,Z.isVisible),Z.isCurrent=!1,Z.isVisible=!1}}catch(wn){E.e(wn)}finally{E.f()}var ne=Sf(this.currentTiles),xe;try{for(ne.s();!(xe=ne.n()).done;){var Oe=xe.value;Oe.isCurrent=!0,Oe.isVisible=!0}}catch(wn){ne.e(wn)}finally{ne.f()}var wt=Array.from(this.cacheTiles.values());typeof u=="function"?u(wt):eg[u](wt);var Bt=!1;Array.from(this.cacheTiles.values()).forEach(function(wn){wn.isVisible!==m.get(wn.key)?(wn.isVisibleChange=!0,Bt=!0):wn.isVisibleChange=!1}),Bt&&this.emit(kh.TileUpdate)}},{key:"getTileIndices",value:function(u,m){var E=this.options,L=E.tileSize,Z=E.extent,ne=E.zoomOffset,xe=Math.floor(this.options.maxZoom),Oe=Math.ceil(this.options.minZoom),wt=Rp({maxZoom:xe,minZoom:Oe,zoomOffset:ne,tileSize:L,zoom:u,latLonBounds:m,extent:Z});return wt}},{key:"getTileId",value:function(u,m,E){var L="".concat(u,",").concat(m,",").concat(E);return L}},{key:"loadFinished",value:function(){var u=!this.currentTiles.some(function(m){return!m.isDone});return u&&this.emit(kh.TilesLoadFinished),u}},{key:"getTile",value:function(u,m,E){var L=this.getTileId(u,m,E),Z=this.cacheTiles.get(L);return Z}},{key:"createTile",value:function(u,m,E){var L=this.getTileId(u,m,E),Z=new Fd({x:u,y:m,z:E,tileSize:this.options.tileSize,warp:this.options.warp});return this.cacheTiles.set(L,Z),Z.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),Z}},{key:"resizeCacheTiles",value:function(){var u=gh*this.currentTiles.length,m=this.cacheTiles.size>u;if(m){var E=Sf(this.cacheTiles),L;try{for(E.s();!(L=E.n()).done;){var Z=(0,Br.Z)(L.value,2),ne=Z[0],xe=Z[1];if(!xe.isVisible&&!this.currentTiles.includes(xe)&&(this.cacheTiles.delete(ne),this.onTileUnload(xe)),this.cacheTiles.size<=u)break}}catch(Oe){E.e(Oe)}finally{E.f()}}this.rebuildTileTree()}},{key:"rebuildTileTree",value:function(){var u=Sf(this.cacheTiles.values()),m;try{for(u.s();!(m=u.n()).done;){var E=m.value;E.parent=null,E.children.length=0}}catch(Oe){u.e(Oe)}finally{u.f()}var L=Sf(this.cacheTiles.values()),Z;try{for(L.s();!(Z=L.n()).done;){var ne=Z.value,xe=this.getNearestAncestor(ne.x,ne.y,ne.z);ne.parent=xe,xe!=null&&xe.children&&xe.children.push(ne)}}catch(Oe){L.e(Oe)}finally{L.f()}}},{key:"getNearestAncestor",value:function(u,m,E){for(;E>this.options.minZoom;){u=Math.floor(u/2),m=Math.floor(m/2),E=E-1;var L=this.getTile(u,m,E);if(L)return L}return null}}]),l}(dd());function vd(o){return/(?=.*{box})(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(o)}function $c(o){var d=[],l=/\{([a-z])-([a-z])\}/.exec(o);if(l){var c=l[1].charCodeAt(0),u=l[2].charCodeAt(0),m;for(m=c;m<=u;++m)d.push(o.replace(l[0],String.fromCharCode(m)));return d}if(l=/\{(\d+)-(\d+)\}/.exec(o),l){for(var E=parseInt(l[2],10),L=parseInt(l[1],10);L<=E;L++)d.push(o.replace(l[0],L.toString()));return d}return d.push(o),d}function oh(o,d){if(!o||!o.length)throw new Error("url is not allowed to be empty");var l=d.x,c=d.y,u=d.z,m=$c(o),E=Math.abs(l+c)%m.length,L=Ts(m[E])?"".concat(m[E],"/{z}/{x}/{y}"):m[E];return L.replace(/\{x\}/g,l.toString()).replace(/\{y\}/g,c.toString()).replace(/\{z\}/g,u.toString()).replace(/\{bbox\}/g,Pu(l,c,u).join(",")).replace(/\{-y\}/g,(Math.pow(2,u)-c-1).toString())}function Xh(o,d){var l=d.x,c=d.y,u=d.z,m=d.layer,E=d.version,L=E===void 0?"1.0.0":E,Z=d.style,ne=Z===void 0?"default":Z,xe=d.format,Oe=d.service,wt=Oe===void 0?"WMTS":Oe,Bt=d.tileMatrixset,wn="".concat(o,"&SERVICE=").concat(wt,"&REQUEST=GetTile&VERSION=").concat(L,"&LAYER=").concat(m,"&STYLE=").concat(ne,"&TILEMATRIXSET=").concat(Bt,"&FORMAT=").concat(xe,"&TILECOL=").concat(l,"&TILEROW=").concat(c,"&TILEMATRIX=").concat(u);return wn}function zo(o,d){if(!o)throw new Error(d||"web worker helper assertion failed.")}var P={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,document:typeof document!="undefined"&&document},j=P.self||P.window||{},ae=P.window||P.self||{},pe=P.self||P.window||{},it=P.document||{},dn=typeof importScripts=="function",ir=typeof window!="undefined"&&typeof window.orientation!="undefined",Te=function(){function o(d,l){var c=this;this.name=d,this.workerThread=l,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise(function(u,m){c.resolve=u,c.reject=m})}return o.prototype.postMessage=function(d,l){this.workerThread.postMessage({source:"Main thread",type:d,payload:l})},o.prototype.done=function(d){zo(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(d)},o.prototype.error=function(d){zo(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(d)},o}(),D=Te,ie=new Map;function Se(o){zo(o.source&&!o.url||!o.source&&o.url);var d=ie.get(o.source||o.url);return d||(o.url&&(d=Ne(o.url),ie.set(o.url,d)),o.source&&(d=ct(o.source),ie.set(o.source,d))),zo(d),d}function Ne(o){if(!o.startsWith("http"))return o;var d=Ht(o);return ct(d)}function ct(o){var d=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(d)}function Ht(o){return`try { + `)}});return Ce}},{key:"key",get:function(){var u="".concat(this.x,"_").concat(this.y,"_").concat(this.z);return u}},{key:"layerLoad",value:function(){this.loadedLayers++,this.emit("layerLoaded")}},{key:"loadData",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(E){var M,Z,ne,Ce,Oe,Ct,Bt,An,kn,Ir,ui,ao,wo,Ds,oa,fa,Wa;return Oi().wrap(function(Ql){for(;;)switch(Ql.prev=Ql.next){case 0:return M=E.getData,Z=E.onLoad,ne=E.onError,this.loadDataId++,Ce=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=Qp.Loading,Oe=null,Ql.prev=7,Bt=this.x,An=this.y,kn=this.z,Ir=this.bounds,ui=this.tileSize,ao=this.warp,wo=Dp(Bt,An,kn,ao),Ds=wo.warpX,oa=wo.warpY,fa=this.abortController.signal,Wa={x:Ds,y:oa,z:kn,bounds:Ir,tileSize:ui,signal:fa,warp:ao},Ql.next=14,M(Wa,this);case 14:Oe=Ql.sent,Ql.next=20;break;case 17:Ql.prev=17,Ql.t0=Ql.catch(7),Ct=Ql.t0;case 20:if(Ce===this.loadDataId){Ql.next=22;break}return Ql.abrupt("return");case 22:if(!(this.isCancelled&&!Oe)){Ql.next=24;break}return Ql.abrupt("return");case 24:if(!(Ct||!Oe)){Ql.next=28;break}return this.loadStatus=Qp.Failure,ne(Ct,this),Ql.abrupt("return");case 28:this.loadStatus=Qp.Loaded,this.data=Oe,Z(this);case 31:case"end":return Ql.stop()}},m,this,[[7,17]])}));function u(m){return c.apply(this,arguments)}return u}()},{key:"reloadData",value:function(u){this.isLoading&&this.abortLoad(),this.loadData(u)}},{key:"abortLoad",value:function(){this.isLoaded||this.isCancelled||(this.loadStatus=Qp.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}}]),l}(gc.EventEmitter),Jh=function(d,l){var c=ju(d),u=ou(c,l),m=360*3-180,E=85.0511287798065,M=[Math.max(u[0][0],-m),Math.max(u[0][1],-E),Math.min(u[1][0],m),Math.min(u[1][1],E)];return M},Oh=function(d,l){var c=ju(d),u=ju(l),m=ac(c,u);return m};function Tf(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=Zf(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function Zf(o,d){if(o){if(typeof o=="string")return Ip(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Ip(o,d)}}function Ip(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l=0&&Oe.x0;){var Z=u.shift();Z.abortLoad()}}},{key:"getTileByLngLat",value:function(u,m,E){var M=this.options.zoomOffset,Z=Math.ceil(E)+M,ne=kf(u,m,Z),Ce=this.tiles.filter(function(Oe){return Oe.key==="".concat(ne[0],"_").concat(ne[1],"_").concat(Z)});return Ce[0]}},{key:"getTileExtent",value:function(u,m){return this.getTileIndices(m,u)}},{key:"getTileByZXY",value:function(u,m,E){var M=this.tiles.filter(function(Z){return Z.key==="".concat(m,"_").concat(E,"_").concat(u)});return M[0]}},{key:"clear",value:function(){var u=Tf(this.cacheTiles.values()),m;try{for(u.s();!(m=u.n()).done;){var E=m.value;E.isLoading?E.abortLoad():this.onTileUnload(E)}}catch(M){u.e(M)}finally{u.f()}this.lastViewStates=void 0,this.cacheTiles.clear(),this.currentTiles=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners()}},{key:"updateTileVisible",value:function(){var u=this.options.updateStrategy,m=new Map,E=Tf(this.cacheTiles.values()),M;try{for(E.s();!(M=E.n()).done;){var Z=M.value;m.set(Z.key,Z.isVisible),Z.isCurrent=!1,Z.isVisible=!1}}catch(An){E.e(An)}finally{E.f()}var ne=Tf(this.currentTiles),Ce;try{for(ne.s();!(Ce=ne.n()).done;){var Oe=Ce.value;Oe.isCurrent=!0,Oe.isVisible=!0}}catch(An){ne.e(An)}finally{ne.f()}var Ct=Array.from(this.cacheTiles.values());typeof u=="function"?u(Ct):ig[u](Ct);var Bt=!1;Array.from(this.cacheTiles.values()).forEach(function(An){An.isVisible!==m.get(An.key)?(An.isVisibleChange=!0,Bt=!0):An.isVisibleChange=!1}),Bt&&this.emit(Rd.TileUpdate)}},{key:"getTileIndices",value:function(u,m){var E=this.options,M=E.tileSize,Z=E.extent,ne=E.zoomOffset,Ce=Math.floor(this.options.maxZoom),Oe=Math.ceil(this.options.minZoom),Ct=Rp({maxZoom:Ce,minZoom:Oe,zoomOffset:ne,tileSize:M,zoom:u,latLonBounds:m,extent:Z});return Ct}},{key:"getTileId",value:function(u,m,E){var M="".concat(u,",").concat(m,",").concat(E);return M}},{key:"loadFinished",value:function(){var u=!this.currentTiles.some(function(m){return!m.isDone});return u&&this.emit(Rd.TilesLoadFinished),u}},{key:"getTile",value:function(u,m,E){var M=this.getTileId(u,m,E),Z=this.cacheTiles.get(M);return Z}},{key:"createTile",value:function(u,m,E){var M=this.getTileId(u,m,E),Z=new Bh({x:u,y:m,z:E,tileSize:this.options.tileSize,warp:this.options.warp});return this.cacheTiles.set(M,Z),Z.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),Z}},{key:"resizeCacheTiles",value:function(){var u=gd*this.currentTiles.length,m=this.cacheTiles.size>u;if(m){var E=Tf(this.cacheTiles),M;try{for(E.s();!(M=E.n()).done;){var Z=(0,Or.Z)(M.value,2),ne=Z[0],Ce=Z[1];if(!Ce.isVisible&&!this.currentTiles.includes(Ce)&&(this.cacheTiles.delete(ne),this.onTileUnload(Ce)),this.cacheTiles.size<=u)break}}catch(Oe){E.e(Oe)}finally{E.f()}}this.rebuildTileTree()}},{key:"rebuildTileTree",value:function(){var u=Tf(this.cacheTiles.values()),m;try{for(u.s();!(m=u.n()).done;){var E=m.value;E.parent=null,E.children.length=0}}catch(Oe){u.e(Oe)}finally{u.f()}var M=Tf(this.cacheTiles.values()),Z;try{for(M.s();!(Z=M.n()).done;){var ne=Z.value,Ce=this.getNearestAncestor(ne.x,ne.y,ne.z);ne.parent=Ce,Ce!=null&&Ce.children&&Ce.children.push(ne)}}catch(Oe){M.e(Oe)}finally{M.f()}}},{key:"getNearestAncestor",value:function(u,m,E){for(;E>this.options.minZoom;){u=Math.floor(u/2),m=Math.floor(m/2),E=E-1;var M=this.getTile(u,m,E);if(M)return M}return null}}]),l}(uh());function Eh(o){return/(?=.*{box})(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(o)}function jc(o){var d=[],l=/\{([a-z])-([a-z])\}/.exec(o);if(l){var c=l[1].charCodeAt(0),u=l[2].charCodeAt(0),m;for(m=c;m<=u;++m)d.push(o.replace(l[0],String.fromCharCode(m)));return d}if(l=/\{(\d+)-(\d+)\}/.exec(o),l){for(var E=parseInt(l[2],10),M=parseInt(l[1],10);M<=E;M++)d.push(o.replace(l[0],M.toString()));return d}return d.push(o),d}function zh(o,d){if(!o||!o.length)throw new Error("url is not allowed to be empty");var l=d.x,c=d.y,u=d.z,m=jc(o),E=Math.abs(l+c)%m.length,M=Is(m[E])?"".concat(m[E],"/{z}/{x}/{y}"):m[E];return M.replace(/\{x\}/g,l.toString()).replace(/\{y\}/g,c.toString()).replace(/\{z\}/g,u.toString()).replace(/\{bbox\}/g,Du(l,c,u).join(",")).replace(/\{-y\}/g,(Math.pow(2,u)-c-1).toString())}function Xd(o,d){var l=d.x,c=d.y,u=d.z,m=d.layer,E=d.version,M=E===void 0?"1.0.0":E,Z=d.style,ne=Z===void 0?"default":Z,Ce=d.format,Oe=d.service,Ct=Oe===void 0?"WMTS":Oe,Bt=d.tileMatrixset,An="".concat(o,"&SERVICE=").concat(Ct,"&REQUEST=GetTile&VERSION=").concat(M,"&LAYER=").concat(m,"&STYLE=").concat(ne,"&TILEMATRIXSET=").concat(Bt,"&FORMAT=").concat(Ce,"&TILECOL=").concat(l,"&TILEROW=").concat(c,"&TILEMATRIX=").concat(u);return An}function zo(o,d){if(!o)throw new Error(d||"web worker helper assertion failed.")}var L={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,document:typeof document!="undefined"&&document},j=L.self||L.window||{},le=L.window||L.self||{},ge=L.self||L.window||{},ot=L.document||{},dn=typeof importScripts=="function",or=typeof window!="undefined"&&typeof window.orientation!="undefined",Ie=function(){function o(d,l){var c=this;this.name=d,this.workerThread=l,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise(function(u,m){c.resolve=u,c.reject=m})}return o.prototype.postMessage=function(d,l){this.workerThread.postMessage({source:"Main thread",type:d,payload:l})},o.prototype.done=function(d){zo(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(d)},o.prototype.error=function(d){zo(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(d)},o}(),D=Ie,ie=new Map;function Ee(o){zo(o.source&&!o.url||!o.source&&o.url);var d=ie.get(o.source||o.url);return d||(o.url&&(d=Ne(o.url),ie.set(o.url,d)),o.source&&(d=ct(o.source),ie.set(o.source,d))),zo(d),d}function Ne(o){if(!o.startsWith("http"))return o;var d=Gt(o);return ct(d)}function ct(o){var d=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(d)}function Gt(o){return`try { importScripts('`+o+`'); } catch (error) { console.error(error); throw error; -}`}function en(o,d,l){d===void 0&&(d=!0);var c=l||new Set;if(o){if(zn(o))c.add(o);else if(zn(o.buffer))c.add(o.buffer);else if(!ArrayBuffer.isView(o)){if(d&&typeof o=="object")for(var u in o)en(o[u],d,c)}}return l===void 0?Array.from(c):[]}function zn(o){return o?o instanceof ArrayBuffer||typeof MessagePort!="undefined"&&o instanceof MessagePort||typeof ImageBitmap!="undefined"&&o instanceof ImageBitmap||typeof OffscreenCanvas!="undefined"&&o instanceof OffscreenCanvas:!1}var Ir=function(){},G=function(){function o(d){this.terminated=!1,this.loadableURL="";var l=d.name,c=d.source,u=d.url;zo(c||u),this.name=l,this.source=c,this.url=u,this.onMessage=Ir,this.onError=function(m){return console.log(m)},this.worker=this.createBrowserWorker()}return o.isSupported=function(){return typeof Worker!="undefined"},o.prototype.destroy=function(){this.onMessage=Ir,this.onError=Ir,this.worker.terminate(),this.terminated=!0},Object.defineProperty(o.prototype,"isRunning",{get:function(){return!!this.onMessage},enumerable:!1,configurable:!0}),o.prototype.postMessage=function(d,l){l=l||en(d),this.worker.postMessage(d,l)},o.prototype.getErrorFromErrorEvent=function(d){var l="Failed to load ";return l+="worker "+this.name+" from "+this.url+". ",d.message&&(l+=d.message+" in "),d.lineno&&(l+=":"+d.lineno+":"+d.colno),new Error(l)},o.prototype.createBrowserWorker=function(){var d=this;this.loadableURL=Se({source:this.source,url:this.url});var l=new Worker(this.loadableURL,{name:this.name});return l.onmessage=function(c){c.data?d.onMessage(c.data):d.onError(new Error("No data received"))},l.onerror=function(c){d.onError(d.getErrorFromErrorEvent(c)),d.terminated=!0},l.onmessageerror=function(c){return console.error("worker "+d.name+", message error: "+c)},l},o}(),J=G,Q=function(){return Q=Object.assign||function(o){for(var d,l=1,c=arguments.length;l0&&m[m.length-1])&&(ne[0]===6||ne[0]===2)){l=0;continue}if(ne[0]===3&&(!m||ne[1]>m[0]&&ne[1]this.getMaxConcurrency();l?(d.destroy(),this.count--):this.idleQueue.push(d),this.isDestroyed||this.startQueuedJob()},o.prototype.getAvailableWorker=function(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count=o.length&&(o=void 0),{value:o&&o[c++],done:!o}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},Sn={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},bi=function(){function o(d){this.workerPools=new Map,this.props=mn({},Sn),this.setProps(d),this.workerPools=new Map}return o.isSupported=function(){return J.isSupported()},o.getWorkerFarm=function(d){return d===void 0&&(d={}),o.workerFarm=o.workerFarm||new o({}),o.workerFarm.setProps(d),o.workerFarm},o.prototype.destroy=function(){var d,l;try{for(var c=yr(this.workerPools.values()),u=c.next();!u.done;u=c.next()){var m=u.value;m.destroy()}}catch(E){d={error:E}}finally{try{u&&!u.done&&(l=c.return)&&l.call(c)}finally{if(d)throw d.error}}},o.prototype.setProps=function(d){var l,c;this.props=mn(mn({},this.props),d);try{for(var u=yr(this.workerPools.values()),m=u.next();!m.done;m=u.next()){var E=m.value;E.setProps(this.getWorkerPoolProps())}}catch(L){l={error:L}}finally{try{m&&!m.done&&(c=u.return)&&c.call(u)}finally{if(l)throw l.error}}},o.prototype.getWorkerPool=function(d){var l=d.name,c=d.source,u=d.url,m=this.workerPools.get(l);return m||(m=new Ot({name:l,source:c,url:u}),m.setProps(this.getWorkerPoolProps()),this.workerPools.set(l,m)),m},o.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}},o}(),ki=bi,Zi=new Map,Bo=function(){function o(){}return Object.defineProperty(o,"onmessage",{set:function(d){self.onmessage=function(l){if(zi(l)){var c=l.data,u=c.type,m=c.payload;d(u,m)}}},enumerable:!1,configurable:!0}),o.addEventListener=function(d){var l=Zi.get(d);l||(l=function(c){if(zi(c)){var u=c.data,m=u.type,E=u.payload;d(m,E)}}),self.addEventListener("message",l)},o.removeEventListener=function(d){var l=Zi.get(d);Zi.delete(d),self.removeEventListener("message",l)},o.postMessage=function(d,l){if(self){var c={source:"Worker thread",type:d,payload:l},u=en(l);self.postMessage(c,u)}},o}(),Go=null;function zi(o){var d=o.type,l=o.data;return d==="message"&&l&&typeof l.source=="string"&&l.source==="Main thread"}function $o(o){return JSON.parse(Ks(o))}function Ks(o){var d=new Set;return JSON.stringify(o,function(l,c){if(typeof c=="object"&&c!==null){if(d.has(c))try{return JSON.parse(JSON.stringify(c))}catch(u){return}d.add(c)}return c})}function nl(o){return""+o.name}function el(o,d){d===void 0&&(d={});var l=d[o.id]||{},c=o.name+".worker.js",u=l.workerUrl;return d._workerType==="test"&&(u=o.module+"/dist/"+c),u||(u="https://unpkg.com/"+o.module+"/dist/"+c),assert(u),u}var Kl=function(o,d,l,c){function u(m){return m instanceof l?m:new l(function(E){E(m)})}return new(l||(l=Promise))(function(m,E){function L(xe){try{ne(c.next(xe))}catch(Oe){E(Oe)}}function Z(xe){try{ne(c.throw(xe))}catch(Oe){E(Oe)}}function ne(xe){xe.done?m(xe.value):u(xe.value).then(L,Z)}ne((c=c.apply(o,d||[])).next())})},yl=function(o,d){var l={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},c,u,m,E;return E={next:L(0),throw:L(1),return:L(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function L(ne){return function(xe){return Z([ne,xe])}}function Z(ne){if(c)throw new TypeError("Generator is already executing.");for(;l;)try{if(c=1,u&&(m=ne[0]&2?u.return:ne[0]?u.throw||((m=u.return)&&m.call(u),0):u.next)&&!(m=m.call(u,ne[1])).done)return m;switch(u=0,m&&(ne=[ne[0]&2,m.value]),ne[0]){case 0:case 1:m=ne;break;case 4:return l.label++,{value:ne[1],done:!1};case 5:l.label++,u=ne[1],ne=[0];continue;case 7:ne=l.ops.pop(),l.trys.pop();continue;default:if(m=l.trys,!(m=m.length>0&&m[m.length-1])&&(ne[0]===6||ne[0]===2)){l=0;continue}if(ne[0]===3&&(!m||ne[1]>m[0]&&ne[1]0){if(this._values.length>0)throw new Error("Illegal internal state");var l=this._settlers.shift();d instanceof Error?l.reject(d):l.resolve({value:d})}else this._values.push(d)},o.prototype.close=function(){for(;this._settlers.length>0;){var d=this._settlers.shift();d.resolve({done:!0})}this._closed=!0},o.prototype.next=function(){var d=this;if(this._values.length>0){var l=this._values.shift();return l instanceof Error?Promise.reject(l):Promise.resolve({done:!1,value:l})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise(function(c,u){d._settlers.push({resolve:c,reject:u})})},o}(),ld=null,yd=function(o,d,l,c){function u(m){return m instanceof l?m:new l(function(E){E(m)})}return new(l||(l=Promise))(function(m,E){function L(xe){try{ne(c.next(xe))}catch(Oe){E(Oe)}}function Z(xe){try{ne(c.throw(xe))}catch(Oe){E(Oe)}}function ne(xe){xe.done?m(xe.value):u(xe.value).then(L,Z)}ne((c=c.apply(o,d||[])).next())})},Xd=function(o,d){var l={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},c,u,m,E;return E={next:L(0),throw:L(1),return:L(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function L(ne){return function(xe){return Z([ne,xe])}}function Z(ne){if(c)throw new TypeError("Generator is already executing.");for(;l;)try{if(c=1,u&&(m=ne[0]&2?u.return:ne[0]?u.throw||((m=u.return)&&m.call(u),0):u.next)&&!(m=m.call(u,ne[1])).done)return m;switch(u=0,m&&(ne=[ne[0]&2,m.value]),ne[0]){case 0:case 1:m=ne;break;case 4:return l.label++,{value:ne[1],done:!1};case 5:l.label++,u=ne[1],ne=[0];continue;case 7:ne=l.ops.pop(),l.trys.pop();continue;default:if(m=l.trys,!(m=m.length>0&&m[m.length-1])&&(ne[0]===6||ne[0]===2)){l=0;continue}if(ne[0]===3&&(!m||ne[1]>m[0]&&ne[1]0&&m[m.length-1])&&(ne[0]===6||ne[0]===2)){l=0;continue}if(ne[0]===3&&(!m||ne[1]>m[0]&&ne[1]0&&(u=1/Math.sqrt(u)),o[0]=d[0]*u,o[1]=d[1]*u,o}function vm(o,d){return o[0]*d[0]+o[1]*d[1]}function Bg(o,d,l){var c=d[0]*l[1]-d[1]*l[0];return o[0]=o[1]=0,o[2]=c,o}function Vm(o,d,l,c){var u=d[0],m=d[1];return o[0]=u+c*(l[0]-u),o[1]=m+c*(l[1]-m),o}function Pg(o,d){d=d||1;var l=glMatrix.RANDOM()*2*Math.PI;return o[0]=Math.cos(l)*d,o[1]=Math.sin(l)*d,o}function cv(o,d,l){var c=d[0],u=d[1];return o[0]=l[0]*c+l[2]*u,o[1]=l[1]*c+l[3]*u,o}function Jf(o,d,l){var c=d[0],u=d[1];return o[0]=l[0]*c+l[2]*u+l[4],o[1]=l[1]*c+l[3]*u+l[5],o}function Dp(o,d,l){var c=d[0],u=d[1];return o[0]=l[0]*c+l[3]*u+l[6],o[1]=l[1]*c+l[4]*u+l[7],o}function bf(o,d,l){var c=d[0],u=d[1];return o[0]=l[0]*c+l[4]*u+l[12],o[1]=l[1]*c+l[5]*u+l[13],o}function O0(o,d,l,c){var u=d[0]-l[0],m=d[1]-l[1],E=Math.sin(c),L=Math.cos(c);return o[0]=u*L-m*E+l[0],o[1]=u*E+m*L+l[1],o}function N0(o,d){var l=o[0],c=o[1],u=d[0],m=d[1],E=Math.sqrt(l*l+c*c)*Math.sqrt(u*u+m*m),L=E&&(l*u+c*m)/E;return Math.acos(Math.min(Math.max(L,-1),1))}function um(o){return o[0]=0,o[1]=0,o}function P0(o){return"vec2("+o[0]+", "+o[1]+")"}function K0(o,d){return o[0]===d[0]&&o[1]===d[1]}function X0(o,d){var l=o[0],c=o[1],u=d[0],m=d[1];return Math.abs(l-u)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(u))&&Math.abs(c-m)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))}var $h=null,s0=of,gm=null,c0=null,Mm=null,d0=null,Hp=null,Qg=function(){var o=Zh();return function(d,l,c,u,m,E){var L,Z;for(l||(l=2),c||(c=0),u?Z=Math.min(u*l+c,d.length):Z=d.length,L=c;L0&&arguments[0]!==void 0?arguments[0]:{};(0,Ct.Z)(this,o),(0,Tn.Z)(this,"lastFlip",-1),(0,Tn.Z)(this,"miter",Np(0,0)),(0,Tn.Z)(this,"started",!1),(0,Tn.Z)(this,"dash",!1),(0,Tn.Z)(this,"totalDistance",0),(0,Tn.Z)(this,"currentIndex",0),this.join=d.join||"miter",this.cap=d.cap||"butt",this.miterLimit=d.miterLimit||10,this.thickness=d.thickness||1,this.dash=d.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,nt.Z)(o,[{key:"extrude_gaode2",value:function(l,c){var u=this.complex;if(l.length<=1)return u;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var m=l.length,E=u.startIndex,L=1;Lthis.miterLimit&&(Xc=!0)}Xc?(Bt.push(this.normal[0],this.normal[1],0),Bt.push(ku[0],ku[1],0),wt.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*ju,m[2]|0),this.complex.indexes.push(this.currentIndex),wt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness*ju,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Oe.push.apply(Oe,(0,_n.Z)(this.lastFlip!==-ju?[c,c+2,c+3]:[c+2,c+1,c+3])),Oe.push(c+2,c+3,c+4),At(Fm,be),Zp(this.normal,Fm),Bt.push(this.normal[0],this.normal[1],0),wt.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*ju,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,xe+=3):(this.extrusions(wt,Bt,m,ku,tu,this.totalDistance),Oe.push.apply(Oe,(0,_n.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),ju=-1,Zp(this.normal,ku),xe+=2),this.lastFlip=ju}else{if(At(this.normal,dg),wn){var aa=Zh(),fa=Zh();s0(fa,dg,this.normal),Gf(aa,dg,this.normal),Bt.push(fa[0],fa[1],0),Bt.push(aa[0],aa[1],0),wt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),wt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(wt,Bt,m,this.normal,this.thickness,this.totalDistance);Oe.push.apply(Oe,(0,_n.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),xe+=2}return xe}},{key:"simpleSegment",value:function(l,c,u,m,E){var L=0,Z=l.indices,ne=l.positions,xe=l.normals,Oe=Mh([m[0],m[1]]),wt=Mh([u[0],u[1]]);Vn(dg,Oe,wt);var Bt=0;if(this.dash&&(Bt=this.lineSegmentDistance(Oe,wt),this.totalDistance+=Bt),this.normal||(this.normal=Zh(),At(this.normal,dg)),this.started||(this.started=!0,this.extrusions(ne,xe,u,this.normal,this.thickness,this.totalDistance-Bt)),Z.push(c+0,c+1,c+2),!E)At(this.normal,dg),this.extrusions(ne,xe,m,this.normal,this.thickness,this.totalDistance),Z.push.apply(Z,(0,_n.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),L+=2;else{var wn=Mh([E[0],E[1]]);xt(Oe,wn)&&Gf(wn,Oe,Ng(wn,of(wn,Oe,wt))),Vn(be,wn,Oe);var Rn=ke(ee,Zh(),dg,be,this.thickness),Pr=(0,Br.Z)(Rn,2),ui=Pr[0],oo=Pr[1],xo=vm(ee,this.normal)<0?-1:1;this.extrusions(ne,xe,m,oo,ui,this.totalDistance),Z.push.apply(Z,(0,_n.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),xo=-1,Zp(this.normal,oo),L+=2,this.lastFlip=xo}return L}},{key:"segment",value:function(l,c,u,m,E){var L=0,Z=l.indices,ne=l.positions,xe=l.normals,Oe=this.cap==="square",wt=this.join==="bevel",Bt=Mh([m[0],m[1]]),wn=Mh([u[0],u[1]]);Vn(dg,Bt,wn);var Rn=0;if(this.dash&&(Rn=this.lineSegmentDistance(Bt,wn),this.totalDistance+=Rn),this.normal||(this.normal=Zh(),At(this.normal,dg)),!this.started)if(this.started=!0,Oe){var Pr=Zh(),ui=Zh();Gf(Pr,this.normal,dg),Gf(ui,this.normal,dg),xe.push(ui[0],ui[1],0),xe.push(Pr[0],Pr[1],0),ne.push(u[0],u[1],u[2]|0,this.totalDistance-Rn,-this.thickness,u[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(u[0],u[1],u[2]|0,this.totalDistance-Rn,this.thickness,u[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ne,xe,u,this.normal,this.thickness,this.totalDistance-Rn);if(Z.push(c+0,c+1,c+2),E){var Ds=Mh([E[0],E[1]]);xt(Bt,Ds)&&Gf(Ds,Bt,Ng(Ds,of(Ds,Bt,wn))),Vn(be,Ds,Bt);var aa=ke(ee,Zh(),dg,be,this.thickness),fa=(0,Br.Z)(aa,2),Za=fa[0],gl=fa[1],tu=vm(ee,this.normal)<0?-1:1,ku=wt;if(!ku&&this.join==="miter"){var ju=Za;ju>this.miterLimit&&(ku=!0)}ku?(xe.push(this.normal[0],this.normal[1],0),xe.push(gl[0],gl[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*tu,m[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness*tu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Z.push.apply(Z,(0,_n.Z)(this.lastFlip!==-tu?[c,c+2,c+3]:[c+2,c+1,c+3])),Z.push(c+2,c+3,c+4),At(Fm,be),Zp(this.normal,Fm),xe.push(this.normal[0],this.normal[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*tu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,L+=3):(this.extrusions(ne,xe,m,gl,Za,this.totalDistance),Z.push.apply(Z,(0,_n.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),tu=-1,Zp(this.normal,gl),L+=2),this.lastFlip=tu}else{if(At(this.normal,dg),Oe){var oo=Zh(),xo=Zh();s0(xo,dg,this.normal),Gf(oo,dg,this.normal),xe.push(xo[0],xo[1],0),xe.push(oo[0],oo[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ne,xe,m,this.normal,this.thickness,this.totalDistance);Z.push.apply(Z,(0,_n.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),L+=2}return L}},{key:"extrusions",value:function(l,c,u,m,E,L){c.push(m[0],m[1],0),c.push(m[0],m[1],0),l.push(u[0],u[1],u[2]|0,L,-E,u[2]|0),this.complex.indexes.push(this.currentIndex),l.push(u[0],u[1],u[2]|0,L,E,u[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(l,c){var u=c[0]-l[0],m=c[1]-l[1];return Math.sqrt(u*u+m*m)}}]),o}();function on(o){var d=o.coordinates,l=o.originCoordinates,c=o.version,u=new jt({dash:!0,join:"bevel"});if(c==="GAODE2.x"){var m=d;Array.isArray(m[0][0])||(m=[d]);var E=l;Array.isArray(E[0][0])||(E=[l]);for(var L=0;L0}).forEach(function(ui,oo){var xo=Er(ui[L]);(0,St.flattenEach)(xo,function(Ds){var aa=(0,Kt.getCoords)(Ds),fa=(0,ze.Z)((0,ze.Z)({},ui),{},{_id:oo,coordinates:aa});Z.push(fa)})}),{dataArray:Z};for(var ne=0;ne>>0}function Hi(o,d){return d===void 0?null:(0,ai.Z)(o.properties[d])*1==="number"?o.properties[d]*1:o.properties&&o.properties[d]?wi(o.properties[d]+"")%1000019:null}function Wo(o,d){var l=[],c={};return o.features?(o.features=o.features.filter(function(u){var m=u.geometry;return u!=null&&m&&m.type&&m.coordinates&&m.coordinates.length>0}),o=Er(o),o.features.length===0?{dataArray:[],featureKeys:c}:((0,St.flattenEach)(o,function(u,m){var E=Hi(u,d==null?void 0:d.featureId);E===null&&(E=m);var L=E,Z=(0,Kt.getCoords)(u),ne=(0,ze.Z)((0,ze.Z)({},u.properties),{},{coordinates:Z,_id:L});l.push(ne)}),{dataArray:l,featureKeys:c})):(o.features=[],{dataArray:[]})}function po(o,d,l,c){for(var u=c,m=l-d>>1,E=l-d,L,Z=o[d],ne=o[d+1],xe=o[l],Oe=o[l+1],wt=d+3;wtu)L=wt,u=Bt;else if(Bt===u){var wn=Math.abs(wt-m);wnc&&(L-d>3&&po(o,d,L,c),o[L+2]=u,l-L>3&&po(o,L,l,c))}function Uo(o,d,l,c,u,m){var E=u-l,L=m-c;if(E!==0||L!==0){var Z=((o-l)*E+(d-c)*L)/(E*E+L*L);Z>1?(l=u,c=m):Z>0&&(l+=E*Z,c+=L*Z)}return E=o-l,L=d-c,E*E+L*L}function xs(o,d,l,c){var u={id:typeof o=="undefined"?null:o,type:d,geometry:l,tags:c,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Xi(u),u}function Xi(o){var d=o.geometry,l=o.type;if(l==="Point"||l==="MultiPoint"||l==="LineString")ws(o,d);else if(l==="Polygon"||l==="MultiLineString")for(var c=0;c0&&(c?E+=(u*ne-Z*m)/2:E+=Math.sqrt(Math.pow(Z-u,2)+Math.pow(ne-m,2))),u=Z,m=ne}var xe=d.length-3;d[2]=1,po(d,0,xe,l),d[xe+2]=1,d.size=Math.abs(E),d.start=0,d.end=d.size}function qs(o,d,l,c){for(var u=0;u1?1:l}function oi(o,d,l,c,u,m,E,L){if(l/=d,c/=d,m>=l&&E=c)return null;for(var Z=[],ne=0;ne=l&&wn=c)continue;var Rn=[];if(wt==="Point"||wt==="MultiPoint")ps(Oe,Rn,l,c,u);else if(wt==="LineString")As(Oe,Rn,l,c,u,!1,L.lineMetrics);else if(wt==="MultiLineString")no(Oe,Rn,l,c,u,!1);else if(wt==="Polygon")no(Oe,Rn,l,c,u,!0);else if(wt==="MultiPolygon")for(var Pr=0;Pr=l&&E<=c&&(d.push(o[m]),d.push(o[m+1]),d.push(o[m+2]))}}function As(o,d,l,c,u,m,E){for(var L=Aa(o),Z=u===0?Mo:ta,ne=o.start,xe,Oe,wt=0;wtl&&(Oe=Z(L,Bt,wn,Pr,ui,l),E&&(L.start=ne+xe*Oe)):oo>c?xo=l&&(Oe=Z(L,Bt,wn,Pr,ui,l),Ds=!0),xo>c&&oo<=c&&(Oe=Z(L,Bt,wn,Pr,ui,c),Ds=!0),!m&&Ds&&(E&&(L.end=ne+xe*Oe),d.push(L),L=Aa(o)),E&&(ne+=xe)}var aa=o.length-3;Bt=o[aa],wn=o[aa+1],Rn=o[aa+2],oo=u===0?Bt:wn,oo>=l&&oo<=c&&ao(L,Bt,wn,Rn),aa=L.length-3,m&&aa>=3&&(L[aa]!==L[0]||L[aa+1]!==L[1])&&ao(L,L[0],L[1],L[2]),L.length&&d.push(L)}function Aa(o){var d=[];return d.size=o.size,d.start=o.start,d.end=o.end,d}function no(o,d,l,c,u,m){for(var E=0;EE.maxX&&(E.maxX=xe),Oe>E.maxY&&(E.maxY=Oe)}return E}function $s(o,d,l,c){var u=d.geometry,m=d.type,E=[];if(m==="Point"||m==="MultiPoint")for(var L=0;L0&&d.size<(u?E:c)){l.numPoints+=d.length/3;return}for(var L=[],Z=0;ZE)&&(l.numSimplified++,L.push(d[Z]),L.push(d[Z+1])),l.numPoints++;u&&ra(L,m),o.push(L)}function ra(o,d){for(var l=0,c=0,u=o.length,m=u-2;c0===d)for(c=0,u=o.length;c24)throw new Error("maxZoom should be in the 0-24 range");if(d.promoteId&&d.generateId)throw new Error("promoteId and generateId cannot be used together.");var c=so(o,d);this.tiles={},this.tileCoords=[],l&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",d.indexMaxZoom,d.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),c=oa(c,d),c.length&&this.splitTile(c,0,0,0),l&&(c.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)))}Sa.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Sa.prototype.splitTile=function(o,d,l,c,u,m,E){for(var L=[o,d,l,c],Z=this.options,ne=Z.debug;L.length;){c=L.pop(),l=L.pop(),d=L.pop(),o=L.pop();var xe=1<1&&console.time("creation"),wt=this.tiles[Oe]=Ys(o,d,l,c,Z),this.tileCoords.push({z:d,x:l,y:c}),ne)){ne>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",d,l,c,wt.numFeatures,wt.numPoints,wt.numSimplified),console.timeEnd("creation"));var Bt="z"+d;this.stats[Bt]=(this.stats[Bt]||0)+1,this.total++}if(wt.source=o,u){if(d===Z.maxZoom||d===u)continue;var wn=1<1&&console.time("clipping");var Rn=.5*Z.buffer/Z.extent,Pr=.5-Rn,ui=.5+Rn,oo=1+Rn,xo,Ds,aa,fa,Za,gl;xo=Ds=aa=fa=null,Za=oi(o,xe,l-Rn,l+ui,0,wt.minX,wt.maxX,Z),gl=oi(o,xe,l+Pr,l+oo,0,wt.minX,wt.maxX,Z),o=null,Za&&(xo=oi(Za,xe,c-Rn,c+ui,1,wt.minY,wt.maxY,Z),Ds=oi(Za,xe,c+Pr,c+oo,1,wt.minY,wt.maxY,Z),Za=null),gl&&(aa=oi(gl,xe,c-Rn,c+ui,1,wt.minY,wt.maxY,Z),fa=oi(gl,xe,c+Pr,c+oo,1,wt.minY,wt.maxY,Z),gl=null),ne>1&&console.timeEnd("clipping"),L.push(xo||[],d+1,l*2,c*2),L.push(Ds||[],d+1,l*2,c*2+1),L.push(aa||[],d+1,l*2+1,c*2),L.push(fa||[],d+1,l*2+1,c*2+1)}}},Sa.prototype.getTile=function(o,d,l){var c=this.options,u=c.extent,m=c.debug;if(o<0||o>24)return null;var E=1<1&&console.log("drilling down to z%d-%d-%d",o,d,l);for(var Z=o,ne=d,xe=l,Oe;!Oe&&Z>0;)Z--,ne=Math.floor(ne/2),xe=Math.floor(xe/2),Oe=this.tiles[qo(Z,ne,xe)];return!Oe||!Oe.source?null:(m>1&&console.log("found parent tile z%d-%d-%d",Z,ne,xe),m>1&&console.time("drilling down"),this.splitTile(Oe.source,Z,ne,xe,o,d,l),m>1&&console.timeEnd("drilling down"),this.tiles[L]?ml(this.tiles[L],u):null)};function qo(o,d,l){return((1<0)switch(c[0]){case"band":try{o[u]=d[c[1]][l]}catch(m){console.warn("Raster Data err!"),o[u]=0}break;default:Ge(c,d,l)}})}function We(o){var d=(0,Br.Z)(o,3),l=d[0],c=d[1],u=c===void 0?-1:c,m=d[2],E=m===void 0?-1:m;if(l===void 0)return console.warn("Express err!"),["+",0,0];var L=l.replace(/\s+/g,"");return[L,u,E]}function yt(o){var d=We(o),l=d[0],c=d[1],u=d[2];return Array.isArray(c)&&(c=yt(o[1])),Array.isArray(u)&&(u=yt(o[2])),Ul(l,c,u)}var Pn={nd:{type:"operation",expression:["/",["-",["band",1],["band",0]],["+",["band",1],["band",0]]]},rgb:{type:"function",method:xi}};function xi(o,d){for(var l=o[0].rasterData,c=o[1].rasterData,u=o[2].rasterData,m=[],E=(d==null?void 0:d.countCut)||[2,98],L=(0,Br.Z)(E,2),Z=L[0],ne=L[1],xe=(d==null?void 0:d.RMinMax)||Zn(l,Z,ne),Oe=(d==null?void 0:d.GMinMax)||Zn(c,Z,ne),wt=(d==null?void 0:d.BMinMax)||Zn(u,Z,ne),Bt=0;Bt"),IRendererService:Symbol.for("IRendererService"),IShaderModuleService:Symbol.for("IShaderModuleService"),IIconService:Symbol.for("IIconService"),IFontService:Symbol.for("IFontService"),IInteractionService:Symbol.for("IInteractionService"),IPickingService:Symbol.for("IPickingService"),IControlService:Symbol.for("IControlService"),IStyleAttributeService:Symbol.for("IStyleAttributeService"),ILayer:Symbol.for("ILayer"),ILayerPlugin:Symbol.for("ILayerPlugin"),INormalPass:Symbol.for("INormalPass"),IPostProcessor:Symbol.for("IPostProcessor"),IPostProcessingPass:Symbol.for("IPostProcessingPass"),IFactoryPostProcessingPass:Symbol.for("Factory"),IFactoryNormalPass:Symbol.for("Factory"),IMultiPassRenderer:Symbol.for("IMultiPassRenderer"),SceneID:Symbol.for("SceneID"),MapConfig:Symbol.for("MapConfig")},go=_(52155),Vo=_.n(go);function Fs(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=$l(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function $l(o,d){if(o){if(typeof o=="string")return Cl(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Cl(o,d)}}function Cl(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lm&&(Bt=0,wt++),L[Rn]={x:Bt,y:Oe+wt*Ra,width:Ra,height:Ra,advance:ui},Bt+=Ra}});var wn=c+u*2;return{mapping:L,xOffset:Bt,yOffset:Oe+wt*wn,canvasHeight:Da(Oe+(wt+1)*wn)}}function Wa(o,d,l){var c=0,u=0,m=0,E=[],L={},Z=Fs(o),ne;try{for(Z.s();!(ne=Z.n()).done;){var xe=ne.value;if(!L[xe.id]){var Oe=xe.size;c+Oe+d>l&&(Vs(L,E,u),c=0,u=m+u+d,m=0,E=[]),E.push({icon:xe,xOffset:c}),c=c+Oe+d,m=Math.max(m,Oe)}}}catch(Bt){Z.e(Bt)}finally{Z.f()}E.length>0&&Vs(L,E,u);var wt=Da(m+u+d);return{mapping:L,canvasHeight:wt}}function Vs(o,d,l){var c=Fs(d),u;try{for(c.s();!(u=c.n()).done;){var m=u.value,E=m.icon,L=m.xOffset;o[E.id]=(0,ze.Z)((0,ze.Z)({},E),{},{x:L,y:l,image:E.image,width:E.width,height:E.height})}}catch(Z){c.e(Z)}finally{c.f()}}function Da(o){return Math.pow(2,Math.ceil(Math.log2(o)))}var No,qa;function xl(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=Sl(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function Sl(o,d){if(o){if(typeof o=="string")return Uu(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Uu(o,d)}}function Uu(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l0&&m[m.length-1])&&(ne[0]===6||ne[0]===2)){l=0;continue}if(ne[0]===3&&(!m||ne[1]>m[0]&&ne[1]this.getMaxConcurrency();l?(d.destroy(),this.count--):this.idleQueue.push(d),this.isDestroyed||this.startQueuedJob()},o.prototype.getAvailableWorker=function(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count=o.length&&(o=void 0),{value:o&&o[c++],done:!o}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},Sn={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},_i=function(){function o(d){this.workerPools=new Map,this.props=yn({},Sn),this.setProps(d),this.workerPools=new Map}return o.isSupported=function(){return J.isSupported()},o.getWorkerFarm=function(d){return d===void 0&&(d={}),o.workerFarm=o.workerFarm||new o({}),o.workerFarm.setProps(d),o.workerFarm},o.prototype.destroy=function(){var d,l;try{for(var c=yr(this.workerPools.values()),u=c.next();!u.done;u=c.next()){var m=u.value;m.destroy()}}catch(E){d={error:E}}finally{try{u&&!u.done&&(l=c.return)&&l.call(c)}finally{if(d)throw d.error}}},o.prototype.setProps=function(d){var l,c;this.props=yn(yn({},this.props),d);try{for(var u=yr(this.workerPools.values()),m=u.next();!m.done;m=u.next()){var E=m.value;E.setProps(this.getWorkerPoolProps())}}catch(M){l={error:M}}finally{try{m&&!m.done&&(c=u.return)&&c.call(u)}finally{if(l)throw l.error}}},o.prototype.getWorkerPool=function(d){var l=d.name,c=d.source,u=d.url,m=this.workerPools.get(l);return m||(m=new Nt({name:l,source:c,url:u}),m.setProps(this.getWorkerPoolProps()),this.workerPools.set(l,m)),m},o.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}},o}(),Ri=_i,Ki=new Map,Fo=function(){function o(){}return Object.defineProperty(o,"onmessage",{set:function(d){self.onmessage=function(l){if(Ui(l)){var c=l.data,u=c.type,m=c.payload;d(u,m)}}},enumerable:!1,configurable:!0}),o.addEventListener=function(d){var l=Ki.get(d);l||(l=function(c){if(Ui(c)){var u=c.data,m=u.type,E=u.payload;d(m,E)}}),self.addEventListener("message",l)},o.removeEventListener=function(d){var l=Ki.get(d);Ki.delete(d),self.removeEventListener("message",l)},o.postMessage=function(d,l){if(self){var c={source:"Worker thread",type:d,payload:l},u=tn(l);self.postMessage(c,u)}},o}(),Wo=null;function Ui(o){var d=o.type,l=o.data;return d==="message"&&l&&typeof l.source=="string"&&l.source==="Main thread"}function Uo(o){return JSON.parse(Hs(o))}function Hs(o){var d=new Set;return JSON.stringify(o,function(l,c){if(typeof c=="object"&&c!==null){if(d.has(c))try{return JSON.parse(JSON.stringify(c))}catch(u){return}d.add(c)}return c})}function tl(o){return""+o.name}function qa(o,d){d===void 0&&(d={});var l=d[o.id]||{},c=o.name+".worker.js",u=l.workerUrl;return d._workerType==="test"&&(u=o.module+"/dist/"+c),u||(u="https://unpkg.com/"+o.module+"/dist/"+c),assert(u),u}var Gl=function(o,d,l,c){function u(m){return m instanceof l?m:new l(function(E){E(m)})}return new(l||(l=Promise))(function(m,E){function M(Ce){try{ne(c.next(Ce))}catch(Oe){E(Oe)}}function Z(Ce){try{ne(c.throw(Ce))}catch(Oe){E(Oe)}}function ne(Ce){Ce.done?m(Ce.value):u(Ce.value).then(M,Z)}ne((c=c.apply(o,d||[])).next())})},bl=function(o,d){var l={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},c,u,m,E;return E={next:M(0),throw:M(1),return:M(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function M(ne){return function(Ce){return Z([ne,Ce])}}function Z(ne){if(c)throw new TypeError("Generator is already executing.");for(;l;)try{if(c=1,u&&(m=ne[0]&2?u.return:ne[0]?u.throw||((m=u.return)&&m.call(u),0):u.next)&&!(m=m.call(u,ne[1])).done)return m;switch(u=0,m&&(ne=[ne[0]&2,m.value]),ne[0]){case 0:case 1:m=ne;break;case 4:return l.label++,{value:ne[1],done:!1};case 5:l.label++,u=ne[1],ne=[0];continue;case 7:ne=l.ops.pop(),l.trys.pop();continue;default:if(m=l.trys,!(m=m.length>0&&m[m.length-1])&&(ne[0]===6||ne[0]===2)){l=0;continue}if(ne[0]===3&&(!m||ne[1]>m[0]&&ne[1]0){if(this._values.length>0)throw new Error("Illegal internal state");var l=this._settlers.shift();d instanceof Error?l.reject(d):l.resolve({value:d})}else this._values.push(d)},o.prototype.close=function(){for(;this._settlers.length>0;){var d=this._settlers.shift();d.resolve({done:!0})}this._closed=!0},o.prototype.next=function(){var d=this;if(this._values.length>0){var l=this._values.shift();return l instanceof Error?Promise.reject(l):Promise.resolve({done:!1,value:l})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise(function(c,u){d._settlers.push({resolve:c,reject:u})})},o}(),oh=null,vh=function(o,d,l,c){function u(m){return m instanceof l?m:new l(function(E){E(m)})}return new(l||(l=Promise))(function(m,E){function M(Ce){try{ne(c.next(Ce))}catch(Oe){E(Oe)}}function Z(Ce){try{ne(c.throw(Ce))}catch(Oe){E(Oe)}}function ne(Ce){Ce.done?m(Ce.value):u(Ce.value).then(M,Z)}ne((c=c.apply(o,d||[])).next())})},Gh=function(o,d){var l={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},c,u,m,E;return E={next:M(0),throw:M(1),return:M(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function M(ne){return function(Ce){return Z([ne,Ce])}}function Z(ne){if(c)throw new TypeError("Generator is already executing.");for(;l;)try{if(c=1,u&&(m=ne[0]&2?u.return:ne[0]?u.throw||((m=u.return)&&m.call(u),0):u.next)&&!(m=m.call(u,ne[1])).done)return m;switch(u=0,m&&(ne=[ne[0]&2,m.value]),ne[0]){case 0:case 1:m=ne;break;case 4:return l.label++,{value:ne[1],done:!1};case 5:l.label++,u=ne[1],ne=[0];continue;case 7:ne=l.ops.pop(),l.trys.pop();continue;default:if(m=l.trys,!(m=m.length>0&&m[m.length-1])&&(ne[0]===6||ne[0]===2)){l=0;continue}if(ne[0]===3&&(!m||ne[1]>m[0]&&ne[1]0&&m[m.length-1])&&(ne[0]===6||ne[0]===2)){l=0;continue}if(ne[0]===3&&(!m||ne[1]>m[0]&&ne[1]0&&(u=1/Math.sqrt(u)),o[0]=d[0]*u,o[1]=d[1]*u,o}function bm(o,d){return o[0]*d[0]+o[1]*d[1]}function zg(o,d,l){var c=d[0]*l[1]-d[1]*l[0];return o[0]=o[1]=0,o[2]=c,o}function jm(o,d,l,c){var u=d[0],m=d[1];return o[0]=u+c*(l[0]-u),o[1]=m+c*(l[1]-m),o}function Mg(o,d){d=d||1;var l=glMatrix.RANDOM()*2*Math.PI;return o[0]=Math.cos(l)*d,o[1]=Math.sin(l)*d,o}function uv(o,d,l){var c=d[0],u=d[1];return o[0]=l[0]*c+l[2]*u,o[1]=l[1]*c+l[3]*u,o}function ip(o,d,l){var c=d[0],u=d[1];return o[0]=l[0]*c+l[2]*u+l[4],o[1]=l[1]*c+l[3]*u+l[5],o}function Np(o,d,l){var c=d[0],u=d[1];return o[0]=l[0]*c+l[3]*u+l[6],o[1]=l[1]*c+l[4]*u+l[7],o}function _f(o,d,l){var c=d[0],u=d[1];return o[0]=l[0]*c+l[4]*u+l[12],o[1]=l[1]*c+l[5]*u+l[13],o}function K0(o,d,l,c){var u=d[0]-l[0],m=d[1]-l[1],E=Math.sin(c),M=Math.cos(c);return o[0]=u*M-m*E+l[0],o[1]=u*E+m*M+l[1],o}function U0(o,d){var l=o[0],c=o[1],u=d[0],m=d[1],E=Math.sqrt(l*l+c*c)*Math.sqrt(u*u+m*m),M=E&&(l*u+c*m)/E;return Math.acos(Math.min(Math.max(M,-1),1))}function Tm(o){return o[0]=0,o[1]=0,o}function C0(o){return"vec2("+o[0]+", "+o[1]+")"}function S0(o,d){return o[0]===d[0]&&o[1]===d[1]}function cv(o,d){var l=o[0],c=o[1],u=d[0],m=d[1];return Math.abs(l-u)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(u))&&Math.abs(c-m)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))}var Nd=null,Wm=df,gm=null,c0=null,Bm=null,_0=null,Zp=null,Gg=function(){var o=Hd();return function(d,l,c,u,m,E){var M,Z;for(l||(l=2),c||(c=0),u?Z=Math.min(u*l+c,d.length):Z=d.length,M=c;M0&&arguments[0]!==void 0?arguments[0]:{};(0,wt.Z)(this,o),(0,Tn.Z)(this,"lastFlip",-1),(0,Tn.Z)(this,"miter",Op(0,0)),(0,Tn.Z)(this,"started",!1),(0,Tn.Z)(this,"dash",!1),(0,Tn.Z)(this,"totalDistance",0),(0,Tn.Z)(this,"currentIndex",0),this.join=d.join||"miter",this.cap=d.cap||"butt",this.miterLimit=d.miterLimit||10,this.thickness=d.thickness||1,this.dash=d.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,nt.Z)(o,[{key:"extrude_gaode2",value:function(l,c){var u=this.complex;if(l.length<=1)return u;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var m=l.length,E=u.startIndex,M=1;Mthis.miterLimit&&(hh=!0)}hh?(Bt.push(this.normal[0],this.normal[1],0),Bt.push(Ou[0],Ou[1],0),Ct.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*Uu,m[2]|0),this.complex.indexes.push(this.currentIndex),Ct.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness*Uu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Oe.push.apply(Oe,(0,bn.Z)(this.lastFlip!==-Uu?[c,c+2,c+3]:[c+2,c+1,c+3])),Oe.push(c+2,c+3,c+4),At(zm,we),Vp(this.normal,zm),Bt.push(this.normal[0],this.normal[1],0),Ct.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*Uu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Ce+=3):(this.extrusions(Ct,Bt,m,Ou,Ql,this.totalDistance),Oe.push.apply(Oe,(0,bn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Uu=-1,Vp(this.normal,Ou),Ce+=2),this.lastFlip=Uu}else{if(At(this.normal,pg),An){var oa=Hd(),fa=Hd();Wm(fa,pg,this.normal),Qf(oa,pg,this.normal),Bt.push(fa[0],fa[1],0),Bt.push(oa[0],oa[1],0),Ct.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),Ct.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(Ct,Bt,m,this.normal,this.thickness,this.totalDistance);Oe.push.apply(Oe,(0,bn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Ce+=2}return Ce}},{key:"simpleSegment",value:function(l,c,u,m,E){var M=0,Z=l.indices,ne=l.positions,Ce=l.normals,Oe=Md([m[0],m[1]]),Ct=Md([u[0],u[1]]);Vn(pg,Oe,Ct);var Bt=0;if(this.dash&&(Bt=this.lineSegmentDistance(Oe,Ct),this.totalDistance+=Bt),this.normal||(this.normal=Hd(),At(this.normal,pg)),this.started||(this.started=!0,this.extrusions(ne,Ce,u,this.normal,this.thickness,this.totalDistance-Bt)),Z.push(c+0,c+1,c+2),!E)At(this.normal,pg),this.extrusions(ne,Ce,m,this.normal,this.thickness,this.totalDistance),Z.push.apply(Z,(0,bn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),M+=2;else{var An=Md([E[0],E[1]]);xt(Oe,An)&&Qf(An,Oe,Lg(An,df(An,Oe,Ct))),Vn(we,An,Oe);var kn=ke(ee,Hd(),pg,we,this.thickness),Ir=(0,Or.Z)(kn,2),ui=Ir[0],ao=Ir[1],wo=bm(ee,this.normal)<0?-1:1;this.extrusions(ne,Ce,m,ao,ui,this.totalDistance),Z.push.apply(Z,(0,bn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),wo=-1,Vp(this.normal,ao),M+=2,this.lastFlip=wo}return M}},{key:"segment",value:function(l,c,u,m,E){var M=0,Z=l.indices,ne=l.positions,Ce=l.normals,Oe=this.cap==="square",Ct=this.join==="bevel",Bt=Md([m[0],m[1]]),An=Md([u[0],u[1]]);Vn(pg,Bt,An);var kn=0;if(this.dash&&(kn=this.lineSegmentDistance(Bt,An),this.totalDistance+=kn),this.normal||(this.normal=Hd(),At(this.normal,pg)),!this.started)if(this.started=!0,Oe){var Ir=Hd(),ui=Hd();Qf(Ir,this.normal,pg),Qf(ui,this.normal,pg),Ce.push(ui[0],ui[1],0),Ce.push(Ir[0],Ir[1],0),ne.push(u[0],u[1],u[2]|0,this.totalDistance-kn,-this.thickness,u[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(u[0],u[1],u[2]|0,this.totalDistance-kn,this.thickness,u[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ne,Ce,u,this.normal,this.thickness,this.totalDistance-kn);if(Z.push(c+0,c+1,c+2),E){var Ds=Md([E[0],E[1]]);xt(Bt,Ds)&&Qf(Ds,Bt,Lg(Ds,df(Ds,Bt,An))),Vn(we,Ds,Bt);var oa=ke(ee,Hd(),pg,we,this.thickness),fa=(0,Or.Z)(oa,2),Wa=fa[0],vl=fa[1],Ql=bm(ee,this.normal)<0?-1:1,Ou=Ct;if(!Ou&&this.join==="miter"){var Uu=Wa;Uu>this.miterLimit&&(Ou=!0)}Ou?(Ce.push(this.normal[0],this.normal[1],0),Ce.push(vl[0],vl[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*Ql,m[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness*Ql,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Z.push.apply(Z,(0,bn.Z)(this.lastFlip!==-Ql?[c,c+2,c+3]:[c+2,c+1,c+3])),Z.push(c+2,c+3,c+4),At(zm,we),Vp(this.normal,zm),Ce.push(this.normal[0],this.normal[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*Ql,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,M+=3):(this.extrusions(ne,Ce,m,vl,Wa,this.totalDistance),Z.push.apply(Z,(0,bn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Ql=-1,Vp(this.normal,vl),M+=2),this.lastFlip=Ql}else{if(At(this.normal,pg),Oe){var ao=Hd(),wo=Hd();Wm(wo,pg,this.normal),Qf(ao,pg,this.normal),Ce.push(wo[0],wo[1],0),Ce.push(ao[0],ao[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ne,Ce,m,this.normal,this.thickness,this.totalDistance);Z.push.apply(Z,(0,bn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),M+=2}return M}},{key:"extrusions",value:function(l,c,u,m,E,M){c.push(m[0],m[1],0),c.push(m[0],m[1],0),l.push(u[0],u[1],u[2]|0,M,-E,u[2]|0),this.complex.indexes.push(this.currentIndex),l.push(u[0],u[1],u[2]|0,M,E,u[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(l,c){var u=c[0]-l[0],m=c[1]-l[1];return Math.sqrt(u*u+m*m)}}]),o}();function sn(o){var d=o.coordinates,l=o.originCoordinates,c=o.version,u=new jt({dash:!0,join:"bevel"});if(c==="GAODE2.x"){var m=d;Array.isArray(m[0][0])||(m=[d]);var E=l;Array.isArray(E[0][0])||(E=[l]);for(var M=0;M0}).forEach(function(ui,ao){var wo=Er(ui[M]);(0,St.flattenEach)(wo,function(Ds){var oa=(0,Xt.getCoords)(Ds),fa=(0,Be.Z)((0,Be.Z)({},ui),{},{_id:ao,coordinates:oa});Z.push(fa)})}),{dataArray:Z};for(var ne=0;ne>>0}function Hi(o,d){return d===void 0?null:(0,ai.Z)(o.properties[d])*1==="number"?o.properties[d]*1:o.properties&&o.properties[d]?bi(o.properties[d]+"")%1000019:null}function Zo(o,d){var l=[],c={};return o.features?(o.features=o.features.filter(function(u){var m=u.geometry;return u!=null&&m&&m.type&&m.coordinates&&m.coordinates.length>0}),o=Er(o),o.features.length===0?{dataArray:[],featureKeys:c}:((0,St.flattenEach)(o,function(u,m){var E=Hi(u,d==null?void 0:d.featureId);E===null&&(E=m);var M=E,Z=(0,Xt.getCoords)(u),ne=(0,Be.Z)((0,Be.Z)({},u.properties),{},{coordinates:Z,_id:M});l.push(ne)}),{dataArray:l,featureKeys:c})):(o.features=[],{dataArray:[]})}function mo(o,d,l,c){for(var u=c,m=l-d>>1,E=l-d,M,Z=o[d],ne=o[d+1],Ce=o[l],Oe=o[l+1],Ct=d+3;Ctu)M=Ct,u=Bt;else if(Bt===u){var An=Math.abs(Ct-m);Anc&&(M-d>3&&mo(o,d,M,c),o[M+2]=u,l-M>3&&mo(o,M,l,c))}function No(o,d,l,c,u,m){var E=u-l,M=m-c;if(E!==0||M!==0){var Z=((o-l)*E+(d-c)*M)/(E*E+M*M);Z>1?(l=u,c=m):Z>0&&(l+=E*Z,c+=M*Z)}return E=o-l,M=d-c,E*E+M*M}function ws(o,d,l,c){var u={id:typeof o=="undefined"?null:o,type:d,geometry:l,tags:c,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Ji(u),u}function Ji(o){var d=o.geometry,l=o.type;if(l==="Point"||l==="MultiPoint"||l==="LineString")Ss(o,d);else if(l==="Polygon"||l==="MultiLineString")for(var c=0;c0&&(c?E+=(u*ne-Z*m)/2:E+=Math.sqrt(Math.pow(Z-u,2)+Math.pow(ne-m,2))),u=Z,m=ne}var Ce=d.length-3;d[2]=1,mo(d,0,Ce,l),d[Ce+2]=1,d.size=Math.abs(E),d.start=0,d.end=d.size}function Gs(o,d,l,c){for(var u=0;u1?1:l}function oi(o,d,l,c,u,m,E,M){if(l/=d,c/=d,m>=l&&E=c)return null;for(var Z=[],ne=0;ne=l&&An=c)continue;var kn=[];if(Ct==="Point"||Ct==="MultiPoint")ms(Oe,kn,l,c,u);else if(Ct==="LineString")Ls(Oe,kn,l,c,u,!1,M.lineMetrics);else if(Ct==="MultiLineString")no(Oe,kn,l,c,u,!1);else if(Ct==="Polygon")no(Oe,kn,l,c,u,!0);else if(Ct==="MultiPolygon")for(var Ir=0;Ir=l&&E<=c&&(d.push(o[m]),d.push(o[m+1]),d.push(o[m+2]))}}function Ls(o,d,l,c,u,m,E){for(var M=Aa(o),Z=u===0?Ro:Qs,ne=o.start,Ce,Oe,Ct=0;Ctl&&(Oe=Z(M,Bt,An,Ir,ui,l),E&&(M.start=ne+Ce*Oe)):ao>c?wo=l&&(Oe=Z(M,Bt,An,Ir,ui,l),Ds=!0),wo>c&&ao<=c&&(Oe=Z(M,Bt,An,Ir,ui,c),Ds=!0),!m&&Ds&&(E&&(M.end=ne+Ce*Oe),d.push(M),M=Aa(o)),E&&(ne+=Ce)}var oa=o.length-3;Bt=o[oa],An=o[oa+1],kn=o[oa+2],ao=u===0?Bt:An,ao>=l&&ao<=c&&uo(M,Bt,An,kn),oa=M.length-3,m&&oa>=3&&(M[oa]!==M[0]||M[oa+1]!==M[1])&&uo(M,M[0],M[1],M[2]),M.length&&d.push(M)}function Aa(o){var d=[];return d.size=o.size,d.start=o.start,d.end=o.end,d}function no(o,d,l,c,u,m){for(var E=0;EE.maxX&&(E.maxX=Ce),Oe>E.maxY&&(E.maxY=Oe)}return E}function ma(o,d,l,c){var u=d.geometry,m=d.type,E=[];if(m==="Point"||m==="MultiPoint")for(var M=0;M0&&d.size<(u?E:c)){l.numPoints+=d.length/3;return}for(var M=[],Z=0;ZE)&&(l.numSimplified++,M.push(d[Z]),M.push(d[Z+1])),l.numPoints++;u&&Xs(M,m),o.push(M)}function Xs(o,d){for(var l=0,c=0,u=o.length,m=u-2;c0===d)for(c=0,u=o.length;c24)throw new Error("maxZoom should be in the 0-24 range");if(d.promoteId&&d.generateId)throw new Error("promoteId and generateId cannot be used together.");var c=lo(o,d);this.tiles={},this.tileCoords=[],l&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",d.indexMaxZoom,d.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),c=ra(c,d),c.length&&this.splitTile(c,0,0,0),l&&(c.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)))}la.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},la.prototype.splitTile=function(o,d,l,c,u,m,E){for(var M=[o,d,l,c],Z=this.options,ne=Z.debug;M.length;){c=M.pop(),l=M.pop(),d=M.pop(),o=M.pop();var Ce=1<1&&console.time("creation"),Ct=this.tiles[Oe]=Ks(o,d,l,c,Z),this.tileCoords.push({z:d,x:l,y:c}),ne)){ne>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",d,l,c,Ct.numFeatures,Ct.numPoints,Ct.numSimplified),console.timeEnd("creation"));var Bt="z"+d;this.stats[Bt]=(this.stats[Bt]||0)+1,this.total++}if(Ct.source=o,u){if(d===Z.maxZoom||d===u)continue;var An=1<1&&console.time("clipping");var kn=.5*Z.buffer/Z.extent,Ir=.5-kn,ui=.5+kn,ao=1+kn,wo,Ds,oa,fa,Wa,vl;wo=Ds=oa=fa=null,Wa=oi(o,Ce,l-kn,l+ui,0,Ct.minX,Ct.maxX,Z),vl=oi(o,Ce,l+Ir,l+ao,0,Ct.minX,Ct.maxX,Z),o=null,Wa&&(wo=oi(Wa,Ce,c-kn,c+ui,1,Ct.minY,Ct.maxY,Z),Ds=oi(Wa,Ce,c+Ir,c+ao,1,Ct.minY,Ct.maxY,Z),Wa=null),vl&&(oa=oi(vl,Ce,c-kn,c+ui,1,Ct.minY,Ct.maxY,Z),fa=oi(vl,Ce,c+Ir,c+ao,1,Ct.minY,Ct.maxY,Z),vl=null),ne>1&&console.timeEnd("clipping"),M.push(wo||[],d+1,l*2,c*2),M.push(Ds||[],d+1,l*2,c*2+1),M.push(oa||[],d+1,l*2+1,c*2),M.push(fa||[],d+1,l*2+1,c*2+1)}}},la.prototype.getTile=function(o,d,l){var c=this.options,u=c.extent,m=c.debug;if(o<0||o>24)return null;var E=1<1&&console.log("drilling down to z%d-%d-%d",o,d,l);for(var Z=o,ne=d,Ce=l,Oe;!Oe&&Z>0;)Z--,ne=Math.floor(ne/2),Ce=Math.floor(Ce/2),Oe=this.tiles[ts(Z,ne,Ce)];return!Oe||!Oe.source?null:(m>1&&console.log("found parent tile z%d-%d-%d",Z,ne,Ce),m>1&&console.time("drilling down"),this.splitTile(Oe.source,Z,ne,Ce,o,d,l),m>1&&console.timeEnd("drilling down"),this.tiles[M]?dl(this.tiles[M],u):null)};function ts(o,d,l){return((1<0)switch(c[0]){case"band":try{o[u]=d[c[1]][l]}catch(m){console.warn("Raster Data err!"),o[u]=0}break;default:sf(c,d,l)}})}function th(o){var d=(0,Or.Z)(o,3),l=d[0],c=d[1],u=c===void 0?-1:c,m=d[2],E=m===void 0?-1:m;if(l===void 0)return console.warn("Express err!"),["+",0,0];var M=l.replace(/\s+/g,"");return[M,u,E]}function je(o){var d=th(o),l=d[0],c=d[1],u=d[2];return Array.isArray(c)&&(c=je(o[1])),Array.isArray(u)&&(u=je(o[2])),Fl(l,c,u)}var Ge={nd:{type:"operation",expression:["/",["-",["band",1],["band",0]],["+",["band",1],["band",0]]]},rgb:{type:"function",method:_t}};function _t(o,d){for(var l=o[0].rasterData,c=o[1].rasterData,u=o[2].rasterData,m=[],E=(d==null?void 0:d.countCut)||[2,98],M=(0,Or.Z)(E,2),Z=M[0],ne=M[1],Ce=(d==null?void 0:d.RMinMax)||Rt(l,Z,ne),Oe=(d==null?void 0:d.GMinMax)||Rt(c,Z,ne),Ct=(d==null?void 0:d.BMinMax)||Rt(u,Z,ne),Bt=0;Bt"),IRendererService:Symbol.for("IRendererService"),IShaderModuleService:Symbol.for("IShaderModuleService"),IIconService:Symbol.for("IIconService"),IFontService:Symbol.for("IFontService"),IInteractionService:Symbol.for("IInteractionService"),IPickingService:Symbol.for("IPickingService"),IControlService:Symbol.for("IControlService"),IStyleAttributeService:Symbol.for("IStyleAttributeService"),ILayer:Symbol.for("ILayer"),ILayerPlugin:Symbol.for("ILayerPlugin"),INormalPass:Symbol.for("INormalPass"),IPostProcessor:Symbol.for("IPostProcessor"),IPostProcessingPass:Symbol.for("IPostProcessingPass"),IFactoryPostProcessingPass:Symbol.for("Factory"),IFactoryNormalPass:Symbol.for("Factory"),IMultiPassRenderer:Symbol.for("IMultiPassRenderer"),SceneID:Symbol.for("SceneID"),MapConfig:Symbol.for("MapConfig")},Zi=y(49296),Io=y.n(Zi);function Us(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=pl(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function pl(o,d){if(o){if(typeof o=="string")return al(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return al(o,d)}}function al(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lm&&(Bt=0,Ct++),M[kn]={x:Bt,y:Oe+Ct*Ia,width:Ia,height:Ia,advance:ui},Bt+=Ia}});var An=c+u*2;return{mapping:M,xOffset:Bt,yOffset:Oe+Ct*An,canvasHeight:La(Oe+(Ct+1)*An)}}function Ha(o,d,l){var c=0,u=0,m=0,E=[],M={},Z=Us(o),ne;try{for(Z.s();!(ne=Z.n()).done;){var Ce=ne.value;if(!M[Ce.id]){var Oe=Ce.size;c+Oe+d>l&&(_s(M,E,u),c=0,u=m+u+d,m=0,E=[]),E.push({icon:Ce,xOffset:c}),c=c+Oe+d,m=Math.max(m,Oe)}}}catch(Bt){Z.e(Bt)}finally{Z.f()}E.length>0&&_s(M,E,u);var Ct=La(m+u+d);return{mapping:M,canvasHeight:Ct}}function _s(o,d,l){var c=Us(d),u;try{for(c.s();!(u=c.n()).done;){var m=u.value,E=m.icon,M=m.xOffset;o[E.id]=(0,Be.Z)((0,Be.Z)({},E),{},{x:M,y:l,image:E.image,width:E.width,height:E.height})}}catch(Z){c.e(Z)}finally{c.f()}}function La(o){return Math.pow(2,Math.ceil(Math.log2(o)))}var Bo,ka;function yl(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=Cl(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function Cl(o,d){if(o){if(typeof o=="string")return Ru(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Ru(o,d)}}function Ru(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l0?(l[0]=(L*E+xe*c+Z*m-ne*u)*2/Oe,l[1]=(Z*E+xe*u+ne*c-L*m)*2/Oe,l[2]=(ne*E+xe*m+L*u-Z*c)*2/Oe):(l[0]=(L*E+xe*c+Z*m-ne*u)*2,l[1]=(Z*E+xe*u+ne*c-L*m)*2,l[2]=(ne*E+xe*m+L*u-Z*c)*2),y(o,d,l),o}function W(o,d){return o[0]=d[12],o[1]=d[13],o[2]=d[14],o}function re(o,d){var l=d[0],c=d[1],u=d[2],m=d[4],E=d[5],L=d[6],Z=d[8],ne=d[9],xe=d[10];return o[0]=Math.hypot(l,c,u),o[1]=Math.hypot(m,E,L),o[2]=Math.hypot(Z,ne,xe),o}function he(o,d){var l=new Oo(3);re(l,d);var c=1/l[0],u=1/l[1],m=1/l[2],E=d[0]*c,L=d[1]*u,Z=d[2]*m,ne=d[4]*c,xe=d[5]*u,Oe=d[6]*m,wt=d[8]*c,Bt=d[9]*u,wn=d[10]*m,Rn=E+xe+wn,Pr=0;return Rn>0?(Pr=Math.sqrt(Rn+1)*2,o[3]=.25*Pr,o[0]=(Oe-Bt)/Pr,o[1]=(wt-Z)/Pr,o[2]=(L-ne)/Pr):E>xe&&E>wn?(Pr=Math.sqrt(1+E-xe-wn)*2,o[3]=(Oe-Bt)/Pr,o[0]=.25*Pr,o[1]=(L+ne)/Pr,o[2]=(wt+Z)/Pr):xe>wn?(Pr=Math.sqrt(1+xe-E-wn)*2,o[3]=(wt-Z)/Pr,o[0]=(L+ne)/Pr,o[1]=.25*Pr,o[2]=(Oe+Bt)/Pr):(Pr=Math.sqrt(1+wn-E-xe)*2,o[3]=(L-ne)/Pr,o[0]=(wt+Z)/Pr,o[1]=(Oe+Bt)/Pr,o[2]=.25*Pr),o}function Le(o,d,l,c){var u=d[0],m=d[1],E=d[2],L=d[3],Z=u+u,ne=m+m,xe=E+E,Oe=u*Z,wt=u*ne,Bt=u*xe,wn=m*ne,Rn=m*xe,Pr=E*xe,ui=L*Z,oo=L*ne,xo=L*xe,Ds=c[0],aa=c[1],fa=c[2];return o[0]=(1-(wn+Pr))*Ds,o[1]=(wt+xo)*Ds,o[2]=(Bt-oo)*Ds,o[3]=0,o[4]=(wt-xo)*aa,o[5]=(1-(Oe+Pr))*aa,o[6]=(Rn+ui)*aa,o[7]=0,o[8]=(Bt+oo)*fa,o[9]=(Rn-ui)*fa,o[10]=(1-(Oe+wn))*fa,o[11]=0,o[12]=l[0],o[13]=l[1],o[14]=l[2],o[15]=1,o}function qe(o,d,l,c,u){var m=d[0],E=d[1],L=d[2],Z=d[3],ne=m+m,xe=E+E,Oe=L+L,wt=m*ne,Bt=m*xe,wn=m*Oe,Rn=E*xe,Pr=E*Oe,ui=L*Oe,oo=Z*ne,xo=Z*xe,Ds=Z*Oe,aa=c[0],fa=c[1],Za=c[2],gl=u[0],tu=u[1],ku=u[2],ju=(1-(Rn+ui))*aa,Xc=(Bt+Ds)*aa,Pd=(wn-xo)*aa,Lh=(Bt-Ds)*fa,fg=(1-(wt+ui))*fa,Gg=(Pr+oo)*fa,am=(wn+xo)*Za,sv=(Pr-oo)*Za,Em=(1-(wt+Rn))*Za;return o[0]=ju,o[1]=Xc,o[2]=Pd,o[3]=0,o[4]=Lh,o[5]=fg,o[6]=Gg,o[7]=0,o[8]=am,o[9]=sv,o[10]=Em,o[11]=0,o[12]=l[0]+gl-(ju*gl+Lh*tu+am*ku),o[13]=l[1]+tu-(Xc*gl+fg*tu+sv*ku),o[14]=l[2]+ku-(Pd*gl+Gg*tu+Em*ku),o[15]=1,o}function Ut(o,d){var l=d[0],c=d[1],u=d[2],m=d[3],E=l+l,L=c+c,Z=u+u,ne=l*E,xe=c*E,Oe=c*L,wt=u*E,Bt=u*L,wn=u*Z,Rn=m*E,Pr=m*L,ui=m*Z;return o[0]=1-Oe-wn,o[1]=xe+ui,o[2]=wt-Pr,o[3]=0,o[4]=xe-ui,o[5]=1-ne-wn,o[6]=Bt+Rn,o[7]=0,o[8]=wt+Pr,o[9]=Bt-Rn,o[10]=1-ne-Oe,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}function rn(o,d,l,c,u,m,E){var L=1/(l-d),Z=1/(u-c),ne=1/(m-E);return o[0]=m*2*L,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=m*2*Z,o[6]=0,o[7]=0,o[8]=(l+d)*L,o[9]=(u+c)*Z,o[10]=(E+m)*ne,o[11]=-1,o[12]=0,o[13]=0,o[14]=E*m*2*ne,o[15]=0,o}function Qn(o,d,l,c,u){var m=1/Math.tan(d/2),E;return o[0]=m/l,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=m,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[11]=-1,o[12]=0,o[13]=0,o[15]=0,u!=null&&u!==1/0?(E=1/(c-u),o[10]=(u+c)*E,o[14]=2*u*c*E):(o[10]=-1,o[14]=-2*c),o}var br=Qn;function Ci(o,d,l,c,u){var m=1/Math.tan(d/2),E;return o[0]=m/l,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=m,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[11]=-1,o[12]=0,o[13]=0,o[15]=0,u!=null&&u!==1/0?(E=1/(c-u),o[10]=u*E,o[14]=u*c*E):(o[10]=-1,o[14]=-c),o}function Ii(o,d,l,c){var u=Math.tan(d.upDegrees*Math.PI/180),m=Math.tan(d.downDegrees*Math.PI/180),E=Math.tan(d.leftDegrees*Math.PI/180),L=Math.tan(d.rightDegrees*Math.PI/180),Z=2/(E+L),ne=2/(u+m);return o[0]=Z,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=ne,o[6]=0,o[7]=0,o[8]=-((E-L)*Z*.5),o[9]=(u-m)*ne*.5,o[10]=c/(l-c),o[11]=-1,o[12]=0,o[13]=0,o[14]=c*l/(l-c),o[15]=0,o}function Po(o,d,l,c,u,m,E){var L=1/(d-l),Z=1/(c-u),ne=1/(m-E);return o[0]=-2*L,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*Z,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*ne,o[11]=0,o[12]=(d+l)*L,o[13]=(u+c)*Z,o[14]=(E+m)*ne,o[15]=1,o}var Io=Po;function Zo(o,d,l,c,u,m,E){var L=1/(d-l),Z=1/(c-u),ne=1/(m-E);return o[0]=-2*L,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*Z,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=ne,o[11]=0,o[12]=(d+l)*L,o[13]=(u+c)*Z,o[14]=m*ne,o[15]=1,o}function Ro(o,d,l,c){var u,m,E,L,Z,ne,xe,Oe,wt,Bt,wn=d[0],Rn=d[1],Pr=d[2],ui=c[0],oo=c[1],xo=c[2],Ds=l[0],aa=l[1],fa=l[2];return Math.abs(wn-Ds)0&&(Bt=1/Math.sqrt(Bt),xe*=Bt,Oe*=Bt,wt*=Bt);var wn=Z*wt-ne*Oe,Rn=ne*xe-L*wt,Pr=L*Oe-Z*xe;return Bt=wn*wn+Rn*Rn+Pr*Pr,Bt>0&&(Bt=1/Math.sqrt(Bt),wn*=Bt,Rn*=Bt,Pr*=Bt),o[0]=wn,o[1]=Rn,o[2]=Pr,o[3]=0,o[4]=Oe*Pr-wt*Rn,o[5]=wt*wn-xe*Pr,o[6]=xe*Rn-Oe*wn,o[7]=0,o[8]=xe,o[9]=Oe,o[10]=wt,o[11]=0,o[12]=u,o[13]=m,o[14]=E,o[15]=1,o}function Js(o){return"mat4("+o[0]+", "+o[1]+", "+o[2]+", "+o[3]+", "+o[4]+", "+o[5]+", "+o[6]+", "+o[7]+", "+o[8]+", "+o[9]+", "+o[10]+", "+o[11]+", "+o[12]+", "+o[13]+", "+o[14]+", "+o[15]+")"}function Ua(o){return Math.hypot(o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7],o[8],o[9],o[10],o[11],o[12],o[13],o[14],o[15])}function _l(o,d,l){return o[0]=d[0]+l[0],o[1]=d[1]+l[1],o[2]=d[2]+l[2],o[3]=d[3]+l[3],o[4]=d[4]+l[4],o[5]=d[5]+l[5],o[6]=d[6]+l[6],o[7]=d[7]+l[7],o[8]=d[8]+l[8],o[9]=d[9]+l[9],o[10]=d[10]+l[10],o[11]=d[11]+l[11],o[12]=d[12]+l[12],o[13]=d[13]+l[13],o[14]=d[14]+l[14],o[15]=d[15]+l[15],o}function fu(o,d,l){return o[0]=d[0]-l[0],o[1]=d[1]-l[1],o[2]=d[2]-l[2],o[3]=d[3]-l[3],o[4]=d[4]-l[4],o[5]=d[5]-l[5],o[6]=d[6]-l[6],o[7]=d[7]-l[7],o[8]=d[8]-l[8],o[9]=d[9]-l[9],o[10]=d[10]-l[10],o[11]=d[11]-l[11],o[12]=d[12]-l[12],o[13]=d[13]-l[13],o[14]=d[14]-l[14],o[15]=d[15]-l[15],o}function zu(o,d,l){return o[0]=d[0]*l,o[1]=d[1]*l,o[2]=d[2]*l,o[3]=d[3]*l,o[4]=d[4]*l,o[5]=d[5]*l,o[6]=d[6]*l,o[7]=d[7]*l,o[8]=d[8]*l,o[9]=d[9]*l,o[10]=d[10]*l,o[11]=d[11]*l,o[12]=d[12]*l,o[13]=d[13]*l,o[14]=d[14]*l,o[15]=d[15]*l,o}function Lu(o,d,l,c){return o[0]=d[0]+l[0]*c,o[1]=d[1]+l[1]*c,o[2]=d[2]+l[2]*c,o[3]=d[3]+l[3]*c,o[4]=d[4]+l[4]*c,o[5]=d[5]+l[5]*c,o[6]=d[6]+l[6]*c,o[7]=d[7]+l[7]*c,o[8]=d[8]+l[8]*c,o[9]=d[9]+l[9]*c,o[10]=d[10]+l[10]*c,o[11]=d[11]+l[11]*c,o[12]=d[12]+l[12]*c,o[13]=d[13]+l[13]*c,o[14]=d[14]+l[14]*c,o[15]=d[15]+l[15]*c,o}function od(o,d){return o[0]===d[0]&&o[1]===d[1]&&o[2]===d[2]&&o[3]===d[3]&&o[4]===d[4]&&o[5]===d[5]&&o[6]===d[6]&&o[7]===d[7]&&o[8]===d[8]&&o[9]===d[9]&&o[10]===d[10]&&o[11]===d[11]&&o[12]===d[12]&&o[13]===d[13]&&o[14]===d[14]&&o[15]===d[15]}function wu(o,d){var l=o[0],c=o[1],u=o[2],m=o[3],E=o[4],L=o[5],Z=o[6],ne=o[7],xe=o[8],Oe=o[9],wt=o[10],Bt=o[11],wn=o[12],Rn=o[13],Pr=o[14],ui=o[15],oo=d[0],xo=d[1],Ds=d[2],aa=d[3],fa=d[4],Za=d[5],gl=d[6],tu=d[7],ku=d[8],ju=d[9],Xc=d[10],Pd=d[11],Lh=d[12],fg=d[13],Gg=d[14],am=d[15];return Math.abs(l-oo)<=Nc*Math.max(1,Math.abs(l),Math.abs(oo))&&Math.abs(c-xo)<=Nc*Math.max(1,Math.abs(c),Math.abs(xo))&&Math.abs(u-Ds)<=Nc*Math.max(1,Math.abs(u),Math.abs(Ds))&&Math.abs(m-aa)<=Nc*Math.max(1,Math.abs(m),Math.abs(aa))&&Math.abs(E-fa)<=Nc*Math.max(1,Math.abs(E),Math.abs(fa))&&Math.abs(L-Za)<=Nc*Math.max(1,Math.abs(L),Math.abs(Za))&&Math.abs(Z-gl)<=Nc*Math.max(1,Math.abs(Z),Math.abs(gl))&&Math.abs(ne-tu)<=Nc*Math.max(1,Math.abs(ne),Math.abs(tu))&&Math.abs(xe-ku)<=Nc*Math.max(1,Math.abs(xe),Math.abs(ku))&&Math.abs(Oe-ju)<=Nc*Math.max(1,Math.abs(Oe),Math.abs(ju))&&Math.abs(wt-Xc)<=Nc*Math.max(1,Math.abs(wt),Math.abs(Xc))&&Math.abs(Bt-Pd)<=Nc*Math.max(1,Math.abs(Bt),Math.abs(Pd))&&Math.abs(wn-Lh)<=Nc*Math.max(1,Math.abs(wn),Math.abs(Lh))&&Math.abs(Rn-fg)<=Nc*Math.max(1,Math.abs(Rn),Math.abs(fg))&&Math.abs(Pr-Gg)<=Nc*Math.max(1,Math.abs(Pr),Math.abs(Gg))&&Math.abs(ui-am)<=Nc*Math.max(1,Math.abs(ui),Math.abs(am))}var zc=Nf,Nn=fu,or,Wr,hi=(or=(0,ts.b2)(),or(Wr=function(){function o(){(0,Ct.Z)(this,o),(0,Tn.Z)(this,"viewport",void 0),(0,Tn.Z)(this,"overridedViewProjectionMatrix",void 0),(0,Tn.Z)(this,"jitteredViewProjectionMatrix",void 0),(0,Tn.Z)(this,"jitteredProjectionMatrix",void 0),(0,Tn.Z)(this,"viewMatrixInverse",void 0),(0,Tn.Z)(this,"cameraPosition",void 0)}return(0,nt.Z)(o,[{key:"init",value:function(){}},{key:"update",value:function(l){this.viewport=l,this.viewMatrixInverse=yp(),Nv(this.viewMatrixInverse,l.getViewMatrix()),this.cameraPosition=[this.viewMatrixInverse[12],this.viewMatrixInverse[13],this.viewMatrixInverse[14]]}},{key:"getProjectionMatrix",value:function(){return this.jitteredProjectionMatrix||this.viewport.getProjectionMatrix()}},{key:"getModelMatrix",value:function(){return this.viewport.getModelMatrix()}},{key:"getViewMatrix",value:function(){return this.viewport.getViewMatrix()}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.getViewMatrixUncentered()}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.getViewProjectionMatrixUncentered()}},{key:"getViewProjectionMatrix",value:function(){return this.overridedViewProjectionMatrix||this.jitteredViewProjectionMatrix||this.viewport.getViewProjectionMatrix()}},{key:"getZoom",value:function(){return this.viewport.getZoom()}},{key:"getZoomScale",value:function(){return this.viewport.getZoomScale()}},{key:"getCenter",value:function(){var l=this.viewport.getCenter(),c=(0,Br.Z)(l,2),u=c[0],m=c[1];return[u,m]}},{key:"getFocalDistance",value:function(){return this.viewport.getFocalDistance()}},{key:"getCameraPosition",value:function(){return this.cameraPosition}},{key:"projectFlat",value:function(l,c){return this.viewport.projectFlat(l,c)}},{key:"setViewProjectionMatrix",value:function(l){this.overridedViewProjectionMatrix=l}},{key:"jitterProjectionMatrix",value:function(l,c){var u=Gs(yp(),[l,c,0]);this.jitteredProjectionMatrix=Nf(yp(),u,this.viewport.getProjectionMatrix()),this.jitteredViewProjectionMatrix=Nf(yp(),this.jitteredProjectionMatrix,this.viewport.getViewMatrix())}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0,this.jitteredViewProjectionMatrix=void 0}}]),o}())||Wr),io=function(o){return o.TOPRIGHT="topright",o.TOPLEFT="topleft",o.BOTTOMRIGHT="bottomright",o.BOTTOMLEFT="bottomleft",o.TOPCENTER="topcenter",o.BOTTOMCENTER="bottomcenter",o.LEFTCENTER="leftcenter",o.RIGHTCENTER="rightcenter",o.LEFTTOP="lefttop",o.RIGHTTOP="righttop",o.LEFTBOTTOM="leftbottom",o.RIGHTBOTTOM="rightbottom",o}({}),ia,rl;function js(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=ul(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function ul(o,d){if(o){if(typeof o=="string")return nu(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return nu(o,d)}}function nu(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l-1&&this.controls.splice(c,1),l.remove(),this}},{key:"addControls",value:function(){var l=this;this.unAddControls.forEach(function(c){c.addTo(l.scene),l.controls.push(c)}),this.unAddControls=[]}},{key:"destroy",value:function(){var l=js(this.controls),c;try{for(l.s();!(c=l.n()).done;){var u=c.value;u.remove()}}catch(m){l.e(m)}finally{l.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var l=this.controlCorners={},c="l7-",u=this.controlContainer=Os("div",c+"control-container",this.container);function m(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Z=L.map(function(ne){return c+ne}).join(" ");l[L.filter(function(ne){return!["row","column"].includes(ne)}).join("")]=Os("div",Z,u)}function E(L){var Z=L.replace(/^(top|bottom|left|right|center)/,"$1-").split("-");return[].concat((0,_n.Z)(Z),[ks[L]])}Object.values(io).forEach(function(L){m(E(L))}),this.checkCornerOverlap()}},{key:"clearControlPos",value:function(){for(var l in this.controlCorners)this.controlCorners[l]&&Cs(this.controlCorners[l]);this.controlContainer&&Cs(this.controlContainer)}},{key:"checkCornerOverlap",value:function(){var l=this,c=window.MutationObserver;if(c)for(var u=function(){var Z=E[m],ne=Z.match(/^(top|bottom)(left|right)$/);if(ne){var xe=(0,Br.Z)(ne,3),Oe=xe[1],wt=xe[2],Bt=l.controlCorners["".concat(Oe).concat(wt)],wn=new c(function(Rn){var Pr=(0,Br.Z)(Rn,1),ui=Pr[0].target;Bt&&(Bt.style[Oe]=ui.clientHeight+"px")});wn.observe(l.controlCorners["".concat(wt).concat(Oe)],{childList:!0,attributes:!0})}},m=0,E=Object.keys(this.controlCorners);m-1&&this.markerLayers.splice(c,1)}},{key:"addMarker",value:function(l){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(l),l.addTo(this.scene)):this.unAddMarkers.push(l)}},{key:"addMarkers",value:function(){var l=this;this.unAddMarkers.forEach(function(c){c.addTo(l.scene),l.markers.push(c)}),this.unAddMarkers=[]}},{key:"addMarkerLayers",value:function(){var l=this;this.unAddMarkerLayers.forEach(function(c){l.markerLayers.push(c),c.addTo(l.scene)}),this.unAddMarkers=[]}},{key:"removeMarker",value:function(l){l.remove(),this.markers.indexOf(l);var c=this.markers.indexOf(l);c>-1&&this.markers.splice(c,1)}},{key:"removeAllMarkers",value:function(){this.destroy()}},{key:"init",value:function(l){this.scene=l,this.mapsService=l.get(Ls.IMapService)}},{key:"destroy",value:function(){this.markers.forEach(function(l){l.remove()}),this.markers=[],this.markerLayers.forEach(function(l){l.destroy()}),this.markerLayers=[]}},{key:"removeMakerLayerMarker",value:function(l){l.destroy()}}]),o}())||kd),lh,sp,Ip=(lh=(0,ts.b2)(),lh(sp=function(){function o(){(0,Ct.Z)(this,o),(0,Tn.Z)(this,"scene",void 0),(0,Tn.Z)(this,"mapsService",void 0),(0,Tn.Z)(this,"popups",[]),(0,Tn.Z)(this,"unAddPopups",[])}return(0,nt.Z)(o,[{key:"isMarkerReady",get:function(){return this.mapsService.map&&this.mapsService.getMarkerContainer()}},{key:"removePopup",value:function(l){l!=null&&l.isOpen()&&l.remove();var c=this.popups.indexOf(l);c>-1&&this.popups.splice(c,1);var u=this.unAddPopups.indexOf(l);u>-1&&this.unAddPopups.splice(u,1)}},{key:"destroy",value:function(){this.popups.forEach(function(l){return l.remove()})}},{key:"addPopup",value:function(l){var c=this;l&&l.getOptions().autoClose&&[].concat((0,_n.Z)(this.popups),(0,_n.Z)(this.unAddPopups)).forEach(function(u){u.getOptions().autoClose&&c.removePopup(u)}),this.isMarkerReady?(l.addTo(this.scene),this.popups.push(l)):this.unAddPopups.push(l),l.on("close",function(){c.removePopup(l)})}},{key:"initPopup",value:function(){var l=this;this.unAddPopups.length&&this.unAddPopups.forEach(function(c){l.addPopup(c),l.unAddPopups=[]})}},{key:"init",value:function(l){this.scene=l,this.mapsService=l.get(Ls.IMapService)}}]),o}())||sp),wh=function(o){return o.normal="normal",o.additive="additive",o.subtractive="subtractive",o.min="min",o.max="max",o.none="none",o}({}),Fh=function(o){return o.MULTIPLE="MULTIPLE",o.SINGLE="SINGLE",o}({}),ss=function(o){return o.AND="and",o.OR="or",o}({}),Ll=function(o){return o.INIT="init",o.UPDATE="update",o}({}),hf={MapToken:"\u60A8\u6B63\u5728\u4F7F\u7528 Demo \u6D4B\u8BD5 Token, \u751F\u4EA7\u73AF\u5883\u52A1\u5FC5\u81EA\u884C\u6CE8\u518C Token \u786E\u4FDD\u670D\u52A1\u7A33\u5B9A \u9AD8\u5FB7\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://lbs.amap.com/api/javascript-api/guide/abc/prepare Mapbox\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://docs.mapbox.com/help/glossary/access-token/",SDK:"\u8BF7\u786E\u8BA4\u5F15\u5165\u4E86mapbox-gl api\u4E14\u5728L7\u4E4B\u524D\u5F15\u5165"},ff=hf,xf,pg,wf=fs.merge,ou={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,stencil:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},Id={colors:["rgb(103,0,31)","rgb(178,24,43)","rgb(214,96,77)","rgb(244,165,130)","rgb(253,219,199)","rgb(247,247,247)","rgb(209,229,240)","rgb(146,197,222)","rgb(67,147,195)","rgb(33,102,172)","rgb(5,48,97)"],size:10,shape:"circle",scales:{},shape2d:["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"],shape3d:["cylinder","triangleColumn","hexagonColumn","squareColumn"],minZoom:-1,maxZoom:24,visible:!0,autoFit:!1,pickingBuffer:0,enablePropagation:!1,zIndex:0,blend:"normal",maskLayers:[],enableMask:!0,maskOperation:ss.AND,pickedFeatureID:-1,enableMultiPassRenderer:!1,enablePicking:!0,active:!1,activeColor:"#2f54eb",enableHighlight:!1,enableSelect:!1,highlightColor:"#2f54eb",activeMix:0,selectColor:"blue",selectMix:0,enableTAA:!1,jitterScale:1,enableLighting:!1,animateOption:{enable:!1,interval:.2,duration:4,trailLength:.15},forward:!0},rf=(xf=(0,ts.b2)(),xf(pg=function(){function o(){(0,Ct.Z)(this,o),(0,Tn.Z)(this,"sceneConfigCache",{}),(0,Tn.Z)(this,"layerConfigCache",{}),(0,Tn.Z)(this,"layerAttributeConfigCache",{})}return(0,nt.Z)(o,[{key:"getSceneConfig",value:function(l){return this.sceneConfigCache[l]}},{key:"getSceneWarninfo",value:function(l){return ff[l]}},{key:"setSceneConfig",value:function(l,c){this.sceneConfigCache[l]=(0,ze.Z)((0,ze.Z)({},ou),c)}},{key:"getLayerConfig",value:function(l){return this.layerConfigCache[l]}},{key:"setLayerConfig",value:function(l,c,u){this.layerConfigCache[c]=(0,ze.Z)({},wf({},this.sceneConfigCache[l],Id,u))}},{key:"getAttributeConfig",value:function(l){return this.layerAttributeConfigCache[l]}},{key:"setAttributeConfig",value:function(l,c){this.layerAttributeConfigCache[l]=(0,ze.Z)((0,ze.Z)({},this.layerAttributeConfigCache[l]),c)}},{key:"clean",value:function(){this.sceneConfigCache={},this.layerConfigCache={}}}]),o}())||pg);function Vc(o,d,l,c){l&&Object.defineProperty(o,d,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(c):void 0})}function zd(o,d,l,c,u){var m={};return Object.keys(c).forEach(function(E){m[E]=c[E]}),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=l.slice().reverse().reduce(function(E,L){return L(o,d,E)||E},m),u&&m.initializer!==void 0&&(m.value=m.initializer?m.initializer.call(u):void 0,m.initializer=void 0),m.initializer===void 0&&(Object.defineProperty(o,d,m),m=null),m}function H(){var o=new Oo(4);return Oo!=Float32Array&&(o[0]=0,o[1]=0,o[2]=0,o[3]=0),o}function F(o){var d=new glMatrix.ARRAY_TYPE(4);return d[0]=o[0],d[1]=o[1],d[2]=o[2],d[3]=o[3],d}function te(o,d,l,c){var u=new Oo(4);return u[0]=o,u[1]=d,u[2]=l,u[3]=c,u}function me(o,d){return o[0]=d[0],o[1]=d[1],o[2]=d[2],o[3]=d[3],o}function Ve(o,d,l,c,u){return o[0]=d,o[1]=l,o[2]=c,o[3]=u,o}function bt(o,d,l){return o[0]=d[0]+l[0],o[1]=d[1]+l[1],o[2]=d[2]+l[2],o[3]=d[3]+l[3],o}function gt(o,d,l){return o[0]=d[0]-l[0],o[1]=d[1]-l[1],o[2]=d[2]-l[2],o[3]=d[3]-l[3],o}function Qt(o,d,l){return o[0]=d[0]*l[0],o[1]=d[1]*l[1],o[2]=d[2]*l[2],o[3]=d[3]*l[3],o}function En(o,d,l){return o[0]=d[0]/l[0],o[1]=d[1]/l[1],o[2]=d[2]/l[2],o[3]=d[3]/l[3],o}function Tr(o,d){return o[0]=Math.ceil(d[0]),o[1]=Math.ceil(d[1]),o[2]=Math.ceil(d[2]),o[3]=Math.ceil(d[3]),o}function li(o,d){return o[0]=Math.floor(d[0]),o[1]=Math.floor(d[1]),o[2]=Math.floor(d[2]),o[3]=Math.floor(d[3]),o}function Ri(o,d,l){return o[0]=Math.min(d[0],l[0]),o[1]=Math.min(d[1],l[1]),o[2]=Math.min(d[2],l[2]),o[3]=Math.min(d[3],l[3]),o}function wo(o,d,l){return o[0]=Math.max(d[0],l[0]),o[1]=Math.max(d[1],l[1]),o[2]=Math.max(d[2],l[2]),o[3]=Math.max(d[3],l[3]),o}function Ho(o,d){return o[0]=Math.round(d[0]),o[1]=Math.round(d[1]),o[2]=Math.round(d[2]),o[3]=Math.round(d[3]),o}function ys(o,d,l){return o[0]=d[0]*l,o[1]=d[1]*l,o[2]=d[2]*l,o[3]=d[3]*l,o}function Ca(o,d,l,c){return o[0]=d[0]+l[0]*c,o[1]=d[1]+l[1]*c,o[2]=d[2]+l[2]*c,o[3]=d[3]+l[3]*c,o}function Fa(o,d){var l=d[0]-o[0],c=d[1]-o[1],u=d[2]-o[2],m=d[3]-o[3];return Math.hypot(l,c,u,m)}function al(o,d){var l=d[0]-o[0],c=d[1]-o[1],u=d[2]-o[2],m=d[3]-o[3];return l*l+c*c+u*u+m*m}function Wl(o){var d=o[0],l=o[1],c=o[2],u=o[3];return Math.hypot(d,l,c,u)}function vl(o){var d=o[0],l=o[1],c=o[2],u=o[3];return d*d+l*l+c*c+u*u}function Yl(o,d){return o[0]=-d[0],o[1]=-d[1],o[2]=-d[2],o[3]=-d[3],o}function Gu(o,d){return o[0]=1/d[0],o[1]=1/d[1],o[2]=1/d[2],o[3]=1/d[3],o}function sd(o,d){var l=d[0],c=d[1],u=d[2],m=d[3],E=l*l+c*c+u*u+m*m;return E>0&&(E=1/Math.sqrt(E)),o[0]=l*E,o[1]=c*E,o[2]=u*E,o[3]=m*E,o}function xh(o,d){return o[0]*d[0]+o[1]*d[1]+o[2]*d[2]+o[3]*d[3]}function Bf(o,d,l,c){var u=l[0]*c[1]-l[1]*c[0],m=l[0]*c[2]-l[2]*c[0],E=l[0]*c[3]-l[3]*c[0],L=l[1]*c[2]-l[2]*c[1],Z=l[1]*c[3]-l[3]*c[1],ne=l[2]*c[3]-l[3]*c[2],xe=d[0],Oe=d[1],wt=d[2],Bt=d[3];return o[0]=Oe*ne-wt*Z+Bt*L,o[1]=-(xe*ne)+wt*E-Bt*m,o[2]=xe*Z-Oe*E+Bt*u,o[3]=-(xe*L)+Oe*m-wt*u,o}function Th(o,d,l,c){var u=d[0],m=d[1],E=d[2],L=d[3];return o[0]=u+c*(l[0]-u),o[1]=m+c*(l[1]-m),o[2]=E+c*(l[2]-E),o[3]=L+c*(l[3]-L),o}function Dh(o,d){d=d||1;var l,c,u,m,E,L;do l=glMatrix.RANDOM()*2-1,c=glMatrix.RANDOM()*2-1,E=l*l+c*c;while(E>=1);do u=glMatrix.RANDOM()*2-1,m=glMatrix.RANDOM()*2-1,L=u*u+m*m;while(L>=1);var Z=Math.sqrt((1-E)/L);return o[0]=d*l,o[1]=d*c,o[2]=d*u*Z,o[3]=d*m*Z,o}function Yd(o,d,l){var c=d[0],u=d[1],m=d[2],E=d[3];return o[0]=l[0]*c+l[4]*u+l[8]*m+l[12]*E,o[1]=l[1]*c+l[5]*u+l[9]*m+l[13]*E,o[2]=l[2]*c+l[6]*u+l[10]*m+l[14]*E,o[3]=l[3]*c+l[7]*u+l[11]*m+l[15]*E,o}function pf(o,d,l){var c=d[0],u=d[1],m=d[2],E=l[0],L=l[1],Z=l[2],ne=l[3],xe=ne*c+L*m-Z*u,Oe=ne*u+Z*c-E*m,wt=ne*m+E*u-L*c,Bt=-E*c-L*u-Z*m;return o[0]=xe*ne+Bt*-E+Oe*-Z-wt*-L,o[1]=Oe*ne+Bt*-L+wt*-E-xe*-Z,o[2]=wt*ne+Bt*-Z+xe*-L-Oe*-E,o[3]=d[3],o}function dh(o){return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}function Md(o){return"vec4("+o[0]+", "+o[1]+", "+o[2]+", "+o[3]+")"}function Qf(o,d){return o[0]===d[0]&&o[1]===d[1]&&o[2]===d[2]&&o[3]===d[3]}function yf(o,d){var l=o[0],c=o[1],u=o[2],m=o[3],E=d[0],L=d[1],Z=d[2],ne=d[3];return Math.abs(l-E)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(E))&&Math.abs(c-L)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(L))&&Math.abs(u-Z)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(Z))&&Math.abs(m-ne)<=glMatrix.EPSILON*Math.max(1,Math.abs(m),Math.abs(ne))}var jp=null,bg=null,nm=null,f0=null,yv=null,p0=null,Rm=null,Vu=function(){var o=H();return function(d,l,c,u,m,E){var L,Z;for(l||(l=4),c||(c=0),u?Z=Math.min(u*l+c,d.length):Z=d.length,L=c;L0?(l[0]=(M*E+Ce*c+Z*m-ne*u)*2/Oe,l[1]=(Z*E+Ce*u+ne*c-M*m)*2/Oe,l[2]=(ne*E+Ce*m+M*u-Z*c)*2/Oe):(l[0]=(M*E+Ce*c+Z*m-ne*u)*2,l[1]=(Z*E+Ce*u+ne*c-M*m)*2,l[2]=(ne*E+Ce*m+M*u-Z*c)*2),_(o,d,l),o}function W(o,d){return o[0]=d[12],o[1]=d[13],o[2]=d[14],o}function re(o,d){var l=d[0],c=d[1],u=d[2],m=d[4],E=d[5],M=d[6],Z=d[8],ne=d[9],Ce=d[10];return o[0]=Math.hypot(l,c,u),o[1]=Math.hypot(m,E,M),o[2]=Math.hypot(Z,ne,Ce),o}function de(o,d){var l=new Oo(3);re(l,d);var c=1/l[0],u=1/l[1],m=1/l[2],E=d[0]*c,M=d[1]*u,Z=d[2]*m,ne=d[4]*c,Ce=d[5]*u,Oe=d[6]*m,Ct=d[8]*c,Bt=d[9]*u,An=d[10]*m,kn=E+Ce+An,Ir=0;return kn>0?(Ir=Math.sqrt(kn+1)*2,o[3]=.25*Ir,o[0]=(Oe-Bt)/Ir,o[1]=(Ct-Z)/Ir,o[2]=(M-ne)/Ir):E>Ce&&E>An?(Ir=Math.sqrt(1+E-Ce-An)*2,o[3]=(Oe-Bt)/Ir,o[0]=.25*Ir,o[1]=(M+ne)/Ir,o[2]=(Ct+Z)/Ir):Ce>An?(Ir=Math.sqrt(1+Ce-E-An)*2,o[3]=(Ct-Z)/Ir,o[0]=(M+ne)/Ir,o[1]=.25*Ir,o[2]=(Oe+Bt)/Ir):(Ir=Math.sqrt(1+An-E-Ce)*2,o[3]=(M-ne)/Ir,o[0]=(Ct+Z)/Ir,o[1]=(Oe+Bt)/Ir,o[2]=.25*Ir),o}function Le(o,d,l,c){var u=d[0],m=d[1],E=d[2],M=d[3],Z=u+u,ne=m+m,Ce=E+E,Oe=u*Z,Ct=u*ne,Bt=u*Ce,An=m*ne,kn=m*Ce,Ir=E*Ce,ui=M*Z,ao=M*ne,wo=M*Ce,Ds=c[0],oa=c[1],fa=c[2];return o[0]=(1-(An+Ir))*Ds,o[1]=(Ct+wo)*Ds,o[2]=(Bt-ao)*Ds,o[3]=0,o[4]=(Ct-wo)*oa,o[5]=(1-(Oe+Ir))*oa,o[6]=(kn+ui)*oa,o[7]=0,o[8]=(Bt+ao)*fa,o[9]=(kn-ui)*fa,o[10]=(1-(Oe+An))*fa,o[11]=0,o[12]=l[0],o[13]=l[1],o[14]=l[2],o[15]=1,o}function Je(o,d,l,c,u){var m=d[0],E=d[1],M=d[2],Z=d[3],ne=m+m,Ce=E+E,Oe=M+M,Ct=m*ne,Bt=m*Ce,An=m*Oe,kn=E*Ce,Ir=E*Oe,ui=M*Oe,ao=Z*ne,wo=Z*Ce,Ds=Z*Oe,oa=c[0],fa=c[1],Wa=c[2],vl=u[0],Ql=u[1],Ou=u[2],Uu=(1-(kn+ui))*oa,hh=(Bt+Ds)*oa,Ph=(An-wo)*oa,Ld=(Bt-Ds)*fa,mg=(1-(Ct+ui))*fa,Yg=(Ir+ao)*fa,am=(An+wo)*Wa,iv=(Ir-ao)*Wa,Dm=(1-(Ct+kn))*Wa;return o[0]=Uu,o[1]=hh,o[2]=Ph,o[3]=0,o[4]=Ld,o[5]=mg,o[6]=Yg,o[7]=0,o[8]=am,o[9]=iv,o[10]=Dm,o[11]=0,o[12]=l[0]+vl-(Uu*vl+Ld*Ql+am*Ou),o[13]=l[1]+Ql-(hh*vl+mg*Ql+iv*Ou),o[14]=l[2]+Ou-(Ph*vl+Yg*Ql+Dm*Ou),o[15]=1,o}function $t(o,d){var l=d[0],c=d[1],u=d[2],m=d[3],E=l+l,M=c+c,Z=u+u,ne=l*E,Ce=c*E,Oe=c*M,Ct=u*E,Bt=u*M,An=u*Z,kn=m*E,Ir=m*M,ui=m*Z;return o[0]=1-Oe-An,o[1]=Ce+ui,o[2]=Ct-Ir,o[3]=0,o[4]=Ce-ui,o[5]=1-ne-An,o[6]=Bt+kn,o[7]=0,o[8]=Ct+Ir,o[9]=Bt-kn,o[10]=1-ne-Oe,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}function on(o,d,l,c,u,m,E){var M=1/(l-d),Z=1/(u-c),ne=1/(m-E);return o[0]=m*2*M,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=m*2*Z,o[6]=0,o[7]=0,o[8]=(l+d)*M,o[9]=(u+c)*Z,o[10]=(E+m)*ne,o[11]=-1,o[12]=0,o[13]=0,o[14]=E*m*2*ne,o[15]=0,o}function Jn(o,d,l,c,u){var m=1/Math.tan(d/2),E;return o[0]=m/l,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=m,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[11]=-1,o[12]=0,o[13]=0,o[15]=0,u!=null&&u!==1/0?(E=1/(c-u),o[10]=(u+c)*E,o[14]=2*u*c*E):(o[10]=-1,o[14]=-2*c),o}var br=Jn;function xi(o,d,l,c,u){var m=1/Math.tan(d/2),E;return o[0]=m/l,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=m,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[11]=-1,o[12]=0,o[13]=0,o[15]=0,u!=null&&u!==1/0?(E=1/(c-u),o[10]=u*E,o[14]=u*c*E):(o[10]=-1,o[14]=-c),o}function Di(o,d,l,c){var u=Math.tan(d.upDegrees*Math.PI/180),m=Math.tan(d.downDegrees*Math.PI/180),E=Math.tan(d.leftDegrees*Math.PI/180),M=Math.tan(d.rightDegrees*Math.PI/180),Z=2/(E+M),ne=2/(u+m);return o[0]=Z,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=ne,o[6]=0,o[7]=0,o[8]=-((E-M)*Z*.5),o[9]=(u-m)*ne*.5,o[10]=c/(l-c),o[11]=-1,o[12]=0,o[13]=0,o[14]=c*l/(l-c),o[15]=0,o}function Do(o,d,l,c,u,m,E){var M=1/(d-l),Z=1/(c-u),ne=1/(m-E);return o[0]=-2*M,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*Z,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*ne,o[11]=0,o[12]=(d+l)*M,o[13]=(u+c)*Z,o[14]=(E+m)*ne,o[15]=1,o}var Ao=Do;function Vo(o,d,l,c,u,m,E){var M=1/(d-l),Z=1/(c-u),ne=1/(m-E);return o[0]=-2*M,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*Z,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=ne,o[11]=0,o[12]=(d+l)*M,o[13]=(u+c)*Z,o[14]=m*ne,o[15]=1,o}function Lo(o,d,l,c){var u,m,E,M,Z,ne,Ce,Oe,Ct,Bt,An=d[0],kn=d[1],Ir=d[2],ui=c[0],ao=c[1],wo=c[2],Ds=l[0],oa=l[1],fa=l[2];return Math.abs(An-Ds)0&&(Bt=1/Math.sqrt(Bt),Ce*=Bt,Oe*=Bt,Ct*=Bt);var An=Z*Ct-ne*Oe,kn=ne*Ce-M*Ct,Ir=M*Oe-Z*Ce;return Bt=An*An+kn*kn+Ir*Ir,Bt>0&&(Bt=1/Math.sqrt(Bt),An*=Bt,kn*=Bt,Ir*=Bt),o[0]=An,o[1]=kn,o[2]=Ir,o[3]=0,o[4]=Oe*Ir-Ct*kn,o[5]=Ct*An-Ce*Ir,o[6]=Ce*kn-Oe*An,o[7]=0,o[8]=Ce,o[9]=Oe,o[10]=Ct,o[11]=0,o[12]=u,o[13]=m,o[14]=E,o[15]=1,o}function Ys(o){return"mat4("+o[0]+", "+o[1]+", "+o[2]+", "+o[3]+", "+o[4]+", "+o[5]+", "+o[6]+", "+o[7]+", "+o[8]+", "+o[9]+", "+o[10]+", "+o[11]+", "+o[12]+", "+o[13]+", "+o[14]+", "+o[15]+")"}function Fa(o){return Math.hypot(o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7],o[8],o[9],o[10],o[11],o[12],o[13],o[14],o[15])}function xl(o,d,l){return o[0]=d[0]+l[0],o[1]=d[1]+l[1],o[2]=d[2]+l[2],o[3]=d[3]+l[3],o[4]=d[4]+l[4],o[5]=d[5]+l[5],o[6]=d[6]+l[6],o[7]=d[7]+l[7],o[8]=d[8]+l[8],o[9]=d[9]+l[9],o[10]=d[10]+l[10],o[11]=d[11]+l[11],o[12]=d[12]+l[12],o[13]=d[13]+l[13],o[14]=d[14]+l[14],o[15]=d[15]+l[15],o}function cu(o,d,l){return o[0]=d[0]-l[0],o[1]=d[1]-l[1],o[2]=d[2]-l[2],o[3]=d[3]-l[3],o[4]=d[4]-l[4],o[5]=d[5]-l[5],o[6]=d[6]-l[6],o[7]=d[7]-l[7],o[8]=d[8]-l[8],o[9]=d[9]-l[9],o[10]=d[10]-l[10],o[11]=d[11]-l[11],o[12]=d[12]-l[12],o[13]=d[13]-l[13],o[14]=d[14]-l[14],o[15]=d[15]-l[15],o}function $u(o,d,l){return o[0]=d[0]*l,o[1]=d[1]*l,o[2]=d[2]*l,o[3]=d[3]*l,o[4]=d[4]*l,o[5]=d[5]*l,o[6]=d[6]*l,o[7]=d[7]*l,o[8]=d[8]*l,o[9]=d[9]*l,o[10]=d[10]*l,o[11]=d[11]*l,o[12]=d[12]*l,o[13]=d[13]*l,o[14]=d[14]*l,o[15]=d[15]*l,o}function Lu(o,d,l,c){return o[0]=d[0]+l[0]*c,o[1]=d[1]+l[1]*c,o[2]=d[2]+l[2]*c,o[3]=d[3]+l[3]*c,o[4]=d[4]+l[4]*c,o[5]=d[5]+l[5]*c,o[6]=d[6]+l[6]*c,o[7]=d[7]+l[7]*c,o[8]=d[8]+l[8]*c,o[9]=d[9]+l[9]*c,o[10]=d[10]+l[10]*c,o[11]=d[11]+l[11]*c,o[12]=d[12]+l[12]*c,o[13]=d[13]+l[13]*c,o[14]=d[14]+l[14]*c,o[15]=d[15]+l[15]*c,o}function sh(o,d){return o[0]===d[0]&&o[1]===d[1]&&o[2]===d[2]&&o[3]===d[3]&&o[4]===d[4]&&o[5]===d[5]&&o[6]===d[6]&&o[7]===d[7]&&o[8]===d[8]&&o[9]===d[9]&&o[10]===d[10]&&o[11]===d[11]&&o[12]===d[12]&&o[13]===d[13]&&o[14]===d[14]&&o[15]===d[15]}function _u(o,d){var l=o[0],c=o[1],u=o[2],m=o[3],E=o[4],M=o[5],Z=o[6],ne=o[7],Ce=o[8],Oe=o[9],Ct=o[10],Bt=o[11],An=o[12],kn=o[13],Ir=o[14],ui=o[15],ao=d[0],wo=d[1],Ds=d[2],oa=d[3],fa=d[4],Wa=d[5],vl=d[6],Ql=d[7],Ou=d[8],Uu=d[9],hh=d[10],Ph=d[11],Ld=d[12],mg=d[13],Yg=d[14],am=d[15];return Math.abs(l-ao)<=Rc*Math.max(1,Math.abs(l),Math.abs(ao))&&Math.abs(c-wo)<=Rc*Math.max(1,Math.abs(c),Math.abs(wo))&&Math.abs(u-Ds)<=Rc*Math.max(1,Math.abs(u),Math.abs(Ds))&&Math.abs(m-oa)<=Rc*Math.max(1,Math.abs(m),Math.abs(oa))&&Math.abs(E-fa)<=Rc*Math.max(1,Math.abs(E),Math.abs(fa))&&Math.abs(M-Wa)<=Rc*Math.max(1,Math.abs(M),Math.abs(Wa))&&Math.abs(Z-vl)<=Rc*Math.max(1,Math.abs(Z),Math.abs(vl))&&Math.abs(ne-Ql)<=Rc*Math.max(1,Math.abs(ne),Math.abs(Ql))&&Math.abs(Ce-Ou)<=Rc*Math.max(1,Math.abs(Ce),Math.abs(Ou))&&Math.abs(Oe-Uu)<=Rc*Math.max(1,Math.abs(Oe),Math.abs(Uu))&&Math.abs(Ct-hh)<=Rc*Math.max(1,Math.abs(Ct),Math.abs(hh))&&Math.abs(Bt-Ph)<=Rc*Math.max(1,Math.abs(Bt),Math.abs(Ph))&&Math.abs(An-Ld)<=Rc*Math.max(1,Math.abs(An),Math.abs(Ld))&&Math.abs(kn-mg)<=Rc*Math.max(1,Math.abs(kn),Math.abs(mg))&&Math.abs(Ir-Yg)<=Rc*Math.max(1,Math.abs(Ir),Math.abs(Yg))&&Math.abs(ui-am)<=Rc*Math.max(1,Math.abs(ui),Math.abs(am))}var Bc=Ff,Nn=cu,sr,Zr,hi=(sr=(0,Go.b2)(),sr(Zr=function(){function o(){(0,wt.Z)(this,o),(0,Tn.Z)(this,"viewport",void 0),(0,Tn.Z)(this,"overridedViewProjectionMatrix",void 0),(0,Tn.Z)(this,"jitteredViewProjectionMatrix",void 0),(0,Tn.Z)(this,"jitteredProjectionMatrix",void 0),(0,Tn.Z)(this,"viewMatrixInverse",void 0),(0,Tn.Z)(this,"cameraPosition",void 0)}return(0,nt.Z)(o,[{key:"init",value:function(){}},{key:"update",value:function(l){this.viewport=l,this.viewMatrixInverse=bp(),Nv(this.viewMatrixInverse,l.getViewMatrix()),this.cameraPosition=[this.viewMatrixInverse[12],this.viewMatrixInverse[13],this.viewMatrixInverse[14]]}},{key:"getProjectionMatrix",value:function(){return this.jitteredProjectionMatrix||this.viewport.getProjectionMatrix()}},{key:"getModelMatrix",value:function(){return this.viewport.getModelMatrix()}},{key:"getViewMatrix",value:function(){return this.viewport.getViewMatrix()}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.getViewMatrixUncentered()}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.getViewProjectionMatrixUncentered()}},{key:"getViewProjectionMatrix",value:function(){return this.overridedViewProjectionMatrix||this.jitteredViewProjectionMatrix||this.viewport.getViewProjectionMatrix()}},{key:"getZoom",value:function(){return this.viewport.getZoom()}},{key:"getZoomScale",value:function(){return this.viewport.getZoomScale()}},{key:"getCenter",value:function(){var l=this.viewport.getCenter(),c=(0,Or.Z)(l,2),u=c[0],m=c[1];return[u,m]}},{key:"getFocalDistance",value:function(){return this.viewport.getFocalDistance()}},{key:"getCameraPosition",value:function(){return this.cameraPosition}},{key:"projectFlat",value:function(l,c){return this.viewport.projectFlat(l,c)}},{key:"setViewProjectionMatrix",value:function(l){this.overridedViewProjectionMatrix=l}},{key:"jitterProjectionMatrix",value:function(l,c){var u=Ws(bp(),[l,c,0]);this.jitteredProjectionMatrix=Ff(bp(),u,this.viewport.getProjectionMatrix()),this.jitteredViewProjectionMatrix=Ff(bp(),this.jitteredProjectionMatrix,this.viewport.getViewMatrix())}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0,this.jitteredViewProjectionMatrix=void 0}}]),o}())||Zr),oo=function(o){return o.TOPRIGHT="topright",o.TOPLEFT="topleft",o.BOTTOMRIGHT="bottomright",o.BOTTOMLEFT="bottomleft",o.TOPCENTER="topcenter",o.BOTTOMCENTER="bottomcenter",o.LEFTCENTER="leftcenter",o.RIGHTCENTER="rightcenter",o.LEFTTOP="lefttop",o.RIGHTTOP="righttop",o.LEFTBOTTOM="leftbottom",o.RIGHTBOTTOM="rightbottom",o}({}),na,rl;function $s(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=ll(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function ll(o,d){if(o){if(typeof o=="string")return tu(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return tu(o,d)}}function tu(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l-1&&this.controls.splice(c,1),l.remove(),this}},{key:"addControls",value:function(){var l=this;this.unAddControls.forEach(function(c){c.addTo(l.scene),l.controls.push(c)}),this.unAddControls=[]}},{key:"destroy",value:function(){var l=$s(this.controls),c;try{for(l.s();!(c=l.n()).done;){var u=c.value;u.remove()}}catch(m){l.e(m)}finally{l.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var l=this.controlCorners={},c="l7-",u=this.controlContainer=Os("div",c+"control-container",this.container);function m(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Z=M.map(function(ne){return c+ne}).join(" ");l[M.filter(function(ne){return!["row","column"].includes(ne)}).join("")]=Os("div",Z,u)}function E(M){var Z=M.replace(/^(top|bottom|left|right|center)/,"$1-").split("-");return[].concat((0,bn.Z)(Z),[Rs[M]])}Object.values(oo).forEach(function(M){m(E(M))}),this.checkCornerOverlap()}},{key:"clearControlPos",value:function(){for(var l in this.controlCorners)this.controlCorners[l]&&Cs(this.controlCorners[l]);this.controlContainer&&Cs(this.controlContainer)}},{key:"checkCornerOverlap",value:function(){var l=this,c=window.MutationObserver;if(c)for(var u=function(){var Z=E[m],ne=Z.match(/^(top|bottom)(left|right)$/);if(ne){var Ce=(0,Or.Z)(ne,3),Oe=Ce[1],Ct=Ce[2],Bt=l.controlCorners["".concat(Oe).concat(Ct)],An=new c(function(kn){var Ir=(0,Or.Z)(kn,1),ui=Ir[0].target;Bt&&(Bt.style[Oe]=ui.clientHeight+"px")});An.observe(l.controlCorners["".concat(Ct).concat(Oe)],{childList:!0,attributes:!0})}},m=0,E=Object.keys(this.controlCorners);m-1&&this.markerLayers.splice(c,1)}},{key:"addMarker",value:function(l){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(l),l.addTo(this.scene)):this.unAddMarkers.push(l)}},{key:"addMarkers",value:function(){var l=this;this.unAddMarkers.forEach(function(c){c.addTo(l.scene),l.markers.push(c)}),this.unAddMarkers=[]}},{key:"addMarkerLayers",value:function(){var l=this;this.unAddMarkerLayers.forEach(function(c){l.markerLayers.push(c),c.addTo(l.scene)}),this.unAddMarkers=[]}},{key:"removeMarker",value:function(l){l.remove(),this.markers.indexOf(l);var c=this.markers.indexOf(l);c>-1&&this.markers.splice(c,1)}},{key:"removeAllMarkers",value:function(){this.destroy()}},{key:"init",value:function(l){this.scene=l,this.mapsService=l.get(Zs.IMapService)}},{key:"destroy",value:function(){this.markers.forEach(function(l){l.remove()}),this.markers=[],this.markerLayers.forEach(function(l){l.destroy()}),this.markerLayers=[]}},{key:"removeMakerLayerMarker",value:function(l){l.destroy()}}]),o}())||Rh),ad,up,Pp=(ad=(0,Go.b2)(),ad(up=function(){function o(){(0,wt.Z)(this,o),(0,Tn.Z)(this,"scene",void 0),(0,Tn.Z)(this,"mapsService",void 0),(0,Tn.Z)(this,"popups",[]),(0,Tn.Z)(this,"unAddPopups",[])}return(0,nt.Z)(o,[{key:"isMarkerReady",get:function(){return this.mapsService.map&&this.mapsService.getMarkerContainer()}},{key:"removePopup",value:function(l){l!=null&&l.isOpen()&&l.remove();var c=this.popups.indexOf(l);c>-1&&this.popups.splice(c,1);var u=this.unAddPopups.indexOf(l);u>-1&&this.unAddPopups.splice(u,1)}},{key:"destroy",value:function(){this.popups.forEach(function(l){return l.remove()})}},{key:"addPopup",value:function(l){var c=this;l&&l.getOptions().autoClose&&[].concat((0,bn.Z)(this.popups),(0,bn.Z)(this.unAddPopups)).forEach(function(u){u.getOptions().autoClose&&c.removePopup(u)}),this.isMarkerReady?(l.addTo(this.scene),this.popups.push(l)):this.unAddPopups.push(l),l.on("close",function(){c.removePopup(l)})}},{key:"initPopup",value:function(){var l=this;this.unAddPopups.length&&this.unAddPopups.forEach(function(c){l.addPopup(c),l.unAddPopups=[]})}},{key:"init",value:function(l){this.scene=l,this.mapsService=l.get(Zs.IMapService)}}]),o}())||up),wd=function(o){return o.normal="normal",o.additive="additive",o.subtractive="subtractive",o.min="min",o.max="max",o.none="none",o}({}),Fd=function(o){return o.MULTIPLE="MULTIPLE",o.SINGLE="SINGLE",o}({}),as=function(o){return o.AND="and",o.OR="or",o}({}),Ll=function(o){return o.INIT="init",o.UPDATE="update",o}({}),ff={MapToken:"\u60A8\u6B63\u5728\u4F7F\u7528 Demo \u6D4B\u8BD5 Token, \u751F\u4EA7\u73AF\u5883\u52A1\u5FC5\u81EA\u884C\u6CE8\u518C Token \u786E\u4FDD\u670D\u52A1\u7A33\u5B9A \u9AD8\u5FB7\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://lbs.amap.com/api/javascript-api/guide/abc/prepare Mapbox\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://docs.mapbox.com/help/glossary/access-token/",SDK:"\u8BF7\u786E\u8BA4\u5F15\u5165\u4E86mapbox-gl api\u4E14\u5728L7\u4E4B\u524D\u5F15\u5165"},pf=ff,Cf,vg,Sf=fs.merge,iu={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,stencil:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},Ih={colors:["rgb(103,0,31)","rgb(178,24,43)","rgb(214,96,77)","rgb(244,165,130)","rgb(253,219,199)","rgb(247,247,247)","rgb(209,229,240)","rgb(146,197,222)","rgb(67,147,195)","rgb(33,102,172)","rgb(5,48,97)"],size:10,shape:"circle",scales:{},shape2d:["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"],shape3d:["cylinder","triangleColumn","hexagonColumn","squareColumn"],minZoom:-1,maxZoom:24,visible:!0,autoFit:!1,pickingBuffer:0,enablePropagation:!1,zIndex:0,blend:"normal",maskLayers:[],enableMask:!0,maskOperation:as.AND,pickedFeatureID:-1,enableMultiPassRenderer:!1,enablePicking:!0,active:!1,activeColor:"#2f54eb",enableHighlight:!1,enableSelect:!1,highlightColor:"#2f54eb",activeMix:0,selectColor:"blue",selectMix:0,enableTAA:!1,jitterScale:1,enableLighting:!1,animateOption:{enable:!1,interval:.2,duration:4,trailLength:.15},forward:!0},rf=(Cf=(0,Go.b2)(),Cf(vg=function(){function o(){(0,wt.Z)(this,o),(0,Tn.Z)(this,"sceneConfigCache",{}),(0,Tn.Z)(this,"layerConfigCache",{}),(0,Tn.Z)(this,"layerAttributeConfigCache",{})}return(0,nt.Z)(o,[{key:"getSceneConfig",value:function(l){return this.sceneConfigCache[l]}},{key:"getSceneWarninfo",value:function(l){return pf[l]}},{key:"setSceneConfig",value:function(l,c){this.sceneConfigCache[l]=(0,Be.Z)((0,Be.Z)({},iu),c)}},{key:"getLayerConfig",value:function(l){return this.layerConfigCache[l]}},{key:"setLayerConfig",value:function(l,c,u){this.layerConfigCache[c]=(0,Be.Z)({},Sf({},this.sceneConfigCache[l],Ih,u))}},{key:"getAttributeConfig",value:function(l){return this.layerAttributeConfigCache[l]}},{key:"setAttributeConfig",value:function(l,c){this.layerAttributeConfigCache[l]=(0,Be.Z)((0,Be.Z)({},this.layerAttributeConfigCache[l]),c)}},{key:"clean",value:function(){this.sceneConfigCache={},this.layerConfigCache={}}}]),o}())||vg);function Uc(o,d,l,c){l&&Object.defineProperty(o,d,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(c):void 0})}function Fh(o,d,l,c,u){var m={};return Object.keys(c).forEach(function(E){m[E]=c[E]}),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=l.slice().reverse().reduce(function(E,M){return M(o,d,E)||E},m),u&&m.initializer!==void 0&&(m.value=m.initializer?m.initializer.call(u):void 0,m.initializer=void 0),m.initializer===void 0&&(Object.defineProperty(o,d,m),m=null),m}function H(){var o=new Oo(4);return Oo!=Float32Array&&(o[0]=0,o[1]=0,o[2]=0,o[3]=0),o}function F(o){var d=new glMatrix.ARRAY_TYPE(4);return d[0]=o[0],d[1]=o[1],d[2]=o[2],d[3]=o[3],d}function te(o,d,l,c){var u=new Oo(4);return u[0]=o,u[1]=d,u[2]=l,u[3]=c,u}function ve(o,d){return o[0]=d[0],o[1]=d[1],o[2]=d[2],o[3]=d[3],o}function We(o,d,l,c,u){return o[0]=d,o[1]=l,o[2]=c,o[3]=u,o}function bt(o,d,l){return o[0]=d[0]+l[0],o[1]=d[1]+l[1],o[2]=d[2]+l[2],o[3]=d[3]+l[3],o}function mt(o,d,l){return o[0]=d[0]-l[0],o[1]=d[1]-l[1],o[2]=d[2]-l[2],o[3]=d[3]-l[3],o}function Qt(o,d,l){return o[0]=d[0]*l[0],o[1]=d[1]*l[1],o[2]=d[2]*l[2],o[3]=d[3]*l[3],o}function En(o,d,l){return o[0]=d[0]/l[0],o[1]=d[1]/l[1],o[2]=d[2]/l[2],o[3]=d[3]/l[3],o}function Tr(o,d){return o[0]=Math.ceil(d[0]),o[1]=Math.ceil(d[1]),o[2]=Math.ceil(d[2]),o[3]=Math.ceil(d[3]),o}function li(o,d){return o[0]=Math.floor(d[0]),o[1]=Math.floor(d[1]),o[2]=Math.floor(d[2]),o[3]=Math.floor(d[3]),o}function Mi(o,d,l){return o[0]=Math.min(d[0],l[0]),o[1]=Math.min(d[1],l[1]),o[2]=Math.min(d[2],l[2]),o[3]=Math.min(d[3],l[3]),o}function Co(o,d,l){return o[0]=Math.max(d[0],l[0]),o[1]=Math.max(d[1],l[1]),o[2]=Math.max(d[2],l[2]),o[3]=Math.max(d[3],l[3]),o}function jo(o,d){return o[0]=Math.round(d[0]),o[1]=Math.round(d[1]),o[2]=Math.round(d[2]),o[3]=Math.round(d[3]),o}function bs(o,d,l){return o[0]=d[0]*l,o[1]=d[1]*l,o[2]=d[2]*l,o[3]=d[3]*l,o}function Ca(o,d,l,c){return o[0]=d[0]+l[0]*c,o[1]=d[1]+l[1]*c,o[2]=d[2]+l[2]*c,o[3]=d[3]+l[3]*c,o}function Oa(o,d){var l=d[0]-o[0],c=d[1]-o[1],u=d[2]-o[2],m=d[3]-o[3];return Math.hypot(l,c,u,m)}function sl(o,d){var l=d[0]-o[0],c=d[1]-o[1],u=d[2]-o[2],m=d[3]-o[3];return l*l+c*c+u*u+m*m}function jl(o){var d=o[0],l=o[1],c=o[2],u=o[3];return Math.hypot(d,l,c,u)}function _l(o){var d=o[0],l=o[1],c=o[2],u=o[3];return d*d+l*l+c*c+u*u}function Xl(o,d){return o[0]=-d[0],o[1]=-d[1],o[2]=-d[2],o[3]=-d[3],o}function Ku(o,d){return o[0]=1/d[0],o[1]=1/d[1],o[2]=1/d[2],o[3]=1/d[3],o}function ah(o,d){var l=d[0],c=d[1],u=d[2],m=d[3],E=l*l+c*c+u*u+m*m;return E>0&&(E=1/Math.sqrt(E)),o[0]=l*E,o[1]=c*E,o[2]=u*E,o[3]=m*E,o}function bd(o,d){return o[0]*d[0]+o[1]*d[1]+o[2]*d[2]+o[3]*d[3]}function zf(o,d,l,c){var u=l[0]*c[1]-l[1]*c[0],m=l[0]*c[2]-l[2]*c[0],E=l[0]*c[3]-l[3]*c[0],M=l[1]*c[2]-l[2]*c[1],Z=l[1]*c[3]-l[3]*c[1],ne=l[2]*c[3]-l[3]*c[2],Ce=d[0],Oe=d[1],Ct=d[2],Bt=d[3];return o[0]=Oe*ne-Ct*Z+Bt*M,o[1]=-(Ce*ne)+Ct*E-Bt*m,o[2]=Ce*Z-Oe*E+Bt*u,o[3]=-(Ce*M)+Oe*m-Ct*u,o}function Ed(o,d,l,c){var u=d[0],m=d[1],E=d[2],M=d[3];return o[0]=u+c*(l[0]-u),o[1]=m+c*(l[1]-m),o[2]=E+c*(l[2]-E),o[3]=M+c*(l[3]-M),o}function Dd(o,d){d=d||1;var l,c,u,m,E,M;do l=glMatrix.RANDOM()*2-1,c=glMatrix.RANDOM()*2-1,E=l*l+c*c;while(E>=1);do u=glMatrix.RANDOM()*2-1,m=glMatrix.RANDOM()*2-1,M=u*u+m*m;while(M>=1);var Z=Math.sqrt((1-E)/M);return o[0]=d*l,o[1]=d*c,o[2]=d*u*Z,o[3]=d*m*Z,o}function Xh(o,d,l){var c=d[0],u=d[1],m=d[2],E=d[3];return o[0]=l[0]*c+l[4]*u+l[8]*m+l[12]*E,o[1]=l[1]*c+l[5]*u+l[9]*m+l[13]*E,o[2]=l[2]*c+l[6]*u+l[10]*m+l[14]*E,o[3]=l[3]*c+l[7]*u+l[11]*m+l[15]*E,o}function gf(o,d,l){var c=d[0],u=d[1],m=d[2],E=l[0],M=l[1],Z=l[2],ne=l[3],Ce=ne*c+M*m-Z*u,Oe=ne*u+Z*c-E*m,Ct=ne*m+E*u-M*c,Bt=-E*c-M*u-Z*m;return o[0]=Ce*ne+Bt*-E+Oe*-Z-Ct*-M,o[1]=Oe*ne+Bt*-M+Ct*-E-Ce*-Z,o[2]=Ct*ne+Bt*-Z+Ce*-M-Oe*-E,o[3]=d[3],o}function hd(o){return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}function Lh(o){return"vec4("+o[0]+", "+o[1]+", "+o[2]+", "+o[3]+")"}function ep(o,d){return o[0]===d[0]&&o[1]===d[1]&&o[2]===d[2]&&o[3]===d[3]}function bf(o,d){var l=o[0],c=o[1],u=o[2],m=o[3],E=d[0],M=d[1],Z=d[2],ne=d[3];return Math.abs(l-E)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(E))&&Math.abs(c-M)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(u-Z)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(Z))&&Math.abs(m-ne)<=glMatrix.EPSILON*Math.max(1,Math.abs(m),Math.abs(ne))}var Gp=null,wg=null,nm=null,d0=null,vv=null,f0=null,km=null,Wu=function(){var o=H();return function(d,l,c,u,m,E){var M,Z;for(l||(l=4),c||(c=0),u?Z=Math.min(u*l+c,d.length):Z=d.length,M=c;Mwn-1*Un||xo<0||Ds>Rn-1*Un||Ds<0)return!1;var aa=Oe({x:Math.floor(xo/d.pickBufferScale),y:Math.floor((Rn-(m+1)*Un)/d.pickBufferScale),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:d.pickingFBO});if(d.pickedColors=aa,aa[0]!==0||aa[1]!==0||aa[2]!==0){var fa=Bi(aa),Za=l.layerPickService.getFeatureById(fa);fa!==l.getCurrentPickId()&&L==="mousemove"&&(L="mouseenter");var gl={x:u,y:m,type:L,lngLat:E,featureId:fa,feature:Za,target:Z};Za&&(ne=!0,l.setCurrentPickId(fa),d.triggerHoverOnLayer(l,gl))}else{var tu={x:u,y:m,lngLat:E,type:l.getCurrentPickId()!==null&&L==="mousemove"?"mouseout":"un"+L,featureId:null,target:Z,feature:null};d.triggerHoverOnLayer(l,(0,ze.Z)((0,ze.Z)({},tu),{},{type:"unpick"})),d.triggerHoverOnLayer(l,tu),l.setCurrentPickId(null)}if(ui&&l.layerPickService.highlightPickedFeature(aa),oo&&L==="click"&&(aa==null?void 0:aa.toString())!==[0,0,0,0].toString()){var ku=Bi(aa);l.getCurrentSelectedId()===null||ku!==l.getCurrentSelectedId()?(l.layerPickService.selectFeature(aa),l.setCurrentSelectedId(ku)):(l.layerPickService.selectFeature(new Uint8Array([0,0,0,0])),l.setCurrentSelectedId(null))}return ne})}return(0,nt.Z)(o,[{key:"init",value:function(l){var c=this.rendererService,u=c.createTexture2D,m=c.createFramebuffer,E=c.getContainer,L=this.getContainerSize(E()),Z=L.width,ne=L.height;Z*=Un,ne*=Un,this.pickBufferScale=this.configService.getSceneConfig(l).pickBufferScale||1,this.pickingFBO=m({color:u({width:Math.round(Z/this.pickBufferScale),height:Math.round(ne/this.pickBufferScale),wrapS:Di.CLAMP_TO_EDGE,wrapT:Di.CLAMP_TO_EDGE})}),this.interactionService.on(Gp.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:function(){var d=(0,Pl.Z)(Fi().mark(function c(u,m,E){var L=this,Z,ne,xe;return Fi().wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:Z=this.rendererService,ne=Z.useFramebuffer,xe=Z.clear,this.resizePickingFBO(),ne(this.pickingFBO,function(){xe({framebuffer:L.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),u.hooks.beforePickingEncode.call(),u.renderModels({ispick:!0}),u.hooks.afterPickingEncode.call();var Bt=L.pickBox(u,m);E(Bt)});case 3:case"end":return wt.stop()}},c,this)}));function l(c,u,m){return d.apply(this,arguments)}return l}()},{key:"pickBox",value:function(l,c){var u=this,m=c.map(function(ku){var ju=ku<0?0:ku;return Math.floor(ju*Un/u.pickBufferScale)}),E=(0,Br.Z)(m,4),L=E[0],Z=E[1],ne=E[2],xe=E[3],Oe=this.rendererService,wt=Oe.readPixels,Bt=Oe.getContainer,wn=this.getContainerSize(Bt()),Rn=wn.width,Pr=wn.height;if(Rn*=Un,Pr*=Un,L>(Rn-1)*Un/this.pickBufferScale||ne<0||Z>(Pr-1)*Un/this.pickBufferScale||xe<0)return[];for(var ui=Math.min(Rn/this.pickBufferScale,ne)-L,oo=Math.min(Pr/this.pickBufferScale,xe)-Z,xo=wt({x:L,y:Math.floor(Pr/this.pickBufferScale-(xe+1)),width:ui,height:oo,data:new Uint8Array(ui*oo*4),framebuffer:this.pickingFBO}),Ds=[],aa={},fa=0;fa0&&arguments[0]!==void 0?arguments[0]:!0;(0,Ct.Z)(this,o),(0,Tn.Z)(this,"autoStart",void 0),(0,Tn.Z)(this,"startTime",0),(0,Tn.Z)(this,"oldTime",0),(0,Tn.Z)(this,"running",!1),(0,Tn.Z)(this,"elapsedTime",0),this.autoStart=d}return(0,nt.Z)(o,[{key:"start",value:function(){this.startTime=(typeof performance=="undefined"?Date:performance).now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}},{key:"stop",value:function(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}},{key:"getElapsedTime",value:function(){return this.getDelta(),this.elapsedTime}},{key:"getDelta",value:function(){var l=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var c=(typeof performance=="undefined"?Date:performance).now();l=(c-this.oldTime)/1e3,this.oldTime=c,this.elapsedTime+=l}return l}}]),o}(),M0,N_,B1,Zv,Fv,t1,w1,C1,by;function F_(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=Bv(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function Bv(o,d){if(o){if(typeof o=="string")return ab(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return ab(o,d)}}function ab(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l-1&&L.layerChildren.splice(Z,1)):(ne=this.layers.indexOf(E),ne>-1&&this.layers.splice(ne,1)),E.destroy(),this.reRender(),this.emit("layerChange",this.layers);case 4:case"end":return Oe.stop()}},m,this)}));function u(m,E){return c.apply(this,arguments)}return u}()},{key:"removeAllLayers",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){return Fi().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:this.destroy(),this.reRender();case 2:case"end":return L.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"setEnableRender",value:function(u){this.enableRender=u}},{key:"renderLayers",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E,L,Z,ne,xe,Oe;return Fi().wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:if(!(this.alreadyInRendering||!this.enableRender)){Bt.next=2;break}return Bt.abrupt("return");case 2:this.updateLayerRenderList(),E=this.debugService.generateRenderUid(),this.debugService.renderStart(E),this.alreadyInRendering=!0,this.clear(),this.renderService.beginFrame(),L=F_(this.layerList),Bt.prev=9,L.s();case 11:if((Z=L.n()).done){Bt.next=24;break}if(ne=Z.value,xe=ne.getLayerConfig(),Oe=xe.enableMask,ne.masks.filter(function(wn){return wn.inited}).length>0&&Oe&&this.renderMask(ne.masks),!ne.getLayerConfig().enableMultiPassRenderer){Bt.next=20;break}return Bt.next=18,ne.renderMultiPass();case 18:Bt.next=22;break;case 20:return Bt.next=22,ne.render();case 22:Bt.next=11;break;case 24:Bt.next=29;break;case 26:Bt.prev=26,Bt.t0=Bt.catch(9),L.e(Bt.t0);case 29:return Bt.prev=29,L.f(),Bt.finish(29);case 32:this.renderService.endFrame(),this.debugService.renderEnd(E),this.alreadyInRendering=!1;case 35:case"end":return Bt.stop()}},m,this,[[9,26,29,32]])}));function u(){return c.apply(this,arguments)}return u}()},{key:"renderMask",value:function(u){var m=0;this.renderService.clear({stencil:0,depth:1,framebuffer:null});var E=u.length>1?Fh.MULTIPLE:Fh.SINGLE,L=F_(u),Z;try{for(L.s();!(Z=L.n()).done;){var ne=Z.value;ne.render({isStencil:!0,stencilType:E,stencilIndex:m++})}}catch(xe){L.e(xe)}finally{L.f()}}},{key:"beforeRenderData",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(E){var L;return Fi().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.next=2,E.hooks.beforeRenderData.promise();case 2:L=ne.sent,L&&this.renderLayers();case 4:case"end":return ne.stop()}},m,this)}));function u(m){return c.apply(this,arguments)}return u}()},{key:"renderTileLayerMask",value:function(u){var m=0,E=u.getLayerConfig(),L=E.enableMask,Z=L===void 0?!0:L,ne=u.tileMask?1:0,xe=u.masks.filter(function(Rn){return Rn.inited});ne=ne+(Z?xe.length:1);var Oe=ne>1?Fh.MULTIPLE:Fh.SINGLE;if((u.tileMask||xe.length&&Z)&&this.renderService.clear({stencil:0,depth:1,framebuffer:null}),xe.length&&Z){var wt=F_(xe),Bt;try{for(wt.s();!(Bt=wt.n()).done;){var wn=Bt.value;wn.render({isStencil:!0,stencilType:Oe,stencilIndex:m++})}}catch(Rn){wt.e(Rn)}finally{wt.f()}}u.tileMask&&u.tileMask.render({isStencil:!0,stencilType:Oe,stencilIndex:m++,stencilOperation:ss.OR})}},{key:"renderTileLayer",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(E){return Fi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(this.renderTileLayerMask(E),!E.getLayerConfig().enableMultiPassRenderer){Z.next=6;break}return Z.next=4,E.renderMultiPass();case 4:Z.next=8;break;case 6:return Z.next=8,E.render();case 8:case"end":return Z.stop()}},m,this)}));function u(m){return c.apply(this,arguments)}return u}()},{key:"updateLayerRenderList",value:function(){var u=this;this.layerList=[],this.layers.filter(function(m){return m.inited}).filter(function(m){return m.isVisible()}).sort(function(m,E){return m.zIndex-E.zIndex}).forEach(function(m){u.layerList.push(m)})}},{key:"destroy",value:function(){this.layers.forEach(function(u){u.destroy()}),this.layers=[],this.layerList=[],this.emit("layerChange",this.layers)}},{key:"startAnimate",value:function(){this.animateInstanceCount++===0&&(this.clock.start(),this.runRender())}},{key:"stopAnimate",value:function(){--this.animateInstanceCount===0&&(this.stopRender(),this.clock.stop())}},{key:"getOESTextureFloat",value:function(){return this.renderService.extensionObject.OES_texture_float}},{key:"enableShaderPick",value:function(){this.shaderPicking=!0}},{key:"disableShaderPick",value:function(){this.shaderPicking=!1}},{key:"getShaderPickStat",value:function(){return this.shaderPicking}},{key:"clear",value:function(){var u=mi(this.mapService.bgColor);this.renderService.clear({color:u,depth:1,stencil:0,framebuffer:null})}},{key:"runRender",value:function(){this.renderLayers(),this.layerRenderID=window.requestAnimationFrame(this.runRender.bind(this))}},{key:"stopRender",value:function(){window.cancelAnimationFrame(this.layerRenderID)}}]),l}(uc.EventEmitter),w1=zd(t1.prototype,"renderService",[N_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C1=zd(t1.prototype,"mapService",[B1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),by=zd(t1.prototype,"debugService",[Zv],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),t1))||Fv),dm=_(33649),Hb=fs.isNil,nC=function(){function o(d){var l=this;(0,Ct.Z)(this,o),(0,Tn.Z)(this,"name",void 0),(0,Tn.Z)(this,"type",void 0),(0,Tn.Z)(this,"scale",void 0),(0,Tn.Z)(this,"descriptor",void 0),(0,Tn.Z)(this,"featureBufferLayout",[]),(0,Tn.Z)(this,"needRescale",!1),(0,Tn.Z)(this,"needRemapping",!1),(0,Tn.Z)(this,"needRegenerateVertices",!1),(0,Tn.Z)(this,"featureRange",{startIndex:0,endIndex:1/0}),(0,Tn.Z)(this,"vertexAttribute",void 0),(0,Tn.Z)(this,"defaultCallback",function(c){if(c.length===0){var u;return((u=l.scale)===null||u===void 0?void 0:u.defaultValues)||[]}return c.map(function(m,E){var L,Z=(L=l.scale)===null||L===void 0?void 0:L.scalers[E].func,ne=Z(m);return ne})}),this.setProps(d)}return(0,nt.Z)(o,[{key:"setProps",value:function(l){Object.assign(this,l)}},{key:"mapping",value:function(l){var c;if((c=this.scale)!==null&&c!==void 0&&c.callback){var u,m=(u=this.scale)===null||u===void 0?void 0:u.callback.apply(u,(0,_n.Z)(l));if(!Hb(m))return[m]}return this.defaultCallback(l)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}]),o}(),ub=["buffer","update","name"],l2=["buffer","update","name"],qy,u2,cb,db,hb,Q2,c2=(qy={},(0,Tn.Z)(qy,Di.FLOAT,4),(0,Tn.Z)(qy,Di.UNSIGNED_BYTE,1),(0,Tn.Z)(qy,Di.UNSIGNED_SHORT,2),qy),UE=(u2=(0,ts.b2)(),cb=(0,ts.f3)(Ls.IRendererService),u2(db=(hb=function(){function o(){(0,Ct.Z)(this,o),(0,Tn.Z)(this,"attributesAndIndices",void 0),Vc(this,"rendererService",Q2,this),(0,Tn.Z)(this,"attributes",[]),(0,Tn.Z)(this,"triangulation",void 0),(0,Tn.Z)(this,"featureLayout",{sizePerElement:0,elements:[]})}return(0,nt.Z)(o,[{key:"registerStyleAttribute",value:function(l){var c=this.getLayerStyleAttribute(l.name||"");return c?c.setProps(l):(c=new nC(l),this.attributes.push(c)),c}},{key:"unRegisterStyleAttribute",value:function(l){var c=this.attributes.findIndex(function(u){return u.name===l});c>-1&&this.attributes.splice(c,1)}},{key:"updateScaleAttribute",value:function(l){this.attributes.forEach(function(c){var u,m=c.name,E=(u=c.scale)===null||u===void 0?void 0:u.field;(l[m]||E&&l[E])&&(c.needRescale=!0,c.needRemapping=!0,c.needRegenerateVertices=!0)})}},{key:"updateStyleAttribute",value:function(l,c,u){var m=this.getLayerStyleAttribute(l);m||(m=this.registerStyleAttribute((0,ze.Z)((0,ze.Z)({},c),{},{name:l})));var E=c.scale;E&&m&&(m.scale=E,m.needRescale=!0,m.needRemapping=!0,m.needRegenerateVertices=!0,u&&u.featureRange&&(m.featureRange=u.featureRange))}},{key:"getLayerStyleAttributes",value:function(){return this.attributes}},{key:"getLayerStyleAttribute",value:function(l){return this.attributes.find(function(c){return c.name===l})}},{key:"getLayerAttributeScale",value:function(l){var c,u=this.getLayerStyleAttribute(l),m=u==null||(c=u.scale)===null||c===void 0?void 0:c.scalers;return m&&m[0]?m[0].func:null}},{key:"updateAttributeByFeatureRange",value:function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,m=arguments.length>3?arguments[3]:void 0,E=arguments.length>4?arguments[4]:void 0,L=this.attributes.find(function(aa){return aa.name===l});if(L&&L.descriptor){var Z=L.descriptor,ne=Z.update,xe=Z.buffer,Oe=Z.size,wt=Oe===void 0?0:Oe,Bt=c2[xe.type||Di.FLOAT];if(ne){var wn=this.featureLayout,Rn=wn.elements,Pr=wn.sizePerElement,ui=Rn.slice(u,m);if(!ui.length)return;var oo=ui[0].offset,xo=oo*wt*Bt,Ds=ui.map(function(aa,fa){for(var Za=aa.featureIdx,gl=aa.vertices,tu=aa.normals,ku=gl.length/Pr,ju=[],Xc=0;Xc0&&m[m.length-1])&&(ne[0]===6||ne[0]===2)){l=0;continue}if(ne[0]===3&&(!m||ne[1]>m[0]&&ne[1]0)&&!(u=c.next()).done;)m.push(u.value)}catch(L){E={error:L}}finally{try{u&&!u.done&&(l=c.return)&&l.call(c)}finally{if(E)throw E.error}}return m}function Oy(o,d,l){if(l||arguments.length===2)for(var c=0,u=d.length,m;c=0&&c.length%1===0}o.exports=d.default})(ry,ry.exports);var h1={},pb={exports:{}},f1={exports:{}};(function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=function(l){return function(){for(var c=[],u=arguments.length;u--;)c[u]=arguments[u];var m=c.pop();return l.call(this,c,m)}},o.exports=d.default})(f1,f1.exports);var $1={};Object.defineProperty($1,"__esModule",{value:!0}),$1.fallback=tw,$1.wrap=h2;var ew=$1.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,p1=$1.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,d2=$1.hasNextTick=typeof U1=="object"&&typeof U1.nextTick=="function";function tw(o){setTimeout(o,0)}function h2(o){return function(d){for(var l=[],c=arguments.length-1;c-- >0;)l[c]=arguments[c+1];return o(function(){return d.apply(void 0,l)})}}var Gb;ew?Gb=queueMicrotask:p1?Gb=setImmediate:d2?Gb=U1.nextTick:Gb=tw,$1.default=h2(Gb),function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=Z;var l=f1.exports,c=L(l),u=$1,m=L(u),E=h1;function L(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}function Z(Oe){return(0,E.isAsync)(Oe)?function(){for(var wt=[],Bt=arguments.length;Bt--;)wt[Bt]=arguments[Bt];var wn=wt.pop(),Rn=Oe.apply(this,wt);return ne(Rn,wn)}:(0,c.default)(function(wt,Bt){var wn;try{wn=Oe.apply(this,wt)}catch(Rn){return Bt(Rn)}if(wn&&typeof wn.then=="function")return ne(wn,Bt);Bt(null,wn)})}function ne(Oe,wt){return Oe.then(function(Bt){xe(wt,null,Bt)},function(Bt){xe(wt,Bt&&Bt.message?Bt:new Error(Bt))})}function xe(Oe,wt,Bt){try{Oe(wt,Bt)}catch(wn){(0,m.default)(function(Rn){throw Rn},wn)}}o.exports=d.default}(pb,pb.exports),Object.defineProperty(h1,"__esModule",{value:!0}),h1.isAsyncIterable=h1.isAsyncGenerator=h1.isAsync=void 0;var f2=pb.exports,p2=gS(f2);function gS(o){return o&&o.__esModule?o:{default:o}}function Lx(o){return o[Symbol.toStringTag]==="AsyncFunction"}function rC(o){return o[Symbol.toStringTag]==="AsyncGenerator"}function g2(o){return typeof o[Symbol.asyncIterator]=="function"}function $E(o){if(typeof o!="function")throw new Error("expected a function");return Lx(o)?(0,p2.default)(o):o}h1.default=$E,h1.isAsync=Lx,h1.isAsyncGenerator=rC,h1.isAsyncIterable=g2;var Jy={exports:{}};(function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=l;function l(c,u){if(u===void 0&&(u=c.length),!u)throw new Error("arity is undefined");function m(){for(var E=this,L=[],Z=arguments.length;Z--;)L[Z]=arguments[Z];return typeof L[u-1]=="function"?c.apply(this,L):new Promise(function(ne,xe){L[u-1]=function(Oe){for(var wt=[],Bt=arguments.length-1;Bt-- >0;)wt[Bt]=arguments[Bt+1];if(Oe)return xe(Oe);ne(wt.length>1?wt:wt[0])},c.apply(E,L)})}return m}o.exports=d.default})(Jy,Jy.exports),function(o,d){Object.defineProperty(d,"__esModule",{value:!0});var l=ry.exports,c=Z(l),u=h1,m=Z(u),E=Jy.exports,L=Z(E);function Z(ne){return ne&&ne.__esModule?ne:{default:ne}}d.default=(0,L.default)(function(ne,xe,Oe){var wt=(0,c.default)(xe)?[]:{};ne(xe,function(Bt,wn,Rn){(0,m.default)(Bt)(function(Pr){for(var ui,oo=[],xo=arguments.length-1;xo-- >0;)oo[xo]=arguments[xo+1];oo.length<2&&(ui=oo,oo=ui[0]),wt[wn]=oo,Rn(Pr)})},function(Bt){return Oe(Bt,wt)})},3),o.exports=d.default}(Ny,Ny.exports);var Qy={exports:{}},B_={exports:{}},gb={exports:{}},Kb={exports:{}};(function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=l;function l(c){function u(){for(var m=[],E=arguments.length;E--;)m[E]=arguments[E];if(c!==null){var L=c;c=null,L.apply(this,m)}}return Object.assign(u,c),u}o.exports=d.default})(Kb,Kb.exports);var Mx={exports:{}},m_={exports:{}};(function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=function(l){return l[Symbol.iterator]&&l[Symbol.iterator]()},o.exports=d.default})(m_,m_.exports),function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=xe;var l=ry.exports,c=E(l),u=m_.exports,m=E(u);function E(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}function L(Oe){var wt=-1,Bt=Oe.length;return function(){return++wt=L||wt||xe||(wt=!0,E.next().then(function(oo){var xo=oo.value,Ds=oo.done;if(!(Oe||xe)){if(wt=!1,Ds){xe=!0,Bt<=0&&ne(null);return}Bt++,Z(xo,wn,Pr),wn++,Rn()}}).catch(ui))}function Pr(oo,xo){if(Bt-=1,!Oe){if(oo)return ui(oo);if(oo===!1){xe=!0,Oe=!0;return}if(xo===c.default||xe&&Bt<=0)return xe=!0,ne(null);Rn()}}function ui(oo){Oe||(wt=!1,xe=!0,ne(oo))}Rn()}o.exports=d.default}(Rx,Rx.exports),function(o,d){Object.defineProperty(d,"__esModule",{value:!0});var l=Kb.exports,c=Bt(l),u=Mx.exports,m=Bt(u),E=e_.exports,L=Bt(E),Z=h1,ne=Rx.exports,xe=Bt(ne),Oe=Xb.exports,wt=Bt(Oe);function Bt(wn){return wn&&wn.__esModule?wn:{default:wn}}d.default=function(wn){return function(Rn,Pr,ui){if(ui=(0,c.default)(ui),wn<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!Rn)return ui(null);if((0,Z.isAsyncGenerator)(Rn))return(0,xe.default)(Rn,wn,Pr,ui);if((0,Z.isAsyncIterable)(Rn))return(0,xe.default)(Rn[Symbol.asyncIterator](),wn,Pr,ui);var oo=(0,m.default)(Rn),xo=!1,Ds=!1,aa=0,fa=!1;function Za(tu,ku){if(!Ds)if(aa-=1,tu)xo=!0,ui(tu);else if(tu===!1)xo=!0,Ds=!0;else{if(ku===wt.default||xo&&aa<=0)return xo=!0,ui(null);fa||gl()}}function gl(){for(fa=!0;aa0;)oo[xo]=arguments[xo+1];if(ui!==!1){if(ui||wn===wt.length)return Bt.apply(void 0,[ui].concat(oo));Rn(oo)}}Rn([])}d.default=(0,ne.default)(Oe),o.exports=d.default})(rw,rw.exports);var sC=fb(rw.exports),aC=function(){function o(){this.tasks=[]}return o.prototype.call=function(){return sC(this.tasks)},o.prototype.tap=function(d,l){this.tasks.length===0?this.tasks.push(function(c){var u=l();c(u?null:!1,u)}):this.tasks.push(function(c,u){var m=l.apply(void 0,Oy([],d1(c),!1));u(m?null:!1,d)})},o}(),mS=function(){function o(){this.tasks=[]}return o.prototype.call=function(){return z_(this.tasks)},o.prototype.tap=function(d,l){this.tasks.push(function(c){var u=l();c(u,d)})},o}(),vS=function(){function o(){this.args=[],this.tasks=[]}return o.prototype.promise=function(){for(var d=arguments,l=[],c=0;c1&&arguments[1]!==void 0?arguments[1]:!1,l={};return o=o.replace(Be,function(c,u,m){var E=m.split(":"),L=E[0].trim(),Z="";switch(E.length>1&&(Z=E[1].trim()),u){case"bool":Z=Z==="true";break;case"float":case"int":Z=Number(Z);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":Z?Z=Z.replace("[","").replace("]","").split(",").reduce(function(ne,xe){return ne.push(Number(xe.trim())),ne},[]):Z=new Array(ge(u)).fill(0);break;default:}return l[L]=Z,"".concat(d?"uniform ":"").concat(u," ").concat(L,`; -`)}),{content:o,uniforms:l}}function Tt(o){var d=Ye(o,!0),l=d.content,c=d.uniforms;return l=l.replace(/(\s*uniform\s*.*\s*){((?:\s*.*\s*)*?)};/g,function(u,m,E){E=E.trim().replace(/^.*$/gm,function(xe){return"uniform ".concat(xe)});var L=Ye(E),Z=L.content,ne=L.uniforms;return Object.assign(c,ne),"".concat(m,`{ + `,l.id="l7-scene-".concat(Om++),l.classList.add("l7-scene"),d.appendChild(l),l}return null}function My(o){var d,l=!0;if((o==null||(d=o.target)===null||d===void 0?void 0:d.target)instanceof HTMLElement)for(var c,u=o==null||(c=o.target)===null||c===void 0?void 0:c.target;u;){var m,E=Array.from(u.classList);if(E.includes("l7-marker")||E.includes("l7-popup")){l=!1;break}u=(m=u)===null||m===void 0?void 0:m.parentElement}return l}var Ai=function(o){return o[o.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",o[o.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",o[o.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",o[o.POINTS=0]="POINTS",o[o.LINES=1]="LINES",o[o.LINE_LOOP=2]="LINE_LOOP",o[o.LINE_STRIP=3]="LINE_STRIP",o[o.TRIANGLES=4]="TRIANGLES",o[o.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",o[o.TRIANGLE_FAN=6]="TRIANGLE_FAN",o[o.ZERO=0]="ZERO",o[o.ONE=1]="ONE",o[o.SRC_COLOR=768]="SRC_COLOR",o[o.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",o[o.SRC_ALPHA=770]="SRC_ALPHA",o[o.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",o[o.DST_ALPHA=772]="DST_ALPHA",o[o.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",o[o.DST_COLOR=774]="DST_COLOR",o[o.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",o[o.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",o[o.FUNC_ADD=32774]="FUNC_ADD",o[o.BLEND_EQUATION=32777]="BLEND_EQUATION",o[o.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",o[o.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",o[o.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",o[o.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",o[o.MAX_EXT=32776]="MAX_EXT",o[o.MIN_EXT=32775]="MIN_EXT",o[o.BLEND_DST_RGB=32968]="BLEND_DST_RGB",o[o.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",o[o.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",o[o.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",o[o.CONSTANT_COLOR=32769]="CONSTANT_COLOR",o[o.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",o[o.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",o[o.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",o[o.BLEND_COLOR=32773]="BLEND_COLOR",o[o.ARRAY_BUFFER=34962]="ARRAY_BUFFER",o[o.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",o[o.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",o[o.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",o[o.STREAM_DRAW=35040]="STREAM_DRAW",o[o.STATIC_DRAW=35044]="STATIC_DRAW",o[o.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",o[o.BUFFER_SIZE=34660]="BUFFER_SIZE",o[o.BUFFER_USAGE=34661]="BUFFER_USAGE",o[o.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",o[o.FRONT=1028]="FRONT",o[o.BACK=1029]="BACK",o[o.FRONT_AND_BACK=1032]="FRONT_AND_BACK",o[o.CULL_FACE=2884]="CULL_FACE",o[o.BLEND=3042]="BLEND",o[o.DITHER=3024]="DITHER",o[o.STENCIL_TEST=2960]="STENCIL_TEST",o[o.DEPTH_TEST=2929]="DEPTH_TEST",o[o.SCISSOR_TEST=3089]="SCISSOR_TEST",o[o.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",o[o.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",o[o.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",o[o.NO_ERROR=0]="NO_ERROR",o[o.INVALID_ENUM=1280]="INVALID_ENUM",o[o.INVALID_VALUE=1281]="INVALID_VALUE",o[o.INVALID_OPERATION=1282]="INVALID_OPERATION",o[o.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",o[o.CW=2304]="CW",o[o.CCW=2305]="CCW",o[o.LINE_WIDTH=2849]="LINE_WIDTH",o[o.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",o[o.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",o[o.CULL_FACE_MODE=2885]="CULL_FACE_MODE",o[o.FRONT_FACE=2886]="FRONT_FACE",o[o.DEPTH_RANGE=2928]="DEPTH_RANGE",o[o.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",o[o.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",o[o.DEPTH_FUNC=2932]="DEPTH_FUNC",o[o.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",o[o.STENCIL_FUNC=2962]="STENCIL_FUNC",o[o.STENCIL_FAIL=2964]="STENCIL_FAIL",o[o.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",o[o.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",o[o.STENCIL_REF=2967]="STENCIL_REF",o[o.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",o[o.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",o[o.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",o[o.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",o[o.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",o[o.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",o[o.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",o[o.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",o[o.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",o[o.VIEWPORT=2978]="VIEWPORT",o[o.SCISSOR_BOX=3088]="SCISSOR_BOX",o[o.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",o[o.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",o[o.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",o[o.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",o[o.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",o[o.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",o[o.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",o[o.RED_BITS=3410]="RED_BITS",o[o.GREEN_BITS=3411]="GREEN_BITS",o[o.BLUE_BITS=3412]="BLUE_BITS",o[o.ALPHA_BITS=3413]="ALPHA_BITS",o[o.DEPTH_BITS=3414]="DEPTH_BITS",o[o.STENCIL_BITS=3415]="STENCIL_BITS",o[o.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",o[o.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",o[o.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",o[o.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",o[o.SAMPLES=32937]="SAMPLES",o[o.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",o[o.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",o[o.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",o[o.DONT_CARE=4352]="DONT_CARE",o[o.FASTEST=4353]="FASTEST",o[o.NICEST=4354]="NICEST",o[o.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",o[o.BYTE=5120]="BYTE",o[o.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",o[o.SHORT=5122]="SHORT",o[o.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",o[o.INT=5124]="INT",o[o.UNSIGNED_INT=5125]="UNSIGNED_INT",o[o.FLOAT=5126]="FLOAT",o[o.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",o[o.ALPHA=6406]="ALPHA",o[o.RGB=6407]="RGB",o[o.RGBA=6408]="RGBA",o[o.LUMINANCE=6409]="LUMINANCE",o[o.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",o[o.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",o[o.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",o[o.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",o[o.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",o[o.VERTEX_SHADER=35633]="VERTEX_SHADER",o[o.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",o[o.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",o[o.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",o[o.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",o[o.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",o[o.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",o[o.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",o[o.SHADER_TYPE=35663]="SHADER_TYPE",o[o.DELETE_STATUS=35712]="DELETE_STATUS",o[o.LINK_STATUS=35714]="LINK_STATUS",o[o.VALIDATE_STATUS=35715]="VALIDATE_STATUS",o[o.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",o[o.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",o[o.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",o[o.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",o[o.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",o[o.NEVER=512]="NEVER",o[o.LESS=513]="LESS",o[o.EQUAL=514]="EQUAL",o[o.LEQUAL=515]="LEQUAL",o[o.GREATER=516]="GREATER",o[o.NOTEQUAL=517]="NOTEQUAL",o[o.GEQUAL=518]="GEQUAL",o[o.ALWAYS=519]="ALWAYS",o[o.KEEP=7680]="KEEP",o[o.REPLACE=7681]="REPLACE",o[o.INCR=7682]="INCR",o[o.DECR=7683]="DECR",o[o.INVERT=5386]="INVERT",o[o.INCR_WRAP=34055]="INCR_WRAP",o[o.DECR_WRAP=34056]="DECR_WRAP",o[o.VENDOR=7936]="VENDOR",o[o.RENDERER=7937]="RENDERER",o[o.VERSION=7938]="VERSION",o[o.NEAREST=9728]="NEAREST",o[o.LINEAR=9729]="LINEAR",o[o.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",o[o.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",o[o.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",o[o.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",o[o.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",o[o.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",o[o.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",o[o.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",o[o.TEXTURE_2D=3553]="TEXTURE_2D",o[o.TEXTURE=5890]="TEXTURE",o[o.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",o[o.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",o[o.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",o[o.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",o[o.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",o[o.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",o[o.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",o[o.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",o[o.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",o[o.TEXTURE0=33984]="TEXTURE0",o[o.TEXTURE1=33985]="TEXTURE1",o[o.TEXTURE2=33986]="TEXTURE2",o[o.TEXTURE3=33987]="TEXTURE3",o[o.TEXTURE4=33988]="TEXTURE4",o[o.TEXTURE5=33989]="TEXTURE5",o[o.TEXTURE6=33990]="TEXTURE6",o[o.TEXTURE7=33991]="TEXTURE7",o[o.TEXTURE8=33992]="TEXTURE8",o[o.TEXTURE9=33993]="TEXTURE9",o[o.TEXTURE10=33994]="TEXTURE10",o[o.TEXTURE11=33995]="TEXTURE11",o[o.TEXTURE12=33996]="TEXTURE12",o[o.TEXTURE13=33997]="TEXTURE13",o[o.TEXTURE14=33998]="TEXTURE14",o[o.TEXTURE15=33999]="TEXTURE15",o[o.TEXTURE16=34e3]="TEXTURE16",o[o.TEXTURE17=34001]="TEXTURE17",o[o.TEXTURE18=34002]="TEXTURE18",o[o.TEXTURE19=34003]="TEXTURE19",o[o.TEXTURE20=34004]="TEXTURE20",o[o.TEXTURE21=34005]="TEXTURE21",o[o.TEXTURE22=34006]="TEXTURE22",o[o.TEXTURE23=34007]="TEXTURE23",o[o.TEXTURE24=34008]="TEXTURE24",o[o.TEXTURE25=34009]="TEXTURE25",o[o.TEXTURE26=34010]="TEXTURE26",o[o.TEXTURE27=34011]="TEXTURE27",o[o.TEXTURE28=34012]="TEXTURE28",o[o.TEXTURE29=34013]="TEXTURE29",o[o.TEXTURE30=34014]="TEXTURE30",o[o.TEXTURE31=34015]="TEXTURE31",o[o.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",o[o.REPEAT=10497]="REPEAT",o[o.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",o[o.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",o[o.FLOAT_VEC2=35664]="FLOAT_VEC2",o[o.FLOAT_VEC3=35665]="FLOAT_VEC3",o[o.FLOAT_VEC4=35666]="FLOAT_VEC4",o[o.INT_VEC2=35667]="INT_VEC2",o[o.INT_VEC3=35668]="INT_VEC3",o[o.INT_VEC4=35669]="INT_VEC4",o[o.BOOL=35670]="BOOL",o[o.BOOL_VEC2=35671]="BOOL_VEC2",o[o.BOOL_VEC3=35672]="BOOL_VEC3",o[o.BOOL_VEC4=35673]="BOOL_VEC4",o[o.FLOAT_MAT2=35674]="FLOAT_MAT2",o[o.FLOAT_MAT3=35675]="FLOAT_MAT3",o[o.FLOAT_MAT4=35676]="FLOAT_MAT4",o[o.SAMPLER_2D=35678]="SAMPLER_2D",o[o.SAMPLER_CUBE=35680]="SAMPLER_CUBE",o[o.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",o[o.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",o[o.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",o[o.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",o[o.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",o[o.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",o[o.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",o[o.COMPILE_STATUS=35713]="COMPILE_STATUS",o[o.LOW_FLOAT=36336]="LOW_FLOAT",o[o.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",o[o.HIGH_FLOAT=36338]="HIGH_FLOAT",o[o.LOW_INT=36339]="LOW_INT",o[o.MEDIUM_INT=36340]="MEDIUM_INT",o[o.HIGH_INT=36341]="HIGH_INT",o[o.FRAMEBUFFER=36160]="FRAMEBUFFER",o[o.RENDERBUFFER=36161]="RENDERBUFFER",o[o.RGBA4=32854]="RGBA4",o[o.RGB5_A1=32855]="RGB5_A1",o[o.RGB565=36194]="RGB565",o[o.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",o[o.STENCIL_INDEX=6401]="STENCIL_INDEX",o[o.STENCIL_INDEX8=36168]="STENCIL_INDEX8",o[o.DEPTH_STENCIL=34041]="DEPTH_STENCIL",o[o.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",o[o.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",o[o.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",o[o.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",o[o.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",o[o.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",o[o.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",o[o.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",o[o.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",o[o.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",o[o.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",o[o.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",o[o.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",o[o.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",o[o.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",o[o.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",o[o.NONE=0]="NONE",o[o.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",o[o.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",o[o.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",o[o.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",o[o.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",o[o.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",o[o.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",o[o.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",o[o.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",o[o.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",o[o.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",o[o.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",o[o.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",o[o.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",o}({}),f_,Jy,b1,_y,_v,D0,p_,x1,c1,Ry,$0,Q0,Qv,V0=(f_=(0,Go.b2)(),Jy=(0,Go.f3)(Zs.IMapService),b1=(0,Go.f3)(Zs.IRendererService),_y=(0,Go.f3)(Zs.IGlobalConfigService),_v=(0,Go.f3)(Zs.IInteractionService),D0=(0,Go.f3)(Zs.ILayerService),f_(p_=(x1=function(){function o(){var d=this;(0,wt.Z)(this,o),(0,Tn.Z)(this,"pickedColors",void 0),(0,Tn.Z)(this,"pickedTileLayers",[]),Uc(this,"mapService",c1,this),Uc(this,"rendererService",Ry,this),Uc(this,"configService",$0,this),Uc(this,"interactionService",Q0,this),Uc(this,"layerService",Qv,this),(0,Tn.Z)(this,"pickingFBO",void 0),(0,Tn.Z)(this,"width",0),(0,Tn.Z)(this,"height",0),(0,Tn.Z)(this,"alreadyInPicking",!1),(0,Tn.Z)(this,"pickBufferScale",1),(0,Tn.Z)(this,"pickFromPickingFBO",function(l,c){var u=c.x,m=c.y,E=c.lngLat,M=c.type,Z=c.target,ne=!1,Ce=d.rendererService,Oe=Ce.readPixels,Ct=Ce.getContainer,Bt=d.getContainerSize(Ct()),An=Bt.width,kn=Bt.height;An*=Un,kn*=Un;var Ir=l.getLayerConfig(),ui=Ir.enableHighlight,ao=Ir.enableSelect,wo=u*Un,Ds=m*Un;if(wo>An-1*Un||wo<0||Ds>kn-1*Un||Ds<0)return!1;var oa=Oe({x:Math.floor(wo/d.pickBufferScale),y:Math.floor((kn-(m+1)*Un)/d.pickBufferScale),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:d.pickingFBO});if(d.pickedColors=oa,oa[0]!==0||oa[1]!==0||oa[2]!==0){var fa=Bi(oa),Wa=l.layerPickService.getFeatureById(fa);fa!==l.getCurrentPickId()&&M==="mousemove"&&(M="mouseenter");var vl={x:u,y:m,type:M,lngLat:E,featureId:fa,feature:Wa,target:Z};Wa&&(ne=!0,l.setCurrentPickId(fa),d.triggerHoverOnLayer(l,vl))}else{var Ql={x:u,y:m,lngLat:E,type:l.getCurrentPickId()!==null&&M==="mousemove"?"mouseout":"un"+M,featureId:null,target:Z,feature:null};d.triggerHoverOnLayer(l,(0,Be.Z)((0,Be.Z)({},Ql),{},{type:"unpick"})),d.triggerHoverOnLayer(l,Ql),l.setCurrentPickId(null)}if(ui&&l.layerPickService.highlightPickedFeature(oa),ao&&M==="click"&&(oa==null?void 0:oa.toString())!==[0,0,0,0].toString()){var Ou=Bi(oa);l.getCurrentSelectedId()===null||Ou!==l.getCurrentSelectedId()?(l.layerPickService.selectFeature(oa),l.setCurrentSelectedId(Ou)):(l.layerPickService.selectFeature(new Uint8Array([0,0,0,0])),l.setCurrentSelectedId(null))}return ne})}return(0,nt.Z)(o,[{key:"init",value:function(l){var c=this.rendererService,u=c.createTexture2D,m=c.createFramebuffer,E=c.getContainer,M=this.getContainerSize(E()),Z=M.width,ne=M.height;Z*=Un,ne*=Un,this.pickBufferScale=this.configService.getSceneConfig(l).pickBufferScale||1,this.pickingFBO=m({color:u({width:Math.round(Z/this.pickBufferScale),height:Math.round(ne/this.pickBufferScale),wrapS:Ai.CLAMP_TO_EDGE,wrapT:Ai.CLAMP_TO_EDGE})}),this.interactionService.on(Xp.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:function(){var d=(0,Pl.Z)(Oi().mark(function c(u,m,E){var M=this,Z,ne,Ce;return Oi().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:Z=this.rendererService,ne=Z.useFramebuffer,Ce=Z.clear,this.resizePickingFBO(),ne(this.pickingFBO,function(){Ce({framebuffer:M.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),u.hooks.beforePickingEncode.call(),u.renderModels({ispick:!0}),u.hooks.afterPickingEncode.call();var Bt=M.pickBox(u,m);E(Bt)});case 3:case"end":return Ct.stop()}},c,this)}));function l(c,u,m){return d.apply(this,arguments)}return l}()},{key:"pickBox",value:function(l,c){var u=this,m=c.map(function(Ou){var Uu=Ou<0?0:Ou;return Math.floor(Uu*Un/u.pickBufferScale)}),E=(0,Or.Z)(m,4),M=E[0],Z=E[1],ne=E[2],Ce=E[3],Oe=this.rendererService,Ct=Oe.readPixels,Bt=Oe.getContainer,An=this.getContainerSize(Bt()),kn=An.width,Ir=An.height;if(kn*=Un,Ir*=Un,M>(kn-1)*Un/this.pickBufferScale||ne<0||Z>(Ir-1)*Un/this.pickBufferScale||Ce<0)return[];for(var ui=Math.min(kn/this.pickBufferScale,ne)-M,ao=Math.min(Ir/this.pickBufferScale,Ce)-Z,wo=Ct({x:M,y:Math.floor(Ir/this.pickBufferScale-(Ce+1)),width:ui,height:ao,data:new Uint8Array(ui*ao*4),framebuffer:this.pickingFBO}),Ds=[],oa={},fa=0;fa0&&arguments[0]!==void 0?arguments[0]:!0;(0,wt.Z)(this,o),(0,Tn.Z)(this,"autoStart",void 0),(0,Tn.Z)(this,"startTime",0),(0,Tn.Z)(this,"oldTime",0),(0,Tn.Z)(this,"running",!1),(0,Tn.Z)(this,"elapsedTime",0),this.autoStart=d}return(0,nt.Z)(o,[{key:"start",value:function(){this.startTime=(typeof performance=="undefined"?Date:performance).now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}},{key:"stop",value:function(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}},{key:"getElapsedTime",value:function(){return this.getDelta(),this.elapsedTime}},{key:"getDelta",value:function(){var l=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var c=(typeof performance=="undefined"?Date:performance).now();l=(c-this.oldTime)/1e3,this.oldTime=c,this.elapsedTime+=l}return l}}]),o}(),k0,F_,B1,Zv,Fv,e1,w1,C1,by;function B_(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=Bv(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function Bv(o,d){if(o){if(typeof o=="string")return lb(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return lb(o,d)}}function lb(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l-1&&M.layerChildren.splice(Z,1)):(ne=this.layers.indexOf(E),ne>-1&&this.layers.splice(ne,1)),E.destroy(),this.reRender(),this.emit("layerChange",this.layers);case 4:case"end":return Oe.stop()}},m,this)}));function u(m,E){return c.apply(this,arguments)}return u}()},{key:"removeAllLayers",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){return Oi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:this.destroy(),this.reRender();case 2:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"setEnableRender",value:function(u){this.enableRender=u}},{key:"renderLayers",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E,M,Z,ne,Ce,Oe;return Oi().wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:if(!(this.alreadyInRendering||!this.enableRender)){Bt.next=2;break}return Bt.abrupt("return");case 2:this.updateLayerRenderList(),E=this.debugService.generateRenderUid(),this.debugService.renderStart(E),this.alreadyInRendering=!0,this.clear(),this.renderService.beginFrame(),M=B_(this.layerList),Bt.prev=9,M.s();case 11:if((Z=M.n()).done){Bt.next=24;break}if(ne=Z.value,Ce=ne.getLayerConfig(),Oe=Ce.enableMask,ne.masks.filter(function(An){return An.inited}).length>0&&Oe&&this.renderMask(ne.masks),!ne.getLayerConfig().enableMultiPassRenderer){Bt.next=20;break}return Bt.next=18,ne.renderMultiPass();case 18:Bt.next=22;break;case 20:return Bt.next=22,ne.render();case 22:Bt.next=11;break;case 24:Bt.next=29;break;case 26:Bt.prev=26,Bt.t0=Bt.catch(9),M.e(Bt.t0);case 29:return Bt.prev=29,M.f(),Bt.finish(29);case 32:this.renderService.endFrame(),this.debugService.renderEnd(E),this.alreadyInRendering=!1;case 35:case"end":return Bt.stop()}},m,this,[[9,26,29,32]])}));function u(){return c.apply(this,arguments)}return u}()},{key:"renderMask",value:function(u){var m=0;this.renderService.clear({stencil:0,depth:1,framebuffer:null});var E=u.length>1?Fd.MULTIPLE:Fd.SINGLE,M=B_(u),Z;try{for(M.s();!(Z=M.n()).done;){var ne=Z.value;ne.render({isStencil:!0,stencilType:E,stencilIndex:m++})}}catch(Ce){M.e(Ce)}finally{M.f()}}},{key:"beforeRenderData",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(E){var M;return Oi().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.next=2,E.hooks.beforeRenderData.promise();case 2:M=ne.sent,M&&this.renderLayers();case 4:case"end":return ne.stop()}},m,this)}));function u(m){return c.apply(this,arguments)}return u}()},{key:"renderTileLayerMask",value:function(u){var m=0,E=u.getLayerConfig(),M=E.enableMask,Z=M===void 0?!0:M,ne=u.tileMask?1:0,Ce=u.masks.filter(function(kn){return kn.inited});ne=ne+(Z?Ce.length:1);var Oe=ne>1?Fd.MULTIPLE:Fd.SINGLE;if((u.tileMask||Ce.length&&Z)&&this.renderService.clear({stencil:0,depth:1,framebuffer:null}),Ce.length&&Z){var Ct=B_(Ce),Bt;try{for(Ct.s();!(Bt=Ct.n()).done;){var An=Bt.value;An.render({isStencil:!0,stencilType:Oe,stencilIndex:m++})}}catch(kn){Ct.e(kn)}finally{Ct.f()}}u.tileMask&&u.tileMask.render({isStencil:!0,stencilType:Oe,stencilIndex:m++,stencilOperation:as.OR})}},{key:"renderTileLayer",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(E){return Oi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(this.renderTileLayerMask(E),!E.getLayerConfig().enableMultiPassRenderer){Z.next=6;break}return Z.next=4,E.renderMultiPass();case 4:Z.next=8;break;case 6:return Z.next=8,E.render();case 8:case"end":return Z.stop()}},m,this)}));function u(m){return c.apply(this,arguments)}return u}()},{key:"updateLayerRenderList",value:function(){var u=this;this.layerList=[],this.layers.filter(function(m){return m.inited}).filter(function(m){return m.isVisible()}).sort(function(m,E){return m.zIndex-E.zIndex}).forEach(function(m){u.layerList.push(m)})}},{key:"destroy",value:function(){this.layers.forEach(function(u){u.destroy()}),this.layers=[],this.layerList=[],this.emit("layerChange",this.layers)}},{key:"startAnimate",value:function(){this.animateInstanceCount++===0&&(this.clock.start(),this.runRender())}},{key:"stopAnimate",value:function(){--this.animateInstanceCount===0&&(this.stopRender(),this.clock.stop())}},{key:"getOESTextureFloat",value:function(){return this.renderService.extensionObject.OES_texture_float}},{key:"enableShaderPick",value:function(){this.shaderPicking=!0}},{key:"disableShaderPick",value:function(){this.shaderPicking=!1}},{key:"getShaderPickStat",value:function(){return this.shaderPicking}},{key:"clear",value:function(){var u=mi(this.mapService.bgColor);this.renderService.clear({color:u,depth:1,stencil:0,framebuffer:null})}},{key:"runRender",value:function(){this.renderLayers(),this.layerRenderID=window.requestAnimationFrame(this.runRender.bind(this))}},{key:"stopRender",value:function(){window.cancelAnimationFrame(this.layerRenderID)}}]),l}(gc.EventEmitter),w1=Fh(e1.prototype,"renderService",[F_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C1=Fh(e1.prototype,"mapService",[B1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),by=Fh(e1.prototype,"debugService",[Zv],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),e1))||Fv),hm=y(91),Gb=fs.isNil,iC=function(){function o(d){var l=this;(0,wt.Z)(this,o),(0,Tn.Z)(this,"name",void 0),(0,Tn.Z)(this,"type",void 0),(0,Tn.Z)(this,"scale",void 0),(0,Tn.Z)(this,"descriptor",void 0),(0,Tn.Z)(this,"featureBufferLayout",[]),(0,Tn.Z)(this,"needRescale",!1),(0,Tn.Z)(this,"needRemapping",!1),(0,Tn.Z)(this,"needRegenerateVertices",!1),(0,Tn.Z)(this,"featureRange",{startIndex:0,endIndex:1/0}),(0,Tn.Z)(this,"vertexAttribute",void 0),(0,Tn.Z)(this,"defaultCallback",function(c){if(c.length===0){var u;return((u=l.scale)===null||u===void 0?void 0:u.defaultValues)||[]}return c.map(function(m,E){var M,Z=(M=l.scale)===null||M===void 0?void 0:M.scalers[E].func,ne=Z(m);return ne})}),this.setProps(d)}return(0,nt.Z)(o,[{key:"setProps",value:function(l){Object.assign(this,l)}},{key:"mapping",value:function(l){var c;if((c=this.scale)!==null&&c!==void 0&&c.callback){var u,m=(u=this.scale)===null||u===void 0?void 0:u.callback.apply(u,(0,bn.Z)(l));if(!Gb(m))return[m]}return this.defaultCallback(l)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}]),o}(),cb=["buffer","update","name"],a2=["buffer","update","name"],Qy,l2,hb,db,fb,ew,u2=(Qy={},(0,Tn.Z)(Qy,Ai.FLOAT,4),(0,Tn.Z)(Qy,Ai.UNSIGNED_BYTE,1),(0,Tn.Z)(Qy,Ai.UNSIGNED_SHORT,2),Qy),jE=(l2=(0,Go.b2)(),hb=(0,Go.f3)(Zs.IRendererService),l2(db=(fb=function(){function o(){(0,wt.Z)(this,o),(0,Tn.Z)(this,"attributesAndIndices",void 0),Uc(this,"rendererService",ew,this),(0,Tn.Z)(this,"attributes",[]),(0,Tn.Z)(this,"triangulation",void 0),(0,Tn.Z)(this,"featureLayout",{sizePerElement:0,elements:[]})}return(0,nt.Z)(o,[{key:"registerStyleAttribute",value:function(l){var c=this.getLayerStyleAttribute(l.name||"");return c?c.setProps(l):(c=new iC(l),this.attributes.push(c)),c}},{key:"unRegisterStyleAttribute",value:function(l){var c=this.attributes.findIndex(function(u){return u.name===l});c>-1&&this.attributes.splice(c,1)}},{key:"updateScaleAttribute",value:function(l){this.attributes.forEach(function(c){var u,m=c.name,E=(u=c.scale)===null||u===void 0?void 0:u.field;(l[m]||E&&l[E])&&(c.needRescale=!0,c.needRemapping=!0,c.needRegenerateVertices=!0)})}},{key:"updateStyleAttribute",value:function(l,c,u){var m=this.getLayerStyleAttribute(l);m||(m=this.registerStyleAttribute((0,Be.Z)((0,Be.Z)({},c),{},{name:l})));var E=c.scale;E&&m&&(m.scale=E,m.needRescale=!0,m.needRemapping=!0,m.needRegenerateVertices=!0,u&&u.featureRange&&(m.featureRange=u.featureRange))}},{key:"getLayerStyleAttributes",value:function(){return this.attributes}},{key:"getLayerStyleAttribute",value:function(l){return this.attributes.find(function(c){return c.name===l})}},{key:"getLayerAttributeScale",value:function(l){var c,u=this.getLayerStyleAttribute(l),m=u==null||(c=u.scale)===null||c===void 0?void 0:c.scalers;return m&&m[0]?m[0].func:null}},{key:"updateAttributeByFeatureRange",value:function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,m=arguments.length>3?arguments[3]:void 0,E=arguments.length>4?arguments[4]:void 0,M=this.attributes.find(function(oa){return oa.name===l});if(M&&M.descriptor){var Z=M.descriptor,ne=Z.update,Ce=Z.buffer,Oe=Z.size,Ct=Oe===void 0?0:Oe,Bt=u2[Ce.type||Ai.FLOAT];if(ne){var An=this.featureLayout,kn=An.elements,Ir=An.sizePerElement,ui=kn.slice(u,m);if(!ui.length)return;var ao=ui[0].offset,wo=ao*Ct*Bt,Ds=ui.map(function(oa,fa){for(var Wa=oa.featureIdx,vl=oa.vertices,Ql=oa.normals,Ou=vl.length/Ir,Uu=[],hh=0;hh0&&m[m.length-1])&&(ne[0]===6||ne[0]===2)){l=0;continue}if(ne[0]===3&&(!m||ne[1]>m[0]&&ne[1]0)&&!(u=c.next()).done;)m.push(u.value)}catch(M){E={error:M}}finally{try{u&&!u.done&&(l=c.return)&&l.call(c)}finally{if(E)throw E.error}}return m}function Oy(o,d,l){if(l||arguments.length===2)for(var c=0,u=d.length,m;c=0&&c.length%1===0}o.exports=d.default})(ry,ry.exports);var d1={},gb={exports:{}},f1={exports:{}};(function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=function(l){return function(){for(var c=[],u=arguments.length;u--;)c[u]=arguments[u];var m=c.pop();return l.call(this,c,m)}},o.exports=d.default})(f1,f1.exports);var $1={};Object.defineProperty($1,"__esModule",{value:!0}),$1.fallback=nw,$1.wrap=h2;var tw=$1.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,p1=$1.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,c2=$1.hasNextTick=typeof U1=="object"&&typeof U1.nextTick=="function";function nw(o){setTimeout(o,0)}function h2(o){return function(d){for(var l=[],c=arguments.length-1;c-- >0;)l[c]=arguments[c+1];return o(function(){return d.apply(void 0,l)})}}var Kb;tw?Kb=queueMicrotask:p1?Kb=setImmediate:c2?Kb=U1.nextTick:Kb=nw,$1.default=h2(Kb),function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=Z;var l=f1.exports,c=M(l),u=$1,m=M(u),E=d1;function M(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}function Z(Oe){return(0,E.isAsync)(Oe)?function(){for(var Ct=[],Bt=arguments.length;Bt--;)Ct[Bt]=arguments[Bt];var An=Ct.pop(),kn=Oe.apply(this,Ct);return ne(kn,An)}:(0,c.default)(function(Ct,Bt){var An;try{An=Oe.apply(this,Ct)}catch(kn){return Bt(kn)}if(An&&typeof An.then=="function")return ne(An,Bt);Bt(null,An)})}function ne(Oe,Ct){return Oe.then(function(Bt){Ce(Ct,null,Bt)},function(Bt){Ce(Ct,Bt&&Bt.message?Bt:new Error(Bt))})}function Ce(Oe,Ct,Bt){try{Oe(Ct,Bt)}catch(An){(0,m.default)(function(kn){throw kn},An)}}o.exports=d.default}(gb,gb.exports),Object.defineProperty(d1,"__esModule",{value:!0}),d1.isAsyncIterable=d1.isAsyncGenerator=d1.isAsync=void 0;var d2=gb.exports,f2=gS(d2);function gS(o){return o&&o.__esModule?o:{default:o}}function Px(o){return o[Symbol.toStringTag]==="AsyncFunction"}function oC(o){return o[Symbol.toStringTag]==="AsyncGenerator"}function p2(o){return typeof o[Symbol.asyncIterator]=="function"}function WE(o){if(typeof o!="function")throw new Error("expected a function");return Px(o)?(0,f2.default)(o):o}d1.default=WE,d1.isAsync=Px,d1.isAsyncGenerator=oC,d1.isAsyncIterable=p2;var e_={exports:{}};(function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=l;function l(c,u){if(u===void 0&&(u=c.length),!u)throw new Error("arity is undefined");function m(){for(var E=this,M=[],Z=arguments.length;Z--;)M[Z]=arguments[Z];return typeof M[u-1]=="function"?c.apply(this,M):new Promise(function(ne,Ce){M[u-1]=function(Oe){for(var Ct=[],Bt=arguments.length-1;Bt-- >0;)Ct[Bt]=arguments[Bt+1];if(Oe)return Ce(Oe);ne(Ct.length>1?Ct:Ct[0])},c.apply(E,M)})}return m}o.exports=d.default})(e_,e_.exports),function(o,d){Object.defineProperty(d,"__esModule",{value:!0});var l=ry.exports,c=Z(l),u=d1,m=Z(u),E=e_.exports,M=Z(E);function Z(ne){return ne&&ne.__esModule?ne:{default:ne}}d.default=(0,M.default)(function(ne,Ce,Oe){var Ct=(0,c.default)(Ce)?[]:{};ne(Ce,function(Bt,An,kn){(0,m.default)(Bt)(function(Ir){for(var ui,ao=[],wo=arguments.length-1;wo-- >0;)ao[wo]=arguments[wo+1];ao.length<2&&(ui=ao,ao=ui[0]),Ct[An]=ao,kn(Ir)})},function(Bt){return Oe(Bt,Ct)})},3),o.exports=d.default}(Ny,Ny.exports);var t_={exports:{}},z_={exports:{}},mb={exports:{}},Xb={exports:{}};(function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=l;function l(c){function u(){for(var m=[],E=arguments.length;E--;)m[E]=arguments[E];if(c!==null){var M=c;c=null,M.apply(this,m)}}return Object.assign(u,c),u}o.exports=d.default})(Xb,Xb.exports);var Lx={exports:{}},v_={exports:{}};(function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=function(l){return l[Symbol.iterator]&&l[Symbol.iterator]()},o.exports=d.default})(v_,v_.exports),function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=Ce;var l=ry.exports,c=E(l),u=v_.exports,m=E(u);function E(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}function M(Oe){var Ct=-1,Bt=Oe.length;return function(){return++Ct=M||Ct||Ce||(Ct=!0,E.next().then(function(ao){var wo=ao.value,Ds=ao.done;if(!(Oe||Ce)){if(Ct=!1,Ds){Ce=!0,Bt<=0&&ne(null);return}Bt++,Z(wo,An,Ir),An++,kn()}}).catch(ui))}function Ir(ao,wo){if(Bt-=1,!Oe){if(ao)return ui(ao);if(ao===!1){Ce=!0,Oe=!0;return}if(wo===c.default||Ce&&Bt<=0)return Ce=!0,ne(null);kn()}}function ui(ao){Oe||(Ct=!1,Ce=!0,ne(ao))}kn()}o.exports=d.default}(Mx,Mx.exports),function(o,d){Object.defineProperty(d,"__esModule",{value:!0});var l=Xb.exports,c=Bt(l),u=Lx.exports,m=Bt(u),E=n_.exports,M=Bt(E),Z=d1,ne=Mx.exports,Ce=Bt(ne),Oe=Yb.exports,Ct=Bt(Oe);function Bt(An){return An&&An.__esModule?An:{default:An}}d.default=function(An){return function(kn,Ir,ui){if(ui=(0,c.default)(ui),An<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!kn)return ui(null);if((0,Z.isAsyncGenerator)(kn))return(0,Ce.default)(kn,An,Ir,ui);if((0,Z.isAsyncIterable)(kn))return(0,Ce.default)(kn[Symbol.asyncIterator](),An,Ir,ui);var ao=(0,m.default)(kn),wo=!1,Ds=!1,oa=0,fa=!1;function Wa(Ql,Ou){if(!Ds)if(oa-=1,Ql)wo=!0,ui(Ql);else if(Ql===!1)wo=!0,Ds=!0;else{if(Ou===Ct.default||wo&&oa<=0)return wo=!0,ui(null);fa||vl()}}function vl(){for(fa=!0;oa0;)ao[wo]=arguments[wo+1];if(ui!==!1){if(ui||An===Ct.length)return Bt.apply(void 0,[ui].concat(ao));kn(ao)}}kn([])}d.default=(0,ne.default)(Oe),o.exports=d.default})(iw,iw.exports);var lC=pb(iw.exports),uC=function(){function o(){this.tasks=[]}return o.prototype.call=function(){return lC(this.tasks)},o.prototype.tap=function(d,l){this.tasks.length===0?this.tasks.push(function(c){var u=l();c(u?null:!1,u)}):this.tasks.push(function(c,u){var m=l.apply(void 0,Oy([],h1(c),!1));u(m?null:!1,d)})},o}(),mS=function(){function o(){this.tasks=[]}return o.prototype.call=function(){return U_(this.tasks)},o.prototype.tap=function(d,l){this.tasks.push(function(c){var u=l();c(u,d)})},o}(),vS=function(){function o(){this.args=[],this.tasks=[]}return o.prototype.promise=function(){for(var d=arguments,l=[],c=0;c1&&arguments[1]!==void 0?arguments[1]:!1,l={};return o=o.replace(ze,function(c,u,m){var E=m.split(":"),M=E[0].trim(),Z="";switch(E.length>1&&(Z=E[1].trim()),u){case"bool":Z=Z==="true";break;case"float":case"int":Z=Number(Z);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":Z?Z=Z.replace("[","").replace("]","").split(",").reduce(function(ne,Ce){return ne.push(Number(Ce.trim())),ne},[]):Z=new Array(me(u)).fill(0);break;default:}return l[M]=Z,"".concat(d?"uniform ":"").concat(u," ").concat(M,`; +`)}),{content:o,uniforms:l}}function Tt(o){var d=qe(o,!0),l=d.content,c=d.uniforms;return l=l.replace(/(\s*uniform\s*.*\s*){((?:\s*.*\s*)*?)};/g,function(u,m,E){E=E.trim().replace(/^.*$/gm,function(Ce){return"uniform ".concat(Ce)});var M=qe(E),Z=M.content,ne=M.uniforms;return Object.assign(c,ne),"".concat(m,`{ `).concat(Z,` -};`)}),{content:l,uniforms:c}}function Mt(o){var d={};return o.replace(Be,function(l,c,u){var m=u.trim();return d[m]?"":(d[m]=!0,"uniform ".concat(c," ").concat(m,`; -`))})}var un,vn,Wt=fs.uniq,Bn="#define PI 3.14159265359",Hn=`#define SHIFT_RIGHT17 1.0 / 131072.0 +};`)}),{content:l,uniforms:c}}function Pt(o){var d={};return o.replace(ze,function(l,c,u){var m=u.trim();return d[m]?"":(d[m]=!0,"uniform ".concat(c," ").concat(m,`; +`))})}var cn,_n,Wt=fs.uniq,zn="#define PI 3.14159265359",Zn=`#define SHIFT_RIGHT17 1.0 / 131072.0 #define SHIFT_RIGHT18 1.0 / 262144.0 #define SHIFT_RIGHT19 1.0 / 524288.0 #define SHIFT_RIGHT20 1.0 / 1048576.0 @@ -175,7 +121,7 @@ vec4 decode_color(vec2 encodedColor) { unpack_float(encodedColor[1]) / 255.0 ); } -`,pr=`layout(std140) uniform SceneUniforms { +`,mr=`layout(std140) uniform SceneUniforms { mat4 u_ViewMatrix; mat4 u_ProjectionMatrix; mat4 u_ViewProjectionMatrix; @@ -205,7 +151,7 @@ vec4 decode_color(vec2 encodedColor) { float u_shaderPick; float u_EnableSelect; float u_activeMix; -};`,na=`#define ambientRatio 0.5 +};`,ta=`#define ambientRatio 0.5 #define diffuseRatio 0.3 #define specularRatio 0.2 @@ -230,7 +176,7 @@ float calc_lighting(vec4 pos) { return lightWeight; } -`,ba=`// Blinn-Phong model +`,_a=`// Blinn-Phong model // apply lighting in vertex shader instead of fragment shader // @see https://learnopengl.com/Advanced-Lighting/Advanced-Lighting uniform float u_Ambient : 1.0; @@ -327,7 +273,7 @@ vec3 calc_lighting(vec3 position, vec3 normal, vec3 viewDir) { // } return weight; } -`,Zl=` +`,Wl=` in vec4 v_PickingResult; #pragma include "picking_uniforms" @@ -402,7 +348,7 @@ vec4 filterColorAlpha(vec4 color, float alpha) { } } -`,Xa=`layout(location = 2) in vec3 a_PickingColor; +`,Ga=`layout(location = 2) in vec3 a_PickingColor; out vec4 v_PickingResult; #pragma include "picking_uniforms" @@ -445,7 +391,7 @@ float setPickingOrder(float z) { bool selected = bool(v_PickingResult.a); return selected ? z + 1. : 0.; } -`,da=` +`,ca=` #define E 2.718281828459045 vec2 ProjectFlat(vec2 lnglat){ float maxs=85.0511287798; @@ -782,13 +728,13 @@ vec4 project_common_position_to_clipspace_v2(vec4 position) { return project_common_position_to_clipspace(position); } } -`,Fu=`vec2 rotate_matrix(vec2 v, float a) { +`,Bu=`vec2 rotate_matrix(vec2 v, float a) { float b = a / 180.0 * 3.1415926535897932384626433832795; float s = sin(b); float c = cos(b); mat2 m = mat2(c, s, -s, c); return m * v; -}`,Ru=`/** +}`,ku=`/** * 2D signed distance field functions * @see http://www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm */ @@ -867,19 +813,19 @@ float sdVesica(vec2 p, float r, float d) { #else precision mediump float; #endif -`,vc=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,Vl=/void\s+main\s*\([^)]*\)\s*\{\n?/,ig=/}\n?[^{}]*$/,tp=(un=(0,ts.b2)(),un(vn=function(){function o(){(0,Ct.Z)(this,o),(0,Tn.Z)(this,"moduleCache",{}),(0,Tn.Z)(this,"rawContentCache",{})}return(0,nt.Z)(o,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:Bn,fs:Bn}),this.registerModule("decode",{vs:Hn,fs:""}),this.registerModule("scene_uniforms",{vs:pr,fs:pr}),this.registerModule("picking_uniforms",{vs:$r,fs:$r}),this.registerModule("projection",{vs:cl,fs:cl}),this.registerModule("project",{vs:da,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:Ru}),this.registerModule("lighting",{vs:ba,fs:""}),this.registerModule("light",{vs:na,fs:""}),this.registerModule("picking",{vs:Xa,fs:Zl}),this.registerModule("rotation_2d",{vs:Fu,fs:""})}},{key:"registerModule",value:function(l,c){c.vs=c.vs.replace(/\r\n/g,` +`,vc=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,zl=/void\s+main\s*\([^)]*\)\s*\{\n?/,lg=/}\n?[^{}]*$/,np=(cn=(0,Go.b2)(),cn(_n=function(){function o(){(0,wt.Z)(this,o),(0,Tn.Z)(this,"moduleCache",{}),(0,Tn.Z)(this,"rawContentCache",{})}return(0,nt.Z)(o,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:zn,fs:zn}),this.registerModule("decode",{vs:Zn,fs:""}),this.registerModule("scene_uniforms",{vs:mr,fs:mr}),this.registerModule("picking_uniforms",{vs:$r,fs:$r}),this.registerModule("projection",{vs:cl,fs:cl}),this.registerModule("project",{vs:ca,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:ku}),this.registerModule("lighting",{vs:_a,fs:""}),this.registerModule("light",{vs:ta,fs:""}),this.registerModule("picking",{vs:Ga,fs:Wl}),this.registerModule("rotation_2d",{vs:Bu,fs:""})}},{key:"registerModule",value:function(l,c){c.vs=c.vs.replace(/\r\n/g,` `),c.fs=c.fs.replace(/\r\n/g,` -`);var u=c.vs,m=c.fs,E=c.uniforms,L=c.inject,Z=Tt(u),ne=Z.content,xe=Z.uniforms,Oe=Tt(m),wt=Oe.content,Bt=Oe.uniforms;this.rawContentCache[l]={fs:wt,inject:L,uniforms:(0,ze.Z)((0,ze.Z)((0,ze.Z)({},xe),Bt),E),vs:ne}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(l){var c=this,u=this.rawContentCache[l].vs,m=this.rawContentCache[l].fs,E=this.rawContentCache[l].inject,L={};E!=null&&E["vs:#decl"]&&(u=(E==null?void 0:E["vs:#decl"])+u,L=Tt(E==null?void 0:E["vs:#decl"]).uniforms),E!=null&&E["vs:#main-start"]&&(u=u.replace(Vl,function(ui){return ui+(E==null?void 0:E["vs:#main-start"])})),E!=null&&E["fs:#decl"]&&(m=(E==null?void 0:E["fs:#decl"])+m);var Z=this.processModule(u,[],"vs"),ne=Z.content,xe=Z.includeList,Oe=this.processModule(m,[],"fs"),wt=Oe.content,Bt=Oe.includeList,wn="",Rn=Wt(xe.concat(Bt).concat(l)).reduce(function(ui,oo){return(0,ze.Z)((0,ze.Z)({},ui),c.rawContentCache[oo].uniforms)},(0,ze.Z)({},L));oc.test(wt)||(wn=wn+tc),wn=wn+wt;var Pr="";return oc.test(ne)||(Pr=Pr+tc),Pr=Pr+ne,this.moduleCache[l]={fs:wn.trim(),uniforms:Rn,vs:Pr.trim()},this.moduleCache[l]}},{key:"processModule",value:function(l,c,u){var m=this,E=l.replace(vc,function(L,Z){var ne=Z.split(" "),xe=ne[0].replace(/"/g,"");if(c.indexOf(xe)>-1)return"";var Oe=m.rawContentCache[xe][u];c.push(xe);var wt=m.processModule(Oe,c,u),Bt=wt.content;return Bt});return{content:E,includeList:c}}},{key:"injectDefines",value:function(l){var c=Object.keys(l).reduce(function(u,m){return u+"#define ".concat(m.toUpperCase()," ").concat(l[m],`; +`);var u=c.vs,m=c.fs,E=c.uniforms,M=c.inject,Z=Tt(u),ne=Z.content,Ce=Z.uniforms,Oe=Tt(m),Ct=Oe.content,Bt=Oe.uniforms;this.rawContentCache[l]={fs:Ct,inject:M,uniforms:(0,Be.Z)((0,Be.Z)((0,Be.Z)({},Ce),Bt),E),vs:ne}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(l){var c=this,u=this.rawContentCache[l].vs,m=this.rawContentCache[l].fs,E=this.rawContentCache[l].inject,M={};E!=null&&E["vs:#decl"]&&(u=(E==null?void 0:E["vs:#decl"])+u,M=Tt(E==null?void 0:E["vs:#decl"]).uniforms),E!=null&&E["vs:#main-start"]&&(u=u.replace(zl,function(ui){return ui+(E==null?void 0:E["vs:#main-start"])})),E!=null&&E["fs:#decl"]&&(m=(E==null?void 0:E["fs:#decl"])+m);var Z=this.processModule(u,[],"vs"),ne=Z.content,Ce=Z.includeList,Oe=this.processModule(m,[],"fs"),Ct=Oe.content,Bt=Oe.includeList,An="",kn=Wt(Ce.concat(Bt).concat(l)).reduce(function(ui,ao){return(0,Be.Z)((0,Be.Z)({},ui),c.rawContentCache[ao].uniforms)},(0,Be.Z)({},M));oc.test(Ct)||(An=An+tc),An=An+Ct;var Ir="";return oc.test(ne)||(Ir=Ir+tc),Ir=Ir+ne,this.moduleCache[l]={fs:An.trim(),uniforms:kn,vs:Ir.trim()},this.moduleCache[l]}},{key:"processModule",value:function(l,c,u){var m=this,E=l.replace(vc,function(M,Z){var ne=Z.split(" "),Ce=ne[0].replace(/"/g,"");if(c.indexOf(Ce)>-1)return"";var Oe=m.rawContentCache[Ce][u];c.push(Ce);var Ct=m.processModule(Oe,c,u),Bt=Ct.content;return Bt});return{content:E,includeList:c}}},{key:"injectDefines",value:function(l){var c=Object.keys(l).reduce(function(u,m){return u+"#define ".concat(m.toUpperCase()," ").concat(l[m],`; `)},` -`);return c}}]),o}())||vn);function Mg(o,d){for(;!Object.prototype.hasOwnProperty.call(o,d)&&(o=(0,Rt.Z)(o),o!==null););return o}function mf(){return typeof Reflect!="undefined"&&Reflect.get?mf=Reflect.get.bind():mf=function(d,l,c){var u=Mg(d,l);if(u){var m=Object.getOwnPropertyDescriptor(u,l);return m.get?m.get.call(arguments.length<3?d:c):m.value}},mf.apply(this,arguments)}var Vh=function(o){return o.Normal="normal",o.PostProcessing="post-processing",o}({}),ag,Pp,Um=(ag=(0,ts.b2)(),ag(Pp=function(){function o(){(0,Ct.Z)(this,o),(0,Tn.Z)(this,"shaderModuleService",void 0),(0,Tn.Z)(this,"rendererService",void 0),(0,Tn.Z)(this,"cameraService",void 0),(0,Tn.Z)(this,"mapService",void 0),(0,Tn.Z)(this,"interactionService",void 0),(0,Tn.Z)(this,"layerService",void 0),(0,Tn.Z)(this,"config",void 0)}return(0,nt.Z)(o,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return Vh.Normal}},{key:"init",value:function(l,c){this.config=c,this.rendererService=l.getContainer().get(Ls.IRendererService),this.cameraService=l.getContainer().get(Ls.ICameraService),this.mapService=l.getContainer().get(Ls.IMapService),this.interactionService=l.getContainer().get(Ls.IInteractionService),this.layerService=l.getContainer().get(Ls.ILayerService),this.shaderModuleService=l.getContainer().get(Ls.IShaderModuleService)}},{key:"render",value:function(l){}}]),o}())||Pp),Hm,Ug;function Av(o){var d=zv();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function zv(){if(typeof Reflect=="undefined"||!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(o){return!1}}var e0=(Hm=(0,ts.b2)(),Hm(Ug=function(o){(0,lt.Z)(l,o);var d=Av(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(u,m){mf((0,Rt.Z)(l.prototype),"init",this).call(this,u,m)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}]),l}(Um))||Ug),m0,Gm,j0,By,oy;function sw(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=qb(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function qb(o,d){if(o){if(typeof o=="string")return Dg(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Dg(o,d)}}function Dg(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lui||fa<0||Za>oo||Za<0)){var gl;Rn(c.pickingFBO,function(){var tu;if(gl=wn({x:Math.round(fa),y:Math.round(oo-(ne+1)*Un),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:c.pickingFBO}),gl[0]!==0||gl[1]!==0||gl[2]!==0){var ku=Bi(gl),ju=c.layer.getSource().getFeatureById(ku),Xc={x:Z,y:ne,type:Oe,lngLat:xe,featureId:ku,feature:ju};ju&&(c.layer.setCurrentPickId(ku),c.triggerHoverOnLayer(Xc))}else{var Pd={x:Z,y:ne,lngLat:xe,type:c.layer.getCurrentPickId()===null?"un"+Oe:"mouseout",featureId:null,feature:null};c.triggerHoverOnLayer((0,ze.Z)((0,ze.Z)({},Pd),{},{type:"unpick"})),c.triggerHoverOnLayer(Pd),c.layer.setCurrentPickId(null)}Ds&&c.highlightPickedFeature(gl),aa&&Oe==="click"&&((tu=gl)===null||tu===void 0?void 0:tu.toString())!==[0,0,0,0].toString()&&c.selectFeature(gl)})}}}),c}return(0,nt.Z)(l,[{key:"getType",value:function(){return Vh.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(u,m){mf((0,Rt.Z)(l.prototype),"init",this).call(this,u,m),this.layer=u;var E=this.rendererService,L=E.createTexture2D,Z=E.createFramebuffer,ne=E.getViewportSize,xe=ne(),Oe=xe.width,wt=xe.height;this.pickingFBO=Z({color:L({width:Oe,height:wt,wrapS:Di.CLAMP_TO_EDGE,wrapT:Di.CLAMP_TO_EDGE})}),this.interactionService.on(Gp.Hover,this.pickFromPickingFBO),this.interactionService.on(Gp.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(Gp.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(u){var m=this;if(!this.alreadyInRendering){var E=this.rendererService,L=E.getViewportSize,Z=E.useFramebuffer,ne=E.clear,xe=L(),Oe=xe.width,wt=xe.height;this.alreadyInRendering=!0,(this.width!==Oe||this.height!==wt)&&(this.pickingFBO.resize({width:Oe,height:wt}),this.width=Oe,this.height=wt),Z(this.pickingFBO,function(){ne({framebuffer:m.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var Bt=m.layer.multiPassRenderer.getRenderFlag();m.layer.multiPassRenderer.setRenderFlag(!1),u.hooks.beforePickingEncode.call(),u.render(),u.hooks.afterPickingEncode.call(),m.layer.multiPassRenderer.setRenderFlag(Bt),m.alreadyInRendering=!1})}}},{key:"triggerHoverOnLayer",value:function(u){this.layer.emit(u.type,u)}},{key:"highlightPickedFeature",value:function(u){var m=(0,Br.Z)(u,3),E=m[0],L=m[1],Z=m[2];this.layer.hooks.beforeHighlight.call([E,L,Z]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(u){var m=(0,Br.Z)(u,3),E=m[0],L=m[1],Z=m[2];this.layer.hooks.beforeSelect.call([E,L,Z]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(u){var m=u.featureId,E=zr(m);this.selectFeature(new Uint8Array(E))}},{key:"highlightFeatureHandle",value:function(u){var m=u.featureId,E=zr(m);this.highlightPickedFeature(new Uint8Array(E))}}]),l}(Um))||v2),cC,p3,GE,dC,KE,XE=fs.camelCase,XI=fs.isNil,YI=fs.upperFirst,qI=`attribute vec2 a_Position; +`);return c}}]),o}())||_n);function kg(o,d){for(;!Object.prototype.hasOwnProperty.call(o,d)&&(o=(0,Mt.Z)(o),o!==null););return o}function vf(){return typeof Reflect!="undefined"&&Reflect.get?vf=Reflect.get.bind():vf=function(d,l,c){var u=kg(d,l);if(u){var m=Object.getOwnPropertyDescriptor(u,l);return m.get?m.get.call(arguments.length<3?d:c):m.value}},vf.apply(this,arguments)}var Vd=function(o){return o.Normal="normal",o.PostProcessing="post-processing",o}({}),hg,Lp,$m=(hg=(0,Go.b2)(),hg(Lp=function(){function o(){(0,wt.Z)(this,o),(0,Tn.Z)(this,"shaderModuleService",void 0),(0,Tn.Z)(this,"rendererService",void 0),(0,Tn.Z)(this,"cameraService",void 0),(0,Tn.Z)(this,"mapService",void 0),(0,Tn.Z)(this,"interactionService",void 0),(0,Tn.Z)(this,"layerService",void 0),(0,Tn.Z)(this,"config",void 0)}return(0,nt.Z)(o,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return Vd.Normal}},{key:"init",value:function(l,c){this.config=c,this.rendererService=l.getContainer().get(Zs.IRendererService),this.cameraService=l.getContainer().get(Zs.ICameraService),this.mapService=l.getContainer().get(Zs.IMapService),this.interactionService=l.getContainer().get(Zs.IInteractionService),this.layerService=l.getContainer().get(Zs.ILayerService),this.shaderModuleService=l.getContainer().get(Zs.IShaderModuleService)}},{key:"render",value:function(l){}}]),o}())||Lp),Km,Vg;function Tv(o){var d=zv();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function zv(){if(typeof Reflect=="undefined"||!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(o){return!1}}var e0=(Km=(0,Go.b2)(),Km(Vg=function(o){(0,lt.Z)(l,o);var d=Tv(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(u,m){vf((0,Mt.Z)(l.prototype),"init",this).call(this,u,m)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}]),l}($m))||Vg),g0,Xm,j0,By,oy;function aw(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=Jb(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function Jb(o,d){if(o){if(typeof o=="string")return Pg(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Pg(o,d)}}function Pg(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lui||fa<0||Wa>ao||Wa<0)){var vl;kn(c.pickingFBO,function(){var Ql;if(vl=An({x:Math.round(fa),y:Math.round(ao-(ne+1)*Un),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:c.pickingFBO}),vl[0]!==0||vl[1]!==0||vl[2]!==0){var Ou=Bi(vl),Uu=c.layer.getSource().getFeatureById(Ou),hh={x:Z,y:ne,type:Oe,lngLat:Ce,featureId:Ou,feature:Uu};Uu&&(c.layer.setCurrentPickId(Ou),c.triggerHoverOnLayer(hh))}else{var Ph={x:Z,y:ne,lngLat:Ce,type:c.layer.getCurrentPickId()===null?"un"+Oe:"mouseout",featureId:null,feature:null};c.triggerHoverOnLayer((0,Be.Z)((0,Be.Z)({},Ph),{},{type:"unpick"})),c.triggerHoverOnLayer(Ph),c.layer.setCurrentPickId(null)}Ds&&c.highlightPickedFeature(vl),oa&&Oe==="click"&&((Ql=vl)===null||Ql===void 0?void 0:Ql.toString())!==[0,0,0,0].toString()&&c.selectFeature(vl)})}}}),c}return(0,nt.Z)(l,[{key:"getType",value:function(){return Vd.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(u,m){vf((0,Mt.Z)(l.prototype),"init",this).call(this,u,m),this.layer=u;var E=this.rendererService,M=E.createTexture2D,Z=E.createFramebuffer,ne=E.getViewportSize,Ce=ne(),Oe=Ce.width,Ct=Ce.height;this.pickingFBO=Z({color:M({width:Oe,height:Ct,wrapS:Ai.CLAMP_TO_EDGE,wrapT:Ai.CLAMP_TO_EDGE})}),this.interactionService.on(Xp.Hover,this.pickFromPickingFBO),this.interactionService.on(Xp.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(Xp.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(u){var m=this;if(!this.alreadyInRendering){var E=this.rendererService,M=E.getViewportSize,Z=E.useFramebuffer,ne=E.clear,Ce=M(),Oe=Ce.width,Ct=Ce.height;this.alreadyInRendering=!0,(this.width!==Oe||this.height!==Ct)&&(this.pickingFBO.resize({width:Oe,height:Ct}),this.width=Oe,this.height=Ct),Z(this.pickingFBO,function(){ne({framebuffer:m.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var Bt=m.layer.multiPassRenderer.getRenderFlag();m.layer.multiPassRenderer.setRenderFlag(!1),u.hooks.beforePickingEncode.call(),u.render(),u.hooks.afterPickingEncode.call(),m.layer.multiPassRenderer.setRenderFlag(Bt),m.alreadyInRendering=!1})}}},{key:"triggerHoverOnLayer",value:function(u){this.layer.emit(u.type,u)}},{key:"highlightPickedFeature",value:function(u){var m=(0,Or.Z)(u,3),E=m[0],M=m[1],Z=m[2];this.layer.hooks.beforeHighlight.call([E,M,Z]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(u){var m=(0,Or.Z)(u,3),E=m[0],M=m[1],Z=m[2];this.layer.hooks.beforeSelect.call([E,M,Z]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(u){var m=u.featureId,E=Nr(m);this.selectFeature(new Uint8Array(E))}},{key:"highlightFeatureHandle",value:function(u){var m=u.featureId,E=Nr(m);this.highlightPickedFeature(new Uint8Array(E))}}]),l}($m))||m2),dC,m3,YE,fC,qE,JE=fs.camelCase,HI=fs.isNil,GI=fs.upperFirst,KI=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,yb=(cC=(0,ts.b2)(),p3=(0,ts.f3)(Ls.IShaderModuleService),cC(GE=(dC=function(){function o(){(0,Ct.Z)(this,o),Vc(this,"shaderModuleService",KE,this),(0,Tn.Z)(this,"rendererService",void 0),(0,Tn.Z)(this,"config",void 0),(0,Tn.Z)(this,"quad",qI),(0,Tn.Z)(this,"enabled",!0),(0,Tn.Z)(this,"renderToScreen",!1),(0,Tn.Z)(this,"model",void 0),(0,Tn.Z)(this,"name",void 0),(0,Tn.Z)(this,"optionsToUpdate",{})}return(0,nt.Z)(o,[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(l){this.name=l}},{key:"getType",value:function(){return Vh.PostProcessing}},{key:"init",value:function(l,c){this.config=c,this.rendererService=l.getContainer().get(Ls.IRendererService),this.shaderModuleService=l.getContainer().get(Ls.IShaderModuleService);var u=this.rendererService,m=u.createAttribute,E=u.createBuffer,L=u.createModel,Z=this.setupShaders(),ne=Z.vs,xe=Z.fs,Oe=Z.uniforms;this.model=L({vs:ne,fs:xe,attributes:{a_Position:m({buffer:E({data:[-4,-4,4,-4,0,4],type:Di.FLOAT}),size:2})},uniforms:(0,ze.Z)((0,ze.Z)({u_Texture:null},Oe),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:this.getName()==="copy"}})}},{key:"render",value:function(l,c){var u=this,m=l.multiPassRenderer.getPostProcessor(),E=this.rendererService,L=E.useFramebuffer,Z=E.getViewportSize,ne=E.clear,xe=Z(),Oe=xe.width,wt=xe.height;L(this.renderToScreen?null:m.getWriteFBO(),function(){ne({framebuffer:m.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var Bt=(0,ze.Z)({u_BloomFinal:0,u_Texture:m.getReadFBO(),u_ViewportSize:[Oe,wt]},u.convertOptionsToUniforms(u.optionsToUpdate));c&&(Bt.u_BloomFinal=1,Bt.u_Texture2=c),u.model.draw({uniforms:Bt})})}},{key:"isEnabled",value:function(){return this.enabled}},{key:"setEnabled",value:function(l){this.enabled=l}},{key:"setRenderToScreen",value:function(l){this.renderToScreen=l}},{key:"updateOptions",value:function(l){this.optionsToUpdate=(0,ze.Z)((0,ze.Z)({},this.optionsToUpdate),l)}},{key:"setupShaders",value:function(){throw new Error("Method not implemented.")}},{key:"convertOptionsToUniforms",value:function(l){var c={};return Object.keys(l).forEach(function(u){XI(l[u])||(c["u_".concat(YI(XE(u)))]=l[u])}),c}}]),o}(),KE=zd(dC.prototype,"shaderModuleService",[p3],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),dC))||GE),YE,g3;function qE(o){var d=JE();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function JE(){if(typeof Reflect=="undefined"||!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(o){return!1}}var JI=`varying vec2 v_UV; +}`,_b=(dC=(0,Go.b2)(),m3=(0,Go.f3)(Zs.IShaderModuleService),dC(YE=(fC=function(){function o(){(0,wt.Z)(this,o),Uc(this,"shaderModuleService",qE,this),(0,Tn.Z)(this,"rendererService",void 0),(0,Tn.Z)(this,"config",void 0),(0,Tn.Z)(this,"quad",KI),(0,Tn.Z)(this,"enabled",!0),(0,Tn.Z)(this,"renderToScreen",!1),(0,Tn.Z)(this,"model",void 0),(0,Tn.Z)(this,"name",void 0),(0,Tn.Z)(this,"optionsToUpdate",{})}return(0,nt.Z)(o,[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(l){this.name=l}},{key:"getType",value:function(){return Vd.PostProcessing}},{key:"init",value:function(l,c){this.config=c,this.rendererService=l.getContainer().get(Zs.IRendererService),this.shaderModuleService=l.getContainer().get(Zs.IShaderModuleService);var u=this.rendererService,m=u.createAttribute,E=u.createBuffer,M=u.createModel,Z=this.setupShaders(),ne=Z.vs,Ce=Z.fs,Oe=Z.uniforms;this.model=M({vs:ne,fs:Ce,attributes:{a_Position:m({buffer:E({data:[-4,-4,4,-4,0,4],type:Ai.FLOAT}),size:2})},uniforms:(0,Be.Z)((0,Be.Z)({u_Texture:null},Oe),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:this.getName()==="copy"}})}},{key:"render",value:function(l,c){var u=this,m=l.multiPassRenderer.getPostProcessor(),E=this.rendererService,M=E.useFramebuffer,Z=E.getViewportSize,ne=E.clear,Ce=Z(),Oe=Ce.width,Ct=Ce.height;M(this.renderToScreen?null:m.getWriteFBO(),function(){ne({framebuffer:m.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var Bt=(0,Be.Z)({u_BloomFinal:0,u_Texture:m.getReadFBO(),u_ViewportSize:[Oe,Ct]},u.convertOptionsToUniforms(u.optionsToUpdate));c&&(Bt.u_BloomFinal=1,Bt.u_Texture2=c),u.model.draw({uniforms:Bt})})}},{key:"isEnabled",value:function(){return this.enabled}},{key:"setEnabled",value:function(l){this.enabled=l}},{key:"setRenderToScreen",value:function(l){this.renderToScreen=l}},{key:"updateOptions",value:function(l){this.optionsToUpdate=(0,Be.Z)((0,Be.Z)({},this.optionsToUpdate),l)}},{key:"setupShaders",value:function(){throw new Error("Method not implemented.")}},{key:"convertOptionsToUniforms",value:function(l){var c={};return Object.keys(l).forEach(function(u){HI(l[u])||(c["u_".concat(GI(JE(u)))]=l[u])}),c}}]),o}(),qE=Fh(fC.prototype,"shaderModuleService",[m3],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fC))||YE),QE,v3;function eT(o){var d=tT();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function tT(){if(typeof Reflect=="undefined"||!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(o){return!1}}var XI=`varying vec2 v_UV; uniform float u_BloomFinal: 0.0; uniform sampler2D u_Texture; @@ -935,14 +881,14 @@ void main() { } else { gl_FragColor = inbloomColor; } -}`,QE=`attribute vec2 a_Position; +}`,nT=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,xS=fs.isNil,m3=(YE=(0,ts.b2)(),YE(g3=function(o){(0,lt.Z)(l,o);var d=qE(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:QE,fs:JI});var u=this.shaderModuleService.getModule("blur-pass"),m=u.vs,E=u.fs,L=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,xe=Z.height;return{vs:m,fs:E,uniforms:(0,ze.Z)((0,ze.Z)({},L),{},{u_ViewportSize:[ne,xe]})}}},{key:"convertOptionsToUniforms",value:function(u){var m={};return xS(u.bloomRadius)||(m.u_radius=u.bloomRadius),xS(u.bloomIntensity)||(m.u_intensity=u.bloomIntensity),xS(u.bloomBaseRadio)||(m.u_baseRadio=u.bloomBaseRadio),m}}]),l}(yb))||g3),U_,hC;function Qb(o){var d=eT();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function eT(){if(typeof Reflect=="undefined"||!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(o){return!1}}var wS=`varying vec2 v_UV; +}`,xS=fs.isNil,y3=(QE=(0,Go.b2)(),QE(v3=function(o){(0,lt.Z)(l,o);var d=eT(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:nT,fs:XI});var u=this.shaderModuleService.getModule("blur-pass"),m=u.vs,E=u.fs,M=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,Ce=Z.height;return{vs:m,fs:E,uniforms:(0,Be.Z)((0,Be.Z)({},M),{},{u_ViewportSize:[ne,Ce]})}}},{key:"convertOptionsToUniforms",value:function(u){var m={};return xS(u.bloomRadius)||(m.u_radius=u.bloomRadius),xS(u.bloomIntensity)||(m.u_intensity=u.bloomIntensity),xS(u.bloomBaseRadio)||(m.u_baseRadio=u.bloomBaseRadio),m}}]),l}(_b))||v3),$_,pC;function ex(o){var d=rT();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function rT(){if(typeof Reflect=="undefined"||!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(o){return!1}}var wS=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -964,14 +910,14 @@ vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { void main() { gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir); -}`,v3=`attribute vec2 a_Position; +}`,_3=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,tT=fs.isNil,zy=(U_=(0,ts.b2)(),U_(hC=function(o){(0,lt.Z)(l,o);var d=Qb(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:v3,fs:wS});var u=this.shaderModuleService.getModule("blur-pass"),m=u.vs,E=u.fs,L=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,xe=Z.height;return{vs:m,fs:E,uniforms:(0,ze.Z)((0,ze.Z)({},L),{},{u_ViewportSize:[ne,xe]})}}},{key:"convertOptionsToUniforms",value:function(u){var m={};return tT(u.blurRadius)||(m.u_BlurDir=[u.blurRadius,0]),m}}]),l}(yb))||hC),ex,lw;function QI(o){var d=CS();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function CS(){if(typeof Reflect=="undefined"||!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(o){return!1}}var y3=`varying vec2 v_UV; +}`,iT=fs.isNil,zy=($_=(0,Go.b2)(),$_(pC=function(o){(0,lt.Z)(l,o);var d=ex(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:_3,fs:wS});var u=this.shaderModuleService.getModule("blur-pass"),m=u.vs,E=u.fs,M=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,Ce=Z.height;return{vs:m,fs:E,uniforms:(0,Be.Z)((0,Be.Z)({},M),{},{u_ViewportSize:[ne,Ce]})}}},{key:"convertOptionsToUniforms",value:function(u){var m={};return iT(u.blurRadius)||(m.u_BlurDir=[u.blurRadius,0]),m}}]),l}(_b))||pC),tx,uw;function YI(o){var d=CS();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function CS(){if(typeof Reflect=="undefined"||!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(o){return!1}}var b3=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -1000,7 +946,7 @@ varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,_3=fs.isNil,Ox=(ex=(0,ts.b2)(),ex(lw=function(o){(0,lt.Z)(l,o);var d=QI(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:xy,fs:y3});var u=this.shaderModuleService.getModule("blur-pass"),m=u.vs,E=u.fs,L=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,xe=Z.height;return{vs:m,fs:E,uniforms:(0,ze.Z)((0,ze.Z)({},L),{},{u_ViewportSize:[ne,xe]})}}},{key:"convertOptionsToUniforms",value:function(u){var m={};return _3(u.blurRadius)||(m.u_BlurDir=[0,u.blurRadius]),m}}]),l}(yb))||lw),b3,t_;function nT(o){var d=uw();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function uw(){if(typeof Reflect=="undefined"||!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(o){return!1}}var x3=`varying vec2 v_UV; +}`,x3=fs.isNil,kx=(tx=(0,Go.b2)(),tx(uw=function(o){(0,lt.Z)(l,o);var d=YI(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:xy,fs:b3});var u=this.shaderModuleService.getModule("blur-pass"),m=u.vs,E=u.fs,M=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,Ce=Z.height;return{vs:m,fs:E,uniforms:(0,Be.Z)((0,Be.Z)({},M),{},{u_ViewportSize:[ne,Ce]})}}},{key:"convertOptionsToUniforms",value:function(u){var m={};return x3(u.blurRadius)||(m.u_BlurDir=[0,u.blurRadius]),m}}]),l}(_b))||uw),w3,r_;function oT(o){var d=cw();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function cw(){if(typeof Reflect=="undefined"||!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(o){return!1}}var C3=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -1043,27 +989,27 @@ vec4 colorHalftone_filterColor(vec4 color, vec2 texSize, vec2 texCoord) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = colorHalftone_filterColor(gl_FragColor, u_ViewportSize, v_UV); -}`,w3=`attribute vec2 a_Position; +}`,S3=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,rT=(b3=(0,ts.b2)(),b3(t_=function(o){(0,lt.Z)(l,o);var d=nT(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("colorhalftone-pass",{vs:w3,fs:x3});var u=this.shaderModuleService.getModule("colorhalftone-pass"),m=u.vs,E=u.fs,L=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,xe=Z.height;return{vs:m,fs:E,uniforms:(0,ze.Z)((0,ze.Z)({},L),{},{u_ViewportSize:[ne,xe]})}}}]),l}(yb))||t_),SS,C3;function fC(o){var d=iT();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function iT(){if(typeof Reflect=="undefined"||!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(o){return!1}}var S3=`varying vec2 v_UV; +}`,sT=(w3=(0,Go.b2)(),w3(r_=function(o){(0,lt.Z)(l,o);var d=oT(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("colorhalftone-pass",{vs:S3,fs:C3});var u=this.shaderModuleService.getModule("colorhalftone-pass"),m=u.vs,E=u.fs,M=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,Ce=Z.height;return{vs:m,fs:E,uniforms:(0,Be.Z)((0,Be.Z)({},M),{},{u_ViewportSize:[ne,Ce]})}}}]),l}(_b))||r_),SS,E3;function gC(o){var d=aT();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function aT(){if(typeof Reflect=="undefined"||!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(o){return!1}}var T3=`varying vec2 v_UV; uniform sampler2D u_Texture; void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); -}`,e4=`attribute vec2 a_Position; +}`,qI=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,t4=(SS=(0,ts.b2)(),SS(C3=function(o){(0,lt.Z)(l,o);var d=fC(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("copy-pass",{vs:e4,fs:S3}),this.shaderModuleService.getModule("copy-pass")}}]),l}(yb))||C3),E3,T3;function n4(o){var d=pC();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function pC(){if(typeof Reflect=="undefined"||!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(o){return!1}}var cw=`varying vec2 v_UV; +}`,JI=(SS=(0,Go.b2)(),SS(E3=function(o){(0,lt.Z)(l,o);var d=gC(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("copy-pass",{vs:qI,fs:T3}),this.shaderModuleService.getModule("copy-pass")}}]),l}(_b))||E3),A3,D3;function QI(o){var d=mC();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function mC(){if(typeof Reflect=="undefined"||!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(o){return!1}}var hw=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -1106,14 +1052,14 @@ vec4 hexagonalPixelate_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoor void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = hexagonalPixelate_sampleColor(u_Texture, u_ViewportSize, v_UV); -}`,r4=`attribute vec2 a_Position; +}`,e4=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,y2=(E3=(0,ts.b2)(),E3(T3=function(o){(0,lt.Z)(l,o);var d=n4(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("hexagonalpixelate-pass",{vs:r4,fs:cw});var u=this.shaderModuleService.getModule("hexagonalpixelate-pass"),m=u.vs,E=u.fs,L=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,xe=Z.height;return{vs:m,fs:E,uniforms:(0,ze.Z)((0,ze.Z)({},L),{},{u_ViewportSize:[ne,xe]})}}}]),l}(yb))||T3),W1,_2;function A3(o){var d=_b();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function _b(){if(typeof Reflect=="undefined"||!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(o){return!1}}var b2=`varying vec2 v_UV; +}`,v2=(A3=(0,Go.b2)(),A3(D3=function(o){(0,lt.Z)(l,o);var d=QI(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("hexagonalpixelate-pass",{vs:e4,fs:hw});var u=this.shaderModuleService.getModule("hexagonalpixelate-pass"),m=u.vs,E=u.fs,M=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,Ce=Z.height;return{vs:m,fs:E,uniforms:(0,Be.Z)((0,Be.Z)({},M),{},{u_ViewportSize:[ne,Ce]})}}}]),l}(_b))||D3),W1,y2;function I3(o){var d=bb();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function bb(){if(typeof Reflect=="undefined"||!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(o){return!1}}var _2=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -1146,14 +1092,14 @@ vec4 ink_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoord) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = ink_sampleColor(u_Texture, u_ViewportSize, v_UV); -}`,oT=`attribute vec2 a_Position; +}`,lT=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,gC=(W1=(0,ts.b2)(),W1(_2=function(o){(0,lt.Z)(l,o);var d=A3(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("ink-pass",{vs:oT,fs:b2});var u=this.shaderModuleService.getModule("ink-pass"),m=u.vs,E=u.fs,L=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,xe=Z.height;return{vs:m,fs:E,uniforms:(0,ze.Z)((0,ze.Z)({},L),{},{u_ViewportSize:[ne,xe]})}}}]),l}(yb))||_2),fo,fh;function D3(o){var d=i4();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function i4(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Nx=`varying vec2 v_UV; +}`,vC=(W1=(0,Go.b2)(),W1(y2=function(o){(0,lt.Z)(l,o);var d=I3(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("ink-pass",{vs:lT,fs:_2});var u=this.shaderModuleService.getModule("ink-pass"),m=u.vs,E=u.fs,M=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,Ce=Z.height;return{vs:m,fs:E,uniforms:(0,Be.Z)((0,Be.Z)({},M),{},{u_ViewportSize:[ne,Ce]})}}}]),l}(_b))||y2),po,fd;function P3(o){var d=t4();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function t4(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Ox=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform float u_Amount : 0.5; @@ -1181,14 +1127,14 @@ varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,af=(fo=(0,ts.b2)(),fo(fh=function(o){(0,lt.Z)(l,o);var d=D3(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("noise-pass",{vs:dw,fs:Nx}),this.shaderModuleService.getModule("noise-pass")}}]),l}(yb))||fh),I3,hw;function o4(o){var d=s4();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function s4(){if(typeof Reflect=="undefined"||!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(o){return!1}}var tx=`attribute vec2 a_Position; +}`,lf=(po=(0,Go.b2)(),po(fd=function(o){(0,lt.Z)(l,o);var d=P3(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("noise-pass",{vs:dw,fs:Ox}),this.shaderModuleService.getModule("noise-pass")}}]),l}(_b))||fd),L3,fw;function n4(o){var d=r4();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function r4(){if(typeof Reflect=="undefined"||!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(o){return!1}}var nx=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,a4=`varying vec2 v_UV; +}`,i4=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -1209,7 +1155,7 @@ vec4 sepia_filterColor(vec4 color) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = sepia_filterColor(gl_FragColor); -}`,P3=(I3=(0,ts.b2)(),I3(hw=function(o){(0,lt.Z)(l,o);var d=o4(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("sepia-pass",{vs:tx,fs:a4}),this.shaderModuleService.getModule("sepia-pass")}}]),l}(yb))||hw),sT,ES,$_,Uy,A1,wy,v_=(sT=(0,ts.b2)(),ES=(0,ts.f3)(Ls.IRendererService),$_=(0,ts.zY)(),sT(Uy=(A1=function(){function o(){(0,Ct.Z)(this,o),Vc(this,"rendererService",wy,this),(0,Tn.Z)(this,"passes",[]),(0,Tn.Z)(this,"readFBO",void 0),(0,Tn.Z)(this,"writeFBO",void 0)}return(0,nt.Z)(o,[{key:"getReadFBO",value:function(){return this.readFBO}},{key:"getWriteFBO",value:function(){return this.writeFBO}},{key:"getCurrentFBOTex",value:function(){var l=this.rendererService,c=l.getViewportSize,u=l.createTexture2D,m=c(),E=m.width,L=m.height;return u({x:0,y:0,width:E,height:L,copy:!0})}},{key:"getReadFBOTex",value:function(){var l=this,c=this.rendererService.useFramebuffer;return new Promise(function(u){c(l.readFBO,(0,Pl.Z)(Fi().mark(function m(){return Fi().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:u(l.getCurrentFBOTex());case 1:case"end":return L.stop()}},m)})))})}},{key:"renderBloomPass",value:function(){var d=(0,Pl.Z)(Fi().mark(function c(u,m){var E,L;return Fi().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.next=2,this.getReadFBOTex();case 2:E=ne.sent,L=0;case 4:if(!(L<4)){ne.next=11;break}return ne.next=7,m.render(u,E);case 7:this.swap(),L++,ne.next=4;break;case 11:case"end":return ne.stop()}},c,this)}));function l(c,u){return d.apply(this,arguments)}return l}()},{key:"render",value:function(){var d=(0,Pl.Z)(Fi().mark(function c(u){var m,E;return Fi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:m=0;case 1:if(!(m0;)l=l+c*(u%d),u=Math.floor(u/d),c=c/d;return l}var k3=1,cT=(aT=(0,ts.b2)(),lT=(0,ts.f3)(Ls.IShaderModuleService),aT(bb=(wv=function(o){(0,lt.Z)(l,o);var d=vC(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E=1&&(ne(this.copyRenderTarget,function(){m.outputModel.draw({uniforms:{u_Texture:m.outputRenderTarget}})}),ne(u.multiPassRenderer.getPostProcessor().getReadFBO(),function(){m.copyModel.draw({uniforms:{u_Texture:m.copyRenderTarget}})}),u.multiPassRenderer.getPostProcessor().render(u));var oo=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=oo,this.frame++,this.cameraService.clearJitterProjectionMatrix()}},{key:"isFinished",value:function(){return this.frame>=this.haltonSequence.length}},{key:"resetFrame",value:function(){this.frame=0}},{key:"stopAccumulating",value:function(){this.accumulatingId=0,window.clearTimeout(this.timer)}},{key:"createTriangleModel",value:function(u,m,E){this.shaderModuleService.registerModule(u,{vs:R3,fs:m});var L=this.shaderModuleService.getModule(u),Z=L.vs,ne=L.fs,xe=L.uniforms,Oe=this.rendererService,wt=Oe.createAttribute,Bt=Oe.createBuffer,wn=Oe.createModel;return wn((0,ze.Z)({vs:Z,fs:ne,attributes:{a_Position:wt({buffer:Bt({data:[-4,-4,4,-4,0,4],type:Di.FLOAT}),size:2})},uniforms:(0,ze.Z)({},xe),depth:{enable:!1},count:3},E))}}]),l}(Um),uT=zd(wv.prototype,"shaderModuleService",[lT],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wv))||bb),xb=new ts.W2;xb.bind(Ls.IGlobalConfigService).to(rf).inSingletonScope(),(0,ts.GW)((0,ts.b2)(),uc.EventEmitter),xb.bind(Ls.IEventEmitter).to(uc.EventEmitter);var dT=(0,Ma.Z)(xb,!1),A0=function(d){var l=dT.lazyInject(d);return function(c,u,m){l.call(this,c,u),m&&(m.initializer=function(){return c[u]})}},hT=function(d){var l=dT.lazyMultiInject(d);return function(c,u,m){l.call(this,c,u),m&&(m.initializer=function(){return c[u]})}},sy=xb,x2=0;function V_(){var o=new ts.W2;return o.parent=xb,o.bind(Ls.SceneID).toConstantValue("".concat(x2++)),o.bind(Ls.IShaderModuleService).to(tp).inSingletonScope(),o.bind(Ls.ILayerService).to(Px).inSingletonScope(),o.bind(Ls.IDebugService).to(Fg).inSingletonScope(),o.bind(Ls.ISceneService).to(oe).inSingletonScope(),o.bind(Ls.ICameraService).to(hi).inSingletonScope(),o.bind(Ls.ICoordinateSystemService).to(zg).inSingletonScope(),o.bind(Ls.IInteractionService).to(u1).inSingletonScope(),o.bind(Ls.IPickingService).to(V0).inSingletonScope(),o.bind(Ls.IControlService).to(Tc).inSingletonScope(),o.bind(Ls.IMarkerService).to(Sd).inSingletonScope(),o.bind(Ls.IIconService).to(Qm).inSingletonScope(),o.bind(Ls.IFontService).to(ym).inSingletonScope(),o.bind(Ls.IPopupService).to(Ip).inSingletonScope(),o.bind(Ls.INormalPass).to(e0).whenTargetNamed("clear"),o.bind(Ls.INormalPass).to(HE).whenTargetNamed("pixelPicking"),o.bind(Ls.INormalPass).to(M3).whenTargetNamed("render"),o.bind(Ls.INormalPass).to(cT).whenTargetNamed("taa"),o.bind(Ls.IFactoryNormalPass).toFactory(function(d){return function(l){return d.container.getNamed(Ls.INormalPass,l)}}),o.bind(Ls.IPostProcessingPass).to(t4).whenTargetNamed("copy"),o.bind(Ls.IPostProcessingPass).to(m3).whenTargetNamed("bloom"),o.bind(Ls.IPostProcessingPass).to(zy).whenTargetNamed("blurH"),o.bind(Ls.IPostProcessingPass).to(Ox).whenTargetNamed("blurV"),o.bind(Ls.IPostProcessingPass).to(af).whenTargetNamed("noise"),o.bind(Ls.IPostProcessingPass).to(P3).whenTargetNamed("sepia"),o.bind(Ls.IPostProcessingPass).to(rT).whenTargetNamed("colorHalftone"),o.bind(Ls.IPostProcessingPass).to(y2).whenTargetNamed("hexagonalPixelate"),o.bind(Ls.IPostProcessingPass).to(gC).whenTargetNamed("ink"),o.bind(Ls.IFactoryPostProcessingPass).toFactory(function(d){return function(l){var c=d.container.getNamed(Ls.IPostProcessingPass,l);return c.setName(l),c}}),o}function Fx(o){var d=new ts.W2;return d.parent=o,d.bind(Ls.IStyleAttributeService).to(UE).inSingletonScope(),d.bind(Ls.IMultiPassRenderer).to(Jb).inSingletonScope(),d.bind(Ls.IPostProcessor).to(v_).inSingletonScope(),d}var wb=["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"];function DS(o){return wb.indexOf(o)}var j_=fs.clamp,fT=2,O3=4,IS=64,_C=128,W0=256,D0=512,Dm=8192,D1=16384,pT=32768,$y=null,Bx=131072,N3=262144,y_=524288,w2=1048576,F3=2097152,l4=4194304,Cb=8388608,bC=16777216,u4=null;function r1(o,d){return o=j_(Math.floor(o),0,255),d=j_(Math.floor(d),0,255),256*o+d}function QL(o){var d=o.color,l=o.radius,c=o.tileX,u=o.tileY,m=o.shape,E=o.opacity,L=o.stroke,Z=o.strokeWidth,ne=o.strokeOpacity,xe=[],Oe=[],wt=[],Bt=[r1(d[0],d[1]),r1(d[2],d[3])],wn=[r1(L[0],L[1]),r1(L[2],L[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(Rn){var Pr=(0,Br.Z)(Rn,2),ui=Pr[0],oo=Pr[1];xe.push([].concat(Bt,[(ui+1)*Cb+(oo+1)*F3+DS(m)*Bx+l,(c+512)*y_+(u+512)*IS])),Oe.push([].concat(wn,[Z,ne])),wt.push([E,0,0,0])}),{packedBuffer:xe,packedBuffer2:Oe,packedBuffer3:wt}}function c4(o,d){if(o===0&&!d)return 0;if(o===1&&d)return 4294967295;var l=d?1:0,c=Math.floor(o*127);return c*u4+l*bC+c*Bx+l*$y+c*D0+l*W0+c*fT+l}var __={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"},Uv={MapInitStart:"mapInitStart",LayerInitStart:"layerInitStart",LayerInitEnd:"layerInitEnd",SourceInitStart:"sourceInitStart",SourceInitEnd:"sourceInitEnd",ScaleInitStart:"scaleInitStart",ScaleInitEnd:"scaleInitEnd",MappingStart:"mappingStart",MappingEnd:"mappingEnd",BuildModelStart:"buildModelStart",BuildModelEnd:"buildModelEnd"},B0=function(o){return o.LINEAR="linear",o.SEQUENTIAL="sequential",o.POWER="power",o.LOG="log",o.IDENTITY="identity",o.TIME="time",o.QUANTILE="quantile",o.QUANTIZE="quantize",o.THRESHOLD="threshold",o.CAT="cat",o.DIVERGING="diverging",o}({}),zx=function(o){return o.CONSTANT="constant",o.VARIABLE="variable",o}({}),Ih=function(o){return o[o.Attribute=0]="Attribute",o[o.InstancedAttribute=1]="InstancedAttribute",o[o.Uniform=2]="Uniform",o}({}),b_=["mapload","mapchange","mapAfterFrameChange"],C2=["loaded","fontloaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"],Zg=function(o){return o.IMAGE="image",o.CUSTOMIMAGE="customImage",o.ARRAYBUFFER="arraybuffer",o.RGB="rgb",o.TERRAINRGB="terrainRGB",o.CUSTOMRGB="customRGB",o.CUSTOMARRAYBUFFER="customArrayBuffer",o.CUSTOMTERRAINRGB="customTerrainRGB",o}({}),d4=function(){var o=(0,Pl.Z)(Fi().mark(function d(l,c,u,m){return Fi().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",new Promise(function(Z,ne){c({x:l.x,y:l.y,z:l.z},function(xe,Oe){if(xe||Oe.length===0){ne(xe);return}Oe&&uu([{data:Oe,bands:[0]}],u,m,function(wt,Bt){wt?ne(wt):Bt&&Z(Bt)})})}));case 1:case"end":return L.stop()}},d)}));return function(l,c,u,m){return o.apply(this,arguments)}}(),B3=function(){var o=(0,Pl.Z)(Fi().mark(function d(l,c){return Fi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",new Promise(function(E,L){c({x:l.x,y:l.y,z:l.z},function(Z,ne){if(Z||!ne){L(Z);return}ne instanceof ArrayBuffer?kn(ne,function(xe,Oe){xe&&L(xe),E(Oe)}):ne instanceof HTMLImageElement?E(ne):L(Z)})}));case 1:case"end":return m.stop()}},d)}));return function(l,c){return o.apply(this,arguments)}}();function gT(o,d){return Array.isArray(o)?typeof o[0]=="string"?o.map(function(l){return oh(l,d)}):o.map(function(l){return{url:oh(l.url,d),bands:l.bands||[0]}}):oh(o,d)}function pw(o){return typeof o=="string"?[{url:o,bands:[0]}]:typeof o[0]=="string"?o.map(function(d){return{url:d,bands:[0]}}):o}function PS(o,d){o.xhrCancel=function(){d.map(function(l){l.abort()})}}var x_=function(){var o=(0,Pl.Z)(Fi().mark(function d(l,c,u,m,E){var L,Z,ne,xe,Oe,wt;return Fi().wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:if(L=pw(c.url),!(L.length>1)){wn.next=15;break}return wn.next=4,h4(L,c);case 4:if(Z=wn.sent,ne=Z.rasterFiles,xe=Z.xhrList,Oe=Z.errList,PS(l,xe),!(Oe.length>0)){wn.next=12;break}return u(Oe,null),wn.abrupt("return");case 12:uu(ne,m,E,u),wn.next=17;break;case 15:wt=fi(c,function(Rn,Pr){if(Rn)u(Rn);else if(Pr){var ui=[{data:Pr,bands:L[0].bands}];uu(ui,m,E,u)}}),PS(l,[wt]);case 17:case"end":return wn.stop()}},d)}));return function(l,c,u,m,E){return o.apply(this,arguments)}}();function h4(o,d){return Z1.apply(this,arguments)}function Z1(){return Z1=(0,Pl.Z)(Fi().mark(function o(d,l){var c,u,m,E,L,Z,ne,xe,Oe,wt,Bt;return Fi().wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:c=[],u=[],m=[],E=0;case 4:if(!(E1&&arguments[1]!==void 0?arguments[1]:{};if(vT(o))throw new Error("tile server url is error");var l=(d==null?void 0:d.dataType)||Zg.IMAGE;l===Zg.RGB&&(l=Zg.ARRAYBUFFER);var c=function(E,L){switch(l){case Zg.IMAGE:return S2(o,E,L,d);case Zg.CUSTOMIMAGE:case Zg.CUSTOMTERRAINRGB:return B3(L,d==null?void 0:d.getCustomData);case Zg.ARRAYBUFFER:return f4(o,E,L,(d==null?void 0:d.format)||rm,d==null?void 0:d.operation);case Zg.CUSTOMARRAYBUFFER:case Zg.CUSTOMRGB:return d4(L,d==null?void 0:d.getCustomData,(d==null?void 0:d.format)||rm,d==null?void 0:d.operation);default:return S2(o,E,L,d)}},u=(0,ze.Z)((0,ze.Z)((0,ze.Z)({},z3),d),{},{getTileData:c});return{data:o,dataArray:[],tilesetOptions:u,isTile:!0}}var $3=["extent","min","max","width","height","format","operation"];function V3(o,d){var l=d.extent,c=d.min,u=d.max,m=d.width,E=d.height,L=d.format,Z=d.operation,ne=(0,dm.Z)(d,$3),xe;if(L===void 0||Mn(o))xe=Array.from(o);else{var Oe=Array.isArray(o)?o:[o];xe=ci(Oe,L,Z)}var wt={_id:1,dataArray:[(0,ze.Z)((0,ze.Z)({_id:1,data:xe,width:m,height:E},ne),{},{min:c,max:u,coordinates:[[l[0],l[1]],[l[2],l[3]]]})]};return wt}var Sb={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},yT=function(){var o=(0,Pl.Z)(Fi().mark(function d(l){return Fi().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",new Promise(function(m){var E=(0,Br.Z)(l.bounds,4),L=E[0],Z=E[1],ne=E[2],xe=E[3],Oe={layers:{testTile:{features:[{type:"Feature",properties:{key:l.x+"/"+l.y+"/"+l.z,x:(L+ne)/2,y:(Z+xe)/2},geometry:{type:"LineString",coordinates:[[ne,xe],[ne,Z],[L,Z],[L,Z]]}}]}}};m(Oe)}));case 1:case"end":return u.stop()}},d)}));return function(l){return o.apply(this,arguments)}}();function im(o,d){var l=function(m){return yT(m)},c=(0,ze.Z)((0,ze.Z)((0,ze.Z)({},Sb),d),{},{getTileData:l});return{data:o,dataArray:[],tilesetOptions:c,isTile:!0}}var LS=_(77028),i1=_.n(LS);function nx(o,d){var l=d.radius,c=l===void 0?40:l,u=d.maxZoom,m=u===void 0?18:u,E=d.minZoom,L=E===void 0?0:E,Z=d.zoom,ne=Z===void 0?2:Z;if(o.pointIndex){var xe=o.pointIndex.getClusters(o.extent,Math.floor(ne));return o.dataArray=RS(xe),o}var Oe=new(i1())({radius:c,minZoom:L,maxZoom:m}),wt={type:"FeatureCollection",features:[]};return wt.features=o.dataArray.map(function(Bt){return{type:"Feature",geometry:{type:"Point",coordinates:Bt.coordinates},properties:(0,ze.Z)({},Bt)}}),Oe.load(wt.features),Oe}function RS(o){return o.map(function(d,l){return(0,ze.Z)({coordinates:d.geometry.coordinates,_id:l+1},d.properties)})}function _T(o){if(o.length===0)throw new Error("max requires at least one data point");for(var d=o[0],l=1;ld&&(d=o[l]);return d}function bT(o){if(o.length===0)throw new Error("min requires at least one data point");for(var d=o[0],l=1;l=Math.abs(o[u])?l+=d-c+o[u]:l+=o[u]-c+d,d=c;return d+l*1}function xT(o){if(o.length===0)throw new Error("mean requires at least one data point");return xC(o)/o.length}var n_={min:bT,max:_T,mean:xT,sum:xC};function wC(o){var d=CC();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function CC(){if(typeof Reflect=="undefined"||!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(o){return!1}}var j3=fs.cloneDeep,SC=fs.isFunction,kS=fs.isString,gw=fs.mergeWith;function OS(o,d){if(Array.isArray(d))return d}var p4=function(o){(0,lt.Z)(l,o);var d=wC(l);function l(c,u){var m;return(0,Ct.Z)(this,l),m=d.call(this),(0,Tn.Z)((0,ms.Z)(m),"type","source"),(0,Tn.Z)((0,ms.Z)(m),"isTile",!1),(0,Tn.Z)((0,ms.Z)(m),"inited",!1),(0,Tn.Z)((0,ms.Z)(m),"hooks",{init:new V1}),(0,Tn.Z)((0,ms.Z)(m),"parser",{type:"geojson"}),(0,Tn.Z)((0,ms.Z)(m),"transforms",[]),(0,Tn.Z)((0,ms.Z)(m),"cluster",!1),(0,Tn.Z)((0,ms.Z)(m),"clusterOptions",{enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"}),(0,Tn.Z)((0,ms.Z)(m),"invalidExtent",!1),(0,Tn.Z)((0,ms.Z)(m),"dataArrayChanged",!1),(0,Tn.Z)((0,ms.Z)(m),"cfg",{autoRender:!0}),m.originData=c,m.initCfg(u),m.init().then(function(){m.inited=!0,m.emit("update",{type:"inited"})}),m}return(0,nt.Z)(l,[{key:"getSourceCfg",value:function(){return this.cfg}},{key:"getClusters",value:function(u){return this.clusterIndex.getClusters(this.caculClusterExtent(2),u)}},{key:"getClustersLeaves",value:function(u){return this.clusterIndex.getLeaves(u,1/0)}},{key:"getParserType",value:function(){return this.parser.type}},{key:"updateClusterData",value:function(u){var m=this,E=this.clusterOptions,L=E.method,Z=L===void 0?"sum":L,ne=E.field,xe=this.clusterIndex.getClusters(this.caculClusterExtent(2),Math.floor(u));this.clusterOptions.zoom=u,xe.forEach(function(Oe){Oe.id||(Oe.properties.point_count=1)}),(ne||SC(Z))&&(xe=xe.map(function(Oe){var wt=Oe.id;if(wt){var Bt=m.clusterIndex.getLeaves(wt,1/0),wn=Bt.map(function(ui){return ui.properties}),Rn;if(kS(Z)&&ne){var Pr=Nr(wn,ne);Rn=n_[Z](Pr)}SC(Z)&&(Rn=Z(wn)),Oe.properties.stat=Rn}else Oe.properties.point_count=1;return Oe})),this.data=k("geojson")({type:"FeatureCollection",features:xe}),this.executeTrans()}},{key:"getFeatureById",value:function(u){var m=this.parser,E=m.type,L=E===void 0?"geojson":E,Z=m.geometry;if(L==="geojson"&&!this.cluster){var ne=u=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function wT(o,d){if(o){if(typeof o=="string")return CT(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return CT(o,d)}}function CT(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lc?u:c)}}catch(xo){m.e(xo)}finally{m.f()}var Z=(l+c)/2,ne=Z3(d,Z);if(ne.xOffset<=0||ne.yOffset<=0)return{gridHash:{},gridOffset:ne};var xe={},Oe=Ux(o),wt;try{for(Oe.s();!(wt=Oe.n()).done;){var Bt=wt.value,wn=Bt.coordinates[1],Rn=Bt.coordinates[0];if(Number.isFinite(wn)&&Number.isFinite(Rn)){var Pr=Math.floor((wn+90)/ne.yOffset),ui=Math.floor((Rn+180)/ne.xOffset),oo="".concat(Pr,"-").concat(ui);xe[oo]=xe[oo]||{count:0,points:[]},xe[oo].count+=1,xe[oo].points.push(Bt)}}}catch(xo){Oe.e(xo)}finally{Oe.f()}return{gridHash:xe,gridOffset:ne}}function Z3(o,d){var l=g4(o),c=mw(d,o);return{yOffset:l,xOffset:c}}function g4(o){return o/EC*(180/Math.PI)}function mw(o,d){return d/EC*(180/Math.PI)/Math.cos(o*Math.PI/180)}function H3(o,d,l){return Object.keys(o).reduce(function(c,u,m){var E=u.split("-"),L=parseInt(E[0],10),Z=parseInt(E[1],10),ne={};if(l.field&&l.method){var xe=id(o[u].points,l.field);ne[l.method]=qc[l.method](xe)}return Object.assign(ne,{_id:m,coordinates:Mh([-180+d.xOffset*(Z+.5),-90+d.yOffset*(L+.5)]),rawData:o[u].points,count:o[u].count}),c.push(ne),c},[])}var $x=Math.PI/3,ST=[0,$x,2*$x,3*$x,4*$x,5*$x];function m4(o){return o[0]}function G3(o){return o[1]}function NS(){var o=0,d=0,l=1,c=1,u=m4,m=G3,E,L,Z;function ne(Oe){var wt={},Bt=[],wn,Rn=Oe.length;for(wn=0;wn1){var fa=ui-Ds,Za=Ds+(uitu*tu+ku*ku&&(Ds=Za+(xo&1?1:-1)/2,xo=gl)}var ju=Ds+"-"+xo,Xc=wt[ju];Xc?Xc.push(Pr):(Bt.push(Xc=wt[ju]=[Pr]),Xc.x=(Ds+(xo&1)/2)*L,Xc.y=xo*Z)}return Bt}function xe(Oe){var wt=0,Bt=0;return ST.map(function(wn){var Rn=Math.sin(wn)*Oe,Pr=-Math.cos(wn)*Oe,ui=Rn-wt,oo=Pr-Bt;return wt=Rn,Bt=Pr,[ui,oo]})}return ne.hexagon=function(Oe){return"m"+xe(Oe==null?E:+Oe).join("l")+"z"},ne.centers=function(){for(var Oe=[],wt=Math.round(d/Z),Bt=Math.round(o/L),wn=wt*Z;wn180||Math.abs(wn[1][0])>180){if(xe.x>Bt){var Rn=this.mapsService.lngLatToContainer([Z-360,ne]);xe.x=Rn.x}if(xe.x<0){var Pr=this.mapsService.lngLatToContainer([Z+360,ne]);xe.x=Pr.x}}(xe.x>Bt||xe.x<0||xe.y>wt||xe.y<0)&&(m.style.display="none"),m.style.left=xe.x+E[0]+"px",m.style.top=xe.y-E[1]+"px"}}}},{key:"init",value:function(){var u=this,m=this.markerOption.element,E=this.markerOption,L=E.color,Z=E.anchor;if(!m){this.defaultMarker=!0,m=Os("div"),this.markerOption.element=m;var ne=document.createElementNS("http://www.w3.org/2000/svg","svg");ne.setAttributeNS(null,"display","block"),ne.setAttributeNS(null,"height","48px"),ne.setAttributeNS(null,"width","48px"),ne.setAttributeNS(null,"viewBox","0 0 1024 1024");var xe=document.createElementNS("http://www.w3.org/2000/svg","path");xe.setAttributeNS(null,"d","M512 490.666667C453.12 490.666667 405.333333 442.88 405.333333 384 405.333333 325.12 453.12 277.333333 512 277.333333 570.88 277.333333 618.666667 325.12 618.666667 384 618.666667 442.88 570.88 490.666667 512 490.666667M512 85.333333C346.88 85.333333 213.333333 218.88 213.333333 384 213.333333 608 512 938.666667 512 938.666667 512 938.666667 810.666667 608 810.666667 384 810.666667 218.88 677.12 85.333333 512 85.333333Z"),xe.setAttributeNS(null,"fill",L),ne.appendChild(xe),m.appendChild(ne)}xa(m,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(function(Oe){var wt,Bt,wn=((wt=u.markerOption)===null||wt===void 0?void 0:wt.style)&&((Bt=u.markerOption)===null||Bt===void 0?void 0:Bt.style[Oe]);m&&(m.style[Oe]=wn)}),Jt(m,Z,"marker")}},{key:"registerMarkerEvent",value:function(u){u.addEventListener("click",this.onMapClick),u.addEventListener("mousemove",this.eventHandle),u.addEventListener("click",this.eventHandle),u.addEventListener("mousedown",this.eventHandle),u.addEventListener("mouseup",this.eventHandle),u.addEventListener("dblclick",this.eventHandle),u.addEventListener("contextmenu",this.eventHandle),u.addEventListener("mouseover",this.eventHandle),u.addEventListener("mouseout",this.eventHandle),u.addEventListener("touchstart",this.eventHandle),u.addEventListener("touchend",this.eventHandle)}},{key:"unRegisterMarkerEvent",value:function(){var u=this.getElement();u.removeEventListener("click",this.onMapClick),u.removeEventListener("mousemove",this.eventHandle),u.removeEventListener("click",this.eventHandle),u.removeEventListener("mousedown",this.eventHandle),u.removeEventListener("mouseup",this.eventHandle),u.removeEventListener("dblclick",this.eventHandle),u.removeEventListener("contextmenu",this.eventHandle),u.removeEventListener("mouseover",this.eventHandle),u.removeEventListener("mouseout",this.eventHandle),u.removeEventListener("touchstart",this.eventHandle),u.removeEventListener("touchend",this.eventHandle)}},{key:"polyfillEvent",value:function(u){!this.mapsService||this.mapsService.version!=="GAODE2.x"||wl()||(u.type==="touchstart"&&(this.touchStartTime=Date.now()),u.type==="touchend"&&Date.now()-this.touchStartTime<300&&this.emit("click",{target:u,data:this.markerOption.extData,lngLat:this.lngLat}))}},{key:"addDragHandler",value:function(u){return null}},{key:"onUp",value:function(u){throw new Error("Method not implemented.")}}]),l}(uc.EventEmitter);function y4(o){var d=_4();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function _4(){if(typeof Reflect=="undefined"||!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(o){return!1}}var b4=fs.merge,x=function(o){(0,lt.Z)(l,o);var d=y4(l);function l(c){var u,m;return(0,Ct.Z)(this,l),m=d.call(this),(0,Tn.Z)((0,ms.Z)(m),"markers",[]),(0,Tn.Z)((0,ms.Z)(m),"points",[]),(0,Tn.Z)((0,ms.Z)(m),"clusterMarkers",[]),m.markerLayerOption=b4(m.getDefault(),c),nc(["update"],(0,ms.Z)(m)),m.zoom=((u=m.markerLayerOption.clusterOption)===null||u===void 0?void 0:u.zoom)||-99,m}return(0,nt.Z)(l,[{key:"getDefault",value:function(){return{cluster:!1,clusterOption:{radius:80,maxZoom:20,minZoom:0,zoom:-99,style:{},className:""}}}},{key:"addTo",value:function(u){return this.scene=u,this.mapsService=u.get(Ls.IMapService),this.markerLayerOption.cluster&&(this.initCluster(),this.update(),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.mapsService.on("camerachange",this.setContainerSize.bind(this)),this.mapsService.on("viewchange",this.setContainerSize.bind(this)),this.addMarkers(),this.inited=!0,this}},{key:"setContainerSize",value:function(){if(this.mapsService){var u=this.mapsService.getContainer();this.containerSize={containerWidth:(u==null?void 0:u.scrollWidth)||0,containerHeight:(u==null?void 0:u.scrollHeight)||0,bounds:this.mapsService.getBounds()}}}},{key:"getContainerSize",value:function(){return this.containerSize}},{key:"addMarker",value:function(u){var m=this.markerLayerOption.cluster;if(u.getMarkerLayerContainerSize=this.getContainerSize.bind(this),m&&(this.addPoint(u,this.markers.length),this.mapsService)){var E=this.mapsService.getZoom(),L=this.mapsService.getBounds();this.bbox=au(L,.5),this.zoom=Math.floor(E),this.getClusterMarker(this.bbox,this.zoom)}this.markers.push(u)}},{key:"removeMarker",value:function(u){this.markers.indexOf(u);var m=this.markers.indexOf(u);m>-1&&(this.markers.splice(m,1),this.markerLayerOption.cluster&&(this.removePoint(m),this.mapsService&&this.getClusterMarker(this.bbox,this.zoom)))}},{key:"hide",value:function(){this.markers.map(function(u){u.getElement().style.opacity="0"}),this.clusterMarkers.map(function(u){u.getElement().style.opacity="0"})}},{key:"show",value:function(){this.markers.map(function(u){u.getElement().style.opacity="1"}),this.clusterMarkers.map(function(u){u.getElement().style.opacity="1"})}},{key:"getMarkers",value:function(){var u=this.markerLayerOption.cluster;return u?this.clusterMarkers:this.markers}},{key:"getOriginMarkers",value:function(){return this.markers}},{key:"addMarkers",value:function(){var u=this;this.getMarkers().forEach(function(m){m.addTo(u.scene)})}},{key:"clear",value:function(){this.markers.forEach(function(u){u.remove()}),this.clusterMarkers.forEach(function(u){u.remove()}),this.markers=[],this.points=[],this.clusterMarkers=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners(),this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.off("camerachange",this.setContainerSize.bind(this)),this.mapsService.off("viewchange",this.setContainerSize.bind(this))}},{key:"addPoint",value:function(u,m){var E=u.getLnglat(),L=E.lng,Z=E.lat,ne={geometry:{type:"Point",coordinates:[L,Z]},properties:(0,ze.Z)((0,ze.Z)({},u.getExtData()),{},{marker_id:m})};this.points.push(ne),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"removePoint",value:function(u){var m=this.points.findIndex(function(E){return E.properties.marker_id===u});m>-1&&this.points.splice(m,1),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"initCluster",value:function(){if(this.markerLayerOption.cluster){var u=this.markerLayerOption.clusterOption,m=u.radius,E=u.minZoom,L=E===void 0?0:E,Z=u.maxZoom;this.clusterIndex=new(i1())({radius:m,minZoom:L,maxZoom:Z}),this.clusterIndex.load(this.points)}}},{key:"getClusterMarker",value:function(u,m){var E=this,L=u[0].concat(u[1]),Z=this.clusterIndex.getClusters(L,m);this.clusterMarkers.forEach(function(ne){ne.remove()}),this.clusterMarkers=[],Z.forEach(function(ne){var xe,Oe=E.markerLayerOption.clusterOption,wt=Oe.field,Bt=Oe.method;if((xe=ne.properties)!==null&&xe!==void 0&&xe.cluster_id){var wn,Rn=E.getLeaves((wn=ne.properties)===null||wn===void 0?void 0:wn.cluster_id);if(ne.properties.clusterData=Rn,wt&&Bt){var Pr=Rn==null?void 0:Rn.map(function(aa){var fa=(0,Tn.Z)({},wt,aa.properties[wt]);return fa}),ui=id(Pr,wt),oo=Sh(Bt,ui),xo="point_"+Bt;ne.properties[xo]=oo.toFixed(2)}}var Ds=E.clusterMarker(ne);E.clusterMarkers.push(Ds),Ds.addTo(E.scene)})}},{key:"getLeaves",value:function(u){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1/0,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return u?this.clusterIndex.getLeaves(u,m,E):null}},{key:"clusterMarker",value:function(u){var m=this.markerLayerOption.clusterOption,E=m,L=E.element,Z=L===void 0?this.generateElement.bind(this):L,ne=new T2({element:Z(u)}).setLnglat({lng:u.geometry.coordinates[0],lat:u.geometry.coordinates[1]});return ne}},{key:"normalMarker",value:function(u){var m=u.properties.marker_id;return this.markers[m]}},{key:"update",value:function(){if(this.mapsService&&this.markers.length!==0){var u=this.mapsService.getZoom(),m=this.mapsService.getBounds();(!this.bbox||Math.abs(u-this.zoom)>=1||!ac(this.bbox,m))&&(this.bbox=au(m,.5),this.zoom=Math.floor(u),this.getClusterMarker(this.bbox,this.zoom))}}},{key:"generateElement",value:function(u){var m=Os("div","l7-marker-cluster"),E=Os("div","",m),L=Os("span","",E),Z=this.markerLayerOption.clusterOption,ne=Z.field,xe=Z.method;u.properties.point_count=u.properties.point_count||1;var Oe=ne&&xe?u.properties["point_"+xe]||u.properties[ne]:u.properties.point_count;return L.textContent=Oe,m}}]),l}(uc.EventEmitter),z=_(73450);function N(o){var d=se();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function se(){if(typeof Reflect=="undefined"||!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(o){return!1}}var le=function(o){(0,lt.Z)(l,o);var d=N(l);function l(c){var u;return(0,Ct.Z)(this,l),u=d.call(this),l.controlCount++,u.controlOption=(0,ze.Z)((0,ze.Z)({},u.getDefault(c)),c||{}),u}return(0,nt.Z)(l,[{key:"getOptions",value:function(){return this.controlOption}},{key:"setOptions",value:function(u){var m=this.getDefault(u);Object.entries(u).forEach(function(E){var L=(0,Br.Z)(E,2),Z=L[0],ne=L[1];ne===void 0&&(u[Z]=m[Z])}),"position"in u&&this.setPosition(u.position),"className"in u&&this.setClassName(u.className),"style"in u&&this.setStyle(u.style),this.controlOption=(0,ze.Z)((0,ze.Z)({},this.controlOption),u)}},{key:"addTo",value:function(u){this.mapsService=u.get(Ls.IMapService),this.renderService=u.get(Ls.IRendererService),this.layerService=u.get(Ls.ILayerService),this.controlService=u.get(Ls.IControlService),this.configService=u.get(Ls.IGlobalConfigService),this.scene=u.get(Ls.ISceneService),this.sceneContainer=u,this.isShow=!0,this.container=this.onAdd(),xa(this.container,"l7-control");var m=this.controlOption,E=m.className,L=m.style;return E&&this.setClassName(E),L&&this.setStyle(L),this.insertContainer(),this.emit("add",this),this}},{key:"remove",value:function(){if(!this.mapsService)return this;Cs(this.container),this.onRemove(),this.emit("remove",this)}},{key:"onAdd",value:function(){return Os("div")}},{key:"onRemove",value:function(){}},{key:"show",value:function(){var u=this.container;Xu(u,"l7-control--hide"),this.isShow=!0,this.emit("show",this)}},{key:"hide",value:function(){var u=this.container;xa(u,"l7-control--hide"),this.isShow=!1,this.emit("hide",this)}},{key:"getDefault",value:function(u){return{position:io.TOPRIGHT,name:"".concat(l.controlCount)}}},{key:"getContainer",value:function(){return this.container}},{key:"getIsShow",value:function(){return this.isShow}},{key:"_refocusOnMap",value:function(u){if(this.mapsService&&u&&u.screenX>0&&u.screenY>0){var m=this.mapsService.getContainer();m!==null&&m.focus()}}},{key:"setPosition",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:io.TOPLEFT,m=this.controlService;return m&&m.removeControl(this),this.controlOption.position=u,m&&m.addControl(this,this.sceneContainer),this}},{key:"setClassName",value:function(u){var m=this.container,E=this.controlOption.className;E&&Xu(m,E),u&&xa(m,u)}},{key:"setStyle",value:function(u){var m=this.container;u?m.setAttribute("style",u):m.removeAttribute("style")}},{key:"insertContainer",value:function(){var u=this.controlOption.position,m=this.container;if(u instanceof Element)u.appendChild(m);else{var E=this.controlService.controlCorners[u];["bottomleft","bottomright","righttop","rightbottom"].includes(u)?E.insertBefore(m,E.firstChild):E.appendChild(m)}}},{key:"checkUpdateOption",value:function(u,m){return m.some(function(E){return E in u})}}]),l}(dd());(0,Tn.Z)(le,"controlCount",0);function tt(o){var d=mt();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function mt(){if(typeof Reflect=="undefined"||!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(o){return!1}}var kt=function(o){(0,lt.Z)(l,o);var d=tt(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&arguments[0]!==void 0?arguments[0]:"";return Os("button","l7-button-control ".concat(u))}},{key:"onAdd",value:function(){this.button=this.createButton(),this.isDisable=!1;var u=this.controlOption,m=u.title,E=u.btnText,L=u.btnIcon;return this.setBtnTitle(m),this.setBtnText(E),this.setBtnIcon(L),this.button}},{key:"onRemove",value:function(){this.button=this.buttonIcon=this.buttonText=void 0,this.isDisable=!1}},{key:"setOptions",value:function(u){var m=u.title,E=u.btnText,L=u.btnIcon;this.checkUpdateOption(u,["title"])&&this.setBtnTitle(m),this.checkUpdateOption(u,["btnIcon"])&&this.setBtnIcon(L),this.checkUpdateOption(u,["btnText"])&&this.setBtnText(E),mf((0,Rt.Z)(l.prototype),"setOptions",this).call(this,u)}},{key:"setBtnTitle",value:function(u){var m;(m=this.button)===null||m===void 0||m.setAttribute("title",u!=null?u:"")}},{key:"setBtnIcon",value:function(u){if(this.buttonIcon&&Cs(this.buttonIcon),u){var m,E=(m=this.button)===null||m===void 0?void 0:m.firstChild;if(E){var L;(L=this.button)===null||L===void 0||L.insertBefore(u,E)}else{var Z;(Z=this.button)===null||Z===void 0||Z.appendChild(u)}this.buttonIcon=u}}},{key:"setBtnText",value:function(u){if(this.button)if(Xu(this.button,"l7-button-control--row"),Xu(this.button,"l7-button-control--column"),u){var m=this.buttonText;if(!m){var E;m=Os("div","l7-button-control__text"),(E=this.button)===null||E===void 0||E.appendChild(m),this.buttonText=m}m.innerText=u,xa(this.button,this.controlOption.vertical?"l7-button-control--column":"l7-button-control--row")}else!u&&this.buttonText&&(Cs(this.buttonText),this.buttonText=void 0)}}]),l}(le);function On(o){var d=ur();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function ur(){if(typeof Reflect=="undefined"||!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(o){return!1}}var mr=function(o){(0,lt.Z)(l,o);var d=On(l);function l(c,u){var m;return(0,Ct.Z)(this,l),m=d.call(this),(0,Tn.Z)((0,ms.Z)(m),"isShow",!1),(0,Tn.Z)((0,ms.Z)(m),"timeout",null),(0,Tn.Z)((0,ms.Z)(m),"show",function(){return m.isShow||!m.contentDOM.innerHTML||(m.resetPopperPosition(),Xu(m.popperDOM,"l7-popper-hide"),m.isShow=!0,m.option.unique&&l.conflictPopperList.forEach(function(E){E!==(0,ms.Z)(m)&&E.isShow&&E.hide()}),m.emit("show"),window.addEventListener("pointerdown",m.onPopperUnClick)),(0,ms.Z)(m)}),(0,Tn.Z)((0,ms.Z)(m),"hide",function(){return m.isShow&&(xa(m.popperDOM,"l7-popper-hide"),m.isShow=!1,m.emit("hide"),window.removeEventListener("pointerdown",m.onPopperUnClick)),(0,ms.Z)(m)}),(0,Tn.Z)((0,ms.Z)(m),"setHideTimeout",function(){m.timeout||(m.timeout=window.setTimeout(function(){m.isShow&&(m.hide(),m.timeout=null)},300))}),(0,Tn.Z)((0,ms.Z)(m),"clearHideTimeout",function(){m.timeout&&(window.clearTimeout(m.timeout),m.timeout=null)}),(0,Tn.Z)((0,ms.Z)(m),"onBtnClick",function(){m.isShow?m.hide():m.show()}),(0,Tn.Z)((0,ms.Z)(m),"onPopperUnClick",function(E){Xl(E.target,[".l7-button-control",".l7-popper-content"])||m.hide()}),(0,Tn.Z)((0,ms.Z)(m),"onBtnMouseLeave",function(){m.setHideTimeout()}),(0,Tn.Z)((0,ms.Z)(m),"onBtnMouseMove",function(){m.clearHideTimeout(),!m.isShow&&m.show()}),m.button=c,m.option=u,m.init(),u.unique&&l.conflictPopperList.push((0,ms.Z)(m)),m}return(0,nt.Z)(l,[{key:"buttonRect",get:function(){return this.button.getBoundingClientRect()}},{key:"getPopperDOM",value:function(){return this.popperDOM}},{key:"getIsShow",value:function(){return this.isShow}},{key:"getContent",value:function(){return this.content}},{key:"setContent",value:function(u){typeof u=="string"?this.contentDOM.innerHTML=u:u instanceof HTMLElement&&(ga(this.contentDOM),this.contentDOM.appendChild(u)),this.content=u}},{key:"init",value:function(){var u=this.option.trigger;this.popperDOM=this.createPopper(),u==="click"?this.button.addEventListener("click",this.onBtnClick):(this.button.addEventListener("mousemove",this.onBtnMouseMove),this.button.addEventListener("mouseleave",this.onBtnMouseLeave),this.popperDOM.addEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.addEventListener("mouseleave",this.onBtnMouseLeave))}},{key:"destroy",value:function(){this.button.removeEventListener("click",this.onBtnClick),this.button.removeEventListener("mousemove",this.onBtnMouseMove),this.button.removeEventListener("mousemove",this.onBtnMouseLeave),this.popperDOM.removeEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.removeEventListener("mouseleave",this.onBtnMouseLeave),Cs(this.popperDOM)}},{key:"resetPopperPosition",value:function(){var u={},m=this.option,E=m.container,L=m.offset,Z=L===void 0?[0,0]:L,ne=m.placement,xe=(0,Br.Z)(Z,2),Oe=xe[0],wt=xe[1],Bt=this.button.getBoundingClientRect(),wn=E.getBoundingClientRect(),Rn=ns(Bt,wn),Pr=Rn.left,ui=Rn.right,oo=Rn.top,xo=Rn.bottom,Ds=!1,aa=!1;/^(left|right)/.test(ne)?(ne.includes("left")?u.right="".concat(Bt.width+ui,"px"):ne.includes("right")&&(u.left="".concat(Bt.width+Pr,"px")),ne.includes("start")?u.top="".concat(oo,"px"):ne.includes("end")?u.bottom="".concat(xo,"px"):(u.top="".concat(oo+Bt.height/2,"px"),aa=!0,u.transform="translate(".concat(Oe,"px, calc(").concat(wt,"px - 50%))"))):/^(top|bottom)/.test(ne)&&(ne.includes("top")?u.bottom="".concat(Bt.height+xo,"px"):ne.includes("bottom")&&(u.top="".concat(Bt.height+oo,"px")),ne.includes("start")?u.left="".concat(Pr,"px"):ne.includes("end")?u.right="".concat(ui,"px"):(u.left="".concat(Pr+Bt.width/2,"px"),Ds=!0,u.transform="translate(calc(".concat(Oe,"px - 50%), ").concat(wt,"px)"))),u.transform="translate(calc(".concat(Oe,"px - ").concat(Ds?"50%":"0%","), calc(").concat(wt,"px - ").concat(aa?"50%":"0%",")");var fa=ne.split("-");fa.length&&xa(this.popperDOM,fa.map(function(Za){return"l7-popper-".concat(Za)}).join(" ")),jr(this.popperDOM,us(u))}},{key:"createPopper",value:function(){var u=this.option,m=u.container,E=u.className,L=E===void 0?"":E,Z=u.content,ne=Os("div","l7-popper l7-popper-hide ".concat(L)),xe=Os("div","l7-popper-content"),Oe=Os("div","l7-popper-arrow");return ne.appendChild(xe),ne.appendChild(Oe),m.appendChild(ne),this.popperDOM=ne,this.contentDOM=xe,Z&&this.setContent(Z),ne}}]),l}(uc.EventEmitter);(0,Tn.Z)(mr,"conflictPopperList",[]);function $i(o){var d=vo();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function vo(){if(typeof Reflect=="undefined"||!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(o){return!1}}var jo={topleft:"right-start",topcenter:"bottom",topright:"left-start",bottomleft:"right-end",bottomcenter:"top",bottomright:"left-end",lefttop:"bottom-start",leftcenter:"right",leftbottom:"top-start",righttop:"bottom-end",rightcenter:"left",rightbottom:"top-end"},as=function(o){(0,lt.Z)(l,o);var d=$i(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getPopper",value:function(){return this.popper}},{key:"hide",value:function(){this.popper.hide(),mf((0,Rt.Z)(l.prototype),"hide",this).call(this)}},{key:"getDefault",value:function(u){var m,E=mf((0,Rt.Z)(l.prototype),"getDefault",this).call(this,u),L=(m=u==null?void 0:u.position)!==null&&m!==void 0?m:E.position;return(0,ze.Z)((0,ze.Z)({},mf((0,Rt.Z)(l.prototype),"getDefault",this).call(this,u)),{},{popperPlacement:L instanceof Element?"bottom":jo[L],popperTrigger:"click"})}},{key:"onAdd",value:function(){var u=mf((0,Rt.Z)(l.prototype),"onAdd",this).call(this);return this.initPopper(),u}},{key:"onRemove",value:function(){this.popper.destroy()}},{key:"initPopper",value:function(){var u=this,m=this.controlOption,E=m.popperClassName,L=m.popperPlacement,Z=m.popperTrigger,ne=this.mapsService.getMapContainer();return this.popper=new mr(this.button,{className:E,placement:L,trigger:Z,container:ne,unique:!0}),this.popper.on("show",function(){u.emit("popperShow",u)}).on("hide",function(){u.emit("popperHide",u)}),this.popper}},{key:"setOptions",value:function(u){if(mf((0,Rt.Z)(l.prototype),"setOptions",this).call(this,u),this.checkUpdateOption(u,["popperPlacement","popperTrigger","popperClassName"])){var m=this.popper.getContent();this.popper.destroy(),this.initPopper(),this.popper.setContent(m)}}}]),l}(kt);function Ei(o){var d=bs();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function bs(){if(typeof Reflect=="undefined"||!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(o){return!1}}var sl=function(o){return o.ActiveOptionClassName="l7-select-control-item-active",o.OptionValueAttrKey="data-option-value",o.OptionIndexAttrKey="data-option-index",o}(sl||{}),bl=function(o){(0,lt.Z)(l,o);var d=Ei(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E-1?c.selectValue.splice(Z,1):c.selectValue=[].concat((0,_n.Z)(c.selectValue),[L.value])}else c.selectValue=[L.value];c.setSelectValue(c.selectValue)}),c}return(0,nt.Z)(l,[{key:"setOptions",value:function(u){mf((0,Rt.Z)(l.prototype),"setOptions",this).call(this,u);var m=u.options;m&&this.popper.setContent(this.getPopperContent(m))}},{key:"onAdd",value:function(){var u=mf((0,Rt.Z)(l.prototype),"onAdd",this).call(this),m=this.controlOption.defaultValue;return m&&(this.selectValue=this.transSelectValue(m)),this.popper.setContent(this.getPopperContent(this.controlOption.options)),u}},{key:"getSelectValue",value:function(){return this.getIsMultiple()?this.selectValue:this.selectValue[0]}},{key:"setSelectValue",value:function(u){var m=this,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,L=this.transSelectValue(u);this.optionDOMList.forEach(function(Z){var ne=Z.getAttribute(sl.OptionValueAttrKey),xe=m.getIsMultiple()?Z.querySelector("input[type=checkbox]"):void 0;L.includes(ne)?(xa(Z,sl.ActiveOptionClassName),xe&&Oa(xe,!0)):(Xu(Z,sl.ActiveOptionClassName),xe&&Oa(xe,!1))}),this.selectValue=L,E&&this.emit("selectChange",this.getIsMultiple()?L:L[0])}},{key:"getIsMultiple",value:function(){return!1}},{key:"getPopperContent",value:function(u){var m=this,E=this.isImageOptions(),L=Os("div",E?"l7-select-control--image":"l7-select-control--normal");this.getIsMultiple()&&xa(L,"l7-select-control--multiple");var Z=u.map(function(ne,xe){var Oe=E?m.createImageOption(ne):m.createNormalOption(ne);return Oe.setAttribute(sl.OptionValueAttrKey,ne.value),Oe.setAttribute(sl.OptionIndexAttrKey,window.String(xe)),Oe.addEventListener("click",m.onItemClick.bind(m,ne)),Oe});return L.append.apply(L,(0,_n.Z)(Z)),this.optionDOMList=Z,L}},{key:"createImageOption",value:function(u){var m=this.selectValue.includes(u.value),E=Os("div","l7-select-control-item ".concat(m?sl.ActiveOptionClassName:"")),L=Os("img");L.setAttribute("src",u.img),Va(L),E.appendChild(L);var Z=Os("div","l7-select-control-item-row");this.getIsMultiple()&&E.appendChild(this.createCheckbox(m));var ne=Os("span");return ne.innerText=u.text,Z.appendChild(ne),E.appendChild(Z),E}},{key:"createCheckbox",value:function(u){var m=Os("input");return m.setAttribute("type","checkbox"),u&&Oa(m,!0),m}},{key:"isImageOptions",value:function(){return!!this.controlOption.options.find(function(u){return u.img})}},{key:"transSelectValue",value:function(u){return Array.isArray(u)?u:[u]}}]),l}(as),Na=function(d){var l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.classList.add("l7-iconfont"),l.setAttribute("aria-hidden","true");var c=document.createElementNS("http://www.w3.org/2000/svg","use");return c.setAttributeNS("http://www.w3.org/1999/xlink","href","#".concat(d)),l.appendChild(c),l};function Qu(o){var d=Ic();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function Ic(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Ku=function(o){(0,lt.Z)(l,o);var d=Qu(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function hc(o,d){if(o){if(typeof o=="string")return Yu(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Yu(o,d)}}function Yu(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l0&&arguments[0]!==void 0?arguments[0]:document.documentElement,l=arguments.length>1?arguments[1]:void 0;return new Promise(function(c,u){var m=function L(){Hh.off("change",L),c()};Hh.on("change",m);var E=d[fc.requestFullscreen](l);E instanceof Promise&&E.then(m).catch(u)})},exit:function(){return new Promise(function(d,l){if(!Hh.isFullscreen){d();return}var c=function m(){Hh.off("change",m),d()};Hh.on("change",c);var u=document[fc.exitFullscreen]();u instanceof Promise&&u.then(c).catch(l)})},toggle:function(d,l){return Hh.isFullscreen?Hh.exit():Hh.request(d,l)},onchange:function(d){Hh.on("change",d)},onerror:function(d){Hh.on("error",d)},on:function(d,l){var c=sc[d];c&&document.addEventListener(c,l,!1)},off:function(d,l){var c=sc[d];c&&document.removeEventListener(c,l,!1)},raw:fc};Object.defineProperties(Hh,{isFullscreen:{get:function(){return!!document[fc.fullscreenElement]}},element:{enumerable:!0,get:function(){var d;return(d=document[fc.fullscreenElement])!==null&&d!==void 0?d:void 0}},isEnabled:{enumerable:!0,get:function(){return!!document[fc.fullscreenEnabled]}}}),fc||(Hh={isEnabled:!1});var up=Hh;function gf(o){var d=Up();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function Up(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Sp=function(o){(0,lt.Z)(l,o);var d=gf(l);function l(c){var u;return(0,Ct.Z)(this,l),u=d.call(this,c),(0,Tn.Z)((0,ms.Z)(u),"isFullscreen",!1),(0,Tn.Z)((0,ms.Z)(u),"toggleFullscreen",(0,Pl.Z)(Fi().mark(function m(){return Fi().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(!up.isEnabled){L.next=3;break}return L.next=3,up.toggle(u.mapContainer);case 3:case"end":return L.stop()}},m)}))),(0,Tn.Z)((0,ms.Z)(u),"onClick",function(){u.toggleFullscreen()}),(0,Tn.Z)((0,ms.Z)(u),"onFullscreenChange",function(){u.isFullscreen=!!document.fullscreenElement;var m=u.controlOption,E=m.btnText,L=m.btnIcon,Z=m.title,ne=m.exitBtnText,xe=m.exitBtnIcon,Oe=m.exitTitle;u.isFullscreen?(u.setBtnTitle(Oe),u.setBtnText(ne),u.setBtnIcon(xe)):(u.setBtnTitle(Z),u.setBtnText(E),u.setBtnIcon(L)),u.emit("fullscreenChange",u.isFullscreen)}),up.isEnabled||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u5BF9\u5730\u56FE\u5168\u5C4F\u5316"),u}return(0,nt.Z)(l,[{key:"setOptions",value:function(u){var m=u.exitBtnText,E=u.exitBtnIcon,L=u.exitTitle;this.isFullscreen&&(this.checkUpdateOption(u,["exitBtnIcon"])&&this.setBtnIcon(E),this.checkUpdateOption(u,["exitBtnText"])&&this.setBtnText(m),this.checkUpdateOption(u,["exitTitle"])&&this.setBtnTitle(L)),mf((0,Rt.Z)(l.prototype),"setOptions",this).call(this,u)}},{key:"onAdd",value:function(){var u=mf((0,Rt.Z)(l.prototype),"onAdd",this).call(this);return u.addEventListener("click",this.onClick),this.mapContainer=dl(this.scene.getSceneConfig().id),this.mapContainer.addEventListener("fullscreenchange",this.onFullscreenChange),u}},{key:"onRemove",value:function(){mf((0,Rt.Z)(l.prototype),"onRemove",this).call(this),this.mapContainer.removeEventListener("fullscreenchange",this.onFullscreenChange)}},{key:"getDefault",value:function(u){return(0,ze.Z)((0,ze.Z)({},mf((0,Rt.Z)(l.prototype),"getDefault",this).call(this,u)),{},{title:"\u5168\u5C4F",btnIcon:Na("l7-icon-fullscreen"),exitTitle:"\u9000\u51FA\u5168\u5C4F",exitBtnIcon:Na("l7-icon-exit-fullscreen")})}}]),l}(kt);function Km(o){var d=jf();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function jf(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Jp=function(o){(0,lt.Z)(l,o);var d=Km(l);function l(c){var u;return(0,Ct.Z)(this,l),u=d.call(this,c),(0,Tn.Z)((0,ms.Z)(u),"getGeoLocation",function(){return new Promise(function(m,E){window.navigator.geolocation.getCurrentPosition(function(L){var Z=L.coords,ne=Z!=null?Z:{},xe=ne.longitude,Oe=ne.latitude;!isNaN(xe)&&!isNaN(Oe)?m([xe,Oe]):E()},function(L){E(L)})})}),(0,Tn.Z)((0,ms.Z)(u),"onClick",(0,Pl.Z)(Fi().mark(function m(){var E,L,Z;return Fi().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(window.navigator.geolocation){xe.next=2;break}return xe.abrupt("return");case 2:return E=u.controlOption.transform,xe.next=5,u.getGeoLocation();case 5:if(L=xe.sent,Z=u.mapsService.getZoom(),xe.t0=u.mapsService,xe.t1=Z>15?Z:15,!E){xe.next=15;break}return xe.next=12,E(L);case 12:xe.t2=xe.sent,xe.next=16;break;case 15:xe.t2=L;case 16:xe.t3=xe.t2,xe.t0.setZoomAndCenter.call(xe.t0,xe.t1,xe.t3);case 18:case"end":return xe.stop()}},m)}))),window.navigator.geolocation||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u83B7\u53D6\u5730\u7406\u5B9A\u4F4D"),u}return(0,nt.Z)(l,[{key:"getDefault",value:function(u){return(0,ze.Z)((0,ze.Z)({},mf((0,Rt.Z)(l.prototype),"getDefault",this).call(this,u)),{},{title:"\u5B9A\u4F4D",btnIcon:Na("l7-icon-reposition")})}},{key:"onAdd",value:function(){var u=mf((0,Rt.Z)(l.prototype),"onAdd",this).call(this);return u.addEventListener("click",this.onClick),u}}]),l}(kt);function eh(o){var d=ru();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function ru(){if(typeof Reflect=="undefined"||!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(o){return!1}}function Rc(o){return Object.keys(o!=null?o:{}).every(function(d){return["layer","name","img"].includes(d)})}var yu=function(o){(0,lt.Z)(l,o);var d=eh(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E=10?10:E>=5?5:E>=3?3:E>=2?2:1,m*E}},{key:"updateMetric",value:function(u){var m=this.getRoundNum(u),E=m<1e3?m+" m":m/1e3+" km";this.updateScale(this.mScale,E,m/u)}},{key:"updateImperial",value:function(u){var m=u*3.2808399,E,L,Z;m>5280?(E=m/5280,L=this.getRoundNum(E),this.updateScale(this.iScale,L+" mi",L/E)):(Z=this.getRoundNum(m),this.updateScale(this.iScale,Z+" ft",Z/m))}}]),l}(le);function em(o){var d=u0();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function u0(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Z0=function(o){(0,lt.Z)(l,o);var d=em(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;Ec.mapsService.getMinZoom()&&c.mapsService.zoomOut()}),(0,Tn.Z)((0,ms.Z)(c),"updateDisabled",function(){var L=c.mapsService;c.zoomInButton.removeAttribute("disabled"),c.zoomOutButton.removeAttribute("disabled"),(c.disabled||L.getZoom()<=L.getMinZoom())&&c.zoomOutButton.setAttribute("disabled","true"),c.controlOption.showZoom&&c.zoomNumDiv&&(c.zoomNumDiv.innerText=String(Math.floor(L.getZoom()))),(c.disabled||L.getZoom()>=L.getMaxZoom())&&c.zoomInButton.setAttribute("disabled","true")}),c}return(0,nt.Z)(l,[{key:"getDefault",value:function(u){return(0,ze.Z)((0,ze.Z)({},mf((0,Rt.Z)(l.prototype),"getDefault",this).call(this,u)),{},{position:io.BOTTOMRIGHT,name:"zoom",zoomInText:Na("l7-icon-enlarge"),zoomInTitle:"Zoom in",zoomOutText:Na("l7-icon-narrow"),zoomOutTitle:"Zoom out",showZoom:!1})}},{key:"setOptions",value:function(u){mf((0,Rt.Z)(l.prototype),"setOptions",this).call(this,u),this.checkUpdateOption(u,["zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","showZoom"])&&this.resetButtonGroup(this.container)}},{key:"onAdd",value:function(){var u=Os("div","l7-control-zoom");return this.resetButtonGroup(u),this.mapsService.on("zoomend",this.updateDisabled),this.mapsService.on("zoomchange",this.updateDisabled),u}},{key:"onRemove",value:function(){this.mapsService.off("zoomend",this.updateDisabled),this.mapsService.off("zoomchange",this.updateDisabled)}},{key:"disable",value:function(){return this.disabled=!0,this.updateDisabled(),this}},{key:"enable",value:function(){return this.disabled=!1,this.updateDisabled(),this}},{key:"resetButtonGroup",value:function(u){ga(u),this.zoomInButton=this.createButton(this.controlOption.zoomInText,this.controlOption.zoomInTitle,"l7-button-control",u,this.zoomIn),this.controlOption.showZoom&&(this.zoomNumDiv=this.createButton("0","","l7-button-control l7-control-zoom__number",u)),this.zoomOutButton=this.createButton(this.controlOption.zoomOutText,this.controlOption.zoomOutTitle,"l7-button-control",u,this.zoomOut),this.updateDisabled()}},{key:"createButton",value:function(u,m,E,L,Z){var ne=Os("button",E,L);return typeof u=="string"?ne.innerHTML=u:ne.append(u),ne.title=m,Z&&ne.addEventListener("click",Z),ne}}]),l}(le);function t0(o){var d=Dv();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function Dv(){if(typeof Reflect=="undefined"||!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(o){return!1}}var n0=function(o){(0,lt.Z)(l,o);var d=t0(l);function l(c){var u;(0,Ct.Z)(this,l),u=d.call(this),(0,Tn.Z)((0,ms.Z)(u),"isShow",!0),(0,Tn.Z)((0,ms.Z)(u),"onMouseMove",function(E){var L,Z=u.mapsService.getMapContainer(),ne=(L=Z==null?void 0:Z.getBoundingClientRect())!==null&&L!==void 0?L:{},xe=ne.left,Oe=xe===void 0?0:xe,wt=ne.top,Bt=wt===void 0?0:wt;u.setPopupPosition(E.clientX-Oe,E.clientY-Bt)}),(0,Tn.Z)((0,ms.Z)(u),"updateLngLatPosition",function(){if(!(!u.mapsService||u.popupOption.followCursor)){var E=u.lngLat,L=E.lng,Z=E.lat,ne=u.mapsService.lngLatToContainer([L,Z]),xe=ne.x,Oe=ne.y;u.setPopupPosition(xe,Oe)}}),(0,Tn.Z)((0,ms.Z)(u),"onKeyDown",function(E){E.keyCode===27&&u.remove()}),(0,Tn.Z)((0,ms.Z)(u),"onCloseButtonClick",function(E){E.stopPropagation&&E.stopPropagation(),u.hide()}),(0,Tn.Z)((0,ms.Z)(u),"update",function(){var E=!!u.lngLat,L=u.popupOption,Z=L.className,ne=L.style,xe=L.maxWidth,Oe=L.anchor,wt=L.stopPropagation;if(!(!u.mapsService||!E||!u.content)){var Bt=u.mapsService.getMarkerContainer();if(!u.container&&Bt&&(u.container=Os("div","l7-popup ".concat(Z!=null?Z:""," ").concat(u.isShow?"":"l7-popup-hide"),Bt),ne&&u.container.setAttribute("style",ne),u.tip=Os("div","l7-popup-tip",u.container),u.container.appendChild(u.content),wt&&["mousemove","mousedown","mouseup","click","dblclick"].forEach(function(Pr){u.container.addEventListener(Pr,function(ui){ui.stopPropagation()})}),u.container.style.whiteSpace="nowrap"),u.updateLngLatPosition(),iu(u.container,"".concat(zt[Oe])),Jt(u.container,Oe,"popup"),xe){var wn=u.container.getBoundingClientRect(),Rn=wn.width;Rn>parseFloat(xe)&&(u.container.style.width=xe)}else u.container.style.removeProperty("width")}}),u.popupOption=(0,ze.Z)((0,ze.Z)({},u.getDefault(c!=null?c:{})),c);var m=u.popupOption.lngLat;return m&&(u.lngLat=m),u}return(0,nt.Z)(l,[{key:"lngLat",get:function(){var u;return(u=this.popupOption.lngLat)!==null&&u!==void 0?u:{lng:0,lat:0}},set:function(u){this.popupOption.lngLat=u}},{key:"getIsShow",value:function(){return this.isShow}},{key:"addTo",value:function(u){this.mapsService=u.get(Ls.IMapService),this.sceneService=u.get(Ls.ISceneService),this.layerService=u.get(Ls.ILayerService),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update),this.scene=u,this.update(),this.updateCloseOnClick(),this.updateCloseOnEsc(),this.updateFollowCursor();var m=this.popupOption,E=m.html,L=m.text,Z=m.title;return E?this.setHTML(E):L&&this.setText(L),Z&&this.setTitle(Z),this.emit("open"),this}},{key:"remove",value:function(){if(this!==null&&this!==void 0&&this.isOpen())return this.content&&Cs(this.content),this.container&&(Cs(this.container),delete this.container),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.updateCloseOnClick(!0),this.updateCloseOnEsc(!0),this.updateFollowCursor(!0),delete this.mapsService),this.emit("close"),this}},{key:"getOptions",value:function(){return this.popupOption}},{key:"setOptions",value:function(u){return this.show(),this.popupOption=(0,ze.Z)((0,ze.Z)({},this.popupOption),u),this.checkUpdateOption(u,["html","text","title","closeButton","closeButtonOffsets","maxWidth","anchor","stopPropagation","className","style","lngLat","offsets"])&&(this.container&&(Cs(this.container),this.container=void 0),this.popupOption.html?this.setHTML(this.popupOption.html):this.popupOption.text&&this.setText(this.popupOption.text),this.popupOption.title&&this.setTitle(this.popupOption.title)),this.checkUpdateOption(u,["closeOnEsc"])&&this.updateCloseOnEsc(),this.checkUpdateOption(u,["closeOnClick"])&&this.updateCloseOnClick(),this.checkUpdateOption(u,["followCursor"])&&this.updateFollowCursor(),this.checkUpdateOption(u,["html"])&&u.html?this.setHTML(u.html):this.checkUpdateOption(u,["text"])&&u.text&&this.setText(u.text),this.checkUpdateOption(u,["lngLat"])&&u.lngLat&&this.setLnglat(u.lngLat),this}},{key:"open",value:function(){return this.addTo(this.scene),this}},{key:"close",value:function(){return this.remove(),this}},{key:"show",value:function(){if(!this.isShow)return this.container&&Xu(this.container,"l7-popup-hide"),this.isShow=!0,this.emit("show"),this}},{key:"hide",value:function(){if(this.isShow)return this.container&&xa(this.container,"l7-popup-hide"),this.isShow=!1,this.emit("hide"),this}},{key:"setHTML",value:function(u){return this.popupOption.html=u,this.setDOMContent(u)}},{key:"setText",value:function(u){return this.popupOption.text=u,this.setDOMContent(window.document.createTextNode(u))}},{key:"setTitle",value:function(u){this.show(),this.popupOption.title=u,u?(this.contentTitle||(this.contentTitle=Os("div","l7-popup-content__title"),this.content.firstChild?this.content.insertBefore(this.contentTitle,this.content.firstChild):this.content.append(this.contentTitle)),ga(this.contentTitle),ea(this.contentTitle,u)):this.contentTitle&&(Cs(this.contentTitle),this.contentTitle=void 0)}},{key:"panToPopup",value:function(){var u=this.lngLat,m=u.lng,E=u.lat;return this.popupOption.autoPan&&this.mapsService.panTo([m,E]),this}},{key:"setLngLat",value:function(u){return this.setLnglat(u)}},{key:"setLnglat",value:function(u){var m=this;return this.show(),this.lngLat=u,Array.isArray(u)&&(this.lngLat={lng:u[0],lat:u[1]}),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.update(),this.popupOption.autoPan&&setTimeout(function(){m.panToPopup()},0),this}},{key:"getLnglat",value:function(){return this.lngLat}},{key:"setMaxWidth",value:function(u){return this.popupOption.maxWidth=u,this.update(),this}},{key:"isOpen",value:function(){return!!this.mapsService}},{key:"getDefault",value:function(u){return{closeButton:!0,closeOnClick:!1,maxWidth:"240px",offsets:[0,0],anchor:bn.BOTTOM,stopPropagation:!0,autoPan:!1,autoClose:!0,closeOnEsc:!1,followCursor:!1}}},{key:"setDOMContent",value:function(u){return this.show(),this.createContent(),ea(this.contentPanel,u),this.update(),this}},{key:"updateCloseOnClick",value:function(u){var m=this,E=this.mapsService;E&&(E==null||E.off("click",this.onCloseButtonClick),this.popupOption.closeOnClick&&!u&&requestAnimationFrame(function(){E==null||E.on("click",m.onCloseButtonClick)}))}},{key:"updateCloseOnEsc",value:function(u){window.removeEventListener("keydown",this.onKeyDown),this.popupOption.closeOnEsc&&!u&&window.addEventListener("keydown",this.onKeyDown)}},{key:"updateFollowCursor",value:function(u){var m,E=(m=this.mapsService)===null||m===void 0?void 0:m.getContainer();E&&(E==null||E.removeEventListener("mousemove",this.onMouseMove),this.popupOption.followCursor&&!u&&(E==null||E.addEventListener("mousemove",this.onMouseMove)))}},{key:"createContent",value:function(){var u=this;if(this.content&&Cs(this.content),this.contentTitle=void 0,this.content=Os("div","l7-popup-content",this.container),this.setTitle(this.popupOption.title),this.popupOption.closeButton){var m=Na("l7-icon-guanbi");xa(m,"l7-popup-close-button"),this.content.appendChild(m),this.popupOption.closeButtonOffsets&&(m.style.right=this.popupOption.closeButtonOffsets[0]+"px",m.style.top=this.popupOption.closeButtonOffsets[1]+"px"),m.setAttribute("aria-label","Close popup"),m.addEventListener("click",function(){u.hide()}),m.addEventListener("pointerup",function(E){E.stopPropagation()}),m.addEventListener("pointerdown",function(E){E.stopPropagation()}),this.closeButton=m}else this.closeButton=void 0;this.contentPanel=Os("div","l7-popup-content__panel",this.content)}},{key:"setPopupPosition",value:function(u,m){if(this.container){var E=this.popupOption.offsets;this.container.style.left=u+E[0]+"px",this.container.style.top=m-E[1]+"px"}}},{key:"checkUpdateOption",value:function(u,m){return m.some(function(E){return E in u})}}]),l}(uc.EventEmitter);function ay(o){var d=ly();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function ly(){if(typeof Reflect=="undefined"||!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(o){return!1}}var rx=fs.get,H1=function(o){(0,lt.Z)(l,o);var d=ay(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0;)l=l+c*(u%d),u=Math.floor(u/d),c=c/d;return l}var N3=1,fT=(cT=(0,Go.b2)(),hT=(0,Go.f3)(Zs.IShaderModuleService),cT(xb=(xv=function(o){(0,lt.Z)(l,o);var d=_C(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E=1&&(ne(this.copyRenderTarget,function(){m.outputModel.draw({uniforms:{u_Texture:m.outputRenderTarget}})}),ne(u.multiPassRenderer.getPostProcessor().getReadFBO(),function(){m.copyModel.draw({uniforms:{u_Texture:m.copyRenderTarget}})}),u.multiPassRenderer.getPostProcessor().render(u));var ao=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=ao,this.frame++,this.cameraService.clearJitterProjectionMatrix()}},{key:"isFinished",value:function(){return this.frame>=this.haltonSequence.length}},{key:"resetFrame",value:function(){this.frame=0}},{key:"stopAccumulating",value:function(){this.accumulatingId=0,window.clearTimeout(this.timer)}},{key:"createTriangleModel",value:function(u,m,E){this.shaderModuleService.registerModule(u,{vs:O3,fs:m});var M=this.shaderModuleService.getModule(u),Z=M.vs,ne=M.fs,Ce=M.uniforms,Oe=this.rendererService,Ct=Oe.createAttribute,Bt=Oe.createBuffer,An=Oe.createModel;return An((0,Be.Z)({vs:Z,fs:ne,attributes:{a_Position:Ct({buffer:Bt({data:[-4,-4,4,-4,0,4],type:Ai.FLOAT}),size:2})},uniforms:(0,Be.Z)({},Ce),depth:{enable:!1},count:3},E))}}]),l}($m),dT=Fh(xv.prototype,"shaderModuleService",[hT],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xv))||xb),wb=new Go.W2;wb.bind(Zs.IGlobalConfigService).to(rf).inSingletonScope(),(0,Go.GW)((0,Go.b2)(),gc.EventEmitter),wb.bind(Zs.IEventEmitter).to(gc.EventEmitter);var pT=(0,nl.Z)(wb,!1),I0=function(d){var l=pT.lazyInject(d);return function(c,u,m){l.call(this,c,u),m&&(m.initializer=function(){return c[u]})}},gT=function(d){var l=pT.lazyMultiInject(d);return function(c,u,m){l.call(this,c,u),m&&(m.initializer=function(){return c[u]})}},sy=wb,b2=0;function j_(){var o=new Go.W2;return o.parent=wb,o.bind(Zs.SceneID).toConstantValue("".concat(b2++)),o.bind(Zs.IShaderModuleService).to(np).inSingletonScope(),o.bind(Zs.ILayerService).to(Ix).inSingletonScope(),o.bind(Zs.IDebugService).to(Ug).inSingletonScope(),o.bind(Zs.ISceneService).to(oe).inSingletonScope(),o.bind(Zs.ICameraService).to(hi).inSingletonScope(),o.bind(Zs.ICoordinateSystemService).to($g).inSingletonScope(),o.bind(Zs.IInteractionService).to(u1).inSingletonScope(),o.bind(Zs.IPickingService).to(V0).inSingletonScope(),o.bind(Zs.IControlService).to(Cc).inSingletonScope(),o.bind(Zs.IMarkerService).to(Ch).inSingletonScope(),o.bind(Zs.IIconService).to(Qm).inSingletonScope(),o.bind(Zs.IFontService).to(xm).inSingletonScope(),o.bind(Zs.IPopupService).to(Pp).inSingletonScope(),o.bind(Zs.INormalPass).to(e0).whenTargetNamed("clear"),o.bind(Zs.INormalPass).to(XE).whenTargetNamed("pixelPicking"),o.bind(Zs.INormalPass).to(k3).whenTargetNamed("render"),o.bind(Zs.INormalPass).to(fT).whenTargetNamed("taa"),o.bind(Zs.IFactoryNormalPass).toFactory(function(d){return function(l){return d.container.getNamed(Zs.INormalPass,l)}}),o.bind(Zs.IPostProcessingPass).to(JI).whenTargetNamed("copy"),o.bind(Zs.IPostProcessingPass).to(y3).whenTargetNamed("bloom"),o.bind(Zs.IPostProcessingPass).to(zy).whenTargetNamed("blurH"),o.bind(Zs.IPostProcessingPass).to(kx).whenTargetNamed("blurV"),o.bind(Zs.IPostProcessingPass).to(lf).whenTargetNamed("noise"),o.bind(Zs.IPostProcessingPass).to(M3).whenTargetNamed("sepia"),o.bind(Zs.IPostProcessingPass).to(sT).whenTargetNamed("colorHalftone"),o.bind(Zs.IPostProcessingPass).to(v2).whenTargetNamed("hexagonalPixelate"),o.bind(Zs.IPostProcessingPass).to(vC).whenTargetNamed("ink"),o.bind(Zs.IFactoryPostProcessingPass).toFactory(function(d){return function(l){var c=d.container.getNamed(Zs.IPostProcessingPass,l);return c.setName(l),c}}),o}function Nx(o){var d=new Go.W2;return d.parent=o,d.bind(Zs.IStyleAttributeService).to(jE).inSingletonScope(),d.bind(Zs.IMultiPassRenderer).to(Qb).inSingletonScope(),d.bind(Zs.IPostProcessor).to(y_).inSingletonScope(),d}var Cb=["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"];function DS(o){return Cb.indexOf(o)}var W_=fs.clamp,mT=2,F3=4,IS=64,xC=128,W0=256,P0=512,Pm=8192,D1=16384,vT=32768,$y=null,Fx=131072,B3=262144,__=524288,x2=1048576,z3=2097152,o4=4194304,Sb=8388608,wC=16777216,s4=null;function n1(o,d){return o=W_(Math.floor(o),0,255),d=W_(Math.floor(d),0,255),256*o+d}function qL(o){var d=o.color,l=o.radius,c=o.tileX,u=o.tileY,m=o.shape,E=o.opacity,M=o.stroke,Z=o.strokeWidth,ne=o.strokeOpacity,Ce=[],Oe=[],Ct=[],Bt=[n1(d[0],d[1]),n1(d[2],d[3])],An=[n1(M[0],M[1]),n1(M[2],M[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(kn){var Ir=(0,Or.Z)(kn,2),ui=Ir[0],ao=Ir[1];Ce.push([].concat(Bt,[(ui+1)*Sb+(ao+1)*z3+DS(m)*Fx+l,(c+512)*__+(u+512)*IS])),Oe.push([].concat(An,[Z,ne])),Ct.push([E,0,0,0])}),{packedBuffer:Ce,packedBuffer2:Oe,packedBuffer3:Ct}}function a4(o,d){if(o===0&&!d)return 0;if(o===1&&d)return 4294967295;var l=d?1:0,c=Math.floor(o*127);return c*s4+l*wC+c*Fx+l*$y+c*P0+l*W0+c*mT+l}var b_={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"},Uv={MapInitStart:"mapInitStart",LayerInitStart:"layerInitStart",LayerInitEnd:"layerInitEnd",SourceInitStart:"sourceInitStart",SourceInitEnd:"sourceInitEnd",ScaleInitStart:"scaleInitStart",ScaleInitEnd:"scaleInitEnd",MappingStart:"mappingStart",MappingEnd:"mappingEnd",BuildModelStart:"buildModelStart",BuildModelEnd:"buildModelEnd"},B0=function(o){return o.LINEAR="linear",o.SEQUENTIAL="sequential",o.POWER="power",o.LOG="log",o.IDENTITY="identity",o.TIME="time",o.QUANTILE="quantile",o.QUANTIZE="quantize",o.THRESHOLD="threshold",o.CAT="cat",o.DIVERGING="diverging",o}({}),Bx=function(o){return o.CONSTANT="constant",o.VARIABLE="variable",o}({}),Id=function(o){return o[o.Attribute=0]="Attribute",o[o.InstancedAttribute=1]="InstancedAttribute",o[o.Uniform=2]="Uniform",o}({}),x_=["mapload","mapchange","mapAfterFrameChange"],w2=["loaded","fontloaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"],Kg=function(o){return o.IMAGE="image",o.CUSTOMIMAGE="customImage",o.ARRAYBUFFER="arraybuffer",o.RGB="rgb",o.TERRAINRGB="terrainRGB",o.CUSTOMRGB="customRGB",o.CUSTOMARRAYBUFFER="customArrayBuffer",o.CUSTOMTERRAINRGB="customTerrainRGB",o}({}),l4=function(){var o=(0,Pl.Z)(Oi().mark(function d(l,c,u,m){return Oi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",new Promise(function(Z,ne){c({x:l.x,y:l.y,z:l.z},function(Ce,Oe){if(Ce||Oe.length===0){ne(Ce);return}Oe&&Pa([{data:Oe,bands:[0]}],u,m,function(Ct,Bt){Ct?ne(Ct):Bt&&Z(Bt)})})}));case 1:case"end":return M.stop()}},d)}));return function(l,c,u,m){return o.apply(this,arguments)}}(),U3=function(){var o=(0,Pl.Z)(Oi().mark(function d(l,c){return Oi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",new Promise(function(E,M){c({x:l.x,y:l.y,z:l.z},function(Z,ne){if(Z||!ne){M(Z);return}ne instanceof ArrayBuffer?In(ne,function(Ce,Oe){Ce&&M(Ce),E(Oe)}):ne instanceof HTMLImageElement?E(ne):M(Z)})}));case 1:case"end":return m.stop()}},d)}));return function(l,c){return o.apply(this,arguments)}}();function yT(o,d){return Array.isArray(o)?typeof o[0]=="string"?o.map(function(l){return zh(l,d)}):o.map(function(l){return{url:zh(l.url,d),bands:l.bands||[0]}}):zh(o,d)}function gw(o){return typeof o=="string"?[{url:o,bands:[0]}]:typeof o[0]=="string"?o.map(function(d){return{url:d,bands:[0]}}):o}function PS(o,d){o.xhrCancel=function(){d.map(function(l){l.abort()})}}var w_=function(){var o=(0,Pl.Z)(Oi().mark(function d(l,c,u,m,E){var M,Z,ne,Ce,Oe,Ct;return Oi().wrap(function(An){for(;;)switch(An.prev=An.next){case 0:if(M=gw(c.url),!(M.length>1)){An.next=15;break}return An.next=4,u4(M,c);case 4:if(Z=An.sent,ne=Z.rasterFiles,Ce=Z.xhrList,Oe=Z.errList,PS(l,Ce),!(Oe.length>0)){An.next=12;break}return u(Oe,null),An.abrupt("return");case 12:Pa(ne,m,E,u),An.next=17;break;case 15:Ct=di(c,function(kn,Ir){if(kn)u(kn);else if(Ir){var ui=[{data:Ir,bands:M[0].bands}];Pa(ui,m,E,u)}}),PS(l,[Ct]);case 17:case"end":return An.stop()}},d)}));return function(l,c,u,m,E){return o.apply(this,arguments)}}();function u4(o,d){return Z1.apply(this,arguments)}function Z1(){return Z1=(0,Pl.Z)(Oi().mark(function o(d,l){var c,u,m,E,M,Z,ne,Ce,Oe,Ct,Bt;return Oi().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:c=[],u=[],m=[],E=0;case 4:if(!(E1&&arguments[1]!==void 0?arguments[1]:{};if(bT(o))throw new Error("tile server url is error");var l=(d==null?void 0:d.dataType)||Kg.IMAGE;l===Kg.RGB&&(l=Kg.ARRAYBUFFER);var c=function(E,M){switch(l){case Kg.IMAGE:return C2(o,E,M,d);case Kg.CUSTOMIMAGE:case Kg.CUSTOMTERRAINRGB:return U3(M,d==null?void 0:d.getCustomData);case Kg.ARRAYBUFFER:return c4(o,E,M,(d==null?void 0:d.format)||rm,d==null?void 0:d.operation);case Kg.CUSTOMARRAYBUFFER:case Kg.CUSTOMRGB:return l4(M,d==null?void 0:d.getCustomData,(d==null?void 0:d.format)||rm,d==null?void 0:d.operation);default:return C2(o,E,M,d)}},u=(0,Be.Z)((0,Be.Z)((0,Be.Z)({},$3),d),{},{getTileData:c});return{data:o,dataArray:[],tilesetOptions:u,isTile:!0}}var j3=["extent","min","max","width","height","format","operation"];function W3(o,d){var l=d.extent,c=d.min,u=d.max,m=d.width,E=d.height,M=d.format,Z=d.operation,ne=(0,hm.Z)(d,j3),Ce;if(M===void 0||Mn(o))Ce=Array.from(o);else{var Oe=Array.isArray(o)?o:[o];Ce=tr(Oe,M,Z)}var Ct={_id:1,dataArray:[(0,Be.Z)((0,Be.Z)({_id:1,data:Ce,width:m,height:E},ne),{},{min:c,max:u,coordinates:[[l[0],l[1]],[l[2],l[3]]]})]};return Ct}var Eb={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},xT=function(){var o=(0,Pl.Z)(Oi().mark(function d(l){return Oi().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",new Promise(function(m){var E=(0,Or.Z)(l.bounds,4),M=E[0],Z=E[1],ne=E[2],Ce=E[3],Oe={layers:{testTile:{features:[{type:"Feature",properties:{key:l.x+"/"+l.y+"/"+l.z,x:(M+ne)/2,y:(Z+Ce)/2},geometry:{type:"LineString",coordinates:[[ne,Ce],[ne,Z],[M,Z],[M,Z]]}}]}}};m(Oe)}));case 1:case"end":return u.stop()}},d)}));return function(l){return o.apply(this,arguments)}}();function im(o,d){var l=function(m){return xT(m)},c=(0,Be.Z)((0,Be.Z)((0,Be.Z)({},Eb),d),{},{getTileData:l});return{data:o,dataArray:[],tilesetOptions:c,isTile:!0}}var LS=y(69848),r1=y.n(LS);function rx(o,d){var l=d.radius,c=l===void 0?40:l,u=d.maxZoom,m=u===void 0?18:u,E=d.minZoom,M=E===void 0?0:E,Z=d.zoom,ne=Z===void 0?2:Z;if(o.pointIndex){var Ce=o.pointIndex.getClusters(o.extent,Math.floor(ne));return o.dataArray=RS(Ce),o}var Oe=new(r1())({radius:c,minZoom:M,maxZoom:m}),Ct={type:"FeatureCollection",features:[]};return Ct.features=o.dataArray.map(function(Bt){return{type:"Feature",geometry:{type:"Point",coordinates:Bt.coordinates},properties:(0,Be.Z)({},Bt)}}),Oe.load(Ct.features),Oe}function RS(o){return o.map(function(d,l){return(0,Be.Z)({coordinates:d.geometry.coordinates,_id:l+1},d.properties)})}function wT(o){if(o.length===0)throw new Error("max requires at least one data point");for(var d=o[0],l=1;ld&&(d=o[l]);return d}function CT(o){if(o.length===0)throw new Error("min requires at least one data point");for(var d=o[0],l=1;l=Math.abs(o[u])?l+=d-c+o[u]:l+=o[u]-c+d,d=c;return d+l*1}function ST(o){if(o.length===0)throw new Error("mean requires at least one data point");return CC(o)/o.length}var i_={min:CT,max:wT,mean:ST,sum:CC};function SC(o){var d=EC();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function EC(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Z3=fs.cloneDeep,TC=fs.isFunction,kS=fs.isString,mw=fs.mergeWith;function OS(o,d){if(Array.isArray(d))return d}var h4=function(o){(0,lt.Z)(l,o);var d=SC(l);function l(c,u){var m;return(0,wt.Z)(this,l),m=d.call(this),(0,Tn.Z)((0,ys.Z)(m),"type","source"),(0,Tn.Z)((0,ys.Z)(m),"isTile",!1),(0,Tn.Z)((0,ys.Z)(m),"inited",!1),(0,Tn.Z)((0,ys.Z)(m),"hooks",{init:new V1}),(0,Tn.Z)((0,ys.Z)(m),"parser",{type:"geojson"}),(0,Tn.Z)((0,ys.Z)(m),"transforms",[]),(0,Tn.Z)((0,ys.Z)(m),"cluster",!1),(0,Tn.Z)((0,ys.Z)(m),"clusterOptions",{enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"}),(0,Tn.Z)((0,ys.Z)(m),"invalidExtent",!1),(0,Tn.Z)((0,ys.Z)(m),"dataArrayChanged",!1),(0,Tn.Z)((0,ys.Z)(m),"cfg",{autoRender:!0}),m.originData=c,m.initCfg(u),m.init().then(function(){m.inited=!0,m.emit("update",{type:"inited"})}),m}return(0,nt.Z)(l,[{key:"getSourceCfg",value:function(){return this.cfg}},{key:"getClusters",value:function(u){return this.clusterIndex.getClusters(this.caculClusterExtent(2),u)}},{key:"getClustersLeaves",value:function(u){return this.clusterIndex.getLeaves(u,1/0)}},{key:"getParserType",value:function(){return this.parser.type}},{key:"updateClusterData",value:function(u){var m=this,E=this.clusterOptions,M=E.method,Z=M===void 0?"sum":M,ne=E.field,Ce=this.clusterIndex.getClusters(this.caculClusterExtent(2),Math.floor(u));this.clusterOptions.zoom=u,Ce.forEach(function(Oe){Oe.id||(Oe.properties.point_count=1)}),(ne||TC(Z))&&(Ce=Ce.map(function(Oe){var Ct=Oe.id;if(Ct){var Bt=m.clusterIndex.getLeaves(Ct,1/0),An=Bt.map(function(ui){return ui.properties}),kn;if(kS(Z)&&ne){var Ir=Vr(An,ne);kn=i_[Z](Ir)}TC(Z)&&(kn=Z(An)),Oe.properties.stat=kn}else Oe.properties.point_count=1;return Oe})),this.data=k("geojson")({type:"FeatureCollection",features:Ce}),this.executeTrans()}},{key:"getFeatureById",value:function(u){var m=this.parser,E=m.type,M=E===void 0?"geojson":E,Z=m.geometry;if(M==="geojson"&&!this.cluster){var ne=u=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function ET(o,d){if(o){if(typeof o=="string")return TT(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return TT(o,d)}}function TT(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lc?u:c)}}catch(wo){m.e(wo)}finally{m.f()}var Z=(l+c)/2,ne=G3(d,Z);if(ne.xOffset<=0||ne.yOffset<=0)return{gridHash:{},gridOffset:ne};var Ce={},Oe=zx(o),Ct;try{for(Oe.s();!(Ct=Oe.n()).done;){var Bt=Ct.value,An=Bt.coordinates[1],kn=Bt.coordinates[0];if(Number.isFinite(An)&&Number.isFinite(kn)){var Ir=Math.floor((An+90)/ne.yOffset),ui=Math.floor((kn+180)/ne.xOffset),ao="".concat(Ir,"-").concat(ui);Ce[ao]=Ce[ao]||{count:0,points:[]},Ce[ao].count+=1,Ce[ao].points.push(Bt)}}}catch(wo){Oe.e(wo)}finally{Oe.f()}return{gridHash:Ce,gridOffset:ne}}function G3(o,d){var l=d4(o),c=vw(d,o);return{yOffset:l,xOffset:c}}function d4(o){return o/AC*(180/Math.PI)}function vw(o,d){return d/AC*(180/Math.PI)/Math.cos(o*Math.PI/180)}function K3(o,d,l){return Object.keys(o).reduce(function(c,u,m){var E=u.split("-"),M=parseInt(E[0],10),Z=parseInt(E[1],10),ne={};if(l.field&&l.method){var Ce=ih(o[u].points,l.field);ne[l.method]=Yc[l.method](Ce)}return Object.assign(ne,{_id:m,coordinates:Md([-180+d.xOffset*(Z+.5),-90+d.yOffset*(M+.5)]),rawData:o[u].points,count:o[u].count}),c.push(ne),c},[])}var Ux=Math.PI/3,AT=[0,Ux,2*Ux,3*Ux,4*Ux,5*Ux];function f4(o){return o[0]}function X3(o){return o[1]}function NS(){var o=0,d=0,l=1,c=1,u=f4,m=X3,E,M,Z;function ne(Oe){var Ct={},Bt=[],An,kn=Oe.length;for(An=0;An1){var fa=ui-Ds,Wa=Ds+(uiQl*Ql+Ou*Ou&&(Ds=Wa+(wo&1?1:-1)/2,wo=vl)}var Uu=Ds+"-"+wo,hh=Ct[Uu];hh?hh.push(Ir):(Bt.push(hh=Ct[Uu]=[Ir]),hh.x=(Ds+(wo&1)/2)*M,hh.y=wo*Z)}return Bt}function Ce(Oe){var Ct=0,Bt=0;return AT.map(function(An){var kn=Math.sin(An)*Oe,Ir=-Math.cos(An)*Oe,ui=kn-Ct,ao=Ir-Bt;return Ct=kn,Bt=Ir,[ui,ao]})}return ne.hexagon=function(Oe){return"m"+Ce(Oe==null?E:+Oe).join("l")+"z"},ne.centers=function(){for(var Oe=[],Ct=Math.round(d/Z),Bt=Math.round(o/M),An=Ct*Z;An180||Math.abs(An[1][0])>180){if(Ce.x>Bt){var kn=this.mapsService.lngLatToContainer([Z-360,ne]);Ce.x=kn.x}if(Ce.x<0){var Ir=this.mapsService.lngLatToContainer([Z+360,ne]);Ce.x=Ir.x}}(Ce.x>Bt||Ce.x<0||Ce.y>Ct||Ce.y<0)&&(m.style.display="none"),m.style.left=Ce.x+E[0]+"px",m.style.top=Ce.y-E[1]+"px"}}}},{key:"init",value:function(){var u=this,m=this.markerOption.element,E=this.markerOption,M=E.color,Z=E.anchor;if(!m){this.defaultMarker=!0,m=Os("div"),this.markerOption.element=m;var ne=document.createElementNS("http://www.w3.org/2000/svg","svg");ne.setAttributeNS(null,"display","block"),ne.setAttributeNS(null,"height","48px"),ne.setAttributeNS(null,"width","48px"),ne.setAttributeNS(null,"viewBox","0 0 1024 1024");var Ce=document.createElementNS("http://www.w3.org/2000/svg","path");Ce.setAttributeNS(null,"d","M512 490.666667C453.12 490.666667 405.333333 442.88 405.333333 384 405.333333 325.12 453.12 277.333333 512 277.333333 570.88 277.333333 618.666667 325.12 618.666667 384 618.666667 442.88 570.88 490.666667 512 490.666667M512 85.333333C346.88 85.333333 213.333333 218.88 213.333333 384 213.333333 608 512 938.666667 512 938.666667 512 938.666667 810.666667 608 810.666667 384 810.666667 218.88 677.12 85.333333 512 85.333333Z"),Ce.setAttributeNS(null,"fill",M),ne.appendChild(Ce),m.appendChild(ne)}ba(m,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(function(Oe){var Ct,Bt,An=((Ct=u.markerOption)===null||Ct===void 0?void 0:Ct.style)&&((Bt=u.markerOption)===null||Bt===void 0?void 0:Bt.style[Oe]);m&&(m.style[Oe]=An)}),en(m,Z,"marker")}},{key:"registerMarkerEvent",value:function(u){u.addEventListener("click",this.onMapClick),u.addEventListener("mousemove",this.eventHandle),u.addEventListener("click",this.eventHandle),u.addEventListener("mousedown",this.eventHandle),u.addEventListener("mouseup",this.eventHandle),u.addEventListener("dblclick",this.eventHandle),u.addEventListener("contextmenu",this.eventHandle),u.addEventListener("mouseover",this.eventHandle),u.addEventListener("mouseout",this.eventHandle),u.addEventListener("touchstart",this.eventHandle),u.addEventListener("touchend",this.eventHandle)}},{key:"unRegisterMarkerEvent",value:function(){var u=this.getElement();u.removeEventListener("click",this.onMapClick),u.removeEventListener("mousemove",this.eventHandle),u.removeEventListener("click",this.eventHandle),u.removeEventListener("mousedown",this.eventHandle),u.removeEventListener("mouseup",this.eventHandle),u.removeEventListener("dblclick",this.eventHandle),u.removeEventListener("contextmenu",this.eventHandle),u.removeEventListener("mouseover",this.eventHandle),u.removeEventListener("mouseout",this.eventHandle),u.removeEventListener("touchstart",this.eventHandle),u.removeEventListener("touchend",this.eventHandle)}},{key:"polyfillEvent",value:function(u){!this.mapsService||this.mapsService.version!=="GAODE2.x"||Sl()||(u.type==="touchstart"&&(this.touchStartTime=Date.now()),u.type==="touchend"&&Date.now()-this.touchStartTime<300&&this.emit("click",{target:u,data:this.markerOption.extData,lngLat:this.lngLat}))}},{key:"addDragHandler",value:function(u){return null}},{key:"onUp",value:function(u){throw new Error("Method not implemented.")}}]),l}(gc.EventEmitter);function g4(o){var d=m4();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function m4(){if(typeof Reflect=="undefined"||!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(o){return!1}}var v4=fs.merge,x=function(o){(0,lt.Z)(l,o);var d=g4(l);function l(c){var u,m;return(0,wt.Z)(this,l),m=d.call(this),(0,Tn.Z)((0,ys.Z)(m),"markers",[]),(0,Tn.Z)((0,ys.Z)(m),"points",[]),(0,Tn.Z)((0,ys.Z)(m),"clusterMarkers",[]),m.markerLayerOption=v4(m.getDefault(),c),nc(["update"],(0,ys.Z)(m)),m.zoom=((u=m.markerLayerOption.clusterOption)===null||u===void 0?void 0:u.zoom)||-99,m}return(0,nt.Z)(l,[{key:"getDefault",value:function(){return{cluster:!1,clusterOption:{radius:80,maxZoom:20,minZoom:0,zoom:-99,style:{},className:""}}}},{key:"addTo",value:function(u){return this.scene=u,this.mapsService=u.get(Zs.IMapService),this.markerLayerOption.cluster&&(this.initCluster(),this.update(),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.mapsService.on("camerachange",this.setContainerSize.bind(this)),this.mapsService.on("viewchange",this.setContainerSize.bind(this)),this.addMarkers(),this.inited=!0,this}},{key:"setContainerSize",value:function(){if(this.mapsService){var u=this.mapsService.getContainer();this.containerSize={containerWidth:(u==null?void 0:u.scrollWidth)||0,containerHeight:(u==null?void 0:u.scrollHeight)||0,bounds:this.mapsService.getBounds()}}}},{key:"getContainerSize",value:function(){return this.containerSize}},{key:"addMarker",value:function(u){var m=this.markerLayerOption.cluster;if(u.getMarkerLayerContainerSize=this.getContainerSize.bind(this),m&&(this.addPoint(u,this.markers.length),this.mapsService)){var E=this.mapsService.getZoom(),M=this.mapsService.getBounds();this.bbox=ou(M,.5),this.zoom=Math.floor(E),this.getClusterMarker(this.bbox,this.zoom)}this.markers.push(u)}},{key:"removeMarker",value:function(u){this.markers.indexOf(u);var m=this.markers.indexOf(u);m>-1&&(this.markers.splice(m,1),this.markerLayerOption.cluster&&(this.removePoint(m),this.mapsService&&this.getClusterMarker(this.bbox,this.zoom)))}},{key:"hide",value:function(){this.markers.map(function(u){u.getElement().style.opacity="0"}),this.clusterMarkers.map(function(u){u.getElement().style.opacity="0"})}},{key:"show",value:function(){this.markers.map(function(u){u.getElement().style.opacity="1"}),this.clusterMarkers.map(function(u){u.getElement().style.opacity="1"})}},{key:"getMarkers",value:function(){var u=this.markerLayerOption.cluster;return u?this.clusterMarkers:this.markers}},{key:"getOriginMarkers",value:function(){return this.markers}},{key:"addMarkers",value:function(){var u=this;this.getMarkers().forEach(function(m){m.addTo(u.scene)})}},{key:"clear",value:function(){this.markers.forEach(function(u){u.remove()}),this.clusterMarkers.forEach(function(u){u.remove()}),this.markers=[],this.points=[],this.clusterMarkers=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners(),this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.off("camerachange",this.setContainerSize.bind(this)),this.mapsService.off("viewchange",this.setContainerSize.bind(this))}},{key:"addPoint",value:function(u,m){var E=u.getLnglat(),M=E.lng,Z=E.lat,ne={geometry:{type:"Point",coordinates:[M,Z]},properties:(0,Be.Z)((0,Be.Z)({},u.getExtData()),{},{marker_id:m})};this.points.push(ne),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"removePoint",value:function(u){var m=this.points.findIndex(function(E){return E.properties.marker_id===u});m>-1&&this.points.splice(m,1),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"initCluster",value:function(){if(this.markerLayerOption.cluster){var u=this.markerLayerOption.clusterOption,m=u.radius,E=u.minZoom,M=E===void 0?0:E,Z=u.maxZoom;this.clusterIndex=new(r1())({radius:m,minZoom:M,maxZoom:Z}),this.clusterIndex.load(this.points)}}},{key:"getClusterMarker",value:function(u,m){var E=this,M=u[0].concat(u[1]),Z=this.clusterIndex.getClusters(M,m);this.clusterMarkers.forEach(function(ne){ne.remove()}),this.clusterMarkers=[],Z.forEach(function(ne){var Ce,Oe=E.markerLayerOption.clusterOption,Ct=Oe.field,Bt=Oe.method;if((Ce=ne.properties)!==null&&Ce!==void 0&&Ce.cluster_id){var An,kn=E.getLeaves((An=ne.properties)===null||An===void 0?void 0:An.cluster_id);if(ne.properties.clusterData=kn,Ct&&Bt){var Ir=kn==null?void 0:kn.map(function(oa){var fa=(0,Tn.Z)({},Ct,oa.properties[Ct]);return fa}),ui=ih(Ir,Ct),ao=Sd(Bt,ui),wo="point_"+Bt;ne.properties[wo]=ao.toFixed(2)}}var Ds=E.clusterMarker(ne);E.clusterMarkers.push(Ds),Ds.addTo(E.scene)})}},{key:"getLeaves",value:function(u){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1/0,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return u?this.clusterIndex.getLeaves(u,m,E):null}},{key:"clusterMarker",value:function(u){var m=this.markerLayerOption.clusterOption,E=m,M=E.element,Z=M===void 0?this.generateElement.bind(this):M,ne=new E2({element:Z(u)}).setLnglat({lng:u.geometry.coordinates[0],lat:u.geometry.coordinates[1]});return ne}},{key:"normalMarker",value:function(u){var m=u.properties.marker_id;return this.markers[m]}},{key:"update",value:function(){if(this.mapsService&&this.markers.length!==0){var u=this.mapsService.getZoom(),m=this.mapsService.getBounds();(!this.bbox||Math.abs(u-this.zoom)>=1||!ac(this.bbox,m))&&(this.bbox=ou(m,.5),this.zoom=Math.floor(u),this.getClusterMarker(this.bbox,this.zoom))}}},{key:"generateElement",value:function(u){var m=Os("div","l7-marker-cluster"),E=Os("div","",m),M=Os("span","",E),Z=this.markerLayerOption.clusterOption,ne=Z.field,Ce=Z.method;u.properties.point_count=u.properties.point_count||1;var Oe=ne&&Ce?u.properties["point_"+Ce]||u.properties[ne]:u.properties.point_count;return M.textContent=Oe,m}}]),l}(gc.EventEmitter),z=y(4157);function N(o){var d=se();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function se(){if(typeof Reflect=="undefined"||!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(o){return!1}}var ue=function(o){(0,lt.Z)(l,o);var d=N(l);function l(c){var u;return(0,wt.Z)(this,l),u=d.call(this),l.controlCount++,u.controlOption=(0,Be.Z)((0,Be.Z)({},u.getDefault(c)),c||{}),u}return(0,nt.Z)(l,[{key:"getOptions",value:function(){return this.controlOption}},{key:"setOptions",value:function(u){var m=this.getDefault(u);Object.entries(u).forEach(function(E){var M=(0,Or.Z)(E,2),Z=M[0],ne=M[1];ne===void 0&&(u[Z]=m[Z])}),"position"in u&&this.setPosition(u.position),"className"in u&&this.setClassName(u.className),"style"in u&&this.setStyle(u.style),this.controlOption=(0,Be.Z)((0,Be.Z)({},this.controlOption),u)}},{key:"addTo",value:function(u){this.mapsService=u.get(Zs.IMapService),this.renderService=u.get(Zs.IRendererService),this.layerService=u.get(Zs.ILayerService),this.controlService=u.get(Zs.IControlService),this.configService=u.get(Zs.IGlobalConfigService),this.scene=u.get(Zs.ISceneService),this.sceneContainer=u,this.isShow=!0,this.container=this.onAdd(),ba(this.container,"l7-control");var m=this.controlOption,E=m.className,M=m.style;return E&&this.setClassName(E),M&&this.setStyle(M),this.insertContainer(),this.emit("add",this),this}},{key:"remove",value:function(){if(!this.mapsService)return this;Cs(this.container),this.onRemove(),this.emit("remove",this)}},{key:"onAdd",value:function(){return Os("div")}},{key:"onRemove",value:function(){}},{key:"show",value:function(){var u=this.container;Yu(u,"l7-control--hide"),this.isShow=!0,this.emit("show",this)}},{key:"hide",value:function(){var u=this.container;ba(u,"l7-control--hide"),this.isShow=!1,this.emit("hide",this)}},{key:"getDefault",value:function(u){return{position:oo.TOPRIGHT,name:"".concat(l.controlCount)}}},{key:"getContainer",value:function(){return this.container}},{key:"getIsShow",value:function(){return this.isShow}},{key:"_refocusOnMap",value:function(u){if(this.mapsService&&u&&u.screenX>0&&u.screenY>0){var m=this.mapsService.getContainer();m!==null&&m.focus()}}},{key:"setPosition",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oo.TOPLEFT,m=this.controlService;return m&&m.removeControl(this),this.controlOption.position=u,m&&m.addControl(this,this.sceneContainer),this}},{key:"setClassName",value:function(u){var m=this.container,E=this.controlOption.className;E&&Yu(m,E),u&&ba(m,u)}},{key:"setStyle",value:function(u){var m=this.container;u?m.setAttribute("style",u):m.removeAttribute("style")}},{key:"insertContainer",value:function(){var u=this.controlOption.position,m=this.container;if(u instanceof Element)u.appendChild(m);else{var E=this.controlService.controlCorners[u];["bottomleft","bottomright","righttop","rightbottom"].includes(u)?E.insertBefore(m,E.firstChild):E.appendChild(m)}}},{key:"checkUpdateOption",value:function(u,m){return m.some(function(E){return E in u})}}]),l}(uh());(0,Tn.Z)(ue,"controlCount",0);function tt(o){var d=vt();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function vt(){if(typeof Reflect=="undefined"||!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(o){return!1}}var kt=function(o){(0,lt.Z)(l,o);var d=tt(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&arguments[0]!==void 0?arguments[0]:"";return Os("button","l7-button-control ".concat(u))}},{key:"onAdd",value:function(){this.button=this.createButton(),this.isDisable=!1;var u=this.controlOption,m=u.title,E=u.btnText,M=u.btnIcon;return this.setBtnTitle(m),this.setBtnText(E),this.setBtnIcon(M),this.button}},{key:"onRemove",value:function(){this.button=this.buttonIcon=this.buttonText=void 0,this.isDisable=!1}},{key:"setOptions",value:function(u){var m=u.title,E=u.btnText,M=u.btnIcon;this.checkUpdateOption(u,["title"])&&this.setBtnTitle(m),this.checkUpdateOption(u,["btnIcon"])&&this.setBtnIcon(M),this.checkUpdateOption(u,["btnText"])&&this.setBtnText(E),vf((0,Mt.Z)(l.prototype),"setOptions",this).call(this,u)}},{key:"setBtnTitle",value:function(u){var m;(m=this.button)===null||m===void 0||m.setAttribute("title",u!=null?u:"")}},{key:"setBtnIcon",value:function(u){if(this.buttonIcon&&Cs(this.buttonIcon),u){var m,E=(m=this.button)===null||m===void 0?void 0:m.firstChild;if(E){var M;(M=this.button)===null||M===void 0||M.insertBefore(u,E)}else{var Z;(Z=this.button)===null||Z===void 0||Z.appendChild(u)}this.buttonIcon=u}}},{key:"setBtnText",value:function(u){if(this.button)if(Yu(this.button,"l7-button-control--row"),Yu(this.button,"l7-button-control--column"),u){var m=this.buttonText;if(!m){var E;m=Os("div","l7-button-control__text"),(E=this.button)===null||E===void 0||E.appendChild(m),this.buttonText=m}m.innerText=u,ba(this.button,this.controlOption.vertical?"l7-button-control--column":"l7-button-control--row")}else!u&&this.buttonText&&(Cs(this.buttonText),this.buttonText=void 0)}}]),l}(ue);function On(o){var d=hr();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function hr(){if(typeof Reflect=="undefined"||!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(o){return!1}}var vr=function(o){(0,lt.Z)(l,o);var d=On(l);function l(c,u){var m;return(0,wt.Z)(this,l),m=d.call(this),(0,Tn.Z)((0,ys.Z)(m),"isShow",!1),(0,Tn.Z)((0,ys.Z)(m),"timeout",null),(0,Tn.Z)((0,ys.Z)(m),"show",function(){return m.isShow||!m.contentDOM.innerHTML||(m.resetPopperPosition(),Yu(m.popperDOM,"l7-popper-hide"),m.isShow=!0,m.option.unique&&l.conflictPopperList.forEach(function(E){E!==(0,ys.Z)(m)&&E.isShow&&E.hide()}),m.emit("show"),window.addEventListener("pointerdown",m.onPopperUnClick)),(0,ys.Z)(m)}),(0,Tn.Z)((0,ys.Z)(m),"hide",function(){return m.isShow&&(ba(m.popperDOM,"l7-popper-hide"),m.isShow=!1,m.emit("hide"),window.removeEventListener("pointerdown",m.onPopperUnClick)),(0,ys.Z)(m)}),(0,Tn.Z)((0,ys.Z)(m),"setHideTimeout",function(){m.timeout||(m.timeout=window.setTimeout(function(){m.isShow&&(m.hide(),m.timeout=null)},300))}),(0,Tn.Z)((0,ys.Z)(m),"clearHideTimeout",function(){m.timeout&&(window.clearTimeout(m.timeout),m.timeout=null)}),(0,Tn.Z)((0,ys.Z)(m),"onBtnClick",function(){m.isShow?m.hide():m.show()}),(0,Tn.Z)((0,ys.Z)(m),"onPopperUnClick",function(E){Kl(E.target,[".l7-button-control",".l7-popper-content"])||m.hide()}),(0,Tn.Z)((0,ys.Z)(m),"onBtnMouseLeave",function(){m.setHideTimeout()}),(0,Tn.Z)((0,ys.Z)(m),"onBtnMouseMove",function(){m.clearHideTimeout(),!m.isShow&&m.show()}),m.button=c,m.option=u,m.init(),u.unique&&l.conflictPopperList.push((0,ys.Z)(m)),m}return(0,nt.Z)(l,[{key:"buttonRect",get:function(){return this.button.getBoundingClientRect()}},{key:"getPopperDOM",value:function(){return this.popperDOM}},{key:"getIsShow",value:function(){return this.isShow}},{key:"getContent",value:function(){return this.content}},{key:"setContent",value:function(u){typeof u=="string"?this.contentDOM.innerHTML=u:u instanceof HTMLElement&&(ga(this.contentDOM),this.contentDOM.appendChild(u)),this.content=u}},{key:"init",value:function(){var u=this.option.trigger;this.popperDOM=this.createPopper(),u==="click"?this.button.addEventListener("click",this.onBtnClick):(this.button.addEventListener("mousemove",this.onBtnMouseMove),this.button.addEventListener("mouseleave",this.onBtnMouseLeave),this.popperDOM.addEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.addEventListener("mouseleave",this.onBtnMouseLeave))}},{key:"destroy",value:function(){this.button.removeEventListener("click",this.onBtnClick),this.button.removeEventListener("mousemove",this.onBtnMouseMove),this.button.removeEventListener("mousemove",this.onBtnMouseLeave),this.popperDOM.removeEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.removeEventListener("mouseleave",this.onBtnMouseLeave),Cs(this.popperDOM)}},{key:"resetPopperPosition",value:function(){var u={},m=this.option,E=m.container,M=m.offset,Z=M===void 0?[0,0]:M,ne=m.placement,Ce=(0,Or.Z)(Z,2),Oe=Ce[0],Ct=Ce[1],Bt=this.button.getBoundingClientRect(),An=E.getBoundingClientRect(),kn=es(Bt,An),Ir=kn.left,ui=kn.right,ao=kn.top,wo=kn.bottom,Ds=!1,oa=!1;/^(left|right)/.test(ne)?(ne.includes("left")?u.right="".concat(Bt.width+ui,"px"):ne.includes("right")&&(u.left="".concat(Bt.width+Ir,"px")),ne.includes("start")?u.top="".concat(ao,"px"):ne.includes("end")?u.bottom="".concat(wo,"px"):(u.top="".concat(ao+Bt.height/2,"px"),oa=!0,u.transform="translate(".concat(Oe,"px, calc(").concat(Ct,"px - 50%))"))):/^(top|bottom)/.test(ne)&&(ne.includes("top")?u.bottom="".concat(Bt.height+wo,"px"):ne.includes("bottom")&&(u.top="".concat(Bt.height+ao,"px")),ne.includes("start")?u.left="".concat(Ir,"px"):ne.includes("end")?u.right="".concat(ui,"px"):(u.left="".concat(Ir+Bt.width/2,"px"),Ds=!0,u.transform="translate(calc(".concat(Oe,"px - 50%), ").concat(Ct,"px)"))),u.transform="translate(calc(".concat(Oe,"px - ").concat(Ds?"50%":"0%","), calc(").concat(Ct,"px - ").concat(oa?"50%":"0%",")");var fa=ne.split("-");fa.length&&ba(this.popperDOM,fa.map(function(Wa){return"l7-popper-".concat(Wa)}).join(" ")),Wr(this.popperDOM,us(u))}},{key:"createPopper",value:function(){var u=this.option,m=u.container,E=u.className,M=E===void 0?"":E,Z=u.content,ne=Os("div","l7-popper l7-popper-hide ".concat(M)),Ce=Os("div","l7-popper-content"),Oe=Os("div","l7-popper-arrow");return ne.appendChild(Ce),ne.appendChild(Oe),m.appendChild(ne),this.popperDOM=ne,this.contentDOM=Ce,Z&&this.setContent(Z),ne}}]),l}(gc.EventEmitter);(0,Tn.Z)(vr,"conflictPopperList",[]);function ji(o){var d=go();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function go(){if(typeof Reflect=="undefined"||!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(o){return!1}}var $o={topleft:"right-start",topcenter:"bottom",topright:"left-start",bottomleft:"right-end",bottomcenter:"top",bottomright:"left-end",lefttop:"bottom-start",leftcenter:"right",leftbottom:"top-start",righttop:"bottom-end",rightcenter:"left",rightbottom:"top-end"},ls=function(o){(0,lt.Z)(l,o);var d=ji(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getPopper",value:function(){return this.popper}},{key:"hide",value:function(){this.popper.hide(),vf((0,Mt.Z)(l.prototype),"hide",this).call(this)}},{key:"getDefault",value:function(u){var m,E=vf((0,Mt.Z)(l.prototype),"getDefault",this).call(this,u),M=(m=u==null?void 0:u.position)!==null&&m!==void 0?m:E.position;return(0,Be.Z)((0,Be.Z)({},vf((0,Mt.Z)(l.prototype),"getDefault",this).call(this,u)),{},{popperPlacement:M instanceof Element?"bottom":$o[M],popperTrigger:"click"})}},{key:"onAdd",value:function(){var u=vf((0,Mt.Z)(l.prototype),"onAdd",this).call(this);return this.initPopper(),u}},{key:"onRemove",value:function(){this.popper.destroy()}},{key:"initPopper",value:function(){var u=this,m=this.controlOption,E=m.popperClassName,M=m.popperPlacement,Z=m.popperTrigger,ne=this.mapsService.getMapContainer();return this.popper=new vr(this.button,{className:E,placement:M,trigger:Z,container:ne,unique:!0}),this.popper.on("show",function(){u.emit("popperShow",u)}).on("hide",function(){u.emit("popperHide",u)}),this.popper}},{key:"setOptions",value:function(u){if(vf((0,Mt.Z)(l.prototype),"setOptions",this).call(this,u),this.checkUpdateOption(u,["popperPlacement","popperTrigger","popperClassName"])){var m=this.popper.getContent();this.popper.destroy(),this.initPopper(),this.popper.setContent(m)}}}]),l}(kt);function Ci(o){var d=xs();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function xs(){if(typeof Reflect=="undefined"||!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(o){return!1}}var ol=function(o){return o.ActiveOptionClassName="l7-select-control-item-active",o.OptionValueAttrKey="data-option-value",o.OptionIndexAttrKey="data-option-index",o}(ol||{}),wl=function(o){(0,lt.Z)(l,o);var d=Ci(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E-1?c.selectValue.splice(Z,1):c.selectValue=[].concat((0,bn.Z)(c.selectValue),[M.value])}else c.selectValue=[M.value];c.setSelectValue(c.selectValue)}),c}return(0,nt.Z)(l,[{key:"setOptions",value:function(u){vf((0,Mt.Z)(l.prototype),"setOptions",this).call(this,u);var m=u.options;m&&this.popper.setContent(this.getPopperContent(m))}},{key:"onAdd",value:function(){var u=vf((0,Mt.Z)(l.prototype),"onAdd",this).call(this),m=this.controlOption.defaultValue;return m&&(this.selectValue=this.transSelectValue(m)),this.popper.setContent(this.getPopperContent(this.controlOption.options)),u}},{key:"getSelectValue",value:function(){return this.getIsMultiple()?this.selectValue:this.selectValue[0]}},{key:"setSelectValue",value:function(u){var m=this,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,M=this.transSelectValue(u);this.optionDOMList.forEach(function(Z){var ne=Z.getAttribute(ol.OptionValueAttrKey),Ce=m.getIsMultiple()?Z.querySelector("input[type=checkbox]"):void 0;M.includes(ne)?(ba(Z,ol.ActiveOptionClassName),Ce&&Ma(Ce,!0)):(Yu(Z,ol.ActiveOptionClassName),Ce&&Ma(Ce,!1))}),this.selectValue=M,E&&this.emit("selectChange",this.getIsMultiple()?M:M[0])}},{key:"getIsMultiple",value:function(){return!1}},{key:"getPopperContent",value:function(u){var m=this,E=this.isImageOptions(),M=Os("div",E?"l7-select-control--image":"l7-select-control--normal");this.getIsMultiple()&&ba(M,"l7-select-control--multiple");var Z=u.map(function(ne,Ce){var Oe=E?m.createImageOption(ne):m.createNormalOption(ne);return Oe.setAttribute(ol.OptionValueAttrKey,ne.value),Oe.setAttribute(ol.OptionIndexAttrKey,window.String(Ce)),Oe.addEventListener("click",m.onItemClick.bind(m,ne)),Oe});return M.append.apply(M,(0,bn.Z)(Z)),this.optionDOMList=Z,M}},{key:"createImageOption",value:function(u){var m=this.selectValue.includes(u.value),E=Os("div","l7-select-control-item ".concat(m?ol.ActiveOptionClassName:"")),M=Os("img");M.setAttribute("src",u.img),$a(M),E.appendChild(M);var Z=Os("div","l7-select-control-item-row");this.getIsMultiple()&&E.appendChild(this.createCheckbox(m));var ne=Os("span");return ne.innerText=u.text,Z.appendChild(ne),E.appendChild(Z),E}},{key:"createCheckbox",value:function(u){var m=Os("input");return m.setAttribute("type","checkbox"),u&&Ma(m,!0),m}},{key:"isImageOptions",value:function(){return!!this.controlOption.options.find(function(u){return u.img})}},{key:"transSelectValue",value:function(u){return Array.isArray(u)?u:[u]}}]),l}(ls),Ra=function(d){var l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.classList.add("l7-iconfont"),l.setAttribute("aria-hidden","true");var c=document.createElementNS("http://www.w3.org/2000/svg","use");return c.setAttributeNS("http://www.w3.org/1999/xlink","href","#".concat(d)),l.appendChild(c),l};function Qu(o){var d=Dc();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function Dc(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Xu=function(o){(0,lt.Z)(l,o);var d=Qu(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function hc(o,d){if(o){if(typeof o=="string")return qu(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return qu(o,d)}}function qu(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l0&&arguments[0]!==void 0?arguments[0]:document.documentElement,l=arguments.length>1?arguments[1]:void 0;return new Promise(function(c,u){var m=function M(){Zd.off("change",M),c()};Zd.on("change",m);var E=d[dc.requestFullscreen](l);E instanceof Promise&&E.then(m).catch(u)})},exit:function(){return new Promise(function(d,l){if(!Zd.isFullscreen){d();return}var c=function m(){Zd.off("change",m),d()};Zd.on("change",c);var u=document[dc.exitFullscreen]();u instanceof Promise&&u.then(c).catch(l)})},toggle:function(d,l){return Zd.isFullscreen?Zd.exit():Zd.request(d,l)},onchange:function(d){Zd.on("change",d)},onerror:function(d){Zd.on("error",d)},on:function(d,l){var c=sc[d];c&&document.addEventListener(c,l,!1)},off:function(d,l){var c=sc[d];c&&document.removeEventListener(c,l,!1)},raw:dc};Object.defineProperties(Zd,{isFullscreen:{get:function(){return!!document[dc.fullscreenElement]}},element:{enumerable:!0,get:function(){var d;return(d=document[dc.fullscreenElement])!==null&&d!==void 0?d:void 0}},isEnabled:{enumerable:!0,get:function(){return!!document[dc.fullscreenEnabled]}}}),dc||(Zd={isEnabled:!1});var dp=Zd;function mf(o){var d=jp();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function jp(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Ap=function(o){(0,lt.Z)(l,o);var d=mf(l);function l(c){var u;return(0,wt.Z)(this,l),u=d.call(this,c),(0,Tn.Z)((0,ys.Z)(u),"isFullscreen",!1),(0,Tn.Z)((0,ys.Z)(u),"toggleFullscreen",(0,Pl.Z)(Oi().mark(function m(){return Oi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(!dp.isEnabled){M.next=3;break}return M.next=3,dp.toggle(u.mapContainer);case 3:case"end":return M.stop()}},m)}))),(0,Tn.Z)((0,ys.Z)(u),"onClick",function(){u.toggleFullscreen()}),(0,Tn.Z)((0,ys.Z)(u),"onFullscreenChange",function(){u.isFullscreen=!!document.fullscreenElement;var m=u.controlOption,E=m.btnText,M=m.btnIcon,Z=m.title,ne=m.exitBtnText,Ce=m.exitBtnIcon,Oe=m.exitTitle;u.isFullscreen?(u.setBtnTitle(Oe),u.setBtnText(ne),u.setBtnIcon(Ce)):(u.setBtnTitle(Z),u.setBtnText(E),u.setBtnIcon(M)),u.emit("fullscreenChange",u.isFullscreen)}),dp.isEnabled||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u5BF9\u5730\u56FE\u5168\u5C4F\u5316"),u}return(0,nt.Z)(l,[{key:"setOptions",value:function(u){var m=u.exitBtnText,E=u.exitBtnIcon,M=u.exitTitle;this.isFullscreen&&(this.checkUpdateOption(u,["exitBtnIcon"])&&this.setBtnIcon(E),this.checkUpdateOption(u,["exitBtnText"])&&this.setBtnText(m),this.checkUpdateOption(u,["exitTitle"])&&this.setBtnTitle(M)),vf((0,Mt.Z)(l.prototype),"setOptions",this).call(this,u)}},{key:"onAdd",value:function(){var u=vf((0,Mt.Z)(l.prototype),"onAdd",this).call(this);return u.addEventListener("click",this.onClick),this.mapContainer=hl(this.scene.getSceneConfig().id),this.mapContainer.addEventListener("fullscreenchange",this.onFullscreenChange),u}},{key:"onRemove",value:function(){vf((0,Mt.Z)(l.prototype),"onRemove",this).call(this),this.mapContainer.removeEventListener("fullscreenchange",this.onFullscreenChange)}},{key:"getDefault",value:function(u){return(0,Be.Z)((0,Be.Z)({},vf((0,Mt.Z)(l.prototype),"getDefault",this).call(this,u)),{},{title:"\u5168\u5C4F",btnIcon:Ra("l7-icon-fullscreen"),exitTitle:"\u9000\u51FA\u5168\u5C4F",exitBtnIcon:Ra("l7-icon-exit-fullscreen")})}}]),l}(kt);function Ym(o){var d=Wf();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function Wf(){if(typeof Reflect=="undefined"||!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(o){return!1}}var ng=function(o){(0,lt.Z)(l,o);var d=Ym(l);function l(c){var u;return(0,wt.Z)(this,l),u=d.call(this,c),(0,Tn.Z)((0,ys.Z)(u),"getGeoLocation",function(){return new Promise(function(m,E){window.navigator.geolocation.getCurrentPosition(function(M){var Z=M.coords,ne=Z!=null?Z:{},Ce=ne.longitude,Oe=ne.latitude;!isNaN(Ce)&&!isNaN(Oe)?m([Ce,Oe]):E()},function(M){E(M)})})}),(0,Tn.Z)((0,ys.Z)(u),"onClick",(0,Pl.Z)(Oi().mark(function m(){var E,M,Z;return Oi().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(window.navigator.geolocation){Ce.next=2;break}return Ce.abrupt("return");case 2:return E=u.controlOption.transform,Ce.next=5,u.getGeoLocation();case 5:if(M=Ce.sent,Z=u.mapsService.getZoom(),Ce.t0=u.mapsService,Ce.t1=Z>15?Z:15,!E){Ce.next=15;break}return Ce.next=12,E(M);case 12:Ce.t2=Ce.sent,Ce.next=16;break;case 15:Ce.t2=M;case 16:Ce.t3=Ce.t2,Ce.t0.setZoomAndCenter.call(Ce.t0,Ce.t1,Ce.t3);case 18:case"end":return Ce.stop()}},m)}))),window.navigator.geolocation||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u83B7\u53D6\u5730\u7406\u5B9A\u4F4D"),u}return(0,nt.Z)(l,[{key:"getDefault",value:function(u){return(0,Be.Z)((0,Be.Z)({},vf((0,Mt.Z)(l.prototype),"getDefault",this).call(this,u)),{},{title:"\u5B9A\u4F4D",btnIcon:Ra("l7-icon-reposition")})}},{key:"onAdd",value:function(){var u=vf((0,Mt.Z)(l.prototype),"onAdd",this).call(this);return u.addEventListener("click",this.onClick),u}}]),l}(kt);function ed(o){var d=nu();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function nu(){if(typeof Reflect=="undefined"||!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(o){return!1}}function Lc(o){return Object.keys(o!=null?o:{}).every(function(d){return["layer","name","img"].includes(d)})}var gu=function(o){(0,lt.Z)(l,o);var d=ed(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E=10?10:E>=5?5:E>=3?3:E>=2?2:1,m*E}},{key:"updateMetric",value:function(u){var m=this.getRoundNum(u),E=m<1e3?m+" m":m/1e3+" km";this.updateScale(this.mScale,E,m/u)}},{key:"updateImperial",value:function(u){var m=u*3.2808399,E,M,Z;m>5280?(E=m/5280,M=this.getRoundNum(E),this.updateScale(this.iScale,M+" mi",M/E)):(Z=this.getRoundNum(m),this.updateScale(this.iScale,Z+" ft",Z/m))}}]),l}(ue);function em(o){var d=l0();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function l0(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Z0=function(o){(0,lt.Z)(l,o);var d=em(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;Ec.mapsService.getMinZoom()&&c.mapsService.zoomOut()}),(0,Tn.Z)((0,ys.Z)(c),"updateDisabled",function(){var M=c.mapsService;c.zoomInButton.removeAttribute("disabled"),c.zoomOutButton.removeAttribute("disabled"),(c.disabled||M.getZoom()<=M.getMinZoom())&&c.zoomOutButton.setAttribute("disabled","true"),c.controlOption.showZoom&&c.zoomNumDiv&&(c.zoomNumDiv.innerText=String(Math.floor(M.getZoom()))),(c.disabled||M.getZoom()>=M.getMaxZoom())&&c.zoomInButton.setAttribute("disabled","true")}),c}return(0,nt.Z)(l,[{key:"getDefault",value:function(u){return(0,Be.Z)((0,Be.Z)({},vf((0,Mt.Z)(l.prototype),"getDefault",this).call(this,u)),{},{position:oo.BOTTOMRIGHT,name:"zoom",zoomInText:Ra("l7-icon-enlarge"),zoomInTitle:"Zoom in",zoomOutText:Ra("l7-icon-narrow"),zoomOutTitle:"Zoom out",showZoom:!1})}},{key:"setOptions",value:function(u){vf((0,Mt.Z)(l.prototype),"setOptions",this).call(this,u),this.checkUpdateOption(u,["zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","showZoom"])&&this.resetButtonGroup(this.container)}},{key:"onAdd",value:function(){var u=Os("div","l7-control-zoom");return this.resetButtonGroup(u),this.mapsService.on("zoomend",this.updateDisabled),this.mapsService.on("zoomchange",this.updateDisabled),u}},{key:"onRemove",value:function(){this.mapsService.off("zoomend",this.updateDisabled),this.mapsService.off("zoomchange",this.updateDisabled)}},{key:"disable",value:function(){return this.disabled=!0,this.updateDisabled(),this}},{key:"enable",value:function(){return this.disabled=!1,this.updateDisabled(),this}},{key:"resetButtonGroup",value:function(u){ga(u),this.zoomInButton=this.createButton(this.controlOption.zoomInText,this.controlOption.zoomInTitle,"l7-button-control",u,this.zoomIn),this.controlOption.showZoom&&(this.zoomNumDiv=this.createButton("0","","l7-button-control l7-control-zoom__number",u)),this.zoomOutButton=this.createButton(this.controlOption.zoomOutText,this.controlOption.zoomOutTitle,"l7-button-control",u,this.zoomOut),this.updateDisabled()}},{key:"createButton",value:function(u,m,E,M,Z){var ne=Os("button",E,M);return typeof u=="string"?ne.innerHTML=u:ne.append(u),ne.title=m,Z&&ne.addEventListener("click",Z),ne}}]),l}(ue);function t0(o){var d=Av();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function Av(){if(typeof Reflect=="undefined"||!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(o){return!1}}var n0=function(o){(0,lt.Z)(l,o);var d=t0(l);function l(c){var u;(0,wt.Z)(this,l),u=d.call(this),(0,Tn.Z)((0,ys.Z)(u),"isShow",!0),(0,Tn.Z)((0,ys.Z)(u),"onMouseMove",function(E){var M,Z=u.mapsService.getMapContainer(),ne=(M=Z==null?void 0:Z.getBoundingClientRect())!==null&&M!==void 0?M:{},Ce=ne.left,Oe=Ce===void 0?0:Ce,Ct=ne.top,Bt=Ct===void 0?0:Ct;u.setPopupPosition(E.clientX-Oe,E.clientY-Bt)}),(0,Tn.Z)((0,ys.Z)(u),"updateLngLatPosition",function(){if(!(!u.mapsService||u.popupOption.followCursor)){var E=u.lngLat,M=E.lng,Z=E.lat,ne=u.mapsService.lngLatToContainer([M,Z]),Ce=ne.x,Oe=ne.y;u.setPopupPosition(Ce,Oe)}}),(0,Tn.Z)((0,ys.Z)(u),"onKeyDown",function(E){E.keyCode===27&&u.remove()}),(0,Tn.Z)((0,ys.Z)(u),"onCloseButtonClick",function(E){E.stopPropagation&&E.stopPropagation(),u.hide()}),(0,Tn.Z)((0,ys.Z)(u),"update",function(){var E=!!u.lngLat,M=u.popupOption,Z=M.className,ne=M.style,Ce=M.maxWidth,Oe=M.anchor,Ct=M.stopPropagation;if(!(!u.mapsService||!E||!u.content)){var Bt=u.mapsService.getMarkerContainer();if(!u.container&&Bt&&(u.container=Os("div","l7-popup ".concat(Z!=null?Z:""," ").concat(u.isShow?"":"l7-popup-hide"),Bt),ne&&u.container.setAttribute("style",ne),u.tip=Os("div","l7-popup-tip",u.container),u.container.appendChild(u.content),Ct&&["mousemove","mousedown","mouseup","click","dblclick"].forEach(function(Ir){u.container.addEventListener(Ir,function(ui){ui.stopPropagation()})}),u.container.style.whiteSpace="nowrap"),u.updateLngLatPosition(),ru(u.container,"".concat(Ut[Oe])),en(u.container,Oe,"popup"),Ce){var An=u.container.getBoundingClientRect(),kn=An.width;kn>parseFloat(Ce)&&(u.container.style.width=Ce)}else u.container.style.removeProperty("width")}}),u.popupOption=(0,Be.Z)((0,Be.Z)({},u.getDefault(c!=null?c:{})),c);var m=u.popupOption.lngLat;return m&&(u.lngLat=m),u}return(0,nt.Z)(l,[{key:"lngLat",get:function(){var u;return(u=this.popupOption.lngLat)!==null&&u!==void 0?u:{lng:0,lat:0}},set:function(u){this.popupOption.lngLat=u}},{key:"getIsShow",value:function(){return this.isShow}},{key:"addTo",value:function(u){this.mapsService=u.get(Zs.IMapService),this.sceneService=u.get(Zs.ISceneService),this.layerService=u.get(Zs.ILayerService),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update),this.scene=u,this.update(),this.updateCloseOnClick(),this.updateCloseOnEsc(),this.updateFollowCursor();var m=this.popupOption,E=m.html,M=m.text,Z=m.title;return E?this.setHTML(E):M&&this.setText(M),Z&&this.setTitle(Z),this.emit("open"),this}},{key:"remove",value:function(){if(this!==null&&this!==void 0&&this.isOpen())return this.content&&Cs(this.content),this.container&&(Cs(this.container),delete this.container),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.updateCloseOnClick(!0),this.updateCloseOnEsc(!0),this.updateFollowCursor(!0),delete this.mapsService),this.emit("close"),this}},{key:"getOptions",value:function(){return this.popupOption}},{key:"setOptions",value:function(u){return this.show(),this.popupOption=(0,Be.Z)((0,Be.Z)({},this.popupOption),u),this.checkUpdateOption(u,["html","text","title","closeButton","closeButtonOffsets","maxWidth","anchor","stopPropagation","className","style","lngLat","offsets"])&&(this.container&&(Cs(this.container),this.container=void 0),this.popupOption.html?this.setHTML(this.popupOption.html):this.popupOption.text&&this.setText(this.popupOption.text),this.popupOption.title&&this.setTitle(this.popupOption.title)),this.checkUpdateOption(u,["closeOnEsc"])&&this.updateCloseOnEsc(),this.checkUpdateOption(u,["closeOnClick"])&&this.updateCloseOnClick(),this.checkUpdateOption(u,["followCursor"])&&this.updateFollowCursor(),this.checkUpdateOption(u,["html"])&&u.html?this.setHTML(u.html):this.checkUpdateOption(u,["text"])&&u.text&&this.setText(u.text),this.checkUpdateOption(u,["lngLat"])&&u.lngLat&&this.setLnglat(u.lngLat),this}},{key:"open",value:function(){return this.addTo(this.scene),this}},{key:"close",value:function(){return this.remove(),this}},{key:"show",value:function(){if(!this.isShow)return this.container&&Yu(this.container,"l7-popup-hide"),this.isShow=!0,this.emit("show"),this}},{key:"hide",value:function(){if(this.isShow)return this.container&&ba(this.container,"l7-popup-hide"),this.isShow=!1,this.emit("hide"),this}},{key:"setHTML",value:function(u){return this.popupOption.html=u,this.setDOMContent(u)}},{key:"setText",value:function(u){return this.popupOption.text=u,this.setDOMContent(window.document.createTextNode(u))}},{key:"setTitle",value:function(u){this.show(),this.popupOption.title=u,u?(this.contentTitle||(this.contentTitle=Os("div","l7-popup-content__title"),this.content.firstChild?this.content.insertBefore(this.contentTitle,this.content.firstChild):this.content.append(this.contentTitle)),ga(this.contentTitle),Js(this.contentTitle,u)):this.contentTitle&&(Cs(this.contentTitle),this.contentTitle=void 0)}},{key:"panToPopup",value:function(){var u=this.lngLat,m=u.lng,E=u.lat;return this.popupOption.autoPan&&this.mapsService.panTo([m,E]),this}},{key:"setLngLat",value:function(u){return this.setLnglat(u)}},{key:"setLnglat",value:function(u){var m=this;return this.show(),this.lngLat=u,Array.isArray(u)&&(this.lngLat={lng:u[0],lat:u[1]}),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.update(),this.popupOption.autoPan&&setTimeout(function(){m.panToPopup()},0),this}},{key:"getLnglat",value:function(){return this.lngLat}},{key:"setMaxWidth",value:function(u){return this.popupOption.maxWidth=u,this.update(),this}},{key:"isOpen",value:function(){return!!this.mapsService}},{key:"getDefault",value:function(u){return{closeButton:!0,closeOnClick:!1,maxWidth:"240px",offsets:[0,0],anchor:mn.BOTTOM,stopPropagation:!0,autoPan:!1,autoClose:!0,closeOnEsc:!1,followCursor:!1}}},{key:"setDOMContent",value:function(u){return this.show(),this.createContent(),Js(this.contentPanel,u),this.update(),this}},{key:"updateCloseOnClick",value:function(u){var m=this,E=this.mapsService;E&&(E==null||E.off("click",this.onCloseButtonClick),this.popupOption.closeOnClick&&!u&&requestAnimationFrame(function(){E==null||E.on("click",m.onCloseButtonClick)}))}},{key:"updateCloseOnEsc",value:function(u){window.removeEventListener("keydown",this.onKeyDown),this.popupOption.closeOnEsc&&!u&&window.addEventListener("keydown",this.onKeyDown)}},{key:"updateFollowCursor",value:function(u){var m,E=(m=this.mapsService)===null||m===void 0?void 0:m.getContainer();E&&(E==null||E.removeEventListener("mousemove",this.onMouseMove),this.popupOption.followCursor&&!u&&(E==null||E.addEventListener("mousemove",this.onMouseMove)))}},{key:"createContent",value:function(){var u=this;if(this.content&&Cs(this.content),this.contentTitle=void 0,this.content=Os("div","l7-popup-content",this.container),this.setTitle(this.popupOption.title),this.popupOption.closeButton){var m=Ra("l7-icon-guanbi");ba(m,"l7-popup-close-button"),this.content.appendChild(m),this.popupOption.closeButtonOffsets&&(m.style.right=this.popupOption.closeButtonOffsets[0]+"px",m.style.top=this.popupOption.closeButtonOffsets[1]+"px"),m.setAttribute("aria-label","Close popup"),m.addEventListener("click",function(){u.hide()}),m.addEventListener("pointerup",function(E){E.stopPropagation()}),m.addEventListener("pointerdown",function(E){E.stopPropagation()}),this.closeButton=m}else this.closeButton=void 0;this.contentPanel=Os("div","l7-popup-content__panel",this.content)}},{key:"setPopupPosition",value:function(u,m){if(this.container){var E=this.popupOption.offsets;this.container.style.left=u+E[0]+"px",this.container.style.top=m-E[1]+"px"}}},{key:"checkUpdateOption",value:function(u,m){return m.some(function(E){return E in u})}}]),l}(gc.EventEmitter);function ay(o){var d=ly();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function ly(){if(typeof Reflect=="undefined"||!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(o){return!1}}var ix=fs.get,H1=function(o){(0,lt.Z)(l,o);var d=ay(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function nM(o,d){if(o){if(typeof o=="string")return IT(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return IT(o,d)}}function IT(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l0&&arguments[0]!==void 0?arguments[0]:{};return(0,Ct.Z)(this,l),c=d.call(this),(0,Tn.Z)((0,ms.Z)(c),"id","".concat(Y3++)),(0,Tn.Z)((0,ms.Z)(c),"name","".concat(Y3)),(0,Tn.Z)((0,ms.Z)(c),"visible",!0),(0,Tn.Z)((0,ms.Z)(c),"zIndex",0),(0,Tn.Z)((0,ms.Z)(c),"inited",!1),(0,Tn.Z)((0,ms.Z)(c),"layerModelNeedUpdate",!1),(0,Tn.Z)((0,ms.Z)(c),"pickedFeatureID",null),(0,Tn.Z)((0,ms.Z)(c),"selectedFeatureID",null),(0,Tn.Z)((0,ms.Z)(c),"styleNeedUpdate",!1),(0,Tn.Z)((0,ms.Z)(c),"forceRender",!1),(0,Tn.Z)((0,ms.Z)(c),"clusterZoom",0),(0,Tn.Z)((0,ms.Z)(c),"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),(0,Tn.Z)((0,ms.Z)(c),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),(0,Tn.Z)((0,ms.Z)(c),"hooks",{init:new VE,afterInit:new mS,beforeRender:new mS,beforeRenderData:new lC,afterRender:new V1,beforePickingEncode:new V1,afterPickingEncode:new V1,beforeHighlight:new V1(["pickedColor"]),afterHighlight:new V1,beforeSelect:new V1(["pickedColor"]),afterSelect:new V1,beforeDestroy:new V1,afterDestroy:new V1}),(0,Tn.Z)((0,ms.Z)(c),"models",[]),(0,Tn.Z)((0,ms.Z)(c),"startInit",!1),(0,Tn.Z)((0,ms.Z)(c),"layerChildren",[]),(0,Tn.Z)((0,ms.Z)(c),"masks",[]),Vc((0,ms.Z)(c),"configService",w4,(0,ms.Z)(c)),(0,Tn.Z)((0,ms.Z)(c),"animateOptions",{enable:!1}),(0,Tn.Z)((0,ms.Z)(c),"currentPickId",null),(0,Tn.Z)((0,ms.Z)(c),"encodeStyleAttribute",{}),(0,Tn.Z)((0,ms.Z)(c),"enableShaderEncodeStyles",[]),(0,Tn.Z)((0,ms.Z)(c),"enableDataEncodeStyles",[]),(0,Tn.Z)((0,ms.Z)(c),"enablg",[]),(0,Tn.Z)((0,ms.Z)(c),"pendingStyleAttributes",[]),(0,Tn.Z)((0,ms.Z)(c),"scaleOptions",{}),(0,Tn.Z)((0,ms.Z)(c),"animateStatus",!1),(0,Tn.Z)((0,ms.Z)(c),"isDestroyed",!1),(0,Tn.Z)((0,ms.Z)(c),"encodeDataLength",0),(0,Tn.Z)((0,ms.Z)(c),"sourceEvent",function(){c.dataState.dataSourceNeedUpdate=!0;var m=c.getLayerConfig();m&&m.autoFit&&c.fitBounds(m.fitBoundsOptions);var E=c.layerSource.getSourceCfg().autoRender;E&&setTimeout(function(){c.reRender()},10)}),c.name=u.name||c.id,c.zIndex=u.zIndex||0,c.rawConfig=u,c}return(0,nt.Z)(l,[{key:"addMask",value:function(u){this.masks.push(u),this.enableMask()}},{key:"removeMask",value:function(u){var m=this.masks.indexOf(u);m>-1&&this.masks.splice(m,1)}},{key:"disableMask",value:function(){this.updateLayerConfig({enableMask:!1})}},{key:"enableMask",value:function(){this.updateLayerConfig({enableMask:!0})}},{key:"addMaskLayer",value:function(u){this.masks.push(u)}},{key:"removeMaskLayer",value:function(u){var m=this.masks.indexOf(u);m>-1&&this.masks.splice(m,1),u.destroy()}},{key:"getAttribute",value:function(u){return this.styleAttributeService.getLayerStyleAttribute(u)}},{key:"getLayerConfig",value:function(){return this.configService.getLayerConfig(this.id)}},{key:"updateLayerConfig",value:function(u){var m=this;if(Object.keys(u).map(function(L){L in m.rawConfig&&(m.rawConfig[L]=u[L])}),!this.startInit)this.needUpdateConfig=(0,ze.Z)((0,ze.Z)({},this.needUpdateConfig),u);else{var E=this.container.get(Ls.SceneID);this.configService.setLayerConfig(E,this.id,(0,ze.Z)((0,ze.Z)((0,ze.Z)({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),u)),this.needUpdateConfig={}}}},{key:"setContainer",value:function(u,m){this.container=u,this.sceneContainer=m}},{key:"getContainer",value:function(){return this.container}},{key:"addPlugin",value:function(u){return this.plugins.push(u),this}},{key:"init",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E=this,L,Z,ne,xe,Oe,wt,Bt;return Fi().wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:L=this.container.get(Ls.SceneID),this.startInit=!0,this.configService.setLayerConfig(L,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(Ls.IIconService),this.fontService=this.container.get(Ls.IFontService),this.rendererService=this.container.get(Ls.IRendererService),this.layerService=this.container.get(Ls.ILayerService),this.debugService=this.container.get(Ls.IDebugService),this.interactionService=this.container.get(Ls.IInteractionService),this.pickingService=this.container.get(Ls.IPickingService),this.mapService=this.container.get(Ls.IMapService),Z=this.getLayerConfig(),ne=Z.enableMultiPassRenderer,xe=Z.passes,ne&&xe!==null&&xe!==void 0&&xe.length&&xe.length>0&&this.mapService.on("mapAfterFrameChange",function(){E.renderLayers()}),this.cameraService=this.container.get(Ls.ICameraService),this.coordinateService=this.container.get(Ls.ICoordinateSystemService),this.shaderModuleService=this.container.get(Ls.IShaderModuleService),this.postProcessingPassFactory=this.container.get(Ls.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(Ls.IFactoryNormalPass),this.styleAttributeService=this.container.get(Ls.IStyleAttributeService),ne&&(this.multiPassRenderer=this.container.get(Ls.IMultiPassRenderer),this.multiPassRenderer.setLayer(this)),this.pendingStyleAttributes.forEach(function(Pr){var ui=Pr.attributeName,oo=Pr.attributeField,xo=Pr.attributeValues,Ds=Pr.updateOptions;E.styleAttributeService.updateStyleAttribute(ui,{scale:(0,ze.Z)({field:oo},E.splitValuesAndCallbackInAttribute(xo,oo?void 0:E.getLayerConfig()[ui]))},Ds)}),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(Ls.ILayerPlugin),Oe=Hk(this.plugins);try{for(Oe.s();!(wt=Oe.n()).done;)Bt=wt.value,Bt.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}catch(Pr){Oe.e(Pr)}finally{Oe.f()}return this.layerPickService=new r_(this),this.textureService=new DT(this),this.log(Uv.LayerInitStart),Rn.next=31,this.hooks.init.promise();case 31:this.log(Uv.LayerInitEnd),this.inited=!0,this.emit("inited",{target:this,type:"inited"}),this.emit("add",{target:this,type:"add"}),this.hooks.afterInit.call();case 36:case"end":return Rn.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"log",value:function(u){var m,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"init";if(!(this.tileLayer||this.isTileLayer)){var L="".concat(this.id,".").concat(E,".").concat(u),Z={id:this.id,type:this.type};(m=this.debugService)===null||m===void 0||m.log(L,Z)}}},{key:"updateModelData",value:function(u){u.attributes&&u.elements?this.models.map(function(m){m.updateAttributesAndElements(u.attributes,u.elements)}):console.warn("data error")}},{key:"setLayerPickService",value:function(u){this.layerPickService=u}},{key:"prepareBuildModel",value:function(){Object.keys(this.needUpdateConfig||{}).length!==0&&this.updateLayerConfig({});var u=this.getLayerConfig(),m=u.animateOption;m!=null&&m.enable&&(this.layerService.startAnimate(),this.animateStatus=!0)}},{key:"color",value:function(u,m,E){return this.updateStyleAttribute("color",u,m,E),this}},{key:"texture",value:function(u,m,E){return this.updateStyleAttribute("texture",u,m,E),this}},{key:"rotate",value:function(u,m,E){return this.updateStyleAttribute("rotate",u,m,E),this}},{key:"size",value:function(u,m,E){return this.updateStyleAttribute("size",u,m,E),this}},{key:"filter",value:function(u,m,E){var L=this.updateStyleAttribute("filter",u,m,E);return this.dataState.dataSourceNeedUpdate=L&&this.inited,this}},{key:"shape",value:function(u,m,E){this.shapeOption={field:u,values:m};var L=this.updateStyleAttribute("shape",u,m,E);return this.dataState.dataSourceNeedUpdate=L&&this.inited,this}},{key:"label",value:function(u,m,E){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:u,attributeValues:m,updateOptions:E}),this}},{key:"animate",value:function(u){var m={};return Sy(u)?(m.enable=!0,m=(0,ze.Z)((0,ze.Z)({},m),u)):m.enable=u,this.updateLayerConfig({animateOption:m}),this}},{key:"source",value:function(u,m){return(u==null?void 0:u.type)==="source"?(this.setSource(u),this):(this.sourceOption={data:u,options:m},this.clusterZoom=0,this)}},{key:"setData",value:function(u,m){var E=this;return this.inited?(this.log(Uv.SourceInitStart,Ll.UPDATE),this.layerSource.setData(u,m),this.log(Uv.SourceInitEnd,Ll.UPDATE)):this.on("inited",function(){E.log(Uv.SourceInitStart,Ll.UPDATE);var L=E.getSource();L?E.layerSource.setData(u,m):E.source(new vw(u,m)),E.layerSource.once("update",function(){E.log(Uv.SourceInitEnd,Ll.UPDATE)})}),this}},{key:"style",value:function(u){var m=this,E=u.passes,L=(0,dm.Z)(u,eM);E&&Z_(E).forEach(function(ne){var xe=m.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(ne[0]);xe&&xe.updateOptions(ne[1])}),L.borderColor&&(L.stroke=L.borderColor),L.borderWidth&&(L.strokeWidth=L.borderWidth);var Z=L;return Object.keys(L).forEach(function(ne){var xe=L[ne];Array.isArray(xe)&&xe.length===2&&!LT(xe[0])&&!LT(xe[1])&&(Z[ne]={field:xe[0],value:xe[1]})}),this.encodeStyle(Z),this.updateLayerConfig(Z),this}},{key:"encodeStyle",value:function(u){var m=this;Object.keys(u).forEach(function(E){[].concat((0,_n.Z)(m.enableShaderEncodeStyles),(0,_n.Z)(m.enableDataEncodeStyles)).includes(E)&&Gk(u[E])&&(u[E].field||u[E].value)&&!TC(m.encodeStyleAttribute[E],u[E])?(m.encodeStyleAttribute[E]=u[E],m.updateStyleAttribute(E,u[E].field,u[E].value),m.inited&&(m.dataState.dataMappingNeedUpdate=!0)):m.encodeStyleAttribute[E]&&(delete m.encodeStyleAttribute[E],m.dataState.dataSourceNeedUpdate=!0)})}},{key:"scale",value:function(u,m){var E=(0,ze.Z)({},this.scaleOptions);if(Sy(u)?this.scaleOptions=(0,ze.Z)((0,ze.Z)({},this.scaleOptions),u):this.scaleOptions[u]=m,this.styleAttributeService&&!TC(E,this.scaleOptions)){var L=Sy(u)?u:(0,Tn.Z)({},u,m);this.styleAttributeService.updateScaleAttribute(L)}return this}},{key:"renderLayers",value:function(){this.rendering=!0,this.layerService.reRender(),this.rendering=!1}},{key:"render",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.tileLayer?(this.tileLayer.render(),this):(this.layerService.beforeRenderData(this),this.encodeDataLength<=0&&!this.forceRender?this:(this.renderModels(u),this))}},{key:"renderMultiPass",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){return Fi().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(!(this.encodeDataLength<=0&&!this.forceRender)){L.next=2;break}return L.abrupt("return");case 2:if(!(this.multiPassRenderer&&this.multiPassRenderer.getRenderFlag())){L.next=7;break}return L.next=5,this.multiPassRenderer.render();case 5:L.next=8;break;case 7:this.multiPassRenderer?this.renderModels():this.renderModels();case 8:case"end":return L.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"active",value:function(u){var m={};return m.enableHighlight=Sy(u)?!0:u,Sy(u)?(m.enableHighlight=!0,u.color&&(m.highlightColor=u.color),u.mix&&(m.activeMix=u.mix)):m.enableHighlight=!!u,this.updateLayerConfig(m),this}},{key:"setActive",value:function(u,m){var E=this;if(Sy(u)){var L=u.x,Z=L===void 0?0:L,ne=u.y,xe=ne===void 0?0:ne;this.updateLayerConfig({highlightColor:Sy(m)?m.color:this.getLayerConfig().highlightColor,activeMix:Sy(m)?m.mix:this.getLayerConfig().activeMix}),this.pick({x:Z,y:xe})}else this.updateLayerConfig({pickedFeatureID:u,highlightColor:Sy(m)?m.color:this.getLayerConfig().highlightColor,activeMix:Sy(m)?m.mix:this.getLayerConfig().activeMix}),this.hooks.beforeHighlight.call(zr(u)).then(function(){setTimeout(function(){E.reRender()},1)})}},{key:"select",value:function(u){var m={};return m.enableSelect=Sy(u)?!0:u,Sy(u)?(m.enableSelect=!0,u.color&&(m.selectColor=u.color),u.mix&&(m.selectMix=u.mix)):m.enableSelect=!!u,this.updateLayerConfig(m),this}},{key:"setSelect",value:function(u,m){var E=this;if(Sy(u)){var L=u.x,Z=L===void 0?0:L,ne=u.y,xe=ne===void 0?0:ne;this.updateLayerConfig({selectColor:Sy(m)?m.color:this.getLayerConfig().selectColor,selectMix:Sy(m)?m.mix:this.getLayerConfig().selectMix}),this.pick({x:Z,y:xe})}else this.updateLayerConfig({pickedFeatureID:u,selectColor:Sy(m)?m.color:this.getLayerConfig().selectColor,selectMix:Sy(m)?m.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(zr(u)).then(function(){setTimeout(function(){E.reRender()},1)})}},{key:"setBlend",value:function(u){return this.updateLayerConfig({blend:u}),this.reRender(),this}},{key:"show",value:function(){return this.updateLayerConfig({visible:!0}),this.reRender(),this.emit("show"),this}},{key:"hide",value:function(){return this.updateLayerConfig({visible:!1}),this.reRender(),this.emit("hide"),this}},{key:"setIndex",value:function(u){return this.zIndex=u,this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this}},{key:"setCurrentPickId",value:function(u){this.currentPickId=u}},{key:"getCurrentPickId",value:function(){return this.currentPickId}},{key:"setCurrentSelectedId",value:function(u){this.selectedFeatureID=u}},{key:"getCurrentSelectedId",value:function(){return this.selectedFeatureID}},{key:"isVisible",value:function(){var u=this.mapService.getZoom(),m=this.getLayerConfig(),E=m.visible,L=m.minZoom,Z=L===void 0?-1/0:L,ne=m.maxZoom,xe=ne===void 0?1/0:ne;return!!E&&u>=Z&&u0&&arguments[0]!==void 0?arguments[0]:!0;if(!this.isDestroyed){(u=this.layerModel)===null||u===void 0||u.uniformBuffers.forEach(function(wt){wt.destroy()}),this.layerChildren.map(function(wt){return wt.destroy(!1)}),this.layerChildren=[];var xe=this.getLayerConfig(),Oe=xe.maskfence;Oe&&(this.masks.map(function(wt){return wt.destroy(!1)}),this.masks=[]),this.hooks.beforeDestroy.call(),this.layerSource.off("update",this.sourceEvent),(m=this.multiPassRenderer)===null||m===void 0||m.destroy(),this.textureService.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),(E=this.layerModel)===null||E===void 0||E.clearModels(ne),(L=this.tileLayer)===null||L===void 0||L.destroy(),this.models=[],(Z=this.debugService)===null||Z===void 0||Z.removeLog(this.id),this.emit("remove",{target:this,type:"remove"}),this.emit("destroy",{target:this,type:"destroy"}),this.removeAllListeners(),this.isDestroyed=!0}}},{key:"clear",value:function(){this.styleAttributeService.clearAllAttributes()}},{key:"clearModels",value:function(){var u;this.models.forEach(function(m){return m.destroy()}),(u=this.layerModel)===null||u===void 0||u.clearModels(),this.models=[]}},{key:"isDirty",value:function(){return!!(this.styleAttributeService.getLayerStyleAttributes()||[]).filter(function(u){return u.needRescale||u.needRemapping||u.needRegenerateVertices}).length}},{key:"setSource",value:function(u){var m=this;if(this.layerSource&&this.layerSource.off("update",this.sourceEvent),this.layerSource=u,this.clusterZoom=0,this.inited&&this.layerSource.cluster){var E=this.mapService.getZoom();this.layerSource.updateClusterData(E)}this.layerSource.inited&&this.sourceEvent(),this.layerSource.on("update",function(L){var Z=L.type;if(m.coordCenter===void 0){var ne,xe=m.layerSource.center;m.coordCenter=xe,(ne=m.mapService)!==null&&ne!==void 0&&ne.setCoordCenter&&m.mapService.setCoordCenter(xe)}if(Z==="update"){if(m.tileLayer){m.tileLayer.reload();return}m.sourceEvent()}})}},{key:"getSource",value:function(){return this.layerSource}},{key:"getScaleOptions",value:function(){return this.scaleOptions}},{key:"setEncodedData",value:function(u){this.encodedData=u,this.encodeDataLength=u.length}},{key:"getEncodedData",value:function(){return this.encodedData}},{key:"getScale",value:function(u){return this.styleAttributeService.getLayerAttributeScale(u)}},{key:"getLegend",value:function(u){var m,E,L,Z=this.styleAttributeService.getLayerStyleAttribute(u),ne=(Z==null||(m=Z.scale)===null||m===void 0?void 0:m.scalers)||[];return{type:(E=ne[0].option)===null||E===void 0?void 0:E.type,field:Z==null||(L=Z.scale)===null||L===void 0?void 0:L.field,items:this.getLegendItems(u)}}},{key:"getLegendItems",value:function(u){var m=this.styleAttributeService.getLayerAttributeScale(u);if(!m)return[];if(m.invertExtent){var E=m.range().map(function(ne){return(0,Tn.Z)({value:m.invertExtent(ne)},u,ne)});return E}else if(m.ticks){var L=m.ticks().map(function(ne){return(0,Tn.Z)({value:ne},u,m(ne))});return L}else if(m!=null&&m.domain){var Z=m.domain().filter(function(ne){return!JF(ne)}).map(function(ne){return(0,Tn.Z)({value:ne},u,m(ne))});return Z}return[]}},{key:"pick",value:function(u){var m=u.x,E=u.y;this.interactionService.triggerHover({x:m,y:E})}},{key:"boxSelect",value:function(u,m){this.pickingService.boxPickLayer(this,u,m)}},{key:"buildLayerModel",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(E){var L=this,Z,ne,xe,Oe,wt,Bt,wn,Rn,Pr,ui,oo,xo;return Fi().wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:return Z=E.moduleName,ne=E.vertexShader,xe=E.fragmentShader,Oe=E.inject,wt=E.triangulation,Bt=E.styleOption,wn=(0,dm.Z)(E,tM),this.shaderModuleService.registerModule(Z,{vs:ne,fs:xe,inject:Oe}),Rn=this.shaderModuleService.getModule(Z),Pr=Rn.vs,ui=Rn.fs,oo=Rn.uniforms,xo=this.rendererService.createModel,aa.abrupt("return",new Promise(function(fa){var Za=L.styleAttributeService.createAttributesAndIndices(L.encodedData,wt,Bt),gl=Za.attributes,tu=Za.elements,ku=Za.count,ju=(0,ze.Z)({attributes:gl,uniforms:oo,fs:ui,vs:Pr,elements:tu,blend:o1[wh.normal],uniformBuffers:[].concat((0,_n.Z)(L.layerModel.uniformBuffers),(0,_n.Z)(L.rendererService.uniformBuffers)),textures:L.layerModel.textures},wn);ku&&(ju.count=ku);var Xc=xo(ju);fa(Xc)}));case 5:case"end":return aa.stop()}},m,this)}));function u(m){return c.apply(this,arguments)}return u}()},{key:"createAttributes",value:function(u){var m=u.triangulation,E=this.styleAttributeService.createAttributes(this.encodedData,m),L=E.attributes;return L}},{key:"getTime",value:function(){return this.layerService.clock.getDelta()}},{key:"setAnimateStartTime",value:function(){this.animateStartTime=this.layerService.clock.getElapsedTime()}},{key:"stopAnimate",value:function(){this.animateStatus&&(this.layerService.stopAnimate(),this.animateStatus=!1,this.updateLayerConfig({animateOption:{enable:!1}}))}},{key:"getLayerAnimateTime",value:function(){return this.layerService.clock.getElapsedTime()-this.animateStartTime}},{key:"needPick",value:function(u){var m=this.getLayerConfig(),E=m.enableHighlight,L=E===void 0?!0:E,Z=m.enableSelect,ne=Z===void 0?!0:Z,xe=this.eventNames().indexOf(u)!==-1||this.eventNames().indexOf("un"+u)!==-1;return(u==="click"||u==="dblclick")&&ne&&(xe=!0),u==="mousemove"&&(L||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&(xe=!0),this.isVisible()&&xe}},{key:"buildModels",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){return Fi().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return L.stop()}},m)}));function u(){return c.apply(this,arguments)}return u}()},{key:"rebuildModels",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){return Fi().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.buildModels();case 2:case"end":return L.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"renderMulPass",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(E){return Fi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,E.render();case 2:case"end":return Z.stop()}},m)}));function u(m){return c.apply(this,arguments)}return u}()},{key:"renderModels",value:function(){var u=this,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.encodeDataLength<=0&&!this.forceRender?(this.clearModels(),this):(this.hooks.beforeRender.call(),this.models.forEach(function(E){E.draw({uniforms:u.layerModel.getUninforms(),blend:u.layerModel.getBlend(),stencil:u.layerModel.getStencil(m)},(m==null?void 0:m.ispick)||!1)}),this.hooks.afterRender.call(),this)}},{key:"updateStyleAttribute",value:function(u,m,E,L){var Z=this.configService.getAttributeConfig(this.id)||{};return TC(Z[u],{field:m,values:E})?!1:(["color","size","texture","rotate","filter","label","shape"].indexOf(u)!==-1&&this.configService.setAttributeConfig(this.id,(0,Tn.Z)({},u,{field:m,values:E})),this.startInit?this.styleAttributeService.updateStyleAttribute(u,{scale:(0,ze.Z)({field:m},this.splitValuesAndCallbackInAttribute(E,this.getLayerConfig()[m]))},L):this.pendingStyleAttributes.push({attributeName:u,attributeField:m,attributeValues:E,updateOptions:L}),!0)}},{key:"getLayerAttributeConfig",value:function(){return this.configService.getAttributeConfig(this.id)}},{key:"getShaderPickStat",value:function(){return this.layerService.getShaderPickStat()}},{key:"setEarthTime",value:function(u){console.warn("empty fn")}},{key:"processData",value:function(u){return u}},{key:"getModelType",value:function(){throw new Error("Method not implemented.")}},{key:"getDefaultConfig",value:function(){return{}}},{key:"initLayerModels",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){return Fi().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return this.models.forEach(function(Z){return Z.destroy()}),this.models=[],L.next=4,this.layerModel.initModels();case 4:this.models=L.sent;case 5:case"end":return L.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"reRender",value:function(){this.inited&&this.layerService.reRender()}},{key:"splitValuesAndCallbackInAttribute",value:function(u){return{values:C4(u)?void 0:u,callback:C4(u)?u:void 0}}}]),l}(uc.EventEmitter),w4=zd(X3.prototype,"configService",[x4],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X3);function Kk(o,d){return{enable:o,mask:255,func:{cmp:Di.EQUAL,ref:d?1:0,mask:1}}}function rM(o){return o.maskOperation===ss.OR?{enable:!0,mask:255,func:{cmp:Di.ALWAYS,ref:1,mask:255},opFront:{fail:Di.KEEP,zfail:Di.REPLACE,zpass:Di.REPLACE}}:{enable:!0,mask:255,func:{cmp:o.stencilType===Fh.SINGLE||o.stencilIndex===0?Di.ALWAYS:Di.LESS,ref:o.stencilType===Fh.SINGLE?1:o.stencilIndex===0?2:1,mask:255},opFront:{fail:Di.KEEP,zfail:Di.REPLACE,zpass:Di.REPLACE}}}var Qs={opacity:1,stroke:[1,0,0,1],offsets:[0,0],rotation:0,extrusionBase:0,strokeOpacity:1,thetaOffset:.314},El={opacity:"float",stroke:"vec4",offsets:"vec2",textOffset:"vec2",rotation:"float",extrusionBase:"float",strokeOpacity:"float",thetaOffset:"float"};function il(o){var d="";return Object.keys(o).forEach(function(l){var c=o[l];Array.isArray(c)?d+="vec".concat(c.length," ").concat(l,`; +`);var jg,i1=(jg={},(0,Tn.Z)(jg,wd.additive,{enable:!0,func:{srcRGB:Ai.ONE,dstRGB:Ai.ONE,srcAlpha:1,dstAlpha:1}}),(0,Tn.Z)(jg,wd.none,{enable:!1}),(0,Tn.Z)(jg,wd.normal,{enable:!0,func:{srcRGB:Ai.SRC_ALPHA,dstRGB:Ai.ONE_MINUS_SRC_ALPHA,srcAlpha:1,dstAlpha:1}}),(0,Tn.Z)(jg,wd.subtractive,{enable:!0,func:{srcRGB:Ai.ONE,dstRGB:Ai.ONE,srcAlpha:Ai.ZERO,dstAlpha:Ai.ONE_MINUS_SRC_COLOR},equation:{rgb:Ai.FUNC_SUBTRACT,alpha:Ai.FUNC_SUBTRACT}}),(0,Tn.Z)(jg,wd.max,{enable:!0,func:{srcRGB:Ai.ONE,dstRGB:Ai.ONE},equation:{rgb:Ai.MAX_EXT}}),(0,Tn.Z)(jg,wd.min,{enable:!0,func:{srcRGB:Ai.ONE,dstRGB:Ai.ONE},equation:{rgb:Ai.MIN_EXT}}),jg);function H_(o){return o.map(function(d){return typeof d=="string"&&(d=[d,{}]),d})}function o1(o,d,l,c){var u=o.multiPassRenderer,m=o.getLayerConfig(),E=m.enableTAA;return E?u.add(c("taa")):u.add(c("render")),H_(d).forEach(function(M){var Z=(0,Or.Z)(M,2),ne=Z[0],Ce=Z[1];u.add(l(ne),Ce)}),u.add(l("copy")),u}var o_=function(){function o(d){(0,wt.Z)(this,o),this.layer=d}return(0,nt.Z)(o,[{key:"pickRender",value:function(l){var c=this.layer.getContainer(),u=c.get(Zs.ILayerService),m=this.layer;if(m.tileLayer)return m.tileLayer.pickRender(l);m.hooks.beforePickingEncode.call(),u.renderTileLayerMask(m),m.renderModels({ispick:!0}),m.hooks.afterPickingEncode.call()}},{key:"pick",value:function(l,c){var u=this.layer.getContainer(),m=u.get(Zs.IPickingService);return l.type==="RasterLayer"?this.pickRasterLayer(l,c):(this.pickRender(c),m.pickFromPickingFBO(l,c))}},{key:"pickRasterLayer",value:function(l,c,u){var m=this.layer.getContainer(),E=m.get(Zs.IPickingService),M=m.get(Zs.IMapService),Z=this.layer.getSource().extent,ne=vd(c.lngLat,Z),Ce={x:c.x,y:c.y,type:c.type,lngLat:c.lngLat,target:c,rasterValue:null},Oe=u||l;if(ne){var Ct=this.readRasterValue(l,Z,M,c.x,c.y);return Ce.rasterValue=Ct,E.triggerHoverOnLayer(Oe,Ce),!0}else return Ce.type=c.type==="mousemove"?"mouseout":"un"+c.type,E.triggerHoverOnLayer(Oe,(0,Be.Z)((0,Be.Z)({},Ce),{},{type:"unpick"})),E.triggerHoverOnLayer(Oe,Ce),!1}},{key:"readRasterValue",value:function(l,c,u,m,E){var M=l.getSource().data.dataArray[0],Z=(0,Or.Z)(c,4),ne=Z[0],Ce=ne===void 0?0:ne,Oe=Z[1],Ct=Oe===void 0?0:Oe,Bt=Z[2],An=Bt===void 0?10:Bt,kn=Z[3],Ir=kn===void 0?-10:kn,ui=u.lngLatToContainer([Ce,Ct]),ao=u.lngLatToContainer([An,Ir]),wo=ao.x-ui.x,Ds=ui.y-ao.y,oa=[(m-ui.x)/wo,(E-ao.y)/Ds],fa=M.width||1,Wa=M.height||1,vl=Math.floor(oa[0]*fa),Ql=Math.floor(oa[1]*Wa),Ou=Math.max(0,Ql-1)*fa+vl,Uu=M.data[Ou];return Uu}},{key:"selectFeature",value:function(l){var c=this.layer,u=(0,Or.Z)(l,3),m=u[0],E=u[1],M=u[2];c.hooks.beforeSelect.call([m,E,M])}},{key:"highlightPickedFeature",value:function(l){var c=(0,Or.Z)(l,3),u=c[0],m=c[1],E=c[2];this.layer.hooks.beforeHighlight.call([u,m,E])}},{key:"getFeatureById",value:function(l){return this.layer.getSource().getFeatureById(l)}}]),o}(),LT=function(){function o(d){(0,wt.Z)(this,o),this.layer=d;var l=this.layer.getContainer();this.rendererService=l.get(Zs.IRendererService)}return(0,nt.Z)(o,[{key:"getColorTexture",value:function(l,c){var u=this.getTextureKey(l,c);return this.key===u?this.colorTexture:(this.createColorTexture(l,c),this.key=u,this.colorTexture)}},{key:"createColorTexture",value:function(l,c){var u=this.rendererService.createTexture2D,m=this.getColorRampBar(l,c),E=u({data:new Uint8Array(m.data),width:m.width,height:m.height,flipY:!1});return this.colorTexture=E,E}},{key:"setColorTexture",value:function(l,c,u){this.key=this.getTextureKey(c,u),this.colorTexture=l}},{key:"destroy",value:function(){var l;(l=this.colorTexture)===null||l===void 0||l.destroy()}},{key:"getColorRampBar",value:function(l,c){switch(l.type){case"cat":return ns(l);case"quantize":return Ur(l);case"custom":return gs(l,c);case"linear":return Qi(l,c);default:return Kr(l)}}},{key:"getTextureKey",value:function(l,c){var u;return"".concat(l.colors.join("_"),"_").concat(l==null||(u=l.positions)===null||u===void 0?void 0:u.join("_"),"_").concat(l.type,"_").concat(c==null?void 0:c.join("_"))}}]),o}(),JL=["passes"],QL=["moduleName","vertexShader","fragmentShader","inject","triangulation","styleOption"],y4,q3,_4;function Yk(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=eM(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function eM(o,d){if(o){if(typeof o=="string")return MT(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return MT(o,d)}}function MT(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l0&&arguments[0]!==void 0?arguments[0]:{};return(0,wt.Z)(this,l),c=d.call(this),(0,Tn.Z)((0,ys.Z)(c),"id","".concat(J3++)),(0,Tn.Z)((0,ys.Z)(c),"name","".concat(J3)),(0,Tn.Z)((0,ys.Z)(c),"visible",!0),(0,Tn.Z)((0,ys.Z)(c),"zIndex",0),(0,Tn.Z)((0,ys.Z)(c),"inited",!1),(0,Tn.Z)((0,ys.Z)(c),"layerModelNeedUpdate",!1),(0,Tn.Z)((0,ys.Z)(c),"pickedFeatureID",null),(0,Tn.Z)((0,ys.Z)(c),"selectedFeatureID",null),(0,Tn.Z)((0,ys.Z)(c),"styleNeedUpdate",!1),(0,Tn.Z)((0,ys.Z)(c),"forceRender",!1),(0,Tn.Z)((0,ys.Z)(c),"clusterZoom",0),(0,Tn.Z)((0,ys.Z)(c),"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),(0,Tn.Z)((0,ys.Z)(c),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),(0,Tn.Z)((0,ys.Z)(c),"hooks",{init:new ZE,afterInit:new mS,beforeRender:new mS,beforeRenderData:new cC,afterRender:new V1,beforePickingEncode:new V1,afterPickingEncode:new V1,beforeHighlight:new V1(["pickedColor"]),afterHighlight:new V1,beforeSelect:new V1(["pickedColor"]),afterSelect:new V1,beforeDestroy:new V1,afterDestroy:new V1}),(0,Tn.Z)((0,ys.Z)(c),"models",[]),(0,Tn.Z)((0,ys.Z)(c),"startInit",!1),(0,Tn.Z)((0,ys.Z)(c),"layerChildren",[]),(0,Tn.Z)((0,ys.Z)(c),"masks",[]),Uc((0,ys.Z)(c),"configService",_4,(0,ys.Z)(c)),(0,Tn.Z)((0,ys.Z)(c),"animateOptions",{enable:!1}),(0,Tn.Z)((0,ys.Z)(c),"currentPickId",null),(0,Tn.Z)((0,ys.Z)(c),"encodeStyleAttribute",{}),(0,Tn.Z)((0,ys.Z)(c),"enableShaderEncodeStyles",[]),(0,Tn.Z)((0,ys.Z)(c),"enableDataEncodeStyles",[]),(0,Tn.Z)((0,ys.Z)(c),"enablg",[]),(0,Tn.Z)((0,ys.Z)(c),"pendingStyleAttributes",[]),(0,Tn.Z)((0,ys.Z)(c),"scaleOptions",{}),(0,Tn.Z)((0,ys.Z)(c),"animateStatus",!1),(0,Tn.Z)((0,ys.Z)(c),"isDestroyed",!1),(0,Tn.Z)((0,ys.Z)(c),"encodeDataLength",0),(0,Tn.Z)((0,ys.Z)(c),"sourceEvent",function(){c.dataState.dataSourceNeedUpdate=!0;var m=c.getLayerConfig();m&&m.autoFit&&c.fitBounds(m.fitBoundsOptions);var E=c.layerSource.getSourceCfg().autoRender;E&&setTimeout(function(){c.reRender()},10)}),c.name=u.name||c.id,c.zIndex=u.zIndex||0,c.rawConfig=u,c}return(0,nt.Z)(l,[{key:"addMask",value:function(u){this.masks.push(u),this.enableMask()}},{key:"removeMask",value:function(u){var m=this.masks.indexOf(u);m>-1&&this.masks.splice(m,1)}},{key:"disableMask",value:function(){this.updateLayerConfig({enableMask:!1})}},{key:"enableMask",value:function(){this.updateLayerConfig({enableMask:!0})}},{key:"addMaskLayer",value:function(u){this.masks.push(u)}},{key:"removeMaskLayer",value:function(u){var m=this.masks.indexOf(u);m>-1&&this.masks.splice(m,1),u.destroy()}},{key:"getAttribute",value:function(u){return this.styleAttributeService.getLayerStyleAttribute(u)}},{key:"getLayerConfig",value:function(){return this.configService.getLayerConfig(this.id)}},{key:"updateLayerConfig",value:function(u){var m=this;if(Object.keys(u).map(function(M){M in m.rawConfig&&(m.rawConfig[M]=u[M])}),!this.startInit)this.needUpdateConfig=(0,Be.Z)((0,Be.Z)({},this.needUpdateConfig),u);else{var E=this.container.get(Zs.SceneID);this.configService.setLayerConfig(E,this.id,(0,Be.Z)((0,Be.Z)((0,Be.Z)({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),u)),this.needUpdateConfig={}}}},{key:"setContainer",value:function(u,m){this.container=u,this.sceneContainer=m}},{key:"getContainer",value:function(){return this.container}},{key:"addPlugin",value:function(u){return this.plugins.push(u),this}},{key:"init",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E=this,M,Z,ne,Ce,Oe,Ct,Bt;return Oi().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:M=this.container.get(Zs.SceneID),this.startInit=!0,this.configService.setLayerConfig(M,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(Zs.IIconService),this.fontService=this.container.get(Zs.IFontService),this.rendererService=this.container.get(Zs.IRendererService),this.layerService=this.container.get(Zs.ILayerService),this.debugService=this.container.get(Zs.IDebugService),this.interactionService=this.container.get(Zs.IInteractionService),this.pickingService=this.container.get(Zs.IPickingService),this.mapService=this.container.get(Zs.IMapService),Z=this.getLayerConfig(),ne=Z.enableMultiPassRenderer,Ce=Z.passes,ne&&Ce!==null&&Ce!==void 0&&Ce.length&&Ce.length>0&&this.mapService.on("mapAfterFrameChange",function(){E.renderLayers()}),this.cameraService=this.container.get(Zs.ICameraService),this.coordinateService=this.container.get(Zs.ICoordinateSystemService),this.shaderModuleService=this.container.get(Zs.IShaderModuleService),this.postProcessingPassFactory=this.container.get(Zs.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(Zs.IFactoryNormalPass),this.styleAttributeService=this.container.get(Zs.IStyleAttributeService),ne&&(this.multiPassRenderer=this.container.get(Zs.IMultiPassRenderer),this.multiPassRenderer.setLayer(this)),this.pendingStyleAttributes.forEach(function(Ir){var ui=Ir.attributeName,ao=Ir.attributeField,wo=Ir.attributeValues,Ds=Ir.updateOptions;E.styleAttributeService.updateStyleAttribute(ui,{scale:(0,Be.Z)({field:ao},E.splitValuesAndCallbackInAttribute(wo,ao?void 0:E.getLayerConfig()[ui]))},Ds)}),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(Zs.ILayerPlugin),Oe=Yk(this.plugins);try{for(Oe.s();!(Ct=Oe.n()).done;)Bt=Ct.value,Bt.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}catch(Ir){Oe.e(Ir)}finally{Oe.f()}return this.layerPickService=new o_(this),this.textureService=new LT(this),this.log(Uv.LayerInitStart),kn.next=31,this.hooks.init.promise();case 31:this.log(Uv.LayerInitEnd),this.inited=!0,this.emit("inited",{target:this,type:"inited"}),this.emit("add",{target:this,type:"add"}),this.hooks.afterInit.call();case 36:case"end":return kn.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"log",value:function(u){var m,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"init";if(!(this.tileLayer||this.isTileLayer)){var M="".concat(this.id,".").concat(E,".").concat(u),Z={id:this.id,type:this.type};(m=this.debugService)===null||m===void 0||m.log(M,Z)}}},{key:"updateModelData",value:function(u){u.attributes&&u.elements?this.models.map(function(m){m.updateAttributesAndElements(u.attributes,u.elements)}):console.warn("data error")}},{key:"setLayerPickService",value:function(u){this.layerPickService=u}},{key:"prepareBuildModel",value:function(){Object.keys(this.needUpdateConfig||{}).length!==0&&this.updateLayerConfig({});var u=this.getLayerConfig(),m=u.animateOption;m!=null&&m.enable&&(this.layerService.startAnimate(),this.animateStatus=!0)}},{key:"color",value:function(u,m,E){return this.updateStyleAttribute("color",u,m,E),this}},{key:"texture",value:function(u,m,E){return this.updateStyleAttribute("texture",u,m,E),this}},{key:"rotate",value:function(u,m,E){return this.updateStyleAttribute("rotate",u,m,E),this}},{key:"size",value:function(u,m,E){return this.updateStyleAttribute("size",u,m,E),this}},{key:"filter",value:function(u,m,E){var M=this.updateStyleAttribute("filter",u,m,E);return this.dataState.dataSourceNeedUpdate=M&&this.inited,this}},{key:"shape",value:function(u,m,E){this.shapeOption={field:u,values:m};var M=this.updateStyleAttribute("shape",u,m,E);return this.dataState.dataSourceNeedUpdate=M&&this.inited,this}},{key:"label",value:function(u,m,E){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:u,attributeValues:m,updateOptions:E}),this}},{key:"animate",value:function(u){var m={};return Sy(u)?(m.enable=!0,m=(0,Be.Z)((0,Be.Z)({},m),u)):m.enable=u,this.updateLayerConfig({animateOption:m}),this}},{key:"source",value:function(u,m){return(u==null?void 0:u.type)==="source"?(this.setSource(u),this):(this.sourceOption={data:u,options:m},this.clusterZoom=0,this)}},{key:"setData",value:function(u,m){var E=this;return this.inited?(this.log(Uv.SourceInitStart,Ll.UPDATE),this.layerSource.setData(u,m),this.log(Uv.SourceInitEnd,Ll.UPDATE)):this.on("inited",function(){E.log(Uv.SourceInitStart,Ll.UPDATE);var M=E.getSource();M?E.layerSource.setData(u,m):E.source(new yw(u,m)),E.layerSource.once("update",function(){E.log(Uv.SourceInitEnd,Ll.UPDATE)})}),this}},{key:"style",value:function(u){var m=this,E=u.passes,M=(0,hm.Z)(u,JL);E&&H_(E).forEach(function(ne){var Ce=m.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(ne[0]);Ce&&Ce.updateOptions(ne[1])}),M.borderColor&&(M.stroke=M.borderColor),M.borderWidth&&(M.strokeWidth=M.borderWidth);var Z=M;return Object.keys(M).forEach(function(ne){var Ce=M[ne];Array.isArray(Ce)&&Ce.length===2&&!kT(Ce[0])&&!kT(Ce[1])&&(Z[ne]={field:Ce[0],value:Ce[1]})}),this.encodeStyle(Z),this.updateLayerConfig(Z),this}},{key:"encodeStyle",value:function(u){var m=this;Object.keys(u).forEach(function(E){[].concat((0,bn.Z)(m.enableShaderEncodeStyles),(0,bn.Z)(m.enableDataEncodeStyles)).includes(E)&&qk(u[E])&&(u[E].field||u[E].value)&&!DC(m.encodeStyleAttribute[E],u[E])?(m.encodeStyleAttribute[E]=u[E],m.updateStyleAttribute(E,u[E].field,u[E].value),m.inited&&(m.dataState.dataMappingNeedUpdate=!0)):m.encodeStyleAttribute[E]&&(delete m.encodeStyleAttribute[E],m.dataState.dataSourceNeedUpdate=!0)})}},{key:"scale",value:function(u,m){var E=(0,Be.Z)({},this.scaleOptions);if(Sy(u)?this.scaleOptions=(0,Be.Z)((0,Be.Z)({},this.scaleOptions),u):this.scaleOptions[u]=m,this.styleAttributeService&&!DC(E,this.scaleOptions)){var M=Sy(u)?u:(0,Tn.Z)({},u,m);this.styleAttributeService.updateScaleAttribute(M)}return this}},{key:"renderLayers",value:function(){this.rendering=!0,this.layerService.reRender(),this.rendering=!1}},{key:"render",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.tileLayer?(this.tileLayer.render(),this):(this.layerService.beforeRenderData(this),this.encodeDataLength<=0&&!this.forceRender?this:(this.renderModels(u),this))}},{key:"renderMultiPass",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){return Oi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(!(this.encodeDataLength<=0&&!this.forceRender)){M.next=2;break}return M.abrupt("return");case 2:if(!(this.multiPassRenderer&&this.multiPassRenderer.getRenderFlag())){M.next=7;break}return M.next=5,this.multiPassRenderer.render();case 5:M.next=8;break;case 7:this.multiPassRenderer?this.renderModels():this.renderModels();case 8:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"active",value:function(u){var m={};return m.enableHighlight=Sy(u)?!0:u,Sy(u)?(m.enableHighlight=!0,u.color&&(m.highlightColor=u.color),u.mix&&(m.activeMix=u.mix)):m.enableHighlight=!!u,this.updateLayerConfig(m),this}},{key:"setActive",value:function(u,m){var E=this;if(Sy(u)){var M=u.x,Z=M===void 0?0:M,ne=u.y,Ce=ne===void 0?0:ne;this.updateLayerConfig({highlightColor:Sy(m)?m.color:this.getLayerConfig().highlightColor,activeMix:Sy(m)?m.mix:this.getLayerConfig().activeMix}),this.pick({x:Z,y:Ce})}else this.updateLayerConfig({pickedFeatureID:u,highlightColor:Sy(m)?m.color:this.getLayerConfig().highlightColor,activeMix:Sy(m)?m.mix:this.getLayerConfig().activeMix}),this.hooks.beforeHighlight.call(Nr(u)).then(function(){setTimeout(function(){E.reRender()},1)})}},{key:"select",value:function(u){var m={};return m.enableSelect=Sy(u)?!0:u,Sy(u)?(m.enableSelect=!0,u.color&&(m.selectColor=u.color),u.mix&&(m.selectMix=u.mix)):m.enableSelect=!!u,this.updateLayerConfig(m),this}},{key:"setSelect",value:function(u,m){var E=this;if(Sy(u)){var M=u.x,Z=M===void 0?0:M,ne=u.y,Ce=ne===void 0?0:ne;this.updateLayerConfig({selectColor:Sy(m)?m.color:this.getLayerConfig().selectColor,selectMix:Sy(m)?m.mix:this.getLayerConfig().selectMix}),this.pick({x:Z,y:Ce})}else this.updateLayerConfig({pickedFeatureID:u,selectColor:Sy(m)?m.color:this.getLayerConfig().selectColor,selectMix:Sy(m)?m.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(Nr(u)).then(function(){setTimeout(function(){E.reRender()},1)})}},{key:"setBlend",value:function(u){return this.updateLayerConfig({blend:u}),this.reRender(),this}},{key:"show",value:function(){return this.updateLayerConfig({visible:!0}),this.reRender(),this.emit("show"),this}},{key:"hide",value:function(){return this.updateLayerConfig({visible:!1}),this.reRender(),this.emit("hide"),this}},{key:"setIndex",value:function(u){return this.zIndex=u,this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this}},{key:"setCurrentPickId",value:function(u){this.currentPickId=u}},{key:"getCurrentPickId",value:function(){return this.currentPickId}},{key:"setCurrentSelectedId",value:function(u){this.selectedFeatureID=u}},{key:"getCurrentSelectedId",value:function(){return this.selectedFeatureID}},{key:"isVisible",value:function(){var u=this.mapService.getZoom(),m=this.getLayerConfig(),E=m.visible,M=m.minZoom,Z=M===void 0?-1/0:M,ne=m.maxZoom,Ce=ne===void 0?1/0:ne;return!!E&&u>=Z&&u0&&arguments[0]!==void 0?arguments[0]:!0;if(!this.isDestroyed){(u=this.layerModel)===null||u===void 0||u.uniformBuffers.forEach(function(Ct){Ct.destroy()}),this.layerChildren.map(function(Ct){return Ct.destroy(!1)}),this.layerChildren=[];var Ce=this.getLayerConfig(),Oe=Ce.maskfence;Oe&&(this.masks.map(function(Ct){return Ct.destroy(!1)}),this.masks=[]),this.hooks.beforeDestroy.call(),this.layerSource.off("update",this.sourceEvent),(m=this.multiPassRenderer)===null||m===void 0||m.destroy(),this.textureService.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),(E=this.layerModel)===null||E===void 0||E.clearModels(ne),(M=this.tileLayer)===null||M===void 0||M.destroy(),this.models=[],(Z=this.debugService)===null||Z===void 0||Z.removeLog(this.id),this.emit("remove",{target:this,type:"remove"}),this.emit("destroy",{target:this,type:"destroy"}),this.removeAllListeners(),this.isDestroyed=!0}}},{key:"clear",value:function(){this.styleAttributeService.clearAllAttributes()}},{key:"clearModels",value:function(){var u;this.models.forEach(function(m){return m.destroy()}),(u=this.layerModel)===null||u===void 0||u.clearModels(),this.models=[]}},{key:"isDirty",value:function(){return!!(this.styleAttributeService.getLayerStyleAttributes()||[]).filter(function(u){return u.needRescale||u.needRemapping||u.needRegenerateVertices}).length}},{key:"setSource",value:function(u){var m=this;if(this.layerSource&&this.layerSource.off("update",this.sourceEvent),this.layerSource=u,this.clusterZoom=0,this.inited&&this.layerSource.cluster){var E=this.mapService.getZoom();this.layerSource.updateClusterData(E)}this.layerSource.inited&&this.sourceEvent(),this.layerSource.on("update",function(M){var Z=M.type;if(m.coordCenter===void 0){var ne,Ce=m.layerSource.center;m.coordCenter=Ce,(ne=m.mapService)!==null&&ne!==void 0&&ne.setCoordCenter&&m.mapService.setCoordCenter(Ce)}if(Z==="update"){if(m.tileLayer){m.tileLayer.reload();return}m.sourceEvent()}})}},{key:"getSource",value:function(){return this.layerSource}},{key:"getScaleOptions",value:function(){return this.scaleOptions}},{key:"setEncodedData",value:function(u){this.encodedData=u,this.encodeDataLength=u.length}},{key:"getEncodedData",value:function(){return this.encodedData}},{key:"getScale",value:function(u){return this.styleAttributeService.getLayerAttributeScale(u)}},{key:"getLegend",value:function(u){var m,E,M,Z=this.styleAttributeService.getLayerStyleAttribute(u),ne=(Z==null||(m=Z.scale)===null||m===void 0?void 0:m.scalers)||[];return{type:(E=ne[0].option)===null||E===void 0?void 0:E.type,field:Z==null||(M=Z.scale)===null||M===void 0?void 0:M.field,items:this.getLegendItems(u)}}},{key:"getLegendItems",value:function(u){var m=this.styleAttributeService.getLayerAttributeScale(u);if(!m)return[];if(m.invertExtent){var E=m.range().map(function(ne){return(0,Tn.Z)({value:m.invertExtent(ne)},u,ne)});return E}else if(m.ticks){var M=m.ticks().map(function(ne){return(0,Tn.Z)({value:ne},u,m(ne))});return M}else if(m!=null&&m.domain){var Z=m.domain().filter(function(ne){return!JF(ne)}).map(function(ne){return(0,Tn.Z)({value:ne},u,m(ne))});return Z}return[]}},{key:"pick",value:function(u){var m=u.x,E=u.y;this.interactionService.triggerHover({x:m,y:E})}},{key:"boxSelect",value:function(u,m){this.pickingService.boxPickLayer(this,u,m)}},{key:"buildLayerModel",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(E){var M=this,Z,ne,Ce,Oe,Ct,Bt,An,kn,Ir,ui,ao,wo;return Oi().wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return Z=E.moduleName,ne=E.vertexShader,Ce=E.fragmentShader,Oe=E.inject,Ct=E.triangulation,Bt=E.styleOption,An=(0,hm.Z)(E,QL),this.shaderModuleService.registerModule(Z,{vs:ne,fs:Ce,inject:Oe}),kn=this.shaderModuleService.getModule(Z),Ir=kn.vs,ui=kn.fs,ao=kn.uniforms,wo=this.rendererService.createModel,oa.abrupt("return",new Promise(function(fa){var Wa=M.styleAttributeService.createAttributesAndIndices(M.encodedData,Ct,Bt),vl=Wa.attributes,Ql=Wa.elements,Ou=Wa.count,Uu=(0,Be.Z)({attributes:vl,uniforms:ao,fs:ui,vs:Ir,elements:Ql,blend:i1[wd.normal],uniformBuffers:[].concat((0,bn.Z)(M.layerModel.uniformBuffers),(0,bn.Z)(M.rendererService.uniformBuffers)),textures:M.layerModel.textures},An);Ou&&(Uu.count=Ou);var hh=wo(Uu);fa(hh)}));case 5:case"end":return oa.stop()}},m,this)}));function u(m){return c.apply(this,arguments)}return u}()},{key:"createAttributes",value:function(u){var m=u.triangulation,E=this.styleAttributeService.createAttributes(this.encodedData,m),M=E.attributes;return M}},{key:"getTime",value:function(){return this.layerService.clock.getDelta()}},{key:"setAnimateStartTime",value:function(){this.animateStartTime=this.layerService.clock.getElapsedTime()}},{key:"stopAnimate",value:function(){this.animateStatus&&(this.layerService.stopAnimate(),this.animateStatus=!1,this.updateLayerConfig({animateOption:{enable:!1}}))}},{key:"getLayerAnimateTime",value:function(){return this.layerService.clock.getElapsedTime()-this.animateStartTime}},{key:"needPick",value:function(u){var m=this.getLayerConfig(),E=m.enableHighlight,M=E===void 0?!0:E,Z=m.enableSelect,ne=Z===void 0?!0:Z,Ce=this.eventNames().indexOf(u)!==-1||this.eventNames().indexOf("un"+u)!==-1;return(u==="click"||u==="dblclick")&&ne&&(Ce=!0),u==="mousemove"&&(M||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&(Ce=!0),this.isVisible()&&Ce}},{key:"buildModels",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){return Oi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return M.stop()}},m)}));function u(){return c.apply(this,arguments)}return u}()},{key:"rebuildModels",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){return Oi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,this.buildModels();case 2:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"renderMulPass",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(E){return Oi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,E.render();case 2:case"end":return Z.stop()}},m)}));function u(m){return c.apply(this,arguments)}return u}()},{key:"renderModels",value:function(){var u=this,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.encodeDataLength<=0&&!this.forceRender?(this.clearModels(),this):(this.hooks.beforeRender.call(),this.models.forEach(function(E){E.draw({uniforms:u.layerModel.getUninforms(),blend:u.layerModel.getBlend(),stencil:u.layerModel.getStencil(m)},(m==null?void 0:m.ispick)||!1)}),this.hooks.afterRender.call(),this)}},{key:"updateStyleAttribute",value:function(u,m,E,M){var Z=this.configService.getAttributeConfig(this.id)||{};return DC(Z[u],{field:m,values:E})?!1:(["color","size","texture","rotate","filter","label","shape"].indexOf(u)!==-1&&this.configService.setAttributeConfig(this.id,(0,Tn.Z)({},u,{field:m,values:E})),this.startInit?this.styleAttributeService.updateStyleAttribute(u,{scale:(0,Be.Z)({field:m},this.splitValuesAndCallbackInAttribute(E,this.getLayerConfig()[m]))},M):this.pendingStyleAttributes.push({attributeName:u,attributeField:m,attributeValues:E,updateOptions:M}),!0)}},{key:"getLayerAttributeConfig",value:function(){return this.configService.getAttributeConfig(this.id)}},{key:"getShaderPickStat",value:function(){return this.layerService.getShaderPickStat()}},{key:"setEarthTime",value:function(u){console.warn("empty fn")}},{key:"processData",value:function(u){return u}},{key:"getModelType",value:function(){throw new Error("Method not implemented.")}},{key:"getDefaultConfig",value:function(){return{}}},{key:"initLayerModels",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){return Oi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return this.models.forEach(function(Z){return Z.destroy()}),this.models=[],M.next=4,this.layerModel.initModels();case 4:this.models=M.sent;case 5:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"reRender",value:function(){this.inited&&this.layerService.reRender()}},{key:"splitValuesAndCallbackInAttribute",value:function(u){return{values:b4(u)?void 0:u,callback:b4(u)?u:void 0}}}]),l}(gc.EventEmitter),_4=Fh(q3.prototype,"configService",[y4],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q3);function Jk(o,d){return{enable:o,mask:255,func:{cmp:Ai.EQUAL,ref:d?1:0,mask:1}}}function tM(o){return o.maskOperation===as.OR?{enable:!0,mask:255,func:{cmp:Ai.ALWAYS,ref:1,mask:255},opFront:{fail:Ai.KEEP,zfail:Ai.REPLACE,zpass:Ai.REPLACE}}:{enable:!0,mask:255,func:{cmp:o.stencilType===Fd.SINGLE||o.stencilIndex===0?Ai.ALWAYS:Ai.LESS,ref:o.stencilType===Fd.SINGLE?1:o.stencilIndex===0?2:1,mask:255},opFront:{fail:Ai.KEEP,zfail:Ai.REPLACE,zpass:Ai.REPLACE}}}var qs={opacity:1,stroke:[1,0,0,1],offsets:[0,0],rotation:0,extrusionBase:0,strokeOpacity:1,thetaOffset:.314},Tl={opacity:"float",stroke:"vec4",offsets:"vec2",textOffset:"vec2",rotation:"float",extrusionBase:"float",strokeOpacity:"float",thetaOffset:"float"};function il(o){var d="";return Object.keys(o).forEach(function(l){var c=o[l];Array.isArray(c)?d+="vec".concat(c.length," ").concat(l,`; `):d+="flot ".concat(l,`; -`)}),d}function hl(o){return Math.ceil(o/4)*4}var fl=function(o){return o[o.POSITION=0]="POSITION",o[o.COLOR=1]="COLOR",o[o.VERTEX_ID=2]="VERTEX_ID",o[o.PICKING_COLOR=3]="PICKING_COLOR",o[o.STROKE=4]="STROKE",o[o.OPACITY=5]="OPACITY",o[o.OFFSETS=6]="OFFSETS",o[o.ROTATION=7]="ROTATION",o[o.EXTRUSION_BASE=8]="EXTRUSION_BASE",o[o.SIZE=9]="SIZE",o[o.SHAPE=10]="SHAPE",o[o.EXTRUDE=11]="EXTRUDE",o[o.MAX=12]="MAX",o[o.NORMAL=13]="NORMAL",o}({});function Nl(o){switch(o){case"rotation":return{name:"Rotation",type:Ih.Attribute,descriptor:{name:"a_Rotation",shaderLocation:fl.ROTATION,buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(l){var c=l.rotation,u=c===void 0?0:c;return Array.isArray(u)?[u[0]]:[u]}}};case"stroke":return{name:"stroke",type:Ih.Attribute,descriptor:{name:"a_Stroke",shaderLocation:fl.STROKE,buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:4,update:function(l){var c=l.stroke,u=c===void 0?[1,1,1,1]:c;return u}}};case"opacity":return{name:"opacity",type:Ih.Attribute,descriptor:{name:"a_Opacity",shaderLocation:fl.OPACITY,buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(l){var c=l.opacity,u=c===void 0?1:c;return[u]}}};case"extrusionBase":return{name:"extrusionBase",type:Ih.Attribute,descriptor:{name:"a_ExtrusionBase",shaderLocation:fl.EXTRUSION_BASE,buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(l){var c=l.extrusionBase,u=c===void 0?0:c;return[u]}}};case"offsets":return{name:"offsets",type:Ih.Attribute,descriptor:{name:"a_Offsets",shaderLocation:fl.OFFSETS,buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:2,update:function(l){var c=l.offsets;return c}}};case"thetaOffset":return{name:"thetaOffset",type:Ih.Attribute,descriptor:{name:"a_ThetaOffset",buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(l){var c=l.thetaOffset,u=c===void 0?1:c;return[u]}}};default:return}}var Bc,Rd,Kc,Hc={opacity:fl.OPACITY,stroke:fl.STROKE,offsets:fl.OFFSETS,rotation:fl.ROTATION,extrusionBase:fl.EXTRUSION_BASE},ec=(Bc=A0(Ls.IGlobalConfigService),Rd=function(){function o(d){(0,Ct.Z)(this,o),(0,Tn.Z)(this,"uniformBuffers",[]),(0,Tn.Z)(this,"textures",[]),(0,Tn.Z)(this,"preStyleAttribute",{}),(0,Tn.Z)(this,"encodeStyleAttribute",{}),Vc(this,"configService",Kc,this),this.layer=d,this.rendererService=d.getContainer().get(Ls.IRendererService),this.pickingService=d.getContainer().get(Ls.IPickingService),this.shaderModuleService=d.getContainer().get(Ls.IShaderModuleService),this.styleAttributeService=d.getContainer().get(Ls.IStyleAttributeService),this.mapService=d.getContainer().get(Ls.IMapService),this.iconService=d.getContainer().get(Ls.IIconService),this.fontService=d.getContainer().get(Ls.IFontService),this.cameraService=d.getContainer().get(Ls.ICameraService),this.layerService=d.getContainer().get(Ls.ILayerService),this.registerStyleAttribute(),this.registerBuiltinAttributes(),this.startModelAnimate();var l=this.rendererService.createTexture2D;this.createTexture2D=l}return(0,nt.Z)(o,[{key:"getBlend",value:function(){var l=this.layer.getLayerConfig(),c=l.blend,u=c===void 0?"normal":c;return o1[wh[u]]}},{key:"getStencil",value:function(l){var c=this.layer.getLayerConfig(),u=c.mask,m=u===void 0?!1:u,E=c.maskInside,L=E===void 0?!0:E,Z=c.enableMask,ne=c.maskOperation,xe=ne===void 0?ss.AND:ne;if(this.layer.type==="MaskLayer")return rM({isStencil:!0,stencilType:Fh.SINGLE});if(l.isStencil)return rM((0,ze.Z)((0,ze.Z)({},l),{},{maskOperation:xe}));var Oe=m||Z&&this.layer.masks.length!==0||this.layer.tileMask!==void 0;return Kk(Oe,L)}},{key:"getDefaultStyle",value:function(){return{}}},{key:"getUninforms",value:function(){throw new Error("Method not implemented.")}},{key:"getAnimateUniforms",value:function(){return{}}},{key:"needUpdate",value:function(){var d=(0,Pl.Z)(Fi().mark(function c(){return Fi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",!1);case 1:case"end":return m.stop()}},c)}));function l(){return d.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var d=(0,Pl.Z)(Fi().mark(function c(){return Fi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return m.stop()}},c)}));function l(){return d.apply(this,arguments)}return l}()},{key:"initModels",value:function(){var d=(0,Pl.Z)(Fi().mark(function c(){return Fi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return m.stop()}},c)}));function l(){return d.apply(this,arguments)}return l}()},{key:"clearModels",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0}},{key:"getAttribute",value:function(){throw new Error("Method not implemented.")}},{key:"render",value:function(l){throw new Error("Method not implemented.")}},{key:"registerBuiltinAttributes",value:function(){throw new Error("Method not implemented.")}},{key:"animateOption2Array",value:function(l){return[l.enable?0:1,l.duration||4,l.interval||.2,l.trailLength||.1]}},{key:"startModelAnimate",value:function(){var l=this.layer.getLayerConfig(),c=l.animateOption;c.enable&&this.layer.setAnimateStartTime()}},{key:"getInject",value:function(){var l=this.layer.encodeStyleAttribute,c="",u=[];this.layer.enableShaderEncodeStyles.forEach(function(L){l[L]?c+="#define USE_ATTRIBUTE_".concat(L.toUpperCase(),` 0.0; +`)}),d}function fl(o){return Math.ceil(o/4)*4}var gl=function(o){return o[o.POSITION=0]="POSITION",o[o.COLOR=1]="COLOR",o[o.VERTEX_ID=2]="VERTEX_ID",o[o.PICKING_COLOR=3]="PICKING_COLOR",o[o.STROKE=4]="STROKE",o[o.OPACITY=5]="OPACITY",o[o.OFFSETS=6]="OFFSETS",o[o.ROTATION=7]="ROTATION",o[o.EXTRUSION_BASE=8]="EXTRUSION_BASE",o[o.SIZE=9]="SIZE",o[o.SHAPE=10]="SHAPE",o[o.EXTRUDE=11]="EXTRUDE",o[o.MAX=12]="MAX",o[o.NORMAL=13]="NORMAL",o}({});function kl(o){switch(o){case"rotation":return{name:"Rotation",type:Id.Attribute,descriptor:{name:"a_Rotation",shaderLocation:gl.ROTATION,buffer:{usage:Ai.DYNAMIC_DRAW,data:[],type:Ai.FLOAT},size:1,update:function(l){var c=l.rotation,u=c===void 0?0:c;return Array.isArray(u)?[u[0]]:[u]}}};case"stroke":return{name:"stroke",type:Id.Attribute,descriptor:{name:"a_Stroke",shaderLocation:gl.STROKE,buffer:{usage:Ai.DYNAMIC_DRAW,data:[],type:Ai.FLOAT},size:4,update:function(l){var c=l.stroke,u=c===void 0?[1,1,1,1]:c;return u}}};case"opacity":return{name:"opacity",type:Id.Attribute,descriptor:{name:"a_Opacity",shaderLocation:gl.OPACITY,buffer:{usage:Ai.STATIC_DRAW,data:[],type:Ai.FLOAT},size:1,update:function(l){var c=l.opacity,u=c===void 0?1:c;return[u]}}};case"extrusionBase":return{name:"extrusionBase",type:Id.Attribute,descriptor:{name:"a_ExtrusionBase",shaderLocation:gl.EXTRUSION_BASE,buffer:{usage:Ai.STATIC_DRAW,data:[],type:Ai.FLOAT},size:1,update:function(l){var c=l.extrusionBase,u=c===void 0?0:c;return[u]}}};case"offsets":return{name:"offsets",type:Id.Attribute,descriptor:{name:"a_Offsets",shaderLocation:gl.OFFSETS,buffer:{usage:Ai.STATIC_DRAW,data:[],type:Ai.FLOAT},size:2,update:function(l){var c=l.offsets;return c}}};case"thetaOffset":return{name:"thetaOffset",type:Id.Attribute,descriptor:{name:"a_ThetaOffset",buffer:{usage:Ai.STATIC_DRAW,data:[],type:Ai.FLOAT},size:1,update:function(l){var c=l.thetaOffset,u=c===void 0?1:c;return[u]}}};default:return}}var Fc,Mh,Gc,Hc={opacity:gl.OPACITY,stroke:gl.STROKE,offsets:gl.OFFSETS,rotation:gl.ROTATION,extrusionBase:gl.EXTRUSION_BASE},ec=(Fc=I0(Zs.IGlobalConfigService),Mh=function(){function o(d){(0,wt.Z)(this,o),(0,Tn.Z)(this,"uniformBuffers",[]),(0,Tn.Z)(this,"textures",[]),(0,Tn.Z)(this,"preStyleAttribute",{}),(0,Tn.Z)(this,"encodeStyleAttribute",{}),Uc(this,"configService",Gc,this),this.layer=d,this.rendererService=d.getContainer().get(Zs.IRendererService),this.pickingService=d.getContainer().get(Zs.IPickingService),this.shaderModuleService=d.getContainer().get(Zs.IShaderModuleService),this.styleAttributeService=d.getContainer().get(Zs.IStyleAttributeService),this.mapService=d.getContainer().get(Zs.IMapService),this.iconService=d.getContainer().get(Zs.IIconService),this.fontService=d.getContainer().get(Zs.IFontService),this.cameraService=d.getContainer().get(Zs.ICameraService),this.layerService=d.getContainer().get(Zs.ILayerService),this.registerStyleAttribute(),this.registerBuiltinAttributes(),this.startModelAnimate();var l=this.rendererService.createTexture2D;this.createTexture2D=l}return(0,nt.Z)(o,[{key:"getBlend",value:function(){var l=this.layer.getLayerConfig(),c=l.blend,u=c===void 0?"normal":c;return i1[wd[u]]}},{key:"getStencil",value:function(l){var c=this.layer.getLayerConfig(),u=c.mask,m=u===void 0?!1:u,E=c.maskInside,M=E===void 0?!0:E,Z=c.enableMask,ne=c.maskOperation,Ce=ne===void 0?as.AND:ne;if(this.layer.type==="MaskLayer")return tM({isStencil:!0,stencilType:Fd.SINGLE});if(l.isStencil)return tM((0,Be.Z)((0,Be.Z)({},l),{},{maskOperation:Ce}));var Oe=m||Z&&this.layer.masks.length!==0||this.layer.tileMask!==void 0;return Jk(Oe,M)}},{key:"getDefaultStyle",value:function(){return{}}},{key:"getUninforms",value:function(){throw new Error("Method not implemented.")}},{key:"getAnimateUniforms",value:function(){return{}}},{key:"needUpdate",value:function(){var d=(0,Pl.Z)(Oi().mark(function c(){return Oi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",!1);case 1:case"end":return m.stop()}},c)}));function l(){return d.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var d=(0,Pl.Z)(Oi().mark(function c(){return Oi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return m.stop()}},c)}));function l(){return d.apply(this,arguments)}return l}()},{key:"initModels",value:function(){var d=(0,Pl.Z)(Oi().mark(function c(){return Oi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return m.stop()}},c)}));function l(){return d.apply(this,arguments)}return l}()},{key:"clearModels",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0}},{key:"getAttribute",value:function(){throw new Error("Method not implemented.")}},{key:"render",value:function(l){throw new Error("Method not implemented.")}},{key:"registerBuiltinAttributes",value:function(){throw new Error("Method not implemented.")}},{key:"animateOption2Array",value:function(l){return[l.enable?0:1,l.duration||4,l.interval||.2,l.trailLength||.1]}},{key:"startModelAnimate",value:function(){var l=this.layer.getLayerConfig(),c=l.animateOption;c.enable&&this.layer.setAnimateStartTime()}},{key:"getInject",value:function(){var l=this.layer.encodeStyleAttribute,c="",u=[];this.layer.enableShaderEncodeStyles.forEach(function(M){l[M]?c+="#define USE_ATTRIBUTE_".concat(M.toUpperCase(),` 0.0; -`):u.push(" ".concat(El[L]," u_").concat(L,";")),c+=` - #ifdef USE_ATTRIBUTE_`.concat(L.toUpperCase(),` - layout(location = `).concat(Hc[L],") in ").concat(El[L]," a_").concat(L.charAt(0).toUpperCase()+L.slice(1),`; +`):u.push(" ".concat(Tl[M]," u_").concat(M,";")),c+=` + #ifdef USE_ATTRIBUTE_`.concat(M.toUpperCase(),` + layout(location = `).concat(Hc[M],") in ").concat(Tl[M]," a_").concat(M.charAt(0).toUpperCase()+M.slice(1),`; #endif `)});var m=u.length?` @@ -1977,15 +1923,15 @@ layout(std140) uniform AttributeUniforms { `.concat(u.join(` `),` }; - `):"";c+=m;var E="";return this.layer.enableShaderEncodeStyles.forEach(function(L){E+=` + `):"";c+=m;var E="";return this.layer.enableShaderEncodeStyles.forEach(function(M){E+=` - #ifdef USE_ATTRIBUTE_`.concat(L.toUpperCase(),` - `).concat(El[L]," ").concat(L," = a_").concat(L.charAt(0).toUpperCase()+L.slice(1),`; + #ifdef USE_ATTRIBUTE_`.concat(M.toUpperCase(),` + `).concat(Tl[M]," ").concat(M," = a_").concat(M.charAt(0).toUpperCase()+M.slice(1),`; #else - `).concat(El[L]," ").concat(L," = u_").concat(L,`; + `).concat(Tl[M]," ").concat(M," = u_").concat(M,`; #endif - `)}),{"vs:#decl":c,"fs:#decl":m,"vs:#main-start":E}}},{key:"getStyleAttribute",value:function(){var l=this,c={};return this.layer.enableShaderEncodeStyles.forEach(function(u){if(!l.layer.encodeStyleAttribute[u]){var m=l.layer.getLayerConfig()[u],E=typeof m=="undefined"?Qs[u]:m;u==="stroke"&&(E=mi(E)),c["u_"+u]=E}}),c}},{key:"registerStyleAttribute",value:function(){var l=this;Object.keys(this.layer.encodeStyleAttribute).forEach(function(c){var u=Nl(c);u&&(l.styleAttributeService.registerStyleAttribute(u),u.descriptor&&(u.descriptor.shaderLocation=Hc[c]))})}},{key:"updateEncodeAttribute",value:function(l,c){this.encodeStyleAttribute[l]=c}},{key:"initUniformsBuffer",value:function(){var l=this.getUniformsBufferInfo(this.getStyleAttribute()),c=this.getCommonUniformsInfo();this.attributeUnifoms=this.rendererService.createBuffer({data:new Float32Array(hl(l.uniformsLength)),isUBO:!0}),this.commonUnifoms=this.rendererService.createBuffer({data:new Float32Array(hl(c.uniformsLength)),isUBO:!0}),this.uniformBuffers=[this.attributeUnifoms,this.commonUnifoms]}},{key:"getUniformsBufferInfo",value:function(l){var c=0,u=[];return Object.values(l).forEach(function(m){Array.isArray(m)?(u.push.apply(u,(0,_n.Z)(m)),c+=m.length):(u.push(m),c+=1)}),{uniformsOption:l,uniformsLength:c,uniformsArray:u}}},{key:"getCommonUniformsInfo",value:function(){return{uniformsLength:0,uniformsArray:[],uniformsOption:{}}}},{key:"updateStyleUnifoms",value:function(){var l=this.getUniformsBufferInfo(this.getStyleAttribute()),c=l.uniformsArray,u=this.getCommonUniformsInfo(),m=u.uniformsArray;this.attributeUnifoms.subData({offset:0,data:new Uint8Array(new Float32Array(c).buffer)}),this.commonUnifoms.subData({offset:0,data:new Uint8Array(new Float32Array(m).buffer)})}}]),o}(),Kc=zd(Rd.prototype,"configService",[Bc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Rd),lf=function(o){return o[o.solid=0]="solid",o[o.dash=1]="dash",o}({}),Df=function(o){return o.VERTICAL="vertical",o.HORIZONTAL="horizontal",o}({}),Kp=function(o){return o.NORMAL="normal",o.REPLACE="replace",o}({}),Lf=function(o){return o[o.pixel=0]="pixel",o[o.meter=1]="meter",o}({}),Ff=function(o){return o.ALWAYS="always",o.DRAGEND="dragend",o}({});function xm(o){var d=Mv();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function Mv(){if(typeof Reflect=="undefined"||!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(o){return!1}}var w_=function(o){(0,lt.Z)(l,o);var d=xm(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&(m=1/Math.sqrt(m)),o[0]=d[0]*m,o[1]=d[1]*m,o[2]=d[2]*m,o}function z0(o,d){return o[0]*d[0]+o[1]*d[1]+o[2]*d[2]}function Qk(o,d,l){var c=d[0],u=d[1],m=d[2],E=l[0],L=l[1],Z=l[2];return o[0]=u*Z-m*L,o[1]=m*E-c*Z,o[2]=c*L-u*E,o}function ZJ(o,d,l,c){var u=d[0],m=d[1],E=d[2];return o[0]=u+c*(l[0]-u),o[1]=m+c*(l[1]-m),o[2]=E+c*(l[2]-E),o}function t7(o,d,l,c,u,m){var E=m*m,L=E*(2*m-3)+1,Z=E*(m-2)+m,ne=E*(m-1),xe=E*(3-2*m);return o[0]=d[0]*L+l[0]*Z+c[0]*ne+u[0]*xe,o[1]=d[1]*L+l[1]*Z+c[1]*ne+u[1]*xe,o[2]=d[2]*L+l[2]*Z+c[2]*ne+u[2]*xe,o}function HJ(o,d,l,c,u,m){var E=1-m,L=E*E,Z=m*m,ne=L*E,xe=3*m*L,Oe=3*Z*E,wt=Z*m;return o[0]=d[0]*ne+l[0]*xe+c[0]*Oe+u[0]*wt,o[1]=d[1]*ne+l[1]*xe+c[1]*Oe+u[1]*wt,o[2]=d[2]*ne+l[2]*xe+c[2]*Oe+u[2]*wt,o}function GJ(o,d){d=d||1;var l=Ig()*2*Math.PI,c=Ig()*2-1,u=Math.sqrt(1-c*c)*d;return o[0]=Math.cos(l)*u,o[1]=Math.sin(l)*u,o[2]=c*d,o}function kT(o,d,l){var c=d[0],u=d[1],m=d[2],E=l[3]*c+l[7]*u+l[11]*m+l[15];return E=E||1,o[0]=(l[0]*c+l[4]*u+l[8]*m+l[12])/E,o[1]=(l[1]*c+l[5]*u+l[9]*m+l[13])/E,o[2]=(l[2]*c+l[6]*u+l[10]*m+l[14])/E,o}function ix(o,d,l){var c=d[0],u=d[1],m=d[2];return o[0]=c*l[0]+u*l[3]+m*l[6],o[1]=c*l[1]+u*l[4]+m*l[7],o[2]=c*l[2]+u*l[5]+m*l[8],o}function VV(o,d,l){var c=l[0],u=l[1],m=l[2],E=l[3],L=d[0],Z=d[1],ne=d[2],xe=u*ne-m*Z,Oe=m*L-c*ne,wt=c*Z-u*L,Bt=u*wt-m*Oe,wn=m*xe-c*wt,Rn=c*Oe-u*xe,Pr=E*2;return xe*=Pr,Oe*=Pr,wt*=Pr,Bt*=2,wn*=2,Rn*=2,o[0]=L+xe+Bt,o[1]=Z+Oe+wn,o[2]=ne+wt+Rn,o}function aM(o,d,l,c){var u=[],m=[];return u[0]=d[0]-l[0],u[1]=d[1]-l[1],u[2]=d[2]-l[2],m[0]=u[0],m[1]=u[1]*Math.cos(c)-u[2]*Math.sin(c),m[2]=u[1]*Math.sin(c)+u[2]*Math.cos(c),o[0]=m[0]+l[0],o[1]=m[1]+l[1],o[2]=m[2]+l[2],o}function jV(o,d,l,c){var u=[],m=[];return u[0]=d[0]-l[0],u[1]=d[1]-l[1],u[2]=d[2]-l[2],m[0]=u[2]*Math.sin(c)+u[0]*Math.cos(c),m[1]=u[1],m[2]=u[2]*Math.cos(c)-u[0]*Math.sin(c),o[0]=m[0]+l[0],o[1]=m[1]+l[1],o[2]=m[2]+l[2],o}function WV(o,d,l,c){var u=[],m=[];return u[0]=d[0]-l[0],u[1]=d[1]-l[1],u[2]=d[2]-l[2],m[0]=u[0]*Math.cos(c)-u[1]*Math.sin(c),m[1]=u[0]*Math.sin(c)+u[1]*Math.cos(c),m[2]=u[2],o[0]=m[0]+l[0],o[1]=m[1]+l[1],o[2]=m[2]+l[2],o}function eO(o,d){var l=o[0],c=o[1],u=o[2],m=d[0],E=d[1],L=d[2],Z=Math.sqrt(l*l+c*c+u*u),ne=Math.sqrt(m*m+E*E+L*L),xe=Z*ne,Oe=xe&&z0(o,d)/xe;return Math.acos(Math.min(Math.max(Oe,-1),1))}function n7(o){return o[0]=0,o[1]=0,o[2]=0,o}function KJ(o){return"vec3("+o[0]+", "+o[1]+", "+o[2]+")"}function r7(o,d){return o[0]===d[0]&&o[1]===d[1]&&o[2]===d[2]}function i7(o,d){var l=o[0],c=o[1],u=o[2],m=d[0],E=d[1],L=d[2];return Math.abs(l-m)<=Nc*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(c-E)<=Nc*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(u-L)<=Nc*Math.max(1,Math.abs(u),Math.abs(L))}var o7=zV,XJ=Xk,BS=Yk,q3=qk,P1=sM,s7=QF,ZV=Jk,tO=function(){var o=Vx();return function(d,l,c,u,m,E){var L,Z;for(l||(l=3),c||(c=0),u?Z=Math.min(u*l+c,d.length):Z=d.length,L=c;L0)for(var aa=Oe.length,fa=aa-2*(Z+1);fa+Z+20&&arguments[0]!==void 0?arguments[0]:{};(0,Ct.Z)(this,o),(0,Tn.Z)(this,"lastFlip",-1),(0,Tn.Z)(this,"miter",Np(0,0)),(0,Tn.Z)(this,"started",!1),(0,Tn.Z)(this,"dash",!1),(0,Tn.Z)(this,"totalDistance",0),(0,Tn.Z)(this,"currentIndex",0),this.join=d.join||"miter",this.cap=d.cap||"butt",this.miterLimit=d.miterLimit||10,this.thickness=d.thickness||1,this.dash=d.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,nt.Z)(o,[{key:"simpleExtrude",value:function(l){var c=this.complex;if(l.length<=1)return c;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var u=l.length,m=c.startIndex,E=1;Ethis.miterLimit&&(Xc=!0)}Xc?(Bt.push(this.normal[0],this.normal[1],0),Bt.push(ku[0],ku[1],0),wt.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*ju,m[2]|0),this.complex.indexes.push(this.currentIndex),wt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness*ju,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Oe.push.apply(Oe,(0,_n.Z)(this.lastFlip!==-ju?[c,c+2,c+3]:[c+2,c+1,c+3])),Oe.push(c+2,c+3,c+4),g1($S,VS),Zp(this.normal,$S),Bt.push(this.normal[0],this.normal[1],0),wt.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*ju,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,xe+=3):(this.extrusions(wt,Bt,m,ku,tu,this.totalDistance),Oe.push.apply(Oe,(0,_n.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),ju=-1,Zp(this.normal,ku),xe+=2),this.lastFlip=ju}else{if(g1(this.normal,G1),wn){var aa=Zh(),fa=Zh();s0(fa,G1,this.normal),Gf(aa,G1,this.normal),Bt.push(fa[0],fa[1],0),Bt.push(aa[0],aa[1],0),wt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),wt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(wt,Bt,m,this.normal,this.thickness,this.totalDistance);Oe.push.apply(Oe,(0,_n.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),xe+=2}return xe}},{key:"segment",value:function(l,c,u,m,E){var L=0,Z=l.indices,ne=l.positions,xe=l.normals,Oe=this.cap==="square",wt=this.join==="bevel",Bt=Mh([m[0],m[1]]),wn=Mh([u[0],u[1]]);v0(G1,Bt,wn);var Rn=0;if(this.dash&&(Rn=this.lineSegmentDistance(Bt,wn),this.totalDistance+=Rn),this.normal||(this.normal=Zh(),g1(this.normal,G1)),!this.started)if(this.started=!0,Oe){var Pr=Zh(),ui=Zh();Gf(Pr,this.normal,G1),Gf(ui,this.normal,G1),xe.push(ui[0],ui[1],0),xe.push(Pr[0],Pr[1],0),ne.push(u[0],u[1],u[2]|0,this.totalDistance-Rn,-this.thickness,u[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(u[0],u[1],u[2]|0,this.totalDistance-Rn,this.thickness,u[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ne,xe,u,this.normal,this.thickness,this.totalDistance-Rn);if(Z.push(c+0,c+1,c+2),E){var Ds=Mh([E[0],E[1]]);L1(Bt,Ds)&&Gf(Ds,Bt,Ng(Ds,of(Ds,Bt,wn))),v0(VS,Ds,Bt);var aa=uM(J3,Zh(),G1,VS,this.thickness),fa=(0,Br.Z)(aa,2),Za=fa[0],gl=fa[1],tu=vm(J3,this.normal)<0?-1:1,ku=wt;if(!ku&&this.join==="miter"){var ju=Za;ju>this.miterLimit&&(ku=!0)}ku?(xe.push(this.normal[0],this.normal[1],0),xe.push(gl[0],gl[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*tu,m[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness*tu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Z.push.apply(Z,(0,_n.Z)(this.lastFlip!==-tu?[c,c+2,c+3]:[c+2,c+1,c+3])),Z.push(c+2,c+3,c+4),g1($S,VS),Zp(this.normal,$S),xe.push(this.normal[0],this.normal[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*tu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,L+=3):(this.extrusions(ne,xe,m,gl,Za,this.totalDistance),Z.push.apply(Z,(0,_n.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),tu=-1,Zp(this.normal,gl),L+=2),this.lastFlip=tu}else{if(g1(this.normal,G1),Oe){var oo=Zh(),xo=Zh();s0(xo,G1,this.normal),Gf(oo,G1,this.normal),xe.push(xo[0],xo[1],0),xe.push(oo[0],oo[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ne,xe,m,this.normal,this.thickness,this.totalDistance);Z.push.apply(Z,(0,_n.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),L+=2}return L}},{key:"extrusions",value:function(l,c,u,m,E,L){c.push(m[0],m[1],0),c.push(m[0],m[1],0),l.push(u[0],u[1],u[2]|0,L,-E,u[2]|0),this.complex.indexes.push(this.currentIndex),l.push(u[0],u[1],u[2]|0,L,E,u[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(l,c){var u=c[0]-l[0],m=c[1]-l[1];return Math.sqrt(u*u+m*m)}}]),o}();function u7(o){var d=o[0][0],l=o[0][o[0].length-1];d[0]===l[0]&&d[1]===l[1]&&(o[0]=o[0].slice(0,o[0].length-1));for(var c=o[0].length,u=ch().flatten(o),m=u.vertices,E=u.dimensions,L=[],Z=[],ne=0;ne1&&arguments[1]!==void 0?arguments[1]:!1,l=o[0][0],c=o[0][o[0].length-1];l[0]===c[0]&&l[1]===c[1]&&(o[0]=o[0].slice(0,o[0].length-1));for(var u=o[0].length,m=ch().flatten(o),E=m.vertices,L=m.dimensions,Z=[],ne=[],xe=[],Oe=0;Oe3&&arguments[3]!==void 0?arguments[3]:!1,u=Vx(),m=Vx(),E=Vx();c&&(o=Kh(o),d=Kh(d),l=Kh(l));var L=r0.apply(b,(0,_n.Z)(o)),Z=r0.apply(b,(0,_n.Z)(d)),ne=r0.apply(b,(0,_n.Z)(l));o7(u,ne,Z),o7(m,L,Z),Qk(E,u,m);var xe=Vx();return bw(xe,E),xe}var sx,Q3=function(o){return o.CYLINDER="cylinder",o.SQUARECOLUMN="squareColumn",o.TRIANGLECOLUMN="triangleColumn",o.HEXAGONCOLUMN="hexagonColumn",o.PENTAGONCOLUMN="pentagonColumn",o}({}),yg=function(o){return o.CIRCLE="circle",o.SQUARE="square",o.TRIANGLE="triangle",o.HEXAGON="hexagon",o.PENTAGON="pentagon",o}({});function OT(o){for(var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=Math.PI*2/o,c=[],u=0;u1&&arguments[1]!==void 0?arguments[1]:!1;if(cM&&cM[o])return cM[o];var l=eD[o]?eD[o]():eD.cylinder(),c=nO([l],d);return cM[o]=c,c}function mM(o,d){for(var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,u=new Float32Array(o.length/l*3),m,E,L,Z=vec3.create(),ne=vec3.create(),xe=vec3.create(),Oe=0,wt=d.length;Oe0&&(m=1/Math.sqrt(m)),o[0]=d[0]*m,o[1]=d[1]*m,o[2]=d[2]*m,o}function z0(o,d){return o[0]*d[0]+o[1]*d[1]+o[2]*d[2]}function rO(o,d,l){var c=d[0],u=d[1],m=d[2],E=l[0],M=l[1],Z=l[2];return o[0]=u*Z-m*M,o[1]=m*E-c*Z,o[2]=c*M-u*E,o}function ZJ(o,d,l,c){var u=d[0],m=d[1],E=d[2];return o[0]=u+c*(l[0]-u),o[1]=m+c*(l[1]-m),o[2]=E+c*(l[2]-E),o}function t7(o,d,l,c,u,m){var E=m*m,M=E*(2*m-3)+1,Z=E*(m-2)+m,ne=E*(m-1),Ce=E*(3-2*m);return o[0]=d[0]*M+l[0]*Z+c[0]*ne+u[0]*Ce,o[1]=d[1]*M+l[1]*Z+c[1]*ne+u[1]*Ce,o[2]=d[2]*M+l[2]*Z+c[2]*ne+u[2]*Ce,o}function HJ(o,d,l,c,u,m){var E=1-m,M=E*E,Z=m*m,ne=M*E,Ce=3*m*M,Oe=3*Z*E,Ct=Z*m;return o[0]=d[0]*ne+l[0]*Ce+c[0]*Oe+u[0]*Ct,o[1]=d[1]*ne+l[1]*Ce+c[1]*Oe+u[1]*Ct,o[2]=d[2]*ne+l[2]*Ce+c[2]*Oe+u[2]*Ct,o}function GJ(o,d){d=d||1;var l=Fg()*2*Math.PI,c=Fg()*2-1,u=Math.sqrt(1-c*c)*d;return o[0]=Math.cos(l)*u,o[1]=Math.sin(l)*u,o[2]=c*d,o}function FT(o,d,l){var c=d[0],u=d[1],m=d[2],E=l[3]*c+l[7]*u+l[11]*m+l[15];return E=E||1,o[0]=(l[0]*c+l[4]*u+l[8]*m+l[12])/E,o[1]=(l[1]*c+l[5]*u+l[9]*m+l[13])/E,o[2]=(l[2]*c+l[6]*u+l[10]*m+l[14])/E,o}function ox(o,d,l){var c=d[0],u=d[1],m=d[2];return o[0]=c*l[0]+u*l[3]+m*l[6],o[1]=c*l[1]+u*l[4]+m*l[7],o[2]=c*l[2]+u*l[5]+m*l[8],o}function UV(o,d,l){var c=l[0],u=l[1],m=l[2],E=l[3],M=d[0],Z=d[1],ne=d[2],Ce=u*ne-m*Z,Oe=m*M-c*ne,Ct=c*Z-u*M,Bt=u*Ct-m*Oe,An=m*Ce-c*Ct,kn=c*Oe-u*Ce,Ir=E*2;return Ce*=Ir,Oe*=Ir,Ct*=Ir,Bt*=2,An*=2,kn*=2,o[0]=M+Ce+Bt,o[1]=Z+Oe+An,o[2]=ne+Ct+kn,o}function oM(o,d,l,c){var u=[],m=[];return u[0]=d[0]-l[0],u[1]=d[1]-l[1],u[2]=d[2]-l[2],m[0]=u[0],m[1]=u[1]*Math.cos(c)-u[2]*Math.sin(c),m[2]=u[1]*Math.sin(c)+u[2]*Math.cos(c),o[0]=m[0]+l[0],o[1]=m[1]+l[1],o[2]=m[2]+l[2],o}function $V(o,d,l,c){var u=[],m=[];return u[0]=d[0]-l[0],u[1]=d[1]-l[1],u[2]=d[2]-l[2],m[0]=u[2]*Math.sin(c)+u[0]*Math.cos(c),m[1]=u[1],m[2]=u[2]*Math.cos(c)-u[0]*Math.sin(c),o[0]=m[0]+l[0],o[1]=m[1]+l[1],o[2]=m[2]+l[2],o}function VV(o,d,l,c){var u=[],m=[];return u[0]=d[0]-l[0],u[1]=d[1]-l[1],u[2]=d[2]-l[2],m[0]=u[0]*Math.cos(c)-u[1]*Math.sin(c),m[1]=u[0]*Math.sin(c)+u[1]*Math.cos(c),m[2]=u[2],o[0]=m[0]+l[0],o[1]=m[1]+l[1],o[2]=m[2]+l[2],o}function iO(o,d){var l=o[0],c=o[1],u=o[2],m=d[0],E=d[1],M=d[2],Z=Math.sqrt(l*l+c*c+u*u),ne=Math.sqrt(m*m+E*E+M*M),Ce=Z*ne,Oe=Ce&&z0(o,d)/Ce;return Math.acos(Math.min(Math.max(Oe,-1),1))}function n7(o){return o[0]=0,o[1]=0,o[2]=0,o}function KJ(o){return"vec3("+o[0]+", "+o[1]+", "+o[2]+")"}function r7(o,d){return o[0]===d[0]&&o[1]===d[1]&&o[2]===d[2]}function i7(o,d){var l=o[0],c=o[1],u=o[2],m=d[0],E=d[1],M=d[2];return Math.abs(l-m)<=Rc*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(c-E)<=Rc*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(u-M)<=Rc*Math.max(1,Math.abs(u),Math.abs(M))}var o7=FV,XJ=Qk,BS=eO,Q3=tO,P1=iM,s7=QF,jV=nO,oO=function(){var o=$x();return function(d,l,c,u,m,E){var M,Z;for(l||(l=3),c||(c=0),u?Z=Math.min(u*l+c,d.length):Z=d.length,M=c;M0)for(var oa=Oe.length,fa=oa-2*(Z+1);fa+Z+20&&arguments[0]!==void 0?arguments[0]:{};(0,wt.Z)(this,o),(0,Tn.Z)(this,"lastFlip",-1),(0,Tn.Z)(this,"miter",Op(0,0)),(0,Tn.Z)(this,"started",!1),(0,Tn.Z)(this,"dash",!1),(0,Tn.Z)(this,"totalDistance",0),(0,Tn.Z)(this,"currentIndex",0),this.join=d.join||"miter",this.cap=d.cap||"butt",this.miterLimit=d.miterLimit||10,this.thickness=d.thickness||1,this.dash=d.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,nt.Z)(o,[{key:"simpleExtrude",value:function(l){var c=this.complex;if(l.length<=1)return c;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var u=l.length,m=c.startIndex,E=1;Ethis.miterLimit&&(hh=!0)}hh?(Bt.push(this.normal[0],this.normal[1],0),Bt.push(Ou[0],Ou[1],0),Ct.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*Uu,m[2]|0),this.complex.indexes.push(this.currentIndex),Ct.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness*Uu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Oe.push.apply(Oe,(0,bn.Z)(this.lastFlip!==-Uu?[c,c+2,c+3]:[c+2,c+1,c+3])),Oe.push(c+2,c+3,c+4),g1($S,VS),Vp(this.normal,$S),Bt.push(this.normal[0],this.normal[1],0),Ct.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*Uu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Ce+=3):(this.extrusions(Ct,Bt,m,Ou,Ql,this.totalDistance),Oe.push.apply(Oe,(0,bn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Uu=-1,Vp(this.normal,Ou),Ce+=2),this.lastFlip=Uu}else{if(g1(this.normal,G1),An){var oa=Hd(),fa=Hd();Wm(fa,G1,this.normal),Qf(oa,G1,this.normal),Bt.push(fa[0],fa[1],0),Bt.push(oa[0],oa[1],0),Ct.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),Ct.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(Ct,Bt,m,this.normal,this.thickness,this.totalDistance);Oe.push.apply(Oe,(0,bn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Ce+=2}return Ce}},{key:"segment",value:function(l,c,u,m,E){var M=0,Z=l.indices,ne=l.positions,Ce=l.normals,Oe=this.cap==="square",Ct=this.join==="bevel",Bt=Md([m[0],m[1]]),An=Md([u[0],u[1]]);m0(G1,Bt,An);var kn=0;if(this.dash&&(kn=this.lineSegmentDistance(Bt,An),this.totalDistance+=kn),this.normal||(this.normal=Hd(),g1(this.normal,G1)),!this.started)if(this.started=!0,Oe){var Ir=Hd(),ui=Hd();Qf(Ir,this.normal,G1),Qf(ui,this.normal,G1),Ce.push(ui[0],ui[1],0),Ce.push(Ir[0],Ir[1],0),ne.push(u[0],u[1],u[2]|0,this.totalDistance-kn,-this.thickness,u[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(u[0],u[1],u[2]|0,this.totalDistance-kn,this.thickness,u[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ne,Ce,u,this.normal,this.thickness,this.totalDistance-kn);if(Z.push(c+0,c+1,c+2),E){var Ds=Md([E[0],E[1]]);L1(Bt,Ds)&&Qf(Ds,Bt,Lg(Ds,df(Ds,Bt,An))),m0(VS,Ds,Bt);var oa=aM(eD,Hd(),G1,VS,this.thickness),fa=(0,Or.Z)(oa,2),Wa=fa[0],vl=fa[1],Ql=bm(eD,this.normal)<0?-1:1,Ou=Ct;if(!Ou&&this.join==="miter"){var Uu=Wa;Uu>this.miterLimit&&(Ou=!0)}Ou?(Ce.push(this.normal[0],this.normal[1],0),Ce.push(vl[0],vl[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*Ql,m[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness*Ql,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Z.push.apply(Z,(0,bn.Z)(this.lastFlip!==-Ql?[c,c+2,c+3]:[c+2,c+1,c+3])),Z.push(c+2,c+3,c+4),g1($S,VS),Vp(this.normal,$S),Ce.push(this.normal[0],this.normal[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*Ql,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,M+=3):(this.extrusions(ne,Ce,m,vl,Wa,this.totalDistance),Z.push.apply(Z,(0,bn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Ql=-1,Vp(this.normal,vl),M+=2),this.lastFlip=Ql}else{if(g1(this.normal,G1),Oe){var ao=Hd(),wo=Hd();Wm(wo,G1,this.normal),Qf(ao,G1,this.normal),Ce.push(wo[0],wo[1],0),Ce.push(ao[0],ao[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ne,Ce,m,this.normal,this.thickness,this.totalDistance);Z.push.apply(Z,(0,bn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),M+=2}return M}},{key:"extrusions",value:function(l,c,u,m,E,M){c.push(m[0],m[1],0),c.push(m[0],m[1],0),l.push(u[0],u[1],u[2]|0,M,-E,u[2]|0),this.complex.indexes.push(this.currentIndex),l.push(u[0],u[1],u[2]|0,M,E,u[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(l,c){var u=c[0]-l[0],m=c[1]-l[1];return Math.sqrt(u*u+m*m)}}]),o}();function u7(o){var d=o[0][0],l=o[0][o[0].length-1];d[0]===l[0]&&d[1]===l[1]&&(o[0]=o[0].slice(0,o[0].length-1));for(var c=o[0].length,u=cd().flatten(o),m=u.vertices,E=u.dimensions,M=[],Z=[],ne=0;ne1&&arguments[1]!==void 0?arguments[1]:!1,l=o[0][0],c=o[0][o[0].length-1];l[0]===c[0]&&l[1]===c[1]&&(o[0]=o[0].slice(0,o[0].length-1));for(var u=o[0].length,m=cd().flatten(o),E=m.vertices,M=m.dimensions,Z=[],ne=[],Ce=[],Oe=0;Oe3&&arguments[3]!==void 0?arguments[3]:!1,u=$x(),m=$x(),E=$x();c&&(o=Kd(o),d=Kd(d),l=Kd(l));var M=r0.apply(b,(0,bn.Z)(o)),Z=r0.apply(b,(0,bn.Z)(d)),ne=r0.apply(b,(0,bn.Z)(l));o7(u,ne,Z),o7(m,M,Z),rO(E,u,m);var Ce=$x();return xw(Ce,E),Ce}var ax,tD=function(o){return o.CYLINDER="cylinder",o.SQUARECOLUMN="squareColumn",o.TRIANGLECOLUMN="triangleColumn",o.HEXAGONCOLUMN="hexagonColumn",o.PENTAGONCOLUMN="pentagonColumn",o}({}),bg=function(o){return o.CIRCLE="circle",o.SQUARE="square",o.TRIANGLE="triangle",o.HEXAGON="hexagon",o.PENTAGON="pentagon",o}({});function BT(o){for(var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=Math.PI*2/o,c=[],u=0;u1&&arguments[1]!==void 0?arguments[1]:!1;if(lM&&lM[o])return lM[o];var l=nD[o]?nD[o]():nD.cylinder(),c=sO([l],d);return lM[o]=c,c}function pM(o,d){for(var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,u=new Float32Array(o.length/l*3),m,E,M,Z=vec3.create(),ne=vec3.create(),Ce=vec3.create(),Oe=0,Ct=d.length;Oe0&&arguments[0]!==void 0?arguments[0]:1,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:120,ne=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,xe=u/2,Oe=m/2,wt=Math.floor(E),Bt=Math.floor(L),wn=wt+1,Rn=Bt+1,Pr=u/wt,ui=m/Bt,oo=[],xo=[],Ds=0;Ds0&&arguments[0]!==void 0?arguments[0]:1,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:120,ne=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,Ce=u/2,Oe=m/2,Ct=Math.floor(E),Bt=Math.floor(M),An=Ct+1,kn=Bt+1,Ir=u/Ct,ui=m/Bt,ao=[],wo=[],Ds=0;Dswt&&(c.positions[Bt+2]=Oe)):(c.positions[Bt+2]-=xe,c.positions[Bt+2]0&&arguments[0]!==void 0?arguments[0]:10,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:120,L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30,Z=[],ne=[],xe=this.mapService,Oe=this.spriteAnimate===aD.UP?-this.spriteTop:this.spriteTop,wt=0;wtCt&&(c.positions[Bt+2]=Oe)):(c.positions[Bt+2]-=Ce,c.positions[Bt+2]0&&arguments[0]!==void 0?arguments[0]:10,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:120,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30,Z=[],ne=[],Ce=this.mapService,Oe=this.spriteAnimate===uD.UP?-this.spriteTop:this.spriteTop,Ct=0;Ct0&&arguments[0]!==void 0?arguments[0]:{},E=this.getModelType();return E==="heatmap"?(this.layerModel&&this.layerModel.render(m),this):this.encodeDataLength<=0&&!this.forceRender?this:(this.hooks.beforeRender.call(),this.models.forEach(function(L){return L.draw({uniforms:u.layerModel.getUninforms(),blend:u.layerModel.getBlend(),stencil:u.layerModel.getStencil(m)})}),this.hooks.afterRender.call(),this)}},{key:"updateModelData",value:function(u){u.attributes&&u.elements?this.models[0].updateAttributesAndElements(u.attributes,u.elements):console.warn("data error")}},{key:"getModelType",value:function(){var u,m=this.styleAttributeService.getLayerStyleAttribute("shape"),E=this.getLayerConfig(),L=E.shape3d,Z=this.getSource(),ne=Z.data.type,xe=(m==null||(u=m.scale)===null||u===void 0?void 0:u.field)||"heatmap";return xe==="heatmap"||xe==="heatmap3d"?"heatmap":ne==="hexagon"?(L==null?void 0:L.indexOf(xe))===-1?"hexagon":"grid3d":ne==="grid"?(L==null?void 0:L.indexOf(xe))===-1?"grid":"grid3d":"heatmap"}}]),l}(i_);function SM(o){var d=fj();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function fj(){if(typeof Reflect=="undefined"||!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(o){return!1}}var P2=`precision mediump float; +`,RC=function(o){(0,lt.Z)(l,o);var d=lj(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getUninforms",value:function(){var u=this.layer.getLayerConfig(),m=u.opacity,E=u.coverage,M=u.angle;return{u_opacity:m||1,u_coverage:E||.9,u_angle:M||0,u_radius:[this.layer.getSource().data.xOffset,this.layer.getSource().data.yOffset]}}},{key:"initModels",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){return Oi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",this.buildModels());case 1:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"buildModels",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E;return Oi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,this.layer.buildLayerModel({moduleName:"heatmapHexagon",vertexShader:D4,fragmentShader:cj,triangulation:hO,depth:{enable:!1},primitive:Ai.TRIANGLES});case 2:return E=Z.sent,Z.abrupt("return",[E]);case 4:case"end":return Z.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"pos",type:Id.Attribute,descriptor:{name:"a_Pos",buffer:{usage:Ai.DYNAMIC_DRAW,data:[],type:Ai.FLOAT},size:3,update:function(m){var E=m.version==="GAODE2.x"?m.originCoordinates:m.coordinates;return[E[0],E[1],0]}}})}}]),l}(ec),Cw={heatmap:_O,heatmap3d:_O,grid:E4,grid3d:ww,hexagon:RC},kC=Cw;function xM(o){var d=y7();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function y7(){if(typeof Reflect=="undefined"||!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(o){return!1}}var bO=function(o){(0,lt.Z)(l,o);var d=xM(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&arguments[0]!==void 0?arguments[0]:{},E=this.getModelType();return E==="heatmap"?(this.layerModel&&this.layerModel.render(m),this):this.encodeDataLength<=0&&!this.forceRender?this:(this.hooks.beforeRender.call(),this.models.forEach(function(M){return M.draw({uniforms:u.layerModel.getUninforms(),blend:u.layerModel.getBlend(),stencil:u.layerModel.getStencil(m)})}),this.hooks.afterRender.call(),this)}},{key:"updateModelData",value:function(u){u.attributes&&u.elements?this.models[0].updateAttributesAndElements(u.attributes,u.elements):console.warn("data error")}},{key:"getModelType",value:function(){var u,m=this.styleAttributeService.getLayerStyleAttribute("shape"),E=this.getLayerConfig(),M=E.shape3d,Z=this.getSource(),ne=Z.data.type,Ce=(m==null||(u=m.scale)===null||u===void 0?void 0:u.field)||"heatmap";return Ce==="heatmap"||Ce==="heatmap3d"?"heatmap":ne==="hexagon"?(M==null?void 0:M.indexOf(Ce))===-1?"hexagon":"grid3d":ne==="grid"?(M==null?void 0:M.indexOf(Ce))===-1?"grid":"grid3d":"heatmap"}}]),l}(s_);function wM(o){var d=hj();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function hj(){if(typeof Reflect=="undefined"||!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(o){return!1}}var I2=`precision mediump float; uniform float u_opacity: 1.0; uniform sampler2D u_texture; varying vec2 v_texCoord; @@ -2665,7 +2611,7 @@ void main() { gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); } -`,pj=function(o){(0,lt.Z)(l,o);var d=SM(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getUninforms",value:function(){var u=this.layer.getLayerConfig(),m=u.opacity;return{u_opacity:m||1,u_texture:this.texture}}},{key:"initModels",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E,L,Z,ne;return Fi().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return E=this.layer.getSource(),L=this.rendererService.createTexture2D,this.texture=L({height:0,width:0}),Oe.next=5,E.data.images;case 5:return Z=Oe.sent,this.texture=L({data:Z[0],width:Z[0].width,height:Z[0].height,mag:Di.LINEAR,min:Di.LINEAR}),Oe.next=9,this.layer.buildLayerModel({moduleName:"rasterImage",vertexShader:_7,fragmentShader:P2,triangulation:BT,primitive:Di.TRIANGLES,blend:{enable:!0},depth:{enable:!1}});case 9:return ne=Oe.sent,Oe.abrupt("return",[ne]);case 11:case"end":return Oe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"clearModels",value:function(){var u;(u=this.texture)===null||u===void 0||u.destroy()}},{key:"buildModels",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){return Fi().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.initModels());case 1:case"end":return L.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:Ih.Attribute,descriptor:{name:"a_Uv",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:2,update:function(m,E,L){return[L[3],L[4]]}}})}}]),l}(ec),gj={image:pj},mj=gj;function cD(o){var d=b7();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function b7(){if(typeof Reflect=="undefined"||!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(o){return!1}}var HS=function(o){(0,lt.Z)(l,o);var d=cD(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E1&&arguments[1]!==void 0?arguments[1]:0,l=arguments.length>2?arguments[2]:void 0,c=(0,ai.Z)(l.source)==="object"?l.source.type:l.source,u=(0,ai.Z)(l.target)==="object"?l.target.type:l.target,m=(0,ai.Z)(l.source)==="object"?l.source:{},E=m.width,L=E===void 0?c?A7[c]:0:E,Z=m.height,ne=Z===void 0?2:Z,xe=(0,ai.Z)(l.target)==="object"?l.target:{},Oe=xe.width,wt=Oe===void 0?u?A7[u]:0:Oe,Bt=xe.height,wn=Bt===void 0?2:Bt;return{vertices:[0,Eb,1*L].concat((0,_n.Z)(o),[1,Eb,-1*wt],(0,_n.Z)(o),[1,-Eb,-1*wt],(0,_n.Z)(o),[0,-Eb,1*L],(0,_n.Z)(o),[0,Eb,1*L],(0,_n.Z)(o),[1,Eb,-1*wt],(0,_n.Z)(o),[1,-Eb,-1*wt],(0,_n.Z)(o),[0,-Eb,1*L],(0,_n.Z)(o)),outLineIndices:[0,1,2,0,2,3].map(function(Rn){return Rn+d}),indices:[4,5,6,4,6,7].map(function(Rn){return Rn+d}),normals:[1,-1,1,1,1,1,-1,0,1,-1,0,1,0,0,0,0,0,0,0,0,0,0,0,0],dimensions:2}}function D7(o,d){var l=(0,ai.Z)(o)==="object"?o.type:o,c=d==="source"?1:-1,u=(0,ai.Z)(o)==="object"?o:{};switch(l){case"circle":return Pj(c,u);case"triangle":return Aj(c,u);case"diamond":return Ij(c,u);case"rect":return Dj(c,u);case"classic":return L2(c,u);case"halfTriangle":return Tj(c,u);default:return{vertices:[],indices:[],normals:[],dimensions:2,outLineIndices:[],outLineNormals:[]}}}function hD(o){var d=o.coordinates.flat(),l=1,c=1;return{vertices:[1,0,0].concat((0,_n.Z)(d),[1,2,-3],(0,_n.Z)(d),[1,1,-3],(0,_n.Z)(d),[0,1,0],(0,_n.Z)(d),[0,0,0],(0,_n.Z)(d),[1,0,0],(0,_n.Z)(d),[1,2,-3],(0,_n.Z)(d),[1,1,-3],(0,_n.Z)(d),[0,1,0],(0,_n.Z)(d),[0,0,0],(0,_n.Z)(d)),normals:[-l,2*c,1,2*c,-c,1,c,-c,1,c,-c,1,-l,-c,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],indices:[0,1,2,0,2,3,0,3,4,5,6,7,5,7,8,5,8,9],size:7}}function Hg(o,d){return d?Mj(o,d):hD(o)}function Mj(o,d){var l=o.coordinates.flat(),c=d,u=c.target,m=u===void 0?"classic":u,E=c.source,L=E===void 0?"circle":E,Z=I7(D7(L,"source"),l,0,0),ne=Lj(l,Z.vertices.length/7,d),xe=I7(D7(m,"target"),l,1,Z.vertices.length/7+ne.vertices.length/7),Oe={vertices:[].concat((0,_n.Z)(Z.vertices),(0,_n.Z)(ne.vertices),(0,_n.Z)(xe.vertices)),indices:[].concat((0,_n.Z)(Z.outLineIndices),(0,_n.Z)(ne.outLineIndices),(0,_n.Z)(xe.outLineIndices),(0,_n.Z)(Z.indices),(0,_n.Z)(ne.indices),(0,_n.Z)(xe.indices)),normals:[].concat((0,_n.Z)(Z.normals),(0,_n.Z)(ne.normals),(0,_n.Z)(xe.normals)),size:7};return Oe}function I7(o,d){for(var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=[],m=o.vertices,E=o.indices,L=o.dimensions,Z=o.outLineIndices,ne=0;ne1&&arguments[1]!==void 0?arguments[1]:0,l=arguments.length>2?arguments[2]:void 0,c=(0,ai.Z)(l.source)==="object"?l.source.type:l.source,u=(0,ai.Z)(l.target)==="object"?l.target.type:l.target,m=(0,ai.Z)(l.source)==="object"?l.source:{},E=m.width,M=E===void 0?c?A7[c]:0:E,Z=m.height,ne=Z===void 0?2:Z,Ce=(0,ai.Z)(l.target)==="object"?l.target:{},Oe=Ce.width,Ct=Oe===void 0?u?A7[u]:0:Oe,Bt=Ce.height,An=Bt===void 0?2:Bt;return{vertices:[0,Tb,1*M].concat((0,bn.Z)(o),[1,Tb,-1*Ct],(0,bn.Z)(o),[1,-Tb,-1*Ct],(0,bn.Z)(o),[0,-Tb,1*M],(0,bn.Z)(o),[0,Tb,1*M],(0,bn.Z)(o),[1,Tb,-1*Ct],(0,bn.Z)(o),[1,-Tb,-1*Ct],(0,bn.Z)(o),[0,-Tb,1*M],(0,bn.Z)(o)),outLineIndices:[0,1,2,0,2,3].map(function(kn){return kn+d}),indices:[4,5,6,4,6,7].map(function(kn){return kn+d}),normals:[1,-1,1,1,1,1,-1,0,1,-1,0,1,0,0,0,0,0,0,0,0,0,0,0,0],dimensions:2}}function D7(o,d){var l=(0,ai.Z)(o)==="object"?o.type:o,c=d==="source"?1:-1,u=(0,ai.Z)(o)==="object"?o:{};switch(l){case"circle":return Dj(c,u);case"triangle":return Ej(c,u);case"diamond":return Aj(c,u);case"rect":return Tj(c,u);case"classic":return P2(c,u);case"halfTriangle":return Sj(c,u);default:return{vertices:[],indices:[],normals:[],dimensions:2,outLineIndices:[],outLineNormals:[]}}}function pD(o){var d=o.coordinates.flat(),l=1,c=1;return{vertices:[1,0,0].concat((0,bn.Z)(d),[1,2,-3],(0,bn.Z)(d),[1,1,-3],(0,bn.Z)(d),[0,1,0],(0,bn.Z)(d),[0,0,0],(0,bn.Z)(d),[1,0,0],(0,bn.Z)(d),[1,2,-3],(0,bn.Z)(d),[1,1,-3],(0,bn.Z)(d),[0,1,0],(0,bn.Z)(d),[0,0,0],(0,bn.Z)(d)),normals:[-l,2*c,1,2*c,-c,1,c,-c,1,c,-c,1,-l,-c,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],indices:[0,1,2,0,2,3,0,3,4,5,6,7,5,7,8,5,8,9],size:7}}function Xg(o,d){return d?Pj(o,d):pD(o)}function Pj(o,d){var l=o.coordinates.flat(),c=d,u=c.target,m=u===void 0?"classic":u,E=c.source,M=E===void 0?"circle":E,Z=I7(D7(M,"source"),l,0,0),ne=Ij(l,Z.vertices.length/7,d),Ce=I7(D7(m,"target"),l,1,Z.vertices.length/7+ne.vertices.length/7),Oe={vertices:[].concat((0,bn.Z)(Z.vertices),(0,bn.Z)(ne.vertices),(0,bn.Z)(Ce.vertices)),indices:[].concat((0,bn.Z)(Z.outLineIndices),(0,bn.Z)(ne.outLineIndices),(0,bn.Z)(Ce.outLineIndices),(0,bn.Z)(Z.indices),(0,bn.Z)(ne.indices),(0,bn.Z)(Ce.indices)),normals:[].concat((0,bn.Z)(Z.normals),(0,bn.Z)(ne.normals),(0,bn.Z)(Ce.normals)),size:7};return Oe}function I7(o,d){for(var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=[],m=o.vertices,E=o.indices,M=o.dimensions,Z=o.outLineIndices,ne=0;ne0&&E.enable){var fa=E.speed,Za=fa===void 0?.01:fa;this.raiseCount+=Za,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(wt),u_heightfixed:Number(wn),u_r:E.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:Vj(Z)?Z:1,u_linearColor:xo,u_sourceColor:Ds,u_targetColor:aa,u_opacitylinear:Number(Pr.enable),u_opacitylinear_dir:Pr.dir==="up"?1:0,u_lightEnable:Number(oo)}}},{key:"initModels",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){return Fi().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.buildModels());case 1:case"end":return L.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"buildModels",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E,L,Z,ne;return Fi().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return E=this.layer.getLayerConfig(),L=E.animateOption.repeat,Z=L===void 0?1:L,this.raiseRepeat=Z,Oe.next=4,this.layer.buildLayerModel({moduleName:"pointEarthExtrude",vertexShader:N7,fragmentShader:$j,triangulation:hM,depth:{enable:!0},cull:{enable:!0,face:Jr(this.mapService.version)},blend:this.getBlend()});case 4:return ne=Oe.sent,Oe.abrupt("return",[ne]);case 6:case"end":return Oe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Ih.Attribute,descriptor:{name:"a_Size",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(m){var E=m.size;if(E){var L=[];return Array.isArray(E)&&(L=E.length===2?[E[0],E[0],E[1]]:E),Array.isArray(E)||(L=[E,E,E]),L}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Ih.Attribute,descriptor:{name:"a_Normal",buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(m,E,L,Z,ne){return ne}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:Ih.Attribute,descriptor:{name:"a_Pos",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(m){var E=Bh(m.coordinates);return zS([E[0],E[1]])}}})}}]),l}(ec);function Wj(o){var d=cx();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function cx(){if(typeof Reflect=="undefined"||!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(o){return!1}}var dy=`uniform float u_additive; +`,Uj=fs.isNumber,$j=function(o){(0,lt.Z)(l,o);var d=O7(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&E.enable){var fa=E.speed,Wa=fa===void 0?.01:fa;this.raiseCount+=Wa,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(Ct),u_heightfixed:Number(An),u_r:E.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:Uj(Z)?Z:1,u_linearColor:wo,u_sourceColor:Ds,u_targetColor:oa,u_opacitylinear:Number(Ir.enable),u_opacitylinear_dir:Ir.dir==="up"?1:0,u_lightEnable:Number(ao)}}},{key:"initModels",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){return Oi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",this.buildModels());case 1:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"buildModels",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E,M,Z,ne;return Oi().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return E=this.layer.getLayerConfig(),M=E.animateOption.repeat,Z=M===void 0?1:M,this.raiseRepeat=Z,Oe.next=4,this.layer.buildLayerModel({moduleName:"pointEarthExtrude",vertexShader:N7,fragmentShader:zj,triangulation:cM,depth:{enable:!0},cull:{enable:!0,face:Jr(this.mapService.version)},blend:this.getBlend()});case 4:return ne=Oe.sent,Oe.abrupt("return",[ne]);case 6:case"end":return Oe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Id.Attribute,descriptor:{name:"a_Size",buffer:{usage:Ai.DYNAMIC_DRAW,data:[],type:Ai.FLOAT},size:3,update:function(m){var E=m.size;if(E){var M=[];return Array.isArray(E)&&(M=E.length===2?[E[0],E[0],E[1]]:E),Array.isArray(E)||(M=[E,E,E]),M}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Id.Attribute,descriptor:{name:"a_Normal",buffer:{usage:Ai.STATIC_DRAW,data:[],type:Ai.FLOAT},size:3,update:function(m,E,M,Z,ne){return ne}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:Id.Attribute,descriptor:{name:"a_Pos",buffer:{usage:Ai.DYNAMIC_DRAW,data:[],type:Ai.FLOAT},size:3,update:function(m){var E=Bd(m.coordinates);return zS([E[0],E[1]])}}})}}]),l}(ec);function Vj(o){var d=hx();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function hx(){if(typeof Reflect=="undefined"||!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(o){return!1}}var hy=`uniform float u_additive; uniform float u_opacity : 1; uniform float u_stroke_opacity : 1; uniform float u_stroke_width : 2; @@ -5470,7 +5416,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } } -`,mD=`attribute vec4 a_Color; +`,yD=`attribute vec4 a_Color; attribute vec3 a_Position; attribute vec3 a_Extrude; attribute float a_Size; @@ -5521,7 +5467,7 @@ void main() { setPickingColor(a_PickingColor); } -`,kM=function(o){(0,lt.Z)(l,o);var d=Wj(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getUninforms",value:function(){var u=this.layer.getLayerConfig(),m=u.opacity,E=m===void 0?1:m,L=u.strokeOpacity,Z=L===void 0?1:L,ne=u.strokeWidth,xe=ne===void 0?0:ne,Oe=u.stroke,wt=Oe===void 0?"rgba(0,0,0,0)":Oe,Bt=u.blend,wn=u.blur,Rn=wn===void 0?0:wn;return{u_blur:Rn,u_additive:Bt==="additive"?1:0,u_opacity:E,u_stroke_opacity:Z,u_stroke_width:xe,u_stroke_color:mi(wt)}}},{key:"getAnimateUniforms",value:function(){var u=this.layer.getLayerConfig(),m=u.animateOption,E=m===void 0?{enable:!1}:m;return{u_animate:this.animateOption2Array(E),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){return Fi().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.buildModels());case 1:case"end":return L.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"buildModels",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E;return Fi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return this.layer.triangulation=f7,Z.next=3,this.layer.buildLayerModel({moduleName:"pointEarthFill",vertexShader:mD,fragmentShader:dy,triangulation:f7,depth:{enable:!0},blend:this.getBlend()});case 3:return E=Z.sent,Z.abrupt("return",[E]);case 5:case"end":return Z.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"animateOption2Array",value:function(u){return[u.enable?0:1,u.speed||1,u.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var u=this;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Ih.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(E,L,Z,ne){var xe=(0,Br.Z)(Z,3),Oe=xe[0],wt=xe[1],Bt=xe[2],wn=r0(0,0,1),Rn=r0(Oe,0,Bt),Pr=Oe>=0?eO(wn,Rn):Math.PI*2-eO(wn,Rn),ui=Math.PI*2-Math.asin(wt/100),oo=yp();a0(oo,oo,Pr),mm(oo,oo,ui);var xo=r0(1,1,0);kT(xo,xo,oo),bw(xo,xo);var Ds=r0(-1,1,0);kT(Ds,Ds,oo),bw(Ds,Ds);var aa=r0(-1,-1,0);kT(aa,aa,oo),bw(aa,aa);var fa=r0(1,-1,0);kT(fa,fa,oo),bw(fa,fa);var Za=[].concat((0,_n.Z)(xo),(0,_n.Z)(Ds),(0,_n.Z)(aa),(0,_n.Z)(fa)),gl=ne%4*3;return[Za[gl],Za[gl+1],Za[gl+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Ih.Attribute,descriptor:{name:"a_Size",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(E){var L=E.size,Z=L===void 0?5:L;return Array.isArray(Z)?[Z[0]]:[Z]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:Ih.Attribute,descriptor:{name:"a_Shape",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(E){var L=E.shape,Z=L===void 0?2:L,ne=u.layer.getLayerConfig().shape2d,xe=ne.indexOf(Z);return[xe]}}})}}]),l}(ec);function AO(o){var d=O4();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function O4(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Zj=`in vec4 v_color; +`,MM=function(o){(0,lt.Z)(l,o);var d=Vj(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getUninforms",value:function(){var u=this.layer.getLayerConfig(),m=u.opacity,E=m===void 0?1:m,M=u.strokeOpacity,Z=M===void 0?1:M,ne=u.strokeWidth,Ce=ne===void 0?0:ne,Oe=u.stroke,Ct=Oe===void 0?"rgba(0,0,0,0)":Oe,Bt=u.blend,An=u.blur,kn=An===void 0?0:An;return{u_blur:kn,u_additive:Bt==="additive"?1:0,u_opacity:E,u_stroke_opacity:Z,u_stroke_width:Ce,u_stroke_color:mi(Ct)}}},{key:"getAnimateUniforms",value:function(){var u=this.layer.getLayerConfig(),m=u.animateOption,E=m===void 0?{enable:!1}:m;return{u_animate:this.animateOption2Array(E),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){return Oi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",this.buildModels());case 1:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"buildModels",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E;return Oi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return this.layer.triangulation=f7,Z.next=3,this.layer.buildLayerModel({moduleName:"pointEarthFill",vertexShader:yD,fragmentShader:hy,triangulation:f7,depth:{enable:!0},blend:this.getBlend()});case 3:return E=Z.sent,Z.abrupt("return",[E]);case 5:case"end":return Z.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"animateOption2Array",value:function(u){return[u.enable?0:1,u.speed||1,u.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var u=this;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Id.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:Ai.DYNAMIC_DRAW,data:[],type:Ai.FLOAT},size:3,update:function(E,M,Z,ne){var Ce=(0,Or.Z)(Z,3),Oe=Ce[0],Ct=Ce[1],Bt=Ce[2],An=r0(0,0,1),kn=r0(Oe,0,Bt),Ir=Oe>=0?iO(An,kn):Math.PI*2-iO(An,kn),ui=Math.PI*2-Math.asin(Ct/100),ao=bp();s0(ao,ao,Ir),mm(ao,ao,ui);var wo=r0(1,1,0);FT(wo,wo,ao),xw(wo,wo);var Ds=r0(-1,1,0);FT(Ds,Ds,ao),xw(Ds,Ds);var oa=r0(-1,-1,0);FT(oa,oa,ao),xw(oa,oa);var fa=r0(1,-1,0);FT(fa,fa,ao),xw(fa,fa);var Wa=[].concat((0,bn.Z)(wo),(0,bn.Z)(Ds),(0,bn.Z)(oa),(0,bn.Z)(fa)),vl=ne%4*3;return[Wa[vl],Wa[vl+1],Wa[vl+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Id.Attribute,descriptor:{name:"a_Size",buffer:{usage:Ai.DYNAMIC_DRAW,data:[],type:Ai.FLOAT},size:1,update:function(E){var M=E.size,Z=M===void 0?5:M;return Array.isArray(Z)?[Z[0]]:[Z]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:Id.Attribute,descriptor:{name:"a_Shape",buffer:{usage:Ai.DYNAMIC_DRAW,data:[],type:Ai.FLOAT},size:1,update:function(E){var M=E.shape,Z=M===void 0?2:M,ne=u.layer.getLayerConfig().shape2d,Ce=ne.indexOf(Z);return[Ce]}}})}}]),l}(ec);function LO(o){var d=M4();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function M4(){if(typeof Reflect=="undefined"||!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(o){return!1}}var jj=`in vec4 v_color; in float v_lightWeight; out vec4 outputColor; @@ -5551,7 +5497,7 @@ void main() { outputColor = filterColor(outputColor); } } -`,Hj=`#define pi 3.1415926535 +`,Wj=`#define pi 3.1415926535 #define ambientRatio 0.5 #define diffuseRatio 0.3 #define specularRatio 0.2 @@ -5654,7 +5600,7 @@ void main() { setPickingColor(a_PickingColor); } -`,DO=function(o){(0,lt.Z)(l,o);var d=AO(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&E.enable){var Ds=E.speed,aa=Ds===void 0?.01:Ds;this.raiseCount+=aa,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}var fa={u_pickLight:Number(xe),u_heightfixed:Number(wt),u_r:E.enable&&this.raiseRepeat>0?this.raiseCount:1,u_linearColor:ui,u_sourceColor:oo,u_targetColor:xo,u_opacitylinear:Number(wn.enable),u_opacitylinear_dir:wn.dir==="up"?1:0,u_lightEnable:Number(Pr)},Za=this.getUniformsBufferInfo(fa);return Za}},{key:"initModels",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){return Fi().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.buildModels());case 1:case"end":return L.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"buildModels",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E,L,Z,ne,xe,Oe;return Fi().wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return E=this.layer.getLayerConfig(),L=E.depth,Z=L===void 0?!0:L,ne=E.animateOption.repeat,xe=ne===void 0?1:ne,this.raiseRepeat=xe,this.initUniformsBuffer(),Bt.next=5,this.layer.buildLayerModel({moduleName:"pointExtrude",vertexShader:Hj,fragmentShader:Zj,triangulation:hM,inject:this.getInject(),cull:{enable:!0,face:Jr(this.mapService.version)},depth:{enable:Z}});case 5:return Oe=Bt.sent,Bt.abrupt("return",[Oe]);case 7:case"end":return Bt.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Ih.Attribute,descriptor:{name:"a_Size",shaderLocation:fl.SIZE,buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(m){var E=m.size;if(E){var L=[];return Array.isArray(E)&&(L=E.length===2?[E[0],E[0],E[1]]:E),Array.isArray(E)||(L=[E,E,E]),L}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Ih.Attribute,descriptor:{name:"a_Normal",shaderLocation:fl.NORMAL,buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(m,E,L,Z,ne){return ne}}}),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Ih.Attribute,descriptor:{name:"a_Extrude",shaderLocation:fl.EXTRUDE,buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(m){var E=Bh(m.coordinates);return[E[0],E[1],0]}}})}}]),l}(ec);function Gj(o){var d=OC();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function OC(){if(typeof Reflect=="undefined"||!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(o){return!1}}var F7=` +`,MO=function(o){(0,lt.Z)(l,o);var d=LO(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&E.enable){var Ds=E.speed,oa=Ds===void 0?.01:Ds;this.raiseCount+=oa,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}var fa={u_pickLight:Number(Ce),u_heightfixed:Number(Ct),u_r:E.enable&&this.raiseRepeat>0?this.raiseCount:1,u_linearColor:ui,u_sourceColor:ao,u_targetColor:wo,u_opacitylinear:Number(An.enable),u_opacitylinear_dir:An.dir==="up"?1:0,u_lightEnable:Number(Ir)},Wa=this.getUniformsBufferInfo(fa);return Wa}},{key:"initModels",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){return Oi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",this.buildModels());case 1:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"buildModels",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E,M,Z,ne,Ce,Oe;return Oi().wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return E=this.layer.getLayerConfig(),M=E.depth,Z=M===void 0?!0:M,ne=E.animateOption.repeat,Ce=ne===void 0?1:ne,this.raiseRepeat=Ce,this.initUniformsBuffer(),Bt.next=5,this.layer.buildLayerModel({moduleName:"pointExtrude",vertexShader:Wj,fragmentShader:jj,triangulation:cM,inject:this.getInject(),cull:{enable:!0,face:Jr(this.mapService.version)},depth:{enable:Z}});case 5:return Oe=Bt.sent,Bt.abrupt("return",[Oe]);case 7:case"end":return Bt.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Id.Attribute,descriptor:{name:"a_Size",shaderLocation:gl.SIZE,buffer:{usage:Ai.DYNAMIC_DRAW,data:[],type:Ai.FLOAT},size:3,update:function(m){var E=m.size;if(E){var M=[];return Array.isArray(E)&&(M=E.length===2?[E[0],E[0],E[1]]:E),Array.isArray(E)||(M=[E,E,E]),M}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Id.Attribute,descriptor:{name:"a_Normal",shaderLocation:gl.NORMAL,buffer:{usage:Ai.STATIC_DRAW,data:[],type:Ai.FLOAT},size:3,update:function(m,E,M,Z,ne){return ne}}}),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Id.Attribute,descriptor:{name:"a_Extrude",shaderLocation:gl.EXTRUDE,buffer:{usage:Ai.DYNAMIC_DRAW,data:[],type:Ai.FLOAT},size:3,update:function(m){var E=Bd(m.coordinates);return[E[0],E[1],0]}}})}}]),l}(ec);function Zj(o){var d=FC();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function FC(){if(typeof Reflect=="undefined"||!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(o){return!1}}var F7=` uniform float u_additive; @@ -5709,7 +5655,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } } -`,GT=` +`,YT=` layout(std140) uniform commonUniforms { vec3 u_blur_height_fixed; float u_stroke_width; @@ -5792,7 +5738,7 @@ void main() { discard; } } -`,IO=`layout(location = 0) in vec3 a_Position; +`,RO=`layout(location = 0) in vec3 a_Position; layout(location = 1) in vec4 a_Color; layout(location = 9) in float a_Size; layout(location = 11) in vec3 a_Extrude; @@ -5871,7 +5817,7 @@ void main() { setPickingColor(a_PickingColor); } -`,PO=function(o){(0,lt.Z)(l,o);var d=Gj(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getUninforms",value:function(){var u=this.layer.getLayerConfig(),m=u.strokeOpacity,E=m===void 0?1:m,L=u.strokeWidth,Z=L===void 0?0:L,ne=u.blend,xe=u.blur,Oe=xe===void 0?0:xe,wt=u.raisingHeight,Bt=wt===void 0?0:wt,wn=u.heightfixed,Rn=wn===void 0?!1:wn,Pr=u.unit,ui=Pr===void 0?"pixel":Pr,oo=(0,ze.Z)({u_blur_height_fixed:[Oe,Number(Bt),Number(Rn)],u_additive:ne==="additive"?1:0,u_stroke_opacity:E,u_stroke_width:Z,u_size_unit:Lf[ui]},this.getStyleAttribute()),xo=this.getStyleAttribute();return this.uniformBuffers[0].subData({offset:0,data:new Uint8Array(new Float32Array([].concat((0,_n.Z)(xo.u_stroke),(0,_n.Z)(xo.u_offsets),[xo.u_opacity,xo.u_rotation])).buffer)}),this.uniformBuffers[1].subData({offset:0,data:new Uint8Array(new Float32Array([].concat((0,_n.Z)(oo.u_blur_height_fixed),[oo.u_stroke_width,oo.u_stroke_opacity,oo.u_additive,oo.u_size_unit])).buffer)}),oo}},{key:"getAnimateUniforms",value:function(){var u=this.layer.getLayerConfig(),m=u.animateOption,E=m===void 0?{enable:!1}:m;return{u_animate:this.animateOption2Array(E),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),nn)}},{key:"initModels",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){return Fi().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.buildModels());case 1:case"end":return L.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"buildModels",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E,L,Z,ne,xe,Oe,wt,Bt,wn,Rn;return Fi().wrap(function(ui){for(;;)switch(ui.prev=ui.next){case 0:return E=this.layer.getLayerConfig(),L=E.animateOption,Z=L===void 0?{enable:!1}:L,ne=this.getShaders(Z),xe=ne.frag,Oe=ne.vert,wt=ne.type,this.layer.triangulation=nn,Bt=this.rendererService.createBuffer({data:new Float32Array(8),isUBO:!0}),wn=this.rendererService.createBuffer({data:new Float32Array(8),isUBO:!0}),this.uniformBuffers.push(Bt,wn),ui.next=8,this.layer.buildLayerModel({moduleName:wt,vertexShader:Oe,fragmentShader:xe,inject:this.getInject(),triangulation:nn,depth:{enable:!1}});case 8:return Rn=ui.sent,ui.abrupt("return",[Rn]);case 10:case"end":return ui.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getShaders",value:function(u){if(u.enable)switch(u.type){case"wave":return{frag:F7,vert:IO,type:"pointWave"};default:return{frag:F7,vert:IO,type:"pointWave"}}else return{frag:GT,vert:IO,type:"pointFill"}}},{key:"animateOption2Array",value:function(u){return[u.enable?0:1,u.speed||1,u.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var u=this.layer.getLayerConfig().shape2d;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Ih.Attribute,descriptor:{name:"a_Extrude",shaderLocation:fl.EXTRUDE,buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(E,L,Z,ne){var xe=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],Oe=ne%4*3;return[xe[Oe],xe[Oe+1],xe[Oe+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Ih.Attribute,descriptor:{name:"a_Size",shaderLocation:fl.SIZE,buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(E){var L=E.size,Z=L===void 0?5:L;return Array.isArray(Z)?[Z[0]]:[Z]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:Ih.Attribute,descriptor:{name:"a_Shape",shaderLocation:fl.SHAPE,buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(E){var L=E.shape,Z=L===void 0?2:L,ne=u.indexOf(Z);return[ne]}}})}}]),l}(ec);function Kj(o){var d=LO();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function LO(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Xj=`uniform sampler2D u_texture; +`,kO=function(o){(0,lt.Z)(l,o);var d=Zj(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getUninforms",value:function(){var u=this.layer.getLayerConfig(),m=u.strokeOpacity,E=m===void 0?1:m,M=u.strokeWidth,Z=M===void 0?0:M,ne=u.blend,Ce=u.blur,Oe=Ce===void 0?0:Ce,Ct=u.raisingHeight,Bt=Ct===void 0?0:Ct,An=u.heightfixed,kn=An===void 0?!1:An,Ir=u.unit,ui=Ir===void 0?"pixel":Ir,ao=(0,Be.Z)({u_blur_height_fixed:[Oe,Number(Bt),Number(kn)],u_additive:ne==="additive"?1:0,u_stroke_opacity:E,u_stroke_width:Z,u_size_unit:Lf[ui]},this.getStyleAttribute()),wo=this.getStyleAttribute();return this.uniformBuffers[0].subData({offset:0,data:new Uint8Array(new Float32Array([].concat((0,bn.Z)(wo.u_stroke),(0,bn.Z)(wo.u_offsets),[wo.u_opacity,wo.u_rotation])).buffer)}),this.uniformBuffers[1].subData({offset:0,data:new Uint8Array(new Float32Array([].concat((0,bn.Z)(ao.u_blur_height_fixed),[ao.u_stroke_width,ao.u_stroke_opacity,ao.u_additive,ao.u_size_unit])).buffer)}),ao}},{key:"getAnimateUniforms",value:function(){var u=this.layer.getLayerConfig(),m=u.animateOption,E=m===void 0?{enable:!1}:m;return{u_animate:this.animateOption2Array(E),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),rn)}},{key:"initModels",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){return Oi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",this.buildModels());case 1:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"buildModels",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E,M,Z,ne,Ce,Oe,Ct,Bt,An,kn;return Oi().wrap(function(ui){for(;;)switch(ui.prev=ui.next){case 0:return E=this.layer.getLayerConfig(),M=E.animateOption,Z=M===void 0?{enable:!1}:M,ne=this.getShaders(Z),Ce=ne.frag,Oe=ne.vert,Ct=ne.type,this.layer.triangulation=rn,Bt=this.rendererService.createBuffer({data:new Float32Array(8),isUBO:!0}),An=this.rendererService.createBuffer({data:new Float32Array(8),isUBO:!0}),this.uniformBuffers.push(Bt,An),ui.next=8,this.layer.buildLayerModel({moduleName:Ct,vertexShader:Oe,fragmentShader:Ce,inject:this.getInject(),triangulation:rn,depth:{enable:!1}});case 8:return kn=ui.sent,ui.abrupt("return",[kn]);case 10:case"end":return ui.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getShaders",value:function(u){if(u.enable)switch(u.type){case"wave":return{frag:F7,vert:RO,type:"pointWave"};default:return{frag:F7,vert:RO,type:"pointWave"}}else return{frag:YT,vert:RO,type:"pointFill"}}},{key:"animateOption2Array",value:function(u){return[u.enable?0:1,u.speed||1,u.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var u=this.layer.getLayerConfig().shape2d;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Id.Attribute,descriptor:{name:"a_Extrude",shaderLocation:gl.EXTRUDE,buffer:{usage:Ai.DYNAMIC_DRAW,data:[],type:Ai.FLOAT},size:3,update:function(E,M,Z,ne){var Ce=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],Oe=ne%4*3;return[Ce[Oe],Ce[Oe+1],Ce[Oe+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Id.Attribute,descriptor:{name:"a_Size",shaderLocation:gl.SIZE,buffer:{usage:Ai.DYNAMIC_DRAW,data:[],type:Ai.FLOAT},size:1,update:function(E){var M=E.size,Z=M===void 0?5:M;return Array.isArray(Z)?[Z[0]]:[Z]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:Id.Attribute,descriptor:{name:"a_Shape",shaderLocation:gl.SHAPE,buffer:{usage:Ai.DYNAMIC_DRAW,data:[],type:Ai.FLOAT},size:1,update:function(E){var M=E.shape,Z=M===void 0?2:M,ne=u.indexOf(Z);return[ne]}}})}}]),l}(ec);function Hj(o){var d=OO();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function OO(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Gj=`uniform sampler2D u_texture; uniform vec2 u_textSize; uniform float u_opacity : 1; @@ -5889,7 +5835,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } -`,Yj=`attribute vec4 a_Color; +`,Kj=`attribute vec4 a_Color; attribute vec3 a_Position; attribute vec3 a_Extrude; attribute float a_Size; @@ -5948,7 +5894,7 @@ void main() { setPickingColor(a_PickingColor); } -`,MO=function(o){(0,lt.Z)(l,o);var d=Kj(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function fm(o,d){if(o){if(typeof o=="string")return Ey(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Ey(o,d)}}function Ey(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lthis.width||m<0||c>this.height)return E?!1:[];var Z=[];if(l<=0&&c<=0&&this.width<=u&&this.height<=m){if(E)return!0;for(var ne=0;ne0:Z}},{key:"queryCell",value:function(l,c,u,m,E,L,Z,ne){var xe=Z.seenUids,Oe=this.boxCells[E];if(Oe!==null){var wt=this.bboxes,Bt=YS(Oe),wn;try{for(Bt.s();!(wn=Bt.n()).done;){var Rn=wn.value;if(!xe.box[Rn]){xe.box[Rn]=!0;var Pr=Rn*4;if(l<=wt[Pr+2]&&c<=wt[Pr+3]&&u>=wt[Pr+0]&&m>=wt[Pr+1]&&(!ne||ne(this.boxKeys[Rn]))){if(Z.hitTest)return L.push(!0),!0;L.push({key:this.boxKeys[Rn],x1:wt[Pr],y1:wt[Pr+1],x2:wt[Pr+2],y2:wt[Pr+3]})}}}}catch(ui){Bt.e(ui)}finally{Bt.f()}}return!1}},{key:"forEachCell",value:function(l,c,u,m,E,L,Z,ne){for(var xe=this.convertToXCellCoord(l),Oe=this.convertToYCellCoord(c),wt=this.convertToXCellCoord(u),Bt=this.convertToYCellCoord(m),wn=xe;wn<=wt;wn++)for(var Rn=Oe;Rn<=Bt;Rn++){var Pr=this.xCellCount*Rn+wn;if(E.call(this,l,c,u,m,Pr,L,Z,ne))return}}},{key:"convertToXCellCoord",value:function(l){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(l*this.xScale)))}},{key:"convertToYCellCoord",value:function(l){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(l*this.yScale)))}}]),o}(),Qj=Jj,V7=function(){function o(d,l){(0,Ct.Z)(this,o),(0,Tn.Z)(this,"viewportPadding",100),this.width=d,this.height=l,this.viewportPadding=Math.max(d,l),this.grid=new Qj(d+this.viewportPadding,l+this.viewportPadding,25),this.screenRightBoundary=d+this.viewportPadding,this.screenBottomBoundary=l+this.viewportPadding,this.gridRightBoundary=d+2*this.viewportPadding,this.gridBottomBoundary=l+2*this.viewportPadding}return(0,nt.Z)(o,[{key:"placeCollisionBox",value:function(l){var c=l.x1+l.anchorPointX+this.viewportPadding,u=l.y1+l.anchorPointY+this.viewportPadding,m=l.x2+l.anchorPointX+this.viewportPadding,E=l.y2+l.anchorPointY+this.viewportPadding;return!this.isInsideGrid(c,u,m,E)||this.grid.hitTest(c,u,m,E)?{box:[]}:{box:[c,u,m,E]}}},{key:"insertCollisionBox",value:function(l,c){var u={featureIndex:c};this.grid.insert(u,l[0],l[1],l[2],l[3])}},{key:"project",value:function(l,c,u){var m=te(c,u,0,1),E=H(),L=cm.apply(w,(0,_n.Z)(l));return Yd(E,m,L),{x:(E[0]/E[3]+1)/2*this.width+this.viewportPadding,y:(-E[1]/E[3]+1)/2*this.height+this.viewportPadding}}},{key:"isInsideGrid",value:function(l,c,u,m){return u>=0&&l=0&&c=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function OO(o,d){if(o){if(typeof o=="string")return NO(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return NO(o,d)}}function NO(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l6&&arguments[6]!==void 0?arguments[6]:[0,0],L=arguments.length>7?arguments[7]:void 0,Z=o.split(` -`),ne=[],xe={positionedGlyphs:ne,top:E[1],bottom:E[1],left:E[0],right:E[0],lineCount:Z.length,text:o};return L?UO(xe,d,Z,l,c,u,m):zO(xe,d,Z,l,c,u,m),ne.length?xe:!1}function $O(o){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0],l=arguments.length>2?arguments[2]:void 0,c=o.positionedGlyphs,u=c===void 0?[]:c,m=[],E=M2(u),L;try{for(E.s();!(L=E.n()).done;){var Z=L.value,ne=Z.metrics,xe=4,Oe=ne.advance*Z.scale/2,wt=l?[Z.x+Oe,Z.y]:[0,0],Bt=l?[0,0]:[Z.x+Oe+d[0],Z.y+d[1]],wn=(0-xe)*Z.scale-Oe+Bt[0],Rn=(0-xe)*Z.scale+Bt[1],Pr=wn+ne.width*Z.scale,ui=Rn+ne.height*Z.scale,oo={x:wn,y:Rn},xo={x:Pr,y:Rn},Ds={x:wn,y:ui},aa={x:Pr,y:ui};m.push({tl:oo,tr:xo,bl:Ds,br:aa,tex:ne,glyphOffset:wt})}}catch(fa){E.e(fa)}finally{E.f()}return m}function Z7(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=VO(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function VO(o,d){if(o){if(typeof o=="string")return H7(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return H7(o,d)}}function H7(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function fm(o,d){if(o){if(typeof o=="string")return Ey(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Ey(o,d)}}function Ey(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lthis.width||m<0||c>this.height)return E?!1:[];var Z=[];if(l<=0&&c<=0&&this.width<=u&&this.height<=m){if(E)return!0;for(var ne=0;ne0:Z}},{key:"queryCell",value:function(l,c,u,m,E,M,Z,ne){var Ce=Z.seenUids,Oe=this.boxCells[E];if(Oe!==null){var Ct=this.bboxes,Bt=YS(Oe),An;try{for(Bt.s();!(An=Bt.n()).done;){var kn=An.value;if(!Ce.box[kn]){Ce.box[kn]=!0;var Ir=kn*4;if(l<=Ct[Ir+2]&&c<=Ct[Ir+3]&&u>=Ct[Ir+0]&&m>=Ct[Ir+1]&&(!ne||ne(this.boxKeys[kn]))){if(Z.hitTest)return M.push(!0),!0;M.push({key:this.boxKeys[kn],x1:Ct[Ir],y1:Ct[Ir+1],x2:Ct[Ir+2],y2:Ct[Ir+3]})}}}}catch(ui){Bt.e(ui)}finally{Bt.f()}}return!1}},{key:"forEachCell",value:function(l,c,u,m,E,M,Z,ne){for(var Ce=this.convertToXCellCoord(l),Oe=this.convertToYCellCoord(c),Ct=this.convertToXCellCoord(u),Bt=this.convertToYCellCoord(m),An=Ce;An<=Ct;An++)for(var kn=Oe;kn<=Bt;kn++){var Ir=this.xCellCount*kn+An;if(E.call(this,l,c,u,m,Ir,M,Z,ne))return}}},{key:"convertToXCellCoord",value:function(l){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(l*this.xScale)))}},{key:"convertToYCellCoord",value:function(l){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(l*this.yScale)))}}]),o}(),qj=Yj,V7=function(){function o(d,l){(0,wt.Z)(this,o),(0,Tn.Z)(this,"viewportPadding",100),this.width=d,this.height=l,this.viewportPadding=Math.max(d,l),this.grid=new qj(d+this.viewportPadding,l+this.viewportPadding,25),this.screenRightBoundary=d+this.viewportPadding,this.screenBottomBoundary=l+this.viewportPadding,this.gridRightBoundary=d+2*this.viewportPadding,this.gridBottomBoundary=l+2*this.viewportPadding}return(0,nt.Z)(o,[{key:"placeCollisionBox",value:function(l){var c=l.x1+l.anchorPointX+this.viewportPadding,u=l.y1+l.anchorPointY+this.viewportPadding,m=l.x2+l.anchorPointX+this.viewportPadding,E=l.y2+l.anchorPointY+this.viewportPadding;return!this.isInsideGrid(c,u,m,E)||this.grid.hitTest(c,u,m,E)?{box:[]}:{box:[c,u,m,E]}}},{key:"insertCollisionBox",value:function(l,c){var u={featureIndex:c};this.grid.insert(u,l[0],l[1],l[2],l[3])}},{key:"project",value:function(l,c,u){var m=te(c,u,0,1),E=H(),M=cm.apply(w,(0,bn.Z)(l));return Xh(E,m,M),{x:(E[0]/E[3]+1)/2*this.width+this.viewportPadding,y:(-E[1]/E[3]+1)/2*this.height+this.viewportPadding}}},{key:"isInsideGrid",value:function(l,c,u,m){return u>=0&&l=0&&c=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function zO(o,d){if(o){if(typeof o=="string")return UO(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return UO(o,d)}}function UO(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l6&&arguments[6]!==void 0?arguments[6]:[0,0],M=arguments.length>7?arguments[7]:void 0,Z=o.split(` +`),ne=[],Ce={positionedGlyphs:ne,top:E[1],bottom:E[1],left:E[0],right:E[0],lineCount:Z.length,text:o};return M?WO(Ce,d,Z,l,c,u,m):jO(Ce,d,Z,l,c,u,m),ne.length?Ce:!1}function ZO(o){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0],l=arguments.length>2?arguments[2]:void 0,c=o.positionedGlyphs,u=c===void 0?[]:c,m=[],E=L2(u),M;try{for(E.s();!(M=E.n()).done;){var Z=M.value,ne=Z.metrics,Ce=4,Oe=ne.advance*Z.scale/2,Ct=l?[Z.x+Oe,Z.y]:[0,0],Bt=l?[0,0]:[Z.x+Oe+d[0],Z.y+d[1]],An=(0-Ce)*Z.scale-Oe+Bt[0],kn=(0-Ce)*Z.scale+Bt[1],Ir=An+ne.width*Z.scale,ui=kn+ne.height*Z.scale,ao={x:An,y:kn},wo={x:Ir,y:kn},Ds={x:An,y:ui},oa={x:Ir,y:ui};m.push({tl:ao,tr:wo,bl:Ds,br:oa,tex:ne,glyphOffset:Ct})}}catch(fa){E.e(fa)}finally{E.f()}return m}function Z7(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=HO(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function HO(o,d){if(o){if(typeof o=="string")return H7(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return H7(o,d)}}function H7(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l.5||!ui||Z!==this.preTextStyle.textAllowOverlap)){xo.next=14;break}return xo.next=13,this.reBuildModel();case 13:return xo.abrupt("return",!0);case 14:return xo.abrupt("return",!1);case 15:case"end":return xo.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"clearModels",value:function(){var u;(u=this.texture)===null||u===void 0||u.destroy(),this.layer.off("remapping",this.mapping)}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:Ih.Attribute,descriptor:{name:"a_textOffsets",buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:2,update:function(m,E,L){return[L[5],L[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Ih.Attribute,descriptor:{name:"a_Size",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(m){var E=m.size,L=E===void 0?12:E;return Array.isArray(L)?[L[0]]:[L]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:Ih.Attribute,descriptor:{name:"a_tex",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:2,update:function(m,E,L){return[L[3],L[4]]}}})}},{key:"bindEvent",value:function(){this.layer.isTileLayer||this.layer.on("remapping",this.mapping)}},{key:"textExtent",value:function(){var u=this.mapService.getBounds();return au(u,.5)}},{key:"initTextFont",value:function(){var u=this.getTextStyle(),m=u.fontWeight,E=u.fontFamily,L=this.rawEncodeData,Z=[];L.forEach(function(ne){var xe=ne.shape,Oe=xe===void 0?"":xe;Oe=Oe.toString();var wt=Z7(Oe),Bt;try{for(wt.s();!(Bt=wt.n()).done;){var wn=Bt.value;Z.indexOf(wn)===-1&&Z.push(wn)}}catch(Rn){wt.e(Rn)}finally{wt.f()}}),this.fontService.setFontOptions({characterSet:Z,fontWeight:m,fontFamily:E,iconfont:!1})}},{key:"initIconFontTex",value:function(){var u=this.getTextStyle(),m=u.fontWeight,E=u.fontFamily,L=this.rawEncodeData,Z=[];L.forEach(function(ne){var xe=ne.shape,Oe=xe===void 0?"":xe;Oe="".concat(Oe),Z.indexOf(Oe)===-1&&Z.push(Oe)}),this.fontService.setFontOptions({characterSet:Z,fontWeight:m,fontFamily:E,iconfont:!0})}},{key:"getTextStyle",value:function(){var u=this.layer.getLayerConfig(),m=u.fontWeight,E=m===void 0?"400":m,L=u.fontFamily,Z=L===void 0?"sans-serif":L,ne=u.textAllowOverlap,xe=ne===void 0?!1:ne,Oe=u.padding,wt=Oe===void 0?[0,0]:Oe,Bt=u.textAnchor,wn=Bt===void 0?"center":Bt,Rn=u.textOffset,Pr=Rn===void 0?[0,0]:Rn,ui=u.opacity,oo=ui===void 0?1:ui,xo=u.strokeOpacity,Ds=xo===void 0?1:xo,aa=u.strokeWidth,fa=aa===void 0?0:aa,Za=u.stroke,gl=Za===void 0?"#000":Za;return{fontWeight:E,fontFamily:Z,textAllowOverlap:xe,padding:wt,textAnchor:wn,textOffset:Pr,opacity:oo,strokeOpacity:Ds,strokeWidth:fa,stroke:gl}}},{key:"generateGlyphLayout",value:function(u){var m=this,E=this.getFontServiceMapping(),L=this.layer.getLayerConfig(),Z=L.spacing,ne=Z===void 0?2:Z,xe=L.textAnchor,Oe=xe===void 0?"center":xe,wt=L.textOffset,Bt=this.rawEncodeData;this.glyphInfo=Bt.map(function(wn){var Rn=wn.shape,Pr=Rn===void 0?"":Rn,ui=wn.id,oo=wn.size,xo=oo===void 0?1:oo,Ds=wn.textOffset?wn.textOffset:wt||[0,0],aa=wn.textAnchor?wn.textAnchor:Oe||"center",fa=W7(Pr.toString(),E,xo,aa,"left",ne,Ds,u),Za=$O(fa,Ds,!1);return wn.shaping=fa,wn.glyphQuads=Za,wn.centroid=Bh(wn.coordinates),wn.originCentroid=wn.version==="GAODE2.x"?Bh(wn.originCoordinates):wn.originCentroid=wn.centroid,m.glyphInfoMap[ui]={shaping:fa,glyphQuads:Za,centroid:Bh(wn.coordinates)},wn})}},{key:"getFontServiceMapping",value:function(){var u=this.layer.getLayerConfig(),m=u.fontWeight,E=m===void 0?"400":m,L=u.fontFamily,Z=L===void 0?"sans-serif":L;return this.fontService.getMappingByKey("".concat(Z,"_").concat(E))}},{key:"getFontServiceCanvas",value:function(){var u=this.layer.getLayerConfig(),m=u.fontWeight,E=m===void 0?"400":m,L=u.fontFamily,Z=L===void 0?"sans-serif":L;return this.fontService.getCanvasByKey("".concat(Z,"_").concat(E))}},{key:"filterGlyphs",value:function(){var u=this,m=this.layer.getLayerConfig(),E=m.padding,L=E===void 0?[0,0]:E,Z=m.textAllowOverlap,ne=Z===void 0?!1:Z;if(!ne){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var xe=this.rendererService.getViewportSize(),Oe=xe.width,wt=xe.height,Bt=new V7(Oe,wt),wn=this.glyphInfo.filter(function(Rn){var Pr=Rn.shaping,ui=Rn.id,oo=ui===void 0?0:ui,xo=Rn.version==="GAODE2.x"?Rn.originCentroid:Rn.centroid,Ds=Rn.size,aa=Ds/16,fa=u.mapService.lngLatToContainer(xo),Za=Bt.placeCollisionBox({x1:Pr.left*aa-L[0],x2:Pr.right*aa+L[0],y1:Pr.top*aa-L[1],y2:Pr.bottom*aa+L[1],anchorPointX:fa.x,anchorPointY:fa.y}),gl=Za.box;return gl&&gl.length?(Bt.insertCollisionBox(gl,oo),!0):!1});wn.forEach(function(Rn){u.glyphInfoMap[Rn.id]=Rn})}}},{key:"initGlyph",value:function(){var u=this.layer.getLayerConfig(),m=u.iconfont,E=m===void 0?!1:m;E?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(E)}},{key:"updateTexture",value:function(){var u=this.rendererService.createTexture2D,m=this.getFontServiceCanvas();this.textureHeight=m.height,this.texture&&this.texture.destroy(),this.texture=u({data:m,mag:Di.LINEAR,min:Di.LINEAR,width:m.width,height:m.height})}},{key:"reBuildModel",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E;return Fi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return this.filterGlyphs(),Z.next=3,this.layer.buildLayerModel({moduleName:"pointText",vertexShader:S_,fragmentShader:G7,triangulation:jO.bind(this),inject:this.getInject(),depth:{enable:!1}});case 3:E=Z.sent,this.layer.models=[E];case 5:case"end":return Z.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()}]),l}(ec),WO={fillImage:MO,fill:PO,radar:XT,image:XS,normal:_D,simplePoint:gD,extrude:DO,text:I0,earthFill:kM,earthExtrude:jj},nW=WO;function K_(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=K7(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function K7(o,d){if(o){if(typeof o=="string")return X7(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return X7(o,d)}}function X7(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l.5||!ui||Z!==this.preTextStyle.textAllowOverlap)){wo.next=14;break}return wo.next=13,this.reBuildModel();case 13:return wo.abrupt("return",!0);case 14:return wo.abrupt("return",!1);case 15:case"end":return wo.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"clearModels",value:function(){var u;(u=this.texture)===null||u===void 0||u.destroy(),this.layer.off("remapping",this.mapping)}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:Id.Attribute,descriptor:{name:"a_textOffsets",buffer:{usage:Ai.STATIC_DRAW,data:[],type:Ai.FLOAT},size:2,update:function(m,E,M){return[M[5],M[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Id.Attribute,descriptor:{name:"a_Size",buffer:{usage:Ai.DYNAMIC_DRAW,data:[],type:Ai.FLOAT},size:1,update:function(m){var E=m.size,M=E===void 0?12:E;return Array.isArray(M)?[M[0]]:[M]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:Id.Attribute,descriptor:{name:"a_tex",buffer:{usage:Ai.DYNAMIC_DRAW,data:[],type:Ai.FLOAT},size:2,update:function(m,E,M){return[M[3],M[4]]}}})}},{key:"bindEvent",value:function(){this.layer.isTileLayer||this.layer.on("remapping",this.mapping)}},{key:"textExtent",value:function(){var u=this.mapService.getBounds();return ou(u,.5)}},{key:"initTextFont",value:function(){var u=this.getTextStyle(),m=u.fontWeight,E=u.fontFamily,M=this.rawEncodeData,Z=[];M.forEach(function(ne){var Ce=ne.shape,Oe=Ce===void 0?"":Ce;Oe=Oe.toString();var Ct=Z7(Oe),Bt;try{for(Ct.s();!(Bt=Ct.n()).done;){var An=Bt.value;Z.indexOf(An)===-1&&Z.push(An)}}catch(kn){Ct.e(kn)}finally{Ct.f()}}),this.fontService.setFontOptions({characterSet:Z,fontWeight:m,fontFamily:E,iconfont:!1})}},{key:"initIconFontTex",value:function(){var u=this.getTextStyle(),m=u.fontWeight,E=u.fontFamily,M=this.rawEncodeData,Z=[];M.forEach(function(ne){var Ce=ne.shape,Oe=Ce===void 0?"":Ce;Oe="".concat(Oe),Z.indexOf(Oe)===-1&&Z.push(Oe)}),this.fontService.setFontOptions({characterSet:Z,fontWeight:m,fontFamily:E,iconfont:!0})}},{key:"getTextStyle",value:function(){var u=this.layer.getLayerConfig(),m=u.fontWeight,E=m===void 0?"400":m,M=u.fontFamily,Z=M===void 0?"sans-serif":M,ne=u.textAllowOverlap,Ce=ne===void 0?!1:ne,Oe=u.padding,Ct=Oe===void 0?[0,0]:Oe,Bt=u.textAnchor,An=Bt===void 0?"center":Bt,kn=u.textOffset,Ir=kn===void 0?[0,0]:kn,ui=u.opacity,ao=ui===void 0?1:ui,wo=u.strokeOpacity,Ds=wo===void 0?1:wo,oa=u.strokeWidth,fa=oa===void 0?0:oa,Wa=u.stroke,vl=Wa===void 0?"#000":Wa;return{fontWeight:E,fontFamily:Z,textAllowOverlap:Ce,padding:Ct,textAnchor:An,textOffset:Ir,opacity:ao,strokeOpacity:Ds,strokeWidth:fa,stroke:vl}}},{key:"generateGlyphLayout",value:function(u){var m=this,E=this.getFontServiceMapping(),M=this.layer.getLayerConfig(),Z=M.spacing,ne=Z===void 0?2:Z,Ce=M.textAnchor,Oe=Ce===void 0?"center":Ce,Ct=M.textOffset,Bt=this.rawEncodeData;this.glyphInfo=Bt.map(function(An){var kn=An.shape,Ir=kn===void 0?"":kn,ui=An.id,ao=An.size,wo=ao===void 0?1:ao,Ds=An.textOffset?An.textOffset:Ct||[0,0],oa=An.textAnchor?An.textAnchor:Oe||"center",fa=W7(Ir.toString(),E,wo,oa,"left",ne,Ds,u),Wa=ZO(fa,Ds,!1);return An.shaping=fa,An.glyphQuads=Wa,An.centroid=Bd(An.coordinates),An.originCentroid=An.version==="GAODE2.x"?Bd(An.originCoordinates):An.originCentroid=An.centroid,m.glyphInfoMap[ui]={shaping:fa,glyphQuads:Wa,centroid:Bd(An.coordinates)},An})}},{key:"getFontServiceMapping",value:function(){var u=this.layer.getLayerConfig(),m=u.fontWeight,E=m===void 0?"400":m,M=u.fontFamily,Z=M===void 0?"sans-serif":M;return this.fontService.getMappingByKey("".concat(Z,"_").concat(E))}},{key:"getFontServiceCanvas",value:function(){var u=this.layer.getLayerConfig(),m=u.fontWeight,E=m===void 0?"400":m,M=u.fontFamily,Z=M===void 0?"sans-serif":M;return this.fontService.getCanvasByKey("".concat(Z,"_").concat(E))}},{key:"filterGlyphs",value:function(){var u=this,m=this.layer.getLayerConfig(),E=m.padding,M=E===void 0?[0,0]:E,Z=m.textAllowOverlap,ne=Z===void 0?!1:Z;if(!ne){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var Ce=this.rendererService.getViewportSize(),Oe=Ce.width,Ct=Ce.height,Bt=new V7(Oe,Ct),An=this.glyphInfo.filter(function(kn){var Ir=kn.shaping,ui=kn.id,ao=ui===void 0?0:ui,wo=kn.version==="GAODE2.x"?kn.originCentroid:kn.centroid,Ds=kn.size,oa=Ds/16,fa=u.mapService.lngLatToContainer(wo),Wa=Bt.placeCollisionBox({x1:Ir.left*oa-M[0],x2:Ir.right*oa+M[0],y1:Ir.top*oa-M[1],y2:Ir.bottom*oa+M[1],anchorPointX:fa.x,anchorPointY:fa.y}),vl=Wa.box;return vl&&vl.length?(Bt.insertCollisionBox(vl,ao),!0):!1});An.forEach(function(kn){u.glyphInfoMap[kn.id]=kn})}}},{key:"initGlyph",value:function(){var u=this.layer.getLayerConfig(),m=u.iconfont,E=m===void 0?!1:m;E?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(E)}},{key:"updateTexture",value:function(){var u=this.rendererService.createTexture2D,m=this.getFontServiceCanvas();this.textureHeight=m.height,this.texture&&this.texture.destroy(),this.texture=u({data:m,mag:Ai.LINEAR,min:Ai.LINEAR,width:m.width,height:m.height})}},{key:"reBuildModel",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E;return Oi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return this.filterGlyphs(),Z.next=3,this.layer.buildLayerModel({moduleName:"pointText",vertexShader:E_,fragmentShader:G7,triangulation:GO.bind(this),inject:this.getInject(),depth:{enable:!1}});case 3:E=Z.sent,this.layer.models=[E];case 5:case"end":return Z.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()}]),l}(ec),KO={fillImage:NO,fill:kO,radar:JT,image:XS,normal:xD,simplePoint:vD,extrude:MO,text:L0,earthFill:MM,earthExtrude:$j},eW=KO;function X_(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=K7(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function K7(o,d){if(o){if(typeof o=="string")return X7(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return X7(o,d)}}function X7(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l0&&arguments[0]!==void 0?arguments[0]:!0;u&&this.layerService.clear()}},{key:"registerBuiltinAttributes",value:function(){return""}}]),l}(ec),zM={fill:Z4},UW=zM;function $W(o){var d=t6();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function t6(){if(typeof Reflect=="undefined"||!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(o){return!1}}var n6=function(o){(0,lt.Z)(l,o);var d=$W(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&arguments[0]!==void 0?arguments[0]:!0;u&&this.layerService.clear()}},{key:"registerBuiltinAttributes",value:function(){return""}}]),l}(ec),FM={fill:V4},BW=FM;function zW(o){var d=o6();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function o6(){if(typeof Reflect=="undefined"||!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(o){return!1}}var s6=function(o){(0,lt.Z)(l,o);var d=zW(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&arguments[0]!==void 0?arguments[0]:{},E=this.layer.getLayerConfig(),L=E.opacity;this.layerService.beforeRenderData(this.layer),this.layer.hooks.beforeRender.call(),this.layerService.renderMask(this.layer.masks),(u=this.colorModel)===null||u===void 0||u.draw({uniforms:{u_opacity:L||1,u_texture:this.texture},blend:this.getBlend(),stencil:this.getStencil(m)}),this.layer.hooks.afterRender.call()}}]),l}(ec),ZW={wind:s6},HW=ZW;function eA(o){var d=AD();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function AD(){if(typeof Reflect=="undefined"||!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(o){return!1}}var GW=function(o){(0,lt.Z)(l,o);var d=eA(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&arguments[0]!==void 0?arguments[0]:{};return this.layerModel&&this.layerModel.render(u),this}},{key:"getDefaultConfig",value:function(){var u=this.getModelType(),m={wind:{}};return m[u]}},{key:"getModelType",value:function(){return"wind"}}]),l}(i_),yB,_B,bB,xB,VM,DD,ID,Y4=fs.cloneDeep,QS=(yB=(0,ts.b2)(),_B=(0,ts.f3)(Ls.IMapService),bB=(0,ts.f3)(Ls.IFontService),yB(xB=(VM=function(){function o(){(0,Ct.Z)(this,o),Vc(this,"mapService",DD,this),Vc(this,"fontService",ID,this)}return(0,nt.Z)(o,[{key:"apply",value:function(l,c){var u=this,m=c.styleAttributeService;l.hooks.init.tapPromise("DataMappingPlugin",(0,Pl.Z)(Fi().mark(function E(){return Fi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:l.log(Uv.MappingStart,Ll.INIT),u.generateMaping(l,{styleAttributeService:m}),l.log(Uv.MappingEnd,Ll.INIT);case 3:case"end":return Z.stop()}},E)}))),l.hooks.beforeRenderData.tapPromise("DataMappingPlugin",function(){var E=(0,Pl.Z)(Fi().mark(function L(Z){var ne;return Fi().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(Z){Oe.next=2;break}return Oe.abrupt("return",Z);case 2:return l.dataState.dataMappingNeedUpdate=!1,l.log(Uv.MappingStart,Ll.UPDATE),ne=u.generateMaping(l,{styleAttributeService:m}),l.log(Uv.MappingEnd,Ll.UPDATE),Oe.abrupt("return",ne);case 7:case"end":return Oe.stop()}},L)}));return function(L){return E.apply(this,arguments)}}()),l.hooks.beforeRender.tap("DataMappingPlugin",function(){var E=l.getSource();if(!(l.layerModelNeedUpdate||!E||!E.inited)){var L=m.getLayerStyleAttributes()||[],Z=m.getLayerStyleAttribute("filter"),ne=E.data.dataArray;if(!(Array.isArray(ne)&&ne.length===0)){var xe=L.filter(function(Bt){return Bt.needRemapping}),Oe=ne;if(Z!=null&&Z.needRemapping&&Z!==null&&Z!==void 0&&Z.scale&&(Oe=ne.filter(function(Bt){return u.applyAttributeMapping(Z,Bt)[0]})),xe.length){var wt=u.mapping(l,xe,Oe,l.getEncodedData());l.setEncodedData(wt)}}}})}},{key:"generateMaping",value:function(l,c){var u=this,m=c.styleAttributeService,E=m.getLayerStyleAttributes()||[],L=m.getLayerStyleAttribute("filter"),Z=l.getSource().data.dataArray,ne=Z;L!=null&&L.scale&&(ne=Z.filter(function(Oe){return u.applyAttributeMapping(L,Oe)[0]})),ne=l.processData(ne);var xe=this.mapping(l,E,ne,void 0);return l.setEncodedData(xe),Z.length===0&&l.encodeDataLength===0?!1:(l.emit("dataUpdate",null),!0)}},{key:"mapping",value:function(l,c,u,m){var E=this,L=c.filter(function(ne){return ne.scale!==void 0}).filter(function(ne){return ne.name!=="filter"}),Z=u.map(function(ne,xe){var Oe=m?m[xe]:{},wt=(0,ze.Z)({id:ne._id,coordinates:ne.coordinates},Oe);return L.forEach(function(Bt){var wn=E.applyAttributeMapping(Bt,ne);(Bt.name==="color"||Bt.name==="stroke")&&(wn=wn.map(function(Rn){return mi(Rn)})),wt[Bt.name]=Array.isArray(wn)&&wn.length===1?wn[0]:wn,Bt.name==="shape"&&(wt.shape=E.fontService.getIconFontKey(wt[Bt.name]))}),wt});return c.forEach(function(ne){ne.needRemapping=!1}),this.adjustData2Amap2Coordinates(Z,l),this.adjustData2SimpleCoordinates(Z),Z}},{key:"adjustData2Amap2Coordinates",value:function(l,c){var u=this;if(l.length>0&&this.mapService.version==="GAODE2.x"){var m=c.coordCenter||c.getSource().center;l.filter(function(E){return!E.originCoordinates}).map(function(E){E.version="GAODE2.x",E.originCoordinates=Y4(E.coordinates),E.coordinates=u.mapService.coordToAMap2RelativeCoordinates(E.coordinates,m)})}}},{key:"adjustData2SimpleCoordinates",value:function(l){var c=this;l.length>0&&this.mapService.version==="SIMPLE"&&l.map(function(u){u.simpleCoordinate||(u.coordinates=c.unProjectCoordinates(u.coordinates),u.simpleCoordinate=!0)})}},{key:"unProjectCoordinates",value:function(l){var c=this;if(typeof l[0]=="number")return this.mapService.simpleMapCoord.unproject(l);if(l[0]&&l[0][0]instanceof Array){var u=[];return l.map(function(E){var L=[];E.map(function(Z){L.push(c.mapService.simpleMapCoord.unproject(Z))}),u.push(L)}),u}else{var m=[];return l.map(function(E){m.push(c.mapService.simpleMapCoord.unproject(E))}),m}}},{key:"applyAttributeMapping",value:function(l,c){var u;if(!l.scale)return[];var m=(l==null||(u=l.scale)===null||u===void 0?void 0:u.scalers)||[],E=[];m.forEach(function(Z){var ne,xe=Z.field;(c.hasOwnProperty(xe)||((ne=l.scale)===null||ne===void 0?void 0:ne.type)==="variable")&&E.push(c[xe])});var L=l.mapping?l.mapping(E):[];return L}},{key:"getArrowPoints",value:function(l,c){var u=[c[0]-l[0],c[1]-l[1]],m=cc(u),E=[l[0]+m[0]*1e-4,l[1]+m[1]*1e-4];return E}}]),o}(),DD=zd(VM.prototype,"mapService",[_B],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ID=zd(VM.prototype,"fontService",[bB],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),VM))||xB),a6,l6,Gv=(a6=(0,ts.b2)(),a6(l6=function(){function o(){(0,Ct.Z)(this,o)}return(0,nt.Z)(o,[{key:"apply",value:function(l){var c=this;this.mapService=l.getContainer().get(Ls.IMapService),l.hooks.init.tapPromise("DataSourcePlugin",(0,Pl.Z)(Fi().mark(function u(){var m,E,L,Z;return Fi().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(l.log(Uv.SourceInitStart,Ll.INIT),m=l.getSource(),m||(E=l.sourceOption||l.defaultSourceConfig,L=E.data,Z=E.options,m=new vw(L,Z),l.setSource(m)),!m.inited){xe.next=8;break}c.updateClusterData(l),l.log(Uv.SourceInitEnd,Ll.INIT),xe.next=10;break;case 8:return xe.next=10,new Promise(function(Oe){m.on("update",function(wt){wt.type==="inited"&&(c.updateClusterData(l),l.log(Uv.SourceInitEnd,Ll.INIT)),Oe(null)})});case 10:case"end":return xe.stop()}},u)}))),l.hooks.beforeRenderData.tapPromise("DataSourcePlugin",(0,Pl.Z)(Fi().mark(function u(){var m,E,L;return Fi().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return m=c.updateClusterData(l),E=l.dataState.dataSourceNeedUpdate,l.dataState.dataSourceNeedUpdate=!1,L=m||E,ne.abrupt("return",L);case 5:case"end":return ne.stop()}},u)})))}},{key:"updateClusterData",value:function(l){if(l.isTileLayer||l.tileLayer||!l.getSource())return!1;var c=l.getSource(),u=c.cluster,m=c.clusterOptions.zoom,E=m===void 0?0:m,L=this.mapService.getZoom()-1,Z=l.dataState.dataSourceNeedUpdate;return u&&Z&&c.updateClusterData(Math.floor(L)),u&&Math.abs(l.clusterZoom-L)>=1?(E!==Math.floor(L)&&c.updateClusterData(Math.floor(L)),l.clusterZoom=L,!0):!1}}]),o}())||l6),X1=_(57965);function q4(o,d,l,c,u){var m=o*o,E=m*o;return((1-3*o+3*m-E)*d+(4-6*m+3*E)*l+(1+3*o+3*m-3*E)*c+E*u)/6}function PD(o){var d=o.length-1;return function(l){var c=l<=0?l=0:l>=1?(l=1,d-1):Math.floor(l*d),u=o[c],m=o[c+1],E=c>0?o[c-1]:2*u-m,L=c180||l<-180?l-360*Math.round(l/360):l):constant(isNaN(o)?d:o)}function Ew(o){return(o=+o)==1?E_:function(d,l){return l-d?u6(d,l,o):ap(isNaN(d)?l:d)}}function E_(o,d){var l=d-o;return l?pm(o,l):ap(isNaN(o)?d:o)}var Y1=function o(d){var l=Ew(d);function c(u,m){var E=l((u=er(u)).r,(m=er(m)).r),L=l(u.g,m.g),Z=l(u.b,m.b),ne=E_(u.opacity,m.opacity);return function(xe){return u.r=E(xe),u.g=L(xe),u.b=Z(xe),u.opacity=ne(xe),u+""}}return c.gamma=o,c}(1);function Kv(o){return function(d){var l=d.length,c=new Array(l),u=new Array(l),m=new Array(l),E,L;for(E=0;E=o.length)return l!=null&&L.sort(l),c!=null?c(L):L;for(var Oe=-1,wt=L.length,Bt=o[Z++],wn,Rn,Pr=map(),ui,oo=ne();++Oeo.length)return L;var ne,xe=d[Z-1];return c!=null&&Z>=o.length?ne=L.entries():(ne=[],L.each(function(Oe,wt){ne.push({key:wt,values:E(Oe,Z)})})),xe!=null?ne.sort(function(Oe,wt){return xe(Oe.key,wt.key)}):ne}return u={object:function(L){return m(L,0,KW,XW)},map:function(L){return m(L,0,CB,X_)},entries:function(L){return E(m(L,0,CB,X_),0)},key:function(L){return o.push(L),u},sortKeys:function(L){return d[o.length-1]=L,u},sortValues:function(L){return l=L,u},rollup:function(L){return c=L,u}}}function KW(){return{}}function XW(o,d,l){o[d]=l}function CB(){return map()}function X_(o,d,l){o.set(d,l)}function WM(){}var nA=v1.prototype;WM.prototype=Tw.prototype={constructor:WM,has:nA.has,add:function(o){return o+="",this[Hx+o]=o,this},remove:nA.remove,clear:nA.clear,values:nA.keys,size:nA.size,empty:nA.empty,each:nA.each};function Tw(o,d){var l=new WM;if(o instanceof WM)o.each(function(m){l.add(m)});else if(o){var c=-1,u=o.length;if(d==null)for(;++cl&&(m=d.slice(l,m),L[E]?L[E]+=m:L[++E]=m),(c=c[0])===(u=u[0])?L[E]?L[E]+=u:L[++E]=u:(L[++E]=null,Z.push({i:E,x:oA(c,u)})),l=c6.lastIndex;return ll&&(c=d,d=l,l=c),function(u){return Math.max(d,Math.min(l,u))}}function sQ(o,d,l){var c=o[0],u=o[1],m=d[0],E=d[1];return u2?aQ:sQ,Z=ne=null,Oe}function Oe(wt){return isNaN(wt=+wt)?m:(Z||(Z=L(o.map(c),d,l)))(c(E(wt)))}return Oe.invert=function(wt){return E(u((ne||(ne=L(d,o.map(c),oA)))(wt)))},Oe.domain=function(wt){return arguments.length?(o=rA.call(wt,nZ),E===A_||(E=LB(o)),xe()):o.slice()},Oe.range=function(wt){return arguments.length?(d=iA.call(wt),xe()):d.slice()},Oe.rangeRound=function(wt){return d=iA.call(wt),l=LD,xe()},Oe.clamp=function(wt){return arguments.length?(E=wt?LB(o):A_,Oe):E!==A_},Oe.interpolate=function(wt){return arguments.length?(l=wt,xe()):l},Oe.unknown=function(wt){return arguments.length?(m=wt,Oe):m},function(wt,Bt){return c=wt,u=Bt,xe()}}function sA(o,d){return o_()(o,d)}var Ed=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ab(o){if(!(d=Ed.exec(o)))throw new Error("invalid format: "+o);var d;return new Q4({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]})}Ab.prototype=Q4.prototype;function Q4(o){this.fill=o.fill===void 0?" ":o.fill+"",this.align=o.align===void 0?">":o.align+"",this.sign=o.sign===void 0?"-":o.sign+"",this.symbol=o.symbol===void 0?"":o.symbol+"",this.zero=!!o.zero,this.width=o.width===void 0?void 0:+o.width,this.comma=!!o.comma,this.precision=o.precision===void 0?void 0:+o.precision,this.trim=!!o.trim,this.type=o.type===void 0?"":o.type+""}Q4.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 GM(o){return Math.abs(o=Math.round(o))>=1e21?o.toLocaleString("en").replace(/,/g,""):o.toString(10)}function KM(o,d){if((l=(o=d?o.toExponential(d-1):o.toExponential()).indexOf("e"))<0)return null;var l,c=o.slice(0,l);return[c.length>1?c[0]+c.slice(2):c,+o.slice(l+1)]}function UC(o){return o=KM(Math.abs(o)),o?o[1]:NaN}function MB(o,d){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(UC(d)/3)))*3-UC(Math.abs(o)))}function rZ(o,d){return function(l,c){for(var u=l.length,m=[],E=0,L=o[0],Z=0;u>0&&L>0&&(Z+L+1>c&&(L=Math.max(1,c-Z)),m.push(l.substring(u-=L,u+L)),!((Z+=L+1)>c));)L=o[E=(E+1)%o.length];return m.reverse().join(d)}}function iZ(o){return function(d){return d.replace(/[0-9]/g,function(l){return o[+l]})}}function lQ(o){e:for(var d=o.length,l=1,c=-1,u;l0&&(c=0);break}return c>0?o.slice(0,c)+o.slice(u+1):o}var XM;function YM(o,d){var l=KM(o,d);if(!l)return o+"";var c=l[0],u=l[1],m=u-(XM=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1,E=c.length;return m===E?c:m>E?c+new Array(m-E+1).join("0"):m>0?c.slice(0,m)+"."+c.slice(m):"0."+new Array(1-m).join("0")+KM(o,Math.max(0,d+m-1))[0]}function Aw(o,d){var l=KM(o,d);if(!l)return o+"";var c=l[0],u=l[1];return u<0?"0."+new Array(-u).join("0")+c:c.length>u+1?c.slice(0,u+1)+"."+c.slice(u+1):c+new Array(u-c.length+2).join("0")}var RB={"%":function(o,d){return(o*100).toFixed(d)},b:function(o){return Math.round(o).toString(2)},c:function(o){return o+""},d:GM,e:function(o,d){return o.toExponential(d)},f:function(o,d){return o.toFixed(d)},g:function(o,d){return o.toPrecision(d)},o:function(o){return Math.round(o).toString(8)},p:function(o,d){return Aw(o*100,d)},r:Aw,s:YM,X:function(o){return Math.round(o).toString(16).toUpperCase()},x:function(o){return Math.round(o).toString(16)}};function qM(o){return o}var kB=Array.prototype.map,OB=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function p6(o){var d=o.grouping===void 0||o.thousands===void 0?qM:rZ(kB.call(o.grouping,Number),o.thousands+""),l=o.currency===void 0?"":o.currency[0]+"",c=o.currency===void 0?"":o.currency[1]+"",u=o.decimal===void 0?".":o.decimal+"",m=o.numerals===void 0?qM:iZ(kB.call(o.numerals,String)),E=o.percent===void 0?"%":o.percent+"",L=o.minus===void 0?"-":o.minus+"",Z=o.nan===void 0?"NaN":o.nan+"";function ne(Oe){Oe=Ab(Oe);var wt=Oe.fill,Bt=Oe.align,wn=Oe.sign,Rn=Oe.symbol,Pr=Oe.zero,ui=Oe.width,oo=Oe.comma,xo=Oe.precision,Ds=Oe.trim,aa=Oe.type;aa==="n"?(oo=!0,aa="g"):RB[aa]||(xo===void 0&&(xo=12),Ds=!0,aa="g"),(Pr||wt==="0"&&Bt==="=")&&(Pr=!0,wt="0",Bt="=");var fa=Rn==="$"?l:Rn==="#"&&/[boxX]/.test(aa)?"0"+aa.toLowerCase():"",Za=Rn==="$"?c:/[%p]/.test(aa)?E:"",gl=RB[aa],tu=/[defgprs%]/.test(aa);xo=xo===void 0?6:/[gprs]/.test(aa)?Math.max(1,Math.min(21,xo)):Math.max(0,Math.min(20,xo));function ku(ju){var Xc=fa,Pd=Za,Lh,fg,Gg;if(aa==="c")Pd=gl(ju)+Pd,ju="";else{ju=+ju;var am=ju<0||1/ju<0;if(ju=isNaN(ju)?Z:gl(Math.abs(ju),xo),Ds&&(ju=lQ(ju)),am&&+ju==0&&wn!=="+"&&(am=!1),Xc=(am?wn==="("?wn:L:wn==="-"||wn==="("?"":wn)+Xc,Pd=(aa==="s"?OB[8+XM/3]:"")+Pd+(am&&wn==="("?")":""),tu){for(Lh=-1,fg=ju.length;++LhGg||Gg>57){Pd=(Gg===46?u+ju.slice(Lh+1):ju.slice(Lh))+Pd,ju=ju.slice(0,Lh);break}}}oo&&!Pr&&(ju=d(ju,1/0));var sv=Xc.length+ju.length+Pd.length,Em=sv>1)+Xc+ju+Pd+Em.slice(sv);break;default:ju=Em+Xc+ju+Pd;break}return m(ju)}return ku.toString=function(){return Oe+""},ku}function xe(Oe,wt){var Bt=ne((Oe=Ab(Oe),Oe.type="f",Oe)),wn=Math.max(-8,Math.min(8,Math.floor(UC(wt)/3)))*3,Rn=Math.pow(10,-wn),Pr=OB[8+wn/3];return function(ui){return Bt(Rn*ui)+Pr}}return{format:ne,formatPrefix:xe}}var eP,g6,MD;JM({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function JM(o){return eP=p6(o),g6=eP.format,MD=eP.formatPrefix,eP}function tE(o,d){return o=Math.abs(o),d=Math.abs(d)-o,Math.max(0,UC(d)-UC(o))+1}function NB(o){return Math.max(0,-UC(Math.abs(o)))}function m6(o,d,l,c){var u=(0,X1.ly)(o,d,l),m;switch(c=Ab(c==null?",f":c),c.type){case"s":{var E=Math.max(Math.abs(o),Math.abs(d));return c.precision==null&&!isNaN(m=MB(u,E))&&(c.precision=m),MD(c,E)}case"":case"e":case"g":case"p":case"r":{c.precision==null&&!isNaN(m=tE(u,Math.max(Math.abs(o),Math.abs(d))))&&(c.precision=m-(c.type==="e"));break}case"f":case"%":{c.precision==null&&!isNaN(m=NB(u))&&(c.precision=m-(c.type==="%")*2);break}}return g6(c)}function RD(o){var d=o.domain;return o.ticks=function(l){var c=d();return(0,X1.sd)(c[0],c[c.length-1],l==null?10:l)},o.tickFormat=function(l,c){var u=d();return m6(u[0],u[u.length-1],l==null?10:l,c)},o.nice=function(l){l==null&&(l=10);var c=d(),u=0,m=c.length-1,E=c[u],L=c[m],Z;return L0?(E=Math.floor(E/Z)*Z,L=Math.ceil(L/Z)*Z,Z=(0,X1.G9)(E,L,l)):Z<0&&(E=Math.ceil(E*Z)/Z,L=Math.floor(L*Z)/Z,Z=(0,X1.G9)(E,L,l)),Z>0?(c[u]=Math.floor(E/Z)*Z,c[m]=Math.ceil(L/Z)*Z,d(c)):Z<0&&(c[u]=Math.ceil(E*Z)/Z,c[m]=Math.floor(L*Z)/Z,d(c)),o},o}function kD(){var o=sA(A_,A_);return o.copy=function(){return f6(o,kD())},eE.apply(o,arguments),RD(o)}function OD(o){var d;function l(c){return isNaN(c=+c)?d:c}return l.invert=l,l.domain=l.range=function(c){return arguments.length?(o=map.call(c,number),l):o.slice()},l.unknown=function(c){return arguments.length?(d=c,l):d},l.copy=function(){return OD(o).unknown(d)},o=arguments.length?map.call(o,number):[0,1],linearish(l)}function aA(o,d){o=o.slice();var l=0,c=o.length-1,u=o[l],m=o[c],E;return m0){for(;wtxe)break;oo.push(Pr)}}else for(;wt=1;--Rn)if(Pr=wn*Rn,!(Prxe)break;oo.push(Pr)}}else oo=(0,X1.sd)(wt,Bt,Math.min(Bt-wt,ui)).map(m);return Oe?oo.reverse():oo},d.tickFormat=function(L,Z){if(Z==null&&(Z=c===10?".0e":","),typeof Z!="function"&&(Z=g6(Z)),L===1/0)return Z;L==null&&(L=10);var ne=Math.max(1,c*L/d.ticks().length);return function(xe){var Oe=xe/m(Math.round(u(xe)));return Oe*c0?l[L-1]:o[0],L=l?[c[l-1],d]:[c[ne-1],c[ne]]},E.unknown=function(Z){return arguments.length&&(m=Z),E},E.thresholds=function(){return c.slice()},E.copy=function(){return VB().domain([o,d]).range(u).unknown(m)},eE.apply(RD(E),arguments)}function lZ(){var o=[.5],d=[0,1],l,c=1;function u(m){return m<=m?d[(0,X1.b4)(o,m,0,c)]:l}return u.domain=function(m){return arguments.length?(o=iA.call(m),c=Math.min(o.length,d.length-1),u):o.slice()},u.range=function(m){return arguments.length?(d=iA.call(m),c=Math.min(o.length,d.length-1),u):d.slice()},u.invertExtent=function(m){var E=d.indexOf(m);return[o[E-1],o[E]]},u.unknown=function(m){return arguments.length?(l=m,u):l},u.copy=function(){return lZ().domain(o).range(d).unknown(l)},eE.apply(u,arguments)}var k2=new Date,b6=new Date;function Y_(o,d,l,c){function u(m){return o(m=arguments.length===0?new Date:new Date(+m)),m}return u.floor=function(m){return o(m=new Date(+m)),m},u.ceil=function(m){return o(m=new Date(m-1)),d(m,1),o(m),m},u.round=function(m){var E=u(m),L=u.ceil(m);return m-E0))return Z;do Z.push(ne=new Date(+m)),d(m,L),o(m);while(ne=E)for(;o(E),!m(E);)E.setTime(E-1)},function(E,L){if(E>=E)if(L<0)for(;++L<=0;)for(;d(E,-1),!m(E););else for(;--L>=0;)for(;d(E,1),!m(E););})},l&&(u.count=function(m,E){return k2.setTime(+m),b6.setTime(+E),o(k2),o(b6),Math.floor(l(k2,b6))},u.every=function(m){return m=Math.floor(m),!isFinite(m)||!(m>0)?null:m>1?u.filter(c?function(E){return c(E)%m===0}:function(E){return u.count(0,E)%m===0}):u}),u}var q_=Y_(function(o){o.setMonth(0,1),o.setHours(0,0,0,0)},function(o,d){o.setFullYear(o.getFullYear()+d)},function(o,d){return d.getFullYear()-o.getFullYear()},function(o){return o.getFullYear()});q_.every=function(o){return!isFinite(o=Math.floor(o))||!(o>0)?null:Y_(function(d){d.setFullYear(Math.floor(d.getFullYear()/o)*o),d.setMonth(0,1),d.setHours(0,0,0,0)},function(d,l){d.setFullYear(d.getFullYear()+l*o)})};var $C=q_,uQ=q_.range,o5=Y_(function(o){o.setDate(1),o.setHours(0,0,0,0)},function(o,d){o.setMonth(o.getMonth()+d)},function(o,d){return d.getMonth()-o.getMonth()+(d.getFullYear()-o.getFullYear())*12},function(o){return o.getMonth()}),uZ=o5,s5=o5.range,a5=1e3,Dw=6e4,l5=36e5,x6=864e5,jB=6048e5;function uA(o){return Y_(function(d){d.setDate(d.getDate()-(d.getDay()+7-o)%7),d.setHours(0,0,0,0)},function(d,l){d.setDate(d.getDate()+l*7)},function(d,l){return(l-d-(l.getTimezoneOffset()-d.getTimezoneOffset())*Dw)/jB})}var u5=uA(0),nP=uA(1),nE=uA(2),cZ=uA(3),ND=uA(4),dZ=uA(5),rP=uA(6),cQ=u5.range,dQ=nP.range,hQ=nE.range,hZ=cZ.range,fQ=ND.range,WB=dZ.range,pQ=rP.range,w6=Y_(function(o){o.setHours(0,0,0,0)},function(o,d){o.setDate(o.getDate()+d)},function(o,d){return(d-o-(d.getTimezoneOffset()-o.getTimezoneOffset())*Dw)/x6},function(o){return o.getDate()-1}),C6=w6,FD=w6.range,ZB=Y_(function(o){o.setTime(o-o.getMilliseconds()-o.getSeconds()*a5-o.getMinutes()*Dw)},function(o,d){o.setTime(+o+d*l5)},function(o,d){return(d-o)/l5},function(o){return o.getHours()}),O2=ZB,gQ=ZB.range,HB=Y_(function(o){o.setTime(o-o.getMilliseconds()-o.getSeconds()*a5)},function(o,d){o.setTime(+o+d*Dw)},function(o,d){return(d-o)/Dw},function(o){return o.getMinutes()}),fZ=HB,pZ=HB.range,GB=Y_(function(o){o.setTime(o-o.getMilliseconds())},function(o,d){o.setTime(+o+d*a5)},function(o,d){return(d-o)/a5},function(o){return o.getUTCSeconds()}),gZ=GB,mQ=GB.range,c5=Y_(function(){},function(o,d){o.setTime(+o+d)},function(o,d){return d-o});c5.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?Y_(function(d){d.setTime(Math.floor(d/o)*o)},function(d,l){d.setTime(+d+l*o)},function(d,l){return(l-d)/o}):c5};var mZ=c5,vZ=c5.range;function cA(o){return Y_(function(d){d.setUTCDate(d.getUTCDate()-(d.getUTCDay()+7-o)%7),d.setUTCHours(0,0,0,0)},function(d,l){d.setUTCDate(d.getUTCDate()+l*7)},function(d,l){return(l-d)/jB})}var d5=cA(0),BD=cA(1),S6=cA(2),KB=cA(3),VC=cA(4),XB=cA(5),E6=cA(6),YB=d5.range,vQ=BD.range,yQ=S6.range,yZ=KB.range,jC=VC.range,h5=XB.range,_Q=E6.range,N2=Y_(function(o){o.setUTCHours(0,0,0,0)},function(o,d){o.setUTCDate(o.getUTCDate()+d)},function(o,d){return(d-o)/x6},function(o){return o.getUTCDate()-1}),f5=N2,bQ=N2.range,T6=Y_(function(o){o.setUTCMonth(0,1),o.setUTCHours(0,0,0,0)},function(o,d){o.setUTCFullYear(o.getUTCFullYear()+d)},function(o,d){return d.getUTCFullYear()-o.getUTCFullYear()},function(o){return o.getUTCFullYear()});T6.every=function(o){return!isFinite(o=Math.floor(o))||!(o>0)?null:Y_(function(d){d.setUTCFullYear(Math.floor(d.getUTCFullYear()/o)*o),d.setUTCMonth(0,1),d.setUTCHours(0,0,0,0)},function(d,l){d.setUTCFullYear(d.getUTCFullYear()+l*o)})};var WC=T6,_Z=T6.range;function q1(o){if(0<=o.y&&o.y<100){var d=new Date(-1,o.m,o.d,o.H,o.M,o.S,o.L);return d.setFullYear(o.y),d}return new Date(o.y,o.m,o.d,o.H,o.M,o.S,o.L)}function A6(o){if(0<=o.y&&o.y<100){var d=new Date(Date.UTC(-1,o.m,o.d,o.H,o.M,o.S,o.L));return d.setUTCFullYear(o.y),d}return new Date(Date.UTC(o.y,o.m,o.d,o.H,o.M,o.S,o.L))}function dA(o,d,l){return{y:o,m:d,d:l,H:0,M:0,S:0,L:0}}function bZ(o){var d=o.dateTime,l=o.date,c=o.time,u=o.periods,m=o.days,E=o.shortDays,L=o.months,Z=o.shortMonths,ne=iP(u),xe=zD(u),Oe=iP(m),wt=zD(m),Bt=iP(E),wn=zD(E),Rn=iP(L),Pr=zD(L),ui=iP(Z),oo=zD(Z),xo={a:am,A:sv,b:Em,B:gy,c:null,d:e9,e:e9,f:IZ,g:Mw,G:aP,H:AZ,I:DZ,j:g5,L:fA,m:PZ,M:L6,p:LE,q:dS,Q:d9,s:ZC,S:J_,u:t9,U:m5,V:k1,w:LZ,W:oE,x:null,X:null,y:M6,Y:R6,Z:MZ,"%":c9},Ds={a:EL,A:Ky,b:gv,B:k_,c:null,d:lP,e:lP,f:i9,g:v5,G:$Z,H:RZ,I:kZ,j:OZ,L:r9,m:NZ,M:FZ,p:Ub,q:TI,Q:d9,s:ZC,S:BZ,u:zZ,U:UZ,V:$D,w:s9,W:a9,x:null,X:null,y:Rw,Y:l9,Z:u9,"%":c9},aa={a:ku,A:ju,b:Xc,B:Pd,c:Lh,d:p5,e:p5,f:QB,g:Pw,G:qB,H:JB,I:JB,j:SZ,L:iE,m:CZ,M:EZ,p:tu,q:wZ,Q:Db,s:Lw,S:TZ,u:rE,U:UD,V:F2,w:P6,W:xZ,x:fg,X:Gg,y:Pw,Y:qB,Z:oP,"%":sP};xo.x=fa(l,xo),xo.X=fa(c,xo),xo.c=fa(d,xo),Ds.x=fa(l,Ds),Ds.X=fa(c,Ds),Ds.c=fa(d,Ds);function fa(mg,Xm){return function(J0){var If=[],$b=-1,Vv=0,Ex=mg.length,Tx,ME,j8;for(J0 instanceof Date||(J0=new Date(+J0));++$b53)return null;"w"in If||(If.w=1),"Z"in If?(Vv=A6(dA(If.y,0,1)),Ex=Vv.getUTCDay(),Vv=Ex>4||Ex===0?BD.ceil(Vv):BD(Vv),Vv=f5.offset(Vv,(If.V-1)*7),If.y=Vv.getUTCFullYear(),If.m=Vv.getUTCMonth(),If.d=Vv.getUTCDate()+(If.w+6)%7):(Vv=q1(dA(If.y,0,1)),Ex=Vv.getDay(),Vv=Ex>4||Ex===0?nP.ceil(Vv):nP(Vv),Vv=C6.offset(Vv,(If.V-1)*7),If.y=Vv.getFullYear(),If.m=Vv.getMonth(),If.d=Vv.getDate()+(If.w+6)%7)}else("W"in If||"U"in If)&&("w"in If||(If.w="u"in If?If.u%7:"W"in If?1:0),Ex="Z"in If?A6(dA(If.y,0,1)).getUTCDay():q1(dA(If.y,0,1)).getDay(),If.m=0,If.d="W"in If?(If.w+6)%7+If.W*7-(Ex+5)%7:If.w+If.U*7-(Ex+6)%7);return"Z"in If?(If.H+=If.Z/100|0,If.M+=If.Z%100,A6(If)):q1(If)}}function gl(mg,Xm,J0,If){for(var $b=0,Vv=Xm.length,Ex=J0.length,Tx,ME;$b=Ex)return-1;if(Tx=Xm.charCodeAt($b++),Tx===37){if(Tx=Xm.charAt($b++),ME=aa[Tx in Iw?Xm.charAt($b++):Tx],!ME||(If=ME(mg,J0,If))<0)return-1}else if(Tx!=J0.charCodeAt(If++))return-1}return If}function tu(mg,Xm,J0){var If=ne.exec(Xm.slice(J0));return If?(mg.p=xe[If[0].toLowerCase()],J0+If[0].length):-1}function ku(mg,Xm,J0){var If=Bt.exec(Xm.slice(J0));return If?(mg.w=wn[If[0].toLowerCase()],J0+If[0].length):-1}function ju(mg,Xm,J0){var If=Oe.exec(Xm.slice(J0));return If?(mg.w=wt[If[0].toLowerCase()],J0+If[0].length):-1}function Xc(mg,Xm,J0){var If=ui.exec(Xm.slice(J0));return If?(mg.m=oo[If[0].toLowerCase()],J0+If[0].length):-1}function Pd(mg,Xm,J0){var If=Rn.exec(Xm.slice(J0));return If?(mg.m=Pr[If[0].toLowerCase()],J0+If[0].length):-1}function Lh(mg,Xm,J0){return gl(mg,d,Xm,J0)}function fg(mg,Xm,J0){return gl(mg,l,Xm,J0)}function Gg(mg,Xm,J0){return gl(mg,c,Xm,J0)}function am(mg){return E[mg.getDay()]}function sv(mg){return m[mg.getDay()]}function Em(mg){return Z[mg.getMonth()]}function gy(mg){return L[mg.getMonth()]}function LE(mg){return u[+(mg.getHours()>=12)]}function dS(mg){return 1+~~(mg.getMonth()/3)}function EL(mg){return E[mg.getUTCDay()]}function Ky(mg){return m[mg.getUTCDay()]}function gv(mg){return Z[mg.getUTCMonth()]}function k_(mg){return L[mg.getUTCMonth()]}function Ub(mg){return u[+(mg.getUTCHours()>=12)]}function TI(mg){return 1+~~(mg.getUTCMonth()/3)}return{format:function(mg){var Xm=fa(mg+="",xo);return Xm.toString=function(){return mg},Xm},parse:function(mg){var Xm=Za(mg+="",!1);return Xm.toString=function(){return mg},Xm},utcFormat:function(mg){var Xm=fa(mg+="",Ds);return Xm.toString=function(){return mg},Xm},utcParse:function(mg){var Xm=Za(mg+="",!0);return Xm.toString=function(){return mg},Xm}}}var Iw={"-":"",_:" ",0:"0"},Vy=/^\s*\d+/,D6=/^%/,hA=/[\\^$*+?|[\]().{}]/g;function iv(o,d,l){var c=o<0?"-":"",u=(c?-o:o)+"",m=u.length;return c+(m68?1900:2e3),l+c[0].length):-1}function oP(o,d,l){var c=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(d.slice(l,l+6));return c?(o.Z=c[1]?0:-(c[2]+(c[3]||"00")),l+c[0].length):-1}function wZ(o,d,l){var c=Vy.exec(d.slice(l,l+1));return c?(o.q=c[0]*3-3,l+c[0].length):-1}function CZ(o,d,l){var c=Vy.exec(d.slice(l,l+2));return c?(o.m=c[0]-1,l+c[0].length):-1}function p5(o,d,l){var c=Vy.exec(d.slice(l,l+2));return c?(o.d=+c[0],l+c[0].length):-1}function SZ(o,d,l){var c=Vy.exec(d.slice(l,l+3));return c?(o.m=0,o.d=+c[0],l+c[0].length):-1}function JB(o,d,l){var c=Vy.exec(d.slice(l,l+2));return c?(o.H=+c[0],l+c[0].length):-1}function EZ(o,d,l){var c=Vy.exec(d.slice(l,l+2));return c?(o.M=+c[0],l+c[0].length):-1}function TZ(o,d,l){var c=Vy.exec(d.slice(l,l+2));return c?(o.S=+c[0],l+c[0].length):-1}function iE(o,d,l){var c=Vy.exec(d.slice(l,l+3));return c?(o.L=+c[0],l+c[0].length):-1}function QB(o,d,l){var c=Vy.exec(d.slice(l,l+6));return c?(o.L=Math.floor(c[0]/1e3),l+c[0].length):-1}function sP(o,d,l){var c=D6.exec(d.slice(l,l+1));return c?l+c[0].length:-1}function Db(o,d,l){var c=Vy.exec(d.slice(l));return c?(o.Q=+c[0],l+c[0].length):-1}function Lw(o,d,l){var c=Vy.exec(d.slice(l));return c?(o.s=+c[0],l+c[0].length):-1}function e9(o,d){return iv(o.getDate(),d,2)}function AZ(o,d){return iv(o.getHours(),d,2)}function DZ(o,d){return iv(o.getHours()%12||12,d,2)}function g5(o,d){return iv(1+C6.count($C(o),o),d,3)}function fA(o,d){return iv(o.getMilliseconds(),d,3)}function IZ(o,d){return fA(o,d)+"000"}function PZ(o,d){return iv(o.getMonth()+1,d,2)}function L6(o,d){return iv(o.getMinutes(),d,2)}function J_(o,d){return iv(o.getSeconds(),d,2)}function t9(o){var d=o.getDay();return d===0?7:d}function m5(o,d){return iv(u5.count($C(o)-1,o),d,2)}function n9(o){var d=o.getDay();return d>=4||d===0?ND(o):ND.ceil(o)}function k1(o,d){return o=n9(o),iv(ND.count($C(o),o)+($C(o).getDay()===4),d,2)}function LZ(o){return o.getDay()}function oE(o,d){return iv(nP.count($C(o)-1,o),d,2)}function M6(o,d){return iv(o.getFullYear()%100,d,2)}function Mw(o,d){return o=n9(o),iv(o.getFullYear()%100,d,2)}function R6(o,d){return iv(o.getFullYear()%1e4,d,4)}function aP(o,d){var l=o.getDay();return o=l>=4||l===0?ND(o):ND.ceil(o),iv(o.getFullYear()%1e4,d,4)}function MZ(o){var d=o.getTimezoneOffset();return(d>0?"-":(d*=-1,"+"))+iv(d/60|0,"0",2)+iv(d%60,"0",2)}function lP(o,d){return iv(o.getUTCDate(),d,2)}function RZ(o,d){return iv(o.getUTCHours(),d,2)}function kZ(o,d){return iv(o.getUTCHours()%12||12,d,2)}function OZ(o,d){return iv(1+f5.count(WC(o),o),d,3)}function r9(o,d){return iv(o.getUTCMilliseconds(),d,3)}function i9(o,d){return r9(o,d)+"000"}function NZ(o,d){return iv(o.getUTCMonth()+1,d,2)}function FZ(o,d){return iv(o.getUTCMinutes(),d,2)}function BZ(o,d){return iv(o.getUTCSeconds(),d,2)}function zZ(o){var d=o.getUTCDay();return d===0?7:d}function UZ(o,d){return iv(d5.count(WC(o)-1,o),d,2)}function o9(o){var d=o.getUTCDay();return d>=4||d===0?VC(o):VC.ceil(o)}function $D(o,d){return o=o9(o),iv(VC.count(WC(o),o)+(WC(o).getUTCDay()===4),d,2)}function s9(o){return o.getUTCDay()}function a9(o,d){return iv(BD.count(WC(o)-1,o),d,2)}function Rw(o,d){return iv(o.getUTCFullYear()%100,d,2)}function v5(o,d){return o=o9(o),iv(o.getUTCFullYear()%100,d,2)}function l9(o,d){return iv(o.getUTCFullYear()%1e4,d,4)}function $Z(o,d){var l=o.getUTCDay();return o=l>=4||l===0?VC(o):VC.ceil(o),iv(o.getUTCFullYear()%1e4,d,4)}function u9(){return"+0000"}function c9(){return"%"}function d9(o){return+o}function ZC(o){return Math.floor(+o/1e3)}var sE,aE,VZ,D_,Xx;VD({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 VD(o){return sE=bZ(o),aE=sE.format,VZ=sE.parse,D_=sE.utcFormat,Xx=sE.utcParse,sE}var uP=1e3,pA=uP*60,jD=pA*60,gA=jD*24,Ay=gA*7,h9=gA*30,HC=gA*365;function k6(o){return new Date(o)}function jZ(o){return o instanceof Date?+o:+new Date(+o)}function cP(o,d,l,c,u,m,E,L,Z){var ne=sA(A_,A_),xe=ne.invert,Oe=ne.domain,wt=Z(".%L"),Bt=Z(":%S"),wn=Z("%I:%M"),Rn=Z("%I %p"),Pr=Z("%a %d"),ui=Z("%b %d"),oo=Z("%B"),xo=Z("%Y"),Ds=[[E,1,uP],[E,5,5*uP],[E,15,15*uP],[E,30,30*uP],[m,1,pA],[m,5,5*pA],[m,15,15*pA],[m,30,30*pA],[u,1,jD],[u,3,3*jD],[u,6,6*jD],[u,12,12*jD],[c,1,gA],[c,2,2*gA],[l,1,Ay],[d,1,h9],[d,3,3*h9],[o,1,HC]];function aa(Za){return(E(Za)2){var Oe=ne.scale.ticks(E.values.length);ne.scale.domain(Oe)}E.values?ne.scale.range(E.values):ne.scale.range(ne.option.domain);break;case B0.QUANTILE:case B0.QUANTIZE:case B0.THRESHOLD:ne.scale.range(E.values);break;case B0.IDENTITY:break;case B0.CAT:E.values?ne.scale.range(E.values):ne.scale.range(ne.option.domain);break;case B0.DIVERGING:case B0.SEQUENTIAL:ne.scale.interpolator(J4(E.values));break}}if(E.values==="text"){var wt;ne.scale.range((wt=ne.option)===null||wt===void 0?void 0:wt.domain)}})):(E.type=zx.CONSTANT,E.defaultValues=Z.map(function(ne,xe){return ne.scale(E.names[xe])})),E.scalers=Z.map(function(ne){return{field:ne.field,func:ne.scale,option:ne.option}}),m.needRescale=!1}})}},{key:"parseFields",value:function(l){return Array.isArray(l)?l:dP(l)?l.split("*"):[l]}},{key:"createScale",value:function(l,c,u,m){var E,L,Z=this.scaleOptions[c]&&((E=this.scaleOptions[c])===null||E===void 0?void 0:E.field)===l?this.scaleOptions[c]:this.scaleOptions[l],ne={field:l,scale:void 0,type:zx.VARIABLE,option:Z};if(!m||!m.length)return Z&&Z.type?ne.scale=this.createDefaultScale(Z):(ne.scale=ZM([l]),ne.type=zx.CONSTANT),ne;var xe=(L=m.find(function(Bt){return!F6(Bt[l])}))===null||L===void 0?void 0:L[l];if(this.isNumber(l)||F6(xe)&&!Z)ne.scale=ZM([l]),ne.type=zx.CONSTANT;else{var Oe=Z&&Z.type||this.getDefaultType(xe);u==="text"&&(Oe=B0.CAT),u===void 0&&(Oe=B0.IDENTITY);var wt=this.createScaleConfig(Oe,l,Z,m);ne.scale=this.createDefaultScale(wt),ne.option=wt}return ne}},{key:"getDefaultType",value:function(l){var c=B0.LINEAR;return typeof l=="string"&&(c=KZ.test(l)?B0.TIME:B0.CAT),c}},{key:"createScaleConfig",value:function(l,c,u,m){var E={type:l},L=(m==null?void 0:m.map(function(xe){return xe[c]}))||[];if(u!=null&&u.domain)E.domain=u==null?void 0:u.domain;else if(l===B0.CAT||l===B0.IDENTITY)E.domain=GZ(L);else if(l===B0.QUANTILE)E.domain=L;else if(l===B0.DIVERGING){var Z=(0,X1.We)(L),ne=(u==null?void 0:u.neutral)!==void 0?u==null?void 0:u.neutral:(Z[0]+Z[1])/2;E.domain=[Z[0],ne,Z[1]]}else E.domain=(0,X1.We)(L);return(0,ze.Z)((0,ze.Z)({},E),u)}},{key:"createDefaultScale",value:function(l){var c=l.type,u=l.domain,m=l.unknown,E=l.clamp,L=l.nice,Z=B6[c]();return u&&Z.domain&&Z.domain(u),m&&Z.unknown(m),E!==void 0&&Z.clamp&&Z.clamp(E),L!==void 0&&Z.nice&&Z.nice(L),Z}}]),o}())||m9),y9,_9,XZ=(y9=(0,ts.b2)(),y9(_9=function(){function o(){(0,Ct.Z)(this,o)}return(0,nt.Z)(o,[{key:"apply",value:function(l){l.hooks.beforeRender.tap("LayerAnimateStylePlugin",function(){var c=l.animateStatus;c&&l.models.forEach(function(u){u.addUniforms((0,ze.Z)({},l.layerModel.getAnimateUniforms()))})})}}]),o}())||_9),b9,hP,z6=(b9=(0,ts.b2)(),b9(hP=function(){function o(){(0,Ct.Z)(this,o)}return(0,nt.Z)(o,[{key:"apply",value:function(l){l.hooks.afterInit.tap("LayerMaskPlugin",function(){var c=l.getLayerConfig(),u=c.maskLayers,m=c.enableMask;if(!l.tileLayer&&u&&u.length>0){var E;(E=l.masks).push.apply(E,(0,_n.Z)(u)),l.updateLayerConfig({mask:m})}})}}]),o}())||hP),YZ=function(){function o(d){var l=d.rendererService,c=d.layerService,u=d.parent;(0,Ct.Z)(this,o),(0,Tn.Z)(this,"tileResource",new Map),(0,Tn.Z)(this,"layerTiles",[]),this.rendererService=l,this.layerService=c,this.parent=u}return(0,nt.Z)(o,[{key:"tiles",get:function(){return this.layerTiles}},{key:"hasTile",value:function(l){return this.layerTiles.some(function(c){return c.key===l})}},{key:"addTile",value:function(l){this.layerTiles.push(l)}},{key:"getTile",value:function(l){return this.layerTiles.find(function(c){return c.key===l})}},{key:"getVisibleTileBylngLat",value:function(l){return this.layerTiles.find(function(c){return c.isLoaded&&c.visible&&c.lnglatInBounds(l)})}},{key:"removeTile",value:function(l){var c=this.layerTiles.findIndex(function(m){return m.key===l}),u=this.layerTiles.splice(c,1);u[0]&&u[0].destroy()}},{key:"updateTileVisible",value:function(l){var c=this.getTile(l.key);if(l.isVisible)if(l.parent){var u=this.isChildrenLoaded(l.parent);c==null||c.updateVisible(u)}else c==null||c.updateVisible(!0);else if(l.parent){var m=this.isChildrenLoaded(l.parent);c==null||c.updateVisible(!m)}else c==null||c.updateVisible(!1)}},{key:"isParentLoaded",value:function(l){var c=l.parent;if(!c)return!0;var u=this.getTile(c==null?void 0:c.key);return!!(u!=null&&u.isLoaded)}},{key:"isChildrenLoaded",value:function(l){var c=this,u=l==null?void 0:l.children;return u.length===0?!0:u.every(function(m){var E=c.getTile(m==null?void 0:m.key);return E?(E==null?void 0:E.isLoaded)===!0:!0})}},{key:"render",value:function(){var d=(0,Pl.Z)(Fi().mark(function c(){var u=this,m,E;return Fi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return m=this.getRenderLayers(),E=m.map(function(){var ne=(0,Pl.Z)(Fi().mark(function xe(Oe){return Fi().wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return Bt.next=2,u.layerService.renderTileLayer(Oe);case 2:case"end":return Bt.stop()}},xe)}));return function(xe){return ne.apply(this,arguments)}}()),Z.next=4,Promise.all(E);case 4:case"end":return Z.stop()}},c,this)}));function l(){return d.apply(this,arguments)}return l}()},{key:"getRenderLayers",value:function(){var l=this.layerTiles.filter(function(u){return u.visible&&u.isLoaded}),c=[];return l.map(function(u){return c.push.apply(c,(0,_n.Z)(u.getLayers()))}),c}},{key:"getLayers",value:function(){var l=this.layerTiles.filter(function(u){return u.isLoaded}),c=[];return l.map(function(u){return c.push.apply(c,(0,_n.Z)(u.getLayers()))}),c}},{key:"getTiles",value:function(){return this.layerTiles}},{key:"destroy",value:function(){this.layerTiles.forEach(function(l){return l.destroy()}),this.tileResource.clear()}}]),o}(),qZ=_(35486),w5=function(){function o(){(0,Ct.Z)(this,o)}return(0,nt.Z)(o,[{key:"getCombineFeature",value:function(l){var c=null,u=l[0];return l.map(function(m){var E=Wc.polygon(m.coordinates);c===null?c=E:c=(0,qZ.Z)(c,E)}),u&&(c.properties=(0,ze.Z)({},u)),c}}]),o}(),fP="select",pP="active",JZ=function(){function o(d){var l=d.layerService,c=d.tileLayerService,u=d.parent;(0,Ct.Z)(this,o),(0,Tn.Z)(this,"tilePickID",new Map),this.layerService=l,this.tileLayerService=c,this.parent=u,this.tileSourceService=new w5}return(0,nt.Z)(o,[{key:"pickRender",value:function(l){var c=this.tileLayerService.getVisibleTileBylngLat(l.lngLat);if(c){var u=c.getMainLayer();u==null||u.layerPickService.pickRender(l)}}},{key:"pick",value:function(l,c){var u=this.parent.getContainer(),m=u.get(Ls.IPickingService);if(l.type==="RasterLayer"){var E=this.tileLayerService.getVisibleTileBylngLat(c.lngLat);if(E&&E.getMainLayer()!==void 0){var L=E.getMainLayer();return L.layerPickService.pickRasterLayer(L,c,this.parent)}return!1}return this.pickRender(c),m.pickFromPickingFBO(l,c)}},{key:"selectFeature",value:function(l){var c=(0,Br.Z)(l,3),u=c[0],m=c[1],E=c[2],L=this.color2PickId(u,m,E);this.tilePickID.set(fP,L),this.updateHighLight(u,m,E,fP)}},{key:"highlightPickedFeature",value:function(l){var c=(0,Br.Z)(l,3),u=c[0],m=c[1],E=c[2],L=this.color2PickId(u,m,E);this.tilePickID.set(pP,L),this.updateHighLight(u,m,E,pP)}},{key:"updateHighLight",value:function(l,c,u,m){this.tileLayerService.tiles.map(function(E){var L=E.getMainLayer();switch(m){case fP:L==null||L.hooks.beforeSelect.call([l,c,u]);break;case pP:L==null||L.hooks.beforeHighlight.call([l,c,u]);break}})}},{key:"setPickState",value:function(){var l=this.tilePickID.get(fP),c=this.tilePickID.get(pP);if(l){var u=this.pickId2Color(l),m=(0,Br.Z)(u,3),E=m[0],L=m[1],Z=m[2];this.updateHighLight(E,L,Z,fP);return}if(c){var ne=this.pickId2Color(c),xe=(0,Br.Z)(ne,3),Oe=xe[0],wt=xe[1],Bt=xe[2];this.updateHighLight(Oe,wt,Bt,pP);return}}},{key:"color2PickId",value:function(l,c,u){return Bi(new Uint8Array([l,c,u]))}},{key:"pickId2Color",value:function(l){return zr(l)}},{key:"getFeatureById",value:function(l){var c=this.tileLayerService.getTiles().filter(function(m){return m.visible}),u=[];return c.forEach(function(m){u.push.apply(u,(0,_n.Z)(m.getFeatureById(l)))}),u}},{key:"pickRasterLayer",value:function(l,c,u){return!1}}]),o}();function C5(o){return o==="PolygonLayer"?jx:o==="LineLayer"?KS:Sw}function QZ(o){return["PolygonLayer","LineLayer"].indexOf(o)!==-1}function eH(o){var d=dx();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function dx(){if(typeof Reflect=="undefined"||!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(o){return!1}}var B2=function(o){(0,lt.Z)(l,o);var d=eH(l);function l(c,u){var m;return(0,Ct.Z)(this,l),m=d.call(this),(0,Tn.Z)((0,ms.Z)(m),"visible",!0),(0,Tn.Z)((0,ms.Z)(m),"layers",[]),(0,Tn.Z)((0,ms.Z)(m),"isLoaded",!1),(0,Tn.Z)((0,ms.Z)(m),"tileMaskLayers",[]),m.parent=u,m.sourceTile=c,m.x=c.x,m.y=c.y,m.z=c.z,m.key="".concat(m.x,"_").concat(m.y,"_").concat(m.z),m}return(0,nt.Z)(l,[{key:"getLayers",value:function(){return this.layers}},{key:"styleUpdate",value:function(){}},{key:"lnglatInBounds",value:function(u){var m=(0,Br.Z)(this.sourceTile.bounds,4),E=m[0],L=m[1],Z=m[2],ne=m[3],xe=u.lng,Oe=u.lat;return xe>=E&&xe<=Z&&Oe>=L&&Oe<=ne}},{key:"getLayerOptions",value:function(){var u,m=this.parent.getLayerConfig();return(0,ze.Z)((0,ze.Z)({},m),{},{textAllowOverlap:!0,autoFit:!1,maskLayers:this.getMaskLayer(),tileMask:QZ(this.parent.type),mask:m.mask||((u=m.maskLayers)===null||u===void 0?void 0:u.length)!==0&&m.enableMask})}},{key:"getMaskLayer",value:function(){var u=this,m=this.parent.getLayerConfig(),E=m.maskLayers,L=[];return E==null||E.forEach(function(Z){if(!Z.tileLayer)return L.push(Z),Z;var ne=Z.tileLayer,xe=ne.getTile(u.sourceTile.key),Oe=xe==null?void 0:xe.getLayers()[0];Oe&&L.push(Oe)}),L}},{key:"addTileMask",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E,L,Z;return Fi().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return E=new jx({visible:!1,enablePicking:!1}).source({type:"FeatureCollection",features:[this.sourceTile.bboxPolygon]},{parser:{type:"geojson",featureId:"id"}}).shape("fill").style({opacity:.5}),L=Fx(this.parent.sceneContainer),E.setContainer(L,this.parent.sceneContainer),xe.next=5,E.init();case 5:return this.tileMask=E,Z=this.getMainLayer(),Z!==void 0&&(Z.tileMask=E),xe.abrupt("return",E);case 9:case"end":return xe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"addMask",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(E,L){var Z;return Fi().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return Z=Fx(this.parent.sceneContainer),L.setContainer(Z,this.parent.sceneContainer),xe.next=4,L.init();case 4:E.addMask(L),this.tileMaskLayers.push(L);case 6:case"end":return xe.stop()}},m,this)}));function u(m,E){return c.apply(this,arguments)}return u}()},{key:"addLayer",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(E){var L;return Fi().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return E.isTileLayer=!0,L=Fx(this.parent.sceneContainer),E.setContainer(L,this.parent.sceneContainer),this.layers.push(E),ne.next=6,E.init();case 6:case"end":return ne.stop()}},m,this)}));function u(m){return c.apply(this,arguments)}return u}()},{key:"updateVisible",value:function(u){this.visible=u,this.updateOptions("visible",u)}},{key:"updateOptions",value:function(u,m){this.layers.forEach(function(E){E.updateLayerConfig((0,Tn.Z)({},u,m))})}},{key:"getMainLayer",value:function(){return this.layers[0]}},{key:"getFeatures",value:function(u){return[]}},{key:"getFeatureById",value:function(u){return[]}},{key:"destroy",value:function(){var u;(u=this.tileMask)===null||u===void 0||u.destroy(),this.layers.forEach(function(m){return m.destroy()})}}]),l}(uc.EventEmitter);function x9(o){var d=tH();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function tH(){if(typeof Reflect=="undefined"||!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(o){return!1}}var U6=function(o){(0,lt.Z)(l,o);var d=x9(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E,L,Z,ne;return Fi().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return E=this.getSourceOption(),L=E.data.features[0].properties,Z=new KS().source(E.data,E.options).size(1).shape("line").color("red"),ne=new Sw({minZoom:this.z-1,maxZoom:this.z+1,textAllowOverlap:!0}).source([L],{parser:{type:"json",x:"x",y:"y"}}).size(20).color("red").shape(this.key).style({stroke:"#fff",strokeWidth:2}),Oe.next=6,this.addLayer(Z);case 6:return Oe.next=8,this.addLayer(ne);case 8:this.isLoaded=!0;case 9:case"end":return Oe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getSourceOption",value:function(){var u=this.parent.getSource(),m=this.sourceTile.data.layers.testTile.features;return{data:{type:"FeatureCollection",features:m},options:{parser:{type:"geojson"},transforms:u.transforms}}}}]),l}(B2);function Pb(o){var d=gP();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function gP(){if(typeof Reflect=="undefined"||!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(o){return!1}}var nH=function(o){(0,lt.Z)(l,o);var d=Pb(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E,L,Z,ne;return Fi().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return E=this.parent.getLayerAttributeConfig(),L=this.getLayerOptions(),Z=this.getSourceOption(),ne=new HS((0,ze.Z)({},L)).source(Z.data,Z.options),E&&Object.keys(E).forEach(function(wt){var Bt,wn,Rn=wt;ne[Rn]((Bt=E[Rn])===null||Bt===void 0?void 0:Bt.field,(wn=E[Rn])===null||wn===void 0?void 0:wn.values)}),Oe.next=7,this.addLayer(ne);case 7:this.isLoaded=!0;case 8:case"end":return Oe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getSourceOption",value:function(){var u=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:u.transforms}}}}]),l}(B2);function w9(o){var d=C9();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function C9(){if(typeof Reflect=="undefined"||!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(o){return!1}}var rH=function(o){(0,lt.Z)(l,o);var d=w9(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E,L,Z,ne;return Fi().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return E=this.parent.getLayerAttributeConfig(),L=this.getLayerOptions(),Z=this.getSourceOption(),ne=new n6((0,ze.Z)({},L)).source(Z.data,Z.options),E&&Object.keys(E).forEach(function(wt){var Bt,wn,Rn=wt;ne[Rn]((Bt=E[Rn])===null||Bt===void 0?void 0:Bt.field,(wn=E[Rn])===null||wn===void 0?void 0:wn.values)}),Oe.next=7,this.addLayer(ne);case 7:this.isLoaded=!0;case 8:case"end":return Oe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getFeatures",value:function(u){if(!u)return[];var m=this.sourceTile.data;return m.getTileData(u)}},{key:"getSourceOption",value:function(){var u=this.parent.getSource(),m=this.parent.getLayerConfig(),E=m.sourceLayer,L=m.featureId,Z=this.getFeatures(E);return{data:{type:"FeatureCollection",features:Z},options:{parser:{type:"geojson",featureId:L},transforms:u.transforms}}}}]),l}(B2),iH=["rasterData"];function mP(o){var d=S9();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function S9(){if(typeof Reflect=="undefined"||!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(o){return!1}}var E9=function(o){(0,lt.Z)(l,o);var d=mP(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E,L,Z,ne;return Fi().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return E=this.parent.getLayerAttributeConfig(),L=this.getLayerOptions(),Z=this.getSourceOption(),ne=new W4((0,ze.Z)({},L)).source(Z.data,Z.options),E&&Object.keys(E).forEach(function(wt){var Bt,wn,Rn=wt;ne[Rn]((Bt=E[Rn])===null||Bt===void 0?void 0:Bt.field,(wn=E[Rn])===null||wn===void 0?void 0:wn.values)}),Oe.next=7,this.addLayer(ne);case 7:this.isLoaded=!0;case 8:case"end":return Oe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getSourceOption",value:function(){var u=this.parent.getSource(),m=this.sourceTile.data.data,E=m.rasterData,L=(0,dm.Z)(m,iH);return{data:E,options:{parser:(0,ze.Z)({type:"rasterRgb",extent:this.sourceTile.bounds},L),transforms:u.transforms}}}}]),l}(B2);function T9(o){var d=vP();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function vP(){if(typeof Reflect=="undefined"||!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(o){return!1}}var oH=function(o){(0,lt.Z)(l,o);var d=T9(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E,L,Z,ne;return Fi().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return E=this.parent.getLayerAttributeConfig(),L=this.getLayerOptions(),Z=this.getSourceOption(),ne=new W4((0,ze.Z)({},L)).source(Z.data,Z.options),E&&Object.keys(E).forEach(function(wt){var Bt,wn,Rn=wt;ne[Rn]((Bt=E[Rn])===null||Bt===void 0?void 0:Bt.field,(wn=E[Rn])===null||wn===void 0?void 0:wn.values)}),Oe.next=7,this.addLayer(ne);case 7:this.isLoaded=!0;case 8:case"end":return Oe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getSourceOption",value:function(){var u=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:u.transforms}}}}]),l}(B2),sH=["rasterData"];function yP(o){var d=_P();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function _P(){if(typeof Reflect=="undefined"||!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(o){return!1}}var S5={positions:[0,1],colors:["#000","#fff"]},A9=function(o){(0,lt.Z)(l,o);var d=yP(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E,L,Z,ne,xe,Oe,wt;return Fi().wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return E=this.parent.getLayerAttributeConfig(),L=this.getLayerOptions(),Z=this.getSourceOption(),ne=this.getLayerOptions(),xe=ne.rampColors,Oe=ne.domain,this.colorTexture=this.parent.textureService.getColorTexture(xe,Oe),wt=new W4((0,ze.Z)((0,ze.Z)({},L),{},{colorTexture:this.colorTexture})).source(Z.data,Z.options),E&&Object.keys(E).forEach(function(Rn){var Pr,ui,oo=Rn;wt[oo]((Pr=E[oo])===null||Pr===void 0?void 0:Pr.field,(ui=E[oo])===null||ui===void 0?void 0:ui.values)}),wn.next=9,this.addLayer(wt);case 9:this.isLoaded=!0;case 10:case"end":return wn.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getSourceOption",value:function(){var u=this.parent.getSource(),m=this.sourceTile.data.data,E=m.rasterData,L=(0,dm.Z)(m,sH);return{data:E,options:{parser:(0,ze.Z)({type:"raster",extent:this.sourceTile.bounds},L),transforms:u.transforms}}}},{key:"styleUpdate",value:function(){for(var u=this,m=arguments.length,E=new Array(m),L=0;L=2&&!ne&&(l.parent.updateLayerConfig({visible:!0}),l.layerService.reRender())}l.lastViewStates&&l.lastViewStates.zoom===L&&l.lastViewStates.latLonBounds.toString()===E.toString()||(l.lastViewStates={zoom:L,latLonBounds:E},(u=l.tilesetManager)===null||u===void 0||u.throttleUpdate(L,E))}}),(0,Tn.Z)(this,"viewchange",aH(this.mapchange,24)),this.parent=d;var c=this.parent.getContainer();this.rendererService=c.get(Ls.IRendererService),this.layerService=c.get(Ls.ILayerService),this.mapService=c.get(Ls.IMapService),this.pickingService=c.get(Ls.IPickingService),this.tileLayerService=new YZ({rendererService:this.rendererService,layerService:this.layerService,parent:d}),this.tilePickService=new JZ({tileLayerService:this.tileLayerService,layerService:this.layerService,parent:d}),this.parent.setLayerPickService(this.tilePickService),this.proxy(d),this.initTileSetManager()}return(0,nt.Z)(o,[{key:"initTileSetManager",value:function(){var l,c=this.parent.getSource();if(this.tilesetManager=c.tileset,this.initedTileset||(this.bindTilesetEvent(),this.initedTileset=!0),this.parent.isVisible()!==!1){var u=this.getCurrentView(),m=u.latLonBounds,E=u.zoom;(l=this.tilesetManager)===null||l===void 0||l.update(E,m)}}},{key:"getCurrentView",value:function(){var l=this.mapService.getBounds(),c=[l[0][0],l[0][1],l[1][0],l[1][1]],u=this.mapService.getZoom();return{latLonBounds:c,zoom:u}}},{key:"bindTilesetEvent",value:function(){var l=this;this.tilesetManager.on("tile-loaded",function(c){}),this.tilesetManager.on("tile-unload",function(c){l.tileUnLoad(c)}),this.tilesetManager.on("tile-error",function(c,u){l.tileError(c)}),this.tilesetManager.on("tile-update",function(){l.tileUpdate()}),this.mapService.on("zoomend",this.mapchange),this.mapService.on("moveend",this.viewchange)}},{key:"render",value:function(){this.tileLayerService.render()}},{key:"getLayers",value:function(){return this.tileLayerService.getLayers()}},{key:"getTiles",value:function(){return this.tileLayerService.getTiles()}},{key:"getTile",value:function(l){return this.tileLayerService.getTile(l)}},{key:"tileLoaded",value:function(l){}},{key:"tileError",value:function(l){console.warn("error:",l)}},{key:"destroy",value:function(){var l;this.mapService.off("zoomend",this.mapchange),this.mapService.off("moveend",this.viewchange),(l=this.tilesetManager)===null||l===void 0||l.destroy(),this.tileLayerService.destroy()}},{key:"reload",value:function(){var l;this.tilesetManager.clear();var c=this.getCurrentView(),u=c.latLonBounds,m=c.zoom;(l=this.tilesetManager)===null||l===void 0||l.update(m,u)}},{key:"tileUnLoad",value:function(l){this.tileLayerService.removeTile(l.key)}},{key:"tileUpdate",value:function(){var d=(0,Pl.Z)(Fi().mark(function c(){var u=this,m,E;return Fi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(this.tilesetManager){Z.next=2;break}return Z.abrupt("return");case 2:return m=this.parent.getMinZoom(),E=this.parent.getMaxZoom(),Z.next=6,Promise.all(this.tilesetManager.tiles.filter(function(ne){return ne.isLoaded}).filter(function(ne){return ne.isVisibleChange}).filter(function(ne){return ne.data}).filter(function(ne){return ne.z>=m&&ne.z=-90&&u<=90,"invalid latitude"),d*=k5;var m=c*Lb,E=u*Lb,L=d*(m+z2)/(2*z2),Z=d*(z2-Math.log(Math.tan(Y9+E*.5)))/(2*z2);return[L,Z]}function H6(o,d){var l=(0,Br.Z)(o,2),c=l[0],u=l[1];d*=k5;var m=c/d*(2*z2)-z2,E=2*(Math.atan(Math.exp(z2-u/d*(2*z2)))-Y9);return[m*HD,E*HD]}function bH(o){var d=o.latitude;assert(Number.isFinite(d));var l=Math.cos(d*Lb);return q9(Z6*l)-9}function J9(o){var d=o.latitude,l=o.longitude,c=o.zoom,u=o.scale,m=o.highPrecision,E=m===void 0?!1:m;u=u!==void 0?u:GD(c),xA(Number.isFinite(d)&&Number.isFinite(l)&&Number.isFinite(u));var L={},Z=k5*u,ne=Math.cos(d*Lb),xe=Z/360,Oe=xe/ne,wt=Z/Z6/ne;if(L.pixelsPerMeter=[wt,-wt,wt],L.metersPerPixel=[1/wt,-1/wt,1/wt],L.pixelsPerDegree=[xe,-Oe,wt],L.degreesPerPixel=[1/xe,-1/Oe,1/wt],E){var Bt=Lb*Math.tan(d*Lb)/ne,wn=xe*Bt/2,Rn=Z/Z6*Bt,Pr=Rn/Oe*wt;L.pixelsPerDegree2=[0,-wn,Rn],L.pixelsPerMeter2=[Pr,0,Pr]}return L}function EQ(o,d){var l=_slicedToArray(o,3),c=l[0],u=l[1],m=l[2],E=_slicedToArray(d,3),L=E[0],Z=E[1],ne=E[2],xe=1,Oe=J9({longitude:c,latitude:u,scale:xe,highPrecision:!0}),wt=Oe.pixelsPerMeter,Bt=Oe.pixelsPerMeter2,wn=lE(o,xe);wn[0]+=L*(wt[0]+Bt[0]*Z),wn[1]+=Z*(wt[1]+Bt[1]*Z);var Rn=H6(wn,xe),Pr=(m||0)+(ne||0);return Number.isFinite(m)||Number.isFinite(ne)?[Rn[0],Rn[1],Pr]:Rn}function Q9(o){var d=o.height,l=o.pitch,c=o.bearing,u=o.altitude,m=o.center,E=m===void 0?null:m,L=o.flipY,Z=L===void 0?!1:L,ne=DP();return S0(ne,ne,[0,0,-u]),sf(ne,ne,[1,1,1/d]),mm(ne,ne,-l*Lb),l0(ne,ne,c*Lb),Z&&sf(ne,ne,[1,-1,1]),E&&S0(ne,ne,e7([],E)),ne}function xH(o){var d=o.width,l=o.height,c=o.altitude,u=c===void 0?_H:c,m=o.pitch,E=m===void 0?0:m,L=o.nearZMultiplier,Z=L===void 0?1:L,ne=o.farZMultiplier,xe=ne===void 0?1:ne,Oe=E*Lb,wt=Math.atan(.5/u),Bt=Math.sin(wt)*u/Math.sin(Math.PI/2-Oe-wt),wn=Math.cos(Math.PI/2-Oe)*Bt+u;return{fov:2*Math.atan(l/2/u),aspect:d/l,focalDistance:u,near:Z,far:wn*xe}}function wH(o){var d=o.width,l=o.height,c=o.pitch,u=o.altitude,m=o.nearZMultiplier,E=o.farZMultiplier,L=xH({width:d,height:l,altitude:u,pitch:c,nearZMultiplier:m,farZMultiplier:E}),Z=L.fov,ne=L.aspect,xe=L.near,Oe=L.far,wt=br([],Z,ne,xe,Oe);return wt}function IP(o,d){var l=(0,Br.Z)(o,3),c=l[0],u=l[1],m=l[2],E=m===void 0?0:m;return xA(Number.isFinite(c)&&Number.isFinite(u)&&Number.isFinite(E)),R5(d,[c,u,E,1])}function ez(o,d){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,c=(0,Br.Z)(o,3),u=c[0],m=c[1],E=c[2];if(xA(Number.isFinite(u)&&Number.isFinite(m),"invalid pixel coordinate"),Number.isFinite(E)){var L=R5(d,[u,m,E,1]);return L}var Z=R5(d,[u,m,0,1]),ne=R5(d,[u,m,1,1]),xe=Z[2],Oe=ne[2],wt=xe===Oe?0:((l||0)-xe)/(Oe-xe);return Vm([],Z,ne,wt)}var KD=DP(),CH=function(){function o(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=d.width,c=d.height,u=d.viewMatrix,m=u===void 0?KD:u,E=d.projectionMatrix,L=E===void 0?KD:E;(0,Ct.Z)(this,o),this.width=l||1,this.height=c||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=m,this.projectionMatrix=L;var Z=DP();Nf(Z,Z,this.projectionMatrix),Nf(Z,Z,this.viewMatrix),this.viewProjectionMatrix=Z;var ne=DP();sf(ne,ne,[this.width/2,-this.height/2,1]),S0(ne,ne,[1,-1,0]),Nf(ne,ne,this.viewProjectionMatrix);var xe=Nv(DP(),ne);if(!xe)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=ne,this.pixelUnprojectionMatrix=xe,this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return(0,nt.Z)(o,[{key:"equals",value:function(l){return l instanceof o?l.width===this.width&&l.height===this.height&&wu(l.projectionMatrix,this.projectionMatrix)&&wu(l.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=c.topLeft,m=u===void 0?!0:u,E=this.projectPosition(l),L=IP(E,this.pixelProjectionMatrix),Z=(0,Br.Z)(L,2),ne=Z[0],xe=Z[1],Oe=m?xe:this.height-xe;return l.length===2?[ne,Oe]:[ne,Oe,L[2]]}},{key:"unproject",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=c.topLeft,m=u===void 0?!0:u,E=c.targetZ,L=(0,Br.Z)(l,3),Z=L[0],ne=L[1],xe=L[2],Oe=m?ne:this.height-ne,wt=E&&E*this.pixelsPerMeter,Bt=ez([Z,Oe,xe],this.pixelUnprojectionMatrix,wt),wn=this.unprojectPosition(Bt),Rn=(0,Br.Z)(wn,3),Pr=Rn[0],ui=Rn[1],oo=Rn[2];return Number.isFinite(xe)?[Pr,ui,oo]:Number.isFinite(E)?[Pr,ui,E]:[Pr,ui]}},{key:"projectPosition",value:function(l){var c=this.projectFlat(l),u=(0,Br.Z)(c,2),m=u[0],E=u[1],L=(l[2]||0)*this.pixelsPerMeter;return[m,E,L]}},{key:"unprojectPosition",value:function(l){var c=this.unprojectFlat(l),u=(0,Br.Z)(c,2),m=u[0],E=u[1],L=(l[2]||0)/this.pixelsPerMeter;return[m,E,L]}},{key:"projectFlat",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return l}},{key:"unprojectFlat",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return l}}]),o}();function SH(o){var d=o.width,l=o.height,c=o.bounds,u=o.minExtent,m=u===void 0?0:u,E=o.maxZoom,L=E===void 0?24:E,Z=o.padding,ne=Z===void 0?0:Z,xe=o.offset,Oe=xe===void 0?[0,0]:xe,wt=(0,Br.Z)(c,2),Bt=(0,Br.Z)(wt[0],2),wn=Bt[0],Rn=Bt[1],Pr=(0,Br.Z)(wt[1],2),ui=Pr[0],oo=Pr[1];if(Number.isFinite(ne)){var xo=ne;ne={top:xo,bottom:xo,left:xo,right:xo}}else xA(Number.isFinite(ne.top)&&Number.isFinite(ne.bottom)&&Number.isFinite(ne.left)&&Number.isFinite(ne.right));var Ds=new G6({width:d,height:l,longitude:0,latitude:0,zoom:0}),aa=Ds.project([wn,oo]),fa=Ds.project([ui,Rn]),Za=[Math.max(Math.abs(fa[0]-aa[0]),m),Math.max(Math.abs(fa[1]-aa[1]),m)],gl=[d-ne.left-ne.right-Math.abs(Oe[0])*2,l-ne.top-ne.bottom-Math.abs(Oe[1])*2];xA(gl[0]>0&&gl[1]>0);var tu=gl[0]/Za[0],ku=gl[1]/Za[1],ju=(ne.right-ne.left)/2/tu,Xc=(ne.bottom-ne.top)/2/ku,Pd=[(fa[0]+aa[0])/2+ju,(fa[1]+aa[1])/2+Xc],Lh=Ds.unproject(Pd),fg=Ds.zoom+Math.log2(Math.abs(Math.min(tu,ku)));return{longitude:Lh[0],latitude:Lh[1],zoom:Math.min(fg,L)}}var G6=function(o){(0,lt.Z)(d,o);function d(){var l,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=c.width,m=c.height,E=c.latitude,L=E===void 0?0:E,Z=c.longitude,ne=Z===void 0?0:Z,xe=c.zoom,Oe=xe===void 0?0:xe,wt=c.pitch,Bt=wt===void 0?0:wt,wn=c.bearing,Rn=wn===void 0?0:wn,Pr=c.altitude,ui=Pr===void 0?1.5:Pr,oo=c.nearZMultiplier,xo=c.farZMultiplier;(0,Ct.Z)(this,d),u=u||1,m=m||1;var Ds=GD(Oe);ui=Math.max(.75,ui);var aa=lE([ne,L],Ds);aa[2]=0;var fa=wH({width:u,height:m,pitch:Bt,bearing:Rn,altitude:ui,nearZMultiplier:oo||1/m,farZMultiplier:xo||1.01}),Za=Q9({height:m,center:aa,pitch:Bt,bearing:Rn,altitude:ui,flipY:!0});return l=(0,Gt.Z)(this,(0,Rt.Z)(d).call(this,{width:u,height:m,viewMatrix:Za,projectionMatrix:fa})),l.latitude=L,l.longitude=ne,l.zoom=Oe,l.pitch=Bt,l.bearing=Rn,l.altitude=ui,l.scale=Ds,l.center=aa,l.pixelsPerMeter=J9((0,ms.Z)((0,ms.Z)(l))).pixelsPerMeter[2],Object.freeze((0,ms.Z)((0,ms.Z)(l))),l}return(0,nt.Z)(d,[{key:"projectFlat",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return lE(c,u)}},{key:"unprojectFlat",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return H6(c,u)}},{key:"getMapCenterByLngLatPosition",value:function(c){var u=c.lngLat,m=c.pos,E=ez(m,this.pixelUnprojectionMatrix),L=lE(u,this.scale),Z=Gf([],L,Jg([],E)),ne=Gf([],this.center,Z);return H6(ne,this.scale)}},{key:"getLocationAtPoint",value:function(c){var u=c.lngLat,m=c.pos;return this.getMapCenterByLngLatPosition({lngLat:u,pos:m})}},{key:"fitBounds",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=this.width,E=this.height,L=SH(Object.assign({width:m,height:E,bounds:c},u)),Z=L.longitude,ne=L.latitude,xe=L.zoom;return new d({width:m,height:E,longitude:Z,latitude:ne,zoom:xe})}}]),d}(CH),KC=function(){function o(){(0,Ct.Z)(this,o)}return(0,nt.Z)(o,[{key:"syncWithMapCamera",value:function(l){var c=l.center,u=l.zoom,m=l.pitch,E=l.bearing,L=l.viewportHeight,Z=l.viewportWidth,ne=this.viewport?{width:this.viewport.width,height:this.viewport.height,longitude:this.viewport.center[0],latitude:this.viewport.center[1],zoom:this.viewport.zoom,pitch:this.viewport.pitch,bearing:this.viewport.bearing}:{};this.viewport=new G6((0,ze.Z)((0,ze.Z)({},ne),{},{width:Z,height:L,longitude:c&&c[0],latitude:c&&c[1],zoom:u,pitch:m,bearing:E}))}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(l,c){return this.viewport.projectFlat(l,c)}}]),o}(),O5=function(){function o(d){(0,Ct.Z)(this,o),(0,Tn.Z)(this,"size",1e4),this.size=d||1e4}return(0,nt.Z)(o,[{key:"setSize",value:function(l){this.size=l}},{key:"getSize",value:function(){return[this.size,this.size]}},{key:"mercatorXfromLng",value:function(l){return(180+l)/360*this.size}},{key:"mercatorYfromLat",value:function(l){return(1-(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+l*Math.PI/360)))/360)*this.size}},{key:"lngFromMercatorX",value:function(l){return l/this.size*360-180}},{key:"latFromMercatorY",value:function(l){var c=180-(1-l/this.size)*360;return 360/Math.PI*Math.atan(Math.exp(c*Math.PI/180))-90}},{key:"project",value:function(l){var c=this.mercatorXfromLng(l[0]),u=this.mercatorYfromLat(l[1]);return[c,u]}},{key:"unproject",value:function(l){var c=this.lngFromMercatorX(l[0]),u=this.latFromMercatorY(l[1]);return[c,u]}}]),o}();function XD(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d={top:0,right:0,bottom:0,left:0};if(typeof o=="number")return{top:o,right:o,bottom:o,left:o};if(Array.isArray(o)){if(o.length===4)return{top:o[0],right:o[1],bottom:o[2],left:o[3]};if(o.length===2)return{top:o[0],right:o[1],bottom:o[0],left:o[1]}}return(0,ze.Z)((0,ze.Z)({},d),o)}var tz={normal:"amap://styles/normal",light:"amap://styles/c422f5c0cfced5be9fe3a83f05f28a68?isPublic=true",dark:"amap://styles/c9f1d10cae34f8ab05e425462c5a58d7?isPublic=true",blank:"amap://styles/07c17002b38775b32a7a76c66cf90e99?isPublic=true",fresh:"amap://styles/fresh",grey:"amap://styles/grey",graffiti:"amap://styles/graffiti",macaron:"amap://styles/macaron",darkblue:"amap://styles/darkblue",wine:"amap://styles/wine"},K6=["id","style","minZoom","maxZoom","token","mapInstance","plugin"],nz,PP,LP,N5,X6,rz,YD,iz,Y6,oz,sz;function az(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}az(`.amap-logo{ +`,$C={0:"#3288bd",.1:"#66c2a5",.2:"#abdda4",.3:"#e6f598",.4:"#fee08b",.5:"#fdae61",.6:"#f46d43",1:"#d53e4f"},c6=function(o){(0,lt.Z)(l,o);var d=mB(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&arguments[0]!==void 0?arguments[0]:{},E=this.layer.getLayerConfig(),M=E.opacity;this.layerService.beforeRenderData(this.layer),this.layer.hooks.beforeRender.call(),this.layerService.renderMask(this.layer.masks),(u=this.colorModel)===null||u===void 0||u.draw({uniforms:{u_opacity:M||1,u_texture:this.texture},blend:this.getBlend(),stencil:this.getStencil(m)}),this.layer.hooks.afterRender.call()}}]),l}(ec),jW={wind:c6},WW=jW;function rA(o){var d=ID();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function ID(){if(typeof Reflect=="undefined"||!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(o){return!1}}var ZW=function(o){(0,lt.Z)(l,o);var d=rA(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&arguments[0]!==void 0?arguments[0]:{};return this.layerModel&&this.layerModel.render(u),this}},{key:"getDefaultConfig",value:function(){var u=this.getModelType(),m={wind:{}};return m[u]}},{key:"getModelType",value:function(){return"wind"}}]),l}(s_),yB,_B,bB,xB,UM,PD,LD,G4=fs.cloneDeep,QS=(yB=(0,Go.b2)(),_B=(0,Go.f3)(Zs.IMapService),bB=(0,Go.f3)(Zs.IFontService),yB(xB=(UM=function(){function o(){(0,wt.Z)(this,o),Uc(this,"mapService",PD,this),Uc(this,"fontService",LD,this)}return(0,nt.Z)(o,[{key:"apply",value:function(l,c){var u=this,m=c.styleAttributeService;l.hooks.init.tapPromise("DataMappingPlugin",(0,Pl.Z)(Oi().mark(function E(){return Oi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:l.log(Uv.MappingStart,Ll.INIT),u.generateMaping(l,{styleAttributeService:m}),l.log(Uv.MappingEnd,Ll.INIT);case 3:case"end":return Z.stop()}},E)}))),l.hooks.beforeRenderData.tapPromise("DataMappingPlugin",function(){var E=(0,Pl.Z)(Oi().mark(function M(Z){var ne;return Oi().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(Z){Oe.next=2;break}return Oe.abrupt("return",Z);case 2:return l.dataState.dataMappingNeedUpdate=!1,l.log(Uv.MappingStart,Ll.UPDATE),ne=u.generateMaping(l,{styleAttributeService:m}),l.log(Uv.MappingEnd,Ll.UPDATE),Oe.abrupt("return",ne);case 7:case"end":return Oe.stop()}},M)}));return function(M){return E.apply(this,arguments)}}()),l.hooks.beforeRender.tap("DataMappingPlugin",function(){var E=l.getSource();if(!(l.layerModelNeedUpdate||!E||!E.inited)){var M=m.getLayerStyleAttributes()||[],Z=m.getLayerStyleAttribute("filter"),ne=E.data.dataArray;if(!(Array.isArray(ne)&&ne.length===0)){var Ce=M.filter(function(Bt){return Bt.needRemapping}),Oe=ne;if(Z!=null&&Z.needRemapping&&Z!==null&&Z!==void 0&&Z.scale&&(Oe=ne.filter(function(Bt){return u.applyAttributeMapping(Z,Bt)[0]})),Ce.length){var Ct=u.mapping(l,Ce,Oe,l.getEncodedData());l.setEncodedData(Ct)}}}})}},{key:"generateMaping",value:function(l,c){var u=this,m=c.styleAttributeService,E=m.getLayerStyleAttributes()||[],M=m.getLayerStyleAttribute("filter"),Z=l.getSource().data.dataArray,ne=Z;M!=null&&M.scale&&(ne=Z.filter(function(Oe){return u.applyAttributeMapping(M,Oe)[0]})),ne=l.processData(ne);var Ce=this.mapping(l,E,ne,void 0);return l.setEncodedData(Ce),Z.length===0&&l.encodeDataLength===0?!1:(l.emit("dataUpdate",null),!0)}},{key:"mapping",value:function(l,c,u,m){var E=this,M=c.filter(function(ne){return ne.scale!==void 0}).filter(function(ne){return ne.name!=="filter"}),Z=u.map(function(ne,Ce){var Oe=m?m[Ce]:{},Ct=(0,Be.Z)({id:ne._id,coordinates:ne.coordinates},Oe);return M.forEach(function(Bt){var An=E.applyAttributeMapping(Bt,ne);(Bt.name==="color"||Bt.name==="stroke")&&(An=An.map(function(kn){return mi(kn)})),Ct[Bt.name]=Array.isArray(An)&&An.length===1?An[0]:An,Bt.name==="shape"&&(Ct.shape=E.fontService.getIconFontKey(Ct[Bt.name]))}),Ct});return c.forEach(function(ne){ne.needRemapping=!1}),this.adjustData2Amap2Coordinates(Z,l),this.adjustData2SimpleCoordinates(Z),Z}},{key:"adjustData2Amap2Coordinates",value:function(l,c){var u=this;if(l.length>0&&this.mapService.version==="GAODE2.x"){var m=c.coordCenter||c.getSource().center;l.filter(function(E){return!E.originCoordinates}).map(function(E){E.version="GAODE2.x",E.originCoordinates=G4(E.coordinates),E.coordinates=u.mapService.coordToAMap2RelativeCoordinates(E.coordinates,m)})}}},{key:"adjustData2SimpleCoordinates",value:function(l){var c=this;l.length>0&&this.mapService.version==="SIMPLE"&&l.map(function(u){u.simpleCoordinate||(u.coordinates=c.unProjectCoordinates(u.coordinates),u.simpleCoordinate=!0)})}},{key:"unProjectCoordinates",value:function(l){var c=this;if(typeof l[0]=="number")return this.mapService.simpleMapCoord.unproject(l);if(l[0]&&l[0][0]instanceof Array){var u=[];return l.map(function(E){var M=[];E.map(function(Z){M.push(c.mapService.simpleMapCoord.unproject(Z))}),u.push(M)}),u}else{var m=[];return l.map(function(E){m.push(c.mapService.simpleMapCoord.unproject(E))}),m}}},{key:"applyAttributeMapping",value:function(l,c){var u;if(!l.scale)return[];var m=(l==null||(u=l.scale)===null||u===void 0?void 0:u.scalers)||[],E=[];m.forEach(function(Z){var ne,Ce=Z.field;(c.hasOwnProperty(Ce)||((ne=l.scale)===null||ne===void 0?void 0:ne.type)==="variable")&&E.push(c[Ce])});var M=l.mapping?l.mapping(E):[];return M}},{key:"getArrowPoints",value:function(l,c){var u=[c[0]-l[0],c[1]-l[1]],m=uc(u),E=[l[0]+m[0]*1e-4,l[1]+m[1]*1e-4];return E}}]),o}(),PD=Fh(UM.prototype,"mapService",[_B],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),LD=Fh(UM.prototype,"fontService",[bB],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),UM))||xB),h6,d6,Gv=(h6=(0,Go.b2)(),h6(d6=function(){function o(){(0,wt.Z)(this,o)}return(0,nt.Z)(o,[{key:"apply",value:function(l){var c=this;this.mapService=l.getContainer().get(Zs.IMapService),l.hooks.init.tapPromise("DataSourcePlugin",(0,Pl.Z)(Oi().mark(function u(){var m,E,M,Z;return Oi().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(l.log(Uv.SourceInitStart,Ll.INIT),m=l.getSource(),m||(E=l.sourceOption||l.defaultSourceConfig,M=E.data,Z=E.options,m=new yw(M,Z),l.setSource(m)),!m.inited){Ce.next=8;break}c.updateClusterData(l),l.log(Uv.SourceInitEnd,Ll.INIT),Ce.next=10;break;case 8:return Ce.next=10,new Promise(function(Oe){m.on("update",function(Ct){Ct.type==="inited"&&(c.updateClusterData(l),l.log(Uv.SourceInitEnd,Ll.INIT)),Oe(null)})});case 10:case"end":return Ce.stop()}},u)}))),l.hooks.beforeRenderData.tapPromise("DataSourcePlugin",(0,Pl.Z)(Oi().mark(function u(){var m,E,M;return Oi().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return m=c.updateClusterData(l),E=l.dataState.dataSourceNeedUpdate,l.dataState.dataSourceNeedUpdate=!1,M=m||E,ne.abrupt("return",M);case 5:case"end":return ne.stop()}},u)})))}},{key:"updateClusterData",value:function(l){if(l.isTileLayer||l.tileLayer||!l.getSource())return!1;var c=l.getSource(),u=c.cluster,m=c.clusterOptions.zoom,E=m===void 0?0:m,M=this.mapService.getZoom()-1,Z=l.dataState.dataSourceNeedUpdate;return u&&Z&&c.updateClusterData(Math.floor(M)),u&&Math.abs(l.clusterZoom-M)>=1?(E!==Math.floor(M)&&c.updateClusterData(Math.floor(M)),l.clusterZoom=M,!0):!1}}]),o}())||d6),X1=y(61272);function K4(o,d,l,c,u){var m=o*o,E=m*o;return((1-3*o+3*m-E)*d+(4-6*m+3*E)*l+(1+3*o+3*m-3*E)*c+E*u)/6}function MD(o){var d=o.length-1;return function(l){var c=l<=0?l=0:l>=1?(l=1,d-1):Math.floor(l*d),u=o[c],m=o[c+1],E=c>0?o[c-1]:2*u-m,M=c180||l<-180?l-360*Math.round(l/360):l):constant(isNaN(o)?d:o)}function Tw(o){return(o=+o)==1?T_:function(d,l){return l-d?f6(d,l,o):cp(isNaN(d)?l:d)}}function T_(o,d){var l=d-o;return l?pm(o,l):cp(isNaN(o)?d:o)}var Y1=function o(d){var l=Tw(d);function c(u,m){var E=l((u=Qn(u)).r,(m=Qn(m)).r),M=l(u.g,m.g),Z=l(u.b,m.b),ne=T_(u.opacity,m.opacity);return function(Ce){return u.r=E(Ce),u.g=M(Ce),u.b=Z(Ce),u.opacity=ne(Ce),u+""}}return c.gamma=o,c}(1);function Kv(o){return function(d){var l=d.length,c=new Array(l),u=new Array(l),m=new Array(l),E,M;for(E=0;E=o.length)return l!=null&&M.sort(l),c!=null?c(M):M;for(var Oe=-1,Ct=M.length,Bt=o[Z++],An,kn,Ir=map(),ui,ao=ne();++Oeo.length)return M;var ne,Ce=d[Z-1];return c!=null&&Z>=o.length?ne=M.entries():(ne=[],M.each(function(Oe,Ct){ne.push({key:Ct,values:E(Oe,Z)})})),Ce!=null?ne.sort(function(Oe,Ct){return Ce(Oe.key,Ct.key)}):ne}return u={object:function(M){return m(M,0,HW,GW)},map:function(M){return m(M,0,CB,Y_)},entries:function(M){return E(m(M,0,CB,Y_),0)},key:function(M){return o.push(M),u},sortKeys:function(M){return d[o.length-1]=M,u},sortValues:function(M){return l=M,u},rollup:function(M){return c=M,u}}}function HW(){return{}}function GW(o,d,l){o[d]=l}function CB(){return map()}function Y_(o,d,l){o.set(d,l)}function VM(){}var oA=v1.prototype;VM.prototype=Aw.prototype={constructor:VM,has:oA.has,add:function(o){return o+="",this[Zx+o]=o,this},remove:oA.remove,clear:oA.clear,values:oA.keys,size:oA.size,empty:oA.empty,each:oA.each};function Aw(o,d){var l=new VM;if(o instanceof VM)o.each(function(m){l.add(m)});else if(o){var c=-1,u=o.length;if(d==null)for(;++cl&&(m=d.slice(l,m),M[E]?M[E]+=m:M[++E]=m),(c=c[0])===(u=u[0])?M[E]?M[E]+=u:M[++E]=u:(M[++E]=null,Z.push({i:E,x:lA(c,u)})),l=p6.lastIndex;return ll&&(c=d,d=l,l=c),function(u){return Math.max(d,Math.min(l,u))}}function sQ(o,d,l){var c=o[0],u=o[1],m=d[0],E=d[1];return u2?aQ:sQ,Z=ne=null,Oe}function Oe(Ct){return isNaN(Ct=+Ct)?m:(Z||(Z=M(o.map(c),d,l)))(c(E(Ct)))}return Oe.invert=function(Ct){return E(u((ne||(ne=M(d,o.map(c),lA)))(Ct)))},Oe.domain=function(Ct){return arguments.length?(o=sA.call(Ct,eZ),E===D_||(E=LB(o)),Ce()):o.slice()},Oe.range=function(Ct){return arguments.length?(d=aA.call(Ct),Ce()):d.slice()},Oe.rangeRound=function(Ct){return d=aA.call(Ct),l=RD,Ce()},Oe.clamp=function(Ct){return arguments.length?(E=Ct?LB(o):D_,Oe):E!==D_},Oe.interpolate=function(Ct){return arguments.length?(l=Ct,Ce()):l},Oe.unknown=function(Ct){return arguments.length?(m=Ct,Oe):m},function(Ct,Bt){return c=Ct,u=Bt,Ce()}}function uA(o,d){return a_()(o,d)}var Sh=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Db(o){if(!(d=Sh.exec(o)))throw new Error("invalid format: "+o);var d;return new Y4({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]})}Db.prototype=Y4.prototype;function Y4(o){this.fill=o.fill===void 0?" ":o.fill+"",this.align=o.align===void 0?">":o.align+"",this.sign=o.sign===void 0?"-":o.sign+"",this.symbol=o.symbol===void 0?"":o.symbol+"",this.zero=!!o.zero,this.width=o.width===void 0?void 0:+o.width,this.comma=!!o.comma,this.precision=o.precision===void 0?void 0:+o.precision,this.trim=!!o.trim,this.type=o.type===void 0?"":o.type+""}Y4.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 ZM(o){return Math.abs(o=Math.round(o))>=1e21?o.toLocaleString("en").replace(/,/g,""):o.toString(10)}function HM(o,d){if((l=(o=d?o.toExponential(d-1):o.toExponential()).indexOf("e"))<0)return null;var l,c=o.slice(0,l);return[c.length>1?c[0]+c.slice(2):c,+o.slice(l+1)]}function VC(o){return o=HM(Math.abs(o)),o?o[1]:NaN}function MB(o,d){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(VC(d)/3)))*3-VC(Math.abs(o)))}function tZ(o,d){return function(l,c){for(var u=l.length,m=[],E=0,M=o[0],Z=0;u>0&&M>0&&(Z+M+1>c&&(M=Math.max(1,c-Z)),m.push(l.substring(u-=M,u+M)),!((Z+=M+1)>c));)M=o[E=(E+1)%o.length];return m.reverse().join(d)}}function nZ(o){return function(d){return d.replace(/[0-9]/g,function(l){return o[+l]})}}function lQ(o){e:for(var d=o.length,l=1,c=-1,u;l0&&(c=0);break}return c>0?o.slice(0,c)+o.slice(u+1):o}var GM;function KM(o,d){var l=HM(o,d);if(!l)return o+"";var c=l[0],u=l[1],m=u-(GM=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1,E=c.length;return m===E?c:m>E?c+new Array(m-E+1).join("0"):m>0?c.slice(0,m)+"."+c.slice(m):"0."+new Array(1-m).join("0")+HM(o,Math.max(0,d+m-1))[0]}function Dw(o,d){var l=HM(o,d);if(!l)return o+"";var c=l[0],u=l[1];return u<0?"0."+new Array(-u).join("0")+c:c.length>u+1?c.slice(0,u+1)+"."+c.slice(u+1):c+new Array(u-c.length+2).join("0")}var RB={"%":function(o,d){return(o*100).toFixed(d)},b:function(o){return Math.round(o).toString(2)},c:function(o){return o+""},d:ZM,e:function(o,d){return o.toExponential(d)},f:function(o,d){return o.toFixed(d)},g:function(o,d){return o.toPrecision(d)},o:function(o){return Math.round(o).toString(8)},p:function(o,d){return Dw(o*100,d)},r:Dw,s:KM,X:function(o){return Math.round(o).toString(16).toUpperCase()},x:function(o){return Math.round(o).toString(16)}};function XM(o){return o}var kB=Array.prototype.map,OB=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function y6(o){var d=o.grouping===void 0||o.thousands===void 0?XM:tZ(kB.call(o.grouping,Number),o.thousands+""),l=o.currency===void 0?"":o.currency[0]+"",c=o.currency===void 0?"":o.currency[1]+"",u=o.decimal===void 0?".":o.decimal+"",m=o.numerals===void 0?XM:nZ(kB.call(o.numerals,String)),E=o.percent===void 0?"%":o.percent+"",M=o.minus===void 0?"-":o.minus+"",Z=o.nan===void 0?"NaN":o.nan+"";function ne(Oe){Oe=Db(Oe);var Ct=Oe.fill,Bt=Oe.align,An=Oe.sign,kn=Oe.symbol,Ir=Oe.zero,ui=Oe.width,ao=Oe.comma,wo=Oe.precision,Ds=Oe.trim,oa=Oe.type;oa==="n"?(ao=!0,oa="g"):RB[oa]||(wo===void 0&&(wo=12),Ds=!0,oa="g"),(Ir||Ct==="0"&&Bt==="=")&&(Ir=!0,Ct="0",Bt="=");var fa=kn==="$"?l:kn==="#"&&/[boxX]/.test(oa)?"0"+oa.toLowerCase():"",Wa=kn==="$"?c:/[%p]/.test(oa)?E:"",vl=RB[oa],Ql=/[defgprs%]/.test(oa);wo=wo===void 0?6:/[gprs]/.test(oa)?Math.max(1,Math.min(21,wo)):Math.max(0,Math.min(20,wo));function Ou(Uu){var hh=fa,Ph=Wa,Ld,mg,Yg;if(oa==="c")Ph=vl(Uu)+Ph,Uu="";else{Uu=+Uu;var am=Uu<0||1/Uu<0;if(Uu=isNaN(Uu)?Z:vl(Math.abs(Uu),wo),Ds&&(Uu=lQ(Uu)),am&&+Uu==0&&An!=="+"&&(am=!1),hh=(am?An==="("?An:M:An==="-"||An==="("?"":An)+hh,Ph=(oa==="s"?OB[8+GM/3]:"")+Ph+(am&&An==="("?")":""),Ql){for(Ld=-1,mg=Uu.length;++LdYg||Yg>57){Ph=(Yg===46?u+Uu.slice(Ld+1):Uu.slice(Ld))+Ph,Uu=Uu.slice(0,Ld);break}}}ao&&!Ir&&(Uu=d(Uu,1/0));var iv=hh.length+Uu.length+Ph.length,Dm=iv>1)+hh+Uu+Ph+Dm.slice(iv);break;default:Uu=Dm+hh+Uu+Ph;break}return m(Uu)}return Ou.toString=function(){return Oe+""},Ou}function Ce(Oe,Ct){var Bt=ne((Oe=Db(Oe),Oe.type="f",Oe)),An=Math.max(-8,Math.min(8,Math.floor(VC(Ct)/3)))*3,kn=Math.pow(10,-An),Ir=OB[8+An/3];return function(ui){return Bt(kn*ui)+Ir}}return{format:ne,formatPrefix:Ce}}var q4,_6,kD;YM({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function YM(o){return q4=y6(o),_6=q4.format,kD=q4.formatPrefix,q4}function tE(o,d){return o=Math.abs(o),d=Math.abs(d)-o,Math.max(0,VC(d)-VC(o))+1}function NB(o){return Math.max(0,-VC(Math.abs(o)))}function b6(o,d,l,c){var u=(0,X1.ly)(o,d,l),m;switch(c=Db(c==null?",f":c),c.type){case"s":{var E=Math.max(Math.abs(o),Math.abs(d));return c.precision==null&&!isNaN(m=MB(u,E))&&(c.precision=m),kD(c,E)}case"":case"e":case"g":case"p":case"r":{c.precision==null&&!isNaN(m=tE(u,Math.max(Math.abs(o),Math.abs(d))))&&(c.precision=m-(c.type==="e"));break}case"f":case"%":{c.precision==null&&!isNaN(m=NB(u))&&(c.precision=m-(c.type==="%")*2);break}}return _6(c)}function OD(o){var d=o.domain;return o.ticks=function(l){var c=d();return(0,X1.sd)(c[0],c[c.length-1],l==null?10:l)},o.tickFormat=function(l,c){var u=d();return b6(u[0],u[u.length-1],l==null?10:l,c)},o.nice=function(l){l==null&&(l=10);var c=d(),u=0,m=c.length-1,E=c[u],M=c[m],Z;return M0?(E=Math.floor(E/Z)*Z,M=Math.ceil(M/Z)*Z,Z=(0,X1.G9)(E,M,l)):Z<0&&(E=Math.ceil(E*Z)/Z,M=Math.floor(M*Z)/Z,Z=(0,X1.G9)(E,M,l)),Z>0?(c[u]=Math.floor(E/Z)*Z,c[m]=Math.ceil(M/Z)*Z,d(c)):Z<0&&(c[u]=Math.ceil(E*Z)/Z,c[m]=Math.floor(M*Z)/Z,d(c)),o},o}function ND(){var o=uA(D_,D_);return o.copy=function(){return v6(o,ND())},eE.apply(o,arguments),OD(o)}function FD(o){var d;function l(c){return isNaN(c=+c)?d:c}return l.invert=l,l.domain=l.range=function(c){return arguments.length?(o=map.call(c,number),l):o.slice()},l.unknown=function(c){return arguments.length?(d=c,l):d},l.copy=function(){return FD(o).unknown(d)},o=arguments.length?map.call(o,number):[0,1],linearish(l)}function cA(o,d){o=o.slice();var l=0,c=o.length-1,u=o[l],m=o[c],E;return m0){for(;CtCe)break;ao.push(Ir)}}else for(;Ct=1;--kn)if(Ir=An*kn,!(IrCe)break;ao.push(Ir)}}else ao=(0,X1.sd)(Ct,Bt,Math.min(Bt-Ct,ui)).map(m);return Oe?ao.reverse():ao},d.tickFormat=function(M,Z){if(Z==null&&(Z=c===10?".0e":","),typeof Z!="function"&&(Z=_6(Z)),M===1/0)return Z;M==null&&(M=10);var ne=Math.max(1,c*M/d.ticks().length);return function(Ce){var Oe=Ce/m(Math.round(u(Ce)));return Oe*c0?l[M-1]:o[0],M=l?[c[l-1],d]:[c[ne-1],c[ne]]},E.unknown=function(Z){return arguments.length&&(m=Z),E},E.thresholds=function(){return c.slice()},E.copy=function(){return VB().domain([o,d]).range(u).unknown(m)},eE.apply(OD(E),arguments)}function sZ(){var o=[.5],d=[0,1],l,c=1;function u(m){return m<=m?d[(0,X1.b4)(o,m,0,c)]:l}return u.domain=function(m){return arguments.length?(o=aA.call(m),c=Math.min(o.length,d.length-1),u):o.slice()},u.range=function(m){return arguments.length?(d=aA.call(m),c=Math.min(o.length,d.length-1),u):d.slice()},u.invertExtent=function(m){var E=d.indexOf(m);return[o[E-1],o[E]]},u.unknown=function(m){return arguments.length?(l=m,u):l},u.copy=function(){return sZ().domain(o).range(d).unknown(l)},eE.apply(u,arguments)}var R2=new Date,S6=new Date;function q_(o,d,l,c){function u(m){return o(m=arguments.length===0?new Date:new Date(+m)),m}return u.floor=function(m){return o(m=new Date(+m)),m},u.ceil=function(m){return o(m=new Date(m-1)),d(m,1),o(m),m},u.round=function(m){var E=u(m),M=u.ceil(m);return m-E0))return Z;do Z.push(ne=new Date(+m)),d(m,M),o(m);while(ne=E)for(;o(E),!m(E);)E.setTime(E-1)},function(E,M){if(E>=E)if(M<0)for(;++M<=0;)for(;d(E,-1),!m(E););else for(;--M>=0;)for(;d(E,1),!m(E););})},l&&(u.count=function(m,E){return R2.setTime(+m),S6.setTime(+E),o(R2),o(S6),Math.floor(l(R2,S6))},u.every=function(m){return m=Math.floor(m),!isFinite(m)||!(m>0)?null:m>1?u.filter(c?function(E){return c(E)%m===0}:function(E){return u.count(0,E)%m===0}):u}),u}var J_=q_(function(o){o.setMonth(0,1),o.setHours(0,0,0,0)},function(o,d){o.setFullYear(o.getFullYear()+d)},function(o,d){return d.getFullYear()-o.getFullYear()},function(o){return o.getFullYear()});J_.every=function(o){return!isFinite(o=Math.floor(o))||!(o>0)?null:q_(function(d){d.setFullYear(Math.floor(d.getFullYear()/o)*o),d.setMonth(0,1),d.setHours(0,0,0,0)},function(d,l){d.setFullYear(d.getFullYear()+l*o)})};var jC=J_,uQ=J_.range,r5=q_(function(o){o.setDate(1),o.setHours(0,0,0,0)},function(o,d){o.setMonth(o.getMonth()+d)},function(o,d){return d.getMonth()-o.getMonth()+(d.getFullYear()-o.getFullYear())*12},function(o){return o.getMonth()}),aZ=r5,i5=r5.range,o5=1e3,Iw=6e4,s5=36e5,E6=864e5,jB=6048e5;function dA(o){return q_(function(d){d.setDate(d.getDate()-(d.getDay()+7-o)%7),d.setHours(0,0,0,0)},function(d,l){d.setDate(d.getDate()+l*7)},function(d,l){return(l-d-(l.getTimezoneOffset()-d.getTimezoneOffset())*Iw)/jB})}var a5=dA(0),Q4=dA(1),nE=dA(2),lZ=dA(3),BD=dA(4),uZ=dA(5),eP=dA(6),cQ=a5.range,hQ=Q4.range,dQ=nE.range,cZ=lZ.range,fQ=BD.range,WB=uZ.range,pQ=eP.range,T6=q_(function(o){o.setHours(0,0,0,0)},function(o,d){o.setDate(o.getDate()+d)},function(o,d){return(d-o-(d.getTimezoneOffset()-o.getTimezoneOffset())*Iw)/E6},function(o){return o.getDate()-1}),A6=T6,zD=T6.range,ZB=q_(function(o){o.setTime(o-o.getMilliseconds()-o.getSeconds()*o5-o.getMinutes()*Iw)},function(o,d){o.setTime(+o+d*s5)},function(o,d){return(d-o)/s5},function(o){return o.getHours()}),k2=ZB,gQ=ZB.range,HB=q_(function(o){o.setTime(o-o.getMilliseconds()-o.getSeconds()*o5)},function(o,d){o.setTime(+o+d*Iw)},function(o,d){return(d-o)/Iw},function(o){return o.getMinutes()}),hZ=HB,dZ=HB.range,GB=q_(function(o){o.setTime(o-o.getMilliseconds())},function(o,d){o.setTime(+o+d*o5)},function(o,d){return(d-o)/o5},function(o){return o.getUTCSeconds()}),fZ=GB,mQ=GB.range,l5=q_(function(){},function(o,d){o.setTime(+o+d)},function(o,d){return d-o});l5.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?q_(function(d){d.setTime(Math.floor(d/o)*o)},function(d,l){d.setTime(+d+l*o)},function(d,l){return(l-d)/o}):l5};var pZ=l5,gZ=l5.range;function fA(o){return q_(function(d){d.setUTCDate(d.getUTCDate()-(d.getUTCDay()+7-o)%7),d.setUTCHours(0,0,0,0)},function(d,l){d.setUTCDate(d.getUTCDate()+l*7)},function(d,l){return(l-d)/jB})}var u5=fA(0),UD=fA(1),D6=fA(2),KB=fA(3),WC=fA(4),XB=fA(5),I6=fA(6),YB=u5.range,vQ=UD.range,yQ=D6.range,mZ=KB.range,ZC=WC.range,c5=XB.range,_Q=I6.range,O2=q_(function(o){o.setUTCHours(0,0,0,0)},function(o,d){o.setUTCDate(o.getUTCDate()+d)},function(o,d){return(d-o)/E6},function(o){return o.getUTCDate()-1}),h5=O2,bQ=O2.range,P6=q_(function(o){o.setUTCMonth(0,1),o.setUTCHours(0,0,0,0)},function(o,d){o.setUTCFullYear(o.getUTCFullYear()+d)},function(o,d){return d.getUTCFullYear()-o.getUTCFullYear()},function(o){return o.getUTCFullYear()});P6.every=function(o){return!isFinite(o=Math.floor(o))||!(o>0)?null:q_(function(d){d.setUTCFullYear(Math.floor(d.getUTCFullYear()/o)*o),d.setUTCMonth(0,1),d.setUTCHours(0,0,0,0)},function(d,l){d.setUTCFullYear(d.getUTCFullYear()+l*o)})};var HC=P6,vZ=P6.range;function q1(o){if(0<=o.y&&o.y<100){var d=new Date(-1,o.m,o.d,o.H,o.M,o.S,o.L);return d.setFullYear(o.y),d}return new Date(o.y,o.m,o.d,o.H,o.M,o.S,o.L)}function L6(o){if(0<=o.y&&o.y<100){var d=new Date(Date.UTC(-1,o.m,o.d,o.H,o.M,o.S,o.L));return d.setUTCFullYear(o.y),d}return new Date(Date.UTC(o.y,o.m,o.d,o.H,o.M,o.S,o.L))}function pA(o,d,l){return{y:o,m:d,d:l,H:0,M:0,S:0,L:0}}function yZ(o){var d=o.dateTime,l=o.date,c=o.time,u=o.periods,m=o.days,E=o.shortDays,M=o.months,Z=o.shortMonths,ne=tP(u),Ce=$D(u),Oe=tP(m),Ct=$D(m),Bt=tP(E),An=$D(E),kn=tP(M),Ir=$D(M),ui=tP(Z),ao=$D(Z),wo={a:am,A:iv,b:Dm,B:gy,c:null,d:e9,e:e9,f:AZ,g:Rw,G:iP,H:EZ,I:TZ,j:f5,L:mA,m:DZ,M:O6,p:RE,q:kE,Q:h9,s:GC,S:Q_,u:t9,U:p5,V:k1,w:IZ,W:oE,x:null,X:null,y:N6,Y:F6,Z:PZ,"%":c9},Ds={a:Yy,A:q2,b:Pv,B:a1,c:null,d:oP,e:oP,f:i9,g:g5,G:zZ,H:LZ,I:MZ,j:RZ,L:r9,m:kZ,M:OZ,p:CI,q:wL,Q:h9,s:GC,S:NZ,u:FZ,U:BZ,V:jD,w:s9,W:a9,x:null,X:null,y:kw,Y:l9,Z:u9,"%":c9},oa={a:Ou,A:Uu,b:hh,B:Ph,c:Ld,d:d5,e:d5,f:QB,g:Lw,G:qB,H:JB,I:JB,j:wZ,L:iE,m:xZ,M:CZ,p:Ql,q:bZ,Q:Ib,s:Mw,S:SZ,u:rE,U:VD,V:N2,w:k6,W:_Z,x:mg,X:Yg,y:Lw,Y:qB,Z:nP,"%":rP};wo.x=fa(l,wo),wo.X=fa(c,wo),wo.c=fa(d,wo),Ds.x=fa(l,Ds),Ds.X=fa(c,Ds),Ds.c=fa(d,Ds);function fa(qp,M0){return function(ov){var Pf=[],$b=-1,Vv=0,Ex=qp.length,Vb,OE,CL;for(ov instanceof Date||(ov=new Date(+ov));++$b53)return null;"w"in Pf||(Pf.w=1),"Z"in Pf?(Vv=L6(pA(Pf.y,0,1)),Ex=Vv.getUTCDay(),Vv=Ex>4||Ex===0?UD.ceil(Vv):UD(Vv),Vv=h5.offset(Vv,(Pf.V-1)*7),Pf.y=Vv.getUTCFullYear(),Pf.m=Vv.getUTCMonth(),Pf.d=Vv.getUTCDate()+(Pf.w+6)%7):(Vv=q1(pA(Pf.y,0,1)),Ex=Vv.getDay(),Vv=Ex>4||Ex===0?Q4.ceil(Vv):Q4(Vv),Vv=A6.offset(Vv,(Pf.V-1)*7),Pf.y=Vv.getFullYear(),Pf.m=Vv.getMonth(),Pf.d=Vv.getDate()+(Pf.w+6)%7)}else("W"in Pf||"U"in Pf)&&("w"in Pf||(Pf.w="u"in Pf?Pf.u%7:"W"in Pf?1:0),Ex="Z"in Pf?L6(pA(Pf.y,0,1)).getUTCDay():q1(pA(Pf.y,0,1)).getDay(),Pf.m=0,Pf.d="W"in Pf?(Pf.w+6)%7+Pf.W*7-(Ex+5)%7:Pf.w+Pf.U*7-(Ex+6)%7);return"Z"in Pf?(Pf.H+=Pf.Z/100|0,Pf.M+=Pf.Z%100,L6(Pf)):q1(Pf)}}function vl(qp,M0,ov,Pf){for(var $b=0,Vv=M0.length,Ex=ov.length,Vb,OE;$b=Ex)return-1;if(Vb=M0.charCodeAt($b++),Vb===37){if(Vb=M0.charAt($b++),OE=oa[Vb in Pw?M0.charAt($b++):Vb],!OE||(Pf=OE(qp,ov,Pf))<0)return-1}else if(Vb!=ov.charCodeAt(Pf++))return-1}return Pf}function Ql(qp,M0,ov){var Pf=ne.exec(M0.slice(ov));return Pf?(qp.p=Ce[Pf[0].toLowerCase()],ov+Pf[0].length):-1}function Ou(qp,M0,ov){var Pf=Bt.exec(M0.slice(ov));return Pf?(qp.w=An[Pf[0].toLowerCase()],ov+Pf[0].length):-1}function Uu(qp,M0,ov){var Pf=Oe.exec(M0.slice(ov));return Pf?(qp.w=Ct[Pf[0].toLowerCase()],ov+Pf[0].length):-1}function hh(qp,M0,ov){var Pf=ui.exec(M0.slice(ov));return Pf?(qp.m=ao[Pf[0].toLowerCase()],ov+Pf[0].length):-1}function Ph(qp,M0,ov){var Pf=kn.exec(M0.slice(ov));return Pf?(qp.m=Ir[Pf[0].toLowerCase()],ov+Pf[0].length):-1}function Ld(qp,M0,ov){return vl(qp,d,M0,ov)}function mg(qp,M0,ov){return vl(qp,l,M0,ov)}function Yg(qp,M0,ov){return vl(qp,c,M0,ov)}function am(qp){return E[qp.getDay()]}function iv(qp){return m[qp.getDay()]}function Dm(qp){return Z[qp.getMonth()]}function gy(qp){return M[qp.getMonth()]}function RE(qp){return u[+(qp.getHours()>=12)]}function kE(qp){return 1+~~(qp.getMonth()/3)}function Yy(qp){return E[qp.getUTCDay()]}function q2(qp){return m[qp.getUTCDay()]}function Pv(qp){return Z[qp.getUTCMonth()]}function a1(qp){return M[qp.getUTCMonth()]}function CI(qp){return u[+(qp.getUTCHours()>=12)]}function wL(qp){return 1+~~(qp.getUTCMonth()/3)}return{format:function(qp){var M0=fa(qp+="",wo);return M0.toString=function(){return qp},M0},parse:function(qp){var M0=Wa(qp+="",!1);return M0.toString=function(){return qp},M0},utcFormat:function(qp){var M0=fa(qp+="",Ds);return M0.toString=function(){return qp},M0},utcParse:function(qp){var M0=Wa(qp+="",!0);return M0.toString=function(){return qp},M0}}}var Pw={"-":"",_:" ",0:"0"},Vy=/^\s*\d+/,M6=/^%/,gA=/[\\^$*+?|[\]().{}]/g;function nv(o,d,l){var c=o<0?"-":"",u=(c?-o:o)+"",m=u.length;return c+(m68?1900:2e3),l+c[0].length):-1}function nP(o,d,l){var c=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(d.slice(l,l+6));return c?(o.Z=c[1]?0:-(c[2]+(c[3]||"00")),l+c[0].length):-1}function bZ(o,d,l){var c=Vy.exec(d.slice(l,l+1));return c?(o.q=c[0]*3-3,l+c[0].length):-1}function xZ(o,d,l){var c=Vy.exec(d.slice(l,l+2));return c?(o.m=c[0]-1,l+c[0].length):-1}function d5(o,d,l){var c=Vy.exec(d.slice(l,l+2));return c?(o.d=+c[0],l+c[0].length):-1}function wZ(o,d,l){var c=Vy.exec(d.slice(l,l+3));return c?(o.m=0,o.d=+c[0],l+c[0].length):-1}function JB(o,d,l){var c=Vy.exec(d.slice(l,l+2));return c?(o.H=+c[0],l+c[0].length):-1}function CZ(o,d,l){var c=Vy.exec(d.slice(l,l+2));return c?(o.M=+c[0],l+c[0].length):-1}function SZ(o,d,l){var c=Vy.exec(d.slice(l,l+2));return c?(o.S=+c[0],l+c[0].length):-1}function iE(o,d,l){var c=Vy.exec(d.slice(l,l+3));return c?(o.L=+c[0],l+c[0].length):-1}function QB(o,d,l){var c=Vy.exec(d.slice(l,l+6));return c?(o.L=Math.floor(c[0]/1e3),l+c[0].length):-1}function rP(o,d,l){var c=M6.exec(d.slice(l,l+1));return c?l+c[0].length:-1}function Ib(o,d,l){var c=Vy.exec(d.slice(l));return c?(o.Q=+c[0],l+c[0].length):-1}function Mw(o,d,l){var c=Vy.exec(d.slice(l));return c?(o.s=+c[0],l+c[0].length):-1}function e9(o,d){return nv(o.getDate(),d,2)}function EZ(o,d){return nv(o.getHours(),d,2)}function TZ(o,d){return nv(o.getHours()%12||12,d,2)}function f5(o,d){return nv(1+A6.count(jC(o),o),d,3)}function mA(o,d){return nv(o.getMilliseconds(),d,3)}function AZ(o,d){return mA(o,d)+"000"}function DZ(o,d){return nv(o.getMonth()+1,d,2)}function O6(o,d){return nv(o.getMinutes(),d,2)}function Q_(o,d){return nv(o.getSeconds(),d,2)}function t9(o){var d=o.getDay();return d===0?7:d}function p5(o,d){return nv(a5.count(jC(o)-1,o),d,2)}function n9(o){var d=o.getDay();return d>=4||d===0?BD(o):BD.ceil(o)}function k1(o,d){return o=n9(o),nv(BD.count(jC(o),o)+(jC(o).getDay()===4),d,2)}function IZ(o){return o.getDay()}function oE(o,d){return nv(Q4.count(jC(o)-1,o),d,2)}function N6(o,d){return nv(o.getFullYear()%100,d,2)}function Rw(o,d){return o=n9(o),nv(o.getFullYear()%100,d,2)}function F6(o,d){return nv(o.getFullYear()%1e4,d,4)}function iP(o,d){var l=o.getDay();return o=l>=4||l===0?BD(o):BD.ceil(o),nv(o.getFullYear()%1e4,d,4)}function PZ(o){var d=o.getTimezoneOffset();return(d>0?"-":(d*=-1,"+"))+nv(d/60|0,"0",2)+nv(d%60,"0",2)}function oP(o,d){return nv(o.getUTCDate(),d,2)}function LZ(o,d){return nv(o.getUTCHours(),d,2)}function MZ(o,d){return nv(o.getUTCHours()%12||12,d,2)}function RZ(o,d){return nv(1+h5.count(HC(o),o),d,3)}function r9(o,d){return nv(o.getUTCMilliseconds(),d,3)}function i9(o,d){return r9(o,d)+"000"}function kZ(o,d){return nv(o.getUTCMonth()+1,d,2)}function OZ(o,d){return nv(o.getUTCMinutes(),d,2)}function NZ(o,d){return nv(o.getUTCSeconds(),d,2)}function FZ(o){var d=o.getUTCDay();return d===0?7:d}function BZ(o,d){return nv(u5.count(HC(o)-1,o),d,2)}function o9(o){var d=o.getUTCDay();return d>=4||d===0?WC(o):WC.ceil(o)}function jD(o,d){return o=o9(o),nv(WC.count(HC(o),o)+(HC(o).getUTCDay()===4),d,2)}function s9(o){return o.getUTCDay()}function a9(o,d){return nv(UD.count(HC(o)-1,o),d,2)}function kw(o,d){return nv(o.getUTCFullYear()%100,d,2)}function g5(o,d){return o=o9(o),nv(o.getUTCFullYear()%100,d,2)}function l9(o,d){return nv(o.getUTCFullYear()%1e4,d,4)}function zZ(o,d){var l=o.getUTCDay();return o=l>=4||l===0?WC(o):WC.ceil(o),nv(o.getUTCFullYear()%1e4,d,4)}function u9(){return"+0000"}function c9(){return"%"}function h9(o){return+o}function GC(o){return Math.floor(+o/1e3)}var sE,aE,UZ,I_,Kx;WD({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 WD(o){return sE=yZ(o),aE=sE.format,UZ=sE.parse,I_=sE.utcFormat,Kx=sE.utcParse,sE}var sP=1e3,vA=sP*60,ZD=vA*60,yA=ZD*24,Ay=yA*7,d9=yA*30,KC=yA*365;function B6(o){return new Date(o)}function $Z(o){return o instanceof Date?+o:+new Date(+o)}function aP(o,d,l,c,u,m,E,M,Z){var ne=uA(D_,D_),Ce=ne.invert,Oe=ne.domain,Ct=Z(".%L"),Bt=Z(":%S"),An=Z("%I:%M"),kn=Z("%I %p"),Ir=Z("%a %d"),ui=Z("%b %d"),ao=Z("%B"),wo=Z("%Y"),Ds=[[E,1,sP],[E,5,5*sP],[E,15,15*sP],[E,30,30*sP],[m,1,vA],[m,5,5*vA],[m,15,15*vA],[m,30,30*vA],[u,1,ZD],[u,3,3*ZD],[u,6,6*ZD],[u,12,12*ZD],[c,1,yA],[c,2,2*yA],[l,1,Ay],[d,1,d9],[d,3,3*d9],[o,1,KC]];function oa(Wa){return(E(Wa)2){var Oe=ne.scale.ticks(E.values.length);ne.scale.domain(Oe)}E.values?ne.scale.range(E.values):ne.scale.range(ne.option.domain);break;case B0.QUANTILE:case B0.QUANTIZE:case B0.THRESHOLD:ne.scale.range(E.values);break;case B0.IDENTITY:break;case B0.CAT:E.values?ne.scale.range(E.values):ne.scale.range(ne.option.domain);break;case B0.DIVERGING:case B0.SEQUENTIAL:ne.scale.interpolator(X4(E.values));break}}if(E.values==="text"){var Ct;ne.scale.range((Ct=ne.option)===null||Ct===void 0?void 0:Ct.domain)}})):(E.type=Bx.CONSTANT,E.defaultValues=Z.map(function(ne,Ce){return ne.scale(E.names[Ce])})),E.scalers=Z.map(function(ne){return{field:ne.field,func:ne.scale,option:ne.option}}),m.needRescale=!1}})}},{key:"parseFields",value:function(l){return Array.isArray(l)?l:lP(l)?l.split("*"):[l]}},{key:"createScale",value:function(l,c,u,m){var E,M,Z=this.scaleOptions[c]&&((E=this.scaleOptions[c])===null||E===void 0?void 0:E.field)===l?this.scaleOptions[c]:this.scaleOptions[l],ne={field:l,scale:void 0,type:Bx.VARIABLE,option:Z};if(!m||!m.length)return Z&&Z.type?ne.scale=this.createDefaultScale(Z):(ne.scale=jM([l]),ne.type=Bx.CONSTANT),ne;var Ce=(M=m.find(function(Bt){return!$6(Bt[l])}))===null||M===void 0?void 0:M[l];if(this.isNumber(l)||$6(Ce)&&!Z)ne.scale=jM([l]),ne.type=Bx.CONSTANT;else{var Oe=Z&&Z.type||this.getDefaultType(Ce);u==="text"&&(Oe=B0.CAT),u===void 0&&(Oe=B0.IDENTITY);var Ct=this.createScaleConfig(Oe,l,Z,m);ne.scale=this.createDefaultScale(Ct),ne.option=Ct}return ne}},{key:"getDefaultType",value:function(l){var c=B0.LINEAR;return typeof l=="string"&&(c=HZ.test(l)?B0.TIME:B0.CAT),c}},{key:"createScaleConfig",value:function(l,c,u,m){var E={type:l},M=(m==null?void 0:m.map(function(Ce){return Ce[c]}))||[];if(u!=null&&u.domain)E.domain=u==null?void 0:u.domain;else if(l===B0.CAT||l===B0.IDENTITY)E.domain=ZZ(M);else if(l===B0.QUANTILE)E.domain=M;else if(l===B0.DIVERGING){var Z=(0,X1.We)(M),ne=(u==null?void 0:u.neutral)!==void 0?u==null?void 0:u.neutral:(Z[0]+Z[1])/2;E.domain=[Z[0],ne,Z[1]]}else E.domain=(0,X1.We)(M);return(0,Be.Z)((0,Be.Z)({},E),u)}},{key:"createDefaultScale",value:function(l){var c=l.type,u=l.domain,m=l.unknown,E=l.clamp,M=l.nice,Z=V6[c]();return u&&Z.domain&&Z.domain(u),m&&Z.unknown(m),E!==void 0&&Z.clamp&&Z.clamp(E),M!==void 0&&Z.nice&&Z.nice(M),Z}}]),o}())||m9),y9,_9,GZ=(y9=(0,Go.b2)(),y9(_9=function(){function o(){(0,wt.Z)(this,o)}return(0,nt.Z)(o,[{key:"apply",value:function(l){l.hooks.beforeRender.tap("LayerAnimateStylePlugin",function(){var c=l.animateStatus;c&&l.models.forEach(function(u){u.addUniforms((0,Be.Z)({},l.layerModel.getAnimateUniforms()))})})}}]),o}())||_9),b9,uP,j6=(b9=(0,Go.b2)(),b9(uP=function(){function o(){(0,wt.Z)(this,o)}return(0,nt.Z)(o,[{key:"apply",value:function(l){l.hooks.afterInit.tap("LayerMaskPlugin",function(){var c=l.getLayerConfig(),u=c.maskLayers,m=c.enableMask;if(!l.tileLayer&&u&&u.length>0){var E;(E=l.masks).push.apply(E,(0,bn.Z)(u)),l.updateLayerConfig({mask:m})}})}}]),o}())||uP),KZ=function(){function o(d){var l=d.rendererService,c=d.layerService,u=d.parent;(0,wt.Z)(this,o),(0,Tn.Z)(this,"tileResource",new Map),(0,Tn.Z)(this,"layerTiles",[]),this.rendererService=l,this.layerService=c,this.parent=u}return(0,nt.Z)(o,[{key:"tiles",get:function(){return this.layerTiles}},{key:"hasTile",value:function(l){return this.layerTiles.some(function(c){return c.key===l})}},{key:"addTile",value:function(l){this.layerTiles.push(l)}},{key:"getTile",value:function(l){return this.layerTiles.find(function(c){return c.key===l})}},{key:"getVisibleTileBylngLat",value:function(l){return this.layerTiles.find(function(c){return c.isLoaded&&c.visible&&c.lnglatInBounds(l)})}},{key:"removeTile",value:function(l){var c=this.layerTiles.findIndex(function(m){return m.key===l}),u=this.layerTiles.splice(c,1);u[0]&&u[0].destroy()}},{key:"updateTileVisible",value:function(l){var c=this.getTile(l.key);if(l.isVisible)if(l.parent){var u=this.isChildrenLoaded(l.parent);c==null||c.updateVisible(u)}else c==null||c.updateVisible(!0);else if(l.parent){var m=this.isChildrenLoaded(l.parent);c==null||c.updateVisible(!m)}else c==null||c.updateVisible(!1)}},{key:"isParentLoaded",value:function(l){var c=l.parent;if(!c)return!0;var u=this.getTile(c==null?void 0:c.key);return!!(u!=null&&u.isLoaded)}},{key:"isChildrenLoaded",value:function(l){var c=this,u=l==null?void 0:l.children;return u.length===0?!0:u.every(function(m){var E=c.getTile(m==null?void 0:m.key);return E?(E==null?void 0:E.isLoaded)===!0:!0})}},{key:"render",value:function(){var d=(0,Pl.Z)(Oi().mark(function c(){var u=this,m,E;return Oi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return m=this.getRenderLayers(),E=m.map(function(){var ne=(0,Pl.Z)(Oi().mark(function Ce(Oe){return Oi().wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return Bt.next=2,u.layerService.renderTileLayer(Oe);case 2:case"end":return Bt.stop()}},Ce)}));return function(Ce){return ne.apply(this,arguments)}}()),Z.next=4,Promise.all(E);case 4:case"end":return Z.stop()}},c,this)}));function l(){return d.apply(this,arguments)}return l}()},{key:"getRenderLayers",value:function(){var l=this.layerTiles.filter(function(u){return u.visible&&u.isLoaded}),c=[];return l.map(function(u){return c.push.apply(c,(0,bn.Z)(u.getLayers()))}),c}},{key:"getLayers",value:function(){var l=this.layerTiles.filter(function(u){return u.isLoaded}),c=[];return l.map(function(u){return c.push.apply(c,(0,bn.Z)(u.getLayers()))}),c}},{key:"getTiles",value:function(){return this.layerTiles}},{key:"destroy",value:function(){this.layerTiles.forEach(function(l){return l.destroy()}),this.tileResource.clear()}}]),o}(),XZ=y(51287),b5=function(){function o(){(0,wt.Z)(this,o)}return(0,nt.Z)(o,[{key:"getCombineFeature",value:function(l){var c=null,u=l[0];return l.map(function(m){var E=Vc.polygon(m.coordinates);c===null?c=E:c=(0,XZ.Z)(c,E)}),u&&(c.properties=(0,Be.Z)({},u)),c}}]),o}(),cP="select",hP="active",YZ=function(){function o(d){var l=d.layerService,c=d.tileLayerService,u=d.parent;(0,wt.Z)(this,o),(0,Tn.Z)(this,"tilePickID",new Map),this.layerService=l,this.tileLayerService=c,this.parent=u,this.tileSourceService=new b5}return(0,nt.Z)(o,[{key:"pickRender",value:function(l){var c=this.tileLayerService.getVisibleTileBylngLat(l.lngLat);if(c){var u=c.getMainLayer();u==null||u.layerPickService.pickRender(l)}}},{key:"pick",value:function(l,c){var u=this.parent.getContainer(),m=u.get(Zs.IPickingService);if(l.type==="RasterLayer"){var E=this.tileLayerService.getVisibleTileBylngLat(c.lngLat);if(E&&E.getMainLayer()!==void 0){var M=E.getMainLayer();return M.layerPickService.pickRasterLayer(M,c,this.parent)}return!1}return this.pickRender(c),m.pickFromPickingFBO(l,c)}},{key:"selectFeature",value:function(l){var c=(0,Or.Z)(l,3),u=c[0],m=c[1],E=c[2],M=this.color2PickId(u,m,E);this.tilePickID.set(cP,M),this.updateHighLight(u,m,E,cP)}},{key:"highlightPickedFeature",value:function(l){var c=(0,Or.Z)(l,3),u=c[0],m=c[1],E=c[2],M=this.color2PickId(u,m,E);this.tilePickID.set(hP,M),this.updateHighLight(u,m,E,hP)}},{key:"updateHighLight",value:function(l,c,u,m){this.tileLayerService.tiles.map(function(E){var M=E.getMainLayer();switch(m){case cP:M==null||M.hooks.beforeSelect.call([l,c,u]);break;case hP:M==null||M.hooks.beforeHighlight.call([l,c,u]);break}})}},{key:"setPickState",value:function(){var l=this.tilePickID.get(cP),c=this.tilePickID.get(hP);if(l){var u=this.pickId2Color(l),m=(0,Or.Z)(u,3),E=m[0],M=m[1],Z=m[2];this.updateHighLight(E,M,Z,cP);return}if(c){var ne=this.pickId2Color(c),Ce=(0,Or.Z)(ne,3),Oe=Ce[0],Ct=Ce[1],Bt=Ce[2];this.updateHighLight(Oe,Ct,Bt,hP);return}}},{key:"color2PickId",value:function(l,c,u){return Bi(new Uint8Array([l,c,u]))}},{key:"pickId2Color",value:function(l){return Nr(l)}},{key:"getFeatureById",value:function(l){var c=this.tileLayerService.getTiles().filter(function(m){return m.visible}),u=[];return c.forEach(function(m){u.push.apply(u,(0,bn.Z)(m.getFeatureById(l)))}),u}},{key:"pickRasterLayer",value:function(l,c,u){return!1}}]),o}();function x5(o){return o==="PolygonLayer"?Vx:o==="LineLayer"?KS:Ew}function qZ(o){return["PolygonLayer","LineLayer"].indexOf(o)!==-1}function JZ(o){var d=dx();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function dx(){if(typeof Reflect=="undefined"||!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(o){return!1}}var F2=function(o){(0,lt.Z)(l,o);var d=JZ(l);function l(c,u){var m;return(0,wt.Z)(this,l),m=d.call(this),(0,Tn.Z)((0,ys.Z)(m),"visible",!0),(0,Tn.Z)((0,ys.Z)(m),"layers",[]),(0,Tn.Z)((0,ys.Z)(m),"isLoaded",!1),(0,Tn.Z)((0,ys.Z)(m),"tileMaskLayers",[]),m.parent=u,m.sourceTile=c,m.x=c.x,m.y=c.y,m.z=c.z,m.key="".concat(m.x,"_").concat(m.y,"_").concat(m.z),m}return(0,nt.Z)(l,[{key:"getLayers",value:function(){return this.layers}},{key:"styleUpdate",value:function(){}},{key:"lnglatInBounds",value:function(u){var m=(0,Or.Z)(this.sourceTile.bounds,4),E=m[0],M=m[1],Z=m[2],ne=m[3],Ce=u.lng,Oe=u.lat;return Ce>=E&&Ce<=Z&&Oe>=M&&Oe<=ne}},{key:"getLayerOptions",value:function(){var u,m=this.parent.getLayerConfig();return(0,Be.Z)((0,Be.Z)({},m),{},{textAllowOverlap:!0,autoFit:!1,maskLayers:this.getMaskLayer(),tileMask:qZ(this.parent.type),mask:m.mask||((u=m.maskLayers)===null||u===void 0?void 0:u.length)!==0&&m.enableMask})}},{key:"getMaskLayer",value:function(){var u=this,m=this.parent.getLayerConfig(),E=m.maskLayers,M=[];return E==null||E.forEach(function(Z){if(!Z.tileLayer)return M.push(Z),Z;var ne=Z.tileLayer,Ce=ne.getTile(u.sourceTile.key),Oe=Ce==null?void 0:Ce.getLayers()[0];Oe&&M.push(Oe)}),M}},{key:"addTileMask",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E,M,Z;return Oi().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return E=new Vx({visible:!1,enablePicking:!1}).source({type:"FeatureCollection",features:[this.sourceTile.bboxPolygon]},{parser:{type:"geojson",featureId:"id"}}).shape("fill").style({opacity:.5}),M=Nx(this.parent.sceneContainer),E.setContainer(M,this.parent.sceneContainer),Ce.next=5,E.init();case 5:return this.tileMask=E,Z=this.getMainLayer(),Z!==void 0&&(Z.tileMask=E),Ce.abrupt("return",E);case 9:case"end":return Ce.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"addMask",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(E,M){var Z;return Oi().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Z=Nx(this.parent.sceneContainer),M.setContainer(Z,this.parent.sceneContainer),Ce.next=4,M.init();case 4:E.addMask(M),this.tileMaskLayers.push(M);case 6:case"end":return Ce.stop()}},m,this)}));function u(m,E){return c.apply(this,arguments)}return u}()},{key:"addLayer",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(E){var M;return Oi().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return E.isTileLayer=!0,M=Nx(this.parent.sceneContainer),E.setContainer(M,this.parent.sceneContainer),this.layers.push(E),ne.next=6,E.init();case 6:case"end":return ne.stop()}},m,this)}));function u(m){return c.apply(this,arguments)}return u}()},{key:"updateVisible",value:function(u){this.visible=u,this.updateOptions("visible",u)}},{key:"updateOptions",value:function(u,m){this.layers.forEach(function(E){E.updateLayerConfig((0,Tn.Z)({},u,m))})}},{key:"getMainLayer",value:function(){return this.layers[0]}},{key:"getFeatures",value:function(u){return[]}},{key:"getFeatureById",value:function(u){return[]}},{key:"destroy",value:function(){var u;(u=this.tileMask)===null||u===void 0||u.destroy(),this.layers.forEach(function(m){return m.destroy()})}}]),l}(gc.EventEmitter);function x9(o){var d=QZ();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function QZ(){if(typeof Reflect=="undefined"||!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(o){return!1}}var W6=function(o){(0,lt.Z)(l,o);var d=x9(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E,M,Z,ne;return Oi().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return E=this.getSourceOption(),M=E.data.features[0].properties,Z=new KS().source(E.data,E.options).size(1).shape("line").color("red"),ne=new Ew({minZoom:this.z-1,maxZoom:this.z+1,textAllowOverlap:!0}).source([M],{parser:{type:"json",x:"x",y:"y"}}).size(20).color("red").shape(this.key).style({stroke:"#fff",strokeWidth:2}),Oe.next=6,this.addLayer(Z);case 6:return Oe.next=8,this.addLayer(ne);case 8:this.isLoaded=!0;case 9:case"end":return Oe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getSourceOption",value:function(){var u=this.parent.getSource(),m=this.sourceTile.data.layers.testTile.features;return{data:{type:"FeatureCollection",features:m},options:{parser:{type:"geojson"},transforms:u.transforms}}}}]),l}(F2);function Lb(o){var d=dP();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function dP(){if(typeof Reflect=="undefined"||!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(o){return!1}}var eH=function(o){(0,lt.Z)(l,o);var d=Lb(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E,M,Z,ne;return Oi().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return E=this.parent.getLayerAttributeConfig(),M=this.getLayerOptions(),Z=this.getSourceOption(),ne=new HS((0,Be.Z)({},M)).source(Z.data,Z.options),E&&Object.keys(E).forEach(function(Ct){var Bt,An,kn=Ct;ne[kn]((Bt=E[kn])===null||Bt===void 0?void 0:Bt.field,(An=E[kn])===null||An===void 0?void 0:An.values)}),Oe.next=7,this.addLayer(ne);case 7:this.isLoaded=!0;case 8:case"end":return Oe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getSourceOption",value:function(){var u=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:u.transforms}}}}]),l}(F2);function w9(o){var d=C9();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function C9(){if(typeof Reflect=="undefined"||!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(o){return!1}}var tH=function(o){(0,lt.Z)(l,o);var d=w9(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E,M,Z,ne;return Oi().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return E=this.parent.getLayerAttributeConfig(),M=this.getLayerOptions(),Z=this.getSourceOption(),ne=new s6((0,Be.Z)({},M)).source(Z.data,Z.options),E&&Object.keys(E).forEach(function(Ct){var Bt,An,kn=Ct;ne[kn]((Bt=E[kn])===null||Bt===void 0?void 0:Bt.field,(An=E[kn])===null||An===void 0?void 0:An.values)}),Oe.next=7,this.addLayer(ne);case 7:this.isLoaded=!0;case 8:case"end":return Oe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getFeatures",value:function(u){if(!u)return[];var m=this.sourceTile.data;return m.getTileData(u)}},{key:"getSourceOption",value:function(){var u=this.parent.getSource(),m=this.parent.getLayerConfig(),E=m.sourceLayer,M=m.featureId,Z=this.getFeatures(E);return{data:{type:"FeatureCollection",features:Z},options:{parser:{type:"geojson",featureId:M},transforms:u.transforms}}}}]),l}(F2),nH=["rasterData"];function fP(o){var d=S9();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function S9(){if(typeof Reflect=="undefined"||!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(o){return!1}}var E9=function(o){(0,lt.Z)(l,o);var d=fP(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E,M,Z,ne;return Oi().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return E=this.parent.getLayerAttributeConfig(),M=this.getLayerOptions(),Z=this.getSourceOption(),ne=new $4((0,Be.Z)({},M)).source(Z.data,Z.options),E&&Object.keys(E).forEach(function(Ct){var Bt,An,kn=Ct;ne[kn]((Bt=E[kn])===null||Bt===void 0?void 0:Bt.field,(An=E[kn])===null||An===void 0?void 0:An.values)}),Oe.next=7,this.addLayer(ne);case 7:this.isLoaded=!0;case 8:case"end":return Oe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getSourceOption",value:function(){var u=this.parent.getSource(),m=this.sourceTile.data.data,E=m.rasterData,M=(0,hm.Z)(m,nH);return{data:E,options:{parser:(0,Be.Z)({type:"rasterRgb",extent:this.sourceTile.bounds},M),transforms:u.transforms}}}}]),l}(F2);function T9(o){var d=pP();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function pP(){if(typeof Reflect=="undefined"||!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(o){return!1}}var rH=function(o){(0,lt.Z)(l,o);var d=T9(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E,M,Z,ne;return Oi().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return E=this.parent.getLayerAttributeConfig(),M=this.getLayerOptions(),Z=this.getSourceOption(),ne=new $4((0,Be.Z)({},M)).source(Z.data,Z.options),E&&Object.keys(E).forEach(function(Ct){var Bt,An,kn=Ct;ne[kn]((Bt=E[kn])===null||Bt===void 0?void 0:Bt.field,(An=E[kn])===null||An===void 0?void 0:An.values)}),Oe.next=7,this.addLayer(ne);case 7:this.isLoaded=!0;case 8:case"end":return Oe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getSourceOption",value:function(){var u=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:u.transforms}}}}]),l}(F2),iH=["rasterData"];function gP(o){var d=mP();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function mP(){if(typeof Reflect=="undefined"||!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(o){return!1}}var w5={positions:[0,1],colors:["#000","#fff"]},A9=function(o){(0,lt.Z)(l,o);var d=gP(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E,M,Z,ne,Ce,Oe,Ct;return Oi().wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return E=this.parent.getLayerAttributeConfig(),M=this.getLayerOptions(),Z=this.getSourceOption(),ne=this.getLayerOptions(),Ce=ne.rampColors,Oe=ne.domain,this.colorTexture=this.parent.textureService.getColorTexture(Ce,Oe),Ct=new $4((0,Be.Z)((0,Be.Z)({},M),{},{colorTexture:this.colorTexture})).source(Z.data,Z.options),E&&Object.keys(E).forEach(function(kn){var Ir,ui,ao=kn;Ct[ao]((Ir=E[ao])===null||Ir===void 0?void 0:Ir.field,(ui=E[ao])===null||ui===void 0?void 0:ui.values)}),An.next=9,this.addLayer(Ct);case 9:this.isLoaded=!0;case 10:case"end":return An.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getSourceOption",value:function(){var u=this.parent.getSource(),m=this.sourceTile.data.data,E=m.rasterData,M=(0,hm.Z)(m,iH);return{data:E,options:{parser:(0,Be.Z)({type:"raster",extent:this.sourceTile.bounds},M),transforms:u.transforms}}}},{key:"styleUpdate",value:function(){for(var u=this,m=arguments.length,E=new Array(m),M=0;M=2&&!ne&&(l.parent.updateLayerConfig({visible:!0}),l.layerService.reRender())}l.lastViewStates&&l.lastViewStates.zoom===M&&l.lastViewStates.latLonBounds.toString()===E.toString()||(l.lastViewStates={zoom:M,latLonBounds:E},(u=l.tilesetManager)===null||u===void 0||u.throttleUpdate(M,E))}}),(0,Tn.Z)(this,"viewchange",oH(this.mapchange,24)),this.parent=d;var c=this.parent.getContainer();this.rendererService=c.get(Zs.IRendererService),this.layerService=c.get(Zs.ILayerService),this.mapService=c.get(Zs.IMapService),this.pickingService=c.get(Zs.IPickingService),this.tileLayerService=new KZ({rendererService:this.rendererService,layerService:this.layerService,parent:d}),this.tilePickService=new YZ({tileLayerService:this.tileLayerService,layerService:this.layerService,parent:d}),this.parent.setLayerPickService(this.tilePickService),this.proxy(d),this.initTileSetManager()}return(0,nt.Z)(o,[{key:"initTileSetManager",value:function(){var l,c=this.parent.getSource();if(this.tilesetManager=c.tileset,this.initedTileset||(this.bindTilesetEvent(),this.initedTileset=!0),this.parent.isVisible()!==!1){var u=this.getCurrentView(),m=u.latLonBounds,E=u.zoom;(l=this.tilesetManager)===null||l===void 0||l.update(E,m)}}},{key:"getCurrentView",value:function(){var l=this.mapService.getBounds(),c=[l[0][0],l[0][1],l[1][0],l[1][1]],u=this.mapService.getZoom();return{latLonBounds:c,zoom:u}}},{key:"bindTilesetEvent",value:function(){var l=this;this.tilesetManager.on("tile-loaded",function(c){}),this.tilesetManager.on("tile-unload",function(c){l.tileUnLoad(c)}),this.tilesetManager.on("tile-error",function(c,u){l.tileError(c)}),this.tilesetManager.on("tile-update",function(){l.tileUpdate()}),this.mapService.on("zoomend",this.mapchange),this.mapService.on("moveend",this.viewchange)}},{key:"render",value:function(){this.tileLayerService.render()}},{key:"getLayers",value:function(){return this.tileLayerService.getLayers()}},{key:"getTiles",value:function(){return this.tileLayerService.getTiles()}},{key:"getTile",value:function(l){return this.tileLayerService.getTile(l)}},{key:"tileLoaded",value:function(l){}},{key:"tileError",value:function(l){console.warn("error:",l)}},{key:"destroy",value:function(){var l;this.mapService.off("zoomend",this.mapchange),this.mapService.off("moveend",this.viewchange),(l=this.tilesetManager)===null||l===void 0||l.destroy(),this.tileLayerService.destroy()}},{key:"reload",value:function(){var l;this.tilesetManager.clear();var c=this.getCurrentView(),u=c.latLonBounds,m=c.zoom;(l=this.tilesetManager)===null||l===void 0||l.update(m,u)}},{key:"tileUnLoad",value:function(l){this.tileLayerService.removeTile(l.key)}},{key:"tileUpdate",value:function(){var d=(0,Pl.Z)(Oi().mark(function c(){var u=this,m,E;return Oi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(this.tilesetManager){Z.next=2;break}return Z.abrupt("return");case 2:return m=this.parent.getMinZoom(),E=this.parent.getMaxZoom(),Z.next=6,Promise.all(this.tilesetManager.tiles.filter(function(ne){return ne.isLoaded}).filter(function(ne){return ne.isVisibleChange}).filter(function(ne){return ne.data}).filter(function(ne){return ne.z>=m&&ne.z=-90&&u<=90,"invalid latitude"),d*=M5;var m=c*Mb,E=u*Mb,M=d*(m+B2)/(2*B2),Z=d*(B2-Math.log(Math.tan(Y9+E*.5)))/(2*B2);return[M,Z]}function Y6(o,d){var l=(0,Or.Z)(o,2),c=l[0],u=l[1];d*=M5;var m=c/d*(2*B2)-B2,E=2*(Math.atan(Math.exp(B2-u/d*(2*B2)))-Y9);return[m*KD,E*KD]}function yH(o){var d=o.latitude;assert(Number.isFinite(d));var l=Math.cos(d*Mb);return q9(X6*l)-9}function J9(o){var d=o.latitude,l=o.longitude,c=o.zoom,u=o.scale,m=o.highPrecision,E=m===void 0?!1:m;u=u!==void 0?u:XD(c),SA(Number.isFinite(d)&&Number.isFinite(l)&&Number.isFinite(u));var M={},Z=M5*u,ne=Math.cos(d*Mb),Ce=Z/360,Oe=Ce/ne,Ct=Z/X6/ne;if(M.pixelsPerMeter=[Ct,-Ct,Ct],M.metersPerPixel=[1/Ct,-1/Ct,1/Ct],M.pixelsPerDegree=[Ce,-Oe,Ct],M.degreesPerPixel=[1/Ce,-1/Oe,1/Ct],E){var Bt=Mb*Math.tan(d*Mb)/ne,An=Ce*Bt/2,kn=Z/X6*Bt,Ir=kn/Oe*Ct;M.pixelsPerDegree2=[0,-An,kn],M.pixelsPerMeter2=[Ir,0,Ir]}return M}function EQ(o,d){var l=_slicedToArray(o,3),c=l[0],u=l[1],m=l[2],E=_slicedToArray(d,3),M=E[0],Z=E[1],ne=E[2],Ce=1,Oe=J9({longitude:c,latitude:u,scale:Ce,highPrecision:!0}),Ct=Oe.pixelsPerMeter,Bt=Oe.pixelsPerMeter2,An=lE(o,Ce);An[0]+=M*(Ct[0]+Bt[0]*Z),An[1]+=Z*(Ct[1]+Bt[1]*Z);var kn=Y6(An,Ce),Ir=(m||0)+(ne||0);return Number.isFinite(m)||Number.isFinite(ne)?[kn[0],kn[1],Ir]:kn}function Q9(o){var d=o.height,l=o.pitch,c=o.bearing,u=o.altitude,m=o.center,E=m===void 0?null:m,M=o.flipY,Z=M===void 0?!1:M,ne=EP();return T0(ne,ne,[0,0,-u]),af(ne,ne,[1,1,1/d]),mm(ne,ne,-l*Mb),a0(ne,ne,c*Mb),Z&&af(ne,ne,[1,-1,1]),E&&T0(ne,ne,e7([],E)),ne}function _H(o){var d=o.width,l=o.height,c=o.altitude,u=c===void 0?vH:c,m=o.pitch,E=m===void 0?0:m,M=o.nearZMultiplier,Z=M===void 0?1:M,ne=o.farZMultiplier,Ce=ne===void 0?1:ne,Oe=E*Mb,Ct=Math.atan(.5/u),Bt=Math.sin(Ct)*u/Math.sin(Math.PI/2-Oe-Ct),An=Math.cos(Math.PI/2-Oe)*Bt+u;return{fov:2*Math.atan(l/2/u),aspect:d/l,focalDistance:u,near:Z,far:An*Ce}}function bH(o){var d=o.width,l=o.height,c=o.pitch,u=o.altitude,m=o.nearZMultiplier,E=o.farZMultiplier,M=_H({width:d,height:l,altitude:u,pitch:c,nearZMultiplier:m,farZMultiplier:E}),Z=M.fov,ne=M.aspect,Ce=M.near,Oe=M.far,Ct=br([],Z,ne,Ce,Oe);return Ct}function TP(o,d){var l=(0,Or.Z)(o,3),c=l[0],u=l[1],m=l[2],E=m===void 0?0:m;return SA(Number.isFinite(c)&&Number.isFinite(u)&&Number.isFinite(E)),L5(d,[c,u,E,1])}function ez(o,d){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,c=(0,Or.Z)(o,3),u=c[0],m=c[1],E=c[2];if(SA(Number.isFinite(u)&&Number.isFinite(m),"invalid pixel coordinate"),Number.isFinite(E)){var M=L5(d,[u,m,E,1]);return M}var Z=L5(d,[u,m,0,1]),ne=L5(d,[u,m,1,1]),Ce=Z[2],Oe=ne[2],Ct=Ce===Oe?0:((l||0)-Ce)/(Oe-Ce);return jm([],Z,ne,Ct)}var YD=EP(),xH=function(){function o(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=d.width,c=d.height,u=d.viewMatrix,m=u===void 0?YD:u,E=d.projectionMatrix,M=E===void 0?YD:E;(0,wt.Z)(this,o),this.width=l||1,this.height=c||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=m,this.projectionMatrix=M;var Z=EP();Ff(Z,Z,this.projectionMatrix),Ff(Z,Z,this.viewMatrix),this.viewProjectionMatrix=Z;var ne=EP();af(ne,ne,[this.width/2,-this.height/2,1]),T0(ne,ne,[1,-1,0]),Ff(ne,ne,this.viewProjectionMatrix);var Ce=Nv(EP(),ne);if(!Ce)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=ne,this.pixelUnprojectionMatrix=Ce,this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return(0,nt.Z)(o,[{key:"equals",value:function(l){return l instanceof o?l.width===this.width&&l.height===this.height&&_u(l.projectionMatrix,this.projectionMatrix)&&_u(l.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=c.topLeft,m=u===void 0?!0:u,E=this.projectPosition(l),M=TP(E,this.pixelProjectionMatrix),Z=(0,Or.Z)(M,2),ne=Z[0],Ce=Z[1],Oe=m?Ce:this.height-Ce;return l.length===2?[ne,Oe]:[ne,Oe,M[2]]}},{key:"unproject",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=c.topLeft,m=u===void 0?!0:u,E=c.targetZ,M=(0,Or.Z)(l,3),Z=M[0],ne=M[1],Ce=M[2],Oe=m?ne:this.height-ne,Ct=E&&E*this.pixelsPerMeter,Bt=ez([Z,Oe,Ce],this.pixelUnprojectionMatrix,Ct),An=this.unprojectPosition(Bt),kn=(0,Or.Z)(An,3),Ir=kn[0],ui=kn[1],ao=kn[2];return Number.isFinite(Ce)?[Ir,ui,ao]:Number.isFinite(E)?[Ir,ui,E]:[Ir,ui]}},{key:"projectPosition",value:function(l){var c=this.projectFlat(l),u=(0,Or.Z)(c,2),m=u[0],E=u[1],M=(l[2]||0)*this.pixelsPerMeter;return[m,E,M]}},{key:"unprojectPosition",value:function(l){var c=this.unprojectFlat(l),u=(0,Or.Z)(c,2),m=u[0],E=u[1],M=(l[2]||0)/this.pixelsPerMeter;return[m,E,M]}},{key:"projectFlat",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return l}},{key:"unprojectFlat",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return l}}]),o}();function wH(o){var d=o.width,l=o.height,c=o.bounds,u=o.minExtent,m=u===void 0?0:u,E=o.maxZoom,M=E===void 0?24:E,Z=o.padding,ne=Z===void 0?0:Z,Ce=o.offset,Oe=Ce===void 0?[0,0]:Ce,Ct=(0,Or.Z)(c,2),Bt=(0,Or.Z)(Ct[0],2),An=Bt[0],kn=Bt[1],Ir=(0,Or.Z)(Ct[1],2),ui=Ir[0],ao=Ir[1];if(Number.isFinite(ne)){var wo=ne;ne={top:wo,bottom:wo,left:wo,right:wo}}else SA(Number.isFinite(ne.top)&&Number.isFinite(ne.bottom)&&Number.isFinite(ne.left)&&Number.isFinite(ne.right));var Ds=new q6({width:d,height:l,longitude:0,latitude:0,zoom:0}),oa=Ds.project([An,ao]),fa=Ds.project([ui,kn]),Wa=[Math.max(Math.abs(fa[0]-oa[0]),m),Math.max(Math.abs(fa[1]-oa[1]),m)],vl=[d-ne.left-ne.right-Math.abs(Oe[0])*2,l-ne.top-ne.bottom-Math.abs(Oe[1])*2];SA(vl[0]>0&&vl[1]>0);var Ql=vl[0]/Wa[0],Ou=vl[1]/Wa[1],Uu=(ne.right-ne.left)/2/Ql,hh=(ne.bottom-ne.top)/2/Ou,Ph=[(fa[0]+oa[0])/2+Uu,(fa[1]+oa[1])/2+hh],Ld=Ds.unproject(Ph),mg=Ds.zoom+Math.log2(Math.abs(Math.min(Ql,Ou)));return{longitude:Ld[0],latitude:Ld[1],zoom:Math.min(mg,M)}}var q6=function(o){(0,lt.Z)(d,o);function d(){var l,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=c.width,m=c.height,E=c.latitude,M=E===void 0?0:E,Z=c.longitude,ne=Z===void 0?0:Z,Ce=c.zoom,Oe=Ce===void 0?0:Ce,Ct=c.pitch,Bt=Ct===void 0?0:Ct,An=c.bearing,kn=An===void 0?0:An,Ir=c.altitude,ui=Ir===void 0?1.5:Ir,ao=c.nearZMultiplier,wo=c.farZMultiplier;(0,wt.Z)(this,d),u=u||1,m=m||1;var Ds=XD(Oe);ui=Math.max(.75,ui);var oa=lE([ne,M],Ds);oa[2]=0;var fa=bH({width:u,height:m,pitch:Bt,bearing:kn,altitude:ui,nearZMultiplier:ao||1/m,farZMultiplier:wo||1.01}),Wa=Q9({height:m,center:oa,pitch:Bt,bearing:kn,altitude:ui,flipY:!0});return l=(0,Kt.Z)(this,(0,Mt.Z)(d).call(this,{width:u,height:m,viewMatrix:Wa,projectionMatrix:fa})),l.latitude=M,l.longitude=ne,l.zoom=Oe,l.pitch=Bt,l.bearing=kn,l.altitude=ui,l.scale=Ds,l.center=oa,l.pixelsPerMeter=J9((0,ys.Z)((0,ys.Z)(l))).pixelsPerMeter[2],Object.freeze((0,ys.Z)((0,ys.Z)(l))),l}return(0,nt.Z)(d,[{key:"projectFlat",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return lE(c,u)}},{key:"unprojectFlat",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return Y6(c,u)}},{key:"getMapCenterByLngLatPosition",value:function(c){var u=c.lngLat,m=c.pos,E=ez(m,this.pixelUnprojectionMatrix),M=lE(u,this.scale),Z=Qf([],M,_m([],E)),ne=Qf([],this.center,Z);return Y6(ne,this.scale)}},{key:"getLocationAtPoint",value:function(c){var u=c.lngLat,m=c.pos;return this.getMapCenterByLngLatPosition({lngLat:u,pos:m})}},{key:"fitBounds",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=this.width,E=this.height,M=wH(Object.assign({width:m,height:E,bounds:c},u)),Z=M.longitude,ne=M.latitude,Ce=M.zoom;return new d({width:m,height:E,longitude:Z,latitude:ne,zoom:Ce})}}]),d}(xH),YC=function(){function o(){(0,wt.Z)(this,o)}return(0,nt.Z)(o,[{key:"syncWithMapCamera",value:function(l){var c=l.center,u=l.zoom,m=l.pitch,E=l.bearing,M=l.viewportHeight,Z=l.viewportWidth,ne=this.viewport?{width:this.viewport.width,height:this.viewport.height,longitude:this.viewport.center[0],latitude:this.viewport.center[1],zoom:this.viewport.zoom,pitch:this.viewport.pitch,bearing:this.viewport.bearing}:{};this.viewport=new q6((0,Be.Z)((0,Be.Z)({},ne),{},{width:Z,height:M,longitude:c&&c[0],latitude:c&&c[1],zoom:u,pitch:m,bearing:E}))}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(l,c){return this.viewport.projectFlat(l,c)}}]),o}(),R5=function(){function o(d){(0,wt.Z)(this,o),(0,Tn.Z)(this,"size",1e4),this.size=d||1e4}return(0,nt.Z)(o,[{key:"setSize",value:function(l){this.size=l}},{key:"getSize",value:function(){return[this.size,this.size]}},{key:"mercatorXfromLng",value:function(l){return(180+l)/360*this.size}},{key:"mercatorYfromLat",value:function(l){return(1-(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+l*Math.PI/360)))/360)*this.size}},{key:"lngFromMercatorX",value:function(l){return l/this.size*360-180}},{key:"latFromMercatorY",value:function(l){var c=180-(1-l/this.size)*360;return 360/Math.PI*Math.atan(Math.exp(c*Math.PI/180))-90}},{key:"project",value:function(l){var c=this.mercatorXfromLng(l[0]),u=this.mercatorYfromLat(l[1]);return[c,u]}},{key:"unproject",value:function(l){var c=this.lngFromMercatorX(l[0]),u=this.latFromMercatorY(l[1]);return[c,u]}}]),o}();function qD(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d={top:0,right:0,bottom:0,left:0};if(typeof o=="number")return{top:o,right:o,bottom:o,left:o};if(Array.isArray(o)){if(o.length===4)return{top:o[0],right:o[1],bottom:o[2],left:o[3]};if(o.length===2)return{top:o[0],right:o[1],bottom:o[0],left:o[1]}}return(0,Be.Z)((0,Be.Z)({},d),o)}var tz={normal:"amap://styles/normal",light:"amap://styles/c422f5c0cfced5be9fe3a83f05f28a68?isPublic=true",dark:"amap://styles/c9f1d10cae34f8ab05e425462c5a58d7?isPublic=true",blank:"amap://styles/07c17002b38775b32a7a76c66cf90e99?isPublic=true",fresh:"amap://styles/fresh",grey:"amap://styles/grey",graffiti:"amap://styles/graffiti",macaron:"amap://styles/macaron",darkblue:"amap://styles/darkblue",wine:"amap://styles/wine"},J6=["id","style","minZoom","maxZoom","token","mapInstance","plugin"],nz,AP,DP,k5,Q6,rz,JD,iz,eN,oz,sz;function az(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}az(`.amap-logo{ display: none !important; } -`);var lz={contextmenu:"rightclick"},EH={contextmenu:"rightclick",camerachange:"viewchange"},uz={"GAODE1.x":lz,"GAODE2.x":EH},TH=0;window.forceWebGL=!0;var cz="15cd8a57710d40c9b7c0e3cc120f1200",AH="1.4.15",q6="amap-script",J6=!1,wA=[],MP=12,Q6=(nz=(0,ts.b2)(),PP=(0,ts.f3)(Ls.IGlobalConfigService),LP=(0,ts.f3)(Ls.MapConfig),N5=(0,ts.f3)(Ls.ICoordinateSystemService),X6=(0,ts.f3)(Ls.IEventEmitter),nz(rz=(YD=function(){function o(){var d=this;(0,Ct.Z)(this,o),(0,Tn.Z)(this,"version",nh["GAODE1.x"]),(0,Tn.Z)(this,"simpleMapCoord",new O5),(0,Tn.Z)(this,"bgColor","rgba(0, 0, 0, 0)"),Vc(this,"configService",iz,this),Vc(this,"config",Y6,this),Vc(this,"coordinateSystemService",oz,this),Vc(this,"eventEmitter",sz,this),(0,Tn.Z)(this,"handleCameraChanged",function(l){var c=l.camera,u=c.fov,m=c.near,E=c.far,L=c.height,Z=c.pitch,ne=c.rotation,xe=c.aspect,Oe=c.position,wt=d.getCenter(),Bt=wt.lng,wn=wt.lat;if(d.emit("mapchange"),d.cameraChangedCallback){d.viewport.syncWithMapCamera({aspect:xe,bearing:360-ne,far:E,fov:u,cameraHeight:L,near:m,pitch:Z,zoom:d.map.getZoom()-1,center:[Bt,wn],offsetOrigin:[Oe.x,Oe.y]});var Rn=d.config.offsetZoom,Pr=Rn===void 0?MP:Rn;d.viewport.getZoom()>Pr?d.coordinateSystemService.setCoordinateSystem(Ud.P20_OFFSET):d.coordinateSystemService.setCoordinateSystem(Ud.P20),d.cameraChangedCallback(d.viewport)}})}return(0,nt.Z)(o,[{key:"setBgColor",value:function(l){this.bgColor=l}},{key:"addMarkerContainer",value:function(){var l=this.map.getContainer();if(l!==null){var c=l.getElementsByClassName("amap-maps")[0];this.markerContainer=Os("div","l7-marker-container",c)}}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(l,c){b_.indexOf(l)!==-1?this.eventEmitter.on(l,c):this.map.on(uz[this.version][l]||l,c)}},{key:"off",value:function(l,c){b_.indexOf(l)!==-1?this.eventEmitter.off(l,c):this.map.off(uz[this.version][l]||l,c)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){var l;return(l=this.map.getContainer())===null||l===void 0?void 0:l.getElementsByClassName("amap-maps")[0]}},{key:"getSize",value:function(){var l=this.map.getSize();return[l.getWidth(),l.getHeight()]}},{key:"getType",value:function(){return"amap"}},{key:"getZoom",value:function(){return this.map.getZoom()-1}},{key:"setZoom",value:function(l){return this.map.setZoom(l+1)}},{key:"getCenter",value:function(l){if(l!=null&&l.padding){var c=this.getCenter(),u=XD(l.padding),m=this.lngLatToPixel([c.lng,c.lat]),E=[(u.right-u.left)/2,(u.bottom-u.top)/2],L=this.pixelToLngLat([m.x-E[0],m.y-E[1]]);return L}var Z=this.map.getCenter();return{lng:Z.getLng(),lat:Z.getLat()}}},{key:"setCenter",value:function(l,c){if(c!=null&&c.padding){var u=XD(c.padding),m=this.lngLatToPixel(l),E=[(u.right-u.left)/2,(u.bottom-u.top)/2],L=this.pixelToLngLat([m.x+E[0],m.y+E[1]]);this.map.setCenter([L.lng,L.lat])}else this.map.setCenter(l)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return 360-this.map.getRotation()}},{key:"getBounds",value:function(){var l=this.map.getBounds().toBounds(),c=l.getNorthEast(),u=l.getSouthWest(),m=this.getCenter(),E=m.lng>c.getLng()||m.lng0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy(l,c)}},{key:"fitBounds",value:function(l){this.map.setBounds(new AMap.Bounds([l[0][0],l[0][1],l[1][0],l[1][1]]))}},{key:"setZoomAndCenter",value:function(l,c){this.map.setZoomAndCenter(l+1,c)}},{key:"setMapStyle",value:function(l){this.map.setMapStyle(this.getMapStyleValue(l))}},{key:"setMapStatus",value:function(l){this.map.setStatus(l)}},{key:"getMapStyleConfig",value:function(){return tz}},{key:"getMapStyleValue",value:function(l){return this.getMapStyleConfig()[l]||l}},{key:"getMapStyle",value:function(){return this.map.getMapStyle()}},{key:"pixelToLngLat",value:function(l){var c=this.map.pixelToLngLat(new AMap.Pixel(l[0],l[1]));return{lng:c.getLng(),lat:c.getLat()}}},{key:"lngLatToPixel",value:function(l){var c=this.map.lnglatToPixel(new AMap.LngLat(l[0],l[1]));return{x:c.getX(),y:c.getY()}}},{key:"containerToLngLat",value:function(l){var c=new AMap.Pixel(l[0],l[1]),u=this.map.containerToLngLat(c);return{lng:u==null?void 0:u.getLng(),lat:u==null?void 0:u.getLat()}}},{key:"lngLatToContainer",value:function(l){var c=new AMap.LngLat(l[0],l[1]),u=this.map.lngLatToContainer(c);return{x:u.getX(),y:u.getY()}}},{key:"lngLatToCoord",value:function(l){var c=this.map.lngLatToGeodeticCoord(l),u=c.x,m=c.y;return[u,-m]}},{key:"lngLatToMercator",value:function(l,c){return{x:0,y:0,z:0}}},{key:"getModelMatrix",value:function(l,c,u){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],E=this.viewport.projectFlat(l),L=yp();return S0(L,L,r0(E[0],E[1],c)),sf(L,L,r0(m[0],m[1],m[2])),mm(L,L,u[0]),a0(L,L,u[1]),l0(L,L,u[2]),L}},{key:"init",value:function(){var d=(0,Pl.Z)(Fi().mark(function c(){var u=this,m,E,L,Z,ne,xe,Oe,wt,Bt,wn,Rn,Pr,ui,oo;return Fi().wrap(function(Ds){for(;;)switch(Ds.prev=Ds.next){case 0:return m=this.config,E=m.id,L=m.style,Z=L===void 0?"light":L,ne=m.minZoom,xe=ne===void 0?0:ne,Oe=m.maxZoom,wt=Oe===void 0?18:Oe,Bt=m.token,wn=Bt===void 0?cz:Bt,Rn=m.mapInstance,Pr=m.plugin,ui=Pr===void 0?[]:Pr,oo=(0,dm.Z)(m,K6),Ds.next=3,new Promise(function(aa){var fa=function(){if(Rn)u.map=Rn,u.$mapContainer=u.map.getContainer(),setTimeout(function(){u.map.on("camerachange",u.handleCameraChanged),aa()},30);else{u.$mapContainer=u.creatMapContainer(E);var gl=(0,ze.Z)({mapStyle:u.getMapStyleValue(Z),zooms:[xe,wt],viewMode:"3D"},oo);gl.zoom&&(gl.zoom+=1);var tu=new AMap.Map(u.$mapContainer,gl);tu.on("camerachange",u.handleCameraChanged),tu.on("camerachange",function(){setTimeout(function(){return u.handleAfterMapChange()})}),u.map=tu,setTimeout(function(){aa()},10)}};!J6&&!Rn?(wn===cz&&console.warn("%c".concat(u.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;"),J6=!0,ui.push("Map3D"),AP().load({key:wn,version:AH,plugins:ui}).then(function(){fa(),wA.length&&(wA.forEach(function(Za){return Za()}),wA=[])}).catch(function(Za){throw new Error(Za)})):J6&&window.AMap||Rn?fa():wA.push(fa)});case 3:this.viewport=new KC;case 4:case"end":return Ds.stop()}},c,this)}));function l(){return d.apply(this,arguments)}return l}()},{key:"meterToCoord",value:function(l,c){var u=AMap.GeometryUtil.distance(ii(AMap.LngLat,(0,_n.Z)(l)),ii(AMap.LngLat,(0,_n.Z)(c))),m=this.lngLatToCoord(l),E=(0,Br.Z)(m,2),L=E[0],Z=E[1],ne=this.lngLatToCoord(c),xe=(0,Br.Z)(ne,2),Oe=xe[0],wt=xe[1],Bt=Math.sqrt(Math.pow(L-Oe,2)+Math.pow(Z-wt,2));return Bt/u}},{key:"updateView",value:function(l){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(l){var c,u=(c=this.getContainer())===null||c===void 0?void 0:c.getElementsByClassName("amap-layer")[0],m=l==="jpg"?u==null?void 0:u.toDataURL("image/jpeg"):u==null?void 0:u.toDataURL("image/png");return m}},{key:"emit",value:function(l){for(var c,u=arguments.length,m=new Array(u>1?u-1:0),E=1;E1?u-1:0),E=1;EIr?d.coordinateSystemService.setCoordinateSystem(Uh.P20_OFFSET):d.coordinateSystemService.setCoordinateSystem(Uh.P20),d.cameraChangedCallback(d.viewport)}})}return(0,nt.Z)(o,[{key:"setBgColor",value:function(l){this.bgColor=l}},{key:"addMarkerContainer",value:function(){var l=this.map.getContainer();if(l!==null){var c=l.getElementsByClassName("amap-maps")[0];this.markerContainer=Os("div","l7-marker-container",c)}}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(l,c){x_.indexOf(l)!==-1?this.eventEmitter.on(l,c):this.map.on(uz[this.version][l]||l,c)}},{key:"off",value:function(l,c){x_.indexOf(l)!==-1?this.eventEmitter.off(l,c):this.map.off(uz[this.version][l]||l,c)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){var l;return(l=this.map.getContainer())===null||l===void 0?void 0:l.getElementsByClassName("amap-maps")[0]}},{key:"getSize",value:function(){var l=this.map.getSize();return[l.getWidth(),l.getHeight()]}},{key:"getType",value:function(){return"amap"}},{key:"getZoom",value:function(){return this.map.getZoom()-1}},{key:"setZoom",value:function(l){return this.map.setZoom(l+1)}},{key:"getCenter",value:function(l){if(l!=null&&l.padding){var c=this.getCenter(),u=qD(l.padding),m=this.lngLatToPixel([c.lng,c.lat]),E=[(u.right-u.left)/2,(u.bottom-u.top)/2],M=this.pixelToLngLat([m.x-E[0],m.y-E[1]]);return M}var Z=this.map.getCenter();return{lng:Z.getLng(),lat:Z.getLat()}}},{key:"setCenter",value:function(l,c){if(c!=null&&c.padding){var u=qD(c.padding),m=this.lngLatToPixel(l),E=[(u.right-u.left)/2,(u.bottom-u.top)/2],M=this.pixelToLngLat([m.x+E[0],m.y+E[1]]);this.map.setCenter([M.lng,M.lat])}else this.map.setCenter(l)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return 360-this.map.getRotation()}},{key:"getBounds",value:function(){var l=this.map.getBounds().toBounds(),c=l.getNorthEast(),u=l.getSouthWest(),m=this.getCenter(),E=m.lng>c.getLng()||m.lng0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy(l,c)}},{key:"fitBounds",value:function(l){this.map.setBounds(new AMap.Bounds([l[0][0],l[0][1],l[1][0],l[1][1]]))}},{key:"setZoomAndCenter",value:function(l,c){this.map.setZoomAndCenter(l+1,c)}},{key:"setMapStyle",value:function(l){this.map.setMapStyle(this.getMapStyleValue(l))}},{key:"setMapStatus",value:function(l){this.map.setStatus(l)}},{key:"getMapStyleConfig",value:function(){return tz}},{key:"getMapStyleValue",value:function(l){return this.getMapStyleConfig()[l]||l}},{key:"getMapStyle",value:function(){return this.map.getMapStyle()}},{key:"pixelToLngLat",value:function(l){var c=this.map.pixelToLngLat(new AMap.Pixel(l[0],l[1]));return{lng:c.getLng(),lat:c.getLat()}}},{key:"lngLatToPixel",value:function(l){var c=this.map.lnglatToPixel(new AMap.LngLat(l[0],l[1]));return{x:c.getX(),y:c.getY()}}},{key:"containerToLngLat",value:function(l){var c=new AMap.Pixel(l[0],l[1]),u=this.map.containerToLngLat(c);return{lng:u==null?void 0:u.getLng(),lat:u==null?void 0:u.getLat()}}},{key:"lngLatToContainer",value:function(l){var c=new AMap.LngLat(l[0],l[1]),u=this.map.lngLatToContainer(c);return{x:u.getX(),y:u.getY()}}},{key:"lngLatToCoord",value:function(l){var c=this.map.lngLatToGeodeticCoord(l),u=c.x,m=c.y;return[u,-m]}},{key:"lngLatToMercator",value:function(l,c){return{x:0,y:0,z:0}}},{key:"getModelMatrix",value:function(l,c,u){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],E=this.viewport.projectFlat(l),M=bp();return T0(M,M,r0(E[0],E[1],c)),af(M,M,r0(m[0],m[1],m[2])),mm(M,M,u[0]),s0(M,M,u[1]),a0(M,M,u[2]),M}},{key:"init",value:function(){var d=(0,Pl.Z)(Oi().mark(function c(){var u=this,m,E,M,Z,ne,Ce,Oe,Ct,Bt,An,kn,Ir,ui,ao;return Oi().wrap(function(Ds){for(;;)switch(Ds.prev=Ds.next){case 0:return m=this.config,E=m.id,M=m.style,Z=M===void 0?"light":M,ne=m.minZoom,Ce=ne===void 0?0:ne,Oe=m.maxZoom,Ct=Oe===void 0?18:Oe,Bt=m.token,An=Bt===void 0?cz:Bt,kn=m.mapInstance,Ir=m.plugin,ui=Ir===void 0?[]:Ir,ao=(0,hm.Z)(m,J6),Ds.next=3,new Promise(function(oa){var fa=function(){if(kn)u.map=kn,u.$mapContainer=u.map.getContainer(),setTimeout(function(){u.map.on("camerachange",u.handleCameraChanged),oa()},30);else{u.$mapContainer=u.creatMapContainer(E);var vl=(0,Be.Z)({mapStyle:u.getMapStyleValue(Z),zooms:[Ce,Ct],viewMode:"3D"},ao);vl.zoom&&(vl.zoom+=1);var Ql=new AMap.Map(u.$mapContainer,vl);Ql.on("camerachange",u.handleCameraChanged),Ql.on("camerachange",function(){setTimeout(function(){return u.handleAfterMapChange()})}),u.map=Ql,setTimeout(function(){oa()},10)}};!nN&&!kn?(An===cz&&console.warn("%c".concat(u.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;"),nN=!0,ui.push("Map3D"),SP().load({key:An,version:EH,plugins:ui}).then(function(){fa(),EA.length&&(EA.forEach(function(Wa){return Wa()}),EA=[])}).catch(function(Wa){throw new Error(Wa)})):nN&&window.AMap||kn?fa():EA.push(fa)});case 3:this.viewport=new YC;case 4:case"end":return Ds.stop()}},c,this)}));function l(){return d.apply(this,arguments)}return l}()},{key:"meterToCoord",value:function(l,c){var u=AMap.GeometryUtil.distance(ii(AMap.LngLat,(0,bn.Z)(l)),ii(AMap.LngLat,(0,bn.Z)(c))),m=this.lngLatToCoord(l),E=(0,Or.Z)(m,2),M=E[0],Z=E[1],ne=this.lngLatToCoord(c),Ce=(0,Or.Z)(ne,2),Oe=Ce[0],Ct=Ce[1],Bt=Math.sqrt(Math.pow(M-Oe,2)+Math.pow(Z-Ct,2));return Bt/u}},{key:"updateView",value:function(l){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(l){var c,u=(c=this.getContainer())===null||c===void 0?void 0:c.getElementsByClassName("amap-layer")[0],m=l==="jpg"?u==null?void 0:u.toDataURL("image/jpeg"):u==null?void 0:u.toDataURL("image/png");return m}},{key:"emit",value:function(l){for(var c,u=arguments.length,m=new Array(u>1?u-1:0),E=1;E1?u-1:0),E=1;Eaa?c.coordinateSystemService.setCoordinateSystem(Ud.P20_OFFSET):c.coordinateSystemService.setCoordinateSystem(Ud.P20),c.cameraChangedCallback(c.viewport)}}),c}return(0,nt.Z)(l,[{key:"getModelMatrix",value:function(u,m,E){var L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=this.viewport.projectFlat(u),ne=yp();return S0(ne,ne,r0(Z[0],Z[1],m)),sf(ne,ne,r0(L[0],L[1],L[2])),mm(ne,ne,E[0]),a0(ne,ne,E[1]),l0(ne,ne,E[2]),ne}},{key:"init",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E=this,L,Z,ne,xe,Oe,wt,Bt,wn,Rn,Pr,ui,oo,xo,Ds;return Fi().wrap(function(fa){for(;;)switch(fa.prev=fa.next){case 0:return L=this.config,Z=L.id,ne=L.style,xe=ne===void 0?"light":ne,Oe=L.minZoom,wt=Oe===void 0?0:Oe,Bt=L.maxZoom,wn=Bt===void 0?18:Bt,Rn=L.token,Pr=Rn===void 0?B5:Rn,ui=L.mapInstance,oo=L.plugin,xo=oo===void 0?[]:oo,Ds=(0,dm.Z)(L,hz),fa.next=3,new Promise(function(Za){var gl=function(){if(ui)E.map=ui,E.$mapContainer=E.map.getContainer(),setTimeout(function(){E.map.on("camerachange",E.handleCameraChanged),Za()},30);else{E.$mapContainer=E.creatMapContainer(Z);var ku=(0,ze.Z)({mapStyle:E.getMapStyleValue(xe),zooms:[wt,wn],viewMode:"3D"},Ds);ku.zoom&&(ku.zoom+=1);var ju=new AMap.Map(E.$mapContainer,ku);ju.on("camerachange",E.handleCameraChanged),ju.on("camerachange",function(){setTimeout(function(){return E.handleAfterMapChange()})}),E.map=ju,setTimeout(function(){Za()},10)}};!sN&&!ui?(Pr===B5&&console.warn(E.configService.getSceneWarninfo("MapToken")),sN=!0,xo.push("Map3D"),IH.load({key:Pr,version:PH,plugins:xo}).then(function(tu){gl(),z5.length&&(z5.forEach(function(ku){return ku()}),z5=[])}).catch(function(tu){throw new Error(tu)})):sN&&window.AMap||ui?gl():z5.push(gl)});case 3:this.viewport=new RP;case 4:case"end":return fa.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"meterToCoord",value:function(u,m){var E=AMap.GeometryUtil.distance(ii(AMap.LngLat,(0,_n.Z)(u)),ii(AMap.LngLat,(0,_n.Z)(m))),L=this.lngLatToCoord(u),Z=(0,Br.Z)(L,2),ne=Z[0],xe=Z[1],Oe=this.lngLatToCoord(m),wt=(0,Br.Z)(Oe,2),Bt=wt[0],wn=wt[1],Rn=Math.sqrt(Math.pow(ne-Bt,2)+Math.pow(xe-wn,2));return Rn/E}},{key:"updateView",value:function(u){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(u){var m,E=(m=this.getContainer())===null||m===void 0?void 0:m.getElementsByClassName("amap-layer")[0],L=u==="jpg"?E==null?void 0:E.toDataURL("image/jpeg"):E==null?void 0:E.toDataURL("image/png");return L}},{key:"onCameraChanged",value:function(u){this.cameraChangedCallback=u}}]),l}(Q6))||rN);function LH(o){var d=XC();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function XC(){if(typeof Reflect=="undefined"||!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(o){return!1}}var MH=function(o){(0,lt.Z)(l,o);var d=LH(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getServiceConstructor",value:function(){return lN}}]),l}(GC),RH=function(){function o(){(0,Ct.Z)(this,o),(0,Tn.Z)(this,"projectionMatrix",yp()),(0,Tn.Z)(this,"viewMatrix",yp()),(0,Tn.Z)(this,"viewProjectionMatrix",yp()),(0,Tn.Z)(this,"ViewProjectionMatrixUncentered",yp()),(0,Tn.Z)(this,"viewUncenteredMatrix",yp())}return(0,nt.Z)(o,[{key:"syncWithMapCamera",value:function(l){var c=l.zoom,u=c===void 0?1:c,m=l.center,E=m===void 0?[0,0]:m,L=l.offsetOrigin,Z=L===void 0?[0,0]:L,ne=l.cameraPosition,xe=ne===void 0?[0,0,0]:ne,Oe=l.up,wt=Oe===void 0?[0,1,0]:Oe,Bt=l.lookAt,wn=Bt===void 0?[0,0,0]:Bt,Rn=l.aspect,Pr=Rn===void 0?1:Rn,ui=l.near,oo=ui===void 0?.1:ui,xo=l.far,Ds=xo===void 0?1e3:xo,aa=l.fov,fa=aa===void 0?45:aa;this.zoom=u,this.center=E,br(this.projectionMatrix,fa/180*Math.PI,Pr,oo,Ds);var Za=r0.apply(b,(0,_n.Z)(xe)),gl=r0.apply(b,(0,_n.Z)(wn)),tu=r0.apply(b,(0,_n.Z)(wt));Ro(this.viewMatrix,Za,gl,tu),this.viewUncenteredMatrix=Vp(this.viewMatrix),S0(this.viewMatrix,this.viewMatrix,r0(-Z[0],Z[1],0)),Nf(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),Nf(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 1048576}},{key:"getCenter",value:function(){var l=(0,Br.Z)(this.center,2),c=l[0],u=l[1];return[c,u]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewUncenteredMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.ViewProjectionMatrixUncentered}},{key:"getFocalDistance",value:function(){return 1.2}},{key:"projectFlat",value:function(l){var c=85.0511287798,u=Math.max(Math.min(c,l[1]),-c),m=256<<20,E=Math.PI/180,L=l[0]*E,Z=u*E;Z=Math.log(Math.tan(Math.PI/4+Z/2));var ne=.5/Math.PI,xe=.5,Oe=-.5/Math.PI;return E=.5,L=m*(ne*L+xe)-215440491,Z=-(m*(Oe*Z+E)-106744817),[L,Z]}}]),o}(),kH=["id","style","minZoom","maxZoom","token","mapInstance","plugin","version"],CA,uN;function OH(o){var d=NH();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function NH(){if(typeof Reflect=="undefined"||!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(o){return!1}}function FH(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}FH(`.amap-logo{ + `,u.id="l7_amap_div"+SH++,c.appendChild(u),u}}]),o}(),iz=Fh(JD.prototype,"configService",[AP],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),eN=Fh(JD.prototype,"config",[DP],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oz=Fh(JD.prototype,"coordinateSystemService",[k5],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sz=Fh(JD.prototype,"eventEmitter",[Q6],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),JD))||rz);if(!window)throw Error("AMap JSAPI can only be used in Browser.");var Xx=function(o){return o.notload="notload",o.loading="loading",o.loaded="loaded",o.failed="failed",o}(Xx||{}),fx={key:"",AMap:{version:"2.0",plugins:[]}},Yx={AMap:Xx.notload},iN=[],TH=function(d){if(typeof d=="function"){if(Yx.AMap===Xx.loaded){d(window.AMap);return}iN.push(d)}},oN=function(){var o=(0,Pl.Z)(Oi().mark(function d(l){return Oi().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",new Promise(function(m,E){if(Yx.AMap===Xx.failed)E("");else if(Yx.AMap===Xx.notload){var M=l.key,Z=l.version,ne=l.plugins;if(!M){E("\u8BF7\u586B\u5199key");return}window.AMap&&location.host!=="lbs.amap.com"&&E("\u7981\u6B62\u591A\u79CDAPI\u52A0\u8F7D\u65B9\u5F0F\u6DF7\u7528"),fx.key=M,fx.AMap.version=Z||fx.AMap.version,fx.AMap.plugins=ne||fx.AMap.plugins,Yx.AMap=Xx.loading;var Ce=document.body||document.head;window._onAPILoaded=function(An){An?(Yx.AMap=Xx.failed,E(An)):(Yx.AMap=Xx.loaded,m(null))};var Oe=document.createElement("script");Oe.type="text/javascript",Oe.async=!1,Oe.src="https://webapi.amap.com/maps?callback=_onAPILoaded&v="+fx.AMap.version+"&key="+M+"&plugin="+fx.AMap.plugins.join(","),Oe.onerror=function(An){Yx.AMap=Xx.failed,E(An)},Ce.appendChild(Oe)}else if(Yx.AMap===Xx.loaded){if(l.key&&l.key!==fx.key){E("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(l.version&&l.version!==fx.AMap.version){E("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}var Ct=[];l.plugins&&l.plugins.forEach(function(An){fx.AMap.plugins.indexOf(An)===-1&&Ct.push(An)}),Ct.length&&window.AMap.plugin(Ct,function(){m(window.AMap)})}else{if(l.key&&l.key!==fx.key){E("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(l.version&&l.version!==fx.AMap.version){E("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}var Bt=[];l.plugins&&l.plugins.forEach(function(An){fx.AMap.plugins.indexOf(An)===-1&&Bt.push(An)}),TH(function(){Bt.length&&window.AMap.plugin(Bt,function(){m(window.AMap)})})}}));case 1:case"end":return u.stop()}},d)}));return function(l){return o.apply(this,arguments)}}();function sN(){delete window.AMap,fx={key:"",AMap:{version:"1.4.15",plugins:[]}},Yx={AMap:Xx.notload}}var AH={load:oN,reset:sN},hz=Math.PI/180,PP=function(){function o(){(0,wt.Z)(this,o),(0,Tn.Z)(this,"projectionMatrix",bp()),(0,Tn.Z)(this,"viewMatrix",bp()),(0,Tn.Z)(this,"viewProjectionMatrix",bp()),(0,Tn.Z)(this,"ViewProjectionMatrixUncentered",bp()),(0,Tn.Z)(this,"viewUncenteredMatrix",bp())}return(0,nt.Z)(o,[{key:"syncWithMapCamera",value:function(l){var c=l.zoom,u=c===void 0?1:c,m=l.pitch,E=m===void 0?0:m,M=l.bearing,Z=M===void 0?0:M,ne=l.center,Ce=ne===void 0?[0,0]:ne,Oe=l.offsetOrigin,Ct=Oe===void 0?[0,0]:Oe,Bt=l.cameraHeight,An=Bt===void 0?1:Bt,kn=l.aspect,Ir=kn===void 0?1:kn,ui=l.near,ao=ui===void 0?.1:ui,wo=l.far,Ds=wo===void 0?1e3:wo,oa=l.fov,fa=oa===void 0?0:oa;this.zoom=u,this.center=Ce;var Wa=E*hz,vl=(360-Z)*hz;br(this.projectionMatrix,fa,Ir,ao,Ds);var Ql=r0(An*Math.sin(Wa)*Math.sin(vl),-An*Math.sin(Wa)*Math.cos(vl),An*Math.cos(Wa)),Ou=r0(-Math.cos(Wa)*Math.sin(vl),Math.cos(Wa)*Math.cos(vl),Math.sin(Wa));Lo(this.viewMatrix,Ql,r0(0,0,0),Ou),this.viewUncenteredMatrix=Hp(this.viewMatrix),T0(this.viewMatrix,this.viewMatrix,r0(-Ct[0],Ct[1],0)),Ff(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),Ff(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 524288}},{key:"getCenter",value:function(){var l=(0,Or.Z)(this.center,2),c=l[0],u=l[1];return[c,u]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewUncenteredMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.ViewProjectionMatrixUncentered}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(l){var c=85.0511287798,u=Math.max(Math.min(c,l[1]),-c),m=256<<20,E=Math.PI/180,M=l[0]*E,Z=u*E;Z=Math.log(Math.tan(Math.PI/4+Z/2));var ne=.5/Math.PI,Ce=.5,Oe=-.5/Math.PI;return E=.5,M=m*(ne*M+Ce)-215440491,Z=-(m*(Oe*Z+E)-106744817),[M,Z]}}]),o}(),dz=["id","style","minZoom","maxZoom","token","mapInstance","plugin"],O5,aN;function lN(o){var d=uN();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function uN(){if(typeof Reflect=="undefined"||!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(o){return!1}}window.forceWebGL=!0;var N5="15cd8a57710d40c9b7c0e3cc120f1200",DH="1.4.15",cN=!1,F5=[],hN=12,dN=(O5=(0,Go.b2)(),O5(aN=function(o){(0,lt.Z)(l,o);var d=lN(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;Eoa?c.coordinateSystemService.setCoordinateSystem(Uh.P20_OFFSET):c.coordinateSystemService.setCoordinateSystem(Uh.P20),c.cameraChangedCallback(c.viewport)}}),c}return(0,nt.Z)(l,[{key:"getModelMatrix",value:function(u,m,E){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=this.viewport.projectFlat(u),ne=bp();return T0(ne,ne,r0(Z[0],Z[1],m)),af(ne,ne,r0(M[0],M[1],M[2])),mm(ne,ne,E[0]),s0(ne,ne,E[1]),a0(ne,ne,E[2]),ne}},{key:"init",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E=this,M,Z,ne,Ce,Oe,Ct,Bt,An,kn,Ir,ui,ao,wo,Ds;return Oi().wrap(function(fa){for(;;)switch(fa.prev=fa.next){case 0:return M=this.config,Z=M.id,ne=M.style,Ce=ne===void 0?"light":ne,Oe=M.minZoom,Ct=Oe===void 0?0:Oe,Bt=M.maxZoom,An=Bt===void 0?18:Bt,kn=M.token,Ir=kn===void 0?N5:kn,ui=M.mapInstance,ao=M.plugin,wo=ao===void 0?[]:ao,Ds=(0,hm.Z)(M,dz),fa.next=3,new Promise(function(Wa){var vl=function(){if(ui)E.map=ui,E.$mapContainer=E.map.getContainer(),setTimeout(function(){E.map.on("camerachange",E.handleCameraChanged),Wa()},30);else{E.$mapContainer=E.creatMapContainer(Z);var Ou=(0,Be.Z)({mapStyle:E.getMapStyleValue(Ce),zooms:[Ct,An],viewMode:"3D"},Ds);Ou.zoom&&(Ou.zoom+=1);var Uu=new AMap.Map(E.$mapContainer,Ou);Uu.on("camerachange",E.handleCameraChanged),Uu.on("camerachange",function(){setTimeout(function(){return E.handleAfterMapChange()})}),E.map=Uu,setTimeout(function(){Wa()},10)}};!cN&&!ui?(Ir===N5&&console.warn(E.configService.getSceneWarninfo("MapToken")),cN=!0,wo.push("Map3D"),AH.load({key:Ir,version:DH,plugins:wo}).then(function(Ql){vl(),F5.length&&(F5.forEach(function(Ou){return Ou()}),F5=[])}).catch(function(Ql){throw new Error(Ql)})):cN&&window.AMap||ui?vl():F5.push(vl)});case 3:this.viewport=new PP;case 4:case"end":return fa.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"meterToCoord",value:function(u,m){var E=AMap.GeometryUtil.distance(ii(AMap.LngLat,(0,bn.Z)(u)),ii(AMap.LngLat,(0,bn.Z)(m))),M=this.lngLatToCoord(u),Z=(0,Or.Z)(M,2),ne=Z[0],Ce=Z[1],Oe=this.lngLatToCoord(m),Ct=(0,Or.Z)(Oe,2),Bt=Ct[0],An=Ct[1],kn=Math.sqrt(Math.pow(ne-Bt,2)+Math.pow(Ce-An,2));return kn/E}},{key:"updateView",value:function(u){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(u){var m,E=(m=this.getContainer())===null||m===void 0?void 0:m.getElementsByClassName("amap-layer")[0],M=u==="jpg"?E==null?void 0:E.toDataURL("image/jpeg"):E==null?void 0:E.toDataURL("image/png");return M}},{key:"onCameraChanged",value:function(u){this.cameraChangedCallback=u}}]),l}(rN))||aN);function IH(o){var d=qC();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function qC(){if(typeof Reflect=="undefined"||!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(o){return!1}}var PH=function(o){(0,lt.Z)(l,o);var d=IH(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getServiceConstructor",value:function(){return dN}}]),l}(XC),LH=function(){function o(){(0,wt.Z)(this,o),(0,Tn.Z)(this,"projectionMatrix",bp()),(0,Tn.Z)(this,"viewMatrix",bp()),(0,Tn.Z)(this,"viewProjectionMatrix",bp()),(0,Tn.Z)(this,"ViewProjectionMatrixUncentered",bp()),(0,Tn.Z)(this,"viewUncenteredMatrix",bp())}return(0,nt.Z)(o,[{key:"syncWithMapCamera",value:function(l){var c=l.zoom,u=c===void 0?1:c,m=l.center,E=m===void 0?[0,0]:m,M=l.offsetOrigin,Z=M===void 0?[0,0]:M,ne=l.cameraPosition,Ce=ne===void 0?[0,0,0]:ne,Oe=l.up,Ct=Oe===void 0?[0,1,0]:Oe,Bt=l.lookAt,An=Bt===void 0?[0,0,0]:Bt,kn=l.aspect,Ir=kn===void 0?1:kn,ui=l.near,ao=ui===void 0?.1:ui,wo=l.far,Ds=wo===void 0?1e3:wo,oa=l.fov,fa=oa===void 0?45:oa;this.zoom=u,this.center=E,br(this.projectionMatrix,fa/180*Math.PI,Ir,ao,Ds);var Wa=r0.apply(b,(0,bn.Z)(Ce)),vl=r0.apply(b,(0,bn.Z)(An)),Ql=r0.apply(b,(0,bn.Z)(Ct));Lo(this.viewMatrix,Wa,vl,Ql),this.viewUncenteredMatrix=Hp(this.viewMatrix),T0(this.viewMatrix,this.viewMatrix,r0(-Z[0],Z[1],0)),Ff(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),Ff(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 1048576}},{key:"getCenter",value:function(){var l=(0,Or.Z)(this.center,2),c=l[0],u=l[1];return[c,u]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewUncenteredMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.ViewProjectionMatrixUncentered}},{key:"getFocalDistance",value:function(){return 1.2}},{key:"projectFlat",value:function(l){var c=85.0511287798,u=Math.max(Math.min(c,l[1]),-c),m=256<<20,E=Math.PI/180,M=l[0]*E,Z=u*E;Z=Math.log(Math.tan(Math.PI/4+Z/2));var ne=.5/Math.PI,Ce=.5,Oe=-.5/Math.PI;return E=.5,M=m*(ne*M+Ce)-215440491,Z=-(m*(Oe*Z+E)-106744817),[M,Z]}}]),o}(),MH=["id","style","minZoom","maxZoom","token","mapInstance","plugin","version"],TA,fN;function RH(o){var d=kH();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function kH(){if(typeof Reflect=="undefined"||!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(o){return!1}}function OH(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}OH(`.amap-logo{ display: none !important; } -`);var fz=[108.92361,34.54083];window.forceWebGL=!0;var pz="f59bcf249433f8b05caaee19f349b3d7",gz="2.0",mz=!1,TQ=null,BH=(CA=(0,ts.b2)(),CA(uN=function(o){(0,lt.Z)(l,o);var d=OH(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;Em.getLng()||L.lng3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=this.map.customCoords.lngLatToCoord(u),ne=yp();return S0(ne,ne,r0(Z[0],Z[1],m)),sf(ne,ne,r0(L[0],L[1],L[2])),mm(ne,ne,E[0]),a0(ne,ne,E[1]),l0(ne,ne,E[2]),ne}},{key:"init",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E,L,Z,ne,xe,Oe,wt,Bt,wn,Rn,Pr,ui,oo,xo,Ds,aa,fa,Za,gl,tu,ku,ju;return Fi().wrap(function(Pd){for(;;)switch(Pd.prev=Pd.next){case 0:if(E=this.config,L=E.id,Z=E.style,ne=Z===void 0?"light":Z,xe=E.minZoom,Oe=xe===void 0?0:xe,wt=E.maxZoom,Bt=wt===void 0?18:wt,wn=E.token,Rn=wn===void 0?pz:wn,Pr=E.mapInstance,ui=E.plugin,oo=ui===void 0?[]:ui,xo=E.version,Ds=xo===void 0?gz:xo,aa=(0,dm.Z)(E,kH),this.viewport=new RH,window.AMap||Pr){Pd.next=6;break}return oo.push("Map3D"),Pd.next=6,AP().load({key:Rn,version:gz,plugins:oo});case 6:Pr?(this.map=Pr,this.$mapContainer=this.map.getContainer(),Za=this.map.getCenter(),(fa=this.map.customCoords)===null||fa===void 0||fa.setCenter([Za.lng,Za.lat]),this.setCustomCoordCenter([Za.lng,Za.lat]),this.map.on("viewchange",this.handleViewChanged)):(this.$mapContainer=this.creatMapContainer(L),tu=(0,ze.Z)({mapStyle:this.getMapStyleValue(ne),zooms:[Oe,Bt],viewMode:"3D"},aa),tu.zoom&&(tu.zoom+=1),Rn===pz&&(window._AMapSecurityConfig={securityJsCode:"2653011adeb04230b3a26cc9a780a800"},console.warn("%c".concat(this.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;")),ku=new AMap.Map(this.$mapContainer,tu),this.map=ku,ju=ku.getCenter(),(gl=this.map.customCoords)===null||gl===void 0||gl.setCenter([ju.lng,ju.lat]),this.setCustomCoordCenter([ju.lng,ju.lat]),ku.on("viewchange",this.handleViewChanged)),this.initViewPort();case 8:case"end":return Pd.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"onCameraChanged",value:function(u){this.cameraChangedCallback=u}},{key:"initViewPort",value:function(){var u,m=(u=this.map.customCoords)===null||u===void 0?void 0:u.getCameraParams(),E=m.fov,L=m.near,Z=m.far,ne=m.aspect,xe=m.position,Oe=m.lookAt,wt=m.up;this.emit("mapchange");var Bt=this.map.customCoords.getCenter(),wn=this.map.getZoom();this.cameraChangedCallback&&(this.viewport.syncWithMapCamera({aspect:ne,far:Z,fov:E,cameraPosition:xe,lookAt:Oe,near:L,up:wt,zoom:wn-1,center:Bt,offsetOrigin:[xe[0],xe[1]]}),this.coordinateSystemService.setCoordinateSystem(Ud.P20_2),this.cameraChangedCallback(this.viewport))}},{key:"_sub",value:function(u,m){var E=[0,0];return E[0]=u[0]-m[0],E[1]=u[1]-m[1],E}}]),l}(Q6))||uN);function zH(o){var d=UH();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function UH(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Nw=function(o){(0,lt.Z)(l,o);var d=zH(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getServiceConstructor",value:function(){return BH}}]),l}(GC),SA={light:"mapbox://styles/zcxduo/ck2ypyb1r3q9o1co1766dex29",dark:"mapbox://styles/zcxduo/ck241p6413s0b1cpayzldv7x7",normal:"mapbox://styles/mapbox/streets-v11",blank:{version:8,sources:{},layers:[{id:"background",type:"background",layout:{visibility:"none"}}]}},EA,vz,kP,yz,_z,bz,qD,U5,$5,OP,cN,hy={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},dN=12,uE=(EA=(0,ts.b2)(),vz=(0,ts.f3)(Ls.MapConfig),kP=(0,ts.f3)(Ls.IGlobalConfigService),yz=(0,ts.f3)(Ls.ICoordinateSystemService),_z=(0,ts.f3)(Ls.IEventEmitter),EA(bz=(qD=function(){function o(){var d=this;(0,Ct.Z)(this,o),(0,Tn.Z)(this,"version","DEFAUlTMAP"),(0,Tn.Z)(this,"simpleMapCoord",new O5),(0,Tn.Z)(this,"bgColor","rgba(0.0, 0.0, 0.0, 0.0)"),Vc(this,"config",U5,this),Vc(this,"configService",$5,this),Vc(this,"coordinateSystemService",OP,this),Vc(this,"eventEmitter",cN,this),(0,Tn.Z)(this,"handleCameraChanged",function(l){var c=d.map.getCenter(),u=c.lat,m=c.lng;d.emit("mapchange"),d.viewport.syncWithMapCamera({bearing:d.map.getBearing(),center:[m,u],viewportHeight:d.map.transform.height,pitch:d.map.getPitch(),viewportWidth:d.map.transform.width,zoom:d.map.getZoom(),cameraHeight:0}),d.updateCoordinateSystemService(),d.cameraChangedCallback(d.viewport)})}return(0,nt.Z)(o,[{key:"setBgColor",value:function(l){this.bgColor=l}},{key:"addMarkerContainer",value:function(){var l=this.map.getCanvasContainer();this.markerContainer=Os("div","l7-marker-container",l),this.markerContainer.setAttribute("tabindex","-1")}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"getOverlayContainer",value:function(){}},{key:"on",value:function(l,c){b_.indexOf(l)!==-1?this.eventEmitter.on(l,c):this.map.on(hy[l]||l,c)}},{key:"off",value:function(l,c){this.map.off(hy[l]||l,c),this.eventEmitter.off(l,c)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){if(this.version==="SIMPLE")return this.simpleMapCoord.getSize();var l=this.map.transform;return[l.width,l.height]}},{key:"getType",value:function(){return"default"}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"setZoom",value:function(l){return this.map.setZoom(l)}},{key:"getCenter",value:function(){return this.map.getCenter()}},{key:"setCenter",value:function(l){this.map.setCenter(l)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return this.map.getBearing()}},{key:"getBounds",value:function(){return this.map.getBounds().toArray()}},{key:"getMinZoom",value:function(){return this.map.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.map.getMaxZoom()}},{key:"setRotation",value:function(l){this.map.setBearing(l)}},{key:"zoomIn",value:function(l,c){this.map.zoomIn(l,c)}},{key:"zoomOut",value:function(l,c){this.map.zoomOut(l,c)}},{key:"setPitch",value:function(l){return this.map.setPitch(l)}},{key:"panTo",value:function(l){this.map.panTo(l)}},{key:"panBy",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy([l,c])}},{key:"fitBounds",value:function(l,c){this.map.fitBounds(l,c)}},{key:"setMaxZoom",value:function(l){this.map.setMaxZoom(l)}},{key:"setMinZoom",value:function(l){this.map.setMinZoom(l)}},{key:"setMapStatus",value:function(l){l.doubleClickZoom===!0&&this.map.doubleClickZoom.enable(),l.doubleClickZoom===!1&&this.map.doubleClickZoom.disable(),l.dragEnable===!1&&this.map.dragPan.disable(),l.dragEnable===!0&&this.map.dragPan.enable(),l.rotateEnable===!1&&this.map.dragRotate.disable(),l.dragEnable===!0&&this.map.dragRotate.enable(),l.keyboardEnable===!1&&this.map.keyboard.disable(),l.keyboardEnable===!0&&this.map.keyboard.enable(),l.zoomEnable===!1&&this.map.scrollZoom.disable(),l.zoomEnable===!0&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(l,c){this.map.flyTo({zoom:l,center:c})}},{key:"setMapStyle",value:function(l){this.map.setStyle(this.getMapStyleValue(l))}},{key:"meterToCoord",value:function(l,c){return 1}},{key:"pixelToLngLat",value:function(l){return this.map.unproject(l)}},{key:"lngLatToPixel",value:function(l){return this.map.project(l)}},{key:"containerToLngLat",value:function(l){return this.map.unproject(l)}},{key:"lngLatToContainer",value:function(l){return this.map.project(l)}},{key:"getMapStyle",value:function(){try{var l,c=(l=this.map.getStyle().sprite)!==null&&l!==void 0?l:"";return/^mapbox:\/\/sprites\/zcxduo\/\w+\/\w+$/.test(c)?c==null?void 0:c.replace(/\/\w+$/,"").replace(/sprites/,"styles"):c}catch(u){return""}}},{key:"getMapStyleConfig",value:function(){return SA}},{key:"getMapStyleValue",value:function(l){var c;return(c=this.getMapStyleConfig()[l])!==null&&c!==void 0?c:l}},{key:"destroy",value:function(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(l){for(var c,u=arguments.length,m=new Array(u>1?u-1:0),E=1;E1?u-1:0),E=1;EdN&&c?this.coordinateSystemService.setCoordinateSystem(Ud.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(Ud.LNGLAT)}}]),o}(),U5=zd(qD.prototype,"config",[vz],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$5=zd(qD.prototype,"configService",[kP],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),OP=zd(qD.prototype,"coordinateSystemService",[yz],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),cN=zd(qD.prototype,"eventEmitter",[_z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qD))||bz);if(!window)throw Error("BMapGL JSAPI can only be used in Browser.");var Jx=function(o){return o.notload="notload",o.loading="loading",o.loaded="loaded",o.failed="failed",o}(Jx||{}),Fw={key:"",BMapGL:{version:"1.0"}},YC={BMapGL:Jx.notload},hN=[],xz=function(d){if(typeof d=="function"){if(YC.BMapGL===Jx.loaded){d(window.BMapGL);return}hN.push(d)}},V5=function(d){return new Promise(function(l,c){if(YC.BMapGL===Jx.failed)c("");else if(YC.BMapGL===Jx.notload){var u=d.key,m=d.version;if(!u){c("\u8BF7\u586B\u5199key");return}Fw.key=u,Fw.BMapGL.version=m||Fw.BMapGL.version,YC.BMapGL=Jx.loading;var E=document.body||document.head;window.___onBMapGLAPILoaded=function(Z){if(delete window.___onBMapGLAPILoaded,Z)YC.BMapGL=Jx.failed,c(Z);else for(YC.BMapGL=Jx.loaded;hN.length;)hN.splice(0,1)[0](window.BMapGL)};var L=document.createElement("script");L.type="text/javascript",L.src="https://api.map.baidu.com/api?type=webgl&v=".concat(Fw.BMapGL.version,"&ak=").concat(Fw.key,"&callback=___onBMapGLAPILoaded"),L.onerror=function(Z){YC.BMapGL=Jx.failed,c(Z)},E.appendChild(L),xz(l)}else if(YC.BMapGL===Jx.loaded){if(d.key&&d.key!==Fw.key){c("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(d.version&&d.version!==Fw.BMapGL.version){c("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}l(window.BMapGL)}else{if(d.key&&d.key!==Fw.key){c("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(d.version&&d.version!==Fw.BMapGL.version){c("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}xz(l)}})},$H=function(){delete window.BMapGL,Fw={key:"",BMapGL:{version:"1.0"}},YC={BMapGL:Jx.notload}},VH={load:V5,reset:$H},jH=["id","center","zoom","token","mapInstance","version","mapSize","minZoom","maxZoom"];function wz(o){var d=j5();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function j5(){if(typeof Reflect=="undefined"||!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(o){return!1}}function fN(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}fN(`.bmap-contianer--hide-logo .anchorBL > img[src*='api.map.baidu.com/images/logo_hd.png'] { +`);var fz=[108.92361,34.54083];window.forceWebGL=!0;var pz="f59bcf249433f8b05caaee19f349b3d7",gz="2.0",mz=!1,TQ=null,NH=(TA=(0,Go.b2)(),TA(fN=function(o){(0,lt.Z)(l,o);var d=RH(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;Em.getLng()||M.lng3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=this.map.customCoords.lngLatToCoord(u),ne=bp();return T0(ne,ne,r0(Z[0],Z[1],m)),af(ne,ne,r0(M[0],M[1],M[2])),mm(ne,ne,E[0]),s0(ne,ne,E[1]),a0(ne,ne,E[2]),ne}},{key:"init",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E,M,Z,ne,Ce,Oe,Ct,Bt,An,kn,Ir,ui,ao,wo,Ds,oa,fa,Wa,vl,Ql,Ou,Uu;return Oi().wrap(function(Ph){for(;;)switch(Ph.prev=Ph.next){case 0:if(E=this.config,M=E.id,Z=E.style,ne=Z===void 0?"light":Z,Ce=E.minZoom,Oe=Ce===void 0?0:Ce,Ct=E.maxZoom,Bt=Ct===void 0?18:Ct,An=E.token,kn=An===void 0?pz:An,Ir=E.mapInstance,ui=E.plugin,ao=ui===void 0?[]:ui,wo=E.version,Ds=wo===void 0?gz:wo,oa=(0,hm.Z)(E,MH),this.viewport=new LH,window.AMap||Ir){Ph.next=6;break}return ao.push("Map3D"),Ph.next=6,SP().load({key:kn,version:gz,plugins:ao});case 6:Ir?(this.map=Ir,this.$mapContainer=this.map.getContainer(),Wa=this.map.getCenter(),(fa=this.map.customCoords)===null||fa===void 0||fa.setCenter([Wa.lng,Wa.lat]),this.setCustomCoordCenter([Wa.lng,Wa.lat]),this.map.on("viewchange",this.handleViewChanged)):(this.$mapContainer=this.creatMapContainer(M),Ql=(0,Be.Z)({mapStyle:this.getMapStyleValue(ne),zooms:[Oe,Bt],viewMode:"3D"},oa),Ql.zoom&&(Ql.zoom+=1),kn===pz&&(window._AMapSecurityConfig={securityJsCode:"2653011adeb04230b3a26cc9a780a800"},console.warn("%c".concat(this.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;")),Ou=new AMap.Map(this.$mapContainer,Ql),this.map=Ou,Uu=Ou.getCenter(),(vl=this.map.customCoords)===null||vl===void 0||vl.setCenter([Uu.lng,Uu.lat]),this.setCustomCoordCenter([Uu.lng,Uu.lat]),Ou.on("viewchange",this.handleViewChanged)),this.initViewPort();case 8:case"end":return Ph.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"onCameraChanged",value:function(u){this.cameraChangedCallback=u}},{key:"initViewPort",value:function(){var u,m=(u=this.map.customCoords)===null||u===void 0?void 0:u.getCameraParams(),E=m.fov,M=m.near,Z=m.far,ne=m.aspect,Ce=m.position,Oe=m.lookAt,Ct=m.up;this.emit("mapchange");var Bt=this.map.customCoords.getCenter(),An=this.map.getZoom();this.cameraChangedCallback&&(this.viewport.syncWithMapCamera({aspect:ne,far:Z,fov:E,cameraPosition:Ce,lookAt:Oe,near:M,up:Ct,zoom:An-1,center:Bt,offsetOrigin:[Ce[0],Ce[1]]}),this.coordinateSystemService.setCoordinateSystem(Uh.P20_2),this.cameraChangedCallback(this.viewport))}},{key:"_sub",value:function(u,m){var E=[0,0];return E[0]=u[0]-m[0],E[1]=u[1]-m[1],E}}]),l}(rN))||fN);function FH(o){var d=BH();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function BH(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Fw=function(o){(0,lt.Z)(l,o);var d=FH(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getServiceConstructor",value:function(){return NH}}]),l}(XC),AA={light:"mapbox://styles/zcxduo/ck2ypyb1r3q9o1co1766dex29",dark:"mapbox://styles/zcxduo/ck241p6413s0b1cpayzldv7x7",normal:"mapbox://styles/mapbox/streets-v11",blank:{version:8,sources:{},layers:[{id:"background",type:"background",layout:{visibility:"none"}}]}},DA,vz,LP,yz,_z,bz,QD,B5,z5,MP,pN,dy={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},gN=12,uE=(DA=(0,Go.b2)(),vz=(0,Go.f3)(Zs.MapConfig),LP=(0,Go.f3)(Zs.IGlobalConfigService),yz=(0,Go.f3)(Zs.ICoordinateSystemService),_z=(0,Go.f3)(Zs.IEventEmitter),DA(bz=(QD=function(){function o(){var d=this;(0,wt.Z)(this,o),(0,Tn.Z)(this,"version","DEFAUlTMAP"),(0,Tn.Z)(this,"simpleMapCoord",new R5),(0,Tn.Z)(this,"bgColor","rgba(0.0, 0.0, 0.0, 0.0)"),Uc(this,"config",B5,this),Uc(this,"configService",z5,this),Uc(this,"coordinateSystemService",MP,this),Uc(this,"eventEmitter",pN,this),(0,Tn.Z)(this,"handleCameraChanged",function(l){var c=d.map.getCenter(),u=c.lat,m=c.lng;d.emit("mapchange"),d.viewport.syncWithMapCamera({bearing:d.map.getBearing(),center:[m,u],viewportHeight:d.map.transform.height,pitch:d.map.getPitch(),viewportWidth:d.map.transform.width,zoom:d.map.getZoom(),cameraHeight:0}),d.updateCoordinateSystemService(),d.cameraChangedCallback(d.viewport)})}return(0,nt.Z)(o,[{key:"setBgColor",value:function(l){this.bgColor=l}},{key:"addMarkerContainer",value:function(){var l=this.map.getCanvasContainer();this.markerContainer=Os("div","l7-marker-container",l),this.markerContainer.setAttribute("tabindex","-1")}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"getOverlayContainer",value:function(){}},{key:"on",value:function(l,c){x_.indexOf(l)!==-1?this.eventEmitter.on(l,c):this.map.on(dy[l]||l,c)}},{key:"off",value:function(l,c){this.map.off(dy[l]||l,c),this.eventEmitter.off(l,c)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){if(this.version==="SIMPLE")return this.simpleMapCoord.getSize();var l=this.map.transform;return[l.width,l.height]}},{key:"getType",value:function(){return"default"}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"setZoom",value:function(l){return this.map.setZoom(l)}},{key:"getCenter",value:function(){return this.map.getCenter()}},{key:"setCenter",value:function(l){this.map.setCenter(l)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return this.map.getBearing()}},{key:"getBounds",value:function(){return this.map.getBounds().toArray()}},{key:"getMinZoom",value:function(){return this.map.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.map.getMaxZoom()}},{key:"setRotation",value:function(l){this.map.setBearing(l)}},{key:"zoomIn",value:function(l,c){this.map.zoomIn(l,c)}},{key:"zoomOut",value:function(l,c){this.map.zoomOut(l,c)}},{key:"setPitch",value:function(l){return this.map.setPitch(l)}},{key:"panTo",value:function(l){this.map.panTo(l)}},{key:"panBy",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy([l,c])}},{key:"fitBounds",value:function(l,c){this.map.fitBounds(l,c)}},{key:"setMaxZoom",value:function(l){this.map.setMaxZoom(l)}},{key:"setMinZoom",value:function(l){this.map.setMinZoom(l)}},{key:"setMapStatus",value:function(l){l.doubleClickZoom===!0&&this.map.doubleClickZoom.enable(),l.doubleClickZoom===!1&&this.map.doubleClickZoom.disable(),l.dragEnable===!1&&this.map.dragPan.disable(),l.dragEnable===!0&&this.map.dragPan.enable(),l.rotateEnable===!1&&this.map.dragRotate.disable(),l.dragEnable===!0&&this.map.dragRotate.enable(),l.keyboardEnable===!1&&this.map.keyboard.disable(),l.keyboardEnable===!0&&this.map.keyboard.enable(),l.zoomEnable===!1&&this.map.scrollZoom.disable(),l.zoomEnable===!0&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(l,c){this.map.flyTo({zoom:l,center:c})}},{key:"setMapStyle",value:function(l){this.map.setStyle(this.getMapStyleValue(l))}},{key:"meterToCoord",value:function(l,c){return 1}},{key:"pixelToLngLat",value:function(l){return this.map.unproject(l)}},{key:"lngLatToPixel",value:function(l){return this.map.project(l)}},{key:"containerToLngLat",value:function(l){return this.map.unproject(l)}},{key:"lngLatToContainer",value:function(l){return this.map.project(l)}},{key:"getMapStyle",value:function(){try{var l,c=(l=this.map.getStyle().sprite)!==null&&l!==void 0?l:"";return/^mapbox:\/\/sprites\/zcxduo\/\w+\/\w+$/.test(c)?c==null?void 0:c.replace(/\/\w+$/,"").replace(/sprites/,"styles"):c}catch(u){return""}}},{key:"getMapStyleConfig",value:function(){return AA}},{key:"getMapStyleValue",value:function(l){var c;return(c=this.getMapStyleConfig()[l])!==null&&c!==void 0?c:l}},{key:"destroy",value:function(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(l){for(var c,u=arguments.length,m=new Array(u>1?u-1:0),E=1;E1?u-1:0),E=1;EgN&&c?this.coordinateSystemService.setCoordinateSystem(Uh.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(Uh.LNGLAT)}}]),o}(),B5=Fh(QD.prototype,"config",[vz],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z5=Fh(QD.prototype,"configService",[LP],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),MP=Fh(QD.prototype,"coordinateSystemService",[yz],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pN=Fh(QD.prototype,"eventEmitter",[_z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),QD))||bz);if(!window)throw Error("BMapGL JSAPI can only be used in Browser.");var qx=function(o){return o.notload="notload",o.loading="loading",o.loaded="loaded",o.failed="failed",o}(qx||{}),Bw={key:"",BMapGL:{version:"1.0"}},JC={BMapGL:qx.notload},mN=[],xz=function(d){if(typeof d=="function"){if(JC.BMapGL===qx.loaded){d(window.BMapGL);return}mN.push(d)}},U5=function(d){return new Promise(function(l,c){if(JC.BMapGL===qx.failed)c("");else if(JC.BMapGL===qx.notload){var u=d.key,m=d.version;if(!u){c("\u8BF7\u586B\u5199key");return}Bw.key=u,Bw.BMapGL.version=m||Bw.BMapGL.version,JC.BMapGL=qx.loading;var E=document.body||document.head;window.___onBMapGLAPILoaded=function(Z){if(delete window.___onBMapGLAPILoaded,Z)JC.BMapGL=qx.failed,c(Z);else for(JC.BMapGL=qx.loaded;mN.length;)mN.splice(0,1)[0](window.BMapGL)};var M=document.createElement("script");M.type="text/javascript",M.src="https://api.map.baidu.com/api?type=webgl&v=".concat(Bw.BMapGL.version,"&ak=").concat(Bw.key,"&callback=___onBMapGLAPILoaded"),M.onerror=function(Z){JC.BMapGL=qx.failed,c(Z)},E.appendChild(M),xz(l)}else if(JC.BMapGL===qx.loaded){if(d.key&&d.key!==Bw.key){c("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(d.version&&d.version!==Bw.BMapGL.version){c("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}l(window.BMapGL)}else{if(d.key&&d.key!==Bw.key){c("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(d.version&&d.version!==Bw.BMapGL.version){c("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}xz(l)}})},zH=function(){delete window.BMapGL,Bw={key:"",BMapGL:{version:"1.0"}},JC={BMapGL:qx.notload}},UH={load:U5,reset:zH},$H=["id","center","zoom","token","mapInstance","version","mapSize","minZoom","maxZoom"];function wz(o){var d=$5();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function $5(){if(typeof Reflect=="undefined"||!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(o){return!1}}function vN(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}vN(`.bmap-contianer--hide-logo .anchorBL > img[src*='api.map.baidu.com/images/logo_hd.png'] { display: none; } -`);var Cz={mapmove:"moving",contextmenu:"rightclick",camerachange:"update",zoomchange:"zoomend"},Sz="zLhopYPPERGtpGOgimcdKcCimGRyyIsh",WH="1.0",ZH=function(o){(0,lt.Z)(l,o);var d=wz(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=this.viewport.projectFlat(u),ne=yp();return S0(ne,ne,r0(Z[0],Z[1],m)),sf(ne,ne,r0(L[0],L[1],L[2])),mm(ne,ne,E[0]),a0(ne,ne,E[1]),l0(ne,ne,E[2]),ne}},{key:"getCustomCoordCenter",value:function(){throw new Error("Method not implemented.")}},{key:"exportMap",value:function(u){var m=this.getMap()._webglPainter._canvas,E=u==="jpg"?m==null?void 0:m.toDataURL("image/jpeg"):m==null?void 0:m.toDataURL("image/png");return E}},{key:"hideLogo",value:function(){var u=this.map.getContainer();u&&xa(u,"bmap-contianer--hide-logo")}},{key:"initMapByConfig",value:function(u){var m=u.style,E=u.pitch,L=E===void 0?0:E,Z=u.rotation,ne=Z===void 0?0:Z,xe=u.logoVisible,Oe=xe===void 0?!0:xe;m&&this.setMapStyle(m),L&&this.setPitch(L),ne&&this.setRotation(ne),Oe===!1&&this.hideLogo()}}]),l}(uE);function pN(o){var d=fx();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function fx(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Ez=function(o){(0,lt.Z)(l,o);var d=pN(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getServiceConstructor",value:function(){return ZH}}]),l}(GC),HH=_(58240),GH=_.n(HH);function KH(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=JD(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function JD(o,d){if(o){if(typeof o=="string")return W5(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return W5(o,d)}}function W5(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l1?d-1:0),c=1;c90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}return(0,nt.Z)(o,[{key:"wrap",value:function(){return new o(gN(this.lng,-180,180),this.lat)}},{key:"toArray",value:function(){return[this.lng,this.lat]}},{key:"toString",value:function(){return"LngLat(".concat(this.lng,", ").concat(this.lat,")")}},{key:"distanceTo",value:function(l){var c=Math.PI/180,u=this.lat*c,m=l.lat*c,E=Math.sin(u)*Math.sin(m)+Math.cos(u)*Math.cos(m)*Math.cos((l.lng-this.lng)*c),L=Az*Math.acos(Math.min(E,1));return L}}],[{key:"convert",value:function(l){if(l instanceof o)return l;if(Array.isArray(l)&&(l.length===2||l.length===3))return new o(Number(l[0]),Number(l[1]));if(!Array.isArray(l)&&(0,ai.Z)(l)==="object"&&l!==null){var c="lng"in l?l.lng:l.lon;return new o(Number(c),Number(l.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 [, ]")}}]),o}(),G5=function(){function o(d,l){(0,Ct.Z)(this,o),d&&(l?this.setSouthWest(d).setNorthEast(l):d.length===4?this.setSouthWest([d[0],d[1]]).setNorthEast([d[2],d[3]]):this.setSouthWest(d[0]).setNorthEast(d[1]))}return(0,nt.Z)(o,[{key:"setNorthEast",value:function(l){return this.ne=l instanceof kv?new kv(l.lng,l.lat):kv.convert(l),this}},{key:"setSouthWest",value:function(l){return this.sw=l instanceof kv?new kv(l.lng,l.lat):kv.convert(l),this}},{key:"extend",value:function(l){var c=this.sw,u=this.ne,m,E;if(l instanceof kv)m=l,E=l;else if(l instanceof o){if(m=l.sw,E=l.ne,!m||!E)return this}else{if(Array.isArray(l))if(l.length===4||l.every(Array.isArray)){var L=l;return this.extend(o.convert(L))}else{var Z=l;return this.extend(kv.convert(Z))}return this}return!c&&!u?(this.sw=new kv(m.lng,m.lat),this.ne=new kv(E.lng,E.lat)):(c.lng=Math.min(m.lng,c.lng),c.lat=Math.min(m.lat,c.lat),u.lng=Math.max(E.lng,u.lng),u.lat=Math.max(E.lat,u.lat)),this}},{key:"getCenter",value:function(){return new kv((this.sw.lng+this.ne.lng)/2,(this.sw.lat+this.ne.lat)/2)}},{key:"getSouthWest",value:function(){return this.sw}},{key:"getNorthEast",value:function(){return this.ne}},{key:"getNorthWest",value:function(){return new kv(this.getWest(),this.getNorth())}},{key:"getSouthEast",value:function(){return new kv(this.getEast(),this.getSouth())}},{key:"getWest",value:function(){return this.sw.lng}},{key:"getSouth",value:function(){return this.sw.lat}},{key:"getEast",value:function(){return this.ne.lng}},{key:"getNorth",value:function(){return this.ne.lat}},{key:"toArray",value:function(){return[this.sw.toArray(),this.ne.toArray()]}},{key:"toString",value:function(){return"LngLatBounds(".concat(this.sw.toString(),", ").concat(this.ne.toString(),")")}},{key:"isEmpty",value:function(){return!(this.sw&&this.ne)}},{key:"contains",value:function(l){var c=kv.convert(l),u=c.lng,m=c.lat,E=this.sw.lat<=m&&m<=this.ne.lat,L=this.sw.lng<=u&&u<=this.ne.lng;return this.sw.lng>this.ne.lng&&(L=this.sw.lng>=u&&u>=this.ne.lng),E&&L}}],[{key:"convert",value:function(l){return l instanceof o?l:new o(l)}}]),o}(),R0=function(){function o(d,l){(0,Ct.Z)(this,o),this.x=d,this.y=l}return(0,nt.Z)(o,[{key:"clone",value:function(){return new o(this.x,this.y)}},{key:"_add",value:function(l){return this.x+=l.x,this.y+=l.y,this}},{key:"add",value:function(l){return this.clone()._add(l)}},{key:"_sub",value:function(l){return this.x-=l.x,this.y-=l.y,this}},{key:"sub",value:function(l){return this.clone()._sub(l)}},{key:"_multByPoint",value:function(l){return this.x*=l.x,this.y*=l.y,this}},{key:"multByPoint",value:function(l){return this.clone()._multByPoint(l)}},{key:"_divByPoint",value:function(l){return this.x/=l.x,this.y/=l.y,this}},{key:"divByPoint",value:function(l){return this.clone()._divByPoint(l)}},{key:"_mult",value:function(l){return this.x*=l,this.y*=l,this}},{key:"mult",value:function(l){return this.clone()._mult(l)}},{key:"_div",value:function(l){return this.x/=l,this.y/=l,this}},{key:"div",value:function(l){return this.clone()._div(l)}},{key:"_rotate",value:function(l){var c=Math.cos(l),u=Math.sin(l),m=c*this.x-u*this.y,E=u*this.x+c*this.y;return this.x=m,this.y=E,this}},{key:"rotate",value:function(l){return this.clone()._rotate(l)}},{key:"_rotateAround",value:function(l,c){var u=Math.cos(l),m=Math.sin(l),E=c.x+u*(this.x-c.x)-m*(this.y-c.y),L=c.y+m*(this.x-c.x)+u*(this.y-c.y);return this.x=E,this.y=L,this}},{key:"roateAround",value:function(l,c){return this.clone()._rotateAround(l,c)}},{key:"_matMult",value:function(l){var c=l[0]*this.x+l[1]*this.y,u=l[2]*this.x+l[3]*this.y;return this.x=c,this.y=u,this}},{key:"matMult",value:function(l){return this.clone()._matMult(l)}},{key:"_unit",value:function(){return this.div(this.mag()),this}},{key:"unit",value:function(){return this.clone()._unit()}},{key:"_perp",value:function(){var l=this.y;return this.y=this.x,this.x=-l,this}},{key:"perp",value:function(){return this.clone()._perp()}},{key:"_round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},{key:"round",value:function(){return this.clone()._round()}},{key:"mag",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"equals",value:function(l){return this.x===l.x&&this.y===l.y}},{key:"dist",value:function(l){return Math.sqrt(this.distSqr(l))}},{key:"distSqr",value:function(l){var c=l.x-this.x,u=l.y-this.y;return c*c+u*u}},{key:"angle",value:function(){return Math.atan2(this.y,this.x)}},{key:"angleTo",value:function(l){return Math.atan2(this.y-l.y,this.x-l.x)}},{key:"angleWith",value:function(l){return this.angleWithSep(l.x,l.y)}},{key:"angleWithSep",value:function(l,c){return Math.atan2(this.x*c-this.y*l,this.x*l+this.y*c)}}],[{key:"convert",value:function(l){return l instanceof o?l:Array.isArray(l)?new o(l[0],l[1]):l}}]),o}();function AQ(){var o=new Oo(4);return Oo!=Float32Array&&(o[1]=0,o[2]=0),o[0]=1,o[3]=1,o}function die(o){var d=new glMatrix.ARRAY_TYPE(4);return d[0]=o[0],d[1]=o[1],d[2]=o[2],d[3]=o[3],d}function mN(o,d){return o[0]=d[0],o[1]=d[1],o[2]=d[2],o[3]=d[3],o}function hie(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=1,o}function fie(o,d,l,c){var u=new glMatrix.ARRAY_TYPE(4);return u[0]=o,u[1]=d,u[2]=l,u[3]=c,u}function pie(o,d,l,c,u){return o[0]=d,o[1]=l,o[2]=c,o[3]=u,o}function gie(o,d){if(o===d){var l=d[1];o[1]=d[2],o[2]=l}else o[0]=d[0],o[1]=d[2],o[2]=d[1],o[3]=d[3];return o}function dE(o,d){var l=d[0],c=d[1],u=d[2],m=d[3],E=l*m-u*c;return E?(E=1/E,o[0]=m*E,o[1]=-c*E,o[2]=-u*E,o[3]=l*E,o):null}function qH(o,d){var l=d[0];return o[0]=d[3],o[1]=-d[1],o[2]=-d[2],o[3]=l,o}function JH(o){return o[0]*o[3]-o[2]*o[1]}function DQ(o,d,l){var c=d[0],u=d[1],m=d[2],E=d[3],L=l[0],Z=l[1],ne=l[2],xe=l[3];return o[0]=c*L+m*Z,o[1]=u*L+E*Z,o[2]=c*ne+m*xe,o[3]=u*ne+E*xe,o}function QH(o,d,l){var c=d[0],u=d[1],m=d[2],E=d[3],L=Math.sin(l),Z=Math.cos(l);return o[0]=c*Z+m*L,o[1]=u*Z+E*L,o[2]=c*-L+m*Z,o[3]=u*-L+E*Z,o}function IQ(o,d,l){var c=d[0],u=d[1],m=d[2],E=d[3],L=l[0],Z=l[1];return o[0]=c*L,o[1]=u*L,o[2]=m*Z,o[3]=E*Z,o}function PQ(o,d){var l=Math.sin(d),c=Math.cos(d);return o[0]=c,o[1]=l,o[2]=-l,o[3]=c,o}function LQ(o,d){return o[0]=d[0],o[1]=0,o[2]=0,o[3]=d[1],o}function eG(o){return"mat2("+o[0]+", "+o[1]+", "+o[2]+", "+o[3]+")"}function MQ(o){return Math.hypot(o[0],o[1],o[2],o[3])}function RQ(o,d,l,c){return o[2]=c[2]/c[0],l[0]=c[0],l[1]=c[1],l[3]=c[3]-o[2]*l[1],[o,d,l]}function hE(o,d,l){return o[0]=d[0]+l[0],o[1]=d[1]+l[1],o[2]=d[2]+l[2],o[3]=d[3]+l[3],o}function vN(o,d,l){return o[0]=d[0]-l[0],o[1]=d[1]-l[1],o[2]=d[2]-l[2],o[3]=d[3]-l[3],o}function tG(o,d){return o[0]===d[0]&&o[1]===d[1]&&o[2]===d[2]&&o[3]===d[3]}function K5(o,d){var l=o[0],c=o[1],u=o[2],m=o[3],E=d[0],L=d[1],Z=d[2],ne=d[3];return Math.abs(l-E)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(E))&&Math.abs(c-L)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(L))&&Math.abs(u-Z)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(Z))&&Math.abs(m-ne)<=glMatrix.EPSILON*Math.max(1,Math.abs(m),Math.abs(ne))}function kQ(o,d,l){return o[0]=d[0]*l,o[1]=d[1]*l,o[2]=d[2]*l,o[3]=d[3]*l,o}function OQ(o,d,l,c){return o[0]=d[0]+l[0]*c,o[1]=d[1]+l[1]*c,o[2]=d[2]+l[2]*c,o[3]=d[3]+l[3]*c,o}var yN=null,NQ=null,BP=function(){function o(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if((0,Ct.Z)(this,o),isNaN(d)||d<0||isNaN(l)||l<0||isNaN(c)||c<0||isNaN(u)||u<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=d,this.bottom=l,this.left=c,this.right=u}return(0,nt.Z)(o,[{key:"interpolate",value:function(l,c,u){return c.top!=null&&l.top!=null&&(this.top=px(l.top,c.top,u)),c.bottom!=null&&l.bottom!=null&&(this.bottom=px(l.bottom,c.bottom,u)),c.left!=null&&l.left!=null&&(this.left=px(l.left,c.left,u)),c.right!=null&&l.right!=null&&(this.right=px(l.right,c.right,u)),this}},{key:"getCenter",value:function(l,c){var u=Bw((this.left+l-this.right)/2,0,l),m=Bw((this.top+c-this.bottom)/2,0,c);return new R0(u,m)}},{key:"equals",value:function(l){return this.top===l.top&&this.bottom===l.bottom&&this.left===l.left&&this.right===l.right}},{key:"clone",value:function(){return new o(this.top,this.bottom,this.left,this.right)}},{key:"toJSON",value:function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}]),o}(),Dz=2*Math.PI*Az;function Iz(o){return Dz*Math.cos(o*Math.PI/180)}function X5(o){return(180+o)/360}function zP(o){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+o*Math.PI/360)))/360}function _N(o,d){return o/Iz(d)}function Pz(o){return o*360-180}function bN(o){var d=180-o*360;return 360/Math.PI*Math.atan(Math.exp(d*Math.PI/180))-90}function nG(o,d){return o*Iz(bN(d))}function UP(o){return 1/Math.cos(o*Math.PI/180)}var TA=function(){function o(d,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;(0,Ct.Z)(this,o),this.x=+d,this.y=+l,this.z=+c}return(0,nt.Z)(o,[{key:"toLngLat",value:function(){return new kv(Pz(this.x),bN(this.y))}},{key:"toAltitude",value:function(){return nG(this.z,this.y)}},{key:"meterInMercatorCoordinateUnits",value:function(){return 1/Dz*UP(bN(this.y))}}],[{key:"fromLngLat",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=kv.convert(l);return new o(X5(u.lng),zP(u.lat),_N(c,u.lat))}}]),o}();function Lz(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=Mz(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function Mz(o,d){if(o){if(typeof o=="string")return Rz(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Rz(o,d)}}function Rz(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lc&&(ne=c-ui)}if(this.lngRange){var oo=wn.x,xo=xe.x/2;oo-xom&&(Z=m-xo)}(Z!==void 0||ne!==void 0)&&(this.center=this.unproject(new R0(Z!==void 0?Z:wn.x,ne!==void 0?ne:wn.y))),this.unmodified=Oe,this.constraining=!1}}},{key:"calcMatrices",value:function(){if(this.height){var l=this._fov/2,c=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(l)*this.height;var u=Math.PI/2+this._pitch,m=this._fov*(.5+c.y/this.height),E=Math.sin(m)*this.cameraToCenterDistance/Math.sin(Bw(Math.PI-u-m,.01,Math.PI-.01)),L=this.point,Z=L.x,ne=L.y,xe=Math.cos(Math.PI/2-this._pitch)*E+this.cameraToCenterDistance,Oe=xe*1.01,wt=this.height/50,Bt=new Float64Array(16);br(Bt,this._fov,this.width/this.height,wt,Oe),Bt[8]=-c.x*2/this.width,Bt[9]=c.y*2/this.height,sf(Bt,Bt,[1,-1,1]),S0(Bt,Bt,[0,0,-this.cameraToCenterDistance]),mm(Bt,Bt,this._pitch),l0(Bt,Bt,this.angle),S0(Bt,Bt,[-Z,-ne,0]),this.mercatorMatrix=sf([],Bt,[this.worldSize,this.worldSize,this.worldSize]),sf(Bt,Bt,[1,1,_N(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Bt,this.invProjMatrix=Nv([],this.projMatrix);var wn=this.width%2/2,Rn=this.height%2/2,Pr=Math.cos(this.angle),ui=Math.sin(this.angle),oo=Z-Math.round(Z)+Pr*wn+ui*Rn,xo=ne-Math.round(ne)+Pr*Rn+ui*wn,Ds=new Float64Array(Bt);if(S0(Ds,Ds,[oo>.5?oo-1:oo,xo>.5?xo-1:xo,0]),this.alignedProjMatrix=Ds,Bt=yp(),sf(Bt,Bt,[this.width/2,-this.height/2,1]),S0(Bt,Bt,[1,-1,0]),this.labelPlaneMatrix=Bt,Bt=yp(),sf(Bt,Bt,[1,-1,1]),S0(Bt,Bt,[-1,-1,0]),sf(Bt,Bt,[2/this.width,2/this.height,1]),this.glCoordMatrix=Bt,this.pixelMatrix=Nf(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),Bt=Nv(new Float64Array(16),this.pixelMatrix),!Bt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=Bt,this.posMatrixCache={},this.alignedPosMatrixCache={}}}}]),o}(),gx=fs.merge,G0=(0,nt.Z)(function o(d){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,Ct.Z)(this,o),gx(this,l),this.type=d});function fE(o){var d=kz();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function kz(){if(typeof Reflect=="undefined"||!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(o){return!1}}var zw=fs.merge,DA=function(o){(0,lt.Z)(l,o);var d=fE(l);function l(c){var u;(0,Ct.Z)(this,l),u=d.call(this),(0,Tn.Z)((0,ms.Z)(u),"renderFrameCallback",function(){var xe=Math.min((cE()-u.easeStart)/u.easeOptions.duration,1);u.onEaseFrame(u.easeOptions.easing(xe)),xe<1?u.easeFrameId=u.requestRenderFrame(u.renderFrameCallback):u.stop()}),u.options=c;var m=c.minZoom,E=c.maxZoom,L=c.minPitch,Z=c.maxPitch,ne=c.renderWorldCopies;return u.moving=!1,u.zooming=!1,u.bearingSnap=c.bearingSnap,u.pitchEnabled=c.pitchEnabled,u.rotateEnabled=c.rotateEnabled,u.transform=new AA(m,E,L,Z,ne),u}return(0,nt.Z)(l,[{key:"requestRenderFrame",value:function(u){return 0}},{key:"cancelRenderFrame",value:function(u){}},{key:"getCenter",value:function(){var u=this.transform.center,m=u.lng,E=u.lat;return new kv(m,E)}},{key:"getZoom",value:function(){return this.transform.zoom}},{key:"getPitch",value:function(){return this.transform.pitch}},{key:"setCenter",value:function(u,m){return this.jumpTo({center:u},m)}},{key:"setPitch",value:function(u,m){return this.jumpTo({pitch:u},m),this}},{key:"getBearing",value:function(){return this.transform.bearing}},{key:"panTo",value:function(u,m,E){return this.easeTo(zw({center:u},m),E)}},{key:"panBy",value:function(u,m,E){return u=R0.convert(u).mult(-1),this.panTo(this.transform.center,Tz({offset:u},m||{}),E)}},{key:"zoomOut",value:function(u,m){return this.zoomTo(this.getZoom()-1,u,m),this}},{key:"setBearing",value:function(u,m){return this.jumpTo({bearing:u},m),this}},{key:"setZoom",value:function(u,m){return this.jumpTo({zoom:u},m),this}},{key:"zoomIn",value:function(u,m){return this.zoomTo(this.getZoom()+1,u,m),this}},{key:"zoomTo",value:function(u,m,E){return this.easeTo(zw({zoom:u},m),E)}},{key:"getPadding",value:function(){return this.transform.padding}},{key:"setPadding",value:function(u,m){return this.jumpTo({padding:u},m),this}},{key:"rotateTo",value:function(u,m,E){return this.easeTo(zw({bearing:u},m),E)}},{key:"resetNorth",value:function(u,m){return this.rotateTo(0,zw({duration:1e3},u),m),this}},{key:"resetNorthPitch",value:function(u,m){return this.easeTo(zw({bearing:0,pitch:0,duration:1e3},u),m),this}},{key:"fitBounds",value:function(u,m,E){return this.fitInternal(this.cameraForBounds(u,m),m,E)}},{key:"cameraForBounds",value:function(u,m){return u=G5.convert(u),this.cameraForBoxAndBearing(u.getNorthWest(),u.getSouthEast(),0,m)}},{key:"snapToNorth",value:function(u,m){return Math.abs(this.getBearing())0&&arguments[0]!==void 0?arguments[0]:{},m=arguments.length>1?arguments[1]:void 0;this.stop();var E=this.transform,L=!1,Z=!1,ne=!1;return u.zoom!==void 0&&E.zoom!==+u.zoom&&(L=!0,E.zoom=+u.zoom),u.center!==void 0&&(E.center=kv.convert(u.center)),u.bearing!==void 0&&E.bearing!==+u.bearing&&(Z=!0,E.bearing=+u.bearing),u.pitch!==void 0&&E.pitch!==+u.pitch&&(ne=!0,E.pitch=+u.pitch),u.padding!==void 0&&!E.isPaddingEqual(u.padding)&&(E.padding=u.padding),this.emit("movestart",new G0("movestart",m)),this.emit("move",new G0("move",m)),L&&(this.emit("zoomstart",new G0("zoomstart",m)),this.emit("zoom",new G0("zoom",m)),this.emit("zoomend",new G0("zoomend",m))),Z&&(this.emit("rotatestart",new G0("rotatestart",m)),this.emit("rotate",new G0("rotate",m)),this.emit("rotateend",new G0("rotateend",m))),ne&&(this.emit("pitchstart",new G0("pitchstart",m)),this.emit("pitch",new G0("pitch",m)),this.emit("pitchend",new G0("pitchend",m))),this.emit("moveend",new G0("moveend",m))}},{key:"easeTo",value:function(){var u=this,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=arguments.length>1?arguments[1]:void 0;m=zw({offset:[0,0],duration:500,easing:jy},m),(m.animate===!1||!m.essential&&QD())&&(m.duration=0);var L=this.transform,Z=this.getZoom(),ne=this.getBearing(),xe=this.getPitch(),Oe=this.getPadding(),wt=m.zoom?+m.zoom:Z,Bt=m.bearing?this.normalizeBearing(m.bearing,ne):ne,wn=m.pitch?+m.pitch:xe,Rn=m.padding?m.padding:L.padding,Pr=R0.convert(m.offset),ui=L.centerPoint.add(Pr),oo=L.pointLocation(ui),xo=kv.convert(m.center||oo);this.normalizeCenter(xo);var Ds=L.project(oo),aa=L.project(xo).sub(Ds),fa=L.zoomScale(wt-Z),Za,gl;m.around&&(Za=kv.convert(m.around),gl=L.locationPoint(Za));var tu={moving:this.moving,zooming:this.zooming,rotating:this.rotating,pitching:this.pitching};return this.zooming=this.zooming||wt!==Z,this.rotating=this.rotating||ne!==Bt,this.pitching=this.pitching||wn!==xe,this.padding=!L.isPaddingEqual(Rn),this.easeId=m.easeId,this.prepareEase(E,m.noMoveStart,tu),clearTimeout(this.easeEndTimeoutID),this.ease(function(ku){if(u.zooming&&(L.zoom=px(Z,wt,ku)),u.rotating&&u.rotateEnabled&&(L.bearing=px(ne,Bt,ku)),u.pitching&&u.pitchEnabled&&(L.pitch=px(xe,wn,ku)),u.padding&&(L.interpolatePadding(Oe,Rn,ku),ui=L.centerPoint.add(Pr)),Za)L.setLocationAtPoint(Za,gl);else{var ju=L.zoomScale(L.zoom-Z),Xc=wt>Z?Math.min(2,fa):Math.max(.5,fa),Pd=Math.pow(Xc,1-ku),Lh=L.unproject(Ds.add(aa.mult(ku*Pd)).mult(ju));L.setLocationAtPoint(L.renderWorldCopies?Lh.wrap():Lh,ui)}u.fireMoveEvents(E)},function(ku){u.afterEase(E,ku)},m),this}},{key:"flyTo",value:function(){var u=this,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=arguments.length>1?arguments[1]:void 0;if(!m.essential&&QD()){var L=XH(m,["center","zoom","bearing","pitch","around"]);return this.jumpTo(L,E)}this.stop(),m=zw({offset:[0,0],speed:1.2,curve:1.42,easing:jy},m);var Z=this.transform,ne=this.getZoom(),xe=this.getBearing(),Oe=this.getPitch(),wt=this.getPadding(),Bt=m.zoom?Bw(+m.zoom,Z.minZoom,Z.maxZoom):ne,wn=m.bearing?this.normalizeBearing(m.bearing,xe):xe,Rn=m.pitch?+m.pitch:Oe,Pr="padding"in m?m.padding:Z.padding,ui=Z.zoomScale(Bt-ne),oo=R0.convert(m.offset),xo=Z.centerPoint.add(oo),Ds=Z.pointLocation(xo),aa=kv.convert(m.center||Ds);this.normalizeCenter(aa);var fa=Z.project(Ds),Za=Z.project(aa).sub(fa),gl=m.curve,tu=Math.max(Z.width,Z.height),ku=tu/ui,ju=Za.mag();if("minZoom"in m){var Xc=Bw(Math.min(m.minZoom,ne,Bt),Z.minZoom,Z.maxZoom),Pd=tu/Z.zoomScale(Xc-ne);gl=Math.sqrt(Pd/ju*2)}var Lh=gl*gl;function fg(gv){var k_=(ku*ku-tu*tu+(gv?-1:1)*Lh*Lh*ju*ju)/(2*(gv?ku:tu)*Lh*ju);return Math.log(Math.sqrt(k_*k_+1)-k_)}function Gg(gv){return(Math.exp(gv)-Math.exp(-gv))/2}function am(gv){return(Math.exp(gv)+Math.exp(-gv))/2}function sv(gv){return Gg(gv)/am(gv)}var Em=fg(0),gy=function(k_){return am(Em)/am(Em+gl*k_)},LE=function(k_){return tu*((am(Em)*sv(Em+gl*k_)-Gg(Em))/Lh)/ju},dS=(fg(1)-Em)/gl;if(Math.abs(ju)<1e-6||!isFinite(dS)){if(Math.abs(tu-ku)<1e-6)return this.easeTo(m,E);var EL=kum.maxDuration&&(m.duration=0),this.zooming=!0,this.rotating=xe!==wn,this.pitching=Rn!==Oe,this.padding=!Z.isPaddingEqual(Pr),this.prepareEase(E,!1),this.ease(function(gv){var k_=gv*dS,Ub=1/gy(k_);Z.zoom=gv===1?Bt:ne+Z.scaleZoom(Ub),u.rotating&&(Z.bearing=px(xe,wn,gv)),u.pitching&&(Z.pitch=px(Oe,Rn,gv)),u.padding&&(Z.interpolatePadding(wt,Pr,gv),xo=Z.centerPoint.add(oo));var TI=gv===1?aa:Z.unproject(fa.add(Za.mult(LE(k_))).mult(Ub));Z.setLocationAtPoint(Z.renderWorldCopies?TI.wrap():TI,xo),u.fireMoveEvents(E)},function(){return u.afterEase(E)},m),this}},{key:"fitScreenCoordinates",value:function(u,m,E,L,Z){return this.fitInternal(this.cameraForBoxAndBearing(this.transform.pointLocation(R0.convert(u)),this.transform.pointLocation(R0.convert(m)),E,L),L,Z)}},{key:"stop",value:function(u,m){if(this.easeFrameId&&(this.cancelRenderFrame(this.easeFrameId),delete this.easeFrameId,delete this.onEaseFrame),this.onEaseEnd){var E=this.onEaseEnd;delete this.onEaseEnd,E.call(this,m)}return this}},{key:"normalizeBearing",value:function(u,m){u=gN(u,-180,180);var E=Math.abs(u-m);return Math.abs(u-360-m)180?-360:E<-180?360:0}}},{key:"fireMoveEvents",value:function(u){this.emit("move",new G0("move",u)),this.zooming&&this.emit("zoom",new G0("zoom",u)),this.rotating&&this.emit("rotate",new G0("rotate",u)),this.pitching&&this.emit("rotate",new G0("pitch",u))}},{key:"prepareEase",value:function(u){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.moving=!0,!m&&!E.moving&&this.emit("movestart",new G0("movestart",u)),this.zooming&&!E.zooming&&this.emit("zoomstart",new G0("zoomstart",u)),this.rotating&&!E.rotating&&this.emit("rotatestart",new G0("rotatestart",u)),this.pitching&&!E.pitching&&this.emit("pitchstart",new G0("pitchstart",u))}},{key:"afterEase",value:function(u,m){if(!(this.easeId&&m&&this.easeId===m)){delete this.easeId;var E=this.zooming,L=this.rotating,Z=this.pitching;this.moving=!1,this.zooming=!1,this.rotating=!1,this.pitching=!1,this.padding=!1,E&&this.emit("zoomend",new G0("zoomend",u)),L&&this.emit("rotateend",new G0("rotateend",u)),Z&&this.emit("pitchend",new G0("pitchend",u)),this.emit("moveend",new G0("moveend",u))}}},{key:"ease",value:function(u,m,E){E.animate===!1||E.duration===0?(u(1),m()):(this.easeStart=cE(),this.easeOptions=E,this.onEaseFrame=u,this.onEaseEnd=m,this.easeFrameId=this.requestRenderFrame(this.renderFrameCallback))}},{key:"cameraForBoxAndBearing",value:function(u,m,E,L){var Z={top:0,bottom:0,right:0,left:0};if(L=zw({padding:Z,offset:[0,0],maxZoom:this.transform.maxZoom},L),typeof L.padding=="number"){var ne=L.padding;L.padding={top:ne,bottom:ne,right:ne,left:ne}}L.padding=zw(Z,L.padding);var xe=this.transform,Oe=xe.padding,wt=xe.project(kv.convert(u)),Bt=xe.project(kv.convert(m)),wn=wt.rotate(-E*Math.PI/180),Rn=Bt.rotate(-E*Math.PI/180),Pr=new R0(Math.max(wn.x,Rn.x),Math.max(wn.y,Rn.y)),ui=new R0(Math.min(wn.x,Rn.x),Math.min(wn.y,Rn.y)),oo=Pr.sub(ui),xo=(xe.width-(Oe.left+Oe.right+L.padding.left+L.padding.right))/oo.x,Ds=(xe.height-(Oe.top+Oe.bottom+L.padding.top+L.padding.bottom))/oo.y;if(!(Ds<0||xo<0)){var aa=Math.min(xe.scaleZoom(xe.scale*Math.min(xo,Ds)),L.maxZoom),fa=R0.convert(L.offset),Za=(L.padding.left-L.padding.right)/2,gl=(L.padding.top-L.padding.bottom)/2,tu=new R0(fa.x+Za,fa.y+gl),ku=tu.mult(xe.scale/xe.zoomScale(aa)),ju=xe.unproject(wt.add(Bt).div(2).sub(ku));return{center:ju,zoom:aa,bearing:E}}}},{key:"fitInternal",value:function(u,m,E){return u?(m=zw(u,m),delete m.padding,m.linear?this.easeTo(m,E):this.flyTo(m,E)):this}}]),l}(uc.EventEmitter);function IA(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=Oz(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function Oz(o,d){if(o){if(typeof o=="string")return U2(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return U2(o,d)}}function U2(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l3&&arguments[3]!==void 0?arguments[3]:{};"passive"in c&&eI?o.addEventListener(d,l,c):o.addEventListener(d,l,c.capture)},Q_.removeEventListener=function(o,d,l){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};"passive"in c&&eI?o.removeEventListener(d,l,c):o.removeEventListener(d,l,c.capture)};var Bz=function o(d){d.preventDefault(),d.stopPropagation(),window.removeEventListener("click",o,!0)};Q_.suppressClick=function(){window.addEventListener("click",Bz,!0),setTimeout(function(){window.removeEventListener("click",Bz,!0)},0)},Q_.mousePos=function(o,d){var l=o.getBoundingClientRect();return new R0(d.clientX-l.left-o.clientLeft,d.clientY-l.top-o.clientTop)},Q_.touchPos=function(o,d){var l=o.getBoundingClientRect(),c=[],u=IA(d),m;try{for(u.s();!(m=u.n()).done;){var E=m.value;c.push(new R0(E.clientX-l.left-o.clientLeft,E.clientY-l.top-o.clientTop))}}catch(L){u.e(L)}finally{u.f()}return c},Q_.mouseButton=function(o){return o.button},Q_.remove=function(o){o.parentNode&&o.parentNode.removeChild(o)};function xN(o){var d=VP();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function VP(){if(typeof Reflect=="undefined"||!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(o){return!1}}var iG=fs.merge,mx=function(o){(0,lt.Z)(l,o);var d=xN(l);function l(c,u,m){var E,L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};(0,Ct.Z)(this,l);var Z=J1.mousePos(u.getCanvasContainer(),m),ne=u.unproject(Z);return E=d.call(this,c,iG({point:Z,lngLat:ne,originalEvent:m},L)),E.defaultPrevented=!1,E.target=u,E}return(0,nt.Z)(l,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),l}(G0);function oG(o){var d=sG();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function sG(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Wy=function(o){(0,lt.Z)(l,o);var d=oG(l);function l(c,u,m){var E;(0,Ct.Z)(this,l);var L=c==="touchend"?m.changedTouches:m.touches,Z=J1.touchPos(u.getCanvasContainer(),L),ne=Z.map(function(wt){return u.unproject(wt)}),xe=Z.reduce(function(wt,Bt,wn,Rn){return wt.add(Bt.div(Rn.length))},new R0(0,0)),Oe=u.unproject(xe);return E=d.call(this,c,{points:Z,point:xe,lngLats:ne,lngLat:Oe,originalEvent:m}),E.defaultPrevented=!1,E}return(0,nt.Z)(l,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),l}(G0);function BQ(o){var d=aG();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function aG(){if(typeof Reflect=="undefined"||!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(o){return!1}}var zz=function(o){(0,lt.Z)(l,o);var d=BQ(l);function l(c,u,m){var E;return(0,Ct.Z)(this,l),E=d.call(this,c,{originalEvent:m}),E.defaultPrevented=!1,E}return(0,nt.Z)(l,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),l}(G0),q5=function(){function o(d){(0,Ct.Z)(this,o),this.map=d}return(0,nt.Z)(o,[{key:"reset",value:function(){this.delayContextMenu=!1,delete this.contextMenuEvent}},{key:"mousemove",value:function(l){this.map.emit(l.type,new mx(l.type,this.map,l))}},{key:"mousedown",value:function(){this.delayContextMenu=!0}},{key:"mouseup",value:function(){this.delayContextMenu=!1,this.contextMenuEvent&&(this.map.emit("contextmenu",new mx("contextmenu",this.map,this.contextMenuEvent)),delete this.contextMenuEvent)}},{key:"contextmenu",value:function(l){this.delayContextMenu?this.contextMenuEvent=l:this.map.emit(l.type,new mx(l.type,this.map,l)),this.map.listeners("contextmenu")&&l.preventDefault()}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){return!0}},{key:"disable",value:function(){return!1}}]),o}(),wN=function(){function o(d,l){(0,Ct.Z)(this,o),this.map=d,this.el=d.getCanvasContainer(),this.container=d.getContainer(),this.clickTolerance=l.clickTolerance||1}return(0,nt.Z)(o,[{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active}},{key:"enable",value:function(){this.isEnabled()||(this.enabled=!0)}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"mousedown",value:function(l,c){this.isEnabled()&&l.shiftKey&&l.button===0&&(J1.disableDrag(),this.startPos=this.lastPos=c,this.active=!0)}},{key:"mousemoveWindow",value:function(l,c){if(this.active){var u=c;if(!(this.lastPos.equals(u)||!this.box&&u.dist(this.startPos)=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function SN(o,d){if(o){if(typeof o=="string")return EN(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return EN(o,d)}}function EN(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l0&&c-l[0].time>u;)l.shift()}},{key:"onMoveEnd",value:function(l){if(this.drainInertiaBuffer(),!(this.inertiaBuffer.length<2)){var c={zoom:0,bearing:0,pitch:0,pan:new R0(0,0),pinchAround:void 0,around:void 0},u=Q5(this.inertiaBuffer),m;try{for(u.s();!(m=u.n()).done;){var E=m.value.settings;c.zoom+=E.zoomDelta||0,c.bearing+=E.bearingDelta||0,c.pitch+=E.pitchDelta||0,E.panDelta&&c.pan._add(E.panDelta),E.around&&(c.around=E.around),E.pinchAround&&(c.pinchAround=E.pinchAround)}}catch(Rn){u.e(Rn)}finally{u.f()}var L=this.inertiaBuffer[this.inertiaBuffer.length-1],Z=L.time-this.inertiaBuffer[0].time,ne={};if(c.pan.mag()){var xe=nR(c.pan.mag(),Z,PA({},cG,l||{}));ne.offset=c.pan.mult(xe.amount/c.pan.mag()),ne.center=this.map.transform.center,tR(ne,xe)}if(c.zoom){var Oe=nR(c.zoom,Z,dG);ne.zoom=this.map.transform.zoom+Oe.amount,tR(ne,Oe)}if(c.bearing){var wt=nR(c.bearing,Z,TN);ne.bearing=this.map.transform.bearing+Bw(wt.amount,-179,179),tR(ne,wt)}if(c.pitch){var Bt=nR(c.pitch,Z,hG);ne.pitch=this.map.transform.pitch+Bt.amount,tR(ne,Bt)}if(ne.zoom||ne.bearing){var wn=c.pinchAround===void 0?c.around:c.pinchAround;ne.around=wn?this.map.unproject(wn):this.map.getCenter()}return this.clear(),PA(ne,{noMoveStart:!0})}}}]),o}();function tR(o,d){(!o.duration||o.duration=this.clickTolerance||this.map.emit(l.type,new mx(l.type,this.map,l))}},{key:"dblclick",value:function(l){return this.firePreventable(new mx(l.type,this.map,l))}},{key:"mouseover",value:function(l){this.map.emit(l.type,new mx(l.type,this.map,l))}},{key:"mouseout",value:function(l){this.map.emit(l.type,new mx(l.type,this.map,l))}},{key:"touchstart",value:function(l){return this.firePreventable(new Wy(l.type,this.map,l))}},{key:"touchmove",value:function(l){this.map.emit(l.type,new Wy(l.type,this.map,l))}},{key:"touchend",value:function(l){this.map.emit(l.type,new Wy(l.type,this.map,l))}},{key:"touchcancel",value:function(l){this.map.emit(l.type,new Wy(l.type,this.map,l))}},{key:"firePreventable",value:function(l){if(this.map.emit(l.type,l),l.defaultPrevented)return{}}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){return!1}},{key:"disable",value:function(){return!1}}]),o}(),tI,nI=0,DN=2,IN=(tI={},(0,Tn.Z)(tI,nI,1),(0,Tn.Z)(tI,DN,2),tI);function gG(o,d){var l=IN[d];return o.buttons===void 0||(o.buttons&l)!==l}var rR=function(){function o(d){(0,Ct.Z)(this,o),this.reset(),this.clickTolerance=d.clickTolerance||1}return(0,nt.Z)(o,[{key:"reset",value:function(){this.active=!1,this.moved=!1,delete this.lastPoint,delete this.eventButton}},{key:"mousedown",value:function(l,c){if(!this.lastPoint){var u=J1.mouseButton(l);this.correctButton(l,u)&&(this.lastPoint=c,this.eventButton=u)}}},{key:"mousemoveWindow",value:function(l,c){var u=this.lastPoint;if(u){if(l.preventDefault(),gG(l,this.eventButton)){this.reset();return}if(!(!this.moved&&c.dist(u)Hz?c.wheelZoomRate:c.defaultZoomRate,E=xG/(1+Math.exp(-Math.abs(c.delta*m)));c.delta<0&&E!==0&&(E=1/E);var L=typeof c.targetZoom=="number"?u.zoomScale(c.targetZoom):u.scale;c.targetZoom=Math.min(u.maxZoom,Math.max(u.minZoom,u.scaleZoom(L*E))),c.type==="wheel"&&(c.startZoom=u.zoom,c.easing=c.smoothOutEasing(200)),c.delta=0}var Z=typeof c.targetZoom=="number"?c.targetZoom:u.zoom,ne=c.startZoom,xe=c.easing,Oe=!1,wt;if(c.type==="wheel"&&ne&&xe){var Bt=Math.min((cE()-c.lastWheelEventTime)/200,1),wn=xe(Bt);wt=px(ne,Z,wn),Bt<1?c.frameId||(c.frameId=!0):Oe=!0}else wt=Z,Oe=!0;return c.active=!0,Oe&&(c.active=!1,c.finishTimeout=setTimeout(function(){c.zooming=!1,c.handler.triggerRenderFrame(),delete c.targetZoom,delete c.finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Oe,zoomDelta:wt-u.zoom,around:c.aroundPoint,originalEvent:c.lastWheelEvent}}}),this.map=d,this.el=d.getCanvasContainer(),this.handler=l,this.delta=0,this.defaultZoomRate=_G,this.wheelZoomRate=bG}return(0,nt.Z)(o,[{key:"setZoomRate",value:function(l){this.defaultZoomRate=l}},{key:"setWheelZoomRate",value:function(l){this.wheelZoomRate=l}},{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active||this.finishTimeout!==void 0}},{key:"isZooming",value:function(){return!!this.zooming}},{key:"enable",value:function(l){this.isEnabled()||(this.enabled=!0,this.aroundCenter=l&&l.around==="center")}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"wheel",value:function(l){if(this.isEnabled()){var c=l.deltaMode===window.WheelEvent.DOM_DELTA_LINE?l.deltaY*40:l.deltaY,u=cE(),m=u-(this.lastWheelEventTime||0);this.lastWheelEventTime=u,c!==0&&c%Hz===0?this.type="wheel":c!==0&&Math.abs(c)<4?this.type="trackpad":m>400?(this.type=null,this.lastValue=c,this.timeout=setTimeout(this.onTimeout,40,l)):this.type||(this.type=Math.abs(m*c)<200?"trackpad":"wheel",this.timeout&&(clearTimeout(this.timeout),this.timeout=null,c+=this.lastValue)),l.shiftKey&&c&&(c=c/4),this.type&&(this.lastWheelEvent=l,this.delta-=c,this.active||this.start(l)),l.preventDefault()}}},{key:"renderFrame",value:function(){return this.onScrollFrame()}},{key:"reset",value:function(){this.active=!1}},{key:"onTimeout",value:function(l){this.type="wheel",this.delta-=this.lastValue,!this.active&&this.start&&this.start(l)}},{key:"start",value:function(l){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 c=J1.mousePos(this.el,l);this.around=kv.convert(this.aroundCenter?this.map.getCenter():this.map.unproject(c)),this.aroundPoint=this.map.transform.locationPoint(this.around),this.frameId||(this.frameId=!0,this.handler.triggerRenderFrame())}}},{key:"smoothOutEasing",value:function(l){var c=jy;if(this.prevEase){var u=this.prevEase,m=(cE()-u.start)/u.duration,E=u.easing(m+.01)-u.easing(m),L=.27/Math.sqrt(E*E+1e-4)*.01,Z=Math.sqrt(.27*.27-L*L);c=Z5(L,Z,.25,1)}return this.prevEase={start:cE(),duration:l,easing:c},c}}]),o}(),UQ=zQ,iR=function(){function o(d,l){(0,Ct.Z)(this,o),this.clickZoom=d,this.tapZoom=l}return(0,nt.Z)(o,[{key:"enable",value:function(){this.clickZoom.enable(),this.tapZoom.enable()}},{key:"disable",value:function(){this.clickZoom.disable(),this.tapZoom.disable()}},{key:"isEnabled",value:function(){return this.clickZoom.isEnabled()&&this.tapZoom.isEnabled()}},{key:"isActive",value:function(){return this.clickZoom.isActive()||this.tapZoom.isActive()}}]),o}(),$Q=function(){function o(d,l,c){(0,Ct.Z)(this,o),this.el=d,this.mousePan=l,this.touchPan=c}return(0,nt.Z)(o,[{key:"enable",value:function(l){this.inertiaOptions=l||{},this.mousePan.enable(),this.touchPan.enable(),this.el.classList.add("l7-touch-drag-pan")}},{key:"disable",value:function(){this.mousePan.disable(),this.touchPan.disable(),this.el.classList.remove("l7-touch-drag-pan")}},{key:"isEnabled",value:function(){return this.mousePan.isEnabled()&&this.touchPan.isEnabled()}},{key:"isActive",value:function(){return this.mousePan.isActive()||this.touchPan.isActive()}}]),o}(),VQ=function(){function o(d,l,c){(0,Ct.Z)(this,o),this.pitchWithRotate=d.pitchWithRotate,this.mouseRotate=l,this.mousePitch=c}return(0,nt.Z)(o,[{key:"enable",value:function(){this.mouseRotate.enable(),this.pitchWithRotate&&this.mousePitch.enable()}},{key:"disable",value:function(){this.mouseRotate.disable(),this.mousePitch.disable()}},{key:"isEnabled",value:function(){return this.mouseRotate.isEnabled()&&(!this.pitchWithRotate||this.mousePitch.isEnabled())}},{key:"isActive",value:function(){return this.mouseRotate.isActive()||this.mousePitch.isActive()}}]),o}(),jQ=function(){function o(d,l,c,u){(0,Ct.Z)(this,o),this.el=d,this.touchZoom=l,this.touchRotate=c,this.tapDragZoom=u,this.rotationDisabled=!1,this.enabled=!0}return(0,nt.Z)(o,[{key:"enable",value:function(l){this.touchZoom.enable(l),this.rotationDisabled||this.touchRotate.enable(l),this.tapDragZoom.enable(),this.el.classList.add("l7-touch-zoom-rotate")}},{key:"disable",value:function(){this.touchZoom.disable(),this.touchRotate.disable(),this.tapDragZoom.disable(),this.el.classList.remove("l7-touch-zoom-rotate")}},{key:"isEnabled",value:function(){return this.touchZoom.isEnabled()&&(this.rotationDisabled||this.touchRotate.isEnabled())&&this.tapDragZoom.isEnabled()}},{key:"isActive",value:function(){return this.touchZoom.isActive()||this.touchRotate.isActive()||this.tapDragZoom.isActive()}},{key:"disableRotation",value:function(){this.rotationDisabled=!0,this.touchRotate.disable()}},{key:"enableRotation",value:function(){this.rotationDisabled=!1,this.touchZoom.isEnabled()&&this.touchRotate.enable()}}]),o}();function Gz(o,d){for(var l={},c=0;c=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function Kz(o,d){if(o){if(typeof o=="string")return wG(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return wG(o,d)}}function wG(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lthis.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=l.timeStamp),u.length===this.numTouches&&(this.centroid=$2(c),this.touches=Gz(u,c)))}},{key:"touchmove",value:function(l,c,u){if(!(this.aborted||!this.centroid)){var m=Gz(u,c);for(var E in this.touches)if(this.touches[E]){var L=this.touches[E],Z=m[E];(!Z||Z.dist(L)>gE)&&(this.aborted=!0)}}}},{key:"touchend",value:function(l,c,u){if((!this.centroid||l.timeStamp-this.startTime>CG)&&(this.aborted=!0),u.length===0){var m=!this.aborted&&this.centroid;if(this.reset(),m)return m}}}]),o}(),RN=function(){function o(d){(0,Ct.Z)(this,o),this.singleTap=new sR(d),this.numTaps=d.numTaps,this.reset()}return(0,nt.Z)(o,[{key:"reset",value:function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}},{key:"touchstart",value:function(l,c,u){this.singleTap.touchstart(l,c,u)}},{key:"touchmove",value:function(l,c,u){this.singleTap.touchmove(l,c,u)}},{key:"touchend",value:function(l,c,u){var m=this.singleTap.touchend(l,c,u);if(m){var E=l.timeStamp-this.lastTimeoR&&this.reset(),this.tapTime?u.length>0&&(this.swipePoint=c[0],this.swipeTouch=u[0].identifier):this.tap.touchstart(l,c,u))}},{key:"touchmove",value:function(l,c,u){if(!this.tapTime)this.tap.touchmove(l,c,u);else if(this.swipePoint){if(u[0].identifier!==this.swipeTouch)return;var m=c[0],E=m.y-this.swipePoint.y;return this.swipePoint=m,l.preventDefault(),this.active=!0,{zoomDelta:E/128}}}},{key:"touchend",value:function(l,c,u){if(this.tapTime)this.swipePoint&&u.length===0&&this.reset();else{var m=this.tap.touchend(l,c,u);m&&(this.tapTime=l.timeStamp)}}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}]),o}(),Uw=function(){function o(){(0,Ct.Z)(this,o),this.zoomIn=new RN({numTouches:1,numTaps:2}),this.zoomOut=new RN({numTouches:2,numTaps:1}),this.reset()}return(0,nt.Z)(o,[{key:"reset",value:function(){this.active=!1,this.zoomIn.reset(),this.zoomOut.reset()}},{key:"touchstart",value:function(l,c,u){this.zoomIn.touchstart(l,c,u),this.zoomOut.touchstart(l,c,u)}},{key:"touchmove",value:function(l,c,u){this.zoomIn.touchmove(l,c,u),this.zoomOut.touchmove(l,c,u)}},{key:"touchend",value:function(l,c,u){var m=this,E=this.zoomIn.touchend(l,c,u),L=this.zoomOut.touchend(l,c,u);if(E)return this.active=!0,l.preventDefault(),setTimeout(function(){return m.reset()},0),{cameraAnimation:function(ne){return ne.easeTo({duration:300,zoom:ne.getZoom()+1,around:ne.unproject(E)},{originalEvent:l})}};if(L)return this.active=!0,l.preventDefault(),setTimeout(function(){return m.reset()},0),{cameraAnimation:function(ne){return ne.easeTo({duration:300,zoom:ne.getZoom()-1,around:ne.unproject(L)},{originalEvent:l})}}}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}]),o}(),Pm=function(){function o(d){(0,Ct.Z)(this,o),this.minTouches=1,this.clickTolerance=d.clickTolerance||1,this.reset()}return(0,nt.Z)(o,[{key:"reset",value:function(){this.active=!1,this.touches={},this.sum=new R0(0,0)}},{key:"touchstart",value:function(l,c,u){return this.calculateTransform(l,c,u)}},{key:"touchmove",value:function(l,c,u){if(this.active)return l.preventDefault(),this.calculateTransform(l,c,u)}},{key:"touchend",value:function(l,c,u){this.calculateTransform(l,c,u),this.active&&u.length0&&(this.active=!0);var m=Gz(u,c),E=new R0(0,0),L=new R0(0,0),Z=0;for(var ne in m)if(m[ne]){var xe=m[ne],Oe=this.touches[ne];Oe&&(E._add(xe),L._add(xe.sub(Oe)),Z++,m[ne]=xe)}if(this.touches=m,!(ZMath.abs(o.x)}var kN=100,ON=function(o){(0,lt.Z)(l,o);var d=Xz(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"reset",value:function(){mf((0,Rt.Z)(l.prototype),"reset",this).call(this),this.valid=void 0,delete this.firstMove,delete this.lastPoints}},{key:"start",value:function(u){this.lastPoints=u,lR(u[0].sub(u[1]))&&(this.valid=!1)}},{key:"move",value:function(u,m,E){var L=u[0].sub(this.lastPoints[0]),Z=u[1].sub(this.lastPoints[1]);if(this.valid=this.gestureBeginsVertically(L,Z,E.timeStamp),!!this.valid){this.lastPoints=u,this.active=!0;var ne=(L.y+Z.y)/2,xe=-.5;return{pitchDelta:ne*xe}}}},{key:"gestureBeginsVertically",value:function(u,m,E){if(this.valid!==void 0)return this.valid;var L=2,Z=u.mag()>=L,ne=m.mag()>=L;if(!(!Z&&!ne)){if(!Z||!ne)return this.firstMove===void 0&&(this.firstMove=E),E-this.firstMove0==m.y>0;return lR(u)&&lR(m)&&xe}}}]),l}(eb);function NN(o){var d=uR();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function uR(){if(typeof Reflect=="undefined"||!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(o){return!1}}var EG=25;function cR(o,d){return o.angleWith(d)*180/Math.PI}var TG=function(o){(0,lt.Z)(l,o);var d=NN(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"reset",value:function(){mf((0,Rt.Z)(l.prototype),"reset",this).call(this),delete this.minDiameter,delete this.startVector,delete this.vector}},{key:"start",value:function(u){this.startVector=this.vector=u[0].sub(u[1]),this.minDiameter=u[0].dist(u[1])}},{key:"move",value:function(u,m){var E=this.vector;if(this.vector=u[0].sub(u[1]),!(!this.active&&this.isBelowThreshold(this.vector)))return this.active=!0,{bearingDelta:cR(this.vector,E),pinchAround:m}}},{key:"isBelowThreshold",value:function(u){this.minDiameter=Math.min(this.minDiameter,u.mag());var m=Math.PI*this.minDiameter,E=EG/m*360,L=cR(u,this.startVector);return Math.abs(L)=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function LA(o,d){if(o){if(typeof o=="string")return dR(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return dR(o,d)}}function dR(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);loI}).reduce(function(Z,ne){return Z+(ne-oI)/oI},0),L=E/(c+E)*100;return{loadTime:d,fullLoadTime:l,fps:m,percentDroppedFrames:L}}};function hR(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=qz(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,L;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,L=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw L}}}}function qz(o,d){if(o){if(typeof o=="string")return zN(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return zN(o,d)}}function zN(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l0&&arguments[0]!==void 0?arguments[0]:0,c=this.currentlyRunning=this.queue;this.queue=[];var u=hR(c),m;try{for(u.s();!(m=u.n()).done;){var E=m.value;if(!E.cancelled&&(E.callback(l),this.cleared))break}}catch(L){u.e(L)}finally{u.f()}this.cleared=!1,this.currentlyRunning=!1}},{key:"clear",value:function(){this.currentlyRunning&&(this.cleared=!0),this.queue=[]}}]),o}(),$N=UN;function IG(o){var d=PG();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function PG(){if(typeof Reflect=="undefined"||!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(o){return!1}}function LG(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}LG(`.l7-map { +`);var Cz={mapmove:"moving",contextmenu:"rightclick",camerachange:"update",zoomchange:"zoomend"},Sz="zLhopYPPERGtpGOgimcdKcCimGRyyIsh",VH="1.0",jH=function(o){(0,lt.Z)(l,o);var d=wz(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=this.viewport.projectFlat(u),ne=bp();return T0(ne,ne,r0(Z[0],Z[1],m)),af(ne,ne,r0(M[0],M[1],M[2])),mm(ne,ne,E[0]),s0(ne,ne,E[1]),a0(ne,ne,E[2]),ne}},{key:"getCustomCoordCenter",value:function(){throw new Error("Method not implemented.")}},{key:"exportMap",value:function(u){var m=this.getMap()._webglPainter._canvas,E=u==="jpg"?m==null?void 0:m.toDataURL("image/jpeg"):m==null?void 0:m.toDataURL("image/png");return E}},{key:"hideLogo",value:function(){var u=this.map.getContainer();u&&ba(u,"bmap-contianer--hide-logo")}},{key:"initMapByConfig",value:function(u){var m=u.style,E=u.pitch,M=E===void 0?0:E,Z=u.rotation,ne=Z===void 0?0:Z,Ce=u.logoVisible,Oe=Ce===void 0?!0:Ce;m&&this.setMapStyle(m),M&&this.setPitch(M),ne&&this.setRotation(ne),Oe===!1&&this.hideLogo()}}]),l}(uE);function yN(o){var d=px();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function px(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Ez=function(o){(0,lt.Z)(l,o);var d=yN(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getServiceConstructor",value:function(){return jH}}]),l}(XC),WH=y(99874),ZH=y.n(WH);function HH(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=eI(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function eI(o,d){if(o){if(typeof o=="string")return V5(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return V5(o,d)}}function V5(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l1?d-1:0),c=1;c90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}return(0,nt.Z)(o,[{key:"wrap",value:function(){return new o(_N(this.lng,-180,180),this.lat)}},{key:"toArray",value:function(){return[this.lng,this.lat]}},{key:"toString",value:function(){return"LngLat(".concat(this.lng,", ").concat(this.lat,")")}},{key:"distanceTo",value:function(l){var c=Math.PI/180,u=this.lat*c,m=l.lat*c,E=Math.sin(u)*Math.sin(m)+Math.cos(u)*Math.cos(m)*Math.cos((l.lng-this.lng)*c),M=Az*Math.acos(Math.min(E,1));return M}}],[{key:"convert",value:function(l){if(l instanceof o)return l;if(Array.isArray(l)&&(l.length===2||l.length===3))return new o(Number(l[0]),Number(l[1]));if(!Array.isArray(l)&&(0,ai.Z)(l)==="object"&&l!==null){var c="lng"in l?l.lng:l.lon;return new o(Number(c),Number(l.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 [, ]")}}]),o}(),Z5=function(){function o(d,l){(0,wt.Z)(this,o),d&&(l?this.setSouthWest(d).setNorthEast(l):d.length===4?this.setSouthWest([d[0],d[1]]).setNorthEast([d[2],d[3]]):this.setSouthWest(d[0]).setNorthEast(d[1]))}return(0,nt.Z)(o,[{key:"setNorthEast",value:function(l){return this.ne=l instanceof kv?new kv(l.lng,l.lat):kv.convert(l),this}},{key:"setSouthWest",value:function(l){return this.sw=l instanceof kv?new kv(l.lng,l.lat):kv.convert(l),this}},{key:"extend",value:function(l){var c=this.sw,u=this.ne,m,E;if(l instanceof kv)m=l,E=l;else if(l instanceof o){if(m=l.sw,E=l.ne,!m||!E)return this}else{if(Array.isArray(l))if(l.length===4||l.every(Array.isArray)){var M=l;return this.extend(o.convert(M))}else{var Z=l;return this.extend(kv.convert(Z))}return this}return!c&&!u?(this.sw=new kv(m.lng,m.lat),this.ne=new kv(E.lng,E.lat)):(c.lng=Math.min(m.lng,c.lng),c.lat=Math.min(m.lat,c.lat),u.lng=Math.max(E.lng,u.lng),u.lat=Math.max(E.lat,u.lat)),this}},{key:"getCenter",value:function(){return new kv((this.sw.lng+this.ne.lng)/2,(this.sw.lat+this.ne.lat)/2)}},{key:"getSouthWest",value:function(){return this.sw}},{key:"getNorthEast",value:function(){return this.ne}},{key:"getNorthWest",value:function(){return new kv(this.getWest(),this.getNorth())}},{key:"getSouthEast",value:function(){return new kv(this.getEast(),this.getSouth())}},{key:"getWest",value:function(){return this.sw.lng}},{key:"getSouth",value:function(){return this.sw.lat}},{key:"getEast",value:function(){return this.ne.lng}},{key:"getNorth",value:function(){return this.ne.lat}},{key:"toArray",value:function(){return[this.sw.toArray(),this.ne.toArray()]}},{key:"toString",value:function(){return"LngLatBounds(".concat(this.sw.toString(),", ").concat(this.ne.toString(),")")}},{key:"isEmpty",value:function(){return!(this.sw&&this.ne)}},{key:"contains",value:function(l){var c=kv.convert(l),u=c.lng,m=c.lat,E=this.sw.lat<=m&&m<=this.ne.lat,M=this.sw.lng<=u&&u<=this.ne.lng;return this.sw.lng>this.ne.lng&&(M=this.sw.lng>=u&&u>=this.ne.lng),E&&M}}],[{key:"convert",value:function(l){return l instanceof o?l:new o(l)}}]),o}(),O0=function(){function o(d,l){(0,wt.Z)(this,o),this.x=d,this.y=l}return(0,nt.Z)(o,[{key:"clone",value:function(){return new o(this.x,this.y)}},{key:"_add",value:function(l){return this.x+=l.x,this.y+=l.y,this}},{key:"add",value:function(l){return this.clone()._add(l)}},{key:"_sub",value:function(l){return this.x-=l.x,this.y-=l.y,this}},{key:"sub",value:function(l){return this.clone()._sub(l)}},{key:"_multByPoint",value:function(l){return this.x*=l.x,this.y*=l.y,this}},{key:"multByPoint",value:function(l){return this.clone()._multByPoint(l)}},{key:"_divByPoint",value:function(l){return this.x/=l.x,this.y/=l.y,this}},{key:"divByPoint",value:function(l){return this.clone()._divByPoint(l)}},{key:"_mult",value:function(l){return this.x*=l,this.y*=l,this}},{key:"mult",value:function(l){return this.clone()._mult(l)}},{key:"_div",value:function(l){return this.x/=l,this.y/=l,this}},{key:"div",value:function(l){return this.clone()._div(l)}},{key:"_rotate",value:function(l){var c=Math.cos(l),u=Math.sin(l),m=c*this.x-u*this.y,E=u*this.x+c*this.y;return this.x=m,this.y=E,this}},{key:"rotate",value:function(l){return this.clone()._rotate(l)}},{key:"_rotateAround",value:function(l,c){var u=Math.cos(l),m=Math.sin(l),E=c.x+u*(this.x-c.x)-m*(this.y-c.y),M=c.y+m*(this.x-c.x)+u*(this.y-c.y);return this.x=E,this.y=M,this}},{key:"roateAround",value:function(l,c){return this.clone()._rotateAround(l,c)}},{key:"_matMult",value:function(l){var c=l[0]*this.x+l[1]*this.y,u=l[2]*this.x+l[3]*this.y;return this.x=c,this.y=u,this}},{key:"matMult",value:function(l){return this.clone()._matMult(l)}},{key:"_unit",value:function(){return this.div(this.mag()),this}},{key:"unit",value:function(){return this.clone()._unit()}},{key:"_perp",value:function(){var l=this.y;return this.y=this.x,this.x=-l,this}},{key:"perp",value:function(){return this.clone()._perp()}},{key:"_round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},{key:"round",value:function(){return this.clone()._round()}},{key:"mag",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"equals",value:function(l){return this.x===l.x&&this.y===l.y}},{key:"dist",value:function(l){return Math.sqrt(this.distSqr(l))}},{key:"distSqr",value:function(l){var c=l.x-this.x,u=l.y-this.y;return c*c+u*u}},{key:"angle",value:function(){return Math.atan2(this.y,this.x)}},{key:"angleTo",value:function(l){return Math.atan2(this.y-l.y,this.x-l.x)}},{key:"angleWith",value:function(l){return this.angleWithSep(l.x,l.y)}},{key:"angleWithSep",value:function(l,c){return Math.atan2(this.x*c-this.y*l,this.x*l+this.y*c)}}],[{key:"convert",value:function(l){return l instanceof o?l:Array.isArray(l)?new o(l[0],l[1]):l}}]),o}();function AQ(){var o=new Oo(4);return Oo!=Float32Array&&(o[1]=0,o[2]=0),o[0]=1,o[3]=1,o}function hie(o){var d=new glMatrix.ARRAY_TYPE(4);return d[0]=o[0],d[1]=o[1],d[2]=o[2],d[3]=o[3],d}function bN(o,d){return o[0]=d[0],o[1]=d[1],o[2]=d[2],o[3]=d[3],o}function die(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=1,o}function fie(o,d,l,c){var u=new glMatrix.ARRAY_TYPE(4);return u[0]=o,u[1]=d,u[2]=l,u[3]=c,u}function pie(o,d,l,c,u){return o[0]=d,o[1]=l,o[2]=c,o[3]=u,o}function gie(o,d){if(o===d){var l=d[1];o[1]=d[2],o[2]=l}else o[0]=d[0],o[1]=d[2],o[2]=d[1],o[3]=d[3];return o}function hE(o,d){var l=d[0],c=d[1],u=d[2],m=d[3],E=l*m-u*c;return E?(E=1/E,o[0]=m*E,o[1]=-c*E,o[2]=-u*E,o[3]=l*E,o):null}function XH(o,d){var l=d[0];return o[0]=d[3],o[1]=-d[1],o[2]=-d[2],o[3]=l,o}function YH(o){return o[0]*o[3]-o[2]*o[1]}function DQ(o,d,l){var c=d[0],u=d[1],m=d[2],E=d[3],M=l[0],Z=l[1],ne=l[2],Ce=l[3];return o[0]=c*M+m*Z,o[1]=u*M+E*Z,o[2]=c*ne+m*Ce,o[3]=u*ne+E*Ce,o}function qH(o,d,l){var c=d[0],u=d[1],m=d[2],E=d[3],M=Math.sin(l),Z=Math.cos(l);return o[0]=c*Z+m*M,o[1]=u*Z+E*M,o[2]=c*-M+m*Z,o[3]=u*-M+E*Z,o}function IQ(o,d,l){var c=d[0],u=d[1],m=d[2],E=d[3],M=l[0],Z=l[1];return o[0]=c*M,o[1]=u*M,o[2]=m*Z,o[3]=E*Z,o}function PQ(o,d){var l=Math.sin(d),c=Math.cos(d);return o[0]=c,o[1]=l,o[2]=-l,o[3]=c,o}function LQ(o,d){return o[0]=d[0],o[1]=0,o[2]=0,o[3]=d[1],o}function JH(o){return"mat2("+o[0]+", "+o[1]+", "+o[2]+", "+o[3]+")"}function MQ(o){return Math.hypot(o[0],o[1],o[2],o[3])}function RQ(o,d,l,c){return o[2]=c[2]/c[0],l[0]=c[0],l[1]=c[1],l[3]=c[3]-o[2]*l[1],[o,d,l]}function dE(o,d,l){return o[0]=d[0]+l[0],o[1]=d[1]+l[1],o[2]=d[2]+l[2],o[3]=d[3]+l[3],o}function xN(o,d,l){return o[0]=d[0]-l[0],o[1]=d[1]-l[1],o[2]=d[2]-l[2],o[3]=d[3]-l[3],o}function QH(o,d){return o[0]===d[0]&&o[1]===d[1]&&o[2]===d[2]&&o[3]===d[3]}function H5(o,d){var l=o[0],c=o[1],u=o[2],m=o[3],E=d[0],M=d[1],Z=d[2],ne=d[3];return Math.abs(l-E)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(E))&&Math.abs(c-M)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(u-Z)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(Z))&&Math.abs(m-ne)<=glMatrix.EPSILON*Math.max(1,Math.abs(m),Math.abs(ne))}function kQ(o,d,l){return o[0]=d[0]*l,o[1]=d[1]*l,o[2]=d[2]*l,o[3]=d[3]*l,o}function OQ(o,d,l,c){return o[0]=d[0]+l[0]*c,o[1]=d[1]+l[1]*c,o[2]=d[2]+l[2]*c,o[3]=d[3]+l[3]*c,o}var wN=null,NQ=null,OP=function(){function o(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if((0,wt.Z)(this,o),isNaN(d)||d<0||isNaN(l)||l<0||isNaN(c)||c<0||isNaN(u)||u<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=d,this.bottom=l,this.left=c,this.right=u}return(0,nt.Z)(o,[{key:"interpolate",value:function(l,c,u){return c.top!=null&&l.top!=null&&(this.top=gx(l.top,c.top,u)),c.bottom!=null&&l.bottom!=null&&(this.bottom=gx(l.bottom,c.bottom,u)),c.left!=null&&l.left!=null&&(this.left=gx(l.left,c.left,u)),c.right!=null&&l.right!=null&&(this.right=gx(l.right,c.right,u)),this}},{key:"getCenter",value:function(l,c){var u=zw((this.left+l-this.right)/2,0,l),m=zw((this.top+c-this.bottom)/2,0,c);return new O0(u,m)}},{key:"equals",value:function(l){return this.top===l.top&&this.bottom===l.bottom&&this.left===l.left&&this.right===l.right}},{key:"clone",value:function(){return new o(this.top,this.bottom,this.left,this.right)}},{key:"toJSON",value:function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}]),o}(),Dz=2*Math.PI*Az;function Iz(o){return Dz*Math.cos(o*Math.PI/180)}function G5(o){return(180+o)/360}function NP(o){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+o*Math.PI/360)))/360}function CN(o,d){return o/Iz(d)}function Pz(o){return o*360-180}function SN(o){var d=180-o*360;return 360/Math.PI*Math.atan(Math.exp(d*Math.PI/180))-90}function eG(o,d){return o*Iz(SN(d))}function FP(o){return 1/Math.cos(o*Math.PI/180)}var IA=function(){function o(d,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;(0,wt.Z)(this,o),this.x=+d,this.y=+l,this.z=+c}return(0,nt.Z)(o,[{key:"toLngLat",value:function(){return new kv(Pz(this.x),SN(this.y))}},{key:"toAltitude",value:function(){return eG(this.z,this.y)}},{key:"meterInMercatorCoordinateUnits",value:function(){return 1/Dz*FP(SN(this.y))}}],[{key:"fromLngLat",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=kv.convert(l);return new o(G5(u.lng),NP(u.lat),CN(c,u.lat))}}]),o}();function Lz(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=Mz(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function Mz(o,d){if(o){if(typeof o=="string")return Rz(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Rz(o,d)}}function Rz(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lc&&(ne=c-ui)}if(this.lngRange){var ao=An.x,wo=Ce.x/2;ao-wom&&(Z=m-wo)}(Z!==void 0||ne!==void 0)&&(this.center=this.unproject(new O0(Z!==void 0?Z:An.x,ne!==void 0?ne:An.y))),this.unmodified=Oe,this.constraining=!1}}},{key:"calcMatrices",value:function(){if(this.height){var l=this._fov/2,c=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(l)*this.height;var u=Math.PI/2+this._pitch,m=this._fov*(.5+c.y/this.height),E=Math.sin(m)*this.cameraToCenterDistance/Math.sin(zw(Math.PI-u-m,.01,Math.PI-.01)),M=this.point,Z=M.x,ne=M.y,Ce=Math.cos(Math.PI/2-this._pitch)*E+this.cameraToCenterDistance,Oe=Ce*1.01,Ct=this.height/50,Bt=new Float64Array(16);br(Bt,this._fov,this.width/this.height,Ct,Oe),Bt[8]=-c.x*2/this.width,Bt[9]=c.y*2/this.height,af(Bt,Bt,[1,-1,1]),T0(Bt,Bt,[0,0,-this.cameraToCenterDistance]),mm(Bt,Bt,this._pitch),a0(Bt,Bt,this.angle),T0(Bt,Bt,[-Z,-ne,0]),this.mercatorMatrix=af([],Bt,[this.worldSize,this.worldSize,this.worldSize]),af(Bt,Bt,[1,1,CN(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Bt,this.invProjMatrix=Nv([],this.projMatrix);var An=this.width%2/2,kn=this.height%2/2,Ir=Math.cos(this.angle),ui=Math.sin(this.angle),ao=Z-Math.round(Z)+Ir*An+ui*kn,wo=ne-Math.round(ne)+Ir*kn+ui*An,Ds=new Float64Array(Bt);if(T0(Ds,Ds,[ao>.5?ao-1:ao,wo>.5?wo-1:wo,0]),this.alignedProjMatrix=Ds,Bt=bp(),af(Bt,Bt,[this.width/2,-this.height/2,1]),T0(Bt,Bt,[1,-1,0]),this.labelPlaneMatrix=Bt,Bt=bp(),af(Bt,Bt,[1,-1,1]),T0(Bt,Bt,[-1,-1,0]),af(Bt,Bt,[2/this.width,2/this.height,1]),this.glCoordMatrix=Bt,this.pixelMatrix=Ff(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),Bt=Nv(new Float64Array(16),this.pixelMatrix),!Bt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=Bt,this.posMatrixCache={},this.alignedPosMatrixCache={}}}}]),o}(),mx=fs.merge,G0=(0,nt.Z)(function o(d){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,wt.Z)(this,o),mx(this,l),this.type=d});function fE(o){var d=kz();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function kz(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Uw=fs.merge,LA=function(o){(0,lt.Z)(l,o);var d=fE(l);function l(c){var u;(0,wt.Z)(this,l),u=d.call(this),(0,Tn.Z)((0,ys.Z)(u),"renderFrameCallback",function(){var Ce=Math.min((cE()-u.easeStart)/u.easeOptions.duration,1);u.onEaseFrame(u.easeOptions.easing(Ce)),Ce<1?u.easeFrameId=u.requestRenderFrame(u.renderFrameCallback):u.stop()}),u.options=c;var m=c.minZoom,E=c.maxZoom,M=c.minPitch,Z=c.maxPitch,ne=c.renderWorldCopies;return u.moving=!1,u.zooming=!1,u.bearingSnap=c.bearingSnap,u.pitchEnabled=c.pitchEnabled,u.rotateEnabled=c.rotateEnabled,u.transform=new PA(m,E,M,Z,ne),u}return(0,nt.Z)(l,[{key:"requestRenderFrame",value:function(u){return 0}},{key:"cancelRenderFrame",value:function(u){}},{key:"getCenter",value:function(){var u=this.transform.center,m=u.lng,E=u.lat;return new kv(m,E)}},{key:"getZoom",value:function(){return this.transform.zoom}},{key:"getPitch",value:function(){return this.transform.pitch}},{key:"setCenter",value:function(u,m){return this.jumpTo({center:u},m)}},{key:"setPitch",value:function(u,m){return this.jumpTo({pitch:u},m),this}},{key:"getBearing",value:function(){return this.transform.bearing}},{key:"panTo",value:function(u,m,E){return this.easeTo(Uw({center:u},m),E)}},{key:"panBy",value:function(u,m,E){return u=O0.convert(u).mult(-1),this.panTo(this.transform.center,Tz({offset:u},m||{}),E)}},{key:"zoomOut",value:function(u,m){return this.zoomTo(this.getZoom()-1,u,m),this}},{key:"setBearing",value:function(u,m){return this.jumpTo({bearing:u},m),this}},{key:"setZoom",value:function(u,m){return this.jumpTo({zoom:u},m),this}},{key:"zoomIn",value:function(u,m){return this.zoomTo(this.getZoom()+1,u,m),this}},{key:"zoomTo",value:function(u,m,E){return this.easeTo(Uw({zoom:u},m),E)}},{key:"getPadding",value:function(){return this.transform.padding}},{key:"setPadding",value:function(u,m){return this.jumpTo({padding:u},m),this}},{key:"rotateTo",value:function(u,m,E){return this.easeTo(Uw({bearing:u},m),E)}},{key:"resetNorth",value:function(u,m){return this.rotateTo(0,Uw({duration:1e3},u),m),this}},{key:"resetNorthPitch",value:function(u,m){return this.easeTo(Uw({bearing:0,pitch:0,duration:1e3},u),m),this}},{key:"fitBounds",value:function(u,m,E){return this.fitInternal(this.cameraForBounds(u,m),m,E)}},{key:"cameraForBounds",value:function(u,m){return u=Z5.convert(u),this.cameraForBoxAndBearing(u.getNorthWest(),u.getSouthEast(),0,m)}},{key:"snapToNorth",value:function(u,m){return Math.abs(this.getBearing())0&&arguments[0]!==void 0?arguments[0]:{},m=arguments.length>1?arguments[1]:void 0;this.stop();var E=this.transform,M=!1,Z=!1,ne=!1;return u.zoom!==void 0&&E.zoom!==+u.zoom&&(M=!0,E.zoom=+u.zoom),u.center!==void 0&&(E.center=kv.convert(u.center)),u.bearing!==void 0&&E.bearing!==+u.bearing&&(Z=!0,E.bearing=+u.bearing),u.pitch!==void 0&&E.pitch!==+u.pitch&&(ne=!0,E.pitch=+u.pitch),u.padding!==void 0&&!E.isPaddingEqual(u.padding)&&(E.padding=u.padding),this.emit("movestart",new G0("movestart",m)),this.emit("move",new G0("move",m)),M&&(this.emit("zoomstart",new G0("zoomstart",m)),this.emit("zoom",new G0("zoom",m)),this.emit("zoomend",new G0("zoomend",m))),Z&&(this.emit("rotatestart",new G0("rotatestart",m)),this.emit("rotate",new G0("rotate",m)),this.emit("rotateend",new G0("rotateend",m))),ne&&(this.emit("pitchstart",new G0("pitchstart",m)),this.emit("pitch",new G0("pitch",m)),this.emit("pitchend",new G0("pitchend",m))),this.emit("moveend",new G0("moveend",m))}},{key:"easeTo",value:function(){var u=this,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=arguments.length>1?arguments[1]:void 0;m=Uw({offset:[0,0],duration:500,easing:jy},m),(m.animate===!1||!m.essential&&tI())&&(m.duration=0);var M=this.transform,Z=this.getZoom(),ne=this.getBearing(),Ce=this.getPitch(),Oe=this.getPadding(),Ct=m.zoom?+m.zoom:Z,Bt=m.bearing?this.normalizeBearing(m.bearing,ne):ne,An=m.pitch?+m.pitch:Ce,kn=m.padding?m.padding:M.padding,Ir=O0.convert(m.offset),ui=M.centerPoint.add(Ir),ao=M.pointLocation(ui),wo=kv.convert(m.center||ao);this.normalizeCenter(wo);var Ds=M.project(ao),oa=M.project(wo).sub(Ds),fa=M.zoomScale(Ct-Z),Wa,vl;m.around&&(Wa=kv.convert(m.around),vl=M.locationPoint(Wa));var Ql={moving:this.moving,zooming:this.zooming,rotating:this.rotating,pitching:this.pitching};return this.zooming=this.zooming||Ct!==Z,this.rotating=this.rotating||ne!==Bt,this.pitching=this.pitching||An!==Ce,this.padding=!M.isPaddingEqual(kn),this.easeId=m.easeId,this.prepareEase(E,m.noMoveStart,Ql),clearTimeout(this.easeEndTimeoutID),this.ease(function(Ou){if(u.zooming&&(M.zoom=gx(Z,Ct,Ou)),u.rotating&&u.rotateEnabled&&(M.bearing=gx(ne,Bt,Ou)),u.pitching&&u.pitchEnabled&&(M.pitch=gx(Ce,An,Ou)),u.padding&&(M.interpolatePadding(Oe,kn,Ou),ui=M.centerPoint.add(Ir)),Wa)M.setLocationAtPoint(Wa,vl);else{var Uu=M.zoomScale(M.zoom-Z),hh=Ct>Z?Math.min(2,fa):Math.max(.5,fa),Ph=Math.pow(hh,1-Ou),Ld=M.unproject(Ds.add(oa.mult(Ou*Ph)).mult(Uu));M.setLocationAtPoint(M.renderWorldCopies?Ld.wrap():Ld,ui)}u.fireMoveEvents(E)},function(Ou){u.afterEase(E,Ou)},m),this}},{key:"flyTo",value:function(){var u=this,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=arguments.length>1?arguments[1]:void 0;if(!m.essential&&tI()){var M=GH(m,["center","zoom","bearing","pitch","around"]);return this.jumpTo(M,E)}this.stop(),m=Uw({offset:[0,0],speed:1.2,curve:1.42,easing:jy},m);var Z=this.transform,ne=this.getZoom(),Ce=this.getBearing(),Oe=this.getPitch(),Ct=this.getPadding(),Bt=m.zoom?zw(+m.zoom,Z.minZoom,Z.maxZoom):ne,An=m.bearing?this.normalizeBearing(m.bearing,Ce):Ce,kn=m.pitch?+m.pitch:Oe,Ir="padding"in m?m.padding:Z.padding,ui=Z.zoomScale(Bt-ne),ao=O0.convert(m.offset),wo=Z.centerPoint.add(ao),Ds=Z.pointLocation(wo),oa=kv.convert(m.center||Ds);this.normalizeCenter(oa);var fa=Z.project(Ds),Wa=Z.project(oa).sub(fa),vl=m.curve,Ql=Math.max(Z.width,Z.height),Ou=Ql/ui,Uu=Wa.mag();if("minZoom"in m){var hh=zw(Math.min(m.minZoom,ne,Bt),Z.minZoom,Z.maxZoom),Ph=Ql/Z.zoomScale(hh-ne);vl=Math.sqrt(Ph/Uu*2)}var Ld=vl*vl;function mg(Pv){var a1=(Ou*Ou-Ql*Ql+(Pv?-1:1)*Ld*Ld*Uu*Uu)/(2*(Pv?Ou:Ql)*Ld*Uu);return Math.log(Math.sqrt(a1*a1+1)-a1)}function Yg(Pv){return(Math.exp(Pv)-Math.exp(-Pv))/2}function am(Pv){return(Math.exp(Pv)+Math.exp(-Pv))/2}function iv(Pv){return Yg(Pv)/am(Pv)}var Dm=mg(0),gy=function(a1){return am(Dm)/am(Dm+vl*a1)},RE=function(a1){return Ql*((am(Dm)*iv(Dm+vl*a1)-Yg(Dm))/Ld)/Uu},kE=(mg(1)-Dm)/vl;if(Math.abs(Uu)<1e-6||!isFinite(kE)){if(Math.abs(Ql-Ou)<1e-6)return this.easeTo(m,E);var Yy=Oum.maxDuration&&(m.duration=0),this.zooming=!0,this.rotating=Ce!==An,this.pitching=kn!==Oe,this.padding=!Z.isPaddingEqual(Ir),this.prepareEase(E,!1),this.ease(function(Pv){var a1=Pv*kE,CI=1/gy(a1);Z.zoom=Pv===1?Bt:ne+Z.scaleZoom(CI),u.rotating&&(Z.bearing=gx(Ce,An,Pv)),u.pitching&&(Z.pitch=gx(Oe,kn,Pv)),u.padding&&(Z.interpolatePadding(Ct,Ir,Pv),wo=Z.centerPoint.add(ao));var wL=Pv===1?oa:Z.unproject(fa.add(Wa.mult(RE(a1))).mult(CI));Z.setLocationAtPoint(Z.renderWorldCopies?wL.wrap():wL,wo),u.fireMoveEvents(E)},function(){return u.afterEase(E)},m),this}},{key:"fitScreenCoordinates",value:function(u,m,E,M,Z){return this.fitInternal(this.cameraForBoxAndBearing(this.transform.pointLocation(O0.convert(u)),this.transform.pointLocation(O0.convert(m)),E,M),M,Z)}},{key:"stop",value:function(u,m){if(this.easeFrameId&&(this.cancelRenderFrame(this.easeFrameId),delete this.easeFrameId,delete this.onEaseFrame),this.onEaseEnd){var E=this.onEaseEnd;delete this.onEaseEnd,E.call(this,m)}return this}},{key:"normalizeBearing",value:function(u,m){u=_N(u,-180,180);var E=Math.abs(u-m);return Math.abs(u-360-m)180?-360:E<-180?360:0}}},{key:"fireMoveEvents",value:function(u){this.emit("move",new G0("move",u)),this.zooming&&this.emit("zoom",new G0("zoom",u)),this.rotating&&this.emit("rotate",new G0("rotate",u)),this.pitching&&this.emit("rotate",new G0("pitch",u))}},{key:"prepareEase",value:function(u){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.moving=!0,!m&&!E.moving&&this.emit("movestart",new G0("movestart",u)),this.zooming&&!E.zooming&&this.emit("zoomstart",new G0("zoomstart",u)),this.rotating&&!E.rotating&&this.emit("rotatestart",new G0("rotatestart",u)),this.pitching&&!E.pitching&&this.emit("pitchstart",new G0("pitchstart",u))}},{key:"afterEase",value:function(u,m){if(!(this.easeId&&m&&this.easeId===m)){delete this.easeId;var E=this.zooming,M=this.rotating,Z=this.pitching;this.moving=!1,this.zooming=!1,this.rotating=!1,this.pitching=!1,this.padding=!1,E&&this.emit("zoomend",new G0("zoomend",u)),M&&this.emit("rotateend",new G0("rotateend",u)),Z&&this.emit("pitchend",new G0("pitchend",u)),this.emit("moveend",new G0("moveend",u))}}},{key:"ease",value:function(u,m,E){E.animate===!1||E.duration===0?(u(1),m()):(this.easeStart=cE(),this.easeOptions=E,this.onEaseFrame=u,this.onEaseEnd=m,this.easeFrameId=this.requestRenderFrame(this.renderFrameCallback))}},{key:"cameraForBoxAndBearing",value:function(u,m,E,M){var Z={top:0,bottom:0,right:0,left:0};if(M=Uw({padding:Z,offset:[0,0],maxZoom:this.transform.maxZoom},M),typeof M.padding=="number"){var ne=M.padding;M.padding={top:ne,bottom:ne,right:ne,left:ne}}M.padding=Uw(Z,M.padding);var Ce=this.transform,Oe=Ce.padding,Ct=Ce.project(kv.convert(u)),Bt=Ce.project(kv.convert(m)),An=Ct.rotate(-E*Math.PI/180),kn=Bt.rotate(-E*Math.PI/180),Ir=new O0(Math.max(An.x,kn.x),Math.max(An.y,kn.y)),ui=new O0(Math.min(An.x,kn.x),Math.min(An.y,kn.y)),ao=Ir.sub(ui),wo=(Ce.width-(Oe.left+Oe.right+M.padding.left+M.padding.right))/ao.x,Ds=(Ce.height-(Oe.top+Oe.bottom+M.padding.top+M.padding.bottom))/ao.y;if(!(Ds<0||wo<0)){var oa=Math.min(Ce.scaleZoom(Ce.scale*Math.min(wo,Ds)),M.maxZoom),fa=O0.convert(M.offset),Wa=(M.padding.left-M.padding.right)/2,vl=(M.padding.top-M.padding.bottom)/2,Ql=new O0(fa.x+Wa,fa.y+vl),Ou=Ql.mult(Ce.scale/Ce.zoomScale(oa)),Uu=Ce.unproject(Ct.add(Bt).div(2).sub(Ou));return{center:Uu,zoom:oa,bearing:E}}}},{key:"fitInternal",value:function(u,m,E){return u?(m=Uw(u,m),delete m.padding,m.linear?this.easeTo(m,E):this.flyTo(m,E)):this}}]),l}(gc.EventEmitter);function MA(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=Oz(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function Oz(o,d){if(o){if(typeof o=="string")return z2(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return z2(o,d)}}function z2(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l3&&arguments[3]!==void 0?arguments[3]:{};"passive"in c&&nI?o.addEventListener(d,l,c):o.addEventListener(d,l,c.capture)},eb.removeEventListener=function(o,d,l){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};"passive"in c&&nI?o.removeEventListener(d,l,c):o.removeEventListener(d,l,c.capture)};var Bz=function o(d){d.preventDefault(),d.stopPropagation(),window.removeEventListener("click",o,!0)};eb.suppressClick=function(){window.addEventListener("click",Bz,!0),setTimeout(function(){window.removeEventListener("click",Bz,!0)},0)},eb.mousePos=function(o,d){var l=o.getBoundingClientRect();return new O0(d.clientX-l.left-o.clientLeft,d.clientY-l.top-o.clientTop)},eb.touchPos=function(o,d){var l=o.getBoundingClientRect(),c=[],u=MA(d),m;try{for(u.s();!(m=u.n()).done;){var E=m.value;c.push(new O0(E.clientX-l.left-o.clientLeft,E.clientY-l.top-o.clientTop))}}catch(M){u.e(M)}finally{u.f()}return c},eb.mouseButton=function(o){return o.button},eb.remove=function(o){o.parentNode&&o.parentNode.removeChild(o)};function EN(o){var d=zP();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function zP(){if(typeof Reflect=="undefined"||!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(o){return!1}}var nG=fs.merge,vx=function(o){(0,lt.Z)(l,o);var d=EN(l);function l(c,u,m){var E,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};(0,wt.Z)(this,l);var Z=J1.mousePos(u.getCanvasContainer(),m),ne=u.unproject(Z);return E=d.call(this,c,nG({point:Z,lngLat:ne,originalEvent:m},M)),E.defaultPrevented=!1,E.target=u,E}return(0,nt.Z)(l,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),l}(G0);function rG(o){var d=iG();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function iG(){if(typeof Reflect=="undefined"||!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(o){return!1}}var Wy=function(o){(0,lt.Z)(l,o);var d=rG(l);function l(c,u,m){var E;(0,wt.Z)(this,l);var M=c==="touchend"?m.changedTouches:m.touches,Z=J1.touchPos(u.getCanvasContainer(),M),ne=Z.map(function(Ct){return u.unproject(Ct)}),Ce=Z.reduce(function(Ct,Bt,An,kn){return Ct.add(Bt.div(kn.length))},new O0(0,0)),Oe=u.unproject(Ce);return E=d.call(this,c,{points:Z,point:Ce,lngLats:ne,lngLat:Oe,originalEvent:m}),E.defaultPrevented=!1,E}return(0,nt.Z)(l,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),l}(G0);function BQ(o){var d=oG();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function oG(){if(typeof Reflect=="undefined"||!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(o){return!1}}var zz=function(o){(0,lt.Z)(l,o);var d=BQ(l);function l(c,u,m){var E;return(0,wt.Z)(this,l),E=d.call(this,c,{originalEvent:m}),E.defaultPrevented=!1,E}return(0,nt.Z)(l,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),l}(G0),X5=function(){function o(d){(0,wt.Z)(this,o),this.map=d}return(0,nt.Z)(o,[{key:"reset",value:function(){this.delayContextMenu=!1,delete this.contextMenuEvent}},{key:"mousemove",value:function(l){this.map.emit(l.type,new vx(l.type,this.map,l))}},{key:"mousedown",value:function(){this.delayContextMenu=!0}},{key:"mouseup",value:function(){this.delayContextMenu=!1,this.contextMenuEvent&&(this.map.emit("contextmenu",new vx("contextmenu",this.map,this.contextMenuEvent)),delete this.contextMenuEvent)}},{key:"contextmenu",value:function(l){this.delayContextMenu?this.contextMenuEvent=l:this.map.emit(l.type,new vx(l.type,this.map,l)),this.map.listeners("contextmenu")&&l.preventDefault()}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){return!0}},{key:"disable",value:function(){return!1}}]),o}(),TN=function(){function o(d,l){(0,wt.Z)(this,o),this.map=d,this.el=d.getCanvasContainer(),this.container=d.getContainer(),this.clickTolerance=l.clickTolerance||1}return(0,nt.Z)(o,[{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active}},{key:"enable",value:function(){this.isEnabled()||(this.enabled=!0)}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"mousedown",value:function(l,c){this.isEnabled()&&l.shiftKey&&l.button===0&&(J1.disableDrag(),this.startPos=this.lastPos=c,this.active=!0)}},{key:"mousemoveWindow",value:function(l,c){if(this.active){var u=c;if(!(this.lastPos.equals(u)||!this.box&&u.dist(this.startPos)=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function DN(o,d){if(o){if(typeof o=="string")return IN(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return IN(o,d)}}function IN(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l0&&c-l[0].time>u;)l.shift()}},{key:"onMoveEnd",value:function(l){if(this.drainInertiaBuffer(),!(this.inertiaBuffer.length<2)){var c={zoom:0,bearing:0,pitch:0,pan:new O0(0,0),pinchAround:void 0,around:void 0},u=q5(this.inertiaBuffer),m;try{for(u.s();!(m=u.n()).done;){var E=m.value.settings;c.zoom+=E.zoomDelta||0,c.bearing+=E.bearingDelta||0,c.pitch+=E.pitchDelta||0,E.panDelta&&c.pan._add(E.panDelta),E.around&&(c.around=E.around),E.pinchAround&&(c.pinchAround=E.pinchAround)}}catch(kn){u.e(kn)}finally{u.f()}var M=this.inertiaBuffer[this.inertiaBuffer.length-1],Z=M.time-this.inertiaBuffer[0].time,ne={};if(c.pan.mag()){var Ce=eR(c.pan.mag(),Z,RA({},lG,l||{}));ne.offset=c.pan.mult(Ce.amount/c.pan.mag()),ne.center=this.map.transform.center,Q5(ne,Ce)}if(c.zoom){var Oe=eR(c.zoom,Z,uG);ne.zoom=this.map.transform.zoom+Oe.amount,Q5(ne,Oe)}if(c.bearing){var Ct=eR(c.bearing,Z,PN);ne.bearing=this.map.transform.bearing+zw(Ct.amount,-179,179),Q5(ne,Ct)}if(c.pitch){var Bt=eR(c.pitch,Z,cG);ne.pitch=this.map.transform.pitch+Bt.amount,Q5(ne,Bt)}if(ne.zoom||ne.bearing){var An=c.pinchAround===void 0?c.around:c.pinchAround;ne.around=An?this.map.unproject(An):this.map.getCenter()}return this.clear(),RA(ne,{noMoveStart:!0})}}}]),o}();function Q5(o,d){(!o.duration||o.duration=this.clickTolerance||this.map.emit(l.type,new vx(l.type,this.map,l))}},{key:"dblclick",value:function(l){return this.firePreventable(new vx(l.type,this.map,l))}},{key:"mouseover",value:function(l){this.map.emit(l.type,new vx(l.type,this.map,l))}},{key:"mouseout",value:function(l){this.map.emit(l.type,new vx(l.type,this.map,l))}},{key:"touchstart",value:function(l){return this.firePreventable(new Wy(l.type,this.map,l))}},{key:"touchmove",value:function(l){this.map.emit(l.type,new Wy(l.type,this.map,l))}},{key:"touchend",value:function(l){this.map.emit(l.type,new Wy(l.type,this.map,l))}},{key:"touchcancel",value:function(l){this.map.emit(l.type,new Wy(l.type,this.map,l))}},{key:"firePreventable",value:function(l){if(this.map.emit(l.type,l),l.defaultPrevented)return{}}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){return!1}},{key:"disable",value:function(){return!1}}]),o}(),rI,iI=0,MN=2,RN=(rI={},(0,Tn.Z)(rI,iI,1),(0,Tn.Z)(rI,MN,2),rI);function fG(o,d){var l=RN[d];return o.buttons===void 0||(o.buttons&l)!==l}var tR=function(){function o(d){(0,wt.Z)(this,o),this.reset(),this.clickTolerance=d.clickTolerance||1}return(0,nt.Z)(o,[{key:"reset",value:function(){this.active=!1,this.moved=!1,delete this.lastPoint,delete this.eventButton}},{key:"mousedown",value:function(l,c){if(!this.lastPoint){var u=J1.mouseButton(l);this.correctButton(l,u)&&(this.lastPoint=c,this.eventButton=u)}}},{key:"mousemoveWindow",value:function(l,c){var u=this.lastPoint;if(u){if(l.preventDefault(),fG(l,this.eventButton)){this.reset();return}if(!(!this.moved&&c.dist(u)Hz?c.wheelZoomRate:c.defaultZoomRate,E=_G/(1+Math.exp(-Math.abs(c.delta*m)));c.delta<0&&E!==0&&(E=1/E);var M=typeof c.targetZoom=="number"?u.zoomScale(c.targetZoom):u.scale;c.targetZoom=Math.min(u.maxZoom,Math.max(u.minZoom,u.scaleZoom(M*E))),c.type==="wheel"&&(c.startZoom=u.zoom,c.easing=c.smoothOutEasing(200)),c.delta=0}var Z=typeof c.targetZoom=="number"?c.targetZoom:u.zoom,ne=c.startZoom,Ce=c.easing,Oe=!1,Ct;if(c.type==="wheel"&&ne&&Ce){var Bt=Math.min((cE()-c.lastWheelEventTime)/200,1),An=Ce(Bt);Ct=gx(ne,Z,An),Bt<1?c.frameId||(c.frameId=!0):Oe=!0}else Ct=Z,Oe=!0;return c.active=!0,Oe&&(c.active=!1,c.finishTimeout=setTimeout(function(){c.zooming=!1,c.handler.triggerRenderFrame(),delete c.targetZoom,delete c.finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Oe,zoomDelta:Ct-u.zoom,around:c.aroundPoint,originalEvent:c.lastWheelEvent}}}),this.map=d,this.el=d.getCanvasContainer(),this.handler=l,this.delta=0,this.defaultZoomRate=vG,this.wheelZoomRate=yG}return(0,nt.Z)(o,[{key:"setZoomRate",value:function(l){this.defaultZoomRate=l}},{key:"setWheelZoomRate",value:function(l){this.wheelZoomRate=l}},{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active||this.finishTimeout!==void 0}},{key:"isZooming",value:function(){return!!this.zooming}},{key:"enable",value:function(l){this.isEnabled()||(this.enabled=!0,this.aroundCenter=l&&l.around==="center")}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"wheel",value:function(l){if(this.isEnabled()){var c=l.deltaMode===window.WheelEvent.DOM_DELTA_LINE?l.deltaY*40:l.deltaY,u=cE(),m=u-(this.lastWheelEventTime||0);this.lastWheelEventTime=u,c!==0&&c%Hz===0?this.type="wheel":c!==0&&Math.abs(c)<4?this.type="trackpad":m>400?(this.type=null,this.lastValue=c,this.timeout=setTimeout(this.onTimeout,40,l)):this.type||(this.type=Math.abs(m*c)<200?"trackpad":"wheel",this.timeout&&(clearTimeout(this.timeout),this.timeout=null,c+=this.lastValue)),l.shiftKey&&c&&(c=c/4),this.type&&(this.lastWheelEvent=l,this.delta-=c,this.active||this.start(l)),l.preventDefault()}}},{key:"renderFrame",value:function(){return this.onScrollFrame()}},{key:"reset",value:function(){this.active=!1}},{key:"onTimeout",value:function(l){this.type="wheel",this.delta-=this.lastValue,!this.active&&this.start&&this.start(l)}},{key:"start",value:function(l){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 c=J1.mousePos(this.el,l);this.around=kv.convert(this.aroundCenter?this.map.getCenter():this.map.unproject(c)),this.aroundPoint=this.map.transform.locationPoint(this.around),this.frameId||(this.frameId=!0,this.handler.triggerRenderFrame())}}},{key:"smoothOutEasing",value:function(l){var c=jy;if(this.prevEase){var u=this.prevEase,m=(cE()-u.start)/u.duration,E=u.easing(m+.01)-u.easing(m),M=.27/Math.sqrt(E*E+1e-4)*.01,Z=Math.sqrt(.27*.27-M*M);c=j5(M,Z,.25,1)}return this.prevEase={start:cE(),duration:l,easing:c},c}}]),o}(),UQ=zQ,nR=function(){function o(d,l){(0,wt.Z)(this,o),this.clickZoom=d,this.tapZoom=l}return(0,nt.Z)(o,[{key:"enable",value:function(){this.clickZoom.enable(),this.tapZoom.enable()}},{key:"disable",value:function(){this.clickZoom.disable(),this.tapZoom.disable()}},{key:"isEnabled",value:function(){return this.clickZoom.isEnabled()&&this.tapZoom.isEnabled()}},{key:"isActive",value:function(){return this.clickZoom.isActive()||this.tapZoom.isActive()}}]),o}(),$Q=function(){function o(d,l,c){(0,wt.Z)(this,o),this.el=d,this.mousePan=l,this.touchPan=c}return(0,nt.Z)(o,[{key:"enable",value:function(l){this.inertiaOptions=l||{},this.mousePan.enable(),this.touchPan.enable(),this.el.classList.add("l7-touch-drag-pan")}},{key:"disable",value:function(){this.mousePan.disable(),this.touchPan.disable(),this.el.classList.remove("l7-touch-drag-pan")}},{key:"isEnabled",value:function(){return this.mousePan.isEnabled()&&this.touchPan.isEnabled()}},{key:"isActive",value:function(){return this.mousePan.isActive()||this.touchPan.isActive()}}]),o}(),VQ=function(){function o(d,l,c){(0,wt.Z)(this,o),this.pitchWithRotate=d.pitchWithRotate,this.mouseRotate=l,this.mousePitch=c}return(0,nt.Z)(o,[{key:"enable",value:function(){this.mouseRotate.enable(),this.pitchWithRotate&&this.mousePitch.enable()}},{key:"disable",value:function(){this.mouseRotate.disable(),this.mousePitch.disable()}},{key:"isEnabled",value:function(){return this.mouseRotate.isEnabled()&&(!this.pitchWithRotate||this.mousePitch.isEnabled())}},{key:"isActive",value:function(){return this.mouseRotate.isActive()||this.mousePitch.isActive()}}]),o}(),jQ=function(){function o(d,l,c,u){(0,wt.Z)(this,o),this.el=d,this.touchZoom=l,this.touchRotate=c,this.tapDragZoom=u,this.rotationDisabled=!1,this.enabled=!0}return(0,nt.Z)(o,[{key:"enable",value:function(l){this.touchZoom.enable(l),this.rotationDisabled||this.touchRotate.enable(l),this.tapDragZoom.enable(),this.el.classList.add("l7-touch-zoom-rotate")}},{key:"disable",value:function(){this.touchZoom.disable(),this.touchRotate.disable(),this.tapDragZoom.disable(),this.el.classList.remove("l7-touch-zoom-rotate")}},{key:"isEnabled",value:function(){return this.touchZoom.isEnabled()&&(this.rotationDisabled||this.touchRotate.isEnabled())&&this.tapDragZoom.isEnabled()}},{key:"isActive",value:function(){return this.touchZoom.isActive()||this.touchRotate.isActive()||this.tapDragZoom.isActive()}},{key:"disableRotation",value:function(){this.rotationDisabled=!0,this.touchRotate.disable()}},{key:"enableRotation",value:function(){this.rotationDisabled=!1,this.touchZoom.isEnabled()&&this.touchRotate.enable()}}]),o}();function Gz(o,d){for(var l={},c=0;c=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function Kz(o,d){if(o){if(typeof o=="string")return bG(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return bG(o,d)}}function bG(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lthis.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=l.timeStamp),u.length===this.numTouches&&(this.centroid=U2(c),this.touches=Gz(u,c)))}},{key:"touchmove",value:function(l,c,u){if(!(this.aborted||!this.centroid)){var m=Gz(u,c);for(var E in this.touches)if(this.touches[E]){var M=this.touches[E],Z=m[E];(!Z||Z.dist(M)>gE)&&(this.aborted=!0)}}}},{key:"touchend",value:function(l,c,u){if((!this.centroid||l.timeStamp-this.startTime>xG)&&(this.aborted=!0),u.length===0){var m=!this.aborted&&this.centroid;if(this.reset(),m)return m}}}]),o}(),FN=function(){function o(d){(0,wt.Z)(this,o),this.singleTap=new iR(d),this.numTaps=d.numTaps,this.reset()}return(0,nt.Z)(o,[{key:"reset",value:function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}},{key:"touchstart",value:function(l,c,u){this.singleTap.touchstart(l,c,u)}},{key:"touchmove",value:function(l,c,u){this.singleTap.touchmove(l,c,u)}},{key:"touchend",value:function(l,c,u){var m=this.singleTap.touchend(l,c,u);if(m){var E=l.timeStamp-this.lastTimerR&&this.reset(),this.tapTime?u.length>0&&(this.swipePoint=c[0],this.swipeTouch=u[0].identifier):this.tap.touchstart(l,c,u))}},{key:"touchmove",value:function(l,c,u){if(!this.tapTime)this.tap.touchmove(l,c,u);else if(this.swipePoint){if(u[0].identifier!==this.swipeTouch)return;var m=c[0],E=m.y-this.swipePoint.y;return this.swipePoint=m,l.preventDefault(),this.active=!0,{zoomDelta:E/128}}}},{key:"touchend",value:function(l,c,u){if(this.tapTime)this.swipePoint&&u.length===0&&this.reset();else{var m=this.tap.touchend(l,c,u);m&&(this.tapTime=l.timeStamp)}}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}]),o}(),$w=function(){function o(){(0,wt.Z)(this,o),this.zoomIn=new FN({numTouches:1,numTaps:2}),this.zoomOut=new FN({numTouches:2,numTaps:1}),this.reset()}return(0,nt.Z)(o,[{key:"reset",value:function(){this.active=!1,this.zoomIn.reset(),this.zoomOut.reset()}},{key:"touchstart",value:function(l,c,u){this.zoomIn.touchstart(l,c,u),this.zoomOut.touchstart(l,c,u)}},{key:"touchmove",value:function(l,c,u){this.zoomIn.touchmove(l,c,u),this.zoomOut.touchmove(l,c,u)}},{key:"touchend",value:function(l,c,u){var m=this,E=this.zoomIn.touchend(l,c,u),M=this.zoomOut.touchend(l,c,u);if(E)return this.active=!0,l.preventDefault(),setTimeout(function(){return m.reset()},0),{cameraAnimation:function(ne){return ne.easeTo({duration:300,zoom:ne.getZoom()+1,around:ne.unproject(E)},{originalEvent:l})}};if(M)return this.active=!0,l.preventDefault(),setTimeout(function(){return m.reset()},0),{cameraAnimation:function(ne){return ne.easeTo({duration:300,zoom:ne.getZoom()-1,around:ne.unproject(M)},{originalEvent:l})}}}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}]),o}(),Mm=function(){function o(d){(0,wt.Z)(this,o),this.minTouches=1,this.clickTolerance=d.clickTolerance||1,this.reset()}return(0,nt.Z)(o,[{key:"reset",value:function(){this.active=!1,this.touches={},this.sum=new O0(0,0)}},{key:"touchstart",value:function(l,c,u){return this.calculateTransform(l,c,u)}},{key:"touchmove",value:function(l,c,u){if(this.active)return l.preventDefault(),this.calculateTransform(l,c,u)}},{key:"touchend",value:function(l,c,u){this.calculateTransform(l,c,u),this.active&&u.length0&&(this.active=!0);var m=Gz(u,c),E=new O0(0,0),M=new O0(0,0),Z=0;for(var ne in m)if(m[ne]){var Ce=m[ne],Oe=this.touches[ne];Oe&&(E._add(Ce),M._add(Ce.sub(Oe)),Z++,m[ne]=Ce)}if(this.touches=m,!(ZMath.abs(o.x)}var BN=100,zN=function(o){(0,lt.Z)(l,o);var d=Xz(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"reset",value:function(){vf((0,Mt.Z)(l.prototype),"reset",this).call(this),this.valid=void 0,delete this.firstMove,delete this.lastPoints}},{key:"start",value:function(u){this.lastPoints=u,sR(u[0].sub(u[1]))&&(this.valid=!1)}},{key:"move",value:function(u,m,E){var M=u[0].sub(this.lastPoints[0]),Z=u[1].sub(this.lastPoints[1]);if(this.valid=this.gestureBeginsVertically(M,Z,E.timeStamp),!!this.valid){this.lastPoints=u,this.active=!0;var ne=(M.y+Z.y)/2,Ce=-.5;return{pitchDelta:ne*Ce}}}},{key:"gestureBeginsVertically",value:function(u,m,E){if(this.valid!==void 0)return this.valid;var M=2,Z=u.mag()>=M,ne=m.mag()>=M;if(!(!Z&&!ne)){if(!Z||!ne)return this.firstMove===void 0&&(this.firstMove=E),E-this.firstMove0==m.y>0;return sR(u)&&sR(m)&&Ce}}}]),l}(tb);function UN(o){var d=aR();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function aR(){if(typeof Reflect=="undefined"||!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(o){return!1}}var CG=25;function lR(o,d){return o.angleWith(d)*180/Math.PI}var SG=function(o){(0,lt.Z)(l,o);var d=UN(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"reset",value:function(){vf((0,Mt.Z)(l.prototype),"reset",this).call(this),delete this.minDiameter,delete this.startVector,delete this.vector}},{key:"start",value:function(u){this.startVector=this.vector=u[0].sub(u[1]),this.minDiameter=u[0].dist(u[1])}},{key:"move",value:function(u,m){var E=this.vector;if(this.vector=u[0].sub(u[1]),!(!this.active&&this.isBelowThreshold(this.vector)))return this.active=!0,{bearingDelta:lR(this.vector,E),pinchAround:m}}},{key:"isBelowThreshold",value:function(u){this.minDiameter=Math.min(this.minDiameter,u.mag());var m=Math.PI*this.minDiameter,E=CG/m*360,M=lR(u,this.startVector);return Math.abs(M)=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function kA(o,d){if(o){if(typeof o=="string")return uR(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return uR(o,d)}}function uR(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);laI}).reduce(function(Z,ne){return Z+(ne-aI)/aI},0),M=E/(c+E)*100;return{loadTime:d,fullLoadTime:l,fps:m,percentDroppedFrames:M}}};function cR(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=qz(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function qz(o,d){if(o){if(typeof o=="string")return jN(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return jN(o,d)}}function jN(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l0&&arguments[0]!==void 0?arguments[0]:0,c=this.currentlyRunning=this.queue;this.queue=[];var u=cR(c),m;try{for(u.s();!(m=u.n()).done;){var E=m.value;if(!E.cancelled&&(E.callback(l),this.cleared))break}}catch(M){u.e(M)}finally{u.f()}this.cleared=!1,this.currentlyRunning=!1}},{key:"clear",value:function(){this.currentlyRunning&&(this.cleared=!0),this.queue=[]}}]),o}(),ZN=WN;function AG(o){var d=DG();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function DG(){if(typeof Reflect=="undefined"||!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(o){return!1}}function IG(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}IG(`.l7-map { font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif; overflow: hidden; position: relative; @@ -7654,7 +7600,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 0.5; z-index: 10; } -`);var HP=-2,VN=22,Jz=fs.merge,mE=0,GP=60,Qz={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:HP,maxZoom:VN,minPitch:mE,maxPitch:GP,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,trackResize:!0,renderWorldCopies:!0,pitchEnabled:!0,rotateEnabled:!0},KP=function(o){(0,lt.Z)(l,o);var d=IG(l);function l(c){var u;return(0,Ct.Z)(this,l),u=d.call(this,Jz({},Qz,c)),(0,Tn.Z)((0,ms.Z)(u),"renderTaskQueue",new $N),(0,Tn.Z)((0,ms.Z)(u),"trackResize",!0),(0,Tn.Z)((0,ms.Z)(u),"onWindowOnline",function(){u.update()}),(0,Tn.Z)((0,ms.Z)(u),"onWindowResize",function(m){u.trackResize&&u.resize({originalEvent:m}).update()}),u.initContainer(),u.resize(),u.handlers=new ZP((0,ms.Z)(u),u.options),typeof window!="undefined"&&(window.addEventListener("online",u.onWindowOnline,!1),window.addEventListener("resize",u.onWindowResize,!1),window.addEventListener("orientationchange",u.onWindowResize,!1)),u}return(0,nt.Z)(l,[{key:"resize",value:function(u){var m=this.containerDimensions(),E=m[0],L=m[1];this.transform.resize(E,L);var Z=!this.moving;return Z&&(this.stop(),this.emit("movestart",new Event("movestart",u)),this.emit("move",new Event("move",u))),this.emit("resize",new Event("resize",u)),Z&&this.emit("moveend",new Event("moveend",u)),this}},{key:"getContainer",value:function(){return this.container}},{key:"getCanvas",value:function(){return this.canvas}},{key:"getCanvasContainer",value:function(){return this.canvasContainer}},{key:"project",value:function(u){return this.transform.locationPoint(kv.convert(u))}},{key:"unproject",value:function(u){return this.transform.pointLocation(R0.convert(u))}},{key:"getBounds",value:function(){return this.transform.getBounds()}},{key:"getMaxBounds",value:function(){return this.transform.getMaxBounds()}},{key:"setMaxBounds",value:function(u){this.transform.setMaxBounds(G5.convert(u))}},{key:"setStyle",value:function(u){}},{key:"setMinZoom",value:function(u){if(u=u==null?HP:u,u>=HP&&u<=this.transform.maxZoom)return this.transform.minZoom=u,this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=u,this.getZoom()>u&&this.setZoom(u),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(u){if(u=u==null?mE:u,u=mE&&u<=this.transform.maxPitch)return this.transform.minPitch=u,this.getPitch()GP)throw new Error("maxPitch must be less than or equal to ".concat(GP));if(u>=this.transform.minPitch)return this.transform.maxPitch=u,this.getPitch()>u&&this.setPitch(u),this;throw new Error("maxPitch must be greater than the current minPitch")}},{key:"getMaxPitch",value:function(){return this.transform.maxPitch}},{key:"getRenderWorldCopies",value:function(){return this.transform.renderWorldCopies}},{key:"setRenderWorldCopies",value:function(u){this.transform.renderWorldCopies=!!u}},{key:"remove",value:function(){this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear()}},{key:"requestRenderFrame",value:function(u){return this.update(),this.renderTaskQueue.add(u)}},{key:"cancelRenderFrame",value:function(u){return this.renderTaskQueue.remove(u)}},{key:"triggerRepaint",value:function(){var u=this;this.frame||(this.frame=FP(function(m){MA.frame(m),u.frame=null,u.update(m)}))}},{key:"update",value:function(u){var m=this;this.frame||(this.frame=FP(function(E){MA.frame(E),m.frame=null,m.renderTaskQueue.run(u)}))}},{key:"initContainer",value:function(){if(typeof this.options.container=="string"){if(this.container=window.document.getElementById(this.options.container),!this.container)throw new Error("Container '".concat(this.options.container,"' not found."))}else if(this.options.container instanceof HTMLElement)this.container=this.options.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");var u=this.container;u.classList.add("l7-map");var m=this.canvasContainer=Os("div","l7-canvas-container",u);this.options.interactive&&m.classList.add("l7-interactive")}},{key:"containerDimensions",value:function(){var u=0,m=0;return this.container&&(u=this.container.clientWidth||400,m=this.container.clientHeight||300),[u,m]}},{key:"resizeCanvas",value:function(u,m){var E=Un||1;this.canvas.width=E*u,this.canvas.height=E*m,this.canvas.style.width="".concat(u,"px"),this.canvas.style.height="".concat(m,"px")}}]),l}(DA),RA=fs.throttle,ZQ=function(){function o(d){var l=this;(0,Ct.Z)(this,o),(0,Tn.Z)(this,"onHashChange",function(){var c=l.getCurrentHash();if(c.length>=3&&!c.some(function(m){return isNaN(+m)})){var u=l.map.dragRotate.isEnabled()&&l.map.touchZoomRotate.isEnabled()?+(c[3]||0):l.map.getBearing();return l.map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:u,pitch:+(c[4]||0)}),!0}return!1}),(0,Tn.Z)(this,"getCurrentHash",function(){var c=window.location.hash.replace("#","");if(l.hashName){var u;return c.split("&").map(function(m){return m.split("=")}).forEach(function(m){m[0]===l.hashName&&(u=m)}),(u&&u[1]||"").split("/")}return c.split("/")}),(0,Tn.Z)(this,"updateHashUnthrottled",function(){var c=l.getHashString();try{window.history.replaceState(window.history.state,"",c)}catch(u){}}),this.hashName=d&&encodeURIComponent(d),this.updateHash=RA(this.updateHashUnthrottled,30*1e3/100)}return(0,nt.Z)(o,[{key:"addTo",value:function(l){return this.map=l,window.addEventListener("hashchange",this.onHashChange,!1),this.map.on("moveend",this.updateHash),this}},{key:"remove",value:function(){return window.removeEventListener("hashchange",this.onHashChange,!1),this.map.off("moveend",this.updateHash),delete this.map,this}},{key:"getHashString",value:function(l){var c=this.map.getCenter(),u=Math.round(this.map.getZoom()*100)/100,m=Math.ceil((u*Math.LN2+Math.log(512/360/.5))/Math.LN10),E=Math.pow(10,m),L=Math.round(c.lng*E)/E,Z=Math.round(c.lat*E)/E,ne=this.map.getBearing(),xe=this.map.getPitch(),Oe="";if(l?Oe+="/".concat(L,"/").concat(Z,"/").concat(u):Oe+="".concat(u,"/").concat(Z,"/").concat(L),(ne||xe)&&(Oe+="/".concat(Math.round(ne*10)/10)),xe&&(Oe+="/".concat(Math.round(xe))),this.hashName){var wt=this.hashName,Bt=!1,wn=window.location.hash.slice(1).split("&").map(function(Rn){var Pr=Rn.split("=")[0];return Pr===wt?(Bt=!0,"".concat(Pr,"=").concat(Oe)):Rn}).filter(function(Rn){return Rn});return Bt||wn.push("".concat(wt,"=").concat(Oe)),"#".concat(wn.join("&"))}return"#".concat(Oe)}}]),o}(),MG=ZQ;function vE(o){var d=RG();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function RG(){if(typeof Reflect=="undefined"||!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(o){return!1}}function XP(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}XP(`.l7-map { +`);var jP=-2,HN=22,Jz=fs.merge,mE=0,WP=60,Qz={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:jP,maxZoom:HN,minPitch:mE,maxPitch:WP,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,trackResize:!0,renderWorldCopies:!0,pitchEnabled:!0,rotateEnabled:!0},ZP=function(o){(0,lt.Z)(l,o);var d=AG(l);function l(c){var u;return(0,wt.Z)(this,l),u=d.call(this,Jz({},Qz,c)),(0,Tn.Z)((0,ys.Z)(u),"renderTaskQueue",new ZN),(0,Tn.Z)((0,ys.Z)(u),"trackResize",!0),(0,Tn.Z)((0,ys.Z)(u),"onWindowOnline",function(){u.update()}),(0,Tn.Z)((0,ys.Z)(u),"onWindowResize",function(m){u.trackResize&&u.resize({originalEvent:m}).update()}),u.initContainer(),u.resize(),u.handlers=new VP((0,ys.Z)(u),u.options),typeof window!="undefined"&&(window.addEventListener("online",u.onWindowOnline,!1),window.addEventListener("resize",u.onWindowResize,!1),window.addEventListener("orientationchange",u.onWindowResize,!1)),u}return(0,nt.Z)(l,[{key:"resize",value:function(u){var m=this.containerDimensions(),E=m[0],M=m[1];this.transform.resize(E,M);var Z=!this.moving;return Z&&(this.stop(),this.emit("movestart",new Event("movestart",u)),this.emit("move",new Event("move",u))),this.emit("resize",new Event("resize",u)),Z&&this.emit("moveend",new Event("moveend",u)),this}},{key:"getContainer",value:function(){return this.container}},{key:"getCanvas",value:function(){return this.canvas}},{key:"getCanvasContainer",value:function(){return this.canvasContainer}},{key:"project",value:function(u){return this.transform.locationPoint(kv.convert(u))}},{key:"unproject",value:function(u){return this.transform.pointLocation(O0.convert(u))}},{key:"getBounds",value:function(){return this.transform.getBounds()}},{key:"getMaxBounds",value:function(){return this.transform.getMaxBounds()}},{key:"setMaxBounds",value:function(u){this.transform.setMaxBounds(Z5.convert(u))}},{key:"setStyle",value:function(u){}},{key:"setMinZoom",value:function(u){if(u=u==null?jP:u,u>=jP&&u<=this.transform.maxZoom)return this.transform.minZoom=u,this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=u,this.getZoom()>u&&this.setZoom(u),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(u){if(u=u==null?mE:u,u=mE&&u<=this.transform.maxPitch)return this.transform.minPitch=u,this.getPitch()WP)throw new Error("maxPitch must be less than or equal to ".concat(WP));if(u>=this.transform.minPitch)return this.transform.maxPitch=u,this.getPitch()>u&&this.setPitch(u),this;throw new Error("maxPitch must be greater than the current minPitch")}},{key:"getMaxPitch",value:function(){return this.transform.maxPitch}},{key:"getRenderWorldCopies",value:function(){return this.transform.renderWorldCopies}},{key:"setRenderWorldCopies",value:function(u){this.transform.renderWorldCopies=!!u}},{key:"remove",value:function(){this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear()}},{key:"requestRenderFrame",value:function(u){return this.update(),this.renderTaskQueue.add(u)}},{key:"cancelRenderFrame",value:function(u){return this.renderTaskQueue.remove(u)}},{key:"triggerRepaint",value:function(){var u=this;this.frame||(this.frame=kP(function(m){OA.frame(m),u.frame=null,u.update(m)}))}},{key:"update",value:function(u){var m=this;this.frame||(this.frame=kP(function(E){OA.frame(E),m.frame=null,m.renderTaskQueue.run(u)}))}},{key:"initContainer",value:function(){if(typeof this.options.container=="string"){if(this.container=window.document.getElementById(this.options.container),!this.container)throw new Error("Container '".concat(this.options.container,"' not found."))}else if(this.options.container instanceof HTMLElement)this.container=this.options.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");var u=this.container;u.classList.add("l7-map");var m=this.canvasContainer=Os("div","l7-canvas-container",u);this.options.interactive&&m.classList.add("l7-interactive")}},{key:"containerDimensions",value:function(){var u=0,m=0;return this.container&&(u=this.container.clientWidth||400,m=this.container.clientHeight||300),[u,m]}},{key:"resizeCanvas",value:function(u,m){var E=Un||1;this.canvas.width=E*u,this.canvas.height=E*m,this.canvas.style.width="".concat(u,"px"),this.canvas.style.height="".concat(m,"px")}}]),l}(LA),NA=fs.throttle,ZQ=function(){function o(d){var l=this;(0,wt.Z)(this,o),(0,Tn.Z)(this,"onHashChange",function(){var c=l.getCurrentHash();if(c.length>=3&&!c.some(function(m){return isNaN(+m)})){var u=l.map.dragRotate.isEnabled()&&l.map.touchZoomRotate.isEnabled()?+(c[3]||0):l.map.getBearing();return l.map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:u,pitch:+(c[4]||0)}),!0}return!1}),(0,Tn.Z)(this,"getCurrentHash",function(){var c=window.location.hash.replace("#","");if(l.hashName){var u;return c.split("&").map(function(m){return m.split("=")}).forEach(function(m){m[0]===l.hashName&&(u=m)}),(u&&u[1]||"").split("/")}return c.split("/")}),(0,Tn.Z)(this,"updateHashUnthrottled",function(){var c=l.getHashString();try{window.history.replaceState(window.history.state,"",c)}catch(u){}}),this.hashName=d&&encodeURIComponent(d),this.updateHash=NA(this.updateHashUnthrottled,30*1e3/100)}return(0,nt.Z)(o,[{key:"addTo",value:function(l){return this.map=l,window.addEventListener("hashchange",this.onHashChange,!1),this.map.on("moveend",this.updateHash),this}},{key:"remove",value:function(){return window.removeEventListener("hashchange",this.onHashChange,!1),this.map.off("moveend",this.updateHash),delete this.map,this}},{key:"getHashString",value:function(l){var c=this.map.getCenter(),u=Math.round(this.map.getZoom()*100)/100,m=Math.ceil((u*Math.LN2+Math.log(512/360/.5))/Math.LN10),E=Math.pow(10,m),M=Math.round(c.lng*E)/E,Z=Math.round(c.lat*E)/E,ne=this.map.getBearing(),Ce=this.map.getPitch(),Oe="";if(l?Oe+="/".concat(M,"/").concat(Z,"/").concat(u):Oe+="".concat(u,"/").concat(Z,"/").concat(M),(ne||Ce)&&(Oe+="/".concat(Math.round(ne*10)/10)),Ce&&(Oe+="/".concat(Math.round(Ce))),this.hashName){var Ct=this.hashName,Bt=!1,An=window.location.hash.slice(1).split("&").map(function(kn){var Ir=kn.split("=")[0];return Ir===Ct?(Bt=!0,"".concat(Ir,"=").concat(Oe)):kn}).filter(function(kn){return kn});return Bt||An.push("".concat(Ct,"=").concat(Oe)),"#".concat(An.join("&"))}return"#".concat(Oe)}}]),o}(),PG=ZQ;function vE(o){var d=LG();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function LG(){if(typeof Reflect=="undefined"||!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(o){return!1}}function HP(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}HP(`.l7-map { font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif; overflow: hidden; position: relative; @@ -7754,67 +7700,67 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 0.5; z-index: 10; } -`),function(){if(typeof window.CustomEvent=="function")return!1;function o(d,l){l=l||{bubbles:!1,cancelable:!1,detail:void 0};var c=document.createEvent("CustomEvent");return c.initCustomEvent(d,l.bubbles,l.cancelable,l.detail),c}o.prototype=window.Event.prototype,window.CustomEvent=o}();var Zy=-2,eU=22,fR=fs.merge,Qx=0,aI=60,pR={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:Zy,maxZoom:eU,minPitch:Qx,maxPitch:aI,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,trackResize:!0,renderWorldCopies:!0,pitchEnabled:!0,rotateEnabled:!0},tU=function(o){(0,lt.Z)(l,o);var d=vE(l);function l(c){var u;(0,Ct.Z)(this,l),u=d.call(this,fR({},pR,c)),(0,Tn.Z)((0,ms.Z)(u),"renderTaskQueue",new $N),(0,Tn.Z)((0,ms.Z)(u),"trackResize",!0),(0,Tn.Z)((0,ms.Z)(u),"onWindowOnline",function(){u.update()}),(0,Tn.Z)((0,ms.Z)(u),"onWindowResize",function(E){u.trackResize&&u.resize({originalEvent:E}).update()}),u.initContainer(),u.resize(),u.handlers=new ZP((0,ms.Z)(u),u.options),typeof window!="undefined"&&(window.addEventListener("online",u.onWindowOnline,!1),window.addEventListener("resize",u.onWindowResize,!1),window.addEventListener("orientationchange",u.onWindowResize,!1));var m=typeof c.hash=="string"&&c.hash||void 0;return c.hash&&(u.hash=new MG(m).addTo((0,ms.Z)(u))),(!u.hash||!u.hash.onHashChange())&&(u.jumpTo({center:c.center,zoom:c.zoom,bearing:c.bearing,pitch:c.pitch}),c.bounds&&(u.resize(),u.fitBounds(c.bounds,fR({},c.fitBoundsOptions,{duration:0})))),u}return(0,nt.Z)(l,[{key:"resize",value:function(u){var m=this.containerDimensions(),E=(0,Br.Z)(m,2),L=E[0],Z=E[1];this.transform.resize(L,Z);var ne=!this.moving;return ne&&(this.stop(),this.emit("movestart",new window.CustomEvent("movestart",u)),this.emit("move",new window.CustomEvent("move",u))),this.emit("resize",new window.CustomEvent("resize",u)),ne&&this.emit("moveend",new window.CustomEvent("moveend",u)),this}},{key:"getContainer",value:function(){return this.container}},{key:"getCanvas",value:function(){return this.canvas}},{key:"getCanvasContainer",value:function(){return this.canvasContainer}},{key:"project",value:function(u){return this.transform.locationPoint(kv.convert(u))}},{key:"unproject",value:function(u){return this.transform.pointLocation(R0.convert(u))}},{key:"getBounds",value:function(){return this.transform.getBounds()}},{key:"getMaxBounds",value:function(){return this.transform.getMaxBounds()}},{key:"setMaxBounds",value:function(u){this.transform.setMaxBounds(G5.convert(u))}},{key:"setStyle",value:function(u){}},{key:"setMinZoom",value:function(u){if(u=u==null?Zy:u,u>=Zy&&u<=this.transform.maxZoom)return this.transform.minZoom=u,this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=u,this.getZoom()>u&&this.setZoom(u),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(u){if(u=u==null?Qx:u,u=Qx&&u<=this.transform.maxPitch)return this.transform.minPitch=u,this.getPitch()aI)throw new Error("maxPitch must be less than or equal to ".concat(aI));if(u>=this.transform.minPitch)return this.transform.maxPitch=u,this.getPitch()>u&&this.setPitch(u),this;throw new Error("maxPitch must be greater than the current minPitch")}},{key:"getMaxPitch",value:function(){return this.transform.maxPitch}},{key:"getRenderWorldCopies",value:function(){return this.transform.renderWorldCopies}},{key:"setRenderWorldCopies",value:function(u){this.transform.renderWorldCopies=!!u}},{key:"remove",value:function(){this.container.removeChild(this.canvasContainer),this.canvasContainer=null,this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear()}},{key:"requestRenderFrame",value:function(u){return this.update(),this.renderTaskQueue.add(u)}},{key:"cancelRenderFrame",value:function(u){return this.renderTaskQueue.remove(u)}},{key:"triggerRepaint",value:function(){var u=this;this.frame||(this.frame=FP(function(m){MA.frame(m),u.frame=null,u.update(m)}))}},{key:"update",value:function(u){var m=this;this.frame||(this.frame=FP(function(E){MA.frame(E),m.frame=null,m.renderTaskQueue.run(u)}))}},{key:"initContainer",value:function(){if(typeof this.options.container=="string"){if(this.container=window.document.getElementById(this.options.container),!this.container)throw new Error("Container '".concat(this.options.container,"' not found."))}else if(this.options.container instanceof HTMLElement)this.container=this.options.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");var u=this.container;u.classList.add("l7-map");var m=this.canvasContainer=Os("div","l7-canvas-container",u);this.options.interactive&&m.classList.add("l7-interactive")}},{key:"initMiniContainer",value:function(){this.container=this.options.canvas,this.canvasContainer=this.container}},{key:"containerDimensions",value:function(){var u=0,m=0;return this.container&&(u=this.container.clientWidth,m=this.container.clientHeight,u=u===0?400:u,m=m===0?300:m),[u,m]}}]),l}(DA),kG=function(){function o(){(0,Ct.Z)(this,o),(0,Tn.Z)(this,"xzReg",-Math.PI*.6),(0,Tn.Z)(this,"yReg",Math.PI*.2),(0,Tn.Z)(this,"earthCameraRadius",200),(0,Tn.Z)(this,"earthCameraZoom",1),(0,Tn.Z)(this,"cameraPosition",Vx()),(0,Tn.Z)(this,"projectionMatrix",yp()),(0,Tn.Z)(this,"modelMatrix",yp()),(0,Tn.Z)(this,"viewMatrix",yp()),(0,Tn.Z)(this,"viewProjectionMatrix",yp()),(0,Tn.Z)(this,"ViewProjectionMatrixUncentered",yp()),(0,Tn.Z)(this,"viewUncenteredMatrix",yp())}return(0,nt.Z)(o,[{key:"syncWithMapCamera",value:function(l){var c=l.viewportHeight,u=c===void 0?1:c,m=l.viewportWidth,E=m===void 0?1:m,L=E/u,Z=.1,ne=1e4,xe=20;br(this.projectionMatrix,xe,L,Z,ne);var Oe=this.earthCameraRadius*Math.cos(this.xzReg),wt=this.earthCameraRadius*Math.sin(this.xzReg),Bt=this.earthCameraRadius*Math.sin(this.yReg);this.cameraPosition=r0(Oe,Bt,wt),bw(this.cameraPosition,this.cameraPosition),Xk(this.cameraPosition,this.cameraPosition,r0(this.earthCameraRadius,this.earthCameraRadius,this.earthCameraRadius)),oM(this.cameraPosition,this.cameraPosition,this.earthCameraZoom);var wn=Vx();Qk(wn,this.cameraPosition,r0(0,1,0));var Rn=r0(0,1,0);Qk(Rn,wn,this.cameraPosition);var Pr=r0(0,0,0);Ro(this.viewMatrix,this.cameraPosition,Pr,Rn),this.viewUncenteredMatrix=Vp(this.viewMatrix),Nf(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),Nf(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"rotateY",value:function(l){this.xzReg+=l*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"rotateX",value:function(l){this.yReg+=l*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"scaleZoom",value:function(l){this.earthCameraZoom+=l,this.earthCameraZoom=Math.max(this.earthCameraZoom,.6)}},{key:"getZoom",value:function(){return 4}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[0,0]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return this.modelMatrix}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(l,c){return this.viewport.projectFlat(l,c)}}]),o}(),OG=["id","style","rotation"],kA,YP;function qP(o){var d=jN();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function jN(){if(typeof Reflect=="undefined"||!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(o){return!1}}var nU={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},WN=12,NG=(kA=(0,ts.b2)(),kA(YP=function(o){(0,lt.Z)(l,o);var d=qP(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;EMath.abs(L.originalEvent.movementY)?L.originalEvent.movementX>0?c.viewport.rotateY(ne):L.originalEvent.movementX<0&&c.viewport.rotateY(-ne):L.originalEvent.movementY>0?c.viewport.rotateX(ne):L.originalEvent.movementY<0&&c.viewport.rotateX(-ne));var xe=c.config.offsetCoordinate,Oe=xe===void 0?!0:xe;c.viewport.syncWithMapCamera({viewportHeight:c.map.transform.height,viewportWidth:c.map.transform.width}),c.viewport.getZoom()>WN&&Oe?c.coordinateSystemService.setCoordinateSystem(Ud.LNGLAT_OFFSET):c.coordinateSystemService.setCoordinateSystem(Ud.LNGLAT),c.cameraChangedCallback(c.viewport)}),c}return(0,nt.Z)(l,[{key:"lngLatToMercator",value:function(u,m){throw new Error("Method not implemented.")}},{key:"getModelMatrix",value:function(u,m,E,L,Z){throw new Error("Method not implemented.")}},{key:"on",value:function(u,m){b_.indexOf(u)!==-1?this.eventEmitter.on(u,m):this.map.on(nU[u]||u,m)}},{key:"off",value:function(u,m){this.map.off(nU[u]||u,m),this.eventEmitter.off(u,m)}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){var u=this.map.transform;return[u.width,u.height]}},{key:"getType",value:function(){return"earth"}},{key:"init",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E,L,Z,ne,xe,Oe,wt,Bt;return Fi().wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:E=this.config,L=E.id,Z=L===void 0?"map":L,ne=E.style,xe=ne===void 0?"light":ne,Oe=E.rotation,wt=Oe===void 0?0:Oe,Bt=(0,dm.Z)(E,OG),this.viewport=new kG,this.$mapContainer=this.creatMapContainer(Z),this.map=new KP((0,ze.Z)({container:this.$mapContainer,style:this.getMapStyleValue(xe),bearing:wt},Bt)),this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged({});case 7:case"end":return Rn.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"destroy",value:function(){var u;(u=this.$mapContainer)===null||u===void 0||(u=u.parentNode)===null||u===void 0||u.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(u){for(var m,E=arguments.length,L=new Array(E>1?E-1:0),Z=1;Z1?E-1:0),Z=1;ZzG&&Bt?c.coordinateSystemService.setCoordinateSystem(Ud.LNGLAT_OFFSET):c.coordinateSystemService.setCoordinateSystem(Ud.LNGLAT),c.cameraChangedCallback(c.viewport)}),c}return(0,nt.Z)(l,[{key:"lngLatToCoord",value:function(u){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},E=this.lngLatToMercator(u,0),L=E.x,Z=E.y;return[L-m.x,Z-m.y]}},{key:"lngLatToMercator",value:function(u,m){var E=TA.fromLngLat(u,m),L=E.x,Z=L===void 0?0:L,ne=E.y,xe=ne===void 0?0:ne,Oe=E.z,wt=Oe===void 0?0:Oe;return{x:Z,y:xe,z:wt}}},{key:"getModelMatrix",value:function(u,m,E){var L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},ne=TA.fromLngLat(u,m),xe=ne.meterInMercatorCoordinateUnits(),Oe=yp();return S0(Oe,Oe,r0(ne.x-Z.x,ne.y-Z.y,ne.z||0-Z.z)),sf(Oe,Oe,r0(xe*L[0],-xe*L[1],xe*L[2])),mm(Oe,Oe,E[0]),a0(Oe,Oe,E[1]),l0(Oe,Oe,E[2]),Oe}},{key:"init",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E=this,L,Z,ne,xe,Oe,wt,Bt,wn,Rn,Pr,ui,oo,xo,Ds,aa;return Fi().wrap(function(Za){for(;;)switch(Za.prev=Za.next){case 0:L=this.config,Z=L.id,ne=Z===void 0?"map":Z,xe=L.style,Oe=xe===void 0?"light":xe,wt=L.rotation,Bt=wt===void 0?0:wt,wn=L.mapInstance,Rn=L.version,Pr=Rn===void 0?"DEFAULTMAP":Rn,ui=L.mapSize,oo=ui===void 0?1e4:ui,xo=L.interactive,Ds=xo===void 0?!0:xo,aa=(0,dm.Z)(L,QP),this.viewport=new KC,this.version=Pr,this.simpleMapCoord.setSize(oo),Pr==="SIMPLE"&&aa.center&&(aa.center=this.simpleMapCoord.unproject(aa.center)),wn?(this.map=wn,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ne),this.map=new tU((0,ze.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Oe),bearing:Bt},aa))),this.map.on("load",function(){E.handleCameraChanged()}),Ds&&this.map.on("move",this.handleCameraChanged),setTimeout(function(){E.handleCameraChanged()},100),this.handleCameraChanged();case 10:case"end":return Za.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"initMiniMap",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E=this,L,Z,ne,xe,Oe,wt,Bt,wn,Rn,Pr,ui,oo,xo,Ds;return Fi().wrap(function(fa){for(;;)switch(fa.prev=fa.next){case 0:L=this.config,Z=L.id,ne=Z===void 0?"map":Z,xe=L.style,Oe=xe===void 0?"light":xe,wt=L.rotation,Bt=wt===void 0?0:wt,wn=L.mapInstance,Rn=L.canvas,Pr=Rn===void 0?null:Rn,ui=L.hasBaseMap,oo=ui===void 0?!1:ui,xo=(0,dm.Z)(L,BG),this.viewport=new KC,this.$mapContainer=Pr,this.map=new tU((0,ze.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Oe),bearing:Bt,canvas:Pr},xo)),oo?(Ds=this.map.getCenter(),this.handleMiniCameraChanged(Ds.lng,Ds.lat,this.map.getZoom(),this.map.getBearing(),this.map.getPitch()),window.document.addEventListener("mapCameaParams",function(Za){var gl=Za.e,tu=gl.longitude,ku=gl.latitude,ju=gl.scale,Xc=gl.bearing,Pd=gl.pitch;E.handleMiniCameraChanged(tu,ku,ju-1.25,Xc,Pd)})):(this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged());case 5:case"end":return fa.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"exportMap",value:function(u){var m=this.map.getCanvas(),E=u==="jpg"?m==null?void 0:m.toDataURL("image/jpeg"):m==null?void 0:m.toDataURL("image/png");return E}}]),l}(uE))||jw);function HN(o){var d=$G();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function $G(){if(typeof Reflect=="undefined"||!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(o){return!1}}var lI=function(o){(0,lt.Z)(l,o);var d=HN(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getServiceConstructor",value:function(){return UG}}]),l}(GC),oU=_(17369),V2=_.n(oU),JC=function(){function o(){(0,Ct.Z)(this,o)}return(0,nt.Z)(o,[{key:"syncWithMapCamera",value:function(l){var c=l.center,u=l.zoom,m=l.pitch,E=l.bearing,L=l.viewportHeight,Z=l.viewportWidth;this.viewport=new G6({width:Z,height:L,longitude:c&&c[0],latitude:c&&c[1],zoom:u,pitch:m,bearing:E})}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(l,c){return this.viewport.projectFlat(l,c)}}]),o}(),OA=["id","attributionControl","style","token","rotation","mapInstance"],GN,uI;function KN(o){var d=mR();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function mR(){if(typeof Reflect=="undefined"||!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(o){return!1}}function XN(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}XN(`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mapboxgl-canvas{position:absolute;left:0;top:0}.mapboxgl-map:-webkit-full-screen{width:100%;height:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:-webkit-grab;cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:-webkit-grabbing;cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:pinch-zoom;touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:none;touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.mapboxgl-ctrl-top-left{top:0;left:0}.mapboxgl-ctrl-top-right{top:0;right:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{right:0;bottom:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;-webkit-transform:translate(0);transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{margin:10px 0 0 10px;float:left}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{margin:10px 10px 0 0;float:right}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin:0 0 10px 10px;float:left}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{margin:0 10px 10px 0;float:right}.mapboxgl-ctrl-group{border-radius:4px;background:#fff}.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 2px rgba(0,0,0,.1);box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 0 2px ButtonText;box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:transparent;cursor:pointer}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl button::-moz-focus-inner{border:0;padding:0}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-group button:focus:focus-visible{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}.mapboxgl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:focus:only-child{border-radius:inherit}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{-webkit-animation:mapboxgl-spin 2s linear infinite;animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}}@-webkit-keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg opacity='.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg opacity='.9' fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner,.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;right:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;left:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;border:2px solid #333;border-top:#333;padding:0 5px;color:#333;-webkit-box-sizing:border-box;box-sizing:border-box}.mapboxgl-popup{position:absolute;top:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;will-change:transform;pointer-events:none}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.mapboxgl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.mapboxgl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.mapboxgl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-top:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-right:none;border-left-color:#fff}.mapboxgl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.mapboxgl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.mapboxgl-popup-content{position:relative;background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:10px 10px 15px;pointer-events:auto}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{position:absolute;top:0;left:0;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.mapboxgl-user-location-dot:before{content:"";position:absolute;-webkit-animation:mapboxgl-user-location-dot-pulse 2s infinite;animation:mapboxgl-user-location-dot-pulse 2s infinite}.mapboxgl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35)}@-webkit-keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);opacity:0}to{-webkit-transform:scale(1);opacity:0}}@keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);transform:scale(3);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:rgba(29,161,242,.2);width:1px;height:1px;border-radius:100%}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}@media print{.mapbox-improve-map{display:none}}`),window.mapboxgl=V2();var YN=0,qN="101MlGsZ2AmmA&access_token=pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p0MG01MXRqMW45cjQzb2R6b2ptc3J4MSJ9.zA2W0IkI0c6KaAhJfk9bWg",eL=(GN=(0,ts.b2)(),GN(uI=function(o){(0,lt.Z)(l,o);var d=KN(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},E=this.lngLatToMercator(u,0),L=E.x,Z=E.y;return[L-m.x,Z-m.y]}},{key:"lngLatToMercator",value:function(u,m){var E=window.mapboxgl.MercatorCoordinate.fromLngLat(u,m),L=E.x,Z=L===void 0?0:L,ne=E.y,xe=ne===void 0?0:ne,Oe=E.z,wt=Oe===void 0?0:Oe;return{x:Z,y:xe,z:wt}}},{key:"getModelMatrix",value:function(u,m,E){var L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},ne=window.mapboxgl.MercatorCoordinate.fromLngLat(u,m),xe=ne.meterInMercatorCoordinateUnits(),Oe=yp();return S0(Oe,Oe,r0(ne.x-Z.x,ne.y-Z.y,ne.z||0-Z.z)),sf(Oe,Oe,r0(xe*L[0],-xe*L[1],xe*L[2])),mm(Oe,Oe,E[0]),a0(Oe,Oe,E[1]),l0(Oe,Oe,E[2]),Oe}},{key:"init",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E=this,L,Z,ne,xe,Oe,wt,Bt,wn,Rn,Pr,ui,oo,xo;return Fi().wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:L=this.config,Z=L.id,ne=Z===void 0?"map":Z,xe=L.attributionControl,Oe=xe===void 0?!1:xe,wt=L.style,Bt=wt===void 0?"light":wt,wn=L.token,Rn=wn===void 0?qN:wn,Pr=L.rotation,ui=Pr===void 0?0:Pr,oo=L.mapInstance,xo=(0,dm.Z)(L,OA),this.viewport=new JC,!oo&&!window.mapboxgl&&console.error(this.configService.getSceneWarninfo("SDK")),Rn===qN&&Bt!=="blank"&&!window.mapboxgl.accessToken&&!oo&&console.warn(this.configService.getSceneWarninfo("MapToken")),!oo&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=Rn),oo?(this.map=oo,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ne),this.map=new window.mapboxgl.Map((0,ze.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Bt),attributionControl:Oe,bearing:ui},xo))),this.map.on("load",function(){E.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return aa.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"destroy",value:function(){var u;(u=this.$mapContainer)===null||u===void 0||(u=u.parentNode)===null||u===void 0||u.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(u){for(var m,E=arguments.length,L=new Array(E>1?E-1:0),Z=1;Z1?E-1:0),Z=1;Z=Zy&&u<=this.transform.maxZoom)return this.transform.minZoom=u,this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=u,this.getZoom()>u&&this.setZoom(u),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(u){if(u=u==null?Jx:u,u=Jx&&u<=this.transform.maxPitch)return this.transform.minPitch=u,this.getPitch()uI)throw new Error("maxPitch must be less than or equal to ".concat(uI));if(u>=this.transform.minPitch)return this.transform.maxPitch=u,this.getPitch()>u&&this.setPitch(u),this;throw new Error("maxPitch must be greater than the current minPitch")}},{key:"getMaxPitch",value:function(){return this.transform.maxPitch}},{key:"getRenderWorldCopies",value:function(){return this.transform.renderWorldCopies}},{key:"setRenderWorldCopies",value:function(u){this.transform.renderWorldCopies=!!u}},{key:"remove",value:function(){this.container.removeChild(this.canvasContainer),this.canvasContainer=null,this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear()}},{key:"requestRenderFrame",value:function(u){return this.update(),this.renderTaskQueue.add(u)}},{key:"cancelRenderFrame",value:function(u){return this.renderTaskQueue.remove(u)}},{key:"triggerRepaint",value:function(){var u=this;this.frame||(this.frame=kP(function(m){OA.frame(m),u.frame=null,u.update(m)}))}},{key:"update",value:function(u){var m=this;this.frame||(this.frame=kP(function(E){OA.frame(E),m.frame=null,m.renderTaskQueue.run(u)}))}},{key:"initContainer",value:function(){if(typeof this.options.container=="string"){if(this.container=window.document.getElementById(this.options.container),!this.container)throw new Error("Container '".concat(this.options.container,"' not found."))}else if(this.options.container instanceof HTMLElement)this.container=this.options.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");var u=this.container;u.classList.add("l7-map");var m=this.canvasContainer=Os("div","l7-canvas-container",u);this.options.interactive&&m.classList.add("l7-interactive")}},{key:"initMiniContainer",value:function(){this.container=this.options.canvas,this.canvasContainer=this.container}},{key:"containerDimensions",value:function(){var u=0,m=0;return this.container&&(u=this.container.clientWidth,m=this.container.clientHeight,u=u===0?400:u,m=m===0?300:m),[u,m]}}]),l}(LA),MG=function(){function o(){(0,wt.Z)(this,o),(0,Tn.Z)(this,"xzReg",-Math.PI*.6),(0,Tn.Z)(this,"yReg",Math.PI*.2),(0,Tn.Z)(this,"earthCameraRadius",200),(0,Tn.Z)(this,"earthCameraZoom",1),(0,Tn.Z)(this,"cameraPosition",$x()),(0,Tn.Z)(this,"projectionMatrix",bp()),(0,Tn.Z)(this,"modelMatrix",bp()),(0,Tn.Z)(this,"viewMatrix",bp()),(0,Tn.Z)(this,"viewProjectionMatrix",bp()),(0,Tn.Z)(this,"ViewProjectionMatrixUncentered",bp()),(0,Tn.Z)(this,"viewUncenteredMatrix",bp())}return(0,nt.Z)(o,[{key:"syncWithMapCamera",value:function(l){var c=l.viewportHeight,u=c===void 0?1:c,m=l.viewportWidth,E=m===void 0?1:m,M=E/u,Z=.1,ne=1e4,Ce=20;br(this.projectionMatrix,Ce,M,Z,ne);var Oe=this.earthCameraRadius*Math.cos(this.xzReg),Ct=this.earthCameraRadius*Math.sin(this.xzReg),Bt=this.earthCameraRadius*Math.sin(this.yReg);this.cameraPosition=r0(Oe,Bt,Ct),xw(this.cameraPosition,this.cameraPosition),Qk(this.cameraPosition,this.cameraPosition,r0(this.earthCameraRadius,this.earthCameraRadius,this.earthCameraRadius)),rM(this.cameraPosition,this.cameraPosition,this.earthCameraZoom);var An=$x();rO(An,this.cameraPosition,r0(0,1,0));var kn=r0(0,1,0);rO(kn,An,this.cameraPosition);var Ir=r0(0,0,0);Lo(this.viewMatrix,this.cameraPosition,Ir,kn),this.viewUncenteredMatrix=Hp(this.viewMatrix),Ff(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),Ff(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"rotateY",value:function(l){this.xzReg+=l*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"rotateX",value:function(l){this.yReg+=l*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"scaleZoom",value:function(l){this.earthCameraZoom+=l,this.earthCameraZoom=Math.max(this.earthCameraZoom,.6)}},{key:"getZoom",value:function(){return 4}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[0,0]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return this.modelMatrix}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(l,c){return this.viewport.projectFlat(l,c)}}]),o}(),RG=["id","style","rotation"],FA,GP;function KP(o){var d=GN();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function GN(){if(typeof Reflect=="undefined"||!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(o){return!1}}var nU={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},KN=12,kG=(FA=(0,Go.b2)(),FA(GP=function(o){(0,lt.Z)(l,o);var d=KP(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;EMath.abs(M.originalEvent.movementY)?M.originalEvent.movementX>0?c.viewport.rotateY(ne):M.originalEvent.movementX<0&&c.viewport.rotateY(-ne):M.originalEvent.movementY>0?c.viewport.rotateX(ne):M.originalEvent.movementY<0&&c.viewport.rotateX(-ne));var Ce=c.config.offsetCoordinate,Oe=Ce===void 0?!0:Ce;c.viewport.syncWithMapCamera({viewportHeight:c.map.transform.height,viewportWidth:c.map.transform.width}),c.viewport.getZoom()>KN&&Oe?c.coordinateSystemService.setCoordinateSystem(Uh.LNGLAT_OFFSET):c.coordinateSystemService.setCoordinateSystem(Uh.LNGLAT),c.cameraChangedCallback(c.viewport)}),c}return(0,nt.Z)(l,[{key:"lngLatToMercator",value:function(u,m){throw new Error("Method not implemented.")}},{key:"getModelMatrix",value:function(u,m,E,M,Z){throw new Error("Method not implemented.")}},{key:"on",value:function(u,m){x_.indexOf(u)!==-1?this.eventEmitter.on(u,m):this.map.on(nU[u]||u,m)}},{key:"off",value:function(u,m){this.map.off(nU[u]||u,m),this.eventEmitter.off(u,m)}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){var u=this.map.transform;return[u.width,u.height]}},{key:"getType",value:function(){return"earth"}},{key:"init",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E,M,Z,ne,Ce,Oe,Ct,Bt;return Oi().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:E=this.config,M=E.id,Z=M===void 0?"map":M,ne=E.style,Ce=ne===void 0?"light":ne,Oe=E.rotation,Ct=Oe===void 0?0:Oe,Bt=(0,hm.Z)(E,RG),this.viewport=new MG,this.$mapContainer=this.creatMapContainer(Z),this.map=new ZP((0,Be.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Ce),bearing:Ct},Bt)),this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged({});case 7:case"end":return kn.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"destroy",value:function(){var u;(u=this.$mapContainer)===null||u===void 0||(u=u.parentNode)===null||u===void 0||u.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(u){for(var m,E=arguments.length,M=new Array(E>1?E-1:0),Z=1;Z1?E-1:0),Z=1;ZFG&&Bt?c.coordinateSystemService.setCoordinateSystem(Uh.LNGLAT_OFFSET):c.coordinateSystemService.setCoordinateSystem(Uh.LNGLAT),c.cameraChangedCallback(c.viewport)}),c}return(0,nt.Z)(l,[{key:"lngLatToCoord",value:function(u){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},E=this.lngLatToMercator(u,0),M=E.x,Z=E.y;return[M-m.x,Z-m.y]}},{key:"lngLatToMercator",value:function(u,m){var E=IA.fromLngLat(u,m),M=E.x,Z=M===void 0?0:M,ne=E.y,Ce=ne===void 0?0:ne,Oe=E.z,Ct=Oe===void 0?0:Oe;return{x:Z,y:Ce,z:Ct}}},{key:"getModelMatrix",value:function(u,m,E){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},ne=IA.fromLngLat(u,m),Ce=ne.meterInMercatorCoordinateUnits(),Oe=bp();return T0(Oe,Oe,r0(ne.x-Z.x,ne.y-Z.y,ne.z||0-Z.z)),af(Oe,Oe,r0(Ce*M[0],-Ce*M[1],Ce*M[2])),mm(Oe,Oe,E[0]),s0(Oe,Oe,E[1]),a0(Oe,Oe,E[2]),Oe}},{key:"init",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E=this,M,Z,ne,Ce,Oe,Ct,Bt,An,kn,Ir,ui,ao,wo,Ds,oa;return Oi().wrap(function(Wa){for(;;)switch(Wa.prev=Wa.next){case 0:M=this.config,Z=M.id,ne=Z===void 0?"map":Z,Ce=M.style,Oe=Ce===void 0?"light":Ce,Ct=M.rotation,Bt=Ct===void 0?0:Ct,An=M.mapInstance,kn=M.version,Ir=kn===void 0?"DEFAULTMAP":kn,ui=M.mapSize,ao=ui===void 0?1e4:ui,wo=M.interactive,Ds=wo===void 0?!0:wo,oa=(0,hm.Z)(M,YP),this.viewport=new YC,this.version=Ir,this.simpleMapCoord.setSize(ao),Ir==="SIMPLE"&&oa.center&&(oa.center=this.simpleMapCoord.unproject(oa.center)),An?(this.map=An,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ne),this.map=new tU((0,Be.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Oe),bearing:Bt},oa))),this.map.on("load",function(){E.handleCameraChanged()}),Ds&&this.map.on("move",this.handleCameraChanged),setTimeout(function(){E.handleCameraChanged()},100),this.handleCameraChanged();case 10:case"end":return Wa.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"initMiniMap",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E=this,M,Z,ne,Ce,Oe,Ct,Bt,An,kn,Ir,ui,ao,wo,Ds;return Oi().wrap(function(fa){for(;;)switch(fa.prev=fa.next){case 0:M=this.config,Z=M.id,ne=Z===void 0?"map":Z,Ce=M.style,Oe=Ce===void 0?"light":Ce,Ct=M.rotation,Bt=Ct===void 0?0:Ct,An=M.mapInstance,kn=M.canvas,Ir=kn===void 0?null:kn,ui=M.hasBaseMap,ao=ui===void 0?!1:ui,wo=(0,hm.Z)(M,NG),this.viewport=new YC,this.$mapContainer=Ir,this.map=new tU((0,Be.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Oe),bearing:Bt,canvas:Ir},wo)),ao?(Ds=this.map.getCenter(),this.handleMiniCameraChanged(Ds.lng,Ds.lat,this.map.getZoom(),this.map.getBearing(),this.map.getPitch()),window.document.addEventListener("mapCameaParams",function(Wa){var vl=Wa.e,Ql=vl.longitude,Ou=vl.latitude,Uu=vl.scale,hh=vl.bearing,Ph=vl.pitch;E.handleMiniCameraChanged(Ql,Ou,Uu-1.25,hh,Ph)})):(this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged());case 5:case"end":return fa.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"exportMap",value:function(u){var m=this.map.getCanvas(),E=u==="jpg"?m==null?void 0:m.toDataURL("image/jpeg"):m==null?void 0:m.toDataURL("image/png");return E}}]),l}(uE))||Ww);function YN(o){var d=zG();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function zG(){if(typeof Reflect=="undefined"||!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(o){return!1}}var cI=function(o){(0,lt.Z)(l,o);var d=YN(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getServiceConstructor",value:function(){return BG}}]),l}(XC),oU=y(6158),$2=y.n(oU),eS=function(){function o(){(0,wt.Z)(this,o)}return(0,nt.Z)(o,[{key:"syncWithMapCamera",value:function(l){var c=l.center,u=l.zoom,m=l.pitch,E=l.bearing,M=l.viewportHeight,Z=l.viewportWidth;this.viewport=new q6({width:Z,height:M,longitude:c&&c[0],latitude:c&&c[1],zoom:u,pitch:m,bearing:E})}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(l,c){return this.viewport.projectFlat(l,c)}}]),o}(),BA=["id","attributionControl","style","token","rotation","mapInstance"],qN,hI;function JN(o){var d=pR();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function pR(){if(typeof Reflect=="undefined"||!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(o){return!1}}function QN(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}QN(`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mapboxgl-canvas{position:absolute;left:0;top:0}.mapboxgl-map:-webkit-full-screen{width:100%;height:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:-webkit-grab;cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:-webkit-grabbing;cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:pinch-zoom;touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:none;touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.mapboxgl-ctrl-top-left{top:0;left:0}.mapboxgl-ctrl-top-right{top:0;right:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{right:0;bottom:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;-webkit-transform:translate(0);transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{margin:10px 0 0 10px;float:left}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{margin:10px 10px 0 0;float:right}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin:0 0 10px 10px;float:left}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{margin:0 10px 10px 0;float:right}.mapboxgl-ctrl-group{border-radius:4px;background:#fff}.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 2px rgba(0,0,0,.1);box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 0 2px ButtonText;box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:transparent;cursor:pointer}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl button::-moz-focus-inner{border:0;padding:0}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-group button:focus:focus-visible{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}.mapboxgl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:focus:only-child{border-radius:inherit}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{-webkit-animation:mapboxgl-spin 2s linear infinite;animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}}@-webkit-keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg opacity='.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg opacity='.9' fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner,.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;right:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;left:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;border:2px solid #333;border-top:#333;padding:0 5px;color:#333;-webkit-box-sizing:border-box;box-sizing:border-box}.mapboxgl-popup{position:absolute;top:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;will-change:transform;pointer-events:none}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.mapboxgl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.mapboxgl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.mapboxgl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-top:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-right:none;border-left-color:#fff}.mapboxgl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.mapboxgl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.mapboxgl-popup-content{position:relative;background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:10px 10px 15px;pointer-events:auto}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{position:absolute;top:0;left:0;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.mapboxgl-user-location-dot:before{content:"";position:absolute;-webkit-animation:mapboxgl-user-location-dot-pulse 2s infinite;animation:mapboxgl-user-location-dot-pulse 2s infinite}.mapboxgl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35)}@-webkit-keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);opacity:0}to{-webkit-transform:scale(1);opacity:0}}@keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);transform:scale(3);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:rgba(29,161,242,.2);width:1px;height:1px;border-radius:100%}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}@media print{.mapbox-improve-map{display:none}}`),window.mapboxgl=$2();var e8=0,t8="101MlGsZ2AmmA&access_token=pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p0MG01MXRqMW45cjQzb2R6b2ptc3J4MSJ9.zA2W0IkI0c6KaAhJfk9bWg",qP=(qN=(0,Go.b2)(),qN(hI=function(o){(0,lt.Z)(l,o);var d=JN(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},E=this.lngLatToMercator(u,0),M=E.x,Z=E.y;return[M-m.x,Z-m.y]}},{key:"lngLatToMercator",value:function(u,m){var E=window.mapboxgl.MercatorCoordinate.fromLngLat(u,m),M=E.x,Z=M===void 0?0:M,ne=E.y,Ce=ne===void 0?0:ne,Oe=E.z,Ct=Oe===void 0?0:Oe;return{x:Z,y:Ce,z:Ct}}},{key:"getModelMatrix",value:function(u,m,E){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},ne=window.mapboxgl.MercatorCoordinate.fromLngLat(u,m),Ce=ne.meterInMercatorCoordinateUnits(),Oe=bp();return T0(Oe,Oe,r0(ne.x-Z.x,ne.y-Z.y,ne.z||0-Z.z)),af(Oe,Oe,r0(Ce*M[0],-Ce*M[1],Ce*M[2])),mm(Oe,Oe,E[0]),s0(Oe,Oe,E[1]),a0(Oe,Oe,E[2]),Oe}},{key:"init",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E=this,M,Z,ne,Ce,Oe,Ct,Bt,An,kn,Ir,ui,ao,wo;return Oi().wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:M=this.config,Z=M.id,ne=Z===void 0?"map":Z,Ce=M.attributionControl,Oe=Ce===void 0?!1:Ce,Ct=M.style,Bt=Ct===void 0?"light":Ct,An=M.token,kn=An===void 0?t8:An,Ir=M.rotation,ui=Ir===void 0?0:Ir,ao=M.mapInstance,wo=(0,hm.Z)(M,BA),this.viewport=new eS,!ao&&!window.mapboxgl&&console.error(this.configService.getSceneWarninfo("SDK")),kn===t8&&Bt!=="blank"&&!window.mapboxgl.accessToken&&!ao&&console.warn(this.configService.getSceneWarninfo("MapToken")),!ao&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=kn),ao?(this.map=ao,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ne),this.map=new window.mapboxgl.Map((0,Be.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Bt),attributionControl:Oe,bearing:ui},wo))),this.map.on("load",function(){E.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return oa.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"destroy",value:function(){var u;(u=this.$mapContainer)===null||u===void 0||(u=u.parentNode)===null||u===void 0||u.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(u){for(var m,E=arguments.length,M=new Array(E>1?E-1:0),Z=1;Z1?E-1:0),Z=1;Z.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;-webkit-box-sizing:border-box;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:-webkit-box;display:-ms-flexbox;display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.maplibregl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.maplibregl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{-ms-flex-item-align:start;align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{-ms-flex-item-align:end;align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{-webkit-animation:maplibregl-user-location-dot-pulse 2s infinite;animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35);-webkit-box-sizing:border-box;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@-webkit-keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}70%{opacity:0;-webkit-transform:scale(3);transform:scale(3)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}70%{opacity:0;-webkit-transform:scale(3);transform:scale(3)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:rgba(0,0,0,.4);color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:1.4em;inset:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;-webkit-transition:opacity 1s ease 1s;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;-webkit-transition:opacity .05s;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`),window.maplibregl=QC();var n8=0,r8=(yR=(0,ts.b2)(),yR(_R=function(o){(0,lt.Z)(l,o);var d=QN(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},E=this.lngLatToMercator(u,0),L=E.x,Z=E.y;return[L-m.x,Z-m.y]}},{key:"lngLatToMercator",value:function(u,m){var E=window.maplibregl.MercatorCoordinate.fromLngLat(u,m),L=E.x,Z=L===void 0?0:L,ne=E.y,xe=ne===void 0?0:ne,Oe=E.z,wt=Oe===void 0?0:Oe;return{x:Z,y:xe,z:wt}}},{key:"getModelMatrix",value:function(u,m,E){var L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},ne=window.maplibregl.MercatorCoordinate.fromLngLat(u,m),xe=ne.meterInMercatorCoordinateUnits(),Oe=yp();return S0(Oe,Oe,r0(ne.x-Z.x,ne.y-Z.y,ne.z||0-Z.z)),sf(Oe,Oe,r0(xe*L[0],-xe*L[1],xe*L[2])),mm(Oe,Oe,E[0]),a0(Oe,Oe,E[1]),l0(Oe,Oe,E[2]),Oe}},{key:"init",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E=this,L,Z,ne,xe,Oe,wt,Bt,wn,Rn,Pr,ui;return Fi().wrap(function(xo){for(;;)switch(xo.prev=xo.next){case 0:L=this.config,Z=L.id,ne=Z===void 0?"map":Z,xe=L.attributionControl,Oe=xe===void 0?!1:xe,wt=L.style,Bt=wt===void 0?"light":wt,wn=L.rotation,Rn=wn===void 0?0:wn,Pr=L.mapInstance,ui=(0,dm.Z)(L,e2),this.viewport=new JC,!Pr&&!window.maplibregl&&console.error(this.configService.getSceneWarninfo("SDK")),Pr?(this.map=Pr,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ne),this.map=new window.maplibregl.Map((0,ze.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Bt),attributionControl:Oe,bearing:Rn},ui))),this.map.on("load",function(){E.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 7:case"end":return xo.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"destroy",value:function(){var u;(u=this.$mapContainer)===null||u===void 0||(u=u.parentNode)===null||u===void 0||u.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(u){for(var m,E=arguments.length,L=new Array(E>1?E-1:0),Z=1;Z1?E-1:0),Z=1;Z.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;-webkit-box-sizing:border-box;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:-webkit-box;display:-ms-flexbox;display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.maplibregl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.maplibregl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{-ms-flex-item-align:start;align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{-ms-flex-item-align:end;align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{-webkit-animation:maplibregl-user-location-dot-pulse 2s infinite;animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35);-webkit-box-sizing:border-box;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@-webkit-keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}70%{opacity:0;-webkit-transform:scale(3);transform:scale(3)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}70%{opacity:0;-webkit-transform:scale(3);transform:scale(3)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:rgba(0,0,0,.4);color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:1.4em;inset:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;-webkit-transition:opacity 1s ease 1s;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;-webkit-transition:opacity .05s;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`),window.maplibregl=tS();var s8=0,a8=(mR=(0,Go.b2)(),mR(vR=function(o){(0,lt.Z)(l,o);var d=r8(l);function l(){var c;(0,wt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},E=this.lngLatToMercator(u,0),M=E.x,Z=E.y;return[M-m.x,Z-m.y]}},{key:"lngLatToMercator",value:function(u,m){var E=window.maplibregl.MercatorCoordinate.fromLngLat(u,m),M=E.x,Z=M===void 0?0:M,ne=E.y,Ce=ne===void 0?0:ne,Oe=E.z,Ct=Oe===void 0?0:Oe;return{x:Z,y:Ce,z:Ct}}},{key:"getModelMatrix",value:function(u,m,E){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},ne=window.maplibregl.MercatorCoordinate.fromLngLat(u,m),Ce=ne.meterInMercatorCoordinateUnits(),Oe=bp();return T0(Oe,Oe,r0(ne.x-Z.x,ne.y-Z.y,ne.z||0-Z.z)),af(Oe,Oe,r0(Ce*M[0],-Ce*M[1],Ce*M[2])),mm(Oe,Oe,E[0]),s0(Oe,Oe,E[1]),a0(Oe,Oe,E[2]),Oe}},{key:"init",value:function(){var c=(0,Pl.Z)(Oi().mark(function m(){var E=this,M,Z,ne,Ce,Oe,Ct,Bt,An,kn,Ir,ui;return Oi().wrap(function(wo){for(;;)switch(wo.prev=wo.next){case 0:M=this.config,Z=M.id,ne=Z===void 0?"map":Z,Ce=M.attributionControl,Oe=Ce===void 0?!1:Ce,Ct=M.style,Bt=Ct===void 0?"light":Ct,An=M.rotation,kn=An===void 0?0:An,Ir=M.mapInstance,ui=(0,hm.Z)(M,Qx),this.viewport=new eS,!Ir&&!window.maplibregl&&console.error(this.configService.getSceneWarninfo("SDK")),Ir?(this.map=Ir,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ne),this.map=new window.maplibregl.Map((0,Be.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Bt),attributionControl:Oe,bearing:kn},ui))),this.map.on("load",function(){E.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 7:case"end":return wo.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"destroy",value:function(){var u;(u=this.$mapContainer)===null||u===void 0||(u=u.parentNode)===null||u===void 0||u.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(u){for(var m,E=arguments.length,M=new Array(E>1?E-1:0),Z=1;Z1?E-1:0),Z=1;Z3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=this.viewport.projectFlat(u),ne=yp();return S0(ne,ne,r0(Z[0],Z[1],m)),sf(ne,ne,r0(L[0],L[1],L[2])),mm(ne,ne,E[0]),a0(ne,ne,E[1]),l0(ne,ne,E[2]),ne}},{key:"getCustomCoordCenter",value:function(){throw new Error("Method not implemented.")}},{key:"exportMap",value:function(u){var m=this.getMapCanvasContainer(),E=u==="jpg"?m==null?void 0:m.toDataURL("image/jpeg"):m==null?void 0:m.toDataURL("image/png");return E}},{key:"rotateY",value:function(){throw new Error("Method not implemented.")}},{key:"hideLogo",value:function(){var u=this.map.getContainer();u&&xa(u,"tmap-contianer--hide-logo")}}]),l}(uE);function ZG(o){var d=HG();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function HG(){if(typeof Reflect=="undefined"||!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(o){return!1}}var pU=function(o){(0,lt.Z)(l,o);var d=ZG(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getServiceConstructor",value:function(){return WG}}]),l}(GC),a8=_(45409),wR=_.n(a8),FA=function(){function o(d,l){(0,Ct.Z)(this,o);var c=l.buffer,u=l.offset,m=l.stride,E=l.normalized,L=l.size,Z=l.divisor;this.buffer=c,this.attribute={buffer:c.get(),offset:u||0,stride:m||0,normalized:E||!1,divisor:Z||0},L&&(this.attribute.size=L)}return(0,nt.Z)(o,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(l){this.buffer.subData(l)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),o}(),py,Ww,y1,yx,I_,_x,BA,kb,Ob,_E,Q1,s_,Zw,CR,GG=(py={},(0,Tn.Z)(py,Di.POINTS,"points"),(0,Tn.Z)(py,Di.LINES,"lines"),(0,Tn.Z)(py,Di.LINE_LOOP,"line loop"),(0,Tn.Z)(py,Di.LINE_STRIP,"line strip"),(0,Tn.Z)(py,Di.TRIANGLES,"triangles"),(0,Tn.Z)(py,Di.TRIANGLE_FAN,"triangle fan"),(0,Tn.Z)(py,Di.TRIANGLE_STRIP,"triangle strip"),py),gU=(Ww={},(0,Tn.Z)(Ww,Di.STATIC_DRAW,"static"),(0,Tn.Z)(Ww,Di.DYNAMIC_DRAW,"dynamic"),(0,Tn.Z)(Ww,Di.STREAM_DRAW,"stream"),Ww),SR=(y1={},(0,Tn.Z)(y1,Di.BYTE,"int8"),(0,Tn.Z)(y1,Di.INT,"int32"),(0,Tn.Z)(y1,Di.UNSIGNED_BYTE,"uint8"),(0,Tn.Z)(y1,Di.UNSIGNED_SHORT,"uint16"),(0,Tn.Z)(y1,Di.UNSIGNED_INT,"uint32"),(0,Tn.Z)(y1,Di.FLOAT,"float"),y1),mU=(yx={},(0,Tn.Z)(yx,Di.ALPHA,"alpha"),(0,Tn.Z)(yx,Di.LUMINANCE,"luminance"),(0,Tn.Z)(yx,Di.LUMINANCE_ALPHA,"luminance alpha"),(0,Tn.Z)(yx,Di.RGB,"rgb"),(0,Tn.Z)(yx,Di.RGBA,"rgba"),(0,Tn.Z)(yx,Di.RGBA4,"rgba4"),(0,Tn.Z)(yx,Di.RGB5_A1,"rgb5 a1"),(0,Tn.Z)(yx,Di.RGB565,"rgb565"),(0,Tn.Z)(yx,Di.DEPTH_COMPONENT,"depth"),(0,Tn.Z)(yx,Di.DEPTH_STENCIL,"depth stencil"),yx),l8=(I_={},(0,Tn.Z)(I_,Di.DONT_CARE,"dont care"),(0,Tn.Z)(I_,Di.NICEST,"nice"),(0,Tn.Z)(I_,Di.FASTEST,"fast"),I_),ER=(_x={},(0,Tn.Z)(_x,Di.NEAREST,"nearest"),(0,Tn.Z)(_x,Di.LINEAR,"linear"),(0,Tn.Z)(_x,Di.LINEAR_MIPMAP_LINEAR,"mipmap"),(0,Tn.Z)(_x,Di.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),(0,Tn.Z)(_x,Di.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),(0,Tn.Z)(_x,Di.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),_x),u8=(BA={},(0,Tn.Z)(BA,Di.REPEAT,"repeat"),(0,Tn.Z)(BA,Di.CLAMP_TO_EDGE,"clamp"),(0,Tn.Z)(BA,Di.MIRRORED_REPEAT,"mirror"),BA),vU=(kb={},(0,Tn.Z)(kb,Di.NONE,"none"),(0,Tn.Z)(kb,Di.BROWSER_DEFAULT_WEBGL,"browser"),kb),zA=(Ob={},(0,Tn.Z)(Ob,Di.NEVER,"never"),(0,Tn.Z)(Ob,Di.ALWAYS,"always"),(0,Tn.Z)(Ob,Di.LESS,"less"),(0,Tn.Z)(Ob,Di.LEQUAL,"lequal"),(0,Tn.Z)(Ob,Di.GREATER,"greater"),(0,Tn.Z)(Ob,Di.GEQUAL,"gequal"),(0,Tn.Z)(Ob,Di.EQUAL,"equal"),(0,Tn.Z)(Ob,Di.NOTEQUAL,"notequal"),Ob),tL=(_E={},(0,Tn.Z)(_E,Di.FUNC_ADD,"add"),(0,Tn.Z)(_E,Di.MIN_EXT,"min"),(0,Tn.Z)(_E,Di.MAX_EXT,"max"),(0,Tn.Z)(_E,Di.FUNC_SUBTRACT,"subtract"),(0,Tn.Z)(_E,Di.FUNC_REVERSE_SUBTRACT,"reverse subtract"),_E),nL=(Q1={},(0,Tn.Z)(Q1,Di.ZERO,"zero"),(0,Tn.Z)(Q1,Di.ONE,"one"),(0,Tn.Z)(Q1,Di.SRC_COLOR,"src color"),(0,Tn.Z)(Q1,Di.ONE_MINUS_SRC_COLOR,"one minus src color"),(0,Tn.Z)(Q1,Di.SRC_ALPHA,"src alpha"),(0,Tn.Z)(Q1,Di.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),(0,Tn.Z)(Q1,Di.DST_COLOR,"dst color"),(0,Tn.Z)(Q1,Di.ONE_MINUS_DST_COLOR,"one minus dst color"),(0,Tn.Z)(Q1,Di.DST_ALPHA,"dst alpha"),(0,Tn.Z)(Q1,Di.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),(0,Tn.Z)(Q1,Di.CONSTANT_COLOR,"constant color"),(0,Tn.Z)(Q1,Di.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),(0,Tn.Z)(Q1,Di.CONSTANT_ALPHA,"constant alpha"),(0,Tn.Z)(Q1,Di.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),(0,Tn.Z)(Q1,Di.SRC_ALPHA_SATURATE,"src alpha saturate"),Q1),c8=(s_={},(0,Tn.Z)(s_,Di.NEVER,"never"),(0,Tn.Z)(s_,Di.ALWAYS,"always"),(0,Tn.Z)(s_,Di.LESS,"less"),(0,Tn.Z)(s_,Di.LEQUAL,"lequal"),(0,Tn.Z)(s_,Di.GREATER,"greater"),(0,Tn.Z)(s_,Di.GEQUAL,"gequal"),(0,Tn.Z)(s_,Di.EQUAL,"equal"),(0,Tn.Z)(s_,Di.NOTEQUAL,"notequal"),s_),bE=(Zw={},(0,Tn.Z)(Zw,Di.ZERO,"zero"),(0,Tn.Z)(Zw,Di.KEEP,"keep"),(0,Tn.Z)(Zw,Di.REPLACE,"replace"),(0,Tn.Z)(Zw,Di.INVERT,"invert"),(0,Tn.Z)(Zw,Di.INCR,"increment"),(0,Tn.Z)(Zw,Di.DECR,"decrement"),(0,Tn.Z)(Zw,Di.INCR_WRAP,"increment wrap"),(0,Tn.Z)(Zw,Di.DECR_WRAP,"decrement wrap"),Zw),rL=(CR={},(0,Tn.Z)(CR,Di.FRONT,"front"),(0,Tn.Z)(CR,Di.BACK,"back"),CR),om=function(){function o(d,l){(0,Ct.Z)(this,o),(0,Tn.Z)(this,"isDestroyed",!1);var c=l.data,u=l.usage,m=l.type;this.buffer=d.buffer({data:c,usage:gU[u||Di.STATIC_DRAW],type:SR[m||Di.UNSIGNED_BYTE]})}return(0,nt.Z)(o,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){this.isDestroyed||this.buffer.destroy(),this.isDestroyed=!0}},{key:"subData",value:function(l){var c=l.data,u=l.offset;this.buffer.subdata(c,u)}}]),o}(),xE=function(){function o(d,l){(0,Ct.Z)(this,o);var c=l.data,u=l.usage,m=l.type,E=l.count;this.elements=d.elements({data:c,usage:gU[u||Di.STATIC_DRAW],type:SR[m||Di.UNSIGNED_BYTE],count:E})}return(0,nt.Z)(o,[{key:"get",value:function(){return this.elements}},{key:"subData",value:function(l){var c=l.data;this.elements.subdata(c)}},{key:"destroy",value:function(){}}]),o}(),KG=function(){function o(d,l){(0,Ct.Z)(this,o);var c=l.width,u=l.height,m=l.color,E=l.colors,L={width:c,height:u};Array.isArray(E)&&(L.colors=E.map(function(Z){return Z.get()})),m&&typeof m!="boolean"&&(L.color=m.get()),this.framebuffer=d.framebuffer(L)}return(0,nt.Z)(o,[{key:"get",value:function(){return this.framebuffer}},{key:"destroy",value:function(){this.framebuffer.destroy()}},{key:"resize",value:function(l){var c=l.width,u=l.height;this.framebuffer.resize(c,u)}}]),o}(),iL={}.toString,oL=function(o,d){return iL.call(o)==="[object "+d+"]"},XG=oL,YG=function(o){return XG(o,"Number")},wE=YG,d8=function(o){return o==null},CE=d8,qG=function(o,d,l){return ol?l:o},TR=qG,Xf=_(32290),JG=_(37271),UA=JG,Ml;(function(o){o[o.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",o[o.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",o[o.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",o[o.POINTS=0]="POINTS",o[o.LINES=1]="LINES",o[o.LINE_LOOP=2]="LINE_LOOP",o[o.LINE_STRIP=3]="LINE_STRIP",o[o.TRIANGLES=4]="TRIANGLES",o[o.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",o[o.TRIANGLE_FAN=6]="TRIANGLE_FAN",o[o.ZERO=0]="ZERO",o[o.ONE=1]="ONE",o[o.SRC_COLOR=768]="SRC_COLOR",o[o.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",o[o.SRC_ALPHA=770]="SRC_ALPHA",o[o.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",o[o.DST_ALPHA=772]="DST_ALPHA",o[o.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",o[o.DST_COLOR=774]="DST_COLOR",o[o.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",o[o.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",o[o.CONSTANT_COLOR=32769]="CONSTANT_COLOR",o[o.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",o[o.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",o[o.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",o[o.FUNC_ADD=32774]="FUNC_ADD",o[o.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",o[o.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",o[o.BLEND_EQUATION=32777]="BLEND_EQUATION",o[o.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",o[o.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",o[o.BLEND_DST_RGB=32968]="BLEND_DST_RGB",o[o.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",o[o.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",o[o.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",o[o.BLEND_COLOR=32773]="BLEND_COLOR",o[o.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",o[o.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",o[o.LINE_WIDTH=2849]="LINE_WIDTH",o[o.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",o[o.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",o[o.CULL_FACE_MODE=2885]="CULL_FACE_MODE",o[o.FRONT_FACE=2886]="FRONT_FACE",o[o.DEPTH_RANGE=2928]="DEPTH_RANGE",o[o.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",o[o.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",o[o.DEPTH_FUNC=2932]="DEPTH_FUNC",o[o.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",o[o.STENCIL_FUNC=2962]="STENCIL_FUNC",o[o.STENCIL_FAIL=2964]="STENCIL_FAIL",o[o.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",o[o.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",o[o.STENCIL_REF=2967]="STENCIL_REF",o[o.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",o[o.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",o[o.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",o[o.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",o[o.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",o[o.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",o[o.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",o[o.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",o[o.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",o[o.VIEWPORT=2978]="VIEWPORT",o[o.SCISSOR_BOX=3088]="SCISSOR_BOX",o[o.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",o[o.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",o[o.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",o[o.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",o[o.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",o[o.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",o[o.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",o[o.RED_BITS=3410]="RED_BITS",o[o.GREEN_BITS=3411]="GREEN_BITS",o[o.BLUE_BITS=3412]="BLUE_BITS",o[o.ALPHA_BITS=3413]="ALPHA_BITS",o[o.DEPTH_BITS=3414]="DEPTH_BITS",o[o.STENCIL_BITS=3415]="STENCIL_BITS",o[o.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",o[o.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",o[o.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",o[o.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",o[o.SAMPLES=32937]="SAMPLES",o[o.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",o[o.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",o[o.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",o[o.VENDOR=7936]="VENDOR",o[o.RENDERER=7937]="RENDERER",o[o.VERSION=7938]="VERSION",o[o.IMPLEMENTATION_COLOR_READ_TYPE=35738]="IMPLEMENTATION_COLOR_READ_TYPE",o[o.IMPLEMENTATION_COLOR_READ_FORMAT=35739]="IMPLEMENTATION_COLOR_READ_FORMAT",o[o.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",o[o.STATIC_DRAW=35044]="STATIC_DRAW",o[o.STREAM_DRAW=35040]="STREAM_DRAW",o[o.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",o[o.ARRAY_BUFFER=34962]="ARRAY_BUFFER",o[o.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",o[o.BUFFER_SIZE=34660]="BUFFER_SIZE",o[o.BUFFER_USAGE=34661]="BUFFER_USAGE",o[o.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",o[o.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",o[o.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",o[o.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",o[o.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",o[o.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",o[o.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",o[o.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",o[o.CULL_FACE=2884]="CULL_FACE",o[o.FRONT=1028]="FRONT",o[o.BACK=1029]="BACK",o[o.FRONT_AND_BACK=1032]="FRONT_AND_BACK",o[o.BLEND=3042]="BLEND",o[o.DEPTH_TEST=2929]="DEPTH_TEST",o[o.DITHER=3024]="DITHER",o[o.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",o[o.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",o[o.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",o[o.SCISSOR_TEST=3089]="SCISSOR_TEST",o[o.STENCIL_TEST=2960]="STENCIL_TEST",o[o.NO_ERROR=0]="NO_ERROR",o[o.INVALID_ENUM=1280]="INVALID_ENUM",o[o.INVALID_VALUE=1281]="INVALID_VALUE",o[o.INVALID_OPERATION=1282]="INVALID_OPERATION",o[o.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",o[o.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",o[o.CW=2304]="CW",o[o.CCW=2305]="CCW",o[o.DONT_CARE=4352]="DONT_CARE",o[o.FASTEST=4353]="FASTEST",o[o.NICEST=4354]="NICEST",o[o.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",o[o.BYTE=5120]="BYTE",o[o.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",o[o.SHORT=5122]="SHORT",o[o.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",o[o.INT=5124]="INT",o[o.UNSIGNED_INT=5125]="UNSIGNED_INT",o[o.FLOAT=5126]="FLOAT",o[o.DOUBLE=5130]="DOUBLE",o[o.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",o[o.ALPHA=6406]="ALPHA",o[o.RGB=6407]="RGB",o[o.RGBA=6408]="RGBA",o[o.LUMINANCE=6409]="LUMINANCE",o[o.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",o[o.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",o[o.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",o[o.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",o[o.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",o[o.VERTEX_SHADER=35633]="VERTEX_SHADER",o[o.COMPILE_STATUS=35713]="COMPILE_STATUS",o[o.DELETE_STATUS=35712]="DELETE_STATUS",o[o.LINK_STATUS=35714]="LINK_STATUS",o[o.VALIDATE_STATUS=35715]="VALIDATE_STATUS",o[o.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",o[o.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",o[o.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",o[o.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",o[o.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",o[o.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",o[o.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",o[o.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",o[o.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",o[o.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",o[o.SHADER_TYPE=35663]="SHADER_TYPE",o[o.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",o[o.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",o[o.NEVER=512]="NEVER",o[o.ALWAYS=519]="ALWAYS",o[o.LESS=513]="LESS",o[o.EQUAL=514]="EQUAL",o[o.LEQUAL=515]="LEQUAL",o[o.GREATER=516]="GREATER",o[o.GEQUAL=518]="GEQUAL",o[o.NOTEQUAL=517]="NOTEQUAL",o[o.KEEP=7680]="KEEP",o[o.REPLACE=7681]="REPLACE",o[o.INCR=7682]="INCR",o[o.DECR=7683]="DECR",o[o.INVERT=5386]="INVERT",o[o.INCR_WRAP=34055]="INCR_WRAP",o[o.DECR_WRAP=34056]="DECR_WRAP",o[o.NEAREST=9728]="NEAREST",o[o.LINEAR=9729]="LINEAR",o[o.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",o[o.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",o[o.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",o[o.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",o[o.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",o[o.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",o[o.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",o[o.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",o[o.TEXTURE_2D=3553]="TEXTURE_2D",o[o.TEXTURE=5890]="TEXTURE",o[o.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",o[o.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",o[o.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",o[o.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",o[o.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",o[o.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",o[o.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",o[o.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",o[o.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",o[o.TEXTURE0=33984]="TEXTURE0",o[o.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",o[o.REPEAT=10497]="REPEAT",o[o.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",o[o.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",o[o.TEXTURE_WIDTH=4096]="TEXTURE_WIDTH",o[o.TEXTURE_HEIGHT=4097]="TEXTURE_HEIGHT",o[o.FLOAT_VEC2=35664]="FLOAT_VEC2",o[o.FLOAT_VEC3=35665]="FLOAT_VEC3",o[o.FLOAT_VEC4=35666]="FLOAT_VEC4",o[o.INT_VEC2=35667]="INT_VEC2",o[o.INT_VEC3=35668]="INT_VEC3",o[o.INT_VEC4=35669]="INT_VEC4",o[o.BOOL=35670]="BOOL",o[o.BOOL_VEC2=35671]="BOOL_VEC2",o[o.BOOL_VEC3=35672]="BOOL_VEC3",o[o.BOOL_VEC4=35673]="BOOL_VEC4",o[o.FLOAT_MAT2=35674]="FLOAT_MAT2",o[o.FLOAT_MAT3=35675]="FLOAT_MAT3",o[o.FLOAT_MAT4=35676]="FLOAT_MAT4",o[o.SAMPLER_2D=35678]="SAMPLER_2D",o[o.SAMPLER_CUBE=35680]="SAMPLER_CUBE",o[o.LOW_FLOAT=36336]="LOW_FLOAT",o[o.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",o[o.HIGH_FLOAT=36338]="HIGH_FLOAT",o[o.LOW_INT=36339]="LOW_INT",o[o.MEDIUM_INT=36340]="MEDIUM_INT",o[o.HIGH_INT=36341]="HIGH_INT",o[o.FRAMEBUFFER=36160]="FRAMEBUFFER",o[o.RENDERBUFFER=36161]="RENDERBUFFER",o[o.RGBA4=32854]="RGBA4",o[o.RGB5_A1=32855]="RGB5_A1",o[o.RGB565=36194]="RGB565",o[o.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",o[o.STENCIL_INDEX=6401]="STENCIL_INDEX",o[o.STENCIL_INDEX8=36168]="STENCIL_INDEX8",o[o.DEPTH_STENCIL=34041]="DEPTH_STENCIL",o[o.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",o[o.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",o[o.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",o[o.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",o[o.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",o[o.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",o[o.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",o[o.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",o[o.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",o[o.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",o[o.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",o[o.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",o[o.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",o[o.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",o[o.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",o[o.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",o[o.NONE=0]="NONE",o[o.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",o[o.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",o[o.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",o[o.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",o[o.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",o[o.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",o[o.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",o[o.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",o[o.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER",o[o.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",o[o.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",o[o.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",o[o.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",o[o.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",o[o.READ_BUFFER=3074]="READ_BUFFER",o[o.UNPACK_ROW_LENGTH=3314]="UNPACK_ROW_LENGTH",o[o.UNPACK_SKIP_ROWS=3315]="UNPACK_SKIP_ROWS",o[o.UNPACK_SKIP_PIXELS=3316]="UNPACK_SKIP_PIXELS",o[o.PACK_ROW_LENGTH=3330]="PACK_ROW_LENGTH",o[o.PACK_SKIP_ROWS=3331]="PACK_SKIP_ROWS",o[o.PACK_SKIP_PIXELS=3332]="PACK_SKIP_PIXELS",o[o.TEXTURE_BINDING_3D=32874]="TEXTURE_BINDING_3D",o[o.UNPACK_SKIP_IMAGES=32877]="UNPACK_SKIP_IMAGES",o[o.UNPACK_IMAGE_HEIGHT=32878]="UNPACK_IMAGE_HEIGHT",o[o.MAX_3D_TEXTURE_SIZE=32883]="MAX_3D_TEXTURE_SIZE",o[o.MAX_ELEMENTS_VERTICES=33e3]="MAX_ELEMENTS_VERTICES",o[o.MAX_ELEMENTS_INDICES=33001]="MAX_ELEMENTS_INDICES",o[o.MAX_TEXTURE_LOD_BIAS=34045]="MAX_TEXTURE_LOD_BIAS",o[o.MAX_FRAGMENT_UNIFORM_COMPONENTS=35657]="MAX_FRAGMENT_UNIFORM_COMPONENTS",o[o.MAX_VERTEX_UNIFORM_COMPONENTS=35658]="MAX_VERTEX_UNIFORM_COMPONENTS",o[o.MAX_ARRAY_TEXTURE_LAYERS=35071]="MAX_ARRAY_TEXTURE_LAYERS",o[o.MIN_PROGRAM_TEXEL_OFFSET=35076]="MIN_PROGRAM_TEXEL_OFFSET",o[o.MAX_PROGRAM_TEXEL_OFFSET=35077]="MAX_PROGRAM_TEXEL_OFFSET",o[o.MAX_VARYING_COMPONENTS=35659]="MAX_VARYING_COMPONENTS",o[o.FRAGMENT_SHADER_DERIVATIVE_HINT=35723]="FRAGMENT_SHADER_DERIVATIVE_HINT",o[o.RASTERIZER_DISCARD=35977]="RASTERIZER_DISCARD",o[o.VERTEX_ARRAY_BINDING=34229]="VERTEX_ARRAY_BINDING",o[o.MAX_VERTEX_OUTPUT_COMPONENTS=37154]="MAX_VERTEX_OUTPUT_COMPONENTS",o[o.MAX_FRAGMENT_INPUT_COMPONENTS=37157]="MAX_FRAGMENT_INPUT_COMPONENTS",o[o.MAX_SERVER_WAIT_TIMEOUT=37137]="MAX_SERVER_WAIT_TIMEOUT",o[o.MAX_ELEMENT_INDEX=36203]="MAX_ELEMENT_INDEX",o[o.RED=6403]="RED",o[o.RGB8=32849]="RGB8",o[o.RGBA8=32856]="RGBA8",o[o.RGB10_A2=32857]="RGB10_A2",o[o.TEXTURE_3D=32879]="TEXTURE_3D",o[o.TEXTURE_WRAP_R=32882]="TEXTURE_WRAP_R",o[o.TEXTURE_MIN_LOD=33082]="TEXTURE_MIN_LOD",o[o.TEXTURE_MAX_LOD=33083]="TEXTURE_MAX_LOD",o[o.TEXTURE_BASE_LEVEL=33084]="TEXTURE_BASE_LEVEL",o[o.TEXTURE_MAX_LEVEL=33085]="TEXTURE_MAX_LEVEL",o[o.TEXTURE_COMPARE_MODE=34892]="TEXTURE_COMPARE_MODE",o[o.TEXTURE_COMPARE_FUNC=34893]="TEXTURE_COMPARE_FUNC",o[o.SRGB=35904]="SRGB",o[o.SRGB8=35905]="SRGB8",o[o.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",o[o.COMPARE_REF_TO_TEXTURE=34894]="COMPARE_REF_TO_TEXTURE",o[o.RGBA32F=34836]="RGBA32F",o[o.RGB32F=34837]="RGB32F",o[o.RGBA16F=34842]="RGBA16F",o[o.RGB16F=34843]="RGB16F",o[o.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",o[o.TEXTURE_BINDING_2D_ARRAY=35869]="TEXTURE_BINDING_2D_ARRAY",o[o.R11F_G11F_B10F=35898]="R11F_G11F_B10F",o[o.RGB9_E5=35901]="RGB9_E5",o[o.RGBA32UI=36208]="RGBA32UI",o[o.RGB32UI=36209]="RGB32UI",o[o.RGBA16UI=36214]="RGBA16UI",o[o.RGB16UI=36215]="RGB16UI",o[o.RGBA8UI=36220]="RGBA8UI",o[o.RGB8UI=36221]="RGB8UI",o[o.RGBA32I=36226]="RGBA32I",o[o.RGB32I=36227]="RGB32I",o[o.RGBA16I=36232]="RGBA16I",o[o.RGB16I=36233]="RGB16I",o[o.RGBA8I=36238]="RGBA8I",o[o.RGB8I=36239]="RGB8I",o[o.RED_INTEGER=36244]="RED_INTEGER",o[o.RGB_INTEGER=36248]="RGB_INTEGER",o[o.RGBA_INTEGER=36249]="RGBA_INTEGER",o[o.R8=33321]="R8",o[o.RG8=33323]="RG8",o[o.R16F=33325]="R16F",o[o.R32F=33326]="R32F",o[o.RG16F=33327]="RG16F",o[o.RG32F=33328]="RG32F",o[o.R8I=33329]="R8I",o[o.R8UI=33330]="R8UI",o[o.R16I=33331]="R16I",o[o.R16UI=33332]="R16UI",o[o.R32I=33333]="R32I",o[o.R32UI=33334]="R32UI",o[o.RG8I=33335]="RG8I",o[o.RG8UI=33336]="RG8UI",o[o.RG16I=33337]="RG16I",o[o.RG16UI=33338]="RG16UI",o[o.RG32I=33339]="RG32I",o[o.RG32UI=33340]="RG32UI",o[o.R8_SNORM=36756]="R8_SNORM",o[o.RG8_SNORM=36757]="RG8_SNORM",o[o.RGB8_SNORM=36758]="RGB8_SNORM",o[o.RGBA8_SNORM=36759]="RGBA8_SNORM",o[o.RGB10_A2UI=36975]="RGB10_A2UI",o[o.TEXTURE_IMMUTABLE_FORMAT=37167]="TEXTURE_IMMUTABLE_FORMAT",o[o.TEXTURE_IMMUTABLE_LEVELS=33503]="TEXTURE_IMMUTABLE_LEVELS",o[o.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",o[o.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",o[o.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",o[o.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",o[o.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",o[o.HALF_FLOAT=5131]="HALF_FLOAT",o[o.RG=33319]="RG",o[o.RG_INTEGER=33320]="RG_INTEGER",o[o.INT_2_10_10_10_REV=36255]="INT_2_10_10_10_REV",o[o.CURRENT_QUERY=34917]="CURRENT_QUERY",o[o.QUERY_RESULT=34918]="QUERY_RESULT",o[o.QUERY_RESULT_AVAILABLE=34919]="QUERY_RESULT_AVAILABLE",o[o.ANY_SAMPLES_PASSED=35887]="ANY_SAMPLES_PASSED",o[o.ANY_SAMPLES_PASSED_CONSERVATIVE=36202]="ANY_SAMPLES_PASSED_CONSERVATIVE",o[o.MAX_DRAW_BUFFERS=34852]="MAX_DRAW_BUFFERS",o[o.DRAW_BUFFER0=34853]="DRAW_BUFFER0",o[o.DRAW_BUFFER1=34854]="DRAW_BUFFER1",o[o.DRAW_BUFFER2=34855]="DRAW_BUFFER2",o[o.DRAW_BUFFER3=34856]="DRAW_BUFFER3",o[o.DRAW_BUFFER4=34857]="DRAW_BUFFER4",o[o.DRAW_BUFFER5=34858]="DRAW_BUFFER5",o[o.DRAW_BUFFER6=34859]="DRAW_BUFFER6",o[o.DRAW_BUFFER7=34860]="DRAW_BUFFER7",o[o.DRAW_BUFFER8=34861]="DRAW_BUFFER8",o[o.DRAW_BUFFER9=34862]="DRAW_BUFFER9",o[o.DRAW_BUFFER10=34863]="DRAW_BUFFER10",o[o.DRAW_BUFFER11=34864]="DRAW_BUFFER11",o[o.DRAW_BUFFER12=34865]="DRAW_BUFFER12",o[o.DRAW_BUFFER13=34866]="DRAW_BUFFER13",o[o.DRAW_BUFFER14=34867]="DRAW_BUFFER14",o[o.DRAW_BUFFER15=34868]="DRAW_BUFFER15",o[o.MAX_COLOR_ATTACHMENTS=36063]="MAX_COLOR_ATTACHMENTS",o[o.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",o[o.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",o[o.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",o[o.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",o[o.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",o[o.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",o[o.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",o[o.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",o[o.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",o[o.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",o[o.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",o[o.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",o[o.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",o[o.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",o[o.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15",o[o.SAMPLER_3D=35679]="SAMPLER_3D",o[o.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",o[o.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",o[o.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",o[o.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",o[o.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",o[o.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",o[o.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",o[o.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",o[o.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",o[o.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",o[o.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",o[o.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY",o[o.MAX_SAMPLES=36183]="MAX_SAMPLES",o[o.SAMPLER_BINDING=35097]="SAMPLER_BINDING",o[o.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",o[o.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",o[o.PIXEL_PACK_BUFFER_BINDING=35053]="PIXEL_PACK_BUFFER_BINDING",o[o.PIXEL_UNPACK_BUFFER_BINDING=35055]="PIXEL_UNPACK_BUFFER_BINDING",o[o.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",o[o.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",o[o.COPY_READ_BUFFER_BINDING=36662]="COPY_READ_BUFFER_BINDING",o[o.COPY_WRITE_BUFFER_BINDING=36663]="COPY_WRITE_BUFFER_BINDING",o[o.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",o[o.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",o[o.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",o[o.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",o[o.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",o[o.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",o[o.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",o[o.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",o[o.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",o[o.UNSIGNED_NORMALIZED=35863]="UNSIGNED_NORMALIZED",o[o.SIGNED_NORMALIZED=36764]="SIGNED_NORMALIZED",o[o.VERTEX_ATTRIB_ARRAY_INTEGER=35069]="VERTEX_ATTRIB_ARRAY_INTEGER",o[o.VERTEX_ATTRIB_ARRAY_DIVISOR=35070]="VERTEX_ATTRIB_ARRAY_DIVISOR",o[o.TRANSFORM_FEEDBACK_BUFFER_MODE=35967]="TRANSFORM_FEEDBACK_BUFFER_MODE",o[o.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS=35968]="MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS",o[o.TRANSFORM_FEEDBACK_VARYINGS=35971]="TRANSFORM_FEEDBACK_VARYINGS",o[o.TRANSFORM_FEEDBACK_BUFFER_START=35972]="TRANSFORM_FEEDBACK_BUFFER_START",o[o.TRANSFORM_FEEDBACK_BUFFER_SIZE=35973]="TRANSFORM_FEEDBACK_BUFFER_SIZE",o[o.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN=35976]="TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN",o[o.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS=35978]="MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS",o[o.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS=35979]="MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS",o[o.INTERLEAVED_ATTRIBS=35980]="INTERLEAVED_ATTRIBS",o[o.SEPARATE_ATTRIBS=35981]="SEPARATE_ATTRIBS",o[o.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER",o[o.TRANSFORM_FEEDBACK_BUFFER_BINDING=35983]="TRANSFORM_FEEDBACK_BUFFER_BINDING",o[o.TRANSFORM_FEEDBACK=36386]="TRANSFORM_FEEDBACK",o[o.TRANSFORM_FEEDBACK_PAUSED=36387]="TRANSFORM_FEEDBACK_PAUSED",o[o.TRANSFORM_FEEDBACK_ACTIVE=36388]="TRANSFORM_FEEDBACK_ACTIVE",o[o.TRANSFORM_FEEDBACK_BINDING=36389]="TRANSFORM_FEEDBACK_BINDING",o[o.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING=33296]="FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING",o[o.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE=33297]="FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE",o[o.FRAMEBUFFER_ATTACHMENT_RED_SIZE=33298]="FRAMEBUFFER_ATTACHMENT_RED_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE=33299]="FRAMEBUFFER_ATTACHMENT_GREEN_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE=33300]="FRAMEBUFFER_ATTACHMENT_BLUE_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE=33301]="FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE=33302]="FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE=33303]="FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE",o[o.FRAMEBUFFER_DEFAULT=33304]="FRAMEBUFFER_DEFAULT",o[o.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",o[o.DRAW_FRAMEBUFFER_BINDING=36006]="DRAW_FRAMEBUFFER_BINDING",o[o.READ_FRAMEBUFFER_BINDING=36010]="READ_FRAMEBUFFER_BINDING",o[o.RENDERBUFFER_SAMPLES=36011]="RENDERBUFFER_SAMPLES",o[o.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER=36052]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER",o[o.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE=36182]="FRAMEBUFFER_INCOMPLETE_MULTISAMPLE",o[o.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",o[o.UNIFORM_BUFFER_BINDING=35368]="UNIFORM_BUFFER_BINDING",o[o.UNIFORM_BUFFER_START=35369]="UNIFORM_BUFFER_START",o[o.UNIFORM_BUFFER_SIZE=35370]="UNIFORM_BUFFER_SIZE",o[o.MAX_VERTEX_UNIFORM_BLOCKS=35371]="MAX_VERTEX_UNIFORM_BLOCKS",o[o.MAX_FRAGMENT_UNIFORM_BLOCKS=35373]="MAX_FRAGMENT_UNIFORM_BLOCKS",o[o.MAX_COMBINED_UNIFORM_BLOCKS=35374]="MAX_COMBINED_UNIFORM_BLOCKS",o[o.MAX_UNIFORM_BUFFER_BINDINGS=35375]="MAX_UNIFORM_BUFFER_BINDINGS",o[o.MAX_UNIFORM_BLOCK_SIZE=35376]="MAX_UNIFORM_BLOCK_SIZE",o[o.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS=35377]="MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS",o[o.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS=35379]="MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS",o[o.UNIFORM_BUFFER_OFFSET_ALIGNMENT=35380]="UNIFORM_BUFFER_OFFSET_ALIGNMENT",o[o.ACTIVE_UNIFORM_BLOCKS=35382]="ACTIVE_UNIFORM_BLOCKS",o[o.UNIFORM_TYPE=35383]="UNIFORM_TYPE",o[o.UNIFORM_SIZE=35384]="UNIFORM_SIZE",o[o.UNIFORM_BLOCK_INDEX=35386]="UNIFORM_BLOCK_INDEX",o[o.UNIFORM_OFFSET=35387]="UNIFORM_OFFSET",o[o.UNIFORM_ARRAY_STRIDE=35388]="UNIFORM_ARRAY_STRIDE",o[o.UNIFORM_MATRIX_STRIDE=35389]="UNIFORM_MATRIX_STRIDE",o[o.UNIFORM_IS_ROW_MAJOR=35390]="UNIFORM_IS_ROW_MAJOR",o[o.UNIFORM_BLOCK_BINDING=35391]="UNIFORM_BLOCK_BINDING",o[o.UNIFORM_BLOCK_DATA_SIZE=35392]="UNIFORM_BLOCK_DATA_SIZE",o[o.UNIFORM_BLOCK_ACTIVE_UNIFORMS=35394]="UNIFORM_BLOCK_ACTIVE_UNIFORMS",o[o.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES=35395]="UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES",o[o.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER=35396]="UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER",o[o.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER=35398]="UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER",o[o.OBJECT_TYPE=37138]="OBJECT_TYPE",o[o.SYNC_CONDITION=37139]="SYNC_CONDITION",o[o.SYNC_STATUS=37140]="SYNC_STATUS",o[o.SYNC_FLAGS=37141]="SYNC_FLAGS",o[o.SYNC_FENCE=37142]="SYNC_FENCE",o[o.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE",o[o.UNSIGNALED=37144]="UNSIGNALED",o[o.SIGNALED=37145]="SIGNALED",o[o.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",o[o.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",o[o.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",o[o.WAIT_FAILED=37149]="WAIT_FAILED",o[o.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT",o[o.COLOR=6144]="COLOR",o[o.DEPTH=6145]="DEPTH",o[o.STENCIL=6146]="STENCIL",o[o.MIN=32775]="MIN",o[o.MAX=32776]="MAX",o[o.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",o[o.STREAM_READ=35041]="STREAM_READ",o[o.STREAM_COPY=35042]="STREAM_COPY",o[o.STATIC_READ=35045]="STATIC_READ",o[o.STATIC_COPY=35046]="STATIC_COPY",o[o.DYNAMIC_READ=35049]="DYNAMIC_READ",o[o.DYNAMIC_COPY=35050]="DYNAMIC_COPY",o[o.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",o[o.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8",o[o.INVALID_INDEX=4294967295]="INVALID_INDEX",o[o.TIMEOUT_IGNORED=-1]="TIMEOUT_IGNORED",o[o.MAX_CLIENT_WAIT_TIMEOUT_WEBGL=37447]="MAX_CLIENT_WAIT_TIMEOUT_WEBGL",o[o.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE=35070]="VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE",o[o.UNMASKED_VENDOR_WEBGL=37445]="UNMASKED_VENDOR_WEBGL",o[o.UNMASKED_RENDERER_WEBGL=37446]="UNMASKED_RENDERER_WEBGL",o[o.MAX_TEXTURE_MAX_ANISOTROPY_EXT=34047]="MAX_TEXTURE_MAX_ANISOTROPY_EXT",o[o.TEXTURE_MAX_ANISOTROPY_EXT=34046]="TEXTURE_MAX_ANISOTROPY_EXT",o[o.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",o[o.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",o[o.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",o[o.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",o[o.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",o[o.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",o[o.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",o[o.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",o[o.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",o[o.COMPRESSED_RGBA8_ETC2_EAC=37493]="COMPRESSED_RGBA8_ETC2_EAC",o[o.COMPRESSED_SRGB8_ETC2=37494]="COMPRESSED_SRGB8_ETC2",o[o.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37495]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",o[o.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37496]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",o[o.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37497]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",o[o.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",o[o.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",o[o.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",o[o.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",o[o.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",o[o.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",o[o.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",o[o.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL",o[o.UNSIGNED_INT_24_8_WEBGL=34042]="UNSIGNED_INT_24_8_WEBGL",o[o.HALF_FLOAT_OES=36193]="HALF_FLOAT_OES",o[o.RGBA32F_EXT=34836]="RGBA32F_EXT",o[o.RGB32F_EXT=34837]="RGB32F_EXT",o[o.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT=33297]="FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT",o[o.UNSIGNED_NORMALIZED_EXT=35863]="UNSIGNED_NORMALIZED_EXT",o[o.MIN_EXT=32775]="MIN_EXT",o[o.MAX_EXT=32776]="MAX_EXT",o[o.SRGB_EXT=35904]="SRGB_EXT",o[o.SRGB_ALPHA_EXT=35906]="SRGB_ALPHA_EXT",o[o.SRGB8_ALPHA8_EXT=35907]="SRGB8_ALPHA8_EXT",o[o.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT=33296]="FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT",o[o.FRAGMENT_SHADER_DERIVATIVE_HINT_OES=35723]="FRAGMENT_SHADER_DERIVATIVE_HINT_OES",o[o.COLOR_ATTACHMENT0_WEBGL=36064]="COLOR_ATTACHMENT0_WEBGL",o[o.COLOR_ATTACHMENT1_WEBGL=36065]="COLOR_ATTACHMENT1_WEBGL",o[o.COLOR_ATTACHMENT2_WEBGL=36066]="COLOR_ATTACHMENT2_WEBGL",o[o.COLOR_ATTACHMENT3_WEBGL=36067]="COLOR_ATTACHMENT3_WEBGL",o[o.COLOR_ATTACHMENT4_WEBGL=36068]="COLOR_ATTACHMENT4_WEBGL",o[o.COLOR_ATTACHMENT5_WEBGL=36069]="COLOR_ATTACHMENT5_WEBGL",o[o.COLOR_ATTACHMENT6_WEBGL=36070]="COLOR_ATTACHMENT6_WEBGL",o[o.COLOR_ATTACHMENT7_WEBGL=36071]="COLOR_ATTACHMENT7_WEBGL",o[o.COLOR_ATTACHMENT8_WEBGL=36072]="COLOR_ATTACHMENT8_WEBGL",o[o.COLOR_ATTACHMENT9_WEBGL=36073]="COLOR_ATTACHMENT9_WEBGL",o[o.COLOR_ATTACHMENT10_WEBGL=36074]="COLOR_ATTACHMENT10_WEBGL",o[o.COLOR_ATTACHMENT11_WEBGL=36075]="COLOR_ATTACHMENT11_WEBGL",o[o.COLOR_ATTACHMENT12_WEBGL=36076]="COLOR_ATTACHMENT12_WEBGL",o[o.COLOR_ATTACHMENT13_WEBGL=36077]="COLOR_ATTACHMENT13_WEBGL",o[o.COLOR_ATTACHMENT14_WEBGL=36078]="COLOR_ATTACHMENT14_WEBGL",o[o.COLOR_ATTACHMENT15_WEBGL=36079]="COLOR_ATTACHMENT15_WEBGL",o[o.DRAW_BUFFER0_WEBGL=34853]="DRAW_BUFFER0_WEBGL",o[o.DRAW_BUFFER1_WEBGL=34854]="DRAW_BUFFER1_WEBGL",o[o.DRAW_BUFFER2_WEBGL=34855]="DRAW_BUFFER2_WEBGL",o[o.DRAW_BUFFER3_WEBGL=34856]="DRAW_BUFFER3_WEBGL",o[o.DRAW_BUFFER4_WEBGL=34857]="DRAW_BUFFER4_WEBGL",o[o.DRAW_BUFFER5_WEBGL=34858]="DRAW_BUFFER5_WEBGL",o[o.DRAW_BUFFER6_WEBGL=34859]="DRAW_BUFFER6_WEBGL",o[o.DRAW_BUFFER7_WEBGL=34860]="DRAW_BUFFER7_WEBGL",o[o.DRAW_BUFFER8_WEBGL=34861]="DRAW_BUFFER8_WEBGL",o[o.DRAW_BUFFER9_WEBGL=34862]="DRAW_BUFFER9_WEBGL",o[o.DRAW_BUFFER10_WEBGL=34863]="DRAW_BUFFER10_WEBGL",o[o.DRAW_BUFFER11_WEBGL=34864]="DRAW_BUFFER11_WEBGL",o[o.DRAW_BUFFER12_WEBGL=34865]="DRAW_BUFFER12_WEBGL",o[o.DRAW_BUFFER13_WEBGL=34866]="DRAW_BUFFER13_WEBGL",o[o.DRAW_BUFFER14_WEBGL=34867]="DRAW_BUFFER14_WEBGL",o[o.DRAW_BUFFER15_WEBGL=34868]="DRAW_BUFFER15_WEBGL",o[o.MAX_COLOR_ATTACHMENTS_WEBGL=36063]="MAX_COLOR_ATTACHMENTS_WEBGL",o[o.MAX_DRAW_BUFFERS_WEBGL=34852]="MAX_DRAW_BUFFERS_WEBGL",o[o.VERTEX_ARRAY_BINDING_OES=34229]="VERTEX_ARRAY_BINDING_OES",o[o.QUERY_COUNTER_BITS_EXT=34916]="QUERY_COUNTER_BITS_EXT",o[o.CURRENT_QUERY_EXT=34917]="CURRENT_QUERY_EXT",o[o.QUERY_RESULT_EXT=34918]="QUERY_RESULT_EXT",o[o.QUERY_RESULT_AVAILABLE_EXT=34919]="QUERY_RESULT_AVAILABLE_EXT",o[o.TIME_ELAPSED_EXT=35007]="TIME_ELAPSED_EXT",o[o.TIMESTAMP_EXT=36392]="TIMESTAMP_EXT",o[o.GPU_DISJOINT_EXT=36795]="GPU_DISJOINT_EXT"})(Ml||(Ml={}));var y0;(function(o){o[o.Buffer=0]="Buffer",o[o.Texture=1]="Texture",o[o.RenderTarget=2]="RenderTarget",o[o.Sampler=3]="Sampler",o[o.Program=4]="Program",o[o.Bindings=5]="Bindings",o[o.InputLayout=6]="InputLayout",o[o.RenderPipeline=7]="RenderPipeline",o[o.ComputePipeline=8]="ComputePipeline",o[o.Readback=9]="Readback",o[o.QueryPool=10]="QueryPool"})(y0||(y0={}));var b0;(function(o){o[o.NEVER=512]="NEVER",o[o.LESS=513]="LESS",o[o.EQUAL=514]="EQUAL",o[o.LEQUAL=515]="LEQUAL",o[o.GREATER=516]="GREATER",o[o.NOTEQUAL=517]="NOTEQUAL",o[o.GEQUAL=518]="GEQUAL",o[o.ALWAYS=519]="ALWAYS"})(b0||(b0={}));var SE;(function(o){o[o.CCW=2305]="CCW",o[o.CW=2304]="CW"})(SE||(SE={}));var Nb;(function(o){o[o.NONE=0]="NONE",o[o.FRONT=1]="FRONT",o[o.BACK=2]="BACK",o[o.FRONT_AND_BACK=3]="FRONT_AND_BACK"})(Nb||(Nb={}));var Sm;(function(o){o[o.ZERO=0]="ZERO",o[o.ONE=1]="ONE",o[o.SRC=768]="SRC",o[o.ONE_MINUS_SRC=769]="ONE_MINUS_SRC",o[o.DST=774]="DST",o[o.ONE_MINUS_DST=775]="ONE_MINUS_DST",o[o.SRC_ALPHA=770]="SRC_ALPHA",o[o.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",o[o.DST_ALPHA=772]="DST_ALPHA",o[o.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",o[o.CONST=32769]="CONST",o[o.ONE_MINUS_CONSTANT=32770]="ONE_MINUS_CONSTANT",o[o.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE"})(Sm||(Sm={}));var Dy;(function(o){o[o.ADD=32774]="ADD",o[o.SUBSTRACT=32778]="SUBSTRACT",o[o.REVERSE_SUBSTRACT=32779]="REVERSE_SUBSTRACT",o[o.MIN=32775]="MIN",o[o.MAX=32776]="MAX"})(Dy||(Dy={}));var Hy;(function(o){o[o.CLAMP_TO_EDGE=0]="CLAMP_TO_EDGE",o[o.REPEAT=1]="REPEAT",o[o.MIRRORED_REPEAT=2]="MIRRORED_REPEAT"})(Hy||(Hy={}));var _1;(function(o){o[o.POINT=0]="POINT",o[o.BILINEAR=1]="BILINEAR"})(_1||(_1={}));var ey;(function(o){o[o.NO_MIP=0]="NO_MIP",o[o.NEAREST=1]="NEAREST",o[o.LINEAR=2]="LINEAR"})(ey||(ey={}));var Xv;(function(o){o[o.POINTS=0]="POINTS",o[o.TRIANGLES=1]="TRIANGLES",o[o.TRIANGLE_STRIP=2]="TRIANGLE_STRIP",o[o.LINES=3]="LINES",o[o.LINE_STRIP=4]="LINE_STRIP"})(Xv||(Xv={}));var ov;(function(o){o[o.MAP_READ=1]="MAP_READ",o[o.MAP_WRITE=2]="MAP_WRITE",o[o.COPY_SRC=4]="COPY_SRC",o[o.COPY_DST=8]="COPY_DST",o[o.INDEX=16]="INDEX",o[o.VERTEX=32]="VERTEX",o[o.UNIFORM=64]="UNIFORM",o[o.STORAGE=128]="STORAGE",o[o.INDIRECT=256]="INDIRECT",o[o.QUERY_RESOLVE=512]="QUERY_RESOLVE"})(ov||(ov={}));var W2;(function(o){o[o.STATIC=1]="STATIC",o[o.DYNAMIC=2]="DYNAMIC"})(W2||(W2={}));var eS;(function(o){o[o.VERTEX=1]="VERTEX",o[o.INSTANCE=2]="INSTANCE"})(eS||(eS={}));var h8;(function(o){o.LOADED="loaded"})(h8||(h8={}));var Lm;(function(o){o[o.TEXTURE_2D=0]="TEXTURE_2D",o[o.TEXTURE_2D_ARRAY=1]="TEXTURE_2D_ARRAY",o[o.TEXTURE_3D=2]="TEXTURE_3D",o[o.TEXTURE_CUBE_MAP=3]="TEXTURE_CUBE_MAP"})(Lm||(Lm={}));var bx;(function(o){o[o.SAMPLED=1]="SAMPLED",o[o.RENDER_TARGET=2]="RENDER_TARGET"})(bx||(bx={}));var Gy;(function(o){o[o.NONE=0]="NONE",o[o.RED=1]="RED",o[o.GREEN=2]="GREEN",o[o.BLUE=4]="BLUE",o[o.ALPHA=8]="ALPHA",o[o.RGB=7]="RGB",o[o.ALL=15]="ALL"})(Gy||(Gy={}));var P_;(function(o){o[o.KEEP=7680]="KEEP",o[o.ZERO=0]="ZERO",o[o.REPLACE=7681]="REPLACE",o[o.INVERT=5386]="INVERT",o[o.INCREMENT_CLAMP=7682]="INCREMENT_CLAMP",o[o.DECREMENT_CLAMP=7683]="DECREMENT_CLAMP",o[o.INCREMENT_WRAP=34055]="INCREMENT_WRAP",o[o.DECREMENT_WRAP=34056]="DECREMENT_WRAP"})(P_||(P_={}));function yU(o,d,l,c){var u=Lm.TEXTURE_2D,m=1,E=bx.SAMPLED;return{dimension:u,format:o,width:d,height:l,depthOrArrayLayers:m,mipLevelCount:c,usage:E}}var q0;(function(o){o[o.Float=0]="Float",o[o.Uint=1]="Uint",o[o.Sint=2]="Sint",o[o.Depth=3]="Depth"})(q0||(q0={}));var $A;(function(o){o[o.LOWER_LEFT=0]="LOWER_LEFT",o[o.UPPER_LEFT=1]="UPPER_LEFT"})($A||($A={}));var Z2;(function(o){o[o.NEGATIVE_ONE=0]="NEGATIVE_ONE",o[o.ZERO=1]="ZERO"})(Z2||(Z2={}));var AR;(function(o){o[o.OcclusionConservative=0]="OcclusionConservative"})(AR||(AR={}));var $d;(function(o){o[o.U8=1]="U8",o[o.U16=2]="U16",o[o.U32=3]="U32",o[o.S8=4]="S8",o[o.S16=5]="S16",o[o.S32=6]="S32",o[o.F16=7]="F16",o[o.F32=8]="F32",o[o.BC1=65]="BC1",o[o.BC2=66]="BC2",o[o.BC3=67]="BC3",o[o.BC4_UNORM=68]="BC4_UNORM",o[o.BC4_SNORM=69]="BC4_SNORM",o[o.BC5_UNORM=70]="BC5_UNORM",o[o.BC5_SNORM=71]="BC5_SNORM",o[o.U16_PACKED_5551=97]="U16_PACKED_5551",o[o.U16_PACKED_565=98]="U16_PACKED_565",o[o.D24=129]="D24",o[o.D32F=130]="D32F",o[o.D24S8=131]="D24S8",o[o.D32FS8=132]="D32FS8"})($d||($d={}));var Fp;(function(o){o[o.R=1]="R",o[o.RG=2]="RG",o[o.RGB=3]="RGB",o[o.RGBA=4]="RGBA",o[o.A=5]="A"})(Fp||(Fp={}));function HQ(o){return o}var Uf;(function(o){o[o.None=0]="None",o[o.Normalized=1]="Normalized",o[o.sRGB=2]="sRGB",o[o.Depth=4]="Depth",o[o.Stencil=8]="Stencil",o[o.RenderTarget=16]="RenderTarget"})(Uf||(Uf={}));function Cg(o,d,l){return o<<16|d<<8|l}var qu;(function(o){o[o.ALPHA=Cg($d.U8,Fp.A,Uf.None)]="ALPHA",o[o.U8_LUMINANCE=Cg($d.U8,Fp.A,Uf.None)]="U8_LUMINANCE",o[o.F16_LUMINANCE=Cg($d.F16,Fp.A,Uf.None)]="F16_LUMINANCE",o[o.F32_LUMINANCE=Cg($d.F32,Fp.A,Uf.None)]="F32_LUMINANCE",o[o.F16_R=Cg($d.F16,Fp.R,Uf.None)]="F16_R",o[o.F16_RG=Cg($d.F16,Fp.RG,Uf.None)]="F16_RG",o[o.F16_RGB=Cg($d.F16,Fp.RGB,Uf.None)]="F16_RGB",o[o.F16_RGBA=Cg($d.F16,Fp.RGBA,Uf.None)]="F16_RGBA",o[o.F32_R=Cg($d.F32,Fp.R,Uf.None)]="F32_R",o[o.F32_RG=Cg($d.F32,Fp.RG,Uf.None)]="F32_RG",o[o.F32_RGB=Cg($d.F32,Fp.RGB,Uf.None)]="F32_RGB",o[o.F32_RGBA=Cg($d.F32,Fp.RGBA,Uf.None)]="F32_RGBA",o[o.U8_R=Cg($d.U8,Fp.R,Uf.None)]="U8_R",o[o.U8_R_NORM=Cg($d.U8,Fp.R,Uf.Normalized)]="U8_R_NORM",o[o.U8_RG=Cg($d.U8,Fp.RG,Uf.None)]="U8_RG",o[o.U8_RG_NORM=Cg($d.U8,Fp.RG,Uf.Normalized)]="U8_RG_NORM",o[o.U8_RGB=Cg($d.U8,Fp.RGB,Uf.None)]="U8_RGB",o[o.U8_RGB_NORM=Cg($d.U8,Fp.RGB,Uf.Normalized)]="U8_RGB_NORM",o[o.U8_RGB_SRGB=Cg($d.U8,Fp.RGB,Uf.sRGB|Uf.Normalized)]="U8_RGB_SRGB",o[o.U8_RGBA=Cg($d.U8,Fp.RGBA,Uf.None)]="U8_RGBA",o[o.U8_RGBA_NORM=Cg($d.U8,Fp.RGBA,Uf.Normalized)]="U8_RGBA_NORM",o[o.U8_RGBA_SRGB=Cg($d.U8,Fp.RGBA,Uf.sRGB|Uf.Normalized)]="U8_RGBA_SRGB",o[o.U16_R=Cg($d.U16,Fp.R,Uf.None)]="U16_R",o[o.U16_R_NORM=Cg($d.U16,Fp.R,Uf.Normalized)]="U16_R_NORM",o[o.U16_RG_NORM=Cg($d.U16,Fp.RG,Uf.Normalized)]="U16_RG_NORM",o[o.U16_RGBA_NORM=Cg($d.U16,Fp.RGBA,Uf.Normalized)]="U16_RGBA_NORM",o[o.U16_RGB=Cg($d.U16,Fp.RGB,Uf.None)]="U16_RGB",o[o.U32_R=Cg($d.U32,Fp.R,Uf.None)]="U32_R",o[o.U32_RG=Cg($d.U32,Fp.RG,Uf.None)]="U32_RG",o[o.S8_R=Cg($d.S8,Fp.R,Uf.None)]="S8_R",o[o.S8_R_NORM=Cg($d.S8,Fp.R,Uf.Normalized)]="S8_R_NORM",o[o.S8_RG_NORM=Cg($d.S8,Fp.RG,Uf.Normalized)]="S8_RG_NORM",o[o.S8_RGB_NORM=Cg($d.S8,Fp.RGB,Uf.Normalized)]="S8_RGB_NORM",o[o.S8_RGBA_NORM=Cg($d.S8,Fp.RGBA,Uf.Normalized)]="S8_RGBA_NORM",o[o.S16_R=Cg($d.S16,Fp.R,Uf.None)]="S16_R",o[o.S16_RG=Cg($d.S16,Fp.RG,Uf.None)]="S16_RG",o[o.S16_RG_NORM=Cg($d.S16,Fp.RG,Uf.Normalized)]="S16_RG_NORM",o[o.S16_RGB_NORM=Cg($d.S16,Fp.RGB,Uf.Normalized)]="S16_RGB_NORM",o[o.S16_RGBA=Cg($d.S16,Fp.RGBA,Uf.None)]="S16_RGBA",o[o.S16_RGBA_NORM=Cg($d.S16,Fp.RGBA,Uf.Normalized)]="S16_RGBA_NORM",o[o.S32_R=Cg($d.S32,Fp.R,Uf.None)]="S32_R",o[o.U16_RGBA_5551=Cg($d.U16_PACKED_5551,Fp.RGBA,Uf.Normalized)]="U16_RGBA_5551",o[o.U16_RGB_565=Cg($d.U16_PACKED_565,Fp.RGB,Uf.Normalized)]="U16_RGB_565",o[o.BC1=Cg($d.BC1,Fp.RGBA,Uf.Normalized)]="BC1",o[o.BC1_SRGB=Cg($d.BC1,Fp.RGBA,Uf.Normalized|Uf.sRGB)]="BC1_SRGB",o[o.BC2=Cg($d.BC2,Fp.RGBA,Uf.Normalized)]="BC2",o[o.BC2_SRGB=Cg($d.BC2,Fp.RGBA,Uf.Normalized|Uf.sRGB)]="BC2_SRGB",o[o.BC3=Cg($d.BC3,Fp.RGBA,Uf.Normalized)]="BC3",o[o.BC3_SRGB=Cg($d.BC3,Fp.RGBA,Uf.Normalized|Uf.sRGB)]="BC3_SRGB",o[o.BC4_UNORM=Cg($d.BC4_UNORM,Fp.R,Uf.Normalized)]="BC4_UNORM",o[o.BC4_SNORM=Cg($d.BC4_SNORM,Fp.R,Uf.Normalized)]="BC4_SNORM",o[o.BC5_UNORM=Cg($d.BC5_UNORM,Fp.RG,Uf.Normalized)]="BC5_UNORM",o[o.BC5_SNORM=Cg($d.BC5_SNORM,Fp.RG,Uf.Normalized)]="BC5_SNORM",o[o.D24=Cg($d.D24,Fp.R,Uf.Depth)]="D24",o[o.D24_S8=Cg($d.D24S8,Fp.RG,Uf.Depth|Uf.Stencil)]="D24_S8",o[o.D32F=Cg($d.D32F,Fp.R,Uf.Depth)]="D32F",o[o.D32F_S8=Cg($d.D32FS8,Fp.RG,Uf.Depth|Uf.Stencil)]="D32F_S8",o[o.U8_RGB_RT=Cg($d.U8,Fp.RGB,Uf.RenderTarget|Uf.Normalized)]="U8_RGB_RT",o[o.U8_RGBA_RT=Cg($d.U8,Fp.RGBA,Uf.RenderTarget|Uf.Normalized)]="U8_RGBA_RT",o[o.U8_RGBA_RT_SRGB=Cg($d.U8,Fp.RGBA,Uf.RenderTarget|Uf.Normalized|Uf.sRGB)]="U8_RGBA_RT_SRGB"})(qu||(qu={}));function DR(o){return o>>>8&255}function xx(o){return o>>>16&255}function VA(o){return o&255}function H2(o){switch(o){case $d.F32:case $d.U32:case $d.S32:return 4;case $d.U16:case $d.S16:case $d.F16:return 2;case $d.U8:case $d.S8:return 1;default:throw new Error("whoops")}}function sL(o){return H2(xx(o))}function QG(o){return DR(o)}function _U(o){var d=H2(xx(o)),l=DR(o);return d*l}function f8(o,d){return o&4294967040|d}function eK(o,d){return o&4294902015|d<<8}function IR(o){var d=VA(o);if(d&Uf.Depth)return q0.Depth;if(d&Uf.Normalized)return q0.Float;var l=xx(o);if(l===$d.F16||l===$d.F32)return q0.Float;if(l===$d.U8||l===$d.U16||l===$d.U32)return q0.Uint;if(l===$d.S8||l===$d.S16||l===$d.S32)return q0.Sint;throw new Error("whoops")}function sm(o,d){if(d===void 0&&(d=""),!o)throw new Error("Assert fail: ".concat(d))}function tS(o){if(o!=null)return o;throw new Error("Missing object")}function bU(o,d){return o.r===d.r&&o.g===d.g&&o.b===d.b&&o.a===d.a}function p8(o,d){o.r=d.r,o.g=d.g,o.b=d.b,o.a=d.a}function g8(o){var d=o.r,l=o.g,c=o.b,u=o.a;return{r:d,g:l,b:c,a:u}}function PR(o,d,l,c){return c===void 0&&(c=1),{r:o,g:d,b:l,a:c}}var nS=PR(0,0,0,0),a1=PR(0,0,0,1),xU=PR(1,1,1,0),GQ=PR(1,1,1,1),jA=!0;function tK(o,d){d===void 0&&(d=jA),d&&(o[10]=-o[10],o[14]=-o[14])}function nK(o,d){d===void 0&&(d=jA),d&&(o[10]=-o[10],o[14]=-o[14]+1)}function wU(o,d){if(d===void 0&&(d=jA),d)switch(o){case b0.LESS:return b0.GREATER;case b0.LEQUAL:return b0.GEQUAL;case b0.GEQUAL:return b0.LEQUAL;case b0.GREATER:return b0.LESS;default:return o}else return o}function mie(o,d){return d===void 0&&(d=jA),d?1-o:o}function vie(o,d){return d===void 0&&(d=jA),d?-o:o}function yie(o,d,l,c){if(c===void 0&&(c=jA),l=wU(l,c),l===b0.LESS)return od;if(l===b0.GEQUAL)return o>=d;throw new Error("whoops")}function m8(o){return!!(o&&!(o&o-1))}function EE(o,d){return o!=null?o:d}function rK(o){return o===void 0?null:o}function aL(o,d,l){o.length=d,o.fill(l)}function LR(o,d){var l=d-1;return o+l&~l}function lL(o,d){return((o+d-1)/d|0)*d}function CU(o,d,l){for(var c=0,u=o.length;c>>1),E=l(d,o[m]);E<0?u=m:c=m+1}return c}function iK(o,d,l){var c=CU(o,d,l);o.splice(c,0,d)}function oK(o,d,l){return l?o|=d:o&=~d,o}function v8(o,d){for(var l=new Array(o),c=0;c3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=this.viewport.projectFlat(u),ne=bp();return T0(ne,ne,r0(Z[0],Z[1],m)),af(ne,ne,r0(M[0],M[1],M[2])),mm(ne,ne,E[0]),s0(ne,ne,E[1]),a0(ne,ne,E[2]),ne}},{key:"getCustomCoordCenter",value:function(){throw new Error("Method not implemented.")}},{key:"exportMap",value:function(u){var m=this.getMapCanvasContainer(),E=u==="jpg"?m==null?void 0:m.toDataURL("image/jpeg"):m==null?void 0:m.toDataURL("image/png");return E}},{key:"rotateY",value:function(){throw new Error("Method not implemented.")}},{key:"hideLogo",value:function(){var u=this.map.getContainer();u&&ba(u,"tmap-contianer--hide-logo")}}]),l}(uE);function jG(o){var d=WG();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function WG(){if(typeof Reflect=="undefined"||!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(o){return!1}}var pU=function(o){(0,lt.Z)(l,o);var d=jG(l);function l(){return(0,wt.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getServiceConstructor",value:function(){return VG}}]),l}(XC),h8=y(81550),bR=y.n(h8),UA=function(){function o(d,l){(0,wt.Z)(this,o);var c=l.buffer,u=l.offset,m=l.stride,E=l.normalized,M=l.size,Z=l.divisor;this.buffer=c,this.attribute={buffer:c.get(),offset:u||0,stride:m||0,normalized:E||!1,divisor:Z||0},M&&(this.attribute.size=M)}return(0,nt.Z)(o,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(l){this.buffer.subData(l)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),o}(),py,Zw,y1,_x,P_,bx,$A,Ob,Nb,_E,Q1,l_,Hw,xR,ZG=(py={},(0,Tn.Z)(py,Ai.POINTS,"points"),(0,Tn.Z)(py,Ai.LINES,"lines"),(0,Tn.Z)(py,Ai.LINE_LOOP,"line loop"),(0,Tn.Z)(py,Ai.LINE_STRIP,"line strip"),(0,Tn.Z)(py,Ai.TRIANGLES,"triangles"),(0,Tn.Z)(py,Ai.TRIANGLE_FAN,"triangle fan"),(0,Tn.Z)(py,Ai.TRIANGLE_STRIP,"triangle strip"),py),gU=(Zw={},(0,Tn.Z)(Zw,Ai.STATIC_DRAW,"static"),(0,Tn.Z)(Zw,Ai.DYNAMIC_DRAW,"dynamic"),(0,Tn.Z)(Zw,Ai.STREAM_DRAW,"stream"),Zw),wR=(y1={},(0,Tn.Z)(y1,Ai.BYTE,"int8"),(0,Tn.Z)(y1,Ai.INT,"int32"),(0,Tn.Z)(y1,Ai.UNSIGNED_BYTE,"uint8"),(0,Tn.Z)(y1,Ai.UNSIGNED_SHORT,"uint16"),(0,Tn.Z)(y1,Ai.UNSIGNED_INT,"uint32"),(0,Tn.Z)(y1,Ai.FLOAT,"float"),y1),mU=(_x={},(0,Tn.Z)(_x,Ai.ALPHA,"alpha"),(0,Tn.Z)(_x,Ai.LUMINANCE,"luminance"),(0,Tn.Z)(_x,Ai.LUMINANCE_ALPHA,"luminance alpha"),(0,Tn.Z)(_x,Ai.RGB,"rgb"),(0,Tn.Z)(_x,Ai.RGBA,"rgba"),(0,Tn.Z)(_x,Ai.RGBA4,"rgba4"),(0,Tn.Z)(_x,Ai.RGB5_A1,"rgb5 a1"),(0,Tn.Z)(_x,Ai.RGB565,"rgb565"),(0,Tn.Z)(_x,Ai.DEPTH_COMPONENT,"depth"),(0,Tn.Z)(_x,Ai.DEPTH_STENCIL,"depth stencil"),_x),d8=(P_={},(0,Tn.Z)(P_,Ai.DONT_CARE,"dont care"),(0,Tn.Z)(P_,Ai.NICEST,"nice"),(0,Tn.Z)(P_,Ai.FASTEST,"fast"),P_),CR=(bx={},(0,Tn.Z)(bx,Ai.NEAREST,"nearest"),(0,Tn.Z)(bx,Ai.LINEAR,"linear"),(0,Tn.Z)(bx,Ai.LINEAR_MIPMAP_LINEAR,"mipmap"),(0,Tn.Z)(bx,Ai.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),(0,Tn.Z)(bx,Ai.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),(0,Tn.Z)(bx,Ai.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),bx),f8=($A={},(0,Tn.Z)($A,Ai.REPEAT,"repeat"),(0,Tn.Z)($A,Ai.CLAMP_TO_EDGE,"clamp"),(0,Tn.Z)($A,Ai.MIRRORED_REPEAT,"mirror"),$A),vU=(Ob={},(0,Tn.Z)(Ob,Ai.NONE,"none"),(0,Tn.Z)(Ob,Ai.BROWSER_DEFAULT_WEBGL,"browser"),Ob),VA=(Nb={},(0,Tn.Z)(Nb,Ai.NEVER,"never"),(0,Tn.Z)(Nb,Ai.ALWAYS,"always"),(0,Tn.Z)(Nb,Ai.LESS,"less"),(0,Tn.Z)(Nb,Ai.LEQUAL,"lequal"),(0,Tn.Z)(Nb,Ai.GREATER,"greater"),(0,Tn.Z)(Nb,Ai.GEQUAL,"gequal"),(0,Tn.Z)(Nb,Ai.EQUAL,"equal"),(0,Tn.Z)(Nb,Ai.NOTEQUAL,"notequal"),Nb),JP=(_E={},(0,Tn.Z)(_E,Ai.FUNC_ADD,"add"),(0,Tn.Z)(_E,Ai.MIN_EXT,"min"),(0,Tn.Z)(_E,Ai.MAX_EXT,"max"),(0,Tn.Z)(_E,Ai.FUNC_SUBTRACT,"subtract"),(0,Tn.Z)(_E,Ai.FUNC_REVERSE_SUBTRACT,"reverse subtract"),_E),QP=(Q1={},(0,Tn.Z)(Q1,Ai.ZERO,"zero"),(0,Tn.Z)(Q1,Ai.ONE,"one"),(0,Tn.Z)(Q1,Ai.SRC_COLOR,"src color"),(0,Tn.Z)(Q1,Ai.ONE_MINUS_SRC_COLOR,"one minus src color"),(0,Tn.Z)(Q1,Ai.SRC_ALPHA,"src alpha"),(0,Tn.Z)(Q1,Ai.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),(0,Tn.Z)(Q1,Ai.DST_COLOR,"dst color"),(0,Tn.Z)(Q1,Ai.ONE_MINUS_DST_COLOR,"one minus dst color"),(0,Tn.Z)(Q1,Ai.DST_ALPHA,"dst alpha"),(0,Tn.Z)(Q1,Ai.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),(0,Tn.Z)(Q1,Ai.CONSTANT_COLOR,"constant color"),(0,Tn.Z)(Q1,Ai.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),(0,Tn.Z)(Q1,Ai.CONSTANT_ALPHA,"constant alpha"),(0,Tn.Z)(Q1,Ai.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),(0,Tn.Z)(Q1,Ai.SRC_ALPHA_SATURATE,"src alpha saturate"),Q1),p8=(l_={},(0,Tn.Z)(l_,Ai.NEVER,"never"),(0,Tn.Z)(l_,Ai.ALWAYS,"always"),(0,Tn.Z)(l_,Ai.LESS,"less"),(0,Tn.Z)(l_,Ai.LEQUAL,"lequal"),(0,Tn.Z)(l_,Ai.GREATER,"greater"),(0,Tn.Z)(l_,Ai.GEQUAL,"gequal"),(0,Tn.Z)(l_,Ai.EQUAL,"equal"),(0,Tn.Z)(l_,Ai.NOTEQUAL,"notequal"),l_),bE=(Hw={},(0,Tn.Z)(Hw,Ai.ZERO,"zero"),(0,Tn.Z)(Hw,Ai.KEEP,"keep"),(0,Tn.Z)(Hw,Ai.REPLACE,"replace"),(0,Tn.Z)(Hw,Ai.INVERT,"invert"),(0,Tn.Z)(Hw,Ai.INCR,"increment"),(0,Tn.Z)(Hw,Ai.DECR,"decrement"),(0,Tn.Z)(Hw,Ai.INCR_WRAP,"increment wrap"),(0,Tn.Z)(Hw,Ai.DECR_WRAP,"decrement wrap"),Hw),eL=(xR={},(0,Tn.Z)(xR,Ai.FRONT,"front"),(0,Tn.Z)(xR,Ai.BACK,"back"),xR),om=function(){function o(d,l){(0,wt.Z)(this,o),(0,Tn.Z)(this,"isDestroyed",!1);var c=l.data,u=l.usage,m=l.type;this.buffer=d.buffer({data:c,usage:gU[u||Ai.STATIC_DRAW],type:wR[m||Ai.UNSIGNED_BYTE]})}return(0,nt.Z)(o,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){this.isDestroyed||this.buffer.destroy(),this.isDestroyed=!0}},{key:"subData",value:function(l){var c=l.data,u=l.offset;this.buffer.subdata(c,u)}}]),o}(),xE=function(){function o(d,l){(0,wt.Z)(this,o);var c=l.data,u=l.usage,m=l.type,E=l.count;this.elements=d.elements({data:c,usage:gU[u||Ai.STATIC_DRAW],type:wR[m||Ai.UNSIGNED_BYTE],count:E})}return(0,nt.Z)(o,[{key:"get",value:function(){return this.elements}},{key:"subData",value:function(l){var c=l.data;this.elements.subdata(c)}},{key:"destroy",value:function(){}}]),o}(),HG=function(){function o(d,l){(0,wt.Z)(this,o);var c=l.width,u=l.height,m=l.color,E=l.colors,M={width:c,height:u};Array.isArray(E)&&(M.colors=E.map(function(Z){return Z.get()})),m&&typeof m!="boolean"&&(M.color=m.get()),this.framebuffer=d.framebuffer(M)}return(0,nt.Z)(o,[{key:"get",value:function(){return this.framebuffer}},{key:"destroy",value:function(){this.framebuffer.destroy()}},{key:"resize",value:function(l){var c=l.width,u=l.height;this.framebuffer.resize(c,u)}}]),o}(),tL={}.toString,nL=function(o,d){return tL.call(o)==="[object "+d+"]"},GG=nL,KG=function(o){return GG(o,"Number")},wE=KG,g8=function(o){return o==null},CE=g8,XG=function(o,d,l){return ol?l:o},SR=XG,Yf=y(97582),YG=y(90857),jA=YG,El;(function(o){o[o.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",o[o.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",o[o.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",o[o.POINTS=0]="POINTS",o[o.LINES=1]="LINES",o[o.LINE_LOOP=2]="LINE_LOOP",o[o.LINE_STRIP=3]="LINE_STRIP",o[o.TRIANGLES=4]="TRIANGLES",o[o.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",o[o.TRIANGLE_FAN=6]="TRIANGLE_FAN",o[o.ZERO=0]="ZERO",o[o.ONE=1]="ONE",o[o.SRC_COLOR=768]="SRC_COLOR",o[o.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",o[o.SRC_ALPHA=770]="SRC_ALPHA",o[o.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",o[o.DST_ALPHA=772]="DST_ALPHA",o[o.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",o[o.DST_COLOR=774]="DST_COLOR",o[o.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",o[o.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",o[o.CONSTANT_COLOR=32769]="CONSTANT_COLOR",o[o.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",o[o.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",o[o.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",o[o.FUNC_ADD=32774]="FUNC_ADD",o[o.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",o[o.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",o[o.BLEND_EQUATION=32777]="BLEND_EQUATION",o[o.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",o[o.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",o[o.BLEND_DST_RGB=32968]="BLEND_DST_RGB",o[o.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",o[o.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",o[o.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",o[o.BLEND_COLOR=32773]="BLEND_COLOR",o[o.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",o[o.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",o[o.LINE_WIDTH=2849]="LINE_WIDTH",o[o.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",o[o.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",o[o.CULL_FACE_MODE=2885]="CULL_FACE_MODE",o[o.FRONT_FACE=2886]="FRONT_FACE",o[o.DEPTH_RANGE=2928]="DEPTH_RANGE",o[o.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",o[o.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",o[o.DEPTH_FUNC=2932]="DEPTH_FUNC",o[o.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",o[o.STENCIL_FUNC=2962]="STENCIL_FUNC",o[o.STENCIL_FAIL=2964]="STENCIL_FAIL",o[o.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",o[o.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",o[o.STENCIL_REF=2967]="STENCIL_REF",o[o.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",o[o.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",o[o.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",o[o.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",o[o.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",o[o.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",o[o.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",o[o.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",o[o.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",o[o.VIEWPORT=2978]="VIEWPORT",o[o.SCISSOR_BOX=3088]="SCISSOR_BOX",o[o.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",o[o.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",o[o.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",o[o.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",o[o.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",o[o.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",o[o.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",o[o.RED_BITS=3410]="RED_BITS",o[o.GREEN_BITS=3411]="GREEN_BITS",o[o.BLUE_BITS=3412]="BLUE_BITS",o[o.ALPHA_BITS=3413]="ALPHA_BITS",o[o.DEPTH_BITS=3414]="DEPTH_BITS",o[o.STENCIL_BITS=3415]="STENCIL_BITS",o[o.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",o[o.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",o[o.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",o[o.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",o[o.SAMPLES=32937]="SAMPLES",o[o.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",o[o.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",o[o.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",o[o.VENDOR=7936]="VENDOR",o[o.RENDERER=7937]="RENDERER",o[o.VERSION=7938]="VERSION",o[o.IMPLEMENTATION_COLOR_READ_TYPE=35738]="IMPLEMENTATION_COLOR_READ_TYPE",o[o.IMPLEMENTATION_COLOR_READ_FORMAT=35739]="IMPLEMENTATION_COLOR_READ_FORMAT",o[o.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",o[o.STATIC_DRAW=35044]="STATIC_DRAW",o[o.STREAM_DRAW=35040]="STREAM_DRAW",o[o.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",o[o.ARRAY_BUFFER=34962]="ARRAY_BUFFER",o[o.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",o[o.BUFFER_SIZE=34660]="BUFFER_SIZE",o[o.BUFFER_USAGE=34661]="BUFFER_USAGE",o[o.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",o[o.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",o[o.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",o[o.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",o[o.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",o[o.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",o[o.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",o[o.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",o[o.CULL_FACE=2884]="CULL_FACE",o[o.FRONT=1028]="FRONT",o[o.BACK=1029]="BACK",o[o.FRONT_AND_BACK=1032]="FRONT_AND_BACK",o[o.BLEND=3042]="BLEND",o[o.DEPTH_TEST=2929]="DEPTH_TEST",o[o.DITHER=3024]="DITHER",o[o.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",o[o.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",o[o.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",o[o.SCISSOR_TEST=3089]="SCISSOR_TEST",o[o.STENCIL_TEST=2960]="STENCIL_TEST",o[o.NO_ERROR=0]="NO_ERROR",o[o.INVALID_ENUM=1280]="INVALID_ENUM",o[o.INVALID_VALUE=1281]="INVALID_VALUE",o[o.INVALID_OPERATION=1282]="INVALID_OPERATION",o[o.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",o[o.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",o[o.CW=2304]="CW",o[o.CCW=2305]="CCW",o[o.DONT_CARE=4352]="DONT_CARE",o[o.FASTEST=4353]="FASTEST",o[o.NICEST=4354]="NICEST",o[o.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",o[o.BYTE=5120]="BYTE",o[o.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",o[o.SHORT=5122]="SHORT",o[o.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",o[o.INT=5124]="INT",o[o.UNSIGNED_INT=5125]="UNSIGNED_INT",o[o.FLOAT=5126]="FLOAT",o[o.DOUBLE=5130]="DOUBLE",o[o.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",o[o.ALPHA=6406]="ALPHA",o[o.RGB=6407]="RGB",o[o.RGBA=6408]="RGBA",o[o.LUMINANCE=6409]="LUMINANCE",o[o.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",o[o.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",o[o.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",o[o.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",o[o.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",o[o.VERTEX_SHADER=35633]="VERTEX_SHADER",o[o.COMPILE_STATUS=35713]="COMPILE_STATUS",o[o.DELETE_STATUS=35712]="DELETE_STATUS",o[o.LINK_STATUS=35714]="LINK_STATUS",o[o.VALIDATE_STATUS=35715]="VALIDATE_STATUS",o[o.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",o[o.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",o[o.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",o[o.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",o[o.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",o[o.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",o[o.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",o[o.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",o[o.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",o[o.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",o[o.SHADER_TYPE=35663]="SHADER_TYPE",o[o.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",o[o.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",o[o.NEVER=512]="NEVER",o[o.ALWAYS=519]="ALWAYS",o[o.LESS=513]="LESS",o[o.EQUAL=514]="EQUAL",o[o.LEQUAL=515]="LEQUAL",o[o.GREATER=516]="GREATER",o[o.GEQUAL=518]="GEQUAL",o[o.NOTEQUAL=517]="NOTEQUAL",o[o.KEEP=7680]="KEEP",o[o.REPLACE=7681]="REPLACE",o[o.INCR=7682]="INCR",o[o.DECR=7683]="DECR",o[o.INVERT=5386]="INVERT",o[o.INCR_WRAP=34055]="INCR_WRAP",o[o.DECR_WRAP=34056]="DECR_WRAP",o[o.NEAREST=9728]="NEAREST",o[o.LINEAR=9729]="LINEAR",o[o.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",o[o.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",o[o.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",o[o.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",o[o.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",o[o.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",o[o.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",o[o.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",o[o.TEXTURE_2D=3553]="TEXTURE_2D",o[o.TEXTURE=5890]="TEXTURE",o[o.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",o[o.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",o[o.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",o[o.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",o[o.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",o[o.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",o[o.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",o[o.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",o[o.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",o[o.TEXTURE0=33984]="TEXTURE0",o[o.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",o[o.REPEAT=10497]="REPEAT",o[o.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",o[o.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",o[o.TEXTURE_WIDTH=4096]="TEXTURE_WIDTH",o[o.TEXTURE_HEIGHT=4097]="TEXTURE_HEIGHT",o[o.FLOAT_VEC2=35664]="FLOAT_VEC2",o[o.FLOAT_VEC3=35665]="FLOAT_VEC3",o[o.FLOAT_VEC4=35666]="FLOAT_VEC4",o[o.INT_VEC2=35667]="INT_VEC2",o[o.INT_VEC3=35668]="INT_VEC3",o[o.INT_VEC4=35669]="INT_VEC4",o[o.BOOL=35670]="BOOL",o[o.BOOL_VEC2=35671]="BOOL_VEC2",o[o.BOOL_VEC3=35672]="BOOL_VEC3",o[o.BOOL_VEC4=35673]="BOOL_VEC4",o[o.FLOAT_MAT2=35674]="FLOAT_MAT2",o[o.FLOAT_MAT3=35675]="FLOAT_MAT3",o[o.FLOAT_MAT4=35676]="FLOAT_MAT4",o[o.SAMPLER_2D=35678]="SAMPLER_2D",o[o.SAMPLER_CUBE=35680]="SAMPLER_CUBE",o[o.LOW_FLOAT=36336]="LOW_FLOAT",o[o.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",o[o.HIGH_FLOAT=36338]="HIGH_FLOAT",o[o.LOW_INT=36339]="LOW_INT",o[o.MEDIUM_INT=36340]="MEDIUM_INT",o[o.HIGH_INT=36341]="HIGH_INT",o[o.FRAMEBUFFER=36160]="FRAMEBUFFER",o[o.RENDERBUFFER=36161]="RENDERBUFFER",o[o.RGBA4=32854]="RGBA4",o[o.RGB5_A1=32855]="RGB5_A1",o[o.RGB565=36194]="RGB565",o[o.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",o[o.STENCIL_INDEX=6401]="STENCIL_INDEX",o[o.STENCIL_INDEX8=36168]="STENCIL_INDEX8",o[o.DEPTH_STENCIL=34041]="DEPTH_STENCIL",o[o.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",o[o.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",o[o.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",o[o.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",o[o.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",o[o.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",o[o.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",o[o.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",o[o.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",o[o.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",o[o.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",o[o.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",o[o.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",o[o.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",o[o.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",o[o.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",o[o.NONE=0]="NONE",o[o.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",o[o.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",o[o.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",o[o.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",o[o.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",o[o.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",o[o.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",o[o.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",o[o.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER",o[o.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",o[o.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",o[o.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",o[o.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",o[o.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",o[o.READ_BUFFER=3074]="READ_BUFFER",o[o.UNPACK_ROW_LENGTH=3314]="UNPACK_ROW_LENGTH",o[o.UNPACK_SKIP_ROWS=3315]="UNPACK_SKIP_ROWS",o[o.UNPACK_SKIP_PIXELS=3316]="UNPACK_SKIP_PIXELS",o[o.PACK_ROW_LENGTH=3330]="PACK_ROW_LENGTH",o[o.PACK_SKIP_ROWS=3331]="PACK_SKIP_ROWS",o[o.PACK_SKIP_PIXELS=3332]="PACK_SKIP_PIXELS",o[o.TEXTURE_BINDING_3D=32874]="TEXTURE_BINDING_3D",o[o.UNPACK_SKIP_IMAGES=32877]="UNPACK_SKIP_IMAGES",o[o.UNPACK_IMAGE_HEIGHT=32878]="UNPACK_IMAGE_HEIGHT",o[o.MAX_3D_TEXTURE_SIZE=32883]="MAX_3D_TEXTURE_SIZE",o[o.MAX_ELEMENTS_VERTICES=33e3]="MAX_ELEMENTS_VERTICES",o[o.MAX_ELEMENTS_INDICES=33001]="MAX_ELEMENTS_INDICES",o[o.MAX_TEXTURE_LOD_BIAS=34045]="MAX_TEXTURE_LOD_BIAS",o[o.MAX_FRAGMENT_UNIFORM_COMPONENTS=35657]="MAX_FRAGMENT_UNIFORM_COMPONENTS",o[o.MAX_VERTEX_UNIFORM_COMPONENTS=35658]="MAX_VERTEX_UNIFORM_COMPONENTS",o[o.MAX_ARRAY_TEXTURE_LAYERS=35071]="MAX_ARRAY_TEXTURE_LAYERS",o[o.MIN_PROGRAM_TEXEL_OFFSET=35076]="MIN_PROGRAM_TEXEL_OFFSET",o[o.MAX_PROGRAM_TEXEL_OFFSET=35077]="MAX_PROGRAM_TEXEL_OFFSET",o[o.MAX_VARYING_COMPONENTS=35659]="MAX_VARYING_COMPONENTS",o[o.FRAGMENT_SHADER_DERIVATIVE_HINT=35723]="FRAGMENT_SHADER_DERIVATIVE_HINT",o[o.RASTERIZER_DISCARD=35977]="RASTERIZER_DISCARD",o[o.VERTEX_ARRAY_BINDING=34229]="VERTEX_ARRAY_BINDING",o[o.MAX_VERTEX_OUTPUT_COMPONENTS=37154]="MAX_VERTEX_OUTPUT_COMPONENTS",o[o.MAX_FRAGMENT_INPUT_COMPONENTS=37157]="MAX_FRAGMENT_INPUT_COMPONENTS",o[o.MAX_SERVER_WAIT_TIMEOUT=37137]="MAX_SERVER_WAIT_TIMEOUT",o[o.MAX_ELEMENT_INDEX=36203]="MAX_ELEMENT_INDEX",o[o.RED=6403]="RED",o[o.RGB8=32849]="RGB8",o[o.RGBA8=32856]="RGBA8",o[o.RGB10_A2=32857]="RGB10_A2",o[o.TEXTURE_3D=32879]="TEXTURE_3D",o[o.TEXTURE_WRAP_R=32882]="TEXTURE_WRAP_R",o[o.TEXTURE_MIN_LOD=33082]="TEXTURE_MIN_LOD",o[o.TEXTURE_MAX_LOD=33083]="TEXTURE_MAX_LOD",o[o.TEXTURE_BASE_LEVEL=33084]="TEXTURE_BASE_LEVEL",o[o.TEXTURE_MAX_LEVEL=33085]="TEXTURE_MAX_LEVEL",o[o.TEXTURE_COMPARE_MODE=34892]="TEXTURE_COMPARE_MODE",o[o.TEXTURE_COMPARE_FUNC=34893]="TEXTURE_COMPARE_FUNC",o[o.SRGB=35904]="SRGB",o[o.SRGB8=35905]="SRGB8",o[o.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",o[o.COMPARE_REF_TO_TEXTURE=34894]="COMPARE_REF_TO_TEXTURE",o[o.RGBA32F=34836]="RGBA32F",o[o.RGB32F=34837]="RGB32F",o[o.RGBA16F=34842]="RGBA16F",o[o.RGB16F=34843]="RGB16F",o[o.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",o[o.TEXTURE_BINDING_2D_ARRAY=35869]="TEXTURE_BINDING_2D_ARRAY",o[o.R11F_G11F_B10F=35898]="R11F_G11F_B10F",o[o.RGB9_E5=35901]="RGB9_E5",o[o.RGBA32UI=36208]="RGBA32UI",o[o.RGB32UI=36209]="RGB32UI",o[o.RGBA16UI=36214]="RGBA16UI",o[o.RGB16UI=36215]="RGB16UI",o[o.RGBA8UI=36220]="RGBA8UI",o[o.RGB8UI=36221]="RGB8UI",o[o.RGBA32I=36226]="RGBA32I",o[o.RGB32I=36227]="RGB32I",o[o.RGBA16I=36232]="RGBA16I",o[o.RGB16I=36233]="RGB16I",o[o.RGBA8I=36238]="RGBA8I",o[o.RGB8I=36239]="RGB8I",o[o.RED_INTEGER=36244]="RED_INTEGER",o[o.RGB_INTEGER=36248]="RGB_INTEGER",o[o.RGBA_INTEGER=36249]="RGBA_INTEGER",o[o.R8=33321]="R8",o[o.RG8=33323]="RG8",o[o.R16F=33325]="R16F",o[o.R32F=33326]="R32F",o[o.RG16F=33327]="RG16F",o[o.RG32F=33328]="RG32F",o[o.R8I=33329]="R8I",o[o.R8UI=33330]="R8UI",o[o.R16I=33331]="R16I",o[o.R16UI=33332]="R16UI",o[o.R32I=33333]="R32I",o[o.R32UI=33334]="R32UI",o[o.RG8I=33335]="RG8I",o[o.RG8UI=33336]="RG8UI",o[o.RG16I=33337]="RG16I",o[o.RG16UI=33338]="RG16UI",o[o.RG32I=33339]="RG32I",o[o.RG32UI=33340]="RG32UI",o[o.R8_SNORM=36756]="R8_SNORM",o[o.RG8_SNORM=36757]="RG8_SNORM",o[o.RGB8_SNORM=36758]="RGB8_SNORM",o[o.RGBA8_SNORM=36759]="RGBA8_SNORM",o[o.RGB10_A2UI=36975]="RGB10_A2UI",o[o.TEXTURE_IMMUTABLE_FORMAT=37167]="TEXTURE_IMMUTABLE_FORMAT",o[o.TEXTURE_IMMUTABLE_LEVELS=33503]="TEXTURE_IMMUTABLE_LEVELS",o[o.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",o[o.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",o[o.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",o[o.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",o[o.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",o[o.HALF_FLOAT=5131]="HALF_FLOAT",o[o.RG=33319]="RG",o[o.RG_INTEGER=33320]="RG_INTEGER",o[o.INT_2_10_10_10_REV=36255]="INT_2_10_10_10_REV",o[o.CURRENT_QUERY=34917]="CURRENT_QUERY",o[o.QUERY_RESULT=34918]="QUERY_RESULT",o[o.QUERY_RESULT_AVAILABLE=34919]="QUERY_RESULT_AVAILABLE",o[o.ANY_SAMPLES_PASSED=35887]="ANY_SAMPLES_PASSED",o[o.ANY_SAMPLES_PASSED_CONSERVATIVE=36202]="ANY_SAMPLES_PASSED_CONSERVATIVE",o[o.MAX_DRAW_BUFFERS=34852]="MAX_DRAW_BUFFERS",o[o.DRAW_BUFFER0=34853]="DRAW_BUFFER0",o[o.DRAW_BUFFER1=34854]="DRAW_BUFFER1",o[o.DRAW_BUFFER2=34855]="DRAW_BUFFER2",o[o.DRAW_BUFFER3=34856]="DRAW_BUFFER3",o[o.DRAW_BUFFER4=34857]="DRAW_BUFFER4",o[o.DRAW_BUFFER5=34858]="DRAW_BUFFER5",o[o.DRAW_BUFFER6=34859]="DRAW_BUFFER6",o[o.DRAW_BUFFER7=34860]="DRAW_BUFFER7",o[o.DRAW_BUFFER8=34861]="DRAW_BUFFER8",o[o.DRAW_BUFFER9=34862]="DRAW_BUFFER9",o[o.DRAW_BUFFER10=34863]="DRAW_BUFFER10",o[o.DRAW_BUFFER11=34864]="DRAW_BUFFER11",o[o.DRAW_BUFFER12=34865]="DRAW_BUFFER12",o[o.DRAW_BUFFER13=34866]="DRAW_BUFFER13",o[o.DRAW_BUFFER14=34867]="DRAW_BUFFER14",o[o.DRAW_BUFFER15=34868]="DRAW_BUFFER15",o[o.MAX_COLOR_ATTACHMENTS=36063]="MAX_COLOR_ATTACHMENTS",o[o.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",o[o.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",o[o.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",o[o.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",o[o.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",o[o.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",o[o.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",o[o.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",o[o.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",o[o.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",o[o.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",o[o.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",o[o.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",o[o.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",o[o.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15",o[o.SAMPLER_3D=35679]="SAMPLER_3D",o[o.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",o[o.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",o[o.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",o[o.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",o[o.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",o[o.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",o[o.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",o[o.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",o[o.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",o[o.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",o[o.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",o[o.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY",o[o.MAX_SAMPLES=36183]="MAX_SAMPLES",o[o.SAMPLER_BINDING=35097]="SAMPLER_BINDING",o[o.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",o[o.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",o[o.PIXEL_PACK_BUFFER_BINDING=35053]="PIXEL_PACK_BUFFER_BINDING",o[o.PIXEL_UNPACK_BUFFER_BINDING=35055]="PIXEL_UNPACK_BUFFER_BINDING",o[o.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",o[o.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",o[o.COPY_READ_BUFFER_BINDING=36662]="COPY_READ_BUFFER_BINDING",o[o.COPY_WRITE_BUFFER_BINDING=36663]="COPY_WRITE_BUFFER_BINDING",o[o.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",o[o.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",o[o.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",o[o.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",o[o.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",o[o.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",o[o.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",o[o.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",o[o.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",o[o.UNSIGNED_NORMALIZED=35863]="UNSIGNED_NORMALIZED",o[o.SIGNED_NORMALIZED=36764]="SIGNED_NORMALIZED",o[o.VERTEX_ATTRIB_ARRAY_INTEGER=35069]="VERTEX_ATTRIB_ARRAY_INTEGER",o[o.VERTEX_ATTRIB_ARRAY_DIVISOR=35070]="VERTEX_ATTRIB_ARRAY_DIVISOR",o[o.TRANSFORM_FEEDBACK_BUFFER_MODE=35967]="TRANSFORM_FEEDBACK_BUFFER_MODE",o[o.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS=35968]="MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS",o[o.TRANSFORM_FEEDBACK_VARYINGS=35971]="TRANSFORM_FEEDBACK_VARYINGS",o[o.TRANSFORM_FEEDBACK_BUFFER_START=35972]="TRANSFORM_FEEDBACK_BUFFER_START",o[o.TRANSFORM_FEEDBACK_BUFFER_SIZE=35973]="TRANSFORM_FEEDBACK_BUFFER_SIZE",o[o.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN=35976]="TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN",o[o.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS=35978]="MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS",o[o.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS=35979]="MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS",o[o.INTERLEAVED_ATTRIBS=35980]="INTERLEAVED_ATTRIBS",o[o.SEPARATE_ATTRIBS=35981]="SEPARATE_ATTRIBS",o[o.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER",o[o.TRANSFORM_FEEDBACK_BUFFER_BINDING=35983]="TRANSFORM_FEEDBACK_BUFFER_BINDING",o[o.TRANSFORM_FEEDBACK=36386]="TRANSFORM_FEEDBACK",o[o.TRANSFORM_FEEDBACK_PAUSED=36387]="TRANSFORM_FEEDBACK_PAUSED",o[o.TRANSFORM_FEEDBACK_ACTIVE=36388]="TRANSFORM_FEEDBACK_ACTIVE",o[o.TRANSFORM_FEEDBACK_BINDING=36389]="TRANSFORM_FEEDBACK_BINDING",o[o.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING=33296]="FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING",o[o.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE=33297]="FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE",o[o.FRAMEBUFFER_ATTACHMENT_RED_SIZE=33298]="FRAMEBUFFER_ATTACHMENT_RED_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE=33299]="FRAMEBUFFER_ATTACHMENT_GREEN_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE=33300]="FRAMEBUFFER_ATTACHMENT_BLUE_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE=33301]="FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE=33302]="FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE=33303]="FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE",o[o.FRAMEBUFFER_DEFAULT=33304]="FRAMEBUFFER_DEFAULT",o[o.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",o[o.DRAW_FRAMEBUFFER_BINDING=36006]="DRAW_FRAMEBUFFER_BINDING",o[o.READ_FRAMEBUFFER_BINDING=36010]="READ_FRAMEBUFFER_BINDING",o[o.RENDERBUFFER_SAMPLES=36011]="RENDERBUFFER_SAMPLES",o[o.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER=36052]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER",o[o.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE=36182]="FRAMEBUFFER_INCOMPLETE_MULTISAMPLE",o[o.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",o[o.UNIFORM_BUFFER_BINDING=35368]="UNIFORM_BUFFER_BINDING",o[o.UNIFORM_BUFFER_START=35369]="UNIFORM_BUFFER_START",o[o.UNIFORM_BUFFER_SIZE=35370]="UNIFORM_BUFFER_SIZE",o[o.MAX_VERTEX_UNIFORM_BLOCKS=35371]="MAX_VERTEX_UNIFORM_BLOCKS",o[o.MAX_FRAGMENT_UNIFORM_BLOCKS=35373]="MAX_FRAGMENT_UNIFORM_BLOCKS",o[o.MAX_COMBINED_UNIFORM_BLOCKS=35374]="MAX_COMBINED_UNIFORM_BLOCKS",o[o.MAX_UNIFORM_BUFFER_BINDINGS=35375]="MAX_UNIFORM_BUFFER_BINDINGS",o[o.MAX_UNIFORM_BLOCK_SIZE=35376]="MAX_UNIFORM_BLOCK_SIZE",o[o.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS=35377]="MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS",o[o.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS=35379]="MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS",o[o.UNIFORM_BUFFER_OFFSET_ALIGNMENT=35380]="UNIFORM_BUFFER_OFFSET_ALIGNMENT",o[o.ACTIVE_UNIFORM_BLOCKS=35382]="ACTIVE_UNIFORM_BLOCKS",o[o.UNIFORM_TYPE=35383]="UNIFORM_TYPE",o[o.UNIFORM_SIZE=35384]="UNIFORM_SIZE",o[o.UNIFORM_BLOCK_INDEX=35386]="UNIFORM_BLOCK_INDEX",o[o.UNIFORM_OFFSET=35387]="UNIFORM_OFFSET",o[o.UNIFORM_ARRAY_STRIDE=35388]="UNIFORM_ARRAY_STRIDE",o[o.UNIFORM_MATRIX_STRIDE=35389]="UNIFORM_MATRIX_STRIDE",o[o.UNIFORM_IS_ROW_MAJOR=35390]="UNIFORM_IS_ROW_MAJOR",o[o.UNIFORM_BLOCK_BINDING=35391]="UNIFORM_BLOCK_BINDING",o[o.UNIFORM_BLOCK_DATA_SIZE=35392]="UNIFORM_BLOCK_DATA_SIZE",o[o.UNIFORM_BLOCK_ACTIVE_UNIFORMS=35394]="UNIFORM_BLOCK_ACTIVE_UNIFORMS",o[o.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES=35395]="UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES",o[o.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER=35396]="UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER",o[o.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER=35398]="UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER",o[o.OBJECT_TYPE=37138]="OBJECT_TYPE",o[o.SYNC_CONDITION=37139]="SYNC_CONDITION",o[o.SYNC_STATUS=37140]="SYNC_STATUS",o[o.SYNC_FLAGS=37141]="SYNC_FLAGS",o[o.SYNC_FENCE=37142]="SYNC_FENCE",o[o.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE",o[o.UNSIGNALED=37144]="UNSIGNALED",o[o.SIGNALED=37145]="SIGNALED",o[o.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",o[o.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",o[o.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",o[o.WAIT_FAILED=37149]="WAIT_FAILED",o[o.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT",o[o.COLOR=6144]="COLOR",o[o.DEPTH=6145]="DEPTH",o[o.STENCIL=6146]="STENCIL",o[o.MIN=32775]="MIN",o[o.MAX=32776]="MAX",o[o.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",o[o.STREAM_READ=35041]="STREAM_READ",o[o.STREAM_COPY=35042]="STREAM_COPY",o[o.STATIC_READ=35045]="STATIC_READ",o[o.STATIC_COPY=35046]="STATIC_COPY",o[o.DYNAMIC_READ=35049]="DYNAMIC_READ",o[o.DYNAMIC_COPY=35050]="DYNAMIC_COPY",o[o.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",o[o.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8",o[o.INVALID_INDEX=4294967295]="INVALID_INDEX",o[o.TIMEOUT_IGNORED=-1]="TIMEOUT_IGNORED",o[o.MAX_CLIENT_WAIT_TIMEOUT_WEBGL=37447]="MAX_CLIENT_WAIT_TIMEOUT_WEBGL",o[o.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE=35070]="VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE",o[o.UNMASKED_VENDOR_WEBGL=37445]="UNMASKED_VENDOR_WEBGL",o[o.UNMASKED_RENDERER_WEBGL=37446]="UNMASKED_RENDERER_WEBGL",o[o.MAX_TEXTURE_MAX_ANISOTROPY_EXT=34047]="MAX_TEXTURE_MAX_ANISOTROPY_EXT",o[o.TEXTURE_MAX_ANISOTROPY_EXT=34046]="TEXTURE_MAX_ANISOTROPY_EXT",o[o.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",o[o.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",o[o.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",o[o.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",o[o.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",o[o.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",o[o.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",o[o.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",o[o.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",o[o.COMPRESSED_RGBA8_ETC2_EAC=37493]="COMPRESSED_RGBA8_ETC2_EAC",o[o.COMPRESSED_SRGB8_ETC2=37494]="COMPRESSED_SRGB8_ETC2",o[o.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37495]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",o[o.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37496]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",o[o.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37497]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",o[o.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",o[o.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",o[o.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",o[o.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",o[o.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",o[o.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",o[o.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",o[o.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL",o[o.UNSIGNED_INT_24_8_WEBGL=34042]="UNSIGNED_INT_24_8_WEBGL",o[o.HALF_FLOAT_OES=36193]="HALF_FLOAT_OES",o[o.RGBA32F_EXT=34836]="RGBA32F_EXT",o[o.RGB32F_EXT=34837]="RGB32F_EXT",o[o.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT=33297]="FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT",o[o.UNSIGNED_NORMALIZED_EXT=35863]="UNSIGNED_NORMALIZED_EXT",o[o.MIN_EXT=32775]="MIN_EXT",o[o.MAX_EXT=32776]="MAX_EXT",o[o.SRGB_EXT=35904]="SRGB_EXT",o[o.SRGB_ALPHA_EXT=35906]="SRGB_ALPHA_EXT",o[o.SRGB8_ALPHA8_EXT=35907]="SRGB8_ALPHA8_EXT",o[o.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT=33296]="FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT",o[o.FRAGMENT_SHADER_DERIVATIVE_HINT_OES=35723]="FRAGMENT_SHADER_DERIVATIVE_HINT_OES",o[o.COLOR_ATTACHMENT0_WEBGL=36064]="COLOR_ATTACHMENT0_WEBGL",o[o.COLOR_ATTACHMENT1_WEBGL=36065]="COLOR_ATTACHMENT1_WEBGL",o[o.COLOR_ATTACHMENT2_WEBGL=36066]="COLOR_ATTACHMENT2_WEBGL",o[o.COLOR_ATTACHMENT3_WEBGL=36067]="COLOR_ATTACHMENT3_WEBGL",o[o.COLOR_ATTACHMENT4_WEBGL=36068]="COLOR_ATTACHMENT4_WEBGL",o[o.COLOR_ATTACHMENT5_WEBGL=36069]="COLOR_ATTACHMENT5_WEBGL",o[o.COLOR_ATTACHMENT6_WEBGL=36070]="COLOR_ATTACHMENT6_WEBGL",o[o.COLOR_ATTACHMENT7_WEBGL=36071]="COLOR_ATTACHMENT7_WEBGL",o[o.COLOR_ATTACHMENT8_WEBGL=36072]="COLOR_ATTACHMENT8_WEBGL",o[o.COLOR_ATTACHMENT9_WEBGL=36073]="COLOR_ATTACHMENT9_WEBGL",o[o.COLOR_ATTACHMENT10_WEBGL=36074]="COLOR_ATTACHMENT10_WEBGL",o[o.COLOR_ATTACHMENT11_WEBGL=36075]="COLOR_ATTACHMENT11_WEBGL",o[o.COLOR_ATTACHMENT12_WEBGL=36076]="COLOR_ATTACHMENT12_WEBGL",o[o.COLOR_ATTACHMENT13_WEBGL=36077]="COLOR_ATTACHMENT13_WEBGL",o[o.COLOR_ATTACHMENT14_WEBGL=36078]="COLOR_ATTACHMENT14_WEBGL",o[o.COLOR_ATTACHMENT15_WEBGL=36079]="COLOR_ATTACHMENT15_WEBGL",o[o.DRAW_BUFFER0_WEBGL=34853]="DRAW_BUFFER0_WEBGL",o[o.DRAW_BUFFER1_WEBGL=34854]="DRAW_BUFFER1_WEBGL",o[o.DRAW_BUFFER2_WEBGL=34855]="DRAW_BUFFER2_WEBGL",o[o.DRAW_BUFFER3_WEBGL=34856]="DRAW_BUFFER3_WEBGL",o[o.DRAW_BUFFER4_WEBGL=34857]="DRAW_BUFFER4_WEBGL",o[o.DRAW_BUFFER5_WEBGL=34858]="DRAW_BUFFER5_WEBGL",o[o.DRAW_BUFFER6_WEBGL=34859]="DRAW_BUFFER6_WEBGL",o[o.DRAW_BUFFER7_WEBGL=34860]="DRAW_BUFFER7_WEBGL",o[o.DRAW_BUFFER8_WEBGL=34861]="DRAW_BUFFER8_WEBGL",o[o.DRAW_BUFFER9_WEBGL=34862]="DRAW_BUFFER9_WEBGL",o[o.DRAW_BUFFER10_WEBGL=34863]="DRAW_BUFFER10_WEBGL",o[o.DRAW_BUFFER11_WEBGL=34864]="DRAW_BUFFER11_WEBGL",o[o.DRAW_BUFFER12_WEBGL=34865]="DRAW_BUFFER12_WEBGL",o[o.DRAW_BUFFER13_WEBGL=34866]="DRAW_BUFFER13_WEBGL",o[o.DRAW_BUFFER14_WEBGL=34867]="DRAW_BUFFER14_WEBGL",o[o.DRAW_BUFFER15_WEBGL=34868]="DRAW_BUFFER15_WEBGL",o[o.MAX_COLOR_ATTACHMENTS_WEBGL=36063]="MAX_COLOR_ATTACHMENTS_WEBGL",o[o.MAX_DRAW_BUFFERS_WEBGL=34852]="MAX_DRAW_BUFFERS_WEBGL",o[o.VERTEX_ARRAY_BINDING_OES=34229]="VERTEX_ARRAY_BINDING_OES",o[o.QUERY_COUNTER_BITS_EXT=34916]="QUERY_COUNTER_BITS_EXT",o[o.CURRENT_QUERY_EXT=34917]="CURRENT_QUERY_EXT",o[o.QUERY_RESULT_EXT=34918]="QUERY_RESULT_EXT",o[o.QUERY_RESULT_AVAILABLE_EXT=34919]="QUERY_RESULT_AVAILABLE_EXT",o[o.TIME_ELAPSED_EXT=35007]="TIME_ELAPSED_EXT",o[o.TIMESTAMP_EXT=36392]="TIMESTAMP_EXT",o[o.GPU_DISJOINT_EXT=36795]="GPU_DISJOINT_EXT"})(El||(El={}));var v0;(function(o){o[o.Buffer=0]="Buffer",o[o.Texture=1]="Texture",o[o.RenderTarget=2]="RenderTarget",o[o.Sampler=3]="Sampler",o[o.Program=4]="Program",o[o.Bindings=5]="Bindings",o[o.InputLayout=6]="InputLayout",o[o.RenderPipeline=7]="RenderPipeline",o[o.ComputePipeline=8]="ComputePipeline",o[o.Readback=9]="Readback",o[o.QueryPool=10]="QueryPool"})(v0||(v0={}));var b0;(function(o){o[o.NEVER=512]="NEVER",o[o.LESS=513]="LESS",o[o.EQUAL=514]="EQUAL",o[o.LEQUAL=515]="LEQUAL",o[o.GREATER=516]="GREATER",o[o.NOTEQUAL=517]="NOTEQUAL",o[o.GEQUAL=518]="GEQUAL",o[o.ALWAYS=519]="ALWAYS"})(b0||(b0={}));var SE;(function(o){o[o.CCW=2305]="CCW",o[o.CW=2304]="CW"})(SE||(SE={}));var Fb;(function(o){o[o.NONE=0]="NONE",o[o.FRONT=1]="FRONT",o[o.BACK=2]="BACK",o[o.FRONT_AND_BACK=3]="FRONT_AND_BACK"})(Fb||(Fb={}));var Am;(function(o){o[o.ZERO=0]="ZERO",o[o.ONE=1]="ONE",o[o.SRC=768]="SRC",o[o.ONE_MINUS_SRC=769]="ONE_MINUS_SRC",o[o.DST=774]="DST",o[o.ONE_MINUS_DST=775]="ONE_MINUS_DST",o[o.SRC_ALPHA=770]="SRC_ALPHA",o[o.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",o[o.DST_ALPHA=772]="DST_ALPHA",o[o.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",o[o.CONST=32769]="CONST",o[o.ONE_MINUS_CONSTANT=32770]="ONE_MINUS_CONSTANT",o[o.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE"})(Am||(Am={}));var Dy;(function(o){o[o.ADD=32774]="ADD",o[o.SUBSTRACT=32778]="SUBSTRACT",o[o.REVERSE_SUBSTRACT=32779]="REVERSE_SUBSTRACT",o[o.MIN=32775]="MIN",o[o.MAX=32776]="MAX"})(Dy||(Dy={}));var Hy;(function(o){o[o.CLAMP_TO_EDGE=0]="CLAMP_TO_EDGE",o[o.REPEAT=1]="REPEAT",o[o.MIRRORED_REPEAT=2]="MIRRORED_REPEAT"})(Hy||(Hy={}));var _1;(function(o){o[o.POINT=0]="POINT",o[o.BILINEAR=1]="BILINEAR"})(_1||(_1={}));var ey;(function(o){o[o.NO_MIP=0]="NO_MIP",o[o.NEAREST=1]="NEAREST",o[o.LINEAR=2]="LINEAR"})(ey||(ey={}));var Xv;(function(o){o[o.POINTS=0]="POINTS",o[o.TRIANGLES=1]="TRIANGLES",o[o.TRIANGLE_STRIP=2]="TRIANGLE_STRIP",o[o.LINES=3]="LINES",o[o.LINE_STRIP=4]="LINE_STRIP"})(Xv||(Xv={}));var rv;(function(o){o[o.MAP_READ=1]="MAP_READ",o[o.MAP_WRITE=2]="MAP_WRITE",o[o.COPY_SRC=4]="COPY_SRC",o[o.COPY_DST=8]="COPY_DST",o[o.INDEX=16]="INDEX",o[o.VERTEX=32]="VERTEX",o[o.UNIFORM=64]="UNIFORM",o[o.STORAGE=128]="STORAGE",o[o.INDIRECT=256]="INDIRECT",o[o.QUERY_RESOLVE=512]="QUERY_RESOLVE"})(rv||(rv={}));var j2;(function(o){o[o.STATIC=1]="STATIC",o[o.DYNAMIC=2]="DYNAMIC"})(j2||(j2={}));var nS;(function(o){o[o.VERTEX=1]="VERTEX",o[o.INSTANCE=2]="INSTANCE"})(nS||(nS={}));var m8;(function(o){o.LOADED="loaded"})(m8||(m8={}));var Rm;(function(o){o[o.TEXTURE_2D=0]="TEXTURE_2D",o[o.TEXTURE_2D_ARRAY=1]="TEXTURE_2D_ARRAY",o[o.TEXTURE_3D=2]="TEXTURE_3D",o[o.TEXTURE_CUBE_MAP=3]="TEXTURE_CUBE_MAP"})(Rm||(Rm={}));var xx;(function(o){o[o.SAMPLED=1]="SAMPLED",o[o.RENDER_TARGET=2]="RENDER_TARGET"})(xx||(xx={}));var Gy;(function(o){o[o.NONE=0]="NONE",o[o.RED=1]="RED",o[o.GREEN=2]="GREEN",o[o.BLUE=4]="BLUE",o[o.ALPHA=8]="ALPHA",o[o.RGB=7]="RGB",o[o.ALL=15]="ALL"})(Gy||(Gy={}));var L_;(function(o){o[o.KEEP=7680]="KEEP",o[o.ZERO=0]="ZERO",o[o.REPLACE=7681]="REPLACE",o[o.INVERT=5386]="INVERT",o[o.INCREMENT_CLAMP=7682]="INCREMENT_CLAMP",o[o.DECREMENT_CLAMP=7683]="DECREMENT_CLAMP",o[o.INCREMENT_WRAP=34055]="INCREMENT_WRAP",o[o.DECREMENT_WRAP=34056]="DECREMENT_WRAP"})(L_||(L_={}));function yU(o,d,l,c){var u=Rm.TEXTURE_2D,m=1,E=xx.SAMPLED;return{dimension:u,format:o,width:d,height:l,depthOrArrayLayers:m,mipLevelCount:c,usage:E}}var Y0;(function(o){o[o.Float=0]="Float",o[o.Uint=1]="Uint",o[o.Sint=2]="Sint",o[o.Depth=3]="Depth"})(Y0||(Y0={}));var WA;(function(o){o[o.LOWER_LEFT=0]="LOWER_LEFT",o[o.UPPER_LEFT=1]="UPPER_LEFT"})(WA||(WA={}));var W2;(function(o){o[o.NEGATIVE_ONE=0]="NEGATIVE_ONE",o[o.ZERO=1]="ZERO"})(W2||(W2={}));var ER;(function(o){o[o.OcclusionConservative=0]="OcclusionConservative"})(ER||(ER={}));var $h;(function(o){o[o.U8=1]="U8",o[o.U16=2]="U16",o[o.U32=3]="U32",o[o.S8=4]="S8",o[o.S16=5]="S16",o[o.S32=6]="S32",o[o.F16=7]="F16",o[o.F32=8]="F32",o[o.BC1=65]="BC1",o[o.BC2=66]="BC2",o[o.BC3=67]="BC3",o[o.BC4_UNORM=68]="BC4_UNORM",o[o.BC4_SNORM=69]="BC4_SNORM",o[o.BC5_UNORM=70]="BC5_UNORM",o[o.BC5_SNORM=71]="BC5_SNORM",o[o.U16_PACKED_5551=97]="U16_PACKED_5551",o[o.U16_PACKED_565=98]="U16_PACKED_565",o[o.D24=129]="D24",o[o.D32F=130]="D32F",o[o.D24S8=131]="D24S8",o[o.D32FS8=132]="D32FS8"})($h||($h={}));var Up;(function(o){o[o.R=1]="R",o[o.RG=2]="RG",o[o.RGB=3]="RGB",o[o.RGBA=4]="RGBA",o[o.A=5]="A"})(Up||(Up={}));function HQ(o){return o}var $f;(function(o){o[o.None=0]="None",o[o.Normalized=1]="Normalized",o[o.sRGB=2]="sRGB",o[o.Depth=4]="Depth",o[o.Stencil=8]="Stencil",o[o.RenderTarget=16]="RenderTarget",o[o.Luminance=32]="Luminance"})($f||($f={}));function Eg(o,d,l){return o<<16|d<<8|l}var Vu;(function(o){o[o.ALPHA=Eg($h.U8,Up.A,$f.None)]="ALPHA",o[o.U8_LUMINANCE=Eg($h.U8,Up.A,$f.Luminance)]="U8_LUMINANCE",o[o.F16_LUMINANCE=Eg($h.F16,Up.A,$f.Luminance)]="F16_LUMINANCE",o[o.F32_LUMINANCE=Eg($h.F32,Up.A,$f.Luminance)]="F32_LUMINANCE",o[o.F16_R=Eg($h.F16,Up.R,$f.None)]="F16_R",o[o.F16_RG=Eg($h.F16,Up.RG,$f.None)]="F16_RG",o[o.F16_RGB=Eg($h.F16,Up.RGB,$f.None)]="F16_RGB",o[o.F16_RGBA=Eg($h.F16,Up.RGBA,$f.None)]="F16_RGBA",o[o.F32_R=Eg($h.F32,Up.R,$f.None)]="F32_R",o[o.F32_RG=Eg($h.F32,Up.RG,$f.None)]="F32_RG",o[o.F32_RGB=Eg($h.F32,Up.RGB,$f.None)]="F32_RGB",o[o.F32_RGBA=Eg($h.F32,Up.RGBA,$f.None)]="F32_RGBA",o[o.U8_R=Eg($h.U8,Up.R,$f.None)]="U8_R",o[o.U8_R_NORM=Eg($h.U8,Up.R,$f.Normalized)]="U8_R_NORM",o[o.U8_RG=Eg($h.U8,Up.RG,$f.None)]="U8_RG",o[o.U8_RG_NORM=Eg($h.U8,Up.RG,$f.Normalized)]="U8_RG_NORM",o[o.U8_RGB=Eg($h.U8,Up.RGB,$f.None)]="U8_RGB",o[o.U8_RGB_NORM=Eg($h.U8,Up.RGB,$f.Normalized)]="U8_RGB_NORM",o[o.U8_RGB_SRGB=Eg($h.U8,Up.RGB,$f.sRGB|$f.Normalized)]="U8_RGB_SRGB",o[o.U8_RGBA=Eg($h.U8,Up.RGBA,$f.None)]="U8_RGBA",o[o.U8_RGBA_NORM=Eg($h.U8,Up.RGBA,$f.Normalized)]="U8_RGBA_NORM",o[o.U8_RGBA_SRGB=Eg($h.U8,Up.RGBA,$f.sRGB|$f.Normalized)]="U8_RGBA_SRGB",o[o.U16_R=Eg($h.U16,Up.R,$f.None)]="U16_R",o[o.U16_R_NORM=Eg($h.U16,Up.R,$f.Normalized)]="U16_R_NORM",o[o.U16_RG_NORM=Eg($h.U16,Up.RG,$f.Normalized)]="U16_RG_NORM",o[o.U16_RGBA_NORM=Eg($h.U16,Up.RGBA,$f.Normalized)]="U16_RGBA_NORM",o[o.U16_RGB=Eg($h.U16,Up.RGB,$f.None)]="U16_RGB",o[o.U32_R=Eg($h.U32,Up.R,$f.None)]="U32_R",o[o.U32_RG=Eg($h.U32,Up.RG,$f.None)]="U32_RG",o[o.S8_R=Eg($h.S8,Up.R,$f.None)]="S8_R",o[o.S8_R_NORM=Eg($h.S8,Up.R,$f.Normalized)]="S8_R_NORM",o[o.S8_RG_NORM=Eg($h.S8,Up.RG,$f.Normalized)]="S8_RG_NORM",o[o.S8_RGB_NORM=Eg($h.S8,Up.RGB,$f.Normalized)]="S8_RGB_NORM",o[o.S8_RGBA_NORM=Eg($h.S8,Up.RGBA,$f.Normalized)]="S8_RGBA_NORM",o[o.S16_R=Eg($h.S16,Up.R,$f.None)]="S16_R",o[o.S16_RG=Eg($h.S16,Up.RG,$f.None)]="S16_RG",o[o.S16_RG_NORM=Eg($h.S16,Up.RG,$f.Normalized)]="S16_RG_NORM",o[o.S16_RGB_NORM=Eg($h.S16,Up.RGB,$f.Normalized)]="S16_RGB_NORM",o[o.S16_RGBA=Eg($h.S16,Up.RGBA,$f.None)]="S16_RGBA",o[o.S16_RGBA_NORM=Eg($h.S16,Up.RGBA,$f.Normalized)]="S16_RGBA_NORM",o[o.S32_R=Eg($h.S32,Up.R,$f.None)]="S32_R",o[o.U16_RGBA_5551=Eg($h.U16_PACKED_5551,Up.RGBA,$f.Normalized)]="U16_RGBA_5551",o[o.U16_RGB_565=Eg($h.U16_PACKED_565,Up.RGB,$f.Normalized)]="U16_RGB_565",o[o.BC1=Eg($h.BC1,Up.RGBA,$f.Normalized)]="BC1",o[o.BC1_SRGB=Eg($h.BC1,Up.RGBA,$f.Normalized|$f.sRGB)]="BC1_SRGB",o[o.BC2=Eg($h.BC2,Up.RGBA,$f.Normalized)]="BC2",o[o.BC2_SRGB=Eg($h.BC2,Up.RGBA,$f.Normalized|$f.sRGB)]="BC2_SRGB",o[o.BC3=Eg($h.BC3,Up.RGBA,$f.Normalized)]="BC3",o[o.BC3_SRGB=Eg($h.BC3,Up.RGBA,$f.Normalized|$f.sRGB)]="BC3_SRGB",o[o.BC4_UNORM=Eg($h.BC4_UNORM,Up.R,$f.Normalized)]="BC4_UNORM",o[o.BC4_SNORM=Eg($h.BC4_SNORM,Up.R,$f.Normalized)]="BC4_SNORM",o[o.BC5_UNORM=Eg($h.BC5_UNORM,Up.RG,$f.Normalized)]="BC5_UNORM",o[o.BC5_SNORM=Eg($h.BC5_SNORM,Up.RG,$f.Normalized)]="BC5_SNORM",o[o.D24=Eg($h.D24,Up.R,$f.Depth)]="D24",o[o.D24_S8=Eg($h.D24S8,Up.RG,$f.Depth|$f.Stencil)]="D24_S8",o[o.D32F=Eg($h.D32F,Up.R,$f.Depth)]="D32F",o[o.D32F_S8=Eg($h.D32FS8,Up.RG,$f.Depth|$f.Stencil)]="D32F_S8",o[o.U8_RGB_RT=Eg($h.U8,Up.RGB,$f.RenderTarget|$f.Normalized)]="U8_RGB_RT",o[o.U8_RGBA_RT=Eg($h.U8,Up.RGBA,$f.RenderTarget|$f.Normalized)]="U8_RGBA_RT",o[o.U8_RGBA_RT_SRGB=Eg($h.U8,Up.RGBA,$f.RenderTarget|$f.Normalized|$f.sRGB)]="U8_RGBA_RT_SRGB"})(Vu||(Vu={}));function TR(o){return o>>>8&255}function Cx(o){return o>>>16&255}function ZA(o){return o&255}function Z2(o){switch(o){case $h.F32:case $h.U32:case $h.S32:return 4;case $h.U16:case $h.S16:case $h.F16:return 2;case $h.U8:case $h.S8:return 1;default:throw new Error("whoops")}}function rL(o){return Z2(Cx(o))}function qG(o){return TR(o)}function _U(o){var d=Z2(Cx(o)),l=TR(o);return d*l}function v8(o,d){return o&4294967040|d}function JG(o,d){return o&4294902015|d<<8}function AR(o){var d=ZA(o);if(d&$f.Depth)return Y0.Depth;if(d&$f.Normalized)return Y0.Float;var l=Cx(o);if(l===$h.F16||l===$h.F32)return Y0.Float;if(l===$h.U8||l===$h.U16||l===$h.U32)return Y0.Uint;if(l===$h.S8||l===$h.S16||l===$h.S32)return Y0.Sint;throw new Error("whoops")}function sm(o,d){if(d===void 0&&(d=""),!o)throw new Error("Assert fail: ".concat(d))}function rS(o){if(o!=null)return o;throw new Error("Missing object")}function bU(o,d){return o.r===d.r&&o.g===d.g&&o.b===d.b&&o.a===d.a}function y8(o,d){o.r=d.r,o.g=d.g,o.b=d.b,o.a=d.a}function _8(o){var d=o.r,l=o.g,c=o.b,u=o.a;return{r:d,g:l,b:c,a:u}}function DR(o,d,l,c){return c===void 0&&(c=1),{r:o,g:d,b:l,a:c}}var iS=DR(0,0,0,0),s1=DR(0,0,0,1),xU=DR(1,1,1,0),GQ=DR(1,1,1,1),HA=!0;function QG(o,d){d===void 0&&(d=HA),d&&(o[10]=-o[10],o[14]=-o[14])}function eK(o,d){d===void 0&&(d=HA),d&&(o[10]=-o[10],o[14]=-o[14]+1)}function wU(o,d){if(d===void 0&&(d=HA),d)switch(o){case b0.LESS:return b0.GREATER;case b0.LEQUAL:return b0.GEQUAL;case b0.GEQUAL:return b0.LEQUAL;case b0.GREATER:return b0.LESS;default:return o}else return o}function mie(o,d){return d===void 0&&(d=HA),d?1-o:o}function vie(o,d){return d===void 0&&(d=HA),d?-o:o}function yie(o,d,l,c){if(c===void 0&&(c=HA),l=wU(l,c),l===b0.LESS)return od;if(l===b0.GEQUAL)return o>=d;throw new Error("whoops")}function b8(o){return!!(o&&!(o&o-1))}function EE(o,d){return o!=null?o:d}function tK(o){return o===void 0?null:o}function iL(o,d,l){o.length=d,o.fill(l)}function IR(o,d){var l=d-1;return o+l&~l}function oL(o,d){return((o+d-1)/d|0)*d}function CU(o,d,l){for(var c=0,u=o.length;c>>1),E=l(d,o[m]);E<0?u=m:c=m+1}return c}function nK(o,d,l){var c=CU(o,d,l);o.splice(c,0,d)}function rK(o,d,l){return l?o|=d:o&=~d,o}function x8(o,d){for(var l=new Array(o),c=0;c-1;if(Z=Z.replace(";","").replace("[","").trim(),!L.startsWith("#")){if(L){var xe=l.find(function(Bt){return L===Bt.type});if(xe)if(ne)for(var Oe=function(Bt){xe.uniforms.forEach(function(wn){d.push("".concat(Z,"[").concat(Bt,"].").concat(wn.name))})},wt=0;wt<5;wt++)Oe(wt);else xe.uniforms.forEach(function(Bt){d.push("".concat(Z,".").concat(Bt.name))})}Z&&d.push(Z)}}),""}),d}function $R(o){if(o===void 0)return null;var d=/binding\s*=\s*(\d+)/.exec(o);if(d!==null){var l=parseInt(d[1],10);if(!Number.isNaN(l))return l}return null}function ree(o){var d="",l=o;return[l,d]}function iS(o,d,l,c,u){var m;c===void 0&&(c=null),u===void 0&&(u=!0);var E=o.glslVersion==="#version 100",L=d==="frag"&&((m=l.match(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm))===null||m===void 0?void 0:m.length)>1,Z=l.replace(`\r +`).forEach(function(m){var E=m.trim().split(" "),M=E[0]||"",Z=E[1]||"",ne=Z.indexOf("[")>-1;if(Z=Z.replace(";","").replace("[","").trim(),!M.startsWith("#")){if(M){var Ce=l.find(function(Bt){return M===Bt.type});if(Ce)if(ne)for(var Oe=function(Bt){Ce.uniforms.forEach(function(An){d.push("".concat(Z,"[").concat(Bt,"].").concat(An.name))})},Ct=0;Ct<5;Ct++)Oe(Ct);else Ce.uniforms.forEach(function(Bt){d.push("".concat(Z,".").concat(Bt.name))})}Z&&d.push(Z)}}),""}),d}function zR(o){if(o===void 0)return null;var d=/binding\s*=\s*(\d+)/.exec(o);if(d!==null){var l=parseInt(d[1],10);if(!Number.isNaN(l))return l}return null}function ree(o){var d="",l=o;return[l,d]}function sS(o,d,l,c,u){var m;c===void 0&&(c=null),u===void 0&&(u=!0);var E=o.glslVersion==="#version 100",M=d==="frag"&&((m=l.match(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm))===null||m===void 0?void 0:m.length)>1,Z=l.replace(`\r `,` `).split(` -`).map(function(fa){return fa.replace(/[/][/].*$/,"")}).filter(function(fa){var Za=!fa||/^\s+$/.test(fa);return!Za}),ne="";c!==null&&(ne=Object.keys(c).map(function(fa){return dI(fa,c[fa])}).join(` -`));var xe=Z.find(function(fa){return fa.startsWith("precision")})||"precision mediump float;",Oe=u?Z.filter(function(fa){return!fa.startsWith("precision")}).join(` +`).map(function(fa){return fa.replace(/[/][/].*$/,"")}).filter(function(fa){var Wa=!fa||/^\s+$/.test(fa);return!Wa}),ne="";c!==null&&(ne=Object.keys(c).map(function(fa){return fI(fa,c[fa])}).join(` +`));var Ce=Z.find(function(fa){return fa.startsWith("precision")})||"precision mediump float;",Oe=u?Z.filter(function(fa){return!fa.startsWith("precision")}).join(` `):Z.join(` -`),wt="";if(o.viewportOrigin===$A.UPPER_LEFT&&(wt+="".concat(dI("VIEWPORT_ORIGIN_TL","1"),` -`)),o.clipSpaceNearZ===Z2.ZERO&&(wt+="".concat(dI("CLIPSPACE_NEAR_ZERO","1"),` -`)),o.explicitBindingLocations){var Bt=0,wn=0,Rn=0;Oe=Oe.replace(/^(layout\((.*)\))?\s*uniform(.+{)$/gm,function(fa,Za,gl,tu){var ku=gl?"".concat(gl,", "):"";return"layout(".concat(ku,"set = ").concat(Bt,", binding = ").concat(wn++,") uniform ").concat(tu)}),Bt++,wn=0,sm(o.separateSamplerTextures),Oe=Oe.replace(/^(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(fa,Za,gl,tu,ku){var ju=$R(gl);ju===null&&(ju=wn++);var Xc=(0,Xf.CR)(ree(tu),2),Pd=Xc[0],Lh=Xc[1];return d==="frag"?` -layout(set = `.concat(Bt,", binding = ").concat(ju*2+0,") uniform texture").concat(Pd," T_").concat(ku,`; -layout(set = `).concat(Bt,", binding = ").concat(ju*2+1,") uniform sampler").concat(Lh," S_").concat(ku,";").trim():""}),Oe=Oe.replace(d==="frag"?/^\s*\b(varying|in)\b/gm:/^\s*\b(varying|out)\b/gm,function(fa,Za){return"layout(location = ".concat(Rn++,") ").concat(Za)}),wt+="".concat(dI("gl_VertexID","gl_VertexIndex"),` -`),wt+="".concat(dI("gl_InstanceID","gl_InstanceIndex"),` -`),xe=xe.replace(/^precision (.*) sampler(.*);$/gm,"")}else{var Pr=0;Oe=Oe.replace(/^(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(fa,Za,gl,tu,ku){var ju=$R(gl);return ju===null&&(ju=Pr++),"uniform sampler".concat(tu," ").concat(ku,"; // BINDING=").concat(ju)})}if(o.separateSamplerTextures)Oe=Oe.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(fa,Za,gl){return"sampler".concat(Za,"(T_").concat(gl,", S_").concat(gl,")")}),Oe=Oe.replace(/\bTEXTURE\((.*?)\)/g,function(fa,Za){return"T_".concat(Za)});else{var ui=[];Oe=Oe.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(fa,Za,gl){return ui.push([gl,Za]),gl}),E&&ui.forEach(function(fa){var Za=(0,Xf.CR)(fa,2),gl=Za[0],tu=Za[1];Oe=Oe.replace(new RegExp("texture\\(".concat(gl),"g"),function(){return"texture".concat(tu,"(").concat(gl)})}),Oe=Oe.replace(/\bTEXTURE\((.*?)\)/g,function(fa,Za){return Za})}var oo="".concat(E?"":o.glslVersion,` -`).concat(E&&L?`#extension GL_EXT_draw_buffers : require +`),Ct="";if(o.viewportOrigin===WA.UPPER_LEFT&&(Ct+="".concat(fI("VIEWPORT_ORIGIN_TL","1"),` +`)),o.clipSpaceNearZ===W2.ZERO&&(Ct+="".concat(fI("CLIPSPACE_NEAR_ZERO","1"),` +`)),o.explicitBindingLocations){var Bt=0,An=0,kn=0;Oe=Oe.replace(/^(layout\((.*)\))?\s*uniform(.+{)$/gm,function(fa,Wa,vl,Ql){var Ou=vl?"".concat(vl,", "):"";return"layout(".concat(Ou,"set = ").concat(Bt,", binding = ").concat(An++,") uniform ").concat(Ql)}),Bt++,An=0,sm(o.separateSamplerTextures),Oe=Oe.replace(/^(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(fa,Wa,vl,Ql,Ou){var Uu=zR(vl);Uu===null&&(Uu=An++);var hh=(0,Yf.CR)(ree(Ql),2),Ph=hh[0],Ld=hh[1];return d==="frag"?` +layout(set = `.concat(Bt,", binding = ").concat(Uu*2+0,") uniform texture").concat(Ph," T_").concat(Ou,`; +layout(set = `).concat(Bt,", binding = ").concat(Uu*2+1,") uniform sampler").concat(Ld," S_").concat(Ou,";").trim():""}),Oe=Oe.replace(d==="frag"?/^\s*\b(varying|in)\b/gm:/^\s*\b(varying|out)\b/gm,function(fa,Wa){return"layout(location = ".concat(kn++,") ").concat(Wa)}),Ct+="".concat(fI("gl_VertexID","gl_VertexIndex"),` +`),Ct+="".concat(fI("gl_InstanceID","gl_InstanceIndex"),` +`),Ce=Ce.replace(/^precision (.*) sampler(.*);$/gm,"")}else{var Ir=0;Oe=Oe.replace(/^(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(fa,Wa,vl,Ql,Ou){var Uu=zR(vl);return Uu===null&&(Uu=Ir++),"uniform sampler".concat(Ql," ").concat(Ou,"; // BINDING=").concat(Uu)})}if(o.separateSamplerTextures)Oe=Oe.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(fa,Wa,vl){return"sampler".concat(Wa,"(T_").concat(vl,", S_").concat(vl,")")}),Oe=Oe.replace(/\bTEXTURE\((.*?)\)/g,function(fa,Wa){return"T_".concat(Wa)});else{var ui=[];Oe=Oe.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(fa,Wa,vl){return ui.push([vl,Wa]),vl}),E&&ui.forEach(function(fa){var Wa=(0,Yf.CR)(fa,2),vl=Wa[0],Ql=Wa[1];Oe=Oe.replace(new RegExp("texture\\(".concat(vl),"g"),function(){return"texture".concat(Ql,"(").concat(vl)})}),Oe=Oe.replace(/\bTEXTURE\((.*?)\)/g,function(fa,Wa){return Wa})}var ao="".concat(E?"":o.glslVersion,` +`).concat(E&&M?`#extension GL_EXT_draw_buffers : require `:"",` `).concat(E&&d==="frag"?`#extension GL_OES_standard_derivatives : enable -`:"").concat(u?xe:"",` -`).concat(wt||"").concat(ne?ne+` +`:"").concat(u?Ce:"",` +`).concat(Ct||"").concat(ne?ne+` `:"",` `).concat(Oe,` -`).trim();if(o.explicitBindingLocations&&d==="frag"&&(oo=oo.replace(/^\b(out)\b/g,function(fa,Za){return"layout(location = 0) ".concat(Za)})),E){if(d==="frag"&&(oo=oo.replace(/^\s*in\s+(\S+)\s*(.*);$/gm,function(fa,Za,gl){return"varying ".concat(Za," ").concat(gl,`; -`)})),d==="vert"&&(oo=oo.replace(/^\s*out\s+(\S+)\s*(.*);$/gm,function(fa,Za,gl){return"varying ".concat(Za," ").concat(gl,`; -`)}),oo=oo.replace(/^\s*layout\(location\s*=\s*\S*\)\s*in\s+(\S+)\s*(.*);$/gm,function(fa,Za,gl){return"attribute ".concat(Za," ").concat(gl,`; -`)})),oo=oo.replace(/\s*uniform\s*.*\s*{((?:\s*.*\s*)*?)};/g,function(fa,Za){return Za.trim().replace(/^.*$/gm,function(gl){var tu=gl.trim();return tu.startsWith("#")?tu:gl?"uniform ".concat(tu):""})}),d==="frag")if(L){var xo=[];oo=oo.replace(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm,function(fa,Za){return xo.push(Za),"vec4 ".concat(Za,`; -`)});var Ds=oo.lastIndexOf("}");oo=oo.substring(0,Ds)+` - `.concat(xo.map(function(fa,Za){return"gl_FragData[".concat(Za,"] = ").concat(fa,`; +`).trim();if(o.explicitBindingLocations&&d==="frag"&&(ao=ao.replace(/^\b(out)\b/g,function(fa,Wa){return"layout(location = 0) ".concat(Wa)})),E){if(d==="frag"&&(ao=ao.replace(/^\s*in\s+(\S+)\s*(.*);$/gm,function(fa,Wa,vl){return"varying ".concat(Wa," ").concat(vl,`; +`)})),d==="vert"&&(ao=ao.replace(/^\s*out\s+(\S+)\s*(.*);$/gm,function(fa,Wa,vl){return"varying ".concat(Wa," ").concat(vl,`; +`)}),ao=ao.replace(/^\s*layout\(location\s*=\s*\S*\)\s*in\s+(\S+)\s*(.*);$/gm,function(fa,Wa,vl){return"attribute ".concat(Wa," ").concat(vl,`; +`)})),ao=ao.replace(/\s*uniform\s*.*\s*{((?:\s*.*\s*)*?)};/g,function(fa,Wa){return Wa.trim().replace(/^.*$/gm,function(vl){var Ql=vl.trim();return Ql.startsWith("#")?Ql:vl?"uniform ".concat(Ql):""})}),d==="frag")if(M){var wo=[];ao=ao.replace(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm,function(fa,Wa){return wo.push(Wa),"vec4 ".concat(Wa,`; +`)});var Ds=ao.lastIndexOf("}");ao=ao.substring(0,Ds)+` + `.concat(wo.map(function(fa,Wa){return"gl_FragData[".concat(Wa,"] = ").concat(fa,`; `)}).join(` -`))+oo.substring(Ds)}else{var aa;if(oo=oo.replace(/^\s*out\s+(\S+)\s*(.*);$/gm,function(fa,Za,gl){return aa=gl,"".concat(Za," ").concat(gl,`; -`)}),aa){var Ds=oo.lastIndexOf("}");oo=oo.substring(0,Ds)+` - gl_FragColor = vec4(`.concat(aa,`); -`)+oo.substring(Ds)}}oo=oo.replace(/^\s*layout\((.*)\)/gm,"")}return oo}function _ie(o,d,l,c){c===void 0&&(c=null);var u=iS(o,"vert",d,c),m=iS(o,"frag",l,c);return{vert:d,frag:l,preprocessedVert:u,preprocessedFrag:m}}var G2=function(o){(0,Xf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=o.call(this)||this;return m.id=c,m.device=u,m.device.resourceCreationTracker!==null&&m.device.resourceCreationTracker.trackResourceCreated(m),m}return d.prototype.destroy=function(){this.device.resourceCreationTracker!==null&&this.device.resourceCreationTracker.trackResourceDestroyed(this)},d}(UA),gK=function(o){(0,Xf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;E.type=y0.Bindings;var L=m.uniformBufferBindings,Z=m.samplerBindings;return E.uniformBufferBindings=L||[],E.samplerBindings=Z||[],E.bindingLayouts=E.createBindingLayouts(),E}return d.prototype.createBindingLayouts=function(){var l=0,c=0,u=[],m=this.uniformBufferBindings.length,E=this.samplerBindings.length;return u.push({firstUniformBuffer:l,numUniformBuffers:m,firstSampler:c,numSamplers:E}),l+=m,c+=E,{numUniformBuffers:l,numSamplers:c,bindingLayoutTables:u}},d}(G2);function Bp(o){return typeof WebGL2RenderingContext!="undefined"&&o instanceof WebGL2RenderingContext?!0:!!(o&&o._version===2)}function T8(o){var d=xx(o);switch(d){case $d.BC1:case $d.BC2:case $d.BC3:case $d.BC4_UNORM:case $d.BC4_SNORM:case $d.BC5_UNORM:case $d.BC5_SNORM:return!0;default:return!1}}function A8(o){var d=VA(o);if(d&Uf.Normalized)return!1;var l=xx(o);return l===$d.S8||l===$d.S16||l===$d.S32||l===$d.U8||l===$d.U16||l===$d.U32}function IU(o){switch(o){case W2.STATIC:return Ml.STATIC_DRAW;case W2.DYNAMIC:return Ml.DYNAMIC_DRAW}}function D8(o){if(o&ov.INDEX)return Ml.ELEMENT_ARRAY_BUFFER;if(o&ov.VERTEX)return Ml.ARRAY_BUFFER;if(o&ov.UNIFORM)return Ml.UNIFORM_BUFFER}function VR(o){switch(o){case Xv.TRIANGLES:return Ml.TRIANGLES;case Xv.POINTS:return Ml.POINTS;case Xv.TRIANGLE_STRIP:return Ml.TRIANGLE_STRIP;case Xv.LINES:return Ml.LINES;case Xv.LINE_STRIP:return Ml.LINE_STRIP;default:throw new Error("Unknown primitive topology mode")}}function K2(o){switch(o){case $d.U8:return Ml.UNSIGNED_BYTE;case $d.U16:return Ml.UNSIGNED_SHORT;case $d.U32:return Ml.UNSIGNED_INT;case $d.S8:return Ml.BYTE;case $d.S16:return Ml.SHORT;case $d.S32:return Ml.INT;case $d.F16:return Ml.HALF_FLOAT;case $d.F32:return Ml.FLOAT;default:throw new Error("whoops")}}function PU(o){switch(o){case Fp.R:return 1;case Fp.RG:return 2;case Fp.RGB:return 3;case Fp.RGBA:return 4;default:return 1}}function LU(o){var d=xx(o),l=DR(o),c=VA(o),u=K2(d),m=PU(l),E=!!(c&Uf.Normalized);return{size:m,type:u,normalized:E}}function mK(o){switch(o){case qu.U8_R:return Ml.UNSIGNED_BYTE;case qu.U16_R:return Ml.UNSIGNED_SHORT;case qu.U32_R:return Ml.UNSIGNED_INT;default:throw new Error("whoops")}}function fL(o){switch(o){case Hy.CLAMP_TO_EDGE:return Ml.CLAMP_TO_EDGE;case Hy.REPEAT:return Ml.REPEAT;case Hy.MIRRORED_REPEAT:return Ml.MIRRORED_REPEAT;default:throw new Error("whoops")}}function L_(o,d){if(d===ey.LINEAR&&o===_1.BILINEAR)return Ml.LINEAR_MIPMAP_LINEAR;if(d===ey.LINEAR&&o===_1.POINT)return Ml.NEAREST_MIPMAP_LINEAR;if(d===ey.NEAREST&&o===_1.BILINEAR)return Ml.LINEAR_MIPMAP_NEAREST;if(d===ey.NEAREST&&o===_1.POINT)return Ml.NEAREST_MIPMAP_NEAREST;if(d===ey.NO_MIP&&o===_1.BILINEAR)return Ml.LINEAR;if(d===ey.NO_MIP&&o===_1.POINT)return Ml.NEAREST;throw new Error("Unknown texture filter mode")}function GA(o,d){d===void 0&&(d=0);var l=o;return l.gl_buffer_pages[d/l.pageByteSize|0]}function oS(o){var d=o;return d.gl_texture}function I8(o){var d=o;return d.gl_sampler}function DE(o,d){o.name=d,o.__SPECTOR_Metadata={name:d}}function pL(o,d){for(var l=[];;){var c=d.exec(o);if(!c)break;l.push(c)}return l}function Iv(o){return o.blendMode==Dy.ADD&&o.blendSrcFactor==Sm.ONE&&o.blendDstFactor===Sm.ZERO}function jR(o){switch(o){case AR.OcclusionConservative:return Ml.ANY_SAMPLES_PASSED_CONSERVATIVE;default:throw new Error("whoops")}}function MU(o){if(o===Lm.TEXTURE_2D)return Ml.TEXTURE_2D;if(o===Lm.TEXTURE_2D_ARRAY)return Ml.TEXTURE_2D_ARRAY;if(o===Lm.TEXTURE_CUBE_MAP)return Ml.TEXTURE_CUBE_MAP;if(o===Lm.TEXTURE_3D)return Ml.TEXTURE_3D;throw new Error("whoops")}function P8(o,d,l,c){return!(o%l!==0||d%c!==0)}var WR=function(o){(0,Xf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;E.type=y0.Buffer;var L=m.viewOrSize,Z=m.usage,ne=m.hint,xe=ne===void 0?W2.STATIC:ne,Oe=u.uniformBufferMaxPageByteSize,wt=u.gl,Bt=Z&ov.UNIFORM;Bt||(Bp(wt)?wt.bindVertexArray(null):u.OES_vertex_array_object.bindVertexArrayOES(null));var wn=wE(L)?LR(L,4):LR(L.byteLength,4);E.gl_buffer_pages=[];var Rn;if(Bt){for(var Pr=wn;Pr>0;)E.gl_buffer_pages.push(E.createBufferPage(Math.min(Pr,Oe),Z,xe)),Pr-=Oe;Rn=Oe}else E.gl_buffer_pages.push(E.createBufferPage(wn,Z,xe)),Rn=wn;return E.pageByteSize=Rn,E.byteSize=wn,E.usage=Z,E.gl_target=D8(Z),wE(L)||E.setSubData(0,new Uint8Array(L.buffer)),Bt||(Bp(wt)?wt.bindVertexArray(E.device.currentBoundVAO):u.OES_vertex_array_object.bindVertexArrayOES(E.device.currentBoundVAO)),E}return d.prototype.setSubData=function(l,c,u,m){u===void 0&&(u=0),m===void 0&&(m=c.byteLength-u);for(var E=this.device.gl,L=this.pageByteSize,Z=l+m,ne=l,xe=l%L;ne=1,!E){xe=L.device.ensureResourceExists(Z.createTexture());var wt=L.device.translateTextureType(m.format),Bt=L.device.translateTextureInternalFormat(m.format);if(L.device.setActiveTexture(Z.TEXTURE0),L.device.currentTextures[0]=null,L.preprocessImage(),m.dimension===Lm.TEXTURE_2D){if(ne=Ml.TEXTURE_2D,Z.bindTexture(ne,xe),L.immutable)if(Bp(Z))Z.texStorage2D(ne,Oe,Bt,m.width,m.height);else{var wn=(Bt===Ml.DEPTH_COMPONENT||L.isNPOT(),0);(L.format===qu.D32F||L.format===qu.D24_S8)&&!Bp(Z)&&!u.WEBGL_depth_texture||(Z.texImage2D(ne,wn,Bt,m.width,m.height,0,Bt,wt,null),L.mipmaps&&(L.mipmaps=!1,Z.texParameteri(Ml.TEXTURE_2D,Ml.TEXTURE_MIN_FILTER,Ml.LINEAR),Z.texParameteri(Ml.TEXTURE_2D,Ml.TEXTURE_WRAP_S,Ml.CLAMP_TO_EDGE),Z.texParameteri(Ml.TEXTURE_2D,Ml.TEXTURE_WRAP_T,Ml.CLAMP_TO_EDGE)))}sm(m.depthOrArrayLayers===1)}else if(m.dimension===Lm.TEXTURE_2D_ARRAY)ne=Ml.TEXTURE_2D_ARRAY,Z.bindTexture(ne,xe),L.immutable&&Bp(Z)&&Z.texStorage3D(ne,Oe,Bt,m.width,m.height,m.depthOrArrayLayers);else if(m.dimension===Lm.TEXTURE_3D)ne=Ml.TEXTURE_3D,Z.bindTexture(ne,xe),L.immutable&&Bp(Z)&&Z.texStorage3D(ne,Oe,Bt,m.width,m.height,m.depthOrArrayLayers);else if(m.dimension===Lm.TEXTURE_CUBE_MAP)ne=Ml.TEXTURE_CUBE_MAP,Z.bindTexture(ne,xe),L.immutable&&Bp(Z)&&Z.texStorage2D(ne,Oe,Bt,m.width,m.height),sm(m.depthOrArrayLayers===6);else throw new Error("whoops")}return L.gl_texture=xe,L.gl_target=ne,L.mipLevelCount=Oe,L}return d.prototype.setImageData=function(l,c){c===void 0&&(c=0);var u=this.device.gl;T8(this.format);var m=this.gl_target===Ml.TEXTURE_3D||this.gl_target===Ml.TEXTURE_2D_ARRAY,E=this.gl_target===Ml.TEXTURE_CUBE_MAP,L=hL(l[0]);this.device.setActiveTexture(u.TEXTURE0),this.device.currentTextures[0]=null;var Z=l[0],ne,xe;L?(ne=this.width,xe=this.height):(ne=Z.width,xe=Z.height,this.width=ne,this.height=xe),u.bindTexture(this.gl_target,this.gl_texture);var Oe=this.device.translateTextureFormat(this.format),wt=this.device.translateTextureType(this.format);this.preprocessImage();for(var Bt=0;Bt1){var c=xx(l.format);if(c===$d.BC1)for(var u=l.width,m=l.height,E=0;E1?L.renderbufferStorageMultisample(Ml.RENDERBUFFER,wt,Rn,ne,xe):L.renderbufferStorage(Ml.RENDERBUFFER,Rn,ne,xe)}return E.format=Z,E.width=ne,E.height=xe,E.sampleCount=wt,E}return d.prototype.destroy=function(){o.prototype.destroy.call(this),this.gl_renderbuffer!==null&&this.device.gl.deleteRenderbuffer(this.gl_renderbuffer),this.texture&&this.texture.destroy()},d}(G2),M_;(function(o){o[o.NeedsCompile=0]="NeedsCompile",o[o.Compiling=1]="Compiling",o[o.NeedsBind=2]="NeedsBind",o[o.ReadyToUse=3]="ReadyToUse"})(M_||(M_={}));var L8=function(o){(0,Xf.ZT)(d,o);function d(l,c){var u=l.id,m=l.device,E=l.descriptor,L=o.call(this,{id:u,device:m})||this;L.rawVertexGLSL=c,L.type=y0.Program,L.uniformSetters={},L.attributes=[];var Z=L.device.gl;return L.descriptor=E,L.gl_program=L.device.ensureResourceExists(Z.createProgram()),L.gl_shader_vert=null,L.gl_shader_frag=null,L.compileState=M_.NeedsCompile,L.tryCompileProgram(),L}return d.prototype.destroy=function(){o.prototype.destroy.call(this),this.device.gl.deleteProgram(this.gl_program),this.device.gl.deleteShader(this.gl_shader_vert),this.device.gl.deleteShader(this.gl_shader_frag)},d.prototype.tryCompileProgram=function(){var l,c;sm(this.compileState===M_.NeedsCompile);var u=this.descriptor,m=this.device.gl;!((l=u.vertex)===null||l===void 0)&&l.glsl&&(!((c=u.fragment)===null||c===void 0)&&c.glsl)&&(this.gl_shader_vert=this.compileShader(u.vertex.glsl,m.VERTEX_SHADER),this.gl_shader_frag=this.compileShader(u.fragment.glsl,m.FRAGMENT_SHADER),m.attachShader(this.gl_program,this.gl_shader_vert),m.attachShader(this.gl_program,this.gl_shader_frag),m.linkProgram(this.gl_program),this.compileState=M_.Compiling,Bp(m)||(this.readUniformLocationsFromLinkedProgram(),this.readAttributesFromLinkedProgram()))},d.prototype.readAttributesFromLinkedProgram=function(){for(var l,c=this.device.gl,u=c.getProgramParameter(this.gl_program,c.ACTIVE_ATTRIBUTES),m=pK(this.descriptor.vertex.glsl),E=tee(this.rawVertexGLSL,m),L=function(xe){var Oe=c.getActiveAttrib(Z.gl_program,xe),wt=Oe.name,Bt=Oe.type,wn=Oe.size,Rn=c.getAttribLocation(Z.gl_program,wt),Pr=(l=E.find(function(ui){return ui.name===wt}))===null||l===void 0?void 0:l.location;Rn>=0&&!CE(Pr)&&(Z.attributes[Pr]={name:wt,location:Rn,type:Bt,size:wn})},Z=this,ne=0;ne1)for(var Z=0;Z0;)E.gl_buffer_pages.push(E.createBufferPage(Math.min(Ir,Oe),Z,Ce)),Ir-=Oe;kn=Oe}else E.gl_buffer_pages.push(E.createBufferPage(An,Z,Ce)),kn=An;return E.pageByteSize=kn,E.byteSize=An,E.usage=Z,E.gl_target=M8(Z),wE(M)||E.setSubData(0,new Uint8Array(M.buffer)),Bt||(Bp(Ct)?Ct.bindVertexArray(E.device.currentBoundVAO):u.OES_vertex_array_object.bindVertexArrayOES(E.device.currentBoundVAO)),E}return d.prototype.setSubData=function(l,c,u,m){u===void 0&&(u=0),m===void 0&&(m=c.byteLength-u);for(var E=this.device.gl,M=this.pageByteSize,Z=l+m,ne=l,Ce=l%M;ne=1,!E){Ce=M.device.ensureResourceExists(Z.createTexture());var Ct=M.device.translateTextureType(m.format),Bt=M.device.translateTextureInternalFormat(m.format);if(M.device.setActiveTexture(Z.TEXTURE0),M.device.currentTextures[0]=null,M.preprocessImage(),m.dimension===Rm.TEXTURE_2D){if(ne=El.TEXTURE_2D,Z.bindTexture(ne,Ce),M.immutable)if(Bp(Z))Z.texStorage2D(ne,Oe,Bt,m.width,m.height);else{var An=(Bt===El.DEPTH_COMPONENT||M.isNPOT(),0);(M.format===Vu.D32F||M.format===Vu.D24_S8)&&!Bp(Z)&&!u.WEBGL_depth_texture||(Z.texImage2D(ne,An,Bt,m.width,m.height,0,Bt,Ct,null),M.mipmaps&&(M.mipmaps=!1,Z.texParameteri(El.TEXTURE_2D,El.TEXTURE_MIN_FILTER,El.LINEAR),Z.texParameteri(El.TEXTURE_2D,El.TEXTURE_WRAP_S,El.CLAMP_TO_EDGE),Z.texParameteri(El.TEXTURE_2D,El.TEXTURE_WRAP_T,El.CLAMP_TO_EDGE)))}sm(m.depthOrArrayLayers===1)}else if(m.dimension===Rm.TEXTURE_2D_ARRAY)ne=El.TEXTURE_2D_ARRAY,Z.bindTexture(ne,Ce),M.immutable&&Bp(Z)&&Z.texStorage3D(ne,Oe,Bt,m.width,m.height,m.depthOrArrayLayers);else if(m.dimension===Rm.TEXTURE_3D)ne=El.TEXTURE_3D,Z.bindTexture(ne,Ce),M.immutable&&Bp(Z)&&Z.texStorage3D(ne,Oe,Bt,m.width,m.height,m.depthOrArrayLayers);else if(m.dimension===Rm.TEXTURE_CUBE_MAP)ne=El.TEXTURE_CUBE_MAP,Z.bindTexture(ne,Ce),M.immutable&&Bp(Z)&&Z.texStorage2D(ne,Oe,Bt,m.width,m.height),sm(m.depthOrArrayLayers===6);else throw new Error("whoops")}return M.gl_texture=Ce,M.gl_target=ne,M.mipLevelCount=Oe,M}return d.prototype.setImageData=function(l,c){c===void 0&&(c=0);var u=this.device.gl;P8(this.format);var m=this.gl_target===El.TEXTURE_3D||this.gl_target===El.TEXTURE_2D_ARRAY,E=this.gl_target===El.TEXTURE_CUBE_MAP,M=uL(l[0]);this.device.setActiveTexture(u.TEXTURE0),this.device.currentTextures[0]=null;var Z=l[0],ne,Ce;M?(ne=this.width,Ce=this.height):(ne=Z.width,Ce=Z.height,this.width=ne,this.height=Ce),u.bindTexture(this.gl_target,this.gl_texture);var Oe=this.device.translateTextureFormat(this.format),Ct=Bp(u)?this.device.translateInternalTextureFormat(this.format):Oe,Bt=this.device.translateTextureType(this.format);this.preprocessImage();for(var An=0;An1){var c=Cx(l.format);if(c===$h.BC1)for(var u=l.width,m=l.height,E=0;E1?M.renderbufferStorageMultisample(El.RENDERBUFFER,Ct,kn,ne,Ce):M.renderbufferStorage(El.RENDERBUFFER,kn,ne,Ce)}return E.format=Z,E.width=ne,E.height=Ce,E.sampleCount=Ct,E}return d.prototype.destroy=function(){o.prototype.destroy.call(this),this.gl_renderbuffer!==null&&this.device.gl.deleteRenderbuffer(this.gl_renderbuffer),this.texture&&this.texture.destroy()},d}(H2),R_;(function(o){o[o.NeedsCompile=0]="NeedsCompile",o[o.Compiling=1]="Compiling",o[o.NeedsBind=2]="NeedsBind",o[o.ReadyToUse=3]="ReadyToUse"})(R_||(R_={}));var O8=function(o){(0,Yf.ZT)(d,o);function d(l,c){var u=l.id,m=l.device,E=l.descriptor,M=o.call(this,{id:u,device:m})||this;M.rawVertexGLSL=c,M.type=v0.Program,M.uniformSetters={},M.attributes=[];var Z=M.device.gl;return M.descriptor=E,M.gl_program=M.device.ensureResourceExists(Z.createProgram()),M.gl_shader_vert=null,M.gl_shader_frag=null,M.compileState=R_.NeedsCompile,M.tryCompileProgram(),M}return d.prototype.destroy=function(){o.prototype.destroy.call(this),this.device.gl.deleteProgram(this.gl_program),this.device.gl.deleteShader(this.gl_shader_vert),this.device.gl.deleteShader(this.gl_shader_frag)},d.prototype.tryCompileProgram=function(){var l,c;sm(this.compileState===R_.NeedsCompile);var u=this.descriptor,m=this.device.gl;!((l=u.vertex)===null||l===void 0)&&l.glsl&&(!((c=u.fragment)===null||c===void 0)&&c.glsl)&&(this.gl_shader_vert=this.compileShader(u.vertex.glsl,m.VERTEX_SHADER),this.gl_shader_frag=this.compileShader(u.fragment.glsl,m.FRAGMENT_SHADER),m.attachShader(this.gl_program,this.gl_shader_vert),m.attachShader(this.gl_program,this.gl_shader_frag),m.linkProgram(this.gl_program),this.compileState=R_.Compiling,Bp(m)||(this.readUniformLocationsFromLinkedProgram(),this.readAttributesFromLinkedProgram()))},d.prototype.readAttributesFromLinkedProgram=function(){for(var l,c=this.device.gl,u=c.getProgramParameter(this.gl_program,c.ACTIVE_ATTRIBUTES),m=dK(this.descriptor.vertex.glsl),E=tee(this.rawVertexGLSL,m),M=function(Ce){var Oe=c.getActiveAttrib(Z.gl_program,Ce),Ct=Oe.name,Bt=Oe.type,An=Oe.size,kn=c.getAttribLocation(Z.gl_program,Ct),Ir=(l=E.find(function(ui){return ui.name===Ct}))===null||l===void 0?void 0:l.location;kn>=0&&!CE(Ir)&&(Z.attributes[Ir]={name:Ct,location:kn,type:Bt,size:An})},Z=this,ne=0;ne1)for(var Z=0;Z1&&Z.device.EXT_texture_filter_anisotropic!==null&&(sm(m.minFilter===_1.BILINEAR&&m.magFilter===_1.BILINEAR&&m.mipmapFilter===ey.LINEAR),ne.samplerParameterf(xe,Z.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Oe)),Z.gl_sampler=xe}else Z.descriptor=m;return Z}return d.prototype.setTextureParameters=function(l,c,u){var m,E=this.device.gl,L=this.descriptor;this.isNPOT(c,u)?E.texParameteri(Ml.TEXTURE_2D,Ml.TEXTURE_MIN_FILTER,Ml.LINEAR):E.texParameteri(l,Ml.TEXTURE_MIN_FILTER,L_(L.minFilter,L.mipmapFilter)),E.texParameteri(Ml.TEXTURE_2D,Ml.TEXTURE_WRAP_S,fL(L.addressModeU)),E.texParameteri(Ml.TEXTURE_2D,Ml.TEXTURE_WRAP_T,fL(L.addressModeV)),E.texParameteri(l,Ml.TEXTURE_MAG_FILTER,L_(L.magFilter,ey.NO_MIP));var Z=(m=L.maxAnisotropy)!==null&&m!==void 0?m:1;Z>1&&this.device.EXT_texture_filter_anisotropic!==null&&(sm(L.minFilter===_1.BILINEAR&&L.magFilter===_1.BILINEAR&&L.mipmapFilter===ey.LINEAR),E.texParameteri(l,this.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Z))},d.prototype.destroy=function(){o.prototype.destroy.call(this),Bp(this.device.gl)&&this.device.gl.deleteSampler(I8(this))},d.prototype.isNPOT=function(l,c){return!m8(l)||!m8(c)},d}(G2),bK=function(){function o(){}return o.prototype.dispatchWorkgroups=function(d,l,c){},o.prototype.dispatchWorkgroupsIndirect=function(d,l){},o.prototype.setPipeline=function(d){},o.prototype.setBindings=function(d){},o.prototype.pushDebugGroup=function(d){},o.prototype.popDebugGroup=function(){},o.prototype.insertDebugMarker=function(d){},o}(),ZR=65536,xK=function(){function o(d,l){this.shaderDebug=!1,this.OES_vertex_array_object=null,this.ANGLE_instanced_arrays=null,this.OES_texture_float=null,this.OES_draw_buffers_indexed=null,this.WEBGL_draw_buffers=null,this.WEBGL_depth_texture=null,this.WEBGL_color_buffer_float=null,this.EXT_color_buffer_half_float=null,this.WEBGL_compressed_texture_s3tc=null,this.WEBGL_compressed_texture_s3tc_srgb=null,this.EXT_texture_compression_rgtc=null,this.EXT_texture_filter_anisotropic=null,this.KHR_parallel_shader_compile=null,this.EXT_texture_norm16=null,this.EXT_color_buffer_float=null,this.OES_texture_float_linear=null,this.OES_texture_half_float_linear=null,this.scTexture=null,this.scPlatformFramebuffer=null,this.currentActiveTexture=null,this.currentBoundVAO=null,this.currentProgram=null,this.resourceCreationTracker=null,this.resourceUniqueId=0,this.currentColorAttachments=[],this.currentColorAttachmentLevels=[],this.currentColorResolveTos=[],this.currentColorResolveToLevels=[],this.currentSampleCount=-1,this.currentIndexBufferByteOffset=null,this.currentMegaState=WA(Fb),this.currentSamplers=[],this.currentTextures=[],this.currentUniformBuffers=[],this.currentUniformBufferByteOffsets=[],this.currentUniformBufferByteSizes=[],this.currentScissorEnabled=!1,this.currentStencilRef=null,this.currentRenderPassDescriptor=null,this.currentRenderPassDescriptorStack=[],this.debugGroupStack=[],this.resolveColorAttachmentsChanged=!1,this.resolveDepthStencilAttachmentsChanged=!1,this.explicitBindingLocations=!1,this.separateSamplerTextures=!1,this.viewportOrigin=$A.LOWER_LEFT,this.clipSpaceNearZ=Z2.NEGATIVE_ONE,this.supportMRT=!1,this.inBlitRenderPass=!1,this.supportedSampleCounts=[],this.occlusionQueriesRecommended=!1,this.computeShadersSupported=!1,this.gl=d,this.contextAttributes=tS(d.getContextAttributes()),Bp(d)?(this.EXT_texture_norm16=d.getExtension("EXT_texture_norm16"),this.EXT_color_buffer_float=d.getExtension("EXT_color_buffer_float")):(this.OES_vertex_array_object=d.getExtension("OES_vertex_array_object"),this.ANGLE_instanced_arrays=d.getExtension("ANGLE_instanced_arrays"),this.OES_texture_float=d.getExtension("OES_texture_float"),this.WEBGL_draw_buffers=d.getExtension("WEBGL_draw_buffers"),this.WEBGL_depth_texture=d.getExtension("WEBGL_depth_texture"),this.WEBGL_color_buffer_float=d.getExtension("WEBGL_color_buffer_float"),this.EXT_color_buffer_half_float=d.getExtension("EXT_color_buffer_half_float"),d.getExtension("EXT_frag_depth"),d.getExtension("OES_element_index_uint"),d.getExtension("OES_standard_derivatives")),this.WEBGL_compressed_texture_s3tc=d.getExtension("WEBGL_compressed_texture_s3tc"),this.WEBGL_compressed_texture_s3tc_srgb=d.getExtension("WEBGL_compressed_texture_s3tc_srgb"),this.EXT_texture_compression_rgtc=d.getExtension("EXT_texture_compression_rgtc"),this.EXT_texture_filter_anisotropic=d.getExtension("EXT_texture_filter_anisotropic"),this.EXT_texture_norm16=d.getExtension("EXT_texture_norm16"),this.OES_texture_float_linear=d.getExtension("OES_texture_float_linear"),this.OES_texture_half_float_linear=d.getExtension("OES_texture_half_float_linear"),this.KHR_parallel_shader_compile=d.getExtension("KHR_parallel_shader_compile"),Bp(d)?(this.platformString="WebGL2",this.glslVersion="#version 300 es"):(this.platformString="WebGL1",this.glslVersion="#version 100"),this.scTexture=new gL({id:this.getNextUniqueId(),device:this,descriptor:{width:0,height:0,depthOrArrayLayers:1,dimension:Lm.TEXTURE_2D,mipLevelCount:1,usage:bx.RENDER_TARGET,format:this.contextAttributes.alpha===!1?qu.U8_RGB_RT:qu.U8_RGBA_RT},fake:!0}),this.scTexture.formatKind=q0.Float,this.scTexture.gl_target=null,this.scTexture.gl_texture=null,this.resolveColorReadFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.resolveColorDrawFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.resolveDepthStencilReadFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.resolveDepthStencilDrawFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.renderPassDrawFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.readbackFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.fallbackTexture2D=this.createFallbackTexture(Lm.TEXTURE_2D,q0.Float),this.fallbackTexture2DDepth=this.createFallbackTexture(Lm.TEXTURE_2D,q0.Depth),this.fallbackVertexBuffer=this.createBuffer({viewOrSize:1,usage:ov.VERTEX,hint:W2.STATIC}),Bp(d)&&(this.fallbackTexture2DArray=this.createFallbackTexture(Lm.TEXTURE_2D_ARRAY,q0.Float),this.fallbackTexture3D=this.createFallbackTexture(Lm.TEXTURE_3D,q0.Float),this.fallbackTextureCube=this.createFallbackTexture(Lm.TEXTURE_CUBE_MAP,q0.Float)),this.currentMegaState.depthCompare=b0.LESS,this.currentMegaState.depthWrite=!1,this.currentMegaState.attachmentsState[0].channelWriteMask=Gy.ALL,d.enable(d.DEPTH_TEST),d.enable(d.STENCIL_TEST),this.checkLimits(),l.shaderDebug&&(this.shaderDebug=!0),l.trackResources&&(this.resourceCreationTracker=new hI)}return o.prototype.destroy=function(){this.blitBindings&&this.blitBindings.destroy(),this.blitInputLayout&&this.blitInputLayout.destroy(),this.blitRenderPipeline&&this.blitRenderPipeline.destroy(),this.blitVertexBuffer&&this.blitVertexBuffer.destroy(),this.blitProgram&&this.blitProgram.destroy()},o.prototype.createFallbackTexture=function(d,l){var c=d===Lm.TEXTURE_CUBE_MAP?6:1,u=l===q0.Depth?qu.D32F:qu.U8_RGBA_NORM,m=this.createTexture({dimension:d,format:u,usage:bx.SAMPLED,width:1,height:1,depthOrArrayLayers:c,mipLevelCount:1});return l===q0.Float&&m.setImageData([new Uint8Array(4*c)]),oS(m)},o.prototype.getNextUniqueId=function(){return++this.resourceUniqueId},o.prototype.checkLimits=function(){var d=this.gl;if(this.maxVertexAttribs=d.getParameter(Ml.MAX_VERTEX_ATTRIBS),Bp(d)){this.uniformBufferMaxPageByteSize=Math.min(d.getParameter(Ml.MAX_UNIFORM_BLOCK_SIZE),ZR),this.uniformBufferWordAlignment=d.getParameter(d.UNIFORM_BUFFER_OFFSET_ALIGNMENT)/4;var l=d.getInternalformatParameter(d.RENDERBUFFER,d.DEPTH32F_STENCIL8,d.SAMPLES);this.supportedSampleCounts=l?(0,Xf.ev)([],(0,Xf.CR)(l),!1):[],this.occlusionQueriesRecommended=!0}else this.uniformBufferWordAlignment=64,this.uniformBufferMaxPageByteSize=ZR;this.uniformBufferMaxPageWordSize=this.uniformBufferMaxPageByteSize/4,this.supportedSampleCounts.includes(1)||this.supportedSampleCounts.push(1),this.supportedSampleCounts.sort(function(c,u){return c-u})},o.prototype.configureSwapChain=function(d,l,c){var u=this.scTexture;u.width=d,u.height=l,this.scPlatformFramebuffer=rK(c)},o.prototype.getDevice=function(){return this},o.prototype.getCanvas=function(){return this.gl.canvas},o.prototype.getOnscreenTexture=function(){return this.scTexture},o.prototype.beginFrame=function(){},o.prototype.endFrame=function(){},o.prototype.translateTextureInternalFormat=function(d,l){switch(l===void 0&&(l=!1),d){case qu.ALPHA:return Ml.ALPHA;case qu.U8_LUMINANCE:case qu.F16_LUMINANCE:case qu.F32_LUMINANCE:return Ml.LUMINANCE;case qu.F16_R:return Ml.R16F;case qu.F16_RG:return Ml.RG16F;case qu.F16_RGB:return Ml.RGB16F;case qu.F16_RGBA:return Ml.RGBA16F;case qu.F32_R:return Ml.R32F;case qu.F32_RG:return Ml.RG32F;case qu.F32_RGB:return Ml.RGB32F;case qu.F32_RGBA:return Bp(this.gl)?Ml.RGBA32F:l?this.WEBGL_color_buffer_float.RGBA32F_EXT:Ml.RGBA;case qu.U8_R_NORM:return Ml.R8;case qu.U8_RG_NORM:return Ml.RG8;case qu.U8_RGB_NORM:case qu.U8_RGB_RT:return Ml.RGB8;case qu.U8_RGB_SRGB:return Ml.SRGB8;case qu.U8_RGBA_NORM:case qu.U8_RGBA_RT:return Bp(this.gl)?Ml.RGBA8:l?Ml.RGBA4:Ml.RGBA;case qu.U8_RGBA:return Ml.RGBA;case qu.U8_RGBA_SRGB:case qu.U8_RGBA_RT_SRGB:return Ml.SRGB8_ALPHA8;case qu.U16_R:return Ml.R16UI;case qu.U16_R_NORM:return this.EXT_texture_norm16.R16_EXT;case qu.U16_RG_NORM:return this.EXT_texture_norm16.RG16_EXT;case qu.U16_RGBA_NORM:return this.EXT_texture_norm16.RGBA16_EXT;case qu.U16_RGBA_5551:return Ml.RGB5_A1;case qu.U16_RGB_565:return Ml.RGB565;case qu.U32_R:return Ml.R32UI;case qu.S8_RGBA_NORM:return Ml.RGBA8_SNORM;case qu.S8_RG_NORM:return Ml.RG8_SNORM;case qu.BC1:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT1_EXT;case qu.BC1_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;case qu.BC2:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT3_EXT;case qu.BC2_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;case qu.BC3:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT5_EXT;case qu.BC3_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;case qu.BC4_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_RGTC1_EXT;case qu.BC4_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_RGTC1_EXT;case qu.BC5_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_GREEN_RGTC2_EXT;case qu.BC5_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;case qu.D32F_S8:return Bp(this.gl)?Ml.DEPTH32F_STENCIL8:this.WEBGL_depth_texture?Ml.DEPTH_STENCIL:Ml.DEPTH_COMPONENT16;case qu.D24_S8:return Bp(this.gl)?Ml.DEPTH24_STENCIL8:this.WEBGL_depth_texture?Ml.DEPTH_STENCIL:Ml.DEPTH_COMPONENT16;case qu.D32F:return Bp(this.gl)?Ml.DEPTH_COMPONENT32F:this.WEBGL_depth_texture?Ml.DEPTH_COMPONENT:Ml.DEPTH_COMPONENT16;case qu.D24:return Bp(this.gl)?Ml.DEPTH_COMPONENT24:this.WEBGL_depth_texture?Ml.DEPTH_COMPONENT:Ml.DEPTH_COMPONENT16;default:throw new Error("whoops")}},o.prototype.translateTextureType=function(d){var l=xx(d);switch(l){case $d.U8:return Ml.UNSIGNED_BYTE;case $d.U16:return Ml.UNSIGNED_SHORT;case $d.U32:return Ml.UNSIGNED_INT;case $d.S8:return Ml.BYTE;case $d.F16:return Ml.HALF_FLOAT;case $d.F32:return Ml.FLOAT;case $d.U16_PACKED_5551:return Ml.UNSIGNED_SHORT_5_5_5_1;case $d.D32F:return Bp(this.gl)?Ml.FLOAT:this.WEBGL_depth_texture?Ml.UNSIGNED_INT:Ml.UNSIGNED_BYTE;case $d.D24:return Bp(this.gl)?Ml.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?Ml.UNSIGNED_SHORT:Ml.UNSIGNED_BYTE;case $d.D24S8:return Bp(this.gl)?Ml.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?Ml.UNSIGNED_INT_24_8_WEBGL:Ml.UNSIGNED_BYTE;case $d.D32FS8:return Ml.FLOAT_32_UNSIGNED_INT_24_8_REV;default:throw new Error("whoops")}},o.prototype.translateTextureFormat=function(d){if(T8(d)||d===qu.F32_LUMINANCE||d===qu.U8_LUMINANCE)return this.translateTextureInternalFormat(d);var l=Bp(this.gl)||!Bp(this.gl)&&!!this.WEBGL_depth_texture;switch(d){case qu.D24_S8:case qu.D32F_S8:return l?Ml.DEPTH_STENCIL:Ml.RGBA;case qu.D24:case qu.D32F:return l?Ml.DEPTH_COMPONENT:Ml.RGBA}var c=A8(d),u=DR(d);switch(u){case Fp.A:return Ml.ALPHA;case Fp.R:return c?Ml.RED_INTEGER:Ml.RED;case Fp.RG:return c?Ml.RG_INTEGER:Ml.RG;case Fp.RGB:return c?Ml.RGB_INTEGER:Ml.RGB;case Fp.RGBA:return Ml.RGBA}},o.prototype.setActiveTexture=function(d){this.currentActiveTexture!==d&&(this.gl.activeTexture(d),this.currentActiveTexture=d)},o.prototype.bindVAO=function(d){this.currentBoundVAO!==d&&(Bp(this.gl)?this.gl.bindVertexArray(d):this.OES_vertex_array_object.bindVertexArrayOES(d),this.currentBoundVAO=d)},o.prototype.programCompiled=function(d){sm(d.compileState!==M_.NeedsCompile),d.compileState===M_.Compiling&&(d.compileState=M_.NeedsBind,this.shaderDebug&&this.checkProgramCompilationForErrors(d))},o.prototype.useProgram=function(d){this.currentProgram!==d&&(this.programCompiled(d),this.gl.useProgram(d.gl_program),this.currentProgram=d)},o.prototype.ensureResourceExists=function(d){if(d===null){var l=this.gl.getError();throw new Error("Created resource is null; GL error encountered: ".concat(l))}else return d},o.prototype.createBuffer=function(d){return new WR({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createTexture=function(d){return new gL({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createSampler=function(d){return new sS({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createRenderTarget=function(d){return new mL({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createRenderTargetFromTexture=function(d){var l=d,c=l.format,u=l.width,m=l.height,E=l.mipLevelCount;return sm(E===1),this.createRenderTarget({format:c,width:u,height:m,sampleCount:1,texture:d})},o.prototype.createProgram=function(d){var l,c,u,m=(l=d.vertex)===null||l===void 0?void 0:l.glsl;return!((c=d.vertex)===null||c===void 0)&&c.glsl&&(d.vertex.glsl=iS(this.queryVendorInfo(),"vert",d.vertex.glsl)),!((u=d.fragment)===null||u===void 0)&&u.glsl&&(d.fragment.glsl=iS(this.queryVendorInfo(),"frag",d.fragment.glsl)),this.createProgramSimple(d,m)},o.prototype.createProgramSimple=function(d,l){var c=new L8({id:this.getNextUniqueId(),device:this,descriptor:d},l);return c},o.prototype.createBindings=function(d){return new gK({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createInputLayout=function(d){return new RU({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createRenderPipeline=function(d){return new yK({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createComputePass=function(){return new bK},o.prototype.createComputePipeline=function(d){return new _K({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createReadback=function(){return new vK({id:this.getNextUniqueId(),device:this})},o.prototype.createQueryPool=function(d,l){return new KA({id:this.getNextUniqueId(),device:this,descriptor:{type:d,elemCount:l}})},o.prototype.formatRenderPassDescriptor=function(d){var l,c,u,m,E,L,Z=d.colorAttachment;d.depthClearValue=(l=d.depthClearValue)!==null&&l!==void 0?l:"load",d.stencilClearValue=(c=d.stencilClearValue)!==null&&c!==void 0?c:"load";for(var ne=0;ne=0;l--)this.debugGroupStack[l].drawCallCount+=d},o.prototype.debugGroupStatisticsBufferUpload=function(d){d===void 0&&(d=1);for(var l=this.debugGroupStack.length-1;l>=0;l--)this.debugGroupStack[l].bufferUploadCount+=d},o.prototype.debugGroupStatisticsTextureBind=function(d){d===void 0&&(d=1);for(var l=this.debugGroupStack.length-1;l>=0;l--)this.debugGroupStack[l].textureBindCount+=d},o.prototype.debugGroupStatisticsTriangles=function(d){for(var l=this.debugGroupStack.length-1;l>=0;l--)this.debugGroupStack[l].triangleCount+=d},o.prototype.reportShaderError=function(d,l){var c=this.gl,u=c.getShaderParameter(d,c.COMPILE_STATUS);if(!u){console.error(sK(l));var m=c.getExtension("WEBGL_debug_shaders");m&&console.error(m.getTranslatedShaderSource(d)),console.error(c.getShaderInfoLog(d))}return u},o.prototype.checkProgramCompilationForErrors=function(d){var l=this.gl,c=d.gl_program;if(!l.getProgramParameter(c,l.LINK_STATUS)){var u=d.descriptor;if(!this.reportShaderError(d.gl_shader_vert,u.vertex.glsl)||!this.reportShaderError(d.gl_shader_frag,u.fragment.glsl))return;console.error(l.getProgramInfoLog(d.gl_program))}},o.prototype.bindFramebufferAttachment=function(d,l,c,u){var m=this.gl;if(CE(c))m.framebufferRenderbuffer(d,l,m.RENDERBUFFER,null);else if(c.type===y0.RenderTarget)c.gl_renderbuffer!==null?m.framebufferRenderbuffer(d,l,m.RENDERBUFFER,c.gl_renderbuffer):c.texture!==null&&m.framebufferTexture2D(d,l,Ml.TEXTURE_2D,oS(c.texture),u);else if(c.type===y0.Texture){var E=oS(c);c.dimension===Lm.TEXTURE_2D?m.framebufferTexture2D(d,l,Ml.TEXTURE_2D,E,u):Bp(m)&&(c.dimension,Lm.TEXTURE_2D_ARRAY)}},o.prototype.bindFramebufferDepthStencilAttachment=function(d,l){var c=this.gl,u=CE(l)?Uf.Depth|Uf.Stencil:VA(l.format),m=!!(u&Uf.Depth),E=!!(u&Uf.Stencil);if(m&&E){var L=Bp(this.gl)||!Bp(this.gl)&&!!this.WEBGL_depth_texture;L?this.bindFramebufferAttachment(d,c.DEPTH_STENCIL_ATTACHMENT,l,0):this.bindFramebufferAttachment(d,c.DEPTH_ATTACHMENT,l,0)}else m?(this.bindFramebufferAttachment(d,c.DEPTH_ATTACHMENT,l,0),this.bindFramebufferAttachment(d,c.STENCIL_ATTACHMENT,null,0)):E&&(this.bindFramebufferAttachment(d,c.STENCIL_ATTACHMENT,l,0),this.bindFramebufferAttachment(d,c.DEPTH_ATTACHMENT,null,0))},o.prototype.validateCurrentAttachments=function(){for(var d=-1,l=-1,c=-1,u=0;u=Z.numUniformBuffers),sm(E.length>=Z.numSamplers);for(var ne=0;ne1&&Z.device.EXT_texture_filter_anisotropic!==null&&(sm(m.minFilter===_1.BILINEAR&&m.magFilter===_1.BILINEAR&&m.mipmapFilter===ey.LINEAR),ne.samplerParameterf(Ce,Z.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Oe)),Z.gl_sampler=Ce}else Z.descriptor=m;return Z}return d.prototype.setTextureParameters=function(l,c,u){var m,E=this.device.gl,M=this.descriptor;this.isNPOT(c,u)?E.texParameteri(El.TEXTURE_2D,El.TEXTURE_MIN_FILTER,El.LINEAR):E.texParameteri(l,El.TEXTURE_MIN_FILTER,M_(M.minFilter,M.mipmapFilter)),E.texParameteri(El.TEXTURE_2D,El.TEXTURE_WRAP_S,cL(M.addressModeU)),E.texParameteri(El.TEXTURE_2D,El.TEXTURE_WRAP_T,cL(M.addressModeV)),E.texParameteri(l,El.TEXTURE_MAG_FILTER,M_(M.magFilter,ey.NO_MIP));var Z=(m=M.maxAnisotropy)!==null&&m!==void 0?m:1;Z>1&&this.device.EXT_texture_filter_anisotropic!==null&&(sm(M.minFilter===_1.BILINEAR&&M.magFilter===_1.BILINEAR&&M.mipmapFilter===ey.LINEAR),E.texParameteri(l,this.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Z))},d.prototype.destroy=function(){o.prototype.destroy.call(this),Bp(this.device.gl)&&this.device.gl.deleteSampler(R8(this))},d.prototype.isNPOT=function(l,c){return!b8(l)||!b8(c)},d}(H2),yK=function(){function o(){}return o.prototype.dispatchWorkgroups=function(d,l,c){},o.prototype.dispatchWorkgroupsIndirect=function(d,l){},o.prototype.setPipeline=function(d){},o.prototype.setBindings=function(d){},o.prototype.pushDebugGroup=function(d){},o.prototype.popDebugGroup=function(){},o.prototype.insertDebugMarker=function(d){},o}(),jR=65536,_K=/uniform(?:\s+)(\w+)(?:\s?){([^]*?)}/g,gI=function(){function o(d,l){this.shaderDebug=!1,this.OES_vertex_array_object=null,this.ANGLE_instanced_arrays=null,this.OES_texture_float=null,this.OES_draw_buffers_indexed=null,this.WEBGL_draw_buffers=null,this.WEBGL_depth_texture=null,this.WEBGL_color_buffer_float=null,this.EXT_color_buffer_half_float=null,this.WEBGL_compressed_texture_s3tc=null,this.WEBGL_compressed_texture_s3tc_srgb=null,this.EXT_texture_compression_rgtc=null,this.EXT_texture_filter_anisotropic=null,this.KHR_parallel_shader_compile=null,this.EXT_texture_norm16=null,this.EXT_color_buffer_float=null,this.OES_texture_float_linear=null,this.OES_texture_half_float_linear=null,this.scTexture=null,this.scPlatformFramebuffer=null,this.currentActiveTexture=null,this.currentBoundVAO=null,this.currentProgram=null,this.resourceCreationTracker=null,this.resourceUniqueId=0,this.currentColorAttachments=[],this.currentColorAttachmentLevels=[],this.currentColorResolveTos=[],this.currentColorResolveToLevels=[],this.currentSampleCount=-1,this.currentIndexBufferByteOffset=null,this.currentMegaState=GA(Bb),this.currentSamplers=[],this.currentTextures=[],this.currentUniformBuffers=[],this.currentUniformBufferByteOffsets=[],this.currentUniformBufferByteSizes=[],this.currentScissorEnabled=!1,this.currentStencilRef=null,this.currentRenderPassDescriptor=null,this.currentRenderPassDescriptorStack=[],this.debugGroupStack=[],this.resolveColorAttachmentsChanged=!1,this.resolveDepthStencilAttachmentsChanged=!1,this.explicitBindingLocations=!1,this.separateSamplerTextures=!1,this.viewportOrigin=WA.LOWER_LEFT,this.clipSpaceNearZ=W2.NEGATIVE_ONE,this.supportMRT=!1,this.inBlitRenderPass=!1,this.supportedSampleCounts=[],this.occlusionQueriesRecommended=!1,this.computeShadersSupported=!1,this.gl=d,this.contextAttributes=rS(d.getContextAttributes()),Bp(d)?(this.EXT_texture_norm16=d.getExtension("EXT_texture_norm16"),this.EXT_color_buffer_float=d.getExtension("EXT_color_buffer_float")):(this.OES_vertex_array_object=d.getExtension("OES_vertex_array_object"),this.ANGLE_instanced_arrays=d.getExtension("ANGLE_instanced_arrays"),this.OES_texture_float=d.getExtension("OES_texture_float"),this.WEBGL_draw_buffers=d.getExtension("WEBGL_draw_buffers"),this.WEBGL_depth_texture=d.getExtension("WEBGL_depth_texture"),this.WEBGL_color_buffer_float=d.getExtension("WEBGL_color_buffer_float"),this.EXT_color_buffer_half_float=d.getExtension("EXT_color_buffer_half_float"),d.getExtension("EXT_frag_depth"),d.getExtension("OES_element_index_uint"),d.getExtension("OES_standard_derivatives")),this.WEBGL_compressed_texture_s3tc=d.getExtension("WEBGL_compressed_texture_s3tc"),this.WEBGL_compressed_texture_s3tc_srgb=d.getExtension("WEBGL_compressed_texture_s3tc_srgb"),this.EXT_texture_compression_rgtc=d.getExtension("EXT_texture_compression_rgtc"),this.EXT_texture_filter_anisotropic=d.getExtension("EXT_texture_filter_anisotropic"),this.EXT_texture_norm16=d.getExtension("EXT_texture_norm16"),this.OES_texture_float_linear=d.getExtension("OES_texture_float_linear"),this.OES_texture_half_float_linear=d.getExtension("OES_texture_half_float_linear"),this.KHR_parallel_shader_compile=d.getExtension("KHR_parallel_shader_compile"),Bp(d)?(this.platformString="WebGL2",this.glslVersion="#version 300 es"):(this.platformString="WebGL1",this.glslVersion="#version 100"),this.scTexture=new dL({id:this.getNextUniqueId(),device:this,descriptor:{width:0,height:0,depthOrArrayLayers:1,dimension:Rm.TEXTURE_2D,mipLevelCount:1,usage:xx.RENDER_TARGET,format:this.contextAttributes.alpha===!1?Vu.U8_RGB_RT:Vu.U8_RGBA_RT},fake:!0}),this.scTexture.formatKind=Y0.Float,this.scTexture.gl_target=null,this.scTexture.gl_texture=null,this.resolveColorReadFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.resolveColorDrawFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.resolveDepthStencilReadFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.resolveDepthStencilDrawFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.renderPassDrawFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.readbackFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.fallbackTexture2D=this.createFallbackTexture(Rm.TEXTURE_2D,Y0.Float),this.fallbackTexture2DDepth=this.createFallbackTexture(Rm.TEXTURE_2D,Y0.Depth),this.fallbackVertexBuffer=this.createBuffer({viewOrSize:1,usage:rv.VERTEX,hint:j2.STATIC}),Bp(d)&&(this.fallbackTexture2DArray=this.createFallbackTexture(Rm.TEXTURE_2D_ARRAY,Y0.Float),this.fallbackTexture3D=this.createFallbackTexture(Rm.TEXTURE_3D,Y0.Float),this.fallbackTextureCube=this.createFallbackTexture(Rm.TEXTURE_CUBE_MAP,Y0.Float)),this.currentMegaState.depthCompare=b0.LESS,this.currentMegaState.depthWrite=!1,this.currentMegaState.attachmentsState[0].channelWriteMask=Gy.ALL,d.enable(d.DEPTH_TEST),d.enable(d.STENCIL_TEST),this.checkLimits(),l.shaderDebug&&(this.shaderDebug=!0),l.trackResources&&(this.resourceCreationTracker=new pI)}return o.prototype.destroy=function(){this.blitBindings&&this.blitBindings.destroy(),this.blitInputLayout&&this.blitInputLayout.destroy(),this.blitRenderPipeline&&this.blitRenderPipeline.destroy(),this.blitVertexBuffer&&this.blitVertexBuffer.destroy(),this.blitProgram&&this.blitProgram.destroy()},o.prototype.createFallbackTexture=function(d,l){var c=d===Rm.TEXTURE_CUBE_MAP?6:1,u=l===Y0.Depth?Vu.D32F:Vu.U8_RGBA_NORM,m=this.createTexture({dimension:d,format:u,usage:xx.SAMPLED,width:1,height:1,depthOrArrayLayers:c,mipLevelCount:1});return l===Y0.Float&&m.setImageData([new Uint8Array(4*c)]),aS(m)},o.prototype.getNextUniqueId=function(){return++this.resourceUniqueId},o.prototype.checkLimits=function(){var d=this.gl;if(this.maxVertexAttribs=d.getParameter(El.MAX_VERTEX_ATTRIBS),Bp(d)){this.uniformBufferMaxPageByteSize=Math.min(d.getParameter(El.MAX_UNIFORM_BLOCK_SIZE),jR),this.uniformBufferWordAlignment=d.getParameter(d.UNIFORM_BUFFER_OFFSET_ALIGNMENT)/4;var l=d.getInternalformatParameter(d.RENDERBUFFER,d.DEPTH32F_STENCIL8,d.SAMPLES);this.supportedSampleCounts=l?(0,Yf.ev)([],(0,Yf.CR)(l),!1):[],this.occlusionQueriesRecommended=!0}else this.uniformBufferWordAlignment=64,this.uniformBufferMaxPageByteSize=jR;this.uniformBufferMaxPageWordSize=this.uniformBufferMaxPageByteSize/4,this.supportedSampleCounts.includes(1)||this.supportedSampleCounts.push(1),this.supportedSampleCounts.sort(function(c,u){return c-u})},o.prototype.configureSwapChain=function(d,l,c){var u=this.scTexture;u.width=d,u.height=l,this.scPlatformFramebuffer=tK(c)},o.prototype.getDevice=function(){return this},o.prototype.getCanvas=function(){return this.gl.canvas},o.prototype.getOnscreenTexture=function(){return this.scTexture},o.prototype.beginFrame=function(){},o.prototype.endFrame=function(){},o.prototype.translateTextureInternalFormat=function(d,l){switch(l===void 0&&(l=!1),d){case Vu.ALPHA:return El.ALPHA;case Vu.U8_LUMINANCE:case Vu.F16_LUMINANCE:case Vu.F32_LUMINANCE:return El.LUMINANCE;case Vu.F16_R:return El.R16F;case Vu.F16_RG:return El.RG16F;case Vu.F16_RGB:return El.RGB16F;case Vu.F16_RGBA:return El.RGBA16F;case Vu.F32_R:return El.R32F;case Vu.F32_RG:return El.RG32F;case Vu.F32_RGB:return El.RGB32F;case Vu.F32_RGBA:return Bp(this.gl)?El.RGBA32F:l?this.WEBGL_color_buffer_float.RGBA32F_EXT:El.RGBA;case Vu.U8_R_NORM:return El.R8;case Vu.U8_RG_NORM:return El.RG8;case Vu.U8_RGB_NORM:case Vu.U8_RGB_RT:return El.RGB8;case Vu.U8_RGB_SRGB:return El.SRGB8;case Vu.U8_RGBA_NORM:case Vu.U8_RGBA_RT:return Bp(this.gl)?El.RGBA8:l?El.RGBA4:El.RGBA;case Vu.U8_RGBA:return El.RGBA;case Vu.U8_RGBA_SRGB:case Vu.U8_RGBA_RT_SRGB:return El.SRGB8_ALPHA8;case Vu.U16_R:return El.R16UI;case Vu.U16_R_NORM:return this.EXT_texture_norm16.R16_EXT;case Vu.U16_RG_NORM:return this.EXT_texture_norm16.RG16_EXT;case Vu.U16_RGBA_NORM:return this.EXT_texture_norm16.RGBA16_EXT;case Vu.U16_RGBA_5551:return El.RGB5_A1;case Vu.U16_RGB_565:return El.RGB565;case Vu.U32_R:return El.R32UI;case Vu.S8_RGBA_NORM:return El.RGBA8_SNORM;case Vu.S8_RG_NORM:return El.RG8_SNORM;case Vu.BC1:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT1_EXT;case Vu.BC1_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;case Vu.BC2:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT3_EXT;case Vu.BC2_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;case Vu.BC3:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT5_EXT;case Vu.BC3_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;case Vu.BC4_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_RGTC1_EXT;case Vu.BC4_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_RGTC1_EXT;case Vu.BC5_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_GREEN_RGTC2_EXT;case Vu.BC5_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;case Vu.D32F_S8:return Bp(this.gl)?El.DEPTH32F_STENCIL8:this.WEBGL_depth_texture?El.DEPTH_STENCIL:El.DEPTH_COMPONENT16;case Vu.D24_S8:return Bp(this.gl)?El.DEPTH24_STENCIL8:this.WEBGL_depth_texture?El.DEPTH_STENCIL:El.DEPTH_COMPONENT16;case Vu.D32F:return Bp(this.gl)?El.DEPTH_COMPONENT32F:this.WEBGL_depth_texture?El.DEPTH_COMPONENT:El.DEPTH_COMPONENT16;case Vu.D24:return Bp(this.gl)?El.DEPTH_COMPONENT24:this.WEBGL_depth_texture?El.DEPTH_COMPONENT:El.DEPTH_COMPONENT16;default:throw new Error("whoops")}},o.prototype.translateTextureType=function(d){var l=Cx(d);switch(l){case $h.U8:return El.UNSIGNED_BYTE;case $h.U16:return El.UNSIGNED_SHORT;case $h.U32:return El.UNSIGNED_INT;case $h.S8:return El.BYTE;case $h.F16:return El.HALF_FLOAT;case $h.F32:return El.FLOAT;case $h.U16_PACKED_5551:return El.UNSIGNED_SHORT_5_5_5_1;case $h.D32F:return Bp(this.gl)?El.FLOAT:this.WEBGL_depth_texture?El.UNSIGNED_INT:El.UNSIGNED_BYTE;case $h.D24:return Bp(this.gl)?El.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?El.UNSIGNED_SHORT:El.UNSIGNED_BYTE;case $h.D24S8:return Bp(this.gl)?El.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?El.UNSIGNED_INT_24_8_WEBGL:El.UNSIGNED_BYTE;case $h.D32FS8:return El.FLOAT_32_UNSIGNED_INT_24_8_REV;default:throw new Error("whoops")}},o.prototype.translateInternalTextureFormat=function(d){switch(d){case Vu.F32_R:return El.R32F;case Vu.F32_RG:return El.RG32F;case Vu.F32_RGB:return El.RGB32F;case Vu.F32_RGBA:return El.RGBA32F;case Vu.F16_R:return El.R16F;case Vu.F16_RG:return El.RG16F;case Vu.F16_RGB:return El.RGB16F;case Vu.F16_RGBA:return El.RGBA16F}return this.translateTextureFormat(d)},o.prototype.translateTextureFormat=function(d){if(P8(d)||d===Vu.F32_LUMINANCE||d===Vu.U8_LUMINANCE)return this.translateTextureInternalFormat(d);var l=Bp(this.gl)||!Bp(this.gl)&&!!this.WEBGL_depth_texture;switch(d){case Vu.D24_S8:case Vu.D32F_S8:return l?El.DEPTH_STENCIL:El.RGBA;case Vu.D24:case Vu.D32F:return l?El.DEPTH_COMPONENT:El.RGBA}var c=L8(d),u=TR(d);switch(u){case Up.A:return El.ALPHA;case Up.R:return c?El.RED_INTEGER:El.RED;case Up.RG:return c?El.RG_INTEGER:El.RG;case Up.RGB:return c?El.RGB_INTEGER:El.RGB;case Up.RGBA:return El.RGBA}},o.prototype.setActiveTexture=function(d){this.currentActiveTexture!==d&&(this.gl.activeTexture(d),this.currentActiveTexture=d)},o.prototype.bindVAO=function(d){this.currentBoundVAO!==d&&(Bp(this.gl)?this.gl.bindVertexArray(d):this.OES_vertex_array_object.bindVertexArrayOES(d),this.currentBoundVAO=d)},o.prototype.programCompiled=function(d){sm(d.compileState!==R_.NeedsCompile),d.compileState===R_.Compiling&&(d.compileState=R_.NeedsBind,this.shaderDebug&&this.checkProgramCompilationForErrors(d))},o.prototype.useProgram=function(d){this.currentProgram!==d&&(this.programCompiled(d),this.gl.useProgram(d.gl_program),this.currentProgram=d)},o.prototype.ensureResourceExists=function(d){if(d===null){var l=this.gl.getError();throw new Error("Created resource is null; GL error encountered: ".concat(l))}else return d},o.prototype.createBuffer=function(d){return new VR({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createTexture=function(d){return new dL({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createSampler=function(d){return new lS({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createRenderTarget=function(d){return new fL({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createRenderTargetFromTexture=function(d){var l=d,c=l.format,u=l.width,m=l.height,E=l.mipLevelCount;return sm(E===1),this.createRenderTarget({format:c,width:u,height:m,sampleCount:1,texture:d})},o.prototype.createProgram=function(d){var l,c,u,m=(l=d.vertex)===null||l===void 0?void 0:l.glsl;return!((c=d.vertex)===null||c===void 0)&&c.glsl&&(d.vertex.glsl=sS(this.queryVendorInfo(),"vert",d.vertex.glsl)),!((u=d.fragment)===null||u===void 0)&&u.glsl&&(d.fragment.glsl=sS(this.queryVendorInfo(),"frag",d.fragment.glsl)),this.createProgramSimple(d,m)},o.prototype.createProgramSimple=function(d,l){var c=new O8({id:this.getNextUniqueId(),device:this,descriptor:d},l);return c},o.prototype.createBindings=function(d){return new fK({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createInputLayout=function(d){return new RU({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createRenderPipeline=function(d){return new mK({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createComputePass=function(){return new yK},o.prototype.createComputePipeline=function(d){return new vK({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createReadback=function(){return new gK({id:this.getNextUniqueId(),device:this})},o.prototype.createQueryPool=function(d,l){return new qA({id:this.getNextUniqueId(),device:this,descriptor:{type:d,elemCount:l}})},o.prototype.formatRenderPassDescriptor=function(d){var l,c,u,m,E,M,Z=d.colorAttachment;d.depthClearValue=(l=d.depthClearValue)!==null&&l!==void 0?l:"load",d.stencilClearValue=(c=d.stencilClearValue)!==null&&c!==void 0?c:"load";for(var ne=0;ne=0;l--)this.debugGroupStack[l].drawCallCount+=d},o.prototype.debugGroupStatisticsBufferUpload=function(d){d===void 0&&(d=1);for(var l=this.debugGroupStack.length-1;l>=0;l--)this.debugGroupStack[l].bufferUploadCount+=d},o.prototype.debugGroupStatisticsTextureBind=function(d){d===void 0&&(d=1);for(var l=this.debugGroupStack.length-1;l>=0;l--)this.debugGroupStack[l].textureBindCount+=d},o.prototype.debugGroupStatisticsTriangles=function(d){for(var l=this.debugGroupStack.length-1;l>=0;l--)this.debugGroupStack[l].triangleCount+=d},o.prototype.reportShaderError=function(d,l){var c=this.gl,u=c.getShaderParameter(d,c.COMPILE_STATUS);if(!u){console.error(iK(l));var m=c.getExtension("WEBGL_debug_shaders");m&&console.error(m.getTranslatedShaderSource(d)),console.error(c.getShaderInfoLog(d))}return u},o.prototype.checkProgramCompilationForErrors=function(d){var l=this.gl,c=d.gl_program;if(!l.getProgramParameter(c,l.LINK_STATUS)){var u=d.descriptor;if(!this.reportShaderError(d.gl_shader_vert,u.vertex.glsl)||!this.reportShaderError(d.gl_shader_frag,u.fragment.glsl))return;console.error(l.getProgramInfoLog(d.gl_program))}},o.prototype.bindFramebufferAttachment=function(d,l,c,u){var m=this.gl;if(CE(c))m.framebufferRenderbuffer(d,l,m.RENDERBUFFER,null);else if(c.type===v0.RenderTarget)c.gl_renderbuffer!==null?m.framebufferRenderbuffer(d,l,m.RENDERBUFFER,c.gl_renderbuffer):c.texture!==null&&m.framebufferTexture2D(d,l,El.TEXTURE_2D,aS(c.texture),u);else if(c.type===v0.Texture){var E=aS(c);c.dimension===Rm.TEXTURE_2D?m.framebufferTexture2D(d,l,El.TEXTURE_2D,E,u):Bp(m)&&(c.dimension,Rm.TEXTURE_2D_ARRAY)}},o.prototype.bindFramebufferDepthStencilAttachment=function(d,l){var c=this.gl,u=CE(l)?$f.Depth|$f.Stencil:ZA(l.format),m=!!(u&$f.Depth),E=!!(u&$f.Stencil);if(m&&E){var M=Bp(this.gl)||!Bp(this.gl)&&!!this.WEBGL_depth_texture;M?this.bindFramebufferAttachment(d,c.DEPTH_STENCIL_ATTACHMENT,l,0):this.bindFramebufferAttachment(d,c.DEPTH_ATTACHMENT,l,0)}else m?(this.bindFramebufferAttachment(d,c.DEPTH_ATTACHMENT,l,0),this.bindFramebufferAttachment(d,c.STENCIL_ATTACHMENT,null,0)):E&&(this.bindFramebufferAttachment(d,c.STENCIL_ATTACHMENT,l,0),this.bindFramebufferAttachment(d,c.DEPTH_ATTACHMENT,null,0))},o.prototype.validateCurrentAttachments=function(){for(var d=-1,l=-1,c=-1,u=0;u=Z.numUniformBuffers),sm(E.length>=Z.numSamplers);for(var ne=0;ne{throw Error("TextDecoder not available")}};typeof TextDecoder!="undefined"&&kU.decode();let Sx=null;function XA(){return(Sx===null||Sx.byteLength===0)&&(Sx=new Uint8Array(qv.memory.buffer)),Sx}function pI(o,d){return o=o>>>0,kU.decode(XA().subarray(o,o+d))}const aS=new Array(128).fill(void 0);aS.push(void 0,null,!0,!1);let gI=aS.length;function vL(o){gI===aS.length&&aS.push(aS.length+1);const d=gI;return gI=aS[d],aS[d]=o,d}function YA(o){return aS[o]}function yL(o){o<132||(aS[o]=gI,gI=o)}function M8(o){const d=YA(o);return yL(o),d}let O1=0;const HR=typeof TextEncoder!="undefined"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},OU=typeof HR.encodeInto=="function"?function(o,d){return HR.encodeInto(o,d)}:function(o,d){const l=HR.encode(o);return d.set(l),{read:o.length,written:l.length}};function GR(o,d,l){if(l===void 0){const L=HR.encode(o),Z=d(L.length,1)>>>0;return XA().subarray(Z,Z+L.length).set(L),O1=L.length,Z}let c=o.length,u=d(c,1)>>>0;const m=XA();let E=0;for(;E127)break;m[u+E]=L}if(E!==c){E!==0&&(o=o.slice(E)),u=l(u,c,c=E+o.length*3,1)>>>0;const L=XA().subarray(u+E,u+c),Z=OU(o,L);E+=Z.written}return O1=E,u}let mI=null;function _L(){return(mI===null||mI.byteLength===0)&&(mI=new Int32Array(qv.memory.buffer)),mI}function wK(o,d,l){let c,u;try{const L=qv.__wbindgen_add_to_stack_pointer(-16),Z=GR(o,qv.__wbindgen_malloc,qv.__wbindgen_realloc),ne=O1,xe=GR(d,qv.__wbindgen_malloc,qv.__wbindgen_realloc),Oe=O1;qv.glsl_compile(L,Z,ne,xe,Oe,l);var m=_L()[L/4+0],E=_L()[L/4+1];return c=m,u=E,pI(m,E)}finally{qv.__wbindgen_add_to_stack_pointer(16),qv.__wbindgen_free(c,u,1)}}class Kw{static __wrap(d){d=d>>>0;const l=Object.create(Kw.prototype);return l.__wbg_ptr=d,l}__destroy_into_raw(){const d=this.__wbg_ptr;return this.__wbg_ptr=0,d}free(){const d=this.__destroy_into_raw();qv.__wbg_wgslcomposer_free(d)}constructor(){const d=qv.wgslcomposer_new();return Kw.__wrap(d)}wgsl_compile(d){let l,c;try{const E=qv.__wbindgen_add_to_stack_pointer(-16),L=GR(d,qv.__wbindgen_malloc,qv.__wbindgen_realloc),Z=O1;qv.wgslcomposer_wgsl_compile(E,this.__wbg_ptr,L,Z);var u=_L()[E/4+0],m=_L()[E/4+1];return l=u,c=m,pI(u,m)}finally{qv.__wbindgen_add_to_stack_pointer(16),qv.__wbindgen_free(l,c,1)}}}function qA(o,d){return Tg(this,null,function*(){if(typeof Response=="function"&&o instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return yield WebAssembly.instantiateStreaming(o,d)}catch(c){if(o.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",c);else throw c}const l=yield o.arrayBuffer();return yield WebAssembly.instantiate(l,d)}else{const l=yield WebAssembly.instantiate(o,d);return l instanceof WebAssembly.Instance?{instance:l,module:o}:l}})}function CK(){const o={};return o.wbg={},o.wbg.__wbindgen_string_new=function(d,l){const c=pI(d,l);return vL(c)},o.wbg.__wbindgen_object_drop_ref=function(d){M8(d)},o.wbg.__wbg_log_1d3ae0273d8f4f8a=function(d){console.log(YA(d))},o.wbg.__wbg_log_576ca876af0d4a77=function(d,l){console.log(YA(d),YA(l))},o.wbg.__wbindgen_throw=function(d,l){throw new Error(pI(d,l))},o}function SK(o,d){return qv=o.exports,lS.__wbindgen_wasm_module=d,mI=null,Sx=null,qv}function lS(o){return Tg(this,null,function*(){if(qv!==void 0)return qv;const d=CK();(typeof o=="string"||typeof Request=="function"&&o instanceof Request||typeof URL=="function"&&o instanceof URL)&&(o=fetch(o));const{instance:l,module:c}=yield qA(yield o,d);return SK(l,c)})}var Bb;(function(o){o[o.COPY_SRC=1]="COPY_SRC",o[o.COPY_DST=2]="COPY_DST",o[o.TEXTURE_BINDING=4]="TEXTURE_BINDING",o[o.STORAGE_BINDING=8]="STORAGE_BINDING",o[o.STORAGE=8]="STORAGE",o[o.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"})(Bb||(Bb={}));var vI;(function(o){o[o.READ=1]="READ",o[o.WRITE=2]="WRITE"})(vI||(vI={}));function R8(o){var d=0;return o&bx.SAMPLED&&(d|=Bb.TEXTURE_BINDING|Bb.COPY_DST),o&bx.RENDER_TARGET&&(d|=Bb.RENDER_ATTACHMENT|Bb.TEXTURE_BINDING|Bb.COPY_SRC|Bb.COPY_DST),d}function yI(o){if(o===qu.U8_R_NORM)return"r8unorm";if(o===qu.U8_RG_NORM)return"rg8unorm";if(o===qu.U8_RGBA_RT)return"bgra8unorm";if(o===qu.U8_RGBA_RT_SRGB)return"bgra8unorm-srgb";if(o===qu.U8_RGBA_NORM)return"rgba8unorm";if(o===qu.U8_RGBA_SRGB)return"rgba8unorm-srgb";if(o===qu.S8_R_NORM)return"r8snorm";if(o===qu.S8_RG_NORM)return"rg8snorm";if(o===qu.S8_RGBA_NORM)return"rgba8snorm";if(o===qu.U32_R)return"r32uint";if(o===qu.F16_RGBA)return"rgba16float";if(o===qu.F32_RGBA)return"rgba32float";if(o===qu.D24)return"depth24plus";if(o===qu.D24_S8)return"depth24plus-stencil8";if(o===qu.D32F)return"depth32float";if(o===qu.D32F_S8)return"depth32float-stencil8";if(o===qu.BC1)return"bc1-rgba-unorm";if(o===qu.BC1_SRGB)return"bc1-rgba-unorm-srgb";if(o===qu.BC2)return"bc2-rgba-unorm";if(o===qu.BC2_SRGB)return"bc2-rgba-unorm-srgb";if(o===qu.BC3)return"bc3-rgba-unorm";if(o===qu.BC3_SRGB)return"bc3-rgba-unorm-srgb";if(o===qu.BC4_SNORM)return"bc4-r-snorm";if(o===qu.BC4_UNORM)return"bc4-r-unorm";if(o===qu.BC5_SNORM)return"bc5-rg-snorm";if(o===qu.BC5_UNORM)return"bc5-rg-unorm";throw"whoops"}function KR(o){if(o===Lm.TEXTURE_2D)return"2d";if(o===Lm.TEXTURE_CUBE_MAP)return"2d";if(o===Lm.TEXTURE_2D_ARRAY)return"2d";if(o===Lm.TEXTURE_3D)return"3d";throw new Error("whoops")}function XR(o){if(o===Lm.TEXTURE_2D)return"2d";if(o===Lm.TEXTURE_CUBE_MAP)return"cube";if(o===Lm.TEXTURE_2D_ARRAY)return"2d-array";if(o===Lm.TEXTURE_3D)return"3d";throw new Error("whoops")}function YR(o){var d=0;return o&ov.INDEX&&(d|=GPUBufferUsage.INDEX),o&ov.VERTEX&&(d|=GPUBufferUsage.VERTEX),o&ov.UNIFORM&&(d|=GPUBufferUsage.UNIFORM),o&ov.STORAGE&&(d|=GPUBufferUsage.STORAGE),o&ov.COPY_SRC&&(d|=GPUBufferUsage.COPY_SRC),d|=GPUBufferUsage.COPY_DST,d}function _I(o){if(o===Hy.CLAMP_TO_EDGE)return"clamp-to-edge";if(o===Hy.REPEAT)return"repeat";if(o===Hy.MIRRORED_REPEAT)return"mirror-repeat";throw new Error("whoops")}function U0(o){if(o===_1.BILINEAR)return"linear";if(o===_1.POINT)return"nearest";throw new Error("whoops")}function IE(o){if(o===ey.LINEAR)return"linear";if(o===ey.NEAREST)return"nearest";if(o===ey.NO_MIP)return"nearest";throw new Error("whoops")}function bI(o){var d=o;return d.gpuBuffer}function bL(o){var d=o;return d.gpuSampler}function qR(o){var d=o;return d.querySet}function JR(o){if(o===AR.OcclusionConservative)return"occlusion";throw new Error("whoops")}function EK(o){switch(o){case Xv.TRIANGLES:return"triangle-list";case Xv.POINTS:return"point-list";case Xv.TRIANGLE_STRIP:return"triangle-strip";case Xv.LINES:return"line-list";case Xv.LINE_STRIP:return"line-strip";default:throw new Error("Unknown primitive topology mode")}}function NU(o){if(o===Nb.NONE)return"none";if(o===Nb.FRONT)return"front";if(o===Nb.BACK)return"back";throw new Error("whoops")}function TK(o){if(o===SE.CCW)return"ccw";if(o===SE.CW)return"cw";throw new Error("whoops")}function AK(o,d){return{topology:EK(o),cullMode:NU(d.cullMode),frontFace:TK(d.frontFace)}}function k8(o){if(o===Sm.ZERO)return"zero";if(o===Sm.ONE)return"one";if(o===Sm.SRC)return"src";if(o===Sm.ONE_MINUS_SRC)return"one-minus-src";if(o===Sm.DST)return"dst";if(o===Sm.ONE_MINUS_DST)return"one-minus-dst";if(o===Sm.SRC_ALPHA)return"src-alpha";if(o===Sm.ONE_MINUS_SRC_ALPHA)return"one-minus-src-alpha";if(o===Sm.DST_ALPHA)return"dst-alpha";if(o===Sm.ONE_MINUS_DST_ALPHA)return"one-minus-dst-alpha";if(o===Sm.CONST)return"constant";if(o===Sm.ONE_MINUS_CONSTANT)return"one-minus-constant";if(o===Sm.SRC_ALPHA_SATURATE)return"src-alpha-saturated";throw new Error("whoops")}function FU(o){if(o===Dy.ADD)return"add";if(o===Dy.SUBSTRACT)return"subtract";if(o===Dy.REVERSE_SUBSTRACT)return"reverse-subtract";if(o===Dy.MIN)return"min";if(o===Dy.MAX)return"max";throw new Error("whoops")}function BU(o){return{operation:FU(o.blendMode),srcFactor:k8(o.blendSrcFactor),dstFactor:k8(o.blendDstFactor)}}function zU(o){return o.blendMode===Dy.ADD&&o.blendSrcFactor===Sm.ONE&&o.blendDstFactor===Sm.ZERO}function DK(o){if(!(zU(o.rgbBlendState)&&zU(o.alphaBlendState)))return{color:BU(o.rgbBlendState),alpha:BU(o.alphaBlendState)}}function IK(o,d){return{format:yI(d),blend:DK(o),writeMask:o.channelWriteMask}}function PK(o,d){return d.attachmentsState.map(function(l,c){return IK(l,o[c])})}function QR(o){if(o===b0.NEVER)return"never";if(o===b0.LESS)return"less";if(o===b0.EQUAL)return"equal";if(o===b0.LEQUAL)return"less-equal";if(o===b0.GREATER)return"greater";if(o===b0.NOTEQUAL)return"not-equal";if(o===b0.GEQUAL)return"greater-equal";if(o===b0.ALWAYS)return"always";throw new Error("whoops")}function xI(o){if(o===P_.KEEP)return"keep";if(o===P_.REPLACE)return"replace";if(o===P_.ZERO)return"zero";if(o===P_.DECREMENT_CLAMP)return"decrement-clamp";if(o===P_.DECREMENT_WRAP)return"decrement-wrap";if(o===P_.INCREMENT_CLAMP)return"increment-clamp";if(o===P_.INCREMENT_WRAP)return"increment-wrap";if(o===P_.INVERT)return"invert";throw new Error("whoops")}function LK(o,d){if(!CE(o))return{format:yI(o),depthWriteEnabled:!!d.depthWrite,depthCompare:QR(d.depthCompare),depthBias:d.polygonOffset?1:0,depthBiasSlopeScale:d.polygonOffset?1:0,stencilFront:{compare:QR(d.stencilFront.compare),passOp:xI(d.stencilFront.passOp),failOp:xI(d.stencilFront.failOp),depthFailOp:xI(d.stencilFront.depthFailOp)},stencilBack:{compare:QR(d.stencilBack.compare),passOp:xI(d.stencilBack.passOp),failOp:xI(d.stencilBack.failOp),depthFailOp:xI(d.stencilBack.depthFailOp)},stencilReadMask:1,stencilWriteMask:1}}function MK(o){if(o!==null){if(o===qu.U16_R)return"uint16";if(o===qu.U32_R)return"uint32";throw new Error("whoops")}}function RK(o){if(o===eS.VERTEX)return"vertex";if(o===eS.INSTANCE)return"instance";throw new Error("whoops")}function kK(o){if(o===qu.U8_R)return"uint8x2";if(o===qu.U8_RG)return"uint8x2";if(o===qu.U8_RGB)return"uint8x4";if(o===qu.U8_RGBA)return"uint8x4";if(o===qu.U8_RG_NORM)return"unorm8x2";if(o===qu.U8_RGBA_NORM)return"unorm8x4";if(o===qu.S8_RGB_NORM)return"snorm8x4";if(o===qu.S8_RGBA_NORM)return"snorm8x4";if(o===qu.U16_RG_NORM)return"unorm16x2";if(o===qu.U16_RGBA_NORM)return"unorm16x4";if(o===qu.S16_RG_NORM)return"snorm16x2";if(o===qu.S16_RGBA_NORM)return"snorm16x4";if(o===qu.S16_RG)return"uint16x2";if(o===qu.F16_RG)return"float16x2";if(o===qu.F16_RGBA)return"float16x4";if(o===qu.F32_R)return"float32";if(o===qu.F32_RG)return"float32x2";if(o===qu.F32_RGB)return"float32x3";if(o===qu.F32_RGBA)return"float32x4";throw"whoops"}function OK(o){var d=xx(o);switch(d){case $d.BC1:case $d.BC2:case $d.BC3:case $d.BC4_SNORM:case $d.BC4_UNORM:case $d.BC5_SNORM:case $d.BC5_UNORM:return!0;default:return!1}}function NK(o){var d=xx(o);switch(d){case $d.BC1:case $d.BC2:case $d.BC3:case $d.BC4_SNORM:case $d.BC4_UNORM:case $d.BC5_SNORM:case $d.BC5_UNORM:return 4;default:return 1}}function UU(o,d,l,c){switch(l===void 0&&(l=!1),o){case qu.S8_R:case qu.S8_R_NORM:case qu.S8_RG_NORM:case qu.S8_RGB_NORM:case qu.S8_RGBA_NORM:{var u=d instanceof ArrayBuffer?new Int8Array(d):new Int8Array(d);return c&&u.set(new Int8Array(c)),u}case qu.U8_R:case qu.U8_R_NORM:case qu.U8_RG:case qu.U8_RG_NORM:case qu.U8_RGB:case qu.U8_RGB_NORM:case qu.U8_RGB_SRGB:case qu.U8_RGBA:case qu.U8_RGBA_NORM:case qu.U8_RGBA_SRGB:{var m=d instanceof ArrayBuffer?new Uint8Array(d):new Uint8Array(d);return c&&m.set(new Uint8Array(c)),m}case qu.S16_R:case qu.S16_RG:case qu.S16_RG_NORM:case qu.S16_RGB_NORM:case qu.S16_RGBA:case qu.S16_RGBA_NORM:{var E=d instanceof ArrayBuffer?new Int16Array(d):new Int16Array(l?d/2:d);return c&&E.set(new Int16Array(c)),E}case qu.U16_R:case qu.U16_RGB:case qu.U16_RGBA_5551:case qu.U16_RGBA_NORM:case qu.U16_RG_NORM:case qu.U16_R_NORM:{var L=d instanceof ArrayBuffer?new Uint16Array(d):new Uint16Array(l?d/2:d);return c&&L.set(new Uint16Array(c)),L}case qu.S32_R:{var Z=d instanceof ArrayBuffer?new Int32Array(d):new Int32Array(l?d/4:d);return c&&Z.set(new Int32Array(c)),Z}case qu.U32_R:case qu.U32_RG:{var ne=d instanceof ArrayBuffer?new Uint32Array(d):new Uint32Array(l?d/4:d);return c&&ne.set(new Uint32Array(c)),ne}case qu.F32_R:case qu.F32_RG:case qu.F32_RGB:case qu.F32_RGBA:{var xe=d instanceof ArrayBuffer?new Float32Array(d):new Float32Array(l?d/4:d);return c&&xe.set(new Float32Array(c)),xe}}var Oe=d instanceof ArrayBuffer?new Uint8Array(d):new Uint8Array(d);return c&&Oe.set(new Uint8Array(c)),Oe}function FK(o){var d=(o&32768)>>15,l=(o&31744)>>10,c=o&1023;return l===0?(d?-1:1)*Math.pow(2,-14)*(c/Math.pow(2,10)):l==31?c?NaN:(d?-1:1)*(1/0):(d?-1:1)*Math.pow(2,l-15)*(1+c/Math.pow(2,10))}var Xw=function(o){(0,Xf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=o.call(this)||this;return m.id=c,m.device=u,m}return d.prototype.destroy=function(){},d}(UA),BK=function(o){(0,Xf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;E.type=y0.Bindings;var L=m.pipeline;sm(!!L);var Z=m.uniformBufferBindings,ne=m.storageBufferBindings,xe=m.samplerBindings;E.numUniformBuffers=(Z==null?void 0:Z.length)||0;var Oe=[[],[]],wt=0;if(ne&&ne.length)for(var Bt=0;Bt0}).map(function(ku,ju){return E.device.device.createBindGroup({layout:L.getBindGroupLayout(ju),entries:ku})}),E}return d}(Xw),$U=function(o){(0,Xf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;E.type=y0.Buffer;var L=m.usage,Z=m.viewOrSize,ne=!!(L&ov.MAP_READ);E.usage=YR(L),ne&&(E.usage=ov.MAP_READ|ov.COPY_DST);var xe=!wE(Z);if(E.view=wE(Z)?null:Z,E.size=wE(Z)?LR(Z,4):LR(Z.byteLength,4),wE(Z))E.gpuBuffer=E.device.device.createBuffer({usage:E.usage,size:E.size,mappedAtCreation:ne?xe:!1});else{E.gpuBuffer=E.device.device.createBuffer({usage:E.usage,size:E.size,mappedAtCreation:!0});var Oe=Z&&Z.constructor||Float32Array;new Oe(E.gpuBuffer.getMappedRange()).set(Z),E.gpuBuffer.unmap()}return E}return d.prototype.setSubData=function(l,c,u,m){u===void 0&&(u=0),m===void 0&&(m=0);var E=this.gpuBuffer;m=m||c.byteLength,m=Math.min(m,this.size-l);var L=c.byteOffset+u,Z=L+m,ne=m+3&-4;if(ne!==m){var xe=new Uint8Array(c.buffer.slice(L,Z));c=new Uint8Array(ne),c.set(xe),u=0,L=0,Z=ne,m=ne}for(var Oe=1024*1024*15,wt=0;Z-(L+wt)>Oe;)this.device.device.queue.writeBuffer(E,l+wt,c.buffer,L+wt,Oe),wt+=Oe;this.device.device.queue.writeBuffer(E,l+wt,c.buffer,L+wt,m-wt)},d.prototype.destroy=function(){o.prototype.destroy.call(this),this.gpuBuffer.destroy()},d}(Xw),Yw=function(){function o(){this.commandEncoder=null,this.gpuComputePassEncoder=null}return o.prototype.dispatchWorkgroups=function(d,l,c){this.gpuComputePassEncoder.dispatchWorkgroups(d,l,c)},o.prototype.dispatchWorkgroupsIndirect=function(d,l){this.gpuComputePassEncoder.dispatchWorkgroupsIndirect(d.gpuBuffer,l)},o.prototype.finish=function(){return this.gpuComputePassEncoder.end(),this.gpuComputePassEncoder=null,this.commandEncoder.finish()},o.prototype.beginComputePass=function(){sm(this.gpuComputePassEncoder===null),this.gpuComputePassEncoder=this.commandEncoder.beginComputePass(this.gpuComputePassDescriptor)},o.prototype.setPipeline=function(d){var l=d,c=tS(l.gpuComputePipeline);this.gpuComputePassEncoder.setPipeline(c)},o.prototype.setBindings=function(d){var l=d;this.gpuComputePassEncoder.setBindGroup(0,l.gpuBindGroup[0])},o.prototype.pushDebugGroup=function(d){this.gpuComputePassEncoder.pushDebugGroup(d)},o.prototype.popDebugGroup=function(){this.gpuComputePassEncoder.popDebugGroup()},o.prototype.insertDebugMarker=function(d){this.gpuComputePassEncoder.insertDebugMarker(d)},o}(),iee=function(o){(0,Xf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;E.type=y0.ComputePipeline,E.gpuComputePipeline=null,E.descriptor=m;var L=m.program,Z=L.computeStage;if(Z===null)return E;var ne={layout:"auto",compute:(0,Xf.pi)({},Z)};return E.gpuComputePipeline=E.device.device.createComputePipeline(ne),E.name!==void 0&&(E.gpuComputePipeline.label=E.name),E}return d.prototype.getBindGroupLayout=function(l){return this.gpuComputePipeline.getBindGroupLayout(l)},d}(Xw),zK=function(o){(0,Xf.ZT)(d,o);function d(l){var c,u,m,E,L=l.id,Z=l.device,ne=l.descriptor,xe=o.call(this,{id:L,device:Z})||this;xe.type=y0.InputLayout;var Oe=[];try{for(var wt=(0,Xf.XA)(ne.vertexBufferDescriptors),Bt=wt.next();!Bt.done;Bt=wt.next()){var wn=Bt.value,Rn=wn.arrayStride,Pr=wn.stepMode,ui=wn.attributes;Oe.push({arrayStride:Rn,stepMode:RK(Pr),attributes:[]});try{for(var oo=(m=void 0,(0,Xf.XA)(ui)),xo=oo.next();!xo.done;xo=oo.next()){var Ds=xo.value,aa=Ds.shaderLocation,fa=Ds.format,Za=Ds.offset;Oe[Oe.length-1].attributes.push({shaderLocation:aa,format:kK(fa),offset:Za})}}catch(gl){m={error:gl}}finally{try{xo&&!xo.done&&(E=oo.return)&&E.call(oo)}finally{if(m)throw m.error}}}}catch(gl){c={error:gl}}finally{try{Bt&&!Bt.done&&(u=wt.return)&&u.call(wt)}finally{if(c)throw c.error}}return xe.indexFormat=MK(ne.indexBufferFormat),xe.buffers=Oe,xe}return d}(Xw),wI=function(o){(0,Xf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;return E.type=y0.Program,E.vertexStage=null,E.fragmentStage=null,E.computeStage=null,E.descriptor=m,m.vertex&&(E.vertexStage=E.createShaderStage(m.vertex,"vertex")),m.fragment&&(E.fragmentStage=E.createShaderStage(m.fragment,"fragment")),m.compute&&(E.computeStage=E.createShaderStage(m.compute,"compute")),E}return d.prototype.setUniformsLegacy=function(l){},d.prototype.createShaderStage=function(l,c){var u,m,E=l.glsl,L=l.wgsl,Z=l.entryPoint,ne=!1,xe=L;if(!xe)try{xe=this.device.glsl_compile(E,c,ne)}catch(Pr){throw console.error(Pr,E),new Error("whoops")}var Oe=function(Pr){if(!xe.includes(Pr))return"continue";xe=xe.replace("var T_".concat(Pr,": texture_2d;"),"var T_".concat(Pr,": texture_depth_2d;")),xe=xe.replace(new RegExp("textureSample\\(T_".concat(Pr,"(.*)\\);$"),"gm"),function(ui,oo){return"vec4(textureSample(T_".concat(Pr).concat(oo,"), 0.0, 0.0, 0.0);")})};try{for(var wt=(0,Xf.XA)(["u_TextureFramebufferDepth"]),Bt=wt.next();!Bt.done;Bt=wt.next()){var wn=Bt.value;Oe(wn)}}catch(Pr){u={error:Pr}}finally{try{Bt&&!Bt.done&&(m=wt.return)&&m.call(wt)}finally{if(u)throw u.error}}var Rn=this.device.device.createShaderModule({code:xe});return{module:Rn,entryPoint:Z||"main"}},d}(Xw),UK=function(o){(0,Xf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;E.type=y0.QueryPool;var L=m.elemCount,Z=m.type;return E.querySet=E.device.device.createQuerySet({type:JR(Z),count:L}),E.resolveBuffer=E.device.device.createBuffer({size:L*8,usage:GPUBufferUsage.QUERY_RESOLVE|GPUBufferUsage.COPY_SRC}),E.cpuBuffer=E.device.device.createBuffer({size:L*8,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ}),E.results=null,E}return d.prototype.queryResultOcclusion=function(l){return this.results===null?null:this.results[l]!==BigInt(0)},d.prototype.destroy=function(){o.prototype.destroy.call(this),this.querySet.destroy(),this.resolveBuffer.destroy(),this.cpuBuffer.destroy()},d}(Xw),VU=function(o){(0,Xf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=o.call(this,{id:c,device:u})||this;return m.type=y0.Readback,m}return d.prototype.readTexture=function(l,c,u,m,E,L,Z,ne){return Z===void 0&&(Z=0),(0,Xf.mG)(this,void 0,void 0,function(){var xe,Oe,wt,Bt,wn,Rn,Pr,ui;return(0,Xf.Jh)(this,function(oo){return xe=l,Oe=0,wt=this.getBlockInformationFromFormat(xe.gpuTextureformat),Bt=Math.ceil(m/wt.width)*wt.length,wn=Math.ceil(Bt/256)*256,Rn=wn*E,Pr=this.device.createBuffer({usage:ov.STORAGE|ov.MAP_READ|ov.COPY_DST,hint:W2.STATIC,viewOrSize:Rn}),ui=this.device.device.createCommandEncoder(),ui.copyTextureToBuffer({texture:xe.gpuTexture,mipLevel:0,origin:{x:c,y:u,z:Math.max(Oe,0)}},{buffer:Pr.gpuBuffer,offset:0,bytesPerRow:wn},{width:m,height:E,depthOrArrayLayers:1}),this.device.device.queue.submit([ui.finish()]),[2,this.readBuffer(Pr,0,L.byteLength===Rn?L:null,Z,Rn,xe.format)]})})},d.prototype.readTextureSync=function(l,c,u,m,E,L,Z,ne){throw new Error("ERROR_MSG_METHOD_NOT_IMPLEMENTED")},d.prototype.readBuffer=function(l,c,u,m,E,L,Z,ne){var xe=this;c===void 0&&(c=0),u===void 0&&(u=null),E===void 0&&(E=0),L===void 0&&(L=qu.U8_RGB),Z===void 0&&(Z=!1);var Oe=l,wt=E||Oe.size,Bt=u||Oe.view,wn=Bt&&Bt.constructor&&Bt.constructor.BYTES_PER_ELEMENT||sL(L),Rn=Oe;if(!(Oe.usage&ov.MAP_READ&&Oe.usage&ov.COPY_DST)){var Pr=this.device.device.createCommandEncoder();Rn=this.device.createBuffer({usage:ov.STORAGE|ov.MAP_READ|ov.COPY_DST,hint:W2.STATIC,viewOrSize:wt}),Pr.copyBufferToBuffer(Oe.gpuBuffer,c,Rn.gpuBuffer,0,wt),this.device.device.queue.submit([Pr.finish()])}return new Promise(function(ui,oo){Rn.gpuBuffer.mapAsync(vI.READ,c,wt).then(function(){var xo=Rn.gpuBuffer.getMappedRange(c,wt),Ds=Bt;if(Z)Ds===null?Ds=UU(L,wt,!0,xo):Ds=UU(L,Ds.buffer,void 0,xo);else if(Ds===null)switch(wn){case 1:Ds=new Uint8Array(wt),Ds.set(new Uint8Array(xo));break;case 2:Ds=xe.getHalfFloatAsFloatRGBAArrayBuffer(wt/2,xo);break;case 4:Ds=new Float32Array(wt/4),Ds.set(new Float32Array(xo));break}else switch(wn){case 1:Ds=new Uint8Array(Ds.buffer),Ds.set(new Uint8Array(xo));break;case 2:Ds=xe.getHalfFloatAsFloatRGBAArrayBuffer(wt/2,xo,Bt);break;case 4:var aa=Bt&&Bt.constructor||Float32Array;Ds=new aa(Ds.buffer),Ds.set(new aa(xo));break}Rn.gpuBuffer.unmap(),ui(Ds)},function(xo){return oo(xo)})})},d.prototype.getHalfFloatAsFloatRGBAArrayBuffer=function(l,c,u){u||(u=new Float32Array(l));for(var m=new Uint16Array(c);l--;)u[l]=FK(m[l]);return u},d.prototype.getBlockInformationFromFormat=function(l){switch(l){case"r8unorm":case"r8snorm":case"r8uint":case"r8sint":return{width:1,height:1,length:1};case"r16uint":case"r16sint":case"r16float":case"rg8unorm":case"rg8snorm":case"rg8uint":case"rg8sint":return{width:1,height:1,length:2};case"r32uint":case"r32sint":case"r32float":case"rg16uint":case"rg16sint":case"rg16float":case"rgba8unorm":case"rgba8unorm-srgb":case"rgba8snorm":case"rgba8uint":case"rgba8sint":case"bgra8unorm":case"bgra8unorm-srgb":case"rgb9e5ufloat":case"rgb10a2unorm":case"rg11b10ufloat":return{width:1,height:1,length:4};case"rg32uint":case"rg32sint":case"rg32float":case"rgba16uint":case"rgba16sint":case"rgba16float":return{width:1,height:1,length:8};case"rgba32uint":case"rgba32sint":case"rgba32float":return{width:1,height:1,length:16};case"stencil8":throw new Error("No fixed size for Stencil8 format!");case"depth16unorm":return{width:1,height:1,length:2};case"depth24plus":throw new Error("No fixed size for Depth24Plus format!");case"depth24plus-stencil8":throw new Error("No fixed size for Depth24PlusStencil8 format!");case"depth32float":return{width:1,height:1,length:4};case"depth32float-stencil8":return{width:1,height:1,length:5};case"bc7-rgba-unorm":case"bc7-rgba-unorm-srgb":case"bc6h-rgb-ufloat":case"bc6h-rgb-float":case"bc2-rgba-unorm":case"bc2-rgba-unorm-srgb":case"bc3-rgba-unorm":case"bc3-rgba-unorm-srgb":case"bc5-rg-unorm":case"bc5-rg-snorm":return{width:4,height:4,length:16};case"bc4-r-unorm":case"bc4-r-snorm":case"bc1-rgba-unorm":case"bc1-rgba-unorm-srgb":return{width:4,height:4,length:8};default:return{width:1,height:1,length:4}}},d}(Xw),jU=function(){function o(d){this.device=d,this.commandEncoder=null,this.gpuRenderPassEncoder=null,this.gfxColorAttachment=[],this.gfxColorAttachmentLevel=[],this.gfxColorResolveTo=[],this.gfxColorResolveToLevel=[],this.gfxDepthStencilAttachment=null,this.gfxDepthStencilResolveTo=null,this.gpuColorAttachments=[],this.gpuDepthStencilAttachment={view:null,depthLoadOp:"load",depthStoreOp:"store",stencilLoadOp:"load",stencilStoreOp:"store"},this.gpuRenderPassDescriptor={colorAttachments:this.gpuColorAttachments,depthStencilAttachment:this.gpuDepthStencilAttachment}}return o.prototype.getTextureView=function(d,l){return sm(l1?wt.resolveTarget=this.getTextureView(Oe,this.gfxColorResolveToLevel[ne]):wt.storeOp="store")}else{this.gpuColorAttachments.length=ne,this.gfxColorAttachment.length=ne,this.gfxColorResolveTo.length=ne;break}}if(this.gfxDepthStencilAttachment=d.depthStencilAttachment,this.gfxDepthStencilResolveTo=d.depthStencilResolveTo,d.depthStencilAttachment){var wn=d.depthStencilAttachment,wt=this.gpuDepthStencilAttachment;wt.view=wn.gpuTextureView;var Rn=!!(VA(wn.format)&Uf.Depth);Rn?(d.depthClearValue==="load"?wt.depthLoadOp="load":(wt.depthLoadOp="clear",wt.depthClearValue=d.depthClearValue),d.depthStencilStore||this.gfxDepthStencilResolveTo!==null?wt.depthStoreOp="store":wt.depthStoreOp="discard"):(wt.depthLoadOp=void 0,wt.depthStoreOp=void 0);var Pr=!!(VA(wn.format)&Uf.Stencil);Pr?(d.stencilClearValue==="load"?wt.stencilLoadOp="load":(wt.stencilLoadOp="clear",wt.stencilClearValue=d.stencilClearValue),d.depthStencilStore||this.gfxDepthStencilResolveTo!==null?wt.stencilStoreOp="store":wt.stencilStoreOp="discard"):(wt.stencilLoadOp=void 0,wt.stencilStoreOp=void 0),this.gpuRenderPassDescriptor.depthStencilAttachment=this.gpuDepthStencilAttachment}else this.gpuRenderPassDescriptor.depthStencilAttachment=void 0;this.gpuRenderPassDescriptor.occlusionQuerySet=CE(d.occlusionQueryPool)?void 0:qR(d.occlusionQueryPool)},o.prototype.beginRenderPass=function(d){sm(this.gpuRenderPassEncoder===null),this.setRenderPassDescriptor(d),this.gpuRenderPassEncoder=this.commandEncoder.beginRenderPass(this.gpuRenderPassDescriptor)},o.prototype.flipY=function(d,l){var c=this.device.swapChainHeight;return c-d-l},o.prototype.setViewport=function(d,l,c,u,m,E){m===void 0&&(m=0),E===void 0&&(E=1),this.gpuRenderPassEncoder.setViewport(d,this.flipY(l,u),c,u,m,E)},o.prototype.setScissorRect=function(d,l,c,u){this.gpuRenderPassEncoder.setScissorRect(d,this.flipY(l,u),c,u)},o.prototype.setPipeline=function(d){var l=d,c=tS(l.gpuRenderPipeline);this.gpuRenderPassEncoder.setPipeline(c)},o.prototype.setVertexInput=function(d,l,c){if(d!==null){var u=d;c!==null&&this.gpuRenderPassEncoder.setIndexBuffer(bI(c.buffer),tS(u.indexFormat),c.offset);for(var m=0;m1||this.copyAttachment(this.gfxDepthStencilResolveTo,0,this.gfxDepthStencilAttachment,0)),this.commandEncoder.finish()},o.prototype.copyAttachment=function(d,l,c,u){sm(c.sampleCount===1);var m={texture:c.gpuTexture,mipLevel:u},E={texture:d.gpuTexture,mipLevel:l};sm(c.width>>>u===d.width>>>l),sm(c.height>>>u===d.height>>>l),sm(!!(c.usage&Bb.COPY_SRC)),sm(!!(d.usage&Bb.COPY_DST)),this.commandEncoder.copyTextureToTexture(m,E,[d.width,d.height,1])},o}(),O8=function(o){(0,Xf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;return E.type=y0.RenderPipeline,E.isCreatingAsync=!1,E.gpuRenderPipeline=null,E.descriptor=m,E.device.createRenderPipelineInternal(E,!1),E}return d.prototype.getBindGroupLayout=function(l){return this.gpuRenderPipeline.getBindGroupLayout(l)},d}(Xw),WU=function(o){(0,Xf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E,L,Z=o.call(this,{id:c,device:u})||this;Z.type=y0.Sampler;var ne=m.lodMinClamp,xe=m.mipmapFilter===ey.NO_MIP?m.lodMinClamp:m.lodMaxClamp,Oe=(E=m.maxAnisotropy)!==null&&E!==void 0?E:1;return Oe>1&&sm(m.minFilter===_1.BILINEAR&&m.magFilter===_1.BILINEAR&&m.mipmapFilter===ey.LINEAR),Z.gpuSampler=Z.device.device.createSampler({addressModeU:_I(m.addressModeU),addressModeV:_I(m.addressModeV),addressModeW:_I((L=m.addressModeW)!==null&&L!==void 0?L:m.addressModeU),lodMinClamp:ne,lodMaxClamp:xe,minFilter:U0(m.minFilter),magFilter:U0(m.magFilter),mipmapFilter:IE(m.mipmapFilter),compare:m.compareFunction!==void 0?QR(m.compareFunction):void 0,maxAnisotropy:Oe}),Z}return d}(Xw),xL=function(o){(0,Xf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=l.skipCreate,L=l.sampleCount,Z=o.call(this,{id:c,device:u})||this;Z.type=y0.Texture;var ne=m.format,xe=m.dimension,Oe=m.width,wt=m.height,Bt=m.depthOrArrayLayers,wn=m.mipLevelCount,Rn=m.usage;return Z.device.createTextureShared({format:ne,dimension:xe!=null?xe:Lm.TEXTURE_2D,width:Oe,height:wt,depthOrArrayLayers:Bt!=null?Bt:1,mipLevelCount:wn!=null?wn:1,usage:Rn,sampleCount:L!=null?L:1},Z,E),Z}return d.prototype.textureFromImageBitmapOrCanvas=function(l,c,u){for(var m=c[0].width,E=c[0].height,L={size:{width:m,height:E,depthOrArrayLayers:u},format:"rgba8unorm",usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST|GPUTextureUsage.RENDER_ATTACHMENT},Z=l.createTexture(L),ne=0;ne>>2,uniformBufferWordAlignment:this.device.limits.minUniformBufferOffsetAlignment>>>2,supportedSampleCounts:[1],occlusionQueriesRecommended:!0,computeShadersSupported:!0}},o.prototype.queryTextureFormatSupported=function(d,l,c){if(OK(d)){if(!this.featureTextureCompressionBC)return!1;var u=NK(d);return l%u!==0||c%u!==0?!1:this.featureTextureCompressionBC}switch(d){case qu.U16_RGBA_NORM:return!1;case qu.F32_RGBA:return!1}return!0},o.prototype.queryPlatformAvailable=function(){return!0},o.prototype.queryVendorInfo=function(){return this},o.prototype.queryRenderPass=function(d){var l=d;return l.descriptor},o.prototype.queryRenderTarget=function(d){var l=d;return l},o.prototype.setResourceName=function(d,l){if(d.name=l,d.type===y0.Buffer){var c=d;c.gpuBuffer.label=l}else if(d.type===y0.Texture){var c=d;c.gpuTexture.label=l,c.gpuTextureView.label=l}else if(d.type===y0.RenderTarget){var c=d;c.gpuTexture.label=l,c.gpuTextureView.label=l}else if(d.type===y0.Sampler){var c=d;c.gpuSampler.label=l}else if(d.type===y0.RenderPipeline){var c=d;c.gpuRenderPipeline!==null&&(c.gpuRenderPipeline.label=l)}},o.prototype.setResourceLeakCheck=function(d,l){},o.prototype.checkForLeaks=function(){},o.prototype.programPatched=function(d){},o.prototype.pipelineQueryReady=function(d){var l=d;return l.gpuRenderPipeline!==null},o.prototype.pipelineForceReady=function(d){var l=d;this.createRenderPipelineInternal(l,!1)},o}(),CI=function(){function o(d){this.pluginOptions=d}return o.prototype.createSwapChain=function(d){return(0,Xf.mG)(this,void 0,void 0,function(){var l,c,u,m,E,L,Z,ne;return(0,Xf.Jh)(this,function(xe){switch(xe.label){case 0:if(globalThis.navigator.gpu===void 0)return[2,null];l=null,xe.label=1;case 1:return xe.trys.push([1,3,,4]),c=this.pluginOptions.xrCompatible,[4,globalThis.navigator.gpu.requestAdapter({xrCompatible:c})];case 2:return l=xe.sent(),[3,4];case 3:return u=xe.sent(),console.log(u),[3,4];case 4:return l===null?[2,null]:(m=["depth32float-stencil8","texture-compression-bc"],E=m.filter(function(Oe){return l.features.has(Oe)}),[4,l.requestDevice({requiredFeatures:E})]);case 5:if(L=xe.sent(),L&&(Z=this.pluginOptions.onContextLost,L.lost.then(function(){Z&&Z()})),L===null)return[2,null];if(ne=d.getContext("webgpu"),!ne)return[2,null];xe.label=6;case 6:return xe.trys.push([6,8,,9]),[4,lS(this.pluginOptions.shaderCompilerPath)];case 7:return xe.sent(),[3,9];case 8:return xe.sent(),[3,9];case 9:return[2,new ek(l,L,d,ne,wK,Kw&&new Kw)]}})})},o}(),ZU=fs.isPlainObject,qw=fs.isTypedArray,JA=function(){function o(d,l){(0,Ct.Z)(this,o),(0,Tn.Z)(this,"destroyed",!1),(0,Tn.Z)(this,"uniforms",{}),this.reGl=d;var c=l.vs,u=l.fs,m=l.attributes,E=l.uniforms,L=l.primitive,Z=l.count,ne=l.elements,xe=l.depth,Oe=l.cull,wt=l.instances,Bt={platformString:"WebGL1",glslVersion:"#version 100",explicitBindingLocations:!1,separateSamplerTextures:!1,viewportOrigin:$A.LOWER_LEFT,clipSpaceNearZ:Z2.NEGATIVE_ONE,supportMRT:!1},wn={};this.options=l,E&&(this.uniforms=this.extractUniforms(E),Object.keys(E).forEach(function(ui){wn[ui]=d.prop(ui)}));var Rn={};Object.keys(m).forEach(function(ui){Rn[ui]=m[ui].get()});var Pr={attributes:Rn,frag:Mt(iS(Bt,"frag",u,null,!1)),uniforms:wn,vert:Mt(iS(Bt,"vert",c,null,!1)),colorMask:d.prop("colorMask"),lineWidth:1,blend:{enable:d.prop("blend.enable"),func:d.prop("blend.func"),equation:d.prop("blend.equation"),color:d.prop("blend.color")},stencil:{enable:d.prop("stencil.enable"),mask:d.prop("stencil.mask"),func:d.prop("stencil.func"),opFront:d.prop("stencil.opFront"),opBack:d.prop("stencil.opBack")},primitive:GG[L===void 0?Di.TRIANGLES:L]};wt&&(Pr.instances=wt),Z?Pr.count=Z:ne&&(Pr.elements=ne.get()),this.initDepthDrawParams({depth:xe},Pr),this.initCullDrawParams({cull:Oe},Pr),this.drawCommand=d(Pr),this.drawParams=Pr}return(0,nt.Z)(o,[{key:"updateAttributesAndElements",value:function(l,c){var u={};Object.keys(l).forEach(function(m){u[m]=l[m].get()}),this.drawParams.attributes=u,this.drawParams.elements=c.get(),this.drawCommand=this.reGl(this.drawParams)}},{key:"updateAttributes",value:function(l){var c={};Object.keys(l).forEach(function(u){c[u]=l[u].get()}),this.drawParams.attributes=c,this.drawCommand=this.reGl(this.drawParams)}},{key:"addUniforms",value:function(l){this.uniforms=(0,ze.Z)((0,ze.Z)({},this.uniforms),this.extractUniforms(l))}},{key:"draw",value:function(l,c){if(!(this.drawParams.attributes&&Object.keys(this.drawParams.attributes).length===0)){var u=(0,ze.Z)((0,ze.Z)({},this.uniforms),this.extractUniforms(l.uniforms||{})),m={};Object.keys(u).forEach(function(E){var L=(0,ai.Z)(u[E]);L==="boolean"||L==="number"||Array.isArray(u[E])||u[E].BYTES_PER_ELEMENT?m[E]=u[E]:m[E]=u[E].get()}),m.blend=c?this.getBlendDrawParams({blend:{enable:!1}}):this.getBlendDrawParams(l),m.stencil=this.getStencilDrawParams(l),m.colorMask=this.getColorMaskDrawParams(l,c),this.drawCommand(m)}}},{key:"destroy",value:function(){var l;(l=this.drawParams)===null||l===void 0||(l=l.elements)===null||l===void 0||l.destroy(),this.options.attributes&&Object.values(this.options.attributes).forEach(function(c){c==null||c.destroy()}),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(l,c){var u=l.depth;u&&(c.depth={enable:u.enable===void 0?!0:!!u.enable,mask:u.mask===void 0?!0:!!u.mask,func:zA[u.func||Di.LESS],range:u.range||[0,1]})}},{key:"getBlendDrawParams",value:function(l){var c=l.blend,u=c||{},m=u.enable,E=u.func,L=u.equation,Z=u.color,ne=Z===void 0?[0,0,0,0]:Z;return{enable:!!m,func:{srcRGB:nL[E&&E.srcRGB||Di.SRC_ALPHA],srcAlpha:nL[E&&E.srcAlpha||Di.SRC_ALPHA],dstRGB:nL[E&&E.dstRGB||Di.ONE_MINUS_SRC_ALPHA],dstAlpha:nL[E&&E.dstAlpha||Di.ONE_MINUS_SRC_ALPHA]},equation:{rgb:tL[L&&L.rgb||Di.FUNC_ADD],alpha:tL[L&&L.alpha||Di.FUNC_ADD]},color:ne}}},{key:"getStencilDrawParams",value:function(l){var c=l.stencil,u=c||{},m=u.enable,E=u.mask,L=E===void 0?-1:E,Z=u.func,ne=Z===void 0?{cmp:Di.ALWAYS,ref:0,mask:-1}:Z,xe=u.opFront,Oe=xe===void 0?{fail:Di.KEEP,zfail:Di.KEEP,zpass:Di.KEEP}:xe,wt=u.opBack,Bt=wt===void 0?{fail:Di.KEEP,zfail:Di.KEEP,zpass:Di.KEEP}:wt;return{enable:!!m,mask:L,func:(0,ze.Z)((0,ze.Z)({},ne),{},{cmp:c8[ne.cmp]}),opFront:{fail:bE[Oe.fail],zfail:bE[Oe.zfail],zpass:bE[Oe.zpass]},opBack:{fail:bE[Bt.fail],zfail:bE[Bt.zfail],zpass:bE[Bt.zpass]}}}},{key:"getColorMaskDrawParams",value:function(l,c){var u=l.stencil,m=u!=null&&u.enable&&u.opFront&&!c?[!1,!1,!1,!1]:[!0,!0,!0,!0];return m}},{key:"initCullDrawParams",value:function(l,c){var u=l.cull;if(u){var m=u.enable,E=u.face,L=E===void 0?Di.BACK:E;c.cull={enable:!!m,face:rL[L]}}}},{key:"extractUniforms",value:function(l){var c=this,u={};return Object.keys(l).forEach(function(m){c.extractUniformsRecursively(m,l[m],u,"")}),u}},{key:"extractUniformsRecursively",value:function(l,c,u,m){var E=this;if(c===null||typeof c=="number"||typeof c=="boolean"||Array.isArray(c)&&typeof c[0]=="number"||qw(c)||c===""||"resize"in c){u["".concat(m&&m+".").concat(l)]=c;return}ZU(c)&&Object.keys(c).forEach(function(L){E.extractUniformsRecursively(L,c[L],u,"".concat(m&&m+".").concat(l))}),Array.isArray(c)&&c.forEach(function(L,Z){Object.keys(L).forEach(function(ne){E.extractUniformsRecursively(ne,L[ne],u,"".concat(m&&m+".").concat(l,"[").concat(Z,"]"))})})}}]),o}(),$K=function(){function o(d,l){(0,Ct.Z)(this,o),(0,Tn.Z)(this,"isDestroy",!1);var c=l.data,u=l.type,m=u===void 0?Di.UNSIGNED_BYTE:u,E=l.width,L=l.height,Z=l.flipY,ne=Z===void 0?!1:Z,xe=l.format,Oe=xe===void 0?Di.RGBA:xe,wt=l.mipmap,Bt=wt===void 0?!1:wt,wn=l.wrapS,Rn=wn===void 0?Di.CLAMP_TO_EDGE:wn,Pr=l.wrapT,ui=Pr===void 0?Di.CLAMP_TO_EDGE:Pr,oo=l.aniso,xo=oo===void 0?0:oo,Ds=l.alignment,aa=Ds===void 0?1:Ds,fa=l.premultiplyAlpha,Za=fa===void 0?!1:fa,gl=l.mag,tu=gl===void 0?Di.NEAREST:gl,ku=l.min,ju=ku===void 0?Di.NEAREST:ku,Xc=l.colorSpace,Pd=Xc===void 0?Di.BROWSER_DEFAULT_WEBGL:Xc,Lh=l.x,fg=Lh===void 0?0:Lh,Gg=l.y,am=Gg===void 0?0:Gg,sv=l.copy,Em=sv===void 0?!1:sv;this.width=E,this.height=L;var gy={width:E,height:L,type:SR[m],format:mU[Oe],wrapS:u8[Rn],wrapT:u8[ui],mag:ER[tu],min:ER[ju],alignment:aa,flipY:ne,colorSpace:vU[Pd],premultiplyAlpha:Za,aniso:xo,x:fg,y:am,copy:Em};c&&(gy.data=c),typeof Bt=="number"?gy.mipmap=l8[Bt]:typeof Bt=="boolean"&&(gy.mipmap=Bt),this.texture=d.texture(gy)}return(0,nt.Z)(o,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.texture(l)}},{key:"bind",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(l){var c=l.width,u=l.height;this.texture.resize(c,u),this.width=c,this.height=u}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var l;(l=this.texture)===null||l===void 0||l.destroy()}this.isDestroy=!0}}]),o}(),tk,R_,N8=(tk=(0,ts.b2)(),tk(R_=function(){function o(){var d=this;(0,Ct.Z)(this,o),(0,Tn.Z)(this,"uniformBuffers",[]),(0,Tn.Z)(this,"createModel",function(l){return new JA(d.gl,l)}),(0,Tn.Z)(this,"createAttribute",function(l){return new FA(d.gl,l)}),(0,Tn.Z)(this,"createBuffer",function(l){return new om(d.gl,l)}),(0,Tn.Z)(this,"createElements",function(l){return new xE(d.gl,l)}),(0,Tn.Z)(this,"createTexture2D",function(l){return new $K(d.gl,l)}),(0,Tn.Z)(this,"createFramebuffer",function(l){return new KG(d.gl,l)}),(0,Tn.Z)(this,"useFramebuffer",function(l,c){d.gl({framebuffer:l?l.get():null})(c)}),(0,Tn.Z)(this,"clear",function(l){var c,u=l.color,m=l.depth,E=l.stencil,L=l.framebuffer,Z=L===void 0?null:L,ne={color:u,depth:m,stencil:E};ne.framebuffer=Z===null?Z:Z.get(),(c=d.gl)===null||c===void 0||c.clear(ne)}),(0,Tn.Z)(this,"viewport",function(l){var c=l.x,u=l.y,m=l.width,E=l.height;d.gl._gl.viewport(c,u,m,E),d.width=m,d.height=E,d.gl._refresh()}),(0,Tn.Z)(this,"readPixels",function(l){var c=l.framebuffer,u=l.x,m=l.y,E=l.width,L=l.height,Z={x:u,y:m,width:E,height:L};return c&&(Z.framebuffer=c.get()),d.gl.read(Z)}),(0,Tn.Z)(this,"getViewportSize",function(){return{width:d.gl._gl.drawingBufferWidth,height:d.gl._gl.drawingBufferHeight}}),(0,Tn.Z)(this,"getContainer",function(){var l;return(l=d.canvas)===null||l===void 0?void 0:l.parentElement}),(0,Tn.Z)(this,"getCanvas",function(){return d.canvas}),(0,Tn.Z)(this,"getGLContext",function(){return d.gl._gl}),(0,Tn.Z)(this,"destroy",function(){var l;d.canvas=null,(l=d.gl)===null||l===void 0||(l=l._gl)===null||l===void 0||(l=l.getExtension("WEBGL_lose_context"))===null||l===void 0||l.loseContext(),d.gl.destroy(),d.gl=null})}return(0,nt.Z)(o,[{key:"init",value:function(){var d=(0,Pl.Z)(Fi().mark(function c(u,m,E){var L=this;return Fi().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(this.canvas=u,!E){ne.next=5;break}this.gl=E,ne.next=8;break;case 5:return ne.next=7,new Promise(function(xe,Oe){wR()({canvas:L.canvas,attributes:{alpha:!0,antialias:m.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:m.preserveDrawingBuffer,stencil:m.stencil},extensions:["OES_element_index_uint","OES_standard_derivatives","ANGLE_instanced_arrays"],optionalExtensions:["oes_texture_float_linear","OES_texture_float","EXT_texture_filter_anisotropic","EXT_blend_minmax","WEBGL_depth_texture","WEBGL_lose_context"],profile:!0,onDone:function(Bt,wn){(Bt||!wn)&&Oe(Bt),xe(wn)}})});case 7:this.gl=ne.sent;case 8:this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")};case 9:case"end":return ne.stop()}},c,this)}));function l(c,u,m){return d.apply(this,arguments)}return l}()},{key:"getPointSizeRange",value:function(){return this.gl._gl.getParameter(this.gl._gl.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(l){return!!this.getGLContext().getExtension(l)}},{key:"setState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!0,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setBaseState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!1,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setCustomLayerDefaults",value:function(){var l=this.getGLContext();l.disable(l.CULL_FACE)}},{key:"setDirty",value:function(l){this.isDirty=l}},{key:"getDirty",value:function(){return this.isDirty}},{key:"beginFrame",value:function(){}},{key:"endFrame",value:function(){}}]),o}())||R_),oee=function(){function o(d,l){(0,Ct.Z)(this,o);var c=l.buffer,u=l.offset,m=l.stride,E=l.normalized,L=l.size,Z=l.divisor,ne=l.shaderLocation;this.buffer=c,this.attribute={shaderLocation:ne,buffer:c.get(),offset:u||0,stride:m||0,normalized:E||!1,divisor:Z||0},L&&(this.attribute.size=L)}return(0,nt.Z)(o,[{key:"get",value:function(){return this.buffer}},{key:"updateBuffer",value:function(l){this.buffer.subData(l)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),o}(),PE,uS,SI,EI,wL,Jw,CL,QA,u_,F8=(PE={},(0,Tn.Z)(PE,Di.FLOAT,Float32Array),(0,Tn.Z)(PE,Di.UNSIGNED_BYTE,Uint8Array),(0,Tn.Z)(PE,Di.SHORT,Int16Array),(0,Tn.Z)(PE,Di.UNSIGNED_SHORT,Uint16Array),(0,Tn.Z)(PE,Di.INT,Int32Array),(0,Tn.Z)(PE,Di.UNSIGNED_INT,Uint32Array),PE),X2=(uS={},(0,Tn.Z)(uS,Di.POINTS,Xv.POINTS),(0,Tn.Z)(uS,Di.LINES,Xv.LINES),(0,Tn.Z)(uS,Di.LINE_LOOP,Xv.LINES),(0,Tn.Z)(uS,Di.LINE_STRIP,Xv.LINE_STRIP),(0,Tn.Z)(uS,Di.TRIANGLES,Xv.TRIANGLES),(0,Tn.Z)(uS,Di.TRIANGLE_FAN,Xv.TRIANGLES),(0,Tn.Z)(uS,Di.TRIANGLE_STRIP,Xv.TRIANGLE_STRIP),uS),HU=(SI={},(0,Tn.Z)(SI,1,qu.F32_R),(0,Tn.Z)(SI,2,qu.F32_RG),(0,Tn.Z)(SI,3,qu.F32_RGB),(0,Tn.Z)(SI,4,qu.F32_RGBA),SI),Y2=(EI={},(0,Tn.Z)(EI,Di.STATIC_DRAW,W2.STATIC),(0,Tn.Z)(EI,Di.DYNAMIC_DRAW,W2.DYNAMIC),(0,Tn.Z)(EI,Di.STREAM_DRAW,W2.DYNAMIC),EI),B8=(wL={},(0,Tn.Z)(wL,Di.REPEAT,Hy.REPEAT),(0,Tn.Z)(wL,Di.CLAMP_TO_EDGE,Hy.CLAMP_TO_EDGE),(0,Tn.Z)(wL,Di.MIRRORED_REPEAT,Hy.MIRRORED_REPEAT),wL),z8=(Jw={},(0,Tn.Z)(Jw,Di.NEVER,b0.NEVER),(0,Tn.Z)(Jw,Di.ALWAYS,b0.ALWAYS),(0,Tn.Z)(Jw,Di.LESS,b0.LESS),(0,Tn.Z)(Jw,Di.LEQUAL,b0.LEQUAL),(0,Tn.Z)(Jw,Di.GREATER,b0.GREATER),(0,Tn.Z)(Jw,Di.GEQUAL,b0.GEQUAL),(0,Tn.Z)(Jw,Di.EQUAL,b0.EQUAL),(0,Tn.Z)(Jw,Di.NOTEQUAL,b0.NOTEQUAL),Jw),zb=(CL={},(0,Tn.Z)(CL,Di.FRONT,Nb.FRONT),(0,Tn.Z)(CL,Di.BACK,Nb.BACK),CL),GU=(QA={},(0,Tn.Z)(QA,Di.FUNC_ADD,Dy.ADD),(0,Tn.Z)(QA,Di.MIN_EXT,Dy.MIN),(0,Tn.Z)(QA,Di.MAX_EXT,Dy.MAX),(0,Tn.Z)(QA,Di.FUNC_SUBTRACT,Dy.SUBSTRACT),(0,Tn.Z)(QA,Di.FUNC_REVERSE_SUBTRACT,Dy.REVERSE_SUBSTRACT),QA),nk=(u_={},(0,Tn.Z)(u_,Di.ZERO,Sm.ZERO),(0,Tn.Z)(u_,Di.ONE,Sm.ONE),(0,Tn.Z)(u_,Di.SRC_COLOR,Sm.SRC),(0,Tn.Z)(u_,Di.ONE_MINUS_SRC_COLOR,Sm.ONE_MINUS_SRC),(0,Tn.Z)(u_,Di.SRC_ALPHA,Sm.SRC_ALPHA),(0,Tn.Z)(u_,Di.ONE_MINUS_SRC_ALPHA,Sm.ONE_MINUS_SRC_ALPHA),(0,Tn.Z)(u_,Di.DST_COLOR,Sm.DST),(0,Tn.Z)(u_,Di.ONE_MINUS_DST_COLOR,Sm.ONE_MINUS_DST),(0,Tn.Z)(u_,Di.DST_ALPHA,Sm.DST_ALPHA),(0,Tn.Z)(u_,Di.ONE_MINUS_DST_ALPHA,Sm.ONE_MINUS_DST_ALPHA),(0,Tn.Z)(u_,Di.CONSTANT_COLOR,Sm.CONST),(0,Tn.Z)(u_,Di.ONE_MINUS_CONSTANT_COLOR,Sm.ONE_MINUS_CONSTANT),(0,Tn.Z)(u_,Di.CONSTANT_ALPHA,Sm.CONST),(0,Tn.Z)(u_,Di.ONE_MINUS_CONSTANT_ALPHA,Sm.ONE_MINUS_CONSTANT),(0,Tn.Z)(u_,Di.SRC_ALPHA_SATURATE,Sm.SRC_ALPHA_SATURATE),u_),VK={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121};function cS(o){return Object.prototype.toString.call(o)in VK}var KU=function(){function o(d,l){(0,Ct.Z)(this,o),(0,Tn.Z)(this,"isDestroyed",!1);var c=l.data,u=l.usage,m=l.type,E=l.isUBO,L;cS(c)?L=c:L=new F8[this.type||Di.FLOAT](c),this.type=m,this.size=L.byteLength,this.buffer=d.createBuffer({viewOrSize:L,usage:E?ov.UNIFORM:ov.VERTEX,hint:Y2[u||Di.STATIC_DRAW]})}return(0,nt.Z)(o,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){this.isDestroyed||this.buffer.destroy(),this.isDestroyed=!0}},{key:"subData",value:function(l){var c=l.data,u=l.offset,m;cS(c)?m=c:m=new F8[this.type||Di.FLOAT](c),this.buffer.setSubData(u,new Uint8Array(m.buffer))}}]),o}(),jK=function(){function o(d,l){(0,Ct.Z)(this,o);var c=l.data,u=l.type,m=l.count,E=m===void 0?0:m,L;cS(c)?L=c:L=new F8[this.type||Di.UNSIGNED_INT](c),this.type=u,this.count=E,this.indexBuffer=d.createBuffer({viewOrSize:L,usage:ov.INDEX})}return(0,nt.Z)(o,[{key:"get",value:function(){return this.indexBuffer}},{key:"subData",value:function(l){var c=l.data,u;cS(c)?u=c:u=new F8[this.type||Di.UNSIGNED_INT](c),this.indexBuffer.setSubData(0,new Uint8Array(u.buffer))}},{key:"destroy",value:function(){this.indexBuffer.destroy()}}]),o}();function WK(o){return!1}var XU=function(){function o(d,l){(0,Ct.Z)(this,o),(0,Tn.Z)(this,"isDestroy",!1);var c=l.data,u=l.type,m=u===void 0?Di.UNSIGNED_BYTE:u,E=l.width,L=l.height,Z=l.flipY,ne=Z===void 0?!1:Z,xe=l.format,Oe=xe===void 0?Di.RGBA:xe,wt=l.wrapS,Bt=wt===void 0?Di.CLAMP_TO_EDGE:wt,wn=l.wrapT,Rn=wn===void 0?Di.CLAMP_TO_EDGE:wn,Pr=l.alignment,ui=Pr===void 0?1:Pr;this.width=E,this.height=L;var oo=qu.U8_RGBA_RT;if(m===Di.UNSIGNED_BYTE&&Oe===Di.RGBA)oo=qu.U8_RGBA_RT;else if(Oe===Di.LUMINANCE&&m===Di.FLOAT)oo=qu.F32_LUMINANCE;else if(Oe===Di.LUMINANCE&&m===Di.UNSIGNED_BYTE)oo=qu.U8_LUMINANCE;else throw new Error("create texture error, type: ".concat(m,", format: ").concat(Oe));this.texture=d.createTexture({format:oo,width:E,height:L,usage:bx.SAMPLED,pixelStore:{unpackFlipY:ne,packAlignment:ui}}),c&&this.texture.setImageData([c]),this.sampler=d.createSampler({addressModeU:B8[Bt],addressModeV:B8[Rn],minFilter:_1.POINT,magFilter:_1.BILINEAR,mipmapFilter:ey.NO_MIP,lodMinClamp:0,lodMaxClamp:0})}return(0,nt.Z)(o,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(l){var c=l.data;this.texture.setImageData([c])}},{key:"bind",value:function(){}},{key:"resize",value:function(l){var c=l.width,u=l.height;this.width=c,this.height=u}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var l;(l=this.texture)===null||l===void 0||l.destroy()}this.isDestroy=!0}}]),o}(),U8=function(){function o(d,l){(0,Ct.Z)(this,o),this.device=d;var c=l.width,u=l.height,m=l.color;WK(m)?(this.renderTarget=d.createRenderTargetFromTexture(m.get()),this.width=m.width,this.height=m.height):c&&u&&(this.renderTarget=d.createRenderTarget({format:qu.U8_RGBA_RT,width:c,height:u}),this.width=c,this.height=u)}return(0,nt.Z)(o,[{key:"get",value:function(){return this.renderTarget}},{key:"destroy",value:function(){this.renderTarget.destroy()}},{key:"resize",value:function(l){var c=l.width,u=l.height;(this.width!==c||this.height!==u)&&(this.renderTarget&&this.renderTarget.destroy(),this.renderTarget=this.device.createRenderTarget({format:qu.U8_RGBA_RT,width:c,height:u}),this.width=c,this.height=u)}}]),o}(),$8=fs.isPlainObject,ZK=fs.isTypedArray,HK=function(){function o(d,l){var c=this;(0,Ct.Z)(this,o),(0,Tn.Z)(this,"destroyed",!1),(0,Tn.Z)(this,"uniforms",{}),(0,Tn.Z)(this,"vertexBuffers",[]),this.device=d,this.options=l;var u=l.vs,m=l.fs,E=l.attributes,L=l.uniforms,Z=l.count,ne=l.elements;this.options=l;var xe=d.createProgram({vertex:{glsl:u},fragment:{glsl:m}});this.program=xe,L&&(this.uniforms=this.extractUniforms(L));var Oe=[],wt=0;Object.keys(E).forEach(function(wn){var Rn=E[wn],Pr=Rn.get();c.vertexBuffers.push(Pr.get());var ui=Rn.attribute,oo=ui.offset,xo=oo===void 0?0:oo,Ds=ui.stride,aa=Ds===void 0?0:Ds,fa=ui.size,Za=fa===void 0?1:fa,gl=ui.divisor,tu=gl===void 0?0:gl,ku=ui.shaderLocation,ju=ku===void 0?0:ku;Oe.push({arrayStride:aa||Za*4,stepMode:eS.VERTEX,attributes:[{format:HU[Za],shaderLocation:ju,offset:xo,divisor:tu}]}),wt=Pr.size/Za}),Z||(this.options.count=wt),ne&&(this.indexBuffer=ne.get());var Bt=d.createInputLayout({vertexBufferDescriptors:Oe,indexBufferFormat:ne?qu.U32_R:null,program:xe});this.inputLayout=Bt,this.pipeline=this.createPipeline(l)}return(0,nt.Z)(o,[{key:"createPipeline",value:function(l){var c=l.primitive,u=c===void 0?Di.TRIANGLES:c,m=l.depth,E=l.cull,L=l.blend,Z=this.initDepthDrawParams({depth:m}),ne=!!(Z&&Z.enable),xe=this.initCullDrawParams({cull:E}),Oe=!!(xe&&xe.enable),wt=this.getBlendDrawParams({blend:L}),Bt=!!(wt&&wt.enable);return this.device.createRenderPipeline({inputLayout:this.inputLayout,program:this.program,topology:X2[u],colorAttachmentFormats:[qu.U8_RGBA_RT],depthStencilAttachmentFormat:qu.D24_S8,megaStateDescriptor:{attachmentsState:[{channelWriteMask:Gy.ALL,rgbBlendState:{blendMode:Bt&&wt.equation.rgb||Dy.ADD,blendSrcFactor:Bt&&wt.func.srcRGB||Sm.SRC_ALPHA,blendDstFactor:Bt&&wt.func.dstRGB||Sm.ONE_MINUS_SRC_ALPHA},alphaBlendState:{blendMode:Bt&&wt.equation.alpha||Dy.ADD,blendSrcFactor:Bt&&wt.func.srcAlpha||Sm.ONE,blendDstFactor:Bt&&wt.func.dstAlpha||Sm.ONE_MINUS_SRC_ALPHA}}],blendConstant:nS,depthWrite:ne,depthCompare:ne&&Z.func||b0.LESS,cullMode:Oe&&xe.face||Nb.NONE,stencilWrite:!1}})}},{key:"updateAttributesAndElements",value:function(){}},{key:"updateAttributes",value:function(){}},{key:"addUniforms",value:function(l){this.uniforms=(0,ze.Z)((0,ze.Z)({},this.uniforms),this.extractUniforms(l))}},{key:"draw",value:function(l){var c=(0,ze.Z)((0,ze.Z)({},this.options),l),u=c.count,m=u===void 0?0:u,E=c.instances,L=c.elements,Z=c.uniforms,ne=Z===void 0?{}:Z,xe=c.uniformBuffers,Oe=c.textures;this.uniforms=(0,ze.Z)((0,ze.Z)({},this.uniforms),this.extractUniforms(ne));var wt=this.device,Bt=wt.width,wn=wt.height,Rn=this.device.renderPass;if(this.pipeline=this.createPipeline(c),Rn.setPipeline(this.pipeline),Rn.setVertexInput(this.inputLayout,this.vertexBuffers.map(function(ui){return{buffer:ui}}),L?{buffer:this.indexBuffer,offset:0}:null),Rn.setViewport(0,0,Bt,wn),xe&&(this.bindings=this.device.createBindings({pipeline:this.pipeline,uniformBufferBindings:xe.map(function(ui,oo){var xo=ui;return{binding:oo,buffer:xo.get(),size:xo.size}}),samplerBindings:Oe==null?void 0:Oe.map(function(ui){return{texture:ui.texture,sampler:ui.sampler}})})),this.bindings&&(Rn.setBindings(this.bindings),this.program.setUniformsLegacy(this.uniforms)),L){var Pr=L.count;Pr===0?Rn.draw(m,E):Rn.drawIndexed(Pr,E)}else Rn.draw(m,E)}},{key:"destroy",value:function(){var l,c,u;this.program.destroy(),(l=this.vertexBuffers)===null||l===void 0||l.forEach(function(m){return m.destroy()}),(c=this.indexBuffer)===null||c===void 0||c.destroy(),(u=this.bindings)===null||u===void 0||u.destroy(),this.inputLayout.destroy(),this.pipeline.destroy(),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(l){var c=l.depth;if(c)return{enable:c.enable===void 0?!0:!!c.enable,mask:c.mask===void 0?!0:!!c.mask,func:z8[c.func||Di.LESS],range:c.range||[0,1]}}},{key:"getBlendDrawParams",value:function(l){var c=l.blend,u=c||{},m=u.enable,E=u.func,L=u.equation,Z=u.color,ne=Z===void 0?[0,0,0,0]:Z;return{enable:!!m,func:{srcRGB:nk[E&&E.srcRGB||Di.SRC_ALPHA],srcAlpha:nk[E&&E.srcAlpha||Di.SRC_ALPHA],dstRGB:nk[E&&E.dstRGB||Di.ONE_MINUS_SRC_ALPHA],dstAlpha:nk[E&&E.dstAlpha||Di.ONE_MINUS_SRC_ALPHA]},equation:{rgb:GU[L&&L.rgb||Di.FUNC_ADD],alpha:GU[L&&L.alpha||Di.FUNC_ADD]},color:ne}}},{key:"initCullDrawParams",value:function(l){var c=l.cull;if(c){var u=c.enable,m=c.face,E=m===void 0?Di.BACK:m;return{enable:!!u,face:zb[E]}}}},{key:"extractUniforms",value:function(l){var c=this,u={};return Object.keys(l).forEach(function(m){c.extractUniformsRecursively(m,l[m],u,"")}),u}},{key:"extractUniformsRecursively",value:function(l,c,u,m){var E=this;if(c===null||typeof c=="number"||typeof c=="boolean"||Array.isArray(c)&&typeof c[0]=="number"||ZK(c)||c===""||"resize"in c){u["".concat(m&&m+".").concat(l)]=c;return}$8(c)&&Object.keys(c).forEach(function(L){E.extractUniformsRecursively(L,c[L],u,"".concat(m&&m+".").concat(l))}),Array.isArray(c)&&c.forEach(function(L,Z){Object.keys(L).forEach(function(ne){E.extractUniformsRecursively(ne,L[ne],u,"".concat(m&&m+".").concat(l,"[").concat(Z,"]"))})})}}]),o}();function GK(o){return typeof WebGL2RenderingContext!="undefined"&&o instanceof WebGL2RenderingContext?!0:!!(o&&o._version===2)}var YU,qU,JU=(YU=(0,ts.b2)(),YU(qU=function(){function o(){var d=this;(0,Ct.Z)(this,o),(0,Tn.Z)(this,"uniformBuffers",[]),(0,Tn.Z)(this,"createModel",function(l){return new HK(d.device,l)}),(0,Tn.Z)(this,"createAttribute",function(l){return new oee(d.device,l)}),(0,Tn.Z)(this,"createBuffer",function(l){return new KU(d.device,l)}),(0,Tn.Z)(this,"createElements",function(l){return new jK(d.device,l)}),(0,Tn.Z)(this,"createTexture2D",function(l){return new XU(d.device,l)}),(0,Tn.Z)(this,"createFramebuffer",function(l){return new U8(d.device,l)}),(0,Tn.Z)(this,"useFramebuffer",function(){}),(0,Tn.Z)(this,"clear",function(){}),(0,Tn.Z)(this,"viewport",function(l){var c=l.width,u=l.height;d.width=c,d.height=u,d.device.width=c,d.device.height=u}),(0,Tn.Z)(this,"readPixels",function(){return new Uint8Array}),(0,Tn.Z)(this,"getViewportSize",function(){return{width:d.device.width,height:d.device.height}}),(0,Tn.Z)(this,"getContainer",function(){var l;return(l=d.canvas)===null||l===void 0?void 0:l.parentElement}),(0,Tn.Z)(this,"getCanvas",function(){return d.canvas}),(0,Tn.Z)(this,"getGLContext",function(){return d.device.gl}),(0,Tn.Z)(this,"destroy",function(){var l;d.canvas=null,(l=d.uniformBuffers)===null||l===void 0||l.forEach(function(c){c.destroy()}),d.device.destroy()})}return(0,nt.Z)(o,[{key:"init",value:function(){var d=(0,Pl.Z)(Fi().mark(function c(u,m){var E,L,Z,ne,xe,Oe;return Fi().wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return E=m.enableWebGPU,L=m.shaderCompilerPath,this.canvas=u,Z=E?new CI({shaderCompilerPath:L}):new fI({targets:["webgl2","webgl1"],onContextLost:function(Rn){console.warn("context lost",Rn)},onContextCreationError:function(Rn){console.warn("context creation error",Rn)},onContextRestored:function(Rn){console.warn("context restored",Rn)}}),Bt.next=5,Z.createSwapChain(u);case 5:ne=Bt.sent,ne.configureSwapChain(u.width,u.height),this.device=ne.getDevice(),this.swapChain=ne,xe=this.device.gl,this.extensionObject={OES_texture_float:!GK(xe)&&this.device.OES_texture_float},Oe=this.device.createTexture({format:qu.U8_RGBA_RT,width:u.width,height:u.height,usage:bx.RENDER_TARGET}),this.renderTarget=this.device.createRenderTargetFromTexture(Oe),this.mainDepthRT=this.device.createRenderTargetFromTexture(this.device.createTexture({format:qu.D24_S8,width:u.width,height:u.height,usage:bx.RENDER_TARGET}));case 14:case"end":return Bt.stop()}},c,this)}));function l(c,u){return d.apply(this,arguments)}return l}()},{key:"beginFrame",value:function(){var l=this.swapChain.getOnscreenTexture();this.renderPass=this.device.createRenderPass({colorAttachment:[this.renderTarget],colorResolveTo:[l],colorClearColor:[nS],depthStencilAttachment:this.mainDepthRT,depthClearValue:1}),this.device.renderPass=this.renderPass}},{key:"endFrame",value:function(){this.device.submitPass(this.renderPass)}},{key:"getPointSizeRange",value:function(){var l=this.device.gl;return l.getParameter(l.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(l){return!!this.getGLContext().getExtension(l)}},{key:"setState",value:function(){}},{key:"setBaseState",value:function(){}},{key:"setCustomLayerDefaults",value:function(){}},{key:"setDirty",value:function(l){this.isDirty=l}},{key:"getDirty",value:function(){return this.isDirty}}]),o}())||qU);function KK(o){var d=XK();return function(){var c=(0,Rt.Z)(o),u;if(d){var m=(0,Rt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Gt.Z)(this,u)}}function XK(){if(typeof Reflect=="undefined"||!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(o){return!1}}var V8=["selectstart","selecting","selectend"],YK=function(o){(0,lt.Z)(l,o);var d=KK(l);function l(c){var u,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,Ct.Z)(this,l),u=d.call(this),(0,Tn.Z)((0,ms.Z)(u),"isEnable",!1),(0,Tn.Z)((0,ms.Z)(u),"onDragStart",function(E){u.box.style.display="block",u.startEvent=u.endEvent=E,u.syncBoxBound(),u.emit("selectstart",u.getLngLatBox(),u.startEvent,u.endEvent)}),(0,Tn.Z)((0,ms.Z)(u),"onDragging",function(E){u.endEvent=E,u.syncBoxBound(),u.emit("selecting",u.getLngLatBox(),u.startEvent,u.endEvent)}),(0,Tn.Z)((0,ms.Z)(u),"onDragEnd",function(E){u.endEvent=E,u.box.style.display="none",u.emit("selectend",u.getLngLatBox(),u.startEvent,u.endEvent)}),u.scene=c,u.options=m,u}return(0,nt.Z)(l,[{key:"container",get:function(){return this.scene.getMapService().getMarkerContainer()}},{key:"enable",value:function(){if(!this.isEnable){var u=this.options.className;if(this.scene.setMapStatus({dragEnable:!1}),this.container.style.cursor="crosshair",!this.box){var m=Os("div",void 0,this.container);m.classList.add("l7-select-box"),u&&m.classList.add(u),m.style.display="none",this.box=m}this.scene.on("dragstart",this.onDragStart),this.scene.on("dragging",this.onDragging),this.scene.on("dragend",this.onDragEnd),this.isEnable=!0}}},{key:"disable",value:function(){this.isEnable&&(this.scene.setMapStatus({dragEnable:!0}),this.container.style.cursor="auto",this.scene.off("dragstart",this.onDragStart),this.scene.off("dragging",this.onDragging),this.scene.off("dragend",this.onDragEnd),this.isEnable=!1)}},{key:"syncBoxBound",value:function(){var u=this.startEvent,m=u.x,E=u.y,L=this.endEvent,Z=L.x,ne=L.y,xe=Math.min(m,Z),Oe=Math.min(E,ne),wt=Math.abs(m-Z),Bt=Math.abs(E-ne);this.box.style.top="".concat(Oe,"px"),this.box.style.left="".concat(xe,"px"),this.box.style.width="".concat(wt,"px"),this.box.style.height="".concat(Bt,"px")}},{key:"getLngLatBox",value:function(){var u=this.startEvent.lngLat,m=u.lng,E=u.lat,L=this.endEvent.lngLat,Z=L.lng,ne=L.lat;return Ch([[m,E],[Z,ne]])}}]),l}(uc.EventEmitter),qK=function(){function o(d){(0,Ct.Z)(this,o);var l=d.id,c=d.map,u=d.canvas,m=d.hasBaseMap,E=d.renderer,L=E===void 0?"regl":E,Z=V_();this.container=Z,c.setContainer(Z,l,u,m),Z.bind(Ls.IRendererService).to(L==="regl"?N8:JU).inSingletonScope(),this.sceneService=Z.get(Ls.ISceneService),this.mapService=Z.get(Ls.IMapService),this.iconService=Z.get(Ls.IIconService),this.fontService=Z.get(Ls.IFontService),this.controlService=Z.get(Ls.IControlService),this.layerService=Z.get(Ls.ILayerService),this.debugService=Z.get(Ls.IDebugService),this.debugService.setEnable(d.debug),this.markerService=Z.get(Ls.IMarkerService),this.interactionService=Z.get(Ls.IInteractionService),this.popupService=Z.get(Ls.IPopupService),this.boxSelect=new YK(this,{}),this.initComponent(l),this.sceneService.init(d),this.initControl()}return(0,nt.Z)(o,[{key:"map",get:function(){return this.mapService.map}},{key:"loaded",get:function(){return this.sceneService.loaded}},{key:"getServiceContainer",value:function(){return this.container}},{key:"getSize",value:function(){return this.mapService.getSize()}},{key:"getMinZoom",value:function(){return this.mapService.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.mapService.getMaxZoom()}},{key:"getType",value:function(){return this.mapService.getType()}},{key:"getMapContainer",value:function(){return this.mapService.getMapContainer()}},{key:"getMapCanvasContainer",value:function(){return this.mapService.getMapCanvasContainer()}},{key:"getMapService",value:function(){return this.mapService}},{key:"getDebugService",value:function(){return this.debugService}},{key:"exportPng",value:function(){var d=(0,Pl.Z)(Fi().mark(function c(u){return Fi().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",this.sceneService.exportPng(u));case 1:case"end":return E.stop()}},c,this)}));function l(c){return d.apply(this,arguments)}return l}()},{key:"exportMap",value:function(){var d=(0,Pl.Z)(Fi().mark(function c(u){return Fi().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",this.sceneService.exportPng(u));case 1:case"end":return E.stop()}},c,this)}));function l(c){return d.apply(this,arguments)}return l}()},{key:"registerRenderService",value:function(l){var c=this;if(this.sceneService.loaded){var u=new l(this);u.init()}else this.on("loaded",function(){var m=new l(c);m.init()})}},{key:"setBgColor",value:function(l){this.mapService.setBgColor(l)}},{key:"addLayer",value:function(l){var c=this,u=Fx(this.container);if(l.setContainer(u,this.container),this.sceneService.addLayer(l),l.inited){var m=this.initMask(l);this.addMask(m,l.id)}else l.on("inited",function(){var E=c.initMask(l);c.addMask(E,l.id)})}},{key:"initMask",value:function(l){var c=l.getLayerConfig(),u=c.mask,m=c.maskfence,E=c.maskColor,L=E===void 0?"#000":E,Z=c.maskOpacity,ne=Z===void 0?0:Z;if(!(!u||!m)){var xe=new n6().source(m).shape("fill").style({color:L,opacity:ne});return xe}}},{key:"addMask",value:function(l,c){if(l){var u=this.getLayer(c);if(u){var m=Fx(this.container);l.setContainer(m,this.container),u.addMaskLayer(l),this.sceneService.addMask(l)}else console.warn("parent layer not find!")}}},{key:"getPickedLayer",value:function(){return this.layerService.pickedLayerId}},{key:"getLayers",value:function(){return this.layerService.getLayers()}},{key:"getLayer",value:function(l){return this.layerService.getLayer(l)}},{key:"getLayerByName",value:function(l){return this.layerService.getLayerByName(l)}},{key:"removeLayer",value:function(){var d=(0,Pl.Z)(Fi().mark(function c(u,m){return Fi().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.layerService.remove(u,m);case 2:case"end":return L.stop()}},c,this)}));function l(c,u){return d.apply(this,arguments)}return l}()},{key:"removeAllLayer",value:function(){var d=(0,Pl.Z)(Fi().mark(function c(){return Fi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,this.layerService.removeAllLayers();case 2:case"end":return m.stop()}},c,this)}));function l(){return d.apply(this,arguments)}return l}()},{key:"render",value:function(){this.sceneService.render()}},{key:"setEnableRender",value:function(l){this.layerService.setEnableRender(l)}},{key:"addIconFont",value:function(l,c){this.fontService.addIconFont(l,c)}},{key:"addIconFonts",value:function(l){var c=this;l.forEach(function(u){var m=(0,Br.Z)(u,2),E=m[0],L=m[1];c.fontService.addIconFont(E,L)})}},{key:"addFontFace",value:function(l,c){var u=this;this.fontService.once("fontloaded",function(m){u.emit("fontloaded",m)}),this.fontService.addFontFace(l,c)}},{key:"addImage",value:function(){var d=(0,Pl.Z)(Fi().mark(function c(u,m){return Fi().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.iconService.addImage(u,m);case 2:case"end":return L.stop()}},c,this)}));function l(c,u){return d.apply(this,arguments)}return l}()},{key:"hasImage",value:function(l){return this.iconService.hasImage(l)}},{key:"removeImage",value:function(l){this.iconService.removeImage(l)}},{key:"addIconFontGlyphs",value:function(l,c){this.fontService.addIconGlyphs(c)}},{key:"addControl",value:function(l){this.controlService.addControl(l,this.container)}},{key:"removeControl",value:function(l){this.controlService.removeControl(l)}},{key:"getControlByName",value:function(l){return this.controlService.getControlByName(l)}},{key:"addMarker",value:function(l){this.markerService.addMarker(l)}},{key:"addMarkerLayer",value:function(l){this.markerService.addMarkerLayer(l)}},{key:"removeMarkerLayer",value:function(l){this.markerService.removeMarkerLayer(l)}},{key:"removeAllMarkers",value:function(){this.markerService.removeAllMarkers()}},{key:"removeAllMakers",value:function(){console.warn("removeAllMakers \u5DF2\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 removeAllMarkers"),this.markerService.removeAllMarkers()}},{key:"addPopup",value:function(l){this.popupService.addPopup(l)}},{key:"removePopup",value:function(l){this.popupService.removePopup(l)}},{key:"on",value:function(l,c){if(V8.includes(l)){var u;(u=this.boxSelect)===null||u===void 0||u.on(l,c)}else C2.includes(l)?this.sceneService.on(l,c):this.mapService.on(l,c)}},{key:"once",value:function(l,c){if(V8.includes(l)){var u;(u=this.boxSelect)===null||u===void 0||u.once(l,c)}else C2.includes(l)?this.sceneService.once(l,c):this.mapService.once(l,c)}},{key:"emit",value:function(l,c){C2.indexOf(l)===-1?this.mapService.on(l,c):this.sceneService.emit(l,c)}},{key:"off",value:function(l,c){if(V8.includes(l)){var u;(u=this.boxSelect)===null||u===void 0||u.off(l,c)}else C2.includes(l)?this.sceneService.off(l,c):this.mapService.off(l,c)}},{key:"getZoom",value:function(){return this.mapService.getZoom()}},{key:"getCenter",value:function(l){return this.mapService.getCenter(l)}},{key:"setCenter",value:function(l,c){return this.mapService.setCenter(l,c)}},{key:"getPitch",value:function(){return this.mapService.getPitch()}},{key:"setPitch",value:function(l){return this.mapService.setPitch(l)}},{key:"getRotation",value:function(){return this.mapService.getRotation()}},{key:"getBounds",value:function(){return this.mapService.getBounds()}},{key:"setRotation",value:function(l){this.mapService.setRotation(l)}},{key:"zoomIn",value:function(){this.mapService.zoomIn()}},{key:"zoomOut",value:function(){this.mapService.zoomOut()}},{key:"panTo",value:function(l){this.mapService.panTo(l)}},{key:"panBy",value:function(l,c){this.mapService.panBy(l,c)}},{key:"getContainer",value:function(){return this.mapService.getContainer()}},{key:"setZoom",value:function(l){this.mapService.setZoom(l)}},{key:"fitBounds",value:function(l,c){var u=this.sceneService.getSceneConfig(),m=u.fitBoundsOptions,E=u.animate;this.mapService.fitBounds(l,c||(0,ze.Z)((0,ze.Z)({},m),{},{animate:E}))}},{key:"setZoomAndCenter",value:function(l,c){this.mapService.setZoomAndCenter(l,c)}},{key:"setMapStyle",value:function(l){this.mapService.setMapStyle(l)}},{key:"setMapStatus",value:function(l){this.mapService.setMapStatus(l)}},{key:"pixelToLngLat",value:function(l){return this.mapService.pixelToLngLat(l)}},{key:"lngLatToPixel",value:function(l){return this.mapService.lngLatToPixel(l)}},{key:"containerToLngLat",value:function(l){return this.mapService.containerToLngLat(l)}},{key:"lngLatToContainer",value:function(l){return this.mapService.lngLatToContainer(l)}},{key:"destroy",value:function(){this.sceneService.destroy()}},{key:"registerPostProcessingPass",value:function(l,c){this.container.bind(Ls.IPostProcessingPass).to(l).whenTargetNamed(c)}},{key:"enableShaderPick",value:function(){this.layerService.enableShaderPick()}},{key:"diasbleShaderPick",value:function(){this.layerService.disableShaderPick()}},{key:"enableBoxSelect",value:function(){var l=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.boxSelect.enable(),c&&this.boxSelect.once("selectend",function(){l.disableBoxSelect()})}},{key:"disableBoxSelect",value:function(){this.boxSelect.disable()}},{key:"getProtocol",value:function(l){return Ni.REGISTERED_PROTOCOLS[l]}},{key:"getPointSizeRange",value:function(){return this.sceneService.getPointSizeRange()}},{key:"initComponent",value:function(l){this.controlService.init({container:dl(l)},this.container),this.markerService.init(this.container),this.popupService.init(this.container)}},{key:"initControl",value:function(){var l=this.sceneService.getSceneConfig(),c=l.logoVisible,u=l.logoPosition;c&&this.addControl(new Ft({position:u}))}}],[{key:"addProtocol",value:function(l,c){Ni.REGISTERED_PROTOCOLS[l]=c}},{key:"removeProtocol",value:function(l){delete Ni.REGISTERED_PROTOCOLS[l]}}]),o}(),SL="2.20.5"},37829:function(_t,Y,_){"use strict";_.d(Y,{br:function(){return hp},ot:function(){return ae},l_:function(){return ie},$2:function(){return $n},Ie:function(){return Ep},OB:function(){return Wh},w3:function(){return Ot},Jx:function(){return Gc},CB:function(){return Bo},ns:function(){return kg},dW:function(){return bp},GI:function(){return ch},YY:function(){return fp},kp:function(){return Mn},jf:function(){return Kl},AB:function(){return ip},Ly:function(){return yd},dN:function(){return Bi},$r:function(){return Dr}});var v=_(19501),R=_(77617),w=_(1948),b=function(Ge){return function(We,yt){var Pn=(0,R.useRef)(),xi=(0,R.useRef)(0);(yt===void 0||!(0,w.k)(yt,Pn.current))&&(Pn.current=yt,xi.current+=1),Ge(We,[xi.current])}},B=b(R.useEffect),V=_(12124),k=_.n(V),M=_(63364),C=_(40984),g=_(92378),A="*",O=function(){function Ge(){this._events={}}return Ge.prototype.on=function(We,yt,Pn){return this._events[We]||(this._events[We]=[]),this._events[We].push({callback:yt,once:!!Pn}),this},Ge.prototype.once=function(We,yt){return this.on(We,yt,!0)},Ge.prototype.emit=function(We){for(var yt=this,Pn=[],xi=1;xi=Ge.length?{done:!0}:{done:!1,value:Ge[Pn++]}},e:function(La){throw La},f:xi}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Zn=!0,ci=!1,So;return{s:function(){yt=yt.call(Ge)},n:function(){var La=yt.next();return Zn=La.done,La},e:function(La){ci=!0,So=La},f:function(){try{!Zn&&yt.return!=null&&yt.return()}finally{if(ci)throw So}}}}function ve(Ge,We){if(Ge){if(typeof Ge=="string")return Ee(Ge,We);var yt=Object.prototype.toString.call(Ge).slice(8,-1);if(yt==="Object"&&Ge.constructor&&(yt=Ge.constructor.name),yt==="Map"||yt==="Set")return Array.from(Ge);if(yt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(yt))return Ee(Ge,We)}}function Ee(Ge,We){(We==null||We>Ge.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);ytGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);yt0&&arguments[0]!==void 0?arguments[0]:{};return Object.entries(We!=null?We:{}).map(function(yt){var Pn=nt(yt,2),xi=Pn[0],Zn=Pn[1],ci=(0,St.Z)(xi),So=Zn;return typeof So=="number"?So="".concat(So,"px"):typeof So=="string"&&(So=So.replace("'","")),"".concat(ci," :").concat(So)}).join("; ")};function Cr(Ge,We){return ti(Ge)||Yi(Ge,We)||Pi(Ge,We)||ii()}function ii(){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 Pi(Ge,We){if(Ge){if(typeof Ge=="string")return Ni(Ge,We);var yt=Object.prototype.toString.call(Ge).slice(8,-1);if(yt==="Object"&&Ge.constructor&&(yt=Ge.constructor.name),yt==="Map"||yt==="Set")return Array.from(Ge);if(yt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(yt))return Ni(Ge,We)}}function Ni(Ge,We){(We==null||We>Ge.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);yt=0;--Ql){var lu=this.tryEntries[Ql],wc=lu.completion;if(lu.tryLoc==="root")return za("end");if(lu.tryLoc<=this.prev){var Zd=Pn.call(lu,"catchLoc"),_s=Pn.call(lu,"finallyLoc");if(Zd&&_s){if(this.prev=0;--za){var Ql=this.tryEntries[za];if(Ql.tryLoc<=this.prev&&Pn.call(Ql,"finallyLoc")&&this.prev=0;--Ws){var za=this.tryEntries[Ws];if(za.finallyLoc===Co)return this.complete(za.completion,za.afterLoc),xl(za),Ls}},catch:function(Co){for(var Ws=this.tryEntries.length-1;Ws>=0;--Ws){var za=this.tryEntries[Ws];if(za.tryLoc===Co){var Ql=za.completion;if(Ql.type==="throw"){var lu=Ql.arg;xl(za)}return lu}}throw new Error("illegal catch attempt")},delegateYield:function(Co,Ws,za){return this.delegate={iterator:Uu(Co),resultName:Ws,nextLoc:za},this.method==="next"&&(this.arg=Ge),Ls}},We}function Gi(Ge,We,yt,Pn,xi,Zn,ci){try{var So=Ge[Zn](ci),Zs=So.value}catch(La){yt(La);return}So.done?We(Zs):Promise.resolve(Zs).then(Pn,xi)}function qi(Ge){return function(){var We=this,yt=arguments;return new Promise(function(Pn,xi){var Zn=Ge.apply(We,yt);function ci(Zs){Gi(Zn,Pn,xi,ci,So,"next",Zs)}function So(Zs){Gi(Zn,Pn,xi,ci,So,"throw",Zs)}ci(void 0)})}}var co=function(){var Ge=qi(Ce().mark(function We(yt,Pn){return Ce().wrap(function(Zn){for(;;)switch(Zn.prev=Zn.next){case 0:if(yt!=="Map"){Zn.next=2;break}return Zn.abrupt("return",new v.Map(Pn));case 2:if(yt!=="Gaode"){Zn.next=6;break}return Zn.abrupt("return",new v.GaodeMap(Pn));case 6:if(yt!=="GaodeV1"){Zn.next=10;break}return Zn.abrupt("return",new v.GaodeMapV1(Pn));case 10:if(yt!=="GaodeV2"){Zn.next=12;break}return Zn.abrupt("return",new v.GaodeMapV2(Pn));case 12:if(yt!=="Tencent"){Zn.next=14;break}return Zn.abrupt("return",Promise.resolve(Promise.resolve().then(_.bind(_,19501))).then(function(ci){var So=ci.TencentMap;return new So(Pn)}));case 14:if(yt!=="Baidu"){Zn.next=16;break}return Zn.abrupt("return",Promise.resolve(Promise.resolve().then(_.bind(_,19501))).then(function(ci){var So=ci.BaiduMap;return new So(Pn)}));case 16:return Zn.abrupt("return",Promise.resolve(Promise.resolve().then(_.bind(_,19501))).then(function(ci){var So=ci.Mapbox;return new So(Pn)}));case 17:case"end":return Zn.stop()}},We)}));return function(yt,Pn){return Ge.apply(this,arguments)}}(),fi=function(Ge,We){return Ge?Ge.map(function(yt,Pn){return Object.is(Ge[Pn],We==null?void 0:We[Pn])?-1:Pn}).filter(function(yt){return yt>=0}):We?We.map(function(yt,Pn){return Pn}):[]},Ms=function(Ge,We){var yt=(0,R.useRef)();(0,R.useEffect)(function(){var Pn=fi(yt.current,We),xi=yt.current;return yt.current=We,Ge(Pn,xi,We)},We)},In=Ms,et=_(22633),Dt={onLoaded:"loaded",onDestroy:"destroy",onResize:"resize",onMapMove:"mapmove",onMoveStart:"movestart",onMoveEnd:"moveend",onZoomChange:"zoomchange",onZoomStart:"zoomstart",onZoomEnd:"zoomend",onClick:"click",onDblclick:"dblclick",onContextMenu:"contextmenu",onMouseMove:"mousemove",onMouseWheel:"mousewheel",onMouseDown:"mousedown",onMouseOver:"mouseover",onMouseOut:"mouseout",onMouseUp:"mouseup",onDragStart:"dragstart",onDragging:"dragging",onDragEnd:"dragend"},$t=Object.keys(Dt);function Dn(Ge){return zt(Ge)||bn(Ge)||kn(Ge)||gr()}function gr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kn(Ge,We){if(Ge){if(typeof Ge=="string")return Jt(Ge,We);var yt=Object.prototype.toString.call(Ge).slice(8,-1);if(yt==="Object"&&Ge.constructor&&(yt=Ge.constructor.name),yt==="Map"||yt==="Set")return Array.from(Ge);if(yt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(yt))return Jt(Ge,We)}}function bn(Ge){if(typeof Symbol!="undefined"&&Ge[Symbol.iterator]!=null||Ge["@@iterator"]!=null)return Array.from(Ge)}function zt(Ge){if(Array.isArray(Ge))return Jt(Ge)}function Jt(Ge,We){(We==null||We>Ge.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);ytGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);yt=0)&&Object.prototype.propertyIsEnumerable.call(Ge,Pn)&&(yt[Pn]=Ge[Pn])}return yt}function Zt(Ge,We){if(Ge==null)return{};var yt={},Pn=Object.keys(Ge),xi,Zn;for(Zn=0;Zn=0)&&(yt[xi]=Ge[xi]);return yt}var gn=R.createContext(null),$n=(0,R.memo)((0,R.forwardRef)(function(We,yt){var Pn=We.id,xi=We.style,Zn=We.className,ci=We.map,So=We.mapType,Zs=So===void 0?"Gaode":So,La=We.mapOptions,uu=La===void 0?{}:La,Jo=We.onLayerManagerCreated,ya=We.onSceneLoaded,Ea=We.children,ts=It(We,vr),Ma=(0,R.useRef)(),Ls=(0,R.useState)(null),go=Fr(Ls,2),Vo=go[0],Fs=go[1],$l=(0,R.useRef)({scene:null,layerManager:null}),Cl=$l.current;(0,R.useEffect)(function(){var Xs,Wa=!0,Vs=(0,M.Z)(ci)?co(Zs,uu):typeof ci=="function"?ci():ci;return Promise.resolve(Vs).then(function(Da){if(Wa){Xs=new v.Scene(wr(wr({},ts),{},{id:Ma.current,map:Da}));var No=new Kt({scene:Xs});Cl.scene=Xs,Cl.layerManager=No,Xs.once("loaded",function(){ya&&ya(Xs),Jo&&Jo(No),Fs(Xs)})}}).catch(function(Da){console.error(Da)}),function(){Wa=!1,Xs&&(Cl.scene=null,Cl.layerManager=null,Xs.destroy())}},[]),yn(Vo,We),(0,R.useImperativeHandle)(yt,function(){return{getScene:function(){return Vo},getMap:function(){return Vo.map}}},[Vo]),(0,R.useEffect)(function(){Vo&&uu.style&&Vo.setMapStyle(uu.style)},[uu.style]),B(function(){(0,C.Z)(Vo)||(uu.center&&(0,g.Z)(uu.zoom)?Vo.setZoomAndCenter(uu.zoom,uu.center):(0,g.Z)(uu.zoom)?Vo.setZoom(uu.zoom):uu.center&&Vo.setCenter(uu.center))},[uu.zoom,uu.center]),(0,R.useEffect)(function(){Vo&&(0,g.Z)(uu.pitch)&&Vo.setPitch(uu.pitch)},[uu.pitch]),(0,R.useEffect)(function(){Vo&&(0,g.Z)(uu.rotation)&&Vo.setRotation(uu.rotation)},[uu.rotation]);var Ra=(0,R.useMemo)(function(){return wr({position:"relative"},xi)},[xi]);return R.createElement("div",{id:Pn,ref:Ma,style:Ra,className:k()("larkmap",Zn)},Vo&&R.createElement(gn.Provider,{value:Cl},Ea))})),Ar=_(35894),Dr=function(){var We=(0,R.useContext)(gn);if(!We)throw new Error("The useScene must be used in the LarkMap container");var yt=We.scene;return yt},dr=function(We,yt,Pn){var xi=Dr(),Zn=(0,R.useRef)();(0,R.useEffect)(function(){var ci=new v.Control(Pn);return ci.onAdd=function(){return We(xi)},ci.onRemove=function(){},Zn.current=ci,xi.addControl(ci),function(){typeof yt=="function"&&yt(xi),Zn.current=null,xi.removeControl(ci)}},[]),(0,Ar.Z)(function(){var ci;(ci=Zn.current)===null||ci===void 0||ci.setOptions(Pn)},[Pn])},Xt=function(){var We=(0,R.useContext)(gn);if(!We)throw new Error("The useLayerManager must be used in the LarkMap container");var yt=We.layerManager;return yt};function Cn(Ge,We){return Xn(Ge)||An(Ge,We)||Mr(Ge,We)||er()}function er(){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 Mr(Ge,We){if(Ge){if(typeof Ge=="string")return ji(Ge,We);var yt=Object.prototype.toString.call(Ge).slice(8,-1);if(yt==="Object"&&Ge.constructor&&(yt=Ge.constructor.name),yt==="Map"||yt==="Set")return Array.from(Ge);if(yt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(yt))return ji(Ge,We)}}function ji(Ge,We){(We==null||We>Ge.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);ytGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);yt=0)&&Object.prototype.propertyIsEnumerable.call(Ge,Pn)&&(yt[Pn]=Ge[Pn])}return yt}function es(Ge,We){if(Ge==null)return{};var yt={},Pn=Object.keys(Ge),xi,Zn;for(Zn=0;Zn=0)&&(yt[xi]=Ge[xi]);return yt}var ko=function(We,yt){var Pn=yt.onCreated,xi=yt.source,Zn=Br(yt,rs),ci=Xt(),So=(0,R.useRef)(),Zs=(0,R.useRef)(Zn),La=(0,R.useRef)(xi);return So.current||(So.current=new We(yt),Pn&&So.current.once("inited",function(){return Pn(So.current)}),ci.addLayer(So.current)),(0,Ar.Z)(function(){if(So.current){var uu=!(0,zr.Z)(Zs.current,Zn);uu&&(So.current.update(Zn),Zs.current=(0,Xr.Z)(Zn))}},[Zn]),(0,Ar.Z)(function(){if(So.current){var uu=xi.data,Jo=Br(xi,Ur),ya=La.current,Ea=ya.data,ts=Br(ya,gs),Ma=uu!==Ea||!(0,zr.Z)(Jo,ts);Ma&&(So.current.changeData(xi),La.current=ri({},xi))}},[xi]),(0,R.useEffect)(function(){return function(){So.current&&(ci.removeLayer(So.current),So.current=null)}},[]),So},vs={onRemove:"remove",onShow:"show",onHide:"hide",onDataUpdate:"dataUpdate",onLegend:"legend",onLegendColor:"legend:color",onLegendSize:"legend:size",onClick:"click",onUnClick:"unclick",onDblClick:"dblclick",onUndblclick:"undblclick",onContextMenu:"contextmenu",onUnContextMenu:"uncontextmenu",onMouseEnter:"mouseenter",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseUp:"mouseup",onMouseDown:"mousedown",onUnMousemove:"unmousemove",onUnMouseup:"unmouseup",onUnMousedown:"unmousedown",onUnPick:"unpick"},Ba=function(We,yt){var Pn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vs,xi=(0,R.useMemo)(function(){return Object.keys(Pn)},[Pn]),Zn=function(uu){xi.forEach(function(Jo){var ya=Pn[Jo],Ea=yt[Jo];Jo&&Ea&&We[uu](ya,Ea)})},ci=function(){return Zn("on")},So=function(){return Zn("off")},Zs=(0,R.useRef)(!0);Zs.current&&ci(),(0,R.useEffect)(function(){return Zs.current?Zs.current=!1:ci(),function(){So()}},xi.map(function(La){return yt[La]})),(0,et.Z)(function(){So()})},uo=null,ca=null,ll=_(32290),Ti={}.toString,Li=function(Ge,We){return Ti.call(Ge)==="[object "+We+"]"},eo=Li,Eo=function(Ge){return eo(Ge,"Function")},hs=function(Ge){return Array.isArray?Array.isArray(Ge):eo(Ge,"Array")},Wn=function(Ge){var We=typeof Ge;return Ge!==null&&We==="object"||We==="function"};function yo(Ge,We){if(Ge){var yt;if(hs(Ge))for(var Pn=0,xi=Ge.length;Pn-1;)Lo.call(Ge,Zn,1);return Ge},Ka=null,Hl=Array.prototype.splice,Gl=function(We,yt){if(!isArrayLike(We))return[];for(var Pn=We?yt.length:0,xi=Pn-1;Pn--;){var Zn=void 0,ci=yt[Pn];(Pn===xi||ci!==Zn)&&(Zn=ci,Hl.call(We,ci,1))}return We},fs=null,Hs=function(Ge,We,yt){if(!hs(Ge)&&!ht(Ge))return Ge;var Pn=yt;return Qo(Ge,function(xi,Zn){Pn=We(Pn,xi,Zn)}),Pn},dl=Hs,Xo=function(Ge,We){var yt=[];if(!isArrayLike(Ge))return yt;for(var Pn=-1,xi=[],Zn=Ge.length;++PnZn[So])return 1;if(xi[So]0},Bl=null,wl=function(Ge,We){if(isArray(Ge)){for(var yt,Pn=-1/0,xi=0;xiPn&&(yt=Zn,Pn=ci)}return yt}},Tn=function(Ge,We){if(isArray(Ge)){for(var yt,Pn=1/0,xi=0;xiSo&&uu>So);)if(Zs.push(La),So-=uu,ci=ci.substr(xi),!ci)return Zs.join("");for(;La=ci.substr(0,1),uu=measureTextWidth(La,yt),!(uu+Zn>So);)if(Zs.push(La),So-=uu,ci=ci.substr(1),!ci)return Zs.join("");return""+Zs.join("")+Pn},rd=function(){function Ge(){this.map={}}return Ge.prototype.has=function(We){return this.map[We]!==void 0},Ge.prototype.get=function(We,yt){var Pn=this.map[We];return Pn===void 0?yt:Pn},Ge.prototype.set=function(We,yt){this.map[We]=yt},Ge.prototype.clear=function(){this.map={}},Ge.prototype.delete=function(We){delete this.map[We]},Ge.prototype.size=function(){return Object.keys(this.map).length},Ge}(),Mf=null;function vf(Ge,We){return function(){for(var yt=[],Pn=0;PnGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);ytGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);ytGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);ytGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);ytGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);ytGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);ytGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);ytGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);ytGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);ytGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);ytGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);ytGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);ytGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);yt=0)&&Object.prototype.propertyIsEnumerable.call(Ge,Pn)&&(yt[Pn]=Ge[Pn])}return yt}function cv(Ge,We){if(Ge==null)return{};var yt={},Pn=Object.keys(Ge),xi,Zn;for(Zn=0;Zn=0)&&(yt[xi]=Ge[xi]);return yt}var Jf="SECRET_COMBOBOX_MODE_DO_NOT_USE",Dp="larkmap-select",bf=function(We,yt){var Pn=We.prefixCls,xi=We.bordered,Zn=xi===void 0?!0:xi,ci=We.className,So=We.getPopupContainer,Zs=We.dropdownClassName,La=We.popupClassName,uu=We.listHeight,Jo=uu===void 0?256:uu,ya=We.placement,Ea=We.listItemHeight,ts=Ea===void 0?24:Ea,Ma=We.disabled,Ls=We.notFoundContent,go=Pg(We,k0),Vo=R.useMemo(function(){var Cl=go,Ra=Cl.mode;if(Ra!=="combobox")return Ra===Jf?"combobox":Ra},[go]),Fs=(0,Tm.Z)(go,"suffixIcon","itemIcon"),$l=k()(vm({},"".concat(Dp,"-borderless"),!Zn),ci);return R.createElement(qg.ZP,Ng({ref:yt},Fs,{listHeight:Jo,listItemHeight:ts,mode:Vo,prefixCls:Dp,placement:ya,notFoundContent:Ls!=null?Ls:"\u5F53\u524D\u65E0\u6570\u636E",className:$l,getPopupContainer:So,dropdownClassName:La,disabled:Ma}))},O0=R.forwardRef(bf);O0.SECRET_COMBOBOX_MODE_DO_NOT_USE=Jf,O0.Option=qg.Wx,O0.OptGroup=qg.Xo;var N0=O0;function um(Ge){"@babel/helpers - typeof";return um=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(We){return typeof We}:function(We){return We&&typeof Symbol=="function"&&We.constructor===Symbol&&We!==Symbol.prototype?"symbol":typeof We},um(Ge)}var P0=["searchParams","showDistrict","showAddress","onSearchFinish","onChange"];function K0(){return K0=Object.assign?Object.assign.bind():function(Ge){for(var We=1;We=0;--Ql){var lu=this.tryEntries[Ql],wc=lu.completion;if(lu.tryLoc==="root")return za("end");if(lu.tryLoc<=this.prev){var Zd=Pn.call(lu,"catchLoc"),_s=Pn.call(lu,"finallyLoc");if(Zd&&_s){if(this.prev=0;--za){var Ql=this.tryEntries[za];if(Ql.tryLoc<=this.prev&&Pn.call(Ql,"finallyLoc")&&this.prev=0;--Ws){var za=this.tryEntries[Ws];if(za.finallyLoc===Co)return this.complete(za.completion,za.afterLoc),xl(za),Ls}},catch:function(Co){for(var Ws=this.tryEntries.length-1;Ws>=0;--Ws){var za=this.tryEntries[Ws];if(za.tryLoc===Co){var Ql=za.completion;if(Ql.type==="throw"){var lu=Ql.arg;xl(za)}return lu}}throw new Error("illegal catch attempt")},delegateYield:function(Co,Ws,za){return this.delegate={iterator:Uu(Co),resultName:Ws,nextLoc:za},this.method==="next"&&(this.arg=Ge),Ls}},We}function $h(Ge){return c0(Ge)||gm(Ge)||ke(Ge)||s0()}function s0(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gm(Ge){if(typeof Symbol!="undefined"&&Ge[Symbol.iterator]!=null||Ge["@@iterator"]!=null)return Array.from(Ge)}function c0(Ge){if(Array.isArray(Ge))return At(Ge)}function Mm(Ge,We){var yt=Object.keys(Ge);if(Object.getOwnPropertySymbols){var Pn=Object.getOwnPropertySymbols(Ge);We&&(Pn=Pn.filter(function(xi){return Object.getOwnPropertyDescriptor(Ge,xi).enumerable})),yt.push.apply(yt,Pn)}return yt}function d0(Ge){for(var We=1;WeGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);yt=0)&&Object.prototype.propertyIsEnumerable.call(Ge,Pn)&&(yt[Pn]=Ge[Pn])}return yt}function jt(Ge,We){if(Ge==null)return{};var yt={},Pn=Object.keys(Ge),xi,Zn;for(Zn=0;Zn=0)&&(yt[xi]=Ge[xi]);return yt}var on=N0.Option,nn=function(We){var yt=We.searchParams,Pn=We.showDistrict,xi=We.showAddress,Zn=We.onSearchFinish,ci=We.onChange,So=pt(We,P0),Zs=(0,R.useState)([]),La=be(Zs,2),uu=La[0],Jo=La[1];(0,R.useEffect)(function(){Zn==null||Zn(uu)},[Zn,uu]);var ya=(0,Yg.Z)(function(){var Ma=dg(X0().mark(function Ls(go){var Vo,Fs,$l,Cl;return X0().wrap(function(Xs){for(;;)switch(Xs.prev=Xs.next){case 0:if(go){Xs.next=3;break}return Jo([]),Xs.abrupt("return");case 3:return $l=Ts(x0,d0(d0({},yt),{},{keywords:[].concat($h(((Vo=yt.keywords)!==null&&Vo!==void 0?Vo:"").split("|")),[go]).filter(function(Wa){return!!Wa}).join("|")})),Xs.next=6,fetch($l);case 6:return Xs.next=8,Xs.sent.json();case 8:Cl=Xs.sent,Jo(((Fs=Cl==null?void 0:Cl.tips)!==null&&Fs!==void 0?Fs:[]).filter(function(Wa){return Wa.location&&Wa.location.length}).map(function(Wa){var Vs=Wa.location.split(","),Da=be(Vs,2),No=Da[0],qa=Da[1];return Wa.longitude=+No,Wa.latitude=+qa,Wa}));case 10:case"end":return Xs.stop()}},Ls)}));return function(Ls){return Ma.apply(this,arguments)}}(),{wait:1e3}),Ea=ya.run,ts=(0,R.useCallback)(function(Ma){var Ls=Ma&&uu.find(function(go){return go.name===Ma});ci==null||ci(Ma||void 0,Ls||void 0)},[ci,uu]);return R.createElement(N0,K0({className:"".concat(Ym),onSearch:Ea,onChange:ts,clearIcon:function(){return null}},So),uu.map(function(Ma){var Ls="".concat(Pn?Ma.district:"").concat(xi?Ma.address:"");return R.createElement(on,{key:Ma.id,value:Ma.name},R.createElement("div",{title:Ma.name,className:"".concat(Ym,"__option-name")},Ma.name),Ls&&R.createElement("div",{title:Ls,className:"".concat(Ym,"__option-tip")},Ls))}))};nn.defaultProps={placeholder:"\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u5730\u540D",showSearch:!0,allowClear:!0,filterOption:!1,defaultActiveFirstOption:!1,showAddress:!0,showDistrict:!0};var hn=_(88234),Ln=_(4639),Kn="larkmap-administrative-location",lr="https://restapi.amap.com/v3/geocode/regeo";function Rr(Ge){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(We){return typeof We}:function(We){return We&&typeof Symbol=="function"&&We.constructor===Symbol&&We!==Symbol.prototype?"symbol":typeof We},Rr(Ge)}function ni(){"use strict";ni=function(){return We};var Ge,We={},yt=Object.prototype,Pn=yt.hasOwnProperty,xi=Object.defineProperty||function(Fo,Co,Ws){Fo[Co]=Ws.value},Zn=typeof Symbol=="function"?Symbol:{},ci=Zn.iterator||"@@iterator",So=Zn.asyncIterator||"@@asyncIterator",Zs=Zn.toStringTag||"@@toStringTag";function La(Fo,Co,Ws){return Object.defineProperty(Fo,Co,{value:Ws,enumerable:!0,configurable:!0,writable:!0}),Fo[Co]}try{La({},"")}catch(Fo){La=function(Ws,za,Ql){return Ws[za]=Ql}}function uu(Fo,Co,Ws,za){var Ql=Co&&Co.prototype instanceof go?Co:go,lu=Object.create(Ql.prototype),wc=new Sl(za||[]);return xi(lu,"_invoke",{value:Da(Fo,Ws,wc)}),lu}function Jo(Fo,Co,Ws){try{return{type:"normal",arg:Fo.call(Co,Ws)}}catch(za){return{type:"throw",arg:za}}}We.wrap=uu;var ya="suspendedStart",Ea="suspendedYield",ts="executing",Ma="completed",Ls={};function go(){}function Vo(){}function Fs(){}var $l={};La($l,ci,function(){return this});var Cl=Object.getPrototypeOf,Ra=Cl&&Cl(Cl(Uu([])));Ra&&Ra!==yt&&Pn.call(Ra,ci)&&($l=Ra);var Xs=Fs.prototype=go.prototype=Object.create($l);function Wa(Fo){["next","throw","return"].forEach(function(Co){La(Fo,Co,function(Ws){return this._invoke(Co,Ws)})})}function Vs(Fo,Co){function Ws(Ql,lu,wc,Zd){var _s=Jo(Fo[Ql],Fo,lu);if(_s.type!=="throw"){var Mp=_s.arg,df=Mp.value;return df&&Rr(df)=="object"&&Pn.call(df,"__await")?Co.resolve(df.__await).then(function(zp){Ws("next",zp,wc,Zd)},function(zp){Ws("throw",zp,wc,Zd)}):Co.resolve(df).then(function(zp){Mp.value=zp,wc(Mp)},function(zp){return Ws("throw",zp,wc,Zd)})}Zd(_s.arg)}var za;xi(this,"_invoke",{value:function(lu,wc){function Zd(){return new Co(function(_s,Mp){Ws(lu,wc,_s,Mp)})}return za=za?za.then(Zd,Zd):Zd()}})}function Da(Fo,Co,Ws){var za=ya;return function(Ql,lu){if(za===ts)throw new Error("Generator is already running");if(za===Ma){if(Ql==="throw")throw lu;return{value:Ge,done:!0}}for(Ws.method=Ql,Ws.arg=lu;;){var wc=Ws.delegate;if(wc){var Zd=No(wc,Ws);if(Zd){if(Zd===Ls)continue;return Zd}}if(Ws.method==="next")Ws.sent=Ws._sent=Ws.arg;else if(Ws.method==="throw"){if(za===ya)throw za=Ma,Ws.arg;Ws.dispatchException(Ws.arg)}else Ws.method==="return"&&Ws.abrupt("return",Ws.arg);za=ts;var _s=Jo(Fo,Co,Ws);if(_s.type==="normal"){if(za=Ws.done?Ma:Ea,_s.arg===Ls)continue;return{value:_s.arg,done:Ws.done}}_s.type==="throw"&&(za=Ma,Ws.method="throw",Ws.arg=_s.arg)}}}function No(Fo,Co){var Ws=Co.method,za=Fo.iterator[Ws];if(za===Ge)return Co.delegate=null,Ws==="throw"&&Fo.iterator.return&&(Co.method="return",Co.arg=Ge,No(Fo,Co),Co.method==="throw")||Ws!=="return"&&(Co.method="throw",Co.arg=new TypeError("The iterator does not provide a '"+Ws+"' method")),Ls;var Ql=Jo(za,Fo.iterator,Co.arg);if(Ql.type==="throw")return Co.method="throw",Co.arg=Ql.arg,Co.delegate=null,Ls;var lu=Ql.arg;return lu?lu.done?(Co[Fo.resultName]=lu.value,Co.next=Fo.nextLoc,Co.method!=="return"&&(Co.method="next",Co.arg=Ge),Co.delegate=null,Ls):lu:(Co.method="throw",Co.arg=new TypeError("iterator result is not an object"),Co.delegate=null,Ls)}function qa(Fo){var Co={tryLoc:Fo[0]};1 in Fo&&(Co.catchLoc=Fo[1]),2 in Fo&&(Co.finallyLoc=Fo[2],Co.afterLoc=Fo[3]),this.tryEntries.push(Co)}function xl(Fo){var Co=Fo.completion||{};Co.type="normal",delete Co.arg,Fo.completion=Co}function Sl(Fo){this.tryEntries=[{tryLoc:"root"}],Fo.forEach(qa,this),this.reset(!0)}function Uu(Fo){if(Fo||Fo===""){var Co=Fo[ci];if(Co)return Co.call(Fo);if(typeof Fo.next=="function")return Fo;if(!isNaN(Fo.length)){var Ws=-1,za=function Ql(){for(;++Ws=0;--Ql){var lu=this.tryEntries[Ql],wc=lu.completion;if(lu.tryLoc==="root")return za("end");if(lu.tryLoc<=this.prev){var Zd=Pn.call(lu,"catchLoc"),_s=Pn.call(lu,"finallyLoc");if(Zd&&_s){if(this.prev=0;--za){var Ql=this.tryEntries[za];if(Ql.tryLoc<=this.prev&&Pn.call(Ql,"finallyLoc")&&this.prev=0;--Ws){var za=this.tryEntries[Ws];if(za.finallyLoc===Co)return this.complete(za.completion,za.afterLoc),xl(za),Ls}},catch:function(Co){for(var Ws=this.tryEntries.length-1;Ws>=0;--Ws){var za=this.tryEntries[Ws];if(za.tryLoc===Co){var Ql=za.completion;if(Ql.type==="throw"){var lu=Ql.arg;xl(za)}return lu}}throw new Error("illegal catch attempt")},delegateYield:function(Co,Ws,za){return this.delegate={iterator:Uu(Co),resultName:Ws,nextLoc:za},this.method==="next"&&(this.arg=Ge),Ls}},We}function Je(Ge){return Vt(Ge)||Nt(Ge)||jn(Ge)||rt()}function rt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nt(Ge){if(typeof Symbol!="undefined"&&Ge[Symbol.iterator]!=null||Ge["@@iterator"]!=null)return Array.from(Ge)}function Vt(Ge){if(Array.isArray(Ge))return Nr(Ge)}function qt(Ge,We){var yt=Object.keys(Ge);if(Object.getOwnPropertySymbols){var Pn=Object.getOwnPropertySymbols(Ge);We&&(Pn=Pn.filter(function(xi){return Object.getOwnPropertyDescriptor(Ge,xi).enumerable})),yt.push.apply(yt,Pn)}return yt}function Fn(Ge){for(var We=1;WeGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);ytGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);yt2&&arguments[2]!==void 0?arguments[2]:5,xi=[We],Zn=Yt()(We).object(),ci=Yt()(yt).object();if(Pn<2)return Pn<1?[]:xi;var So={r:(Zn.r-ci.r)/(Pn-1),g:(Zn.g-ci.g)/(Pn-1),b:(Zn.b-ci.b)/(Pn-1)};return(0,ar.Z)(new Array(Pn-2),function(Zs,La){return xi.push(Yt()({r:(0,oi.Z)(Zn.r-So.r*(La+1),0),g:(0,oi.Z)(Zn.g-So.g*(La+1),0),b:(0,oi.Z)(Zn.b-So.b*(La+1),0)}).hex())}),xi.push(yt),xi};function As(Ge){"@babel/helpers - typeof";return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(We){return typeof We}:function(We){return We&&typeof Symbol=="function"&&We.constructor===Symbol&&We!==Symbol.prototype?"symbol":typeof We},As(Ge)}function Aa(Ge,We,yt){return We=no(We),We in Ge?Object.defineProperty(Ge,We,{value:yt,enumerable:!0,configurable:!0,writable:!0}):Ge[We]=yt,Ge}function no(Ge){var We=ao(Ge,"string");return As(We)==="symbol"?We:String(We)}function ao(Ge,We){if(As(Ge)!=="object"||Ge===null)return Ge;var yt=Ge[Symbol.toPrimitive];if(yt!==void 0){var Pn=yt.call(Ge,We||"default");if(As(Pn)!=="object")return Pn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(We==="string"?String:Number)(Ge)}var Mo="larkmap-legend-category";function ta(Ge){var We=Ge.labels,yt=Ge.colors,Pn=Ge.geometryType,xi=Pn===void 0?"circle":Pn,Zn=Ge.isStrokeColor,ci=Ge.style,So=Ge.className;function Zs(Jo){return Zn?{border:"2px solid ".concat(Jo)}:{background:Jo}}function La(Jo){return R.createElement("div",{className:k()(Mo,So),style:ci},We.map(function(ya,Ea){return R.createElement("div",{className:"".concat(Mo,"__content"),key:ya},R.createElement("div",{className:k()("".concat(Mo,"__content__shape"),Aa({},"".concat(Mo,"__content__").concat(xi),xi)),style:Zs(Jo[Ea])}),R.createElement("div",{className:"".concat(Mo,"labels")},ya))}))}function uu(){if(Array.isArray(yt))return La(yt);var Jo=ps(yt.startColor,yt.endColor,We.length);return La(Jo)}return R.createElement(uu,null)}ta.defaultProps={geometryType:"circle",isStrokeColor:!1};var oa=_(46266),Ke="larkmap-legend-ramp",sa=function(We){var yt=We[We.length-1],Pn=We[0];return Number.isFinite(Pn)||(Pn=parseInt(Pn,10)),Number.isFinite(yt)||(yt=parseInt(yt,10)),[Pn,yt]};function ml(Ge){var We=Ge.labels,yt=Ge.labelUnit,Pn=yt===void 0?"":yt,xi=Ge.colors,Zn=We[0]+Pn,ci=We[We.length-1]+Pn;return R.createElement(R.Fragment,null,R.createElement("div",{className:"".concat(Ke,"__continuous"),style:{background:"linear-gradient(to right,".concat(xi,")")}}),R.createElement("div",{className:"".concat(Ke,"__continuous-labelbar")},R.createElement("span",null,Zn),R.createElement("span",null,ci)))}function kl(Ge){var We=Ge.labels,yt=Ge.labelUnit,Pn=yt===void 0?"":yt,xi=Ge.colors,Zn=(0,R.useRef)(null),ci=(0,oa.Z)(Zn),So=(ci==null?void 0:ci.width)/(xi.length+1),Zs=We;if(We.length+1===xi.length){var La="< "+We[0],uu="\u2265 "+We[We.length-1];Zs.unshift(La),Zs.push(uu)}var Jo=function(Ea){var ts="".concat(We[Ea]).concat(Pn," - ").concat(We[Ea+1]).concat(Pn);return ts};return R.createElement("div",{className:"".concat(Ke,"__dis-continuous"),ref:Zn},Number.isNaN(So)?null:R.createElement(R.Fragment,null,R.createElement("div",{className:"".concat(Ke,"__dis-continuous__colors"),style:{paddingLeft:So/2}},xi==null?void 0:xi.map(function(ya,Ea){return R.createElement("div",{key:ya,title:Jo(Ea),className:"".concat(Ke,"__dis-continuous__color"),style:{background:ya,width:So}})})),R.createElement("div",{className:"".concat(Ke,"__dis-continuous__labels")},We==null?void 0:We.map(function(ya){var Ea=ya+Pn;return R.createElement("span",{key:ya,className:"".concat(Ke,"__dis-continuous__label")},Ea)}))))}function Ys(Ge){var We=Ge.isContinuous,yt=Ge.labels,Pn=Ge.colors,xi=Ge.labelUnit,Zn=Ge.className,ci=Ge.style;return R.createElement("div",{className:k()("".concat(Ke),Zn),style:ci},We?R.createElement(ml,{labels:yt,labelUnit:xi,colors:Pn}):R.createElement(kl,{labels:yt,labelUnit:xi,colors:Pn}))}Ys.defaultProps={isContinuous:!1,labelUnit:""};var $s=_(50153),Dl={point:$s.DrawPoint,line:$s.DrawLine,polygon:$s.DrawPolygon,rect:$s.DrawRect,circle:$s.DrawCircle};function ra(Ge){"@babel/helpers - typeof";return ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(We){return typeof We}:function(We){return We&&typeof Symbol=="function"&&We.constructor===Symbol&&We!==Symbol.prototype?"symbol":typeof We},ra(Ge)}function ho(Ge,We){var yt=Object.keys(Ge);if(Object.getOwnPropertySymbols){var Pn=Object.getOwnPropertySymbols(Ge);We&&(Pn=Pn.filter(function(xi){return Object.getOwnPropertyDescriptor(Ge,xi).enumerable})),yt.push.apply(yt,Pn)}return yt}function Sa(Ge){for(var We=1;WeGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);ytGe.length)&&(We=Ge.length);for(var yt=0,Pn=new Array(We);yt=je&&++Gr;else{let je=-1;for(let ut of Yn)(ut=kr(ut,++je,Yn))!=null&&(ut=+ut)>=ut&&++Gr}return Gr}function M(Yn){return Math.max(1,Math.ceil(Math.log(k(Yn))/Math.LN2)+1)}function C(Yn,kr){let Gr,je;if(kr===void 0)for(const ut of Yn)ut!=null&&(Gr===void 0?ut>=ut&&(Gr=je=ut):(Gr>ut&&(Gr=ut),je=ht&&(Gr=je=ht):(Gr>ht&&(Gr=ht),je=g?10:ht>=A?5:ht>=O?2:1;let ft,Pt,ln;return ut<0?(ln=Math.pow(10,-ut)/Ue,ft=Math.round(Yn*ln),Pt=Math.round(kr*ln),ft/lnkr&&--Pt,ln=-ln):(ln=Math.pow(10,ut)*Ue,ft=Math.round(Yn/ln),Pt=Math.round(kr/ln),ft*lnkr&&--Pt),Pt0))return[];if(Yn===kr)return[Yn];const je=kr=ut))return[];const ft=ht-ut+1,Pt=new Array(ft);if(je)if(Ue<0)for(let ln=0;ln0?(Yn=Math.floor(Yn/ut)*ut,kr=Math.ceil(kr/ut)*ut):ut<0&&(Yn=Math.ceil(Yn*ut)/ut,kr=Math.floor(kr*ut)/ut),je=ut}}var _e=Array.prototype,we=_e.slice;function ot(Yn,kr){return Yn-kr}function He(Yn){for(var kr=0,Gr=Yn.length,je=Yn[Gr-1][1]*Yn[0][0]-Yn[Gr-1][0]*Yn[0][1];++kr()=>Yn;function dt(Yn,kr){for(var Gr=-1,je=kr.length,ut;++Grje!=To>je&&Gr<(Ui-ln)*(je-sr)/(To-sr)+ln&&(ut=-ut)}return ut}function De(Yn,kr,Gr){var je;return Ae(Yn,kr,Gr)&&Re(Yn[je=+(Yn[0]===kr[0])],Gr[je],kr[je])}function Ae(Yn,kr,Gr){return(kr[0]-Yn[0])*(Gr[1]-Yn[1])===(Gr[0]-Yn[0])*(kr[1]-Yn[1])}function Re(Yn,kr,Gr){return Yn<=kr&&kr<=Gr||Gr<=kr&&kr<=Yn}function $e(){}var Ie=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Xe(){var Yn=1,kr=1,Gr=M,je=Pt;function ut(ln){var sr=Gr(ln);if(Array.isArray(sr))sr=sr.slice().sort(ot);else{const Zr=C(ln,ze);for(sr=ce(...Ee(Zr[0],Zr[1],sr),sr);sr[sr.length-1]>=Zr[1];)sr.pop();for(;sr[1]ht(ln,Zr))}function ht(ln,sr){const Zr=sr==null?NaN:+sr;if(isNaN(Zr))throw new Error(`invalid value: ${sr}`);var Ui=[],To=[];return Ue(ln,Zr,function(Vi){je(Vi,ln,Zr),He(Vi)>0?Ui.push([Vi]):To.push(Vi)}),To.forEach(function(Vi){for(var Us=0,Is=Ui.length,Rs;Us=sr,Ie[Ns<<2].forEach(Ps);++Vi0&&To0&&Vi=0&&Zr>=0))throw new Error("invalid size");return Yn=sr,kr=Zr,ut},ut.thresholds=function(ln){return arguments.length?(Gr=typeof ln=="function"?ln:Array.isArray(ln)?vt(we.call(ln)):vt(ln),ut):Gr},ut.smooth=function(ln){return arguments.length?(je=ln?Pt:$e,ut):je===Pt},ut}function ze(Yn){return isFinite(Yn)?Yn:NaN}function Kt(Yn,kr){return Yn==null?!1:+Yn>=kr}function St(Yn){return Yn==null||isNaN(Yn=+Yn)?-1/0:Yn}function nt(Yn,kr,Gr,je){const ut=je-kr,ht=Gr-kr,Ue=isFinite(ut)||isFinite(ht)?ut/ht:Math.sign(ut)/Math.sign(ht);return isNaN(Ue)?Yn:Yn+Ue-.5}var Ct=_(91482),lt=_.n(Ct);function Gt(Yn,kr){return ii(Yn)||Cr(Yn,kr)||an(Yn,kr)||Rt()}function Rt(){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 an(Yn,kr){if(Yn){if(typeof Yn=="string")return cn(Yn,kr);var Gr=Object.prototype.toString.call(Yn).slice(8,-1);if(Gr==="Object"&&Yn.constructor&&(Gr=Yn.constructor.name),Gr==="Map"||Gr==="Set")return Array.from(Yn);if(Gr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Gr))return cn(Yn,kr)}}function cn(Yn,kr){(kr==null||kr>Yn.length)&&(kr=Yn.length);for(var Gr=0,je=new Array(kr);Gr1&&arguments[1]!==void 0?arguments[1]:"image/png",Gr=document.createElement("canvas"),je=Gr.getContext("2d");return Gr.width=Yn.width,Gr.height=Yn.height,je.drawImage(Yn,0,0,Yn.width,Yn.height),Gr.toDataURL(kr)}function Yi(Yn){var kr=Pi(Yn),Gr=new Image;return Gr.src=kr.toDataURL(),Gr}function ti(Yn,kr,Gr,je){for(var ut=new Uint8ClampedArray(Yn.data),ht=new Uint8ClampedArray(4*Gr*je),Ue=0;Ue0){var ft=4*Ue;ht[ft+0]=ut[ft+0],ht[ft+1]=ut[ft+1],ht[ft+2]=Math.max(ut[ft+2],200),ht[ft+3]=ut[ft+3]}return Yi(new ImageData(ht,Gr,je))}function Ts(Yn,kr,Gr){for(var je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:15,ut=kr,ht=0,Ue=Gr,ft=0,Pt=0;Pt0){var ln=Pt%kr,sr=Math.floor(Pt/kr);ut=Math.min(ut,ln),ht=Math.max(ht,ln),Ue=Math.min(Ue,sr),ft=Math.max(ft,sr)}return[ut-je,ht+je,Ue-je,ft+je]}function Bs(Yn,kr,Gr,je,ut,ht){for(var Ue=[],ft=0,Pt=kr;Pt0?1:-1}return Ue}function Ce(Yn,kr,Gr){var je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,ut=Yn.map(function(Ue){return{x:Ue[0]+kr,y:Ue[1]+Gr}});if(je===0)return ut;var ht=lt()(ut,je,!0);return ht}var Gi=function(kr){return new Promise(function(Gr,je){var ut=new FileReader;ut.readAsDataURL(kr),ut.onload=function(){return Gr(ut.result)},ut.onerror=function(ht){return je(ht)}})};function qi(Yn,kr,Gr){var je=Ts(Yn,kr,Gr),ut=Gt(je,4),ht=ut[0],Ue=ut[1],ft=ut[2],Pt=ut[3],ln=Bs(ht,ft,Ue,Pt,Yn,kr),sr=ti(ln,Ue-ht,Pt-ft);return Yi(sr)}function co(Yn,kr,Gr){var je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,ut=Ts(Yn,kr,Gr),ht=Gt(ut,4),Ue=ht[0],ft=ht[1],Pt=ht[2],ln=ht[3],sr=Bs(Ue,Pt,ft,ln,Yn,kr),Zr=ft-Ue,Ui=ln-Pt,To=Xe().size([Zr,Ui]).smooth(!1).thresholds(2),Vi=To(sr);return Ce(Vi[1].coordinates[0][0],Ue,Pt,je)}function fi(Yn,kr){for(var Gr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,je=0;je0)&&(Yn.data[4*je+0]=0,Yn.data[4*je+1]=0,Yn.data[4*je+2]=0,Yn.data[4*je+3]=0);return Yi(Yn)}function Ms(Yn,kr,Gr,je){for(var ut=Ts(kr,Gr,je),ht=Gt(ut,4),Ue=ht[0],ft=ht[1],Pt=ht[2],ln=ht[3],sr=new Uint8ClampedArray(4*(ft-Ue)*(ln-Pt)).fill(0),Zr=0,Ui=Pt;Ui0&&(sr[Zr*4]=Yn.data[Vi*4],sr[Zr*4+1]=Yn.data[Vi*4+1],sr[Zr*4+2]=Yn.data[Vi*4+2],sr[Zr*4+3]=Yn.data[Vi*4+3]),Zr++}var Us=new ImageData(sr,ft-Ue,ln-Pt);return Yi(Us)}function In(Yn){var kr=document.createElement("a");kr.href=Yn.src,kr.download="image",kr.click()}function et(Yn){var kr=document.createElement("a");kr.href=Yn.toDataURL("image/png"),kr.download="image",kr.click()}function Dt(Yn){var kr=document.createElement("canvas"),Gr=kr.getContext("2d");return kr.width=Yn.width,kr.height=Yn.height,Gr==null||Gr.drawImage(Yn,0,0),Gr==null?void 0:Gr.getImageData(0,0,Yn.width,Yn.height)}var $t=function(kr){var Gr=1024,je=kr.naturalWidth,ut=kr.naturalHeight,ht=Gr/Math.max(ut,je);return{height:ut,width:je,samScale:ht}},Dn=function(kr,Gr){var je=1024,ut=je/Math.max(Gr,kr);return{height:Gr,width:kr,samScale:ut}};function gr(Yn){"@babel/helpers - typeof";return gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(kr){return typeof kr}:function(kr){return kr&&typeof Symbol=="function"&&kr.constructor===Symbol&&kr!==Symbol.prototype?"symbol":typeof kr},gr(Yn)}function kn(){"use strict";kn=function(){return Yn};var Yn={},kr=Object.prototype,Gr=kr.hasOwnProperty,je=Object.defineProperty||function(Xo,Mi,Yo){Xo[Mi]=Yo.value},ut=typeof Symbol=="function"?Symbol:{},ht=ut.iterator||"@@iterator",Ue=ut.asyncIterator||"@@asyncIterator",ft=ut.toStringTag||"@@toStringTag";function Pt(Xo,Mi,Yo){return Object.defineProperty(Xo,Mi,{value:Yo,enumerable:!0,configurable:!0,writable:!0}),Xo[Mi]}try{Pt({},"")}catch(Xo){Pt=function(Yo,Os,Cs){return Yo[Os]=Cs}}function ln(Xo,Mi,Yo,Os){var Cs=Mi&&Mi.prototype instanceof Ui?Mi:Ui,xa=Object.create(Cs.prototype),Xu=new fs(Os||[]);return je(xa,"_invoke",{value:ua(Xo,Yo,Xu)}),xa}function sr(Xo,Mi,Yo){try{return{type:"normal",arg:Xo.call(Mi,Yo)}}catch(Os){return{type:"throw",arg:Os}}}Yn.wrap=ln;var Zr={};function Ui(){}function To(){}function Vi(){}var Us={};Pt(Us,ht,function(){return this});var Is=Object.getPrototypeOf,Rs=Is&&Is(Is(Hs([])));Rs&&Rs!==kr&&Gr.call(Rs,ht)&&(Us=Rs);var Ns=Vi.prototype=Ui.prototype=Object.create(Us);function Lo(Xo){["next","throw","return"].forEach(function(Mi){Pt(Xo,Mi,function(Yo){return this._invoke(Mi,Yo)})})}function Ps(Xo,Mi){function Yo(Cs,xa,Xu,gc){var Zu=sr(Xo[Cs],Xo,xa);if(Zu.type!=="throw"){var Cd=Zu.arg,ad=Cd.value;return ad&&gr(ad)=="object"&&Gr.call(ad,"__await")?Mi.resolve(ad.__await).then(function(gu){Yo("next",gu,Xu,gc)},function(gu){Yo("throw",gu,Xu,gc)}):Mi.resolve(ad).then(function(gu){Cd.value=gu,Xu(Cd)},function(gu){return Yo("throw",gu,Xu,gc)})}gc(Zu.arg)}var Os;je(this,"_invoke",{value:function(xa,Xu){function gc(){return new Mi(function(Zu,Cd){Yo(xa,Xu,Zu,Cd)})}return Os=Os?Os.then(gc,gc):gc()}})}function ua(Xo,Mi,Yo){var Os="suspendedStart";return function(Cs,xa){if(Os==="executing")throw new Error("Generator is already running");if(Os==="completed"){if(Cs==="throw")throw xa;return dl()}for(Yo.method=Cs,Yo.arg=xa;;){var Xu=Yo.delegate;if(Xu){var gc=Ka(Xu,Yo);if(gc){if(gc===Zr)continue;return gc}}if(Yo.method==="next")Yo.sent=Yo._sent=Yo.arg;else if(Yo.method==="throw"){if(Os==="suspendedStart")throw Os="completed",Yo.arg;Yo.dispatchException(Yo.arg)}else Yo.method==="return"&&Yo.abrupt("return",Yo.arg);Os="executing";var Zu=sr(Xo,Mi,Yo);if(Zu.type==="normal"){if(Os=Yo.done?"completed":"suspendedYield",Zu.arg===Zr)continue;return{value:Zu.arg,done:Yo.done}}Zu.type==="throw"&&(Os="completed",Yo.method="throw",Yo.arg=Zu.arg)}}}function Ka(Xo,Mi){var Yo=Mi.method,Os=Xo.iterator[Yo];if(Os===void 0)return Mi.delegate=null,Yo==="throw"&&Xo.iterator.return&&(Mi.method="return",Mi.arg=void 0,Ka(Xo,Mi),Mi.method==="throw")||Yo!=="return"&&(Mi.method="throw",Mi.arg=new TypeError("The iterator does not provide a '"+Yo+"' method")),Zr;var Cs=sr(Os,Xo.iterator,Mi.arg);if(Cs.type==="throw")return Mi.method="throw",Mi.arg=Cs.arg,Mi.delegate=null,Zr;var xa=Cs.arg;return xa?xa.done?(Mi[Xo.resultName]=xa.value,Mi.next=Xo.nextLoc,Mi.method!=="return"&&(Mi.method="next",Mi.arg=void 0),Mi.delegate=null,Zr):xa:(Mi.method="throw",Mi.arg=new TypeError("iterator result is not an object"),Mi.delegate=null,Zr)}function Hl(Xo){var Mi={tryLoc:Xo[0]};1 in Xo&&(Mi.catchLoc=Xo[1]),2 in Xo&&(Mi.finallyLoc=Xo[2],Mi.afterLoc=Xo[3]),this.tryEntries.push(Mi)}function Gl(Xo){var Mi=Xo.completion||{};Mi.type="normal",delete Mi.arg,Xo.completion=Mi}function fs(Xo){this.tryEntries=[{tryLoc:"root"}],Xo.forEach(Hl,this),this.reset(!0)}function Hs(Xo){if(Xo){var Mi=Xo[ht];if(Mi)return Mi.call(Xo);if(typeof Xo.next=="function")return Xo;if(!isNaN(Xo.length)){var Yo=-1,Os=function Cs(){for(;++Yo=0;--Cs){var xa=this.tryEntries[Cs],Xu=xa.completion;if(xa.tryLoc==="root")return Os("end");if(xa.tryLoc<=this.prev){var gc=Gr.call(xa,"catchLoc"),Zu=Gr.call(xa,"finallyLoc");if(gc&&Zu){if(this.prev=0;--Os){var Cs=this.tryEntries[Os];if(Cs.tryLoc<=this.prev&&Gr.call(Cs,"finallyLoc")&&this.prev=0;--Yo){var Os=this.tryEntries[Yo];if(Os.finallyLoc===Mi)return this.complete(Os.completion,Os.afterLoc),Gl(Os),Zr}},catch:function(Mi){for(var Yo=this.tryEntries.length-1;Yo>=0;--Yo){var Os=this.tryEntries[Yo];if(Os.tryLoc===Mi){var Cs=Os.completion;if(Cs.type==="throw"){var xa=Cs.arg;Gl(Os)}return xa}}throw new Error("illegal catch attempt")},delegateYield:function(Mi,Yo,Os){return this.delegate={iterator:Hs(Mi),resultName:Yo,nextLoc:Os},this.method==="next"&&(this.arg=void 0),Zr}},Yn}function bn(Yn,kr,Gr,je,ut,ht,Ue){try{var ft=Yn[ht](Ue),Pt=ft.value}catch(ln){Gr(ln);return}ft.done?kr(Pt):Promise.resolve(Pt).then(je,ut)}function zt(Yn){return function(){var kr=this,Gr=arguments;return new Promise(function(je,ut){var ht=Yn.apply(kr,Gr);function Ue(Pt){bn(ht,je,ut,Ue,ft,"next",Pt)}function ft(Pt){bn(ht,je,ut,Ue,ft,"throw",Pt)}Ue(void 0)})}}function Jt(Yn,kr){if(!(Yn instanceof kr))throw new TypeError("Cannot call a class as a function")}function yn(Yn,kr){for(var Gr=0;Gr1&&ln[1]!==void 0?ln[1]:"float32",Ue=new V,typeof ut!="string"){Zr.next=6;break}Zr.t0=Ue.load(ut),Zr.next=9;break;case 6:return Zr.next=8,Ue.parse(ut);case 8:Zr.t0=Zr.sent;case 9:ft=Zr.t0,Pt=new Sr.Tensor(ht,ft.data,ft.shape),this.tensor=Pt;case 12:case"end":return Zr.stop()}},je,this)}));function Gr(je){return kr.apply(this,arguments)}return Gr}()},{key:"predict",value:function(){var kr=zt(kn().mark(function je(ut){var ht,Ue,ft;return kn().wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:if(ln.prev=0,!(this.model===null||ut===null||this.tensor===null||this.modelScale===null)){ln.next=6;break}return console.log("model not loaded"),ln.abrupt("return");case 6:if(ht=w({clicks:ut,tensor:this.tensor,modelScale:this.modelScale}),ht!==void 0){ln.next=9;break}return ln.abrupt("return");case 9:return ln.next=11,this.model.run(ht);case 11:return Ue=ln.sent,ft=Ue[this.model.outputNames[0]],ln.abrupt("return",ft);case 14:ln.next=20;break;case 16:return ln.prev=16,ln.t0=ln.catch(0),console.log(ln.t0),ln.abrupt("return");case 20:case"end":return ln.stop()}},je,this,[[0,16]])}));function Gr(je){return kr.apply(this,arguments)}return Gr}()},{key:"predictByBox",value:function(){var kr=zt(kn().mark(function je(ut){return kn().wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.abrupt("return",ut);case 1:case"end":return Ue.stop()}},je)}));function Gr(je){return kr.apply(this,arguments)}return Gr}()},{key:"exportMaskImage",value:function(Gr){if(this.imageData!==void 0)return ti(this.imageData,Gr.data,Gr.dims[3],Gr.dims[2])}},{key:"exportMaskClip",value:function(Gr){return qi(Gr.data,Gr.dims[3],Gr.dims[2])}},{key:"exportImage",value:function(Gr){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.imageData!==void 0)return fi(this.imageData,Gr.data,je)}},{key:"exportImageClip",value:function(Gr){if(this.imageData!==void 0)return Ms(this.imageData,Gr.data,Gr.dims[3],Gr.dims[2])}},{key:"exportVector",value:function(Gr){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;return co(Gr.data,Gr.dims[3],Gr.dims[2],je)}},{key:"setWasmUrl",value:function(Gr){R.env.wasm.wasmPaths=Gr}},{key:"getImageScale",value:function(Gr){var je=Gr.width,ut=Gr.height;this.modelScale=Dn(je,ut)}}]),Yn}();function mo(Yn){"@babel/helpers - typeof";return mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(kr){return typeof kr}:function(kr){return kr&&typeof Symbol=="function"&&kr.constructor===Symbol&&kr!==Symbol.prototype?"symbol":typeof kr},mo(Yn)}function Fr(Yn,kr){return fn(Yn)||xn(Yn,kr)||Ji(Yn,kr)||to()}function to(){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 Ji(Yn,kr){if(Yn){if(typeof Yn=="string")return bo(Yn,kr);var Gr=Object.prototype.toString.call(Yn).slice(8,-1);if(Gr==="Object"&&Yn.constructor&&(Gr=Yn.constructor.name),Gr==="Map"||Gr==="Set")return Array.from(Yn);if(Gr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Gr))return bo(Yn,kr)}}function bo(Yn,kr){(kr==null||kr>Yn.length)&&(kr=Yn.length);for(var Gr=0,je=new Array(kr);Gr0&&arguments[0]!==void 0?arguments[0]:256,Gr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"tms";It(this,Yn),$n(this,"tileSize",void 0),$n(this,"type",void 0),$n(this,"initialResolution",void 0),$n(this,"originShift",void 0),this.tileSize=kr,this.type=Gr,this.initialResolution=2*Math.PI*6378137/this.tileSize,this.originShift=2*Math.PI*6378137/2}return gn(Yn,[{key:"lngLatToMeters",value:function(Gr,je){var ut=Gr*this.originShift/180,ht=Math.log(Math.tan((90+je)*Math.PI/360))/(Math.PI/180);return ht=ht*this.originShift/180,[ut,ht]}},{key:"metersToLngLat",value:function(Gr,je){var ut=Gr/this.originShift*180,ht=je/this.originShift*180;return ht=180/Math.PI*(2*Math.atan(Math.exp(ht*Math.PI/180))-Math.PI/2),[ut,ht]}},{key:"pixelsToMeters",value:function(Gr,je,ut){var ht=this.resolution(ut),Ue=Gr*ht-this.originShift,ft=(this.type==="tms"?je:Math.pow(2,ut)*256-je)*ht-this.originShift;return[Ue,ft]}},{key:"metersToPixels",value:function(Gr,je,ut){var ht=this.resolution(ut),Ue=(Gr+this.originShift)/ht,ft=(je+this.originShift)/ht;return ft=this.type==="tms"?ft:Math.pow(2,ut)*256-ft,[Ue,ft]}},{key:"metersToTile",value:function(Gr,je,ut){var ht=this.metersToPixels(Gr,je,ut),Ue=Fr(ht,2),ft=Ue[0],Pt=Ue[1];return this.pixelsToTile(ft,Pt)}},{key:"tileToMeters",value:function(Gr,je,ut){return this.pixelsToMeters(Gr*this.tileSize,je*this.tileSize,ut)}},{key:"tileToLngLat",value:function(Gr,je,ut){var ht=this.tileToMeters(Gr,je,ut),Ue=Fr(ht,2),ft=Ue[0],Pt=Ue[1];return this.metersToLngLat(ft,Pt)}},{key:"pixelsToTile",value:function(Gr,je){var ut=Math.floor(Math.ceil(Gr/this.tileSize)-1),ht=Math.floor(Math.ceil(je/this.tileSize)-1);return[ut,ht]}},{key:"pixelsToRaster",value:function(Gr,je,ut){var ht=this.tileSize<Yn.length)&&(kr=Yn.length);for(var Gr=0,je=new Array(kr);Gr=0;--Cs){var xa=this.tryEntries[Cs],Xu=xa.completion;if(xa.tryLoc==="root")return Os("end");if(xa.tryLoc<=this.prev){var gc=Gr.call(xa,"catchLoc"),Zu=Gr.call(xa,"finallyLoc");if(gc&&Zu){if(this.prev=0;--Os){var Cs=this.tryEntries[Os];if(Cs.tryLoc<=this.prev&&Gr.call(Cs,"finallyLoc")&&this.prev=0;--Yo){var Os=this.tryEntries[Yo];if(Os.finallyLoc===Mi)return this.complete(Os.completion,Os.afterLoc),Gl(Os),Zr}},catch:function(Mi){for(var Yo=this.tryEntries.length-1;Yo>=0;--Yo){var Os=this.tryEntries[Yo];if(Os.tryLoc===Mi){var Cs=Os.completion;if(Cs.type==="throw"){var xa=Cs.arg;Gl(Os)}return xa}}throw new Error("illegal catch attempt")},delegateYield:function(Mi,Yo,Os){return this.delegate={iterator:Hs(Mi),resultName:Yo,nextLoc:Os},this.method==="next"&&(this.arg=void 0),Zr}},Yn}function qr(Yn,kr,Gr,je,ut,ht,Ue){try{var ft=Yn[ht](Ue),Pt=ft.value}catch(ln){Gr(ln);return}ft.done?kr(Pt):Promise.resolve(Pt).then(je,ut)}function vi(Yn){return function(){var kr=this,Gr=arguments;return new Promise(function(je,ut){var ht=Yn.apply(kr,Gr);function Ue(Pt){qr(ht,je,ut,Ue,ft,"next",Pt)}function ft(Pt){qr(ht,je,ut,Ue,ft,"throw",Pt)}Ue(void 0)})}}var Hr=null,di=function(kr){var Gr=Cn(kr,4),je=Gr[0],ut=Gr[1],ht=Gr[2],Ue=Gr[3];return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[[je,ut],[je,Ue],[ht,Ue],[ht,ut],[je,ut]]]}}]}},gi=function(kr){return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[kr]}}]}},mi=function(){return{type:"FeatureCollection",features:[]}};function Bi(Yn){"@babel/helpers - typeof";return Bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(kr){return typeof kr}:function(kr){return kr&&typeof Symbol=="function"&&kr.constructor===Symbol&&kr!==Symbol.prototype?"symbol":typeof kr},Bi(Yn)}function zr(Yn,kr){return rs(Yn)||Qi(Yn,kr)||ri(Yn,kr)||Xr()}function Xr(){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 Qi(Yn,kr){var Gr=Yn==null?null:typeof Symbol!="undefined"&&Yn[Symbol.iterator]||Yn["@@iterator"];if(Gr!=null){var je,ut,ht,Ue,ft=[],Pt=!0,ln=!1;try{if(ht=(Gr=Gr.call(Yn)).next,kr===0){if(Object(Gr)!==Gr)return;Pt=!1}else for(;!(Pt=(je=ht.call(Gr)).done)&&(ft.push(je.value),ft.length!==kr);Pt=!0);}catch(sr){ln=!0,ut=sr}finally{try{if(!Pt&&Gr.return!=null&&(Ue=Gr.return(),Object(Ue)!==Ue))return}finally{if(ln)throw ut}}return ft}}function rs(Yn){if(Array.isArray(Yn))return Yn}function Ur(){"use strict";Ur=function(){return Yn};var Yn={},kr=Object.prototype,Gr=kr.hasOwnProperty,je=Object.defineProperty||function(Xo,Mi,Yo){Xo[Mi]=Yo.value},ut=typeof Symbol=="function"?Symbol:{},ht=ut.iterator||"@@iterator",Ue=ut.asyncIterator||"@@asyncIterator",ft=ut.toStringTag||"@@toStringTag";function Pt(Xo,Mi,Yo){return Object.defineProperty(Xo,Mi,{value:Yo,enumerable:!0,configurable:!0,writable:!0}),Xo[Mi]}try{Pt({},"")}catch(Xo){Pt=function(Yo,Os,Cs){return Yo[Os]=Cs}}function ln(Xo,Mi,Yo,Os){var Cs=Mi&&Mi.prototype instanceof Ui?Mi:Ui,xa=Object.create(Cs.prototype),Xu=new fs(Os||[]);return je(xa,"_invoke",{value:ua(Xo,Yo,Xu)}),xa}function sr(Xo,Mi,Yo){try{return{type:"normal",arg:Xo.call(Mi,Yo)}}catch(Os){return{type:"throw",arg:Os}}}Yn.wrap=ln;var Zr={};function Ui(){}function To(){}function Vi(){}var Us={};Pt(Us,ht,function(){return this});var Is=Object.getPrototypeOf,Rs=Is&&Is(Is(Hs([])));Rs&&Rs!==kr&&Gr.call(Rs,ht)&&(Us=Rs);var Ns=Vi.prototype=Ui.prototype=Object.create(Us);function Lo(Xo){["next","throw","return"].forEach(function(Mi){Pt(Xo,Mi,function(Yo){return this._invoke(Mi,Yo)})})}function Ps(Xo,Mi){function Yo(Cs,xa,Xu,gc){var Zu=sr(Xo[Cs],Xo,xa);if(Zu.type!=="throw"){var Cd=Zu.arg,ad=Cd.value;return ad&&Bi(ad)=="object"&&Gr.call(ad,"__await")?Mi.resolve(ad.__await).then(function(gu){Yo("next",gu,Xu,gc)},function(gu){Yo("throw",gu,Xu,gc)}):Mi.resolve(ad).then(function(gu){Cd.value=gu,Xu(Cd)},function(gu){return Yo("throw",gu,Xu,gc)})}gc(Zu.arg)}var Os;je(this,"_invoke",{value:function(xa,Xu){function gc(){return new Mi(function(Zu,Cd){Yo(xa,Xu,Zu,Cd)})}return Os=Os?Os.then(gc,gc):gc()}})}function ua(Xo,Mi,Yo){var Os="suspendedStart";return function(Cs,xa){if(Os==="executing")throw new Error("Generator is already running");if(Os==="completed"){if(Cs==="throw")throw xa;return dl()}for(Yo.method=Cs,Yo.arg=xa;;){var Xu=Yo.delegate;if(Xu){var gc=Ka(Xu,Yo);if(gc){if(gc===Zr)continue;return gc}}if(Yo.method==="next")Yo.sent=Yo._sent=Yo.arg;else if(Yo.method==="throw"){if(Os==="suspendedStart")throw Os="completed",Yo.arg;Yo.dispatchException(Yo.arg)}else Yo.method==="return"&&Yo.abrupt("return",Yo.arg);Os="executing";var Zu=sr(Xo,Mi,Yo);if(Zu.type==="normal"){if(Os=Yo.done?"completed":"suspendedYield",Zu.arg===Zr)continue;return{value:Zu.arg,done:Yo.done}}Zu.type==="throw"&&(Os="completed",Yo.method="throw",Yo.arg=Zu.arg)}}}function Ka(Xo,Mi){var Yo=Mi.method,Os=Xo.iterator[Yo];if(Os===void 0)return Mi.delegate=null,Yo==="throw"&&Xo.iterator.return&&(Mi.method="return",Mi.arg=void 0,Ka(Xo,Mi),Mi.method==="throw")||Yo!=="return"&&(Mi.method="throw",Mi.arg=new TypeError("The iterator does not provide a '"+Yo+"' method")),Zr;var Cs=sr(Os,Xo.iterator,Mi.arg);if(Cs.type==="throw")return Mi.method="throw",Mi.arg=Cs.arg,Mi.delegate=null,Zr;var xa=Cs.arg;return xa?xa.done?(Mi[Xo.resultName]=xa.value,Mi.next=Xo.nextLoc,Mi.method!=="return"&&(Mi.method="next",Mi.arg=void 0),Mi.delegate=null,Zr):xa:(Mi.method="throw",Mi.arg=new TypeError("iterator result is not an object"),Mi.delegate=null,Zr)}function Hl(Xo){var Mi={tryLoc:Xo[0]};1 in Xo&&(Mi.catchLoc=Xo[1]),2 in Xo&&(Mi.finallyLoc=Xo[2],Mi.afterLoc=Xo[3]),this.tryEntries.push(Mi)}function Gl(Xo){var Mi=Xo.completion||{};Mi.type="normal",delete Mi.arg,Xo.completion=Mi}function fs(Xo){this.tryEntries=[{tryLoc:"root"}],Xo.forEach(Hl,this),this.reset(!0)}function Hs(Xo){if(Xo){var Mi=Xo[ht];if(Mi)return Mi.call(Xo);if(typeof Xo.next=="function")return Xo;if(!isNaN(Xo.length)){var Yo=-1,Os=function Cs(){for(;++Yo=0;--Cs){var xa=this.tryEntries[Cs],Xu=xa.completion;if(xa.tryLoc==="root")return Os("end");if(xa.tryLoc<=this.prev){var gc=Gr.call(xa,"catchLoc"),Zu=Gr.call(xa,"finallyLoc");if(gc&&Zu){if(this.prev=0;--Os){var Cs=this.tryEntries[Os];if(Cs.tryLoc<=this.prev&&Gr.call(Cs,"finallyLoc")&&this.prev=0;--Yo){var Os=this.tryEntries[Yo];if(Os.finallyLoc===Mi)return this.complete(Os.completion,Os.afterLoc),Gl(Os),Zr}},catch:function(Mi){for(var Yo=this.tryEntries.length-1;Yo>=0;--Yo){var Os=this.tryEntries[Yo];if(Os.tryLoc===Mi){var Cs=Os.completion;if(Cs.type==="throw"){var xa=Cs.arg;Gl(Os)}return xa}}throw new Error("illegal catch attempt")},delegateYield:function(Mi,Yo,Os){return this.delegate={iterator:Hs(Mi),resultName:Yo,nextLoc:Os},this.method==="next"&&(this.arg=void 0),Zr}},Yn}function gs(Yn){return Jr(Yn)||is(Yn)||ri(Yn)||Kr()}function Kr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ri(Yn,kr){if(Yn){if(typeof Yn=="string")return _n(Yn,kr);var Gr=Object.prototype.toString.call(Yn).slice(8,-1);if(Gr==="Object"&&Yn.constructor&&(Gr=Yn.constructor.name),Gr==="Map"||Gr==="Set")return Array.from(Yn);if(Gr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Gr))return _n(Yn,kr)}}function is(Yn){if(typeof Symbol!="undefined"&&Yn[Symbol.iterator]!=null||Yn["@@iterator"]!=null)return Array.from(Yn)}function Jr(Yn){if(Array.isArray(Yn))return _n(Yn)}function _n(Yn,kr){(kr==null||kr>Yn.length)&&(kr=Yn.length);for(var Gr=0,je=new Array(kr);Gr1&&To[1]!==void 0?To[1]:5,Us.next=3,this.exportVector(Ue,Pt);case 3:return ln=Us.sent,sr=this.imageBounds,Zr=ln.map(function(Is){var Rs=[Is.x*ft.metersPerpixelsX+sr[0],(ft.imageOption.height-Is.y)*ft.metersPerpixelsY+sr[1]],Ns=ft.mapHelper.metersToLngLat(Rs[0],Rs[1]);return Ns}),Ui=gi(Zr),Us.abrupt("return",Ui);case 8:case"end":return Us.stop()}},ht,this)}));function ut(ht){return je.apply(this,arguments)}return ut}()},{key:"lngLat2ImagePixel",value:function(ut){if(this.imageBounds){var ht=this.mapHelper.lngLatToMeters(ut[0],ut[1]),Ue=zr(ht,2),ft=Ue[0],Pt=Ue[1],ln=(ft-this.imageBounds[0])/this.metersPerpixelsX,sr=(Pt-this.imageBounds[1])/this.metersPerpixelsY;return sr=this.imageOption.height-sr,[ln,sr]}}}]),Gr}(Ai)},12722:function(_t,Y,_){"use strict";_.d(Y,{T6:function(){return O},VD:function(){return K},WE:function(){return k},Yt:function(){return ce},lC:function(){return w},py:function(){return V},rW:function(){return R},s:function(){return C},ve:function(){return B},vq:function(){return M}});var v=_(12187);function R(de,ve,Ee){return{r:(0,v.sh)(de,255)*255,g:(0,v.sh)(ve,255)*255,b:(0,v.sh)(Ee,255)*255}}function w(de,ve,Ee){de=(0,v.sh)(de,255),ve=(0,v.sh)(ve,255),Ee=(0,v.sh)(Ee,255);var _e=Math.max(de,ve,Ee),we=Math.min(de,ve,Ee),ot=0,He=0,vt=(_e+we)/2;if(_e===we)He=0,ot=0;else{var dt=_e-we;switch(He=vt>.5?dt/(2-_e-we):dt/(_e+we),_e){case de:ot=(ve-Ee)/dt+(ve1&&(Ee-=1),Ee<1/6?de+(ve-de)*(6*Ee):Ee<1/2?ve:Ee<2/3?de+(ve-de)*(2/3-Ee)*6:de}function B(de,ve,Ee){var _e,we,ot;if(de=(0,v.sh)(de,360),ve=(0,v.sh)(ve,100),Ee=(0,v.sh)(Ee,100),ve===0)we=Ee,ot=Ee,_e=Ee;else{var He=Ee<.5?Ee*(1+ve):Ee+ve-Ee*ve,vt=2*Ee-He;_e=b(vt,He,de+1/3),we=b(vt,He,de),ot=b(vt,He,de-1/3)}return{r:_e*255,g:we*255,b:ot*255}}function V(de,ve,Ee){de=(0,v.sh)(de,255),ve=(0,v.sh)(ve,255),Ee=(0,v.sh)(Ee,255);var _e=Math.max(de,ve,Ee),we=Math.min(de,ve,Ee),ot=0,He=_e,vt=_e-we,dt=_e===0?0:vt/_e;if(_e===we)ot=0;else{switch(_e){case de:ot=(ve-Ee)/vt+(ve>16,g:(de&65280)>>8,b:de&255}}},93796:function(_t,Y,_){"use strict";_.d(Y,{R:function(){return v}});var v={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},9915:function(_t,Y,_){"use strict";_.d(Y,{uA:function(){return b}});var v=_(12722),R=_(93796),w=_(12187);function b(K){var ce={r:0,g:0,b:0},de=1,ve=null,Ee=null,_e=null,we=!1,ot=!1;return typeof K=="string"&&(K=A(K)),typeof K=="object"&&(O(K.r)&&O(K.g)&&O(K.b)?(ce=(0,v.rW)(K.r,K.g,K.b),we=!0,ot=String(K.r).substr(-1)==="%"?"prgb":"rgb"):O(K.h)&&O(K.s)&&O(K.v)?(ve=(0,w.JX)(K.s),Ee=(0,w.JX)(K.v),ce=(0,v.WE)(K.h,ve,Ee),we=!0,ot="hsv"):O(K.h)&&O(K.s)&&O(K.l)&&(ve=(0,w.JX)(K.s),_e=(0,w.JX)(K.l),ce=(0,v.ve)(K.h,ve,_e),we=!0,ot="hsl"),Object.prototype.hasOwnProperty.call(K,"a")&&(de=K.a)),de=(0,w.Yq)(de),{ok:we,format:K.format||ot,r:Math.min(255,Math.max(ce.r,0)),g:Math.min(255,Math.max(ce.g,0)),b:Math.min(255,Math.max(ce.b,0)),a:de}}var B="[-\\+]?\\d+%?",V="[-\\+]?\\d*\\.\\d+%?",k="(?:".concat(V,")|(?:").concat(B,")"),M="[\\s|\\(]+(".concat(k,")[,|\\s]+(").concat(k,")[,|\\s]+(").concat(k,")\\s*\\)?"),C="[\\s|\\(]+(".concat(k,")[,|\\s]+(").concat(k,")[,|\\s]+(").concat(k,")[,|\\s]+(").concat(k,")\\s*\\)?"),g={CSS_UNIT:new RegExp(k),rgb:new RegExp("rgb"+M),rgba:new RegExp("rgba"+C),hsl:new RegExp("hsl"+M),hsla:new RegExp("hsla"+C),hsv:new RegExp("hsv"+M),hsva:new RegExp("hsva"+C),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 A(K){if(K=K.trim().toLowerCase(),K.length===0)return!1;var ce=!1;if(R.R[K])K=R.R[K],ce=!0;else if(K==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var de=g.rgb.exec(K);return de?{r:de[1],g:de[2],b:de[3]}:(de=g.rgba.exec(K),de?{r:de[1],g:de[2],b:de[3],a:de[4]}:(de=g.hsl.exec(K),de?{h:de[1],s:de[2],l:de[3]}:(de=g.hsla.exec(K),de?{h:de[1],s:de[2],l:de[3],a:de[4]}:(de=g.hsv.exec(K),de?{h:de[1],s:de[2],v:de[3]}:(de=g.hsva.exec(K),de?{h:de[1],s:de[2],v:de[3],a:de[4]}:(de=g.hex8.exec(K),de?{r:(0,v.VD)(de[1]),g:(0,v.VD)(de[2]),b:(0,v.VD)(de[3]),a:(0,v.T6)(de[4]),format:ce?"name":"hex8"}:(de=g.hex6.exec(K),de?{r:(0,v.VD)(de[1]),g:(0,v.VD)(de[2]),b:(0,v.VD)(de[3]),format:ce?"name":"hex"}:(de=g.hex4.exec(K),de?{r:(0,v.VD)(de[1]+de[1]),g:(0,v.VD)(de[2]+de[2]),b:(0,v.VD)(de[3]+de[3]),a:(0,v.T6)(de[4]+de[4]),format:ce?"name":"hex8"}:(de=g.hex3.exec(K),de?{r:(0,v.VD)(de[1]+de[1]),g:(0,v.VD)(de[2]+de[2]),b:(0,v.VD)(de[3]+de[3]),format:ce?"name":"hex"}:!1)))))))))}function O(K){return!!g.CSS_UNIT.exec(String(K))}},64993:function(_t,Y,_){"use strict";_.d(Y,{C:function(){return B}});var v=_(12722),R=_(93796),w=_(9915),b=_(12187),B=function(){function k(M,C){M===void 0&&(M=""),C===void 0&&(C={});var g;if(M instanceof k)return M;typeof M=="number"&&(M=(0,v.Yt)(M)),this.originalInput=M;var A=(0,w.uA)(M);this.originalInput=M,this.r=A.r,this.g=A.g,this.b=A.b,this.a=A.a,this.roundA=Math.round(100*this.a)/100,this.format=(g=C.format)!==null&&g!==void 0?g:A.format,this.gradientType=C.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=A.ok}return k.prototype.isDark=function(){return this.getBrightness()<128},k.prototype.isLight=function(){return!this.isDark()},k.prototype.getBrightness=function(){var M=this.toRgb();return(M.r*299+M.g*587+M.b*114)/1e3},k.prototype.getLuminance=function(){var M=this.toRgb(),C,g,A,O=M.r/255,K=M.g/255,ce=M.b/255;return O<=.03928?C=O/12.92:C=Math.pow((O+.055)/1.055,2.4),K<=.03928?g=K/12.92:g=Math.pow((K+.055)/1.055,2.4),ce<=.03928?A=ce/12.92:A=Math.pow((ce+.055)/1.055,2.4),.2126*C+.7152*g+.0722*A},k.prototype.getAlpha=function(){return this.a},k.prototype.setAlpha=function(M){return this.a=(0,b.Yq)(M),this.roundA=Math.round(100*this.a)/100,this},k.prototype.isMonochrome=function(){var M=this.toHsl().s;return M===0},k.prototype.toHsv=function(){var M=(0,v.py)(this.r,this.g,this.b);return{h:M.h*360,s:M.s,v:M.v,a:this.a}},k.prototype.toHsvString=function(){var M=(0,v.py)(this.r,this.g,this.b),C=Math.round(M.h*360),g=Math.round(M.s*100),A=Math.round(M.v*100);return this.a===1?"hsv(".concat(C,", ").concat(g,"%, ").concat(A,"%)"):"hsva(".concat(C,", ").concat(g,"%, ").concat(A,"%, ").concat(this.roundA,")")},k.prototype.toHsl=function(){var M=(0,v.lC)(this.r,this.g,this.b);return{h:M.h*360,s:M.s,l:M.l,a:this.a}},k.prototype.toHslString=function(){var M=(0,v.lC)(this.r,this.g,this.b),C=Math.round(M.h*360),g=Math.round(M.s*100),A=Math.round(M.l*100);return this.a===1?"hsl(".concat(C,", ").concat(g,"%, ").concat(A,"%)"):"hsla(".concat(C,", ").concat(g,"%, ").concat(A,"%, ").concat(this.roundA,")")},k.prototype.toHex=function(M){return M===void 0&&(M=!1),(0,v.vq)(this.r,this.g,this.b,M)},k.prototype.toHexString=function(M){return M===void 0&&(M=!1),"#"+this.toHex(M)},k.prototype.toHex8=function(M){return M===void 0&&(M=!1),(0,v.s)(this.r,this.g,this.b,this.a,M)},k.prototype.toHex8String=function(M){return M===void 0&&(M=!1),"#"+this.toHex8(M)},k.prototype.toHexShortString=function(M){return M===void 0&&(M=!1),this.a===1?this.toHexString(M):this.toHex8String(M)},k.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},k.prototype.toRgbString=function(){var M=Math.round(this.r),C=Math.round(this.g),g=Math.round(this.b);return this.a===1?"rgb(".concat(M,", ").concat(C,", ").concat(g,")"):"rgba(".concat(M,", ").concat(C,", ").concat(g,", ").concat(this.roundA,")")},k.prototype.toPercentageRgb=function(){var M=function(C){return"".concat(Math.round((0,b.sh)(C,255)*100),"%")};return{r:M(this.r),g:M(this.g),b:M(this.b),a:this.a}},k.prototype.toPercentageRgbString=function(){var M=function(C){return Math.round((0,b.sh)(C,255)*100)};return this.a===1?"rgb(".concat(M(this.r),"%, ").concat(M(this.g),"%, ").concat(M(this.b),"%)"):"rgba(".concat(M(this.r),"%, ").concat(M(this.g),"%, ").concat(M(this.b),"%, ").concat(this.roundA,")")},k.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var M="#"+(0,v.vq)(this.r,this.g,this.b,!1),C=0,g=Object.entries(R.R);C=0,O=!C&&A&&(M.startsWith("hex")||M==="name");return O?M==="name"&&this.a===0?this.toName():this.toRgbString():(M==="rgb"&&(g=this.toRgbString()),M==="prgb"&&(g=this.toPercentageRgbString()),(M==="hex"||M==="hex6")&&(g=this.toHexString()),M==="hex3"&&(g=this.toHexString(!0)),M==="hex4"&&(g=this.toHex8String(!0)),M==="hex8"&&(g=this.toHex8String()),M==="name"&&(g=this.toName()),M==="hsl"&&(g=this.toHslString()),M==="hsv"&&(g=this.toHsvString()),g||this.toHexString())},k.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},k.prototype.clone=function(){return new k(this.toString())},k.prototype.lighten=function(M){M===void 0&&(M=10);var C=this.toHsl();return C.l+=M/100,C.l=(0,b.V2)(C.l),new k(C)},k.prototype.brighten=function(M){M===void 0&&(M=10);var C=this.toRgb();return C.r=Math.max(0,Math.min(255,C.r-Math.round(255*-(M/100)))),C.g=Math.max(0,Math.min(255,C.g-Math.round(255*-(M/100)))),C.b=Math.max(0,Math.min(255,C.b-Math.round(255*-(M/100)))),new k(C)},k.prototype.darken=function(M){M===void 0&&(M=10);var C=this.toHsl();return C.l-=M/100,C.l=(0,b.V2)(C.l),new k(C)},k.prototype.tint=function(M){return M===void 0&&(M=10),this.mix("white",M)},k.prototype.shade=function(M){return M===void 0&&(M=10),this.mix("black",M)},k.prototype.desaturate=function(M){M===void 0&&(M=10);var C=this.toHsl();return C.s-=M/100,C.s=(0,b.V2)(C.s),new k(C)},k.prototype.saturate=function(M){M===void 0&&(M=10);var C=this.toHsl();return C.s+=M/100,C.s=(0,b.V2)(C.s),new k(C)},k.prototype.greyscale=function(){return this.desaturate(100)},k.prototype.spin=function(M){var C=this.toHsl(),g=(C.h+M)%360;return C.h=g<0?360+g:g,new k(C)},k.prototype.mix=function(M,C){C===void 0&&(C=50);var g=this.toRgb(),A=new k(M).toRgb(),O=C/100,K={r:(A.r-g.r)*O+g.r,g:(A.g-g.g)*O+g.g,b:(A.b-g.b)*O+g.b,a:(A.a-g.a)*O+g.a};return new k(K)},k.prototype.analogous=function(M,C){M===void 0&&(M=6),C===void 0&&(C=30);var g=this.toHsl(),A=360/C,O=[this];for(g.h=(g.h-(A*M>>1)+720)%360;--M;)g.h=(g.h+A)%360,O.push(new k(g));return O},k.prototype.complement=function(){var M=this.toHsl();return M.h=(M.h+180)%360,new k(M)},k.prototype.monochromatic=function(M){M===void 0&&(M=6);for(var C=this.toHsv(),g=C.h,A=C.s,O=C.v,K=[],ce=1/M;M--;)K.push(new k({h:g,s:A,v:O})),O=(O+ce)%1;return K},k.prototype.splitcomplement=function(){var M=this.toHsl(),C=M.h;return[this,new k({h:(C+72)%360,s:M.s,l:M.l}),new k({h:(C+216)%360,s:M.s,l:M.l})]},k.prototype.onBackground=function(M){var C=this.toRgb(),g=new k(M).toRgb(),A=C.a+g.a*(1-C.a);return new k({r:(C.r*C.a+g.r*g.a*(1-C.a))/A,g:(C.g*C.a+g.g*g.a*(1-C.a))/A,b:(C.b*C.a+g.b*g.a*(1-C.a))/A,a:A})},k.prototype.triad=function(){return this.polyad(3)},k.prototype.tetrad=function(){return this.polyad(4)},k.prototype.polyad=function(M){for(var C=this.toHsl(),g=C.h,A=[this],O=360/M,K=1;K1)&&(M=1),M}function V(M){return M<=1?"".concat(Number(M)*100,"%"):M}function k(M){return M.length===1?"0"+M:String(M)}},78576:function(_t,Y,_){"use strict";_.d(Y,{iv:function(){return Yn}});function v(je){if(je.sheet)return je.sheet;for(var ut=0;ut0?O(dt,--He):0,we--,vt===10&&(we=1,_e--),vt}function $e(){return vt=He2||Kt(vt)>3?"":" "}function Rt(je){for(;$e();)switch(Kt(vt)){case 0:append(ii(He-1),je);break;case 2:append(Ct(vt),je);break;default:append(from(vt),je)}return je}function an(je,ut){for(;--ut&&$e()&&!(vt<48||vt>102||vt>57&&vt<65||vt>70&&vt<97););return ze(je,Xe()+(ut<6&&Ie()==32&&$e()==32))}function cn(je){for(;$e();)switch(vt){case je:return He;case 34:case 39:je!==34&&je!==39&&cn(vt);break;case 40:je===41&&cn(je);break;case 92:$e();break}return He}function Cr(je,ut){for(;$e()&&je+vt!==47+10;)if(je+vt===42+42&&Ie()===47)break;return"/*"+ze(ut,He-1)+"*"+B(je===47?je:$e())}function ii(je){for(;!Kt(Ie());)$e();return ze(je,He)}var Pi="-ms-",Ni="-moz-",Yi="-webkit-",ti="comm",Ts="rule",Bs="decl",Ce="@page",Gi="@media",qi="@import",co="@charset",fi="@viewport",Ms="@supports",In="@document",et="@namespace",Dt="@keyframes",$t="@font-face",Dn="@counter-style",gr="@font-feature-values",kn="@layer";function bn(je,ut){for(var ht="",Ue=de(je),ft=0;ft-1&&!je.return)switch(je.type){case DECLARATION:je.return=prefix(je.value,je.length,ht);return;case KEYFRAMES:return serialize([copy(je,{value:replace(je.value,"@","@"+WEBKIT)})],Ue);case RULESET:if(je.length)return combine(je.props,function(ft){switch(match(ft,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(je,{props:[replace(ft,/:(read-\w+)/,":"+MOZ+"$1")]})],Ue);case"::placeholder":return serialize([copy(je,{props:[replace(ft,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(je,{props:[replace(ft,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(je,{props:[replace(ft,/:(plac\w+)/,MS+"input-$1")]})],Ue)}return""})}}function vr(je){switch(je.type){case RULESET:je.props=je.props.map(function(ut){return combine(tokenize(ut),function(ht,Ue,ft){switch(charat(ht,0)){case 12:return substr(ht,1,strlen(ht));case 0:case 40:case 43:case 62:case 126:return ht;case 58:ft[++Ue]==="global"&&(ft[Ue]="",ft[++Ue]="\f"+substr(ft[Ue],Ue=1,-1));case 32:return Ue===1?"":ht;default:switch(Ue){case 0:return je=ht,sizeof(ft)>1?"":ht;case(Ue=sizeof(ft)-1):case 2:return Ue===2?ht+je+je:ht+je;default:return ht}}})})}}function pn(je){return nt(wr("",null,null,null,[""],je=St(je),0,[0],je))}function wr(je,ut,ht,Ue,ft,Pt,ln,sr,Zr){for(var Ui=0,To=0,Vi=ln,Us=0,Is=0,Rs=0,Ns=1,Lo=1,Ps=1,ua=0,Ka="",Hl=ft,Gl=Pt,fs=Ue,Hs=Ka;Lo;)switch(Rs=ua,ua=$e()){case 40:if(Rs!=108&&O(Hs,Vi-1)==58){A(Hs+=g(Ct(ua),"&","&\f"),"&\f")!=-1&&(Ps=-1);break}case 34:case 39:case 91:Hs+=Ct(ua);break;case 9:case 10:case 13:case 32:Hs+=Gt(Rs);break;case 92:Hs+=an(Xe()-1,7);continue;case 47:switch(Ie()){case 42:case 47:ve(Ai(Cr($e(),Xe()),ut,ht),Zr);break;default:Hs+="/"}break;case 123*Ns:sr[Ui++]=ce(Hs)*Ps;case 125*Ns:case 59:case 0:switch(ua){case 0:case 125:Lo=0;case 59+To:Ps==-1&&(Hs=g(Hs,/\f/g,"")),Is>0&&ce(Hs)-Vi&&ve(Is>32?mo(Hs+";",Ue,ht,Vi-1):mo(g(Hs," ","")+";",Ue,ht,Vi-2),Zr);break;case 59:Hs+=";";default:if(ve(fs=Sr(Hs,ut,ht,Ui,To,ft,sr,Ka,Hl=[],Gl=[],Vi),Pt),ua===123)if(To===0)wr(Hs,ut,fs,fs,Hl,Pt,Vi,sr,Gl);else switch(Us===99&&O(Hs,3)===110?100:Us){case 100:case 108:case 109:case 115:wr(je,fs,fs,Ue&&ve(Sr(je,fs,fs,0,0,ft,sr,Ka,ft,Hl=[],Vi),Gl),ft,Gl,Vi,sr,Ue?Hl:Gl);break;default:wr(Hs,fs,fs,fs,[""],Gl,0,sr,Gl)}}Ui=To=Is=0,Ns=Ps=1,Ka=Hs="",Vi=ln;break;case 58:Vi=1+ce(Hs),Is=Rs;default:if(Ns<1){if(ua==123)--Ns;else if(ua==125&&Ns++==0&&Re()==125)continue}switch(Hs+=B(ua),ua*Ns){case 38:Ps=To>0?1:(Hs+="\f",-1);break;case 44:sr[Ui++]=(ce(Hs)-1)*Ps,Ps=1;break;case 64:Ie()===45&&(Hs+=Ct($e())),Us=Ie(),To=Vi=ce(Ka=Hs+=ii(Xe())),ua++;break;case 45:Rs===45&&ce(Hs)==2&&(Ns=0)}}return Pt}function Sr(je,ut,ht,Ue,ft,Pt,ln,sr,Zr,Ui,To){for(var Vi=ft-1,Us=ft===0?Pt:[""],Is=de(Us),Rs=0,Ns=0,Lo=0;Rs0?Us[Ps]+" "+ua:g(ua,/&\f/g,Us[Ps])))&&(Zr[Lo++]=Ka);return Pe(je,ut,ht,ft===0?Ts:sr,Zr,Ui,To)}function Ai(je,ut,ht){return Pe(je,ut,ht,ti,B(Ae()),K(je,2,-2),0)}function mo(je,ut,ht,Ue){return Pe(je,ut,ht,Bs,K(je,0,Ue),K(je,Ue+1,-1),Ue)}var Fr=function(ut,ht,Ue){for(var ft=0,Pt=0;ft=Pt,Pt=Ie(),ft===38&&Pt===12&&(ht[Ue]=1),!Kt(Pt);)$e();return ze(ut,He)},to=function(ut,ht){var Ue=-1,ft=44;do switch(Kt(ft)){case 0:ft===38&&Ie()===12&&(ht[Ue]=1),ut[Ue]+=Fr(He-1,ht,Ue);break;case 2:ut[Ue]+=Ct(ft);break;case 4:if(ft===44){ut[++Ue]=Ie()===58?"&\f":"",ht[Ue]=ut[Ue].length;break}default:ut[Ue]+=B(ft)}while(ft=$e());return ut},Ji=function(ut,ht){return nt(to(St(ut),ht))},bo=new WeakMap,xn=function(ut){if(!(ut.type!=="rule"||!ut.parent||ut.length<1)){for(var ht=ut.value,Ue=ut.parent,ft=ut.column===Ue.column&&ut.line===Ue.line;Ue.type!=="rule";)if(Ue=Ue.parent,!Ue)return;if(!(ut.props.length===1&&ht.charCodeAt(0)!==58&&!bo.get(Ue))&&!ft){bo.set(ut,!0);for(var Pt=[],ln=Ji(ht,Pt),sr=Ue.props,Zr=0,Ui=0;Zr-1},gn=function(ut){return function(ht,Ue,ft){if(!(ht.type!=="rule"||ut.compat)){var Pt=ht.value.match(/(:first|:nth|:nth-last)-child/g);if(Pt){for(var ln=!!ht.parent,sr=ln?ht.parent.children:ft,Zr=sr.length-1;Zr>=0;Zr--){var Ui=sr[Zr];if(Ui.line=0;Ue--)if(!$n(ht[Ue]))return!0;return!1},Dr=function(ut){ut.type="",ut.value="",ut.return="",ut.children="",ut.props=""},dr=function(ut,ht,Ue){$n(ut)&&(ut.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Dr(ut)):Ar(ht,Ue)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Dr(ut)))};function Xt(je,ut){switch(k(je,ut)){case 5103:return Yi+"print-"+je+je;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Yi+je+je;case 5349:case 4246:case 4810:case 6968:case 2756:return Yi+je+Ni+je+Pi+je+je;case 6828:case 4268:return Yi+je+Pi+je+je;case 6165:return Yi+je+Pi+"flex-"+je+je;case 5187:return Yi+je+g(je,/(\w+).+(:[^]+)/,Yi+"box-$1$2"+Pi+"flex-$1$2")+je;case 5443:return Yi+je+Pi+"flex-item-"+g(je,/flex-|-self/,"")+je;case 4675:return Yi+je+Pi+"flex-line-pack"+g(je,/align-content|flex-|-self/,"")+je;case 5548:return Yi+je+Pi+g(je,"shrink","negative")+je;case 5292:return Yi+je+Pi+g(je,"basis","preferred-size")+je;case 6060:return Yi+"box-"+g(je,"-grow","")+Yi+je+Pi+g(je,"grow","positive")+je;case 4554:return Yi+g(je,/([^-])(transform)/g,"$1"+Yi+"$2")+je;case 6187:return g(g(g(je,/(zoom-|grab)/,Yi+"$1"),/(image-set)/,Yi+"$1"),je,"")+je;case 5495:case 3959:return g(je,/(image-set\([^]*)/,Yi+"$1$`$1");case 4968:return g(g(je,/(.+:)(flex-)?(.*)/,Yi+"box-pack:$3"+Pi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yi+je+je;case 4095:case 3583:case 4068:case 2532:return g(je,/(.+)-inline(.+)/,Yi+"$1$2")+je;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ce(je)-1-ut>6)switch(O(je,ut+1)){case 109:if(O(je,ut+4)!==45)break;case 102:return g(je,/(.+:)(.+)-([^]+)/,"$1"+Yi+"$2-$3$1"+Ni+(O(je,ut+3)==108?"$3":"$2-$3"))+je;case 115:return~A(je,"stretch")?Xt(g(je,"stretch","fill-available"),ut)+je:je}break;case 4949:if(O(je,ut+1)!==115)break;case 6444:switch(O(je,ce(je)-3-(~A(je,"!important")&&10))){case 107:return g(je,":",":"+Yi)+je;case 101:return g(je,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Yi+(O(je,14)===45?"inline-":"")+"box$3$1"+Yi+"$2$3$1"+Pi+"$2box$3")+je}break;case 5936:switch(O(je,ut+11)){case 114:return Yi+je+Pi+g(je,/[svh]\w+-[tblr]{2}/,"tb")+je;case 108:return Yi+je+Pi+g(je,/[svh]\w+-[tblr]{2}/,"tb-rl")+je;case 45:return Yi+je+Pi+g(je,/[svh]\w+-[tblr]{2}/,"lr")+je}return Yi+je+Pi+je+je}return je}var Cn=function(ut,ht,Ue,ft){if(ut.length>-1&&!ut.return)switch(ut.type){case Bs:ut.return=Xt(ut.value,ut.length);break;case Dt:return bn([De(ut,{value:g(ut.value,"@","@"+Yi)})],ft);case Ts:if(ut.length)return Ee(ut.props,function(Pt){switch(C(Pt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bn([De(ut,{props:[g(Pt,/:(read-\w+)/,":"+Ni+"$1")]})],ft);case"::placeholder":return bn([De(ut,{props:[g(Pt,/:(plac\w+)/,":"+Yi+"input-$1")]}),De(ut,{props:[g(Pt,/:(plac\w+)/,":"+Ni+"$1")]}),De(ut,{props:[g(Pt,/:(plac\w+)/,Pi+"input-$1")]})],ft)}return""})}},er=[Cn],Mr=function(ut){var ht=ut.key;if(ht==="css"){var Ue=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(Ue,function(Ns){var Lo=Ns.getAttribute("data-emotion");Lo.indexOf(" ")!==-1&&(document.head.appendChild(Ns),Ns.setAttribute("data-s",""))})}var ft=ut.stylisPlugins||er,Pt={},ln,sr=[];ln=ut.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+ht+' "]'),function(Ns){for(var Lo=Ns.getAttribute("data-emotion").split(" "),Ps=1;Ps=4;++Ue,ft-=4)ht=je.charCodeAt(Ue)&255|(je.charCodeAt(++Ue)&255)<<8|(je.charCodeAt(++Ue)&255)<<16|(je.charCodeAt(++Ue)&255)<<24,ht=(ht&65535)*1540483477+((ht>>>16)*59797<<16),ht^=ht>>>24,ut=(ht&65535)*1540483477+((ht>>>16)*59797<<16)^(ut&65535)*1540483477+((ut>>>16)*59797<<16);switch(ft){case 3:ut^=(je.charCodeAt(Ue+2)&255)<<16;case 2:ut^=(je.charCodeAt(Ue+1)&255)<<8;case 1:ut^=je.charCodeAt(Ue)&255,ut=(ut&65535)*1540483477+((ut>>>16)*59797<<16)}return ut^=ut>>>13,ut=(ut&65535)*1540483477+((ut>>>16)*59797<<16),((ut^ut>>>15)>>>0).toString(36)}var An={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Xn(je){var ut=Object.create(null);return function(ht){return ut[ht]===void 0&&(ut[ht]=je(ht)),ut[ht]}}var nr=`You have illegal escape sequence in your template literal, most likely inside content's property value. +}`}}),this.blitVertexBuffer=this.createBuffer({usage:rv.VERTEX|rv.COPY_DST,viewOrSize:new Float32Array([-4,-4,4,-4,0,4])}),this.blitInputLayout=this.createInputLayout({vertexBufferDescriptors:[{arrayStride:4*2,stepMode:nS.VERTEX,attributes:[{format:Vu.F32_RG,offset:4*0,shaderLocation:0}]}],indexBufferFormat:null,program:this.blitProgram}),this.blitRenderPipeline=this.createRenderPipeline({topology:Xv.TRIANGLES,sampleCount:1,program:this.blitProgram,colorAttachmentFormats:[Vu.U8_RGBA_RT],depthStencilAttachmentFormat:null,inputLayout:this.blitInputLayout,megaStateDescriptor:GA(Bb)}),this.blitBindings=this.createBindings({samplerBindings:[{sampler:null,texture:d.texture}],uniformBufferBindings:[]}),this.blitProgram.setUniformsLegacy({u_Texture:d}));var c=this.currentRenderPassDescriptor;this.currentRenderPassDescriptor=null,this.inBlitRenderPass=!0;var u=this.createRenderPass({colorAttachment:[d],colorResolveTo:[l],colorClearColor:[xU]}),m=this.getCanvas(),E=m.width,M=m.height;u.setPipeline(this.blitRenderPipeline),u.setBindings(this.blitBindings),u.setVertexInput(this.blitInputLayout,[{buffer:this.blitVertexBuffer}],null),u.setViewport(0,0,E,M),this.gl.disable(this.gl.BLEND),u.draw(3,0),this.gl.enable(this.gl.BLEND),this.currentRenderPassDescriptor=c,this.inBlitRenderPass=!1},o}(),WR=function(){function o(d){this.pluginOptions=d}return o.prototype.createSwapChain=function(d){return(0,Yf.mG)(this,void 0,void 0,function(){var l,c,u,m,E,M,Z,ne,Ce,Oe,Ct;return(0,Yf.Jh)(this,function(Bt){return l=this.pluginOptions,c=l.targets,u=l.xrCompatible,m=l.antialias,E=m===void 0?!1:m,M=l.preserveDrawingBuffer,Z=M===void 0?!1:M,ne=l.premultipliedAlpha,Ce=ne===void 0?!0:ne,Oe={antialias:E,preserveDrawingBuffer:Z,stencil:!0,premultipliedAlpha:Ce,xrCompatible:u},this.handleContextEvents(d),c.includes("webgl2")&&(Ct=d.getContext("webgl2",Oe)||d.getContext("experimental-webgl2",Oe)),!Ct&&c.includes("webgl1")&&(Ct=d.getContext("webgl",Oe)||d.getContext("experimental-webgl",Oe)),[2,new gI(Ct,{shaderDebug:!0,trackResources:!0})]})})},o.prototype.handleContextEvents=function(d){var l=this.pluginOptions,c=l.onContextLost,u=l.onContextRestored,m=l.onContextCreationError;m&&d.addEventListener("webglcontextcreationerror",m,!1),c&&d.addEventListener("webglcontextlost",c,!1),u&&d.addEventListener("webglcontextrestored",u,!1)},o}();let O1;const Xw=typeof TextDecoder!="undefined"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder!="undefined"&&Xw.decode();let IE=null;function mI(){return(IE===null||IE.byteLength===0)&&(IE=new Uint8Array(O1.memory.buffer)),IE}function ZR(o,d){return o=o>>>0,Xw.decode(mI().subarray(o,o+d))}const Yw=new Array(128).fill(void 0);Yw.push(void 0,null,!0,!1);let uS=Yw.length;function HR(o){uS===Yw.length&&Yw.push(Yw.length+1);const d=uS;return uS=Yw[d],Yw[d]=o,d}function PE(o){return Yw[o]}function N8(o){o<132||(Yw[o]=uS,uS=o)}function Ky(o){const d=PE(o);return N8(o),d}let pL=0;const gL=typeof TextEncoder!="undefined"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},kU=typeof gL.encodeInto=="function"?function(o,d){return gL.encodeInto(o,d)}:function(o,d){const l=gL.encode(o);return d.set(l),{read:o.length,written:l.length}};function GR(o,d,l){if(l===void 0){const M=gL.encode(o),Z=d(M.length,1)>>>0;return mI().subarray(Z,Z+M.length).set(M),pL=M.length,Z}let c=o.length,u=d(c,1)>>>0;const m=mI();let E=0;for(;E127)break;m[u+E]=M}if(E!==c){E!==0&&(o=o.slice(E)),u=l(u,c,c=E+o.length*3,1)>>>0;const M=mI().subarray(u+E,u+c),Z=kU(o,M);E+=Z.written}return pL=E,u}let vI=null;function KR(){return(vI===null||vI.byteLength===0)&&(vI=new Int32Array(O1.memory.buffer)),vI}function yI(o,d,l){let c,u;try{const M=O1.__wbindgen_add_to_stack_pointer(-16),Z=GR(o,O1.__wbindgen_malloc,O1.__wbindgen_realloc),ne=pL,Ce=GR(d,O1.__wbindgen_malloc,O1.__wbindgen_realloc),Oe=pL;O1.glsl_compile(M,Z,ne,Ce,Oe,l);var m=KR()[M/4+0],E=KR()[M/4+1];return c=m,u=E,ZR(m,E)}finally{O1.__wbindgen_add_to_stack_pointer(16),O1.__wbindgen_free(c,u,1)}}class K2{static __wrap(d){d=d>>>0;const l=Object.create(K2.prototype);return l.__wbg_ptr=d,l}__destroy_into_raw(){const d=this.__wbg_ptr;return this.__wbg_ptr=0,d}free(){const d=this.__destroy_into_raw();O1.__wbg_wgslcomposer_free(d)}constructor(){const d=O1.wgslcomposer_new();return K2.__wrap(d)}wgsl_compile(d){let l,c;try{const E=O1.__wbindgen_add_to_stack_pointer(-16),M=GR(d,O1.__wbindgen_malloc,O1.__wbindgen_realloc),Z=pL;O1.wgslcomposer_wgsl_compile(E,this.__wbg_ptr,M,Z);var u=KR()[E/4+0],m=KR()[E/4+1];return l=u,c=m,ZR(u,m)}finally{O1.__wbindgen_add_to_stack_pointer(16),O1.__wbindgen_free(l,c,1)}}}function bK(o,d){return Dg(this,null,function*(){if(typeof Response=="function"&&o instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return yield WebAssembly.instantiateStreaming(o,d)}catch(c){if(o.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",c);else throw c}const l=yield o.arrayBuffer();return yield WebAssembly.instantiate(l,d)}else{const l=yield WebAssembly.instantiate(o,d);return l instanceof WebAssembly.Instance?{instance:l,module:o}:l}})}function xK(){const o={};return o.wbg={},o.wbg.__wbindgen_string_new=function(d,l){const c=ZR(d,l);return HR(c)},o.wbg.__wbindgen_object_drop_ref=function(d){Ky(d)},o.wbg.__wbg_log_1d3ae0273d8f4f8a=function(d){console.log(PE(d))},o.wbg.__wbg_log_576ca876af0d4a77=function(d,l){console.log(PE(d),PE(l))},o.wbg.__wbindgen_throw=function(d,l){throw new Error(ZR(d,l))},o}function LE(o,d){return O1=o.exports,wK.__wbindgen_wasm_module=d,vI=null,IE=null,O1}function wK(o){return Dg(this,null,function*(){if(O1!==void 0)return O1;const d=xK();(typeof o=="string"||typeof Request=="function"&&o instanceof Request||typeof URL=="function"&&o instanceof URL)&&(o=fetch(o));const{instance:l,module:c}=yield bK(yield o,d);return LE(l,c)})}var Xy;(function(o){o[o.COPY_SRC=1]="COPY_SRC",o[o.COPY_DST=2]="COPY_DST",o[o.TEXTURE_BINDING=4]="TEXTURE_BINDING",o[o.STORAGE_BINDING=8]="STORAGE_BINDING",o[o.STORAGE=8]="STORAGE",o[o.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"})(Xy||(Xy={}));var mL;(function(o){o[o.READ=1]="READ",o[o.WRITE=2]="WRITE"})(mL||(mL={}));function XR(o){var d=0;return o&xx.SAMPLED&&(d|=Xy.TEXTURE_BINDING|Xy.COPY_DST),o&xx.RENDER_TARGET&&(d|=Xy.RENDER_ATTACHMENT|Xy.TEXTURE_BINDING|Xy.COPY_SRC|Xy.COPY_DST),d}function _I(o){if(o===Vu.U8_R_NORM)return"r8unorm";if(o===Vu.U8_RG_NORM)return"rg8unorm";if(o===Vu.U8_RGBA_RT)return"bgra8unorm";if(o===Vu.U8_RGBA_RT_SRGB)return"bgra8unorm-srgb";if(o===Vu.U8_RGBA_NORM)return"rgba8unorm";if(o===Vu.U8_RGBA_SRGB)return"rgba8unorm-srgb";if(o===Vu.S8_R_NORM)return"r8snorm";if(o===Vu.S8_RG_NORM)return"rg8snorm";if(o===Vu.S8_RGBA_NORM)return"rgba8snorm";if(o===Vu.U32_R)return"r32uint";if(o===Vu.F16_RGBA)return"rgba16float";if(o===Vu.F32_RGBA)return"rgba32float";if(o===Vu.D24)return"depth24plus";if(o===Vu.D24_S8)return"depth24plus-stencil8";if(o===Vu.D32F)return"depth32float";if(o===Vu.D32F_S8)return"depth32float-stencil8";if(o===Vu.BC1)return"bc1-rgba-unorm";if(o===Vu.BC1_SRGB)return"bc1-rgba-unorm-srgb";if(o===Vu.BC2)return"bc2-rgba-unorm";if(o===Vu.BC2_SRGB)return"bc2-rgba-unorm-srgb";if(o===Vu.BC3)return"bc3-rgba-unorm";if(o===Vu.BC3_SRGB)return"bc3-rgba-unorm-srgb";if(o===Vu.BC4_SNORM)return"bc4-r-snorm";if(o===Vu.BC4_UNORM)return"bc4-r-unorm";if(o===Vu.BC5_SNORM)return"bc5-rg-snorm";if(o===Vu.BC5_UNORM)return"bc5-rg-unorm";throw"whoops"}function YR(o){if(o===Rm.TEXTURE_2D)return"2d";if(o===Rm.TEXTURE_CUBE_MAP)return"2d";if(o===Rm.TEXTURE_2D_ARRAY)return"2d";if(o===Rm.TEXTURE_3D)return"3d";throw new Error("whoops")}function qR(o){if(o===Rm.TEXTURE_2D)return"2d";if(o===Rm.TEXTURE_CUBE_MAP)return"cube";if(o===Rm.TEXTURE_2D_ARRAY)return"2d-array";if(o===Rm.TEXTURE_3D)return"3d";throw new Error("whoops")}function JR(o){var d=0;return o&rv.INDEX&&(d|=GPUBufferUsage.INDEX),o&rv.VERTEX&&(d|=GPUBufferUsage.VERTEX),o&rv.UNIFORM&&(d|=GPUBufferUsage.UNIFORM),o&rv.STORAGE&&(d|=GPUBufferUsage.STORAGE),o&rv.COPY_SRC&&(d|=GPUBufferUsage.COPY_SRC),d|=GPUBufferUsage.COPY_DST,d}function N0(o){if(o===Hy.CLAMP_TO_EDGE)return"clamp-to-edge";if(o===Hy.REPEAT)return"repeat";if(o===Hy.MIRRORED_REPEAT)return"mirror-repeat";throw new Error("whoops")}function cS(o){if(o===_1.BILINEAR)return"linear";if(o===_1.POINT)return"nearest";throw new Error("whoops")}function CK(o){if(o===ey.LINEAR)return"linear";if(o===ey.NEAREST)return"nearest";if(o===ey.NO_MIP)return"nearest";throw new Error("whoops")}function qw(o){var d=o;return d.gpuBuffer}function QR(o){var d=o;return d.gpuSampler}function ek(o){var d=o;return d.querySet}function SK(o){if(o===ER.OcclusionConservative)return"occlusion";throw new Error("whoops")}function OU(o){switch(o){case Xv.TRIANGLES:return"triangle-list";case Xv.POINTS:return"point-list";case Xv.TRIANGLE_STRIP:return"triangle-strip";case Xv.LINES:return"line-list";case Xv.LINE_STRIP:return"line-strip";default:throw new Error("Unknown primitive topology mode")}}function EK(o){if(o===Fb.NONE)return"none";if(o===Fb.FRONT)return"front";if(o===Fb.BACK)return"back";throw new Error("whoops")}function TK(o){if(o===SE.CCW)return"ccw";if(o===SE.CW)return"cw";throw new Error("whoops")}function NU(o,d){return{topology:OU(o),cullMode:EK(d.cullMode),frontFace:TK(d.frontFace)}}function F8(o){if(o===Am.ZERO)return"zero";if(o===Am.ONE)return"one";if(o===Am.SRC)return"src";if(o===Am.ONE_MINUS_SRC)return"one-minus-src";if(o===Am.DST)return"dst";if(o===Am.ONE_MINUS_DST)return"one-minus-dst";if(o===Am.SRC_ALPHA)return"src-alpha";if(o===Am.ONE_MINUS_SRC_ALPHA)return"one-minus-src-alpha";if(o===Am.DST_ALPHA)return"dst-alpha";if(o===Am.ONE_MINUS_DST_ALPHA)return"one-minus-dst-alpha";if(o===Am.CONST)return"constant";if(o===Am.ONE_MINUS_CONSTANT)return"one-minus-constant";if(o===Am.SRC_ALPHA_SATURATE)return"src-alpha-saturated";throw new Error("whoops")}function AK(o){if(o===Dy.ADD)return"add";if(o===Dy.SUBSTRACT)return"subtract";if(o===Dy.REVERSE_SUBSTRACT)return"reverse-subtract";if(o===Dy.MIN)return"min";if(o===Dy.MAX)return"max";throw new Error("whoops")}function FU(o){return{operation:AK(o.blendMode),srcFactor:F8(o.blendSrcFactor),dstFactor:F8(o.blendDstFactor)}}function BU(o){return o.blendMode===Dy.ADD&&o.blendSrcFactor===Am.ONE&&o.blendDstFactor===Am.ZERO}function DK(o){if(!(BU(o.rgbBlendState)&&BU(o.alphaBlendState)))return{color:FU(o.rgbBlendState),alpha:FU(o.alphaBlendState)}}function IK(o,d){return{format:_I(d),blend:DK(o),writeMask:o.channelWriteMask}}function PK(o,d){return d.attachmentsState.map(function(l,c){return IK(l,o[c])})}function tk(o){if(o===b0.NEVER)return"never";if(o===b0.LESS)return"less";if(o===b0.EQUAL)return"equal";if(o===b0.LEQUAL)return"less-equal";if(o===b0.GREATER)return"greater";if(o===b0.NOTEQUAL)return"not-equal";if(o===b0.GEQUAL)return"greater-equal";if(o===b0.ALWAYS)return"always";throw new Error("whoops")}function bI(o){if(o===L_.KEEP)return"keep";if(o===L_.REPLACE)return"replace";if(o===L_.ZERO)return"zero";if(o===L_.DECREMENT_CLAMP)return"decrement-clamp";if(o===L_.DECREMENT_WRAP)return"decrement-wrap";if(o===L_.INCREMENT_CLAMP)return"increment-clamp";if(o===L_.INCREMENT_WRAP)return"increment-wrap";if(o===L_.INVERT)return"invert";throw new Error("whoops")}function LK(o,d){if(!CE(o))return{format:_I(o),depthWriteEnabled:!!d.depthWrite,depthCompare:tk(d.depthCompare),depthBias:d.polygonOffset?1:0,depthBiasSlopeScale:d.polygonOffset?1:0,stencilFront:{compare:tk(d.stencilFront.compare),passOp:bI(d.stencilFront.passOp),failOp:bI(d.stencilFront.failOp),depthFailOp:bI(d.stencilFront.depthFailOp)},stencilBack:{compare:tk(d.stencilBack.compare),passOp:bI(d.stencilBack.passOp),failOp:bI(d.stencilBack.failOp),depthFailOp:bI(d.stencilBack.depthFailOp)},stencilReadMask:1,stencilWriteMask:1}}function MK(o){if(o!==null){if(o===Vu.U16_R)return"uint16";if(o===Vu.U32_R)return"uint32";throw new Error("whoops")}}function RK(o){if(o===nS.VERTEX)return"vertex";if(o===nS.INSTANCE)return"instance";throw new Error("whoops")}function kK(o){if(o===Vu.U8_R)return"uint8x2";if(o===Vu.U8_RG)return"uint8x2";if(o===Vu.U8_RGB)return"uint8x4";if(o===Vu.U8_RGBA)return"uint8x4";if(o===Vu.U8_RG_NORM)return"unorm8x2";if(o===Vu.U8_RGBA_NORM)return"unorm8x4";if(o===Vu.S8_RGB_NORM)return"snorm8x4";if(o===Vu.S8_RGBA_NORM)return"snorm8x4";if(o===Vu.U16_RG_NORM)return"unorm16x2";if(o===Vu.U16_RGBA_NORM)return"unorm16x4";if(o===Vu.S16_RG_NORM)return"snorm16x2";if(o===Vu.S16_RGBA_NORM)return"snorm16x4";if(o===Vu.S16_RG)return"uint16x2";if(o===Vu.F16_RG)return"float16x2";if(o===Vu.F16_RGBA)return"float16x4";if(o===Vu.F32_R)return"float32";if(o===Vu.F32_RG)return"float32x2";if(o===Vu.F32_RGB)return"float32x3";if(o===Vu.F32_RGBA)return"float32x4";throw"whoops"}function OK(o){var d=Cx(o);switch(d){case $h.BC1:case $h.BC2:case $h.BC3:case $h.BC4_SNORM:case $h.BC4_UNORM:case $h.BC5_SNORM:case $h.BC5_UNORM:return!0;default:return!1}}function NK(o){var d=Cx(o);switch(d){case $h.BC1:case $h.BC2:case $h.BC3:case $h.BC4_SNORM:case $h.BC4_UNORM:case $h.BC5_SNORM:case $h.BC5_UNORM:return 4;default:return 1}}function zU(o,d,l,c){switch(l===void 0&&(l=!1),o){case Vu.S8_R:case Vu.S8_R_NORM:case Vu.S8_RG_NORM:case Vu.S8_RGB_NORM:case Vu.S8_RGBA_NORM:{var u=d instanceof ArrayBuffer?new Int8Array(d):new Int8Array(d);return c&&u.set(new Int8Array(c)),u}case Vu.U8_R:case Vu.U8_R_NORM:case Vu.U8_RG:case Vu.U8_RG_NORM:case Vu.U8_RGB:case Vu.U8_RGB_NORM:case Vu.U8_RGB_SRGB:case Vu.U8_RGBA:case Vu.U8_RGBA_NORM:case Vu.U8_RGBA_SRGB:{var m=d instanceof ArrayBuffer?new Uint8Array(d):new Uint8Array(d);return c&&m.set(new Uint8Array(c)),m}case Vu.S16_R:case Vu.S16_RG:case Vu.S16_RG_NORM:case Vu.S16_RGB_NORM:case Vu.S16_RGBA:case Vu.S16_RGBA_NORM:{var E=d instanceof ArrayBuffer?new Int16Array(d):new Int16Array(l?d/2:d);return c&&E.set(new Int16Array(c)),E}case Vu.U16_R:case Vu.U16_RGB:case Vu.U16_RGBA_5551:case Vu.U16_RGBA_NORM:case Vu.U16_RG_NORM:case Vu.U16_R_NORM:{var M=d instanceof ArrayBuffer?new Uint16Array(d):new Uint16Array(l?d/2:d);return c&&M.set(new Uint16Array(c)),M}case Vu.S32_R:{var Z=d instanceof ArrayBuffer?new Int32Array(d):new Int32Array(l?d/4:d);return c&&Z.set(new Int32Array(c)),Z}case Vu.U32_R:case Vu.U32_RG:{var ne=d instanceof ArrayBuffer?new Uint32Array(d):new Uint32Array(l?d/4:d);return c&&ne.set(new Uint32Array(c)),ne}case Vu.F32_R:case Vu.F32_RG:case Vu.F32_RGB:case Vu.F32_RGBA:{var Ce=d instanceof ArrayBuffer?new Float32Array(d):new Float32Array(l?d/4:d);return c&&Ce.set(new Float32Array(c)),Ce}}var Oe=d instanceof ArrayBuffer?new Uint8Array(d):new Uint8Array(d);return c&&Oe.set(new Uint8Array(c)),Oe}function FK(o){var d=(o&32768)>>15,l=(o&31744)>>10,c=o&1023;return l===0?(d?-1:1)*Math.pow(2,-14)*(c/Math.pow(2,10)):l==31?c?NaN:(d?-1:1)*(1/0):(d?-1:1)*Math.pow(2,l-15)*(1+c/Math.pow(2,10))}var Jw=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=o.call(this)||this;return m.id=c,m.device=u,m}return d.prototype.destroy=function(){},d}(jA),UU=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;E.type=v0.Bindings;var M=m.pipeline;sm(!!M);var Z=m.uniformBufferBindings,ne=m.storageBufferBindings,Ce=m.samplerBindings;E.numUniformBuffers=(Z==null?void 0:Z.length)||0;var Oe=[[],[]],Ct=0;if(ne&&ne.length)for(var Bt=0;Bt0}).map(function(Ou,Uu){return E.device.device.createBindGroup({layout:M.getBindGroupLayout(Uu),entries:Ou})}),E}return d}(Jw),Qw=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;E.type=v0.Buffer;var M=m.usage,Z=m.viewOrSize,ne=!!(M&rv.MAP_READ);E.usage=JR(M),ne&&(E.usage=rv.MAP_READ|rv.COPY_DST);var Ce=!wE(Z);if(E.view=wE(Z)?null:Z,E.size=wE(Z)?IR(Z,4):IR(Z.byteLength,4),wE(Z))E.gpuBuffer=E.device.device.createBuffer({usage:E.usage,size:E.size,mappedAtCreation:ne?Ce:!1});else{E.gpuBuffer=E.device.device.createBuffer({usage:E.usage,size:E.size,mappedAtCreation:!0});var Oe=Z&&Z.constructor||Float32Array;new Oe(E.gpuBuffer.getMappedRange()).set(Z),E.gpuBuffer.unmap()}return E}return d.prototype.setSubData=function(l,c,u,m){u===void 0&&(u=0),m===void 0&&(m=0);var E=this.gpuBuffer;m=m||c.byteLength,m=Math.min(m,this.size-l);var M=c.byteOffset+u,Z=M+m,ne=m+3&-4;if(ne!==m){var Ce=new Uint8Array(c.buffer.slice(M,Z));c=new Uint8Array(ne),c.set(Ce),u=0,M=0,Z=ne,m=ne}for(var Oe=1024*1024*15,Ct=0;Z-(M+Ct)>Oe;)this.device.device.queue.writeBuffer(E,l+Ct,c.buffer,M+Ct,Oe),Ct+=Oe;this.device.device.queue.writeBuffer(E,l+Ct,c.buffer,M+Ct,m-Ct)},d.prototype.destroy=function(){o.prototype.destroy.call(this),this.gpuBuffer.destroy()},d}(Jw),iee=function(){function o(){this.commandEncoder=null,this.gpuComputePassEncoder=null}return o.prototype.dispatchWorkgroups=function(d,l,c){this.gpuComputePassEncoder.dispatchWorkgroups(d,l,c)},o.prototype.dispatchWorkgroupsIndirect=function(d,l){this.gpuComputePassEncoder.dispatchWorkgroupsIndirect(d.gpuBuffer,l)},o.prototype.finish=function(){return this.gpuComputePassEncoder.end(),this.gpuComputePassEncoder=null,this.commandEncoder.finish()},o.prototype.beginComputePass=function(){sm(this.gpuComputePassEncoder===null),this.gpuComputePassEncoder=this.commandEncoder.beginComputePass(this.gpuComputePassDescriptor)},o.prototype.setPipeline=function(d){var l=d,c=rS(l.gpuComputePipeline);this.gpuComputePassEncoder.setPipeline(c)},o.prototype.setBindings=function(d){var l=d;this.gpuComputePassEncoder.setBindGroup(0,l.gpuBindGroup[0])},o.prototype.pushDebugGroup=function(d){this.gpuComputePassEncoder.pushDebugGroup(d)},o.prototype.popDebugGroup=function(){this.gpuComputePassEncoder.popDebugGroup()},o.prototype.insertDebugMarker=function(d){this.gpuComputePassEncoder.insertDebugMarker(d)},o}(),BK=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;E.type=v0.ComputePipeline,E.gpuComputePipeline=null,E.descriptor=m;var M=m.program,Z=M.computeStage;if(Z===null)return E;var ne={layout:"auto",compute:(0,Yf.pi)({},Z)};return E.gpuComputePipeline=E.device.device.createComputePipeline(ne),E.name!==void 0&&(E.gpuComputePipeline.label=E.name),E}return d.prototype.getBindGroupLayout=function(l){return this.gpuComputePipeline.getBindGroupLayout(l)},d}(Jw),vL=function(o){(0,Yf.ZT)(d,o);function d(l){var c,u,m,E,M=l.id,Z=l.device,ne=l.descriptor,Ce=o.call(this,{id:M,device:Z})||this;Ce.type=v0.InputLayout;var Oe=[];try{for(var Ct=(0,Yf.XA)(ne.vertexBufferDescriptors),Bt=Ct.next();!Bt.done;Bt=Ct.next()){var An=Bt.value,kn=An.arrayStride,Ir=An.stepMode,ui=An.attributes;Oe.push({arrayStride:kn,stepMode:RK(Ir),attributes:[]});try{for(var ao=(m=void 0,(0,Yf.XA)(ui)),wo=ao.next();!wo.done;wo=ao.next()){var Ds=wo.value,oa=Ds.shaderLocation,fa=Ds.format,Wa=Ds.offset;Oe[Oe.length-1].attributes.push({shaderLocation:oa,format:kK(fa),offset:Wa})}}catch(vl){m={error:vl}}finally{try{wo&&!wo.done&&(E=ao.return)&&E.call(ao)}finally{if(m)throw m.error}}}}catch(vl){c={error:vl}}finally{try{Bt&&!Bt.done&&(u=Ct.return)&&u.call(Ct)}finally{if(c)throw c.error}}return Ce.indexFormat=MK(ne.indexBufferFormat),Ce.buffers=Oe,Ce}return d}(Jw),$U=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;return E.type=v0.Program,E.vertexStage=null,E.fragmentStage=null,E.computeStage=null,E.descriptor=m,m.vertex&&(E.vertexStage=E.createShaderStage(m.vertex,"vertex")),m.fragment&&(E.fragmentStage=E.createShaderStage(m.fragment,"fragment")),m.compute&&(E.computeStage=E.createShaderStage(m.compute,"compute")),E}return d.prototype.setUniformsLegacy=function(l){},d.prototype.createShaderStage=function(l,c){var u,m,E=l.glsl,M=l.wgsl,Z=l.entryPoint,ne=!1,Ce=M;if(!Ce)try{Ce=this.device.glsl_compile(E,c,ne)}catch(Ir){throw console.error(Ir,E),new Error("whoops")}var Oe=function(Ir){if(!Ce.includes(Ir))return"continue";Ce=Ce.replace("var T_".concat(Ir,": texture_2d;"),"var T_".concat(Ir,": texture_depth_2d;")),Ce=Ce.replace(new RegExp("textureSample\\(T_".concat(Ir,"(.*)\\);$"),"gm"),function(ui,ao){return"vec4(textureSample(T_".concat(Ir).concat(ao,"), 0.0, 0.0, 0.0);")})};try{for(var Ct=(0,Yf.XA)(["u_TextureFramebufferDepth"]),Bt=Ct.next();!Bt.done;Bt=Ct.next()){var An=Bt.value;Oe(An)}}catch(Ir){u={error:Ir}}finally{try{Bt&&!Bt.done&&(m=Ct.return)&&m.call(Ct)}finally{if(u)throw u.error}}var kn=this.device.device.createShaderModule({code:Ce});return{module:kn,entryPoint:Z||"main"}},d}(Jw),VU=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;E.type=v0.QueryPool;var M=m.elemCount,Z=m.type;return E.querySet=E.device.device.createQuerySet({type:SK(Z),count:M}),E.resolveBuffer=E.device.device.createBuffer({size:M*8,usage:GPUBufferUsage.QUERY_RESOLVE|GPUBufferUsage.COPY_SRC}),E.cpuBuffer=E.device.device.createBuffer({size:M*8,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ}),E.results=null,E}return d.prototype.queryResultOcclusion=function(l){return this.results===null?null:this.results[l]!==BigInt(0)},d.prototype.destroy=function(){o.prototype.destroy.call(this),this.querySet.destroy(),this.resolveBuffer.destroy(),this.cpuBuffer.destroy()},d}(Jw),jU=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=o.call(this,{id:c,device:u})||this;return m.type=v0.Readback,m}return d.prototype.readTexture=function(l,c,u,m,E,M,Z,ne){return Z===void 0&&(Z=0),(0,Yf.mG)(this,void 0,void 0,function(){var Ce,Oe,Ct,Bt,An,kn,Ir,ui;return(0,Yf.Jh)(this,function(ao){return Ce=l,Oe=0,Ct=this.getBlockInformationFromFormat(Ce.gpuTextureformat),Bt=Math.ceil(m/Ct.width)*Ct.length,An=Math.ceil(Bt/256)*256,kn=An*E,Ir=this.device.createBuffer({usage:rv.STORAGE|rv.MAP_READ|rv.COPY_DST,hint:j2.STATIC,viewOrSize:kn}),ui=this.device.device.createCommandEncoder(),ui.copyTextureToBuffer({texture:Ce.gpuTexture,mipLevel:0,origin:{x:c,y:u,z:Math.max(Oe,0)}},{buffer:Ir.gpuBuffer,offset:0,bytesPerRow:An},{width:m,height:E,depthOrArrayLayers:1}),this.device.device.queue.submit([ui.finish()]),[2,this.readBuffer(Ir,0,M.byteLength===kn?M:null,Z,kn,Ce.format)]})})},d.prototype.readTextureSync=function(l,c,u,m,E,M,Z,ne){throw new Error("ERROR_MSG_METHOD_NOT_IMPLEMENTED")},d.prototype.readBuffer=function(l,c,u,m,E,M,Z,ne){var Ce=this;c===void 0&&(c=0),u===void 0&&(u=null),E===void 0&&(E=0),M===void 0&&(M=Vu.U8_RGB),Z===void 0&&(Z=!1);var Oe=l,Ct=E||Oe.size,Bt=u||Oe.view,An=Bt&&Bt.constructor&&Bt.constructor.BYTES_PER_ELEMENT||rL(M),kn=Oe;if(!(Oe.usage&rv.MAP_READ&&Oe.usage&rv.COPY_DST)){var Ir=this.device.device.createCommandEncoder();kn=this.device.createBuffer({usage:rv.STORAGE|rv.MAP_READ|rv.COPY_DST,hint:j2.STATIC,viewOrSize:Ct}),Ir.copyBufferToBuffer(Oe.gpuBuffer,c,kn.gpuBuffer,0,Ct),this.device.device.queue.submit([Ir.finish()])}return new Promise(function(ui,ao){kn.gpuBuffer.mapAsync(mL.READ,c,Ct).then(function(){var wo=kn.gpuBuffer.getMappedRange(c,Ct),Ds=Bt;if(Z)Ds===null?Ds=zU(M,Ct,!0,wo):Ds=zU(M,Ds.buffer,void 0,wo);else if(Ds===null)switch(An){case 1:Ds=new Uint8Array(Ct),Ds.set(new Uint8Array(wo));break;case 2:Ds=Ce.getHalfFloatAsFloatRGBAArrayBuffer(Ct/2,wo);break;case 4:Ds=new Float32Array(Ct/4),Ds.set(new Float32Array(wo));break}else switch(An){case 1:Ds=new Uint8Array(Ds.buffer),Ds.set(new Uint8Array(wo));break;case 2:Ds=Ce.getHalfFloatAsFloatRGBAArrayBuffer(Ct/2,wo,Bt);break;case 4:var oa=Bt&&Bt.constructor||Float32Array;Ds=new oa(Ds.buffer),Ds.set(new oa(wo));break}kn.gpuBuffer.unmap(),ui(Ds)},function(wo){return ao(wo)})})},d.prototype.getHalfFloatAsFloatRGBAArrayBuffer=function(l,c,u){u||(u=new Float32Array(l));for(var m=new Uint16Array(c);l--;)u[l]=FK(m[l]);return u},d.prototype.getBlockInformationFromFormat=function(l){switch(l){case"r8unorm":case"r8snorm":case"r8uint":case"r8sint":return{width:1,height:1,length:1};case"r16uint":case"r16sint":case"r16float":case"rg8unorm":case"rg8snorm":case"rg8uint":case"rg8sint":return{width:1,height:1,length:2};case"r32uint":case"r32sint":case"r32float":case"rg16uint":case"rg16sint":case"rg16float":case"rgba8unorm":case"rgba8unorm-srgb":case"rgba8snorm":case"rgba8uint":case"rgba8sint":case"bgra8unorm":case"bgra8unorm-srgb":case"rgb9e5ufloat":case"rgb10a2unorm":case"rg11b10ufloat":return{width:1,height:1,length:4};case"rg32uint":case"rg32sint":case"rg32float":case"rgba16uint":case"rgba16sint":case"rgba16float":return{width:1,height:1,length:8};case"rgba32uint":case"rgba32sint":case"rgba32float":return{width:1,height:1,length:16};case"stencil8":throw new Error("No fixed size for Stencil8 format!");case"depth16unorm":return{width:1,height:1,length:2};case"depth24plus":throw new Error("No fixed size for Depth24Plus format!");case"depth24plus-stencil8":throw new Error("No fixed size for Depth24PlusStencil8 format!");case"depth32float":return{width:1,height:1,length:4};case"depth32float-stencil8":return{width:1,height:1,length:5};case"bc7-rgba-unorm":case"bc7-rgba-unorm-srgb":case"bc6h-rgb-ufloat":case"bc6h-rgb-float":case"bc2-rgba-unorm":case"bc2-rgba-unorm-srgb":case"bc3-rgba-unorm":case"bc3-rgba-unorm-srgb":case"bc5-rg-unorm":case"bc5-rg-snorm":return{width:4,height:4,length:16};case"bc4-r-unorm":case"bc4-r-snorm":case"bc1-rgba-unorm":case"bc1-rgba-unorm-srgb":return{width:4,height:4,length:8};default:return{width:1,height:1,length:4}}},d}(Jw),B8=function(){function o(d){this.device=d,this.commandEncoder=null,this.gpuRenderPassEncoder=null,this.gfxColorAttachment=[],this.gfxColorAttachmentLevel=[],this.gfxColorResolveTo=[],this.gfxColorResolveToLevel=[],this.gfxDepthStencilAttachment=null,this.gfxDepthStencilResolveTo=null,this.gpuColorAttachments=[],this.gpuDepthStencilAttachment={view:null,depthLoadOp:"load",depthStoreOp:"store",stencilLoadOp:"load",stencilStoreOp:"store"},this.gpuRenderPassDescriptor={colorAttachments:this.gpuColorAttachments,depthStencilAttachment:this.gpuDepthStencilAttachment}}return o.prototype.getTextureView=function(d,l){return sm(l1?Ct.resolveTarget=this.getTextureView(Oe,this.gfxColorResolveToLevel[ne]):Ct.storeOp="store")}else{this.gpuColorAttachments.length=ne,this.gfxColorAttachment.length=ne,this.gfxColorResolveTo.length=ne;break}}if(this.gfxDepthStencilAttachment=d.depthStencilAttachment,this.gfxDepthStencilResolveTo=d.depthStencilResolveTo,d.depthStencilAttachment){var An=d.depthStencilAttachment,Ct=this.gpuDepthStencilAttachment;Ct.view=An.gpuTextureView;var kn=!!(ZA(An.format)&$f.Depth);kn?(d.depthClearValue==="load"?Ct.depthLoadOp="load":(Ct.depthLoadOp="clear",Ct.depthClearValue=d.depthClearValue),d.depthStencilStore||this.gfxDepthStencilResolveTo!==null?Ct.depthStoreOp="store":Ct.depthStoreOp="discard"):(Ct.depthLoadOp=void 0,Ct.depthStoreOp=void 0);var Ir=!!(ZA(An.format)&$f.Stencil);Ir?(d.stencilClearValue==="load"?Ct.stencilLoadOp="load":(Ct.stencilLoadOp="clear",Ct.stencilClearValue=d.stencilClearValue),d.depthStencilStore||this.gfxDepthStencilResolveTo!==null?Ct.stencilStoreOp="store":Ct.stencilStoreOp="discard"):(Ct.stencilLoadOp=void 0,Ct.stencilStoreOp=void 0),this.gpuRenderPassDescriptor.depthStencilAttachment=this.gpuDepthStencilAttachment}else this.gpuRenderPassDescriptor.depthStencilAttachment=void 0;this.gpuRenderPassDescriptor.occlusionQuerySet=CE(d.occlusionQueryPool)?void 0:ek(d.occlusionQueryPool)},o.prototype.beginRenderPass=function(d){sm(this.gpuRenderPassEncoder===null),this.setRenderPassDescriptor(d),this.gpuRenderPassEncoder=this.commandEncoder.beginRenderPass(this.gpuRenderPassDescriptor)},o.prototype.flipY=function(d,l){var c=this.device.swapChainHeight;return c-d-l},o.prototype.setViewport=function(d,l,c,u,m,E){m===void 0&&(m=0),E===void 0&&(E=1),this.gpuRenderPassEncoder.setViewport(d,this.flipY(l,u),c,u,m,E)},o.prototype.setScissorRect=function(d,l,c,u){this.gpuRenderPassEncoder.setScissorRect(d,this.flipY(l,u),c,u)},o.prototype.setPipeline=function(d){var l=d,c=rS(l.gpuRenderPipeline);this.gpuRenderPassEncoder.setPipeline(c)},o.prototype.setVertexInput=function(d,l,c){if(d!==null){var u=d;c!==null&&this.gpuRenderPassEncoder.setIndexBuffer(qw(c.buffer),rS(u.indexFormat),c.offset);for(var m=0;m1||this.copyAttachment(this.gfxDepthStencilResolveTo,0,this.gfxDepthStencilAttachment,0)),this.commandEncoder.finish()},o.prototype.copyAttachment=function(d,l,c,u){sm(c.sampleCount===1);var m={texture:c.gpuTexture,mipLevel:u},E={texture:d.gpuTexture,mipLevel:l};sm(c.width>>>u===d.width>>>l),sm(c.height>>>u===d.height>>>l),sm(!!(c.usage&Xy.COPY_SRC)),sm(!!(d.usage&Xy.COPY_DST)),this.commandEncoder.copyTextureToTexture(m,E,[d.width,d.height,1])},o}(),WU=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;return E.type=v0.RenderPipeline,E.isCreatingAsync=!1,E.gpuRenderPipeline=null,E.descriptor=m,E.device.createRenderPipelineInternal(E,!1),E}return d.prototype.getBindGroupLayout=function(l){return this.gpuRenderPipeline.getBindGroupLayout(l)},d}(Jw),ZU=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E,M,Z=o.call(this,{id:c,device:u})||this;Z.type=v0.Sampler;var ne=m.lodMinClamp,Ce=m.mipmapFilter===ey.NO_MIP?m.lodMinClamp:m.lodMaxClamp,Oe=(E=m.maxAnisotropy)!==null&&E!==void 0?E:1;return Oe>1&&sm(m.minFilter===_1.BILINEAR&&m.magFilter===_1.BILINEAR&&m.mipmapFilter===ey.LINEAR),Z.gpuSampler=Z.device.device.createSampler({addressModeU:N0(m.addressModeU),addressModeV:N0(m.addressModeV),addressModeW:N0((M=m.addressModeW)!==null&&M!==void 0?M:m.addressModeU),lodMinClamp:ne,lodMaxClamp:Ce,minFilter:cS(m.minFilter),magFilter:cS(m.magFilter),mipmapFilter:CK(m.mipmapFilter),compare:m.compareFunction!==void 0?tk(m.compareFunction):void 0,maxAnisotropy:Oe}),Z}return d}(Jw),JA=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=l.skipCreate,M=l.sampleCount,Z=o.call(this,{id:c,device:u})||this;Z.type=v0.Texture,Z.flipY=!1;var ne=m.format,Ce=m.dimension,Oe=m.width,Ct=m.height,Bt=m.depthOrArrayLayers,An=m.mipLevelCount,kn=m.usage,Ir=m.pixelStore;return Z.flipY=!!(Ir!=null&&Ir.unpackFlipY),Z.device.createTextureShared({format:ne,dimension:Ce!=null?Ce:Rm.TEXTURE_2D,width:Oe,height:Ct,depthOrArrayLayers:Bt!=null?Bt:1,mipLevelCount:An!=null?An:1,usage:kn,sampleCount:M!=null?M:1},Z,E),Z}return d.prototype.textureFromImageBitmapOrCanvas=function(l,c,u){for(var m=c[0].width,E=c[0].height,M={size:{width:m,height:E,depthOrArrayLayers:u},format:"rgba8unorm",usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST|GPUTextureUsage.RENDER_ATTACHMENT},Z=l.createTexture(M),ne=0;ne>>2,uniformBufferWordAlignment:this.device.limits.minUniformBufferOffsetAlignment>>>2,supportedSampleCounts:[1],occlusionQueriesRecommended:!0,computeShadersSupported:!0}},o.prototype.queryTextureFormatSupported=function(d,l,c){if(OK(d)){if(!this.featureTextureCompressionBC)return!1;var u=NK(d);return l%u!==0||c%u!==0?!1:this.featureTextureCompressionBC}switch(d){case Vu.U16_RGBA_NORM:return!1;case Vu.F32_RGBA:return!1}return!0},o.prototype.queryPlatformAvailable=function(){return!0},o.prototype.queryVendorInfo=function(){return this},o.prototype.queryRenderPass=function(d){var l=d;return l.descriptor},o.prototype.queryRenderTarget=function(d){var l=d;return l},o.prototype.setResourceName=function(d,l){if(d.name=l,d.type===v0.Buffer){var c=d;c.gpuBuffer.label=l}else if(d.type===v0.Texture){var c=d;c.gpuTexture.label=l,c.gpuTextureView.label=l}else if(d.type===v0.RenderTarget){var c=d;c.gpuTexture.label=l,c.gpuTextureView.label=l}else if(d.type===v0.Sampler){var c=d;c.gpuSampler.label=l}else if(d.type===v0.RenderPipeline){var c=d;c.gpuRenderPipeline!==null&&(c.gpuRenderPipeline.label=l)}},o.prototype.setResourceLeakCheck=function(d,l){},o.prototype.checkForLeaks=function(){},o.prototype.programPatched=function(d){},o.prototype.pipelineQueryReady=function(d){var l=d;return l.gpuRenderPipeline!==null},o.prototype.pipelineForceReady=function(d){var l=d;this.createRenderPipelineInternal(l,!1)},o}(),HU=function(){function o(d){this.pluginOptions=d}return o.prototype.createSwapChain=function(d){return(0,Yf.mG)(this,void 0,void 0,function(){var l,c,u,m,E,M,Z,ne;return(0,Yf.Jh)(this,function(Ce){switch(Ce.label){case 0:if(globalThis.navigator.gpu===void 0)return[2,null];l=null,Ce.label=1;case 1:return Ce.trys.push([1,3,,4]),c=this.pluginOptions.xrCompatible,[4,globalThis.navigator.gpu.requestAdapter({xrCompatible:c})];case 2:return l=Ce.sent(),[3,4];case 3:return u=Ce.sent(),console.log(u),[3,4];case 4:return l===null?[2,null]:(m=["depth32float-stencil8","texture-compression-bc"],E=m.filter(function(Oe){return l.features.has(Oe)}),[4,l.requestDevice({requiredFeatures:E})]);case 5:if(M=Ce.sent(),M&&(Z=this.pluginOptions.onContextLost,M.lost.then(function(){Z&&Z()})),M===null)return[2,null];if(ne=d.getContext("webgpu"),!ne)return[2,null];Ce.label=6;case 6:return Ce.trys.push([6,8,,9]),[4,wK(this.pluginOptions.shaderCompilerPath)];case 7:return Ce.sent(),[3,9];case 8:return Ce.sent(),[3,9];case 9:return[2,new xI(l,M,d,ne,yI,K2&&new K2)]}})})},o}(),eC=fs.isPlainObject,QA=fs.isTypedArray,zK=function(){function o(d,l){(0,wt.Z)(this,o),(0,Tn.Z)(this,"destroyed",!1),(0,Tn.Z)(this,"uniforms",{}),this.reGl=d;var c=l.vs,u=l.fs,m=l.attributes,E=l.uniforms,M=l.primitive,Z=l.count,ne=l.elements,Ce=l.depth,Oe=l.cull,Ct=l.instances,Bt={platformString:"WebGL1",glslVersion:"#version 100",explicitBindingLocations:!1,separateSamplerTextures:!1,viewportOrigin:WA.LOWER_LEFT,clipSpaceNearZ:W2.NEGATIVE_ONE,supportMRT:!1},An={};this.options=l,E&&(this.uniforms=this.extractUniforms(E),Object.keys(E).forEach(function(ui){An[ui]=d.prop(ui)}));var kn={};Object.keys(m).forEach(function(ui){kn[ui]=m[ui].get()});var Ir={attributes:kn,frag:Pt(sS(Bt,"frag",u,null,!1)),uniforms:An,vert:Pt(sS(Bt,"vert",c,null,!1)),colorMask:d.prop("colorMask"),lineWidth:1,blend:{enable:d.prop("blend.enable"),func:d.prop("blend.func"),equation:d.prop("blend.equation"),color:d.prop("blend.color")},stencil:{enable:d.prop("stencil.enable"),mask:d.prop("stencil.mask"),func:d.prop("stencil.func"),opFront:d.prop("stencil.opFront"),opBack:d.prop("stencil.opBack")},primitive:ZG[M===void 0?Ai.TRIANGLES:M]};Ct&&(Ir.instances=Ct),Z?Ir.count=Z:ne&&(Ir.elements=ne.get()),this.initDepthDrawParams({depth:Ce},Ir),this.initCullDrawParams({cull:Oe},Ir),this.drawCommand=d(Ir),this.drawParams=Ir}return(0,nt.Z)(o,[{key:"updateAttributesAndElements",value:function(l,c){var u={};Object.keys(l).forEach(function(m){u[m]=l[m].get()}),this.drawParams.attributes=u,this.drawParams.elements=c.get(),this.drawCommand=this.reGl(this.drawParams)}},{key:"updateAttributes",value:function(l){var c={};Object.keys(l).forEach(function(u){c[u]=l[u].get()}),this.drawParams.attributes=c,this.drawCommand=this.reGl(this.drawParams)}},{key:"addUniforms",value:function(l){this.uniforms=(0,Be.Z)((0,Be.Z)({},this.uniforms),this.extractUniforms(l))}},{key:"draw",value:function(l,c){if(!(this.drawParams.attributes&&Object.keys(this.drawParams.attributes).length===0)){var u=(0,Be.Z)((0,Be.Z)({},this.uniforms),this.extractUniforms(l.uniforms||{})),m={};Object.keys(u).forEach(function(E){var M=(0,ai.Z)(u[E]);M==="boolean"||M==="number"||Array.isArray(u[E])||u[E].BYTES_PER_ELEMENT?m[E]=u[E]:m[E]=u[E].get()}),m.blend=c?this.getBlendDrawParams({blend:{enable:!1}}):this.getBlendDrawParams(l),m.stencil=this.getStencilDrawParams(l),m.colorMask=this.getColorMaskDrawParams(l,c),this.drawCommand(m)}}},{key:"destroy",value:function(){var l;(l=this.drawParams)===null||l===void 0||(l=l.elements)===null||l===void 0||l.destroy(),this.options.attributes&&Object.values(this.options.attributes).forEach(function(c){c==null||c.destroy()}),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(l,c){var u=l.depth;u&&(c.depth={enable:u.enable===void 0?!0:!!u.enable,mask:u.mask===void 0?!0:!!u.mask,func:VA[u.func||Ai.LESS],range:u.range||[0,1]})}},{key:"getBlendDrawParams",value:function(l){var c=l.blend,u=c||{},m=u.enable,E=u.func,M=u.equation,Z=u.color,ne=Z===void 0?[0,0,0,0]:Z;return{enable:!!m,func:{srcRGB:QP[E&&E.srcRGB||Ai.SRC_ALPHA],srcAlpha:QP[E&&E.srcAlpha||Ai.SRC_ALPHA],dstRGB:QP[E&&E.dstRGB||Ai.ONE_MINUS_SRC_ALPHA],dstAlpha:QP[E&&E.dstAlpha||Ai.ONE_MINUS_SRC_ALPHA]},equation:{rgb:JP[M&&M.rgb||Ai.FUNC_ADD],alpha:JP[M&&M.alpha||Ai.FUNC_ADD]},color:ne}}},{key:"getStencilDrawParams",value:function(l){var c=l.stencil,u=c||{},m=u.enable,E=u.mask,M=E===void 0?-1:E,Z=u.func,ne=Z===void 0?{cmp:Ai.ALWAYS,ref:0,mask:-1}:Z,Ce=u.opFront,Oe=Ce===void 0?{fail:Ai.KEEP,zfail:Ai.KEEP,zpass:Ai.KEEP}:Ce,Ct=u.opBack,Bt=Ct===void 0?{fail:Ai.KEEP,zfail:Ai.KEEP,zpass:Ai.KEEP}:Ct;return{enable:!!m,mask:M,func:(0,Be.Z)((0,Be.Z)({},ne),{},{cmp:p8[ne.cmp]}),opFront:{fail:bE[Oe.fail],zfail:bE[Oe.zfail],zpass:bE[Oe.zpass]},opBack:{fail:bE[Bt.fail],zfail:bE[Bt.zfail],zpass:bE[Bt.zpass]}}}},{key:"getColorMaskDrawParams",value:function(l,c){var u=l.stencil,m=u!=null&&u.enable&&u.opFront&&!c?[!1,!1,!1,!1]:[!0,!0,!0,!0];return m}},{key:"initCullDrawParams",value:function(l,c){var u=l.cull;if(u){var m=u.enable,E=u.face,M=E===void 0?Ai.BACK:E;c.cull={enable:!!m,face:eL[M]}}}},{key:"extractUniforms",value:function(l){var c=this,u={};return Object.keys(l).forEach(function(m){c.extractUniformsRecursively(m,l[m],u,"")}),u}},{key:"extractUniformsRecursively",value:function(l,c,u,m){var E=this;if(c===null||typeof c=="number"||typeof c=="boolean"||Array.isArray(c)&&typeof c[0]=="number"||QA(c)||c===""||"resize"in c){u["".concat(m&&m+".").concat(l)]=c;return}eC(c)&&Object.keys(c).forEach(function(M){E.extractUniformsRecursively(M,c[M],u,"".concat(m&&m+".").concat(l))}),Array.isArray(c)&&c.forEach(function(M,Z){Object.keys(M).forEach(function(ne){E.extractUniformsRecursively(ne,M[ne],u,"".concat(m&&m+".").concat(l,"[").concat(Z,"]"))})})}}]),o}(),z8=function(){function o(d,l){(0,wt.Z)(this,o),(0,Tn.Z)(this,"isDestroy",!1);var c=l.data,u=l.type,m=u===void 0?Ai.UNSIGNED_BYTE:u,E=l.width,M=l.height,Z=l.flipY,ne=Z===void 0?!1:Z,Ce=l.format,Oe=Ce===void 0?Ai.RGBA:Ce,Ct=l.mipmap,Bt=Ct===void 0?!1:Ct,An=l.wrapS,kn=An===void 0?Ai.CLAMP_TO_EDGE:An,Ir=l.wrapT,ui=Ir===void 0?Ai.CLAMP_TO_EDGE:Ir,ao=l.aniso,wo=ao===void 0?0:ao,Ds=l.alignment,oa=Ds===void 0?1:Ds,fa=l.premultiplyAlpha,Wa=fa===void 0?!1:fa,vl=l.mag,Ql=vl===void 0?Ai.NEAREST:vl,Ou=l.min,Uu=Ou===void 0?Ai.NEAREST:Ou,hh=l.colorSpace,Ph=hh===void 0?Ai.BROWSER_DEFAULT_WEBGL:hh,Ld=l.x,mg=Ld===void 0?0:Ld,Yg=l.y,am=Yg===void 0?0:Yg,iv=l.copy,Dm=iv===void 0?!1:iv;this.width=E,this.height=M;var gy={width:E,height:M,type:wR[m],format:mU[Oe],wrapS:f8[kn],wrapT:f8[ui],mag:CR[Ql],min:CR[Uu],alignment:oa,flipY:ne,colorSpace:vU[Ph],premultiplyAlpha:Wa,aniso:wo,x:mg,y:am,copy:Dm};c&&(gy.data=c),typeof Bt=="number"?gy.mipmap=d8[Bt]:typeof Bt=="boolean"&&(gy.mipmap=Bt),this.texture=d.texture(gy)}return(0,nt.Z)(o,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.texture(l)}},{key:"bind",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(l){var c=l.width,u=l.height;this.texture.resize(c,u),this.width=c,this.height=u}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var l;(l=this.texture)===null||l===void 0||l.destroy()}this.isDestroy=!0}}]),o}(),k_,nk,oee=(k_=(0,Go.b2)(),k_(nk=function(){function o(){var d=this;(0,wt.Z)(this,o),(0,Tn.Z)(this,"uniformBuffers",[]),(0,Tn.Z)(this,"createModel",function(l){return new zK(d.gl,l)}),(0,Tn.Z)(this,"createAttribute",function(l){return new UA(d.gl,l)}),(0,Tn.Z)(this,"createBuffer",function(l){return new om(d.gl,l)}),(0,Tn.Z)(this,"createElements",function(l){return new xE(d.gl,l)}),(0,Tn.Z)(this,"createTexture2D",function(l){return new z8(d.gl,l)}),(0,Tn.Z)(this,"createFramebuffer",function(l){return new HG(d.gl,l)}),(0,Tn.Z)(this,"useFramebuffer",function(l,c){d.gl({framebuffer:l?l.get():null})(c)}),(0,Tn.Z)(this,"clear",function(l){var c,u=l.color,m=l.depth,E=l.stencil,M=l.framebuffer,Z=M===void 0?null:M,ne={color:u,depth:m,stencil:E};ne.framebuffer=Z===null?Z:Z.get(),(c=d.gl)===null||c===void 0||c.clear(ne)}),(0,Tn.Z)(this,"viewport",function(l){var c=l.x,u=l.y,m=l.width,E=l.height;d.gl._gl.viewport(c,u,m,E),d.width=m,d.height=E,d.gl._refresh()}),(0,Tn.Z)(this,"readPixels",function(l){var c=l.framebuffer,u=l.x,m=l.y,E=l.width,M=l.height,Z={x:u,y:m,width:E,height:M};return c&&(Z.framebuffer=c.get()),d.gl.read(Z)}),(0,Tn.Z)(this,"getViewportSize",function(){return{width:d.gl._gl.drawingBufferWidth,height:d.gl._gl.drawingBufferHeight}}),(0,Tn.Z)(this,"getContainer",function(){var l;return(l=d.canvas)===null||l===void 0?void 0:l.parentElement}),(0,Tn.Z)(this,"getCanvas",function(){return d.canvas}),(0,Tn.Z)(this,"getGLContext",function(){return d.gl._gl}),(0,Tn.Z)(this,"destroy",function(){var l;d.canvas=null,(l=d.gl)===null||l===void 0||(l=l._gl)===null||l===void 0||(l=l.getExtension("WEBGL_lose_context"))===null||l===void 0||l.loseContext(),d.gl.destroy(),d.gl=null})}return(0,nt.Z)(o,[{key:"init",value:function(){var d=(0,Pl.Z)(Oi().mark(function c(u,m,E){var M=this;return Oi().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(this.canvas=u,!E){ne.next=5;break}this.gl=E,ne.next=8;break;case 5:return ne.next=7,new Promise(function(Ce,Oe){bR()({canvas:M.canvas,attributes:{alpha:!0,antialias:m.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:m.preserveDrawingBuffer,stencil:m.stencil},extensions:["OES_element_index_uint","OES_standard_derivatives","ANGLE_instanced_arrays"],optionalExtensions:["oes_texture_float_linear","OES_texture_float","EXT_texture_filter_anisotropic","EXT_blend_minmax","WEBGL_depth_texture","WEBGL_lose_context"],profile:!0,onDone:function(Bt,An){(Bt||!An)&&Oe(Bt),Ce(An)}})});case 7:this.gl=ne.sent;case 8:this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")};case 9:case"end":return ne.stop()}},c,this)}));function l(c,u,m){return d.apply(this,arguments)}return l}()},{key:"getPointSizeRange",value:function(){return this.gl._gl.getParameter(this.gl._gl.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(l){return!!this.getGLContext().getExtension(l)}},{key:"setState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!0,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setBaseState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!1,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setCustomLayerDefaults",value:function(){var l=this.getGLContext();l.disable(l.CULL_FACE)}},{key:"setDirty",value:function(l){this.isDirty=l}},{key:"getDirty",value:function(){return this.isDirty}},{key:"beginFrame",value:function(){}},{key:"endFrame",value:function(){}}]),o}())||nk),UK=function(){function o(d,l){(0,wt.Z)(this,o);var c=l.buffer,u=l.offset,m=l.stride,E=l.normalized,M=l.size,Z=l.divisor,ne=l.shaderLocation;this.buffer=c,this.attribute={shaderLocation:ne,buffer:c.get(),offset:u||0,stride:m||0,normalized:E||!1,divisor:Z||0},M&&(this.attribute.size=M)}return(0,nt.Z)(o,[{key:"get",value:function(){return this.buffer}},{key:"updateBuffer",value:function(l){this.buffer.subData(l)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),o}(),ME,hS,e3,yL,_L,X2,rk,t3,O_,zb=(ME={},(0,Tn.Z)(ME,Ai.FLOAT,Float32Array),(0,Tn.Z)(ME,Ai.UNSIGNED_BYTE,Uint8Array),(0,Tn.Z)(ME,Ai.SHORT,Int16Array),(0,Tn.Z)(ME,Ai.UNSIGNED_SHORT,Uint16Array),(0,Tn.Z)(ME,Ai.INT,Int32Array),(0,Tn.Z)(ME,Ai.UNSIGNED_INT,Uint32Array),ME),GU=(hS={},(0,Tn.Z)(hS,Ai.POINTS,Xv.POINTS),(0,Tn.Z)(hS,Ai.LINES,Xv.LINES),(0,Tn.Z)(hS,Ai.LINE_LOOP,Xv.LINES),(0,Tn.Z)(hS,Ai.LINE_STRIP,Xv.LINE_STRIP),(0,Tn.Z)(hS,Ai.TRIANGLES,Xv.TRIANGLES),(0,Tn.Z)(hS,Ai.TRIANGLE_FAN,Xv.TRIANGLES),(0,Tn.Z)(hS,Ai.TRIANGLE_STRIP,Xv.TRIANGLE_STRIP),hS),Y2=(e3={},(0,Tn.Z)(e3,1,Vu.F32_R),(0,Tn.Z)(e3,2,Vu.F32_RG),(0,Tn.Z)(e3,3,Vu.F32_RGB),(0,Tn.Z)(e3,4,Vu.F32_RGBA),e3),KU=(yL={},(0,Tn.Z)(yL,Ai.STATIC_DRAW,j2.STATIC),(0,Tn.Z)(yL,Ai.DYNAMIC_DRAW,j2.DYNAMIC),(0,Tn.Z)(yL,Ai.STREAM_DRAW,j2.DYNAMIC),yL),ik=(_L={},(0,Tn.Z)(_L,Ai.REPEAT,Hy.REPEAT),(0,Tn.Z)(_L,Ai.CLAMP_TO_EDGE,Hy.CLAMP_TO_EDGE),(0,Tn.Z)(_L,Ai.MIRRORED_REPEAT,Hy.MIRRORED_REPEAT),_L),Ub=(X2={},(0,Tn.Z)(X2,Ai.NEVER,b0.NEVER),(0,Tn.Z)(X2,Ai.ALWAYS,b0.ALWAYS),(0,Tn.Z)(X2,Ai.LESS,b0.LESS),(0,Tn.Z)(X2,Ai.LEQUAL,b0.LEQUAL),(0,Tn.Z)(X2,Ai.GREATER,b0.GREATER),(0,Tn.Z)(X2,Ai.GEQUAL,b0.GEQUAL),(0,Tn.Z)(X2,Ai.EQUAL,b0.EQUAL),(0,Tn.Z)(X2,Ai.NOTEQUAL,b0.NOTEQUAL),X2),$K=(rk={},(0,Tn.Z)(rk,Ai.FRONT,Fb.FRONT),(0,Tn.Z)(rk,Ai.BACK,Fb.BACK),rk),XU=(t3={},(0,Tn.Z)(t3,Ai.FUNC_ADD,Dy.ADD),(0,Tn.Z)(t3,Ai.MIN_EXT,Dy.MIN),(0,Tn.Z)(t3,Ai.MAX_EXT,Dy.MAX),(0,Tn.Z)(t3,Ai.FUNC_SUBTRACT,Dy.SUBSTRACT),(0,Tn.Z)(t3,Ai.FUNC_REVERSE_SUBTRACT,Dy.REVERSE_SUBSTRACT),t3),ok=(O_={},(0,Tn.Z)(O_,Ai.ZERO,Am.ZERO),(0,Tn.Z)(O_,Ai.ONE,Am.ONE),(0,Tn.Z)(O_,Ai.SRC_COLOR,Am.SRC),(0,Tn.Z)(O_,Ai.ONE_MINUS_SRC_COLOR,Am.ONE_MINUS_SRC),(0,Tn.Z)(O_,Ai.SRC_ALPHA,Am.SRC_ALPHA),(0,Tn.Z)(O_,Ai.ONE_MINUS_SRC_ALPHA,Am.ONE_MINUS_SRC_ALPHA),(0,Tn.Z)(O_,Ai.DST_COLOR,Am.DST),(0,Tn.Z)(O_,Ai.ONE_MINUS_DST_COLOR,Am.ONE_MINUS_DST),(0,Tn.Z)(O_,Ai.DST_ALPHA,Am.DST_ALPHA),(0,Tn.Z)(O_,Ai.ONE_MINUS_DST_ALPHA,Am.ONE_MINUS_DST_ALPHA),(0,Tn.Z)(O_,Ai.CONSTANT_COLOR,Am.CONST),(0,Tn.Z)(O_,Ai.ONE_MINUS_CONSTANT_COLOR,Am.ONE_MINUS_CONSTANT),(0,Tn.Z)(O_,Ai.CONSTANT_ALPHA,Am.CONST),(0,Tn.Z)(O_,Ai.ONE_MINUS_CONSTANT_ALPHA,Am.ONE_MINUS_CONSTANT),(0,Tn.Z)(O_,Ai.SRC_ALPHA_SATURATE,Am.SRC_ALPHA_SATURATE),O_),wI={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121};function bL(o){return Object.prototype.toString.call(o)in wI}var VK=function(){function o(d,l){(0,wt.Z)(this,o),(0,Tn.Z)(this,"isDestroyed",!1);var c=l.data,u=l.usage,m=l.type,E=l.isUBO,M;bL(c)?M=c:M=new zb[this.type||Ai.FLOAT](c),this.type=m,this.size=M.byteLength,this.buffer=d.createBuffer({viewOrSize:M,usage:E?rv.UNIFORM:rv.VERTEX,hint:KU[u||Ai.STATIC_DRAW]})}return(0,nt.Z)(o,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){this.isDestroyed||this.buffer.destroy(),this.isDestroyed=!0}},{key:"subData",value:function(l){var c=l.data,u=l.offset,m;bL(c)?m=c:m=new zb[this.type||Ai.FLOAT](c),this.buffer.setSubData(u,new Uint8Array(m.buffer))}}]),o}(),jK=function(){function o(d,l){(0,wt.Z)(this,o);var c=l.data,u=l.type,m=l.count,E=m===void 0?0:m,M;bL(c)?M=c:M=new zb[this.type||Ai.UNSIGNED_INT](c),this.type=u,this.count=E,this.indexBuffer=d.createBuffer({viewOrSize:M,usage:rv.INDEX})}return(0,nt.Z)(o,[{key:"get",value:function(){return this.indexBuffer}},{key:"subData",value:function(l){var c=l.data,u;bL(c)?u=c:u=new zb[this.type||Ai.UNSIGNED_INT](c),this.indexBuffer.setSubData(0,new Uint8Array(u.buffer))}},{key:"destroy",value:function(){this.indexBuffer.destroy()}}]),o}();function YU(o){return!1}var U8=function(){function o(d,l){(0,wt.Z)(this,o),(0,Tn.Z)(this,"isDestroy",!1);var c=l.data,u=l.type,m=u===void 0?Ai.UNSIGNED_BYTE:u,E=l.width,M=l.height,Z=l.flipY,ne=Z===void 0?!1:Z,Ce=l.format,Oe=Ce===void 0?Ai.RGBA:Ce,Ct=l.wrapS,Bt=Ct===void 0?Ai.CLAMP_TO_EDGE:Ct,An=l.wrapT,kn=An===void 0?Ai.CLAMP_TO_EDGE:An,Ir=l.alignment,ui=Ir===void 0?1:Ir;this.width=E,this.height=M;var ao=Vu.U8_RGBA_RT;if(m===Ai.UNSIGNED_BYTE&&Oe===Ai.RGBA)ao=Vu.U8_RGBA_RT;else if(Oe===Ai.LUMINANCE&&m===Ai.FLOAT)ao=Vu.F32_LUMINANCE;else if(Oe===Ai.LUMINANCE&&m===Ai.UNSIGNED_BYTE)ao=Vu.U8_LUMINANCE;else throw new Error("create texture error, type: ".concat(m,", format: ").concat(Oe));this.texture=d.createTexture({format:ao,width:E,height:M,usage:xx.SAMPLED,pixelStore:{unpackFlipY:ne,packAlignment:ui}}),c&&this.texture.setImageData([c]),this.sampler=d.createSampler({addressModeU:ik[Bt],addressModeV:ik[kn],minFilter:_1.POINT,magFilter:_1.BILINEAR,mipmapFilter:ey.NO_MIP,lodMinClamp:0,lodMaxClamp:0})}return(0,nt.Z)(o,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(l){var c=l.data;this.texture.setImageData([c])}},{key:"bind",value:function(){}},{key:"resize",value:function(l){var c=l.width,u=l.height;this.width=c,this.height=u}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var l;(l=this.texture)===null||l===void 0||l.destroy()}this.isDestroy=!0}}]),o}(),$8=function(){function o(d,l){(0,wt.Z)(this,o),this.device=d;var c=l.width,u=l.height,m=l.color;YU(m)?(this.renderTarget=d.createRenderTargetFromTexture(m.get()),this.width=m.width,this.height=m.height):c&&u&&(this.renderTarget=d.createRenderTarget({format:Vu.U8_RGBA_RT,width:c,height:u}),this.width=c,this.height=u)}return(0,nt.Z)(o,[{key:"get",value:function(){return this.renderTarget}},{key:"destroy",value:function(){this.renderTarget.destroy()}},{key:"resize",value:function(l){var c=l.width,u=l.height;(this.width!==c||this.height!==u)&&(this.renderTarget&&this.renderTarget.destroy(),this.renderTarget=this.device.createRenderTarget({format:Vu.U8_RGBA_RT,width:c,height:u}),this.width=c,this.height=u)}}]),o}(),WK=fs.isPlainObject,ZK=fs.isTypedArray,HK=function(){function o(d,l){var c=this;(0,wt.Z)(this,o),(0,Tn.Z)(this,"destroyed",!1),(0,Tn.Z)(this,"uniforms",{}),(0,Tn.Z)(this,"vertexBuffers",[]),this.device=d,this.options=l;var u=l.vs,m=l.fs,E=l.attributes,M=l.uniforms,Z=l.count,ne=l.elements;this.options=l;var Ce=d.createProgram({vertex:{glsl:u},fragment:{glsl:m}});this.program=Ce,M&&(this.uniforms=this.extractUniforms(M));var Oe=[],Ct=0;Object.keys(E).forEach(function(An){var kn=E[An],Ir=kn.get();c.vertexBuffers.push(Ir.get());var ui=kn.attribute,ao=ui.offset,wo=ao===void 0?0:ao,Ds=ui.stride,oa=Ds===void 0?0:Ds,fa=ui.size,Wa=fa===void 0?1:fa,vl=ui.divisor,Ql=vl===void 0?0:vl,Ou=ui.shaderLocation,Uu=Ou===void 0?0:Ou;Oe.push({arrayStride:oa||Wa*4,stepMode:nS.VERTEX,attributes:[{format:Y2[Wa],shaderLocation:Uu,offset:wo,divisor:Ql}]}),Ct=Ir.size/Wa}),Z||(this.options.count=Ct),ne&&(this.indexBuffer=ne.get());var Bt=d.createInputLayout({vertexBufferDescriptors:Oe,indexBufferFormat:ne?Vu.U32_R:null,program:Ce});this.inputLayout=Bt,this.pipeline=this.createPipeline(l)}return(0,nt.Z)(o,[{key:"createPipeline",value:function(l){var c=l.primitive,u=c===void 0?Ai.TRIANGLES:c,m=l.depth,E=l.cull,M=l.blend,Z=this.initDepthDrawParams({depth:m}),ne=!!(Z&&Z.enable),Ce=this.initCullDrawParams({cull:E}),Oe=!!(Ce&&Ce.enable),Ct=this.getBlendDrawParams({blend:M}),Bt=!!(Ct&&Ct.enable);return this.device.createRenderPipeline({inputLayout:this.inputLayout,program:this.program,topology:GU[u],colorAttachmentFormats:[Vu.U8_RGBA_RT],depthStencilAttachmentFormat:Vu.D24_S8,megaStateDescriptor:{attachmentsState:[{channelWriteMask:Gy.ALL,rgbBlendState:{blendMode:Bt&&Ct.equation.rgb||Dy.ADD,blendSrcFactor:Bt&&Ct.func.srcRGB||Am.SRC_ALPHA,blendDstFactor:Bt&&Ct.func.dstRGB||Am.ONE_MINUS_SRC_ALPHA},alphaBlendState:{blendMode:Bt&&Ct.equation.alpha||Dy.ADD,blendSrcFactor:Bt&&Ct.func.srcAlpha||Am.ONE,blendDstFactor:Bt&&Ct.func.dstAlpha||Am.ONE_MINUS_SRC_ALPHA}}],blendConstant:iS,depthWrite:ne,depthCompare:ne&&Z.func||b0.LESS,cullMode:Oe&&Ce.face||Fb.NONE,stencilWrite:!1}})}},{key:"updateAttributesAndElements",value:function(){}},{key:"updateAttributes",value:function(){}},{key:"addUniforms",value:function(l){this.uniforms=(0,Be.Z)((0,Be.Z)({},this.uniforms),this.extractUniforms(l))}},{key:"draw",value:function(l){var c=(0,Be.Z)((0,Be.Z)({},this.options),l),u=c.count,m=u===void 0?0:u,E=c.instances,M=c.elements,Z=c.uniforms,ne=Z===void 0?{}:Z,Ce=c.uniformBuffers,Oe=c.textures;this.uniforms=(0,Be.Z)((0,Be.Z)({},this.uniforms),this.extractUniforms(ne));var Ct=this.device,Bt=Ct.width,An=Ct.height,kn=this.device.renderPass;if(this.pipeline=this.createPipeline(c),kn.setPipeline(this.pipeline),kn.setVertexInput(this.inputLayout,this.vertexBuffers.map(function(ui){return{buffer:ui}}),M?{buffer:this.indexBuffer,offset:0}:null),kn.setViewport(0,0,Bt,An),Ce&&(this.bindings=this.device.createBindings({pipeline:this.pipeline,uniformBufferBindings:Ce.map(function(ui,ao){var wo=ui;return{binding:ao,buffer:wo.get(),size:wo.size}}),samplerBindings:Oe==null?void 0:Oe.map(function(ui){return{texture:ui.texture,sampler:ui.sampler}})})),this.bindings&&(kn.setBindings(this.bindings),this.program.setUniformsLegacy(this.uniforms)),M){var Ir=M.count;Ir===0?kn.draw(m,E):kn.drawIndexed(Ir,E)}else kn.draw(m,E)}},{key:"destroy",value:function(){var l,c,u;this.program.destroy(),(l=this.vertexBuffers)===null||l===void 0||l.forEach(function(m){return m.destroy()}),(c=this.indexBuffer)===null||c===void 0||c.destroy(),(u=this.bindings)===null||u===void 0||u.destroy(),this.inputLayout.destroy(),this.pipeline.destroy(),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(l){var c=l.depth;if(c)return{enable:c.enable===void 0?!0:!!c.enable,mask:c.mask===void 0?!0:!!c.mask,func:Ub[c.func||Ai.LESS],range:c.range||[0,1]}}},{key:"getBlendDrawParams",value:function(l){var c=l.blend,u=c||{},m=u.enable,E=u.func,M=u.equation,Z=u.color,ne=Z===void 0?[0,0,0,0]:Z;return{enable:!!m,func:{srcRGB:ok[E&&E.srcRGB||Ai.SRC_ALPHA],srcAlpha:ok[E&&E.srcAlpha||Ai.SRC_ALPHA],dstRGB:ok[E&&E.dstRGB||Ai.ONE_MINUS_SRC_ALPHA],dstAlpha:ok[E&&E.dstAlpha||Ai.ONE_MINUS_SRC_ALPHA]},equation:{rgb:XU[M&&M.rgb||Ai.FUNC_ADD],alpha:XU[M&&M.alpha||Ai.FUNC_ADD]},color:ne}}},{key:"initCullDrawParams",value:function(l){var c=l.cull;if(c){var u=c.enable,m=c.face,E=m===void 0?Ai.BACK:m;return{enable:!!u,face:$K[E]}}}},{key:"extractUniforms",value:function(l){var c=this,u={};return Object.keys(l).forEach(function(m){c.extractUniformsRecursively(m,l[m],u,"")}),u}},{key:"extractUniformsRecursively",value:function(l,c,u,m){var E=this;if(c===null||typeof c=="number"||typeof c=="boolean"||Array.isArray(c)&&typeof c[0]=="number"||ZK(c)||c===""||"resize"in c){u["".concat(m&&m+".").concat(l)]=c;return}WK(c)&&Object.keys(c).forEach(function(M){E.extractUniformsRecursively(M,c[M],u,"".concat(m&&m+".").concat(l))}),Array.isArray(c)&&c.forEach(function(M,Z){Object.keys(M).forEach(function(ne){E.extractUniformsRecursively(ne,M[ne],u,"".concat(m&&m+".").concat(l,"[").concat(Z,"]"))})})}}]),o}();function GK(o){return typeof WebGL2RenderingContext!="undefined"&&o instanceof WebGL2RenderingContext?!0:!!(o&&o._version===2)}var qU,V8,KK=(qU=(0,Go.b2)(),qU(V8=function(){function o(){var d=this;(0,wt.Z)(this,o),(0,Tn.Z)(this,"uniformBuffers",[]),(0,Tn.Z)(this,"createModel",function(l){return new HK(d.device,l)}),(0,Tn.Z)(this,"createAttribute",function(l){return new UK(d.device,l)}),(0,Tn.Z)(this,"createBuffer",function(l){return new VK(d.device,l)}),(0,Tn.Z)(this,"createElements",function(l){return new jK(d.device,l)}),(0,Tn.Z)(this,"createTexture2D",function(l){return new U8(d.device,l)}),(0,Tn.Z)(this,"createFramebuffer",function(l){return new $8(d.device,l)}),(0,Tn.Z)(this,"useFramebuffer",function(){}),(0,Tn.Z)(this,"clear",function(){}),(0,Tn.Z)(this,"viewport",function(l){var c=l.width,u=l.height;d.width=c,d.height=u,d.device.width=c,d.device.height=u}),(0,Tn.Z)(this,"readPixels",function(){return new Uint8Array}),(0,Tn.Z)(this,"getViewportSize",function(){return{width:d.device.width,height:d.device.height}}),(0,Tn.Z)(this,"getContainer",function(){var l;return(l=d.canvas)===null||l===void 0?void 0:l.parentElement}),(0,Tn.Z)(this,"getCanvas",function(){return d.canvas}),(0,Tn.Z)(this,"getGLContext",function(){return d.device.gl}),(0,Tn.Z)(this,"destroy",function(){var l;d.canvas=null,(l=d.uniformBuffers)===null||l===void 0||l.forEach(function(c){c.destroy()}),d.device.destroy()})}return(0,nt.Z)(o,[{key:"init",value:function(){var d=(0,Pl.Z)(Oi().mark(function c(u,m){var E,M,Z,ne,Ce,Oe;return Oi().wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return E=m.enableWebGPU,M=m.shaderCompilerPath,this.canvas=u,Z=E?new HU({shaderCompilerPath:M}):new WR({targets:["webgl2","webgl1"],onContextLost:function(kn){console.warn("context lost",kn)},onContextCreationError:function(kn){console.warn("context creation error",kn)},onContextRestored:function(kn){console.warn("context restored",kn)}}),Bt.next=5,Z.createSwapChain(u);case 5:ne=Bt.sent,ne.configureSwapChain(u.width,u.height),this.device=ne.getDevice(),this.swapChain=ne,Ce=this.device.gl,this.extensionObject={OES_texture_float:!GK(Ce)&&this.device.OES_texture_float},Oe=this.device.createTexture({format:Vu.U8_RGBA_RT,width:u.width,height:u.height,usage:xx.RENDER_TARGET}),this.renderTarget=this.device.createRenderTargetFromTexture(Oe),this.mainDepthRT=this.device.createRenderTargetFromTexture(this.device.createTexture({format:Vu.D24_S8,width:u.width,height:u.height,usage:xx.RENDER_TARGET}));case 14:case"end":return Bt.stop()}},c,this)}));function l(c,u){return d.apply(this,arguments)}return l}()},{key:"beginFrame",value:function(){var l=this.swapChain.getOnscreenTexture();this.renderPass=this.device.createRenderPass({colorAttachment:[this.renderTarget],colorResolveTo:[l],colorClearColor:[iS],depthStencilAttachment:this.mainDepthRT,depthClearValue:1}),this.device.renderPass=this.renderPass}},{key:"endFrame",value:function(){this.device.submitPass(this.renderPass)}},{key:"getPointSizeRange",value:function(){var l=this.device.gl;return l.getParameter(l.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(l){return!!this.getGLContext().getExtension(l)}},{key:"setState",value:function(){}},{key:"setBaseState",value:function(){}},{key:"setCustomLayerDefaults",value:function(){}},{key:"setDirty",value:function(l){this.isDirty=l}},{key:"getDirty",value:function(){return this.isDirty}}]),o}())||V8);function XK(o){var d=YK();return function(){var c=(0,Mt.Z)(o),u;if(d){var m=(0,Mt.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,Kt.Z)(this,u)}}function YK(){if(typeof Reflect=="undefined"||!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(o){return!1}}var j8=["selectstart","selecting","selectend"],qK=function(o){(0,lt.Z)(l,o);var d=XK(l);function l(c){var u,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,wt.Z)(this,l),u=d.call(this),(0,Tn.Z)((0,ys.Z)(u),"isEnable",!1),(0,Tn.Z)((0,ys.Z)(u),"onDragStart",function(E){u.box.style.display="block",u.startEvent=u.endEvent=E,u.syncBoxBound(),u.emit("selectstart",u.getLngLatBox(),u.startEvent,u.endEvent)}),(0,Tn.Z)((0,ys.Z)(u),"onDragging",function(E){u.endEvent=E,u.syncBoxBound(),u.emit("selecting",u.getLngLatBox(),u.startEvent,u.endEvent)}),(0,Tn.Z)((0,ys.Z)(u),"onDragEnd",function(E){u.endEvent=E,u.box.style.display="none",u.emit("selectend",u.getLngLatBox(),u.startEvent,u.endEvent)}),u.scene=c,u.options=m,u}return(0,nt.Z)(l,[{key:"container",get:function(){return this.scene.getMapService().getMarkerContainer()}},{key:"enable",value:function(){if(!this.isEnable){var u=this.options.className;if(this.scene.setMapStatus({dragEnable:!1}),this.container.style.cursor="crosshair",!this.box){var m=Os("div",void 0,this.container);m.classList.add("l7-select-box"),u&&m.classList.add(u),m.style.display="none",this.box=m}this.scene.on("dragstart",this.onDragStart),this.scene.on("dragging",this.onDragging),this.scene.on("dragend",this.onDragEnd),this.isEnable=!0}}},{key:"disable",value:function(){this.isEnable&&(this.scene.setMapStatus({dragEnable:!0}),this.container.style.cursor="auto",this.scene.off("dragstart",this.onDragStart),this.scene.off("dragging",this.onDragging),this.scene.off("dragend",this.onDragEnd),this.isEnable=!1)}},{key:"syncBoxBound",value:function(){var u=this.startEvent,m=u.x,E=u.y,M=this.endEvent,Z=M.x,ne=M.y,Ce=Math.min(m,Z),Oe=Math.min(E,ne),Ct=Math.abs(m-Z),Bt=Math.abs(E-ne);this.box.style.top="".concat(Oe,"px"),this.box.style.left="".concat(Ce,"px"),this.box.style.width="".concat(Ct,"px"),this.box.style.height="".concat(Bt,"px")}},{key:"getLngLatBox",value:function(){var u=this.startEvent.lngLat,m=u.lng,E=u.lat,M=this.endEvent.lngLat,Z=M.lng,ne=M.lat;return Cd([[m,E],[Z,ne]])}}]),l}(gc.EventEmitter),xL=function(){function o(d){(0,wt.Z)(this,o);var l=d.id,c=d.map,u=d.canvas,m=d.hasBaseMap,E=d.renderer,M=E===void 0?"regl":E,Z=j_();this.container=Z,c.setContainer(Z,l,u,m),Z.bind(Zs.IRendererService).to(M==="regl"?oee:KK).inSingletonScope(),this.sceneService=Z.get(Zs.ISceneService),this.mapService=Z.get(Zs.IMapService),this.iconService=Z.get(Zs.IIconService),this.fontService=Z.get(Zs.IFontService),this.controlService=Z.get(Zs.IControlService),this.layerService=Z.get(Zs.ILayerService),this.debugService=Z.get(Zs.IDebugService),this.debugService.setEnable(d.debug),this.markerService=Z.get(Zs.IMarkerService),this.interactionService=Z.get(Zs.IInteractionService),this.popupService=Z.get(Zs.IPopupService),this.boxSelect=new qK(this,{}),this.initComponent(l),this.sceneService.init(d),this.initControl()}return(0,nt.Z)(o,[{key:"map",get:function(){return this.mapService.map}},{key:"loaded",get:function(){return this.sceneService.loaded}},{key:"getServiceContainer",value:function(){return this.container}},{key:"getSize",value:function(){return this.mapService.getSize()}},{key:"getMinZoom",value:function(){return this.mapService.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.mapService.getMaxZoom()}},{key:"getType",value:function(){return this.mapService.getType()}},{key:"getMapContainer",value:function(){return this.mapService.getMapContainer()}},{key:"getMapCanvasContainer",value:function(){return this.mapService.getMapCanvasContainer()}},{key:"getMapService",value:function(){return this.mapService}},{key:"getDebugService",value:function(){return this.debugService}},{key:"exportPng",value:function(){var d=(0,Pl.Z)(Oi().mark(function c(u){return Oi().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",this.sceneService.exportPng(u));case 1:case"end":return E.stop()}},c,this)}));function l(c){return d.apply(this,arguments)}return l}()},{key:"exportMap",value:function(){var d=(0,Pl.Z)(Oi().mark(function c(u){return Oi().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",this.sceneService.exportPng(u));case 1:case"end":return E.stop()}},c,this)}));function l(c){return d.apply(this,arguments)}return l}()},{key:"registerRenderService",value:function(l){var c=this;if(this.sceneService.loaded){var u=new l(this);u.init()}else this.on("loaded",function(){var m=new l(c);m.init()})}},{key:"setBgColor",value:function(l){this.mapService.setBgColor(l)}},{key:"addLayer",value:function(l){var c=this,u=Nx(this.container);if(l.setContainer(u,this.container),this.sceneService.addLayer(l),l.inited){var m=this.initMask(l);this.addMask(m,l.id)}else l.on("inited",function(){var E=c.initMask(l);c.addMask(E,l.id)})}},{key:"initMask",value:function(l){var c=l.getLayerConfig(),u=c.mask,m=c.maskfence,E=c.maskColor,M=E===void 0?"#000":E,Z=c.maskOpacity,ne=Z===void 0?0:Z;if(!(!u||!m)){var Ce=new s6().source(m).shape("fill").style({color:M,opacity:ne});return Ce}}},{key:"addMask",value:function(l,c){if(l){var u=this.getLayer(c);if(u){var m=Nx(this.container);l.setContainer(m,this.container),u.addMaskLayer(l),this.sceneService.addMask(l)}else console.warn("parent layer not find!")}}},{key:"getPickedLayer",value:function(){return this.layerService.pickedLayerId}},{key:"getLayers",value:function(){return this.layerService.getLayers()}},{key:"getLayer",value:function(l){return this.layerService.getLayer(l)}},{key:"getLayerByName",value:function(l){return this.layerService.getLayerByName(l)}},{key:"removeLayer",value:function(){var d=(0,Pl.Z)(Oi().mark(function c(u,m){return Oi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,this.layerService.remove(u,m);case 2:case"end":return M.stop()}},c,this)}));function l(c,u){return d.apply(this,arguments)}return l}()},{key:"removeAllLayer",value:function(){var d=(0,Pl.Z)(Oi().mark(function c(){return Oi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,this.layerService.removeAllLayers();case 2:case"end":return m.stop()}},c,this)}));function l(){return d.apply(this,arguments)}return l}()},{key:"render",value:function(){this.sceneService.render()}},{key:"setEnableRender",value:function(l){this.layerService.setEnableRender(l)}},{key:"addIconFont",value:function(l,c){this.fontService.addIconFont(l,c)}},{key:"addIconFonts",value:function(l){var c=this;l.forEach(function(u){var m=(0,Or.Z)(u,2),E=m[0],M=m[1];c.fontService.addIconFont(E,M)})}},{key:"addFontFace",value:function(l,c){var u=this;this.fontService.once("fontloaded",function(m){u.emit("fontloaded",m)}),this.fontService.addFontFace(l,c)}},{key:"addImage",value:function(){var d=(0,Pl.Z)(Oi().mark(function c(u,m){return Oi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,this.iconService.addImage(u,m);case 2:case"end":return M.stop()}},c,this)}));function l(c,u){return d.apply(this,arguments)}return l}()},{key:"hasImage",value:function(l){return this.iconService.hasImage(l)}},{key:"removeImage",value:function(l){this.iconService.removeImage(l)}},{key:"addIconFontGlyphs",value:function(l,c){this.fontService.addIconGlyphs(c)}},{key:"addControl",value:function(l){this.controlService.addControl(l,this.container)}},{key:"removeControl",value:function(l){this.controlService.removeControl(l)}},{key:"getControlByName",value:function(l){return this.controlService.getControlByName(l)}},{key:"addMarker",value:function(l){this.markerService.addMarker(l)}},{key:"addMarkerLayer",value:function(l){this.markerService.addMarkerLayer(l)}},{key:"removeMarkerLayer",value:function(l){this.markerService.removeMarkerLayer(l)}},{key:"removeAllMarkers",value:function(){this.markerService.removeAllMarkers()}},{key:"removeAllMakers",value:function(){console.warn("removeAllMakers \u5DF2\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 removeAllMarkers"),this.markerService.removeAllMarkers()}},{key:"addPopup",value:function(l){this.popupService.addPopup(l)}},{key:"removePopup",value:function(l){this.popupService.removePopup(l)}},{key:"on",value:function(l,c){if(j8.includes(l)){var u;(u=this.boxSelect)===null||u===void 0||u.on(l,c)}else w2.includes(l)?this.sceneService.on(l,c):this.mapService.on(l,c)}},{key:"once",value:function(l,c){if(j8.includes(l)){var u;(u=this.boxSelect)===null||u===void 0||u.once(l,c)}else w2.includes(l)?this.sceneService.once(l,c):this.mapService.once(l,c)}},{key:"emit",value:function(l,c){w2.indexOf(l)===-1?this.mapService.on(l,c):this.sceneService.emit(l,c)}},{key:"off",value:function(l,c){if(j8.includes(l)){var u;(u=this.boxSelect)===null||u===void 0||u.off(l,c)}else w2.includes(l)?this.sceneService.off(l,c):this.mapService.off(l,c)}},{key:"getZoom",value:function(){return this.mapService.getZoom()}},{key:"getCenter",value:function(l){return this.mapService.getCenter(l)}},{key:"setCenter",value:function(l,c){return this.mapService.setCenter(l,c)}},{key:"getPitch",value:function(){return this.mapService.getPitch()}},{key:"setPitch",value:function(l){return this.mapService.setPitch(l)}},{key:"getRotation",value:function(){return this.mapService.getRotation()}},{key:"getBounds",value:function(){return this.mapService.getBounds()}},{key:"setRotation",value:function(l){this.mapService.setRotation(l)}},{key:"zoomIn",value:function(){this.mapService.zoomIn()}},{key:"zoomOut",value:function(){this.mapService.zoomOut()}},{key:"panTo",value:function(l){this.mapService.panTo(l)}},{key:"panBy",value:function(l,c){this.mapService.panBy(l,c)}},{key:"getContainer",value:function(){return this.mapService.getContainer()}},{key:"setZoom",value:function(l){this.mapService.setZoom(l)}},{key:"fitBounds",value:function(l,c){var u=this.sceneService.getSceneConfig(),m=u.fitBoundsOptions,E=u.animate;this.mapService.fitBounds(l,c||(0,Be.Z)((0,Be.Z)({},m),{},{animate:E}))}},{key:"setZoomAndCenter",value:function(l,c){this.mapService.setZoomAndCenter(l,c)}},{key:"setMapStyle",value:function(l){this.mapService.setMapStyle(l)}},{key:"setMapStatus",value:function(l){this.mapService.setMapStatus(l)}},{key:"pixelToLngLat",value:function(l){return this.mapService.pixelToLngLat(l)}},{key:"lngLatToPixel",value:function(l){return this.mapService.lngLatToPixel(l)}},{key:"containerToLngLat",value:function(l){return this.mapService.containerToLngLat(l)}},{key:"lngLatToContainer",value:function(l){return this.mapService.lngLatToContainer(l)}},{key:"destroy",value:function(){this.sceneService.destroy()}},{key:"registerPostProcessingPass",value:function(l,c){this.container.bind(Zs.IPostProcessingPass).to(l).whenTargetNamed(c)}},{key:"enableShaderPick",value:function(){this.layerService.enableShaderPick()}},{key:"diasbleShaderPick",value:function(){this.layerService.disableShaderPick()}},{key:"enableBoxSelect",value:function(){var l=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.boxSelect.enable(),c&&this.boxSelect.once("selectend",function(){l.disableBoxSelect()})}},{key:"disableBoxSelect",value:function(){this.boxSelect.disable()}},{key:"getProtocol",value:function(l){return Ni.REGISTERED_PROTOCOLS[l]}},{key:"getPointSizeRange",value:function(){return this.sceneService.getPointSizeRange()}},{key:"initComponent",value:function(l){this.controlService.init({container:hl(l)},this.container),this.markerService.init(this.container),this.popupService.init(this.container)}},{key:"initControl",value:function(){var l=this.sceneService.getSceneConfig(),c=l.logoVisible,u=l.logoPosition;c&&this.addControl(new zt({position:u}))}}],[{key:"addProtocol",value:function(l,c){Ni.REGISTERED_PROTOCOLS[l]=c}},{key:"removeProtocol",value:function(l){delete Ni.REGISTERED_PROTOCOLS[l]}}]),o}(),sk="2.20.5"},19752:function(yt,Y,y){"use strict";y.d(Y,{br:function(){return Rp},ot:function(){return ot},l_:function(){return Ne},$2:function(){return $n},Ie:function(){return Ng},OB:function(){return of},w3:function(){return yr},Jx:function(){return ch},CB:function(){return Ui},ns:function(){return wp},dW:function(){return gp},GI:function(){return Oo},YY:function(){return sp},kp:function(){return jr},jf:function(){return bu},AB:function(){return Wh},Ly:function(){return Nh},dN:function(){return Bi},$r:function(){return Dr}});var v=y(5076),P=y(67294),w=y(70202),b=function(je){return function(Ge,_t){var Rt=(0,P.useRef)(),tr=(0,P.useRef)(0);(_t===void 0||!(0,w.k)(_t,Rt.current))&&(Rt.current=_t,tr.current+=1),je(Ge,[tr.current])}},B=b(P.useEffect),V=y(94184),k=y.n(V),R=y(49360),C=y(58146),g=y(290),A="*",O=function(){function je(){this._events={}}return je.prototype.on=function(Ge,_t,Rt){return this._events[Ge]||(this._events[Ge]=[]),this._events[Ge].push({callback:_t,once:!!Rt}),this},je.prototype.once=function(Ge,_t){return this.on(Ge,_t,!0)},je.prototype.emit=function(Ge){for(var _t=this,Rt=[],tr=1;tr=je.length?{done:!0}:{done:!1,value:je[Rt++]}},e:function(Ti){throw Ti},f:tr}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var zi=!0,Ho=!1,Jo;return{s:function(){_t=_t.call(je)},n:function(){var Ti=_t.next();return zi=Ti.done,Ti},e:function(Ti){Ho=!0,Jo=Ti},f:function(){try{!zi&&_t.return!=null&&_t.return()}finally{if(Ho)throw Jo}}}}function fe(je,Ge){if(je){if(typeof je=="string")return xe(je,Ge);var _t=Object.prototype.toString.call(je).slice(8,-1);if(_t==="Object"&&je.constructor&&(_t=je.constructor.name),_t==="Map"||_t==="Set")return Array.from(je);if(_t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_t))return xe(je,Ge)}}function xe(je,Ge){(Ge==null||Ge>je.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_tje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_t0&&arguments[0]!==void 0?arguments[0]:{};return Object.entries(Ge!=null?Ge:{}).map(function(_t){var Rt=nt(_t,2),tr=Rt[0],zi=Rt[1],Ho=(0,St.Z)(tr),Jo=zi;return typeof Jo=="number"?Jo="".concat(Jo,"px"):typeof Jo=="string"&&(Jo=Jo.replace("'","")),"".concat(Ho," :").concat(Jo)}).join("; ")};function Sr(je,Ge){return ti(je)||eo(je,Ge)||Ii(je,Ge)||ii()}function ii(){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 Ii(je,Ge){if(je){if(typeof je=="string")return Ni(je,Ge);var _t=Object.prototype.toString.call(je).slice(8,-1);if(_t==="Object"&&je.constructor&&(_t=je.constructor.name),_t==="Map"||_t==="Set")return Array.from(je);if(_t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_t))return Ni(je,Ge)}}function Ni(je,Ge){(Ge==null||Ge>je.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_t=0;--lu){var Eu=this.tryEntries[lu],rs=Eu.completion;if(Eu.tryLoc==="root")return Vl("end");if(Eu.tryLoc<=this.prev){var Jd=Rt.call(Eu,"catchLoc"),xd=Rt.call(Eu,"finallyLoc");if(Jd&&xd){if(this.prev=0;--Vl){var lu=this.tryEntries[Vl];if(lu.tryLoc<=this.prev&&Rt.call(lu,"finallyLoc")&&this.prev=0;--ea){var Vl=this.tryEntries[ea];if(Vl.finallyLoc===Po)return this.complete(Vl.completion,Vl.afterLoc),Ru(Vl),Io}},catch:function(Po){for(var ea=this.tryEntries.length-1;ea>=0;--ea){var Vl=this.tryEntries[ea];if(Vl.tryLoc===Po){var lu=Vl.completion;if(lu.type==="throw"){var Eu=lu.arg;Ru(Vl)}return Eu}}throw new Error("illegal catch attempt")},delegateYield:function(Po,ea,Vl){return this.delegate={iterator:eu(Po),resultName:ea,nextLoc:Vl},this.method==="next"&&(this.arg=je),Io}},Ge}function Xi(je,Ge,_t,Rt,tr,zi,Ho){try{var Jo=je[zi](Ho),Pa=Jo.value}catch(Ti){_t(Ti);return}Jo.done?Ge(Pa):Promise.resolve(Pa).then(Rt,tr)}function Yi(je){return function(){var Ge=this,_t=arguments;return new Promise(function(Rt,tr){var zi=je.apply(Ge,_t);function Ho(Pa){Xi(zi,Rt,tr,Ho,Jo,"next",Pa)}function Jo(Pa){Xi(zi,Rt,tr,Ho,Jo,"throw",Pa)}Ho(void 0)})}}var fo=function(){var je=Yi(Se().mark(function Ge(_t,Rt){return Se().wrap(function(zi){for(;;)switch(zi.prev=zi.next){case 0:if(_t!=="Map"){zi.next=2;break}return zi.abrupt("return",new v.Map(Rt));case 2:if(_t!=="Gaode"){zi.next=6;break}return zi.abrupt("return",new v.GaodeMap(Rt));case 6:if(_t!=="GaodeV1"){zi.next=10;break}return zi.abrupt("return",new v.GaodeMapV1(Rt));case 10:if(_t!=="GaodeV2"){zi.next=12;break}return zi.abrupt("return",new v.GaodeMapV2(Rt));case 12:if(_t!=="Tencent"){zi.next=14;break}return zi.abrupt("return",Promise.resolve(Promise.resolve().then(y.bind(y,5076))).then(function(Ho){var Jo=Ho.TencentMap;return new Jo(Rt)}));case 14:if(_t!=="Baidu"){zi.next=16;break}return zi.abrupt("return",Promise.resolve(Promise.resolve().then(y.bind(y,5076))).then(function(Ho){var Jo=Ho.BaiduMap;return new Jo(Rt)}));case 16:return zi.abrupt("return",Promise.resolve(Promise.resolve().then(y.bind(y,5076))).then(function(Ho){var Jo=Ho.Mapbox;return new Jo(Rt)}));case 17:case"end":return zi.stop()}},Ge)}));return function(_t,Rt){return je.apply(this,arguments)}}(),di=function(je,Ge){return je?je.map(function(_t,Rt){return Object.is(je[Rt],Ge==null?void 0:Ge[Rt])?-1:Rt}).filter(function(_t){return _t>=0}):Ge?Ge.map(function(_t,Rt){return Rt}):[]},Fs=function(je,Ge){var _t=(0,P.useRef)();(0,P.useEffect)(function(){var Rt=di(_t.current,Ge),tr=_t.current;return _t.current=Ge,je(Rt,tr,Ge)},Ge)},Ln=Fs,it=y(45210),Ot={onLoaded:"loaded",onDestroy:"destroy",onResize:"resize",onMapMove:"mapmove",onMoveStart:"movestart",onMoveEnd:"moveend",onZoomChange:"zoomchange",onZoomStart:"zoomstart",onZoomEnd:"zoomend",onClick:"click",onDblclick:"dblclick",onContextMenu:"contextmenu",onMouseMove:"mousemove",onMouseWheel:"mousewheel",onMouseDown:"mousedown",onMouseOver:"mouseover",onMouseOut:"mouseout",onMouseUp:"mouseup",onDragStart:"dragstart",onDragging:"dragging",onDragEnd:"dragend"},Ht=Object.keys(Ot);function Pn(je){return Ut(je)||mn(je)||In(je)||fr()}function fr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function In(je,Ge){if(je){if(typeof je=="string")return en(je,Ge);var _t=Object.prototype.toString.call(je).slice(8,-1);if(_t==="Object"&&je.constructor&&(_t=je.constructor.name),_t==="Map"||_t==="Set")return Array.from(je);if(_t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_t))return en(je,Ge)}}function mn(je){if(typeof Symbol!="undefined"&&je[Symbol.iterator]!=null||je["@@iterator"]!=null)return Array.from(je)}function Ut(je){if(Array.isArray(je))return en(je)}function en(je,Ge){(Ge==null||Ge>je.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_tje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_t=0)&&Object.prototype.propertyIsEnumerable.call(je,Rt)&&(_t[Rt]=je[Rt])}return _t}function Zt(je,Ge){if(je==null)return{};var _t={},Rt=Object.keys(je),tr,zi;for(zi=0;zi=0)&&(_t[tr]=je[tr]);return _t}var vn=P.createContext(null),$n=(0,P.memo)((0,P.forwardRef)(function(Ge,_t){var Rt=Ge.id,tr=Ge.style,zi=Ge.className,Ho=Ge.map,Jo=Ge.mapType,Pa=Jo===void 0?"Gaode":Jo,Ti=Ge.mapOptions,os=Ti===void 0?{}:Ti,ua=Ge.onLayerManagerCreated,Go=Ge.onSceneLoaded,nl=Ge.children,Zs=Dt(Ge,pr),Zi=(0,P.useRef)(),Io=(0,P.useState)(null),Us=kr(Io,2),pl=Us[0],al=Us[1],Ia=(0,P.useRef)({scene:null,layerManager:null}),va=Ia.current;(0,P.useEffect)(function(){var _s,La=!0,Bo=(0,R.Z)(Ho)?fo(Pa,os):typeof Ho=="function"?Ho():Ho;return Promise.resolve(Bo).then(function(ka){if(La){_s=new v.Scene(wr(wr({},Zs),{},{id:Zi.current,map:ka}));var yl=new Xt({scene:_s});va.scene=_s,va.layerManager=yl,_s.once("loaded",function(){Go&&Go(_s),ua&&ua(yl),al(_s)})}}).catch(function(ka){console.error(ka)}),function(){La=!1,_s&&(va.scene=null,va.layerManager=null,_s.destroy())}},[]),Cn(pl,Ge),(0,P.useImperativeHandle)(_t,function(){return{getScene:function(){return pl},getMap:function(){return pl.map}}},[pl]),(0,P.useEffect)(function(){pl&&os.style&&pl.setMapStyle(os.style)},[os.style]),B(function(){(0,C.Z)(pl)||(os.center&&(0,g.Z)(os.zoom)?pl.setZoomAndCenter(os.zoom,os.center):(0,g.Z)(os.zoom)?pl.setZoom(os.zoom):os.center&&pl.setCenter(os.center))},[os.zoom,os.center]),(0,P.useEffect)(function(){pl&&(0,g.Z)(os.pitch)&&pl.setPitch(os.pitch)},[os.pitch]),(0,P.useEffect)(function(){pl&&(0,g.Z)(os.rotation)&&pl.setRotation(os.rotation)},[os.rotation]);var Ha=(0,P.useMemo)(function(){return wr({position:"relative"},tr)},[tr]);return P.createElement("div",{id:Rt,ref:Zi,style:Ha,className:k()("larkmap",zi)},pl&&P.createElement(vn.Provider,{value:va},nl))})),Ar=y(77598),Dr=function(){var Ge=(0,P.useContext)(vn);if(!Ge)throw new Error("The useScene must be used in the LarkMap container");var _t=Ge.scene;return _t},dr=function(Ge,_t,Rt){var tr=Dr(),zi=(0,P.useRef)();(0,P.useEffect)(function(){var Ho=new v.Control(Rt);return Ho.onAdd=function(){return Ge(tr)},Ho.onRemove=function(){},zi.current=Ho,tr.addControl(Ho),function(){typeof _t=="function"&&_t(tr),zi.current=null,tr.removeControl(Ho)}},[]),(0,Ar.Z)(function(){var Ho;(Ho=zi.current)===null||Ho===void 0||Ho.setOptions(Rt)},[Rt])},Yt=function(){var Ge=(0,P.useContext)(vn);if(!Ge)throw new Error("The useLayerManager must be used in the LarkMap container");var _t=Ge.layerManager;return _t};function wn(je,Ge){return Kn(je)||Dn(je,Ge)||Mr(je,Ge)||Qn()}function Qn(){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 Mr(je,Ge){if(je){if(typeof je=="string")return Wi(je,Ge);var _t=Object.prototype.toString.call(je).slice(8,-1);if(_t==="Object"&&je.constructor&&(_t=je.constructor.name),_t==="Map"||_t==="Set")return Array.from(je);if(_t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_t))return Wi(je,Ge)}}function Wi(je,Ge){(Ge==null||Ge>je.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_tje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_t=0)&&Object.prototype.propertyIsEnumerable.call(je,Rt)&&(_t[Rt]=je[Rt])}return _t}function qo(je,Ge){if(je==null)return{};var _t={},Rt=Object.keys(je),tr,zi;for(zi=0;zi=0)&&(_t[tr]=je[tr]);return _t}var Mo=function(Ge,_t){var Rt=_t.onCreated,tr=_t.source,zi=Or(_t,ns),Ho=Yt(),Jo=(0,P.useRef)(),Pa=(0,P.useRef)(zi),Ti=(0,P.useRef)(tr);return Jo.current||(Jo.current=new Ge(_t),Rt&&Jo.current.once("inited",function(){return Rt(Jo.current)}),Ho.addLayer(Jo.current)),(0,Ar.Z)(function(){if(Jo.current){var os=!(0,Nr.Z)(Pa.current,zi);os&&(Jo.current.update(zi),Pa.current=(0,Kr.Z)(zi))}},[zi]),(0,Ar.Z)(function(){if(Jo.current){var os=tr.data,ua=Or(tr,Ur),Go=Ti.current,nl=Go.data,Zs=Or(Go,gs),Zi=os!==nl||!(0,Nr.Z)(ua,Zs);Zi&&(Jo.current.changeData(tr),Ti.current=ni({},tr))}},[tr]),(0,P.useEffect)(function(){return function(){Jo.current&&(Ho.removeLayer(Jo.current),Jo.current=null)}},[]),Jo},vs={onRemove:"remove",onShow:"show",onHide:"hide",onDataUpdate:"dataUpdate",onLegend:"legend",onLegendColor:"legend:color",onLegendSize:"legend:size",onClick:"click",onUnClick:"unclick",onDblClick:"dblclick",onUndblclick:"undblclick",onContextMenu:"contextmenu",onUnContextMenu:"uncontextmenu",onMouseEnter:"mouseenter",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseUp:"mouseup",onMouseDown:"mousedown",onUnMousemove:"unmousemove",onUnMouseup:"unmouseup",onUnMousedown:"unmousedown",onUnPick:"unpick"},Na=function(Ge,_t){var Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vs,tr=(0,P.useMemo)(function(){return Object.keys(Rt)},[Rt]),zi=function(os){tr.forEach(function(ua){var Go=Rt[ua],nl=_t[ua];ua&&nl&&Ge[os](Go,nl)})},Ho=function(){return zi("on")},Jo=function(){return zi("off")},Pa=(0,P.useRef)(!0);Pa.current&&Ho(),(0,P.useEffect)(function(){return Pa.current?Pa.current=!1:Ho(),function(){Jo()}},tr.map(function(Ti){return _t[Ti]})),(0,it.Z)(function(){Jo()})},ho=null,aa=null,Ka=y(97582),Si={}.toString,Pi=function(je,Ge){return Si.call(je)==="[object "+Ge+"]"},to=Pi,So=function(je){return to(je,"Function")},ps=function(je){return Array.isArray?Array.isArray(je):to(je,"Array")},Wn=function(je){var Ge=typeof je;return je!==null&&Ge==="object"||Ge==="function"};function yo(je,Ge){if(je){var _t;if(ps(je))for(var Rt=0,tr=je.length;Rt-1;)ko.call(je,zi,1);return je},za=null,Zl=Array.prototype.splice,Hl=function(Ge,_t){if(!isArrayLike(Ge))return[];for(var Rt=Ge?_t.length:0,tr=Rt-1;Rt--;){var zi=void 0,Ho=_t[Rt];(Rt===tr||Ho!==zi)&&(zi=Ho,Zl.call(Ge,Ho,1))}return Ge},fs=null,js=function(je,Ge,_t){if(!ps(je)&&!dt(je))return je;var Rt=_t;return Qo(je,function(tr,zi){Rt=Ge(Rt,tr,zi)}),Rt},hl=js,Xo=function(je,Ge){var _t=[];if(!isArrayLike(je))return _t;for(var Rt=-1,tr=[],zi=je.length;++Rtzi[Jo])return 1;if(tr[Jo]0},Bl=null,Sl=function(je,Ge){if(isArray(je)){for(var _t,Rt=-1/0,tr=0;trRt&&(_t=zi,Rt=Ho)}return _t}},Tn=function(je,Ge){if(isArray(je)){for(var _t,Rt=1/0,tr=0;trJo&&os>Jo);)if(Pa.push(Ti),Jo-=os,Ho=Ho.substr(tr),!Ho)return Pa.join("");for(;Ti=Ho.substr(0,1),os=measureTextWidth(Ti,_t),!(os+zi>Jo);)if(Pa.push(Ti),Jo-=os,Ho=Ho.substr(1),!Ho)return Pa.join("");return""+Pa.join("")+Rt},rh=function(){function je(){this.map={}}return je.prototype.has=function(Ge){return this.map[Ge]!==void 0},je.prototype.get=function(Ge,_t){var Rt=this.map[Ge];return Rt===void 0?_t:Rt},je.prototype.set=function(Ge,_t){this.map[Ge]=_t},je.prototype.clear=function(){this.map={}},je.prototype.delete=function(Ge){delete this.map[Ge]},je.prototype.size=function(){return Object.keys(this.map).length},je}(),Mf=null;function yf(je,Ge){return function(){for(var _t=[],Rt=0;Rtje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_tje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_tje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_tje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_tje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_tje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_tje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_tje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_tje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_tje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_tje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_tje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_tje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_t=0)&&Object.prototype.propertyIsEnumerable.call(je,Rt)&&(_t[Rt]=je[Rt])}return _t}function Np(je,Ge){if(je==null)return{};var _t={},Rt=Object.keys(je),tr,zi;for(zi=0;zi=0)&&(_t[tr]=je[tr]);return _t}var _f="SECRET_COMBOBOX_MODE_DO_NOT_USE",K0="larkmap-select",U0=function(Ge,_t){var Rt=Ge.prefixCls,tr=Ge.bordered,zi=tr===void 0?!0:tr,Ho=Ge.className,Jo=Ge.getPopupContainer,Pa=Ge.dropdownClassName,Ti=Ge.popupClassName,os=Ge.listHeight,ua=os===void 0?256:os,Go=Ge.placement,nl=Ge.listItemHeight,Zs=nl===void 0?24:nl,Zi=Ge.disabled,Io=Ge.notFoundContent,Us=ip(Ge,bm),pl=P.useMemo(function(){var va=Us,Ha=va.mode;if(Ha!=="combobox")return Ha===_f?"combobox":Ha},[Us]),al=(0,_m.Z)(Us,"suffixIcon","itemIcon"),Ia=k()(jm({},"".concat(K0,"-borderless"),!zi),Ho);return P.createElement(w0.ZP,zg({ref:_t},al,{listHeight:ua,listItemHeight:Zs,mode:pl,prefixCls:K0,placement:Go,notFoundContent:Io!=null?Io:"\u5F53\u524D\u65E0\u6570\u636E",className:Ia,getPopupContainer:Jo,dropdownClassName:Ti,disabled:Zi}))},Tm=P.forwardRef(U0);Tm.SECRET_COMBOBOX_MODE_DO_NOT_USE=_f,Tm.Option=w0.Wx,Tm.OptGroup=w0.Xo;var C0=Tm;function S0(je){"@babel/helpers - typeof";return S0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ge){return typeof Ge}:function(Ge){return Ge&&typeof Symbol=="function"&&Ge.constructor===Symbol&&Ge!==Symbol.prototype?"symbol":typeof Ge},S0(je)}var cv=["searchParams","showDistrict","showAddress","onSearchFinish","onChange"];function Nd(){return Nd=Object.assign?Object.assign.bind():function(je){for(var Ge=1;Ge=0;--lu){var Eu=this.tryEntries[lu],rs=Eu.completion;if(Eu.tryLoc==="root")return Vl("end");if(Eu.tryLoc<=this.prev){var Jd=Rt.call(Eu,"catchLoc"),xd=Rt.call(Eu,"finallyLoc");if(Jd&&xd){if(this.prev=0;--Vl){var lu=this.tryEntries[Vl];if(lu.tryLoc<=this.prev&&Rt.call(lu,"finallyLoc")&&this.prev=0;--ea){var Vl=this.tryEntries[ea];if(Vl.finallyLoc===Po)return this.complete(Vl.completion,Vl.afterLoc),Ru(Vl),Io}},catch:function(Po){for(var ea=this.tryEntries.length-1;ea>=0;--ea){var Vl=this.tryEntries[ea];if(Vl.tryLoc===Po){var lu=Vl.completion;if(lu.type==="throw"){var Eu=lu.arg;Ru(Vl)}return Eu}}throw new Error("illegal catch attempt")},delegateYield:function(Po,ea,Vl){return this.delegate={iterator:eu(Po),resultName:ea,nextLoc:Vl},this.method==="next"&&(this.arg=je),Io}},Ge}function gm(je){return _0(je)||Bm(je)||Vn(je)||c0()}function c0(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bm(je){if(typeof Symbol!="undefined"&&je[Symbol.iterator]!=null||je["@@iterator"]!=null)return Array.from(je)}function _0(je){if(Array.isArray(je))return xt(je)}function Zp(je,Ge){var _t=Object.keys(je);if(Object.getOwnPropertySymbols){var Rt=Object.getOwnPropertySymbols(je);Ge&&(Rt=Rt.filter(function(tr){return Object.getOwnPropertyDescriptor(je,tr).enumerable})),_t.push.apply(_t,Rt)}return _t}function Gg(je){for(var Ge=1;Geje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_t=0)&&Object.prototype.propertyIsEnumerable.call(je,Rt)&&(_t[Rt]=je[Rt])}return _t}function rn(je,Ge){if(je==null)return{};var _t={},Rt=Object.keys(je),tr,zi;for(zi=0;zi=0)&&(_t[tr]=je[tr]);return _t}var fn=C0.Option,Rn=function(Ge){var _t=Ge.searchParams,Rt=Ge.showDistrict,tr=Ge.showAddress,zi=Ge.onSearchFinish,Ho=Ge.onChange,Jo=sn(Ge,cv),Pa=(0,P.useState)([]),Ti=ke(Pa,2),os=Ti[0],ua=Ti[1];(0,P.useEffect)(function(){zi==null||zi(os)},[zi,os]);var Go=(0,x0.Z)(function(){var Zi=ee(Wm().mark(function Io(Us){var pl,al,Ia,va;return Wm().wrap(function(_s){for(;;)switch(_s.prev=_s.next){case 0:if(Us){_s.next=3;break}return ua([]),_s.abrupt("return");case 3:return Ia=Is(um,Gg(Gg({},_t),{},{keywords:[].concat(gm(((pl=_t.keywords)!==null&&pl!==void 0?pl:"").split("|")),[Us]).filter(function(La){return!!La}).join("|")})),_s.next=6,fetch(Ia);case 6:return _s.next=8,_s.sent.json();case 8:va=_s.sent,ua(((al=va==null?void 0:va.tips)!==null&&al!==void 0?al:[]).filter(function(La){return La.location&&La.location.length}).map(function(La){var Bo=La.location.split(","),ka=ke(Bo,2),yl=ka[0],Cl=ka[1];return La.longitude=+yl,La.latitude=+Cl,La}));case 10:case"end":return _s.stop()}},Io)}));return function(Io){return Zi.apply(this,arguments)}}(),{wait:1e3}),nl=Go.run,Zs=(0,P.useCallback)(function(Zi){var Io=Zi&&os.find(function(Us){return Us.name===Zi});Ho==null||Ho(Zi||void 0,Io||void 0)},[Ho,os]);return P.createElement(C0,Nd({className:"".concat(ym),onSearch:nl,onChange:Zs,clearIcon:function(){return null}},Jo),os.map(function(Zi){var Io="".concat(Rt?Zi.district:"").concat(tr?Zi.address:"");return P.createElement(fn,{key:Zi.id,value:Zi.name},P.createElement("div",{title:Zi.name,className:"".concat(ym,"__option-name")},Zi.name),Io&&P.createElement("div",{title:Io,className:"".concat(ym,"__option-tip")},Io))}))};Rn.defaultProps={placeholder:"\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u5730\u540D",showSearch:!0,allowClear:!0,filterOption:!1,defaultActiveFirstOption:!1,showAddress:!0,showDistrict:!0};var Gn=y(8961),ur=y(53434),Fr="larkmap-administrative-location",ri="https://restapi.amap.com/v3/geocode/regeo";function Ye(je){"@babel/helpers - typeof";return Ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ge){return typeof Ge}:function(Ge){return Ge&&typeof Symbol=="function"&&Ge.constructor===Symbol&&Ge!==Symbol.prototype?"symbol":typeof Ge},Ye(je)}function rt(){"use strict";rt=function(){return Ge};var je,Ge={},_t=Object.prototype,Rt=_t.hasOwnProperty,tr=Object.defineProperty||function(Vs,Po,ea){Vs[Po]=ea.value},zi=typeof Symbol=="function"?Symbol:{},Ho=zi.iterator||"@@iterator",Jo=zi.asyncIterator||"@@asyncIterator",Pa=zi.toStringTag||"@@toStringTag";function Ti(Vs,Po,ea){return Object.defineProperty(Vs,Po,{value:ea,enumerable:!0,configurable:!0,writable:!0}),Vs[Po]}try{Ti({},"")}catch(Vs){Ti=function(ea,Vl,lu){return ea[Vl]=lu}}function os(Vs,Po,ea,Vl){var lu=Po&&Po.prototype instanceof Us?Po:Us,Eu=Object.create(lu.prototype),rs=new Pu(Vl||[]);return tr(Eu,"_invoke",{value:ka(Vs,ea,rs)}),Eu}function ua(Vs,Po,ea){try{return{type:"normal",arg:Vs.call(Po,ea)}}catch(Vl){return{type:"throw",arg:Vl}}}Ge.wrap=os;var Go="suspendedStart",nl="suspendedYield",Zs="executing",Zi="completed",Io={};function Us(){}function pl(){}function al(){}var Ia={};Ti(Ia,Ho,function(){return this});var va=Object.getPrototypeOf,Ha=va&&va(va(eu([])));Ha&&Ha!==_t&&Rt.call(Ha,Ho)&&(Ia=Ha);var _s=al.prototype=Us.prototype=Object.create(Ia);function La(Vs){["next","throw","return"].forEach(function(Po){Ti(Vs,Po,function(ea){return this._invoke(Po,ea)})})}function Bo(Vs,Po){function ea(lu,Eu,rs,Jd){var xd=ua(Vs[lu],Vs,Eu);if(xd.type!=="throw"){var Fp=xd.arg,tg=Fp.value;return tg&&Ye(tg)=="object"&&Rt.call(tg,"__await")?Po.resolve(tg.__await).then(function(og){ea("next",og,rs,Jd)},function(og){ea("throw",og,rs,Jd)}):Po.resolve(tg).then(function(og){Fp.value=og,rs(Fp)},function(og){return ea("throw",og,rs,Jd)})}Jd(xd.arg)}var Vl;tr(this,"_invoke",{value:function(Eu,rs){function Jd(){return new Po(function(xd,Fp){ea(Eu,rs,xd,Fp)})}return Vl=Vl?Vl.then(Jd,Jd):Jd()}})}function ka(Vs,Po,ea){var Vl=Go;return function(lu,Eu){if(Vl===Zs)throw new Error("Generator is already running");if(Vl===Zi){if(lu==="throw")throw Eu;return{value:je,done:!0}}for(ea.method=lu,ea.arg=Eu;;){var rs=ea.delegate;if(rs){var Jd=yl(rs,ea);if(Jd){if(Jd===Io)continue;return Jd}}if(ea.method==="next")ea.sent=ea._sent=ea.arg;else if(ea.method==="throw"){if(Vl===Go)throw Vl=Zi,ea.arg;ea.dispatchException(ea.arg)}else ea.method==="return"&&ea.abrupt("return",ea.arg);Vl=Zs;var xd=ua(Vs,Po,ea);if(xd.type==="normal"){if(Vl=ea.done?Zi:nl,xd.arg===Io)continue;return{value:xd.arg,done:ea.done}}xd.type==="throw"&&(Vl=Zi,ea.method="throw",ea.arg=xd.arg)}}}function yl(Vs,Po){var ea=Po.method,Vl=Vs.iterator[ea];if(Vl===je)return Po.delegate=null,ea==="throw"&&Vs.iterator.return&&(Po.method="return",Po.arg=je,yl(Vs,Po),Po.method==="throw")||ea!=="return"&&(Po.method="throw",Po.arg=new TypeError("The iterator does not provide a '"+ea+"' method")),Io;var lu=ua(Vl,Vs.iterator,Po.arg);if(lu.type==="throw")return Po.method="throw",Po.arg=lu.arg,Po.delegate=null,Io;var Eu=lu.arg;return Eu?Eu.done?(Po[Vs.resultName]=Eu.value,Po.next=Vs.nextLoc,Po.method!=="return"&&(Po.method="next",Po.arg=je),Po.delegate=null,Io):Eu:(Po.method="throw",Po.arg=new TypeError("iterator result is not an object"),Po.delegate=null,Io)}function Cl(Vs){var Po={tryLoc:Vs[0]};1 in Vs&&(Po.catchLoc=Vs[1]),2 in Vs&&(Po.finallyLoc=Vs[2],Po.afterLoc=Vs[3]),this.tryEntries.push(Po)}function Ru(Vs){var Po=Vs.completion||{};Po.type="normal",delete Po.arg,Vs.completion=Po}function Pu(Vs){this.tryEntries=[{tryLoc:"root"}],Vs.forEach(Cl,this),this.reset(!0)}function eu(Vs){if(Vs||Vs===""){var Po=Vs[Ho];if(Po)return Po.call(Vs);if(typeof Vs.next=="function")return Vs;if(!isNaN(Vs.length)){var ea=-1,Vl=function lu(){for(;++ea=0;--lu){var Eu=this.tryEntries[lu],rs=Eu.completion;if(Eu.tryLoc==="root")return Vl("end");if(Eu.tryLoc<=this.prev){var Jd=Rt.call(Eu,"catchLoc"),xd=Rt.call(Eu,"finallyLoc");if(Jd&&xd){if(this.prev=0;--Vl){var lu=this.tryEntries[Vl];if(lu.tryLoc<=this.prev&&Rt.call(lu,"finallyLoc")&&this.prev=0;--ea){var Vl=this.tryEntries[ea];if(Vl.finallyLoc===Po)return this.complete(Vl.completion,Vl.afterLoc),Ru(Vl),Io}},catch:function(Po){for(var ea=this.tryEntries.length-1;ea>=0;--ea){var Vl=this.tryEntries[ea];if(Vl.tryLoc===Po){var lu=Vl.completion;if(lu.type==="throw"){var Eu=lu.arg;Ru(Vl)}return Eu}}throw new Error("illegal catch attempt")},delegateYield:function(Po,ea,Vl){return this.delegate={iterator:eu(Po),resultName:ea,nextLoc:Vl},this.method==="next"&&(this.arg=je),Io}},Ge}function Ft(je){return Fn(je)||Jt(je)||cr(je)||Vt()}function Vt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jt(je){if(typeof Symbol!="undefined"&&je[Symbol.iterator]!=null||je["@@iterator"]!=null)return Array.from(je)}function Fn(je){if(Array.isArray(je))return Lr(je)}function _r(je,Ge){var _t=Object.keys(je);if(Object.getOwnPropertySymbols){var Rt=Object.getOwnPropertySymbols(je);Ge&&(Rt=Rt.filter(function(tr){return Object.getOwnPropertyDescriptor(je,tr).enumerable})),_t.push.apply(_t,Rt)}return _t}function Yn(je){for(var Ge=1;Geje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_tje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_t2&&arguments[2]!==void 0?arguments[2]:5,tr=[Ge],zi=oi()(Ge).object(),Ho=oi()(_t).object();if(Rt<2)return Rt<1?[]:tr;var Jo={r:(zi.r-Ho.r)/(Rt-1),g:(zi.g-Ho.g)/(Rt-1),b:(zi.b-Ho.b)/(Rt-1)};return(0,ms.Z)(new Array(Rt-2),function(Pa,Ti){return tr.push(oi()({r:(0,Ls.Z)(zi.r-Jo.r*(Ti+1),0),g:(0,Ls.Z)(zi.g-Jo.g*(Ti+1),0),b:(0,Ls.Z)(zi.b-Jo.b*(Ti+1),0)}).hex())}),tr.push(_t),tr};function no(je){"@babel/helpers - typeof";return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ge){return typeof Ge}:function(Ge){return Ge&&typeof Symbol=="function"&&Ge.constructor===Symbol&&Ge!==Symbol.prototype?"symbol":typeof Ge},no(je)}function uo(je,Ge,_t){return Ge=Ro(Ge),Ge in je?Object.defineProperty(je,Ge,{value:_t,enumerable:!0,configurable:!0,writable:!0}):je[Ge]=_t,je}function Ro(je){var Ge=Qs(je,"string");return no(Ge)==="symbol"?Ge:String(Ge)}function Qs(je,Ge){if(no(je)!=="object"||je===null)return je;var _t=je[Symbol.toPrimitive];if(_t!==void 0){var Rt=_t.call(je,Ge||"default");if(no(Rt)!=="object")return Rt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ge==="string"?String:Number)(je)}var ra="larkmap-legend-category";function Ke(je){var Ge=je.labels,_t=je.colors,Rt=je.geometryType,tr=Rt===void 0?"circle":Rt,zi=je.isStrokeColor,Ho=je.style,Jo=je.className;function Pa(ua){return zi?{border:"2px solid ".concat(ua)}:{background:ua}}function Ti(ua){return P.createElement("div",{className:k()(ra,Jo),style:Ho},Ge.map(function(Go,nl){return P.createElement("div",{className:"".concat(ra,"__content"),key:Go},P.createElement("div",{className:k()("".concat(ra,"__content__shape"),uo({},"".concat(ra,"__content__").concat(tr),tr)),style:Pa(ua[nl])}),P.createElement("div",{className:"".concat(ra,"labels")},Go))}))}function os(){if(Array.isArray(_t))return Ti(_t);var ua=Aa(_t.startColor,_t.endColor,Ge.length);return Ti(ua)}return P.createElement(os,null)}Ke.defaultProps={geometryType:"circle",isStrokeColor:!1};var Sa=y(36306),dl="larkmap-legend-ramp",Ul=function(Ge){var _t=Ge[Ge.length-1],Rt=Ge[0];return Number.isFinite(Rt)||(Rt=parseInt(Rt,10)),Number.isFinite(_t)||(_t=parseInt(_t,10)),[Rt,_t]};function Ks(je){var Ge=je.labels,_t=je.labelUnit,Rt=_t===void 0?"":_t,tr=je.colors,zi=Ge[0]+Rt,Ho=Ge[Ge.length-1]+Rt;return P.createElement(P.Fragment,null,P.createElement("div",{className:"".concat(dl,"__continuous"),style:{background:"linear-gradient(to right,".concat(tr,")")}}),P.createElement("div",{className:"".concat(dl,"__continuous-labelbar")},P.createElement("span",null,zi),P.createElement("span",null,Ho)))}function ma(je){var Ge=je.labels,_t=je.labelUnit,Rt=_t===void 0?"":_t,tr=je.colors,zi=(0,P.useRef)(null),Ho=(0,Sa.Z)(zi),Jo=(Ho==null?void 0:Ho.width)/(tr.length+1),Pa=Ge;if(Ge.length+1===tr.length){var Ti="< "+Ge[0],os="\u2265 "+Ge[Ge.length-1];Pa.unshift(Ti),Pa.push(os)}var ua=function(nl){var Zs="".concat(Ge[nl]).concat(Rt," - ").concat(Ge[nl+1]).concat(Rt);return Zs};return P.createElement("div",{className:"".concat(dl,"__dis-continuous"),ref:zi},Number.isNaN(Jo)?null:P.createElement(P.Fragment,null,P.createElement("div",{className:"".concat(dl,"__dis-continuous__colors"),style:{paddingLeft:Jo/2}},tr==null?void 0:tr.map(function(Go,nl){return P.createElement("div",{key:Go,title:ua(nl),className:"".concat(dl,"__dis-continuous__color"),style:{background:Go,width:Jo}})})),P.createElement("div",{className:"".concat(dl,"__dis-continuous__labels")},Ge==null?void 0:Ge.map(function(Go){var nl=Go+Rt;return P.createElement("span",{key:Go,className:"".concat(dl,"__dis-continuous__label")},nl)}))))}function ul(je){var Ge=je.isContinuous,_t=je.labels,Rt=je.colors,tr=je.labelUnit,zi=je.className,Ho=je.style;return P.createElement("div",{className:k()("".concat(dl),zi),style:Ho},Ge?P.createElement(Ks,{labels:_t,labelUnit:tr,colors:Rt}):P.createElement(ma,{labels:_t,labelUnit:tr,colors:Rt}))}ul.defaultProps={isContinuous:!1,labelUnit:""};var Xs=y(67135),so={point:Xs.DrawPoint,line:Xs.DrawLine,polygon:Xs.DrawPolygon,rect:Xs.DrawRect,circle:Xs.DrawCircle};function la(je){"@babel/helpers - typeof";return la=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ge){return typeof Ge}:function(Ge){return Ge&&typeof Symbol=="function"&&Ge.constructor===Symbol&&Ge!==Symbol.prototype?"symbol":typeof Ge},la(je)}function ts(je,Ge){var _t=Object.keys(je);if(Object.getOwnPropertySymbols){var Rt=Object.getOwnPropertySymbols(je);Ge&&(Rt=Rt.filter(function(tr){return Object.getOwnPropertyDescriptor(je,tr).enumerable})),_t.push.apply(_t,Rt)}return _t}function Ea(je){for(var Ge=1;Geje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_tje.length)&&(Ge=je.length);for(var _t=0,Rt=new Array(Ge);_t=Ze&&++Xr;else{let Ze=-1;for(let ht of Xn)(ht=Rr(ht,++Ze,Xn))!=null&&(ht=+ht)>=ht&&++Xr}return Xr}function R(Xn){return Math.max(1,Math.ceil(Math.log(k(Xn))/Math.LN2)+1)}function C(Xn,Rr){let Xr,Ze;if(Rr===void 0)for(const ht of Xn)ht!=null&&(Xr===void 0?ht>=ht&&(Xr=Ze=ht):(Xr>ht&&(Xr=ht),Ze=dt&&(Xr=Ze=dt):(Xr>dt&&(Xr=dt),Ze=g?10:dt>=A?5:dt>=O?2:1;let ft,Lt,gn;return ht<0?(gn=Math.pow(10,-ht)/$e,ft=Math.round(Xn*gn),Lt=Math.round(Rr*gn),ft/gnRr&&--Lt,gn=-gn):(gn=Math.pow(10,ht)*$e,ft=Math.round(Xn/gn),Lt=Math.round(Rr/gn),ft*gnRr&&--Lt),Lt0))return[];if(Xn===Rr)return[Xn];const Ze=Rr=ht))return[];const ft=dt-ht+1,Lt=new Array(ft);if(Ze)if($e<0)for(let gn=0;gn0?(Xn=Math.floor(Xn/ht)*ht,Rr=Math.ceil(Rr/ht)*ht):ht<0&&(Xn=Math.ceil(Xn*ht)/ht,Rr=Math.floor(Rr*ht)/ht),Ze=ht}}var ye=Array.prototype,be=ye.slice;function Qe(Xn,Rr){return Xn-Rr}function Ve(Xn){for(var Rr=0,Xr=Xn.length,Ze=Xn[Xr-1][1]*Xn[0][0]-Xn[Xr-1][0]*Xn[0][1];++Rr()=>Xn;function st(Xn,Rr){for(var Xr=-1,Ze=Rr.length,ht;++XrZe!=xo>Ze&&Xr<(Fi-gn)*(Ze-rr)/(xo-rr)+gn&&(ht=-ht)}return ht}function De(Xn,Rr,Xr){var Ze;return Te(Xn,Rr,Xr)&&Me(Xn[Ze=+(Xn[0]===Rr[0])],Xr[Ze],Rr[Ze])}function Te(Xn,Rr,Xr){return(Rr[0]-Xn[0])*(Xr[1]-Xn[1])===(Xr[0]-Xn[0])*(Rr[1]-Xn[1])}function Me(Xn,Rr,Xr){return Xn<=Rr&&Rr<=Xr||Xr<=Rr&&Rr<=Xn}function Ue(){}var Pe=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Xe(){var Xn=1,Rr=1,Xr=R,Ze=Lt;function ht(gn){var rr=Xr(gn);if(Array.isArray(rr))rr=rr.slice().sort(Qe);else{const zr=C(gn,Be);for(rr=he(...xe(zr[0],zr[1],rr),rr);rr[rr.length-1]>=zr[1];)rr.pop();for(;rr[1]dt(gn,zr))}function dt(gn,rr){const zr=rr==null?NaN:+rr;if(isNaN(zr))throw new Error(`invalid value: ${rr}`);var Fi=[],xo=[];return $e(gn,zr,function(Vi){Ze(Vi,gn,zr),Ve(Vi)>0?Fi.push([Vi]):xo.push(Vi)}),xo.forEach(function(Vi){for(var zs=0,Ps=Fi.length,Ms;zs=rr,Pe[ks<<2].forEach(As);++Vi0&&xo0&&Vi=0&&zr>=0))throw new Error("invalid size");return Xn=rr,Rr=zr,ht},ht.thresholds=function(gn){return arguments.length?(Xr=typeof gn=="function"?gn:Array.isArray(gn)?pt(be.call(gn)):pt(gn),ht):Xr},ht.smooth=function(gn){return arguments.length?(Ze=gn?Lt:Ue,ht):Ze===Lt},ht}function Be(Xn){return isFinite(Xn)?Xn:NaN}function Xt(Xn,Rr){return Xn==null?!1:+Xn>=Rr}function St(Xn){return Xn==null||isNaN(Xn=+Xn)?-1/0:Xn}function nt(Xn,Rr,Xr,Ze){const ht=Ze-Rr,dt=Xr-Rr,$e=isFinite(ht)||isFinite(dt)?ht/dt:Math.sign(ht)/Math.sign(dt);return isNaN($e)?Xn:Xn+$e-.5}var wt=y(16479),lt=y.n(wt);function Kt(Xn,Rr){return ii(Xn)||Sr(Xn,Rr)||hn(Xn,Rr)||Mt()}function Mt(){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 hn(Xn,Rr){if(Xn){if(typeof Xn=="string")return un(Xn,Rr);var Xr=Object.prototype.toString.call(Xn).slice(8,-1);if(Xr==="Object"&&Xn.constructor&&(Xr=Xn.constructor.name),Xr==="Map"||Xr==="Set")return Array.from(Xn);if(Xr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xr))return un(Xn,Rr)}}function un(Xn,Rr){(Rr==null||Rr>Xn.length)&&(Rr=Xn.length);for(var Xr=0,Ze=new Array(Rr);Xr1&&arguments[1]!==void 0?arguments[1]:"image/png",Xr=document.createElement("canvas"),Ze=Xr.getContext("2d");return Xr.width=Xn.width,Xr.height=Xn.height,Ze.drawImage(Xn,0,0,Xn.width,Xn.height),Xr.toDataURL(Rr)}function eo(Xn){var Rr=Ii(Xn),Xr=new Image;return Xr.src=Rr.toDataURL(),Xr}function ti(Xn,Rr,Xr,Ze){for(var ht=new Uint8ClampedArray(Xn.data),dt=new Uint8ClampedArray(4*Xr*Ze),$e=0;$e0){var ft=4*$e;dt[ft+0]=ht[ft+0],dt[ft+1]=ht[ft+1],dt[ft+2]=Math.max(ht[ft+2],200),dt[ft+3]=ht[ft+3]}return eo(new ImageData(dt,Xr,Ze))}function Is(Xn,Rr,Xr){for(var Ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:15,ht=Rr,dt=0,$e=Xr,ft=0,Lt=0;Lt0){var gn=Lt%Rr,rr=Math.floor(Lt/Rr);ht=Math.min(ht,gn),dt=Math.max(dt,gn),$e=Math.min($e,rr),ft=Math.max(ft,rr)}return[ht-Ze,dt+Ze,$e-Ze,ft+Ze]}function Ns(Xn,Rr,Xr,Ze,ht,dt){for(var $e=[],ft=0,Lt=Rr;Lt0?1:-1}return $e}function Se(Xn,Rr,Xr){var Ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,ht=Xn.map(function($e){return{x:$e[0]+Rr,y:$e[1]+Xr}});if(Ze===0)return ht;var dt=lt()(ht,Ze,!0);return dt}var Xi=function(Rr){return new Promise(function(Xr,Ze){var ht=new FileReader;ht.readAsDataURL(Rr),ht.onload=function(){return Xr(ht.result)},ht.onerror=function(dt){return Ze(dt)}})};function Yi(Xn,Rr,Xr){var Ze=Is(Xn,Rr,Xr),ht=Kt(Ze,4),dt=ht[0],$e=ht[1],ft=ht[2],Lt=ht[3],gn=Ns(dt,ft,$e,Lt,Xn,Rr),rr=ti(gn,$e-dt,Lt-ft);return eo(rr)}function fo(Xn,Rr,Xr){var Ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,ht=Is(Xn,Rr,Xr),dt=Kt(ht,4),$e=dt[0],ft=dt[1],Lt=dt[2],gn=dt[3],rr=Ns($e,Lt,ft,gn,Xn,Rr),zr=ft-$e,Fi=gn-Lt,xo=Xe().size([zr,Fi]).smooth(!1).thresholds(2),Vi=xo(rr);return Se(Vi[1].coordinates[0][0],$e,Lt,Ze)}function di(Xn,Rr){for(var Xr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,Ze=0;Ze0)&&(Xn.data[4*Ze+0]=0,Xn.data[4*Ze+1]=0,Xn.data[4*Ze+2]=0,Xn.data[4*Ze+3]=0);return eo(Xn)}function Fs(Xn,Rr,Xr,Ze){for(var ht=Is(Rr,Xr,Ze),dt=Kt(ht,4),$e=dt[0],ft=dt[1],Lt=dt[2],gn=dt[3],rr=new Uint8ClampedArray(4*(ft-$e)*(gn-Lt)).fill(0),zr=0,Fi=Lt;Fi0&&(rr[zr*4]=Xn.data[Vi*4],rr[zr*4+1]=Xn.data[Vi*4+1],rr[zr*4+2]=Xn.data[Vi*4+2],rr[zr*4+3]=Xn.data[Vi*4+3]),zr++}var zs=new ImageData(rr,ft-$e,gn-Lt);return eo(zs)}function Ln(Xn){var Rr=document.createElement("a");Rr.href=Xn.src,Rr.download="image",Rr.click()}function it(Xn){var Rr=document.createElement("a");Rr.href=Xn.toDataURL("image/png"),Rr.download="image",Rr.click()}function Ot(Xn){var Rr=document.createElement("canvas"),Xr=Rr.getContext("2d");return Rr.width=Xn.width,Rr.height=Xn.height,Xr==null||Xr.drawImage(Xn,0,0),Xr==null?void 0:Xr.getImageData(0,0,Xn.width,Xn.height)}var Ht=function(Rr){var Xr=1024,Ze=Rr.naturalWidth,ht=Rr.naturalHeight,dt=Xr/Math.max(ht,Ze);return{height:ht,width:Ze,samScale:dt}},Pn=function(Rr,Xr){var Ze=1024,ht=Ze/Math.max(Xr,Rr);return{height:Xr,width:Rr,samScale:ht}};function fr(Xn){"@babel/helpers - typeof";return fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Rr){return typeof Rr}:function(Rr){return Rr&&typeof Symbol=="function"&&Rr.constructor===Symbol&&Rr!==Symbol.prototype?"symbol":typeof Rr},fr(Xn)}function In(){"use strict";In=function(){return Xn};var Xn={},Rr=Object.prototype,Xr=Rr.hasOwnProperty,Ze=Object.defineProperty||function(Xo,Li,Yo){Xo[Li]=Yo.value},ht=typeof Symbol=="function"?Symbol:{},dt=ht.iterator||"@@iterator",$e=ht.asyncIterator||"@@asyncIterator",ft=ht.toStringTag||"@@toStringTag";function Lt(Xo,Li,Yo){return Object.defineProperty(Xo,Li,{value:Yo,enumerable:!0,configurable:!0,writable:!0}),Xo[Li]}try{Lt({},"")}catch(Xo){Lt=function(Yo,Os,Cs){return Yo[Os]=Cs}}function gn(Xo,Li,Yo,Os){var Cs=Li&&Li.prototype instanceof Fi?Li:Fi,ba=Object.create(Cs.prototype),Yu=new fs(Os||[]);return Ze(ba,"_invoke",{value:ia(Xo,Yo,Yu)}),ba}function rr(Xo,Li,Yo){try{return{type:"normal",arg:Xo.call(Li,Yo)}}catch(Os){return{type:"throw",arg:Os}}}Xn.wrap=gn;var zr={};function Fi(){}function xo(){}function Vi(){}var zs={};Lt(zs,dt,function(){return this});var Ps=Object.getPrototypeOf,Ms=Ps&&Ps(Ps(js([])));Ms&&Ms!==Rr&&Xr.call(Ms,dt)&&(zs=Ms);var ks=Vi.prototype=Fi.prototype=Object.create(zs);function ko(Xo){["next","throw","return"].forEach(function(Li){Lt(Xo,Li,function(Yo){return this._invoke(Li,Yo)})})}function As(Xo,Li){function Yo(Cs,ba,Yu,pc){var Hu=rr(Xo[Cs],Xo,ba);if(Hu.type!=="throw"){var wh=Hu.arg,lh=wh.value;return lh&&fr(lh)=="object"&&Xr.call(lh,"__await")?Li.resolve(lh.__await).then(function(fu){Yo("next",fu,Yu,pc)},function(fu){Yo("throw",fu,Yu,pc)}):Li.resolve(lh).then(function(fu){wh.value=fu,Yu(wh)},function(fu){return Yo("throw",fu,Yu,pc)})}pc(Hu.arg)}var Os;Ze(this,"_invoke",{value:function(ba,Yu){function pc(){return new Li(function(Hu,wh){Yo(ba,Yu,Hu,wh)})}return Os=Os?Os.then(pc,pc):pc()}})}function ia(Xo,Li,Yo){var Os="suspendedStart";return function(Cs,ba){if(Os==="executing")throw new Error("Generator is already running");if(Os==="completed"){if(Cs==="throw")throw ba;return hl()}for(Yo.method=Cs,Yo.arg=ba;;){var Yu=Yo.delegate;if(Yu){var pc=za(Yu,Yo);if(pc){if(pc===zr)continue;return pc}}if(Yo.method==="next")Yo.sent=Yo._sent=Yo.arg;else if(Yo.method==="throw"){if(Os==="suspendedStart")throw Os="completed",Yo.arg;Yo.dispatchException(Yo.arg)}else Yo.method==="return"&&Yo.abrupt("return",Yo.arg);Os="executing";var Hu=rr(Xo,Li,Yo);if(Hu.type==="normal"){if(Os=Yo.done?"completed":"suspendedYield",Hu.arg===zr)continue;return{value:Hu.arg,done:Yo.done}}Hu.type==="throw"&&(Os="completed",Yo.method="throw",Yo.arg=Hu.arg)}}}function za(Xo,Li){var Yo=Li.method,Os=Xo.iterator[Yo];if(Os===void 0)return Li.delegate=null,Yo==="throw"&&Xo.iterator.return&&(Li.method="return",Li.arg=void 0,za(Xo,Li),Li.method==="throw")||Yo!=="return"&&(Li.method="throw",Li.arg=new TypeError("The iterator does not provide a '"+Yo+"' method")),zr;var Cs=rr(Os,Xo.iterator,Li.arg);if(Cs.type==="throw")return Li.method="throw",Li.arg=Cs.arg,Li.delegate=null,zr;var ba=Cs.arg;return ba?ba.done?(Li[Xo.resultName]=ba.value,Li.next=Xo.nextLoc,Li.method!=="return"&&(Li.method="next",Li.arg=void 0),Li.delegate=null,zr):ba:(Li.method="throw",Li.arg=new TypeError("iterator result is not an object"),Li.delegate=null,zr)}function Zl(Xo){var Li={tryLoc:Xo[0]};1 in Xo&&(Li.catchLoc=Xo[1]),2 in Xo&&(Li.finallyLoc=Xo[2],Li.afterLoc=Xo[3]),this.tryEntries.push(Li)}function Hl(Xo){var Li=Xo.completion||{};Li.type="normal",delete Li.arg,Xo.completion=Li}function fs(Xo){this.tryEntries=[{tryLoc:"root"}],Xo.forEach(Zl,this),this.reset(!0)}function js(Xo){if(Xo){var Li=Xo[dt];if(Li)return Li.call(Xo);if(typeof Xo.next=="function")return Xo;if(!isNaN(Xo.length)){var Yo=-1,Os=function Cs(){for(;++Yo=0;--Cs){var ba=this.tryEntries[Cs],Yu=ba.completion;if(ba.tryLoc==="root")return Os("end");if(ba.tryLoc<=this.prev){var pc=Xr.call(ba,"catchLoc"),Hu=Xr.call(ba,"finallyLoc");if(pc&&Hu){if(this.prev=0;--Os){var Cs=this.tryEntries[Os];if(Cs.tryLoc<=this.prev&&Xr.call(Cs,"finallyLoc")&&this.prev=0;--Yo){var Os=this.tryEntries[Yo];if(Os.finallyLoc===Li)return this.complete(Os.completion,Os.afterLoc),Hl(Os),zr}},catch:function(Li){for(var Yo=this.tryEntries.length-1;Yo>=0;--Yo){var Os=this.tryEntries[Yo];if(Os.tryLoc===Li){var Cs=Os.completion;if(Cs.type==="throw"){var ba=Cs.arg;Hl(Os)}return ba}}throw new Error("illegal catch attempt")},delegateYield:function(Li,Yo,Os){return this.delegate={iterator:js(Li),resultName:Yo,nextLoc:Os},this.method==="next"&&(this.arg=void 0),zr}},Xn}function mn(Xn,Rr,Xr,Ze,ht,dt,$e){try{var ft=Xn[dt]($e),Lt=ft.value}catch(gn){Xr(gn);return}ft.done?Rr(Lt):Promise.resolve(Lt).then(Ze,ht)}function Ut(Xn){return function(){var Rr=this,Xr=arguments;return new Promise(function(Ze,ht){var dt=Xn.apply(Rr,Xr);function $e(Lt){mn(dt,Ze,ht,$e,ft,"next",Lt)}function ft(Lt){mn(dt,Ze,ht,$e,ft,"throw",Lt)}$e(void 0)})}}function en(Xn,Rr){if(!(Xn instanceof Rr))throw new TypeError("Cannot call a class as a function")}function Cn(Xn,Rr){for(var Xr=0;Xr1&&gn[1]!==void 0?gn[1]:"float32",$e=new V,typeof ht!="string"){zr.next=6;break}zr.t0=$e.load(ht),zr.next=9;break;case 6:return zr.next=8,$e.parse(ht);case 8:zr.t0=zr.sent;case 9:ft=zr.t0,Lt=new Cr.Tensor(dt,ft.data,ft.shape),this.tensor=Lt;case 12:case"end":return zr.stop()}},Ze,this)}));function Xr(Ze){return Rr.apply(this,arguments)}return Xr}()},{key:"predict",value:function(){var Rr=Ut(In().mark(function Ze(ht){var dt,$e,ft;return In().wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:if(gn.prev=0,!(this.model===null||ht===null||this.tensor===null||this.modelScale===null)){gn.next=6;break}return console.log("model not loaded"),gn.abrupt("return");case 6:if(dt=w({clicks:ht,tensor:this.tensor,modelScale:this.modelScale}),dt!==void 0){gn.next=9;break}return gn.abrupt("return");case 9:return gn.next=11,this.model.run(dt);case 11:return $e=gn.sent,ft=$e[this.model.outputNames[0]],gn.abrupt("return",ft);case 14:gn.next=20;break;case 16:return gn.prev=16,gn.t0=gn.catch(0),console.log(gn.t0),gn.abrupt("return");case 20:case"end":return gn.stop()}},Ze,this,[[0,16]])}));function Xr(Ze){return Rr.apply(this,arguments)}return Xr}()},{key:"predictByBox",value:function(){var Rr=Ut(In().mark(function Ze(ht){return In().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",ht);case 1:case"end":return $e.stop()}},Ze)}));function Xr(Ze){return Rr.apply(this,arguments)}return Xr}()},{key:"exportMaskImage",value:function(Xr){if(this.imageData!==void 0)return ti(this.imageData,Xr.data,Xr.dims[3],Xr.dims[2])}},{key:"exportMaskClip",value:function(Xr){return Yi(Xr.data,Xr.dims[3],Xr.dims[2])}},{key:"exportImage",value:function(Xr){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.imageData!==void 0)return di(this.imageData,Xr.data,Ze)}},{key:"exportImageClip",value:function(Xr){if(this.imageData!==void 0)return Fs(this.imageData,Xr.data,Xr.dims[3],Xr.dims[2])}},{key:"exportVector",value:function(Xr){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;return fo(Xr.data,Xr.dims[3],Xr.dims[2],Ze)}},{key:"setWasmUrl",value:function(Xr){P.env.wasm.wasmPaths=Xr}},{key:"getImageScale",value:function(Xr){var Ze=Xr.width,ht=Xr.height;this.modelScale=Pn(Ze,ht)}}]),Xn}();function vo(Xn){"@babel/helpers - typeof";return vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Rr){return typeof Rr}:function(Rr){return Rr&&typeof Symbol=="function"&&Rr.constructor===Symbol&&Rr!==Symbol.prototype?"symbol":typeof Rr},vo(Xn)}function kr(Xn,Rr){return pn(Xn)||xn(Xn,Rr)||qi(Xn,Rr)||ro()}function ro(){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 qi(Xn,Rr){if(Xn){if(typeof Xn=="string")return bo(Xn,Rr);var Xr=Object.prototype.toString.call(Xn).slice(8,-1);if(Xr==="Object"&&Xn.constructor&&(Xr=Xn.constructor.name),Xr==="Map"||Xr==="Set")return Array.from(Xn);if(Xr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xr))return bo(Xn,Rr)}}function bo(Xn,Rr){(Rr==null||Rr>Xn.length)&&(Rr=Xn.length);for(var Xr=0,Ze=new Array(Rr);Xr0&&arguments[0]!==void 0?arguments[0]:256,Xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"tms";Dt(this,Xn),$n(this,"tileSize",void 0),$n(this,"type",void 0),$n(this,"initialResolution",void 0),$n(this,"originShift",void 0),this.tileSize=Rr,this.type=Xr,this.initialResolution=2*Math.PI*6378137/this.tileSize,this.originShift=2*Math.PI*6378137/2}return vn(Xn,[{key:"lngLatToMeters",value:function(Xr,Ze){var ht=Xr*this.originShift/180,dt=Math.log(Math.tan((90+Ze)*Math.PI/360))/(Math.PI/180);return dt=dt*this.originShift/180,[ht,dt]}},{key:"metersToLngLat",value:function(Xr,Ze){var ht=Xr/this.originShift*180,dt=Ze/this.originShift*180;return dt=180/Math.PI*(2*Math.atan(Math.exp(dt*Math.PI/180))-Math.PI/2),[ht,dt]}},{key:"pixelsToMeters",value:function(Xr,Ze,ht){var dt=this.resolution(ht),$e=Xr*dt-this.originShift,ft=(this.type==="tms"?Ze:Math.pow(2,ht)*256-Ze)*dt-this.originShift;return[$e,ft]}},{key:"metersToPixels",value:function(Xr,Ze,ht){var dt=this.resolution(ht),$e=(Xr+this.originShift)/dt,ft=(Ze+this.originShift)/dt;return ft=this.type==="tms"?ft:Math.pow(2,ht)*256-ft,[$e,ft]}},{key:"metersToTile",value:function(Xr,Ze,ht){var dt=this.metersToPixels(Xr,Ze,ht),$e=kr(dt,2),ft=$e[0],Lt=$e[1];return this.pixelsToTile(ft,Lt)}},{key:"tileToMeters",value:function(Xr,Ze,ht){return this.pixelsToMeters(Xr*this.tileSize,Ze*this.tileSize,ht)}},{key:"tileToLngLat",value:function(Xr,Ze,ht){var dt=this.tileToMeters(Xr,Ze,ht),$e=kr(dt,2),ft=$e[0],Lt=$e[1];return this.metersToLngLat(ft,Lt)}},{key:"pixelsToTile",value:function(Xr,Ze){var ht=Math.floor(Math.ceil(Xr/this.tileSize)-1),dt=Math.floor(Math.ceil(Ze/this.tileSize)-1);return[ht,dt]}},{key:"pixelsToRaster",value:function(Xr,Ze,ht){var dt=this.tileSize<Xn.length)&&(Rr=Xn.length);for(var Xr=0,Ze=new Array(Rr);Xr=0;--Cs){var ba=this.tryEntries[Cs],Yu=ba.completion;if(ba.tryLoc==="root")return Os("end");if(ba.tryLoc<=this.prev){var pc=Xr.call(ba,"catchLoc"),Hu=Xr.call(ba,"finallyLoc");if(pc&&Hu){if(this.prev=0;--Os){var Cs=this.tryEntries[Os];if(Cs.tryLoc<=this.prev&&Xr.call(Cs,"finallyLoc")&&this.prev=0;--Yo){var Os=this.tryEntries[Yo];if(Os.finallyLoc===Li)return this.complete(Os.completion,Os.afterLoc),Hl(Os),zr}},catch:function(Li){for(var Yo=this.tryEntries.length-1;Yo>=0;--Yo){var Os=this.tryEntries[Yo];if(Os.tryLoc===Li){var Cs=Os.completion;if(Cs.type==="throw"){var ba=Cs.arg;Hl(Os)}return ba}}throw new Error("illegal catch attempt")},delegateYield:function(Li,Yo,Os){return this.delegate={iterator:js(Li),resultName:Yo,nextLoc:Os},this.method==="next"&&(this.arg=void 0),zr}},Xn}function qr(Xn,Rr,Xr,Ze,ht,dt,$e){try{var ft=Xn[dt]($e),Lt=ft.value}catch(gn){Xr(gn);return}ft.done?Rr(Lt):Promise.resolve(Lt).then(Ze,ht)}function yi(Xn){return function(){var Rr=this,Xr=arguments;return new Promise(function(Ze,ht){var dt=Xn.apply(Rr,Xr);function $e(Lt){qr(dt,Ze,ht,$e,ft,"next",Lt)}function ft(Lt){qr(dt,Ze,ht,$e,ft,"throw",Lt)}$e(void 0)})}}var Hr=null,ci=function(Rr){var Xr=wn(Rr,4),Ze=Xr[0],ht=Xr[1],dt=Xr[2],$e=Xr[3];return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[[Ze,ht],[Ze,$e],[dt,$e],[dt,ht],[Ze,ht]]]}}]}},gi=function(Rr){return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[Rr]}}]}},mi=function(){return{type:"FeatureCollection",features:[]}};function Bi(Xn){"@babel/helpers - typeof";return Bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Rr){return typeof Rr}:function(Rr){return Rr&&typeof Symbol=="function"&&Rr.constructor===Symbol&&Rr!==Symbol.prototype?"symbol":typeof Rr},Bi(Xn)}function Nr(Xn,Rr){return ns(Xn)||Qi(Xn,Rr)||ni(Xn,Rr)||Kr()}function Kr(){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 Qi(Xn,Rr){var Xr=Xn==null?null:typeof Symbol!="undefined"&&Xn[Symbol.iterator]||Xn["@@iterator"];if(Xr!=null){var Ze,ht,dt,$e,ft=[],Lt=!0,gn=!1;try{if(dt=(Xr=Xr.call(Xn)).next,Rr===0){if(Object(Xr)!==Xr)return;Lt=!1}else for(;!(Lt=(Ze=dt.call(Xr)).done)&&(ft.push(Ze.value),ft.length!==Rr);Lt=!0);}catch(rr){gn=!0,ht=rr}finally{try{if(!Lt&&Xr.return!=null&&($e=Xr.return(),Object($e)!==$e))return}finally{if(gn)throw ht}}return ft}}function ns(Xn){if(Array.isArray(Xn))return Xn}function Ur(){"use strict";Ur=function(){return Xn};var Xn={},Rr=Object.prototype,Xr=Rr.hasOwnProperty,Ze=Object.defineProperty||function(Xo,Li,Yo){Xo[Li]=Yo.value},ht=typeof Symbol=="function"?Symbol:{},dt=ht.iterator||"@@iterator",$e=ht.asyncIterator||"@@asyncIterator",ft=ht.toStringTag||"@@toStringTag";function Lt(Xo,Li,Yo){return Object.defineProperty(Xo,Li,{value:Yo,enumerable:!0,configurable:!0,writable:!0}),Xo[Li]}try{Lt({},"")}catch(Xo){Lt=function(Yo,Os,Cs){return Yo[Os]=Cs}}function gn(Xo,Li,Yo,Os){var Cs=Li&&Li.prototype instanceof Fi?Li:Fi,ba=Object.create(Cs.prototype),Yu=new fs(Os||[]);return Ze(ba,"_invoke",{value:ia(Xo,Yo,Yu)}),ba}function rr(Xo,Li,Yo){try{return{type:"normal",arg:Xo.call(Li,Yo)}}catch(Os){return{type:"throw",arg:Os}}}Xn.wrap=gn;var zr={};function Fi(){}function xo(){}function Vi(){}var zs={};Lt(zs,dt,function(){return this});var Ps=Object.getPrototypeOf,Ms=Ps&&Ps(Ps(js([])));Ms&&Ms!==Rr&&Xr.call(Ms,dt)&&(zs=Ms);var ks=Vi.prototype=Fi.prototype=Object.create(zs);function ko(Xo){["next","throw","return"].forEach(function(Li){Lt(Xo,Li,function(Yo){return this._invoke(Li,Yo)})})}function As(Xo,Li){function Yo(Cs,ba,Yu,pc){var Hu=rr(Xo[Cs],Xo,ba);if(Hu.type!=="throw"){var wh=Hu.arg,lh=wh.value;return lh&&Bi(lh)=="object"&&Xr.call(lh,"__await")?Li.resolve(lh.__await).then(function(fu){Yo("next",fu,Yu,pc)},function(fu){Yo("throw",fu,Yu,pc)}):Li.resolve(lh).then(function(fu){wh.value=fu,Yu(wh)},function(fu){return Yo("throw",fu,Yu,pc)})}pc(Hu.arg)}var Os;Ze(this,"_invoke",{value:function(ba,Yu){function pc(){return new Li(function(Hu,wh){Yo(ba,Yu,Hu,wh)})}return Os=Os?Os.then(pc,pc):pc()}})}function ia(Xo,Li,Yo){var Os="suspendedStart";return function(Cs,ba){if(Os==="executing")throw new Error("Generator is already running");if(Os==="completed"){if(Cs==="throw")throw ba;return hl()}for(Yo.method=Cs,Yo.arg=ba;;){var Yu=Yo.delegate;if(Yu){var pc=za(Yu,Yo);if(pc){if(pc===zr)continue;return pc}}if(Yo.method==="next")Yo.sent=Yo._sent=Yo.arg;else if(Yo.method==="throw"){if(Os==="suspendedStart")throw Os="completed",Yo.arg;Yo.dispatchException(Yo.arg)}else Yo.method==="return"&&Yo.abrupt("return",Yo.arg);Os="executing";var Hu=rr(Xo,Li,Yo);if(Hu.type==="normal"){if(Os=Yo.done?"completed":"suspendedYield",Hu.arg===zr)continue;return{value:Hu.arg,done:Yo.done}}Hu.type==="throw"&&(Os="completed",Yo.method="throw",Yo.arg=Hu.arg)}}}function za(Xo,Li){var Yo=Li.method,Os=Xo.iterator[Yo];if(Os===void 0)return Li.delegate=null,Yo==="throw"&&Xo.iterator.return&&(Li.method="return",Li.arg=void 0,za(Xo,Li),Li.method==="throw")||Yo!=="return"&&(Li.method="throw",Li.arg=new TypeError("The iterator does not provide a '"+Yo+"' method")),zr;var Cs=rr(Os,Xo.iterator,Li.arg);if(Cs.type==="throw")return Li.method="throw",Li.arg=Cs.arg,Li.delegate=null,zr;var ba=Cs.arg;return ba?ba.done?(Li[Xo.resultName]=ba.value,Li.next=Xo.nextLoc,Li.method!=="return"&&(Li.method="next",Li.arg=void 0),Li.delegate=null,zr):ba:(Li.method="throw",Li.arg=new TypeError("iterator result is not an object"),Li.delegate=null,zr)}function Zl(Xo){var Li={tryLoc:Xo[0]};1 in Xo&&(Li.catchLoc=Xo[1]),2 in Xo&&(Li.finallyLoc=Xo[2],Li.afterLoc=Xo[3]),this.tryEntries.push(Li)}function Hl(Xo){var Li=Xo.completion||{};Li.type="normal",delete Li.arg,Xo.completion=Li}function fs(Xo){this.tryEntries=[{tryLoc:"root"}],Xo.forEach(Zl,this),this.reset(!0)}function js(Xo){if(Xo){var Li=Xo[dt];if(Li)return Li.call(Xo);if(typeof Xo.next=="function")return Xo;if(!isNaN(Xo.length)){var Yo=-1,Os=function Cs(){for(;++Yo=0;--Cs){var ba=this.tryEntries[Cs],Yu=ba.completion;if(ba.tryLoc==="root")return Os("end");if(ba.tryLoc<=this.prev){var pc=Xr.call(ba,"catchLoc"),Hu=Xr.call(ba,"finallyLoc");if(pc&&Hu){if(this.prev=0;--Os){var Cs=this.tryEntries[Os];if(Cs.tryLoc<=this.prev&&Xr.call(Cs,"finallyLoc")&&this.prev=0;--Yo){var Os=this.tryEntries[Yo];if(Os.finallyLoc===Li)return this.complete(Os.completion,Os.afterLoc),Hl(Os),zr}},catch:function(Li){for(var Yo=this.tryEntries.length-1;Yo>=0;--Yo){var Os=this.tryEntries[Yo];if(Os.tryLoc===Li){var Cs=Os.completion;if(Cs.type==="throw"){var ba=Cs.arg;Hl(Os)}return ba}}throw new Error("illegal catch attempt")},delegateYield:function(Li,Yo,Os){return this.delegate={iterator:js(Li),resultName:Yo,nextLoc:Os},this.method==="next"&&(this.arg=void 0),zr}},Xn}function gs(Xn){return Jr(Xn)||is(Xn)||ni(Xn)||Gr()}function Gr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ni(Xn,Rr){if(Xn){if(typeof Xn=="string")return bn(Xn,Rr);var Xr=Object.prototype.toString.call(Xn).slice(8,-1);if(Xr==="Object"&&Xn.constructor&&(Xr=Xn.constructor.name),Xr==="Map"||Xr==="Set")return Array.from(Xn);if(Xr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xr))return bn(Xn,Rr)}}function is(Xn){if(typeof Symbol!="undefined"&&Xn[Symbol.iterator]!=null||Xn["@@iterator"]!=null)return Array.from(Xn)}function Jr(Xn){if(Array.isArray(Xn))return bn(Xn)}function bn(Xn,Rr){(Rr==null||Rr>Xn.length)&&(Rr=Xn.length);for(var Xr=0,Ze=new Array(Rr);Xr1&&xo[1]!==void 0?xo[1]:5,zs.next=3,this.exportVector($e,Lt);case 3:return gn=zs.sent,rr=this.imageBounds,zr=gn.map(function(Ps){var Ms=[Ps.x*ft.metersPerpixelsX+rr[0],(ft.imageOption.height-Ps.y)*ft.metersPerpixelsY+rr[1]],ks=ft.mapHelper.metersToLngLat(Ms[0],Ms[1]);return ks}),Fi=gi(zr),zs.abrupt("return",Fi);case 8:case"end":return zs.stop()}},dt,this)}));function ht(dt){return Ze.apply(this,arguments)}return ht}()},{key:"lngLat2ImagePixel",value:function(ht){if(this.imageBounds){var dt=this.mapHelper.lngLatToMeters(ht[0],ht[1]),$e=Nr(dt,2),ft=$e[0],Lt=$e[1],gn=(ft-this.imageBounds[0])/this.metersPerpixelsX,rr=(Lt-this.imageBounds[1])/this.metersPerpixelsY;return rr=this.imageOption.height-rr,[gn,rr]}}}]),Xr}(Ei)},86500:function(yt,Y,y){"use strict";y.d(Y,{T6:function(){return O},VD:function(){return K},WE:function(){return k},Yt:function(){return he},lC:function(){return w},py:function(){return V},rW:function(){return P},s:function(){return C},ve:function(){return B},vq:function(){return R}});var v=y(90279);function P(ae,fe,xe){return{r:(0,v.sh)(ae,255)*255,g:(0,v.sh)(fe,255)*255,b:(0,v.sh)(xe,255)*255}}function w(ae,fe,xe){ae=(0,v.sh)(ae,255),fe=(0,v.sh)(fe,255),xe=(0,v.sh)(xe,255);var ye=Math.max(ae,fe,xe),be=Math.min(ae,fe,xe),Qe=0,Ve=0,pt=(ye+be)/2;if(ye===be)Ve=0,Qe=0;else{var st=ye-be;switch(Ve=pt>.5?st/(2-ye-be):st/(ye+be),ye){case ae:Qe=(fe-xe)/st+(fe1&&(xe-=1),xe<1/6?ae+(fe-ae)*(6*xe):xe<1/2?fe:xe<2/3?ae+(fe-ae)*(2/3-xe)*6:ae}function B(ae,fe,xe){var ye,be,Qe;if(ae=(0,v.sh)(ae,360),fe=(0,v.sh)(fe,100),xe=(0,v.sh)(xe,100),fe===0)be=xe,Qe=xe,ye=xe;else{var Ve=xe<.5?xe*(1+fe):xe+fe-xe*fe,pt=2*xe-Ve;ye=b(pt,Ve,ae+1/3),be=b(pt,Ve,ae),Qe=b(pt,Ve,ae-1/3)}return{r:ye*255,g:be*255,b:Qe*255}}function V(ae,fe,xe){ae=(0,v.sh)(ae,255),fe=(0,v.sh)(fe,255),xe=(0,v.sh)(xe,255);var ye=Math.max(ae,fe,xe),be=Math.min(ae,fe,xe),Qe=0,Ve=ye,pt=ye-be,st=ye===0?0:pt/ye;if(ye===be)Qe=0;else{switch(ye){case ae:Qe=(fe-xe)/pt+(fe>16,g:(ae&65280)>>8,b:ae&255}}},48701:function(yt,Y,y){"use strict";y.d(Y,{R:function(){return v}});var v={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},1350:function(yt,Y,y){"use strict";y.d(Y,{uA:function(){return b}});var v=y(86500),P=y(48701),w=y(90279);function b(K){var he={r:0,g:0,b:0},ae=1,fe=null,xe=null,ye=null,be=!1,Qe=!1;return typeof K=="string"&&(K=A(K)),typeof K=="object"&&(O(K.r)&&O(K.g)&&O(K.b)?(he=(0,v.rW)(K.r,K.g,K.b),be=!0,Qe=String(K.r).substr(-1)==="%"?"prgb":"rgb"):O(K.h)&&O(K.s)&&O(K.v)?(fe=(0,w.JX)(K.s),xe=(0,w.JX)(K.v),he=(0,v.WE)(K.h,fe,xe),be=!0,Qe="hsv"):O(K.h)&&O(K.s)&&O(K.l)&&(fe=(0,w.JX)(K.s),ye=(0,w.JX)(K.l),he=(0,v.ve)(K.h,fe,ye),be=!0,Qe="hsl"),Object.prototype.hasOwnProperty.call(K,"a")&&(ae=K.a)),ae=(0,w.Yq)(ae),{ok:be,format:K.format||Qe,r:Math.min(255,Math.max(he.r,0)),g:Math.min(255,Math.max(he.g,0)),b:Math.min(255,Math.max(he.b,0)),a:ae}}var B="[-\\+]?\\d+%?",V="[-\\+]?\\d*\\.\\d+%?",k="(?:".concat(V,")|(?:").concat(B,")"),R="[\\s|\\(]+(".concat(k,")[,|\\s]+(").concat(k,")[,|\\s]+(").concat(k,")\\s*\\)?"),C="[\\s|\\(]+(".concat(k,")[,|\\s]+(").concat(k,")[,|\\s]+(").concat(k,")[,|\\s]+(").concat(k,")\\s*\\)?"),g={CSS_UNIT:new RegExp(k),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+C),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+C),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+C),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 A(K){if(K=K.trim().toLowerCase(),K.length===0)return!1;var he=!1;if(P.R[K])K=P.R[K],he=!0;else if(K==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ae=g.rgb.exec(K);return ae?{r:ae[1],g:ae[2],b:ae[3]}:(ae=g.rgba.exec(K),ae?{r:ae[1],g:ae[2],b:ae[3],a:ae[4]}:(ae=g.hsl.exec(K),ae?{h:ae[1],s:ae[2],l:ae[3]}:(ae=g.hsla.exec(K),ae?{h:ae[1],s:ae[2],l:ae[3],a:ae[4]}:(ae=g.hsv.exec(K),ae?{h:ae[1],s:ae[2],v:ae[3]}:(ae=g.hsva.exec(K),ae?{h:ae[1],s:ae[2],v:ae[3],a:ae[4]}:(ae=g.hex8.exec(K),ae?{r:(0,v.VD)(ae[1]),g:(0,v.VD)(ae[2]),b:(0,v.VD)(ae[3]),a:(0,v.T6)(ae[4]),format:he?"name":"hex8"}:(ae=g.hex6.exec(K),ae?{r:(0,v.VD)(ae[1]),g:(0,v.VD)(ae[2]),b:(0,v.VD)(ae[3]),format:he?"name":"hex"}:(ae=g.hex4.exec(K),ae?{r:(0,v.VD)(ae[1]+ae[1]),g:(0,v.VD)(ae[2]+ae[2]),b:(0,v.VD)(ae[3]+ae[3]),a:(0,v.T6)(ae[4]+ae[4]),format:he?"name":"hex8"}:(ae=g.hex3.exec(K),ae?{r:(0,v.VD)(ae[1]+ae[1]),g:(0,v.VD)(ae[2]+ae[2]),b:(0,v.VD)(ae[3]+ae[3]),format:he?"name":"hex"}:!1)))))))))}function O(K){return!!g.CSS_UNIT.exec(String(K))}},10274:function(yt,Y,y){"use strict";y.d(Y,{C:function(){return B}});var v=y(86500),P=y(48701),w=y(1350),b=y(90279),B=function(){function k(R,C){R===void 0&&(R=""),C===void 0&&(C={});var g;if(R instanceof k)return R;typeof R=="number"&&(R=(0,v.Yt)(R)),this.originalInput=R;var A=(0,w.uA)(R);this.originalInput=R,this.r=A.r,this.g=A.g,this.b=A.b,this.a=A.a,this.roundA=Math.round(100*this.a)/100,this.format=(g=C.format)!==null&&g!==void 0?g:A.format,this.gradientType=C.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=A.ok}return k.prototype.isDark=function(){return this.getBrightness()<128},k.prototype.isLight=function(){return!this.isDark()},k.prototype.getBrightness=function(){var R=this.toRgb();return(R.r*299+R.g*587+R.b*114)/1e3},k.prototype.getLuminance=function(){var R=this.toRgb(),C,g,A,O=R.r/255,K=R.g/255,he=R.b/255;return O<=.03928?C=O/12.92:C=Math.pow((O+.055)/1.055,2.4),K<=.03928?g=K/12.92:g=Math.pow((K+.055)/1.055,2.4),he<=.03928?A=he/12.92:A=Math.pow((he+.055)/1.055,2.4),.2126*C+.7152*g+.0722*A},k.prototype.getAlpha=function(){return this.a},k.prototype.setAlpha=function(R){return this.a=(0,b.Yq)(R),this.roundA=Math.round(100*this.a)/100,this},k.prototype.isMonochrome=function(){var R=this.toHsl().s;return R===0},k.prototype.toHsv=function(){var R=(0,v.py)(this.r,this.g,this.b);return{h:R.h*360,s:R.s,v:R.v,a:this.a}},k.prototype.toHsvString=function(){var R=(0,v.py)(this.r,this.g,this.b),C=Math.round(R.h*360),g=Math.round(R.s*100),A=Math.round(R.v*100);return this.a===1?"hsv(".concat(C,", ").concat(g,"%, ").concat(A,"%)"):"hsva(".concat(C,", ").concat(g,"%, ").concat(A,"%, ").concat(this.roundA,")")},k.prototype.toHsl=function(){var R=(0,v.lC)(this.r,this.g,this.b);return{h:R.h*360,s:R.s,l:R.l,a:this.a}},k.prototype.toHslString=function(){var R=(0,v.lC)(this.r,this.g,this.b),C=Math.round(R.h*360),g=Math.round(R.s*100),A=Math.round(R.l*100);return this.a===1?"hsl(".concat(C,", ").concat(g,"%, ").concat(A,"%)"):"hsla(".concat(C,", ").concat(g,"%, ").concat(A,"%, ").concat(this.roundA,")")},k.prototype.toHex=function(R){return R===void 0&&(R=!1),(0,v.vq)(this.r,this.g,this.b,R)},k.prototype.toHexString=function(R){return R===void 0&&(R=!1),"#"+this.toHex(R)},k.prototype.toHex8=function(R){return R===void 0&&(R=!1),(0,v.s)(this.r,this.g,this.b,this.a,R)},k.prototype.toHex8String=function(R){return R===void 0&&(R=!1),"#"+this.toHex8(R)},k.prototype.toHexShortString=function(R){return R===void 0&&(R=!1),this.a===1?this.toHexString(R):this.toHex8String(R)},k.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},k.prototype.toRgbString=function(){var R=Math.round(this.r),C=Math.round(this.g),g=Math.round(this.b);return this.a===1?"rgb(".concat(R,", ").concat(C,", ").concat(g,")"):"rgba(".concat(R,", ").concat(C,", ").concat(g,", ").concat(this.roundA,")")},k.prototype.toPercentageRgb=function(){var R=function(C){return"".concat(Math.round((0,b.sh)(C,255)*100),"%")};return{r:R(this.r),g:R(this.g),b:R(this.b),a:this.a}},k.prototype.toPercentageRgbString=function(){var R=function(C){return Math.round((0,b.sh)(C,255)*100)};return this.a===1?"rgb(".concat(R(this.r),"%, ").concat(R(this.g),"%, ").concat(R(this.b),"%)"):"rgba(".concat(R(this.r),"%, ").concat(R(this.g),"%, ").concat(R(this.b),"%, ").concat(this.roundA,")")},k.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var R="#"+(0,v.vq)(this.r,this.g,this.b,!1),C=0,g=Object.entries(P.R);C=0,O=!C&&A&&(R.startsWith("hex")||R==="name");return O?R==="name"&&this.a===0?this.toName():this.toRgbString():(R==="rgb"&&(g=this.toRgbString()),R==="prgb"&&(g=this.toPercentageRgbString()),(R==="hex"||R==="hex6")&&(g=this.toHexString()),R==="hex3"&&(g=this.toHexString(!0)),R==="hex4"&&(g=this.toHex8String(!0)),R==="hex8"&&(g=this.toHex8String()),R==="name"&&(g=this.toName()),R==="hsl"&&(g=this.toHslString()),R==="hsv"&&(g=this.toHsvString()),g||this.toHexString())},k.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},k.prototype.clone=function(){return new k(this.toString())},k.prototype.lighten=function(R){R===void 0&&(R=10);var C=this.toHsl();return C.l+=R/100,C.l=(0,b.V2)(C.l),new k(C)},k.prototype.brighten=function(R){R===void 0&&(R=10);var C=this.toRgb();return C.r=Math.max(0,Math.min(255,C.r-Math.round(255*-(R/100)))),C.g=Math.max(0,Math.min(255,C.g-Math.round(255*-(R/100)))),C.b=Math.max(0,Math.min(255,C.b-Math.round(255*-(R/100)))),new k(C)},k.prototype.darken=function(R){R===void 0&&(R=10);var C=this.toHsl();return C.l-=R/100,C.l=(0,b.V2)(C.l),new k(C)},k.prototype.tint=function(R){return R===void 0&&(R=10),this.mix("white",R)},k.prototype.shade=function(R){return R===void 0&&(R=10),this.mix("black",R)},k.prototype.desaturate=function(R){R===void 0&&(R=10);var C=this.toHsl();return C.s-=R/100,C.s=(0,b.V2)(C.s),new k(C)},k.prototype.saturate=function(R){R===void 0&&(R=10);var C=this.toHsl();return C.s+=R/100,C.s=(0,b.V2)(C.s),new k(C)},k.prototype.greyscale=function(){return this.desaturate(100)},k.prototype.spin=function(R){var C=this.toHsl(),g=(C.h+R)%360;return C.h=g<0?360+g:g,new k(C)},k.prototype.mix=function(R,C){C===void 0&&(C=50);var g=this.toRgb(),A=new k(R).toRgb(),O=C/100,K={r:(A.r-g.r)*O+g.r,g:(A.g-g.g)*O+g.g,b:(A.b-g.b)*O+g.b,a:(A.a-g.a)*O+g.a};return new k(K)},k.prototype.analogous=function(R,C){R===void 0&&(R=6),C===void 0&&(C=30);var g=this.toHsl(),A=360/C,O=[this];for(g.h=(g.h-(A*R>>1)+720)%360;--R;)g.h=(g.h+A)%360,O.push(new k(g));return O},k.prototype.complement=function(){var R=this.toHsl();return R.h=(R.h+180)%360,new k(R)},k.prototype.monochromatic=function(R){R===void 0&&(R=6);for(var C=this.toHsv(),g=C.h,A=C.s,O=C.v,K=[],he=1/R;R--;)K.push(new k({h:g,s:A,v:O})),O=(O+he)%1;return K},k.prototype.splitcomplement=function(){var R=this.toHsl(),C=R.h;return[this,new k({h:(C+72)%360,s:R.s,l:R.l}),new k({h:(C+216)%360,s:R.s,l:R.l})]},k.prototype.onBackground=function(R){var C=this.toRgb(),g=new k(R).toRgb(),A=C.a+g.a*(1-C.a);return new k({r:(C.r*C.a+g.r*g.a*(1-C.a))/A,g:(C.g*C.a+g.g*g.a*(1-C.a))/A,b:(C.b*C.a+g.b*g.a*(1-C.a))/A,a:A})},k.prototype.triad=function(){return this.polyad(3)},k.prototype.tetrad=function(){return this.polyad(4)},k.prototype.polyad=function(R){for(var C=this.toHsl(),g=C.h,A=[this],O=360/R,K=1;K1)&&(R=1),R}function V(R){return R<=1?"".concat(Number(R)*100,"%"):R}function k(R){return R.length===1?"0"+R:String(R)}},68479:function(yt,Y,y){"use strict";y.d(Y,{iv:function(){return Xn}});function v(Ze){if(Ze.sheet)return Ze.sheet;for(var ht=0;ht0?O(st,--Ve):0,be--,pt===10&&(be=1,ye--),pt}function Ue(){return pt=Ve2||Xt(pt)>3?"":" "}function Mt(Ze){for(;Ue();)switch(Xt(pt)){case 0:append(ii(Ve-1),Ze);break;case 2:append(wt(pt),Ze);break;default:append(from(pt),Ze)}return Ze}function hn(Ze,ht){for(;--ht&&Ue()&&!(pt<48||pt>102||pt>57&&pt<65||pt>70&&pt<97););return Be(Ze,Xe()+(ht<6&&Pe()==32&&Ue()==32))}function un(Ze){for(;Ue();)switch(pt){case Ze:return Ve;case 34:case 39:Ze!==34&&Ze!==39&&un(pt);break;case 40:Ze===41&&un(Ze);break;case 92:Ue();break}return Ve}function Sr(Ze,ht){for(;Ue()&&Ze+pt!==47+10;)if(Ze+pt===42+42&&Pe()===47)break;return"/*"+Be(ht,Ve-1)+"*"+B(Ze===47?Ze:Ue())}function ii(Ze){for(;!Xt(Pe());)Ue();return Be(Ze,Ve)}var Ii="-ms-",Ni="-moz-",eo="-webkit-",ti="comm",Is="rule",Ns="decl",Se="@page",Xi="@media",Yi="@import",fo="@charset",di="@viewport",Fs="@supports",Ln="@document",it="@namespace",Ot="@keyframes",Ht="@font-face",Pn="@counter-style",fr="@font-feature-values",In="@layer";function mn(Ze,ht){for(var dt="",$e=ae(Ze),ft=0;ft<$e;ft++)dt+=ht(Ze[ft],ft,Ze,ht)||"";return dt}function Ut(Ze,ht,dt,$e){switch(Ze.type){case In:if(Ze.children.length)break;case Yi:case Ns:return Ze.return=Ze.return||Ze.value;case ti:return"";case Ot:return Ze.return=Ze.value+"{"+mn(Ze.children,$e)+"}";case Is:Ze.value=Ze.props.join(",")}return he(dt=mn(Ze.children,$e))?Ze.return=Ze.value+"{"+dt+"}":""}function en(Ze){var ht=ae(Ze);return function(dt,$e,ft,Lt){for(var gn="",rr=0;rr-1&&!Ze.return)switch(Ze.type){case DECLARATION:Ze.return=prefix(Ze.value,Ze.length,dt);return;case KEYFRAMES:return serialize([copy(Ze,{value:replace(Ze.value,"@","@"+WEBKIT)})],$e);case RULESET:if(Ze.length)return combine(Ze.props,function(ft){switch(match(ft,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(Ze,{props:[replace(ft,/:(read-\w+)/,":"+MOZ+"$1")]})],$e);case"::placeholder":return serialize([copy(Ze,{props:[replace(ft,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(Ze,{props:[replace(ft,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(Ze,{props:[replace(ft,/:(plac\w+)/,MS+"input-$1")]})],$e)}return""})}}function pr(Ze){switch(Ze.type){case RULESET:Ze.props=Ze.props.map(function(ht){return combine(tokenize(ht),function(dt,$e,ft){switch(charat(dt,0)){case 12:return substr(dt,1,strlen(dt));case 0:case 40:case 43:case 62:case 126:return dt;case 58:ft[++$e]==="global"&&(ft[$e]="",ft[++$e]="\f"+substr(ft[$e],$e=1,-1));case 32:return $e===1?"":dt;default:switch($e){case 0:return Ze=dt,sizeof(ft)>1?"":dt;case($e=sizeof(ft)-1):case 2:return $e===2?dt+Ze+Ze:dt+Ze;default:return dt}}})})}}function an(Ze){return nt(wr("",null,null,null,[""],Ze=St(Ze),0,[0],Ze))}function wr(Ze,ht,dt,$e,ft,Lt,gn,rr,zr){for(var Fi=0,xo=0,Vi=gn,zs=0,Ps=0,Ms=0,ks=1,ko=1,As=1,ia=0,za="",Zl=ft,Hl=Lt,fs=$e,js=za;ko;)switch(Ms=ia,ia=Ue()){case 40:if(Ms!=108&&O(js,Vi-1)==58){A(js+=g(wt(ia),"&","&\f"),"&\f")!=-1&&(As=-1);break}case 34:case 39:case 91:js+=wt(ia);break;case 9:case 10:case 13:case 32:js+=Kt(Ms);break;case 92:js+=hn(Xe()-1,7);continue;case 47:switch(Pe()){case 42:case 47:fe(Ei(Sr(Ue(),Xe()),ht,dt),zr);break;default:js+="/"}break;case 123*ks:rr[Fi++]=he(js)*As;case 125*ks:case 59:case 0:switch(ia){case 0:case 125:ko=0;case 59+xo:As==-1&&(js=g(js,/\f/g,"")),Ps>0&&he(js)-Vi&&fe(Ps>32?vo(js+";",$e,dt,Vi-1):vo(g(js," ","")+";",$e,dt,Vi-2),zr);break;case 59:js+=";";default:if(fe(fs=Cr(js,ht,dt,Fi,xo,ft,rr,za,Zl=[],Hl=[],Vi),Lt),ia===123)if(xo===0)wr(js,ht,fs,fs,Zl,Lt,Vi,rr,Hl);else switch(zs===99&&O(js,3)===110?100:zs){case 100:case 108:case 109:case 115:wr(Ze,fs,fs,$e&&fe(Cr(Ze,fs,fs,0,0,ft,rr,za,ft,Zl=[],Vi),Hl),ft,Hl,Vi,rr,$e?Zl:Hl);break;default:wr(js,fs,fs,fs,[""],Hl,0,rr,Hl)}}Fi=xo=Ps=0,ks=As=1,za=js="",Vi=gn;break;case 58:Vi=1+he(js),Ps=Ms;default:if(ks<1){if(ia==123)--ks;else if(ia==125&&ks++==0&&Me()==125)continue}switch(js+=B(ia),ia*ks){case 38:As=xo>0?1:(js+="\f",-1);break;case 44:rr[Fi++]=(he(js)-1)*As,As=1;break;case 64:Pe()===45&&(js+=wt(Ue())),zs=Pe(),xo=Vi=he(za=js+=ii(Xe())),ia++;break;case 45:Ms===45&&he(js)==2&&(ks=0)}}return Lt}function Cr(Ze,ht,dt,$e,ft,Lt,gn,rr,zr,Fi,xo){for(var Vi=ft-1,zs=ft===0?Lt:[""],Ps=ae(zs),Ms=0,ks=0,ko=0;Ms<$e;++Ms)for(var As=0,ia=K(Ze,Vi+1,Vi=b(ks=gn[Ms])),za=Ze;As0?zs[As]+" "+ia:g(ia,/&\f/g,zs[As])))&&(zr[ko++]=za);return Ae(Ze,ht,dt,ft===0?Is:rr,zr,Fi,xo)}function Ei(Ze,ht,dt){return Ae(Ze,ht,dt,ti,B(Te()),K(Ze,2,-2),0)}function vo(Ze,ht,dt,$e){return Ae(Ze,ht,dt,Ns,K(Ze,0,$e),K(Ze,$e+1,-1),$e)}var kr=function(ht,dt,$e){for(var ft=0,Lt=0;ft=Lt,Lt=Pe(),ft===38&&Lt===12&&(dt[$e]=1),!Xt(Lt);)Ue();return Be(ht,Ve)},ro=function(ht,dt){var $e=-1,ft=44;do switch(Xt(ft)){case 0:ft===38&&Pe()===12&&(dt[$e]=1),ht[$e]+=kr(Ve-1,dt,$e);break;case 2:ht[$e]+=wt(ft);break;case 4:if(ft===44){ht[++$e]=Pe()===58?"&\f":"",dt[$e]=ht[$e].length;break}default:ht[$e]+=B(ft)}while(ft=Ue());return ht},qi=function(ht,dt){return nt(ro(St(ht),dt))},bo=new WeakMap,xn=function(ht){if(!(ht.type!=="rule"||!ht.parent||ht.length<1)){for(var dt=ht.value,$e=ht.parent,ft=ht.column===$e.column&&ht.line===$e.line;$e.type!=="rule";)if($e=$e.parent,!$e)return;if(!(ht.props.length===1&&dt.charCodeAt(0)!==58&&!bo.get($e))&&!ft){bo.set(ht,!0);for(var Lt=[],gn=qi(dt,Lt),rr=$e.props,zr=0,Fi=0;zr-1},vn=function(ht){return function(dt,$e,ft){if(!(dt.type!=="rule"||ht.compat)){var Lt=dt.value.match(/(:first|:nth|:nth-last)-child/g);if(Lt){for(var gn=!!dt.parent,rr=gn?dt.parent.children:ft,zr=rr.length-1;zr>=0;zr--){var Fi=rr[zr];if(Fi.line=0;$e--)if(!$n(dt[$e]))return!0;return!1},Dr=function(ht){ht.type="",ht.value="",ht.return="",ht.children="",ht.props=""},dr=function(ht,dt,$e){$n(ht)&&(ht.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Dr(ht)):Ar(dt,$e)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Dr(ht)))};function Yt(Ze,ht){switch(k(Ze,ht)){case 5103:return eo+"print-"+Ze+Ze;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return eo+Ze+Ze;case 5349:case 4246:case 4810:case 6968:case 2756:return eo+Ze+Ni+Ze+Ii+Ze+Ze;case 6828:case 4268:return eo+Ze+Ii+Ze+Ze;case 6165:return eo+Ze+Ii+"flex-"+Ze+Ze;case 5187:return eo+Ze+g(Ze,/(\w+).+(:[^]+)/,eo+"box-$1$2"+Ii+"flex-$1$2")+Ze;case 5443:return eo+Ze+Ii+"flex-item-"+g(Ze,/flex-|-self/,"")+Ze;case 4675:return eo+Ze+Ii+"flex-line-pack"+g(Ze,/align-content|flex-|-self/,"")+Ze;case 5548:return eo+Ze+Ii+g(Ze,"shrink","negative")+Ze;case 5292:return eo+Ze+Ii+g(Ze,"basis","preferred-size")+Ze;case 6060:return eo+"box-"+g(Ze,"-grow","")+eo+Ze+Ii+g(Ze,"grow","positive")+Ze;case 4554:return eo+g(Ze,/([^-])(transform)/g,"$1"+eo+"$2")+Ze;case 6187:return g(g(g(Ze,/(zoom-|grab)/,eo+"$1"),/(image-set)/,eo+"$1"),Ze,"")+Ze;case 5495:case 3959:return g(Ze,/(image-set\([^]*)/,eo+"$1$`$1");case 4968:return g(g(Ze,/(.+:)(flex-)?(.*)/,eo+"box-pack:$3"+Ii+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+eo+Ze+Ze;case 4095:case 3583:case 4068:case 2532:return g(Ze,/(.+)-inline(.+)/,eo+"$1$2")+Ze;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(he(Ze)-1-ht>6)switch(O(Ze,ht+1)){case 109:if(O(Ze,ht+4)!==45)break;case 102:return g(Ze,/(.+:)(.+)-([^]+)/,"$1"+eo+"$2-$3$1"+Ni+(O(Ze,ht+3)==108?"$3":"$2-$3"))+Ze;case 115:return~A(Ze,"stretch")?Yt(g(Ze,"stretch","fill-available"),ht)+Ze:Ze}break;case 4949:if(O(Ze,ht+1)!==115)break;case 6444:switch(O(Ze,he(Ze)-3-(~A(Ze,"!important")&&10))){case 107:return g(Ze,":",":"+eo)+Ze;case 101:return g(Ze,/(.+:)([^;!]+)(;|!.+)?/,"$1"+eo+(O(Ze,14)===45?"inline-":"")+"box$3$1"+eo+"$2$3$1"+Ii+"$2box$3")+Ze}break;case 5936:switch(O(Ze,ht+11)){case 114:return eo+Ze+Ii+g(Ze,/[svh]\w+-[tblr]{2}/,"tb")+Ze;case 108:return eo+Ze+Ii+g(Ze,/[svh]\w+-[tblr]{2}/,"tb-rl")+Ze;case 45:return eo+Ze+Ii+g(Ze,/[svh]\w+-[tblr]{2}/,"lr")+Ze}return eo+Ze+Ii+Ze+Ze}return Ze}var wn=function(ht,dt,$e,ft){if(ht.length>-1&&!ht.return)switch(ht.type){case Ns:ht.return=Yt(ht.value,ht.length);break;case Ot:return mn([De(ht,{value:g(ht.value,"@","@"+eo)})],ft);case Is:if(ht.length)return xe(ht.props,function(Lt){switch(C(Lt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mn([De(ht,{props:[g(Lt,/:(read-\w+)/,":"+Ni+"$1")]})],ft);case"::placeholder":return mn([De(ht,{props:[g(Lt,/:(plac\w+)/,":"+eo+"input-$1")]}),De(ht,{props:[g(Lt,/:(plac\w+)/,":"+Ni+"$1")]}),De(ht,{props:[g(Lt,/:(plac\w+)/,Ii+"input-$1")]})],ft)}return""})}},Qn=[wn],Mr=function(ht){var dt=ht.key;if(dt==="css"){var $e=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call($e,function(ks){var ko=ks.getAttribute("data-emotion");ko.indexOf(" ")!==-1&&(document.head.appendChild(ks),ks.setAttribute("data-s",""))})}var ft=ht.stylisPlugins||Qn,Lt={},gn,rr=[];gn=ht.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+dt+' "]'),function(ks){for(var ko=ks.getAttribute("data-emotion").split(" "),As=1;As=4;++$e,ft-=4)dt=Ze.charCodeAt($e)&255|(Ze.charCodeAt(++$e)&255)<<8|(Ze.charCodeAt(++$e)&255)<<16|(Ze.charCodeAt(++$e)&255)<<24,dt=(dt&65535)*1540483477+((dt>>>16)*59797<<16),dt^=dt>>>24,ht=(dt&65535)*1540483477+((dt>>>16)*59797<<16)^(ht&65535)*1540483477+((ht>>>16)*59797<<16);switch(ft){case 3:ht^=(Ze.charCodeAt($e+2)&255)<<16;case 2:ht^=(Ze.charCodeAt($e+1)&255)<<8;case 1:ht^=Ze.charCodeAt($e)&255,ht=(ht&65535)*1540483477+((ht>>>16)*59797<<16)}return ht^=ht>>>13,ht=(ht&65535)*1540483477+((ht>>>16)*59797<<16),((ht^ht>>>15)>>>0).toString(36)}var Dn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Kn(Ze){var ht=Object.create(null);return function(dt){return ht[dt]===void 0&&(ht[dt]=Ze(dt)),ht[dt]}}var nr=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,qr="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",vi=/[A-Z]|^ms/g,Hr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,di=function(ut){return ut.charCodeAt(1)===45},gi=function(ut){return ut!=null&&typeof ut!="boolean"},mi=Xn(function(je){return di(je)?je:je.replace(vi,"-$&").toLowerCase()}),Bi=function(ut,ht){switch(ut){case"animation":case"animationName":if(typeof ht=="string")return ht.replace(Hr,function(Ue,ft,Pt){return Br={name:ft,styles:Pt,next:Br},ft})}return An[ut]!==1&&!di(ut)&&typeof ht=="number"&&ht!==0?ht+"px":ht};if(!1)var zr,Xr,Qi,rs,Ur,gs;var Kr=null;function ri(je,ut,ht){if(ht==null)return"";if(ht.__emotion_styles!==void 0)return ht;switch(typeof ht){case"boolean":return"";case"object":{if(ht.anim===1)return Br={name:ht.name,styles:ht.styles,next:Br},ht.name;if(ht.styles!==void 0){var Ue=ht.next;if(Ue!==void 0)for(;Ue!==void 0;)Br={name:Ue.name,styles:Ue.styles,next:Br},Ue=Ue.next;var ft=ht.styles+";";return ft}return is(je,ut,ht)}case"function":{if(je!==void 0){var Pt=Br,ln=ht(je);return Br=Pt,ri(je,ut,ln)}break}case"string":if(!1)var sr,Zr;break}if(ut==null)return ht;var Ui=ut[ht];return Ui!==void 0?Ui:ht}function is(je,ut,ht){var Ue="";if(Array.isArray(ht))for(var ft=0;ft=Math.abs(C)?b-g+C:C-g+b,b=g}b+B>=0!=!!w&&R.reverse()}},59263:function(_t){"use strict";_t.exports=Y;function Y(_,v){this.x=_,this.y=v}Y.prototype={clone:function(){return new Y(this.x,this.y)},add:function(_){return this.clone()._add(_)},sub:function(_){return this.clone()._sub(_)},multByPoint:function(_){return this.clone()._multByPoint(_)},divByPoint:function(_){return this.clone()._divByPoint(_)},mult:function(_){return this.clone()._mult(_)},div:function(_){return this.clone()._div(_)},rotate:function(_){return this.clone()._rotate(_)},rotateAround:function(_,v){return this.clone()._rotateAround(_,v)},matMult:function(_){return this.clone()._matMult(_)},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(_){return this.x===_.x&&this.y===_.y},dist:function(_){return Math.sqrt(this.distSqr(_))},distSqr:function(_){var v=_.x-this.x,R=_.y-this.y;return v*v+R*R},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(_){return Math.atan2(this.y-_.y,this.x-_.x)},angleWith:function(_){return this.angleWithSep(_.x,_.y)},angleWithSep:function(_,v){return Math.atan2(this.x*v-this.y*_,this.x*_+this.y*v)},_matMult:function(_){var v=_[0]*this.x+_[1]*this.y,R=_[2]*this.x+_[3]*this.y;return this.x=v,this.y=R,this},_add:function(_){return this.x+=_.x,this.y+=_.y,this},_sub:function(_){return this.x-=_.x,this.y-=_.y,this},_mult:function(_){return this.x*=_,this.y*=_,this},_div:function(_){return this.x/=_,this.y/=_,this},_multByPoint:function(_){return this.x*=_.x,this.y*=_.y,this},_divByPoint:function(_){return this.x/=_.x,this.y/=_.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var _=this.y;return this.y=this.x,this.x=-_,this},_rotate:function(_){var v=Math.cos(_),R=Math.sin(_),w=v*this.x-R*this.y,b=R*this.x+v*this.y;return this.x=w,this.y=b,this},_rotateAround:function(_,v){var R=Math.cos(_),w=Math.sin(_),b=v.x+R*(this.x-v.x)-w*(this.y-v.y),B=v.y+w*(this.x-v.x)+R*(this.y-v.y);return this.x=b,this.y=B,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Y.convert=function(_){return _ instanceof Y?_:Array.isArray(_)?new Y(_[0],_[1]):_}},52155:function(_t){"use strict";_t.exports=_,_t.exports.default=_;var Y=1e20;function _(B,V,k,M,C,g){this.fontSize=B||24,this.buffer=V===void 0?3:V,this.cutoff=M||.25,this.fontFamily=C||"sans-serif",this.fontWeight=g||"normal",this.radius=k||8;var A=this.size=this.fontSize+this.buffer*2,O=A+this.buffer*2;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=A,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textAlign="left",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(O*O),this.gridInner=new Float64Array(O*O),this.f=new Float64Array(O),this.z=new Float64Array(O+1),this.v=new Uint16Array(O),this.useMetrics=this.ctx.measureText("A").actualBoundingBoxLeft!==void 0,this.middle=Math.round(A/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function v(B,V,k,M,C,g,A){g.fill(Y,0,V*k),A.fill(0,0,V*k);for(var O=(V-M)/2,K=0;K-1);K++,g[K]=O,A[K]=ce,A[K+1]=Y}for(O=0,K=0;Ow)return w;for(;RB?R=b:w=b,b=(w-R)*.5+R}return b},Y.prototype.solve=function(_,v){return this.sampleCurveY(this.solveCurveX(_,v))}},8332:function(_t,Y,_){_t.exports.VectorTile=_(29148),_(82442),_(37815)},29148:function(_t,Y,_){"use strict";var v=_(37815);_t.exports=R;function R(b,B){this.layers=b.readFields(w,{},B)}function w(b,B,V){if(b===3){var k=new v(V,V.readVarint()+V.pos);k.length&&(B[k.name]=k)}}},82442:function(_t,Y,_){"use strict";var v=_(59263);_t.exports=R;function R(k,M,C,g,A){this.properties={},this.extent=C,this.type=0,this._pbf=k,this._geometry=-1,this._keys=g,this._values=A,k.readFields(w,this,M)}function w(k,M,C){k==1?M.id=C.readVarint():k==2?b(C,M):k==3?M.type=C.readVarint():k==4&&(M._geometry=C.pos)}function b(k,M){for(var C=k.readVarint()+k.pos;k.pos>3}if(g--,C===1||C===2)A+=k.readSVarint(),O+=k.readSVarint(),C===1&&(ce&&K.push(ce),ce=[]),ce.push(new v(A,O));else if(C===7)ce&&ce.push(ce[0].clone());else throw new Error("unknown command "+C)}return ce&&K.push(ce),K},R.prototype.bbox=function(){var k=this._pbf;k.pos=this._geometry;for(var M=k.readVarint()+k.pos,C=1,g=0,A=0,O=0,K=1/0,ce=-1/0,de=1/0,ve=-1/0;k.pos>3}if(g--,C===1||C===2)A+=k.readSVarint(),O+=k.readSVarint(),Ace&&(ce=A),Ove&&(ve=O);else if(C!==7)throw new Error("unknown command "+C)}return[K,de,ce,ve]},R.prototype.toGeoJSON=function(k,M,C){var g=this.extent*Math.pow(2,C),A=this.extent*k,O=this.extent*M,K=this.loadGeometry(),ce=R.types[this.type],de,ve;function Ee(ot){for(var He=0;He>3;V=M===1?B.readString():M===2?B.readFloat():M===3?B.readDouble():M===4?B.readVarint64():M===5?B.readVarint():M===6?B.readSVarint():M===7?B.readBoolean():null}return V}R.prototype.feature=function(B){if(B<0||B>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[B];var V=this._pbf.readVarint()+this._pbf.pos;return new v(this._pbf,V,this.extent,this._keys,this._values)}},76314:function(_t,Y,_){"use strict";var v;v={value:!0};var R=_(9750);function w(b){var B=[1/0,1/0,-1/0,-1/0];return R.coordEach(b,function(V){B[0]>V[0]&&(B[0]=V[0]),B[1]>V[1]&&(B[1]=V[1]),B[2]=0))throw new Error("precision must be a positive number");var $e=Math.pow(10,Re||0);return Math.round(Ae*$e)/$e}Y.round=K;function ce(Ae,Re){Re===void 0&&(Re="kilometers");var $e=Y.factors[Re];if(!$e)throw new Error(Re+" units is invalid");return Ae*$e}Y.radiansToLength=ce;function de(Ae,Re){Re===void 0&&(Re="kilometers");var $e=Y.factors[Re];if(!$e)throw new Error(Re+" units is invalid");return Ae/$e}Y.lengthToRadians=de;function ve(Ae,Re){return _e(de(Ae,Re))}Y.lengthToDegrees=ve;function Ee(Ae){var Re=Ae%360;return Re<0&&(Re+=360),Re}Y.bearingToAzimuth=Ee;function _e(Ae){var Re=Ae%(2*Math.PI);return Re*180/Math.PI}Y.radiansToDegrees=_e;function we(Ae){var Re=Ae%360;return Re*Math.PI/180}Y.degreesToRadians=we;function ot(Ae,Re,$e){if(Re===void 0&&(Re="kilometers"),$e===void 0&&($e="kilometers"),!(Ae>=0))throw new Error("length must be a positive number");return ce(de(Ae,Re),$e)}Y.convertLength=ot;function He(Ae,Re,$e){if(Re===void 0&&(Re="meters"),$e===void 0&&($e="kilometers"),!(Ae>=0))throw new Error("area must be a positive number");var Ie=Y.areaFactors[Re];if(!Ie)throw new Error("invalid original units");var Xe=Y.areaFactors[$e];if(!Xe)throw new Error("invalid final units");return Ae/Ie*Xe}Y.convertArea=He;function vt(Ae){return!isNaN(Ae)&&Ae!==null&&!Array.isArray(Ae)}Y.isNumber=vt;function dt(Ae){return!!Ae&&Ae.constructor===Object}Y.isObject=dt;function Pe(Ae){if(!Ae)throw new Error("bbox is required");if(!Array.isArray(Ae))throw new Error("bbox must be an Array");if(Ae.length!==4&&Ae.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");Ae.forEach(function(Re){if(!vt(Re))throw new Error("bbox must only contain numbers")})}Y.validateBBox=Pe;function De(Ae){if(!Ae)throw new Error("id is required");if(["string","number"].indexOf(typeof Ae)===-1)throw new Error("id must be a number or a string")}Y.validateId=De},9750:function(_t,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var v=_(78161);function R(we,ot,He){if(we!==null)for(var vt,dt,Pe,De,Ae,Re,$e,Ie=0,Xe=0,ze,Kt=we.type,St=Kt==="FeatureCollection",nt=Kt==="Feature",Ct=St?we.features.length:1,lt=0;ltRe||St>$e||nt>Ie){Ae=Xe,Re=vt,$e=St,Ie=nt,Pe=0;return}var Ct=v.lineString([Ae,Xe],He.properties);if(ot(Ct,vt,dt,nt,Pe)===!1)return!1;Pe++,Ae=Xe})===!1)return!1}}})}function ce(we,ot,He){var vt=He,dt=!1;return K(we,function(Pe,De,Ae,Re,$e){dt===!1&&He===void 0?vt=Pe:vt=ot(vt,Pe,De,Ae,Re,$e),dt=!0}),vt}function de(we,ot){if(!we)throw new Error("geojson is required");A(we,function(He,vt,dt){if(He.geometry!==null){var Pe=He.geometry.type,De=He.geometry.coordinates;switch(Pe){case"LineString":if(ot(He,vt,dt,0,0)===!1)return!1;break;case"Polygon":for(var Ae=0;Ae=Math.abs(C)?b-g+C:C-g+b,b=g}b+B>=0!=!!w&&P.reverse()}},75550:function(yt){"use strict";yt.exports=Y;function Y(y,v){this.x=y,this.y=v}Y.prototype={clone:function(){return new Y(this.x,this.y)},add:function(y){return this.clone()._add(y)},sub:function(y){return this.clone()._sub(y)},multByPoint:function(y){return this.clone()._multByPoint(y)},divByPoint:function(y){return this.clone()._divByPoint(y)},mult:function(y){return this.clone()._mult(y)},div:function(y){return this.clone()._div(y)},rotate:function(y){return this.clone()._rotate(y)},rotateAround:function(y,v){return this.clone()._rotateAround(y,v)},matMult:function(y){return this.clone()._matMult(y)},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(y){return this.x===y.x&&this.y===y.y},dist:function(y){return Math.sqrt(this.distSqr(y))},distSqr:function(y){var v=y.x-this.x,P=y.y-this.y;return v*v+P*P},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(y){return Math.atan2(this.y-y.y,this.x-y.x)},angleWith:function(y){return this.angleWithSep(y.x,y.y)},angleWithSep:function(y,v){return Math.atan2(this.x*v-this.y*y,this.x*y+this.y*v)},_matMult:function(y){var v=y[0]*this.x+y[1]*this.y,P=y[2]*this.x+y[3]*this.y;return this.x=v,this.y=P,this},_add:function(y){return this.x+=y.x,this.y+=y.y,this},_sub:function(y){return this.x-=y.x,this.y-=y.y,this},_mult:function(y){return this.x*=y,this.y*=y,this},_div:function(y){return this.x/=y,this.y/=y,this},_multByPoint:function(y){return this.x*=y.x,this.y*=y.y,this},_divByPoint:function(y){return this.x/=y.x,this.y/=y.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var y=this.y;return this.y=this.x,this.x=-y,this},_rotate:function(y){var v=Math.cos(y),P=Math.sin(y),w=v*this.x-P*this.y,b=P*this.x+v*this.y;return this.x=w,this.y=b,this},_rotateAround:function(y,v){var P=Math.cos(y),w=Math.sin(y),b=v.x+P*(this.x-v.x)-w*(this.y-v.y),B=v.y+w*(this.x-v.x)+P*(this.y-v.y);return this.x=b,this.y=B,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Y.convert=function(y){return y instanceof Y?y:Array.isArray(y)?new Y(y[0],y[1]):y}},49296:function(yt){"use strict";yt.exports=y,yt.exports.default=y;var Y=1e20;function y(B,V,k,R,C,g){this.fontSize=B||24,this.buffer=V===void 0?3:V,this.cutoff=R||.25,this.fontFamily=C||"sans-serif",this.fontWeight=g||"normal",this.radius=k||8;var A=this.size=this.fontSize+this.buffer*2,O=A+this.buffer*2;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=A,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textAlign="left",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(O*O),this.gridInner=new Float64Array(O*O),this.f=new Float64Array(O),this.z=new Float64Array(O+1),this.v=new Uint16Array(O),this.useMetrics=this.ctx.measureText("A").actualBoundingBoxLeft!==void 0,this.middle=Math.round(A/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function v(B,V,k,R,C,g,A){g.fill(Y,0,V*k),A.fill(0,0,V*k);for(var O=(V-R)/2,K=0;K-1);K++,g[K]=O,A[K]=he,A[K+1]=Y}for(O=0,K=0;Ow)return w;for(;PB?P=b:w=b,b=(w-P)*.5+P}return b},Y.prototype.solve=function(y,v){return this.sampleCurveY(this.solveCurveX(y,v))}},38929:function(yt,Y,y){yt.exports.VectorTile=y(22779),y(66024),y(59701)},22779:function(yt,Y,y){"use strict";var v=y(59701);yt.exports=P;function P(b,B){this.layers=b.readFields(w,{},B)}function w(b,B,V){if(b===3){var k=new v(V,V.readVarint()+V.pos);k.length&&(B[k.name]=k)}}},66024:function(yt,Y,y){"use strict";var v=y(75550);yt.exports=P;function P(k,R,C,g,A){this.properties={},this.extent=C,this.type=0,this._pbf=k,this._geometry=-1,this._keys=g,this._values=A,k.readFields(w,this,R)}function w(k,R,C){k==1?R.id=C.readVarint():k==2?b(C,R):k==3?R.type=C.readVarint():k==4&&(R._geometry=C.pos)}function b(k,R){for(var C=k.readVarint()+k.pos;k.pos>3}if(g--,C===1||C===2)A+=k.readSVarint(),O+=k.readSVarint(),C===1&&(he&&K.push(he),he=[]),he.push(new v(A,O));else if(C===7)he&&he.push(he[0].clone());else throw new Error("unknown command "+C)}return he&&K.push(he),K},P.prototype.bbox=function(){var k=this._pbf;k.pos=this._geometry;for(var R=k.readVarint()+k.pos,C=1,g=0,A=0,O=0,K=1/0,he=-1/0,ae=1/0,fe=-1/0;k.pos>3}if(g--,C===1||C===2)A+=k.readSVarint(),O+=k.readSVarint(),Ahe&&(he=A),Ofe&&(fe=O);else if(C!==7)throw new Error("unknown command "+C)}return[K,ae,he,fe]},P.prototype.toGeoJSON=function(k,R,C){var g=this.extent*Math.pow(2,C),A=this.extent*k,O=this.extent*R,K=this.loadGeometry(),he=P.types[this.type],ae,fe;function xe(Qe){for(var Ve=0;Ve>3;V=R===1?B.readString():R===2?B.readFloat():R===3?B.readDouble():R===4?B.readVarint64():R===5?B.readVarint():R===6?B.readSVarint():R===7?B.readBoolean():null}return V}P.prototype.feature=function(B){if(B<0||B>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[B];var V=this._pbf.readVarint()+this._pbf.pos;return new v(this._pbf,V,this.extent,this._keys,this._values)}},9705:function(yt,Y,y){"use strict";var v;v={value:!0};var P=y(31540);function w(b){var B=[1/0,1/0,-1/0,-1/0];return P.coordEach(b,function(V){B[0]>V[0]&&(B[0]=V[0]),B[1]>V[1]&&(B[1]=V[1]),B[2]=0))throw new Error("precision must be a positive number");var Ue=Math.pow(10,Me||0);return Math.round(Te*Ue)/Ue}Y.round=K;function he(Te,Me){Me===void 0&&(Me="kilometers");var Ue=Y.factors[Me];if(!Ue)throw new Error(Me+" units is invalid");return Te*Ue}Y.radiansToLength=he;function ae(Te,Me){Me===void 0&&(Me="kilometers");var Ue=Y.factors[Me];if(!Ue)throw new Error(Me+" units is invalid");return Te/Ue}Y.lengthToRadians=ae;function fe(Te,Me){return ye(ae(Te,Me))}Y.lengthToDegrees=fe;function xe(Te){var Me=Te%360;return Me<0&&(Me+=360),Me}Y.bearingToAzimuth=xe;function ye(Te){var Me=Te%(2*Math.PI);return Me*180/Math.PI}Y.radiansToDegrees=ye;function be(Te){var Me=Te%360;return Me*Math.PI/180}Y.degreesToRadians=be;function Qe(Te,Me,Ue){if(Me===void 0&&(Me="kilometers"),Ue===void 0&&(Ue="kilometers"),!(Te>=0))throw new Error("length must be a positive number");return he(ae(Te,Me),Ue)}Y.convertLength=Qe;function Ve(Te,Me,Ue){if(Me===void 0&&(Me="meters"),Ue===void 0&&(Ue="kilometers"),!(Te>=0))throw new Error("area must be a positive number");var Pe=Y.areaFactors[Me];if(!Pe)throw new Error("invalid original units");var Xe=Y.areaFactors[Ue];if(!Xe)throw new Error("invalid final units");return Te/Pe*Xe}Y.convertArea=Ve;function pt(Te){return!isNaN(Te)&&Te!==null&&!Array.isArray(Te)}Y.isNumber=pt;function st(Te){return!!Te&&Te.constructor===Object}Y.isObject=st;function Ae(Te){if(!Te)throw new Error("bbox is required");if(!Array.isArray(Te))throw new Error("bbox must be an Array");if(Te.length!==4&&Te.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");Te.forEach(function(Me){if(!pt(Me))throw new Error("bbox must only contain numbers")})}Y.validateBBox=Ae;function De(Te){if(!Te)throw new Error("id is required");if(["string","number"].indexOf(typeof Te)===-1)throw new Error("id must be a number or a string")}Y.validateId=De},31540:function(yt,Y,y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var v=y(84102);function P(be,Qe,Ve){if(be!==null)for(var pt,st,Ae,De,Te,Me,Ue,Pe=0,Xe=0,Be,Xt=be.type,St=Xt==="FeatureCollection",nt=Xt==="Feature",wt=St?be.features.length:1,lt=0;ltMe||St>Ue||nt>Pe){Te=Xe,Me=pt,Ue=St,Pe=nt,Ae=0;return}var wt=v.lineString([Te,Xe],Ve.properties);if(Qe(wt,pt,st,nt,Ae)===!1)return!1;Ae++,Te=Xe})===!1)return!1}}})}function he(be,Qe,Ve){var pt=Ve,st=!1;return K(be,function(Ae,De,Te,Me,Ue){st===!1&&Ve===void 0?pt=Ae:pt=Qe(pt,Ae,De,Te,Me,Ue),st=!0}),pt}function ae(be,Qe){if(!be)throw new Error("geojson is required");A(be,function(Ve,pt,st){if(Ve.geometry!==null){var Ae=Ve.geometry.type,De=Ve.geometry.coordinates;switch(Ae){case"LineString":if(Qe(Ve,pt,st,0,0)===!1)return!1;break;case"Polygon":for(var Te=0;Te=we+ot||we?new java.lang.String(_e,we,ot)+"":_e}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(_e){K.prototype[_e]=function(){return null}});function Ee(_e,we){_e.currentElement?_e.currentElement.appendChild(we):_e.doc.appendChild(we)}v=K,v=g,v=A},32706:function(_t,Y,_){var v=_(18859),R=v.find,w=v.NAMESPACE;function b(An){return An!==""}function B(An){return An?An.split(/[\t\n\f\r ]+/).filter(b):[]}function V(An,Xn){return An.hasOwnProperty(Xn)||(An[Xn]=!0),An}function k(An){if(!An)return[];var Xn=B(An);return Object.keys(Xn.reduce(V,{}))}function M(An){return function(Xn){return An&&An.indexOf(Xn)!==-1}}function C(An,Xn){for(var nr in An)Object.prototype.hasOwnProperty.call(An,nr)&&(Xn[nr]=An[nr])}function g(An,Xn){var nr=An.prototype;if(!(nr instanceof Xn)){let vi=function(){};var qr=vi;vi.prototype=Xn.prototype,vi=new vi,C(nr,vi),An.prototype=nr=vi}nr.constructor!=An&&(typeof An!="function"&&console.error("unknown Class:"+An),nr.constructor=An)}var A={},O=A.ELEMENT_NODE=1,K=A.ATTRIBUTE_NODE=2,ce=A.TEXT_NODE=3,de=A.CDATA_SECTION_NODE=4,ve=A.ENTITY_REFERENCE_NODE=5,Ee=A.ENTITY_NODE=6,_e=A.PROCESSING_INSTRUCTION_NODE=7,we=A.COMMENT_NODE=8,ot=A.DOCUMENT_NODE=9,He=A.DOCUMENT_TYPE_NODE=10,vt=A.DOCUMENT_FRAGMENT_NODE=11,dt=A.NOTATION_NODE=12,Pe={},De={},Ae=Pe.INDEX_SIZE_ERR=(De[1]="Index size error",1),Re=Pe.DOMSTRING_SIZE_ERR=(De[2]="DOMString size error",2),$e=Pe.HIERARCHY_REQUEST_ERR=(De[3]="Hierarchy request error",3),Ie=Pe.WRONG_DOCUMENT_ERR=(De[4]="Wrong document",4),Xe=Pe.INVALID_CHARACTER_ERR=(De[5]="Invalid character",5),ze=Pe.NO_DATA_ALLOWED_ERR=(De[6]="No data allowed",6),Kt=Pe.NO_MODIFICATION_ALLOWED_ERR=(De[7]="No modification allowed",7),St=Pe.NOT_FOUND_ERR=(De[8]="Not found",8),nt=Pe.NOT_SUPPORTED_ERR=(De[9]="Not supported",9),Ct=Pe.INUSE_ATTRIBUTE_ERR=(De[10]="Attribute in use",10),lt=Pe.INVALID_STATE_ERR=(De[11]="Invalid state",11),Gt=Pe.SYNTAX_ERR=(De[12]="Syntax error",12),Rt=Pe.INVALID_MODIFICATION_ERR=(De[13]="Invalid modification",13),an=Pe.NAMESPACE_ERR=(De[14]="Invalid namespace",14),cn=Pe.INVALID_ACCESS_ERR=(De[15]="Invalid access",15);function Cr(An,Xn){if(Xn instanceof Error)var nr=Xn;else nr=this,Error.call(this,De[An]),this.message=De[An],Error.captureStackTrace&&Error.captureStackTrace(this,Cr);return nr.code=An,Xn&&(this.message=this.message+": "+Xn),nr}Cr.prototype=Error.prototype,C(Pe,Cr);function ii(){}ii.prototype={length:0,item:function(An){return An>=0&&An=0){for(var vi=Xn.length-1;qr0},lookupPrefix:function(An){for(var Xn=this;Xn;){var nr=Xn._nsMap;if(nr){for(var qr in nr)if(Object.prototype.hasOwnProperty.call(nr,qr)&&nr[qr]===An)return qr}Xn=Xn.nodeType==K?Xn.ownerDocument:Xn.parentNode}return null},lookupNamespaceURI:function(An){for(var Xn=this;Xn;){var nr=Xn._nsMap;if(nr&&Object.prototype.hasOwnProperty.call(nr,An))return nr[An];Xn=Xn.nodeType==K?Xn.ownerDocument:Xn.parentNode}return null},isDefaultNamespace:function(An){var Xn=this.lookupPrefix(An);return Xn==null}};function qi(An){return An=="<"&&"<"||An==">"&&">"||An=="&"&&"&"||An=='"'&&"""||"&#"+An.charCodeAt()+";"}C(A,Gi),C(A,Gi.prototype);function co(An,Xn){if(Xn(An))return!0;if(An=An.firstChild)do if(co(An,Xn))return!0;while(An=An.nextSibling)}function fi(){this.ownerDocument=this}function Ms(An,Xn,nr){An&&An._inc++;var qr=nr.namespaceURI;qr===w.XMLNS&&(Xn._nsMap[nr.prefix?nr.localName:""]=nr.value)}function In(An,Xn,nr,qr){An&&An._inc++;var vi=nr.namespaceURI;vi===w.XMLNS&&delete Xn._nsMap[nr.prefix?nr.localName:""]}function et(An,Xn,nr){if(An&&An._inc){An._inc++;var qr=Xn.childNodes;if(nr)qr[qr.length++]=nr;else{for(var vi=Xn.firstChild,Hr=0;vi;)qr[Hr++]=vi,vi=vi.nextSibling;qr.length=Hr,delete qr[qr.length]}}}function Dt(An,Xn){var nr=Xn.previousSibling,qr=Xn.nextSibling;return nr?nr.nextSibling=qr:An.firstChild=qr,qr?qr.previousSibling=nr:An.lastChild=nr,Xn.parentNode=null,Xn.previousSibling=null,Xn.nextSibling=null,et(An.ownerDocument,An),Xn}function $t(An){return An&&(An.nodeType===Gi.DOCUMENT_NODE||An.nodeType===Gi.DOCUMENT_FRAGMENT_NODE||An.nodeType===Gi.ELEMENT_NODE)}function Dn(An){return An&&(kn(An)||bn(An)||gr(An)||An.nodeType===Gi.DOCUMENT_FRAGMENT_NODE||An.nodeType===Gi.COMMENT_NODE||An.nodeType===Gi.PROCESSING_INSTRUCTION_NODE)}function gr(An){return An&&An.nodeType===Gi.DOCUMENT_TYPE_NODE}function kn(An){return An&&An.nodeType===Gi.ELEMENT_NODE}function bn(An){return An&&An.nodeType===Gi.TEXT_NODE}function zt(An,Xn){var nr=An.childNodes||[];if(R(nr,kn)||gr(Xn))return!1;var qr=R(nr,gr);return!(Xn&&qr&&nr.indexOf(qr)>nr.indexOf(Xn))}function Jt(An,Xn){var nr=An.childNodes||[];function qr(Hr){return kn(Hr)&&Hr!==Xn}if(R(nr,qr))return!1;var vi=R(nr,gr);return!(Xn&&vi&&nr.indexOf(vi)>nr.indexOf(Xn))}function yn(An,Xn,nr){if(!$t(An))throw new Cr($e,"Unexpected parent node type "+An.nodeType);if(nr&&nr.parentNode!==An)throw new Cr(St,"child not in parent");if(!Dn(Xn)||gr(Xn)&&An.nodeType!==Gi.DOCUMENT_NODE)throw new Cr($e,"Unexpected node type "+Xn.nodeType+" for parent node type "+An.nodeType)}function fr(An,Xn,nr){var qr=An.childNodes||[],vi=Xn.childNodes||[];if(Xn.nodeType===Gi.DOCUMENT_FRAGMENT_NODE){var Hr=vi.filter(kn);if(Hr.length>1||R(vi,bn))throw new Cr($e,"More than one element or text in fragment");if(Hr.length===1&&!zt(An,nr))throw new Cr($e,"Element in fragment can not be inserted before doctype")}if(kn(Xn)&&!zt(An,nr))throw new Cr($e,"Only one element can be added and only after doctype");if(gr(Xn)){if(R(qr,gr))throw new Cr($e,"Only one doctype is allowed");var di=R(qr,kn);if(nr&&qr.indexOf(di)1||R(vi,bn))throw new Cr($e,"More than one element or text in fragment");if(Hr.length===1&&!Jt(An,nr))throw new Cr($e,"Element in fragment can not be inserted before doctype")}if(kn(Xn)&&!Jt(An,nr))throw new Cr($e,"Only one element can be added and only after doctype");if(gr(Xn)){let mi=function(Bi){return gr(Bi)&&Bi!==nr};var gi=mi;if(R(qr,mi))throw new Cr($e,"Only one doctype is allowed");var di=R(qr,kn);if(nr&&qr.indexOf(di)0&&co(nr.documentElement,function(vi){if(vi!==nr&&vi.nodeType===O){var Hr=vi.getAttribute("class");if(Hr){var di=An===Hr;if(!di){var gi=k(Hr);di=Xn.every(M(gi))}di&&qr.push(vi)}}}),qr})},createElement:function(An){var Xn=new Sr;Xn.ownerDocument=this,Xn.nodeName=An,Xn.tagName=An,Xn.localName=An,Xn.childNodes=new ii;var nr=Xn.attributes=new Yi;return nr._ownerElement=Xn,Xn},createDocumentFragment:function(){var An=new Zt;return An.ownerDocument=this,An.childNodes=new ii,An},createTextNode:function(An){var Xn=new Fr;return Xn.ownerDocument=this,Xn.appendData(An),Xn},createComment:function(An){var Xn=new to;return Xn.ownerDocument=this,Xn.appendData(An),Xn},createCDATASection:function(An){var Xn=new Ji;return Xn.ownerDocument=this,Xn.appendData(An),Xn},createProcessingInstruction:function(An,Xn){var nr=new gn;return nr.ownerDocument=this,nr.tagName=nr.nodeName=nr.target=An,nr.nodeValue=nr.data=Xn,nr},createAttribute:function(An){var Xn=new Ai;return Xn.ownerDocument=this,Xn.name=An,Xn.nodeName=An,Xn.localName=An,Xn.specified=!0,Xn},createEntityReference:function(An){var Xn=new It;return Xn.ownerDocument=this,Xn.nodeName=An,Xn},createElementNS:function(An,Xn){var nr=new Sr,qr=Xn.split(":"),vi=nr.attributes=new Yi;return nr.childNodes=new ii,nr.ownerDocument=this,nr.nodeName=Xn,nr.tagName=Xn,nr.namespaceURI=An,qr.length==2?(nr.prefix=qr[0],nr.localName=qr[1]):nr.localName=Xn,vi._ownerElement=nr,nr},createAttributeNS:function(An,Xn){var nr=new Ai,qr=Xn.split(":");return nr.ownerDocument=this,nr.nodeName=Xn,nr.name=Xn,nr.namespaceURI=An,nr.specified=!0,qr.length==2?(nr.prefix=qr[0],nr.localName=qr[1]):nr.localName=Xn,nr}},g(fi,Gi);function Sr(){this._nsMap={}}Sr.prototype={nodeType:O,hasAttribute:function(An){return this.getAttributeNode(An)!=null},getAttribute:function(An){var Xn=this.getAttributeNode(An);return Xn&&Xn.value||""},getAttributeNode:function(An){return this.attributes.getNamedItem(An)},setAttribute:function(An,Xn){var nr=this.ownerDocument.createAttribute(An);nr.value=nr.nodeValue=""+Xn,this.setAttributeNode(nr)},removeAttribute:function(An){var Xn=this.getAttributeNode(An);Xn&&this.removeAttributeNode(Xn)},appendChild:function(An){return An.nodeType===vt?this.insertBefore(An,null):wr(this,An)},setAttributeNode:function(An){return this.attributes.setNamedItem(An)},setAttributeNodeNS:function(An){return this.attributes.setNamedItemNS(An)},removeAttributeNode:function(An){return this.attributes.removeNamedItem(An.nodeName)},removeAttributeNS:function(An,Xn){var nr=this.getAttributeNodeNS(An,Xn);nr&&this.removeAttributeNode(nr)},hasAttributeNS:function(An,Xn){return this.getAttributeNodeNS(An,Xn)!=null},getAttributeNS:function(An,Xn){var nr=this.getAttributeNodeNS(An,Xn);return nr&&nr.value||""},setAttributeNS:function(An,Xn,nr){var qr=this.ownerDocument.createAttributeNS(An,Xn);qr.value=qr.nodeValue=""+nr,this.setAttributeNode(qr)},getAttributeNodeNS:function(An,Xn){return this.attributes.getNamedItemNS(An,Xn)},getElementsByTagName:function(An){return new Pi(this,function(Xn){var nr=[];return co(Xn,function(qr){qr!==Xn&&qr.nodeType==O&&(An==="*"||qr.tagName==An)&&nr.push(qr)}),nr})},getElementsByTagNameNS:function(An,Xn){return new Pi(this,function(nr){var qr=[];return co(nr,function(vi){vi!==nr&&vi.nodeType===O&&(An==="*"||vi.namespaceURI===An)&&(Xn==="*"||vi.localName==Xn)&&qr.push(vi)}),qr})}},fi.prototype.getElementsByTagName=Sr.prototype.getElementsByTagName,fi.prototype.getElementsByTagNameNS=Sr.prototype.getElementsByTagNameNS,g(Sr,Gi);function Ai(){}Ai.prototype.nodeType=K,g(Ai,Gi);function mo(){}mo.prototype={data:"",substringData:function(An,Xn){return this.data.substring(An,An+Xn)},appendData:function(An){An=this.data+An,this.nodeValue=this.data=An,this.length=An.length},insertData:function(An,Xn){this.replaceData(An,0,Xn)},appendChild:function(An){throw new Error(De[$e])},deleteData:function(An,Xn){this.replaceData(An,Xn,"")},replaceData:function(An,Xn,nr){var qr=this.data.substring(0,An),vi=this.data.substring(An+Xn);nr=qr+nr+vi,this.nodeValue=this.data=nr,this.length=nr.length}},g(mo,Gi);function Fr(){}Fr.prototype={nodeName:"#text",nodeType:ce,splitText:function(An){var Xn=this.data,nr=Xn.substring(An);Xn=Xn.substring(0,An),this.data=this.nodeValue=Xn,this.length=Xn.length;var qr=this.ownerDocument.createTextNode(nr);return this.parentNode&&this.parentNode.insertBefore(qr,this.nextSibling),qr}},g(Fr,mo);function to(){}to.prototype={nodeName:"#comment",nodeType:we},g(to,mo);function Ji(){}Ji.prototype={nodeName:"#cdata-section",nodeType:de},g(Ji,mo);function bo(){}bo.prototype.nodeType=He,g(bo,Gi);function xn(){}xn.prototype.nodeType=dt,g(xn,Gi);function fn(){}fn.prototype.nodeType=Ee,g(fn,Gi);function It(){}It.prototype.nodeType=ve,g(It,Gi);function Zt(){}Zt.prototype.nodeName="#document-fragment",Zt.prototype.nodeType=vt,g(Zt,Gi);function gn(){}gn.prototype.nodeType=_e,g(gn,Gi);function $n(){}$n.prototype.serializeToString=function(An,Xn,nr){return Ar.call(An,Xn,nr)},Gi.prototype.toString=Ar;function Ar(An,Xn){var nr=[],qr=this.nodeType==9&&this.documentElement||this,vi=qr.prefix,Hr=qr.namespaceURI;if(Hr&&vi==null){var vi=qr.lookupPrefix(Hr);if(vi==null)var di=[{namespace:Hr,prefix:null}]}return Xt(this,nr,An,Xn,di),nr.join("")}function Dr(An,Xn,nr){var qr=An.prefix||"",vi=An.namespaceURI;if(!vi||qr==="xml"&&vi===w.XML||vi===w.XMLNS)return!1;for(var Hr=nr.length;Hr--;){var di=nr[Hr];if(di.prefix===qr)return di.namespace!==vi}return!0}function dr(An,Xn,nr){An.push(" ",Xn,'="',nr.replace(/[<>&"\t\n\r]/g,qi),'"')}function Xt(An,Xn,nr,qr,vi){if(vi||(vi=[]),qr)if(An=qr(An),An){if(typeof An=="string"){Xn.push(An);return}}else return;switch(An.nodeType){case O:var Hr=An.attributes,di=Hr.length,ri=An.firstChild,gi=An.tagName;nr=w.isHTML(An.namespaceURI)||nr;var mi=gi;if(!nr&&!An.prefix&&An.namespaceURI){for(var Bi,zr=0;zr=0;Xr--){var Qi=vi[Xr];if(Qi.prefix===""&&Qi.namespace===An.namespaceURI){Bi=Qi.namespace;break}}if(Bi!==An.namespaceURI)for(var Xr=vi.length-1;Xr>=0;Xr--){var Qi=vi[Xr];if(Qi.namespace===An.namespaceURI){Qi.prefix&&(mi=Qi.prefix+":"+gi);break}}}Xn.push("<",mi);for(var rs=0;rs"),nr&&/^script$/i.test(gi))for(;ri;)ri.data?Xn.push(ri.data):Xt(ri,Xn,nr,qr,vi.slice()),ri=ri.nextSibling;else for(;ri;)Xt(ri,Xn,nr,qr,vi.slice()),ri=ri.nextSibling;Xn.push("")}else Xn.push("/>");return;case ot:case vt:for(var ri=An.firstChild;ri;)Xt(ri,Xn,nr,qr,vi.slice()),ri=ri.nextSibling;return;case K:return dr(Xn,An.name,An.value);case ce:return Xn.push(An.data.replace(/[<&>]/g,qi));case de:return Xn.push("");case we:return Xn.push("");case He:var is=An.publicId,Jr=An.systemId;if(Xn.push("");else if(Jr&&Jr!=".")Xn.push(" SYSTEM ",Jr,">");else{var _n=An.internalSubset;_n&&Xn.push(" [",_n,"]"),Xn.push(">")}return;case _e:return Xn.push("");case ve:return Xn.push("&",An.nodeName,";");default:Xn.push("??",An.nodeName)}}function Cn(An,Xn,nr){var qr;switch(Xn.nodeType){case O:qr=Xn.cloneNode(!1),qr.ownerDocument=An;case vt:break;case K:nr=!0;break}if(qr||(qr=Xn.cloneNode(!1)),qr.ownerDocument=An,qr.parentNode=null,nr)for(var vi=Xn.firstChild;vi;)qr.appendChild(Cn(An,vi,nr)),vi=vi.nextSibling;return qr}function er(An,Xn,nr){var qr=new Xn.constructor;for(var vi in Xn)if(Object.prototype.hasOwnProperty.call(Xn,vi)){var Hr=Xn[vi];typeof Hr!="object"&&Hr!=qr[vi]&&(qr[vi]=Hr)}switch(Xn.childNodes&&(qr.childNodes=new ii),qr.ownerDocument=An,qr.nodeType){case O:var di=Xn.attributes,gi=qr.attributes=new Yi,mi=di.length;gi._ownerElement=qr;for(var Bi=0;Bi",lt:"<",quot:'"'}),Y.HTML_ENTITIES=v({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}),Y.entityMap=Y.HTML_ENTITIES},65952:function(_t,Y,_){var v,R=_(32706);v=R.DOMImplementation,Y.B=R.XMLSerializer,_(36980)},12128:function(_t,Y,_){var v=_(18859).NAMESPACE,R=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,w=new RegExp("[\\-\\.0-9"+R.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),b=new RegExp("^"+R.source+w.source+"*(?::"+R.source+w.source+"*)?$"),B=0,V=1,k=2,M=3,C=4,g=5,A=6,O=7;function K(Ae,Re){this.message=Ae,this.locator=Re,Error.captureStackTrace&&Error.captureStackTrace(this,K)}K.prototype=new Error,K.prototype.name=K.name;function ce(){}ce.prototype={parse:function(Ae,Re,$e){var Ie=this.domBuilder;Ie.startDocument(),He(Re,Re={}),de(Ae,Re,$e,Ie,this.errorHandler),Ie.endDocument()}};function de(Ae,Re,$e,Ie,Xe){function ze($t){if($t>65535){$t-=65536;var Dn=55296+($t>>10),gr=56320+($t&1023);return String.fromCharCode(Dn,gr)}else return String.fromCharCode($t)}function Kt($t){var Dn=$t.slice(1,-1);return Object.hasOwnProperty.call($e,Dn)?$e[Dn]:Dn.charAt(0)==="#"?ze(parseInt(Dn.substr(1).replace("x","0x"))):(Xe.error("entity not found:"+$t),$t)}function St($t){if($t>Cr){var Dn=Ae.substring(Cr,$t).replace(/&#?\w+;/g,Kt);Rt&&nt(Cr),Ie.characters(Dn,0,$t-Cr),Cr=$t}}function nt($t,Dn){for(;$t>=lt&&(Dn=Gt.exec(Ae));)Ct=Dn.index,lt=Ct+Dn[0].length,Rt.lineNumber++;Rt.columnNumber=$t-Ct+1}for(var Ct=0,lt=0,Gt=/.*(?:\r\n?|\n)|.*$/g,Rt=Ie.locator,an=[{currentNSMap:Re}],cn={},Cr=0;;){try{var ii=Ae.indexOf("<",Cr);if(ii<0){if(!Ae.substr(Cr).match(/^\s*$/)){var Pi=Ie.doc,Ni=Pi.createTextNode(Ae.substr(Cr));Pi.appendChild(Ni),Ie.currentElement=Ni}return}switch(ii>Cr&&St(ii),Ae.charAt(ii+1)){case"/":var fi=Ae.indexOf(">",ii+3),Yi=Ae.substring(ii+2,fi).replace(/[ \t\n\r]+$/g,""),ti=an.pop();fi<0?(Yi=Ae.substring(ii+2).replace(/[\s<].*/,""),Xe.error("end tag name: "+Yi+" is not complete:"+ti.tagName),fi=ii+1+Yi.length):Yi.match(/\sCr?Cr=fi:St(Math.max(ii,Cr)+1)}}function ve(Ae,Re){return Re.lineNumber=Ae.lineNumber,Re.columnNumber=Ae.columnNumber,Re}function Ee(Ae,Re,$e,Ie,Xe,ze){function Kt(an,cn,Cr){$e.attributeNames.hasOwnProperty(an)&&ze.fatalError("Attribute "+an+" redefined"),$e.addValue(an,cn.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,Xe),Cr)}for(var St,nt,Ct=++Re,lt=B;;){var Gt=Ae.charAt(Ct);switch(Gt){case"=":if(lt===V)St=Ae.slice(Re,Ct),lt=M;else if(lt===k)lt=M;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(lt===M||lt===V)if(lt===V&&(ze.warning('attribute value must after "="'),St=Ae.slice(Re,Ct)),Re=Ct+1,Ct=Ae.indexOf(Gt,Re),Ct>0)nt=Ae.slice(Re,Ct),Kt(St,nt,Re-1),lt=g;else throw new Error("attribute value no end '"+Gt+"' match");else if(lt==C)nt=Ae.slice(Re,Ct),Kt(St,nt,Re),ze.warning('attribute "'+St+'" missed start quot('+Gt+")!!"),Re=Ct+1,lt=g;else throw new Error('attribute value must after "="');break;case"/":switch(lt){case B:$e.setTagName(Ae.slice(Re,Ct));case g:case A:case O:lt=O,$e.closed=!0;case C:case V:break;case k:$e.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return ze.error("unexpected end of input"),lt==B&&$e.setTagName(Ae.slice(Re,Ct)),Ct;case">":switch(lt){case B:$e.setTagName(Ae.slice(Re,Ct));case g:case A:case O:break;case C:case V:nt=Ae.slice(Re,Ct),nt.slice(-1)==="/"&&($e.closed=!0,nt=nt.slice(0,-1));case k:lt===k&&(nt=St),lt==C?(ze.warning('attribute "'+nt+'" missed quot(")!'),Kt(St,nt,Re)):((!v.isHTML(Ie[""])||!nt.match(/^(?:disabled|checked|selected)$/i))&&ze.warning('attribute "'+nt+'" missed value!! "'+nt+'" instead!!'),Kt(nt,nt,Re));break;case M:throw new Error("attribute value missed!!")}return Ct;case"\x80":Gt=" ";default:if(Gt<=" ")switch(lt){case B:$e.setTagName(Ae.slice(Re,Ct)),lt=A;break;case V:St=Ae.slice(Re,Ct),lt=k;break;case C:var nt=Ae.slice(Re,Ct);ze.warning('attribute "'+nt+'" missed quot(")!!'),Kt(St,nt,Re);case g:lt=A;break}else switch(lt){case k:var Rt=$e.tagName;(!v.isHTML(Ie[""])||!St.match(/^(?:disabled|checked|selected)$/i))&&ze.warning('attribute "'+St+'" missed value!! "'+St+'" instead2!!'),Kt(St,St,Re),Re=Ct,lt=V;break;case g:ze.warning('attribute space is required"'+St+'"!!');case A:lt=V,Re=Ct;break;case M:lt=C,Re=Ct;break;case O:throw new Error("elements closed character '/' and '>' must be connected to")}}Ct++}}function _e(Ae,Re,$e){for(var Ie=Ae.tagName,Xe=null,Gt=Ae.length;Gt--;){var ze=Ae[Gt],Kt=ze.qName,St=ze.value,Rt=Kt.indexOf(":");if(Rt>0)var nt=ze.prefix=Kt.slice(0,Rt),Ct=Kt.slice(Rt+1),lt=nt==="xmlns"&&Ct;else Ct=Kt,nt=null,lt=Kt==="xmlns"&&"";ze.localName=Ct,lt!==!1&&(Xe==null&&(Xe={},He($e,$e={})),$e[lt]=Xe[lt]=St,ze.uri=v.XMLNS,Re.startPrefixMapping(lt,St))}for(var Gt=Ae.length;Gt--;){ze=Ae[Gt];var nt=ze.prefix;nt&&(nt==="xml"&&(ze.uri=v.XML),nt!=="xmlns"&&(ze.uri=$e[nt||""]))}var Rt=Ie.indexOf(":");Rt>0?(nt=Ae.prefix=Ie.slice(0,Rt),Ct=Ae.localName=Ie.slice(Rt+1)):(nt=null,Ct=Ae.localName=Ie);var an=Ae.uri=$e[nt||""];if(Re.startElement(an,Ct,Ie,Ae),Ae.closed){if(Re.endElement(an,Ct,Ie),Xe)for(nt in Xe)Object.prototype.hasOwnProperty.call(Xe,nt)&&Re.endPrefixMapping(nt)}else return Ae.currentNSMap=$e,Ae.localNSMap=Xe,!0}function we(Ae,Re,$e,Ie,Xe){if(/^(?:script|textarea)$/i.test($e)){var ze=Ae.indexOf("",Re),Kt=Ae.substring(Re+1,ze);if(/[&<]/.test(Kt))return/^script$/i.test($e)?(Xe.characters(Kt,0,Kt.length),ze):(Kt=Kt.replace(/&#?\w+;/g,Ie),Xe.characters(Kt,0,Kt.length),ze)}return Re+1}function ot(Ae,Re,$e,Ie){var Xe=Ie[$e];return Xe==null&&(Xe=Ae.lastIndexOf(""),Xe",Re+4);return ze>Re?($e.comment(Ae,Re+4,ze-Re-4),ze+3):(Ie.error("Unclosed comment"),-1)}else return-1;default:if(Ae.substr(Re+3,6)=="CDATA["){var ze=Ae.indexOf("]]>",Re+9);return $e.startCDATA(),$e.characters(Ae,Re+9,ze-Re-9),$e.endCDATA(),ze+3}var Kt=De(Ae,Re),St=Kt.length;if(St>1&&/!doctype/i.test(Kt[0][0])){var nt=Kt[1][0],Ct=!1,lt=!1;St>3&&(/^public$/i.test(Kt[2][0])?(Ct=Kt[3][0],lt=St>4&&Kt[4][0]):/^system$/i.test(Kt[2][0])&&(lt=Kt[3][0]));var Gt=Kt[St-1];return $e.startDTD(nt,Ct,lt),$e.endDTD(),Gt.index+Gt[0].length}}return-1}function dt(Ae,Re,$e){var Ie=Ae.indexOf("?>",Re);if(Ie){var Xe=Ae.substring(Re,Ie).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(Xe){var ze=Xe[0].length;return $e.processingInstruction(Xe[1],Xe[2]),Ie+2}else return-1}return-1}function Pe(){this.attributeNames={}}Pe.prototype={setTagName:function(Ae){if(!b.test(Ae))throw new Error("invalid tagName:"+Ae);this.tagName=Ae},addValue:function(Ae,Re,$e){if(!b.test(Ae))throw new Error("invalid attribute:"+Ae);this.attributeNames[Ae]=this.length,this[this.length++]={qName:Ae,value:Re,offset:$e}},length:0,getLocalName:function(Ae){return this[Ae].localName},getLocator:function(Ae){return this[Ae].locator},getQName:function(Ae){return this[Ae].qName},getURI:function(Ae){return this[Ae].uri},getValue:function(Ae){return this[Ae].value}};function De(Ae,Re){var $e,Ie=[],Xe=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(Xe.lastIndex=Re,Xe.exec(Ae);$e=Xe.exec(Ae);)if(Ie.push($e),$e[1])return Ie}Y.XMLReader=ce,Y.ParseError=K},28084:function(_t,Y,_){"use strict";var v=_(32290),R=_(77617),w=_(73680);function b(V){return(0,w.mf)(V[Symbol.asyncIterator])}function B(V,k){(0,R.useEffect)(function(){var M=V(),C=!1;function g(){return(0,v.mG)(this,void 0,void 0,function(){var A;return(0,v.Jh)(this,function(O){switch(O.label){case 0:if(!b(M))return[3,4];O.label=1;case 1:return[4,M.next()];case 2:return A=O.sent(),A.done||C?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,M];case 5:O.sent(),O.label=6;case 6:return[2]}})})}return g(),function(){C=!0}},k)}Y.Z=B},64310:function(_t,Y,_){"use strict";var v=_(32290),R=_(77617),w=_(50160);function b(B,V){var k=(0,v.CR)((0,R.useState)(B),2),M=k[0],C=k[1],g=(0,w.Z)(function(){C(B)},V).run;return(0,R.useEffect)(function(){g()},[B]),M}Y.Z=b},50160:function(_t,Y,_){"use strict";var v=_(32290),R=_(41571),w=_.n(R),b=_(77617),B=_(30542),V=_(22633),k=_(73680),M=_(37036);function C(g,A){var O;M.Z&&((0,k.mf)(g)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof g)));var K=(0,B.Z)(g),ce=(O=A==null?void 0:A.wait)!==null&&O!==void 0?O:1e3,de=(0,b.useMemo)(function(){return w()(function(){for(var ve=[],Ee=0;Ee{const{type:M,children:C,prefixCls:g,buttonProps:A,close:O,autoFocus:K,emitEvent:ce,isSilent:de,quitOnNullishReturnValue:ve,actionFn:Ee}=k,_e=R.useRef(!1),we=R.useRef(null),[ot,He]=(0,v.Z)(!1),vt=function(){O==null||O.apply(void 0,arguments)};R.useEffect(()=>{let De=null;return K&&(De=setTimeout(()=>{var Ae;(Ae=we.current)===null||Ae===void 0||Ae.focus()})),()=>{De&&clearTimeout(De)}},[]);const dt=De=>{B(De)&&(He(!0),De.then(function(){He(!1,!0),vt.apply(void 0,arguments),_e.current=!1},Ae=>{if(He(!1,!0),_e.current=!1,!(de!=null&&de()))return Promise.reject(Ae)}))},Pe=De=>{if(_e.current)return;if(_e.current=!0,!Ee){vt();return}let Ae;if(ce){if(Ae=Ee(De),ve&&!B(Ae)){_e.current=!1,vt(De);return}}else if(Ee.length)Ae=Ee(O),_e.current=!1;else if(Ae=Ee(),!Ae){vt();return}dt(Ae)};return R.createElement(w.ZP,Object.assign({},(0,b.nx)(M),{onClick:Pe,loading:ot,prefixCls:g},A,{ref:we}),C)};Y.Z=V},52910:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return V},i:function(){return B}});var v=_(84381),R=_(77617),w=_(62719),b=_(51059);function B(k){return function(C){return R.createElement(w.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},R.createElement(k,Object.assign({},C)))}}function V(k,M,C,g){function A(O){const{prefixCls:K,style:ce}=O,de=R.useRef(null),[ve,Ee]=R.useState(0),[_e,we]=R.useState(0),[ot,He]=(0,v.Z)(!1,{value:O.open}),{getPrefixCls:vt}=R.useContext(b.E_),dt=vt(M||"select",K);R.useEffect(()=>{if(He(!0),typeof ResizeObserver!="undefined"){const De=new ResizeObserver(Re=>{const $e=Re[0].target;Ee($e.offsetHeight+8),we($e.offsetWidth)}),Ae=setInterval(()=>{var Re;const $e=C?`.${C(dt)}`:`.${dt}-dropdown`,Ie=(Re=de.current)===null||Re===void 0?void 0:Re.querySelector($e);Ie&&(clearInterval(Ae),De.observe(Ie))},10);return()=>{clearInterval(Ae),De.disconnect()}}},[]);let Pe=Object.assign(Object.assign({},O),{style:Object.assign(Object.assign({},ce),{margin:0}),open:ot,visible:ot,getPopupContainer:()=>de.current});return g&&(Pe=g(Pe)),R.createElement("div",{ref:de,style:{paddingBottom:ve,position:"relative",minWidth:_e}},R.createElement(k,Object.assign({},Pe)))}return B(A)}},9090:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return v}});const v=R=>R?typeof R=="function"?R():R:null},2162:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return b}});var v=_(49934),R=_(77617);function w(B,V,k){return typeof B=="boolean"?B:V===void 0?!!k:V!==!1&&V!==null}function b(B,V,k){let M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:R.createElement(v.Z,null),C=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!w(B,V,C))return[!1,null];const A=typeof V=="boolean"||V===void 0||V===null?M:V;return[!0,k?k(A):A]}},81259:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return R}});var v=_(77617);function R(){const[,w]=v.useReducer(b=>b+1,0);return w}},3966:function(_t,Y,_){"use strict";_.d(Y,{Cn:function(){return g},u6:function(){return V}});var v=_(77617),R=_(57947),w=_(91649);const b=100,V=b*10,k={Modal:b,Drawer:b,Popover:b,Popconfirm:b,Tooltip:b,Tour:b},M={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function C(A){return A in k}function g(A,O){const[,K]=(0,R.ZP)(),ce=v.useContext(w.Z),de=C(A);if(O!==void 0)return[O,O];let ve=ce!=null?ce:0;return de?(ve+=(ce?0:K.zIndexPopupBase)+k[A],ve=Math.min(ve,K.zIndexPopupBase+V)):ve+=M[A],[ce===void 0?O:ve,ve]}},82395:function(_t,Y,_){"use strict";_.d(Y,{m:function(){return k}});const v=()=>({height:0,opacity:0}),R=M=>{const{scrollHeight:C}=M;return{height:C,opacity:1}},w=M=>({height:M?M.offsetHeight:0}),b=(M,C)=>(C==null?void 0:C.deadline)===!0||C.propertyName==="height",B=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:v,onEnterStart:v,onAppearActive:R,onEnterActive:R,onLeaveStart:w,onLeaveActive:v,onAppearEnd:b,onEnterEnd:b,onLeaveEnd:b,motionDeadline:500}},V=null,k=(M,C,g)=>g!==void 0?g:`${M}-${C}`;Y.Z=B},75261:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return V}});var v=_(79208);function R(k,M,C,g){if(g===!1)return{adjustX:!1,adjustY:!1};const A=g&&typeof g=="object"?g:{},O={};switch(k){case"top":case"bottom":O.shiftX=M.arrowOffsetHorizontal*2+C,O.shiftY=!0,O.adjustY=!0;break;case"left":case"right":O.shiftY=M.arrowOffsetVertical*2+C,O.shiftX=!0,O.adjustX=!0;break}const K=Object.assign(Object.assign({},O),A);return K.shiftX||(K.adjustX=!0),K.shiftY||(K.adjustY=!0),K}const w={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},b={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},B=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function V(k){const{arrowWidth:M,autoAdjustOverflow:C,arrowPointAtCenter:g,offset:A,borderRadius:O,visibleFirst:K}=k,ce=M/2,de={};return Object.keys(w).forEach(ve=>{const Ee=g&&b[ve]||w[ve],_e=Object.assign(Object.assign({},Ee),{offset:[0,0],dynamicInset:!0});switch(de[ve]=_e,B.has(ve)&&(_e.autoArrow=!1),ve){case"top":case"topLeft":case"topRight":_e.offset[1]=-ce-A;break;case"bottom":case"bottomLeft":case"bottomRight":_e.offset[1]=ce+A;break;case"left":case"leftTop":case"leftBottom":_e.offset[0]=-ce-A;break;case"right":case"rightTop":case"rightBottom":_e.offset[0]=ce+A;break}const we=(0,v.wZ)({contentRadius:O,limitVerticalRadius:!0});if(g)switch(ve){case"topLeft":case"bottomLeft":_e.offset[0]=-we.arrowOffsetHorizontal-ce;break;case"topRight":case"bottomRight":_e.offset[0]=we.arrowOffsetHorizontal+ce;break;case"leftTop":case"rightTop":_e.offset[1]=-we.arrowOffsetHorizontal-ce;break;case"leftBottom":case"rightBottom":_e.offset[1]=we.arrowOffsetHorizontal+ce;break}_e.overflow=R(ve,we,M,C),K&&(_e.htmlRegion="visibleFirst")}),de}},29341:function(_t,Y,_){"use strict";var v;_.d(Y,{M2:function(){return b},Tm:function(){return V},l$:function(){return w}});var R=_(77617);const{isValidElement:w}=v||(v=_.t(R,2));function b(k){return k&&w(k)&&k.type===R.Fragment}function B(k,M,C){return w(k)?R.cloneElement(k,typeof C=="function"?C(k.props||{}):C):M}function V(k,M){return B(k,k,M)}},94123:function(_t,Y,_){"use strict";_.d(Y,{ZP:function(){return V},c4:function(){return w},m9:function(){return k}});var v=_(77617),R=_(57947);const w=["xxl","xl","lg","md","sm","xs"],b=M=>({xs:`(max-width: ${M.screenXSMax}px)`,sm:`(min-width: ${M.screenSM}px)`,md:`(min-width: ${M.screenMD}px)`,lg:`(min-width: ${M.screenLG}px)`,xl:`(min-width: ${M.screenXL}px)`,xxl:`(min-width: ${M.screenXXL}px)`}),B=M=>{const C=M,g=[].concat(w).reverse();return g.forEach((A,O)=>{const K=A.toUpperCase(),ce=`screen${K}Min`,de=`screen${K}`;if(!(C[ce]<=C[de]))throw new Error(`${ce}<=${de} fails : !(${C[ce]}<=${C[de]})`);if(O{const g=new Map;let A=-1,O={};return{matchHandlers:{},dispatch(K){return O=K,g.forEach(ce=>ce(O)),g.size>=1},subscribe(K){return g.size||this.register(),A+=1,g.set(A,K),K(O),A},unsubscribe(K){g.delete(K),g.size||this.unregister()},unregister(){Object.keys(C).forEach(K=>{const ce=C[K],de=this.matchHandlers[ce];de==null||de.mql.removeListener(de==null?void 0:de.listener)}),g.clear()},register(){Object.keys(C).forEach(K=>{const ce=C[K],de=Ee=>{let{matches:_e}=Ee;this.dispatch(Object.assign(Object.assign({},O),{[K]:_e}))},ve=window.matchMedia(ce);ve.addListener(de),this.matchHandlers[ce]={mql:ve,listener:de},de(ve)})},responsiveMap:C}},[M])}const k=(M,C)=>{if(C&&typeof C=="object")for(let g=0;gk||V},50905:function(_t,Y,_){"use strict";_.d(Y,{G8:function(){return k},ln:function(){return M}});var v=_(77617),R=_(36014);function w(){}let b=null;function B(){b=null,rcResetWarned()}let V=null;const k=v.createContext({}),M=()=>{const g=()=>{};return g.deprecated=w,g};var C=null},54595:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return Ae}});var v=_(12124),R=_.n(v),w=_(88831),b=_(95077),B=_(77617),V=_(51059),k=_(29341),M=_(67859);const C=Re=>{const{componentCls:$e,colorPrimary:Ie}=Re;return{[$e]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${Ie})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${Re.motionEaseOutCirc}`,`opacity 2s ${Re.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${Re.motionEaseInOut}`,`opacity 0.35s ${Re.motionEaseInOut}`].join(",")}}}}};var g=(0,M.ZP)("Wave",Re=>[C(Re)]),A=_(33401),O=_(90571),K=_(44516),ce=_(41522);function de(Re){const $e=(Re||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return $e&&$e[1]&&$e[2]&&$e[3]?!($e[1]===$e[2]&&$e[2]===$e[3]):!0}function ve(Re){return Re&&Re!=="#fff"&&Re!=="#ffffff"&&Re!=="rgb(255, 255, 255)"&&Re!=="rgba(255, 255, 255, 1)"&&de(Re)&&!/rgba\((?:\d*, ){3}0\)/.test(Re)&&Re!=="transparent"}function Ee(Re){const{borderTopColor:$e,borderColor:Ie,backgroundColor:Xe}=getComputedStyle(Re);return ve($e)?$e:ve(Ie)?Ie:ve(Xe)?Xe:null}var _e=_(99381);function we(Re){return Number.isNaN(Re)?0:Re}const ot=Re=>{const{className:$e,target:Ie,component:Xe}=Re,ze=B.useRef(null),[Kt,St]=B.useState(null),[nt,Ct]=B.useState([]),[lt,Gt]=B.useState(0),[Rt,an]=B.useState(0),[cn,Cr]=B.useState(0),[ii,Pi]=B.useState(0),[Ni,Yi]=B.useState(!1),ti={left:lt,top:Rt,width:cn,height:ii,borderRadius:nt.map(Ce=>`${Ce}px`).join(" ")};Kt&&(ti["--wave-color"]=Kt);function Ts(){const Ce=getComputedStyle(Ie);St(Ee(Ie));const Gi=Ce.position==="static",{borderLeftWidth:qi,borderTopWidth:co}=Ce;Gt(Gi?Ie.offsetLeft:we(-parseFloat(qi))),an(Gi?Ie.offsetTop:we(-parseFloat(co))),Cr(Ie.offsetWidth),Pi(Ie.offsetHeight);const{borderTopLeftRadius:fi,borderTopRightRadius:Ms,borderBottomLeftRadius:In,borderBottomRightRadius:et}=Ce;Ct([fi,Ms,et,In].map(Dt=>we(parseFloat(Dt))))}if(B.useEffect(()=>{if(Ie){const Ce=(0,O.Z)(()=>{Ts(),Yi(!0)});let Gi;return typeof ResizeObserver!="undefined"&&(Gi=new ResizeObserver(Ts),Gi.observe(Ie)),()=>{O.Z.cancel(Ce),Gi==null||Gi.disconnect()}}},[]),!Ni)return null;const Bs=(Xe==="Checkbox"||Xe==="Radio")&&(Ie==null?void 0:Ie.classList.contains(_e.A));return B.createElement(K.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(Ce,Gi)=>{var qi;if(Gi.deadline||Gi.propertyName==="opacity"){const co=(qi=ze.current)===null||qi===void 0?void 0:qi.parentElement;(0,ce.v)(co).then(()=>{co==null||co.remove()})}return!1}},Ce=>{let{className:Gi}=Ce;return B.createElement("div",{ref:ze,className:R()($e,{"wave-quick":Bs},Gi),style:ti})})};var vt=(Re,$e)=>{var Ie;const{component:Xe}=$e;if(Xe==="Checkbox"&&!(!((Ie=Re.querySelector("input"))===null||Ie===void 0)&&Ie.checked))return;const ze=document.createElement("div");ze.style.position="absolute",ze.style.left="0px",ze.style.top="0px",Re==null||Re.insertBefore(ze,Re==null?void 0:Re.firstChild),(0,ce.s)(B.createElement(ot,Object.assign({},$e,{target:Re})),ze)},dt=_(57947);function Pe(Re,$e,Ie){const{wave:Xe}=B.useContext(V.E_),[,ze,Kt]=(0,dt.ZP)(),St=(0,A.zX)(lt=>{const Gt=Re.current;if(Xe!=null&&Xe.disabled||!Gt)return;const Rt=Gt.querySelector(`.${_e.A}`)||Gt,{showEffect:an}=Xe||{};(an||vt)(Rt,{className:$e,token:ze,component:Ie,event:lt,hashId:Kt})}),nt=B.useRef();return lt=>{O.Z.cancel(nt.current),nt.current=(0,O.Z)(()=>{St(lt)})}}var Ae=Re=>{const{children:$e,disabled:Ie,component:Xe}=Re,{getPrefixCls:ze}=(0,B.useContext)(V.E_),Kt=(0,B.useRef)(null),St=ze("wave"),[,nt]=g(St),Ct=Pe(Kt,R()(St,nt),Xe);if(B.useEffect(()=>{const Gt=Kt.current;if(!Gt||Gt.nodeType!==1||Ie)return;const Rt=an=>{!(0,b.Z)(an.target)||!Gt.getAttribute||Gt.getAttribute("disabled")||Gt.disabled||Gt.className.includes("disabled")||Gt.className.includes("-leave")||Ct(an)};return Gt.addEventListener("click",Rt,!0),()=>{Gt.removeEventListener("click",Rt,!0)}},[Ie]),!B.isValidElement($e))return $e!=null?$e:null;const lt=(0,w.Yr)($e)?(0,w.sQ)($e.ref,Kt):Kt;return(0,k.Tm)($e,{ref:lt})}},99381:function(_t,Y,_){"use strict";_.d(Y,{A:function(){return v}});const v="ant-wave-target"},91649:function(_t,Y,_){"use strict";var v=_(77617);const R=v.createContext(void 0);Y.Z=R},62481:function(_t,Y,_){"use strict";_.d(Y,{Te:function(){return k},aG:function(){return b},hU:function(){return C},nx:function(){return B}});var v=_(77617),R=_(29341);const w=/^[\u4e00-\u9fa5]{2}$/,b=w.test.bind(w);function B(K){return K==="danger"?{danger:!0}:{type:K}}function V(K){return typeof K=="string"}function k(K){return K==="text"||K==="link"}function M(K,ce){if(K==null)return;const de=ce?" ":"";return typeof K!="string"&&typeof K!="number"&&V(K.type)&&b(K.props.children)?(0,R.Tm)(K,{children:K.props.children.split("").join(de)}):V(K)?b(K)?v.createElement("span",null,K.split("").join(de)):v.createElement("span",null,K):(0,R.M2)(K)?v.createElement("span",null,K):K}function C(K,ce){let de=!1;const ve=[];return v.Children.forEach(K,Ee=>{const _e=typeof Ee,we=_e==="string"||_e==="number";if(de&&we){const ot=ve.length-1,He=ve[ot];ve[ot]=`${He}${Ee}`}else ve.push(Ee);de=we}),v.Children.map(ve,Ee=>M(Ee,ce))}const g=null,A=null,O=null},9949:function(_t,Y,_){"use strict";_.d(Y,{ZP:function(){return vr}});var v=_(77617),R=_(12124),w=_.n(R),b=_(99468),B=_(88831),V=_(54595),k=_(51059),M=_(40053),C=_(1220),g=_(60161),A=_(57947),O=function(pn,wr){var Sr={};for(var Ai in pn)Object.prototype.hasOwnProperty.call(pn,Ai)&&wr.indexOf(Ai)<0&&(Sr[Ai]=pn[Ai]);if(pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mo=0,Ai=Object.getOwnPropertySymbols(pn);mo{const{getPrefixCls:wr,direction:Sr}=v.useContext(k.E_),{prefixCls:Ai,size:mo,className:Fr}=pn,to=O(pn,["prefixCls","size","className"]),Ji=wr("btn-group",Ai),[,,bo]=(0,A.ZP)();let xn="";switch(mo){case"large":xn="lg";break;case"small":xn="sm";break;case"middle":default:}const fn=w()(Ji,{[`${Ji}-${xn}`]:xn,[`${Ji}-rtl`]:Sr==="rtl"},Fr,bo);return v.createElement(K.Provider,{value:mo},v.createElement("div",Object.assign({},to,{className:fn})))},ve=_(62481),_e=(0,v.forwardRef)((pn,wr)=>{const{className:Sr,style:Ai,children:mo,prefixCls:Fr}=pn,to=w()(`${Fr}-icon`,Sr);return v.createElement("span",{ref:wr,className:to,style:Ai},mo)}),we=_(38521),ot=_(44516);const He=(0,v.forwardRef)((pn,wr)=>{let{prefixCls:Sr,className:Ai,style:mo,iconClassName:Fr}=pn;const to=w()(`${Sr}-loading-icon`,Ai);return v.createElement(_e,{prefixCls:Sr,className:to,style:mo,ref:wr},v.createElement(we.Z,{className:Fr}))}),vt=()=>({width:0,opacity:0,transform:"scale(0)"}),dt=pn=>({width:pn.scrollWidth,opacity:1,transform:"scale(1)"});var De=pn=>{const{prefixCls:wr,loading:Sr,existIcon:Ai,className:mo,style:Fr}=pn,to=!!Sr;return Ai?v.createElement(He,{prefixCls:wr,className:mo,style:Fr}):v.createElement(ot.ZP,{visible:to,motionName:`${wr}-loading-icon-motion`,motionLeave:to,removeOnLeave:!0,onAppearStart:vt,onAppearActive:dt,onEnterStart:vt,onEnterActive:dt,onLeaveStart:dt,onLeaveActive:vt},(Ji,bo)=>{let{className:xn,style:fn}=Ji;return v.createElement(He,{prefixCls:wr,className:mo,style:Object.assign(Object.assign({},Fr),fn),ref:bo,iconClassName:xn})})},Ae=_(36646),Re=_(35772),$e=_(80172),Ie=_(67859);const Xe=(pn,wr)=>({[`> span, > ${pn}`]:{"&:not(:last-child)":{[`&, & > ${pn}`]:{"&:not(:disabled)":{borderInlineEndColor:wr}}},"&:not(:first-child)":{[`&, & > ${pn}`]:{"&:not(:disabled)":{borderInlineStartColor:wr}}}}});var Kt=pn=>{const{componentCls:wr,fontSize:Sr,lineWidth:Ai,groupBorderColor:mo,colorErrorHover:Fr}=pn;return{[`${wr}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${wr}`]:{"&:not(:last-child)":{[`&, & > ${wr}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:pn.calc(Ai).mul(-1).equal(),[`&, & > ${wr}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[wr]:{position:"relative",zIndex:1,[`&:hover, +`)}function A(ye){this.options=ye||{locator:{}}}A.prototype.parseFromString=function(ye,be){var Qe=this.options,Ve=new C,pt=Qe.domBuilder||new K,st=Qe.errorHandler,Ae=Qe.locator,De=Qe.xmlns||{},Te=/\/x?html?$/.test(be),Me=Te?b.HTML_ENTITIES:b.XML_ENTITIES;Ae&&pt.setDocumentLocator(Ae),Ve.errorHandler=O(st,pt,Ae),Ve.domBuilder=Qe.domBuilder||pt,Te&&(De[""]=k.HTML),De.xml=De.xml||k.XML;var Ue=Qe.normalizeLineEndings||g;return ye&&typeof ye=="string"?Ve.parse(Ue(ye),De,Me):Ve.errorHandler.error("invalid doc source"),pt.doc};function O(ye,be,Qe){if(!ye){if(be instanceof K)return be;ye=be}var Ve={},pt=ye instanceof Function;Qe=Qe||{};function st(Ae){var De=ye[Ae];!De&&pt&&(De=ye.length==2?function(Te){ye(Ae,Te)}:ye),Ve[Ae]=De&&function(Te){De("[xmldom "+Ae+"] "+Te+ae(Qe))}||function(){}}return st("warning"),st("error"),st("fatalError"),Ve}function K(){this.cdata=!1}function he(ye,be){be.lineNumber=ye.lineNumber,be.columnNumber=ye.columnNumber}K.prototype={startDocument:function(){this.doc=new V().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(ye,be,Qe,Ve){var pt=this.doc,st=pt.createElementNS(ye,Qe||be),Ae=Ve.length;xe(this,st),this.currentElement=st,this.locator&&he(this.locator,st);for(var De=0;De=be+Qe||be?new java.lang.String(ye,be,Qe)+"":ye}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(ye){K.prototype[ye]=function(){return null}});function xe(ye,be){ye.currentElement?ye.currentElement.appendChild(be):ye.doc.appendChild(be)}v=K,v=g,v=A},41146:function(yt,Y,y){var v=y(72167),P=v.find,w=v.NAMESPACE;function b(Dn){return Dn!==""}function B(Dn){return Dn?Dn.split(/[\t\n\f\r ]+/).filter(b):[]}function V(Dn,Kn){return Dn.hasOwnProperty(Kn)||(Dn[Kn]=!0),Dn}function k(Dn){if(!Dn)return[];var Kn=B(Dn);return Object.keys(Kn.reduce(V,{}))}function R(Dn){return function(Kn){return Dn&&Dn.indexOf(Kn)!==-1}}function C(Dn,Kn){for(var nr in Dn)Object.prototype.hasOwnProperty.call(Dn,nr)&&(Kn[nr]=Dn[nr])}function g(Dn,Kn){var nr=Dn.prototype;if(!(nr instanceof Kn)){let yi=function(){};var qr=yi;yi.prototype=Kn.prototype,yi=new yi,C(nr,yi),Dn.prototype=nr=yi}nr.constructor!=Dn&&(typeof Dn!="function"&&console.error("unknown Class:"+Dn),nr.constructor=Dn)}var A={},O=A.ELEMENT_NODE=1,K=A.ATTRIBUTE_NODE=2,he=A.TEXT_NODE=3,ae=A.CDATA_SECTION_NODE=4,fe=A.ENTITY_REFERENCE_NODE=5,xe=A.ENTITY_NODE=6,ye=A.PROCESSING_INSTRUCTION_NODE=7,be=A.COMMENT_NODE=8,Qe=A.DOCUMENT_NODE=9,Ve=A.DOCUMENT_TYPE_NODE=10,pt=A.DOCUMENT_FRAGMENT_NODE=11,st=A.NOTATION_NODE=12,Ae={},De={},Te=Ae.INDEX_SIZE_ERR=(De[1]="Index size error",1),Me=Ae.DOMSTRING_SIZE_ERR=(De[2]="DOMString size error",2),Ue=Ae.HIERARCHY_REQUEST_ERR=(De[3]="Hierarchy request error",3),Pe=Ae.WRONG_DOCUMENT_ERR=(De[4]="Wrong document",4),Xe=Ae.INVALID_CHARACTER_ERR=(De[5]="Invalid character",5),Be=Ae.NO_DATA_ALLOWED_ERR=(De[6]="No data allowed",6),Xt=Ae.NO_MODIFICATION_ALLOWED_ERR=(De[7]="No modification allowed",7),St=Ae.NOT_FOUND_ERR=(De[8]="Not found",8),nt=Ae.NOT_SUPPORTED_ERR=(De[9]="Not supported",9),wt=Ae.INUSE_ATTRIBUTE_ERR=(De[10]="Attribute in use",10),lt=Ae.INVALID_STATE_ERR=(De[11]="Invalid state",11),Kt=Ae.SYNTAX_ERR=(De[12]="Syntax error",12),Mt=Ae.INVALID_MODIFICATION_ERR=(De[13]="Invalid modification",13),hn=Ae.NAMESPACE_ERR=(De[14]="Invalid namespace",14),un=Ae.INVALID_ACCESS_ERR=(De[15]="Invalid access",15);function Sr(Dn,Kn){if(Kn instanceof Error)var nr=Kn;else nr=this,Error.call(this,De[Dn]),this.message=De[Dn],Error.captureStackTrace&&Error.captureStackTrace(this,Sr);return nr.code=Dn,Kn&&(this.message=this.message+": "+Kn),nr}Sr.prototype=Error.prototype,C(Ae,Sr);function ii(){}ii.prototype={length:0,item:function(Dn){return Dn>=0&&Dn=0){for(var yi=Kn.length-1;qr0},lookupPrefix:function(Dn){for(var Kn=this;Kn;){var nr=Kn._nsMap;if(nr){for(var qr in nr)if(Object.prototype.hasOwnProperty.call(nr,qr)&&nr[qr]===Dn)return qr}Kn=Kn.nodeType==K?Kn.ownerDocument:Kn.parentNode}return null},lookupNamespaceURI:function(Dn){for(var Kn=this;Kn;){var nr=Kn._nsMap;if(nr&&Object.prototype.hasOwnProperty.call(nr,Dn))return nr[Dn];Kn=Kn.nodeType==K?Kn.ownerDocument:Kn.parentNode}return null},isDefaultNamespace:function(Dn){var Kn=this.lookupPrefix(Dn);return Kn==null}};function Yi(Dn){return Dn=="<"&&"<"||Dn==">"&&">"||Dn=="&"&&"&"||Dn=='"'&&"""||"&#"+Dn.charCodeAt()+";"}C(A,Xi),C(A,Xi.prototype);function fo(Dn,Kn){if(Kn(Dn))return!0;if(Dn=Dn.firstChild)do if(fo(Dn,Kn))return!0;while(Dn=Dn.nextSibling)}function di(){this.ownerDocument=this}function Fs(Dn,Kn,nr){Dn&&Dn._inc++;var qr=nr.namespaceURI;qr===w.XMLNS&&(Kn._nsMap[nr.prefix?nr.localName:""]=nr.value)}function Ln(Dn,Kn,nr,qr){Dn&&Dn._inc++;var yi=nr.namespaceURI;yi===w.XMLNS&&delete Kn._nsMap[nr.prefix?nr.localName:""]}function it(Dn,Kn,nr){if(Dn&&Dn._inc){Dn._inc++;var qr=Kn.childNodes;if(nr)qr[qr.length++]=nr;else{for(var yi=Kn.firstChild,Hr=0;yi;)qr[Hr++]=yi,yi=yi.nextSibling;qr.length=Hr,delete qr[qr.length]}}}function Ot(Dn,Kn){var nr=Kn.previousSibling,qr=Kn.nextSibling;return nr?nr.nextSibling=qr:Dn.firstChild=qr,qr?qr.previousSibling=nr:Dn.lastChild=nr,Kn.parentNode=null,Kn.previousSibling=null,Kn.nextSibling=null,it(Dn.ownerDocument,Dn),Kn}function Ht(Dn){return Dn&&(Dn.nodeType===Xi.DOCUMENT_NODE||Dn.nodeType===Xi.DOCUMENT_FRAGMENT_NODE||Dn.nodeType===Xi.ELEMENT_NODE)}function Pn(Dn){return Dn&&(In(Dn)||mn(Dn)||fr(Dn)||Dn.nodeType===Xi.DOCUMENT_FRAGMENT_NODE||Dn.nodeType===Xi.COMMENT_NODE||Dn.nodeType===Xi.PROCESSING_INSTRUCTION_NODE)}function fr(Dn){return Dn&&Dn.nodeType===Xi.DOCUMENT_TYPE_NODE}function In(Dn){return Dn&&Dn.nodeType===Xi.ELEMENT_NODE}function mn(Dn){return Dn&&Dn.nodeType===Xi.TEXT_NODE}function Ut(Dn,Kn){var nr=Dn.childNodes||[];if(P(nr,In)||fr(Kn))return!1;var qr=P(nr,fr);return!(Kn&&qr&&nr.indexOf(qr)>nr.indexOf(Kn))}function en(Dn,Kn){var nr=Dn.childNodes||[];function qr(Hr){return In(Hr)&&Hr!==Kn}if(P(nr,qr))return!1;var yi=P(nr,fr);return!(Kn&&yi&&nr.indexOf(yi)>nr.indexOf(Kn))}function Cn(Dn,Kn,nr){if(!Ht(Dn))throw new Sr(Ue,"Unexpected parent node type "+Dn.nodeType);if(nr&&nr.parentNode!==Dn)throw new Sr(St,"child not in parent");if(!Pn(Kn)||fr(Kn)&&Dn.nodeType!==Xi.DOCUMENT_NODE)throw new Sr(Ue,"Unexpected node type "+Kn.nodeType+" for parent node type "+Dn.nodeType)}function lr(Dn,Kn,nr){var qr=Dn.childNodes||[],yi=Kn.childNodes||[];if(Kn.nodeType===Xi.DOCUMENT_FRAGMENT_NODE){var Hr=yi.filter(In);if(Hr.length>1||P(yi,mn))throw new Sr(Ue,"More than one element or text in fragment");if(Hr.length===1&&!Ut(Dn,nr))throw new Sr(Ue,"Element in fragment can not be inserted before doctype")}if(In(Kn)&&!Ut(Dn,nr))throw new Sr(Ue,"Only one element can be added and only after doctype");if(fr(Kn)){if(P(qr,fr))throw new Sr(Ue,"Only one doctype is allowed");var ci=P(qr,In);if(nr&&qr.indexOf(ci)1||P(yi,mn))throw new Sr(Ue,"More than one element or text in fragment");if(Hr.length===1&&!en(Dn,nr))throw new Sr(Ue,"Element in fragment can not be inserted before doctype")}if(In(Kn)&&!en(Dn,nr))throw new Sr(Ue,"Only one element can be added and only after doctype");if(fr(Kn)){let mi=function(Bi){return fr(Bi)&&Bi!==nr};var gi=mi;if(P(qr,mi))throw new Sr(Ue,"Only one doctype is allowed");var ci=P(qr,In);if(nr&&qr.indexOf(ci)0&&fo(nr.documentElement,function(yi){if(yi!==nr&&yi.nodeType===O){var Hr=yi.getAttribute("class");if(Hr){var ci=Dn===Hr;if(!ci){var gi=k(Hr);ci=Kn.every(R(gi))}ci&&qr.push(yi)}}}),qr})},createElement:function(Dn){var Kn=new Cr;Kn.ownerDocument=this,Kn.nodeName=Dn,Kn.tagName=Dn,Kn.localName=Dn,Kn.childNodes=new ii;var nr=Kn.attributes=new eo;return nr._ownerElement=Kn,Kn},createDocumentFragment:function(){var Dn=new Zt;return Dn.ownerDocument=this,Dn.childNodes=new ii,Dn},createTextNode:function(Dn){var Kn=new kr;return Kn.ownerDocument=this,Kn.appendData(Dn),Kn},createComment:function(Dn){var Kn=new ro;return Kn.ownerDocument=this,Kn.appendData(Dn),Kn},createCDATASection:function(Dn){var Kn=new qi;return Kn.ownerDocument=this,Kn.appendData(Dn),Kn},createProcessingInstruction:function(Dn,Kn){var nr=new vn;return nr.ownerDocument=this,nr.tagName=nr.nodeName=nr.target=Dn,nr.nodeValue=nr.data=Kn,nr},createAttribute:function(Dn){var Kn=new Ei;return Kn.ownerDocument=this,Kn.name=Dn,Kn.nodeName=Dn,Kn.localName=Dn,Kn.specified=!0,Kn},createEntityReference:function(Dn){var Kn=new Dt;return Kn.ownerDocument=this,Kn.nodeName=Dn,Kn},createElementNS:function(Dn,Kn){var nr=new Cr,qr=Kn.split(":"),yi=nr.attributes=new eo;return nr.childNodes=new ii,nr.ownerDocument=this,nr.nodeName=Kn,nr.tagName=Kn,nr.namespaceURI=Dn,qr.length==2?(nr.prefix=qr[0],nr.localName=qr[1]):nr.localName=Kn,yi._ownerElement=nr,nr},createAttributeNS:function(Dn,Kn){var nr=new Ei,qr=Kn.split(":");return nr.ownerDocument=this,nr.nodeName=Kn,nr.name=Kn,nr.namespaceURI=Dn,nr.specified=!0,qr.length==2?(nr.prefix=qr[0],nr.localName=qr[1]):nr.localName=Kn,nr}},g(di,Xi);function Cr(){this._nsMap={}}Cr.prototype={nodeType:O,hasAttribute:function(Dn){return this.getAttributeNode(Dn)!=null},getAttribute:function(Dn){var Kn=this.getAttributeNode(Dn);return Kn&&Kn.value||""},getAttributeNode:function(Dn){return this.attributes.getNamedItem(Dn)},setAttribute:function(Dn,Kn){var nr=this.ownerDocument.createAttribute(Dn);nr.value=nr.nodeValue=""+Kn,this.setAttributeNode(nr)},removeAttribute:function(Dn){var Kn=this.getAttributeNode(Dn);Kn&&this.removeAttributeNode(Kn)},appendChild:function(Dn){return Dn.nodeType===pt?this.insertBefore(Dn,null):wr(this,Dn)},setAttributeNode:function(Dn){return this.attributes.setNamedItem(Dn)},setAttributeNodeNS:function(Dn){return this.attributes.setNamedItemNS(Dn)},removeAttributeNode:function(Dn){return this.attributes.removeNamedItem(Dn.nodeName)},removeAttributeNS:function(Dn,Kn){var nr=this.getAttributeNodeNS(Dn,Kn);nr&&this.removeAttributeNode(nr)},hasAttributeNS:function(Dn,Kn){return this.getAttributeNodeNS(Dn,Kn)!=null},getAttributeNS:function(Dn,Kn){var nr=this.getAttributeNodeNS(Dn,Kn);return nr&&nr.value||""},setAttributeNS:function(Dn,Kn,nr){var qr=this.ownerDocument.createAttributeNS(Dn,Kn);qr.value=qr.nodeValue=""+nr,this.setAttributeNode(qr)},getAttributeNodeNS:function(Dn,Kn){return this.attributes.getNamedItemNS(Dn,Kn)},getElementsByTagName:function(Dn){return new Ii(this,function(Kn){var nr=[];return fo(Kn,function(qr){qr!==Kn&&qr.nodeType==O&&(Dn==="*"||qr.tagName==Dn)&&nr.push(qr)}),nr})},getElementsByTagNameNS:function(Dn,Kn){return new Ii(this,function(nr){var qr=[];return fo(nr,function(yi){yi!==nr&&yi.nodeType===O&&(Dn==="*"||yi.namespaceURI===Dn)&&(Kn==="*"||yi.localName==Kn)&&qr.push(yi)}),qr})}},di.prototype.getElementsByTagName=Cr.prototype.getElementsByTagName,di.prototype.getElementsByTagNameNS=Cr.prototype.getElementsByTagNameNS,g(Cr,Xi);function Ei(){}Ei.prototype.nodeType=K,g(Ei,Xi);function vo(){}vo.prototype={data:"",substringData:function(Dn,Kn){return this.data.substring(Dn,Dn+Kn)},appendData:function(Dn){Dn=this.data+Dn,this.nodeValue=this.data=Dn,this.length=Dn.length},insertData:function(Dn,Kn){this.replaceData(Dn,0,Kn)},appendChild:function(Dn){throw new Error(De[Ue])},deleteData:function(Dn,Kn){this.replaceData(Dn,Kn,"")},replaceData:function(Dn,Kn,nr){var qr=this.data.substring(0,Dn),yi=this.data.substring(Dn+Kn);nr=qr+nr+yi,this.nodeValue=this.data=nr,this.length=nr.length}},g(vo,Xi);function kr(){}kr.prototype={nodeName:"#text",nodeType:he,splitText:function(Dn){var Kn=this.data,nr=Kn.substring(Dn);Kn=Kn.substring(0,Dn),this.data=this.nodeValue=Kn,this.length=Kn.length;var qr=this.ownerDocument.createTextNode(nr);return this.parentNode&&this.parentNode.insertBefore(qr,this.nextSibling),qr}},g(kr,vo);function ro(){}ro.prototype={nodeName:"#comment",nodeType:be},g(ro,vo);function qi(){}qi.prototype={nodeName:"#cdata-section",nodeType:ae},g(qi,vo);function bo(){}bo.prototype.nodeType=Ve,g(bo,Xi);function xn(){}xn.prototype.nodeType=st,g(xn,Xi);function pn(){}pn.prototype.nodeType=xe,g(pn,Xi);function Dt(){}Dt.prototype.nodeType=fe,g(Dt,Xi);function Zt(){}Zt.prototype.nodeName="#document-fragment",Zt.prototype.nodeType=pt,g(Zt,Xi);function vn(){}vn.prototype.nodeType=ye,g(vn,Xi);function $n(){}$n.prototype.serializeToString=function(Dn,Kn,nr){return Ar.call(Dn,Kn,nr)},Xi.prototype.toString=Ar;function Ar(Dn,Kn){var nr=[],qr=this.nodeType==9&&this.documentElement||this,yi=qr.prefix,Hr=qr.namespaceURI;if(Hr&&yi==null){var yi=qr.lookupPrefix(Hr);if(yi==null)var ci=[{namespace:Hr,prefix:null}]}return Yt(this,nr,Dn,Kn,ci),nr.join("")}function Dr(Dn,Kn,nr){var qr=Dn.prefix||"",yi=Dn.namespaceURI;if(!yi||qr==="xml"&&yi===w.XML||yi===w.XMLNS)return!1;for(var Hr=nr.length;Hr--;){var ci=nr[Hr];if(ci.prefix===qr)return ci.namespace!==yi}return!0}function dr(Dn,Kn,nr){Dn.push(" ",Kn,'="',nr.replace(/[<>&"\t\n\r]/g,Yi),'"')}function Yt(Dn,Kn,nr,qr,yi){if(yi||(yi=[]),qr)if(Dn=qr(Dn),Dn){if(typeof Dn=="string"){Kn.push(Dn);return}}else return;switch(Dn.nodeType){case O:var Hr=Dn.attributes,ci=Hr.length,ni=Dn.firstChild,gi=Dn.tagName;nr=w.isHTML(Dn.namespaceURI)||nr;var mi=gi;if(!nr&&!Dn.prefix&&Dn.namespaceURI){for(var Bi,Nr=0;Nr=0;Kr--){var Qi=yi[Kr];if(Qi.prefix===""&&Qi.namespace===Dn.namespaceURI){Bi=Qi.namespace;break}}if(Bi!==Dn.namespaceURI)for(var Kr=yi.length-1;Kr>=0;Kr--){var Qi=yi[Kr];if(Qi.namespace===Dn.namespaceURI){Qi.prefix&&(mi=Qi.prefix+":"+gi);break}}}Kn.push("<",mi);for(var ns=0;ns"),nr&&/^script$/i.test(gi))for(;ni;)ni.data?Kn.push(ni.data):Yt(ni,Kn,nr,qr,yi.slice()),ni=ni.nextSibling;else for(;ni;)Yt(ni,Kn,nr,qr,yi.slice()),ni=ni.nextSibling;Kn.push("")}else Kn.push("/>");return;case Qe:case pt:for(var ni=Dn.firstChild;ni;)Yt(ni,Kn,nr,qr,yi.slice()),ni=ni.nextSibling;return;case K:return dr(Kn,Dn.name,Dn.value);case he:return Kn.push(Dn.data.replace(/[<&>]/g,Yi));case ae:return Kn.push("");case be:return Kn.push("");case Ve:var is=Dn.publicId,Jr=Dn.systemId;if(Kn.push("");else if(Jr&&Jr!=".")Kn.push(" SYSTEM ",Jr,">");else{var bn=Dn.internalSubset;bn&&Kn.push(" [",bn,"]"),Kn.push(">")}return;case ye:return Kn.push("");case fe:return Kn.push("&",Dn.nodeName,";");default:Kn.push("??",Dn.nodeName)}}function wn(Dn,Kn,nr){var qr;switch(Kn.nodeType){case O:qr=Kn.cloneNode(!1),qr.ownerDocument=Dn;case pt:break;case K:nr=!0;break}if(qr||(qr=Kn.cloneNode(!1)),qr.ownerDocument=Dn,qr.parentNode=null,nr)for(var yi=Kn.firstChild;yi;)qr.appendChild(wn(Dn,yi,nr)),yi=yi.nextSibling;return qr}function Qn(Dn,Kn,nr){var qr=new Kn.constructor;for(var yi in Kn)if(Object.prototype.hasOwnProperty.call(Kn,yi)){var Hr=Kn[yi];typeof Hr!="object"&&Hr!=qr[yi]&&(qr[yi]=Hr)}switch(Kn.childNodes&&(qr.childNodes=new ii),qr.ownerDocument=Dn,qr.nodeType){case O:var ci=Kn.attributes,gi=qr.attributes=new eo,mi=ci.length;gi._ownerElement=qr;for(var Bi=0;Bi",lt:"<",quot:'"'}),Y.HTML_ENTITIES=v({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}),Y.entityMap=Y.HTML_ENTITIES},3969:function(yt,Y,y){var v,P=y(41146);v=P.DOMImplementation,Y.B=P.XMLSerializer,y(86129)},76925:function(yt,Y,y){var v=y(72167).NAMESPACE,P=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,w=new RegExp("[\\-\\.0-9"+P.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),b=new RegExp("^"+P.source+w.source+"*(?::"+P.source+w.source+"*)?$"),B=0,V=1,k=2,R=3,C=4,g=5,A=6,O=7;function K(Te,Me){this.message=Te,this.locator=Me,Error.captureStackTrace&&Error.captureStackTrace(this,K)}K.prototype=new Error,K.prototype.name=K.name;function he(){}he.prototype={parse:function(Te,Me,Ue){var Pe=this.domBuilder;Pe.startDocument(),Ve(Me,Me={}),ae(Te,Me,Ue,Pe,this.errorHandler),Pe.endDocument()}};function ae(Te,Me,Ue,Pe,Xe){function Be(Ht){if(Ht>65535){Ht-=65536;var Pn=55296+(Ht>>10),fr=56320+(Ht&1023);return String.fromCharCode(Pn,fr)}else return String.fromCharCode(Ht)}function Xt(Ht){var Pn=Ht.slice(1,-1);return Object.hasOwnProperty.call(Ue,Pn)?Ue[Pn]:Pn.charAt(0)==="#"?Be(parseInt(Pn.substr(1).replace("x","0x"))):(Xe.error("entity not found:"+Ht),Ht)}function St(Ht){if(Ht>Sr){var Pn=Te.substring(Sr,Ht).replace(/&#?\w+;/g,Xt);Mt&&nt(Sr),Pe.characters(Pn,0,Ht-Sr),Sr=Ht}}function nt(Ht,Pn){for(;Ht>=lt&&(Pn=Kt.exec(Te));)wt=Pn.index,lt=wt+Pn[0].length,Mt.lineNumber++;Mt.columnNumber=Ht-wt+1}for(var wt=0,lt=0,Kt=/.*(?:\r\n?|\n)|.*$/g,Mt=Pe.locator,hn=[{currentNSMap:Me}],un={},Sr=0;;){try{var ii=Te.indexOf("<",Sr);if(ii<0){if(!Te.substr(Sr).match(/^\s*$/)){var Ii=Pe.doc,Ni=Ii.createTextNode(Te.substr(Sr));Ii.appendChild(Ni),Pe.currentElement=Ni}return}switch(ii>Sr&&St(ii),Te.charAt(ii+1)){case"/":var di=Te.indexOf(">",ii+3),eo=Te.substring(ii+2,di).replace(/[ \t\n\r]+$/g,""),ti=hn.pop();di<0?(eo=Te.substring(ii+2).replace(/[\s<].*/,""),Xe.error("end tag name: "+eo+" is not complete:"+ti.tagName),di=ii+1+eo.length):eo.match(/\sSr?Sr=di:St(Math.max(ii,Sr)+1)}}function fe(Te,Me){return Me.lineNumber=Te.lineNumber,Me.columnNumber=Te.columnNumber,Me}function xe(Te,Me,Ue,Pe,Xe,Be){function Xt(hn,un,Sr){Ue.attributeNames.hasOwnProperty(hn)&&Be.fatalError("Attribute "+hn+" redefined"),Ue.addValue(hn,un.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,Xe),Sr)}for(var St,nt,wt=++Me,lt=B;;){var Kt=Te.charAt(wt);switch(Kt){case"=":if(lt===V)St=Te.slice(Me,wt),lt=R;else if(lt===k)lt=R;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(lt===R||lt===V)if(lt===V&&(Be.warning('attribute value must after "="'),St=Te.slice(Me,wt)),Me=wt+1,wt=Te.indexOf(Kt,Me),wt>0)nt=Te.slice(Me,wt),Xt(St,nt,Me-1),lt=g;else throw new Error("attribute value no end '"+Kt+"' match");else if(lt==C)nt=Te.slice(Me,wt),Xt(St,nt,Me),Be.warning('attribute "'+St+'" missed start quot('+Kt+")!!"),Me=wt+1,lt=g;else throw new Error('attribute value must after "="');break;case"/":switch(lt){case B:Ue.setTagName(Te.slice(Me,wt));case g:case A:case O:lt=O,Ue.closed=!0;case C:case V:break;case k:Ue.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return Be.error("unexpected end of input"),lt==B&&Ue.setTagName(Te.slice(Me,wt)),wt;case">":switch(lt){case B:Ue.setTagName(Te.slice(Me,wt));case g:case A:case O:break;case C:case V:nt=Te.slice(Me,wt),nt.slice(-1)==="/"&&(Ue.closed=!0,nt=nt.slice(0,-1));case k:lt===k&&(nt=St),lt==C?(Be.warning('attribute "'+nt+'" missed quot(")!'),Xt(St,nt,Me)):((!v.isHTML(Pe[""])||!nt.match(/^(?:disabled|checked|selected)$/i))&&Be.warning('attribute "'+nt+'" missed value!! "'+nt+'" instead!!'),Xt(nt,nt,Me));break;case R:throw new Error("attribute value missed!!")}return wt;case"\x80":Kt=" ";default:if(Kt<=" ")switch(lt){case B:Ue.setTagName(Te.slice(Me,wt)),lt=A;break;case V:St=Te.slice(Me,wt),lt=k;break;case C:var nt=Te.slice(Me,wt);Be.warning('attribute "'+nt+'" missed quot(")!!'),Xt(St,nt,Me);case g:lt=A;break}else switch(lt){case k:var Mt=Ue.tagName;(!v.isHTML(Pe[""])||!St.match(/^(?:disabled|checked|selected)$/i))&&Be.warning('attribute "'+St+'" missed value!! "'+St+'" instead2!!'),Xt(St,St,Me),Me=wt,lt=V;break;case g:Be.warning('attribute space is required"'+St+'"!!');case A:lt=V,Me=wt;break;case R:lt=C,Me=wt;break;case O:throw new Error("elements closed character '/' and '>' must be connected to")}}wt++}}function ye(Te,Me,Ue){for(var Pe=Te.tagName,Xe=null,Kt=Te.length;Kt--;){var Be=Te[Kt],Xt=Be.qName,St=Be.value,Mt=Xt.indexOf(":");if(Mt>0)var nt=Be.prefix=Xt.slice(0,Mt),wt=Xt.slice(Mt+1),lt=nt==="xmlns"&&wt;else wt=Xt,nt=null,lt=Xt==="xmlns"&&"";Be.localName=wt,lt!==!1&&(Xe==null&&(Xe={},Ve(Ue,Ue={})),Ue[lt]=Xe[lt]=St,Be.uri=v.XMLNS,Me.startPrefixMapping(lt,St))}for(var Kt=Te.length;Kt--;){Be=Te[Kt];var nt=Be.prefix;nt&&(nt==="xml"&&(Be.uri=v.XML),nt!=="xmlns"&&(Be.uri=Ue[nt||""]))}var Mt=Pe.indexOf(":");Mt>0?(nt=Te.prefix=Pe.slice(0,Mt),wt=Te.localName=Pe.slice(Mt+1)):(nt=null,wt=Te.localName=Pe);var hn=Te.uri=Ue[nt||""];if(Me.startElement(hn,wt,Pe,Te),Te.closed){if(Me.endElement(hn,wt,Pe),Xe)for(nt in Xe)Object.prototype.hasOwnProperty.call(Xe,nt)&&Me.endPrefixMapping(nt)}else return Te.currentNSMap=Ue,Te.localNSMap=Xe,!0}function be(Te,Me,Ue,Pe,Xe){if(/^(?:script|textarea)$/i.test(Ue)){var Be=Te.indexOf("",Me),Xt=Te.substring(Me+1,Be);if(/[&<]/.test(Xt))return/^script$/i.test(Ue)?(Xe.characters(Xt,0,Xt.length),Be):(Xt=Xt.replace(/&#?\w+;/g,Pe),Xe.characters(Xt,0,Xt.length),Be)}return Me+1}function Qe(Te,Me,Ue,Pe){var Xe=Pe[Ue];return Xe==null&&(Xe=Te.lastIndexOf(""),Xe",Me+4);return Be>Me?(Ue.comment(Te,Me+4,Be-Me-4),Be+3):(Pe.error("Unclosed comment"),-1)}else return-1;default:if(Te.substr(Me+3,6)=="CDATA["){var Be=Te.indexOf("]]>",Me+9);return Ue.startCDATA(),Ue.characters(Te,Me+9,Be-Me-9),Ue.endCDATA(),Be+3}var Xt=De(Te,Me),St=Xt.length;if(St>1&&/!doctype/i.test(Xt[0][0])){var nt=Xt[1][0],wt=!1,lt=!1;St>3&&(/^public$/i.test(Xt[2][0])?(wt=Xt[3][0],lt=St>4&&Xt[4][0]):/^system$/i.test(Xt[2][0])&&(lt=Xt[3][0]));var Kt=Xt[St-1];return Ue.startDTD(nt,wt,lt),Ue.endDTD(),Kt.index+Kt[0].length}}return-1}function st(Te,Me,Ue){var Pe=Te.indexOf("?>",Me);if(Pe){var Xe=Te.substring(Me,Pe).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(Xe){var Be=Xe[0].length;return Ue.processingInstruction(Xe[1],Xe[2]),Pe+2}else return-1}return-1}function Ae(){this.attributeNames={}}Ae.prototype={setTagName:function(Te){if(!b.test(Te))throw new Error("invalid tagName:"+Te);this.tagName=Te},addValue:function(Te,Me,Ue){if(!b.test(Te))throw new Error("invalid attribute:"+Te);this.attributeNames[Te]=this.length,this[this.length++]={qName:Te,value:Me,offset:Ue}},length:0,getLocalName:function(Te){return this[Te].localName},getLocator:function(Te){return this[Te].locator},getQName:function(Te){return this[Te].qName},getURI:function(Te){return this[Te].uri},getValue:function(Te){return this[Te].value}};function De(Te,Me){var Ue,Pe=[],Xe=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(Xe.lastIndex=Me,Xe.exec(Te);Ue=Xe.exec(Te);)if(Pe.push(Ue),Ue[1])return Pe}Y.XMLReader=he,Y.ParseError=K},2093:function(yt,Y,y){"use strict";var v=y(97582),P=y(67294),w=y(92770);function b(V){return(0,w.mf)(V[Symbol.asyncIterator])}function B(V,k){(0,P.useEffect)(function(){var R=V(),C=!1;function g(){return(0,v.mG)(this,void 0,void 0,function(){var A;return(0,v.Jh)(this,function(O){switch(O.label){case 0:if(!b(R))return[3,4];O.label=1;case 1:return[4,R.next()];case 2:return A=O.sent(),A.done||C?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,R];case 5:O.sent(),O.label=6;case 6:return[2]}})})}return g(),function(){C=!0}},k)}Y.Z=B},58580:function(yt,Y,y){"use strict";var v=y(97582),P=y(67294),w=y(85980);function b(B,V){var k=(0,v.CR)((0,P.useState)(B),2),R=k[0],C=k[1],g=(0,w.Z)(function(){C(B)},V).run;return(0,P.useEffect)(function(){g()},[B]),R}Y.Z=b},85980:function(yt,Y,y){"use strict";var v=y(97582),P=y(23279),w=y.n(P),b=y(67294),B=y(3930),V=y(45210),k=y(92770),R=y(31663);function C(g,A){var O;R.Z&&((0,k.mf)(g)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof g)));var K=(0,B.Z)(g),he=(O=A==null?void 0:A.wait)!==null&&O!==void 0?O:1e3,ae=(0,b.useMemo)(function(){return w()(function(){for(var fe=[],xe=0;xe{const{type:R,children:C,prefixCls:g,buttonProps:A,close:O,autoFocus:K,emitEvent:he,isSilent:ae,quitOnNullishReturnValue:fe,actionFn:xe}=k,ye=P.useRef(!1),be=P.useRef(null),[Qe,Ve]=(0,v.Z)(!1),pt=function(){O==null||O.apply(void 0,arguments)};P.useEffect(()=>{let De=null;return K&&(De=setTimeout(()=>{var Te;(Te=be.current)===null||Te===void 0||Te.focus()})),()=>{De&&clearTimeout(De)}},[]);const st=De=>{B(De)&&(Ve(!0),De.then(function(){Ve(!1,!0),pt.apply(void 0,arguments),ye.current=!1},Te=>{if(Ve(!1,!0),ye.current=!1,!(ae!=null&&ae()))return Promise.reject(Te)}))},Ae=De=>{if(ye.current)return;if(ye.current=!0,!xe){pt();return}let Te;if(he){if(Te=xe(De),fe&&!B(Te)){ye.current=!1,pt(De);return}}else if(xe.length)Te=xe(O),ye.current=!1;else if(Te=xe(),!Te){pt();return}st(Te)};return P.createElement(w.ZP,Object.assign({},(0,b.nx)(R),{onClick:Ae,loading:Qe,prefixCls:g},A,{ref:be}),C)};Y.Z=V},8745:function(yt,Y,y){"use strict";y.d(Y,{i:function(){return B}});var v=y(67294),P=y(21770),w=y(28459),b=y(53124);function B(k){return R=>v.createElement(w.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},v.createElement(k,Object.assign({},R)))}const V=(k,R,C,g)=>B(O=>{const{prefixCls:K,style:he}=O,ae=v.useRef(null),[fe,xe]=v.useState(0),[ye,be]=v.useState(0),[Qe,Ve]=(0,P.Z)(!1,{value:O.open}),{getPrefixCls:pt}=v.useContext(b.E_),st=pt(R||"select",K);v.useEffect(()=>{if(Ve(!0),typeof ResizeObserver!="undefined"){const Te=new ResizeObserver(Ue=>{const Pe=Ue[0].target;xe(Pe.offsetHeight+8),be(Pe.offsetWidth)}),Me=setInterval(()=>{var Ue;const Pe=C?`.${C(st)}`:`.${st}-dropdown`,Xe=(Ue=ae.current)===null||Ue===void 0?void 0:Ue.querySelector(Pe);Xe&&(clearInterval(Me),Te.observe(Xe))},10);return()=>{clearInterval(Me),Te.disconnect()}}},[]);let Ae=Object.assign(Object.assign({},O),{style:Object.assign(Object.assign({},he),{margin:0}),open:Qe,visible:Qe,getPopupContainer:()=>ae.current});g&&(Ae=g(Ae));const De={paddingBottom:fe,position:"relative",minWidth:ye};return v.createElement("div",{ref:ae,style:De},v.createElement(k,Object.assign({},Ae)))});Y.Z=V},81643:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return v}});const v=P=>P?typeof P=="function"?P():P:null},69760:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return b}});var v=y(62208),P=y(67294);function w(B,V,k){return typeof B=="boolean"?B:V===void 0?!!k:V!==!1&&V!==null}function b(B,V,k){let R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:P.createElement(v.Z,null),C=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!w(B,V,C))return[!1,null];const A=typeof V=="boolean"||V===void 0||V===null?R:V;return[!0,k?k(A):A]}},57838:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return P}});var v=y(67294);function P(){const[,w]=v.useReducer(b=>b+1,0);return w}},87263:function(yt,Y,y){"use strict";y.d(Y,{Cn:function(){return g},u6:function(){return V}});var v=y(67294),P=y(25976),w=y(43945);const b=100,V=b*10,k={Modal:b,Drawer:b,Popover:b,Popconfirm:b,Tooltip:b,Tour:b},R={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function C(A){return A in k}function g(A,O){const[,K]=(0,P.ZP)(),he=v.useContext(w.Z),ae=C(A);if(O!==void 0)return[O,O];let fe=he!=null?he:0;return ae?(fe+=(he?0:K.zIndexPopupBase)+k[A],fe=Math.min(fe,K.zIndexPopupBase+V)):fe+=R[A],[he===void 0?O:fe,fe]}},33603:function(yt,Y,y){"use strict";y.d(Y,{m:function(){return k}});const v=()=>({height:0,opacity:0}),P=R=>{const{scrollHeight:C}=R;return{height:C,opacity:1}},w=R=>({height:R?R.offsetHeight:0}),b=(R,C)=>(C==null?void 0:C.deadline)===!0||C.propertyName==="height",B=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:v,onEnterStart:v,onAppearActive:P,onEnterActive:P,onLeaveStart:w,onLeaveActive:v,onAppearEnd:b,onEnterEnd:b,onLeaveEnd:b,motionDeadline:500}},V=null,k=(R,C,g)=>g!==void 0?g:`${R}-${C}`;Y.Z=B},80636:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return V}});var v=y(97414);function P(k,R,C,g){if(g===!1)return{adjustX:!1,adjustY:!1};const A=g&&typeof g=="object"?g:{},O={};switch(k){case"top":case"bottom":O.shiftX=R.arrowOffsetHorizontal*2+C,O.shiftY=!0,O.adjustY=!0;break;case"left":case"right":O.shiftY=R.arrowOffsetVertical*2+C,O.shiftX=!0,O.adjustX=!0;break}const K=Object.assign(Object.assign({},O),A);return K.shiftX||(K.adjustX=!0),K.shiftY||(K.adjustY=!0),K}const w={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},b={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},B=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function V(k){const{arrowWidth:R,autoAdjustOverflow:C,arrowPointAtCenter:g,offset:A,borderRadius:O,visibleFirst:K}=k,he=R/2,ae={};return Object.keys(w).forEach(fe=>{const xe=g&&b[fe]||w[fe],ye=Object.assign(Object.assign({},xe),{offset:[0,0],dynamicInset:!0});switch(ae[fe]=ye,B.has(fe)&&(ye.autoArrow=!1),fe){case"top":case"topLeft":case"topRight":ye.offset[1]=-he-A;break;case"bottom":case"bottomLeft":case"bottomRight":ye.offset[1]=he+A;break;case"left":case"leftTop":case"leftBottom":ye.offset[0]=-he-A;break;case"right":case"rightTop":case"rightBottom":ye.offset[0]=he+A;break}const be=(0,v.wZ)({contentRadius:O,limitVerticalRadius:!0});if(g)switch(fe){case"topLeft":case"bottomLeft":ye.offset[0]=-be.arrowOffsetHorizontal-he;break;case"topRight":case"bottomRight":ye.offset[0]=be.arrowOffsetHorizontal+he;break;case"leftTop":case"rightTop":ye.offset[1]=-be.arrowOffsetHorizontal-he;break;case"leftBottom":case"rightBottom":ye.offset[1]=be.arrowOffsetHorizontal+he;break}ye.overflow=P(fe,be,R,C),K&&(ye.htmlRegion="visibleFirst")}),ae}},96159:function(yt,Y,y){"use strict";var v;y.d(Y,{M2:function(){return b},Tm:function(){return V},l$:function(){return w}});var P=y(67294);const{isValidElement:w}=v||(v=y.t(P,2));function b(k){return k&&w(k)&&k.type===P.Fragment}function B(k,R,C){return w(k)?P.cloneElement(k,typeof C=="function"?C(k.props||{}):C):R}function V(k,R){return B(k,k,R)}},74443:function(yt,Y,y){"use strict";y.d(Y,{ZP:function(){return V},c4:function(){return w},m9:function(){return k}});var v=y(67294),P=y(25976);const w=["xxl","xl","lg","md","sm","xs"],b=R=>({xs:`(max-width: ${R.screenXSMax}px)`,sm:`(min-width: ${R.screenSM}px)`,md:`(min-width: ${R.screenMD}px)`,lg:`(min-width: ${R.screenLG}px)`,xl:`(min-width: ${R.screenXL}px)`,xxl:`(min-width: ${R.screenXXL}px)`}),B=R=>{const C=R,g=[].concat(w).reverse();return g.forEach((A,O)=>{const K=A.toUpperCase(),he=`screen${K}Min`,ae=`screen${K}`;if(!(C[he]<=C[ae]))throw new Error(`${he}<=${ae} fails : !(${C[he]}<=${C[ae]})`);if(O{const g=new Map;let A=-1,O={};return{matchHandlers:{},dispatch(K){return O=K,g.forEach(he=>he(O)),g.size>=1},subscribe(K){return g.size||this.register(),A+=1,g.set(A,K),K(O),A},unsubscribe(K){g.delete(K),g.size||this.unregister()},unregister(){Object.keys(C).forEach(K=>{const he=C[K],ae=this.matchHandlers[he];ae==null||ae.mql.removeListener(ae==null?void 0:ae.listener)}),g.clear()},register(){Object.keys(C).forEach(K=>{const he=C[K],ae=xe=>{let{matches:ye}=xe;this.dispatch(Object.assign(Object.assign({},O),{[K]:ye}))},fe=window.matchMedia(he);fe.addListener(ae),this.matchHandlers[he]={mql:fe,listener:ae},ae(fe)})},responsiveMap:C}},[R])}const k=(R,C)=>{if(C&&typeof C=="object")for(let g=0;gk||V},27288:function(yt,Y,y){"use strict";y.d(Y,{G8:function(){return k},ln:function(){return R}});var v=y(67294),P=y(80334);function w(){}let b=null;function B(){b=null,rcResetWarned()}let V=null;const k=v.createContext({}),R=()=>{const g=()=>{};return g.deprecated=w,g};var C=null},45353:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return Te}});var v=y(94184),P=y.n(v),w=y(42550),b=y(5110),B=y(67294),V=y(53124),k=y(96159),R=y(91945);const C=Me=>{const{componentCls:Ue,colorPrimary:Pe}=Me;return{[Ue]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${Pe})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${Me.motionEaseOutCirc}`,`opacity 2s ${Me.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${Me.motionEaseInOut}`,`opacity 0.35s ${Me.motionEaseInOut}`].join(",")}}}}};var g=(0,R.ZP)("Wave",Me=>[C(Me)]),A=y(56790),O=y(75164),K=y(82225),he=y(38135);function ae(Me){const Ue=(Me||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return Ue&&Ue[1]&&Ue[2]&&Ue[3]?!(Ue[1]===Ue[2]&&Ue[2]===Ue[3]):!0}function fe(Me){return Me&&Me!=="#fff"&&Me!=="#ffffff"&&Me!=="rgb(255, 255, 255)"&&Me!=="rgba(255, 255, 255, 1)"&&ae(Me)&&!/rgba\((?:\d*, ){3}0\)/.test(Me)&&Me!=="transparent"}function xe(Me){const{borderTopColor:Ue,borderColor:Pe,backgroundColor:Xe}=getComputedStyle(Me);return fe(Ue)?Ue:fe(Pe)?Pe:fe(Xe)?Xe:null}var ye=y(17415);function be(Me){return Number.isNaN(Me)?0:Me}const Qe=Me=>{const{className:Ue,target:Pe,component:Xe}=Me,Be=B.useRef(null),[Xt,St]=B.useState(null),[nt,wt]=B.useState([]),[lt,Kt]=B.useState(0),[Mt,hn]=B.useState(0),[un,Sr]=B.useState(0),[ii,Ii]=B.useState(0),[Ni,eo]=B.useState(!1),ti={left:lt,top:Mt,width:un,height:ii,borderRadius:nt.map(Se=>`${Se}px`).join(" ")};Xt&&(ti["--wave-color"]=Xt);function Is(){const Se=getComputedStyle(Pe);St(xe(Pe));const Xi=Se.position==="static",{borderLeftWidth:Yi,borderTopWidth:fo}=Se;Kt(Xi?Pe.offsetLeft:be(-parseFloat(Yi))),hn(Xi?Pe.offsetTop:be(-parseFloat(fo))),Sr(Pe.offsetWidth),Ii(Pe.offsetHeight);const{borderTopLeftRadius:di,borderTopRightRadius:Fs,borderBottomLeftRadius:Ln,borderBottomRightRadius:it}=Se;wt([di,Fs,it,Ln].map(Ot=>be(parseFloat(Ot))))}if(B.useEffect(()=>{if(Pe){const Se=(0,O.Z)(()=>{Is(),eo(!0)});let Xi;return typeof ResizeObserver!="undefined"&&(Xi=new ResizeObserver(Is),Xi.observe(Pe)),()=>{O.Z.cancel(Se),Xi==null||Xi.disconnect()}}},[]),!Ni)return null;const Ns=(Xe==="Checkbox"||Xe==="Radio")&&(Pe==null?void 0:Pe.classList.contains(ye.A));return B.createElement(K.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(Se,Xi)=>{var Yi;if(Xi.deadline||Xi.propertyName==="opacity"){const fo=(Yi=Be.current)===null||Yi===void 0?void 0:Yi.parentElement;(0,he.v)(fo).then(()=>{fo==null||fo.remove()})}return!1}},Se=>{let{className:Xi}=Se;return B.createElement("div",{ref:Be,className:P()(Ue,{"wave-quick":Ns},Xi),style:ti})})};var pt=(Me,Ue)=>{var Pe;const{component:Xe}=Ue;if(Xe==="Checkbox"&&!(!((Pe=Me.querySelector("input"))===null||Pe===void 0)&&Pe.checked))return;const Be=document.createElement("div");Be.style.position="absolute",Be.style.left="0px",Be.style.top="0px",Me==null||Me.insertBefore(Be,Me==null?void 0:Me.firstChild),(0,he.s)(B.createElement(Qe,Object.assign({},Ue,{target:Me})),Be)},st=y(25976);function Ae(Me,Ue,Pe){const{wave:Xe}=B.useContext(V.E_),[,Be,Xt]=(0,st.ZP)(),St=(0,A.zX)(lt=>{const Kt=Me.current;if(Xe!=null&&Xe.disabled||!Kt)return;const Mt=Kt.querySelector(`.${ye.A}`)||Kt,{showEffect:hn}=Xe||{};(hn||pt)(Mt,{className:Ue,token:Be,component:Pe,event:lt,hashId:Xt})}),nt=B.useRef();return lt=>{O.Z.cancel(nt.current),nt.current=(0,O.Z)(()=>{St(lt)})}}var Te=Me=>{const{children:Ue,disabled:Pe,component:Xe}=Me,{getPrefixCls:Be}=(0,B.useContext)(V.E_),Xt=(0,B.useRef)(null),St=Be("wave"),[,nt]=g(St),wt=Ae(Xt,P()(St,nt),Xe);if(B.useEffect(()=>{const Kt=Xt.current;if(!Kt||Kt.nodeType!==1||Pe)return;const Mt=hn=>{!(0,b.Z)(hn.target)||!Kt.getAttribute||Kt.getAttribute("disabled")||Kt.disabled||Kt.className.includes("disabled")||Kt.className.includes("-leave")||wt(hn)};return Kt.addEventListener("click",Mt,!0),()=>{Kt.removeEventListener("click",Mt,!0)}},[Pe]),!B.isValidElement(Ue))return Ue!=null?Ue:null;const lt=(0,w.Yr)(Ue)?(0,w.sQ)(Ue.ref,Xt):Xt;return(0,k.Tm)(Ue,{ref:lt})}},17415:function(yt,Y,y){"use strict";y.d(Y,{A:function(){return v}});const v="ant-wave-target"},43945:function(yt,Y,y){"use strict";var v=y(67294);const P=v.createContext(void 0);Y.Z=P},33671:function(yt,Y,y){"use strict";y.d(Y,{Te:function(){return k},aG:function(){return b},hU:function(){return C},nx:function(){return B}});var v=y(67294),P=y(96159);const w=/^[\u4e00-\u9fa5]{2}$/,b=w.test.bind(w);function B(K){return K==="danger"?{danger:!0}:{type:K}}function V(K){return typeof K=="string"}function k(K){return K==="text"||K==="link"}function R(K,he){if(K==null)return;const ae=he?" ":"";return typeof K!="string"&&typeof K!="number"&&V(K.type)&&b(K.props.children)?(0,P.Tm)(K,{children:K.props.children.split("").join(ae)}):V(K)?b(K)?v.createElement("span",null,K.split("").join(ae)):v.createElement("span",null,K):(0,P.M2)(K)?v.createElement("span",null,K):K}function C(K,he){let ae=!1;const fe=[];return v.Children.forEach(K,xe=>{const ye=typeof xe,be=ye==="string"||ye==="number";if(ae&&be){const Qe=fe.length-1,Ve=fe[Qe];fe[Qe]=`${Ve}${xe}`}else fe.push(xe);ae=be}),v.Children.map(fe,xe=>R(xe,he))}const g=null,A=null,O=null},15867:function(yt,Y,y){"use strict";y.d(Y,{ZP:function(){return pr}});var v=y(67294),P=y(94184),w=y.n(P),b=y(98423),B=y(42550),V=y(45353),k=y(53124),R=y(98866),C=y(98675),g=y(4173),A=y(25976),O=function(an,wr){var Cr={};for(var Ei in an)Object.prototype.hasOwnProperty.call(an,Ei)&&wr.indexOf(Ei)<0&&(Cr[Ei]=an[Ei]);if(an!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vo=0,Ei=Object.getOwnPropertySymbols(an);vo{const{getPrefixCls:wr,direction:Cr}=v.useContext(k.E_),{prefixCls:Ei,size:vo,className:kr}=an,ro=O(an,["prefixCls","size","className"]),qi=wr("btn-group",Ei),[,,bo]=(0,A.ZP)();let xn="";switch(vo){case"large":xn="lg";break;case"small":xn="sm";break;case"middle":default:}const pn=w()(qi,{[`${qi}-${xn}`]:xn,[`${qi}-rtl`]:Cr==="rtl"},kr,bo);return v.createElement(K.Provider,{value:vo},v.createElement("div",Object.assign({},ro,{className:pn})))},fe=y(33671),ye=(0,v.forwardRef)((an,wr)=>{const{className:Cr,style:Ei,children:vo,prefixCls:kr}=an,ro=w()(`${kr}-icon`,Cr);return v.createElement("span",{ref:wr,className:ro,style:Ei},vo)}),be=y(22508),Qe=y(82225);const Ve=(0,v.forwardRef)((an,wr)=>{let{prefixCls:Cr,className:Ei,style:vo,iconClassName:kr}=an;const ro=w()(`${Cr}-loading-icon`,Ei);return v.createElement(ye,{prefixCls:Cr,className:ro,style:vo,ref:wr},v.createElement(be.Z,{className:kr}))}),pt=()=>({width:0,opacity:0,transform:"scale(0)"}),st=an=>({width:an.scrollWidth,opacity:1,transform:"scale(1)"});var De=an=>{const{prefixCls:wr,loading:Cr,existIcon:Ei,className:vo,style:kr}=an,ro=!!Cr;return Ei?v.createElement(Ve,{prefixCls:wr,className:vo,style:kr}):v.createElement(Qe.ZP,{visible:ro,motionName:`${wr}-loading-icon-motion`,motionLeave:ro,removeOnLeave:!0,onAppearStart:pt,onAppearActive:st,onEnterStart:pt,onEnterActive:st,onLeaveStart:st,onLeaveActive:pt},(qi,bo)=>{let{className:xn,style:pn}=qi;return v.createElement(Ve,{prefixCls:wr,className:vo,style:Object.assign(Object.assign({},kr),pn),ref:bo,iconClassName:xn})})},Te=y(43109),Me=y(14747),Ue=y(45503),Pe=y(91945);const Xe=(an,wr)=>({[`> span, > ${an}`]:{"&:not(:last-child)":{[`&, & > ${an}`]:{"&:not(:disabled)":{borderInlineEndColor:wr}}},"&:not(:first-child)":{[`&, & > ${an}`]:{"&:not(:disabled)":{borderInlineStartColor:wr}}}}});var Xt=an=>{const{componentCls:wr,fontSize:Cr,lineWidth:Ei,groupBorderColor:vo,colorErrorHover:kr}=an;return{[`${wr}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${wr}`]:{"&:not(:last-child)":{[`&, & > ${wr}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:an.calc(Ei).mul(-1).equal(),[`&, & > ${wr}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[wr]:{position:"relative",zIndex:1,[`&:hover, &:focus, - &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${wr}-icon-only`]:{fontSize:Sr}},Xe(`${wr}-primary`,mo),Xe(`${wr}-danger`,Fr)]}};const St=pn=>{const{componentCls:wr,iconCls:Sr,fontWeight:Ai}=pn;return{[wr]:{outline:"none",position:"relative",display:"inline-block",fontWeight:Ai,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,Ae.bf)(pn.lineWidth)} ${pn.lineType} transparent`,cursor:"pointer",transition:`all ${pn.motionDurationMid} ${pn.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:pn.lineHeight,color:pn.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${wr}-icon`]:{lineHeight:0},[`> ${Sr} + span, > span + ${Sr}`]:{marginInlineStart:pn.marginXS},[`&:not(${wr}-icon-only) > ${wr}-icon`]:{[`&${wr}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:pn.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,Re.Qy)(pn)),[`&${wr}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${wr}-two-chinese-chars > *:not(${Sr})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${wr}-compact-item`]:{flex:"none"}}}},nt=(pn,wr,Sr)=>({[`&:not(:disabled):not(${pn}-disabled)`]:{"&:hover":wr,"&:active":Sr}}),Ct=pn=>({minWidth:pn.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),lt=pn=>({borderRadius:pn.controlHeight,paddingInlineStart:pn.calc(pn.controlHeight).div(2).equal(),paddingInlineEnd:pn.calc(pn.controlHeight).div(2).equal()}),Gt=pn=>({cursor:"not-allowed",borderColor:pn.borderColorDisabled,color:pn.colorTextDisabled,background:pn.colorBgContainerDisabled,boxShadow:"none"}),Rt=(pn,wr,Sr,Ai,mo,Fr,to,Ji)=>({[`&${pn}-background-ghost`]:Object.assign(Object.assign({color:Sr||void 0,background:wr,borderColor:Ai||void 0,boxShadow:"none"},nt(pn,Object.assign({background:wr},to),Object.assign({background:wr},Ji))),{"&:disabled":{cursor:"not-allowed",color:mo||void 0,borderColor:Fr||void 0}})}),an=pn=>({[`&:disabled, &${pn.componentCls}-disabled`]:Object.assign({},Gt(pn))}),cn=pn=>Object.assign({},an(pn)),Cr=pn=>({[`&:disabled, &${pn.componentCls}-disabled`]:{cursor:"not-allowed",color:pn.colorTextDisabled}}),ii=pn=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cn(pn)),{background:pn.defaultBg,borderColor:pn.defaultBorderColor,color:pn.defaultColor,boxShadow:pn.defaultShadow}),nt(pn.componentCls,{color:pn.colorPrimaryHover,borderColor:pn.colorPrimaryHover},{color:pn.colorPrimaryActive,borderColor:pn.colorPrimaryActive})),Rt(pn.componentCls,pn.ghostBg,pn.defaultGhostColor,pn.defaultGhostBorderColor,pn.colorTextDisabled,pn.colorBorder)),{[`&${pn.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:pn.colorError,borderColor:pn.colorError},nt(pn.componentCls,{color:pn.colorErrorHover,borderColor:pn.colorErrorBorderHover},{color:pn.colorErrorActive,borderColor:pn.colorErrorActive})),Rt(pn.componentCls,pn.ghostBg,pn.colorError,pn.colorError,pn.colorTextDisabled,pn.colorBorder)),an(pn))}),Pi=pn=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cn(pn)),{color:pn.primaryColor,background:pn.colorPrimary,boxShadow:pn.primaryShadow}),nt(pn.componentCls,{color:pn.colorTextLightSolid,background:pn.colorPrimaryHover},{color:pn.colorTextLightSolid,background:pn.colorPrimaryActive})),Rt(pn.componentCls,pn.ghostBg,pn.colorPrimary,pn.colorPrimary,pn.colorTextDisabled,pn.colorBorder,{color:pn.colorPrimaryHover,borderColor:pn.colorPrimaryHover},{color:pn.colorPrimaryActive,borderColor:pn.colorPrimaryActive})),{[`&${pn.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:pn.colorError,boxShadow:pn.dangerShadow,color:pn.dangerColor},nt(pn.componentCls,{background:pn.colorErrorHover},{background:pn.colorErrorActive})),Rt(pn.componentCls,pn.ghostBg,pn.colorError,pn.colorError,pn.colorTextDisabled,pn.colorBorder,{color:pn.colorErrorHover,borderColor:pn.colorErrorHover},{color:pn.colorErrorActive,borderColor:pn.colorErrorActive})),an(pn))}),Ni=pn=>Object.assign(Object.assign({},ii(pn)),{borderStyle:"dashed"}),Yi=pn=>Object.assign(Object.assign(Object.assign({color:pn.colorLink},nt(pn.componentCls,{color:pn.colorLinkHover,background:pn.linkHoverBg},{color:pn.colorLinkActive})),Cr(pn)),{[`&${pn.componentCls}-dangerous`]:Object.assign(Object.assign({color:pn.colorError},nt(pn.componentCls,{color:pn.colorErrorHover},{color:pn.colorErrorActive})),Cr(pn))}),ti=pn=>Object.assign(Object.assign(Object.assign({},nt(pn.componentCls,{color:pn.colorText,background:pn.textHoverBg},{color:pn.colorText,background:pn.colorBgTextActive})),Cr(pn)),{[`&${pn.componentCls}-dangerous`]:Object.assign(Object.assign({color:pn.colorError},Cr(pn)),nt(pn.componentCls,{color:pn.colorErrorHover,background:pn.colorErrorBg},{color:pn.colorErrorHover,background:pn.colorErrorBg}))}),Ts=pn=>{const{componentCls:wr}=pn;return{[`${wr}-default`]:ii(pn),[`${wr}-primary`]:Pi(pn),[`${wr}-dashed`]:Ni(pn),[`${wr}-link`]:Yi(pn),[`${wr}-text`]:ti(pn),[`${wr}-ghost`]:Rt(pn.componentCls,pn.ghostBg,pn.colorBgContainer,pn.colorBgContainer,pn.colorTextDisabled,pn.colorBorder)}},Bs=function(pn){let wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:Sr,controlHeight:Ai,fontSize:mo,borderRadius:Fr,buttonPaddingHorizontal:to,iconCls:Ji,buttonPaddingVertical:bo}=pn,xn=`${Sr}-icon-only`;return[{[`${Sr}${wr}`]:{fontSize:mo,height:Ai,padding:`${(0,Ae.bf)(bo)} ${(0,Ae.bf)(to)}`,borderRadius:Fr,[`&${xn}`]:{width:Ai,paddingInlineStart:0,paddingInlineEnd:0,[`&${Sr}-round`]:{width:"auto"},[Ji]:{fontSize:pn.buttonIconOnlyFontSize}},[`&${Sr}-loading`]:{opacity:pn.opacityLoading,cursor:"default"},[`${Sr}-loading-icon`]:{transition:`width ${pn.motionDurationSlow} ${pn.motionEaseInOut}, opacity ${pn.motionDurationSlow} ${pn.motionEaseInOut}`}}},{[`${Sr}${Sr}-circle${wr}`]:Ct(pn)},{[`${Sr}${Sr}-round${wr}`]:lt(pn)}]},Ce=pn=>Bs((0,$e.TS)(pn,{fontSize:pn.contentFontSize})),Gi=pn=>{const wr=(0,$e.TS)(pn,{controlHeight:pn.controlHeightSM,fontSize:pn.contentFontSizeSM,padding:pn.paddingXS,buttonPaddingHorizontal:pn.paddingInlineSM,buttonPaddingVertical:pn.paddingBlockSM,borderRadius:pn.borderRadiusSM,buttonIconOnlyFontSize:pn.onlyIconSizeSM});return Bs(wr,`${pn.componentCls}-sm`)},qi=pn=>{const wr=(0,$e.TS)(pn,{controlHeight:pn.controlHeightLG,fontSize:pn.contentFontSizeLG,buttonPaddingHorizontal:pn.paddingInlineLG,buttonPaddingVertical:pn.paddingBlockLG,borderRadius:pn.borderRadiusLG,buttonIconOnlyFontSize:pn.onlyIconSizeLG});return Bs(wr,`${pn.componentCls}-lg`)},co=pn=>{const{componentCls:wr}=pn;return{[wr]:{[`&${wr}-block`]:{width:"100%"}}}},fi=pn=>{const{paddingInline:wr,onlyIconSize:Sr,paddingBlock:Ai}=pn;return(0,$e.TS)(pn,{buttonPaddingHorizontal:wr,buttonPaddingVertical:Ai,buttonIconOnlyFontSize:Sr})},Ms=pn=>{const wr=pn.fontSize,Sr=pn.fontSize,Ai=pn.fontSizeLG;return{fontWeight:400,defaultShadow:`0 ${pn.controlOutlineWidth}px 0 ${pn.controlTmpOutline}`,primaryShadow:`0 ${pn.controlOutlineWidth}px 0 ${pn.controlOutline}`,dangerShadow:`0 ${pn.controlOutlineWidth}px 0 ${pn.colorErrorOutline}`,primaryColor:pn.colorTextLightSolid,dangerColor:pn.colorTextLightSolid,borderColorDisabled:pn.colorBorder,defaultGhostColor:pn.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:pn.colorBgContainer,paddingInline:pn.paddingContentHorizontal-pn.lineWidth,paddingInlineLG:pn.paddingContentHorizontal-pn.lineWidth,paddingInlineSM:8-pn.lineWidth,paddingBlock:Math.max((pn.controlHeight-wr*pn.lineHeight)/2-pn.lineWidth,0),paddingBlockSM:Math.max((pn.controlHeightSM-Sr*pn.lineHeight)/2-pn.lineWidth,0),paddingBlockLG:Math.max((pn.controlHeightLG-Ai*pn.lineHeight)/2-pn.lineWidth,0),onlyIconSize:pn.fontSizeLG,onlyIconSizeSM:pn.fontSizeLG-2,onlyIconSizeLG:pn.fontSizeLG+2,groupBorderColor:pn.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:pn.colorBgTextHover,defaultColor:pn.colorText,defaultBg:pn.colorBgContainer,defaultBorderColor:pn.colorBorder,defaultBorderColorDisabled:pn.colorBorder,contentFontSize:wr,contentFontSizeSM:Sr,contentFontSizeLG:Ai}};var In=(0,Ie.I$)("Button",pn=>{const wr=fi(pn);return[St(wr),Gi(wr),Ce(wr),qi(wr),co(wr),Ts(wr),Kt(wr)]},Ms,{unitless:{fontWeight:!0}}),et=_(62290);function Dt(pn,wr){return{[`&-item:not(${wr}-last-item)`]:{marginBottom:pn.calc(pn.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function $t(pn,wr){return{[`&-item:not(${wr}-first-item):not(${wr}-last-item)`]:{borderRadius:0},[`&-item${wr}-first-item:not(${wr}-last-item)`]:{[`&, &${pn}-sm, &${pn}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${wr}-last-item:not(${wr}-first-item)`]:{[`&, &${pn}-sm, &${pn}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Dn(pn){const wr=`${pn.componentCls}-compact-vertical`;return{[wr]:Object.assign(Object.assign({},Dt(pn,wr)),$t(pn.componentCls,wr))}}const gr=pn=>{const{componentCls:wr,calc:Sr}=pn;return{[wr]:{[`&-compact-item${wr}-primary`]:{[`&:not([disabled]) + ${wr}-compact-item${wr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:Sr(pn.lineWidth).mul(-1).equal(),insetInlineStart:Sr(pn.lineWidth).mul(-1).equal(),display:"inline-block",width:pn.lineWidth,height:`calc(100% + ${(0,Ae.bf)(pn.lineWidth)} * 2)`,backgroundColor:pn.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${wr}-primary`]:{[`&:not([disabled]) + ${wr}-compact-vertical-item${wr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:Sr(pn.lineWidth).mul(-1).equal(),insetInlineStart:Sr(pn.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${(0,Ae.bf)(pn.lineWidth)} * 2)`,height:pn.lineWidth,backgroundColor:pn.colorPrimaryHover,content:'""'}}}}}}};var kn=(0,Ie.bk)(["Button","compact"],pn=>{const wr=fi(pn);return[(0,et.c)(wr),Dn(wr),gr(wr)]},Ms),bn=function(pn,wr){var Sr={};for(var Ai in pn)Object.prototype.hasOwnProperty.call(pn,Ai)&&wr.indexOf(Ai)<0&&(Sr[Ai]=pn[Ai]);if(pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mo=0,Ai=Object.getOwnPropertySymbols(pn);mo{var Sr,Ai;const{loading:mo=!1,prefixCls:Fr,type:to="default",danger:Ji,shape:bo="default",size:xn,styles:fn,disabled:It,className:Zt,rootClassName:gn,children:$n,icon:Ar,ghost:Dr=!1,block:dr=!1,htmlType:Xt="button",classNames:Cn,style:er={}}=pn,Mr=bn(pn,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:ji,autoInsertSpaceInButton:An,direction:Xn,button:nr}=(0,v.useContext)(k.E_),qr=ji("btn",Fr),[vi,Hr]=In(qr),di=(0,v.useContext)(M.Z),gi=It!=null?It:di,mi=(0,v.useContext)(K),Bi=(0,v.useMemo)(()=>zt(mo),[mo]),[zr,Xr]=(0,v.useState)(Bi.loading),[Qi,rs]=(0,v.useState)(!1),Ur=(0,v.createRef)(),gs=(0,B.sQ)(wr,Ur),Kr=v.Children.count($n)===1&&!Ar&&!(0,ve.Te)(to);(0,v.useEffect)(()=>{let hs=null;Bi.delay>0?hs=setTimeout(()=>{hs=null,Xr(!0)},Bi.delay):Xr(Bi.loading);function Wn(){hs&&(clearTimeout(hs),hs=null)}return Wn},[Bi]),(0,v.useEffect)(()=>{if(!gs||!gs.current||An===!1)return;const hs=gs.current.textContent;Kr&&(0,ve.aG)(hs)?Qi||rs(!0):Qi&&rs(!1)},[gs]);const ri=hs=>{const{onClick:Wn}=pn;if(zr||gi){hs.preventDefault();return}Wn==null||Wn(hs)},is=An!==!1,{compactSize:Jr,compactItemClassnames:_n}=(0,g.ri)(qr,Xn),Br={large:"lg",small:"sm",middle:void 0},es=(0,C.Z)(hs=>{var Wn,yo;return(yo=(Wn=xn!=null?xn:Jr)!==null&&Wn!==void 0?Wn:mi)!==null&&yo!==void 0?yo:hs}),ko=es&&Br[es]||"",vs=zr?"loading":Ar,Ba=(0,b.Z)(Mr,["navigate"]),uo=w()(qr,Hr,{[`${qr}-${bo}`]:bo!=="default"&&bo,[`${qr}-${to}`]:to,[`${qr}-${ko}`]:ko,[`${qr}-icon-only`]:!$n&&$n!==0&&!!vs,[`${qr}-background-ghost`]:Dr&&!(0,ve.Te)(to),[`${qr}-loading`]:zr,[`${qr}-two-chinese-chars`]:Qi&&is&&!zr,[`${qr}-block`]:dr,[`${qr}-dangerous`]:!!Ji,[`${qr}-rtl`]:Xn==="rtl"},_n,Zt,gn,nr==null?void 0:nr.className),ca=Object.assign(Object.assign({},nr==null?void 0:nr.style),er),ll=w()(Cn==null?void 0:Cn.icon,(Sr=nr==null?void 0:nr.classNames)===null||Sr===void 0?void 0:Sr.icon),Ti=Object.assign(Object.assign({},(fn==null?void 0:fn.icon)||{}),((Ai=nr==null?void 0:nr.styles)===null||Ai===void 0?void 0:Ai.icon)||{}),Li=Ar&&!zr?v.createElement(_e,{prefixCls:qr,className:ll,style:Ti},Ar):v.createElement(De,{existIcon:!!Ar,prefixCls:qr,loading:!!zr}),eo=$n||$n===0?(0,ve.hU)($n,Kr&&is):null;if(Ba.href!==void 0)return vi(v.createElement("a",Object.assign({},Ba,{className:w()(uo,{[`${qr}-disabled`]:gi}),href:gi?void 0:Ba.href,style:ca,onClick:ri,ref:gs,tabIndex:gi?-1:0}),Li,eo));let Eo=v.createElement("button",Object.assign({},Mr,{type:Xt,className:uo,style:ca,onClick:ri,disabled:gi,ref:gs}),Li,eo,_n&&v.createElement(kn,{key:"compact",prefixCls:qr}));return(0,ve.Te)(to)||(Eo=v.createElement(V.Z,{component:"Button",disabled:!!zr},Eo)),vi(Eo)},yn=(0,v.forwardRef)(Jt);yn.Group=de,yn.__ANT_BUTTON=!0;var fr=yn,vr=fr},54117:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return is}});var v=_(40877),R=_(77617),w=_(12124),b=_.n(w),B=_(61796),V=_(36439),k=_(61860),M=_(33649),C=_(98889),g=_(83692),A=_(60402),O=_(84381),K=R.createContext(null),ce=K,de=_(96522),ve=_(35005),Ee="__rc_cascader_search_mark__",_e=function(_n,Br,es){var ko=es.label;return Br.some(function(vs){return String(vs[ko]).toLowerCase().includes(_n.toLowerCase())})},we=function(_n,Br,es,ko){return Br.map(function(vs){return vs[ko.label]}).join(" / ")},ot=function(Jr,_n,Br,es,ko,vs){var Ba=ko.filter,uo=Ba===void 0?_e:Ba,ca=ko.render,ll=ca===void 0?we:ca,Ti=ko.limit,Li=Ti===void 0?50:Ti,eo=ko.sort;return R.useMemo(function(){var Eo=[];if(!Jr)return[];function hs(Wn,yo){var Qo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Wn.forEach(function(os){if(!(!eo&&Li!==!1&&Li>0&&Eo.length>=Li)){var Ko=[].concat((0,v.Z)(yo),[os]),Yn=os[Br.children],kr=Qo||os.disabled;if((!Yn||Yn.length===0||vs)&&uo(Jr,Ko,{label:Br.label})){var Gr;Eo.push((0,V.Z)((0,V.Z)({},os),{},(Gr={disabled:kr},(0,ve.Z)(Gr,Br.label,ll(Jr,Ko,es,Br)),(0,ve.Z)(Gr,Ee,Ko),(0,ve.Z)(Gr,Br.children,void 0),Gr)))}Yn&&hs(os[Br.children],Ko,kr)}})}return hs(_n,[]),eo&&Eo.sort(function(Wn,yo){return eo(Wn[Ee],yo[Ee],Jr,Br)}),Li!==!1&&Li>0?Eo.slice(0,Li):Eo},[Jr,_n,Br,es,ll,vs,uo,eo,Li])},He="__RC_CASCADER_SPLIT__",vt="SHOW_PARENT",dt="SHOW_CHILD";function Pe(Jr){return Jr.join(He)}function De(Jr){return Jr.map(Pe)}function Ae(Jr){return Jr.split(He)}function Re(Jr){var _n=Jr||{},Br=_n.label,es=_n.value,ko=_n.children,vs=es||"value";return{label:Br||"label",value:vs,key:vs,children:ko||"children"}}function $e(Jr,_n){var Br,es;return(Br=Jr.isLeaf)!==null&&Br!==void 0?Br:!((es=Jr[_n.children])!==null&&es!==void 0&&es.length)}function Ie(Jr){var _n=Jr.parentElement;if(_n){var Br=Jr.offsetTop-_n.offsetTop;Br-_n.scrollTop<0?_n.scrollTo({top:Br}):Br+Jr.offsetHeight-_n.scrollTop>_n.offsetHeight&&_n.scrollTo({top:Br+Jr.offsetHeight-_n.offsetHeight})}}function Xe(Jr,_n){return Jr.map(function(Br){var es;return(es=Br[Ee])===null||es===void 0?void 0:es.map(function(ko){return ko[_n.value]})})}function ze(Jr){return Array.isArray(Jr)&&Array.isArray(Jr[0])}function Kt(Jr){return Jr?ze(Jr)?Jr:(Jr.length===0?[]:[Jr]).map(function(_n){return Array.isArray(_n)?_n:[_n]}):[]}function St(Jr,_n,Br){var es=new Set(Jr),ko=_n();return Jr.filter(function(vs){var Ba=ko[vs],uo=Ba?Ba.parent:null,ca=Ba?Ba.children:null;return Ba&&Ba.node.disabled?!0:Br===dt?!(ca&&ca.some(function(ll){return ll.key&&es.has(ll.key)})):!(uo&&!uo.node.disabled&&es.has(uo.key))})}function nt(Jr,_n,Br){for(var es=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,ko=_n,vs=[],Ba=function(){var ll,Ti,Li,eo=Jr[uo],Eo=(ll=ko)===null||ll===void 0?void 0:ll.findIndex(function(Wn){var yo=Wn[Br.value];return es?String(yo)===String(eo):yo===eo}),hs=Eo!==-1?(Ti=ko)===null||Ti===void 0?void 0:Ti[Eo]:null;vs.push({value:(Li=hs==null?void 0:hs[Br.value])!==null&&Li!==void 0?Li:eo,index:Eo,option:hs}),ko=hs==null?void 0:hs[Br.children]},uo=0;uo1){var je=hs.slice(0,-1);os(je)}else ll(!1)},kr=function(){var je,ut=((je=yo[Wn])===null||je===void 0?void 0:je[Br.children])||[],ht=ut.find(function(ft){return!ft.disabled});if(ht){var Ue=[].concat((0,v.Z)(hs),[ht[Br.value]]);os(Ue)}};R.useImperativeHandle(Jr,function(){return{onKeyDown:function(je){var ut=je.which;switch(ut){case qi.Z.UP:case qi.Z.DOWN:{var ht=0;ut===qi.Z.UP?ht=-1:ut===qi.Z.DOWN&&(ht=1),ht!==0&&Ko(ht);break}case qi.Z.LEFT:{if(ca)break;Li?kr():Yn();break}case qi.Z.RIGHT:{if(ca)break;Li?Yn():kr();break}case qi.Z.BACKSPACE:{ca||Yn();break}case qi.Z.ENTER:{if(hs.length){var Ue=yo[Wn],ft=(Ue==null?void 0:Ue[Ee])||[];ft.length?vs(ft.map(function(Pt){return Pt[Br.value]}),ft[ft.length-1]):vs(hs,yo[Wn])}break}case qi.Z.ESC:ll(!1),Ti&&je.stopPropagation()}},onKeyUp:function(){}}})},fi=R.forwardRef(function(Jr,_n){var Br,es,ko,vs=Jr.prefixCls,Ba=Jr.multiple,uo=Jr.searchValue,ca=Jr.toggleOpen,ll=Jr.notFoundContent,Ti=Jr.direction,Li=Jr.open,eo=R.useRef(),Eo=Ti==="rtl",hs=R.useContext(ce),Wn=hs.options,yo=hs.values,Qo=hs.halfValues,os=hs.fieldNames,Ko=hs.changeOnSelect,Yn=hs.onSelect,kr=hs.searchOptions,Gr=hs.dropdownPrefixCls,je=hs.loadData,ut=hs.expandTrigger,ht=Gr||vs,Ue=R.useState([]),ft=(0,k.Z)(Ue,2),Pt=ft[0],ln=ft[1],sr=function(Mi){if(!(!je||uo)){var Yo=nt(Mi,Wn,os),Os=Yo.map(function(Xu){var gc=Xu.option;return gc}),Cs=Os[Os.length-1];if(Cs&&!$e(Cs,os)){var xa=Pe(Mi);ln(function(Xu){return[].concat((0,v.Z)(Xu),[xa])}),je(Os)}}};R.useEffect(function(){Pt.length&&Pt.forEach(function(Xo){var Mi=Ae(Xo),Yo=nt(Mi,Wn,os,!0).map(function(Cs){var xa=Cs.option;return xa}),Os=Yo[Yo.length-1];(!Os||Os[os.children]||$e(Os,os))&&ln(function(Cs){return Cs.filter(function(xa){return xa!==Xo})})})},[Wn,Pt,os]);var Zr=R.useMemo(function(){return new Set(De(yo))},[yo]),Ui=R.useMemo(function(){return new Set(De(Qo))},[Qo]),To=Gi(Ba,Li),Vi=(0,k.Z)(To,2),Us=Vi[0],Is=Vi[1],Rs=function(Mi){Is(Mi),sr(Mi)},Ns=function(Mi){var Yo=Mi.disabled,Os=$e(Mi,os);return!Yo&&(Os||Ko||Ba)},Lo=function(Mi,Yo){var Os=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Yn(Mi),!Ba&&(Yo||Ko&&(ut==="hover"||Os))&&ca(!1)},Ps=R.useMemo(function(){return uo?kr:Wn},[uo,kr,Wn]),ua=R.useMemo(function(){for(var Xo=[{options:Ps}],Mi=Ps,Yo=Xe(Mi,os),Os=function(){var Xu=Us[Cs],gc=Mi.find(function(Cd,ad){return(Yo[ad]?Pe(Yo[ad]):Cd[os.value])===Xu}),Zu=gc==null?void 0:gc[os.children];if(!(Zu!=null&&Zu.length))return 1;Mi=Zu,Xo.push({options:Zu})},Cs=0;Cs":Qo,Ko=Br.loadingIcon,Yn=Br.direction,kr=Br.notFoundContent,Gr=kr===void 0?"Not Found":kr,je=!!ca,ut=(0,Dt.C8)(ll,{value:Ti,postState:Kt}),ht=(0,k.Z)(ut,2),Ue=ht[0],ft=ht[1],Pt=R.useMemo(function(){return Re(Li)},[JSON.stringify(Li)]),ln=an(Pt,uo),sr=(0,k.Z)(ln,3),Zr=sr[0],Ui=sr[1],To=sr[2],Vi=lt(Zr,Pt),Us=Ni(je,Ue,Ui,To,Vi),Is=(0,k.Z)(Us,3),Rs=Is[0],Ns=Is[1],Lo=Is[2],Ps=(0,Dt.zX)(function(Hs){if(ft(Hs),Eo){var dl=Kt(Hs),Xo=dl.map(function(Os){return nt(Os,Zr,Pt).map(function(Cs){return Cs.option})}),Mi=je?dl:dl[0],Yo=je?Xo:Xo[0];Eo(Mi,Yo)}}),ua=Pi(je,Ps,Rs,Ns,Lo,Ui,To,hs),Ka=(0,Dt.zX)(function(Hs){ua(Hs)}),Hl=R.useMemo(function(){return{options:Zr,fieldNames:Pt,values:Rs,halfValues:Ns,changeOnSelect:eo,onSelect:Ka,checkable:ca,searchOptions:[],dropdownPrefixCls:null,loadData:Wn,expandTrigger:yo,expandIcon:os,loadingIcon:Ko,dropdownMenuColumnStyle:null}},[Zr,Pt,Rs,Ns,eo,Ka,ca,Wn,yo,os,Ko]),Gl="".concat(ko,"-panel"),fs=!Zr.length;return R.createElement(ce.Provider,{value:Hl},R.createElement("div",{className:b()(Gl,(_n={},(0,ve.Z)(_n,"".concat(Gl,"-rtl"),Yn==="rtl"),(0,ve.Z)(_n,"".concat(Gl,"-empty"),fs),_n),Ba),style:vs},fs?Gr:R.createElement(Ms,{prefixCls:ko,searchValue:null,multiple:je,toggleOpen:$t,open:!0,direction:Yn})))}function gr(Jr){var _n=Jr.onPopupVisibleChange,Br=Jr.popupVisible,es=Jr.popupClassName,ko=Jr.popupPlacement;warning(!_n,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Br===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(es===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(ko===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function kn(Jr,_n){if(Jr){var Br=function es(ko){for(var vs=0;vs":Zr,To=Jr.loadingIcon,Vi=Jr.children,Us=Jr.dropdownMatchSelectWidth,Is=Us===void 0?!1:Us,Rs=Jr.showCheckedStrategy,Ns=Rs===void 0?vt:Rs,Lo=(0,M.Z)(Jr,zt),Ps=(0,g.ZP)(Br),ua=!!Li,Ka=(0,O.Z)(Ba,{value:uo,postState:Kt}),Hl=(0,k.Z)(Ka,2),Gl=Hl[0],fs=Hl[1],Hs=R.useMemo(function(){return Re(vs)},[JSON.stringify(vs)]),dl=an(Hs,os),Xo=(0,k.Z)(dl,3),Mi=Xo[0],Yo=Xo[1],Os=Xo[2],Cs=(0,O.Z)("",{value:hs,postState:function(wl){return wl||""}}),xa=(0,k.Z)(Cs,2),Xu=xa[0],gc=xa[1],Zu=function(wl,Tn){gc(wl),Tn.source!=="blur"&&Wn&&Wn(wl)},Cd=Cr(yo),ad=(0,k.Z)(Cd,2),gu=ad[0],iu=ad[1],Tu=ot(Xu,Mi,Hs,Ko||ko,iu,ca),Si=lt(Mi,Hs),tr=Ni(ua,Gl,Yo,Os,Si),Un=(0,k.Z)(tr,3),jr=Un[0],Qr=Un[1],_o=Un[2],us=R.useMemo(function(){var Bl=De(jr),wl=St(Bl,Yo,Ns);return[].concat((0,v.Z)(_o),(0,v.Z)(Os(wl)))},[jr,Yo,Os,_o,Ns]),ns=Ct(us,Mi,Hs,ua,Ti),Oa=(0,A.Z)(function(Bl){if(fs(Bl),ll){var wl=Kt(Bl),Tn=wl.map(function(Pc){return nt(Pc,Mi,Hs).map(function(Wc){return Wc.option})}),nc=ua?wl:wl[0],Iu=ua?Tn:Tn[0];ll(nc,Iu)}}),ga=Pi(ua,Oa,jr,Qr,_o,Yo,Os,Ns),Va=(0,A.Z)(function(Bl){(!ua||Eo)&&gc(""),ga(Bl)}),ea=function(wl,Tn){if(Tn.type==="clear"){Oa([]);return}var nc=Tn.values[0],Iu=nc.valueCells;Va(Iu)},Xl=Gr!==void 0?Gr:kr,_a=ut||je,Ta=Pt||ft,Ya=function(wl){ln==null||ln(wl),sr==null||sr(wl)},cu=R.useMemo(function(){return{options:Mi,fieldNames:Hs,values:jr,halfValues:Qr,changeOnSelect:ca,onSelect:Va,checkable:Li,searchOptions:Tu,dropdownPrefixCls:Ko,loadData:Yn,expandTrigger:Qo,expandIcon:Ui,loadingIcon:To,dropdownMenuColumnStyle:ht}},[Mi,Hs,jr,Qr,ca,Va,Li,Tu,Ko,Yn,Qo,Ui,To,ht]),jl=!(Xu?Tu:Mi).length,Mu=Xu&&iu.matchInputWidth||jl?{}:{minWidth:"auto"};return R.createElement(ce.Provider,{value:cu},R.createElement(C.Ac,(0,B.Z)({},Lo,{ref:_n,id:Ps,prefixCls:ko,autoClearSearchValue:Eo,dropdownMatchSelectWidth:Is,dropdownStyle:(0,V.Z)((0,V.Z)({},Mu),Ue),displayValues:ns,onDisplayValuesChange:ea,mode:ua?"multiple":void 0,searchValue:Xu,onSearch:Zu,showSearch:gu,OptionList:et,emptyOptions:jl,open:Xl,dropdownClassName:_a,placement:Ta,onDropdownVisibleChange:Ya,getRawInputElement:function(){return Vi}})))});Jt.SHOW_PARENT=vt,Jt.SHOW_CHILD=dt,Jt.Panel=Dn;var yn=Jt,fr=yn,vr=_(99468),pn=_(3966),wr=_(82395),Sr=_(52910),Ai=_(11201),mo=_(51059),Fr=_(29154),to=_(40053),Ji=_(20170),bo=_(1220),xn=_(34735),fn=_(49265),It=_(81738),Zt=_(9667),gn=_(59379),$n=_(60161);function Ar(Jr,_n){const{getPrefixCls:Br,direction:es,renderEmpty:ko}=R.useContext(mo.E_),vs=_n||es,Ba=Br("select",Jr),uo=Br("cascader",Jr);return[Ba,uo,vs,ko]}function Dr(Jr,_n){return R.useMemo(()=>_n?R.createElement("span",{className:`${Jr}-checkbox-inner`}):!1,[_n])}var dr=_(52063),Xt=_(38521),Cn=_(22311);function er(Jr,_n,Br){let es=Br;Br||(es=_n?R.createElement(dr.Z,null):R.createElement(Cn.Z,null));const ko=R.createElement("span",{className:`${Jr}-menu-item-loading-icon`},R.createElement(Xt.Z,{spin:!0}));return[es,ko]}var Mr=_(62290),ji=_(67859),An=_(36646),Xn=_(81448),nr=_(35772),vi=Jr=>{const{prefixCls:_n,componentCls:Br}=Jr,es=`${Br}-menu-item`,ko=` - &${es}-expand ${es}-expand-icon, - ${es}-loading-icon -`;return[(0,Xn.C2)(`${_n}-checkbox`,Jr),{[Br]:{"&-checkbox":{top:0,marginInlineEnd:Jr.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Br}-menu-empty`]:{[`${Br}-menu`]:{width:"100%",height:"auto",[es]:{color:Jr.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:Jr.controlItemWidth,height:Jr.dropdownHeight,margin:0,padding:Jr.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,An.bf)(Jr.lineWidth)} ${Jr.lineType} ${Jr.colorSplit}`},"&-item":Object.assign(Object.assign({},nr.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Jr.optionPadding,lineHeight:Jr.lineHeight,cursor:"pointer",transition:`all ${Jr.motionDurationMid}`,borderRadius:Jr.borderRadiusSM,"&:hover":{background:Jr.controlItemBgHover},"&-disabled":{color:Jr.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[ko]:{color:Jr.colorTextDisabled}},[`&-active:not(${es}-disabled)`]:{["&, &:hover"]:{fontWeight:Jr.optionSelectedFontWeight,backgroundColor:Jr.optionSelectedBg}},"&-content":{flex:"auto"},[ko]:{marginInlineStart:Jr.paddingXXS,color:Jr.colorTextDescription,fontSize:Jr.fontSizeIcon},"&-keyword":{color:Jr.colorHighlight}})}}}]};const Hr=Jr=>{const{componentCls:_n,antCls:Br}=Jr;return[{[_n]:{width:Jr.controlWidth}},{[`${_n}-dropdown`]:[{[`&${Br}-select-dropdown`]:{padding:0}},vi(Jr)]},{[`${_n}-dropdown-rtl`]:{direction:"rtl"}},(0,Mr.c)(Jr)]},di=Jr=>{const _n=Math.round((Jr.controlHeight-Jr.fontSize*Jr.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Jr.controlItemBgActive,optionSelectedFontWeight:Jr.fontWeightStrong,optionPadding:`${_n}px ${Jr.paddingSM}px`,menuPadding:Jr.paddingXXS}};var gi=(0,ji.I$)("Cascader",Jr=>[Hr(Jr)],di);const mi=Jr=>{const{componentCls:_n}=Jr;return{[`${_n}-panel`]:[vi(Jr),{display:"inline-flex",border:`${(0,An.bf)(Jr.lineWidth)} ${Jr.lineType} ${Jr.colorSplit}`,borderRadius:Jr.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${_n}-menus`]:{alignItems:"stretch"},[`${_n}-menu`]:{height:"auto"},"&-empty":{padding:Jr.paddingXXS}}]}};var Bi=(0,ji.ZP)(["Cascader","Panel"],Jr=>mi(Jr),di);function zr(Jr){const{prefixCls:_n,className:Br,multiple:es,rootClassName:ko,notFoundContent:vs,direction:Ba,expandIcon:uo}=Jr,[ca,ll,Ti,Li]=Ar(_n,Ba),eo=(0,Ji.Z)(ll),[Eo,hs]=gi(ll,eo);Bi(ll);const Wn=Ti==="rtl",[yo,Qo]=er(ca,Wn,uo),os=vs||(Li==null?void 0:Li("Cascader"))||R.createElement(Fr.Z,{componentName:"Cascader"}),Ko=Dr(ll,es);return Eo(R.createElement(Dn,Object.assign({},Jr,{checkable:Ko,prefixCls:ll,className:b()(Br,hs,ko,eo),notFoundContent:os,direction:Ti,expandIcon:yo,loadingIcon:Qo})))}var Xr=function(Jr,_n){var Br={};for(var es in Jr)Object.prototype.hasOwnProperty.call(Jr,es)&&_n.indexOf(es)<0&&(Br[es]=Jr[es]);if(Jr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ko=0,es=Object.getOwnPropertySymbols(Jr);koca===0?[uo]:[].concat((0,v.Z)(Ba),[_n,uo]),[]),ko=[];let vs=0;return es.forEach((Ba,uo)=>{const ca=vs+Ba.length;let ll=Jr.slice(vs,ca);vs=ca,uo%2===1&&(ll=R.createElement("span",{className:`${Br}-menu-item-keyword`,key:`separator-${uo}`},ll)),ko.push(ll)}),ko}const gs=(Jr,_n,Br,es)=>{const ko=[],vs=Jr.toLowerCase();return _n.forEach((Ba,uo)=>{uo!==0&&ko.push(" / ");let ca=Ba[es.label];const ll=typeof ca;(ll==="string"||ll==="number")&&(ca=Ur(String(ca),vs,Br)),ko.push(ca)}),ko},Kr=R.forwardRef((Jr,_n)=>{var Br;const{prefixCls:es,size:ko,disabled:vs,className:Ba,rootClassName:uo,multiple:ca,bordered:ll=!0,transitionName:Ti,choiceTransitionName:Li="",popupClassName:eo,dropdownClassName:Eo,expandIcon:hs,placement:Wn,showSearch:yo,allowClear:Qo=!0,notFoundContent:os,direction:Ko,getPopupContainer:Yn,status:kr,showArrow:Gr,builtinPlacements:je,style:ut}=Jr,ht=Xr(Jr,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Ue=(0,vr.Z)(ht,["suffixIcon"]),{getPopupContainer:ft,getPrefixCls:Pt,popupOverflow:ln,cascader:sr}=R.useContext(mo.E_),{status:Zr,hasFeedback:Ui,isFormItemInput:To,feedbackIcon:Vi}=R.useContext(xn.aM),Us=(0,Ai.F)(Zr,kr),[Is,Rs,Ns,Lo]=Ar(es,Ko),Ps=Ns==="rtl",ua=Pt(),Ka=(0,Ji.Z)(Is),[Hl,Gl]=(0,fn.Z)(Is,Ka),fs=(0,Ji.Z)(Rs),[Hs]=gi(Rs,fs),{compactSize:dl,compactItemClassnames:Xo}=(0,$n.ri)(Is,Ko),Mi=os||(Lo==null?void 0:Lo("Cascader"))||R.createElement(Fr.Z,{componentName:"Cascader"}),Yo=b()(eo||Eo,`${Rs}-dropdown`,{[`${Rs}-dropdown-rtl`]:Ns==="rtl"},uo,Ka,fs,Gl),Os=R.useMemo(()=>{if(!yo)return yo;let _o={render:gs};return typeof yo=="object"&&(_o=Object.assign(Object.assign({},_o),yo)),_o},[yo]),Cs=(0,bo.Z)(_o=>{var us;return(us=ko!=null?ko:dl)!==null&&us!==void 0?us:_o}),xa=R.useContext(to.Z),Xu=vs!=null?vs:xa,[gc,Zu]=er(Is,Ps,hs),Cd=Dr(Rs,ca),ad=(0,gn.Z)(Jr.suffixIcon,Gr),{suffixIcon:gu,removeIcon:iu,clearIcon:Tu}=(0,Zt.Z)(Object.assign(Object.assign({},Jr),{hasFeedback:Ui,feedbackIcon:Vi,showSuffixIcon:ad,multiple:ca,prefixCls:Is,componentName:"Cascader"})),Si=R.useMemo(()=>Wn!==void 0?Wn:Ps?"bottomRight":"bottomLeft",[Wn,Ps]),tr=(0,It.Z)(je,ln),Un=Qo===!0?{clearIcon:Tu}:Qo,[jr]=(0,pn.Cn)("SelectLike",(Br=Ue.dropdownStyle)===null||Br===void 0?void 0:Br.zIndex),Qr=R.createElement(fr,Object.assign({prefixCls:Is,className:b()(!es&&Rs,{[`${Is}-lg`]:Cs==="large",[`${Is}-sm`]:Cs==="small",[`${Is}-rtl`]:Ps,[`${Is}-borderless`]:!ll,[`${Is}-in-form-item`]:To},(0,Ai.Z)(Is,Us,Ui),Xo,sr==null?void 0:sr.className,Ba,uo,Ka,fs,Gl),disabled:Xu,style:Object.assign(Object.assign({},sr==null?void 0:sr.style),ut)},Ue,{builtinPlacements:tr,direction:Ns,placement:Si,notFoundContent:Mi,allowClear:Un,showSearch:Os,expandIcon:gc,suffixIcon:gu,removeIcon:iu,loadingIcon:Zu,checkable:Cd,dropdownClassName:Yo,dropdownPrefixCls:es||Rs,dropdownStyle:Object.assign(Object.assign({},Ue.dropdownStyle),{zIndex:jr}),choiceTransitionName:(0,wr.m)(ua,"",Li),transitionName:(0,wr.m)(ua,"slide-up",Ti),getPopupContainer:Yn||ft,ref:_n}));return Hs(Hl(Qr))}),ri=(0,Sr.Z)(Kr);Kr.SHOW_PARENT=rs,Kr.SHOW_CHILD=Qi,Kr.Panel=zr,Kr._InternalPanelDoNotUseOrYouWillBeFired=ri;var is=Kr},81448:function(_t,Y,_){"use strict";_.d(Y,{C2:function(){return V}});var v=_(36646),R=_(35772),w=_(80172),b=_(67859);const B=k=>{const{checkboxCls:M}=k,C=`${M}-wrapper`;return[{[`${M}-group`]:Object.assign(Object.assign({},(0,R.Wf)(k)),{display:"inline-flex",flexWrap:"wrap",columnGap:k.marginXS,[`> ${k.antCls}-row`]:{flex:1}}),[C]:Object.assign(Object.assign({},(0,R.Wf)(k)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${C}`]:{marginInlineStart:0},[`&${C}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[M]:Object.assign(Object.assign({},(0,R.Wf)(k)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:k.borderRadiusSM,alignSelf:"center",[`${M}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${M}-inner`]:Object.assign({},(0,R.oN)(k))},[`${M}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:k.checkboxSize,height:k.checkboxSize,direction:"ltr",backgroundColor:k.colorBgContainer,border:`${(0,v.bf)(k.lineWidth)} ${k.lineType} ${k.colorBorder}`,borderRadius:k.borderRadiusSM,borderCollapse:"separate",transition:`all ${k.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:k.calc(k.checkboxSize).div(14).mul(5).equal(),height:k.calc(k.checkboxSize).div(14).mul(8).equal(),border:`${(0,v.bf)(k.lineWidthBold)} solid ${k.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${k.motionDurationFast} ${k.motionEaseInBack}, opacity ${k.motionDurationFast}`}},"& + span":{paddingInlineStart:k.paddingXS,paddingInlineEnd:k.paddingXS}})},{[` + &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${wr}-icon-only`]:{fontSize:Cr}},Xe(`${wr}-primary`,vo),Xe(`${wr}-danger`,kr)]}};const St=an=>{const{componentCls:wr,iconCls:Cr,fontWeight:Ei}=an;return{[wr]:{outline:"none",position:"relative",display:"inline-block",fontWeight:Ei,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,Te.bf)(an.lineWidth)} ${an.lineType} transparent`,cursor:"pointer",transition:`all ${an.motionDurationMid} ${an.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:an.lineHeight,color:an.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${wr}-icon`]:{lineHeight:0},[`> ${Cr} + span, > span + ${Cr}`]:{marginInlineStart:an.marginXS},[`&:not(${wr}-icon-only) > ${wr}-icon`]:{[`&${wr}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:an.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,Me.Qy)(an)),[`&${wr}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${wr}-two-chinese-chars > *:not(${Cr})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${wr}-compact-item`]:{flex:"none"}}}},nt=(an,wr,Cr)=>({[`&:not(:disabled):not(${an}-disabled)`]:{"&:hover":wr,"&:active":Cr}}),wt=an=>({minWidth:an.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),lt=an=>({borderRadius:an.controlHeight,paddingInlineStart:an.calc(an.controlHeight).div(2).equal(),paddingInlineEnd:an.calc(an.controlHeight).div(2).equal()}),Kt=an=>({cursor:"not-allowed",borderColor:an.borderColorDisabled,color:an.colorTextDisabled,background:an.colorBgContainerDisabled,boxShadow:"none"}),Mt=(an,wr,Cr,Ei,vo,kr,ro,qi)=>({[`&${an}-background-ghost`]:Object.assign(Object.assign({color:Cr||void 0,background:wr,borderColor:Ei||void 0,boxShadow:"none"},nt(an,Object.assign({background:wr},ro),Object.assign({background:wr},qi))),{"&:disabled":{cursor:"not-allowed",color:vo||void 0,borderColor:kr||void 0}})}),hn=an=>({[`&:disabled, &${an.componentCls}-disabled`]:Object.assign({},Kt(an))}),un=an=>Object.assign({},hn(an)),Sr=an=>({[`&:disabled, &${an.componentCls}-disabled`]:{cursor:"not-allowed",color:an.colorTextDisabled}}),ii=an=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},un(an)),{background:an.defaultBg,borderColor:an.defaultBorderColor,color:an.defaultColor,boxShadow:an.defaultShadow}),nt(an.componentCls,{color:an.colorPrimaryHover,borderColor:an.colorPrimaryHover},{color:an.colorPrimaryActive,borderColor:an.colorPrimaryActive})),Mt(an.componentCls,an.ghostBg,an.defaultGhostColor,an.defaultGhostBorderColor,an.colorTextDisabled,an.colorBorder)),{[`&${an.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:an.colorError,borderColor:an.colorError},nt(an.componentCls,{color:an.colorErrorHover,borderColor:an.colorErrorBorderHover},{color:an.colorErrorActive,borderColor:an.colorErrorActive})),Mt(an.componentCls,an.ghostBg,an.colorError,an.colorError,an.colorTextDisabled,an.colorBorder)),hn(an))}),Ii=an=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},un(an)),{color:an.primaryColor,background:an.colorPrimary,boxShadow:an.primaryShadow}),nt(an.componentCls,{color:an.colorTextLightSolid,background:an.colorPrimaryHover},{color:an.colorTextLightSolid,background:an.colorPrimaryActive})),Mt(an.componentCls,an.ghostBg,an.colorPrimary,an.colorPrimary,an.colorTextDisabled,an.colorBorder,{color:an.colorPrimaryHover,borderColor:an.colorPrimaryHover},{color:an.colorPrimaryActive,borderColor:an.colorPrimaryActive})),{[`&${an.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:an.colorError,boxShadow:an.dangerShadow,color:an.dangerColor},nt(an.componentCls,{background:an.colorErrorHover},{background:an.colorErrorActive})),Mt(an.componentCls,an.ghostBg,an.colorError,an.colorError,an.colorTextDisabled,an.colorBorder,{color:an.colorErrorHover,borderColor:an.colorErrorHover},{color:an.colorErrorActive,borderColor:an.colorErrorActive})),hn(an))}),Ni=an=>Object.assign(Object.assign({},ii(an)),{borderStyle:"dashed"}),eo=an=>Object.assign(Object.assign(Object.assign({color:an.colorLink},nt(an.componentCls,{color:an.colorLinkHover,background:an.linkHoverBg},{color:an.colorLinkActive})),Sr(an)),{[`&${an.componentCls}-dangerous`]:Object.assign(Object.assign({color:an.colorError},nt(an.componentCls,{color:an.colorErrorHover},{color:an.colorErrorActive})),Sr(an))}),ti=an=>Object.assign(Object.assign(Object.assign({},nt(an.componentCls,{color:an.colorText,background:an.textHoverBg},{color:an.colorText,background:an.colorBgTextActive})),Sr(an)),{[`&${an.componentCls}-dangerous`]:Object.assign(Object.assign({color:an.colorError},Sr(an)),nt(an.componentCls,{color:an.colorErrorHover,background:an.colorErrorBg},{color:an.colorErrorHover,background:an.colorErrorBg}))}),Is=an=>{const{componentCls:wr}=an;return{[`${wr}-default`]:ii(an),[`${wr}-primary`]:Ii(an),[`${wr}-dashed`]:Ni(an),[`${wr}-link`]:eo(an),[`${wr}-text`]:ti(an),[`${wr}-ghost`]:Mt(an.componentCls,an.ghostBg,an.colorBgContainer,an.colorBgContainer,an.colorTextDisabled,an.colorBorder)}},Ns=function(an){let wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:Cr,controlHeight:Ei,fontSize:vo,borderRadius:kr,buttonPaddingHorizontal:ro,iconCls:qi,buttonPaddingVertical:bo}=an,xn=`${Cr}-icon-only`;return[{[`${Cr}${wr}`]:{fontSize:vo,height:Ei,padding:`${(0,Te.bf)(bo)} ${(0,Te.bf)(ro)}`,borderRadius:kr,[`&${xn}`]:{width:Ei,paddingInlineStart:0,paddingInlineEnd:0,[`&${Cr}-round`]:{width:"auto"},[qi]:{fontSize:an.buttonIconOnlyFontSize}},[`&${Cr}-loading`]:{opacity:an.opacityLoading,cursor:"default"},[`${Cr}-loading-icon`]:{transition:`width ${an.motionDurationSlow} ${an.motionEaseInOut}, opacity ${an.motionDurationSlow} ${an.motionEaseInOut}`}}},{[`${Cr}${Cr}-circle${wr}`]:wt(an)},{[`${Cr}${Cr}-round${wr}`]:lt(an)}]},Se=an=>Ns((0,Ue.TS)(an,{fontSize:an.contentFontSize})),Xi=an=>{const wr=(0,Ue.TS)(an,{controlHeight:an.controlHeightSM,fontSize:an.contentFontSizeSM,padding:an.paddingXS,buttonPaddingHorizontal:an.paddingInlineSM,buttonPaddingVertical:an.paddingBlockSM,borderRadius:an.borderRadiusSM,buttonIconOnlyFontSize:an.onlyIconSizeSM});return Ns(wr,`${an.componentCls}-sm`)},Yi=an=>{const wr=(0,Ue.TS)(an,{controlHeight:an.controlHeightLG,fontSize:an.contentFontSizeLG,buttonPaddingHorizontal:an.paddingInlineLG,buttonPaddingVertical:an.paddingBlockLG,borderRadius:an.borderRadiusLG,buttonIconOnlyFontSize:an.onlyIconSizeLG});return Ns(wr,`${an.componentCls}-lg`)},fo=an=>{const{componentCls:wr}=an;return{[wr]:{[`&${wr}-block`]:{width:"100%"}}}},di=an=>{const{paddingInline:wr,onlyIconSize:Cr,paddingBlock:Ei}=an;return(0,Ue.TS)(an,{buttonPaddingHorizontal:wr,buttonPaddingVertical:Ei,buttonIconOnlyFontSize:Cr})},Fs=an=>{const wr=an.fontSize,Cr=an.fontSize,Ei=an.fontSizeLG;return{fontWeight:400,defaultShadow:`0 ${an.controlOutlineWidth}px 0 ${an.controlTmpOutline}`,primaryShadow:`0 ${an.controlOutlineWidth}px 0 ${an.controlOutline}`,dangerShadow:`0 ${an.controlOutlineWidth}px 0 ${an.colorErrorOutline}`,primaryColor:an.colorTextLightSolid,dangerColor:an.colorTextLightSolid,borderColorDisabled:an.colorBorder,defaultGhostColor:an.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:an.colorBgContainer,paddingInline:an.paddingContentHorizontal-an.lineWidth,paddingInlineLG:an.paddingContentHorizontal-an.lineWidth,paddingInlineSM:8-an.lineWidth,paddingBlock:Math.max((an.controlHeight-wr*an.lineHeight)/2-an.lineWidth,0),paddingBlockSM:Math.max((an.controlHeightSM-Cr*an.lineHeight)/2-an.lineWidth,0),paddingBlockLG:Math.max((an.controlHeightLG-Ei*an.lineHeight)/2-an.lineWidth,0),onlyIconSize:an.fontSizeLG,onlyIconSizeSM:an.fontSizeLG-2,onlyIconSizeLG:an.fontSizeLG+2,groupBorderColor:an.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:an.colorBgTextHover,defaultColor:an.colorText,defaultBg:an.colorBgContainer,defaultBorderColor:an.colorBorder,defaultBorderColorDisabled:an.colorBorder,contentFontSize:wr,contentFontSizeSM:Cr,contentFontSizeLG:Ei}};var Ln=(0,Pe.I$)("Button",an=>{const wr=di(an);return[St(wr),Xi(wr),Se(wr),Yi(wr),fo(wr),Is(wr),Xt(wr)]},Fs,{unitless:{fontWeight:!0}}),it=y(80110);function Ot(an,wr){return{[`&-item:not(${wr}-last-item)`]:{marginBottom:an.calc(an.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Ht(an,wr){return{[`&-item:not(${wr}-first-item):not(${wr}-last-item)`]:{borderRadius:0},[`&-item${wr}-first-item:not(${wr}-last-item)`]:{[`&, &${an}-sm, &${an}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${wr}-last-item:not(${wr}-first-item)`]:{[`&, &${an}-sm, &${an}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Pn(an){const wr=`${an.componentCls}-compact-vertical`;return{[wr]:Object.assign(Object.assign({},Ot(an,wr)),Ht(an.componentCls,wr))}}const fr=an=>{const{componentCls:wr,calc:Cr}=an;return{[wr]:{[`&-compact-item${wr}-primary`]:{[`&:not([disabled]) + ${wr}-compact-item${wr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:Cr(an.lineWidth).mul(-1).equal(),insetInlineStart:Cr(an.lineWidth).mul(-1).equal(),display:"inline-block",width:an.lineWidth,height:`calc(100% + ${(0,Te.bf)(an.lineWidth)} * 2)`,backgroundColor:an.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${wr}-primary`]:{[`&:not([disabled]) + ${wr}-compact-vertical-item${wr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:Cr(an.lineWidth).mul(-1).equal(),insetInlineStart:Cr(an.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${(0,Te.bf)(an.lineWidth)} * 2)`,height:an.lineWidth,backgroundColor:an.colorPrimaryHover,content:'""'}}}}}}};var In=(0,Pe.bk)(["Button","compact"],an=>{const wr=di(an);return[(0,it.c)(wr),Pn(wr),fr(wr)]},Fs),mn=function(an,wr){var Cr={};for(var Ei in an)Object.prototype.hasOwnProperty.call(an,Ei)&&wr.indexOf(Ei)<0&&(Cr[Ei]=an[Ei]);if(an!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vo=0,Ei=Object.getOwnPropertySymbols(an);vo{var Cr,Ei;const{loading:vo=!1,prefixCls:kr,type:ro="default",danger:qi,shape:bo="default",size:xn,styles:pn,disabled:Dt,className:Zt,rootClassName:vn,children:$n,icon:Ar,ghost:Dr=!1,block:dr=!1,htmlType:Yt="button",classNames:wn,style:Qn={}}=an,Mr=mn(an,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:Wi,autoInsertSpaceInButton:Dn,direction:Kn,button:nr}=(0,v.useContext)(k.E_),qr=Wi("btn",kr),[yi,Hr]=Ln(qr),ci=(0,v.useContext)(R.Z),gi=Dt!=null?Dt:ci,mi=(0,v.useContext)(K),Bi=(0,v.useMemo)(()=>Ut(vo),[vo]),[Nr,Kr]=(0,v.useState)(Bi.loading),[Qi,ns]=(0,v.useState)(!1),Ur=(0,v.createRef)(),gs=(0,B.sQ)(wr,Ur),Gr=v.Children.count($n)===1&&!Ar&&!(0,fe.Te)(ro);(0,v.useEffect)(()=>{let ps=null;Bi.delay>0?ps=setTimeout(()=>{ps=null,Kr(!0)},Bi.delay):Kr(Bi.loading);function Wn(){ps&&(clearTimeout(ps),ps=null)}return Wn},[Bi]),(0,v.useEffect)(()=>{if(!gs||!gs.current||Dn===!1)return;const ps=gs.current.textContent;Gr&&(0,fe.aG)(ps)?Qi||ns(!0):Qi&&ns(!1)},[gs]);const ni=ps=>{const{onClick:Wn}=an;if(Nr||gi){ps.preventDefault();return}Wn==null||Wn(ps)},is=Dn!==!1,{compactSize:Jr,compactItemClassnames:bn}=(0,g.ri)(qr,Kn),Or={large:"lg",small:"sm",middle:void 0},qo=(0,C.Z)(ps=>{var Wn,yo;return(yo=(Wn=xn!=null?xn:Jr)!==null&&Wn!==void 0?Wn:mi)!==null&&yo!==void 0?yo:ps}),Mo=qo&&Or[qo]||"",vs=Nr?"loading":Ar,Na=(0,b.Z)(Mr,["navigate"]),ho=w()(qr,Hr,{[`${qr}-${bo}`]:bo!=="default"&&bo,[`${qr}-${ro}`]:ro,[`${qr}-${Mo}`]:Mo,[`${qr}-icon-only`]:!$n&&$n!==0&&!!vs,[`${qr}-background-ghost`]:Dr&&!(0,fe.Te)(ro),[`${qr}-loading`]:Nr,[`${qr}-two-chinese-chars`]:Qi&&is&&!Nr,[`${qr}-block`]:dr,[`${qr}-dangerous`]:!!qi,[`${qr}-rtl`]:Kn==="rtl"},bn,Zt,vn,nr==null?void 0:nr.className),aa=Object.assign(Object.assign({},nr==null?void 0:nr.style),Qn),Ka=w()(wn==null?void 0:wn.icon,(Cr=nr==null?void 0:nr.classNames)===null||Cr===void 0?void 0:Cr.icon),Si=Object.assign(Object.assign({},(pn==null?void 0:pn.icon)||{}),((Ei=nr==null?void 0:nr.styles)===null||Ei===void 0?void 0:Ei.icon)||{}),Pi=Ar&&!Nr?v.createElement(ye,{prefixCls:qr,className:Ka,style:Si},Ar):v.createElement(De,{existIcon:!!Ar,prefixCls:qr,loading:!!Nr}),to=$n||$n===0?(0,fe.hU)($n,Gr&&is):null;if(Na.href!==void 0)return yi(v.createElement("a",Object.assign({},Na,{className:w()(ho,{[`${qr}-disabled`]:gi}),href:gi?void 0:Na.href,style:aa,onClick:ni,ref:gs,tabIndex:gi?-1:0}),Pi,to));let So=v.createElement("button",Object.assign({},Mr,{type:Yt,className:ho,style:aa,onClick:ni,disabled:gi,ref:gs}),Pi,to,bn&&v.createElement(In,{key:"compact",prefixCls:qr}));return(0,fe.Te)(ro)||(So=v.createElement(V.Z,{component:"Button",disabled:!!Nr},So)),yi(So)},Cn=(0,v.forwardRef)(en);Cn.Group=ae,Cn.__ANT_BUTTON=!0;var lr=Cn,pr=lr},3303:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return is}});var v=y(74902),P=y(67294),w=y(94184),b=y.n(w),B=y(87462),V=y(1413),k=y(97685),R=y(91),C=y(88905),g=y(88708),A=y(66680),O=y(21770),K=P.createContext(null),he=K,ae=y(71002),fe=y(4942),xe="__rc_cascader_search_mark__",ye=function(bn,Or,qo){var Mo=qo.label;return Or.some(function(vs){return String(vs[Mo]).toLowerCase().includes(bn.toLowerCase())})},be=function(bn,Or,qo,Mo){return Or.map(function(vs){return vs[Mo.label]}).join(" / ")},Qe=function(Jr,bn,Or,qo,Mo,vs){var Na=Mo.filter,ho=Na===void 0?ye:Na,aa=Mo.render,Ka=aa===void 0?be:aa,Si=Mo.limit,Pi=Si===void 0?50:Si,to=Mo.sort;return P.useMemo(function(){var So=[];if(!Jr)return[];function ps(Wn,yo){var Qo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Wn.forEach(function(ss){if(!(!to&&Pi!==!1&&Pi>0&&So.length>=Pi)){var Ko=[].concat((0,v.Z)(yo),[ss]),Xn=ss[Or.children],Rr=Qo||ss.disabled;if((!Xn||Xn.length===0||vs)&&ho(Jr,Ko,{label:Or.label})){var Xr;So.push((0,V.Z)((0,V.Z)({},ss),{},(Xr={disabled:Rr},(0,fe.Z)(Xr,Or.label,Ka(Jr,Ko,qo,Or)),(0,fe.Z)(Xr,xe,Ko),(0,fe.Z)(Xr,Or.children,void 0),Xr)))}Xn&&ps(ss[Or.children],Ko,Rr)}})}return ps(bn,[]),to&&So.sort(function(Wn,yo){return to(Wn[xe],yo[xe],Jr,Or)}),Pi!==!1&&Pi>0?So.slice(0,Pi):So},[Jr,bn,Or,qo,Ka,vs,ho,to,Pi])},Ve="__RC_CASCADER_SPLIT__",pt="SHOW_PARENT",st="SHOW_CHILD";function Ae(Jr){return Jr.join(Ve)}function De(Jr){return Jr.map(Ae)}function Te(Jr){return Jr.split(Ve)}function Me(Jr){var bn=Jr||{},Or=bn.label,qo=bn.value,Mo=bn.children,vs=qo||"value";return{label:Or||"label",value:vs,key:vs,children:Mo||"children"}}function Ue(Jr,bn){var Or,qo;return(Or=Jr.isLeaf)!==null&&Or!==void 0?Or:!((qo=Jr[bn.children])!==null&&qo!==void 0&&qo.length)}function Pe(Jr){var bn=Jr.parentElement;if(bn){var Or=Jr.offsetTop-bn.offsetTop;Or-bn.scrollTop<0?bn.scrollTo({top:Or}):Or+Jr.offsetHeight-bn.scrollTop>bn.offsetHeight&&bn.scrollTo({top:Or+Jr.offsetHeight-bn.offsetHeight})}}function Xe(Jr,bn){return Jr.map(function(Or){var qo;return(qo=Or[xe])===null||qo===void 0?void 0:qo.map(function(Mo){return Mo[bn.value]})})}function Be(Jr){return Array.isArray(Jr)&&Array.isArray(Jr[0])}function Xt(Jr){return Jr?Be(Jr)?Jr:(Jr.length===0?[]:[Jr]).map(function(bn){return Array.isArray(bn)?bn:[bn]}):[]}function St(Jr,bn,Or){var qo=new Set(Jr),Mo=bn();return Jr.filter(function(vs){var Na=Mo[vs],ho=Na?Na.parent:null,aa=Na?Na.children:null;return Na&&Na.node.disabled?!0:Or===st?!(aa&&aa.some(function(Ka){return Ka.key&&qo.has(Ka.key)})):!(ho&&!ho.node.disabled&&qo.has(ho.key))})}function nt(Jr,bn,Or){for(var qo=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Mo=bn,vs=[],Na=function(){var Ka,Si,Pi,to=Jr[ho],So=(Ka=Mo)===null||Ka===void 0?void 0:Ka.findIndex(function(Wn){var yo=Wn[Or.value];return qo?String(yo)===String(to):yo===to}),ps=So!==-1?(Si=Mo)===null||Si===void 0?void 0:Si[So]:null;vs.push({value:(Pi=ps==null?void 0:ps[Or.value])!==null&&Pi!==void 0?Pi:to,index:So,option:ps}),Mo=ps==null?void 0:ps[Or.children]},ho=0;ho1){var Ze=ps.slice(0,-1);ss(Ze)}else Ka(!1)},Rr=function(){var Ze,ht=((Ze=yo[Wn])===null||Ze===void 0?void 0:Ze[Or.children])||[],dt=ht.find(function(ft){return!ft.disabled});if(dt){var $e=[].concat((0,v.Z)(ps),[dt[Or.value]]);ss($e)}};P.useImperativeHandle(Jr,function(){return{onKeyDown:function(Ze){var ht=Ze.which;switch(ht){case Yi.Z.UP:case Yi.Z.DOWN:{var dt=0;ht===Yi.Z.UP?dt=-1:ht===Yi.Z.DOWN&&(dt=1),dt!==0&&Ko(dt);break}case Yi.Z.LEFT:{if(aa)break;Pi?Rr():Xn();break}case Yi.Z.RIGHT:{if(aa)break;Pi?Xn():Rr();break}case Yi.Z.BACKSPACE:{aa||Xn();break}case Yi.Z.ENTER:{if(ps.length){var $e=yo[Wn],ft=($e==null?void 0:$e[xe])||[];ft.length?vs(ft.map(function(Lt){return Lt[Or.value]}),ft[ft.length-1]):vs(ps,yo[Wn])}break}case Yi.Z.ESC:Ka(!1),Si&&Ze.stopPropagation()}},onKeyUp:function(){}}})},di=P.forwardRef(function(Jr,bn){var Or,qo,Mo,vs=Jr.prefixCls,Na=Jr.multiple,ho=Jr.searchValue,aa=Jr.toggleOpen,Ka=Jr.notFoundContent,Si=Jr.direction,Pi=Jr.open,to=P.useRef(),So=Si==="rtl",ps=P.useContext(he),Wn=ps.options,yo=ps.values,Qo=ps.halfValues,ss=ps.fieldNames,Ko=ps.changeOnSelect,Xn=ps.onSelect,Rr=ps.searchOptions,Xr=ps.dropdownPrefixCls,Ze=ps.loadData,ht=ps.expandTrigger,dt=Xr||vs,$e=P.useState([]),ft=(0,k.Z)($e,2),Lt=ft[0],gn=ft[1],rr=function(Li){if(!(!Ze||ho)){var Yo=nt(Li,Wn,ss),Os=Yo.map(function(Yu){var pc=Yu.option;return pc}),Cs=Os[Os.length-1];if(Cs&&!Ue(Cs,ss)){var ba=Ae(Li);gn(function(Yu){return[].concat((0,v.Z)(Yu),[ba])}),Ze(Os)}}};P.useEffect(function(){Lt.length&&Lt.forEach(function(Xo){var Li=Te(Xo),Yo=nt(Li,Wn,ss,!0).map(function(Cs){var ba=Cs.option;return ba}),Os=Yo[Yo.length-1];(!Os||Os[ss.children]||Ue(Os,ss))&&gn(function(Cs){return Cs.filter(function(ba){return ba!==Xo})})})},[Wn,Lt,ss]);var zr=P.useMemo(function(){return new Set(De(yo))},[yo]),Fi=P.useMemo(function(){return new Set(De(Qo))},[Qo]),xo=Xi(Na,Pi),Vi=(0,k.Z)(xo,2),zs=Vi[0],Ps=Vi[1],Ms=function(Li){Ps(Li),rr(Li)},ks=function(Li){var Yo=Li.disabled,Os=Ue(Li,ss);return!Yo&&(Os||Ko||Na)},ko=function(Li,Yo){var Os=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Xn(Li),!Na&&(Yo||Ko&&(ht==="hover"||Os))&&aa(!1)},As=P.useMemo(function(){return ho?Rr:Wn},[ho,Rr,Wn]),ia=P.useMemo(function(){for(var Xo=[{options:As}],Li=As,Yo=Xe(Li,ss),Os=function(){var Yu=zs[Cs],pc=Li.find(function(wh,lh){return(Yo[lh]?Ae(Yo[lh]):wh[ss.value])===Yu}),Hu=pc==null?void 0:pc[ss.children];if(!(Hu!=null&&Hu.length))return 1;Li=Hu,Xo.push({options:Hu})},Cs=0;Cs":Qo,Ko=Or.loadingIcon,Xn=Or.direction,Rr=Or.notFoundContent,Xr=Rr===void 0?"Not Found":Rr,Ze=!!aa,ht=(0,Ot.C8)(Ka,{value:Si,postState:Xt}),dt=(0,k.Z)(ht,2),$e=dt[0],ft=dt[1],Lt=P.useMemo(function(){return Me(Pi)},[JSON.stringify(Pi)]),gn=hn(Lt,ho),rr=(0,k.Z)(gn,3),zr=rr[0],Fi=rr[1],xo=rr[2],Vi=lt(zr,Lt),zs=Ni(Ze,$e,Fi,xo,Vi),Ps=(0,k.Z)(zs,3),Ms=Ps[0],ks=Ps[1],ko=Ps[2],As=(0,Ot.zX)(function(js){if(ft(js),So){var hl=Xt(js),Xo=hl.map(function(Os){return nt(Os,zr,Lt).map(function(Cs){return Cs.option})}),Li=Ze?hl:hl[0],Yo=Ze?Xo:Xo[0];So(Li,Yo)}}),ia=Ii(Ze,As,Ms,ks,ko,Fi,xo,ps),za=(0,Ot.zX)(function(js){ia(js)}),Zl=P.useMemo(function(){return{options:zr,fieldNames:Lt,values:Ms,halfValues:ks,changeOnSelect:to,onSelect:za,checkable:aa,searchOptions:[],dropdownPrefixCls:null,loadData:Wn,expandTrigger:yo,expandIcon:ss,loadingIcon:Ko,dropdownMenuColumnStyle:null}},[zr,Lt,Ms,ks,to,za,aa,Wn,yo,ss,Ko]),Hl="".concat(Mo,"-panel"),fs=!zr.length;return P.createElement(he.Provider,{value:Zl},P.createElement("div",{className:b()(Hl,(bn={},(0,fe.Z)(bn,"".concat(Hl,"-rtl"),Xn==="rtl"),(0,fe.Z)(bn,"".concat(Hl,"-empty"),fs),bn),Na),style:vs},fs?Xr:P.createElement(Fs,{prefixCls:Mo,searchValue:null,multiple:Ze,toggleOpen:Ht,open:!0,direction:Xn})))}function fr(Jr){var bn=Jr.onPopupVisibleChange,Or=Jr.popupVisible,qo=Jr.popupClassName,Mo=Jr.popupPlacement;warning(!bn,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Or===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(qo===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Mo===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function In(Jr,bn){if(Jr){var Or=function qo(Mo){for(var vs=0;vs":zr,xo=Jr.loadingIcon,Vi=Jr.children,zs=Jr.dropdownMatchSelectWidth,Ps=zs===void 0?!1:zs,Ms=Jr.showCheckedStrategy,ks=Ms===void 0?pt:Ms,ko=(0,R.Z)(Jr,Ut),As=(0,g.ZP)(Or),ia=!!Pi,za=(0,O.Z)(Na,{value:ho,postState:Xt}),Zl=(0,k.Z)(za,2),Hl=Zl[0],fs=Zl[1],js=P.useMemo(function(){return Me(vs)},[JSON.stringify(vs)]),hl=hn(js,ss),Xo=(0,k.Z)(hl,3),Li=Xo[0],Yo=Xo[1],Os=Xo[2],Cs=(0,O.Z)("",{value:ps,postState:function(Sl){return Sl||""}}),ba=(0,k.Z)(Cs,2),Yu=ba[0],pc=ba[1],Hu=function(Sl,Tn){pc(Sl),Tn.source!=="blur"&&Wn&&Wn(Sl)},wh=Sr(yo),lh=(0,k.Z)(wh,2),fu=lh[0],ru=lh[1],Tu=Qe(Yu,Li,js,Ko||Mo,ru,aa),wi=lt(Li,js),er=Ni(ia,Hl,Yo,Os,wi),Un=(0,k.Z)(er,3),Wr=Un[0],Qr=Un[1],_o=Un[2],us=P.useMemo(function(){var Bl=De(Wr),Sl=St(Bl,Yo,ks);return[].concat((0,v.Z)(_o),(0,v.Z)(Os(Sl)))},[Wr,Yo,Os,_o,ks]),es=wt(us,Li,js,ia,Si),Ma=(0,A.Z)(function(Bl){if(fs(Bl),Ka){var Sl=Xt(Bl),Tn=Sl.map(function(Ic){return nt(Ic,Li,js).map(function(Vc){return Vc.option})}),nc=ia?Sl:Sl[0],Iu=ia?Tn:Tn[0];Ka(nc,Iu)}}),ga=Ii(ia,Ma,Wr,Qr,_o,Yo,Os,ks),$a=(0,A.Z)(function(Bl){(!ia||So)&&pc(""),ga(Bl)}),Js=function(Sl,Tn){if(Tn.type==="clear"){Ma([]);return}var nc=Tn.values[0],Iu=nc.valueCells;$a(Iu)},Kl=Xr!==void 0?Xr:Rr,ya=ht||Ze,Ta=Lt||ft,Xa=function(Sl){gn==null||gn(Sl),rr==null||rr(Sl)},au=P.useMemo(function(){return{options:Li,fieldNames:js,values:Wr,halfValues:Qr,changeOnSelect:aa,onSelect:$a,checkable:Pi,searchOptions:Tu,dropdownPrefixCls:Ko,loadData:Xn,expandTrigger:Qo,expandIcon:Fi,loadingIcon:xo,dropdownMenuColumnStyle:dt}},[Li,js,Wr,Qr,aa,$a,Pi,Tu,Ko,Xn,Qo,Fi,xo,dt]),$l=!(Yu?Tu:Li).length,Mu=Yu&&ru.matchInputWidth||$l?{}:{minWidth:"auto"};return P.createElement(he.Provider,{value:au},P.createElement(C.Ac,(0,B.Z)({},ko,{ref:bn,id:As,prefixCls:Mo,autoClearSearchValue:So,dropdownMatchSelectWidth:Ps,dropdownStyle:(0,V.Z)((0,V.Z)({},Mu),$e),displayValues:es,onDisplayValuesChange:Js,mode:ia?"multiple":void 0,searchValue:Yu,onSearch:Hu,showSearch:fu,OptionList:it,emptyOptions:$l,open:Kl,dropdownClassName:ya,placement:Ta,onDropdownVisibleChange:Xa,getRawInputElement:function(){return Vi}})))});en.SHOW_PARENT=pt,en.SHOW_CHILD=st,en.Panel=Pn;var Cn=en,lr=Cn,pr=y(98423),an=y(87263),wr=y(33603),Cr=y(8745),Ei=y(9708),vo=y(53124),kr=y(88258),ro=y(98866),qi=y(35792),bo=y(98675),xn=y(65223),pn=y(87244),Dt=y(13458),Zt=y(43277),vn=y(78642),$n=y(4173);function Ar(Jr,bn){const{getPrefixCls:Or,direction:qo,renderEmpty:Mo}=P.useContext(vo.E_),vs=bn||qo,Na=Or("select",Jr),ho=Or("cascader",Jr);return[Na,ho,vs,Mo]}function Dr(Jr,bn){return P.useMemo(()=>bn?P.createElement("span",{className:`${Jr}-checkbox-inner`}):!1,[bn])}var dr=y(62946),Yt=y(22508),wn=y(68843);function Qn(Jr,bn,Or){let qo=Or;Or||(qo=bn?P.createElement(dr.Z,null):P.createElement(wn.Z,null));const Mo=P.createElement("span",{className:`${Jr}-menu-item-loading-icon`},P.createElement(Yt.Z,{spin:!0}));return[qo,Mo]}var Mr=y(80110),Wi=y(91945),Dn=y(43109),Kn=y(63185),nr=y(14747),yi=Jr=>{const{prefixCls:bn,componentCls:Or}=Jr,qo=`${Or}-menu-item`,Mo=` + &${qo}-expand ${qo}-expand-icon, + ${qo}-loading-icon +`;return[(0,Kn.C2)(`${bn}-checkbox`,Jr),{[Or]:{"&-checkbox":{top:0,marginInlineEnd:Jr.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Or}-menu-empty`]:{[`${Or}-menu`]:{width:"100%",height:"auto",[qo]:{color:Jr.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:Jr.controlItemWidth,height:Jr.dropdownHeight,margin:0,padding:Jr.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,Dn.bf)(Jr.lineWidth)} ${Jr.lineType} ${Jr.colorSplit}`},"&-item":Object.assign(Object.assign({},nr.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Jr.optionPadding,lineHeight:Jr.lineHeight,cursor:"pointer",transition:`all ${Jr.motionDurationMid}`,borderRadius:Jr.borderRadiusSM,"&:hover":{background:Jr.controlItemBgHover},"&-disabled":{color:Jr.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Mo]:{color:Jr.colorTextDisabled}},[`&-active:not(${qo}-disabled)`]:{["&, &:hover"]:{fontWeight:Jr.optionSelectedFontWeight,backgroundColor:Jr.optionSelectedBg}},"&-content":{flex:"auto"},[Mo]:{marginInlineStart:Jr.paddingXXS,color:Jr.colorTextDescription,fontSize:Jr.fontSizeIcon},"&-keyword":{color:Jr.colorHighlight}})}}}]};const Hr=Jr=>{const{componentCls:bn,antCls:Or}=Jr;return[{[bn]:{width:Jr.controlWidth}},{[`${bn}-dropdown`]:[{[`&${Or}-select-dropdown`]:{padding:0}},yi(Jr)]},{[`${bn}-dropdown-rtl`]:{direction:"rtl"}},(0,Mr.c)(Jr)]},ci=Jr=>{const bn=Math.round((Jr.controlHeight-Jr.fontSize*Jr.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Jr.controlItemBgActive,optionSelectedFontWeight:Jr.fontWeightStrong,optionPadding:`${bn}px ${Jr.paddingSM}px`,menuPadding:Jr.paddingXXS}};var gi=(0,Wi.I$)("Cascader",Jr=>[Hr(Jr)],ci);const mi=Jr=>{const{componentCls:bn}=Jr;return{[`${bn}-panel`]:[yi(Jr),{display:"inline-flex",border:`${(0,Dn.bf)(Jr.lineWidth)} ${Jr.lineType} ${Jr.colorSplit}`,borderRadius:Jr.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${bn}-menus`]:{alignItems:"stretch"},[`${bn}-menu`]:{height:"auto"},"&-empty":{padding:Jr.paddingXXS}}]}};var Bi=(0,Wi.ZP)(["Cascader","Panel"],Jr=>mi(Jr),ci);function Nr(Jr){const{prefixCls:bn,className:Or,multiple:qo,rootClassName:Mo,notFoundContent:vs,direction:Na,expandIcon:ho}=Jr,[aa,Ka,Si,Pi]=Ar(bn,Na),to=(0,qi.Z)(Ka),[So,ps]=gi(Ka,to);Bi(Ka);const Wn=Si==="rtl",[yo,Qo]=Qn(aa,Wn,ho),ss=vs||(Pi==null?void 0:Pi("Cascader"))||P.createElement(kr.Z,{componentName:"Cascader"}),Ko=Dr(Ka,qo);return So(P.createElement(Pn,Object.assign({},Jr,{checkable:Ko,prefixCls:Ka,className:b()(Or,ps,Mo,to),notFoundContent:ss,direction:Si,expandIcon:yo,loadingIcon:Qo})))}var Kr=function(Jr,bn){var Or={};for(var qo in Jr)Object.prototype.hasOwnProperty.call(Jr,qo)&&bn.indexOf(qo)<0&&(Or[qo]=Jr[qo]);if(Jr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mo=0,qo=Object.getOwnPropertySymbols(Jr);Moaa===0?[ho]:[].concat((0,v.Z)(Na),[bn,ho]),[]),Mo=[];let vs=0;return qo.forEach((Na,ho)=>{const aa=vs+Na.length;let Ka=Jr.slice(vs,aa);vs=aa,ho%2===1&&(Ka=P.createElement("span",{className:`${Or}-menu-item-keyword`,key:`separator-${ho}`},Ka)),Mo.push(Ka)}),Mo}const gs=(Jr,bn,Or,qo)=>{const Mo=[],vs=Jr.toLowerCase();return bn.forEach((Na,ho)=>{ho!==0&&Mo.push(" / ");let aa=Na[qo.label];const Ka=typeof aa;(Ka==="string"||Ka==="number")&&(aa=Ur(String(aa),vs,Or)),Mo.push(aa)}),Mo},Gr=P.forwardRef((Jr,bn)=>{var Or;const{prefixCls:qo,size:Mo,disabled:vs,className:Na,rootClassName:ho,multiple:aa,bordered:Ka=!0,transitionName:Si,choiceTransitionName:Pi="",popupClassName:to,dropdownClassName:So,expandIcon:ps,placement:Wn,showSearch:yo,allowClear:Qo=!0,notFoundContent:ss,direction:Ko,getPopupContainer:Xn,status:Rr,showArrow:Xr,builtinPlacements:Ze,style:ht}=Jr,dt=Kr(Jr,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),$e=(0,pr.Z)(dt,["suffixIcon"]),{getPopupContainer:ft,getPrefixCls:Lt,popupOverflow:gn,cascader:rr}=P.useContext(vo.E_),{status:zr,hasFeedback:Fi,isFormItemInput:xo,feedbackIcon:Vi}=P.useContext(xn.aM),zs=(0,Ei.F)(zr,Rr),[Ps,Ms,ks,ko]=Ar(qo,Ko),As=ks==="rtl",ia=Lt(),za=(0,qi.Z)(Ps),[Zl,Hl]=(0,pn.Z)(Ps,za),fs=(0,qi.Z)(Ms),[js]=gi(Ms,fs),{compactSize:hl,compactItemClassnames:Xo}=(0,$n.ri)(Ps,Ko),Li=ss||(ko==null?void 0:ko("Cascader"))||P.createElement(kr.Z,{componentName:"Cascader"}),Yo=b()(to||So,`${Ms}-dropdown`,{[`${Ms}-dropdown-rtl`]:ks==="rtl"},ho,za,fs,Hl),Os=P.useMemo(()=>{if(!yo)return yo;let _o={render:gs};return typeof yo=="object"&&(_o=Object.assign(Object.assign({},_o),yo)),_o},[yo]),Cs=(0,bo.Z)(_o=>{var us;return(us=Mo!=null?Mo:hl)!==null&&us!==void 0?us:_o}),ba=P.useContext(ro.Z),Yu=vs!=null?vs:ba,[pc,Hu]=Qn(Ps,As,ps),wh=Dr(Ms,aa),lh=(0,vn.Z)(Jr.suffixIcon,Xr),{suffixIcon:fu,removeIcon:ru,clearIcon:Tu}=(0,Zt.Z)(Object.assign(Object.assign({},Jr),{hasFeedback:Fi,feedbackIcon:Vi,showSuffixIcon:lh,multiple:aa,prefixCls:Ps,componentName:"Cascader"})),wi=P.useMemo(()=>Wn!==void 0?Wn:As?"bottomRight":"bottomLeft",[Wn,As]),er=(0,Dt.Z)(Ze,gn),Un=Qo===!0?{clearIcon:Tu}:Qo,[Wr]=(0,an.Cn)("SelectLike",(Or=$e.dropdownStyle)===null||Or===void 0?void 0:Or.zIndex),Qr=P.createElement(lr,Object.assign({prefixCls:Ps,className:b()(!qo&&Ms,{[`${Ps}-lg`]:Cs==="large",[`${Ps}-sm`]:Cs==="small",[`${Ps}-rtl`]:As,[`${Ps}-borderless`]:!Ka,[`${Ps}-in-form-item`]:xo},(0,Ei.Z)(Ps,zs,Fi),Xo,rr==null?void 0:rr.className,Na,ho,za,fs,Hl),disabled:Yu,style:Object.assign(Object.assign({},rr==null?void 0:rr.style),ht)},$e,{builtinPlacements:er,direction:ks,placement:wi,notFoundContent:Li,allowClear:Un,showSearch:Os,expandIcon:pc,suffixIcon:fu,removeIcon:ru,loadingIcon:Hu,checkable:wh,dropdownClassName:Yo,dropdownPrefixCls:qo||Ms,dropdownStyle:Object.assign(Object.assign({},$e.dropdownStyle),{zIndex:Wr}),choiceTransitionName:(0,wr.m)(ia,"",Pi),transitionName:(0,wr.m)(ia,"slide-up",Si),getPopupContainer:Xn||ft,ref:bn}));return js(Zl(Qr))}),ni=(0,Cr.Z)(Gr);Gr.SHOW_PARENT=ns,Gr.SHOW_CHILD=Qi,Gr.Panel=Nr,Gr._InternalPanelDoNotUseOrYouWillBeFired=ni;var is=Gr},63185:function(yt,Y,y){"use strict";y.d(Y,{C2:function(){return V}});var v=y(43109),P=y(14747),w=y(45503),b=y(91945);const B=k=>{const{checkboxCls:R}=k,C=`${R}-wrapper`;return[{[`${R}-group`]:Object.assign(Object.assign({},(0,P.Wf)(k)),{display:"inline-flex",flexWrap:"wrap",columnGap:k.marginXS,[`> ${k.antCls}-row`]:{flex:1}}),[C]:Object.assign(Object.assign({},(0,P.Wf)(k)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${C}`]:{marginInlineStart:0},[`&${C}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[R]:Object.assign(Object.assign({},(0,P.Wf)(k)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:k.borderRadiusSM,alignSelf:"center",[`${R}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${R}-inner`]:Object.assign({},(0,P.oN)(k))},[`${R}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:k.checkboxSize,height:k.checkboxSize,direction:"ltr",backgroundColor:k.colorBgContainer,border:`${(0,v.bf)(k.lineWidth)} ${k.lineType} ${k.colorBorder}`,borderRadius:k.borderRadiusSM,borderCollapse:"separate",transition:`all ${k.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:k.calc(k.checkboxSize).div(14).mul(5).equal(),height:k.calc(k.checkboxSize).div(14).mul(8).equal(),border:`${(0,v.bf)(k.lineWidthBold)} solid ${k.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${k.motionDurationFast} ${k.motionEaseInBack}, opacity ${k.motionDurationFast}`}},"& + span":{paddingInlineStart:k.paddingXS,paddingInlineEnd:k.paddingXS}})},{[` ${C}:not(${C}-disabled), - ${M}:not(${M}-disabled) - `]:{[`&:hover ${M}-inner`]:{borderColor:k.colorPrimary}},[`${C}:not(${C}-disabled)`]:{[`&:hover ${M}-checked:not(${M}-disabled) ${M}-inner`]:{backgroundColor:k.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${M}-checked:not(${M}-disabled):after`]:{borderColor:k.colorPrimaryHover}}},{[`${M}-checked`]:{[`${M}-inner`]:{backgroundColor:k.colorPrimary,borderColor:k.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${k.motionDurationMid} ${k.motionEaseOutBack} ${k.motionDurationFast}`}}},[` + ${R}:not(${R}-disabled) + `]:{[`&:hover ${R}-inner`]:{borderColor:k.colorPrimary}},[`${C}:not(${C}-disabled)`]:{[`&:hover ${R}-checked:not(${R}-disabled) ${R}-inner`]:{backgroundColor:k.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${R}-checked:not(${R}-disabled):after`]:{borderColor:k.colorPrimaryHover}}},{[`${R}-checked`]:{[`${R}-inner`]:{backgroundColor:k.colorPrimary,borderColor:k.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${k.motionDurationMid} ${k.motionEaseOutBack} ${k.motionDurationFast}`}}},[` ${C}-checked:not(${C}-disabled), - ${M}-checked:not(${M}-disabled) - `]:{[`&:hover ${M}-inner`]:{backgroundColor:k.colorPrimaryHover,borderColor:"transparent"}}},{[M]:{"&-indeterminate":{[`${M}-inner`]:{backgroundColor:k.colorBgContainer,borderColor:k.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:k.calc(k.fontSizeLG).div(2).equal(),height:k.calc(k.fontSizeLG).div(2).equal(),backgroundColor:k.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${C}-disabled`]:{cursor:"not-allowed"},[`${M}-disabled`]:{[`&, ${M}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${M}-inner`]:{background:k.colorBgContainerDisabled,borderColor:k.colorBorder,"&:after":{borderColor:k.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:k.colorTextDisabled},[`&${M}-indeterminate ${M}-inner::after`]:{background:k.colorTextDisabled}}}]};function V(k,M){const C=(0,w.TS)(M,{checkboxCls:`.${k}`,checkboxSize:M.controlInteractiveSize});return[B(C)]}Y.ZP=(0,b.I$)("Checkbox",(k,M)=>{let{prefixCls:C}=M;return[V(C,k)]})},87979:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return Si}});var v=_(77617),R=_(12124),w=_.n(R),b=_(84381),B=_(52910),V=_(11201),k=_(51059),M=_(20170),C=_(40053),g=_(1220),A=_(34735),O=_(78666),K=_(57947),ce=_(19623),de=_(61796),ve=_(35005),Ee=_(61860),_e=_(36439),we=_(67873),ot=_(22695),He=_(66217),vt=_(81275),dt=_(33649),Pe=_(96522),De=_(64993),Ae=["b"],Re=["v"],$e=function(Un){return Math.round(Number(Un||0))},Ie=function(Un){if(Un&&(0,Pe.Z)(Un)==="object"&&"h"in Un&&"b"in Un){var jr=Un,Qr=jr.b,_o=(0,dt.Z)(jr,Ae);return(0,_e.Z)((0,_e.Z)({},_o),{},{v:Qr})}return typeof Un=="string"&&/hsb/.test(Un)?Un.replace(/hsb/,"hsv"):Un},Xe=function(tr){(0,He.Z)(jr,tr);var Un=(0,vt.Z)(jr);function jr(Qr){return(0,we.Z)(this,jr),Un.call(this,Ie(Qr))}return(0,ot.Z)(jr,[{key:"toHsbString",value:function(){var _o=this.toHsb(),us=$e(_o.s*100),ns=$e(_o.b*100),Oa=$e(_o.h),ga=_o.a,Va="hsb(".concat(Oa,", ").concat(us,"%, ").concat(ns,"%)"),ea="hsba(".concat(Oa,", ").concat(us,"%, ").concat(ns,"%, ").concat(ga.toFixed(ga===0?0:2),")");return ga===1?Va:ea}},{key:"toHsb",value:function(){var _o=this.toHsv();(0,Pe.Z)(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(_o=this.originalInput);var us=_o,ns=us.v,Oa=(0,dt.Z)(us,Re);return(0,_e.Z)((0,_e.Z)({},Oa),{},{b:_o.v})}}]),jr}(De.C),ze="rc-color-picker",Kt=function(Un){return Un instanceof Xe?Un:new Xe(Un)},St=Kt("#1677ff"),nt=function(Un){var jr=Un.offset,Qr=Un.targetRef,_o=Un.containerRef,us=Un.color,ns=Un.type,Oa=_o.current.getBoundingClientRect(),ga=Oa.width,Va=Oa.height,ea=Qr.current.getBoundingClientRect(),Xl=ea.width,_a=ea.height,Ta=Xl/2,Ya=_a/2,cu=(jr.x+Ta)/ga,jl=1-(jr.y+Ya)/Va,Mu=us.toHsb(),Bl=cu,wl=(jr.x+Ta)/ga*360;if(ns)switch(ns){case"hue":return Kt((0,_e.Z)((0,_e.Z)({},Mu),{},{h:wl<=0?0:wl}));case"alpha":return Kt((0,_e.Z)((0,_e.Z)({},Mu),{},{a:Bl<=0?0:Bl}))}return Kt({h:Mu.h,s:cu<=0?0:cu,b:jl>=1?1:jl,a:Mu.a})},Ct=function(Un,jr,Qr,_o){var us=Un.current.getBoundingClientRect(),ns=us.width,Oa=us.height,ga=jr.current.getBoundingClientRect(),Va=ga.width,ea=ga.height,Xl=Va/2,_a=ea/2,Ta=Qr.toHsb();if(!(Va===0&&ea===0||Va!==ea)){if(_o)switch(_o){case"hue":return{x:Ta.h/360*ns-Xl,y:-_a/3};case"alpha":return{x:Ta.a/1*ns-Xl,y:-_a/3}}return{x:Ta.s*ns-Xl,y:(1-Ta.b)*Oa-_a}}},lt=function(Un){var jr=Un.color,Qr=Un.prefixCls,_o=Un.className,us=Un.style,ns=Un.onClick,Oa="".concat(Qr,"-color-block");return v.createElement("div",{className:w()(Oa,_o),style:us,onClick:ns},v.createElement("div",{className:"".concat(Oa,"-inner"),style:{background:jr}}))},Gt=lt;function Rt(tr){var Un="touches"in tr?tr.touches[0]:tr,jr=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,Qr=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:Un.pageX-jr,pageY:Un.pageY-Qr}}function an(tr){var Un=tr.offset,jr=tr.targetRef,Qr=tr.containerRef,_o=tr.direction,us=tr.onDragChange,ns=tr.onDragChangeComplete,Oa=tr.calculate,ga=tr.color,Va=tr.disabledDrag,ea=(0,v.useState)(Un||{x:0,y:0}),Xl=(0,Ee.Z)(ea,2),_a=Xl[0],Ta=Xl[1],Ya=(0,v.useRef)(null),cu=(0,v.useRef)(null),jl=(0,v.useRef)({flag:!1});(0,v.useEffect)(function(){if(jl.current.flag===!1){var nc=Oa==null?void 0:Oa(Qr);nc&&Ta(nc)}},[ga,Qr]),(0,v.useEffect)(function(){return function(){document.removeEventListener("mousemove",Ya.current),document.removeEventListener("mouseup",cu.current),document.removeEventListener("touchmove",Ya.current),document.removeEventListener("touchend",cu.current),Ya.current=null,cu.current=null}},[]);var Mu=function(Iu){var Pc=Rt(Iu),Wc=Pc.pageX,cd=Pc.pageY,Fc=Qr.current.getBoundingClientRect(),vh=Fc.x,Td=Fc.y,Gh=Fc.width,yh=Fc.height,kc=jr.current.getBoundingClientRect(),Kh=kc.width,$f=kc.height,Vf=Kh/2,_h=$f/2,Qh=Math.max(0,Math.min(Wc-vh,Gh))-Vf,Mh=Math.max(0,Math.min(cd-Td,yh))-_h,Wd={x:Qh,y:_o==="x"?_a.y:Mh};if(Kh===0&&$f===0||Kh!==$f)return!1;Ta(Wd),us==null||us(Wd)},Bl=function(Iu){Iu.preventDefault(),Mu(Iu)},wl=function(Iu){Iu.preventDefault(),jl.current.flag=!1,document.removeEventListener("mousemove",Ya.current),document.removeEventListener("mouseup",cu.current),document.removeEventListener("touchmove",Ya.current),document.removeEventListener("touchend",cu.current),Ya.current=null,cu.current=null,ns==null||ns()},Tn=function(Iu){document.removeEventListener("mousemove",Ya.current),document.removeEventListener("mouseup",cu.current),!Va&&(Mu(Iu),jl.current.flag=!0,document.addEventListener("mousemove",Bl),document.addEventListener("mouseup",wl),document.addEventListener("touchmove",Bl),document.addEventListener("touchend",wl),Ya.current=Bl,cu.current=wl)};return[_a,Tn]}var cn=an,Cr=function(Un){var jr=Un.size,Qr=jr===void 0?"default":jr,_o=Un.color,us=Un.prefixCls;return v.createElement("div",{className:w()("".concat(us,"-handler"),(0,ve.Z)({},"".concat(us,"-handler-sm"),Qr==="small")),style:{backgroundColor:_o}})},ii=Cr,Pi=function(Un){var jr=Un.children,Qr=Un.style,_o=Un.prefixCls;return v.createElement("div",{className:"".concat(_o,"-palette"),style:(0,_e.Z)({position:"relative"},Qr)},jr)},Ni=Pi,Yi=(0,v.forwardRef)(function(tr,Un){var jr=tr.children,Qr=tr.offset;return v.createElement("div",{ref:Un,style:{position:"absolute",left:Qr.x,top:Qr.y,zIndex:1}},jr)}),ti=Yi,Ts=function(Un){var jr=Un.color,Qr=Un.onChange,_o=Un.prefixCls,us=Un.onChangeComplete,ns=Un.disabled,Oa=(0,v.useRef)(),ga=(0,v.useRef)(),Va=(0,v.useRef)(jr),ea=cn({color:jr,containerRef:Oa,targetRef:ga,calculate:function(cu){return Ct(cu,ga,jr)},onDragChange:function(cu){var jl=nt({offset:cu,targetRef:ga,containerRef:Oa,color:jr});Va.current=jl,Qr(jl)},onDragChangeComplete:function(){return us==null?void 0:us(Va.current)},disabledDrag:ns}),Xl=(0,Ee.Z)(ea,2),_a=Xl[0],Ta=Xl[1];return v.createElement("div",{ref:Oa,className:"".concat(_o,"-select"),onMouseDown:Ta,onTouchStart:Ta},v.createElement(Ni,{prefixCls:_o},v.createElement(ti,{offset:_a,ref:ga},v.createElement(ii,{color:jr.toRgbString(),prefixCls:_o})),v.createElement("div",{className:"".concat(_o,"-saturation"),style:{backgroundColor:"hsl(".concat(jr.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Bs=Ts,Ce=function(Un){var jr=Un.colors,Qr=Un.children,_o=Un.direction,us=_o===void 0?"to right":_o,ns=Un.type,Oa=Un.prefixCls,ga=(0,v.useMemo)(function(){return jr.map(function(Va,ea){var Xl=Kt(Va);return ns==="alpha"&&ea===jr.length-1&&Xl.setAlpha(1),Xl.toRgbString()}).join(",")},[jr,ns]);return v.createElement("div",{className:"".concat(Oa,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(us,", ").concat(ga,")")}},Qr)},Gi=Ce,qi=function(Un){var jr=Un.gradientColors,Qr=Un.direction,_o=Un.type,us=_o===void 0?"hue":_o,ns=Un.color,Oa=Un.value,ga=Un.onChange,Va=Un.onChangeComplete,ea=Un.disabled,Xl=Un.prefixCls,_a=(0,v.useRef)(),Ta=(0,v.useRef)(),Ya=(0,v.useRef)(ns),cu=cn({color:ns,targetRef:Ta,containerRef:_a,calculate:function(Tn){return Ct(Tn,Ta,ns,us)},onDragChange:function(Tn){var nc=nt({offset:Tn,targetRef:Ta,containerRef:_a,color:ns,type:us});Ya.current=nc,ga(nc)},onDragChangeComplete:function(){Va==null||Va(Ya.current,us)},direction:"x",disabledDrag:ea}),jl=(0,Ee.Z)(cu,2),Mu=jl[0],Bl=jl[1];return v.createElement("div",{ref:_a,className:w()("".concat(Xl,"-slider"),"".concat(Xl,"-slider-").concat(us)),onMouseDown:Bl,onTouchStart:Bl},v.createElement(Ni,{prefixCls:Xl},v.createElement(ti,{offset:Mu,ref:Ta},v.createElement(ii,{size:"small",color:Oa,prefixCls:Xl})),v.createElement(Gi,{colors:jr,direction:Qr,type:us,prefixCls:Xl})))},co=qi;function fi(tr){return tr!==void 0}var Ms=function(Un,jr){var Qr=jr.defaultValue,_o=jr.value,us=(0,v.useState)(function(){var Va;return fi(_o)?Va=_o:fi(Qr)?Va=Qr:Va=Un,Kt(Va)}),ns=(0,Ee.Z)(us,2),Oa=ns[0],ga=ns[1];return(0,v.useEffect)(function(){_o&&ga(Kt(_o))},[_o]),[Oa,ga]},In=Ms,et=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"],Dt=(0,v.forwardRef)(function(tr,Un){var jr=tr.value,Qr=tr.defaultValue,_o=tr.prefixCls,us=_o===void 0?ze:_o,ns=tr.onChange,Oa=tr.onChangeComplete,ga=tr.className,Va=tr.style,ea=tr.panelRender,Xl=tr.disabledAlpha,_a=Xl===void 0?!1:Xl,Ta=tr.disabled,Ya=Ta===void 0?!1:Ta,cu=In(St,{value:jr,defaultValue:Qr}),jl=(0,Ee.Z)(cu,2),Mu=jl[0],Bl=jl[1],wl=(0,v.useMemo)(function(){var Wc=Kt(Mu.toRgbString());return Wc.setAlpha(1),Wc.toRgbString()},[Mu]),Tn=w()("".concat(us,"-panel"),ga,(0,ve.Z)({},"".concat(us,"-panel-disabled"),Ya)),nc={prefixCls:us,onChangeComplete:Oa,disabled:Ya},Iu=function(cd,Fc){jr||Bl(cd),ns==null||ns(cd,Fc)},Pc=v.createElement(v.Fragment,null,v.createElement(Bs,(0,de.Z)({color:Mu,onChange:Iu},nc)),v.createElement("div",{className:"".concat(us,"-slider-container")},v.createElement("div",{className:w()("".concat(us,"-slider-group"),(0,ve.Z)({},"".concat(us,"-slider-group-disabled-alpha"),_a))},v.createElement(co,(0,de.Z)({gradientColors:et,color:Mu,value:"hsl(".concat(Mu.toHsb().h,",100%, 50%)"),onChange:function(cd){return Iu(cd,"hue")}},nc)),!_a&&v.createElement(co,(0,de.Z)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",wl],color:Mu,value:Mu.toRgbString(),onChange:function(cd){return Iu(cd,"alpha")}},nc))),v.createElement(Gt,{color:Mu.toRgbString(),prefixCls:us})));return v.createElement("div",{className:Tn,style:Va,ref:Un},typeof ea=="function"?ea(Pc):Pc)}),$t=Dt;const Dn=v.createContext({}),gr=v.createContext({}),{Provider:kn}=Dn,{Provider:bn}=gr,zt=(tr,Un)=>(tr==null?void 0:tr.replace(/[^\w/]/gi,"").slice(0,Un?8:6))||"",Jt=(tr,Un)=>tr?zt(tr,Un):"";let yn=function(){function tr(Un){(0,we.Z)(this,tr),this.metaColor=new Xe(Un),Un||this.metaColor.setAlpha(0)}return(0,ot.Z)(tr,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Jt(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),tr}();const fr="ant-color-picker",vr=tr=>tr instanceof yn?tr:new yn(tr),pn=tr=>Math.round(Number(tr||0)),wr=tr=>pn(tr.toHsb().a*100),Sr=(tr,Un)=>{const jr=tr.toHsb();return jr.a=Un||1,vr(jr)};var mo=tr=>{let{prefixCls:Un,value:jr,colorCleared:Qr,onChange:_o}=tr;const us=()=>{if(jr&&!Qr){const ns=jr.toHsb();ns.a=0;const Oa=vr(ns);_o==null||_o(Oa)}};return v.createElement("div",{className:`${Un}-clear`,onClick:us})},Fr=_(81661),to;(function(tr){tr.hex="hex",tr.rgb="rgb",tr.hsb="hsb"})(to||(to={}));var Ji=_(79011),xn=tr=>{let{prefixCls:Un,min:jr=0,max:Qr=100,value:_o,onChange:us,className:ns,formatter:Oa}=tr;const ga=`${Un}-steppers`,[Va,ea]=(0,v.useState)(_o);return(0,v.useEffect)(()=>{Number.isNaN(_o)||ea(_o)},[_o]),v.createElement(Ji.Z,{className:w()(ga,ns),min:jr,max:Qr,value:Va,formatter:Oa,size:"small",onChange:Xl=>{_o||ea(Xl||0),us==null||us(Xl)}})},It=tr=>{let{prefixCls:Un,value:jr,onChange:Qr}=tr;const _o=`${Un}-alpha-input`,[us,ns]=(0,v.useState)(vr(jr||"#000"));(0,v.useEffect)(()=>{jr&&ns(jr)},[jr]);const Oa=ga=>{const Va=us.toHsb();Va.a=(ga||0)/100;const ea=vr(Va);jr||ns(ea),Qr==null||Qr(ea)};return v.createElement(xn,{value:wr(us),prefixCls:Un,formatter:ga=>`${ga}%`,className:_o,onChange:Oa})},Zt=_(24431);const gn=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,$n=tr=>gn.test(`#${tr}`);var Dr=tr=>{let{prefixCls:Un,value:jr,onChange:Qr}=tr;const _o=`${Un}-hex-input`,[us,ns]=(0,v.useState)(jr==null?void 0:jr.toHex());(0,v.useEffect)(()=>{const ga=jr==null?void 0:jr.toHex();$n(ga)&&jr&&ns(zt(ga))},[jr]);const Oa=ga=>{const Va=ga.target.value;ns(zt(Va)),$n(zt(Va,!0))&&(Qr==null||Qr(vr(Va)))};return v.createElement(Zt.Z,{className:_o,value:us,prefix:"#",onChange:Oa,size:"small"})},Xt=tr=>{let{prefixCls:Un,value:jr,onChange:Qr}=tr;const _o=`${Un}-hsb-input`,[us,ns]=(0,v.useState)(vr(jr||"#000"));(0,v.useEffect)(()=>{jr&&ns(jr)},[jr]);const Oa=(ga,Va)=>{const ea=us.toHsb();ea[Va]=Va==="h"?ga:(ga||0)/100;const Xl=vr(ea);jr||ns(Xl),Qr==null||Qr(Xl)};return v.createElement("div",{className:_o},v.createElement(xn,{max:360,min:0,value:Number(us.toHsb().h),prefixCls:Un,className:_o,formatter:ga=>pn(ga||0).toString(),onChange:ga=>Oa(Number(ga),"h")}),v.createElement(xn,{max:100,min:0,value:Number(us.toHsb().s)*100,prefixCls:Un,className:_o,formatter:ga=>`${pn(ga||0)}%`,onChange:ga=>Oa(Number(ga),"s")}),v.createElement(xn,{max:100,min:0,value:Number(us.toHsb().b)*100,prefixCls:Un,className:_o,formatter:ga=>`${pn(ga||0)}%`,onChange:ga=>Oa(Number(ga),"b")}))},er=tr=>{let{prefixCls:Un,value:jr,onChange:Qr}=tr;const _o=`${Un}-rgb-input`,[us,ns]=(0,v.useState)(vr(jr||"#000"));(0,v.useEffect)(()=>{jr&&ns(jr)},[jr]);const Oa=(ga,Va)=>{const ea=us.toRgb();ea[Va]=ga||0;const Xl=vr(ea);jr||ns(Xl),Qr==null||Qr(Xl)};return v.createElement("div",{className:_o},v.createElement(xn,{max:255,min:0,value:Number(us.toRgb().r),prefixCls:Un,className:_o,onChange:ga=>Oa(Number(ga),"r")}),v.createElement(xn,{max:255,min:0,value:Number(us.toRgb().g),prefixCls:Un,className:_o,onChange:ga=>Oa(Number(ga),"g")}),v.createElement(xn,{max:255,min:0,value:Number(us.toRgb().b),prefixCls:Un,className:_o,onChange:ga=>Oa(Number(ga),"b")}))};const Mr=[to.hex,to.hsb,to.rgb].map(tr=>({value:tr,label:tr.toLocaleUpperCase()}));var An=tr=>{const{prefixCls:Un,format:jr,value:Qr,disabledAlpha:_o,onFormatChange:us,onChange:ns}=tr,[Oa,ga]=(0,b.Z)(to.hex,{value:jr,onChange:us}),Va=`${Un}-input`,ea=_a=>{ga(_a)},Xl=(0,v.useMemo)(()=>{const _a={value:Qr,prefixCls:Un,onChange:ns};switch(Oa){case to.hsb:return v.createElement(Xt,Object.assign({},_a));case to.rgb:return v.createElement(er,Object.assign({},_a));case to.hex:default:return v.createElement(Dr,Object.assign({},_a))}},[Oa,Un,Qr,ns]);return v.createElement("div",{className:`${Va}-container`},v.createElement(Fr.Z,{value:Oa,bordered:!1,getPopupContainer:_a=>_a,popupMatchSelectWidth:68,placement:"bottomRight",onChange:ea,className:`${Un}-format-select`,size:"small",options:Mr}),v.createElement("div",{className:Va},Xl),!_o&&v.createElement(It,{prefixCls:Un,value:Qr,onChange:ns}))},Xn=function(tr,Un){var jr={};for(var Qr in tr)Object.prototype.hasOwnProperty.call(tr,Qr)&&Un.indexOf(Qr)<0&&(jr[Qr]=tr[Qr]);if(tr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _o=0,Qr=Object.getOwnPropertySymbols(tr);_o{const tr=(0,v.useContext)(Dn),{prefixCls:Un,colorCleared:jr,allowClear:Qr,value:_o,disabledAlpha:us,onChange:ns,onClear:Oa,onChangeComplete:ga}=tr,Va=Xn(tr,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return v.createElement(v.Fragment,null,Qr&&v.createElement(mo,Object.assign({prefixCls:Un,value:_o,colorCleared:jr,onChange:ea=>{ns==null||ns(ea),Oa==null||Oa()}},Va)),v.createElement($t,{prefixCls:Un,value:_o==null?void 0:_o.toHsb(),disabledAlpha:us,onChange:(ea,Xl)=>ns==null?void 0:ns(ea,Xl,!0),onChangeComplete:ga}),v.createElement(An,Object.assign({value:_o,onChange:ns,prefixCls:Un,disabledAlpha:us},Va)))},vi=_(22311),Hr=_(40877),di=_(36014),gi=_(45659),mi=_(44516),Bi=_(84821),zr=v.forwardRef(function(tr,Un){var jr,Qr=tr.prefixCls,_o=tr.forceRender,us=tr.className,ns=tr.style,Oa=tr.children,ga=tr.isActive,Va=tr.role,ea=v.useState(ga||_o),Xl=(0,Ee.Z)(ea,2),_a=Xl[0],Ta=Xl[1];return v.useEffect(function(){(_o||ga)&&Ta(!0)},[_o,ga]),_a?v.createElement("div",{ref:Un,className:w()("".concat(Qr,"-content"),(jr={},(0,ve.Z)(jr,"".concat(Qr,"-content-active"),ga),(0,ve.Z)(jr,"".concat(Qr,"-content-inactive"),!ga),jr),us),style:ns,role:Va},v.createElement("div",{className:"".concat(Qr,"-content-box")},Oa)):null});zr.displayName="PanelContent";var Xr=zr,Qi=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],rs=v.forwardRef(function(tr,Un){var jr,Qr,_o=tr.showArrow,us=_o===void 0?!0:_o,ns=tr.headerClass,Oa=tr.isActive,ga=tr.onItemClick,Va=tr.forceRender,ea=tr.className,Xl=tr.prefixCls,_a=tr.collapsible,Ta=tr.accordion,Ya=tr.panelKey,cu=tr.extra,jl=tr.header,Mu=tr.expandIcon,Bl=tr.openMotion,wl=tr.destroyInactivePanel,Tn=tr.children,nc=(0,dt.Z)(tr,Qi),Iu=_a==="disabled",Pc=_a==="header",Wc=_a==="icon",cd=cu!=null&&typeof cu!="boolean",Fc=function(){ga==null||ga(Ya)},vh=function($f){($f.key==="Enter"||$f.keyCode===Bi.Z.ENTER||$f.which===Bi.Z.ENTER)&&Fc()},Td=typeof Mu=="function"?Mu(tr):v.createElement("i",{className:"arrow"});Td&&(Td=v.createElement("div",{className:"".concat(Xl,"-expand-icon"),onClick:["header","icon"].includes(_a)?Fc:void 0},Td));var Gh=w()((jr={},(0,ve.Z)(jr,"".concat(Xl,"-item"),!0),(0,ve.Z)(jr,"".concat(Xl,"-item-active"),Oa),(0,ve.Z)(jr,"".concat(Xl,"-item-disabled"),Iu),jr),ea),yh=w()(ns,(Qr={},(0,ve.Z)(Qr,"".concat(Xl,"-header"),!0),(0,ve.Z)(Qr,"".concat(Xl,"-header-collapsible-only"),Pc),(0,ve.Z)(Qr,"".concat(Xl,"-icon-collapsible-only"),Wc),Qr)),kc={className:yh,"aria-expanded":Oa,"aria-disabled":Iu,onKeyDown:vh};return!Pc&&!Wc&&(kc.onClick=Fc,kc.role=Ta?"tab":"button",kc.tabIndex=Iu?-1:0),v.createElement("div",(0,de.Z)({},nc,{ref:Un,className:Gh}),v.createElement("div",kc,us&&Td,v.createElement("span",{className:"".concat(Xl,"-header-text"),onClick:_a==="header"?Fc:void 0},jl),cd&&v.createElement("div",{className:"".concat(Xl,"-extra")},cu)),v.createElement(mi.ZP,(0,de.Z)({visible:Oa,leavedClassName:"".concat(Xl,"-content-hidden")},Bl,{forceRender:Va,removeOnLeave:wl}),function(Kh,$f){var Vf=Kh.className,_h=Kh.style;return v.createElement(Xr,{ref:$f,prefixCls:Xl,className:Vf,style:_h,isActive:Oa,forceRender:Va,role:Ta?"tabpanel":void 0},Tn)}))}),Ur=rs,gs=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Kr=function(Un,jr){var Qr=jr.prefixCls,_o=jr.accordion,us=jr.collapsible,ns=jr.destroyInactivePanel,Oa=jr.onItemClick,ga=jr.activeKey,Va=jr.openMotion,ea=jr.expandIcon;return Un.map(function(Xl,_a){var Ta=Xl.children,Ya=Xl.label,cu=Xl.key,jl=Xl.collapsible,Mu=Xl.onItemClick,Bl=Xl.destroyInactivePanel,wl=(0,dt.Z)(Xl,gs),Tn=String(cu!=null?cu:_a),nc=jl!=null?jl:us,Iu=Bl!=null?Bl:ns,Pc=function(Fc){nc!=="disabled"&&(Oa(Fc),Mu==null||Mu(Fc))},Wc=!1;return _o?Wc=ga[0]===Tn:Wc=ga.indexOf(Tn)>-1,v.createElement(Ur,(0,de.Z)({},wl,{prefixCls:Qr,key:Tn,panelKey:Tn,isActive:Wc,accordion:_o,openMotion:Va,expandIcon:ea,header:Ya,collapsible:nc,onItemClick:Pc,destroyInactivePanel:Iu}),Ta)})},ri=function(Un,jr,Qr){if(!Un)return null;var _o=Qr.prefixCls,us=Qr.accordion,ns=Qr.collapsible,Oa=Qr.destroyInactivePanel,ga=Qr.onItemClick,Va=Qr.activeKey,ea=Qr.openMotion,Xl=Qr.expandIcon,_a=Un.key||String(jr),Ta=Un.props,Ya=Ta.header,cu=Ta.headerClass,jl=Ta.destroyInactivePanel,Mu=Ta.collapsible,Bl=Ta.onItemClick,wl=!1;us?wl=Va[0]===_a:wl=Va.indexOf(_a)>-1;var Tn=Mu!=null?Mu:ns,nc=function(Wc){Tn!=="disabled"&&(ga(Wc),Bl==null||Bl(Wc))},Iu={key:_a,panelKey:_a,header:Ya,headerClass:cu,isActive:wl,prefixCls:_o,destroyInactivePanel:jl!=null?jl:Oa,openMotion:ea,accordion:us,children:Un.props.children,onItemClick:nc,expandIcon:Xl,collapsible:Tn};return typeof Un.type=="string"?Un:(Object.keys(Iu).forEach(function(Pc){typeof Iu[Pc]=="undefined"&&delete Iu[Pc]}),v.cloneElement(Un,Iu))};function is(tr,Un,jr){return Array.isArray(tr)?Kr(tr,jr):(0,gi.Z)(Un).map(function(Qr,_o){return ri(Qr,_o,jr)})}var Jr=is;function _n(tr){var Un=tr;if(!Array.isArray(Un)){var jr=(0,Pe.Z)(Un);Un=jr==="number"||jr==="string"?[Un]:[]}return Un.map(function(Qr){return String(Qr)})}var Br=v.forwardRef(function(tr,Un){var jr=tr.prefixCls,Qr=jr===void 0?"rc-collapse":jr,_o=tr.destroyInactivePanel,us=_o===void 0?!1:_o,ns=tr.style,Oa=tr.accordion,ga=tr.className,Va=tr.children,ea=tr.collapsible,Xl=tr.openMotion,_a=tr.expandIcon,Ta=tr.activeKey,Ya=tr.defaultActiveKey,cu=tr.onChange,jl=tr.items,Mu=w()(Qr,ga),Bl=(0,b.Z)([],{value:Ta,onChange:function(cd){return cu==null?void 0:cu(cd)},defaultValue:Ya,postState:_n}),wl=(0,Ee.Z)(Bl,2),Tn=wl[0],nc=wl[1],Iu=function(cd){return nc(function(){if(Oa)return Tn[0]===cd?[]:[cd];var Fc=Tn.indexOf(cd),vh=Fc>-1;return vh?Tn.filter(function(Td){return Td!==cd}):[].concat((0,Hr.Z)(Tn),[cd])})};(0,di.ZP)(!Va,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Pc=Jr(jl,Va,{prefixCls:Qr,accordion:Oa,openMotion:Xl,expandIcon:_a,collapsible:ea,destroyInactivePanel:us,onItemClick:Iu,activeKey:Tn});return v.createElement("div",{ref:Un,className:Mu,style:ns,role:Oa?"tablist":void 0},Pc)}),es=Object.assign(Br,{Panel:Ur}),ko=es,vs=es.Panel,Ba=_(99468),uo=_(82395),ca=_(29341),Ti=v.forwardRef((tr,Un)=>{const{getPrefixCls:jr}=v.useContext(k.E_),{prefixCls:Qr,className:_o,showArrow:us=!0}=tr,ns=jr("collapse",Qr),Oa=w()({[`${ns}-no-arrow`]:!us},_o);return v.createElement(ko.Panel,Object.assign({ref:Un},tr,{prefixCls:ns,className:Oa}))}),Li=_(36646),eo=_(35772),Eo=_(10554),hs=_(67859),Wn=_(80172);const yo=tr=>{const{componentCls:Un,contentBg:jr,padding:Qr,headerBg:_o,headerPadding:us,collapseHeaderPaddingSM:ns,collapseHeaderPaddingLG:Oa,collapsePanelBorderRadius:ga,lineWidth:Va,lineType:ea,colorBorder:Xl,colorText:_a,colorTextHeading:Ta,colorTextDisabled:Ya,fontSizeLG:cu,lineHeight:jl,lineHeightLG:Mu,marginSM:Bl,paddingSM:wl,paddingLG:Tn,paddingXS:nc,motionDurationSlow:Iu,fontSizeIcon:Pc,contentPadding:Wc,fontHeight:cd,fontHeightLG:Fc}=tr,vh=`${(0,Li.bf)(Va)} ${ea} ${Xl}`;return{[Un]:Object.assign(Object.assign({},(0,eo.Wf)(tr)),{backgroundColor:_o,border:vh,borderBottom:0,borderRadius:ga,["&-rtl"]:{direction:"rtl"},[`& > ${Un}-item`]:{borderBottom:vh,["&:last-child"]:{[` + ${R}-checked:not(${R}-disabled) + `]:{[`&:hover ${R}-inner`]:{backgroundColor:k.colorPrimaryHover,borderColor:"transparent"}}},{[R]:{"&-indeterminate":{[`${R}-inner`]:{backgroundColor:k.colorBgContainer,borderColor:k.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:k.calc(k.fontSizeLG).div(2).equal(),height:k.calc(k.fontSizeLG).div(2).equal(),backgroundColor:k.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${C}-disabled`]:{cursor:"not-allowed"},[`${R}-disabled`]:{[`&, ${R}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${R}-inner`]:{background:k.colorBgContainerDisabled,borderColor:k.colorBorder,"&:after":{borderColor:k.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:k.colorTextDisabled},[`&${R}-indeterminate ${R}-inner::after`]:{background:k.colorTextDisabled}}}]};function V(k,R){const C=(0,w.TS)(R,{checkboxCls:`.${k}`,checkboxSize:R.controlInteractiveSize});return[B(C)]}Y.ZP=(0,b.I$)("Checkbox",(k,R)=>{let{prefixCls:C}=R;return[V(C,k)]})},87052:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return wi}});var v=y(67294),P=y(94184),w=y.n(P),b=y(21770),B=y(8745),V=y(9708),k=y(53124),R=y(35792),C=y(98866),g=y(98675),A=y(65223),O=y(55241),K=y(25976),he=y(96074),ae=y(87462),fe=y(4942),xe=y(97685),ye=y(1413),be=y(15671),Qe=y(43144),Ve=y(60136),pt=y(29388),st=y(91),Ae=y(71002),De=y(10274),Te=["b"],Me=["v"],Ue=function(Un){return Math.round(Number(Un||0))},Pe=function(Un){if(Un&&(0,Ae.Z)(Un)==="object"&&"h"in Un&&"b"in Un){var Wr=Un,Qr=Wr.b,_o=(0,st.Z)(Wr,Te);return(0,ye.Z)((0,ye.Z)({},_o),{},{v:Qr})}return typeof Un=="string"&&/hsb/.test(Un)?Un.replace(/hsb/,"hsv"):Un},Xe=function(er){(0,Ve.Z)(Wr,er);var Un=(0,pt.Z)(Wr);function Wr(Qr){return(0,be.Z)(this,Wr),Un.call(this,Pe(Qr))}return(0,Qe.Z)(Wr,[{key:"toHsbString",value:function(){var _o=this.toHsb(),us=Ue(_o.s*100),es=Ue(_o.b*100),Ma=Ue(_o.h),ga=_o.a,$a="hsb(".concat(Ma,", ").concat(us,"%, ").concat(es,"%)"),Js="hsba(".concat(Ma,", ").concat(us,"%, ").concat(es,"%, ").concat(ga.toFixed(ga===0?0:2),")");return ga===1?$a:Js}},{key:"toHsb",value:function(){var _o=this.toHsv();(0,Ae.Z)(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(_o=this.originalInput);var us=_o,es=us.v,Ma=(0,st.Z)(us,Me);return(0,ye.Z)((0,ye.Z)({},Ma),{},{b:_o.v})}}]),Wr}(De.C),Be="rc-color-picker",Xt=function(Un){return Un instanceof Xe?Un:new Xe(Un)},St=Xt("#1677ff"),nt=function(Un){var Wr=Un.offset,Qr=Un.targetRef,_o=Un.containerRef,us=Un.color,es=Un.type,Ma=_o.current.getBoundingClientRect(),ga=Ma.width,$a=Ma.height,Js=Qr.current.getBoundingClientRect(),Kl=Js.width,ya=Js.height,Ta=Kl/2,Xa=ya/2,au=(Wr.x+Ta)/ga,$l=1-(Wr.y+Xa)/$a,Mu=us.toHsb(),Bl=au,Sl=(Wr.x+Ta)/ga*360;if(es)switch(es){case"hue":return Xt((0,ye.Z)((0,ye.Z)({},Mu),{},{h:Sl<=0?0:Sl}));case"alpha":return Xt((0,ye.Z)((0,ye.Z)({},Mu),{},{a:Bl<=0?0:Bl}))}return Xt({h:Mu.h,s:au<=0?0:au,b:$l>=1?1:$l,a:Mu.a})},wt=function(Un,Wr,Qr,_o){var us=Un.current.getBoundingClientRect(),es=us.width,Ma=us.height,ga=Wr.current.getBoundingClientRect(),$a=ga.width,Js=ga.height,Kl=$a/2,ya=Js/2,Ta=Qr.toHsb();if(!($a===0&&Js===0||$a!==Js)){if(_o)switch(_o){case"hue":return{x:Ta.h/360*es-Kl,y:-ya/3};case"alpha":return{x:Ta.a/1*es-Kl,y:-ya/3}}return{x:Ta.s*es-Kl,y:(1-Ta.b)*Ma-ya}}},lt=function(Un){var Wr=Un.color,Qr=Un.prefixCls,_o=Un.className,us=Un.style,es=Un.onClick,Ma="".concat(Qr,"-color-block");return v.createElement("div",{className:w()(Ma,_o),style:us,onClick:es},v.createElement("div",{className:"".concat(Ma,"-inner"),style:{background:Wr}}))},Kt=lt;function Mt(er){var Un="touches"in er?er.touches[0]:er,Wr=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,Qr=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:Un.pageX-Wr,pageY:Un.pageY-Qr}}function hn(er){var Un=er.offset,Wr=er.targetRef,Qr=er.containerRef,_o=er.direction,us=er.onDragChange,es=er.onDragChangeComplete,Ma=er.calculate,ga=er.color,$a=er.disabledDrag,Js=(0,v.useState)(Un||{x:0,y:0}),Kl=(0,xe.Z)(Js,2),ya=Kl[0],Ta=Kl[1],Xa=(0,v.useRef)(null),au=(0,v.useRef)(null),$l=(0,v.useRef)({flag:!1});(0,v.useEffect)(function(){if($l.current.flag===!1){var nc=Ma==null?void 0:Ma(Qr);nc&&Ta(nc)}},[ga,Qr]),(0,v.useEffect)(function(){return function(){document.removeEventListener("mousemove",Xa.current),document.removeEventListener("mouseup",au.current),document.removeEventListener("touchmove",Xa.current),document.removeEventListener("touchend",au.current),Xa.current=null,au.current=null}},[]);var Mu=function(Iu){var Ic=Mt(Iu),Vc=Ic.pageX,dh=Ic.pageY,Nc=Qr.current.getBoundingClientRect(),vd=Nc.x,Th=Nc.y,Gd=Nc.width,yd=Nc.height,Mc=Wr.current.getBoundingClientRect(),Kd=Mc.width,Vf=Mc.height,jf=Kd/2,_d=Vf/2,Qd=Math.max(0,Math.min(Vc-vd,Gd))-jf,Md=Math.max(0,Math.min(dh-Th,yd))-_d,jh={x:Qd,y:_o==="x"?ya.y:Md};if(Kd===0&&Vf===0||Kd!==Vf)return!1;Ta(jh),us==null||us(jh)},Bl=function(Iu){Iu.preventDefault(),Mu(Iu)},Sl=function(Iu){Iu.preventDefault(),$l.current.flag=!1,document.removeEventListener("mousemove",Xa.current),document.removeEventListener("mouseup",au.current),document.removeEventListener("touchmove",Xa.current),document.removeEventListener("touchend",au.current),Xa.current=null,au.current=null,es==null||es()},Tn=function(Iu){document.removeEventListener("mousemove",Xa.current),document.removeEventListener("mouseup",au.current),!$a&&(Mu(Iu),$l.current.flag=!0,document.addEventListener("mousemove",Bl),document.addEventListener("mouseup",Sl),document.addEventListener("touchmove",Bl),document.addEventListener("touchend",Sl),Xa.current=Bl,au.current=Sl)};return[ya,Tn]}var un=hn,Sr=function(Un){var Wr=Un.size,Qr=Wr===void 0?"default":Wr,_o=Un.color,us=Un.prefixCls;return v.createElement("div",{className:w()("".concat(us,"-handler"),(0,fe.Z)({},"".concat(us,"-handler-sm"),Qr==="small")),style:{backgroundColor:_o}})},ii=Sr,Ii=function(Un){var Wr=Un.children,Qr=Un.style,_o=Un.prefixCls;return v.createElement("div",{className:"".concat(_o,"-palette"),style:(0,ye.Z)({position:"relative"},Qr)},Wr)},Ni=Ii,eo=(0,v.forwardRef)(function(er,Un){var Wr=er.children,Qr=er.offset;return v.createElement("div",{ref:Un,style:{position:"absolute",left:Qr.x,top:Qr.y,zIndex:1}},Wr)}),ti=eo,Is=function(Un){var Wr=Un.color,Qr=Un.onChange,_o=Un.prefixCls,us=Un.onChangeComplete,es=Un.disabled,Ma=(0,v.useRef)(),ga=(0,v.useRef)(),$a=(0,v.useRef)(Wr),Js=un({color:Wr,containerRef:Ma,targetRef:ga,calculate:function(au){return wt(au,ga,Wr)},onDragChange:function(au){var $l=nt({offset:au,targetRef:ga,containerRef:Ma,color:Wr});$a.current=$l,Qr($l)},onDragChangeComplete:function(){return us==null?void 0:us($a.current)},disabledDrag:es}),Kl=(0,xe.Z)(Js,2),ya=Kl[0],Ta=Kl[1];return v.createElement("div",{ref:Ma,className:"".concat(_o,"-select"),onMouseDown:Ta,onTouchStart:Ta},v.createElement(Ni,{prefixCls:_o},v.createElement(ti,{offset:ya,ref:ga},v.createElement(ii,{color:Wr.toRgbString(),prefixCls:_o})),v.createElement("div",{className:"".concat(_o,"-saturation"),style:{backgroundColor:"hsl(".concat(Wr.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Ns=Is,Se=function(Un){var Wr=Un.colors,Qr=Un.children,_o=Un.direction,us=_o===void 0?"to right":_o,es=Un.type,Ma=Un.prefixCls,ga=(0,v.useMemo)(function(){return Wr.map(function($a,Js){var Kl=Xt($a);return es==="alpha"&&Js===Wr.length-1&&Kl.setAlpha(1),Kl.toRgbString()}).join(",")},[Wr,es]);return v.createElement("div",{className:"".concat(Ma,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(us,", ").concat(ga,")")}},Qr)},Xi=Se,Yi=function(Un){var Wr=Un.gradientColors,Qr=Un.direction,_o=Un.type,us=_o===void 0?"hue":_o,es=Un.color,Ma=Un.value,ga=Un.onChange,$a=Un.onChangeComplete,Js=Un.disabled,Kl=Un.prefixCls,ya=(0,v.useRef)(),Ta=(0,v.useRef)(),Xa=(0,v.useRef)(es),au=un({color:es,targetRef:Ta,containerRef:ya,calculate:function(Tn){return wt(Tn,Ta,es,us)},onDragChange:function(Tn){var nc=nt({offset:Tn,targetRef:Ta,containerRef:ya,color:es,type:us});Xa.current=nc,ga(nc)},onDragChangeComplete:function(){$a==null||$a(Xa.current,us)},direction:"x",disabledDrag:Js}),$l=(0,xe.Z)(au,2),Mu=$l[0],Bl=$l[1];return v.createElement("div",{ref:ya,className:w()("".concat(Kl,"-slider"),"".concat(Kl,"-slider-").concat(us)),onMouseDown:Bl,onTouchStart:Bl},v.createElement(Ni,{prefixCls:Kl},v.createElement(ti,{offset:Mu,ref:Ta},v.createElement(ii,{size:"small",color:Ma,prefixCls:Kl})),v.createElement(Xi,{colors:Wr,direction:Qr,type:us,prefixCls:Kl})))},fo=Yi;function di(er){return er!==void 0}var Fs=function(Un,Wr){var Qr=Wr.defaultValue,_o=Wr.value,us=(0,v.useState)(function(){var $a;return di(_o)?$a=_o:di(Qr)?$a=Qr:$a=Un,Xt($a)}),es=(0,xe.Z)(us,2),Ma=es[0],ga=es[1];return(0,v.useEffect)(function(){_o&&ga(Xt(_o))},[_o]),[Ma,ga]},Ln=Fs,it=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"],Ot=(0,v.forwardRef)(function(er,Un){var Wr=er.value,Qr=er.defaultValue,_o=er.prefixCls,us=_o===void 0?Be:_o,es=er.onChange,Ma=er.onChangeComplete,ga=er.className,$a=er.style,Js=er.panelRender,Kl=er.disabledAlpha,ya=Kl===void 0?!1:Kl,Ta=er.disabled,Xa=Ta===void 0?!1:Ta,au=Ln(St,{value:Wr,defaultValue:Qr}),$l=(0,xe.Z)(au,2),Mu=$l[0],Bl=$l[1],Sl=(0,v.useMemo)(function(){var Vc=Xt(Mu.toRgbString());return Vc.setAlpha(1),Vc.toRgbString()},[Mu]),Tn=w()("".concat(us,"-panel"),ga,(0,fe.Z)({},"".concat(us,"-panel-disabled"),Xa)),nc={prefixCls:us,onChangeComplete:Ma,disabled:Xa},Iu=function(dh,Nc){Wr||Bl(dh),es==null||es(dh,Nc)},Ic=v.createElement(v.Fragment,null,v.createElement(Ns,(0,ae.Z)({color:Mu,onChange:Iu},nc)),v.createElement("div",{className:"".concat(us,"-slider-container")},v.createElement("div",{className:w()("".concat(us,"-slider-group"),(0,fe.Z)({},"".concat(us,"-slider-group-disabled-alpha"),ya))},v.createElement(fo,(0,ae.Z)({gradientColors:it,color:Mu,value:"hsl(".concat(Mu.toHsb().h,",100%, 50%)"),onChange:function(dh){return Iu(dh,"hue")}},nc)),!ya&&v.createElement(fo,(0,ae.Z)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",Sl],color:Mu,value:Mu.toRgbString(),onChange:function(dh){return Iu(dh,"alpha")}},nc))),v.createElement(Kt,{color:Mu.toRgbString(),prefixCls:us})));return v.createElement("div",{className:Tn,style:$a,ref:Un},typeof Js=="function"?Js(Ic):Ic)}),Ht=Ot;const Pn=v.createContext({}),fr=v.createContext({}),{Provider:In}=Pn,{Provider:mn}=fr,Ut=(er,Un)=>(er==null?void 0:er.replace(/[^\w/]/gi,"").slice(0,Un?8:6))||"",en=(er,Un)=>er?Ut(er,Un):"";let Cn=function(){function er(Un){(0,be.Z)(this,er),this.metaColor=new Xe(Un),Un||this.metaColor.setAlpha(0)}return(0,Qe.Z)(er,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return en(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),er}();const lr="ant-color-picker",pr=er=>er instanceof Cn?er:new Cn(er),an=er=>Math.round(Number(er||0)),wr=er=>an(er.toHsb().a*100),Cr=(er,Un)=>{const Wr=er.toHsb();return Wr.a=Un||1,pr(Wr)};var vo=er=>{let{prefixCls:Un,value:Wr,colorCleared:Qr,onChange:_o}=er;const us=()=>{if(Wr&&!Qr){const es=Wr.toHsb();es.a=0;const Ma=pr(es);_o==null||_o(Ma)}};return v.createElement("div",{className:`${Un}-clear`,onClick:us})},kr=y(34041),ro;(function(er){er.hex="hex",er.rgb="rgb",er.hsb="hsb"})(ro||(ro={}));var qi=y(73360),xn=er=>{let{prefixCls:Un,min:Wr=0,max:Qr=100,value:_o,onChange:us,className:es,formatter:Ma}=er;const ga=`${Un}-steppers`,[$a,Js]=(0,v.useState)(_o);return(0,v.useEffect)(()=>{Number.isNaN(_o)||Js(_o)},[_o]),v.createElement(qi.Z,{className:w()(ga,es),min:Wr,max:Qr,value:$a,formatter:Ma,size:"small",onChange:Kl=>{_o||Js(Kl||0),us==null||us(Kl)}})},Dt=er=>{let{prefixCls:Un,value:Wr,onChange:Qr}=er;const _o=`${Un}-alpha-input`,[us,es]=(0,v.useState)(pr(Wr||"#000"));(0,v.useEffect)(()=>{Wr&&es(Wr)},[Wr]);const Ma=ga=>{const $a=us.toHsb();$a.a=(ga||0)/100;const Js=pr($a);Wr||es(Js),Qr==null||Qr(Js)};return v.createElement(xn,{value:wr(us),prefixCls:Un,formatter:ga=>`${ga}%`,className:_o,onChange:Ma})},Zt=y(75008);const vn=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,$n=er=>vn.test(`#${er}`);var Dr=er=>{let{prefixCls:Un,value:Wr,onChange:Qr}=er;const _o=`${Un}-hex-input`,[us,es]=(0,v.useState)(Wr==null?void 0:Wr.toHex());(0,v.useEffect)(()=>{const ga=Wr==null?void 0:Wr.toHex();$n(ga)&&Wr&&es(Ut(ga))},[Wr]);const Ma=ga=>{const $a=ga.target.value;es(Ut($a)),$n(Ut($a,!0))&&(Qr==null||Qr(pr($a)))};return v.createElement(Zt.Z,{className:_o,value:us,prefix:"#",onChange:Ma,size:"small"})},Yt=er=>{let{prefixCls:Un,value:Wr,onChange:Qr}=er;const _o=`${Un}-hsb-input`,[us,es]=(0,v.useState)(pr(Wr||"#000"));(0,v.useEffect)(()=>{Wr&&es(Wr)},[Wr]);const Ma=(ga,$a)=>{const Js=us.toHsb();Js[$a]=$a==="h"?ga:(ga||0)/100;const Kl=pr(Js);Wr||es(Kl),Qr==null||Qr(Kl)};return v.createElement("div",{className:_o},v.createElement(xn,{max:360,min:0,value:Number(us.toHsb().h),prefixCls:Un,className:_o,formatter:ga=>an(ga||0).toString(),onChange:ga=>Ma(Number(ga),"h")}),v.createElement(xn,{max:100,min:0,value:Number(us.toHsb().s)*100,prefixCls:Un,className:_o,formatter:ga=>`${an(ga||0)}%`,onChange:ga=>Ma(Number(ga),"s")}),v.createElement(xn,{max:100,min:0,value:Number(us.toHsb().b)*100,prefixCls:Un,className:_o,formatter:ga=>`${an(ga||0)}%`,onChange:ga=>Ma(Number(ga),"b")}))},Qn=er=>{let{prefixCls:Un,value:Wr,onChange:Qr}=er;const _o=`${Un}-rgb-input`,[us,es]=(0,v.useState)(pr(Wr||"#000"));(0,v.useEffect)(()=>{Wr&&es(Wr)},[Wr]);const Ma=(ga,$a)=>{const Js=us.toRgb();Js[$a]=ga||0;const Kl=pr(Js);Wr||es(Kl),Qr==null||Qr(Kl)};return v.createElement("div",{className:_o},v.createElement(xn,{max:255,min:0,value:Number(us.toRgb().r),prefixCls:Un,className:_o,onChange:ga=>Ma(Number(ga),"r")}),v.createElement(xn,{max:255,min:0,value:Number(us.toRgb().g),prefixCls:Un,className:_o,onChange:ga=>Ma(Number(ga),"g")}),v.createElement(xn,{max:255,min:0,value:Number(us.toRgb().b),prefixCls:Un,className:_o,onChange:ga=>Ma(Number(ga),"b")}))};const Mr=[ro.hex,ro.hsb,ro.rgb].map(er=>({value:er,label:er.toLocaleUpperCase()}));var Dn=er=>{const{prefixCls:Un,format:Wr,value:Qr,disabledAlpha:_o,onFormatChange:us,onChange:es}=er,[Ma,ga]=(0,b.Z)(ro.hex,{value:Wr,onChange:us}),$a=`${Un}-input`,Js=ya=>{ga(ya)},Kl=(0,v.useMemo)(()=>{const ya={value:Qr,prefixCls:Un,onChange:es};switch(Ma){case ro.hsb:return v.createElement(Yt,Object.assign({},ya));case ro.rgb:return v.createElement(Qn,Object.assign({},ya));case ro.hex:default:return v.createElement(Dr,Object.assign({},ya))}},[Ma,Un,Qr,es]);return v.createElement("div",{className:`${$a}-container`},v.createElement(kr.Z,{value:Ma,bordered:!1,getPopupContainer:ya=>ya,popupMatchSelectWidth:68,placement:"bottomRight",onChange:Js,className:`${Un}-format-select`,size:"small",options:Mr}),v.createElement("div",{className:$a},Kl),!_o&&v.createElement(Dt,{prefixCls:Un,value:Qr,onChange:es}))},Kn=function(er,Un){var Wr={};for(var Qr in er)Object.prototype.hasOwnProperty.call(er,Qr)&&Un.indexOf(Qr)<0&&(Wr[Qr]=er[Qr]);if(er!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _o=0,Qr=Object.getOwnPropertySymbols(er);_o{const er=(0,v.useContext)(Pn),{prefixCls:Un,colorCleared:Wr,allowClear:Qr,value:_o,disabledAlpha:us,onChange:es,onClear:Ma,onChangeComplete:ga}=er,$a=Kn(er,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return v.createElement(v.Fragment,null,Qr&&v.createElement(vo,Object.assign({prefixCls:Un,value:_o,colorCleared:Wr,onChange:Js=>{es==null||es(Js),Ma==null||Ma()}},$a)),v.createElement(Ht,{prefixCls:Un,value:_o==null?void 0:_o.toHsb(),disabledAlpha:us,onChange:(Js,Kl)=>es==null?void 0:es(Js,Kl,!0),onChangeComplete:ga}),v.createElement(Dn,Object.assign({value:_o,onChange:es,prefixCls:Un,disabledAlpha:us},$a)))},yi=y(68843),Hr=y(74902),ci=y(80334),gi=y(50344),mi=y(82225),Bi=y(15105),Nr=v.forwardRef(function(er,Un){var Wr,Qr=er.prefixCls,_o=er.forceRender,us=er.className,es=er.style,Ma=er.children,ga=er.isActive,$a=er.role,Js=v.useState(ga||_o),Kl=(0,xe.Z)(Js,2),ya=Kl[0],Ta=Kl[1];return v.useEffect(function(){(_o||ga)&&Ta(!0)},[_o,ga]),ya?v.createElement("div",{ref:Un,className:w()("".concat(Qr,"-content"),(Wr={},(0,fe.Z)(Wr,"".concat(Qr,"-content-active"),ga),(0,fe.Z)(Wr,"".concat(Qr,"-content-inactive"),!ga),Wr),us),style:es,role:$a},v.createElement("div",{className:"".concat(Qr,"-content-box")},Ma)):null});Nr.displayName="PanelContent";var Kr=Nr,Qi=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],ns=v.forwardRef(function(er,Un){var Wr,Qr,_o=er.showArrow,us=_o===void 0?!0:_o,es=er.headerClass,Ma=er.isActive,ga=er.onItemClick,$a=er.forceRender,Js=er.className,Kl=er.prefixCls,ya=er.collapsible,Ta=er.accordion,Xa=er.panelKey,au=er.extra,$l=er.header,Mu=er.expandIcon,Bl=er.openMotion,Sl=er.destroyInactivePanel,Tn=er.children,nc=(0,st.Z)(er,Qi),Iu=ya==="disabled",Ic=ya==="header",Vc=ya==="icon",dh=au!=null&&typeof au!="boolean",Nc=function(){ga==null||ga(Xa)},vd=function(Vf){(Vf.key==="Enter"||Vf.keyCode===Bi.Z.ENTER||Vf.which===Bi.Z.ENTER)&&Nc()},Th=typeof Mu=="function"?Mu(er):v.createElement("i",{className:"arrow"});Th&&(Th=v.createElement("div",{className:"".concat(Kl,"-expand-icon"),onClick:["header","icon"].includes(ya)?Nc:void 0},Th));var Gd=w()((Wr={},(0,fe.Z)(Wr,"".concat(Kl,"-item"),!0),(0,fe.Z)(Wr,"".concat(Kl,"-item-active"),Ma),(0,fe.Z)(Wr,"".concat(Kl,"-item-disabled"),Iu),Wr),Js),yd=w()(es,(Qr={},(0,fe.Z)(Qr,"".concat(Kl,"-header"),!0),(0,fe.Z)(Qr,"".concat(Kl,"-header-collapsible-only"),Ic),(0,fe.Z)(Qr,"".concat(Kl,"-icon-collapsible-only"),Vc),Qr)),Mc={className:yd,"aria-expanded":Ma,"aria-disabled":Iu,onKeyDown:vd};return!Ic&&!Vc&&(Mc.onClick=Nc,Mc.role=Ta?"tab":"button",Mc.tabIndex=Iu?-1:0),v.createElement("div",(0,ae.Z)({},nc,{ref:Un,className:Gd}),v.createElement("div",Mc,us&&Th,v.createElement("span",{className:"".concat(Kl,"-header-text"),onClick:ya==="header"?Nc:void 0},$l),dh&&v.createElement("div",{className:"".concat(Kl,"-extra")},au)),v.createElement(mi.ZP,(0,ae.Z)({visible:Ma,leavedClassName:"".concat(Kl,"-content-hidden")},Bl,{forceRender:$a,removeOnLeave:Sl}),function(Kd,Vf){var jf=Kd.className,_d=Kd.style;return v.createElement(Kr,{ref:Vf,prefixCls:Kl,className:jf,style:_d,isActive:Ma,forceRender:$a,role:Ta?"tabpanel":void 0},Tn)}))}),Ur=ns,gs=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Gr=function(Un,Wr){var Qr=Wr.prefixCls,_o=Wr.accordion,us=Wr.collapsible,es=Wr.destroyInactivePanel,Ma=Wr.onItemClick,ga=Wr.activeKey,$a=Wr.openMotion,Js=Wr.expandIcon;return Un.map(function(Kl,ya){var Ta=Kl.children,Xa=Kl.label,au=Kl.key,$l=Kl.collapsible,Mu=Kl.onItemClick,Bl=Kl.destroyInactivePanel,Sl=(0,st.Z)(Kl,gs),Tn=String(au!=null?au:ya),nc=$l!=null?$l:us,Iu=Bl!=null?Bl:es,Ic=function(Nc){nc!=="disabled"&&(Ma(Nc),Mu==null||Mu(Nc))},Vc=!1;return _o?Vc=ga[0]===Tn:Vc=ga.indexOf(Tn)>-1,v.createElement(Ur,(0,ae.Z)({},Sl,{prefixCls:Qr,key:Tn,panelKey:Tn,isActive:Vc,accordion:_o,openMotion:$a,expandIcon:Js,header:Xa,collapsible:nc,onItemClick:Ic,destroyInactivePanel:Iu}),Ta)})},ni=function(Un,Wr,Qr){if(!Un)return null;var _o=Qr.prefixCls,us=Qr.accordion,es=Qr.collapsible,Ma=Qr.destroyInactivePanel,ga=Qr.onItemClick,$a=Qr.activeKey,Js=Qr.openMotion,Kl=Qr.expandIcon,ya=Un.key||String(Wr),Ta=Un.props,Xa=Ta.header,au=Ta.headerClass,$l=Ta.destroyInactivePanel,Mu=Ta.collapsible,Bl=Ta.onItemClick,Sl=!1;us?Sl=$a[0]===ya:Sl=$a.indexOf(ya)>-1;var Tn=Mu!=null?Mu:es,nc=function(Vc){Tn!=="disabled"&&(ga(Vc),Bl==null||Bl(Vc))},Iu={key:ya,panelKey:ya,header:Xa,headerClass:au,isActive:Sl,prefixCls:_o,destroyInactivePanel:$l!=null?$l:Ma,openMotion:Js,accordion:us,children:Un.props.children,onItemClick:nc,expandIcon:Kl,collapsible:Tn};return typeof Un.type=="string"?Un:(Object.keys(Iu).forEach(function(Ic){typeof Iu[Ic]=="undefined"&&delete Iu[Ic]}),v.cloneElement(Un,Iu))};function is(er,Un,Wr){return Array.isArray(er)?Gr(er,Wr):(0,gi.Z)(Un).map(function(Qr,_o){return ni(Qr,_o,Wr)})}var Jr=is;function bn(er){var Un=er;if(!Array.isArray(Un)){var Wr=(0,Ae.Z)(Un);Un=Wr==="number"||Wr==="string"?[Un]:[]}return Un.map(function(Qr){return String(Qr)})}var Or=v.forwardRef(function(er,Un){var Wr=er.prefixCls,Qr=Wr===void 0?"rc-collapse":Wr,_o=er.destroyInactivePanel,us=_o===void 0?!1:_o,es=er.style,Ma=er.accordion,ga=er.className,$a=er.children,Js=er.collapsible,Kl=er.openMotion,ya=er.expandIcon,Ta=er.activeKey,Xa=er.defaultActiveKey,au=er.onChange,$l=er.items,Mu=w()(Qr,ga),Bl=(0,b.Z)([],{value:Ta,onChange:function(dh){return au==null?void 0:au(dh)},defaultValue:Xa,postState:bn}),Sl=(0,xe.Z)(Bl,2),Tn=Sl[0],nc=Sl[1],Iu=function(dh){return nc(function(){if(Ma)return Tn[0]===dh?[]:[dh];var Nc=Tn.indexOf(dh),vd=Nc>-1;return vd?Tn.filter(function(Th){return Th!==dh}):[].concat((0,Hr.Z)(Tn),[dh])})};(0,ci.ZP)(!$a,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Ic=Jr($l,$a,{prefixCls:Qr,accordion:Ma,openMotion:Kl,expandIcon:ya,collapsible:Js,destroyInactivePanel:us,onItemClick:Iu,activeKey:Tn});return v.createElement("div",{ref:Un,className:Mu,style:es,role:Ma?"tablist":void 0},Ic)}),qo=Object.assign(Or,{Panel:Ur}),Mo=qo,vs=qo.Panel,Na=y(98423),ho=y(33603),aa=y(96159),Si=v.forwardRef((er,Un)=>{const{getPrefixCls:Wr}=v.useContext(k.E_),{prefixCls:Qr,className:_o,showArrow:us=!0}=er,es=Wr("collapse",Qr),Ma=w()({[`${es}-no-arrow`]:!us},_o);return v.createElement(Mo.Panel,Object.assign({ref:Un},er,{prefixCls:es,className:Ma}))}),Pi=y(43109),to=y(14747),So=y(33507),ps=y(91945),Wn=y(45503);const yo=er=>{const{componentCls:Un,contentBg:Wr,padding:Qr,headerBg:_o,headerPadding:us,collapseHeaderPaddingSM:es,collapseHeaderPaddingLG:Ma,collapsePanelBorderRadius:ga,lineWidth:$a,lineType:Js,colorBorder:Kl,colorText:ya,colorTextHeading:Ta,colorTextDisabled:Xa,fontSizeLG:au,lineHeight:$l,lineHeightLG:Mu,marginSM:Bl,paddingSM:Sl,paddingLG:Tn,paddingXS:nc,motionDurationSlow:Iu,fontSizeIcon:Ic,contentPadding:Vc,fontHeight:dh,fontHeightLG:Nc}=er,vd=`${(0,Pi.bf)($a)} ${Js} ${Kl}`;return{[Un]:Object.assign(Object.assign({},(0,to.Wf)(er)),{backgroundColor:_o,border:vd,borderBottom:0,borderRadius:ga,["&-rtl"]:{direction:"rtl"},[`& > ${Un}-item`]:{borderBottom:vd,["&:last-child"]:{[` &, - & > ${Un}-header`]:{borderRadius:`0 0 ${(0,Li.bf)(ga)} ${(0,Li.bf)(ga)}`}},[`> ${Un}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:us,color:Ta,lineHeight:jl,cursor:"pointer",transition:`all ${Iu}, visibility 0s`,[`> ${Un}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${Un}-expand-icon`]:{height:cd,display:"flex",alignItems:"center",paddingInlineEnd:Bl},[`${Un}-arrow`]:Object.assign(Object.assign({},(0,eo.Ro)()),{fontSize:Pc,svg:{transition:`transform ${Iu}`}}),[`${Un}-header-text`]:{marginInlineEnd:"auto"}},[`${Un}-icon-collapsible-only`]:{cursor:"unset",[`${Un}-expand-icon`]:{cursor:"pointer"}}},[`${Un}-content`]:{color:_a,backgroundColor:jr,borderTop:vh,[`& > ${Un}-content-box`]:{padding:Wc},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${Un}-item`]:{[`> ${Un}-header`]:{padding:ns,paddingInlineStart:nc,[`> ${Un}-expand-icon`]:{marginInlineStart:tr.calc(wl).sub(nc).equal()}},[`> ${Un}-content > ${Un}-content-box`]:{padding:wl}}},["&-large"]:{[`> ${Un}-item`]:{fontSize:cu,lineHeight:Mu,[`> ${Un}-header`]:{padding:Oa,paddingInlineStart:Qr,[`> ${Un}-expand-icon`]:{height:Fc,marginInlineStart:tr.calc(Tn).sub(Qr).equal()}},[`> ${Un}-content > ${Un}-content-box`]:{padding:Tn}}},[`${Un}-item:last-child`]:{[`> ${Un}-content`]:{borderRadius:`0 0 ${(0,Li.bf)(ga)} ${(0,Li.bf)(ga)}`}},[`& ${Un}-item-disabled > ${Un}-header`]:{[` + & > ${Un}-header`]:{borderRadius:`0 0 ${(0,Pi.bf)(ga)} ${(0,Pi.bf)(ga)}`}},[`> ${Un}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:us,color:Ta,lineHeight:$l,cursor:"pointer",transition:`all ${Iu}, visibility 0s`,[`> ${Un}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${Un}-expand-icon`]:{height:dh,display:"flex",alignItems:"center",paddingInlineEnd:Bl},[`${Un}-arrow`]:Object.assign(Object.assign({},(0,to.Ro)()),{fontSize:Ic,svg:{transition:`transform ${Iu}`}}),[`${Un}-header-text`]:{marginInlineEnd:"auto"}},[`${Un}-icon-collapsible-only`]:{cursor:"unset",[`${Un}-expand-icon`]:{cursor:"pointer"}}},[`${Un}-content`]:{color:ya,backgroundColor:Wr,borderTop:vd,[`& > ${Un}-content-box`]:{padding:Vc},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${Un}-item`]:{[`> ${Un}-header`]:{padding:es,paddingInlineStart:nc,[`> ${Un}-expand-icon`]:{marginInlineStart:er.calc(Sl).sub(nc).equal()}},[`> ${Un}-content > ${Un}-content-box`]:{padding:Sl}}},["&-large"]:{[`> ${Un}-item`]:{fontSize:au,lineHeight:Mu,[`> ${Un}-header`]:{padding:Ma,paddingInlineStart:Qr,[`> ${Un}-expand-icon`]:{height:Nc,marginInlineStart:er.calc(Tn).sub(Qr).equal()}},[`> ${Un}-content > ${Un}-content-box`]:{padding:Tn}}},[`${Un}-item:last-child`]:{[`> ${Un}-content`]:{borderRadius:`0 0 ${(0,Pi.bf)(ga)} ${(0,Pi.bf)(ga)}`}},[`& ${Un}-item-disabled > ${Un}-header`]:{[` &, & > .arrow - `]:{color:Ya,cursor:"not-allowed"}},[`&${Un}-icon-position-end`]:{[`& > ${Un}-item`]:{[`> ${Un}-header`]:{[`${Un}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:Bl}}}}})}},Qo=tr=>{const{componentCls:Un}=tr,jr=`> ${Un}-item > ${Un}-header ${Un}-arrow svg`;return{[`${Un}-rtl`]:{[jr]:{transform:"rotate(180deg)"}}}},os=tr=>{const{componentCls:Un,headerBg:jr,paddingXXS:Qr,colorBorder:_o}=tr;return{[`${Un}-borderless`]:{backgroundColor:jr,border:0,[`> ${Un}-item`]:{borderBottom:`1px solid ${_o}`},[` + `]:{color:Xa,cursor:"not-allowed"}},[`&${Un}-icon-position-end`]:{[`& > ${Un}-item`]:{[`> ${Un}-header`]:{[`${Un}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:Bl}}}}})}},Qo=er=>{const{componentCls:Un}=er,Wr=`> ${Un}-item > ${Un}-header ${Un}-arrow svg`;return{[`${Un}-rtl`]:{[Wr]:{transform:"rotate(180deg)"}}}},ss=er=>{const{componentCls:Un,headerBg:Wr,paddingXXS:Qr,colorBorder:_o}=er;return{[`${Un}-borderless`]:{backgroundColor:Wr,border:0,[`> ${Un}-item`]:{borderBottom:`1px solid ${_o}`},[` > ${Un}-item:last-child, > ${Un}-item:last-child ${Un}-header - `]:{borderRadius:0},[`> ${Un}-item:last-child`]:{borderBottom:0},[`> ${Un}-item > ${Un}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${Un}-item > ${Un}-content > ${Un}-content-box`]:{paddingTop:Qr}}}},Ko=tr=>{const{componentCls:Un,paddingSM:jr}=tr;return{[`${Un}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${Un}-item`]:{borderBottom:0,[`> ${Un}-content`]:{backgroundColor:"transparent",border:0,[`> ${Un}-content-box`]:{paddingBlock:jr}}}}}},Yn=tr=>({headerPadding:`${tr.paddingSM}px ${tr.padding}px`,headerBg:tr.colorFillAlter,contentPadding:`${tr.padding}px 16px`,contentBg:tr.colorBgContainer});var kr=(0,hs.I$)("Collapse",tr=>{const Un=(0,Wn.TS)(tr,{collapseHeaderPaddingSM:`${(0,Li.bf)(tr.paddingXS)} ${(0,Li.bf)(tr.paddingSM)}`,collapseHeaderPaddingLG:`${(0,Li.bf)(tr.padding)} ${(0,Li.bf)(tr.paddingLG)}`,collapsePanelBorderRadius:tr.borderRadiusLG});return[yo(Un),os(Un),Ko(Un),Qo(Un),(0,Eo.Z)(Un)]},Yn),je=Object.assign(v.forwardRef((tr,Un)=>{const{getPrefixCls:jr,direction:Qr,collapse:_o}=v.useContext(k.E_),{prefixCls:us,className:ns,rootClassName:Oa,style:ga,bordered:Va=!0,ghost:ea,size:Xl,expandIconPosition:_a="start",children:Ta,expandIcon:Ya}=tr,cu=(0,g.Z)(cd=>{var Fc;return(Fc=Xl!=null?Xl:cd)!==null&&Fc!==void 0?Fc:"middle"}),jl=jr("collapse",us),Mu=jr(),[Bl,wl]=kr(jl),Tn=v.useMemo(()=>_a==="left"?"start":_a==="right"?"end":_a,[_a]),nc=function(){let cd=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Fc=Ya?Ya(cd):v.createElement(vi.Z,{rotate:cd.isActive?90:void 0});return(0,ca.Tm)(Fc,()=>({className:w()(Fc.props.className,`${jl}-arrow`)}))},Iu=w()(`${jl}-icon-position-${Tn}`,{[`${jl}-borderless`]:!Va,[`${jl}-rtl`]:Qr==="rtl",[`${jl}-ghost`]:!!ea,[`${jl}-${cu}`]:cu!=="middle"},_o==null?void 0:_o.className,ns,Oa,wl),Pc=Object.assign(Object.assign({},(0,uo.Z)(Mu)),{motionAppear:!1,leavedClassName:`${jl}-content-hidden`}),Wc=v.useMemo(()=>Ta?(0,gi.Z)(Ta).map((cd,Fc)=>{var vh,Td;if(!((vh=cd.props)===null||vh===void 0)&&vh.disabled){const Gh=(Td=cd.key)!==null&&Td!==void 0?Td:String(Fc),{disabled:yh,collapsible:kc}=cd.props,Kh=Object.assign(Object.assign({},(0,Ba.Z)(cd.props,["disabled"])),{key:Gh,collapsible:kc!=null?kc:yh?"disabled":void 0});return(0,ca.Tm)(cd,Kh)}return cd}):null,[Ta]);return Bl(v.createElement(ko,Object.assign({ref:Un,openMotion:Pc},(0,Ba.Z)(tr,["rootClassName"]),{expandIcon:nc,prefixCls:jl,className:Iu,style:Object.assign(Object.assign({},_o==null?void 0:_o.style),ga)}),Wc))}),{Panel:Ti}),ut=je,ht=_(66951);const Ue=tr=>tr.map(Un=>(Un.colors=Un.colors.map(vr),Un)),ft=(tr,Un)=>{const{r:jr,g:Qr,b:_o,a:us}=tr.toRgb(),ns=new Xe(tr.toRgbString()).onBackground(Un).toHsv();return us<=.5?ns.v>.5:jr*.299+Qr*.587+_o*.114>192},Pt=tr=>{let{label:Un}=tr;return`panel-${Un}`};var sr=tr=>{let{prefixCls:Un,presets:jr,value:Qr,onChange:_o}=tr;const[us]=(0,ht.Z)("ColorPicker"),[,ns]=(0,K.ZP)(),[Oa]=(0,b.Z)(Ue(jr),{value:Ue(jr),postState:Ue}),ga=`${Un}-presets`,Va=(0,v.useMemo)(()=>Oa.reduce((_a,Ta)=>{const{defaultOpen:Ya=!0}=Ta;return Ya&&_a.push(Pt(Ta)),_a},[]),[Oa]),ea=_a=>{_o==null||_o(_a)},Xl=Oa.map(_a=>{var Ta;return{key:Pt(_a),label:v.createElement("div",{className:`${ga}-label`},_a==null?void 0:_a.label),children:v.createElement("div",{className:`${ga}-items`},Array.isArray(_a==null?void 0:_a.colors)&&((Ta=_a.colors)===null||Ta===void 0?void 0:Ta.length)>0?_a.colors.map((Ya,cu)=>v.createElement(Gt,{key:`preset-${cu}-${Ya.toHexString()}`,color:vr(Ya).toRgbString(),prefixCls:Un,className:w()(`${ga}-color`,{[`${ga}-color-checked`]:Ya.toHexString()===(Qr==null?void 0:Qr.toHexString()),[`${ga}-color-bright`]:ft(Ya,ns.colorBgElevated)}),onClick:()=>ea(Ya)})):v.createElement("span",{className:`${ga}-empty`},us.presetEmpty))}});return v.createElement("div",{className:ga},v.createElement(ut,{defaultActiveKey:Va,ghost:!0,items:Xl}))},Ui=()=>{const{prefixCls:tr,value:Un,presets:jr,onChange:Qr}=(0,v.useContext)(gr);return Array.isArray(jr)?v.createElement(sr,{value:Un,presets:jr,prefixCls:tr,onChange:Qr}):null},To=function(tr,Un){var jr={};for(var Qr in tr)Object.prototype.hasOwnProperty.call(tr,Qr)&&Un.indexOf(Qr)<0&&(jr[Qr]=tr[Qr]);if(tr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _o=0,Qr=Object.getOwnPropertySymbols(tr);_o{const{prefixCls:Un,presets:jr,panelRender:Qr,color:_o,onChange:us,onClear:ns}=tr,Oa=To(tr,["prefixCls","presets","panelRender","color","onChange","onClear"]),ga=`${Un}-inner-content`,Va=Object.assign({prefixCls:Un,value:_o,onChange:us,onClear:ns},Oa),ea=v.useMemo(()=>({prefixCls:Un,value:_o,presets:jr,onChange:us}),[Un,_o,jr,us]),Xl=v.createElement(v.Fragment,null,v.createElement(qr,null),Array.isArray(jr)&&v.createElement(ce.Z,{className:`${ga}-divider`}),v.createElement(Ui,null));return v.createElement(kn,{value:Va},v.createElement(bn,{value:ea},v.createElement("div",{className:ga},typeof Qr=="function"?Qr(Xl,{components:{Picker:qr,Presets:Ui}}):Xl)))},Is=function(tr,Un){var jr={};for(var Qr in tr)Object.prototype.hasOwnProperty.call(tr,Qr)&&Un.indexOf(Qr)<0&&(jr[Qr]=tr[Qr]);if(tr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _o=0,Qr=Object.getOwnPropertySymbols(tr);_o{const{color:jr,prefixCls:Qr,open:_o,colorCleared:us,disabled:ns,format:Oa,className:ga,showText:Va}=tr,ea=Is(tr,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),Xl=`${Qr}-trigger`,_a=(0,v.useMemo)(()=>us?v.createElement(mo,{prefixCls:Qr}):v.createElement(Gt,{prefixCls:Qr,color:jr.toRgbString()}),[jr,us,Qr]),Ta=()=>{const cu=jr.toHexString().toUpperCase(),jl=wr(jr);switch(Oa){case"rgb":return jr.toRgbString();case"hsb":return jr.toHsbString();case"hex":default:return jl<100?`${cu.slice(0,7)},${jl}%`:cu}},Ya=()=>{if(typeof Va=="function")return Va(jr);if(Va)return Ta()};return v.createElement("div",Object.assign({ref:Un,className:w()(Xl,ga,{[`${Xl}-active`]:_o,[`${Xl}-disabled`]:ns})},ea),_a,Va&&v.createElement("div",{className:`${Xl}-text`},Ya()))});function Lo(tr){return tr!==void 0}var ua=(tr,Un)=>{const{defaultValue:jr,value:Qr}=Un,[_o,us]=(0,v.useState)(()=>{let ns;return Lo(Qr)?ns=Qr:Lo(jr)?ns=jr:ns=tr,vr(ns||"")});return(0,v.useEffect)(()=>{Qr&&us(vr(Qr))},[Qr]),[_o,us]};const Ka=(tr,Un)=>({backgroundImage:`conic-gradient(${Un} 0 25%, transparent 0 50%, ${Un} 0 75%, transparent 0)`,backgroundSize:`${tr} ${tr}`});var Gl=(tr,Un)=>{const{componentCls:jr,borderRadiusSM:Qr,colorPickerInsetShadow:_o,lineWidth:us,colorFillSecondary:ns}=tr;return{[`${jr}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:Qr,width:Un,height:Un,boxShadow:_o},Ka("50%",tr.colorFillSecondary)),{[`${jr}-color-block-inner`]:{width:"100%",height:"100%",border:`${(0,Li.bf)(us)} solid ${ns}`,borderRadius:"inherit"}})}},Hs=tr=>{const{componentCls:Un,antCls:jr,fontSizeSM:Qr,lineHeightSM:_o,colorPickerAlphaInputWidth:us,marginXXS:ns,paddingXXS:Oa,controlHeightSM:ga,marginXS:Va,fontSizeIcon:ea,paddingXS:Xl,colorTextPlaceholder:_a,colorPickerInputNumberHandleWidth:Ta,lineWidth:Ya}=tr;return{[`${Un}-input-container`]:{display:"flex",[`${Un}-steppers${jr}-input-number`]:{fontSize:Qr,lineHeight:_o,[`${jr}-input-number-input`]:{paddingInlineStart:Oa,paddingInlineEnd:0},[`${jr}-input-number-handler-wrap`]:{width:Ta}},[`${Un}-steppers${Un}-alpha-input`]:{flex:`0 0 ${(0,Li.bf)(us)}`,marginInlineStart:ns},[`${Un}-format-select${jr}-select`]:{marginInlineEnd:Va,width:"auto","&-single":{[`${jr}-select-selector`]:{padding:0,border:0},[`${jr}-select-arrow`]:{insetInlineEnd:0},[`${jr}-select-selection-item`]:{paddingInlineEnd:tr.calc(ea).add(ns).equal(),fontSize:Qr,lineHeight:`${(0,Li.bf)(ga)}`},[`${jr}-select-item-option-content`]:{fontSize:Qr,lineHeight:_o},[`${jr}-select-dropdown`]:{[`${jr}-select-item`]:{minHeight:"auto"}}}},[`${Un}-input`]:{gap:ns,alignItems:"center",flex:1,width:0,[`${Un}-hsb-input,${Un}-rgb-input`]:{display:"flex",gap:ns,alignItems:"center"},[`${Un}-steppers`]:{flex:1},[`${Un}-hex-input${jr}-input-affix-wrapper`]:{flex:1,padding:`0 ${(0,Li.bf)(Xl)}`,[`${jr}-input`]:{fontSize:Qr,textTransform:"uppercase",lineHeight:(0,Li.bf)(tr.calc(ga).sub(tr.calc(Ya).mul(2)).equal())},[`${jr}-input-prefix`]:{color:_a}}}}}},Xo=tr=>{const{componentCls:Un,controlHeightLG:jr,borderRadiusSM:Qr,colorPickerInsetShadow:_o,marginSM:us,colorBgElevated:ns,colorFillSecondary:Oa,lineWidthBold:ga,colorPickerHandlerSize:Va,colorPickerHandlerSizeSM:ea,colorPickerSliderHeight:Xl}=tr;return{[`${Un}-select`]:{[`${Un}-palette`]:{minHeight:tr.calc(jr).mul(4).equal(),overflow:"hidden",borderRadius:Qr},[`${Un}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:_o,inset:0},marginBottom:us},[`${Un}-handler`]:{width:Va,height:Va,border:`${(0,Li.bf)(ga)} solid ${ns}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${_o}, 0 0 0 1px ${Oa}`,"&-sm":{width:ea,height:ea}},[`${Un}-slider`]:{borderRadius:tr.calc(Xl).div(2).equal(),[`${Un}-palette`]:{height:Xl},[`${Un}-gradient`]:{borderRadius:tr.calc(Xl).div(2).equal(),boxShadow:_o},"&-alpha":Ka(`${(0,Li.bf)(Xl)}`,tr.colorFillSecondary),"&-hue":{marginBottom:us}},[`${Un}-slider-container`]:{display:"flex",gap:us,marginBottom:us,[`${Un}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${Un}-slider`]:{flex:1,marginBottom:0}}}}}},Yo=tr=>{const{componentCls:Un,antCls:jr,colorTextQuaternary:Qr,paddingXXS:_o,colorPickerPresetColorSize:us,fontSizeSM:ns,colorText:Oa,lineHeightSM:ga,lineWidth:Va,borderRadius:ea,colorFill:Xl,colorWhite:_a,marginXXS:Ta,paddingXS:Ya,fontHeightSM:cu}=tr;return{[`${Un}-presets`]:{[`${jr}-collapse-item > ${jr}-collapse-header`]:{padding:0,[`${jr}-collapse-expand-icon`]:{height:cu,color:Qr,paddingInlineEnd:_o}},[`${jr}-collapse`]:{display:"flex",flexDirection:"column",gap:Ta},[`${jr}-collapse-item > ${jr}-collapse-content > ${jr}-collapse-content-box`]:{padding:`${(0,Li.bf)(Ya)} 0`},"&-label":{fontSize:ns,color:Oa,lineHeight:ga},"&-items":{display:"flex",flexWrap:"wrap",gap:tr.calc(Ta).mul(1.5).equal(),[`${Un}-presets-color`]:{position:"relative",cursor:"pointer",width:us,height:us,"&::before":{content:'""',pointerEvents:"none",width:tr.calc(us).add(tr.calc(Va).mul(4)).equal(),height:tr.calc(us).add(tr.calc(Va).mul(4)).equal(),position:"absolute",top:tr.calc(Va).mul(-2).equal(),insetInlineStart:tr.calc(Va).mul(-2).equal(),borderRadius:ea,border:`${(0,Li.bf)(Va)} solid transparent`,transition:`border-color ${tr.motionDurationMid} ${tr.motionEaseInBack}`},"&:hover::before":{borderColor:Xl},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:tr.calc(us).div(13).mul(5).equal(),height:tr.calc(us).div(13).mul(8).equal(),border:`${(0,Li.bf)(tr.lineWidthBold)} solid ${tr.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${tr.motionDurationFast} ${tr.motionEaseInBack}, opacity ${tr.motionDurationFast}`},[`&${Un}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:_a,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${tr.motionDurationMid} ${tr.motionEaseOutBack} ${tr.motionDurationFast}`},[`&${Un}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:ns,color:Qr}}}};const Os=(tr,Un,jr)=>({borderInlineEndWidth:tr.lineWidth,borderColor:Un,boxShadow:`0 0 0 ${(0,Li.bf)(tr.controlOutlineWidth)} ${jr}`,outline:0}),Cs=tr=>{const{componentCls:Un}=tr;return{"&-rtl":{[`${Un}-presets-color`]:{"&::after":{direction:"ltr"}},[`${Un}-clear`]:{"&::after":{direction:"ltr"}}}}},xa=(tr,Un,jr)=>{const{componentCls:Qr,borderRadiusSM:_o,lineWidth:us,colorSplit:ns,red6:Oa}=tr;return{[`${Qr}-clear`]:Object.assign(Object.assign({width:Un,height:Un,borderRadius:_o,border:`${(0,Li.bf)(us)} solid ${ns}`,position:"relative",cursor:"pointer",overflow:"hidden"},jr),{"&::after":{content:'""',position:"absolute",insetInlineEnd:us,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:Oa}})}},Xu=tr=>{const{componentCls:Un,colorError:jr,colorWarning:Qr,colorErrorHover:_o,colorWarningHover:us,colorErrorOutline:ns,colorWarningOutline:Oa}=tr;return{[`&${Un}-status-error`]:{borderColor:jr,"&:hover":{borderColor:_o},[`&${Un}-trigger-active`]:Object.assign({},Os(tr,jr,ns))},[`&${Un}-status-warning`]:{borderColor:Qr,"&:hover":{borderColor:us},[`&${Un}-trigger-active`]:Object.assign({},Os(tr,Qr,Oa))}}},gc=tr=>{const{componentCls:Un,controlHeightLG:jr,controlHeightSM:Qr,controlHeight:_o,controlHeightXS:us,borderRadius:ns,borderRadiusSM:Oa,borderRadiusXS:ga,borderRadiusLG:Va,fontSizeLG:ea}=tr;return{[`&${Un}-lg`]:{minWidth:jr,height:jr,borderRadius:Va,[`${Un}-color-block, ${Un}-clear`]:{width:_o,height:_o,borderRadius:ns},[`${Un}-trigger-text`]:{fontSize:ea}},[`&${Un}-sm`]:{minWidth:Qr,height:Qr,borderRadius:Oa,[`${Un}-color-block, ${Un}-clear`]:{width:us,height:us,borderRadius:ga}}}},Zu=tr=>{const{componentCls:Un,colorPickerWidth:jr,colorPrimary:Qr,motionDurationMid:_o,colorBgElevated:us,colorTextDisabled:ns,colorText:Oa,colorBgContainerDisabled:ga,borderRadius:Va,marginXS:ea,marginSM:Xl,controlHeight:_a,controlHeightSM:Ta,colorBgTextActive:Ya,colorPickerPresetColorSize:cu,colorPickerPreviewSize:jl,lineWidth:Mu,colorBorder:Bl,paddingXXS:wl,fontSize:Tn,colorPrimaryHover:nc,controlOutline:Iu}=tr;return[{[Un]:Object.assign({[`${Un}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:jr,"&-divider":{margin:`${(0,Li.bf)(Xl)} 0 ${(0,Li.bf)(ea)}`},[`${Un}-panel`]:Object.assign({},Xo(tr))},Gl(tr,jl)),Hs(tr)),Yo(tr)),xa(tr,cu,{marginInlineStart:"auto",marginBottom:ea})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:_a,height:_a,borderRadius:Va,border:`${(0,Li.bf)(Mu)} solid ${Bl}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${_o}`,background:us,padding:tr.calc(wl).sub(Mu).equal(),[`${Un}-trigger-text`]:{marginInlineStart:ea,marginInlineEnd:tr.calc(ea).sub(tr.calc(wl).sub(Mu)).equal(),fontSize:Tn,color:Oa},"&:hover":{borderColor:nc},[`&${Un}-trigger-active`]:Object.assign({},Os(tr,Qr,Iu)),"&-disabled":{color:ns,background:ga,cursor:"not-allowed","&:hover":{borderColor:Ya},[`${Un}-trigger-text`]:{color:ns}}},xa(tr,Ta)),Gl(tr,Ta)),Xu(tr)),gc(tr))},Cs(tr))}]};var Cd=(0,hs.I$)("ColorPicker",tr=>{const{colorTextQuaternary:Un,marginSM:jr}=tr,Qr=8,_o=(0,Wn.TS)(tr,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${Un}`,colorPickerSliderHeight:Qr,colorPickerPreviewSize:tr.calc(Qr).mul(2).add(jr).equal()});return[Zu(_o)]}),ad=function(tr,Un){var jr={};for(var Qr in tr)Object.prototype.hasOwnProperty.call(tr,Qr)&&Un.indexOf(Qr)<0&&(jr[Qr]=tr[Qr]);if(tr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _o=0,Qr=Object.getOwnPropertySymbols(tr);_o{const{value:Un,defaultValue:jr,format:Qr,defaultFormat:_o,allowClear:us=!1,presets:ns,children:Oa,trigger:ga="click",open:Va,disabled:ea,placement:Xl="bottomLeft",arrow:_a=!0,panelRender:Ta,showText:Ya,style:cu,className:jl,size:Mu,rootClassName:Bl,styles:wl,disabledAlpha:Tn=!1,onFormatChange:nc,onChange:Iu,onClear:Pc,onOpenChange:Wc,onChangeComplete:cd,getPopupContainer:Fc,autoAdjustOverflow:vh=!0,destroyTooltipOnHide:Td}=tr,Gh=ad(tr,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:yh,direction:kc,colorPicker:Kh}=(0,v.useContext)(k.E_),$f=(0,v.useContext)(C.Z),Vf=ea!=null?ea:$f,[,_h]=(0,K.ZP)(),[Qh,Mh]=ua(_h.colorPrimary,{value:Un,defaultValue:jr}),[Wd,zs]=(0,b.Z)(!1,{value:Va,postState:md=>!Vf&&md,onChange:Wc}),[$a,Ja]=(0,b.Z)(Qr,{value:Qr,defaultValue:_o,onChange:nc}),[pl,au]=(0,v.useState)(!1),ac=yh("color-picker",fr),$u=(0,v.useMemo)(()=>wr(Qh)<100,[Qh]),{status:cc}=v.useContext(A.aM),Hu=(0,g.Z)(Mu),Fl=(0,M.Z)(ac),[Ou,Qc]=Cd(ac,Fl),fd={[`${ac}-rtl`]:kc},Qd=w()(Bl,Fl,fd),Bh=w()((0,V.Z)(ac,cc),{[`${ac}-sm`]:Hu==="small",[`${ac}-lg`]:Hu==="large"},Kh==null?void 0:Kh.className,Qd,jl,Qc),Gd=w()(ac,Qd),Ch=(0,v.useRef)(!0),Ad=(md,Uh,Qa)=>{let _u=vr(md);(pl||(Un===null||!Un&&jr===null))&&(au(!1),wr(Qh)===0&&Uh!=="alpha"&&(_u=Sr(_u))),Tn&&$u&&(_u=Sr(_u)),Qa?Ch.current=!1:cd==null||cd(_u),Mh(_u),Iu==null||Iu(_u,_u.toHexString())},bd=()=>{au(!0),Pc==null||Pc()},su=md=>{Ch.current=!0;let Uh=vr(md);Tn&&$u&&(Uh=Sr(md)),cd==null||cd(Uh)},nh={open:Wd,trigger:ga,placement:Xl,arrow:_a,rootClassName:Bl,getPopupContainer:Fc,autoAdjustOverflow:vh,destroyTooltipOnHide:Td},tl={prefixCls:ac,color:Qh,allowClear:us,colorCleared:pl,disabled:Vf,disabledAlpha:Tn,presets:ns,panelRender:Ta,format:$a,onFormatChange:Ja,onChangeComplete:su},mu=Object.assign(Object.assign({},Kh==null?void 0:Kh.style),cu);return Ou(v.createElement(O.Z,Object.assign({style:wl==null?void 0:wl.popup,overlayInnerStyle:wl==null?void 0:wl.popupOverlayInner,onOpenChange:md=>{Ch.current&&!Vf&&zs(md)},content:v.createElement(A.Ux,{override:!0,status:!0},v.createElement(Us,Object.assign({},tl,{onChange:Ad,onChangeComplete:su,onClear:bd}))),overlayClassName:Gd},nh),Oa||v.createElement(Ns,Object.assign({open:Wd,className:Bh,style:mu,color:Un?vr(Un):Qh,prefixCls:ac,disabled:Vf,colorCleared:pl,showText:Ya,format:$a},Gh))))},iu=(0,B.Z)(gu,"color-picker",tr=>tr,tr=>Object.assign(Object.assign({},tr),{placement:"bottom",autoAdjustOverflow:!1}));gu._InternalPanelDoNotUseOrYouWillBeFired=iu;var Tu=gu,Si=Tu},40053:function(_t,Y,_){"use strict";_.d(Y,{n:function(){return w}});var v=_(77617);const R=v.createContext(!1),w=b=>{let{children:B,disabled:V}=b;const k=v.useContext(R);return v.createElement(R.Provider,{value:V!=null?V:k},B)};Y.Z=R},40693:function(_t,Y,_){"use strict";_.d(Y,{q:function(){return w}});var v=_(77617);const R=v.createContext(void 0),w=b=>{let{children:B,size:V}=b;const k=v.useContext(R);return v.createElement(R.Provider,{value:V||k},B)};Y.Z=R},51059:function(_t,Y,_){"use strict";_.d(Y,{E_:function(){return b},oR:function(){return R}});var v=_(77617);const R="anticon",w=(V,k)=>k||(V?`ant-${V}`:"ant"),b=v.createContext({getPrefixCls:w,iconPrefixCls:R}),{Consumer:B}=b},29154:function(_t,Y,_){"use strict";var v=_(77617),R=_(51059),w=_(12798);const b=B=>{const{componentName:V}=B,{getPrefixCls:k}=(0,v.useContext)(R.E_),M=k("empty");switch(V){case"Table":case"List":return v.createElement(w.Z,{image:w.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return v.createElement(w.Z,{image:w.Z.PRESENTED_IMAGE_SIMPLE,className:`${M}-small`});default:return v.createElement(w.Z,null)}};Y.Z=b},20170:function(_t,Y,_){"use strict";var v=_(57947);const R=w=>{const[,,,,b]=(0,v.ZP)();return b?`${w}-css-var`:""};Y.Z=R},1220:function(_t,Y,_){"use strict";var v=_(77617),R=_(40693);const w=b=>{const B=v.useContext(R.Z);return v.useMemo(()=>b?typeof b=="string"?b!=null?b:B:b instanceof Function?b(B):B:B,[b,B])};Y.Z=w},62719:function(_t,Y,_){"use strict";_.d(Y,{ZP:function(){return In},w6:function(){return co}});var v=_(77617),R=_(36646),w=_(35954),b=_(4065),B=_(19076),V=_(50905),k=_(55656),M=_(46665),C=_(15268);const g="internalMark";var O=et=>{const{locale:Dt={},children:$t,_ANT_MARK__:Dn}=et;v.useEffect(()=>(0,M.f)(Dt&&Dt.Modal),[Dt]);const gr=v.useMemo(()=>Object.assign(Object.assign({},Dt),{exist:!0}),[Dt]);return v.createElement(C.Z.Provider,{value:gr},$t)},K=_(44199),ce=_(49059),de=_(70825),ve=_(51059),Ee=_(63511),_e=_(64993),we=_(42871),ot=_(75966);const He=`-ant-${Date.now()}-${Math.random()}`;function vt(et,Dt){const $t={},Dn=(bn,zt)=>{let Jt=bn.clone();return Jt=(zt==null?void 0:zt(Jt))||Jt,Jt.toRgbString()},gr=(bn,zt)=>{const Jt=new _e.C(bn),yn=(0,Ee.R_)(Jt.toRgbString());$t[`${zt}-color`]=Dn(Jt),$t[`${zt}-color-disabled`]=yn[1],$t[`${zt}-color-hover`]=yn[4],$t[`${zt}-color-active`]=yn[6],$t[`${zt}-color-outline`]=Jt.clone().setAlpha(.2).toRgbString(),$t[`${zt}-color-deprecated-bg`]=yn[0],$t[`${zt}-color-deprecated-border`]=yn[2]};if(Dt.primaryColor){gr(Dt.primaryColor,"primary");const bn=new _e.C(Dt.primaryColor),zt=(0,Ee.R_)(bn.toRgbString());zt.forEach((yn,fr)=>{$t[`primary-${fr+1}`]=yn}),$t["primary-color-deprecated-l-35"]=Dn(bn,yn=>yn.lighten(35)),$t["primary-color-deprecated-l-20"]=Dn(bn,yn=>yn.lighten(20)),$t["primary-color-deprecated-t-20"]=Dn(bn,yn=>yn.tint(20)),$t["primary-color-deprecated-t-50"]=Dn(bn,yn=>yn.tint(50)),$t["primary-color-deprecated-f-12"]=Dn(bn,yn=>yn.setAlpha(yn.getAlpha()*.12));const Jt=new _e.C(zt[0]);$t["primary-color-active-deprecated-f-30"]=Dn(Jt,yn=>yn.setAlpha(yn.getAlpha()*.3)),$t["primary-color-active-deprecated-d-02"]=Dn(Jt,yn=>yn.darken(2))}return Dt.successColor&&gr(Dt.successColor,"success"),Dt.warningColor&&gr(Dt.warningColor,"warning"),Dt.errorColor&&gr(Dt.errorColor,"error"),Dt.infoColor&&gr(Dt.infoColor,"info"),` + `]:{borderRadius:0},[`> ${Un}-item:last-child`]:{borderBottom:0},[`> ${Un}-item > ${Un}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${Un}-item > ${Un}-content > ${Un}-content-box`]:{paddingTop:Qr}}}},Ko=er=>{const{componentCls:Un,paddingSM:Wr}=er;return{[`${Un}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${Un}-item`]:{borderBottom:0,[`> ${Un}-content`]:{backgroundColor:"transparent",border:0,[`> ${Un}-content-box`]:{paddingBlock:Wr}}}}}},Xn=er=>({headerPadding:`${er.paddingSM}px ${er.padding}px`,headerBg:er.colorFillAlter,contentPadding:`${er.padding}px 16px`,contentBg:er.colorBgContainer});var Rr=(0,ps.I$)("Collapse",er=>{const Un=(0,Wn.TS)(er,{collapseHeaderPaddingSM:`${(0,Pi.bf)(er.paddingXS)} ${(0,Pi.bf)(er.paddingSM)}`,collapseHeaderPaddingLG:`${(0,Pi.bf)(er.padding)} ${(0,Pi.bf)(er.paddingLG)}`,collapsePanelBorderRadius:er.borderRadiusLG});return[yo(Un),ss(Un),Ko(Un),Qo(Un),(0,So.Z)(Un)]},Xn),Ze=Object.assign(v.forwardRef((er,Un)=>{const{getPrefixCls:Wr,direction:Qr,collapse:_o}=v.useContext(k.E_),{prefixCls:us,className:es,rootClassName:Ma,style:ga,bordered:$a=!0,ghost:Js,size:Kl,expandIconPosition:ya="start",children:Ta,expandIcon:Xa}=er,au=(0,g.Z)(dh=>{var Nc;return(Nc=Kl!=null?Kl:dh)!==null&&Nc!==void 0?Nc:"middle"}),$l=Wr("collapse",us),Mu=Wr(),[Bl,Sl]=Rr($l),Tn=v.useMemo(()=>ya==="left"?"start":ya==="right"?"end":ya,[ya]),nc=function(){let dh=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Nc=Xa?Xa(dh):v.createElement(yi.Z,{rotate:dh.isActive?90:void 0});return(0,aa.Tm)(Nc,()=>({className:w()(Nc.props.className,`${$l}-arrow`)}))},Iu=w()(`${$l}-icon-position-${Tn}`,{[`${$l}-borderless`]:!$a,[`${$l}-rtl`]:Qr==="rtl",[`${$l}-ghost`]:!!Js,[`${$l}-${au}`]:au!=="middle"},_o==null?void 0:_o.className,es,Ma,Sl),Ic=Object.assign(Object.assign({},(0,ho.Z)(Mu)),{motionAppear:!1,leavedClassName:`${$l}-content-hidden`}),Vc=v.useMemo(()=>Ta?(0,gi.Z)(Ta).map((dh,Nc)=>{var vd,Th;if(!((vd=dh.props)===null||vd===void 0)&&vd.disabled){const Gd=(Th=dh.key)!==null&&Th!==void 0?Th:String(Nc),{disabled:yd,collapsible:Mc}=dh.props,Kd=Object.assign(Object.assign({},(0,Na.Z)(dh.props,["disabled"])),{key:Gd,collapsible:Mc!=null?Mc:yd?"disabled":void 0});return(0,aa.Tm)(dh,Kd)}return dh}):null,[Ta]);return Bl(v.createElement(Mo,Object.assign({ref:Un,openMotion:Ic},(0,Na.Z)(er,["rootClassName"]),{expandIcon:nc,prefixCls:$l,className:Iu,style:Object.assign(Object.assign({},_o==null?void 0:_o.style),ga)}),Vc))}),{Panel:Si}),ht=Ze,dt=y(10110);const $e=er=>er.map(Un=>(Un.colors=Un.colors.map(pr),Un)),ft=(er,Un)=>{const{r:Wr,g:Qr,b:_o,a:us}=er.toRgb(),es=new Xe(er.toRgbString()).onBackground(Un).toHsv();return us<=.5?es.v>.5:Wr*.299+Qr*.587+_o*.114>192},Lt=er=>{let{label:Un}=er;return`panel-${Un}`};var rr=er=>{let{prefixCls:Un,presets:Wr,value:Qr,onChange:_o}=er;const[us]=(0,dt.Z)("ColorPicker"),[,es]=(0,K.ZP)(),[Ma]=(0,b.Z)($e(Wr),{value:$e(Wr),postState:$e}),ga=`${Un}-presets`,$a=(0,v.useMemo)(()=>Ma.reduce((ya,Ta)=>{const{defaultOpen:Xa=!0}=Ta;return Xa&&ya.push(Lt(Ta)),ya},[]),[Ma]),Js=ya=>{_o==null||_o(ya)},Kl=Ma.map(ya=>{var Ta;return{key:Lt(ya),label:v.createElement("div",{className:`${ga}-label`},ya==null?void 0:ya.label),children:v.createElement("div",{className:`${ga}-items`},Array.isArray(ya==null?void 0:ya.colors)&&((Ta=ya.colors)===null||Ta===void 0?void 0:Ta.length)>0?ya.colors.map((Xa,au)=>v.createElement(Kt,{key:`preset-${au}-${Xa.toHexString()}`,color:pr(Xa).toRgbString(),prefixCls:Un,className:w()(`${ga}-color`,{[`${ga}-color-checked`]:Xa.toHexString()===(Qr==null?void 0:Qr.toHexString()),[`${ga}-color-bright`]:ft(Xa,es.colorBgElevated)}),onClick:()=>Js(Xa)})):v.createElement("span",{className:`${ga}-empty`},us.presetEmpty))}});return v.createElement("div",{className:ga},v.createElement(ht,{defaultActiveKey:$a,ghost:!0,items:Kl}))},Fi=()=>{const{prefixCls:er,value:Un,presets:Wr,onChange:Qr}=(0,v.useContext)(fr);return Array.isArray(Wr)?v.createElement(rr,{value:Un,presets:Wr,prefixCls:er,onChange:Qr}):null},xo=function(er,Un){var Wr={};for(var Qr in er)Object.prototype.hasOwnProperty.call(er,Qr)&&Un.indexOf(Qr)<0&&(Wr[Qr]=er[Qr]);if(er!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _o=0,Qr=Object.getOwnPropertySymbols(er);_o{const{prefixCls:Un,presets:Wr,panelRender:Qr,color:_o,onChange:us,onClear:es}=er,Ma=xo(er,["prefixCls","presets","panelRender","color","onChange","onClear"]),ga=`${Un}-inner-content`,$a=Object.assign({prefixCls:Un,value:_o,onChange:us,onClear:es},Ma),Js=v.useMemo(()=>({prefixCls:Un,value:_o,presets:Wr,onChange:us}),[Un,_o,Wr,us]),Kl=v.createElement(v.Fragment,null,v.createElement(qr,null),Array.isArray(Wr)&&v.createElement(he.Z,{className:`${ga}-divider`}),v.createElement(Fi,null));return v.createElement(In,{value:$a},v.createElement(mn,{value:Js},v.createElement("div",{className:ga},typeof Qr=="function"?Qr(Kl,{components:{Picker:qr,Presets:Fi}}):Kl)))},Ps=function(er,Un){var Wr={};for(var Qr in er)Object.prototype.hasOwnProperty.call(er,Qr)&&Un.indexOf(Qr)<0&&(Wr[Qr]=er[Qr]);if(er!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _o=0,Qr=Object.getOwnPropertySymbols(er);_o{const{color:Wr,prefixCls:Qr,open:_o,colorCleared:us,disabled:es,format:Ma,className:ga,showText:$a}=er,Js=Ps(er,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),Kl=`${Qr}-trigger`,ya=(0,v.useMemo)(()=>us?v.createElement(vo,{prefixCls:Qr}):v.createElement(Kt,{prefixCls:Qr,color:Wr.toRgbString()}),[Wr,us,Qr]),Ta=()=>{const au=Wr.toHexString().toUpperCase(),$l=wr(Wr);switch(Ma){case"rgb":return Wr.toRgbString();case"hsb":return Wr.toHsbString();case"hex":default:return $l<100?`${au.slice(0,7)},${$l}%`:au}},Xa=()=>{if(typeof $a=="function")return $a(Wr);if($a)return Ta()};return v.createElement("div",Object.assign({ref:Un,className:w()(Kl,ga,{[`${Kl}-active`]:_o,[`${Kl}-disabled`]:es})},Js),ya,$a&&v.createElement("div",{className:`${Kl}-text`},Xa()))});function ko(er){return er!==void 0}var ia=(er,Un)=>{const{defaultValue:Wr,value:Qr}=Un,[_o,us]=(0,v.useState)(()=>{let es;return ko(Qr)?es=Qr:ko(Wr)?es=Wr:es=er,pr(es||"")});return(0,v.useEffect)(()=>{Qr&&us(pr(Qr))},[Qr]),[_o,us]};const za=(er,Un)=>({backgroundImage:`conic-gradient(${Un} 0 25%, transparent 0 50%, ${Un} 0 75%, transparent 0)`,backgroundSize:`${er} ${er}`});var Hl=(er,Un)=>{const{componentCls:Wr,borderRadiusSM:Qr,colorPickerInsetShadow:_o,lineWidth:us,colorFillSecondary:es}=er;return{[`${Wr}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:Qr,width:Un,height:Un,boxShadow:_o},za("50%",er.colorFillSecondary)),{[`${Wr}-color-block-inner`]:{width:"100%",height:"100%",border:`${(0,Pi.bf)(us)} solid ${es}`,borderRadius:"inherit"}})}},js=er=>{const{componentCls:Un,antCls:Wr,fontSizeSM:Qr,lineHeightSM:_o,colorPickerAlphaInputWidth:us,marginXXS:es,paddingXXS:Ma,controlHeightSM:ga,marginXS:$a,fontSizeIcon:Js,paddingXS:Kl,colorTextPlaceholder:ya,colorPickerInputNumberHandleWidth:Ta,lineWidth:Xa}=er;return{[`${Un}-input-container`]:{display:"flex",[`${Un}-steppers${Wr}-input-number`]:{fontSize:Qr,lineHeight:_o,[`${Wr}-input-number-input`]:{paddingInlineStart:Ma,paddingInlineEnd:0},[`${Wr}-input-number-handler-wrap`]:{width:Ta}},[`${Un}-steppers${Un}-alpha-input`]:{flex:`0 0 ${(0,Pi.bf)(us)}`,marginInlineStart:es},[`${Un}-format-select${Wr}-select`]:{marginInlineEnd:$a,width:"auto","&-single":{[`${Wr}-select-selector`]:{padding:0,border:0},[`${Wr}-select-arrow`]:{insetInlineEnd:0},[`${Wr}-select-selection-item`]:{paddingInlineEnd:er.calc(Js).add(es).equal(),fontSize:Qr,lineHeight:`${(0,Pi.bf)(ga)}`},[`${Wr}-select-item-option-content`]:{fontSize:Qr,lineHeight:_o},[`${Wr}-select-dropdown`]:{[`${Wr}-select-item`]:{minHeight:"auto"}}}},[`${Un}-input`]:{gap:es,alignItems:"center",flex:1,width:0,[`${Un}-hsb-input,${Un}-rgb-input`]:{display:"flex",gap:es,alignItems:"center"},[`${Un}-steppers`]:{flex:1},[`${Un}-hex-input${Wr}-input-affix-wrapper`]:{flex:1,padding:`0 ${(0,Pi.bf)(Kl)}`,[`${Wr}-input`]:{fontSize:Qr,textTransform:"uppercase",lineHeight:(0,Pi.bf)(er.calc(ga).sub(er.calc(Xa).mul(2)).equal())},[`${Wr}-input-prefix`]:{color:ya}}}}}},Xo=er=>{const{componentCls:Un,controlHeightLG:Wr,borderRadiusSM:Qr,colorPickerInsetShadow:_o,marginSM:us,colorBgElevated:es,colorFillSecondary:Ma,lineWidthBold:ga,colorPickerHandlerSize:$a,colorPickerHandlerSizeSM:Js,colorPickerSliderHeight:Kl}=er;return{[`${Un}-select`]:{[`${Un}-palette`]:{minHeight:er.calc(Wr).mul(4).equal(),overflow:"hidden",borderRadius:Qr},[`${Un}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:_o,inset:0},marginBottom:us},[`${Un}-handler`]:{width:$a,height:$a,border:`${(0,Pi.bf)(ga)} solid ${es}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${_o}, 0 0 0 1px ${Ma}`,"&-sm":{width:Js,height:Js}},[`${Un}-slider`]:{borderRadius:er.calc(Kl).div(2).equal(),[`${Un}-palette`]:{height:Kl},[`${Un}-gradient`]:{borderRadius:er.calc(Kl).div(2).equal(),boxShadow:_o},"&-alpha":za(`${(0,Pi.bf)(Kl)}`,er.colorFillSecondary),"&-hue":{marginBottom:us}},[`${Un}-slider-container`]:{display:"flex",gap:us,marginBottom:us,[`${Un}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${Un}-slider`]:{flex:1,marginBottom:0}}}}}},Yo=er=>{const{componentCls:Un,antCls:Wr,colorTextQuaternary:Qr,paddingXXS:_o,colorPickerPresetColorSize:us,fontSizeSM:es,colorText:Ma,lineHeightSM:ga,lineWidth:$a,borderRadius:Js,colorFill:Kl,colorWhite:ya,marginXXS:Ta,paddingXS:Xa,fontHeightSM:au}=er;return{[`${Un}-presets`]:{[`${Wr}-collapse-item > ${Wr}-collapse-header`]:{padding:0,[`${Wr}-collapse-expand-icon`]:{height:au,color:Qr,paddingInlineEnd:_o}},[`${Wr}-collapse`]:{display:"flex",flexDirection:"column",gap:Ta},[`${Wr}-collapse-item > ${Wr}-collapse-content > ${Wr}-collapse-content-box`]:{padding:`${(0,Pi.bf)(Xa)} 0`},"&-label":{fontSize:es,color:Ma,lineHeight:ga},"&-items":{display:"flex",flexWrap:"wrap",gap:er.calc(Ta).mul(1.5).equal(),[`${Un}-presets-color`]:{position:"relative",cursor:"pointer",width:us,height:us,"&::before":{content:'""',pointerEvents:"none",width:er.calc(us).add(er.calc($a).mul(4)).equal(),height:er.calc(us).add(er.calc($a).mul(4)).equal(),position:"absolute",top:er.calc($a).mul(-2).equal(),insetInlineStart:er.calc($a).mul(-2).equal(),borderRadius:Js,border:`${(0,Pi.bf)($a)} solid transparent`,transition:`border-color ${er.motionDurationMid} ${er.motionEaseInBack}`},"&:hover::before":{borderColor:Kl},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:er.calc(us).div(13).mul(5).equal(),height:er.calc(us).div(13).mul(8).equal(),border:`${(0,Pi.bf)(er.lineWidthBold)} solid ${er.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${er.motionDurationFast} ${er.motionEaseInBack}, opacity ${er.motionDurationFast}`},[`&${Un}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:ya,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${er.motionDurationMid} ${er.motionEaseOutBack} ${er.motionDurationFast}`},[`&${Un}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:es,color:Qr}}}};const Os=(er,Un,Wr)=>({borderInlineEndWidth:er.lineWidth,borderColor:Un,boxShadow:`0 0 0 ${(0,Pi.bf)(er.controlOutlineWidth)} ${Wr}`,outline:0}),Cs=er=>{const{componentCls:Un}=er;return{"&-rtl":{[`${Un}-presets-color`]:{"&::after":{direction:"ltr"}},[`${Un}-clear`]:{"&::after":{direction:"ltr"}}}}},ba=(er,Un,Wr)=>{const{componentCls:Qr,borderRadiusSM:_o,lineWidth:us,colorSplit:es,red6:Ma}=er;return{[`${Qr}-clear`]:Object.assign(Object.assign({width:Un,height:Un,borderRadius:_o,border:`${(0,Pi.bf)(us)} solid ${es}`,position:"relative",cursor:"pointer",overflow:"hidden"},Wr),{"&::after":{content:'""',position:"absolute",insetInlineEnd:us,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:Ma}})}},Yu=er=>{const{componentCls:Un,colorError:Wr,colorWarning:Qr,colorErrorHover:_o,colorWarningHover:us,colorErrorOutline:es,colorWarningOutline:Ma}=er;return{[`&${Un}-status-error`]:{borderColor:Wr,"&:hover":{borderColor:_o},[`&${Un}-trigger-active`]:Object.assign({},Os(er,Wr,es))},[`&${Un}-status-warning`]:{borderColor:Qr,"&:hover":{borderColor:us},[`&${Un}-trigger-active`]:Object.assign({},Os(er,Qr,Ma))}}},pc=er=>{const{componentCls:Un,controlHeightLG:Wr,controlHeightSM:Qr,controlHeight:_o,controlHeightXS:us,borderRadius:es,borderRadiusSM:Ma,borderRadiusXS:ga,borderRadiusLG:$a,fontSizeLG:Js}=er;return{[`&${Un}-lg`]:{minWidth:Wr,height:Wr,borderRadius:$a,[`${Un}-color-block, ${Un}-clear`]:{width:_o,height:_o,borderRadius:es},[`${Un}-trigger-text`]:{fontSize:Js}},[`&${Un}-sm`]:{minWidth:Qr,height:Qr,borderRadius:Ma,[`${Un}-color-block, ${Un}-clear`]:{width:us,height:us,borderRadius:ga}}}},Hu=er=>{const{componentCls:Un,colorPickerWidth:Wr,colorPrimary:Qr,motionDurationMid:_o,colorBgElevated:us,colorTextDisabled:es,colorText:Ma,colorBgContainerDisabled:ga,borderRadius:$a,marginXS:Js,marginSM:Kl,controlHeight:ya,controlHeightSM:Ta,colorBgTextActive:Xa,colorPickerPresetColorSize:au,colorPickerPreviewSize:$l,lineWidth:Mu,colorBorder:Bl,paddingXXS:Sl,fontSize:Tn,colorPrimaryHover:nc,controlOutline:Iu}=er;return[{[Un]:Object.assign({[`${Un}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:Wr,"&-divider":{margin:`${(0,Pi.bf)(Kl)} 0 ${(0,Pi.bf)(Js)}`},[`${Un}-panel`]:Object.assign({},Xo(er))},Hl(er,$l)),js(er)),Yo(er)),ba(er,au,{marginInlineStart:"auto",marginBottom:Js})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:ya,height:ya,borderRadius:$a,border:`${(0,Pi.bf)(Mu)} solid ${Bl}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${_o}`,background:us,padding:er.calc(Sl).sub(Mu).equal(),[`${Un}-trigger-text`]:{marginInlineStart:Js,marginInlineEnd:er.calc(Js).sub(er.calc(Sl).sub(Mu)).equal(),fontSize:Tn,color:Ma},"&:hover":{borderColor:nc},[`&${Un}-trigger-active`]:Object.assign({},Os(er,Qr,Iu)),"&-disabled":{color:es,background:ga,cursor:"not-allowed","&:hover":{borderColor:Xa},[`${Un}-trigger-text`]:{color:es}}},ba(er,Ta)),Hl(er,Ta)),Yu(er)),pc(er))},Cs(er))}]};var wh=(0,ps.I$)("ColorPicker",er=>{const{colorTextQuaternary:Un,marginSM:Wr}=er,Qr=8,_o=(0,Wn.TS)(er,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${Un}`,colorPickerSliderHeight:Qr,colorPickerPreviewSize:er.calc(Qr).mul(2).add(Wr).equal()});return[Hu(_o)]}),lh=function(er,Un){var Wr={};for(var Qr in er)Object.prototype.hasOwnProperty.call(er,Qr)&&Un.indexOf(Qr)<0&&(Wr[Qr]=er[Qr]);if(er!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _o=0,Qr=Object.getOwnPropertySymbols(er);_o{const{value:Un,defaultValue:Wr,format:Qr,defaultFormat:_o,allowClear:us=!1,presets:es,children:Ma,trigger:ga="click",open:$a,disabled:Js,placement:Kl="bottomLeft",arrow:ya=!0,panelRender:Ta,showText:Xa,style:au,className:$l,size:Mu,rootClassName:Bl,styles:Sl,disabledAlpha:Tn=!1,onFormatChange:nc,onChange:Iu,onClear:Ic,onOpenChange:Vc,onChangeComplete:dh,getPopupContainer:Nc,autoAdjustOverflow:vd=!0,destroyTooltipOnHide:Th}=er,Gd=lh(er,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:yd,direction:Mc,colorPicker:Kd}=(0,v.useContext)(k.E_),Vf=(0,v.useContext)(C.Z),jf=Js!=null?Js:Vf,[,_d]=(0,K.ZP)(),[Qd,Md]=ia(_d.colorPrimary,{value:Un,defaultValue:Wr}),[jh,Bs]=(0,b.Z)(!1,{value:$a,postState:mh=>!jf&&mh,onChange:Vc}),[Ua,Ya]=(0,b.Z)(Qr,{value:Qr,defaultValue:_o,onChange:nc}),[ml,ou]=(0,v.useState)(!1),ac=yd("color-picker",lr),ju=(0,v.useMemo)(()=>wr(Qd)<100,[Qd]),{status:uc}=v.useContext(A.aM),Gu=(0,g.Z)(Mu),Ol=(0,R.Z)(ac),[Nu,qc]=wh(ac,Ol),fh={[`${ac}-rtl`]:Mc},Qh=w()(Bl,Ol,fh),Bd=w()((0,V.Z)(ac,uc),{[`${ac}-sm`]:Gu==="small",[`${ac}-lg`]:Gu==="large"},Kd==null?void 0:Kd.className,Qh,$l,qc),Hh=w()(ac,Qh),Cd=(0,v.useRef)(!0),Ah=(mh,Ud,Qa)=>{let mu=pr(mh);(ml||(Un===null||!Un&&Wr===null))&&(ou(!1),wr(Qd)===0&&Ud!=="alpha"&&(mu=Cr(mu))),Tn&&ju&&(mu=Cr(mu)),Qa?Cd.current=!1:dh==null||dh(mu),Md(mu),Iu==null||Iu(mu,mu.toHexString())},bh=()=>{ou(!0),Ic==null||Ic()},su=mh=>{Cd.current=!0;let Ud=pr(mh);Tn&&ju&&(Ud=Cr(mh)),dh==null||dh(Ud)},nd={open:jh,trigger:ga,placement:Kl,arrow:ya,rootClassName:Bl,getPopupContainer:Nc,autoAdjustOverflow:vd,destroyTooltipOnHide:Th},el={prefixCls:ac,color:Qd,allowClear:us,colorCleared:ml,disabled:jf,disabledAlpha:Tn,presets:es,panelRender:Ta,format:Ua,onFormatChange:Ya,onChangeComplete:su},pu=Object.assign(Object.assign({},Kd==null?void 0:Kd.style),au);return Nu(v.createElement(O.Z,Object.assign({style:Sl==null?void 0:Sl.popup,overlayInnerStyle:Sl==null?void 0:Sl.popupOverlayInner,onOpenChange:mh=>{Cd.current&&!jf&&Bs(mh)},content:v.createElement(A.Ux,{override:!0,status:!0},v.createElement(zs,Object.assign({},el,{onChange:Ah,onChangeComplete:su,onClear:bh}))),overlayClassName:Hh},nd),Ma||v.createElement(ks,Object.assign({open:jh,className:Bd,style:pu,color:Un?pr(Un):Qd,prefixCls:ac,disabled:jf,colorCleared:ml,showText:Xa,format:Ua},Gd))))},ru=(0,B.Z)(fu,"color-picker",er=>er,er=>Object.assign(Object.assign({},er),{placement:"bottom",autoAdjustOverflow:!1}));fu._InternalPanelDoNotUseOrYouWillBeFired=ru;var Tu=fu,wi=Tu},98866:function(yt,Y,y){"use strict";y.d(Y,{n:function(){return w}});var v=y(67294);const P=v.createContext(!1),w=b=>{let{children:B,disabled:V}=b;const k=v.useContext(P);return v.createElement(P.Provider,{value:V!=null?V:k},B)};Y.Z=P},97647:function(yt,Y,y){"use strict";y.d(Y,{q:function(){return w}});var v=y(67294);const P=v.createContext(void 0),w=b=>{let{children:B,size:V}=b;const k=v.useContext(P);return v.createElement(P.Provider,{value:V||k},B)};Y.Z=P},53124:function(yt,Y,y){"use strict";y.d(Y,{E_:function(){return b},oR:function(){return P}});var v=y(67294);const P="anticon",w=(V,k)=>k||(V?`ant-${V}`:"ant"),b=v.createContext({getPrefixCls:w,iconPrefixCls:P}),{Consumer:B}=b},88258:function(yt,Y,y){"use strict";var v=y(67294),P=y(53124),w=y(32983);const b=B=>{const{componentName:V}=B,{getPrefixCls:k}=(0,v.useContext)(P.E_),R=k("empty");switch(V){case"Table":case"List":return v.createElement(w.Z,{image:w.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return v.createElement(w.Z,{image:w.Z.PRESENTED_IMAGE_SIMPLE,className:`${R}-small`});default:return v.createElement(w.Z,null)}};Y.Z=b},35792:function(yt,Y,y){"use strict";var v=y(25976);const P=w=>{const[,,,,b]=(0,v.ZP)();return b?`${w}-css-var`:""};Y.Z=P},98675:function(yt,Y,y){"use strict";var v=y(67294),P=y(97647);const w=b=>{const B=v.useContext(P.Z);return v.useMemo(()=>b?typeof b=="string"?b!=null?b:B:b instanceof Function?b(B):B:B,[b,B])};Y.Z=w},28459:function(yt,Y,y){"use strict";y.d(Y,{ZP:function(){return Ht},w6:function(){return Ln}});var v=y(67294),P=y.t(v,2),w=y(43109),b=y(54775),B=y(56982),V=y(8880),k=y(27288),R=y(37920),C=y(83008),g=y(76745);const A="internalMark";var K=Pn=>{const{locale:fr={},children:In,_ANT_MARK__:mn}=Pn;v.useEffect(()=>(0,C.f)(fr&&fr.Modal),[fr]);const Ut=v.useMemo(()=>Object.assign(Object.assign({},fr),{exist:!0}),[fr]);return v.createElement(g.Z.Provider,{value:Ut},In)},he=y(88526),ae=y(33083),fe=y(2790),xe=y(53124),ye=y(16397),be=y(10274),Qe=y(98924),Ve=y(44958);const pt=`-ant-${Date.now()}-${Math.random()}`;function st(Pn,fr){const In={},mn=(Cn,lr)=>{let pr=Cn.clone();return pr=(lr==null?void 0:lr(pr))||pr,pr.toRgbString()},Ut=(Cn,lr)=>{const pr=new be.C(Cn),an=(0,ye.R_)(pr.toRgbString());In[`${lr}-color`]=mn(pr),In[`${lr}-color-disabled`]=an[1],In[`${lr}-color-hover`]=an[4],In[`${lr}-color-active`]=an[6],In[`${lr}-color-outline`]=pr.clone().setAlpha(.2).toRgbString(),In[`${lr}-color-deprecated-bg`]=an[0],In[`${lr}-color-deprecated-border`]=an[2]};if(fr.primaryColor){Ut(fr.primaryColor,"primary");const Cn=new be.C(fr.primaryColor),lr=(0,ye.R_)(Cn.toRgbString());lr.forEach((an,wr)=>{In[`primary-${wr+1}`]=an}),In["primary-color-deprecated-l-35"]=mn(Cn,an=>an.lighten(35)),In["primary-color-deprecated-l-20"]=mn(Cn,an=>an.lighten(20)),In["primary-color-deprecated-t-20"]=mn(Cn,an=>an.tint(20)),In["primary-color-deprecated-t-50"]=mn(Cn,an=>an.tint(50)),In["primary-color-deprecated-f-12"]=mn(Cn,an=>an.setAlpha(an.getAlpha()*.12));const pr=new be.C(lr[0]);In["primary-color-active-deprecated-f-30"]=mn(pr,an=>an.setAlpha(an.getAlpha()*.3)),In["primary-color-active-deprecated-d-02"]=mn(pr,an=>an.darken(2))}return fr.successColor&&Ut(fr.successColor,"success"),fr.warningColor&&Ut(fr.warningColor,"warning"),fr.errorColor&&Ut(fr.errorColor,"error"),fr.infoColor&&Ut(fr.infoColor,"info"),` :root { - ${Object.keys($t).map(bn=>`--${et}-${bn}: ${$t[bn]};`).join(` + ${Object.keys(In).map(Cn=>`--${Pn}-${Cn}: ${In[Cn]};`).join(` `)} } - `.trim()}function dt(et,Dt){const $t=vt(et,Dt);(0,we.Z)()&&(0,ot.hq)($t,`${He}-dynamic-theme`)}var Pe=_(40053),De=_(40693);function Ae(){const et=(0,v.useContext)(Pe.Z),Dt=(0,v.useContext)(De.Z);return{componentDisabled:et,componentSize:Dt}}var Re=Ae,$e=_(70780);const Ie=()=>"";var ze=typeof v.useId=="undefined"?Ie:v.useId;function Kt(et,Dt){var $t;const Dn=(0,V.ln)("ConfigProvider"),gr=et||{},kn=gr.inherit===!1||!Dt?ce.u_:Dt,bn=ze();return(0,b.Z)(()=>{var zt,Jt;if(!et)return Dt;const yn=Object.assign({},kn.components);Object.keys(et.components||{}).forEach(pn=>{yn[pn]=Object.assign(Object.assign({},yn[pn]),et.components[pn])});const fr=`css-var-${bn.replace(/:/g,"")}`,vr=((zt=gr.cssVar)!==null&&zt!==void 0?zt:kn.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof kn.cssVar=="object"?kn.cssVar:{}),typeof gr.cssVar=="object"?gr.cssVar:{}),{key:typeof gr.cssVar=="object"&&((Jt=gr.cssVar)===null||Jt===void 0?void 0:Jt.key)||fr});return Object.assign(Object.assign(Object.assign({},kn),gr),{token:Object.assign(Object.assign({},kn.token),gr.token),components:yn,cssVar:vr})},[gr,kn],(zt,Jt)=>zt.some((yn,fr)=>{const vr=Jt[fr];return!(0,$e.Z)(yn,vr,!0)}))}var St=_(44516),nt=_(57947);function Ct(et){const{children:Dt}=et,[,$t]=(0,nt.ZP)(),{motion:Dn}=$t,gr=v.useRef(!1);return gr.current=gr.current||Dn===!1,gr.current?v.createElement(St.zt,{motion:Dn},Dt):Dt}const lt=null;var Gt=()=>null,Rt=_(69647),an=function(et,Dt){var $t={};for(var Dn in et)Object.prototype.hasOwnProperty.call(et,Dn)&&Dt.indexOf(Dn)<0&&($t[Dn]=et[Dn]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gr=0,Dn=Object.getOwnPropertySymbols(et);grDt.endsWith("Color"))}const qi=et=>{let{prefixCls:Dt,iconPrefixCls:$t,theme:Dn}=et;Dt!==void 0&&(Yi=Dt),$t!==void 0&&(ti=$t),Dn&&(Gi(Dn)?dt(Bs(),Dn):Ts=Dn)},co=()=>({getPrefixCls:(et,Dt)=>Dt||(et?`${Bs()}-${et}`:Bs()),getIconPrefixCls:Ce,getRootPrefixCls:()=>Yi||Bs(),getTheme:()=>Ts}),fi=et=>{const{children:Dt,csp:$t,autoInsertSpaceInButton:Dn,alert:gr,anchor:kn,form:bn,locale:zt,componentSize:Jt,direction:yn,space:fr,virtual:vr,dropdownMatchSelectWidth:pn,popupMatchSelectWidth:wr,popupOverflow:Sr,legacyLocale:Ai,parentContext:mo,iconPrefixCls:Fr,theme:to,componentDisabled:Ji,segmented:bo,statistic:xn,spin:fn,calendar:It,carousel:Zt,cascader:gn,collapse:$n,typography:Ar,checkbox:Dr,descriptions:dr,divider:Xt,drawer:Cn,skeleton:er,steps:Mr,image:ji,layout:An,list:Xn,mentions:nr,modal:qr,progress:vi,result:Hr,slider:di,breadcrumb:gi,menu:mi,pagination:Bi,input:zr,empty:Xr,badge:Qi,radio:rs,rate:Ur,switch:gs,transfer:Kr,avatar:ri,message:is,tag:Jr,table:_n,card:Br,tabs:es,timeline:ko,timePicker:vs,upload:Ba,notification:uo,tree:ca,colorPicker:ll,datePicker:Ti,rangePicker:Li,flex:eo,wave:Eo,dropdown:hs,warning:Wn}=et,yo=v.useCallback((ft,Pt)=>{const{prefixCls:ln}=et;if(Pt)return Pt;const sr=ln||mo.getPrefixCls("");return ft?`${sr}-${ft}`:sr},[mo.getPrefixCls,et.prefixCls]),Qo=Fr||mo.iconPrefixCls||ve.oR,os=$t||mo.csp;(0,Rt.Z)(Qo,os);const Ko=Kt(to,mo.theme),Yn={csp:os,autoInsertSpaceInButton:Dn,alert:gr,anchor:kn,locale:zt||Ai,direction:yn,space:fr,virtual:vr,popupMatchSelectWidth:wr!=null?wr:pn,popupOverflow:Sr,getPrefixCls:yo,iconPrefixCls:Qo,theme:Ko,segmented:bo,statistic:xn,spin:fn,calendar:It,carousel:Zt,cascader:gn,collapse:$n,typography:Ar,checkbox:Dr,descriptions:dr,divider:Xt,drawer:Cn,skeleton:er,steps:Mr,image:ji,input:zr,layout:An,list:Xn,mentions:nr,modal:qr,progress:vi,result:Hr,slider:di,breadcrumb:gi,menu:mi,pagination:Bi,empty:Xr,badge:Qi,radio:rs,rate:Ur,switch:gs,transfer:Kr,avatar:ri,message:is,tag:Jr,table:_n,card:Br,tabs:es,timeline:ko,timePicker:vs,upload:Ba,notification:uo,tree:ca,colorPicker:ll,datePicker:Ti,rangePicker:Li,flex:eo,wave:Eo,dropdown:hs,warning:Wn},kr=Object.assign({},mo);Object.keys(Yn).forEach(ft=>{Yn[ft]!==void 0&&(kr[ft]=Yn[ft])}),Pi.forEach(ft=>{const Pt=et[ft];Pt&&(kr[ft]=Pt)});const Gr=(0,b.Z)(()=>kr,kr,(ft,Pt)=>{const ln=Object.keys(ft),sr=Object.keys(Pt);return ln.length!==sr.length||ln.some(Zr=>ft[Zr]!==Pt[Zr])}),je=v.useMemo(()=>({prefixCls:Qo,csp:os}),[Qo,os]);let ut=v.createElement(v.Fragment,null,v.createElement(Gt,{dropdownMatchSelectWidth:pn}),Dt);const ht=v.useMemo(()=>{var ft,Pt,ln,sr;return(0,B.T)(((ft=K.Z.Form)===null||ft===void 0?void 0:ft.defaultValidateMessages)||{},((ln=(Pt=Gr.locale)===null||Pt===void 0?void 0:Pt.Form)===null||ln===void 0?void 0:ln.defaultValidateMessages)||{},((sr=Gr.form)===null||sr===void 0?void 0:sr.validateMessages)||{},(bn==null?void 0:bn.validateMessages)||{})},[Gr,bn==null?void 0:bn.validateMessages]);Object.keys(ht).length>0&&(ut=v.createElement(k.Z.Provider,{value:ht},ut)),zt&&(ut=v.createElement(O,{locale:zt,_ANT_MARK__:g},ut)),(Qo||os)&&(ut=v.createElement(w.Z.Provider,{value:je},ut)),Jt&&(ut=v.createElement(De.q,{size:Jt},ut)),ut=v.createElement(Ct,null,ut);const Ue=v.useMemo(()=>{const ft=Ko||{},{algorithm:Pt,token:ln,components:sr,cssVar:Zr}=ft,Ui=an(ft,["algorithm","token","components","cssVar"]),To=Pt&&(!Array.isArray(Pt)||Pt.length>0)?(0,R.jG)(Pt):ce.uH,Vi={};Object.entries(sr||{}).forEach(Is=>{let[Rs,Ns]=Is;const Lo=Object.assign({},Ns);"algorithm"in Lo&&(Lo.algorithm===!0?Lo.theme=To:(Array.isArray(Lo.algorithm)||typeof Lo.algorithm=="function")&&(Lo.theme=(0,R.jG)(Lo.algorithm)),delete Lo.algorithm),Vi[Rs]=Lo});const Us=Object.assign(Object.assign({},de.Z),ln);return Object.assign(Object.assign({},Ui),{theme:To,token:Us,components:Vi,override:Object.assign({override:Us},Vi),cssVar:Zr})},[Ko]);return to&&(ut=v.createElement(ce.Mj.Provider,{value:Ue},ut)),Gr.warning&&(ut=v.createElement(V.G8.Provider,{value:Gr.warning},ut)),Ji!==void 0&&(ut=v.createElement(Pe.n,{disabled:Ji},ut)),v.createElement(ve.E_.Provider,{value:Gr},ut)},Ms=et=>{const Dt=v.useContext(ve.E_),$t=v.useContext(C.Z);return v.createElement(fi,Object.assign({parentContext:Dt,legacyLocale:$t},et))};Ms.ConfigContext=ve.E_,Ms.SizeContext=De.Z,Ms.config=qi,Ms.useConfig=Re,Object.defineProperty(Ms,"SizeContext",{get:()=>De.Z});var In=Ms},88367:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return Rt}});var v=_(77617),R=_(12124),w=_.n(R),b=_(94123),B=_(51059),V=_(1220),k=_(44111),C={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},A=v.createContext({}),O=_(45659),K=function(an,cn){var Cr={};for(var ii in an)Object.prototype.hasOwnProperty.call(an,ii)&&cn.indexOf(ii)<0&&(Cr[ii]=an[ii]);if(an!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pi=0,ii=Object.getOwnPropertySymbols(an);Pi(0,O.Z)(an).map(cn=>Object.assign(Object.assign({},cn==null?void 0:cn.props),{key:cn.key}));function de(an,cn,Cr){const ii=v.useMemo(()=>cn||ce(Cr),[cn,Cr]);return v.useMemo(()=>ii.map(Ni=>{var{span:Yi}=Ni,ti=K(Ni,["span"]);return Object.assign(Object.assign({},ti),{span:typeof Yi=="number"?Yi:(0,b.m9)(an,Yi)})}),[ii,an])}function ve(an,cn,Cr){let ii=an,Pi=!1;return(Cr===void 0||Cr>cn)&&(ii=Object.assign(Object.assign({},an),{span:cn}),Pi=Cr!==void 0),[ii,Pi]}function Ee(an,cn){const Cr=[];let ii=[],Pi=cn,Ni=!1;return an.filter(Yi=>Yi).forEach((Yi,ti)=>{const Ts=Yi==null?void 0:Yi.span,Bs=Ts||1;if(ti===an.length-1){const[Ce,Gi]=ve(Yi,Pi,Ts);Ni=Ni||Gi,ii.push(Ce),Cr.push(ii);return}if(Bs{const[Cr,ii]=(0,v.useMemo)(()=>Ee(cn,an),[cn,an]);return Cr},He=an=>{let{children:cn}=an;return cn};function vt(an){return an!=null}var Pe=an=>{const{itemPrefixCls:cn,component:Cr,span:ii,className:Pi,style:Ni,labelStyle:Yi,contentStyle:ti,bordered:Ts,label:Bs,content:Ce,colon:Gi}=an,qi=Cr;return Ts?v.createElement(qi,{className:w()({[`${cn}-item-label`]:vt(Bs),[`${cn}-item-content`]:vt(Ce)},Pi),style:Ni,colSpan:ii},vt(Bs)&&v.createElement("span",{style:Yi},Bs),vt(Ce)&&v.createElement("span",{style:ti},Ce)):v.createElement(qi,{className:w()(`${cn}-item`,Pi),style:Ni,colSpan:ii},v.createElement("div",{className:`${cn}-item-container`},(Bs||Bs===0)&&v.createElement("span",{className:w()(`${cn}-item-label`,{[`${cn}-item-no-colon`]:!Gi}),style:Yi},Bs),(Ce||Ce===0)&&v.createElement("span",{className:w()(`${cn}-item-content`),style:ti},Ce)))};function De(an,cn,Cr){let{colon:ii,prefixCls:Pi,bordered:Ni}=cn,{component:Yi,type:ti,showLabel:Ts,showContent:Bs,labelStyle:Ce,contentStyle:Gi}=Cr;return an.map((qi,co)=>{let{label:fi,children:Ms,prefixCls:In=Pi,className:et,style:Dt,labelStyle:$t,contentStyle:Dn,span:gr=1,key:kn}=qi;return typeof Yi=="string"?v.createElement(Pe,{key:`${ti}-${kn||co}`,className:et,style:Dt,labelStyle:Object.assign(Object.assign({},Ce),$t),contentStyle:Object.assign(Object.assign({},Gi),Dn),span:gr,colon:ii,component:Yi,itemPrefixCls:In,bordered:Ni,label:Ts?fi:null,content:Bs?Ms:null}):[v.createElement(Pe,{key:`label-${kn||co}`,className:et,style:Object.assign(Object.assign(Object.assign({},Ce),Dt),$t),span:1,colon:ii,component:Yi[0],itemPrefixCls:In,bordered:Ni,label:fi}),v.createElement(Pe,{key:`content-${kn||co}`,className:et,style:Object.assign(Object.assign(Object.assign({},Gi),Dt),Dn),span:gr*2-1,component:Yi[1],itemPrefixCls:In,bordered:Ni,content:Ms})]})}var Re=an=>{const cn=v.useContext(A),{prefixCls:Cr,vertical:ii,row:Pi,index:Ni,bordered:Yi}=an;return ii?v.createElement(v.Fragment,null,v.createElement("tr",{key:`label-${Ni}`,className:`${Cr}-row`},De(Pi,an,Object.assign({component:"th",type:"label",showLabel:!0},cn))),v.createElement("tr",{key:`content-${Ni}`,className:`${Cr}-row`},De(Pi,an,Object.assign({component:"td",type:"content",showContent:!0},cn)))):v.createElement("tr",{key:Ni,className:`${Cr}-row`},De(Pi,an,Object.assign({component:Yi?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},cn)))},$e=_(36646),Ie=_(35772),Xe=_(67859),ze=_(80172);const Kt=an=>{const{componentCls:cn,labelBg:Cr}=an;return{[`&${cn}-bordered`]:{[`> ${cn}-view`]:{border:`${(0,$e.bf)(an.lineWidth)} ${an.lineType} ${an.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${cn}-row`]:{borderBottom:`${(0,$e.bf)(an.lineWidth)} ${an.lineType} ${an.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${cn}-item-label, > ${cn}-item-content`]:{padding:`${(0,$e.bf)(an.padding)} ${(0,$e.bf)(an.paddingLG)}`,borderInlineEnd:`${(0,$e.bf)(an.lineWidth)} ${an.lineType} ${an.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${cn}-item-label`]:{color:an.colorTextSecondary,backgroundColor:Cr,"&::after":{display:"none"}}}},[`&${cn}-middle`]:{[`${cn}-row`]:{[`> ${cn}-item-label, > ${cn}-item-content`]:{padding:`${(0,$e.bf)(an.paddingSM)} ${(0,$e.bf)(an.paddingLG)}`}}},[`&${cn}-small`]:{[`${cn}-row`]:{[`> ${cn}-item-label, > ${cn}-item-content`]:{padding:`${(0,$e.bf)(an.paddingXS)} ${(0,$e.bf)(an.padding)}`}}}}}},St=an=>{const{componentCls:cn,extraColor:Cr,itemPaddingBottom:ii,colonMarginRight:Pi,colonMarginLeft:Ni,titleMarginBottom:Yi}=an;return{[cn]:Object.assign(Object.assign(Object.assign({},(0,Ie.Wf)(an)),Kt(an)),{["&-rtl"]:{direction:"rtl"},[`${cn}-header`]:{display:"flex",alignItems:"center",marginBottom:Yi},[`${cn}-title`]:Object.assign(Object.assign({},Ie.vS),{flex:"auto",color:an.titleColor,fontWeight:an.fontWeightStrong,fontSize:an.fontSizeLG,lineHeight:an.lineHeightLG}),[`${cn}-extra`]:{marginInlineStart:"auto",color:Cr,fontSize:an.fontSize},[`${cn}-view`]:{width:"100%",borderRadius:an.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${cn}-row`]:{"> th, > td":{paddingBottom:ii},"&:last-child":{borderBottom:"none"}},[`${cn}-item-label`]:{color:an.colorTextTertiary,fontWeight:"normal",fontSize:an.fontSize,lineHeight:an.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,$e.bf)(Ni)} ${(0,$e.bf)(Pi)}`},[`&${cn}-item-no-colon::after`]:{content:'""'}},[`${cn}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${cn}-item-content`]:{display:"table-cell",flex:1,color:an.contentColor,fontSize:an.fontSize,lineHeight:an.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${cn}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${cn}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${cn}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${cn}-row`]:{"> th, > td":{paddingBottom:an.paddingSM}}},"&-small":{[`${cn}-row`]:{"> th, > td":{paddingBottom:an.paddingXS}}}})}},nt=an=>({labelBg:an.colorFillAlter,titleColor:an.colorText,titleMarginBottom:an.fontSizeSM*an.lineHeightSM,itemPaddingBottom:an.padding,colonMarginRight:an.marginXS,colonMarginLeft:an.marginXXS/2,contentColor:an.colorText,extraColor:an.colorText});var Ct=(0,Xe.I$)("Descriptions",an=>{const cn=(0,ze.TS)(an,{});return St(cn)},nt),lt=function(an,cn){var Cr={};for(var ii in an)Object.prototype.hasOwnProperty.call(an,ii)&&cn.indexOf(ii)<0&&(Cr[ii]=an[ii]);if(an!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pi=0,ii=Object.getOwnPropertySymbols(an);Pi{const{prefixCls:cn,title:Cr,extra:ii,column:Pi,colon:Ni=!0,bordered:Yi,layout:ti,children:Ts,className:Bs,rootClassName:Ce,style:Gi,size:qi,labelStyle:co,contentStyle:fi,items:Ms}=an,In=lt(an,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:et,direction:Dt,descriptions:$t}=v.useContext(B.E_),Dn=et("descriptions",cn),gr=(0,k.Z)(),kn=v.useMemo(()=>{var pn;return typeof Pi=="number"?Pi:(pn=(0,b.m9)(gr,Object.assign(Object.assign({},C),Pi)))!==null&&pn!==void 0?pn:3},[gr,Pi]),bn=de(gr,Ms,Ts),zt=(0,V.Z)(qi),Jt=we(kn,bn),[yn,fr]=Ct(Dn),vr=v.useMemo(()=>({labelStyle:co,contentStyle:fi}),[co,fi]);return yn(v.createElement(A.Provider,{value:vr},v.createElement("div",Object.assign({className:w()(Dn,$t==null?void 0:$t.className,{[`${Dn}-${zt}`]:zt&&zt!=="default",[`${Dn}-bordered`]:!!Yi,[`${Dn}-rtl`]:Dt==="rtl"},Bs,Ce,fr),style:Object.assign(Object.assign({},$t==null?void 0:$t.style),Gi)},In),(Cr||ii)&&v.createElement("div",{className:`${Dn}-header`},Cr&&v.createElement("div",{className:`${Dn}-title`},Cr),ii&&v.createElement("div",{className:`${Dn}-extra`},ii)),v.createElement("div",{className:`${Dn}-view`},v.createElement("table",null,v.createElement("tbody",null,Jt.map((pn,wr)=>v.createElement(Re,{key:wr,index:wr,colon:Ni,prefixCls:Dn,vertical:ti==="vertical",bordered:Yi,row:pn}))))))))};Gt.Item=He;var Rt=Gt},19623:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return ce}});var v=_(77617),R=_(12124),w=_.n(R),b=_(51059),B=_(36646),V=_(35772),k=_(67859),M=_(80172);const C=de=>{const{componentCls:ve,sizePaddingEdgeHorizontal:Ee,colorSplit:_e,lineWidth:we,textPaddingInline:ot,orientationMargin:He,verticalMarginInline:vt}=de;return{[ve]:Object.assign(Object.assign({},(0,V.Wf)(de)),{borderBlockStart:`${(0,B.bf)(we)} solid ${_e}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:vt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,B.bf)(we)} solid ${_e}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,B.bf)(de.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${ve}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,B.bf)(de.dividerHorizontalWithTextGutterMargin)} 0`,color:de.colorTextHeading,fontWeight:500,fontSize:de.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${_e}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,B.bf)(we)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ve}-with-text-left`]:{"&::before":{width:`calc(${He} * 100%)`},"&::after":{width:`calc(100% - ${He} * 100%)`}},[`&-horizontal${ve}-with-text-right`]:{"&::before":{width:`calc(100% - ${He} * 100%)`},"&::after":{width:`calc(${He} * 100%)`}},[`${ve}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:ot},"&-dashed":{background:"none",borderColor:_e,borderStyle:"dashed",borderWidth:`${(0,B.bf)(we)} 0 0`},[`&-horizontal${ve}-with-text${ve}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ve}-dashed`]:{borderInlineStartWidth:we,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ve}-with-text`]:{color:de.colorText,fontWeight:"normal",fontSize:de.fontSize},[`&-horizontal${ve}-with-text-left${ve}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ve}-inner-text`]:{paddingInlineStart:Ee}},[`&-horizontal${ve}-with-text-right${ve}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ve}-inner-text`]:{paddingInlineEnd:Ee}}})}},g=de=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:de.marginXS});var A=(0,k.I$)("Divider",de=>{const ve=(0,M.TS)(de,{dividerHorizontalWithTextGutterMargin:de.margin,dividerHorizontalGutterMargin:de.marginLG,sizePaddingEdgeHorizontal:0});return[C(ve)]},g,{unitless:{orientationMargin:!0}}),O=function(de,ve){var Ee={};for(var _e in de)Object.prototype.hasOwnProperty.call(de,_e)&&ve.indexOf(_e)<0&&(Ee[_e]=de[_e]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,_e=Object.getOwnPropertySymbols(de);we<_e.length;we++)ve.indexOf(_e[we])<0&&Object.prototype.propertyIsEnumerable.call(de,_e[we])&&(Ee[_e[we]]=de[_e[we]]);return Ee},ce=de=>{const{getPrefixCls:ve,direction:Ee,divider:_e}=v.useContext(b.E_),{prefixCls:we,type:ot="horizontal",orientation:He="center",orientationMargin:vt,className:dt,rootClassName:Pe,children:De,dashed:Ae,plain:Re,style:$e}=de,Ie=O(de,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Xe=ve("divider",we),[ze,Kt]=A(Xe),St=He.length>0?`-${He}`:He,nt=!!De,Ct=He==="left"&&vt!=null,lt=He==="right"&&vt!=null,Gt=w()(Xe,_e==null?void 0:_e.className,Kt,`${Xe}-${ot}`,{[`${Xe}-with-text`]:nt,[`${Xe}-with-text${St}`]:nt,[`${Xe}-dashed`]:!!Ae,[`${Xe}-plain`]:!!Re,[`${Xe}-rtl`]:Ee==="rtl",[`${Xe}-no-default-orientation-margin-left`]:Ct,[`${Xe}-no-default-orientation-margin-right`]:lt},dt,Pe),Rt=v.useMemo(()=>typeof vt=="number"?vt:/^\d+$/.test(vt)?Number(vt):vt,[vt]),an=Object.assign(Object.assign({},Ct&&{marginLeft:Rt}),lt&&{marginRight:Rt});return ze(v.createElement("div",Object.assign({className:Gt,style:Object.assign(Object.assign({},_e==null?void 0:_e.style),$e)},Ie,{role:"separator"}),De&&ot!=="vertical"&&v.createElement("span",{className:`${Xe}-inner-text`,style:an},De)))}},4269:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return Bs}});var v=_(77617),R=_(22311),w=_(12124),b=_.n(w),B=_(31561),V=_(33401),k=_(84381),M=_(99468),C=_(3966),g=_(75261),A=_(52910),O=_(29341),K=_(50905),ce=_(91649),de=_(51059),ve=_(80977),Ee=_(26851),_e=_(57947),we=_(35772),ot=_(70163),He=_(83021),vt=_(44566),dt=_(79208),Pe=_(67859),De=_(80172),Re=Ce=>{const{componentCls:Gi,menuCls:qi,colorError:co,colorTextLightSolid:fi}=Ce,Ms=`${qi}-item`;return{[`${Gi}, ${Gi}-menu-submenu`]:{[`${qi} ${Ms}`]:{[`&${Ms}-danger:not(${Ms}-disabled)`]:{color:co,"&:hover":{color:fi,backgroundColor:co}}}}}},$e=_(11882),Ie=_(36646);const Xe=Ce=>{const{componentCls:Gi,menuCls:qi,zIndexPopup:co,dropdownArrowDistance:fi,sizePopupArrow:Ms,antCls:In,iconCls:et,motionDurationMid:Dt,paddingBlock:$t,fontSize:Dn,dropdownEdgeChildPadding:gr,colorTextDisabled:kn,fontSizeIcon:bn,controlPaddingHorizontal:zt,colorBgElevated:Jt}=Ce;return[{[Gi]:Object.assign(Object.assign({},(0,we.Wf)(Ce)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:co,display:"block","&::before":{position:"absolute",insetBlock:Ce.calc(Ms).div(2).sub(fi).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${In}-btn`]:{[`& > ${et}-down, & > ${In}-btn-icon > ${et}-down`]:{fontSize:bn}},[`${Gi}-wrap`]:{position:"relative",[`${In}-btn > ${et}-down`]:{fontSize:bn},[`${et}-down::before`]:{transition:`transform ${Dt}`}},[`${Gi}-wrap-open`]:{[`${et}-down::before`]:{transform:"rotate(180deg)"}},[` + `.trim()}function Ae(Pn,fr){const In=st(Pn,fr);(0,Qe.Z)()&&(0,Ve.hq)(In,`${pt}-dynamic-theme`)}var De=y(98866),Te=y(97647);function Me(){const Pn=(0,v.useContext)(De.Z),fr=(0,v.useContext)(Te.Z);return{componentDisabled:Pn,componentSize:fr}}var Ue=Me,Pe=y(91881);const Xe=Object.assign({},P),{useId:Be}=Xe;var nt=typeof Be=="undefined"?()=>"":Be;function wt(Pn,fr){var In;const mn=(0,k.ln)("ConfigProvider"),Ut=Pn||{},en=Ut.inherit===!1||!fr?ae.u_:fr,Cn=nt();return(0,B.Z)(()=>{var lr,pr;if(!Pn)return fr;const an=Object.assign({},en.components);Object.keys(Pn.components||{}).forEach(Ei=>{an[Ei]=Object.assign(Object.assign({},an[Ei]),Pn.components[Ei])});const wr=`css-var-${Cn.replace(/:/g,"")}`,Cr=((lr=Ut.cssVar)!==null&&lr!==void 0?lr:en.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof en.cssVar=="object"?en.cssVar:{}),typeof Ut.cssVar=="object"?Ut.cssVar:{}),{key:typeof Ut.cssVar=="object"&&((pr=Ut.cssVar)===null||pr===void 0?void 0:pr.key)||wr});return Object.assign(Object.assign(Object.assign({},en),Ut),{token:Object.assign(Object.assign({},en.token),Ut.token),components:an,cssVar:Cr})},[Ut,en],(lr,pr)=>lr.some((an,wr)=>{const Cr=pr[wr];return!(0,Pe.Z)(an,Cr,!0)}))}var lt=y(82225),Kt=y(25976);function Mt(Pn){const{children:fr}=Pn,[,In]=(0,Kt.ZP)(),{motion:mn}=In,Ut=v.useRef(!1);return Ut.current=Ut.current||mn===!1,Ut.current?v.createElement(lt.zt,{motion:mn},fr):fr}const hn=null;var un=()=>null,Sr=y(53269),ii=function(Pn,fr){var In={};for(var mn in Pn)Object.prototype.hasOwnProperty.call(Pn,mn)&&fr.indexOf(mn)<0&&(In[mn]=Pn[mn]);if(Pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,mn=Object.getOwnPropertySymbols(Pn);Utfr.endsWith("Color"))}const Fs=Pn=>{let{prefixCls:fr,iconPrefixCls:In,theme:mn}=Pn;fr!==void 0&&(Ns=fr),In!==void 0&&(Se=In),mn&&(di(mn)?Ae(Yi(),mn):Xi=mn)},Ln=()=>({getPrefixCls:(Pn,fr)=>fr||(Pn?`${Yi()}-${Pn}`:Yi()),getIconPrefixCls:fo,getRootPrefixCls:()=>Ns||Yi(),getTheme:()=>Xi}),it=Pn=>{const{children:fr,csp:In,autoInsertSpaceInButton:mn,alert:Ut,anchor:en,form:Cn,locale:lr,componentSize:pr,direction:an,space:wr,virtual:Cr,dropdownMatchSelectWidth:Ei,popupMatchSelectWidth:vo,popupOverflow:kr,legacyLocale:ro,parentContext:qi,iconPrefixCls:bo,theme:xn,componentDisabled:pn,segmented:Dt,statistic:Zt,spin:vn,calendar:$n,carousel:Ar,cascader:Dr,collapse:dr,typography:Yt,checkbox:wn,descriptions:Qn,divider:Mr,drawer:Wi,skeleton:Dn,steps:Kn,image:nr,layout:qr,list:yi,mentions:Hr,modal:ci,progress:gi,result:mi,slider:Bi,breadcrumb:Nr,menu:Kr,pagination:Qi,input:ns,empty:Ur,badge:gs,radio:Gr,rate:ni,switch:is,transfer:Jr,avatar:bn,message:Or,tag:qo,table:Mo,card:vs,tabs:Na,timeline:ho,timePicker:aa,upload:Ka,notification:Si,tree:Pi,colorPicker:to,datePicker:So,rangePicker:ps,flex:Wn,wave:yo,dropdown:Qo,warning:ss}=Pn,Ko=v.useCallback((rr,zr)=>{const{prefixCls:Fi}=Pn;if(zr)return zr;const xo=Fi||qi.getPrefixCls("");return rr?`${xo}-${rr}`:xo},[qi.getPrefixCls,Pn.prefixCls]),Xn=bo||qi.iconPrefixCls||xe.oR,Rr=In||qi.csp;(0,Sr.Z)(Xn,Rr);const Xr=wt(xn,qi.theme),Ze={csp:Rr,autoInsertSpaceInButton:mn,alert:Ut,anchor:en,locale:lr||ro,direction:an,space:wr,virtual:Cr,popupMatchSelectWidth:vo!=null?vo:Ei,popupOverflow:kr,getPrefixCls:Ko,iconPrefixCls:Xn,theme:Xr,segmented:Dt,statistic:Zt,spin:vn,calendar:$n,carousel:Ar,cascader:Dr,collapse:dr,typography:Yt,checkbox:wn,descriptions:Qn,divider:Mr,drawer:Wi,skeleton:Dn,steps:Kn,image:nr,input:ns,layout:qr,list:yi,mentions:Hr,modal:ci,progress:gi,result:mi,slider:Bi,breadcrumb:Nr,menu:Kr,pagination:Qi,empty:Ur,badge:gs,radio:Gr,rate:ni,switch:is,transfer:Jr,avatar:bn,message:Or,tag:qo,table:Mo,card:vs,tabs:Na,timeline:ho,timePicker:aa,upload:Ka,notification:Si,tree:Pi,colorPicker:to,datePicker:So,rangePicker:ps,flex:Wn,wave:yo,dropdown:Qo,warning:ss},ht=Object.assign({},qi);Object.keys(Ze).forEach(rr=>{Ze[rr]!==void 0&&(ht[rr]=Ze[rr])}),ti.forEach(rr=>{const zr=Pn[rr];zr&&(ht[rr]=zr)});const dt=(0,B.Z)(()=>ht,ht,(rr,zr)=>{const Fi=Object.keys(rr),xo=Object.keys(zr);return Fi.length!==xo.length||Fi.some(Vi=>rr[Vi]!==zr[Vi])}),$e=v.useMemo(()=>({prefixCls:Xn,csp:Rr}),[Xn,Rr]);let ft=v.createElement(v.Fragment,null,v.createElement(un,{dropdownMatchSelectWidth:Ei}),fr);const Lt=v.useMemo(()=>{var rr,zr,Fi,xo;return(0,V.T)(((rr=he.Z.Form)===null||rr===void 0?void 0:rr.defaultValidateMessages)||{},((Fi=(zr=dt.locale)===null||zr===void 0?void 0:zr.Form)===null||Fi===void 0?void 0:Fi.defaultValidateMessages)||{},((xo=dt.form)===null||xo===void 0?void 0:xo.validateMessages)||{},(Cn==null?void 0:Cn.validateMessages)||{})},[dt,Cn==null?void 0:Cn.validateMessages]);Object.keys(Lt).length>0&&(ft=v.createElement(R.Z.Provider,{value:Lt},ft)),lr&&(ft=v.createElement(K,{locale:lr,_ANT_MARK__:A},ft)),(Xn||Rr)&&(ft=v.createElement(b.Z.Provider,{value:$e},ft)),pr&&(ft=v.createElement(Te.q,{size:pr},ft)),ft=v.createElement(Mt,null,ft);const gn=v.useMemo(()=>{const rr=Xr||{},{algorithm:zr,token:Fi,components:xo,cssVar:Vi}=rr,zs=ii(rr,["algorithm","token","components","cssVar"]),Ps=zr&&(!Array.isArray(zr)||zr.length>0)?(0,w.jG)(zr):ae.uH,Ms={};Object.entries(xo||{}).forEach(ko=>{let[As,ia]=ko;const za=Object.assign({},ia);"algorithm"in za&&(za.algorithm===!0?za.theme=Ps:(Array.isArray(za.algorithm)||typeof za.algorithm=="function")&&(za.theme=(0,w.jG)(za.algorithm)),delete za.algorithm),Ms[As]=za});const ks=Object.assign(Object.assign({},fe.Z),Fi);return Object.assign(Object.assign({},zs),{theme:Ps,token:ks,components:Ms,override:Object.assign({override:ks},Ms),cssVar:Vi})},[Xr]);return xn&&(ft=v.createElement(ae.Mj.Provider,{value:gn},ft)),dt.warning&&(ft=v.createElement(k.G8.Provider,{value:dt.warning},ft)),pn!==void 0&&(ft=v.createElement(De.n,{disabled:pn},ft)),v.createElement(xe.E_.Provider,{value:dt},ft)},Ot=Pn=>{const fr=v.useContext(xe.E_),In=v.useContext(g.Z);return v.createElement(it,Object.assign({parentContext:fr,legacyLocale:In},Pn))};Ot.ConfigContext=xe.E_,Ot.SizeContext=Te.Z,Ot.config=Fs,Ot.useConfig=Ue,Object.defineProperty(Ot,"SizeContext",{get:()=>Te.Z});var Ht=Ot},26412:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return Mt}});var v=y(67294),P=y(94184),w=y.n(P),b=y(74443),B=y(53124),V=y(98675),k=y(25378),C={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},A=v.createContext({}),O=y(50344),K=function(hn,un){var Sr={};for(var ii in hn)Object.prototype.hasOwnProperty.call(hn,ii)&&un.indexOf(ii)<0&&(Sr[ii]=hn[ii]);if(hn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ii=0,ii=Object.getOwnPropertySymbols(hn);Ii(0,O.Z)(hn).map(un=>Object.assign(Object.assign({},un==null?void 0:un.props),{key:un.key}));function ae(hn,un,Sr){const ii=v.useMemo(()=>un||he(Sr),[un,Sr]);return v.useMemo(()=>ii.map(Ni=>{var{span:eo}=Ni,ti=K(Ni,["span"]);return Object.assign(Object.assign({},ti),{span:typeof eo=="number"?eo:(0,b.m9)(hn,eo)})}),[ii,hn])}function fe(hn,un,Sr){let ii=hn,Ii=!1;return(Sr===void 0||Sr>un)&&(ii=Object.assign(Object.assign({},hn),{span:un}),Ii=Sr!==void 0),[ii,Ii]}function xe(hn,un){const Sr=[];let ii=[],Ii=un,Ni=!1;return hn.filter(eo=>eo).forEach((eo,ti)=>{const Is=eo==null?void 0:eo.span,Ns=Is||1;if(ti===hn.length-1){const[Se,Xi]=fe(eo,Ii,Is);Ni=Ni||Xi,ii.push(Se),Sr.push(ii);return}if(Ns{const[Sr,ii]=(0,v.useMemo)(()=>xe(un,hn),[un,hn]);return Sr},Ve=hn=>{let{children:un}=hn;return un};function pt(hn){return hn!=null}var Ae=hn=>{const{itemPrefixCls:un,component:Sr,span:ii,className:Ii,style:Ni,labelStyle:eo,contentStyle:ti,bordered:Is,label:Ns,content:Se,colon:Xi}=hn,Yi=Sr;return Is?v.createElement(Yi,{className:w()({[`${un}-item-label`]:pt(Ns),[`${un}-item-content`]:pt(Se)},Ii),style:Ni,colSpan:ii},pt(Ns)&&v.createElement("span",{style:eo},Ns),pt(Se)&&v.createElement("span",{style:ti},Se)):v.createElement(Yi,{className:w()(`${un}-item`,Ii),style:Ni,colSpan:ii},v.createElement("div",{className:`${un}-item-container`},(Ns||Ns===0)&&v.createElement("span",{className:w()(`${un}-item-label`,{[`${un}-item-no-colon`]:!Xi}),style:eo},Ns),(Se||Se===0)&&v.createElement("span",{className:w()(`${un}-item-content`),style:ti},Se)))};function De(hn,un,Sr){let{colon:ii,prefixCls:Ii,bordered:Ni}=un,{component:eo,type:ti,showLabel:Is,showContent:Ns,labelStyle:Se,contentStyle:Xi}=Sr;return hn.map((Yi,fo)=>{let{label:di,children:Fs,prefixCls:Ln=Ii,className:it,style:Ot,labelStyle:Ht,contentStyle:Pn,span:fr=1,key:In}=Yi;return typeof eo=="string"?v.createElement(Ae,{key:`${ti}-${In||fo}`,className:it,style:Ot,labelStyle:Object.assign(Object.assign({},Se),Ht),contentStyle:Object.assign(Object.assign({},Xi),Pn),span:fr,colon:ii,component:eo,itemPrefixCls:Ln,bordered:Ni,label:Is?di:null,content:Ns?Fs:null}):[v.createElement(Ae,{key:`label-${In||fo}`,className:it,style:Object.assign(Object.assign(Object.assign({},Se),Ot),Ht),span:1,colon:ii,component:eo[0],itemPrefixCls:Ln,bordered:Ni,label:di}),v.createElement(Ae,{key:`content-${In||fo}`,className:it,style:Object.assign(Object.assign(Object.assign({},Xi),Ot),Pn),span:fr*2-1,component:eo[1],itemPrefixCls:Ln,bordered:Ni,content:Fs})]})}var Me=hn=>{const un=v.useContext(A),{prefixCls:Sr,vertical:ii,row:Ii,index:Ni,bordered:eo}=hn;return ii?v.createElement(v.Fragment,null,v.createElement("tr",{key:`label-${Ni}`,className:`${Sr}-row`},De(Ii,hn,Object.assign({component:"th",type:"label",showLabel:!0},un))),v.createElement("tr",{key:`content-${Ni}`,className:`${Sr}-row`},De(Ii,hn,Object.assign({component:"td",type:"content",showContent:!0},un)))):v.createElement("tr",{key:Ni,className:`${Sr}-row`},De(Ii,hn,Object.assign({component:eo?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},un)))},Ue=y(43109),Pe=y(14747),Xe=y(91945),Be=y(45503);const Xt=hn=>{const{componentCls:un,labelBg:Sr}=hn;return{[`&${un}-bordered`]:{[`> ${un}-view`]:{border:`${(0,Ue.bf)(hn.lineWidth)} ${hn.lineType} ${hn.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${un}-row`]:{borderBottom:`${(0,Ue.bf)(hn.lineWidth)} ${hn.lineType} ${hn.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${un}-item-label, > ${un}-item-content`]:{padding:`${(0,Ue.bf)(hn.padding)} ${(0,Ue.bf)(hn.paddingLG)}`,borderInlineEnd:`${(0,Ue.bf)(hn.lineWidth)} ${hn.lineType} ${hn.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${un}-item-label`]:{color:hn.colorTextSecondary,backgroundColor:Sr,"&::after":{display:"none"}}}},[`&${un}-middle`]:{[`${un}-row`]:{[`> ${un}-item-label, > ${un}-item-content`]:{padding:`${(0,Ue.bf)(hn.paddingSM)} ${(0,Ue.bf)(hn.paddingLG)}`}}},[`&${un}-small`]:{[`${un}-row`]:{[`> ${un}-item-label, > ${un}-item-content`]:{padding:`${(0,Ue.bf)(hn.paddingXS)} ${(0,Ue.bf)(hn.padding)}`}}}}}},St=hn=>{const{componentCls:un,extraColor:Sr,itemPaddingBottom:ii,colonMarginRight:Ii,colonMarginLeft:Ni,titleMarginBottom:eo}=hn;return{[un]:Object.assign(Object.assign(Object.assign({},(0,Pe.Wf)(hn)),Xt(hn)),{["&-rtl"]:{direction:"rtl"},[`${un}-header`]:{display:"flex",alignItems:"center",marginBottom:eo},[`${un}-title`]:Object.assign(Object.assign({},Pe.vS),{flex:"auto",color:hn.titleColor,fontWeight:hn.fontWeightStrong,fontSize:hn.fontSizeLG,lineHeight:hn.lineHeightLG}),[`${un}-extra`]:{marginInlineStart:"auto",color:Sr,fontSize:hn.fontSize},[`${un}-view`]:{width:"100%",borderRadius:hn.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${un}-row`]:{"> th, > td":{paddingBottom:ii},"&:last-child":{borderBottom:"none"}},[`${un}-item-label`]:{color:hn.colorTextTertiary,fontWeight:"normal",fontSize:hn.fontSize,lineHeight:hn.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,Ue.bf)(Ni)} ${(0,Ue.bf)(Ii)}`},[`&${un}-item-no-colon::after`]:{content:'""'}},[`${un}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${un}-item-content`]:{display:"table-cell",flex:1,color:hn.contentColor,fontSize:hn.fontSize,lineHeight:hn.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${un}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${un}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${un}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${un}-row`]:{"> th, > td":{paddingBottom:hn.paddingSM}}},"&-small":{[`${un}-row`]:{"> th, > td":{paddingBottom:hn.paddingXS}}}})}},nt=hn=>({labelBg:hn.colorFillAlter,titleColor:hn.colorText,titleMarginBottom:hn.fontSizeSM*hn.lineHeightSM,itemPaddingBottom:hn.padding,colonMarginRight:hn.marginXS,colonMarginLeft:hn.marginXXS/2,contentColor:hn.colorText,extraColor:hn.colorText});var wt=(0,Xe.I$)("Descriptions",hn=>{const un=(0,Be.TS)(hn,{});return St(un)},nt),lt=function(hn,un){var Sr={};for(var ii in hn)Object.prototype.hasOwnProperty.call(hn,ii)&&un.indexOf(ii)<0&&(Sr[ii]=hn[ii]);if(hn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ii=0,ii=Object.getOwnPropertySymbols(hn);Ii{const{prefixCls:un,title:Sr,extra:ii,column:Ii,colon:Ni=!0,bordered:eo,layout:ti,children:Is,className:Ns,rootClassName:Se,style:Xi,size:Yi,labelStyle:fo,contentStyle:di,items:Fs}=hn,Ln=lt(hn,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:it,direction:Ot,descriptions:Ht}=v.useContext(B.E_),Pn=it("descriptions",un),fr=(0,k.Z)(),In=v.useMemo(()=>{var an;return typeof Ii=="number"?Ii:(an=(0,b.m9)(fr,Object.assign(Object.assign({},C),Ii)))!==null&&an!==void 0?an:3},[fr,Ii]),mn=ae(fr,Fs,Is),Ut=(0,V.Z)(Yi),en=be(In,mn),[Cn,lr]=wt(Pn),pr=v.useMemo(()=>({labelStyle:fo,contentStyle:di}),[fo,di]);return Cn(v.createElement(A.Provider,{value:pr},v.createElement("div",Object.assign({className:w()(Pn,Ht==null?void 0:Ht.className,{[`${Pn}-${Ut}`]:Ut&&Ut!=="default",[`${Pn}-bordered`]:!!eo,[`${Pn}-rtl`]:Ot==="rtl"},Ns,Se,lr),style:Object.assign(Object.assign({},Ht==null?void 0:Ht.style),Xi)},Ln),(Sr||ii)&&v.createElement("div",{className:`${Pn}-header`},Sr&&v.createElement("div",{className:`${Pn}-title`},Sr),ii&&v.createElement("div",{className:`${Pn}-extra`},ii)),v.createElement("div",{className:`${Pn}-view`},v.createElement("table",null,v.createElement("tbody",null,en.map((an,wr)=>v.createElement(Me,{key:wr,index:wr,colon:Ni,prefixCls:Pn,vertical:ti==="vertical",bordered:eo,row:an}))))))))};Kt.Item=Ve;var Mt=Kt},96074:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return he}});var v=y(67294),P=y(94184),w=y.n(P),b=y(53124),B=y(43109),V=y(14747),k=y(91945),R=y(45503);const C=ae=>{const{componentCls:fe,sizePaddingEdgeHorizontal:xe,colorSplit:ye,lineWidth:be,textPaddingInline:Qe,orientationMargin:Ve,verticalMarginInline:pt}=ae;return{[fe]:Object.assign(Object.assign({},(0,V.Wf)(ae)),{borderBlockStart:`${(0,B.bf)(be)} solid ${ye}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:pt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,B.bf)(be)} solid ${ye}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,B.bf)(ae.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${fe}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,B.bf)(ae.dividerHorizontalWithTextGutterMargin)} 0`,color:ae.colorTextHeading,fontWeight:500,fontSize:ae.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${ye}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,B.bf)(be)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${fe}-with-text-left`]:{"&::before":{width:`calc(${Ve} * 100%)`},"&::after":{width:`calc(100% - ${Ve} * 100%)`}},[`&-horizontal${fe}-with-text-right`]:{"&::before":{width:`calc(100% - ${Ve} * 100%)`},"&::after":{width:`calc(${Ve} * 100%)`}},[`${fe}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Qe},"&-dashed":{background:"none",borderColor:ye,borderStyle:"dashed",borderWidth:`${(0,B.bf)(be)} 0 0`},[`&-horizontal${fe}-with-text${fe}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${fe}-dashed`]:{borderInlineStartWidth:be,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${fe}-with-text`]:{color:ae.colorText,fontWeight:"normal",fontSize:ae.fontSize},[`&-horizontal${fe}-with-text-left${fe}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${fe}-inner-text`]:{paddingInlineStart:xe}},[`&-horizontal${fe}-with-text-right${fe}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${fe}-inner-text`]:{paddingInlineEnd:xe}}})}},g=ae=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:ae.marginXS});var A=(0,k.I$)("Divider",ae=>{const fe=(0,R.TS)(ae,{dividerHorizontalWithTextGutterMargin:ae.margin,dividerHorizontalGutterMargin:ae.marginLG,sizePaddingEdgeHorizontal:0});return[C(fe)]},g,{unitless:{orientationMargin:!0}}),O=function(ae,fe){var xe={};for(var ye in ae)Object.prototype.hasOwnProperty.call(ae,ye)&&fe.indexOf(ye)<0&&(xe[ye]=ae[ye]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,ye=Object.getOwnPropertySymbols(ae);be{const{getPrefixCls:fe,direction:xe,divider:ye}=v.useContext(b.E_),{prefixCls:be,type:Qe="horizontal",orientation:Ve="center",orientationMargin:pt,className:st,rootClassName:Ae,children:De,dashed:Te,plain:Me,style:Ue}=ae,Pe=O(ae,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Xe=fe("divider",be),[Be,Xt]=A(Xe),St=Ve.length>0?`-${Ve}`:Ve,nt=!!De,wt=Ve==="left"&&pt!=null,lt=Ve==="right"&&pt!=null,Kt=w()(Xe,ye==null?void 0:ye.className,Xt,`${Xe}-${Qe}`,{[`${Xe}-with-text`]:nt,[`${Xe}-with-text${St}`]:nt,[`${Xe}-dashed`]:!!Te,[`${Xe}-plain`]:!!Me,[`${Xe}-rtl`]:xe==="rtl",[`${Xe}-no-default-orientation-margin-left`]:wt,[`${Xe}-no-default-orientation-margin-right`]:lt},st,Ae),Mt=v.useMemo(()=>typeof pt=="number"?pt:/^\d+$/.test(pt)?Number(pt):pt,[pt]),hn=Object.assign(Object.assign({},wt&&{marginLeft:Mt}),lt&&{marginRight:Mt});return Be(v.createElement("div",Object.assign({className:Kt,style:Object.assign(Object.assign({},ye==null?void 0:ye.style),Ue)},Pe,{role:"separator"}),De&&Qe!=="vertical"&&v.createElement("span",{className:`${Xe}-inner-text`,style:hn},De)))}},83159:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return Ns}});var v=y(67294),P=y(68843),w=y(94184),b=y.n(w),B=y(29171),V=y(56790),k=y(21770),R=y(98423),C=y(87263),g=y(80636),A=y(8745),O=y(96159),K=y(27288),he=y(43945),ae=y(53124),fe=y(82610),xe=y(76529),ye=y(25976),be=y(14747),Qe=y(48611),Ve=y(33297),pt=y(50438),st=y(97414),Ae=y(91945),De=y(45503),Me=Se=>{const{componentCls:Xi,menuCls:Yi,colorError:fo,colorTextLightSolid:di}=Se,Fs=`${Yi}-item`;return{[`${Xi}, ${Xi}-menu-submenu`]:{[`${Yi} ${Fs}`]:{[`&${Fs}-danger:not(${Fs}-disabled)`]:{color:fo,"&:hover":{color:di,backgroundColor:fo}}}}}},Ue=y(79511),Pe=y(43109);const Xe=Se=>{const{componentCls:Xi,menuCls:Yi,zIndexPopup:fo,dropdownArrowDistance:di,sizePopupArrow:Fs,antCls:Ln,iconCls:it,motionDurationMid:Ot,paddingBlock:Ht,fontSize:Pn,dropdownEdgeChildPadding:fr,colorTextDisabled:In,fontSizeIcon:mn,controlPaddingHorizontal:Ut,colorBgElevated:en}=Se;return[{[Xi]:Object.assign(Object.assign({},(0,be.Wf)(Se)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:fo,display:"block","&::before":{position:"absolute",insetBlock:Se.calc(Fs).div(2).sub(di).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Ln}-btn`]:{[`& > ${it}-down, & > ${Ln}-btn-icon > ${it}-down`]:{fontSize:mn}},[`${Xi}-wrap`]:{position:"relative",[`${Ln}-btn > ${it}-down`]:{fontSize:mn},[`${it}-down::before`]:{transition:`transform ${Ot}`}},[`${Xi}-wrap-open`]:{[`${it}-down::before`]:{transform:"rotate(180deg)"}},[` &-hidden, &-menu-hidden, &-menu-submenu-hidden - `]:{display:"none"},[`&${In}-slide-down-enter${In}-slide-down-enter-active${Gi}-placement-bottomLeft, - &${In}-slide-down-appear${In}-slide-down-appear-active${Gi}-placement-bottomLeft, - &${In}-slide-down-enter${In}-slide-down-enter-active${Gi}-placement-bottom, - &${In}-slide-down-appear${In}-slide-down-appear-active${Gi}-placement-bottom, - &${In}-slide-down-enter${In}-slide-down-enter-active${Gi}-placement-bottomRight, - &${In}-slide-down-appear${In}-slide-down-appear-active${Gi}-placement-bottomRight`]:{animationName:ot.fJ},[`&${In}-slide-up-enter${In}-slide-up-enter-active${Gi}-placement-topLeft, - &${In}-slide-up-appear${In}-slide-up-appear-active${Gi}-placement-topLeft, - &${In}-slide-up-enter${In}-slide-up-enter-active${Gi}-placement-top, - &${In}-slide-up-appear${In}-slide-up-appear-active${Gi}-placement-top, - &${In}-slide-up-enter${In}-slide-up-enter-active${Gi}-placement-topRight, - &${In}-slide-up-appear${In}-slide-up-appear-active${Gi}-placement-topRight`]:{animationName:ot.Qt},[`&${In}-slide-down-leave${In}-slide-down-leave-active${Gi}-placement-bottomLeft, - &${In}-slide-down-leave${In}-slide-down-leave-active${Gi}-placement-bottom, - &${In}-slide-down-leave${In}-slide-down-leave-active${Gi}-placement-bottomRight`]:{animationName:ot.Uw},[`&${In}-slide-up-leave${In}-slide-up-leave-active${Gi}-placement-topLeft, - &${In}-slide-up-leave${In}-slide-up-leave-active${Gi}-placement-top, - &${In}-slide-up-leave${In}-slide-up-leave-active${Gi}-placement-topRight`]:{animationName:ot.ly}})},(0,dt.ZP)(Ce,Jt,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Gi} ${qi}`]:{position:"relative",margin:0},[`${qi}-submenu-popup`]:{position:"absolute",zIndex:co,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Gi}, ${Gi}-menu-submenu`]:{[qi]:Object.assign(Object.assign({padding:gr,listStyleType:"none",backgroundColor:Jt,backgroundClip:"padding-box",borderRadius:Ce.borderRadiusLG,outline:"none",boxShadow:Ce.boxShadowSecondary},(0,we.Qy)(Ce)),{[`${qi}-item-group-title`]:{padding:`${(0,Ie.bf)($t)} ${(0,Ie.bf)(zt)}`,color:Ce.colorTextDescription,transition:`all ${Dt}`},[`${qi}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${qi}-item-icon`]:{minWidth:Dn,marginInlineEnd:Ce.marginXS,fontSize:Ce.fontSizeSM},[`${qi}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${Dt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${qi}-item, ${qi}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${(0,Ie.bf)($t)} ${(0,Ie.bf)(zt)}`,color:Ce.colorText,fontWeight:"normal",fontSize:Dn,lineHeight:Ce.lineHeight,cursor:"pointer",transition:`all ${Dt}`,borderRadius:Ce.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:Ce.controlItemBgHover}},(0,we.Qy)(Ce)),{"&-selected":{color:Ce.colorPrimary,backgroundColor:Ce.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ce.controlItemBgActiveHover}},"&-disabled":{color:kn,cursor:"not-allowed","&:hover":{color:kn,backgroundColor:Jt,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Ie.bf)(Ce.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ce.colorSplit},[`${Gi}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ce.paddingXS,[`${Gi}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ce.colorTextDescription,fontSize:bn,fontStyle:"normal"}}}),[`${qi}-item-group-list`]:{margin:`0 ${(0,Ie.bf)(Ce.marginXS)}`,padding:0,listStyle:"none"},[`${qi}-submenu-title`]:{paddingInlineEnd:Ce.calc(zt).add(Ce.fontSizeSM).equal()},[`${qi}-submenu-vertical`]:{position:"relative"},[`${qi}-submenu${qi}-submenu-disabled ${Gi}-menu-submenu-title`]:{[`&, ${Gi}-menu-submenu-arrow-icon`]:{color:kn,backgroundColor:Jt,cursor:"not-allowed"}},[`${qi}-submenu-selected ${Gi}-menu-submenu-title`]:{color:Ce.colorPrimary}})}},[(0,ot.oN)(Ce,"slide-up"),(0,ot.oN)(Ce,"slide-down"),(0,He.Fm)(Ce,"move-up"),(0,He.Fm)(Ce,"move-down"),(0,vt._y)(Ce,"zoom-big")]]},ze=Ce=>Object.assign(Object.assign({zIndexPopup:Ce.zIndexPopupBase+50,paddingBlock:(Ce.controlHeight-Ce.fontSize*Ce.lineHeight)/2},(0,dt.wZ)({contentRadius:Ce.borderRadiusLG,limitVerticalRadius:!0})),(0,$e.w)(Ce));var Kt=(0,Pe.I$)("Dropdown",Ce=>{const{marginXXS:Gi,sizePopupArrow:qi,paddingXXS:co,componentCls:fi}=Ce,Ms=(0,De.TS)(Ce,{menuCls:`${fi}-menu`,dropdownArrowDistance:Ce.calc(qi).div(2).add(Gi).equal(),dropdownEdgeChildPadding:co});return[Xe(Ms),Re(Ms)]},ze),St=_(20170);const nt=null,Ct=Ce=>{const{menu:Gi,arrow:qi,prefixCls:co,children:fi,trigger:Ms,disabled:In,dropdownRender:et,getPopupContainer:Dt,overlayClassName:$t,rootClassName:Dn,overlayStyle:gr,open:kn,onOpenChange:bn,visible:zt,onVisibleChange:Jt,mouseEnterDelay:yn=.15,mouseLeaveDelay:fr=.1,autoAdjustOverflow:vr=!0,placement:pn="",overlay:wr,transitionName:Sr}=Ce,{getPopupContainer:Ai,getPrefixCls:mo,direction:Fr,dropdown:to}=v.useContext(de.E_),Ji=(0,K.ln)("Dropdown"),bo=v.useMemo(()=>{const di=mo();return Sr!==void 0?Sr:pn.includes("top")?`${di}-slide-down`:`${di}-slide-up`},[mo,pn,Sr]),xn=v.useMemo(()=>pn?pn.includes("Center")?pn.slice(0,pn.indexOf("Center")):pn:Fr==="rtl"?"bottomRight":"bottomLeft",[pn,Fr]),fn=mo("dropdown",co),It=(0,St.Z)(fn),[Zt,gn]=Kt(fn,It),[,$n]=(0,_e.ZP)(),Ar=v.Children.only(fi),Dr=(0,O.Tm)(Ar,{className:b()(`${fn}-trigger`,{[`${fn}-rtl`]:Fr==="rtl"},Ar.props.className),disabled:In}),dr=In?[]:Ms;let Xt;dr&&dr.includes("contextMenu")&&(Xt=!0);const[Cn,er]=(0,k.Z)(!1,{value:kn!=null?kn:zt}),Mr=(0,V.zX)(di=>{bn==null||bn(di,{source:"trigger"}),Jt==null||Jt(di),er(di)}),ji=b()($t,Dn,gn,It,to==null?void 0:to.className,{[`${fn}-rtl`]:Fr==="rtl"}),An=(0,g.Z)({arrowPointAtCenter:typeof qi=="object"&&qi.pointAtCenter,autoAdjustOverflow:vr,offset:$n.marginXXS,arrowWidth:qi?$n.sizePopupArrow:0,borderRadius:$n.borderRadius}),Xn=v.useCallback(()=>{Gi!=null&&Gi.selectable&&(Gi!=null&&Gi.multiple)||(bn==null||bn(!1,{source:"menu"}),er(!1))},[Gi==null?void 0:Gi.selectable,Gi==null?void 0:Gi.multiple]),nr=()=>{let di;return Gi!=null&&Gi.items?di=v.createElement(ve.Z,Object.assign({},Gi)):typeof wr=="function"?di=wr():di=wr,et&&(di=et(di)),di=v.Children.only(typeof di=="string"?v.createElement("span",null,di):di),v.createElement(Ee.J,{prefixCls:`${fn}-menu`,rootClassName:It,expandIcon:v.createElement("span",{className:`${fn}-menu-submenu-arrow`},v.createElement(R.Z,{className:`${fn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Xn,validator:gi=>{let{mode:mi}=gi}},di)},[qr,vi]=(0,C.Cn)("Dropdown",gr==null?void 0:gr.zIndex);let Hr=v.createElement(B.Z,Object.assign({alignPoint:Xt},(0,M.Z)(Ce,["rootClassName"]),{mouseEnterDelay:yn,mouseLeaveDelay:fr,visible:Cn,builtinPlacements:An,arrow:!!qi,overlayClassName:ji,prefixCls:fn,getPopupContainer:Dt||Ai,transitionName:bo,trigger:dr,overlay:nr,placement:xn,onVisibleChange:Mr,overlayStyle:Object.assign(Object.assign(Object.assign({},to==null?void 0:to.style),gr),{zIndex:qr})}),Dr);return qr&&(Hr=v.createElement(ce.Z.Provider,{value:vi},Hr)),Zt(Hr)};function lt(Ce){return Object.assign(Object.assign({},Ce),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Gt=(0,A.Z)(Ct,"dropdown",Ce=>Ce,lt),Rt=Ce=>v.createElement(Gt,Object.assign({},Ce),v.createElement("span",null));Ct._InternalPanelDoNotUseOrYouWillBeFired=Rt;var an=Ct,cn=_(93319),Cr=_(9949),ii=_(67134),Pi=_(60161),Ni=function(Ce,Gi){var qi={};for(var co in Ce)Object.prototype.hasOwnProperty.call(Ce,co)&&Gi.indexOf(co)<0&&(qi[co]=Ce[co]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fi=0,co=Object.getOwnPropertySymbols(Ce);fi{const{getPopupContainer:Gi,getPrefixCls:qi,direction:co}=v.useContext(de.E_),{prefixCls:fi,type:Ms="default",danger:In,disabled:et,loading:Dt,onClick:$t,htmlType:Dn,children:gr,className:kn,menu:bn,arrow:zt,autoFocus:Jt,overlay:yn,trigger:fr,align:vr,open:pn,onOpenChange:wr,placement:Sr,getPopupContainer:Ai,href:mo,icon:Fr=v.createElement(cn.Z,null),title:to,buttonsRender:Ji=nr=>nr,mouseEnterDelay:bo,mouseLeaveDelay:xn,overlayClassName:fn,overlayStyle:It,destroyPopupOnHide:Zt,dropdownRender:gn}=Ce,$n=Ni(Ce,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Ar=qi("dropdown",fi),Dr=`${Ar}-button`,dr={menu:bn,arrow:zt,autoFocus:Jt,align:vr,disabled:et,trigger:et?[]:fr,onOpenChange:wr,getPopupContainer:Ai||Gi,mouseEnterDelay:bo,mouseLeaveDelay:xn,overlayClassName:fn,overlayStyle:It,destroyPopupOnHide:Zt,dropdownRender:gn},{compactSize:Xt,compactItemClassnames:Cn}=(0,Pi.ri)(Ar,co),er=b()(Dr,Cn,kn);"overlay"in Ce&&(dr.overlay=yn),"open"in Ce&&(dr.open=pn),"placement"in Ce?dr.placement=Sr:dr.placement=co==="rtl"?"bottomLeft":"bottomRight";const Mr=v.createElement(Cr.ZP,{type:Ms,danger:In,disabled:et,loading:Dt,onClick:$t,htmlType:Dn,href:mo,title:to},gr),ji=v.createElement(Cr.ZP,{type:Ms,danger:In,icon:Fr}),[An,Xn]=Ji([Mr,ji]);return v.createElement(ii.Z.Compact,Object.assign({className:er,size:Xt,block:!0},$n),An,v.createElement(an,Object.assign({},dr),Xn))};Yi.__ANT_BUTTON=!0;var ti=Yi;const Ts=an;Ts.Button=ti;var Bs=Ts},12798:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return ot}});var v=_(12124),R=_.n(v),w=_(77617),b=_(51059),B=_(66951),V=_(64993),k=_(57947),C=()=>{const[,He]=(0,k.ZP)(),dt=new V.C(He.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return w.createElement("svg",{style:dt,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},w.createElement("g",{fill:"none",fillRule:"evenodd"},w.createElement("g",{transform:"translate(24 31.67)"},w.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),w.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),w.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),w.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),w.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),w.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),w.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},w.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),w.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},A=()=>{const[,He]=(0,k.ZP)(),{colorFill:vt,colorFillTertiary:dt,colorFillQuaternary:Pe,colorBgContainer:De}=He,{borderColor:Ae,shadowColor:Re,contentColor:$e}=(0,w.useMemo)(()=>({borderColor:new V.C(vt).onBackground(De).toHexShortString(),shadowColor:new V.C(dt).onBackground(De).toHexShortString(),contentColor:new V.C(Pe).onBackground(De).toHexShortString()}),[vt,dt,Pe,De]);return w.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},w.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},w.createElement("ellipse",{fill:Re,cx:"32",cy:"33",rx:"32",ry:"7"}),w.createElement("g",{fillRule:"nonzero",stroke:Ae},w.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),w.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:$e}))))},O=_(67859),K=_(80172);const ce=He=>{const{componentCls:vt,margin:dt,marginXS:Pe,marginXL:De,fontSize:Ae,lineHeight:Re}=He;return{[vt]:{marginInline:Pe,fontSize:Ae,lineHeight:Re,textAlign:"center",[`${vt}-image`]:{height:He.emptyImgHeight,marginBottom:Pe,opacity:He.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${vt}-description`]:{color:He.colorText},[`${vt}-footer`]:{marginTop:dt},"&-normal":{marginBlock:De,color:He.colorTextDisabled,[`${vt}-description`]:{color:He.colorTextDisabled},[`${vt}-image`]:{height:He.emptyImgHeightMD}},"&-small":{marginBlock:Pe,color:He.colorTextDisabled,[`${vt}-image`]:{height:He.emptyImgHeightSM}}}}};var de=(0,O.I$)("Empty",He=>{const{componentCls:vt,controlHeightLG:dt,calc:Pe}=He,De=(0,K.TS)(He,{emptyImgCls:`${vt}-img`,emptyImgHeight:Pe(dt).mul(2.5).equal(),emptyImgHeightMD:dt,emptyImgHeightSM:Pe(dt).mul(.875).equal()});return[ce(De)]}),ve=function(He,vt){var dt={};for(var Pe in He)Object.prototype.hasOwnProperty.call(He,Pe)&&vt.indexOf(Pe)<0&&(dt[Pe]=He[Pe]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Pe=Object.getOwnPropertySymbols(He);De{var{className:vt,rootClassName:dt,prefixCls:Pe,image:De=Ee,description:Ae,children:Re,imageStyle:$e,style:Ie}=He,Xe=ve(He,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:ze,direction:Kt,empty:St}=w.useContext(b.E_),nt=ze("empty",Pe),[Ct,lt]=de(nt),[Gt]=(0,B.Z)("Empty"),Rt=typeof Ae!="undefined"?Ae:Gt==null?void 0:Gt.description,an=typeof Rt=="string"?Rt:"empty";let cn=null;return typeof De=="string"?cn=w.createElement("img",{alt:an,src:De}):cn=De,Ct(w.createElement("div",Object.assign({className:R()(lt,nt,St==null?void 0:St.className,{[`${nt}-normal`]:De===_e,[`${nt}-rtl`]:Kt==="rtl"},vt,dt),style:Object.assign(Object.assign({},St==null?void 0:St.style),Ie)},Xe),w.createElement("div",{className:`${nt}-image`,style:$e},cn),Rt&&w.createElement("div",{className:`${nt}-description`},Rt),Re&&w.createElement("div",{className:`${nt}-footer`},Re)))};we.PRESENTED_IMAGE_DEFAULT=Ee,we.PRESENTED_IMAGE_SIMPLE=_e;var ot=we},34735:function(_t,Y,_){"use strict";_.d(Y,{RV:function(){return V},Rk:function(){return k},Ux:function(){return C},aM:function(){return M},q3:function(){return b},qI:function(){return B}});var v=_(77617),R=_(41091),w=_(99468);const b=v.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),B=v.createContext(null),V=g=>{const A=(0,w.Z)(g,["prefixCls"]);return v.createElement(R.RV,Object.assign({},A))},k=v.createContext({prefixCls:""}),M=v.createContext({}),C=g=>{let{children:A,status:O,override:K}=g;const ce=(0,v.useContext)(M),de=(0,v.useMemo)(()=>{const ve=Object.assign({},ce);return K&&delete ve.isFormItemInput,O&&(delete ve.status,delete ve.hasFeedback,delete ve.feedbackIcon),ve},[O,K,ce]);return v.createElement(M.Provider,{value:de},A)}},51472:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return Gr}});var v=_(40877),R=_(12124),w=_.n(R),b=_(44516),B=_(77617),V=_(82395),k=_(34735);function M(je){const[ut,ht]=B.useState(je);return B.useEffect(()=>{const Ue=setTimeout(()=>{ht(je)},je.length?0:10);return()=>{clearTimeout(Ue)}},[je]),ut}var C=_(36646),g=_(35772),A=_(44566),O=_(10554),K=_(80172),ce=_(67859),ve=je=>{const{componentCls:ut}=je,ht=`${ut}-show-help`,Ue=`${ut}-show-help-item`;return{[ht]:{transition:`opacity ${je.motionDurationSlow} ${je.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ue]:{overflow:"hidden",transition:`height ${je.motionDurationSlow} ${je.motionEaseInOut}, - opacity ${je.motionDurationSlow} ${je.motionEaseInOut}, - transform ${je.motionDurationSlow} ${je.motionEaseInOut} !important`,[`&${Ue}-appear, &${Ue}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${Ue}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Ee=je=>({legend:{display:"block",width:"100%",marginBottom:je.marginLG,padding:0,color:je.colorTextDescription,fontSize:je.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,C.bf)(je.lineWidth)} ${je.lineType} ${je.colorBorder}`},label:{fontSize:je.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},[`input[type='file']:focus, + `]:{display:"none"},[`&${Ln}-slide-down-enter${Ln}-slide-down-enter-active${Xi}-placement-bottomLeft, + &${Ln}-slide-down-appear${Ln}-slide-down-appear-active${Xi}-placement-bottomLeft, + &${Ln}-slide-down-enter${Ln}-slide-down-enter-active${Xi}-placement-bottom, + &${Ln}-slide-down-appear${Ln}-slide-down-appear-active${Xi}-placement-bottom, + &${Ln}-slide-down-enter${Ln}-slide-down-enter-active${Xi}-placement-bottomRight, + &${Ln}-slide-down-appear${Ln}-slide-down-appear-active${Xi}-placement-bottomRight`]:{animationName:Qe.fJ},[`&${Ln}-slide-up-enter${Ln}-slide-up-enter-active${Xi}-placement-topLeft, + &${Ln}-slide-up-appear${Ln}-slide-up-appear-active${Xi}-placement-topLeft, + &${Ln}-slide-up-enter${Ln}-slide-up-enter-active${Xi}-placement-top, + &${Ln}-slide-up-appear${Ln}-slide-up-appear-active${Xi}-placement-top, + &${Ln}-slide-up-enter${Ln}-slide-up-enter-active${Xi}-placement-topRight, + &${Ln}-slide-up-appear${Ln}-slide-up-appear-active${Xi}-placement-topRight`]:{animationName:Qe.Qt},[`&${Ln}-slide-down-leave${Ln}-slide-down-leave-active${Xi}-placement-bottomLeft, + &${Ln}-slide-down-leave${Ln}-slide-down-leave-active${Xi}-placement-bottom, + &${Ln}-slide-down-leave${Ln}-slide-down-leave-active${Xi}-placement-bottomRight`]:{animationName:Qe.Uw},[`&${Ln}-slide-up-leave${Ln}-slide-up-leave-active${Xi}-placement-topLeft, + &${Ln}-slide-up-leave${Ln}-slide-up-leave-active${Xi}-placement-top, + &${Ln}-slide-up-leave${Ln}-slide-up-leave-active${Xi}-placement-topRight`]:{animationName:Qe.ly}})},(0,st.ZP)(Se,en,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Xi} ${Yi}`]:{position:"relative",margin:0},[`${Yi}-submenu-popup`]:{position:"absolute",zIndex:fo,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Xi}, ${Xi}-menu-submenu`]:{[Yi]:Object.assign(Object.assign({padding:fr,listStyleType:"none",backgroundColor:en,backgroundClip:"padding-box",borderRadius:Se.borderRadiusLG,outline:"none",boxShadow:Se.boxShadowSecondary},(0,be.Qy)(Se)),{[`${Yi}-item-group-title`]:{padding:`${(0,Pe.bf)(Ht)} ${(0,Pe.bf)(Ut)}`,color:Se.colorTextDescription,transition:`all ${Ot}`},[`${Yi}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Yi}-item-icon`]:{minWidth:Pn,marginInlineEnd:Se.marginXS,fontSize:Se.fontSizeSM},[`${Yi}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${Ot}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Yi}-item, ${Yi}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${(0,Pe.bf)(Ht)} ${(0,Pe.bf)(Ut)}`,color:Se.colorText,fontWeight:"normal",fontSize:Pn,lineHeight:Se.lineHeight,cursor:"pointer",transition:`all ${Ot}`,borderRadius:Se.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:Se.controlItemBgHover}},(0,be.Qy)(Se)),{"&-selected":{color:Se.colorPrimary,backgroundColor:Se.controlItemBgActive,"&:hover, &-active":{backgroundColor:Se.controlItemBgActiveHover}},"&-disabled":{color:In,cursor:"not-allowed","&:hover":{color:In,backgroundColor:en,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Pe.bf)(Se.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Se.colorSplit},[`${Xi}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Se.paddingXS,[`${Xi}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Se.colorTextDescription,fontSize:mn,fontStyle:"normal"}}}),[`${Yi}-item-group-list`]:{margin:`0 ${(0,Pe.bf)(Se.marginXS)}`,padding:0,listStyle:"none"},[`${Yi}-submenu-title`]:{paddingInlineEnd:Se.calc(Ut).add(Se.fontSizeSM).equal()},[`${Yi}-submenu-vertical`]:{position:"relative"},[`${Yi}-submenu${Yi}-submenu-disabled ${Xi}-menu-submenu-title`]:{[`&, ${Xi}-menu-submenu-arrow-icon`]:{color:In,backgroundColor:en,cursor:"not-allowed"}},[`${Yi}-submenu-selected ${Xi}-menu-submenu-title`]:{color:Se.colorPrimary}})}},[(0,Qe.oN)(Se,"slide-up"),(0,Qe.oN)(Se,"slide-down"),(0,Ve.Fm)(Se,"move-up"),(0,Ve.Fm)(Se,"move-down"),(0,pt._y)(Se,"zoom-big")]]},Be=Se=>Object.assign(Object.assign({zIndexPopup:Se.zIndexPopupBase+50,paddingBlock:(Se.controlHeight-Se.fontSize*Se.lineHeight)/2},(0,st.wZ)({contentRadius:Se.borderRadiusLG,limitVerticalRadius:!0})),(0,Ue.w)(Se));var Xt=(0,Ae.I$)("Dropdown",Se=>{const{marginXXS:Xi,sizePopupArrow:Yi,paddingXXS:fo,componentCls:di}=Se,Fs=(0,De.TS)(Se,{menuCls:`${di}-menu`,dropdownArrowDistance:Se.calc(Yi).div(2).add(Xi).equal(),dropdownEdgeChildPadding:fo});return[Xe(Fs),Me(Fs)]},Be),St=y(35792);const nt=null,wt=Se=>{const{menu:Xi,arrow:Yi,prefixCls:fo,children:di,trigger:Fs,disabled:Ln,dropdownRender:it,getPopupContainer:Ot,overlayClassName:Ht,rootClassName:Pn,overlayStyle:fr,open:In,onOpenChange:mn,visible:Ut,onVisibleChange:en,mouseEnterDelay:Cn=.15,mouseLeaveDelay:lr=.1,autoAdjustOverflow:pr=!0,placement:an="",overlay:wr,transitionName:Cr}=Se,{getPopupContainer:Ei,getPrefixCls:vo,direction:kr,dropdown:ro}=v.useContext(ae.E_),qi=(0,K.ln)("Dropdown"),bo=v.useMemo(()=>{const ci=vo();return Cr!==void 0?Cr:an.includes("top")?`${ci}-slide-down`:`${ci}-slide-up`},[vo,an,Cr]),xn=v.useMemo(()=>an?an.includes("Center")?an.slice(0,an.indexOf("Center")):an:kr==="rtl"?"bottomRight":"bottomLeft",[an,kr]),pn=vo("dropdown",fo),Dt=(0,St.Z)(pn),[Zt,vn]=Xt(pn,Dt),[,$n]=(0,ye.ZP)(),Ar=v.Children.only(di),Dr=(0,O.Tm)(Ar,{className:b()(`${pn}-trigger`,{[`${pn}-rtl`]:kr==="rtl"},Ar.props.className),disabled:Ln}),dr=Ln?[]:Fs;let Yt;dr&&dr.includes("contextMenu")&&(Yt=!0);const[wn,Qn]=(0,k.Z)(!1,{value:In!=null?In:Ut}),Mr=(0,V.zX)(ci=>{mn==null||mn(ci,{source:"trigger"}),en==null||en(ci),Qn(ci)}),Wi=b()(Ht,Pn,vn,Dt,ro==null?void 0:ro.className,{[`${pn}-rtl`]:kr==="rtl"}),Dn=(0,g.Z)({arrowPointAtCenter:typeof Yi=="object"&&Yi.pointAtCenter,autoAdjustOverflow:pr,offset:$n.marginXXS,arrowWidth:Yi?$n.sizePopupArrow:0,borderRadius:$n.borderRadius}),Kn=v.useCallback(()=>{Xi!=null&&Xi.selectable&&(Xi!=null&&Xi.multiple)||(mn==null||mn(!1,{source:"menu"}),Qn(!1))},[Xi==null?void 0:Xi.selectable,Xi==null?void 0:Xi.multiple]),nr=()=>{let ci;return Xi!=null&&Xi.items?ci=v.createElement(fe.Z,Object.assign({},Xi)):typeof wr=="function"?ci=wr():ci=wr,it&&(ci=it(ci)),ci=v.Children.only(typeof ci=="string"?v.createElement("span",null,ci):ci),v.createElement(xe.J,{prefixCls:`${pn}-menu`,rootClassName:Dt,expandIcon:v.createElement("span",{className:`${pn}-menu-submenu-arrow`},v.createElement(P.Z,{className:`${pn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Kn,validator:gi=>{let{mode:mi}=gi}},ci)},[qr,yi]=(0,C.Cn)("Dropdown",fr==null?void 0:fr.zIndex);let Hr=v.createElement(B.Z,Object.assign({alignPoint:Yt},(0,R.Z)(Se,["rootClassName"]),{mouseEnterDelay:Cn,mouseLeaveDelay:lr,visible:wn,builtinPlacements:Dn,arrow:!!Yi,overlayClassName:Wi,prefixCls:pn,getPopupContainer:Ot||Ei,transitionName:bo,trigger:dr,overlay:nr,placement:xn,onVisibleChange:Mr,overlayStyle:Object.assign(Object.assign(Object.assign({},ro==null?void 0:ro.style),fr),{zIndex:qr})}),Dr);return qr&&(Hr=v.createElement(he.Z.Provider,{value:yi},Hr)),Zt(Hr)};function lt(Se){return Object.assign(Object.assign({},Se),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Kt=(0,A.Z)(wt,"dropdown",Se=>Se,lt),Mt=Se=>v.createElement(Kt,Object.assign({},Se),v.createElement("span",null));wt._InternalPanelDoNotUseOrYouWillBeFired=Mt;var hn=wt,un=y(35872),Sr=y(15867),ii=y(78957),Ii=y(4173),Ni=function(Se,Xi){var Yi={};for(var fo in Se)Object.prototype.hasOwnProperty.call(Se,fo)&&Xi.indexOf(fo)<0&&(Yi[fo]=Se[fo]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var di=0,fo=Object.getOwnPropertySymbols(Se);di{const{getPopupContainer:Xi,getPrefixCls:Yi,direction:fo}=v.useContext(ae.E_),{prefixCls:di,type:Fs="default",danger:Ln,disabled:it,loading:Ot,onClick:Ht,htmlType:Pn,children:fr,className:In,menu:mn,arrow:Ut,autoFocus:en,overlay:Cn,trigger:lr,align:pr,open:an,onOpenChange:wr,placement:Cr,getPopupContainer:Ei,href:vo,icon:kr=v.createElement(un.Z,null),title:ro,buttonsRender:qi=nr=>nr,mouseEnterDelay:bo,mouseLeaveDelay:xn,overlayClassName:pn,overlayStyle:Dt,destroyPopupOnHide:Zt,dropdownRender:vn}=Se,$n=Ni(Se,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Ar=Yi("dropdown",di),Dr=`${Ar}-button`,dr={menu:mn,arrow:Ut,autoFocus:en,align:pr,disabled:it,trigger:it?[]:lr,onOpenChange:wr,getPopupContainer:Ei||Xi,mouseEnterDelay:bo,mouseLeaveDelay:xn,overlayClassName:pn,overlayStyle:Dt,destroyPopupOnHide:Zt,dropdownRender:vn},{compactSize:Yt,compactItemClassnames:wn}=(0,Ii.ri)(Ar,fo),Qn=b()(Dr,wn,In);"overlay"in Se&&(dr.overlay=Cn),"open"in Se&&(dr.open=an),"placement"in Se?dr.placement=Cr:dr.placement=fo==="rtl"?"bottomLeft":"bottomRight";const Mr=v.createElement(Sr.ZP,{type:Fs,danger:Ln,disabled:it,loading:Ot,onClick:Ht,htmlType:Pn,href:vo,title:ro},fr),Wi=v.createElement(Sr.ZP,{type:Fs,danger:Ln,icon:kr}),[Dn,Kn]=qi([Mr,Wi]);return v.createElement(ii.Z.Compact,Object.assign({className:Qn,size:Yt,block:!0},$n),Dn,v.createElement(hn,Object.assign({},dr),Kn))};eo.__ANT_BUTTON=!0;var ti=eo;const Is=hn;Is.Button=ti;var Ns=Is},32983:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return Qe}});var v=y(94184),P=y.n(v),w=y(67294),b=y(53124),B=y(10110),V=y(10274),k=y(25976),C=()=>{const[,Ve]=(0,k.ZP)(),st=new V.C(Ve.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return w.createElement("svg",{style:st,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},w.createElement("g",{fill:"none",fillRule:"evenodd"},w.createElement("g",{transform:"translate(24 31.67)"},w.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),w.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),w.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),w.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),w.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),w.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),w.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},w.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),w.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},A=()=>{const[,Ve]=(0,k.ZP)(),{colorFill:pt,colorFillTertiary:st,colorFillQuaternary:Ae,colorBgContainer:De}=Ve,{borderColor:Te,shadowColor:Me,contentColor:Ue}=(0,w.useMemo)(()=>({borderColor:new V.C(pt).onBackground(De).toHexShortString(),shadowColor:new V.C(st).onBackground(De).toHexShortString(),contentColor:new V.C(Ae).onBackground(De).toHexShortString()}),[pt,st,Ae,De]);return w.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},w.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},w.createElement("ellipse",{fill:Me,cx:"32",cy:"33",rx:"32",ry:"7"}),w.createElement("g",{fillRule:"nonzero",stroke:Te},w.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),w.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Ue}))))},O=y(91945),K=y(45503);const he=Ve=>{const{componentCls:pt,margin:st,marginXS:Ae,marginXL:De,fontSize:Te,lineHeight:Me}=Ve;return{[pt]:{marginInline:Ae,fontSize:Te,lineHeight:Me,textAlign:"center",[`${pt}-image`]:{height:Ve.emptyImgHeight,marginBottom:Ae,opacity:Ve.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${pt}-description`]:{color:Ve.colorText},[`${pt}-footer`]:{marginTop:st},"&-normal":{marginBlock:De,color:Ve.colorTextDisabled,[`${pt}-description`]:{color:Ve.colorTextDisabled},[`${pt}-image`]:{height:Ve.emptyImgHeightMD}},"&-small":{marginBlock:Ae,color:Ve.colorTextDisabled,[`${pt}-image`]:{height:Ve.emptyImgHeightSM}}}}};var ae=(0,O.I$)("Empty",Ve=>{const{componentCls:pt,controlHeightLG:st,calc:Ae}=Ve,De=(0,K.TS)(Ve,{emptyImgCls:`${pt}-img`,emptyImgHeight:Ae(st).mul(2.5).equal(),emptyImgHeightMD:st,emptyImgHeightSM:Ae(st).mul(.875).equal()});return[he(De)]}),fe=function(Ve,pt){var st={};for(var Ae in Ve)Object.prototype.hasOwnProperty.call(Ve,Ae)&&pt.indexOf(Ae)<0&&(st[Ae]=Ve[Ae]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Ae=Object.getOwnPropertySymbols(Ve);De{var{className:pt,rootClassName:st,prefixCls:Ae,image:De=xe,description:Te,children:Me,imageStyle:Ue,style:Pe}=Ve,Xe=fe(Ve,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Be,direction:Xt,empty:St}=w.useContext(b.E_),nt=Be("empty",Ae),[wt,lt]=ae(nt),[Kt]=(0,B.Z)("Empty"),Mt=typeof Te!="undefined"?Te:Kt==null?void 0:Kt.description,hn=typeof Mt=="string"?Mt:"empty";let un=null;return typeof De=="string"?un=w.createElement("img",{alt:hn,src:De}):un=De,wt(w.createElement("div",Object.assign({className:P()(lt,nt,St==null?void 0:St.className,{[`${nt}-normal`]:De===ye,[`${nt}-rtl`]:Xt==="rtl"},pt,st),style:Object.assign(Object.assign({},St==null?void 0:St.style),Pe)},Xe),w.createElement("div",{className:`${nt}-image`,style:Ue},un),Mt&&w.createElement("div",{className:`${nt}-description`},Mt),Me&&w.createElement("div",{className:`${nt}-footer`},Me)))};be.PRESENTED_IMAGE_DEFAULT=xe,be.PRESENTED_IMAGE_SIMPLE=ye;var Qe=be},65223:function(yt,Y,y){"use strict";y.d(Y,{RV:function(){return V},Rk:function(){return k},Ux:function(){return C},aM:function(){return R},q3:function(){return b},qI:function(){return B}});var v=y(67294),P=y(43589),w=y(98423);const b=v.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),B=v.createContext(null),V=g=>{const A=(0,w.Z)(g,["prefixCls"]);return v.createElement(P.RV,Object.assign({},A))},k=v.createContext({prefixCls:""}),R=v.createContext({}),C=g=>{let{children:A,status:O,override:K}=g;const he=(0,v.useContext)(R),ae=(0,v.useMemo)(()=>{const fe=Object.assign({},he);return K&&delete fe.isFormItemInput,O&&(delete fe.status,delete fe.hasFeedback,delete fe.feedbackIcon),fe},[O,K,he]);return v.createElement(R.Provider,{value:ae},A)}},31147:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return Xr}});var v=y(74902),P=y(94184),w=y.n(P),b=y(82225),B=y(67294),V=y(33603),k=y(65223);function R(Ze){const[ht,dt]=B.useState(Ze);return B.useEffect(()=>{const $e=setTimeout(()=>{dt(Ze)},Ze.length?0:10);return()=>{clearTimeout($e)}},[Ze]),ht}var C=y(43109),g=y(14747),A=y(50438),O=y(33507),K=y(45503),he=y(91945),fe=Ze=>{const{componentCls:ht}=Ze,dt=`${ht}-show-help`,$e=`${ht}-show-help-item`;return{[dt]:{transition:`opacity ${Ze.motionDurationSlow} ${Ze.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[$e]:{overflow:"hidden",transition:`height ${Ze.motionDurationSlow} ${Ze.motionEaseInOut}, + opacity ${Ze.motionDurationSlow} ${Ze.motionEaseInOut}, + transform ${Ze.motionDurationSlow} ${Ze.motionEaseInOut} !important`,[`&${$e}-appear, &${$e}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${$e}-leave-active`]:{transform:"translateY(-5px)"}}}}};const xe=Ze=>({legend:{display:"block",width:"100%",marginBottom:Ze.marginLG,padding:0,color:Ze.colorTextDescription,fontSize:Ze.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,C.bf)(Ze.lineWidth)} ${Ze.lineType} ${Ze.colorBorder}`},label:{fontSize:Ze.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},[`input[type='file']:focus, input[type='radio']:focus, - input[type='checkbox']:focus`]:{outline:0,boxShadow:`0 0 0 ${(0,C.bf)(je.controlOutlineWidth)} ${je.controlOutline}`},output:{display:"block",paddingTop:15,color:je.colorText,fontSize:je.fontSize,lineHeight:je.lineHeight}}),_e=(je,ut)=>{const{formItemCls:ht}=je;return{[ht]:{[`${ht}-label > label`]:{height:ut},[`${ht}-control-input`]:{minHeight:ut}}}},we=je=>{const{componentCls:ut}=je;return{[je.componentCls]:Object.assign(Object.assign(Object.assign({},(0,g.Wf)(je)),Ee(je)),{[`${ut}-text`]:{display:"inline-block",paddingInlineEnd:je.paddingSM},"&-small":Object.assign({},_e(je,je.controlHeightSM)),"&-large":Object.assign({},_e(je,je.controlHeightLG))})}},ot=je=>{const{formItemCls:ut,iconCls:ht,componentCls:Ue,rootPrefixCls:ft,labelRequiredMarkColor:Pt,labelColor:ln,labelFontSize:sr,labelHeight:Zr,labelColonMarginInlineStart:Ui,labelColonMarginInlineEnd:To,itemMarginBottom:Vi}=je;return{[ut]:Object.assign(Object.assign({},(0,g.Wf)(je)),{marginBottom:Vi,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden.${ft}-row`]:{display:"none"},"&-has-warning":{[`${ut}-split`]:{color:je.colorError}},"&-has-error":{[`${ut}-split`]:{color:je.colorWarning}},[`${ut}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:je.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Zr,color:ln,fontSize:sr,[`> ${ht}`]:{fontSize:je.fontSize,verticalAlign:"top"},[`&${ut}-required:not(${ut}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:je.marginXXS,color:Pt,fontSize:je.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Ue}-hide-required-mark &`]:{display:"none"}},[`${ut}-optional`]:{display:"inline-block",marginInlineStart:je.marginXXS,color:je.colorTextDescription,[`${Ue}-hide-required-mark &`]:{display:"none"}},[`${ut}-tooltip`]:{color:je.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:je.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Ui,marginInlineEnd:To},[`&${ut}-no-colon::after`]:{content:'"\\a0"'}}},[`${ut}-control`]:{["--ant-display"]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ft}-col-'"]):not([class*="' ${ft}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:je.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ut]:{"&-explain, &-extra":{clear:"both",color:je.colorTextDescription,fontSize:je.fontSize,lineHeight:je.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:je.controlHeightSM,transition:`color ${je.motionDurationMid} ${je.motionEaseOut}`},"&-explain":{"&-error":{color:je.colorError},"&-warning":{color:je.colorWarning}}},[`&-with-help ${ut}-explain`]:{height:"auto",opacity:1},[`${ut}-feedback-icon`]:{fontSize:je.fontSize,textAlign:"center",visibility:"visible",animationName:A.kr,animationDuration:je.motionDurationMid,animationTimingFunction:je.motionEaseOutBack,pointerEvents:"none","&-success":{color:je.colorSuccess},"&-error":{color:je.colorError},"&-warning":{color:je.colorWarning},"&-validating":{color:je.colorPrimary}}})}},He=je=>{const{componentCls:ut,formItemCls:ht}=je;return{[`${ut}-horizontal`]:{[`${ht}-label`]:{flexGrow:0},[`${ht}-control`]:{flex:"1 1 0",minWidth:0},[`${ht}-label[class$='-24'], ${ht}-label[class*='-24 ']`]:{[`& + ${ht}-control`]:{minWidth:"unset"}}}}},vt=je=>{const{componentCls:ut,formItemCls:ht}=je;return{[`${ut}-inline`]:{display:"flex",flexWrap:"wrap",[ht]:{flex:"none",marginInlineEnd:je.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${ht}-label, - > ${ht}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${ht}-label`]:{flex:"none"},[`${ut}-text`]:{display:"inline-block"},[`${ht}-has-feedback`]:{display:"inline-block"}}}}},dt=je=>({padding:je.verticalLabelPadding,margin:je.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Pe=je=>{const{componentCls:ut,formItemCls:ht,rootPrefixCls:Ue}=je;return{[`${ht} ${ht}-label`]:dt(je),[`${ut}:not(${ut}-inline)`]:{[ht]:{flexWrap:"wrap",[`${ht}-label, ${ht}-control`]:{[`&:not([class*=" ${Ue}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},De=je=>{const{componentCls:ut,formItemCls:ht,rootPrefixCls:Ue}=je;return{[`${ut}-vertical`]:{[ht]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${ut}-item-control`]:{width:"100%"}}},[`${ut}-vertical ${ht}-label, - .${Ue}-col-24${ht}-label, - .${Ue}-col-xl-24${ht}-label`]:dt(je),[`@media (max-width: ${(0,C.bf)(je.screenXSMax)})`]:[Pe(je),{[ut]:{[`.${Ue}-col-xs-24${ht}-label`]:dt(je)}}],[`@media (max-width: ${(0,C.bf)(je.screenSMMax)})`]:{[ut]:{[`.${Ue}-col-sm-24${ht}-label`]:dt(je)}},[`@media (max-width: ${(0,C.bf)(je.screenMDMax)})`]:{[ut]:{[`.${Ue}-col-md-24${ht}-label`]:dt(je)}},[`@media (max-width: ${(0,C.bf)(je.screenLGMax)})`]:{[ut]:{[`.${Ue}-col-lg-24${ht}-label`]:dt(je)}}}},Ae=je=>({labelRequiredMarkColor:je.colorError,labelColor:je.colorTextHeading,labelFontSize:je.fontSize,labelHeight:je.controlHeight,labelColonMarginInlineStart:je.marginXXS/2,labelColonMarginInlineEnd:je.marginXS,itemMarginBottom:je.marginLG,verticalLabelPadding:`0 0 ${je.paddingXS}px`,verticalLabelMargin:0}),Re=(je,ut)=>(0,K.TS)(je,{formItemCls:`${je.componentCls}-item`,rootPrefixCls:ut});var $e=(0,ce.I$)("Form",(je,ut)=>{let{rootPrefixCls:ht}=ut;const Ue=Re(je,ht);return[we(Ue),ot(Ue),ve(Ue),He(Ue),vt(Ue),De(Ue),(0,O.Z)(Ue),A.kr]},Ae,{order:-1e3}),Ie=_(20170);const Xe=[];function ze(je,ut,ht){let Ue=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof je=="string"?je:`${ut}-${Ue}`,error:je,errorStatus:ht}}var St=je=>{let{help:ut,helpStatus:ht,errors:Ue=Xe,warnings:ft=Xe,className:Pt,fieldId:ln,onVisibleChanged:sr}=je;const{prefixCls:Zr}=B.useContext(k.Rk),Ui=`${Zr}-item-explain`,To=(0,Ie.Z)(Zr),[Vi,Us]=$e(Zr,To),Is=(0,B.useMemo)(()=>(0,V.Z)(Zr),[Zr]),Rs=M(Ue),Ns=M(ft),Lo=B.useMemo(()=>ut!=null?[ze(ut,"help",ht)]:[].concat((0,v.Z)(Rs.map((ua,Ka)=>ze(ua,"error","error",Ka))),(0,v.Z)(Ns.map((ua,Ka)=>ze(ua,"warning","warning",Ka)))),[ut,ht,Rs,Ns]),Ps={};return ln&&(Ps.id=`${ln}_help`),Vi(B.createElement(b.ZP,{motionDeadline:Is.motionDeadline,motionName:`${Zr}-show-help`,visible:!!Lo.length,onVisibleChanged:sr},ua=>{const{className:Ka,style:Hl}=ua;return B.createElement("div",Object.assign({},Ps,{className:w()(Ui,Ka,To,Pt,Us),style:Hl,role:"alert"}),B.createElement(b.V4,Object.assign({keys:Lo},(0,V.Z)(Zr),{motionName:`${Zr}-show-help-item`,component:!1}),Gl=>{const{key:fs,error:Hs,errorStatus:dl,className:Xo,style:Mi}=Gl;return B.createElement("div",{key:fs,className:w()(Xo,{[`${Ui}-${dl}`]:dl}),style:Mi},Hs)}))}))},nt=_(41091),Ct=_(51059),lt=_(40053),Gt=_(40693),Rt=_(1220);const an=je=>typeof je=="object"&&je!=null&&je.nodeType===1,cn=(je,ut)=>(!ut||je!=="hidden")&&je!=="visible"&&je!=="clip",Cr=(je,ut)=>{if(je.clientHeight{const ft=(Pt=>{if(!Pt.ownerDocument||!Pt.ownerDocument.defaultView)return null;try{return Pt.ownerDocument.defaultView.frameElement}catch(ln){return null}})(Ue);return!!ft&&(ft.clientHeightPtut||Pt>je&&ln=ut&&sr>=ht?Pt-je-Ue:ln>ut&&srht?ln-ut+ft:0,Pi=je=>{const ut=je.parentElement;return ut==null?je.getRootNode().host||null:ut},Ni=(je,ut)=>{var ht,Ue,ft,Pt;if(typeof document=="undefined")return[];const{scrollMode:ln,block:sr,inline:Zr,boundary:Ui,skipOverflowHiddenElements:To}=ut,Vi=typeof Ui=="function"?Ui:gc=>gc!==Ui;if(!an(je))throw new TypeError("Invalid target");const Us=document.scrollingElement||document.documentElement,Is=[];let Rs=je;for(;an(Rs)&&Vi(Rs);){if(Rs=Pi(Rs),Rs===Us){Is.push(Rs);break}Rs!=null&&Rs===document.body&&Cr(Rs)&&!Cr(document.documentElement)||Rs!=null&&Cr(Rs,To)&&Is.push(Rs)}const Ns=(Ue=(ht=window.visualViewport)==null?void 0:ht.width)!=null?Ue:innerWidth,Lo=(Pt=(ft=window.visualViewport)==null?void 0:ft.height)!=null?Pt:innerHeight,{scrollX:Ps,scrollY:ua}=window,{height:Ka,width:Hl,top:Gl,right:fs,bottom:Hs,left:dl}=je.getBoundingClientRect(),{top:Xo,right:Mi,bottom:Yo,left:Os}=(gc=>{const Zu=window.getComputedStyle(gc);return{top:parseFloat(Zu.scrollMarginTop)||0,right:parseFloat(Zu.scrollMarginRight)||0,bottom:parseFloat(Zu.scrollMarginBottom)||0,left:parseFloat(Zu.scrollMarginLeft)||0}})(je);let Cs=sr==="start"||sr==="nearest"?Gl-Xo:sr==="end"?Hs+Yo:Gl+Ka/2-Xo+Yo,xa=Zr==="center"?dl+Hl/2-Os+Mi:Zr==="end"?fs+Mi:dl-Os;const Xu=[];for(let gc=0;gc=0&&dl>=0&&Hs<=Lo&&fs<=Ns&&Gl>=gu&&Hs<=Tu&&dl>=Si&&fs<=iu)return Xu;const tr=getComputedStyle(Zu),Un=parseInt(tr.borderLeftWidth,10),jr=parseInt(tr.borderTopWidth,10),Qr=parseInt(tr.borderRightWidth,10),_o=parseInt(tr.borderBottomWidth,10);let us=0,ns=0;const Oa="offsetWidth"in Zu?Zu.offsetWidth-Zu.clientWidth-Un-Qr:0,ga="offsetHeight"in Zu?Zu.offsetHeight-Zu.clientHeight-jr-_o:0,Va="offsetWidth"in Zu?Zu.offsetWidth===0?0:ad/Zu.offsetWidth:0,ea="offsetHeight"in Zu?Zu.offsetHeight===0?0:Cd/Zu.offsetHeight:0;if(Us===Zu)us=sr==="start"?Cs:sr==="end"?Cs-Lo:sr==="nearest"?ii(ua,ua+Lo,Lo,jr,_o,ua+Cs,ua+Cs+Ka,Ka):Cs-Lo/2,ns=Zr==="start"?xa:Zr==="center"?xa-Ns/2:Zr==="end"?xa-Ns:ii(Ps,Ps+Ns,Ns,Un,Qr,Ps+xa,Ps+xa+Hl,Hl),us=Math.max(0,us+ua),ns=Math.max(0,ns+Ps);else{us=sr==="start"?Cs-gu-jr:sr==="end"?Cs-Tu+_o+ga:sr==="nearest"?ii(gu,Tu,Cd,jr,_o+ga,Cs,Cs+Ka,Ka):Cs-(gu+Cd/2)+ga/2,ns=Zr==="start"?xa-Si-Un:Zr==="center"?xa-(Si+ad/2)+Oa/2:Zr==="end"?xa-iu+Qr+Oa:ii(Si,iu,ad,Un,Qr+Oa,xa,xa+Hl,Hl);const{scrollLeft:Xl,scrollTop:_a}=Zu;us=ea===0?0:Math.max(0,Math.min(_a+us/ea,Zu.scrollHeight-Cd/ea+ga)),ns=Va===0?0:Math.max(0,Math.min(Xl+ns/Va,Zu.scrollWidth-ad/Va+Oa)),Cs+=_a-us,xa+=Xl-ns}Xu.push({el:Zu,top:us,left:ns})}return Xu},Yi=je=>je===!1?{block:"end",inline:"nearest"}:(ut=>ut===Object(ut)&&Object.keys(ut).length!==0)(je)?je:{block:"start",inline:"nearest"};function ti(je,ut){if(!je.isConnected||!(ft=>{let Pt=ft;for(;Pt&&Pt.parentNode;){if(Pt.parentNode===document)return!0;Pt=Pt.parentNode instanceof ShadowRoot?Pt.parentNode.host:Pt.parentNode}return!1})(je))return;const ht=(ft=>{const Pt=window.getComputedStyle(ft);return{top:parseFloat(Pt.scrollMarginTop)||0,right:parseFloat(Pt.scrollMarginRight)||0,bottom:parseFloat(Pt.scrollMarginBottom)||0,left:parseFloat(Pt.scrollMarginLeft)||0}})(je);if((ft=>typeof ft=="object"&&typeof ft.behavior=="function")(ut))return ut.behavior(Ni(je,ut));const Ue=typeof ut=="boolean"||ut==null?void 0:ut.behavior;for(const{el:ft,top:Pt,left:ln}of Ni(je,Yi(ut))){const sr=Pt-ht.top+ht.bottom,Zr=ln-ht.left+ht.right;ft.scroll({top:sr,left:Zr,behavior:Ue})}}const Ts=["parentNode"],Bs="form_item";function Ce(je){return je===void 0||je===!1?[]:Array.isArray(je)?je:[je]}function Gi(je,ut){if(!je.length)return;const ht=je.join("_");return ut?`${ut}_${ht}`:Ts.includes(ht)?`${Bs}_${ht}`:ht}function qi(je,ut,ht,Ue,ft,Pt){let ln=Ue;return Pt!==void 0?ln=Pt:ht.validating?ln="validating":je.length?ln="error":ut.length?ln="warning":(ht.touched||ft&&ht.validated)&&(ln="success"),ln}function co(je){return Ce(je).join("_")}function fi(je){const[ut]=(0,nt.cI)(),ht=B.useRef({}),Ue=B.useMemo(()=>je!=null?je:Object.assign(Object.assign({},ut),{__INTERNAL__:{itemRef:ft=>Pt=>{const ln=co(ft);Pt?ht.current[ln]=Pt:delete ht.current[ln]}},scrollToField:function(ft){let Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const ln=Ce(ft),sr=Gi(ln,Ue.__INTERNAL__.name),Zr=sr?document.getElementById(sr):null;Zr&&ti(Zr,Object.assign({scrollMode:"if-needed",block:"nearest"},Pt))},getFieldInstance:ft=>{const Pt=co(ft);return ht.current[Pt]}}),[je,ut]);return[Ue]}var Ms=_(55656),In=function(je,ut){var ht={};for(var Ue in je)Object.prototype.hasOwnProperty.call(je,Ue)&&ut.indexOf(Ue)<0&&(ht[Ue]=je[Ue]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Ue=Object.getOwnPropertySymbols(je);ft{const ht=B.useContext(lt.Z),{getPrefixCls:Ue,direction:ft,form:Pt}=B.useContext(Ct.E_),{prefixCls:ln,className:sr,rootClassName:Zr,size:Ui,disabled:To=ht,form:Vi,colon:Us,labelAlign:Is,labelWrap:Rs,labelCol:Ns,wrapperCol:Lo,hideRequiredMark:Ps,layout:ua="horizontal",scrollToFirstError:Ka,requiredMark:Hl,onFinishFailed:Gl,name:fs,style:Hs,feedbackIcons:dl}=je,Xo=In(je,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Mi=(0,Rt.Z)(Ui),Yo=B.useContext(Ms.Z),Os=(0,B.useMemo)(()=>Hl!==void 0?Hl:Pt&&Pt.requiredMark!==void 0?Pt.requiredMark:!Ps,[Ps,Hl,Pt]),Cs=Us!=null?Us:Pt==null?void 0:Pt.colon,xa=Ue("form",ln),Xu=(0,Ie.Z)(xa),[gc,Zu]=$e(xa,Xu),Cd=w()(xa,`${xa}-${ua}`,{[`${xa}-hide-required-mark`]:Os===!1,[`${xa}-rtl`]:ft==="rtl",[`${xa}-${Mi}`]:Mi},Xu,Zu,Pt==null?void 0:Pt.className,sr,Zr),[ad]=fi(Vi),{__INTERNAL__:gu}=ad;gu.name=fs;const iu=(0,B.useMemo)(()=>({name:fs,labelAlign:Is,labelCol:Ns,labelWrap:Rs,wrapperCol:Lo,vertical:ua==="vertical",colon:Cs,requiredMark:Os,itemRef:gu.itemRef,form:ad,feedbackIcons:dl}),[fs,Is,Ns,Lo,ua,Cs,Os,ad,dl]);B.useImperativeHandle(ut,()=>ad);const Tu=(tr,Un)=>{if(tr){let jr={block:"nearest"};typeof tr=="object"&&(jr=tr),ad.scrollToField(Un,jr)}},Si=tr=>{if(Gl==null||Gl(tr),tr.errorFields.length){const Un=tr.errorFields[0].name;if(Ka!==void 0){Tu(Ka,Un);return}Pt&&Pt.scrollToFirstError!==void 0&&Tu(Pt.scrollToFirstError,Un)}};return gc(B.createElement(lt.n,{disabled:To},B.createElement(Gt.Z.Provider,{value:Mi},B.createElement(k.RV,{validateMessages:Yo},B.createElement(k.q3.Provider,{value:iu},B.createElement(nt.ZP,Object.assign({id:fs},Xo,{name:fs,onFinishFailed:Si,form:ad,style:Object.assign(Object.assign({},Pt==null?void 0:Pt.style),Hs),className:Cd})))))))};var $t=B.forwardRef(et),Dn=_(30462),gr=_(88831),kn=_(29341),bn=_(50905),zt=_(45659);function Jt(je){if(typeof je=="function")return je;const ut=(0,zt.Z)(je);return ut.length<=1?ut[0]:ut}const yn=()=>{const{status:je,errors:ut=[],warnings:ht=[]}=(0,B.useContext)(k.aM);return{status:je,errors:ut,warnings:ht}};yn.Context=k.aM;var fr=yn,vr=_(90571);function pn(je){const[ut,ht]=B.useState(je),Ue=(0,B.useRef)(null),ft=(0,B.useRef)([]),Pt=(0,B.useRef)(!1);B.useEffect(()=>(Pt.current=!1,()=>{Pt.current=!0,vr.Z.cancel(Ue.current),Ue.current=null}),[]);function ln(sr){Pt.current||(Ue.current===null&&(ft.current=[],Ue.current=(0,vr.Z)(()=>{Ue.current=null,ht(Zr=>{let Ui=Zr;return ft.current.forEach(To=>{Ui=To(Ui)}),Ui})})),ft.current.push(sr))}return[ut,ln]}function wr(){const{itemRef:je}=B.useContext(k.q3),ut=B.useRef({});function ht(Ue,ft){const Pt=ft&&typeof ft=="object"&&ft.ref,ln=Ue.join("_");return(ut.current.name!==ln||ut.current.originRef!==Pt)&&(ut.current.name=ln,ut.current.originRef=Pt,ut.current.ref=(0,gr.sQ)(je(Ue),Pt)),ut.current.ref}return ht}var Sr=_(95077),Ai=_(70658),mo=_(99468),Fr=_(94123),Ji=(0,B.createContext)({});const bo=je=>{const{componentCls:ut}=je;return{[ut]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},xn=je=>{const{componentCls:ut}=je;return{[ut]:{position:"relative",maxWidth:"100%",minHeight:1}}},fn=(je,ut)=>{const{componentCls:ht,gridColumns:Ue}=je,ft={};for(let Pt=Ue;Pt>=0;Pt--)Pt===0?(ft[`${ht}${ut}-${Pt}`]={display:"none"},ft[`${ht}-push-${Pt}`]={insetInlineStart:"auto"},ft[`${ht}-pull-${Pt}`]={insetInlineEnd:"auto"},ft[`${ht}${ut}-push-${Pt}`]={insetInlineStart:"auto"},ft[`${ht}${ut}-pull-${Pt}`]={insetInlineEnd:"auto"},ft[`${ht}${ut}-offset-${Pt}`]={marginInlineStart:0},ft[`${ht}${ut}-order-${Pt}`]={order:0}):(ft[`${ht}${ut}-${Pt}`]=[{["--ant-display"]:"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${Pt/Ue*100}%`,maxWidth:`${Pt/Ue*100}%`}],ft[`${ht}${ut}-push-${Pt}`]={insetInlineStart:`${Pt/Ue*100}%`},ft[`${ht}${ut}-pull-${Pt}`]={insetInlineEnd:`${Pt/Ue*100}%`},ft[`${ht}${ut}-offset-${Pt}`]={marginInlineStart:`${Pt/Ue*100}%`},ft[`${ht}${ut}-order-${Pt}`]={order:Pt});return ft},It=(je,ut)=>fn(je,ut),Zt=(je,ut,ht)=>({[`@media (min-width: ${(0,C.bf)(ut)})`]:Object.assign({},It(je,ht))}),gn=()=>({}),$n=()=>({}),Ar=(0,ce.I$)("Grid",bo,gn),Dr=(0,ce.I$)("Grid",je=>{const ut=(0,K.TS)(je,{gridColumns:24}),ht={"-sm":ut.screenSMMin,"-md":ut.screenMDMin,"-lg":ut.screenLGMin,"-xl":ut.screenXLMin,"-xxl":ut.screenXXLMin};return[xn(ut),It(ut,""),It(ut,"-xs"),Object.keys(ht).map(Ue=>Zt(ut,ht[Ue],Ue)).reduce((Ue,ft)=>Object.assign(Object.assign({},Ue),ft),{})]},$n);var dr=function(je,ut){var ht={};for(var Ue in je)Object.prototype.hasOwnProperty.call(je,Ue)&&ut.indexOf(Ue)<0&&(ht[Ue]=je[Ue]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Ue=Object.getOwnPropertySymbols(je);ft{if(typeof je=="string"&&Ue(je),typeof je=="object")for(let Pt=0;Pt{ft()},[JSON.stringify(je),ut]),ht}var ji=B.forwardRef((je,ut)=>{const{prefixCls:ht,justify:Ue,align:ft,className:Pt,style:ln,children:sr,gutter:Zr=0,wrap:Ui}=je,To=dr(je,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:Vi,direction:Us}=B.useContext(Ct.E_),[Is,Rs]=B.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[Ns,Lo]=B.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),Ps=er(ft,Ns),ua=er(Ue,Ns),Ka=B.useRef(Zr),Hl=(0,Fr.ZP)();B.useEffect(()=>{const gc=Hl.subscribe(Zu=>{Lo(Zu);const Cd=Ka.current||0;(!Array.isArray(Cd)&&typeof Cd=="object"||Array.isArray(Cd)&&(typeof Cd[0]=="object"||typeof Cd[1]=="object"))&&Rs(Zu)});return()=>Hl.unsubscribe(gc)},[]);const Gl=()=>{const gc=[void 0,void 0];return(Array.isArray(Zr)?Zr:[Zr,void 0]).forEach((Cd,ad)=>{if(typeof Cd=="object")for(let gu=0;gu0?Xo[0]/-2:void 0;Os&&(Yo.marginLeft=Os,Yo.marginRight=Os),[,Yo.rowGap]=Xo;const[Cs,xa]=Xo,Xu=B.useMemo(()=>({gutter:[Cs,xa],wrap:Ui}),[Cs,xa,Ui]);return Hs(B.createElement(Ji.Provider,{value:Xu},B.createElement("div",Object.assign({},To,{className:Mi,style:Object.assign(Object.assign({},Yo),ln),ref:ut}),sr)))}),An=function(je,ut){var ht={};for(var Ue in je)Object.prototype.hasOwnProperty.call(je,Ue)&&ut.indexOf(Ue)<0&&(ht[Ue]=je[Ue]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Ue=Object.getOwnPropertySymbols(je);ft{const{getPrefixCls:ht,direction:Ue}=B.useContext(Ct.E_),{gutter:ft,wrap:Pt}=B.useContext(Ji),{prefixCls:ln,span:sr,order:Zr,offset:Ui,push:To,pull:Vi,className:Us,children:Is,flex:Rs,style:Ns}=je,Lo=An(je,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),Ps=ht("col",ln),[ua,Ka]=Dr(Ps);let Hl={};nr.forEach(Hs=>{let dl={};const Xo=je[Hs];typeof Xo=="number"?dl.span=Xo:typeof Xo=="object"&&(dl=Xo||{}),delete Lo[Hs],Hl=Object.assign(Object.assign({},Hl),{[`${Ps}-${Hs}-${dl.span}`]:dl.span!==void 0,[`${Ps}-${Hs}-order-${dl.order}`]:dl.order||dl.order===0,[`${Ps}-${Hs}-offset-${dl.offset}`]:dl.offset||dl.offset===0,[`${Ps}-${Hs}-push-${dl.push}`]:dl.push||dl.push===0,[`${Ps}-${Hs}-pull-${dl.pull}`]:dl.pull||dl.pull===0,[`${Ps}-${Hs}-flex-${dl.flex}`]:dl.flex||dl.flex==="auto",[`${Ps}-rtl`]:Ue==="rtl"})});const Gl=w()(Ps,{[`${Ps}-${sr}`]:sr!==void 0,[`${Ps}-order-${Zr}`]:Zr,[`${Ps}-offset-${Ui}`]:Ui,[`${Ps}-push-${To}`]:To,[`${Ps}-pull-${Vi}`]:Vi},Us,Hl,Ka),fs={};if(ft&&ft[0]>0){const Hs=ft[0]/2;fs.paddingLeft=Hs,fs.paddingRight=Hs}return Rs&&(fs.flex=Xn(Rs),Pt===!1&&!fs.minWidth&&(fs.minWidth=0)),ua(B.createElement("div",Object.assign({},Lo,{style:Object.assign(Object.assign({},fs),Ns),className:Gl,ref:ut}),Is))});const Hr=je=>{const{formItemCls:ut}=je;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ut}-control`]:{display:"flex"}}}};var di=(0,ce.bk)(["Form","item-item"],(je,ut)=>{let{rootPrefixCls:ht}=ut;const Ue=Re(je,ht);return[Hr(Ue)]}),mi=je=>{const{prefixCls:ut,status:ht,wrapperCol:Ue,children:ft,errors:Pt,warnings:ln,_internalItemRender:sr,extra:Zr,help:Ui,fieldId:To,marginBottom:Vi,onErrorVisibleChanged:Us}=je,Is=`${ut}-item`,Rs=B.useContext(k.q3),Ns=Ue||Rs.wrapperCol||{},Lo=w()(`${Is}-control`,Ns.className),Ps=B.useMemo(()=>Object.assign({},Rs),[Rs]);delete Ps.labelCol,delete Ps.wrapperCol;const ua=B.createElement("div",{className:`${Is}-control-input`},B.createElement("div",{className:`${Is}-control-input-content`},ft)),Ka=B.useMemo(()=>({prefixCls:ut,status:ht}),[ut,ht]),Hl=Vi!==null||Pt.length||ln.length?B.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},B.createElement(k.Rk.Provider,{value:Ka},B.createElement(St,{fieldId:To,errors:Pt,warnings:ln,help:Ui,helpStatus:ht,className:`${Is}-explain-connected`,onVisibleChanged:Us})),!!Vi&&B.createElement("div",{style:{width:0,height:Vi}})):null,Gl={};To&&(Gl.id=`${To}_extra`);const fs=Zr?B.createElement("div",Object.assign({},Gl,{className:`${Is}-extra`}),Zr):null,Hs=sr&&sr.mark==="pro_table_render"&&sr.render?sr.render(je,{input:ua,errorList:Hl,extra:fs}):B.createElement(B.Fragment,null,ua,Hl,fs);return B.createElement(k.q3.Provider,{value:Ps},B.createElement(vi,Object.assign({},Ns,{className:Lo}),Hs),B.createElement(di,{prefixCls:ut}))},Bi=_(61796),zr=_(40043),Xr=_(91851),Qi=function(ut,ht){return B.createElement(Xr.Z,(0,Bi.Z)({},ut,{ref:ht,icon:zr.Z}))},rs=B.forwardRef(Qi),Ur=_(44199),gs=_(66951),Kr=_(38134),ri=function(je,ut){var ht={};for(var Ue in je)Object.prototype.hasOwnProperty.call(je,Ue)&&ut.indexOf(Ue)<0&&(ht[Ue]=je[Ue]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Ue=Object.getOwnPropertySymbols(je);ft{let{prefixCls:ut,label:ht,htmlFor:Ue,labelCol:ft,labelAlign:Pt,colon:ln,required:sr,requiredMark:Zr,tooltip:Ui}=je;var To;const[Vi]=(0,gs.Z)("Form"),{vertical:Us,labelAlign:Is,labelCol:Rs,labelWrap:Ns,colon:Lo}=B.useContext(k.q3);if(!ht)return null;const Ps=ft||Rs||{},ua=Pt||Is,Ka=`${ut}-item-label`,Hl=w()(Ka,ua==="left"&&`${Ka}-left`,Ps.className,{[`${Ka}-wrap`]:!!Ns});let Gl=ht;const fs=ln===!0||Lo!==!1&&ln!==!1;fs&&!Us&&typeof ht=="string"&&ht.trim()!==""&&(Gl=ht.replace(/[:|:]\s*$/,""));const dl=is(Ui);if(dl){const{icon:Os=B.createElement(rs,null)}=dl,Cs=ri(dl,["icon"]),xa=B.createElement(Kr.Z,Object.assign({},Cs),B.cloneElement(Os,{className:`${ut}-item-tooltip`,title:"",onClick:Xu=>{Xu.preventDefault()},tabIndex:null}));Gl=B.createElement(B.Fragment,null,Gl,xa)}const Xo=Zr==="optional",Mi=typeof Zr=="function";Mi?Gl=Zr(Gl,{required:!!sr}):Xo&&!sr&&(Gl=B.createElement(B.Fragment,null,Gl,B.createElement("span",{className:`${ut}-item-optional`,title:""},(Vi==null?void 0:Vi.optional)||((To=Ur.Z.Form)===null||To===void 0?void 0:To.optional))));const Yo=w()({[`${ut}-item-required`]:sr,[`${ut}-item-required-mark-optional`]:Xo||Mi,[`${ut}-item-no-colon`]:!fs});return B.createElement(vi,Object.assign({},Ps,{className:Hl}),B.createElement("label",{htmlFor:Ue,className:Yo,title:typeof ht=="string"?ht:""},Gl))},Br=_(95934),es=_(48796),ko=_(86850),vs=_(38521);const Ba={success:Br.Z,warning:ko.Z,error:es.Z,validating:vs.Z};function uo(je){let{children:ut,errors:ht,warnings:Ue,hasFeedback:ft,validateStatus:Pt,prefixCls:ln,meta:sr,noStyle:Zr}=je;const Ui=`${ln}-item`,{feedbackIcons:To}=B.useContext(k.q3),Vi=qi(ht,Ue,sr,null,!!ft,Pt),{isFormItemInput:Us,status:Is,hasFeedback:Rs,feedbackIcon:Ns}=B.useContext(k.aM),Lo=B.useMemo(()=>{var Ps;let ua;if(ft){const Hl=ft!==!0&&ft.icons||To,Gl=Vi&&((Ps=Hl==null?void 0:Hl({status:Vi,errors:ht,warnings:Ue}))===null||Ps===void 0?void 0:Ps[Vi]),fs=Vi&&Ba[Vi];ua=Gl!==!1&&fs?B.createElement("span",{className:w()(`${Ui}-feedback-icon`,`${Ui}-feedback-icon-${Vi}`)},Gl||B.createElement(fs,null)):null}const Ka={status:Vi||"",errors:ht,warnings:Ue,hasFeedback:!!ft,feedbackIcon:ua,isFormItemInput:!0};return Zr&&(Ka.status=(Vi!=null?Vi:Is)||"",Ka.isFormItemInput=Us,Ka.hasFeedback=!!(ft!=null?ft:Rs),Ka.feedbackIcon=ft!==void 0?Ka.feedbackIcon:Ns),Ka},[Vi,ft,Zr,Us,Is]);return B.createElement(k.aM.Provider,{value:Lo},ut)}var ca=function(je,ut){var ht={};for(var Ue in je)Object.prototype.hasOwnProperty.call(je,Ue)&&ut.indexOf(Ue)<0&&(ht[Ue]=je[Ue]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Ue=Object.getOwnPropertySymbols(je);ft{if(dl&&Hl.current){const gc=getComputedStyle(Hl.current);Yo(parseInt(gc.marginBottom,10))}},[dl,Xo]);const Os=gc=>{gc||Yo(null)},xa=function(){let gc=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Zu=gc?Gl:Ui.errors,Cd=gc?fs:Ui.warnings;return qi(Zu,Cd,Ui,"",!!To,Zr)}(),Xu=w()(ua,ht,Ue,{[`${ua}-with-help`]:Hs||Gl.length||fs.length,[`${ua}-has-feedback`]:xa&&To,[`${ua}-has-success`]:xa==="success",[`${ua}-has-warning`]:xa==="warning",[`${ua}-has-error`]:xa==="error",[`${ua}-is-validating`]:xa==="validating",[`${ua}-hidden`]:Vi});return B.createElement("div",{className:Xu,style:ft,ref:Hl},B.createElement(ji,Object.assign({className:`${ua}-row`},(0,mo.Z)(Ps,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),B.createElement(_n,Object.assign({htmlFor:Is},je,{requiredMark:Ka,required:Rs!=null?Rs:Ns,prefixCls:ut})),B.createElement(mi,Object.assign({},je,Ui,{errors:Gl,warnings:fs,prefixCls:ut,status:xa,help:Pt,marginBottom:Mi,onErrorVisibleChanged:Os}),B.createElement(k.qI.Provider,{value:Lo},B.createElement(uo,{prefixCls:ut,meta:Ui,errors:Ui.errors,warnings:Ui.warnings,hasFeedback:To,validateStatus:xa},Us)))),!!Mi&&B.createElement("div",{className:`${ua}-margin-offset`,style:{marginBottom:-Mi}}))}const Ti="__SPLIT__",Li=null,eo=B.memo(je=>{let{children:ut}=je;return ut},(je,ut)=>je.value===ut.value&&je.update===ut.update&&je.childProps.length===ut.childProps.length&&je.childProps.every((ht,Ue)=>ht===ut.childProps[Ue]));function Eo(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function hs(je){const{name:ut,noStyle:ht,className:Ue,dependencies:ft,prefixCls:Pt,shouldUpdate:ln,rules:sr,children:Zr,required:Ui,label:To,messageVariables:Vi,trigger:Us="onChange",validateTrigger:Is,hidden:Rs,help:Ns}=je,{getPrefixCls:Lo}=B.useContext(Ct.E_),{name:Ps}=B.useContext(k.q3),ua=Jt(Zr),Ka=typeof ua=="function",Hl=B.useContext(k.qI),{validateTrigger:Gl}=B.useContext(nt.zb),fs=Is!==void 0?Is:Gl,Hs=ut!=null,dl=Lo("form",Pt),Xo=(0,Ie.Z)(dl),[Mi,Yo]=$e(dl,Xo),Os=(0,bn.ln)("Form.Item"),Cs=B.useContext(nt.ZM),xa=B.useRef(),[Xu,gc]=pn({}),[Zu,Cd]=(0,Dn.Z)(()=>Eo()),ad=jr=>{const Qr=Cs==null?void 0:Cs.getKey(jr.name);if(Cd(jr.destroy?Eo():jr,!0),ht&&Ns!==!1&&Hl){let _o=jr.name;if(jr.destroy)_o=xa.current||_o;else if(Qr!==void 0){const[us,ns]=Qr;_o=[us].concat((0,v.Z)(ns)),xa.current=_o}Hl(jr,_o)}},gu=(jr,Qr)=>{gc(_o=>{const us=Object.assign({},_o),Oa=[].concat((0,v.Z)(jr.name.slice(0,-1)),(0,v.Z)(Qr)).join(Ti);return jr.destroy?delete us[Oa]:us[Oa]=jr,us})},[iu,Tu]=B.useMemo(()=>{const jr=(0,v.Z)(Zu.errors),Qr=(0,v.Z)(Zu.warnings);return Object.values(Xu).forEach(_o=>{jr.push.apply(jr,(0,v.Z)(_o.errors||[])),Qr.push.apply(Qr,(0,v.Z)(_o.warnings||[]))}),[jr,Qr]},[Xu,Zu.errors,Zu.warnings]),Si=wr();function tr(jr,Qr,_o){return ht&&!Rs?B.createElement(uo,{prefixCls:dl,hasFeedback:je.hasFeedback,validateStatus:je.validateStatus,meta:Zu,errors:iu,warnings:Tu,noStyle:!0},jr):B.createElement(ll,Object.assign({key:"row"},je,{className:w()(Ue,Xo,Yo),prefixCls:dl,fieldId:Qr,isRequired:_o,errors:iu,warnings:Tu,meta:Zu,onSubItemMetaChange:gu}),jr)}if(!Hs&&!Ka&&!ft)return Mi(tr(ua));let Un={};return typeof To=="string"?Un.label=To:ut&&(Un.label=String(ut)),Vi&&(Un=Object.assign(Object.assign({},Un),Vi)),Mi(B.createElement(nt.gN,Object.assign({},je,{messageVariables:Un,trigger:Us,validateTrigger:fs,onMetaChange:ad}),(jr,Qr,_o)=>{const us=Ce(ut).length&&Qr?Qr.name:[],ns=Gi(us,Ps),Oa=Ui!==void 0?Ui:!!(sr&&sr.some(ea=>{if(ea&&typeof ea=="object"&&ea.required&&!ea.warningOnly)return!0;if(typeof ea=="function"){const Xl=ea(_o);return Xl&&Xl.required&&!Xl.warningOnly}return!1})),ga=Object.assign({},jr);let Va=null;if(Array.isArray(ua)&&Hs)Va=ua;else if(!(Ka&&(!(ln||ft)||Hs))){if(!(ft&&!Ka&&!Hs))if((0,kn.l$)(ua)){const ea=Object.assign(Object.assign({},ua.props),ga);if(ea.id||(ea.id=ns),Ns||iu.length>0||Tu.length>0||je.extra){const Ta=[];(Ns||iu.length>0)&&Ta.push(`${ns}_help`),je.extra&&Ta.push(`${ns}_extra`),ea["aria-describedby"]=Ta.join(" ")}iu.length>0&&(ea["aria-invalid"]="true"),Oa&&(ea["aria-required"]="true"),(0,gr.Yr)(ua)&&(ea.ref=Si(us,ua)),new Set([].concat((0,v.Z)(Ce(Us)),(0,v.Z)(Ce(fs)))).forEach(Ta=>{ea[Ta]=function(){for(var Ya,cu,jl,Mu,Bl,wl=arguments.length,Tn=new Array(wl),nc=0;nc{var{prefixCls:ut,children:ht}=je,Ue=Qo(je,["prefixCls","children"]);const{getPrefixCls:ft}=B.useContext(Ct.E_),Pt=ft("form",ut),ln=B.useMemo(()=>({prefixCls:Pt,status:"error"}),[Pt]);return B.createElement(nt.aV,Object.assign({},Ue),(sr,Zr,Ui)=>B.createElement(k.Rk.Provider,{value:ln},ht(sr.map(To=>Object.assign(Object.assign({},To),{fieldKey:To.key})),Zr,{errors:Ui.errors,warnings:Ui.warnings})))};function Yn(){const{form:je}=(0,B.useContext)(k.q3);return je}const kr=$t;kr.Item=yo,kr.List=Ko,kr.ErrorList=St,kr.useForm=fi,kr.useFormInstance=Yn,kr.useWatch=nt.qo,kr.Provider=k.RV,kr.create=()=>{};var Gr=kr},55656:function(_t,Y,_){"use strict";var v=_(77617);Y.Z=(0,v.createContext)(void 0)},44111:function(_t,Y,_){"use strict";var v=_(77617),R=_(70658),w=_(81259),b=_(94123);function B(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const k=(0,v.useRef)({}),M=(0,w.Z)(),C=(0,b.ZP)();return(0,R.Z)(()=>{const g=C.subscribe(A=>{k.current=A,V&&M()});return()=>C.unsubscribe(g)},[]),k.current}Y.Z=B},79011:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return bo}});var v=_(42884),R=_(61796),w=_(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},B=b,V=_(91851),k=function(fn,It){return w.createElement(V.Z,(0,R.Z)({},fn,{ref:It,icon:B}))},M=w.forwardRef(k),C=_(12124),g=_.n(C),A=_(35005),O=_(96522),K=_(61860),ce=_(33649),de=_(67873),ve=_(22695);function Ee(){return typeof BigInt=="function"}function _e(xn){return!xn&&xn!==0&&!Number.isNaN(xn)||!String(xn).trim()}function we(xn){var fn=xn.trim(),It=fn.startsWith("-");It&&(fn=fn.slice(1)),fn=fn.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),fn.startsWith(".")&&(fn="0".concat(fn));var Zt=fn||"0",gn=Zt.split("."),$n=gn[0]||"0",Ar=gn[1]||"0";$n==="0"&&Ar==="0"&&(It=!1);var Dr=It?"-":"";return{negative:It,negativeStr:Dr,trimStr:Zt,integerStr:$n,decimalStr:Ar,fullStr:"".concat(Dr).concat(Zt)}}function ot(xn){var fn=String(xn);return!Number.isNaN(Number(fn))&&fn.includes("e")}function He(xn){var fn=String(xn);if(ot(xn)){var It=Number(fn.slice(fn.indexOf("e-")+2)),Zt=fn.match(/\.(\d+)/);return Zt!=null&&Zt[1]&&(It+=Zt[1].length),It}return fn.includes(".")&&dt(fn)?fn.length-fn.indexOf(".")-1:0}function vt(xn){var fn=String(xn);if(ot(xn)){if(xn>Number.MAX_SAFE_INTEGER)return String(Ee()?BigInt(xn).toString():Number.MAX_SAFE_INTEGER);if(xn0&&arguments[0]!==void 0?arguments[0]:!0;return It?this.isInvalidate()?"":we("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),xn}(),De=function(){function xn(fn){if((0,de.Z)(this,xn),(0,A.Z)(this,"origin",""),(0,A.Z)(this,"number",void 0),(0,A.Z)(this,"empty",void 0),_e(fn)){this.empty=!0;return}this.origin=String(fn),this.number=Number(fn)}return(0,ve.Z)(xn,[{key:"negate",value:function(){return new xn(-this.toNumber())}},{key:"add",value:function(It){if(this.isInvalidate())return new xn(It);var Zt=Number(It);if(Number.isNaN(Zt))return this;var gn=this.number+Zt;if(gn>Number.MAX_SAFE_INTEGER)return new xn(Number.MAX_SAFE_INTEGER);if(gnNumber.MAX_SAFE_INTEGER)return new xn(Number.MAX_SAFE_INTEGER);if(gn0&&arguments[0]!==void 0?arguments[0]:!0;return It?this.isInvalidate()?"":vt(this.number):this.origin}}]),xn}();function Ae(xn){return Ee()?new Pe(xn):new De(xn)}function Re(xn,fn,It){var Zt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(xn==="")return"";var gn=we(xn),$n=gn.negativeStr,Ar=gn.integerStr,Dr=gn.decimalStr,dr="".concat(fn).concat(Dr),Xt="".concat($n).concat(Ar);if(It>=0){var Cn=Number(Dr[It]);if(Cn>=5&&!Zt){var er=Ae(xn).add("".concat($n,"0.").concat("0".repeat(It)).concat(10-Cn));return Re(er.toString(),fn,It,Zt)}return It===0?Xt:"".concat(Xt).concat(fn).concat(Dr.padEnd(It,"0").slice(0,It))}return dr===".0"?Xt:"".concat(Xt).concat(dr)}var $e=Ae,Ie=_(13245),Xe=_(70658),ze=_(88831),Kt=_(36014);function St(xn,fn){var It=(0,w.useRef)(null);function Zt(){try{var $n=xn.selectionStart,Ar=xn.selectionEnd,Dr=xn.value,dr=Dr.substring(0,$n),Xt=Dr.substring(Ar);It.current={start:$n,end:Ar,value:Dr,beforeTxt:dr,afterTxt:Xt}}catch(Cn){}}function gn(){if(xn&&It.current&&fn)try{var $n=xn.value,Ar=It.current,Dr=Ar.beforeTxt,dr=Ar.afterTxt,Xt=Ar.start,Cn=$n.length;if($n.endsWith(dr))Cn=$n.length-It.current.afterTxt.length;else if($n.startsWith(Dr))Cn=Dr.length;else{var er=Dr[Xt-1],Mr=$n.indexOf(er,Xt-1);Mr!==-1&&(Cn=Mr+1)}xn.setSelectionRange(Cn,Cn)}catch(ji){(0,Kt.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(ji.message))}}return[Zt,gn]}var nt=_(15639),Ct=function(){var fn=(0,w.useState)(!1),It=(0,K.Z)(fn,2),Zt=It[0],gn=It[1];return(0,Xe.Z)(function(){gn((0,nt.Z)())},[]),Zt},lt=Ct,Gt=_(90571),Rt=200,an=600;function cn(xn){var fn=xn.prefixCls,It=xn.upNode,Zt=xn.downNode,gn=xn.upDisabled,$n=xn.downDisabled,Ar=xn.onStep,Dr=w.useRef(),dr=w.useRef([]),Xt=w.useRef();Xt.current=Ar;var Cn=function(){clearTimeout(Dr.current)},er=function(Hr,di){Hr.preventDefault(),Cn(),Xt.current(di);function gi(){Xt.current(di),Dr.current=setTimeout(gi,Rt)}Dr.current=setTimeout(gi,an)};w.useEffect(function(){return function(){Cn(),dr.current.forEach(function(vi){return Gt.Z.cancel(vi)})}},[]);var Mr=lt();if(Mr)return null;var ji="".concat(fn,"-handler"),An=g()(ji,"".concat(ji,"-up"),(0,A.Z)({},"".concat(ji,"-up-disabled"),gn)),Xn=g()(ji,"".concat(ji,"-down"),(0,A.Z)({},"".concat(ji,"-down-disabled"),$n)),nr=function(){return dr.current.push((0,Gt.Z)(Cn))},qr={unselectable:"on",role:"button",onMouseUp:nr,onMouseLeave:nr};return w.createElement("div",{className:"".concat(ji,"-wrap")},w.createElement("span",(0,R.Z)({},qr,{onMouseDown:function(Hr){er(Hr,!0)},"aria-label":"Increase Value","aria-disabled":gn,className:An}),It||w.createElement("span",{unselectable:"on",className:"".concat(fn,"-handler-up-inner")})),w.createElement("span",(0,R.Z)({},qr,{onMouseDown:function(Hr){er(Hr,!1)},"aria-label":"Decrease Value","aria-disabled":$n,className:Xn}),Zt||w.createElement("span",{unselectable:"on",className:"".concat(fn,"-handler-down-inner")})))}function Cr(xn){var fn=typeof xn=="number"?vt(xn):we(xn).fullStr,It=fn.includes(".");return It?we(fn.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:xn+"0"}var ii=_(12240),Pi=function(){var xn=(0,w.useRef)(0),fn=function(){Gt.Z.cancel(xn.current)};return(0,w.useEffect)(function(){return fn},[]),function(It){fn(),xn.current=(0,Gt.Z)(function(){It()})}},Ni=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],Yi=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],ti=function(fn,It){return fn||It.isEmpty()?It.toString():It.toNumber()},Ts=function(fn){var It=$e(fn);return It.isInvalidate()?null:It},Bs=w.forwardRef(function(xn,fn){var It,Zt=xn.prefixCls,gn=Zt===void 0?"rc-input-number":Zt,$n=xn.className,Ar=xn.style,Dr=xn.min,dr=xn.max,Xt=xn.step,Cn=Xt===void 0?1:Xt,er=xn.defaultValue,Mr=xn.value,ji=xn.disabled,An=xn.readOnly,Xn=xn.upHandler,nr=xn.downHandler,qr=xn.keyboard,vi=xn.controls,Hr=vi===void 0?!0:vi,di=xn.classNames,gi=xn.stringMode,mi=xn.parser,Bi=xn.formatter,zr=xn.precision,Xr=xn.decimalSeparator,Qi=xn.onChange,rs=xn.onInput,Ur=xn.onPressEnter,gs=xn.onStep,Kr=xn.changeOnBlur,ri=Kr===void 0?!0:Kr,is=(0,ce.Z)(xn,Ni),Jr="".concat(gn,"-input"),_n=w.useRef(null),Br=w.useState(!1),es=(0,K.Z)(Br,2),ko=es[0],vs=es[1],Ba=w.useRef(!1),uo=w.useRef(!1),ca=w.useRef(!1),ll=w.useState(function(){return $e(Mr!=null?Mr:er)}),Ti=(0,K.Z)(ll,2),Li=Ti[0],eo=Ti[1];function Eo(fs){Mr===void 0&&eo(fs)}var hs=w.useCallback(function(fs,Hs){if(!Hs)return zr>=0?zr:Math.max(He(fs),He(Cn))},[zr,Cn]),Wn=w.useCallback(function(fs){var Hs=String(fs);if(mi)return mi(Hs);var dl=Hs;return Xr&&(dl=dl.replace(Xr,".")),dl.replace(/[^\w.-]+/g,"")},[mi,Xr]),yo=w.useRef(""),Qo=w.useCallback(function(fs,Hs){if(Bi)return Bi(fs,{userTyping:Hs,input:String(yo.current)});var dl=typeof fs=="number"?vt(fs):fs;if(!Hs){var Xo=hs(dl,Hs);if(dt(dl)&&(Xr||Xo>=0)){var Mi=Xr||".";dl=Re(dl,Mi,Xo)}}return dl},[Bi,hs,Xr]),os=w.useState(function(){var fs=er!=null?er:Mr;return Li.isInvalidate()&&["string","number"].includes((0,O.Z)(fs))?Number.isNaN(fs)?"":fs:Qo(Li.toString(),!1)}),Ko=(0,K.Z)(os,2),Yn=Ko[0],kr=Ko[1];yo.current=Yn;function Gr(fs,Hs){kr(Qo(fs.isInvalidate()?fs.toString(!1):fs.toString(!Hs),Hs))}var je=w.useMemo(function(){return Ts(dr)},[dr,zr]),ut=w.useMemo(function(){return Ts(Dr)},[Dr,zr]),ht=w.useMemo(function(){return!je||!Li||Li.isInvalidate()?!1:je.lessEquals(Li)},[je,Li]),Ue=w.useMemo(function(){return!ut||!Li||Li.isInvalidate()?!1:Li.lessEquals(ut)},[ut,Li]),ft=St(_n.current,ko),Pt=(0,K.Z)(ft,2),ln=Pt[0],sr=Pt[1],Zr=function(Hs){return je&&!Hs.lessEquals(je)?je:ut&&!ut.lessEquals(Hs)?ut:null},Ui=function(Hs){return!Zr(Hs)},To=function(Hs,dl){var Xo=Hs,Mi=Ui(Xo)||Xo.isEmpty();if(!Xo.isEmpty()&&!dl&&(Xo=Zr(Xo)||Xo,Mi=!0),!An&&!ji&&Mi){var Yo=Xo.toString(),Os=hs(Yo,dl);return Os>=0&&(Xo=$e(Re(Yo,".",Os)),Ui(Xo)||(Xo=$e(Re(Yo,".",Os,!0)))),Xo.equals(Li)||(Eo(Xo),Qi==null||Qi(Xo.isEmpty()?null:ti(gi,Xo)),Mr===void 0&&Gr(Xo,dl)),Xo}return Li},Vi=Pi(),Us=function fs(Hs){if(ln(),yo.current=Hs,kr(Hs),!uo.current){var dl=Wn(Hs),Xo=$e(dl);Xo.isNaN()||To(Xo,!0)}rs==null||rs(Hs),Vi(function(){var Mi=Hs;mi||(Mi=Hs.replace(/。/g,".")),Mi!==Hs&&fs(Mi)})},Is=function(){uo.current=!0},Rs=function(){uo.current=!1,Us(_n.current.value)},Ns=function(Hs){Us(Hs.target.value)},Lo=function(Hs){var dl;if(!(Hs&&ht||!Hs&&Ue)){Ba.current=!1;var Xo=$e(ca.current?Cr(Cn):Cn);Hs||(Xo=Xo.negate());var Mi=(Li||$e(0)).add(Xo.toString()),Yo=To(Mi,!1);gs==null||gs(ti(gi,Yo),{offset:ca.current?Cr(Cn):Cn,type:Hs?"up":"down"}),(dl=_n.current)===null||dl===void 0||dl.focus()}},Ps=function(Hs){var dl=$e(Wn(Yn)),Xo=dl;dl.isNaN()?Xo=To(Li,Hs):Xo=To(dl,Hs),Mr!==void 0?Gr(Li,!1):Xo.isNaN()||Gr(Xo,!1)},ua=function(){Ba.current=!0},Ka=function(Hs){var dl=Hs.key,Xo=Hs.shiftKey;Ba.current=!0,ca.current=Xo,dl==="Enter"&&(uo.current||(Ba.current=!1),Ps(!1),Ur==null||Ur(Hs)),qr!==!1&&!uo.current&&["Up","ArrowUp","Down","ArrowDown"].includes(dl)&&(Lo(dl==="Up"||dl==="ArrowUp"),Hs.preventDefault())},Hl=function(){Ba.current=!1,ca.current=!1},Gl=function(){ri&&Ps(!1),vs(!1),Ba.current=!1};return(0,Xe.o)(function(){Li.isInvalidate()||Gr(Li,!1)},[zr,Bi]),(0,Xe.o)(function(){var fs=$e(Mr);eo(fs);var Hs=$e(Wn(Yn));(!fs.equals(Hs)||!Ba.current||Bi)&&Gr(fs,Ba.current)},[Mr]),(0,Xe.o)(function(){Bi&&sr()},[Yn]),w.createElement("div",{className:g()(gn,di==null?void 0:di.input,$n,(It={},(0,A.Z)(It,"".concat(gn,"-focused"),ko),(0,A.Z)(It,"".concat(gn,"-disabled"),ji),(0,A.Z)(It,"".concat(gn,"-readonly"),An),(0,A.Z)(It,"".concat(gn,"-not-a-number"),Li.isNaN()),(0,A.Z)(It,"".concat(gn,"-out-of-range"),!Li.isInvalidate()&&!Ui(Li)),It)),style:Ar,onFocus:function(){vs(!0)},onBlur:Gl,onKeyDown:Ka,onKeyUp:Hl,onCompositionStart:Is,onCompositionEnd:Rs,onBeforeInput:ua},Hr&&w.createElement(cn,{prefixCls:gn,upNode:Xn,downNode:nr,upDisabled:ht,downDisabled:Ue,onStep:Lo}),w.createElement("div",{className:"".concat(Jr,"-wrap")},w.createElement("input",(0,R.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Dr,"aria-valuemax":dr,"aria-valuenow":Li.isInvalidate()?null:Li.toString(),step:Cn},is,{ref:(0,ze.sQ)(_n,fn),className:Jr,value:Yn,onChange:Ns,disabled:ji,readOnly:An}))))}),Ce=w.forwardRef(function(xn,fn){var It=xn.disabled,Zt=xn.style,gn=xn.prefixCls,$n=xn.value,Ar=xn.prefix,Dr=xn.suffix,dr=xn.addonBefore,Xt=xn.addonAfter,Cn=xn.classes,er=xn.className,Mr=xn.classNames,ji=(0,ce.Z)(xn,Yi),An=w.useRef(null),Xn=function(qr){An.current&&(0,ii.nH)(An.current,qr)};return w.createElement(Ie.Q,{inputElement:w.createElement(Bs,(0,R.Z)({prefixCls:gn,disabled:It,classNames:Mr,ref:(0,ze.sQ)(An,fn)},ji)),className:er,triggerFocus:Xn,prefixCls:gn,value:$n,disabled:It,style:Zt,prefix:Ar,suffix:Dr,addonAfter:Xt,addonBefore:dr,classes:Cn,classNames:Mr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Ce.displayName="InputNumber";var Gi=Ce,qi=Gi,co=_(11201),fi=_(51059),Ms=_(62719),In=_(40053),et=_(1220),Dt=_(34735),$t=_(60161),Dn=_(7440),gr=_(35772),kn=_(62290),bn=_(67859),zt=_(80172),Jt=_(36646);const yn=(xn,fn)=>{let{componentCls:It,borderRadiusSM:Zt,borderRadiusLG:gn}=xn;const $n=fn==="lg"?gn:Zt;return{[`&-${fn}`]:{[`${It}-handler-wrap`]:{borderStartEndRadius:$n,borderEndEndRadius:$n},[`${It}-handler-up`]:{borderStartEndRadius:$n},[`${It}-handler-down`]:{borderEndEndRadius:$n}}}},fr=xn=>{const{componentCls:fn,lineWidth:It,lineType:Zt,colorBorder:gn,borderRadius:$n,fontSizeLG:Ar,controlHeightLG:Dr,controlHeightSM:dr,colorError:Xt,paddingInlineSM:Cn,colorTextDescription:er,motionDurationMid:Mr,handleHoverColor:ji,paddingInline:An,paddingBlock:Xn,handleBg:nr,handleActiveBg:qr,colorTextDisabled:vi,borderRadiusSM:Hr,borderRadiusLG:di,controlWidth:gi,handleOpacity:mi,handleBorderColor:Bi,calc:zr}=xn;return[{[fn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,gr.Wf)(xn)),(0,Dn.ik)(xn)),(0,Dn.bi)(xn,fn)),{display:"inline-block",width:gi,margin:0,padding:0,border:`${(0,Jt.bf)(It)} ${Zt} ${gn}`,borderRadius:$n,"&-rtl":{direction:"rtl",[`${fn}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Ar,borderRadius:di,[`input${fn}-input`]:{height:zr(Dr).sub(zr(It).mul(2)).equal()}},"&-sm":{padding:0,borderRadius:Hr,[`input${fn}-input`]:{height:zr(dr).sub(zr(It).mul(2)).equal(),padding:`0 ${(0,Jt.bf)(Cn)}`}},"&-out-of-range":{[`${fn}-input-wrap`]:{input:{color:Xt}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,gr.Wf)(xn)),(0,Dn.s7)(xn)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${fn}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${fn}-group-addon`]:{borderRadius:di,fontSize:xn.fontSizeLG}},"&-sm":{[`${fn}-group-addon`]:{borderRadius:Hr}},[`${fn}-wrapper-disabled > ${fn}-group-addon`]:Object.assign({},(0,Dn.Xy)(xn)),[`&:not(${fn}-compact-first-item):not(${fn}-compact-last-item)${fn}-compact-item`]:{[`${fn}, ${fn}-group-addon`]:{borderRadius:0}},[`&:not(${fn}-compact-last-item)${fn}-compact-first-item`]:{[`${fn}, ${fn}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${fn}-compact-first-item)${fn}-compact-last-item`]:{[`${fn}, ${fn}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}),[`&-disabled ${fn}-input`]:{cursor:"not-allowed"},[fn]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,gr.Wf)(xn)),{width:"100%",padding:`${(0,Jt.bf)(Xn)} ${(0,Jt.bf)(An)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:$n,outline:0,transition:`all ${Mr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Dn.nz)(xn.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[fn]:Object.assign(Object.assign(Object.assign({[`&:hover ${fn}-handler-wrap, &-focused ${fn}-handler-wrap`]:{opacity:1},[`${fn}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:xn.handleWidth,height:"100%",background:nr,borderStartStartRadius:0,borderStartEndRadius:$n,borderEndEndRadius:$n,borderEndStartRadius:0,opacity:mi,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Mr} linear ${Mr}`,[`${fn}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` - ${fn}-handler-up-inner, - ${fn}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:xn.handleFontSize}}},[`${fn}-handler`]:{height:"50%",overflow:"hidden",color:er,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,Jt.bf)(It)} ${Zt} ${Bi}`,transition:`all ${Mr} linear`,"&:active":{background:qr},"&:hover":{height:"60%",[` - ${fn}-handler-up-inner, - ${fn}-handler-down-inner - `]:{color:ji}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,gr.Ro)()),{color:er,transition:`all ${Mr} linear`,userSelect:"none"})},[`${fn}-handler-up`]:{borderStartEndRadius:$n},[`${fn}-handler-down`]:{borderBlockStart:`${(0,Jt.bf)(It)} ${Zt} ${Bi}`,borderEndEndRadius:$n}},yn(xn,"lg")),yn(xn,"sm")),{"&-disabled, &-readonly":{[`${fn}-handler-wrap`]:{display:"none"},[`${fn}-input`]:{color:"inherit"}},[` - ${fn}-handler-up-disabled, - ${fn}-handler-down-disabled + input[type='checkbox']:focus`]:{outline:0,boxShadow:`0 0 0 ${(0,C.bf)(Ze.controlOutlineWidth)} ${Ze.controlOutline}`},output:{display:"block",paddingTop:15,color:Ze.colorText,fontSize:Ze.fontSize,lineHeight:Ze.lineHeight}}),ye=(Ze,ht)=>{const{formItemCls:dt}=Ze;return{[dt]:{[`${dt}-label > label`]:{height:ht},[`${dt}-control-input`]:{minHeight:ht}}}},be=Ze=>{const{componentCls:ht}=Ze;return{[Ze.componentCls]:Object.assign(Object.assign(Object.assign({},(0,g.Wf)(Ze)),xe(Ze)),{[`${ht}-text`]:{display:"inline-block",paddingInlineEnd:Ze.paddingSM},"&-small":Object.assign({},ye(Ze,Ze.controlHeightSM)),"&-large":Object.assign({},ye(Ze,Ze.controlHeightLG))})}},Qe=Ze=>{const{formItemCls:ht,iconCls:dt,componentCls:$e,rootPrefixCls:ft,labelRequiredMarkColor:Lt,labelColor:gn,labelFontSize:rr,labelHeight:zr,labelColonMarginInlineStart:Fi,labelColonMarginInlineEnd:xo,itemMarginBottom:Vi}=Ze;return{[ht]:Object.assign(Object.assign({},(0,g.Wf)(Ze)),{marginBottom:Vi,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden.${ft}-row`]:{display:"none"},"&-has-warning":{[`${ht}-split`]:{color:Ze.colorError}},"&-has-error":{[`${ht}-split`]:{color:Ze.colorWarning}},[`${ht}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Ze.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:zr,color:gn,fontSize:rr,[`> ${dt}`]:{fontSize:Ze.fontSize,verticalAlign:"top"},[`&${ht}-required:not(${ht}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Ze.marginXXS,color:Lt,fontSize:Ze.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${$e}-hide-required-mark &`]:{display:"none"}},[`${ht}-optional`]:{display:"inline-block",marginInlineStart:Ze.marginXXS,color:Ze.colorTextDescription,[`${$e}-hide-required-mark &`]:{display:"none"}},[`${ht}-tooltip`]:{color:Ze.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ze.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Fi,marginInlineEnd:xo},[`&${ht}-no-colon::after`]:{content:'"\\a0"'}}},[`${ht}-control`]:{["--ant-display"]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ft}-col-'"]):not([class*="' ${ft}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ze.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ht]:{"&-explain, &-extra":{clear:"both",color:Ze.colorTextDescription,fontSize:Ze.fontSize,lineHeight:Ze.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ze.controlHeightSM,transition:`color ${Ze.motionDurationMid} ${Ze.motionEaseOut}`},"&-explain":{"&-error":{color:Ze.colorError},"&-warning":{color:Ze.colorWarning}}},[`&-with-help ${ht}-explain`]:{height:"auto",opacity:1},[`${ht}-feedback-icon`]:{fontSize:Ze.fontSize,textAlign:"center",visibility:"visible",animationName:A.kr,animationDuration:Ze.motionDurationMid,animationTimingFunction:Ze.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ze.colorSuccess},"&-error":{color:Ze.colorError},"&-warning":{color:Ze.colorWarning},"&-validating":{color:Ze.colorPrimary}}})}},Ve=Ze=>{const{componentCls:ht,formItemCls:dt}=Ze;return{[`${ht}-horizontal`]:{[`${dt}-label`]:{flexGrow:0},[`${dt}-control`]:{flex:"1 1 0",minWidth:0},[`${dt}-label[class$='-24'], ${dt}-label[class*='-24 ']`]:{[`& + ${dt}-control`]:{minWidth:"unset"}}}}},pt=Ze=>{const{componentCls:ht,formItemCls:dt}=Ze;return{[`${ht}-inline`]:{display:"flex",flexWrap:"wrap",[dt]:{flex:"none",marginInlineEnd:Ze.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${dt}-label, + > ${dt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${dt}-label`]:{flex:"none"},[`${ht}-text`]:{display:"inline-block"},[`${dt}-has-feedback`]:{display:"inline-block"}}}}},st=Ze=>({padding:Ze.verticalLabelPadding,margin:Ze.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ae=Ze=>{const{componentCls:ht,formItemCls:dt,rootPrefixCls:$e}=Ze;return{[`${dt} ${dt}-label`]:st(Ze),[`${ht}:not(${ht}-inline)`]:{[dt]:{flexWrap:"wrap",[`${dt}-label, ${dt}-control`]:{[`&:not([class*=" ${$e}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},De=Ze=>{const{componentCls:ht,formItemCls:dt,rootPrefixCls:$e}=Ze;return{[`${ht}-vertical`]:{[dt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${ht}-item-control`]:{width:"100%"}}},[`${ht}-vertical ${dt}-label, + .${$e}-col-24${dt}-label, + .${$e}-col-xl-24${dt}-label`]:st(Ze),[`@media (max-width: ${(0,C.bf)(Ze.screenXSMax)})`]:[Ae(Ze),{[ht]:{[`.${$e}-col-xs-24${dt}-label`]:st(Ze)}}],[`@media (max-width: ${(0,C.bf)(Ze.screenSMMax)})`]:{[ht]:{[`.${$e}-col-sm-24${dt}-label`]:st(Ze)}},[`@media (max-width: ${(0,C.bf)(Ze.screenMDMax)})`]:{[ht]:{[`.${$e}-col-md-24${dt}-label`]:st(Ze)}},[`@media (max-width: ${(0,C.bf)(Ze.screenLGMax)})`]:{[ht]:{[`.${$e}-col-lg-24${dt}-label`]:st(Ze)}}}},Te=Ze=>({labelRequiredMarkColor:Ze.colorError,labelColor:Ze.colorTextHeading,labelFontSize:Ze.fontSize,labelHeight:Ze.controlHeight,labelColonMarginInlineStart:Ze.marginXXS/2,labelColonMarginInlineEnd:Ze.marginXS,itemMarginBottom:Ze.marginLG,verticalLabelPadding:`0 0 ${Ze.paddingXS}px`,verticalLabelMargin:0}),Me=(Ze,ht)=>(0,K.TS)(Ze,{formItemCls:`${Ze.componentCls}-item`,rootPrefixCls:ht});var Ue=(0,he.I$)("Form",(Ze,ht)=>{let{rootPrefixCls:dt}=ht;const $e=Me(Ze,dt);return[be($e),Qe($e),fe($e),Ve($e),pt($e),De($e),(0,O.Z)($e),A.kr]},Te,{order:-1e3}),Pe=y(35792);const Xe=[];function Be(Ze,ht,dt){let $e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ze=="string"?Ze:`${ht}-${$e}`,error:Ze,errorStatus:dt}}var St=Ze=>{let{help:ht,helpStatus:dt,errors:$e=Xe,warnings:ft=Xe,className:Lt,fieldId:gn,onVisibleChanged:rr}=Ze;const{prefixCls:zr}=B.useContext(k.Rk),Fi=`${zr}-item-explain`,xo=(0,Pe.Z)(zr),[Vi,zs]=Ue(zr,xo),Ps=(0,B.useMemo)(()=>(0,V.Z)(zr),[zr]),Ms=R($e),ks=R(ft),ko=B.useMemo(()=>ht!=null?[Be(ht,"help",dt)]:[].concat((0,v.Z)(Ms.map((ia,za)=>Be(ia,"error","error",za))),(0,v.Z)(ks.map((ia,za)=>Be(ia,"warning","warning",za)))),[ht,dt,Ms,ks]),As={};return gn&&(As.id=`${gn}_help`),Vi(B.createElement(b.ZP,{motionDeadline:Ps.motionDeadline,motionName:`${zr}-show-help`,visible:!!ko.length,onVisibleChanged:rr},ia=>{const{className:za,style:Zl}=ia;return B.createElement("div",Object.assign({},As,{className:w()(Fi,za,xo,Lt,zs),style:Zl,role:"alert"}),B.createElement(b.V4,Object.assign({keys:ko},(0,V.Z)(zr),{motionName:`${zr}-show-help-item`,component:!1}),Hl=>{const{key:fs,error:js,errorStatus:hl,className:Xo,style:Li}=Hl;return B.createElement("div",{key:fs,className:w()(Xo,{[`${Fi}-${hl}`]:hl}),style:Li},js)}))}))},nt=y(43589),wt=y(53124),lt=y(98866),Kt=y(97647),Mt=y(98675);const hn=Ze=>typeof Ze=="object"&&Ze!=null&&Ze.nodeType===1,un=(Ze,ht)=>(!ht||Ze!=="hidden")&&Ze!=="visible"&&Ze!=="clip",Sr=(Ze,ht)=>{if(Ze.clientHeight{const ft=(Lt=>{if(!Lt.ownerDocument||!Lt.ownerDocument.defaultView)return null;try{return Lt.ownerDocument.defaultView.frameElement}catch(gn){return null}})($e);return!!ft&&(ft.clientHeight<$e.scrollHeight||ft.clientWidth<$e.scrollWidth)})(Ze)}return!1},ii=(Ze,ht,dt,$e,ft,Lt,gn,rr)=>Ltht||Lt>Ze&&gn=ht&&rr>=dt?Lt-Ze-$e:gn>ht&&rrdt?gn-ht+ft:0,Ii=Ze=>{const ht=Ze.parentElement;return ht==null?Ze.getRootNode().host||null:ht},Ni=(Ze,ht)=>{var dt,$e,ft,Lt;if(typeof document=="undefined")return[];const{scrollMode:gn,block:rr,inline:zr,boundary:Fi,skipOverflowHiddenElements:xo}=ht,Vi=typeof Fi=="function"?Fi:pc=>pc!==Fi;if(!hn(Ze))throw new TypeError("Invalid target");const zs=document.scrollingElement||document.documentElement,Ps=[];let Ms=Ze;for(;hn(Ms)&&Vi(Ms);){if(Ms=Ii(Ms),Ms===zs){Ps.push(Ms);break}Ms!=null&&Ms===document.body&&Sr(Ms)&&!Sr(document.documentElement)||Ms!=null&&Sr(Ms,xo)&&Ps.push(Ms)}const ks=($e=(dt=window.visualViewport)==null?void 0:dt.width)!=null?$e:innerWidth,ko=(Lt=(ft=window.visualViewport)==null?void 0:ft.height)!=null?Lt:innerHeight,{scrollX:As,scrollY:ia}=window,{height:za,width:Zl,top:Hl,right:fs,bottom:js,left:hl}=Ze.getBoundingClientRect(),{top:Xo,right:Li,bottom:Yo,left:Os}=(pc=>{const Hu=window.getComputedStyle(pc);return{top:parseFloat(Hu.scrollMarginTop)||0,right:parseFloat(Hu.scrollMarginRight)||0,bottom:parseFloat(Hu.scrollMarginBottom)||0,left:parseFloat(Hu.scrollMarginLeft)||0}})(Ze);let Cs=rr==="start"||rr==="nearest"?Hl-Xo:rr==="end"?js+Yo:Hl+za/2-Xo+Yo,ba=zr==="center"?hl+Zl/2-Os+Li:zr==="end"?fs+Li:hl-Os;const Yu=[];for(let pc=0;pc=0&&hl>=0&&js<=ko&&fs<=ks&&Hl>=fu&&js<=Tu&&hl>=wi&&fs<=ru)return Yu;const er=getComputedStyle(Hu),Un=parseInt(er.borderLeftWidth,10),Wr=parseInt(er.borderTopWidth,10),Qr=parseInt(er.borderRightWidth,10),_o=parseInt(er.borderBottomWidth,10);let us=0,es=0;const Ma="offsetWidth"in Hu?Hu.offsetWidth-Hu.clientWidth-Un-Qr:0,ga="offsetHeight"in Hu?Hu.offsetHeight-Hu.clientHeight-Wr-_o:0,$a="offsetWidth"in Hu?Hu.offsetWidth===0?0:lh/Hu.offsetWidth:0,Js="offsetHeight"in Hu?Hu.offsetHeight===0?0:wh/Hu.offsetHeight:0;if(zs===Hu)us=rr==="start"?Cs:rr==="end"?Cs-ko:rr==="nearest"?ii(ia,ia+ko,ko,Wr,_o,ia+Cs,ia+Cs+za,za):Cs-ko/2,es=zr==="start"?ba:zr==="center"?ba-ks/2:zr==="end"?ba-ks:ii(As,As+ks,ks,Un,Qr,As+ba,As+ba+Zl,Zl),us=Math.max(0,us+ia),es=Math.max(0,es+As);else{us=rr==="start"?Cs-fu-Wr:rr==="end"?Cs-Tu+_o+ga:rr==="nearest"?ii(fu,Tu,wh,Wr,_o+ga,Cs,Cs+za,za):Cs-(fu+wh/2)+ga/2,es=zr==="start"?ba-wi-Un:zr==="center"?ba-(wi+lh/2)+Ma/2:zr==="end"?ba-ru+Qr+Ma:ii(wi,ru,lh,Un,Qr+Ma,ba,ba+Zl,Zl);const{scrollLeft:Kl,scrollTop:ya}=Hu;us=Js===0?0:Math.max(0,Math.min(ya+us/Js,Hu.scrollHeight-wh/Js+ga)),es=$a===0?0:Math.max(0,Math.min(Kl+es/$a,Hu.scrollWidth-lh/$a+Ma)),Cs+=ya-us,ba+=Kl-es}Yu.push({el:Hu,top:us,left:es})}return Yu},eo=Ze=>Ze===!1?{block:"end",inline:"nearest"}:(ht=>ht===Object(ht)&&Object.keys(ht).length!==0)(Ze)?Ze:{block:"start",inline:"nearest"};function ti(Ze,ht){if(!Ze.isConnected||!(ft=>{let Lt=ft;for(;Lt&&Lt.parentNode;){if(Lt.parentNode===document)return!0;Lt=Lt.parentNode instanceof ShadowRoot?Lt.parentNode.host:Lt.parentNode}return!1})(Ze))return;const dt=(ft=>{const Lt=window.getComputedStyle(ft);return{top:parseFloat(Lt.scrollMarginTop)||0,right:parseFloat(Lt.scrollMarginRight)||0,bottom:parseFloat(Lt.scrollMarginBottom)||0,left:parseFloat(Lt.scrollMarginLeft)||0}})(Ze);if((ft=>typeof ft=="object"&&typeof ft.behavior=="function")(ht))return ht.behavior(Ni(Ze,ht));const $e=typeof ht=="boolean"||ht==null?void 0:ht.behavior;for(const{el:ft,top:Lt,left:gn}of Ni(Ze,eo(ht))){const rr=Lt-dt.top+dt.bottom,zr=gn-dt.left+dt.right;ft.scroll({top:rr,left:zr,behavior:$e})}}const Is=["parentNode"],Ns="form_item";function Se(Ze){return Ze===void 0||Ze===!1?[]:Array.isArray(Ze)?Ze:[Ze]}function Xi(Ze,ht){if(!Ze.length)return;const dt=Ze.join("_");return ht?`${ht}_${dt}`:Is.includes(dt)?`${Ns}_${dt}`:dt}function Yi(Ze,ht,dt,$e,ft,Lt){let gn=$e;return Lt!==void 0?gn=Lt:dt.validating?gn="validating":Ze.length?gn="error":ht.length?gn="warning":(dt.touched||ft&&dt.validated)&&(gn="success"),gn}function fo(Ze){return Se(Ze).join("_")}function di(Ze){const[ht]=(0,nt.cI)(),dt=B.useRef({}),$e=B.useMemo(()=>Ze!=null?Ze:Object.assign(Object.assign({},ht),{__INTERNAL__:{itemRef:ft=>Lt=>{const gn=fo(ft);Lt?dt.current[gn]=Lt:delete dt.current[gn]}},scrollToField:function(ft){let Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const gn=Se(ft),rr=Xi(gn,$e.__INTERNAL__.name),zr=rr?document.getElementById(rr):null;zr&&ti(zr,Object.assign({scrollMode:"if-needed",block:"nearest"},Lt))},getFieldInstance:ft=>{const Lt=fo(ft);return dt.current[Lt]}}),[Ze,ht]);return[$e]}var Fs=y(37920),Ln=function(Ze,ht){var dt={};for(var $e in Ze)Object.prototype.hasOwnProperty.call(Ze,$e)&&ht.indexOf($e)<0&&(dt[$e]=Ze[$e]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,$e=Object.getOwnPropertySymbols(Ze);ft<$e.length;ft++)ht.indexOf($e[ft])<0&&Object.prototype.propertyIsEnumerable.call(Ze,$e[ft])&&(dt[$e[ft]]=Ze[$e[ft]]);return dt};const it=(Ze,ht)=>{const dt=B.useContext(lt.Z),{getPrefixCls:$e,direction:ft,form:Lt}=B.useContext(wt.E_),{prefixCls:gn,className:rr,rootClassName:zr,size:Fi,disabled:xo=dt,form:Vi,colon:zs,labelAlign:Ps,labelWrap:Ms,labelCol:ks,wrapperCol:ko,hideRequiredMark:As,layout:ia="horizontal",scrollToFirstError:za,requiredMark:Zl,onFinishFailed:Hl,name:fs,style:js,feedbackIcons:hl}=Ze,Xo=Ln(Ze,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Li=(0,Mt.Z)(Fi),Yo=B.useContext(Fs.Z),Os=(0,B.useMemo)(()=>Zl!==void 0?Zl:As?!1:Lt&&Lt.requiredMark!==void 0?Lt.requiredMark:!0,[As,Zl,Lt]),Cs=zs!=null?zs:Lt==null?void 0:Lt.colon,ba=$e("form",gn),Yu=(0,Pe.Z)(ba),[pc,Hu]=Ue(ba,Yu),wh=w()(ba,`${ba}-${ia}`,{[`${ba}-hide-required-mark`]:Os===!1,[`${ba}-rtl`]:ft==="rtl",[`${ba}-${Li}`]:Li},Yu,Hu,Lt==null?void 0:Lt.className,rr,zr),[lh]=di(Vi),{__INTERNAL__:fu}=lh;fu.name=fs;const ru=(0,B.useMemo)(()=>({name:fs,labelAlign:Ps,labelCol:ks,labelWrap:Ms,wrapperCol:ko,vertical:ia==="vertical",colon:Cs,requiredMark:Os,itemRef:fu.itemRef,form:lh,feedbackIcons:hl}),[fs,Ps,ks,ko,ia,Cs,Os,lh,hl]);B.useImperativeHandle(ht,()=>lh);const Tu=(er,Un)=>{if(er){let Wr={block:"nearest"};typeof er=="object"&&(Wr=er),lh.scrollToField(Un,Wr)}},wi=er=>{if(Hl==null||Hl(er),er.errorFields.length){const Un=er.errorFields[0].name;if(za!==void 0){Tu(za,Un);return}Lt&&Lt.scrollToFirstError!==void 0&&Tu(Lt.scrollToFirstError,Un)}};return pc(B.createElement(lt.n,{disabled:xo},B.createElement(Kt.Z.Provider,{value:Li},B.createElement(k.RV,{validateMessages:Yo},B.createElement(k.q3.Provider,{value:ru},B.createElement(nt.ZP,Object.assign({id:fs},Xo,{name:fs,onFinishFailed:wi,form:lh,style:Object.assign(Object.assign({},Lt==null?void 0:Lt.style),js),className:wh})))))))};var Ht=B.forwardRef(it),Pn=y(30470),fr=y(42550),In=y(96159),mn=y(27288),Ut=y(50344);function en(Ze){if(typeof Ze=="function")return Ze;const ht=(0,Ut.Z)(Ze);return ht.length<=1?ht[0]:ht}const Cn=()=>{const{status:Ze,errors:ht=[],warnings:dt=[]}=(0,B.useContext)(k.aM);return{status:Ze,errors:ht,warnings:dt}};Cn.Context=k.aM;var lr=Cn,pr=y(75164);function an(Ze){const[ht,dt]=B.useState(Ze),$e=(0,B.useRef)(null),ft=(0,B.useRef)([]),Lt=(0,B.useRef)(!1);B.useEffect(()=>(Lt.current=!1,()=>{Lt.current=!0,pr.Z.cancel($e.current),$e.current=null}),[]);function gn(rr){Lt.current||($e.current===null&&(ft.current=[],$e.current=(0,pr.Z)(()=>{$e.current=null,dt(zr=>{let Fi=zr;return ft.current.forEach(xo=>{Fi=xo(Fi)}),Fi})})),ft.current.push(rr))}return[ht,gn]}function wr(){const{itemRef:Ze}=B.useContext(k.q3),ht=B.useRef({});function dt($e,ft){const Lt=ft&&typeof ft=="object"&&ft.ref,gn=$e.join("_");return(ht.current.name!==gn||ht.current.originRef!==Lt)&&(ht.current.name=gn,ht.current.originRef=Lt,ht.current.ref=(0,fr.sQ)(Ze($e),Lt)),ht.current.ref}return dt}var Cr=y(5110),Ei=y(8410),vo=y(98423),kr=y(74443),qi=(0,B.createContext)({});const bo=Ze=>{const{componentCls:ht}=Ze;return{[ht]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},xn=Ze=>{const{componentCls:ht}=Ze;return{[ht]:{position:"relative",maxWidth:"100%",minHeight:1}}},pn=(Ze,ht)=>{const{componentCls:dt,gridColumns:$e}=Ze,ft={};for(let Lt=$e;Lt>=0;Lt--)Lt===0?(ft[`${dt}${ht}-${Lt}`]={display:"none"},ft[`${dt}-push-${Lt}`]={insetInlineStart:"auto"},ft[`${dt}-pull-${Lt}`]={insetInlineEnd:"auto"},ft[`${dt}${ht}-push-${Lt}`]={insetInlineStart:"auto"},ft[`${dt}${ht}-pull-${Lt}`]={insetInlineEnd:"auto"},ft[`${dt}${ht}-offset-${Lt}`]={marginInlineStart:0},ft[`${dt}${ht}-order-${Lt}`]={order:0}):(ft[`${dt}${ht}-${Lt}`]=[{["--ant-display"]:"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${Lt/$e*100}%`,maxWidth:`${Lt/$e*100}%`}],ft[`${dt}${ht}-push-${Lt}`]={insetInlineStart:`${Lt/$e*100}%`},ft[`${dt}${ht}-pull-${Lt}`]={insetInlineEnd:`${Lt/$e*100}%`},ft[`${dt}${ht}-offset-${Lt}`]={marginInlineStart:`${Lt/$e*100}%`},ft[`${dt}${ht}-order-${Lt}`]={order:Lt});return ft},Dt=(Ze,ht)=>pn(Ze,ht),Zt=(Ze,ht,dt)=>({[`@media (min-width: ${(0,C.bf)(ht)})`]:Object.assign({},Dt(Ze,dt))}),vn=()=>({}),$n=()=>({}),Ar=(0,he.I$)("Grid",bo,vn),Dr=(0,he.I$)("Grid",Ze=>{const ht=(0,K.TS)(Ze,{gridColumns:24}),dt={"-sm":ht.screenSMMin,"-md":ht.screenMDMin,"-lg":ht.screenLGMin,"-xl":ht.screenXLMin,"-xxl":ht.screenXXLMin};return[xn(ht),Dt(ht,""),Dt(ht,"-xs"),Object.keys(dt).map($e=>Zt(ht,dt[$e],$e)).reduce(($e,ft)=>Object.assign(Object.assign({},$e),ft),{})]},$n);var dr=function(Ze,ht){var dt={};for(var $e in Ze)Object.prototype.hasOwnProperty.call(Ze,$e)&&ht.indexOf($e)<0&&(dt[$e]=Ze[$e]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,$e=Object.getOwnPropertySymbols(Ze);ft<$e.length;ft++)ht.indexOf($e[ft])<0&&Object.prototype.propertyIsEnumerable.call(Ze,$e[ft])&&(dt[$e[ft]]=Ze[$e[ft]]);return dt};const Yt=null,wn=null;function Qn(Ze,ht){const[dt,$e]=B.useState(typeof Ze=="string"?Ze:""),ft=()=>{if(typeof Ze=="string"&&$e(Ze),typeof Ze=="object")for(let Lt=0;Lt{ft()},[JSON.stringify(Ze),ht]),dt}var Wi=B.forwardRef((Ze,ht)=>{const{prefixCls:dt,justify:$e,align:ft,className:Lt,style:gn,children:rr,gutter:zr=0,wrap:Fi}=Ze,xo=dr(Ze,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:Vi,direction:zs}=B.useContext(wt.E_),[Ps,Ms]=B.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[ks,ko]=B.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),As=Qn(ft,ks),ia=Qn($e,ks),za=B.useRef(zr),Zl=(0,kr.ZP)();B.useEffect(()=>{const pc=Zl.subscribe(Hu=>{ko(Hu);const wh=za.current||0;(!Array.isArray(wh)&&typeof wh=="object"||Array.isArray(wh)&&(typeof wh[0]=="object"||typeof wh[1]=="object"))&&Ms(Hu)});return()=>Zl.unsubscribe(pc)},[]);const Hl=()=>{const pc=[void 0,void 0];return(Array.isArray(zr)?zr:[zr,void 0]).forEach((wh,lh)=>{if(typeof wh=="object")for(let fu=0;fu0?Xo[0]/-2:void 0;Os&&(Yo.marginLeft=Os,Yo.marginRight=Os),[,Yo.rowGap]=Xo;const[Cs,ba]=Xo,Yu=B.useMemo(()=>({gutter:[Cs,ba],wrap:Fi}),[Cs,ba,Fi]);return js(B.createElement(qi.Provider,{value:Yu},B.createElement("div",Object.assign({},xo,{className:Li,style:Object.assign(Object.assign({},Yo),gn),ref:ht}),rr)))}),Dn=function(Ze,ht){var dt={};for(var $e in Ze)Object.prototype.hasOwnProperty.call(Ze,$e)&&ht.indexOf($e)<0&&(dt[$e]=Ze[$e]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,$e=Object.getOwnPropertySymbols(Ze);ft<$e.length;ft++)ht.indexOf($e[ft])<0&&Object.prototype.propertyIsEnumerable.call(Ze,$e[ft])&&(dt[$e[ft]]=Ze[$e[ft]]);return dt};function Kn(Ze){return typeof Ze=="number"?`${Ze} ${Ze} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(Ze)?`0 0 ${Ze}`:Ze}const nr=["xs","sm","md","lg","xl","xxl"];var yi=B.forwardRef((Ze,ht)=>{const{getPrefixCls:dt,direction:$e}=B.useContext(wt.E_),{gutter:ft,wrap:Lt}=B.useContext(qi),{prefixCls:gn,span:rr,order:zr,offset:Fi,push:xo,pull:Vi,className:zs,children:Ps,flex:Ms,style:ks}=Ze,ko=Dn(Ze,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),As=dt("col",gn),[ia,za]=Dr(As);let Zl={};nr.forEach(js=>{let hl={};const Xo=Ze[js];typeof Xo=="number"?hl.span=Xo:typeof Xo=="object"&&(hl=Xo||{}),delete ko[js],Zl=Object.assign(Object.assign({},Zl),{[`${As}-${js}-${hl.span}`]:hl.span!==void 0,[`${As}-${js}-order-${hl.order}`]:hl.order||hl.order===0,[`${As}-${js}-offset-${hl.offset}`]:hl.offset||hl.offset===0,[`${As}-${js}-push-${hl.push}`]:hl.push||hl.push===0,[`${As}-${js}-pull-${hl.pull}`]:hl.pull||hl.pull===0,[`${As}-${js}-flex-${hl.flex}`]:hl.flex||hl.flex==="auto",[`${As}-rtl`]:$e==="rtl"})});const Hl=w()(As,{[`${As}-${rr}`]:rr!==void 0,[`${As}-order-${zr}`]:zr,[`${As}-offset-${Fi}`]:Fi,[`${As}-push-${xo}`]:xo,[`${As}-pull-${Vi}`]:Vi},zs,Zl,za),fs={};if(ft&&ft[0]>0){const js=ft[0]/2;fs.paddingLeft=js,fs.paddingRight=js}return Ms&&(fs.flex=Kn(Ms),Lt===!1&&!fs.minWidth&&(fs.minWidth=0)),ia(B.createElement("div",Object.assign({},ko,{style:Object.assign(Object.assign({},fs),ks),className:Hl,ref:ht}),Ps))});const Hr=Ze=>{const{formItemCls:ht}=Ze;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ht}-control`]:{display:"flex"}}}};var ci=(0,he.bk)(["Form","item-item"],(Ze,ht)=>{let{rootPrefixCls:dt}=ht;const $e=Me(Ze,dt);return[Hr($e)]}),mi=Ze=>{const{prefixCls:ht,status:dt,wrapperCol:$e,children:ft,errors:Lt,warnings:gn,_internalItemRender:rr,extra:zr,help:Fi,fieldId:xo,marginBottom:Vi,onErrorVisibleChanged:zs}=Ze,Ps=`${ht}-item`,Ms=B.useContext(k.q3),ks=$e||Ms.wrapperCol||{},ko=w()(`${Ps}-control`,ks.className),As=B.useMemo(()=>Object.assign({},Ms),[Ms]);delete As.labelCol,delete As.wrapperCol;const ia=B.createElement("div",{className:`${Ps}-control-input`},B.createElement("div",{className:`${Ps}-control-input-content`},ft)),za=B.useMemo(()=>({prefixCls:ht,status:dt}),[ht,dt]),Zl=Vi!==null||Lt.length||gn.length?B.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},B.createElement(k.Rk.Provider,{value:za},B.createElement(St,{fieldId:xo,errors:Lt,warnings:gn,help:Fi,helpStatus:dt,className:`${Ps}-explain-connected`,onVisibleChanged:zs})),!!Vi&&B.createElement("div",{style:{width:0,height:Vi}})):null,Hl={};xo&&(Hl.id=`${xo}_extra`);const fs=zr?B.createElement("div",Object.assign({},Hl,{className:`${Ps}-extra`}),zr):null,js=rr&&rr.mark==="pro_table_render"&&rr.render?rr.render(Ze,{input:ia,errorList:Zl,extra:fs}):B.createElement(B.Fragment,null,ia,Zl,fs);return B.createElement(k.q3.Provider,{value:As},B.createElement(yi,Object.assign({},ks,{className:ko}),js),B.createElement(ci,{prefixCls:ht}))},Bi=y(87462),Nr=y(36688),Kr=y(93771),Qi=function(ht,dt){return B.createElement(Kr.Z,(0,Bi.Z)({},ht,{ref:dt,icon:Nr.Z}))},ns=B.forwardRef(Qi),Ur=y(88526),gs=y(10110),Gr=y(61781),ni=function(Ze,ht){var dt={};for(var $e in Ze)Object.prototype.hasOwnProperty.call(Ze,$e)&&ht.indexOf($e)<0&&(dt[$e]=Ze[$e]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,$e=Object.getOwnPropertySymbols(Ze);ft<$e.length;ft++)ht.indexOf($e[ft])<0&&Object.prototype.propertyIsEnumerable.call(Ze,$e[ft])&&(dt[$e[ft]]=Ze[$e[ft]]);return dt};function is(Ze){return Ze?typeof Ze=="object"&&!B.isValidElement(Ze)?Ze:{title:Ze}:null}var bn=Ze=>{let{prefixCls:ht,label:dt,htmlFor:$e,labelCol:ft,labelAlign:Lt,colon:gn,required:rr,requiredMark:zr,tooltip:Fi}=Ze;var xo;const[Vi]=(0,gs.Z)("Form"),{vertical:zs,labelAlign:Ps,labelCol:Ms,labelWrap:ks,colon:ko}=B.useContext(k.q3);if(!dt)return null;const As=ft||Ms||{},ia=Lt||Ps,za=`${ht}-item-label`,Zl=w()(za,ia==="left"&&`${za}-left`,As.className,{[`${za}-wrap`]:!!ks});let Hl=dt;const fs=gn===!0||ko!==!1&&gn!==!1;fs&&!zs&&typeof dt=="string"&&dt.trim()!==""&&(Hl=dt.replace(/[:|:]\s*$/,""));const hl=is(Fi);if(hl){const{icon:Os=B.createElement(ns,null)}=hl,Cs=ni(hl,["icon"]),ba=B.createElement(Gr.Z,Object.assign({},Cs),B.cloneElement(Os,{className:`${ht}-item-tooltip`,title:"",onClick:Yu=>{Yu.preventDefault()},tabIndex:null}));Hl=B.createElement(B.Fragment,null,Hl,ba)}const Xo=zr==="optional",Li=typeof zr=="function";Li?Hl=zr(Hl,{required:!!rr}):Xo&&!rr&&(Hl=B.createElement(B.Fragment,null,Hl,B.createElement("span",{className:`${ht}-item-optional`,title:""},(Vi==null?void 0:Vi.optional)||((xo=Ur.Z.Form)===null||xo===void 0?void 0:xo.optional))));const Yo=w()({[`${ht}-item-required`]:rr,[`${ht}-item-required-mark-optional`]:Xo||Li,[`${ht}-item-no-colon`]:!fs});return B.createElement(yi,Object.assign({},As,{className:Zl}),B.createElement("label",{htmlFor:$e,className:Yo,title:typeof dt=="string"?dt:""},Hl))},Or=y(76278),qo=y(41322),Mo=y(26702),vs=y(22508);const Na={success:Or.Z,warning:Mo.Z,error:qo.Z,validating:vs.Z};function ho(Ze){let{children:ht,errors:dt,warnings:$e,hasFeedback:ft,validateStatus:Lt,prefixCls:gn,meta:rr,noStyle:zr}=Ze;const Fi=`${gn}-item`,{feedbackIcons:xo}=B.useContext(k.q3),Vi=Yi(dt,$e,rr,null,!!ft,Lt),{isFormItemInput:zs,status:Ps,hasFeedback:Ms,feedbackIcon:ks}=B.useContext(k.aM),ko=B.useMemo(()=>{var As;let ia;if(ft){const Zl=ft!==!0&&ft.icons||xo,Hl=Vi&&((As=Zl==null?void 0:Zl({status:Vi,errors:dt,warnings:$e}))===null||As===void 0?void 0:As[Vi]),fs=Vi&&Na[Vi];ia=Hl!==!1&&fs?B.createElement("span",{className:w()(`${Fi}-feedback-icon`,`${Fi}-feedback-icon-${Vi}`)},Hl||B.createElement(fs,null)):null}const za={status:Vi||"",errors:dt,warnings:$e,hasFeedback:!!ft,feedbackIcon:ia,isFormItemInput:!0};return zr&&(za.status=(Vi!=null?Vi:Ps)||"",za.isFormItemInput=zs,za.hasFeedback=!!(ft!=null?ft:Ms),za.feedbackIcon=ft!==void 0?za.feedbackIcon:ks),za},[Vi,ft,zr,zs,Ps]);return B.createElement(k.aM.Provider,{value:ko},ht)}var aa=function(Ze,ht){var dt={};for(var $e in Ze)Object.prototype.hasOwnProperty.call(Ze,$e)&&ht.indexOf($e)<0&&(dt[$e]=Ze[$e]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,$e=Object.getOwnPropertySymbols(Ze);ft<$e.length;ft++)ht.indexOf($e[ft])<0&&Object.prototype.propertyIsEnumerable.call(Ze,$e[ft])&&(dt[$e[ft]]=Ze[$e[ft]]);return dt};function Ka(Ze){const{prefixCls:ht,className:dt,rootClassName:$e,style:ft,help:Lt,errors:gn,warnings:rr,validateStatus:zr,meta:Fi,hasFeedback:xo,hidden:Vi,children:zs,fieldId:Ps,required:Ms,isRequired:ks,onSubItemMetaChange:ko}=Ze,As=aa(Ze,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),ia=`${ht}-item`,{requiredMark:za}=B.useContext(k.q3),Zl=B.useRef(null),Hl=R(gn),fs=R(rr),js=Lt!=null,hl=!!(js||gn.length||rr.length),Xo=!!Zl.current&&(0,Cr.Z)(Zl.current),[Li,Yo]=B.useState(null);(0,Ei.Z)(()=>{if(hl&&Zl.current){const pc=getComputedStyle(Zl.current);Yo(parseInt(pc.marginBottom,10))}},[hl,Xo]);const Os=pc=>{pc||Yo(null)},ba=function(){let pc=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Hu=pc?Hl:Fi.errors,wh=pc?fs:Fi.warnings;return Yi(Hu,wh,Fi,"",!!xo,zr)}(),Yu=w()(ia,dt,$e,{[`${ia}-with-help`]:js||Hl.length||fs.length,[`${ia}-has-feedback`]:ba&&xo,[`${ia}-has-success`]:ba==="success",[`${ia}-has-warning`]:ba==="warning",[`${ia}-has-error`]:ba==="error",[`${ia}-is-validating`]:ba==="validating",[`${ia}-hidden`]:Vi});return B.createElement("div",{className:Yu,style:ft,ref:Zl},B.createElement(Wi,Object.assign({className:`${ia}-row`},(0,vo.Z)(As,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),B.createElement(bn,Object.assign({htmlFor:Ps},Ze,{requiredMark:za,required:Ms!=null?Ms:ks,prefixCls:ht})),B.createElement(mi,Object.assign({},Ze,Fi,{errors:Hl,warnings:fs,prefixCls:ht,status:ba,help:Lt,marginBottom:Li,onErrorVisibleChanged:Os}),B.createElement(k.qI.Provider,{value:ko},B.createElement(ho,{prefixCls:ht,meta:Fi,errors:Fi.errors,warnings:Fi.warnings,hasFeedback:xo,validateStatus:ba},zs)))),!!Li&&B.createElement("div",{className:`${ia}-margin-offset`,style:{marginBottom:-Li}}))}const Si="__SPLIT__",Pi=null,to=B.memo(Ze=>{let{children:ht}=Ze;return ht},(Ze,ht)=>Ze.value===ht.value&&Ze.update===ht.update&&Ze.childProps.length===ht.childProps.length&&Ze.childProps.every((dt,$e)=>dt===ht.childProps[$e]));function So(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ps(Ze){const{name:ht,noStyle:dt,className:$e,dependencies:ft,prefixCls:Lt,shouldUpdate:gn,rules:rr,children:zr,required:Fi,label:xo,messageVariables:Vi,trigger:zs="onChange",validateTrigger:Ps,hidden:Ms,help:ks}=Ze,{getPrefixCls:ko}=B.useContext(wt.E_),{name:As}=B.useContext(k.q3),ia=en(zr),za=typeof ia=="function",Zl=B.useContext(k.qI),{validateTrigger:Hl}=B.useContext(nt.zb),fs=Ps!==void 0?Ps:Hl,js=ht!=null,hl=ko("form",Lt),Xo=(0,Pe.Z)(hl),[Li,Yo]=Ue(hl,Xo),Os=(0,mn.ln)("Form.Item"),Cs=B.useContext(nt.ZM),ba=B.useRef(),[Yu,pc]=an({}),[Hu,wh]=(0,Pn.Z)(()=>So()),lh=Wr=>{const Qr=Cs==null?void 0:Cs.getKey(Wr.name);if(wh(Wr.destroy?So():Wr,!0),dt&&ks!==!1&&Zl){let _o=Wr.name;if(Wr.destroy)_o=ba.current||_o;else if(Qr!==void 0){const[us,es]=Qr;_o=[us].concat((0,v.Z)(es)),ba.current=_o}Zl(Wr,_o)}},fu=(Wr,Qr)=>{pc(_o=>{const us=Object.assign({},_o),Ma=[].concat((0,v.Z)(Wr.name.slice(0,-1)),(0,v.Z)(Qr)).join(Si);return Wr.destroy?delete us[Ma]:us[Ma]=Wr,us})},[ru,Tu]=B.useMemo(()=>{const Wr=(0,v.Z)(Hu.errors),Qr=(0,v.Z)(Hu.warnings);return Object.values(Yu).forEach(_o=>{Wr.push.apply(Wr,(0,v.Z)(_o.errors||[])),Qr.push.apply(Qr,(0,v.Z)(_o.warnings||[]))}),[Wr,Qr]},[Yu,Hu.errors,Hu.warnings]),wi=wr();function er(Wr,Qr,_o){return dt&&!Ms?B.createElement(ho,{prefixCls:hl,hasFeedback:Ze.hasFeedback,validateStatus:Ze.validateStatus,meta:Hu,errors:ru,warnings:Tu,noStyle:!0},Wr):B.createElement(Ka,Object.assign({key:"row"},Ze,{className:w()($e,Xo,Yo),prefixCls:hl,fieldId:Qr,isRequired:_o,errors:ru,warnings:Tu,meta:Hu,onSubItemMetaChange:fu}),Wr)}if(!js&&!za&&!ft)return Li(er(ia));let Un={};return typeof xo=="string"?Un.label=xo:ht&&(Un.label=String(ht)),Vi&&(Un=Object.assign(Object.assign({},Un),Vi)),Li(B.createElement(nt.gN,Object.assign({},Ze,{messageVariables:Un,trigger:zs,validateTrigger:fs,onMetaChange:lh}),(Wr,Qr,_o)=>{const us=Se(ht).length&&Qr?Qr.name:[],es=Xi(us,As),Ma=Fi!==void 0?Fi:!!(rr&&rr.some(Js=>{if(Js&&typeof Js=="object"&&Js.required&&!Js.warningOnly)return!0;if(typeof Js=="function"){const Kl=Js(_o);return Kl&&Kl.required&&!Kl.warningOnly}return!1})),ga=Object.assign({},Wr);let $a=null;if(Array.isArray(ia)&&js)$a=ia;else if(!(za&&(!(gn||ft)||js))){if(!(ft&&!za&&!js))if((0,In.l$)(ia)){const Js=Object.assign(Object.assign({},ia.props),ga);if(Js.id||(Js.id=es),ks||ru.length>0||Tu.length>0||Ze.extra){const Ta=[];(ks||ru.length>0)&&Ta.push(`${es}_help`),Ze.extra&&Ta.push(`${es}_extra`),Js["aria-describedby"]=Ta.join(" ")}ru.length>0&&(Js["aria-invalid"]="true"),Ma&&(Js["aria-required"]="true"),(0,fr.Yr)(ia)&&(Js.ref=wi(us,ia)),new Set([].concat((0,v.Z)(Se(zs)),(0,v.Z)(Se(fs)))).forEach(Ta=>{Js[Ta]=function(){for(var Xa,au,$l,Mu,Bl,Sl=arguments.length,Tn=new Array(Sl),nc=0;nc{var{prefixCls:ht,children:dt}=Ze,$e=Qo(Ze,["prefixCls","children"]);const{getPrefixCls:ft}=B.useContext(wt.E_),Lt=ft("form",ht),gn=B.useMemo(()=>({prefixCls:Lt,status:"error"}),[Lt]);return B.createElement(nt.aV,Object.assign({},$e),(rr,zr,Fi)=>B.createElement(k.Rk.Provider,{value:gn},dt(rr.map(xo=>Object.assign(Object.assign({},xo),{fieldKey:xo.key})),zr,{errors:Fi.errors,warnings:Fi.warnings})))};function Xn(){const{form:Ze}=(0,B.useContext)(k.q3);return Ze}const Rr=Ht;Rr.Item=yo,Rr.List=Ko,Rr.ErrorList=St,Rr.useForm=di,Rr.useFormInstance=Xn,Rr.useWatch=nt.qo,Rr.Provider=k.RV,Rr.create=()=>{};var Xr=Rr},37920:function(yt,Y,y){"use strict";var v=y(67294);Y.Z=(0,v.createContext)(void 0)},25378:function(yt,Y,y){"use strict";var v=y(67294),P=y(8410),w=y(57838),b=y(74443);function B(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const k=(0,v.useRef)({}),R=(0,w.Z)(),C=(0,b.ZP)();return(0,P.Z)(()=>{const g=C.subscribe(A=>{k.current=A,V&&R()});return()=>C.unsubscribe(g)},[]),k.current}Y.Z=B},73360:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return bo}});var v=y(58964),P=y(87462),w=y(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},B=b,V=y(93771),k=function(pn,Dt){return w.createElement(V.Z,(0,P.Z)({},pn,{ref:Dt,icon:B}))},R=w.forwardRef(k),C=y(94184),g=y.n(C),A=y(4942),O=y(71002),K=y(97685),he=y(91),ae=y(15671),fe=y(43144);function xe(){return typeof BigInt=="function"}function ye(xn){return!xn&&xn!==0&&!Number.isNaN(xn)||!String(xn).trim()}function be(xn){var pn=xn.trim(),Dt=pn.startsWith("-");Dt&&(pn=pn.slice(1)),pn=pn.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),pn.startsWith(".")&&(pn="0".concat(pn));var Zt=pn||"0",vn=Zt.split("."),$n=vn[0]||"0",Ar=vn[1]||"0";$n==="0"&&Ar==="0"&&(Dt=!1);var Dr=Dt?"-":"";return{negative:Dt,negativeStr:Dr,trimStr:Zt,integerStr:$n,decimalStr:Ar,fullStr:"".concat(Dr).concat(Zt)}}function Qe(xn){var pn=String(xn);return!Number.isNaN(Number(pn))&&pn.includes("e")}function Ve(xn){var pn=String(xn);if(Qe(xn)){var Dt=Number(pn.slice(pn.indexOf("e-")+2)),Zt=pn.match(/\.(\d+)/);return Zt!=null&&Zt[1]&&(Dt+=Zt[1].length),Dt}return pn.includes(".")&&st(pn)?pn.length-pn.indexOf(".")-1:0}function pt(xn){var pn=String(xn);if(Qe(xn)){if(xn>Number.MAX_SAFE_INTEGER)return String(xe()?BigInt(xn).toString():Number.MAX_SAFE_INTEGER);if(xn0&&arguments[0]!==void 0?arguments[0]:!0;return Dt?this.isInvalidate()?"":be("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),xn}(),De=function(){function xn(pn){if((0,ae.Z)(this,xn),(0,A.Z)(this,"origin",""),(0,A.Z)(this,"number",void 0),(0,A.Z)(this,"empty",void 0),ye(pn)){this.empty=!0;return}this.origin=String(pn),this.number=Number(pn)}return(0,fe.Z)(xn,[{key:"negate",value:function(){return new xn(-this.toNumber())}},{key:"add",value:function(Dt){if(this.isInvalidate())return new xn(Dt);var Zt=Number(Dt);if(Number.isNaN(Zt))return this;var vn=this.number+Zt;if(vn>Number.MAX_SAFE_INTEGER)return new xn(Number.MAX_SAFE_INTEGER);if(vnNumber.MAX_SAFE_INTEGER)return new xn(Number.MAX_SAFE_INTEGER);if(vn0&&arguments[0]!==void 0?arguments[0]:!0;return Dt?this.isInvalidate()?"":pt(this.number):this.origin}}]),xn}();function Te(xn){return xe()?new Ae(xn):new De(xn)}function Me(xn,pn,Dt){var Zt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(xn==="")return"";var vn=be(xn),$n=vn.negativeStr,Ar=vn.integerStr,Dr=vn.decimalStr,dr="".concat(pn).concat(Dr),Yt="".concat($n).concat(Ar);if(Dt>=0){var wn=Number(Dr[Dt]);if(wn>=5&&!Zt){var Qn=Te(xn).add("".concat($n,"0.").concat("0".repeat(Dt)).concat(10-wn));return Me(Qn.toString(),pn,Dt,Zt)}return Dt===0?Yt:"".concat(Yt).concat(pn).concat(Dr.padEnd(Dt,"0").slice(0,Dt))}return dr===".0"?Yt:"".concat(Yt).concat(dr)}var Ue=Te,Pe=y(67656),Xe=y(8410),Be=y(42550),Xt=y(80334);function St(xn,pn){var Dt=(0,w.useRef)(null);function Zt(){try{var $n=xn.selectionStart,Ar=xn.selectionEnd,Dr=xn.value,dr=Dr.substring(0,$n),Yt=Dr.substring(Ar);Dt.current={start:$n,end:Ar,value:Dr,beforeTxt:dr,afterTxt:Yt}}catch(wn){}}function vn(){if(xn&&Dt.current&&pn)try{var $n=xn.value,Ar=Dt.current,Dr=Ar.beforeTxt,dr=Ar.afterTxt,Yt=Ar.start,wn=$n.length;if($n.endsWith(dr))wn=$n.length-Dt.current.afterTxt.length;else if($n.startsWith(Dr))wn=Dr.length;else{var Qn=Dr[Yt-1],Mr=$n.indexOf(Qn,Yt-1);Mr!==-1&&(wn=Mr+1)}xn.setSelectionRange(wn,wn)}catch(Wi){(0,Xt.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Wi.message))}}return[Zt,vn]}var nt=y(31131),wt=function(){var pn=(0,w.useState)(!1),Dt=(0,K.Z)(pn,2),Zt=Dt[0],vn=Dt[1];return(0,Xe.Z)(function(){vn((0,nt.Z)())},[]),Zt},lt=wt,Kt=y(75164),Mt=200,hn=600;function un(xn){var pn=xn.prefixCls,Dt=xn.upNode,Zt=xn.downNode,vn=xn.upDisabled,$n=xn.downDisabled,Ar=xn.onStep,Dr=w.useRef(),dr=w.useRef([]),Yt=w.useRef();Yt.current=Ar;var wn=function(){clearTimeout(Dr.current)},Qn=function(Hr,ci){Hr.preventDefault(),wn(),Yt.current(ci);function gi(){Yt.current(ci),Dr.current=setTimeout(gi,Mt)}Dr.current=setTimeout(gi,hn)};w.useEffect(function(){return function(){wn(),dr.current.forEach(function(yi){return Kt.Z.cancel(yi)})}},[]);var Mr=lt();if(Mr)return null;var Wi="".concat(pn,"-handler"),Dn=g()(Wi,"".concat(Wi,"-up"),(0,A.Z)({},"".concat(Wi,"-up-disabled"),vn)),Kn=g()(Wi,"".concat(Wi,"-down"),(0,A.Z)({},"".concat(Wi,"-down-disabled"),$n)),nr=function(){return dr.current.push((0,Kt.Z)(wn))},qr={unselectable:"on",role:"button",onMouseUp:nr,onMouseLeave:nr};return w.createElement("div",{className:"".concat(Wi,"-wrap")},w.createElement("span",(0,P.Z)({},qr,{onMouseDown:function(Hr){Qn(Hr,!0)},"aria-label":"Increase Value","aria-disabled":vn,className:Dn}),Dt||w.createElement("span",{unselectable:"on",className:"".concat(pn,"-handler-up-inner")})),w.createElement("span",(0,P.Z)({},qr,{onMouseDown:function(Hr){Qn(Hr,!1)},"aria-label":"Decrease Value","aria-disabled":$n,className:Kn}),Zt||w.createElement("span",{unselectable:"on",className:"".concat(pn,"-handler-down-inner")})))}function Sr(xn){var pn=typeof xn=="number"?pt(xn):be(xn).fullStr,Dt=pn.includes(".");return Dt?be(pn.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:xn+"0"}var ii=y(87887),Ii=function(){var xn=(0,w.useRef)(0),pn=function(){Kt.Z.cancel(xn.current)};return(0,w.useEffect)(function(){return pn},[]),function(Dt){pn(),xn.current=(0,Kt.Z)(function(){Dt()})}},Ni=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],eo=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],ti=function(pn,Dt){return pn||Dt.isEmpty()?Dt.toString():Dt.toNumber()},Is=function(pn){var Dt=Ue(pn);return Dt.isInvalidate()?null:Dt},Ns=w.forwardRef(function(xn,pn){var Dt,Zt=xn.prefixCls,vn=Zt===void 0?"rc-input-number":Zt,$n=xn.className,Ar=xn.style,Dr=xn.min,dr=xn.max,Yt=xn.step,wn=Yt===void 0?1:Yt,Qn=xn.defaultValue,Mr=xn.value,Wi=xn.disabled,Dn=xn.readOnly,Kn=xn.upHandler,nr=xn.downHandler,qr=xn.keyboard,yi=xn.controls,Hr=yi===void 0?!0:yi,ci=xn.classNames,gi=xn.stringMode,mi=xn.parser,Bi=xn.formatter,Nr=xn.precision,Kr=xn.decimalSeparator,Qi=xn.onChange,ns=xn.onInput,Ur=xn.onPressEnter,gs=xn.onStep,Gr=xn.changeOnBlur,ni=Gr===void 0?!0:Gr,is=(0,he.Z)(xn,Ni),Jr="".concat(vn,"-input"),bn=w.useRef(null),Or=w.useState(!1),qo=(0,K.Z)(Or,2),Mo=qo[0],vs=qo[1],Na=w.useRef(!1),ho=w.useRef(!1),aa=w.useRef(!1),Ka=w.useState(function(){return Ue(Mr!=null?Mr:Qn)}),Si=(0,K.Z)(Ka,2),Pi=Si[0],to=Si[1];function So(fs){Mr===void 0&&to(fs)}var ps=w.useCallback(function(fs,js){if(!js)return Nr>=0?Nr:Math.max(Ve(fs),Ve(wn))},[Nr,wn]),Wn=w.useCallback(function(fs){var js=String(fs);if(mi)return mi(js);var hl=js;return Kr&&(hl=hl.replace(Kr,".")),hl.replace(/[^\w.-]+/g,"")},[mi,Kr]),yo=w.useRef(""),Qo=w.useCallback(function(fs,js){if(Bi)return Bi(fs,{userTyping:js,input:String(yo.current)});var hl=typeof fs=="number"?pt(fs):fs;if(!js){var Xo=ps(hl,js);if(st(hl)&&(Kr||Xo>=0)){var Li=Kr||".";hl=Me(hl,Li,Xo)}}return hl},[Bi,ps,Kr]),ss=w.useState(function(){var fs=Qn!=null?Qn:Mr;return Pi.isInvalidate()&&["string","number"].includes((0,O.Z)(fs))?Number.isNaN(fs)?"":fs:Qo(Pi.toString(),!1)}),Ko=(0,K.Z)(ss,2),Xn=Ko[0],Rr=Ko[1];yo.current=Xn;function Xr(fs,js){Rr(Qo(fs.isInvalidate()?fs.toString(!1):fs.toString(!js),js))}var Ze=w.useMemo(function(){return Is(dr)},[dr,Nr]),ht=w.useMemo(function(){return Is(Dr)},[Dr,Nr]),dt=w.useMemo(function(){return!Ze||!Pi||Pi.isInvalidate()?!1:Ze.lessEquals(Pi)},[Ze,Pi]),$e=w.useMemo(function(){return!ht||!Pi||Pi.isInvalidate()?!1:Pi.lessEquals(ht)},[ht,Pi]),ft=St(bn.current,Mo),Lt=(0,K.Z)(ft,2),gn=Lt[0],rr=Lt[1],zr=function(js){return Ze&&!js.lessEquals(Ze)?Ze:ht&&!ht.lessEquals(js)?ht:null},Fi=function(js){return!zr(js)},xo=function(js,hl){var Xo=js,Li=Fi(Xo)||Xo.isEmpty();if(!Xo.isEmpty()&&!hl&&(Xo=zr(Xo)||Xo,Li=!0),!Dn&&!Wi&&Li){var Yo=Xo.toString(),Os=ps(Yo,hl);return Os>=0&&(Xo=Ue(Me(Yo,".",Os)),Fi(Xo)||(Xo=Ue(Me(Yo,".",Os,!0)))),Xo.equals(Pi)||(So(Xo),Qi==null||Qi(Xo.isEmpty()?null:ti(gi,Xo)),Mr===void 0&&Xr(Xo,hl)),Xo}return Pi},Vi=Ii(),zs=function fs(js){if(gn(),yo.current=js,Rr(js),!ho.current){var hl=Wn(js),Xo=Ue(hl);Xo.isNaN()||xo(Xo,!0)}ns==null||ns(js),Vi(function(){var Li=js;mi||(Li=js.replace(/。/g,".")),Li!==js&&fs(Li)})},Ps=function(){ho.current=!0},Ms=function(){ho.current=!1,zs(bn.current.value)},ks=function(js){zs(js.target.value)},ko=function(js){var hl;if(!(js&&dt||!js&&$e)){Na.current=!1;var Xo=Ue(aa.current?Sr(wn):wn);js||(Xo=Xo.negate());var Li=(Pi||Ue(0)).add(Xo.toString()),Yo=xo(Li,!1);gs==null||gs(ti(gi,Yo),{offset:aa.current?Sr(wn):wn,type:js?"up":"down"}),(hl=bn.current)===null||hl===void 0||hl.focus()}},As=function(js){var hl=Ue(Wn(Xn)),Xo=hl;hl.isNaN()?Xo=xo(Pi,js):Xo=xo(hl,js),Mr!==void 0?Xr(Pi,!1):Xo.isNaN()||Xr(Xo,!1)},ia=function(){Na.current=!0},za=function(js){var hl=js.key,Xo=js.shiftKey;Na.current=!0,aa.current=Xo,hl==="Enter"&&(ho.current||(Na.current=!1),As(!1),Ur==null||Ur(js)),qr!==!1&&!ho.current&&["Up","ArrowUp","Down","ArrowDown"].includes(hl)&&(ko(hl==="Up"||hl==="ArrowUp"),js.preventDefault())},Zl=function(){Na.current=!1,aa.current=!1},Hl=function(){ni&&As(!1),vs(!1),Na.current=!1};return(0,Xe.o)(function(){Pi.isInvalidate()||Xr(Pi,!1)},[Nr,Bi]),(0,Xe.o)(function(){var fs=Ue(Mr);to(fs);var js=Ue(Wn(Xn));(!fs.equals(js)||!Na.current||Bi)&&Xr(fs,Na.current)},[Mr]),(0,Xe.o)(function(){Bi&&rr()},[Xn]),w.createElement("div",{className:g()(vn,ci==null?void 0:ci.input,$n,(Dt={},(0,A.Z)(Dt,"".concat(vn,"-focused"),Mo),(0,A.Z)(Dt,"".concat(vn,"-disabled"),Wi),(0,A.Z)(Dt,"".concat(vn,"-readonly"),Dn),(0,A.Z)(Dt,"".concat(vn,"-not-a-number"),Pi.isNaN()),(0,A.Z)(Dt,"".concat(vn,"-out-of-range"),!Pi.isInvalidate()&&!Fi(Pi)),Dt)),style:Ar,onFocus:function(){vs(!0)},onBlur:Hl,onKeyDown:za,onKeyUp:Zl,onCompositionStart:Ps,onCompositionEnd:Ms,onBeforeInput:ia},Hr&&w.createElement(un,{prefixCls:vn,upNode:Kn,downNode:nr,upDisabled:dt,downDisabled:$e,onStep:ko}),w.createElement("div",{className:"".concat(Jr,"-wrap")},w.createElement("input",(0,P.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Dr,"aria-valuemax":dr,"aria-valuenow":Pi.isInvalidate()?null:Pi.toString(),step:wn},is,{ref:(0,Be.sQ)(bn,pn),className:Jr,value:Xn,onChange:ks,disabled:Wi,readOnly:Dn}))))}),Se=w.forwardRef(function(xn,pn){var Dt=xn.disabled,Zt=xn.style,vn=xn.prefixCls,$n=xn.value,Ar=xn.prefix,Dr=xn.suffix,dr=xn.addonBefore,Yt=xn.addonAfter,wn=xn.classes,Qn=xn.className,Mr=xn.classNames,Wi=(0,he.Z)(xn,eo),Dn=w.useRef(null),Kn=function(qr){Dn.current&&(0,ii.nH)(Dn.current,qr)};return w.createElement(Pe.Q,{inputElement:w.createElement(Ns,(0,P.Z)({prefixCls:vn,disabled:Dt,classNames:Mr,ref:(0,Be.sQ)(Dn,pn)},Wi)),className:Qn,triggerFocus:Kn,prefixCls:vn,value:$n,disabled:Dt,style:Zt,prefix:Ar,suffix:Dr,addonAfter:Yt,addonBefore:dr,classes:wn,classNames:Mr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Se.displayName="InputNumber";var Xi=Se,Yi=Xi,fo=y(9708),di=y(53124),Fs=y(28459),Ln=y(98866),it=y(98675),Ot=y(65223),Ht=y(4173),Pn=y(47673),fr=y(14747),In=y(80110),mn=y(91945),Ut=y(45503),en=y(43109);const Cn=(xn,pn)=>{let{componentCls:Dt,borderRadiusSM:Zt,borderRadiusLG:vn}=xn;const $n=pn==="lg"?vn:Zt;return{[`&-${pn}`]:{[`${Dt}-handler-wrap`]:{borderStartEndRadius:$n,borderEndEndRadius:$n},[`${Dt}-handler-up`]:{borderStartEndRadius:$n},[`${Dt}-handler-down`]:{borderEndEndRadius:$n}}}},lr=xn=>{const{componentCls:pn,lineWidth:Dt,lineType:Zt,colorBorder:vn,borderRadius:$n,fontSizeLG:Ar,controlHeightLG:Dr,controlHeightSM:dr,colorError:Yt,paddingInlineSM:wn,colorTextDescription:Qn,motionDurationMid:Mr,handleHoverColor:Wi,paddingInline:Dn,paddingBlock:Kn,handleBg:nr,handleActiveBg:qr,colorTextDisabled:yi,borderRadiusSM:Hr,borderRadiusLG:ci,controlWidth:gi,handleOpacity:mi,handleBorderColor:Bi,calc:Nr}=xn;return[{[pn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,fr.Wf)(xn)),(0,Pn.ik)(xn)),(0,Pn.bi)(xn,pn)),{display:"inline-block",width:gi,margin:0,padding:0,border:`${(0,en.bf)(Dt)} ${Zt} ${vn}`,borderRadius:$n,"&-rtl":{direction:"rtl",[`${pn}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Ar,borderRadius:ci,[`input${pn}-input`]:{height:Nr(Dr).sub(Nr(Dt).mul(2)).equal()}},"&-sm":{padding:0,borderRadius:Hr,[`input${pn}-input`]:{height:Nr(dr).sub(Nr(Dt).mul(2)).equal(),padding:`0 ${(0,en.bf)(wn)}`}},"&-out-of-range":{[`${pn}-input-wrap`]:{input:{color:Yt}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,fr.Wf)(xn)),(0,Pn.s7)(xn)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${pn}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${pn}-group-addon`]:{borderRadius:ci,fontSize:xn.fontSizeLG}},"&-sm":{[`${pn}-group-addon`]:{borderRadius:Hr}},[`${pn}-wrapper-disabled > ${pn}-group-addon`]:Object.assign({},(0,Pn.Xy)(xn)),[`&:not(${pn}-compact-first-item):not(${pn}-compact-last-item)${pn}-compact-item`]:{[`${pn}, ${pn}-group-addon`]:{borderRadius:0}},[`&:not(${pn}-compact-last-item)${pn}-compact-first-item`]:{[`${pn}, ${pn}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${pn}-compact-first-item)${pn}-compact-last-item`]:{[`${pn}, ${pn}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}),[`&-disabled ${pn}-input`]:{cursor:"not-allowed"},[pn]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,fr.Wf)(xn)),{width:"100%",padding:`${(0,en.bf)(Kn)} ${(0,en.bf)(Dn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:$n,outline:0,transition:`all ${Mr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Pn.nz)(xn.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[pn]:Object.assign(Object.assign(Object.assign({[`&:hover ${pn}-handler-wrap, &-focused ${pn}-handler-wrap`]:{opacity:1},[`${pn}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:xn.handleWidth,height:"100%",background:nr,borderStartStartRadius:0,borderStartEndRadius:$n,borderEndEndRadius:$n,borderEndStartRadius:0,opacity:mi,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Mr} linear ${Mr}`,[`${pn}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + ${pn}-handler-up-inner, + ${pn}-handler-down-inner + `]:{marginInlineEnd:0,fontSize:xn.handleFontSize}}},[`${pn}-handler`]:{height:"50%",overflow:"hidden",color:Qn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,en.bf)(Dt)} ${Zt} ${Bi}`,transition:`all ${Mr} linear`,"&:active":{background:qr},"&:hover":{height:"60%",[` + ${pn}-handler-up-inner, + ${pn}-handler-down-inner + `]:{color:Wi}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,fr.Ro)()),{color:Qn,transition:`all ${Mr} linear`,userSelect:"none"})},[`${pn}-handler-up`]:{borderStartEndRadius:$n},[`${pn}-handler-down`]:{borderBlockStart:`${(0,en.bf)(Dt)} ${Zt} ${Bi}`,borderEndEndRadius:$n}},Cn(xn,"lg")),Cn(xn,"sm")),{"&-disabled, &-readonly":{[`${pn}-handler-wrap`]:{display:"none"},[`${pn}-input`]:{color:"inherit"}},[` + ${pn}-handler-up-disabled, + ${pn}-handler-down-disabled `]:{cursor:"not-allowed"},[` - ${fn}-handler-up-disabled:hover &-handler-up-inner, - ${fn}-handler-down-disabled:hover &-handler-down-inner - `]:{color:vi}})},{[`${fn}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${fn}-handler-down`]:{borderBlockStartWidth:0}}}]},vr=xn=>{const{componentCls:fn,paddingBlock:It,paddingInline:Zt,inputAffixPadding:gn,controlWidth:$n,borderRadiusLG:Ar,borderRadiusSM:Dr}=xn;return{[`${fn}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,Dn.ik)(xn)),(0,Dn.bi)(xn,`${fn}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:$n,padding:0,paddingInlineStart:Zt,"&-lg":{borderRadius:Ar},"&-sm":{borderRadius:Dr},[`&:not(${fn}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${fn}-disabled`]:{background:"transparent"},[`> div${fn}`]:{width:"100%",border:"none",outline:"none",[`&${fn}-focused`]:{boxShadow:"none !important"}},[`input${fn}-input`]:{padding:`${(0,Jt.bf)(It)} 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${fn}-handler-wrap`]:{zIndex:2},[fn]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:gn},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Zt,marginInlineStart:gn}}})}},pn=xn=>Object.assign(Object.assign({},(0,Dn.TM)(xn)),{controlWidth:90,handleWidth:xn.controlHeightSM-xn.lineWidth*2,handleFontSize:xn.fontSize/2,handleVisible:"auto",handleActiveBg:xn.colorFillAlter,handleBg:xn.colorBgContainer,handleHoverColor:xn.colorPrimary,handleBorderColor:xn.colorBorder,handleOpacity:0}),wr=xn=>Object.assign(Object.assign({},xn),{handleOpacity:xn.handleVisible===!0?1:0});var Sr=(0,bn.I$)("InputNumber",xn=>{const fn=(0,zt.TS)(xn,(0,Dn.e5)(xn));return[fr(fn),vr(fn),(0,kn.c)(fn)]},pn,{format:wr,unitless:{handleOpacity:!0}}),Ai=_(20170),mo=function(xn,fn){var It={};for(var Zt in xn)Object.prototype.hasOwnProperty.call(xn,Zt)&&fn.indexOf(Zt)<0&&(It[Zt]=xn[Zt]);if(xn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gn=0,Zt=Object.getOwnPropertySymbols(xn);gn{const{getPrefixCls:It,direction:Zt}=w.useContext(fi.E_),gn=w.useRef(null);w.useImperativeHandle(fn,()=>gn.current);const{className:$n,rootClassName:Ar,size:Dr,disabled:dr,prefixCls:Xt,addonBefore:Cn,addonAfter:er,prefix:Mr,bordered:ji=!0,readOnly:An,status:Xn,controls:nr}=xn,qr=mo(xn,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),vi=It("input-number",Xt),Hr=(0,Ai.Z)(vi),[di,gi]=Sr(vi,Hr),{compactSize:mi,compactItemClassnames:Bi}=(0,$t.ri)(vi,Zt);let zr=w.createElement(M,{className:`${vi}-handler-up-inner`}),Xr=w.createElement(v.Z,{className:`${vi}-handler-down-inner`});const Qi=typeof nr=="boolean"?nr:void 0;typeof nr=="object"&&(zr=typeof nr.upIcon=="undefined"?zr:w.createElement("span",{className:`${vi}-handler-up-inner`},nr.upIcon),Xr=typeof nr.downIcon=="undefined"?Xr:w.createElement("span",{className:`${vi}-handler-down-inner`},nr.downIcon));const{hasFeedback:rs,status:Ur,isFormItemInput:gs,feedbackIcon:Kr}=w.useContext(Dt.aM),ri=(0,co.F)(Ur,Xn),is=(0,et.Z)(Ba=>{var uo;return(uo=Dr!=null?Dr:mi)!==null&&uo!==void 0?uo:Ba}),Jr=w.useContext(In.Z),_n=dr!=null?dr:Jr,Br=g()({[`${vi}-lg`]:is==="large",[`${vi}-sm`]:is==="small",[`${vi}-rtl`]:Zt==="rtl",[`${vi}-borderless`]:!ji,[`${vi}-in-form-item`]:gs},(0,co.Z)(vi,ri),gi),es=`${vi}-group`,ko=rs&&w.createElement(w.Fragment,null,Kr),vs=w.createElement(qi,Object.assign({ref:gn,disabled:_n,className:g()(Hr,$n,Ar,Bi),upHandler:zr,downHandler:Xr,prefixCls:vi,readOnly:An,controls:Qi,prefix:Mr,suffix:ko,addonAfter:er&&w.createElement($t.BR,null,w.createElement(Dt.Ux,{override:!0,status:!0},er)),addonBefore:Cn&&w.createElement($t.BR,null,w.createElement(Dt.Ux,{override:!0,status:!0},Cn)),classNames:{input:Br},classes:{affixWrapper:g()((0,co.Z)(`${vi}-affix-wrapper`,ri,rs),{[`${vi}-affix-wrapper-sm`]:is==="small",[`${vi}-affix-wrapper-lg`]:is==="large",[`${vi}-affix-wrapper-rtl`]:Zt==="rtl",[`${vi}-affix-wrapper-borderless`]:!ji},gi),wrapper:g()({[`${es}-rtl`]:Zt==="rtl",[`${vi}-wrapper-disabled`]:_n},gi),group:g()({[`${vi}-group-wrapper-sm`]:is==="small",[`${vi}-group-wrapper-lg`]:is==="large",[`${vi}-group-wrapper-rtl`]:Zt==="rtl"},(0,co.Z)(`${vi}-group-wrapper`,ri,rs),gi)}},qr));return di(vs)}),to=Fr,Ji=xn=>w.createElement(Ms.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},w.createElement(Fr,Object.assign({},xn)));to._InternalPanelDoNotUseOrYouWillBeFired=Ji;var bo=to},39747:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return ot},n:function(){return _e}});var v=_(77617),R=_(48796),w=_(12124),b=_.n(w),B=_(13245),V=_(88831),k=_(11201),M=_(51059),C=_(40053),g=_(1220),A=_(34735),O=_(60161),K=_(37384),ce=_(7440);function de(He){return!!(He.prefix||He.suffix||He.allowClear)}var ve=_(20170),Ee=function(He,vt){var dt={};for(var Pe in He)Object.prototype.hasOwnProperty.call(He,Pe)&&vt.indexOf(Pe)<0&&(dt[Pe]=He[Pe]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Pe=Object.getOwnPropertySymbols(He);De{var dt;const{prefixCls:Pe,bordered:De=!0,status:Ae,size:Re,disabled:$e,onBlur:Ie,onFocus:Xe,suffix:ze,allowClear:Kt,addonAfter:St,addonBefore:nt,className:Ct,style:lt,styles:Gt,rootClassName:Rt,onChange:an,classNames:cn}=He,Cr=Ee(He,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:ii,direction:Pi,input:Ni}=v.useContext(M.E_),Yi=ii("input",Pe),ti=(0,v.useRef)(null),Ts=(0,ve.Z)(Yi),[Bs,Ce]=(0,ce.ZP)(Yi,Ts),{compactSize:Gi,compactItemClassnames:qi}=(0,O.ri)(Yi,Pi),co=(0,g.Z)(vr=>{var pn;return(pn=Re!=null?Re:Gi)!==null&&pn!==void 0?pn:vr}),fi=v.useContext(C.Z),Ms=$e!=null?$e:fi,{status:In,hasFeedback:et,feedbackIcon:Dt}=(0,v.useContext)(A.aM),$t=(0,k.F)(In,Ae),Dn=de(He)||!!et,gr=(0,v.useRef)(Dn),kn=(0,K.Z)(ti,!0),bn=vr=>{kn(),Ie==null||Ie(vr)},zt=vr=>{kn(),Xe==null||Xe(vr)},Jt=vr=>{kn(),an==null||an(vr)},yn=(et||ze)&&v.createElement(v.Fragment,null,ze,et&&Dt);let fr;return typeof Kt=="object"&&(Kt!=null&&Kt.clearIcon)?fr=Kt:Kt&&(fr={clearIcon:v.createElement(R.Z,null)}),Bs(v.createElement(B.Z,Object.assign({ref:(0,V.sQ)(vt,ti),prefixCls:Yi,autoComplete:Ni==null?void 0:Ni.autoComplete},Cr,{disabled:Ms,onBlur:bn,onFocus:zt,style:Object.assign(Object.assign({},Ni==null?void 0:Ni.style),lt),styles:Object.assign(Object.assign({},Ni==null?void 0:Ni.styles),Gt),suffix:yn,allowClear:fr,className:b()(Ct,Rt,Ts,Ce,qi,Ni==null?void 0:Ni.className),onChange:Jt,addonAfter:St&&v.createElement(O.BR,null,v.createElement(A.Ux,{override:!0,status:!0},St)),addonBefore:nt&&v.createElement(O.BR,null,v.createElement(A.Ux,{override:!0,status:!0},nt)),classNames:Object.assign(Object.assign(Object.assign({},cn),Ni==null?void 0:Ni.classNames),{input:b()({[`${Yi}-sm`]:co==="small",[`${Yi}-lg`]:co==="large",[`${Yi}-rtl`]:Pi==="rtl",[`${Yi}-borderless`]:!De},!Dn&&(0,k.Z)(Yi,$t),cn==null?void 0:cn.input,(dt=Ni==null?void 0:Ni.classNames)===null||dt===void 0?void 0:dt.input,Ce)}),classes:{affixWrapper:b()({[`${Yi}-affix-wrapper-sm`]:co==="small",[`${Yi}-affix-wrapper-lg`]:co==="large",[`${Yi}-affix-wrapper-rtl`]:Pi==="rtl",[`${Yi}-affix-wrapper-borderless`]:!De},(0,k.Z)(`${Yi}-affix-wrapper`,$t,et),Ce),wrapper:b()({[`${Yi}-group-rtl`]:Pi==="rtl"},Ce),group:b()({[`${Yi}-group-wrapper-sm`]:co==="small",[`${Yi}-group-wrapper-lg`]:co==="large",[`${Yi}-group-wrapper-rtl`]:Pi==="rtl",[`${Yi}-group-wrapper-disabled`]:Ms},(0,k.Z)(`${Yi}-group-wrapper`,$t,et),Ce)}})))})},9747:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return Yi}});var v=_(77617),R=_(48796),w=_(12124),b=_.n(w),B=_(61796),V=_(36439),k=_(35005),M=_(40877),C=_(61860),g=_(33649),A=_(13245),O=_(63199),K=_(12240),ce=_(84381),de=_(96522),ve=_(28647),Ee=_(70658),_e=_(90571),we=` + ${pn}-handler-up-disabled:hover &-handler-up-inner, + ${pn}-handler-down-disabled:hover &-handler-down-inner + `]:{color:yi}})},{[`${pn}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${pn}-handler-down`]:{borderBlockStartWidth:0}}}]},pr=xn=>{const{componentCls:pn,paddingBlock:Dt,paddingInline:Zt,inputAffixPadding:vn,controlWidth:$n,borderRadiusLG:Ar,borderRadiusSM:Dr}=xn;return{[`${pn}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,Pn.ik)(xn)),(0,Pn.bi)(xn,`${pn}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:$n,padding:0,paddingInlineStart:Zt,"&-lg":{borderRadius:Ar},"&-sm":{borderRadius:Dr},[`&:not(${pn}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${pn}-disabled`]:{background:"transparent"},[`> div${pn}`]:{width:"100%",border:"none",outline:"none",[`&${pn}-focused`]:{boxShadow:"none !important"}},[`input${pn}-input`]:{padding:`${(0,en.bf)(Dt)} 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${pn}-handler-wrap`]:{zIndex:2},[pn]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:vn},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Zt,marginInlineStart:vn}}})}},an=xn=>Object.assign(Object.assign({},(0,Pn.TM)(xn)),{controlWidth:90,handleWidth:xn.controlHeightSM-xn.lineWidth*2,handleFontSize:xn.fontSize/2,handleVisible:"auto",handleActiveBg:xn.colorFillAlter,handleBg:xn.colorBgContainer,handleHoverColor:xn.colorPrimary,handleBorderColor:xn.colorBorder,handleOpacity:0}),wr=xn=>Object.assign(Object.assign({},xn),{handleOpacity:xn.handleVisible===!0?1:0});var Cr=(0,mn.I$)("InputNumber",xn=>{const pn=(0,Ut.TS)(xn,(0,Pn.e5)(xn));return[lr(pn),pr(pn),(0,In.c)(pn)]},an,{format:wr,unitless:{handleOpacity:!0}}),Ei=y(35792),vo=function(xn,pn){var Dt={};for(var Zt in xn)Object.prototype.hasOwnProperty.call(xn,Zt)&&pn.indexOf(Zt)<0&&(Dt[Zt]=xn[Zt]);if(xn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vn=0,Zt=Object.getOwnPropertySymbols(xn);vn{const{getPrefixCls:Dt,direction:Zt}=w.useContext(di.E_),vn=w.useRef(null);w.useImperativeHandle(pn,()=>vn.current);const{className:$n,rootClassName:Ar,size:Dr,disabled:dr,prefixCls:Yt,addonBefore:wn,addonAfter:Qn,prefix:Mr,bordered:Wi=!0,readOnly:Dn,status:Kn,controls:nr}=xn,qr=vo(xn,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),yi=Dt("input-number",Yt),Hr=(0,Ei.Z)(yi),[ci,gi]=Cr(yi,Hr),{compactSize:mi,compactItemClassnames:Bi}=(0,Ht.ri)(yi,Zt);let Nr=w.createElement(R,{className:`${yi}-handler-up-inner`}),Kr=w.createElement(v.Z,{className:`${yi}-handler-down-inner`});const Qi=typeof nr=="boolean"?nr:void 0;typeof nr=="object"&&(Nr=typeof nr.upIcon=="undefined"?Nr:w.createElement("span",{className:`${yi}-handler-up-inner`},nr.upIcon),Kr=typeof nr.downIcon=="undefined"?Kr:w.createElement("span",{className:`${yi}-handler-down-inner`},nr.downIcon));const{hasFeedback:ns,status:Ur,isFormItemInput:gs,feedbackIcon:Gr}=w.useContext(Ot.aM),ni=(0,fo.F)(Ur,Kn),is=(0,it.Z)(Na=>{var ho;return(ho=Dr!=null?Dr:mi)!==null&&ho!==void 0?ho:Na}),Jr=w.useContext(Ln.Z),bn=dr!=null?dr:Jr,Or=g()({[`${yi}-lg`]:is==="large",[`${yi}-sm`]:is==="small",[`${yi}-rtl`]:Zt==="rtl",[`${yi}-borderless`]:!Wi,[`${yi}-in-form-item`]:gs},(0,fo.Z)(yi,ni),gi),qo=`${yi}-group`,Mo=ns&&w.createElement(w.Fragment,null,Gr),vs=w.createElement(Yi,Object.assign({ref:vn,disabled:bn,className:g()(Hr,$n,Ar,Bi),upHandler:Nr,downHandler:Kr,prefixCls:yi,readOnly:Dn,controls:Qi,prefix:Mr,suffix:Mo,addonAfter:Qn&&w.createElement(Ht.BR,null,w.createElement(Ot.Ux,{override:!0,status:!0},Qn)),addonBefore:wn&&w.createElement(Ht.BR,null,w.createElement(Ot.Ux,{override:!0,status:!0},wn)),classNames:{input:Or},classes:{affixWrapper:g()((0,fo.Z)(`${yi}-affix-wrapper`,ni,ns),{[`${yi}-affix-wrapper-sm`]:is==="small",[`${yi}-affix-wrapper-lg`]:is==="large",[`${yi}-affix-wrapper-rtl`]:Zt==="rtl",[`${yi}-affix-wrapper-borderless`]:!Wi},gi),wrapper:g()({[`${qo}-rtl`]:Zt==="rtl",[`${yi}-wrapper-disabled`]:bn},gi),group:g()({[`${yi}-group-wrapper-sm`]:is==="small",[`${yi}-group-wrapper-lg`]:is==="large",[`${yi}-group-wrapper-rtl`]:Zt==="rtl"},(0,fo.Z)(`${yi}-group-wrapper`,ni,ns),gi)}},qr));return ci(vs)}),ro=kr,qi=xn=>w.createElement(Fs.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},w.createElement(kr,Object.assign({},xn)));ro._InternalPanelDoNotUseOrYouWillBeFired=qi;var bo=ro},82586:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return Qe},n:function(){return ye}});var v=y(67294),P=y(41322),w=y(94184),b=y.n(w),B=y(67656),V=y(42550),k=y(9708),R=y(53124),C=y(98866),g=y(98675),A=y(65223),O=y(4173),K=y(72922),he=y(47673);function ae(Ve){return!!(Ve.prefix||Ve.suffix||Ve.allowClear)}var fe=y(35792),xe=function(Ve,pt){var st={};for(var Ae in Ve)Object.prototype.hasOwnProperty.call(Ve,Ae)&&pt.indexOf(Ae)<0&&(st[Ae]=Ve[Ae]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Ae=Object.getOwnPropertySymbols(Ve);De{var st;const{prefixCls:Ae,bordered:De=!0,status:Te,size:Me,disabled:Ue,onBlur:Pe,onFocus:Xe,suffix:Be,allowClear:Xt,addonAfter:St,addonBefore:nt,className:wt,style:lt,styles:Kt,rootClassName:Mt,onChange:hn,classNames:un}=Ve,Sr=xe(Ve,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:ii,direction:Ii,input:Ni}=v.useContext(R.E_),eo=ii("input",Ae),ti=(0,v.useRef)(null),Is=(0,fe.Z)(eo),[Ns,Se]=(0,he.ZP)(eo,Is),{compactSize:Xi,compactItemClassnames:Yi}=(0,O.ri)(eo,Ii),fo=(0,g.Z)(pr=>{var an;return(an=Me!=null?Me:Xi)!==null&&an!==void 0?an:pr}),di=v.useContext(C.Z),Fs=Ue!=null?Ue:di,{status:Ln,hasFeedback:it,feedbackIcon:Ot}=(0,v.useContext)(A.aM),Ht=(0,k.F)(Ln,Te),Pn=ae(Ve)||!!it,fr=(0,v.useRef)(Pn),In=(0,K.Z)(ti,!0),mn=pr=>{In(),Pe==null||Pe(pr)},Ut=pr=>{In(),Xe==null||Xe(pr)},en=pr=>{In(),hn==null||hn(pr)},Cn=(it||Be)&&v.createElement(v.Fragment,null,Be,it&&Ot);let lr;return typeof Xt=="object"&&(Xt!=null&&Xt.clearIcon)?lr=Xt:Xt&&(lr={clearIcon:v.createElement(P.Z,null)}),Ns(v.createElement(B.Z,Object.assign({ref:(0,V.sQ)(pt,ti),prefixCls:eo,autoComplete:Ni==null?void 0:Ni.autoComplete},Sr,{disabled:Fs,onBlur:mn,onFocus:Ut,style:Object.assign(Object.assign({},Ni==null?void 0:Ni.style),lt),styles:Object.assign(Object.assign({},Ni==null?void 0:Ni.styles),Kt),suffix:Cn,allowClear:lr,className:b()(wt,Mt,Is,Se,Yi,Ni==null?void 0:Ni.className),onChange:en,addonAfter:St&&v.createElement(O.BR,null,v.createElement(A.Ux,{override:!0,status:!0},St)),addonBefore:nt&&v.createElement(O.BR,null,v.createElement(A.Ux,{override:!0,status:!0},nt)),classNames:Object.assign(Object.assign(Object.assign({},un),Ni==null?void 0:Ni.classNames),{input:b()({[`${eo}-sm`]:fo==="small",[`${eo}-lg`]:fo==="large",[`${eo}-rtl`]:Ii==="rtl",[`${eo}-borderless`]:!De},!Pn&&(0,k.Z)(eo,Ht),un==null?void 0:un.input,(st=Ni==null?void 0:Ni.classNames)===null||st===void 0?void 0:st.input,Se)}),classes:{affixWrapper:b()({[`${eo}-affix-wrapper-sm`]:fo==="small",[`${eo}-affix-wrapper-lg`]:fo==="large",[`${eo}-affix-wrapper-rtl`]:Ii==="rtl",[`${eo}-affix-wrapper-borderless`]:!De},(0,k.Z)(`${eo}-affix-wrapper`,Ht,it),Se),wrapper:b()({[`${eo}-group-rtl`]:Ii==="rtl"},Se),group:b()({[`${eo}-group-wrapper-sm`]:fo==="small",[`${eo}-group-wrapper-lg`]:fo==="large",[`${eo}-group-wrapper-rtl`]:Ii==="rtl",[`${eo}-group-wrapper-disabled`]:Fs},(0,k.Z)(`${eo}-group-wrapper`,Ht,it),Se)}})))})},22913:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return eo}});var v=y(67294),P=y(41322),w=y(94184),b=y.n(w),B=y(87462),V=y(1413),k=y(4942),R=y(74902),C=y(97685),g=y(91),A=y(67656),O=y(82234),K=y(87887),he=y(21770),ae=y(71002),fe=y(48555),xe=y(8410),ye=y(75164),be=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -7942,33 +7888,33 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter top:0 !important; right:0 !important; pointer-events: none !important; -`,ot=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],He={},vt;function dt(ti){var Ts=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bs=ti.getAttribute("id")||ti.getAttribute("data-reactid")||ti.getAttribute("name");if(Ts&&He[Bs])return He[Bs];var Ce=window.getComputedStyle(ti),Gi=Ce.getPropertyValue("box-sizing")||Ce.getPropertyValue("-moz-box-sizing")||Ce.getPropertyValue("-webkit-box-sizing"),qi=parseFloat(Ce.getPropertyValue("padding-bottom"))+parseFloat(Ce.getPropertyValue("padding-top")),co=parseFloat(Ce.getPropertyValue("border-bottom-width"))+parseFloat(Ce.getPropertyValue("border-top-width")),fi=ot.map(function(In){return"".concat(In,":").concat(Ce.getPropertyValue(In))}).join(";"),Ms={sizingStyle:fi,paddingSize:qi,borderSize:co,boxSizing:Gi};return Ts&&Bs&&(He[Bs]=Ms),Ms}function Pe(ti){var Ts=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ce=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;vt||(vt=document.createElement("textarea"),vt.setAttribute("tab-index","-1"),vt.setAttribute("aria-hidden","true"),document.body.appendChild(vt)),ti.getAttribute("wrap")?vt.setAttribute("wrap",ti.getAttribute("wrap")):vt.removeAttribute("wrap");var Gi=dt(ti,Ts),qi=Gi.paddingSize,co=Gi.borderSize,fi=Gi.boxSizing,Ms=Gi.sizingStyle;vt.setAttribute("style","".concat(Ms,";").concat(we)),vt.value=ti.value||ti.placeholder||"";var In=void 0,et=void 0,Dt,$t=vt.scrollHeight;if(fi==="border-box"?$t+=co:fi==="content-box"&&($t-=qi),Bs!==null||Ce!==null){vt.value=" ";var Dn=vt.scrollHeight-qi;Bs!==null&&(In=Dn*Bs,fi==="border-box"&&(In=In+qi+co),$t=Math.max(In,$t)),Ce!==null&&(et=Dn*Ce,fi==="border-box"&&(et=et+qi+co),Dt=$t>et?"":"hidden",$t=Math.min(et,$t))}var gr={height:$t,overflowY:Dt,resize:"none"};return In&&(gr.minHeight=In),et&&(gr.maxHeight=et),gr}var De=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ae=0,Re=1,$e=2,Ie=v.forwardRef(function(ti,Ts){var Bs=ti,Ce=Bs.prefixCls,Gi=Bs.onPressEnter,qi=Bs.defaultValue,co=Bs.value,fi=Bs.autoSize,Ms=Bs.onResize,In=Bs.className,et=Bs.style,Dt=Bs.disabled,$t=Bs.onChange,Dn=Bs.onInternalAutoSize,gr=(0,g.Z)(Bs,De),kn=(0,ce.Z)(qi,{value:co,postState:function(er){return er!=null?er:""}}),bn=(0,C.Z)(kn,2),zt=bn[0],Jt=bn[1],yn=function(er){Jt(er.target.value),$t==null||$t(er)},fr=v.useRef();v.useImperativeHandle(Ts,function(){return{textArea:fr.current}});var vr=v.useMemo(function(){return fi&&(0,de.Z)(fi)==="object"?[fi.minRows,fi.maxRows]:[]},[fi]),pn=(0,C.Z)(vr,2),wr=pn[0],Sr=pn[1],Ai=!!fi,mo=function(){try{if(document.activeElement===fr.current){var er=fr.current,Mr=er.selectionStart,ji=er.selectionEnd,An=er.scrollTop;fr.current.setSelectionRange(Mr,ji),fr.current.scrollTop=An}}catch(Xn){}},Fr=v.useState($e),to=(0,C.Z)(Fr,2),Ji=to[0],bo=to[1],xn=v.useState(),fn=(0,C.Z)(xn,2),It=fn[0],Zt=fn[1],gn=function(){bo(Ae)};(0,Ee.Z)(function(){Ai&&gn()},[co,wr,Sr,Ai]),(0,Ee.Z)(function(){if(Ji===Ae)bo(Re);else if(Ji===Re){var Cn=Pe(fr.current,!1,wr,Sr);bo($e),Zt(Cn)}else mo()},[Ji]);var $n=v.useRef(),Ar=function(){_e.Z.cancel($n.current)},Dr=function(er){Ji===$e&&(Ms==null||Ms(er),fi&&(Ar(),$n.current=(0,_e.Z)(function(){gn()})))};v.useEffect(function(){return Ar},[]);var dr=Ai?It:null,Xt=(0,V.Z)((0,V.Z)({},et),dr);return(Ji===Ae||Ji===Re)&&(Xt.overflowY="hidden",Xt.overflowX="hidden"),v.createElement(ve.Z,{onResize:Dr,disabled:!(fi||Ms)},v.createElement("textarea",(0,B.Z)({},gr,{ref:fr,style:Xt,className:b()(Ce,In,(0,k.Z)({},"".concat(Ce,"-disabled"),Dt)),disabled:Dt,value:zt,onChange:yn})))}),Xe=Ie,ze=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],Kt=v.forwardRef(function(ti,Ts){var Bs,Ce,Gi=ti.defaultValue,qi=ti.value,co=ti.onFocus,fi=ti.onBlur,Ms=ti.onChange,In=ti.allowClear,et=ti.maxLength,Dt=ti.onCompositionStart,$t=ti.onCompositionEnd,Dn=ti.suffix,gr=ti.prefixCls,kn=gr===void 0?"rc-textarea":gr,bn=ti.classes,zt=ti.showCount,Jt=ti.count,yn=ti.className,fr=ti.style,vr=ti.disabled,pn=ti.hidden,wr=ti.classNames,Sr=ti.styles,Ai=ti.onResize,mo=(0,g.Z)(ti,ze),Fr=(0,ce.Z)(Gi,{value:qi,defaultValue:Gi}),to=(0,C.Z)(Fr,2),Ji=to[0],bo=to[1],xn=Ji==null?"":String(Ji),fn=v.useState(!1),It=(0,C.Z)(fn,2),Zt=It[0],gn=It[1],$n=v.useRef(!1),Ar=v.useState(null),Dr=(0,C.Z)(Ar,2),dr=Dr[0],Xt=Dr[1],Cn=(0,v.useRef)(null),er=function(){var es;return(es=Cn.current)===null||es===void 0?void 0:es.textArea},Mr=function(){er().focus()};(0,v.useImperativeHandle)(Ts,function(){return{resizableTextArea:Cn.current,focus:Mr,blur:function(){er().blur()}}}),(0,v.useEffect)(function(){gn(function(Br){return!vr&&Br})},[vr]);var ji=v.useState(null),An=(0,C.Z)(ji,2),Xn=An[0],nr=An[1];v.useEffect(function(){if(Xn){var Br;(Br=er()).setSelectionRange.apply(Br,(0,M.Z)(Xn))}},[Xn]);var qr=(0,O.Z)(Jt,zt),vi=(Bs=qr.max)!==null&&Bs!==void 0?Bs:et,Hr=Number(vi)>0,di=qr.strategy(xn),gi=!!vi&&di>vi,mi=function(es,ko){var vs=ko;!$n.current&&qr.exceedFormatter&&qr.max&&qr.strategy(ko)>qr.max&&(vs=qr.exceedFormatter(ko,{max:qr.max}),ko!==vs&&nr([er().selectionStart||0,er().selectionEnd||0])),bo(vs),(0,K.rJ)(es.currentTarget,es,Ms,vs)},Bi=function(es){$n.current=!0,Dt==null||Dt(es)},zr=function(es){$n.current=!1,mi(es,es.currentTarget.value),$t==null||$t(es)},Xr=function(es){mi(es,es.target.value)},Qi=function(es){var ko=mo.onPressEnter,vs=mo.onKeyDown;es.key==="Enter"&&ko&&ko(es),vs==null||vs(es)},rs=function(es){gn(!0),co==null||co(es)},Ur=function(es){gn(!1),fi==null||fi(es)},gs=function(es){bo(""),Mr(),(0,K.rJ)(er(),es,Ms)},Kr=Dn,ri;qr.show&&(qr.showFormatter?ri=qr.showFormatter({value:xn,count:di,maxLength:vi}):ri="".concat(di).concat(Hr?" / ".concat(vi):""),Kr=v.createElement(v.Fragment,null,Kr,v.createElement("span",{className:b()("".concat(kn,"-data-count"),wr==null?void 0:wr.count),style:Sr==null?void 0:Sr.count},ri)));var is=function(es){var ko;Ai==null||Ai(es),(ko=er())!==null&&ko!==void 0&&ko.style.height&&Xt(!0)},Jr=!mo.autoSize&&!zt&&!In,_n=v.createElement(A.Q,{value:xn,allowClear:In,handleReset:gs,suffix:Kr,prefixCls:kn,classes:{affixWrapper:b()(bn==null?void 0:bn.affixWrapper,(Ce={},(0,k.Z)(Ce,"".concat(kn,"-show-count"),zt),(0,k.Z)(Ce,"".concat(kn,"-textarea-allow-clear"),In),Ce))},disabled:vr,focused:Zt,className:b()(yn,gi&&"".concat(kn,"-out-of-range")),style:(0,V.Z)((0,V.Z)({},fr),dr&&!Jr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ri=="string"?ri:void 0}},hidden:pn,inputElement:v.createElement(Xe,(0,B.Z)({},mo,{maxLength:et,onKeyDown:Qi,onChange:Xr,onFocus:rs,onBlur:Ur,onCompositionStart:Bi,onCompositionEnd:zr,className:b()(wr==null?void 0:wr.textarea),style:(0,V.Z)((0,V.Z)({},Sr==null?void 0:Sr.textarea),{},{resize:fr==null?void 0:fr.resize}),disabled:vr,prefixCls:kn,onResize:is,ref:Cn}))});return _n}),St=Kt,nt=St,Ct=_(11201),lt=_(51059),Gt=_(40053),Rt=_(1220),an=_(34735),cn=_(39747),Cr=_(7440),ii=_(20170),Pi=function(ti,Ts){var Bs={};for(var Ce in ti)Object.prototype.hasOwnProperty.call(ti,Ce)&&Ts.indexOf(Ce)<0&&(Bs[Ce]=ti[Ce]);if(ti!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gi=0,Ce=Object.getOwnPropertySymbols(ti);Gi{var Bs;const{prefixCls:Ce,bordered:Gi=!0,size:qi,disabled:co,status:fi,allowClear:Ms,classNames:In,rootClassName:et,className:Dt}=ti,$t=Pi(ti,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:Dn,direction:gr}=v.useContext(lt.E_),kn=(0,Rt.Z)(qi),bn=v.useContext(Gt.Z),zt=co!=null?co:bn,{status:Jt,hasFeedback:yn,feedbackIcon:fr}=v.useContext(an.aM),vr=(0,Ct.F)(Jt,fi),pn=v.useRef(null);v.useImperativeHandle(Ts,()=>{var to;return{resizableTextArea:(to=pn.current)===null||to===void 0?void 0:to.resizableTextArea,focus:Ji=>{var bo,xn;(0,cn.n)((xn=(bo=pn.current)===null||bo===void 0?void 0:bo.resizableTextArea)===null||xn===void 0?void 0:xn.textArea,Ji)},blur:()=>{var Ji;return(Ji=pn.current)===null||Ji===void 0?void 0:Ji.blur()}}});const wr=Dn("input",Ce);let Sr;typeof Ms=="object"&&(Ms!=null&&Ms.clearIcon)?Sr=Ms:Ms&&(Sr={clearIcon:v.createElement(R.Z,null)});const Ai=(0,ii.Z)(wr),[mo,Fr]=(0,Cr.ZP)(wr,Ai);return mo(v.createElement(nt,Object.assign({},$t,{disabled:zt,allowClear:Sr,className:b()(Ai,Dt,et),classes:{affixWrapper:b()(`${wr}-textarea-affix-wrapper`,{[`${wr}-affix-wrapper-rtl`]:gr==="rtl",[`${wr}-affix-wrapper-borderless`]:!Gi,[`${wr}-affix-wrapper-sm`]:kn==="small",[`${wr}-affix-wrapper-lg`]:kn==="large",[`${wr}-textarea-show-count`]:ti.showCount||((Bs=ti.count)===null||Bs===void 0?void 0:Bs.show)},(0,Ct.Z)(`${wr}-affix-wrapper`,vr),Fr)},classNames:Object.assign(Object.assign({},In),{textarea:b()({[`${wr}-borderless`]:!Gi,[`${wr}-sm`]:kn==="small",[`${wr}-lg`]:kn==="large"},(0,Ct.Z)(wr,vr),Fr,In==null?void 0:In.textarea)}),prefixCls:wr,suffix:yn&&v.createElement("span",{className:`${wr}-textarea-suffix`},fr),ref:pn})))})},37384:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return R}});var v=_(77617);function R(w,b){const B=(0,v.useRef)([]),V=()=>{B.current.push(setTimeout(()=>{var k,M,C,g;!((k=w.current)===null||k===void 0)&&k.input&&((M=w.current)===null||M===void 0?void 0:M.input.getAttribute("type"))==="password"&&(!((C=w.current)===null||C===void 0)&&C.input.hasAttribute("value"))&&((g=w.current)===null||g===void 0||g.input.removeAttribute("value"))}))};return(0,v.useEffect)(()=>(b&&V(),()=>B.current.forEach(k=>{k&&clearTimeout(k)})),[]),V}},24431:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return Ct}});var v=_(77617),R=_(12124),w=_.n(R),b=_(51059),B=_(34735),V=_(7440),M=lt=>{const{getPrefixCls:Gt,direction:Rt}=(0,v.useContext)(b.E_),{prefixCls:an,className:cn}=lt,Cr=Gt("input-group",an),ii=Gt("input"),[Pi,Ni]=(0,V.ZP)(ii),Yi=w()(Cr,{[`${Cr}-lg`]:lt.size==="large",[`${Cr}-sm`]:lt.size==="small",[`${Cr}-compact`]:lt.compact,[`${Cr}-rtl`]:Rt==="rtl"},Ni,cn),ti=(0,v.useContext)(B.aM),Ts=(0,v.useMemo)(()=>Object.assign(Object.assign({},ti),{isFormItemInput:!1}),[ti]);return Pi(v.createElement("span",{className:Yi,style:lt.style,onMouseEnter:lt.onMouseEnter,onMouseLeave:lt.onMouseLeave,onFocus:lt.onFocus,onBlur:lt.onBlur},v.createElement(B.aM.Provider,{value:Ts},lt.children)))},C=_(39747),g=_(61796),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},O=A,K=_(91851),ce=function(Gt,Rt){return v.createElement(K.Z,(0,g.Z)({},Gt,{ref:Rt,icon:O}))},de=v.forwardRef(ce),ve=_(15997),Ee=_(99468),_e=_(88831),we=_(37384),ot=function(lt,Gt){var Rt={};for(var an in lt)Object.prototype.hasOwnProperty.call(lt,an)&&Gt.indexOf(an)<0&&(Rt[an]=lt[an]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,an=Object.getOwnPropertySymbols(lt);cnlt?v.createElement(ve.Z,null):v.createElement(de,null),vt={click:"onClick",hover:"onMouseOver"};var Pe=v.forwardRef((lt,Gt)=>{const{visibilityToggle:Rt=!0}=lt,an=typeof Rt=="object"&&Rt.visible!==void 0,[cn,Cr]=(0,v.useState)(()=>an?Rt.visible:!1),ii=(0,v.useRef)(null);v.useEffect(()=>{an&&Cr(Rt.visible)},[an,Rt]);const Pi=(0,we.Z)(ii),Ni=()=>{const{disabled:Dt}=lt;Dt||(cn&&Pi(),Cr($t=>{var Dn;const gr=!$t;return typeof Rt=="object"&&((Dn=Rt.onVisibleChange)===null||Dn===void 0||Dn.call(Rt,gr)),gr}))},Yi=Dt=>{const{action:$t="click",iconRender:Dn=He}=lt,gr=vt[$t]||"",kn=Dn(cn),bn={[gr]:Ni,className:`${Dt}-icon`,key:"passwordIcon",onMouseDown:zt=>{zt.preventDefault()},onMouseUp:zt=>{zt.preventDefault()}};return v.cloneElement(v.isValidElement(kn)?kn:v.createElement("span",null,kn),bn)},{className:ti,prefixCls:Ts,inputPrefixCls:Bs,size:Ce}=lt,Gi=ot(lt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:qi}=v.useContext(b.E_),co=qi("input",Bs),fi=qi("input-password",Ts),Ms=Rt&&Yi(fi),In=w()(fi,ti,{[`${fi}-${Ce}`]:!!Ce}),et=Object.assign(Object.assign({},(0,Ee.Z)(Gi,["suffix","iconRender","visibilityToggle"])),{type:cn?"text":"password",className:In,prefixCls:co,suffix:Ms});return Ce&&(et.size=Ce),v.createElement(C.Z,Object.assign({ref:(0,_e.sQ)(Gt,ii)},et))}),De=_(46820),Ae=_(29341),Re=_(9949),$e=_(1220),Ie=_(60161),Xe=function(lt,Gt){var Rt={};for(var an in lt)Object.prototype.hasOwnProperty.call(lt,an)&&Gt.indexOf(an)<0&&(Rt[an]=lt[an]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,an=Object.getOwnPropertySymbols(lt);cn{const{prefixCls:Rt,inputPrefixCls:an,className:cn,size:Cr,suffix:ii,enterButton:Pi=!1,addonAfter:Ni,loading:Yi,disabled:ti,onSearch:Ts,onChange:Bs,onCompositionStart:Ce,onCompositionEnd:Gi}=lt,qi=Xe(lt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:co,direction:fi}=v.useContext(b.E_),Ms=v.useRef(!1),In=co("input-search",Rt),et=co("input",an),{compactSize:Dt}=(0,Ie.ri)(In,fi),$t=(0,$e.Z)(mo=>{var Fr;return(Fr=Cr!=null?Cr:Dt)!==null&&Fr!==void 0?Fr:mo}),Dn=v.useRef(null),gr=mo=>{mo&&mo.target&&mo.type==="click"&&Ts&&Ts(mo.target.value,mo,{source:"clear"}),Bs&&Bs(mo)},kn=mo=>{var Fr;document.activeElement===((Fr=Dn.current)===null||Fr===void 0?void 0:Fr.input)&&mo.preventDefault()},bn=mo=>{var Fr,to;Ts&&Ts((to=(Fr=Dn.current)===null||Fr===void 0?void 0:Fr.input)===null||to===void 0?void 0:to.value,mo,{source:"input"})},zt=mo=>{Ms.current||Yi||bn(mo)},Jt=typeof Pi=="boolean"?v.createElement(De.Z,null):null,yn=`${In}-button`;let fr;const vr=Pi||{},pn=vr.type&&vr.type.__ANT_BUTTON===!0;pn||vr.type==="button"?fr=(0,Ae.Tm)(vr,Object.assign({onMouseDown:kn,onClick:mo=>{var Fr,to;(to=(Fr=vr==null?void 0:vr.props)===null||Fr===void 0?void 0:Fr.onClick)===null||to===void 0||to.call(Fr,mo),bn(mo)},key:"enterButton"},pn?{className:yn,size:$t}:{})):fr=v.createElement(Re.ZP,{className:yn,type:Pi?"primary":void 0,size:$t,disabled:ti,key:"enterButton",onMouseDown:kn,onClick:bn,loading:Yi,icon:Jt},Pi),Ni&&(fr=[fr,(0,Ae.Tm)(Ni,{key:"addonAfter"})]);const wr=w()(In,{[`${In}-rtl`]:fi==="rtl",[`${In}-${$t}`]:!!$t,[`${In}-with-button`]:!!Pi},cn),Sr=mo=>{Ms.current=!0,Ce==null||Ce(mo)},Ai=mo=>{Ms.current=!1,Gi==null||Gi(mo)};return v.createElement(C.Z,Object.assign({ref:(0,_e.sQ)(Dn,Gt),onPressEnter:zt},qi,{size:$t,onCompositionStart:Sr,onCompositionEnd:Ai,prefixCls:et,addonAfter:fr,suffix:ii,onChange:gr,className:wr,disabled:ti}))}),St=_(9747);const nt=C.Z;nt.Group=M,nt.Search=Kt,nt.TextArea=St.Z,nt.Password=Pe;var Ct=nt},7440:function(_t,Y,_){"use strict";_.d(Y,{TM:function(){return dt},Xy:function(){return C},bi:function(){return O},e5:function(){return vt},ik:function(){return K},nz:function(){return V},s7:function(){return ce},x0:function(){return A}});var v=_(36646),R=_(35772),w=_(62290),b=_(80172),B=_(67859);const V=Pe=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Pe,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),k=Pe=>({borderColor:Pe.hoverBorderColor,backgroundColor:Pe.hoverBg}),M=Pe=>({borderColor:Pe.activeBorderColor,boxShadow:Pe.activeShadow,outline:0,backgroundColor:Pe.activeBg}),C=Pe=>({color:Pe.colorTextDisabled,backgroundColor:Pe.colorBgContainerDisabled,borderColor:Pe.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},k((0,b.TS)(Pe,{hoverBorderColor:Pe.colorBorder,hoverBg:Pe.colorBgContainerDisabled})))}),g=Pe=>{const{paddingBlockLG:De,fontSizeLG:Ae,lineHeightLG:Re,borderRadiusLG:$e,paddingInlineLG:Ie}=Pe;return{padding:`${(0,v.bf)(De)} ${(0,v.bf)(Ie)}`,fontSize:Ae,lineHeight:Re,borderRadius:$e}},A=Pe=>({padding:`${(0,v.bf)(Pe.paddingBlockSM)} ${(0,v.bf)(Pe.paddingInlineSM)}`,borderRadius:Pe.borderRadiusSM}),O=(Pe,De)=>{const{componentCls:Ae,colorError:Re,colorWarning:$e,errorActiveShadow:Ie,warningActiveShadow:Xe,colorErrorBorderHover:ze,colorWarningBorderHover:Kt}=Pe;return{[`&-status-error:not(${De}-disabled):not(${De}-borderless)${De}`]:{borderColor:Re,"&:hover":{borderColor:ze},"&:focus, &:focus-within":Object.assign({},M((0,b.TS)(Pe,{activeBorderColor:Re,activeShadow:Ie}))),[`${Ae}-prefix, ${Ae}-suffix`]:{color:Re}},[`&-status-warning:not(${De}-disabled):not(${De}-borderless)${De}`]:{borderColor:$e,"&:hover":{borderColor:Kt},"&:focus, &:focus-within":Object.assign({},M((0,b.TS)(Pe,{activeBorderColor:$e,activeShadow:Xe}))),[`${Ae}-prefix, ${Ae}-suffix`]:{color:$e}}}},K=Pe=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,v.bf)(Pe.paddingBlock)} ${(0,v.bf)(Pe.paddingInline)}`,color:Pe.colorText,fontSize:Pe.fontSize,lineHeight:Pe.lineHeight,backgroundColor:Pe.colorBgContainer,backgroundImage:"none",borderWidth:Pe.lineWidth,borderStyle:Pe.lineType,borderColor:Pe.colorBorder,borderRadius:Pe.borderRadius,transition:`all ${Pe.motionDurationMid}`},V(Pe.colorTextPlaceholder)),{"&:hover":Object.assign({},k(Pe)),"&:focus, &:focus-within":Object.assign({},M(Pe)),"&-disabled, &[disabled]":Object.assign({},C(Pe)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Pe.controlHeight,lineHeight:Pe.lineHeight,verticalAlign:"bottom",transition:`all ${Pe.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},g(Pe)),"&-sm":Object.assign({},A(Pe)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),ce=Pe=>{const{componentCls:De,antCls:Ae}=Pe;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:Pe.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${De}, &-lg > ${De}-group-addon`]:Object.assign({},g(Pe)),[`&-sm ${De}, &-sm > ${De}-group-addon`]:Object.assign({},A(Pe)),[`&-lg ${Ae}-select-single ${Ae}-select-selector`]:{height:Pe.controlHeightLG},[`&-sm ${Ae}-select-single ${Ae}-select-selector`]:{height:Pe.controlHeightSM},[`> ${De}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${De}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,v.bf)(Pe.paddingInline)}`,color:Pe.colorText,fontWeight:"normal",fontSize:Pe.fontSize,textAlign:"center",backgroundColor:Pe.addonBg,border:`${(0,v.bf)(Pe.lineWidth)} ${Pe.lineType} ${Pe.colorBorder}`,borderRadius:Pe.borderRadius,transition:`all ${Pe.motionDurationSlow}`,lineHeight:1,[`${Ae}-select`]:{margin:`${(0,v.bf)(Pe.calc(Pe.paddingBlock).add(1).mul(-1).equal())} ${(0,v.bf)(Pe.calc(Pe.paddingInline).mul(-1).equal())}`,[`&${Ae}-select-single:not(${Ae}-select-customize-input):not(${Ae}-pagination-size-changer)`]:{[`${Ae}-select-selector`]:{backgroundColor:"inherit",border:`${(0,v.bf)(Pe.lineWidth)} ${Pe.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Ae}-select-selector`]:{color:Pe.colorPrimary}}},[`${Ae}-cascader-picker`]:{margin:`-9px ${(0,v.bf)(Pe.calc(Pe.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${Ae}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${De}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${De}-search-with-button &`]:{zIndex:0}}},[`> ${De}:first-child, ${De}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ae}-select ${Ae}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${De}-affix-wrapper`]:{[`&:not(:first-child) ${De}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${De}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${De}:last-child, ${De}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Ae}-select ${Ae}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${De}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${De}-search &`]:{borderStartStartRadius:Pe.borderRadius,borderEndStartRadius:Pe.borderRadius}},[`&:not(:first-child), ${De}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${De}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,R.dF)()),{[`${De}-group-addon, ${De}-group-wrap, > ${De}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Pe.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` +`,Qe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Ve={},pt;function st(ti){var Is=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ns=ti.getAttribute("id")||ti.getAttribute("data-reactid")||ti.getAttribute("name");if(Is&&Ve[Ns])return Ve[Ns];var Se=window.getComputedStyle(ti),Xi=Se.getPropertyValue("box-sizing")||Se.getPropertyValue("-moz-box-sizing")||Se.getPropertyValue("-webkit-box-sizing"),Yi=parseFloat(Se.getPropertyValue("padding-bottom"))+parseFloat(Se.getPropertyValue("padding-top")),fo=parseFloat(Se.getPropertyValue("border-bottom-width"))+parseFloat(Se.getPropertyValue("border-top-width")),di=Qe.map(function(Ln){return"".concat(Ln,":").concat(Se.getPropertyValue(Ln))}).join(";"),Fs={sizingStyle:di,paddingSize:Yi,borderSize:fo,boxSizing:Xi};return Is&&Ns&&(Ve[Ns]=Fs),Fs}function Ae(ti){var Is=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ns=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;pt||(pt=document.createElement("textarea"),pt.setAttribute("tab-index","-1"),pt.setAttribute("aria-hidden","true"),document.body.appendChild(pt)),ti.getAttribute("wrap")?pt.setAttribute("wrap",ti.getAttribute("wrap")):pt.removeAttribute("wrap");var Xi=st(ti,Is),Yi=Xi.paddingSize,fo=Xi.borderSize,di=Xi.boxSizing,Fs=Xi.sizingStyle;pt.setAttribute("style","".concat(Fs,";").concat(be)),pt.value=ti.value||ti.placeholder||"";var Ln=void 0,it=void 0,Ot,Ht=pt.scrollHeight;if(di==="border-box"?Ht+=fo:di==="content-box"&&(Ht-=Yi),Ns!==null||Se!==null){pt.value=" ";var Pn=pt.scrollHeight-Yi;Ns!==null&&(Ln=Pn*Ns,di==="border-box"&&(Ln=Ln+Yi+fo),Ht=Math.max(Ln,Ht)),Se!==null&&(it=Pn*Se,di==="border-box"&&(it=it+Yi+fo),Ot=Ht>it?"":"hidden",Ht=Math.min(it,Ht))}var fr={height:Ht,overflowY:Ot,resize:"none"};return Ln&&(fr.minHeight=Ln),it&&(fr.maxHeight=it),fr}var De=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Te=0,Me=1,Ue=2,Pe=v.forwardRef(function(ti,Is){var Ns=ti,Se=Ns.prefixCls,Xi=Ns.onPressEnter,Yi=Ns.defaultValue,fo=Ns.value,di=Ns.autoSize,Fs=Ns.onResize,Ln=Ns.className,it=Ns.style,Ot=Ns.disabled,Ht=Ns.onChange,Pn=Ns.onInternalAutoSize,fr=(0,g.Z)(Ns,De),In=(0,he.Z)(Yi,{value:fo,postState:function(Qn){return Qn!=null?Qn:""}}),mn=(0,C.Z)(In,2),Ut=mn[0],en=mn[1],Cn=function(Qn){en(Qn.target.value),Ht==null||Ht(Qn)},lr=v.useRef();v.useImperativeHandle(Is,function(){return{textArea:lr.current}});var pr=v.useMemo(function(){return di&&(0,ae.Z)(di)==="object"?[di.minRows,di.maxRows]:[]},[di]),an=(0,C.Z)(pr,2),wr=an[0],Cr=an[1],Ei=!!di,vo=function(){try{if(document.activeElement===lr.current){var Qn=lr.current,Mr=Qn.selectionStart,Wi=Qn.selectionEnd,Dn=Qn.scrollTop;lr.current.setSelectionRange(Mr,Wi),lr.current.scrollTop=Dn}}catch(Kn){}},kr=v.useState(Ue),ro=(0,C.Z)(kr,2),qi=ro[0],bo=ro[1],xn=v.useState(),pn=(0,C.Z)(xn,2),Dt=pn[0],Zt=pn[1],vn=function(){bo(Te)};(0,xe.Z)(function(){Ei&&vn()},[fo,wr,Cr,Ei]),(0,xe.Z)(function(){if(qi===Te)bo(Me);else if(qi===Me){var wn=Ae(lr.current,!1,wr,Cr);bo(Ue),Zt(wn)}else vo()},[qi]);var $n=v.useRef(),Ar=function(){ye.Z.cancel($n.current)},Dr=function(Qn){qi===Ue&&(Fs==null||Fs(Qn),di&&(Ar(),$n.current=(0,ye.Z)(function(){vn()})))};v.useEffect(function(){return Ar},[]);var dr=Ei?Dt:null,Yt=(0,V.Z)((0,V.Z)({},it),dr);return(qi===Te||qi===Me)&&(Yt.overflowY="hidden",Yt.overflowX="hidden"),v.createElement(fe.Z,{onResize:Dr,disabled:!(di||Fs)},v.createElement("textarea",(0,B.Z)({},fr,{ref:lr,style:Yt,className:b()(Se,Ln,(0,k.Z)({},"".concat(Se,"-disabled"),Ot)),disabled:Ot,value:Ut,onChange:Cn})))}),Xe=Pe,Be=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],Xt=v.forwardRef(function(ti,Is){var Ns,Se,Xi=ti.defaultValue,Yi=ti.value,fo=ti.onFocus,di=ti.onBlur,Fs=ti.onChange,Ln=ti.allowClear,it=ti.maxLength,Ot=ti.onCompositionStart,Ht=ti.onCompositionEnd,Pn=ti.suffix,fr=ti.prefixCls,In=fr===void 0?"rc-textarea":fr,mn=ti.classes,Ut=ti.showCount,en=ti.count,Cn=ti.className,lr=ti.style,pr=ti.disabled,an=ti.hidden,wr=ti.classNames,Cr=ti.styles,Ei=ti.onResize,vo=(0,g.Z)(ti,Be),kr=(0,he.Z)(Xi,{value:Yi,defaultValue:Xi}),ro=(0,C.Z)(kr,2),qi=ro[0],bo=ro[1],xn=qi==null?"":String(qi),pn=v.useState(!1),Dt=(0,C.Z)(pn,2),Zt=Dt[0],vn=Dt[1],$n=v.useRef(!1),Ar=v.useState(null),Dr=(0,C.Z)(Ar,2),dr=Dr[0],Yt=Dr[1],wn=(0,v.useRef)(null),Qn=function(){var qo;return(qo=wn.current)===null||qo===void 0?void 0:qo.textArea},Mr=function(){Qn().focus()};(0,v.useImperativeHandle)(Is,function(){return{resizableTextArea:wn.current,focus:Mr,blur:function(){Qn().blur()}}}),(0,v.useEffect)(function(){vn(function(Or){return!pr&&Or})},[pr]);var Wi=v.useState(null),Dn=(0,C.Z)(Wi,2),Kn=Dn[0],nr=Dn[1];v.useEffect(function(){if(Kn){var Or;(Or=Qn()).setSelectionRange.apply(Or,(0,R.Z)(Kn))}},[Kn]);var qr=(0,O.Z)(en,Ut),yi=(Ns=qr.max)!==null&&Ns!==void 0?Ns:it,Hr=Number(yi)>0,ci=qr.strategy(xn),gi=!!yi&&ci>yi,mi=function(qo,Mo){var vs=Mo;!$n.current&&qr.exceedFormatter&&qr.max&&qr.strategy(Mo)>qr.max&&(vs=qr.exceedFormatter(Mo,{max:qr.max}),Mo!==vs&&nr([Qn().selectionStart||0,Qn().selectionEnd||0])),bo(vs),(0,K.rJ)(qo.currentTarget,qo,Fs,vs)},Bi=function(qo){$n.current=!0,Ot==null||Ot(qo)},Nr=function(qo){$n.current=!1,mi(qo,qo.currentTarget.value),Ht==null||Ht(qo)},Kr=function(qo){mi(qo,qo.target.value)},Qi=function(qo){var Mo=vo.onPressEnter,vs=vo.onKeyDown;qo.key==="Enter"&&Mo&&Mo(qo),vs==null||vs(qo)},ns=function(qo){vn(!0),fo==null||fo(qo)},Ur=function(qo){vn(!1),di==null||di(qo)},gs=function(qo){bo(""),Mr(),(0,K.rJ)(Qn(),qo,Fs)},Gr=Pn,ni;qr.show&&(qr.showFormatter?ni=qr.showFormatter({value:xn,count:ci,maxLength:yi}):ni="".concat(ci).concat(Hr?" / ".concat(yi):""),Gr=v.createElement(v.Fragment,null,Gr,v.createElement("span",{className:b()("".concat(In,"-data-count"),wr==null?void 0:wr.count),style:Cr==null?void 0:Cr.count},ni)));var is=function(qo){var Mo;Ei==null||Ei(qo),(Mo=Qn())!==null&&Mo!==void 0&&Mo.style.height&&Yt(!0)},Jr=!vo.autoSize&&!Ut&&!Ln,bn=v.createElement(A.Q,{value:xn,allowClear:Ln,handleReset:gs,suffix:Gr,prefixCls:In,classes:{affixWrapper:b()(mn==null?void 0:mn.affixWrapper,(Se={},(0,k.Z)(Se,"".concat(In,"-show-count"),Ut),(0,k.Z)(Se,"".concat(In,"-textarea-allow-clear"),Ln),Se))},disabled:pr,focused:Zt,className:b()(Cn,gi&&"".concat(In,"-out-of-range")),style:(0,V.Z)((0,V.Z)({},lr),dr&&!Jr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ni=="string"?ni:void 0}},hidden:an,inputElement:v.createElement(Xe,(0,B.Z)({},vo,{maxLength:it,onKeyDown:Qi,onChange:Kr,onFocus:ns,onBlur:Ur,onCompositionStart:Bi,onCompositionEnd:Nr,className:b()(wr==null?void 0:wr.textarea),style:(0,V.Z)((0,V.Z)({},Cr==null?void 0:Cr.textarea),{},{resize:lr==null?void 0:lr.resize}),disabled:pr,prefixCls:In,onResize:is,ref:wn}))});return bn}),St=Xt,nt=St,wt=y(9708),lt=y(53124),Kt=y(98866),Mt=y(98675),hn=y(65223),un=y(82586),Sr=y(47673),ii=y(35792),Ii=function(ti,Is){var Ns={};for(var Se in ti)Object.prototype.hasOwnProperty.call(ti,Se)&&Is.indexOf(Se)<0&&(Ns[Se]=ti[Se]);if(ti!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xi=0,Se=Object.getOwnPropertySymbols(ti);Xi{var Ns;const{prefixCls:Se,bordered:Xi=!0,size:Yi,disabled:fo,status:di,allowClear:Fs,classNames:Ln,rootClassName:it,className:Ot}=ti,Ht=Ii(ti,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:Pn,direction:fr}=v.useContext(lt.E_),In=(0,Mt.Z)(Yi),mn=v.useContext(Kt.Z),Ut=fo!=null?fo:mn,{status:en,hasFeedback:Cn,feedbackIcon:lr}=v.useContext(hn.aM),pr=(0,wt.F)(en,di),an=v.useRef(null);v.useImperativeHandle(Is,()=>{var ro;return{resizableTextArea:(ro=an.current)===null||ro===void 0?void 0:ro.resizableTextArea,focus:qi=>{var bo,xn;(0,un.n)((xn=(bo=an.current)===null||bo===void 0?void 0:bo.resizableTextArea)===null||xn===void 0?void 0:xn.textArea,qi)},blur:()=>{var qi;return(qi=an.current)===null||qi===void 0?void 0:qi.blur()}}});const wr=Pn("input",Se);let Cr;typeof Fs=="object"&&(Fs!=null&&Fs.clearIcon)?Cr=Fs:Fs&&(Cr={clearIcon:v.createElement(P.Z,null)});const Ei=(0,ii.Z)(wr),[vo,kr]=(0,Sr.ZP)(wr,Ei);return vo(v.createElement(nt,Object.assign({},Ht,{disabled:Ut,allowClear:Cr,className:b()(Ei,Ot,it),classes:{affixWrapper:b()(`${wr}-textarea-affix-wrapper`,{[`${wr}-affix-wrapper-rtl`]:fr==="rtl",[`${wr}-affix-wrapper-borderless`]:!Xi,[`${wr}-affix-wrapper-sm`]:In==="small",[`${wr}-affix-wrapper-lg`]:In==="large",[`${wr}-textarea-show-count`]:ti.showCount||((Ns=ti.count)===null||Ns===void 0?void 0:Ns.show)},(0,wt.Z)(`${wr}-affix-wrapper`,pr),kr)},classNames:Object.assign(Object.assign({},Ln),{textarea:b()({[`${wr}-borderless`]:!Xi,[`${wr}-sm`]:In==="small",[`${wr}-lg`]:In==="large"},(0,wt.Z)(wr,pr),kr,Ln==null?void 0:Ln.textarea)}),prefixCls:wr,suffix:Cn&&v.createElement("span",{className:`${wr}-textarea-suffix`},lr),ref:an})))})},72922:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return P}});var v=y(67294);function P(w,b){const B=(0,v.useRef)([]),V=()=>{B.current.push(setTimeout(()=>{var k,R,C,g;!((k=w.current)===null||k===void 0)&&k.input&&((R=w.current)===null||R===void 0?void 0:R.input.getAttribute("type"))==="password"&&(!((C=w.current)===null||C===void 0)&&C.input.hasAttribute("value"))&&((g=w.current)===null||g===void 0||g.input.removeAttribute("value"))}))};return(0,v.useEffect)(()=>(b&&V(),()=>B.current.forEach(k=>{k&&clearTimeout(k)})),[]),V}},75008:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return wt}});var v=y(67294),P=y(94184),w=y.n(P),b=y(53124),B=y(65223),V=y(47673),R=lt=>{const{getPrefixCls:Kt,direction:Mt}=(0,v.useContext)(b.E_),{prefixCls:hn,className:un}=lt,Sr=Kt("input-group",hn),ii=Kt("input"),[Ii,Ni]=(0,V.ZP)(ii),eo=w()(Sr,{[`${Sr}-lg`]:lt.size==="large",[`${Sr}-sm`]:lt.size==="small",[`${Sr}-compact`]:lt.compact,[`${Sr}-rtl`]:Mt==="rtl"},Ni,un),ti=(0,v.useContext)(B.aM),Is=(0,v.useMemo)(()=>Object.assign(Object.assign({},ti),{isFormItemInput:!1}),[ti]);return Ii(v.createElement("span",{className:eo,style:lt.style,onMouseEnter:lt.onMouseEnter,onMouseLeave:lt.onMouseLeave,onFocus:lt.onFocus,onBlur:lt.onBlur},v.createElement(B.aM.Provider,{value:Is},lt.children)))},C=y(82586),g=y(87462),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},O=A,K=y(93771),he=function(Kt,Mt){return v.createElement(K.Z,(0,g.Z)({},Kt,{ref:Mt,icon:O}))},ae=v.forwardRef(he),fe=y(7124),xe=y(98423),ye=y(42550),be=y(72922),Qe=function(lt,Kt){var Mt={};for(var hn in lt)Object.prototype.hasOwnProperty.call(lt,hn)&&Kt.indexOf(hn)<0&&(Mt[hn]=lt[hn]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,hn=Object.getOwnPropertySymbols(lt);unlt?v.createElement(fe.Z,null):v.createElement(ae,null),pt={click:"onClick",hover:"onMouseOver"};var Ae=v.forwardRef((lt,Kt)=>{const{visibilityToggle:Mt=!0}=lt,hn=typeof Mt=="object"&&Mt.visible!==void 0,[un,Sr]=(0,v.useState)(()=>hn?Mt.visible:!1),ii=(0,v.useRef)(null);v.useEffect(()=>{hn&&Sr(Mt.visible)},[hn,Mt]);const Ii=(0,be.Z)(ii),Ni=()=>{const{disabled:Ot}=lt;Ot||(un&&Ii(),Sr(Ht=>{var Pn;const fr=!Ht;return typeof Mt=="object"&&((Pn=Mt.onVisibleChange)===null||Pn===void 0||Pn.call(Mt,fr)),fr}))},eo=Ot=>{const{action:Ht="click",iconRender:Pn=Ve}=lt,fr=pt[Ht]||"",In=Pn(un),mn={[fr]:Ni,className:`${Ot}-icon`,key:"passwordIcon",onMouseDown:Ut=>{Ut.preventDefault()},onMouseUp:Ut=>{Ut.preventDefault()}};return v.cloneElement(v.isValidElement(In)?In:v.createElement("span",null,In),mn)},{className:ti,prefixCls:Is,inputPrefixCls:Ns,size:Se}=lt,Xi=Qe(lt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Yi}=v.useContext(b.E_),fo=Yi("input",Ns),di=Yi("input-password",Is),Fs=Mt&&eo(di),Ln=w()(di,ti,{[`${di}-${Se}`]:!!Se}),it=Object.assign(Object.assign({},(0,xe.Z)(Xi,["suffix","iconRender","visibilityToggle"])),{type:un?"text":"password",className:Ln,prefixCls:fo,suffix:Fs});return Se&&(it.size=Se),v.createElement(C.Z,Object.assign({ref:(0,ye.sQ)(Kt,ii)},it))}),De=y(13805),Te=y(96159),Me=y(15867),Ue=y(98675),Pe=y(4173),Xe=function(lt,Kt){var Mt={};for(var hn in lt)Object.prototype.hasOwnProperty.call(lt,hn)&&Kt.indexOf(hn)<0&&(Mt[hn]=lt[hn]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,hn=Object.getOwnPropertySymbols(lt);un{const{prefixCls:Mt,inputPrefixCls:hn,className:un,size:Sr,suffix:ii,enterButton:Ii=!1,addonAfter:Ni,loading:eo,disabled:ti,onSearch:Is,onChange:Ns,onCompositionStart:Se,onCompositionEnd:Xi}=lt,Yi=Xe(lt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:fo,direction:di}=v.useContext(b.E_),Fs=v.useRef(!1),Ln=fo("input-search",Mt),it=fo("input",hn),{compactSize:Ot}=(0,Pe.ri)(Ln,di),Ht=(0,Ue.Z)(vo=>{var kr;return(kr=Sr!=null?Sr:Ot)!==null&&kr!==void 0?kr:vo}),Pn=v.useRef(null),fr=vo=>{vo&&vo.target&&vo.type==="click"&&Is&&Is(vo.target.value,vo,{source:"clear"}),Ns&&Ns(vo)},In=vo=>{var kr;document.activeElement===((kr=Pn.current)===null||kr===void 0?void 0:kr.input)&&vo.preventDefault()},mn=vo=>{var kr,ro;Is&&Is((ro=(kr=Pn.current)===null||kr===void 0?void 0:kr.input)===null||ro===void 0?void 0:ro.value,vo,{source:"input"})},Ut=vo=>{Fs.current||eo||mn(vo)},en=typeof Ii=="boolean"?v.createElement(De.Z,null):null,Cn=`${Ln}-button`;let lr;const pr=Ii||{},an=pr.type&&pr.type.__ANT_BUTTON===!0;an||pr.type==="button"?lr=(0,Te.Tm)(pr,Object.assign({onMouseDown:In,onClick:vo=>{var kr,ro;(ro=(kr=pr==null?void 0:pr.props)===null||kr===void 0?void 0:kr.onClick)===null||ro===void 0||ro.call(kr,vo),mn(vo)},key:"enterButton"},an?{className:Cn,size:Ht}:{})):lr=v.createElement(Me.ZP,{className:Cn,type:Ii?"primary":void 0,size:Ht,disabled:ti,key:"enterButton",onMouseDown:In,onClick:mn,loading:eo,icon:en},Ii),Ni&&(lr=[lr,(0,Te.Tm)(Ni,{key:"addonAfter"})]);const wr=w()(Ln,{[`${Ln}-rtl`]:di==="rtl",[`${Ln}-${Ht}`]:!!Ht,[`${Ln}-with-button`]:!!Ii},un),Cr=vo=>{Fs.current=!0,Se==null||Se(vo)},Ei=vo=>{Fs.current=!1,Xi==null||Xi(vo)};return v.createElement(C.Z,Object.assign({ref:(0,ye.sQ)(Pn,Kt),onPressEnter:Ut},Yi,{size:Ht,onCompositionStart:Cr,onCompositionEnd:Ei,prefixCls:it,addonAfter:lr,suffix:ii,onChange:fr,className:wr,disabled:ti}))}),St=y(22913);const nt=C.Z;nt.Group=R,nt.Search=Xt,nt.TextArea=St.Z,nt.Password=Ae;var wt=nt},47673:function(yt,Y,y){"use strict";y.d(Y,{TM:function(){return st},Xy:function(){return C},bi:function(){return O},e5:function(){return pt},ik:function(){return K},nz:function(){return V},s7:function(){return he},x0:function(){return A}});var v=y(43109),P=y(14747),w=y(80110),b=y(45503),B=y(91945);const V=Ae=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Ae,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),k=Ae=>({borderColor:Ae.hoverBorderColor,backgroundColor:Ae.hoverBg}),R=Ae=>({borderColor:Ae.activeBorderColor,boxShadow:Ae.activeShadow,outline:0,backgroundColor:Ae.activeBg}),C=Ae=>({color:Ae.colorTextDisabled,backgroundColor:Ae.colorBgContainerDisabled,borderColor:Ae.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},k((0,b.TS)(Ae,{hoverBorderColor:Ae.colorBorder,hoverBg:Ae.colorBgContainerDisabled})))}),g=Ae=>{const{paddingBlockLG:De,fontSizeLG:Te,lineHeightLG:Me,borderRadiusLG:Ue,paddingInlineLG:Pe}=Ae;return{padding:`${(0,v.bf)(De)} ${(0,v.bf)(Pe)}`,fontSize:Te,lineHeight:Me,borderRadius:Ue}},A=Ae=>({padding:`${(0,v.bf)(Ae.paddingBlockSM)} ${(0,v.bf)(Ae.paddingInlineSM)}`,borderRadius:Ae.borderRadiusSM}),O=(Ae,De)=>{const{componentCls:Te,colorError:Me,colorWarning:Ue,errorActiveShadow:Pe,warningActiveShadow:Xe,colorErrorBorderHover:Be,colorWarningBorderHover:Xt}=Ae;return{[`&-status-error:not(${De}-disabled):not(${De}-borderless)${De}`]:{borderColor:Me,"&:hover":{borderColor:Be},"&:focus, &:focus-within":Object.assign({},R((0,b.TS)(Ae,{activeBorderColor:Me,activeShadow:Pe}))),[`${Te}-prefix, ${Te}-suffix`]:{color:Me}},[`&-status-warning:not(${De}-disabled):not(${De}-borderless)${De}`]:{borderColor:Ue,"&:hover":{borderColor:Xt},"&:focus, &:focus-within":Object.assign({},R((0,b.TS)(Ae,{activeBorderColor:Ue,activeShadow:Xe}))),[`${Te}-prefix, ${Te}-suffix`]:{color:Ue}}}},K=Ae=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,v.bf)(Ae.paddingBlock)} ${(0,v.bf)(Ae.paddingInline)}`,color:Ae.colorText,fontSize:Ae.fontSize,lineHeight:Ae.lineHeight,backgroundColor:Ae.colorBgContainer,backgroundImage:"none",borderWidth:Ae.lineWidth,borderStyle:Ae.lineType,borderColor:Ae.colorBorder,borderRadius:Ae.borderRadius,transition:`all ${Ae.motionDurationMid}`},V(Ae.colorTextPlaceholder)),{"&:hover":Object.assign({},k(Ae)),"&:focus, &:focus-within":Object.assign({},R(Ae)),"&-disabled, &[disabled]":Object.assign({},C(Ae)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Ae.controlHeight,lineHeight:Ae.lineHeight,verticalAlign:"bottom",transition:`all ${Ae.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},g(Ae)),"&-sm":Object.assign({},A(Ae)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),he=Ae=>{const{componentCls:De,antCls:Te}=Ae;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:Ae.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${De}, &-lg > ${De}-group-addon`]:Object.assign({},g(Ae)),[`&-sm ${De}, &-sm > ${De}-group-addon`]:Object.assign({},A(Ae)),[`&-lg ${Te}-select-single ${Te}-select-selector`]:{height:Ae.controlHeightLG},[`&-sm ${Te}-select-single ${Te}-select-selector`]:{height:Ae.controlHeightSM},[`> ${De}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${De}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,v.bf)(Ae.paddingInline)}`,color:Ae.colorText,fontWeight:"normal",fontSize:Ae.fontSize,textAlign:"center",backgroundColor:Ae.addonBg,border:`${(0,v.bf)(Ae.lineWidth)} ${Ae.lineType} ${Ae.colorBorder}`,borderRadius:Ae.borderRadius,transition:`all ${Ae.motionDurationSlow}`,lineHeight:1,[`${Te}-select`]:{margin:`${(0,v.bf)(Ae.calc(Ae.paddingBlock).add(1).mul(-1).equal())} ${(0,v.bf)(Ae.calc(Ae.paddingInline).mul(-1).equal())}`,[`&${Te}-select-single:not(${Te}-select-customize-input):not(${Te}-pagination-size-changer)`]:{[`${Te}-select-selector`]:{backgroundColor:"inherit",border:`${(0,v.bf)(Ae.lineWidth)} ${Ae.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Te}-select-selector`]:{color:Ae.colorPrimary}}},[`${Te}-cascader-picker`]:{margin:`-9px ${(0,v.bf)(Ae.calc(Ae.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${Te}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${De}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${De}-search-with-button &`]:{zIndex:0}}},[`> ${De}:first-child, ${De}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Te}-select ${Te}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${De}-affix-wrapper`]:{[`&:not(:first-child) ${De}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${De}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${De}:last-child, ${De}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Te}-select ${Te}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${De}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${De}-search &`]:{borderStartStartRadius:Ae.borderRadius,borderEndStartRadius:Ae.borderRadius}},[`&:not(:first-child), ${De}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${De}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,P.dF)()),{[`${De}-group-addon, ${De}-group-wrap, > ${De}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Ae.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${De}-affix-wrapper, & > ${De}-number-affix-wrapper, - & > ${Ae}-picker-range - `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:Pe.calc(Pe.lineWidth).mul(-1).equal(),borderInlineEndWidth:Pe.lineWidth},[`${De}`]:{float:"none"},[`& > ${Ae}-select > ${Ae}-select-selector, - & > ${Ae}-select-auto-complete ${De}, - & > ${Ae}-cascader-picker ${De}, - & > ${De}-group-wrapper ${De}`]:{borderInlineEndWidth:Pe.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Ae}-select-focused`]:{zIndex:1},[`& > ${Ae}-select > ${Ae}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${Ae}-select:first-child > ${Ae}-select-selector, - & > ${Ae}-select-auto-complete:first-child ${De}, - & > ${Ae}-cascader-picker:first-child ${De}`]:{borderStartStartRadius:Pe.borderRadius,borderEndStartRadius:Pe.borderRadius},[`& > *:last-child, - & > ${Ae}-select:last-child > ${Ae}-select-selector, - & > ${Ae}-cascader-picker:last-child ${De}, - & > ${Ae}-cascader-picker-focused:last-child ${De}`]:{borderInlineEndWidth:Pe.lineWidth,borderStartEndRadius:Pe.borderRadius,borderEndEndRadius:Pe.borderRadius},[`& > ${Ae}-select-auto-complete ${De}`]:{verticalAlign:"top"},[`${De}-group-wrapper + ${De}-group-wrapper`]:{marginInlineStart:Pe.calc(Pe.lineWidth).mul(-1).equal(),[`${De}-affix-wrapper`]:{borderRadius:0}},[`${De}-group-wrapper:not(:last-child)`]:{[`&${De}-search > ${De}-group`]:{[`& > ${De}-group-addon > ${De}-search-button`]:{borderRadius:0},[`& > ${De}`]:{borderStartStartRadius:Pe.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Pe.borderRadius}}}})}},de=Pe=>{const{componentCls:De,controlHeightSM:Ae,lineWidth:Re,calc:$e}=Pe,Ie=16,Xe=$e(Ae).sub($e(Re).mul(2)).sub(Ie).div(2).equal();return{[De]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,R.Wf)(Pe)),K(Pe)),O(Pe,De)),{'&[type="color"]':{height:Pe.controlHeight,[`&${De}-lg`]:{height:Pe.controlHeightLG},[`&${De}-sm`]:{height:Ae,paddingTop:Xe,paddingBottom:Xe}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ve=Pe=>{const{componentCls:De}=Pe;return{[`${De}-clear-icon`]:{margin:0,color:Pe.colorTextQuaternary,fontSize:Pe.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Pe.motionDurationSlow}`,"&:hover":{color:Pe.colorTextTertiary},"&:active":{color:Pe.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,v.bf)(Pe.inputAffixPadding)}`}}}},Ee=Pe=>{const{componentCls:De,inputAffixPadding:Ae,colorTextDescription:Re,motionDurationSlow:$e,colorIcon:Ie,colorIconHover:Xe,iconCls:ze}=Pe;return{[`${De}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},K(Pe)),{display:"inline-flex",[`&:not(${De}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${De}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${De}[disabled]`]:{background:"transparent"}},[`> input${De}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${De}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Pe.paddingXS}},"&-show-count-suffix":{color:Re},"&-show-count-has-suffix":{marginInlineEnd:Pe.paddingXXS},"&-prefix":{marginInlineEnd:Ae},"&-suffix":{marginInlineStart:Ae}}}),ve(Pe)),{[`${ze}${De}-password-icon`]:{color:Ie,cursor:"pointer",transition:`all ${$e}`,"&:hover":{color:Xe}}}),O(Pe,`${De}-affix-wrapper`))}},_e=Pe=>{const{componentCls:De,colorError:Ae,colorWarning:Re,borderRadiusLG:$e,borderRadiusSM:Ie}=Pe;return{[`${De}-group`]:Object.assign(Object.assign(Object.assign({},(0,R.Wf)(Pe)),ce(Pe)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${De}-group-addon`]:{borderRadius:$e,fontSize:Pe.fontSizeLG}},"&-sm":{[`${De}-group-addon`]:{borderRadius:Ie}},"&-status-error":{[`${De}-group-addon`]:{color:Ae,borderColor:Ae}},"&-status-warning":{[`${De}-group-addon`]:{color:Re,borderColor:Re}},"&-disabled":{[`${De}-group-addon`]:Object.assign({},C(Pe))},[`&:not(${De}-compact-first-item):not(${De}-compact-last-item)${De}-compact-item`]:{[`${De}, ${De}-group-addon`]:{borderRadius:0}},[`&:not(${De}-compact-last-item)${De}-compact-first-item`]:{[`${De}, ${De}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${De}-compact-first-item)${De}-compact-last-item`]:{[`${De}, ${De}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},we=Pe=>{const{componentCls:De,antCls:Ae}=Pe,Re=`${De}-search`;return{[Re]:{[`${De}`]:{"&:hover, &:focus":{borderColor:Pe.colorPrimaryHover,[`+ ${De}-group-addon ${Re}-button:not(${Ae}-btn-primary)`]:{borderInlineStartColor:Pe.colorPrimaryHover}}},[`${De}-affix-wrapper`]:{borderRadius:0},[`${De}-lg`]:{lineHeight:Pe.calc(Pe.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${De}-group`]:{[`> ${De}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Re}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Pe.borderRadius,borderEndEndRadius:Pe.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Re}-button:not(${Ae}-btn-primary)`]:{color:Pe.colorTextDescription,"&:hover":{color:Pe.colorPrimaryHover},"&:active":{color:Pe.colorPrimaryActive},[`&${Ae}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Re}-button`]:{height:Pe.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Re}-button`]:{height:Pe.controlHeightLG},[`&-small ${Re}-button`]:{height:Pe.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${De}-compact-item`]:{[`&:not(${De}-compact-last-item)`]:{[`${De}-group-addon`]:{[`${De}-search-button`]:{marginInlineEnd:Pe.calc(Pe.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${De}-compact-first-item)`]:{[`${De},${De}-affix-wrapper`]:{borderRadius:0}},[`> ${De}-group-addon ${De}-search-button, + & > ${Te}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:Ae.calc(Ae.lineWidth).mul(-1).equal(),borderInlineEndWidth:Ae.lineWidth},[`${De}`]:{float:"none"},[`& > ${Te}-select > ${Te}-select-selector, + & > ${Te}-select-auto-complete ${De}, + & > ${Te}-cascader-picker ${De}, + & > ${De}-group-wrapper ${De}`]:{borderInlineEndWidth:Ae.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Te}-select-focused`]:{zIndex:1},[`& > ${Te}-select > ${Te}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${Te}-select:first-child > ${Te}-select-selector, + & > ${Te}-select-auto-complete:first-child ${De}, + & > ${Te}-cascader-picker:first-child ${De}`]:{borderStartStartRadius:Ae.borderRadius,borderEndStartRadius:Ae.borderRadius},[`& > *:last-child, + & > ${Te}-select:last-child > ${Te}-select-selector, + & > ${Te}-cascader-picker:last-child ${De}, + & > ${Te}-cascader-picker-focused:last-child ${De}`]:{borderInlineEndWidth:Ae.lineWidth,borderStartEndRadius:Ae.borderRadius,borderEndEndRadius:Ae.borderRadius},[`& > ${Te}-select-auto-complete ${De}`]:{verticalAlign:"top"},[`${De}-group-wrapper + ${De}-group-wrapper`]:{marginInlineStart:Ae.calc(Ae.lineWidth).mul(-1).equal(),[`${De}-affix-wrapper`]:{borderRadius:0}},[`${De}-group-wrapper:not(:last-child)`]:{[`&${De}-search > ${De}-group`]:{[`& > ${De}-group-addon > ${De}-search-button`]:{borderRadius:0},[`& > ${De}`]:{borderStartStartRadius:Ae.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ae.borderRadius}}}})}},ae=Ae=>{const{componentCls:De,controlHeightSM:Te,lineWidth:Me,calc:Ue}=Ae,Pe=16,Xe=Ue(Te).sub(Ue(Me).mul(2)).sub(Pe).div(2).equal();return{[De]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,P.Wf)(Ae)),K(Ae)),O(Ae,De)),{'&[type="color"]':{height:Ae.controlHeight,[`&${De}-lg`]:{height:Ae.controlHeightLG},[`&${De}-sm`]:{height:Te,paddingTop:Xe,paddingBottom:Xe}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},fe=Ae=>{const{componentCls:De}=Ae;return{[`${De}-clear-icon`]:{margin:0,color:Ae.colorTextQuaternary,fontSize:Ae.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Ae.motionDurationSlow}`,"&:hover":{color:Ae.colorTextTertiary},"&:active":{color:Ae.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,v.bf)(Ae.inputAffixPadding)}`}}}},xe=Ae=>{const{componentCls:De,inputAffixPadding:Te,colorTextDescription:Me,motionDurationSlow:Ue,colorIcon:Pe,colorIconHover:Xe,iconCls:Be}=Ae;return{[`${De}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},K(Ae)),{display:"inline-flex",[`&:not(${De}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${De}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${De}[disabled]`]:{background:"transparent"}},[`> input${De}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${De}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Ae.paddingXS}},"&-show-count-suffix":{color:Me},"&-show-count-has-suffix":{marginInlineEnd:Ae.paddingXXS},"&-prefix":{marginInlineEnd:Te},"&-suffix":{marginInlineStart:Te}}}),fe(Ae)),{[`${Be}${De}-password-icon`]:{color:Pe,cursor:"pointer",transition:`all ${Ue}`,"&:hover":{color:Xe}}}),O(Ae,`${De}-affix-wrapper`))}},ye=Ae=>{const{componentCls:De,colorError:Te,colorWarning:Me,borderRadiusLG:Ue,borderRadiusSM:Pe}=Ae;return{[`${De}-group`]:Object.assign(Object.assign(Object.assign({},(0,P.Wf)(Ae)),he(Ae)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${De}-group-addon`]:{borderRadius:Ue,fontSize:Ae.fontSizeLG}},"&-sm":{[`${De}-group-addon`]:{borderRadius:Pe}},"&-status-error":{[`${De}-group-addon`]:{color:Te,borderColor:Te}},"&-status-warning":{[`${De}-group-addon`]:{color:Me,borderColor:Me}},"&-disabled":{[`${De}-group-addon`]:Object.assign({},C(Ae))},[`&:not(${De}-compact-first-item):not(${De}-compact-last-item)${De}-compact-item`]:{[`${De}, ${De}-group-addon`]:{borderRadius:0}},[`&:not(${De}-compact-last-item)${De}-compact-first-item`]:{[`${De}, ${De}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${De}-compact-first-item)${De}-compact-last-item`]:{[`${De}, ${De}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},be=Ae=>{const{componentCls:De,antCls:Te}=Ae,Me=`${De}-search`;return{[Me]:{[`${De}`]:{"&:hover, &:focus":{borderColor:Ae.colorPrimaryHover,[`+ ${De}-group-addon ${Me}-button:not(${Te}-btn-primary)`]:{borderInlineStartColor:Ae.colorPrimaryHover}}},[`${De}-affix-wrapper`]:{borderRadius:0},[`${De}-lg`]:{lineHeight:Ae.calc(Ae.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${De}-group`]:{[`> ${De}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Me}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Ae.borderRadius,borderEndEndRadius:Ae.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Me}-button:not(${Te}-btn-primary)`]:{color:Ae.colorTextDescription,"&:hover":{color:Ae.colorPrimaryHover},"&:active":{color:Ae.colorPrimaryActive},[`&${Te}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Me}-button`]:{height:Ae.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Me}-button`]:{height:Ae.controlHeightLG},[`&-small ${Me}-button`]:{height:Ae.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${De}-compact-item`]:{[`&:not(${De}-compact-last-item)`]:{[`${De}-group-addon`]:{[`${De}-search-button`]:{marginInlineEnd:Ae.calc(Ae.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${De}-compact-first-item)`]:{[`${De},${De}-affix-wrapper`]:{borderRadius:0}},[`> ${De}-group-addon ${De}-search-button, > ${De}, - ${De}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${De}-affix-wrapper-focused`]:{zIndex:2}}}}},ot=Pe=>{const{componentCls:De,paddingLG:Ae}=Pe,Re=`${De}-textarea`;return{[Re]:{position:"relative","&-show-count":{[`> ${De}`]:{height:"100%"},[`${De}-data-count`]:{position:"absolute",bottom:Pe.calc(Pe.fontSize).mul(Pe.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Pe.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${De}`]:{paddingInlineEnd:Ae}},[`&-affix-wrapper${Re}-has-feedback`]:{[`${De}`]:{paddingInlineEnd:Ae}},[`&-affix-wrapper${De}-affix-wrapper`]:{padding:0,[`> textarea${De}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${De}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${De}-clear-icon`]:{position:"absolute",insetInlineEnd:Pe.paddingXS,insetBlockStart:Pe.paddingXS},[`${Re}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Pe.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},He=Pe=>{const{componentCls:De}=Pe;return{[`${De}-out-of-range`]:{[`&, & input, & textarea, ${De}-show-count-suffix, ${De}-data-count`]:{color:Pe.colorError}}}};function vt(Pe){return(0,b.TS)(Pe,{inputAffixPadding:Pe.paddingXXS})}const dt=Pe=>{const{controlHeight:De,fontSize:Ae,lineHeight:Re,lineWidth:$e,controlHeightSM:Ie,controlHeightLG:Xe,fontSizeLG:ze,lineHeightLG:Kt,paddingSM:St,controlPaddingHorizontalSM:nt,controlPaddingHorizontal:Ct,colorFillAlter:lt,colorPrimaryHover:Gt,colorPrimary:Rt,controlOutlineWidth:an,controlOutline:cn,colorErrorOutline:Cr,colorWarningOutline:ii}=Pe;return{paddingBlock:Math.max(Math.round((De-Ae*Re)/2*10)/10-$e,0),paddingBlockSM:Math.max(Math.round((Ie-Ae*Re)/2*10)/10-$e,0),paddingBlockLG:Math.ceil((Xe-ze*Kt)/2*10)/10-$e,paddingInline:St-$e,paddingInlineSM:nt-$e,paddingInlineLG:Ct-$e,addonBg:lt,activeBorderColor:Rt,hoverBorderColor:Gt,activeShadow:`0 0 0 ${an}px ${cn}`,errorActiveShadow:`0 0 0 ${an}px ${Cr}`,warningActiveShadow:`0 0 0 ${an}px ${ii}`,hoverBg:"",activeBg:""}};Y.ZP=(0,B.I$)("Input",Pe=>{const De=(0,b.TS)(Pe,vt(Pe));return[de(De),ot(De),Ee(De),_e(De),we(De),He(De),(0,w.c)(De)]},dt)},15268:function(_t,Y,_){"use strict";var v=_(77617);const R=(0,v.createContext)(void 0);Y.Z=R},44199:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return A}});var v=_(99730),R={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},w=R,B={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},k={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},w),timePickerLocale:Object.assign({},B)},M=k;const C="${label} is not a valid ${type}";var A={locale:"en",Pagination:v.Z,DatePicker:k,TimePicker:B,Calendar:M,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:C,method:C,array:C,object:C,number:C,date:C,boolean:C,integer:C,float:C,regexp:C,email:C,url:C,hex:C},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}}},66951:function(_t,Y,_){"use strict";var v=_(77617),R=_(15268),w=_(44199);const b=(B,V)=>{const k=v.useContext(R.Z),M=v.useMemo(()=>{var g;const A=V||w.Z[B],O=(g=k==null?void 0:k[B])!==null&&g!==void 0?g:{};return Object.assign(Object.assign({},typeof A=="function"?A():A),O||{})},[B,V,k]),C=v.useMemo(()=>{const g=k==null?void 0:k.locale;return k!=null&&k.exist&&!g?w.Z.locale:g},[k]);return[M,C]};Y.Z=b},26851:function(_t,Y,_){"use strict";_.d(Y,{J:function(){return V}});var v=_(77617),R=_(33401),w=_(60161),b=function(k,M){var C={};for(var g in k)Object.prototype.hasOwnProperty.call(k,g)&&M.indexOf(g)<0&&(C[g]=k[g]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,g=Object.getOwnPropertySymbols(k);A{const{children:C}=k,g=b(k,["children"]),A=v.useContext(B),O=v.useMemo(()=>Object.assign(Object.assign({},A),g),[A,g.prefixCls,g.mode,g.selectable,g.rootClassName]),K=(0,R.t4)(C),ce=(0,R.x1)(M,K?C.ref:null);return v.createElement(B.Provider,{value:O},v.createElement(w.BR,null,K?v.cloneElement(C,{ref:ce}):C))});Y.Z=B},80977:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return bn}});var v=_(27484),R=_(77617),w=_(12124),b=_.n(w),B=function(zt,Jt){var yn={};for(var fr in zt)Object.prototype.hasOwnProperty.call(zt,fr)&&Jt.indexOf(fr)<0&&(yn[fr]=zt[fr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vr=0,fr=Object.getOwnPropertySymbols(zt);vr{let zt=0;return function(){let Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return zt+=1,`${Jt}${zt}`}})(),C=null;var g=null,A=_(51059),O=function(zt,Jt){var yn={};for(var fr in zt)Object.prototype.hasOwnProperty.call(zt,fr)&&Jt.indexOf(fr)<0&&(yn[fr]=zt[fr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vr=0,fr=Object.getOwnPropertySymbols(zt);vr{const{prefixCls:Jt,className:yn,dashed:fr}=zt,vr=O(zt,["prefixCls","className","dashed"]),{getPrefixCls:pn}=R.useContext(A.E_),wr=pn("menu",Jt),Sr=b()({[`${wr}-item-divider-dashed`]:!!fr},yn);return R.createElement(v.iz,Object.assign({className:Sr},vr))},de=_(45659),ve=_(99468),Ee=_(38134),_e=_(29341),ot=(0,R.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),vt=zt=>{var Jt;const{className:yn,children:fr,icon:vr,title:pn,danger:wr}=zt,{prefixCls:Sr,firstLevel:Ai,direction:mo,disableMenuItemTitleTooltip:Fr,inlineCollapsed:to}=R.useContext(ot),Ji=gn=>{const $n=R.createElement("span",{className:`${Sr}-title-content`},fr);return(!vr||(0,_e.l$)(fr)&&fr.type==="span")&&fr&&gn&&Ai&&typeof fr=="string"?R.createElement("div",{className:`${Sr}-inline-collapsed-noicon`},fr.charAt(0)):$n},{siderCollapsed:bo}=R.useContext(k);let xn=pn;typeof pn=="undefined"?xn=Ai?fr:"":pn===!1&&(xn="");const fn={title:xn};!bo&&!to&&(fn.title=null,fn.open=!1);const It=(0,de.Z)(fr).length;let Zt=R.createElement(v.ck,Object.assign({},(0,ve.Z)(zt,["title","icon","danger"]),{className:b()({[`${Sr}-item-danger`]:wr,[`${Sr}-item-only-child`]:(vr?It+1:It)===1},yn),title:typeof pn=="string"?pn:void 0}),(0,_e.Tm)(vr,{className:b()((0,_e.l$)(vr)?(Jt=vr.props)===null||Jt===void 0?void 0:Jt.className:"",`${Sr}-item-icon`)}),Ji(to));return Fr||(Zt=R.createElement(Ee.Z,Object.assign({},fn,{placement:mo==="rtl"?"left":"right",overlayClassName:`${Sr}-inline-collapsed-tooltip`}),Zt)),Zt},dt=_(3966),De=zt=>{var Jt;const{popupClassName:yn,icon:fr,title:vr,theme:pn}=zt,wr=R.useContext(ot),{prefixCls:Sr,inlineCollapsed:Ai,theme:mo}=wr,Fr=(0,v.Xl)();let to;if(!fr)to=Ai&&!Fr.length&&vr&&typeof vr=="string"?R.createElement("div",{className:`${Sr}-inline-collapsed-noicon`},vr.charAt(0)):R.createElement("span",{className:`${Sr}-title-content`},vr);else{const xn=(0,_e.l$)(vr)&&vr.type==="span";to=R.createElement(R.Fragment,null,(0,_e.Tm)(fr,{className:b()((0,_e.l$)(fr)?(Jt=fr.props)===null||Jt===void 0?void 0:Jt.className:"",`${Sr}-item-icon`)}),xn?vr:R.createElement("span",{className:`${Sr}-title-content`},vr))}const Ji=R.useMemo(()=>Object.assign(Object.assign({},wr),{firstLevel:!1}),[wr]),[bo]=(0,dt.Cn)("Menu");return R.createElement(ot.Provider,{value:Ji},R.createElement(v.Wd,Object.assign({},(0,ve.Z)(zt,["icon"]),{title:to,popupClassName:b()(Sr,yn,`${Sr}-${pn||mo}`),popupStyle:{zIndex:bo}})))},Ae=_(93319),Re=_(33401),$e=_(82395),Ie=function(zt,Jt){var yn={};for(var fr in zt)Object.prototype.hasOwnProperty.call(zt,fr)&&Jt.indexOf(fr)<0&&(yn[fr]=zt[fr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vr=0,fr=Object.getOwnPropertySymbols(zt);vr{if(Jt&&typeof Jt=="object"){const fr=Jt,{label:vr,children:pn,key:wr,type:Sr}=fr,Ai=Ie(fr,["label","children","key","type"]),mo=wr!=null?wr:`tmp-${yn}`;return pn||Sr==="group"?Sr==="group"?R.createElement(v.BW,Object.assign({key:mo},Ai,{title:vr}),Xe(pn)):R.createElement(De,Object.assign({key:mo},Ai,{title:vr}),Xe(pn)):Sr==="divider"?R.createElement(ce,Object.assign({key:mo},Ai)):R.createElement(vt,Object.assign({key:mo},Ai),vr)}return null}).filter(Jt=>Jt)}function ze(zt){return R.useMemo(()=>zt&&Xe(zt),[zt])}var Kt=_(26851),St=_(36646),nt=_(64993),Ct=_(35772),lt=_(10554),Gt=_(70163),Rt=_(44566),an=_(67859),cn=_(80172),ii=zt=>{const{componentCls:Jt,motionDurationSlow:yn,horizontalLineHeight:fr,colorSplit:vr,lineWidth:pn,lineType:wr,itemPaddingInline:Sr}=zt;return{[`${Jt}-horizontal`]:{lineHeight:fr,border:0,borderBottom:`${(0,St.bf)(pn)} ${wr} ${vr}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Jt}-item, ${Jt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Sr},[`> ${Jt}-item:hover, - > ${Jt}-item-active, - > ${Jt}-submenu ${Jt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Jt}-item, ${Jt}-submenu-title`]:{transition:[`border-color ${yn}`,`background ${yn}`].join(",")},[`${Jt}-submenu-arrow`]:{display:"none"}}}},Ni=zt=>{let{componentCls:Jt,menuArrowOffset:yn,calc:fr}=zt;return{[`${Jt}-rtl`]:{direction:"rtl"},[`${Jt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Jt}-rtl${Jt}-vertical, - ${Jt}-submenu-rtl ${Jt}-vertical`]:{[`${Jt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,St.bf)(fr(yn).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,St.bf)(yn)})`}}}}};const Yi=zt=>Object.assign({},(0,Ct.oN)(zt));var Ts=(zt,Jt)=>{const{componentCls:yn,itemColor:fr,itemSelectedColor:vr,groupTitleColor:pn,itemBg:wr,subMenuItemBg:Sr,itemSelectedBg:Ai,activeBarHeight:mo,activeBarWidth:Fr,activeBarBorderWidth:to,motionDurationSlow:Ji,motionEaseInOut:bo,motionEaseOut:xn,itemPaddingInline:fn,motionDurationMid:It,itemHoverColor:Zt,lineType:gn,colorSplit:$n,itemDisabledColor:Ar,dangerItemColor:Dr,dangerItemHoverColor:dr,dangerItemSelectedColor:Xt,dangerItemActiveBg:Cn,dangerItemSelectedBg:er,itemHoverBg:Mr,itemActiveBg:ji,menuSubMenuBg:An,horizontalItemSelectedColor:Xn,horizontalItemSelectedBg:nr,horizontalItemBorderRadius:qr,horizontalItemHoverBg:vi,popupBg:Hr}=zt;return{[`${yn}-${Jt}, ${yn}-${Jt} > ${yn}`]:{color:fr,background:wr,[`&${yn}-root:focus-visible`]:Object.assign({},Yi(zt)),[`${yn}-item-group-title`]:{color:pn},[`${yn}-submenu-selected`]:{[`> ${yn}-submenu-title`]:{color:vr}},[`${yn}-item-disabled, ${yn}-submenu-disabled`]:{color:`${Ar} !important`},[`${yn}-item:not(${yn}-item-selected):not(${yn}-submenu-selected)`]:{[`&:hover, > ${yn}-submenu-title:hover`]:{color:Zt}},[`&:not(${yn}-horizontal)`]:{[`${yn}-item:not(${yn}-item-selected)`]:{"&:hover":{backgroundColor:Mr},"&:active":{backgroundColor:ji}},[`${yn}-submenu-title`]:{"&:hover":{backgroundColor:Mr},"&:active":{backgroundColor:ji}}},[`${yn}-item-danger`]:{color:Dr,[`&${yn}-item:hover`]:{[`&:not(${yn}-item-selected):not(${yn}-submenu-selected)`]:{color:dr}},[`&${yn}-item:active`]:{background:Cn}},[`${yn}-item a`]:{"&, &:hover":{color:"inherit"}},[`${yn}-item-selected`]:{color:vr,[`&${yn}-item-danger`]:{color:Xt},["a, a:hover"]:{color:"inherit"}},[`& ${yn}-item-selected`]:{backgroundColor:Ai,[`&${yn}-item-danger`]:{backgroundColor:er}},[`${yn}-item, ${yn}-submenu-title`]:{[`&:not(${yn}-item-disabled):focus-visible`]:Object.assign({},Yi(zt))},[`&${yn}-submenu > ${yn}`]:{backgroundColor:An},[`&${yn}-popup > ${yn}`]:{backgroundColor:Hr},[`&${yn}-horizontal`]:Object.assign(Object.assign({},Jt==="dark"?{borderBottom:0}:{}),{[`> ${yn}-item, > ${yn}-submenu`]:{top:to,marginTop:zt.calc(to).mul(-1).equal(),marginBottom:0,borderRadius:qr,"&::after":{position:"absolute",insetInline:fn,bottom:0,borderBottom:`${(0,St.bf)(mo)} solid transparent`,transition:`border-color ${Ji} ${bo}`,content:'""'},["&:hover, &-active, &-open"]:{background:vi,"&::after":{borderBottomWidth:mo,borderBottomColor:Xn}},["&-selected"]:{color:Xn,backgroundColor:nr,"&:hover":{backgroundColor:nr},"&::after":{borderBottomWidth:mo,borderBottomColor:Xn}}}}),[`&${yn}-root`]:{[`&${yn}-inline, &${yn}-vertical`]:{borderInlineEnd:`${(0,St.bf)(to)} ${gn} ${$n}`}},[`&${yn}-inline`]:{[`${yn}-sub${yn}-inline`]:{background:Sr},[`${yn}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,St.bf)(Fr)} solid ${vr}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${It} ${xn}`,`opacity ${It} ${xn}`].join(","),content:'""'},[`&${yn}-item-danger`]:{"&::after":{borderInlineEndColor:Xt}}},[`${yn}-selected, ${yn}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${It} ${bo}`,`opacity ${It} ${bo}`].join(",")}}}}}};const Bs=zt=>{const{componentCls:Jt,itemHeight:yn,itemMarginInline:fr,padding:vr,menuArrowSize:pn,marginXS:wr,itemMarginBlock:Sr,itemWidth:Ai}=zt,mo=zt.calc(pn).add(vr).add(wr).equal();return{[`${Jt}-item`]:{position:"relative",overflow:"hidden"},[`${Jt}-item, ${Jt}-submenu-title`]:{height:yn,lineHeight:(0,St.bf)(yn),paddingInline:vr,overflow:"hidden",textOverflow:"ellipsis",marginInline:fr,marginBlock:Sr,width:Ai},[`> ${Jt}-item, - > ${Jt}-submenu > ${Jt}-submenu-title`]:{height:yn,lineHeight:(0,St.bf)(yn)},[`${Jt}-item-group-list ${Jt}-submenu-title, - ${Jt}-submenu-title`]:{paddingInlineEnd:mo}}};var Gi=zt=>{const{componentCls:Jt,iconCls:yn,itemHeight:fr,colorTextLightSolid:vr,dropdownWidth:pn,controlHeightLG:wr,motionDurationMid:Sr,motionEaseOut:Ai,paddingXL:mo,itemMarginInline:Fr,fontSizeLG:to,motionDurationSlow:Ji,paddingXS:bo,boxShadowSecondary:xn,collapsedWidth:fn,collapsedIconSize:It}=zt,Zt={height:fr,lineHeight:(0,St.bf)(fr),listStylePosition:"inside",listStyleType:"disc"};return[{[Jt]:{["&-inline, &-vertical"]:Object.assign({[`&${Jt}-root`]:{boxShadow:"none"}},Bs(zt))},[`${Jt}-submenu-popup`]:{[`${Jt}-vertical`]:Object.assign(Object.assign({},Bs(zt)),{boxShadow:xn})}},{[`${Jt}-submenu-popup ${Jt}-vertical${Jt}-sub`]:{minWidth:pn,maxHeight:`calc(100vh - ${(0,St.bf)(zt.calc(wr).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Jt}-inline`]:{width:"100%",[`&${Jt}-root`]:{[`${Jt}-item, ${Jt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ji}`,`background ${Ji}`,`padding ${Sr} ${Ai}`].join(","),[`> ${Jt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Jt}-sub${Jt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Jt}-submenu > ${Jt}-submenu-title`]:Zt,[`& ${Jt}-item-group-title`]:{paddingInlineStart:mo}},[`${Jt}-item`]:Zt}},{[`${Jt}-inline-collapsed`]:{width:fn,[`&${Jt}-root`]:{[`${Jt}-item, ${Jt}-submenu ${Jt}-submenu-title`]:{[`> ${Jt}-inline-collapsed-noicon`]:{fontSize:to,textAlign:"center"}}},[`> ${Jt}-item, - > ${Jt}-item-group > ${Jt}-item-group-list > ${Jt}-item, - > ${Jt}-item-group > ${Jt}-item-group-list > ${Jt}-submenu > ${Jt}-submenu-title, - > ${Jt}-submenu > ${Jt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,St.bf)(zt.calc(to).div(2).equal())} - ${(0,St.bf)(Fr)})`,textOverflow:"clip",[` - ${Jt}-submenu-arrow, - ${Jt}-submenu-expand-icon - `]:{opacity:0},[`${Jt}-item-icon, ${yn}`]:{margin:0,fontSize:It,lineHeight:(0,St.bf)(fr),"+ span":{display:"inline-block",opacity:0}}},[`${Jt}-item-icon, ${yn}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Jt}-item-icon, ${yn}`]:{display:"none"},"a, a:hover":{color:vr}},[`${Jt}-item-group-title`]:Object.assign(Object.assign({},Ct.vS),{paddingInline:bo})}}]};const qi=zt=>{const{componentCls:Jt,motionDurationSlow:yn,motionDurationMid:fr,motionEaseInOut:vr,motionEaseOut:pn,iconCls:wr,iconSize:Sr,iconMarginInlineEnd:Ai}=zt;return{[`${Jt}-item, ${Jt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${yn}`,`background ${yn}`,`padding ${yn} ${vr}`].join(","),[`${Jt}-item-icon, ${wr}`]:{minWidth:Sr,fontSize:Sr,transition:[`font-size ${fr} ${pn}`,`margin ${yn} ${vr}`,`color ${yn}`].join(","),"+ span":{marginInlineStart:Ai,opacity:1,transition:[`opacity ${yn} ${vr}`,`margin ${yn}`,`color ${yn}`].join(",")}},[`${Jt}-item-icon`]:Object.assign({},(0,Ct.Ro)()),[`&${Jt}-item-only-child`]:{[`> ${wr}, > ${Jt}-item-icon`]:{marginInlineEnd:0}}},[`${Jt}-item-disabled, ${Jt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Jt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},co=zt=>{const{componentCls:Jt,motionDurationSlow:yn,motionEaseInOut:fr,borderRadius:vr,menuArrowSize:pn,menuArrowOffset:wr}=zt;return{[`${Jt}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:zt.margin,width:pn,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${yn} ${fr}, opacity ${yn}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:zt.calc(pn).mul(.6).equal(),height:zt.calc(pn).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:vr,transition:[`background ${yn} ${fr}`,`transform ${yn} ${fr}`,`top ${yn} ${fr}`,`color ${yn} ${fr}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,St.bf)(zt.calc(wr).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,St.bf)(wr)})`}}}}},fi=zt=>{const{antCls:Jt,componentCls:yn,fontSize:fr,motionDurationSlow:vr,motionDurationMid:pn,motionEaseInOut:wr,paddingXS:Sr,padding:Ai,colorSplit:mo,lineWidth:Fr,zIndexPopup:to,borderRadiusLG:Ji,subMenuItemBorderRadius:bo,menuArrowSize:xn,menuArrowOffset:fn,lineType:It,menuPanelMaskInset:Zt,groupTitleLineHeight:gn,groupTitleFontSize:$n}=zt;return[{"":{[`${yn}`]:Object.assign(Object.assign({},(0,Ct.dF)()),{["&-hidden"]:{display:"none"}})},[`${yn}-submenu-hidden`]:{display:"none"}},{[yn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ct.Wf)(zt)),(0,Ct.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:fr,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${vr} cubic-bezier(0.2, 0, 0, 1) 0s`,["ul, ol"]:{margin:0,padding:0,listStyle:"none"},["&-overflow"]:{display:"flex",[`${yn}-item`]:{flex:"none"}},[`${yn}-item, ${yn}-submenu, ${yn}-submenu-title`]:{borderRadius:zt.itemBorderRadius},[`${yn}-item-group-title`]:{padding:`${(0,St.bf)(Sr)} ${(0,St.bf)(Ai)}`,fontSize:$n,lineHeight:gn,transition:`all ${vr}`},[`&-horizontal ${yn}-submenu`]:{transition:[`border-color ${vr} ${wr}`,`background ${vr} ${wr}`].join(",")},[`${yn}-submenu, ${yn}-submenu-inline`]:{transition:[`border-color ${vr} ${wr}`,`background ${vr} ${wr}`,`padding ${pn} ${wr}`].join(",")},[`${yn}-submenu ${yn}-sub`]:{cursor:"initial",transition:[`background ${vr} ${wr}`,`padding ${vr} ${wr}`].join(",")},[`${yn}-title-content`]:{transition:`color ${vr}`,[`> ${Jt}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${yn}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${yn}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:mo,borderStyle:It,borderWidth:0,borderTopWidth:Fr,marginBlock:Fr,padding:0,"&-dashed":{borderStyle:"dashed"}}}),qi(zt)),{[`${yn}-item-group`]:{[`${yn}-item-group-list`]:{margin:0,padding:0,[`${yn}-item, ${yn}-submenu-title`]:{paddingInline:`${(0,St.bf)(zt.calc(fr).mul(2).equal())} ${(0,St.bf)(Ai)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:to,borderRadius:Ji,boxShadow:"none",transformOrigin:"0 0",[`&${yn}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${(0,St.bf)(Zt)} 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Zt},[` + ${De}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${De}-affix-wrapper-focused`]:{zIndex:2}}}}},Qe=Ae=>{const{componentCls:De,paddingLG:Te}=Ae,Me=`${De}-textarea`;return{[Me]:{position:"relative","&-show-count":{[`> ${De}`]:{height:"100%"},[`${De}-data-count`]:{position:"absolute",bottom:Ae.calc(Ae.fontSize).mul(Ae.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ae.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${De}`]:{paddingInlineEnd:Te}},[`&-affix-wrapper${Me}-has-feedback`]:{[`${De}`]:{paddingInlineEnd:Te}},[`&-affix-wrapper${De}-affix-wrapper`]:{padding:0,[`> textarea${De}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${De}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${De}-clear-icon`]:{position:"absolute",insetInlineEnd:Ae.paddingXS,insetBlockStart:Ae.paddingXS},[`${Me}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ae.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},Ve=Ae=>{const{componentCls:De}=Ae;return{[`${De}-out-of-range`]:{[`&, & input, & textarea, ${De}-show-count-suffix, ${De}-data-count`]:{color:Ae.colorError}}}};function pt(Ae){return(0,b.TS)(Ae,{inputAffixPadding:Ae.paddingXXS})}const st=Ae=>{const{controlHeight:De,fontSize:Te,lineHeight:Me,lineWidth:Ue,controlHeightSM:Pe,controlHeightLG:Xe,fontSizeLG:Be,lineHeightLG:Xt,paddingSM:St,controlPaddingHorizontalSM:nt,controlPaddingHorizontal:wt,colorFillAlter:lt,colorPrimaryHover:Kt,colorPrimary:Mt,controlOutlineWidth:hn,controlOutline:un,colorErrorOutline:Sr,colorWarningOutline:ii}=Ae;return{paddingBlock:Math.max(Math.round((De-Te*Me)/2*10)/10-Ue,0),paddingBlockSM:Math.max(Math.round((Pe-Te*Me)/2*10)/10-Ue,0),paddingBlockLG:Math.ceil((Xe-Be*Xt)/2*10)/10-Ue,paddingInline:St-Ue,paddingInlineSM:nt-Ue,paddingInlineLG:wt-Ue,addonBg:lt,activeBorderColor:Mt,hoverBorderColor:Kt,activeShadow:`0 0 0 ${hn}px ${un}`,errorActiveShadow:`0 0 0 ${hn}px ${Sr}`,warningActiveShadow:`0 0 0 ${hn}px ${ii}`,hoverBg:"",activeBg:""}};Y.ZP=(0,B.I$)("Input",Ae=>{const De=(0,b.TS)(Ae,pt(Ae));return[ae(De),Qe(De),xe(De),ye(De),be(De),Ve(De),(0,w.c)(De)]},st)},76745:function(yt,Y,y){"use strict";var v=y(67294);const P=(0,v.createContext)(void 0);Y.Z=P},88526:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return A}});var v=y(62906),P={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},w=P,B={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},k={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},w),timePickerLocale:Object.assign({},B)},R=k;const C="${label} is not a valid ${type}";var A={locale:"en",Pagination:v.Z,DatePicker:k,TimePicker:B,Calendar:R,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:C,method:C,array:C,object:C,number:C,date:C,boolean:C,integer:C,float:C,regexp:C,email:C,url:C,hex:C},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}}},10110:function(yt,Y,y){"use strict";var v=y(67294),P=y(76745),w=y(88526);const b=(B,V)=>{const k=v.useContext(P.Z),R=v.useMemo(()=>{var g;const A=V||w.Z[B],O=(g=k==null?void 0:k[B])!==null&&g!==void 0?g:{};return Object.assign(Object.assign({},typeof A=="function"?A():A),O||{})},[B,V,k]),C=v.useMemo(()=>{const g=k==null?void 0:k.locale;return k!=null&&k.exist&&!g?w.Z.locale:g},[k]);return[R,C]};Y.Z=b},76529:function(yt,Y,y){"use strict";y.d(Y,{J:function(){return V}});var v=y(67294),P=y(56790),w=y(4173),b=function(k,R){var C={};for(var g in k)Object.prototype.hasOwnProperty.call(k,g)&&R.indexOf(g)<0&&(C[g]=k[g]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,g=Object.getOwnPropertySymbols(k);A{const{children:C}=k,g=b(k,["children"]),A=v.useContext(B),O=v.useMemo(()=>Object.assign(Object.assign({},A),g),[A,g.prefixCls,g.mode,g.selectable,g.rootClassName]),K=(0,P.t4)(C),he=(0,P.x1)(R,K?C.ref:null);return v.createElement(B.Provider,{value:O},v.createElement(w.BR,null,K?v.cloneElement(C,{ref:he}):C))});Y.Z=B},82610:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return mn}});var v=y(72512),P=y(67294),w=y(94184),b=y.n(w),B=function(Ut,en){var Cn={};for(var lr in Ut)Object.prototype.hasOwnProperty.call(Ut,lr)&&en.indexOf(lr)<0&&(Cn[lr]=Ut[lr]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pr=0,lr=Object.getOwnPropertySymbols(Ut);pr{let Ut=0;return function(){let en=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ut+=1,`${en}${Ut}`}})(),C=null;var g=null,A=y(53124),O=function(Ut,en){var Cn={};for(var lr in Ut)Object.prototype.hasOwnProperty.call(Ut,lr)&&en.indexOf(lr)<0&&(Cn[lr]=Ut[lr]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pr=0,lr=Object.getOwnPropertySymbols(Ut);pr{const{prefixCls:en,className:Cn,dashed:lr}=Ut,pr=O(Ut,["prefixCls","className","dashed"]),{getPrefixCls:an}=P.useContext(A.E_),wr=an("menu",en),Cr=b()({[`${wr}-item-divider-dashed`]:!!lr},Cn);return P.createElement(v.iz,Object.assign({className:Cr},pr))},ae=y(50344),fe=y(98423),xe=y(61781),ye=y(96159),Qe=(0,P.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),pt=Ut=>{var en;const{className:Cn,children:lr,icon:pr,title:an,danger:wr}=Ut,{prefixCls:Cr,firstLevel:Ei,direction:vo,disableMenuItemTitleTooltip:kr,inlineCollapsed:ro}=P.useContext(Qe),qi=vn=>{const $n=P.createElement("span",{className:`${Cr}-title-content`},lr);return(!pr||(0,ye.l$)(lr)&&lr.type==="span")&&lr&&vn&&Ei&&typeof lr=="string"?P.createElement("div",{className:`${Cr}-inline-collapsed-noicon`},lr.charAt(0)):$n},{siderCollapsed:bo}=P.useContext(k);let xn=an;typeof an=="undefined"?xn=Ei?lr:"":an===!1&&(xn="");const pn={title:xn};!bo&&!ro&&(pn.title=null,pn.open=!1);const Dt=(0,ae.Z)(lr).length;let Zt=P.createElement(v.ck,Object.assign({},(0,fe.Z)(Ut,["title","icon","danger"]),{className:b()({[`${Cr}-item-danger`]:wr,[`${Cr}-item-only-child`]:(pr?Dt+1:Dt)===1},Cn),title:typeof an=="string"?an:void 0}),(0,ye.Tm)(pr,{className:b()((0,ye.l$)(pr)?(en=pr.props)===null||en===void 0?void 0:en.className:"",`${Cr}-item-icon`)}),qi(ro));return kr||(Zt=P.createElement(xe.Z,Object.assign({},pn,{placement:vo==="rtl"?"left":"right",overlayClassName:`${Cr}-inline-collapsed-tooltip`}),Zt)),Zt},st=y(87263),De=Ut=>{var en;const{popupClassName:Cn,icon:lr,title:pr,theme:an}=Ut,wr=P.useContext(Qe),{prefixCls:Cr,inlineCollapsed:Ei,theme:vo}=wr,kr=(0,v.Xl)();let ro;if(!lr)ro=Ei&&!kr.length&&pr&&typeof pr=="string"?P.createElement("div",{className:`${Cr}-inline-collapsed-noicon`},pr.charAt(0)):P.createElement("span",{className:`${Cr}-title-content`},pr);else{const xn=(0,ye.l$)(pr)&&pr.type==="span";ro=P.createElement(P.Fragment,null,(0,ye.Tm)(lr,{className:b()((0,ye.l$)(lr)?(en=lr.props)===null||en===void 0?void 0:en.className:"",`${Cr}-item-icon`)}),xn?pr:P.createElement("span",{className:`${Cr}-title-content`},pr))}const qi=P.useMemo(()=>Object.assign(Object.assign({},wr),{firstLevel:!1}),[wr]),[bo]=(0,st.Cn)("Menu");return P.createElement(Qe.Provider,{value:qi},P.createElement(v.Wd,Object.assign({},(0,fe.Z)(Ut,["icon"]),{title:ro,popupClassName:b()(Cr,Cn,`${Cr}-${an||vo}`),popupStyle:{zIndex:bo}})))},Te=y(35872),Me=y(56790),Ue=y(33603),Pe=function(Ut,en){var Cn={};for(var lr in Ut)Object.prototype.hasOwnProperty.call(Ut,lr)&&en.indexOf(lr)<0&&(Cn[lr]=Ut[lr]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pr=0,lr=Object.getOwnPropertySymbols(Ut);pr{if(en&&typeof en=="object"){const lr=en,{label:pr,children:an,key:wr,type:Cr}=lr,Ei=Pe(lr,["label","children","key","type"]),vo=wr!=null?wr:`tmp-${Cn}`;return an||Cr==="group"?Cr==="group"?P.createElement(v.BW,Object.assign({key:vo},Ei,{title:pr}),Xe(an)):P.createElement(De,Object.assign({key:vo},Ei,{title:pr}),Xe(an)):Cr==="divider"?P.createElement(he,Object.assign({key:vo},Ei)):P.createElement(pt,Object.assign({key:vo},Ei),pr)}return null}).filter(en=>en)}function Be(Ut){return P.useMemo(()=>Ut&&Xe(Ut),[Ut])}var Xt=y(76529),St=y(43109),nt=y(10274),wt=y(14747),lt=y(33507),Kt=y(48611),Mt=y(50438),hn=y(91945),un=y(45503),ii=Ut=>{const{componentCls:en,motionDurationSlow:Cn,horizontalLineHeight:lr,colorSplit:pr,lineWidth:an,lineType:wr,itemPaddingInline:Cr}=Ut;return{[`${en}-horizontal`]:{lineHeight:lr,border:0,borderBottom:`${(0,St.bf)(an)} ${wr} ${pr}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${en}-item, ${en}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Cr},[`> ${en}-item:hover, + > ${en}-item-active, + > ${en}-submenu ${en}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${en}-item, ${en}-submenu-title`]:{transition:[`border-color ${Cn}`,`background ${Cn}`].join(",")},[`${en}-submenu-arrow`]:{display:"none"}}}},Ni=Ut=>{let{componentCls:en,menuArrowOffset:Cn,calc:lr}=Ut;return{[`${en}-rtl`]:{direction:"rtl"},[`${en}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${en}-rtl${en}-vertical, + ${en}-submenu-rtl ${en}-vertical`]:{[`${en}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,St.bf)(lr(Cn).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,St.bf)(Cn)})`}}}}};const eo=Ut=>Object.assign({},(0,wt.oN)(Ut));var Is=(Ut,en)=>{const{componentCls:Cn,itemColor:lr,itemSelectedColor:pr,groupTitleColor:an,itemBg:wr,subMenuItemBg:Cr,itemSelectedBg:Ei,activeBarHeight:vo,activeBarWidth:kr,activeBarBorderWidth:ro,motionDurationSlow:qi,motionEaseInOut:bo,motionEaseOut:xn,itemPaddingInline:pn,motionDurationMid:Dt,itemHoverColor:Zt,lineType:vn,colorSplit:$n,itemDisabledColor:Ar,dangerItemColor:Dr,dangerItemHoverColor:dr,dangerItemSelectedColor:Yt,dangerItemActiveBg:wn,dangerItemSelectedBg:Qn,itemHoverBg:Mr,itemActiveBg:Wi,menuSubMenuBg:Dn,horizontalItemSelectedColor:Kn,horizontalItemSelectedBg:nr,horizontalItemBorderRadius:qr,horizontalItemHoverBg:yi,popupBg:Hr}=Ut;return{[`${Cn}-${en}, ${Cn}-${en} > ${Cn}`]:{color:lr,background:wr,[`&${Cn}-root:focus-visible`]:Object.assign({},eo(Ut)),[`${Cn}-item-group-title`]:{color:an},[`${Cn}-submenu-selected`]:{[`> ${Cn}-submenu-title`]:{color:pr}},[`${Cn}-item-disabled, ${Cn}-submenu-disabled`]:{color:`${Ar} !important`},[`${Cn}-item:not(${Cn}-item-selected):not(${Cn}-submenu-selected)`]:{[`&:hover, > ${Cn}-submenu-title:hover`]:{color:Zt}},[`&:not(${Cn}-horizontal)`]:{[`${Cn}-item:not(${Cn}-item-selected)`]:{"&:hover":{backgroundColor:Mr},"&:active":{backgroundColor:Wi}},[`${Cn}-submenu-title`]:{"&:hover":{backgroundColor:Mr},"&:active":{backgroundColor:Wi}}},[`${Cn}-item-danger`]:{color:Dr,[`&${Cn}-item:hover`]:{[`&:not(${Cn}-item-selected):not(${Cn}-submenu-selected)`]:{color:dr}},[`&${Cn}-item:active`]:{background:wn}},[`${Cn}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Cn}-item-selected`]:{color:pr,[`&${Cn}-item-danger`]:{color:Yt},["a, a:hover"]:{color:"inherit"}},[`& ${Cn}-item-selected`]:{backgroundColor:Ei,[`&${Cn}-item-danger`]:{backgroundColor:Qn}},[`${Cn}-item, ${Cn}-submenu-title`]:{[`&:not(${Cn}-item-disabled):focus-visible`]:Object.assign({},eo(Ut))},[`&${Cn}-submenu > ${Cn}`]:{backgroundColor:Dn},[`&${Cn}-popup > ${Cn}`]:{backgroundColor:Hr},[`&${Cn}-horizontal`]:Object.assign(Object.assign({},en==="dark"?{borderBottom:0}:{}),{[`> ${Cn}-item, > ${Cn}-submenu`]:{top:ro,marginTop:Ut.calc(ro).mul(-1).equal(),marginBottom:0,borderRadius:qr,"&::after":{position:"absolute",insetInline:pn,bottom:0,borderBottom:`${(0,St.bf)(vo)} solid transparent`,transition:`border-color ${qi} ${bo}`,content:'""'},["&:hover, &-active, &-open"]:{background:yi,"&::after":{borderBottomWidth:vo,borderBottomColor:Kn}},["&-selected"]:{color:Kn,backgroundColor:nr,"&:hover":{backgroundColor:nr},"&::after":{borderBottomWidth:vo,borderBottomColor:Kn}}}}),[`&${Cn}-root`]:{[`&${Cn}-inline, &${Cn}-vertical`]:{borderInlineEnd:`${(0,St.bf)(ro)} ${vn} ${$n}`}},[`&${Cn}-inline`]:{[`${Cn}-sub${Cn}-inline`]:{background:Cr},[`${Cn}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,St.bf)(kr)} solid ${pr}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Dt} ${xn}`,`opacity ${Dt} ${xn}`].join(","),content:'""'},[`&${Cn}-item-danger`]:{"&::after":{borderInlineEndColor:Yt}}},[`${Cn}-selected, ${Cn}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Dt} ${bo}`,`opacity ${Dt} ${bo}`].join(",")}}}}}};const Ns=Ut=>{const{componentCls:en,itemHeight:Cn,itemMarginInline:lr,padding:pr,menuArrowSize:an,marginXS:wr,itemMarginBlock:Cr,itemWidth:Ei}=Ut,vo=Ut.calc(an).add(pr).add(wr).equal();return{[`${en}-item`]:{position:"relative",overflow:"hidden"},[`${en}-item, ${en}-submenu-title`]:{height:Cn,lineHeight:(0,St.bf)(Cn),paddingInline:pr,overflow:"hidden",textOverflow:"ellipsis",marginInline:lr,marginBlock:Cr,width:Ei},[`> ${en}-item, + > ${en}-submenu > ${en}-submenu-title`]:{height:Cn,lineHeight:(0,St.bf)(Cn)},[`${en}-item-group-list ${en}-submenu-title, + ${en}-submenu-title`]:{paddingInlineEnd:vo}}};var Xi=Ut=>{const{componentCls:en,iconCls:Cn,itemHeight:lr,colorTextLightSolid:pr,dropdownWidth:an,controlHeightLG:wr,motionDurationMid:Cr,motionEaseOut:Ei,paddingXL:vo,itemMarginInline:kr,fontSizeLG:ro,motionDurationSlow:qi,paddingXS:bo,boxShadowSecondary:xn,collapsedWidth:pn,collapsedIconSize:Dt}=Ut,Zt={height:lr,lineHeight:(0,St.bf)(lr),listStylePosition:"inside",listStyleType:"disc"};return[{[en]:{["&-inline, &-vertical"]:Object.assign({[`&${en}-root`]:{boxShadow:"none"}},Ns(Ut))},[`${en}-submenu-popup`]:{[`${en}-vertical`]:Object.assign(Object.assign({},Ns(Ut)),{boxShadow:xn})}},{[`${en}-submenu-popup ${en}-vertical${en}-sub`]:{minWidth:an,maxHeight:`calc(100vh - ${(0,St.bf)(Ut.calc(wr).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${en}-inline`]:{width:"100%",[`&${en}-root`]:{[`${en}-item, ${en}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${qi}`,`background ${qi}`,`padding ${Cr} ${Ei}`].join(","),[`> ${en}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${en}-sub${en}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${en}-submenu > ${en}-submenu-title`]:Zt,[`& ${en}-item-group-title`]:{paddingInlineStart:vo}},[`${en}-item`]:Zt}},{[`${en}-inline-collapsed`]:{width:pn,[`&${en}-root`]:{[`${en}-item, ${en}-submenu ${en}-submenu-title`]:{[`> ${en}-inline-collapsed-noicon`]:{fontSize:ro,textAlign:"center"}}},[`> ${en}-item, + > ${en}-item-group > ${en}-item-group-list > ${en}-item, + > ${en}-item-group > ${en}-item-group-list > ${en}-submenu > ${en}-submenu-title, + > ${en}-submenu > ${en}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,St.bf)(Ut.calc(ro).div(2).equal())} - ${(0,St.bf)(kr)})`,textOverflow:"clip",[` + ${en}-submenu-arrow, + ${en}-submenu-expand-icon + `]:{opacity:0},[`${en}-item-icon, ${Cn}`]:{margin:0,fontSize:Dt,lineHeight:(0,St.bf)(lr),"+ span":{display:"inline-block",opacity:0}}},[`${en}-item-icon, ${Cn}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${en}-item-icon, ${Cn}`]:{display:"none"},"a, a:hover":{color:pr}},[`${en}-item-group-title`]:Object.assign(Object.assign({},wt.vS),{paddingInline:bo})}}]};const Yi=Ut=>{const{componentCls:en,motionDurationSlow:Cn,motionDurationMid:lr,motionEaseInOut:pr,motionEaseOut:an,iconCls:wr,iconSize:Cr,iconMarginInlineEnd:Ei}=Ut;return{[`${en}-item, ${en}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Cn}`,`background ${Cn}`,`padding ${Cn} ${pr}`].join(","),[`${en}-item-icon, ${wr}`]:{minWidth:Cr,fontSize:Cr,transition:[`font-size ${lr} ${an}`,`margin ${Cn} ${pr}`,`color ${Cn}`].join(","),"+ span":{marginInlineStart:Ei,opacity:1,transition:[`opacity ${Cn} ${pr}`,`margin ${Cn}`,`color ${Cn}`].join(",")}},[`${en}-item-icon`]:Object.assign({},(0,wt.Ro)()),[`&${en}-item-only-child`]:{[`> ${wr}, > ${en}-item-icon`]:{marginInlineEnd:0}}},[`${en}-item-disabled, ${en}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${en}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},fo=Ut=>{const{componentCls:en,motionDurationSlow:Cn,motionEaseInOut:lr,borderRadius:pr,menuArrowSize:an,menuArrowOffset:wr}=Ut;return{[`${en}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:Ut.margin,width:an,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Cn} ${lr}, opacity ${Cn}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ut.calc(an).mul(.6).equal(),height:Ut.calc(an).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:pr,transition:[`background ${Cn} ${lr}`,`transform ${Cn} ${lr}`,`top ${Cn} ${lr}`,`color ${Cn} ${lr}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,St.bf)(Ut.calc(wr).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,St.bf)(wr)})`}}}}},di=Ut=>{const{antCls:en,componentCls:Cn,fontSize:lr,motionDurationSlow:pr,motionDurationMid:an,motionEaseInOut:wr,paddingXS:Cr,padding:Ei,colorSplit:vo,lineWidth:kr,zIndexPopup:ro,borderRadiusLG:qi,subMenuItemBorderRadius:bo,menuArrowSize:xn,menuArrowOffset:pn,lineType:Dt,menuPanelMaskInset:Zt,groupTitleLineHeight:vn,groupTitleFontSize:$n}=Ut;return[{"":{[`${Cn}`]:Object.assign(Object.assign({},(0,wt.dF)()),{["&-hidden"]:{display:"none"}})},[`${Cn}-submenu-hidden`]:{display:"none"}},{[Cn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,wt.Wf)(Ut)),(0,wt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:lr,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${pr} cubic-bezier(0.2, 0, 0, 1) 0s`,["ul, ol"]:{margin:0,padding:0,listStyle:"none"},["&-overflow"]:{display:"flex",[`${Cn}-item`]:{flex:"none"}},[`${Cn}-item, ${Cn}-submenu, ${Cn}-submenu-title`]:{borderRadius:Ut.itemBorderRadius},[`${Cn}-item-group-title`]:{padding:`${(0,St.bf)(Cr)} ${(0,St.bf)(Ei)}`,fontSize:$n,lineHeight:vn,transition:`all ${pr}`},[`&-horizontal ${Cn}-submenu`]:{transition:[`border-color ${pr} ${wr}`,`background ${pr} ${wr}`].join(",")},[`${Cn}-submenu, ${Cn}-submenu-inline`]:{transition:[`border-color ${pr} ${wr}`,`background ${pr} ${wr}`,`padding ${an} ${wr}`].join(",")},[`${Cn}-submenu ${Cn}-sub`]:{cursor:"initial",transition:[`background ${pr} ${wr}`,`padding ${pr} ${wr}`].join(",")},[`${Cn}-title-content`]:{transition:`color ${pr}`,[`> ${en}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${Cn}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Cn}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:vo,borderStyle:Dt,borderWidth:0,borderTopWidth:kr,marginBlock:kr,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Yi(Ut)),{[`${Cn}-item-group`]:{[`${Cn}-item-group-list`]:{margin:0,padding:0,[`${Cn}-item, ${Cn}-submenu-title`]:{paddingInline:`${(0,St.bf)(Ut.calc(lr).mul(2).equal())} ${(0,St.bf)(Ei)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ro,borderRadius:qi,boxShadow:"none",transformOrigin:"0 0",[`&${Cn}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${(0,St.bf)(Zt)} 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Zt},[` &-placement-leftTop, &-placement-bottomRight, `]:{transformOrigin:"100% 0"},[` @@ -7983,97 +7929,97 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter `]:{transformOrigin:"0 0"},[` &-placement-leftTop, &-placement-leftBottom - `]:{paddingInlineEnd:zt.paddingXS},[` + `]:{paddingInlineEnd:Ut.paddingXS},[` &-placement-rightTop, &-placement-rightBottom - `]:{paddingInlineStart:zt.paddingXS},[` + `]:{paddingInlineStart:Ut.paddingXS},[` &-placement-topRight, &-placement-topLeft - `]:{paddingBottom:zt.paddingXS},[` + `]:{paddingBottom:Ut.paddingXS},[` &-placement-bottomRight, &-placement-bottomLeft - `]:{paddingTop:zt.paddingXS},[`> ${yn}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ji},qi(zt)),co(zt)),{[`${yn}-item, ${yn}-submenu > ${yn}-submenu-title`]:{borderRadius:bo},[`${yn}-submenu-title::after`]:{transition:`transform ${vr} ${wr}`}})}}),co(zt)),{[`&-inline-collapsed ${yn}-submenu-arrow, - &-inline ${yn}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,St.bf)(fn)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,St.bf)(zt.calc(fn).mul(-1).equal())})`}},[`${yn}-submenu-open${yn}-submenu-inline > ${yn}-submenu-title > ${yn}-submenu-arrow`]:{transform:`translateY(${(0,St.bf)(zt.calc(xn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,St.bf)(zt.calc(fn).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,St.bf)(fn)})`}}})},{[`${Jt}-layout-header`]:{[yn]:{lineHeight:"inherit"}}}]},Ms=zt=>{const{colorPrimary:Jt,colorError:yn,colorTextDisabled:fr,colorErrorBg:vr,colorText:pn,colorTextDescription:wr,colorBgContainer:Sr,colorFillAlter:Ai,colorFillContent:mo,lineWidth:Fr,lineWidthBold:to,controlItemBgActive:Ji,colorBgTextHover:bo,controlHeightLG:xn,lineHeight:fn,colorBgElevated:It,marginXXS:Zt,padding:gn,fontSize:$n,controlHeightSM:Ar,fontSizeLG:Dr,colorTextLightSolid:dr,colorErrorHover:Xt}=zt,Cn=new nt.C(dr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:zt.zIndexPopupBase+50,radiusItem:zt.borderRadiusLG,itemBorderRadius:zt.borderRadiusLG,radiusSubMenuItem:zt.borderRadiusSM,subMenuItemBorderRadius:zt.borderRadiusSM,colorItemText:pn,itemColor:pn,colorItemTextHover:pn,itemHoverColor:pn,colorItemTextHoverHorizontal:Jt,horizontalItemHoverColor:Jt,colorGroupTitle:wr,groupTitleColor:wr,colorItemTextSelected:Jt,itemSelectedColor:Jt,colorItemTextSelectedHorizontal:Jt,horizontalItemSelectedColor:Jt,colorItemBg:Sr,itemBg:Sr,colorItemBgHover:bo,itemHoverBg:bo,colorItemBgActive:mo,itemActiveBg:Ji,colorSubItemBg:Ai,subMenuItemBg:Ai,colorItemBgSelected:Ji,itemSelectedBg:Ji,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:to,activeBarHeight:to,colorActiveBarBorderSize:Fr,activeBarBorderWidth:Fr,colorItemTextDisabled:fr,itemDisabledColor:fr,colorDangerItemText:yn,dangerItemColor:yn,colorDangerItemTextHover:yn,dangerItemHoverColor:yn,colorDangerItemTextSelected:yn,dangerItemSelectedColor:yn,colorDangerItemBgActive:vr,dangerItemActiveBg:vr,colorDangerItemBgSelected:vr,dangerItemSelectedBg:vr,itemMarginInline:zt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:xn,groupTitleLineHeight:fn,collapsedWidth:xn*2,popupBg:It,itemMarginBlock:Zt,itemPaddingInline:gn,horizontalLineHeight:`${xn*1.15}px`,iconSize:$n,iconMarginInlineEnd:Ar-$n,collapsedIconSize:Dr,groupTitleFontSize:$n,darkItemDisabledColor:new nt.C(dr).setAlpha(.25).toRgbString(),darkItemColor:Cn,darkDangerItemColor:yn,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:dr,darkItemSelectedBg:Jt,darkDangerItemSelectedBg:yn,darkItemHoverBg:"transparent",darkGroupTitleColor:Cn,darkItemHoverColor:dr,darkDangerItemHoverColor:Xt,darkDangerItemSelectedColor:dr,darkDangerItemActiveBg:yn,itemWidth:""}},In=zt=>Object.assign(Object.assign({},zt),{itemWidth:zt.activeBarWidth?`calc(100% + ${zt.activeBarBorderWidth}px)`:`calc(100% - ${zt.itemMarginInline*2}px)`});var et=function(zt){let Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zt,yn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,an.I$)("Menu",vr=>{const{colorBgElevated:pn,colorPrimary:wr,colorTextLightSolid:Sr,controlHeightLG:Ai,fontSize:mo,darkItemColor:Fr,darkDangerItemColor:to,darkItemBg:Ji,darkSubMenuItemBg:bo,darkItemSelectedColor:xn,darkItemSelectedBg:fn,darkDangerItemSelectedBg:It,darkItemHoverBg:Zt,darkGroupTitleColor:gn,darkItemHoverColor:$n,darkItemDisabledColor:Ar,darkDangerItemHoverColor:Dr,darkDangerItemSelectedColor:dr,darkDangerItemActiveBg:Xt}=vr,Cn=vr.calc(mo).div(7).mul(5).equal(),er=(0,cn.TS)(vr,{menuArrowSize:Cn,menuHorizontalHeight:vr.calc(Ai).mul(1.15).equal(),menuArrowOffset:vr.calc(Cn).mul(.25).equal(),menuPanelMaskInset:-7,menuSubMenuBg:pn,calc:vr.calc}),Mr=(0,cn.TS)(er,{itemColor:Fr,itemHoverColor:$n,groupTitleColor:gn,itemSelectedColor:xn,itemBg:Ji,popupBg:Ji,subMenuItemBg:bo,itemActiveBg:"transparent",itemSelectedBg:fn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Zt,itemDisabledColor:Ar,dangerItemColor:to,dangerItemHoverColor:Dr,dangerItemSelectedColor:dr,dangerItemActiveBg:Xt,dangerItemSelectedBg:It,menuSubMenuBg:bo,horizontalItemSelectedColor:Sr,horizontalItemSelectedBg:wr});return[fi(er),ii(er),Gi(er),Ts(er,"light"),Ts(Mr,"dark"),Ni(er),(0,lt.Z)(er),(0,Gt.oN)(er,"slide-up"),(0,Gt.oN)(er,"slide-down"),(0,Rt._y)(er,"zoom-big")]},Ms,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],format:In,injectStyle:yn,unitless:{groupTitleLineHeight:!0}})(zt,Jt)},Dt=_(20170),$t=function(zt,Jt){var yn={};for(var fr in zt)Object.prototype.hasOwnProperty.call(zt,fr)&&Jt.indexOf(fr)<0&&(yn[fr]=zt[fr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vr=0,fr=Object.getOwnPropertySymbols(zt);vr{var yn,fr;const vr=R.useContext(Kt.Z),pn=vr||{},{getPrefixCls:wr,getPopupContainer:Sr,direction:Ai,menu:mo}=R.useContext(A.E_),Fr=wr(),{prefixCls:to,className:Ji,style:bo,theme:xn="light",expandIcon:fn,_internalDisableMenuItemTitleTooltip:It,inlineCollapsed:Zt,siderCollapsed:gn,items:$n,children:Ar,rootClassName:Dr,mode:dr,selectable:Xt,onClick:Cn,overflowedIndicatorPopupClassName:er}=zt,Mr=$t(zt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ji=(0,ve.Z)(Mr,["collapsedWidth"]),An=ze($n)||Ar;(yn=pn.validator)===null||yn===void 0||yn.call(pn,{mode:dr});const Xn=(0,Re.zX)(function(){var rs;Cn==null||Cn.apply(void 0,arguments),(rs=pn.onClick)===null||rs===void 0||rs.call(pn)}),nr=pn.mode||dr,qr=Xt!=null?Xt:pn.selectable,vi=R.useMemo(()=>gn!==void 0?gn:Zt,[Zt,gn]),Hr={horizontal:{motionName:`${Fr}-slide-up`},inline:(0,$e.Z)(Fr),other:{motionName:`${Fr}-zoom-big`}},di=wr("menu",to||pn.prefixCls),gi=(0,Dt.Z)(di),[mi,Bi]=et(di,gi,!vr),zr=b()(`${di}-${xn}`,mo==null?void 0:mo.className,Ji);let Xr;if(typeof fn=="function")Xr=fn;else if(fn===null||fn===!1)Xr=null;else if(pn.expandIcon===null||pn.expandIcon===!1)Xr=null;else{const rs=fn!=null?fn:pn.expandIcon;Xr=(0,_e.Tm)(rs,{className:b()(`${di}-submenu-expand-icon`,(0,_e.l$)(rs)?(fr=rs.props)===null||fr===void 0?void 0:fr.className:"")})}const Qi=R.useMemo(()=>({prefixCls:di,inlineCollapsed:vi||!1,direction:Ai,firstLevel:!0,theme:xn,mode:nr,disableMenuItemTitleTooltip:It}),[di,vi,Ai,It,xn]);return mi(R.createElement(Kt.Z.Provider,{value:null},R.createElement(ot.Provider,{value:Qi},R.createElement(v.ZP,Object.assign({getPopupContainer:Sr,overflowedIndicator:R.createElement(Ae.Z,null),overflowedIndicatorPopupClassName:b()(di,`${di}-${xn}`,er),mode:nr,selectable:qr,onClick:Xn},ji,{inlineCollapsed:vi,style:Object.assign(Object.assign({},mo==null?void 0:mo.style),bo),className:zr,prefixCls:di,direction:Ai,defaultMotions:Hr,expandIcon:Xr,ref:Jt,rootClassName:b()(Dr,Bi,pn.rootClassName,gi)}),An))))});const kn=(0,R.forwardRef)((zt,Jt)=>{const yn=(0,R.useRef)(null),fr=R.useContext(k);return(0,R.useImperativeHandle)(Jt,()=>({menu:yn.current,focus:vr=>{var pn;(pn=yn.current)===null||pn===void 0||pn.focus(vr)}})),R.createElement(gr,Object.assign({ref:yn},zt,fr))});kn.Item=vt,kn.SubMenu=De,kn.Divider=ce,kn.ItemGroup=v.BW;var bn=kn},78285:function(_t,Y,_){"use strict";_.d(Y,{ZP:function(){return Xt}});var v=_(40877),R=_(77617),w=_(41522),b=_(62719),B=_(95934),V=_(48796),k=_(86850),M=_(37748),C=_(38521),g=_(12124),A=_.n(g),O=_(61860),K=_(33649),ce=_(36439),de=_(79161),ve=_(61796),Ee=_(35005),_e=_(44516),we=_(84821),ot=R.forwardRef(function(Cn,er){var Mr=Cn.prefixCls,ji=Cn.style,An=Cn.className,Xn=Cn.duration,nr=Xn===void 0?4.5:Xn,qr=Cn.eventKey,vi=Cn.content,Hr=Cn.closable,di=Cn.closeIcon,gi=di===void 0?"x":di,mi=Cn.props,Bi=Cn.onClick,zr=Cn.onNoticeClose,Xr=Cn.times,Qi=Cn.hovering,rs=R.useState(!1),Ur=(0,O.Z)(rs,2),gs=Ur[0],Kr=Ur[1],ri=Qi||gs,is=function(){zr(qr)},Jr=function(es){(es.key==="Enter"||es.code==="Enter"||es.keyCode===we.Z.ENTER)&&is()};R.useEffect(function(){if(!ri&&nr>0){var Br=setTimeout(function(){is()},nr*1e3);return function(){clearTimeout(Br)}}},[nr,ri,Xr]);var _n="".concat(Mr,"-notice");return R.createElement("div",(0,ve.Z)({},mi,{ref:er,className:A()(_n,An,(0,Ee.Z)({},"".concat(_n,"-closable"),Hr)),style:ji,onMouseEnter:function(es){var ko;Kr(!0),mi==null||(ko=mi.onMouseEnter)===null||ko===void 0||ko.call(mi,es)},onMouseLeave:function(es){var ko;Kr(!1),mi==null||(ko=mi.onMouseLeave)===null||ko===void 0||ko.call(mi,es)},onClick:Bi}),R.createElement("div",{className:"".concat(_n,"-content")},vi),Hr&&R.createElement("a",{tabIndex:0,className:"".concat(_n,"-close"),onKeyDown:Jr,onClick:function(es){es.preventDefault(),es.stopPropagation(),is()}},gi))}),He=ot,vt=R.createContext({}),dt=function(er){var Mr=er.children,ji=er.classNames;return R.createElement(vt.Provider,{value:{classNames:ji}},Mr)},Pe=dt,De=_(96522),Ae=8,Re=3,$e=16,Ie=function(er){var Mr={offset:Ae,threshold:Re,gap:$e};if(er&&(0,De.Z)(er)==="object"){var ji,An,Xn;Mr.offset=(ji=er.offset)!==null&&ji!==void 0?ji:Ae,Mr.threshold=(An=er.threshold)!==null&&An!==void 0?An:Re,Mr.gap=(Xn=er.gap)!==null&&Xn!==void 0?Xn:$e}return[!!er,Mr]},Xe=Ie,ze=["className","style","classNames","styles"],Kt=function(er){var Mr,ji=er.configList,An=er.placement,Xn=er.prefixCls,nr=er.className,qr=er.style,vi=er.motion,Hr=er.onAllNoticeRemoved,di=er.onNoticeClose,gi=er.stack,mi=(0,R.useContext)(vt),Bi=mi.classNames,zr=(0,R.useRef)({}),Xr=(0,R.useState)(null),Qi=(0,O.Z)(Xr,2),rs=Qi[0],Ur=Qi[1],gs=(0,R.useState)([]),Kr=(0,O.Z)(gs,2),ri=Kr[0],is=Kr[1],Jr=ji.map(function(Ti){return{config:Ti,key:String(Ti.key)}}),_n=Xe(gi),Br=(0,O.Z)(_n,2),es=Br[0],ko=Br[1],vs=ko.offset,Ba=ko.threshold,uo=ko.gap,ca=es&&(ri.length>0||Jr.length<=Ba),ll=typeof vi=="function"?vi(An):vi;return(0,R.useEffect)(function(){es&&ri.length>1&&is(function(Ti){return Ti.filter(function(Li){return Jr.some(function(eo){var Eo=eo.key;return Li===Eo})})})},[ri,Jr,es]),(0,R.useEffect)(function(){var Ti;if(es&&zr.current[(Ti=Jr[Jr.length-1])===null||Ti===void 0?void 0:Ti.key]){var Li;Ur(zr.current[(Li=Jr[Jr.length-1])===null||Li===void 0?void 0:Li.key])}},[Jr,es]),R.createElement(_e.V4,(0,ve.Z)({key:An,className:A()(Xn,"".concat(Xn,"-").concat(An),Bi==null?void 0:Bi.list,nr,(Mr={},(0,Ee.Z)(Mr,"".concat(Xn,"-stack"),!!es),(0,Ee.Z)(Mr,"".concat(Xn,"-stack-expanded"),ca),Mr)),style:qr,keys:Jr,motionAppear:!0},ll,{onAllRemoved:function(){Hr(An)}}),function(Ti,Li){var eo=Ti.config,Eo=Ti.className,hs=Ti.style,Wn=Ti.index,yo=eo,Qo=yo.key,os=yo.times,Ko=String(Qo),Yn=eo,kr=Yn.className,Gr=Yn.style,je=Yn.classNames,ut=Yn.styles,ht=(0,K.Z)(Yn,ze),Ue=Jr.findIndex(function(Ns){return Ns.key===Ko}),ft={};if(es){var Pt=Jr.length-1-(Ue>-1?Ue:Wn-1),ln=An==="top"||An==="bottom"?"-50%":"0";if(Pt>0){var sr,Zr,Ui;ft.height=ca?(sr=zr.current[Ko])===null||sr===void 0?void 0:sr.offsetHeight:rs==null?void 0:rs.offsetHeight;for(var To=0,Vi=0;Vi-1?zr.current[Ko]=Lo:delete zr.current[Ko]},prefixCls:Xn,classNames:je,styles:ut,className:A()(kr,Bi==null?void 0:Bi.notice),style:Gr,times:os,key:Qo,eventKey:Qo,onNoticeClose:di,hovering:es&&ri.length>0})))})},St=Kt,nt=R.forwardRef(function(Cn,er){var Mr=Cn.prefixCls,ji=Mr===void 0?"rc-notification":Mr,An=Cn.container,Xn=Cn.motion,nr=Cn.maxCount,qr=Cn.className,vi=Cn.style,Hr=Cn.onAllRemoved,di=Cn.stack,gi=Cn.renderNotifications,mi=R.useState([]),Bi=(0,O.Z)(mi,2),zr=Bi[0],Xr=Bi[1],Qi=function(Br){var es,ko=zr.find(function(vs){return vs.key===Br});ko==null||(es=ko.onClose)===null||es===void 0||es.call(ko),Xr(function(vs){return vs.filter(function(Ba){return Ba.key!==Br})})};R.useImperativeHandle(er,function(){return{open:function(Br){Xr(function(es){var ko=(0,v.Z)(es),vs=ko.findIndex(function(ca){return ca.key===Br.key}),Ba=(0,ce.Z)({},Br);if(vs>=0){var uo;Ba.times=(((uo=es[vs])===null||uo===void 0?void 0:uo.times)||0)+1,ko[vs]=Ba}else Ba.times=0,ko.push(Ba);return nr>0&&ko.length>nr&&(ko=ko.slice(-nr)),ko})},close:function(Br){Qi(Br)},destroy:function(){Xr([])}}});var rs=R.useState({}),Ur=(0,O.Z)(rs,2),gs=Ur[0],Kr=Ur[1];R.useEffect(function(){var _n={};zr.forEach(function(Br){var es=Br.placement,ko=es===void 0?"topRight":es;ko&&(_n[ko]=_n[ko]||[],_n[ko].push(Br))}),Object.keys(gs).forEach(function(Br){_n[Br]=_n[Br]||[]}),Kr(_n)},[zr]);var ri=function(Br){Kr(function(es){var ko=(0,ce.Z)({},es),vs=ko[Br]||[];return vs.length||delete ko[Br],ko})},is=R.useRef(!1);if(R.useEffect(function(){Object.keys(gs).length>0?is.current=!0:is.current&&(Hr==null||Hr(),is.current=!1)},[gs]),!An)return null;var Jr=Object.keys(gs);return(0,de.createPortal)(R.createElement(R.Fragment,null,Jr.map(function(_n){var Br=gs[_n],es=R.createElement(St,{key:_n,configList:Br,placement:_n,prefixCls:ji,className:qr==null?void 0:qr(_n),style:vi==null?void 0:vi(_n),motion:Xn,onNoticeClose:Qi,onAllNoticeRemoved:ri,stack:di});return gi?gi(es,{prefixCls:ji,key:_n}):es})),An)}),Ct=nt,lt=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Gt=function(){return document.body},Rt=0;function an(){for(var Cn={},er=arguments.length,Mr=new Array(er),ji=0;ji0&&arguments[0]!==void 0?arguments[0]:{},er=Cn.getContainer,Mr=er===void 0?Gt:er,ji=Cn.motion,An=Cn.prefixCls,Xn=Cn.maxCount,nr=Cn.className,qr=Cn.style,vi=Cn.onAllRemoved,Hr=Cn.stack,di=Cn.renderNotifications,gi=(0,K.Z)(Cn,lt),mi=R.useState(),Bi=(0,O.Z)(mi,2),zr=Bi[0],Xr=Bi[1],Qi=R.useRef(),rs=R.createElement(Ct,{container:zr,ref:Qi,prefixCls:An,motion:ji,maxCount:Xn,className:nr,style:qr,onAllRemoved:vi,stack:Hr,renderNotifications:di}),Ur=R.useState([]),gs=(0,O.Z)(Ur,2),Kr=gs[0],ri=gs[1],is=R.useMemo(function(){return{open:function(_n){var Br=an(gi,_n);(Br.key===null||Br.key===void 0)&&(Br.key="rc-notification-".concat(Rt),Rt+=1),ri(function(es){return[].concat((0,v.Z)(es),[{type:"open",config:Br}])})},close:function(_n){ri(function(Br){return[].concat((0,v.Z)(Br),[{type:"close",key:_n}])})},destroy:function(){ri(function(_n){return[].concat((0,v.Z)(_n),[{type:"destroy"}])})}}},[]);return R.useEffect(function(){Xr(Mr())}),R.useEffect(function(){Qi.current&&Kr.length&&(Kr.forEach(function(Jr){switch(Jr.type){case"open":Qi.current.open(Jr.config);break;case"close":Qi.current.close(Jr.key);break;case"destroy":Qi.current.destroy();break}}),ri(function(Jr){return Jr.filter(function(_n){return!Kr.includes(_n)})}))},[Kr]),[is,rs]}var Cr=_(51059),ii=_(36646),Pi=_(3966),Ni=_(35772),Yi=_(67859),ti=_(80172);const Ts=Cn=>{const{componentCls:er,iconCls:Mr,boxShadow:ji,colorText:An,colorSuccess:Xn,colorError:nr,colorWarning:qr,colorInfo:vi,fontSizeLG:Hr,motionEaseInOutCirc:di,motionDurationSlow:gi,marginXS:mi,paddingXS:Bi,borderRadiusLG:zr,zIndexPopup:Xr,contentPadding:Qi,contentBg:rs}=Cn,Ur=`${er}-notice`,gs=new ii.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:Bi,transform:"translateY(0)",opacity:1}}),Kr=new ii.E4("MessageMoveOut",{"0%":{maxHeight:Cn.height,padding:Bi,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),ri={padding:Bi,textAlign:"center",[`${er}-custom-content > ${Mr}`]:{verticalAlign:"text-bottom",marginInlineEnd:mi,fontSize:Hr},[`${Ur}-content`]:{display:"inline-block",padding:Qi,background:rs,borderRadius:zr,boxShadow:ji,pointerEvents:"all"},[`${er}-success > ${Mr}`]:{color:Xn},[`${er}-error > ${Mr}`]:{color:nr},[`${er}-warning > ${Mr}`]:{color:qr},[`${er}-info > ${Mr}, - ${er}-loading > ${Mr}`]:{color:vi}};return[{[er]:Object.assign(Object.assign({},(0,Ni.Wf)(Cn)),{color:An,position:"fixed",top:mi,width:"100%",pointerEvents:"none",zIndex:Xr,[`${er}-move-up`]:{animationFillMode:"forwards"},[` - ${er}-move-up-appear, - ${er}-move-up-enter - `]:{animationName:gs,animationDuration:gi,animationPlayState:"paused",animationTimingFunction:di},[` - ${er}-move-up-appear${er}-move-up-appear-active, - ${er}-move-up-enter${er}-move-up-enter-active - `]:{animationPlayState:"running"},[`${er}-move-up-leave`]:{animationName:Kr,animationDuration:gi,animationPlayState:"paused",animationTimingFunction:di},[`${er}-move-up-leave${er}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[er]:{[`${Ur}-wrapper`]:Object.assign({},ri)}},{[`${er}-notice-pure-panel`]:Object.assign(Object.assign({},ri),{padding:0,textAlign:"start"})}]},Bs=Cn=>({zIndexPopup:Cn.zIndexPopupBase+Pi.u6+10,contentBg:Cn.colorBgElevated,contentPadding:`${(Cn.controlHeightLG-Cn.fontSize*Cn.lineHeight)/2}px ${Cn.paddingSM}px`});var Ce=(0,Yi.I$)("Message",Cn=>{const er=(0,ti.TS)(Cn,{height:150});return[Ts(er)]},Bs),Gi=_(20170),qi=function(Cn,er){var Mr={};for(var ji in Cn)Object.prototype.hasOwnProperty.call(Cn,ji)&&er.indexOf(ji)<0&&(Mr[ji]=Cn[ji]);if(Cn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,ji=Object.getOwnPropertySymbols(Cn);An{let{prefixCls:er,type:Mr,icon:ji,children:An}=Cn;return R.createElement("div",{className:A()(`${er}-custom-content`,`${er}-${Mr}`)},ji||co[Mr],R.createElement("span",null,An))};var In=Cn=>{const{prefixCls:er,className:Mr,type:ji,icon:An,content:Xn}=Cn,nr=qi(Cn,["prefixCls","className","type","icon","content"]),{getPrefixCls:qr}=R.useContext(Cr.E_),vi=er||qr("message"),Hr=(0,Gi.Z)(vi),[di,gi]=Ce(vi,Hr);return di(R.createElement(He,Object.assign({},nr,{prefixCls:vi,className:A()(Mr,gi,`${vi}-notice-pure-panel`,Hr),eventKey:"pure",duration:null,content:R.createElement(fi,{prefixCls:vi,type:ji,icon:An},Xn)})))},et=_(49934),Dt=_(50905);function $t(Cn,er){return{motionName:er!=null?er:`${Cn}-move-up`}}function Dn(Cn){let er;const Mr=new Promise(An=>{er=Cn(()=>{An(!0)})}),ji=()=>{er==null||er()};return ji.then=(An,Xn)=>Mr.then(An,Xn),ji.promise=Mr,ji}var gr=function(Cn,er){var Mr={};for(var ji in Cn)Object.prototype.hasOwnProperty.call(Cn,ji)&&er.indexOf(ji)<0&&(Mr[ji]=Cn[ji]);if(Cn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,ji=Object.getOwnPropertySymbols(Cn);An{let{children:er,prefixCls:Mr}=Cn;const[ji,An]=Ce(Mr);return ji(R.createElement(Pe,{classNames:{list:An,notice:An}},er))},Jt=(Cn,er)=>{let{prefixCls:Mr,key:ji}=er;return R.createElement(zt,{prefixCls:Mr,key:ji},Cn)},yn=R.forwardRef((Cn,er)=>{const{top:Mr,prefixCls:ji,getContainer:An,maxCount:Xn,duration:nr=bn,rtl:qr,transitionName:vi,onAllRemoved:Hr}=Cn,{getPrefixCls:di,getPopupContainer:gi,message:mi}=R.useContext(Cr.E_),Bi=ji||di("message"),zr=()=>({left:"50%",transform:"translateX(-50%)",top:Mr!=null?Mr:kn}),Xr=()=>A()({[`${Bi}-rtl`]:qr}),Qi=()=>$t(Bi,vi),rs=R.createElement("span",{className:`${Bi}-close-x`},R.createElement(et.Z,{className:`${Bi}-close-icon`})),[Ur,gs]=cn({prefixCls:Bi,style:zr,className:Xr,motion:Qi,closable:!1,closeIcon:rs,duration:nr,getContainer:()=>(An==null?void 0:An())||(gi==null?void 0:gi())||document.body,maxCount:Xn,onAllRemoved:Hr,renderNotifications:Jt});return R.useImperativeHandle(er,()=>Object.assign(Object.assign({},Ur),{prefixCls:Bi,message:mi})),gs});let fr=0;function vr(Cn){const er=R.useRef(null),Mr=(0,Dt.ln)("Message");return[R.useMemo(()=>{const An=Hr=>{var di;(di=er.current)===null||di===void 0||di.close(Hr)},Xn=Hr=>{if(!er.current){const Jr=()=>{};return Jr.then=()=>{},Jr}const{open:di,prefixCls:gi,message:mi}=er.current,Bi=`${gi}-notice`,{content:zr,icon:Xr,type:Qi,key:rs,className:Ur,style:gs,onClose:Kr}=Hr,ri=gr(Hr,["content","icon","type","key","className","style","onClose"]);let is=rs;return is==null&&(fr+=1,is=`antd-message-${fr}`),Dn(Jr=>(di(Object.assign(Object.assign({},ri),{key:is,content:R.createElement(fi,{prefixCls:gi,type:Qi,icon:Xr},zr),placement:"top",className:A()(Qi&&`${Bi}-${Qi}`,Ur,mi==null?void 0:mi.className),style:Object.assign(Object.assign({},mi==null?void 0:mi.style),gs),onClose:()=>{Kr==null||Kr(),Jr()}})),()=>{An(is)}))},qr={open:Xn,destroy:Hr=>{var di;Hr!==void 0?An(Hr):(di=er.current)===null||di===void 0||di.destroy()}};return["info","success","warning","error","loading"].forEach(Hr=>{const di=(gi,mi,Bi)=>{let zr;gi&&typeof gi=="object"&&"content"in gi?zr=gi:zr={content:gi};let Xr,Qi;typeof mi=="function"?Qi=mi:(Xr=mi,Qi=Bi);const rs=Object.assign(Object.assign({onClose:Qi,duration:Xr},zr),{type:Hr});return Xn(rs)};qr[Hr]=di}),qr},[]),R.createElement(yn,Object.assign({key:"message-holder"},Cn,{ref:er}))]}function pn(Cn){return vr(Cn)}let wr=null,Sr=Cn=>Cn(),Ai=[],mo={};function Fr(){const{prefixCls:Cn,getContainer:er,duration:Mr,rtl:ji,maxCount:An,top:Xn}=mo,nr=Cn!=null?Cn:(0,b.w6)().getPrefixCls("message"),qr=(er==null?void 0:er())||document.body;return{prefixCls:nr,getContainer:()=>qr,duration:Mr,rtl:ji,maxCount:An,top:Xn}}const to=R.forwardRef((Cn,er)=>{const[Mr,ji]=R.useState(Fr),[An,Xn]=vr(Mr),nr=(0,b.w6)(),qr=nr.getRootPrefixCls(),vi=nr.getIconPrefixCls(),Hr=nr.getTheme(),di=()=>{ji(Fr)};return R.useEffect(di,[]),R.useImperativeHandle(er,()=>{const gi=Object.assign({},An);return Object.keys(gi).forEach(mi=>{gi[mi]=function(){return di(),An[mi].apply(An,arguments)}}),{instance:gi,sync:di}}),R.createElement(b.ZP,{prefixCls:qr,iconPrefixCls:vi,theme:Hr},Xn)});function Ji(){if(!wr){const Cn=document.createDocumentFragment(),er={fragment:Cn};wr=er,Sr(()=>{(0,w.s)(R.createElement(to,{ref:Mr=>{const{instance:ji,sync:An}=Mr||{};Promise.resolve().then(()=>{!er.instance&&ji&&(er.instance=ji,er.sync=An,Ji())})}}),Cn)});return}wr.instance&&(Ai.forEach(Cn=>{const{type:er,skipped:Mr}=Cn;if(!Mr)switch(er){case"open":{Sr(()=>{const ji=wr.instance.open(Object.assign(Object.assign({},mo),Cn.config));ji==null||ji.then(Cn.resolve),Cn.setCloseFn(ji)});break}case"destroy":Sr(()=>{wr==null||wr.instance.destroy(Cn.key)});break;default:Sr(()=>{var ji;const An=(ji=wr.instance)[er].apply(ji,(0,v.Z)(Cn.args));An==null||An.then(Cn.resolve),Cn.setCloseFn(An)})}}),Ai=[])}function bo(Cn){mo=Object.assign(Object.assign({},mo),Cn),Sr(()=>{var er;(er=wr==null?void 0:wr.sync)===null||er===void 0||er.call(wr)})}function xn(Cn){const er=Dn(Mr=>{let ji;const An={type:"open",config:Cn,resolve:Mr,setCloseFn:Xn=>{ji=Xn}};return Ai.push(An),()=>{ji?Sr(()=>{ji()}):An.skipped=!0}});return Ji(),er}function fn(Cn,er){const Mr=Dn(ji=>{let An;const Xn={type:Cn,args:er,resolve:ji,setCloseFn:nr=>{An=nr}};return Ai.push(Xn),()=>{An?Sr(()=>{An()}):Xn.skipped=!0}});return Ji(),Mr}function It(Cn){Ai.push({type:"destroy",key:Cn}),Ji()}const Zt=["success","info","warning","error","loading"],$n={open:xn,destroy:It,config:bo,useMessage:pn,_InternalPanelDoNotUseOrYouWillBeFired:In};Zt.forEach(Cn=>{$n[Cn]=function(){for(var er=arguments.length,Mr=new Array(er),ji=0;ji{};let Dr=null,dr=null;var Xt=$n},33096:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return hs}});var v=_(40877),R=_(41522),w=_(77617),b=_(62719),B=_(95934),V=_(48796),k=_(86850),M=_(37748),C=_(12124),g=_.n(C),A=_(3966),O=_(82395),K=_(66951),ce=_(57947),de=_(14019);const ve=w.createContext({}),{Provider:Ee}=ve;var we=()=>{const{autoFocusButton:Wn,cancelButtonProps:yo,cancelTextLocale:Qo,isSilent:os,mergedOkCancel:Ko,rootPrefixCls:Yn,close:kr,onCancel:Gr,onConfirm:je}=(0,w.useContext)(ve);return Ko?w.createElement(de.Z,{isSilent:os,actionFn:Gr,close:function(){kr==null||kr.apply(void 0,arguments),je==null||je(!1)},autoFocus:Wn==="cancel",buttonProps:yo,prefixCls:`${Yn}-btn`},Qo):null},He=()=>{const{autoFocusButton:Wn,close:yo,isSilent:Qo,okButtonProps:os,rootPrefixCls:Ko,okTextLocale:Yn,okType:kr,onConfirm:Gr,onOk:je}=(0,w.useContext)(ve);return w.createElement(de.Z,{isSilent:Qo,type:kr||"primary",actionFn:je,close:function(){yo==null||yo.apply(void 0,arguments),Gr==null||Gr(!0)},autoFocus:Wn==="ok",buttonProps:os,prefixCls:`${Ko}-btn`},Yn)},vt=_(49934),dt=_(61796),Pe=_(61860),De=_(43403),Ae=w.createContext({}),Re=_(36439),$e=_(99569),Ie=_(57901),Xe=_(84821),ze=_(3286);function Kt(Wn,yo,Qo){var os=yo;return!os&&Qo&&(os="".concat(Wn,"-").concat(Qo)),os}function St(Wn,yo){var Qo=Wn["page".concat(yo?"Y":"X","Offset")],os="scroll".concat(yo?"Top":"Left");if(typeof Qo!="number"){var Ko=Wn.document;Qo=Ko.documentElement[os],typeof Qo!="number"&&(Qo=Ko.body[os])}return Qo}function nt(Wn){var yo=Wn.getBoundingClientRect(),Qo={left:yo.left,top:yo.top},os=Wn.ownerDocument,Ko=os.defaultView||os.parentWindow;return Qo.left+=St(Ko),Qo.top+=St(Ko,!0),Qo}var Ct=_(44516),lt=_(88831),Gt=w.memo(function(Wn){var yo=Wn.children;return yo},function(Wn,yo){var Qo=yo.shouldUpdate;return!Qo}),Rt={width:0,height:0,overflow:"hidden",outline:"none"},an=w.forwardRef(function(Wn,yo){var Qo=Wn.prefixCls,os=Wn.className,Ko=Wn.style,Yn=Wn.title,kr=Wn.ariaId,Gr=Wn.footer,je=Wn.closable,ut=Wn.closeIcon,ht=Wn.onClose,Ue=Wn.children,ft=Wn.bodyStyle,Pt=Wn.bodyProps,ln=Wn.modalRender,sr=Wn.onMouseDown,Zr=Wn.onMouseUp,Ui=Wn.holderRef,To=Wn.visible,Vi=Wn.forceRender,Us=Wn.width,Is=Wn.height,Rs=Wn.classNames,Ns=Wn.styles,Lo=w.useContext(Ae),Ps=Lo.panel,ua=(0,lt.x1)(Ui,Ps),Ka=(0,w.useRef)(),Hl=(0,w.useRef)();w.useImperativeHandle(yo,function(){return{focus:function(){var Yo;(Yo=Ka.current)===null||Yo===void 0||Yo.focus()},changeActive:function(Yo){var Os=document,Cs=Os.activeElement;Yo&&Cs===Hl.current?Ka.current.focus():!Yo&&Cs===Ka.current&&Hl.current.focus()}}});var Gl={};Us!==void 0&&(Gl.width=Us),Is!==void 0&&(Gl.height=Is);var fs;Gr&&(fs=w.createElement("div",{className:g()("".concat(Qo,"-footer"),Rs==null?void 0:Rs.footer),style:(0,Re.Z)({},Ns==null?void 0:Ns.footer)},Gr));var Hs;Yn&&(Hs=w.createElement("div",{className:g()("".concat(Qo,"-header"),Rs==null?void 0:Rs.header),style:(0,Re.Z)({},Ns==null?void 0:Ns.header)},w.createElement("div",{className:"".concat(Qo,"-title"),id:kr},Yn)));var dl;je&&(dl=w.createElement("button",{type:"button",onClick:ht,"aria-label":"Close",className:"".concat(Qo,"-close")},ut||w.createElement("span",{className:"".concat(Qo,"-close-x")})));var Xo=w.createElement("div",{className:g()("".concat(Qo,"-content"),Rs==null?void 0:Rs.content),style:Ns==null?void 0:Ns.content},dl,Hs,w.createElement("div",(0,dt.Z)({className:g()("".concat(Qo,"-body"),Rs==null?void 0:Rs.body),style:(0,Re.Z)((0,Re.Z)({},ft),Ns==null?void 0:Ns.body)},Pt),Ue),fs);return w.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Yn?kr:null,"aria-modal":"true",ref:ua,style:(0,Re.Z)((0,Re.Z)({},Ko),Gl),className:g()(Qo,os),onMouseDown:sr,onMouseUp:Zr},w.createElement("div",{tabIndex:0,ref:Ka,style:Rt,"aria-hidden":"true"}),w.createElement(Gt,{shouldUpdate:To||Vi},ln?ln(Xo):Xo),w.createElement("div",{tabIndex:0,ref:Hl,style:Rt,"aria-hidden":"true"}))}),cn=an,Cr=w.forwardRef(function(Wn,yo){var Qo=Wn.prefixCls,os=Wn.title,Ko=Wn.style,Yn=Wn.className,kr=Wn.visible,Gr=Wn.forceRender,je=Wn.destroyOnClose,ut=Wn.motionName,ht=Wn.ariaId,Ue=Wn.onVisibleChanged,ft=Wn.mousePosition,Pt=(0,w.useRef)(),ln=w.useState(),sr=(0,Pe.Z)(ln,2),Zr=sr[0],Ui=sr[1],To={};Zr&&(To.transformOrigin=Zr);function Vi(){var Us=nt(Pt.current);Ui(ft?"".concat(ft.x-Us.left,"px ").concat(ft.y-Us.top,"px"):"")}return w.createElement(Ct.ZP,{visible:kr,onVisibleChanged:Ue,onAppearPrepare:Vi,onEnterPrepare:Vi,forceRender:Gr,motionName:ut,removeOnLeave:je,ref:Pt},function(Us,Is){var Rs=Us.className,Ns=Us.style;return w.createElement(cn,(0,dt.Z)({},Wn,{ref:yo,title:os,ariaId:ht,prefixCls:Qo,holderRef:Is,style:(0,Re.Z)((0,Re.Z)((0,Re.Z)({},Ns),Ko),To),className:g()(Yn,Rs)}))})});Cr.displayName="Content";var ii=Cr;function Pi(Wn){var yo=Wn.prefixCls,Qo=Wn.style,os=Wn.visible,Ko=Wn.maskProps,Yn=Wn.motionName,kr=Wn.className;return w.createElement(Ct.ZP,{key:"mask",visible:os,motionName:Yn,leavedClassName:"".concat(yo,"-mask-hidden")},function(Gr,je){var ut=Gr.className,ht=Gr.style;return w.createElement("div",(0,dt.Z)({ref:je,style:(0,Re.Z)((0,Re.Z)({},ht),Qo),className:g()("".concat(yo,"-mask"),ut,kr)},Ko))})}var Ni=_(36014);function Yi(Wn){var yo=Wn.prefixCls,Qo=yo===void 0?"rc-dialog":yo,os=Wn.zIndex,Ko=Wn.visible,Yn=Ko===void 0?!1:Ko,kr=Wn.keyboard,Gr=kr===void 0?!0:kr,je=Wn.focusTriggerAfterClose,ut=je===void 0?!0:je,ht=Wn.wrapStyle,Ue=Wn.wrapClassName,ft=Wn.wrapProps,Pt=Wn.onClose,ln=Wn.afterOpenChange,sr=Wn.afterClose,Zr=Wn.transitionName,Ui=Wn.animation,To=Wn.closable,Vi=To===void 0?!0:To,Us=Wn.mask,Is=Us===void 0?!0:Us,Rs=Wn.maskTransitionName,Ns=Wn.maskAnimation,Lo=Wn.maskClosable,Ps=Lo===void 0?!0:Lo,ua=Wn.maskStyle,Ka=Wn.maskProps,Hl=Wn.rootClassName,Gl=Wn.classNames,fs=Wn.styles,Hs=(0,w.useRef)(),dl=(0,w.useRef)(),Xo=(0,w.useRef)(),Mi=w.useState(Yn),Yo=(0,Pe.Z)(Mi,2),Os=Yo[0],Cs=Yo[1],xa=(0,Ie.Z)();function Xu(){(0,$e.Z)(dl.current,document.activeElement)||(Hs.current=document.activeElement)}function gc(){if(!(0,$e.Z)(dl.current,document.activeElement)){var Un;(Un=Xo.current)===null||Un===void 0||Un.focus()}}function Zu(Un){if(Un)gc();else{if(Cs(!1),Is&&Hs.current&&ut){try{Hs.current.focus({preventScroll:!0})}catch(jr){}Hs.current=null}Os&&(sr==null||sr())}ln==null||ln(Un)}function Cd(Un){Pt==null||Pt(Un)}var ad=(0,w.useRef)(!1),gu=(0,w.useRef)(),iu=function(){clearTimeout(gu.current),ad.current=!0},Tu=function(){gu.current=setTimeout(function(){ad.current=!1})},Si=null;Ps&&(Si=function(jr){ad.current?ad.current=!1:dl.current===jr.target&&Cd(jr)});function tr(Un){if(Gr&&Un.keyCode===Xe.Z.ESC){Un.stopPropagation(),Cd(Un);return}Yn&&Un.keyCode===Xe.Z.TAB&&Xo.current.changeActive(!Un.shiftKey)}return(0,w.useEffect)(function(){Yn&&(Cs(!0),Xu())},[Yn]),(0,w.useEffect)(function(){return function(){clearTimeout(gu.current)}},[]),w.createElement("div",(0,dt.Z)({className:g()("".concat(Qo,"-root"),Hl)},(0,ze.Z)(Wn,{data:!0})),w.createElement(Pi,{prefixCls:Qo,visible:Is&&Yn,motionName:Kt(Qo,Rs,Ns),style:(0,Re.Z)((0,Re.Z)({zIndex:os},ua),fs==null?void 0:fs.mask),maskProps:Ka,className:Gl==null?void 0:Gl.mask}),w.createElement("div",(0,dt.Z)({tabIndex:-1,onKeyDown:tr,className:g()("".concat(Qo,"-wrap"),Ue,Gl==null?void 0:Gl.wrapper),ref:dl,onClick:Si,style:(0,Re.Z)((0,Re.Z)((0,Re.Z)({zIndex:os},ht),fs==null?void 0:fs.wrapper),{},{display:Os?null:"none"})},ft),w.createElement(ii,(0,dt.Z)({},Wn,{onMouseDown:iu,onMouseUp:Tu,ref:Xo,closable:Vi,ariaId:xa,prefixCls:Qo,visible:Yn&&Os,onClose:Cd,onVisibleChanged:Zu,motionName:Kt(Qo,Zr,Ui)}))))}var ti=function(yo){var Qo=yo.visible,os=yo.getContainer,Ko=yo.forceRender,Yn=yo.destroyOnClose,kr=Yn===void 0?!1:Yn,Gr=yo.afterClose,je=yo.panelRef,ut=w.useState(Qo),ht=(0,Pe.Z)(ut,2),Ue=ht[0],ft=ht[1],Pt=w.useMemo(function(){return{panel:je}},[je]);return w.useEffect(function(){Qo&&ft(!0)},[Qo]),!Ko&&kr&&!Ue?null:w.createElement(Ae.Provider,{value:Pt},w.createElement(De.Z,{open:Qo||Ko||Ue,autoDestroy:!1,getContainer:os,autoLock:Qo||Ue},w.createElement(Yi,(0,dt.Z)({},yo,{destroyOnClose:kr,afterClose:function(){Gr==null||Gr(),ft(!1)}}))))};ti.displayName="Dialog";var Ts=ti,Bs=Ts,Ce=_(2162),Gi=_(42871);const qi=()=>(0,Gi.Z)()&&window.document.documentElement;var co=_(91649),fi=_(51059),Ms=_(34735),In=_(60161),et=_(33401);function Dt(){}const $t=w.createContext({add:Dt,remove:Dt});function Dn(Wn){const yo=w.useContext($t),Qo=w.useRef();return(0,et.zX)(Ko=>{if(Ko){const Yn=Wn?Ko.querySelector(Wn):Ko;yo.add(Yn),Qo.current=Yn}else yo.remove(Qo.current)})}var gr=null,kn=_(40053),bn=_(9949),Jt=()=>{const{cancelButtonProps:Wn,cancelTextLocale:yo,onCancel:Qo}=(0,w.useContext)(ve);return w.createElement(bn.ZP,Object.assign({onClick:Qo},Wn),yo)},yn=_(62481),vr=()=>{const{confirmLoading:Wn,okButtonProps:yo,okType:Qo,okTextLocale:os,onOk:Ko}=(0,w.useContext)(ve);return w.createElement(bn.ZP,Object.assign({},(0,yn.nx)(Qo),{loading:Wn,onClick:Ko},yo),os)},pn=_(46665);function wr(Wn,yo){return w.createElement("span",{className:`${Wn}-close-x`},yo||w.createElement(vt.Z,{className:`${Wn}-close-icon`}))}const Sr=Wn=>{const{okText:yo,okType:Qo="primary",cancelText:os,confirmLoading:Ko,onOk:Yn,onCancel:kr,okButtonProps:Gr,cancelButtonProps:je,footer:ut}=Wn,[ht]=(0,K.Z)("Modal",(0,pn.A)()),Ue=yo||(ht==null?void 0:ht.okText),ft=os||(ht==null?void 0:ht.cancelText),Pt={confirmLoading:Ko,okButtonProps:Gr,cancelButtonProps:je,okTextLocale:Ue,cancelTextLocale:ft,okType:Qo,onOk:Yn,onCancel:kr},ln=w.useMemo(()=>Pt,(0,v.Z)(Object.values(Pt)));let sr;return typeof ut=="function"||typeof ut=="undefined"?(sr=w.createElement(w.Fragment,null,w.createElement(Jt,null),w.createElement(vr,null)),typeof ut=="function"&&(sr=ut(sr,{OkBtn:vr,CancelBtn:Jt})),sr=w.createElement(Ee,{value:ln},sr)):sr=ut,w.createElement(kn.n,{disabled:!1},sr)};var Ai=_(35772),mo=_(45061),Fr=_(44566),to=_(80172),Ji=_(67859),bo=_(36646);function xn(Wn){return{position:Wn,inset:0}}const fn=Wn=>{const{componentCls:yo,antCls:Qo}=Wn;return[{[`${yo}-root`]:{[`${yo}${Qo}-zoom-enter, ${yo}${Qo}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:Wn.motionDurationSlow,userSelect:"none"},[`${yo}${Qo}-zoom-leave ${yo}-content`]:{pointerEvents:"none"},[`${yo}-mask`]:Object.assign(Object.assign({},xn("fixed")),{zIndex:Wn.zIndexPopupBase,height:"100%",backgroundColor:Wn.colorBgMask,pointerEvents:"none",[`${yo}-hidden`]:{display:"none"}}),[`${yo}-wrap`]:Object.assign(Object.assign({},xn("fixed")),{zIndex:Wn.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${yo}${Qo}-zoom-enter), &:has(${yo}${Qo}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${yo}-root`]:(0,mo.J$)(Wn)}]},It=Wn=>{const{componentCls:yo}=Wn;return[{[`${yo}-root`]:{[`${yo}-wrap-rtl`]:{direction:"rtl"},[`${yo}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[yo]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${Wn.screenSMMax}px)`]:{[yo]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,bo.bf)(Wn.marginXS)} auto`},[`${yo}-centered`]:{[yo]:{flex:1}}}}},{[yo]:Object.assign(Object.assign({},(0,Ai.Wf)(Wn)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,bo.bf)(Wn.calc(Wn.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:Wn.paddingLG,[`${yo}-title`]:{margin:0,color:Wn.titleColor,fontWeight:Wn.fontWeightStrong,fontSize:Wn.titleFontSize,lineHeight:Wn.titleLineHeight,wordWrap:"break-word"},[`${yo}-content`]:{position:"relative",backgroundColor:Wn.contentBg,backgroundClip:"padding-box",border:0,borderRadius:Wn.borderRadiusLG,boxShadow:Wn.boxShadow,pointerEvents:"auto",padding:Wn.contentPadding},[`${yo}-close`]:Object.assign({position:"absolute",top:Wn.calc(Wn.modalHeaderHeight).sub(Wn.modalCloseBtnSize).div(2).equal(),insetInlineEnd:Wn.calc(Wn.modalHeaderHeight).sub(Wn.modalCloseBtnSize).div(2).equal(),zIndex:Wn.calc(Wn.zIndexPopupBase).add(10).equal(),padding:0,color:Wn.modalCloseIconColor,fontWeight:Wn.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:Wn.borderRadiusSM,width:Wn.modalCloseBtnSize,height:Wn.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${Wn.motionDurationMid}, background-color ${Wn.motionDurationMid}`,"&-x":{display:"flex",fontSize:Wn.fontSizeLG,fontStyle:"normal",lineHeight:`${(0,bo.bf)(Wn.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:Wn.modalIconHoverColor,backgroundColor:Wn.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:Wn.closeBtnActiveBg}},(0,Ai.Qy)(Wn)),[`${yo}-header`]:{color:Wn.colorText,background:Wn.headerBg,borderRadius:`${(0,bo.bf)(Wn.borderRadiusLG)} ${(0,bo.bf)(Wn.borderRadiusLG)} 0 0`,marginBottom:Wn.headerMarginBottom,padding:Wn.headerPadding,borderBottom:Wn.headerBorderBottom},[`${yo}-body`]:{fontSize:Wn.fontSize,lineHeight:Wn.lineHeight,wordWrap:"break-word",padding:Wn.bodyPadding},[`${yo}-footer`]:{textAlign:"end",background:Wn.footerBg,marginTop:Wn.footerMarginTop,padding:Wn.footerPadding,borderTop:Wn.footerBorderTop,borderRadius:Wn.footerBorderRadius,[`${Wn.antCls}-btn + ${Wn.antCls}-btn:not(${Wn.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:Wn.marginXS}},[`${yo}-open`]:{overflow:"hidden"}})},{[`${yo}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${yo}-content, + `]:{paddingTop:Ut.paddingXS},[`> ${Cn}`]:Object.assign(Object.assign(Object.assign({borderRadius:qi},Yi(Ut)),fo(Ut)),{[`${Cn}-item, ${Cn}-submenu > ${Cn}-submenu-title`]:{borderRadius:bo},[`${Cn}-submenu-title::after`]:{transition:`transform ${pr} ${wr}`}})}}),fo(Ut)),{[`&-inline-collapsed ${Cn}-submenu-arrow, + &-inline ${Cn}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,St.bf)(pn)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,St.bf)(Ut.calc(pn).mul(-1).equal())})`}},[`${Cn}-submenu-open${Cn}-submenu-inline > ${Cn}-submenu-title > ${Cn}-submenu-arrow`]:{transform:`translateY(${(0,St.bf)(Ut.calc(xn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,St.bf)(Ut.calc(pn).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,St.bf)(pn)})`}}})},{[`${en}-layout-header`]:{[Cn]:{lineHeight:"inherit"}}}]},Fs=Ut=>{const{colorPrimary:en,colorError:Cn,colorTextDisabled:lr,colorErrorBg:pr,colorText:an,colorTextDescription:wr,colorBgContainer:Cr,colorFillAlter:Ei,colorFillContent:vo,lineWidth:kr,lineWidthBold:ro,controlItemBgActive:qi,colorBgTextHover:bo,controlHeightLG:xn,lineHeight:pn,colorBgElevated:Dt,marginXXS:Zt,padding:vn,fontSize:$n,controlHeightSM:Ar,fontSizeLG:Dr,colorTextLightSolid:dr,colorErrorHover:Yt}=Ut,wn=new nt.C(dr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ut.zIndexPopupBase+50,radiusItem:Ut.borderRadiusLG,itemBorderRadius:Ut.borderRadiusLG,radiusSubMenuItem:Ut.borderRadiusSM,subMenuItemBorderRadius:Ut.borderRadiusSM,colorItemText:an,itemColor:an,colorItemTextHover:an,itemHoverColor:an,colorItemTextHoverHorizontal:en,horizontalItemHoverColor:en,colorGroupTitle:wr,groupTitleColor:wr,colorItemTextSelected:en,itemSelectedColor:en,colorItemTextSelectedHorizontal:en,horizontalItemSelectedColor:en,colorItemBg:Cr,itemBg:Cr,colorItemBgHover:bo,itemHoverBg:bo,colorItemBgActive:vo,itemActiveBg:qi,colorSubItemBg:Ei,subMenuItemBg:Ei,colorItemBgSelected:qi,itemSelectedBg:qi,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:ro,activeBarHeight:ro,colorActiveBarBorderSize:kr,activeBarBorderWidth:kr,colorItemTextDisabled:lr,itemDisabledColor:lr,colorDangerItemText:Cn,dangerItemColor:Cn,colorDangerItemTextHover:Cn,dangerItemHoverColor:Cn,colorDangerItemTextSelected:Cn,dangerItemSelectedColor:Cn,colorDangerItemBgActive:pr,dangerItemActiveBg:pr,colorDangerItemBgSelected:pr,dangerItemSelectedBg:pr,itemMarginInline:Ut.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:xn,groupTitleLineHeight:pn,collapsedWidth:xn*2,popupBg:Dt,itemMarginBlock:Zt,itemPaddingInline:vn,horizontalLineHeight:`${xn*1.15}px`,iconSize:$n,iconMarginInlineEnd:Ar-$n,collapsedIconSize:Dr,groupTitleFontSize:$n,darkItemDisabledColor:new nt.C(dr).setAlpha(.25).toRgbString(),darkItemColor:wn,darkDangerItemColor:Cn,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:dr,darkItemSelectedBg:en,darkDangerItemSelectedBg:Cn,darkItemHoverBg:"transparent",darkGroupTitleColor:wn,darkItemHoverColor:dr,darkDangerItemHoverColor:Yt,darkDangerItemSelectedColor:dr,darkDangerItemActiveBg:Cn,itemWidth:""}},Ln=Ut=>Object.assign(Object.assign({},Ut),{itemWidth:Ut.activeBarWidth?`calc(100% + ${Ut.activeBarBorderWidth}px)`:`calc(100% - ${Ut.itemMarginInline*2}px)`});var it=function(Ut){let en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ut,Cn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,hn.I$)("Menu",pr=>{const{colorBgElevated:an,colorPrimary:wr,colorTextLightSolid:Cr,controlHeightLG:Ei,fontSize:vo,darkItemColor:kr,darkDangerItemColor:ro,darkItemBg:qi,darkSubMenuItemBg:bo,darkItemSelectedColor:xn,darkItemSelectedBg:pn,darkDangerItemSelectedBg:Dt,darkItemHoverBg:Zt,darkGroupTitleColor:vn,darkItemHoverColor:$n,darkItemDisabledColor:Ar,darkDangerItemHoverColor:Dr,darkDangerItemSelectedColor:dr,darkDangerItemActiveBg:Yt}=pr,wn=pr.calc(vo).div(7).mul(5).equal(),Qn=(0,un.TS)(pr,{menuArrowSize:wn,menuHorizontalHeight:pr.calc(Ei).mul(1.15).equal(),menuArrowOffset:pr.calc(wn).mul(.25).equal(),menuPanelMaskInset:-7,menuSubMenuBg:an,calc:pr.calc}),Mr=(0,un.TS)(Qn,{itemColor:kr,itemHoverColor:$n,groupTitleColor:vn,itemSelectedColor:xn,itemBg:qi,popupBg:qi,subMenuItemBg:bo,itemActiveBg:"transparent",itemSelectedBg:pn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Zt,itemDisabledColor:Ar,dangerItemColor:ro,dangerItemHoverColor:Dr,dangerItemSelectedColor:dr,dangerItemActiveBg:Yt,dangerItemSelectedBg:Dt,menuSubMenuBg:bo,horizontalItemSelectedColor:Cr,horizontalItemSelectedBg:wr});return[di(Qn),ii(Qn),Xi(Qn),Is(Qn,"light"),Is(Mr,"dark"),Ni(Qn),(0,lt.Z)(Qn),(0,Kt.oN)(Qn,"slide-up"),(0,Kt.oN)(Qn,"slide-down"),(0,Mt._y)(Qn,"zoom-big")]},Fs,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],format:Ln,injectStyle:Cn,unitless:{groupTitleLineHeight:!0}})(Ut,en)},Ot=y(35792),Ht=function(Ut,en){var Cn={};for(var lr in Ut)Object.prototype.hasOwnProperty.call(Ut,lr)&&en.indexOf(lr)<0&&(Cn[lr]=Ut[lr]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pr=0,lr=Object.getOwnPropertySymbols(Ut);pr{var Cn,lr;const pr=P.useContext(Xt.Z),an=pr||{},{getPrefixCls:wr,getPopupContainer:Cr,direction:Ei,menu:vo}=P.useContext(A.E_),kr=wr(),{prefixCls:ro,className:qi,style:bo,theme:xn="light",expandIcon:pn,_internalDisableMenuItemTitleTooltip:Dt,inlineCollapsed:Zt,siderCollapsed:vn,items:$n,children:Ar,rootClassName:Dr,mode:dr,selectable:Yt,onClick:wn,overflowedIndicatorPopupClassName:Qn}=Ut,Mr=Ht(Ut,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Wi=(0,fe.Z)(Mr,["collapsedWidth"]),Dn=Be($n)||Ar;(Cn=an.validator)===null||Cn===void 0||Cn.call(an,{mode:dr});const Kn=(0,Me.zX)(function(){var ns;wn==null||wn.apply(void 0,arguments),(ns=an.onClick)===null||ns===void 0||ns.call(an)}),nr=an.mode||dr,qr=Yt!=null?Yt:an.selectable,yi=P.useMemo(()=>vn!==void 0?vn:Zt,[Zt,vn]),Hr={horizontal:{motionName:`${kr}-slide-up`},inline:(0,Ue.Z)(kr),other:{motionName:`${kr}-zoom-big`}},ci=wr("menu",ro||an.prefixCls),gi=(0,Ot.Z)(ci),[mi,Bi]=it(ci,gi,!pr),Nr=b()(`${ci}-${xn}`,vo==null?void 0:vo.className,qi);let Kr;if(typeof pn=="function")Kr=pn;else if(pn===null||pn===!1)Kr=null;else if(an.expandIcon===null||an.expandIcon===!1)Kr=null;else{const ns=pn!=null?pn:an.expandIcon;Kr=(0,ye.Tm)(ns,{className:b()(`${ci}-submenu-expand-icon`,(0,ye.l$)(ns)?(lr=ns.props)===null||lr===void 0?void 0:lr.className:"")})}const Qi=P.useMemo(()=>({prefixCls:ci,inlineCollapsed:yi||!1,direction:Ei,firstLevel:!0,theme:xn,mode:nr,disableMenuItemTitleTooltip:Dt}),[ci,yi,Ei,Dt,xn]);return mi(P.createElement(Xt.Z.Provider,{value:null},P.createElement(Qe.Provider,{value:Qi},P.createElement(v.ZP,Object.assign({getPopupContainer:Cr,overflowedIndicator:P.createElement(Te.Z,null),overflowedIndicatorPopupClassName:b()(ci,`${ci}-${xn}`,Qn),mode:nr,selectable:qr,onClick:Kn},Wi,{inlineCollapsed:yi,style:Object.assign(Object.assign({},vo==null?void 0:vo.style),bo),className:Nr,prefixCls:ci,direction:Ei,defaultMotions:Hr,expandIcon:Kr,ref:en,rootClassName:b()(Dr,Bi,an.rootClassName,gi)}),Dn))))});const In=(0,P.forwardRef)((Ut,en)=>{const Cn=(0,P.useRef)(null),lr=P.useContext(k);return(0,P.useImperativeHandle)(en,()=>({menu:Cn.current,focus:pr=>{var an;(an=Cn.current)===null||an===void 0||an.focus(pr)}})),P.createElement(fr,Object.assign({ref:Cn},Ut,lr))});In.Item=pt,In.SubMenu=De,In.Divider=he,In.ItemGroup=v.BW;var mn=In},10154:function(yt,Y,y){"use strict";y.d(Y,{ZP:function(){return Yt}});var v=y(74902),P=y(67294),w=y(38135),b=y(28459),B=y(76278),V=y(41322),k=y(26702),R=y(1558),C=y(22508),g=y(94184),A=y.n(g),O=y(97685),K=y(91),he=y(1413),ae=y(73935),fe=y(87462),xe=y(4942),ye=y(82225),be=y(15105),Qe=P.forwardRef(function(wn,Qn){var Mr=wn.prefixCls,Wi=wn.style,Dn=wn.className,Kn=wn.duration,nr=Kn===void 0?4.5:Kn,qr=wn.eventKey,yi=wn.content,Hr=wn.closable,ci=wn.closeIcon,gi=ci===void 0?"x":ci,mi=wn.props,Bi=wn.onClick,Nr=wn.onNoticeClose,Kr=wn.times,Qi=wn.hovering,ns=P.useState(!1),Ur=(0,O.Z)(ns,2),gs=Ur[0],Gr=Ur[1],ni=Qi||gs,is=function(){Nr(qr)},Jr=function(qo){(qo.key==="Enter"||qo.code==="Enter"||qo.keyCode===be.Z.ENTER)&&is()};P.useEffect(function(){if(!ni&&nr>0){var Or=setTimeout(function(){is()},nr*1e3);return function(){clearTimeout(Or)}}},[nr,ni,Kr]);var bn="".concat(Mr,"-notice");return P.createElement("div",(0,fe.Z)({},mi,{ref:Qn,className:A()(bn,Dn,(0,xe.Z)({},"".concat(bn,"-closable"),Hr)),style:Wi,onMouseEnter:function(qo){var Mo;Gr(!0),mi==null||(Mo=mi.onMouseEnter)===null||Mo===void 0||Mo.call(mi,qo)},onMouseLeave:function(qo){var Mo;Gr(!1),mi==null||(Mo=mi.onMouseLeave)===null||Mo===void 0||Mo.call(mi,qo)},onClick:Bi}),P.createElement("div",{className:"".concat(bn,"-content")},yi),Hr&&P.createElement("a",{tabIndex:0,className:"".concat(bn,"-close"),onKeyDown:Jr,onClick:function(qo){qo.preventDefault(),qo.stopPropagation(),is()}},gi))}),Ve=Qe,pt=P.createContext({}),st=function(Qn){var Mr=Qn.children,Wi=Qn.classNames;return P.createElement(pt.Provider,{value:{classNames:Wi}},Mr)},Ae=st,De=y(71002),Te=8,Me=3,Ue=16,Pe=function(Qn){var Mr={offset:Te,threshold:Me,gap:Ue};if(Qn&&(0,De.Z)(Qn)==="object"){var Wi,Dn,Kn;Mr.offset=(Wi=Qn.offset)!==null&&Wi!==void 0?Wi:Te,Mr.threshold=(Dn=Qn.threshold)!==null&&Dn!==void 0?Dn:Me,Mr.gap=(Kn=Qn.gap)!==null&&Kn!==void 0?Kn:Ue}return[!!Qn,Mr]},Xe=Pe,Be=["className","style","classNames","styles"],Xt=function(Qn){var Mr,Wi=Qn.configList,Dn=Qn.placement,Kn=Qn.prefixCls,nr=Qn.className,qr=Qn.style,yi=Qn.motion,Hr=Qn.onAllNoticeRemoved,ci=Qn.onNoticeClose,gi=Qn.stack,mi=(0,P.useContext)(pt),Bi=mi.classNames,Nr=(0,P.useRef)({}),Kr=(0,P.useState)(null),Qi=(0,O.Z)(Kr,2),ns=Qi[0],Ur=Qi[1],gs=(0,P.useState)([]),Gr=(0,O.Z)(gs,2),ni=Gr[0],is=Gr[1],Jr=Wi.map(function(Si){return{config:Si,key:String(Si.key)}}),bn=Xe(gi),Or=(0,O.Z)(bn,2),qo=Or[0],Mo=Or[1],vs=Mo.offset,Na=Mo.threshold,ho=Mo.gap,aa=qo&&(ni.length>0||Jr.length<=Na),Ka=typeof yi=="function"?yi(Dn):yi;return(0,P.useEffect)(function(){qo&&ni.length>1&&is(function(Si){return Si.filter(function(Pi){return Jr.some(function(to){var So=to.key;return Pi===So})})})},[ni,Jr,qo]),(0,P.useEffect)(function(){var Si;if(qo&&Nr.current[(Si=Jr[Jr.length-1])===null||Si===void 0?void 0:Si.key]){var Pi;Ur(Nr.current[(Pi=Jr[Jr.length-1])===null||Pi===void 0?void 0:Pi.key])}},[Jr,qo]),P.createElement(ye.V4,(0,fe.Z)({key:Dn,className:A()(Kn,"".concat(Kn,"-").concat(Dn),Bi==null?void 0:Bi.list,nr,(Mr={},(0,xe.Z)(Mr,"".concat(Kn,"-stack"),!!qo),(0,xe.Z)(Mr,"".concat(Kn,"-stack-expanded"),aa),Mr)),style:qr,keys:Jr,motionAppear:!0},Ka,{onAllRemoved:function(){Hr(Dn)}}),function(Si,Pi){var to=Si.config,So=Si.className,ps=Si.style,Wn=Si.index,yo=to,Qo=yo.key,ss=yo.times,Ko=String(Qo),Xn=to,Rr=Xn.className,Xr=Xn.style,Ze=Xn.classNames,ht=Xn.styles,dt=(0,K.Z)(Xn,Be),$e=Jr.findIndex(function(ks){return ks.key===Ko}),ft={};if(qo){var Lt=Jr.length-1-($e>-1?$e:Wn-1),gn=Dn==="top"||Dn==="bottom"?"-50%":"0";if(Lt>0){var rr,zr,Fi;ft.height=aa?(rr=Nr.current[Ko])===null||rr===void 0?void 0:rr.offsetHeight:ns==null?void 0:ns.offsetHeight;for(var xo=0,Vi=0;Vi-1?Nr.current[Ko]=ko:delete Nr.current[Ko]},prefixCls:Kn,classNames:Ze,styles:ht,className:A()(Rr,Bi==null?void 0:Bi.notice),style:Xr,times:ss,key:Qo,eventKey:Qo,onNoticeClose:ci,hovering:qo&&ni.length>0})))})},St=Xt,nt=P.forwardRef(function(wn,Qn){var Mr=wn.prefixCls,Wi=Mr===void 0?"rc-notification":Mr,Dn=wn.container,Kn=wn.motion,nr=wn.maxCount,qr=wn.className,yi=wn.style,Hr=wn.onAllRemoved,ci=wn.stack,gi=wn.renderNotifications,mi=P.useState([]),Bi=(0,O.Z)(mi,2),Nr=Bi[0],Kr=Bi[1],Qi=function(Or){var qo,Mo=Nr.find(function(vs){return vs.key===Or});Mo==null||(qo=Mo.onClose)===null||qo===void 0||qo.call(Mo),Kr(function(vs){return vs.filter(function(Na){return Na.key!==Or})})};P.useImperativeHandle(Qn,function(){return{open:function(Or){Kr(function(qo){var Mo=(0,v.Z)(qo),vs=Mo.findIndex(function(aa){return aa.key===Or.key}),Na=(0,he.Z)({},Or);if(vs>=0){var ho;Na.times=(((ho=qo[vs])===null||ho===void 0?void 0:ho.times)||0)+1,Mo[vs]=Na}else Na.times=0,Mo.push(Na);return nr>0&&Mo.length>nr&&(Mo=Mo.slice(-nr)),Mo})},close:function(Or){Qi(Or)},destroy:function(){Kr([])}}});var ns=P.useState({}),Ur=(0,O.Z)(ns,2),gs=Ur[0],Gr=Ur[1];P.useEffect(function(){var bn={};Nr.forEach(function(Or){var qo=Or.placement,Mo=qo===void 0?"topRight":qo;Mo&&(bn[Mo]=bn[Mo]||[],bn[Mo].push(Or))}),Object.keys(gs).forEach(function(Or){bn[Or]=bn[Or]||[]}),Gr(bn)},[Nr]);var ni=function(Or){Gr(function(qo){var Mo=(0,he.Z)({},qo),vs=Mo[Or]||[];return vs.length||delete Mo[Or],Mo})},is=P.useRef(!1);if(P.useEffect(function(){Object.keys(gs).length>0?is.current=!0:is.current&&(Hr==null||Hr(),is.current=!1)},[gs]),!Dn)return null;var Jr=Object.keys(gs);return(0,ae.createPortal)(P.createElement(P.Fragment,null,Jr.map(function(bn){var Or=gs[bn],qo=P.createElement(St,{key:bn,configList:Or,placement:bn,prefixCls:Wi,className:qr==null?void 0:qr(bn),style:yi==null?void 0:yi(bn),motion:Kn,onNoticeClose:Qi,onAllNoticeRemoved:ni,stack:ci});return gi?gi(qo,{prefixCls:Wi,key:bn}):qo})),Dn)}),wt=nt,lt=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Kt=function(){return document.body},Mt=0;function hn(){for(var wn={},Qn=arguments.length,Mr=new Array(Qn),Wi=0;Wi0&&arguments[0]!==void 0?arguments[0]:{},Qn=wn.getContainer,Mr=Qn===void 0?Kt:Qn,Wi=wn.motion,Dn=wn.prefixCls,Kn=wn.maxCount,nr=wn.className,qr=wn.style,yi=wn.onAllRemoved,Hr=wn.stack,ci=wn.renderNotifications,gi=(0,K.Z)(wn,lt),mi=P.useState(),Bi=(0,O.Z)(mi,2),Nr=Bi[0],Kr=Bi[1],Qi=P.useRef(),ns=P.createElement(wt,{container:Nr,ref:Qi,prefixCls:Dn,motion:Wi,maxCount:Kn,className:nr,style:qr,onAllRemoved:yi,stack:Hr,renderNotifications:ci}),Ur=P.useState([]),gs=(0,O.Z)(Ur,2),Gr=gs[0],ni=gs[1],is=P.useMemo(function(){return{open:function(bn){var Or=hn(gi,bn);(Or.key===null||Or.key===void 0)&&(Or.key="rc-notification-".concat(Mt),Mt+=1),ni(function(qo){return[].concat((0,v.Z)(qo),[{type:"open",config:Or}])})},close:function(bn){ni(function(Or){return[].concat((0,v.Z)(Or),[{type:"close",key:bn}])})},destroy:function(){ni(function(bn){return[].concat((0,v.Z)(bn),[{type:"destroy"}])})}}},[]);return P.useEffect(function(){Kr(Mr())}),P.useEffect(function(){Qi.current&&Gr.length&&(Gr.forEach(function(Jr){switch(Jr.type){case"open":Qi.current.open(Jr.config);break;case"close":Qi.current.close(Jr.key);break;case"destroy":Qi.current.destroy();break}}),ni(function(Jr){return Jr.filter(function(bn){return!Gr.includes(bn)})}))},[Gr]),[is,ns]}var Sr=y(53124),ii=y(43109),Ii=y(87263),Ni=y(14747),eo=y(91945),ti=y(45503);const Is=wn=>{const{componentCls:Qn,iconCls:Mr,boxShadow:Wi,colorText:Dn,colorSuccess:Kn,colorError:nr,colorWarning:qr,colorInfo:yi,fontSizeLG:Hr,motionEaseInOutCirc:ci,motionDurationSlow:gi,marginXS:mi,paddingXS:Bi,borderRadiusLG:Nr,zIndexPopup:Kr,contentPadding:Qi,contentBg:ns}=wn,Ur=`${Qn}-notice`,gs=new ii.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:Bi,transform:"translateY(0)",opacity:1}}),Gr=new ii.E4("MessageMoveOut",{"0%":{maxHeight:wn.height,padding:Bi,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),ni={padding:Bi,textAlign:"center",[`${Qn}-custom-content > ${Mr}`]:{verticalAlign:"text-bottom",marginInlineEnd:mi,fontSize:Hr},[`${Ur}-content`]:{display:"inline-block",padding:Qi,background:ns,borderRadius:Nr,boxShadow:Wi,pointerEvents:"all"},[`${Qn}-success > ${Mr}`]:{color:Kn},[`${Qn}-error > ${Mr}`]:{color:nr},[`${Qn}-warning > ${Mr}`]:{color:qr},[`${Qn}-info > ${Mr}, + ${Qn}-loading > ${Mr}`]:{color:yi}};return[{[Qn]:Object.assign(Object.assign({},(0,Ni.Wf)(wn)),{color:Dn,position:"fixed",top:mi,width:"100%",pointerEvents:"none",zIndex:Kr,[`${Qn}-move-up`]:{animationFillMode:"forwards"},[` + ${Qn}-move-up-appear, + ${Qn}-move-up-enter + `]:{animationName:gs,animationDuration:gi,animationPlayState:"paused",animationTimingFunction:ci},[` + ${Qn}-move-up-appear${Qn}-move-up-appear-active, + ${Qn}-move-up-enter${Qn}-move-up-enter-active + `]:{animationPlayState:"running"},[`${Qn}-move-up-leave`]:{animationName:Gr,animationDuration:gi,animationPlayState:"paused",animationTimingFunction:ci},[`${Qn}-move-up-leave${Qn}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[Qn]:{[`${Ur}-wrapper`]:Object.assign({},ni)}},{[`${Qn}-notice-pure-panel`]:Object.assign(Object.assign({},ni),{padding:0,textAlign:"start"})}]},Ns=wn=>({zIndexPopup:wn.zIndexPopupBase+Ii.u6+10,contentBg:wn.colorBgElevated,contentPadding:`${(wn.controlHeightLG-wn.fontSize*wn.lineHeight)/2}px ${wn.paddingSM}px`});var Se=(0,eo.I$)("Message",wn=>{const Qn=(0,ti.TS)(wn,{height:150});return[Is(Qn)]},Ns),Xi=y(35792),Yi=function(wn,Qn){var Mr={};for(var Wi in wn)Object.prototype.hasOwnProperty.call(wn,Wi)&&Qn.indexOf(Wi)<0&&(Mr[Wi]=wn[Wi]);if(wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dn=0,Wi=Object.getOwnPropertySymbols(wn);Dn{let{prefixCls:Qn,type:Mr,icon:Wi,children:Dn}=wn;return P.createElement("div",{className:A()(`${Qn}-custom-content`,`${Qn}-${Mr}`)},Wi||fo[Mr],P.createElement("span",null,Dn))};var Ln=wn=>{const{prefixCls:Qn,className:Mr,type:Wi,icon:Dn,content:Kn}=wn,nr=Yi(wn,["prefixCls","className","type","icon","content"]),{getPrefixCls:qr}=P.useContext(Sr.E_),yi=Qn||qr("message"),Hr=(0,Xi.Z)(yi),[ci,gi]=Se(yi,Hr);return ci(P.createElement(Ve,Object.assign({},nr,{prefixCls:yi,className:A()(Mr,gi,`${yi}-notice-pure-panel`,Hr),eventKey:"pure",duration:null,content:P.createElement(di,{prefixCls:yi,type:Wi,icon:Dn},Kn)})))},it=y(62208),Ot=y(27288);function Ht(wn,Qn){return{motionName:Qn!=null?Qn:`${wn}-move-up`}}function Pn(wn){let Qn;const Mr=new Promise(Dn=>{Qn=wn(()=>{Dn(!0)})}),Wi=()=>{Qn==null||Qn()};return Wi.then=(Dn,Kn)=>Mr.then(Dn,Kn),Wi.promise=Mr,Wi}var fr=function(wn,Qn){var Mr={};for(var Wi in wn)Object.prototype.hasOwnProperty.call(wn,Wi)&&Qn.indexOf(Wi)<0&&(Mr[Wi]=wn[Wi]);if(wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dn=0,Wi=Object.getOwnPropertySymbols(wn);Dn{let{children:Qn,prefixCls:Mr}=wn;const[Wi,Dn]=Se(Mr);return Wi(P.createElement(Ae,{classNames:{list:Dn,notice:Dn}},Qn))},en=(wn,Qn)=>{let{prefixCls:Mr,key:Wi}=Qn;return P.createElement(Ut,{prefixCls:Mr,key:Wi},wn)},Cn=P.forwardRef((wn,Qn)=>{const{top:Mr,prefixCls:Wi,getContainer:Dn,maxCount:Kn,duration:nr=mn,rtl:qr,transitionName:yi,onAllRemoved:Hr}=wn,{getPrefixCls:ci,getPopupContainer:gi,message:mi}=P.useContext(Sr.E_),Bi=Wi||ci("message"),Nr=()=>({left:"50%",transform:"translateX(-50%)",top:Mr!=null?Mr:In}),Kr=()=>A()({[`${Bi}-rtl`]:qr}),Qi=()=>Ht(Bi,yi),ns=P.createElement("span",{className:`${Bi}-close-x`},P.createElement(it.Z,{className:`${Bi}-close-icon`})),[Ur,gs]=un({prefixCls:Bi,style:Nr,className:Kr,motion:Qi,closable:!1,closeIcon:ns,duration:nr,getContainer:()=>(Dn==null?void 0:Dn())||(gi==null?void 0:gi())||document.body,maxCount:Kn,onAllRemoved:Hr,renderNotifications:en});return P.useImperativeHandle(Qn,()=>Object.assign(Object.assign({},Ur),{prefixCls:Bi,message:mi})),gs});let lr=0;function pr(wn){const Qn=P.useRef(null),Mr=(0,Ot.ln)("Message");return[P.useMemo(()=>{const Dn=Hr=>{var ci;(ci=Qn.current)===null||ci===void 0||ci.close(Hr)},Kn=Hr=>{if(!Qn.current){const Jr=()=>{};return Jr.then=()=>{},Jr}const{open:ci,prefixCls:gi,message:mi}=Qn.current,Bi=`${gi}-notice`,{content:Nr,icon:Kr,type:Qi,key:ns,className:Ur,style:gs,onClose:Gr}=Hr,ni=fr(Hr,["content","icon","type","key","className","style","onClose"]);let is=ns;return is==null&&(lr+=1,is=`antd-message-${lr}`),Pn(Jr=>(ci(Object.assign(Object.assign({},ni),{key:is,content:P.createElement(di,{prefixCls:gi,type:Qi,icon:Kr},Nr),placement:"top",className:A()(Qi&&`${Bi}-${Qi}`,Ur,mi==null?void 0:mi.className),style:Object.assign(Object.assign({},mi==null?void 0:mi.style),gs),onClose:()=>{Gr==null||Gr(),Jr()}})),()=>{Dn(is)}))},qr={open:Kn,destroy:Hr=>{var ci;Hr!==void 0?Dn(Hr):(ci=Qn.current)===null||ci===void 0||ci.destroy()}};return["info","success","warning","error","loading"].forEach(Hr=>{const ci=(gi,mi,Bi)=>{let Nr;gi&&typeof gi=="object"&&"content"in gi?Nr=gi:Nr={content:gi};let Kr,Qi;typeof mi=="function"?Qi=mi:(Kr=mi,Qi=Bi);const ns=Object.assign(Object.assign({onClose:Qi,duration:Kr},Nr),{type:Hr});return Kn(ns)};qr[Hr]=ci}),qr},[]),P.createElement(Cn,Object.assign({key:"message-holder"},wn,{ref:Qn}))]}function an(wn){return pr(wn)}let wr=null,Cr=wn=>wn(),Ei=[],vo={};function kr(){const{prefixCls:wn,getContainer:Qn,duration:Mr,rtl:Wi,maxCount:Dn,top:Kn}=vo,nr=wn!=null?wn:(0,b.w6)().getPrefixCls("message"),qr=(Qn==null?void 0:Qn())||document.body;return{prefixCls:nr,getContainer:()=>qr,duration:Mr,rtl:Wi,maxCount:Dn,top:Kn}}const ro=P.forwardRef((wn,Qn)=>{const[Mr,Wi]=P.useState(kr),[Dn,Kn]=pr(Mr),nr=(0,b.w6)(),qr=nr.getRootPrefixCls(),yi=nr.getIconPrefixCls(),Hr=nr.getTheme(),ci=()=>{Wi(kr)};return P.useEffect(ci,[]),P.useImperativeHandle(Qn,()=>{const gi=Object.assign({},Dn);return Object.keys(gi).forEach(mi=>{gi[mi]=function(){return ci(),Dn[mi].apply(Dn,arguments)}}),{instance:gi,sync:ci}}),P.createElement(b.ZP,{prefixCls:qr,iconPrefixCls:yi,theme:Hr},Kn)});function qi(){if(!wr){const wn=document.createDocumentFragment(),Qn={fragment:wn};wr=Qn,Cr(()=>{(0,w.s)(P.createElement(ro,{ref:Mr=>{const{instance:Wi,sync:Dn}=Mr||{};Promise.resolve().then(()=>{!Qn.instance&&Wi&&(Qn.instance=Wi,Qn.sync=Dn,qi())})}}),wn)});return}wr.instance&&(Ei.forEach(wn=>{const{type:Qn,skipped:Mr}=wn;if(!Mr)switch(Qn){case"open":{Cr(()=>{const Wi=wr.instance.open(Object.assign(Object.assign({},vo),wn.config));Wi==null||Wi.then(wn.resolve),wn.setCloseFn(Wi)});break}case"destroy":Cr(()=>{wr==null||wr.instance.destroy(wn.key)});break;default:Cr(()=>{var Wi;const Dn=(Wi=wr.instance)[Qn].apply(Wi,(0,v.Z)(wn.args));Dn==null||Dn.then(wn.resolve),wn.setCloseFn(Dn)})}}),Ei=[])}function bo(wn){vo=Object.assign(Object.assign({},vo),wn),Cr(()=>{var Qn;(Qn=wr==null?void 0:wr.sync)===null||Qn===void 0||Qn.call(wr)})}function xn(wn){const Qn=Pn(Mr=>{let Wi;const Dn={type:"open",config:wn,resolve:Mr,setCloseFn:Kn=>{Wi=Kn}};return Ei.push(Dn),()=>{Wi?Cr(()=>{Wi()}):Dn.skipped=!0}});return qi(),Qn}function pn(wn,Qn){const Mr=Pn(Wi=>{let Dn;const Kn={type:wn,args:Qn,resolve:Wi,setCloseFn:nr=>{Dn=nr}};return Ei.push(Kn),()=>{Dn?Cr(()=>{Dn()}):Kn.skipped=!0}});return qi(),Mr}function Dt(wn){Ei.push({type:"destroy",key:wn}),qi()}const Zt=["success","info","warning","error","loading"],$n={open:xn,destroy:Dt,config:bo,useMessage:an,_InternalPanelDoNotUseOrYouWillBeFired:Ln};Zt.forEach(wn=>{$n[wn]=function(){for(var Qn=arguments.length,Mr=new Array(Qn),Wi=0;Wi{};let Dr=null,dr=null;var Yt=$n},39124:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return ps}});var v=y(74902),P=y(38135),w=y(67294),b=y(28459),B=y(76278),V=y(41322),k=y(26702),R=y(1558),C=y(94184),g=y.n(C),A=y(87263),O=y(33603),K=y(10110),he=y(25976),ae=y(86743);const fe=w.createContext({}),{Provider:xe}=fe;var be=()=>{const{autoFocusButton:Wn,cancelButtonProps:yo,cancelTextLocale:Qo,isSilent:ss,mergedOkCancel:Ko,rootPrefixCls:Xn,close:Rr,onCancel:Xr,onConfirm:Ze}=(0,w.useContext)(fe);return Ko?w.createElement(ae.Z,{isSilent:ss,actionFn:Xr,close:function(){Rr==null||Rr.apply(void 0,arguments),Ze==null||Ze(!1)},autoFocus:Wn==="cancel",buttonProps:yo,prefixCls:`${Xn}-btn`},Qo):null},Ve=()=>{const{autoFocusButton:Wn,close:yo,isSilent:Qo,okButtonProps:ss,rootPrefixCls:Ko,okTextLocale:Xn,okType:Rr,onConfirm:Xr,onOk:Ze}=(0,w.useContext)(fe);return w.createElement(ae.Z,{isSilent:Qo,type:Rr||"primary",actionFn:Ze,close:function(){yo==null||yo.apply(void 0,arguments),Xr==null||Xr(!0)},autoFocus:Wn==="ok",buttonProps:ss,prefixCls:`${Ko}-btn`},Xn)},pt=y(62208),st=y(87462),Ae=y(97685),De=y(2788),Te=w.createContext({}),Me=y(1413),Ue=y(94999),Pe=y(7028),Xe=y(15105),Be=y(64217);function Xt(Wn,yo,Qo){var ss=yo;return!ss&&Qo&&(ss="".concat(Wn,"-").concat(Qo)),ss}function St(Wn,yo){var Qo=Wn["page".concat(yo?"Y":"X","Offset")],ss="scroll".concat(yo?"Top":"Left");if(typeof Qo!="number"){var Ko=Wn.document;Qo=Ko.documentElement[ss],typeof Qo!="number"&&(Qo=Ko.body[ss])}return Qo}function nt(Wn){var yo=Wn.getBoundingClientRect(),Qo={left:yo.left,top:yo.top},ss=Wn.ownerDocument,Ko=ss.defaultView||ss.parentWindow;return Qo.left+=St(Ko),Qo.top+=St(Ko,!0),Qo}var wt=y(82225),lt=y(42550),Kt=w.memo(function(Wn){var yo=Wn.children;return yo},function(Wn,yo){var Qo=yo.shouldUpdate;return!Qo}),Mt={width:0,height:0,overflow:"hidden",outline:"none"},hn=w.forwardRef(function(Wn,yo){var Qo=Wn.prefixCls,ss=Wn.className,Ko=Wn.style,Xn=Wn.title,Rr=Wn.ariaId,Xr=Wn.footer,Ze=Wn.closable,ht=Wn.closeIcon,dt=Wn.onClose,$e=Wn.children,ft=Wn.bodyStyle,Lt=Wn.bodyProps,gn=Wn.modalRender,rr=Wn.onMouseDown,zr=Wn.onMouseUp,Fi=Wn.holderRef,xo=Wn.visible,Vi=Wn.forceRender,zs=Wn.width,Ps=Wn.height,Ms=Wn.classNames,ks=Wn.styles,ko=w.useContext(Te),As=ko.panel,ia=(0,lt.x1)(Fi,As),za=(0,w.useRef)(),Zl=(0,w.useRef)();w.useImperativeHandle(yo,function(){return{focus:function(){var Yo;(Yo=za.current)===null||Yo===void 0||Yo.focus()},changeActive:function(Yo){var Os=document,Cs=Os.activeElement;Yo&&Cs===Zl.current?za.current.focus():!Yo&&Cs===za.current&&Zl.current.focus()}}});var Hl={};zs!==void 0&&(Hl.width=zs),Ps!==void 0&&(Hl.height=Ps);var fs;Xr&&(fs=w.createElement("div",{className:g()("".concat(Qo,"-footer"),Ms==null?void 0:Ms.footer),style:(0,Me.Z)({},ks==null?void 0:ks.footer)},Xr));var js;Xn&&(js=w.createElement("div",{className:g()("".concat(Qo,"-header"),Ms==null?void 0:Ms.header),style:(0,Me.Z)({},ks==null?void 0:ks.header)},w.createElement("div",{className:"".concat(Qo,"-title"),id:Rr},Xn)));var hl;Ze&&(hl=w.createElement("button",{type:"button",onClick:dt,"aria-label":"Close",className:"".concat(Qo,"-close")},ht||w.createElement("span",{className:"".concat(Qo,"-close-x")})));var Xo=w.createElement("div",{className:g()("".concat(Qo,"-content"),Ms==null?void 0:Ms.content),style:ks==null?void 0:ks.content},hl,js,w.createElement("div",(0,st.Z)({className:g()("".concat(Qo,"-body"),Ms==null?void 0:Ms.body),style:(0,Me.Z)((0,Me.Z)({},ft),ks==null?void 0:ks.body)},Lt),$e),fs);return w.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Xn?Rr:null,"aria-modal":"true",ref:ia,style:(0,Me.Z)((0,Me.Z)({},Ko),Hl),className:g()(Qo,ss),onMouseDown:rr,onMouseUp:zr},w.createElement("div",{tabIndex:0,ref:za,style:Mt,"aria-hidden":"true"}),w.createElement(Kt,{shouldUpdate:xo||Vi},gn?gn(Xo):Xo),w.createElement("div",{tabIndex:0,ref:Zl,style:Mt,"aria-hidden":"true"}))}),un=hn,Sr=w.forwardRef(function(Wn,yo){var Qo=Wn.prefixCls,ss=Wn.title,Ko=Wn.style,Xn=Wn.className,Rr=Wn.visible,Xr=Wn.forceRender,Ze=Wn.destroyOnClose,ht=Wn.motionName,dt=Wn.ariaId,$e=Wn.onVisibleChanged,ft=Wn.mousePosition,Lt=(0,w.useRef)(),gn=w.useState(),rr=(0,Ae.Z)(gn,2),zr=rr[0],Fi=rr[1],xo={};zr&&(xo.transformOrigin=zr);function Vi(){var zs=nt(Lt.current);Fi(ft?"".concat(ft.x-zs.left,"px ").concat(ft.y-zs.top,"px"):"")}return w.createElement(wt.ZP,{visible:Rr,onVisibleChanged:$e,onAppearPrepare:Vi,onEnterPrepare:Vi,forceRender:Xr,motionName:ht,removeOnLeave:Ze,ref:Lt},function(zs,Ps){var Ms=zs.className,ks=zs.style;return w.createElement(un,(0,st.Z)({},Wn,{ref:yo,title:ss,ariaId:dt,prefixCls:Qo,holderRef:Ps,style:(0,Me.Z)((0,Me.Z)((0,Me.Z)({},ks),Ko),xo),className:g()(Xn,Ms)}))})});Sr.displayName="Content";var ii=Sr;function Ii(Wn){var yo=Wn.prefixCls,Qo=Wn.style,ss=Wn.visible,Ko=Wn.maskProps,Xn=Wn.motionName,Rr=Wn.className;return w.createElement(wt.ZP,{key:"mask",visible:ss,motionName:Xn,leavedClassName:"".concat(yo,"-mask-hidden")},function(Xr,Ze){var ht=Xr.className,dt=Xr.style;return w.createElement("div",(0,st.Z)({ref:Ze,style:(0,Me.Z)((0,Me.Z)({},dt),Qo),className:g()("".concat(yo,"-mask"),ht,Rr)},Ko))})}var Ni=y(80334);function eo(Wn){var yo=Wn.prefixCls,Qo=yo===void 0?"rc-dialog":yo,ss=Wn.zIndex,Ko=Wn.visible,Xn=Ko===void 0?!1:Ko,Rr=Wn.keyboard,Xr=Rr===void 0?!0:Rr,Ze=Wn.focusTriggerAfterClose,ht=Ze===void 0?!0:Ze,dt=Wn.wrapStyle,$e=Wn.wrapClassName,ft=Wn.wrapProps,Lt=Wn.onClose,gn=Wn.afterOpenChange,rr=Wn.afterClose,zr=Wn.transitionName,Fi=Wn.animation,xo=Wn.closable,Vi=xo===void 0?!0:xo,zs=Wn.mask,Ps=zs===void 0?!0:zs,Ms=Wn.maskTransitionName,ks=Wn.maskAnimation,ko=Wn.maskClosable,As=ko===void 0?!0:ko,ia=Wn.maskStyle,za=Wn.maskProps,Zl=Wn.rootClassName,Hl=Wn.classNames,fs=Wn.styles,js=(0,w.useRef)(),hl=(0,w.useRef)(),Xo=(0,w.useRef)(),Li=w.useState(Xn),Yo=(0,Ae.Z)(Li,2),Os=Yo[0],Cs=Yo[1],ba=(0,Pe.Z)();function Yu(){(0,Ue.Z)(hl.current,document.activeElement)||(js.current=document.activeElement)}function pc(){if(!(0,Ue.Z)(hl.current,document.activeElement)){var Un;(Un=Xo.current)===null||Un===void 0||Un.focus()}}function Hu(Un){if(Un)pc();else{if(Cs(!1),Ps&&js.current&&ht){try{js.current.focus({preventScroll:!0})}catch(Wr){}js.current=null}Os&&(rr==null||rr())}gn==null||gn(Un)}function wh(Un){Lt==null||Lt(Un)}var lh=(0,w.useRef)(!1),fu=(0,w.useRef)(),ru=function(){clearTimeout(fu.current),lh.current=!0},Tu=function(){fu.current=setTimeout(function(){lh.current=!1})},wi=null;As&&(wi=function(Wr){lh.current?lh.current=!1:hl.current===Wr.target&&wh(Wr)});function er(Un){if(Xr&&Un.keyCode===Xe.Z.ESC){Un.stopPropagation(),wh(Un);return}Xn&&Un.keyCode===Xe.Z.TAB&&Xo.current.changeActive(!Un.shiftKey)}return(0,w.useEffect)(function(){Xn&&(Cs(!0),Yu())},[Xn]),(0,w.useEffect)(function(){return function(){clearTimeout(fu.current)}},[]),w.createElement("div",(0,st.Z)({className:g()("".concat(Qo,"-root"),Zl)},(0,Be.Z)(Wn,{data:!0})),w.createElement(Ii,{prefixCls:Qo,visible:Ps&&Xn,motionName:Xt(Qo,Ms,ks),style:(0,Me.Z)((0,Me.Z)({zIndex:ss},ia),fs==null?void 0:fs.mask),maskProps:za,className:Hl==null?void 0:Hl.mask}),w.createElement("div",(0,st.Z)({tabIndex:-1,onKeyDown:er,className:g()("".concat(Qo,"-wrap"),$e,Hl==null?void 0:Hl.wrapper),ref:hl,onClick:wi,style:(0,Me.Z)((0,Me.Z)((0,Me.Z)({zIndex:ss},dt),fs==null?void 0:fs.wrapper),{},{display:Os?null:"none"})},ft),w.createElement(ii,(0,st.Z)({},Wn,{onMouseDown:ru,onMouseUp:Tu,ref:Xo,closable:Vi,ariaId:ba,prefixCls:Qo,visible:Xn&&Os,onClose:wh,onVisibleChanged:Hu,motionName:Xt(Qo,zr,Fi)}))))}var ti=function(yo){var Qo=yo.visible,ss=yo.getContainer,Ko=yo.forceRender,Xn=yo.destroyOnClose,Rr=Xn===void 0?!1:Xn,Xr=yo.afterClose,Ze=yo.panelRef,ht=w.useState(Qo),dt=(0,Ae.Z)(ht,2),$e=dt[0],ft=dt[1],Lt=w.useMemo(function(){return{panel:Ze}},[Ze]);return w.useEffect(function(){Qo&&ft(!0)},[Qo]),!Ko&&Rr&&!$e?null:w.createElement(Te.Provider,{value:Lt},w.createElement(De.Z,{open:Qo||Ko||$e,autoDestroy:!1,getContainer:ss,autoLock:Qo||$e},w.createElement(eo,(0,st.Z)({},yo,{destroyOnClose:Rr,afterClose:function(){Xr==null||Xr(),ft(!1)}}))))};ti.displayName="Dialog";var Is=ti,Ns=Is,Se=y(69760),Xi=y(98924);const Yi=()=>(0,Xi.Z)()&&window.document.documentElement;var fo=y(43945),di=y(53124),Fs=y(65223),Ln=y(4173),it=y(56790);function Ot(){}const Ht=w.createContext({add:Ot,remove:Ot});function Pn(Wn){const yo=w.useContext(Ht),Qo=w.useRef();return(0,it.zX)(Ko=>{if(Ko){const Xn=Wn?Ko.querySelector(Wn):Ko;yo.add(Xn),Qo.current=Xn}else yo.remove(Qo.current)})}var fr=null,In=y(98866),mn=y(15867),en=()=>{const{cancelButtonProps:Wn,cancelTextLocale:yo,onCancel:Qo}=(0,w.useContext)(fe);return w.createElement(mn.ZP,Object.assign({onClick:Qo},Wn),yo)},Cn=y(33671),pr=()=>{const{confirmLoading:Wn,okButtonProps:yo,okType:Qo,okTextLocale:ss,onOk:Ko}=(0,w.useContext)(fe);return w.createElement(mn.ZP,Object.assign({},(0,Cn.nx)(Qo),{loading:Wn,onClick:Ko},yo),ss)},an=y(83008);function wr(Wn,yo){return w.createElement("span",{className:`${Wn}-close-x`},yo||w.createElement(pt.Z,{className:`${Wn}-close-icon`}))}const Cr=Wn=>{const{okText:yo,okType:Qo="primary",cancelText:ss,confirmLoading:Ko,onOk:Xn,onCancel:Rr,okButtonProps:Xr,cancelButtonProps:Ze,footer:ht}=Wn,[dt]=(0,K.Z)("Modal",(0,an.A)()),$e=yo||(dt==null?void 0:dt.okText),ft=ss||(dt==null?void 0:dt.cancelText),Lt={confirmLoading:Ko,okButtonProps:Xr,cancelButtonProps:Ze,okTextLocale:$e,cancelTextLocale:ft,okType:Qo,onOk:Xn,onCancel:Rr},gn=w.useMemo(()=>Lt,(0,v.Z)(Object.values(Lt)));let rr;return typeof ht=="function"||typeof ht=="undefined"?(rr=w.createElement(w.Fragment,null,w.createElement(en,null),w.createElement(pr,null)),typeof ht=="function"&&(rr=ht(rr,{OkBtn:pr,CancelBtn:en})),rr=w.createElement(xe,{value:gn},rr)):rr=ht,w.createElement(In.n,{disabled:!1},rr)};var Ei=y(14747),vo=y(16932),kr=y(50438),ro=y(45503),qi=y(91945),bo=y(43109);function xn(Wn){return{position:Wn,inset:0}}const pn=Wn=>{const{componentCls:yo,antCls:Qo}=Wn;return[{[`${yo}-root`]:{[`${yo}${Qo}-zoom-enter, ${yo}${Qo}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:Wn.motionDurationSlow,userSelect:"none"},[`${yo}${Qo}-zoom-leave ${yo}-content`]:{pointerEvents:"none"},[`${yo}-mask`]:Object.assign(Object.assign({},xn("fixed")),{zIndex:Wn.zIndexPopupBase,height:"100%",backgroundColor:Wn.colorBgMask,pointerEvents:"none",[`${yo}-hidden`]:{display:"none"}}),[`${yo}-wrap`]:Object.assign(Object.assign({},xn("fixed")),{zIndex:Wn.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${yo}${Qo}-zoom-enter), &:has(${yo}${Qo}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${yo}-root`]:(0,vo.J$)(Wn)}]},Dt=Wn=>{const{componentCls:yo}=Wn;return[{[`${yo}-root`]:{[`${yo}-wrap-rtl`]:{direction:"rtl"},[`${yo}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[yo]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${Wn.screenSMMax}px)`]:{[yo]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,bo.bf)(Wn.marginXS)} auto`},[`${yo}-centered`]:{[yo]:{flex:1}}}}},{[yo]:Object.assign(Object.assign({},(0,Ei.Wf)(Wn)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,bo.bf)(Wn.calc(Wn.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:Wn.paddingLG,[`${yo}-title`]:{margin:0,color:Wn.titleColor,fontWeight:Wn.fontWeightStrong,fontSize:Wn.titleFontSize,lineHeight:Wn.titleLineHeight,wordWrap:"break-word"},[`${yo}-content`]:{position:"relative",backgroundColor:Wn.contentBg,backgroundClip:"padding-box",border:0,borderRadius:Wn.borderRadiusLG,boxShadow:Wn.boxShadow,pointerEvents:"auto",padding:Wn.contentPadding},[`${yo}-close`]:Object.assign({position:"absolute",top:Wn.calc(Wn.modalHeaderHeight).sub(Wn.modalCloseBtnSize).div(2).equal(),insetInlineEnd:Wn.calc(Wn.modalHeaderHeight).sub(Wn.modalCloseBtnSize).div(2).equal(),zIndex:Wn.calc(Wn.zIndexPopupBase).add(10).equal(),padding:0,color:Wn.modalCloseIconColor,fontWeight:Wn.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:Wn.borderRadiusSM,width:Wn.modalCloseBtnSize,height:Wn.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${Wn.motionDurationMid}, background-color ${Wn.motionDurationMid}`,"&-x":{display:"flex",fontSize:Wn.fontSizeLG,fontStyle:"normal",lineHeight:`${(0,bo.bf)(Wn.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:Wn.modalIconHoverColor,backgroundColor:Wn.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:Wn.closeBtnActiveBg}},(0,Ei.Qy)(Wn)),[`${yo}-header`]:{color:Wn.colorText,background:Wn.headerBg,borderRadius:`${(0,bo.bf)(Wn.borderRadiusLG)} ${(0,bo.bf)(Wn.borderRadiusLG)} 0 0`,marginBottom:Wn.headerMarginBottom,padding:Wn.headerPadding,borderBottom:Wn.headerBorderBottom},[`${yo}-body`]:{fontSize:Wn.fontSize,lineHeight:Wn.lineHeight,wordWrap:"break-word",padding:Wn.bodyPadding},[`${yo}-footer`]:{textAlign:"end",background:Wn.footerBg,marginTop:Wn.footerMarginTop,padding:Wn.footerPadding,borderTop:Wn.footerBorderTop,borderRadius:Wn.footerBorderRadius,[`${Wn.antCls}-btn + ${Wn.antCls}-btn:not(${Wn.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:Wn.marginXS}},[`${yo}-open`]:{overflow:"hidden"}})},{[`${yo}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${yo}-content, ${yo}-body, - ${yo}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${yo}-confirm-body`]:{marginBottom:"auto"}}}]},Zt=Wn=>{const{componentCls:yo}=Wn;return{[`${yo}-root`]:{[`${yo}-wrap-rtl`]:{direction:"rtl",[`${yo}-confirm-body`]:{direction:"rtl"}}}}},gn=Wn=>{const yo=Wn.padding,Qo=Wn.fontSizeHeading5,os=Wn.lineHeightHeading5;return(0,to.TS)(Wn,{modalHeaderHeight:Wn.calc(Wn.calc(os).mul(Qo).equal()).add(Wn.calc(yo).mul(2).equal()).equal(),modalFooterBorderColorSplit:Wn.colorSplit,modalFooterBorderStyle:Wn.lineType,modalFooterBorderWidth:Wn.lineWidth,modalIconHoverColor:Wn.colorIconHover,modalCloseIconColor:Wn.colorIcon,modalCloseBtnSize:Wn.fontHeight,modalConfirmIconSize:Wn.fontHeight,modalTitleHeight:Wn.calc(Wn.titleFontSize).mul(Wn.titleLineHeight).equal()})},$n=Wn=>({footerBg:"transparent",headerBg:Wn.colorBgElevated,titleLineHeight:Wn.lineHeightHeading5,titleFontSize:Wn.fontSizeHeading5,contentBg:Wn.colorBgElevated,titleColor:Wn.colorTextHeading,closeBtnHoverBg:Wn.wireframe?"transparent":Wn.colorFillContent,closeBtnActiveBg:Wn.wireframe?"transparent":Wn.colorFillContentHover,contentPadding:Wn.wireframe?0:`${(0,bo.bf)(Wn.paddingMD)} ${(0,bo.bf)(Wn.paddingContentHorizontalLG)}`,headerPadding:Wn.wireframe?`${(0,bo.bf)(Wn.padding)} ${(0,bo.bf)(Wn.paddingLG)}`:0,headerBorderBottom:Wn.wireframe?`${(0,bo.bf)(Wn.lineWidth)} ${Wn.lineType} ${Wn.colorSplit}`:"none",headerMarginBottom:Wn.wireframe?0:Wn.marginXS,bodyPadding:Wn.wireframe?Wn.paddingLG:0,footerPadding:Wn.wireframe?`${(0,bo.bf)(Wn.paddingXS)} ${(0,bo.bf)(Wn.padding)}`:0,footerBorderTop:Wn.wireframe?`${(0,bo.bf)(Wn.lineWidth)} ${Wn.lineType} ${Wn.colorSplit}`:"none",footerBorderRadius:Wn.wireframe?`0 0 ${(0,bo.bf)(Wn.borderRadiusLG)} ${(0,bo.bf)(Wn.borderRadiusLG)}`:0,footerMarginTop:Wn.wireframe?0:Wn.marginSM,confirmBodyPadding:Wn.wireframe?`${(0,bo.bf)(Wn.padding*2)} ${(0,bo.bf)(Wn.padding*2)} ${(0,bo.bf)(Wn.paddingLG)}`:0,confirmIconMarginInlineEnd:Wn.wireframe?Wn.margin:Wn.marginSM,confirmBtnsMarginTop:Wn.wireframe?Wn.marginLG:Wn.marginSM});var Ar=(0,Ji.I$)("Modal",Wn=>{const yo=gn(Wn);return[It(yo),Zt(yo),fn(yo),(0,Fr._y)(yo,"zoom")]},$n,{unitless:{titleLineHeight:!0}}),Dr=_(20170),dr=function(Wn,yo){var Qo={};for(var os in Wn)Object.prototype.hasOwnProperty.call(Wn,os)&&yo.indexOf(os)<0&&(Qo[os]=Wn[os]);if(Wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ko=0,os=Object.getOwnPropertySymbols(Wn);Ko{Xt={x:Wn.pageX,y:Wn.pageY},setTimeout(()=>{Xt=null},100)};qi()&&document.documentElement.addEventListener("click",Cn,!0);var Mr=Wn=>{var yo;const{getPopupContainer:Qo,getPrefixCls:os,direction:Ko,modal:Yn}=w.useContext(fi.E_),kr=Cs=>{const{onCancel:xa}=Wn;xa==null||xa(Cs)},Gr=Cs=>{const{onOk:xa}=Wn;xa==null||xa(Cs)},{prefixCls:je,className:ut,rootClassName:ht,open:Ue,wrapClassName:ft,centered:Pt,getContainer:ln,closeIcon:sr,closable:Zr,focusTriggerAfterClose:Ui=!0,style:To,visible:Vi,width:Us=520,footer:Is,classNames:Rs,styles:Ns}=Wn,Lo=dr(Wn,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),Ps=os("modal",je),ua=os(),Ka=(0,Dr.Z)(Ps),[Hl,Gl]=Ar(Ps,Ka),fs=g()(ft,{[`${Ps}-centered`]:!!Pt,[`${Ps}-wrap-rtl`]:Ko==="rtl"}),Hs=Is!==null&&w.createElement(Sr,Object.assign({},Wn,{onOk:Gr,onCancel:kr})),[dl,Xo]=(0,Ce.Z)(Zr,sr,Cs=>wr(Ps,Cs),w.createElement(vt.Z,{className:`${Ps}-close-icon`}),!0),Mi=Dn(`.${Ps}-content`),[Yo,Os]=(0,A.Cn)("Modal",Lo.zIndex);return Hl(w.createElement(In.BR,null,w.createElement(Ms.Ux,{status:!0,override:!0},w.createElement(co.Z.Provider,{value:Os},w.createElement(Bs,Object.assign({width:Us},Lo,{zIndex:Yo,getContainer:ln===void 0?Qo:ln,prefixCls:Ps,rootClassName:g()(Gl,ht,Ka),footer:Hs,visible:Ue!=null?Ue:Vi,mousePosition:(yo=Lo.mousePosition)!==null&&yo!==void 0?yo:Xt,onClose:kr,closable:dl,closeIcon:Xo,focusTriggerAfterClose:Ui,transitionName:(0,O.m)(ua,"zoom",Wn.transitionName),maskTransitionName:(0,O.m)(ua,"fade",Wn.maskTransitionName),className:g()(Gl,ut,Yn==null?void 0:Yn.className),style:Object.assign(Object.assign({},Yn==null?void 0:Yn.style),To),classNames:Object.assign(Object.assign({wrapper:fs},Yn==null?void 0:Yn.classNames),Rs),styles:Object.assign(Object.assign({},Yn==null?void 0:Yn.styles),Ns),panelRef:Mi}))))))};const ji=Wn=>{const{componentCls:yo,titleFontSize:Qo,titleLineHeight:os,modalConfirmIconSize:Ko,fontSize:Yn,lineHeight:kr,modalTitleHeight:Gr,fontHeight:je,confirmBodyPadding:ut}=Wn,ht=`${yo}-confirm`;return{[ht]:{"&-rtl":{direction:"rtl"},[`${Wn.antCls}-modal-header`]:{display:"none"},[`${ht}-body-wrapper`]:Object.assign({},(0,Ai.dF)()),[`&${yo} ${yo}-body`]:{padding:ut},[`${ht}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Wn.iconCls}`]:{flex:"none",fontSize:Ko,marginInlineEnd:Wn.confirmIconMarginInlineEnd,marginTop:Wn.calc(Wn.calc(je).sub(Ko).equal()).div(2).equal()},[`&-has-title > ${Wn.iconCls}`]:{marginTop:Wn.calc(Wn.calc(Gr).sub(Ko).equal()).div(2).equal()}},[`${ht}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:Wn.marginXS,maxWidth:`calc(100% - ${(0,bo.bf)(Wn.calc(Wn.modalConfirmIconSize).add(Wn.marginSM).equal())})`},[`${ht}-title`]:{color:Wn.colorTextHeading,fontWeight:Wn.fontWeightStrong,fontSize:Qo,lineHeight:os},[`${ht}-content`]:{color:Wn.colorText,fontSize:Yn,lineHeight:kr},[`${ht}-btns`]:{textAlign:"end",marginTop:Wn.confirmBtnsMarginTop,[`${Wn.antCls}-btn + ${Wn.antCls}-btn`]:{marginBottom:0,marginInlineStart:Wn.marginXS}}},[`${ht}-error ${ht}-body > ${Wn.iconCls}`]:{color:Wn.colorError},[`${ht}-warning ${ht}-body > ${Wn.iconCls}, - ${ht}-confirm ${ht}-body > ${Wn.iconCls}`]:{color:Wn.colorWarning},[`${ht}-info ${ht}-body > ${Wn.iconCls}`]:{color:Wn.colorInfo},[`${ht}-success ${ht}-body > ${Wn.iconCls}`]:{color:Wn.colorSuccess}}};var An=(0,Ji.bk)(["Modal","confirm"],Wn=>{const yo=gn(Wn);return[ji(yo)]},$n,{order:-1e3}),Xn=function(Wn,yo){var Qo={};for(var os in Wn)Object.prototype.hasOwnProperty.call(Wn,os)&&yo.indexOf(os)<0&&(Qo[os]=Wn[os]);if(Wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ko=0,os=Object.getOwnPropertySymbols(Wn);KoTo,(0,v.Z)(Object.values(To))),Us=w.createElement(w.Fragment,null,w.createElement(we,null),w.createElement(He,null)),Is=Wn.title!==void 0&&Wn.title!==null,Rs=`${Yn}-body`;return w.createElement("div",{className:`${Yn}-body-wrapper`},w.createElement("div",{className:g()(Rs,{[`${Rs}-has-title`]:Is})},Ue,w.createElement("div",{className:`${Yn}-paragraph`},Is&&w.createElement("span",{className:`${Yn}-title`},Wn.title),w.createElement("div",{className:`${Yn}-content`},Wn.content))),je===void 0||typeof je=="function"?w.createElement(Ee,{value:Vi},w.createElement("div",{className:`${Yn}-btns`},typeof je=="function"?je(Us,{OkBtn:He,CancelBtn:we}):Us)):je,w.createElement(An,{prefixCls:yo}))}const qr=Wn=>{const{close:yo,zIndex:Qo,afterClose:os,open:Ko,keyboard:Yn,centered:kr,getContainer:Gr,maskStyle:je,direction:ut,prefixCls:ht,wrapClassName:Ue,rootPrefixCls:ft,bodyStyle:Pt,closable:ln=!1,closeIcon:sr,modalRender:Zr,focusTriggerAfterClose:Ui,onConfirm:To,styles:Vi}=Wn,Us=`${ht}-confirm`,Is=Wn.width||416,Rs=Wn.style||{},Ns=Wn.mask===void 0?!0:Wn.mask,Lo=Wn.maskClosable===void 0?!1:Wn.maskClosable,Ps=g()(Us,`${Us}-${Wn.type}`,{[`${Us}-rtl`]:ut==="rtl"},Wn.className),[,ua]=(0,ce.ZP)(),Ka=w.useMemo(()=>Qo!==void 0?Qo:ua.zIndexPopupBase+A.u6,[Qo,ua]);return w.createElement(Mr,{prefixCls:ht,className:Ps,wrapClassName:g()({[`${Us}-centered`]:!!Wn.centered},Ue),onCancel:()=>{yo==null||yo({triggerCancel:!0}),To==null||To(!1)},open:Ko,title:"",footer:null,transitionName:(0,O.m)(ft||"","zoom",Wn.transitionName),maskTransitionName:(0,O.m)(ft||"","fade",Wn.maskTransitionName),mask:Ns,maskClosable:Lo,style:Rs,styles:Object.assign({body:Pt,mask:je},Vi),width:Is,zIndex:Ka,afterClose:os,keyboard:Yn,centered:kr,getContainer:Gr,closable:ln,closeIcon:sr,modalRender:Zr,focusTriggerAfterClose:Ui},w.createElement(nr,Object.assign({},Wn,{confirmPrefixCls:Us})))};var Hr=Wn=>{const{rootPrefixCls:yo,iconPrefixCls:Qo,direction:os,theme:Ko}=Wn;return w.createElement(b.ZP,{prefixCls:yo,iconPrefixCls:Qo,direction:os,theme:Ko},w.createElement(qr,Object.assign({},Wn)))},gi=[],mi=function(Wn,yo){var Qo={};for(var os in Wn)Object.prototype.hasOwnProperty.call(Wn,os)&&yo.indexOf(os)<0&&(Qo[os]=Wn[os]);if(Wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ko=0,os=Object.getOwnPropertySymbols(Wn);Koft&&ft.triggerCancel);Wn.onCancel&&Ue&&Wn.onCancel.apply(Wn,[()=>{}].concat((0,v.Z)(ut.slice(1))));for(let ft=0;ft{const ln=(0,pn.A)(),{getPrefixCls:sr,getIconPrefixCls:Zr,getTheme:Ui}=(0,b.w6)(),To=sr(void 0,zr()),Vi=Ue||`${To}-modal`,Us=Zr(),Is=Ui();let Rs=ft;Rs===!1&&(Rs=void 0),(0,R.s)(w.createElement(Hr,Object.assign({},Pt,{getContainer:Rs,prefixCls:Vi,rootPrefixCls:To,iconPrefixCls:Us,okText:ut,locale:ln,theme:Is,cancelText:ht||ln.cancelText})),yo)})}function kr(){for(var je=arguments.length,ut=new Array(je),ht=0;ht{typeof Wn.afterClose=="function"&&Wn.afterClose(),Ko.apply(this,ut)}}),Qo.visible&&delete Qo.visible,Yn(Qo)}function Gr(je){typeof je=="function"?Qo=je(Qo):Qo=Object.assign(Object.assign({},Qo),je),Yn(Qo)}return Yn(Qo),gi.push(kr),{destroy:kr,update:Gr}}function Qi(Wn){return Object.assign(Object.assign({},Wn),{type:"warning"})}function rs(Wn){return Object.assign(Object.assign({},Wn),{type:"info"})}function Ur(Wn){return Object.assign(Object.assign({},Wn),{type:"success"})}function gs(Wn){return Object.assign(Object.assign({},Wn),{type:"error"})}function Kr(Wn){return Object.assign(Object.assign({},Wn),{type:"confirm"})}function ri(Wn){let{rootPrefixCls:yo}=Wn;Bi=yo}var is=_(52910),Jr=function(Wn,yo){var Qo={};for(var os in Wn)Object.prototype.hasOwnProperty.call(Wn,os)&&yo.indexOf(os)<0&&(Qo[os]=Wn[os]);if(Wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ko=0,os=Object.getOwnPropertySymbols(Wn);Ko{const{prefixCls:yo,className:Qo,closeIcon:os,closable:Ko,type:Yn,title:kr,children:Gr,footer:je}=Wn,ut=Jr(Wn,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:ht}=w.useContext(fi.E_),Ue=ht(),ft=yo||ht("modal"),Pt=(0,Dr.Z)(Ue),[ln,sr]=Ar(ft,Pt),Zr=`${ft}-confirm`;let Ui={};return Yn?Ui={closable:Ko!=null?Ko:!1,title:"",footer:"",children:w.createElement(nr,Object.assign({},Wn,{prefixCls:ft,confirmPrefixCls:Zr,rootPrefixCls:Ue,content:Gr}))}:Ui={closable:Ko!=null?Ko:!0,title:kr,footer:je!==null&&w.createElement(Sr,Object.assign({},Wn)),children:Gr},ln(w.createElement(cn,Object.assign({prefixCls:ft,className:g()(sr,`${ft}-pure-panel`,Yn&&Zr,Yn&&`${Zr}-${Yn}`,Qo,Pt)},ut,{closeIcon:wr(ft,os),closable:Ko},Ui)))};var Br=(0,is.i)(_n);function es(){const[Wn,yo]=w.useState([]),Qo=w.useCallback(os=>(yo(Ko=>[].concat((0,v.Z)(Ko),[os])),()=>{yo(Ko=>Ko.filter(Yn=>Yn!==os))}),[]);return[Wn,Qo]}var ko=_(44199),vs=function(Wn,yo){var Qo={};for(var os in Wn)Object.prototype.hasOwnProperty.call(Wn,os)&&yo.indexOf(os)<0&&(Qo[os]=Wn[os]);if(Wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ko=0,os=Object.getOwnPropertySymbols(Wn);Ko{var Qo,{afterClose:os,config:Ko}=Wn,Yn=vs(Wn,["afterClose","config"]);const[kr,Gr]=w.useState(!0),[je,ut]=w.useState(Ko),{direction:ht,getPrefixCls:Ue}=w.useContext(fi.E_),ft=Ue("modal"),Pt=Ue(),ln=()=>{var To;os(),(To=je.afterClose)===null||To===void 0||To.call(je)},sr=function(){Gr(!1);for(var To=arguments.length,Vi=new Array(To),Us=0;UsRs&&Rs.triggerCancel);je.onCancel&&Is&&je.onCancel.apply(je,[()=>{}].concat((0,v.Z)(Vi.slice(1))))};w.useImperativeHandle(yo,()=>({destroy:sr,update:To=>{ut(Vi=>Object.assign(Object.assign({},Vi),To))}}));const Zr=(Qo=je.okCancel)!==null&&Qo!==void 0?Qo:je.type==="confirm",[Ui]=(0,K.Z)("Modal",ko.Z.Modal);return w.createElement(Hr,Object.assign({prefixCls:ft,rootPrefixCls:Pt},je,{close:sr,open:kr,afterClose:ln,okText:je.okText||(Zr?Ui==null?void 0:Ui.okText:Ui==null?void 0:Ui.justOkText),direction:je.direction||ht,cancelText:je.cancelText||(Ui==null?void 0:Ui.cancelText)},Yn))};var uo=w.forwardRef(Ba);let ca=0;const ll=w.memo(w.forwardRef((Wn,yo)=>{const[Qo,os]=es();return w.useImperativeHandle(yo,()=>({patchElement:os}),[]),w.createElement(w.Fragment,null,Qo)}));function Ti(){const Wn=w.useRef(null),[yo,Qo]=w.useState([]);w.useEffect(()=>{yo.length&&((0,v.Z)(yo).forEach(kr=>{kr()}),Qo([]))},[yo]);const os=w.useCallback(Yn=>function(Gr){var je;ca+=1;const ut=w.createRef();let ht;const Ue=new Promise(Zr=>{ht=Zr});let ft=!1,Pt;const ln=w.createElement(uo,{key:`modal-${ca}`,config:Yn(Gr),ref:ut,afterClose:()=>{Pt==null||Pt()},isSilent:()=>ft,onConfirm:Zr=>{ht(Zr)}});return Pt=(je=Wn.current)===null||je===void 0?void 0:je.patchElement(ln),Pt&&gi.push(Pt),{destroy:()=>{function Zr(){var Ui;(Ui=ut.current)===null||Ui===void 0||Ui.destroy()}ut.current?Zr():Qo(Ui=>[].concat((0,v.Z)(Ui),[Zr]))},update:Zr=>{function Ui(){var To;(To=ut.current)===null||To===void 0||To.update(Zr)}ut.current?Ui():Qo(To=>[].concat((0,v.Z)(To),[Ui]))},then:Zr=>(ft=!0,Ue.then(Zr))}},[]);return[w.useMemo(()=>({info:os(rs),success:os(Ur),error:os(gs),warning:os(Qi),confirm:os(Kr)}),[]),w.createElement(ll,{key:"modal-holder",ref:Wn})]}var Li=Ti;function eo(Wn){return Xr(Qi(Wn))}const Eo=Mr;Eo.useModal=Li,Eo.info=function(yo){return Xr(rs(yo))},Eo.success=function(yo){return Xr(Ur(yo))},Eo.error=function(yo){return Xr(gs(yo))},Eo.warning=eo,Eo.warn=eo,Eo.confirm=function(yo){return Xr(Kr(yo))},Eo.destroyAll=function(){for(;gi.length;){const yo=gi.pop();yo&&yo()}},Eo.config=ri,Eo._InternalPanelDoNotUseOrYouWillBeFired=Br;var hs=Eo},46665:function(_t,Y,_){"use strict";_.d(Y,{A:function(){return V},f:function(){return B}});var v=_(44199);let R=Object.assign({},v.Z.Modal),w=[];const b=()=>w.reduce((k,M)=>Object.assign(Object.assign({},k),M),v.Z.Modal);function B(k){if(k){const M=Object.assign({},k);return w.push(M),R=b(),()=>{w=w.filter(C=>C!==M),R=b()}}R=Object.assign({},v.Z.Modal)}function V(){return R}},3550:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return $e}});var v=_(77617),R=_(86850),w=_(12124),b=_.n(w),B=_(84381),V=_(84821),k=_(99468),M=_(29341),C=_(51059),g=_(78666),A=_(14019),O=_(9090),K=_(9949),ce=_(62481),de=_(66951),ve=_(44199),Ee=_(38762),_e=_(67859);const we=Ie=>{const{componentCls:Xe,iconCls:ze,antCls:Kt,zIndexPopup:St,colorText:nt,colorWarning:Ct,marginXXS:lt,marginXS:Gt,fontSize:Rt,fontWeightStrong:an,colorTextHeading:cn}=Ie;return{[Xe]:{zIndex:St,[`&${Kt}-popover`]:{fontSize:Rt},[`${Xe}-message`]:{marginBottom:Gt,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Xe}-message-icon ${ze}`]:{color:Ct,fontSize:Rt,lineHeight:1,marginInlineEnd:Gt},[`${Xe}-title`]:{fontWeight:an,color:cn,"&:only-child":{fontWeight:"normal"}},[`${Xe}-description`]:{marginTop:lt,color:nt}},[`${Xe}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:Gt}}}}},ot=Ie=>{const{zIndexPopupBase:Xe}=Ie;return{zIndexPopup:Xe+60}};var He=(0,_e.I$)("Popconfirm",Ie=>we(Ie),ot,{resetStyle:!1}),vt=function(Ie,Xe){var ze={};for(var Kt in Ie)Object.prototype.hasOwnProperty.call(Ie,Kt)&&Xe.indexOf(Kt)<0&&(ze[Kt]=Ie[Kt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Kt=Object.getOwnPropertySymbols(Ie);St{const{prefixCls:Xe,okButtonProps:ze,cancelButtonProps:Kt,title:St,description:nt,cancelText:Ct,okText:lt,okType:Gt="primary",icon:Rt=v.createElement(R.Z,null),showCancel:an=!0,close:cn,onConfirm:Cr,onCancel:ii,onPopupClick:Pi}=Ie,{getPrefixCls:Ni}=v.useContext(C.E_),[Yi]=(0,de.Z)("Popconfirm",ve.Z.Popconfirm),ti=(0,O.Z)(St),Ts=(0,O.Z)(nt);return v.createElement("div",{className:`${Xe}-inner-content`,onClick:Pi},v.createElement("div",{className:`${Xe}-message`},Rt&&v.createElement("span",{className:`${Xe}-message-icon`},Rt),v.createElement("div",{className:`${Xe}-message-text`},ti&&v.createElement("div",{className:b()(`${Xe}-title`)},ti),Ts&&v.createElement("div",{className:`${Xe}-description`},Ts))),v.createElement("div",{className:`${Xe}-buttons`},an&&v.createElement(K.ZP,Object.assign({onClick:ii,size:"small"},Kt),Ct!=null?Ct:Yi==null?void 0:Yi.cancelText),v.createElement(A.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,ce.nx)(Gt)),ze),actionFn:Cr,close:cn,prefixCls:Ni("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},lt!=null?lt:Yi==null?void 0:Yi.okText)))};var De=Ie=>{const{prefixCls:Xe,placement:ze,className:Kt,style:St}=Ie,nt=vt(Ie,["prefixCls","placement","className","style"]),{getPrefixCls:Ct}=v.useContext(C.E_),lt=Ct("popconfirm",Xe),[Gt]=He(lt);return Gt(v.createElement(Ee.ZP,{placement:ze,className:b()(lt,Kt),style:St,content:v.createElement(dt,Object.assign({prefixCls:lt},nt))}))},Ae=function(Ie,Xe){var ze={};for(var Kt in Ie)Object.prototype.hasOwnProperty.call(Ie,Kt)&&Xe.indexOf(Kt)<0&&(ze[Kt]=Ie[Kt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Kt=Object.getOwnPropertySymbols(Ie);St{var ze,Kt;const{prefixCls:St,placement:nt="top",trigger:Ct="click",okType:lt="primary",icon:Gt=v.createElement(R.Z,null),children:Rt,overlayClassName:an,onOpenChange:cn,onVisibleChange:Cr}=Ie,ii=Ae(Ie,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:Pi}=v.useContext(C.E_),[Ni,Yi]=(0,B.Z)(!1,{value:(ze=Ie.open)!==null&&ze!==void 0?ze:Ie.visible,defaultValue:(Kt=Ie.defaultOpen)!==null&&Kt!==void 0?Kt:Ie.defaultVisible}),ti=(In,et)=>{Yi(In,!0),Cr==null||Cr(In),cn==null||cn(In,et)},Ts=In=>{ti(!1,In)},Bs=In=>{var et;return(et=Ie.onConfirm)===null||et===void 0?void 0:et.call(void 0,In)},Ce=In=>{var et;ti(!1,In),(et=Ie.onCancel)===null||et===void 0||et.call(void 0,In)},Gi=In=>{In.keyCode===V.Z.ESC&&Ni&&ti(!1,In)},qi=In=>{const{disabled:et=!1}=Ie;et||ti(In)},co=Pi("popconfirm",St),fi=b()(co,an),[Ms]=He(co);return Ms(v.createElement(g.Z,Object.assign({},(0,k.Z)(ii,["title"]),{trigger:Ct,placement:nt,onOpenChange:qi,open:Ni,ref:Xe,overlayClassName:fi,content:v.createElement(dt,Object.assign({okType:lt,icon:Gt},Ie,{prefixCls:co,close:Ts,onConfirm:Bs,onCancel:Ce})),"data-popover-inject":!0}),(0,M.Tm)(Rt,{onKeyDown:In=>{var et,Dt;v.isValidElement(Rt)&&((Dt=Rt==null?void 0:(et=Rt.props).onKeyDown)===null||Dt===void 0||Dt.call(et,In)),Gi(In)}})))});Re._InternalPanelDoNotUseOrYouWillBeFired=De;var $e=Re},38762:function(_t,Y,_){"use strict";_.d(Y,{t5:function(){return g}});var v=_(12124),R=_.n(v),w=_(31718),b=_(77617),B=_(51059),V=_(9090),k=_(88431),M=function(O,K){var ce={};for(var de in O)Object.prototype.hasOwnProperty.call(O,de)&&K.indexOf(de)<0&&(ce[de]=O[de]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,de=Object.getOwnPropertySymbols(O);ve{if(!(!K&&!ce))return b.createElement(b.Fragment,null,K&&b.createElement("div",{className:`${O}-title`},(0,V.Z)(K)),b.createElement("div",{className:`${O}-inner-content`},(0,V.Z)(ce)))},g=O=>{const{hashId:K,prefixCls:ce,className:de,style:ve,placement:Ee="top",title:_e,content:we,children:ot}=O;return b.createElement("div",{className:R()(K,ce,`${ce}-pure`,`${ce}-placement-${Ee}`,de),style:ve},b.createElement("div",{className:`${ce}-arrow`}),b.createElement(w.G,Object.assign({},O,{className:K,prefixCls:ce}),ot||C(ce,_e,we)))},A=O=>{const{prefixCls:K}=O,ce=M(O,["prefixCls"]),{getPrefixCls:de}=b.useContext(B.E_),ve=de("popover",K),[Ee,_e]=(0,k.Z)(ve);return Ee(b.createElement(g,Object.assign({},ce,{prefixCls:ve,hashId:_e})))};Y.ZP=A},78666:function(_t,Y,_){"use strict";var v=_(77617),R=_(12124),w=_.n(R),b=_(9090),B=_(82395),V=_(51059),k=_(38134),M=_(38762),C=_(88431),g=function(K,ce){var de={};for(var ve in K)Object.prototype.hasOwnProperty.call(K,ve)&&ce.indexOf(ve)<0&&(de[ve]=K[ve]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,ve=Object.getOwnPropertySymbols(K);Ee{let{title:ce,content:de,prefixCls:ve}=K;return v.createElement(v.Fragment,null,ce&&v.createElement("div",{className:`${ve}-title`},(0,b.Z)(ce)),v.createElement("div",{className:`${ve}-inner-content`},(0,b.Z)(de)))},O=v.forwardRef((K,ce)=>{const{prefixCls:de,title:ve,content:Ee,overlayClassName:_e,placement:we="top",trigger:ot="hover",mouseEnterDelay:He=.1,mouseLeaveDelay:vt=.1,overlayStyle:dt={}}=K,Pe=g(K,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:De}=v.useContext(V.E_),Ae=De("popover",de),[Re,$e]=(0,C.Z)(Ae),Ie=De(),Xe=w()(_e,$e);return Re(v.createElement(k.Z,Object.assign({placement:we,trigger:ot,mouseEnterDelay:He,mouseLeaveDelay:vt,overlayStyle:dt},Pe,{prefixCls:Ae,overlayClassName:Xe,ref:ce,overlay:ve||Ee?v.createElement(A,{prefixCls:Ae,title:ve,content:Ee}):null,transitionName:(0,B.m)(Ie,"zoom-big",Pe.transitionName),"data-popover-inject":!0})))});O._InternalPanelDoNotUseOrYouWillBeFired=M.ZP,Y.Z=O},88431:function(_t,Y,_){"use strict";var v=_(35772),R=_(44566),w=_(79208),b=_(65341),B=_(67859),V=_(80172),k=_(11882);const M=A=>{const{componentCls:O,popoverColor:K,titleMinWidth:ce,fontWeightStrong:de,innerPadding:ve,boxShadowSecondary:Ee,colorTextHeading:_e,borderRadiusLG:we,zIndexPopup:ot,titleMarginBottom:He,colorBgElevated:vt,popoverBg:dt,titleBorderBottom:Pe,innerContentPadding:De,titlePadding:Ae}=A;return[{[O]:Object.assign(Object.assign({},(0,v.Wf)(A)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:ot,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":vt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${O}-content`]:{position:"relative"},[`${O}-inner`]:{backgroundColor:dt,backgroundClip:"padding-box",borderRadius:we,boxShadow:Ee,padding:ve},[`${O}-title`]:{minWidth:ce,marginBottom:He,color:_e,fontWeight:de,borderBottom:Pe,padding:Ae},[`${O}-inner-content`]:{color:K,padding:De}})},(0,w.ZP)(A,"var(--antd-arrow-background-color)"),{[`${O}-pure`]:{position:"relative",maxWidth:"none",margin:A.sizePopupArrow,display:"inline-block",[`${O}-content`]:{display:"inline-block"}}}]},C=A=>{const{componentCls:O}=A;return{[O]:b.i.map(K=>{const ce=A[`${K}6`];return{[`&${O}-${K}`]:{"--antd-arrow-background-color":ce,[`${O}-inner`]:{backgroundColor:ce},[`${O}-arrow`]:{background:"transparent"}}}})}},g=A=>{const{lineWidth:O,controlHeight:K,fontHeight:ce,padding:de,wireframe:ve,zIndexPopupBase:Ee,borderRadiusLG:_e,marginXS:we,lineType:ot,colorSplit:He,paddingSM:vt}=A,dt=K-ce,Pe=dt/2,De=dt/2-O,Ae=de;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:Ee+30},(0,k.w)(A)),(0,w.wZ)({contentRadius:_e,limitVerticalRadius:!0})),{innerPadding:ve?0:12,titleMarginBottom:ve?0:we,titlePadding:ve?`${Pe}px ${Ae}px ${De}px`:0,titleBorderBottom:ve?`${O}px ${ot} ${He}`:"none",innerContentPadding:ve?`${vt}px ${Ae}px`:0})};Y.Z=(0,B.I$)("Popover",A=>{const{colorBgElevated:O,colorText:K}=A,ce=(0,V.TS)(A,{popoverBg:O,popoverColor:K});return[M(ce),C(ce),(0,R._y)(ce,"zoom-big")]},g,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},59025:function(_t,Y,_){"use strict";_.d(Y,{ZP:function(){return an}});var v=_(77617),R=_(12124),w=_.n(R),b=_(84381),B=_(3286),V=_(51059),k=_(1220);const M=v.createContext(null),C=M.Provider;var g=M;const A=v.createContext(null),O=A.Provider;var K=_(5630),ce=_(88831),de=_(54595),ve=_(99381),Ee=_(40053),_e=_(34735),we=_(36646),ot=_(35772),He=_(67859),vt=_(80172);const dt=cn=>{const{componentCls:Cr,antCls:ii}=cn,Pi=`${Cr}-group`;return{[Pi]:Object.assign(Object.assign({},(0,ot.Wf)(cn)),{display:"inline-block",fontSize:0,[`&${Pi}-rtl`]:{direction:"rtl"},[`${ii}-badge ${ii}-badge-count`]:{zIndex:1},[`> ${ii}-badge:not(:first-child) > ${ii}-button-wrapper`]:{borderInlineStart:"none"}})}},Pe=cn=>{const{componentCls:Cr,wrapperMarginInlineEnd:ii,colorPrimary:Pi,radioSize:Ni,motionDurationSlow:Yi,motionDurationMid:ti,motionEaseInOutCirc:Ts,colorBgContainer:Bs,colorBorder:Ce,lineWidth:Gi,colorBgContainerDisabled:qi,colorTextDisabled:co,paddingXS:fi,dotColorDisabled:Ms,lineType:In,radioColor:et,radioBgColor:Dt,calc:$t}=cn,Dn=`${Cr}-inner`,gr=4,kn=$t(Ni).sub($t(gr).mul(2)),bn=$t(1).mul(Ni).equal();return{[`${Cr}-wrapper`]:Object.assign(Object.assign({},(0,ot.Wf)(cn)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:ii,cursor:"pointer",[`&${Cr}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:cn.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Cr}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,we.bf)(Gi)} ${In} ${Pi}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Cr]:Object.assign(Object.assign({},(0,ot.Wf)(cn)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Cr}-wrapper:hover &, - &:hover ${Dn}`]:{borderColor:Pi},[`${Cr}-input:focus-visible + ${Dn}`]:Object.assign({},(0,ot.oN)(cn)),[`${Cr}:hover::after, ${Cr}-wrapper:hover &::after`]:{visibility:"visible"},[`${Cr}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:bn,height:bn,marginBlockStart:$t(1).mul(Ni).div(-2).equal(),marginInlineStart:$t(1).mul(Ni).div(-2).equal(),backgroundColor:et,borderBlockStart:0,borderInlineStart:0,borderRadius:bn,transform:"scale(0)",opacity:0,transition:`all ${Yi} ${Ts}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:bn,height:bn,backgroundColor:Bs,borderColor:Ce,borderStyle:"solid",borderWidth:Gi,borderRadius:"50%",transition:`all ${ti}`},[`${Cr}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Cr}-checked`]:{[Dn]:{borderColor:Pi,backgroundColor:Dt,"&::after":{transform:`scale(${cn.calc(cn.dotSize).div(Ni).equal()})`,opacity:1,transition:`all ${Yi} ${Ts}`}}},[`${Cr}-disabled`]:{cursor:"not-allowed",[Dn]:{backgroundColor:qi,borderColor:Ce,cursor:"not-allowed","&::after":{backgroundColor:Ms}},[`${Cr}-input`]:{cursor:"not-allowed"},[`${Cr}-disabled + span`]:{color:co,cursor:"not-allowed"},[`&${Cr}-checked`]:{[Dn]:{"&::after":{transform:`scale(${$t(kn).div(Ni).equal({unit:!1})})`}}}},[`span${Cr} + *`]:{paddingInlineStart:fi,paddingInlineEnd:fi}})}},De=cn=>{const{buttonColor:Cr,controlHeight:ii,componentCls:Pi,lineWidth:Ni,lineType:Yi,colorBorder:ti,motionDurationSlow:Ts,motionDurationMid:Bs,buttonPaddingInline:Ce,fontSize:Gi,buttonBg:qi,fontSizeLG:co,controlHeightLG:fi,controlHeightSM:Ms,paddingXS:In,borderRadius:et,borderRadiusSM:Dt,borderRadiusLG:$t,buttonCheckedBg:Dn,buttonSolidCheckedColor:gr,colorTextDisabled:kn,colorBgContainerDisabled:bn,buttonCheckedBgDisabled:zt,buttonCheckedColorDisabled:Jt,colorPrimary:yn,colorPrimaryHover:fr,colorPrimaryActive:vr,buttonSolidCheckedBg:pn,buttonSolidCheckedHoverBg:wr,buttonSolidCheckedActiveBg:Sr,calc:Ai}=cn;return{[`${Pi}-button-wrapper`]:{position:"relative",display:"inline-block",height:ii,margin:0,paddingInline:Ce,paddingBlock:0,color:Cr,fontSize:Gi,lineHeight:(0,we.bf)(Ai(ii).sub(Ai(Ni).mul(2)).equal()),background:qi,border:`${(0,we.bf)(Ni)} ${Yi} ${ti}`,borderBlockStartWidth:Ai(Ni).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:Ni,cursor:"pointer",transition:[`color ${Bs}`,`background ${Bs}`,`box-shadow ${Bs}`].join(","),a:{color:Cr},[`> ${Pi}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:Ai(Ni).mul(-1).equal(),insetInlineStart:Ai(Ni).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Ni,paddingInline:0,backgroundColor:ti,transition:`background-color ${Ts}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,we.bf)(Ni)} ${Yi} ${ti}`,borderStartStartRadius:et,borderEndStartRadius:et},"&:last-child":{borderStartEndRadius:et,borderEndEndRadius:et},"&:first-child:last-child":{borderRadius:et},[`${Pi}-group-large &`]:{height:fi,fontSize:co,lineHeight:(0,we.bf)(Ai(fi).sub(Ai(Ni).mul(2)).equal()),"&:first-child":{borderStartStartRadius:$t,borderEndStartRadius:$t},"&:last-child":{borderStartEndRadius:$t,borderEndEndRadius:$t}},[`${Pi}-group-small &`]:{height:Ms,paddingInline:Ai(In).sub(Ni).equal(),paddingBlock:0,lineHeight:(0,we.bf)(Ai(Ms).sub(Ai(Ni).mul(2)).equal()),"&:first-child":{borderStartStartRadius:Dt,borderEndStartRadius:Dt},"&:last-child":{borderStartEndRadius:Dt,borderEndEndRadius:Dt}},"&:hover":{position:"relative",color:yn},"&:has(:focus-visible)":Object.assign({},(0,ot.oN)(cn)),[`${Pi}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Pi}-button-wrapper-disabled)`]:{zIndex:1,color:yn,background:Dn,borderColor:yn,"&::before":{backgroundColor:yn},"&:first-child":{borderColor:yn},"&:hover":{color:fr,borderColor:fr,"&::before":{backgroundColor:fr}},"&:active":{color:vr,borderColor:vr,"&::before":{backgroundColor:vr}}},[`${Pi}-group-solid &-checked:not(${Pi}-button-wrapper-disabled)`]:{color:gr,background:pn,borderColor:pn,"&:hover":{color:gr,background:wr,borderColor:wr},"&:active":{color:gr,background:Sr,borderColor:Sr}},"&-disabled":{color:kn,backgroundColor:bn,borderColor:ti,cursor:"not-allowed","&:first-child, &:hover":{color:kn,backgroundColor:bn,borderColor:ti}},[`&-disabled${Pi}-button-wrapper-checked`]:{color:Jt,backgroundColor:zt,borderColor:ti,boxShadow:"none"}}}},Ae=cn=>{const{wireframe:Cr,padding:ii,marginXS:Pi,lineWidth:Ni,fontSizeLG:Yi,colorText:ti,colorBgContainer:Ts,colorTextDisabled:Bs,controlItemBgActiveDisabled:Ce,colorTextLightSolid:Gi,colorPrimary:qi,colorPrimaryHover:co,colorPrimaryActive:fi,colorWhite:Ms}=cn,In=4,et=Yi,Dt=Cr?et-In*2:et-(In+Ni)*2;return{radioSize:et,dotSize:Dt,dotColorDisabled:Bs,buttonSolidCheckedColor:Gi,buttonSolidCheckedBg:qi,buttonSolidCheckedHoverBg:co,buttonSolidCheckedActiveBg:fi,buttonBg:Ts,buttonCheckedBg:Ts,buttonColor:ti,buttonCheckedBgDisabled:Ce,buttonCheckedColorDisabled:Bs,buttonPaddingInline:ii-Ni,wrapperMarginInlineEnd:Pi,radioColor:Cr?qi:Ms,radioBgColor:Cr?Ts:qi}};var Re=(0,He.I$)("Radio",cn=>{const{controlOutline:Cr,controlOutlineWidth:ii}=cn,Pi=`0 0 0 ${(0,we.bf)(ii)} ${Cr}`,Ni=Pi,Yi=(0,vt.TS)(cn,{radioFocusShadow:Pi,radioButtonFocusShadow:Ni});return[dt(Yi),Pe(Yi),De(Yi)]},Ae,{unitless:{radioSize:!0,dotSize:!0}}),$e=_(20170),Ie=function(cn,Cr){var ii={};for(var Pi in cn)Object.prototype.hasOwnProperty.call(cn,Pi)&&Cr.indexOf(Pi)<0&&(ii[Pi]=cn[Pi]);if(cn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ni=0,Pi=Object.getOwnPropertySymbols(cn);Ni{var ii,Pi;const Ni=v.useContext(g),Yi=v.useContext(A),{getPrefixCls:ti,direction:Ts,radio:Bs}=v.useContext(V.E_),Ce=v.useRef(null),Gi=(0,ce.sQ)(Cr,Ce),{isFormItemInput:qi}=v.useContext(_e.aM),co=pn=>{var wr,Sr;(wr=cn.onChange)===null||wr===void 0||wr.call(cn,pn),(Sr=Ni==null?void 0:Ni.onChange)===null||Sr===void 0||Sr.call(Ni,pn)},{prefixCls:fi,className:Ms,rootClassName:In,children:et,style:Dt}=cn,$t=Ie(cn,["prefixCls","className","rootClassName","children","style"]),Dn=ti("radio",fi),gr=((Ni==null?void 0:Ni.optionType)||Yi)==="button",kn=gr?`${Dn}-button`:Dn,bn=(0,$e.Z)(Dn),[zt,Jt]=Re(Dn,bn),yn=Object.assign({},$t),fr=v.useContext(Ee.Z);Ni&&(yn.name=Ni.name,yn.onChange=co,yn.checked=cn.value===Ni.value,yn.disabled=(ii=yn.disabled)!==null&&ii!==void 0?ii:Ni.disabled),yn.disabled=(Pi=yn.disabled)!==null&&Pi!==void 0?Pi:fr;const vr=w()(`${kn}-wrapper`,{[`${kn}-wrapper-checked`]:yn.checked,[`${kn}-wrapper-disabled`]:yn.disabled,[`${kn}-wrapper-rtl`]:Ts==="rtl",[`${kn}-wrapper-in-form-item`]:qi},Bs==null?void 0:Bs.className,Ms,In,Jt,bn);return zt(v.createElement(de.Z,{component:"Radio",disabled:yn.disabled},v.createElement("label",{className:vr,style:Object.assign(Object.assign({},Bs==null?void 0:Bs.style),Dt),onMouseEnter:cn.onMouseEnter,onMouseLeave:cn.onMouseLeave},v.createElement(K.Z,Object.assign({},yn,{className:w()(yn.className,!gr&&ve.A),type:"radio",prefixCls:kn,ref:Gi})),et!==void 0?v.createElement("span",null,et):null)))};var Kt=v.forwardRef(Xe);const St=v.forwardRef((cn,Cr)=>{const{getPrefixCls:ii,direction:Pi}=v.useContext(V.E_),[Ni,Yi]=(0,b.Z)(cn.defaultValue,{value:cn.value}),ti=wr=>{const Sr=Ni,Ai=wr.target.value;"value"in cn||Yi(Ai);const{onChange:mo}=cn;mo&&Ai!==Sr&&mo(wr)},{prefixCls:Ts,className:Bs,rootClassName:Ce,options:Gi,buttonStyle:qi="outline",disabled:co,children:fi,size:Ms,style:In,id:et,onMouseEnter:Dt,onMouseLeave:$t,onFocus:Dn,onBlur:gr}=cn,kn=ii("radio",Ts),bn=`${kn}-group`,zt=(0,$e.Z)(kn),[Jt,yn]=Re(kn,zt);let fr=fi;Gi&&Gi.length>0&&(fr=Gi.map(wr=>typeof wr=="string"||typeof wr=="number"?v.createElement(Kt,{key:wr.toString(),prefixCls:kn,disabled:co,value:wr,checked:Ni===wr},wr):v.createElement(Kt,{key:`radio-group-value-options-${wr.value}`,prefixCls:kn,disabled:wr.disabled||co,value:wr.value,checked:Ni===wr.value,title:wr.title,style:wr.style,id:wr.id,required:wr.required},wr.label)));const vr=(0,k.Z)(Ms),pn=w()(bn,`${bn}-${qi}`,{[`${bn}-${vr}`]:vr,[`${bn}-rtl`]:Pi==="rtl"},Bs,Ce,yn,zt);return Jt(v.createElement("div",Object.assign({},(0,B.Z)(cn,{aria:!0,data:!0}),{className:pn,style:In,onMouseEnter:Dt,onMouseLeave:$t,onFocus:Dn,onBlur:gr,id:et,ref:Cr}),v.createElement(C,{value:{onChange:ti,value:Ni,disabled:cn.disabled,name:cn.name,optionType:cn.optionType}},fr)))});var nt=v.memo(St),Ct=function(cn,Cr){var ii={};for(var Pi in cn)Object.prototype.hasOwnProperty.call(cn,Pi)&&Cr.indexOf(Pi)<0&&(ii[Pi]=cn[Pi]);if(cn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ni=0,Pi=Object.getOwnPropertySymbols(cn);Ni{const{getPrefixCls:ii}=v.useContext(V.E_),{prefixCls:Pi}=cn,Ni=Ct(cn,["prefixCls"]),Yi=ii("radio",Pi);return v.createElement(O,{value:"button"},v.createElement(Kt,Object.assign({prefixCls:Yi},Ni,{type:"radio",ref:Cr})))};var Gt=v.forwardRef(lt);const Rt=Kt;Rt.Button=Gt,Rt.Group=nt,Rt.__ANT_RADIO=!0;var an=Rt},96982:function(_t,Y,_){"use strict";_.d(Y,{ZP:function(){return Ct}});var v=_(77617),R=_(95934),w=_(48796),b=_(86850),B=_(61796),V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},k=V,M=_(91851),C=function(Gt,Rt){return v.createElement(M.Z,(0,B.Z)({},Gt,{ref:Rt,icon:k}))},g=v.forwardRef(C),A=_(12124),O=_.n(A),K=_(51059),de=()=>v.createElement("svg",{width:"252",height:"294"},v.createElement("defs",null,v.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(0 .012)"},v.createElement("mask",{fill:"#fff"}),v.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),v.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),v.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),v.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),v.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),v.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),v.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),v.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),v.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),v.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),v.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),v.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),v.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),v.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),v.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),v.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),v.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),v.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),v.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),v.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),v.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),v.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),v.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),v.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),v.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),v.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),v.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),v.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),v.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),v.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),v.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),v.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),v.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),v.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),v.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),v.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),v.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),v.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),v.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),Ee=()=>v.createElement("svg",{width:"254",height:"294"},v.createElement("defs",null,v.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),v.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(0 .067)"},v.createElement("mask",{fill:"#fff"}),v.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),v.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),v.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),v.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),v.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),v.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),v.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),v.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),v.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),v.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),v.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),v.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),v.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),v.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),v.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),v.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),v.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),v.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),v.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),v.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),v.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),v.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),v.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),v.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),v.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),v.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),v.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),v.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),v.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),v.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),v.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),v.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),v.createElement("mask",{fill:"#fff"}),v.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),v.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),v.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),v.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),v.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),v.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),v.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),v.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),v.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),v.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),v.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),_e=_(36646),we=_(67859),ot=_(80172);const He=lt=>{const{componentCls:Gt,lineHeightHeading3:Rt,iconCls:an,padding:cn,paddingXL:Cr,paddingXS:ii,paddingLG:Pi,marginXS:Ni,lineHeight:Yi}=lt;return{[Gt]:{padding:`${(0,_e.bf)(lt.calc(Pi).mul(2).equal())} ${(0,_e.bf)(Cr)}`,"&-rtl":{direction:"rtl"}},[`${Gt} ${Gt}-image`]:{width:lt.imageWidth,height:lt.imageHeight,margin:"auto"},[`${Gt} ${Gt}-icon`]:{marginBottom:Pi,textAlign:"center",[`& > ${an}`]:{fontSize:lt.iconFontSize}},[`${Gt} ${Gt}-title`]:{color:lt.colorTextHeading,fontSize:lt.titleFontSize,lineHeight:Rt,marginBlock:Ni,textAlign:"center"},[`${Gt} ${Gt}-subtitle`]:{color:lt.colorTextDescription,fontSize:lt.subtitleFontSize,lineHeight:Yi,textAlign:"center"},[`${Gt} ${Gt}-content`]:{marginTop:Pi,padding:`${(0,_e.bf)(Pi)} ${(0,_e.bf)(lt.calc(cn).mul(2.5).equal())}`,backgroundColor:lt.colorFillAlter},[`${Gt} ${Gt}-extra`]:{margin:lt.extraMargin,textAlign:"center","& > *":{marginInlineEnd:ii,"&:last-child":{marginInlineEnd:0}}}}},vt=lt=>{const{componentCls:Gt,iconCls:Rt}=lt;return{[`${Gt}-success ${Gt}-icon > ${Rt}`]:{color:lt.resultSuccessIconColor},[`${Gt}-error ${Gt}-icon > ${Rt}`]:{color:lt.resultErrorIconColor},[`${Gt}-info ${Gt}-icon > ${Rt}`]:{color:lt.resultInfoIconColor},[`${Gt}-warning ${Gt}-icon > ${Rt}`]:{color:lt.resultWarningIconColor}}},dt=lt=>[He(lt),vt(lt)],Pe=lt=>dt(lt),De=lt=>({titleFontSize:lt.fontSizeHeading3,subtitleFontSize:lt.fontSize,iconFontSize:lt.fontSizeHeading3*3,extraMargin:`${lt.paddingLG}px 0 0 0`});var Ae=(0,we.I$)("Result",lt=>{const Gt=lt.colorInfo,Rt=lt.colorError,an=lt.colorSuccess,cn=lt.colorWarning,Cr=(0,ot.TS)(lt,{resultInfoIconColor:Gt,resultErrorIconColor:Rt,resultSuccessIconColor:an,resultWarningIconColor:cn,imageWidth:250,imageHeight:295});return[Pe(Cr)]},De),$e=()=>v.createElement("svg",{width:"251",height:"294"},v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),v.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),v.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),v.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),v.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),v.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),v.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),v.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),v.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),v.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),v.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),v.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),v.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),v.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),v.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),v.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),v.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),v.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),v.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),v.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),v.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),v.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),v.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),v.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),v.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),v.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),v.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),v.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),v.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),v.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),v.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),v.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),v.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),v.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),v.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),v.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})));const Ie={success:R.Z,error:w.Z,info:b.Z,warning:g},Xe={404:de,500:Ee,403:$e},ze=Object.keys(Xe),Kt=lt=>{let{prefixCls:Gt,icon:Rt,status:an}=lt;const cn=O()(`${Gt}-icon`);if(ze.includes(`${an}`)){const ii=Xe[an];return v.createElement("div",{className:`${cn} ${Gt}-image`},v.createElement(ii,null))}const Cr=v.createElement(Ie[an]);return Rt===null||Rt===!1?null:v.createElement("div",{className:cn},Rt||Cr)},St=lt=>{let{prefixCls:Gt,extra:Rt}=lt;return Rt?v.createElement("div",{className:`${Gt}-extra`},Rt):null},nt=lt=>{let{prefixCls:Gt,className:Rt,rootClassName:an,subTitle:cn,title:Cr,style:ii,children:Pi,status:Ni="info",icon:Yi,extra:ti}=lt;const{getPrefixCls:Ts,direction:Bs,result:Ce}=v.useContext(K.E_),Gi=Ts("result",Gt),[qi,co]=Ae(Gi),fi=O()(Gi,`${Gi}-${Ni}`,Rt,Ce==null?void 0:Ce.className,an,{[`${Gi}-rtl`]:Bs==="rtl"},co),Ms=Object.assign(Object.assign({},Ce==null?void 0:Ce.style),ii);return qi(v.createElement("div",{className:fi,style:Ms},v.createElement(Kt,{prefixCls:Gi,status:Ni,icon:Yi}),v.createElement("div",{className:`${Gi}-title`},Cr),cn&&v.createElement("div",{className:`${Gi}-subtitle`},cn),v.createElement(St,{prefixCls:Gi,extra:ti}),Pi&&v.createElement("div",{className:`${Gi}-content`},Pi)))};nt.PRESENTED_IMAGE_403=Xe[403],nt.PRESENTED_IMAGE_404=Xe[404],nt.PRESENTED_IMAGE_500=Xe[500];var Ct=nt},81661:function(_t,Y,_){"use strict";var v=_(77617),R=_(12124),w=_.n(R),b=_(98889),B=_(99468),V=_(3966),k=_(82395),M=_(52910),C=_(11201),g=_(51059),A=_(29154),O=_(40053),K=_(1220),ce=_(34735),de=_(60161),ve=_(49265),Ee=_(81738),_e=_(9667),we=_(59379),ot=_(20170),He=function(Ae,Re){var $e={};for(var Ie in Ae)Object.prototype.hasOwnProperty.call(Ae,Ie)&&Re.indexOf(Ie)<0&&($e[Ie]=Ae[Ie]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Ie=Object.getOwnPropertySymbols(Ae);Xe{var $e,Ie,{prefixCls:Xe,bordered:ze=!0,className:Kt,rootClassName:St,getPopupContainer:nt,popupClassName:Ct,dropdownClassName:lt,listHeight:Gt=256,placement:Rt,listItemHeight:an=24,size:cn,disabled:Cr,notFoundContent:ii,status:Pi,builtinPlacements:Ni,dropdownMatchSelectWidth:Yi,popupMatchSelectWidth:ti,direction:Ts,style:Bs,allowClear:Ce}=Ae,Gi=He(Ae,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:qi,getPrefixCls:co,renderEmpty:fi,direction:Ms,virtual:In,popupMatchSelectWidth:et,popupOverflow:Dt,select:$t}=v.useContext(g.E_),Dn=co("select",Xe),gr=co(),kn=Ts!=null?Ts:Ms,{compactSize:bn,compactItemClassnames:zt}=(0,de.ri)(Dn,kn),Jt=(0,ot.Z)(Dn),[yn,fr]=(0,ve.Z)(Dn,Jt),vr=v.useMemo(()=>{const{mode:An}=Gi;if(An!=="combobox")return An===vt?"combobox":An},[Gi.mode]),pn=vr==="multiple"||vr==="tags",wr=(0,we.Z)(Gi.suffixIcon,Gi.showArrow),Sr=($e=ti!=null?ti:Yi)!==null&&$e!==void 0?$e:et,{status:Ai,hasFeedback:mo,isFormItemInput:Fr,feedbackIcon:to}=v.useContext(ce.aM),Ji=(0,C.F)(Ai,Pi);let bo;ii!==void 0?bo=ii:vr==="combobox"?bo=null:bo=(fi==null?void 0:fi("Select"))||v.createElement(A.Z,{componentName:"Select"});const{suffixIcon:xn,itemIcon:fn,removeIcon:It,clearIcon:Zt}=(0,_e.Z)(Object.assign(Object.assign({},Gi),{multiple:pn,hasFeedback:mo,feedbackIcon:to,showSuffixIcon:wr,prefixCls:Dn,showArrow:Gi.showArrow,componentName:"Select"})),gn=Ce===!0?{clearIcon:Zt}:Ce,$n=(0,B.Z)(Gi,["suffixIcon","itemIcon"]),Ar=w()(Ct||lt,{[`${Dn}-dropdown-${kn}`]:kn==="rtl"},St,Jt,fr),Dr=(0,K.Z)(An=>{var Xn;return(Xn=cn!=null?cn:bn)!==null&&Xn!==void 0?Xn:An}),dr=v.useContext(O.Z),Xt=Cr!=null?Cr:dr,Cn=w()({[`${Dn}-lg`]:Dr==="large",[`${Dn}-sm`]:Dr==="small",[`${Dn}-rtl`]:kn==="rtl",[`${Dn}-borderless`]:!ze,[`${Dn}-in-form-item`]:Fr},(0,C.Z)(Dn,Ji,mo),zt,$t==null?void 0:$t.className,Kt,St,Jt,fr),er=v.useMemo(()=>Rt!==void 0?Rt:kn==="rtl"?"bottomRight":"bottomLeft",[Rt,kn]),Mr=(0,Ee.Z)(Ni,Dt),[ji]=(0,V.Cn)("SelectLike",(Ie=Gi.dropdownStyle)===null||Ie===void 0?void 0:Ie.zIndex);return yn(v.createElement(b.ZP,Object.assign({ref:Re,virtual:In,showSearch:$t==null?void 0:$t.showSearch},$n,{style:Object.assign(Object.assign({},$t==null?void 0:$t.style),Bs),dropdownMatchSelectWidth:Sr,builtinPlacements:Mr,transitionName:(0,k.m)(gr,"slide-up",Gi.transitionName),listHeight:Gt,listItemHeight:an,mode:vr,prefixCls:Dn,placement:er,direction:kn,suffixIcon:xn,menuItemSelectedIcon:fn,removeIcon:It,allowClear:gn,notFoundContent:bo,className:Cn,getPopupContainer:nt||qi,dropdownClassName:Ar,disabled:Xt,dropdownStyle:Object.assign(Object.assign({},Gi==null?void 0:Gi.dropdownStyle),{zIndex:ji})})))},Pe=v.forwardRef(dt),De=(0,M.Z)(Pe);Pe.SECRET_COMBOBOX_MODE_DO_NOT_USE=vt,Pe.Option=b.Wx,Pe.OptGroup=b.Xo,Pe._InternalPanelDoNotUseOrYouWillBeFired=De,Y.Z=Pe},49265:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return Pe}});var v=_(36646),R=_(35772),w=_(62290),b=_(80172),B=_(67859),V=_(70163),k=_(83021);const M=De=>{const{optionHeight:Ae,optionFontSize:Re,optionLineHeight:$e,optionPadding:Ie}=De;return{position:"relative",display:"block",minHeight:Ae,padding:Ie,color:De.colorText,fontWeight:"normal",fontSize:Re,lineHeight:$e,boxSizing:"border-box"}};var g=De=>{const{antCls:Ae,componentCls:Re}=De,$e=`${Re}-item`,Ie=`&${Ae}-slide-up-enter${Ae}-slide-up-enter-active`,Xe=`&${Ae}-slide-up-appear${Ae}-slide-up-appear-active`,ze=`&${Ae}-slide-up-leave${Ae}-slide-up-leave-active`,Kt=`${Re}-dropdown-placement-`;return[{[`${Re}-dropdown`]:Object.assign(Object.assign({},(0,R.Wf)(De)),{position:"absolute",top:-9999,zIndex:De.zIndexPopup,boxSizing:"border-box",padding:De.paddingXXS,overflow:"hidden",fontSize:De.fontSize,fontVariant:"initial",backgroundColor:De.colorBgElevated,borderRadius:De.borderRadiusLG,outline:"none",boxShadow:De.boxShadowSecondary,[` - ${Ie}${Kt}bottomLeft, - ${Xe}${Kt}bottomLeft + ${yo}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${yo}-confirm-body`]:{marginBottom:"auto"}}}]},Zt=Wn=>{const{componentCls:yo}=Wn;return{[`${yo}-root`]:{[`${yo}-wrap-rtl`]:{direction:"rtl",[`${yo}-confirm-body`]:{direction:"rtl"}}}}},vn=Wn=>{const yo=Wn.padding,Qo=Wn.fontSizeHeading5,ss=Wn.lineHeightHeading5;return(0,ro.TS)(Wn,{modalHeaderHeight:Wn.calc(Wn.calc(ss).mul(Qo).equal()).add(Wn.calc(yo).mul(2).equal()).equal(),modalFooterBorderColorSplit:Wn.colorSplit,modalFooterBorderStyle:Wn.lineType,modalFooterBorderWidth:Wn.lineWidth,modalIconHoverColor:Wn.colorIconHover,modalCloseIconColor:Wn.colorIcon,modalCloseBtnSize:Wn.fontHeight,modalConfirmIconSize:Wn.fontHeight,modalTitleHeight:Wn.calc(Wn.titleFontSize).mul(Wn.titleLineHeight).equal()})},$n=Wn=>({footerBg:"transparent",headerBg:Wn.colorBgElevated,titleLineHeight:Wn.lineHeightHeading5,titleFontSize:Wn.fontSizeHeading5,contentBg:Wn.colorBgElevated,titleColor:Wn.colorTextHeading,closeBtnHoverBg:Wn.wireframe?"transparent":Wn.colorFillContent,closeBtnActiveBg:Wn.wireframe?"transparent":Wn.colorFillContentHover,contentPadding:Wn.wireframe?0:`${(0,bo.bf)(Wn.paddingMD)} ${(0,bo.bf)(Wn.paddingContentHorizontalLG)}`,headerPadding:Wn.wireframe?`${(0,bo.bf)(Wn.padding)} ${(0,bo.bf)(Wn.paddingLG)}`:0,headerBorderBottom:Wn.wireframe?`${(0,bo.bf)(Wn.lineWidth)} ${Wn.lineType} ${Wn.colorSplit}`:"none",headerMarginBottom:Wn.wireframe?0:Wn.marginXS,bodyPadding:Wn.wireframe?Wn.paddingLG:0,footerPadding:Wn.wireframe?`${(0,bo.bf)(Wn.paddingXS)} ${(0,bo.bf)(Wn.padding)}`:0,footerBorderTop:Wn.wireframe?`${(0,bo.bf)(Wn.lineWidth)} ${Wn.lineType} ${Wn.colorSplit}`:"none",footerBorderRadius:Wn.wireframe?`0 0 ${(0,bo.bf)(Wn.borderRadiusLG)} ${(0,bo.bf)(Wn.borderRadiusLG)}`:0,footerMarginTop:Wn.wireframe?0:Wn.marginSM,confirmBodyPadding:Wn.wireframe?`${(0,bo.bf)(Wn.padding*2)} ${(0,bo.bf)(Wn.padding*2)} ${(0,bo.bf)(Wn.paddingLG)}`:0,confirmIconMarginInlineEnd:Wn.wireframe?Wn.margin:Wn.marginSM,confirmBtnsMarginTop:Wn.wireframe?Wn.marginLG:Wn.marginSM});var Ar=(0,qi.I$)("Modal",Wn=>{const yo=vn(Wn);return[Dt(yo),Zt(yo),pn(yo),(0,kr._y)(yo,"zoom")]},$n,{unitless:{titleLineHeight:!0}}),Dr=y(35792),dr=function(Wn,yo){var Qo={};for(var ss in Wn)Object.prototype.hasOwnProperty.call(Wn,ss)&&yo.indexOf(ss)<0&&(Qo[ss]=Wn[ss]);if(Wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ko=0,ss=Object.getOwnPropertySymbols(Wn);Ko{Yt={x:Wn.pageX,y:Wn.pageY},setTimeout(()=>{Yt=null},100)};Yi()&&document.documentElement.addEventListener("click",wn,!0);var Mr=Wn=>{var yo;const{getPopupContainer:Qo,getPrefixCls:ss,direction:Ko,modal:Xn}=w.useContext(di.E_),Rr=Cs=>{const{onCancel:ba}=Wn;ba==null||ba(Cs)},Xr=Cs=>{const{onOk:ba}=Wn;ba==null||ba(Cs)},{prefixCls:Ze,className:ht,rootClassName:dt,open:$e,wrapClassName:ft,centered:Lt,getContainer:gn,closeIcon:rr,closable:zr,focusTriggerAfterClose:Fi=!0,style:xo,visible:Vi,width:zs=520,footer:Ps,classNames:Ms,styles:ks}=Wn,ko=dr(Wn,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),As=ss("modal",Ze),ia=ss(),za=(0,Dr.Z)(As),[Zl,Hl]=Ar(As,za),fs=g()(ft,{[`${As}-centered`]:!!Lt,[`${As}-wrap-rtl`]:Ko==="rtl"}),js=Ps!==null&&w.createElement(Cr,Object.assign({},Wn,{onOk:Xr,onCancel:Rr})),[hl,Xo]=(0,Se.Z)(zr,rr,Cs=>wr(As,Cs),w.createElement(pt.Z,{className:`${As}-close-icon`}),!0),Li=Pn(`.${As}-content`),[Yo,Os]=(0,A.Cn)("Modal",ko.zIndex);return Zl(w.createElement(Ln.BR,null,w.createElement(Fs.Ux,{status:!0,override:!0},w.createElement(fo.Z.Provider,{value:Os},w.createElement(Ns,Object.assign({width:zs},ko,{zIndex:Yo,getContainer:gn===void 0?Qo:gn,prefixCls:As,rootClassName:g()(Hl,dt,za),footer:js,visible:$e!=null?$e:Vi,mousePosition:(yo=ko.mousePosition)!==null&&yo!==void 0?yo:Yt,onClose:Rr,closable:hl,closeIcon:Xo,focusTriggerAfterClose:Fi,transitionName:(0,O.m)(ia,"zoom",Wn.transitionName),maskTransitionName:(0,O.m)(ia,"fade",Wn.maskTransitionName),className:g()(Hl,ht,Xn==null?void 0:Xn.className),style:Object.assign(Object.assign({},Xn==null?void 0:Xn.style),xo),classNames:Object.assign(Object.assign({wrapper:fs},Xn==null?void 0:Xn.classNames),Ms),styles:Object.assign(Object.assign({},Xn==null?void 0:Xn.styles),ks),panelRef:Li}))))))};const Wi=Wn=>{const{componentCls:yo,titleFontSize:Qo,titleLineHeight:ss,modalConfirmIconSize:Ko,fontSize:Xn,lineHeight:Rr,modalTitleHeight:Xr,fontHeight:Ze,confirmBodyPadding:ht}=Wn,dt=`${yo}-confirm`;return{[dt]:{"&-rtl":{direction:"rtl"},[`${Wn.antCls}-modal-header`]:{display:"none"},[`${dt}-body-wrapper`]:Object.assign({},(0,Ei.dF)()),[`&${yo} ${yo}-body`]:{padding:ht},[`${dt}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Wn.iconCls}`]:{flex:"none",fontSize:Ko,marginInlineEnd:Wn.confirmIconMarginInlineEnd,marginTop:Wn.calc(Wn.calc(Ze).sub(Ko).equal()).div(2).equal()},[`&-has-title > ${Wn.iconCls}`]:{marginTop:Wn.calc(Wn.calc(Xr).sub(Ko).equal()).div(2).equal()}},[`${dt}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:Wn.marginXS,maxWidth:`calc(100% - ${(0,bo.bf)(Wn.calc(Wn.modalConfirmIconSize).add(Wn.marginSM).equal())})`},[`${dt}-title`]:{color:Wn.colorTextHeading,fontWeight:Wn.fontWeightStrong,fontSize:Qo,lineHeight:ss},[`${dt}-content`]:{color:Wn.colorText,fontSize:Xn,lineHeight:Rr},[`${dt}-btns`]:{textAlign:"end",marginTop:Wn.confirmBtnsMarginTop,[`${Wn.antCls}-btn + ${Wn.antCls}-btn`]:{marginBottom:0,marginInlineStart:Wn.marginXS}}},[`${dt}-error ${dt}-body > ${Wn.iconCls}`]:{color:Wn.colorError},[`${dt}-warning ${dt}-body > ${Wn.iconCls}, + ${dt}-confirm ${dt}-body > ${Wn.iconCls}`]:{color:Wn.colorWarning},[`${dt}-info ${dt}-body > ${Wn.iconCls}`]:{color:Wn.colorInfo},[`${dt}-success ${dt}-body > ${Wn.iconCls}`]:{color:Wn.colorSuccess}}};var Dn=(0,qi.bk)(["Modal","confirm"],Wn=>{const yo=vn(Wn);return[Wi(yo)]},$n,{order:-1e3}),Kn=function(Wn,yo){var Qo={};for(var ss in Wn)Object.prototype.hasOwnProperty.call(Wn,ss)&&yo.indexOf(ss)<0&&(Qo[ss]=Wn[ss]);if(Wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ko=0,ss=Object.getOwnPropertySymbols(Wn);Koxo,(0,v.Z)(Object.values(xo))),zs=w.createElement(w.Fragment,null,w.createElement(be,null),w.createElement(Ve,null)),Ps=Wn.title!==void 0&&Wn.title!==null,Ms=`${Xn}-body`;return w.createElement("div",{className:`${Xn}-body-wrapper`},w.createElement("div",{className:g()(Ms,{[`${Ms}-has-title`]:Ps})},$e,w.createElement("div",{className:`${Xn}-paragraph`},Ps&&w.createElement("span",{className:`${Xn}-title`},Wn.title),w.createElement("div",{className:`${Xn}-content`},Wn.content))),Ze===void 0||typeof Ze=="function"?w.createElement(xe,{value:Vi},w.createElement("div",{className:`${Xn}-btns`},typeof Ze=="function"?Ze(zs,{OkBtn:Ve,CancelBtn:be}):zs)):Ze,w.createElement(Dn,{prefixCls:yo}))}const qr=Wn=>{const{close:yo,zIndex:Qo,afterClose:ss,open:Ko,keyboard:Xn,centered:Rr,getContainer:Xr,maskStyle:Ze,direction:ht,prefixCls:dt,wrapClassName:$e,rootPrefixCls:ft,bodyStyle:Lt,closable:gn=!1,closeIcon:rr,modalRender:zr,focusTriggerAfterClose:Fi,onConfirm:xo,styles:Vi}=Wn,zs=`${dt}-confirm`,Ps=Wn.width||416,Ms=Wn.style||{},ks=Wn.mask===void 0?!0:Wn.mask,ko=Wn.maskClosable===void 0?!1:Wn.maskClosable,As=g()(zs,`${zs}-${Wn.type}`,{[`${zs}-rtl`]:ht==="rtl"},Wn.className),[,ia]=(0,he.ZP)(),za=w.useMemo(()=>Qo!==void 0?Qo:ia.zIndexPopupBase+A.u6,[Qo,ia]);return w.createElement(Mr,{prefixCls:dt,className:As,wrapClassName:g()({[`${zs}-centered`]:!!Wn.centered},$e),onCancel:()=>{yo==null||yo({triggerCancel:!0}),xo==null||xo(!1)},open:Ko,title:"",footer:null,transitionName:(0,O.m)(ft||"","zoom",Wn.transitionName),maskTransitionName:(0,O.m)(ft||"","fade",Wn.maskTransitionName),mask:ks,maskClosable:ko,style:Ms,styles:Object.assign({body:Lt,mask:Ze},Vi),width:Ps,zIndex:za,afterClose:ss,keyboard:Xn,centered:Rr,getContainer:Xr,closable:gn,closeIcon:rr,modalRender:zr,focusTriggerAfterClose:Fi},w.createElement(nr,Object.assign({},Wn,{confirmPrefixCls:zs})))};var Hr=Wn=>{const{rootPrefixCls:yo,iconPrefixCls:Qo,direction:ss,theme:Ko}=Wn;return w.createElement(b.ZP,{prefixCls:yo,iconPrefixCls:Qo,direction:ss,theme:Ko},w.createElement(qr,Object.assign({},Wn)))},gi=[],mi=function(Wn,yo){var Qo={};for(var ss in Wn)Object.prototype.hasOwnProperty.call(Wn,ss)&&yo.indexOf(ss)<0&&(Qo[ss]=Wn[ss]);if(Wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ko=0,ss=Object.getOwnPropertySymbols(Wn);Koft&&ft.triggerCancel);Wn.onCancel&&$e&&Wn.onCancel.apply(Wn,[()=>{}].concat((0,v.Z)(ht.slice(1))));for(let ft=0;ft{const gn=(0,an.A)(),{getPrefixCls:rr,getIconPrefixCls:zr,getTheme:Fi}=(0,b.w6)(),xo=rr(void 0,Nr()),Vi=$e||`${xo}-modal`,zs=zr(),Ps=Fi();let Ms=ft;Ms===!1&&(Ms=void 0),(0,P.s)(w.createElement(Hr,Object.assign({},Lt,{getContainer:Ms,prefixCls:Vi,rootPrefixCls:xo,iconPrefixCls:zs,okText:ht,locale:gn,theme:Ps,cancelText:dt||gn.cancelText})),yo)})}function Rr(){for(var Ze=arguments.length,ht=new Array(Ze),dt=0;dt{typeof Wn.afterClose=="function"&&Wn.afterClose(),Ko.apply(this,ht)}}),Qo.visible&&delete Qo.visible,Xn(Qo)}function Xr(Ze){typeof Ze=="function"?Qo=Ze(Qo):Qo=Object.assign(Object.assign({},Qo),Ze),Xn(Qo)}return Xn(Qo),gi.push(Rr),{destroy:Rr,update:Xr}}function Qi(Wn){return Object.assign(Object.assign({},Wn),{type:"warning"})}function ns(Wn){return Object.assign(Object.assign({},Wn),{type:"info"})}function Ur(Wn){return Object.assign(Object.assign({},Wn),{type:"success"})}function gs(Wn){return Object.assign(Object.assign({},Wn),{type:"error"})}function Gr(Wn){return Object.assign(Object.assign({},Wn),{type:"confirm"})}function ni(Wn){let{rootPrefixCls:yo}=Wn;Bi=yo}var is=y(8745),Jr=function(Wn,yo){var Qo={};for(var ss in Wn)Object.prototype.hasOwnProperty.call(Wn,ss)&&yo.indexOf(ss)<0&&(Qo[ss]=Wn[ss]);if(Wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ko=0,ss=Object.getOwnPropertySymbols(Wn);Ko{const{prefixCls:yo,className:Qo,closeIcon:ss,closable:Ko,type:Xn,title:Rr,children:Xr,footer:Ze}=Wn,ht=Jr(Wn,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:dt}=w.useContext(di.E_),$e=dt(),ft=yo||dt("modal"),Lt=(0,Dr.Z)($e),[gn,rr]=Ar(ft,Lt),zr=`${ft}-confirm`;let Fi={};return Xn?Fi={closable:Ko!=null?Ko:!1,title:"",footer:"",children:w.createElement(nr,Object.assign({},Wn,{prefixCls:ft,confirmPrefixCls:zr,rootPrefixCls:$e,content:Xr}))}:Fi={closable:Ko!=null?Ko:!0,title:Rr,footer:Ze!==null&&w.createElement(Cr,Object.assign({},Wn)),children:Xr},gn(w.createElement(un,Object.assign({prefixCls:ft,className:g()(rr,`${ft}-pure-panel`,Xn&&zr,Xn&&`${zr}-${Xn}`,Qo,Lt)},ht,{closeIcon:wr(ft,ss),closable:Ko},Fi)))};var Or=(0,is.i)(bn);function qo(){const[Wn,yo]=w.useState([]),Qo=w.useCallback(ss=>(yo(Ko=>[].concat((0,v.Z)(Ko),[ss])),()=>{yo(Ko=>Ko.filter(Xn=>Xn!==ss))}),[]);return[Wn,Qo]}var Mo=y(88526),vs=function(Wn,yo){var Qo={};for(var ss in Wn)Object.prototype.hasOwnProperty.call(Wn,ss)&&yo.indexOf(ss)<0&&(Qo[ss]=Wn[ss]);if(Wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ko=0,ss=Object.getOwnPropertySymbols(Wn);Ko{var Qo,{afterClose:ss,config:Ko}=Wn,Xn=vs(Wn,["afterClose","config"]);const[Rr,Xr]=w.useState(!0),[Ze,ht]=w.useState(Ko),{direction:dt,getPrefixCls:$e}=w.useContext(di.E_),ft=$e("modal"),Lt=$e(),gn=()=>{var xo;ss(),(xo=Ze.afterClose)===null||xo===void 0||xo.call(Ze)},rr=function(){Xr(!1);for(var xo=arguments.length,Vi=new Array(xo),zs=0;zsMs&&Ms.triggerCancel);Ze.onCancel&&Ps&&Ze.onCancel.apply(Ze,[()=>{}].concat((0,v.Z)(Vi.slice(1))))};w.useImperativeHandle(yo,()=>({destroy:rr,update:xo=>{ht(Vi=>Object.assign(Object.assign({},Vi),xo))}}));const zr=(Qo=Ze.okCancel)!==null&&Qo!==void 0?Qo:Ze.type==="confirm",[Fi]=(0,K.Z)("Modal",Mo.Z.Modal);return w.createElement(Hr,Object.assign({prefixCls:ft,rootPrefixCls:Lt},Ze,{close:rr,open:Rr,afterClose:gn,okText:Ze.okText||(zr?Fi==null?void 0:Fi.okText:Fi==null?void 0:Fi.justOkText),direction:Ze.direction||dt,cancelText:Ze.cancelText||(Fi==null?void 0:Fi.cancelText)},Xn))};var ho=w.forwardRef(Na);let aa=0;const Ka=w.memo(w.forwardRef((Wn,yo)=>{const[Qo,ss]=qo();return w.useImperativeHandle(yo,()=>({patchElement:ss}),[]),w.createElement(w.Fragment,null,Qo)}));function Si(){const Wn=w.useRef(null),[yo,Qo]=w.useState([]);w.useEffect(()=>{yo.length&&((0,v.Z)(yo).forEach(Rr=>{Rr()}),Qo([]))},[yo]);const ss=w.useCallback(Xn=>function(Xr){var Ze;aa+=1;const ht=w.createRef();let dt;const $e=new Promise(zr=>{dt=zr});let ft=!1,Lt;const gn=w.createElement(ho,{key:`modal-${aa}`,config:Xn(Xr),ref:ht,afterClose:()=>{Lt==null||Lt()},isSilent:()=>ft,onConfirm:zr=>{dt(zr)}});return Lt=(Ze=Wn.current)===null||Ze===void 0?void 0:Ze.patchElement(gn),Lt&&gi.push(Lt),{destroy:()=>{function zr(){var Fi;(Fi=ht.current)===null||Fi===void 0||Fi.destroy()}ht.current?zr():Qo(Fi=>[].concat((0,v.Z)(Fi),[zr]))},update:zr=>{function Fi(){var xo;(xo=ht.current)===null||xo===void 0||xo.update(zr)}ht.current?Fi():Qo(xo=>[].concat((0,v.Z)(xo),[Fi]))},then:zr=>(ft=!0,$e.then(zr))}},[]);return[w.useMemo(()=>({info:ss(ns),success:ss(Ur),error:ss(gs),warning:ss(Qi),confirm:ss(Gr)}),[]),w.createElement(Ka,{key:"modal-holder",ref:Wn})]}var Pi=Si;function to(Wn){return Kr(Qi(Wn))}const So=Mr;So.useModal=Pi,So.info=function(yo){return Kr(ns(yo))},So.success=function(yo){return Kr(Ur(yo))},So.error=function(yo){return Kr(gs(yo))},So.warning=to,So.warn=to,So.confirm=function(yo){return Kr(Gr(yo))},So.destroyAll=function(){for(;gi.length;){const yo=gi.pop();yo&&yo()}},So.config=ni,So._InternalPanelDoNotUseOrYouWillBeFired=Or;var ps=So},83008:function(yt,Y,y){"use strict";y.d(Y,{A:function(){return V},f:function(){return B}});var v=y(88526);let P=Object.assign({},v.Z.Modal),w=[];const b=()=>w.reduce((k,R)=>Object.assign(Object.assign({},k),R),v.Z.Modal);function B(k){if(k){const R=Object.assign({},k);return w.push(R),P=b(),()=>{w=w.filter(C=>C!==R),P=b()}}P=Object.assign({},v.Z.Modal)}function V(){return P}},86738:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return Ue}});var v=y(67294),P=y(26702),w=y(94184),b=y.n(w),B=y(21770),V=y(15105),k=y(98423),R=y(96159),C=y(53124),g=y(55241),A=y(86743),O=y(81643),K=y(15867),he=y(33671),ae=y(10110),fe=y(88526),xe=y(60590),ye=y(91945);const be=Pe=>{const{componentCls:Xe,iconCls:Be,antCls:Xt,zIndexPopup:St,colorText:nt,colorWarning:wt,marginXXS:lt,marginXS:Kt,fontSize:Mt,fontWeightStrong:hn,colorTextHeading:un}=Pe;return{[Xe]:{zIndex:St,[`&${Xt}-popover`]:{fontSize:Mt},[`${Xe}-message`]:{marginBottom:Kt,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Xe}-message-icon ${Be}`]:{color:wt,fontSize:Mt,lineHeight:1,marginInlineEnd:Kt},[`${Xe}-title`]:{fontWeight:hn,color:un,"&:only-child":{fontWeight:"normal"}},[`${Xe}-description`]:{marginTop:lt,color:nt}},[`${Xe}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:Kt}}}}},Qe=Pe=>{const{zIndexPopupBase:Xe}=Pe;return{zIndexPopup:Xe+60}};var Ve=(0,ye.I$)("Popconfirm",Pe=>be(Pe),Qe,{resetStyle:!1}),pt=function(Pe,Xe){var Be={};for(var Xt in Pe)Object.prototype.hasOwnProperty.call(Pe,Xt)&&Xe.indexOf(Xt)<0&&(Be[Xt]=Pe[Xt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Xt=Object.getOwnPropertySymbols(Pe);St{const{prefixCls:Xe,okButtonProps:Be,cancelButtonProps:Xt,title:St,description:nt,cancelText:wt,okText:lt,okType:Kt="primary",icon:Mt=v.createElement(P.Z,null),showCancel:hn=!0,close:un,onConfirm:Sr,onCancel:ii,onPopupClick:Ii}=Pe,{getPrefixCls:Ni}=v.useContext(C.E_),[eo]=(0,ae.Z)("Popconfirm",fe.Z.Popconfirm),ti=(0,O.Z)(St),Is=(0,O.Z)(nt);return v.createElement("div",{className:`${Xe}-inner-content`,onClick:Ii},v.createElement("div",{className:`${Xe}-message`},Mt&&v.createElement("span",{className:`${Xe}-message-icon`},Mt),v.createElement("div",{className:`${Xe}-message-text`},ti&&v.createElement("div",{className:b()(`${Xe}-title`)},ti),Is&&v.createElement("div",{className:`${Xe}-description`},Is))),v.createElement("div",{className:`${Xe}-buttons`},hn&&v.createElement(K.ZP,Object.assign({onClick:ii,size:"small"},Xt),wt!=null?wt:eo==null?void 0:eo.cancelText),v.createElement(A.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,he.nx)(Kt)),Be),actionFn:Sr,close:un,prefixCls:Ni("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},lt!=null?lt:eo==null?void 0:eo.okText)))};var De=Pe=>{const{prefixCls:Xe,placement:Be,className:Xt,style:St}=Pe,nt=pt(Pe,["prefixCls","placement","className","style"]),{getPrefixCls:wt}=v.useContext(C.E_),lt=wt("popconfirm",Xe),[Kt]=Ve(lt);return Kt(v.createElement(xe.ZP,{placement:Be,className:b()(lt,Xt),style:St,content:v.createElement(st,Object.assign({prefixCls:lt},nt))}))},Te=function(Pe,Xe){var Be={};for(var Xt in Pe)Object.prototype.hasOwnProperty.call(Pe,Xt)&&Xe.indexOf(Xt)<0&&(Be[Xt]=Pe[Xt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Xt=Object.getOwnPropertySymbols(Pe);St{var Be,Xt;const{prefixCls:St,placement:nt="top",trigger:wt="click",okType:lt="primary",icon:Kt=v.createElement(P.Z,null),children:Mt,overlayClassName:hn,onOpenChange:un,onVisibleChange:Sr}=Pe,ii=Te(Pe,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:Ii}=v.useContext(C.E_),[Ni,eo]=(0,B.Z)(!1,{value:(Be=Pe.open)!==null&&Be!==void 0?Be:Pe.visible,defaultValue:(Xt=Pe.defaultOpen)!==null&&Xt!==void 0?Xt:Pe.defaultVisible}),ti=(Ln,it)=>{eo(Ln,!0),Sr==null||Sr(Ln),un==null||un(Ln,it)},Is=Ln=>{ti(!1,Ln)},Ns=Ln=>{var it;return(it=Pe.onConfirm)===null||it===void 0?void 0:it.call(void 0,Ln)},Se=Ln=>{var it;ti(!1,Ln),(it=Pe.onCancel)===null||it===void 0||it.call(void 0,Ln)},Xi=Ln=>{Ln.keyCode===V.Z.ESC&&Ni&&ti(!1,Ln)},Yi=Ln=>{const{disabled:it=!1}=Pe;it||ti(Ln)},fo=Ii("popconfirm",St),di=b()(fo,hn),[Fs]=Ve(fo);return Fs(v.createElement(g.Z,Object.assign({},(0,k.Z)(ii,["title"]),{trigger:wt,placement:nt,onOpenChange:Yi,open:Ni,ref:Xe,overlayClassName:di,content:v.createElement(st,Object.assign({okType:lt,icon:Kt},Pe,{prefixCls:fo,close:Is,onConfirm:Ns,onCancel:Se})),"data-popover-inject":!0}),(0,R.Tm)(Mt,{onKeyDown:Ln=>{var it,Ot;v.isValidElement(Mt)&&((Ot=Mt==null?void 0:(it=Mt.props).onKeyDown)===null||Ot===void 0||Ot.call(it,Ln)),Xi(Ln)}})))});Me._InternalPanelDoNotUseOrYouWillBeFired=De;var Ue=Me},60590:function(yt,Y,y){"use strict";y.d(Y,{t5:function(){return g}});var v=y(94184),P=y.n(v),w=y(92419),b=y(67294),B=y(53124),V=y(81643),k=y(20136),R=function(O,K){var he={};for(var ae in O)Object.prototype.hasOwnProperty.call(O,ae)&&K.indexOf(ae)<0&&(he[ae]=O[ae]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,ae=Object.getOwnPropertySymbols(O);fe{if(!(!K&&!he))return b.createElement(b.Fragment,null,K&&b.createElement("div",{className:`${O}-title`},(0,V.Z)(K)),b.createElement("div",{className:`${O}-inner-content`},(0,V.Z)(he)))},g=O=>{const{hashId:K,prefixCls:he,className:ae,style:fe,placement:xe="top",title:ye,content:be,children:Qe}=O;return b.createElement("div",{className:P()(K,he,`${he}-pure`,`${he}-placement-${xe}`,ae),style:fe},b.createElement("div",{className:`${he}-arrow`}),b.createElement(w.G,Object.assign({},O,{className:K,prefixCls:he}),Qe||C(he,ye,be)))},A=O=>{const{prefixCls:K}=O,he=R(O,["prefixCls"]),{getPrefixCls:ae}=b.useContext(B.E_),fe=ae("popover",K),[xe,ye]=(0,k.Z)(fe);return xe(b.createElement(g,Object.assign({},he,{prefixCls:fe,hashId:ye})))};Y.ZP=A},55241:function(yt,Y,y){"use strict";var v=y(67294),P=y(94184),w=y.n(P),b=y(81643),B=y(33603),V=y(53124),k=y(61781),R=y(60590),C=y(20136),g=function(K,he){var ae={};for(var fe in K)Object.prototype.hasOwnProperty.call(K,fe)&&he.indexOf(fe)<0&&(ae[fe]=K[fe]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,fe=Object.getOwnPropertySymbols(K);xe{let{title:he,content:ae,prefixCls:fe}=K;return v.createElement(v.Fragment,null,he&&v.createElement("div",{className:`${fe}-title`},(0,b.Z)(he)),v.createElement("div",{className:`${fe}-inner-content`},(0,b.Z)(ae)))},O=v.forwardRef((K,he)=>{const{prefixCls:ae,title:fe,content:xe,overlayClassName:ye,placement:be="top",trigger:Qe="hover",mouseEnterDelay:Ve=.1,mouseLeaveDelay:pt=.1,overlayStyle:st={}}=K,Ae=g(K,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:De}=v.useContext(V.E_),Te=De("popover",ae),[Me,Ue]=(0,C.Z)(Te),Pe=De(),Xe=w()(ye,Ue);return Me(v.createElement(k.Z,Object.assign({placement:be,trigger:Qe,mouseEnterDelay:Ve,mouseLeaveDelay:pt,overlayStyle:st},Ae,{prefixCls:Te,overlayClassName:Xe,ref:he,overlay:fe||xe?v.createElement(A,{prefixCls:Te,title:fe,content:xe}):null,transitionName:(0,B.m)(Pe,"zoom-big",Ae.transitionName),"data-popover-inject":!0})))});O._InternalPanelDoNotUseOrYouWillBeFired=R.ZP,Y.Z=O},20136:function(yt,Y,y){"use strict";var v=y(14747),P=y(50438),w=y(97414),b=y(8796),B=y(91945),V=y(45503),k=y(79511);const R=A=>{const{componentCls:O,popoverColor:K,titleMinWidth:he,fontWeightStrong:ae,innerPadding:fe,boxShadowSecondary:xe,colorTextHeading:ye,borderRadiusLG:be,zIndexPopup:Qe,titleMarginBottom:Ve,colorBgElevated:pt,popoverBg:st,titleBorderBottom:Ae,innerContentPadding:De,titlePadding:Te}=A;return[{[O]:Object.assign(Object.assign({},(0,v.Wf)(A)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:Qe,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":pt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${O}-content`]:{position:"relative"},[`${O}-inner`]:{backgroundColor:st,backgroundClip:"padding-box",borderRadius:be,boxShadow:xe,padding:fe},[`${O}-title`]:{minWidth:he,marginBottom:Ve,color:ye,fontWeight:ae,borderBottom:Ae,padding:Te},[`${O}-inner-content`]:{color:K,padding:De}})},(0,w.ZP)(A,"var(--antd-arrow-background-color)"),{[`${O}-pure`]:{position:"relative",maxWidth:"none",margin:A.sizePopupArrow,display:"inline-block",[`${O}-content`]:{display:"inline-block"}}}]},C=A=>{const{componentCls:O}=A;return{[O]:b.i.map(K=>{const he=A[`${K}6`];return{[`&${O}-${K}`]:{"--antd-arrow-background-color":he,[`${O}-inner`]:{backgroundColor:he},[`${O}-arrow`]:{background:"transparent"}}}})}},g=A=>{const{lineWidth:O,controlHeight:K,fontHeight:he,padding:ae,wireframe:fe,zIndexPopupBase:xe,borderRadiusLG:ye,marginXS:be,lineType:Qe,colorSplit:Ve,paddingSM:pt}=A,st=K-he,Ae=st/2,De=st/2-O,Te=ae;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:xe+30},(0,k.w)(A)),(0,w.wZ)({contentRadius:ye,limitVerticalRadius:!0})),{innerPadding:fe?0:12,titleMarginBottom:fe?0:be,titlePadding:fe?`${Ae}px ${Te}px ${De}px`:0,titleBorderBottom:fe?`${O}px ${Qe} ${Ve}`:"none",innerContentPadding:fe?`${pt}px ${Te}px`:0})};Y.Z=(0,B.I$)("Popover",A=>{const{colorBgElevated:O,colorText:K}=A,he=(0,V.TS)(A,{popoverBg:O,popoverColor:K});return[R(he),C(he),(0,P._y)(he,"zoom-big")]},g,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},78045:function(yt,Y,y){"use strict";y.d(Y,{ZP:function(){return hn}});var v=y(67294),P=y(94184),w=y.n(P),b=y(21770),B=y(64217),V=y(53124),k=y(98675);const R=v.createContext(null),C=R.Provider;var g=R;const A=v.createContext(null),O=A.Provider;var K=y(50132),he=y(42550),ae=y(45353),fe=y(17415),xe=y(98866),ye=y(65223),be=y(43109),Qe=y(14747),Ve=y(91945),pt=y(45503);const st=un=>{const{componentCls:Sr,antCls:ii}=un,Ii=`${Sr}-group`;return{[Ii]:Object.assign(Object.assign({},(0,Qe.Wf)(un)),{display:"inline-block",fontSize:0,[`&${Ii}-rtl`]:{direction:"rtl"},[`${ii}-badge ${ii}-badge-count`]:{zIndex:1},[`> ${ii}-badge:not(:first-child) > ${ii}-button-wrapper`]:{borderInlineStart:"none"}})}},Ae=un=>{const{componentCls:Sr,wrapperMarginInlineEnd:ii,colorPrimary:Ii,radioSize:Ni,motionDurationSlow:eo,motionDurationMid:ti,motionEaseInOutCirc:Is,colorBgContainer:Ns,colorBorder:Se,lineWidth:Xi,colorBgContainerDisabled:Yi,colorTextDisabled:fo,paddingXS:di,dotColorDisabled:Fs,lineType:Ln,radioColor:it,radioBgColor:Ot,calc:Ht}=un,Pn=`${Sr}-inner`,fr=4,In=Ht(Ni).sub(Ht(fr).mul(2)),mn=Ht(1).mul(Ni).equal();return{[`${Sr}-wrapper`]:Object.assign(Object.assign({},(0,Qe.Wf)(un)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:ii,cursor:"pointer",[`&${Sr}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:un.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Sr}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,be.bf)(Xi)} ${Ln} ${Ii}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Sr]:Object.assign(Object.assign({},(0,Qe.Wf)(un)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Sr}-wrapper:hover &, + &:hover ${Pn}`]:{borderColor:Ii},[`${Sr}-input:focus-visible + ${Pn}`]:Object.assign({},(0,Qe.oN)(un)),[`${Sr}:hover::after, ${Sr}-wrapper:hover &::after`]:{visibility:"visible"},[`${Sr}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:mn,height:mn,marginBlockStart:Ht(1).mul(Ni).div(-2).equal(),marginInlineStart:Ht(1).mul(Ni).div(-2).equal(),backgroundColor:it,borderBlockStart:0,borderInlineStart:0,borderRadius:mn,transform:"scale(0)",opacity:0,transition:`all ${eo} ${Is}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:mn,height:mn,backgroundColor:Ns,borderColor:Se,borderStyle:"solid",borderWidth:Xi,borderRadius:"50%",transition:`all ${ti}`},[`${Sr}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Sr}-checked`]:{[Pn]:{borderColor:Ii,backgroundColor:Ot,"&::after":{transform:`scale(${un.calc(un.dotSize).div(Ni).equal()})`,opacity:1,transition:`all ${eo} ${Is}`}}},[`${Sr}-disabled`]:{cursor:"not-allowed",[Pn]:{backgroundColor:Yi,borderColor:Se,cursor:"not-allowed","&::after":{backgroundColor:Fs}},[`${Sr}-input`]:{cursor:"not-allowed"},[`${Sr}-disabled + span`]:{color:fo,cursor:"not-allowed"},[`&${Sr}-checked`]:{[Pn]:{"&::after":{transform:`scale(${Ht(In).div(Ni).equal({unit:!1})})`}}}},[`span${Sr} + *`]:{paddingInlineStart:di,paddingInlineEnd:di}})}},De=un=>{const{buttonColor:Sr,controlHeight:ii,componentCls:Ii,lineWidth:Ni,lineType:eo,colorBorder:ti,motionDurationSlow:Is,motionDurationMid:Ns,buttonPaddingInline:Se,fontSize:Xi,buttonBg:Yi,fontSizeLG:fo,controlHeightLG:di,controlHeightSM:Fs,paddingXS:Ln,borderRadius:it,borderRadiusSM:Ot,borderRadiusLG:Ht,buttonCheckedBg:Pn,buttonSolidCheckedColor:fr,colorTextDisabled:In,colorBgContainerDisabled:mn,buttonCheckedBgDisabled:Ut,buttonCheckedColorDisabled:en,colorPrimary:Cn,colorPrimaryHover:lr,colorPrimaryActive:pr,buttonSolidCheckedBg:an,buttonSolidCheckedHoverBg:wr,buttonSolidCheckedActiveBg:Cr,calc:Ei}=un;return{[`${Ii}-button-wrapper`]:{position:"relative",display:"inline-block",height:ii,margin:0,paddingInline:Se,paddingBlock:0,color:Sr,fontSize:Xi,lineHeight:(0,be.bf)(Ei(ii).sub(Ei(Ni).mul(2)).equal()),background:Yi,border:`${(0,be.bf)(Ni)} ${eo} ${ti}`,borderBlockStartWidth:Ei(Ni).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:Ni,cursor:"pointer",transition:[`color ${Ns}`,`background ${Ns}`,`box-shadow ${Ns}`].join(","),a:{color:Sr},[`> ${Ii}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:Ei(Ni).mul(-1).equal(),insetInlineStart:Ei(Ni).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Ni,paddingInline:0,backgroundColor:ti,transition:`background-color ${Is}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,be.bf)(Ni)} ${eo} ${ti}`,borderStartStartRadius:it,borderEndStartRadius:it},"&:last-child":{borderStartEndRadius:it,borderEndEndRadius:it},"&:first-child:last-child":{borderRadius:it},[`${Ii}-group-large &`]:{height:di,fontSize:fo,lineHeight:(0,be.bf)(Ei(di).sub(Ei(Ni).mul(2)).equal()),"&:first-child":{borderStartStartRadius:Ht,borderEndStartRadius:Ht},"&:last-child":{borderStartEndRadius:Ht,borderEndEndRadius:Ht}},[`${Ii}-group-small &`]:{height:Fs,paddingInline:Ei(Ln).sub(Ni).equal(),paddingBlock:0,lineHeight:(0,be.bf)(Ei(Fs).sub(Ei(Ni).mul(2)).equal()),"&:first-child":{borderStartStartRadius:Ot,borderEndStartRadius:Ot},"&:last-child":{borderStartEndRadius:Ot,borderEndEndRadius:Ot}},"&:hover":{position:"relative",color:Cn},"&:has(:focus-visible)":Object.assign({},(0,Qe.oN)(un)),[`${Ii}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Ii}-button-wrapper-disabled)`]:{zIndex:1,color:Cn,background:Pn,borderColor:Cn,"&::before":{backgroundColor:Cn},"&:first-child":{borderColor:Cn},"&:hover":{color:lr,borderColor:lr,"&::before":{backgroundColor:lr}},"&:active":{color:pr,borderColor:pr,"&::before":{backgroundColor:pr}}},[`${Ii}-group-solid &-checked:not(${Ii}-button-wrapper-disabled)`]:{color:fr,background:an,borderColor:an,"&:hover":{color:fr,background:wr,borderColor:wr},"&:active":{color:fr,background:Cr,borderColor:Cr}},"&-disabled":{color:In,backgroundColor:mn,borderColor:ti,cursor:"not-allowed","&:first-child, &:hover":{color:In,backgroundColor:mn,borderColor:ti}},[`&-disabled${Ii}-button-wrapper-checked`]:{color:en,backgroundColor:Ut,borderColor:ti,boxShadow:"none"}}}},Te=un=>{const{wireframe:Sr,padding:ii,marginXS:Ii,lineWidth:Ni,fontSizeLG:eo,colorText:ti,colorBgContainer:Is,colorTextDisabled:Ns,controlItemBgActiveDisabled:Se,colorTextLightSolid:Xi,colorPrimary:Yi,colorPrimaryHover:fo,colorPrimaryActive:di,colorWhite:Fs}=un,Ln=4,it=eo,Ot=Sr?it-Ln*2:it-(Ln+Ni)*2;return{radioSize:it,dotSize:Ot,dotColorDisabled:Ns,buttonSolidCheckedColor:Xi,buttonSolidCheckedBg:Yi,buttonSolidCheckedHoverBg:fo,buttonSolidCheckedActiveBg:di,buttonBg:Is,buttonCheckedBg:Is,buttonColor:ti,buttonCheckedBgDisabled:Se,buttonCheckedColorDisabled:Ns,buttonPaddingInline:ii-Ni,wrapperMarginInlineEnd:Ii,radioColor:Sr?Yi:Fs,radioBgColor:Sr?Is:Yi}};var Me=(0,Ve.I$)("Radio",un=>{const{controlOutline:Sr,controlOutlineWidth:ii}=un,Ii=`0 0 0 ${(0,be.bf)(ii)} ${Sr}`,Ni=Ii,eo=(0,pt.TS)(un,{radioFocusShadow:Ii,radioButtonFocusShadow:Ni});return[st(eo),Ae(eo),De(eo)]},Te,{unitless:{radioSize:!0,dotSize:!0}}),Ue=y(35792),Pe=function(un,Sr){var ii={};for(var Ii in un)Object.prototype.hasOwnProperty.call(un,Ii)&&Sr.indexOf(Ii)<0&&(ii[Ii]=un[Ii]);if(un!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ni=0,Ii=Object.getOwnPropertySymbols(un);Ni{var ii,Ii;const Ni=v.useContext(g),eo=v.useContext(A),{getPrefixCls:ti,direction:Is,radio:Ns}=v.useContext(V.E_),Se=v.useRef(null),Xi=(0,he.sQ)(Sr,Se),{isFormItemInput:Yi}=v.useContext(ye.aM),fo=an=>{var wr,Cr;(wr=un.onChange)===null||wr===void 0||wr.call(un,an),(Cr=Ni==null?void 0:Ni.onChange)===null||Cr===void 0||Cr.call(Ni,an)},{prefixCls:di,className:Fs,rootClassName:Ln,children:it,style:Ot}=un,Ht=Pe(un,["prefixCls","className","rootClassName","children","style"]),Pn=ti("radio",di),fr=((Ni==null?void 0:Ni.optionType)||eo)==="button",In=fr?`${Pn}-button`:Pn,mn=(0,Ue.Z)(Pn),[Ut,en]=Me(Pn,mn),Cn=Object.assign({},Ht),lr=v.useContext(xe.Z);Ni&&(Cn.name=Ni.name,Cn.onChange=fo,Cn.checked=un.value===Ni.value,Cn.disabled=(ii=Cn.disabled)!==null&&ii!==void 0?ii:Ni.disabled),Cn.disabled=(Ii=Cn.disabled)!==null&&Ii!==void 0?Ii:lr;const pr=w()(`${In}-wrapper`,{[`${In}-wrapper-checked`]:Cn.checked,[`${In}-wrapper-disabled`]:Cn.disabled,[`${In}-wrapper-rtl`]:Is==="rtl",[`${In}-wrapper-in-form-item`]:Yi},Ns==null?void 0:Ns.className,Fs,Ln,en,mn);return Ut(v.createElement(ae.Z,{component:"Radio",disabled:Cn.disabled},v.createElement("label",{className:pr,style:Object.assign(Object.assign({},Ns==null?void 0:Ns.style),Ot),onMouseEnter:un.onMouseEnter,onMouseLeave:un.onMouseLeave},v.createElement(K.Z,Object.assign({},Cn,{className:w()(Cn.className,!fr&&fe.A),type:"radio",prefixCls:In,ref:Xi})),it!==void 0?v.createElement("span",null,it):null)))};var Xt=v.forwardRef(Xe);const St=v.forwardRef((un,Sr)=>{const{getPrefixCls:ii,direction:Ii}=v.useContext(V.E_),[Ni,eo]=(0,b.Z)(un.defaultValue,{value:un.value}),ti=wr=>{const Cr=Ni,Ei=wr.target.value;"value"in un||eo(Ei);const{onChange:vo}=un;vo&&Ei!==Cr&&vo(wr)},{prefixCls:Is,className:Ns,rootClassName:Se,options:Xi,buttonStyle:Yi="outline",disabled:fo,children:di,size:Fs,style:Ln,id:it,onMouseEnter:Ot,onMouseLeave:Ht,onFocus:Pn,onBlur:fr}=un,In=ii("radio",Is),mn=`${In}-group`,Ut=(0,Ue.Z)(In),[en,Cn]=Me(In,Ut);let lr=di;Xi&&Xi.length>0&&(lr=Xi.map(wr=>typeof wr=="string"||typeof wr=="number"?v.createElement(Xt,{key:wr.toString(),prefixCls:In,disabled:fo,value:wr,checked:Ni===wr},wr):v.createElement(Xt,{key:`radio-group-value-options-${wr.value}`,prefixCls:In,disabled:wr.disabled||fo,value:wr.value,checked:Ni===wr.value,title:wr.title,style:wr.style,id:wr.id,required:wr.required},wr.label)));const pr=(0,k.Z)(Fs),an=w()(mn,`${mn}-${Yi}`,{[`${mn}-${pr}`]:pr,[`${mn}-rtl`]:Ii==="rtl"},Ns,Se,Cn,Ut);return en(v.createElement("div",Object.assign({},(0,B.Z)(un,{aria:!0,data:!0}),{className:an,style:Ln,onMouseEnter:Ot,onMouseLeave:Ht,onFocus:Pn,onBlur:fr,id:it,ref:Sr}),v.createElement(C,{value:{onChange:ti,value:Ni,disabled:un.disabled,name:un.name,optionType:un.optionType}},lr)))});var nt=v.memo(St),wt=function(un,Sr){var ii={};for(var Ii in un)Object.prototype.hasOwnProperty.call(un,Ii)&&Sr.indexOf(Ii)<0&&(ii[Ii]=un[Ii]);if(un!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ni=0,Ii=Object.getOwnPropertySymbols(un);Ni{const{getPrefixCls:ii}=v.useContext(V.E_),{prefixCls:Ii}=un,Ni=wt(un,["prefixCls"]),eo=ii("radio",Ii);return v.createElement(O,{value:"button"},v.createElement(Xt,Object.assign({prefixCls:eo},Ni,{type:"radio",ref:Sr})))};var Kt=v.forwardRef(lt);const Mt=Xt;Mt.Button=Kt,Mt.Group=nt,Mt.__ANT_RADIO=!0;var hn=Mt},29905:function(yt,Y,y){"use strict";y.d(Y,{ZP:function(){return wt}});var v=y(67294),P=y(76278),w=y(41322),b=y(26702),B=y(87462),V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},k=V,R=y(93771),C=function(Kt,Mt){return v.createElement(R.Z,(0,B.Z)({},Kt,{ref:Mt,icon:k}))},g=v.forwardRef(C),A=y(94184),O=y.n(A),K=y(53124),ae=()=>v.createElement("svg",{width:"252",height:"294"},v.createElement("defs",null,v.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(0 .012)"},v.createElement("mask",{fill:"#fff"}),v.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),v.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),v.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),v.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),v.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),v.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),v.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),v.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),v.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),v.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),v.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),v.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),v.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),v.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),v.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),v.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),v.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),v.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),v.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),v.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),v.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),v.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),v.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),v.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),v.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),v.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),v.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),v.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),v.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),v.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),v.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),v.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),v.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),v.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),v.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),v.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),v.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),v.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),v.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),xe=()=>v.createElement("svg",{width:"254",height:"294"},v.createElement("defs",null,v.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),v.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(0 .067)"},v.createElement("mask",{fill:"#fff"}),v.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),v.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),v.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),v.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),v.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),v.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),v.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),v.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),v.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),v.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),v.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),v.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),v.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),v.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),v.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),v.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),v.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),v.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),v.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),v.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),v.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),v.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),v.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),v.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),v.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),v.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),v.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),v.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),v.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),v.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),v.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),v.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),v.createElement("mask",{fill:"#fff"}),v.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),v.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),v.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),v.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),v.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),v.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),v.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),v.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),v.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),v.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),v.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),ye=y(43109),be=y(91945),Qe=y(45503);const Ve=lt=>{const{componentCls:Kt,lineHeightHeading3:Mt,iconCls:hn,padding:un,paddingXL:Sr,paddingXS:ii,paddingLG:Ii,marginXS:Ni,lineHeight:eo}=lt;return{[Kt]:{padding:`${(0,ye.bf)(lt.calc(Ii).mul(2).equal())} ${(0,ye.bf)(Sr)}`,"&-rtl":{direction:"rtl"}},[`${Kt} ${Kt}-image`]:{width:lt.imageWidth,height:lt.imageHeight,margin:"auto"},[`${Kt} ${Kt}-icon`]:{marginBottom:Ii,textAlign:"center",[`& > ${hn}`]:{fontSize:lt.iconFontSize}},[`${Kt} ${Kt}-title`]:{color:lt.colorTextHeading,fontSize:lt.titleFontSize,lineHeight:Mt,marginBlock:Ni,textAlign:"center"},[`${Kt} ${Kt}-subtitle`]:{color:lt.colorTextDescription,fontSize:lt.subtitleFontSize,lineHeight:eo,textAlign:"center"},[`${Kt} ${Kt}-content`]:{marginTop:Ii,padding:`${(0,ye.bf)(Ii)} ${(0,ye.bf)(lt.calc(un).mul(2.5).equal())}`,backgroundColor:lt.colorFillAlter},[`${Kt} ${Kt}-extra`]:{margin:lt.extraMargin,textAlign:"center","& > *":{marginInlineEnd:ii,"&:last-child":{marginInlineEnd:0}}}}},pt=lt=>{const{componentCls:Kt,iconCls:Mt}=lt;return{[`${Kt}-success ${Kt}-icon > ${Mt}`]:{color:lt.resultSuccessIconColor},[`${Kt}-error ${Kt}-icon > ${Mt}`]:{color:lt.resultErrorIconColor},[`${Kt}-info ${Kt}-icon > ${Mt}`]:{color:lt.resultInfoIconColor},[`${Kt}-warning ${Kt}-icon > ${Mt}`]:{color:lt.resultWarningIconColor}}},st=lt=>[Ve(lt),pt(lt)],Ae=lt=>st(lt),De=lt=>({titleFontSize:lt.fontSizeHeading3,subtitleFontSize:lt.fontSize,iconFontSize:lt.fontSizeHeading3*3,extraMargin:`${lt.paddingLG}px 0 0 0`});var Te=(0,be.I$)("Result",lt=>{const Kt=lt.colorInfo,Mt=lt.colorError,hn=lt.colorSuccess,un=lt.colorWarning,Sr=(0,Qe.TS)(lt,{resultInfoIconColor:Kt,resultErrorIconColor:Mt,resultSuccessIconColor:hn,resultWarningIconColor:un,imageWidth:250,imageHeight:295});return[Ae(Sr)]},De),Ue=()=>v.createElement("svg",{width:"251",height:"294"},v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),v.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),v.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),v.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),v.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),v.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),v.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),v.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),v.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),v.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),v.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),v.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),v.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),v.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),v.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),v.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),v.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),v.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),v.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),v.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),v.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),v.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),v.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),v.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),v.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),v.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),v.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),v.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),v.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),v.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),v.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),v.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),v.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),v.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),v.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),v.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})));const Pe={success:P.Z,error:w.Z,info:b.Z,warning:g},Xe={404:ae,500:xe,403:Ue},Be=Object.keys(Xe),Xt=lt=>{let{prefixCls:Kt,icon:Mt,status:hn}=lt;const un=O()(`${Kt}-icon`);if(Be.includes(`${hn}`)){const ii=Xe[hn];return v.createElement("div",{className:`${un} ${Kt}-image`},v.createElement(ii,null))}const Sr=v.createElement(Pe[hn]);return Mt===null||Mt===!1?null:v.createElement("div",{className:un},Mt||Sr)},St=lt=>{let{prefixCls:Kt,extra:Mt}=lt;return Mt?v.createElement("div",{className:`${Kt}-extra`},Mt):null},nt=lt=>{let{prefixCls:Kt,className:Mt,rootClassName:hn,subTitle:un,title:Sr,style:ii,children:Ii,status:Ni="info",icon:eo,extra:ti}=lt;const{getPrefixCls:Is,direction:Ns,result:Se}=v.useContext(K.E_),Xi=Is("result",Kt),[Yi,fo]=Te(Xi),di=O()(Xi,`${Xi}-${Ni}`,Mt,Se==null?void 0:Se.className,hn,{[`${Xi}-rtl`]:Ns==="rtl"},fo),Fs=Object.assign(Object.assign({},Se==null?void 0:Se.style),ii);return Yi(v.createElement("div",{className:di,style:Fs},v.createElement(Xt,{prefixCls:Xi,status:Ni,icon:eo}),v.createElement("div",{className:`${Xi}-title`},Sr),un&&v.createElement("div",{className:`${Xi}-subtitle`},un),v.createElement(St,{prefixCls:Xi,extra:ti}),Ii&&v.createElement("div",{className:`${Xi}-content`},Ii)))};nt.PRESENTED_IMAGE_403=Xe[403],nt.PRESENTED_IMAGE_404=Xe[404],nt.PRESENTED_IMAGE_500=Xe[500];var wt=nt},34041:function(yt,Y,y){"use strict";var v=y(67294),P=y(94184),w=y.n(P),b=y(88905),B=y(98423),V=y(87263),k=y(33603),R=y(8745),C=y(9708),g=y(53124),A=y(88258),O=y(98866),K=y(98675),he=y(65223),ae=y(4173),fe=y(87244),xe=y(13458),ye=y(43277),be=y(78642),Qe=y(35792),Ve=function(Te,Me){var Ue={};for(var Pe in Te)Object.prototype.hasOwnProperty.call(Te,Pe)&&Me.indexOf(Pe)<0&&(Ue[Pe]=Te[Pe]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Pe=Object.getOwnPropertySymbols(Te);Xe{var Ue,Pe,{prefixCls:Xe,bordered:Be=!0,className:Xt,rootClassName:St,getPopupContainer:nt,popupClassName:wt,dropdownClassName:lt,listHeight:Kt=256,placement:Mt,listItemHeight:hn=24,size:un,disabled:Sr,notFoundContent:ii,status:Ii,builtinPlacements:Ni,dropdownMatchSelectWidth:eo,popupMatchSelectWidth:ti,direction:Is,style:Ns,allowClear:Se}=Te,Xi=Ve(Te,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Yi,getPrefixCls:fo,renderEmpty:di,direction:Fs,virtual:Ln,popupMatchSelectWidth:it,popupOverflow:Ot,select:Ht}=v.useContext(g.E_),Pn=fo("select",Xe),fr=fo(),In=Is!=null?Is:Fs,{compactSize:mn,compactItemClassnames:Ut}=(0,ae.ri)(Pn,In),en=(0,Qe.Z)(Pn),[Cn,lr]=(0,fe.Z)(Pn,en),pr=v.useMemo(()=>{const{mode:Dn}=Xi;if(Dn!=="combobox")return Dn===pt?"combobox":Dn},[Xi.mode]),an=pr==="multiple"||pr==="tags",wr=(0,be.Z)(Xi.suffixIcon,Xi.showArrow),Cr=(Ue=ti!=null?ti:eo)!==null&&Ue!==void 0?Ue:it,{status:Ei,hasFeedback:vo,isFormItemInput:kr,feedbackIcon:ro}=v.useContext(he.aM),qi=(0,C.F)(Ei,Ii);let bo;ii!==void 0?bo=ii:pr==="combobox"?bo=null:bo=(di==null?void 0:di("Select"))||v.createElement(A.Z,{componentName:"Select"});const{suffixIcon:xn,itemIcon:pn,removeIcon:Dt,clearIcon:Zt}=(0,ye.Z)(Object.assign(Object.assign({},Xi),{multiple:an,hasFeedback:vo,feedbackIcon:ro,showSuffixIcon:wr,prefixCls:Pn,showArrow:Xi.showArrow,componentName:"Select"})),vn=Se===!0?{clearIcon:Zt}:Se,$n=(0,B.Z)(Xi,["suffixIcon","itemIcon"]),Ar=w()(wt||lt,{[`${Pn}-dropdown-${In}`]:In==="rtl"},St,en,lr),Dr=(0,K.Z)(Dn=>{var Kn;return(Kn=un!=null?un:mn)!==null&&Kn!==void 0?Kn:Dn}),dr=v.useContext(O.Z),Yt=Sr!=null?Sr:dr,wn=w()({[`${Pn}-lg`]:Dr==="large",[`${Pn}-sm`]:Dr==="small",[`${Pn}-rtl`]:In==="rtl",[`${Pn}-borderless`]:!Be,[`${Pn}-in-form-item`]:kr},(0,C.Z)(Pn,qi,vo),Ut,Ht==null?void 0:Ht.className,Xt,St,en,lr),Qn=v.useMemo(()=>Mt!==void 0?Mt:In==="rtl"?"bottomRight":"bottomLeft",[Mt,In]),Mr=(0,xe.Z)(Ni,Ot),[Wi]=(0,V.Cn)("SelectLike",(Pe=Xi.dropdownStyle)===null||Pe===void 0?void 0:Pe.zIndex);return Cn(v.createElement(b.ZP,Object.assign({ref:Me,virtual:Ln,showSearch:Ht==null?void 0:Ht.showSearch},$n,{style:Object.assign(Object.assign({},Ht==null?void 0:Ht.style),Ns),dropdownMatchSelectWidth:Cr,builtinPlacements:Mr,transitionName:(0,k.m)(fr,"slide-up",Xi.transitionName),listHeight:Kt,listItemHeight:hn,mode:pr,prefixCls:Pn,placement:Qn,direction:In,suffixIcon:xn,menuItemSelectedIcon:pn,removeIcon:Dt,allowClear:vn,notFoundContent:bo,className:wn,getPopupContainer:nt||Yi,dropdownClassName:Ar,disabled:Yt,dropdownStyle:Object.assign(Object.assign({},Xi==null?void 0:Xi.dropdownStyle),{zIndex:Wi})})))},Ae=v.forwardRef(st),De=(0,R.Z)(Ae);Ae.SECRET_COMBOBOX_MODE_DO_NOT_USE=pt,Ae.Option=b.Wx,Ae.OptGroup=b.Xo,Ae._InternalPanelDoNotUseOrYouWillBeFired=De,Y.Z=Ae},87244:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return Ae}});var v=y(43109),P=y(14747),w=y(80110),b=y(45503),B=y(91945),V=y(48611),k=y(33297);const R=De=>{const{optionHeight:Te,optionFontSize:Me,optionLineHeight:Ue,optionPadding:Pe}=De;return{position:"relative",display:"block",minHeight:Te,padding:Pe,color:De.colorText,fontWeight:"normal",fontSize:Me,lineHeight:Ue,boxSizing:"border-box"}};var g=De=>{const{antCls:Te,componentCls:Me}=De,Ue=`${Me}-item`,Pe=`&${Te}-slide-up-enter${Te}-slide-up-enter-active`,Xe=`&${Te}-slide-up-appear${Te}-slide-up-appear-active`,Be=`&${Te}-slide-up-leave${Te}-slide-up-leave-active`,Xt=`${Me}-dropdown-placement-`;return[{[`${Me}-dropdown`]:Object.assign(Object.assign({},(0,P.Wf)(De)),{position:"absolute",top:-9999,zIndex:De.zIndexPopup,boxSizing:"border-box",padding:De.paddingXXS,overflow:"hidden",fontSize:De.fontSize,fontVariant:"initial",backgroundColor:De.colorBgElevated,borderRadius:De.borderRadiusLG,outline:"none",boxShadow:De.boxShadowSecondary,[` + ${Pe}${Xt}bottomLeft, + ${Xe}${Xt}bottomLeft `]:{animationName:V.fJ},[` - ${Ie}${Kt}topLeft, - ${Xe}${Kt}topLeft, - ${Ie}${Kt}topRight, - ${Xe}${Kt}topRight - `]:{animationName:V.Qt},[`${ze}${Kt}bottomLeft`]:{animationName:V.Uw},[` - ${ze}${Kt}topLeft, - ${ze}${Kt}topRight - `]:{animationName:V.ly},"&-hidden":{display:"none"},[`${$e}`]:Object.assign(Object.assign({},M(De)),{cursor:"pointer",transition:`background ${De.motionDurationSlow} ease`,borderRadius:De.borderRadiusSM,"&-group":{color:De.colorTextDescription,fontSize:De.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},R.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${$e}-option-disabled)`]:{backgroundColor:De.optionActiveBg},[`&-selected:not(${$e}-option-disabled)`]:{color:De.optionSelectedColor,fontWeight:De.optionSelectedFontWeight,backgroundColor:De.optionSelectedBg,[`${$e}-option-state`]:{color:De.colorPrimary}},"&-disabled":{[`&${$e}-option-selected`]:{backgroundColor:De.colorBgContainerDisabled},color:De.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:De.calc(De.controlPaddingHorizontal).mul(2).equal()}}}),"&-rtl":{direction:"rtl"}})},(0,V.oN)(De,"slide-up"),(0,V.oN)(De,"slide-down"),(0,k.Fm)(De,"move-up"),(0,k.Fm)(De,"move-down")]};const A=2,O=De=>{const{multipleSelectItemHeight:Ae,selectHeight:Re,lineWidth:$e}=De;return De.calc(Re).sub(Ae).div(2).sub($e).equal()};function K(De,Ae){const{componentCls:Re,iconCls:$e}=De,Ie=`${Re}-selection-overflow`,Xe=De.multipleSelectItemHeight,ze=O(De),Kt=Ae?`${Re}-${Ae}`:"";return{[`${Re}-multiple${Kt}`]:{fontSize:De.fontSize,[Ie]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Re}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:`${(0,v.bf)(De.calc(ze).sub(A).equal())} ${(0,v.bf)(De.calc(A).mul(2).equal())}`,borderRadius:De.borderRadius,[`${Re}-show-search&`]:{cursor:"text"},[`${Re}-disabled&`]:{background:De.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,v.bf)(A)} 0`,lineHeight:(0,v.bf)(Xe),visibility:"hidden",content:'"\\a0"'}},[` - &${Re}-show-arrow ${Re}-selector, - &${Re}-allow-clear ${Re}-selector - `]:{paddingInlineEnd:De.calc(De.fontSizeIcon).add(De.controlPaddingHorizontal).equal()},[`${Re}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Xe,marginTop:A,marginBottom:A,lineHeight:(0,v.bf)(De.calc(Xe).sub(De.calc(De.lineWidth).mul(2)).equal()),background:De.multipleItemBg,border:`${(0,v.bf)(De.lineWidth)} ${De.lineType} ${De.multipleItemBorderColor}`,borderRadius:De.borderRadiusSM,cursor:"default",transition:`font-size ${De.motionDurationSlow}, line-height ${De.motionDurationSlow}, height ${De.motionDurationSlow}`,marginInlineEnd:De.calc(A).mul(2).equal(),paddingInlineStart:De.paddingXS,paddingInlineEnd:De.calc(De.paddingXS).div(2).equal(),[`${Re}-disabled&`]:{color:De.multipleItemColorDisabled,borderColor:De.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:De.calc(De.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,R.Ro)()),{display:"inline-flex",alignItems:"center",color:De.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${$e}`]:{verticalAlign:"-0.2em"},"&:hover":{color:De.colorIconHover}})},[`${Ie}-item + ${Ie}-item`]:{[`${Re}-selection-search`]:{marginInlineStart:0}},[`${Ie}-item-suffix`]:{height:"100%"},[`${Re}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:De.calc(De.inputPaddingHorizontalBase).sub(ze).equal(),[` + ${Pe}${Xt}topLeft, + ${Xe}${Xt}topLeft, + ${Pe}${Xt}topRight, + ${Xe}${Xt}topRight + `]:{animationName:V.Qt},[`${Be}${Xt}bottomLeft`]:{animationName:V.Uw},[` + ${Be}${Xt}topLeft, + ${Be}${Xt}topRight + `]:{animationName:V.ly},"&-hidden":{display:"none"},[`${Ue}`]:Object.assign(Object.assign({},R(De)),{cursor:"pointer",transition:`background ${De.motionDurationSlow} ease`,borderRadius:De.borderRadiusSM,"&-group":{color:De.colorTextDescription,fontSize:De.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},P.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ue}-option-disabled)`]:{backgroundColor:De.optionActiveBg},[`&-selected:not(${Ue}-option-disabled)`]:{color:De.optionSelectedColor,fontWeight:De.optionSelectedFontWeight,backgroundColor:De.optionSelectedBg,[`${Ue}-option-state`]:{color:De.colorPrimary}},"&-disabled":{[`&${Ue}-option-selected`]:{backgroundColor:De.colorBgContainerDisabled},color:De.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:De.calc(De.controlPaddingHorizontal).mul(2).equal()}}}),"&-rtl":{direction:"rtl"}})},(0,V.oN)(De,"slide-up"),(0,V.oN)(De,"slide-down"),(0,k.Fm)(De,"move-up"),(0,k.Fm)(De,"move-down")]};const A=2,O=De=>{const{multipleSelectItemHeight:Te,selectHeight:Me,lineWidth:Ue}=De;return De.calc(Me).sub(Te).div(2).sub(Ue).equal()};function K(De,Te){const{componentCls:Me,iconCls:Ue}=De,Pe=`${Me}-selection-overflow`,Xe=De.multipleSelectItemHeight,Be=O(De),Xt=Te?`${Me}-${Te}`:"";return{[`${Me}-multiple${Xt}`]:{fontSize:De.fontSize,[Pe]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Me}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:`${(0,v.bf)(De.calc(Be).sub(A).equal())} ${(0,v.bf)(De.calc(A).mul(2).equal())}`,borderRadius:De.borderRadius,[`${Me}-show-search&`]:{cursor:"text"},[`${Me}-disabled&`]:{background:De.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,v.bf)(A)} 0`,lineHeight:(0,v.bf)(Xe),visibility:"hidden",content:'"\\a0"'}},[` + &${Me}-show-arrow ${Me}-selector, + &${Me}-allow-clear ${Me}-selector + `]:{paddingInlineEnd:De.calc(De.fontSizeIcon).add(De.controlPaddingHorizontal).equal()},[`${Me}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Xe,marginTop:A,marginBottom:A,lineHeight:(0,v.bf)(De.calc(Xe).sub(De.calc(De.lineWidth).mul(2)).equal()),background:De.multipleItemBg,border:`${(0,v.bf)(De.lineWidth)} ${De.lineType} ${De.multipleItemBorderColor}`,borderRadius:De.borderRadiusSM,cursor:"default",transition:`font-size ${De.motionDurationSlow}, line-height ${De.motionDurationSlow}, height ${De.motionDurationSlow}`,marginInlineEnd:De.calc(A).mul(2).equal(),paddingInlineStart:De.paddingXS,paddingInlineEnd:De.calc(De.paddingXS).div(2).equal(),[`${Me}-disabled&`]:{color:De.multipleItemColorDisabled,borderColor:De.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:De.calc(De.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,P.Ro)()),{display:"inline-flex",alignItems:"center",color:De.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ue}`]:{verticalAlign:"-0.2em"},"&:hover":{color:De.colorIconHover}})},[`${Pe}-item + ${Pe}-item`]:{[`${Me}-selection-search`]:{marginInlineStart:0}},[`${Pe}-item-suffix`]:{height:"100%"},[`${Me}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:De.calc(De.inputPaddingHorizontalBase).sub(Be).equal(),[` &-input, &-mirror - `]:{height:Xe,fontFamily:De.fontFamily,lineHeight:(0,v.bf)(Xe),transition:`all ${De.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Re}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:De.inputPaddingHorizontalBase,insetInlineEnd:De.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${De.motionDurationSlow}`}}}}var de=De=>{const{componentCls:Ae}=De,Re=(0,b.TS)(De,{selectHeight:De.controlHeightSM,multipleSelectItemHeight:De.controlHeightXS,borderRadius:De.borderRadiusSM,borderRadiusSM:De.borderRadiusXS}),$e=(0,b.TS)(De,{fontSize:De.fontSizeLG,selectHeight:De.controlHeightLG,multipleSelectItemHeight:De.multipleItemHeightLG,borderRadius:De.borderRadiusLG,borderRadiusSM:De.borderRadius});return[K(De),K(Re,"sm"),{[`${Ae}-multiple${Ae}-sm`]:{[`${Ae}-selection-placeholder`]:{insetInline:De.calc(De.controlPaddingHorizontalSM).sub(De.lineWidth).equal()},[`${Ae}-selection-search`]:{marginInlineStart:2}}},K($e,"lg")]};function ve(De,Ae){const{componentCls:Re,inputPaddingHorizontalBase:$e,borderRadius:Ie}=De,Xe=De.calc(De.controlHeight).sub(De.calc(De.lineWidth).mul(2)).equal(),ze=Ae?`${Re}-${Ae}`:"";return{[`${Re}-single${ze}`]:{fontSize:De.fontSize,height:De.controlHeight,[`${Re}-selector`]:Object.assign(Object.assign({},(0,R.Wf)(De,!0)),{display:"flex",borderRadius:Ie,[`${Re}-selection-search`]:{position:"absolute",top:0,insetInlineStart:$e,insetInlineEnd:$e,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` - ${Re}-selection-item, - ${Re}-selection-placeholder - `]:{padding:0,lineHeight:(0,v.bf)(Xe),transition:`all ${De.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Re}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Re}-selection-item:empty:after`,`${Re}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` - &${Re}-show-arrow ${Re}-selection-item, - &${Re}-show-arrow ${Re}-selection-placeholder - `]:{paddingInlineEnd:De.showArrowPaddingInlineEnd},[`&${Re}-open ${Re}-selection-item`]:{color:De.colorTextPlaceholder},[`&:not(${Re}-customize-input)`]:{[`${Re}-selector`]:{width:"100%",height:"100%",padding:`0 ${(0,v.bf)($e)}`,[`${Re}-selection-search-input`]:{height:Xe},"&:after":{lineHeight:(0,v.bf)(Xe)}}},[`&${Re}-customize-input`]:{[`${Re}-selector`]:{"&:after":{display:"none"},[`${Re}-selection-search`]:{position:"static",width:"100%"},[`${Re}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,v.bf)($e)}`,"&:after":{display:"none"}}}}}}}function Ee(De){const{componentCls:Ae}=De,Re=De.calc(De.controlPaddingHorizontalSM).sub(De.lineWidth).equal();return[ve(De),ve((0,b.TS)(De,{controlHeight:De.controlHeightSM,borderRadius:De.borderRadiusSM}),"sm"),{[`${Ae}-single${Ae}-sm`]:{[`&:not(${Ae}-customize-input)`]:{[`${Ae}-selection-search`]:{insetInlineStart:Re,insetInlineEnd:Re},[`${Ae}-selector`]:{padding:`0 ${(0,v.bf)(Re)}`},[`&${Ae}-show-arrow ${Ae}-selection-search`]:{insetInlineEnd:De.calc(Re).add(De.calc(De.fontSize).mul(1.5)).equal()},[` - &${Ae}-show-arrow ${Ae}-selection-item, - &${Ae}-show-arrow ${Ae}-selection-placeholder - `]:{paddingInlineEnd:De.calc(De.fontSize).mul(1.5).equal()}}}},ve((0,b.TS)(De,{controlHeight:De.singleItemHeightLG,fontSize:De.fontSizeLG,borderRadius:De.borderRadiusLG}),"lg")]}const _e=De=>{const{componentCls:Ae,selectorBg:Re}=De;return{position:"relative",backgroundColor:Re,border:`${(0,v.bf)(De.lineWidth)} ${De.lineType} ${De.colorBorder}`,transition:`all ${De.motionDurationMid} ${De.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ae}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Ae}-disabled&`]:{color:De.colorTextDisabled,background:De.colorBgContainerDisabled,cursor:"not-allowed",[`${Ae}-multiple&`]:{background:De.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},we=function(De,Ae){let Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:$e,borderHoverColor:Ie,antCls:Xe,borderActiveColor:ze,outlineColor:Kt,controlOutlineWidth:St}=Ae,nt=Re?{[`${$e}-selector`]:{borderColor:ze}}:{};return{[De]:{[`&:not(${$e}-disabled):not(${$e}-customize-input):not(${Xe}-pagination-size-changer)`]:Object.assign(Object.assign({},nt),{[`&:hover ${$e}-selector`]:{borderColor:Ie},[`${$e}-focused& ${$e}-selector`]:{borderColor:ze,boxShadow:`0 0 0 ${(0,v.bf)(St)} ${Kt}`,outline:0}})}}},ot=De=>{const{componentCls:Ae}=De;return{[`${Ae}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},He=De=>{const{antCls:Ae,componentCls:Re,inputPaddingHorizontalBase:$e,iconCls:Ie}=De;return{[Re]:Object.assign(Object.assign({},(0,R.Wf)(De)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Re}-customize-input) ${Re}-selector`]:Object.assign(Object.assign({},_e(De)),ot(De)),[`${Re}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},R.vS),{[`> ${Ae}-typography`]:{display:"inline"}}),[`${Re}-selection-placeholder`]:Object.assign(Object.assign({},R.vS),{flex:1,color:De.colorTextPlaceholder,pointerEvents:"none"}),[`${Re}-arrow`]:Object.assign(Object.assign({},(0,R.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:$e,height:De.fontSizeIcon,marginTop:De.calc(De.fontSizeIcon).mul(-1).div(2).equal(),color:De.colorTextQuaternary,fontSize:De.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Ie]:{verticalAlign:"top",transition:`transform ${De.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Re}-suffix)`]:{pointerEvents:"auto"}},[`${Re}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Re}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:$e,zIndex:1,display:"inline-block",width:De.fontSizeIcon,height:De.fontSizeIcon,marginTop:De.calc(De.fontSizeIcon).mul(-1).div(2).equal(),color:De.colorTextQuaternary,fontSize:De.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:De.clearBg,cursor:"pointer",opacity:0,transition:`color ${De.motionDurationMid} ease, opacity ${De.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:De.colorTextTertiary}},"&:hover":{[`${Re}-clear`]:{opacity:1}}}),[`${Re}-has-feedback`]:{[`${Re}-clear`]:{insetInlineEnd:De.calc($e).add(De.fontSize).add(De.paddingXS).equal()}}}},vt=De=>{const{componentCls:Ae}=De;return[{[Ae]:{[`&-borderless ${Ae}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ae}-in-form-item`]:{width:"100%"}}},He(De),Ee(De),de(De),g(De),{[`${Ae}-rtl`]:{direction:"rtl"}},we(Ae,(0,b.TS)(De,{borderHoverColor:De.colorPrimaryHover,borderActiveColor:De.colorPrimary,outlineColor:De.controlOutline})),we(`${Ae}-status-error`,(0,b.TS)(De,{borderHoverColor:De.colorErrorHover,borderActiveColor:De.colorError,outlineColor:De.colorErrorOutline}),!0),we(`${Ae}-status-warning`,(0,b.TS)(De,{borderHoverColor:De.colorWarningHover,borderActiveColor:De.colorWarning,outlineColor:De.colorWarningOutline}),!0),(0,w.c)(De,{borderElCls:`${Ae}-selector`,focusElCls:`${Ae}-focused`})]},dt=De=>{const{fontSize:Ae,lineHeight:Re,controlHeight:$e,controlPaddingHorizontal:Ie,zIndexPopupBase:Xe,colorText:ze,fontWeightStrong:Kt,controlItemBgActive:St,controlItemBgHover:nt,colorBgContainer:Ct,colorFillSecondary:lt,controlHeightLG:Gt,controlHeightSM:Rt,colorBgContainerDisabled:an,colorTextDisabled:cn}=De;return{zIndexPopup:Xe+50,optionSelectedColor:ze,optionSelectedFontWeight:Kt,optionSelectedBg:St,optionActiveBg:nt,optionPadding:`${($e-Ae*Re)/2}px ${Ie}px`,optionFontSize:Ae,optionLineHeight:Re,optionHeight:$e,selectorBg:Ct,clearBg:Ct,singleItemHeightLG:Gt,multipleItemBg:lt,multipleItemBorderColor:"transparent",multipleItemHeight:Rt,multipleItemHeightLG:$e,multipleSelectorBgDisabled:an,multipleItemColorDisabled:cn,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(De.fontSize*1.25)}};var Pe=(0,B.I$)("Select",(De,Ae)=>{let{rootPrefixCls:Re}=Ae;const $e=(0,b.TS)(De,{rootPrefixCls:Re,inputPaddingHorizontalBase:De.calc(De.paddingSM).sub(1).equal(),multipleSelectItemHeight:De.multipleItemHeight,selectHeight:De.controlHeight});return[vt($e)]},dt,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},81738:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return R}});const v=w=>{const B={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:w==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},B),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},B),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},B),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},B),{points:["br","tr"],offset:[0,-4]})}};function R(w,b){return w||v(b)}},9667:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return M}});var v=_(77617),R=_(75769),w=_(48796),b=_(49934),B=_(42884),V=_(38521),k=_(46820);function M(C){let{suffixIcon:g,clearIcon:A,menuItemSelectedIcon:O,removeIcon:K,loading:ce,multiple:de,hasFeedback:ve,prefixCls:Ee,showSuffixIcon:_e,feedbackIcon:we,showArrow:ot,componentName:He}=C;const vt=A!=null?A:v.createElement(w.Z,null),dt=Re=>g===null&&!ve&&!ot?null:v.createElement(v.Fragment,null,_e!==!1&&Re,ve&&we);let Pe=null;if(g!==void 0)Pe=dt(g);else if(ce)Pe=dt(v.createElement(V.Z,{spin:!0}));else{const Re=`${Ee}-suffix`;Pe=$e=>{let{open:Ie,showSearch:Xe}=$e;return dt(Ie&&Xe?v.createElement(k.Z,{className:Re}):v.createElement(B.Z,{className:Re}))}}let De=null;O!==void 0?De=O:de?De=v.createElement(R.Z,null):De=null;let Ae=null;return K!==void 0?Ae=K:Ae=v.createElement(b.Z,null),{clearIcon:vt,suffixIcon:Pe,itemIcon:De,removeIcon:Ae}}},59379:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return v}});function v(R,w){return w!==void 0?w:R!==null}},60161:function(_t,Y,_){"use strict";_.d(Y,{BR:function(){return A},ri:function(){return g}});var v=_(12124),R=_.n(v),w=_(45659),b=_(77617),B=_(51059),V=_(1220),k=_(38152),M=function(ce,de){var ve={};for(var Ee in ce)Object.prototype.hasOwnProperty.call(ce,Ee)&&de.indexOf(Ee)<0&&(ve[Ee]=ce[Ee]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Ee=Object.getOwnPropertySymbols(ce);_e{const ve=b.useContext(C),Ee=b.useMemo(()=>{if(!ve)return"";const{compactDirection:_e,isFirstItem:we,isLastItem:ot}=ve,He=_e==="vertical"?"-vertical-":"-";return R()(`${ce}-compact${He}item`,{[`${ce}-compact${He}first-item`]:we,[`${ce}-compact${He}last-item`]:ot,[`${ce}-compact${He}item-rtl`]:de==="rtl"})},[ce,de,ve]);return{compactSize:ve==null?void 0:ve.compactSize,compactDirection:ve==null?void 0:ve.compactDirection,compactItemClassnames:Ee}},A=ce=>{let{children:de}=ce;return b.createElement(C.Provider,{value:null},de)},O=ce=>{var{children:de}=ce,ve=M(ce,["children"]);return b.createElement(C.Provider,{value:ve},de)},K=ce=>{const{getPrefixCls:de,direction:ve}=b.useContext(B.E_),{size:Ee,direction:_e,block:we,prefixCls:ot,className:He,rootClassName:vt,children:dt}=ce,Pe=M(ce,["size","direction","block","prefixCls","className","rootClassName","children"]),De=(0,V.Z)(St=>Ee!=null?Ee:St),Ae=de("space-compact",ot),[Re,$e]=(0,k.Z)(Ae),Ie=R()(Ae,$e,{[`${Ae}-rtl`]:ve==="rtl",[`${Ae}-block`]:we,[`${Ae}-vertical`]:_e==="vertical"},He,vt),Xe=b.useContext(C),ze=(0,w.Z)(dt),Kt=b.useMemo(()=>ze.map((St,nt)=>{const Ct=St&&St.key||`${Ae}-item-${nt}`;return b.createElement(O,{key:Ct,compactSize:De,compactDirection:_e,isFirstItem:nt===0&&(!Xe||(Xe==null?void 0:Xe.isFirstItem)),isLastItem:nt===ze.length-1&&(!Xe||(Xe==null?void 0:Xe.isLastItem))},St)}),[Ee,ze,Xe]);return ze.length===0?null:Re(b.createElement("div",Object.assign({className:Ie},Pe),Kt))};Y.ZP=K},67134:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return Ee}});var v=_(77617),R=_(12124),w=_.n(R),b=_(45659);function B(_e){return["small","middle","large"].includes(_e)}function V(_e){return _e?typeof _e=="number"&&!Number.isNaN(_e):!1}var k=_(51059),M=_(60161);const C=v.createContext({latestIndex:0}),g=C.Provider;var O=_e=>{let{className:we,index:ot,children:He,split:vt,style:dt}=_e;const{latestIndex:Pe}=v.useContext(C);return He==null?null:v.createElement(v.Fragment,null,v.createElement("div",{className:we,style:dt},He),ot{var ot,He;const{getPrefixCls:vt,space:dt,direction:Pe}=v.useContext(k.E_),{size:De=(dt==null?void 0:dt.size)||"small",align:Ae,className:Re,rootClassName:$e,children:Ie,direction:Xe="horizontal",prefixCls:ze,split:Kt,style:St,wrap:nt=!1,classNames:Ct,styles:lt}=_e,Gt=ce(_e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Rt,an]=Array.isArray(De)?De:[De,De],cn=B(an),Cr=B(Rt),ii=V(an),Pi=V(Rt),Ni=(0,b.Z)(Ie,{keepEmpty:!0}),Yi=Ae===void 0&&Xe==="horizontal"?"center":Ae,ti=vt("space",ze),[Ts,Bs]=(0,K.Z)(ti),Ce=w()(ti,dt==null?void 0:dt.className,Bs,`${ti}-${Xe}`,{[`${ti}-rtl`]:Pe==="rtl",[`${ti}-align-${Yi}`]:Yi,[`${ti}-gap-row-${an}`]:cn,[`${ti}-gap-col-${Rt}`]:Cr},Re,$e),Gi=w()(`${ti}-item`,(ot=Ct==null?void 0:Ct.item)!==null&&ot!==void 0?ot:(He=dt==null?void 0:dt.classNames)===null||He===void 0?void 0:He.item);let qi=0;const co=Ni.map((In,et)=>{var Dt,$t;In!=null&&(qi=et);const Dn=In&&In.key||`${Gi}-${et}`;return v.createElement(O,{className:Gi,key:Dn,index:et,split:Kt,style:(Dt=lt==null?void 0:lt.item)!==null&&Dt!==void 0?Dt:($t=dt==null?void 0:dt.styles)===null||$t===void 0?void 0:$t.item},In)}),fi=v.useMemo(()=>({latestIndex:qi}),[qi]);if(Ni.length===0)return null;const Ms={};return nt&&(Ms.flexWrap="wrap"),!Cr&&Pi&&(Ms.columnGap=Rt),!cn&&ii&&(Ms.rowGap=an),Ts(v.createElement("div",Object.assign({ref:we,className:Ce,style:Object.assign(Object.assign(Object.assign({},Ms),dt==null?void 0:dt.style),St)},Gt),v.createElement(g,{value:fi},co)))});ve.Compact=M.ZP;var Ee=ve},38152:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return M}});var v=_(67859),R=_(80172),b=C=>{const{componentCls:g}=C;return{[g]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const B=C=>{const{componentCls:g}=C;return{[g]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${g}-item:empty`]:{display:"none"}}}},V=C=>{const{componentCls:g}=C;return{[g]:{"&-gap-row-small":{rowGap:C.spaceGapSmallSize},"&-gap-row-middle":{rowGap:C.spaceGapMiddleSize},"&-gap-row-large":{rowGap:C.spaceGapLargeSize},"&-gap-col-small":{columnGap:C.spaceGapSmallSize},"&-gap-col-middle":{columnGap:C.spaceGapMiddleSize},"&-gap-col-large":{columnGap:C.spaceGapLargeSize}}}},k=()=>({});var M=(0,v.I$)("Space",C=>{const g=(0,R.TS)(C,{spaceGapSmallSize:C.paddingXS,spaceGapMiddleSize:C.padding,spaceGapLargeSize:C.paddingLG});return[B(g),V(g),b(g)]},()=>({}),{resetStyle:!1})},70206:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return De}});var v=_(77617),R=_(12124),w=_.n(R),b=_(99468);function B(Ae,Re,$e){var Ie=$e||{},Xe=Ie.noTrailing,ze=Xe===void 0?!1:Xe,Kt=Ie.noLeading,St=Kt===void 0?!1:Kt,nt=Ie.debounceMode,Ct=nt===void 0?void 0:nt,lt,Gt=!1,Rt=0;function an(){lt&&clearTimeout(lt)}function cn(ii){var Pi=ii||{},Ni=Pi.upcomingOnly,Yi=Ni===void 0?!1:Ni;an(),Gt=!Yi}function Cr(){for(var ii=arguments.length,Pi=new Array(ii),Ni=0;NiAe?St?(Rt=Date.now(),ze||(lt=setTimeout(Ct?Bs:Ts,Ae))):Ts():ze!==!0&&(lt=setTimeout(Ct?Bs:Ts,Ct===void 0?Ae-ti:Ae))}return Cr.cancel=cn,Cr}function V(Ae,Re,$e){var Ie=$e||{},Xe=Ie.atBegin,ze=Xe===void 0?!1:Xe;return B(Ae,Re,{debounceMode:ze!==!1})}var k=_(29341),M=_(51059),C=_(36646),g=_(35772),A=_(67859),O=_(80172);const K=new C.E4("antSpinMove",{to:{opacity:1}}),ce=new C.E4("antRotate",{to:{transform:"rotate(405deg)"}}),de=Ae=>{const{componentCls:Re,calc:$e}=Ae;return{[`${Re}`]:Object.assign(Object.assign({},(0,g.Wf)(Ae)),{position:"absolute",display:"none",color:Ae.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${Ae.motionDurationSlow} ${Ae.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${Re}-text`]:{fontSize:Ae.fontSize,paddingTop:$e($e(Ae.dotSize).sub(Ae.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:Ae.colorBgMask,zIndex:Ae.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",pointerEvents:"none",opacity:0,visibility:"hidden",transition:`all ${Ae.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${Re}-dot ${Re}-dot-item`]:{backgroundColor:Ae.colorWhite},[`${Re}-text`]:{color:Ae.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${Re}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:Ae.contentHeight,[`${Re}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:$e(Ae.dotSize).mul(-1).div(2).equal()},[`${Re}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${Ae.colorBgContainer}`},[`&${Re}-show-text ${Re}-dot`]:{marginTop:$e(Ae.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${Re}-dot`]:{margin:$e(Ae.dotSizeSM).mul(-1).div(2).equal()},[`${Re}-text`]:{paddingTop:$e($e(Ae.dotSizeSM).sub(Ae.fontSize)).div(2).add(2).equal()},[`&${Re}-show-text ${Re}-dot`]:{marginTop:$e(Ae.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${Re}-dot`]:{margin:$e(Ae.dotSizeLG).mul(-1).div(2).equal()},[`${Re}-text`]:{paddingTop:$e($e(Ae.dotSizeLG).sub(Ae.fontSize)).div(2).add(2).equal()},[`&${Re}-show-text ${Re}-dot`]:{marginTop:$e(Ae.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${Re}-container`]:{position:"relative",transition:`opacity ${Ae.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:Ae.colorBgContainer,opacity:0,transition:`all ${Ae.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${Re}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:Ae.spinDotDefault},[`${Re}-dot`]:{position:"relative",display:"inline-block",fontSize:Ae.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:$e(Ae.dotSize).sub($e(Ae.marginXXS).div(2)).div(2).equal(),height:$e(Ae.dotSize).sub($e(Ae.marginXXS).div(2)).div(2).equal(),backgroundColor:Ae.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:K,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:ce,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${Re}-dot`]:{fontSize:Ae.dotSizeSM,i:{width:$e($e(Ae.dotSizeSM).sub($e(Ae.marginXXS).div(2))).div(2).equal(),height:$e($e(Ae.dotSizeSM).sub($e(Ae.marginXXS).div(2))).div(2).equal()}},[`&-lg ${Re}-dot`]:{fontSize:Ae.dotSizeLG,i:{width:$e($e(Ae.dotSizeLG).sub(Ae.marginXXS)).div(2).equal(),height:$e($e(Ae.dotSizeLG).sub(Ae.marginXXS)).div(2).equal()}},[`&${Re}-show-text ${Re}-text`]:{display:"block"}})}},ve=Ae=>{const{controlHeightLG:Re,controlHeight:$e}=Ae;return{contentHeight:400,dotSize:Re/2,dotSizeSM:Re*.35,dotSizeLG:$e}};var Ee=(0,A.I$)("Spin",Ae=>{const Re=(0,O.TS)(Ae,{spinDotDefault:Ae.colorTextDescription});return[de(Re)]},ve),_e=function(Ae,Re){var $e={};for(var Ie in Ae)Object.prototype.hasOwnProperty.call(Ae,Ie)&&Re.indexOf(Ie)<0&&($e[Ie]=Ae[Ie]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Ie=Object.getOwnPropertySymbols(Ae);Xe{const{spinPrefixCls:Re,spinning:$e=!0,delay:Ie=0,className:Xe,rootClassName:ze,size:Kt="default",tip:St,wrapperClassName:nt,style:Ct,children:lt,hashId:Gt,fullscreen:Rt}=Ae,an=_e(Ae,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId","fullscreen"]),[cn,Cr]=v.useState(()=>$e&&!vt($e,Ie));v.useEffect(()=>{if($e){const Gi=V(Ie,()=>{Cr(!0)});return Gi(),()=>{var qi;(qi=Gi==null?void 0:Gi.cancel)===null||qi===void 0||qi.call(Gi)}}Cr(!1)},[Ie,$e]);const ii=v.useMemo(()=>typeof lt!="undefined"&&!Rt,[lt,Rt]),{direction:Pi,spin:Ni}=v.useContext(M.E_),Yi=w()(Re,Ni==null?void 0:Ni.className,{[`${Re}-sm`]:Kt==="small",[`${Re}-lg`]:Kt==="large",[`${Re}-spinning`]:cn,[`${Re}-show-text`]:!!St,[`${Re}-fullscreen`]:Rt,[`${Re}-fullscreen-show`]:Rt&&cn,[`${Re}-rtl`]:Pi==="rtl"},Xe,ze,Gt),ti=w()(`${Re}-container`,{[`${Re}-blur`]:cn}),Ts=(0,b.Z)(an,["indicator","prefixCls"]),Bs=Object.assign(Object.assign({},Ni==null?void 0:Ni.style),Ct),Ce=v.createElement("div",Object.assign({},Ts,{style:Bs,className:Yi,"aria-live":"polite","aria-busy":cn}),He(Re,Ae),St&&(ii||Rt)?v.createElement("div",{className:`${Re}-text`},St):null);return ii?v.createElement("div",Object.assign({},Ts,{className:w()(`${Re}-nested-loading`,nt,Gt)}),cn&&v.createElement("div",{key:"loading"},Ce),v.createElement("div",{className:ti,key:"container"},lt)):Ce},Pe=Ae=>{const{prefixCls:Re}=Ae,{getPrefixCls:$e}=v.useContext(M.E_),Ie=$e("spin",Re),[Xe,ze]=Ee(Ie),Kt=Object.assign(Object.assign({},Ae),{spinPrefixCls:Ie,hashId:ze});return Xe(v.createElement(dt,Object.assign({},Kt)))};Pe.setDefaultIndicator=Ae=>{ot=Ae};var De=Pe},62290:function(_t,Y,_){"use strict";_.d(Y,{c:function(){return w}});function v(b,B,V){const{focusElCls:k,focus:M,borderElCls:C}=V,g=C?"> *":"",A=["hover",M?"focus":null,"active"].filter(Boolean).map(O=>`&:${O} ${g}`).join(",");return{[`&-item:not(${B}-last-item)`]:{marginInlineEnd:b.calc(b.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[A]:{zIndex:2}},k?{[`&${k}`]:{zIndex:2}}:{}),{[`&[disabled] ${g}`]:{zIndex:0}})}}function R(b,B,V){const{borderElCls:k}=V,M=k?`> ${k}`:"";return{[`&-item:not(${B}-first-item):not(${B}-last-item) ${M}`]:{borderRadius:0},[`&-item:not(${B}-last-item)${B}-first-item`]:{[`& ${M}, &${b}-sm ${M}, &${b}-lg ${M}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${B}-first-item)${B}-last-item`]:{[`& ${M}, &${b}-sm ${M}, &${b}-lg ${M}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function w(b){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:V}=b,k=`${V}-compact`;return{[k]:Object.assign(Object.assign({},v(b,k,B)),R(V,k,B))}}},35772:function(_t,Y,_){"use strict";_.d(Y,{Lx:function(){return V},Qy:function(){return C},Ro:function(){return b},Wf:function(){return w},dF:function(){return B},du:function(){return k},oN:function(){return M},vS:function(){return R}});var v=_(36646);const R={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},w=function(g){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:g.colorText,fontSize:g.fontSize,lineHeight:g.lineHeight,listStyle:"none",fontFamily:A?"inherit":g.fontFamily}},b=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),B=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),V=g=>({a:{color:g.colorLink,textDecoration:g.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${g.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:g.colorLinkHover},"&:active":{color:g.colorLinkActive},[`&:active, - &:hover`]:{textDecoration:g.linkHoverDecoration,outline:0},"&:focus":{textDecoration:g.linkFocusDecoration,outline:0},"&[disabled]":{color:g.colorTextDisabled,cursor:"not-allowed"}}}),k=(g,A)=>{const{fontFamily:O,fontSize:K}=g,ce=`[class^="${A}"], [class*=" ${A}"]`;return{[ce]:{fontFamily:O,fontSize:K,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[ce]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},M=g=>({outline:`${(0,v.bf)(g.lineWidthFocus)} solid ${g.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),C=g=>({"&:focus-visible":Object.assign({},M(g))})},10554:function(_t,Y){"use strict";const _=v=>({[v.componentCls]:{[`${v.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${v.motionDurationMid} ${v.motionEaseInOut}, + `]:{height:Xe,fontFamily:De.fontFamily,lineHeight:(0,v.bf)(Xe),transition:`all ${De.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Me}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:De.inputPaddingHorizontalBase,insetInlineEnd:De.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${De.motionDurationSlow}`}}}}var ae=De=>{const{componentCls:Te}=De,Me=(0,b.TS)(De,{selectHeight:De.controlHeightSM,multipleSelectItemHeight:De.controlHeightXS,borderRadius:De.borderRadiusSM,borderRadiusSM:De.borderRadiusXS}),Ue=(0,b.TS)(De,{fontSize:De.fontSizeLG,selectHeight:De.controlHeightLG,multipleSelectItemHeight:De.multipleItemHeightLG,borderRadius:De.borderRadiusLG,borderRadiusSM:De.borderRadius});return[K(De),K(Me,"sm"),{[`${Te}-multiple${Te}-sm`]:{[`${Te}-selection-placeholder`]:{insetInline:De.calc(De.controlPaddingHorizontalSM).sub(De.lineWidth).equal()},[`${Te}-selection-search`]:{marginInlineStart:2}}},K(Ue,"lg")]};function fe(De,Te){const{componentCls:Me,inputPaddingHorizontalBase:Ue,borderRadius:Pe}=De,Xe=De.calc(De.controlHeight).sub(De.calc(De.lineWidth).mul(2)).equal(),Be=Te?`${Me}-${Te}`:"";return{[`${Me}-single${Be}`]:{fontSize:De.fontSize,height:De.controlHeight,[`${Me}-selector`]:Object.assign(Object.assign({},(0,P.Wf)(De,!0)),{display:"flex",borderRadius:Pe,[`${Me}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Ue,insetInlineEnd:Ue,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + ${Me}-selection-item, + ${Me}-selection-placeholder + `]:{padding:0,lineHeight:(0,v.bf)(Xe),transition:`all ${De.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Me}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Me}-selection-item:empty:after`,`${Me}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${Me}-show-arrow ${Me}-selection-item, + &${Me}-show-arrow ${Me}-selection-placeholder + `]:{paddingInlineEnd:De.showArrowPaddingInlineEnd},[`&${Me}-open ${Me}-selection-item`]:{color:De.colorTextPlaceholder},[`&:not(${Me}-customize-input)`]:{[`${Me}-selector`]:{width:"100%",height:"100%",padding:`0 ${(0,v.bf)(Ue)}`,[`${Me}-selection-search-input`]:{height:Xe},"&:after":{lineHeight:(0,v.bf)(Xe)}}},[`&${Me}-customize-input`]:{[`${Me}-selector`]:{"&:after":{display:"none"},[`${Me}-selection-search`]:{position:"static",width:"100%"},[`${Me}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,v.bf)(Ue)}`,"&:after":{display:"none"}}}}}}}function xe(De){const{componentCls:Te}=De,Me=De.calc(De.controlPaddingHorizontalSM).sub(De.lineWidth).equal();return[fe(De),fe((0,b.TS)(De,{controlHeight:De.controlHeightSM,borderRadius:De.borderRadiusSM}),"sm"),{[`${Te}-single${Te}-sm`]:{[`&:not(${Te}-customize-input)`]:{[`${Te}-selection-search`]:{insetInlineStart:Me,insetInlineEnd:Me},[`${Te}-selector`]:{padding:`0 ${(0,v.bf)(Me)}`},[`&${Te}-show-arrow ${Te}-selection-search`]:{insetInlineEnd:De.calc(Me).add(De.calc(De.fontSize).mul(1.5)).equal()},[` + &${Te}-show-arrow ${Te}-selection-item, + &${Te}-show-arrow ${Te}-selection-placeholder + `]:{paddingInlineEnd:De.calc(De.fontSize).mul(1.5).equal()}}}},fe((0,b.TS)(De,{controlHeight:De.singleItemHeightLG,fontSize:De.fontSizeLG,borderRadius:De.borderRadiusLG}),"lg")]}const ye=De=>{const{componentCls:Te,selectorBg:Me}=De;return{position:"relative",backgroundColor:Me,border:`${(0,v.bf)(De.lineWidth)} ${De.lineType} ${De.colorBorder}`,transition:`all ${De.motionDurationMid} ${De.motionEaseInOut}`,input:{cursor:"pointer"},[`${Te}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Te}-disabled&`]:{color:De.colorTextDisabled,background:De.colorBgContainerDisabled,cursor:"not-allowed",[`${Te}-multiple&`]:{background:De.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},be=function(De,Te){let Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Ue,borderHoverColor:Pe,antCls:Xe,borderActiveColor:Be,outlineColor:Xt,controlOutlineWidth:St}=Te,nt=Me?{[`${Ue}-selector`]:{borderColor:Be}}:{};return{[De]:{[`&:not(${Ue}-disabled):not(${Ue}-customize-input):not(${Xe}-pagination-size-changer)`]:Object.assign(Object.assign({},nt),{[`&:hover ${Ue}-selector`]:{borderColor:Pe},[`${Ue}-focused& ${Ue}-selector`]:{borderColor:Be,boxShadow:`0 0 0 ${(0,v.bf)(St)} ${Xt}`,outline:0}})}}},Qe=De=>{const{componentCls:Te}=De;return{[`${Te}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Ve=De=>{const{antCls:Te,componentCls:Me,inputPaddingHorizontalBase:Ue,iconCls:Pe}=De;return{[Me]:Object.assign(Object.assign({},(0,P.Wf)(De)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Me}-customize-input) ${Me}-selector`]:Object.assign(Object.assign({},ye(De)),Qe(De)),[`${Me}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},P.vS),{[`> ${Te}-typography`]:{display:"inline"}}),[`${Me}-selection-placeholder`]:Object.assign(Object.assign({},P.vS),{flex:1,color:De.colorTextPlaceholder,pointerEvents:"none"}),[`${Me}-arrow`]:Object.assign(Object.assign({},(0,P.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ue,height:De.fontSizeIcon,marginTop:De.calc(De.fontSizeIcon).mul(-1).div(2).equal(),color:De.colorTextQuaternary,fontSize:De.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Pe]:{verticalAlign:"top",transition:`transform ${De.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Me}-suffix)`]:{pointerEvents:"auto"}},[`${Me}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Me}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ue,zIndex:1,display:"inline-block",width:De.fontSizeIcon,height:De.fontSizeIcon,marginTop:De.calc(De.fontSizeIcon).mul(-1).div(2).equal(),color:De.colorTextQuaternary,fontSize:De.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:De.clearBg,cursor:"pointer",opacity:0,transition:`color ${De.motionDurationMid} ease, opacity ${De.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:De.colorTextTertiary}},"&:hover":{[`${Me}-clear`]:{opacity:1}}}),[`${Me}-has-feedback`]:{[`${Me}-clear`]:{insetInlineEnd:De.calc(Ue).add(De.fontSize).add(De.paddingXS).equal()}}}},pt=De=>{const{componentCls:Te}=De;return[{[Te]:{[`&-borderless ${Te}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Te}-in-form-item`]:{width:"100%"}}},Ve(De),xe(De),ae(De),g(De),{[`${Te}-rtl`]:{direction:"rtl"}},be(Te,(0,b.TS)(De,{borderHoverColor:De.colorPrimaryHover,borderActiveColor:De.colorPrimary,outlineColor:De.controlOutline})),be(`${Te}-status-error`,(0,b.TS)(De,{borderHoverColor:De.colorErrorHover,borderActiveColor:De.colorError,outlineColor:De.colorErrorOutline}),!0),be(`${Te}-status-warning`,(0,b.TS)(De,{borderHoverColor:De.colorWarningHover,borderActiveColor:De.colorWarning,outlineColor:De.colorWarningOutline}),!0),(0,w.c)(De,{borderElCls:`${Te}-selector`,focusElCls:`${Te}-focused`})]},st=De=>{const{fontSize:Te,lineHeight:Me,controlHeight:Ue,controlPaddingHorizontal:Pe,zIndexPopupBase:Xe,colorText:Be,fontWeightStrong:Xt,controlItemBgActive:St,controlItemBgHover:nt,colorBgContainer:wt,colorFillSecondary:lt,controlHeightLG:Kt,controlHeightSM:Mt,colorBgContainerDisabled:hn,colorTextDisabled:un}=De;return{zIndexPopup:Xe+50,optionSelectedColor:Be,optionSelectedFontWeight:Xt,optionSelectedBg:St,optionActiveBg:nt,optionPadding:`${(Ue-Te*Me)/2}px ${Pe}px`,optionFontSize:Te,optionLineHeight:Me,optionHeight:Ue,selectorBg:wt,clearBg:wt,singleItemHeightLG:Kt,multipleItemBg:lt,multipleItemBorderColor:"transparent",multipleItemHeight:Mt,multipleItemHeightLG:Ue,multipleSelectorBgDisabled:hn,multipleItemColorDisabled:un,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(De.fontSize*1.25)}};var Ae=(0,B.I$)("Select",(De,Te)=>{let{rootPrefixCls:Me}=Te;const Ue=(0,b.TS)(De,{rootPrefixCls:Me,inputPaddingHorizontalBase:De.calc(De.paddingSM).sub(1).equal(),multipleSelectItemHeight:De.multipleItemHeight,selectHeight:De.controlHeight});return[pt(Ue)]},st,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},13458:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return P}});const v=w=>{const B={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:w==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},B),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},B),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},B),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},B),{points:["br","tr"],offset:[0,-4]})}};function P(w,b){return w||v(b)}},43277:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return R}});var v=y(67294),P=y(35918),w=y(41322),b=y(62208),B=y(58964),V=y(22508),k=y(13805);function R(C){let{suffixIcon:g,clearIcon:A,menuItemSelectedIcon:O,removeIcon:K,loading:he,multiple:ae,hasFeedback:fe,prefixCls:xe,showSuffixIcon:ye,feedbackIcon:be,showArrow:Qe,componentName:Ve}=C;const pt=A!=null?A:v.createElement(w.Z,null),st=Me=>g===null&&!fe&&!Qe?null:v.createElement(v.Fragment,null,ye!==!1&&Me,fe&&be);let Ae=null;if(g!==void 0)Ae=st(g);else if(he)Ae=st(v.createElement(V.Z,{spin:!0}));else{const Me=`${xe}-suffix`;Ae=Ue=>{let{open:Pe,showSearch:Xe}=Ue;return st(Pe&&Xe?v.createElement(k.Z,{className:Me}):v.createElement(B.Z,{className:Me}))}}let De=null;O!==void 0?De=O:ae?De=v.createElement(P.Z,null):De=null;let Te=null;return K!==void 0?Te=K:Te=v.createElement(b.Z,null),{clearIcon:pt,suffixIcon:Ae,itemIcon:De,removeIcon:Te}}},78642:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return v}});function v(P,w){return w!==void 0?w:P!==null}},4173:function(yt,Y,y){"use strict";y.d(Y,{BR:function(){return A},ri:function(){return g}});var v=y(94184),P=y.n(v),w=y(50344),b=y(67294),B=y(53124),V=y(98675),k=y(51916),R=function(he,ae){var fe={};for(var xe in he)Object.prototype.hasOwnProperty.call(he,xe)&&ae.indexOf(xe)<0&&(fe[xe]=he[xe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,xe=Object.getOwnPropertySymbols(he);ye{const fe=b.useContext(C),xe=b.useMemo(()=>{if(!fe)return"";const{compactDirection:ye,isFirstItem:be,isLastItem:Qe}=fe,Ve=ye==="vertical"?"-vertical-":"-";return P()(`${he}-compact${Ve}item`,{[`${he}-compact${Ve}first-item`]:be,[`${he}-compact${Ve}last-item`]:Qe,[`${he}-compact${Ve}item-rtl`]:ae==="rtl"})},[he,ae,fe]);return{compactSize:fe==null?void 0:fe.compactSize,compactDirection:fe==null?void 0:fe.compactDirection,compactItemClassnames:xe}},A=he=>{let{children:ae}=he;return b.createElement(C.Provider,{value:null},ae)},O=he=>{var{children:ae}=he,fe=R(he,["children"]);return b.createElement(C.Provider,{value:fe},ae)},K=he=>{const{getPrefixCls:ae,direction:fe}=b.useContext(B.E_),{size:xe,direction:ye,block:be,prefixCls:Qe,className:Ve,rootClassName:pt,children:st}=he,Ae=R(he,["size","direction","block","prefixCls","className","rootClassName","children"]),De=(0,V.Z)(St=>xe!=null?xe:St),Te=ae("space-compact",Qe),[Me,Ue]=(0,k.Z)(Te),Pe=P()(Te,Ue,{[`${Te}-rtl`]:fe==="rtl",[`${Te}-block`]:be,[`${Te}-vertical`]:ye==="vertical"},Ve,pt),Xe=b.useContext(C),Be=(0,w.Z)(st),Xt=b.useMemo(()=>Be.map((St,nt)=>{const wt=St&&St.key||`${Te}-item-${nt}`;return b.createElement(O,{key:wt,compactSize:De,compactDirection:ye,isFirstItem:nt===0&&(!Xe||(Xe==null?void 0:Xe.isFirstItem)),isLastItem:nt===Be.length-1&&(!Xe||(Xe==null?void 0:Xe.isLastItem))},St)}),[xe,Be,Xe]);return Be.length===0?null:Me(b.createElement("div",Object.assign({className:Pe},Ae),Xt))};Y.ZP=K},78957:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return xe}});var v=y(67294),P=y(94184),w=y.n(P),b=y(50344);function B(ye){return["small","middle","large"].includes(ye)}function V(ye){return ye?typeof ye=="number"&&!Number.isNaN(ye):!1}var k=y(53124),R=y(4173);const C=v.createContext({latestIndex:0}),g=C.Provider;var O=ye=>{let{className:be,index:Qe,children:Ve,split:pt,style:st}=ye;const{latestIndex:Ae}=v.useContext(C);return Ve==null?null:v.createElement(v.Fragment,null,v.createElement("div",{className:be,style:st},Ve),Qe{var Qe,Ve;const{getPrefixCls:pt,space:st,direction:Ae}=v.useContext(k.E_),{size:De=(st==null?void 0:st.size)||"small",align:Te,className:Me,rootClassName:Ue,children:Pe,direction:Xe="horizontal",prefixCls:Be,split:Xt,style:St,wrap:nt=!1,classNames:wt,styles:lt}=ye,Kt=he(ye,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Mt,hn]=Array.isArray(De)?De:[De,De],un=B(hn),Sr=B(Mt),ii=V(hn),Ii=V(Mt),Ni=(0,b.Z)(Pe,{keepEmpty:!0}),eo=Te===void 0&&Xe==="horizontal"?"center":Te,ti=pt("space",Be),[Is,Ns]=(0,K.Z)(ti),Se=w()(ti,st==null?void 0:st.className,Ns,`${ti}-${Xe}`,{[`${ti}-rtl`]:Ae==="rtl",[`${ti}-align-${eo}`]:eo,[`${ti}-gap-row-${hn}`]:un,[`${ti}-gap-col-${Mt}`]:Sr},Me,Ue),Xi=w()(`${ti}-item`,(Qe=wt==null?void 0:wt.item)!==null&&Qe!==void 0?Qe:(Ve=st==null?void 0:st.classNames)===null||Ve===void 0?void 0:Ve.item);let Yi=0;const fo=Ni.map((Ln,it)=>{var Ot,Ht;Ln!=null&&(Yi=it);const Pn=Ln&&Ln.key||`${Xi}-${it}`;return v.createElement(O,{className:Xi,key:Pn,index:it,split:Xt,style:(Ot=lt==null?void 0:lt.item)!==null&&Ot!==void 0?Ot:(Ht=st==null?void 0:st.styles)===null||Ht===void 0?void 0:Ht.item},Ln)}),di=v.useMemo(()=>({latestIndex:Yi}),[Yi]);if(Ni.length===0)return null;const Fs={};return nt&&(Fs.flexWrap="wrap"),!Sr&&Ii&&(Fs.columnGap=Mt),!un&&ii&&(Fs.rowGap=hn),Is(v.createElement("div",Object.assign({ref:be,className:Se,style:Object.assign(Object.assign(Object.assign({},Fs),st==null?void 0:st.style),St)},Kt),v.createElement(g,{value:di},fo)))});fe.Compact=R.ZP;var xe=fe},51916:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return R}});var v=y(91945),P=y(45503),b=C=>{const{componentCls:g}=C;return{[g]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const B=C=>{const{componentCls:g}=C;return{[g]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${g}-item:empty`]:{display:"none"}}}},V=C=>{const{componentCls:g}=C;return{[g]:{"&-gap-row-small":{rowGap:C.spaceGapSmallSize},"&-gap-row-middle":{rowGap:C.spaceGapMiddleSize},"&-gap-row-large":{rowGap:C.spaceGapLargeSize},"&-gap-col-small":{columnGap:C.spaceGapSmallSize},"&-gap-col-middle":{columnGap:C.spaceGapMiddleSize},"&-gap-col-large":{columnGap:C.spaceGapLargeSize}}}},k=()=>({});var R=(0,v.I$)("Space",C=>{const g=(0,P.TS)(C,{spaceGapSmallSize:C.paddingXS,spaceGapMiddleSize:C.padding,spaceGapLargeSize:C.paddingLG});return[B(g),V(g),b(g)]},()=>({}),{resetStyle:!1})},75081:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return De}});var v=y(67294),P=y(94184),w=y.n(P),b=y(98423);function B(Te,Me,Ue){var Pe=Ue||{},Xe=Pe.noTrailing,Be=Xe===void 0?!1:Xe,Xt=Pe.noLeading,St=Xt===void 0?!1:Xt,nt=Pe.debounceMode,wt=nt===void 0?void 0:nt,lt,Kt=!1,Mt=0;function hn(){lt&&clearTimeout(lt)}function un(ii){var Ii=ii||{},Ni=Ii.upcomingOnly,eo=Ni===void 0?!1:Ni;hn(),Kt=!eo}function Sr(){for(var ii=arguments.length,Ii=new Array(ii),Ni=0;NiTe?St?(Mt=Date.now(),Be||(lt=setTimeout(wt?Ns:Is,Te))):Is():Be!==!0&&(lt=setTimeout(wt?Ns:Is,wt===void 0?Te-ti:Te))}return Sr.cancel=un,Sr}function V(Te,Me,Ue){var Pe=Ue||{},Xe=Pe.atBegin,Be=Xe===void 0?!1:Xe;return B(Te,Me,{debounceMode:Be!==!1})}var k=y(96159),R=y(53124),C=y(43109),g=y(14747),A=y(91945),O=y(45503);const K=new C.E4("antSpinMove",{to:{opacity:1}}),he=new C.E4("antRotate",{to:{transform:"rotate(405deg)"}}),ae=Te=>{const{componentCls:Me,calc:Ue}=Te;return{[`${Me}`]:Object.assign(Object.assign({},(0,g.Wf)(Te)),{position:"absolute",display:"none",color:Te.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${Te.motionDurationSlow} ${Te.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${Me}-text`]:{fontSize:Te.fontSize,paddingTop:Ue(Ue(Te.dotSize).sub(Te.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:Te.colorBgMask,zIndex:Te.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${Te.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${Me}-dot ${Me}-dot-item`]:{backgroundColor:Te.colorWhite},[`${Me}-text`]:{color:Te.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${Me}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:Te.contentHeight,[`${Me}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:Ue(Te.dotSize).mul(-1).div(2).equal()},[`${Me}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${Te.colorBgContainer}`},[`&${Me}-show-text ${Me}-dot`]:{marginTop:Ue(Te.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${Me}-dot`]:{margin:Ue(Te.dotSizeSM).mul(-1).div(2).equal()},[`${Me}-text`]:{paddingTop:Ue(Ue(Te.dotSizeSM).sub(Te.fontSize)).div(2).add(2).equal()},[`&${Me}-show-text ${Me}-dot`]:{marginTop:Ue(Te.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${Me}-dot`]:{margin:Ue(Te.dotSizeLG).mul(-1).div(2).equal()},[`${Me}-text`]:{paddingTop:Ue(Ue(Te.dotSizeLG).sub(Te.fontSize)).div(2).add(2).equal()},[`&${Me}-show-text ${Me}-dot`]:{marginTop:Ue(Te.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${Me}-container`]:{position:"relative",transition:`opacity ${Te.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:Te.colorBgContainer,opacity:0,transition:`all ${Te.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${Me}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:Te.spinDotDefault},[`${Me}-dot`]:{position:"relative",display:"inline-block",fontSize:Te.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:Ue(Te.dotSize).sub(Ue(Te.marginXXS).div(2)).div(2).equal(),height:Ue(Te.dotSize).sub(Ue(Te.marginXXS).div(2)).div(2).equal(),backgroundColor:Te.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:K,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:he,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${Me}-dot`]:{fontSize:Te.dotSizeSM,i:{width:Ue(Ue(Te.dotSizeSM).sub(Ue(Te.marginXXS).div(2))).div(2).equal(),height:Ue(Ue(Te.dotSizeSM).sub(Ue(Te.marginXXS).div(2))).div(2).equal()}},[`&-lg ${Me}-dot`]:{fontSize:Te.dotSizeLG,i:{width:Ue(Ue(Te.dotSizeLG).sub(Te.marginXXS)).div(2).equal(),height:Ue(Ue(Te.dotSizeLG).sub(Te.marginXXS)).div(2).equal()}},[`&${Me}-show-text ${Me}-text`]:{display:"block"}})}},fe=Te=>{const{controlHeightLG:Me,controlHeight:Ue}=Te;return{contentHeight:400,dotSize:Me/2,dotSizeSM:Me*.35,dotSizeLG:Ue}};var xe=(0,A.I$)("Spin",Te=>{const Me=(0,O.TS)(Te,{spinDotDefault:Te.colorTextDescription});return[ae(Me)]},fe),ye=function(Te,Me){var Ue={};for(var Pe in Te)Object.prototype.hasOwnProperty.call(Te,Pe)&&Me.indexOf(Pe)<0&&(Ue[Pe]=Te[Pe]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Pe=Object.getOwnPropertySymbols(Te);Xe{const{spinPrefixCls:Me,spinning:Ue=!0,delay:Pe=0,className:Xe,rootClassName:Be,size:Xt="default",tip:St,wrapperClassName:nt,style:wt,children:lt,hashId:Kt,fullscreen:Mt}=Te,hn=ye(Te,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId","fullscreen"]),[un,Sr]=v.useState(()=>Ue&&!pt(Ue,Pe));v.useEffect(()=>{if(Ue){const Xi=V(Pe,()=>{Sr(!0)});return Xi(),()=>{var Yi;(Yi=Xi==null?void 0:Xi.cancel)===null||Yi===void 0||Yi.call(Xi)}}Sr(!1)},[Pe,Ue]);const ii=v.useMemo(()=>typeof lt!="undefined"&&!Mt,[lt,Mt]),{direction:Ii,spin:Ni}=v.useContext(R.E_),eo=w()(Me,Ni==null?void 0:Ni.className,{[`${Me}-sm`]:Xt==="small",[`${Me}-lg`]:Xt==="large",[`${Me}-spinning`]:un,[`${Me}-show-text`]:!!St,[`${Me}-fullscreen`]:Mt,[`${Me}-fullscreen-show`]:Mt&&un,[`${Me}-rtl`]:Ii==="rtl"},Xe,Be,Kt),ti=w()(`${Me}-container`,{[`${Me}-blur`]:un}),Is=(0,b.Z)(hn,["indicator","prefixCls"]),Ns=Object.assign(Object.assign({},Ni==null?void 0:Ni.style),wt),Se=v.createElement("div",Object.assign({},Is,{style:Ns,className:eo,"aria-live":"polite","aria-busy":un}),Ve(Me,Te),St&&(ii||Mt)?v.createElement("div",{className:`${Me}-text`},St):null);return ii?v.createElement("div",Object.assign({},Is,{className:w()(`${Me}-nested-loading`,nt,Kt)}),un&&v.createElement("div",{key:"loading"},Se),v.createElement("div",{className:ti,key:"container"},lt)):Se},Ae=Te=>{const{prefixCls:Me}=Te,{getPrefixCls:Ue}=v.useContext(R.E_),Pe=Ue("spin",Me),[Xe,Be]=xe(Pe),Xt=Object.assign(Object.assign({},Te),{spinPrefixCls:Pe,hashId:Be});return Xe(v.createElement(st,Object.assign({},Xt)))};Ae.setDefaultIndicator=Te=>{Qe=Te};var De=Ae},80110:function(yt,Y,y){"use strict";y.d(Y,{c:function(){return w}});function v(b,B,V){const{focusElCls:k,focus:R,borderElCls:C}=V,g=C?"> *":"",A=["hover",R?"focus":null,"active"].filter(Boolean).map(O=>`&:${O} ${g}`).join(",");return{[`&-item:not(${B}-last-item)`]:{marginInlineEnd:b.calc(b.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[A]:{zIndex:2}},k?{[`&${k}`]:{zIndex:2}}:{}),{[`&[disabled] ${g}`]:{zIndex:0}})}}function P(b,B,V){const{borderElCls:k}=V,R=k?`> ${k}`:"";return{[`&-item:not(${B}-first-item):not(${B}-last-item) ${R}`]:{borderRadius:0},[`&-item:not(${B}-last-item)${B}-first-item`]:{[`& ${R}, &${b}-sm ${R}, &${b}-lg ${R}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${B}-first-item)${B}-last-item`]:{[`& ${R}, &${b}-sm ${R}, &${b}-lg ${R}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function w(b){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:V}=b,k=`${V}-compact`;return{[k]:Object.assign(Object.assign({},v(b,k,B)),P(V,k,B))}}},14747:function(yt,Y,y){"use strict";y.d(Y,{Lx:function(){return V},Qy:function(){return C},Ro:function(){return b},Wf:function(){return w},dF:function(){return B},du:function(){return k},oN:function(){return R},vS:function(){return P}});var v=y(43109);const P={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},w=function(g){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:g.colorText,fontSize:g.fontSize,lineHeight:g.lineHeight,listStyle:"none",fontFamily:A?"inherit":g.fontFamily}},b=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),B=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),V=g=>({a:{color:g.colorLink,textDecoration:g.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${g.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:g.colorLinkHover},"&:active":{color:g.colorLinkActive},[`&:active, + &:hover`]:{textDecoration:g.linkHoverDecoration,outline:0},"&:focus":{textDecoration:g.linkFocusDecoration,outline:0},"&[disabled]":{color:g.colorTextDisabled,cursor:"not-allowed"}}}),k=(g,A)=>{const{fontFamily:O,fontSize:K}=g,he=`[class^="${A}"], [class*=" ${A}"]`;return{[he]:{fontFamily:O,fontSize:K,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[he]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},R=g=>({outline:`${(0,v.bf)(g.lineWidthFocus)} solid ${g.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),C=g=>({"&:focus-visible":Object.assign({},R(g))})},33507:function(yt,Y){"use strict";const y=v=>({[v.componentCls]:{[`${v.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${v.motionDurationMid} ${v.motionEaseInOut}, opacity ${v.motionDurationMid} ${v.motionEaseInOut} !important`}},[`${v.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${v.motionDurationMid} ${v.motionEaseInOut}, - opacity ${v.motionDurationMid} ${v.motionEaseInOut} !important`}}});Y.Z=_},45061:function(_t,Y,_){"use strict";_.d(Y,{J$:function(){return B}});var v=_(36646),R=_(84068);const w=new v.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),b=new v.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),B=function(V){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:M}=V,C=`${M}-fade`,g=k?"&":"";return[(0,R.R)(C,w,b,V.motionDurationMid,k),{[` + opacity ${v.motionDurationMid} ${v.motionEaseInOut} !important`}}});Y.Z=y},16932:function(yt,Y,y){"use strict";y.d(Y,{J$:function(){return B}});var v=y(43109),P=y(93590);const w=new v.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),b=new v.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),B=function(V){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:R}=V,C=`${R}-fade`,g=k?"&":"";return[(0,P.R)(C,w,b,V.motionDurationMid,k),{[` ${g}${C}-enter, ${g}${C}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${g}${C}-leave`]:{animationTimingFunction:"linear"}}]}},84068:function(_t,Y,_){"use strict";_.d(Y,{R:function(){return w}});const v=b=>({animationDuration:b,animationFillMode:"both"}),R=b=>({animationDuration:b,animationFillMode:"both"}),w=function(b,B,V,k){const C=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + `]:{opacity:0,animationTimingFunction:"linear"},[`${g}${C}-leave`]:{animationTimingFunction:"linear"}}]}},93590:function(yt,Y,y){"use strict";y.d(Y,{R:function(){return w}});const v=b=>({animationDuration:b,animationFillMode:"both"}),P=b=>({animationDuration:b,animationFillMode:"both"}),w=function(b,B,V,k){const C=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${C}${b}-enter, ${C}${b}-appear - `]:Object.assign(Object.assign({},v(k)),{animationPlayState:"paused"}),[`${C}${b}-leave`]:Object.assign(Object.assign({},R(k)),{animationPlayState:"paused"}),[` + `]:Object.assign(Object.assign({},v(k)),{animationPlayState:"paused"}),[`${C}${b}-leave`]:Object.assign(Object.assign({},P(k)),{animationPlayState:"paused"}),[` ${C}${b}-enter${b}-enter-active, ${C}${b}-appear${b}-appear-active - `]:{animationName:B,animationPlayState:"running"},[`${C}${b}-leave${b}-leave-active`]:{animationName:V,animationPlayState:"running",pointerEvents:"none"}}}},83021:function(_t,Y,_){"use strict";_.d(Y,{Fm:function(){return O}});var v=_(36646),R=_(84068);const w=new v.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),b=new v.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),B=new v.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),V=new v.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),k=new v.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),M=new v.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),C=new v.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new v.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),A={"move-up":{inKeyframes:C,outKeyframes:g},"move-down":{inKeyframes:w,outKeyframes:b},"move-left":{inKeyframes:B,outKeyframes:V},"move-right":{inKeyframes:k,outKeyframes:M}},O=(K,ce)=>{const{antCls:de}=K,ve=`${de}-${ce}`,{inKeyframes:Ee,outKeyframes:_e}=A[ce];return[(0,R.R)(ve,Ee,_e,K.motionDurationMid),{[` - ${ve}-enter, - ${ve}-appear - `]:{opacity:0,animationTimingFunction:K.motionEaseOutCirc},[`${ve}-leave`]:{animationTimingFunction:K.motionEaseInOutCirc}}]}},70163:function(_t,Y,_){"use strict";_.d(Y,{Qt:function(){return B},Uw:function(){return b},fJ:function(){return w},ly:function(){return V},oN:function(){return O}});var v=_(36646),R=_(84068);const w=new v.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),b=new v.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),B=new v.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),V=new v.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),k=new v.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),M=new v.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),C=new v.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),g=new v.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),A={"slide-up":{inKeyframes:w,outKeyframes:b},"slide-down":{inKeyframes:B,outKeyframes:V},"slide-left":{inKeyframes:k,outKeyframes:M},"slide-right":{inKeyframes:C,outKeyframes:g}},O=(K,ce)=>{const{antCls:de}=K,ve=`${de}-${ce}`,{inKeyframes:Ee,outKeyframes:_e}=A[ce];return[(0,R.R)(ve,Ee,_e,K.motionDurationMid),{[` - ${ve}-enter, - ${ve}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:K.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${ve}-leave`]:{animationTimingFunction:K.motionEaseInQuint}}]}},44566:function(_t,Y,_){"use strict";_.d(Y,{_y:function(){return ve},kr:function(){return w}});var v=_(36646),R=_(84068);const w=new v.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),b=new v.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),B=new v.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),V=new v.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),k=new v.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),M=new v.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),C=new v.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),g=new v.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),A=new v.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),O=new v.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),K=new v.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ce=new v.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),de={zoom:{inKeyframes:w,outKeyframes:b},"zoom-big":{inKeyframes:B,outKeyframes:V},"zoom-big-fast":{inKeyframes:B,outKeyframes:V},"zoom-left":{inKeyframes:C,outKeyframes:g},"zoom-right":{inKeyframes:A,outKeyframes:O},"zoom-up":{inKeyframes:k,outKeyframes:M},"zoom-down":{inKeyframes:K,outKeyframes:ce}},ve=(Ee,_e)=>{const{antCls:we}=Ee,ot=`${we}-${_e}`,{inKeyframes:He,outKeyframes:vt}=de[_e];return[(0,R.R)(ot,He,vt,_e==="zoom-big-fast"?Ee.motionDurationFast:Ee.motionDurationMid),{[` - ${ot}-enter, - ${ot}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:Ee.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${ot}-leave`]:{animationTimingFunction:Ee.motionEaseInOutCirc}}]}},79602:function(_t,Y,_){"use strict";_.d(Y,{N:function(){return v}});const v=R=>({color:R.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${R.motionDurationSlow}`,"&:focus, &:hover":{color:R.colorLinkHover},"&:active":{color:R.colorLinkActive}})},79208:function(_t,Y,_){"use strict";_.d(Y,{ZP:function(){return B},qN:function(){return R},wZ:function(){return w}});var v=_(11882);const R=8;function w(V){const{contentRadius:k,limitVerticalRadius:M}=V,C=k>12?k+2:12;return{arrowOffsetHorizontal:C,arrowOffsetVertical:M?R:C}}function b(V,k){return V?k:{}}function B(V,k,M){const{componentCls:C,boxShadowPopoverArrow:g,arrowOffsetVertical:A,arrowOffsetHorizontal:O}=V,{arrowDistance:K=0,arrowPlacement:ce={left:!0,right:!0,top:!0,bottom:!0}}=M||{};return{[C]:Object.assign(Object.assign(Object.assign(Object.assign({[`${C}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,v.W)(V,k,g)),{"&:before":{background:k}})]},b(!!ce.top,{[[`&-placement-top ${C}-arrow`,`&-placement-topLeft ${C}-arrow`,`&-placement-topRight ${C}-arrow`].join(",")]:{bottom:K,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${C}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${C}-arrow`]:{left:{_skip_check_:!0,value:O}},[`&-placement-topRight ${C}-arrow`]:{right:{_skip_check_:!0,value:O}}})),b(!!ce.bottom,{[[`&-placement-bottom ${C}-arrow`,`&-placement-bottomLeft ${C}-arrow`,`&-placement-bottomRight ${C}-arrow`].join(",")]:{top:K,transform:"translateY(-100%)"},[`&-placement-bottom ${C}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${C}-arrow`]:{left:{_skip_check_:!0,value:O}},[`&-placement-bottomRight ${C}-arrow`]:{right:{_skip_check_:!0,value:O}}})),b(!!ce.left,{[[`&-placement-left ${C}-arrow`,`&-placement-leftTop ${C}-arrow`,`&-placement-leftBottom ${C}-arrow`].join(",")]:{right:{_skip_check_:!0,value:K},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${C}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${C}-arrow`]:{top:A},[`&-placement-leftBottom ${C}-arrow`]:{bottom:A}})),b(!!ce.right,{[[`&-placement-right ${C}-arrow`,`&-placement-rightTop ${C}-arrow`,`&-placement-rightBottom ${C}-arrow`].join(",")]:{left:{_skip_check_:!0,value:K},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${C}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${C}-arrow`]:{top:A},[`&-placement-rightBottom ${C}-arrow`]:{bottom:A}}))}}},11882:function(_t,Y,_){"use strict";_.d(Y,{W:function(){return w},w:function(){return R}});var v=_(36646);function R(b){const{sizePopupArrow:B,borderRadiusXS:V,borderRadiusOuter:k}=b,M=B/2,C=0,g=M,A=k*1/Math.sqrt(2),O=M-k*(1-1/Math.sqrt(2)),K=M-V*(1/Math.sqrt(2)),ce=k*(Math.sqrt(2)-1)+V*(1/Math.sqrt(2)),de=2*M-K,ve=ce,Ee=2*M-A,_e=O,we=2*M-C,ot=g,He=M*Math.sqrt(2)+k*(Math.sqrt(2)-2),vt=k*(Math.sqrt(2)-1),dt=`polygon(${vt}px 100%, 50% ${vt}px, ${2*M-vt}px 100%, ${vt}px 100%)`,Pe=`path('M ${C} ${g} A ${k} ${k} 0 0 0 ${A} ${O} L ${K} ${ce} A ${V} ${V} 0 0 1 ${de} ${ve} L ${Ee} ${_e} A ${k} ${k} 0 0 0 ${we} ${ot} Z')`;return{arrowShadowWidth:He,arrowPath:Pe,arrowPolygon:dt}}const w=(b,B,V)=>{const{sizePopupArrow:k,arrowPolygon:M,arrowPath:C,arrowShadowWidth:g,borderRadiusXS:A,calc:O}=b;return{pointerEvents:"none",width:k,height:k,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:k,height:O(k).div(2).equal(),background:B,clipPath:{_multi_value_:!0,value:[M,C]},content:'""'},"&::after":{content:'""',position:"absolute",width:g,height:g,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,v.bf)(A)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:V,zIndex:0,background:"transparent"}}}},57349:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return Kt}});var v=_(77617),R=_(38521),w=_(12124),b=_.n(w),B=_(61796),V=_(35005),k=_(61860),M=_(33649),C=_(84381),g=_(84821),A=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],O=v.forwardRef(function(St,nt){var Ct,lt=St.prefixCls,Gt=lt===void 0?"rc-switch":lt,Rt=St.className,an=St.checked,cn=St.defaultChecked,Cr=St.disabled,ii=St.loadingIcon,Pi=St.checkedChildren,Ni=St.unCheckedChildren,Yi=St.onClick,ti=St.onChange,Ts=St.onKeyDown,Bs=(0,M.Z)(St,A),Ce=(0,C.Z)(!1,{value:an,defaultValue:cn}),Gi=(0,k.Z)(Ce,2),qi=Gi[0],co=Gi[1];function fi(Dt,$t){var Dn=qi;return Cr||(Dn=Dt,co(Dn),ti==null||ti(Dn,$t)),Dn}function Ms(Dt){Dt.which===g.Z.LEFT?fi(!1,Dt):Dt.which===g.Z.RIGHT&&fi(!0,Dt),Ts==null||Ts(Dt)}function In(Dt){var $t=fi(!qi,Dt);Yi==null||Yi($t,Dt)}var et=b()(Gt,Rt,(Ct={},(0,V.Z)(Ct,"".concat(Gt,"-checked"),qi),(0,V.Z)(Ct,"".concat(Gt,"-disabled"),Cr),Ct));return v.createElement("button",(0,B.Z)({},Bs,{type:"button",role:"switch","aria-checked":qi,disabled:Cr,className:et,ref:nt,onKeyDown:Ms,onClick:In}),ii,v.createElement("span",{className:"".concat(Gt,"-inner")},v.createElement("span",{className:"".concat(Gt,"-inner-checked")},Pi),v.createElement("span",{className:"".concat(Gt,"-inner-unchecked")},Ni)))});O.displayName="Switch";var K=O,ce=_(54595),de=_(51059),ve=_(40053),Ee=_(1220),_e=_(36646),we=_(64993),ot=_(35772),He=_(67859),vt=_(80172);const dt=St=>{const{componentCls:nt,trackHeightSM:Ct,trackPadding:lt,trackMinWidthSM:Gt,innerMinMarginSM:Rt,innerMaxMarginSM:an,handleSizeSM:cn,calc:Cr}=St,ii=`${nt}-inner`,Pi=(0,_e.bf)(Cr(cn).add(Cr(lt).mul(2)).equal()),Ni=(0,_e.bf)(Cr(an).mul(2).equal());return{[nt]:{[`&${nt}-small`]:{minWidth:Gt,height:Ct,lineHeight:(0,_e.bf)(Ct),[`${nt}-inner`]:{paddingInlineStart:an,paddingInlineEnd:Rt,[`${ii}-checked`]:{marginInlineStart:`calc(-100% + ${Pi} - ${Ni})`,marginInlineEnd:`calc(100% - ${Pi} + ${Ni})`},[`${ii}-unchecked`]:{marginTop:Cr(Ct).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${nt}-handle`]:{width:cn,height:cn},[`${nt}-loading-icon`]:{top:Cr(Cr(cn).sub(St.switchLoadingIconSize)).div(2).equal(),fontSize:St.switchLoadingIconSize},[`&${nt}-checked`]:{[`${nt}-inner`]:{paddingInlineStart:Rt,paddingInlineEnd:an,[`${ii}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ii}-unchecked`]:{marginInlineStart:`calc(100% - ${Pi} + ${Ni})`,marginInlineEnd:`calc(-100% + ${Pi} - ${Ni})`}},[`${nt}-handle`]:{insetInlineStart:`calc(100% - ${(0,_e.bf)(Cr(cn).add(lt).equal())})`}},[`&:not(${nt}-disabled):active`]:{[`&:not(${nt}-checked) ${ii}`]:{[`${ii}-unchecked`]:{marginInlineStart:Cr(St.marginXXS).div(2).equal(),marginInlineEnd:Cr(St.marginXXS).mul(-1).div(2).equal()}},[`&${nt}-checked ${ii}`]:{[`${ii}-checked`]:{marginInlineStart:Cr(St.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Cr(St.marginXXS).div(2).equal()}}}}}}},Pe=St=>{const{componentCls:nt,handleSize:Ct,calc:lt}=St;return{[nt]:{[`${nt}-loading-icon${St.iconCls}`]:{position:"relative",top:lt(lt(Ct).sub(St.fontSize)).div(2).equal(),color:St.switchLoadingIconColor,verticalAlign:"top"},[`&${nt}-checked ${nt}-loading-icon`]:{color:St.switchColor}}}},De=St=>{const{componentCls:nt,trackPadding:Ct,handleBg:lt,handleShadow:Gt,handleSize:Rt,calc:an}=St,cn=`${nt}-handle`;return{[nt]:{[cn]:{position:"absolute",top:Ct,insetInlineStart:Ct,width:Rt,height:Rt,transition:`all ${St.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:lt,borderRadius:an(Rt).div(2).equal(),boxShadow:Gt,transition:`all ${St.switchDuration} ease-in-out`,content:'""'}},[`&${nt}-checked ${cn}`]:{insetInlineStart:`calc(100% - ${(0,_e.bf)(an(Rt).add(Ct).equal())})`},[`&:not(${nt}-disabled):active`]:{[`${cn}::before`]:{insetInlineEnd:St.switchHandleActiveInset,insetInlineStart:0},[`&${nt}-checked ${cn}::before`]:{insetInlineEnd:0,insetInlineStart:St.switchHandleActiveInset}}}}},Ae=St=>{const{componentCls:nt,trackHeight:Ct,trackPadding:lt,innerMinMargin:Gt,innerMaxMargin:Rt,handleSize:an,calc:cn}=St,Cr=`${nt}-inner`,ii=(0,_e.bf)(cn(an).add(cn(lt).mul(2)).equal()),Pi=(0,_e.bf)(cn(Rt).mul(2).equal());return{[nt]:{[Cr]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Rt,paddingInlineEnd:Gt,transition:`padding-inline-start ${St.switchDuration} ease-in-out, padding-inline-end ${St.switchDuration} ease-in-out`,[`${Cr}-checked, ${Cr}-unchecked`]:{display:"block",color:St.colorTextLightSolid,fontSize:St.fontSizeSM,transition:`margin-inline-start ${St.switchDuration} ease-in-out, margin-inline-end ${St.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Cr}-checked`]:{marginInlineStart:`calc(-100% + ${ii} - ${Pi})`,marginInlineEnd:`calc(100% - ${ii} + ${Pi})`},[`${Cr}-unchecked`]:{marginTop:cn(Ct).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${nt}-checked ${Cr}`]:{paddingInlineStart:Gt,paddingInlineEnd:Rt,[`${Cr}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Cr}-unchecked`]:{marginInlineStart:`calc(100% - ${ii} + ${Pi})`,marginInlineEnd:`calc(-100% + ${ii} - ${Pi})`}},[`&:not(${nt}-disabled):active`]:{[`&:not(${nt}-checked) ${Cr}`]:{[`${Cr}-unchecked`]:{marginInlineStart:cn(lt).mul(2).equal(),marginInlineEnd:cn(lt).mul(-1).mul(2).equal()}},[`&${nt}-checked ${Cr}`]:{[`${Cr}-checked`]:{marginInlineStart:cn(lt).mul(-1).mul(2).equal(),marginInlineEnd:cn(lt).mul(2).equal()}}}}}},Re=St=>{const{componentCls:nt,trackHeight:Ct,trackMinWidth:lt}=St;return{[nt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ot.Wf)(St)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:lt,height:Ct,lineHeight:`${(0,_e.bf)(Ct)}`,verticalAlign:"middle",background:St.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${St.motionDurationMid}`,userSelect:"none",[`&:hover:not(${nt}-disabled)`]:{background:St.colorTextTertiary}}),(0,ot.Qy)(St)),{[`&${nt}-checked`]:{background:St.switchColor,[`&:hover:not(${nt}-disabled)`]:{background:St.colorPrimaryHover}},[`&${nt}-loading, &${nt}-disabled`]:{cursor:"not-allowed",opacity:St.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${nt}-rtl`]:{direction:"rtl"}})}},$e=St=>{const{fontSize:nt,lineHeight:Ct,controlHeight:lt,colorWhite:Gt}=St,Rt=nt*Ct,an=lt/2,cn=2,Cr=Rt-cn*2,ii=an-cn*2;return{trackHeight:Rt,trackHeightSM:an,trackMinWidth:Cr*2+cn*4,trackMinWidthSM:ii*2+cn*2,trackPadding:cn,handleBg:Gt,handleSize:Cr,handleSizeSM:ii,handleShadow:`0 2px 4px 0 ${new we.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Cr/2,innerMaxMargin:Cr+cn+cn*2,innerMinMarginSM:ii/2,innerMaxMarginSM:ii+cn+cn*2}};var Ie=(0,He.I$)("Switch",St=>{const nt=(0,vt.TS)(St,{switchDuration:St.motionDurationMid,switchColor:St.colorPrimary,switchDisabledOpacity:St.opacityLoading,switchLoadingIconSize:St.calc(St.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${St.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Re(nt),Ae(nt),De(nt),Pe(nt),dt(nt)]},$e),Xe=function(St,nt){var Ct={};for(var lt in St)Object.prototype.hasOwnProperty.call(St,lt)&&nt.indexOf(lt)<0&&(Ct[lt]=St[lt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,lt=Object.getOwnPropertySymbols(St);Gt{const{prefixCls:Ct,size:lt,disabled:Gt,loading:Rt,className:an,rootClassName:cn,style:Cr,checked:ii,value:Pi,defaultChecked:Ni,defaultValue:Yi,onChange:ti}=St,Ts=Xe(St,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Bs,Ce]=(0,C.Z)(!1,{value:ii!=null?ii:Pi,defaultValue:Ni!=null?Ni:Yi}),{getPrefixCls:Gi,direction:qi,switch:co}=v.useContext(de.E_),fi=v.useContext(ve.Z),Ms=(Gt!=null?Gt:fi)||Rt,In=Gi("switch",Ct),et=v.createElement("div",{className:`${In}-handle`},Rt&&v.createElement(R.Z,{className:`${In}-loading-icon`})),[Dt,$t]=Ie(In),Dn=(0,Ee.Z)(lt),gr=b()(co==null?void 0:co.className,{[`${In}-small`]:Dn==="small",[`${In}-loading`]:Rt,[`${In}-rtl`]:qi==="rtl"},an,cn,$t),kn=Object.assign(Object.assign({},co==null?void 0:co.style),Cr),bn=function(){Ce(arguments.length<=0?void 0:arguments[0]),ti==null||ti.apply(void 0,arguments)};return Dt(v.createElement(ce.Z,{component:"Switch"},v.createElement(K,Object.assign({},Ts,{checked:Bs,onChange:bn,prefixCls:In,className:gr,style:kn,disabled:Ms,ref:nt,loadingIcon:et}))))});ze.__ANT_SWITCH=!0;var Kt=ze},20469:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return ni}});var v=_(77617),R={},w="rc-table-internal-hook",b=_(61860),B=_(60402),V=_(70658),k=_(70780),M=_(79161);function C(Je){var rt=v.createContext(void 0),Nt=function(qt){var Fn=qt.value,_r=qt.children,Jn=v.useRef(Fn);Jn.current=Fn;var hr=v.useState(function(){return{getValue:function(){return Jn.current},listeners:new Set}}),xr=(0,b.Z)(hr,1),Yr=xr[0];return(0,V.Z)(function(){(0,M.unstable_batchedUpdates)(function(){Yr.listeners.forEach(function(Or){Or(Fn)})})},[Fn]),v.createElement(rt.Provider,{value:Yr},_r)};return{Context:rt,Provider:Nt,defaultValue:Je}}function g(Je,rt){var Nt=(0,B.Z)(typeof rt=="function"?rt:function(Or){if(rt===void 0)return Or;if(!Array.isArray(rt))return Or[rt];var Ki={};return rt.forEach(function(jn){Ki[jn]=Or[jn]}),Ki}),Vt=v.useContext(Je==null?void 0:Je.Context),qt=Vt||{},Fn=qt.listeners,_r=qt.getValue,Jn=v.useRef();Jn.current=Nt(Vt?_r():Je==null?void 0:Je.defaultValue);var hr=v.useState({}),xr=(0,b.Z)(hr,2),Yr=xr[1];return(0,V.Z)(function(){if(!Vt)return;function Or(Ki){var jn=Nt(Ki);(0,k.Z)(Jn.current,jn,!0)||Yr({})}return Fn.add(Or),function(){Fn.delete(Or)}},[Vt]),Jn.current}var A=_(61796),O=_(88831);function K(){var Je=v.createContext(null);function rt(){return v.useContext(Je)}function Nt(qt,Fn){var _r=(0,O.Yr)(qt),Jn=function(xr,Yr){var Or=_r?{ref:Yr}:{},Ki=v.useRef(0),jn=v.useRef(xr),Nr=rt();return Nr!==null?v.createElement(qt,(0,A.Z)({},xr,Or)):((!Fn||Fn(jn.current,xr))&&(Ki.current+=1),jn.current=xr,v.createElement(Je.Provider,{value:Ki.current},v.createElement(qt,(0,A.Z)({},xr,Or))))};return _r?v.forwardRef(Jn):Jn}function Vt(qt,Fn){var _r=(0,O.Yr)(qt),Jn=function(xr,Yr){var Or=_r?{ref:Yr}:{};return rt(),v.createElement(qt,(0,A.Z)({},xr,Or))};return _r?v.memo(v.forwardRef(Jn),Fn):v.memo(Jn,Fn)}return{makeImmutable:Nt,responseImmutable:Vt,useImmutableMark:rt}}var ce=K(),de=ce.makeImmutable,ve=ce.responseImmutable,Ee=ce.useImmutableMark,_e=K(),we=_e.makeImmutable,ot=_e.responseImmutable,He=_e.useImmutableMark,vt=C(),dt=vt;function Pe(Je,rt){var Nt=v.useRef(0);Nt.current+=1;var Vt=v.useRef(Je),qt=[];Object.keys(Je||{}).map(function(_r){var Jn;(Je==null?void 0:Je[_r])!==((Jn=Vt.current)===null||Jn===void 0?void 0:Jn[_r])&&qt.push(_r)}),Vt.current=Je;var Fn=v.useRef([]);return qt.length&&(Fn.current=qt),v.useDebugValue(Nt.current),v.useDebugValue(Fn.current.join(", ")),rt&&console.log("".concat(rt,":"),Nt.current,Fn.current),Nt.current}var De=null,Ae=v.memo(function(){var Je=Pe();return v.createElement("h1",null,"Render Times: ",Je)});Ae.displayName="RenderBlock";var Re=_(96522),$e=_(36439),Ie=_(35005),Xe=_(12124),ze=_.n(Xe),Kt=_(4065),St=_(40336),nt=_(36014),Ct=v.createContext({renderWithProps:!1}),lt=Ct,Gt="RC_TABLE_KEY";function Rt(Je){return Je==null?[]:Array.isArray(Je)?Je:[Je]}function an(Je){var rt=[],Nt={};return Je.forEach(function(Vt){for(var qt=Vt||{},Fn=qt.key,_r=qt.dataIndex,Jn=Fn||Rt(_r).join("-")||Gt;Nt[Jn];)Jn="".concat(Jn,"_next");Nt[Jn]=!0,rt.push(Jn)}),rt}function cn(Je){return Je!=null}function Cr(Je){return Je&&(0,Re.Z)(Je)==="object"&&!Array.isArray(Je)&&!v.isValidElement(Je)}function ii(Je,rt,Nt,Vt,qt,Fn){var _r=v.useContext(lt),Jn=He(),hr=(0,Kt.Z)(function(){if(cn(Vt))return[Vt];var xr=rt==null||rt===""?[]:Array.isArray(rt)?rt:[rt],Yr=(0,St.Z)(Je,xr),Or=Yr,Ki=void 0;if(qt){var jn=qt(Yr,Je,Nt);Cr(jn)?(Or=jn.children,Ki=jn.props,_r.renderWithProps=!0):Or=jn}return[Or,Ki]},[Jn,Je,Vt,rt,qt,Nt],function(xr,Yr){if(Fn){var Or=(0,b.Z)(xr,2),Ki=Or[1],jn=(0,b.Z)(Yr,2),Nr=jn[1];return Fn(Nr,Ki)}return _r.renderWithProps?!0:!(0,k.Z)(xr,Yr,!0)});return hr}function Pi(Je,rt,Nt,Vt){var qt=Je+rt-1;return Je<=Vt&&qt>=Nt}function Ni(Je,rt){return g(dt,function(Nt){var Vt=Pi(Je,rt||1,Nt.hoverStartRow,Nt.hoverEndRow);return[Vt,Nt.onHover]})}var Yi=function(rt){var Nt=rt.ellipsis,Vt=rt.rowType,qt=rt.children,Fn,_r=Nt===!0?{showTitle:!0}:Nt;return _r&&(_r.showTitle||Vt==="header")&&(typeof qt=="string"||typeof qt=="number"?Fn=qt.toString():v.isValidElement(qt)&&typeof qt.props.children=="string"&&(Fn=qt.props.children)),Fn};function ti(Je){var rt,Nt,Vt,qt,Fn,_r,Jn,hr,xr=Je.component,Yr=Je.children,Or=Je.ellipsis,Ki=Je.scope,jn=Je.prefixCls,Nr=Je.className,cr=Je.align,Lr=Je.record,Mn=Je.render,Er=Je.dataIndex,Vr=Je.renderIndex,_i=Je.shouldCellUpdate,ai=Je.index,wi=Je.rowType,Hi=Je.colSpan,Wo=Je.rowSpan,po=Je.fixLeft,Uo=Je.fixRight,xs=Je.firstFixLeft,Xi=Je.lastFixLeft,ws=Je.firstFixRight,so=Je.lastFixRight,Wi=Je.appendNode,va=Je.additionalProps,ha=va===void 0?{}:va,qs=Je.isSticky,Yt="".concat(jn,"-cell"),ar=g(dt,["supportSticky","allColumnsFixedLeft"]),oi=ar.supportSticky,ps=ar.allColumnsFixedLeft,As=ii(Lr,Er,Vr,Yr,Mn,_i),Aa=(0,b.Z)(As,2),no=Aa[0],ao=Aa[1],Mo={},ta=typeof po=="number"&&oi,oa=typeof Uo=="number"&&oi;ta&&(Mo.position="sticky",Mo.left=po),oa&&(Mo.position="sticky",Mo.right=Uo);var Ke=(rt=(Nt=(Vt=ao==null?void 0:ao.colSpan)!==null&&Vt!==void 0?Vt:ha.colSpan)!==null&&Nt!==void 0?Nt:Hi)!==null&&rt!==void 0?rt:1,sa=(qt=(Fn=(_r=ao==null?void 0:ao.rowSpan)!==null&&_r!==void 0?_r:ha.rowSpan)!==null&&Fn!==void 0?Fn:Wo)!==null&&qt!==void 0?qt:1,ml=Ni(ai,sa),kl=(0,b.Z)(ml,2),Ys=kl[0],$s=kl[1],Dl=function(Ga){var yi;Lr&&$s(ai,ai+sa-1),ha==null||(yi=ha.onMouseEnter)===null||yi===void 0||yi.call(ha,Ga)},ra=function(Ga){var yi;Lr&&$s(-1,-1),ha==null||(yi=ha.onMouseLeave)===null||yi===void 0||yi.call(ha,Ga)};if(Ke===0||sa===0)return null;var ho=(Jn=ha.title)!==null&&Jn!==void 0?Jn:Yi({rowType:wi,ellipsis:Or,children:no}),Sa=ze()(Yt,Nr,(hr={},(0,Ie.Z)(hr,"".concat(Yt,"-fix-left"),ta&&oi),(0,Ie.Z)(hr,"".concat(Yt,"-fix-left-first"),xs&&oi),(0,Ie.Z)(hr,"".concat(Yt,"-fix-left-last"),Xi&&oi),(0,Ie.Z)(hr,"".concat(Yt,"-fix-left-all"),Xi&&ps&&oi),(0,Ie.Z)(hr,"".concat(Yt,"-fix-right"),oa&&oi),(0,Ie.Z)(hr,"".concat(Yt,"-fix-right-first"),ws&&oi),(0,Ie.Z)(hr,"".concat(Yt,"-fix-right-last"),so&&oi),(0,Ie.Z)(hr,"".concat(Yt,"-ellipsis"),Or),(0,Ie.Z)(hr,"".concat(Yt,"-with-append"),Wi),(0,Ie.Z)(hr,"".concat(Yt,"-fix-sticky"),(ta||oa)&&qs&&oi),(0,Ie.Z)(hr,"".concat(Yt,"-row-hover"),!ao&&Ys),hr),ha.className,ao==null?void 0:ao.className),qo={};cr&&(qo.textAlign=cr);var Pa=(0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)({},Mo),ha.style),qo),ao==null?void 0:ao.style),ja=no;return(0,Re.Z)(ja)==="object"&&!Array.isArray(ja)&&!v.isValidElement(ja)&&(ja=null),Or&&(Xi||ws)&&(ja=v.createElement("span",{className:"".concat(Yt,"-content")},ja)),v.createElement(xr,(0,A.Z)({},ao,ha,{className:Sa,style:Pa,title:ho,scope:Ki,onMouseEnter:Dl,onMouseLeave:ra,colSpan:Ke!==1?Ke:null,rowSpan:sa!==1?sa:null}),Wi,ja)}var Ts=v.memo(ti);function Bs(Je,rt,Nt,Vt,qt,Fn){var _r=Nt[Je]||{},Jn=Nt[rt]||{},hr,xr;_r.fixed==="left"?hr=Vt.left[qt==="rtl"?rt:Je]:Jn.fixed==="right"&&(xr=Vt.right[qt==="rtl"?Je:rt]);var Yr=!1,Or=!1,Ki=!1,jn=!1,Nr=Nt[rt+1],cr=Nt[Je-1],Lr=!(Fn!=null&&Fn.children);if(qt==="rtl"){if(hr!==void 0){var Mn=cr&&cr.fixed==="left";jn=!Mn&&Lr}else if(xr!==void 0){var Er=Nr&&Nr.fixed==="right";Ki=!Er&&Lr}}else if(hr!==void 0){var Vr=Nr&&Nr.fixed==="left";Yr=!Vr&&Lr}else if(xr!==void 0){var _i=cr&&cr.fixed==="right";Or=!_i&&Lr}return{fixLeft:hr,fixRight:xr,lastFixLeft:Yr,firstFixRight:Or,lastFixRight:Ki,firstFixLeft:jn,isSticky:Vt.isSticky}}var Ce=v.createContext({}),Gi=Ce;function qi(Je){var rt=Je.className,Nt=Je.index,Vt=Je.children,qt=Je.colSpan,Fn=qt===void 0?1:qt,_r=Je.rowSpan,Jn=Je.align,hr=g(dt,["prefixCls","direction"]),xr=hr.prefixCls,Yr=hr.direction,Or=v.useContext(Gi),Ki=Or.scrollColumnIndex,jn=Or.stickyOffsets,Nr=Or.flattenColumns,cr=Or.columns,Lr=Nt+Fn-1,Mn=Lr+1===Ki?Fn+1:Fn,Er=Bs(Nt,Nt+Mn-1,Nr,jn,Yr,cr==null?void 0:cr[Nt]);return v.createElement(Ts,(0,A.Z)({className:rt,index:Nt,component:"td",prefixCls:xr,record:null,dataIndex:null,align:Jn,colSpan:Mn,rowSpan:_r,render:function(){return Vt}},Er))}var co=_(33649),fi=["children"];function Ms(Je){var rt=Je.children,Nt=(0,co.Z)(Je,fi);return v.createElement("tr",Nt,rt)}function In(Je){var rt=Je.children;return rt}In.Row=Ms,In.Cell=qi;var et=In;function Dt(Je){var rt=Je.children,Nt=Je.stickyOffsets,Vt=Je.flattenColumns,qt=Je.columns,Fn=g(dt,"prefixCls"),_r=Vt.length-1,Jn=Vt[_r],hr=v.useMemo(function(){return{stickyOffsets:Nt,flattenColumns:Vt,scrollColumnIndex:Jn!=null&&Jn.scrollbar?_r:null,columns:qt}},[Jn,Vt,_r,Nt,qt]);return v.createElement(Gi.Provider,{value:hr},v.createElement("tfoot",{className:"".concat(Fn,"-summary")},rt))}var $t=ot(Dt),Dn=et,gr=_(28647),kn=_(95077),bn=_(30034),zt=_(45947),Jt=_(3286);function yn(Je,rt,Nt,Vt,qt,Fn,_r){Je.push({record:rt,indent:Nt,index:_r});var Jn=Fn(rt),hr=qt==null?void 0:qt.has(Jn);if(rt&&Array.isArray(rt[Vt])&&hr)for(var xr=0;xr1?xs-1:0),ws=1;ws=0;Jn-=1){var hr=rt[Jn],xr=Nt&&Nt[Jn],Yr=xr&&xr[It];if(hr||Yr||_r){var Or=Yr||{},Ki=Or.columnType,jn=(0,co.Z)(Or,gn);qt.unshift(v.createElement("col",(0,A.Z)({key:Jn,style:{width:hr}},jn))),_r=!0}}return v.createElement("colgroup",null,qt)}var Ar=$n,Dr=_(40877),dr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Xt(Je,rt){return(0,v.useMemo)(function(){for(var Nt=[],Vt=0;Vt1?"colgroup":"col":null,ellipsis:Lr.ellipsis,align:Lr.align,component:Lr.title?Fn:_r,prefixCls:Yr,key:jn[cr]},Mn,{additionalProps:Er,rowType:"header"}))}))}Mr.displayName="HeaderRow";var ji=Mr;function An(Je){var rt=[];function Nt(_r,Jn){var hr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;rt[hr]=rt[hr]||[];var xr=Jn,Yr=_r.filter(Boolean).map(function(Or){var Ki={key:Or.key,className:Or.className||"",children:Or.title,column:Or,colStart:xr},jn=1,Nr=Or.children;return Nr&&Nr.length>0&&(jn=Nt(Nr,xr,hr+1).reduce(function(cr,Lr){return cr+Lr},0),Ki.hasSubColumns=!0),"colSpan"in Or&&(jn=Or.colSpan),"rowSpan"in Or&&(Ki.rowSpan=Or.rowSpan),Ki.colSpan=jn,Ki.colEnd=Ki.colStart+jn-1,rt[hr].push(Ki),xr+=jn,jn});return Yr}Nt(Je,0);for(var Vt=rt.length,qt=function(Jn){rt[Jn].forEach(function(hr){!("rowSpan"in hr)&&!hr.hasSubColumns&&(hr.rowSpan=Vt-Jn)})},Fn=0;Fn1&&arguments[1]!==void 0?arguments[1]:"";return typeof rt=="number"?rt:rt.endsWith("%")?Je*parseFloat(rt)/100:null}function Hr(Je,rt,Nt){return v.useMemo(function(){if(rt&&rt>0){var Vt=0,qt=0;Je.forEach(function(Ki){var jn=vi(rt,Ki.width);jn?Vt+=jn:qt+=1});var Fn=Math.max(rt,Nt),_r=Math.max(Fn-Vt,qt),Jn=qt,hr=_r/qt,xr=0,Yr=Je.map(function(Ki){var jn=(0,$e.Z)({},Ki),Nr=vi(rt,jn.width);if(Nr)jn.width=Nr;else{var cr=Math.floor(hr);jn.width=Jn===1?_r:cr,_r-=cr,Jn-=1}return xr+=jn.width,jn});if(xr1&&arguments[1]!==void 0?arguments[1]:"key";return Je.filter(function(Nt){return Nt&&(0,Re.Z)(Nt)==="object"}).reduce(function(Nt,Vt,qt){var Fn=Vt.fixed,_r=Fn===!0?"left":Fn,Jn="".concat(rt,"-").concat(qt),hr=Vt.children;return hr&&hr.length>0?[].concat((0,Dr.Z)(Nt),(0,Dr.Z)(Bi(hr,Jn).map(function(xr){return(0,$e.Z)({fixed:_r},xr)}))):[].concat((0,Dr.Z)(Nt),[(0,$e.Z)((0,$e.Z)({key:Jn},Vt),{},{fixed:_r})])},[])}function zr(Je){for(var rt=!0,Nt=0;Nt=0;Fn-=1){var _r=Je[Fn];if(qt&&_r.fixed!=="right")qt=!1;else if(!qt&&_r.fixed==="right"){warning(!1,"Index ".concat(Fn+1," of `columns` missing `fixed='right'` prop."));break}}}function Xr(Je){return Je.map(function(rt){var Nt=rt.fixed,Vt=(0,co.Z)(rt,gi),qt=Nt;return Nt==="left"?qt="right":Nt==="right"&&(qt="left"),(0,$e.Z)({fixed:qt},Vt)})}function Qi(Je,rt){var Nt=Je.prefixCls,Vt=Je.columns,qt=Je.children,Fn=Je.expandable,_r=Je.expandedKeys,Jn=Je.columnTitle,hr=Je.getRowKey,xr=Je.onTriggerExpand,Yr=Je.expandIcon,Or=Je.rowExpandable,Ki=Je.expandIconColumnIndex,jn=Je.direction,Nr=Je.expandRowByClick,cr=Je.columnWidth,Lr=Je.fixed,Mn=Je.scrollWidth,Er=Je.clientWidth,Vr=v.useMemo(function(){return Vt||mi(qt)},[Vt,qt]),_i=v.useMemo(function(){if(Fn){var xs,Xi=Vr.slice();if(!Xi.includes(R)){var ws=Ki||0;ws>=0&&Xi.splice(ws,0,R)}var so=Xi.indexOf(R);Xi=Xi.filter(function(qs,Yt){return qs!==R||Yt===so});var Wi=Vr[so],va;(Lr==="left"||Lr)&&!Ki?va="left":(Lr==="right"||Lr)&&Ki===Vr.length?va="right":va=Wi?Wi.fixed:null;var ha=(xs={},(0,Ie.Z)(xs,It,{className:"".concat(Nt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Ie.Z)(xs,"title",Jn),(0,Ie.Z)(xs,"fixed",va),(0,Ie.Z)(xs,"className","".concat(Nt,"-row-expand-icon-cell")),(0,Ie.Z)(xs,"width",cr),(0,Ie.Z)(xs,"render",function(Yt,ar,oi){var ps=hr(ar,oi),As=_r.has(ps),Aa=Or?Or(ar):!0,no=Yr({prefixCls:Nt,expanded:As,expandable:Aa,record:ar,onExpand:xr});return Nr?v.createElement("span",{onClick:function(Mo){return Mo.stopPropagation()}},no):no}),xs);return Xi.map(function(qs){return qs===R?ha:qs})}return Vr.filter(function(qs){return qs!==R})},[Fn,Vr,hr,_r,Yr,jn]),ai=v.useMemo(function(){var xs=_i;return rt&&(xs=rt(xs)),xs.length||(xs=[{render:function(){return null}}]),xs},[rt,_i,jn]),wi=v.useMemo(function(){return jn==="rtl"?Xr(Bi(ai)):Bi(ai)},[ai,jn,Mn]),Hi=Hr(wi,Mn,Er),Wo=(0,b.Z)(Hi,2),po=Wo[0],Uo=Wo[1];return[ai,po,Uo]}var rs=Qi;function Ur(Je){var rt,Nt=Je.prefixCls,Vt=Je.record,qt=Je.onExpand,Fn=Je.expanded,_r=Je.expandable,Jn="".concat(Nt,"-row-expand-icon");if(!_r)return v.createElement("span",{className:ze()(Jn,"".concat(Nt,"-row-spaced"))});var hr=function(Yr){qt(Vt,Yr),Yr.stopPropagation()};return v.createElement("span",{className:ze()(Jn,(rt={},(0,Ie.Z)(rt,"".concat(Nt,"-row-expanded"),Fn),(0,Ie.Z)(rt,"".concat(Nt,"-row-collapsed"),!Fn),rt)),onClick:hr})}function gs(Je,rt,Nt){var Vt=[];function qt(Fn){(Fn||[]).forEach(function(_r,Jn){Vt.push(rt(_r,Jn)),qt(_r[Nt])})}return qt(Je),Vt}function Kr(Je,rt,Nt){var Vt=Zt(Je),qt=Vt.expandIcon,Fn=Vt.expandedRowKeys,_r=Vt.defaultExpandedRowKeys,Jn=Vt.defaultExpandAllRows,hr=Vt.expandedRowRender,xr=Vt.onExpand,Yr=Vt.onExpandedRowsChange,Or=Vt.childrenColumnName,Ki=qt||Ur,jn=Or||"children",Nr=v.useMemo(function(){return hr?"row":Je.expandable&&Je.internalHooks===w&&Je.expandable.__PARENT_RENDER_ICON__||rt.some(function(ai){return ai&&(0,Re.Z)(ai)==="object"&&ai[jn]})?"nest":!1},[!!hr,rt]),cr=v.useState(function(){return _r||(Jn?gs(rt,Nt,jn):[])}),Lr=(0,b.Z)(cr,2),Mn=Lr[0],Er=Lr[1],Vr=v.useMemo(function(){return new Set(Fn||Mn||[])},[Fn,Mn]),_i=v.useCallback(function(ai){var wi=Nt(ai,rt.indexOf(ai)),Hi,Wo=Vr.has(wi);Wo?(Vr.delete(wi),Hi=(0,Dr.Z)(Vr)):Hi=[].concat((0,Dr.Z)(Vr),[wi]),Er(Hi),xr&&xr(!Wo,ai),Yr&&Yr(Hi)},[Nt,Vr,rt,xr,Yr]);return[Vt,Nr,Vr,Ki,jn,_i]}function ri(Je,rt,Nt,Vt){var qt=Je.map(function(Fn,_r){return Bs(_r,_r,Je,rt,Nt,Vt==null?void 0:Vt[_r])});return(0,Kt.Z)(function(){return qt},[qt],function(Fn,_r){return!(0,k.Z)(Fn,_r)})}function is(Je){var rt=(0,v.useRef)(Je),Nt=(0,v.useState)({}),Vt=(0,b.Z)(Nt,2),qt=Vt[1],Fn=(0,v.useRef)(null),_r=(0,v.useRef)([]);function Jn(hr){_r.current.push(hr);var xr=Promise.resolve();Fn.current=xr,xr.then(function(){if(Fn.current===xr){var Yr=_r.current,Or=rt.current;_r.current=[],Yr.forEach(function(Ki){rt.current=Ki(rt.current)}),Fn.current=null,Or!==rt.current&&qt({})}})}return(0,v.useEffect)(function(){return function(){Fn.current=null}},[]),[rt.current,Jn]}function Jr(Je){var rt=(0,v.useRef)(Je||null),Nt=(0,v.useRef)();function Vt(){window.clearTimeout(Nt.current)}function qt(_r){rt.current=_r,Vt(),Nt.current=window.setTimeout(function(){rt.current=null,Nt.current=void 0},100)}function Fn(){return rt.current}return(0,v.useEffect)(function(){return Vt},[]),[qt,Fn]}function _n(){var Je=v.useState(-1),rt=(0,b.Z)(Je,2),Nt=rt[0],Vt=rt[1],qt=v.useState(-1),Fn=(0,b.Z)(qt,2),_r=Fn[0],Jn=Fn[1],hr=v.useCallback(function(xr,Yr){Vt(xr),Jn(Yr)},[]);return[Nt,_r,hr]}var Br=_(42871),es=(0,Br.Z)()?window:null;function ko(Je,rt){var Nt=(0,Re.Z)(Je)==="object"?Je:{},Vt=Nt.offsetHeader,qt=Vt===void 0?0:Vt,Fn=Nt.offsetSummary,_r=Fn===void 0?0:Fn,Jn=Nt.offsetScroll,hr=Jn===void 0?0:Jn,xr=Nt.getContainer,Yr=xr===void 0?function(){return es}:xr,Or=Yr()||es;return v.useMemo(function(){var Ki=!!Je;return{isSticky:Ki,stickyClassName:Ki?"".concat(rt,"-sticky-holder"):"",offsetHeader:qt,offsetSummary:_r,offsetScroll:hr,container:Or}},[hr,qt,_r,rt,Or])}function vs(Je,rt,Nt){var Vt=(0,v.useMemo)(function(){for(var qt=[],Fn=[],_r=0,Jn=0,hr=0;hr=Or&&(ha=Or-Ki),_r({scrollLeft:ha/Or*(Yr+2)}),Er.current.x=ws.pageX},Uo=function(){if(Fn.current){var ws=Gr(Fn.current).top,so=ws+Fn.current.offsetHeight,Wi=hr===window?document.documentElement.scrollTop+window.innerHeight:Gr(hr).top+hr.clientHeight;so-(0,zt.Z)()<=Wi||ws>=Wi-Jn?Mn(function(va){return(0,$e.Z)((0,$e.Z)({},va),{},{isHiddenScrollBar:!0})}):Mn(function(va){return(0,$e.Z)((0,$e.Z)({},va),{},{isHiddenScrollBar:!1})})}},xs=function(ws){Mn(function(so){return(0,$e.Z)((0,$e.Z)({},so),{},{scrollLeft:ws/Yr*Or||0})})};return v.useImperativeHandle(Nt,function(){return{setScrollLeft:xs}}),v.useEffect(function(){var Xi=ll(document.body,"mouseup",Hi,!1),ws=ll(document.body,"mousemove",po,!1);return Uo(),function(){Xi.remove(),ws.remove()}},[Ki,ai]),v.useEffect(function(){var Xi=ll(hr,"scroll",Uo,!1),ws=ll(window,"resize",Uo,!1);return function(){Xi.remove(),ws.remove()}},[hr]),v.useEffect(function(){Lr.isHiddenScrollBar||Mn(function(Xi){var ws=Fn.current;return ws?(0,$e.Z)((0,$e.Z)({},Xi),{},{scrollLeft:ws.scrollLeft/ws.scrollWidth*ws.clientWidth}):Xi})},[Lr.isHiddenScrollBar]),Yr<=Or||!Ki||Lr.isHiddenScrollBar?null:v.createElement("div",{style:{height:(0,zt.Z)(),width:Or,bottom:Jn},className:"".concat(xr,"-sticky-scroll")},v.createElement("div",{onMouseDown:Wo,ref:jn,className:ze()("".concat(xr,"-sticky-scroll-bar"),(0,Ie.Z)({},"".concat(xr,"-sticky-scroll-bar-active"),ai)),style:{width:"".concat(Ki,"px"),transform:"translate3d(".concat(Lr.scrollLeft,"px, 0, 0)")}}))},ut=v.forwardRef(je);function ht(Je){return null}var Ue=ht;function ft(Je){return null}var Pt=ft,ln="rc-table",sr=[],Zr={};function Ui(){return"No Data"}function To(Je,rt){var Nt,Vt=(0,$e.Z)({rowKey:"key",prefixCls:ln,emptyText:Ui},Je),qt=Vt.prefixCls,Fn=Vt.className,_r=Vt.rowClassName,Jn=Vt.style,hr=Vt.data,xr=Vt.rowKey,Yr=Vt.scroll,Or=Vt.tableLayout,Ki=Vt.direction,jn=Vt.title,Nr=Vt.footer,cr=Vt.summary,Lr=Vt.caption,Mn=Vt.id,Er=Vt.showHeader,Vr=Vt.components,_i=Vt.emptyText,ai=Vt.onRow,wi=Vt.onHeaderRow,Hi=Vt.internalHooks,Wo=Vt.transformColumns,po=Vt.internalRefs,Uo=Vt.tailor,xs=Vt.getContainerWidth,Xi=Vt.sticky,ws=hr||sr,so=!!ws.length,Wi=Hi===w,va=v.useCallback(function(hg,Of){return(0,St.Z)(Vr,hg)||Of},[Vr]),ha=v.useMemo(function(){return typeof xr=="function"?xr:function(hg){var Of=hg&&hg[xr];return Of}},[xr]),qs=va(["body"]),Yt=_n(),ar=(0,b.Z)(Yt,3),oi=ar[0],ps=ar[1],As=ar[2],Aa=Kr(Vt,ws,ha),no=(0,b.Z)(Aa,6),ao=no[0],Mo=no[1],ta=no[2],oa=no[3],Ke=no[4],sa=no[5],ml=Yr==null?void 0:Yr.x,kl=v.useState(0),Ys=(0,b.Z)(kl,2),$s=Ys[0],Dl=Ys[1],ra=rs((0,$e.Z)((0,$e.Z)((0,$e.Z)({},Vt),ao),{},{expandable:!!ao.expandedRowRender,columnTitle:ao.columnTitle,expandedKeys:ta,getRowKey:ha,onTriggerExpand:sa,expandIcon:oa,expandIconColumnIndex:ao.expandIconColumnIndex,direction:Ki,scrollWidth:Wi&&Uo&&typeof ml=="number"?ml:null,clientWidth:$s}),Wi?Wo:null),ho=(0,b.Z)(ra,3),Sa=ho[0],qo=ho[1],Pa=ho[2],ja=Pa!=null?Pa:ml,Rl=v.useMemo(function(){return{columns:Sa,flattenColumns:qo}},[Sa,qo]),Ga=v.useRef(),yi=v.useRef(),ls=v.useRef(),ma=v.useRef();v.useImperativeHandle(rt,function(){return{nativeElement:Ga.current,scrollTo:function(Of){var Ag;if(ls.current instanceof HTMLElement){var Af=Of.index,op=Of.top,Qm=Of.key;if(op){var yp;(yp=ls.current)===null||yp===void 0||yp.scrollTo({top:op})}else{var Vp,Mc=Qm!=null?Qm:ha(ws[Af]);(Vp=ls.current.querySelector('[data-row-key="'.concat(Mc,'"]')))===null||Vp===void 0||Vp.scrollIntoView()}}else(Ag=ls.current)!==null&&Ag!==void 0&&Ag.scrollTo&&ls.current.scrollTo(Of)}}});var ol=v.useRef(),xu=v.useState(!1),vu=(0,b.Z)(xu,2),ka=vu[0],xc=vu[1],zl=v.useState(!1),Zc=(0,b.Z)(zl,2),Du=Zc[0],Lc=Zc[1],hu=is(new Map),Vd=(0,b.Z)(hu,2),Oc=Vd[0],ud=Vd[1],Dc=an(qo),Ul=Dc.map(function(hg){return Oc.get(hg)}),Nh=v.useMemo(function(){return Ul},[Ul.join("_")]),Ge=Ba(Nh,qo.length,Ki),We=Yr&&cn(Yr.y),yt=Yr&&cn(ja)||!!ao.fixed,Pn=yt&&qo.some(function(hg){var Of=hg.fixed;return Of}),xi=v.useRef(),Zn=ko(Xi,qt),ci=Zn.isSticky,So=Zn.offsetHeader,Zs=Zn.offsetSummary,La=Zn.offsetScroll,uu=Zn.stickyClassName,Jo=Zn.container,ya=v.useMemo(function(){return cr==null?void 0:cr(ws)},[cr,ws]),Ea=(We||ci)&&v.isValidElement(ya)&&ya.type===et&&ya.props.fixed,ts,Ma,Ls;We&&(Ma={overflowY:"scroll",maxHeight:Yr.y}),yt&&(ts={overflowX:"auto"},We||(Ma={overflowY:"hidden"}),Ls={width:ja===!0?"auto":ja,minWidth:"100%"});var go=v.useCallback(function(hg,Of){(0,kn.Z)(Ga.current)&&ud(function(Ag){if(Ag.get(hg)!==Of){var Af=new Map(Ag);return Af.set(hg,Of),Af}return Ag})},[]),Vo=Jr(null),Fs=(0,b.Z)(Vo,2),$l=Fs[0],Cl=Fs[1];function Ra(hg,Of){Of&&(typeof Of=="function"?Of(hg):Of.scrollLeft!==hg&&(Of.scrollLeft=hg,Of.scrollLeft!==hg&&setTimeout(function(){Of.scrollLeft=hg},0)))}var Xs=(0,B.Z)(function(hg){var Of=hg.currentTarget,Ag=hg.scrollLeft,Af=Ki==="rtl",op=typeof Ag=="number"?Ag:Of.scrollLeft,Qm=Of||Zr;if(!Cl()||Cl()===Qm){var yp;$l(Qm),Ra(op,yi.current),Ra(op,ls.current),Ra(op,ol.current),Ra(op,(yp=xi.current)===null||yp===void 0?void 0:yp.setScrollLeft)}var Vp=Of||yi.current;if(Vp){var Mc=Vp.scrollWidth,cm=Vp.clientWidth;if(Mc===cm){xc(!1),Lc(!1);return}Af?(xc(-op0)):(xc(op>0),Lc(op1?cr-ws:0,Wi=(0,$e.Z)((0,$e.Z)((0,$e.Z)({},Hi),hr),{},{flex:"0 0 ".concat(ws,"px"),width:"".concat(ws,"px"),marginRight:so,pointerEvents:"auto"}),va=v.useMemo(function(){return Yr?xs<=1:po===0||xs===0||xs>1},[xs,po,Yr]);va?Wi.visibility="hidden":Yr&&(Wi.height=Or==null?void 0:Or(xs));var ha=va?function(){return null}:Ki,qs={};return(xs===0||po===0)&&(qs.rowSpan=1,qs.colSpan=1),v.createElement(Ts,(0,A.Z)({className:ze()(Nr,xr),ellipsis:Nt.ellipsis,align:Nt.align,scope:Nt.rowScope,component:"div",prefixCls:rt.prefixCls,key:Vr,record:Jn,index:Fn,renderIndex:_r,dataIndex:jn,render:ha,shouldCellUpdate:Nt.shouldCellUpdate},_i,{appendNode:ai,additionalProps:(0,$e.Z)((0,$e.Z)({},wi),{},{style:Wi},qs)}))}var Hl=Ka,Gl=["data","index","className","rowKey","style","extra","getHeight"],fs=v.forwardRef(function(Je,rt){var Nt=Je.data,Vt=Je.index,qt=Je.className,Fn=Je.rowKey,_r=Je.style,Jn=Je.extra,hr=Je.getHeight,xr=(0,co.Z)(Je,Gl),Yr=Nt.record,Or=Nt.indent,Ki=Nt.index,jn=g(dt,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Nr=jn.scrollX,cr=jn.flattenColumns,Lr=jn.prefixCls,Mn=jn.fixColumn,Er=jn.componentWidth,Vr=pn(Yr,Fn,Vt,Or),_i=Vr.rowSupportExpand,ai=Vr.expanded,wi=Vr.rowProps,Hi=Vr.expandedRowRender,Wo=Vr.expandedRowClassName,po;if(_i&&ai){var Uo=Hi(Yr,Vt,Or+1,ai),xs=Wo==null?void 0:Wo(Yr,Vt,Or),Xi={};Mn&&(Xi={style:(0,Ie.Z)({},"--virtual-width","".concat(Er,"px"))});var ws="".concat(Lr,"-expanded-row-cell");po=v.createElement("div",{className:ze()("".concat(Lr,"-expanded-row"),"".concat(Lr,"-expanded-row-level-").concat(Or+1),xs)},v.createElement(Ts,{component:"div",prefixCls:Lr,className:ze()(ws,(0,Ie.Z)({},"".concat(ws,"-fixed"),Mn)),additionalProps:Xi},Uo))}var so=(0,$e.Z)((0,$e.Z)({},_r),{},{width:Nr});Jn&&(so.position="absolute",so.pointerEvents="none");var Wi=v.createElement("div",(0,A.Z)({},wi,xr,{ref:_i?null:rt,className:ze()(qt,"".concat(Lr,"-row"),wi==null?void 0:wi.className,(0,Ie.Z)({},"".concat(Lr,"-row-extra"),Jn)),style:(0,$e.Z)((0,$e.Z)({},so),wi==null?void 0:wi.style)}),cr.map(function(va,ha){return v.createElement(Hl,{key:ha,rowInfo:Vr,column:va,colIndex:ha,indent:Or,index:Vt,renderIndex:Ki,record:Yr,inverse:Jn,getHeight:hr})}));return _i?v.createElement("div",{ref:rt},Wi,po):Wi}),Hs=ot(fs),dl=Hs,Xo=v.forwardRef(function(Je,rt){var Nt=Je.data,Vt=Je.onScroll,qt=g(dt,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Fn=qt.flattenColumns,_r=qt.onColumnResize,Jn=qt.getRowKey,hr=qt.expandedKeys,xr=qt.prefixCls,Yr=qt.childrenColumnName,Or=qt.emptyNode,Ki=qt.scrollX,jn=g(Lo),Nr=jn.sticky,cr=jn.scrollY,Lr=jn.listItemHeight,Mn=v.useRef(),Er=fr(Nt,Yr,hr,Jn),Vr=v.useMemo(function(){var xs=0;return Fn.map(function(Xi){var ws=Xi.width,so=Xi.key;return xs+=ws,[so,ws,xs]})},[Fn]),_i=v.useMemo(function(){return Vr.map(function(xs){return xs[2]})},[Vr]);v.useEffect(function(){Vr.forEach(function(xs){var Xi=(0,b.Z)(xs,2),ws=Xi[0],so=Xi[1];_r(ws,so)})},[Vr]),v.useImperativeHandle(rt,function(){var xs={scrollTo:function(ws){var so;(so=Mn.current)===null||so===void 0||so.scrollTo(ws)}};return Object.defineProperty(xs,"scrollLeft",{get:function(){var ws;return((ws=Mn.current)===null||ws===void 0?void 0:ws.getScrollInfo().x)||0},set:function(ws){var so;(so=Mn.current)===null||so===void 0||so.scrollTo({left:ws})}}),xs});var ai=function(Xi,ws){var so,Wi=(so=Er[ws])===null||so===void 0?void 0:so.record,va=Xi.onCell;if(va){var ha,qs=va(Wi,ws);return(ha=qs==null?void 0:qs.rowSpan)!==null&&ha!==void 0?ha:1}return 1},wi=function(Xi){var ws=Xi.start,so=Xi.end,Wi=Xi.getSize,va=Xi.offsetY;if(so<0)return null;for(var ha=Fn.filter(function(oa){return ai(oa,ws)===0}),qs=ws,Yt=function(Ke){if(ha=ha.filter(function(sa){return ai(sa,Ke)===0}),!ha.length)return qs=Ke,1},ar=ws;ar>=0&&!Yt(ar);ar-=1);for(var oi=Fn.filter(function(oa){return ai(oa,so)!==1}),ps=so,As=function(Ke){if(oi=oi.filter(function(sa){return ai(sa,Ke)!==1}),!oi.length)return ps=Math.max(Ke-1,so),1},Aa=so;Aa1})&&no.push(Ke)},Mo=qs;Mo<=ps;Mo+=1)ao(Mo);var ta=no.map(function(oa){var Ke=Er[oa],sa=Jn(Ke.record,oa),ml=function($s){var Dl=oa+$s-1,ra=Jn(Er[Dl].record,Dl),ho=Wi(sa,ra);return ho.bottom-ho.top},kl=Wi(sa);return v.createElement(dl,{key:oa,data:Ke,rowKey:sa,index:oa,style:{top:-va+kl.top},extra:!0,getHeight:ml})});return ta},Hi=v.useMemo(function(){return{columnsOffset:_i}},[_i]),Wo="".concat(xr,"-tbody"),po;if(Er.length){var Uo={};Nr&&(Uo.position="sticky",Uo.bottom=0,(0,Re.Z)(Nr)==="object"&&Nr.offsetScroll&&(Uo.bottom=Nr.offsetScroll)),po=v.createElement(Ns.Z,{fullHeight:!1,ref:Mn,styles:{horizontalScrollBar:Uo},className:ze()(Wo,"".concat(Wo,"-virtual")),height:cr,itemHeight:Lr||24,data:Er,itemKey:function(Xi){return Jn(Xi.record)},scrollWidth:Ki,onVirtualScroll:function(Xi){var ws=Xi.x;Vt({scrollLeft:ws})},extraRender:wi},function(xs,Xi,ws){var so=Jn(xs.record,Xi);return v.createElement(dl,(0,A.Z)({data:xs,rowKey:so,index:Xi},ws))})}else po=v.createElement("div",{className:ze()("".concat(xr,"-placeholder"))},v.createElement(Ts,{component:"div",prefixCls:xr},Or));return v.createElement(Ps.Provider,{value:Hi},po)}),Mi=ot(Xo),Yo=Mi,Os=function(rt,Nt){var Vt=Nt.ref,qt=Nt.onScroll;return v.createElement(Yo,{ref:Vt,data:rt,onScroll:qt})};function Cs(Je,rt){var Nt=Je.columns,Vt=Je.scroll,qt=Je.sticky,Fn=Je.prefixCls,_r=Fn===void 0?ln:Fn,Jn=Je.className,hr=Je.listItemHeight,xr=Je.components,Yr=Vt||{},Or=Yr.x,Ki=Yr.y;typeof Or!="number"&&(Or=1),typeof Ki!="number"&&(Ki=500);var jn=v.useMemo(function(){return{sticky:qt,scrollY:Ki,listItemHeight:hr}},[qt,Ki,hr]);return v.createElement(Lo.Provider,{value:jn},v.createElement(Rs,(0,A.Z)({},Je,{className:ze()(Jn,"".concat(_r,"-virtual")),scroll:(0,$e.Z)((0,$e.Z)({},Vt),{},{x:Or}),components:(0,$e.Z)((0,$e.Z)({},xr),{},{body:Os}),columns:Nt,internalHooks:w,tailor:!0,ref:rt})))}var xa=v.forwardRef(Cs);function Xu(Je){return we(xa,Je)}var gc=Xu(),Zu=null;function Cd(Je){return null}var ad=Cd;function gu(Je){return null}var iu=gu,Tu=_(42884),Si=_(67449),tr=_(57324),Un=_(26858),jr=_(84381);function Qr(Je){const[rt,Nt]=(0,v.useState)(null);return[(0,v.useCallback)((Fn,_r,Jn)=>{const hr=rt!=null?rt:Fn,xr=Math.min(hr||0,Fn),Yr=Math.max(hr||0,Fn),Or=_r.slice(xr,Yr+1).map(Nr=>Je(Nr)),Ki=Or.some(Nr=>!Jn.has(Nr)),jn=[];return Or.forEach(Nr=>{Ki?(Jn.has(Nr)||jn.push(Nr),Jn.add(Nr)):(Jn.delete(Nr),jn.push(Nr))}),Nt(Ki?Yr:null),jn},[rt]),Fn=>{Nt(Fn)}]}var _o=_(50905),us=_(5630),ns=_(54595),Oa=_(99381),ga=_(51059),Va=_(40053),ea=_(20170),Xl=_(34735),Ta=v.createContext(null),Ya=_(81448),cu=function(Je,rt){var Nt={};for(var Vt in Je)Object.prototype.hasOwnProperty.call(Je,Vt)&&rt.indexOf(Vt)<0&&(Nt[Vt]=Je[Vt]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,Vt=Object.getOwnPropertySymbols(Je);qt{var Nt;const{prefixCls:Vt,className:qt,rootClassName:Fn,children:_r,indeterminate:Jn=!1,style:hr,onMouseEnter:xr,onMouseLeave:Yr,skipGroup:Or=!1,disabled:Ki}=Je,jn=cu(Je,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Nr,direction:cr,checkbox:Lr}=v.useContext(ga.E_),Mn=v.useContext(Ta),{isFormItemInput:Er}=v.useContext(Xl.aM),Vr=v.useContext(Va.Z),_i=(Nt=(Mn==null?void 0:Mn.disabled)||Ki)!==null&&Nt!==void 0?Nt:Vr,ai=v.useRef(jn.value);v.useEffect(()=>{Mn==null||Mn.registerValue(jn.value)},[]),v.useEffect(()=>{if(!Or)return jn.value!==ai.current&&(Mn==null||Mn.cancelValue(ai.current),Mn==null||Mn.registerValue(jn.value),ai.current=jn.value),()=>Mn==null?void 0:Mn.cancelValue(jn.value)},[jn.value]);const wi=Nr("checkbox",Vt),Hi=(0,ea.Z)(wi),[Wo,po]=(0,Ya.ZP)(wi,Hi),Uo=Object.assign({},jn);Mn&&!Or&&(Uo.onChange=function(){jn.onChange&&jn.onChange.apply(jn,arguments),Mn.toggleOption&&Mn.toggleOption({label:_r,value:jn.value})},Uo.name=Mn.name,Uo.checked=Mn.value.includes(jn.value));const xs=ze()(`${wi}-wrapper`,{[`${wi}-rtl`]:cr==="rtl",[`${wi}-wrapper-checked`]:Uo.checked,[`${wi}-wrapper-disabled`]:_i,[`${wi}-wrapper-in-form-item`]:Er},Lr==null?void 0:Lr.className,qt,Fn,Hi,po),Xi=ze()({[`${wi}-indeterminate`]:Jn},Oa.A,po),ws=Jn?"mixed":void 0;return Wo(v.createElement(ns.Z,{component:"Checkbox",disabled:_i},v.createElement("label",{className:xs,style:Object.assign(Object.assign({},Lr==null?void 0:Lr.style),hr),onMouseEnter:xr,onMouseLeave:Yr},v.createElement(us.Z,Object.assign({"aria-checked":ws},Uo,{prefixCls:wi,className:Xi,disabled:_i,ref:rt})),_r!==void 0&&v.createElement("span",null,_r))))};var Bl=v.forwardRef(jl),wl=_(99468),Tn=function(Je,rt){var Nt={};for(var Vt in Je)Object.prototype.hasOwnProperty.call(Je,Vt)&&rt.indexOf(Vt)<0&&(Nt[Vt]=Je[Vt]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,Vt=Object.getOwnPropertySymbols(Je);qt{const{defaultValue:Nt,children:Vt,options:qt=[],prefixCls:Fn,className:_r,rootClassName:Jn,style:hr,onChange:xr}=Je,Yr=Tn(Je,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Or,direction:Ki}=v.useContext(ga.E_),[jn,Nr]=v.useState(Yr.value||Nt||[]),[cr,Lr]=v.useState([]);v.useEffect(()=>{"value"in Yr&&Nr(Yr.value||[])},[Yr.value]);const Mn=v.useMemo(()=>qt.map(so=>typeof so=="string"||typeof so=="number"?{label:so,value:so}:so),[qt]),Er=so=>{Lr(Wi=>Wi.filter(va=>va!==so))},Vr=so=>{Lr(Wi=>[].concat((0,Dr.Z)(Wi),[so]))},_i=so=>{const Wi=jn.indexOf(so.value),va=(0,Dr.Z)(jn);Wi===-1?va.push(so.value):va.splice(Wi,1),"value"in Yr||Nr(va),xr==null||xr(va.filter(ha=>cr.includes(ha)).sort((ha,qs)=>{const Yt=Mn.findIndex(oi=>oi.value===ha),ar=Mn.findIndex(oi=>oi.value===qs);return Yt-ar}))},ai=Or("checkbox",Fn),wi=`${ai}-group`,Hi=(0,ea.Z)(ai),[Wo,po]=(0,Ya.ZP)(ai,Hi),Uo=(0,wl.Z)(Yr,["value","disabled"]),xs=qt.length?Mn.map(so=>v.createElement(Bl,{prefixCls:ai,key:so.value.toString(),disabled:"disabled"in so?so.disabled:Yr.disabled,value:so.value,checked:jn.includes(so.value),onChange:so.onChange,className:`${wi}-item`,style:so.style,title:so.title,id:so.id,required:so.required},so.label)):Vt,Xi={toggleOption:_i,value:jn,disabled:Yr.disabled,name:Yr.name,registerValue:Vr,cancelValue:Er},ws=ze()(wi,{[`${wi}-rtl`]:Ki==="rtl"},_r,Jn,Hi,po);return Wo(v.createElement("div",Object.assign({className:ws,style:hr},Uo,{ref:rt}),v.createElement(Ta.Provider,{value:Xi},xs)))},Iu=v.forwardRef(nc);var Pc=v.memo(Iu);const Wc=Bl;Wc.Group=Pc,Wc.__ANT_CHECKBOX=!0;var cd=Wc,Fc=_(4269),vh=_(59025);const Td={},Gh="SELECT_ALL",yh="SELECT_INVERT",kc="SELECT_NONE",Kh=[],$f=(Je,rt)=>{let Nt=[];return(rt||[]).forEach(Vt=>{Nt.push(Vt),Vt&&typeof Vt=="object"&&Je in Vt&&(Nt=[].concat((0,Dr.Z)(Nt),(0,Dr.Z)($f(Je,Vt[Je]))))}),Nt};var _h=(Je,rt)=>{const{preserveSelectedRowKeys:Nt,selectedRowKeys:Vt,defaultSelectedRowKeys:qt,getCheckboxProps:Fn,onChange:_r,onSelect:Jn,onSelectAll:hr,onSelectInvert:xr,onSelectNone:Yr,onSelectMultiple:Or,columnWidth:Ki,type:jn,selections:Nr,fixed:cr,renderCell:Lr,hideSelectAll:Mn,checkStrictly:Er=!0}=rt||{},{prefixCls:Vr,data:_i,pageData:ai,getRecordByKey:wi,getRowKey:Hi,expandType:Wo,childrenColumnName:po,locale:Uo,getPopupContainer:xs}=Je,Xi=(0,_o.ln)("Table"),[ws,so]=Qr(sa=>sa),[Wi,va]=(0,jr.Z)(Vt||qt||Kh,{value:Vt}),ha=v.useRef(new Map),qs=(0,v.useCallback)(sa=>{if(Nt){const ml=new Map;sa.forEach(kl=>{let Ys=wi(kl);!Ys&&ha.current.has(kl)&&(Ys=ha.current.get(kl)),ml.set(kl,Ys)}),ha.current=ml}},[wi,Nt]);v.useEffect(()=>{qs(Wi)},[Wi]);const{keyEntities:Yt}=(0,v.useMemo)(()=>{if(Er)return{keyEntities:null};let sa=_i;if(Nt){const ml=new Set(_i.map((Ys,$s)=>Hi(Ys,$s))),kl=Array.from(ha.current).reduce((Ys,$s)=>{let[Dl,ra]=$s;return ml.has(Dl)?Ys:Ys.concat(ra)},[]);sa=[].concat((0,Dr.Z)(sa),(0,Dr.Z)(kl))}return(0,Un.I8)(sa,{externalGetKey:Hi,childrenPropName:po})},[_i,Hi,Er,po,Nt]),ar=(0,v.useMemo)(()=>$f(po,ai),[po,ai]),oi=(0,v.useMemo)(()=>{const sa=new Map;return ar.forEach((ml,kl)=>{const Ys=Hi(ml,kl),$s=(Fn?Fn(ml):null)||{};sa.set(Ys,$s)}),sa},[ar,Hi,Fn]),ps=(0,v.useCallback)(sa=>{var ml;return!!(!((ml=oi.get(Hi(sa)))===null||ml===void 0)&&ml.disabled)},[oi,Hi]),[As,Aa]=(0,v.useMemo)(()=>{if(Er)return[Wi||[],[]];const{checkedKeys:sa,halfCheckedKeys:ml}=(0,tr.S)(Wi,!0,Yt,ps);return[sa||[],ml]},[Wi,Er,Yt,ps]),no=(0,v.useMemo)(()=>{const sa=jn==="radio"?As.slice(0,1):As;return new Set(sa)},[As,jn]),ao=(0,v.useMemo)(()=>jn==="radio"?new Set:new Set(Aa),[Aa,jn]);v.useEffect(()=>{rt||va(Kh)},[!!rt]);const Mo=(0,v.useCallback)((sa,ml)=>{let kl,Ys;qs(sa),Nt?(kl=sa,Ys=sa.map($s=>ha.current.get($s))):(kl=[],Ys=[],sa.forEach($s=>{const Dl=wi($s);Dl!==void 0&&(kl.push($s),Ys.push(Dl))})),va(kl),_r==null||_r(kl,Ys,{type:ml})},[va,wi,_r,Nt]),ta=(0,v.useCallback)((sa,ml,kl,Ys)=>{if(Jn){const $s=kl.map(Dl=>wi(Dl));Jn(wi(sa),ml,$s,Ys)}Mo(kl,"single")},[Jn,wi,Mo]),oa=(0,v.useMemo)(()=>!Nr||Mn?null:(Nr===!0?[Gh,yh,kc]:Nr).map(ml=>ml===Gh?{key:"all",text:Uo.selectionAll,onSelect(){Mo(_i.map((kl,Ys)=>Hi(kl,Ys)).filter(kl=>{const Ys=oi.get(kl);return!(Ys!=null&&Ys.disabled)||no.has(kl)}),"all")}}:ml===yh?{key:"invert",text:Uo.selectInvert,onSelect(){const kl=new Set(no);ai.forEach(($s,Dl)=>{const ra=Hi($s,Dl),ho=oi.get(ra);ho!=null&&ho.disabled||(kl.has(ra)?kl.delete(ra):kl.add(ra))});const Ys=Array.from(kl);xr&&(Xi.deprecated(!1,"onSelectInvert","onChange"),xr(Ys)),Mo(Ys,"invert")}}:ml===kc?{key:"none",text:Uo.selectNone,onSelect(){Yr==null||Yr(),Mo(Array.from(no).filter(kl=>{const Ys=oi.get(kl);return Ys==null?void 0:Ys.disabled}),"none")}}:ml).map(ml=>Object.assign(Object.assign({},ml),{onSelect:function(){for(var kl,Ys,$s=arguments.length,Dl=new Array($s),ra=0;ra<$s;ra++)Dl[ra]=arguments[ra];(Ys=ml.onSelect)===null||Ys===void 0||(kl=Ys).call.apply(kl,[ml].concat(Dl)),so(null)}})),[Nr,no,ai,Hi,xr,Mo]);return[(0,v.useCallback)(sa=>{var ml;if(!rt)return sa.filter(vu=>vu!==Td);let kl=(0,Dr.Z)(sa);const Ys=new Set(no),$s=ar.map(Hi).filter(vu=>!oi.get(vu).disabled),Dl=$s.every(vu=>Ys.has(vu)),ra=$s.some(vu=>Ys.has(vu)),ho=()=>{const vu=[];Dl?$s.forEach(xc=>{Ys.delete(xc),vu.push(xc)}):$s.forEach(xc=>{Ys.has(xc)||(Ys.add(xc),vu.push(xc))});const ka=Array.from(Ys);hr==null||hr(!Dl,ka.map(xc=>wi(xc)),vu.map(xc=>wi(xc))),Mo(ka,"all"),so(null)};let Sa,qo;if(jn!=="radio"){let vu;if(oa){const Du={getPopupContainer:xs,items:oa.map((Lc,hu)=>{const{key:Vd,text:Oc,onSelect:ud}=Lc;return{key:Vd!=null?Vd:hu,onClick:()=>{ud==null||ud($s)},label:Oc}})};vu=v.createElement("div",{className:`${Vr}-selection-extra`},v.createElement(Fc.Z,{menu:Du,getPopupContainer:xs},v.createElement("span",null,v.createElement(Tu.Z,null))))}const ka=ar.map((Du,Lc)=>{const hu=Hi(Du,Lc),Vd=oi.get(hu)||{};return Object.assign({checked:Ys.has(hu)},Vd)}).filter(Du=>{let{disabled:Lc}=Du;return Lc}),xc=!!ka.length&&ka.length===ar.length,zl=xc&&ka.every(Du=>{let{checked:Lc}=Du;return Lc}),Zc=xc&&ka.some(Du=>{let{checked:Lc}=Du;return Lc});qo=v.createElement(cd,{checked:xc?zl:!!ar.length&&Dl,indeterminate:xc?!zl&&Zc:!Dl&&ra,onChange:ho,disabled:ar.length===0||xc,"aria-label":vu?"Custom selection":"Select all",skipGroup:!0}),Sa=!Mn&&v.createElement("div",{className:`${Vr}-selection`},qo,vu)}let Pa;jn==="radio"?Pa=(vu,ka,xc)=>{const zl=Hi(ka,xc),Zc=Ys.has(zl);return{node:v.createElement(vh.ZP,Object.assign({},oi.get(zl),{checked:Zc,onClick:Du=>Du.stopPropagation(),onChange:Du=>{Ys.has(zl)||ta(zl,!0,[zl],Du.nativeEvent)}})),checked:Zc}}:Pa=(vu,ka,xc)=>{var zl;const Zc=Hi(ka,xc),Du=Ys.has(Zc),Lc=ao.has(Zc),hu=oi.get(Zc);let Vd;return Wo==="nest"?Vd=Lc:Vd=(zl=hu==null?void 0:hu.indeterminate)!==null&&zl!==void 0?zl:Lc,{node:v.createElement(cd,Object.assign({},hu,{indeterminate:Vd,checked:Du,skipGroup:!0,onClick:Oc=>Oc.stopPropagation(),onChange:Oc=>{let{nativeEvent:ud}=Oc;const{shiftKey:Dc}=ud,Ul=$s.findIndex(Ge=>Ge===Zc),Nh=As.some(Ge=>$s.includes(Ge));if(Dc&&Er&&Nh){const Ge=ws(Ul,$s,Ys),We=Array.from(Ys);Or==null||Or(!Du,We.map(yt=>wi(yt)),Ge.map(yt=>wi(yt))),Mo(We,"multiple")}else{const Ge=As;if(Er){const We=Du?(0,Si._5)(Ge,Zc):(0,Si.L0)(Ge,Zc);ta(Zc,!Du,We,ud)}else{const We=(0,tr.S)([].concat((0,Dr.Z)(Ge),[Zc]),!0,Yt,ps),{checkedKeys:yt,halfCheckedKeys:Pn}=We;let xi=yt;if(Du){const Zn=new Set(yt);Zn.delete(Zc),xi=(0,tr.S)(Array.from(Zn),{checked:!1,halfCheckedKeys:Pn},Yt,ps).checkedKeys}ta(Zc,!Du,xi,ud)}}so(Du?null:Ul)}})),checked:Du}};const ja=(vu,ka,xc)=>{const{node:zl,checked:Zc}=Pa(vu,ka,xc);return Lr?Lr(Zc,ka,xc,zl):zl};if(!kl.includes(Td))if(kl.findIndex(vu=>{var ka;return((ka=vu[It])===null||ka===void 0?void 0:ka.columnType)==="EXPAND_COLUMN"})===0){const[vu,...ka]=kl;kl=[vu,Td].concat((0,Dr.Z)(ka))}else kl=[Td].concat((0,Dr.Z)(kl));const Rl=kl.indexOf(Td);kl=kl.filter((vu,ka)=>vu!==Td||ka===Rl);const Ga=kl[Rl-1],yi=kl[Rl+1];let ls=cr;ls===void 0&&((yi==null?void 0:yi.fixed)!==void 0?ls=yi.fixed:(Ga==null?void 0:Ga.fixed)!==void 0&&(ls=Ga.fixed)),ls&&Ga&&((ml=Ga[It])===null||ml===void 0?void 0:ml.columnType)==="EXPAND_COLUMN"&&Ga.fixed===void 0&&(Ga.fixed=ls);const ma=ze()(`${Vr}-selection-col`,{[`${Vr}-selection-col-with-dropdown`]:Nr&&jn==="checkbox"}),ol=()=>rt!=null&&rt.columnTitle?typeof rt.columnTitle=="function"?rt.columnTitle(qo):rt.columnTitle:Sa,xu={fixed:ls,width:Ki,className:`${Vr}-selection-column`,title:ol(),render:ja,onCell:rt.onCell,[It]:{className:ma}};return kl.map(vu=>vu===Td?xu:vu)},[Hi,ar,rt,As,no,ao,Ki,oa,Wo,oi,Or,ta,ps]),no]};function Qh(Je,rt){return Je._antProxy=Je._antProxy||{},Object.keys(rt).forEach(Nt=>{if(!(Nt in Je._antProxy)){const Vt=Je[Nt];Je._antProxy[Nt]=Vt,Je[Nt]=rt[Nt]}}),Je}function Mh(Je,rt){return(0,v.useImperativeHandle)(Je,()=>{const Nt=rt(),{nativeElement:Vt}=Nt;return typeof Proxy!="undefined"?new Proxy(Vt,{get(qt,Fn){return Nt[Fn]?Nt[Fn]:Reflect.get(qt,Fn)}}):Qh(Vt,Nt)})}var Wd=_(90571);function zs(Je,rt,Nt,Vt){const qt=Nt-rt;return Je/=Vt/2,Je<1?qt/2*Je*Je*Je+rt:qt/2*((Je-=2)*Je*Je+2)+rt}function $a(Je){return Je!=null&&Je===Je.window}function Ja(Je,rt){var Nt,Vt;if(typeof window=="undefined")return 0;const qt=rt?"scrollTop":"scrollLeft";let Fn=0;return $a(Je)?Fn=Je[rt?"pageYOffset":"pageXOffset"]:Je instanceof Document?Fn=Je.documentElement[qt]:(Je instanceof HTMLElement||Je)&&(Fn=Je[qt]),Je&&!$a(Je)&&typeof Fn!="number"&&(Fn=(Vt=((Nt=Je.ownerDocument)!==null&&Nt!==void 0?Nt:Je).documentElement)===null||Vt===void 0?void 0:Vt[qt]),Fn}function pl(Je){let rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Nt=()=>window,callback:Vt,duration:qt=450}=rt,Fn=Nt(),_r=Ja(Fn,!0),Jn=Date.now(),hr=()=>{const Yr=Date.now()-Jn,Or=zs(Yr>qt?qt:Yr,_r,Je,qt);$a(Fn)?Fn.scrollTo(window.pageXOffset,Or):Fn instanceof Document||Fn.constructor.name==="HTMLDocument"?Fn.documentElement.scrollTop=Or:Fn.scrollTop=Or,Yr=0||Wi.relatedTarget.className.indexOf("".concat(xr,"-item"))>=0))&&(hr==null||hr(Er())))},Hi=function(Wi){Lr!==""&&(Wi.keyCode===su.Z.ENTER||Wi.type==="click")&&(Mn(""),hr==null||hr(Er()))},Wo=function(){return Vt.some(function(Wi){return Wi.toString()===_r.toString()})?Vt:Vt.concat([_r.toString()]).sort(function(Wi,va){var ha=Number.isNaN(Number(Wi))?0:Number(Wi),qs=Number.isNaN(Number(va))?0:Number(va);return ha-qs})},po="".concat(xr,"-options");if(!Fn&&!hr)return null;var Uo=null,xs=null,Xi=null;if(Fn&&Yr){var ws=Wo().map(function(so,Wi){return v.createElement(Yr.Option,{key:Wi,value:so.toString()},Vr(so))});Uo=v.createElement(Yr,{disabled:Ki,prefixCls:Or,showSearch:!1,className:"".concat(po,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(_r||Vt[0]).toString(),onChange:_i,getPopupContainer:function(Wi){return Wi.parentNode},"aria-label":qt.page_size,defaultOpen:!1},ws)}return hr&&(Jn&&(Xi=typeof Jn=="boolean"?v.createElement("button",{type:"button",onClick:Hi,onKeyUp:Hi,disabled:Ki,className:"".concat(po,"-quick-jumper-button")},qt.jump_to_confirm):v.createElement("span",{onClick:Hi,onKeyUp:Hi},Jn)),xs=v.createElement("div",{className:"".concat(po,"-quick-jumper")},qt.jump_to,v.createElement("input",{disabled:Ki,type:"text",value:Lr,onChange:ai,onKeyUp:Hi,onBlur:wi,"aria-label":qt.page}),qt.page,Xi)),v.createElement("li",{className:po},Uo,xs)},Uh=md,Qa=function(rt){var Nt,Vt=rt.rootPrefixCls,qt=rt.page,Fn=rt.active,_r=rt.className,Jn=rt.showTitle,hr=rt.onClick,xr=rt.onKeyPress,Yr=rt.itemRender,Or="".concat(Vt,"-item"),Ki=ze()(Or,"".concat(Or,"-").concat(qt),(Nt={},(0,Ie.Z)(Nt,"".concat(Or,"-active"),Fn),(0,Ie.Z)(Nt,"".concat(Or,"-disabled"),!qt),Nt),_r),jn=function(){hr(qt)},Nr=function(Mn){xr(Mn,hr,qt)},cr=Yr(qt,"page",v.createElement("a",{rel:"nofollow"},qt));return cr?v.createElement("li",{title:Jn?String(qt):null,className:Ki,onClick:jn,onKeyDown:Nr,tabIndex:0},cr):null},_u=Qa,Al=function(rt,Nt,Vt){return Vt};function du(){}function Au(Je){var rt=Number(Je);return typeof rt=="number"&&!Number.isNaN(rt)&&isFinite(rt)&&Math.floor(rt)===rt}function Sc(Je,rt,Nt){var Vt=typeof Je=="undefined"?rt:Je;return Math.floor((Nt-1)/Vt)+1}var _d=function(rt){var Nt,Vt=rt.prefixCls,qt=Vt===void 0?"rc-pagination":Vt,Fn=rt.selectPrefixCls,_r=Fn===void 0?"rc-select":Fn,Jn=rt.className,hr=rt.selectComponentClass,xr=rt.current,Yr=rt.defaultCurrent,Or=Yr===void 0?1:Yr,Ki=rt.total,jn=Ki===void 0?0:Ki,Nr=rt.pageSize,cr=rt.defaultPageSize,Lr=cr===void 0?10:cr,Mn=rt.onChange,Er=Mn===void 0?du:Mn,Vr=rt.hideOnSinglePage,_i=rt.showPrevNextJumpers,ai=_i===void 0?!0:_i,wi=rt.showQuickJumper,Hi=rt.showLessItems,Wo=rt.showTitle,po=Wo===void 0?!0:Wo,Uo=rt.onShowSizeChange,xs=Uo===void 0?du:Uo,Xi=rt.locale,ws=Xi===void 0?tl:Xi,so=rt.style,Wi=rt.totalBoundaryShowSizeChanger,va=Wi===void 0?50:Wi,ha=rt.disabled,qs=rt.simple,Yt=rt.showTotal,ar=rt.showSizeChanger,oi=rt.pageSizeOptions,ps=rt.itemRender,As=ps===void 0?Al:ps,Aa=rt.jumpPrevIcon,no=rt.jumpNextIcon,ao=rt.prevIcon,Mo=rt.nextIcon,ta=v.useRef(null),oa=(0,jr.Z)(10,{value:Nr,defaultValue:Lr}),Ke=(0,b.Z)(oa,2),sa=Ke[0],ml=Ke[1],kl=(0,jr.Z)(1,{value:xr,defaultValue:Or,postState:function(Co){return Math.max(1,Math.min(Co,Sc(void 0,sa,jn)))}}),Ys=(0,b.Z)(kl,2),$s=Ys[0],Dl=Ys[1],ra=v.useState($s),ho=(0,b.Z)(ra,2),Sa=ho[0],qo=ho[1],Pa=Er!==du,ja="current"in rt,Rl=Math.max(1,$s-(Hi?3:5)),Ga=Math.min(Sc(void 0,sa,jn),$s+(Hi?3:5));function yi(Fo,Co){var Ws=Fo||v.createElement("button",{type:"button","aria-label":Co,className:"".concat(qt,"-item-link")});return typeof Fo=="function"&&(Ws=v.createElement(Fo,(0,$e.Z)({},rt))),Ws}function ls(Fo){var Co=Fo.target.value,Ws=Sc(void 0,sa,jn),za;return Co===""?za=Co:Number.isNaN(Number(Co))?za=Sa:Co>=Ws?za=Ws:za=Number(Co),za}function ma(Fo){return Au(Fo)&&Fo!==$s&&Au(jn)&&jn>0}var ol=jn>sa?wi:!1;function xu(Fo){(Fo.keyCode===su.Z.UP||Fo.keyCode===su.Z.DOWN)&&Fo.preventDefault()}function vu(Fo){var Co=ls(Fo);switch(Co!==Sa&&qo(Co),Fo.keyCode){case su.Z.ENTER:zl(Co);break;case su.Z.UP:zl(Co-1);break;case su.Z.DOWN:zl(Co+1);break;default:break}}function ka(Fo){zl(ls(Fo))}function xc(Fo){var Co=Sc(Fo,sa,jn),Ws=$s>Co&&Co!==0?Co:$s;ml(Fo),qo(Ws),xs==null||xs($s,Fo),Dl(Ws),Er==null||Er(Ws,Fo)}function zl(Fo){if(ma(Fo)&&!ha){var Co=Sc(void 0,sa,jn),Ws=Fo;return Fo>Co?Ws=Co:Fo<1&&(Ws=1),Ws!==Sa&&qo(Ws),Dl(Ws),Er==null||Er(Ws,sa),Ws}return $s}var Zc=$s>1,Du=$sva;function hu(){Zc&&zl($s-1)}function Vd(){Du&&zl($s+1)}function Oc(){zl(Rl)}function ud(){zl(Ga)}function Dc(Fo,Co){if(Fo.key==="Enter"||Fo.charCode===su.Z.ENTER||Fo.keyCode===su.Z.ENTER){for(var Ws=arguments.length,za=new Array(Ws>2?Ws-2:0),Ql=2;Qljn?jn:$s*sa])),Zs=null,La=Sc(void 0,sa,jn);if(Vr&&jn<=sa)return null;var uu=[],Jo={rootPrefixCls:qt,onClick:zl,onKeyPress:Dc,showTitle:po,itemRender:As,page:-1},ya=$s-1>0?$s-1:0,Ea=$s+1=go*2&&$s!==1+2&&(uu[0]=v.cloneElement(uu[0],{className:ze()("".concat(qt,"-item-after-jump-prev"),uu[0].props.className)}),uu.unshift(Zn)),La-$s>=go*2&&$s!==La-2&&(uu[uu.length-1]=v.cloneElement(uu.at(-1),{className:ze()("".concat(qt,"-item-before-jump-next"),uu.at(-1).props.className)}),uu.push(Zs)),Xs!==1&&uu.unshift(v.createElement(_u,(0,A.Z)({},Jo,{key:1,page:1}))),Wa!==La&&uu.push(v.createElement(_u,(0,A.Z)({},Jo,{key:La,page:La})))}var Da=yt(ya);if(Da){var No=!Zc||!La;Da=v.createElement("li",{title:po?ws.prev_page:null,onClick:hu,tabIndex:No?null:0,onKeyDown:Ul,className:ze()("".concat(qt,"-prev"),(0,Ie.Z)({},"".concat(qt,"-disabled"),No)),"aria-disabled":No},Da)}var qa=Pn(Ea);if(qa){var xl,Sl;qs?(xl=!Du,Sl=Zc?0:null):(xl=!Du||!La,Sl=xl?null:0),qa=v.createElement("li",{title:po?ws.next_page:null,onClick:Vd,tabIndex:Sl,onKeyDown:Nh,className:ze()("".concat(qt,"-next"),(0,Ie.Z)({},"".concat(qt,"-disabled"),xl)),"aria-disabled":xl},qa)}var Uu=ze()(qt,Jn,(Nt={},(0,Ie.Z)(Nt,"".concat(qt,"-simple"),qs),(0,Ie.Z)(Nt,"".concat(qt,"-disabled"),ha),Nt));return v.createElement("ul",(0,A.Z)({className:Uu,style:so,ref:ta},ci),So,Da,qs?Ls:uu,qa,v.createElement(Uh,{locale:ws,rootPrefixCls:qt,disabled:ha,selectComponentClass:hr,selectPrefixCls:_r,changeSize:Lc?xc:null,pageSize:sa,pageSizeOptions:oi,quickGo:ol?zl:null,goButton:Ma}))},wd=_d,ef=_(99730),Jh=_(66951),uh=_(81661);const cf=Je=>v.createElement(uh.Z,Object.assign({},Je,{showSearch:!0,size:"small"})),Rh=Je=>v.createElement(uh.Z,Object.assign({},Je,{showSearch:!0,size:"middle"}));cf.Option=uh.Z.Option,Rh.Option=uh.Z.Option;var yc=_(36646),qd=_(7440),rd=_(35772),Mf=_(80172),vf=_(67859);const qc=Je=>{const{componentCls:rt}=Je;return{[`${rt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${rt}-item-link`]:{color:Je.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${rt}-item-link`]:{color:Je.colorTextDisabled,cursor:"not-allowed"}}},[`&${rt}-disabled`]:{cursor:"not-allowed",[`${rt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Je.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Je.colorBorder,backgroundColor:Je.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Je.itemActiveBgDisabled},a:{color:Je.itemActiveColorDisabled}}},[`${rt}-item-link`]:{color:Je.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${rt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${rt}-simple-pager`]:{color:Je.colorTextDisabled},[`${rt}-jump-prev, ${rt}-jump-next`]:{[`${rt}-item-link-icon`]:{opacity:0},[`${rt}-item-ellipsis`]:{opacity:1}}},[`&${rt}-simple`]:{[`${rt}-prev, ${rt}-next`]:{[`&${rt}-disabled ${rt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},id=Je=>{const{componentCls:rt}=Je;return{[`&${rt}-mini ${rt}-total-text, &${rt}-mini ${rt}-simple-pager`]:{height:Je.itemSizeSM,lineHeight:(0,yc.bf)(Je.itemSizeSM)},[`&${rt}-mini ${rt}-item`]:{minWidth:Je.itemSizeSM,height:Je.itemSizeSM,margin:0,lineHeight:(0,yc.bf)(Je.calc(Je.itemSizeSM).sub(2).equal())},[`&${rt}-mini:not(${rt}-disabled) ${rt}-item:not(${rt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Je.colorBgTextHover},"&:active":{backgroundColor:Je.colorBgTextActive}},[`&${rt}-mini ${rt}-prev, &${rt}-mini ${rt}-next`]:{minWidth:Je.itemSizeSM,height:Je.itemSizeSM,margin:0,lineHeight:(0,yc.bf)(Je.itemSizeSM)},[`&${rt}-mini:not(${rt}-disabled)`]:{[`${rt}-prev, ${rt}-next`]:{[`&:hover ${rt}-item-link`]:{backgroundColor:Je.colorBgTextHover},[`&:active ${rt}-item-link`]:{backgroundColor:Je.colorBgTextActive},[`&${rt}-disabled:hover ${rt}-item-link`]:{backgroundColor:"transparent"}}},[` + `]:{animationName:B,animationPlayState:"running"},[`${C}${b}-leave${b}-leave-active`]:{animationName:V,animationPlayState:"running",pointerEvents:"none"}}}},33297:function(yt,Y,y){"use strict";y.d(Y,{Fm:function(){return O}});var v=y(43109),P=y(93590);const w=new v.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),b=new v.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),B=new v.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),V=new v.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),k=new v.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),R=new v.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),C=new v.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new v.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),A={"move-up":{inKeyframes:C,outKeyframes:g},"move-down":{inKeyframes:w,outKeyframes:b},"move-left":{inKeyframes:B,outKeyframes:V},"move-right":{inKeyframes:k,outKeyframes:R}},O=(K,he)=>{const{antCls:ae}=K,fe=`${ae}-${he}`,{inKeyframes:xe,outKeyframes:ye}=A[he];return[(0,P.R)(fe,xe,ye,K.motionDurationMid),{[` + ${fe}-enter, + ${fe}-appear + `]:{opacity:0,animationTimingFunction:K.motionEaseOutCirc},[`${fe}-leave`]:{animationTimingFunction:K.motionEaseInOutCirc}}]}},48611:function(yt,Y,y){"use strict";y.d(Y,{Qt:function(){return B},Uw:function(){return b},fJ:function(){return w},ly:function(){return V},oN:function(){return O}});var v=y(43109),P=y(93590);const w=new v.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),b=new v.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),B=new v.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),V=new v.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),k=new v.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),R=new v.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),C=new v.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),g=new v.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),A={"slide-up":{inKeyframes:w,outKeyframes:b},"slide-down":{inKeyframes:B,outKeyframes:V},"slide-left":{inKeyframes:k,outKeyframes:R},"slide-right":{inKeyframes:C,outKeyframes:g}},O=(K,he)=>{const{antCls:ae}=K,fe=`${ae}-${he}`,{inKeyframes:xe,outKeyframes:ye}=A[he];return[(0,P.R)(fe,xe,ye,K.motionDurationMid),{[` + ${fe}-enter, + ${fe}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:K.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${fe}-leave`]:{animationTimingFunction:K.motionEaseInQuint}}]}},50438:function(yt,Y,y){"use strict";y.d(Y,{_y:function(){return fe},kr:function(){return w}});var v=y(43109),P=y(93590);const w=new v.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),b=new v.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),B=new v.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),V=new v.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),k=new v.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),R=new v.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),C=new v.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),g=new v.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),A=new v.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),O=new v.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),K=new v.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),he=new v.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),ae={zoom:{inKeyframes:w,outKeyframes:b},"zoom-big":{inKeyframes:B,outKeyframes:V},"zoom-big-fast":{inKeyframes:B,outKeyframes:V},"zoom-left":{inKeyframes:C,outKeyframes:g},"zoom-right":{inKeyframes:A,outKeyframes:O},"zoom-up":{inKeyframes:k,outKeyframes:R},"zoom-down":{inKeyframes:K,outKeyframes:he}},fe=(xe,ye)=>{const{antCls:be}=xe,Qe=`${be}-${ye}`,{inKeyframes:Ve,outKeyframes:pt}=ae[ye];return[(0,P.R)(Qe,Ve,pt,ye==="zoom-big-fast"?xe.motionDurationFast:xe.motionDurationMid),{[` + ${Qe}-enter, + ${Qe}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:xe.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${Qe}-leave`]:{animationTimingFunction:xe.motionEaseInOutCirc}}]}},49867:function(yt,Y,y){"use strict";y.d(Y,{N:function(){return v}});const v=P=>({color:P.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${P.motionDurationSlow}`,"&:focus, &:hover":{color:P.colorLinkHover},"&:active":{color:P.colorLinkActive}})},97414:function(yt,Y,y){"use strict";y.d(Y,{ZP:function(){return B},qN:function(){return P},wZ:function(){return w}});var v=y(79511);const P=8;function w(V){const{contentRadius:k,limitVerticalRadius:R}=V,C=k>12?k+2:12;return{arrowOffsetHorizontal:C,arrowOffsetVertical:R?P:C}}function b(V,k){return V?k:{}}function B(V,k,R){const{componentCls:C,boxShadowPopoverArrow:g,arrowOffsetVertical:A,arrowOffsetHorizontal:O}=V,{arrowDistance:K=0,arrowPlacement:he={left:!0,right:!0,top:!0,bottom:!0}}=R||{};return{[C]:Object.assign(Object.assign(Object.assign(Object.assign({[`${C}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,v.W)(V,k,g)),{"&:before":{background:k}})]},b(!!he.top,{[[`&-placement-top ${C}-arrow`,`&-placement-topLeft ${C}-arrow`,`&-placement-topRight ${C}-arrow`].join(",")]:{bottom:K,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${C}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${C}-arrow`]:{left:{_skip_check_:!0,value:O}},[`&-placement-topRight ${C}-arrow`]:{right:{_skip_check_:!0,value:O}}})),b(!!he.bottom,{[[`&-placement-bottom ${C}-arrow`,`&-placement-bottomLeft ${C}-arrow`,`&-placement-bottomRight ${C}-arrow`].join(",")]:{top:K,transform:"translateY(-100%)"},[`&-placement-bottom ${C}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${C}-arrow`]:{left:{_skip_check_:!0,value:O}},[`&-placement-bottomRight ${C}-arrow`]:{right:{_skip_check_:!0,value:O}}})),b(!!he.left,{[[`&-placement-left ${C}-arrow`,`&-placement-leftTop ${C}-arrow`,`&-placement-leftBottom ${C}-arrow`].join(",")]:{right:{_skip_check_:!0,value:K},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${C}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${C}-arrow`]:{top:A},[`&-placement-leftBottom ${C}-arrow`]:{bottom:A}})),b(!!he.right,{[[`&-placement-right ${C}-arrow`,`&-placement-rightTop ${C}-arrow`,`&-placement-rightBottom ${C}-arrow`].join(",")]:{left:{_skip_check_:!0,value:K},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${C}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${C}-arrow`]:{top:A},[`&-placement-rightBottom ${C}-arrow`]:{bottom:A}}))}}},79511:function(yt,Y,y){"use strict";y.d(Y,{W:function(){return w},w:function(){return P}});var v=y(43109);function P(b){const{sizePopupArrow:B,borderRadiusXS:V,borderRadiusOuter:k}=b,R=B/2,C=0,g=R,A=k*1/Math.sqrt(2),O=R-k*(1-1/Math.sqrt(2)),K=R-V*(1/Math.sqrt(2)),he=k*(Math.sqrt(2)-1)+V*(1/Math.sqrt(2)),ae=2*R-K,fe=he,xe=2*R-A,ye=O,be=2*R-C,Qe=g,Ve=R*Math.sqrt(2)+k*(Math.sqrt(2)-2),pt=k*(Math.sqrt(2)-1),st=`polygon(${pt}px 100%, 50% ${pt}px, ${2*R-pt}px 100%, ${pt}px 100%)`,Ae=`path('M ${C} ${g} A ${k} ${k} 0 0 0 ${A} ${O} L ${K} ${he} A ${V} ${V} 0 0 1 ${ae} ${fe} L ${xe} ${ye} A ${k} ${k} 0 0 0 ${be} ${Qe} Z')`;return{arrowShadowWidth:Ve,arrowPath:Ae,arrowPolygon:st}}const w=(b,B,V)=>{const{sizePopupArrow:k,arrowPolygon:R,arrowPath:C,arrowShadowWidth:g,borderRadiusXS:A,calc:O}=b;return{pointerEvents:"none",width:k,height:k,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:k,height:O(k).div(2).equal(),background:B,clipPath:{_multi_value_:!0,value:[R,C]},content:'""'},"&::after":{content:'""',position:"absolute",width:g,height:g,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,v.bf)(A)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:V,zIndex:0,background:"transparent"}}}},72269:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return Xt}});var v=y(67294),P=y(22508),w=y(94184),b=y.n(w),B=y(87462),V=y(4942),k=y(97685),R=y(91),C=y(21770),g=y(15105),A=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],O=v.forwardRef(function(St,nt){var wt,lt=St.prefixCls,Kt=lt===void 0?"rc-switch":lt,Mt=St.className,hn=St.checked,un=St.defaultChecked,Sr=St.disabled,ii=St.loadingIcon,Ii=St.checkedChildren,Ni=St.unCheckedChildren,eo=St.onClick,ti=St.onChange,Is=St.onKeyDown,Ns=(0,R.Z)(St,A),Se=(0,C.Z)(!1,{value:hn,defaultValue:un}),Xi=(0,k.Z)(Se,2),Yi=Xi[0],fo=Xi[1];function di(Ot,Ht){var Pn=Yi;return Sr||(Pn=Ot,fo(Pn),ti==null||ti(Pn,Ht)),Pn}function Fs(Ot){Ot.which===g.Z.LEFT?di(!1,Ot):Ot.which===g.Z.RIGHT&&di(!0,Ot),Is==null||Is(Ot)}function Ln(Ot){var Ht=di(!Yi,Ot);eo==null||eo(Ht,Ot)}var it=b()(Kt,Mt,(wt={},(0,V.Z)(wt,"".concat(Kt,"-checked"),Yi),(0,V.Z)(wt,"".concat(Kt,"-disabled"),Sr),wt));return v.createElement("button",(0,B.Z)({},Ns,{type:"button",role:"switch","aria-checked":Yi,disabled:Sr,className:it,ref:nt,onKeyDown:Fs,onClick:Ln}),ii,v.createElement("span",{className:"".concat(Kt,"-inner")},v.createElement("span",{className:"".concat(Kt,"-inner-checked")},Ii),v.createElement("span",{className:"".concat(Kt,"-inner-unchecked")},Ni)))});O.displayName="Switch";var K=O,he=y(45353),ae=y(53124),fe=y(98866),xe=y(98675),ye=y(43109),be=y(10274),Qe=y(14747),Ve=y(91945),pt=y(45503);const st=St=>{const{componentCls:nt,trackHeightSM:wt,trackPadding:lt,trackMinWidthSM:Kt,innerMinMarginSM:Mt,innerMaxMarginSM:hn,handleSizeSM:un,calc:Sr}=St,ii=`${nt}-inner`,Ii=(0,ye.bf)(Sr(un).add(Sr(lt).mul(2)).equal()),Ni=(0,ye.bf)(Sr(hn).mul(2).equal());return{[nt]:{[`&${nt}-small`]:{minWidth:Kt,height:wt,lineHeight:(0,ye.bf)(wt),[`${nt}-inner`]:{paddingInlineStart:hn,paddingInlineEnd:Mt,[`${ii}-checked`]:{marginInlineStart:`calc(-100% + ${Ii} - ${Ni})`,marginInlineEnd:`calc(100% - ${Ii} + ${Ni})`},[`${ii}-unchecked`]:{marginTop:Sr(wt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${nt}-handle`]:{width:un,height:un},[`${nt}-loading-icon`]:{top:Sr(Sr(un).sub(St.switchLoadingIconSize)).div(2).equal(),fontSize:St.switchLoadingIconSize},[`&${nt}-checked`]:{[`${nt}-inner`]:{paddingInlineStart:Mt,paddingInlineEnd:hn,[`${ii}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ii}-unchecked`]:{marginInlineStart:`calc(100% - ${Ii} + ${Ni})`,marginInlineEnd:`calc(-100% + ${Ii} - ${Ni})`}},[`${nt}-handle`]:{insetInlineStart:`calc(100% - ${(0,ye.bf)(Sr(un).add(lt).equal())})`}},[`&:not(${nt}-disabled):active`]:{[`&:not(${nt}-checked) ${ii}`]:{[`${ii}-unchecked`]:{marginInlineStart:Sr(St.marginXXS).div(2).equal(),marginInlineEnd:Sr(St.marginXXS).mul(-1).div(2).equal()}},[`&${nt}-checked ${ii}`]:{[`${ii}-checked`]:{marginInlineStart:Sr(St.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Sr(St.marginXXS).div(2).equal()}}}}}}},Ae=St=>{const{componentCls:nt,handleSize:wt,calc:lt}=St;return{[nt]:{[`${nt}-loading-icon${St.iconCls}`]:{position:"relative",top:lt(lt(wt).sub(St.fontSize)).div(2).equal(),color:St.switchLoadingIconColor,verticalAlign:"top"},[`&${nt}-checked ${nt}-loading-icon`]:{color:St.switchColor}}}},De=St=>{const{componentCls:nt,trackPadding:wt,handleBg:lt,handleShadow:Kt,handleSize:Mt,calc:hn}=St,un=`${nt}-handle`;return{[nt]:{[un]:{position:"absolute",top:wt,insetInlineStart:wt,width:Mt,height:Mt,transition:`all ${St.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:lt,borderRadius:hn(Mt).div(2).equal(),boxShadow:Kt,transition:`all ${St.switchDuration} ease-in-out`,content:'""'}},[`&${nt}-checked ${un}`]:{insetInlineStart:`calc(100% - ${(0,ye.bf)(hn(Mt).add(wt).equal())})`},[`&:not(${nt}-disabled):active`]:{[`${un}::before`]:{insetInlineEnd:St.switchHandleActiveInset,insetInlineStart:0},[`&${nt}-checked ${un}::before`]:{insetInlineEnd:0,insetInlineStart:St.switchHandleActiveInset}}}}},Te=St=>{const{componentCls:nt,trackHeight:wt,trackPadding:lt,innerMinMargin:Kt,innerMaxMargin:Mt,handleSize:hn,calc:un}=St,Sr=`${nt}-inner`,ii=(0,ye.bf)(un(hn).add(un(lt).mul(2)).equal()),Ii=(0,ye.bf)(un(Mt).mul(2).equal());return{[nt]:{[Sr]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Mt,paddingInlineEnd:Kt,transition:`padding-inline-start ${St.switchDuration} ease-in-out, padding-inline-end ${St.switchDuration} ease-in-out`,[`${Sr}-checked, ${Sr}-unchecked`]:{display:"block",color:St.colorTextLightSolid,fontSize:St.fontSizeSM,transition:`margin-inline-start ${St.switchDuration} ease-in-out, margin-inline-end ${St.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Sr}-checked`]:{marginInlineStart:`calc(-100% + ${ii} - ${Ii})`,marginInlineEnd:`calc(100% - ${ii} + ${Ii})`},[`${Sr}-unchecked`]:{marginTop:un(wt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${nt}-checked ${Sr}`]:{paddingInlineStart:Kt,paddingInlineEnd:Mt,[`${Sr}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Sr}-unchecked`]:{marginInlineStart:`calc(100% - ${ii} + ${Ii})`,marginInlineEnd:`calc(-100% + ${ii} - ${Ii})`}},[`&:not(${nt}-disabled):active`]:{[`&:not(${nt}-checked) ${Sr}`]:{[`${Sr}-unchecked`]:{marginInlineStart:un(lt).mul(2).equal(),marginInlineEnd:un(lt).mul(-1).mul(2).equal()}},[`&${nt}-checked ${Sr}`]:{[`${Sr}-checked`]:{marginInlineStart:un(lt).mul(-1).mul(2).equal(),marginInlineEnd:un(lt).mul(2).equal()}}}}}},Me=St=>{const{componentCls:nt,trackHeight:wt,trackMinWidth:lt}=St;return{[nt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Qe.Wf)(St)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:lt,height:wt,lineHeight:`${(0,ye.bf)(wt)}`,verticalAlign:"middle",background:St.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${St.motionDurationMid}`,userSelect:"none",[`&:hover:not(${nt}-disabled)`]:{background:St.colorTextTertiary}}),(0,Qe.Qy)(St)),{[`&${nt}-checked`]:{background:St.switchColor,[`&:hover:not(${nt}-disabled)`]:{background:St.colorPrimaryHover}},[`&${nt}-loading, &${nt}-disabled`]:{cursor:"not-allowed",opacity:St.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${nt}-rtl`]:{direction:"rtl"}})}},Ue=St=>{const{fontSize:nt,lineHeight:wt,controlHeight:lt,colorWhite:Kt}=St,Mt=nt*wt,hn=lt/2,un=2,Sr=Mt-un*2,ii=hn-un*2;return{trackHeight:Mt,trackHeightSM:hn,trackMinWidth:Sr*2+un*4,trackMinWidthSM:ii*2+un*2,trackPadding:un,handleBg:Kt,handleSize:Sr,handleSizeSM:ii,handleShadow:`0 2px 4px 0 ${new be.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Sr/2,innerMaxMargin:Sr+un+un*2,innerMinMarginSM:ii/2,innerMaxMarginSM:ii+un+un*2}};var Pe=(0,Ve.I$)("Switch",St=>{const nt=(0,pt.TS)(St,{switchDuration:St.motionDurationMid,switchColor:St.colorPrimary,switchDisabledOpacity:St.opacityLoading,switchLoadingIconSize:St.calc(St.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${St.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Me(nt),Te(nt),De(nt),Ae(nt),st(nt)]},Ue),Xe=function(St,nt){var wt={};for(var lt in St)Object.prototype.hasOwnProperty.call(St,lt)&&nt.indexOf(lt)<0&&(wt[lt]=St[lt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kt=0,lt=Object.getOwnPropertySymbols(St);Kt{const{prefixCls:wt,size:lt,disabled:Kt,loading:Mt,className:hn,rootClassName:un,style:Sr,checked:ii,value:Ii,defaultChecked:Ni,defaultValue:eo,onChange:ti}=St,Is=Xe(St,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Ns,Se]=(0,C.Z)(!1,{value:ii!=null?ii:Ii,defaultValue:Ni!=null?Ni:eo}),{getPrefixCls:Xi,direction:Yi,switch:fo}=v.useContext(ae.E_),di=v.useContext(fe.Z),Fs=(Kt!=null?Kt:di)||Mt,Ln=Xi("switch",wt),it=v.createElement("div",{className:`${Ln}-handle`},Mt&&v.createElement(P.Z,{className:`${Ln}-loading-icon`})),[Ot,Ht]=Pe(Ln),Pn=(0,xe.Z)(lt),fr=b()(fo==null?void 0:fo.className,{[`${Ln}-small`]:Pn==="small",[`${Ln}-loading`]:Mt,[`${Ln}-rtl`]:Yi==="rtl"},hn,un,Ht),In=Object.assign(Object.assign({},fo==null?void 0:fo.style),Sr),mn=function(){Se(arguments.length<=0?void 0:arguments[0]),ti==null||ti.apply(void 0,arguments)};return Ot(v.createElement(he.Z,{component:"Switch"},v.createElement(K,Object.assign({},Is,{checked:Ns,onChange:mn,prefixCls:Ln,className:fr,style:In,disabled:Fs,ref:nt,loadingIcon:it}))))});Be.__ANT_SWITCH=!0;var Xt=Be},17173:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return ri}});var v=y(67294),P={},w="rc-table-internal-hook",b=y(97685),B=y(66680),V=y(8410),k=y(91881),R=y(73935);function C(Ye){var rt=v.createContext(void 0),Ft=function(Jt){var Fn=Jt.value,_r=Jt.children,Yn=v.useRef(Fn);Yn.current=Fn;var gr=v.useState(function(){return{getValue:function(){return Yn.current},listeners:new Set}}),xr=(0,b.Z)(gr,1),Yr=xr[0];return(0,V.Z)(function(){(0,R.unstable_batchedUpdates)(function(){Yr.listeners.forEach(function(Br){Br(Fn)})})},[Fn]),v.createElement(rt.Provider,{value:Yr},_r)};return{Context:rt,Provider:Ft,defaultValue:Ye}}function g(Ye,rt){var Ft=(0,B.Z)(typeof rt=="function"?rt:function(Br){if(rt===void 0)return Br;if(!Array.isArray(rt))return Br[rt];var Gi={};return rt.forEach(function(jn){Gi[jn]=Br[jn]}),Gi}),Vt=v.useContext(Ye==null?void 0:Ye.Context),Jt=Vt||{},Fn=Jt.listeners,_r=Jt.getValue,Yn=v.useRef();Yn.current=Ft(Vt?_r():Ye==null?void 0:Ye.defaultValue);var gr=v.useState({}),xr=(0,b.Z)(gr,2),Yr=xr[1];return(0,V.Z)(function(){if(!Vt)return;function Br(Gi){var jn=Ft(Gi);(0,k.Z)(Yn.current,jn,!0)||Yr({})}return Fn.add(Br),function(){Fn.delete(Br)}},[Vt]),Yn.current}var A=y(87462),O=y(42550);function K(){var Ye=v.createContext(null);function rt(){return v.useContext(Ye)}function Ft(Jt,Fn){var _r=(0,O.Yr)(Jt),Yn=function(xr,Yr){var Br=_r?{ref:Yr}:{},Gi=v.useRef(0),jn=v.useRef(xr),Vr=rt();return Vr!==null?v.createElement(Jt,(0,A.Z)({},xr,Br)):((!Fn||Fn(jn.current,xr))&&(Gi.current+=1),jn.current=xr,v.createElement(Ye.Provider,{value:Gi.current},v.createElement(Jt,(0,A.Z)({},xr,Br))))};return _r?v.forwardRef(Yn):Yn}function Vt(Jt,Fn){var _r=(0,O.Yr)(Jt),Yn=function(xr,Yr){var Br=_r?{ref:Yr}:{};return rt(),v.createElement(Jt,(0,A.Z)({},xr,Br))};return _r?v.memo(v.forwardRef(Yn),Fn):v.memo(Yn,Fn)}return{makeImmutable:Ft,responseImmutable:Vt,useImmutableMark:rt}}var he=K(),ae=he.makeImmutable,fe=he.responseImmutable,xe=he.useImmutableMark,ye=K(),be=ye.makeImmutable,Qe=ye.responseImmutable,Ve=ye.useImmutableMark,pt=C(),st=pt;function Ae(Ye,rt){var Ft=v.useRef(0);Ft.current+=1;var Vt=v.useRef(Ye),Jt=[];Object.keys(Ye||{}).map(function(_r){var Yn;(Ye==null?void 0:Ye[_r])!==((Yn=Vt.current)===null||Yn===void 0?void 0:Yn[_r])&&Jt.push(_r)}),Vt.current=Ye;var Fn=v.useRef([]);return Jt.length&&(Fn.current=Jt),v.useDebugValue(Ft.current),v.useDebugValue(Fn.current.join(", ")),rt&&console.log("".concat(rt,":"),Ft.current,Fn.current),Ft.current}var De=null,Te=v.memo(function(){var Ye=Ae();return v.createElement("h1",null,"Render Times: ",Ye)});Te.displayName="RenderBlock";var Me=y(71002),Ue=y(1413),Pe=y(4942),Xe=y(94184),Be=y.n(Xe),Xt=y(56982),St=y(95013),nt=y(80334),wt=v.createContext({renderWithProps:!1}),lt=wt,Kt="RC_TABLE_KEY";function Mt(Ye){return Ye==null?[]:Array.isArray(Ye)?Ye:[Ye]}function hn(Ye){var rt=[],Ft={};return Ye.forEach(function(Vt){for(var Jt=Vt||{},Fn=Jt.key,_r=Jt.dataIndex,Yn=Fn||Mt(_r).join("-")||Kt;Ft[Yn];)Yn="".concat(Yn,"_next");Ft[Yn]=!0,rt.push(Yn)}),rt}function un(Ye){return Ye!=null}function Sr(Ye){return Ye&&(0,Me.Z)(Ye)==="object"&&!Array.isArray(Ye)&&!v.isValidElement(Ye)}function ii(Ye,rt,Ft,Vt,Jt,Fn){var _r=v.useContext(lt),Yn=Ve(),gr=(0,Xt.Z)(function(){if(un(Vt))return[Vt];var xr=rt==null||rt===""?[]:Array.isArray(rt)?rt:[rt],Yr=(0,St.Z)(Ye,xr),Br=Yr,Gi=void 0;if(Jt){var jn=Jt(Yr,Ye,Ft);Sr(jn)?(Br=jn.children,Gi=jn.props,_r.renderWithProps=!0):Br=jn}return[Br,Gi]},[Yn,Ye,Vt,rt,Jt,Ft],function(xr,Yr){if(Fn){var Br=(0,b.Z)(xr,2),Gi=Br[1],jn=(0,b.Z)(Yr,2),Vr=jn[1];return Fn(Vr,Gi)}return _r.renderWithProps?!0:!(0,k.Z)(xr,Yr,!0)});return gr}function Ii(Ye,rt,Ft,Vt){var Jt=Ye+rt-1;return Ye<=Vt&&Jt>=Ft}function Ni(Ye,rt){return g(st,function(Ft){var Vt=Ii(Ye,rt||1,Ft.hoverStartRow,Ft.hoverEndRow);return[Vt,Ft.onHover]})}var eo=function(rt){var Ft=rt.ellipsis,Vt=rt.rowType,Jt=rt.children,Fn,_r=Ft===!0?{showTitle:!0}:Ft;return _r&&(_r.showTitle||Vt==="header")&&(typeof Jt=="string"||typeof Jt=="number"?Fn=Jt.toString():v.isValidElement(Jt)&&typeof Jt.props.children=="string"&&(Fn=Jt.props.children)),Fn};function ti(Ye){var rt,Ft,Vt,Jt,Fn,_r,Yn,gr,xr=Ye.component,Yr=Ye.children,Br=Ye.ellipsis,Gi=Ye.scope,jn=Ye.prefixCls,Vr=Ye.className,cr=Ye.align,Lr=Ye.record,Mn=Ye.render,Er=Ye.dataIndex,jr=Ye.renderIndex,fi=Ye.shouldCellUpdate,ai=Ye.index,bi=Ye.rowType,Hi=Ye.colSpan,Zo=Ye.rowSpan,mo=Ye.fixLeft,No=Ye.fixRight,ws=Ye.firstFixLeft,Ji=Ye.lastFixLeft,Ss=Ye.firstFixRight,lo=Ye.lastFixRight,$i=Ye.appendNode,wa=Ye.additionalProps,ha=wa===void 0?{}:wa,Gs=Ye.isSticky,qt="".concat(jn,"-cell"),ar=g(st,["supportSticky","allColumnsFixedLeft"]),oi=ar.supportSticky,ms=ar.allColumnsFixedLeft,Ls=ii(Lr,Er,jr,Yr,Mn,fi),Aa=(0,b.Z)(Ls,2),no=Aa[0],uo=Aa[1],Ro={},Qs=typeof mo=="number"&&oi,ra=typeof No=="number"&&oi;Qs&&(Ro.position="sticky",Ro.left=mo),ra&&(Ro.position="sticky",Ro.right=No);var Ke=(rt=(Ft=(Vt=uo==null?void 0:uo.colSpan)!==null&&Vt!==void 0?Vt:ha.colSpan)!==null&&Ft!==void 0?Ft:Hi)!==null&&rt!==void 0?rt:1,Sa=(Jt=(Fn=(_r=uo==null?void 0:uo.rowSpan)!==null&&_r!==void 0?_r:ha.rowSpan)!==null&&Fn!==void 0?Fn:Zo)!==null&&Jt!==void 0?Jt:1,dl=Ni(ai,Sa),Ul=(0,b.Z)(dl,2),Ks=Ul[0],ma=Ul[1],ul=function(ja){var vi;Lr&&ma(ai,ai+Sa-1),ha==null||(vi=ha.onMouseEnter)===null||vi===void 0||vi.call(ha,ja)},Xs=function(ja){var vi;Lr&&ma(-1,-1),ha==null||(vi=ha.onMouseLeave)===null||vi===void 0||vi.call(ha,ja)};if(Ke===0||Sa===0)return null;var so=(Yn=ha.title)!==null&&Yn!==void 0?Yn:eo({rowType:bi,ellipsis:Br,children:no}),la=Be()(qt,Vr,(gr={},(0,Pe.Z)(gr,"".concat(qt,"-fix-left"),Qs&&oi),(0,Pe.Z)(gr,"".concat(qt,"-fix-left-first"),ws&&oi),(0,Pe.Z)(gr,"".concat(qt,"-fix-left-last"),Ji&&oi),(0,Pe.Z)(gr,"".concat(qt,"-fix-left-all"),Ji&&ms&&oi),(0,Pe.Z)(gr,"".concat(qt,"-fix-right"),ra&&oi),(0,Pe.Z)(gr,"".concat(qt,"-fix-right-first"),Ss&&oi),(0,Pe.Z)(gr,"".concat(qt,"-fix-right-last"),lo&&oi),(0,Pe.Z)(gr,"".concat(qt,"-ellipsis"),Br),(0,Pe.Z)(gr,"".concat(qt,"-with-append"),$i),(0,Pe.Z)(gr,"".concat(qt,"-fix-sticky"),(Qs||ra)&&Gs&&oi),(0,Pe.Z)(gr,"".concat(qt,"-row-hover"),!uo&&Ks),gr),ha.className,uo==null?void 0:uo.className),ts={};cr&&(ts.textAlign=cr);var Ea=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},Ro),ha.style),ts),uo==null?void 0:uo.style),Va=no;return(0,Me.Z)(Va)==="object"&&!Array.isArray(Va)&&!v.isValidElement(Va)&&(Va=null),Br&&(Ji||Ss)&&(Va=v.createElement("span",{className:"".concat(qt,"-content")},Va)),v.createElement(xr,(0,A.Z)({},uo,ha,{className:la,style:Ea,title:so,scope:Gi,onMouseEnter:ul,onMouseLeave:Xs,colSpan:Ke!==1?Ke:null,rowSpan:Sa!==1?Sa:null}),$i,Va)}var Is=v.memo(ti);function Ns(Ye,rt,Ft,Vt,Jt,Fn){var _r=Ft[Ye]||{},Yn=Ft[rt]||{},gr,xr;_r.fixed==="left"?gr=Vt.left[Jt==="rtl"?rt:Ye]:Yn.fixed==="right"&&(xr=Vt.right[Jt==="rtl"?Ye:rt]);var Yr=!1,Br=!1,Gi=!1,jn=!1,Vr=Ft[rt+1],cr=Ft[Ye-1],Lr=!(Fn!=null&&Fn.children);if(Jt==="rtl"){if(gr!==void 0){var Mn=cr&&cr.fixed==="left";jn=!Mn&&Lr}else if(xr!==void 0){var Er=Vr&&Vr.fixed==="right";Gi=!Er&&Lr}}else if(gr!==void 0){var jr=Vr&&Vr.fixed==="left";Yr=!jr&&Lr}else if(xr!==void 0){var fi=cr&&cr.fixed==="right";Br=!fi&&Lr}return{fixLeft:gr,fixRight:xr,lastFixLeft:Yr,firstFixRight:Br,lastFixRight:Gi,firstFixLeft:jn,isSticky:Vt.isSticky}}var Se=v.createContext({}),Xi=Se;function Yi(Ye){var rt=Ye.className,Ft=Ye.index,Vt=Ye.children,Jt=Ye.colSpan,Fn=Jt===void 0?1:Jt,_r=Ye.rowSpan,Yn=Ye.align,gr=g(st,["prefixCls","direction"]),xr=gr.prefixCls,Yr=gr.direction,Br=v.useContext(Xi),Gi=Br.scrollColumnIndex,jn=Br.stickyOffsets,Vr=Br.flattenColumns,cr=Br.columns,Lr=Ft+Fn-1,Mn=Lr+1===Gi?Fn+1:Fn,Er=Ns(Ft,Ft+Mn-1,Vr,jn,Yr,cr==null?void 0:cr[Ft]);return v.createElement(Is,(0,A.Z)({className:rt,index:Ft,component:"td",prefixCls:xr,record:null,dataIndex:null,align:Yn,colSpan:Mn,rowSpan:_r,render:function(){return Vt}},Er))}var fo=y(91),di=["children"];function Fs(Ye){var rt=Ye.children,Ft=(0,fo.Z)(Ye,di);return v.createElement("tr",Ft,rt)}function Ln(Ye){var rt=Ye.children;return rt}Ln.Row=Fs,Ln.Cell=Yi;var it=Ln;function Ot(Ye){var rt=Ye.children,Ft=Ye.stickyOffsets,Vt=Ye.flattenColumns,Jt=Ye.columns,Fn=g(st,"prefixCls"),_r=Vt.length-1,Yn=Vt[_r],gr=v.useMemo(function(){return{stickyOffsets:Ft,flattenColumns:Vt,scrollColumnIndex:Yn!=null&&Yn.scrollbar?_r:null,columns:Jt}},[Yn,Vt,_r,Ft,Jt]);return v.createElement(Xi.Provider,{value:gr},v.createElement("tfoot",{className:"".concat(Fn,"-summary")},rt))}var Ht=Qe(Ot),Pn=it,fr=y(48555),In=y(5110),mn=y(79370),Ut=y(74204),en=y(64217);function Cn(Ye,rt,Ft,Vt,Jt,Fn,_r){Ye.push({record:rt,indent:Ft,index:_r});var Yn=Fn(rt),gr=Jt==null?void 0:Jt.has(Yn);if(rt&&Array.isArray(rt[Vt])&&gr)for(var xr=0;xr1?ws-1:0),Ss=1;Ss=0;Yn-=1){var gr=rt[Yn],xr=Ft&&Ft[Yn],Yr=xr&&xr[Dt];if(gr||Yr||_r){var Br=Yr||{},Gi=Br.columnType,jn=(0,fo.Z)(Br,vn);Jt.unshift(v.createElement("col",(0,A.Z)({key:Yn,style:{width:gr}},jn))),_r=!0}}return v.createElement("colgroup",null,Jt)}var Ar=$n,Dr=y(74902),dr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Yt(Ye,rt){return(0,v.useMemo)(function(){for(var Ft=[],Vt=0;Vt1?"colgroup":"col":null,ellipsis:Lr.ellipsis,align:Lr.align,component:Lr.title?Fn:_r,prefixCls:Yr,key:jn[cr]},Mn,{additionalProps:Er,rowType:"header"}))}))}Mr.displayName="HeaderRow";var Wi=Mr;function Dn(Ye){var rt=[];function Ft(_r,Yn){var gr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;rt[gr]=rt[gr]||[];var xr=Yn,Yr=_r.filter(Boolean).map(function(Br){var Gi={key:Br.key,className:Br.className||"",children:Br.title,column:Br,colStart:xr},jn=1,Vr=Br.children;return Vr&&Vr.length>0&&(jn=Ft(Vr,xr,gr+1).reduce(function(cr,Lr){return cr+Lr},0),Gi.hasSubColumns=!0),"colSpan"in Br&&(jn=Br.colSpan),"rowSpan"in Br&&(Gi.rowSpan=Br.rowSpan),Gi.colSpan=jn,Gi.colEnd=Gi.colStart+jn-1,rt[gr].push(Gi),xr+=jn,jn});return Yr}Ft(Ye,0);for(var Vt=rt.length,Jt=function(Yn){rt[Yn].forEach(function(gr){!("rowSpan"in gr)&&!gr.hasSubColumns&&(gr.rowSpan=Vt-Yn)})},Fn=0;Fn1&&arguments[1]!==void 0?arguments[1]:"";return typeof rt=="number"?rt:rt.endsWith("%")?Ye*parseFloat(rt)/100:null}function Hr(Ye,rt,Ft){return v.useMemo(function(){if(rt&&rt>0){var Vt=0,Jt=0;Ye.forEach(function(Gi){var jn=yi(rt,Gi.width);jn?Vt+=jn:Jt+=1});var Fn=Math.max(rt,Ft),_r=Math.max(Fn-Vt,Jt),Yn=Jt,gr=_r/Jt,xr=0,Yr=Ye.map(function(Gi){var jn=(0,Ue.Z)({},Gi),Vr=yi(rt,jn.width);if(Vr)jn.width=Vr;else{var cr=Math.floor(gr);jn.width=Yn===1?_r:cr,_r-=cr,Yn-=1}return xr+=jn.width,jn});if(xr1&&arguments[1]!==void 0?arguments[1]:"key";return Ye.filter(function(Ft){return Ft&&(0,Me.Z)(Ft)==="object"}).reduce(function(Ft,Vt,Jt){var Fn=Vt.fixed,_r=Fn===!0?"left":Fn,Yn="".concat(rt,"-").concat(Jt),gr=Vt.children;return gr&&gr.length>0?[].concat((0,Dr.Z)(Ft),(0,Dr.Z)(Bi(gr,Yn).map(function(xr){return(0,Ue.Z)({fixed:_r},xr)}))):[].concat((0,Dr.Z)(Ft),[(0,Ue.Z)((0,Ue.Z)({key:Yn},Vt),{},{fixed:_r})])},[])}function Nr(Ye){for(var rt=!0,Ft=0;Ft=0;Fn-=1){var _r=Ye[Fn];if(Jt&&_r.fixed!=="right")Jt=!1;else if(!Jt&&_r.fixed==="right"){warning(!1,"Index ".concat(Fn+1," of `columns` missing `fixed='right'` prop."));break}}}function Kr(Ye){return Ye.map(function(rt){var Ft=rt.fixed,Vt=(0,fo.Z)(rt,gi),Jt=Ft;return Ft==="left"?Jt="right":Ft==="right"&&(Jt="left"),(0,Ue.Z)({fixed:Jt},Vt)})}function Qi(Ye,rt){var Ft=Ye.prefixCls,Vt=Ye.columns,Jt=Ye.children,Fn=Ye.expandable,_r=Ye.expandedKeys,Yn=Ye.columnTitle,gr=Ye.getRowKey,xr=Ye.onTriggerExpand,Yr=Ye.expandIcon,Br=Ye.rowExpandable,Gi=Ye.expandIconColumnIndex,jn=Ye.direction,Vr=Ye.expandRowByClick,cr=Ye.columnWidth,Lr=Ye.fixed,Mn=Ye.scrollWidth,Er=Ye.clientWidth,jr=v.useMemo(function(){return Vt||mi(Jt)},[Vt,Jt]),fi=v.useMemo(function(){if(Fn){var ws,Ji=jr.slice();if(!Ji.includes(P)){var Ss=Gi||0;Ss>=0&&Ji.splice(Ss,0,P)}var lo=Ji.indexOf(P);Ji=Ji.filter(function(Gs,qt){return Gs!==P||qt===lo});var $i=jr[lo],wa;(Lr==="left"||Lr)&&!Gi?wa="left":(Lr==="right"||Lr)&&Gi===jr.length?wa="right":wa=$i?$i.fixed:null;var ha=(ws={},(0,Pe.Z)(ws,Dt,{className:"".concat(Ft,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Pe.Z)(ws,"title",Yn),(0,Pe.Z)(ws,"fixed",wa),(0,Pe.Z)(ws,"className","".concat(Ft,"-row-expand-icon-cell")),(0,Pe.Z)(ws,"width",cr),(0,Pe.Z)(ws,"render",function(qt,ar,oi){var ms=gr(ar,oi),Ls=_r.has(ms),Aa=Br?Br(ar):!0,no=Yr({prefixCls:Ft,expanded:Ls,expandable:Aa,record:ar,onExpand:xr});return Vr?v.createElement("span",{onClick:function(Ro){return Ro.stopPropagation()}},no):no}),ws);return Ji.map(function(Gs){return Gs===P?ha:Gs})}return jr.filter(function(Gs){return Gs!==P})},[Fn,jr,gr,_r,Yr,jn]),ai=v.useMemo(function(){var ws=fi;return rt&&(ws=rt(ws)),ws.length||(ws=[{render:function(){return null}}]),ws},[rt,fi,jn]),bi=v.useMemo(function(){return jn==="rtl"?Kr(Bi(ai)):Bi(ai)},[ai,jn,Mn]),Hi=Hr(bi,Mn,Er),Zo=(0,b.Z)(Hi,2),mo=Zo[0],No=Zo[1];return[ai,mo,No]}var ns=Qi;function Ur(Ye){var rt,Ft=Ye.prefixCls,Vt=Ye.record,Jt=Ye.onExpand,Fn=Ye.expanded,_r=Ye.expandable,Yn="".concat(Ft,"-row-expand-icon");if(!_r)return v.createElement("span",{className:Be()(Yn,"".concat(Ft,"-row-spaced"))});var gr=function(Yr){Jt(Vt,Yr),Yr.stopPropagation()};return v.createElement("span",{className:Be()(Yn,(rt={},(0,Pe.Z)(rt,"".concat(Ft,"-row-expanded"),Fn),(0,Pe.Z)(rt,"".concat(Ft,"-row-collapsed"),!Fn),rt)),onClick:gr})}function gs(Ye,rt,Ft){var Vt=[];function Jt(Fn){(Fn||[]).forEach(function(_r,Yn){Vt.push(rt(_r,Yn)),Jt(_r[Ft])})}return Jt(Ye),Vt}function Gr(Ye,rt,Ft){var Vt=Zt(Ye),Jt=Vt.expandIcon,Fn=Vt.expandedRowKeys,_r=Vt.defaultExpandedRowKeys,Yn=Vt.defaultExpandAllRows,gr=Vt.expandedRowRender,xr=Vt.onExpand,Yr=Vt.onExpandedRowsChange,Br=Vt.childrenColumnName,Gi=Jt||Ur,jn=Br||"children",Vr=v.useMemo(function(){return gr?"row":Ye.expandable&&Ye.internalHooks===w&&Ye.expandable.__PARENT_RENDER_ICON__||rt.some(function(ai){return ai&&(0,Me.Z)(ai)==="object"&&ai[jn]})?"nest":!1},[!!gr,rt]),cr=v.useState(function(){return _r||(Yn?gs(rt,Ft,jn):[])}),Lr=(0,b.Z)(cr,2),Mn=Lr[0],Er=Lr[1],jr=v.useMemo(function(){return new Set(Fn||Mn||[])},[Fn,Mn]),fi=v.useCallback(function(ai){var bi=Ft(ai,rt.indexOf(ai)),Hi,Zo=jr.has(bi);Zo?(jr.delete(bi),Hi=(0,Dr.Z)(jr)):Hi=[].concat((0,Dr.Z)(jr),[bi]),Er(Hi),xr&&xr(!Zo,ai),Yr&&Yr(Hi)},[Ft,jr,rt,xr,Yr]);return[Vt,Vr,jr,Gi,jn,fi]}function ni(Ye,rt,Ft,Vt){var Jt=Ye.map(function(Fn,_r){return Ns(_r,_r,Ye,rt,Ft,Vt==null?void 0:Vt[_r])});return(0,Xt.Z)(function(){return Jt},[Jt],function(Fn,_r){return!(0,k.Z)(Fn,_r)})}function is(Ye){var rt=(0,v.useRef)(Ye),Ft=(0,v.useState)({}),Vt=(0,b.Z)(Ft,2),Jt=Vt[1],Fn=(0,v.useRef)(null),_r=(0,v.useRef)([]);function Yn(gr){_r.current.push(gr);var xr=Promise.resolve();Fn.current=xr,xr.then(function(){if(Fn.current===xr){var Yr=_r.current,Br=rt.current;_r.current=[],Yr.forEach(function(Gi){rt.current=Gi(rt.current)}),Fn.current=null,Br!==rt.current&&Jt({})}})}return(0,v.useEffect)(function(){return function(){Fn.current=null}},[]),[rt.current,Yn]}function Jr(Ye){var rt=(0,v.useRef)(Ye||null),Ft=(0,v.useRef)();function Vt(){window.clearTimeout(Ft.current)}function Jt(_r){rt.current=_r,Vt(),Ft.current=window.setTimeout(function(){rt.current=null,Ft.current=void 0},100)}function Fn(){return rt.current}return(0,v.useEffect)(function(){return Vt},[]),[Jt,Fn]}function bn(){var Ye=v.useState(-1),rt=(0,b.Z)(Ye,2),Ft=rt[0],Vt=rt[1],Jt=v.useState(-1),Fn=(0,b.Z)(Jt,2),_r=Fn[0],Yn=Fn[1],gr=v.useCallback(function(xr,Yr){Vt(xr),Yn(Yr)},[]);return[Ft,_r,gr]}var Or=y(98924),qo=(0,Or.Z)()?window:null;function Mo(Ye,rt){var Ft=(0,Me.Z)(Ye)==="object"?Ye:{},Vt=Ft.offsetHeader,Jt=Vt===void 0?0:Vt,Fn=Ft.offsetSummary,_r=Fn===void 0?0:Fn,Yn=Ft.offsetScroll,gr=Yn===void 0?0:Yn,xr=Ft.getContainer,Yr=xr===void 0?function(){return qo}:xr,Br=Yr()||qo;return v.useMemo(function(){var Gi=!!Ye;return{isSticky:Gi,stickyClassName:Gi?"".concat(rt,"-sticky-holder"):"",offsetHeader:Jt,offsetSummary:_r,offsetScroll:gr,container:Br}},[gr,Jt,_r,rt,Br])}function vs(Ye,rt,Ft){var Vt=(0,v.useMemo)(function(){for(var Jt=[],Fn=[],_r=0,Yn=0,gr=0;gr=Br&&(ha=Br-Gi),_r({scrollLeft:ha/Br*(Yr+2)}),Er.current.x=Ss.pageX},No=function(){if(Fn.current){var Ss=Xr(Fn.current).top,lo=Ss+Fn.current.offsetHeight,$i=gr===window?document.documentElement.scrollTop+window.innerHeight:Xr(gr).top+gr.clientHeight;lo-(0,Ut.Z)()<=$i||Ss>=$i-Yn?Mn(function(wa){return(0,Ue.Z)((0,Ue.Z)({},wa),{},{isHiddenScrollBar:!0})}):Mn(function(wa){return(0,Ue.Z)((0,Ue.Z)({},wa),{},{isHiddenScrollBar:!1})})}},ws=function(Ss){Mn(function(lo){return(0,Ue.Z)((0,Ue.Z)({},lo),{},{scrollLeft:Ss/Yr*Br||0})})};return v.useImperativeHandle(Ft,function(){return{setScrollLeft:ws}}),v.useEffect(function(){var Ji=Ka(document.body,"mouseup",Hi,!1),Ss=Ka(document.body,"mousemove",mo,!1);return No(),function(){Ji.remove(),Ss.remove()}},[Gi,ai]),v.useEffect(function(){var Ji=Ka(gr,"scroll",No,!1),Ss=Ka(window,"resize",No,!1);return function(){Ji.remove(),Ss.remove()}},[gr]),v.useEffect(function(){Lr.isHiddenScrollBar||Mn(function(Ji){var Ss=Fn.current;return Ss?(0,Ue.Z)((0,Ue.Z)({},Ji),{},{scrollLeft:Ss.scrollLeft/Ss.scrollWidth*Ss.clientWidth}):Ji})},[Lr.isHiddenScrollBar]),Yr<=Br||!Gi||Lr.isHiddenScrollBar?null:v.createElement("div",{style:{height:(0,Ut.Z)(),width:Br,bottom:Yn},className:"".concat(xr,"-sticky-scroll")},v.createElement("div",{onMouseDown:Zo,ref:jn,className:Be()("".concat(xr,"-sticky-scroll-bar"),(0,Pe.Z)({},"".concat(xr,"-sticky-scroll-bar-active"),ai)),style:{width:"".concat(Gi,"px"),transform:"translate3d(".concat(Lr.scrollLeft,"px, 0, 0)")}}))},ht=v.forwardRef(Ze);function dt(Ye){return null}var $e=dt;function ft(Ye){return null}var Lt=ft,gn="rc-table",rr=[],zr={};function Fi(){return"No Data"}function xo(Ye,rt){var Ft,Vt=(0,Ue.Z)({rowKey:"key",prefixCls:gn,emptyText:Fi},Ye),Jt=Vt.prefixCls,Fn=Vt.className,_r=Vt.rowClassName,Yn=Vt.style,gr=Vt.data,xr=Vt.rowKey,Yr=Vt.scroll,Br=Vt.tableLayout,Gi=Vt.direction,jn=Vt.title,Vr=Vt.footer,cr=Vt.summary,Lr=Vt.caption,Mn=Vt.id,Er=Vt.showHeader,jr=Vt.components,fi=Vt.emptyText,ai=Vt.onRow,bi=Vt.onHeaderRow,Hi=Vt.internalHooks,Zo=Vt.transformColumns,mo=Vt.internalRefs,No=Vt.tailor,ws=Vt.getContainerWidth,Ji=Vt.sticky,Ss=gr||rr,lo=!!Ss.length,$i=Hi===w,wa=v.useCallback(function(gg,Nf){return(0,St.Z)(jr,gg)||Nf},[jr]),ha=v.useMemo(function(){return typeof xr=="function"?xr:function(gg){var Nf=gg&&gg[xr];return Nf}},[xr]),Gs=wa(["body"]),qt=bn(),ar=(0,b.Z)(qt,3),oi=ar[0],ms=ar[1],Ls=ar[2],Aa=Gr(Vt,Ss,ha),no=(0,b.Z)(Aa,6),uo=no[0],Ro=no[1],Qs=no[2],ra=no[3],Ke=no[4],Sa=no[5],dl=Yr==null?void 0:Yr.x,Ul=v.useState(0),Ks=(0,b.Z)(Ul,2),ma=Ks[0],ul=Ks[1],Xs=ns((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},Vt),uo),{},{expandable:!!uo.expandedRowRender,columnTitle:uo.columnTitle,expandedKeys:Qs,getRowKey:ha,onTriggerExpand:Sa,expandIcon:ra,expandIconColumnIndex:uo.expandIconColumnIndex,direction:Gi,scrollWidth:$i&&No&&typeof dl=="number"?dl:null,clientWidth:ma}),$i?Zo:null),so=(0,b.Z)(Xs,3),la=so[0],ts=so[1],Ea=so[2],Va=Ea!=null?Ea:dl,Nl=v.useMemo(function(){return{columns:la,flattenColumns:ts}},[la,ts]),ja=v.useRef(),vi=v.useRef(),cs=v.useRef(),da=v.useRef();v.useImperativeHandle(rt,function(){return{nativeElement:ja.current,scrollTo:function(Nf){var Ig;if(cs.current instanceof HTMLElement){var Df=Nf.index,lp=Nf.top,Qm=Nf.key;if(lp){var bp;(bp=cs.current)===null||bp===void 0||bp.scrollTo({top:lp})}else{var Hp,Pc=Qm!=null?Qm:ha(Ss[Df]);(Hp=cs.current.querySelector('[data-row-key="'.concat(Pc,'"]')))===null||Hp===void 0||Hp.scrollIntoView()}}else(Ig=cs.current)!==null&&Ig!==void 0&&Ig.scrollTo&&cs.current.scrollTo(Nf)}}});var Ja=v.useRef(),vu=v.useState(!1),Cu=(0,b.Z)(vu,2),Ba=Cu[0],Sc=Cu[1],Ml=v.useState(!1),Wc=(0,b.Z)(Ml,2),Su=Wc[0],Zc=Wc[1],hu=is(new Map),Kh=(0,b.Z)(hu,2),kc=Kh[0],Ec=Kh[1],Ac=hn(ts),Fl=Ac.map(function(gg){return kc.get(gg)}),kd=v.useMemo(function(){return Fl},[Fl.join("_")]),sf=Na(kd,ts.length,Gi),th=Yr&&un(Yr.y),je=Yr&&un(Va)||!!uo.fixed,Ge=je&&ts.some(function(gg){var Nf=gg.fixed;return Nf}),_t=v.useRef(),Rt=Mo(Ji,Jt),tr=Rt.isSticky,zi=Rt.offsetHeader,Ho=Rt.offsetSummary,Jo=Rt.offsetScroll,Pa=Rt.stickyClassName,Ti=Rt.container,os=v.useMemo(function(){return cr==null?void 0:cr(Ss)},[cr,Ss]),ua=(th||tr)&&v.isValidElement(os)&&os.type===it&&os.props.fixed,Go,nl,Zs;th&&(nl={overflowY:"scroll",maxHeight:Yr.y}),je&&(Go={overflowX:"auto"},th||(nl={overflowY:"hidden"}),Zs={width:Va===!0?"auto":Va,minWidth:"100%"});var Zi=v.useCallback(function(gg,Nf){(0,In.Z)(ja.current)&&Ec(function(Ig){if(Ig.get(gg)!==Nf){var Df=new Map(Ig);return Df.set(gg,Nf),Df}return Ig})},[]),Io=Jr(null),Us=(0,b.Z)(Io,2),pl=Us[0],al=Us[1];function Ia(gg,Nf){Nf&&(typeof Nf=="function"?Nf(gg):Nf.scrollLeft!==gg&&(Nf.scrollLeft=gg,Nf.scrollLeft!==gg&&setTimeout(function(){Nf.scrollLeft=gg},0)))}var va=(0,B.Z)(function(gg){var Nf=gg.currentTarget,Ig=gg.scrollLeft,Df=Gi==="rtl",lp=typeof Ig=="number"?Ig:Nf.scrollLeft,Qm=Nf||zr;if(!al()||al()===Qm){var bp;pl(Qm),Ia(lp,vi.current),Ia(lp,cs.current),Ia(lp,Ja.current),Ia(lp,(bp=_t.current)===null||bp===void 0?void 0:bp.setScrollLeft)}var Hp=Nf||vi.current;if(Hp){var Pc=Hp.scrollWidth,cm=Hp.clientWidth;if(Pc===cm){Sc(!1),Zc(!1);return}Df?(Sc(-lp0)):(Sc(lp>0),Zc(lp1?cr-Ss:0,$i=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},Hi),gr),{},{flex:"0 0 ".concat(Ss,"px"),width:"".concat(Ss,"px"),marginRight:lo,pointerEvents:"auto"}),wa=v.useMemo(function(){return Yr?ws<=1:mo===0||ws===0||ws>1},[ws,mo,Yr]);wa?$i.visibility="hidden":Yr&&($i.height=Br==null?void 0:Br(ws));var ha=wa?function(){return null}:Gi,Gs={};return(ws===0||mo===0)&&(Gs.rowSpan=1,Gs.colSpan=1),v.createElement(Is,(0,A.Z)({className:Be()(Vr,xr),ellipsis:Ft.ellipsis,align:Ft.align,scope:Ft.rowScope,component:"div",prefixCls:rt.prefixCls,key:jr,record:Yn,index:Fn,renderIndex:_r,dataIndex:jn,render:ha,shouldCellUpdate:Ft.shouldCellUpdate},fi,{appendNode:ai,additionalProps:(0,Ue.Z)((0,Ue.Z)({},bi),{},{style:$i},Gs)}))}var Zl=za,Hl=["data","index","className","rowKey","style","extra","getHeight"],fs=v.forwardRef(function(Ye,rt){var Ft=Ye.data,Vt=Ye.index,Jt=Ye.className,Fn=Ye.rowKey,_r=Ye.style,Yn=Ye.extra,gr=Ye.getHeight,xr=(0,fo.Z)(Ye,Hl),Yr=Ft.record,Br=Ft.indent,Gi=Ft.index,jn=g(st,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Vr=jn.scrollX,cr=jn.flattenColumns,Lr=jn.prefixCls,Mn=jn.fixColumn,Er=jn.componentWidth,jr=an(Yr,Fn,Vt,Br),fi=jr.rowSupportExpand,ai=jr.expanded,bi=jr.rowProps,Hi=jr.expandedRowRender,Zo=jr.expandedRowClassName,mo;if(fi&&ai){var No=Hi(Yr,Vt,Br+1,ai),ws=Zo==null?void 0:Zo(Yr,Vt,Br),Ji={};Mn&&(Ji={style:(0,Pe.Z)({},"--virtual-width","".concat(Er,"px"))});var Ss="".concat(Lr,"-expanded-row-cell");mo=v.createElement("div",{className:Be()("".concat(Lr,"-expanded-row"),"".concat(Lr,"-expanded-row-level-").concat(Br+1),ws)},v.createElement(Is,{component:"div",prefixCls:Lr,className:Be()(Ss,(0,Pe.Z)({},"".concat(Ss,"-fixed"),Mn)),additionalProps:Ji},No))}var lo=(0,Ue.Z)((0,Ue.Z)({},_r),{},{width:Vr});Yn&&(lo.position="absolute",lo.pointerEvents="none");var $i=v.createElement("div",(0,A.Z)({},bi,xr,{ref:fi?null:rt,className:Be()(Jt,"".concat(Lr,"-row"),bi==null?void 0:bi.className,(0,Pe.Z)({},"".concat(Lr,"-row-extra"),Yn)),style:(0,Ue.Z)((0,Ue.Z)({},lo),bi==null?void 0:bi.style)}),cr.map(function(wa,ha){return v.createElement(Zl,{key:ha,rowInfo:jr,column:wa,colIndex:ha,indent:Br,index:Vt,renderIndex:Gi,record:Yr,inverse:Yn,getHeight:gr})}));return fi?v.createElement("div",{ref:rt},$i,mo):$i}),js=Qe(fs),hl=js,Xo=v.forwardRef(function(Ye,rt){var Ft=Ye.data,Vt=Ye.onScroll,Jt=g(st,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Fn=Jt.flattenColumns,_r=Jt.onColumnResize,Yn=Jt.getRowKey,gr=Jt.expandedKeys,xr=Jt.prefixCls,Yr=Jt.childrenColumnName,Br=Jt.emptyNode,Gi=Jt.scrollX,jn=g(ko),Vr=jn.sticky,cr=jn.scrollY,Lr=jn.listItemHeight,Mn=v.useRef(),Er=lr(Ft,Yr,gr,Yn),jr=v.useMemo(function(){var ws=0;return Fn.map(function(Ji){var Ss=Ji.width,lo=Ji.key;return ws+=Ss,[lo,Ss,ws]})},[Fn]),fi=v.useMemo(function(){return jr.map(function(ws){return ws[2]})},[jr]);v.useEffect(function(){jr.forEach(function(ws){var Ji=(0,b.Z)(ws,2),Ss=Ji[0],lo=Ji[1];_r(Ss,lo)})},[jr]),v.useImperativeHandle(rt,function(){var ws={scrollTo:function(Ss){var lo;(lo=Mn.current)===null||lo===void 0||lo.scrollTo(Ss)}};return Object.defineProperty(ws,"scrollLeft",{get:function(){var Ss;return((Ss=Mn.current)===null||Ss===void 0?void 0:Ss.getScrollInfo().x)||0},set:function(Ss){var lo;(lo=Mn.current)===null||lo===void 0||lo.scrollTo({left:Ss})}}),ws});var ai=function(Ji,Ss){var lo,$i=(lo=Er[Ss])===null||lo===void 0?void 0:lo.record,wa=Ji.onCell;if(wa){var ha,Gs=wa($i,Ss);return(ha=Gs==null?void 0:Gs.rowSpan)!==null&&ha!==void 0?ha:1}return 1},bi=function(Ji){var Ss=Ji.start,lo=Ji.end,$i=Ji.getSize,wa=Ji.offsetY;if(lo<0)return null;for(var ha=Fn.filter(function(ra){return ai(ra,Ss)===0}),Gs=Ss,qt=function(Ke){if(ha=ha.filter(function(Sa){return ai(Sa,Ke)===0}),!ha.length)return Gs=Ke,1},ar=Ss;ar>=0&&!qt(ar);ar-=1);for(var oi=Fn.filter(function(ra){return ai(ra,lo)!==1}),ms=lo,Ls=function(Ke){if(oi=oi.filter(function(Sa){return ai(Sa,Ke)!==1}),!oi.length)return ms=Math.max(Ke-1,lo),1},Aa=lo;Aa1})&&no.push(Ke)},Ro=Gs;Ro<=ms;Ro+=1)uo(Ro);var Qs=no.map(function(ra){var Ke=Er[ra],Sa=Yn(Ke.record,ra),dl=function(ma){var ul=ra+ma-1,Xs=Yn(Er[ul].record,ul),so=$i(Sa,Xs);return so.bottom-so.top},Ul=$i(Sa);return v.createElement(hl,{key:ra,data:Ke,rowKey:Sa,index:ra,style:{top:-wa+Ul.top},extra:!0,getHeight:dl})});return Qs},Hi=v.useMemo(function(){return{columnsOffset:fi}},[fi]),Zo="".concat(xr,"-tbody"),mo;if(Er.length){var No={};Vr&&(No.position="sticky",No.bottom=0,(0,Me.Z)(Vr)==="object"&&Vr.offsetScroll&&(No.bottom=Vr.offsetScroll)),mo=v.createElement(ks.Z,{fullHeight:!1,ref:Mn,styles:{horizontalScrollBar:No},className:Be()(Zo,"".concat(Zo,"-virtual")),height:cr,itemHeight:Lr||24,data:Er,itemKey:function(Ji){return Yn(Ji.record)},scrollWidth:Gi,onVirtualScroll:function(Ji){var Ss=Ji.x;Vt({scrollLeft:Ss})},extraRender:bi},function(ws,Ji,Ss){var lo=Yn(ws.record,Ji);return v.createElement(hl,(0,A.Z)({data:ws,rowKey:lo,index:Ji},Ss))})}else mo=v.createElement("div",{className:Be()("".concat(xr,"-placeholder"))},v.createElement(Is,{component:"div",prefixCls:xr},Br));return v.createElement(As.Provider,{value:Hi},mo)}),Li=Qe(Xo),Yo=Li,Os=function(rt,Ft){var Vt=Ft.ref,Jt=Ft.onScroll;return v.createElement(Yo,{ref:Vt,data:rt,onScroll:Jt})};function Cs(Ye,rt){var Ft=Ye.columns,Vt=Ye.scroll,Jt=Ye.sticky,Fn=Ye.prefixCls,_r=Fn===void 0?gn:Fn,Yn=Ye.className,gr=Ye.listItemHeight,xr=Ye.components,Yr=Vt||{},Br=Yr.x,Gi=Yr.y;typeof Br!="number"&&(Br=1),typeof Gi!="number"&&(Gi=500);var jn=v.useMemo(function(){return{sticky:Jt,scrollY:Gi,listItemHeight:gr}},[Jt,Gi,gr]);return v.createElement(ko.Provider,{value:jn},v.createElement(Ms,(0,A.Z)({},Ye,{className:Be()(Yn,"".concat(_r,"-virtual")),scroll:(0,Ue.Z)((0,Ue.Z)({},Vt),{},{x:Br}),components:(0,Ue.Z)((0,Ue.Z)({},xr),{},{body:Os}),columns:Ft,internalHooks:w,tailor:!0,ref:rt})))}var ba=v.forwardRef(Cs);function Yu(Ye){return be(ba,Ye)}var pc=Yu(),Hu=null;function wh(Ye){return null}var lh=wh;function fu(Ye){return null}var ru=fu,Tu=y(58964),wi=y(10225),er=y(17341),Un=y(1089),Wr=y(21770);function Qr(Ye){const[rt,Ft]=(0,v.useState)(null);return[(0,v.useCallback)((Fn,_r,Yn)=>{const gr=rt!=null?rt:Fn,xr=Math.min(gr||0,Fn),Yr=Math.max(gr||0,Fn),Br=_r.slice(xr,Yr+1).map(Vr=>Ye(Vr)),Gi=Br.some(Vr=>!Yn.has(Vr)),jn=[];return Br.forEach(Vr=>{Gi?(Yn.has(Vr)||jn.push(Vr),Yn.add(Vr)):(Yn.delete(Vr),jn.push(Vr))}),Ft(Gi?Yr:null),jn},[rt]),Fn=>{Ft(Fn)}]}var _o=y(27288),us=y(50132),es=y(45353),Ma=y(17415),ga=y(53124),$a=y(98866),Js=y(35792),Kl=y(65223),Ta=v.createContext(null),Xa=y(63185),au=function(Ye,rt){var Ft={};for(var Vt in Ye)Object.prototype.hasOwnProperty.call(Ye,Vt)&&rt.indexOf(Vt)<0&&(Ft[Vt]=Ye[Vt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Vt=Object.getOwnPropertySymbols(Ye);Jt{var Ft;const{prefixCls:Vt,className:Jt,rootClassName:Fn,children:_r,indeterminate:Yn=!1,style:gr,onMouseEnter:xr,onMouseLeave:Yr,skipGroup:Br=!1,disabled:Gi}=Ye,jn=au(Ye,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Vr,direction:cr,checkbox:Lr}=v.useContext(ga.E_),Mn=v.useContext(Ta),{isFormItemInput:Er}=v.useContext(Kl.aM),jr=v.useContext($a.Z),fi=(Ft=(Mn==null?void 0:Mn.disabled)||Gi)!==null&&Ft!==void 0?Ft:jr,ai=v.useRef(jn.value);v.useEffect(()=>{Mn==null||Mn.registerValue(jn.value)},[]),v.useEffect(()=>{if(!Br)return jn.value!==ai.current&&(Mn==null||Mn.cancelValue(ai.current),Mn==null||Mn.registerValue(jn.value),ai.current=jn.value),()=>Mn==null?void 0:Mn.cancelValue(jn.value)},[jn.value]);const bi=Vr("checkbox",Vt),Hi=(0,Js.Z)(bi),[Zo,mo]=(0,Xa.ZP)(bi,Hi),No=Object.assign({},jn);Mn&&!Br&&(No.onChange=function(){jn.onChange&&jn.onChange.apply(jn,arguments),Mn.toggleOption&&Mn.toggleOption({label:_r,value:jn.value})},No.name=Mn.name,No.checked=Mn.value.includes(jn.value));const ws=Be()(`${bi}-wrapper`,{[`${bi}-rtl`]:cr==="rtl",[`${bi}-wrapper-checked`]:No.checked,[`${bi}-wrapper-disabled`]:fi,[`${bi}-wrapper-in-form-item`]:Er},Lr==null?void 0:Lr.className,Jt,Fn,Hi,mo),Ji=Be()({[`${bi}-indeterminate`]:Yn},Ma.A,mo),Ss=Yn?"mixed":void 0;return Zo(v.createElement(es.Z,{component:"Checkbox",disabled:fi},v.createElement("label",{className:ws,style:Object.assign(Object.assign({},Lr==null?void 0:Lr.style),gr),onMouseEnter:xr,onMouseLeave:Yr},v.createElement(us.Z,Object.assign({"aria-checked":Ss},No,{prefixCls:bi,className:Ji,disabled:fi,ref:rt})),_r!==void 0&&v.createElement("span",null,_r))))};var Bl=v.forwardRef($l),Sl=y(98423),Tn=function(Ye,rt){var Ft={};for(var Vt in Ye)Object.prototype.hasOwnProperty.call(Ye,Vt)&&rt.indexOf(Vt)<0&&(Ft[Vt]=Ye[Vt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Vt=Object.getOwnPropertySymbols(Ye);Jt{const{defaultValue:Ft,children:Vt,options:Jt=[],prefixCls:Fn,className:_r,rootClassName:Yn,style:gr,onChange:xr}=Ye,Yr=Tn(Ye,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Br,direction:Gi}=v.useContext(ga.E_),[jn,Vr]=v.useState(Yr.value||Ft||[]),[cr,Lr]=v.useState([]);v.useEffect(()=>{"value"in Yr&&Vr(Yr.value||[])},[Yr.value]);const Mn=v.useMemo(()=>Jt.map(lo=>typeof lo=="string"||typeof lo=="number"?{label:lo,value:lo}:lo),[Jt]),Er=lo=>{Lr($i=>$i.filter(wa=>wa!==lo))},jr=lo=>{Lr($i=>[].concat((0,Dr.Z)($i),[lo]))},fi=lo=>{const $i=jn.indexOf(lo.value),wa=(0,Dr.Z)(jn);$i===-1?wa.push(lo.value):wa.splice($i,1),"value"in Yr||Vr(wa),xr==null||xr(wa.filter(ha=>cr.includes(ha)).sort((ha,Gs)=>{const qt=Mn.findIndex(oi=>oi.value===ha),ar=Mn.findIndex(oi=>oi.value===Gs);return qt-ar}))},ai=Br("checkbox",Fn),bi=`${ai}-group`,Hi=(0,Js.Z)(ai),[Zo,mo]=(0,Xa.ZP)(ai,Hi),No=(0,Sl.Z)(Yr,["value","disabled"]),ws=Jt.length?Mn.map(lo=>v.createElement(Bl,{prefixCls:ai,key:lo.value.toString(),disabled:"disabled"in lo?lo.disabled:Yr.disabled,value:lo.value,checked:jn.includes(lo.value),onChange:lo.onChange,className:`${bi}-item`,style:lo.style,title:lo.title,id:lo.id,required:lo.required},lo.label)):Vt,Ji={toggleOption:fi,value:jn,disabled:Yr.disabled,name:Yr.name,registerValue:jr,cancelValue:Er},Ss=Be()(bi,{[`${bi}-rtl`]:Gi==="rtl"},_r,Yn,Hi,mo);return Zo(v.createElement("div",Object.assign({className:Ss,style:gr},No,{ref:rt}),v.createElement(Ta.Provider,{value:Ji},ws)))},Iu=v.forwardRef(nc);var Ic=v.memo(Iu);const Vc=Bl;Vc.Group=Ic,Vc.__ANT_CHECKBOX=!0;var dh=Vc,Nc=y(83159),vd=y(78045);const Th={},Gd="SELECT_ALL",yd="SELECT_INVERT",Mc="SELECT_NONE",Kd=[],Vf=(Ye,rt)=>{let Ft=[];return(rt||[]).forEach(Vt=>{Ft.push(Vt),Vt&&typeof Vt=="object"&&Ye in Vt&&(Ft=[].concat((0,Dr.Z)(Ft),(0,Dr.Z)(Vf(Ye,Vt[Ye]))))}),Ft};var _d=(Ye,rt)=>{const{preserveSelectedRowKeys:Ft,selectedRowKeys:Vt,defaultSelectedRowKeys:Jt,getCheckboxProps:Fn,onChange:_r,onSelect:Yn,onSelectAll:gr,onSelectInvert:xr,onSelectNone:Yr,onSelectMultiple:Br,columnWidth:Gi,type:jn,selections:Vr,fixed:cr,renderCell:Lr,hideSelectAll:Mn,checkStrictly:Er=!0}=rt||{},{prefixCls:jr,data:fi,pageData:ai,getRecordByKey:bi,getRowKey:Hi,expandType:Zo,childrenColumnName:mo,locale:No,getPopupContainer:ws}=Ye,Ji=(0,_o.ln)("Table"),[Ss,lo]=Qr(Sa=>Sa),[$i,wa]=(0,Wr.Z)(Vt||Jt||Kd,{value:Vt}),ha=v.useRef(new Map),Gs=(0,v.useCallback)(Sa=>{if(Ft){const dl=new Map;Sa.forEach(Ul=>{let Ks=bi(Ul);!Ks&&ha.current.has(Ul)&&(Ks=ha.current.get(Ul)),dl.set(Ul,Ks)}),ha.current=dl}},[bi,Ft]);v.useEffect(()=>{Gs($i)},[$i]);const{keyEntities:qt}=(0,v.useMemo)(()=>{if(Er)return{keyEntities:null};let Sa=fi;if(Ft){const dl=new Set(fi.map((Ks,ma)=>Hi(Ks,ma))),Ul=Array.from(ha.current).reduce((Ks,ma)=>{let[ul,Xs]=ma;return dl.has(ul)?Ks:Ks.concat(Xs)},[]);Sa=[].concat((0,Dr.Z)(Sa),(0,Dr.Z)(Ul))}return(0,Un.I8)(Sa,{externalGetKey:Hi,childrenPropName:mo})},[fi,Hi,Er,mo,Ft]),ar=(0,v.useMemo)(()=>Vf(mo,ai),[mo,ai]),oi=(0,v.useMemo)(()=>{const Sa=new Map;return ar.forEach((dl,Ul)=>{const Ks=Hi(dl,Ul),ma=(Fn?Fn(dl):null)||{};Sa.set(Ks,ma)}),Sa},[ar,Hi,Fn]),ms=(0,v.useCallback)(Sa=>{var dl;return!!(!((dl=oi.get(Hi(Sa)))===null||dl===void 0)&&dl.disabled)},[oi,Hi]),[Ls,Aa]=(0,v.useMemo)(()=>{if(Er)return[$i||[],[]];const{checkedKeys:Sa,halfCheckedKeys:dl}=(0,er.S)($i,!0,qt,ms);return[Sa||[],dl]},[$i,Er,qt,ms]),no=(0,v.useMemo)(()=>{const Sa=jn==="radio"?Ls.slice(0,1):Ls;return new Set(Sa)},[Ls,jn]),uo=(0,v.useMemo)(()=>jn==="radio"?new Set:new Set(Aa),[Aa,jn]);v.useEffect(()=>{rt||wa(Kd)},[!!rt]);const Ro=(0,v.useCallback)((Sa,dl)=>{let Ul,Ks;Gs(Sa),Ft?(Ul=Sa,Ks=Sa.map(ma=>ha.current.get(ma))):(Ul=[],Ks=[],Sa.forEach(ma=>{const ul=bi(ma);ul!==void 0&&(Ul.push(ma),Ks.push(ul))})),wa(Ul),_r==null||_r(Ul,Ks,{type:dl})},[wa,bi,_r,Ft]),Qs=(0,v.useCallback)((Sa,dl,Ul,Ks)=>{if(Yn){const ma=Ul.map(ul=>bi(ul));Yn(bi(Sa),dl,ma,Ks)}Ro(Ul,"single")},[Yn,bi,Ro]),ra=(0,v.useMemo)(()=>!Vr||Mn?null:(Vr===!0?[Gd,yd,Mc]:Vr).map(dl=>dl===Gd?{key:"all",text:No.selectionAll,onSelect(){Ro(fi.map((Ul,Ks)=>Hi(Ul,Ks)).filter(Ul=>{const Ks=oi.get(Ul);return!(Ks!=null&&Ks.disabled)||no.has(Ul)}),"all")}}:dl===yd?{key:"invert",text:No.selectInvert,onSelect(){const Ul=new Set(no);ai.forEach((ma,ul)=>{const Xs=Hi(ma,ul),so=oi.get(Xs);so!=null&&so.disabled||(Ul.has(Xs)?Ul.delete(Xs):Ul.add(Xs))});const Ks=Array.from(Ul);xr&&(Ji.deprecated(!1,"onSelectInvert","onChange"),xr(Ks)),Ro(Ks,"invert")}}:dl===Mc?{key:"none",text:No.selectNone,onSelect(){Yr==null||Yr(),Ro(Array.from(no).filter(Ul=>{const Ks=oi.get(Ul);return Ks==null?void 0:Ks.disabled}),"none")}}:dl).map(dl=>Object.assign(Object.assign({},dl),{onSelect:function(){for(var Ul,Ks,ma=arguments.length,ul=new Array(ma),Xs=0;Xs{var dl;if(!rt)return Sa.filter(Cu=>Cu!==Th);let Ul=(0,Dr.Z)(Sa);const Ks=new Set(no),ma=ar.map(Hi).filter(Cu=>!oi.get(Cu).disabled),ul=ma.every(Cu=>Ks.has(Cu)),Xs=ma.some(Cu=>Ks.has(Cu)),so=()=>{const Cu=[];ul?ma.forEach(Sc=>{Ks.delete(Sc),Cu.push(Sc)}):ma.forEach(Sc=>{Ks.has(Sc)||(Ks.add(Sc),Cu.push(Sc))});const Ba=Array.from(Ks);gr==null||gr(!ul,Ba.map(Sc=>bi(Sc)),Cu.map(Sc=>bi(Sc))),Ro(Ba,"all"),lo(null)};let la,ts;if(jn!=="radio"){let Cu;if(ra){const Su={getPopupContainer:ws,items:ra.map((Zc,hu)=>{const{key:Kh,text:kc,onSelect:Ec}=Zc;return{key:Kh!=null?Kh:hu,onClick:()=>{Ec==null||Ec(ma)},label:kc}})};Cu=v.createElement("div",{className:`${jr}-selection-extra`},v.createElement(Nc.Z,{menu:Su,getPopupContainer:ws},v.createElement("span",null,v.createElement(Tu.Z,null))))}const Ba=ar.map((Su,Zc)=>{const hu=Hi(Su,Zc),Kh=oi.get(hu)||{};return Object.assign({checked:Ks.has(hu)},Kh)}).filter(Su=>{let{disabled:Zc}=Su;return Zc}),Sc=!!Ba.length&&Ba.length===ar.length,Ml=Sc&&Ba.every(Su=>{let{checked:Zc}=Su;return Zc}),Wc=Sc&&Ba.some(Su=>{let{checked:Zc}=Su;return Zc});ts=v.createElement(dh,{checked:Sc?Ml:!!ar.length&&ul,indeterminate:Sc?!Ml&&Wc:!ul&&Xs,onChange:so,disabled:ar.length===0||Sc,"aria-label":Cu?"Custom selection":"Select all",skipGroup:!0}),la=!Mn&&v.createElement("div",{className:`${jr}-selection`},ts,Cu)}let Ea;jn==="radio"?Ea=(Cu,Ba,Sc)=>{const Ml=Hi(Ba,Sc),Wc=Ks.has(Ml);return{node:v.createElement(vd.ZP,Object.assign({},oi.get(Ml),{checked:Wc,onClick:Su=>Su.stopPropagation(),onChange:Su=>{Ks.has(Ml)||Qs(Ml,!0,[Ml],Su.nativeEvent)}})),checked:Wc}}:Ea=(Cu,Ba,Sc)=>{var Ml;const Wc=Hi(Ba,Sc),Su=Ks.has(Wc),Zc=uo.has(Wc),hu=oi.get(Wc);let Kh;return Zo==="nest"?Kh=Zc:Kh=(Ml=hu==null?void 0:hu.indeterminate)!==null&&Ml!==void 0?Ml:Zc,{node:v.createElement(dh,Object.assign({},hu,{indeterminate:Kh,checked:Su,skipGroup:!0,onClick:kc=>kc.stopPropagation(),onChange:kc=>{let{nativeEvent:Ec}=kc;const{shiftKey:Ac}=Ec,Fl=ma.findIndex(sf=>sf===Wc),kd=Ls.some(sf=>ma.includes(sf));if(Ac&&Er&&kd){const sf=Ss(Fl,ma,Ks),th=Array.from(Ks);Br==null||Br(!Su,th.map(je=>bi(je)),sf.map(je=>bi(je))),Ro(th,"multiple")}else{const sf=Ls;if(Er){const th=Su?(0,wi._5)(sf,Wc):(0,wi.L0)(sf,Wc);Qs(Wc,!Su,th,Ec)}else{const th=(0,er.S)([].concat((0,Dr.Z)(sf),[Wc]),!0,qt,ms),{checkedKeys:je,halfCheckedKeys:Ge}=th;let _t=je;if(Su){const Rt=new Set(je);Rt.delete(Wc),_t=(0,er.S)(Array.from(Rt),{checked:!1,halfCheckedKeys:Ge},qt,ms).checkedKeys}Qs(Wc,!Su,_t,Ec)}}lo(Su?null:Fl)}})),checked:Su}};const Va=(Cu,Ba,Sc)=>{const{node:Ml,checked:Wc}=Ea(Cu,Ba,Sc);return Lr?Lr(Wc,Ba,Sc,Ml):Ml};if(!Ul.includes(Th))if(Ul.findIndex(Cu=>{var Ba;return((Ba=Cu[Dt])===null||Ba===void 0?void 0:Ba.columnType)==="EXPAND_COLUMN"})===0){const[Cu,...Ba]=Ul;Ul=[Cu,Th].concat((0,Dr.Z)(Ba))}else Ul=[Th].concat((0,Dr.Z)(Ul));const Nl=Ul.indexOf(Th);Ul=Ul.filter((Cu,Ba)=>Cu!==Th||Ba===Nl);const ja=Ul[Nl-1],vi=Ul[Nl+1];let cs=cr;cs===void 0&&((vi==null?void 0:vi.fixed)!==void 0?cs=vi.fixed:(ja==null?void 0:ja.fixed)!==void 0&&(cs=ja.fixed)),cs&&ja&&((dl=ja[Dt])===null||dl===void 0?void 0:dl.columnType)==="EXPAND_COLUMN"&&ja.fixed===void 0&&(ja.fixed=cs);const da=Be()(`${jr}-selection-col`,{[`${jr}-selection-col-with-dropdown`]:Vr&&jn==="checkbox"}),Ja=()=>rt!=null&&rt.columnTitle?typeof rt.columnTitle=="function"?rt.columnTitle(ts):rt.columnTitle:la,vu={fixed:cs,width:Gi,className:`${jr}-selection-column`,title:Ja(),render:Va,onCell:rt.onCell,[Dt]:{className:da}};return Ul.map(Cu=>Cu===Th?vu:Cu)},[Hi,ar,rt,Ls,no,uo,Gi,ra,Zo,oi,Br,Qs,ms]),no]};function Qd(Ye,rt){return Ye._antProxy=Ye._antProxy||{},Object.keys(rt).forEach(Ft=>{if(!(Ft in Ye._antProxy)){const Vt=Ye[Ft];Ye._antProxy[Ft]=Vt,Ye[Ft]=rt[Ft]}}),Ye}function Md(Ye,rt){return(0,v.useImperativeHandle)(Ye,()=>{const Ft=rt(),{nativeElement:Vt}=Ft;return typeof Proxy!="undefined"?new Proxy(Vt,{get(Jt,Fn){return Ft[Fn]?Ft[Fn]:Reflect.get(Jt,Fn)}}):Qd(Vt,Ft)})}var jh=y(75164);function Bs(Ye,rt,Ft,Vt){const Jt=Ft-rt;return Ye/=Vt/2,Ye<1?Jt/2*Ye*Ye*Ye+rt:Jt/2*((Ye-=2)*Ye*Ye+2)+rt}function Ua(Ye){return Ye!=null&&Ye===Ye.window}function Ya(Ye,rt){var Ft,Vt;if(typeof window=="undefined")return 0;const Jt=rt?"scrollTop":"scrollLeft";let Fn=0;return Ua(Ye)?Fn=Ye[rt?"pageYOffset":"pageXOffset"]:Ye instanceof Document?Fn=Ye.documentElement[Jt]:(Ye instanceof HTMLElement||Ye)&&(Fn=Ye[Jt]),Ye&&!Ua(Ye)&&typeof Fn!="number"&&(Fn=(Vt=((Ft=Ye.ownerDocument)!==null&&Ft!==void 0?Ft:Ye).documentElement)===null||Vt===void 0?void 0:Vt[Jt]),Fn}function ml(Ye){let rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ft=()=>window,callback:Vt,duration:Jt=450}=rt,Fn=Ft(),_r=Ya(Fn,!0),Yn=Date.now(),gr=()=>{const Yr=Date.now()-Yn,Br=Bs(Yr>Jt?Jt:Yr,_r,Ye,Jt);Ua(Fn)?Fn.scrollTo(window.pageXOffset,Br):Fn instanceof Document||Fn.constructor.name==="HTMLDocument"?Fn.documentElement.scrollTop=Br:Fn.scrollTop=Br,Yr=0||$i.relatedTarget.className.indexOf("".concat(xr,"-item"))>=0))&&(gr==null||gr(Er())))},Hi=function($i){Lr!==""&&($i.keyCode===su.Z.ENTER||$i.type==="click")&&(Mn(""),gr==null||gr(Er()))},Zo=function(){return Vt.some(function($i){return $i.toString()===_r.toString()})?Vt:Vt.concat([_r.toString()]).sort(function($i,wa){var ha=Number.isNaN(Number($i))?0:Number($i),Gs=Number.isNaN(Number(wa))?0:Number(wa);return ha-Gs})},mo="".concat(xr,"-options");if(!Fn&&!gr)return null;var No=null,ws=null,Ji=null;if(Fn&&Yr){var Ss=Zo().map(function(lo,$i){return v.createElement(Yr.Option,{key:$i,value:lo.toString()},jr(lo))});No=v.createElement(Yr,{disabled:Gi,prefixCls:Br,showSearch:!1,className:"".concat(mo,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(_r||Vt[0]).toString(),onChange:fi,getPopupContainer:function($i){return $i.parentNode},"aria-label":Jt.page_size,defaultOpen:!1},Ss)}return gr&&(Yn&&(Ji=typeof Yn=="boolean"?v.createElement("button",{type:"button",onClick:Hi,onKeyUp:Hi,disabled:Gi,className:"".concat(mo,"-quick-jumper-button")},Jt.jump_to_confirm):v.createElement("span",{onClick:Hi,onKeyUp:Hi},Yn)),ws=v.createElement("div",{className:"".concat(mo,"-quick-jumper")},Jt.jump_to,v.createElement("input",{disabled:Gi,type:"text",value:Lr,onChange:ai,onKeyUp:Hi,onBlur:bi,"aria-label":Jt.page}),Jt.page,Ji)),v.createElement("li",{className:mo},No,ws)},Ud=mh,Qa=function(rt){var Ft,Vt=rt.rootPrefixCls,Jt=rt.page,Fn=rt.active,_r=rt.className,Yn=rt.showTitle,gr=rt.onClick,xr=rt.onKeyPress,Yr=rt.itemRender,Br="".concat(Vt,"-item"),Gi=Be()(Br,"".concat(Br,"-").concat(Jt),(Ft={},(0,Pe.Z)(Ft,"".concat(Br,"-active"),Fn),(0,Pe.Z)(Ft,"".concat(Br,"-disabled"),!Jt),Ft),_r),jn=function(){gr(Jt)},Vr=function(Mn){xr(Mn,gr,Jt)},cr=Yr(Jt,"page",v.createElement("a",{rel:"nofollow"},Jt));return cr?v.createElement("li",{title:Yn?String(Jt):null,className:Gi,onClick:jn,onKeyDown:Vr,tabIndex:0},cr):null},mu=Qa,Dl=function(rt,Ft,Vt){return Vt};function uu(){}function Au(Ye){var rt=Number(Ye);return typeof rt=="number"&&!Number.isNaN(rt)&&isFinite(rt)&&Math.floor(rt)===rt}function xc(Ye,rt,Ft){var Vt=typeof Ye=="undefined"?rt:Ye;return Math.floor((Ft-1)/Vt)+1}var yh=function(rt){var Ft,Vt=rt.prefixCls,Jt=Vt===void 0?"rc-pagination":Vt,Fn=rt.selectPrefixCls,_r=Fn===void 0?"rc-select":Fn,Yn=rt.className,gr=rt.selectComponentClass,xr=rt.current,Yr=rt.defaultCurrent,Br=Yr===void 0?1:Yr,Gi=rt.total,jn=Gi===void 0?0:Gi,Vr=rt.pageSize,cr=rt.defaultPageSize,Lr=cr===void 0?10:cr,Mn=rt.onChange,Er=Mn===void 0?uu:Mn,jr=rt.hideOnSinglePage,fi=rt.showPrevNextJumpers,ai=fi===void 0?!0:fi,bi=rt.showQuickJumper,Hi=rt.showLessItems,Zo=rt.showTitle,mo=Zo===void 0?!0:Zo,No=rt.onShowSizeChange,ws=No===void 0?uu:No,Ji=rt.locale,Ss=Ji===void 0?el:Ji,lo=rt.style,$i=rt.totalBoundaryShowSizeChanger,wa=$i===void 0?50:$i,ha=rt.disabled,Gs=rt.simple,qt=rt.showTotal,ar=rt.showSizeChanger,oi=rt.pageSizeOptions,ms=rt.itemRender,Ls=ms===void 0?Dl:ms,Aa=rt.jumpPrevIcon,no=rt.jumpNextIcon,uo=rt.prevIcon,Ro=rt.nextIcon,Qs=v.useRef(null),ra=(0,Wr.Z)(10,{value:Vr,defaultValue:Lr}),Ke=(0,b.Z)(ra,2),Sa=Ke[0],dl=Ke[1],Ul=(0,Wr.Z)(1,{value:xr,defaultValue:Br,postState:function(Vs){return Math.max(1,Math.min(Vs,xc(void 0,Sa,jn)))}}),Ks=(0,b.Z)(Ul,2),ma=Ks[0],ul=Ks[1],Xs=v.useState(ma),so=(0,b.Z)(Xs,2),la=so[0],ts=so[1];(0,v.useEffect)(function(){ts(ma)},[ma]);var Ea=Er!==uu,Va="current"in rt,Nl=Math.max(1,ma-(Hi?3:5)),ja=Math.min(xc(void 0,Sa,jn),ma+(Hi?3:5));function vi(eu,Vs){var Po=eu||v.createElement("button",{type:"button","aria-label":Vs,className:"".concat(Jt,"-item-link")});return typeof eu=="function"&&(Po=v.createElement(eu,(0,Ue.Z)({},rt))),Po}function cs(eu){var Vs=eu.target.value,Po=xc(void 0,Sa,jn),ea;return Vs===""?ea=Vs:Number.isNaN(Number(Vs))?ea=la:Vs>=Po?ea=Po:ea=Number(Vs),ea}function da(eu){return Au(eu)&&eu!==ma&&Au(jn)&&jn>0}var Ja=jn>Sa?bi:!1;function vu(eu){(eu.keyCode===su.Z.UP||eu.keyCode===su.Z.DOWN)&&eu.preventDefault()}function Cu(eu){var Vs=cs(eu);switch(Vs!==la&&ts(Vs),eu.keyCode){case su.Z.ENTER:Ml(Vs);break;case su.Z.UP:Ml(Vs-1);break;case su.Z.DOWN:Ml(Vs+1);break;default:break}}function Ba(eu){Ml(cs(eu))}function Sc(eu){var Vs=xc(eu,Sa,jn),Po=ma>Vs&&Vs!==0?Vs:ma;dl(eu),ts(Po),ws==null||ws(ma,eu),ul(Po),Er==null||Er(Po,eu)}function Ml(eu){if(da(eu)&&!ha){var Vs=xc(void 0,Sa,jn),Po=eu;return eu>Vs?Po=Vs:eu<1&&(Po=1),Po!==la&&ts(Po),ul(Po),Er==null||Er(Po,Sa),Po}return ma}var Wc=ma>1,Su=mawa;function hu(){Wc&&Ml(ma-1)}function Kh(){Su&&Ml(ma+1)}function kc(){Ml(Nl)}function Ec(){Ml(ja)}function Ac(eu,Vs){if(eu.key==="Enter"||eu.charCode===su.Z.ENTER||eu.keyCode===su.Z.ENTER){for(var Po=arguments.length,ea=new Array(Po>2?Po-2:0),Vl=2;Vljn?jn:ma*Sa])),Ho=null,Jo=xc(void 0,Sa,jn);if(jr&&jn<=Sa)return null;var Pa=[],Ti={rootPrefixCls:Jt,onClick:Ml,onKeyPress:Ac,showTitle:mo,itemRender:Ls,page:-1},os=ma-1>0?ma-1:0,ua=ma+1=Zi*2&&ma!==1+2&&(Pa[0]=v.cloneElement(Pa[0],{className:Be()("".concat(Jt,"-item-after-jump-prev"),Pa[0].props.className)}),Pa.unshift(Rt)),Jo-ma>=Zi*2&&ma!==Jo-2){var La=Pa[Pa.length-1];Pa[Pa.length-1]=v.cloneElement(La,{className:Be()("".concat(Jt,"-item-before-jump-next"),La.props.className)}),Pa.push(Ho)}va!==1&&Pa.unshift(v.createElement(mu,(0,A.Z)({},Ti,{key:1,page:1}))),Ha!==Jo&&Pa.push(v.createElement(mu,(0,A.Z)({},Ti,{key:Jo,page:Jo})))}var Bo=je(os);if(Bo){var ka=!Wc||!Jo;Bo=v.createElement("li",{title:mo?Ss.prev_page:null,onClick:hu,tabIndex:ka?null:0,onKeyDown:Fl,className:Be()("".concat(Jt,"-prev"),(0,Pe.Z)({},"".concat(Jt,"-disabled"),ka)),"aria-disabled":ka},Bo)}var yl=Ge(ua);if(yl){var Cl,Ru;Gs?(Cl=!Su,Ru=Wc?0:null):(Cl=!Su||!Jo,Ru=Cl?null:0),yl=v.createElement("li",{title:mo?Ss.next_page:null,onClick:Kh,tabIndex:Ru,onKeyDown:kd,className:Be()("".concat(Jt,"-next"),(0,Pe.Z)({},"".concat(Jt,"-disabled"),Cl)),"aria-disabled":Cl},yl)}var Pu=Be()(Jt,Yn,(Ft={},(0,Pe.Z)(Ft,"".concat(Jt,"-simple"),Gs),(0,Pe.Z)(Ft,"".concat(Jt,"-disabled"),ha),Ft));return v.createElement("ul",(0,A.Z)({className:Pu,style:lo,ref:Qs},tr),zi,Bo,Gs?Zs:Pa,yl,v.createElement(Ud,{locale:Ss,rootPrefixCls:Jt,disabled:ha,selectComponentClass:gr,selectPrefixCls:_r,changeSize:Zc?Sc:null,pageSize:Sa,pageSizeOptions:oi,quickGo:Ja?Ml:null,goButton:nl}))},xh=yh,ef=y(62906),qd=y(10110),ld=y(34041);const hf=Ye=>v.createElement(ld.Z,Object.assign({},Ye,{showSearch:!0,size:"small"})),Od=Ye=>v.createElement(ld.Z,Object.assign({},Ye,{showSearch:!0,size:"middle"}));hf.Option=ld.Z.Option,Od.Option=ld.Z.Option;var yc=y(43109),Yh=y(47673),rh=y(14747),Mf=y(45503),yf=y(91945);const Yc=Ye=>{const{componentCls:rt}=Ye;return{[`${rt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${rt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${rt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed"}}},[`&${rt}-disabled`]:{cursor:"not-allowed",[`${rt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ye.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ye.colorBorder,backgroundColor:Ye.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ye.itemActiveBgDisabled},a:{color:Ye.itemActiveColorDisabled}}},[`${rt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${rt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${rt}-simple-pager`]:{color:Ye.colorTextDisabled},[`${rt}-jump-prev, ${rt}-jump-next`]:{[`${rt}-item-link-icon`]:{opacity:0},[`${rt}-item-ellipsis`]:{opacity:1}}},[`&${rt}-simple`]:{[`${rt}-prev, ${rt}-next`]:{[`&${rt}-disabled ${rt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ih=Ye=>{const{componentCls:rt}=Ye;return{[`&${rt}-mini ${rt}-total-text, &${rt}-mini ${rt}-simple-pager`]:{height:Ye.itemSizeSM,lineHeight:(0,yc.bf)(Ye.itemSizeSM)},[`&${rt}-mini ${rt}-item`]:{minWidth:Ye.itemSizeSM,height:Ye.itemSizeSM,margin:0,lineHeight:(0,yc.bf)(Ye.calc(Ye.itemSizeSM).sub(2).equal())},[`&${rt}-mini:not(${rt}-disabled) ${rt}-item:not(${rt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ye.colorBgTextHover},"&:active":{backgroundColor:Ye.colorBgTextActive}},[`&${rt}-mini ${rt}-prev, &${rt}-mini ${rt}-next`]:{minWidth:Ye.itemSizeSM,height:Ye.itemSizeSM,margin:0,lineHeight:(0,yc.bf)(Ye.itemSizeSM)},[`&${rt}-mini:not(${rt}-disabled)`]:{[`${rt}-prev, ${rt}-next`]:{[`&:hover ${rt}-item-link`]:{backgroundColor:Ye.colorBgTextHover},[`&:active ${rt}-item-link`]:{backgroundColor:Ye.colorBgTextActive},[`&${rt}-disabled:hover ${rt}-item-link`]:{backgroundColor:"transparent"}}},[` &${rt}-mini ${rt}-prev ${rt}-item-link, &${rt}-mini ${rt}-next ${rt}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Je.itemSizeSM,lineHeight:(0,yc.bf)(Je.itemSizeSM)}},[`&${rt}-mini ${rt}-jump-prev, &${rt}-mini ${rt}-jump-next`]:{height:Je.itemSizeSM,marginInlineEnd:0,lineHeight:(0,yc.bf)(Je.itemSizeSM)},[`&${rt}-mini ${rt}-options`]:{marginInlineStart:Je.paginationMiniOptionsMarginInlineStart,["&-size-changer"]:{top:Je.miniOptionsSizeChangerTop},["&-quick-jumper"]:{height:Je.itemSizeSM,lineHeight:(0,yc.bf)(Je.itemSizeSM),input:Object.assign(Object.assign({},(0,qd.x0)(Je)),{width:Je.paginationMiniQuickJumperInputWidth,height:Je.controlHeightSM})}}}},Sh=Je=>{const{componentCls:rt}=Je;return{[` + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ye.itemSizeSM,lineHeight:(0,yc.bf)(Ye.itemSizeSM)}},[`&${rt}-mini ${rt}-jump-prev, &${rt}-mini ${rt}-jump-next`]:{height:Ye.itemSizeSM,marginInlineEnd:0,lineHeight:(0,yc.bf)(Ye.itemSizeSM)},[`&${rt}-mini ${rt}-options`]:{marginInlineStart:Ye.paginationMiniOptionsMarginInlineStart,["&-size-changer"]:{top:Ye.miniOptionsSizeChangerTop},["&-quick-jumper"]:{height:Ye.itemSizeSM,lineHeight:(0,yc.bf)(Ye.itemSizeSM),input:Object.assign(Object.assign({},(0,Yh.x0)(Ye)),{width:Ye.paginationMiniQuickJumperInputWidth,height:Ye.controlHeightSM})}}}},Sd=Ye=>{const{componentCls:rt}=Ye;return{[` &${rt}-simple ${rt}-prev, &${rt}-simple ${rt}-next - `]:{height:Je.itemSizeSM,lineHeight:(0,yc.bf)(Je.itemSizeSM),verticalAlign:"top",[`${rt}-item-link`]:{height:Je.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Je.colorBgTextHover},"&:active":{backgroundColor:Je.colorBgTextActive},"&::after":{height:Je.itemSizeSM,lineHeight:(0,yc.bf)(Je.itemSizeSM)}}},[`&${rt}-simple ${rt}-simple-pager`]:{display:"inline-block",height:Je.itemSizeSM,marginInlineEnd:Je.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Je.marginXS,padding:`0 ${(0,yc.bf)(Je.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:Je.itemInputBg,border:`${(0,yc.bf)(Je.lineWidth)} ${Je.lineType} ${Je.colorBorder}`,borderRadius:Je.borderRadius,outline:"none",transition:`border-color ${Je.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Je.colorPrimary},"&:focus":{borderColor:Je.colorPrimaryHover,boxShadow:`${(0,yc.bf)(Je.inputOutlineOffset)} 0 ${(0,yc.bf)(Je.controlOutlineWidth)} ${Je.controlOutline}`},"&[disabled]":{color:Je.colorTextDisabled,backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder,cursor:"not-allowed"}}}}},Pl=Je=>{const{componentCls:rt}=Je;return{[`${rt}-jump-prev, ${rt}-jump-next`]:{outline:0,[`${rt}-item-container`]:{position:"relative",[`${rt}-item-link-icon`]:{color:Je.colorPrimary,fontSize:Je.fontSizeSM,opacity:0,transition:`all ${Je.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${rt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Je.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Je.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Je.paginationEllipsisTextIndent,opacity:1,transition:`all ${Je.motionDurationMid}`}},"&:hover":{[`${rt}-item-link-icon`]:{opacity:1},[`${rt}-item-ellipsis`]:{opacity:0}}},[` + `]:{height:Ye.itemSizeSM,lineHeight:(0,yc.bf)(Ye.itemSizeSM),verticalAlign:"top",[`${rt}-item-link`]:{height:Ye.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ye.colorBgTextHover},"&:active":{backgroundColor:Ye.colorBgTextActive},"&::after":{height:Ye.itemSizeSM,lineHeight:(0,yc.bf)(Ye.itemSizeSM)}}},[`&${rt}-simple ${rt}-simple-pager`]:{display:"inline-block",height:Ye.itemSizeSM,marginInlineEnd:Ye.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ye.marginXS,padding:`0 ${(0,yc.bf)(Ye.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:Ye.itemInputBg,border:`${(0,yc.bf)(Ye.lineWidth)} ${Ye.lineType} ${Ye.colorBorder}`,borderRadius:Ye.borderRadius,outline:"none",transition:`border-color ${Ye.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ye.colorPrimary},"&:focus":{borderColor:Ye.colorPrimaryHover,boxShadow:`${(0,yc.bf)(Ye.inputOutlineOffset)} 0 ${(0,yc.bf)(Ye.controlOutlineWidth)} ${Ye.controlOutline}`},"&[disabled]":{color:Ye.colorTextDisabled,backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,cursor:"not-allowed"}}}}},Pl=Ye=>{const{componentCls:rt}=Ye;return{[`${rt}-jump-prev, ${rt}-jump-next`]:{outline:0,[`${rt}-item-container`]:{position:"relative",[`${rt}-item-link-icon`]:{color:Ye.colorPrimary,fontSize:Ye.fontSizeSM,opacity:0,transition:`all ${Ye.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${rt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ye.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ye.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ye.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ye.motionDurationMid}`}},"&:hover":{[`${rt}-item-link-icon`]:{opacity:1},[`${rt}-item-ellipsis`]:{opacity:0}}},[` ${rt}-prev, ${rt}-jump-prev, ${rt}-jump-next - `]:{marginInlineEnd:Je.marginXS},[` + `]:{marginInlineEnd:Ye.marginXS},[` ${rt}-prev, ${rt}-next, ${rt}-jump-prev, ${rt}-jump-next - `]:{display:"inline-block",minWidth:Je.itemSize,height:Je.itemSize,color:Je.colorText,fontFamily:Je.fontFamily,lineHeight:`${(0,yc.bf)(Je.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Je.borderRadius,cursor:"pointer",transition:`all ${Je.motionDurationMid}`},[`${rt}-prev, ${rt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Je.colorText,cursor:"pointer",userSelect:"none"},[`${rt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Je.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,yc.bf)(Je.lineWidth)} ${Je.lineType} transparent`,borderRadius:Je.borderRadius,outline:"none",transition:`all ${Je.motionDurationMid}`},[`&:hover ${rt}-item-link`]:{backgroundColor:Je.colorBgTextHover},[`&:active ${rt}-item-link`]:{backgroundColor:Je.colorBgTextActive},[`&${rt}-disabled:hover`]:{[`${rt}-item-link`]:{backgroundColor:"transparent"}}},[`${rt}-slash`]:{marginInlineEnd:Je.paginationSlashMarginInlineEnd,marginInlineStart:Je.paginationSlashMarginInlineStart},[`${rt}-options`]:{display:"inline-block",marginInlineStart:Je.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Je.controlHeight,marginInlineStart:Je.marginXS,lineHeight:(0,yc.bf)(Je.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign({},(0,qd.ik)(Je)),{width:Je.calc(Je.controlHeightLG).mul(1.25).equal(),height:Je.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Je.marginXS,marginInlineEnd:Je.marginXS})}}}},ms=Je=>{const{componentCls:rt}=Je;return{[`${rt}-item`]:{display:"inline-block",minWidth:Je.itemSize,height:Je.itemSize,marginInlineEnd:Je.marginXS,fontFamily:Je.fontFamily,lineHeight:(0,yc.bf)(Je.calc(Je.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${(0,yc.bf)(Je.lineWidth)} ${Je.lineType} transparent`,borderRadius:Je.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,yc.bf)(Je.paginationItemPaddingInline)}`,color:Je.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${rt}-item-active)`]:{"&:hover":{transition:`all ${Je.motionDurationMid}`,backgroundColor:Je.colorBgTextHover},"&:active":{backgroundColor:Je.colorBgTextActive}},"&-active":{fontWeight:Je.fontWeightStrong,backgroundColor:Je.itemActiveBg,borderColor:Je.colorPrimary,a:{color:Je.colorPrimary},"&:hover":{borderColor:Je.colorPrimaryHover},"&:hover a":{color:Je.colorPrimaryHover}}}}},Cc=Je=>{const{componentCls:rt}=Je;return{[rt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,rd.Wf)(Je)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${rt}-total-text`]:{display:"inline-block",height:Je.itemSize,marginInlineEnd:Je.marginXS,lineHeight:(0,yc.bf)(Je.calc(Je.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ms(Je)),Pl(Je)),Sh(Je)),id(Je)),qc(Je)),{[`@media only screen and (max-width: ${Je.screenLG}px)`]:{[`${rt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Je.screenSM}px)`]:{[`${rt}-options`]:{display:"none"}}}),[`&${Je.componentCls}-rtl`]:{direction:"rtl"}}},Fi=Je=>{const{componentCls:rt}=Je;return{[`${rt}:not(${rt}-disabled)`]:{[`${rt}-item`]:Object.assign({},(0,rd.Qy)(Je)),[`${rt}-jump-prev, ${rt}-jump-next`]:{"&:focus-visible":Object.assign({[`${rt}-item-link-icon`]:{opacity:1},[`${rt}-item-ellipsis`]:{opacity:0}},(0,rd.oN)(Je))},[`${rt}-prev, ${rt}-next`]:{[`&:focus-visible ${rt}-item-link`]:Object.assign({},(0,rd.oN)(Je))}}}},ug=Je=>Object.assign({itemBg:Je.colorBgContainer,itemSize:Je.controlHeight,itemSizeSM:Je.controlHeightSM,itemActiveBg:Je.colorBgContainer,itemLinkBg:Je.colorBgContainer,itemActiveColorDisabled:Je.colorTextDisabled,itemActiveBgDisabled:Je.controlItemBgActiveDisabled,itemInputBg:Je.colorBgContainer,miniOptionsSizeChangerTop:0},(0,qd.TM)(Je)),uc=Je=>(0,Mf.TS)(Je,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Je.calc(Je.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:Je.calc(Je.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:Je.calc(Je.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:Je.calc(Je.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:Je.marginXXS,paginationSlashMarginInlineEnd:Je.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,qd.e5)(Je));var dd=(0,vf.I$)("Pagination",Je=>{const rt=uc(Je);return[Cc(rt),Fi(rt)]},ug),Ep=_(57947);const Yp=Je=>{const{componentCls:rt}=Je;return{[`${rt}${rt}-bordered${rt}-disabled:not(${rt}-mini)`]:{"&, &:hover":{[`${rt}-item-link`]:{borderColor:Je.colorBorder}},"&:focus-visible":{[`${rt}-item-link`]:{borderColor:Je.colorBorder}},[`${rt}-item, ${rt}-item-link`]:{backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder,[`&:hover:not(${rt}-item-active)`]:{backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder,a:{color:Je.colorTextDisabled}},[`&${rt}-item-active`]:{backgroundColor:Je.itemActiveBgDisabled}},[`${rt}-prev, ${rt}-next`]:{"&:hover button":{backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder,color:Je.colorTextDisabled},[`${rt}-item-link`]:{backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder}}},[`${rt}${rt}-bordered:not(${rt}-mini)`]:{[`${rt}-prev, ${rt}-next`]:{"&:hover button":{borderColor:Je.colorPrimaryHover,backgroundColor:Je.itemBg},[`${rt}-item-link`]:{backgroundColor:Je.itemLinkBg,borderColor:Je.colorBorder},[`&:hover ${rt}-item-link`]:{borderColor:Je.colorPrimary,backgroundColor:Je.itemBg,color:Je.colorPrimary},[`&${rt}-disabled`]:{[`${rt}-item-link`]:{borderColor:Je.colorBorder,color:Je.colorTextDisabled}}},[`${rt}-item`]:{backgroundColor:Je.itemBg,border:`${(0,yc.bf)(Je.lineWidth)} ${Je.lineType} ${Je.colorBorder}`,[`&:hover:not(${rt}-item-active)`]:{borderColor:Je.colorPrimary,backgroundColor:Je.itemBg,a:{color:Je.colorPrimary}},"&-active":{borderColor:Je.colorPrimary}}}}};var kg=(0,vf.bk)(["Pagination","bordered"],Je=>{const rt=uc(Je);return[Yp(rt)]},ug),_f=function(Je,rt){var Nt={};for(var Vt in Je)Object.prototype.hasOwnProperty.call(Je,Vt)&&rt.indexOf(Vt)<0&&(Nt[Vt]=Je[Vt]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,Vt=Object.getOwnPropertySymbols(Je);qt{const{prefixCls:rt,selectPrefixCls:Nt,className:Vt,rootClassName:qt,style:Fn,size:_r,locale:Jn,selectComponentClass:hr,responsive:xr,showSizeChanger:Yr}=Je,Or=_f(Je,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Ki}=(0,$u.Z)(xr),[,jn]=(0,Ep.ZP)(),{getPrefixCls:Nr,direction:cr,pagination:Lr={}}=v.useContext(ga.E_),Mn=Nr("pagination",rt),[Er,Vr]=dd(Mn),_i=Yr!=null?Yr:Lr.showSizeChanger,ai=v.useMemo(()=>{const ws=v.createElement("span",{className:`${Mn}-item-ellipsis`},"\u2022\u2022\u2022"),so=v.createElement("button",{className:`${Mn}-item-link`,type:"button",tabIndex:-1},cr==="rtl"?v.createElement(bd.Z,null):v.createElement(Ad.Z,null)),Wi=v.createElement("button",{className:`${Mn}-item-link`,type:"button",tabIndex:-1},cr==="rtl"?v.createElement(Ad.Z,null):v.createElement(bd.Z,null)),va=v.createElement("a",{className:`${Mn}-item-link`},v.createElement("div",{className:`${Mn}-item-container`},cr==="rtl"?v.createElement(Ch,{className:`${Mn}-item-link-icon`}):v.createElement(fd,{className:`${Mn}-item-link-icon`}),ws)),ha=v.createElement("a",{className:`${Mn}-item-link`},v.createElement("div",{className:`${Mn}-item-container`},cr==="rtl"?v.createElement(fd,{className:`${Mn}-item-link-icon`}):v.createElement(Ch,{className:`${Mn}-item-link-icon`}),ws));return{prevIcon:so,nextIcon:Wi,jumpPrevIcon:va,jumpNextIcon:ha}},[cr,Mn]),[wi]=(0,Jh.Z)("Pagination",ef.Z),Hi=Object.assign(Object.assign({},wi),Jn),Wo=(0,ac.Z)(_r),po=Wo==="small"||!!(Ki&&!Wo&&xr),Uo=Nr("select",Nt),xs=ze()({[`${Mn}-mini`]:po,[`${Mn}-rtl`]:cr==="rtl",[`${Mn}-bordered`]:jn.wireframe},Lr==null?void 0:Lr.className,Vt,qt,Vr),Xi=Object.assign(Object.assign({},Lr==null?void 0:Lr.style),Fn);return Er(v.createElement(v.Fragment,null,jn.wireframe&&v.createElement(kg,{prefixCls:Mn}),v.createElement(wd,Object.assign({},ai,Or,{style:Xi,prefixCls:Mn,selectPrefixCls:Uo,className:xs,selectComponentClass:hr||(po?cf:Rh),locale:Hi,showSizeChanger:_i}))))},fp=qp,Sg=_(70206);function ip(Je){return function(Nt){let{prefixCls:Vt,onExpand:qt,record:Fn,expanded:_r,expandable:Jn}=Nt;const hr=`${Vt}-row-expand-icon`;return v.createElement("button",{type:"button",onClick:xr=>{qt(Fn,xr),xr.stopPropagation()},className:ze()(hr,{[`${hr}-spaced`]:!Jn,[`${hr}-expanded`]:Jn&&_r,[`${hr}-collapsed`]:Jn&&!_r}),"aria-label":_r?Je.collapse:Je.expand,"aria-expanded":_r})}}var dp=ip;function Kd(Je){return(Nt,Vt)=>{const qt=Nt.querySelector(`.${Je}-container`);let Fn=Vt;if(qt){const _r=getComputedStyle(qt),Jn=parseInt(_r.borderLeftWidth,10),hr=parseInt(_r.borderRightWidth,10);Fn=Vt-Jn-hr}return Fn}}function xp(Je,rt){return"key"in Je&&Je.key!==void 0&&Je.key!==null?Je.key:Je.dataIndex?Array.isArray(Je.dataIndex)?Je.dataIndex.join("."):Je.dataIndex:rt}function cg(Je,rt){return rt?`${rt}-${Je}`:`${Je}`}function Lp(Je,rt){return typeof Je=="function"?Je(rt):Je}function gh(Je,rt){const Nt=Lp(Je,rt);return Object.prototype.toString.call(Nt)==="[object Object]"?"":Nt}var eg=_(58825),Jd=function(rt,Nt){return v.createElement(Ou.Z,(0,A.Z)({},rt,{ref:Nt,icon:eg.Z}))},Pf=v.forwardRef(Jd),hp=_(81259);function Pu(Je){const rt=v.useRef(Je),Nt=(0,hp.Z)();return[()=>rt.current,Vt=>{rt.current=Vt,Nt()}]}var Rp=_(9949),Tp=_(12798),Hf=_(80977),Od=_(26851),Fd=_(93274),Nd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Ld=Nd,Sf=function(rt,Nt){return v.createElement(Ou.Z,(0,A.Z)({},rt,{ref:Nt,icon:Ld}))},pp=v.forwardRef(Sf),tg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Dd=tg,Rf=function(rt,Nt){return v.createElement(Ou.Z,(0,A.Z)({},rt,{ref:Nt,icon:Dd}))},zh=v.forwardRef(Rf),kh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Yf=kh,vd=function(rt,Nt){return v.createElement(Ou.Z,(0,A.Z)({},rt,{ref:Nt,icon:Yf}))},$c=v.forwardRef(vd),oh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Xh=oh,zo=function(rt,Nt){return v.createElement(Ou.Z,(0,A.Z)({},rt,{ref:Nt,icon:Xh}))},P=v.forwardRef(zo),j=_(82395),ae=_(10554);const pe=new yc.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),it=(Je,rt)=>({[`.${Je}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${rt.motionDurationSlow}`}}}),dn=(Je,rt)=>({[`.${Je}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:rt.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,yc.bf)(rt.lineWidthBold)} solid ${rt.colorPrimary}`,borderRadius:"50%",content:'""'}}}),ir=(Je,rt)=>{const{treeCls:Nt,treeNodeCls:Vt,treeNodePadding:qt,titleHeight:Fn,nodeSelectedBg:_r,nodeHoverBg:Jn}=rt,hr=rt.paddingXS;return{[Nt]:Object.assign(Object.assign({},(0,rd.Wf)(rt)),{background:rt.colorBgContainer,borderRadius:rt.borderRadius,transition:`background-color ${rt.motionDurationSlow}`,[`&${Nt}-rtl`]:{[`${Nt}-switcher`]:{"&_close":{[`${Nt}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${Nt}-active-focused)`]:Object.assign({},(0,rd.oN)(rt)),[`${Nt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Nt}-block-node`]:{[`${Nt}-list-holder-inner`]:{alignItems:"stretch",[`${Nt}-node-content-wrapper`]:{flex:"auto"},[`${Vt}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:qt,insetInlineStart:0,border:`1px solid ${rt.colorPrimary}`,opacity:0,animationName:pe,animationDuration:rt.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Vt}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${(0,yc.bf)(qt)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${Nt}-node-content-wrapper`]:{color:rt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Nt}-node-content-wrapper`]:Object.assign({},(0,rd.oN)(rt)),[`&:not(${Vt}-disabled).filter-node ${Nt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${Nt}-draggable-icon`]:{flexShrink:0,width:Fn,lineHeight:`${(0,yc.bf)(Fn)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${rt.motionDurationSlow}`,[`${Vt}:hover &`]:{opacity:.45}},[`&${Vt}-disabled`]:{[`${Nt}-draggable-icon`]:{visibility:"hidden"}}}},[`${Nt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Fn}},[`${Nt}-draggable-icon`]:{visibility:"hidden"},[`${Nt}-switcher`]:Object.assign(Object.assign({},it(Je,rt)),{position:"relative",flex:"none",alignSelf:"stretch",width:Fn,margin:0,lineHeight:`${(0,yc.bf)(Fn)}`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${Nt}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:rt.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:rt.calc(Fn).div(2).equal(),bottom:rt.calc(qt).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${rt.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:rt.calc(rt.calc(Fn).div(2).equal()).mul(.8).equal(),height:rt.calc(Fn).div(2).equal(),borderBottom:`1px solid ${rt.colorBorder}`,content:'""'}}}),[`${Nt}-checkbox`]:{top:"initial",marginInlineEnd:hr,alignSelf:"flex-start",marginTop:rt.marginXXS},[`${Nt}-node-content-wrapper, ${Nt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:Fn,margin:0,padding:`0 ${(0,yc.bf)(rt.calc(rt.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${(0,yc.bf)(Fn)}`,background:"transparent",borderRadius:rt.borderRadius,cursor:"pointer",transition:`all ${rt.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Jn},[`&${Nt}-node-selected`]:{backgroundColor:_r},[`${Nt}-iconEle`]:{display:"inline-block",width:Fn,height:Fn,lineHeight:`${(0,yc.bf)(Fn)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${Nt}-unselectable ${Nt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Nt}-node-content-wrapper`]:Object.assign({lineHeight:`${(0,yc.bf)(Fn)}`,userSelect:"none"},dn(Je,rt)),[`${Vt}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${rt.colorPrimary}`}},"&-show-line":{[`${Nt}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:rt.calc(Fn).div(2).equal(),bottom:rt.calc(qt).mul(-1).equal(),borderInlineEnd:`1px solid ${rt.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${Nt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Vt}-leaf-last`]:{[`${Nt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${(0,yc.bf)(rt.calc(Fn).div(2).equal())} !important`}}}}})}},Te=Je=>{const{treeCls:rt,treeNodeCls:Nt,treeNodePadding:Vt,directoryNodeSelectedBg:qt,directoryNodeSelectedColor:Fn}=Je;return{[`${rt}${rt}-directory`]:{[Nt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Vt,insetInlineStart:0,transition:`background-color ${Je.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Je.controlItemBgHover}},"> *":{zIndex:1},[`${rt}-switcher`]:{transition:`color ${Je.motionDurationMid}`},[`${rt}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${rt}-node-selected`]:{color:Fn,background:"transparent"}},"&-selected":{[` + `]:{display:"inline-block",minWidth:Ye.itemSize,height:Ye.itemSize,color:Ye.colorText,fontFamily:Ye.fontFamily,lineHeight:`${(0,yc.bf)(Ye.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ye.borderRadius,cursor:"pointer",transition:`all ${Ye.motionDurationMid}`},[`${rt}-prev, ${rt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ye.colorText,cursor:"pointer",userSelect:"none"},[`${rt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ye.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,yc.bf)(Ye.lineWidth)} ${Ye.lineType} transparent`,borderRadius:Ye.borderRadius,outline:"none",transition:`all ${Ye.motionDurationMid}`},[`&:hover ${rt}-item-link`]:{backgroundColor:Ye.colorBgTextHover},[`&:active ${rt}-item-link`]:{backgroundColor:Ye.colorBgTextActive},[`&${rt}-disabled:hover`]:{[`${rt}-item-link`]:{backgroundColor:"transparent"}}},[`${rt}-slash`]:{marginInlineEnd:Ye.paginationSlashMarginInlineEnd,marginInlineStart:Ye.paginationSlashMarginInlineStart},[`${rt}-options`]:{display:"inline-block",marginInlineStart:Ye.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ye.controlHeight,marginInlineStart:Ye.marginXS,lineHeight:(0,yc.bf)(Ye.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign({},(0,Yh.ik)(Ye)),{width:Ye.calc(Ye.controlHeightLG).mul(1.25).equal(),height:Ye.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ye.marginXS,marginInlineEnd:Ye.marginXS})}}}},ys=Ye=>{const{componentCls:rt}=Ye;return{[`${rt}-item`]:{display:"inline-block",minWidth:Ye.itemSize,height:Ye.itemSize,marginInlineEnd:Ye.marginXS,fontFamily:Ye.fontFamily,lineHeight:(0,yc.bf)(Ye.calc(Ye.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${(0,yc.bf)(Ye.lineWidth)} ${Ye.lineType} transparent`,borderRadius:Ye.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,yc.bf)(Ye.paginationItemPaddingInline)}`,color:Ye.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${rt}-item-active)`]:{"&:hover":{transition:`all ${Ye.motionDurationMid}`,backgroundColor:Ye.colorBgTextHover},"&:active":{backgroundColor:Ye.colorBgTextActive}},"&-active":{fontWeight:Ye.fontWeightStrong,backgroundColor:Ye.itemActiveBg,borderColor:Ye.colorPrimary,a:{color:Ye.colorPrimary},"&:hover":{borderColor:Ye.colorPrimaryHover},"&:hover a":{color:Ye.colorPrimaryHover}}}}},Oc=Ye=>{const{componentCls:rt}=Ye;return{[rt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,rh.Wf)(Ye)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${rt}-total-text`]:{display:"inline-block",height:Ye.itemSize,marginInlineEnd:Ye.marginXS,lineHeight:(0,yc.bf)(Ye.calc(Ye.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ys(Ye)),Pl(Ye)),Sd(Ye)),ih(Ye)),Yc(Ye)),{[`@media only screen and (max-width: ${Ye.screenLG}px)`]:{[`${rt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ye.screenSM}px)`]:{[`${rt}-options`]:{display:"none"}}}),[`&${Ye.componentCls}-rtl`]:{direction:"rtl"}}},Oi=Ye=>{const{componentCls:rt}=Ye;return{[`${rt}:not(${rt}-disabled)`]:{[`${rt}-item`]:Object.assign({},(0,rh.Qy)(Ye)),[`${rt}-jump-prev, ${rt}-jump-next`]:{"&:focus-visible":Object.assign({[`${rt}-item-link-icon`]:{opacity:1},[`${rt}-item-ellipsis`]:{opacity:0}},(0,rh.oN)(Ye))},[`${rt}-prev, ${rt}-next`]:{[`&:focus-visible ${rt}-item-link`]:Object.assign({},(0,rh.oN)(Ye))}}}},$p=Ye=>Object.assign({itemBg:Ye.colorBgContainer,itemSize:Ye.controlHeight,itemSizeSM:Ye.controlHeightSM,itemActiveBg:Ye.colorBgContainer,itemLinkBg:Ye.colorBgContainer,itemActiveColorDisabled:Ye.colorTextDisabled,itemActiveBgDisabled:Ye.controlItemBgActiveDisabled,itemInputBg:Ye.colorBgContainer,miniOptionsSizeChangerTop:0},(0,Yh.TM)(Ye)),gc=Ye=>(0,Mf.TS)(Ye,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ye.calc(Ye.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:Ye.calc(Ye.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:Ye.calc(Ye.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:Ye.calc(Ye.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:Ye.marginXXS,paginationSlashMarginInlineEnd:Ye.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Yh.e5)(Ye));var uh=(0,yf.I$)("Pagination",Ye=>{const rt=gc(Ye);return[Oc(rt),Oi(rt)]},$p),pp=y(25976);const Qp=Ye=>{const{componentCls:rt}=Ye;return{[`${rt}${rt}-bordered${rt}-disabled:not(${rt}-mini)`]:{"&, &:hover":{[`${rt}-item-link`]:{borderColor:Ye.colorBorder}},"&:focus-visible":{[`${rt}-item-link`]:{borderColor:Ye.colorBorder}},[`${rt}-item, ${rt}-item-link`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,[`&:hover:not(${rt}-item-active)`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,a:{color:Ye.colorTextDisabled}},[`&${rt}-item-active`]:{backgroundColor:Ye.itemActiveBgDisabled}},[`${rt}-prev, ${rt}-next`]:{"&:hover button":{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,color:Ye.colorTextDisabled},[`${rt}-item-link`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder}}},[`${rt}${rt}-bordered:not(${rt}-mini)`]:{[`${rt}-prev, ${rt}-next`]:{"&:hover button":{borderColor:Ye.colorPrimaryHover,backgroundColor:Ye.itemBg},[`${rt}-item-link`]:{backgroundColor:Ye.itemLinkBg,borderColor:Ye.colorBorder},[`&:hover ${rt}-item-link`]:{borderColor:Ye.colorPrimary,backgroundColor:Ye.itemBg,color:Ye.colorPrimary},[`&${rt}-disabled`]:{[`${rt}-item-link`]:{borderColor:Ye.colorBorder,color:Ye.colorTextDisabled}}},[`${rt}-item`]:{backgroundColor:Ye.itemBg,border:`${(0,yc.bf)(Ye.lineWidth)} ${Ye.lineType} ${Ye.colorBorder}`,[`&:hover:not(${rt}-item-active)`]:{borderColor:Ye.colorPrimary,backgroundColor:Ye.itemBg,a:{color:Ye.colorPrimary}},"&-active":{borderColor:Ye.colorPrimary}}}}};var Ng=(0,yf.bk)(["Pagination","bordered"],Ye=>{const rt=gc(Ye);return[Qp(rt)]},$p),xf=function(Ye,rt){var Ft={};for(var Vt in Ye)Object.prototype.hasOwnProperty.call(Ye,Vt)&&rt.indexOf(Vt)<0&&(Ft[Vt]=Ye[Vt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Vt=Object.getOwnPropertySymbols(Ye);Jt{const{prefixCls:rt,selectPrefixCls:Ft,className:Vt,rootClassName:Jt,style:Fn,size:_r,locale:Yn,selectComponentClass:gr,responsive:xr,showSizeChanger:Yr}=Ye,Br=xf(Ye,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Gi}=(0,ju.Z)(xr),[,jn]=(0,pp.ZP)(),{getPrefixCls:Vr,direction:cr,pagination:Lr={}}=v.useContext(ga.E_),Mn=Vr("pagination",rt),[Er,jr]=uh(Mn),fi=Yr!=null?Yr:Lr.showSizeChanger,ai=v.useMemo(()=>{const Ss=v.createElement("span",{className:`${Mn}-item-ellipsis`},"\u2022\u2022\u2022"),lo=v.createElement("button",{className:`${Mn}-item-link`,type:"button",tabIndex:-1},cr==="rtl"?v.createElement(bh.Z,null):v.createElement(Ah.Z,null)),$i=v.createElement("button",{className:`${Mn}-item-link`,type:"button",tabIndex:-1},cr==="rtl"?v.createElement(Ah.Z,null):v.createElement(bh.Z,null)),wa=v.createElement("a",{className:`${Mn}-item-link`},v.createElement("div",{className:`${Mn}-item-container`},cr==="rtl"?v.createElement(Cd,{className:`${Mn}-item-link-icon`}):v.createElement(fh,{className:`${Mn}-item-link-icon`}),Ss)),ha=v.createElement("a",{className:`${Mn}-item-link`},v.createElement("div",{className:`${Mn}-item-container`},cr==="rtl"?v.createElement(fh,{className:`${Mn}-item-link-icon`}):v.createElement(Cd,{className:`${Mn}-item-link-icon`}),Ss));return{prevIcon:lo,nextIcon:$i,jumpPrevIcon:wa,jumpNextIcon:ha}},[cr,Mn]),[bi]=(0,qd.Z)("Pagination",ef.Z),Hi=Object.assign(Object.assign({},bi),Yn),Zo=(0,ac.Z)(_r),mo=Zo==="small"||!!(Gi&&!Zo&&xr),No=Vr("select",Ft),ws=Be()({[`${Mn}-mini`]:mo,[`${Mn}-rtl`]:cr==="rtl",[`${Mn}-bordered`]:jn.wireframe},Lr==null?void 0:Lr.className,Vt,Jt,jr),Ji=Object.assign(Object.assign({},Lr==null?void 0:Lr.style),Fn);return Er(v.createElement(v.Fragment,null,jn.wireframe&&v.createElement(Ng,{prefixCls:Mn}),v.createElement(xh,Object.assign({},ai,Br,{style:Ji,prefixCls:Mn,selectPrefixCls:No,className:ws,selectComponentClass:gr||(mo?hf:Od),locale:Hi,showSizeChanger:fi}))))},gp=eg,Tg=y(75081);function sp(Ye){return function(Ft){let{prefixCls:Vt,onExpand:Jt,record:Fn,expanded:_r,expandable:Yn}=Ft;const gr=`${Vt}-row-expand-icon`;return v.createElement("button",{type:"button",onClick:xr=>{Jt(Fn,xr),xr.stopPropagation()},className:Be()(gr,{[`${gr}-spaced`]:!Yn,[`${gr}-expanded`]:Yn&&_r,[`${gr}-collapsed`]:Yn&&!_r}),"aria-label":_r?Ye.collapse:Ye.expand,"aria-expanded":_r})}}var hp=sp;function Wh(Ye){return(Ft,Vt)=>{const Jt=Ft.querySelector(`.${Ye}-container`);let Fn=Vt;if(Jt){const _r=getComputedStyle(Jt),Yn=parseInt(_r.borderLeftWidth,10),gr=parseInt(_r.borderRightWidth,10);Fn=Vt-Yn-gr}return Fn}}function Cp(Ye,rt){return"key"in Ye&&Ye.key!==void 0&&Ye.key!==null?Ye.key:Ye.dataIndex?Array.isArray(Ye.dataIndex)?Ye.dataIndex.join("."):Ye.dataIndex:rt}function fg(Ye,rt){return rt?`${rt}-${Ye}`:`${Ye}`}function Mp(Ye,rt){return typeof Ye=="function"?Ye(rt):Ye}function gd(Ye,rt){const Ft=Mp(Ye,rt);return Object.prototype.toString.call(Ft)==="[object Object]"?"":Ft}var ig=y(98851),qh=function(rt,Ft){return v.createElement(Nu.Z,(0,A.Z)({},rt,{ref:Ft,icon:ig.Z}))},kf=v.forwardRef(qh),_p=y(57838);function Du(Ye){const rt=v.useRef(Ye),Ft=(0,_p.Z)();return[()=>rt.current,Vt=>{rt.current=Vt,Ft()}]}var Rp=y(15867),Dp=y(32983),Gf=y(82610),kh=y(76529),Bh=y(70593),Jh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Oh=Jh,Tf=function(rt,Ft){return v.createElement(Nu.Z,(0,A.Z)({},rt,{ref:Ft,icon:Oh}))},Zf=v.forwardRef(Tf),Ip={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Dh=Ip,Of=function(rt,Ft){return v.createElement(Nu.Z,(0,A.Z)({},rt,{ref:Ft,icon:Dh}))},zd=v.forwardRef(Of),Rd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Kf=Rd,Eh=function(rt,Ft){return v.createElement(Nu.Z,(0,A.Z)({},rt,{ref:Ft,icon:Kf}))},jc=v.forwardRef(Eh),zh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Xd=zh,zo=function(rt,Ft){return v.createElement(Nu.Z,(0,A.Z)({},rt,{ref:Ft,icon:Xd}))},L=v.forwardRef(zo),j=y(33603),le=y(33507);const ge=new yc.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ot=(Ye,rt)=>({[`.${Ye}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${rt.motionDurationSlow}`}}}),dn=(Ye,rt)=>({[`.${Ye}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:rt.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,yc.bf)(rt.lineWidthBold)} solid ${rt.colorPrimary}`,borderRadius:"50%",content:'""'}}}),or=(Ye,rt)=>{const{treeCls:Ft,treeNodeCls:Vt,treeNodePadding:Jt,titleHeight:Fn,nodeSelectedBg:_r,nodeHoverBg:Yn}=rt,gr=rt.paddingXS;return{[Ft]:Object.assign(Object.assign({},(0,rh.Wf)(rt)),{background:rt.colorBgContainer,borderRadius:rt.borderRadius,transition:`background-color ${rt.motionDurationSlow}`,[`&${Ft}-rtl`]:{[`${Ft}-switcher`]:{"&_close":{[`${Ft}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${Ft}-active-focused)`]:Object.assign({},(0,rh.oN)(rt)),[`${Ft}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Ft}-block-node`]:{[`${Ft}-list-holder-inner`]:{alignItems:"stretch",[`${Ft}-node-content-wrapper`]:{flex:"auto"},[`${Vt}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Jt,insetInlineStart:0,border:`1px solid ${rt.colorPrimary}`,opacity:0,animationName:ge,animationDuration:rt.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Vt}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${(0,yc.bf)(Jt)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${Ft}-node-content-wrapper`]:{color:rt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Ft}-node-content-wrapper`]:Object.assign({},(0,rh.oN)(rt)),[`&:not(${Vt}-disabled).filter-node ${Ft}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${Ft}-draggable-icon`]:{flexShrink:0,width:Fn,lineHeight:`${(0,yc.bf)(Fn)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${rt.motionDurationSlow}`,[`${Vt}:hover &`]:{opacity:.45}},[`&${Vt}-disabled`]:{[`${Ft}-draggable-icon`]:{visibility:"hidden"}}}},[`${Ft}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Fn}},[`${Ft}-draggable-icon`]:{visibility:"hidden"},[`${Ft}-switcher`]:Object.assign(Object.assign({},ot(Ye,rt)),{position:"relative",flex:"none",alignSelf:"stretch",width:Fn,margin:0,lineHeight:`${(0,yc.bf)(Fn)}`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${Ft}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:rt.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:rt.calc(Fn).div(2).equal(),bottom:rt.calc(Jt).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${rt.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:rt.calc(rt.calc(Fn).div(2).equal()).mul(.8).equal(),height:rt.calc(Fn).div(2).equal(),borderBottom:`1px solid ${rt.colorBorder}`,content:'""'}}}),[`${Ft}-checkbox`]:{top:"initial",marginInlineEnd:gr,alignSelf:"flex-start",marginTop:rt.marginXXS},[`${Ft}-node-content-wrapper, ${Ft}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:Fn,margin:0,padding:`0 ${(0,yc.bf)(rt.calc(rt.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${(0,yc.bf)(Fn)}`,background:"transparent",borderRadius:rt.borderRadius,cursor:"pointer",transition:`all ${rt.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Yn},[`&${Ft}-node-selected`]:{backgroundColor:_r},[`${Ft}-iconEle`]:{display:"inline-block",width:Fn,height:Fn,lineHeight:`${(0,yc.bf)(Fn)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${Ft}-unselectable ${Ft}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Ft}-node-content-wrapper`]:Object.assign({lineHeight:`${(0,yc.bf)(Fn)}`,userSelect:"none"},dn(Ye,rt)),[`${Vt}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${rt.colorPrimary}`}},"&-show-line":{[`${Ft}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:rt.calc(Fn).div(2).equal(),bottom:rt.calc(Jt).mul(-1).equal(),borderInlineEnd:`1px solid ${rt.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${Ft}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Vt}-leaf-last`]:{[`${Ft}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${(0,yc.bf)(rt.calc(Fn).div(2).equal())} !important`}}}}})}},Ie=Ye=>{const{treeCls:rt,treeNodeCls:Ft,treeNodePadding:Vt,directoryNodeSelectedBg:Jt,directoryNodeSelectedColor:Fn}=Ye;return{[`${rt}${rt}-directory`]:{[Ft]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Vt,insetInlineStart:0,transition:`background-color ${Ye.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ye.controlItemBgHover}},"> *":{zIndex:1},[`${rt}-switcher`]:{transition:`color ${Ye.motionDurationMid}`},[`${rt}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${rt}-node-selected`]:{color:Fn,background:"transparent"}},"&-selected":{[` &:hover::before, &::before - `]:{background:qt},[`${rt}-switcher`]:{color:Fn},[`${rt}-node-content-wrapper`]:{color:Fn,background:"transparent"}}}}}},D=(Je,rt)=>{const Nt=`.${Je}`,Vt=`${Nt}-treenode`,qt=rt.calc(rt.paddingXS).div(2).equal(),Fn=(0,Mf.TS)(rt,{treeCls:Nt,treeNodeCls:Vt,treeNodePadding:qt});return[ir(Je,Fn),Te(Fn)]},ie=Je=>{const{controlHeightSM:rt}=Je;return{titleHeight:rt,nodeHoverBg:Je.controlItemBgHover,nodeSelectedBg:Je.controlItemBgActive}},Se=Je=>{const{colorTextLightSolid:rt,colorPrimary:Nt}=Je;return Object.assign(Object.assign({},ie(Je)),{directoryNodeSelectedColor:rt,directoryNodeSelectedBg:Nt})};var Ne=(0,vf.I$)("Tree",(Je,rt)=>{let{prefixCls:Nt}=rt;return[{[Je.componentCls]:(0,Ya.C2)(`${Nt}-checkbox`,Je)},D(Nt,Je),(0,ae.Z)(Je)]},Se);const ct=4;function Ht(Je){const{dropPosition:rt,dropLevelOffset:Nt,prefixCls:Vt,indent:qt,direction:Fn="ltr"}=Je,_r=Fn==="ltr"?"left":"right",Jn=Fn==="ltr"?"right":"left",hr={[_r]:-Nt*qt+ct,[Jn]:0};switch(rt){case-1:hr.top=-3;break;case 1:hr.bottom=-3;break;default:hr.bottom=-3,hr[_r]=qt+ct;break}return v.createElement("div",{style:hr,className:`${Vt}-drop-indicator`})}var en={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},zn=en,Ir=function(rt,Nt){return v.createElement(Ou.Z,(0,A.Z)({},rt,{ref:Nt,icon:zn}))},G=v.forwardRef(Ir),J=_(38521),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},ue=Q,Ze=function(rt,Nt){return v.createElement(Ou.Z,(0,A.Z)({},rt,{ref:Nt,icon:ue}))},Et=v.forwardRef(Ze),Ot=_(15702),mn=function(rt,Nt){return v.createElement(Ou.Z,(0,A.Z)({},rt,{ref:Nt,icon:Ot.Z}))},yr=v.forwardRef(mn),Sn=_(29341),ki=Je=>{const{prefixCls:rt,switcherIcon:Nt,treeNodeProps:Vt,showLine:qt}=Je,{isLeaf:Fn,expanded:_r,loading:Jn}=Vt;if(Jn)return v.createElement(J.Z,{className:`${rt}-switcher-loading-icon`});let hr;if(qt&&typeof qt=="object"&&(hr=qt.showLeafIcon),Fn){if(!qt)return null;if(typeof hr!="boolean"&&hr){const Or=typeof hr=="function"?hr(Vt):hr,Ki=`${rt}-switcher-line-custom-icon`;return(0,Sn.l$)(Or)?(0,Sn.Tm)(Or,{className:ze()(Or.props.className||"",Ki)}):Or}return hr?v.createElement(pp,{className:`${rt}-switcher-line-icon`}):v.createElement("span",{className:`${rt}-switcher-leaf-line`})}const xr=`${rt}-switcher-icon`,Yr=typeof Nt=="function"?Nt(Vt):Nt;return(0,Sn.l$)(Yr)?(0,Sn.Tm)(Yr,{className:ze()(Yr.props.className||"",xr)}):Yr!==void 0?Yr:qt?_r?v.createElement(Et,{className:`${rt}-switcher-line-icon`}):v.createElement(yr,{className:`${rt}-switcher-line-icon`}):v.createElement(G,{className:xr})},Bo=v.forwardRef((Je,rt)=>{const{getPrefixCls:Nt,direction:Vt,virtual:qt,tree:Fn}=v.useContext(ga.E_),{prefixCls:_r,className:Jn,showIcon:hr=!1,showLine:xr,switcherIcon:Yr,blockNode:Or=!1,children:Ki,checkable:jn=!1,selectable:Nr=!0,draggable:cr,motion:Lr,style:Mn}=Je,Er=Nt("tree",_r),Vr=Nt(),_i=Lr!=null?Lr:Object.assign(Object.assign({},(0,j.Z)(Vr)),{motionAppear:!1}),ai=Object.assign(Object.assign({},Je),{checkable:jn,selectable:Nr,showIcon:hr,motion:_i,blockNode:Or,showLine:!!xr,dropIndicatorRender:Ht}),[wi,Hi]=Ne(Er),Wo=v.useMemo(()=>{if(!cr)return!1;let Uo={};switch(typeof cr){case"function":Uo.nodeDraggable=cr;break;case"object":Uo=Object.assign({},cr);break;default:break}return Uo.icon!==!1&&(Uo.icon=Uo.icon||v.createElement(P,null)),Uo},[cr]),po=Uo=>v.createElement(ki,{prefixCls:Er,switcherIcon:Yr,treeNodeProps:Uo,showLine:xr});return wi(v.createElement(Fd.Z,Object.assign({itemHeight:20,ref:rt,virtual:qt},ai,{style:Object.assign(Object.assign({},Fn==null?void 0:Fn.style),Mn),prefixCls:Er,className:ze()({[`${Er}-icon-hide`]:!hr,[`${Er}-block-node`]:Or,[`${Er}-unselectable`]:!Nr,[`${Er}-rtl`]:Vt==="rtl"},Fn==null?void 0:Fn.className,Jn,Hi),direction:Vt,checkable:jn&&v.createElement("span",{className:`${Er}-checkbox-inner`}),selectable:Nr,switcherIcon:po,draggable:Wo}),Ki))}),Go;(function(Je){Je[Je.None=0]="None",Je[Je.Start=1]="Start",Je[Je.End=2]="End"})(Go||(Go={}));function zi(Je,rt,Nt){const{key:Vt,children:qt}=Nt;function Fn(_r){const Jn=_r[Vt],hr=_r[qt];rt(Jn,_r)!==!1&&zi(hr||[],rt,Nt)}Je.forEach(Fn)}function $o(Je){let{treeData:rt,expandedKeys:Nt,startKey:Vt,endKey:qt,fieldNames:Fn}=Je;const _r=[];let Jn=Go.None;if(Vt&&Vt===qt)return[Vt];if(!Vt||!qt)return[];function hr(xr){return xr===Vt||xr===qt}return zi(rt,xr=>{if(Jn===Go.End)return!1;if(hr(xr)){if(_r.push(xr),Jn===Go.None)Jn=Go.Start;else if(Jn===Go.Start)return Jn=Go.End,!1}else Jn===Go.Start&&_r.push(xr);return Nt.includes(xr)},(0,Un.w$)(Fn)),_r}function Ks(Je,rt,Nt){const Vt=(0,Dr.Z)(rt),qt=[];return zi(Je,(Fn,_r)=>{const Jn=Vt.indexOf(Fn);return Jn!==-1&&(qt.push(_r),Vt.splice(Jn,1)),!!Vt.length},(0,Un.w$)(Nt)),qt}var nl=function(Je,rt){var Nt={};for(var Vt in Je)Object.prototype.hasOwnProperty.call(Je,Vt)&&rt.indexOf(Vt)<0&&(Nt[Vt]=Je[Vt]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,Vt=Object.getOwnPropertySymbols(Je);qt{var{defaultExpandAll:Nt,defaultExpandParent:Vt,defaultExpandedKeys:qt}=Je,Fn=nl(Je,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const _r=v.useRef(),Jn=v.useRef(),hr=()=>{const{keyEntities:Wo}=(0,Un.I8)(Kl(Fn));let po;return Nt?po=Object.keys(Wo):Vt?po=(0,Si.r7)(Fn.expandedKeys||qt||[],Wo):po=Fn.expandedKeys||qt,po},[xr,Yr]=v.useState(Fn.selectedKeys||Fn.defaultSelectedKeys||[]),[Or,Ki]=v.useState(()=>hr());v.useEffect(()=>{"selectedKeys"in Fn&&Yr(Fn.selectedKeys)},[Fn.selectedKeys]),v.useEffect(()=>{"expandedKeys"in Fn&&Ki(Fn.expandedKeys)},[Fn.expandedKeys]);const jn=(Wo,po)=>{var Uo;return"expandedKeys"in Fn||Ki(Wo),(Uo=Fn.onExpand)===null||Uo===void 0?void 0:Uo.call(Fn,Wo,po)},Nr=(Wo,po)=>{var Uo;const{multiple:xs,fieldNames:Xi}=Fn,{node:ws,nativeEvent:so}=po,{key:Wi=""}=ws,va=Kl(Fn),ha=Object.assign(Object.assign({},po),{selected:!0}),qs=(so==null?void 0:so.ctrlKey)||(so==null?void 0:so.metaKey),Yt=so==null?void 0:so.shiftKey;let ar;xs&&qs?(ar=Wo,_r.current=Wi,Jn.current=ar,ha.selectedNodes=Ks(va,ar,Xi)):xs&&Yt?(ar=Array.from(new Set([].concat((0,Dr.Z)(Jn.current||[]),(0,Dr.Z)($o({treeData:va,expandedKeys:Or,startKey:Wi,endKey:_r.current,fieldNames:Xi}))))),ha.selectedNodes=Ks(va,ar,Xi)):(ar=[Wi],_r.current=Wi,Jn.current=ar,ha.selectedNodes=Ks(va,ar,Xi)),(Uo=Fn.onSelect)===null||Uo===void 0||Uo.call(Fn,ar,ha),"selectedKeys"in Fn||Yr(ar)},{getPrefixCls:cr,direction:Lr}=v.useContext(ga.E_),{prefixCls:Mn,className:Er,showIcon:Vr=!0,expandAction:_i="click"}=Fn,ai=nl(Fn,["prefixCls","className","showIcon","expandAction"]),wi=cr("tree",Mn),Hi=ze()(`${wi}-directory`,{[`${wi}-directory-rtl`]:Lr==="rtl"},Er);return v.createElement(Bo,Object.assign({icon:el,ref:rt,blockNode:!0},ai,{showIcon:Vr,expandAction:_i,prefixCls:wi,className:Hi,expandedKeys:Or,selectedKeys:xr,onSelect:Nr,onExpand:jn}))};var Bu=v.forwardRef(yl);const ic=Bo;ic.DirectoryTree=Bu,ic.TreeNode=Fd.O;var Ju=ic,ld=_(46820),yd=_(24431);function Xd(Je){let{value:rt,onChange:Nt,filterSearch:Vt,tablePrefixCls:qt,locale:Fn}=Je;return Vt?v.createElement("div",{className:`${qt}-filter-dropdown-search`},v.createElement(yd.Z,{prefix:v.createElement(ld.Z,null),placeholder:Fn.filterSearchPlaceholder,onChange:Nt,value:rt,htmlSize:1,className:`${qt}-filter-dropdown-search-input`})):null}var Bd=Xd;const jh=Je=>{const{keyCode:rt}=Je;rt===su.Z.ENTER&&Je.stopPropagation()};var Ac=v.forwardRef((Je,rt)=>v.createElement("div",{className:Je.className,onClick:Nt=>Nt.stopPropagation(),onKeyDown:jh,ref:rt},Je.children));function nf(Je){let rt=[];return(Je||[]).forEach(Nt=>{let{value:Vt,children:qt}=Nt;rt.push(Vt),qt&&(rt=[].concat((0,Dr.Z)(rt),(0,Dr.Z)(nf(qt))))}),rt}function Wh(Je){return Je.some(rt=>{let{children:Nt}=rt;return Nt})}function sh(Je,rt){return typeof rt=="string"||typeof rt=="number"?rt==null?void 0:rt.toString().toLowerCase().includes(Je.trim().toLowerCase()):!1}function Yh(Je){let{filters:rt,prefixCls:Nt,filteredKeys:Vt,filterMultiple:qt,searchValue:Fn,filterSearch:_r}=Je;return rt.map((Jn,hr)=>{const xr=String(Jn.value);if(Jn.children)return{key:xr||hr,label:Jn.text,popupClassName:`${Nt}-dropdown-submenu`,children:Yh({filters:Jn.children,prefixCls:Nt,filteredKeys:Vt,filterMultiple:qt,searchValue:Fn,filterSearch:_r})};const Yr=qt?cd:vh.ZP,Or={key:Jn.value!==void 0?xr:hr,label:v.createElement(v.Fragment,null,v.createElement(Yr,{checked:Vt.includes(xr)}),v.createElement("span",null,Jn.text))};return Fn.trim()?typeof _r=="function"?_r(Fn,Jn)?Or:null:sh(Fn,Jn.text)?Or:null:Or})}function Oh(Je){return Je||[]}function bh(Je){var rt,Nt;const{tablePrefixCls:Vt,prefixCls:qt,column:Fn,dropdownPrefixCls:_r,columnKey:Jn,filterMultiple:hr,filterMode:xr="menu",filterSearch:Yr=!1,filterState:Or,triggerFilter:Ki,locale:jn,children:Nr,getPopupContainer:cr}=Je,{filterDropdownOpen:Lr,onFilterDropdownOpenChange:Mn,filterResetToDefaultFilteredValue:Er,defaultFilteredValue:Vr,filterDropdownVisible:_i,onFilterDropdownVisibleChange:ai}=Fn,[wi,Hi]=v.useState(!1),Wo=!!(Or&&(!((rt=Or.filteredKeys)===null||rt===void 0)&&rt.length||Or.forceFiltered)),po=$s=>{Hi($s),Mn==null||Mn($s),ai==null||ai($s)},Uo=(Nt=Lr!=null?Lr:_i)!==null&&Nt!==void 0?Nt:wi,xs=Or==null?void 0:Or.filteredKeys,[Xi,ws]=Pu(Oh(xs)),so=$s=>{let{selectedKeys:Dl}=$s;ws(Dl)},Wi=($s,Dl)=>{let{node:ra,checked:ho}=Dl;so(hr?{selectedKeys:$s}:{selectedKeys:ho&&ra.key?[ra.key]:[]})};v.useEffect(()=>{wi&&so({selectedKeys:Oh(xs)})},[xs]);const[va,ha]=v.useState([]),qs=$s=>{ha($s)},[Yt,ar]=v.useState(""),oi=$s=>{const{value:Dl}=$s.target;ar(Dl)};v.useEffect(()=>{wi||ar("")},[wi]);const ps=$s=>{const Dl=$s&&$s.length?$s:null;if(Dl===null&&(!Or||!Or.filteredKeys)||(0,k.Z)(Dl,Or==null?void 0:Or.filteredKeys,!0))return null;Ki({column:Fn,key:Jn,filteredKeys:Dl})},As=()=>{po(!1),ps(Xi())},Aa=function(){let{confirm:$s,closeDropdown:Dl}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};$s&&ps([]),Dl&&po(!1),ar(""),ws(Er?(Vr||[]).map(ra=>String(ra)):[])},no=function(){let{closeDropdown:$s}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};$s&&po(!1),ps(Xi())},ao=($s,Dl)=>{Dl.source==="trigger"&&($s&&xs!==void 0&&ws(Oh(xs)),po($s),!$s&&!Fn.filterDropdown&&As())},Mo=ze()({[`${_r}-menu-without-submenu`]:!Wh(Fn.filters||[])}),ta=$s=>{if($s.target.checked){const Dl=nf(Fn==null?void 0:Fn.filters).map(ra=>String(ra));ws(Dl)}else ws([])},oa=$s=>{let{filters:Dl}=$s;return(Dl||[]).map((ra,ho)=>{const Sa=String(ra.value),qo={title:ra.text,key:ra.value!==void 0?Sa:String(ho)};return ra.children&&(qo.children=oa({filters:ra.children})),qo})},Ke=$s=>{var Dl;return Object.assign(Object.assign({},$s),{text:$s.title,value:$s.key,children:((Dl=$s.children)===null||Dl===void 0?void 0:Dl.map(ra=>Ke(ra)))||[]})};let sa;if(typeof Fn.filterDropdown=="function")sa=Fn.filterDropdown({prefixCls:`${_r}-custom`,setSelectedKeys:$s=>so({selectedKeys:$s}),selectedKeys:Xi(),confirm:no,clearFilters:Aa,filters:Fn.filters,visible:Uo,close:()=>{po(!1)}});else if(Fn.filterDropdown)sa=Fn.filterDropdown;else{const $s=Xi()||[],Dl=()=>(Fn.filters||[]).length===0?v.createElement(Tp.Z,{image:Tp.Z.PRESENTED_IMAGE_SIMPLE,description:jn.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):xr==="tree"?v.createElement(v.Fragment,null,v.createElement(Bd,{filterSearch:Yr,value:Yt,onChange:oi,tablePrefixCls:Vt,locale:jn}),v.createElement("div",{className:`${Vt}-filter-dropdown-tree`},hr?v.createElement(cd,{checked:$s.length===nf(Fn.filters).length,indeterminate:$s.length>0&&$s.lengthtypeof Yr=="function"?Yr(Yt,Ke(ho)):sh(Yt,ho.title):void 0}))):v.createElement(v.Fragment,null,v.createElement(Bd,{filterSearch:Yr,value:Yt,onChange:oi,tablePrefixCls:Vt,locale:jn}),v.createElement(Hf.Z,{selectable:!0,multiple:hr,prefixCls:`${_r}-menu`,className:Mo,onSelect:so,onDeselect:so,selectedKeys:$s,getPopupContainer:cr,openKeys:va,onOpenChange:qs,items:Yh({filters:Fn.filters||[],filterSearch:Yr,prefixCls:qt,filteredKeys:Xi(),filterMultiple:hr,searchValue:Yt})})),ra=()=>Er?(0,k.Z)((Vr||[]).map(ho=>String(ho)),$s,!0):$s.length===0;sa=v.createElement(v.Fragment,null,Dl(),v.createElement("div",{className:`${qt}-dropdown-btns`},v.createElement(Rp.ZP,{type:"link",size:"small",disabled:ra(),onClick:()=>Aa()},jn.filterReset),v.createElement(Rp.ZP,{type:"primary",size:"small",onClick:As},jn.filterConfirm)))}Fn.filterDropdown&&(sa=v.createElement(Od.J,{selectable:void 0},sa));const ml=()=>v.createElement(Ac,{className:`${qt}-dropdown`},sa);let kl;typeof Fn.filterIcon=="function"?kl=Fn.filterIcon(Wo):Fn.filterIcon?kl=Fn.filterIcon:kl=v.createElement(Pf,null);const{direction:Ys}=v.useContext(ga.E_);return v.createElement("div",{className:`${qt}-column`},v.createElement("span",{className:`${Vt}-column-title`},Nr),v.createElement(Fc.Z,{dropdownRender:ml,trigger:["click"],open:Uo,onOpenChange:ao,getPopupContainer:cr,placement:Ys==="rtl"?"bottomLeft":"bottomRight"},v.createElement("span",{role:"button",tabIndex:-1,className:ze()(`${qt}-trigger`,{active:Wo}),onClick:$s=>{$s.stopPropagation()}},kl)))}var kp=bh;function lp(Je,rt,Nt){let Vt=[];return(Je||[]).forEach((qt,Fn)=>{var _r;const Jn=cg(Fn,Nt);if(qt.filters||"filterDropdown"in qt||"onFilter"in qt)if("filteredValue"in qt){let hr=qt.filteredValue;"filterDropdown"in qt||(hr=(_r=hr==null?void 0:hr.map(String))!==null&&_r!==void 0?_r:hr),Vt.push({column:qt,key:xp(qt,Jn),filteredKeys:hr,forceFiltered:qt.filtered})}else Vt.push({column:qt,key:xp(qt,Jn),filteredKeys:rt&&qt.defaultFilteredValue?qt.defaultFilteredValue:void 0,forceFiltered:qt.filtered});"children"in qt&&(Vt=[].concat((0,Dr.Z)(Vt),(0,Dr.Z)(lp(qt.children,rt,Jn))))}),Vt}function gp(Je,rt,Nt,Vt,qt,Fn,_r,Jn){return Nt.map((hr,xr)=>{const Yr=cg(xr,Jn),{filterMultiple:Or=!0,filterMode:Ki,filterSearch:jn}=hr;let Nr=hr;if(Nr.filters||Nr.filterDropdown){const cr=xp(Nr,Yr),Lr=Vt.find(Mn=>{let{key:Er}=Mn;return cr===Er});Nr=Object.assign(Object.assign({},Nr),{title:Mn=>v.createElement(kp,{tablePrefixCls:Je,prefixCls:`${Je}-filter`,dropdownPrefixCls:rt,column:Nr,columnKey:cr,filterState:Lr,filterMultiple:Or,filterMode:Ki,filterSearch:jn,triggerFilter:Fn,locale:qt,getPopupContainer:_r},Lp(hr.title,Mn))})}return"children"in Nr&&(Nr=Object.assign(Object.assign({},Nr),{children:gp(Je,rt,Nr.children,Vt,qt,Fn,_r,Yr)})),Nr})}function Gc(Je){const rt={};return Je.forEach(Nt=>{let{key:Vt,filteredKeys:qt,column:Fn}=Nt;const _r=Vt,{filters:Jn,filterDropdown:hr}=Fn;if(hr)rt[_r]=qt||null;else if(Array.isArray(qt)){const xr=nf(Jn);rt[_r]=xr.filter(Yr=>qt.includes(String(Yr)))}else rt[_r]=null}),rt}function bc(Je,rt){return rt.reduce((Nt,Vt)=>{const{column:{onFilter:qt,filters:Fn},filteredKeys:_r}=Vt;return qt&&_r&&_r.length?Nt.filter(Jn=>_r.some(hr=>{const xr=nf(Fn),Yr=xr.findIndex(Ki=>String(Ki)===String(hr)),Or=Yr!==-1?xr[Yr]:hr;return qt(Or,Jn)})):Nt},Je)}const hd=Je=>Je.flatMap(rt=>"children"in rt?[rt].concat((0,Dr.Z)(hd(rt.children||[]))):[rt]);function xd(Je){let{prefixCls:rt,dropdownPrefixCls:Nt,mergedColumns:Vt,onFilterChange:qt,getPopupContainer:Fn,locale:_r}=Je;const Jn=(0,_o.ln)("Table"),hr=v.useMemo(()=>hd(Vt||[]),[Vt]),[xr,Yr]=v.useState(()=>lp(hr,!0)),Or=v.useMemo(()=>{const cr=lp(hr,!1);if(cr.length===0)return cr;let Lr=!0,Mn=!0;if(cr.forEach(Er=>{let{filteredKeys:Vr}=Er;Vr!==void 0?Lr=!1:Mn=!1}),Lr){const Er=(hr||[]).map((Vr,_i)=>xp(Vr,cg(_i)));return xr.filter(Vr=>{let{key:_i}=Vr;return Er.includes(_i)}).map(Vr=>{const _i=hr[Er.findIndex(ai=>ai===Vr.key)];return Object.assign(Object.assign({},Vr),{column:Object.assign(Object.assign({},Vr.column),_i),forceFiltered:_i.filtered})})}return cr},[hr,xr]),Ki=v.useMemo(()=>Gc(Or),[Or]),jn=cr=>{const Lr=Or.filter(Mn=>{let{key:Er}=Mn;return Er!==cr.key});Lr.push(cr),Yr(Lr),qt(Gc(Lr),Lr)};return[cr=>gp(rt,Nt,cr,Or,_r,jn,Fn),Or,Ki]}var rh=xd;function Ec(Je,rt,Nt){const Vt=v.useRef({});function qt(Fn){if(!Vt.current||Vt.current.data!==Je||Vt.current.childrenColumnName!==rt||Vt.current.getRowKey!==Nt){let Jn=function(hr){hr.forEach((xr,Yr)=>{const Or=Nt(xr,Yr);_r.set(Or,xr),xr&&typeof xr=="object"&&rt in xr&&Jn(xr[rt]||[])})};const _r=new Map;Jn(Je),Vt.current={data:Je,childrenColumnName:rt,kvMap:_r,getRowKey:Nt}}return Vt.current.kvMap.get(Fn)}return[qt]}function Ph(){const Je=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let rt=1;rt{const qt=Nt[Vt];qt!==void 0&&(Je[Vt]=qt)})}return Je}var ch=Ph,Nc=function(Je,rt){var Nt={};for(var Vt in Je)Object.prototype.hasOwnProperty.call(Je,Vt)&&rt.indexOf(Vt)<0&&(Nt[Vt]=Je[Vt]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,Vt=Object.getOwnPropertySymbols(Je);qt{const Fn=Je[qt];typeof Fn!="function"&&(Nt[qt]=Fn)}),Nt}function Op(Je,rt,Nt){const Vt=Nt&&typeof Nt=="object"?Nt:{},{total:qt=0}=Vt,Fn=Nc(Vt,["total"]),[_r,Jn]=(0,v.useState)(()=>({current:"defaultCurrent"in Fn?Fn.defaultCurrent:1,pageSize:"defaultPageSize"in Fn?Fn.defaultPageSize:Oo})),hr=ch(_r,Fn,{total:qt>0?qt:Je}),xr=Math.ceil((qt||Je)/hr.pageSize);hr.current>xr&&(hr.current=xr||1);const Yr=(Ki,jn)=>{Jn({current:Ki!=null?Ki:1,pageSize:jn||hr.pageSize})},Or=(Ki,jn)=>{var Nr;Nt&&((Nr=Nt.onChange)===null||Nr===void 0||Nr.call(Nt,Ki,jn)),Yr(Ki,jn),rt(Ki,jn||(hr==null?void 0:hr.pageSize))};return Nt===!1?[{},()=>{}]:[Object.assign(Object.assign({},hr),{onChange:Or}),Yr]}var Wg=Op,Og={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},qf=Og,Zh=function(rt,Nt){return v.createElement(Ou.Z,(0,A.Z)({},rt,{ref:Nt,icon:qf}))},Wf=v.forwardRef(Zh),Np={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Zp=Np,Ap=function(rt,Nt){return v.createElement(Ou.Z,(0,A.Z)({},rt,{ref:Nt,icon:Zp}))},Gf=v.forwardRef(Ap),of=_(38134);const Ef="ascend",Eg="descend";function Xg(Je){return typeof Je.sorter=="object"&&typeof Je.sorter.multiple=="number"?Je.sorter.multiple:!1}function np(Je){return typeof Je=="function"?Je:Je&&typeof Je=="object"&&Je.compare?Je.compare:!1}function Eh(Je,rt){return rt?Je[Je.indexOf(rt)+1]:Je[0]}function i0(Je,rt,Nt){let Vt=[];function qt(Fn,_r){Vt.push({column:Fn,key:xp(Fn,_r),multiplePriority:Xg(Fn),sortOrder:Fn.sortOrder})}return(Je||[]).forEach((Fn,_r)=>{const Jn=cg(_r,Nt);Fn.children?("sortOrder"in Fn&&qt(Fn,Jn),Vt=[].concat((0,Dr.Z)(Vt),(0,Dr.Z)(i0(Fn.children,rt,Jn)))):Fn.sorter&&("sortOrder"in Fn?qt(Fn,Jn):rt&&Fn.defaultSortOrder&&Vt.push({column:Fn,key:xp(Fn,Jn),multiplePriority:Xg(Fn),sortOrder:Fn.defaultSortOrder}))}),Vt}function Cm(Je,rt,Nt,Vt,qt,Fn,_r,Jn){return(rt||[]).map((hr,xr)=>{const Yr=cg(xr,Jn);let Or=hr;if(Or.sorter){const Ki=Or.sortDirections||qt,jn=Or.showSorterTooltip===void 0?_r:Or.showSorterTooltip,Nr=xp(Or,Yr),cr=Nt.find(Wo=>{let{key:po}=Wo;return po===Nr}),Lr=cr?cr.sortOrder:null,Mn=Eh(Ki,Lr);let Er;if(hr.sortIcon)Er=hr.sortIcon({sortOrder:Lr});else{const Wo=Ki.includes(Ef)&&v.createElement(Gf,{className:ze()(`${Je}-column-sorter-up`,{active:Lr===Ef})}),po=Ki.includes(Eg)&&v.createElement(Wf,{className:ze()(`${Je}-column-sorter-down`,{active:Lr===Eg})});Er=v.createElement("span",{className:ze()(`${Je}-column-sorter`,{[`${Je}-column-sorter-full`]:!!(Wo&&po)})},v.createElement("span",{className:`${Je}-column-sorter-inner`,"aria-hidden":"true"},Wo,po))}const{cancelSort:Vr,triggerAsc:_i,triggerDesc:ai}=Fn||{};let wi=Vr;Mn===Eg?wi=ai:Mn===Ef&&(wi=_i);const Hi=typeof jn=="object"?Object.assign({title:wi},jn):{title:wi};Or=Object.assign(Object.assign({},Or),{className:ze()(Or.className,{[`${Je}-column-sort`]:Lr}),title:Wo=>{const po=v.createElement("div",{className:`${Je}-column-sorters`},v.createElement("span",{className:`${Je}-column-title`},Lp(hr.title,Wo)),Er);return jn?v.createElement(of.Z,Object.assign({},Hi),po):po},onHeaderCell:Wo=>{const po=hr.onHeaderCell&&hr.onHeaderCell(Wo)||{},Uo=po.onClick,xs=po.onKeyDown;po.onClick=so=>{Vt({column:hr,key:Nr,sortOrder:Mn,multiplePriority:Xg(hr)}),Uo==null||Uo(so)},po.onKeyDown=so=>{so.keyCode===su.Z.ENTER&&(Vt({column:hr,key:Nr,sortOrder:Mn,multiplePriority:Xg(hr)}),xs==null||xs(so))};const Xi=gh(hr.title,{}),ws=Xi==null?void 0:Xi.toString();return Lr?po["aria-sort"]=Lr==="ascend"?"ascending":"descending":po["aria-label"]=ws||"",po.className=ze()(po.className,`${Je}-column-has-sorters`),po.tabIndex=0,hr.ellipsis&&(po.title=(Xi!=null?Xi:"").toString()),po}})}return"children"in Or&&(Or=Object.assign(Object.assign({},Or),{children:Cm(Je,Or.children,Nt,Vt,qt,Fn,_r,Yr)})),Or})}function o0(Je){const{column:rt,sortOrder:Nt}=Je;return{column:rt,order:Nt,field:rt.dataIndex,columnKey:rt.key}}function Yg(Je){const rt=Je.filter(Nt=>{let{sortOrder:Vt}=Nt;return Vt}).map(o0);return rt.length===0&&Je.length?Object.assign(Object.assign({},o0(Je[Je.length-1])),{column:void 0}):rt.length<=1?rt[0]||{}:rt}function Ym(Je,rt,Nt){const Vt=rt.slice().sort((_r,Jn)=>Jn.multiplePriority-_r.multiplePriority),qt=Je.slice(),Fn=Vt.filter(_r=>{let{column:{sorter:Jn},sortOrder:hr}=_r;return np(Jn)&&hr});return Fn.length?qt.sort((_r,Jn)=>{for(let hr=0;hr{const Jn=_r[Nt];return Jn?Object.assign(Object.assign({},_r),{[Nt]:Ym(Jn,rt,Nt)}):_r}):qt}function x0(Je){let{prefixCls:rt,mergedColumns:Nt,onSorterChange:Vt,sortDirections:qt,tableLocale:Fn,showSorterTooltip:_r}=Je;const[Jn,hr]=v.useState(i0(Nt,!0)),xr=v.useMemo(()=>{let Nr=!0;const cr=i0(Nt,!1);if(!cr.length)return Jn;const Lr=[];function Mn(Vr){Nr?Lr.push(Vr):Lr.push(Object.assign(Object.assign({},Vr),{sortOrder:null}))}let Er=null;return cr.forEach(Vr=>{Er===null?(Mn(Vr),Vr.sortOrder&&(Vr.multiplePriority===!1?Nr=!1:Er=!0)):(Er&&Vr.multiplePriority!==!1||(Nr=!1),Mn(Vr))}),Lr},[Nt,Jn]),Yr=v.useMemo(()=>{const Nr=xr.map(cr=>{let{column:Lr,sortOrder:Mn}=cr;return{column:Lr,order:Mn}});return{sortColumns:Nr,sortColumn:Nr[0]&&Nr[0].column,sortOrder:Nr[0]&&Nr[0].order}},[xr]);function Or(Nr){let cr;Nr.multiplePriority===!1||!xr.length||xr[0].multiplePriority===!1?cr=[Nr]:cr=[].concat((0,Dr.Z)(xr.filter(Lr=>{let{key:Mn}=Lr;return Mn!==Nr.key})),[Nr]),hr(cr),Vt(Yg(cr),cr)}return[Nr=>Cm(rt,Nr,xr,Or,qt,Fn,_r),xr,Yr,()=>Yg(xr)]}function Tm(Je,rt){return Je.map(Nt=>{const Vt=Object.assign({},Nt);return Vt.title=Lp(Nt.title,rt),"children"in Vt&&(Vt.children=Tm(Vt.children,rt)),Vt})}function qg(Je){return[v.useCallback(Nt=>Tm(Nt,Je),[Je])]}var Jg=Us((Je,rt)=>{const{_renderTimes:Nt}=Je,{_renderTimes:Vt}=rt;return Nt!==Vt}),k0=Xu((Je,rt)=>{const{_renderTimes:Nt}=Je,{_renderTimes:Vt}=rt;return Nt!==Vt}),Ng=_(64993),Bg=Je=>{const{componentCls:rt,lineWidth:Nt,lineType:Vt,tableBorderColor:qt,tableHeaderBg:Fn,tablePaddingVertical:_r,tablePaddingHorizontal:Jn,calc:hr}=Je,xr=`${(0,yc.bf)(Nt)} ${Vt} ${qt}`,Yr=(Or,Ki,jn)=>({[`&${rt}-${Or}`]:{[`> ${rt}-container`]:{[`> ${rt}-content, > ${rt}-body`]:{[` + `]:{background:Jt},[`${rt}-switcher`]:{color:Fn},[`${rt}-node-content-wrapper`]:{color:Fn,background:"transparent"}}}}}},D=(Ye,rt)=>{const Ft=`.${Ye}`,Vt=`${Ft}-treenode`,Jt=rt.calc(rt.paddingXS).div(2).equal(),Fn=(0,Mf.TS)(rt,{treeCls:Ft,treeNodeCls:Vt,treeNodePadding:Jt});return[or(Ye,Fn),Ie(Fn)]},ie=Ye=>{const{controlHeightSM:rt}=Ye;return{titleHeight:rt,nodeHoverBg:Ye.controlItemBgHover,nodeSelectedBg:Ye.controlItemBgActive}},Ee=Ye=>{const{colorTextLightSolid:rt,colorPrimary:Ft}=Ye;return Object.assign(Object.assign({},ie(Ye)),{directoryNodeSelectedColor:rt,directoryNodeSelectedBg:Ft})};var Ne=(0,yf.I$)("Tree",(Ye,rt)=>{let{prefixCls:Ft}=rt;return[{[Ye.componentCls]:(0,Xa.C2)(`${Ft}-checkbox`,Ye)},D(Ft,Ye),(0,le.Z)(Ye)]},Ee);const ct=4;function Gt(Ye){const{dropPosition:rt,dropLevelOffset:Ft,prefixCls:Vt,indent:Jt,direction:Fn="ltr"}=Ye,_r=Fn==="ltr"?"left":"right",Yn=Fn==="ltr"?"right":"left",gr={[_r]:-Ft*Jt+ct,[Yn]:0};switch(rt){case-1:gr.top=-3;break;case 1:gr.bottom=-3;break;default:gr.bottom=-3,gr[_r]=Jt+ct;break}return v.createElement("div",{style:gr,className:`${Vt}-drop-indicator`})}var tn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Bn=tn,Pr=function(rt,Ft){return v.createElement(Nu.Z,(0,A.Z)({},rt,{ref:Ft,icon:Bn}))},G=v.forwardRef(Pr),J=y(22508),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},ce=Q,He=function(rt,Ft){return v.createElement(Nu.Z,(0,A.Z)({},rt,{ref:Ft,icon:ce}))},Et=v.forwardRef(He),Nt=y(43114),yn=function(rt,Ft){return v.createElement(Nu.Z,(0,A.Z)({},rt,{ref:Ft,icon:Nt.Z}))},yr=v.forwardRef(yn),Sn=y(96159),Ri=Ye=>{const{prefixCls:rt,switcherIcon:Ft,treeNodeProps:Vt,showLine:Jt}=Ye,{isLeaf:Fn,expanded:_r,loading:Yn}=Vt;if(Yn)return v.createElement(J.Z,{className:`${rt}-switcher-loading-icon`});let gr;if(Jt&&typeof Jt=="object"&&(gr=Jt.showLeafIcon),Fn){if(!Jt)return null;if(typeof gr!="boolean"&&gr){const Br=typeof gr=="function"?gr(Vt):gr,Gi=`${rt}-switcher-line-custom-icon`;return(0,Sn.l$)(Br)?(0,Sn.Tm)(Br,{className:Be()(Br.props.className||"",Gi)}):Br}return gr?v.createElement(Zf,{className:`${rt}-switcher-line-icon`}):v.createElement("span",{className:`${rt}-switcher-leaf-line`})}const xr=`${rt}-switcher-icon`,Yr=typeof Ft=="function"?Ft(Vt):Ft;return(0,Sn.l$)(Yr)?(0,Sn.Tm)(Yr,{className:Be()(Yr.props.className||"",xr)}):Yr!==void 0?Yr:Jt?_r?v.createElement(Et,{className:`${rt}-switcher-line-icon`}):v.createElement(yr,{className:`${rt}-switcher-line-icon`}):v.createElement(G,{className:xr})},Fo=v.forwardRef((Ye,rt)=>{const{getPrefixCls:Ft,direction:Vt,virtual:Jt,tree:Fn}=v.useContext(ga.E_),{prefixCls:_r,className:Yn,showIcon:gr=!1,showLine:xr,switcherIcon:Yr,blockNode:Br=!1,children:Gi,checkable:jn=!1,selectable:Vr=!0,draggable:cr,motion:Lr,style:Mn}=Ye,Er=Ft("tree",_r),jr=Ft(),fi=Lr!=null?Lr:Object.assign(Object.assign({},(0,j.Z)(jr)),{motionAppear:!1}),ai=Object.assign(Object.assign({},Ye),{checkable:jn,selectable:Vr,showIcon:gr,motion:fi,blockNode:Br,showLine:!!xr,dropIndicatorRender:Gt}),[bi,Hi]=Ne(Er),Zo=v.useMemo(()=>{if(!cr)return!1;let No={};switch(typeof cr){case"function":No.nodeDraggable=cr;break;case"object":No=Object.assign({},cr);break;default:break}return No.icon!==!1&&(No.icon=No.icon||v.createElement(L,null)),No},[cr]),mo=No=>v.createElement(Ri,{prefixCls:Er,switcherIcon:Yr,treeNodeProps:No,showLine:xr});return bi(v.createElement(Bh.Z,Object.assign({itemHeight:20,ref:rt,virtual:Jt},ai,{style:Object.assign(Object.assign({},Fn==null?void 0:Fn.style),Mn),prefixCls:Er,className:Be()({[`${Er}-icon-hide`]:!gr,[`${Er}-block-node`]:Br,[`${Er}-unselectable`]:!Vr,[`${Er}-rtl`]:Vt==="rtl"},Fn==null?void 0:Fn.className,Yn,Hi),direction:Vt,checkable:jn&&v.createElement("span",{className:`${Er}-checkbox-inner`}),selectable:Vr,switcherIcon:mo,draggable:Zo}),Gi))}),Wo;(function(Ye){Ye[Ye.None=0]="None",Ye[Ye.Start=1]="Start",Ye[Ye.End=2]="End"})(Wo||(Wo={}));function Ui(Ye,rt,Ft){const{key:Vt,children:Jt}=Ft;function Fn(_r){const Yn=_r[Vt],gr=_r[Jt];rt(Yn,_r)!==!1&&Ui(gr||[],rt,Ft)}Ye.forEach(Fn)}function Uo(Ye){let{treeData:rt,expandedKeys:Ft,startKey:Vt,endKey:Jt,fieldNames:Fn}=Ye;const _r=[];let Yn=Wo.None;if(Vt&&Vt===Jt)return[Vt];if(!Vt||!Jt)return[];function gr(xr){return xr===Vt||xr===Jt}return Ui(rt,xr=>{if(Yn===Wo.End)return!1;if(gr(xr)){if(_r.push(xr),Yn===Wo.None)Yn=Wo.Start;else if(Yn===Wo.Start)return Yn=Wo.End,!1}else Yn===Wo.Start&&_r.push(xr);return Ft.includes(xr)},(0,Un.w$)(Fn)),_r}function Hs(Ye,rt,Ft){const Vt=(0,Dr.Z)(rt),Jt=[];return Ui(Ye,(Fn,_r)=>{const Yn=Vt.indexOf(Fn);return Yn!==-1&&(Jt.push(_r),Vt.splice(Yn,1)),!!Vt.length},(0,Un.w$)(Ft)),Jt}var tl=function(Ye,rt){var Ft={};for(var Vt in Ye)Object.prototype.hasOwnProperty.call(Ye,Vt)&&rt.indexOf(Vt)<0&&(Ft[Vt]=Ye[Vt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Vt=Object.getOwnPropertySymbols(Ye);Jt{var{defaultExpandAll:Ft,defaultExpandParent:Vt,defaultExpandedKeys:Jt}=Ye,Fn=tl(Ye,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const _r=v.useRef(),Yn=v.useRef(),gr=()=>{const{keyEntities:Zo}=(0,Un.I8)(Gl(Fn));let mo;return Ft?mo=Object.keys(Zo):Vt?mo=(0,wi.r7)(Fn.expandedKeys||Jt||[],Zo):mo=Fn.expandedKeys||Jt,mo},[xr,Yr]=v.useState(Fn.selectedKeys||Fn.defaultSelectedKeys||[]),[Br,Gi]=v.useState(()=>gr());v.useEffect(()=>{"selectedKeys"in Fn&&Yr(Fn.selectedKeys)},[Fn.selectedKeys]),v.useEffect(()=>{"expandedKeys"in Fn&&Gi(Fn.expandedKeys)},[Fn.expandedKeys]);const jn=(Zo,mo)=>{var No;return"expandedKeys"in Fn||Gi(Zo),(No=Fn.onExpand)===null||No===void 0?void 0:No.call(Fn,Zo,mo)},Vr=(Zo,mo)=>{var No;const{multiple:ws,fieldNames:Ji}=Fn,{node:Ss,nativeEvent:lo}=mo,{key:$i=""}=Ss,wa=Gl(Fn),ha=Object.assign(Object.assign({},mo),{selected:!0}),Gs=(lo==null?void 0:lo.ctrlKey)||(lo==null?void 0:lo.metaKey),qt=lo==null?void 0:lo.shiftKey;let ar;ws&&Gs?(ar=Zo,_r.current=$i,Yn.current=ar,ha.selectedNodes=Hs(wa,ar,Ji)):ws&&qt?(ar=Array.from(new Set([].concat((0,Dr.Z)(Yn.current||[]),(0,Dr.Z)(Uo({treeData:wa,expandedKeys:Br,startKey:$i,endKey:_r.current,fieldNames:Ji}))))),ha.selectedNodes=Hs(wa,ar,Ji)):(ar=[$i],_r.current=$i,Yn.current=ar,ha.selectedNodes=Hs(wa,ar,Ji)),(No=Fn.onSelect)===null||No===void 0||No.call(Fn,ar,ha),"selectedKeys"in Fn||Yr(ar)},{getPrefixCls:cr,direction:Lr}=v.useContext(ga.E_),{prefixCls:Mn,className:Er,showIcon:jr=!0,expandAction:fi="click"}=Fn,ai=tl(Fn,["prefixCls","className","showIcon","expandAction"]),bi=cr("tree",Mn),Hi=Be()(`${bi}-directory`,{[`${bi}-directory-rtl`]:Lr==="rtl"},Er);return v.createElement(Fo,Object.assign({icon:qa,ref:rt,blockNode:!0},ai,{showIcon:jr,expandAction:fi,prefixCls:bi,className:Hi,expandedKeys:Br,selectedKeys:xr,onSelect:Vr,onExpand:jn}))};var zu=v.forwardRef(bl);const ic=Fo;ic.DirectoryTree=zu,ic.TreeNode=Bh.O;var Ju=ic,oh=y(13805),vh=y(75008);function Gh(Ye){let{value:rt,onChange:Ft,filterSearch:Vt,tablePrefixCls:Jt,locale:Fn}=Ye;return Vt?v.createElement("div",{className:`${Jt}-filter-dropdown-search`},v.createElement(vh.Z,{prefix:v.createElement(oh.Z,null),placeholder:Fn.filterSearchPlaceholder,onChange:Ft,value:rt,htmlSize:1,className:`${Jt}-filter-dropdown-search-input`})):null}var Nh=Gh;const jd=Ye=>{const{keyCode:rt}=Ye;rt===su.Z.ENTER&&Ye.stopPropagation()};var Tc=v.forwardRef((Ye,rt)=>v.createElement("div",{className:Ye.className,onClick:Ft=>Ft.stopPropagation(),onKeyDown:jd,ref:rt},Ye.children));function tf(Ye){let rt=[];return(Ye||[]).forEach(Ft=>{let{value:Vt,children:Jt}=Ft;rt.push(Vt),Jt&&(rt=[].concat((0,Dr.Z)(rt),(0,Dr.Z)(tf(Jt))))}),rt}function Wd(Ye){return Ye.some(rt=>{let{children:Ft}=rt;return Ft})}function rd(Ye,rt){return typeof rt=="string"||typeof rt=="number"?rt==null?void 0:rt.toString().toLowerCase().includes(Ye.trim().toLowerCase()):!1}function of(Ye){let{filters:rt,prefixCls:Ft,filteredKeys:Vt,filterMultiple:Jt,searchValue:Fn,filterSearch:_r}=Ye;return rt.map((Yn,gr)=>{const xr=String(Yn.value);if(Yn.children)return{key:xr||gr,label:Yn.text,popupClassName:`${Ft}-dropdown-submenu`,children:of({filters:Yn.children,prefixCls:Ft,filteredKeys:Vt,filterMultiple:Jt,searchValue:Fn,filterSearch:_r})};const Yr=Jt?dh:vd.ZP,Br={key:Yn.value!==void 0?xr:gr,label:v.createElement(v.Fragment,null,v.createElement(Yr,{checked:Vt.includes(xr)}),v.createElement("span",null,Yn.text))};return Fn.trim()?typeof _r=="function"?_r(Fn,Yn)?Br:null:rd(Fn,Yn.text)?Br:null:Br})}function $d(Ye){return Ye||[]}function ud(Ye){var rt,Ft;const{tablePrefixCls:Vt,prefixCls:Jt,column:Fn,dropdownPrefixCls:_r,columnKey:Yn,filterMultiple:gr,filterMode:xr="menu",filterSearch:Yr=!1,filterState:Br,triggerFilter:Gi,locale:jn,children:Vr,getPopupContainer:cr,rootClassName:Lr}=Ye,{filterDropdownOpen:Mn,onFilterDropdownOpenChange:Er,filterResetToDefaultFilteredValue:jr,defaultFilteredValue:fi,filterDropdownVisible:ai,onFilterDropdownVisibleChange:bi}=Fn,[Hi,Zo]=v.useState(!1),mo=!!(Br&&(!((rt=Br.filteredKeys)===null||rt===void 0)&&rt.length||Br.forceFiltered)),No=ul=>{Zo(ul),Er==null||Er(ul),bi==null||bi(ul)},ws=(Ft=Mn!=null?Mn:ai)!==null&&Ft!==void 0?Ft:Hi,Ji=Br==null?void 0:Br.filteredKeys,[Ss,lo]=Du($d(Ji)),$i=ul=>{let{selectedKeys:Xs}=ul;lo(Xs)},wa=(ul,Xs)=>{let{node:so,checked:la}=Xs;$i(gr?{selectedKeys:ul}:{selectedKeys:la&&so.key?[so.key]:[]})};v.useEffect(()=>{Hi&&$i({selectedKeys:$d(Ji)})},[Ji]);const[ha,Gs]=v.useState([]),qt=ul=>{Gs(ul)},[ar,oi]=v.useState(""),ms=ul=>{const{value:Xs}=ul.target;oi(Xs)};v.useEffect(()=>{Hi||oi("")},[Hi]);const Ls=ul=>{const Xs=ul&&ul.length?ul:null;if(Xs===null&&(!Br||!Br.filteredKeys)||(0,k.Z)(Xs,Br==null?void 0:Br.filteredKeys,!0))return null;Gi({column:Fn,key:Yn,filteredKeys:Xs})},Aa=()=>{No(!1),Ls(Ss())},no=function(){let{confirm:ul,closeDropdown:Xs}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ul&&Ls([]),Xs&&No(!1),oi(""),lo(jr?(fi||[]).map(so=>String(so)):[])},uo=function(){let{closeDropdown:ul}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ul&&No(!1),Ls(Ss())},Ro=(ul,Xs)=>{Xs.source==="trigger"&&(ul&&Ji!==void 0&&lo($d(Ji)),No(ul),!ul&&!Fn.filterDropdown&&Aa())},Qs=Be()({[`${_r}-menu-without-submenu`]:!Wd(Fn.filters||[])}),ra=ul=>{if(ul.target.checked){const Xs=tf(Fn==null?void 0:Fn.filters).map(so=>String(so));lo(Xs)}else lo([])},Ke=ul=>{let{filters:Xs}=ul;return(Xs||[]).map((so,la)=>{const ts=String(so.value),Ea={title:so.text,key:so.value!==void 0?ts:String(la)};return so.children&&(Ea.children=Ke({filters:so.children})),Ea})},Sa=ul=>{var Xs;return Object.assign(Object.assign({},ul),{text:ul.title,value:ul.key,children:((Xs=ul.children)===null||Xs===void 0?void 0:Xs.map(so=>Sa(so)))||[]})};let dl;if(typeof Fn.filterDropdown=="function")dl=Fn.filterDropdown({prefixCls:`${_r}-custom`,setSelectedKeys:ul=>$i({selectedKeys:ul}),selectedKeys:Ss(),confirm:uo,clearFilters:no,filters:Fn.filters,visible:ws,close:()=>{No(!1)}});else if(Fn.filterDropdown)dl=Fn.filterDropdown;else{const ul=Ss()||[],Xs=()=>(Fn.filters||[]).length===0?v.createElement(Dp.Z,{image:Dp.Z.PRESENTED_IMAGE_SIMPLE,description:jn.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):xr==="tree"?v.createElement(v.Fragment,null,v.createElement(Nh,{filterSearch:Yr,value:ar,onChange:ms,tablePrefixCls:Vt,locale:jn}),v.createElement("div",{className:`${Vt}-filter-dropdown-tree`},gr?v.createElement(dh,{checked:ul.length===tf(Fn.filters).length,indeterminate:ul.length>0&&ul.lengthtypeof Yr=="function"?Yr(ar,Sa(la)):rd(ar,la.title):void 0}))):v.createElement(v.Fragment,null,v.createElement(Nh,{filterSearch:Yr,value:ar,onChange:ms,tablePrefixCls:Vt,locale:jn}),v.createElement(Gf.Z,{selectable:!0,multiple:gr,prefixCls:`${_r}-menu`,className:Qs,onSelect:$i,onDeselect:$i,selectedKeys:ul,getPopupContainer:cr,openKeys:ha,onOpenChange:qt,items:of({filters:Fn.filters||[],filterSearch:Yr,prefixCls:Jt,filteredKeys:Ss(),filterMultiple:gr,searchValue:ar})})),so=()=>jr?(0,k.Z)((fi||[]).map(la=>String(la)),ul,!0):ul.length===0;dl=v.createElement(v.Fragment,null,Xs(),v.createElement("div",{className:`${Jt}-dropdown-btns`},v.createElement(Rp.ZP,{type:"link",size:"small",disabled:so(),onClick:()=>no()},jn.filterReset),v.createElement(Rp.ZP,{type:"primary",size:"small",onClick:Aa},jn.filterConfirm)))}Fn.filterDropdown&&(dl=v.createElement(kh.J,{selectable:void 0},dl));const Ul=()=>v.createElement(Tc,{className:`${Jt}-dropdown`},dl);let Ks;typeof Fn.filterIcon=="function"?Ks=Fn.filterIcon(mo):Fn.filterIcon?Ks=Fn.filterIcon:Ks=v.createElement(kf,null);const{direction:ma}=v.useContext(ga.E_);return v.createElement("div",{className:`${Jt}-column`},v.createElement("span",{className:`${Vt}-column-title`},Vr),v.createElement(Nc.Z,{dropdownRender:Ul,trigger:["click"],open:ws,onOpenChange:Ro,getPopupContainer:cr,placement:ma==="rtl"?"bottomLeft":"bottomRight",rootClassName:Lr},v.createElement("span",{role:"button",tabIndex:-1,className:Be()(`${Jt}-trigger`,{active:mo}),onClick:ul=>{ul.stopPropagation()}},Ks)))}var kp=ud;function ap(Ye,rt,Ft){let Vt=[];return(Ye||[]).forEach((Jt,Fn)=>{var _r;const Yn=fg(Fn,Ft);if(Jt.filters||"filterDropdown"in Jt||"onFilter"in Jt)if("filteredValue"in Jt){let gr=Jt.filteredValue;"filterDropdown"in Jt||(gr=(_r=gr==null?void 0:gr.map(String))!==null&&_r!==void 0?_r:gr),Vt.push({column:Jt,key:Cp(Jt,Yn),filteredKeys:gr,forceFiltered:Jt.filtered})}else Vt.push({column:Jt,key:Cp(Jt,Yn),filteredKeys:rt&&Jt.defaultFilteredValue?Jt.defaultFilteredValue:void 0,forceFiltered:Jt.filtered});"children"in Jt&&(Vt=[].concat((0,Dr.Z)(Vt),(0,Dr.Z)(ap(Jt.children,rt,Yn))))}),Vt}function mp(Ye,rt,Ft,Vt,Jt,Fn,_r,Yn,gr){return Ft.map((xr,Yr)=>{const Br=fg(Yr,Yn),{filterMultiple:Gi=!0,filterMode:jn,filterSearch:Vr}=xr;let cr=xr;if(cr.filters||cr.filterDropdown){const Lr=Cp(cr,Br),Mn=Vt.find(Er=>{let{key:jr}=Er;return Lr===jr});cr=Object.assign(Object.assign({},cr),{title:Er=>v.createElement(kp,{tablePrefixCls:Ye,prefixCls:`${Ye}-filter`,dropdownPrefixCls:rt,column:cr,columnKey:Lr,filterState:Mn,filterMultiple:Gi,filterMode:jn,filterSearch:Vr,triggerFilter:Fn,locale:Jt,getPopupContainer:_r,rootClassName:gr},Mp(xr.title,Er))})}return"children"in cr&&(cr=Object.assign(Object.assign({},cr),{children:mp(Ye,rt,cr.children,Vt,Jt,Fn,_r,Br,gr)})),cr})}function Kc(Ye){const rt={};return Ye.forEach(Ft=>{let{key:Vt,filteredKeys:Jt,column:Fn}=Ft;const _r=Vt,{filters:Yn,filterDropdown:gr}=Fn;if(gr)rt[_r]=Jt||null;else if(Array.isArray(Jt)){const xr=tf(Yn);rt[_r]=xr.filter(Yr=>Jt.includes(String(Yr)))}else rt[_r]=null}),rt}function bc(Ye,rt){return rt.reduce((Ft,Vt)=>{const{column:{onFilter:Jt,filters:Fn},filteredKeys:_r}=Vt;return Jt&&_r&&_r.length?Ft.filter(Yn=>_r.some(gr=>{const xr=tf(Fn),Yr=xr.findIndex(Gi=>String(Gi)===String(gr)),Br=Yr!==-1?xr[Yr]:gr;return Jt(Br,Yn)})):Ft},Ye)}const ch=Ye=>Ye.flatMap(rt=>"children"in rt?[rt].concat((0,Dr.Z)(ch(rt.children||[]))):[rt]);function _h(Ye){let{prefixCls:rt,dropdownPrefixCls:Ft,mergedColumns:Vt,onFilterChange:Jt,getPopupContainer:Fn,locale:_r,rootClassName:Yn}=Ye;const gr=(0,_o.ln)("Table"),xr=v.useMemo(()=>ch(Vt||[]),[Vt]),[Yr,Br]=v.useState(()=>ap(xr,!0)),Gi=v.useMemo(()=>{const Lr=ap(xr,!1);if(Lr.length===0)return Lr;let Mn=!0,Er=!0;if(Lr.forEach(jr=>{let{filteredKeys:fi}=jr;fi!==void 0?Mn=!1:Er=!1}),Mn){const jr=(xr||[]).map((fi,ai)=>Cp(fi,fg(ai)));return Yr.filter(fi=>{let{key:ai}=fi;return jr.includes(ai)}).map(fi=>{const ai=xr[jr.findIndex(bi=>bi===fi.key)];return Object.assign(Object.assign({},fi),{column:Object.assign(Object.assign({},fi.column),ai),forceFiltered:ai.filtered})})}return Lr},[xr,Yr]),jn=v.useMemo(()=>Kc(Gi),[Gi]),Vr=Lr=>{const Mn=Gi.filter(Er=>{let{key:jr}=Er;return jr!==Lr.key});Mn.push(Lr),Br(Mn),Jt(Kc(Mn),Mn)};return[Lr=>mp(rt,Ft,Lr,Gi,_r,Vr,Fn,void 0,Yn),Gi,jn]}var od=_h;function wc(Ye,rt,Ft){const Vt=v.useRef({});function Jt(Fn){if(!Vt.current||Vt.current.data!==Ye||Vt.current.childrenColumnName!==rt||Vt.current.getRowKey!==Ft){let Yn=function(gr){gr.forEach((xr,Yr)=>{const Br=Ft(xr,Yr);_r.set(Br,xr),xr&&typeof xr=="object"&&rt in xr&&Yn(xr[rt]||[])})};const _r=new Map;Yn(Ye),Vt.current={data:Ye,childrenColumnName:rt,kvMap:_r,getRowKey:Ft}}return Vt.current.kvMap.get(Fn)}return[Jt]}var cd=function(){const Ye=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let rt=1;rt{const Jt=Ft[Vt];Jt!==void 0&&(Ye[Vt]=Jt)})}return Ye},Rc=function(Ye,rt){var Ft={};for(var Vt in Ye)Object.prototype.hasOwnProperty.call(Ye,Vt)&&rt.indexOf(Vt)<0&&(Ft[Vt]=Ye[Vt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Vt=Object.getOwnPropertySymbols(Ye);Jt{const Fn=Ye[Jt];typeof Fn!="function"&&(Ft[Jt]=Fn)}),Ft}function zp(Ye,rt,Ft){const Vt=Ft&&typeof Ft=="object"?Ft:{},{total:Jt=0}=Vt,Fn=Rc(Vt,["total"]),[_r,Yn]=(0,v.useState)(()=>({current:"defaultCurrent"in Fn?Fn.defaultCurrent:1,pageSize:"defaultPageSize"in Fn?Fn.defaultPageSize:Oo})),gr=cd(_r,Fn,{total:Jt>0?Jt:Ye}),xr=Math.ceil((Jt||Ye)/gr.pageSize);gr.current>xr&&(gr.current=xr||1);const Yr=(Gi,jn)=>{Yn({current:Gi!=null?Gi:1,pageSize:jn||gr.pageSize})},Br=(Gi,jn)=>{var Vr;Ft&&((Vr=Ft.onChange)===null||Vr===void 0||Vr.call(Ft,Gi,jn)),Yr(Gi,jn),rt(Gi,jn||(gr==null?void 0:gr.pageSize))};return Ft===!1?[{},()=>{}]:[Object.assign(Object.assign({},gr),{onChange:Br}),Yr]}var Hg=zp,Bg={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},qf=Bg,Hd=function(rt,Ft){return v.createElement(Nu.Z,(0,A.Z)({},rt,{ref:Ft,icon:qf}))},Jf=v.forwardRef(Hd),Op={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Vp=Op,Sp=function(rt,Ft){return v.createElement(Nu.Z,(0,A.Z)({},rt,{ref:Ft,icon:Vp}))},Qf=v.forwardRef(Sp),df=y(61781);const wf="ascend",Ag="descend";function Jg(Ye){return typeof Ye.sorter=="object"&&typeof Ye.sorter.multiple=="number"?Ye.sorter.multiple:!1}function rp(Ye){return typeof Ye=="function"?Ye:Ye&&typeof Ye=="object"&&Ye.compare?Ye.compare:!1}function Ad(Ye,rt){return rt?Ye[Ye.indexOf(rt)+1]:Ye[0]}function i0(Ye,rt,Ft){let Vt=[];function Jt(Fn,_r){Vt.push({column:Fn,key:Cp(Fn,_r),multiplePriority:Jg(Fn),sortOrder:Fn.sortOrder})}return(Ye||[]).forEach((Fn,_r)=>{const Yn=fg(_r,Ft);Fn.children?("sortOrder"in Fn&&Jt(Fn,Yn),Vt=[].concat((0,Dr.Z)(Vt),(0,Dr.Z)(i0(Fn.children,rt,Yn)))):Fn.sorter&&("sortOrder"in Fn?Jt(Fn,Yn):rt&&Fn.defaultSortOrder&&Vt.push({column:Fn,key:Cp(Fn,Yn),multiplePriority:Jg(Fn),sortOrder:Fn.defaultSortOrder}))}),Vt}function vm(Ye,rt,Ft,Vt,Jt,Fn,_r,Yn){return(rt||[]).map((gr,xr)=>{const Yr=fg(xr,Yn);let Br=gr;if(Br.sorter){const Gi=Br.sortDirections||Jt,jn=Br.showSorterTooltip===void 0?_r:Br.showSorterTooltip,Vr=Cp(Br,Yr),cr=Ft.find(Zo=>{let{key:mo}=Zo;return mo===Vr}),Lr=cr?cr.sortOrder:null,Mn=Ad(Gi,Lr);let Er;if(gr.sortIcon)Er=gr.sortIcon({sortOrder:Lr});else{const Zo=Gi.includes(wf)&&v.createElement(Qf,{className:Be()(`${Ye}-column-sorter-up`,{active:Lr===wf})}),mo=Gi.includes(Ag)&&v.createElement(Jf,{className:Be()(`${Ye}-column-sorter-down`,{active:Lr===Ag})});Er=v.createElement("span",{className:Be()(`${Ye}-column-sorter`,{[`${Ye}-column-sorter-full`]:!!(Zo&&mo)})},v.createElement("span",{className:`${Ye}-column-sorter-inner`,"aria-hidden":"true"},Zo,mo))}const{cancelSort:jr,triggerAsc:fi,triggerDesc:ai}=Fn||{};let bi=jr;Mn===Ag?bi=ai:Mn===wf&&(bi=fi);const Hi=typeof jn=="object"?Object.assign({title:bi},jn):{title:bi};Br=Object.assign(Object.assign({},Br),{className:Be()(Br.className,{[`${Ye}-column-sort`]:Lr}),title:Zo=>{const mo=v.createElement("div",{className:`${Ye}-column-sorters`},v.createElement("span",{className:`${Ye}-column-title`},Mp(gr.title,Zo)),Er);return jn?v.createElement(df.Z,Object.assign({},Hi),mo):mo},onHeaderCell:Zo=>{const mo=gr.onHeaderCell&&gr.onHeaderCell(Zo)||{},No=mo.onClick,ws=mo.onKeyDown;mo.onClick=lo=>{Vt({column:gr,key:Vr,sortOrder:Mn,multiplePriority:Jg(gr)}),No==null||No(lo)},mo.onKeyDown=lo=>{lo.keyCode===su.Z.ENTER&&(Vt({column:gr,key:Vr,sortOrder:Mn,multiplePriority:Jg(gr)}),ws==null||ws(lo))};const Ji=gd(gr.title,{}),Ss=Ji==null?void 0:Ji.toString();return Lr?mo["aria-sort"]=Lr==="ascend"?"ascending":"descending":mo["aria-label"]=Ss||"",mo.className=Be()(mo.className,`${Ye}-column-has-sorters`),mo.tabIndex=0,gr.ellipsis&&(mo.title=(Ji!=null?Ji:"").toString()),mo}})}return"children"in Br&&(Br=Object.assign(Object.assign({},Br),{children:vm(Ye,Br.children,Ft,Vt,Jt,Fn,_r,Yr)})),Br})}function o0(Ye){const{column:rt,sortOrder:Ft}=Ye;return{column:rt,order:Ft,field:rt.dataIndex,columnKey:rt.key}}function Qg(Ye){const rt=Ye.filter(Ft=>{let{sortOrder:Vt}=Ft;return Vt}).map(o0);return rt.length===0&&Ye.length?Object.assign(Object.assign({},o0(Ye[Ye.length-1])),{column:void 0}):rt.length<=1?rt[0]||{}:rt}function u0(Ye,rt,Ft){const Vt=rt.slice().sort((_r,Yn)=>Yn.multiplePriority-_r.multiplePriority),Jt=Ye.slice(),Fn=Vt.filter(_r=>{let{column:{sorter:Yn},sortOrder:gr}=_r;return rp(Yn)&&gr});return Fn.length?Jt.sort((_r,Yn)=>{for(let gr=0;gr{const Yn=_r[Ft];return Yn?Object.assign(Object.assign({},_r),{[Ft]:u0(Yn,rt,Ft)}):_r}):Jt}function x0(Ye){let{prefixCls:rt,mergedColumns:Ft,onSorterChange:Vt,sortDirections:Jt,tableLocale:Fn,showSorterTooltip:_r}=Ye;const[Yn,gr]=v.useState(i0(Ft,!0)),xr=v.useMemo(()=>{let Vr=!0;const cr=i0(Ft,!1);if(!cr.length)return Yn;const Lr=[];function Mn(jr){Vr?Lr.push(jr):Lr.push(Object.assign(Object.assign({},jr),{sortOrder:null}))}let Er=null;return cr.forEach(jr=>{Er===null?(Mn(jr),jr.sortOrder&&(jr.multiplePriority===!1?Vr=!1:Er=!0)):(Er&&jr.multiplePriority!==!1||(Vr=!1),Mn(jr))}),Lr},[Ft,Yn]),Yr=v.useMemo(()=>{const Vr=xr.map(cr=>{let{column:Lr,sortOrder:Mn}=cr;return{column:Lr,order:Mn}});return{sortColumns:Vr,sortColumn:Vr[0]&&Vr[0].column,sortOrder:Vr[0]&&Vr[0].order}},[xr]);function Br(Vr){let cr;Vr.multiplePriority===!1||!xr.length||xr[0].multiplePriority===!1?cr=[Vr]:cr=[].concat((0,Dr.Z)(xr.filter(Lr=>{let{key:Mn}=Lr;return Mn!==Vr.key})),[Vr]),gr(cr),Vt(Qg(cr),cr)}return[Vr=>vm(rt,Vr,xr,Br,Jt,Fn,_r),xr,Yr,()=>Qg(xr)]}function ym(Ye,rt){return Ye.map(Ft=>{const Vt=Object.assign({},Ft);return Vt.title=Mp(Ft.title,rt),"children"in Vt&&(Vt.children=ym(Vt.children,rt)),Vt})}function um(Ye){return[v.useCallback(Ft=>ym(Ft,Ye),[Ye])]}var _m=zs((Ye,rt)=>{const{_renderTimes:Ft}=Ye,{_renderTimes:Vt}=rt;return Ft!==Vt}),w0=Yu((Ye,rt)=>{const{_renderTimes:Ft}=Ye,{_renderTimes:Vt}=rt;return Ft!==Vt}),Lg=y(10274),zg=Ye=>{const{componentCls:rt,lineWidth:Ft,lineType:Vt,tableBorderColor:Jt,tableHeaderBg:Fn,tablePaddingVertical:_r,tablePaddingHorizontal:Yn,calc:gr}=Ye,xr=`${(0,yc.bf)(Ft)} ${Vt} ${Jt}`,Yr=(Br,Gi,jn)=>({[`&${rt}-${Br}`]:{[`> ${rt}-container`]:{[`> ${rt}-content, > ${rt}-body`]:{[` > table > tbody > tr > th, > table > tbody > tr > td - `]:{[`> ${rt}-expanded-row-fixed`]:{margin:`${(0,yc.bf)(hr(Ki).mul(-1).equal())} - ${(0,yc.bf)(hr(hr(jn).add(Nt)).mul(-1).equal())}`}}}}}});return{[`${rt}-wrapper`]:{[`${rt}${rt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${rt}-title`]:{border:xr,borderBottom:0},[`> ${rt}-container`]:{borderInlineStart:xr,borderTop:xr,[` + `]:{[`> ${rt}-expanded-row-fixed`]:{margin:`${(0,yc.bf)(gr(Gi).mul(-1).equal())} + ${(0,yc.bf)(gr(gr(jn).add(Ft)).mul(-1).equal())}`}}}}}});return{[`${rt}-wrapper`]:{[`${rt}${rt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${rt}-title`]:{border:xr,borderBottom:0},[`> ${rt}-container`]:{borderInlineStart:xr,borderTop:xr,[` > ${rt}-content, > ${rt}-header, > ${rt}-body, @@ -8092,35 +8038,35 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter `]:{[`> ${rt}-cell-fix-right-first::after`]:{borderInlineEnd:xr}},[` > tbody > tr > th, > tbody > tr > td - `]:{[`> ${rt}-expanded-row-fixed`]:{margin:`${(0,yc.bf)(hr(_r).mul(-1).equal())} ${(0,yc.bf)(hr(hr(Jn).add(Nt)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Nt,bottom:0,borderInlineEnd:xr,content:'""'}}}}}},[`&${rt}-scroll-horizontal`]:{[`> ${rt}-container > ${rt}-body`]:{"> table > tbody":{[` + `]:{[`> ${rt}-expanded-row-fixed`]:{margin:`${(0,yc.bf)(gr(_r).mul(-1).equal())} ${(0,yc.bf)(gr(gr(Yn).add(Ft)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ft,bottom:0,borderInlineEnd:xr,content:'""'}}}}}},[`&${rt}-scroll-horizontal`]:{[`> ${rt}-container > ${rt}-body`]:{"> table > tbody":{[` > tr${rt}-expanded-row, > tr${rt}-placeholder - `]:{["> th, > td"]:{borderInlineEnd:0}}}}}},Yr("middle",Je.tablePaddingVerticalMiddle,Je.tablePaddingHorizontalMiddle)),Yr("small",Je.tablePaddingVerticalSmall,Je.tablePaddingHorizontalSmall)),{[`> ${rt}-footer`]:{border:xr,borderTop:0}}),[`${rt}-cell`]:{[`${rt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,yc.bf)(Nt)} 0 ${(0,yc.bf)(Nt)} ${Fn}`}},[`${rt}-bordered ${rt}-cell-scrollbar`]:{borderInlineEnd:xr}}}},Pg=Je=>{const{componentCls:rt}=Je;return{[`${rt}-wrapper`]:{[`${rt}-cell-ellipsis`]:Object.assign(Object.assign({},rd.vS),{wordBreak:"keep-all",[` + `]:{["> th, > td"]:{borderInlineEnd:0}}}}}},Yr("middle",Ye.tablePaddingVerticalMiddle,Ye.tablePaddingHorizontalMiddle)),Yr("small",Ye.tablePaddingVerticalSmall,Ye.tablePaddingHorizontalSmall)),{[`> ${rt}-footer`]:{border:xr,borderTop:0}}),[`${rt}-cell`]:{[`${rt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,yc.bf)(Ft)} 0 ${(0,yc.bf)(Ft)} ${Fn}`}},[`${rt}-bordered ${rt}-cell-scrollbar`]:{borderInlineEnd:xr}}}},Mg=Ye=>{const{componentCls:rt}=Ye;return{[`${rt}-wrapper`]:{[`${rt}-cell-ellipsis`]:Object.assign(Object.assign({},rh.vS),{wordBreak:"keep-all",[` &${rt}-cell-fix-left-last, &${rt}-cell-fix-right-first - `]:{overflow:"visible",[`${rt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${rt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Jf=Je=>{const{componentCls:rt}=Je;return{[`${rt}-wrapper`]:{[`${rt}-tbody > tr${rt}-placeholder`]:{textAlign:"center",color:Je.colorTextDisabled,[` + `]:{overflow:"visible",[`${rt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${rt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},ip=Ye=>{const{componentCls:rt}=Ye;return{[`${rt}-wrapper`]:{[`${rt}-tbody > tr${rt}-placeholder`]:{textAlign:"center",color:Ye.colorTextDisabled,[` &:hover > th, &:hover > td, - `]:{background:Je.colorBgContainer}}}}},Dp=_(79602),O0=Je=>{const{componentCls:rt,antCls:Nt,motionDurationSlow:Vt,lineWidth:qt,paddingXS:Fn,lineType:_r,tableBorderColor:Jn,tableExpandIconBg:hr,tableExpandColumnWidth:xr,borderRadius:Yr,tablePaddingVertical:Or,tablePaddingHorizontal:Ki,tableExpandedRowBg:jn,paddingXXS:Nr,expandIconMarginTop:cr,expandIconSize:Lr,expandIconHalfInner:Mn,expandIconScale:Er,calc:Vr}=Je,_i=`${(0,yc.bf)(qt)} ${_r} ${Jn}`,ai=Vr(Nr).sub(qt).equal();return{[`${rt}-wrapper`]:{[`${rt}-expand-icon-col`]:{width:xr},[`${rt}-row-expand-icon-cell`]:{textAlign:"center",[`${rt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${rt}-row-indent`]:{height:1,float:"left"},[`${rt}-row-expand-icon`]:Object.assign(Object.assign({},(0,Dp.N)(Je)),{position:"relative",float:"left",boxSizing:"border-box",width:Lr,height:Lr,padding:0,color:"inherit",lineHeight:(0,yc.bf)(Lr),background:hr,border:_i,borderRadius:Yr,transform:`scale(${Er})`,transition:`all ${Vt}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${Vt} ease-out`,content:'""'},"&::before":{top:Mn,insetInlineEnd:ai,insetInlineStart:ai,height:qt},"&::after":{top:ai,bottom:ai,insetInlineStart:Mn,width:qt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${rt}-row-indent + ${rt}-row-expand-icon`]:{marginTop:cr,marginInlineEnd:Fn},[`tr${rt}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:jn}},[`${Nt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${rt}-expanded-row-fixed`]:{position:"relative",margin:`${(0,yc.bf)(Vr(Or).mul(-1).equal())} ${(0,yc.bf)(Vr(Ki).mul(-1).equal())}`,padding:`${(0,yc.bf)(Or)} ${(0,yc.bf)(Ki)}`}}}},um=Je=>{const{componentCls:rt,antCls:Nt,iconCls:Vt,tableFilterDropdownWidth:qt,tableFilterDropdownSearchWidth:Fn,paddingXXS:_r,paddingXS:Jn,colorText:hr,lineWidth:xr,lineType:Yr,tableBorderColor:Or,headerIconColor:Ki,fontSizeSM:jn,tablePaddingHorizontal:Nr,borderRadius:cr,motionDurationSlow:Lr,colorTextDescription:Mn,colorPrimary:Er,tableHeaderFilterActiveBg:Vr,colorTextDisabled:_i,tableFilterDropdownBg:ai,tableFilterDropdownHeight:wi,controlItemBgHover:Hi,controlItemBgActive:Wo,boxShadowSecondary:po,filterDropdownMenuBg:Uo,calc:xs}=Je,Xi=`${Nt}-dropdown`,ws=`${rt}-filter-dropdown`,so=`${Nt}-tree`,Wi=`${(0,yc.bf)(xr)} ${Yr} ${Or}`;return[{[`${rt}-wrapper`]:{[`${rt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${rt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:xs(_r).mul(-1).equal(),marginInline:`${(0,yc.bf)(_r)} ${(0,yc.bf)(xs(Nr).div(2).mul(-1).equal())}`,padding:`0 ${(0,yc.bf)(_r)}`,color:Ki,fontSize:jn,borderRadius:cr,cursor:"pointer",transition:`all ${Lr}`,"&:hover":{color:Mn,background:Vr},"&.active":{color:Er}}}},{[`${Nt}-dropdown`]:{[ws]:Object.assign(Object.assign({},(0,rd.Wf)(Je)),{minWidth:qt,backgroundColor:ai,borderRadius:cr,boxShadow:po,overflow:"hidden",[`${Xi}-menu`]:{maxHeight:wi,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Uo,"&:empty::after":{display:"block",padding:`${(0,yc.bf)(Jn)} 0`,color:_i,fontSize:jn,textAlign:"center",content:'"Not Found"'}},[`${ws}-tree`]:{paddingBlock:`${(0,yc.bf)(Jn)} 0`,paddingInline:Jn,[so]:{padding:0},[`${so}-treenode ${so}-node-content-wrapper:hover`]:{backgroundColor:Hi},[`${so}-treenode-checkbox-checked ${so}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Wo}}},[`${ws}-search`]:{padding:Jn,borderBottom:Wi,"&-input":{input:{minWidth:Fn},[Vt]:{color:_i}}},[`${ws}-checkall`]:{width:"100%",marginBottom:_r,marginInlineStart:_r},[`${ws}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,yc.bf)(xs(Jn).sub(xr).equal())} ${(0,yc.bf)(Jn)}`,overflow:"hidden",borderTop:Wi}})}},{[`${Nt}-dropdown ${ws}, ${ws}-submenu`]:{[`${Nt}-checkbox-wrapper + span`]:{paddingInlineStart:Jn,color:hr},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},K0=Je=>{const{componentCls:rt,lineWidth:Nt,colorSplit:Vt,motionDurationSlow:qt,zIndexTableFixed:Fn,tableBg:_r,zIndexTableSticky:Jn,calc:hr}=Je,xr=Vt;return{[`${rt}-wrapper`]:{[` + `]:{background:Ye.colorBgContainer}}}}},Np=y(49867),K0=Ye=>{const{componentCls:rt,antCls:Ft,motionDurationSlow:Vt,lineWidth:Jt,paddingXS:Fn,lineType:_r,tableBorderColor:Yn,tableExpandIconBg:gr,tableExpandColumnWidth:xr,borderRadius:Yr,tablePaddingVertical:Br,tablePaddingHorizontal:Gi,tableExpandedRowBg:jn,paddingXXS:Vr,expandIconMarginTop:cr,expandIconSize:Lr,expandIconHalfInner:Mn,expandIconScale:Er,calc:jr}=Ye,fi=`${(0,yc.bf)(Jt)} ${_r} ${Yn}`,ai=jr(Vr).sub(Jt).equal();return{[`${rt}-wrapper`]:{[`${rt}-expand-icon-col`]:{width:xr},[`${rt}-row-expand-icon-cell`]:{textAlign:"center",[`${rt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${rt}-row-indent`]:{height:1,float:"left"},[`${rt}-row-expand-icon`]:Object.assign(Object.assign({},(0,Np.N)(Ye)),{position:"relative",float:"left",boxSizing:"border-box",width:Lr,height:Lr,padding:0,color:"inherit",lineHeight:(0,yc.bf)(Lr),background:gr,border:fi,borderRadius:Yr,transform:`scale(${Er})`,transition:`all ${Vt}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${Vt} ease-out`,content:'""'},"&::before":{top:Mn,insetInlineEnd:ai,insetInlineStart:ai,height:Jt},"&::after":{top:ai,bottom:ai,insetInlineStart:Mn,width:Jt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${rt}-row-indent + ${rt}-row-expand-icon`]:{marginTop:cr,marginInlineEnd:Fn},[`tr${rt}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:jn}},[`${Ft}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${rt}-expanded-row-fixed`]:{position:"relative",margin:`${(0,yc.bf)(jr(Br).mul(-1).equal())} ${(0,yc.bf)(jr(Gi).mul(-1).equal())}`,padding:`${(0,yc.bf)(Br)} ${(0,yc.bf)(Gi)}`}}}},Tm=Ye=>{const{componentCls:rt,antCls:Ft,iconCls:Vt,tableFilterDropdownWidth:Jt,tableFilterDropdownSearchWidth:Fn,paddingXXS:_r,paddingXS:Yn,colorText:gr,lineWidth:xr,lineType:Yr,tableBorderColor:Br,headerIconColor:Gi,fontSizeSM:jn,tablePaddingHorizontal:Vr,borderRadius:cr,motionDurationSlow:Lr,colorTextDescription:Mn,colorPrimary:Er,tableHeaderFilterActiveBg:jr,colorTextDisabled:fi,tableFilterDropdownBg:ai,tableFilterDropdownHeight:bi,controlItemBgHover:Hi,controlItemBgActive:Zo,boxShadowSecondary:mo,filterDropdownMenuBg:No,calc:ws}=Ye,Ji=`${Ft}-dropdown`,Ss=`${rt}-filter-dropdown`,lo=`${Ft}-tree`,$i=`${(0,yc.bf)(xr)} ${Yr} ${Br}`;return[{[`${rt}-wrapper`]:{[`${rt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${rt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:ws(_r).mul(-1).equal(),marginInline:`${(0,yc.bf)(_r)} ${(0,yc.bf)(ws(Vr).div(2).mul(-1).equal())}`,padding:`0 ${(0,yc.bf)(_r)}`,color:Gi,fontSize:jn,borderRadius:cr,cursor:"pointer",transition:`all ${Lr}`,"&:hover":{color:Mn,background:jr},"&.active":{color:Er}}}},{[`${Ft}-dropdown`]:{[Ss]:Object.assign(Object.assign({},(0,rh.Wf)(Ye)),{minWidth:Jt,backgroundColor:ai,borderRadius:cr,boxShadow:mo,overflow:"hidden",[`${Ji}-menu`]:{maxHeight:bi,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:No,"&:empty::after":{display:"block",padding:`${(0,yc.bf)(Yn)} 0`,color:fi,fontSize:jn,textAlign:"center",content:'"Not Found"'}},[`${Ss}-tree`]:{paddingBlock:`${(0,yc.bf)(Yn)} 0`,paddingInline:Yn,[lo]:{padding:0},[`${lo}-treenode ${lo}-node-content-wrapper:hover`]:{backgroundColor:Hi},[`${lo}-treenode-checkbox-checked ${lo}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Zo}}},[`${Ss}-search`]:{padding:Yn,borderBottom:$i,"&-input":{input:{minWidth:Fn},[Vt]:{color:fi}}},[`${Ss}-checkall`]:{width:"100%",marginBottom:_r,marginInlineStart:_r},[`${Ss}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,yc.bf)(ws(Yn).sub(xr).equal())} ${(0,yc.bf)(Yn)}`,overflow:"hidden",borderTop:$i}})}},{[`${Ft}-dropdown ${Ss}, ${Ss}-submenu`]:{[`${Ft}-checkbox-wrapper + span`]:{paddingInlineStart:Yn,color:gr},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},S0=Ye=>{const{componentCls:rt,lineWidth:Ft,colorSplit:Vt,motionDurationSlow:Jt,zIndexTableFixed:Fn,tableBg:_r,zIndexTableSticky:Yn,calc:gr}=Ye,xr=Vt;return{[`${rt}-wrapper`]:{[` ${rt}-cell-fix-left, ${rt}-cell-fix-right `]:{position:"sticky !important",zIndex:Fn,background:_r},[` ${rt}-cell-fix-left-first::after, ${rt}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:hr(Nt).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${qt}`,content:'""',pointerEvents:"none"},[`${rt}-cell-fix-left-all::after`]:{display:"none"},[` + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:gr(Ft).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Jt}`,content:'""',pointerEvents:"none"},[`${rt}-cell-fix-left-all::after`]:{display:"none"},[` ${rt}-cell-fix-right-first::after, ${rt}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:hr(Nt).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${qt}`,content:'""',pointerEvents:"none"},[`${rt}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:hr(Jn).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${qt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${rt}-ping-left`]:{[`&:not(${rt}-has-fix-left) ${rt}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${xr}`}},[` + `]:{position:"absolute",top:0,bottom:gr(Ft).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Jt}`,content:'""',pointerEvents:"none"},[`${rt}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:gr(Yn).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Jt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${rt}-ping-left`]:{[`&:not(${rt}-has-fix-left) ${rt}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${xr}`}},[` ${rt}-cell-fix-left-first::after, ${rt}-cell-fix-left-last::after `]:{boxShadow:`inset 10px 0 8px -8px ${xr}`},[`${rt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${rt}-ping-right`]:{[`&:not(${rt}-has-fix-right) ${rt}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${xr}`}},[` ${rt}-cell-fix-right-first::after, ${rt}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${xr}`}}}}},$h=Je=>{const{componentCls:rt,antCls:Nt,margin:Vt}=Je;return{[`${rt}-wrapper`]:{[`${rt}-pagination${Nt}-pagination`]:{margin:`${(0,yc.bf)(Vt)} 0`},[`${rt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Je.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},gm=Je=>{const{componentCls:rt,tableRadius:Nt}=Je;return{[`${rt}-wrapper`]:{[rt]:{[`${rt}-title, ${rt}-header`]:{borderRadius:`${(0,yc.bf)(Nt)} ${(0,yc.bf)(Nt)} 0 0`},[`${rt}-title + ${rt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${rt}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Nt,borderStartEndRadius:Nt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Nt},"> *:last-child":{borderStartEndRadius:Nt}}},"&-footer":{borderRadius:`0 0 ${(0,yc.bf)(Nt)} ${(0,yc.bf)(Nt)}`}}}}},Mm=Je=>{const{componentCls:rt}=Je;return{[`${rt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${rt}-pagination-left`]:{justifyContent:"flex-end"},[`${rt}-pagination-right`]:{justifyContent:"flex-start"},[`${rt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${rt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${rt}-row-indent`]:{float:"right"}}}}},Hp=Je=>{const{componentCls:rt,antCls:Nt,iconCls:Vt,fontSizeIcon:qt,padding:Fn,paddingXS:_r,headerIconColor:Jn,headerIconHoverColor:hr,tableSelectionColumnWidth:xr,tableSelectedRowBg:Yr,tableSelectedRowHoverBg:Or,tableRowHoverBg:Ki,tablePaddingHorizontal:jn,calc:Nr}=Je;return{[`${rt}-wrapper`]:{[`${rt}-selection-col`]:{width:xr,[`&${rt}-selection-col-with-dropdown`]:{width:Nr(xr).add(qt).add(Nr(Fn).div(4)).equal()}},[`${rt}-bordered ${rt}-selection-col`]:{width:Nr(xr).add(Nr(_r).mul(2)).equal(),[`&${rt}-selection-col-with-dropdown`]:{width:Nr(xr).add(qt).add(Nr(Fn).div(4)).add(Nr(_r).mul(2)).equal()}},[` + `]:{boxShadow:`inset -10px 0 8px -8px ${xr}`}}}}},Nd=Ye=>{const{componentCls:rt,antCls:Ft,margin:Vt}=Ye;return{[`${rt}-wrapper`]:{[`${rt}-pagination${Ft}-pagination`]:{margin:`${(0,yc.bf)(Vt)} 0`},[`${rt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ye.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},gm=Ye=>{const{componentCls:rt,tableRadius:Ft}=Ye;return{[`${rt}-wrapper`]:{[rt]:{[`${rt}-title, ${rt}-header`]:{borderRadius:`${(0,yc.bf)(Ft)} ${(0,yc.bf)(Ft)} 0 0`},[`${rt}-title + ${rt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${rt}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Ft,borderStartEndRadius:Ft,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ft},"> *:last-child":{borderStartEndRadius:Ft}}},"&-footer":{borderRadius:`0 0 ${(0,yc.bf)(Ft)} ${(0,yc.bf)(Ft)}`}}}}},Bm=Ye=>{const{componentCls:rt}=Ye;return{[`${rt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${rt}-pagination-left`]:{justifyContent:"flex-end"},[`${rt}-pagination-right`]:{justifyContent:"flex-start"},[`${rt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${rt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${rt}-row-indent`]:{float:"right"}}}}},Zp=Ye=>{const{componentCls:rt,antCls:Ft,iconCls:Vt,fontSizeIcon:Jt,padding:Fn,paddingXS:_r,headerIconColor:Yn,headerIconHoverColor:gr,tableSelectionColumnWidth:xr,tableSelectedRowBg:Yr,tableSelectedRowHoverBg:Br,tableRowHoverBg:Gi,tablePaddingHorizontal:jn,calc:Vr}=Ye;return{[`${rt}-wrapper`]:{[`${rt}-selection-col`]:{width:xr,[`&${rt}-selection-col-with-dropdown`]:{width:Vr(xr).add(Jt).add(Vr(Fn).div(4)).equal()}},[`${rt}-bordered ${rt}-selection-col`]:{width:Vr(xr).add(Vr(_r).mul(2)).equal(),[`&${rt}-selection-col-with-dropdown`]:{width:Vr(xr).add(Jt).add(Vr(Fn).div(4)).add(Vr(_r).mul(2)).equal()}},[` table tr th${rt}-selection-column, table tr td${rt}-selection-column, ${rt}-selection-column - `]:{paddingInlineEnd:Je.paddingXS,paddingInlineStart:Je.paddingXS,textAlign:"center",[`${Nt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${rt}-selection-column${rt}-cell-fix-left`]:{zIndex:Je.zIndexTableFixed+1},[`table tr th${rt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${rt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${rt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Je.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,yc.bf)(Nr(jn).div(4).equal()),[Vt]:{color:Jn,fontSize:qt,verticalAlign:"baseline","&:hover":{color:hr}}},[`${rt}-tbody`]:{[`${rt}-row`]:{[`&${rt}-row-selected`]:{[`> ${rt}-cell`]:{background:Yr,"&-row-hover":{background:Or}}},[`> ${rt}-cell-row-hover`]:{background:Ki}}}}}},Fm=Je=>{const{componentCls:rt,tableExpandColumnWidth:Nt,calc:Vt}=Je,qt=(Fn,_r,Jn,hr)=>({[`${rt}${rt}-${Fn}`]:{fontSize:hr,[` + `]:{paddingInlineEnd:Ye.paddingXS,paddingInlineStart:Ye.paddingXS,textAlign:"center",[`${Ft}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${rt}-selection-column${rt}-cell-fix-left`]:{zIndex:Ye.zIndexTableFixed+1},[`table tr th${rt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${rt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${rt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ye.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,yc.bf)(Vr(jn).div(4).equal()),[Vt]:{color:Yn,fontSize:Jt,verticalAlign:"baseline","&:hover":{color:gr}}},[`${rt}-tbody`]:{[`${rt}-row`]:{[`&${rt}-row-selected`]:{[`> ${rt}-cell`]:{background:Yr,"&-row-hover":{background:Br}}},[`> ${rt}-cell-row-hover`]:{background:Gi}}}}}},zm=Ye=>{const{componentCls:rt,tableExpandColumnWidth:Ft,calc:Vt}=Ye,Jt=(Fn,_r,Yn,gr)=>({[`${rt}${rt}-${Fn}`]:{fontSize:gr,[` ${rt}-title, ${rt}-footer, ${rt}-cell, @@ -8129,28 +8075,28 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter ${rt}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{padding:`${(0,yc.bf)(_r)} ${(0,yc.bf)(Jn)}`},[`${rt}-filter-trigger`]:{marginInlineEnd:(0,yc.bf)(Vt(Jn).div(2).mul(-1).equal())},[`${rt}-expanded-row-fixed`]:{margin:`${(0,yc.bf)(Vt(_r).mul(-1).equal())} ${(0,yc.bf)(Vt(Jn).mul(-1).equal())}`},[`${rt}-tbody`]:{[`${rt}-wrapper:only-child ${rt}`]:{marginBlock:(0,yc.bf)(Vt(_r).mul(-1).equal()),marginInline:`${(0,yc.bf)(Vt(Nt).sub(Jn).equal())} ${(0,yc.bf)(Vt(Jn).mul(-1).equal())}`}},[`${rt}-selection-extra`]:{paddingInlineStart:(0,yc.bf)(Vt(Jn).div(4).equal())}}});return{[`${rt}-wrapper`]:Object.assign(Object.assign({},qt("middle",Je.tablePaddingVerticalMiddle,Je.tablePaddingHorizontalMiddle,Je.tableFontSizeMiddle)),qt("small",Je.tablePaddingVerticalSmall,Je.tablePaddingHorizontalSmall,Je.tableFontSizeSmall))}},dg=Je=>{const{componentCls:rt,marginXXS:Nt,fontSizeIcon:Vt,headerIconColor:qt,headerIconHoverColor:Fn}=Je;return{[`${rt}-wrapper`]:{[`${rt}-thead th${rt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Je.motionDurationSlow}`,"&:hover":{background:Je.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Je.colorPrimary},[` + `]:{padding:`${(0,yc.bf)(_r)} ${(0,yc.bf)(Yn)}`},[`${rt}-filter-trigger`]:{marginInlineEnd:(0,yc.bf)(Vt(Yn).div(2).mul(-1).equal())},[`${rt}-expanded-row-fixed`]:{margin:`${(0,yc.bf)(Vt(_r).mul(-1).equal())} ${(0,yc.bf)(Vt(Yn).mul(-1).equal())}`},[`${rt}-tbody`]:{[`${rt}-wrapper:only-child ${rt}`]:{marginBlock:(0,yc.bf)(Vt(_r).mul(-1).equal()),marginInline:`${(0,yc.bf)(Vt(Ft).sub(Yn).equal())} ${(0,yc.bf)(Vt(Yn).mul(-1).equal())}`}},[`${rt}-selection-extra`]:{paddingInlineStart:(0,yc.bf)(Vt(Yn).div(4).equal())}}});return{[`${rt}-wrapper`]:Object.assign(Object.assign({},Jt("middle",Ye.tablePaddingVerticalMiddle,Ye.tablePaddingHorizontalMiddle,Ye.tableFontSizeMiddle)),Jt("small",Ye.tablePaddingVerticalSmall,Ye.tablePaddingHorizontalSmall,Ye.tableFontSizeSmall))}},pg=Ye=>{const{componentCls:rt,marginXXS:Ft,fontSizeIcon:Vt,headerIconColor:Jt,headerIconHoverColor:Fn}=Ye;return{[`${rt}-wrapper`]:{[`${rt}-thead th${rt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ye.motionDurationSlow}`,"&:hover":{background:Ye.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ye.colorPrimary},[` &${rt}-cell-fix-left:hover, &${rt}-cell-fix-right:hover - `]:{background:Je.tableFixedHeaderSortActiveBg}},[`${rt}-thead th${rt}-column-sort`]:{background:Je.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${rt}-column-sort`]:{background:Je.tableBodySortBg},[`${rt}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${rt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${rt}-column-sorter`]:{marginInlineStart:Nt,color:qt,fontSize:0,transition:`color ${Je.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Vt,"&.active":{color:Je.colorPrimary}},[`${rt}-column-sorter-up + ${rt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${rt}-column-sorters:hover ${rt}-column-sorter`]:{color:Fn}}}},ee=Je=>{const{componentCls:rt,opacityLoading:Nt,tableScrollThumbBg:Vt,tableScrollThumbBgHover:qt,tableScrollThumbSize:Fn,tableScrollBg:_r,zIndexTableSticky:Jn,stickyScrollBarBorderRadius:hr,lineWidth:xr,lineType:Yr,tableBorderColor:Or}=Je,Ki=`${(0,yc.bf)(xr)} ${Yr} ${Or}`;return{[`${rt}-wrapper`]:{[`${rt}-sticky`]:{"&-holder":{position:"sticky",zIndex:Jn,background:Je.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,yc.bf)(Fn)} !important`,zIndex:Jn,display:"flex",alignItems:"center",background:_r,borderTop:Ki,opacity:Nt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Fn,backgroundColor:Vt,borderRadius:hr,transition:`all ${Je.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:qt}}}}}}},At=Je=>{const{componentCls:rt,lineWidth:Nt,tableBorderColor:Vt,calc:qt}=Je,Fn=`${(0,yc.bf)(Nt)} ${Je.lineType} ${Vt}`;return{[`${rt}-wrapper`]:{[`${rt}-summary`]:{position:"relative",zIndex:Je.zIndexTableFixed,background:Je.tableBg,"> tr":{"> th, > td":{borderBottom:Fn}}},[`div${rt}-summary`]:{boxShadow:`0 ${(0,yc.bf)(qt(Nt).mul(-1).equal())} 0 ${Vt}`}}}},xt=Je=>{const{componentCls:rt,motionDurationMid:Nt,lineWidth:Vt,lineType:qt,tableBorderColor:Fn,calc:_r}=Je,Jn=`${(0,yc.bf)(Vt)} ${qt} ${Fn}`,hr=`${rt}-expanded-row-cell`;return{[`${rt}-wrapper`]:{[`${rt}-tbody-virtual`]:{[`${rt}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${rt}-cell`]:{borderBottom:Jn,transition:`background ${Nt}`},[`${rt}-expanded-row`]:{[`${hr}${hr}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,yc.bf)(Vt)})`,borderInlineEnd:"none"}}},[`${rt}-bordered`]:{[`${rt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Jn,position:"absolute"},[`${rt}-cell`]:{borderInlineEnd:Jn,[`&${rt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:_r(Vt).mul(-1).equal(),borderInlineStart:Jn}}},[`&${rt}-virtual`]:{[`${rt}-placeholder ${rt}-cell`]:{borderInlineEnd:Jn,borderBottom:Jn}}}}}};const pt=Je=>{const{componentCls:rt,fontWeightStrong:Nt,tablePaddingVertical:Vt,tablePaddingHorizontal:qt,tableExpandColumnWidth:Fn,lineWidth:_r,lineType:Jn,tableBorderColor:hr,tableFontSize:xr,tableBg:Yr,tableRadius:Or,tableHeaderTextColor:Ki,motionDurationMid:jn,tableHeaderBg:Nr,tableHeaderCellSplitColor:cr,tableFooterTextColor:Lr,tableFooterBg:Mn,calc:Er}=Je,Vr=`${(0,yc.bf)(_r)} ${Jn} ${hr}`;return{[`${rt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,rd.dF)()),{[rt]:Object.assign(Object.assign({},(0,rd.Wf)(Je)),{fontSize:xr,background:Yr,borderRadius:`${(0,yc.bf)(Or)} ${(0,yc.bf)(Or)} 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,yc.bf)(Or)} ${(0,yc.bf)(Or)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + `]:{background:Ye.tableFixedHeaderSortActiveBg}},[`${rt}-thead th${rt}-column-sort`]:{background:Ye.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${rt}-column-sort`]:{background:Ye.tableBodySortBg},[`${rt}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${rt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${rt}-column-sorter`]:{marginInlineStart:Ft,color:Jt,fontSize:0,transition:`color ${Ye.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Vt,"&.active":{color:Ye.colorPrimary}},[`${rt}-column-sorter-up + ${rt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${rt}-column-sorters:hover ${rt}-column-sorter`]:{color:Fn}}}},ee=Ye=>{const{componentCls:rt,opacityLoading:Ft,tableScrollThumbBg:Vt,tableScrollThumbBgHover:Jt,tableScrollThumbSize:Fn,tableScrollBg:_r,zIndexTableSticky:Yn,stickyScrollBarBorderRadius:gr,lineWidth:xr,lineType:Yr,tableBorderColor:Br}=Ye,Gi=`${(0,yc.bf)(xr)} ${Yr} ${Br}`;return{[`${rt}-wrapper`]:{[`${rt}-sticky`]:{"&-holder":{position:"sticky",zIndex:Yn,background:Ye.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,yc.bf)(Fn)} !important`,zIndex:Yn,display:"flex",alignItems:"center",background:_r,borderTop:Gi,opacity:Ft,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Fn,backgroundColor:Vt,borderRadius:gr,transition:`all ${Ye.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Jt}}}}}}},At=Ye=>{const{componentCls:rt,lineWidth:Ft,tableBorderColor:Vt,calc:Jt}=Ye,Fn=`${(0,yc.bf)(Ft)} ${Ye.lineType} ${Vt}`;return{[`${rt}-wrapper`]:{[`${rt}-summary`]:{position:"relative",zIndex:Ye.zIndexTableFixed,background:Ye.tableBg,"> tr":{"> th, > td":{borderBottom:Fn}}},[`div${rt}-summary`]:{boxShadow:`0 ${(0,yc.bf)(Jt(Ft).mul(-1).equal())} 0 ${Vt}`}}}},xt=Ye=>{const{componentCls:rt,motionDurationMid:Ft,lineWidth:Vt,lineType:Jt,tableBorderColor:Fn,calc:_r}=Ye,Yn=`${(0,yc.bf)(Vt)} ${Jt} ${Fn}`,gr=`${rt}-expanded-row-cell`;return{[`${rt}-wrapper`]:{[`${rt}-tbody-virtual`]:{[`${rt}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${rt}-cell`]:{borderBottom:Yn,transition:`background ${Ft}`},[`${rt}-expanded-row`]:{[`${gr}${gr}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,yc.bf)(Vt)})`,borderInlineEnd:"none"}}},[`${rt}-bordered`]:{[`${rt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Yn,position:"absolute"},[`${rt}-cell`]:{borderInlineEnd:Yn,[`&${rt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:_r(Vt).mul(-1).equal(),borderInlineStart:Yn}}},[`&${rt}-virtual`]:{[`${rt}-placeholder ${rt}-cell`]:{borderInlineEnd:Yn,borderBottom:Yn}}}}}};const gt=Ye=>{const{componentCls:rt,fontWeightStrong:Ft,tablePaddingVertical:Vt,tablePaddingHorizontal:Jt,tableExpandColumnWidth:Fn,lineWidth:_r,lineType:Yn,tableBorderColor:gr,tableFontSize:xr,tableBg:Yr,tableRadius:Br,tableHeaderTextColor:Gi,motionDurationMid:jn,tableHeaderBg:Vr,tableHeaderCellSplitColor:cr,tableFooterTextColor:Lr,tableFooterBg:Mn,calc:Er}=Ye,jr=`${(0,yc.bf)(_r)} ${Yn} ${gr}`;return{[`${rt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,rh.dF)()),{[rt]:Object.assign(Object.assign({},(0,rh.Wf)(Ye)),{fontSize:xr,background:Yr,borderRadius:`${(0,yc.bf)(Br)} ${(0,yc.bf)(Br)} 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,yc.bf)(Br)} ${(0,yc.bf)(Br)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${rt}-cell, ${rt}-thead > tr > th, ${rt}-tbody > tr > th, ${rt}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{position:"relative",padding:`${(0,yc.bf)(Vt)} ${(0,yc.bf)(qt)}`,overflowWrap:"break-word"},[`${rt}-title`]:{padding:`${(0,yc.bf)(Vt)} ${(0,yc.bf)(qt)}`},[`${rt}-thead`]:{[` + `]:{position:"relative",padding:`${(0,yc.bf)(Vt)} ${(0,yc.bf)(Jt)}`,overflowWrap:"break-word"},[`${rt}-title`]:{padding:`${(0,yc.bf)(Vt)} ${(0,yc.bf)(Jt)}`},[`${rt}-thead`]:{[` > tr > th, > tr > td - `]:{position:"relative",color:Ki,fontWeight:Nt,textAlign:"start",background:Nr,borderBottom:Vr,transition:`background ${jn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${rt}-selection-column):not(${rt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:cr,transform:"translateY(-50%)",transition:`background-color ${jn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${rt}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${jn}, border-color ${jn}`,borderBottom:Vr,[` + `]:{position:"relative",color:Gi,fontWeight:Ft,textAlign:"start",background:Vr,borderBottom:jr,transition:`background ${jn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${rt}-selection-column):not(${rt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:cr,transform:"translateY(-50%)",transition:`background-color ${jn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${rt}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${jn}, border-color ${jn}`,borderBottom:jr,[` > ${rt}-wrapper:only-child, > ${rt}-expanded-row-fixed > ${rt}-wrapper:only-child - `]:{[rt]:{marginBlock:(0,yc.bf)(Er(Vt).mul(-1).equal()),marginInline:`${(0,yc.bf)(Er(Fn).sub(qt).equal())} - ${(0,yc.bf)(Er(qt).mul(-1).equal())}`,[`${rt}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Ki,fontWeight:Nt,textAlign:"start",background:Nr,borderBottom:Vr,transition:`background ${jn} ease`}}},[`${rt}-footer`]:{padding:`${(0,yc.bf)(Vt)} ${(0,yc.bf)(qt)}`,color:Lr,background:Mn}})}},jt=Je=>{const{colorFillAlter:rt,colorBgContainer:Nt,colorTextHeading:Vt,colorFillSecondary:qt,colorFillContent:Fn,controlItemBgActive:_r,controlItemBgActiveHover:Jn,padding:hr,paddingSM:xr,paddingXS:Yr,colorBorderSecondary:Or,borderRadiusLG:Ki,controlHeight:jn,colorTextPlaceholder:Nr,fontSize:cr,fontSizeSM:Lr,lineHeight:Mn,lineWidth:Er,colorIcon:Vr,colorIconHover:_i,opacityLoading:ai,controlInteractiveSize:wi}=Je,Hi=new Ng.C(qt).onBackground(Nt).toHexShortString(),Wo=new Ng.C(Fn).onBackground(Nt).toHexShortString(),po=new Ng.C(rt).onBackground(Nt).toHexShortString(),Uo=new Ng.C(Vr),xs=new Ng.C(_i),Xi=wi/2-Er,ws=Xi*2+Er*3;return{headerBg:po,headerColor:Vt,headerSortActiveBg:Hi,headerSortHoverBg:Wo,bodySortBg:po,rowHoverBg:po,rowSelectedBg:_r,rowSelectedHoverBg:Jn,rowExpandedBg:rt,cellPaddingBlock:hr,cellPaddingInline:hr,cellPaddingBlockMD:xr,cellPaddingInlineMD:Yr,cellPaddingBlockSM:Yr,cellPaddingInlineSM:Yr,borderColor:Or,headerBorderRadius:Ki,footerBg:po,footerColor:Vt,cellFontSize:cr,cellFontSizeMD:cr,cellFontSizeSM:cr,headerSplitColor:Or,fixedHeaderSortActiveBg:Hi,headerFilterHoverBg:Fn,filterDropdownMenuBg:Nt,filterDropdownBg:Nt,expandIconBg:Nt,selectionColumnWidth:jn,stickyScrollBarBg:Nr,stickyScrollBarBorderRadius:100,expandIconMarginTop:(cr*Mn-Er*3)/2-Math.ceil((Lr*1.4-Er*3)/2),headerIconColor:Uo.clone().setAlpha(Uo.getAlpha()*ai).toRgbString(),headerIconHoverColor:xs.clone().setAlpha(xs.getAlpha()*ai).toRgbString(),expandIconHalfInner:Xi,expandIconSize:ws,expandIconScale:wi/ws}};var on=(0,vf.I$)("Table",Je=>{const{colorTextHeading:rt,colorSplit:Nt,colorBgContainer:Vt,controlInteractiveSize:qt,headerBg:Fn,headerColor:_r,headerSortActiveBg:Jn,headerSortHoverBg:hr,bodySortBg:xr,rowHoverBg:Yr,rowSelectedBg:Or,rowSelectedHoverBg:Ki,rowExpandedBg:jn,cellPaddingBlock:Nr,cellPaddingInline:cr,cellPaddingBlockMD:Lr,cellPaddingInlineMD:Mn,cellPaddingBlockSM:Er,cellPaddingInlineSM:Vr,borderColor:_i,footerBg:ai,footerColor:wi,headerBorderRadius:Hi,cellFontSize:Wo,cellFontSizeMD:po,cellFontSizeSM:Uo,headerSplitColor:xs,fixedHeaderSortActiveBg:Xi,headerFilterHoverBg:ws,filterDropdownBg:so,expandIconBg:Wi,selectionColumnWidth:va,stickyScrollBarBg:ha,calc:qs}=Je,Yt=2,ar=(0,Mf.TS)(Je,{tableFontSize:Wo,tableBg:Vt,tableRadius:Hi,tablePaddingVertical:Nr,tablePaddingHorizontal:cr,tablePaddingVerticalMiddle:Lr,tablePaddingHorizontalMiddle:Mn,tablePaddingVerticalSmall:Er,tablePaddingHorizontalSmall:Vr,tableBorderColor:_i,tableHeaderTextColor:_r,tableHeaderBg:Fn,tableFooterTextColor:wi,tableFooterBg:ai,tableHeaderCellSplitColor:xs,tableHeaderSortBg:Jn,tableHeaderSortHoverBg:hr,tableBodySortBg:xr,tableFixedHeaderSortActiveBg:Xi,tableHeaderFilterActiveBg:ws,tableFilterDropdownBg:so,tableRowHoverBg:Yr,tableSelectedRowBg:Or,tableSelectedRowHoverBg:Ki,zIndexTableFixed:Yt,zIndexTableSticky:Yt+1,tableFontSizeMiddle:po,tableFontSizeSmall:Uo,tableSelectionColumnWidth:va,tableExpandIconBg:Wi,tableExpandColumnWidth:qs(qt).add(qs(Je.padding).mul(2)).equal(),tableExpandedRowBg:jn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ha,tableScrollThumbBgHover:rt,tableScrollBg:Nt});return[pt(ar),$h(ar),At(ar),dg(ar),um(ar),Bg(ar),gm(ar),O0(ar),At(ar),Jf(ar),Hp(ar),K0(ar),ee(ar),Pg(ar),Fm(ar),Mm(ar),xt(ar)]},jt,{unitless:{expandIconScale:!0}});const nn=[],hn=(Je,rt)=>{const{prefixCls:Nt,className:Vt,rootClassName:qt,style:Fn,size:_r,bordered:Jn,dropdownPrefixCls:hr,dataSource:xr,pagination:Yr,rowSelection:Or,rowKey:Ki="key",rowClassName:jn,columns:Nr,children:cr,childrenColumnName:Lr,onChange:Mn,getPopupContainer:Er,loading:Vr,expandIcon:_i,expandable:ai,expandedRowRender:wi,expandIconColumnIndex:Hi,indentSize:Wo,scroll:po,sortDirections:Uo,locale:xs,showSorterTooltip:Xi=!0,virtual:ws}=Je,so=(0,_o.ln)("Table"),Wi=v.useMemo(()=>Nr||mi(cr),[Nr,cr]),va=v.useMemo(()=>Wi.some(ya=>ya.responsive),[Wi]),ha=(0,$u.Z)(va),qs=v.useMemo(()=>{const ya=new Set(Object.keys(ha).filter(Ea=>ha[Ea]));return Wi.filter(Ea=>!Ea.responsive||Ea.responsive.some(ts=>ya.has(ts)))},[Wi,ha]),Yt=(0,wl.Z)(Je,["className","style","columns"]),{locale:ar=cc.Z,direction:oi,table:ps,renderEmpty:As,getPrefixCls:Aa,getPopupContainer:no}=v.useContext(ga.E_),ao=(0,ac.Z)(_r),Mo=Object.assign(Object.assign({},ar.Table),xs),ta=xr||nn,oa=Aa("table",Nt),Ke=Aa("dropdown",hr),sa=Object.assign({childrenColumnName:Lr,expandIconColumnIndex:Hi},ai),{childrenColumnName:ml="children"}=sa,kl=v.useMemo(()=>ta.some(ya=>ya==null?void 0:ya[ml])?"nest":wi||ai&&ai.expandedRowRender?"row":null,[ta]),Ys={body:v.useRef()},$s=Kd(oa),Dl=v.useRef(null),ra=v.useRef(null);Mh(rt,()=>Object.assign(Object.assign({},ra.current),{nativeElement:Dl.current}));const ho=v.useMemo(()=>typeof Ki=="function"?Ki:ya=>ya==null?void 0:ya[Ki],[Ki]),[Sa]=Ec(ta,ml,ho),qo={},Pa=function(ya,Ea){let ts=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ma,Ls,go;const Vo=Object.assign(Object.assign({},qo),ya);ts&&((Ma=qo.resetPagination)===null||Ma===void 0||Ma.call(qo),!((Ls=Vo.pagination)===null||Ls===void 0)&&Ls.current&&(Vo.pagination.current=1),Yr&&Yr.onChange&&Yr.onChange(1,(go=Vo.pagination)===null||go===void 0?void 0:go.pageSize)),po&&po.scrollToFirstRowOnChange!==!1&&Ys.body.current&&pl(0,{getContainer:()=>Ys.body.current}),Mn==null||Mn(Vo.pagination,Vo.filters,Vo.sorter,{currentDataSource:bc(Ym(ta,Vo.sorterStates,ml),Vo.filterStates),action:Ea})},ja=(ya,Ea)=>{Pa({sorter:ya,sorterStates:Ea},"sort",!1)},[Rl,Ga,yi,ls]=x0({prefixCls:oa,mergedColumns:qs,onSorterChange:ja,sortDirections:Uo||["ascend","descend"],tableLocale:Mo,showSorterTooltip:Xi}),ma=v.useMemo(()=>Ym(ta,Ga,ml),[ta,Ga]);qo.sorter=ls(),qo.sorterStates=Ga;const ol=(ya,Ea)=>{Pa({filters:ya,filterStates:Ea},"filter",!0)},[xu,vu,ka]=rh({prefixCls:oa,locale:Mo,dropdownPrefixCls:Ke,mergedColumns:qs,onFilterChange:ol,getPopupContainer:Er||no}),xc=bc(ma,vu);qo.filters=ka,qo.filterStates=vu;const zl=v.useMemo(()=>{const ya={};return Object.keys(ka).forEach(Ea=>{ka[Ea]!==null&&(ya[Ea]=ka[Ea])}),Object.assign(Object.assign({},yi),{filters:ya})},[yi,ka]),[Zc]=qg(zl),Du=(ya,Ea)=>{Pa({pagination:Object.assign(Object.assign({},qo.pagination),{current:ya,pageSize:Ea})},"paginate")},[Lc,hu]=Wg(xc.length,Du,Yr);qo.pagination=Yr===!1?{}:Ig(Lc,Yr),qo.resetPagination=hu;const Vd=v.useMemo(()=>{if(Yr===!1||!Lc.pageSize)return xc;const{current:ya=1,total:Ea,pageSize:ts=Oo}=Lc;return xc.lengthts?xc.slice((ya-1)*ts,ya*ts):xc:xc.slice((ya-1)*ts,ya*ts)},[!!Yr,xc,Lc&&Lc.current,Lc&&Lc.pageSize,Lc&&Lc.total]),[Oc,ud]=_h({prefixCls:oa,data:xc,pageData:Vd,getRowKey:ho,getRecordByKey:Sa,expandType:kl,childrenColumnName:ml,locale:Mo,getPopupContainer:Er||no},Or),Dc=(ya,Ea,ts)=>{let Ma;return typeof jn=="function"?Ma=ze()(jn(ya,Ea,ts)):Ma=ze()(jn),ze()({[`${oa}-row-selected`]:ud.has(ho(ya,Ea))},Ma)};sa.__PARENT_RENDER_ICON__=sa.expandIcon,sa.expandIcon=sa.expandIcon||_i||dp(Mo),kl==="nest"&&sa.expandIconColumnIndex===void 0?sa.expandIconColumnIndex=Or?1:0:sa.expandIconColumnIndex>0&&Or&&(sa.expandIconColumnIndex-=1),typeof sa.indentSize!="number"&&(sa.indentSize=typeof Wo=="number"?Wo:15);const Ul=v.useCallback(ya=>Zc(Oc(xu(Rl(ya)))),[Rl,xu,Oc]);let Nh,Ge;if(Yr!==!1&&(Lc!=null&&Lc.total)){let ya;Lc.size?ya=Lc.size:ya=ao==="small"||ao==="middle"?"small":void 0;const Ea=Ls=>v.createElement(fp,Object.assign({},Lc,{className:ze()(`${oa}-pagination ${oa}-pagination-${Ls}`,Lc.className),size:ya})),ts=oi==="rtl"?"left":"right",{position:Ma}=Lc;if(Ma!==null&&Array.isArray(Ma)){const Ls=Ma.find(Fs=>Fs.includes("top")),go=Ma.find(Fs=>Fs.includes("bottom")),Vo=Ma.every(Fs=>`${Fs}`=="none");!Ls&&!go&&!Vo&&(Ge=Ea(ts)),Ls&&(Nh=Ea(Ls.toLowerCase().replace("top",""))),go&&(Ge=Ea(go.toLowerCase().replace("bottom","")))}else Ge=Ea(ts)}let We;typeof Vr=="boolean"?We={spinning:Vr}:typeof Vr=="object"&&(We=Object.assign({spinning:!0},Vr));const[,yt]=(0,Ep.ZP)(),Pn=(0,ea.Z)(oa),[xi,Zn]=on(oa,Pn),ci=ze()(Pn,`${oa}-wrapper`,ps==null?void 0:ps.className,{[`${oa}-wrapper-rtl`]:oi==="rtl"},Vt,qt,Zn),So=Object.assign(Object.assign({},ps==null?void 0:ps.style),Fn),Zs=xs&&xs.emptyText||(As==null?void 0:As("Table"))||v.createElement(au.Z,{componentName:"Table"}),La=ws?k0:Jg,uu={},Jo=v.useMemo(()=>{const{fontSize:ya,lineHeight:Ea,padding:ts,paddingXS:Ma,paddingSM:Ls}=yt,go=Math.floor(ya*Ea);switch(ao){case"large":return ts*2+go;case"small":return Ma*2+go;default:return Ls*2+go}},[yt,ao]);return ws&&(uu.listItemHeight=Jo),xi(v.createElement("div",{ref:Dl,className:ci,style:So},v.createElement(Sg.Z,Object.assign({spinning:!1},We),Nh,v.createElement(La,Object.assign({},uu,Yt,{ref:ra,columns:qs,direction:oi,expandable:sa,prefixCls:oa,className:ze()({[`${oa}-middle`]:ao==="middle",[`${oa}-small`]:ao==="small",[`${oa}-bordered`]:Jn,[`${oa}-empty`]:ta.length===0},Pn,Zn),data:Vd,rowKey:ho,rowClassName:Dc,emptyText:Zs,internalHooks:w,internalRefs:Ys,transformColumns:Ul,getContainerWidth:$s})),Ge)))};var Ln=v.forwardRef(hn);const Kn=(Je,rt)=>{const Nt=v.useRef(0);return Nt.current+=1,v.createElement(Ln,Object.assign({},Je,{ref:rt,_renderTimes:Nt.current}))},lr=v.forwardRef(Kn);lr.SELECTION_COLUMN=Td,lr.EXPAND_COLUMN=R,lr.SELECTION_ALL=Gh,lr.SELECTION_INVERT=yh,lr.SELECTION_NONE=kc,lr.Column=ad,lr.ColumnGroup=iu,lr.Summary=Dn;var Rr=lr,ni=Rr},80575:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return gs}});var v=_(77617),R=_(49934),w=_(93319),b=_(61796),B=_(28186),V=_(91851),k=function(ri,is){return v.createElement(V.Z,(0,b.Z)({},ri,{ref:is,icon:B.Z}))},M=v.forwardRef(k),C=_(12124),g=_.n(C),A=_(35005),O=_(36439),K=_(61860),ce=_(96522),de=_(33649),ve=_(84381),Ee=_(15639),_e=_(36014);function we(){var Kr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},ri;return Kr===!1?ri={inkBar:!1,tabPane:!1}:Kr===!0?ri={inkBar:!0,tabPane:!1}:ri=(0,O.Z)({inkBar:!0},(0,ce.Z)(Kr)==="object"?Kr:{}),ri.tabPaneMotion&&ri.tabPane===void 0&&(ri.tabPane=!0),!ri.tabPaneMotion&&ri.tabPane&&(ri.tabPane=!1),ri}var ot=(0,v.createContext)(null),He=_(40877),vt=_(28647),dt=_(60402),Pe=_(88831),De=_(90571),Ae=function(ri){var is=ri.activeTabOffset,Jr=ri.horizontal,_n=ri.rtl,Br=ri.indicatorSize,es=(0,v.useState)(),ko=(0,K.Z)(es,2),vs=ko[0],Ba=ko[1],uo=(0,v.useRef)(),ca=function(Li){return typeof Br=="function"?Br(Li):typeof Br=="number"?Br:Li};function ll(){De.Z.cancel(uo.current)}return(0,v.useEffect)(function(){var Ti={};return is&&(Jr?(_n?(Ti.right=is.right+is.width/2,Ti.transform="translateX(50%)"):(Ti.left=is.left+is.width/2,Ti.transform="translateX(-50%)"),Ti.width=ca(is.width)):(Ti.top=is.top+is.height/2,Ti.transform="translateY(-50%)",Ti.height=ca(is.height))),ll(),uo.current=(0,De.Z)(function(){Ba(Ti)}),ll},[is,Jr,_n,Br]),{style:vs}},Re=Ae,$e={width:0,height:0,left:0,top:0};function Ie(Kr,ri,is){return(0,v.useMemo)(function(){for(var Jr,_n=new Map,Br=ri.get((Jr=Kr[0])===null||Jr===void 0?void 0:Jr.key)||$e,es=Br.left+Br.width,ko=0;koft?(ht=je,Ko.current="x"):(ht=ut,Ko.current="y"),ri(-ht,-ht)&&Gr.preventDefault()}var kr=(0,v.useRef)(null);kr.current={onTouchStart:yo,onTouchMove:Qo,onTouchEnd:os,onWheel:Yn},v.useEffect(function(){function Gr(Ue){kr.current.onTouchStart(Ue)}function je(Ue){kr.current.onTouchMove(Ue)}function ut(Ue){kr.current.onTouchEnd(Ue)}function ht(Ue){kr.current.onWheel(Ue)}return document.addEventListener("touchmove",je,{passive:!1}),document.addEventListener("touchend",ut,{passive:!1}),Kr.current.addEventListener("touchstart",Gr,{passive:!1}),Kr.current.addEventListener("wheel",ht),function(){document.removeEventListener("touchmove",je),document.removeEventListener("touchend",ut)}},[])}var lt=_(70658);function Gt(Kr){var ri=(0,v.useState)(0),is=(0,K.Z)(ri,2),Jr=is[0],_n=is[1],Br=(0,v.useRef)(0),es=(0,v.useRef)();return es.current=Kr,(0,lt.o)(function(){var ko;(ko=es.current)===null||ko===void 0||ko.call(es)},[Jr]),function(){Br.current===Jr&&(Br.current+=1,_n(Br.current))}}function Rt(Kr){var ri=(0,v.useRef)([]),is=(0,v.useState)({}),Jr=(0,K.Z)(is,2),_n=Jr[1],Br=(0,v.useRef)(typeof Kr=="function"?Kr():Kr),es=Gt(function(){var vs=Br.current;ri.current.forEach(function(Ba){vs=Ba(vs)}),ri.current=[],Br.current=vs,_n({})});function ko(vs){ri.current.push(vs),es()}return[Br.current,ko]}var an={width:0,height:0,left:0,top:0,right:0};function cn(Kr,ri,is,Jr,_n,Br,es){var ko=es.tabs,vs=es.tabPosition,Ba=es.rtl,uo,ca,ll;return["top","bottom"].includes(vs)?(uo="width",ca=Ba?"right":"left",ll=Math.abs(is)):(uo="height",ca="top",ll=-is),(0,v.useMemo)(function(){if(!ko.length)return[0,0];for(var Ti=ko.length,Li=Ti,eo=0;eoll+ri){Li=eo-1;break}}for(var hs=0,Wn=Ti-1;Wn>=0;Wn-=1){var yo=Kr.get(ko[Wn].key)||an;if(yo[ca]=Li?[0,0]:[hs,Li]},[Kr,ri,Jr,_n,Br,ll,vs,ko.map(function(Ti){return Ti.key}).join("_"),Ba])}function Cr(Kr){var ri;return Kr instanceof Map?(ri={},Kr.forEach(function(is,Jr){ri[Jr]=is})):ri=Kr,JSON.stringify(ri)}var ii="TABS_DQ";function Pi(Kr){return String(Kr).replace(/"/g,ii)}function Ni(Kr,ri,is,Jr){return!(!is||Jr||Kr===!1||Kr===void 0&&(ri===!1||ri===null))}var Yi=v.forwardRef(function(Kr,ri){var is=Kr.prefixCls,Jr=Kr.editable,_n=Kr.locale,Br=Kr.style;return!Jr||Jr.showAdd===!1?null:v.createElement("button",{ref:ri,type:"button",className:"".concat(is,"-nav-add"),style:Br,"aria-label":(_n==null?void 0:_n.addAriaLabel)||"Add tab",onClick:function(ko){Jr.onEdit("add",{event:ko})}},Jr.addIcon||"+")}),ti=Yi,Ts=v.forwardRef(function(Kr,ri){var is=Kr.position,Jr=Kr.prefixCls,_n=Kr.extra;if(!_n)return null;var Br,es={};return(0,ce.Z)(_n)==="object"&&!v.isValidElement(_n)?es=_n:es.right=_n,is==="right"&&(Br=es.right),is==="left"&&(Br=es.left),Br?v.createElement("div",{className:"".concat(Jr,"-extra-content"),ref:ri},Br):null}),Bs=Ts,Ce=_(31561),Gi=_(27484),qi=_(84821),co=v.forwardRef(function(Kr,ri){var is=Kr.prefixCls,Jr=Kr.id,_n=Kr.tabs,Br=Kr.locale,es=Kr.mobile,ko=Kr.moreIcon,vs=ko===void 0?"More":ko,Ba=Kr.moreTransitionName,uo=Kr.style,ca=Kr.className,ll=Kr.editable,Ti=Kr.tabBarGutter,Li=Kr.rtl,eo=Kr.removeAriaLabel,Eo=Kr.onTabClick,hs=Kr.getPopupContainer,Wn=Kr.popupClassName,yo=(0,v.useState)(!1),Qo=(0,K.Z)(yo,2),os=Qo[0],Ko=Qo[1],Yn=(0,v.useState)(null),kr=(0,K.Z)(Yn,2),Gr=kr[0],je=kr[1],ut="".concat(Jr,"-more-popup"),ht="".concat(is,"-dropdown"),Ue=Gr!==null?"".concat(ut,"-").concat(Gr):null,ft=Br==null?void 0:Br.dropdownAriaLabel;function Pt(Us,Is){Us.preventDefault(),Us.stopPropagation(),ll.onEdit("remove",{key:Is,event:Us})}var ln=v.createElement(Gi.ZP,{onClick:function(Is){var Rs=Is.key,Ns=Is.domEvent;Eo(Rs,Ns),Ko(!1)},prefixCls:"".concat(ht,"-menu"),id:ut,tabIndex:-1,role:"listbox","aria-activedescendant":Ue,selectedKeys:[Gr],"aria-label":ft!==void 0?ft:"expanded dropdown"},_n.map(function(Us){var Is=Us.closable,Rs=Us.disabled,Ns=Us.closeIcon,Lo=Us.key,Ps=Us.label,ua=Ni(Is,Ns,ll,Rs);return v.createElement(Gi.sN,{key:Lo,id:"".concat(ut,"-").concat(Lo),role:"option","aria-controls":Jr&&"".concat(Jr,"-panel-").concat(Lo),disabled:Rs},v.createElement("span",null,Ps),ua&&v.createElement("button",{type:"button","aria-label":eo||"remove",tabIndex:0,className:"".concat(ht,"-menu-item-remove"),onClick:function(Hl){Hl.stopPropagation(),Pt(Hl,Lo)}},Ns||ll.removeIcon||"\xD7"))}));function sr(Us){for(var Is=_n.filter(function(ua){return!ua.disabled}),Rs=Is.findIndex(function(ua){return ua.key===Gr})||0,Ns=Is.length,Lo=0;Lokc?"left":"right"})}),ft=(0,K.Z)(Ue,2),Pt=ft[0],ln=ft[1],sr=Xe(0,function(yh,kc){!ht&&Eo&&Eo({direction:yh>kc?"top":"bottom"})}),Zr=(0,K.Z)(sr,2),Ui=Zr[0],To=Zr[1],Vi=(0,v.useState)([0,0]),Us=(0,K.Z)(Vi,2),Is=Us[0],Rs=Us[1],Ns=(0,v.useState)([0,0]),Lo=(0,K.Z)(Ns,2),Ps=Lo[0],ua=Lo[1],Ka=(0,v.useState)([0,0]),Hl=(0,K.Z)(Ka,2),Gl=Hl[0],fs=Hl[1],Hs=(0,v.useState)([0,0]),dl=(0,K.Z)(Hs,2),Xo=dl[0],Mi=dl[1],Yo=Rt(new Map),Os=(0,K.Z)(Yo,2),Cs=Os[0],xa=Os[1],Xu=Ie(Qo,Cs,Ps[0]),gc=$t(Is,ht),Zu=$t(Ps,ht),Cd=$t(Gl,ht),ad=$t(Xo,ht),gu=gctr?tr:yh}var jr=(0,v.useRef)(null),Qr=(0,v.useState)(),_o=(0,K.Z)(Qr,2),us=_o[0],ns=_o[1];function Oa(){ns(Date.now())}function ga(){jr.current&&clearTimeout(jr.current)}Ct(kr,function(yh,kc){function Kh($f,Vf){$f(function(_h){var Qh=Un(_h+Vf);return Qh})}return gu?(ht?Kh(ln,yh):Kh(To,kc),ga(),Oa(),!0):!1}),(0,v.useEffect)(function(){return ga(),us&&(jr.current=setTimeout(function(){ns(0)},100)),ga},[us]);var Va=cn(Xu,iu,ht?Pt:Ui,Zu,Cd,ad,(0,O.Z)((0,O.Z)({},Kr),{},{tabs:Qo})),ea=(0,K.Z)(Va,2),Xl=ea[0],_a=ea[1],Ta=(0,dt.Z)(function(){var yh=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ko,kc=Xu.get(yh)||{width:0,height:0,left:0,right:0,top:0};if(ht){var Kh=Pt;vs?kc.rightPt+iu&&(Kh=kc.right+kc.width-iu):kc.left<-Pt?Kh=-kc.left:kc.left+kc.width>-Pt+iu&&(Kh=-(kc.left+kc.width-iu)),To(0),ln(Un(Kh))}else{var $f=Ui;kc.top<-Ui?$f=-kc.top:kc.top+kc.height>-Ui+iu&&($f=-(kc.top+kc.height-iu)),ln(0),To(Un($f))}}),Ya={};ll==="top"||ll==="bottom"?Ya[vs?"marginRight":"marginLeft"]=Ti:Ya.marginTop=Ti;var cu=Qo.map(function(yh,kc){var Kh=yh.key;return v.createElement(In,{id:Br,prefixCls:yo,key:Kh,tab:yh,style:kc===0?void 0:Ya,closable:yh.closable,editable:uo,active:Kh===ko,renderWrapper:Li,removeAriaLabel:ca==null?void 0:ca.removeAriaLabel,onClick:function(Vf){eo(Kh,Vf)},onFocus:function(){Ta(Kh),Oa(),kr.current&&(vs||(kr.current.scrollLeft=0),kr.current.scrollTop=0)}})}),jl=function(){return xa(function(){var kc,Kh=new Map,$f=(kc=Gr.current)===null||kc===void 0?void 0:kc.getBoundingClientRect();return Qo.forEach(function(Vf){var _h,Qh=Vf.key,Mh=(_h=Gr.current)===null||_h===void 0?void 0:_h.querySelector('[data-node-key="'.concat(Pi(Qh),'"]'));if(Mh){var Wd=et(Mh,$f),zs=(0,K.Z)(Wd,4),$a=zs[0],Ja=zs[1],pl=zs[2],au=zs[3];Kh.set(Qh,{width:$a,height:Ja,left:pl,top:au})}}),Kh})};(0,v.useEffect)(function(){jl()},[Qo.map(function(yh){return yh.key}).join("_")]);var Mu=Gt(function(){var yh=Dt(os),kc=Dt(Ko),Kh=Dt(Yn);Rs([yh[0]-kc[0]-Kh[0],yh[1]-kc[1]-Kh[1]]);var $f=Dt(ut);fs($f);var Vf=Dt(je);Mi(Vf);var _h=Dt(Gr);ua([_h[0]-$f[0],_h[1]-$f[1]]),jl()}),Bl=Qo.slice(0,Xl),wl=Qo.slice(_a+1),Tn=[].concat((0,He.Z)(Bl),(0,He.Z)(wl)),nc=Xu.get(ko),Iu=Re({activeTabOffset:nc,horizontal:ht,rtl:vs,indicatorSize:hs}),Pc=Iu.style;(0,v.useEffect)(function(){Ta()},[ko,Si,tr,Cr(nc),Cr(Xu),ht]),(0,v.useEffect)(function(){Mu()},[vs]);var Wc=!!Tn.length,cd="".concat(yo,"-nav-wrap"),Fc,vh,Td,Gh;return ht?vs?(vh=Pt>0,Fc=Pt!==tr):(Fc=Pt<0,vh=Pt!==Si):(Td=Ui<0,Gh=Ui!==Si),v.createElement(vt.Z,{onResize:Mu},v.createElement("div",{ref:(0,Pe.x1)(ri,os),role:"tablist",className:g()("".concat(yo,"-nav"),Jr),style:_n,onKeyDown:function(){Oa()}},v.createElement(Bs,{ref:Ko,position:"left",extra:Ba,prefixCls:yo}),v.createElement(vt.Z,{onResize:Mu},v.createElement("div",{className:g()(cd,(is={},(0,A.Z)(is,"".concat(cd,"-ping-left"),Fc),(0,A.Z)(is,"".concat(cd,"-ping-right"),vh),(0,A.Z)(is,"".concat(cd,"-ping-top"),Td),(0,A.Z)(is,"".concat(cd,"-ping-bottom"),Gh),is)),ref:kr},v.createElement(vt.Z,{onResize:Mu},v.createElement("div",{ref:Gr,className:"".concat(yo,"-nav-list"),style:{transform:"translate(".concat(Pt,"px, ").concat(Ui,"px)"),transition:us?"none":void 0}},cu,v.createElement(ti,{ref:ut,prefixCls:yo,locale:ca,editable:uo,style:(0,O.Z)((0,O.Z)({},cu.length===0?void 0:Ya),{},{visibility:Wc?"hidden":null})}),v.createElement("div",{className:g()("".concat(yo,"-ink-bar"),(0,A.Z)({},"".concat(yo,"-ink-bar-animated"),es.inkBar)),style:Pc}))))),v.createElement(fi,(0,b.Z)({},Kr,{removeAriaLabel:ca==null?void 0:ca.removeAriaLabel,ref:je,prefixCls:yo,tabs:Tn,className:!Wc&&Tu,tabMoving:!!us})),v.createElement(Bs,{ref:Yn,position:"right",extra:Ba,prefixCls:yo})))}),gr=Dn,kn=v.forwardRef(function(Kr,ri){var is=Kr.prefixCls,Jr=Kr.className,_n=Kr.style,Br=Kr.id,es=Kr.active,ko=Kr.tabKey,vs=Kr.children;return v.createElement("div",{id:Br&&"".concat(Br,"-panel-").concat(ko),role:"tabpanel",tabIndex:es?0:-1,"aria-labelledby":Br&&"".concat(Br,"-tab-").concat(ko),"aria-hidden":!es,style:_n,className:g()(is,es&&"".concat(is,"-active"),Jr),ref:ri},vs)}),bn=kn,zt=["renderTabBar"],Jt=["label","key"],yn=function(ri){var is=ri.renderTabBar,Jr=(0,de.Z)(ri,zt),_n=v.useContext(ot),Br=_n.tabs;if(is){var es=(0,O.Z)((0,O.Z)({},Jr),{},{panes:Br.map(function(ko){var vs=ko.label,Ba=ko.key,uo=(0,de.Z)(ko,Jt);return v.createElement(bn,(0,b.Z)({tab:vs,key:Ba,tabKey:Ba},uo))})});return is(es,gr)}return v.createElement(gr,Jr)},fr=yn,vr=_(44516),pn=["key","forceRender","style","className","destroyInactiveTabPane"],wr=function(ri){var is=ri.id,Jr=ri.activeKey,_n=ri.animated,Br=ri.tabPosition,es=ri.destroyInactiveTabPane,ko=v.useContext(ot),vs=ko.prefixCls,Ba=ko.tabs,uo=_n.tabPane,ca="".concat(vs,"-tabpane");return v.createElement("div",{className:g()("".concat(vs,"-content-holder"))},v.createElement("div",{className:g()("".concat(vs,"-content"),"".concat(vs,"-content-").concat(Br),(0,A.Z)({},"".concat(vs,"-content-animated"),uo))},Ba.map(function(ll){var Ti=ll.key,Li=ll.forceRender,eo=ll.style,Eo=ll.className,hs=ll.destroyInactiveTabPane,Wn=(0,de.Z)(ll,pn),yo=Ti===Jr;return v.createElement(vr.ZP,(0,b.Z)({key:Ti,visible:yo,forceRender:Li,removeOnLeave:!!(es||hs),leavedClassName:"".concat(ca,"-hidden")},_n.tabPaneMotion),function(Qo,os){var Ko=Qo.style,Yn=Qo.className;return v.createElement(bn,(0,b.Z)({},Wn,{prefixCls:ca,id:is,tabKey:Ti,animated:uo,active:yo,style:(0,O.Z)((0,O.Z)({},eo),Ko),className:g()(Eo,Yn),ref:os}))})})))},Sr=wr,Ai=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],mo=0,Fr=v.forwardRef(function(Kr,ri){var is,Jr=Kr.id,_n=Kr.prefixCls,Br=_n===void 0?"rc-tabs":_n,es=Kr.className,ko=Kr.items,vs=Kr.direction,Ba=Kr.activeKey,uo=Kr.defaultActiveKey,ca=Kr.editable,ll=Kr.animated,Ti=Kr.tabPosition,Li=Ti===void 0?"top":Ti,eo=Kr.tabBarGutter,Eo=Kr.tabBarStyle,hs=Kr.tabBarExtraContent,Wn=Kr.locale,yo=Kr.moreIcon,Qo=Kr.moreTransitionName,os=Kr.destroyInactiveTabPane,Ko=Kr.renderTabBar,Yn=Kr.onChange,kr=Kr.onTabClick,Gr=Kr.onTabScroll,je=Kr.getPopupContainer,ut=Kr.popupClassName,ht=Kr.indicatorSize,Ue=(0,de.Z)(Kr,Ai),ft=v.useMemo(function(){return(ko||[]).filter(function(Mi){return Mi&&(0,ce.Z)(Mi)==="object"&&"key"in Mi})},[ko]),Pt=vs==="rtl",ln=we(ll),sr=(0,v.useState)(!1),Zr=(0,K.Z)(sr,2),Ui=Zr[0],To=Zr[1];(0,v.useEffect)(function(){To((0,Ee.Z)())},[]);var Vi=(0,ve.Z)(function(){var Mi;return(Mi=ft[0])===null||Mi===void 0?void 0:Mi.key},{value:Ba,defaultValue:uo}),Us=(0,K.Z)(Vi,2),Is=Us[0],Rs=Us[1],Ns=(0,v.useState)(function(){return ft.findIndex(function(Mi){return Mi.key===Is})}),Lo=(0,K.Z)(Ns,2),Ps=Lo[0],ua=Lo[1];(0,v.useEffect)(function(){var Mi=ft.findIndex(function(Os){return Os.key===Is});if(Mi===-1){var Yo;Mi=Math.max(0,Math.min(Ps,ft.length-1)),Rs((Yo=ft[Mi])===null||Yo===void 0?void 0:Yo.key)}ua(Mi)},[ft.map(function(Mi){return Mi.key}).join("_"),Is,Ps]);var Ka=(0,ve.Z)(null,{value:Jr}),Hl=(0,K.Z)(Ka,2),Gl=Hl[0],fs=Hl[1];(0,v.useEffect)(function(){Jr||(fs("rc-tabs-".concat(mo)),mo+=1)},[]);function Hs(Mi,Yo){kr==null||kr(Mi,Yo);var Os=Mi!==Is;Rs(Mi),Os&&(Yn==null||Yn(Mi))}var dl={id:Gl,activeKey:Is,animated:ln,tabPosition:Li,rtl:Pt,mobile:Ui},Xo=(0,O.Z)((0,O.Z)({},dl),{},{editable:ca,locale:Wn,moreIcon:yo,moreTransitionName:Qo,tabBarGutter:eo,onTabClick:Hs,onTabScroll:Gr,extra:hs,style:Eo,panes:null,getPopupContainer:je,popupClassName:ut,indicatorSize:ht});return v.createElement(ot.Provider,{value:{tabs:ft,prefixCls:Br}},v.createElement("div",(0,b.Z)({ref:ri,id:Jr,className:g()(Br,"".concat(Br,"-").concat(Li),(is={},(0,A.Z)(is,"".concat(Br,"-mobile"),Ui),(0,A.Z)(is,"".concat(Br,"-editable"),ca),(0,A.Z)(is,"".concat(Br,"-rtl"),Pt),is),es)},Ue),v.createElement(fr,(0,b.Z)({},Xo,{renderTabBar:Ko})),v.createElement(Sr,(0,b.Z)({destroyInactiveTabPane:os},dl,{animated:ln}))))}),to=Fr,Ji=to,bo=_(51059),xn=_(1220),fn=_(82395);const It={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Zt(Kr){let ri=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},is;return ri===!1?is={inkBar:!1,tabPane:!1}:ri===!0?is={inkBar:!0,tabPane:!0}:is=Object.assign({inkBar:!0},typeof ri=="object"?ri:{}),is.tabPane&&(is.tabPaneMotion=Object.assign(Object.assign({},It),{motionName:(0,fn.m)(Kr,"switch")})),is}var gn=_(45659),$n=function(Kr,ri){var is={};for(var Jr in Kr)Object.prototype.hasOwnProperty.call(Kr,Jr)&&ri.indexOf(Jr)<0&&(is[Jr]=Kr[Jr]);if(Kr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _n=0,Jr=Object.getOwnPropertySymbols(Kr);_nri)}function Dr(Kr,ri){if(Kr)return Kr;const is=(0,gn.Z)(ri).map(Jr=>{if(v.isValidElement(Jr)){const{key:_n,props:Br}=Jr,es=Br||{},{tab:ko}=es,vs=$n(es,["tab"]);return Object.assign(Object.assign({key:String(_n)},vs),{label:ko})}return null});return Ar(is)}var dr=_(36646),Xt=_(35772),Cn=_(67859),er=_(80172),Mr=_(70163),An=Kr=>{const{componentCls:ri,motionDurationSlow:is}=Kr;return[{[ri]:{[`${ri}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${is}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${is}`}}}}},[(0,Mr.oN)(Kr,"slide-up"),(0,Mr.oN)(Kr,"slide-down")]]};const Xn=Kr=>{const{componentCls:ri,tabsCardPadding:is,cardBg:Jr,cardGutter:_n,colorBorderSecondary:Br,itemSelectedColor:es}=Kr;return{[`${ri}-card`]:{[`> ${ri}-nav, > div > ${ri}-nav`]:{[`${ri}-tab`]:{margin:0,padding:is,background:Jr,border:`${(0,dr.bf)(Kr.lineWidth)} ${Kr.lineType} ${Br}`,transition:`all ${Kr.motionDurationSlow} ${Kr.motionEaseInOut}`},[`${ri}-tab-active`]:{color:es,background:Kr.colorBgContainer},[`${ri}-ink-bar`]:{visibility:"hidden"}},[`&${ri}-top, &${ri}-bottom`]:{[`> ${ri}-nav, > div > ${ri}-nav`]:{[`${ri}-tab + ${ri}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,dr.bf)(_n)}}}},[`&${ri}-top`]:{[`> ${ri}-nav, > div > ${ri}-nav`]:{[`${ri}-tab`]:{borderRadius:`${(0,dr.bf)(Kr.borderRadiusLG)} ${(0,dr.bf)(Kr.borderRadiusLG)} 0 0`},[`${ri}-tab-active`]:{borderBottomColor:Kr.colorBgContainer}}},[`&${ri}-bottom`]:{[`> ${ri}-nav, > div > ${ri}-nav`]:{[`${ri}-tab`]:{borderRadius:`0 0 ${(0,dr.bf)(Kr.borderRadiusLG)} ${(0,dr.bf)(Kr.borderRadiusLG)}`},[`${ri}-tab-active`]:{borderTopColor:Kr.colorBgContainer}}},[`&${ri}-left, &${ri}-right`]:{[`> ${ri}-nav, > div > ${ri}-nav`]:{[`${ri}-tab + ${ri}-tab`]:{marginTop:(0,dr.bf)(_n)}}},[`&${ri}-left`]:{[`> ${ri}-nav, > div > ${ri}-nav`]:{[`${ri}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,dr.bf)(Kr.borderRadiusLG)} 0 0 ${(0,dr.bf)(Kr.borderRadiusLG)}`}},[`${ri}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Kr.colorBgContainer}}}},[`&${ri}-right`]:{[`> ${ri}-nav, > div > ${ri}-nav`]:{[`${ri}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,dr.bf)(Kr.borderRadiusLG)} ${(0,dr.bf)(Kr.borderRadiusLG)} 0`}},[`${ri}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Kr.colorBgContainer}}}}}}},nr=Kr=>{const{componentCls:ri,itemHoverColor:is,dropdownEdgeChildVerticalPadding:Jr}=Kr;return{[`${ri}-dropdown`]:Object.assign(Object.assign({},(0,Xt.Wf)(Kr)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Kr.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${ri}-dropdown-menu`]:{maxHeight:Kr.tabsDropdownHeight,margin:0,padding:`${(0,dr.bf)(Jr)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Kr.colorBgContainer,backgroundClip:"padding-box",borderRadius:Kr.borderRadiusLG,outline:"none",boxShadow:Kr.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Xt.vS),{display:"flex",alignItems:"center",minWidth:Kr.tabsDropdownWidth,margin:0,padding:`${(0,dr.bf)(Kr.paddingXXS)} ${(0,dr.bf)(Kr.paddingSM)}`,color:Kr.colorText,fontWeight:"normal",fontSize:Kr.fontSize,lineHeight:Kr.lineHeight,cursor:"pointer",transition:`all ${Kr.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Kr.marginSM},color:Kr.colorTextDescription,fontSize:Kr.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:is}},"&:hover":{background:Kr.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Kr.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},qr=Kr=>{const{componentCls:ri,margin:is,colorBorderSecondary:Jr,horizontalMargin:_n,verticalItemPadding:Br,verticalItemMargin:es,calc:ko}=Kr;return{[`${ri}-top, ${ri}-bottom`]:{flexDirection:"column",[`> ${ri}-nav, > div > ${ri}-nav`]:{margin:_n,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,dr.bf)(Kr.lineWidth)} ${Kr.lineType} ${Jr}`,content:"''"},[`${ri}-ink-bar`]:{height:Kr.lineWidthBold,"&-animated":{transition:`width ${Kr.motionDurationSlow}, left ${Kr.motionDurationSlow}, - right ${Kr.motionDurationSlow}`}},[`${ri}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Kr.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Kr.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Kr.boxShadowTabsOverflowRight},[`&${ri}-nav-wrap-ping-left::before`]:{opacity:1},[`&${ri}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${ri}-top`]:{[`> ${ri}-nav, - > div > ${ri}-nav`]:{"&::before":{bottom:0},[`${ri}-ink-bar`]:{bottom:0}}},[`${ri}-bottom`]:{[`> ${ri}-nav, > div > ${ri}-nav`]:{order:1,marginTop:is,marginBottom:0,"&::before":{top:0},[`${ri}-ink-bar`]:{top:0}},[`> ${ri}-content-holder, > div > ${ri}-content-holder`]:{order:0}},[`${ri}-left, ${ri}-right`]:{[`> ${ri}-nav, > div > ${ri}-nav`]:{flexDirection:"column",minWidth:ko(Kr.controlHeight).mul(1.25).equal(),[`${ri}-tab`]:{padding:Br,textAlign:"center"},[`${ri}-tab + ${ri}-tab`]:{margin:es},[`${ri}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Kr.controlHeight},"&::before":{top:0,boxShadow:Kr.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Kr.boxShadowTabsOverflowBottom},[`&${ri}-nav-wrap-ping-top::before`]:{opacity:1},[`&${ri}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${ri}-ink-bar`]:{width:Kr.lineWidthBold,"&-animated":{transition:`height ${Kr.motionDurationSlow}, top ${Kr.motionDurationSlow}`}},[`${ri}-nav-list, ${ri}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${ri}-left`]:{[`> ${ri}-nav, > div > ${ri}-nav`]:{[`${ri}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${ri}-content-holder, > div > ${ri}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,dr.bf)(ko(Kr.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,dr.bf)(Kr.lineWidth)} ${Kr.lineType} ${Kr.colorBorder}`},[`> ${ri}-content > ${ri}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Kr.paddingLG}}}},[`${ri}-right`]:{[`> ${ri}-nav, > div > ${ri}-nav`]:{order:1,[`${ri}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${ri}-content-holder, > div > ${ri}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:ko(Kr.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,dr.bf)(Kr.lineWidth)} ${Kr.lineType} ${Kr.colorBorder}`},[`> ${ri}-content > ${ri}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Kr.paddingLG}}}}}},vi=Kr=>{const{componentCls:ri,cardPaddingSM:is,cardPaddingLG:Jr,horizontalItemPaddingSM:_n,horizontalItemPaddingLG:Br}=Kr;return{[ri]:{"&-small":{[`> ${ri}-nav`]:{[`${ri}-tab`]:{padding:_n,fontSize:Kr.titleFontSizeSM}}},"&-large":{[`> ${ri}-nav`]:{[`${ri}-tab`]:{padding:Br,fontSize:Kr.titleFontSizeLG}}}},[`${ri}-card`]:{[`&${ri}-small`]:{[`> ${ri}-nav`]:{[`${ri}-tab`]:{padding:is}},[`&${ri}-bottom`]:{[`> ${ri}-nav ${ri}-tab`]:{borderRadius:`0 0 ${(0,dr.bf)(Kr.borderRadius)} ${(0,dr.bf)(Kr.borderRadius)}`}},[`&${ri}-top`]:{[`> ${ri}-nav ${ri}-tab`]:{borderRadius:`${(0,dr.bf)(Kr.borderRadius)} ${(0,dr.bf)(Kr.borderRadius)} 0 0`}},[`&${ri}-right`]:{[`> ${ri}-nav ${ri}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,dr.bf)(Kr.borderRadius)} ${(0,dr.bf)(Kr.borderRadius)} 0`}}},[`&${ri}-left`]:{[`> ${ri}-nav ${ri}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,dr.bf)(Kr.borderRadius)} 0 0 ${(0,dr.bf)(Kr.borderRadius)}`}}}},[`&${ri}-large`]:{[`> ${ri}-nav`]:{[`${ri}-tab`]:{padding:Jr}}}}}},Hr=Kr=>{const{componentCls:ri,itemActiveColor:is,itemHoverColor:Jr,iconCls:_n,tabsHorizontalItemMargin:Br,horizontalItemPadding:es,itemSelectedColor:ko,itemColor:vs}=Kr,Ba=`${ri}-tab`;return{[Ba]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:es,fontSize:Kr.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:vs,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:is}},(0,Xt.Qy)(Kr)),"&-btn":{outline:"none",transition:"all 0.3s",[`${Ba}-icon:not(:last-child)`]:{marginInlineEnd:Kr.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:Kr.calc(Kr.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:Kr.marginXS},color:Kr.colorTextDescription,fontSize:Kr.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Kr.motionDurationSlow}`,"&:hover":{color:Kr.colorTextHeading}},"&:hover":{color:Jr},[`&${Ba}-active ${Ba}-btn`]:{color:ko,textShadow:Kr.tabsActiveTextShadow},[`&${Ba}-disabled`]:{color:Kr.colorTextDisabled,cursor:"not-allowed"},[`&${Ba}-disabled ${Ba}-btn, &${Ba}-disabled ${ri}-remove`]:{"&:focus, &:active":{color:Kr.colorTextDisabled}},[`& ${Ba}-remove ${_n}`]:{margin:0},[`${_n}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:Kr.marginSM}}},[`${Ba} + ${Ba}`]:{margin:{_skip_check_:!0,value:Br}}}},di=Kr=>{const{componentCls:ri,tabsHorizontalItemMarginRTL:is,iconCls:Jr,cardGutter:_n,calc:Br}=Kr;return{[`${ri}-rtl`]:{direction:"rtl",[`${ri}-nav`]:{[`${ri}-tab`]:{margin:{_skip_check_:!0,value:is},[`${ri}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Jr]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,dr.bf)(Kr.marginSM)}},[`${ri}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,dr.bf)(Kr.marginXS)},marginLeft:{_skip_check_:!0,value:(0,dr.bf)(Br(Kr.marginXXS).mul(-1).equal())},[Jr]:{margin:0}}}},[`&${ri}-left`]:{[`> ${ri}-nav`]:{order:1},[`> ${ri}-content-holder`]:{order:0}},[`&${ri}-right`]:{[`> ${ri}-nav`]:{order:0},[`> ${ri}-content-holder`]:{order:1}},[`&${ri}-card${ri}-top, &${ri}-card${ri}-bottom`]:{[`> ${ri}-nav, > div > ${ri}-nav`]:{[`${ri}-tab + ${ri}-tab`]:{marginRight:{_skip_check_:!0,value:_n},marginLeft:{_skip_check_:!0,value:0}}}}},[`${ri}-dropdown-rtl`]:{direction:"rtl"},[`${ri}-menu-item`]:{[`${ri}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},gi=Kr=>{const{componentCls:ri,tabsCardPadding:is,cardHeight:Jr,cardGutter:_n,itemHoverColor:Br,itemActiveColor:es,colorBorderSecondary:ko}=Kr;return{[ri]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Xt.Wf)(Kr)),{display:"flex",[`> ${ri}-nav, > div > ${ri}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${ri}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${Kr.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${ri}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Kr.motionDurationSlow}`},[`${ri}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${ri}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${ri}-nav-more`]:{position:"relative",padding:is,background:"transparent",border:0,color:Kr.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Kr.calc(Kr.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${ri}-nav-add`]:Object.assign({minWidth:Jr,marginLeft:{_skip_check_:!0,value:_n},padding:`0 ${(0,dr.bf)(Kr.paddingXS)}`,background:"transparent",border:`${(0,dr.bf)(Kr.lineWidth)} ${Kr.lineType} ${ko}`,borderRadius:`${(0,dr.bf)(Kr.borderRadiusLG)} ${(0,dr.bf)(Kr.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:Kr.colorText,transition:`all ${Kr.motionDurationSlow} ${Kr.motionEaseInOut}`,"&:hover":{color:Br},"&:active, &:focus:not(:focus-visible)":{color:es}},(0,Xt.Qy)(Kr))},[`${ri}-extra-content`]:{flex:"none"},[`${ri}-ink-bar`]:{position:"absolute",background:Kr.inkBarColor,pointerEvents:"none"}}),Hr(Kr)),{[`${ri}-content`]:{position:"relative",width:"100%"},[`${ri}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${ri}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${ri}-centered`]:{[`> ${ri}-nav, > div > ${ri}-nav`]:{[`${ri}-nav-wrap`]:{[`&:not([class*='${ri}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},mi=Kr=>{const ri=Kr.controlHeightLG;return{zIndexPopup:Kr.zIndexPopupBase+50,cardBg:Kr.colorFillAlter,cardHeight:ri,cardPadding:`${(ri-Math.round(Kr.fontSize*Kr.lineHeight))/2-Kr.lineWidth}px ${Kr.padding}px`,cardPaddingSM:`${Kr.paddingXXS*1.5}px ${Kr.padding}px`,cardPaddingLG:`${Kr.paddingXS}px ${Kr.padding}px ${Kr.paddingXXS*1.5}px`,titleFontSize:Kr.fontSize,titleFontSizeLG:Kr.fontSizeLG,titleFontSizeSM:Kr.fontSize,inkBarColor:Kr.colorPrimary,horizontalMargin:`0 0 ${Kr.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Kr.paddingSM}px 0`,horizontalItemPaddingSM:`${Kr.paddingXS}px 0`,horizontalItemPaddingLG:`${Kr.padding}px 0`,verticalItemPadding:`${Kr.paddingXS}px ${Kr.paddingLG}px`,verticalItemMargin:`${Kr.margin}px 0 0 0`,itemColor:Kr.colorText,itemSelectedColor:Kr.colorPrimary,itemHoverColor:Kr.colorPrimaryHover,itemActiveColor:Kr.colorPrimaryActive,cardGutter:Kr.marginXXS/2}};var Bi=(0,Cn.I$)("Tabs",Kr=>{const ri=(0,er.TS)(Kr,{tabsCardPadding:Kr.cardPadding,dropdownEdgeChildVerticalPadding:Kr.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,dr.bf)(Kr.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,dr.bf)(Kr.horizontalItemGutter)}`});return[vi(ri),di(ri),qr(ri),nr(ri),Xn(ri),gi(ri),An(ri)]},mi),zr=_(20170),Qi=()=>null,rs=function(Kr,ri){var is={};for(var Jr in Kr)Object.prototype.hasOwnProperty.call(Kr,Jr)&&ri.indexOf(Jr)<0&&(is[Jr]=Kr[Jr]);if(Kr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _n=0,Jr=Object.getOwnPropertySymbols(Kr);_n{const{type:ri,className:is,rootClassName:Jr,size:_n,onEdit:Br,hideAdd:es,centered:ko,addIcon:vs,popupClassName:Ba,children:uo,items:ca,animated:ll,style:Ti,indicatorSize:Li}=Kr,eo=rs(Kr,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Eo,moreIcon:hs=v.createElement(w.Z,null)}=eo,{direction:Wn,tabs:yo,getPrefixCls:Qo,getPopupContainer:os}=v.useContext(bo.E_),Ko=Qo("tabs",Eo),Yn=(0,zr.Z)(Ko),[kr,Gr]=Bi(Ko,Yn);let je;ri==="editable-card"&&(je={onEdit:(ln,sr)=>{let{key:Zr,event:Ui}=sr;Br==null||Br(ln==="add"?Ui:Zr,ln)},removeIcon:v.createElement(R.Z,null),addIcon:vs||v.createElement(M,null),showAdd:es!==!0});const ut=Qo(),ht=Dr(ca,uo),Ue=Zt(Ko,ll),ft=(0,xn.Z)(_n),Pt=Object.assign(Object.assign({},yo==null?void 0:yo.style),Ti);return kr(v.createElement(Ji,Object.assign({direction:Wn,getPopupContainer:os,moreTransitionName:`${ut}-slide-up`},eo,{items:ht,className:g()({[`${Ko}-${ft}`]:ft,[`${Ko}-card`]:["card","editable-card"].includes(ri),[`${Ko}-editable-card`]:ri==="editable-card",[`${Ko}-centered`]:ko},yo==null?void 0:yo.className,is,Jr,Gr,Yn),popupClassName:g()(Ba,Gr,Yn),style:Pt,editable:je,moreIcon:hs,prefixCls:Ko,animated:Ue,indicatorSize:Li!=null?Li:yo==null?void 0:yo.indicatorSize})))};Ur.TabPane=Qi;var gs=Ur},49059:function(_t,Y,_){"use strict";_.d(Y,{Mj:function(){return k},uH:function(){return B},u_:function(){return V}});var v=_(77617),R=_(36646),w=_(70052),b=_(70825);const B=(0,R.jG)(w.Z),V={token:b.Z,override:{override:b.Z},hashed:!0},k=v.createContext(V)},3383:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return Pe}});var v=_(36646),R=_(70052),w=_(70825),b=_(70043),V=De=>{const Ae=De!=null&&De.algorithm?(0,v.jG)(De.algorithm):(0,v.jG)(R.Z),Re=Object.assign(Object.assign({},w.Z),De==null?void 0:De.token);return(0,v.t2)(Re,{override:De==null?void 0:De.token},Ae,b.Z)},k=_(57947),M=_(49059),C=_(62060);function g(De){const{sizeUnit:Ae,sizeStep:Re}=De,$e=Re-2;return{sizeXXL:Ae*($e+10),sizeXL:Ae*($e+6),sizeLG:Ae*($e+2),sizeMD:Ae*($e+2),sizeMS:Ae*($e+1),size:Ae*$e,sizeSM:Ae*$e,sizeXS:Ae*($e-1),sizeXXS:Ae*($e-1)}}var A=_(39601),K=(De,Ae)=>{const Re=Ae!=null?Ae:(0,R.Z)(De),$e=Re.fontSizeSM,Ie=Re.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Re),g(Ae!=null?Ae:De)),(0,A.Z)($e)),{controlHeight:Ie}),(0,C.Z)(Object.assign(Object.assign({},Re),{controlHeight:Ie})))},ce=_(63511),de=_(48254),ve=_(64993);const Ee=(De,Ae)=>new ve.C(De).setAlpha(Ae).toRgbString(),_e=(De,Ae)=>new ve.C(De).lighten(Ae).toHexString(),we=De=>{const Ae=(0,ce.R_)(De,{theme:"dark"});return{1:Ae[0],2:Ae[1],3:Ae[2],4:Ae[3],5:Ae[6],6:Ae[5],7:Ae[4],8:Ae[6],9:Ae[5],10:Ae[4]}},ot=(De,Ae)=>{const Re=De||"#000",$e=Ae||"#fff";return{colorBgBase:Re,colorTextBase:$e,colorText:Ee($e,.85),colorTextSecondary:Ee($e,.65),colorTextTertiary:Ee($e,.45),colorTextQuaternary:Ee($e,.25),colorFill:Ee($e,.18),colorFillSecondary:Ee($e,.12),colorFillTertiary:Ee($e,.08),colorFillQuaternary:Ee($e,.04),colorBgElevated:_e(Re,12),colorBgContainer:_e(Re,8),colorBgLayout:_e(Re,0),colorBgSpotlight:_e(Re,26),colorBgBlur:Ee($e,.04),colorBorder:_e(Re,26),colorBorderSecondary:_e(Re,19)}};var vt=(De,Ae)=>{const Re=Object.keys(w.M).map(Ie=>{const Xe=(0,ce.R_)(De[Ie],{theme:"dark"});return new Array(10).fill(1).reduce((ze,Kt,St)=>(ze[`${Ie}-${St+1}`]=Xe[St],ze[`${Ie}${St+1}`]=Xe[St],ze),{})}).reduce((Ie,Xe)=>(Ie=Object.assign(Object.assign({},Ie),Xe),Ie),{}),$e=Ae!=null?Ae:(0,R.Z)(De);return Object.assign(Object.assign(Object.assign({},$e),Re),(0,de.Z)(De,{generateColorPalettes:we,generateNeutralColorPalettes:ot}))};function dt(){const[De,Ae,Re]=(0,k.ZP)();return{theme:De,token:Ae,hashId:Re}}var Pe={defaultConfig:M.u_,defaultSeed:M.u_.token,useToken:dt,defaultAlgorithm:R.Z,darkAlgorithm:vt,compactAlgorithm:K,getDesignToken:V}},65341:function(_t,Y,_){"use strict";_.d(Y,{i:function(){return v}});const v=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},70052:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return de}});var v=_(63511),R=_(62060);function w(ve){const{sizeUnit:Ee,sizeStep:_e}=ve;return{sizeXXL:Ee*(_e+8),sizeXL:Ee*(_e+4),sizeLG:Ee*(_e+2),sizeMD:Ee*(_e+1),sizeMS:Ee*_e,size:Ee*_e,sizeSM:Ee*(_e-1),sizeXS:Ee*(_e-2),sizeXXS:Ee*(_e-3)}}var b=_(70825),B=_(48254),k=ve=>{let Ee=ve,_e=ve,we=ve,ot=ve;return ve<6&&ve>=5?Ee=ve+1:ve<16&&ve>=6?Ee=ve+2:ve>=16&&(Ee=16),ve<7&&ve>=5?_e=4:ve<8&&ve>=7?_e=5:ve<14&&ve>=8?_e=6:ve<16&&ve>=14?_e=7:ve>=16&&(_e=8),ve<6&&ve>=2?we=1:ve>=6&&(we=2),ve>4&&ve<8?ot=4:ve>=8&&(ot=6),{borderRadius:ve,borderRadiusXS:we,borderRadiusSM:_e,borderRadiusLG:Ee,borderRadiusOuter:ot}};function M(ve){const{motionUnit:Ee,motionBase:_e,borderRadius:we,lineWidth:ot}=ve;return Object.assign({motionDurationFast:`${(_e+Ee).toFixed(1)}s`,motionDurationMid:`${(_e+Ee*2).toFixed(1)}s`,motionDurationSlow:`${(_e+Ee*3).toFixed(1)}s`,lineWidthBold:ot+1},k(we))}var C=_(64993);const g=(ve,Ee)=>new C.C(ve).setAlpha(Ee).toRgbString(),A=(ve,Ee)=>new C.C(ve).darken(Ee).toHexString(),O=ve=>{const Ee=(0,v.R_)(ve);return{1:Ee[0],2:Ee[1],3:Ee[2],4:Ee[3],5:Ee[4],6:Ee[5],7:Ee[6],8:Ee[4],9:Ee[5],10:Ee[6]}},K=(ve,Ee)=>{const _e=ve||"#fff",we=Ee||"#000";return{colorBgBase:_e,colorTextBase:we,colorText:g(we,.88),colorTextSecondary:g(we,.65),colorTextTertiary:g(we,.45),colorTextQuaternary:g(we,.25),colorFill:g(we,.15),colorFillSecondary:g(we,.06),colorFillTertiary:g(we,.04),colorFillQuaternary:g(we,.02),colorBgLayout:A(_e,4),colorBgContainer:A(_e,0),colorBgElevated:A(_e,0),colorBgSpotlight:g(we,.85),colorBgBlur:"transparent",colorBorder:A(_e,15),colorBorderSecondary:A(_e,6)}};var ce=_(39601);function de(ve){const Ee=Object.keys(b.M).map(_e=>{const we=(0,v.R_)(ve[_e]);return new Array(10).fill(1).reduce((ot,He,vt)=>(ot[`${_e}-${vt+1}`]=we[vt],ot[`${_e}${vt+1}`]=we[vt],ot),{})}).reduce((_e,we)=>(_e=Object.assign(Object.assign({},_e),we),_e),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ve),Ee),(0,B.Z)(ve,{generateColorPalettes:O,generateNeutralColorPalettes:K})),(0,ce.Z)(ve.fontSize)),w(ve)),(0,R.Z)(ve)),M(ve))}},70825:function(_t,Y,_){"use strict";_.d(Y,{M:function(){return v}});const v={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},R=Object.assign(Object.assign({},v),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + `]:{[rt]:{marginBlock:(0,yc.bf)(Er(Vt).mul(-1).equal()),marginInline:`${(0,yc.bf)(Er(Fn).sub(Jt).equal())} + ${(0,yc.bf)(Er(Jt).mul(-1).equal())}`,[`${rt}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Gi,fontWeight:Ft,textAlign:"start",background:Vr,borderBottom:jr,transition:`background ${jn} ease`}}},[`${rt}-footer`]:{padding:`${(0,yc.bf)(Vt)} ${(0,yc.bf)(Jt)}`,color:Lr,background:Mn}})}},jt=Ye=>{const{colorFillAlter:rt,colorBgContainer:Ft,colorTextHeading:Vt,colorFillSecondary:Jt,colorFillContent:Fn,controlItemBgActive:_r,controlItemBgActiveHover:Yn,padding:gr,paddingSM:xr,paddingXS:Yr,colorBorderSecondary:Br,borderRadiusLG:Gi,controlHeight:jn,colorTextPlaceholder:Vr,fontSize:cr,fontSizeSM:Lr,lineHeight:Mn,lineWidth:Er,colorIcon:jr,colorIconHover:fi,opacityLoading:ai,controlInteractiveSize:bi}=Ye,Hi=new Lg.C(Jt).onBackground(Ft).toHexShortString(),Zo=new Lg.C(Fn).onBackground(Ft).toHexShortString(),mo=new Lg.C(rt).onBackground(Ft).toHexShortString(),No=new Lg.C(jr),ws=new Lg.C(fi),Ji=bi/2-Er,Ss=Ji*2+Er*3;return{headerBg:mo,headerColor:Vt,headerSortActiveBg:Hi,headerSortHoverBg:Zo,bodySortBg:mo,rowHoverBg:mo,rowSelectedBg:_r,rowSelectedHoverBg:Yn,rowExpandedBg:rt,cellPaddingBlock:gr,cellPaddingInline:gr,cellPaddingBlockMD:xr,cellPaddingInlineMD:Yr,cellPaddingBlockSM:Yr,cellPaddingInlineSM:Yr,borderColor:Br,headerBorderRadius:Gi,footerBg:mo,footerColor:Vt,cellFontSize:cr,cellFontSizeMD:cr,cellFontSizeSM:cr,headerSplitColor:Br,fixedHeaderSortActiveBg:Hi,headerFilterHoverBg:Fn,filterDropdownMenuBg:Ft,filterDropdownBg:Ft,expandIconBg:Ft,selectionColumnWidth:jn,stickyScrollBarBg:Vr,stickyScrollBarBorderRadius:100,expandIconMarginTop:(cr*Mn-Er*3)/2-Math.ceil((Lr*1.4-Er*3)/2),headerIconColor:No.clone().setAlpha(No.getAlpha()*ai).toRgbString(),headerIconHoverColor:ws.clone().setAlpha(ws.getAlpha()*ai).toRgbString(),expandIconHalfInner:Ji,expandIconSize:Ss,expandIconScale:bi/Ss}};var sn=(0,yf.I$)("Table",Ye=>{const{colorTextHeading:rt,colorSplit:Ft,colorBgContainer:Vt,controlInteractiveSize:Jt,headerBg:Fn,headerColor:_r,headerSortActiveBg:Yn,headerSortHoverBg:gr,bodySortBg:xr,rowHoverBg:Yr,rowSelectedBg:Br,rowSelectedHoverBg:Gi,rowExpandedBg:jn,cellPaddingBlock:Vr,cellPaddingInline:cr,cellPaddingBlockMD:Lr,cellPaddingInlineMD:Mn,cellPaddingBlockSM:Er,cellPaddingInlineSM:jr,borderColor:fi,footerBg:ai,footerColor:bi,headerBorderRadius:Hi,cellFontSize:Zo,cellFontSizeMD:mo,cellFontSizeSM:No,headerSplitColor:ws,fixedHeaderSortActiveBg:Ji,headerFilterHoverBg:Ss,filterDropdownBg:lo,expandIconBg:$i,selectionColumnWidth:wa,stickyScrollBarBg:ha,calc:Gs}=Ye,qt=2,ar=(0,Mf.TS)(Ye,{tableFontSize:Zo,tableBg:Vt,tableRadius:Hi,tablePaddingVertical:Vr,tablePaddingHorizontal:cr,tablePaddingVerticalMiddle:Lr,tablePaddingHorizontalMiddle:Mn,tablePaddingVerticalSmall:Er,tablePaddingHorizontalSmall:jr,tableBorderColor:fi,tableHeaderTextColor:_r,tableHeaderBg:Fn,tableFooterTextColor:bi,tableFooterBg:ai,tableHeaderCellSplitColor:ws,tableHeaderSortBg:Yn,tableHeaderSortHoverBg:gr,tableBodySortBg:xr,tableFixedHeaderSortActiveBg:Ji,tableHeaderFilterActiveBg:Ss,tableFilterDropdownBg:lo,tableRowHoverBg:Yr,tableSelectedRowBg:Br,tableSelectedRowHoverBg:Gi,zIndexTableFixed:qt,zIndexTableSticky:qt+1,tableFontSizeMiddle:mo,tableFontSizeSmall:No,tableSelectionColumnWidth:wa,tableExpandIconBg:$i,tableExpandColumnWidth:Gs(Jt).add(Gs(Ye.padding).mul(2)).equal(),tableExpandedRowBg:jn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ha,tableScrollThumbBgHover:rt,tableScrollBg:Ft});return[gt(ar),Nd(ar),At(ar),pg(ar),Tm(ar),zg(ar),gm(ar),K0(ar),At(ar),ip(ar),Zp(ar),S0(ar),ee(ar),Mg(ar),zm(ar),Bm(ar),xt(ar)]},jt,{unitless:{expandIconScale:!0}});const rn=[],fn=(Ye,rt)=>{const{prefixCls:Ft,className:Vt,rootClassName:Jt,style:Fn,size:_r,bordered:Yn,dropdownPrefixCls:gr,dataSource:xr,pagination:Yr,rowSelection:Br,rowKey:Gi="key",rowClassName:jn,columns:Vr,children:cr,childrenColumnName:Lr,onChange:Mn,getPopupContainer:Er,loading:jr,expandIcon:fi,expandable:ai,expandedRowRender:bi,expandIconColumnIndex:Hi,indentSize:Zo,scroll:mo,sortDirections:No,locale:ws,showSorterTooltip:Ji=!0,virtual:Ss}=Ye,lo=(0,_o.ln)("Table"),$i=v.useMemo(()=>Vr||mi(cr),[Vr,cr]),wa=v.useMemo(()=>$i.some(os=>os.responsive),[$i]),ha=(0,ju.Z)(wa),Gs=v.useMemo(()=>{const os=new Set(Object.keys(ha).filter(ua=>ha[ua]));return $i.filter(ua=>!ua.responsive||ua.responsive.some(Go=>os.has(Go)))},[$i,ha]),qt=(0,Sl.Z)(Ye,["className","style","columns"]),{locale:ar=uc.Z,direction:oi,table:ms,renderEmpty:Ls,getPrefixCls:Aa,getPopupContainer:no}=v.useContext(ga.E_),uo=(0,ac.Z)(_r),Ro=Object.assign(Object.assign({},ar.Table),ws),Qs=xr||rn,ra=Aa("table",Ft),Ke=Aa("dropdown",gr),[,Sa]=(0,pp.ZP)(),dl=(0,Js.Z)(ra),[Ul,Ks]=sn(ra,dl),ma=Object.assign({childrenColumnName:Lr,expandIconColumnIndex:Hi},ai),{childrenColumnName:ul="children"}=ma,Xs=v.useMemo(()=>Qs.some(os=>os==null?void 0:os[ul])?"nest":bi||ai&&ai.expandedRowRender?"row":null,[Qs]),so={body:v.useRef()},la=Wh(ra),ts=v.useRef(null),Ea=v.useRef(null);Md(rt,()=>Object.assign(Object.assign({},Ea.current),{nativeElement:ts.current}));const Va=v.useMemo(()=>typeof Gi=="function"?Gi:os=>os==null?void 0:os[Gi],[Gi]),[Nl]=wc(Qs,ul,Va),ja={},vi=function(os,ua){let Go=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var nl,Zs,Zi;const Io=Object.assign(Object.assign({},ja),os);Go&&((nl=ja.resetPagination)===null||nl===void 0||nl.call(ja),!((Zs=Io.pagination)===null||Zs===void 0)&&Zs.current&&(Io.pagination.current=1),Yr&&Yr.onChange&&Yr.onChange(1,(Zi=Io.pagination)===null||Zi===void 0?void 0:Zi.pageSize)),mo&&mo.scrollToFirstRowOnChange!==!1&&so.body.current&&ml(0,{getContainer:()=>so.body.current}),Mn==null||Mn(Io.pagination,Io.filters,Io.sorter,{currentDataSource:bc(u0(Qs,Io.sorterStates,ul),Io.filterStates),action:ua})},cs=(os,ua)=>{vi({sorter:os,sorterStates:ua},"sort",!1)},[da,Ja,vu,Cu]=x0({prefixCls:ra,mergedColumns:Gs,onSorterChange:cs,sortDirections:No||["ascend","descend"],tableLocale:Ro,showSorterTooltip:Ji}),Ba=v.useMemo(()=>u0(Qs,Ja,ul),[Qs,Ja]);ja.sorter=Cu(),ja.sorterStates=Ja;const Sc=(os,ua)=>{vi({filters:os,filterStates:ua},"filter",!0)},[Ml,Wc,Su]=od({prefixCls:ra,locale:Ro,dropdownPrefixCls:Ke,mergedColumns:Gs,onFilterChange:Sc,getPopupContainer:Er||no,rootClassName:Be()(Jt,dl)}),Zc=bc(Ba,Wc);ja.filters=Su,ja.filterStates=Wc;const hu=v.useMemo(()=>{const os={};return Object.keys(Su).forEach(ua=>{Su[ua]!==null&&(os[ua]=Su[ua])}),Object.assign(Object.assign({},vu),{filters:os})},[vu,Su]),[Kh]=um(hu),kc=(os,ua)=>{vi({pagination:Object.assign(Object.assign({},ja.pagination),{current:os,pageSize:ua})},"paginate")},[Ec,Ac]=Hg(Zc.length,kc,Yr);ja.pagination=Yr===!1?{}:Fg(Ec,Yr),ja.resetPagination=Ac;const Fl=v.useMemo(()=>{if(Yr===!1||!Ec.pageSize)return Zc;const{current:os=1,total:ua,pageSize:Go=Oo}=Ec;return Zc.lengthGo?Zc.slice((os-1)*Go,os*Go):Zc:Zc.slice((os-1)*Go,os*Go)},[!!Yr,Zc,Ec&&Ec.current,Ec&&Ec.pageSize,Ec&&Ec.total]),[kd,sf]=_d({prefixCls:ra,data:Zc,pageData:Fl,getRowKey:Va,getRecordByKey:Nl,expandType:Xs,childrenColumnName:ul,locale:Ro,getPopupContainer:Er||no},Br),th=(os,ua,Go)=>{let nl;return typeof jn=="function"?nl=Be()(jn(os,ua,Go)):nl=Be()(jn),Be()({[`${ra}-row-selected`]:sf.has(Va(os,ua))},nl)};ma.__PARENT_RENDER_ICON__=ma.expandIcon,ma.expandIcon=ma.expandIcon||fi||hp(Ro),Xs==="nest"&&ma.expandIconColumnIndex===void 0?ma.expandIconColumnIndex=Br?1:0:ma.expandIconColumnIndex>0&&Br&&(ma.expandIconColumnIndex-=1),typeof ma.indentSize!="number"&&(ma.indentSize=typeof Zo=="number"?Zo:15);const je=v.useCallback(os=>Kh(kd(Ml(da(os)))),[da,Ml,kd]);let Ge,_t;if(Yr!==!1&&(Ec!=null&&Ec.total)){let os;Ec.size?os=Ec.size:os=uo==="small"||uo==="middle"?"small":void 0;const ua=Zs=>v.createElement(gp,Object.assign({},Ec,{className:Be()(`${ra}-pagination ${ra}-pagination-${Zs}`,Ec.className),size:os})),Go=oi==="rtl"?"left":"right",{position:nl}=Ec;if(nl!==null&&Array.isArray(nl)){const Zs=nl.find(Us=>Us.includes("top")),Zi=nl.find(Us=>Us.includes("bottom")),Io=nl.every(Us=>`${Us}`=="none");!Zs&&!Zi&&!Io&&(_t=ua(Go)),Zs&&(Ge=ua(Zs.toLowerCase().replace("top",""))),Zi&&(_t=ua(Zi.toLowerCase().replace("bottom","")))}else _t=ua(Go)}let Rt;typeof jr=="boolean"?Rt={spinning:jr}:typeof jr=="object"&&(Rt=Object.assign({spinning:!0},jr));const tr=Be()(dl,`${ra}-wrapper`,ms==null?void 0:ms.className,{[`${ra}-wrapper-rtl`]:oi==="rtl"},Vt,Jt,Ks),zi=Object.assign(Object.assign({},ms==null?void 0:ms.style),Fn),Ho=ws&&ws.emptyText||(Ls==null?void 0:Ls("Table"))||v.createElement(ou.Z,{componentName:"Table"}),Jo=Ss?w0:_m,Pa={},Ti=v.useMemo(()=>{const{fontSize:os,lineHeight:ua,padding:Go,paddingXS:nl,paddingSM:Zs}=Sa,Zi=Math.floor(os*ua);switch(uo){case"large":return Go*2+Zi;case"small":return nl*2+Zi;default:return Zs*2+Zi}},[Sa,uo]);return Ss&&(Pa.listItemHeight=Ti),Ul(v.createElement("div",{ref:ts,className:tr,style:zi},v.createElement(Tg.Z,Object.assign({spinning:!1},Rt),Ge,v.createElement(Jo,Object.assign({},Pa,qt,{ref:Ea,columns:Gs,direction:oi,expandable:ma,prefixCls:ra,className:Be()({[`${ra}-middle`]:uo==="middle",[`${ra}-small`]:uo==="small",[`${ra}-bordered`]:Yn,[`${ra}-empty`]:Qs.length===0},dl,Ks),data:Fl,rowKey:Va,rowClassName:th,emptyText:Ho,internalHooks:w,internalRefs:so,transformColumns:je,getContainerWidth:la})),_t)))};var Rn=v.forwardRef(fn);const Gn=(Ye,rt)=>{const Ft=v.useRef(0);return Ft.current+=1,v.createElement(Rn,Object.assign({},Ye,{ref:rt,_renderTimes:Ft.current}))},ur=v.forwardRef(Gn);ur.SELECTION_COLUMN=Th,ur.EXPAND_COLUMN=P,ur.SELECTION_ALL=Gd,ur.SELECTION_INVERT=yd,ur.SELECTION_NONE=Mc,ur.Column=lh,ur.ColumnGroup=ru,ur.Summary=Pn;var Fr=ur,ri=Fr},11568:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return gs}});var v=y(67294),P=y(62208),w=y(35872),b=y(87462),B=y(42110),V=y(93771),k=function(ni,is){return v.createElement(V.Z,(0,b.Z)({},ni,{ref:is,icon:B.Z}))},R=v.forwardRef(k),C=y(94184),g=y.n(C),A=y(4942),O=y(1413),K=y(97685),he=y(71002),ae=y(91),fe=y(21770),xe=y(31131),ye=y(80334);function be(){var Gr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},ni;return Gr===!1?ni={inkBar:!1,tabPane:!1}:Gr===!0?ni={inkBar:!0,tabPane:!1}:ni=(0,O.Z)({inkBar:!0},(0,he.Z)(Gr)==="object"?Gr:{}),ni.tabPaneMotion&&ni.tabPane===void 0&&(ni.tabPane=!0),!ni.tabPaneMotion&&ni.tabPane&&(ni.tabPane=!1),ni}var Qe=(0,v.createContext)(null),Ve=y(74902),pt=y(48555),st=y(66680),Ae=y(42550),De=y(75164),Te=function(ni){var is=ni.activeTabOffset,Jr=ni.horizontal,bn=ni.rtl,Or=ni.indicatorSize,qo=(0,v.useState)(),Mo=(0,K.Z)(qo,2),vs=Mo[0],Na=Mo[1],ho=(0,v.useRef)(),aa=function(Pi){return typeof Or=="function"?Or(Pi):typeof Or=="number"?Or:Pi};function Ka(){De.Z.cancel(ho.current)}return(0,v.useEffect)(function(){var Si={};return is&&(Jr?(bn?(Si.right=is.right+is.width/2,Si.transform="translateX(50%)"):(Si.left=is.left+is.width/2,Si.transform="translateX(-50%)"),Si.width=aa(is.width)):(Si.top=is.top+is.height/2,Si.transform="translateY(-50%)",Si.height=aa(is.height))),Ka(),ho.current=(0,De.Z)(function(){Na(Si)}),Ka},[is,Jr,bn,Or]),{style:vs}},Me=Te,Ue={width:0,height:0,left:0,top:0};function Pe(Gr,ni,is){return(0,v.useMemo)(function(){for(var Jr,bn=new Map,Or=ni.get((Jr=Gr[0])===null||Jr===void 0?void 0:Jr.key)||Ue,qo=Or.left+Or.width,Mo=0;Moft?(dt=Ze,Ko.current="x"):(dt=ht,Ko.current="y"),ni(-dt,-dt)&&Xr.preventDefault()}var Rr=(0,v.useRef)(null);Rr.current={onTouchStart:yo,onTouchMove:Qo,onTouchEnd:ss,onWheel:Xn},v.useEffect(function(){function Xr($e){Rr.current.onTouchStart($e)}function Ze($e){Rr.current.onTouchMove($e)}function ht($e){Rr.current.onTouchEnd($e)}function dt($e){Rr.current.onWheel($e)}return document.addEventListener("touchmove",Ze,{passive:!1}),document.addEventListener("touchend",ht,{passive:!1}),Gr.current.addEventListener("touchstart",Xr,{passive:!1}),Gr.current.addEventListener("wheel",dt),function(){document.removeEventListener("touchmove",Ze),document.removeEventListener("touchend",ht)}},[])}var lt=y(8410);function Kt(Gr){var ni=(0,v.useState)(0),is=(0,K.Z)(ni,2),Jr=is[0],bn=is[1],Or=(0,v.useRef)(0),qo=(0,v.useRef)();return qo.current=Gr,(0,lt.o)(function(){var Mo;(Mo=qo.current)===null||Mo===void 0||Mo.call(qo)},[Jr]),function(){Or.current===Jr&&(Or.current+=1,bn(Or.current))}}function Mt(Gr){var ni=(0,v.useRef)([]),is=(0,v.useState)({}),Jr=(0,K.Z)(is,2),bn=Jr[1],Or=(0,v.useRef)(typeof Gr=="function"?Gr():Gr),qo=Kt(function(){var vs=Or.current;ni.current.forEach(function(Na){vs=Na(vs)}),ni.current=[],Or.current=vs,bn({})});function Mo(vs){ni.current.push(vs),qo()}return[Or.current,Mo]}var hn={width:0,height:0,left:0,top:0,right:0};function un(Gr,ni,is,Jr,bn,Or,qo){var Mo=qo.tabs,vs=qo.tabPosition,Na=qo.rtl,ho,aa,Ka;return["top","bottom"].includes(vs)?(ho="width",aa=Na?"right":"left",Ka=Math.abs(is)):(ho="height",aa="top",Ka=-is),(0,v.useMemo)(function(){if(!Mo.length)return[0,0];for(var Si=Mo.length,Pi=Si,to=0;toKa+ni){Pi=to-1;break}}for(var ps=0,Wn=Si-1;Wn>=0;Wn-=1){var yo=Gr.get(Mo[Wn].key)||hn;if(yo[aa]=Pi?[0,0]:[ps,Pi]},[Gr,ni,Jr,bn,Or,Ka,vs,Mo.map(function(Si){return Si.key}).join("_"),Na])}function Sr(Gr){var ni;return Gr instanceof Map?(ni={},Gr.forEach(function(is,Jr){ni[Jr]=is})):ni=Gr,JSON.stringify(ni)}var ii="TABS_DQ";function Ii(Gr){return String(Gr).replace(/"/g,ii)}function Ni(Gr,ni,is,Jr){return!(!is||Jr||Gr===!1||Gr===void 0&&(ni===!1||ni===null))}var eo=v.forwardRef(function(Gr,ni){var is=Gr.prefixCls,Jr=Gr.editable,bn=Gr.locale,Or=Gr.style;return!Jr||Jr.showAdd===!1?null:v.createElement("button",{ref:ni,type:"button",className:"".concat(is,"-nav-add"),style:Or,"aria-label":(bn==null?void 0:bn.addAriaLabel)||"Add tab",onClick:function(Mo){Jr.onEdit("add",{event:Mo})}},Jr.addIcon||"+")}),ti=eo,Is=v.forwardRef(function(Gr,ni){var is=Gr.position,Jr=Gr.prefixCls,bn=Gr.extra;if(!bn)return null;var Or,qo={};return(0,he.Z)(bn)==="object"&&!v.isValidElement(bn)?qo=bn:qo.right=bn,is==="right"&&(Or=qo.right),is==="left"&&(Or=qo.left),Or?v.createElement("div",{className:"".concat(Jr,"-extra-content"),ref:ni},Or):null}),Ns=Is,Se=y(29171),Xi=y(72512),Yi=y(15105),fo=v.forwardRef(function(Gr,ni){var is=Gr.prefixCls,Jr=Gr.id,bn=Gr.tabs,Or=Gr.locale,qo=Gr.mobile,Mo=Gr.moreIcon,vs=Mo===void 0?"More":Mo,Na=Gr.moreTransitionName,ho=Gr.style,aa=Gr.className,Ka=Gr.editable,Si=Gr.tabBarGutter,Pi=Gr.rtl,to=Gr.removeAriaLabel,So=Gr.onTabClick,ps=Gr.getPopupContainer,Wn=Gr.popupClassName,yo=(0,v.useState)(!1),Qo=(0,K.Z)(yo,2),ss=Qo[0],Ko=Qo[1],Xn=(0,v.useState)(null),Rr=(0,K.Z)(Xn,2),Xr=Rr[0],Ze=Rr[1],ht="".concat(Jr,"-more-popup"),dt="".concat(is,"-dropdown"),$e=Xr!==null?"".concat(ht,"-").concat(Xr):null,ft=Or==null?void 0:Or.dropdownAriaLabel;function Lt(zs,Ps){zs.preventDefault(),zs.stopPropagation(),Ka.onEdit("remove",{key:Ps,event:zs})}var gn=v.createElement(Xi.ZP,{onClick:function(Ps){var Ms=Ps.key,ks=Ps.domEvent;So(Ms,ks),Ko(!1)},prefixCls:"".concat(dt,"-menu"),id:ht,tabIndex:-1,role:"listbox","aria-activedescendant":$e,selectedKeys:[Xr],"aria-label":ft!==void 0?ft:"expanded dropdown"},bn.map(function(zs){var Ps=zs.closable,Ms=zs.disabled,ks=zs.closeIcon,ko=zs.key,As=zs.label,ia=Ni(Ps,ks,Ka,Ms);return v.createElement(Xi.sN,{key:ko,id:"".concat(ht,"-").concat(ko),role:"option","aria-controls":Jr&&"".concat(Jr,"-panel-").concat(ko),disabled:Ms},v.createElement("span",null,As),ia&&v.createElement("button",{type:"button","aria-label":to||"remove",tabIndex:0,className:"".concat(dt,"-menu-item-remove"),onClick:function(Zl){Zl.stopPropagation(),Lt(Zl,ko)}},ks||Ka.removeIcon||"\xD7"))}));function rr(zs){for(var Ps=bn.filter(function(ia){return!ia.disabled}),Ms=Ps.findIndex(function(ia){return ia.key===Xr})||0,ks=Ps.length,ko=0;koMc?"left":"right"})}),ft=(0,K.Z)($e,2),Lt=ft[0],gn=ft[1],rr=Xe(0,function(yd,Mc){!dt&&So&&So({direction:yd>Mc?"top":"bottom"})}),zr=(0,K.Z)(rr,2),Fi=zr[0],xo=zr[1],Vi=(0,v.useState)([0,0]),zs=(0,K.Z)(Vi,2),Ps=zs[0],Ms=zs[1],ks=(0,v.useState)([0,0]),ko=(0,K.Z)(ks,2),As=ko[0],ia=ko[1],za=(0,v.useState)([0,0]),Zl=(0,K.Z)(za,2),Hl=Zl[0],fs=Zl[1],js=(0,v.useState)([0,0]),hl=(0,K.Z)(js,2),Xo=hl[0],Li=hl[1],Yo=Mt(new Map),Os=(0,K.Z)(Yo,2),Cs=Os[0],ba=Os[1],Yu=Pe(Qo,Cs,As[0]),pc=Ht(Ps,dt),Hu=Ht(As,dt),wh=Ht(Hl,dt),lh=Ht(Xo,dt),fu=pcer?er:yd}var Wr=(0,v.useRef)(null),Qr=(0,v.useState)(),_o=(0,K.Z)(Qr,2),us=_o[0],es=_o[1];function Ma(){es(Date.now())}function ga(){Wr.current&&clearTimeout(Wr.current)}wt(Rr,function(yd,Mc){function Kd(Vf,jf){Vf(function(_d){var Qd=Un(_d+jf);return Qd})}return fu?(dt?Kd(gn,yd):Kd(xo,Mc),ga(),Ma(),!0):!1}),(0,v.useEffect)(function(){return ga(),us&&(Wr.current=setTimeout(function(){es(0)},100)),ga},[us]);var $a=un(Yu,ru,dt?Lt:Fi,Hu,wh,lh,(0,O.Z)((0,O.Z)({},Gr),{},{tabs:Qo})),Js=(0,K.Z)($a,2),Kl=Js[0],ya=Js[1],Ta=(0,st.Z)(function(){var yd=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mo,Mc=Yu.get(yd)||{width:0,height:0,left:0,right:0,top:0};if(dt){var Kd=Lt;vs?Mc.rightLt+ru&&(Kd=Mc.right+Mc.width-ru):Mc.left<-Lt?Kd=-Mc.left:Mc.left+Mc.width>-Lt+ru&&(Kd=-(Mc.left+Mc.width-ru)),xo(0),gn(Un(Kd))}else{var Vf=Fi;Mc.top<-Fi?Vf=-Mc.top:Mc.top+Mc.height>-Fi+ru&&(Vf=-(Mc.top+Mc.height-ru)),gn(0),xo(Un(Vf))}}),Xa={};Ka==="top"||Ka==="bottom"?Xa[vs?"marginRight":"marginLeft"]=Si:Xa.marginTop=Si;var au=Qo.map(function(yd,Mc){var Kd=yd.key;return v.createElement(Ln,{id:Or,prefixCls:yo,key:Kd,tab:yd,style:Mc===0?void 0:Xa,closable:yd.closable,editable:ho,active:Kd===Mo,renderWrapper:Pi,removeAriaLabel:aa==null?void 0:aa.removeAriaLabel,onClick:function(jf){to(Kd,jf)},onFocus:function(){Ta(Kd),Ma(),Rr.current&&(vs||(Rr.current.scrollLeft=0),Rr.current.scrollTop=0)}})}),$l=function(){return ba(function(){var Mc,Kd=new Map,Vf=(Mc=Xr.current)===null||Mc===void 0?void 0:Mc.getBoundingClientRect();return Qo.forEach(function(jf){var _d,Qd=jf.key,Md=(_d=Xr.current)===null||_d===void 0?void 0:_d.querySelector('[data-node-key="'.concat(Ii(Qd),'"]'));if(Md){var jh=it(Md,Vf),Bs=(0,K.Z)(jh,4),Ua=Bs[0],Ya=Bs[1],ml=Bs[2],ou=Bs[3];Kd.set(Qd,{width:Ua,height:Ya,left:ml,top:ou})}}),Kd})};(0,v.useEffect)(function(){$l()},[Qo.map(function(yd){return yd.key}).join("_")]);var Mu=Kt(function(){var yd=Ot(ss),Mc=Ot(Ko),Kd=Ot(Xn);Ms([yd[0]-Mc[0]-Kd[0],yd[1]-Mc[1]-Kd[1]]);var Vf=Ot(ht);fs(Vf);var jf=Ot(Ze);Li(jf);var _d=Ot(Xr);ia([_d[0]-Vf[0],_d[1]-Vf[1]]),$l()}),Bl=Qo.slice(0,Kl),Sl=Qo.slice(ya+1),Tn=[].concat((0,Ve.Z)(Bl),(0,Ve.Z)(Sl)),nc=Yu.get(Mo),Iu=Me({activeTabOffset:nc,horizontal:dt,rtl:vs,indicatorSize:ps}),Ic=Iu.style;(0,v.useEffect)(function(){Ta()},[Mo,wi,er,Sr(nc),Sr(Yu),dt]),(0,v.useEffect)(function(){Mu()},[vs]);var Vc=!!Tn.length,dh="".concat(yo,"-nav-wrap"),Nc,vd,Th,Gd;return dt?vs?(vd=Lt>0,Nc=Lt!==er):(Nc=Lt<0,vd=Lt!==wi):(Th=Fi<0,Gd=Fi!==wi),v.createElement(pt.Z,{onResize:Mu},v.createElement("div",{ref:(0,Ae.x1)(ni,ss),role:"tablist",className:g()("".concat(yo,"-nav"),Jr),style:bn,onKeyDown:function(){Ma()}},v.createElement(Ns,{ref:Ko,position:"left",extra:Na,prefixCls:yo}),v.createElement(pt.Z,{onResize:Mu},v.createElement("div",{className:g()(dh,(is={},(0,A.Z)(is,"".concat(dh,"-ping-left"),Nc),(0,A.Z)(is,"".concat(dh,"-ping-right"),vd),(0,A.Z)(is,"".concat(dh,"-ping-top"),Th),(0,A.Z)(is,"".concat(dh,"-ping-bottom"),Gd),is)),ref:Rr},v.createElement(pt.Z,{onResize:Mu},v.createElement("div",{ref:Xr,className:"".concat(yo,"-nav-list"),style:{transform:"translate(".concat(Lt,"px, ").concat(Fi,"px)"),transition:us?"none":void 0}},au,v.createElement(ti,{ref:ht,prefixCls:yo,locale:aa,editable:ho,style:(0,O.Z)((0,O.Z)({},au.length===0?void 0:Xa),{},{visibility:Vc?"hidden":null})}),v.createElement("div",{className:g()("".concat(yo,"-ink-bar"),(0,A.Z)({},"".concat(yo,"-ink-bar-animated"),qo.inkBar)),style:Ic}))))),v.createElement(di,(0,b.Z)({},Gr,{removeAriaLabel:aa==null?void 0:aa.removeAriaLabel,ref:Ze,prefixCls:yo,tabs:Tn,className:!Vc&&Tu,tabMoving:!!us})),v.createElement(Ns,{ref:Xn,position:"right",extra:Na,prefixCls:yo})))}),fr=Pn,In=v.forwardRef(function(Gr,ni){var is=Gr.prefixCls,Jr=Gr.className,bn=Gr.style,Or=Gr.id,qo=Gr.active,Mo=Gr.tabKey,vs=Gr.children;return v.createElement("div",{id:Or&&"".concat(Or,"-panel-").concat(Mo),role:"tabpanel",tabIndex:qo?0:-1,"aria-labelledby":Or&&"".concat(Or,"-tab-").concat(Mo),"aria-hidden":!qo,style:bn,className:g()(is,qo&&"".concat(is,"-active"),Jr),ref:ni},vs)}),mn=In,Ut=["renderTabBar"],en=["label","key"],Cn=function(ni){var is=ni.renderTabBar,Jr=(0,ae.Z)(ni,Ut),bn=v.useContext(Qe),Or=bn.tabs;if(is){var qo=(0,O.Z)((0,O.Z)({},Jr),{},{panes:Or.map(function(Mo){var vs=Mo.label,Na=Mo.key,ho=(0,ae.Z)(Mo,en);return v.createElement(mn,(0,b.Z)({tab:vs,key:Na,tabKey:Na},ho))})});return is(qo,fr)}return v.createElement(fr,Jr)},lr=Cn,pr=y(82225),an=["key","forceRender","style","className","destroyInactiveTabPane"],wr=function(ni){var is=ni.id,Jr=ni.activeKey,bn=ni.animated,Or=ni.tabPosition,qo=ni.destroyInactiveTabPane,Mo=v.useContext(Qe),vs=Mo.prefixCls,Na=Mo.tabs,ho=bn.tabPane,aa="".concat(vs,"-tabpane");return v.createElement("div",{className:g()("".concat(vs,"-content-holder"))},v.createElement("div",{className:g()("".concat(vs,"-content"),"".concat(vs,"-content-").concat(Or),(0,A.Z)({},"".concat(vs,"-content-animated"),ho))},Na.map(function(Ka){var Si=Ka.key,Pi=Ka.forceRender,to=Ka.style,So=Ka.className,ps=Ka.destroyInactiveTabPane,Wn=(0,ae.Z)(Ka,an),yo=Si===Jr;return v.createElement(pr.ZP,(0,b.Z)({key:Si,visible:yo,forceRender:Pi,removeOnLeave:!!(qo||ps),leavedClassName:"".concat(aa,"-hidden")},bn.tabPaneMotion),function(Qo,ss){var Ko=Qo.style,Xn=Qo.className;return v.createElement(mn,(0,b.Z)({},Wn,{prefixCls:aa,id:is,tabKey:Si,animated:ho,active:yo,style:(0,O.Z)((0,O.Z)({},to),Ko),className:g()(So,Xn),ref:ss}))})})))},Cr=wr,Ei=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],vo=0,kr=v.forwardRef(function(Gr,ni){var is,Jr=Gr.id,bn=Gr.prefixCls,Or=bn===void 0?"rc-tabs":bn,qo=Gr.className,Mo=Gr.items,vs=Gr.direction,Na=Gr.activeKey,ho=Gr.defaultActiveKey,aa=Gr.editable,Ka=Gr.animated,Si=Gr.tabPosition,Pi=Si===void 0?"top":Si,to=Gr.tabBarGutter,So=Gr.tabBarStyle,ps=Gr.tabBarExtraContent,Wn=Gr.locale,yo=Gr.moreIcon,Qo=Gr.moreTransitionName,ss=Gr.destroyInactiveTabPane,Ko=Gr.renderTabBar,Xn=Gr.onChange,Rr=Gr.onTabClick,Xr=Gr.onTabScroll,Ze=Gr.getPopupContainer,ht=Gr.popupClassName,dt=Gr.indicatorSize,$e=(0,ae.Z)(Gr,Ei),ft=v.useMemo(function(){return(Mo||[]).filter(function(Li){return Li&&(0,he.Z)(Li)==="object"&&"key"in Li})},[Mo]),Lt=vs==="rtl",gn=be(Ka),rr=(0,v.useState)(!1),zr=(0,K.Z)(rr,2),Fi=zr[0],xo=zr[1];(0,v.useEffect)(function(){xo((0,xe.Z)())},[]);var Vi=(0,fe.Z)(function(){var Li;return(Li=ft[0])===null||Li===void 0?void 0:Li.key},{value:Na,defaultValue:ho}),zs=(0,K.Z)(Vi,2),Ps=zs[0],Ms=zs[1],ks=(0,v.useState)(function(){return ft.findIndex(function(Li){return Li.key===Ps})}),ko=(0,K.Z)(ks,2),As=ko[0],ia=ko[1];(0,v.useEffect)(function(){var Li=ft.findIndex(function(Os){return Os.key===Ps});if(Li===-1){var Yo;Li=Math.max(0,Math.min(As,ft.length-1)),Ms((Yo=ft[Li])===null||Yo===void 0?void 0:Yo.key)}ia(Li)},[ft.map(function(Li){return Li.key}).join("_"),Ps,As]);var za=(0,fe.Z)(null,{value:Jr}),Zl=(0,K.Z)(za,2),Hl=Zl[0],fs=Zl[1];(0,v.useEffect)(function(){Jr||(fs("rc-tabs-".concat(vo)),vo+=1)},[]);function js(Li,Yo){Rr==null||Rr(Li,Yo);var Os=Li!==Ps;Ms(Li),Os&&(Xn==null||Xn(Li))}var hl={id:Hl,activeKey:Ps,animated:gn,tabPosition:Pi,rtl:Lt,mobile:Fi},Xo=(0,O.Z)((0,O.Z)({},hl),{},{editable:aa,locale:Wn,moreIcon:yo,moreTransitionName:Qo,tabBarGutter:to,onTabClick:js,onTabScroll:Xr,extra:ps,style:So,panes:null,getPopupContainer:Ze,popupClassName:ht,indicatorSize:dt});return v.createElement(Qe.Provider,{value:{tabs:ft,prefixCls:Or}},v.createElement("div",(0,b.Z)({ref:ni,id:Jr,className:g()(Or,"".concat(Or,"-").concat(Pi),(is={},(0,A.Z)(is,"".concat(Or,"-mobile"),Fi),(0,A.Z)(is,"".concat(Or,"-editable"),aa),(0,A.Z)(is,"".concat(Or,"-rtl"),Lt),is),qo)},$e),v.createElement(lr,(0,b.Z)({},Xo,{renderTabBar:Ko})),v.createElement(Cr,(0,b.Z)({destroyInactiveTabPane:ss},hl,{animated:gn}))))}),ro=kr,qi=ro,bo=y(53124),xn=y(98675),pn=y(33603);const Dt={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Zt(Gr){let ni=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},is;return ni===!1?is={inkBar:!1,tabPane:!1}:ni===!0?is={inkBar:!0,tabPane:!0}:is=Object.assign({inkBar:!0},typeof ni=="object"?ni:{}),is.tabPane&&(is.tabPaneMotion=Object.assign(Object.assign({},Dt),{motionName:(0,pn.m)(Gr,"switch")})),is}var vn=y(50344),$n=function(Gr,ni){var is={};for(var Jr in Gr)Object.prototype.hasOwnProperty.call(Gr,Jr)&&ni.indexOf(Jr)<0&&(is[Jr]=Gr[Jr]);if(Gr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bn=0,Jr=Object.getOwnPropertySymbols(Gr);bnni)}function Dr(Gr,ni){if(Gr)return Gr;const is=(0,vn.Z)(ni).map(Jr=>{if(v.isValidElement(Jr)){const{key:bn,props:Or}=Jr,qo=Or||{},{tab:Mo}=qo,vs=$n(qo,["tab"]);return Object.assign(Object.assign({key:String(bn)},vs),{label:Mo})}return null});return Ar(is)}var dr=y(43109),Yt=y(14747),wn=y(91945),Qn=y(45503),Mr=y(48611),Dn=Gr=>{const{componentCls:ni,motionDurationSlow:is}=Gr;return[{[ni]:{[`${ni}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${is}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${is}`}}}}},[(0,Mr.oN)(Gr,"slide-up"),(0,Mr.oN)(Gr,"slide-down")]]};const Kn=Gr=>{const{componentCls:ni,tabsCardPadding:is,cardBg:Jr,cardGutter:bn,colorBorderSecondary:Or,itemSelectedColor:qo}=Gr;return{[`${ni}-card`]:{[`> ${ni}-nav, > div > ${ni}-nav`]:{[`${ni}-tab`]:{margin:0,padding:is,background:Jr,border:`${(0,dr.bf)(Gr.lineWidth)} ${Gr.lineType} ${Or}`,transition:`all ${Gr.motionDurationSlow} ${Gr.motionEaseInOut}`},[`${ni}-tab-active`]:{color:qo,background:Gr.colorBgContainer},[`${ni}-ink-bar`]:{visibility:"hidden"}},[`&${ni}-top, &${ni}-bottom`]:{[`> ${ni}-nav, > div > ${ni}-nav`]:{[`${ni}-tab + ${ni}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,dr.bf)(bn)}}}},[`&${ni}-top`]:{[`> ${ni}-nav, > div > ${ni}-nav`]:{[`${ni}-tab`]:{borderRadius:`${(0,dr.bf)(Gr.borderRadiusLG)} ${(0,dr.bf)(Gr.borderRadiusLG)} 0 0`},[`${ni}-tab-active`]:{borderBottomColor:Gr.colorBgContainer}}},[`&${ni}-bottom`]:{[`> ${ni}-nav, > div > ${ni}-nav`]:{[`${ni}-tab`]:{borderRadius:`0 0 ${(0,dr.bf)(Gr.borderRadiusLG)} ${(0,dr.bf)(Gr.borderRadiusLG)}`},[`${ni}-tab-active`]:{borderTopColor:Gr.colorBgContainer}}},[`&${ni}-left, &${ni}-right`]:{[`> ${ni}-nav, > div > ${ni}-nav`]:{[`${ni}-tab + ${ni}-tab`]:{marginTop:(0,dr.bf)(bn)}}},[`&${ni}-left`]:{[`> ${ni}-nav, > div > ${ni}-nav`]:{[`${ni}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,dr.bf)(Gr.borderRadiusLG)} 0 0 ${(0,dr.bf)(Gr.borderRadiusLG)}`}},[`${ni}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Gr.colorBgContainer}}}},[`&${ni}-right`]:{[`> ${ni}-nav, > div > ${ni}-nav`]:{[`${ni}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,dr.bf)(Gr.borderRadiusLG)} ${(0,dr.bf)(Gr.borderRadiusLG)} 0`}},[`${ni}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Gr.colorBgContainer}}}}}}},nr=Gr=>{const{componentCls:ni,itemHoverColor:is,dropdownEdgeChildVerticalPadding:Jr}=Gr;return{[`${ni}-dropdown`]:Object.assign(Object.assign({},(0,Yt.Wf)(Gr)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Gr.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${ni}-dropdown-menu`]:{maxHeight:Gr.tabsDropdownHeight,margin:0,padding:`${(0,dr.bf)(Jr)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Gr.colorBgContainer,backgroundClip:"padding-box",borderRadius:Gr.borderRadiusLG,outline:"none",boxShadow:Gr.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Yt.vS),{display:"flex",alignItems:"center",minWidth:Gr.tabsDropdownWidth,margin:0,padding:`${(0,dr.bf)(Gr.paddingXXS)} ${(0,dr.bf)(Gr.paddingSM)}`,color:Gr.colorText,fontWeight:"normal",fontSize:Gr.fontSize,lineHeight:Gr.lineHeight,cursor:"pointer",transition:`all ${Gr.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Gr.marginSM},color:Gr.colorTextDescription,fontSize:Gr.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:is}},"&:hover":{background:Gr.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Gr.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},qr=Gr=>{const{componentCls:ni,margin:is,colorBorderSecondary:Jr,horizontalMargin:bn,verticalItemPadding:Or,verticalItemMargin:qo,calc:Mo}=Gr;return{[`${ni}-top, ${ni}-bottom`]:{flexDirection:"column",[`> ${ni}-nav, > div > ${ni}-nav`]:{margin:bn,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,dr.bf)(Gr.lineWidth)} ${Gr.lineType} ${Jr}`,content:"''"},[`${ni}-ink-bar`]:{height:Gr.lineWidthBold,"&-animated":{transition:`width ${Gr.motionDurationSlow}, left ${Gr.motionDurationSlow}, + right ${Gr.motionDurationSlow}`}},[`${ni}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Gr.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Gr.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Gr.boxShadowTabsOverflowRight},[`&${ni}-nav-wrap-ping-left::before`]:{opacity:1},[`&${ni}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${ni}-top`]:{[`> ${ni}-nav, + > div > ${ni}-nav`]:{"&::before":{bottom:0},[`${ni}-ink-bar`]:{bottom:0}}},[`${ni}-bottom`]:{[`> ${ni}-nav, > div > ${ni}-nav`]:{order:1,marginTop:is,marginBottom:0,"&::before":{top:0},[`${ni}-ink-bar`]:{top:0}},[`> ${ni}-content-holder, > div > ${ni}-content-holder`]:{order:0}},[`${ni}-left, ${ni}-right`]:{[`> ${ni}-nav, > div > ${ni}-nav`]:{flexDirection:"column",minWidth:Mo(Gr.controlHeight).mul(1.25).equal(),[`${ni}-tab`]:{padding:Or,textAlign:"center"},[`${ni}-tab + ${ni}-tab`]:{margin:qo},[`${ni}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Gr.controlHeight},"&::before":{top:0,boxShadow:Gr.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Gr.boxShadowTabsOverflowBottom},[`&${ni}-nav-wrap-ping-top::before`]:{opacity:1},[`&${ni}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${ni}-ink-bar`]:{width:Gr.lineWidthBold,"&-animated":{transition:`height ${Gr.motionDurationSlow}, top ${Gr.motionDurationSlow}`}},[`${ni}-nav-list, ${ni}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${ni}-left`]:{[`> ${ni}-nav, > div > ${ni}-nav`]:{[`${ni}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${ni}-content-holder, > div > ${ni}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,dr.bf)(Mo(Gr.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,dr.bf)(Gr.lineWidth)} ${Gr.lineType} ${Gr.colorBorder}`},[`> ${ni}-content > ${ni}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Gr.paddingLG}}}},[`${ni}-right`]:{[`> ${ni}-nav, > div > ${ni}-nav`]:{order:1,[`${ni}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${ni}-content-holder, > div > ${ni}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:Mo(Gr.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,dr.bf)(Gr.lineWidth)} ${Gr.lineType} ${Gr.colorBorder}`},[`> ${ni}-content > ${ni}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Gr.paddingLG}}}}}},yi=Gr=>{const{componentCls:ni,cardPaddingSM:is,cardPaddingLG:Jr,horizontalItemPaddingSM:bn,horizontalItemPaddingLG:Or}=Gr;return{[ni]:{"&-small":{[`> ${ni}-nav`]:{[`${ni}-tab`]:{padding:bn,fontSize:Gr.titleFontSizeSM}}},"&-large":{[`> ${ni}-nav`]:{[`${ni}-tab`]:{padding:Or,fontSize:Gr.titleFontSizeLG}}}},[`${ni}-card`]:{[`&${ni}-small`]:{[`> ${ni}-nav`]:{[`${ni}-tab`]:{padding:is}},[`&${ni}-bottom`]:{[`> ${ni}-nav ${ni}-tab`]:{borderRadius:`0 0 ${(0,dr.bf)(Gr.borderRadius)} ${(0,dr.bf)(Gr.borderRadius)}`}},[`&${ni}-top`]:{[`> ${ni}-nav ${ni}-tab`]:{borderRadius:`${(0,dr.bf)(Gr.borderRadius)} ${(0,dr.bf)(Gr.borderRadius)} 0 0`}},[`&${ni}-right`]:{[`> ${ni}-nav ${ni}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,dr.bf)(Gr.borderRadius)} ${(0,dr.bf)(Gr.borderRadius)} 0`}}},[`&${ni}-left`]:{[`> ${ni}-nav ${ni}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,dr.bf)(Gr.borderRadius)} 0 0 ${(0,dr.bf)(Gr.borderRadius)}`}}}},[`&${ni}-large`]:{[`> ${ni}-nav`]:{[`${ni}-tab`]:{padding:Jr}}}}}},Hr=Gr=>{const{componentCls:ni,itemActiveColor:is,itemHoverColor:Jr,iconCls:bn,tabsHorizontalItemMargin:Or,horizontalItemPadding:qo,itemSelectedColor:Mo,itemColor:vs}=Gr,Na=`${ni}-tab`;return{[Na]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:qo,fontSize:Gr.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:vs,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:is}},(0,Yt.Qy)(Gr)),"&-btn":{outline:"none",transition:"all 0.3s",[`${Na}-icon:not(:last-child)`]:{marginInlineEnd:Gr.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:Gr.calc(Gr.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:Gr.marginXS},color:Gr.colorTextDescription,fontSize:Gr.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Gr.motionDurationSlow}`,"&:hover":{color:Gr.colorTextHeading}},"&:hover":{color:Jr},[`&${Na}-active ${Na}-btn`]:{color:Mo,textShadow:Gr.tabsActiveTextShadow},[`&${Na}-disabled`]:{color:Gr.colorTextDisabled,cursor:"not-allowed"},[`&${Na}-disabled ${Na}-btn, &${Na}-disabled ${ni}-remove`]:{"&:focus, &:active":{color:Gr.colorTextDisabled}},[`& ${Na}-remove ${bn}`]:{margin:0},[`${bn}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:Gr.marginSM}}},[`${Na} + ${Na}`]:{margin:{_skip_check_:!0,value:Or}}}},ci=Gr=>{const{componentCls:ni,tabsHorizontalItemMarginRTL:is,iconCls:Jr,cardGutter:bn,calc:Or}=Gr;return{[`${ni}-rtl`]:{direction:"rtl",[`${ni}-nav`]:{[`${ni}-tab`]:{margin:{_skip_check_:!0,value:is},[`${ni}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Jr]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,dr.bf)(Gr.marginSM)}},[`${ni}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,dr.bf)(Gr.marginXS)},marginLeft:{_skip_check_:!0,value:(0,dr.bf)(Or(Gr.marginXXS).mul(-1).equal())},[Jr]:{margin:0}}}},[`&${ni}-left`]:{[`> ${ni}-nav`]:{order:1},[`> ${ni}-content-holder`]:{order:0}},[`&${ni}-right`]:{[`> ${ni}-nav`]:{order:0},[`> ${ni}-content-holder`]:{order:1}},[`&${ni}-card${ni}-top, &${ni}-card${ni}-bottom`]:{[`> ${ni}-nav, > div > ${ni}-nav`]:{[`${ni}-tab + ${ni}-tab`]:{marginRight:{_skip_check_:!0,value:bn},marginLeft:{_skip_check_:!0,value:0}}}}},[`${ni}-dropdown-rtl`]:{direction:"rtl"},[`${ni}-menu-item`]:{[`${ni}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},gi=Gr=>{const{componentCls:ni,tabsCardPadding:is,cardHeight:Jr,cardGutter:bn,itemHoverColor:Or,itemActiveColor:qo,colorBorderSecondary:Mo}=Gr;return{[ni]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Yt.Wf)(Gr)),{display:"flex",[`> ${ni}-nav, > div > ${ni}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${ni}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${Gr.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${ni}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Gr.motionDurationSlow}`},[`${ni}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${ni}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${ni}-nav-more`]:{position:"relative",padding:is,background:"transparent",border:0,color:Gr.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Gr.calc(Gr.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${ni}-nav-add`]:Object.assign({minWidth:Jr,marginLeft:{_skip_check_:!0,value:bn},padding:`0 ${(0,dr.bf)(Gr.paddingXS)}`,background:"transparent",border:`${(0,dr.bf)(Gr.lineWidth)} ${Gr.lineType} ${Mo}`,borderRadius:`${(0,dr.bf)(Gr.borderRadiusLG)} ${(0,dr.bf)(Gr.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:Gr.colorText,transition:`all ${Gr.motionDurationSlow} ${Gr.motionEaseInOut}`,"&:hover":{color:Or},"&:active, &:focus:not(:focus-visible)":{color:qo}},(0,Yt.Qy)(Gr))},[`${ni}-extra-content`]:{flex:"none"},[`${ni}-ink-bar`]:{position:"absolute",background:Gr.inkBarColor,pointerEvents:"none"}}),Hr(Gr)),{[`${ni}-content`]:{position:"relative",width:"100%"},[`${ni}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${ni}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${ni}-centered`]:{[`> ${ni}-nav, > div > ${ni}-nav`]:{[`${ni}-nav-wrap`]:{[`&:not([class*='${ni}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},mi=Gr=>{const ni=Gr.controlHeightLG;return{zIndexPopup:Gr.zIndexPopupBase+50,cardBg:Gr.colorFillAlter,cardHeight:ni,cardPadding:`${(ni-Math.round(Gr.fontSize*Gr.lineHeight))/2-Gr.lineWidth}px ${Gr.padding}px`,cardPaddingSM:`${Gr.paddingXXS*1.5}px ${Gr.padding}px`,cardPaddingLG:`${Gr.paddingXS}px ${Gr.padding}px ${Gr.paddingXXS*1.5}px`,titleFontSize:Gr.fontSize,titleFontSizeLG:Gr.fontSizeLG,titleFontSizeSM:Gr.fontSize,inkBarColor:Gr.colorPrimary,horizontalMargin:`0 0 ${Gr.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Gr.paddingSM}px 0`,horizontalItemPaddingSM:`${Gr.paddingXS}px 0`,horizontalItemPaddingLG:`${Gr.padding}px 0`,verticalItemPadding:`${Gr.paddingXS}px ${Gr.paddingLG}px`,verticalItemMargin:`${Gr.margin}px 0 0 0`,itemColor:Gr.colorText,itemSelectedColor:Gr.colorPrimary,itemHoverColor:Gr.colorPrimaryHover,itemActiveColor:Gr.colorPrimaryActive,cardGutter:Gr.marginXXS/2}};var Bi=(0,wn.I$)("Tabs",Gr=>{const ni=(0,Qn.TS)(Gr,{tabsCardPadding:Gr.cardPadding,dropdownEdgeChildVerticalPadding:Gr.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,dr.bf)(Gr.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,dr.bf)(Gr.horizontalItemGutter)}`});return[yi(ni),ci(ni),qr(ni),nr(ni),Kn(ni),gi(ni),Dn(ni)]},mi),Nr=y(35792),Qi=()=>null,ns=function(Gr,ni){var is={};for(var Jr in Gr)Object.prototype.hasOwnProperty.call(Gr,Jr)&&ni.indexOf(Jr)<0&&(is[Jr]=Gr[Jr]);if(Gr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bn=0,Jr=Object.getOwnPropertySymbols(Gr);bn{const{type:ni,className:is,rootClassName:Jr,size:bn,onEdit:Or,hideAdd:qo,centered:Mo,addIcon:vs,popupClassName:Na,children:ho,items:aa,animated:Ka,style:Si,indicatorSize:Pi}=Gr,to=ns(Gr,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:So,moreIcon:ps=v.createElement(w.Z,null)}=to,{direction:Wn,tabs:yo,getPrefixCls:Qo,getPopupContainer:ss}=v.useContext(bo.E_),Ko=Qo("tabs",So),Xn=(0,Nr.Z)(Ko),[Rr,Xr]=Bi(Ko,Xn);let Ze;ni==="editable-card"&&(Ze={onEdit:(gn,rr)=>{let{key:zr,event:Fi}=rr;Or==null||Or(gn==="add"?Fi:zr,gn)},removeIcon:v.createElement(P.Z,null),addIcon:vs||v.createElement(R,null),showAdd:qo!==!0});const ht=Qo(),dt=Dr(aa,ho),$e=Zt(Ko,Ka),ft=(0,xn.Z)(bn),Lt=Object.assign(Object.assign({},yo==null?void 0:yo.style),Si);return Rr(v.createElement(qi,Object.assign({direction:Wn,getPopupContainer:ss,moreTransitionName:`${ht}-slide-up`},to,{items:dt,className:g()({[`${Ko}-${ft}`]:ft,[`${Ko}-card`]:["card","editable-card"].includes(ni),[`${Ko}-editable-card`]:ni==="editable-card",[`${Ko}-centered`]:Mo},yo==null?void 0:yo.className,is,Jr,Xr,Xn),popupClassName:g()(Na,Xr,Xn),style:Lt,editable:Ze,moreIcon:ps,prefixCls:Ko,animated:$e,indicatorSize:Pi!=null?Pi:yo==null?void 0:yo.indicatorSize})))};Ur.TabPane=Qi;var gs=Ur},33083:function(yt,Y,y){"use strict";y.d(Y,{Mj:function(){return k},uH:function(){return B},u_:function(){return V}});var v=y(67294),P=y(43109),w=y(67164),b=y(2790);const B=(0,P.jG)(w.Z),V={token:b.Z,override:{override:b.Z},hashed:!0},k=v.createContext(V)},9361:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return Ae}});var v=y(43109),P=y(67164),w=y(2790),b=y(1393),V=De=>{const Te=De!=null&&De.algorithm?(0,v.jG)(De.algorithm):(0,v.jG)(P.Z),Me=Object.assign(Object.assign({},w.Z),De==null?void 0:De.token);return(0,v.t2)(Me,{override:De==null?void 0:De.token},Te,b.Z)},k=y(25976),R=y(33083),C=y(372);function g(De){const{sizeUnit:Te,sizeStep:Me}=De,Ue=Me-2;return{sizeXXL:Te*(Ue+10),sizeXL:Te*(Ue+6),sizeLG:Te*(Ue+2),sizeMD:Te*(Ue+2),sizeMS:Te*(Ue+1),size:Te*Ue,sizeSM:Te*Ue,sizeXS:Te*(Ue-1),sizeXXS:Te*(Ue-1)}}var A=y(98378),K=(De,Te)=>{const Me=Te!=null?Te:(0,P.Z)(De),Ue=Me.fontSizeSM,Pe=Me.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Me),g(Te!=null?Te:De)),(0,A.Z)(Ue)),{controlHeight:Pe}),(0,C.Z)(Object.assign(Object.assign({},Me),{controlHeight:Pe})))},he=y(16397),ae=y(57),fe=y(10274);const xe=(De,Te)=>new fe.C(De).setAlpha(Te).toRgbString(),ye=(De,Te)=>new fe.C(De).lighten(Te).toHexString(),be=De=>{const Te=(0,he.R_)(De,{theme:"dark"});return{1:Te[0],2:Te[1],3:Te[2],4:Te[3],5:Te[6],6:Te[5],7:Te[4],8:Te[6],9:Te[5],10:Te[4]}},Qe=(De,Te)=>{const Me=De||"#000",Ue=Te||"#fff";return{colorBgBase:Me,colorTextBase:Ue,colorText:xe(Ue,.85),colorTextSecondary:xe(Ue,.65),colorTextTertiary:xe(Ue,.45),colorTextQuaternary:xe(Ue,.25),colorFill:xe(Ue,.18),colorFillSecondary:xe(Ue,.12),colorFillTertiary:xe(Ue,.08),colorFillQuaternary:xe(Ue,.04),colorBgElevated:ye(Me,12),colorBgContainer:ye(Me,8),colorBgLayout:ye(Me,0),colorBgSpotlight:ye(Me,26),colorBgBlur:xe(Ue,.04),colorBorder:ye(Me,26),colorBorderSecondary:ye(Me,19)}};var pt=(De,Te)=>{const Me=Object.keys(w.M).map(Pe=>{const Xe=(0,he.R_)(De[Pe],{theme:"dark"});return new Array(10).fill(1).reduce((Be,Xt,St)=>(Be[`${Pe}-${St+1}`]=Xe[St],Be[`${Pe}${St+1}`]=Xe[St],Be),{})}).reduce((Pe,Xe)=>(Pe=Object.assign(Object.assign({},Pe),Xe),Pe),{}),Ue=Te!=null?Te:(0,P.Z)(De);return Object.assign(Object.assign(Object.assign({},Ue),Me),(0,ae.Z)(De,{generateColorPalettes:be,generateNeutralColorPalettes:Qe}))};function st(){const[De,Te,Me]=(0,k.ZP)();return{theme:De,token:Te,hashId:Me}}var Ae={defaultConfig:R.u_,defaultSeed:R.u_.token,useToken:st,defaultAlgorithm:P.Z,darkAlgorithm:pt,compactAlgorithm:K,getDesignToken:V}},8796:function(yt,Y,y){"use strict";y.d(Y,{i:function(){return v}});const v=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},67164:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return ae}});var v=y(16397),P=y(372);function w(fe){const{sizeUnit:xe,sizeStep:ye}=fe;return{sizeXXL:xe*(ye+8),sizeXL:xe*(ye+4),sizeLG:xe*(ye+2),sizeMD:xe*(ye+1),sizeMS:xe*ye,size:xe*ye,sizeSM:xe*(ye-1),sizeXS:xe*(ye-2),sizeXXS:xe*(ye-3)}}var b=y(2790),B=y(57),k=fe=>{let xe=fe,ye=fe,be=fe,Qe=fe;return fe<6&&fe>=5?xe=fe+1:fe<16&&fe>=6?xe=fe+2:fe>=16&&(xe=16),fe<7&&fe>=5?ye=4:fe<8&&fe>=7?ye=5:fe<14&&fe>=8?ye=6:fe<16&&fe>=14?ye=7:fe>=16&&(ye=8),fe<6&&fe>=2?be=1:fe>=6&&(be=2),fe>4&&fe<8?Qe=4:fe>=8&&(Qe=6),{borderRadius:fe,borderRadiusXS:be,borderRadiusSM:ye,borderRadiusLG:xe,borderRadiusOuter:Qe}};function R(fe){const{motionUnit:xe,motionBase:ye,borderRadius:be,lineWidth:Qe}=fe;return Object.assign({motionDurationFast:`${(ye+xe).toFixed(1)}s`,motionDurationMid:`${(ye+xe*2).toFixed(1)}s`,motionDurationSlow:`${(ye+xe*3).toFixed(1)}s`,lineWidthBold:Qe+1},k(be))}var C=y(10274);const g=(fe,xe)=>new C.C(fe).setAlpha(xe).toRgbString(),A=(fe,xe)=>new C.C(fe).darken(xe).toHexString(),O=fe=>{const xe=(0,v.R_)(fe);return{1:xe[0],2:xe[1],3:xe[2],4:xe[3],5:xe[4],6:xe[5],7:xe[6],8:xe[4],9:xe[5],10:xe[6]}},K=(fe,xe)=>{const ye=fe||"#fff",be=xe||"#000";return{colorBgBase:ye,colorTextBase:be,colorText:g(be,.88),colorTextSecondary:g(be,.65),colorTextTertiary:g(be,.45),colorTextQuaternary:g(be,.25),colorFill:g(be,.15),colorFillSecondary:g(be,.06),colorFillTertiary:g(be,.04),colorFillQuaternary:g(be,.02),colorBgLayout:A(ye,4),colorBgContainer:A(ye,0),colorBgElevated:A(ye,0),colorBgSpotlight:g(be,.85),colorBgBlur:"transparent",colorBorder:A(ye,15),colorBorderSecondary:A(ye,6)}};var he=y(98378);function ae(fe){const xe=Object.keys(b.M).map(ye=>{const be=(0,v.R_)(fe[ye]);return new Array(10).fill(1).reduce((Qe,Ve,pt)=>(Qe[`${ye}-${pt+1}`]=be[pt],Qe[`${ye}${pt+1}`]=be[pt],Qe),{})}).reduce((ye,be)=>(ye=Object.assign(Object.assign({},ye),be),ye),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fe),xe),(0,B.Z)(fe,{generateColorPalettes:O,generateNeutralColorPalettes:K})),(0,he.Z)(fe.fontSize)),w(fe)),(0,P.Z)(fe)),R(fe))}},2790:function(yt,Y,y){"use strict";y.d(Y,{M:function(){return v}});const v={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},P=Object.assign(Object.assign({},v),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});Y.Z=R},48254:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return R}});var v=_(64993);function R(w,b){let{generateColorPalettes:B,generateNeutralColorPalettes:V}=b;const{colorSuccess:k,colorWarning:M,colorError:C,colorInfo:g,colorPrimary:A,colorBgBase:O,colorTextBase:K}=w,ce=B(A),de=B(k),ve=B(M),Ee=B(C),_e=B(g),we=V(O,K),ot=w.colorLink||w.colorInfo,He=B(ot);return Object.assign(Object.assign({},we),{colorPrimaryBg:ce[1],colorPrimaryBgHover:ce[2],colorPrimaryBorder:ce[3],colorPrimaryBorderHover:ce[4],colorPrimaryHover:ce[5],colorPrimary:ce[6],colorPrimaryActive:ce[7],colorPrimaryTextHover:ce[8],colorPrimaryText:ce[9],colorPrimaryTextActive:ce[10],colorSuccessBg:de[1],colorSuccessBgHover:de[2],colorSuccessBorder:de[3],colorSuccessBorderHover:de[4],colorSuccessHover:de[4],colorSuccess:de[6],colorSuccessActive:de[7],colorSuccessTextHover:de[8],colorSuccessText:de[9],colorSuccessTextActive:de[10],colorErrorBg:Ee[1],colorErrorBgHover:Ee[2],colorErrorBorder:Ee[3],colorErrorBorderHover:Ee[4],colorErrorHover:Ee[5],colorError:Ee[6],colorErrorActive:Ee[7],colorErrorTextHover:Ee[8],colorErrorText:Ee[9],colorErrorTextActive:Ee[10],colorWarningBg:ve[1],colorWarningBgHover:ve[2],colorWarningBorder:ve[3],colorWarningBorderHover:ve[4],colorWarningHover:ve[4],colorWarning:ve[6],colorWarningActive:ve[7],colorWarningTextHover:ve[8],colorWarningText:ve[9],colorWarningTextActive:ve[10],colorInfoBg:_e[1],colorInfoBgHover:_e[2],colorInfoBorder:_e[3],colorInfoBorderHover:_e[4],colorInfoHover:_e[4],colorInfo:_e[6],colorInfoActive:_e[7],colorInfoTextHover:_e[8],colorInfoText:_e[9],colorInfoTextActive:_e[10],colorLinkHover:He[4],colorLink:He[6],colorLinkActive:He[7],colorBgMask:new v.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},62060:function(_t,Y){"use strict";const _=v=>{const{controlHeight:R}=v;return{controlHeightSM:R*.75,controlHeightXS:R*.5,controlHeightLG:R*1.25}};Y.Z=_},39601:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return w}});function v(b){const B=new Array(10).fill(null).map((V,k)=>{const M=k-1,C=b*Math.pow(2.71828,M/5),g=k>1?Math.floor(C):Math.ceil(C);return Math.floor(g/2)*2});return B[1]=b,B.map(V=>{const k=V+8;return{size:V,lineHeight:k/V}})}var w=b=>{const B=v(b),V=B.map(ce=>ce.size),k=B.map(ce=>ce.lineHeight),M=V[1],C=V[0],g=V[2],A=k[1],O=k[0],K=k[2];return{fontSizeSM:C,fontSize:M,fontSizeLG:g,fontSizeXL:V[3],fontSizeHeading1:V[6],fontSizeHeading2:V[5],fontSizeHeading3:V[4],fontSizeHeading4:V[3],fontSizeHeading5:V[2],lineHeight:A,lineHeightLG:K,lineHeightSM:O,fontHeight:Math.round(A*M),fontHeightLG:Math.round(K*g),fontHeightSM:Math.round(O*C),lineHeightHeading1:k[6],lineHeightHeading2:k[5],lineHeightHeading3:k[4],lineHeightHeading4:k[3],lineHeightHeading5:k[2]}}},57947:function(_t,Y,_){"use strict";_.d(Y,{ZP:function(){return K},ID:function(){return g},NJ:function(){return C}});var v=_(77617),R=_(36646),w="5.12.1",b=w,B=_(49059),V=_(70825),k=_(70043),M=function(ce,de){var ve={};for(var Ee in ce)Object.prototype.hasOwnProperty.call(ce,Ee)&&de.indexOf(Ee)<0&&(ve[Ee]=ce[Ee]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Ee=Object.getOwnPropertySymbols(ce);_e{const Ee=ve.getDerivativeToken(ce),{override:_e}=de,we=M(de,["override"]);let ot=Object.assign(Object.assign({},Ee),{override:_e});return ot=(0,k.Z)(ot),we&&Object.entries(we).forEach(He=>{let[vt,dt]=He;const{theme:Pe}=dt,De=M(dt,["theme"]);let Ae=De;Pe&&(Ae=O(Object.assign(Object.assign({},ot),De),{override:De},Pe)),ot[vt]=Ae}),ot};function K(){const{token:ce,hashed:de,theme:ve,override:Ee,cssVar:_e}=v.useContext(B.Mj),we=`${b}-${de||""}`,ot=ve||B.uH,[He,vt,dt]=(0,R.fp)(ot,[V.Z,ce],{salt:we,override:Ee,getComputedToken:O,formatToken:k.Z,cssVar:_e&&{prefix:_e.prefix,key:_e.key,unitless:C,ignore:g,preserve:A}});return[ot,dt,de?vt:"",He,_e]}},70043:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(64993),R=_(70825);function w(M){return M>=0&&M<=255}function b(M,C){const{r:g,g:A,b:O,a:K}=new v.C(M).toRgb();if(K<1)return M;const{r:ce,g:de,b:ve}=new v.C(C).toRgb();for(let Ee=.01;Ee<=1;Ee+=.01){const _e=Math.round((g-ce*(1-Ee))/Ee),we=Math.round((A-de*(1-Ee))/Ee),ot=Math.round((O-ve*(1-Ee))/Ee);if(w(_e)&&w(we)&&w(ot))return new v.C({r:_e,g:we,b:ot,a:Math.round(Ee*100)/100}).toRgbString()}return new v.C({r:g,g:A,b:O,a:1}).toRgbString()}var B=b,V=function(M,C){var g={};for(var A in M)Object.prototype.hasOwnProperty.call(M,A)&&C.indexOf(A)<0&&(g[A]=M[A]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,A=Object.getOwnPropertySymbols(M);O{delete A[ot]});const O=Object.assign(Object.assign({},g),A),K=480,ce=576,de=768,ve=992,Ee=1200,_e=1600;if(O.motion===!1){const ot="0s";O.motionDurationFast=ot,O.motionDurationMid=ot,O.motionDurationSlow=ot}return Object.assign(Object.assign(Object.assign({},O),{colorFillContent:O.colorFillSecondary,colorFillContentHover:O.colorFill,colorFillAlter:O.colorFillQuaternary,colorBgContainerDisabled:O.colorFillTertiary,colorBorderBg:O.colorBgContainer,colorSplit:B(O.colorBorderSecondary,O.colorBgContainer),colorTextPlaceholder:O.colorTextQuaternary,colorTextDisabled:O.colorTextQuaternary,colorTextHeading:O.colorText,colorTextLabel:O.colorTextSecondary,colorTextDescription:O.colorTextTertiary,colorTextLightSolid:O.colorWhite,colorHighlight:O.colorError,colorBgTextHover:O.colorFillSecondary,colorBgTextActive:O.colorFill,colorIcon:O.colorTextTertiary,colorIconHover:O.colorText,colorErrorOutline:B(O.colorErrorBg,O.colorBgContainer),colorWarningOutline:B(O.colorWarningBg,O.colorBgContainer),fontSizeIcon:O.fontSizeSM,lineWidthFocus:O.lineWidth*4,lineWidth:O.lineWidth,controlOutlineWidth:O.lineWidth*2,controlInteractiveSize:O.controlHeight/2,controlItemBgHover:O.colorFillTertiary,controlItemBgActive:O.colorPrimaryBg,controlItemBgActiveHover:O.colorPrimaryBgHover,controlItemBgActiveDisabled:O.colorFill,controlTmpOutline:O.colorFillQuaternary,controlOutline:B(O.colorPrimaryBg,O.colorBgContainer),lineType:O.lineType,borderRadius:O.borderRadius,borderRadiusXS:O.borderRadiusXS,borderRadiusSM:O.borderRadiusSM,borderRadiusLG:O.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:O.sizeXXS,paddingXS:O.sizeXS,paddingSM:O.sizeSM,padding:O.size,paddingMD:O.sizeMD,paddingLG:O.sizeLG,paddingXL:O.sizeXL,paddingContentHorizontalLG:O.sizeLG,paddingContentVerticalLG:O.sizeMS,paddingContentHorizontal:O.sizeMS,paddingContentVertical:O.sizeSM,paddingContentHorizontalSM:O.size,paddingContentVerticalSM:O.sizeXS,marginXXS:O.sizeXXS,marginXS:O.sizeXS,marginSM:O.sizeSM,margin:O.size,marginMD:O.sizeMD,marginLG:O.sizeLG,marginXL:O.sizeXL,marginXXL:O.sizeXXL,boxShadow:` +'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});Y.Z=P},57:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return P}});var v=y(10274);function P(w,b){let{generateColorPalettes:B,generateNeutralColorPalettes:V}=b;const{colorSuccess:k,colorWarning:R,colorError:C,colorInfo:g,colorPrimary:A,colorBgBase:O,colorTextBase:K}=w,he=B(A),ae=B(k),fe=B(R),xe=B(C),ye=B(g),be=V(O,K),Qe=w.colorLink||w.colorInfo,Ve=B(Qe);return Object.assign(Object.assign({},be),{colorPrimaryBg:he[1],colorPrimaryBgHover:he[2],colorPrimaryBorder:he[3],colorPrimaryBorderHover:he[4],colorPrimaryHover:he[5],colorPrimary:he[6],colorPrimaryActive:he[7],colorPrimaryTextHover:he[8],colorPrimaryText:he[9],colorPrimaryTextActive:he[10],colorSuccessBg:ae[1],colorSuccessBgHover:ae[2],colorSuccessBorder:ae[3],colorSuccessBorderHover:ae[4],colorSuccessHover:ae[4],colorSuccess:ae[6],colorSuccessActive:ae[7],colorSuccessTextHover:ae[8],colorSuccessText:ae[9],colorSuccessTextActive:ae[10],colorErrorBg:xe[1],colorErrorBgHover:xe[2],colorErrorBorder:xe[3],colorErrorBorderHover:xe[4],colorErrorHover:xe[5],colorError:xe[6],colorErrorActive:xe[7],colorErrorTextHover:xe[8],colorErrorText:xe[9],colorErrorTextActive:xe[10],colorWarningBg:fe[1],colorWarningBgHover:fe[2],colorWarningBorder:fe[3],colorWarningBorderHover:fe[4],colorWarningHover:fe[4],colorWarning:fe[6],colorWarningActive:fe[7],colorWarningTextHover:fe[8],colorWarningText:fe[9],colorWarningTextActive:fe[10],colorInfoBg:ye[1],colorInfoBgHover:ye[2],colorInfoBorder:ye[3],colorInfoBorderHover:ye[4],colorInfoHover:ye[4],colorInfo:ye[6],colorInfoActive:ye[7],colorInfoTextHover:ye[8],colorInfoText:ye[9],colorInfoTextActive:ye[10],colorLinkHover:Ve[4],colorLink:Ve[6],colorLinkActive:Ve[7],colorBgMask:new v.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},372:function(yt,Y){"use strict";const y=v=>{const{controlHeight:P}=v;return{controlHeightSM:P*.75,controlHeightXS:P*.5,controlHeightLG:P*1.25}};Y.Z=y},98378:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return w}});function v(b){const B=new Array(10).fill(null).map((V,k)=>{const R=k-1,C=b*Math.pow(2.71828,R/5),g=k>1?Math.floor(C):Math.ceil(C);return Math.floor(g/2)*2});return B[1]=b,B.map(V=>{const k=V+8;return{size:V,lineHeight:k/V}})}var w=b=>{const B=v(b),V=B.map(he=>he.size),k=B.map(he=>he.lineHeight),R=V[1],C=V[0],g=V[2],A=k[1],O=k[0],K=k[2];return{fontSizeSM:C,fontSize:R,fontSizeLG:g,fontSizeXL:V[3],fontSizeHeading1:V[6],fontSizeHeading2:V[5],fontSizeHeading3:V[4],fontSizeHeading4:V[3],fontSizeHeading5:V[2],lineHeight:A,lineHeightLG:K,lineHeightSM:O,fontHeight:Math.round(A*R),fontHeightLG:Math.round(K*g),fontHeightSM:Math.round(O*C),lineHeightHeading1:k[6],lineHeightHeading2:k[5],lineHeightHeading3:k[4],lineHeightHeading4:k[3],lineHeightHeading5:k[2]}}},25976:function(yt,Y,y){"use strict";y.d(Y,{ZP:function(){return K},ID:function(){return g},NJ:function(){return C}});var v=y(67294),P=y(43109),w="5.12.2",b=w,B=y(33083),V=y(2790),k=y(1393),R=function(he,ae){var fe={};for(var xe in he)Object.prototype.hasOwnProperty.call(he,xe)&&ae.indexOf(xe)<0&&(fe[xe]=he[xe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,xe=Object.getOwnPropertySymbols(he);ye{const xe=fe.getDerivativeToken(he),{override:ye}=ae,be=R(ae,["override"]);let Qe=Object.assign(Object.assign({},xe),{override:ye});return Qe=(0,k.Z)(Qe),be&&Object.entries(be).forEach(Ve=>{let[pt,st]=Ve;const{theme:Ae}=st,De=R(st,["theme"]);let Te=De;Ae&&(Te=O(Object.assign(Object.assign({},Qe),De),{override:De},Ae)),Qe[pt]=Te}),Qe};function K(){const{token:he,hashed:ae,theme:fe,override:xe,cssVar:ye}=v.useContext(B.Mj),be=`${b}-${ae||""}`,Qe=fe||B.uH,[Ve,pt,st]=(0,P.fp)(Qe,[V.Z,he],{salt:be,override:xe,getComputedToken:O,formatToken:k.Z,cssVar:ye&&{prefix:ye.prefix,key:ye.key,unitless:C,ignore:g,preserve:A}});return[Qe,st,ae?pt:"",Ve,ye]}},1393:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(10274),P=y(2790);function w(R){return R>=0&&R<=255}function b(R,C){const{r:g,g:A,b:O,a:K}=new v.C(R).toRgb();if(K<1)return R;const{r:he,g:ae,b:fe}=new v.C(C).toRgb();for(let xe=.01;xe<=1;xe+=.01){const ye=Math.round((g-he*(1-xe))/xe),be=Math.round((A-ae*(1-xe))/xe),Qe=Math.round((O-fe*(1-xe))/xe);if(w(ye)&&w(be)&&w(Qe))return new v.C({r:ye,g:be,b:Qe,a:Math.round(xe*100)/100}).toRgbString()}return new v.C({r:g,g:A,b:O,a:1}).toRgbString()}var B=b,V=function(R,C){var g={};for(var A in R)Object.prototype.hasOwnProperty.call(R,A)&&C.indexOf(A)<0&&(g[A]=R[A]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,A=Object.getOwnPropertySymbols(R);O{delete A[Qe]});const O=Object.assign(Object.assign({},g),A),K=480,he=576,ae=768,fe=992,xe=1200,ye=1600;if(O.motion===!1){const Qe="0s";O.motionDurationFast=Qe,O.motionDurationMid=Qe,O.motionDurationSlow=Qe}return Object.assign(Object.assign(Object.assign({},O),{colorFillContent:O.colorFillSecondary,colorFillContentHover:O.colorFill,colorFillAlter:O.colorFillQuaternary,colorBgContainerDisabled:O.colorFillTertiary,colorBorderBg:O.colorBgContainer,colorSplit:B(O.colorBorderSecondary,O.colorBgContainer),colorTextPlaceholder:O.colorTextQuaternary,colorTextDisabled:O.colorTextQuaternary,colorTextHeading:O.colorText,colorTextLabel:O.colorTextSecondary,colorTextDescription:O.colorTextTertiary,colorTextLightSolid:O.colorWhite,colorHighlight:O.colorError,colorBgTextHover:O.colorFillSecondary,colorBgTextActive:O.colorFill,colorIcon:O.colorTextTertiary,colorIconHover:O.colorText,colorErrorOutline:B(O.colorErrorBg,O.colorBgContainer),colorWarningOutline:B(O.colorWarningBg,O.colorBgContainer),fontSizeIcon:O.fontSizeSM,lineWidthFocus:O.lineWidth*4,lineWidth:O.lineWidth,controlOutlineWidth:O.lineWidth*2,controlInteractiveSize:O.controlHeight/2,controlItemBgHover:O.colorFillTertiary,controlItemBgActive:O.colorPrimaryBg,controlItemBgActiveHover:O.colorPrimaryBgHover,controlItemBgActiveDisabled:O.colorFill,controlTmpOutline:O.colorFillQuaternary,controlOutline:B(O.colorPrimaryBg,O.colorBgContainer),lineType:O.lineType,borderRadius:O.borderRadius,borderRadiusXS:O.borderRadiusXS,borderRadiusSM:O.borderRadiusSM,borderRadiusLG:O.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:O.sizeXXS,paddingXS:O.sizeXS,paddingSM:O.sizeSM,padding:O.size,paddingMD:O.sizeMD,paddingLG:O.sizeLG,paddingXL:O.sizeXL,paddingContentHorizontalLG:O.sizeLG,paddingContentVerticalLG:O.sizeMS,paddingContentHorizontal:O.sizeMS,paddingContentVertical:O.sizeSM,paddingContentHorizontalSM:O.size,paddingContentVerticalSM:O.sizeXS,marginXXS:O.sizeXXS,marginXS:O.sizeXS,marginSM:O.sizeSM,margin:O.size,marginMD:O.sizeMD,marginLG:O.sizeLG,marginXL:O.sizeXL,marginXXL:O.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) @@ -8162,7 +8108,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) - `,screenXS:K,screenXSMin:K,screenXSMax:ce-1,screenSM:ce,screenSMMin:ce,screenSMMax:de-1,screenMD:de,screenMDMin:de,screenMDMax:ve-1,screenLG:ve,screenLGMin:ve,screenLGMax:Ee-1,screenXL:Ee,screenXLMin:Ee,screenXLMax:_e-1,screenXXL:_e,screenXXLMin:_e,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + `,screenXS:K,screenXSMin:K,screenXSMax:he-1,screenSM:he,screenSMMin:he,screenSMMax:ae-1,screenMD:ae,screenMDMin:ae,screenMDMax:fe-1,screenLG:fe,screenLGMin:fe,screenLGMax:xe-1,screenXL:xe,screenXLMin:xe,screenXLMax:ye-1,screenXXL:ye,screenXXLMin:ye,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new v.C("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new v.C("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new v.C("rgba(0, 0, 0, 0.09)").toRgbString()} @@ -8182,27 +8128,27 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),A)}},67859:function(_t,Y,_){"use strict";_.d(Y,{ZP:function(){return Re},I$:function(){return Xe},bk:function(){return $e}});var v=_(77617),R=_(36646),w=_(12124),b=_.n(w),B=_(33401),V=_(51059),k=_(35772),M=_(57947),C=_(67873),g=_(22695),A=_(66217),O=_(81275),ce=(0,g.Z)(function ze(){(0,C.Z)(this,ze)});let de=function(ze){(0,A.Z)(St,ze);var Kt=(0,O.Z)(St);function St(nt){var Ct;return(0,C.Z)(this,St),Ct=Kt.call(this),Ct.result=0,nt instanceof St?Ct.result=nt.result:typeof nt=="number"&&(Ct.result=nt),Ct}return(0,g.Z)(St,[{key:"add",value:function(Ct){return Ct instanceof St?this.result+=Ct.result:typeof Ct=="number"&&(this.result+=Ct),this}},{key:"sub",value:function(Ct){return Ct instanceof St?this.result-=Ct.result:typeof Ct=="number"&&(this.result-=Ct),this}},{key:"mul",value:function(Ct){return Ct instanceof St?this.result*=Ct.result:typeof Ct=="number"&&(this.result*=Ct),this}},{key:"div",value:function(Ct){return Ct instanceof St?this.result/=Ct.result:typeof Ct=="number"&&(this.result/=Ct),this}},{key:"equal",value:function(){return this.result}}]),St}(ce);const ve="CALC_UNIT";function Ee(ze){return typeof ze=="number"?`${ze}${ve}`:ze}let _e=function(ze){(0,A.Z)(St,ze);var Kt=(0,O.Z)(St);function St(nt){var Ct;return(0,C.Z)(this,St),Ct=Kt.call(this),Ct.result="",nt instanceof St?Ct.result=`(${nt.result})`:typeof nt=="number"?Ct.result=Ee(nt):typeof nt=="string"&&(Ct.result=nt),Ct}return(0,g.Z)(St,[{key:"add",value:function(Ct){return Ct instanceof St?this.result=`${this.result} + ${Ct.getResult()}`:(typeof Ct=="number"||typeof Ct=="string")&&(this.result=`${this.result} + ${Ee(Ct)}`),this.lowPriority=!0,this}},{key:"sub",value:function(Ct){return Ct instanceof St?this.result=`${this.result} - ${Ct.getResult()}`:(typeof Ct=="number"||typeof Ct=="string")&&(this.result=`${this.result} - ${Ee(Ct)}`),this.lowPriority=!0,this}},{key:"mul",value:function(Ct){return this.lowPriority&&(this.result=`(${this.result})`),Ct instanceof St?this.result=`${this.result} * ${Ct.getResult(!0)}`:(typeof Ct=="number"||typeof Ct=="string")&&(this.result=`${this.result} * ${Ct}`),this.lowPriority=!1,this}},{key:"div",value:function(Ct){return this.lowPriority&&(this.result=`(${this.result})`),Ct instanceof St?this.result=`${this.result} / ${Ct.getResult(!0)}`:(typeof Ct=="number"||typeof Ct=="string")&&(this.result=`${this.result} / ${Ct}`),this.lowPriority=!1,this}},{key:"getResult",value:function(Ct){return this.lowPriority||Ct?`(${this.result})`:this.result}},{key:"equal",value:function(Ct){const{unit:lt=!0}=Ct||{},Gt=new RegExp(`${ve}`,"g");return this.result=this.result.replace(Gt,lt?"px":""),typeof this.lowPriority!="undefined"?`calc(${this.result})`:this.result}}]),St}(ce);var ot=ze=>{const Kt=ze==="css"?_e:de;return St=>new Kt(St)};function He(ze){return ze==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var Kt=arguments.length,St=new Array(Kt),nt=0;nt(0,R.bf)(Ct)).join(",")})`},min:function(){for(var Kt=arguments.length,St=new Array(Kt),nt=0;nt(0,R.bf)(Ct)).join(",")})`}}}var vt=_(80172),dt=_(69647);const Pe=(ze,Kt,St)=>{var nt;return typeof St=="function"?St((0,vt.TS)(Kt,(nt=Kt[ze])!==null&&nt!==void 0?nt:{})):St!=null?St:{}},De=(ze,Kt,St,nt)=>{const Ct=Object.assign({},Kt[ze]);if(nt!=null&&nt.deprecatedTokens){const{deprecatedTokens:Gt}=nt;Gt.forEach(Rt=>{let[an,cn]=Rt;var Cr;(Ct!=null&&Ct[an]||Ct!=null&&Ct[cn])&&((Cr=Ct[cn])!==null&&Cr!==void 0||(Ct[cn]=Ct==null?void 0:Ct[an]))})}let lt=Object.assign(Object.assign({},St),Ct);return nt!=null&&nt.format&&(lt=nt.format(lt)),Object.keys(lt).forEach(Gt=>{lt[Gt]===Kt[Gt]&&delete lt[Gt]}),lt},Ae=(ze,Kt)=>`${[Kt,ze.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function Re(ze,Kt,St){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const Ct=Array.isArray(ze)?ze:[ze,ze],[lt]=Ct,Gt=Ct.join("-");return Rt=>{const[an,cn,Cr,ii,Pi]=(0,M.ZP)(),{getPrefixCls:Ni,iconPrefixCls:Yi,csp:ti}=(0,v.useContext)(V.E_),Ts=Ni(),Bs=Pi?"css":"js",Ce=ot(Bs),{max:Gi,min:qi}=He(Bs),co={theme:an,token:ii,hashId:Cr,nonce:()=>ti==null?void 0:ti.nonce,clientOnly:nt.clientOnly,order:nt.order||-999};return(0,R.xy)(Object.assign(Object.assign({},co),{clientOnly:!1,path:["Shared",Ts]}),()=>[{"&":(0,k.Lx)(ii)}]),(0,dt.Z)(Yi,ti),[(0,R.xy)(Object.assign(Object.assign({},co),{path:[Gt,Rt,Yi]}),()=>{if(nt.injectStyle===!1)return[];const{token:Ms,flush:In}=(0,vt.ZP)(ii),et=Pe(lt,cn,St),Dt=`.${Rt}`,$t=De(lt,cn,et,{deprecatedTokens:nt.deprecatedTokens,format:nt.format});Pi&&Object.keys(et).forEach(kn=>{et[kn]=`var(${(0,R.ks)(kn,Ae(lt,Pi.prefix))})`});const Dn=(0,vt.TS)(Ms,{componentCls:Dt,prefixCls:Rt,iconCls:`.${Yi}`,antCls:`.${Ts}`,calc:Ce,max:Gi,min:qi},Pi?et:$t),gr=Kt(Dn,{hashId:Cr,prefixCls:Rt,rootPrefixCls:Ts,iconPrefixCls:Yi});return In(lt,$t),[nt.resetStyle===!1?null:(0,k.du)(Dn,Rt),gr]}),b()(Cr,Pi==null?void 0:Pi.key)]}}const $e=(ze,Kt,St,nt)=>{const Ct=Re(ze,Kt,St,Object.assign({resetStyle:!1,order:-998},nt));return Gt=>{let{prefixCls:Rt}=Gt;return Ct(Rt),null}},Ie=(ze,Kt,St)=>{function nt(cn){return`${ze}${cn.slice(0,1).toUpperCase()}${cn.slice(1)}`}const{unitless:Ct={},injectStyle:lt=!0}=St!=null?St:{},Gt={[nt("zIndexPopup")]:!0};Object.keys(Ct).forEach(cn=>{Gt[nt(cn)]=Ct[cn]});const Rt=cn=>{let{rootCls:Cr,cssVar:ii}=cn;const[,Pi]=(0,M.ZP)();return(0,R.CI)({path:[ze],prefix:ii.prefix,key:ii==null?void 0:ii.key,unitless:Object.assign(Object.assign({},M.NJ),Gt),ignore:M.ID,token:Pi,scope:Cr},()=>{const Ni=Pe(ze,Pi,Kt),Yi=De(ze,Pi,Ni,{format:St==null?void 0:St.format,deprecatedTokens:St==null?void 0:St.deprecatedTokens});return Object.keys(Ni).forEach(ti=>{Yi[nt(ti)]=Yi[ti],delete Yi[ti]}),Yi}),null};return cn=>{const[,,,,Cr]=(0,M.ZP)();return ii=>lt&&Cr?v.createElement(v.Fragment,null,v.createElement(Rt,{rootCls:cn,cssVar:Cr,component:ze}),ii):ii}},Xe=(ze,Kt,St,nt)=>{const Ct=Re(ze,Kt,St,nt),lt=Ie(ze,St,nt);return function(Gt){let Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gt;const[,an]=Ct(Gt);return[lt(Rt),an]}}},80172:function(_t,Y,_){"use strict";_.d(Y,{TS:function(){return w},ZP:function(){return k}});const v=typeof CSSINJS_STATISTIC!="undefined";let R=!0;function w(){for(var M=arguments.length,C=new Array(M),g=0;g{Object.keys(O).forEach(ce=>{Object.defineProperty(A,ce,{configurable:!0,enumerable:!0,get:()=>O[ce]})})}),R=!0,A}const b={},B={};function V(){}function k(M){let C,g=M,A=V;return v&&typeof Proxy!="undefined"&&(C=new Set,g=new Proxy(M,{get(O,K){return R&&C.add(K),O[K]}}),A=(O,K)=>{var ce;b[O]={global:Array.from(C),component:Object.assign(Object.assign({},(ce=b[O])===null||ce===void 0?void 0:ce.component),K)}}),{token:g,keys:C,flush:A}}},69647:function(_t,Y,_){"use strict";var v=_(36646),R=_(35772),w=_(57947);const b=(B,V)=>{const[k,M]=(0,w.ZP)();return(0,v.xy)({theme:k,token:M,hashId:"",path:["ant-design-icons",B],nonce:()=>V==null?void 0:V.nonce},()=>[{[`.${B}`]:Object.assign(Object.assign({},(0,R.Ro)()),{[`.${B} .${B}-icon`]:{display:"block"}})}])};Y.Z=b},38134:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return Gt}});var v=_(77617),R=_(12124),w=_.n(R),b=_(31718),B=_(84381),V=_(3966),k=_(82395),M=_(75261),C=_(29341),g=_(50905),A=_(91649),O=_(51059),K=_(60161),ce=_(57947),de=_(35772),ve=_(44566),Ee=_(79208),_e=_(65341);function we(Rt,an){return _e.i.reduce((cn,Cr)=>{const ii=Rt[`${Cr}1`],Pi=Rt[`${Cr}3`],Ni=Rt[`${Cr}6`],Yi=Rt[`${Cr}7`];return Object.assign(Object.assign({},cn),an(Cr,{lightColor:ii,lightBorderColor:Pi,darkColor:Ni,textColor:Yi}))},{})}var ot=_(80172),He=_(67859),vt=_(36646),dt=_(11882);const Pe=Rt=>{const{componentCls:an,tooltipMaxWidth:cn,tooltipColor:Cr,tooltipBg:ii,tooltipBorderRadius:Pi,zIndexPopup:Ni,controlHeight:Yi,boxShadowSecondary:ti,paddingSM:Ts,paddingXS:Bs}=Rt;return[{[an]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,de.Wf)(Rt)),{position:"absolute",zIndex:Ni,display:"block",width:"max-content",maxWidth:cn,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":ii,[`${an}-inner`]:{minWidth:Yi,minHeight:Yi,padding:`${(0,vt.bf)(Rt.calc(Ts).div(2).equal())} ${(0,vt.bf)(Bs)}`,color:Cr,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:ii,borderRadius:Pi,boxShadow:ti,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${an}-inner`]:{borderRadius:Rt.min(Pi,Ee.qN)}},[`${an}-content`]:{position:"relative"}}),we(Rt,(Ce,Gi)=>{let{darkColor:qi}=Gi;return{[`&${an}-${Ce}`]:{[`${an}-inner`]:{backgroundColor:qi},[`${an}-arrow`]:{"--antd-arrow-background-color":qi}}}})),{"&-rtl":{direction:"rtl"}})},(0,Ee.ZP)(Rt,"var(--antd-arrow-background-color)"),{[`${an}-pure`]:{position:"relative",maxWidth:"none",margin:Rt.sizePopupArrow}}]},De=Rt=>Object.assign(Object.assign({zIndexPopup:Rt.zIndexPopupBase+70},(0,Ee.wZ)({contentRadius:Rt.borderRadius,limitVerticalRadius:!0})),(0,dt.w)((0,ot.TS)(Rt,{borderRadiusOuter:Math.min(Rt.borderRadiusOuter,4)})));var Ae=function(Rt){let an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,He.I$)("Tooltip",Cr=>{const{borderRadius:ii,colorTextLightSolid:Pi,colorBgSpotlight:Ni}=Cr,Yi=(0,ot.TS)(Cr,{tooltipMaxWidth:250,tooltipColor:Pi,tooltipBorderRadius:ii,tooltipBg:Ni});return[Pe(Yi),(0,ve._y)(Cr,"zoom-big-fast")]},De,{resetStyle:!1,injectStyle:an})(Rt)},Re=_(40877);const $e=_e.i.map(Rt=>`${Rt}-inverse`),Ie=null;function Xe(Rt){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,Re.Z)($e),(0,Re.Z)(_e.i)).includes(Rt):_e.i.includes(Rt)}function ze(Rt){return Ie.includes(Rt)}function Kt(Rt,an){const cn=Xe(an),Cr=w()({[`${Rt}-${an}`]:an&&cn}),ii={},Pi={};return an&&!cn&&(ii.background=an,Pi["--antd-arrow-background-color"]=an),{className:Cr,overlayStyle:ii,arrowStyle:Pi}}var nt=Rt=>{const{prefixCls:an,className:cn,placement:Cr="top",title:ii,color:Pi,overlayInnerStyle:Ni}=Rt,{getPrefixCls:Yi}=v.useContext(O.E_),ti=Yi("tooltip",an),[Ts,Bs]=Ae(ti),Ce=Kt(ti,Pi),Gi=Ce.arrowStyle,qi=Object.assign(Object.assign({},Ni),Ce.overlayStyle),co=w()(Bs,ti,`${ti}-pure`,`${ti}-placement-${Cr}`,cn,Ce.className);return Ts(v.createElement("div",{className:co,style:Gi},v.createElement("div",{className:`${ti}-arrow`}),v.createElement(b.G,Object.assign({},Rt,{className:Bs,prefixCls:ti,overlayInnerStyle:qi}),ii)))},Ct=function(Rt,an){var cn={};for(var Cr in Rt)Object.prototype.hasOwnProperty.call(Rt,Cr)&&an.indexOf(Cr)<0&&(cn[Cr]=Rt[Cr]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ii=0,Cr=Object.getOwnPropertySymbols(Rt);ii{var cn,Cr;const{prefixCls:ii,openClassName:Pi,getTooltipContainer:Ni,overlayClassName:Yi,color:ti,overlayInnerStyle:Ts,children:Bs,afterOpenChange:Ce,afterVisibleChange:Gi,destroyTooltipOnHide:qi,arrow:co=!0,title:fi,overlay:Ms,builtinPlacements:In,arrowPointAtCenter:et=!1,autoAdjustOverflow:Dt=!0}=Rt,$t=!!co,[,Dn]=(0,ce.ZP)(),{getPopupContainer:gr,getPrefixCls:kn,direction:bn}=v.useContext(O.E_),zt=(0,g.ln)("Tooltip"),Jt=v.useRef(null),yn=()=>{var Hr;(Hr=Jt.current)===null||Hr===void 0||Hr.forceAlign()};v.useImperativeHandle(an,()=>({forceAlign:yn,forcePopupAlign:()=>{zt.deprecated(!1,"forcePopupAlign","forceAlign"),yn()}}));const[fr,vr]=(0,B.Z)(!1,{value:(cn=Rt.open)!==null&&cn!==void 0?cn:Rt.visible,defaultValue:(Cr=Rt.defaultOpen)!==null&&Cr!==void 0?Cr:Rt.defaultVisible}),pn=!fi&&!Ms&&fi!==0,wr=Hr=>{var di,gi;vr(pn?!1:Hr),pn||((di=Rt.onOpenChange)===null||di===void 0||di.call(Rt,Hr),(gi=Rt.onVisibleChange)===null||gi===void 0||gi.call(Rt,Hr))},Sr=v.useMemo(()=>{var Hr,di;let gi=et;return typeof co=="object"&&(gi=(di=(Hr=co.pointAtCenter)!==null&&Hr!==void 0?Hr:co.arrowPointAtCenter)!==null&&di!==void 0?di:et),In||(0,M.Z)({arrowPointAtCenter:gi,autoAdjustOverflow:Dt,arrowWidth:$t?Dn.sizePopupArrow:0,borderRadius:Dn.borderRadius,offset:Dn.marginXXS,visibleFirst:!0})},[et,co,In,Dn]),Ai=v.useMemo(()=>fi===0?fi:Ms||fi||"",[Ms,fi]),mo=v.createElement(K.BR,null,typeof Ai=="function"?Ai():Ai),{getPopupContainer:Fr,placement:to="top",mouseEnterDelay:Ji=.1,mouseLeaveDelay:bo=.1,overlayStyle:xn,rootClassName:fn}=Rt,It=Ct(Rt,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Zt=kn("tooltip",ii),gn=kn(),$n=Rt["data-popover-inject"];let Ar=fr;!("open"in Rt)&&!("visible"in Rt)&&pn&&(Ar=!1);const Dr=(0,C.l$)(Bs)&&!(0,C.M2)(Bs)?Bs:v.createElement("span",null,Bs),dr=Dr.props,Xt=!dr.className||typeof dr.className=="string"?w()(dr.className,Pi||`${Zt}-open`):dr.className,[Cn,er]=Ae(Zt,!$n),Mr=Kt(Zt,ti),ji=Mr.arrowStyle,An=Object.assign(Object.assign({},Ts),Mr.overlayStyle),Xn=w()(Yi,{[`${Zt}-rtl`]:bn==="rtl"},Mr.className,fn,er),[nr,qr]=(0,V.Cn)("Tooltip",It.zIndex),vi=v.createElement(b.Z,Object.assign({},It,{zIndex:nr,showArrow:$t,placement:to,mouseEnterDelay:Ji,mouseLeaveDelay:bo,prefixCls:Zt,overlayClassName:Xn,overlayStyle:Object.assign(Object.assign({},ji),xn),getTooltipContainer:Fr||Ni||gr,ref:Jt,builtinPlacements:Sr,overlay:mo,visible:Ar,onVisibleChange:wr,afterVisibleChange:Ce!=null?Ce:Gi,overlayInnerStyle:An,arrowContent:v.createElement("span",{className:`${Zt}-arrow-content`}),motion:{motionName:(0,k.m)(gn,"zoom-big-fast",Rt.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!qi}),Ar?(0,C.Tm)(Dr,{className:Xt}):Dr);return Cn(v.createElement(A.Z.Provider,{value:qr},vi))});lt._InternalPanelDoNotUseOrYouWillBeFired=nt;var Gt=lt},62245:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return yn}});var v=_(77617),R=_(36439),w=_(61796),b=_(96522),B=_(61860),V=_(33649),k=_(43403),M=_(84728),C=_(12124),g=_.n(C),A=_(70658),O=_(84381),K=_(60402);function ce(fr){var vr=window.innerWidth||document.documentElement.clientWidth,pn=window.innerHeight||document.documentElement.clientHeight,wr=fr.getBoundingClientRect(),Sr=wr.top,Ai=wr.right,mo=wr.bottom,Fr=wr.left;return Sr>=0&&Fr>=0&&Ai<=vr&&mo<=pn}function de(fr,vr,pn){var wr;return(wr=pn!=null?pn:vr)!==null&&wr!==void 0?wr:fr===null?"center":"bottom"}function ve(fr,vr,pn,wr){var Sr=(0,v.useState)(void 0),Ai=(0,B.Z)(Sr,2),mo=Ai[0],Fr=Ai[1];(0,A.Z)(function(){var gn=typeof fr=="function"?fr():fr;Fr(gn||null)});var to=(0,v.useState)(null),Ji=(0,B.Z)(to,2),bo=Ji[0],xn=Ji[1],fn=(0,K.Z)(function(){if(mo){!ce(mo)&&vr&&mo.scrollIntoView(wr);var gn=mo.getBoundingClientRect(),$n=gn.left,Ar=gn.top,Dr=gn.width,dr=gn.height,Xt={left:$n,top:Ar,width:Dr,height:dr,radius:0};xn(function(Cn){return JSON.stringify(Cn)!==JSON.stringify(Xt)?Xt:Cn})}else xn(null)}),It=function($n){var Ar;return(Ar=Array.isArray(pn==null?void 0:pn.offset)?pn==null?void 0:pn.offset[$n]:pn==null?void 0:pn.offset)!==null&&Ar!==void 0?Ar:6};(0,A.Z)(function(){return fn(),window.addEventListener("resize",fn),function(){window.removeEventListener("resize",fn)}},[mo,vr,fn]);var Zt=(0,v.useMemo)(function(){if(!bo)return bo;var gn=It(0),$n=It(1),Ar=(pn==null?void 0:pn.radius)||2;return{left:bo.left-gn,top:bo.top-$n,width:bo.width+gn*2,height:bo.height+$n*2,radius:Ar}},[bo,pn]);return[Zt,mo]}var Ee=_(57901),_e={fill:"transparent",pointerEvents:"auto"},we=function(vr){var pn=vr.prefixCls,wr=vr.rootClassName,Sr=vr.pos,Ai=vr.showMask,mo=vr.style,Fr=mo===void 0?{}:mo,to=vr.fill,Ji=to===void 0?"rgba(0,0,0,0.5)":to,bo=vr.open,xn=vr.animated,fn=vr.zIndex,It=(0,Ee.Z)(),Zt="".concat(pn,"-mask-").concat(It),gn=(0,b.Z)(xn)==="object"?xn==null?void 0:xn.placeholder:xn;return v.createElement(k.Z,{open:bo,autoLock:!0},v.createElement("div",{className:g()("".concat(pn,"-mask"),wr),style:(0,R.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:fn,pointerEvents:Sr?"none":"auto"},Fr)},Ai?v.createElement("svg",{style:{width:"100%",height:"100%"}},v.createElement("defs",null,v.createElement("mask",{id:Zt},v.createElement("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"}),Sr&&v.createElement("rect",{x:Sr.left,y:Sr.top,rx:Sr.radius,width:Sr.width,height:Sr.height,fill:"black",className:gn?"".concat(pn,"-placeholder-animated"):""}))),v.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:Ji,mask:"url(#".concat(Zt,")")}),Sr&&v.createElement(v.Fragment,null,v.createElement("rect",(0,w.Z)({},_e,{x:"0",y:"0",width:"100%",height:Sr.top})),v.createElement("rect",(0,w.Z)({},_e,{x:"0",y:"0",width:Sr.left,height:"100%"})),v.createElement("rect",(0,w.Z)({},_e,{x:"0",y:Sr.top+Sr.height,width:"100%",height:"calc(100vh - ".concat(Sr.top+Sr.height,"px)")})),v.createElement("rect",(0,w.Z)({},_e,{x:Sr.left+Sr.width,y:"0",width:"calc(100vw - ".concat(Sr.left+Sr.width,"px)"),height:"100%"})))):null))},ot=we,He={adjustX:1,adjustY:1},vt=[0,0],dt={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function Pe(){var fr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,vr={};return Object.keys(dt).forEach(function(pn){vr[pn]=(0,R.Z)((0,R.Z)({},dt[pn]),{},{autoArrow:fr,targetOffset:vt})}),vr}var De=Pe(),Ae=_(40877);function Re(fr){var vr=fr.prefixCls,pn=fr.current,wr=fr.total,Sr=fr.title,Ai=fr.description,mo=fr.onClose,Fr=fr.onPrev,to=fr.onNext,Ji=fr.onFinish,bo=fr.className,xn=fr.closeIcon,fn=xn!==!1&&xn!==null,It=xn!==void 0&&xn!==!0?xn:v.createElement("span",{className:"".concat(vr,"-close-x")},"\xD7");return v.createElement("div",{className:g()("".concat(vr,"-content"),bo)},v.createElement("div",{className:"".concat(vr,"-inner")},fn&&v.createElement("button",{type:"button",onClick:mo,"aria-label":"Close",className:"".concat(vr,"-close")},It),v.createElement("div",{className:"".concat(vr,"-header")},v.createElement("div",{className:"".concat(vr,"-title")},Sr)),v.createElement("div",{className:"".concat(vr,"-description")},Ai),v.createElement("div",{className:"".concat(vr,"-footer")},v.createElement("div",{className:"".concat(vr,"-sliders")},wr>1?(0,Ae.Z)(Array.from({length:wr}).keys()).map(function(Zt,gn){return v.createElement("span",{key:Zt,className:gn===pn?"active":""})}):null),v.createElement("div",{className:"".concat(vr,"-buttons")},pn!==0?v.createElement("button",{className:"".concat(vr,"-prev-btn"),onClick:Fr},"Prev"):null,pn===wr-1?v.createElement("button",{className:"".concat(vr,"-finish-btn"),onClick:Ji},"Finish"):v.createElement("button",{className:"".concat(vr,"-next-btn"),onClick:to},"Next")))))}var $e=function(vr){var pn=vr.current,wr=vr.renderPanel;return v.createElement(v.Fragment,null,typeof wr=="function"?wr(vr,pn):v.createElement(Re,vr))},Ie=$e,Xe=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon"],ze={left:"50%",top:"50%",width:1,height:1},Kt=function(vr){var pn=vr.prefixCls,wr=pn===void 0?"rc-tour":pn,Sr=vr.steps,Ai=Sr===void 0?[]:Sr,mo=vr.defaultCurrent,Fr=vr.current,to=vr.onChange,Ji=vr.onClose,bo=vr.onFinish,xn=vr.open,fn=vr.mask,It=fn===void 0?!0:fn,Zt=vr.arrow,gn=Zt===void 0?!0:Zt,$n=vr.rootClassName,Ar=vr.placement,Dr=vr.renderPanel,dr=vr.gap,Xt=vr.animated,Cn=vr.scrollIntoViewOptions,er=Cn===void 0?!0:Cn,Mr=vr.zIndex,ji=Mr===void 0?1001:Mr,An=vr.closeIcon,Xn=(0,V.Z)(vr,Xe),nr=v.useRef(),qr=(0,O.Z)(0,{value:Fr,defaultValue:mo}),vi=(0,B.Z)(qr,2),Hr=vi[0],di=vi[1],gi=(0,O.Z)(void 0,{value:xn,postState:function(Ko){return Hr<0||Hr>=Ai.length?!1:Ko!=null?Ko:!0}}),mi=(0,B.Z)(gi,2),Bi=mi[0],zr=mi[1],Xr=v.useRef(Bi);(0,A.Z)(function(){Bi&&!Xr.current&&di(0),Xr.current=Bi},[Bi]);var Qi=Ai[Hr]||{},rs=Qi.target,Ur=Qi.placement,gs=Qi.style,Kr=Qi.arrow,ri=Qi.className,is=Qi.mask,Jr=Qi.scrollIntoViewOptions,_n=Qi.closeIcon,Br=Bi&&(is!=null?is:It),es=_n!=null?_n:An,ko=Jr!=null?Jr:er,vs=ve(rs,xn,dr,ko),Ba=(0,B.Z)(vs,2),uo=Ba[0],ca=Ba[1],ll=de(ca,Ar,Ur),Ti=ca?typeof Kr=="undefined"?gn:Kr:!1,Li=(0,b.Z)(Ti)==="object"?Ti.pointAtCenter:!1;(0,A.Z)(function(){var os;(os=nr.current)===null||os===void 0||os.forceAlign()},[Li,Hr]);var eo=function(Ko){di(Ko),to==null||to(Ko)};if(ca===void 0)return null;var Eo=function(){zr(!1),Ji==null||Ji(Hr)},hs=function(){return v.createElement(Ie,(0,w.Z)({arrow:Ti,key:"content",prefixCls:wr,total:Ai.length,renderPanel:Dr,onPrev:function(){eo(Hr-1)},onNext:function(){eo(Hr+1)},onClose:Eo,current:Hr,onFinish:function(){Eo(),bo==null||bo()},closeIcon:es},Ai[Hr]))},Wn=typeof Br=="boolean"?Br:!!Br,yo=typeof Br=="boolean"?void 0:Br,Qo=function(Ko){return Ko||ca||document.body};return v.createElement(v.Fragment,null,v.createElement(ot,{zIndex:ji,prefixCls:wr,pos:uo,showMask:Wn,style:yo==null?void 0:yo.style,fill:yo==null?void 0:yo.color,open:Bi,animated:Xt,rootClassName:$n}),v.createElement(M.Z,(0,w.Z)({builtinPlacements:Pe(Li)},Xn,{ref:nr,popupStyle:gs,popupPlacement:ll,popupVisible:Bi,popupClassName:g()($n,ri),prefixCls:wr,popup:hs,forceRender:!1,destroyPopupOnHide:!0,zIndex:ji,getTriggerDOMNode:Qo,arrow:!!Ti}),v.createElement(k.Z,{open:Bi,autoLock:!0},v.createElement("div",{className:g()($n,"".concat(wr,"-target-placeholder")),style:(0,R.Z)((0,R.Z)({},uo||ze),{},{position:"fixed",pointerEvents:"none"})}))))},St=Kt,nt=St,Ct=_(3966),lt=_(75261),Gt=_(91649),Rt=_(51059),an=_(57947),cn=_(49934),Cr=_(9949),ii=_(66951),Pi=_(44199),Ni=_(2162);function Yi(fr){return fr!=null}var Ts=fr=>{let{stepProps:vr,current:pn,type:wr,indicatorsRender:Sr,closeIcon:Ai}=fr;var mo,Fr;const{prefixCls:to,total:Ji=1,title:bo,onClose:xn,onPrev:fn,onNext:It,onFinish:Zt,cover:gn,description:$n,nextButtonProps:Ar,prevButtonProps:Dr,type:dr,closeIcon:Xt}=vr,Cn=dr!=null?dr:wr,er=Xt!=null?Xt:Ai,Mr=er!==!1&&er!==null,[ji,An]=(0,Ni.Z)(Mr,er,Xr=>v.createElement("span",{onClick:xn,"aria-label":"Close",className:`${to}-close`},Xr),v.createElement(cn.Z,{className:`${to}-close-icon`}),!0),Xn=pn===Ji-1,nr=()=>{var Xr;fn==null||fn(),(Xr=Dr==null?void 0:Dr.onClick)===null||Xr===void 0||Xr.call(Dr)},qr=()=>{var Xr;Xn?Zt==null||Zt():It==null||It(),(Xr=Ar==null?void 0:Ar.onClick)===null||Xr===void 0||Xr.call(Ar)},vi=Yi(bo)?v.createElement("div",{className:`${to}-header`},v.createElement("div",{className:`${to}-title`},bo)):null,Hr=Yi($n)?v.createElement("div",{className:`${to}-description`},$n):null,di=Yi(gn)?v.createElement("div",{className:`${to}-cover`},gn):null;let gi;Sr?gi=Sr(pn,Ji):gi=(0,Ae.Z)(Array.from({length:Ji}).keys()).map((Xr,Qi)=>v.createElement("span",{key:Xr,className:g()(Qi===pn&&`${to}-indicator-active`,`${to}-indicator`)}));const mi=Cn==="primary"?"default":"primary",Bi={type:"default",ghost:Cn==="primary"},[zr]=(0,ii.Z)("Tour",Pi.Z.Tour);return v.createElement("div",{className:`${to}-content`},v.createElement("div",{className:`${to}-inner`},ji&&An,di,vi,Hr,v.createElement("div",{className:`${to}-footer`},Ji>1&&v.createElement("div",{className:`${to}-indicators`},gi),v.createElement("div",{className:`${to}-buttons`},pn!==0?v.createElement(Cr.ZP,Object.assign({},Bi,Dr,{onClick:nr,size:"small",className:g()(`${to}-prev-btn`,Dr==null?void 0:Dr.className)}),(mo=Dr==null?void 0:Dr.children)!==null&&mo!==void 0?mo:zr==null?void 0:zr.Previous):null,v.createElement(Cr.ZP,Object.assign({type:mi},Ar,{onClick:qr,size:"small",className:g()(`${to}-next-btn`,Ar==null?void 0:Ar.className)}),(Fr=Ar==null?void 0:Ar.children)!==null&&Fr!==void 0?Fr:Xn?zr==null?void 0:zr.Finish:zr==null?void 0:zr.Next)))))},Bs=_(38762),Ce=_(64993),Gi=_(35772),qi=_(79208),co=_(67859),fi=_(80172),Ms=_(11882),In=_(36646);const et=fr=>{const{componentCls:vr,lineHeight:pn,padding:wr,paddingXS:Sr,borderRadius:Ai,borderRadiusXS:mo,colorPrimary:Fr,colorText:to,colorFill:Ji,indicatorHeight:bo,indicatorWidth:xn,boxShadowTertiary:fn,tourZIndexPopup:It,fontSize:Zt,colorBgElevated:gn,fontWeightStrong:$n,marginXS:Ar,colorTextLightSolid:Dr,tourBorderRadius:dr,colorWhite:Xt,primaryNextBtnHoverBg:Cn,closeBtnSize:er,motionDurationSlow:Mr,antCls:ji,primaryPrevBtnBg:An}=fr;return[{[vr]:Object.assign(Object.assign({},(0,Gi.Wf)(fr)),{color:to,position:"absolute",zIndex:It,display:"block",visibility:"visible",fontSize:Zt,lineHeight:pn,width:520,"--antd-arrow-background-color":gn,"&-pure":{maxWidth:"100%",position:"relative"},[`&${vr}-hidden`]:{display:"none"},[`${vr}-content`]:{position:"relative"},[`${vr}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:dr,boxShadow:fn,position:"relative",backgroundColor:gn,border:"none",backgroundClip:"padding-box",[`${vr}-close`]:{position:"absolute",top:wr,insetInlineEnd:wr,color:fr.colorIcon,outline:"none",width:er,height:er,borderRadius:fr.borderRadiusSM,transition:`background-color ${fr.motionDurationMid}, color ${fr.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:fr.colorIconHover,backgroundColor:fr.closeBtnHoverBg}},[`${vr}-cover`]:{textAlign:"center",padding:`${(0,In.bf)(fr.calc(wr).add(er).add(Sr).equal())} ${(0,In.bf)(wr)} 0`,img:{width:"100%"}},[`${vr}-header`]:{padding:`${(0,In.bf)(wr)} ${(0,In.bf)(wr)} ${(0,In.bf)(Sr)}`,[`${vr}-title`]:{lineHeight:pn,fontSize:Zt,fontWeight:$n}},[`${vr}-description`]:{padding:`0 ${(0,In.bf)(wr)}`,lineHeight:pn,wordWrap:"break-word"},[`${vr}-footer`]:{padding:`${(0,In.bf)(Sr)} ${(0,In.bf)(wr)} ${(0,In.bf)(wr)}`,textAlign:"end",borderRadius:`0 0 ${(0,In.bf)(mo)} ${(0,In.bf)(mo)}`,display:"flex",[`${vr}-indicators`]:{display:"inline-block",[`${vr}-indicator`]:{width:xn,height:bo,display:"inline-block",borderRadius:"50%",background:Ji,"&:not(:last-child)":{marginInlineEnd:bo},"&-active":{background:Fr}}},[`${vr}-buttons`]:{marginInlineStart:"auto",[`${ji}-btn`]:{marginInlineStart:Ar}}}},[`${vr}-primary, &${vr}-primary`]:{"--antd-arrow-background-color":Fr,[`${vr}-inner`]:{color:Dr,textAlign:"start",textDecoration:"none",backgroundColor:Fr,borderRadius:Ai,boxShadow:fn,[`${vr}-close`]:{color:Dr},[`${vr}-indicators`]:{[`${vr}-indicator`]:{background:An,"&-active":{background:Dr}}},[`${vr}-prev-btn`]:{color:Dr,borderColor:An,backgroundColor:Fr,"&:hover":{backgroundColor:An,borderColor:"transparent"}},[`${vr}-next-btn`]:{color:Fr,borderColor:"transparent",background:Xt,"&:hover":{background:Cn}}}}}),[`${vr}-mask`]:{[`${vr}-placeholder-animated`]:{transition:`all ${Mr}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${vr}-inner`]:{borderRadius:fr.min(dr,qi.qN)}}},(0,qi.ZP)(fr,"var(--antd-arrow-background-color)")]},Dt=fr=>Object.assign(Object.assign({zIndexPopup:fr.zIndexPopupBase+70,closeBtnSize:fr.fontSize*fr.lineHeight,primaryPrevBtnBg:new Ce.C(fr.colorTextLightSolid).setAlpha(.15).toRgbString(),closeBtnHoverBg:fr.wireframe?"transparent":fr.colorFillContent,primaryNextBtnHoverBg:new Ce.C(fr.colorBgTextHover).onBackground(fr.colorWhite).toRgbString()},(0,qi.wZ)({contentRadius:fr.borderRadiusLG,limitVerticalRadius:!0})),(0,Ms.w)(fr));var $t=(0,co.I$)("Tour",fr=>{const{borderRadiusLG:vr}=fr,pn=(0,fi.TS)(fr,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:vr});return[et(pn)]},Dt),Dn=_(52910),gr=function(fr,vr){var pn={};for(var wr in fr)Object.prototype.hasOwnProperty.call(fr,wr)&&vr.indexOf(wr)<0&&(pn[wr]=fr[wr]);if(fr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sr=0,wr=Object.getOwnPropertySymbols(fr);Sr{const{prefixCls:vr,current:pn=0,total:wr=6,className:Sr,style:Ai,type:mo}=fr,Fr=gr(fr,["prefixCls","current","total","className","style","type"]),{getPrefixCls:to}=v.useContext(Rt.E_),Ji=to("tour",vr),[bo,xn]=$t(Ji);return bo(v.createElement(Bs.t5,{prefixCls:Ji,hashId:xn,className:g()(Sr,`${Ji}-pure`,mo&&`${Ji}-${mo}`),style:Ai},v.createElement(Ts,{stepProps:Object.assign(Object.assign({},Fr),{prefixCls:Ji,total:wr}),current:pn,type:mo})))};var bn=(0,Dn.i)(kn),zt=function(fr,vr){var pn={};for(var wr in fr)Object.prototype.hasOwnProperty.call(fr,wr)&&vr.indexOf(wr)<0&&(pn[wr]=fr[wr]);if(fr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sr=0,wr=Object.getOwnPropertySymbols(fr);Sr{const{prefixCls:vr,type:pn,rootClassName:wr,indicatorsRender:Sr,steps:Ai}=fr,mo=zt(fr,["prefixCls","type","rootClassName","indicatorsRender","steps"]),{getPrefixCls:Fr,direction:to}=(0,v.useContext)(Rt.E_),Ji=Fr("tour",vr),[bo,xn]=$t(Ji),[,fn]=(0,an.ZP)(),It=(0,v.useMemo)(()=>Ai==null?void 0:Ai.map(dr=>{var Xt;return Object.assign(Object.assign({},dr),{className:g()(dr.className,{[`${Ji}-primary`]:((Xt=dr.type)!==null&&Xt!==void 0?Xt:pn)==="primary"})})}),[Ai,pn]),Zt=(0,lt.Z)({arrowPointAtCenter:!0,autoAdjustOverflow:!0,offset:fn.marginXXS,arrowWidth:fn.sizePopupArrow,borderRadius:fn.borderRadius}),gn=g()({[`${Ji}-rtl`]:to==="rtl"},xn,wr),$n=(dr,Xt)=>v.createElement(Ts,{type:pn,stepProps:dr,current:Xt,indicatorsRender:Sr}),[Ar,Dr]=(0,Ct.Cn)("Tour",mo.zIndex);return bo(v.createElement(Gt.Z.Provider,{value:Dr},v.createElement(nt,Object.assign({},mo,{zIndex:Ar,rootClassName:gn,prefixCls:Ji,animated:!0,renderPanel:$n,builtinPlacements:Zt,steps:It}))))};Jt._InternalPanelDoNotUseOrYouWillBeFired=bn;var yn=Jt},48631:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return Xn}});var v=_(77617),R=_(75769),w=_(61796),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},B=b,V=_(91851),k=function(qr,vi){return v.createElement(V.Z,(0,w.Z)({},qr,{ref:vi,icon:B}))},M=v.forwardRef(k),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},g=C,A=function(qr,vi){return v.createElement(V.Z,(0,w.Z)({},qr,{ref:vi,icon:g}))},O=v.forwardRef(A),K=_(12124),ce=_.n(K),de=_(25769),ve=_.n(de),Ee=_(28647),_e=_(45659),we=_(70658),ot=_(84381),He=_(99468),vt=_(88831),dt=_(30034),Pe=_(84821),De=function(nr,qr){var vi={};for(var Hr in nr)Object.prototype.hasOwnProperty.call(nr,Hr)&&qr.indexOf(Hr)<0&&(vi[Hr]=nr[Hr]);if(nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var di=0,Hr=Object.getOwnPropertySymbols(nr);di{const vi=Xr=>{const{keyCode:Qi}=Xr;Qi===Pe.Z.ENTER&&Xr.preventDefault()},Hr=Xr=>{const{keyCode:Qi}=Xr,{onClick:rs}=nr;Qi===Pe.Z.ENTER&&rs&&rs()},{style:di,noStyle:gi,disabled:mi}=nr,Bi=De(nr,["style","noStyle","disabled"]);let zr={};return gi||(zr=Object.assign({},Ae)),mi&&(zr.pointerEvents="none"),zr=Object.assign(Object.assign({},zr),di),v.createElement("div",Object.assign({role:"button",tabIndex:0,ref:qr},Bi,{onKeyDown:vi,onKeyUp:Hr,style:zr}))}),Ie=_(51059),Xe=_(66951),ze=_(38134),Kt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},St=Kt,nt=function(qr,vi){return v.createElement(V.Z,(0,w.Z)({},qr,{ref:vi,icon:St}))},Ct=v.forwardRef(nt),lt=_(29341),Gt=_(9747),Rt=_(79602),an=_(67859),cn=_(63511),Cr=_(36646);const ii=(nr,qr,vi,Hr)=>{const{titleMarginBottom:di,fontWeightStrong:gi}=Hr;return{marginBottom:di,color:vi,fontWeight:gi,fontSize:nr,lineHeight:qr}},Pi=nr=>{const qr=[1,2,3,4,5],vi={};return qr.forEach(Hr=>{vi[` + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),A)}},91945:function(yt,Y,y){"use strict";y.d(Y,{ZP:function(){return Me},I$:function(){return Xe},bk:function(){return Ue}});var v=y(67294),P=y(43109),w=y(94184),b=y.n(w),B=y(56790),V=y(53124),k=y(14747),R=y(25976),C=y(15671),g=y(43144),A=y(60136),O=y(29388),he=(0,g.Z)(function Be(){(0,C.Z)(this,Be)});let ae=function(Be){(0,A.Z)(St,Be);var Xt=(0,O.Z)(St);function St(nt){var wt;return(0,C.Z)(this,St),wt=Xt.call(this),wt.result=0,nt instanceof St?wt.result=nt.result:typeof nt=="number"&&(wt.result=nt),wt}return(0,g.Z)(St,[{key:"add",value:function(wt){return wt instanceof St?this.result+=wt.result:typeof wt=="number"&&(this.result+=wt),this}},{key:"sub",value:function(wt){return wt instanceof St?this.result-=wt.result:typeof wt=="number"&&(this.result-=wt),this}},{key:"mul",value:function(wt){return wt instanceof St?this.result*=wt.result:typeof wt=="number"&&(this.result*=wt),this}},{key:"div",value:function(wt){return wt instanceof St?this.result/=wt.result:typeof wt=="number"&&(this.result/=wt),this}},{key:"equal",value:function(){return this.result}}]),St}(he);const fe="CALC_UNIT";function xe(Be){return typeof Be=="number"?`${Be}${fe}`:Be}let ye=function(Be){(0,A.Z)(St,Be);var Xt=(0,O.Z)(St);function St(nt){var wt;return(0,C.Z)(this,St),wt=Xt.call(this),wt.result="",nt instanceof St?wt.result=`(${nt.result})`:typeof nt=="number"?wt.result=xe(nt):typeof nt=="string"&&(wt.result=nt),wt}return(0,g.Z)(St,[{key:"add",value:function(wt){return wt instanceof St?this.result=`${this.result} + ${wt.getResult()}`:(typeof wt=="number"||typeof wt=="string")&&(this.result=`${this.result} + ${xe(wt)}`),this.lowPriority=!0,this}},{key:"sub",value:function(wt){return wt instanceof St?this.result=`${this.result} - ${wt.getResult()}`:(typeof wt=="number"||typeof wt=="string")&&(this.result=`${this.result} - ${xe(wt)}`),this.lowPriority=!0,this}},{key:"mul",value:function(wt){return this.lowPriority&&(this.result=`(${this.result})`),wt instanceof St?this.result=`${this.result} * ${wt.getResult(!0)}`:(typeof wt=="number"||typeof wt=="string")&&(this.result=`${this.result} * ${wt}`),this.lowPriority=!1,this}},{key:"div",value:function(wt){return this.lowPriority&&(this.result=`(${this.result})`),wt instanceof St?this.result=`${this.result} / ${wt.getResult(!0)}`:(typeof wt=="number"||typeof wt=="string")&&(this.result=`${this.result} / ${wt}`),this.lowPriority=!1,this}},{key:"getResult",value:function(wt){return this.lowPriority||wt?`(${this.result})`:this.result}},{key:"equal",value:function(wt){const{unit:lt=!0}=wt||{},Kt=new RegExp(`${fe}`,"g");return this.result=this.result.replace(Kt,lt?"px":""),typeof this.lowPriority!="undefined"?`calc(${this.result})`:this.result}}]),St}(he);var Qe=Be=>{const Xt=Be==="css"?ye:ae;return St=>new Xt(St)};function Ve(Be){return Be==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var Xt=arguments.length,St=new Array(Xt),nt=0;nt(0,P.bf)(wt)).join(",")})`},min:function(){for(var Xt=arguments.length,St=new Array(Xt),nt=0;nt(0,P.bf)(wt)).join(",")})`}}}var pt=y(45503),st=y(53269);const Ae=(Be,Xt,St)=>{var nt;return typeof St=="function"?St((0,pt.TS)(Xt,(nt=Xt[Be])!==null&&nt!==void 0?nt:{})):St!=null?St:{}},De=(Be,Xt,St,nt)=>{const wt=Object.assign({},Xt[Be]);if(nt!=null&&nt.deprecatedTokens){const{deprecatedTokens:Kt}=nt;Kt.forEach(Mt=>{let[hn,un]=Mt;var Sr;(wt!=null&&wt[hn]||wt!=null&&wt[un])&&((Sr=wt[un])!==null&&Sr!==void 0||(wt[un]=wt==null?void 0:wt[hn]))})}let lt=Object.assign(Object.assign({},St),wt);return nt!=null&&nt.format&&(lt=nt.format(lt)),Object.keys(lt).forEach(Kt=>{lt[Kt]===Xt[Kt]&&delete lt[Kt]}),lt},Te=(Be,Xt)=>`${[Xt,Be.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function Me(Be,Xt,St){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const wt=Array.isArray(Be)?Be:[Be,Be],[lt]=wt,Kt=wt.join("-");return Mt=>{const[hn,un,Sr,ii,Ii]=(0,R.ZP)(),{getPrefixCls:Ni,iconPrefixCls:eo,csp:ti}=(0,v.useContext)(V.E_),Is=Ni(),Ns=Ii?"css":"js",Se=Qe(Ns),{max:Xi,min:Yi}=Ve(Ns),fo={theme:hn,token:ii,hashId:Sr,nonce:()=>ti==null?void 0:ti.nonce,clientOnly:nt.clientOnly,order:nt.order||-999};return(0,P.xy)(Object.assign(Object.assign({},fo),{clientOnly:!1,path:["Shared",Is]}),()=>[{"&":(0,k.Lx)(ii)}]),(0,st.Z)(eo,ti),[(0,P.xy)(Object.assign(Object.assign({},fo),{path:[Kt,Mt,eo]}),()=>{if(nt.injectStyle===!1)return[];const{token:Fs,flush:Ln}=(0,pt.ZP)(ii),it=Ae(lt,un,St),Ot=`.${Mt}`,Ht=De(lt,un,it,{deprecatedTokens:nt.deprecatedTokens,format:nt.format});Ii&&Object.keys(it).forEach(In=>{it[In]=`var(${(0,P.ks)(In,Te(lt,Ii.prefix))})`});const Pn=(0,pt.TS)(Fs,{componentCls:Ot,prefixCls:Mt,iconCls:`.${eo}`,antCls:`.${Is}`,calc:Se,max:Xi,min:Yi},Ii?it:Ht),fr=Xt(Pn,{hashId:Sr,prefixCls:Mt,rootPrefixCls:Is,iconPrefixCls:eo});return Ln(lt,Ht),[nt.resetStyle===!1?null:(0,k.du)(Pn,Mt),fr]}),b()(Sr,Ii==null?void 0:Ii.key)]}}const Ue=(Be,Xt,St,nt)=>{const wt=Me(Be,Xt,St,Object.assign({resetStyle:!1,order:-998},nt));return Kt=>{let{prefixCls:Mt}=Kt;return wt(Mt),null}},Pe=(Be,Xt,St)=>{function nt(un){return`${Be}${un.slice(0,1).toUpperCase()}${un.slice(1)}`}const{unitless:wt={},injectStyle:lt=!0}=St!=null?St:{},Kt={[nt("zIndexPopup")]:!0};Object.keys(wt).forEach(un=>{Kt[nt(un)]=wt[un]});const Mt=un=>{let{rootCls:Sr,cssVar:ii}=un;const[,Ii]=(0,R.ZP)();return(0,P.CI)({path:[Be],prefix:ii.prefix,key:ii==null?void 0:ii.key,unitless:Object.assign(Object.assign({},R.NJ),Kt),ignore:R.ID,token:Ii,scope:Sr},()=>{const Ni=Ae(Be,Ii,Xt),eo=De(Be,Ii,Ni,{format:St==null?void 0:St.format,deprecatedTokens:St==null?void 0:St.deprecatedTokens});return Object.keys(Ni).forEach(ti=>{eo[nt(ti)]=eo[ti],delete eo[ti]}),eo}),null};return un=>{const[,,,,Sr]=(0,R.ZP)();return ii=>lt&&Sr?v.createElement(v.Fragment,null,v.createElement(Mt,{rootCls:un,cssVar:Sr,component:Be}),ii):ii}},Xe=(Be,Xt,St,nt)=>{const wt=Me(Be,Xt,St,nt),lt=Pe(Be,St,nt);return function(Kt){let Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kt;const[,hn]=wt(Kt);return[lt(Mt),hn]}}},45503:function(yt,Y,y){"use strict";y.d(Y,{TS:function(){return w},ZP:function(){return k}});const v=typeof CSSINJS_STATISTIC!="undefined";let P=!0;function w(){for(var R=arguments.length,C=new Array(R),g=0;g{Object.keys(O).forEach(he=>{Object.defineProperty(A,he,{configurable:!0,enumerable:!0,get:()=>O[he]})})}),P=!0,A}const b={},B={};function V(){}function k(R){let C,g=R,A=V;return v&&typeof Proxy!="undefined"&&(C=new Set,g=new Proxy(R,{get(O,K){return P&&C.add(K),O[K]}}),A=(O,K)=>{var he;b[O]={global:Array.from(C),component:Object.assign(Object.assign({},(he=b[O])===null||he===void 0?void 0:he.component),K)}}),{token:g,keys:C,flush:A}}},53269:function(yt,Y,y){"use strict";var v=y(43109),P=y(14747),w=y(25976);const b=(B,V)=>{const[k,R]=(0,w.ZP)();return(0,v.xy)({theme:k,token:R,hashId:"",path:["ant-design-icons",B],nonce:()=>V==null?void 0:V.nonce},()=>[{[`.${B}`]:Object.assign(Object.assign({},(0,P.Ro)()),{[`.${B} .${B}-icon`]:{display:"block"}})}])};Y.Z=b},61781:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return Kt}});var v=y(67294),P=y(94184),w=y.n(P),b=y(92419),B=y(21770),V=y(87263),k=y(33603),R=y(80636),C=y(96159),g=y(27288),A=y(43945),O=y(53124),K=y(4173),he=y(25976),ae=y(14747),fe=y(50438),xe=y(97414),ye=y(8796);function be(Mt,hn){return ye.i.reduce((un,Sr)=>{const ii=Mt[`${Sr}1`],Ii=Mt[`${Sr}3`],Ni=Mt[`${Sr}6`],eo=Mt[`${Sr}7`];return Object.assign(Object.assign({},un),hn(Sr,{lightColor:ii,lightBorderColor:Ii,darkColor:Ni,textColor:eo}))},{})}var Qe=y(45503),Ve=y(91945),pt=y(43109),st=y(79511);const Ae=Mt=>{const{componentCls:hn,tooltipMaxWidth:un,tooltipColor:Sr,tooltipBg:ii,tooltipBorderRadius:Ii,zIndexPopup:Ni,controlHeight:eo,boxShadowSecondary:ti,paddingSM:Is,paddingXS:Ns}=Mt;return[{[hn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(Mt)),{position:"absolute",zIndex:Ni,display:"block",width:"max-content",maxWidth:un,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":ii,[`${hn}-inner`]:{minWidth:eo,minHeight:eo,padding:`${(0,pt.bf)(Mt.calc(Is).div(2).equal())} ${(0,pt.bf)(Ns)}`,color:Sr,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:ii,borderRadius:Ii,boxShadow:ti,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${hn}-inner`]:{borderRadius:Mt.min(Ii,xe.qN)}},[`${hn}-content`]:{position:"relative"}}),be(Mt,(Se,Xi)=>{let{darkColor:Yi}=Xi;return{[`&${hn}-${Se}`]:{[`${hn}-inner`]:{backgroundColor:Yi},[`${hn}-arrow`]:{"--antd-arrow-background-color":Yi}}}})),{"&-rtl":{direction:"rtl"}})},(0,xe.ZP)(Mt,"var(--antd-arrow-background-color)"),{[`${hn}-pure`]:{position:"relative",maxWidth:"none",margin:Mt.sizePopupArrow}}]},De=Mt=>Object.assign(Object.assign({zIndexPopup:Mt.zIndexPopupBase+70},(0,xe.wZ)({contentRadius:Mt.borderRadius,limitVerticalRadius:!0})),(0,st.w)((0,Qe.TS)(Mt,{borderRadiusOuter:Math.min(Mt.borderRadiusOuter,4)})));var Te=function(Mt){let hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,Ve.I$)("Tooltip",Sr=>{const{borderRadius:ii,colorTextLightSolid:Ii,colorBgSpotlight:Ni}=Sr,eo=(0,Qe.TS)(Sr,{tooltipMaxWidth:250,tooltipColor:Ii,tooltipBorderRadius:ii,tooltipBg:Ni});return[Ae(eo),(0,fe._y)(Sr,"zoom-big-fast")]},De,{resetStyle:!1,injectStyle:hn})(Mt)},Me=y(74902);const Ue=ye.i.map(Mt=>`${Mt}-inverse`),Pe=null;function Xe(Mt){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,Me.Z)(Ue),(0,Me.Z)(ye.i)).includes(Mt):ye.i.includes(Mt)}function Be(Mt){return Pe.includes(Mt)}function Xt(Mt,hn){const un=Xe(hn),Sr=w()({[`${Mt}-${hn}`]:hn&&un}),ii={},Ii={};return hn&&!un&&(ii.background=hn,Ii["--antd-arrow-background-color"]=hn),{className:Sr,overlayStyle:ii,arrowStyle:Ii}}var nt=Mt=>{const{prefixCls:hn,className:un,placement:Sr="top",title:ii,color:Ii,overlayInnerStyle:Ni}=Mt,{getPrefixCls:eo}=v.useContext(O.E_),ti=eo("tooltip",hn),[Is,Ns]=Te(ti),Se=Xt(ti,Ii),Xi=Se.arrowStyle,Yi=Object.assign(Object.assign({},Ni),Se.overlayStyle),fo=w()(Ns,ti,`${ti}-pure`,`${ti}-placement-${Sr}`,un,Se.className);return Is(v.createElement("div",{className:fo,style:Xi},v.createElement("div",{className:`${ti}-arrow`}),v.createElement(b.G,Object.assign({},Mt,{className:Ns,prefixCls:ti,overlayInnerStyle:Yi}),ii)))},wt=function(Mt,hn){var un={};for(var Sr in Mt)Object.prototype.hasOwnProperty.call(Mt,Sr)&&hn.indexOf(Sr)<0&&(un[Sr]=Mt[Sr]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ii=0,Sr=Object.getOwnPropertySymbols(Mt);ii{var un,Sr;const{prefixCls:ii,openClassName:Ii,getTooltipContainer:Ni,overlayClassName:eo,color:ti,overlayInnerStyle:Is,children:Ns,afterOpenChange:Se,afterVisibleChange:Xi,destroyTooltipOnHide:Yi,arrow:fo=!0,title:di,overlay:Fs,builtinPlacements:Ln,arrowPointAtCenter:it=!1,autoAdjustOverflow:Ot=!0}=Mt,Ht=!!fo,[,Pn]=(0,he.ZP)(),{getPopupContainer:fr,getPrefixCls:In,direction:mn}=v.useContext(O.E_),Ut=(0,g.ln)("Tooltip"),en=v.useRef(null),Cn=()=>{var Hr;(Hr=en.current)===null||Hr===void 0||Hr.forceAlign()};v.useImperativeHandle(hn,()=>({forceAlign:Cn,forcePopupAlign:()=>{Ut.deprecated(!1,"forcePopupAlign","forceAlign"),Cn()}}));const[lr,pr]=(0,B.Z)(!1,{value:(un=Mt.open)!==null&&un!==void 0?un:Mt.visible,defaultValue:(Sr=Mt.defaultOpen)!==null&&Sr!==void 0?Sr:Mt.defaultVisible}),an=!di&&!Fs&&di!==0,wr=Hr=>{var ci,gi;pr(an?!1:Hr),an||((ci=Mt.onOpenChange)===null||ci===void 0||ci.call(Mt,Hr),(gi=Mt.onVisibleChange)===null||gi===void 0||gi.call(Mt,Hr))},Cr=v.useMemo(()=>{var Hr,ci;let gi=it;return typeof fo=="object"&&(gi=(ci=(Hr=fo.pointAtCenter)!==null&&Hr!==void 0?Hr:fo.arrowPointAtCenter)!==null&&ci!==void 0?ci:it),Ln||(0,R.Z)({arrowPointAtCenter:gi,autoAdjustOverflow:Ot,arrowWidth:Ht?Pn.sizePopupArrow:0,borderRadius:Pn.borderRadius,offset:Pn.marginXXS,visibleFirst:!0})},[it,fo,Ln,Pn]),Ei=v.useMemo(()=>di===0?di:Fs||di||"",[Fs,di]),vo=v.createElement(K.BR,null,typeof Ei=="function"?Ei():Ei),{getPopupContainer:kr,placement:ro="top",mouseEnterDelay:qi=.1,mouseLeaveDelay:bo=.1,overlayStyle:xn,rootClassName:pn}=Mt,Dt=wt(Mt,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Zt=In("tooltip",ii),vn=In(),$n=Mt["data-popover-inject"];let Ar=lr;!("open"in Mt)&&!("visible"in Mt)&&an&&(Ar=!1);const Dr=(0,C.l$)(Ns)&&!(0,C.M2)(Ns)?Ns:v.createElement("span",null,Ns),dr=Dr.props,Yt=!dr.className||typeof dr.className=="string"?w()(dr.className,Ii||`${Zt}-open`):dr.className,[wn,Qn]=Te(Zt,!$n),Mr=Xt(Zt,ti),Wi=Mr.arrowStyle,Dn=Object.assign(Object.assign({},Is),Mr.overlayStyle),Kn=w()(eo,{[`${Zt}-rtl`]:mn==="rtl"},Mr.className,pn,Qn),[nr,qr]=(0,V.Cn)("Tooltip",Dt.zIndex),yi=v.createElement(b.Z,Object.assign({},Dt,{zIndex:nr,showArrow:Ht,placement:ro,mouseEnterDelay:qi,mouseLeaveDelay:bo,prefixCls:Zt,overlayClassName:Kn,overlayStyle:Object.assign(Object.assign({},Wi),xn),getTooltipContainer:kr||Ni||fr,ref:en,builtinPlacements:Cr,overlay:vo,visible:Ar,onVisibleChange:wr,afterVisibleChange:Se!=null?Se:Xi,overlayInnerStyle:Dn,arrowContent:v.createElement("span",{className:`${Zt}-arrow-content`}),motion:{motionName:(0,k.m)(vn,"zoom-big-fast",Mt.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Yi}),Ar?(0,C.Tm)(Dr,{className:Yt}):Dr);return wn(v.createElement(A.Z.Provider,{value:qr},yi))});lt._InternalPanelDoNotUseOrYouWillBeFired=nt;var Kt=lt},93531:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return Cn}});var v=y(67294),P=y(1413),w=y(87462),b=y(71002),B=y(97685),V=y(91),k=y(2788),R=y(40228),C=y(94184),g=y.n(C),A=y(8410),O=y(21770),K=y(66680);function he(lr){var pr=window.innerWidth||document.documentElement.clientWidth,an=window.innerHeight||document.documentElement.clientHeight,wr=lr.getBoundingClientRect(),Cr=wr.top,Ei=wr.right,vo=wr.bottom,kr=wr.left;return Cr>=0&&kr>=0&&Ei<=pr&&vo<=an}function ae(lr,pr,an){var wr;return(wr=an!=null?an:pr)!==null&&wr!==void 0?wr:lr===null?"center":"bottom"}function fe(lr,pr,an,wr){var Cr=(0,v.useState)(void 0),Ei=(0,B.Z)(Cr,2),vo=Ei[0],kr=Ei[1];(0,A.Z)(function(){var vn=typeof lr=="function"?lr():lr;kr(vn||null)});var ro=(0,v.useState)(null),qi=(0,B.Z)(ro,2),bo=qi[0],xn=qi[1],pn=(0,K.Z)(function(){if(vo){!he(vo)&&pr&&vo.scrollIntoView(wr);var vn=vo.getBoundingClientRect(),$n=vn.left,Ar=vn.top,Dr=vn.width,dr=vn.height,Yt={left:$n,top:Ar,width:Dr,height:dr,radius:0};xn(function(wn){return JSON.stringify(wn)!==JSON.stringify(Yt)?Yt:wn})}else xn(null)}),Dt=function($n){var Ar;return(Ar=Array.isArray(an==null?void 0:an.offset)?an==null?void 0:an.offset[$n]:an==null?void 0:an.offset)!==null&&Ar!==void 0?Ar:6};(0,A.Z)(function(){return pn(),window.addEventListener("resize",pn),function(){window.removeEventListener("resize",pn)}},[vo,pr,pn]);var Zt=(0,v.useMemo)(function(){if(!bo)return bo;var vn=Dt(0),$n=Dt(1),Ar=(an==null?void 0:an.radius)||2;return{left:bo.left-vn,top:bo.top-$n,width:bo.width+vn*2,height:bo.height+$n*2,radius:Ar}},[bo,an]);return[Zt,vo]}var xe=y(7028),ye={fill:"transparent",pointerEvents:"auto"},be=function(pr){var an=pr.prefixCls,wr=pr.rootClassName,Cr=pr.pos,Ei=pr.showMask,vo=pr.style,kr=vo===void 0?{}:vo,ro=pr.fill,qi=ro===void 0?"rgba(0,0,0,0.5)":ro,bo=pr.open,xn=pr.animated,pn=pr.zIndex,Dt=(0,xe.Z)(),Zt="".concat(an,"-mask-").concat(Dt),vn=(0,b.Z)(xn)==="object"?xn==null?void 0:xn.placeholder:xn;return v.createElement(k.Z,{open:bo,autoLock:!0},v.createElement("div",{className:g()("".concat(an,"-mask"),wr),style:(0,P.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:pn,pointerEvents:Cr?"none":"auto"},kr)},Ei?v.createElement("svg",{style:{width:"100%",height:"100%"}},v.createElement("defs",null,v.createElement("mask",{id:Zt},v.createElement("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"}),Cr&&v.createElement("rect",{x:Cr.left,y:Cr.top,rx:Cr.radius,width:Cr.width,height:Cr.height,fill:"black",className:vn?"".concat(an,"-placeholder-animated"):""}))),v.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:qi,mask:"url(#".concat(Zt,")")}),Cr&&v.createElement(v.Fragment,null,v.createElement("rect",(0,w.Z)({},ye,{x:"0",y:"0",width:"100%",height:Cr.top})),v.createElement("rect",(0,w.Z)({},ye,{x:"0",y:"0",width:Cr.left,height:"100%"})),v.createElement("rect",(0,w.Z)({},ye,{x:"0",y:Cr.top+Cr.height,width:"100%",height:"calc(100vh - ".concat(Cr.top+Cr.height,"px)")})),v.createElement("rect",(0,w.Z)({},ye,{x:Cr.left+Cr.width,y:"0",width:"calc(100vw - ".concat(Cr.left+Cr.width,"px)"),height:"100%"})))):null))},Qe=be,Ve={adjustX:1,adjustY:1},pt=[0,0],st={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function Ae(){var lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,pr={};return Object.keys(st).forEach(function(an){pr[an]=(0,P.Z)((0,P.Z)({},st[an]),{},{autoArrow:lr,targetOffset:pt})}),pr}var De=Ae(),Te=y(74902);function Me(lr){var pr=lr.prefixCls,an=lr.current,wr=lr.total,Cr=lr.title,Ei=lr.description,vo=lr.onClose,kr=lr.onPrev,ro=lr.onNext,qi=lr.onFinish,bo=lr.className,xn=lr.closeIcon,pn=xn!==!1&&xn!==null,Dt=xn!==void 0&&xn!==!0?xn:v.createElement("span",{className:"".concat(pr,"-close-x")},"\xD7");return v.createElement("div",{className:g()("".concat(pr,"-content"),bo)},v.createElement("div",{className:"".concat(pr,"-inner")},pn&&v.createElement("button",{type:"button",onClick:vo,"aria-label":"Close",className:"".concat(pr,"-close")},Dt),v.createElement("div",{className:"".concat(pr,"-header")},v.createElement("div",{className:"".concat(pr,"-title")},Cr)),v.createElement("div",{className:"".concat(pr,"-description")},Ei),v.createElement("div",{className:"".concat(pr,"-footer")},v.createElement("div",{className:"".concat(pr,"-sliders")},wr>1?(0,Te.Z)(Array.from({length:wr}).keys()).map(function(Zt,vn){return v.createElement("span",{key:Zt,className:vn===an?"active":""})}):null),v.createElement("div",{className:"".concat(pr,"-buttons")},an!==0?v.createElement("button",{className:"".concat(pr,"-prev-btn"),onClick:kr},"Prev"):null,an===wr-1?v.createElement("button",{className:"".concat(pr,"-finish-btn"),onClick:qi},"Finish"):v.createElement("button",{className:"".concat(pr,"-next-btn"),onClick:ro},"Next")))))}var Ue=function(pr){var an=pr.current,wr=pr.renderPanel;return v.createElement(v.Fragment,null,typeof wr=="function"?wr(pr,an):v.createElement(Me,pr))},Pe=Ue,Xe=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon"],Be={left:"50%",top:"50%",width:1,height:1},Xt=function(pr){var an=pr.prefixCls,wr=an===void 0?"rc-tour":an,Cr=pr.steps,Ei=Cr===void 0?[]:Cr,vo=pr.defaultCurrent,kr=pr.current,ro=pr.onChange,qi=pr.onClose,bo=pr.onFinish,xn=pr.open,pn=pr.mask,Dt=pn===void 0?!0:pn,Zt=pr.arrow,vn=Zt===void 0?!0:Zt,$n=pr.rootClassName,Ar=pr.placement,Dr=pr.renderPanel,dr=pr.gap,Yt=pr.animated,wn=pr.scrollIntoViewOptions,Qn=wn===void 0?!0:wn,Mr=pr.zIndex,Wi=Mr===void 0?1001:Mr,Dn=pr.closeIcon,Kn=(0,V.Z)(pr,Xe),nr=v.useRef(),qr=(0,O.Z)(0,{value:kr,defaultValue:vo}),yi=(0,B.Z)(qr,2),Hr=yi[0],ci=yi[1],gi=(0,O.Z)(void 0,{value:xn,postState:function(Ko){return Hr<0||Hr>=Ei.length?!1:Ko!=null?Ko:!0}}),mi=(0,B.Z)(gi,2),Bi=mi[0],Nr=mi[1],Kr=v.useRef(Bi);(0,A.Z)(function(){Bi&&!Kr.current&&ci(0),Kr.current=Bi},[Bi]);var Qi=Ei[Hr]||{},ns=Qi.target,Ur=Qi.placement,gs=Qi.style,Gr=Qi.arrow,ni=Qi.className,is=Qi.mask,Jr=Qi.scrollIntoViewOptions,bn=Qi.closeIcon,Or=Bi&&(is!=null?is:Dt),qo=bn!=null?bn:Dn,Mo=Jr!=null?Jr:Qn,vs=fe(ns,xn,dr,Mo),Na=(0,B.Z)(vs,2),ho=Na[0],aa=Na[1],Ka=ae(aa,Ar,Ur),Si=aa?typeof Gr=="undefined"?vn:Gr:!1,Pi=(0,b.Z)(Si)==="object"?Si.pointAtCenter:!1;(0,A.Z)(function(){var ss;(ss=nr.current)===null||ss===void 0||ss.forceAlign()},[Pi,Hr]);var to=function(Ko){ci(Ko),ro==null||ro(Ko)};if(aa===void 0)return null;var So=function(){Nr(!1),qi==null||qi(Hr)},ps=function(){return v.createElement(Pe,(0,w.Z)({arrow:Si,key:"content",prefixCls:wr,total:Ei.length,renderPanel:Dr,onPrev:function(){to(Hr-1)},onNext:function(){to(Hr+1)},onClose:So,current:Hr,onFinish:function(){So(),bo==null||bo()},closeIcon:qo},Ei[Hr]))},Wn=typeof Or=="boolean"?Or:!!Or,yo=typeof Or=="boolean"?void 0:Or,Qo=function(Ko){return Ko||aa||document.body};return v.createElement(v.Fragment,null,v.createElement(Qe,{zIndex:Wi,prefixCls:wr,pos:ho,showMask:Wn,style:yo==null?void 0:yo.style,fill:yo==null?void 0:yo.color,open:Bi,animated:Yt,rootClassName:$n}),v.createElement(R.Z,(0,w.Z)({builtinPlacements:Ae(Pi)},Kn,{ref:nr,popupStyle:gs,popupPlacement:Ka,popupVisible:Bi,popupClassName:g()($n,ni),prefixCls:wr,popup:ps,forceRender:!1,destroyPopupOnHide:!0,zIndex:Wi,getTriggerDOMNode:Qo,arrow:!!Si}),v.createElement(k.Z,{open:Bi,autoLock:!0},v.createElement("div",{className:g()($n,"".concat(wr,"-target-placeholder")),style:(0,P.Z)((0,P.Z)({},ho||Be),{},{position:"fixed",pointerEvents:"none"})}))))},St=Xt,nt=St,wt=y(87263),lt=y(80636),Kt=y(43945),Mt=y(53124),hn=y(25976),un=y(62208),Sr=y(15867),ii=y(10110),Ii=y(88526),Ni=y(69760);function eo(lr){return lr!=null}var Is=lr=>{let{stepProps:pr,current:an,type:wr,indicatorsRender:Cr,closeIcon:Ei}=lr;var vo,kr;const{prefixCls:ro,total:qi=1,title:bo,onClose:xn,onPrev:pn,onNext:Dt,onFinish:Zt,cover:vn,description:$n,nextButtonProps:Ar,prevButtonProps:Dr,type:dr,closeIcon:Yt}=pr,wn=dr!=null?dr:wr,Qn=Yt!=null?Yt:Ei,Mr=Qn!==!1&&Qn!==null,[Wi,Dn]=(0,Ni.Z)(Mr,Qn,Kr=>v.createElement("span",{onClick:xn,"aria-label":"Close",className:`${ro}-close`},Kr),v.createElement(un.Z,{className:`${ro}-close-icon`}),!0),Kn=an===qi-1,nr=()=>{var Kr;pn==null||pn(),(Kr=Dr==null?void 0:Dr.onClick)===null||Kr===void 0||Kr.call(Dr)},qr=()=>{var Kr;Kn?Zt==null||Zt():Dt==null||Dt(),(Kr=Ar==null?void 0:Ar.onClick)===null||Kr===void 0||Kr.call(Ar)},yi=eo(bo)?v.createElement("div",{className:`${ro}-header`},v.createElement("div",{className:`${ro}-title`},bo)):null,Hr=eo($n)?v.createElement("div",{className:`${ro}-description`},$n):null,ci=eo(vn)?v.createElement("div",{className:`${ro}-cover`},vn):null;let gi;Cr?gi=Cr(an,qi):gi=(0,Te.Z)(Array.from({length:qi}).keys()).map((Kr,Qi)=>v.createElement("span",{key:Kr,className:g()(Qi===an&&`${ro}-indicator-active`,`${ro}-indicator`)}));const mi=wn==="primary"?"default":"primary",Bi={type:"default",ghost:wn==="primary"},[Nr]=(0,ii.Z)("Tour",Ii.Z.Tour);return v.createElement("div",{className:`${ro}-content`},v.createElement("div",{className:`${ro}-inner`},Wi&&Dn,ci,yi,Hr,v.createElement("div",{className:`${ro}-footer`},qi>1&&v.createElement("div",{className:`${ro}-indicators`},gi),v.createElement("div",{className:`${ro}-buttons`},an!==0?v.createElement(Sr.ZP,Object.assign({},Bi,Dr,{onClick:nr,size:"small",className:g()(`${ro}-prev-btn`,Dr==null?void 0:Dr.className)}),(vo=Dr==null?void 0:Dr.children)!==null&&vo!==void 0?vo:Nr==null?void 0:Nr.Previous):null,v.createElement(Sr.ZP,Object.assign({type:mi},Ar,{onClick:qr,size:"small",className:g()(`${ro}-next-btn`,Ar==null?void 0:Ar.className)}),(kr=Ar==null?void 0:Ar.children)!==null&&kr!==void 0?kr:Kn?Nr==null?void 0:Nr.Finish:Nr==null?void 0:Nr.Next)))))},Ns=y(60590),Se=y(10274),Xi=y(14747),Yi=y(97414),fo=y(91945),di=y(45503),Fs=y(79511),Ln=y(43109);const it=lr=>{const{componentCls:pr,lineHeight:an,padding:wr,paddingXS:Cr,borderRadius:Ei,borderRadiusXS:vo,colorPrimary:kr,colorText:ro,colorFill:qi,indicatorHeight:bo,indicatorWidth:xn,boxShadowTertiary:pn,tourZIndexPopup:Dt,fontSize:Zt,colorBgElevated:vn,fontWeightStrong:$n,marginXS:Ar,colorTextLightSolid:Dr,tourBorderRadius:dr,colorWhite:Yt,primaryNextBtnHoverBg:wn,closeBtnSize:Qn,motionDurationSlow:Mr,antCls:Wi,primaryPrevBtnBg:Dn}=lr;return[{[pr]:Object.assign(Object.assign({},(0,Xi.Wf)(lr)),{color:ro,position:"absolute",zIndex:Dt,display:"block",visibility:"visible",fontSize:Zt,lineHeight:an,width:520,"--antd-arrow-background-color":vn,"&-pure":{maxWidth:"100%",position:"relative"},[`&${pr}-hidden`]:{display:"none"},[`${pr}-content`]:{position:"relative"},[`${pr}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:dr,boxShadow:pn,position:"relative",backgroundColor:vn,border:"none",backgroundClip:"padding-box",[`${pr}-close`]:{position:"absolute",top:wr,insetInlineEnd:wr,color:lr.colorIcon,outline:"none",width:Qn,height:Qn,borderRadius:lr.borderRadiusSM,transition:`background-color ${lr.motionDurationMid}, color ${lr.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:lr.colorIconHover,backgroundColor:lr.closeBtnHoverBg}},[`${pr}-cover`]:{textAlign:"center",padding:`${(0,Ln.bf)(lr.calc(wr).add(Qn).add(Cr).equal())} ${(0,Ln.bf)(wr)} 0`,img:{width:"100%"}},[`${pr}-header`]:{padding:`${(0,Ln.bf)(wr)} ${(0,Ln.bf)(wr)} ${(0,Ln.bf)(Cr)}`,[`${pr}-title`]:{lineHeight:an,fontSize:Zt,fontWeight:$n}},[`${pr}-description`]:{padding:`0 ${(0,Ln.bf)(wr)}`,lineHeight:an,wordWrap:"break-word"},[`${pr}-footer`]:{padding:`${(0,Ln.bf)(Cr)} ${(0,Ln.bf)(wr)} ${(0,Ln.bf)(wr)}`,textAlign:"end",borderRadius:`0 0 ${(0,Ln.bf)(vo)} ${(0,Ln.bf)(vo)}`,display:"flex",[`${pr}-indicators`]:{display:"inline-block",[`${pr}-indicator`]:{width:xn,height:bo,display:"inline-block",borderRadius:"50%",background:qi,"&:not(:last-child)":{marginInlineEnd:bo},"&-active":{background:kr}}},[`${pr}-buttons`]:{marginInlineStart:"auto",[`${Wi}-btn`]:{marginInlineStart:Ar}}}},[`${pr}-primary, &${pr}-primary`]:{"--antd-arrow-background-color":kr,[`${pr}-inner`]:{color:Dr,textAlign:"start",textDecoration:"none",backgroundColor:kr,borderRadius:Ei,boxShadow:pn,[`${pr}-close`]:{color:Dr},[`${pr}-indicators`]:{[`${pr}-indicator`]:{background:Dn,"&-active":{background:Dr}}},[`${pr}-prev-btn`]:{color:Dr,borderColor:Dn,backgroundColor:kr,"&:hover":{backgroundColor:Dn,borderColor:"transparent"}},[`${pr}-next-btn`]:{color:kr,borderColor:"transparent",background:Yt,"&:hover":{background:wn}}}}}),[`${pr}-mask`]:{[`${pr}-placeholder-animated`]:{transition:`all ${Mr}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${pr}-inner`]:{borderRadius:lr.min(dr,Yi.qN)}}},(0,Yi.ZP)(lr,"var(--antd-arrow-background-color)")]},Ot=lr=>Object.assign(Object.assign({zIndexPopup:lr.zIndexPopupBase+70,closeBtnSize:lr.fontSize*lr.lineHeight,primaryPrevBtnBg:new Se.C(lr.colorTextLightSolid).setAlpha(.15).toRgbString(),closeBtnHoverBg:lr.wireframe?"transparent":lr.colorFillContent,primaryNextBtnHoverBg:new Se.C(lr.colorBgTextHover).onBackground(lr.colorWhite).toRgbString()},(0,Yi.wZ)({contentRadius:lr.borderRadiusLG,limitVerticalRadius:!0})),(0,Fs.w)(lr));var Ht=(0,fo.I$)("Tour",lr=>{const{borderRadiusLG:pr}=lr,an=(0,di.TS)(lr,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:pr});return[it(an)]},Ot),Pn=y(8745),fr=function(lr,pr){var an={};for(var wr in lr)Object.prototype.hasOwnProperty.call(lr,wr)&&pr.indexOf(wr)<0&&(an[wr]=lr[wr]);if(lr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Cr=0,wr=Object.getOwnPropertySymbols(lr);Cr{const{prefixCls:pr,current:an=0,total:wr=6,className:Cr,style:Ei,type:vo}=lr,kr=fr(lr,["prefixCls","current","total","className","style","type"]),{getPrefixCls:ro}=v.useContext(Mt.E_),qi=ro("tour",pr),[bo,xn]=Ht(qi);return bo(v.createElement(Ns.t5,{prefixCls:qi,hashId:xn,className:g()(Cr,`${qi}-pure`,vo&&`${qi}-${vo}`),style:Ei},v.createElement(Is,{stepProps:Object.assign(Object.assign({},kr),{prefixCls:qi,total:wr}),current:an,type:vo})))};var mn=(0,Pn.i)(In),Ut=function(lr,pr){var an={};for(var wr in lr)Object.prototype.hasOwnProperty.call(lr,wr)&&pr.indexOf(wr)<0&&(an[wr]=lr[wr]);if(lr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Cr=0,wr=Object.getOwnPropertySymbols(lr);Cr{const{prefixCls:pr,type:an,rootClassName:wr,indicatorsRender:Cr,steps:Ei}=lr,vo=Ut(lr,["prefixCls","type","rootClassName","indicatorsRender","steps"]),{getPrefixCls:kr,direction:ro}=(0,v.useContext)(Mt.E_),qi=kr("tour",pr),[bo,xn]=Ht(qi),[,pn]=(0,hn.ZP)(),Dt=(0,v.useMemo)(()=>Ei==null?void 0:Ei.map(dr=>{var Yt;return Object.assign(Object.assign({},dr),{className:g()(dr.className,{[`${qi}-primary`]:((Yt=dr.type)!==null&&Yt!==void 0?Yt:an)==="primary"})})}),[Ei,an]),Zt=(0,lt.Z)({arrowPointAtCenter:!0,autoAdjustOverflow:!0,offset:pn.marginXXS,arrowWidth:pn.sizePopupArrow,borderRadius:pn.borderRadius}),vn=g()({[`${qi}-rtl`]:ro==="rtl"},xn,wr),$n=(dr,Yt)=>v.createElement(Is,{type:an,stepProps:dr,current:Yt,indicatorsRender:Cr}),[Ar,Dr]=(0,wt.Cn)("Tour",vo.zIndex);return bo(v.createElement(Kt.Z.Provider,{value:Dr},v.createElement(nt,Object.assign({},vo,{zIndex:Ar,rootClassName:vn,prefixCls:qi,animated:!0,renderPanel:$n,builtinPlacements:Zt,steps:Dt}))))};en._InternalPanelDoNotUseOrYouWillBeFired=mn;var Cn=en},51945:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return Kn}});var v=y(67294),P=y(35918),w=y(87462),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},B=b,V=y(93771),k=function(qr,yi){return v.createElement(V.Z,(0,w.Z)({},qr,{ref:yi,icon:B}))},R=v.forwardRef(k),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},g=C,A=function(qr,yi){return v.createElement(V.Z,(0,w.Z)({},qr,{ref:yi,icon:g}))},O=v.forwardRef(A),K=y(94184),he=y.n(K),ae=y(20640),fe=y.n(ae),xe=y(48555),ye=y(50344),be=y(8410),Qe=y(21770),Ve=y(98423),pt=y(42550),st=y(79370),Ae=y(15105),De=function(nr,qr){var yi={};for(var Hr in nr)Object.prototype.hasOwnProperty.call(nr,Hr)&&qr.indexOf(Hr)<0&&(yi[Hr]=nr[Hr]);if(nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ci=0,Hr=Object.getOwnPropertySymbols(nr);ci{const yi=Kr=>{const{keyCode:Qi}=Kr;Qi===Ae.Z.ENTER&&Kr.preventDefault()},Hr=Kr=>{const{keyCode:Qi}=Kr,{onClick:ns}=nr;Qi===Ae.Z.ENTER&&ns&&ns()},{style:ci,noStyle:gi,disabled:mi}=nr,Bi=De(nr,["style","noStyle","disabled"]);let Nr={};return gi||(Nr=Object.assign({},Te)),mi&&(Nr.pointerEvents="none"),Nr=Object.assign(Object.assign({},Nr),ci),v.createElement("div",Object.assign({role:"button",tabIndex:0,ref:qr},Bi,{onKeyDown:yi,onKeyUp:Hr,style:Nr}))}),Pe=y(53124),Xe=y(10110),Be=y(61781),Xt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},St=Xt,nt=function(qr,yi){return v.createElement(V.Z,(0,w.Z)({},qr,{ref:yi,icon:St}))},wt=v.forwardRef(nt),lt=y(96159),Kt=y(22913),Mt=y(49867),hn=y(91945),un=y(16397),Sr=y(43109);const ii=(nr,qr,yi,Hr)=>{const{titleMarginBottom:ci,fontWeightStrong:gi}=Hr;return{marginBottom:ci,color:yi,fontWeight:gi,fontSize:nr,lineHeight:qr}},Ii=nr=>{const qr=[1,2,3,4,5],yi={};return qr.forEach(Hr=>{yi[` h${Hr}&, div&-h${Hr}, div&-h${Hr} > textarea, h${Hr} - `]=ii(nr[`fontSizeHeading${Hr}`],nr[`lineHeightHeading${Hr}`],nr.colorTextHeading,nr)}),vi},Ni=nr=>{const{componentCls:qr}=nr;return{"a&, a":Object.assign(Object.assign({},(0,Rt.N)(nr)),{textDecoration:nr.linkDecoration,"&:active, &:hover":{textDecoration:nr.linkHoverDecoration},[`&[disabled], &${qr}-disabled`]:{color:nr.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:nr.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Yi=nr=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:nr.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:nr.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:cn.EV[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:nr.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),ti=nr=>{const{componentCls:qr,paddingSM:vi}=nr,Hr=vi;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:nr.calc(nr.paddingSM).mul(-1).equal(),marginTop:nr.calc(Hr).mul(-1).equal(),marginBottom:`calc(1em - ${(0,Cr.bf)(Hr)})`},[`${qr}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:nr.calc(nr.marginXS).add(2).equal(),insetBlockEnd:nr.marginXS,color:nr.colorTextDescription,fontWeight:"normal",fontSize:nr.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Ts=nr=>({"&-copy-success":{[` + `]=ii(nr[`fontSizeHeading${Hr}`],nr[`lineHeightHeading${Hr}`],nr.colorTextHeading,nr)}),yi},Ni=nr=>{const{componentCls:qr}=nr;return{"a&, a":Object.assign(Object.assign({},(0,Mt.N)(nr)),{textDecoration:nr.linkDecoration,"&:active, &:hover":{textDecoration:nr.linkHoverDecoration},[`&[disabled], &${qr}-disabled`]:{color:nr.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:nr.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},eo=nr=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:nr.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:nr.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:un.EV[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:nr.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),ti=nr=>{const{componentCls:qr,paddingSM:yi}=nr,Hr=yi;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:nr.calc(nr.paddingSM).mul(-1).equal(),marginTop:nr.calc(Hr).mul(-1).equal(),marginBottom:`calc(1em - ${(0,Sr.bf)(Hr)})`},[`${qr}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:nr.calc(nr.marginXS).add(2).equal(),insetBlockEnd:nr.marginXS,color:nr.colorTextDescription,fontWeight:"normal",fontSize:nr.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Is=nr=>({"&-copy-success":{[` &, &:hover, - &:focus`]:{color:nr.colorSuccess}}}),Bs=()=>({[` + &:focus`]:{color:nr.colorSuccess}}}),Ns=()=>({[` a&-ellipsis, span&-ellipsis - `]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),Ce=nr=>{const{componentCls:qr,titleMarginTop:vi}=nr;return{[qr]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:nr.colorText,wordBreak:"break-word",lineHeight:nr.lineHeight,[`&${qr}-secondary`]:{color:nr.colorTextDescription},[`&${qr}-success`]:{color:nr.colorSuccess},[`&${qr}-warning`]:{color:nr.colorWarning},[`&${qr}-danger`]:{color:nr.colorError,"a&:active, a&:focus":{color:nr.colorErrorActive},"a&:hover":{color:nr.colorErrorHover}},[`&${qr}-disabled`]:{color:nr.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[` + `]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),Se=nr=>{const{componentCls:qr,titleMarginTop:yi}=nr;return{[qr]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:nr.colorText,wordBreak:"break-word",lineHeight:nr.lineHeight,[`&${qr}-secondary`]:{color:nr.colorTextDescription},[`&${qr}-success`]:{color:nr.colorSuccess},[`&${qr}-warning`]:{color:nr.colorWarning},[`&${qr}-danger`]:{color:nr.colorError,"a&:active, a&:focus":{color:nr.colorErrorActive},"a&:hover":{color:nr.colorErrorHover}},[`&${qr}-disabled`]:{color:nr.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[` div&, p - `]:{marginBottom:"1em"}},Pi(nr)),{[` + `]:{marginBottom:"1em"}},Ii(nr)),{[` & + h1${qr}, & + h2${qr}, & + h3${qr}, & + h4${qr}, & + h5${qr} - `]:{marginTop:vi},[` + `]:{marginTop:yi},[` div, ul, li, @@ -8217,54 +8163,108 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter + h3, + h4, + h5 - `]:{marginTop:vi}}}),Yi(nr)),Ni(nr)),{[` + `]:{marginTop:yi}}}),eo(nr)),Ni(nr)),{[` ${qr}-expand, ${qr}-edit, ${qr}-copy - `]:Object.assign(Object.assign({},(0,Rt.N)(nr)),{marginInlineStart:nr.marginXXS})}),ti(nr)),Ts(nr)),Bs()),{"&-rtl":{direction:"rtl"}})}},Gi=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var qi=(0,an.I$)("Typography",nr=>[Ce(nr)],Gi),fi=nr=>{const{prefixCls:qr,"aria-label":vi,className:Hr,style:di,direction:gi,maxLength:mi,autoSize:Bi=!0,value:zr,onSave:Xr,onCancel:Qi,onEnd:rs,component:Ur,enterIcon:gs=v.createElement(Ct,null)}=nr,Kr=v.useRef(null),ri=v.useRef(!1),is=v.useRef(),[Jr,_n]=v.useState(zr);v.useEffect(()=>{_n(zr)},[zr]),v.useEffect(()=>{if(Kr.current&&Kr.current.resizableTextArea){const{textArea:Eo}=Kr.current.resizableTextArea;Eo.focus();const{length:hs}=Eo.value;Eo.setSelectionRange(hs,hs)}},[]);const Br=Eo=>{let{target:hs}=Eo;_n(hs.value.replace(/[\n\r]/g,""))},es=()=>{ri.current=!0},ko=()=>{ri.current=!1},vs=Eo=>{let{keyCode:hs}=Eo;ri.current||(is.current=hs)},Ba=()=>{Xr(Jr.trim())},uo=Eo=>{let{keyCode:hs,ctrlKey:Wn,altKey:yo,metaKey:Qo,shiftKey:os}=Eo;is.current===hs&&!ri.current&&!Wn&&!yo&&!Qo&&!os&&(hs===Pe.Z.ENTER?(Ba(),rs==null||rs()):hs===Pe.Z.ESC&&Qi())},ca=()=>{Ba()},ll=Ur?`${qr}-${Ur}`:"",[Ti,Li]=qi(qr),eo=ce()(qr,`${qr}-edit-content`,{[`${qr}-rtl`]:gi==="rtl"},Hr,ll,Li);return Ti(v.createElement("div",{className:eo,style:di},v.createElement(Gt.Z,{ref:Kr,maxLength:mi,value:Jr,onChange:Br,onKeyDown:vs,onKeyUp:uo,onCompositionStart:es,onCompositionEnd:ko,onBlur:ca,"aria-label":vi,rows:1,autoSize:Bi}),gs!==null?(0,lt.Tm)(gs,{className:`${qr}-edit-content-confirm`}):null))},Ms=function(nr,qr){var vi={};for(var Hr in nr)Object.prototype.hasOwnProperty.call(nr,Hr)&&qr.indexOf(Hr)<0&&(vi[Hr]=nr[Hr]);if(nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var di=0,Hr=Object.getOwnPropertySymbols(nr);di{const{prefixCls:vi,component:Hr="article",className:di,rootClassName:gi,setContentRef:mi,children:Bi,direction:zr,style:Xr}=nr,Qi=Ms(nr,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:rs,direction:Ur,typography:gs}=v.useContext(Ie.E_),Kr=zr!=null?zr:Ur;let ri=qr;mi&&(ri=(0,vt.sQ)(qr,mi));const is=rs("typography",vi),[Jr,_n]=qi(is),Br=ce()(is,gs==null?void 0:gs.className,{[`${is}-rtl`]:Kr==="rtl"},di,gi,_n),es=Object.assign(Object.assign({},gs==null?void 0:gs.style),Xr);return Jr(v.createElement(Hr,Object.assign({className:Br,style:es,ref:ri},Qi),Bi))});function Dt(nr,qr){return v.useMemo(()=>{const vi=!!nr;return[vi,Object.assign(Object.assign({},qr),vi&&typeof nr=="object"?nr:null)]},[nr])}var Dn=(nr,qr)=>{const vi=v.useRef(!1);v.useEffect(()=>{vi.current?nr():vi.current=!0},qr)};function gr(nr){const qr=typeof nr;return qr==="string"||qr==="number"}function kn(nr){let qr=0;return nr.forEach(vi=>{gr(vi)?qr+=String(vi).length:qr+=1}),qr}function bn(nr,qr){let vi=0;const Hr=[];for(let di=0;diqr){const Xr=qr-vi;return Hr.push(String(gi).slice(0,Xr)),Hr}Hr.push(gi),vi=zr}return nr}const zt=0,Jt=1,yn=2,fr=3,vr=4;var wr=nr=>{let{enabledMeasure:qr,children:vi,text:Hr,width:di,fontSize:gi,rows:mi,onEllipsis:Bi}=nr;const[[zr,Xr,Qi],rs]=v.useState([0,0,0]),[Ur,gs]=v.useState(0),[Kr,ri]=v.useState(zt),[is,Jr]=v.useState(0),_n=v.useRef(null),Br=v.useRef(null),es=v.useMemo(()=>(0,_e.Z)(Hr),[Hr]),ko=v.useMemo(()=>kn(es),[es]),vs=v.useMemo(()=>!qr||Kr!==fr?Ur&&Kr!==vr&&qr?vi(bn(es,Ur),Ur{qr&&di&&gi&&ko&&(ri(Jt),rs([0,Math.ceil(ko/2),ko]))},[qr,di,gi,Hr,ko,mi]),(0,we.Z)(()=>{var ll;Kr===Jt&&Jr(((ll=_n.current)===null||ll===void 0?void 0:ll.offsetHeight)||0)},[Kr]),(0,we.Z)(()=>{var ll,Ti;if(is){if(Kr===Jt){const Li=((ll=Br.current)===null||ll===void 0?void 0:ll.offsetHeight)||0,eo=mi*is;Li<=eo?(ri(vr),Bi(!1)):ri(yn)}else if(Kr===yn)if(zr!==Qi){const Li=((Ti=Br.current)===null||Ti===void 0?void 0:Ti.offsetHeight)||0,eo=mi*is;let Eo=zr,hs=Qi;zr===Qi-1?hs=zr:Li<=eo?Eo=Xr:hs=Xr;const Wn=Math.ceil((Eo+hs)/2);rs([Eo,Wn,hs])}else ri(fr),gs(Xr),Bi(!0)}},[Kr,zr,Qi,mi,is]);const Ba={width:di,whiteSpace:"normal",margin:0,padding:0},uo=(ll,Ti,Li)=>v.createElement("span",{"aria-hidden":!0,ref:Ti,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(gi/2)*2},Li)},ll),ca=(ll,Ti)=>{const Li=bn(es,ll);return uo(vi(Li,!0),Ti,Ba)};return v.createElement(v.Fragment,null,vs,qr&&Kr!==fr&&Kr!==vr&&v.createElement(v.Fragment,null,uo("lg",_n,{wordBreak:"keep-all",whiteSpace:"nowrap"}),Kr===Jt?uo(vi(es,!1),Br,Ba):ca(Xr,Br)))},Ai=nr=>{let{enabledEllipsis:qr,isEllipsis:vi,children:Hr,tooltipProps:di}=nr;return!(di!=null&&di.title)||!qr?Hr:v.createElement(ze.Z,Object.assign({open:vi?void 0:!1},di),Hr)},mo=function(nr,qr){var vi={};for(var Hr in nr)Object.prototype.hasOwnProperty.call(nr,Hr)&&qr.indexOf(Hr)<0&&(vi[Hr]=nr[Hr]);if(nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var di=0,Hr=Object.getOwnPropertySymbols(nr);di{var vi,Hr,di;const{prefixCls:gi,className:mi,style:Bi,type:zr,disabled:Xr,children:Qi,ellipsis:rs,editable:Ur,copyable:gs,component:Kr,title:ri}=nr,is=mo(nr,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:Jr,direction:_n}=v.useContext(Ie.E_),[Br]=(0,Xe.Z)("Text"),es=v.useRef(null),ko=v.useRef(null),vs=Jr("typography",gi),Ba=(0,He.Z)(is,["mark","code","delete","underline","strong","keyboard","italic"]),[uo,ca]=Dt(Ur),[ll,Ti]=(0,ot.Z)(!1,{value:ca.editing}),{triggerType:Li=["icon"]}=ca,eo=gu=>{var iu;gu&&((iu=ca.onStart)===null||iu===void 0||iu.call(ca)),Ti(gu)};Dn(()=>{var gu;ll||(gu=ko.current)===null||gu===void 0||gu.focus()},[ll]);const Eo=gu=>{gu==null||gu.preventDefault(),eo(!0)},hs=gu=>{var iu;(iu=ca.onChange)===null||iu===void 0||iu.call(ca,gu),eo(!1)},Wn=()=>{var gu;(gu=ca.onCancel)===null||gu===void 0||gu.call(ca),eo(!1)},[yo,Qo]=Dt(gs),[os,Ko]=v.useState(!1),Yn=v.useRef(null),kr={};Qo.format&&(kr.format=Qo.format);const Gr=()=>{Yn.current&&clearTimeout(Yn.current)},je=gu=>{var iu;gu==null||gu.preventDefault(),gu==null||gu.stopPropagation(),ve()(Qo.text||String(Qi)||"",kr),Ko(!0),Gr(),Yn.current=setTimeout(()=>{Ko(!1)},3e3),(iu=Qo.onCopy)===null||iu===void 0||iu.call(Qo,gu)};v.useEffect(()=>Gr,[]);const[ut,ht]=v.useState(!1),[Ue,ft]=v.useState(!1),[Pt,ln]=v.useState(!1),[sr,Zr]=v.useState(!1),[Ui,To]=v.useState(!1),[Vi,Us]=v.useState(!0),[Is,Rs]=Dt(rs,{expandable:!1}),Ns=Is&&!Pt,{rows:Lo=1}=Rs,Ps=v.useMemo(()=>!Ns||Rs.suffix!==void 0||Rs.onEllipsis||Rs.expandable||uo||yo,[Ns,Rs,uo,yo]);(0,we.Z)(()=>{Is&&!Ps&&(ht((0,dt.G)("webkitLineClamp")),ft((0,dt.G)("textOverflow")))},[Ps,Is]);const ua=v.useMemo(()=>Ps?!1:Lo===1?Ue:ut,[Ps,Ue,ut]),Ka=Ns&&(ua?Ui:sr),Hl=Ns&&Lo===1&&ua,Gl=Ns&&Lo>1&&ua,fs=gu=>{var iu;ln(!0),(iu=Rs.onExpand)===null||iu===void 0||iu.call(Rs,gu)},[Hs,dl]=v.useState(0),[Xo,Mi]=v.useState(0),Yo=(gu,iu)=>{let{offsetWidth:Tu}=gu;var Si;dl(Tu),Mi(parseInt((Si=window.getComputedStyle)===null||Si===void 0?void 0:Si.call(window,iu).fontSize,10)||0)},Os=gu=>{var iu;Zr(gu),sr!==gu&&((iu=Rs.onEllipsis)===null||iu===void 0||iu.call(Rs,gu))};v.useEffect(()=>{const gu=es.current;if(Is&&ua&&gu){const iu=Gl?gu.offsetHeight{const gu=es.current;if(typeof IntersectionObserver=="undefined"||!gu||!ua||!Ns)return;const iu=new IntersectionObserver(()=>{Us(!!gu.offsetParent)});return iu.observe(gu),()=>{iu.disconnect()}},[ua,Ns]);let Cs={};Rs.tooltip===!0?Cs={title:(vi=ca.text)!==null&&vi!==void 0?vi:Qi}:v.isValidElement(Rs.tooltip)?Cs={title:Rs.tooltip}:typeof Rs.tooltip=="object"?Cs=Object.assign({title:(Hr=ca.text)!==null&&Hr!==void 0?Hr:Qi},Rs.tooltip):Cs={title:Rs.tooltip};const xa=v.useMemo(()=>{const gu=iu=>["string","number"].includes(typeof iu);if(!(!Is||ua)){if(gu(ca.text))return ca.text;if(gu(Qi))return Qi;if(gu(ri))return ri;if(gu(Cs.title))return Cs.title}},[Is,ua,ri,Cs.title,Ka]);if(ll)return v.createElement(fi,{value:(di=ca.text)!==null&&di!==void 0?di:typeof Qi=="string"?Qi:"",onSave:hs,onCancel:Wn,onEnd:ca.onEnd,prefixCls:vs,className:mi,style:Bi,direction:_n,component:Kr,maxLength:ca.maxLength,autoSize:ca.autoSize,enterIcon:ca.enterIcon});const Xu=()=>{const{expandable:gu,symbol:iu}=Rs;if(!gu)return null;let Tu;return iu?Tu=iu:Tu=Br==null?void 0:Br.expand,v.createElement("a",{key:"expand",className:`${vs}-expand`,onClick:fs,"aria-label":Br==null?void 0:Br.expand},Tu)},gc=()=>{if(!uo)return;const{icon:gu,tooltip:iu}=ca,Tu=(0,_e.Z)(iu)[0]||(Br==null?void 0:Br.edit),Si=typeof Tu=="string"?Tu:"";return Li.includes("icon")?v.createElement(ze.Z,{key:"edit",title:iu===!1?"":Tu},v.createElement($e,{ref:ko,className:`${vs}-edit`,onClick:Eo,"aria-label":Si},gu||v.createElement(O,{role:"button"}))):null},Zu=()=>{if(!yo)return;const{tooltips:gu,icon:iu}=Qo,Tu=Ji(gu),Si=Ji(iu),tr=os?to(Tu[1],Br==null?void 0:Br.copied):to(Tu[0],Br==null?void 0:Br.copy),Un=os?Br==null?void 0:Br.copied:Br==null?void 0:Br.copy,jr=typeof tr=="string"?tr:Un;return v.createElement(ze.Z,{key:"copy",title:tr},v.createElement($e,{className:ce()(`${vs}-copy`,os&&`${vs}-copy-success`),onClick:je,"aria-label":jr},os?to(Si[1],v.createElement(R.Z,null),!0):to(Si[0],v.createElement(M,null),!0)))},Cd=gu=>[gu&&Xu(),gc(),Zu()],ad=gu=>[gu&&v.createElement("span",{"aria-hidden":!0,key:"ellipsis"},bo),Rs.suffix,Cd(gu)];return v.createElement(Ee.Z,{onResize:Yo,disabled:!Ns||ua},gu=>v.createElement(Ai,{tooltipProps:Cs,enabledEllipsis:Ns,isEllipsis:Ka},v.createElement(et,Object.assign({className:ce()({[`${vs}-${zr}`]:zr,[`${vs}-disabled`]:Xr,[`${vs}-ellipsis`]:Is,[`${vs}-single-line`]:Ns&&Lo===1,[`${vs}-ellipsis-single-line`]:Hl,[`${vs}-ellipsis-multiple-line`]:Gl},mi),prefixCls:gi,style:Object.assign(Object.assign({},Bi),{WebkitLineClamp:Gl?Lo:void 0}),component:Kr,ref:(0,vt.sQ)(gu,es,qr),direction:_n,onClick:Li.includes("text")?Eo:void 0,"aria-label":xa==null?void 0:xa.toString(),title:ri},Ba),v.createElement(wr,{enabledMeasure:Ns&&!ua,text:Qi,rows:Lo,width:Hs,fontSize:Xo,onEllipsis:Os},(iu,Tu)=>{let Si=iu;return iu.length&&Tu&&xa&&(Si=v.createElement("span",{key:"show-content","aria-hidden":!0},Si)),Fr(nr,v.createElement(v.Fragment,null,Si,ad(Tu)))}))))}),It=function(nr,qr){var vi={};for(var Hr in nr)Object.prototype.hasOwnProperty.call(nr,Hr)&&qr.indexOf(Hr)<0&&(vi[Hr]=nr[Hr]);if(nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var di=0,Hr=Object.getOwnPropertySymbols(nr);di{var{ellipsis:vi,rel:Hr}=nr,di=It(nr,["ellipsis","rel"]);const gi=Object.assign(Object.assign({},di),{rel:Hr===void 0&&di.target==="_blank"?"noopener noreferrer":Hr});return delete gi.navigate,v.createElement(fn,Object.assign({},gi,{ref:qr,ellipsis:!!vi,component:"a"}))}),Ar=v.forwardRef((nr,qr)=>v.createElement(fn,Object.assign({ref:qr},nr,{component:"div"}))),Dr=function(nr,qr){var vi={};for(var Hr in nr)Object.prototype.hasOwnProperty.call(nr,Hr)&&qr.indexOf(Hr)<0&&(vi[Hr]=nr[Hr]);if(nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var di=0,Hr=Object.getOwnPropertySymbols(nr);di{var{ellipsis:vi}=nr,Hr=Dr(nr,["ellipsis"]);const di=v.useMemo(()=>vi&&typeof vi=="object"?(0,He.Z)(vi,["expandable","rows"]):vi,[vi]);return v.createElement(fn,Object.assign({ref:qr},Hr,{ellipsis:di,component:"span"}))};var Xt=v.forwardRef(dr),Cn=function(nr,qr){var vi={};for(var Hr in nr)Object.prototype.hasOwnProperty.call(nr,Hr)&&qr.indexOf(Hr)<0&&(vi[Hr]=nr[Hr]);if(nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var di=0,Hr=Object.getOwnPropertySymbols(nr);di{const{level:vi=1}=nr,Hr=Cn(nr,["level"]);let di;return er.includes(vi)?di=`h${vi}`:di="h1",v.createElement(fn,Object.assign({ref:qr},Hr,{component:di}))});const An=et;An.Text=Xt,An.Link=gn,An.Title=ji,An.Paragraph=Ar;var Xn=An},80224:function(_t,Y,_){"use strict";_.d(Y,{Z:function(){return Tu}});var v=_(77617),R=_(40877),w=_(79161),b=_(12124),B=_.n(b),V=_(61796),k=_(67873),M=_(22695),C=_(66217),g=_(81275),A=_(35005),O=_(33649),K=_(39143),ce=_(96522),de=_(54775),ve=_(3286);function Ee(Si,tr){var Un="cannot ".concat(Si.method," ").concat(Si.action," ").concat(tr.status,"'"),jr=new Error(Un);return jr.status=tr.status,jr.method=Si.method,jr.url=Si.action,jr}function _e(Si){var tr=Si.responseText||Si.response;if(!tr)return tr;try{return JSON.parse(tr)}catch(Un){return tr}}function we(Si){var tr=new XMLHttpRequest;Si.onProgress&&tr.upload&&(tr.upload.onprogress=function(_o){_o.total>0&&(_o.percent=_o.loaded/_o.total*100),Si.onProgress(_o)});var Un=new FormData;Si.data&&Object.keys(Si.data).forEach(function(Qr){var _o=Si.data[Qr];if(Array.isArray(_o)){_o.forEach(function(us){Un.append("".concat(Qr,"[]"),us)});return}Un.append(Qr,_o)}),Si.file instanceof Blob?Un.append(Si.filename,Si.file,Si.file.name):Un.append(Si.filename,Si.file),tr.onerror=function(_o){Si.onError(_o)},tr.onload=function(){return tr.status<200||tr.status>=300?Si.onError(Ee(Si,tr),_e(tr)):Si.onSuccess(_e(tr),tr)},tr.open(Si.method,Si.action,!0),Si.withCredentials&&"withCredentials"in tr&&(tr.withCredentials=!0);var jr=Si.headers||{};return jr["X-Requested-With"]!==null&&tr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(jr).forEach(function(Qr){jr[Qr]!==null&&tr.setRequestHeader(Qr,jr[Qr])}),tr.send(Un),{abort:function(){tr.abort()}}}var ot=+new Date,He=0;function vt(){return"rc-upload-".concat(ot,"-").concat(++He)}var dt=_(36014),Pe=function(Si,tr){if(Si&&tr){var Un=Array.isArray(tr)?tr:tr.split(","),jr=Si.name||"",Qr=Si.type||"",_o=Qr.replace(/\/.*$/,"");return Un.some(function(us){var ns=us.trim();if(/^\*(\/\*)?$/.test(us))return!0;if(ns.charAt(0)==="."){var Oa=jr.toLowerCase(),ga=ns.toLowerCase(),Va=[ga];return(ga===".jpg"||ga===".jpeg")&&(Va=[".jpg",".jpeg"]),Va.some(function(ea){return Oa.endsWith(ea)})}return/\/\*$/.test(ns)?_o===ns.replace(/\/.*$/,""):Qr===ns?!0:/^\w+$/.test(ns)?((0,dt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(ns,"'.Skip for check.")),!0):!1})}return!0};function De(Si,tr){var Un=Si.createReader(),jr=[];function Qr(){Un.readEntries(function(_o){var us=Array.prototype.slice.apply(_o);jr=jr.concat(us);var ns=!us.length;ns?tr(jr):Qr()})}Qr()}var Ae=function(tr,Un,jr){var Qr=function _o(us,ns){us&&(us.path=ns||"",us.isFile?us.file(function(Oa){jr(Oa)&&(us.fullPath&&!Oa.webkitRelativePath&&(Object.defineProperties(Oa,{webkitRelativePath:{writable:!0}}),Oa.webkitRelativePath=us.fullPath.replace(/^\//,""),Object.defineProperties(Oa,{webkitRelativePath:{writable:!1}})),Un([Oa]))}):us.isDirectory&&De(us,function(Oa){Oa.forEach(function(ga){_o(ga,"".concat(ns).concat(us.name,"/"))})}))};tr.forEach(function(_o){Qr(_o.webkitGetAsEntry())})},Re=Ae,$e=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ie=function(Si){(0,C.Z)(Un,Si);var tr=(0,g.Z)(Un);function Un(){var jr;(0,k.Z)(this,Un);for(var Qr=arguments.length,_o=new Array(Qr),us=0;us{const{componentCls:tr,iconCls:Un}=Si;return{[`${tr}-wrapper`]:{[`${tr}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Si.colorFillAlter,border:`${(0,Ni.bf)(Si.lineWidth)} dashed ${Si.colorBorder}`,borderRadius:Si.borderRadiusLG,cursor:"pointer",transition:`border-color ${Si.motionDurationSlow}`,[tr]:{padding:`${(0,Ni.bf)(Si.padding)} 0`},[`${tr}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${tr}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` - &:not(${tr}-disabled):hover, - &-hover:not(${tr}-disabled) - `]:{borderColor:Si.colorPrimaryHover},[`p${tr}-drag-icon`]:{marginBottom:Si.margin,[Un]:{color:Si.colorPrimary,fontSize:Si.uploadThumbnailSize}},[`p${tr}-text`]:{margin:`0 0 ${(0,Ni.bf)(Si.marginXXS)}`,color:Si.colorTextHeading,fontSize:Si.fontSizeLG},[`p${tr}-hint`]:{color:Si.colorTextDescription,fontSize:Si.fontSize},[`&${tr}-disabled`]:{[`p${tr}-drag-icon ${Un}, - p${tr}-text, - p${tr}-hint - `]:{color:Si.colorTextDisabled}}}}}},Bs=Si=>{const{componentCls:tr,antCls:Un,iconCls:jr,fontSize:Qr,lineHeight:_o,calc:us}=Si,ns=`${tr}-list-item`,Oa=`${ns}-actions`,ga=`${ns}-action`,Va=Si.fontHeightSM;return{[`${tr}-wrapper`]:{[`${tr}-list`]:Object.assign(Object.assign({},(0,cn.dF)()),{lineHeight:Si.lineHeight,[ns]:{position:"relative",height:us(Si.lineHeight).mul(Qr).equal(),marginTop:Si.marginXS,fontSize:Qr,display:"flex",alignItems:"center",transition:`background-color ${Si.motionDurationSlow}`,"&:hover":{backgroundColor:Si.controlItemBgHover},[`${ns}-name`]:Object.assign(Object.assign({},cn.vS),{padding:`0 ${(0,Ni.bf)(Si.paddingXS)}`,lineHeight:_o,flex:"auto",transition:`all ${Si.motionDurationSlow}`}),[Oa]:{[ga]:{opacity:0},[`${ga}${Un}-btn-sm`]:{height:Va,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` + `]:Object.assign(Object.assign({},(0,Mt.N)(nr)),{marginInlineStart:nr.marginXXS})}),ti(nr)),Is(nr)),Ns()),{"&-rtl":{direction:"rtl"}})}},Xi=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var Yi=(0,hn.I$)("Typography",nr=>[Se(nr)],Xi),di=nr=>{const{prefixCls:qr,"aria-label":yi,className:Hr,style:ci,direction:gi,maxLength:mi,autoSize:Bi=!0,value:Nr,onSave:Kr,onCancel:Qi,onEnd:ns,component:Ur,enterIcon:gs=v.createElement(wt,null)}=nr,Gr=v.useRef(null),ni=v.useRef(!1),is=v.useRef(),[Jr,bn]=v.useState(Nr);v.useEffect(()=>{bn(Nr)},[Nr]),v.useEffect(()=>{if(Gr.current&&Gr.current.resizableTextArea){const{textArea:So}=Gr.current.resizableTextArea;So.focus();const{length:ps}=So.value;So.setSelectionRange(ps,ps)}},[]);const Or=So=>{let{target:ps}=So;bn(ps.value.replace(/[\n\r]/g,""))},qo=()=>{ni.current=!0},Mo=()=>{ni.current=!1},vs=So=>{let{keyCode:ps}=So;ni.current||(is.current=ps)},Na=()=>{Kr(Jr.trim())},ho=So=>{let{keyCode:ps,ctrlKey:Wn,altKey:yo,metaKey:Qo,shiftKey:ss}=So;is.current===ps&&!ni.current&&!Wn&&!yo&&!Qo&&!ss&&(ps===Ae.Z.ENTER?(Na(),ns==null||ns()):ps===Ae.Z.ESC&&Qi())},aa=()=>{Na()},Ka=Ur?`${qr}-${Ur}`:"",[Si,Pi]=Yi(qr),to=he()(qr,`${qr}-edit-content`,{[`${qr}-rtl`]:gi==="rtl"},Hr,Ka,Pi);return Si(v.createElement("div",{className:to,style:ci},v.createElement(Kt.Z,{ref:Gr,maxLength:mi,value:Jr,onChange:Or,onKeyDown:vs,onKeyUp:ho,onCompositionStart:qo,onCompositionEnd:Mo,onBlur:aa,"aria-label":yi,rows:1,autoSize:Bi}),gs!==null?(0,lt.Tm)(gs,{className:`${qr}-edit-content-confirm`}):null))},Fs=function(nr,qr){var yi={};for(var Hr in nr)Object.prototype.hasOwnProperty.call(nr,Hr)&&qr.indexOf(Hr)<0&&(yi[Hr]=nr[Hr]);if(nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ci=0,Hr=Object.getOwnPropertySymbols(nr);ci{const{prefixCls:yi,component:Hr="article",className:ci,rootClassName:gi,setContentRef:mi,children:Bi,direction:Nr,style:Kr}=nr,Qi=Fs(nr,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:ns,direction:Ur,typography:gs}=v.useContext(Pe.E_),Gr=Nr!=null?Nr:Ur;let ni=qr;mi&&(ni=(0,pt.sQ)(qr,mi));const is=ns("typography",yi),[Jr,bn]=Yi(is),Or=he()(is,gs==null?void 0:gs.className,{[`${is}-rtl`]:Gr==="rtl"},ci,gi,bn),qo=Object.assign(Object.assign({},gs==null?void 0:gs.style),Kr);return Jr(v.createElement(Hr,Object.assign({className:Or,style:qo,ref:ni},Qi),Bi))});function Ot(nr,qr){return v.useMemo(()=>{const yi=!!nr;return[yi,Object.assign(Object.assign({},qr),yi&&typeof nr=="object"?nr:null)]},[nr])}var Pn=(nr,qr)=>{const yi=v.useRef(!1);v.useEffect(()=>{yi.current?nr():yi.current=!0},qr)};function fr(nr){const qr=typeof nr;return qr==="string"||qr==="number"}function In(nr){let qr=0;return nr.forEach(yi=>{fr(yi)?qr+=String(yi).length:qr+=1}),qr}function mn(nr,qr){let yi=0;const Hr=[];for(let ci=0;ciqr){const Kr=qr-yi;return Hr.push(String(gi).slice(0,Kr)),Hr}Hr.push(gi),yi=Nr}return nr}const Ut=0,en=1,Cn=2,lr=3,pr=4;var wr=nr=>{let{enabledMeasure:qr,children:yi,text:Hr,width:ci,fontSize:gi,rows:mi,onEllipsis:Bi}=nr;const[[Nr,Kr,Qi],ns]=v.useState([0,0,0]),[Ur,gs]=v.useState(0),[Gr,ni]=v.useState(Ut),[is,Jr]=v.useState(0),bn=v.useRef(null),Or=v.useRef(null),qo=v.useMemo(()=>(0,ye.Z)(Hr),[Hr]),Mo=v.useMemo(()=>In(qo),[qo]),vs=v.useMemo(()=>!qr||Gr!==lr?Ur&&Gr!==pr&&qr?yi(mn(qo,Ur),Ur{qr&&ci&&gi&&Mo&&(ni(en),ns([0,Math.ceil(Mo/2),Mo]))},[qr,ci,gi,Hr,Mo,mi]),(0,be.Z)(()=>{var Ka;Gr===en&&Jr(((Ka=bn.current)===null||Ka===void 0?void 0:Ka.offsetHeight)||0)},[Gr]),(0,be.Z)(()=>{var Ka,Si;if(is){if(Gr===en){const Pi=((Ka=Or.current)===null||Ka===void 0?void 0:Ka.offsetHeight)||0,to=mi*is;Pi<=to?(ni(pr),Bi(!1)):ni(Cn)}else if(Gr===Cn)if(Nr!==Qi){const Pi=((Si=Or.current)===null||Si===void 0?void 0:Si.offsetHeight)||0,to=mi*is;let So=Nr,ps=Qi;Nr===Qi-1?ps=Nr:Pi<=to?So=Kr:ps=Kr;const Wn=Math.ceil((So+ps)/2);ns([So,Wn,ps])}else ni(lr),gs(Kr),Bi(!0)}},[Gr,Nr,Qi,mi,is]);const Na={width:ci,whiteSpace:"normal",margin:0,padding:0},ho=(Ka,Si,Pi)=>v.createElement("span",{"aria-hidden":!0,ref:Si,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(gi/2)*2},Pi)},Ka),aa=(Ka,Si)=>{const Pi=mn(qo,Ka);return ho(yi(Pi,!0),Si,Na)};return v.createElement(v.Fragment,null,vs,qr&&Gr!==lr&&Gr!==pr&&v.createElement(v.Fragment,null,ho("lg",bn,{wordBreak:"keep-all",whiteSpace:"nowrap"}),Gr===en?ho(yi(qo,!1),Or,Na):aa(Kr,Or)))},Ei=nr=>{let{enabledEllipsis:qr,isEllipsis:yi,children:Hr,tooltipProps:ci}=nr;return!(ci!=null&&ci.title)||!qr?Hr:v.createElement(Be.Z,Object.assign({open:yi?void 0:!1},ci),Hr)},vo=function(nr,qr){var yi={};for(var Hr in nr)Object.prototype.hasOwnProperty.call(nr,Hr)&&qr.indexOf(Hr)<0&&(yi[Hr]=nr[Hr]);if(nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ci=0,Hr=Object.getOwnPropertySymbols(nr);ci{var yi,Hr,ci;const{prefixCls:gi,className:mi,style:Bi,type:Nr,disabled:Kr,children:Qi,ellipsis:ns,editable:Ur,copyable:gs,component:Gr,title:ni}=nr,is=vo(nr,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:Jr,direction:bn}=v.useContext(Pe.E_),[Or]=(0,Xe.Z)("Text"),qo=v.useRef(null),Mo=v.useRef(null),vs=Jr("typography",gi),Na=(0,Ve.Z)(is,["mark","code","delete","underline","strong","keyboard","italic"]),[ho,aa]=Ot(Ur),[Ka,Si]=(0,Qe.Z)(!1,{value:aa.editing}),{triggerType:Pi=["icon"]}=aa,to=fu=>{var ru;fu&&((ru=aa.onStart)===null||ru===void 0||ru.call(aa)),Si(fu)};Pn(()=>{var fu;Ka||(fu=Mo.current)===null||fu===void 0||fu.focus()},[Ka]);const So=fu=>{fu==null||fu.preventDefault(),to(!0)},ps=fu=>{var ru;(ru=aa.onChange)===null||ru===void 0||ru.call(aa,fu),to(!1)},Wn=()=>{var fu;(fu=aa.onCancel)===null||fu===void 0||fu.call(aa),to(!1)},[yo,Qo]=Ot(gs),[ss,Ko]=v.useState(!1),Xn=v.useRef(null),Rr={};Qo.format&&(Rr.format=Qo.format);const Xr=()=>{Xn.current&&clearTimeout(Xn.current)},Ze=fu=>{var ru;fu==null||fu.preventDefault(),fu==null||fu.stopPropagation(),fe()(Qo.text||String(Qi)||"",Rr),Ko(!0),Xr(),Xn.current=setTimeout(()=>{Ko(!1)},3e3),(ru=Qo.onCopy)===null||ru===void 0||ru.call(Qo,fu)};v.useEffect(()=>Xr,[]);const[ht,dt]=v.useState(!1),[$e,ft]=v.useState(!1),[Lt,gn]=v.useState(!1),[rr,zr]=v.useState(!1),[Fi,xo]=v.useState(!1),[Vi,zs]=v.useState(!0),[Ps,Ms]=Ot(ns,{expandable:!1}),ks=Ps&&!Lt,{rows:ko=1}=Ms,As=v.useMemo(()=>!ks||Ms.suffix!==void 0||Ms.onEllipsis||Ms.expandable||ho||yo,[ks,Ms,ho,yo]);(0,be.Z)(()=>{Ps&&!As&&(dt((0,st.G)("webkitLineClamp")),ft((0,st.G)("textOverflow")))},[As,Ps]);const ia=v.useMemo(()=>As?!1:ko===1?$e:ht,[As,$e,ht]),za=ks&&(ia?Fi:rr),Zl=ks&&ko===1&&ia,Hl=ks&&ko>1&&ia,fs=fu=>{var ru;gn(!0),(ru=Ms.onExpand)===null||ru===void 0||ru.call(Ms,fu)},[js,hl]=v.useState(0),[Xo,Li]=v.useState(0),Yo=(fu,ru)=>{let{offsetWidth:Tu}=fu;var wi;hl(Tu),Li(parseInt((wi=window.getComputedStyle)===null||wi===void 0?void 0:wi.call(window,ru).fontSize,10)||0)},Os=fu=>{var ru;zr(fu),rr!==fu&&((ru=Ms.onEllipsis)===null||ru===void 0||ru.call(Ms,fu))};v.useEffect(()=>{const fu=qo.current;if(Ps&&ia&&fu){const ru=Hl?fu.offsetHeight{const fu=qo.current;if(typeof IntersectionObserver=="undefined"||!fu||!ia||!ks)return;const ru=new IntersectionObserver(()=>{zs(!!fu.offsetParent)});return ru.observe(fu),()=>{ru.disconnect()}},[ia,ks]);let Cs={};Ms.tooltip===!0?Cs={title:(yi=aa.text)!==null&&yi!==void 0?yi:Qi}:v.isValidElement(Ms.tooltip)?Cs={title:Ms.tooltip}:typeof Ms.tooltip=="object"?Cs=Object.assign({title:(Hr=aa.text)!==null&&Hr!==void 0?Hr:Qi},Ms.tooltip):Cs={title:Ms.tooltip};const ba=v.useMemo(()=>{const fu=ru=>["string","number"].includes(typeof ru);if(!(!Ps||ia)){if(fu(aa.text))return aa.text;if(fu(Qi))return Qi;if(fu(ni))return ni;if(fu(Cs.title))return Cs.title}},[Ps,ia,ni,Cs.title,za]);if(Ka)return v.createElement(di,{value:(ci=aa.text)!==null&&ci!==void 0?ci:typeof Qi=="string"?Qi:"",onSave:ps,onCancel:Wn,onEnd:aa.onEnd,prefixCls:vs,className:mi,style:Bi,direction:bn,component:Gr,maxLength:aa.maxLength,autoSize:aa.autoSize,enterIcon:aa.enterIcon});const Yu=()=>{const{expandable:fu,symbol:ru}=Ms;if(!fu)return null;let Tu;return ru?Tu=ru:Tu=Or==null?void 0:Or.expand,v.createElement("a",{key:"expand",className:`${vs}-expand`,onClick:fs,"aria-label":Or==null?void 0:Or.expand},Tu)},pc=()=>{if(!ho)return;const{icon:fu,tooltip:ru}=aa,Tu=(0,ye.Z)(ru)[0]||(Or==null?void 0:Or.edit),wi=typeof Tu=="string"?Tu:"";return Pi.includes("icon")?v.createElement(Be.Z,{key:"edit",title:ru===!1?"":Tu},v.createElement(Ue,{ref:Mo,className:`${vs}-edit`,onClick:So,"aria-label":wi},fu||v.createElement(O,{role:"button"}))):null},Hu=()=>{if(!yo)return;const{tooltips:fu,icon:ru}=Qo,Tu=qi(fu),wi=qi(ru),er=ss?ro(Tu[1],Or==null?void 0:Or.copied):ro(Tu[0],Or==null?void 0:Or.copy),Un=ss?Or==null?void 0:Or.copied:Or==null?void 0:Or.copy,Wr=typeof er=="string"?er:Un;return v.createElement(Be.Z,{key:"copy",title:er},v.createElement(Ue,{className:he()(`${vs}-copy`,ss&&`${vs}-copy-success`),onClick:Ze,"aria-label":Wr},ss?ro(wi[1],v.createElement(P.Z,null),!0):ro(wi[0],v.createElement(R,null),!0)))},wh=fu=>[fu&&Yu(),pc(),Hu()],lh=fu=>[fu&&v.createElement("span",{"aria-hidden":!0,key:"ellipsis"},bo),Ms.suffix,wh(fu)];return v.createElement(xe.Z,{onResize:Yo,disabled:!ks||ia},fu=>v.createElement(Ei,{tooltipProps:Cs,enabledEllipsis:ks,isEllipsis:za},v.createElement(it,Object.assign({className:he()({[`${vs}-${Nr}`]:Nr,[`${vs}-disabled`]:Kr,[`${vs}-ellipsis`]:Ps,[`${vs}-single-line`]:ks&&ko===1,[`${vs}-ellipsis-single-line`]:Zl,[`${vs}-ellipsis-multiple-line`]:Hl},mi),prefixCls:gi,style:Object.assign(Object.assign({},Bi),{WebkitLineClamp:Hl?ko:void 0}),component:Gr,ref:(0,pt.sQ)(fu,qo,qr),direction:bn,onClick:Pi.includes("text")?So:void 0,"aria-label":ba==null?void 0:ba.toString(),title:ni},Na),v.createElement(wr,{enabledMeasure:ks&&!ia,text:Qi,rows:ko,width:js,fontSize:Xo,onEllipsis:Os},(ru,Tu)=>{let wi=ru;return ru.length&&Tu&&ba&&(wi=v.createElement("span",{key:"show-content","aria-hidden":!0},wi)),kr(nr,v.createElement(v.Fragment,null,wi,lh(Tu)))}))))}),Dt=function(nr,qr){var yi={};for(var Hr in nr)Object.prototype.hasOwnProperty.call(nr,Hr)&&qr.indexOf(Hr)<0&&(yi[Hr]=nr[Hr]);if(nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ci=0,Hr=Object.getOwnPropertySymbols(nr);ci{var{ellipsis:yi,rel:Hr}=nr,ci=Dt(nr,["ellipsis","rel"]);const gi=Object.assign(Object.assign({},ci),{rel:Hr===void 0&&ci.target==="_blank"?"noopener noreferrer":Hr});return delete gi.navigate,v.createElement(pn,Object.assign({},gi,{ref:qr,ellipsis:!!yi,component:"a"}))}),Ar=v.forwardRef((nr,qr)=>v.createElement(pn,Object.assign({ref:qr},nr,{component:"div"}))),Dr=function(nr,qr){var yi={};for(var Hr in nr)Object.prototype.hasOwnProperty.call(nr,Hr)&&qr.indexOf(Hr)<0&&(yi[Hr]=nr[Hr]);if(nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ci=0,Hr=Object.getOwnPropertySymbols(nr);ci{var{ellipsis:yi}=nr,Hr=Dr(nr,["ellipsis"]);const ci=v.useMemo(()=>yi&&typeof yi=="object"?(0,Ve.Z)(yi,["expandable","rows"]):yi,[yi]);return v.createElement(pn,Object.assign({ref:qr},Hr,{ellipsis:ci,component:"span"}))};var Yt=v.forwardRef(dr),wn=function(nr,qr){var yi={};for(var Hr in nr)Object.prototype.hasOwnProperty.call(nr,Hr)&&qr.indexOf(Hr)<0&&(yi[Hr]=nr[Hr]);if(nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ci=0,Hr=Object.getOwnPropertySymbols(nr);ci{const{level:yi=1}=nr,Hr=wn(nr,["level"]);let ci;return Qn.includes(yi)?ci=`h${yi}`:ci="h1",v.createElement(pn,Object.assign({ref:qr},Hr,{component:ci}))});const Dn=it;Dn.Text=Yt,Dn.Link=vn,Dn.Title=Wi,Dn.Paragraph=Ar;var Kn=Dn},54397:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return Tu}});var v=y(67294),P=y(74902),w=y(73935),b=y(94184),B=y.n(b),V=y(87462),k=y(15671),R=y(43144),C=y(60136),g=y(29388),A=y(4942),O=y(91),K=y(74165),he=y(71002),ae=y(15861),fe=y(64217);function xe(wi,er){var Un="cannot ".concat(wi.method," ").concat(wi.action," ").concat(er.status,"'"),Wr=new Error(Un);return Wr.status=er.status,Wr.method=wi.method,Wr.url=wi.action,Wr}function ye(wi){var er=wi.responseText||wi.response;if(!er)return er;try{return JSON.parse(er)}catch(Un){return er}}function be(wi){var er=new XMLHttpRequest;wi.onProgress&&er.upload&&(er.upload.onprogress=function(_o){_o.total>0&&(_o.percent=_o.loaded/_o.total*100),wi.onProgress(_o)});var Un=new FormData;wi.data&&Object.keys(wi.data).forEach(function(Qr){var _o=wi.data[Qr];if(Array.isArray(_o)){_o.forEach(function(us){Un.append("".concat(Qr,"[]"),us)});return}Un.append(Qr,_o)}),wi.file instanceof Blob?Un.append(wi.filename,wi.file,wi.file.name):Un.append(wi.filename,wi.file),er.onerror=function(_o){wi.onError(_o)},er.onload=function(){return er.status<200||er.status>=300?wi.onError(xe(wi,er),ye(er)):wi.onSuccess(ye(er),er)},er.open(wi.method,wi.action,!0),wi.withCredentials&&"withCredentials"in er&&(er.withCredentials=!0);var Wr=wi.headers||{};return Wr["X-Requested-With"]!==null&&er.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Wr).forEach(function(Qr){Wr[Qr]!==null&&er.setRequestHeader(Qr,Wr[Qr])}),er.send(Un),{abort:function(){er.abort()}}}var Qe=+new Date,Ve=0;function pt(){return"rc-upload-".concat(Qe,"-").concat(++Ve)}var st=y(80334),Ae=function(wi,er){if(wi&&er){var Un=Array.isArray(er)?er:er.split(","),Wr=wi.name||"",Qr=wi.type||"",_o=Qr.replace(/\/.*$/,"");return Un.some(function(us){var es=us.trim();if(/^\*(\/\*)?$/.test(us))return!0;if(es.charAt(0)==="."){var Ma=Wr.toLowerCase(),ga=es.toLowerCase(),$a=[ga];return(ga===".jpg"||ga===".jpeg")&&($a=[".jpg",".jpeg"]),$a.some(function(Js){return Ma.endsWith(Js)})}return/\/\*$/.test(es)?_o===es.replace(/\/.*$/,""):Qr===es?!0:/^\w+$/.test(es)?((0,st.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(es,"'.Skip for check.")),!0):!1})}return!0};function De(wi,er){var Un=wi.createReader(),Wr=[];function Qr(){Un.readEntries(function(_o){var us=Array.prototype.slice.apply(_o);Wr=Wr.concat(us);var es=!us.length;es?er(Wr):Qr()})}Qr()}var Te=function(er,Un,Wr){var Qr=function _o(us,es){us&&(us.path=es||"",us.isFile?us.file(function(Ma){Wr(Ma)&&(us.fullPath&&!Ma.webkitRelativePath&&(Object.defineProperties(Ma,{webkitRelativePath:{writable:!0}}),Ma.webkitRelativePath=us.fullPath.replace(/^\//,""),Object.defineProperties(Ma,{webkitRelativePath:{writable:!1}})),Un([Ma]))}):us.isDirectory&&De(us,function(Ma){Ma.forEach(function(ga){_o(ga,"".concat(es).concat(us.name,"/"))})}))};er.forEach(function(_o){Qr(_o.webkitGetAsEntry())})},Me=Te,Ue=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Pe=function(wi){(0,C.Z)(Un,wi);var er=(0,g.Z)(Un);function Un(){var Wr;(0,k.Z)(this,Un);for(var Qr=arguments.length,_o=new Array(Qr),us=0;us{const{componentCls:er,iconCls:Un}=wi;return{[`${er}-wrapper`]:{[`${er}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:wi.colorFillAlter,border:`${(0,Ni.bf)(wi.lineWidth)} dashed ${wi.colorBorder}`,borderRadius:wi.borderRadiusLG,cursor:"pointer",transition:`border-color ${wi.motionDurationSlow}`,[er]:{padding:`${(0,Ni.bf)(wi.padding)} 0`},[`${er}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${er}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + &:not(${er}-disabled):hover, + &-hover:not(${er}-disabled) + `]:{borderColor:wi.colorPrimaryHover},[`p${er}-drag-icon`]:{marginBottom:wi.margin,[Un]:{color:wi.colorPrimary,fontSize:wi.uploadThumbnailSize}},[`p${er}-text`]:{margin:`0 0 ${(0,Ni.bf)(wi.marginXXS)}`,color:wi.colorTextHeading,fontSize:wi.fontSizeLG},[`p${er}-hint`]:{color:wi.colorTextDescription,fontSize:wi.fontSize},[`&${er}-disabled`]:{[`p${er}-drag-icon ${Un}, + p${er}-text, + p${er}-hint + `]:{color:wi.colorTextDisabled}}}}}},Ns=wi=>{const{componentCls:er,antCls:Un,iconCls:Wr,fontSize:Qr,lineHeight:_o,calc:us}=wi,es=`${er}-list-item`,Ma=`${es}-actions`,ga=`${es}-action`,$a=wi.fontHeightSM;return{[`${er}-wrapper`]:{[`${er}-list`]:Object.assign(Object.assign({},(0,un.dF)()),{lineHeight:wi.lineHeight,[es]:{position:"relative",height:us(wi.lineHeight).mul(Qr).equal(),marginTop:wi.marginXS,fontSize:Qr,display:"flex",alignItems:"center",transition:`background-color ${wi.motionDurationSlow}`,"&:hover":{backgroundColor:wi.controlItemBgHover},[`${es}-name`]:Object.assign(Object.assign({},un.vS),{padding:`0 ${(0,Ni.bf)(wi.paddingXS)}`,lineHeight:_o,flex:"auto",transition:`all ${wi.motionDurationSlow}`}),[Ma]:{[ga]:{opacity:0},[`${ga}${Un}-btn-sm`]:{height:$a,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` ${ga}:focus-visible, &.picture ${ga} - `]:{opacity:1},[jr]:{color:Si.actionsColor,transition:`all ${Si.motionDurationSlow}`},[`&:hover ${jr}`]:{color:Si.colorText}},[`${tr}-icon ${jr}`]:{color:Si.colorTextDescription,fontSize:Qr},[`${ns}-progress`]:{position:"absolute",bottom:Si.calc(Si.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:us(Qr).add(Si.paddingXS).equal(),fontSize:Qr,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${ns}:hover ${ga}`]:{opacity:1,color:Si.colorText},[`${ns}-error`]:{color:Si.colorError,[`${ns}-name, ${tr}-icon ${jr}`]:{color:Si.colorError},[Oa]:{[`${jr}, ${jr}:hover`]:{color:Si.colorError},[ga]:{opacity:1}}},[`${tr}-list-item-container`]:{transition:`opacity ${Si.motionDurationSlow}, height ${Si.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ce=_(45061);const Gi=new Ni.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),qi=new Ni.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var fi=Si=>{const{componentCls:tr}=Si,Un=`${tr}-animate-inline`;return[{[`${tr}-wrapper`]:{[`${Un}-appear, ${Un}-enter, ${Un}-leave`]:{animationDuration:Si.motionDurationSlow,animationTimingFunction:Si.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Un}-appear, ${Un}-enter`]:{animationName:Gi},[`${Un}-leave`]:{animationName:qi}}},{[`${tr}-wrapper`]:(0,Ce.J$)(Si)},Gi,qi]},Ms=_(63511),In=_(64993);const et=Si=>{const{componentCls:tr,iconCls:Un,uploadThumbnailSize:jr,uploadProgressOffset:Qr,calc:_o}=Si,us=`${tr}-list`,ns=`${us}-item`;return{[`${tr}-wrapper`]:{[` + `]:{opacity:1},[Wr]:{color:wi.actionsColor,transition:`all ${wi.motionDurationSlow}`},[`&:hover ${Wr}`]:{color:wi.colorText}},[`${er}-icon ${Wr}`]:{color:wi.colorTextDescription,fontSize:Qr},[`${es}-progress`]:{position:"absolute",bottom:wi.calc(wi.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:us(Qr).add(wi.paddingXS).equal(),fontSize:Qr,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${es}:hover ${ga}`]:{opacity:1,color:wi.colorText},[`${es}-error`]:{color:wi.colorError,[`${es}-name, ${er}-icon ${Wr}`]:{color:wi.colorError},[Ma]:{[`${Wr}, ${Wr}:hover`]:{color:wi.colorError},[ga]:{opacity:1}}},[`${er}-list-item-container`]:{transition:`opacity ${wi.motionDurationSlow}, height ${wi.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Se=y(16932);const Xi=new Ni.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yi=new Ni.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var di=wi=>{const{componentCls:er}=wi,Un=`${er}-animate-inline`;return[{[`${er}-wrapper`]:{[`${Un}-appear, ${Un}-enter, ${Un}-leave`]:{animationDuration:wi.motionDurationSlow,animationTimingFunction:wi.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Un}-appear, ${Un}-enter`]:{animationName:Xi},[`${Un}-leave`]:{animationName:Yi}}},{[`${er}-wrapper`]:(0,Se.J$)(wi)},Xi,Yi]},Fs=y(16397),Ln=y(10274);const it=wi=>{const{componentCls:er,iconCls:Un,uploadThumbnailSize:Wr,uploadProgressOffset:Qr,calc:_o}=wi,us=`${er}-list`,es=`${us}-item`;return{[`${er}-wrapper`]:{[` ${us}${us}-picture, ${us}${us}-picture-card, ${us}${us}-picture-circle - `]:{[ns]:{position:"relative",height:_o(jr).add(_o(Si.lineWidth).mul(2)).add(_o(Si.paddingXS).mul(2)).equal(),padding:Si.paddingXS,border:`${(0,Ni.bf)(Si.lineWidth)} ${Si.lineType} ${Si.colorBorder}`,borderRadius:Si.borderRadiusLG,"&:hover":{background:"transparent"},[`${ns}-thumbnail`]:Object.assign(Object.assign({},cn.vS),{width:jr,height:jr,lineHeight:(0,Ni.bf)(_o(jr).add(Si.paddingSM).equal()),textAlign:"center",flex:"none",[Un]:{fontSize:Si.fontSizeHeading2,color:Si.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ns}-progress`]:{bottom:Qr,width:`calc(100% - ${(0,Ni.bf)(_o(Si.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:_o(jr).add(Si.paddingXS).equal()}},[`${ns}-error`]:{borderColor:Si.colorError,[`${ns}-thumbnail ${Un}`]:{[`svg path[fill='${Ms.iN[0]}']`]:{fill:Si.colorErrorBg},[`svg path[fill='${Ms.iN.primary}']`]:{fill:Si.colorError}}},[`${ns}-uploading`]:{borderStyle:"dashed",[`${ns}-name`]:{marginBottom:Qr}}},[`${us}${us}-picture-circle ${ns}`]:{[`&, &::before, ${ns}-thumbnail`]:{borderRadius:"50%"}}}}},Dt=Si=>{const{componentCls:tr,iconCls:Un,fontSizeLG:jr,colorTextLightSolid:Qr,calc:_o}=Si,us=`${tr}-list`,ns=`${us}-item`,Oa=Si.uploadPicCardSize;return{[` - ${tr}-wrapper${tr}-picture-card-wrapper, - ${tr}-wrapper${tr}-picture-circle-wrapper - `]:Object.assign(Object.assign({},(0,cn.dF)()),{display:"inline-block",width:"100%",[`${tr}${tr}-select`]:{width:Oa,height:Oa,marginInlineEnd:Si.marginXS,marginBottom:Si.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Si.colorFillAlter,border:`${(0,Ni.bf)(Si.lineWidth)} dashed ${Si.colorBorder}`,borderRadius:Si.borderRadiusLG,cursor:"pointer",transition:`border-color ${Si.motionDurationSlow}`,[`> ${tr}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${tr}-disabled):hover`]:{borderColor:Si.colorPrimary}},[`${us}${us}-picture-card, ${us}${us}-picture-circle`]:{[`${us}-item-container`]:{display:"inline-block",width:Oa,height:Oa,marginBlock:`0 ${(0,Ni.bf)(Si.marginXS)}`,marginInline:`0 ${(0,Ni.bf)(Si.marginXS)}`,verticalAlign:"top"},"&::after":{display:"none"},[ns]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,Ni.bf)(_o(Si.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,Ni.bf)(_o(Si.paddingXS).mul(2).equal())})`,backgroundColor:Si.colorBgMask,opacity:0,transition:`all ${Si.motionDurationSlow}`,content:'" "'}},[`${ns}:hover`]:{[`&::before, ${ns}-actions`]:{opacity:1}},[`${ns}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Si.motionDurationSlow}`,[`${Un}-eye, ${Un}-download, ${Un}-delete`]:{zIndex:10,width:jr,margin:`0 ${(0,Ni.bf)(Si.marginXXS)}`,fontSize:jr,cursor:"pointer",transition:`all ${Si.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${ns}-actions, ${ns}-actions:hover`]:{[`${Un}-eye, ${Un}-download, ${Un}-delete`]:{color:new In.C(Qr).setAlpha(.65).toRgbString(),"&:hover":{color:Qr}}},[`${ns}-thumbnail, ${ns}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ns}-name`]:{display:"none",textAlign:"center"},[`${ns}-file + ${ns}-name`]:{position:"absolute",bottom:Si.margin,display:"block",width:`calc(100% - ${(0,Ni.bf)(_o(Si.paddingXS).mul(2).equal())})`},[`${ns}-uploading`]:{[`&${ns}`]:{backgroundColor:Si.colorFillAlter},[`&::before, ${Un}-eye, ${Un}-download, ${Un}-delete`]:{display:"none"}},[`${ns}-progress`]:{bottom:Si.marginXL,width:`calc(100% - ${(0,Ni.bf)(_o(Si.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${tr}-wrapper${tr}-picture-circle-wrapper`]:{[`${tr}${tr}-select`]:{borderRadius:"50%"}}}};var Dn=Si=>{const{componentCls:tr}=Si;return{[`${tr}-rtl`]:{direction:"rtl"}}};const gr=Si=>{const{componentCls:tr,colorTextDisabled:Un}=Si;return{[`${tr}-wrapper`]:Object.assign(Object.assign({},(0,cn.Wf)(Si)),{[tr]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${tr}-select`]:{display:"inline-block"},[`${tr}-disabled`]:{color:Un,cursor:"not-allowed"}})}},kn=Si=>({actionsColor:Si.colorTextDescription});var bn=(0,ii.I$)("Upload",Si=>{const{fontSizeHeading3:tr,fontHeight:Un,lineWidth:jr,controlHeightLG:Qr,calc:_o}=Si,us=(0,Pi.TS)(Si,{uploadThumbnailSize:_o(tr).mul(2).equal(),uploadProgressOffset:_o(_o(Un).div(2)).add(jr).equal(),uploadPicCardSize:_o(Qr).mul(2.55).equal()});return[gr(us),ti(us),et(us),Dt(us),Bs(us),fi(us),Dn(us),(0,Cr.Z)(us)]},kn),zt={icon:function(tr,Un){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Un}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:tr}}]}},name:"file",theme:"twotone"},Jt=zt,yn=_(91851),fr=function(tr,Un){return v.createElement(yn.Z,(0,V.Z)({},tr,{ref:Un,icon:Jt}))},vr=v.forwardRef(fr),pn=_(38521),wr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Sr=wr,Ai=function(tr,Un){return v.createElement(yn.Z,(0,V.Z)({},tr,{ref:Un,icon:Sr}))},mo=v.forwardRef(Ai),Fr={icon:function(tr,Un){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:tr}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Un}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Un}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Un}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:tr}}]}},name:"picture",theme:"twotone"},to=Fr,Ji=function(tr,Un){return v.createElement(yn.Z,(0,V.Z)({},tr,{ref:Un,icon:to}))},bo=v.forwardRef(Ji),xn=_(44516),fn=_(81259),It=_(82395),Zt=_(29341),gn=_(9949);function $n(Si){return Object.assign(Object.assign({},Si),{lastModified:Si.lastModified,lastModifiedDate:Si.lastModifiedDate,name:Si.name,size:Si.size,type:Si.type,uid:Si.uid,percent:0,originFileObj:Si})}function Ar(Si,tr){const Un=(0,R.Z)(tr),jr=Un.findIndex(Qr=>{let{uid:_o}=Qr;return _o===Si.uid});return jr===-1?Un.push(Si):Un[jr]=Si,Un}function Dr(Si,tr){const Un=Si.uid!==void 0?"uid":"name";return tr.filter(jr=>jr[Un]===Si[Un])[0]}function dr(Si,tr){const Un=Si.uid!==void 0?"uid":"name",jr=tr.filter(Qr=>Qr[Un]!==Si[Un]);return jr.length===tr.length?null:jr}const Xt=function(){const tr=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),jr=tr[tr.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(jr)||[""])[0]},Cn=Si=>Si.indexOf("image/")===0,er=Si=>{if(Si.type&&!Si.thumbUrl)return Cn(Si.type);const tr=Si.thumbUrl||Si.url||"",Un=Xt(tr);return/^data:image\//.test(tr)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Un)?!0:!(/^data:/.test(tr)||Un)},Mr=200;function ji(Si){return new Promise(tr=>{if(!Si.type||!Cn(Si.type)){tr("");return}const Un=document.createElement("canvas");Un.width=Mr,Un.height=Mr,Un.style.cssText=`position: fixed; left: 0; top: 0; width: ${Mr}px; height: ${Mr}px; z-index: 9999; display: none;`,document.body.appendChild(Un);const jr=Un.getContext("2d"),Qr=new Image;if(Qr.onload=()=>{const{width:_o,height:us}=Qr;let ns=Mr,Oa=Mr,ga=0,Va=0;_o>us?(Oa=us*(Mr/_o),Va=-(Oa-ns)/2):(ns=_o*(Mr/us),ga=-(ns-Oa)/2),jr.drawImage(Qr,ga,Va,ns,Oa);const ea=Un.toDataURL();document.body.removeChild(Un),window.URL.revokeObjectURL(Qr.src),tr(ea)},Qr.crossOrigin="anonymous",Si.type.startsWith("image/svg+xml")){const _o=new FileReader;_o.onload=()=>{_o.result&&(Qr.src=_o.result)},_o.readAsDataURL(Si)}else if(Si.type.startsWith("image/gif")){const _o=new FileReader;_o.onload=()=>{_o.result&&tr(_o.result)},_o.readAsDataURL(Si)}else Qr.src=window.URL.createObjectURL(Si)})}var An=_(77364),Xn=function(tr,Un){return v.createElement(yn.Z,(0,V.Z)({},tr,{ref:Un,icon:An.Z}))},nr=v.forwardRef(Xn),qr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},vi=qr,Hr=function(tr,Un){return v.createElement(yn.Z,(0,V.Z)({},tr,{ref:Un,icon:vi}))},di=v.forwardRef(Hr),gi=_(15997),mi=_(95934),Bi=_(75769),zr=_(48796),Xr=_(49934),Qi=_(99468),rs=_(36439),Ur={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},gs=function(){var tr=(0,v.useRef)([]),Un=(0,v.useRef)(null);return(0,v.useEffect)(function(){var jr=Date.now(),Qr=!1;tr.current.forEach(function(_o){if(_o){Qr=!0;var us=_o.style;us.transitionDuration=".3s, .3s, .3s, .06s",Un.current&&jr-Un.current<100&&(us.transitionDuration="0s, 0s")}}),Qr&&(Un.current=Date.now())}),tr.current},Kr=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ri=function(tr){var Un=(0,rs.Z)((0,rs.Z)({},Ur),tr),jr=Un.className,Qr=Un.percent,_o=Un.prefixCls,us=Un.strokeColor,ns=Un.strokeLinecap,Oa=Un.strokeWidth,ga=Un.style,Va=Un.trailColor,ea=Un.trailWidth,Xl=Un.transition,_a=(0,O.Z)(Un,Kr);delete _a.gapPosition;var Ta=Array.isArray(Qr)?Qr:[Qr],Ya=Array.isArray(us)?us:[us],cu=gs(),jl=Oa/2,Mu=100-Oa/2,Bl="M ".concat(ns==="round"?jl:0,",").concat(jl,` - L `).concat(ns==="round"?Mu:100,",").concat(jl),wl="0 0 100 ".concat(Oa),Tn=0;return v.createElement("svg",(0,V.Z)({className:B()("".concat(_o,"-line"),jr),viewBox:wl,preserveAspectRatio:"none",style:ga},_a),v.createElement("path",{className:"".concat(_o,"-line-trail"),d:Bl,strokeLinecap:ns,stroke:Va,strokeWidth:ea||Oa,fillOpacity:"0"}),Ta.map(function(nc,Iu){var Pc=1;switch(ns){case"round":Pc=1-Oa/100;break;case"square":Pc=1-Oa/2/100;break;default:Pc=1;break}var Wc={strokeDasharray:"".concat(nc*Pc,"px, 100px"),strokeDashoffset:"-".concat(Tn,"px"),transition:Xl||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},cd=Ya[Iu]||Ya[Ya.length-1];return Tn+=nc,v.createElement("path",{key:Iu,className:"".concat(_o,"-line-path"),d:Bl,strokeLinecap:ns,stroke:cd,strokeWidth:Oa,fillOpacity:"0",ref:function(vh){cu[Iu]=vh},style:Wc})}))},is=ri,Jr=_(61860),_n=_(42871),Br=0,es=(0,_n.Z)();function ko(){var Si;return es?(Si=Br,Br+=1):Si="TEST_OR_SSR",Si}var vs=function(Si){var tr=v.useState(),Un=(0,Jr.Z)(tr,2),jr=Un[0],Qr=Un[1];return v.useEffect(function(){Qr("rc_progress_".concat(ko()))},[]),Si||jr},Ba=function(tr){var Un=tr.bg,jr=tr.children;return v.createElement("div",{style:{width:"100%",height:"100%",background:Un}},jr)};function uo(Si,tr){return Object.keys(Si).map(function(Un){var jr=parseFloat(Un),Qr="".concat(Math.floor(jr*tr),"%");return"".concat(Si[Un]," ").concat(Qr)})}var ca=v.forwardRef(function(Si,tr){var Un=Si.prefixCls,jr=Si.color,Qr=Si.gradientId,_o=Si.radius,us=Si.style,ns=Si.ptg,Oa=Si.strokeLinecap,ga=Si.strokeWidth,Va=Si.size,ea=Si.gapDegree,Xl=jr&&(0,ce.Z)(jr)==="object",_a=Xl?"#FFF":void 0,Ta=Va/2,Ya=v.createElement("circle",{className:"".concat(Un,"-circle-path"),r:_o,cx:Ta,cy:Ta,stroke:_a,strokeLinecap:Oa,strokeWidth:ga,opacity:ns===0?0:1,style:us,ref:tr});if(!Xl)return Ya;var cu="".concat(Qr,"-conic"),jl=ea?"".concat(180+ea/2,"deg"):"0deg",Mu=uo(jr,(360-ea)/360),Bl=uo(jr,1),wl="conic-gradient(from ".concat(jl,", ").concat(Mu.join(", "),")"),Tn="linear-gradient(to ".concat(ea?"bottom":"top",", ").concat(Bl.join(", "),")");return v.createElement(v.Fragment,null,v.createElement("mask",{id:cu},Ya),v.createElement("foreignObject",{x:0,y:0,width:Va,height:Va,mask:"url(#".concat(cu,")")},v.createElement(Ba,{bg:Tn},v.createElement(Ba,{bg:wl}))))}),ll=ca,Ti=100,Li=function(tr,Un,jr,Qr,_o,us,ns,Oa,ga,Va){var ea=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Xl=jr/100*360*((360-us)/360),_a=us===0?0:{bottom:0,top:180,left:90,right:-90}[ns],Ta=(100-Qr)/100*Un;ga==="round"&&Qr!==100&&(Ta+=Va/2,Ta>=Un&&(Ta=Un-.01));var Ya=Ti/2;return{stroke:typeof Oa=="string"?Oa:void 0,strokeDasharray:"".concat(Un,"px ").concat(tr),strokeDashoffset:Ta+ea,transform:"rotate(".concat(_o+Xl+_a,"deg)"),transformOrigin:"".concat(Ya,"px ").concat(Ya,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},eo=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Eo(Si){var tr=Si!=null?Si:[];return Array.isArray(tr)?tr:[tr]}var hs=function(tr){var Un=(0,rs.Z)((0,rs.Z)({},Ur),tr),jr=Un.id,Qr=Un.prefixCls,_o=Un.steps,us=Un.strokeWidth,ns=Un.trailWidth,Oa=Un.gapDegree,ga=Oa===void 0?0:Oa,Va=Un.gapPosition,ea=Un.trailColor,Xl=Un.strokeLinecap,_a=Un.style,Ta=Un.className,Ya=Un.strokeColor,cu=Un.percent,jl=(0,O.Z)(Un,eo),Mu=Ti/2,Bl=vs(jr),wl="".concat(Bl,"-gradient"),Tn=Mu-us/2,nc=Math.PI*2*Tn,Iu=ga>0?90+ga/2:-90,Pc=nc*((360-ga)/360),Wc=(0,ce.Z)(_o)==="object"?_o:{count:_o,space:2},cd=Wc.count,Fc=Wc.space,vh=Eo(cu),Td=Eo(Ya),Gh=Td.find(function(Qh){return Qh&&(0,ce.Z)(Qh)==="object"}),yh=Gh&&(0,ce.Z)(Gh)==="object",kc=yh?"butt":Xl,Kh=Li(nc,Pc,0,100,Iu,ga,Va,ea,kc,us),$f=gs(),Vf=function(){var Mh=0;return vh.map(function(Wd,zs){var $a=Td[zs]||Td[Td.length-1],Ja=Li(nc,Pc,Mh,Wd,Iu,ga,Va,$a,kc,us);return Mh+=Wd,v.createElement(ll,{key:zs,color:$a,ptg:Wd,radius:Tn,prefixCls:Qr,gradientId:wl,style:Ja,strokeLinecap:kc,strokeWidth:us,gapDegree:ga,ref:function(au){$f[zs]=au},size:Ti})}).reverse()},_h=function(){var Mh=Math.round(cd*(vh[0]/100)),Wd=100/cd,zs=0;return new Array(cd).fill(null).map(function($a,Ja){var pl=Ja<=Mh-1?Td[0]:ea,au=pl&&(0,ce.Z)(pl)==="object"?"url(#".concat(wl,")"):void 0,ac=Li(nc,Pc,zs,Wd,Iu,ga,Va,pl,"butt",us,Fc);return zs+=(Pc-ac.strokeDashoffset+Fc)*100/Pc,v.createElement("circle",{key:Ja,className:"".concat(Qr,"-circle-path"),r:Tn,cx:Mu,cy:Mu,stroke:au,strokeWidth:us,opacity:1,style:ac,ref:function(cc){$f[Ja]=cc}})})};return v.createElement("svg",(0,V.Z)({className:B()("".concat(Qr,"-circle"),Ta),viewBox:"0 0 ".concat(Ti," ").concat(Ti),style:_a,id:jr,role:"presentation"},jl),!cd&&v.createElement("circle",{className:"".concat(Qr,"-circle-trail"),r:Tn,cx:Mu,cy:Mu,stroke:ea,strokeLinecap:kc,strokeWidth:ns||us,style:Kh}),cd?_h():Vf())},Wn=hs,yo={Line:is,Circle:Wn},Qo=_(38134);function os(Si){return!Si||Si<0?0:Si>100?100:Si}function Ko(Si){let{success:tr,successPercent:Un}=Si,jr=Un;return tr&&"progress"in tr&&(jr=tr.progress),tr&&"percent"in tr&&(jr=tr.percent),jr}const Yn=Si=>{let{percent:tr,success:Un,successPercent:jr}=Si;const Qr=os(Ko({success:Un,successPercent:jr}));return[Qr,os(os(tr)-Qr)]},kr=Si=>{let{success:tr={},strokeColor:Un}=Si;const{strokeColor:jr}=tr;return[jr||Ms.ez.green,Un||null]},Gr=(Si,tr,Un)=>{var jr,Qr,_o,us;let ns=-1,Oa=-1;if(tr==="step"){const ga=Un.steps,Va=Un.strokeWidth;typeof Si=="string"||typeof Si=="undefined"?(ns=Si==="small"?2:14,Oa=Va!=null?Va:8):typeof Si=="number"?[ns,Oa]=[Si,Si]:[ns=14,Oa=8]=Si,ns*=ga}else if(tr==="line"){const ga=Un==null?void 0:Un.strokeWidth;typeof Si=="string"||typeof Si=="undefined"?Oa=ga||(Si==="small"?6:8):typeof Si=="number"?[ns,Oa]=[Si,Si]:[ns=-1,Oa=8]=Si}else(tr==="circle"||tr==="dashboard")&&(typeof Si=="string"||typeof Si=="undefined"?[ns,Oa]=Si==="small"?[60,60]:[120,120]:typeof Si=="number"?[ns,Oa]=[Si,Si]:(ns=(Qr=(jr=Si[0])!==null&&jr!==void 0?jr:Si[1])!==null&&Qr!==void 0?Qr:120,Oa=(us=(_o=Si[0])!==null&&_o!==void 0?_o:Si[1])!==null&&us!==void 0?us:120));return[ns,Oa]},je=3,ut=Si=>je/Si*100;var Ue=Si=>{const{prefixCls:tr,trailColor:Un=null,strokeLinecap:jr="round",gapPosition:Qr,gapDegree:_o,width:us=120,type:ns,children:Oa,success:ga,size:Va=us}=Si,[ea,Xl]=Gr(Va,"circle");let{strokeWidth:_a}=Si;_a===void 0&&(_a=Math.max(ut(ea),6));const Ta={width:ea,height:Xl,fontSize:ea*.15+6},Ya=v.useMemo(()=>{if(_o||_o===0)return _o;if(ns==="dashboard")return 75},[_o,ns]),cu=Qr||ns==="dashboard"&&"bottom"||void 0,jl=Object.prototype.toString.call(Si.strokeColor)==="[object Object]",Mu=kr({success:ga,strokeColor:Si.strokeColor}),Bl=B()(`${tr}-inner`,{[`${tr}-circle-gradient`]:jl}),wl=v.createElement(Wn,{percent:Yn(Si),strokeWidth:_a,trailWidth:_a,strokeColor:Mu,strokeLinecap:jr,trailColor:Un,prefixCls:tr,gapDegree:Ya,gapPosition:cu});return v.createElement("div",{className:Bl,style:Ta},ea<=20?v.createElement(Qo.Z,{title:Oa},v.createElement("span",null,wl)):v.createElement(v.Fragment,null,wl,Oa))},ft=function(Si,tr){var Un={};for(var jr in Si)Object.prototype.hasOwnProperty.call(Si,jr)&&tr.indexOf(jr)<0&&(Un[jr]=Si[jr]);if(Si!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qr=0,jr=Object.getOwnPropertySymbols(Si);Qr{let tr=[];return Object.keys(Si).forEach(Un=>{const jr=parseFloat(Un.replace(/%/g,""));isNaN(jr)||tr.push({key:jr,value:Si[Un]})}),tr=tr.sort((Un,jr)=>Un.key-jr.key),tr.map(Un=>{let{key:jr,value:Qr}=Un;return`${Qr} ${jr}%`}).join(", ")},ln=(Si,tr)=>{const{from:Un=Ms.ez.blue,to:jr=Ms.ez.blue,direction:Qr=tr==="rtl"?"to left":"to right"}=Si,_o=ft(Si,["from","to","direction"]);if(Object.keys(_o).length!==0){const us=Pt(_o);return{backgroundImage:`linear-gradient(${Qr}, ${us})`}}return{backgroundImage:`linear-gradient(${Qr}, ${Un}, ${jr})`}};var Zr=Si=>{const{prefixCls:tr,direction:Un,percent:jr,size:Qr,strokeWidth:_o,strokeColor:us,strokeLinecap:ns="round",children:Oa,trailColor:ga=null,success:Va}=Si,{direction:ea}=(0,v.useContext)(lt.E_),Xl=us&&typeof us!="string"?ln(us,Un):{backgroundColor:us},_a=ns==="square"||ns==="butt"?0:void 0,Ta={backgroundColor:ga||void 0,borderRadius:_a},Ya=Qr!=null?Qr:[-1,_o||(Qr==="small"?6:8)],[cu,jl]=Gr(Ya,"line",{strokeWidth:_o}),Mu=Object.assign({width:"100%",height:jl,borderRadius:_a,clipPath:ea==="rtl"?`inset(0 0 0 ${100-os(jr)}% round 100px)`:`inset(0 ${100-os(jr)}% 0 0 round 100px)`},Xl),Bl=Ko(Si),wl={width:"100%",height:jl,borderRadius:_a,clipPath:ea==="rtl"?`inset(0 0 0 ${100-os(Bl)}% round 100px)`:`inset(0 ${100-os(Bl)}% 0 0 round 100px)`,backgroundColor:Va==null?void 0:Va.strokeColor},Tn={width:cu<0?"100%":cu,height:jl};return v.createElement(v.Fragment,null,v.createElement("div",{className:`${tr}-outer`,style:Tn},v.createElement("div",{className:`${tr}-inner`,style:Ta},v.createElement("div",{className:`${tr}-bg`,style:Mu}),Bl!==void 0?v.createElement("div",{className:`${tr}-success-bg`,style:wl}):null)),Oa)},To=Si=>{const{size:tr,steps:Un,percent:jr=0,strokeWidth:Qr=8,strokeColor:_o,trailColor:us=null,prefixCls:ns,children:Oa}=Si,ga=Math.round(Un*(jr/100)),Va=tr==="small"?2:14,ea=tr!=null?tr:[Va,Qr],[Xl,_a]=Gr(ea,"step",{steps:Un,strokeWidth:Qr}),Ta=Xl/Un,Ya=new Array(Un);for(let cu=0;cu{const tr=Si?"100%":"-100%";return new Ni.E4(`antProgress${Si?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${tr}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${tr}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Us=Si=>{const{componentCls:tr,iconCls:Un}=Si;return{[tr]:Object.assign(Object.assign({},(0,cn.Wf)(Si)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Si.fontSize,marginInlineEnd:Si.marginXS,marginBottom:Si.marginXS},[`${tr}-outer`]:{display:"inline-block",width:"100%"},[`&${tr}-show-info`]:{[`${tr}-outer`]:{marginInlineEnd:`calc(-2em - ${(0,Ni.bf)(Si.marginXS)})`,paddingInlineEnd:`calc(2em + ${(0,Ni.bf)(Si.paddingXS)})`}},[`${tr}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Si.remainingColor,borderRadius:Si.lineBorderRadius},[`${tr}-inner:not(${tr}-circle-gradient)`]:{[`${tr}-circle-path`]:{stroke:Si.defaultColor}},[`${tr}-success-bg, ${tr}-bg`]:{position:"relative",backgroundColor:Si.defaultColor,borderRadius:Si.lineBorderRadius,transition:`all ${Si.motionDurationSlow} ${Si.motionEaseInOutCirc}`},[`${tr}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Si.colorSuccess},[`${tr}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Si.marginXS,color:Si.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Un]:{fontSize:Si.fontSize}},[`&${tr}-status-active`]:{[`${tr}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Si.colorBgContainer,borderRadius:Si.lineBorderRadius,opacity:0,animationName:Vi(),animationDuration:Si.progressActiveMotionDuration,animationTimingFunction:Si.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${tr}-rtl${tr}-status-active`]:{[`${tr}-bg::before`]:{animationName:Vi(!0)}},[`&${tr}-status-exception`]:{[`${tr}-bg`]:{backgroundColor:Si.colorError},[`${tr}-text`]:{color:Si.colorError}},[`&${tr}-status-exception ${tr}-inner:not(${tr}-circle-gradient)`]:{[`${tr}-circle-path`]:{stroke:Si.colorError}},[`&${tr}-status-success`]:{[`${tr}-bg`]:{backgroundColor:Si.colorSuccess},[`${tr}-text`]:{color:Si.colorSuccess}},[`&${tr}-status-success ${tr}-inner:not(${tr}-circle-gradient)`]:{[`${tr}-circle-path`]:{stroke:Si.colorSuccess}}})}},Is=Si=>{const{componentCls:tr,iconCls:Un}=Si;return{[tr]:{[`${tr}-circle-trail`]:{stroke:Si.remainingColor},[`&${tr}-circle ${tr}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${tr}-circle ${tr}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Si.circleTextColor,fontSize:Si.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Un]:{fontSize:Si.circleIconFontSize}},[`${tr}-circle&-status-exception`]:{[`${tr}-text`]:{color:Si.colorError}},[`${tr}-circle&-status-success`]:{[`${tr}-text`]:{color:Si.colorSuccess}}},[`${tr}-inline-circle`]:{lineHeight:1,[`${tr}-inner`]:{verticalAlign:"bottom"}}}},Rs=Si=>{const{componentCls:tr}=Si;return{[tr]:{[`${tr}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Si.progressStepMinWidth,marginInlineEnd:Si.progressStepMarginInlineEnd,backgroundColor:Si.remainingColor,transition:`all ${Si.motionDurationSlow}`,"&-active":{backgroundColor:Si.defaultColor}}}}}},Ns=Si=>{const{componentCls:tr,iconCls:Un}=Si;return{[tr]:{[`${tr}-small&-line, ${tr}-small&-line ${tr}-text ${Un}`]:{fontSize:Si.fontSizeSM}}}},Lo=Si=>({circleTextColor:Si.colorText,defaultColor:Si.colorInfo,remainingColor:Si.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Si.fontSize/Si.fontSizeSM}em`});var Ps=(0,ii.I$)("Progress",Si=>{const tr=Si.calc(Si.marginXXS).div(2).equal(),Un=(0,Pi.TS)(Si,{progressStepMarginInlineEnd:tr,progressStepMinWidth:tr,progressActiveMotionDuration:"2.4s"});return[Us(Un),Is(Un),Rs(Un),Ns(Un)]},Lo),ua=function(Si,tr){var Un={};for(var jr in Si)Object.prototype.hasOwnProperty.call(Si,jr)&&tr.indexOf(jr)<0&&(Un[jr]=Si[jr]);if(Si!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qr=0,jr=Object.getOwnPropertySymbols(Si);Qr{const{prefixCls:Un,className:jr,rootClassName:Qr,steps:_o,strokeColor:us,percent:ns=0,size:Oa="default",showInfo:ga=!0,type:Va="line",status:ea,format:Xl,style:_a}=Si,Ta=ua(Si,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Ya=v.useMemo(()=>{var vh,Td;const Gh=Ko(Si);return parseInt(Gh!==void 0?(vh=Gh!=null?Gh:0)===null||vh===void 0?void 0:vh.toString():(Td=ns!=null?ns:0)===null||Td===void 0?void 0:Td.toString(),10)},[ns,Si.success,Si.successPercent]),cu=v.useMemo(()=>!Hl.includes(ea)&&Ya>=100?"success":ea||"normal",[ea,Ya]),{getPrefixCls:jl,direction:Mu,progress:Bl}=v.useContext(lt.E_),wl=jl("progress",Un),[Tn,nc]=Ps(wl),Iu=v.useMemo(()=>{if(!ga)return null;const vh=Ko(Si);let Td;const Gh=Xl||(kc=>`${kc}%`),yh=Va==="line";return Xl||cu!=="exception"&&cu!=="success"?Td=Gh(os(ns),os(vh)):cu==="exception"?Td=yh?v.createElement(zr.Z,null):v.createElement(Xr.Z,null):cu==="success"&&(Td=yh?v.createElement(mi.Z,null):v.createElement(Bi.Z,null)),v.createElement("span",{className:`${wl}-text`,title:typeof Td=="string"?Td:void 0},Td)},[ga,ns,Ya,cu,Va,wl,Xl]),Pc=Array.isArray(us)?us[0]:us,Wc=typeof us=="string"||Array.isArray(us)?us:void 0;let cd;Va==="line"?cd=_o?v.createElement(To,Object.assign({},Si,{strokeColor:Wc,prefixCls:wl,steps:_o}),Iu):v.createElement(Zr,Object.assign({},Si,{strokeColor:Pc,prefixCls:wl,direction:Mu}),Iu):(Va==="circle"||Va==="dashboard")&&(cd=v.createElement(Ue,Object.assign({},Si,{strokeColor:Pc,prefixCls:wl,progressStatus:cu}),Iu));const Fc=B()(wl,`${wl}-status-${cu}`,`${wl}-${Va==="dashboard"&&"circle"||_o&&"steps"||Va}`,{[`${wl}-inline-circle`]:Va==="circle"&&Gr(Oa,"circle")[0]<=20,[`${wl}-show-info`]:ga,[`${wl}-${Oa}`]:typeof Oa=="string",[`${wl}-rtl`]:Mu==="rtl"},Bl==null?void 0:Bl.className,jr,Qr,nc);return Tn(v.createElement("div",Object.assign({ref:tr,style:Object.assign(Object.assign({},Bl==null?void 0:Bl.style),_a),className:Fc,role:"progressbar","aria-valuenow":Ya},(0,Qi.Z)(Ta,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),cd))}),Hs=fs,Xo=v.forwardRef((Si,tr)=>{let{prefixCls:Un,className:jr,style:Qr,locale:_o,listType:us,file:ns,items:Oa,progress:ga,iconRender:Va,actionIconRender:ea,itemRender:Xl,isImgUrl:_a,showPreviewIcon:Ta,showRemoveIcon:Ya,showDownloadIcon:cu,previewIcon:jl,removeIcon:Mu,downloadIcon:Bl,onPreview:wl,onDownload:Tn,onClose:nc}=Si;var Iu,Pc;const{status:Wc}=ns,[cd,Fc]=v.useState(Wc);v.useEffect(()=>{Wc!=="removed"&&Fc(Wc)},[Wc]);const[vh,Td]=v.useState(!1);v.useEffect(()=>{const cc=setTimeout(()=>{Td(!0)},300);return()=>{clearTimeout(cc)}},[]);const Gh=Va(ns);let yh=v.createElement("div",{className:`${Un}-icon`},Gh);if(us==="picture"||us==="picture-card"||us==="picture-circle")if(cd==="uploading"||!ns.thumbUrl&&!ns.url){const cc=B()(`${Un}-list-item-thumbnail`,{[`${Un}-list-item-file`]:cd!=="uploading"});yh=v.createElement("div",{className:cc},Gh)}else{const cc=_a!=null&&_a(ns)?v.createElement("img",{src:ns.thumbUrl||ns.url,alt:ns.name,className:`${Un}-list-item-image`,crossOrigin:ns.crossOrigin}):Gh,Hu=B()(`${Un}-list-item-thumbnail`,{[`${Un}-list-item-file`]:_a&&!_a(ns)});yh=v.createElement("a",{className:Hu,onClick:Fl=>wl(ns,Fl),href:ns.url||ns.thumbUrl,target:"_blank",rel:"noopener noreferrer"},cc)}const kc=B()(`${Un}-list-item`,`${Un}-list-item-${cd}`),Kh=typeof ns.linkProps=="string"?JSON.parse(ns.linkProps):ns.linkProps,$f=Ya?ea((typeof Mu=="function"?Mu(ns):Mu)||v.createElement(nr,null),()=>nc(ns),Un,_o.removeFile):null,Vf=cu&&cd==="done"?ea((typeof Bl=="function"?Bl(ns):Bl)||v.createElement(di,null),()=>Tn(ns),Un,_o.downloadFile):null,_h=us!=="picture-card"&&us!=="picture-circle"&&v.createElement("span",{key:"download-delete",className:B()(`${Un}-list-item-actions`,{picture:us==="picture"})},Vf,$f),Qh=B()(`${Un}-list-item-name`),Mh=ns.url?[v.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Qh,title:ns.name},Kh,{href:ns.url,onClick:cc=>wl(ns,cc)}),ns.name),_h]:[v.createElement("span",{key:"view",className:Qh,onClick:cc=>wl(ns,cc),title:ns.name},ns.name),_h],Wd={pointerEvents:"none",opacity:.5},zs=Ta?v.createElement("a",{href:ns.url||ns.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:ns.url||ns.thumbUrl?void 0:Wd,onClick:cc=>wl(ns,cc),title:_o.previewFile},typeof jl=="function"?jl(ns):jl||v.createElement(gi.Z,null)):null,$a=(us==="picture-card"||us==="picture-circle")&&cd!=="uploading"&&v.createElement("span",{className:`${Un}-list-item-actions`},zs,cd==="done"&&Vf,$f),{getPrefixCls:Ja}=v.useContext(lt.E_),pl=Ja(),au=v.createElement("div",{className:kc},yh,Mh,$a,vh&&v.createElement(xn.ZP,{motionName:`${pl}-fade`,visible:cd==="uploading",motionDeadline:2e3},cc=>{let{className:Hu}=cc;const Fl="percent"in ns?v.createElement(Hs,Object.assign({},ga,{type:"line",percent:ns.percent,"aria-label":ns["aria-label"],"aria-labelledby":ns["aria-labelledby"]})):null;return v.createElement("div",{className:B()(`${Un}-list-item-progress`,Hu)},Fl)})),ac=ns.response&&typeof ns.response=="string"?ns.response:((Iu=ns.error)===null||Iu===void 0?void 0:Iu.statusText)||((Pc=ns.error)===null||Pc===void 0?void 0:Pc.message)||_o.uploadError,$u=cd==="error"?v.createElement(Qo.Z,{title:ac,getPopupContainer:cc=>cc.parentNode},au):au;return v.createElement("div",{className:B()(`${Un}-list-item-container`,jr),style:Qr,ref:tr},Xl?Xl($u,ns,Oa,{download:Tn.bind(null,ns),preview:wl.bind(null,ns),remove:nc.bind(null,ns)}):$u)});const Mi=(Si,tr)=>{const{listType:Un="text",previewFile:jr=ji,onPreview:Qr,onDownload:_o,onRemove:us,locale:ns,iconRender:Oa,isImageUrl:ga=er,prefixCls:Va,items:ea=[],showPreviewIcon:Xl=!0,showRemoveIcon:_a=!0,showDownloadIcon:Ta=!1,removeIcon:Ya,previewIcon:cu,downloadIcon:jl,progress:Mu={size:[-1,2],showInfo:!1},appendAction:Bl,appendActionVisible:wl=!0,itemRender:Tn,disabled:nc}=Si,Iu=(0,fn.Z)(),[Pc,Wc]=v.useState(!1);v.useEffect(()=>{Un!=="picture"&&Un!=="picture-card"&&Un!=="picture-circle"||(ea||[]).forEach(Wd=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Wd.originFileObj instanceof File||Wd.originFileObj instanceof Blob)||Wd.thumbUrl!==void 0||(Wd.thumbUrl="",jr&&jr(Wd.originFileObj).then(zs=>{Wd.thumbUrl=zs||"",Iu()}))})},[Un,ea,jr]),v.useEffect(()=>{Wc(!0)},[]);const cd=(Wd,zs)=>{if(Qr)return zs==null||zs.preventDefault(),Qr(Wd)},Fc=Wd=>{typeof _o=="function"?_o(Wd):Wd.url&&window.open(Wd.url)},vh=Wd=>{us==null||us(Wd)},Td=Wd=>{if(Oa)return Oa(Wd,Un);const zs=Wd.status==="uploading",$a=ga&&ga(Wd)?v.createElement(bo,null):v.createElement(vr,null);let Ja=zs?v.createElement(pn.Z,null):v.createElement(mo,null);return Un==="picture"?Ja=zs?v.createElement(pn.Z,null):$a:(Un==="picture-card"||Un==="picture-circle")&&(Ja=zs?ns.uploading:$a),Ja},Gh=(Wd,zs,$a,Ja)=>{const pl={type:"text",size:"small",title:Ja,onClick:au=>{zs(),(0,Zt.l$)(Wd)&&Wd.props.onClick&&Wd.props.onClick(au)},className:`${$a}-list-item-action`,disabled:nc};if((0,Zt.l$)(Wd)){const au=(0,Zt.Tm)(Wd,Object.assign(Object.assign({},Wd.props),{onClick:()=>{}}));return v.createElement(gn.ZP,Object.assign({},pl,{icon:au}))}return v.createElement(gn.ZP,Object.assign({},pl),v.createElement("span",null,Wd))};v.useImperativeHandle(tr,()=>({handlePreview:cd,handleDownload:Fc}));const{getPrefixCls:yh}=v.useContext(lt.E_),kc=yh("upload",Va),Kh=yh(),$f=B()(`${kc}-list`,`${kc}-list-${Un}`),Vf=(0,R.Z)(ea.map(Wd=>({key:Wd.uid,file:Wd})));let Qh={motionDeadline:2e3,motionName:`${kc}-${Un==="picture-card"||Un==="picture-circle"?"animate-inline":"animate"}`,keys:Vf,motionAppear:Pc};const Mh=v.useMemo(()=>{const Wd=Object.assign({},(0,It.Z)(Kh));return delete Wd.onAppearEnd,delete Wd.onEnterEnd,delete Wd.onLeaveEnd,Wd},[Kh]);return Un!=="picture-card"&&Un!=="picture-circle"&&(Qh=Object.assign(Object.assign({},Mh),Qh)),v.createElement("div",{className:$f},v.createElement(xn.V4,Object.assign({},Qh,{component:!1}),Wd=>{let{key:zs,file:$a,className:Ja,style:pl}=Wd;return v.createElement(Xo,{key:zs,locale:ns,prefixCls:kc,className:Ja,style:pl,file:$a,items:ea,progress:Mu,listType:Un,isImgUrl:ga,showPreviewIcon:Xl,showRemoveIcon:_a,showDownloadIcon:Ta,removeIcon:Ya,previewIcon:cu,downloadIcon:jl,iconRender:Td,actionIconRender:Gh,itemRender:Tn,onPreview:cd,onDownload:Fc,onClose:vh})}),Bl&&v.createElement(xn.ZP,Object.assign({},Qh,{visible:wl,forceRender:!0}),Wd=>{let{className:zs,style:$a}=Wd;return(0,Zt.Tm)(Bl,Ja=>({className:B()(Ja.className,zs),style:Object.assign(Object.assign(Object.assign({},$a),{pointerEvents:zs?"none":void 0}),Ja.style)}))}))};var Os=v.forwardRef(Mi),Cs=function(Si,tr,Un,jr){function Qr(_o){return _o instanceof Un?_o:new Un(function(us){us(_o)})}return new(Un||(Un=Promise))(function(_o,us){function ns(Va){try{ga(jr.next(Va))}catch(ea){us(ea)}}function Oa(Va){try{ga(jr.throw(Va))}catch(ea){us(ea)}}function ga(Va){Va.done?_o(Va.value):Qr(Va.value).then(ns,Oa)}ga((jr=jr.apply(Si,tr||[])).next())})};const xa=`__LIST_IGNORE_${Date.now()}__`,Xu=(Si,tr)=>{const{fileList:Un,defaultFileList:jr,onRemove:Qr,showUploadList:_o=!0,listType:us="text",onPreview:ns,onDownload:Oa,onChange:ga,onDrop:Va,previewFile:ea,disabled:Xl,locale:_a,iconRender:Ta,isImageUrl:Ya,progress:cu,prefixCls:jl,className:Mu,type:Bl="select",children:wl,style:Tn,itemRender:nc,maxCount:Iu,data:Pc={},multiple:Wc=!1,action:cd="",accept:Fc="",supportServerRender:vh=!0,rootClassName:Td}=Si,Gh=v.useContext(Gt.Z),yh=Xl!=null?Xl:Gh,[kc,Kh]=(0,Ct.Z)(jr||[],{value:Un,postState:Al=>Al!=null?Al:[]}),[$f,Vf]=v.useState("drop"),_h=v.useRef(null);v.useMemo(()=>{const Al=Date.now();(Un||[]).forEach((du,Au)=>{!du.uid&&!Object.isFrozen(du)&&(du.uid=`__AUTO__${Al}_${Au}__`)})},[Un]);const Qh=(Al,du,Au)=>{let Sc=(0,R.Z)(du),_d=!1;Iu===1?Sc=Sc.slice(-1):Iu&&(_d=Sc.length>Iu,Sc=Sc.slice(0,Iu)),(0,w.flushSync)(()=>{Kh(Sc)});const wd={file:Al,fileList:Sc};Au&&(wd.event=Au),(!_d||Sc.some(ef=>ef.uid===Al.uid))&&(0,w.flushSync)(()=>{ga==null||ga(wd)})},Mh=(Al,du)=>Cs(void 0,void 0,void 0,function*(){const{beforeUpload:Au,transformFile:Sc}=Si;let _d=Al;if(Au){const wd=yield Au(Al,du);if(wd===!1)return!1;if(delete Al[xa],wd===xa)return Object.defineProperty(Al,xa,{value:!0,configurable:!0}),!1;typeof wd=="object"&&wd&&(_d=wd)}return Sc&&(_d=yield Sc(_d)),_d}),Wd=Al=>{const du=Al.filter(_d=>!_d.file[xa]);if(!du.length)return;const Au=du.map(_d=>$n(_d.file));let Sc=(0,R.Z)(kc);Au.forEach(_d=>{Sc=Ar(_d,Sc)}),Au.forEach((_d,wd)=>{let ef=_d;if(du[wd].parsedFile)_d.status="uploading";else{const{originFileObj:Jh}=_d;let uh;try{uh=new File([Jh],Jh.name,{type:Jh.type})}catch(cf){uh=new Blob([Jh],{type:Jh.type}),uh.name=Jh.name,uh.lastModifiedDate=new Date,uh.lastModified=new Date().getTime()}uh.uid=_d.uid,ef=uh}Qh(ef,Sc)})},zs=(Al,du,Au)=>{try{typeof Al=="string"&&(Al=JSON.parse(Al))}catch(wd){}if(!Dr(du,kc))return;const Sc=$n(du);Sc.status="done",Sc.percent=100,Sc.response=Al,Sc.xhr=Au;const _d=Ar(Sc,kc);Qh(Sc,_d)},$a=(Al,du)=>{if(!Dr(du,kc))return;const Au=$n(du);Au.status="uploading",Au.percent=Al.percent;const Sc=Ar(Au,kc);Qh(Au,Sc,Al)},Ja=(Al,du,Au)=>{if(!Dr(Au,kc))return;const Sc=$n(Au);Sc.error=Al,Sc.response=du,Sc.status="error";const _d=Ar(Sc,kc);Qh(Sc,_d)},pl=Al=>{let du;Promise.resolve(typeof Qr=="function"?Qr(Al):Qr).then(Au=>{var Sc;if(Au===!1)return;const _d=dr(Al,kc);_d&&(du=Object.assign(Object.assign({},Al),{status:"removed"}),kc==null||kc.forEach(wd=>{const ef=du.uid!==void 0?"uid":"name";wd[ef]===du[ef]&&!Object.isFrozen(wd)&&(wd.status="removed")}),(Sc=_h.current)===null||Sc===void 0||Sc.abort(du),Qh(du,_d))})},au=Al=>{Vf(Al.type),Al.type==="drop"&&(Va==null||Va(Al))};v.useImperativeHandle(tr,()=>({onBatchStart:Wd,onSuccess:zs,onProgress:$a,onError:Ja,fileList:kc,upload:_h.current}));const{getPrefixCls:ac,direction:$u,upload:cc}=v.useContext(lt.E_),Hu=ac("upload",jl),Fl=Object.assign(Object.assign({onBatchStart:Wd,onError:Ja,onProgress:$a,onSuccess:zs},Si),{data:Pc,multiple:Wc,action:cd,accept:Fc,supportServerRender:vh,prefixCls:Hu,disabled:yh,beforeUpload:Mh,onChange:void 0});delete Fl.className,delete Fl.style,(!wl||yh)&&delete Fl.id;const Ou=`${Hu}-wrapper`,[Qc,fd]=bn(Hu,Ou),[Qd]=(0,Rt.Z)("Upload",an.Z.Upload),{showRemoveIcon:Bh,showPreviewIcon:Gd,showDownloadIcon:Ch,removeIcon:Ad,previewIcon:bd,downloadIcon:su}=typeof _o=="boolean"?{}:_o,nh=typeof Bh=="undefined"?!yh:!!Bh,tl=(Al,du)=>_o?v.createElement(Os,{prefixCls:Hu,listType:us,items:kc,previewFile:ea,onPreview:ns,onDownload:Oa,onRemove:pl,showRemoveIcon:nh,showPreviewIcon:Gd,showDownloadIcon:Ch,removeIcon:Ad,previewIcon:bd,downloadIcon:su,iconRender:Ta,locale:Object.assign(Object.assign({},Qd),_a),isImageUrl:Ya,progress:cu,appendAction:Al,appendActionVisible:du,itemRender:nc,disabled:yh}):Al,mu=B()(Ou,Mu,Td,fd,cc==null?void 0:cc.className,{[`${Hu}-rtl`]:$u==="rtl",[`${Hu}-picture-card-wrapper`]:us==="picture-card",[`${Hu}-picture-circle-wrapper`]:us==="picture-circle"}),md=Object.assign(Object.assign({},cc==null?void 0:cc.style),Tn);if(Bl==="drag"){const Al=B()(fd,Hu,`${Hu}-drag`,{[`${Hu}-drag-uploading`]:kc.some(du=>du.status==="uploading"),[`${Hu}-drag-hover`]:$f==="dragover",[`${Hu}-disabled`]:yh,[`${Hu}-rtl`]:$u==="rtl"});return Qc(v.createElement("span",{className:mu},v.createElement("div",{className:Al,style:md,onDrop:au,onDragOver:au,onDragLeave:au},v.createElement(nt,Object.assign({},Fl,{ref:_h,className:`${Hu}-btn`}),v.createElement("div",{className:`${Hu}-drag-container`},wl))),tl()))}const Uh=B()(Hu,`${Hu}-select`,{[`${Hu}-disabled`]:yh}),_u=(Al=>v.createElement("div",{className:Uh,style:Al},v.createElement(nt,Object.assign({},Fl,{ref:_h}))))(wl?void 0:{display:"none"});return Qc(us==="picture-card"||us==="picture-circle"?v.createElement("span",{className:mu},tl(_u,!!wl)):v.createElement("span",{className:mu},_u,tl()))};var Zu=v.forwardRef(Xu),Cd=function(Si,tr){var Un={};for(var jr in Si)Object.prototype.hasOwnProperty.call(Si,jr)&&tr.indexOf(jr)<0&&(Un[jr]=Si[jr]);if(Si!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qr=0,jr=Object.getOwnPropertySymbols(Si);Qr{var{style:Un,height:jr}=Si,Qr=Cd(Si,["style","height"]);return v.createElement(Zu,Object.assign({ref:tr},Qr,{type:"drag",style:Object.assign(Object.assign({},Un),{height:jr})}))});const iu=Zu;iu.Dragger=gu,iu.LIST_IGNORE=xa;var Tu=iu},67083:function(_t,Y,_){"use strict";var v=_(46094).default;Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;var R=v(_(48804)),w=Y.default=R.default},43016:function(_t,Y,_){"use strict";var v=_(46094).default;Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;var R=v(_(28274)),w=Y.default=R.default},48804:function(_t,Y,_){"use strict";var v=_(46094).default;Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;var R=v(_(25942)),w=v(_(30848));const b={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},R.default),timePickerLocale:Object.assign({},w.default)};var B=Y.default=b},28274:function(_t,Y,_){"use strict";var v=_(46094).default;Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;var R=v(_(874)),w=v(_(85618));const b={lang:Object.assign({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},R.default),timePickerLocale:Object.assign({},w.default)};b.lang.ok="\u786E\u5B9A";var B=Y.default=b},28772:function(_t,Y,_){"use strict";var v,R=_(46094).default;v={value:!0},Y.Z=void 0;var w=R(_(21722)),b=R(_(67083)),B=R(_(48804)),V=R(_(30848));const k="${label} is not a valid ${type}",M={locale:"en",Pagination:w.default,DatePicker:B.default,TimePicker:V.default,Calendar:b.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:k,method:k,array:k,object:k,number:k,date:k,boolean:k,integer:k,float:k,regexp:k,email:k,url:k,hex:k},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};var C=Y.Z=M},32365:function(_t,Y,_){"use strict";var v,R=_(46094).default;v={value:!0},Y.Z=void 0;var w=R(_(75817)),b=R(_(43016)),B=R(_(28274)),V=R(_(85618));const k="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",M={locale:"zh-cn",Pagination:w.default,DatePicker:B.default,TimePicker:V.default,Calendar:b.default,global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{titles:["",""],searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00"},PageHeader:{back:"\u8FD4\u56DE"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:k,method:k,array:k,object:k,number:k,date:k,boolean:k,integer:k,float:k,regexp:k,email:k,url:k,hex:k},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0"},ColorPicker:{presetEmpty:"\u6682\u65E0"}};var C=Y.Z=M},30848:function(_t,Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;const _={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var v=Y.default=_},85618:function(_t,Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;const _={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};var v=Y.default=_},86251:function(_t,Y){"use strict";Y.byteLength=k,Y.toByteArray=C,Y.fromByteArray=O;for(var _=[],v=[],R=typeof Uint8Array!="undefined"?Uint8Array:Array,w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,B=w.length;b0)throw new Error("Invalid string. Length must be a multiple of 4");var de=K.indexOf("=");de===-1&&(de=ce);var ve=de===ce?0:4-de%4;return[de,ve]}function k(K){var ce=V(K),de=ce[0],ve=ce[1];return(de+ve)*3/4-ve}function M(K,ce,de){return(ce+de)*3/4-de}function C(K){var ce,de=V(K),ve=de[0],Ee=de[1],_e=new R(M(K,ve,Ee)),we=0,ot=Ee>0?ve-4:ve,He;for(He=0;He>16&255,_e[we++]=ce>>8&255,_e[we++]=ce&255;return Ee===2&&(ce=v[K.charCodeAt(He)]<<2|v[K.charCodeAt(He+1)]>>4,_e[we++]=ce&255),Ee===1&&(ce=v[K.charCodeAt(He)]<<10|v[K.charCodeAt(He+1)]<<4|v[K.charCodeAt(He+2)]>>2,_e[we++]=ce>>8&255,_e[we++]=ce&255),_e}function g(K){return _[K>>18&63]+_[K>>12&63]+_[K>>6&63]+_[K&63]}function A(K,ce,de){for(var ve,Ee=[],_e=ce;_eot?ot:we+_e));return ve===1?(ce=K[de-1],Ee.push(_[ce>>2]+_[ce<<4&63]+"==")):ve===2&&(ce=(K[de-2]<<8)+K[de-1],Ee.push(_[ce>>10]+_[ce>>4&63]+_[ce<<2&63]+"=")),Ee.join("")}},29114:function(_t,Y,_){"use strict";var v;var R=_(86251),w=_(67467),b=_(99100);Y.lW=M,v=_e,Y.h2=50,M.TYPED_ARRAY_SUPPORT=_.g.TYPED_ARRAY_SUPPORT!==void 0?_.g.TYPED_ARRAY_SUPPORT:B(),v=V();function B(){try{var In=new Uint8Array(1);return In.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},In.foo()===42&&typeof In.subarray=="function"&&In.subarray(1,1).byteLength===0}catch(et){return!1}}function V(){return M.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function k(In,et){if(V()=V())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+V().toString(16)+" bytes");return In|0}function _e(In){return+In!=In&&(In=0),M.alloc(+In)}M.isBuffer=function(et){return!!(et!=null&&et._isBuffer)},M.compare=function(et,Dt){if(!M.isBuffer(et)||!M.isBuffer(Dt))throw new TypeError("Arguments must be Buffers");if(et===Dt)return 0;for(var $t=et.length,Dn=Dt.length,gr=0,kn=Math.min($t,Dn);gr>>1;case"base64":return co(In).length;default:if($t)return Ce(In).length;et=(""+et).toLowerCase(),$t=!0}}M.byteLength=we;function ot(In,et,Dt){var $t=!1;if((et===void 0||et<0)&&(et=0),et>this.length||((Dt===void 0||Dt>this.length)&&(Dt=this.length),Dt<=0)||(Dt>>>=0,et>>>=0,Dt<=et))return"";for(In||(In="utf8");;)switch(In){case"hex":return lt(this,et,Dt);case"utf8":case"utf-8":return ze(this,et,Dt);case"ascii":return nt(this,et,Dt);case"latin1":case"binary":return Ct(this,et,Dt);case"base64":return Xe(this,et,Dt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Gt(this,et,Dt);default:if($t)throw new TypeError("Unknown encoding: "+In);In=(In+"").toLowerCase(),$t=!0}}M.prototype._isBuffer=!0;function He(In,et,Dt){var $t=In[et];In[et]=In[Dt],In[Dt]=$t}M.prototype.swap16=function(){var et=this.length;if(et%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Dt=0;Dt0&&(et=this.toString("hex",0,Dt).match(/.{2}/g).join(" "),this.length>Dt&&(et+=" ... ")),""},M.prototype.compare=function(et,Dt,$t,Dn,gr){if(!M.isBuffer(et))throw new TypeError("Argument must be a Buffer");if(Dt===void 0&&(Dt=0),$t===void 0&&($t=et?et.length:0),Dn===void 0&&(Dn=0),gr===void 0&&(gr=this.length),Dt<0||$t>et.length||Dn<0||gr>this.length)throw new RangeError("out of range index");if(Dn>=gr&&Dt>=$t)return 0;if(Dn>=gr)return-1;if(Dt>=$t)return 1;if(Dt>>>=0,$t>>>=0,Dn>>>=0,gr>>>=0,this===et)return 0;for(var kn=gr-Dn,bn=$t-Dt,zt=Math.min(kn,bn),Jt=this.slice(Dn,gr),yn=et.slice(Dt,$t),fr=0;fr2147483647?Dt=2147483647:Dt<-2147483648&&(Dt=-2147483648),Dt=+Dt,isNaN(Dt)&&(Dt=Dn?0:In.length-1),Dt<0&&(Dt=In.length+Dt),Dt>=In.length){if(Dn)return-1;Dt=In.length-1}else if(Dt<0)if(Dn)Dt=0;else return-1;if(typeof et=="string"&&(et=M.from(et,$t)),M.isBuffer(et))return et.length===0?-1:dt(In,et,Dt,$t,Dn);if(typeof et=="number")return et=et&255,M.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Dn?Uint8Array.prototype.indexOf.call(In,et,Dt):Uint8Array.prototype.lastIndexOf.call(In,et,Dt):dt(In,[et],Dt,$t,Dn);throw new TypeError("val must be string, number or Buffer")}function dt(In,et,Dt,$t,Dn){var gr=1,kn=In.length,bn=et.length;if($t!==void 0&&($t=String($t).toLowerCase(),$t==="ucs2"||$t==="ucs-2"||$t==="utf16le"||$t==="utf-16le")){if(In.length<2||et.length<2)return-1;gr=2,kn/=2,bn/=2,Dt/=2}function zt(pn,wr){return gr===1?pn[wr]:pn.readUInt16BE(wr*gr)}var Jt;if(Dn){var yn=-1;for(Jt=Dt;Jtkn&&(Dt=kn-bn),Jt=Dt;Jt>=0;Jt--){for(var fr=!0,vr=0;vrDn&&($t=Dn)):$t=Dn;var gr=et.length;if(gr%2!==0)throw new TypeError("Invalid hex string");$t>gr/2&&($t=gr/2);for(var kn=0;kn<$t;++kn){var bn=parseInt(et.substr(kn*2,2),16);if(isNaN(bn))return kn;In[Dt+kn]=bn}return kn}function De(In,et,Dt,$t){return fi(Ce(et,In.length-Dt),In,Dt,$t)}function Ae(In,et,Dt,$t){return fi(Gi(et),In,Dt,$t)}function Re(In,et,Dt,$t){return Ae(In,et,Dt,$t)}function $e(In,et,Dt,$t){return fi(co(et),In,Dt,$t)}function Ie(In,et,Dt,$t){return fi(qi(et,In.length-Dt),In,Dt,$t)}M.prototype.write=function(et,Dt,$t,Dn){if(Dt===void 0)Dn="utf8",$t=this.length,Dt=0;else if($t===void 0&&typeof Dt=="string")Dn=Dt,$t=this.length,Dt=0;else if(isFinite(Dt))Dt=Dt|0,isFinite($t)?($t=$t|0,Dn===void 0&&(Dn="utf8")):(Dn=$t,$t=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var gr=this.length-Dt;if(($t===void 0||$t>gr)&&($t=gr),et.length>0&&($t<0||Dt<0)||Dt>this.length)throw new RangeError("Attempt to write outside buffer bounds");Dn||(Dn="utf8");for(var kn=!1;;)switch(Dn){case"hex":return Pe(this,et,Dt,$t);case"utf8":case"utf-8":return De(this,et,Dt,$t);case"ascii":return Ae(this,et,Dt,$t);case"latin1":case"binary":return Re(this,et,Dt,$t);case"base64":return $e(this,et,Dt,$t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ie(this,et,Dt,$t);default:if(kn)throw new TypeError("Unknown encoding: "+Dn);Dn=(""+Dn).toLowerCase(),kn=!0}},M.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Xe(In,et,Dt){return et===0&&Dt===In.length?R.fromByteArray(In):R.fromByteArray(In.slice(et,Dt))}function ze(In,et,Dt){Dt=Math.min(In.length,Dt);for(var $t=[],Dn=et;Dn239?4:gr>223?3:gr>191?2:1;if(Dn+bn<=Dt){var zt,Jt,yn,fr;switch(bn){case 1:gr<128&&(kn=gr);break;case 2:zt=In[Dn+1],(zt&192)===128&&(fr=(gr&31)<<6|zt&63,fr>127&&(kn=fr));break;case 3:zt=In[Dn+1],Jt=In[Dn+2],(zt&192)===128&&(Jt&192)===128&&(fr=(gr&15)<<12|(zt&63)<<6|Jt&63,fr>2047&&(fr<55296||fr>57343)&&(kn=fr));break;case 4:zt=In[Dn+1],Jt=In[Dn+2],yn=In[Dn+3],(zt&192)===128&&(Jt&192)===128&&(yn&192)===128&&(fr=(gr&15)<<18|(zt&63)<<12|(Jt&63)<<6|yn&63,fr>65535&&fr<1114112&&(kn=fr))}}kn===null?(kn=65533,bn=1):kn>65535&&(kn-=65536,$t.push(kn>>>10&1023|55296),kn=56320|kn&1023),$t.push(kn),Dn+=bn}return St($t)}var Kt=4096;function St(In){var et=In.length;if(et<=Kt)return String.fromCharCode.apply(String,In);for(var Dt="",$t=0;$t$t)&&(Dt=$t);for(var Dn="",gr=et;gr$t&&(et=$t),Dt<0?(Dt+=$t,Dt<0&&(Dt=0)):Dt>$t&&(Dt=$t),DtDt)throw new RangeError("Trying to access beyond buffer length")}M.prototype.readUIntLE=function(et,Dt,$t){et=et|0,Dt=Dt|0,$t||Rt(et,Dt,this.length);for(var Dn=this[et],gr=1,kn=0;++kn0&&(gr*=256);)Dn+=this[et+--Dt]*gr;return Dn},M.prototype.readUInt8=function(et,Dt){return Dt||Rt(et,1,this.length),this[et]},M.prototype.readUInt16LE=function(et,Dt){return Dt||Rt(et,2,this.length),this[et]|this[et+1]<<8},M.prototype.readUInt16BE=function(et,Dt){return Dt||Rt(et,2,this.length),this[et]<<8|this[et+1]},M.prototype.readUInt32LE=function(et,Dt){return Dt||Rt(et,4,this.length),(this[et]|this[et+1]<<8|this[et+2]<<16)+this[et+3]*16777216},M.prototype.readUInt32BE=function(et,Dt){return Dt||Rt(et,4,this.length),this[et]*16777216+(this[et+1]<<16|this[et+2]<<8|this[et+3])},M.prototype.readIntLE=function(et,Dt,$t){et=et|0,Dt=Dt|0,$t||Rt(et,Dt,this.length);for(var Dn=this[et],gr=1,kn=0;++kn=gr&&(Dn-=Math.pow(2,8*Dt)),Dn},M.prototype.readIntBE=function(et,Dt,$t){et=et|0,Dt=Dt|0,$t||Rt(et,Dt,this.length);for(var Dn=Dt,gr=1,kn=this[et+--Dn];Dn>0&&(gr*=256);)kn+=this[et+--Dn]*gr;return gr*=128,kn>=gr&&(kn-=Math.pow(2,8*Dt)),kn},M.prototype.readInt8=function(et,Dt){return Dt||Rt(et,1,this.length),this[et]&128?(255-this[et]+1)*-1:this[et]},M.prototype.readInt16LE=function(et,Dt){Dt||Rt(et,2,this.length);var $t=this[et]|this[et+1]<<8;return $t&32768?$t|4294901760:$t},M.prototype.readInt16BE=function(et,Dt){Dt||Rt(et,2,this.length);var $t=this[et+1]|this[et]<<8;return $t&32768?$t|4294901760:$t},M.prototype.readInt32LE=function(et,Dt){return Dt||Rt(et,4,this.length),this[et]|this[et+1]<<8|this[et+2]<<16|this[et+3]<<24},M.prototype.readInt32BE=function(et,Dt){return Dt||Rt(et,4,this.length),this[et]<<24|this[et+1]<<16|this[et+2]<<8|this[et+3]},M.prototype.readFloatLE=function(et,Dt){return Dt||Rt(et,4,this.length),w.read(this,et,!0,23,4)},M.prototype.readFloatBE=function(et,Dt){return Dt||Rt(et,4,this.length),w.read(this,et,!1,23,4)},M.prototype.readDoubleLE=function(et,Dt){return Dt||Rt(et,8,this.length),w.read(this,et,!0,52,8)},M.prototype.readDoubleBE=function(et,Dt){return Dt||Rt(et,8,this.length),w.read(this,et,!1,52,8)};function an(In,et,Dt,$t,Dn,gr){if(!M.isBuffer(In))throw new TypeError('"buffer" argument must be a Buffer instance');if(et>Dn||etIn.length)throw new RangeError("Index out of range")}M.prototype.writeUIntLE=function(et,Dt,$t,Dn){if(et=+et,Dt=Dt|0,$t=$t|0,!Dn){var gr=Math.pow(2,8*$t)-1;an(this,et,Dt,$t,gr,0)}var kn=1,bn=0;for(this[Dt]=et&255;++bn<$t&&(kn*=256);)this[Dt+bn]=et/kn&255;return Dt+$t},M.prototype.writeUIntBE=function(et,Dt,$t,Dn){if(et=+et,Dt=Dt|0,$t=$t|0,!Dn){var gr=Math.pow(2,8*$t)-1;an(this,et,Dt,$t,gr,0)}var kn=$t-1,bn=1;for(this[Dt+kn]=et&255;--kn>=0&&(bn*=256);)this[Dt+kn]=et/bn&255;return Dt+$t},M.prototype.writeUInt8=function(et,Dt,$t){return et=+et,Dt=Dt|0,$t||an(this,et,Dt,1,255,0),M.TYPED_ARRAY_SUPPORT||(et=Math.floor(et)),this[Dt]=et&255,Dt+1};function cn(In,et,Dt,$t){et<0&&(et=65535+et+1);for(var Dn=0,gr=Math.min(In.length-Dt,2);Dn>>($t?Dn:1-Dn)*8}M.prototype.writeUInt16LE=function(et,Dt,$t){return et=+et,Dt=Dt|0,$t||an(this,et,Dt,2,65535,0),M.TYPED_ARRAY_SUPPORT?(this[Dt]=et&255,this[Dt+1]=et>>>8):cn(this,et,Dt,!0),Dt+2},M.prototype.writeUInt16BE=function(et,Dt,$t){return et=+et,Dt=Dt|0,$t||an(this,et,Dt,2,65535,0),M.TYPED_ARRAY_SUPPORT?(this[Dt]=et>>>8,this[Dt+1]=et&255):cn(this,et,Dt,!1),Dt+2};function Cr(In,et,Dt,$t){et<0&&(et=4294967295+et+1);for(var Dn=0,gr=Math.min(In.length-Dt,4);Dn>>($t?Dn:3-Dn)*8&255}M.prototype.writeUInt32LE=function(et,Dt,$t){return et=+et,Dt=Dt|0,$t||an(this,et,Dt,4,4294967295,0),M.TYPED_ARRAY_SUPPORT?(this[Dt+3]=et>>>24,this[Dt+2]=et>>>16,this[Dt+1]=et>>>8,this[Dt]=et&255):Cr(this,et,Dt,!0),Dt+4},M.prototype.writeUInt32BE=function(et,Dt,$t){return et=+et,Dt=Dt|0,$t||an(this,et,Dt,4,4294967295,0),M.TYPED_ARRAY_SUPPORT?(this[Dt]=et>>>24,this[Dt+1]=et>>>16,this[Dt+2]=et>>>8,this[Dt+3]=et&255):Cr(this,et,Dt,!1),Dt+4},M.prototype.writeIntLE=function(et,Dt,$t,Dn){if(et=+et,Dt=Dt|0,!Dn){var gr=Math.pow(2,8*$t-1);an(this,et,Dt,$t,gr-1,-gr)}var kn=0,bn=1,zt=0;for(this[Dt]=et&255;++kn<$t&&(bn*=256);)et<0&&zt===0&&this[Dt+kn-1]!==0&&(zt=1),this[Dt+kn]=(et/bn>>0)-zt&255;return Dt+$t},M.prototype.writeIntBE=function(et,Dt,$t,Dn){if(et=+et,Dt=Dt|0,!Dn){var gr=Math.pow(2,8*$t-1);an(this,et,Dt,$t,gr-1,-gr)}var kn=$t-1,bn=1,zt=0;for(this[Dt+kn]=et&255;--kn>=0&&(bn*=256);)et<0&&zt===0&&this[Dt+kn+1]!==0&&(zt=1),this[Dt+kn]=(et/bn>>0)-zt&255;return Dt+$t},M.prototype.writeInt8=function(et,Dt,$t){return et=+et,Dt=Dt|0,$t||an(this,et,Dt,1,127,-128),M.TYPED_ARRAY_SUPPORT||(et=Math.floor(et)),et<0&&(et=255+et+1),this[Dt]=et&255,Dt+1},M.prototype.writeInt16LE=function(et,Dt,$t){return et=+et,Dt=Dt|0,$t||an(this,et,Dt,2,32767,-32768),M.TYPED_ARRAY_SUPPORT?(this[Dt]=et&255,this[Dt+1]=et>>>8):cn(this,et,Dt,!0),Dt+2},M.prototype.writeInt16BE=function(et,Dt,$t){return et=+et,Dt=Dt|0,$t||an(this,et,Dt,2,32767,-32768),M.TYPED_ARRAY_SUPPORT?(this[Dt]=et>>>8,this[Dt+1]=et&255):cn(this,et,Dt,!1),Dt+2},M.prototype.writeInt32LE=function(et,Dt,$t){return et=+et,Dt=Dt|0,$t||an(this,et,Dt,4,2147483647,-2147483648),M.TYPED_ARRAY_SUPPORT?(this[Dt]=et&255,this[Dt+1]=et>>>8,this[Dt+2]=et>>>16,this[Dt+3]=et>>>24):Cr(this,et,Dt,!0),Dt+4},M.prototype.writeInt32BE=function(et,Dt,$t){return et=+et,Dt=Dt|0,$t||an(this,et,Dt,4,2147483647,-2147483648),et<0&&(et=4294967295+et+1),M.TYPED_ARRAY_SUPPORT?(this[Dt]=et>>>24,this[Dt+1]=et>>>16,this[Dt+2]=et>>>8,this[Dt+3]=et&255):Cr(this,et,Dt,!1),Dt+4};function ii(In,et,Dt,$t,Dn,gr){if(Dt+$t>In.length)throw new RangeError("Index out of range");if(Dt<0)throw new RangeError("Index out of range")}function Pi(In,et,Dt,$t,Dn){return Dn||ii(In,et,Dt,4,34028234663852886e22,-34028234663852886e22),w.write(In,et,Dt,$t,23,4),Dt+4}M.prototype.writeFloatLE=function(et,Dt,$t){return Pi(this,et,Dt,!0,$t)},M.prototype.writeFloatBE=function(et,Dt,$t){return Pi(this,et,Dt,!1,$t)};function Ni(In,et,Dt,$t,Dn){return Dn||ii(In,et,Dt,8,17976931348623157e292,-17976931348623157e292),w.write(In,et,Dt,$t,52,8),Dt+8}M.prototype.writeDoubleLE=function(et,Dt,$t){return Ni(this,et,Dt,!0,$t)},M.prototype.writeDoubleBE=function(et,Dt,$t){return Ni(this,et,Dt,!1,$t)},M.prototype.copy=function(et,Dt,$t,Dn){if($t||($t=0),!Dn&&Dn!==0&&(Dn=this.length),Dt>=et.length&&(Dt=et.length),Dt||(Dt=0),Dn>0&&Dn<$t&&(Dn=$t),Dn===$t||et.length===0||this.length===0)return 0;if(Dt<0)throw new RangeError("targetStart out of bounds");if($t<0||$t>=this.length)throw new RangeError("sourceStart out of bounds");if(Dn<0)throw new RangeError("sourceEnd out of bounds");Dn>this.length&&(Dn=this.length),et.length-Dt=0;--kn)et[kn+Dt]=this[kn+$t];else if(gr<1e3||!M.TYPED_ARRAY_SUPPORT)for(kn=0;kn>>0,$t=$t===void 0?this.length:$t>>>0,et||(et=0);var kn;if(typeof et=="number")for(kn=Dt;kn<$t;++kn)this[kn]=et;else{var bn=M.isBuffer(et)?et:Ce(new M(et,Dn).toString()),zt=bn.length;for(kn=0;kn<$t-Dt;++kn)this[kn+Dt]=bn[kn%zt]}return this};var Yi=/[^+\/0-9A-Za-z-_]/g;function ti(In){if(In=Ts(In).replace(Yi,""),In.length<2)return"";for(;In.length%4!==0;)In=In+"=";return In}function Ts(In){return In.trim?In.trim():In.replace(/^\s+|\s+$/g,"")}function Bs(In){return In<16?"0"+In.toString(16):In.toString(16)}function Ce(In,et){et=et||1/0;for(var Dt,$t=In.length,Dn=null,gr=[],kn=0;kn<$t;++kn){if(Dt=In.charCodeAt(kn),Dt>55295&&Dt<57344){if(!Dn){if(Dt>56319){(et-=3)>-1&&gr.push(239,191,189);continue}else if(kn+1===$t){(et-=3)>-1&&gr.push(239,191,189);continue}Dn=Dt;continue}if(Dt<56320){(et-=3)>-1&&gr.push(239,191,189),Dn=Dt;continue}Dt=(Dn-55296<<10|Dt-56320)+65536}else Dn&&(et-=3)>-1&&gr.push(239,191,189);if(Dn=null,Dt<128){if((et-=1)<0)break;gr.push(Dt)}else if(Dt<2048){if((et-=2)<0)break;gr.push(Dt>>6|192,Dt&63|128)}else if(Dt<65536){if((et-=3)<0)break;gr.push(Dt>>12|224,Dt>>6&63|128,Dt&63|128)}else if(Dt<1114112){if((et-=4)<0)break;gr.push(Dt>>18|240,Dt>>12&63|128,Dt>>6&63|128,Dt&63|128)}else throw new Error("Invalid code point")}return gr}function Gi(In){for(var et=[],Dt=0;Dt>8,Dn=Dt%256,gr.push(Dn),gr.push($t);return gr}function co(In){return R.toByteArray(ti(In))}function fi(In,et,Dt,$t){for(var Dn=0;Dn<$t&&!(Dn+Dt>=et.length||Dn>=In.length);++Dn)et[Dn+Dt]=In[Dn];return Dn}function Ms(In){return In!==In}},97683:function(_t,Y,_){"use strict";var v=_(44532),R=_(71262),w=R(v("String.prototype.indexOf"));_t.exports=function(B,V){var k=v(B,!!V);return typeof k=="function"&&w(B,".prototype.")>-1?R(k):k}},71262:function(_t,Y,_){"use strict";var v=_(36723),R=_(44532),w=_(59662),b=R("%TypeError%"),B=R("%Function.prototype.apply%"),V=R("%Function.prototype.call%"),k=R("%Reflect.apply%",!0)||v.call(V,B),M=R("%Object.defineProperty%",!0),C=R("%Math.max%");if(M)try{M({},"a",{value:1})}catch(A){M=null}_t.exports=function(O){if(typeof O!="function")throw new b("a function is required");var K=k(v,V,arguments);return w(K,1+C(0,O.length-(arguments.length-1)),!0)};var g=function(){return k(v,B,arguments)};M?M(_t.exports,"apply",{value:g}):_t.exports.apply=g},28594:function(_t){(function(_,v){_t.exports=v()})(this,function(){return function(){var Y={686:function(R,w,b){"use strict";b.d(w,{default:function(){return nt}});var B=b(279),V=b.n(B),k=b(370),M=b.n(k),C=b(817),g=b.n(C);function A(Ct){try{return document.execCommand(Ct)}catch(lt){return!1}}var O=function(lt){var Gt=g()(lt);return A("cut"),Gt},K=O;function ce(Ct){var lt=document.documentElement.getAttribute("dir")==="rtl",Gt=document.createElement("textarea");Gt.style.fontSize="12pt",Gt.style.border="0",Gt.style.padding="0",Gt.style.margin="0",Gt.style.position="absolute",Gt.style[lt?"right":"left"]="-9999px";var Rt=window.pageYOffset||document.documentElement.scrollTop;return Gt.style.top="".concat(Rt,"px"),Gt.setAttribute("readonly",""),Gt.value=Ct,Gt}var de=function(lt,Gt){var Rt=ce(lt);Gt.container.appendChild(Rt);var an=g()(Rt);return A("copy"),Rt.remove(),an},ve=function(lt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},Rt="";return typeof lt=="string"?Rt=de(lt,Gt):lt instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(lt==null?void 0:lt.type)?Rt=de(lt.value,Gt):(Rt=g()(lt),A("copy")),Rt},Ee=ve;function _e(Ct){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_e=function(Gt){return typeof Gt}:_e=function(Gt){return Gt&&typeof Symbol=="function"&&Gt.constructor===Symbol&&Gt!==Symbol.prototype?"symbol":typeof Gt},_e(Ct)}var we=function(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Gt=lt.action,Rt=Gt===void 0?"copy":Gt,an=lt.container,cn=lt.target,Cr=lt.text;if(Rt!=="copy"&&Rt!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(cn!==void 0)if(cn&&_e(cn)==="object"&&cn.nodeType===1){if(Rt==="copy"&&cn.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(Rt==="cut"&&(cn.hasAttribute("readonly")||cn.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Cr)return Ee(Cr,{container:an});if(cn)return Rt==="cut"?K(cn):Ee(cn,{container:an})},ot=we;function He(Ct){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?He=function(Gt){return typeof Gt}:He=function(Gt){return Gt&&typeof Symbol=="function"&&Gt.constructor===Symbol&&Gt!==Symbol.prototype?"symbol":typeof Gt},He(Ct)}function vt(Ct,lt){if(!(Ct instanceof lt))throw new TypeError("Cannot call a class as a function")}function dt(Ct,lt){for(var Gt=0;Gt0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof an.action=="function"?an.action:this.defaultAction,this.target=typeof an.target=="function"?an.target:this.defaultTarget,this.text=typeof an.text=="function"?an.text:this.defaultText,this.container=He(an.container)==="object"?an.container:document.body}},{key:"listenClick",value:function(an){var cn=this;this.listener=M()(an,"click",function(Cr){return cn.onClick(Cr)})}},{key:"onClick",value:function(an){var cn=an.delegateTarget||an.currentTarget,Cr=this.action(cn)||"copy",ii=ot({action:Cr,container:this.container,target:this.target(cn),text:this.text(cn)});this.emit(ii?"success":"error",{action:Cr,text:ii,trigger:cn,clearSelection:function(){cn&&cn.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(an){return Kt("action",an)}},{key:"defaultTarget",value:function(an){var cn=Kt("target",an);if(cn)return document.querySelector(cn)}},{key:"defaultText",value:function(an){return Kt("text",an)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(an){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return Ee(an,cn)}},{key:"cut",value:function(an){return K(an)}},{key:"isSupported",value:function(){var an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],cn=typeof an=="string"?[an]:an,Cr=!!document.queryCommandSupported;return cn.forEach(function(ii){Cr=Cr&&!!document.queryCommandSupported(ii)}),Cr}}]),Gt}(V()),nt=St},828:function(R){var w=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var b=Element.prototype;b.matches=b.matchesSelector||b.mozMatchesSelector||b.msMatchesSelector||b.oMatchesSelector||b.webkitMatchesSelector}function B(V,k){for(;V&&V.nodeType!==w;){if(typeof V.matches=="function"&&V.matches(k))return V;V=V.parentNode}}R.exports=B},438:function(R,w,b){var B=b(828);function V(C,g,A,O,K){var ce=M.apply(this,arguments);return C.addEventListener(A,ce,K),{destroy:function(){C.removeEventListener(A,ce,K)}}}function k(C,g,A,O,K){return typeof C.addEventListener=="function"?V.apply(null,arguments):typeof A=="function"?V.bind(null,document).apply(null,arguments):(typeof C=="string"&&(C=document.querySelectorAll(C)),Array.prototype.map.call(C,function(ce){return V(ce,g,A,O,K)}))}function M(C,g,A,O){return function(K){K.delegateTarget=B(K.target,g),K.delegateTarget&&O.call(C,K)}}R.exports=k},879:function(R,w){w.node=function(b){return b!==void 0&&b instanceof HTMLElement&&b.nodeType===1},w.nodeList=function(b){var B=Object.prototype.toString.call(b);return b!==void 0&&(B==="[object NodeList]"||B==="[object HTMLCollection]")&&"length"in b&&(b.length===0||w.node(b[0]))},w.string=function(b){return typeof b=="string"||b instanceof String},w.fn=function(b){var B=Object.prototype.toString.call(b);return B==="[object Function]"}},370:function(R,w,b){var B=b(879),V=b(438);function k(A,O,K){if(!A&&!O&&!K)throw new Error("Missing required arguments");if(!B.string(O))throw new TypeError("Second argument must be a String");if(!B.fn(K))throw new TypeError("Third argument must be a Function");if(B.node(A))return M(A,O,K);if(B.nodeList(A))return C(A,O,K);if(B.string(A))return g(A,O,K);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function M(A,O,K){return A.addEventListener(O,K),{destroy:function(){A.removeEventListener(O,K)}}}function C(A,O,K){return Array.prototype.forEach.call(A,function(ce){ce.addEventListener(O,K)}),{destroy:function(){Array.prototype.forEach.call(A,function(ce){ce.removeEventListener(O,K)})}}}function g(A,O,K){return V(document.body,A,O,K)}R.exports=k},817:function(R){function w(b){var B;if(b.nodeName==="SELECT")b.focus(),B=b.value;else if(b.nodeName==="INPUT"||b.nodeName==="TEXTAREA"){var V=b.hasAttribute("readonly");V||b.setAttribute("readonly",""),b.select(),b.setSelectionRange(0,b.value.length),V||b.removeAttribute("readonly"),B=b.value}else{b.hasAttribute("contenteditable")&&b.focus();var k=window.getSelection(),M=document.createRange();M.selectNodeContents(b),k.removeAllRanges(),k.addRange(M),B=k.toString()}return B}R.exports=w},279:function(R){function w(){}w.prototype={on:function(b,B,V){var k=this.e||(this.e={});return(k[b]||(k[b]=[])).push({fn:B,ctx:V}),this},once:function(b,B,V){var k=this;function M(){k.off(b,M),B.apply(V,arguments)}return M._=B,this.on(b,M,V)},emit:function(b){var B=[].slice.call(arguments,1),V=((this.e||(this.e={}))[b]||[]).slice(),k=0,M=V.length;for(k;k1&&(C-=1)),[C*360,g*100,ce*100]},w.rgb.hwb=function(B){const V=B[0],k=B[1];let M=B[2];const C=w.rgb.hsl(B)[0],g=1/255*Math.min(V,Math.min(k,M));return M=1-1/255*Math.max(V,Math.max(k,M)),[C,g*100,M*100]},w.rgb.cmyk=function(B){const V=B[0]/255,k=B[1]/255,M=B[2]/255,C=Math.min(1-V,1-k,1-M),g=(1-V-C)/(1-C)||0,A=(1-k-C)/(1-C)||0,O=(1-M-C)/(1-C)||0;return[g*100,A*100,O*100,C*100]};function b(B,V){return ty(B[0]-V[0],2)+ty(B[1]-V[1],2)+ty(B[2]-V[2],2)}w.rgb.keyword=function(B){const V=R[B];if(V)return V;let k=1/0,M;for(const C of Object.keys(v)){const g=v[C],A=b(B,g);A.04045?ty((V+.055)/1.055,2.4):V/12.92,k=k>.04045?ty((k+.055)/1.055,2.4):k/12.92,M=M>.04045?ty((M+.055)/1.055,2.4):M/12.92;const C=V*.4124+k*.3576+M*.1805,g=V*.2126+k*.7152+M*.0722,A=V*.0193+k*.1192+M*.9505;return[C*100,g*100,A*100]},w.rgb.lab=function(B){const V=w.rgb.xyz(B);let k=V[0],M=V[1],C=V[2];k/=95.047,M/=100,C/=108.883,k=k>.008856?ty(k,1/3):7.787*k+16/116,M=M>.008856?ty(M,1/3):7.787*M+16/116,C=C>.008856?ty(C,1/3):7.787*C+16/116;const g=116*M-16,A=500*(k-M),O=200*(M-C);return[g,A,O]},w.hsl.rgb=function(B){const V=B[0]/360,k=B[1]/100,M=B[2]/100;let C,g,A;if(k===0)return A=M*255,[A,A,A];M<.5?C=M*(1+k):C=M+k-M*k;const O=2*M-C,K=[0,0,0];for(let ce=0;ce<3;ce++)g=V+1/3*-(ce-1),g<0&&g++,g>1&&g--,6*g<1?A=O+(C-O)*6*g:2*g<1?A=C:3*g<2?A=O+(C-O)*(2/3-g)*6:A=O,K[ce]=A*255;return K},w.hsl.hsv=function(B){const V=B[0];let k=B[1]/100,M=B[2]/100,C=k;const g=Math.max(M,.01);M*=2,k*=M<=1?M:2-M,C*=g<=1?g:2-g;const A=(M+k)/2,O=M===0?2*C/(g+C):2*k/(M+k);return[V,O*100,A*100]},w.hsv.rgb=function(B){const V=B[0]/60,k=B[1]/100;let M=B[2]/100;const C=Math.floor(V)%6,g=V-Math.floor(V),A=255*M*(1-k),O=255*M*(1-k*g),K=255*M*(1-k*(1-g));switch(M*=255,C){case 0:return[M,K,A];case 1:return[O,M,A];case 2:return[A,M,K];case 3:return[A,O,M];case 4:return[K,A,M];case 5:return[M,A,O]}},w.hsv.hsl=function(B){const V=B[0],k=B[1]/100,M=B[2]/100,C=Math.max(M,.01);let g,A;A=(2-k)*M;const O=(2-k)*C;return g=k*C,g/=O<=1?O:2-O,g=g||0,A/=2,[V,g*100,A*100]},w.hwb.rgb=function(B){const V=B[0]/360;let k=B[1]/100,M=B[2]/100;const C=k+M;let g;C>1&&(k/=C,M/=C);const A=Math.floor(6*V),O=1-M;g=6*V-A,A&1&&(g=1-g);const K=k+g*(O-k);let ce,de,ve;switch(A){default:case 6:case 0:ce=O,de=K,ve=k;break;case 1:ce=K,de=O,ve=k;break;case 2:ce=k,de=O,ve=K;break;case 3:ce=k,de=K,ve=O;break;case 4:ce=K,de=k,ve=O;break;case 5:ce=O,de=k,ve=K;break}return[ce*255,de*255,ve*255]},w.cmyk.rgb=function(B){const V=B[0]/100,k=B[1]/100,M=B[2]/100,C=B[3]/100,g=1-Math.min(1,V*(1-C)+C),A=1-Math.min(1,k*(1-C)+C),O=1-Math.min(1,M*(1-C)+C);return[g*255,A*255,O*255]},w.xyz.rgb=function(B){const V=B[0]/100,k=B[1]/100,M=B[2]/100;let C,g,A;return C=V*3.2406+k*-1.5372+M*-.4986,g=V*-.9689+k*1.8758+M*.0415,A=V*.0557+k*-.204+M*1.057,C=C>.0031308?1.055*ty(C,1/2.4)-.055:C*12.92,g=g>.0031308?1.055*ty(g,1/2.4)-.055:g*12.92,A=A>.0031308?1.055*ty(A,1/2.4)-.055:A*12.92,C=Math.min(Math.max(0,C),1),g=Math.min(Math.max(0,g),1),A=Math.min(Math.max(0,A),1),[C*255,g*255,A*255]},w.xyz.lab=function(B){let V=B[0],k=B[1],M=B[2];V/=95.047,k/=100,M/=108.883,V=V>.008856?ty(V,1/3):7.787*V+16/116,k=k>.008856?ty(k,1/3):7.787*k+16/116,M=M>.008856?ty(M,1/3):7.787*M+16/116;const C=116*k-16,g=500*(V-k),A=200*(k-M);return[C,g,A]},w.lab.xyz=function(B){const V=B[0],k=B[1],M=B[2];let C,g,A;g=(V+16)/116,C=k/500+g,A=g-M/200;const O=ty(g,3),K=ty(C,3),ce=ty(A,3);return g=O>.008856?O:(g-16/116)/7.787,C=K>.008856?K:(C-16/116)/7.787,A=ce>.008856?ce:(A-16/116)/7.787,C*=95.047,g*=100,A*=108.883,[C,g,A]},w.lab.lch=function(B){const V=B[0],k=B[1],M=B[2];let C;C=Math.atan2(M,k)*360/2/Math.PI,C<0&&(C+=360);const A=Math.sqrt(k*k+M*M);return[V,A,C]},w.lch.lab=function(B){const V=B[0],k=B[1],C=B[2]/360*2*Math.PI,g=k*Math.cos(C),A=k*Math.sin(C);return[V,g,A]},w.rgb.ansi16=function(B,V=null){const[k,M,C]=B;let g=V===null?w.rgb.hsv(B)[2]:V;if(g=Math.round(g/50),g===0)return 30;let A=30+(Math.round(C/255)<<2|Math.round(M/255)<<1|Math.round(k/255));return g===2&&(A+=60),A},w.hsv.ansi16=function(B){return w.rgb.ansi16(w.hsv.rgb(B),B[2])},w.rgb.ansi256=function(B){const V=B[0],k=B[1],M=B[2];return V===k&&k===M?V<8?16:V>248?231:Math.round((V-8)/247*24)+232:16+36*Math.round(V/255*5)+6*Math.round(k/255*5)+Math.round(M/255*5)},w.ansi16.rgb=function(B){let V=B%10;if(V===0||V===7)return B>50&&(V+=3.5),V=V/10.5*255,[V,V,V];const k=(~~(B>50)+1)*.5,M=(V&1)*k*255,C=(V>>1&1)*k*255,g=(V>>2&1)*k*255;return[M,C,g]},w.ansi256.rgb=function(B){if(B>=232){const g=(B-232)*10+8;return[g,g,g]}B-=16;let V;const k=Math.floor(B/36)/5*255,M=Math.floor((V=B%36)/6)/5*255,C=V%6/5*255;return[k,M,C]},w.rgb.hex=function(B){const k=(((Math.round(B[0])&255)<<16)+((Math.round(B[1])&255)<<8)+(Math.round(B[2])&255)).toString(16).toUpperCase();return"000000".substring(k.length)+k},w.hex.rgb=function(B){const V=B.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!V)return[0,0,0];let k=V[0];V[0].length===3&&(k=k.split("").map(O=>O+O).join(""));const M=parseInt(k,16),C=M>>16&255,g=M>>8&255,A=M&255;return[C,g,A]},w.rgb.hcg=function(B){const V=B[0]/255,k=B[1]/255,M=B[2]/255,C=Math.max(Math.max(V,k),M),g=Math.min(Math.min(V,k),M),A=C-g;let O,K;return A<1?O=g/(1-A):O=0,A<=0?K=0:C===V?K=(k-M)/A%6:C===k?K=2+(M-V)/A:K=4+(V-k)/A,K/=6,K%=1,[K*360,A*100,O*100]},w.hsl.hcg=function(B){const V=B[1]/100,k=B[2]/100,M=k<.5?2*V*k:2*V*(1-k);let C=0;return M<1&&(C=(k-.5*M)/(1-M)),[B[0],M*100,C*100]},w.hsv.hcg=function(B){const V=B[1]/100,k=B[2]/100,M=V*k;let C=0;return M<1&&(C=(k-M)/(1-M)),[B[0],M*100,C*100]},w.hcg.rgb=function(B){const V=B[0]/360,k=B[1]/100,M=B[2]/100;if(k===0)return[M*255,M*255,M*255];const C=[0,0,0],g=V%1*6,A=g%1,O=1-A;let K=0;switch(Math.floor(g)){case 0:C[0]=1,C[1]=A,C[2]=0;break;case 1:C[0]=O,C[1]=1,C[2]=0;break;case 2:C[0]=0,C[1]=1,C[2]=A;break;case 3:C[0]=0,C[1]=O,C[2]=1;break;case 4:C[0]=A,C[1]=0,C[2]=1;break;default:C[0]=1,C[1]=0,C[2]=O}return K=(1-k)*M,[(k*C[0]+K)*255,(k*C[1]+K)*255,(k*C[2]+K)*255]},w.hcg.hsv=function(B){const V=B[1]/100,k=B[2]/100,M=V+k*(1-V);let C=0;return M>0&&(C=V/M),[B[0],C*100,M*100]},w.hcg.hsl=function(B){const V=B[1]/100,M=B[2]/100*(1-V)+.5*V;let C=0;return M>0&&M<.5?C=V/(2*M):M>=.5&&M<1&&(C=V/(2*(1-M))),[B[0],C*100,M*100]},w.hcg.hwb=function(B){const V=B[1]/100,k=B[2]/100,M=V+k*(1-V);return[B[0],(M-V)*100,(1-M)*100]},w.hwb.hcg=function(B){const V=B[1]/100,M=1-B[2]/100,C=M-V;let g=0;return C<1&&(g=(M-C)/(1-C)),[B[0],C*100,g*100]},w.apple.rgb=function(B){return[B[0]/65535*255,B[1]/65535*255,B[2]/65535*255]},w.rgb.apple=function(B){return[B[0]/255*65535,B[1]/255*65535,B[2]/255*65535]},w.gray.rgb=function(B){return[B[0]/100*255,B[0]/100*255,B[0]/100*255]},w.gray.hsl=function(B){return[0,0,B[0]]},w.gray.hsv=w.gray.hsl,w.gray.hwb=function(B){return[0,100,B[0]]},w.gray.cmyk=function(B){return[0,0,0,B[0]]},w.gray.lab=function(B){return[B[0],0,0]},w.gray.hex=function(B){const V=Math.round(B[0]/100*255)&255,M=((V<<16)+(V<<8)+V).toString(16).toUpperCase();return"000000".substring(M.length)+M},w.rgb.gray=function(B){return[(B[0]+B[1]+B[2])/3/255*100]}},41492:function(_t,Y,_){const v=_(18135),R=_(40756),w={},b=Object.keys(v);function B(k){const M=function(...C){const g=C[0];return g==null?g:(g.length>1&&(C=g),k(C))};return"conversion"in k&&(M.conversion=k.conversion),M}function V(k){const M=function(...C){const g=C[0];if(g==null)return g;g.length>1&&(C=g);const A=k(C);if(typeof A=="object")for(let O=A.length,K=0;K{w[k]={},Object.defineProperty(w[k],"channels",{value:v[k].channels}),Object.defineProperty(w[k],"labels",{value:v[k].labels});const M=R(k);Object.keys(M).forEach(g=>{const A=M[g];w[k][g]=V(A),w[k][g].raw=B(A)})}),_t.exports=w},40756:function(_t,Y,_){const v=_(18135);function R(){const V={},k=Object.keys(v);for(let M=k.length,C=0;C=4&&C[3]!==1&&(g=", "+C[3]),"hwb("+C[0]+", "+C[1]+"%, "+C[2]+"%"+g+")"},V.to.keyword=function(C){return b[C.slice(0,3)]};function k(C,g,A){return Math.min(Math.max(g,C),A)}function M(C){var g=Math.round(C).toString(16).toUpperCase();return g.length<2?"0"+g:g}},28170:function(_t,Y,_){const v=_(75196),R=_(41492),w=["keyword","gray","hex"],b={};for(const K of Object.keys(R))b[[...R[K].labels].sort().join("")]=K;const B={};function V(K,ce){if(!(this instanceof V))return new V(K,ce);if(ce&&ce in w&&(ce=null),ce&&!(ce in R))throw new Error("Unknown model: "+ce);let de,ve;if(K==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(K instanceof V)this.model=K.model,this.color=[...K.color],this.valpha=K.valpha;else if(typeof K=="string"){const Ee=v.get(K);if(Ee===null)throw new Error("Unable to parse color from string: "+K);this.model=Ee.model,ve=R[this.model].channels,this.color=Ee.value.slice(0,ve),this.valpha=typeof Ee.value[ve]=="number"?Ee.value[ve]:1}else if(K.length>0){this.model=ce||"rgb",ve=R[this.model].channels;const Ee=Array.prototype.slice.call(K,0,ve);this.color=O(Ee,ve),this.valpha=typeof K[ve]=="number"?K[ve]:1}else if(typeof K=="number")this.model="rgb",this.color=[K>>16&255,K>>8&255,K&255],this.valpha=1;else{this.valpha=1;const Ee=Object.keys(K);"alpha"in K&&(Ee.splice(Ee.indexOf("alpha"),1),this.valpha=typeof K.alpha=="number"?K.alpha:0);const _e=Ee.sort().join("");if(!(_e in b))throw new Error("Unable to parse color from object: "+JSON.stringify(K));this.model=b[_e];const{labels:we}=R[this.model],ot=[];for(de=0;de(K%360+360)%360),saturationl:C("hsl",1,g(100)),lightness:C("hsl",2,g(100)),saturationv:C("hsv",1,g(100)),value:C("hsv",2,g(100)),chroma:C("hcg",1,g(100)),gray:C("hcg",2,g(100)),white:C("hwb",1,g(100)),wblack:C("hwb",2,g(100)),cyan:C("cmyk",0,g(100)),magenta:C("cmyk",1,g(100)),yellow:C("cmyk",2,g(100)),black:C("cmyk",3,g(100)),x:C("xyz",0,g(95.047)),y:C("xyz",1,g(100)),z:C("xyz",2,g(108.833)),l:C("lab",0,g(100)),a:C("lab",1),b:C("lab",2),keyword(K){return K!==void 0?new V(K):R[this.model].keyword(this.color)},hex(K){return K!==void 0?new V(K):v.to.hex(this.rgb().round().color)},hexa(K){if(K!==void 0)return new V(K);const ce=this.rgb().round().color;let de=Math.round(this.valpha*255).toString(16).toUpperCase();return de.length===1&&(de="0"+de),v.to.hex(ce)+de},rgbNumber(){const K=this.rgb().color;return(K[0]&255)<<16|(K[1]&255)<<8|K[2]&255},luminosity(){const K=this.rgb().color,ce=[];for(const[de,ve]of K.entries()){const Ee=ve/255;ce[de]=Ee<=.04045?Ee/12.92:ty((Ee+.055)/1.055,2.4)}return .2126*ce[0]+.7152*ce[1]+.0722*ce[2]},contrast(K){const ce=this.luminosity(),de=K.luminosity();return ce>de?(ce+.05)/(de+.05):(de+.05)/(ce+.05)},level(K){const ce=this.contrast(K);return ce>=7?"AAA":ce>=4.5?"AA":""},isDark(){const K=this.rgb().color;return(K[0]*2126+K[1]*7152+K[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const K=this.rgb();for(let ce=0;ce<3;ce++)K.color[ce]=255-K.color[ce];return K},lighten(K){const ce=this.hsl();return ce.color[2]+=ce.color[2]*K,ce},darken(K){const ce=this.hsl();return ce.color[2]-=ce.color[2]*K,ce},saturate(K){const ce=this.hsl();return ce.color[1]+=ce.color[1]*K,ce},desaturate(K){const ce=this.hsl();return ce.color[1]-=ce.color[1]*K,ce},whiten(K){const ce=this.hwb();return ce.color[1]+=ce.color[1]*K,ce},blacken(K){const ce=this.hwb();return ce.color[2]+=ce.color[2]*K,ce},grayscale(){const K=this.rgb().color,ce=K[0]*.3+K[1]*.59+K[2]*.11;return V.rgb(ce,ce,ce)},fade(K){return this.alpha(this.valpha-this.valpha*K)},opaquer(K){return this.alpha(this.valpha+this.valpha*K)},rotate(K){const ce=this.hsl();let de=ce.color[0];return de=(de+K)%360,de=de<0?360+de:de,ce.color[0]=de,ce},mix(K,ce){if(!K||!K.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof K);const de=K.rgb(),ve=this.rgb(),Ee=ce===void 0?.5:ce,_e=2*Ee-1,we=de.alpha()-ve.alpha(),ot=((_e*we===-1?_e:(_e+we)/(1+_e*we))+1)/2,He=1-ot;return V.rgb(ot*de.red()+He*ve.red(),ot*de.green()+He*ve.green(),ot*de.blue()+He*ve.blue(),de.alpha()*Ee+ve.alpha()*(1-Ee))}};for(const K of Object.keys(R)){if(w.includes(K))continue;const{channels:ce}=R[K];V.prototype[K]=function(...de){return this.model===K?new V(this):de.length>0?new V(de,K):new V([...A(R[this.model][K].raw(this.color)),this.valpha],K)},V[K]=function(...de){let ve=de[0];return typeof ve=="number"&&(ve=O(de,ce)),new V(ve,K)}}function k(K,ce){return Number(K.toFixed(ce))}function M(K){return function(ce){return k(ce,K)}}function C(K,ce,de){K=Array.isArray(K)?K:[K];for(const ve of K)(B[ve]||(B[ve]=[]))[ce]=de;return K=K[0],function(ve){let Ee;return ve!==void 0?(de&&(ve=de(ve)),Ee=this[K](),Ee.color[ce]=ve,Ee):(Ee=this[K]().color[ce],de&&(Ee=de(Ee)),Ee)}}function g(K){return function(ce){return Math.max(0,Math.min(K,ce))}}function A(K){return Array.isArray(K)?K:[K]}function O(K,ce){for(let de=0;deAe||$e.push({node:ze,dist:Kt})}for(;$e.length&&!$e.peek().node.children;){var St=$e.pop(),nt=St.node,Ct=Ee(nt,vt,dt),lt=Ee(nt,Pe,De);if(St.dist=vt.minX&&He[0]<=vt.maxX&&He[1]>=vt.minY&&He[1]<=vt.maxY}function g(He,vt,dt){for(var Pe=Math.min(He[0],vt[0]),De=Math.min(He[1],vt[1]),Ae=Math.max(He[0],vt[0]),Re=Math.max(He[1],vt[1]),$e=dt.search({minX:Pe,minY:De,maxX:Ae,maxY:Re}),Ie=0;Ie<$e.length;Ie++)if(O($e[Ie].p,$e[Ie].next.p,He,vt))return!1;return!0}function A(He,vt,dt){return b(He[0],He[1],vt[0],vt[1],dt[0],dt[1])}function O(He,vt,dt,Pe){return He!==Pe&&vt!==dt&&A(He,vt,dt)>0!=A(He,vt,Pe)>0&&A(dt,Pe,He)>0!=A(dt,Pe,vt)>0}function K(He){var vt=He.p,dt=He.next.p;return He.minX=Math.min(vt[0],dt[0]),He.minY=Math.min(vt[1],dt[1]),He.maxX=Math.max(vt[0],dt[0]),He.maxY=Math.max(vt[1],dt[1]),He}function ce(He){for(var vt=He[0],dt=He[0],Pe=He[0],De=He[0],Ae=0;AePe[0]&&(Pe=Re),Re[1]De[1]&&(De=Re)}var $e=[vt,dt,Pe,De],Ie=$e.slice();for(Ae=0;Ae1?(Pe=dt[0],De=dt[1]):$e>0&&(Pe+=Ae*$e,De+=Re*$e)}return Ae=He[0]-Pe,Re=He[1]-De,Ae*Ae+Re*Re}function _e(He,vt,dt,Pe,De,Ae,Re,$e){var Ie=dt-He,Xe=Pe-vt,ze=Re-De,Kt=$e-Ae,St=He-De,nt=vt-Ae,Ct=Ie*Ie+Xe*Xe,lt=Ie*ze+Xe*Kt,Gt=ze*ze+Kt*Kt,Rt=Ie*St+Xe*nt,an=ze*St+Kt*nt,cn=Ct*Gt-lt*lt,Cr,ii,Pi,Ni,Yi=cn,ti=cn;cn===0?(ii=0,Yi=1,Ni=an,ti=Gt):(ii=lt*an-Gt*Rt,Ni=Ct*an-lt*Rt,ii<0?(ii=0,Ni=an,ti=Gt):ii>Yi&&(ii=Yi,Ni=an+lt,ti=Gt)),Ni<0?(Ni=0,-Rt<0?ii=0:-Rt>Ct?ii=Yi:(ii=-Rt,Yi=Ct)):Ni>ti&&(Ni=ti,-Rt+lt<0?ii=0:-Rt+lt>Ct?ii=Yi:(ii=-Rt+lt,Yi=Ct)),Cr=ii===0?0:ii/Yi,Pi=Ni===0?0:Ni/ti;var Ts=(1-Cr)*He+Cr*dt,Bs=(1-Cr)*vt+Cr*Pe,Ce=(1-Pi)*De+Pi*Re,Gi=(1-Pi)*Ae+Pi*$e,qi=Ce-Ts,co=Gi-Bs;return qi*qi+co*co}function we(He,vt){return He[0]===vt[0]?He[1]-vt[1]:He[0]-vt[0]}function ot(He){He.sort(we);for(var vt=[],dt=0;dt=2&&A(vt[vt.length-2],vt[vt.length-1],He[dt])<=0;)vt.pop();vt.push(He[dt])}for(var Pe=[],De=He.length-1;De>=0;De--){for(;Pe.length>=2&&A(Pe[Pe.length-2],Pe[Pe.length-1],He[De])<=0;)Pe.pop();Pe.push(He[De])}return Pe.pop(),vt.pop(),vt.concat(Pe)}},81622:function(_t,Y){var _=typeof self!="undefined"?self:this,v=function(){function w(){this.fetch=!1,this.DOMException=_.DOMException}return w.prototype=_,new w}();(function(w){var b=function(B){var V={searchParams:"URLSearchParams"in w,iterable:"Symbol"in w&&"iterator"in Symbol,blob:"FileReader"in w&&"Blob"in w&&function(){try{return new Blob,!0}catch(Ie){return!1}}(),formData:"FormData"in w,arrayBuffer:"ArrayBuffer"in w};function k(Ie){return Ie&&DataView.prototype.isPrototypeOf(Ie)}if(V.arrayBuffer)var M=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],C=ArrayBuffer.isView||function(Ie){return Ie&&M.indexOf(Object.prototype.toString.call(Ie))>-1};function g(Ie){if(typeof Ie!="string"&&(Ie=String(Ie)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(Ie))throw new TypeError("Invalid character in header field name");return Ie.toLowerCase()}function A(Ie){return typeof Ie!="string"&&(Ie=String(Ie)),Ie}function O(Ie){var Xe={next:function(){var ze=Ie.shift();return{done:ze===void 0,value:ze}}};return V.iterable&&(Xe[Symbol.iterator]=function(){return Xe}),Xe}function K(Ie){this.map={},Ie instanceof K?Ie.forEach(function(Xe,ze){this.append(ze,Xe)},this):Array.isArray(Ie)?Ie.forEach(function(Xe){this.append(Xe[0],Xe[1])},this):Ie&&Object.getOwnPropertyNames(Ie).forEach(function(Xe){this.append(Xe,Ie[Xe])},this)}K.prototype.append=function(Ie,Xe){Ie=g(Ie),Xe=A(Xe);var ze=this.map[Ie];this.map[Ie]=ze?ze+", "+Xe:Xe},K.prototype.delete=function(Ie){delete this.map[g(Ie)]},K.prototype.get=function(Ie){return Ie=g(Ie),this.has(Ie)?this.map[Ie]:null},K.prototype.has=function(Ie){return this.map.hasOwnProperty(g(Ie))},K.prototype.set=function(Ie,Xe){this.map[g(Ie)]=A(Xe)},K.prototype.forEach=function(Ie,Xe){for(var ze in this.map)this.map.hasOwnProperty(ze)&&Ie.call(Xe,this.map[ze],ze,this)},K.prototype.keys=function(){var Ie=[];return this.forEach(function(Xe,ze){Ie.push(ze)}),O(Ie)},K.prototype.values=function(){var Ie=[];return this.forEach(function(Xe){Ie.push(Xe)}),O(Ie)},K.prototype.entries=function(){var Ie=[];return this.forEach(function(Xe,ze){Ie.push([ze,Xe])}),O(Ie)},V.iterable&&(K.prototype[Symbol.iterator]=K.prototype.entries);function ce(Ie){if(Ie.bodyUsed)return Promise.reject(new TypeError("Already read"));Ie.bodyUsed=!0}function de(Ie){return new Promise(function(Xe,ze){Ie.onload=function(){Xe(Ie.result)},Ie.onerror=function(){ze(Ie.error)}})}function ve(Ie){var Xe=new FileReader,ze=de(Xe);return Xe.readAsArrayBuffer(Ie),ze}function Ee(Ie){var Xe=new FileReader,ze=de(Xe);return Xe.readAsText(Ie),ze}function _e(Ie){for(var Xe=new Uint8Array(Ie),ze=new Array(Xe.length),Kt=0;Kt-1?Xe:Ie}function dt(Ie,Xe){Xe=Xe||{};var ze=Xe.body;if(Ie instanceof dt){if(Ie.bodyUsed)throw new TypeError("Already read");this.url=Ie.url,this.credentials=Ie.credentials,Xe.headers||(this.headers=new K(Ie.headers)),this.method=Ie.method,this.mode=Ie.mode,this.signal=Ie.signal,!ze&&Ie._bodyInit!=null&&(ze=Ie._bodyInit,Ie.bodyUsed=!0)}else this.url=String(Ie);if(this.credentials=Xe.credentials||this.credentials||"same-origin",(Xe.headers||!this.headers)&&(this.headers=new K(Xe.headers)),this.method=vt(Xe.method||this.method||"GET"),this.mode=Xe.mode||this.mode||null,this.signal=Xe.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ze)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ze)}dt.prototype.clone=function(){return new dt(this,{body:this._bodyInit})};function Pe(Ie){var Xe=new FormData;return Ie.trim().split("&").forEach(function(ze){if(ze){var Kt=ze.split("="),St=Kt.shift().replace(/\+/g," "),nt=Kt.join("=").replace(/\+/g," ");Xe.append(decodeURIComponent(St),decodeURIComponent(nt))}}),Xe}function De(Ie){var Xe=new K,ze=Ie.replace(/\r?\n[\t ]+/g," ");return ze.split(/\r?\n/).forEach(function(Kt){var St=Kt.split(":"),nt=St.shift().trim();if(nt){var Ct=St.join(":").trim();Xe.append(nt,Ct)}}),Xe}ot.call(dt.prototype);function Ae(Ie,Xe){Xe||(Xe={}),this.type="default",this.status=Xe.status===void 0?200:Xe.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in Xe?Xe.statusText:"OK",this.headers=new K(Xe.headers),this.url=Xe.url||"",this._initBody(Ie)}ot.call(Ae.prototype),Ae.prototype.clone=function(){return new Ae(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new K(this.headers),url:this.url})},Ae.error=function(){var Ie=new Ae(null,{status:0,statusText:""});return Ie.type="error",Ie};var Re=[301,302,303,307,308];Ae.redirect=function(Ie,Xe){if(Re.indexOf(Xe)===-1)throw new RangeError("Invalid status code");return new Ae(null,{status:Xe,headers:{location:Ie}})},B.DOMException=w.DOMException;try{new B.DOMException}catch(Ie){B.DOMException=function(Xe,ze){this.message=Xe,this.name=ze;var Kt=Error(Xe);this.stack=Kt.stack},B.DOMException.prototype=Object.create(Error.prototype),B.DOMException.prototype.constructor=B.DOMException}function $e(Ie,Xe){return new Promise(function(ze,Kt){var St=new dt(Ie,Xe);if(St.signal&&St.signal.aborted)return Kt(new B.DOMException("Aborted","AbortError"));var nt=new XMLHttpRequest;function Ct(){nt.abort()}nt.onload=function(){var lt={status:nt.status,statusText:nt.statusText,headers:De(nt.getAllResponseHeaders()||"")};lt.url="responseURL"in nt?nt.responseURL:lt.headers.get("X-Request-URL");var Gt="response"in nt?nt.response:nt.responseText;ze(new Ae(Gt,lt))},nt.onerror=function(){Kt(new TypeError("Network request failed"))},nt.ontimeout=function(){Kt(new TypeError("Network request failed"))},nt.onabort=function(){Kt(new B.DOMException("Aborted","AbortError"))},nt.open(St.method,St.url,!0),St.credentials==="include"?nt.withCredentials=!0:St.credentials==="omit"&&(nt.withCredentials=!1),"responseType"in nt&&V.blob&&(nt.responseType="blob"),St.headers.forEach(function(lt,Gt){nt.setRequestHeader(Gt,lt)}),St.signal&&(St.signal.addEventListener("abort",Ct),nt.onreadystatechange=function(){nt.readyState===4&&St.signal.removeEventListener("abort",Ct)}),nt.send(typeof St._bodyInit=="undefined"?null:St._bodyInit)})}return $e.polyfill=!0,w.fetch||(w.fetch=$e,w.Headers=K,w.Request=dt,w.Response=Ae),B.Headers=K,B.Request=dt,B.Response=Ae,B.fetch=$e,Object.defineProperty(B,"__esModule",{value:!0}),B}({})})(v),v.fetch.ponyfill=!0,delete v.fetch.polyfill;var R=v;Y=R.fetch,Y.default=R.fetch,Y.fetch=R.fetch,Y.Headers=R.Headers,Y.Request=R.Request,Y.Response=R.Response,_t.exports=Y},57965:function(_t,Y,_){"use strict";_.d(Y,{j2:function(){return v},b4:function(){return k},YF:function(){return R},We:function(){return M},TS:function(){return ot},VR:function(){return vt},G9:function(){return ve},ly:function(){return Ee},sd:function(){return de}});function v(dt,Pe){return dtPe?1:dt>=Pe?0:NaN}function R(dt){return dt.length===1&&(dt=w(dt)),{left:function(Pe,De,Ae,Re){for(Ae==null&&(Ae=0),Re==null&&(Re=Pe.length);Ae>>1;dt(Pe[$e],De)<0?Ae=$e+1:Re=$e}return Ae},right:function(Pe,De,Ae,Re){for(Ae==null&&(Ae=0),Re==null&&(Re=Pe.length);Ae>>1;dt(Pe[$e],De)>0?Re=$e:Ae=$e+1}return Ae}}}function w(dt){return function(Pe,De){return v(dt(Pe),De)}}var b=R(v),B=b.right,V=b.left,k=B;function M(dt,Pe){var De=dt.length,Ae=-1,Re,$e,Ie;if(Pe==null){for(;++Ae=Re)for($e=Ie=Re;++AeRe&&($e=Re),Ie=Re)for($e=Ie=Re;++AeRe&&($e=Re),Ie0)return[dt];if((Ae=Pe0)for(dt=Math.ceil(dt/Xe),Pe=Math.floor(Pe/Xe),Ie=new Array($e=Math.ceil(Pe-dt+1));++Re<$e;)Ie[Re]=(dt+Re)*Xe;else for(dt=Math.floor(dt*Xe),Pe=Math.ceil(Pe*Xe),Ie=new Array($e=Math.ceil(dt-Pe+1));++Re<$e;)Ie[Re]=(dt-Re)/Xe;return Ae&&Ie.reverse(),Ie}function ve(dt,Pe,De){var Ae=(Pe-dt)/Math.max(0,De),Re=Math.floor(Math.log(Ae)/Math.LN10),$e=Ae/Math.pow(10,Re);return Re>=0?($e>=O?10:$e>=K?5:$e>=ce?2:1)*Math.pow(10,Re):-Math.pow(10,-Re)/($e>=O?10:$e>=K?5:$e>=ce?2:1)}function Ee(dt,Pe,De){var Ae=Math.abs(Pe-dt)/Math.max(0,De),Re=Math.pow(10,Math.floor(Math.log(Ae)/Math.LN10)),$e=Ae/Re;return $e>=O?Re*=10:$e>=K?Re*=5:$e>=ce&&(Re*=2),Pent;)Ct.pop(),--lt;var Gt=new Array(lt+1),Rt;for($e=0;$e<=lt;++$e)Rt=Gt[$e]=[],Rt.x0=$e>0?Ct[$e-1]:St,Rt.x1=$e=0;)for(Ie=dt[Pe],De=Ie.length;--De>=0;)$e[--Re]=Ie[De];return $e}function He(dt){return dt===null?NaN:+dt}function vt(dt,Pe,De){if(De==null&&(De=He),!!(Ae=dt.length)){if((Pe=+Pe)<=0||Ae<2)return+De(dt[0],0,dt);if(Pe>=1)return+De(dt[Ae-1],Ae-1,dt);var Ae,Re=(Ae-1)*Pe,$e=Math.floor(Re),Ie=+De(dt[$e],$e,dt),Xe=+De(dt[$e+1],$e+1,dt);return Ie+(Xe-Ie)*(Re-$e)}}},9498:function(_t){(function(Y,_){_t.exports=_()})(this,function(){"use strict";var Y=1e3,_=6e4,v=36e5,R="millisecond",w="second",b="minute",B="hour",V="day",k="week",M="month",C="quarter",g="year",A="date",O="Invalid Date",K=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ce=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,de={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Re){var $e=["th","st","nd","rd"],Ie=Re%100;return"["+Re+($e[(Ie-20)%10]||$e[Ie]||$e[0])+"]"}},ve=function(Re,$e,Ie){var Xe=String(Re);return!Xe||Xe.length>=$e?Re:""+Array($e+1-Xe.length).join(Ie)+Re},Ee={s:ve,z:function(Re){var $e=-Re.utcOffset(),Ie=Math.abs($e),Xe=Math.floor(Ie/60),ze=Ie%60;return($e<=0?"+":"-")+ve(Xe,2,"0")+":"+ve(ze,2,"0")},m:function Re($e,Ie){if($e.date()1)return Re(St[0])}else{var nt=$e.name;we[nt]=$e,ze=nt}return!Xe&&ze&&(_e=ze),ze||!Xe&&_e},dt=function(Re,$e){if(He(Re))return Re.clone();var Ie=typeof $e=="object"?$e:{};return Ie.date=Re,Ie.args=arguments,new De(Ie)},Pe=Ee;Pe.l=vt,Pe.i=He,Pe.w=function(Re,$e){return dt(Re,{locale:$e.$L,utc:$e.$u,x:$e.$x,$offset:$e.$offset})};var De=function(){function Re(Ie){this.$L=vt(Ie.locale,null,!0),this.parse(Ie),this.$x=this.$x||Ie.x||{},this[ot]=!0}var $e=Re.prototype;return $e.parse=function(Ie){this.$d=function(Xe){var ze=Xe.date,Kt=Xe.utc;if(ze===null)return new Date(NaN);if(Pe.u(ze))return new Date;if(ze instanceof Date)return new Date(ze);if(typeof ze=="string"&&!/Z$/i.test(ze)){var St=ze.match(K);if(St){var nt=St[2]-1||0,Ct=(St[7]||"0").substring(0,3);return Kt?new Date(Date.UTC(St[1],nt,St[3]||1,St[4]||0,St[5]||0,St[6]||0,Ct)):new Date(St[1],nt,St[3]||1,St[4]||0,St[5]||0,St[6]||0,Ct)}}return new Date(ze)}(Ie),this.init()},$e.init=function(){var Ie=this.$d;this.$y=Ie.getFullYear(),this.$M=Ie.getMonth(),this.$D=Ie.getDate(),this.$W=Ie.getDay(),this.$H=Ie.getHours(),this.$m=Ie.getMinutes(),this.$s=Ie.getSeconds(),this.$ms=Ie.getMilliseconds()},$e.$utils=function(){return Pe},$e.isValid=function(){return this.$d.toString()!==O},$e.isSame=function(Ie,Xe){var ze=dt(Ie);return this.startOf(Xe)<=ze&&ze<=this.endOf(Xe)},$e.isAfter=function(Ie,Xe){return dt(Ie)0&&typeof O[0]!="number")}function A(O,K,ce){var de,ve;if(typeof O!=typeof K||C(O)||C(K)||O.prototype!==K.prototype||R(O)!==R(K))return!1;var Ee=b(O),_e=b(K);if(Ee!==_e)return!1;if(Ee||_e)return O.source===K.source&&B(O)===B(K);if(V(O)&&V(K))return k.call(O)===k.call(K);var we=g(O),ot=g(K);if(we!==ot)return!1;if(we||ot){if(O.length!==K.length)return!1;for(de=0;de=0;de--)if(He[de]!=vt[de])return!1;for(de=He.length-1;de>=0;de--)if(ve=He[de],!M(O[ve],K[ve],ce))return!1;return!0}_t.exports=M},51494:function(_t,Y,_){"use strict";var v=_(38262)(),R=_(44532),w=v&&R("%Object.defineProperty%",!0);if(w)try{w({},"a",{value:1})}catch(k){w=!1}var b=R("%SyntaxError%"),B=R("%TypeError%"),V=_(67747);_t.exports=function(M,C,g){if(!M||typeof M!="object"&&typeof M!="function")throw new B("`obj` must be an object or a function`");if(typeof C!="string"&&typeof C!="symbol")throw new B("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new B("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new B("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new B("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new B("`loose`, if provided, must be a boolean");var A=arguments.length>3?arguments[3]:null,O=arguments.length>4?arguments[4]:null,K=arguments.length>5?arguments[5]:null,ce=arguments.length>6?arguments[6]:!1,de=!!V&&V(M,C);if(w)w(M,C,{configurable:K===null&&de?de.configurable:!K,enumerable:A===null&&de?de.enumerable:!A,value:g,writable:O===null&&de?de.writable:!O});else if(ce||!A&&!O&&!K)M[C]=g;else throw new b("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},8263:function(_t,Y,_){"use strict";var v=_(64253),R=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",w=Object.prototype.toString,b=Array.prototype.concat,B=_(51494),V=function(g){return typeof g=="function"&&w.call(g)==="[object Function]"},k=_(38262)(),M=function(g,A,O,K){if(A in g){if(K===!0){if(g[A]===O)return}else if(!V(K)||!K())return}k?B(g,A,O,!0):B(g,A,O)},C=function(g,A){var O=arguments.length>2?arguments[2]:{},K=v(A);R&&(K=b.call(K,Object.getOwnPropertySymbols(A)));for(var ce=0;ce=this.minPts&&(v=this._mergeArrays(v,b))}this._assigned[w]!==1&&this._addToCluster(w,_)}},Y.prototype._addToCluster=function(_,v){this.clusters[v].push(_),this._assigned[_]=1},Y.prototype._regionQuery=function(_){for(var v=[],R=0;R0){for(var M=0;M=0);return v},Y.prototype.assign=function(){for(var _=!1,v=this.dataset.length,R,w=0;w=this.minPts)return B}},R.prototype._regionQuery=function(w,b){b=b||this.epsilon;for(var B=[],V=0,k=this.dataset.length;Vb&&(R=w):v80*St){Rt=cn=ze[0],an=Cr=ze[1];for(var Yi=St;Yicn&&(cn=ii),Pi>Cr&&(Cr=Pi);Ni=Math.max(cn-Rt,Cr-an),Ni=Ni!==0?32767/Ni:0}return R(lt,Gt,St,Rt,an,Ni,0),Gt}function _(ze,Kt,St,nt,Ct){var lt,Gt;if(Ct===Xe(ze,Kt,St,nt)>0)for(lt=Kt;lt=Kt;lt-=nt)Gt=Re(lt,ze[lt],ze[lt+1],Gt);return Gt&&we(Gt,Gt.next)&&($e(Gt),Gt=Gt.next),Gt}function v(ze,Kt){if(!ze)return ze;Kt||(Kt=ze);var St=ze,nt;do if(nt=!1,!St.steiner&&(we(St,St.next)||_e(St.prev,St,St.next)===0)){if($e(St),St=Kt=St.prev,St===St.next)break;nt=!0}else St=St.next;while(nt||St!==Kt);return Kt}function R(ze,Kt,St,nt,Ct,lt,Gt){if(ze){!Gt&<&&O(ze,nt,Ct,lt);for(var Rt=ze,an,cn;ze.prev!==ze.next;){if(an=ze.prev,cn=ze.next,lt?b(ze,nt,Ct,lt):w(ze)){Kt.push(an.i/St|0),Kt.push(ze.i/St|0),Kt.push(cn.i/St|0),$e(ze),ze=cn.next,Rt=cn.next;continue}if(ze=cn,ze===Rt){Gt?Gt===1?(ze=B(v(ze),Kt,St),R(ze,Kt,St,nt,Ct,lt,2)):Gt===2&&V(ze,Kt,St,nt,Ct,lt):R(v(ze),Kt,St,nt,Ct,lt,1);break}}}}function w(ze){var Kt=ze.prev,St=ze,nt=ze.next;if(_e(Kt,St,nt)>=0)return!1;for(var Ct=Kt.x,lt=St.x,Gt=nt.x,Rt=Kt.y,an=St.y,cn=nt.y,Cr=Ctlt?Ct>Gt?Ct:Gt:lt>Gt?lt:Gt,Ni=Rt>an?Rt>cn?Rt:cn:an>cn?an:cn,Yi=nt.next;Yi!==Kt;){if(Yi.x>=Cr&&Yi.x<=Pi&&Yi.y>=ii&&Yi.y<=Ni&&ve(Ct,Rt,lt,an,Gt,cn,Yi.x,Yi.y)&&_e(Yi.prev,Yi,Yi.next)>=0)return!1;Yi=Yi.next}return!0}function b(ze,Kt,St,nt){var Ct=ze.prev,lt=ze,Gt=ze.next;if(_e(Ct,lt,Gt)>=0)return!1;for(var Rt=Ct.x,an=lt.x,cn=Gt.x,Cr=Ct.y,ii=lt.y,Pi=Gt.y,Ni=Rtan?Rt>cn?Rt:cn:an>cn?an:cn,Ts=Cr>ii?Cr>Pi?Cr:Pi:ii>Pi?ii:Pi,Bs=ce(Ni,Yi,Kt,St,nt),Ce=ce(ti,Ts,Kt,St,nt),Gi=ze.prevZ,qi=ze.nextZ;Gi&&Gi.z>=Bs&&qi&&qi.z<=Ce;){if(Gi.x>=Ni&&Gi.x<=ti&&Gi.y>=Yi&&Gi.y<=Ts&&Gi!==Ct&&Gi!==Gt&&ve(Rt,Cr,an,ii,cn,Pi,Gi.x,Gi.y)&&_e(Gi.prev,Gi,Gi.next)>=0||(Gi=Gi.prevZ,qi.x>=Ni&&qi.x<=ti&&qi.y>=Yi&&qi.y<=Ts&&qi!==Ct&&qi!==Gt&&ve(Rt,Cr,an,ii,cn,Pi,qi.x,qi.y)&&_e(qi.prev,qi,qi.next)>=0))return!1;qi=qi.nextZ}for(;Gi&&Gi.z>=Bs;){if(Gi.x>=Ni&&Gi.x<=ti&&Gi.y>=Yi&&Gi.y<=Ts&&Gi!==Ct&&Gi!==Gt&&ve(Rt,Cr,an,ii,cn,Pi,Gi.x,Gi.y)&&_e(Gi.prev,Gi,Gi.next)>=0)return!1;Gi=Gi.prevZ}for(;qi&&qi.z<=Ce;){if(qi.x>=Ni&&qi.x<=ti&&qi.y>=Yi&&qi.y<=Ts&&qi!==Ct&&qi!==Gt&&ve(Rt,Cr,an,ii,cn,Pi,qi.x,qi.y)&&_e(qi.prev,qi,qi.next)>=0)return!1;qi=qi.nextZ}return!0}function B(ze,Kt,St){var nt=ze;do{var Ct=nt.prev,lt=nt.next.next;!we(Ct,lt)&&ot(Ct,nt,nt.next,lt)&&Pe(Ct,lt)&&Pe(lt,Ct)&&(Kt.push(Ct.i/St|0),Kt.push(nt.i/St|0),Kt.push(lt.i/St|0),$e(nt),$e(nt.next),nt=ze=lt),nt=nt.next}while(nt!==ze);return v(nt)}function V(ze,Kt,St,nt,Ct,lt){var Gt=ze;do{for(var Rt=Gt.next.next;Rt!==Gt.prev;){if(Gt.i!==Rt.i&&Ee(Gt,Rt)){var an=Ae(Gt,Rt);Gt=v(Gt,Gt.next),an=v(an,an.next),R(Gt,Kt,St,nt,Ct,lt,0),R(an,Kt,St,nt,Ct,lt,0);return}Rt=Rt.next}Gt=Gt.next}while(Gt!==ze)}function k(ze,Kt,St,nt){var Ct=[],lt,Gt,Rt,an,cn;for(lt=0,Gt=Kt.length;lt=St.next.y&&St.next.y!==St.y){var Rt=St.x+(Ct-St.y)*(St.next.x-St.x)/(St.next.y-St.y);if(Rt<=nt&&Rt>lt&&(lt=Rt,Gt=St.x=St.x&&St.x>=cn&&nt!==St.x&&ve(CtGt.x||St.x===Gt.x&&A(Gt,St)))&&(Gt=St,ii=Pi)),St=St.next;while(St!==an);return Gt}function A(ze,Kt){return _e(ze.prev,ze,Kt.prev)<0&&_e(Kt.next,ze,ze.next)<0}function O(ze,Kt,St,nt){var Ct=ze;do Ct.z===0&&(Ct.z=ce(Ct.x,Ct.y,Kt,St,nt)),Ct.prevZ=Ct.prev,Ct.nextZ=Ct.next,Ct=Ct.next;while(Ct!==ze);Ct.prevZ.nextZ=null,Ct.prevZ=null,K(Ct)}function K(ze){var Kt,St,nt,Ct,lt,Gt,Rt,an,cn=1;do{for(St=ze,ze=null,lt=null,Gt=0;St;){for(Gt++,nt=St,Rt=0,Kt=0;Kt0||an>0&&nt;)Rt!==0&&(an===0||!nt||St.z<=nt.z)?(Ct=St,St=St.nextZ,Rt--):(Ct=nt,nt=nt.nextZ,an--),lt?lt.nextZ=Ct:ze=Ct,Ct.prevZ=lt,lt=Ct;St=nt}lt.nextZ=null,cn*=2}while(Gt>1);return ze}function ce(ze,Kt,St,nt,Ct){return ze=(ze-St)*Ct|0,Kt=(Kt-nt)*Ct|0,ze=(ze|ze<<8)&16711935,ze=(ze|ze<<4)&252645135,ze=(ze|ze<<2)&858993459,ze=(ze|ze<<1)&1431655765,Kt=(Kt|Kt<<8)&16711935,Kt=(Kt|Kt<<4)&252645135,Kt=(Kt|Kt<<2)&858993459,Kt=(Kt|Kt<<1)&1431655765,ze|Kt<<1}function de(ze){var Kt=ze,St=ze;do(Kt.x=(ze-Gt)*(lt-Rt)&&(ze-Gt)*(nt-Rt)>=(St-Gt)*(Kt-Rt)&&(St-Gt)*(lt-Rt)>=(Ct-Gt)*(nt-Rt)}function Ee(ze,Kt){return ze.next.i!==Kt.i&&ze.prev.i!==Kt.i&&!dt(ze,Kt)&&(Pe(ze,Kt)&&Pe(Kt,ze)&&De(ze,Kt)&&(_e(ze.prev,ze,Kt.prev)||_e(ze,Kt.prev,Kt))||we(ze,Kt)&&_e(ze.prev,ze,ze.next)>0&&_e(Kt.prev,Kt,Kt.next)>0)}function _e(ze,Kt,St){return(Kt.y-ze.y)*(St.x-Kt.x)-(Kt.x-ze.x)*(St.y-Kt.y)}function we(ze,Kt){return ze.x===Kt.x&&ze.y===Kt.y}function ot(ze,Kt,St,nt){var Ct=vt(_e(ze,Kt,St)),lt=vt(_e(ze,Kt,nt)),Gt=vt(_e(St,nt,ze)),Rt=vt(_e(St,nt,Kt));return!!(Ct!==lt&&Gt!==Rt||Ct===0&&He(ze,St,Kt)||lt===0&&He(ze,nt,Kt)||Gt===0&&He(St,ze,nt)||Rt===0&&He(St,Kt,nt))}function He(ze,Kt,St){return Kt.x<=Math.max(ze.x,St.x)&&Kt.x>=Math.min(ze.x,St.x)&&Kt.y<=Math.max(ze.y,St.y)&&Kt.y>=Math.min(ze.y,St.y)}function vt(ze){return ze>0?1:ze<0?-1:0}function dt(ze,Kt){var St=ze;do{if(St.i!==ze.i&&St.next.i!==ze.i&&St.i!==Kt.i&&St.next.i!==Kt.i&&ot(St,St.next,ze,Kt))return!0;St=St.next}while(St!==ze);return!1}function Pe(ze,Kt){return _e(ze.prev,ze,ze.next)<0?_e(ze,Kt,ze.next)>=0&&_e(ze,ze.prev,Kt)>=0:_e(ze,Kt,ze.prev)<0||_e(ze,ze.next,Kt)<0}function De(ze,Kt){var St=ze,nt=!1,Ct=(ze.x+Kt.x)/2,lt=(ze.y+Kt.y)/2;do St.y>lt!=St.next.y>lt&&St.next.y!==St.y&&Ct<(St.next.x-St.x)*(lt-St.y)/(St.next.y-St.y)+St.x&&(nt=!nt),St=St.next;while(St!==ze);return nt}function Ae(ze,Kt){var St=new Ie(ze.i,ze.x,ze.y),nt=new Ie(Kt.i,Kt.x,Kt.y),Ct=ze.next,lt=Kt.prev;return ze.next=Kt,Kt.prev=ze,St.next=Ct,Ct.prev=St,nt.next=St,St.prev=nt,lt.next=nt,nt.prev=lt,nt}function Re(ze,Kt,St,nt){var Ct=new Ie(ze,Kt,St);return nt?(Ct.next=nt.next,Ct.prev=nt,nt.next.prev=Ct,nt.next=Ct):(Ct.prev=Ct,Ct.next=Ct),Ct}function $e(ze){ze.next.prev=ze.prev,ze.prev.next=ze.next,ze.prevZ&&(ze.prevZ.nextZ=ze.nextZ),ze.nextZ&&(ze.nextZ.prevZ=ze.prevZ)}function Ie(ze,Kt,St){this.i=ze,this.x=Kt,this.y=St,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Y.deviation=function(ze,Kt,St,nt){var Ct=Kt&&Kt.length,lt=Ct?Kt[0]*St:ze.length,Gt=Math.abs(Xe(ze,0,lt,St));if(Ct)for(var Rt=0,an=Kt.length;Rt0&&(nt+=ze[Ct-1].length,St.holes.push(nt))}return St}},67499:function(_t){function Y(v){var R=v.target||v.srcElement;R.__resizeRAF__&&cancelAnimationFrame(R.__resizeRAF__),R.__resizeRAF__=requestAnimationFrame(function(){var w=R.__resizeTrigger__,b=w&&w.__resizeListeners__;b&&b.forEach(function(B){B.call(w,v)})})}var _=function(R,w){var b=this,B=b.document,V,k=B.attachEvent;typeof navigator!="undefined"&&(V=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));function M(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",Y)}if(!R.__resizeListeners__)if(R.__resizeListeners__=[],k)R.__resizeTrigger__=R,R.attachEvent("onresize",Y);else{getComputedStyle(R).position==="static"&&(R.style.position="relative");var C=R.__resizeTrigger__=B.createElement("object");C.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),C.setAttribute("class","resize-sensor"),C.setAttribute("tabindex","-1"),C.setAttribute("title",""),C.__resizeElement__=R,C.onload=M,C.type="text/html",V&&R.appendChild(C),C.data="about:blank",V||R.appendChild(C)}R.__resizeListeners__.push(w)};_t.exports=typeof window=="undefined"?_:_.bind(window),_t.exports.unbind=function(v,R){var w=document.attachEvent,b=v.__resizeListeners__||[];if(R){var B=b.indexOf(R);B!==-1&&b.splice(B,1)}else b=v.__resizeListeners__=[];if(!b.length){if(w)v.detachEvent("onresize",Y);else if(v.__resizeTrigger__){var V=v.__resizeTrigger__.contentDocument,k=V&&V.defaultView;k&&(k.removeEventListener("resize",Y),delete k.__resizeTrigger__),v.__resizeTrigger__=!v.removeChild(v.__resizeTrigger__)}delete v.__resizeListeners__}}},40666:function(_t){"use strict";var Y=Object.prototype.hasOwnProperty,_="~";function v(){}Object.create&&(v.prototype=Object.create(null),new v().__proto__||(_=!1));function R(V,k,M){this.fn=V,this.context=k,this.once=M||!1}function w(V,k,M,C,g){if(typeof M!="function")throw new TypeError("The listener must be a function");var A=new R(M,C||V,g),O=_?_+k:k;return V._events[O]?V._events[O].fn?V._events[O]=[V._events[O],A]:V._events[O].push(A):(V._events[O]=A,V._eventsCount++),V}function b(V,k){--V._eventsCount===0?V._events=new v:delete V._events[k]}function B(){this._events=new v,this._eventsCount=0}B.prototype.eventNames=function(){var k=[],M,C;if(this._eventsCount===0)return k;for(C in M=this._events)Y.call(M,C)&&k.push(_?C.slice(1):C);return Object.getOwnPropertySymbols?k.concat(Object.getOwnPropertySymbols(M)):k},B.prototype.listeners=function(k){var M=_?_+k:k,C=this._events[M];if(!C)return[];if(C.fn)return[C.fn];for(var g=0,A=C.length,O=new Array(A);g=72.004&&qi<=137.8347&&co>=.8293&&co<=55.8271}function C(qi,co){let fi=-100+2*qi+3*co+.2*co*co+.1*qi*co+.2*w(b(qi));return fi+=(20*v(6*qi*B)+20*v(2*qi*B))*2/3,fi+=(20*v(co*B)+40*v(co/3*B))*2/3,fi+=(160*v(co/12*B)+320*v(co*B/30))*2/3,fi}function g(qi,co){let fi=300+qi+2*co+.1*qi*qi+.1*qi*co+.1*w(b(qi));return fi+=(20*v(6*qi*B)+20*v(2*qi*B))*2/3,fi+=(20*v(qi*B)+40*v(qi/3*B))*2/3,fi+=(150*v(qi/12*B)+300*v(qi/30*B))*2/3,fi}function A(qi,co){let fi=g(qi-105,co-35),Ms=C(qi-105,co-35);const In=co/180*B;let et=v(In);et=1-k*et*et;const Dt=w(et);return fi=fi*180/(V/Dt*R(In)*B),Ms=Ms*180/(V*(1-k)/(et*Dt)*B),[fi,Ms]}function O(qi){const[co,fi]=qi;if(!M(co,fi))return[co,fi];const Ms=A(co,fi);return[co+Ms[0],fi+Ms[1]]}function K(qi){const[co,fi]=qi;if(!M(co,fi))return[co,fi];let[Ms,In]=[co,fi],et=O([Ms,In]),Dt=et[0]-co,$t=et[1]-fi;for(;b(Dt)>1e-6||b($t)>1e-6;)Ms-=Dt,In-=$t,et=O([Ms,In]),Dt=et[0]-co,$t=et[1]-fi;return[Ms,In]}const{sin:ce,cos:de,atan2:ve,sqrt:Ee,PI:_e}=Math,we=_e*3e3/180;function ot(qi){const[co,fi]=qi,Ms=co-.0065,In=fi-.006,et=Ee(Ms*Ms+In*In)-2e-5*ce(In*we),Dt=ve(In,Ms)-3e-6*de(Ms*we),$t=et*de(Dt),Dn=et*ce(Dt);return[$t,Dn]}function He(qi){const[co,fi]=qi,Ms=co,In=fi,et=Ee(Ms*Ms+In*In)+2e-5*ce(In*we),Dt=ve(In,Ms)+3e-6*de(Ms*we),$t=et*de(Dt)+.0065,Dn=et*ce(Dt)+.006;return[$t,Dn]}const vt=180/Math.PI,dt=Math.PI/180,Pe=6378137,De=20037508342789244e-9;function Ae(qi){return[qi[0]*vt/Pe,(Math.PI*.5-2*Math.atan(Math.exp(-qi[1]/Pe)))*vt]}function Re(qi){const co=Math.abs(qi[0])<=180?qi[0]:qi[0]-(qi[0]<0?-1:1)*360,fi=[Pe*co*dt,Pe*Math.log(Math.tan(Math.PI*.25+.5*qi[1]*dt))];return fi[0]>De&&(fi[0]=De),fi[0]<-De&&(fi[0]=-De),fi[1]>De&&(fi[1]=De),fi[1]<-De&&(fi[1]=-De),fi}const{abs:$e}=Math,Ie=[1289059486e-2,836237787e-2,5591021,348198983e-2,167804312e-2,0],Xe=[75,60,45,30,15,0],ze=[[1410526172116255e-23,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,173379812e-1],[-7435856389565537e-24,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,1026014486e-2],[-3030883460898826e-23,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,685681737e-2],[-1981981304930552e-23,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,448277706e-2],[309191371068437e-23,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,25551644e-1],[2890871144776878e-24,8983055095805407e-21,-3068298e-14,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],Kt=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,6477955746671607e-7,-4082003173641316e-6,1077490566351142e-5,-1517187553151559e-5,1205306533862167e-5,-5124939663577472e-6,9133119359512032e-7,67.5],[.00337398766765,111320.7020202162,4481351045890365e-9,-2339375119931662e-8,7968221547186455e-8,-1159649932797253e-7,9723671115602145e-8,-4366194633752821e-8,8477230501135234e-9,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837749470245e-9,992013.7397791013,-122195221711287e-8,1340652697009075e-9,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758690035394e-9,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]];function St(qi,co,fi){const Ms=$e(co)/fi[9];let In=fi[0]+fi[1]*$e(qi),et=fi[2]+fi[3]*Ms+fi[4]*Math.pow(Ms,2)+fi[5]*Math.pow(Ms,3)+fi[6]*Math.pow(Ms,4)+fi[7]*Math.pow(Ms,5)+fi[8]*Math.pow(Ms,6);return In*=qi<0?-1:1,et*=co<0?-1:1,[In,et]}function nt(qi){const[co,fi]=qi;let Ms=[];for(let In=0;InXe[In]){Ms=Kt[In];break}return St(co,fi,Ms)}function Ct(qi){const[co,fi]=qi;let Ms=[];for(let In=0;In=Ie[In]){Ms=ze[In];break}return St(co,fi,Ms)}function lt(qi,co){if(!qi)throw new Error(co)}function Gt(qi){return!!qi&&Object.prototype.toString.call(qi)==="[object Array]"}function Rt(qi){return!isNaN(Number(qi))&&qi!==null&&!Gt(qi)}function an(...qi){const co=qi.length-1;return function(...fi){let Ms=co,In=qi[co].apply(null,fi);for(;Ms--;)In=qi[Ms].call(null,In);return In}}function cn(qi,co,fi=!1){if(qi===null)return;let Ms,In,et,Dt,$t,Dn,gr=0,kn=0,bn,zt;const{type:Jt}=qi,yn=Jt==="FeatureCollection",fr=Jt==="Feature",vr=yn?qi.features.length:1;for(let pn=0;pn=2,`Invalid input coordinate: ${qi}`),lt(Rt(qi[0])&&Rt(qi[1]),`Invalid input coordinate: ${qi}`),qi=qi.map(Number),Dt=!0);const $t=In;return Dt?$t(qi):(cn(qi,Dn=>{[Dn[0],Dn[1]]=$t(Dn)}),qi)}const Gi=Object.assign(Object.assign({},Cr),{CRSTypes:Cr,transform:Ce})},15468:function(_t,Y,_){var v=_(19545),R=function(V){this.precision=V&&V.precision?V.precision:17,this.direction=V&&V.direction?V.direction:!1,this.pseudoNode=V&&V.pseudoNode?V.pseudoNode:!1,this.objectComparator=V&&V.objectComparator?V.objectComparator:B};R.prototype.compare=function(V,k){if(V.type!==k.type||!b(V,k))return!1;switch(V.type){case"Point":return this.compareCoord(V.coordinates,k.coordinates);case"LineString":return this.compareLine(V.coordinates,k.coordinates,0,!1);case"Polygon":return this.comparePolygon(V,k);case"Feature":return this.compareFeature(V,k);default:if(V.type.indexOf("Multi")===0){var M=this,C=w(V),g=w(k);return C.every(function(A){return this.some(function(O){return M.compare(A,O)})},g)}}return!1};function w(V){return V.coordinates.map(function(k){return{type:V.type.replace("Multi",""),coordinates:k}})}function b(V,k){return V.hasOwnProperty("coordinates")?V.coordinates.length===k.coordinates.length:V.length===k.length}R.prototype.compareCoord=function(V,k){if(V.length!==k.length)return!1;for(var M=0;M=0&&(M=[].concat(V.slice(C,V.length),V.slice(1,C+1))),M},R.prototype.comparePath=function(V,k){var M=this;return V.every(function(C,g){return M.compareCoord(C,this[g])},k)},R.prototype.comparePolygon=function(V,k){if(this.compareLine(V.coordinates[0],k.coordinates[0],1,!0)){var M=V.coordinates.slice(1,V.coordinates.length),C=k.coordinates.slice(1,k.coordinates.length),g=this;return M.every(function(A){return this.some(function(O){return g.compareLine(A,O,1,!0)})},C)}else return!1},R.prototype.compareFeature=function(V,k){return V.id!==k.id||!this.objectComparator(V.properties,k.properties)||!this.compareBBox(V,k)?!1:this.compare(V.geometry,k.geometry)},R.prototype.compareBBox=function(V,k){return!!(!V.bbox&&!k.bbox||V.bbox&&k.bbox&&this.compareCoord(V.bbox,k.bbox))},R.prototype.removePseudo=function(V){return V};function B(V,k){return v(V,k,{strict:!0})}_t.exports=R},56898:function(_t,Y,_){var v=_(79535),R=_(78161),w=_(9750),b=_(76314).Z,B=w.featureEach,V=w.coordEach,k=R.polygon,M=R.featureCollection;function C(g){var A=new v(g);return A.insert=function(O){if(O.type!=="Feature")throw new Error("invalid feature");return O.bbox=O.bbox?O.bbox:b(O),v.prototype.insert.call(this,O)},A.load=function(O){var K=[];return Array.isArray(O)?O.forEach(function(ce){if(ce.type!=="Feature")throw new Error("invalid features");ce.bbox=ce.bbox?ce.bbox:b(ce),K.push(ce)}):B(O,function(ce){if(ce.type!=="Feature")throw new Error("invalid features");ce.bbox=ce.bbox?ce.bbox:b(ce),K.push(ce)}),v.prototype.load.call(this,K)},A.remove=function(O,K){if(O.type!=="Feature")throw new Error("invalid feature");return O.bbox=O.bbox?O.bbox:b(O),v.prototype.remove.call(this,O,K)},A.clear=function(){return v.prototype.clear.call(this)},A.search=function(O){var K=v.prototype.search.call(this,this.toBBox(O));return M(K)},A.collides=function(O){return v.prototype.collides.call(this,this.toBBox(O))},A.all=function(){var O=v.prototype.all.call(this);return M(O)},A.toJSON=function(){return v.prototype.toJSON.call(this)},A.fromJSON=function(O){return v.prototype.fromJSON.call(this,O)},A.toBBox=function(O){var K;if(O.bbox)K=O.bbox;else if(Array.isArray(O)&&O.length===4)K=O;else if(Array.isArray(O)&&O.length===6)K=[O[0],O[1],O[3],O[4]];else if(O.type==="Feature")K=b(O);else if(O.type==="FeatureCollection")K=b(O);else throw new Error("invalid geojson");return{minX:K[0],minY:K[1],maxX:K[2],maxY:K[3]}},A}_t.exports=C,_t.exports.default=C},44532:function(_t,Y,_){"use strict";var v,R=SyntaxError,w=Function,b=TypeError,B=function(Ie){try{return w('"use strict"; return ('+Ie+").constructor;")()}catch(Xe){}},V=Object.getOwnPropertyDescriptor;if(V)try{V({},"")}catch(Ie){V=null}var k=function(){throw new b},M=V?function(){try{return arguments.callee,k}catch(Ie){try{return V(arguments,"callee").get}catch(Xe){return k}}}():k,C=_(9997)(),g=_(77916)(),A=Object.getPrototypeOf||(g?function(Ie){return Ie.__proto__}:null),O={},K=typeof Uint8Array=="undefined"||!A?v:A(Uint8Array),ce={"%AggregateError%":typeof AggregateError=="undefined"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?v:ArrayBuffer,"%ArrayIteratorPrototype%":C&&A?A([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":typeof Atomics=="undefined"?v:Atomics,"%BigInt%":typeof BigInt=="undefined"?v:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?v:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?v:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?v:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?v:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":O,"%Int8Array%":typeof Int8Array=="undefined"?v:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?v:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&A?A(A([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map=="undefined"?v:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!C||!A?v:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?v:Promise,"%Proxy%":typeof Proxy=="undefined"?v:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?v:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!C||!A?v:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&A?A(""[Symbol.iterator]()):v,"%Symbol%":C?Symbol:v,"%SyntaxError%":R,"%ThrowTypeError%":M,"%TypedArray%":K,"%TypeError%":b,"%Uint8Array%":typeof Uint8Array=="undefined"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?v:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?v:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?v:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?v:WeakSet};if(A)try{null.error}catch(Ie){var de=A(A(Ie));ce["%Error.prototype%"]=de}var ve=function Ie(Xe){var ze;if(Xe==="%AsyncFunction%")ze=B("async function () {}");else if(Xe==="%GeneratorFunction%")ze=B("function* () {}");else if(Xe==="%AsyncGeneratorFunction%")ze=B("async function* () {}");else if(Xe==="%AsyncGenerator%"){var Kt=Ie("%AsyncGeneratorFunction%");Kt&&(ze=Kt.prototype)}else if(Xe==="%AsyncIteratorPrototype%"){var St=Ie("%AsyncGenerator%");St&&A&&(ze=A(St.prototype))}return ce[Xe]=ze,ze},Ee={"%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"]},_e=_(36723),we=_(68854),ot=_e.call(Function.call,Array.prototype.concat),He=_e.call(Function.apply,Array.prototype.splice),vt=_e.call(Function.call,String.prototype.replace),dt=_e.call(Function.call,String.prototype.slice),Pe=_e.call(Function.call,RegExp.prototype.exec),De=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ae=/\\(\\)?/g,Re=function(Xe){var ze=dt(Xe,0,1),Kt=dt(Xe,-1);if(ze==="%"&&Kt!=="%")throw new R("invalid intrinsic syntax, expected closing `%`");if(Kt==="%"&&ze!=="%")throw new R("invalid intrinsic syntax, expected opening `%`");var St=[];return vt(Xe,De,function(nt,Ct,lt,Gt){St[St.length]=lt?vt(Gt,Ae,"$1"):Ct||nt}),St},$e=function(Xe,ze){var Kt=Xe,St;if(we(Ee,Kt)&&(St=Ee[Kt],Kt="%"+St[0]+"%"),we(ce,Kt)){var nt=ce[Kt];if(nt===O&&(nt=ve(Kt)),typeof nt=="undefined"&&!ze)throw new b("intrinsic "+Xe+" exists, but is not available. Please file an issue!");return{alias:St,name:Kt,value:nt}}throw new R("intrinsic "+Xe+" does not exist!")};_t.exports=function(Xe,ze){if(typeof Xe!="string"||Xe.length===0)throw new b("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ze!="boolean")throw new b('"allowMissing" argument must be a boolean');if(Pe(/^%?[^%]*%?$/,Xe)===null)throw new R("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Kt=Re(Xe),St=Kt.length>0?Kt[0]:"",nt=$e("%"+St+"%",ze),Ct=nt.name,lt=nt.value,Gt=!1,Rt=nt.alias;Rt&&(St=Rt[0],He(Kt,ot([0,1],Rt)));for(var an=1,cn=!0;an=Kt.length){var Ni=V(lt,Cr);cn=!!Ni,cn&&"get"in Ni&&!("originalValue"in Ni.get)?lt=Ni.get:lt=lt[Cr]}else cn=we(lt,Cr),lt=lt[Cr];cn&&!Gt&&(ce[Ct]=lt)}}return lt}},67747:function(_t,Y,_){"use strict";var v=_(44532),R=v("%Object.getOwnPropertyDescriptor%",!0);if(R)try{R([],"length")}catch(w){R=null}_t.exports=R},83959:function(_t,Y,_){var v;(function(R,w,b,B){"use strict";var V=["","webkit","Moz","MS","ms","o"],k=w.createElement("div"),M="function",C=Math.round,g=Math.abs,A=Date.now;function O(je,ut,ht){return setTimeout(ot(je,ht),ut)}function K(je,ut,ht){return Array.isArray(je)?(ce(je,ht[ut],ht),!0):!1}function ce(je,ut,ht){var Ue;if(je)if(je.forEach)je.forEach(ut,ht);else if(je.length!==B)for(Ue=0;Ue\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",ln=R.console&&(R.console.warn||R.console.log);return ln&&ln.call(R.console,Ue,Pt),je.apply(this,arguments)}}var ve;typeof Object.assign!="function"?ve=function(ut){if(ut===B||ut===null)throw new TypeError("Cannot convert undefined or null to object");for(var ht=Object(ut),Ue=1;Ue-1}function Re(je){return je.trim().split(/\s+/g)}function $e(je,ut,ht){if(je.indexOf&&!ht)return je.indexOf(ut);for(var Ue=0;UeUi[ut]}):Ue=Ue.sort()),Ue}function ze(je,ut){for(var ht,Ue,ft=ut[0].toUpperCase()+ut.slice(1),Pt=0;Pt1&&!ht.firstMultiple?ht.firstMultiple=Jt(ut):ft===1&&(ht.firstMultiple=!1);var Pt=ht.firstInput,ln=ht.firstMultiple,sr=ln?ln.center:Pt.center,Zr=ut.center=yn(Ue);ut.timeStamp=A(),ut.deltaTime=ut.timeStamp-Pt.timeStamp,ut.angle=wr(sr,Zr),ut.distance=pn(sr,Zr),bn(ht,ut),ut.offsetDirection=vr(ut.deltaX,ut.deltaY);var Ui=fr(ut.deltaTime,ut.deltaX,ut.deltaY);ut.overallVelocityX=Ui.x,ut.overallVelocityY=Ui.y,ut.overallVelocity=g(Ui.x)>g(Ui.y)?Ui.x:Ui.y,ut.scale=ln?Ai(ln.pointers,Ue):1,ut.rotation=ln?Sr(ln.pointers,Ue):0,ut.maxPointers=ht.prevInput?ut.pointers.length>ht.prevInput.maxPointers?ut.pointers.length:ht.prevInput.maxPointers:ut.pointers.length,zt(ht,ut);var To=je.element;De(ut.srcEvent.target,To)&&(To=ut.srcEvent.target),ut.target=To}function bn(je,ut){var ht=ut.center,Ue=je.offsetDelta||{},ft=je.prevDelta||{},Pt=je.prevInput||{};(ut.eventType===Ni||Pt.eventType===ti)&&(ft=je.prevDelta={x:Pt.deltaX||0,y:Pt.deltaY||0},Ue=je.offsetDelta={x:ht.x,y:ht.y}),ut.deltaX=ft.x+(ht.x-Ue.x),ut.deltaY=ft.y+(ht.y-Ue.y)}function zt(je,ut){var ht=je.lastInterval||ut,Ue=ut.timeStamp-ht.timeStamp,ft,Pt,ln,sr;if(ut.eventType!=Ts&&(Ue>Pi||ht.velocity===B)){var Zr=ut.deltaX-ht.deltaX,Ui=ut.deltaY-ht.deltaY,To=fr(Ue,Zr,Ui);Pt=To.x,ln=To.y,ft=g(To.x)>g(To.y)?To.x:To.y,sr=vr(Zr,Ui),je.lastInterval=ut}else ft=ht.velocity,Pt=ht.velocityX,ln=ht.velocityY,sr=ht.direction;ut.velocity=ft,ut.velocityX=Pt,ut.velocityY=ln,ut.direction=sr}function Jt(je){for(var ut=[],ht=0;ht=g(ut)?je<0?Ce:Gi:ut<0?qi:co}function pn(je,ut,ht){ht||(ht=et);var Ue=ut[ht[0]]-je[ht[0]],ft=ut[ht[1]]-je[ht[1]];return Math.sqrt(Ue*Ue+ft*ft)}function wr(je,ut,ht){ht||(ht=et);var Ue=ut[ht[0]]-je[ht[0]],ft=ut[ht[1]]-je[ht[1]];return Math.atan2(ft,Ue)*180/Math.PI}function Sr(je,ut){return wr(ut[1],ut[0],Dt)+wr(je[1],je[0],Dt)}function Ai(je,ut){return pn(ut[0],ut[1],Dt)/pn(je[0],je[1],Dt)}var mo={mousedown:Ni,mousemove:Yi,mouseup:ti},Fr="mousedown",to="mousemove mouseup";function Ji(){this.evEl=Fr,this.evWin=to,this.pressed=!1,$t.apply(this,arguments)}we(Ji,$t,{handler:function(ut){var ht=mo[ut.type];ht&Ni&&ut.button===0&&(this.pressed=!0),ht&Yi&&ut.which!==1&&(ht=ti),this.pressed&&(ht&ti&&(this.pressed=!1),this.callback(this.manager,ht,{pointers:[ut],changedPointers:[ut],pointerType:Cr,srcEvent:ut}))}});var bo={pointerdown:Ni,pointermove:Yi,pointerup:ti,pointercancel:Ts,pointerout:Ts},xn={2:an,3:cn,4:Cr,5:ii},fn="pointerdown",It="pointermove pointerup pointercancel";R.MSPointerEvent&&!R.PointerEvent&&(fn="MSPointerDown",It="MSPointerMove MSPointerUp MSPointerCancel");function Zt(){this.evEl=fn,this.evWin=It,$t.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}we(Zt,$t,{handler:function(ut){var ht=this.store,Ue=!1,ft=ut.type.toLowerCase().replace("ms",""),Pt=bo[ft],ln=xn[ut.pointerType]||ut.pointerType,sr=ln==an,Zr=$e(ht,ut.pointerId,"pointerId");Pt&Ni&&(ut.button===0||sr)?Zr<0&&(ht.push(ut),Zr=ht.length-1):Pt&(ti|Ts)&&(Ue=!0),!(Zr<0)&&(ht[Zr]=ut,this.callback(this.manager,Pt,{pointers:ht,changedPointers:[ut],pointerType:ln,srcEvent:ut}),Ue&&ht.splice(Zr,1))}});var gn={touchstart:Ni,touchmove:Yi,touchend:ti,touchcancel:Ts},$n="touchstart",Ar="touchstart touchmove touchend touchcancel";function Dr(){this.evTarget=$n,this.evWin=Ar,this.started=!1,$t.apply(this,arguments)}we(Dr,$t,{handler:function(ut){var ht=gn[ut.type];if(ht===Ni&&(this.started=!0),!!this.started){var Ue=dr.call(this,ut,ht);ht&(ti|Ts)&&Ue[0].length-Ue[1].length===0&&(this.started=!1),this.callback(this.manager,ht,{pointers:Ue[0],changedPointers:Ue[1],pointerType:an,srcEvent:ut})}}});function dr(je,ut){var ht=Ie(je.touches),Ue=Ie(je.changedTouches);return ut&(ti|Ts)&&(ht=Xe(ht.concat(Ue),"identifier",!0)),[ht,Ue]}var Xt={touchstart:Ni,touchmove:Yi,touchend:ti,touchcancel:Ts},Cn="touchstart touchmove touchend touchcancel";function er(){this.evTarget=Cn,this.targetIds={},$t.apply(this,arguments)}we(er,$t,{handler:function(ut){var ht=Xt[ut.type],Ue=Mr.call(this,ut,ht);Ue&&this.callback(this.manager,ht,{pointers:Ue[0],changedPointers:Ue[1],pointerType:an,srcEvent:ut})}});function Mr(je,ut){var ht=Ie(je.touches),Ue=this.targetIds;if(ut&(Ni|Yi)&&ht.length===1)return Ue[ht[0].identifier]=!0,[ht,ht];var ft,Pt,ln=Ie(je.changedTouches),sr=[],Zr=this.target;if(Pt=ht.filter(function(Ui){return De(Ui.target,Zr)}),ut===Ni)for(ft=0;ft-1&&Ue.splice(Pt,1)};setTimeout(ft,ji)}}function vi(je){for(var ut=je.srcEvent.clientX,ht=je.srcEvent.clientY,Ue=0;Ue-1&&this.requireFail.splice(ut,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(je){return!!this.simultaneous[je.id]},emit:function(je){var ut=this,ht=this.state;function Ue(ft){ut.manager.emit(ft,je)}ht<_n&&Ue(ut.options.event+Ba(ht)),Ue(ut.options.event),je.additionalEvent&&Ue(je.additionalEvent),ht>=_n&&Ue(ut.options.event+Ba(ht))},tryEmit:function(je){if(this.canEmit())return this.emit(je);this.state=ko},canEmit:function(){for(var je=0;jeut.threshold&&ft&ut.direction},attrTest:function(je){return ll.prototype.attrTest.call(this,je)&&(this.state&is||!(this.state&is)&&this.directionTest(je))},emit:function(je){this.pX=je.deltaX,this.pY=je.deltaY;var ut=uo(je.direction);ut&&(je.additionalEvent=this.options.event+ut),this._super.emit.call(this,je)}});function Li(){ll.apply(this,arguments)}we(Li,ll,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[zr]},attrTest:function(je){return this._super.attrTest.call(this,je)&&(Math.abs(je.scale-1)>this.options.threshold||this.state&is)},emit:function(je){if(je.scale!==1){var ut=je.scale<1?"in":"out";je.additionalEvent=this.options.event+ut}this._super.emit.call(this,je)}});function eo(){vs.apply(this,arguments),this._timer=null,this._input=null}we(eo,vs,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[mi]},process:function(je){var ut=this.options,ht=je.pointers.length===ut.pointers,Ue=je.distanceut.time;if(this._input=je,!Ue||!ht||je.eventType&(ti|Ts)&&!ft)this.reset();else if(je.eventType&Ni)this.reset(),this._timer=O(function(){this.state=Br,this.tryEmit()},ut.time,this);else if(je.eventType&ti)return Br;return ko},reset:function(){clearTimeout(this._timer)},emit:function(je){this.state===Br&&(je&&je.eventType&ti?this.manager.emit(this.options.event+"up",je):(this._input.timeStamp=A(),this.manager.emit(this.options.event,this._input)))}});function Eo(){ll.apply(this,arguments)}we(Eo,ll,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[zr]},attrTest:function(je){return this._super.attrTest.call(this,je)&&(Math.abs(je.rotation)>this.options.threshold||this.state&is)}});function hs(){ll.apply(this,arguments)}we(hs,ll,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:fi|Ms,pointers:1},getTouchAction:function(){return Ti.prototype.getTouchAction.call(this)},attrTest:function(je){var ut=this.options.direction,ht;return ut&(fi|Ms)?ht=je.overallVelocity:ut&fi?ht=je.overallVelocityX:ut&Ms&&(ht=je.overallVelocityY),this._super.attrTest.call(this,je)&&ut&je.offsetDirection&&je.distance>this.options.threshold&&je.maxPointers==this.options.pointers&&g(ht)>this.options.velocity&&je.eventType&ti},emit:function(je){var ut=uo(je.offsetDirection);ut&&this.manager.emit(this.options.event+ut,je),this.manager.emit(this.options.event,je)}});function Wn(){vs.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}we(Wn,vs,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Bi]},process:function(je){var ut=this.options,ht=je.pointers.length===ut.pointers,Ue=je.distance>1,g=-7,A=R?b-1:0,O=R?-1:1,K=_[v+A];for(A+=O,B=K&(1<<-g)-1,K>>=-g,g+=k;g>0;B=B*256+_[v+A],A+=O,g-=8);for(V=B&(1<<-g)-1,B>>=-g,g+=w;g>0;V=V*256+_[v+A],A+=O,g-=8);if(B===0)B=1-C;else{if(B===M)return V?NaN:(K?-1:1)*(1/0);V=V+Math.pow(2,w),B=B-C}return(K?-1:1)*V*Math.pow(2,B-w)},Y.write=function(_,v,R,w,b,B){var V,k,M,C=B*8-b-1,g=(1<>1,O=b===23?Math.pow(2,-24)-Math.pow(2,-77):0,K=w?0:B-1,ce=w?1:-1,de=v<0||v===0&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===1/0?(k=isNaN(v)?1:0,V=g):(V=Math.floor(Math.log(v)/Math.LN2),v*(M=Math.pow(2,-V))<1&&(V--,M*=2),V+A>=1?v+=O/M:v+=O*Math.pow(2,1-A),v*M>=2&&(V++,M/=2),V+A>=g?(k=0,V=g):V+A>=1?(k=(v*M-1)*Math.pow(2,b),V=V+A):(k=v*Math.pow(2,A-1)*Math.pow(2,b),V=0));b>=8;_[R+K]=k&255,K+=ce,k/=256,b-=8);for(V=V<0;_[R+K]=V&255,K+=ce,V/=256,C-=8);_[R+K-ce]|=de*128}},3039:function(_t,Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var _=Symbol.for("INJECTION");function v(V,k,M,C){function g(){return C&&!Reflect.hasMetadata(_,this,k)&&Reflect.defineMetadata(_,M(),this,k),Reflect.hasMetadata(_,this,k)?Reflect.getMetadata(_,this,k):M()}function A(O){Reflect.defineMetadata(_,O,this,k)}Object.defineProperty(V,k,{configurable:!0,enumerable:!0,get:g,set:A})}function R(V,k){return function(M){return function(C,g){var A=function(){return V.get(M)};v(C,g,A,k)}}}Y.makePropertyInjectDecorator=R;function w(V,k){return function(M,C){return function(g,A){var O=function(){return V.getNamed(M,C)};v(g,A,O,k)}}}Y.makePropertyInjectNamedDecorator=w;function b(V,k){return function(M,C,g){return function(A,O){var K=function(){return V.getTagged(M,C,g)};v(A,O,K,k)}}}Y.makePropertyInjectTaggedDecorator=b;function B(V,k){return function(M){return function(C,g){var A=function(){return V.getAll(M)};v(C,g,A,k)}}}Y.makePropertyMultiInjectDecorator=B},11922:function(_t,Y,_){"use strict";var v;v={value:!0};var R=_(3039);function w(b,B){B===void 0&&(B=!0);var V=R.makePropertyInjectDecorator(b,B),k=R.makePropertyInjectNamedDecorator(b,B),M=R.makePropertyInjectTaggedDecorator(b,B),C=R.makePropertyMultiInjectDecorator(b,B);return{lazyInject:V,lazyInjectNamed:k,lazyInjectTagged:M,lazyMultiInject:C}}Y.Z=w},80626:function(_t,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.tagProperty=Y.tagParameter=Y.decorate=void 0;var v=_(36078),R=_(50295);function w(C,g,A,O){var K=R.TAGGED;B(K,C,g,O,A)}Y.tagParameter=w;function b(C,g,A){var O=R.TAGGED_PROP;B(O,C.constructor,g,A)}Y.tagProperty=b;function B(C,g,A,O,K){var ce={},de=typeof K=="number",ve=K!==void 0&&de?K.toString():A;if(de&&A!==void 0)throw new Error(v.INVALID_DECORATOR_OPERATION);Reflect.hasOwnMetadata(C,g)&&(ce=Reflect.getMetadata(C,g));var Ee=ce[ve];if(!Array.isArray(Ee))Ee=[];else for(var _e=0,we=Ee;_e= than the number of constructor arguments of its base class.")};Y.ARGUMENTS_LENGTH_MISMATCH=v,Y.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",Y.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",Y.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",Y.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",Y.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";var R=function(){for(var b=[],B=0;B0&&vt[vt.length-1])&&(Ae[0]===6||Ae[0]===2)){we=0;continue}if(Ae[0]===3&&(!vt||Ae[1]>vt[0]&&Ae[1]0?B._map.set(k,M):B._map.delete(k)})},w.prototype.hasKey=function(b){if(b==null)throw new Error(v.NULL_ARGUMENT);return this._map.has(b)},w.prototype.clone=function(){var b=new w;return this._map.forEach(function(B,V){B.forEach(function(k){return b.add(V,k.clone())})}),b},w.prototype.traverse=function(b){this._map.forEach(function(B,V){b(V,B)})},w}();Y.Lookup=R},99311:function(_t,Y,_){"use strict";var v;v={value:!0},v=v=v=v=v=v=Y.GW=v=v=Y.zY=v=v=v=v=v=Y.f3=v=v=Y.b2=v=v=v=v=v=Y.W2=v=void 0;var R=_(50295);v=R;var w=_(70596);Object.defineProperty(Y,"W2",{enumerable:!0,get:function(){return w.Container}});var b=_(77690);v={enumerable:!0,get:function(){return b.BindingScopeEnum}},v={enumerable:!0,get:function(){return b.BindingTypeEnum}},v={enumerable:!0,get:function(){return b.TargetTypeEnum}};var B=_(42913);v={enumerable:!0,get:function(){return B.AsyncContainerModule}},v={enumerable:!0,get:function(){return B.ContainerModule}};var V=_(91773);Object.defineProperty(Y,"b2",{enumerable:!0,get:function(){return V.injectable}});var k=_(79189);v={enumerable:!0,get:function(){return k.tagged}};var M=_(79817);v={enumerable:!0,get:function(){return M.named}};var C=_(76213);Object.defineProperty(Y,"f3",{enumerable:!0,get:function(){return C.inject}}),v={enumerable:!0,get:function(){return C.LazyServiceIdentifer}};var g=_(71316);v={enumerable:!0,get:function(){return g.optional}};var A=_(19235);v={enumerable:!0,get:function(){return A.unmanaged}};var O=_(41528);v={enumerable:!0,get:function(){return O.multiInject}};var K=_(8245);v={enumerable:!0,get:function(){return K.targetName}};var ce=_(71971);Object.defineProperty(Y,"zY",{enumerable:!0,get:function(){return ce.postConstruct}});var de=_(43870);v={enumerable:!0,get:function(){return de.MetadataReader}};var ve=_(70023);v={enumerable:!0,get:function(){return ve.id}};var Ee=_(80626);Object.defineProperty(Y,"GW",{enumerable:!0,get:function(){return Ee.decorate}});var _e=_(83140);v={enumerable:!0,get:function(){return _e.traverseAncerstors}},v={enumerable:!0,get:function(){return _e.taggedConstraint}},v={enumerable:!0,get:function(){return _e.namedConstraint}},v={enumerable:!0,get:function(){return _e.typeConstraint}};var we=_(29552);v={enumerable:!0,get:function(){return we.getServiceIdentifierAsString}};var ot=_(34384);v={enumerable:!0,get:function(){return ot.multiBindToService}}},91519:function(_t,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.Context=void 0;var v=_(70023),R=function(){function w(b){this.id=v.id(),this.container=b}return w.prototype.addPlan=function(b){this.plan=b},w.prototype.setCurrentRequest=function(b){this.currentRequest=b},w}();Y.Context=R},25092:function(_t,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.Metadata=void 0;var v=_(50295),R=function(){function w(b,B){this.key=b,this.value=B}return w.prototype.toString=function(){return this.key===v.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},w}();Y.Metadata=R},43870:function(_t,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.MetadataReader=void 0;var v=_(50295),R=function(){function w(){}return w.prototype.getConstructorMetadata=function(b){var B=Reflect.getMetadata(v.PARAM_TYPES,b),V=Reflect.getMetadata(v.TAGGED,b);return{compilerGeneratedMetadata:B,userGeneratedMetadata:V||{}}},w.prototype.getPropertiesMetadata=function(b){var B=Reflect.getMetadata(v.TAGGED_PROP,b)||[];return B},w}();Y.MetadataReader=R},6335:function(_t,Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.Plan=void 0;var _=function(){function v(R,w){this.parentContext=R,this.rootRequest=w}return v}();Y.Plan=_},54142:function(_t,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.getBindingDictionary=Y.createMockRequest=Y.plan=void 0;var v=_(13497),R=_(36078),w=_(77690),b=_(50295),B=_(92542),V=_(29552),k=_(91519),M=_(25092),C=_(6335),g=_(16664),A=_(14810),O=_(69660);function K(He){return He._bindingDictionary}Y.getBindingDictionary=K;function ce(He,vt,dt,Pe,De,Ae){var Re=He?b.MULTI_INJECT_TAG:b.INJECT_TAG,$e=new M.Metadata(Re,dt),Ie=new O.Target(vt,Pe,dt,$e);if(De!==void 0){var Xe=new M.Metadata(De,Ae);Ie.metadata.push(Xe)}return Ie}function de(He,vt,dt,Pe,De){var Ae=_e(dt.container,De.serviceIdentifier),Re=[];return Ae.length===v.BindingCount.NoBindingsAvailable&&dt.container.options.autoBindInjectable&&typeof De.serviceIdentifier=="function"&&He.getConstructorMetadata(De.serviceIdentifier).compilerGeneratedMetadata&&(dt.container.bind(De.serviceIdentifier).toSelf(),Ae=_e(dt.container,De.serviceIdentifier)),vt?Re=Ae:Re=Ae.filter(function($e){var Ie=new A.Request($e.serviceIdentifier,dt,Pe,$e,De);return $e.constraint(Ie)}),ve(De.serviceIdentifier,Re,De,dt.container),Re}function ve(He,vt,dt,Pe){switch(vt.length){case v.BindingCount.NoBindingsAvailable:if(dt.isOptional())return vt;var De=V.getServiceIdentifierAsString(He),Ae=R.NOT_REGISTERED;throw Ae+=V.listMetadataForTarget(De,dt),Ae+=V.listRegisteredBindingsForServiceIdentifier(Pe,De,_e),new Error(Ae);case v.BindingCount.OnlyOneBindingAvailable:if(!dt.isArray())return vt;case v.BindingCount.MultipleBindingsAvailable:default:if(dt.isArray())return vt;var De=V.getServiceIdentifierAsString(He),Ae=R.AMBIGUOUS_MATCH+" "+De;throw Ae+=V.listRegisteredBindingsForServiceIdentifier(Pe,De,_e),new Error(Ae)}}function Ee(He,vt,dt,Pe,De,Ae){var Re,$e;if(De===null){Re=de(He,vt,Pe,null,Ae),$e=new A.Request(dt,Pe,null,Re,Ae);var Ie=new C.Plan(Pe,$e);Pe.addPlan(Ie)}else Re=de(He,vt,Pe,De,Ae),$e=De.addChildRequest(Ae.serviceIdentifier,Re,Ae);Re.forEach(function(Xe){var ze=null;if(Ae.isArray())ze=$e.addChildRequest(Xe.serviceIdentifier,Xe,Ae);else{if(Xe.cache)return;ze=$e}if(Xe.type===w.BindingTypeEnum.Instance&&Xe.implementationType!==null){var Kt=g.getDependencies(He,Xe.implementationType);if(!Pe.container.options.skipBaseClassChecks){var St=g.getBaseClassDependencyCount(He,Xe.implementationType);if(Kt.length0,De=dt.length>Ee.length,Ae=Pe||De?dt.length:Ee.length,Re=A(_e,ve,ot,vt,Ae),$e=O(de,Ee),Ie=v(v([],Re),$e);return Ie}function g(de,ve,Ee,_e,we){var ot=we[de.toString()]||[],He=ce(ot),vt=He.unmanaged!==!0,dt=_e[de],Pe=He.inject||He.multiInject;if(dt=Pe||dt,dt instanceof R.LazyServiceIdentifer&&(dt=dt.unwrap()),vt){var De=dt===Object,Ae=dt===Function,Re=dt===void 0,$e=De||Ae||Re;if(!ve&&$e){var Ie=w.MISSING_INJECT_ANNOTATION+" argument "+de+" in class "+Ee+".";throw new Error(Ie)}var Xe=new k.Target(b.TargetTypeEnum.ConstructorArgument,He.targetName,dt);return Xe.metadata=ot,Xe}return null}function A(de,ve,Ee,_e,we){for(var ot=[],He=0;He0?vt:K(de,Ee)}else return 0}Y.getBaseClassDependencyCount=K;function ce(de){var ve={};return de.forEach(function(Ee){ve[Ee.key.toString()]=Ee.value}),{inject:ve[B.INJECT_TAG],multiInject:ve[B.MULTI_INJECT_TAG],targetName:ve[B.NAME_TAG],unmanaged:ve[B.UNMANAGED_TAG]}}},14810:function(_t,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.Request=void 0;var v=_(70023),R=function(){function w(b,B,V,k,M){this.id=v.id(),this.serviceIdentifier=b,this.parentContext=B,this.parentRequest=V,this.target=M,this.childRequests=[],this.bindings=Array.isArray(k)?k:[k],this.requestScope=V===null?new Map:null}return w.prototype.addChildRequest=function(b,B,V){var k=new w(b,this.parentContext,this,B,V);return this.childRequests.push(k),k},w}();Y.Request=R},69660:function(_t,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.Target=void 0;var v=_(50295),R=_(70023),w=_(25092),b=_(68634),B=function(){function V(k,M,C,g){this.id=R.id(),this.type=k,this.serviceIdentifier=C,this.name=new b.QueryableString(M||""),this.metadata=new Array;var A=null;typeof g=="string"?A=new w.Metadata(v.NAMED_TAG,g):g instanceof w.Metadata&&(A=g),A!==null&&this.metadata.push(A)}return V.prototype.hasTag=function(k){for(var M=0,C=this.metadata;M0){var K=g.filter(function(de){return de.target!==null&&de.target.type===w.TargetTypeEnum.ConstructorArgument}),ce=K.map(A);O=V(C,ce),O=B(O,g,A)}else O=new C;return k(C,O),O}Y.resolveInstance=M},9386:function(_t,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.resolve=void 0;var v=_(36078),R=_(77690),w=_(92542),b=_(29552),B=_(74962),V=function(C,g,A){try{return A()}catch(O){throw w.isStackOverflowExeption(O)?new Error(v.CIRCULAR_DEPENDENCY_IN_FACTORY(C,g.toString())):O}},k=function(C){return function(g){g.parentContext.setCurrentRequest(g);var A=g.bindings,O=g.childRequests,K=g.target&&g.target.isArray(),ce=!g.parentRequest||!g.parentRequest.target||!g.target||!g.parentRequest.target.matchesArray(g.target.serviceIdentifier);if(K&&ce)return O.map(function(ot){var He=k(C);return He(ot)});var de=null;if(g.target.isOptional()&&A.length===0)return;var ve=A[0],Ee=ve.scope===R.BindingScopeEnum.Singleton,_e=ve.scope===R.BindingScopeEnum.Request;if(Ee&&ve.activated)return ve.cache;if(_e&&C!==null&&C.has(ve.id))return C.get(ve.id);if(ve.type===R.BindingTypeEnum.ConstantValue)de=ve.cache,ve.activated=!0;else if(ve.type===R.BindingTypeEnum.Function)de=ve.cache,ve.activated=!0;else if(ve.type===R.BindingTypeEnum.Constructor)de=ve.implementationType;else if(ve.type===R.BindingTypeEnum.DynamicValue&&ve.dynamicValue!==null)de=V("toDynamicValue",ve.serviceIdentifier,function(){return ve.dynamicValue(g.parentContext)});else if(ve.type===R.BindingTypeEnum.Factory&&ve.factory!==null)de=V("toFactory",ve.serviceIdentifier,function(){return ve.factory(g.parentContext)});else if(ve.type===R.BindingTypeEnum.Provider&&ve.provider!==null)de=V("toProvider",ve.serviceIdentifier,function(){return ve.provider(g.parentContext)});else if(ve.type===R.BindingTypeEnum.Instance&&ve.implementationType!==null)de=B.resolveInstance(ve.implementationType,O,k(C));else{var we=b.getServiceIdentifierAsString(g.serviceIdentifier);throw new Error(v.INVALID_BINDING_TYPE+" "+we)}return typeof ve.onActivation=="function"&&(de=ve.onActivation(g.parentContext,de)),Ee&&(ve.cache=de,ve.activated=!0),_e&&C!==null&&!C.has(ve.id)&&C.set(ve.id,de),de}};function M(C){var g=k(C.plan.rootRequest.requestScope);return g(C.plan.rootRequest)}Y.resolve=M},91640:function(_t,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingInSyntax=void 0;var v=_(77690),R=_(46890),w=function(){function b(B){this._binding=B}return b.prototype.inRequestScope=function(){return this._binding.scope=v.BindingScopeEnum.Request,new R.BindingWhenOnSyntax(this._binding)},b.prototype.inSingletonScope=function(){return this._binding.scope=v.BindingScopeEnum.Singleton,new R.BindingWhenOnSyntax(this._binding)},b.prototype.inTransientScope=function(){return this._binding.scope=v.BindingScopeEnum.Transient,new R.BindingWhenOnSyntax(this._binding)},b}();Y.BindingInSyntax=w},82386:function(_t,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingInWhenOnSyntax=void 0;var v=_(91640),R=_(8926),w=_(36890),b=function(){function B(V){this._binding=V,this._bindingWhenSyntax=new w.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new R.BindingOnSyntax(this._binding),this._bindingInSyntax=new v.BindingInSyntax(V)}return B.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},B.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},B.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},B.prototype.when=function(V){return this._bindingWhenSyntax.when(V)},B.prototype.whenTargetNamed=function(V){return this._bindingWhenSyntax.whenTargetNamed(V)},B.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},B.prototype.whenTargetTagged=function(V,k){return this._bindingWhenSyntax.whenTargetTagged(V,k)},B.prototype.whenInjectedInto=function(V){return this._bindingWhenSyntax.whenInjectedInto(V)},B.prototype.whenParentNamed=function(V){return this._bindingWhenSyntax.whenParentNamed(V)},B.prototype.whenParentTagged=function(V,k){return this._bindingWhenSyntax.whenParentTagged(V,k)},B.prototype.whenAnyAncestorIs=function(V){return this._bindingWhenSyntax.whenAnyAncestorIs(V)},B.prototype.whenNoAncestorIs=function(V){return this._bindingWhenSyntax.whenNoAncestorIs(V)},B.prototype.whenAnyAncestorNamed=function(V){return this._bindingWhenSyntax.whenAnyAncestorNamed(V)},B.prototype.whenAnyAncestorTagged=function(V,k){return this._bindingWhenSyntax.whenAnyAncestorTagged(V,k)},B.prototype.whenNoAncestorNamed=function(V){return this._bindingWhenSyntax.whenNoAncestorNamed(V)},B.prototype.whenNoAncestorTagged=function(V,k){return this._bindingWhenSyntax.whenNoAncestorTagged(V,k)},B.prototype.whenAnyAncestorMatches=function(V){return this._bindingWhenSyntax.whenAnyAncestorMatches(V)},B.prototype.whenNoAncestorMatches=function(V){return this._bindingWhenSyntax.whenNoAncestorMatches(V)},B.prototype.onActivation=function(V){return this._bindingOnSyntax.onActivation(V)},B}();Y.BindingInWhenOnSyntax=b},8926:function(_t,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingOnSyntax=void 0;var v=_(36890),R=function(){function w(b){this._binding=b}return w.prototype.onActivation=function(b){return this._binding.onActivation=b,new v.BindingWhenSyntax(this._binding)},w}();Y.BindingOnSyntax=R},43313:function(_t,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingToSyntax=void 0;var v=_(36078),R=_(77690),w=_(82386),b=_(46890),B=function(){function V(k){this._binding=k}return V.prototype.to=function(k){return this._binding.type=R.BindingTypeEnum.Instance,this._binding.implementationType=k,new w.BindingInWhenOnSyntax(this._binding)},V.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+v.INVALID_TO_SELF_VALUE);var k=this._binding.serviceIdentifier;return this.to(k)},V.prototype.toConstantValue=function(k){return this._binding.type=R.BindingTypeEnum.ConstantValue,this._binding.cache=k,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=R.BindingScopeEnum.Singleton,new b.BindingWhenOnSyntax(this._binding)},V.prototype.toDynamicValue=function(k){return this._binding.type=R.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=k,this._binding.implementationType=null,new w.BindingInWhenOnSyntax(this._binding)},V.prototype.toConstructor=function(k){return this._binding.type=R.BindingTypeEnum.Constructor,this._binding.implementationType=k,this._binding.scope=R.BindingScopeEnum.Singleton,new b.BindingWhenOnSyntax(this._binding)},V.prototype.toFactory=function(k){return this._binding.type=R.BindingTypeEnum.Factory,this._binding.factory=k,this._binding.scope=R.BindingScopeEnum.Singleton,new b.BindingWhenOnSyntax(this._binding)},V.prototype.toFunction=function(k){if(typeof k!="function")throw new Error(v.INVALID_FUNCTION_BINDING);var M=this.toConstantValue(k);return this._binding.type=R.BindingTypeEnum.Function,this._binding.scope=R.BindingScopeEnum.Singleton,M},V.prototype.toAutoFactory=function(k){return this._binding.type=R.BindingTypeEnum.Factory,this._binding.factory=function(M){var C=function(){return M.container.get(k)};return C},this._binding.scope=R.BindingScopeEnum.Singleton,new b.BindingWhenOnSyntax(this._binding)},V.prototype.toProvider=function(k){return this._binding.type=R.BindingTypeEnum.Provider,this._binding.provider=k,this._binding.scope=R.BindingScopeEnum.Singleton,new b.BindingWhenOnSyntax(this._binding)},V.prototype.toService=function(k){this.toDynamicValue(function(M){return M.container.get(k)})},V}();Y.BindingToSyntax=B},46890:function(_t,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingWhenOnSyntax=void 0;var v=_(8926),R=_(36890),w=function(){function b(B){this._binding=B,this._bindingWhenSyntax=new R.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new v.BindingOnSyntax(this._binding)}return b.prototype.when=function(B){return this._bindingWhenSyntax.when(B)},b.prototype.whenTargetNamed=function(B){return this._bindingWhenSyntax.whenTargetNamed(B)},b.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},b.prototype.whenTargetTagged=function(B,V){return this._bindingWhenSyntax.whenTargetTagged(B,V)},b.prototype.whenInjectedInto=function(B){return this._bindingWhenSyntax.whenInjectedInto(B)},b.prototype.whenParentNamed=function(B){return this._bindingWhenSyntax.whenParentNamed(B)},b.prototype.whenParentTagged=function(B,V){return this._bindingWhenSyntax.whenParentTagged(B,V)},b.prototype.whenAnyAncestorIs=function(B){return this._bindingWhenSyntax.whenAnyAncestorIs(B)},b.prototype.whenNoAncestorIs=function(B){return this._bindingWhenSyntax.whenNoAncestorIs(B)},b.prototype.whenAnyAncestorNamed=function(B){return this._bindingWhenSyntax.whenAnyAncestorNamed(B)},b.prototype.whenAnyAncestorTagged=function(B,V){return this._bindingWhenSyntax.whenAnyAncestorTagged(B,V)},b.prototype.whenNoAncestorNamed=function(B){return this._bindingWhenSyntax.whenNoAncestorNamed(B)},b.prototype.whenNoAncestorTagged=function(B,V){return this._bindingWhenSyntax.whenNoAncestorTagged(B,V)},b.prototype.whenAnyAncestorMatches=function(B){return this._bindingWhenSyntax.whenAnyAncestorMatches(B)},b.prototype.whenNoAncestorMatches=function(B){return this._bindingWhenSyntax.whenNoAncestorMatches(B)},b.prototype.onActivation=function(B){return this._bindingOnSyntax.onActivation(B)},b}();Y.BindingWhenOnSyntax=w},36890:function(_t,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingWhenSyntax=void 0;var v=_(8926),R=_(83140),w=function(){function b(B){this._binding=B}return b.prototype.when=function(B){return this._binding.constraint=B,new v.BindingOnSyntax(this._binding)},b.prototype.whenTargetNamed=function(B){return this._binding.constraint=R.namedConstraint(B),new v.BindingOnSyntax(this._binding)},b.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(B){var V=B.target!==null&&!B.target.isNamed()&&!B.target.isTagged();return V},new v.BindingOnSyntax(this._binding)},b.prototype.whenTargetTagged=function(B,V){return this._binding.constraint=R.taggedConstraint(B)(V),new v.BindingOnSyntax(this._binding)},b.prototype.whenInjectedInto=function(B){return this._binding.constraint=function(V){return R.typeConstraint(B)(V.parentRequest)},new v.BindingOnSyntax(this._binding)},b.prototype.whenParentNamed=function(B){return this._binding.constraint=function(V){return R.namedConstraint(B)(V.parentRequest)},new v.BindingOnSyntax(this._binding)},b.prototype.whenParentTagged=function(B,V){return this._binding.constraint=function(k){return R.taggedConstraint(B)(V)(k.parentRequest)},new v.BindingOnSyntax(this._binding)},b.prototype.whenAnyAncestorIs=function(B){return this._binding.constraint=function(V){return R.traverseAncerstors(V,R.typeConstraint(B))},new v.BindingOnSyntax(this._binding)},b.prototype.whenNoAncestorIs=function(B){return this._binding.constraint=function(V){return!R.traverseAncerstors(V,R.typeConstraint(B))},new v.BindingOnSyntax(this._binding)},b.prototype.whenAnyAncestorNamed=function(B){return this._binding.constraint=function(V){return R.traverseAncerstors(V,R.namedConstraint(B))},new v.BindingOnSyntax(this._binding)},b.prototype.whenNoAncestorNamed=function(B){return this._binding.constraint=function(V){return!R.traverseAncerstors(V,R.namedConstraint(B))},new v.BindingOnSyntax(this._binding)},b.prototype.whenAnyAncestorTagged=function(B,V){return this._binding.constraint=function(k){return R.traverseAncerstors(k,R.taggedConstraint(B)(V))},new v.BindingOnSyntax(this._binding)},b.prototype.whenNoAncestorTagged=function(B,V){return this._binding.constraint=function(k){return!R.traverseAncerstors(k,R.taggedConstraint(B)(V))},new v.BindingOnSyntax(this._binding)},b.prototype.whenAnyAncestorMatches=function(B){return this._binding.constraint=function(V){return R.traverseAncerstors(V,B)},new v.BindingOnSyntax(this._binding)},b.prototype.whenNoAncestorMatches=function(B){return this._binding.constraint=function(V){return!R.traverseAncerstors(V,B)},new v.BindingOnSyntax(this._binding)},b}();Y.BindingWhenSyntax=w},83140:function(_t,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.typeConstraint=Y.namedConstraint=Y.taggedConstraint=Y.traverseAncerstors=void 0;var v=_(50295),R=_(25092),w=function(k,M){var C=k.parentRequest;return C!==null?M(C)?!0:w(C,M):!1};Y.traverseAncerstors=w;var b=function(k){return function(M){var C=function(g){return g!==null&&g.target!==null&&g.target.matchesTag(k)(M)};return C.metaData=new R.Metadata(k,M),C}};Y.taggedConstraint=b;var B=b(v.NAMED_TAG);Y.namedConstraint=B;var V=function(k){return function(M){var C=null;if(M!==null)if(C=M.bindings[0],typeof k=="string"){var g=C.serviceIdentifier;return g===k}else{var A=M.bindings[0].implementationType;return k===A}return!1}};Y.typeConstraint=V},34384:function(_t,Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.multiBindToService=void 0;var _=function(v){return function(R){return function(){for(var w=[],b=0;b ")}function V(C){C.childRequests.forEach(function(g){if(b(g,g.serviceIdentifier)){var A=B(g);throw new Error(v.CIRCULAR_DEPENDENCY+" "+A)}else V(g)})}Y.circularDependencyToException=V;function k(C,g){if(g.isTagged()||g.isNamed()){var A="",O=g.getNamedTag(),K=g.getCustomTags();return O!==null&&(A+=O.toString()+` -`),K!==null&&K.forEach(function(ce){A+=ce.toString()+` + `]:{[es]:{position:"relative",height:_o(Wr).add(_o(wi.lineWidth).mul(2)).add(_o(wi.paddingXS).mul(2)).equal(),padding:wi.paddingXS,border:`${(0,Ni.bf)(wi.lineWidth)} ${wi.lineType} ${wi.colorBorder}`,borderRadius:wi.borderRadiusLG,"&:hover":{background:"transparent"},[`${es}-thumbnail`]:Object.assign(Object.assign({},un.vS),{width:Wr,height:Wr,lineHeight:(0,Ni.bf)(_o(Wr).add(wi.paddingSM).equal()),textAlign:"center",flex:"none",[Un]:{fontSize:wi.fontSizeHeading2,color:wi.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${es}-progress`]:{bottom:Qr,width:`calc(100% - ${(0,Ni.bf)(_o(wi.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:_o(Wr).add(wi.paddingXS).equal()}},[`${es}-error`]:{borderColor:wi.colorError,[`${es}-thumbnail ${Un}`]:{[`svg path[fill='${Fs.iN[0]}']`]:{fill:wi.colorErrorBg},[`svg path[fill='${Fs.iN.primary}']`]:{fill:wi.colorError}}},[`${es}-uploading`]:{borderStyle:"dashed",[`${es}-name`]:{marginBottom:Qr}}},[`${us}${us}-picture-circle ${es}`]:{[`&, &::before, ${es}-thumbnail`]:{borderRadius:"50%"}}}}},Ot=wi=>{const{componentCls:er,iconCls:Un,fontSizeLG:Wr,colorTextLightSolid:Qr,calc:_o}=wi,us=`${er}-list`,es=`${us}-item`,Ma=wi.uploadPicCardSize;return{[` + ${er}-wrapper${er}-picture-card-wrapper, + ${er}-wrapper${er}-picture-circle-wrapper + `]:Object.assign(Object.assign({},(0,un.dF)()),{display:"inline-block",width:"100%",[`${er}${er}-select`]:{width:Ma,height:Ma,marginInlineEnd:wi.marginXS,marginBottom:wi.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:wi.colorFillAlter,border:`${(0,Ni.bf)(wi.lineWidth)} dashed ${wi.colorBorder}`,borderRadius:wi.borderRadiusLG,cursor:"pointer",transition:`border-color ${wi.motionDurationSlow}`,[`> ${er}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${er}-disabled):hover`]:{borderColor:wi.colorPrimary}},[`${us}${us}-picture-card, ${us}${us}-picture-circle`]:{[`${us}-item-container`]:{display:"inline-block",width:Ma,height:Ma,marginBlock:`0 ${(0,Ni.bf)(wi.marginXS)}`,marginInline:`0 ${(0,Ni.bf)(wi.marginXS)}`,verticalAlign:"top"},"&::after":{display:"none"},[es]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,Ni.bf)(_o(wi.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,Ni.bf)(_o(wi.paddingXS).mul(2).equal())})`,backgroundColor:wi.colorBgMask,opacity:0,transition:`all ${wi.motionDurationSlow}`,content:'" "'}},[`${es}:hover`]:{[`&::before, ${es}-actions`]:{opacity:1}},[`${es}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${wi.motionDurationSlow}`,[`${Un}-eye, ${Un}-download, ${Un}-delete`]:{zIndex:10,width:Wr,margin:`0 ${(0,Ni.bf)(wi.marginXXS)}`,fontSize:Wr,cursor:"pointer",transition:`all ${wi.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${es}-actions, ${es}-actions:hover`]:{[`${Un}-eye, ${Un}-download, ${Un}-delete`]:{color:new Ln.C(Qr).setAlpha(.65).toRgbString(),"&:hover":{color:Qr}}},[`${es}-thumbnail, ${es}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${es}-name`]:{display:"none",textAlign:"center"},[`${es}-file + ${es}-name`]:{position:"absolute",bottom:wi.margin,display:"block",width:`calc(100% - ${(0,Ni.bf)(_o(wi.paddingXS).mul(2).equal())})`},[`${es}-uploading`]:{[`&${es}`]:{backgroundColor:wi.colorFillAlter},[`&::before, ${Un}-eye, ${Un}-download, ${Un}-delete`]:{display:"none"}},[`${es}-progress`]:{bottom:wi.marginXL,width:`calc(100% - ${(0,Ni.bf)(_o(wi.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${er}-wrapper${er}-picture-circle-wrapper`]:{[`${er}${er}-select`]:{borderRadius:"50%"}}}};var Pn=wi=>{const{componentCls:er}=wi;return{[`${er}-rtl`]:{direction:"rtl"}}};const fr=wi=>{const{componentCls:er,colorTextDisabled:Un}=wi;return{[`${er}-wrapper`]:Object.assign(Object.assign({},(0,un.Wf)(wi)),{[er]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${er}-select`]:{display:"inline-block"},[`${er}-disabled`]:{color:Un,cursor:"not-allowed"}})}},In=wi=>({actionsColor:wi.colorTextDescription});var mn=(0,ii.I$)("Upload",wi=>{const{fontSizeHeading3:er,fontHeight:Un,lineWidth:Wr,controlHeightLG:Qr,calc:_o}=wi,us=(0,Ii.TS)(wi,{uploadThumbnailSize:_o(er).mul(2).equal(),uploadProgressOffset:_o(_o(Un).div(2)).add(Wr).equal(),uploadPicCardSize:_o(Qr).mul(2.55).equal()});return[fr(us),ti(us),it(us),Ot(us),Ns(us),di(us),Pn(us),(0,Sr.Z)(us)]},In),Ut={icon:function(er,Un){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Un}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:er}}]}},name:"file",theme:"twotone"},en=Ut,Cn=y(93771),lr=function(er,Un){return v.createElement(Cn.Z,(0,V.Z)({},er,{ref:Un,icon:en}))},pr=v.forwardRef(lr),an=y(22508),wr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Cr=wr,Ei=function(er,Un){return v.createElement(Cn.Z,(0,V.Z)({},er,{ref:Un,icon:Cr}))},vo=v.forwardRef(Ei),kr={icon:function(er,Un){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:er}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Un}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Un}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Un}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:er}}]}},name:"picture",theme:"twotone"},ro=kr,qi=function(er,Un){return v.createElement(Cn.Z,(0,V.Z)({},er,{ref:Un,icon:ro}))},bo=v.forwardRef(qi),xn=y(82225),pn=y(57838),Dt=y(33603),Zt=y(96159),vn=y(15867);function $n(wi){return Object.assign(Object.assign({},wi),{lastModified:wi.lastModified,lastModifiedDate:wi.lastModifiedDate,name:wi.name,size:wi.size,type:wi.type,uid:wi.uid,percent:0,originFileObj:wi})}function Ar(wi,er){const Un=(0,P.Z)(er),Wr=Un.findIndex(Qr=>{let{uid:_o}=Qr;return _o===wi.uid});return Wr===-1?Un.push(wi):Un[Wr]=wi,Un}function Dr(wi,er){const Un=wi.uid!==void 0?"uid":"name";return er.filter(Wr=>Wr[Un]===wi[Un])[0]}function dr(wi,er){const Un=wi.uid!==void 0?"uid":"name",Wr=er.filter(Qr=>Qr[Un]!==wi[Un]);return Wr.length===er.length?null:Wr}const Yt=function(){const er=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Wr=er[er.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Wr)||[""])[0]},wn=wi=>wi.indexOf("image/")===0,Qn=wi=>{if(wi.type&&!wi.thumbUrl)return wn(wi.type);const er=wi.thumbUrl||wi.url||"",Un=Yt(er);return/^data:image\//.test(er)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Un)?!0:!(/^data:/.test(er)||Un)},Mr=200;function Wi(wi){return new Promise(er=>{if(!wi.type||!wn(wi.type)){er("");return}const Un=document.createElement("canvas");Un.width=Mr,Un.height=Mr,Un.style.cssText=`position: fixed; left: 0; top: 0; width: ${Mr}px; height: ${Mr}px; z-index: 9999; display: none;`,document.body.appendChild(Un);const Wr=Un.getContext("2d"),Qr=new Image;if(Qr.onload=()=>{const{width:_o,height:us}=Qr;let es=Mr,Ma=Mr,ga=0,$a=0;_o>us?(Ma=us*(Mr/_o),$a=-(Ma-es)/2):(es=_o*(Mr/us),ga=-(es-Ma)/2),Wr.drawImage(Qr,ga,$a,es,Ma);const Js=Un.toDataURL();document.body.removeChild(Un),window.URL.revokeObjectURL(Qr.src),er(Js)},Qr.crossOrigin="anonymous",wi.type.startsWith("image/svg+xml")){const _o=new FileReader;_o.onload=()=>{_o.result&&(Qr.src=_o.result)},_o.readAsDataURL(wi)}else if(wi.type.startsWith("image/gif")){const _o=new FileReader;_o.onload=()=>{_o.result&&er(_o.result)},_o.readAsDataURL(wi)}else Qr.src=window.URL.createObjectURL(wi)})}var Dn=y(47046),Kn=function(er,Un){return v.createElement(Cn.Z,(0,V.Z)({},er,{ref:Un,icon:Dn.Z}))},nr=v.forwardRef(Kn),qr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},yi=qr,Hr=function(er,Un){return v.createElement(Cn.Z,(0,V.Z)({},er,{ref:Un,icon:yi}))},ci=v.forwardRef(Hr),gi=y(7124),mi=y(76278),Bi=y(35918),Nr=y(41322),Kr=y(62208),Qi=y(98423),ns=y(1413),Ur={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},gs=function(){var er=(0,v.useRef)([]),Un=(0,v.useRef)(null);return(0,v.useEffect)(function(){var Wr=Date.now(),Qr=!1;er.current.forEach(function(_o){if(_o){Qr=!0;var us=_o.style;us.transitionDuration=".3s, .3s, .3s, .06s",Un.current&&Wr-Un.current<100&&(us.transitionDuration="0s, 0s")}}),Qr&&(Un.current=Date.now())}),er.current},Gr=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ni=function(er){var Un=(0,ns.Z)((0,ns.Z)({},Ur),er),Wr=Un.className,Qr=Un.percent,_o=Un.prefixCls,us=Un.strokeColor,es=Un.strokeLinecap,Ma=Un.strokeWidth,ga=Un.style,$a=Un.trailColor,Js=Un.trailWidth,Kl=Un.transition,ya=(0,O.Z)(Un,Gr);delete ya.gapPosition;var Ta=Array.isArray(Qr)?Qr:[Qr],Xa=Array.isArray(us)?us:[us],au=gs(),$l=Ma/2,Mu=100-Ma/2,Bl="M ".concat(es==="round"?$l:0,",").concat($l,` + L `).concat(es==="round"?Mu:100,",").concat($l),Sl="0 0 100 ".concat(Ma),Tn=0;return v.createElement("svg",(0,V.Z)({className:B()("".concat(_o,"-line"),Wr),viewBox:Sl,preserveAspectRatio:"none",style:ga},ya),v.createElement("path",{className:"".concat(_o,"-line-trail"),d:Bl,strokeLinecap:es,stroke:$a,strokeWidth:Js||Ma,fillOpacity:"0"}),Ta.map(function(nc,Iu){var Ic=1;switch(es){case"round":Ic=1-Ma/100;break;case"square":Ic=1-Ma/2/100;break;default:Ic=1;break}var Vc={strokeDasharray:"".concat(nc*Ic,"px, 100px"),strokeDashoffset:"-".concat(Tn,"px"),transition:Kl||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},dh=Xa[Iu]||Xa[Xa.length-1];return Tn+=nc,v.createElement("path",{key:Iu,className:"".concat(_o,"-line-path"),d:Bl,strokeLinecap:es,stroke:dh,strokeWidth:Ma,fillOpacity:"0",ref:function(vd){au[Iu]=vd},style:Vc})}))},is=ni,Jr=y(97685),bn=y(98924),Or=0,qo=(0,bn.Z)();function Mo(){var wi;return qo?(wi=Or,Or+=1):wi="TEST_OR_SSR",wi}var vs=function(wi){var er=v.useState(),Un=(0,Jr.Z)(er,2),Wr=Un[0],Qr=Un[1];return v.useEffect(function(){Qr("rc_progress_".concat(Mo()))},[]),wi||Wr},Na=function(er){var Un=er.bg,Wr=er.children;return v.createElement("div",{style:{width:"100%",height:"100%",background:Un}},Wr)};function ho(wi,er){return Object.keys(wi).map(function(Un){var Wr=parseFloat(Un),Qr="".concat(Math.floor(Wr*er),"%");return"".concat(wi[Un]," ").concat(Qr)})}var aa=v.forwardRef(function(wi,er){var Un=wi.prefixCls,Wr=wi.color,Qr=wi.gradientId,_o=wi.radius,us=wi.style,es=wi.ptg,Ma=wi.strokeLinecap,ga=wi.strokeWidth,$a=wi.size,Js=wi.gapDegree,Kl=Wr&&(0,he.Z)(Wr)==="object",ya=Kl?"#FFF":void 0,Ta=$a/2,Xa=v.createElement("circle",{className:"".concat(Un,"-circle-path"),r:_o,cx:Ta,cy:Ta,stroke:ya,strokeLinecap:Ma,strokeWidth:ga,opacity:es===0?0:1,style:us,ref:er});if(!Kl)return Xa;var au="".concat(Qr,"-conic"),$l=Js?"".concat(180+Js/2,"deg"):"0deg",Mu=ho(Wr,(360-Js)/360),Bl=ho(Wr,1),Sl="conic-gradient(from ".concat($l,", ").concat(Mu.join(", "),")"),Tn="linear-gradient(to ".concat(Js?"bottom":"top",", ").concat(Bl.join(", "),")");return v.createElement(v.Fragment,null,v.createElement("mask",{id:au},Xa),v.createElement("foreignObject",{x:0,y:0,width:$a,height:$a,mask:"url(#".concat(au,")")},v.createElement(Na,{bg:Tn},v.createElement(Na,{bg:Sl}))))}),Ka=aa,Si=100,Pi=function(er,Un,Wr,Qr,_o,us,es,Ma,ga,$a){var Js=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Kl=Wr/100*360*((360-us)/360),ya=us===0?0:{bottom:0,top:180,left:90,right:-90}[es],Ta=(100-Qr)/100*Un;ga==="round"&&Qr!==100&&(Ta+=$a/2,Ta>=Un&&(Ta=Un-.01));var Xa=Si/2;return{stroke:typeof Ma=="string"?Ma:void 0,strokeDasharray:"".concat(Un,"px ").concat(er),strokeDashoffset:Ta+Js,transform:"rotate(".concat(_o+Kl+ya,"deg)"),transformOrigin:"".concat(Xa,"px ").concat(Xa,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},to=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function So(wi){var er=wi!=null?wi:[];return Array.isArray(er)?er:[er]}var ps=function(er){var Un=(0,ns.Z)((0,ns.Z)({},Ur),er),Wr=Un.id,Qr=Un.prefixCls,_o=Un.steps,us=Un.strokeWidth,es=Un.trailWidth,Ma=Un.gapDegree,ga=Ma===void 0?0:Ma,$a=Un.gapPosition,Js=Un.trailColor,Kl=Un.strokeLinecap,ya=Un.style,Ta=Un.className,Xa=Un.strokeColor,au=Un.percent,$l=(0,O.Z)(Un,to),Mu=Si/2,Bl=vs(Wr),Sl="".concat(Bl,"-gradient"),Tn=Mu-us/2,nc=Math.PI*2*Tn,Iu=ga>0?90+ga/2:-90,Ic=nc*((360-ga)/360),Vc=(0,he.Z)(_o)==="object"?_o:{count:_o,space:2},dh=Vc.count,Nc=Vc.space,vd=So(au),Th=So(Xa),Gd=Th.find(function(Qd){return Qd&&(0,he.Z)(Qd)==="object"}),yd=Gd&&(0,he.Z)(Gd)==="object",Mc=yd?"butt":Kl,Kd=Pi(nc,Ic,0,100,Iu,ga,$a,Js,Mc,us),Vf=gs(),jf=function(){var Md=0;return vd.map(function(jh,Bs){var Ua=Th[Bs]||Th[Th.length-1],Ya=Pi(nc,Ic,Md,jh,Iu,ga,$a,Ua,Mc,us);return Md+=jh,v.createElement(Ka,{key:Bs,color:Ua,ptg:jh,radius:Tn,prefixCls:Qr,gradientId:Sl,style:Ya,strokeLinecap:Mc,strokeWidth:us,gapDegree:ga,ref:function(ou){Vf[Bs]=ou},size:Si})}).reverse()},_d=function(){var Md=Math.round(dh*(vd[0]/100)),jh=100/dh,Bs=0;return new Array(dh).fill(null).map(function(Ua,Ya){var ml=Ya<=Md-1?Th[0]:Js,ou=ml&&(0,he.Z)(ml)==="object"?"url(#".concat(Sl,")"):void 0,ac=Pi(nc,Ic,Bs,jh,Iu,ga,$a,ml,"butt",us,Nc);return Bs+=(Ic-ac.strokeDashoffset+Nc)*100/Ic,v.createElement("circle",{key:Ya,className:"".concat(Qr,"-circle-path"),r:Tn,cx:Mu,cy:Mu,stroke:ou,strokeWidth:us,opacity:1,style:ac,ref:function(uc){Vf[Ya]=uc}})})};return v.createElement("svg",(0,V.Z)({className:B()("".concat(Qr,"-circle"),Ta),viewBox:"0 0 ".concat(Si," ").concat(Si),style:ya,id:Wr,role:"presentation"},$l),!dh&&v.createElement("circle",{className:"".concat(Qr,"-circle-trail"),r:Tn,cx:Mu,cy:Mu,stroke:Js,strokeLinecap:Mc,strokeWidth:es||us,style:Kd}),dh?_d():jf())},Wn=ps,yo={Line:is,Circle:Wn},Qo=y(61781);function ss(wi){return!wi||wi<0?0:wi>100?100:wi}function Ko(wi){let{success:er,successPercent:Un}=wi,Wr=Un;return er&&"progress"in er&&(Wr=er.progress),er&&"percent"in er&&(Wr=er.percent),Wr}const Xn=wi=>{let{percent:er,success:Un,successPercent:Wr}=wi;const Qr=ss(Ko({success:Un,successPercent:Wr}));return[Qr,ss(ss(er)-Qr)]},Rr=wi=>{let{success:er={},strokeColor:Un}=wi;const{strokeColor:Wr}=er;return[Wr||Fs.ez.green,Un||null]},Xr=(wi,er,Un)=>{var Wr,Qr,_o,us;let es=-1,Ma=-1;if(er==="step"){const ga=Un.steps,$a=Un.strokeWidth;typeof wi=="string"||typeof wi=="undefined"?(es=wi==="small"?2:14,Ma=$a!=null?$a:8):typeof wi=="number"?[es,Ma]=[wi,wi]:[es=14,Ma=8]=wi,es*=ga}else if(er==="line"){const ga=Un==null?void 0:Un.strokeWidth;typeof wi=="string"||typeof wi=="undefined"?Ma=ga||(wi==="small"?6:8):typeof wi=="number"?[es,Ma]=[wi,wi]:[es=-1,Ma=8]=wi}else(er==="circle"||er==="dashboard")&&(typeof wi=="string"||typeof wi=="undefined"?[es,Ma]=wi==="small"?[60,60]:[120,120]:typeof wi=="number"?[es,Ma]=[wi,wi]:(es=(Qr=(Wr=wi[0])!==null&&Wr!==void 0?Wr:wi[1])!==null&&Qr!==void 0?Qr:120,Ma=(us=(_o=wi[0])!==null&&_o!==void 0?_o:wi[1])!==null&&us!==void 0?us:120));return[es,Ma]},Ze=3,ht=wi=>Ze/wi*100;var $e=wi=>{const{prefixCls:er,trailColor:Un=null,strokeLinecap:Wr="round",gapPosition:Qr,gapDegree:_o,width:us=120,type:es,children:Ma,success:ga,size:$a=us}=wi,[Js,Kl]=Xr($a,"circle");let{strokeWidth:ya}=wi;ya===void 0&&(ya=Math.max(ht(Js),6));const Ta={width:Js,height:Kl,fontSize:Js*.15+6},Xa=v.useMemo(()=>{if(_o||_o===0)return _o;if(es==="dashboard")return 75},[_o,es]),au=Qr||es==="dashboard"&&"bottom"||void 0,$l=Object.prototype.toString.call(wi.strokeColor)==="[object Object]",Mu=Rr({success:ga,strokeColor:wi.strokeColor}),Bl=B()(`${er}-inner`,{[`${er}-circle-gradient`]:$l}),Sl=v.createElement(Wn,{percent:Xn(wi),strokeWidth:ya,trailWidth:ya,strokeColor:Mu,strokeLinecap:Wr,trailColor:Un,prefixCls:er,gapDegree:Xa,gapPosition:au});return v.createElement("div",{className:Bl,style:Ta},Js<=20?v.createElement(Qo.Z,{title:Ma},v.createElement("span",null,Sl)):v.createElement(v.Fragment,null,Sl,Ma))},ft=function(wi,er){var Un={};for(var Wr in wi)Object.prototype.hasOwnProperty.call(wi,Wr)&&er.indexOf(Wr)<0&&(Un[Wr]=wi[Wr]);if(wi!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qr=0,Wr=Object.getOwnPropertySymbols(wi);Qr{let er=[];return Object.keys(wi).forEach(Un=>{const Wr=parseFloat(Un.replace(/%/g,""));isNaN(Wr)||er.push({key:Wr,value:wi[Un]})}),er=er.sort((Un,Wr)=>Un.key-Wr.key),er.map(Un=>{let{key:Wr,value:Qr}=Un;return`${Qr} ${Wr}%`}).join(", ")},gn=(wi,er)=>{const{from:Un=Fs.ez.blue,to:Wr=Fs.ez.blue,direction:Qr=er==="rtl"?"to left":"to right"}=wi,_o=ft(wi,["from","to","direction"]);if(Object.keys(_o).length!==0){const us=Lt(_o);return{backgroundImage:`linear-gradient(${Qr}, ${us})`}}return{backgroundImage:`linear-gradient(${Qr}, ${Un}, ${Wr})`}};var zr=wi=>{const{prefixCls:er,direction:Un,percent:Wr,size:Qr,strokeWidth:_o,strokeColor:us,strokeLinecap:es="round",children:Ma,trailColor:ga=null,success:$a}=wi,{direction:Js}=(0,v.useContext)(lt.E_),Kl=us&&typeof us!="string"?gn(us,Un):{backgroundColor:us},ya=es==="square"||es==="butt"?0:void 0,Ta={backgroundColor:ga||void 0,borderRadius:ya},Xa=Qr!=null?Qr:[-1,_o||(Qr==="small"?6:8)],[au,$l]=Xr(Xa,"line",{strokeWidth:_o}),Mu=Object.assign({width:"100%",height:$l,borderRadius:ya,clipPath:Js==="rtl"?`inset(0 0 0 ${100-ss(Wr)}% round 100px)`:`inset(0 ${100-ss(Wr)}% 0 0 round 100px)`},Kl),Bl=Ko(wi),Sl={width:"100%",height:$l,borderRadius:ya,clipPath:Js==="rtl"?`inset(0 0 0 ${100-ss(Bl)}% round 100px)`:`inset(0 ${100-ss(Bl)}% 0 0 round 100px)`,backgroundColor:$a==null?void 0:$a.strokeColor},Tn={width:au<0?"100%":au,height:$l};return v.createElement(v.Fragment,null,v.createElement("div",{className:`${er}-outer`,style:Tn},v.createElement("div",{className:`${er}-inner`,style:Ta},v.createElement("div",{className:`${er}-bg`,style:Mu}),Bl!==void 0?v.createElement("div",{className:`${er}-success-bg`,style:Sl}):null)),Ma)},xo=wi=>{const{size:er,steps:Un,percent:Wr=0,strokeWidth:Qr=8,strokeColor:_o,trailColor:us=null,prefixCls:es,children:Ma}=wi,ga=Math.round(Un*(Wr/100)),$a=er==="small"?2:14,Js=er!=null?er:[$a,Qr],[Kl,ya]=Xr(Js,"step",{steps:Un,strokeWidth:Qr}),Ta=Kl/Un,Xa=new Array(Un);for(let au=0;au{const er=wi?"100%":"-100%";return new Ni.E4(`antProgress${wi?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${er}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${er}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},zs=wi=>{const{componentCls:er,iconCls:Un}=wi;return{[er]:Object.assign(Object.assign({},(0,un.Wf)(wi)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:wi.fontSize,marginInlineEnd:wi.marginXS,marginBottom:wi.marginXS},[`${er}-outer`]:{display:"inline-block",width:"100%"},[`&${er}-show-info`]:{[`${er}-outer`]:{marginInlineEnd:`calc(-2em - ${(0,Ni.bf)(wi.marginXS)})`,paddingInlineEnd:`calc(2em + ${(0,Ni.bf)(wi.paddingXS)})`}},[`${er}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:wi.remainingColor,borderRadius:wi.lineBorderRadius},[`${er}-inner:not(${er}-circle-gradient)`]:{[`${er}-circle-path`]:{stroke:wi.defaultColor}},[`${er}-success-bg, ${er}-bg`]:{position:"relative",backgroundColor:wi.defaultColor,borderRadius:wi.lineBorderRadius,transition:`all ${wi.motionDurationSlow} ${wi.motionEaseInOutCirc}`},[`${er}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:wi.colorSuccess},[`${er}-text`]:{display:"inline-block",width:"2em",marginInlineStart:wi.marginXS,color:wi.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Un]:{fontSize:wi.fontSize}},[`&${er}-status-active`]:{[`${er}-bg::before`]:{position:"absolute",inset:0,backgroundColor:wi.colorBgContainer,borderRadius:wi.lineBorderRadius,opacity:0,animationName:Vi(),animationDuration:wi.progressActiveMotionDuration,animationTimingFunction:wi.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${er}-rtl${er}-status-active`]:{[`${er}-bg::before`]:{animationName:Vi(!0)}},[`&${er}-status-exception`]:{[`${er}-bg`]:{backgroundColor:wi.colorError},[`${er}-text`]:{color:wi.colorError}},[`&${er}-status-exception ${er}-inner:not(${er}-circle-gradient)`]:{[`${er}-circle-path`]:{stroke:wi.colorError}},[`&${er}-status-success`]:{[`${er}-bg`]:{backgroundColor:wi.colorSuccess},[`${er}-text`]:{color:wi.colorSuccess}},[`&${er}-status-success ${er}-inner:not(${er}-circle-gradient)`]:{[`${er}-circle-path`]:{stroke:wi.colorSuccess}}})}},Ps=wi=>{const{componentCls:er,iconCls:Un}=wi;return{[er]:{[`${er}-circle-trail`]:{stroke:wi.remainingColor},[`&${er}-circle ${er}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${er}-circle ${er}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:wi.circleTextColor,fontSize:wi.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Un]:{fontSize:wi.circleIconFontSize}},[`${er}-circle&-status-exception`]:{[`${er}-text`]:{color:wi.colorError}},[`${er}-circle&-status-success`]:{[`${er}-text`]:{color:wi.colorSuccess}}},[`${er}-inline-circle`]:{lineHeight:1,[`${er}-inner`]:{verticalAlign:"bottom"}}}},Ms=wi=>{const{componentCls:er}=wi;return{[er]:{[`${er}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:wi.progressStepMinWidth,marginInlineEnd:wi.progressStepMarginInlineEnd,backgroundColor:wi.remainingColor,transition:`all ${wi.motionDurationSlow}`,"&-active":{backgroundColor:wi.defaultColor}}}}}},ks=wi=>{const{componentCls:er,iconCls:Un}=wi;return{[er]:{[`${er}-small&-line, ${er}-small&-line ${er}-text ${Un}`]:{fontSize:wi.fontSizeSM}}}},ko=wi=>({circleTextColor:wi.colorText,defaultColor:wi.colorInfo,remainingColor:wi.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${wi.fontSize/wi.fontSizeSM}em`});var As=(0,ii.I$)("Progress",wi=>{const er=wi.calc(wi.marginXXS).div(2).equal(),Un=(0,Ii.TS)(wi,{progressStepMarginInlineEnd:er,progressStepMinWidth:er,progressActiveMotionDuration:"2.4s"});return[zs(Un),Ps(Un),Ms(Un),ks(Un)]},ko),ia=function(wi,er){var Un={};for(var Wr in wi)Object.prototype.hasOwnProperty.call(wi,Wr)&&er.indexOf(Wr)<0&&(Un[Wr]=wi[Wr]);if(wi!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qr=0,Wr=Object.getOwnPropertySymbols(wi);Qr{const{prefixCls:Un,className:Wr,rootClassName:Qr,steps:_o,strokeColor:us,percent:es=0,size:Ma="default",showInfo:ga=!0,type:$a="line",status:Js,format:Kl,style:ya}=wi,Ta=ia(wi,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Xa=v.useMemo(()=>{var vd,Th;const Gd=Ko(wi);return parseInt(Gd!==void 0?(vd=Gd!=null?Gd:0)===null||vd===void 0?void 0:vd.toString():(Th=es!=null?es:0)===null||Th===void 0?void 0:Th.toString(),10)},[es,wi.success,wi.successPercent]),au=v.useMemo(()=>!Zl.includes(Js)&&Xa>=100?"success":Js||"normal",[Js,Xa]),{getPrefixCls:$l,direction:Mu,progress:Bl}=v.useContext(lt.E_),Sl=$l("progress",Un),[Tn,nc]=As(Sl),Iu=v.useMemo(()=>{if(!ga)return null;const vd=Ko(wi);let Th;const Gd=Kl||(Mc=>`${Mc}%`),yd=$a==="line";return Kl||au!=="exception"&&au!=="success"?Th=Gd(ss(es),ss(vd)):au==="exception"?Th=yd?v.createElement(Nr.Z,null):v.createElement(Kr.Z,null):au==="success"&&(Th=yd?v.createElement(mi.Z,null):v.createElement(Bi.Z,null)),v.createElement("span",{className:`${Sl}-text`,title:typeof Th=="string"?Th:void 0},Th)},[ga,es,Xa,au,$a,Sl,Kl]),Ic=Array.isArray(us)?us[0]:us,Vc=typeof us=="string"||Array.isArray(us)?us:void 0;let dh;$a==="line"?dh=_o?v.createElement(xo,Object.assign({},wi,{strokeColor:Vc,prefixCls:Sl,steps:_o}),Iu):v.createElement(zr,Object.assign({},wi,{strokeColor:Ic,prefixCls:Sl,direction:Mu}),Iu):($a==="circle"||$a==="dashboard")&&(dh=v.createElement($e,Object.assign({},wi,{strokeColor:Ic,prefixCls:Sl,progressStatus:au}),Iu));const Nc=B()(Sl,`${Sl}-status-${au}`,`${Sl}-${$a==="dashboard"&&"circle"||_o&&"steps"||$a}`,{[`${Sl}-inline-circle`]:$a==="circle"&&Xr(Ma,"circle")[0]<=20,[`${Sl}-show-info`]:ga,[`${Sl}-${Ma}`]:typeof Ma=="string",[`${Sl}-rtl`]:Mu==="rtl"},Bl==null?void 0:Bl.className,Wr,Qr,nc);return Tn(v.createElement("div",Object.assign({ref:er,style:Object.assign(Object.assign({},Bl==null?void 0:Bl.style),ya),className:Nc,role:"progressbar","aria-valuenow":Xa},(0,Qi.Z)(Ta,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),dh))}),js=fs,Xo=v.forwardRef((wi,er)=>{let{prefixCls:Un,className:Wr,style:Qr,locale:_o,listType:us,file:es,items:Ma,progress:ga,iconRender:$a,actionIconRender:Js,itemRender:Kl,isImgUrl:ya,showPreviewIcon:Ta,showRemoveIcon:Xa,showDownloadIcon:au,previewIcon:$l,removeIcon:Mu,downloadIcon:Bl,onPreview:Sl,onDownload:Tn,onClose:nc}=wi;var Iu,Ic;const{status:Vc}=es,[dh,Nc]=v.useState(Vc);v.useEffect(()=>{Vc!=="removed"&&Nc(Vc)},[Vc]);const[vd,Th]=v.useState(!1);v.useEffect(()=>{const uc=setTimeout(()=>{Th(!0)},300);return()=>{clearTimeout(uc)}},[]);const Gd=$a(es);let yd=v.createElement("div",{className:`${Un}-icon`},Gd);if(us==="picture"||us==="picture-card"||us==="picture-circle")if(dh==="uploading"||!es.thumbUrl&&!es.url){const uc=B()(`${Un}-list-item-thumbnail`,{[`${Un}-list-item-file`]:dh!=="uploading"});yd=v.createElement("div",{className:uc},Gd)}else{const uc=ya!=null&&ya(es)?v.createElement("img",{src:es.thumbUrl||es.url,alt:es.name,className:`${Un}-list-item-image`,crossOrigin:es.crossOrigin}):Gd,Gu=B()(`${Un}-list-item-thumbnail`,{[`${Un}-list-item-file`]:ya&&!ya(es)});yd=v.createElement("a",{className:Gu,onClick:Ol=>Sl(es,Ol),href:es.url||es.thumbUrl,target:"_blank",rel:"noopener noreferrer"},uc)}const Mc=B()(`${Un}-list-item`,`${Un}-list-item-${dh}`),Kd=typeof es.linkProps=="string"?JSON.parse(es.linkProps):es.linkProps,Vf=Xa?Js((typeof Mu=="function"?Mu(es):Mu)||v.createElement(nr,null),()=>nc(es),Un,_o.removeFile):null,jf=au&&dh==="done"?Js((typeof Bl=="function"?Bl(es):Bl)||v.createElement(ci,null),()=>Tn(es),Un,_o.downloadFile):null,_d=us!=="picture-card"&&us!=="picture-circle"&&v.createElement("span",{key:"download-delete",className:B()(`${Un}-list-item-actions`,{picture:us==="picture"})},jf,Vf),Qd=B()(`${Un}-list-item-name`),Md=es.url?[v.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Qd,title:es.name},Kd,{href:es.url,onClick:uc=>Sl(es,uc)}),es.name),_d]:[v.createElement("span",{key:"view",className:Qd,onClick:uc=>Sl(es,uc),title:es.name},es.name),_d],jh={pointerEvents:"none",opacity:.5},Bs=Ta?v.createElement("a",{href:es.url||es.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:es.url||es.thumbUrl?void 0:jh,onClick:uc=>Sl(es,uc),title:_o.previewFile},typeof $l=="function"?$l(es):$l||v.createElement(gi.Z,null)):null,Ua=(us==="picture-card"||us==="picture-circle")&&dh!=="uploading"&&v.createElement("span",{className:`${Un}-list-item-actions`},Bs,dh==="done"&&jf,Vf),{getPrefixCls:Ya}=v.useContext(lt.E_),ml=Ya(),ou=v.createElement("div",{className:Mc},yd,Md,Ua,vd&&v.createElement(xn.ZP,{motionName:`${ml}-fade`,visible:dh==="uploading",motionDeadline:2e3},uc=>{let{className:Gu}=uc;const Ol="percent"in es?v.createElement(js,Object.assign({},ga,{type:"line",percent:es.percent,"aria-label":es["aria-label"],"aria-labelledby":es["aria-labelledby"]})):null;return v.createElement("div",{className:B()(`${Un}-list-item-progress`,Gu)},Ol)})),ac=es.response&&typeof es.response=="string"?es.response:((Iu=es.error)===null||Iu===void 0?void 0:Iu.statusText)||((Ic=es.error)===null||Ic===void 0?void 0:Ic.message)||_o.uploadError,ju=dh==="error"?v.createElement(Qo.Z,{title:ac,getPopupContainer:uc=>uc.parentNode},ou):ou;return v.createElement("div",{className:B()(`${Un}-list-item-container`,Wr),style:Qr,ref:er},Kl?Kl(ju,es,Ma,{download:Tn.bind(null,es),preview:Sl.bind(null,es),remove:nc.bind(null,es)}):ju)});const Li=(wi,er)=>{const{listType:Un="text",previewFile:Wr=Wi,onPreview:Qr,onDownload:_o,onRemove:us,locale:es,iconRender:Ma,isImageUrl:ga=Qn,prefixCls:$a,items:Js=[],showPreviewIcon:Kl=!0,showRemoveIcon:ya=!0,showDownloadIcon:Ta=!1,removeIcon:Xa,previewIcon:au,downloadIcon:$l,progress:Mu={size:[-1,2],showInfo:!1},appendAction:Bl,appendActionVisible:Sl=!0,itemRender:Tn,disabled:nc}=wi,Iu=(0,pn.Z)(),[Ic,Vc]=v.useState(!1);v.useEffect(()=>{Un!=="picture"&&Un!=="picture-card"&&Un!=="picture-circle"||(Js||[]).forEach(jh=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(jh.originFileObj instanceof File||jh.originFileObj instanceof Blob)||jh.thumbUrl!==void 0||(jh.thumbUrl="",Wr&&Wr(jh.originFileObj).then(Bs=>{jh.thumbUrl=Bs||"",Iu()}))})},[Un,Js,Wr]),v.useEffect(()=>{Vc(!0)},[]);const dh=(jh,Bs)=>{if(Qr)return Bs==null||Bs.preventDefault(),Qr(jh)},Nc=jh=>{typeof _o=="function"?_o(jh):jh.url&&window.open(jh.url)},vd=jh=>{us==null||us(jh)},Th=jh=>{if(Ma)return Ma(jh,Un);const Bs=jh.status==="uploading",Ua=ga&&ga(jh)?v.createElement(bo,null):v.createElement(pr,null);let Ya=Bs?v.createElement(an.Z,null):v.createElement(vo,null);return Un==="picture"?Ya=Bs?v.createElement(an.Z,null):Ua:(Un==="picture-card"||Un==="picture-circle")&&(Ya=Bs?es.uploading:Ua),Ya},Gd=(jh,Bs,Ua,Ya)=>{const ml={type:"text",size:"small",title:Ya,onClick:ou=>{Bs(),(0,Zt.l$)(jh)&&jh.props.onClick&&jh.props.onClick(ou)},className:`${Ua}-list-item-action`,disabled:nc};if((0,Zt.l$)(jh)){const ou=(0,Zt.Tm)(jh,Object.assign(Object.assign({},jh.props),{onClick:()=>{}}));return v.createElement(vn.ZP,Object.assign({},ml,{icon:ou}))}return v.createElement(vn.ZP,Object.assign({},ml),v.createElement("span",null,jh))};v.useImperativeHandle(er,()=>({handlePreview:dh,handleDownload:Nc}));const{getPrefixCls:yd}=v.useContext(lt.E_),Mc=yd("upload",$a),Kd=yd(),Vf=B()(`${Mc}-list`,`${Mc}-list-${Un}`),jf=(0,P.Z)(Js.map(jh=>({key:jh.uid,file:jh})));let Qd={motionDeadline:2e3,motionName:`${Mc}-${Un==="picture-card"||Un==="picture-circle"?"animate-inline":"animate"}`,keys:jf,motionAppear:Ic};const Md=v.useMemo(()=>{const jh=Object.assign({},(0,Dt.Z)(Kd));return delete jh.onAppearEnd,delete jh.onEnterEnd,delete jh.onLeaveEnd,jh},[Kd]);return Un!=="picture-card"&&Un!=="picture-circle"&&(Qd=Object.assign(Object.assign({},Md),Qd)),v.createElement("div",{className:Vf},v.createElement(xn.V4,Object.assign({},Qd,{component:!1}),jh=>{let{key:Bs,file:Ua,className:Ya,style:ml}=jh;return v.createElement(Xo,{key:Bs,locale:es,prefixCls:Mc,className:Ya,style:ml,file:Ua,items:Js,progress:Mu,listType:Un,isImgUrl:ga,showPreviewIcon:Kl,showRemoveIcon:ya,showDownloadIcon:Ta,removeIcon:Xa,previewIcon:au,downloadIcon:$l,iconRender:Th,actionIconRender:Gd,itemRender:Tn,onPreview:dh,onDownload:Nc,onClose:vd})}),Bl&&v.createElement(xn.ZP,Object.assign({},Qd,{visible:Sl,forceRender:!0}),jh=>{let{className:Bs,style:Ua}=jh;return(0,Zt.Tm)(Bl,Ya=>({className:B()(Ya.className,Bs),style:Object.assign(Object.assign(Object.assign({},Ua),{pointerEvents:Bs?"none":void 0}),Ya.style)}))}))};var Os=v.forwardRef(Li),Cs=function(wi,er,Un,Wr){function Qr(_o){return _o instanceof Un?_o:new Un(function(us){us(_o)})}return new(Un||(Un=Promise))(function(_o,us){function es($a){try{ga(Wr.next($a))}catch(Js){us(Js)}}function Ma($a){try{ga(Wr.throw($a))}catch(Js){us(Js)}}function ga($a){$a.done?_o($a.value):Qr($a.value).then(es,Ma)}ga((Wr=Wr.apply(wi,er||[])).next())})};const ba=`__LIST_IGNORE_${Date.now()}__`,Yu=(wi,er)=>{const{fileList:Un,defaultFileList:Wr,onRemove:Qr,showUploadList:_o=!0,listType:us="text",onPreview:es,onDownload:Ma,onChange:ga,onDrop:$a,previewFile:Js,disabled:Kl,locale:ya,iconRender:Ta,isImageUrl:Xa,progress:au,prefixCls:$l,className:Mu,type:Bl="select",children:Sl,style:Tn,itemRender:nc,maxCount:Iu,data:Ic={},multiple:Vc=!1,action:dh="",accept:Nc="",supportServerRender:vd=!0,rootClassName:Th}=wi,Gd=v.useContext(Kt.Z),yd=Kl!=null?Kl:Gd,[Mc,Kd]=(0,wt.Z)(Wr||[],{value:Un,postState:Dl=>Dl!=null?Dl:[]}),[Vf,jf]=v.useState("drop"),_d=v.useRef(null);v.useMemo(()=>{const Dl=Date.now();(Un||[]).forEach((uu,Au)=>{!uu.uid&&!Object.isFrozen(uu)&&(uu.uid=`__AUTO__${Dl}_${Au}__`)})},[Un]);const Qd=(Dl,uu,Au)=>{let xc=(0,P.Z)(uu),yh=!1;Iu===1?xc=xc.slice(-1):Iu&&(yh=xc.length>Iu,xc=xc.slice(0,Iu)),(0,w.flushSync)(()=>{Kd(xc)});const xh={file:Dl,fileList:xc};Au&&(xh.event=Au),(!yh||xc.some(ef=>ef.uid===Dl.uid))&&(0,w.flushSync)(()=>{ga==null||ga(xh)})},Md=(Dl,uu)=>Cs(void 0,void 0,void 0,function*(){const{beforeUpload:Au,transformFile:xc}=wi;let yh=Dl;if(Au){const xh=yield Au(Dl,uu);if(xh===!1)return!1;if(delete Dl[ba],xh===ba)return Object.defineProperty(Dl,ba,{value:!0,configurable:!0}),!1;typeof xh=="object"&&xh&&(yh=xh)}return xc&&(yh=yield xc(yh)),yh}),jh=Dl=>{const uu=Dl.filter(yh=>!yh.file[ba]);if(!uu.length)return;const Au=uu.map(yh=>$n(yh.file));let xc=(0,P.Z)(Mc);Au.forEach(yh=>{xc=Ar(yh,xc)}),Au.forEach((yh,xh)=>{let ef=yh;if(uu[xh].parsedFile)yh.status="uploading";else{const{originFileObj:qd}=yh;let ld;try{ld=new File([qd],qd.name,{type:qd.type})}catch(hf){ld=new Blob([qd],{type:qd.type}),ld.name=qd.name,ld.lastModifiedDate=new Date,ld.lastModified=new Date().getTime()}ld.uid=yh.uid,ef=ld}Qd(ef,xc)})},Bs=(Dl,uu,Au)=>{try{typeof Dl=="string"&&(Dl=JSON.parse(Dl))}catch(xh){}if(!Dr(uu,Mc))return;const xc=$n(uu);xc.status="done",xc.percent=100,xc.response=Dl,xc.xhr=Au;const yh=Ar(xc,Mc);Qd(xc,yh)},Ua=(Dl,uu)=>{if(!Dr(uu,Mc))return;const Au=$n(uu);Au.status="uploading",Au.percent=Dl.percent;const xc=Ar(Au,Mc);Qd(Au,xc,Dl)},Ya=(Dl,uu,Au)=>{if(!Dr(Au,Mc))return;const xc=$n(Au);xc.error=Dl,xc.response=uu,xc.status="error";const yh=Ar(xc,Mc);Qd(xc,yh)},ml=Dl=>{let uu;Promise.resolve(typeof Qr=="function"?Qr(Dl):Qr).then(Au=>{var xc;if(Au===!1)return;const yh=dr(Dl,Mc);yh&&(uu=Object.assign(Object.assign({},Dl),{status:"removed"}),Mc==null||Mc.forEach(xh=>{const ef=uu.uid!==void 0?"uid":"name";xh[ef]===uu[ef]&&!Object.isFrozen(xh)&&(xh.status="removed")}),(xc=_d.current)===null||xc===void 0||xc.abort(uu),Qd(uu,yh))})},ou=Dl=>{jf(Dl.type),Dl.type==="drop"&&($a==null||$a(Dl))};v.useImperativeHandle(er,()=>({onBatchStart:jh,onSuccess:Bs,onProgress:Ua,onError:Ya,fileList:Mc,upload:_d.current}));const{getPrefixCls:ac,direction:ju,upload:uc}=v.useContext(lt.E_),Gu=ac("upload",$l),Ol=Object.assign(Object.assign({onBatchStart:jh,onError:Ya,onProgress:Ua,onSuccess:Bs},wi),{data:Ic,multiple:Vc,action:dh,accept:Nc,supportServerRender:vd,prefixCls:Gu,disabled:yd,beforeUpload:Md,onChange:void 0});delete Ol.className,delete Ol.style,(!Sl||yd)&&delete Ol.id;const Nu=`${Gu}-wrapper`,[qc,fh]=mn(Gu,Nu),[Qh]=(0,Mt.Z)("Upload",hn.Z.Upload),{showRemoveIcon:Bd,showPreviewIcon:Hh,showDownloadIcon:Cd,removeIcon:Ah,previewIcon:bh,downloadIcon:su}=typeof _o=="boolean"?{}:_o,nd=typeof Bd=="undefined"?!yd:!!Bd,el=(Dl,uu)=>_o?v.createElement(Os,{prefixCls:Gu,listType:us,items:Mc,previewFile:Js,onPreview:es,onDownload:Ma,onRemove:ml,showRemoveIcon:nd,showPreviewIcon:Hh,showDownloadIcon:Cd,removeIcon:Ah,previewIcon:bh,downloadIcon:su,iconRender:Ta,locale:Object.assign(Object.assign({},Qh),ya),isImageUrl:Xa,progress:au,appendAction:Dl,appendActionVisible:uu,itemRender:nc,disabled:yd}):Dl,pu=B()(Nu,Mu,Th,fh,uc==null?void 0:uc.className,{[`${Gu}-rtl`]:ju==="rtl",[`${Gu}-picture-card-wrapper`]:us==="picture-card",[`${Gu}-picture-circle-wrapper`]:us==="picture-circle"}),mh=Object.assign(Object.assign({},uc==null?void 0:uc.style),Tn);if(Bl==="drag"){const Dl=B()(fh,Gu,`${Gu}-drag`,{[`${Gu}-drag-uploading`]:Mc.some(uu=>uu.status==="uploading"),[`${Gu}-drag-hover`]:Vf==="dragover",[`${Gu}-disabled`]:yd,[`${Gu}-rtl`]:ju==="rtl"});return qc(v.createElement("span",{className:pu},v.createElement("div",{className:Dl,style:mh,onDrop:ou,onDragOver:ou,onDragLeave:ou},v.createElement(nt,Object.assign({},Ol,{ref:_d,className:`${Gu}-btn`}),v.createElement("div",{className:`${Gu}-drag-container`},Sl))),el()))}const Ud=B()(Gu,`${Gu}-select`,{[`${Gu}-disabled`]:yd}),mu=(Dl=>v.createElement("div",{className:Ud,style:Dl},v.createElement(nt,Object.assign({},Ol,{ref:_d}))))(Sl?void 0:{display:"none"});return qc(us==="picture-card"||us==="picture-circle"?v.createElement("span",{className:pu},el(mu,!!Sl)):v.createElement("span",{className:pu},mu,el()))};var Hu=v.forwardRef(Yu),wh=function(wi,er){var Un={};for(var Wr in wi)Object.prototype.hasOwnProperty.call(wi,Wr)&&er.indexOf(Wr)<0&&(Un[Wr]=wi[Wr]);if(wi!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qr=0,Wr=Object.getOwnPropertySymbols(wi);Qr{var{style:Un,height:Wr}=wi,Qr=wh(wi,["style","height"]);return v.createElement(Hu,Object.assign({ref:er},Qr,{type:"drag",style:Object.assign(Object.assign({},Un),{height:Wr})}))});const ru=Hu;ru.Dragger=fu,ru.LIST_IGNORE=ba;var Tu=ru},1028:function(yt,Y,y){"use strict";var v=y(64836).default;Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;var P=v(y(25633)),w=Y.default=P.default},80037:function(yt,Y,y){"use strict";var v=y(64836).default;Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;var P=v(y(5584)),w=Y.default=P.default},25633:function(yt,Y,y){"use strict";var v=y(64836).default;Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;var P=v(y(27590)),w=v(y(52040));const b={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},P.default),timePickerLocale:Object.assign({},w.default)};var B=Y.default=b},5584:function(yt,Y,y){"use strict";var v=y(64836).default;Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;var P=v(y(85369)),w=v(y(15704));const b={lang:Object.assign({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},P.default),timePickerLocale:Object.assign({},w.default)};b.lang.ok="\u786E\u5B9A";var B=Y.default=b},18253:function(yt,Y,y){"use strict";var v,P=y(64836).default;v={value:!0},Y.Z=void 0;var w=P(y(62273)),b=P(y(1028)),B=P(y(25633)),V=P(y(52040));const k="${label} is not a valid ${type}",R={locale:"en",Pagination:w.default,DatePicker:B.default,TimePicker:V.default,Calendar:b.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:k,method:k,array:k,object:k,number:k,date:k,boolean:k,integer:k,float:k,regexp:k,email:k,url:k,hex:k},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};var C=Y.Z=R},82925:function(yt,Y,y){"use strict";var v,P=y(64836).default;v={value:!0},Y.Z=void 0;var w=P(y(74219)),b=P(y(80037)),B=P(y(5584)),V=P(y(15704));const k="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",R={locale:"zh-cn",Pagination:w.default,DatePicker:B.default,TimePicker:V.default,Calendar:b.default,global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{titles:["",""],searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00"},PageHeader:{back:"\u8FD4\u56DE"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:k,method:k,array:k,object:k,number:k,date:k,boolean:k,integer:k,float:k,regexp:k,email:k,url:k,hex:k},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0"},ColorPicker:{presetEmpty:"\u6682\u65E0"}};var C=Y.Z=R},52040:function(yt,Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;const y={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var v=Y.default=y},15704:function(yt,Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;const y={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};var v=Y.default=y},93771:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return wt}});var v=y(87462),P=y(97685),w=y(4942),b=y(91),B=y(67294),V=y(94184),k=y.n(V),R=y(16397),C=y(54775),g=y(1413),A=y(71002),O=y(44958),K=y(27571),he=y(80334);function ae(lt){return lt.replace(/-(.)/g,function(Kt,Mt){return Mt.toUpperCase()})}function fe(lt,Kt){(0,he.ZP)(lt,"[@ant-design/icons] ".concat(Kt))}function xe(lt){return(0,A.Z)(lt)==="object"&&typeof lt.name=="string"&&typeof lt.theme=="string"&&((0,A.Z)(lt.icon)==="object"||typeof lt.icon=="function")}function ye(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(lt).reduce(function(Kt,Mt){var hn=lt[Mt];switch(Mt){case"class":Kt.className=hn,delete Kt.class;break;default:delete Kt[Mt],Kt[ae(Mt)]=hn}return Kt},{})}function be(lt,Kt,Mt){return Mt?B.createElement(lt.tag,(0,g.Z)((0,g.Z)({key:Kt},ye(lt.attrs)),Mt),(lt.children||[]).map(function(hn,un){return be(hn,"".concat(Kt,"-").concat(lt.tag,"-").concat(un))})):B.createElement(lt.tag,(0,g.Z)({key:Kt},ye(lt.attrs)),(lt.children||[]).map(function(hn,un){return be(hn,"".concat(Kt,"-").concat(lt.tag,"-").concat(un))}))}function Qe(lt){return(0,R.R_)(lt)[0]}function Ve(lt){return lt?Array.isArray(lt)?lt:[lt]:[]}var pt={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},st=` +.anticon { + display: inline-block; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,Ae=function(Kt){var Mt=(0,B.useContext)(C.Z),hn=Mt.csp,un=Mt.prefixCls,Sr=st;un&&(Sr=Sr.replace(/anticon/g,un)),(0,B.useEffect)(function(){var ii=Kt.current,Ii=(0,K.A)(ii);(0,O.hq)(Sr,"@ant-design-icons",{prepend:!0,csp:hn,attachTo:Ii})},[])},De=["icon","className","onClick","style","primaryColor","secondaryColor"],Te={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Me(lt){var Kt=lt.primaryColor,Mt=lt.secondaryColor;Te.primaryColor=Kt,Te.secondaryColor=Mt||Qe(Kt),Te.calculated=!!Mt}function Ue(){return(0,g.Z)({},Te)}var Pe=function(Kt){var Mt=Kt.icon,hn=Kt.className,un=Kt.onClick,Sr=Kt.style,ii=Kt.primaryColor,Ii=Kt.secondaryColor,Ni=(0,b.Z)(Kt,De),eo=B.useRef(),ti=Te;if(ii&&(ti={primaryColor:ii,secondaryColor:Ii||Qe(ii)}),Ae(eo),fe(xe(Mt),"icon should be icon definiton, but got ".concat(Mt)),!xe(Mt))return null;var Is=Mt;return Is&&typeof Is.icon=="function"&&(Is=(0,g.Z)((0,g.Z)({},Is),{},{icon:Is.icon(ti.primaryColor,ti.secondaryColor)})),be(Is.icon,"svg-".concat(Is.name),(0,g.Z)((0,g.Z)({className:hn,onClick:un,style:Sr,"data-icon":Is.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},Ni),{},{ref:eo}))};Pe.displayName="IconReact",Pe.getTwoToneColors=Ue,Pe.setTwoToneColors=Me;var Xe=Pe;function Be(lt){var Kt=Ve(lt),Mt=(0,P.Z)(Kt,2),hn=Mt[0],un=Mt[1];return Xe.setTwoToneColors({primaryColor:hn,secondaryColor:un})}function Xt(){var lt=Xe.getTwoToneColors();return lt.calculated?[lt.primaryColor,lt.secondaryColor]:lt.primaryColor}var St=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Be(R.iN.primary);var nt=B.forwardRef(function(lt,Kt){var Mt,hn=lt.className,un=lt.icon,Sr=lt.spin,ii=lt.rotate,Ii=lt.tabIndex,Ni=lt.onClick,eo=lt.twoToneColor,ti=(0,b.Z)(lt,St),Is=B.useContext(C.Z),Ns=Is.prefixCls,Se=Ns===void 0?"anticon":Ns,Xi=Is.rootClassName,Yi=k()(Xi,Se,(Mt={},(0,w.Z)(Mt,"".concat(Se,"-").concat(un.name),!!un.name),(0,w.Z)(Mt,"".concat(Se,"-spin"),!!Sr||un.name==="loading"),Mt),hn),fo=Ii;fo===void 0&&Ni&&(fo=-1);var di=ii?{msTransform:"rotate(".concat(ii,"deg)"),transform:"rotate(".concat(ii,"deg)")}:void 0,Fs=Ve(eo),Ln=(0,P.Z)(Fs,2),it=Ln[0],Ot=Ln[1];return B.createElement("span",(0,v.Z)({role:"img","aria-label":un.name},ti,{ref:Kt,tabIndex:fo,onClick:Ni,className:Yi}),B.createElement(Xe,{icon:un,primaryColor:it,secondaryColor:Ot,style:di}))});nt.displayName="AntdIcon",nt.getTwoToneColor=Xt,nt.setTwoToneColor=Be;var wt=nt},54775:function(yt,Y,y){"use strict";var v=y(67294),P=(0,v.createContext)({});Y.Z=P},76278:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(87462),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},b=w,B=y(93771),V=function(C,g){return P.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=P.forwardRef(V)},35918:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(87462),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},b=w,B=y(93771),V=function(C,g){return P.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=P.forwardRef(V)},41322:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(87462),P=y(67294),w={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},b=w,B=y(93771),V=function(C,g){return P.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=P.forwardRef(V)},62208:function(yt,Y,y){"use strict";var v=y(87462),P=y(67294),w=y(89503),b=y(93771),B=function(k,R){return P.createElement(b.Z,(0,v.Z)({},k,{ref:R,icon:w.Z}))};Y.Z=P.forwardRef(B)},58964:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(87462),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},b=w,B=y(93771),V=function(C,g){return P.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=P.forwardRef(V)},35872:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(87462),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},b=w,B=y(93771),V=function(C,g){return P.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=P.forwardRef(V)},26702:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(87462),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},b=w,B=y(93771),V=function(C,g){return P.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=P.forwardRef(V)},7124:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(87462),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},b=w,B=y(93771),V=function(C,g){return P.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=P.forwardRef(V)},1558:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(87462),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},b=w,B=y(93771),V=function(C,g){return P.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=P.forwardRef(V)},62946:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(87462),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},b=w,B=y(93771),V=function(C,g){return P.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=P.forwardRef(V)},22508:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(87462),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},b=w,B=y(93771),V=function(C,g){return P.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=P.forwardRef(V)},68843:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(87462),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},b=w,B=y(93771),V=function(C,g){return P.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=P.forwardRef(V)},13805:function(yt,Y,y){"use strict";y.d(Y,{Z:function(){return k}});var v=y(87462),P=y(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},b=w,B=y(93771),V=function(C,g){return P.createElement(B.Z,(0,v.Z)({},C,{ref:g,icon:b}))},k=P.forwardRef(V)},79742:function(yt,Y){"use strict";Y.byteLength=k,Y.toByteArray=C,Y.fromByteArray=O;for(var y=[],v=[],P=typeof Uint8Array!="undefined"?Uint8Array:Array,w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,B=w.length;b0)throw new Error("Invalid string. Length must be a multiple of 4");var ae=K.indexOf("=");ae===-1&&(ae=he);var fe=ae===he?0:4-ae%4;return[ae,fe]}function k(K){var he=V(K),ae=he[0],fe=he[1];return(ae+fe)*3/4-fe}function R(K,he,ae){return(he+ae)*3/4-ae}function C(K){var he,ae=V(K),fe=ae[0],xe=ae[1],ye=new P(R(K,fe,xe)),be=0,Qe=xe>0?fe-4:fe,Ve;for(Ve=0;Ve>16&255,ye[be++]=he>>8&255,ye[be++]=he&255;return xe===2&&(he=v[K.charCodeAt(Ve)]<<2|v[K.charCodeAt(Ve+1)]>>4,ye[be++]=he&255),xe===1&&(he=v[K.charCodeAt(Ve)]<<10|v[K.charCodeAt(Ve+1)]<<4|v[K.charCodeAt(Ve+2)]>>2,ye[be++]=he>>8&255,ye[be++]=he&255),ye}function g(K){return y[K>>18&63]+y[K>>12&63]+y[K>>6&63]+y[K&63]}function A(K,he,ae){for(var fe,xe=[],ye=he;yeQe?Qe:be+ye));return fe===1?(he=K[ae-1],xe.push(y[he>>2]+y[he<<4&63]+"==")):fe===2&&(he=(K[ae-2]<<8)+K[ae-1],xe.push(y[he>>10]+y[he>>4&63]+y[he<<2&63]+"=")),xe.join("")}},48764:function(yt,Y,y){"use strict";var v;var P=y(79742),w=y(80645),b=y(5826);Y.lW=R,v=ye,Y.h2=50,R.TYPED_ARRAY_SUPPORT=y.g.TYPED_ARRAY_SUPPORT!==void 0?y.g.TYPED_ARRAY_SUPPORT:B(),v=V();function B(){try{var Ln=new Uint8Array(1);return Ln.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Ln.foo()===42&&typeof Ln.subarray=="function"&&Ln.subarray(1,1).byteLength===0}catch(it){return!1}}function V(){return R.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function k(Ln,it){if(V()=V())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+V().toString(16)+" bytes");return Ln|0}function ye(Ln){return+Ln!=Ln&&(Ln=0),R.alloc(+Ln)}R.isBuffer=function(it){return!!(it!=null&&it._isBuffer)},R.compare=function(it,Ot){if(!R.isBuffer(it)||!R.isBuffer(Ot))throw new TypeError("Arguments must be Buffers");if(it===Ot)return 0;for(var Ht=it.length,Pn=Ot.length,fr=0,In=Math.min(Ht,Pn);fr>>1;case"base64":return fo(Ln).length;default:if(Ht)return Se(Ln).length;it=(""+it).toLowerCase(),Ht=!0}}R.byteLength=be;function Qe(Ln,it,Ot){var Ht=!1;if((it===void 0||it<0)&&(it=0),it>this.length||((Ot===void 0||Ot>this.length)&&(Ot=this.length),Ot<=0)||(Ot>>>=0,it>>>=0,Ot<=it))return"";for(Ln||(Ln="utf8");;)switch(Ln){case"hex":return lt(this,it,Ot);case"utf8":case"utf-8":return Be(this,it,Ot);case"ascii":return nt(this,it,Ot);case"latin1":case"binary":return wt(this,it,Ot);case"base64":return Xe(this,it,Ot);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kt(this,it,Ot);default:if(Ht)throw new TypeError("Unknown encoding: "+Ln);Ln=(Ln+"").toLowerCase(),Ht=!0}}R.prototype._isBuffer=!0;function Ve(Ln,it,Ot){var Ht=Ln[it];Ln[it]=Ln[Ot],Ln[Ot]=Ht}R.prototype.swap16=function(){var it=this.length;if(it%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ot=0;Ot0&&(it=this.toString("hex",0,Ot).match(/.{2}/g).join(" "),this.length>Ot&&(it+=" ... ")),""},R.prototype.compare=function(it,Ot,Ht,Pn,fr){if(!R.isBuffer(it))throw new TypeError("Argument must be a Buffer");if(Ot===void 0&&(Ot=0),Ht===void 0&&(Ht=it?it.length:0),Pn===void 0&&(Pn=0),fr===void 0&&(fr=this.length),Ot<0||Ht>it.length||Pn<0||fr>this.length)throw new RangeError("out of range index");if(Pn>=fr&&Ot>=Ht)return 0;if(Pn>=fr)return-1;if(Ot>=Ht)return 1;if(Ot>>>=0,Ht>>>=0,Pn>>>=0,fr>>>=0,this===it)return 0;for(var In=fr-Pn,mn=Ht-Ot,Ut=Math.min(In,mn),en=this.slice(Pn,fr),Cn=it.slice(Ot,Ht),lr=0;lr2147483647?Ot=2147483647:Ot<-2147483648&&(Ot=-2147483648),Ot=+Ot,isNaN(Ot)&&(Ot=Pn?0:Ln.length-1),Ot<0&&(Ot=Ln.length+Ot),Ot>=Ln.length){if(Pn)return-1;Ot=Ln.length-1}else if(Ot<0)if(Pn)Ot=0;else return-1;if(typeof it=="string"&&(it=R.from(it,Ht)),R.isBuffer(it))return it.length===0?-1:st(Ln,it,Ot,Ht,Pn);if(typeof it=="number")return it=it&255,R.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Pn?Uint8Array.prototype.indexOf.call(Ln,it,Ot):Uint8Array.prototype.lastIndexOf.call(Ln,it,Ot):st(Ln,[it],Ot,Ht,Pn);throw new TypeError("val must be string, number or Buffer")}function st(Ln,it,Ot,Ht,Pn){var fr=1,In=Ln.length,mn=it.length;if(Ht!==void 0&&(Ht=String(Ht).toLowerCase(),Ht==="ucs2"||Ht==="ucs-2"||Ht==="utf16le"||Ht==="utf-16le")){if(Ln.length<2||it.length<2)return-1;fr=2,In/=2,mn/=2,Ot/=2}function Ut(an,wr){return fr===1?an[wr]:an.readUInt16BE(wr*fr)}var en;if(Pn){var Cn=-1;for(en=Ot;enIn&&(Ot=In-mn),en=Ot;en>=0;en--){for(var lr=!0,pr=0;prPn&&(Ht=Pn)):Ht=Pn;var fr=it.length;if(fr%2!==0)throw new TypeError("Invalid hex string");Ht>fr/2&&(Ht=fr/2);for(var In=0;Infr)&&(Ht=fr),it.length>0&&(Ht<0||Ot<0)||Ot>this.length)throw new RangeError("Attempt to write outside buffer bounds");Pn||(Pn="utf8");for(var In=!1;;)switch(Pn){case"hex":return Ae(this,it,Ot,Ht);case"utf8":case"utf-8":return De(this,it,Ot,Ht);case"ascii":return Te(this,it,Ot,Ht);case"latin1":case"binary":return Me(this,it,Ot,Ht);case"base64":return Ue(this,it,Ot,Ht);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pe(this,it,Ot,Ht);default:if(In)throw new TypeError("Unknown encoding: "+Pn);Pn=(""+Pn).toLowerCase(),In=!0}},R.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Xe(Ln,it,Ot){return it===0&&Ot===Ln.length?P.fromByteArray(Ln):P.fromByteArray(Ln.slice(it,Ot))}function Be(Ln,it,Ot){Ot=Math.min(Ln.length,Ot);for(var Ht=[],Pn=it;Pn239?4:fr>223?3:fr>191?2:1;if(Pn+mn<=Ot){var Ut,en,Cn,lr;switch(mn){case 1:fr<128&&(In=fr);break;case 2:Ut=Ln[Pn+1],(Ut&192)===128&&(lr=(fr&31)<<6|Ut&63,lr>127&&(In=lr));break;case 3:Ut=Ln[Pn+1],en=Ln[Pn+2],(Ut&192)===128&&(en&192)===128&&(lr=(fr&15)<<12|(Ut&63)<<6|en&63,lr>2047&&(lr<55296||lr>57343)&&(In=lr));break;case 4:Ut=Ln[Pn+1],en=Ln[Pn+2],Cn=Ln[Pn+3],(Ut&192)===128&&(en&192)===128&&(Cn&192)===128&&(lr=(fr&15)<<18|(Ut&63)<<12|(en&63)<<6|Cn&63,lr>65535&&lr<1114112&&(In=lr))}}In===null?(In=65533,mn=1):In>65535&&(In-=65536,Ht.push(In>>>10&1023|55296),In=56320|In&1023),Ht.push(In),Pn+=mn}return St(Ht)}var Xt=4096;function St(Ln){var it=Ln.length;if(it<=Xt)return String.fromCharCode.apply(String,Ln);for(var Ot="",Ht=0;HtHt)&&(Ot=Ht);for(var Pn="",fr=it;frHt&&(it=Ht),Ot<0?(Ot+=Ht,Ot<0&&(Ot=0)):Ot>Ht&&(Ot=Ht),OtOt)throw new RangeError("Trying to access beyond buffer length")}R.prototype.readUIntLE=function(it,Ot,Ht){it=it|0,Ot=Ot|0,Ht||Mt(it,Ot,this.length);for(var Pn=this[it],fr=1,In=0;++In0&&(fr*=256);)Pn+=this[it+--Ot]*fr;return Pn},R.prototype.readUInt8=function(it,Ot){return Ot||Mt(it,1,this.length),this[it]},R.prototype.readUInt16LE=function(it,Ot){return Ot||Mt(it,2,this.length),this[it]|this[it+1]<<8},R.prototype.readUInt16BE=function(it,Ot){return Ot||Mt(it,2,this.length),this[it]<<8|this[it+1]},R.prototype.readUInt32LE=function(it,Ot){return Ot||Mt(it,4,this.length),(this[it]|this[it+1]<<8|this[it+2]<<16)+this[it+3]*16777216},R.prototype.readUInt32BE=function(it,Ot){return Ot||Mt(it,4,this.length),this[it]*16777216+(this[it+1]<<16|this[it+2]<<8|this[it+3])},R.prototype.readIntLE=function(it,Ot,Ht){it=it|0,Ot=Ot|0,Ht||Mt(it,Ot,this.length);for(var Pn=this[it],fr=1,In=0;++In=fr&&(Pn-=Math.pow(2,8*Ot)),Pn},R.prototype.readIntBE=function(it,Ot,Ht){it=it|0,Ot=Ot|0,Ht||Mt(it,Ot,this.length);for(var Pn=Ot,fr=1,In=this[it+--Pn];Pn>0&&(fr*=256);)In+=this[it+--Pn]*fr;return fr*=128,In>=fr&&(In-=Math.pow(2,8*Ot)),In},R.prototype.readInt8=function(it,Ot){return Ot||Mt(it,1,this.length),this[it]&128?(255-this[it]+1)*-1:this[it]},R.prototype.readInt16LE=function(it,Ot){Ot||Mt(it,2,this.length);var Ht=this[it]|this[it+1]<<8;return Ht&32768?Ht|4294901760:Ht},R.prototype.readInt16BE=function(it,Ot){Ot||Mt(it,2,this.length);var Ht=this[it+1]|this[it]<<8;return Ht&32768?Ht|4294901760:Ht},R.prototype.readInt32LE=function(it,Ot){return Ot||Mt(it,4,this.length),this[it]|this[it+1]<<8|this[it+2]<<16|this[it+3]<<24},R.prototype.readInt32BE=function(it,Ot){return Ot||Mt(it,4,this.length),this[it]<<24|this[it+1]<<16|this[it+2]<<8|this[it+3]},R.prototype.readFloatLE=function(it,Ot){return Ot||Mt(it,4,this.length),w.read(this,it,!0,23,4)},R.prototype.readFloatBE=function(it,Ot){return Ot||Mt(it,4,this.length),w.read(this,it,!1,23,4)},R.prototype.readDoubleLE=function(it,Ot){return Ot||Mt(it,8,this.length),w.read(this,it,!0,52,8)},R.prototype.readDoubleBE=function(it,Ot){return Ot||Mt(it,8,this.length),w.read(this,it,!1,52,8)};function hn(Ln,it,Ot,Ht,Pn,fr){if(!R.isBuffer(Ln))throw new TypeError('"buffer" argument must be a Buffer instance');if(it>Pn||itLn.length)throw new RangeError("Index out of range")}R.prototype.writeUIntLE=function(it,Ot,Ht,Pn){if(it=+it,Ot=Ot|0,Ht=Ht|0,!Pn){var fr=Math.pow(2,8*Ht)-1;hn(this,it,Ot,Ht,fr,0)}var In=1,mn=0;for(this[Ot]=it&255;++mn=0&&(mn*=256);)this[Ot+In]=it/mn&255;return Ot+Ht},R.prototype.writeUInt8=function(it,Ot,Ht){return it=+it,Ot=Ot|0,Ht||hn(this,it,Ot,1,255,0),R.TYPED_ARRAY_SUPPORT||(it=Math.floor(it)),this[Ot]=it&255,Ot+1};function un(Ln,it,Ot,Ht){it<0&&(it=65535+it+1);for(var Pn=0,fr=Math.min(Ln.length-Ot,2);Pn>>(Ht?Pn:1-Pn)*8}R.prototype.writeUInt16LE=function(it,Ot,Ht){return it=+it,Ot=Ot|0,Ht||hn(this,it,Ot,2,65535,0),R.TYPED_ARRAY_SUPPORT?(this[Ot]=it&255,this[Ot+1]=it>>>8):un(this,it,Ot,!0),Ot+2},R.prototype.writeUInt16BE=function(it,Ot,Ht){return it=+it,Ot=Ot|0,Ht||hn(this,it,Ot,2,65535,0),R.TYPED_ARRAY_SUPPORT?(this[Ot]=it>>>8,this[Ot+1]=it&255):un(this,it,Ot,!1),Ot+2};function Sr(Ln,it,Ot,Ht){it<0&&(it=4294967295+it+1);for(var Pn=0,fr=Math.min(Ln.length-Ot,4);Pn>>(Ht?Pn:3-Pn)*8&255}R.prototype.writeUInt32LE=function(it,Ot,Ht){return it=+it,Ot=Ot|0,Ht||hn(this,it,Ot,4,4294967295,0),R.TYPED_ARRAY_SUPPORT?(this[Ot+3]=it>>>24,this[Ot+2]=it>>>16,this[Ot+1]=it>>>8,this[Ot]=it&255):Sr(this,it,Ot,!0),Ot+4},R.prototype.writeUInt32BE=function(it,Ot,Ht){return it=+it,Ot=Ot|0,Ht||hn(this,it,Ot,4,4294967295,0),R.TYPED_ARRAY_SUPPORT?(this[Ot]=it>>>24,this[Ot+1]=it>>>16,this[Ot+2]=it>>>8,this[Ot+3]=it&255):Sr(this,it,Ot,!1),Ot+4},R.prototype.writeIntLE=function(it,Ot,Ht,Pn){if(it=+it,Ot=Ot|0,!Pn){var fr=Math.pow(2,8*Ht-1);hn(this,it,Ot,Ht,fr-1,-fr)}var In=0,mn=1,Ut=0;for(this[Ot]=it&255;++In>0)-Ut&255;return Ot+Ht},R.prototype.writeIntBE=function(it,Ot,Ht,Pn){if(it=+it,Ot=Ot|0,!Pn){var fr=Math.pow(2,8*Ht-1);hn(this,it,Ot,Ht,fr-1,-fr)}var In=Ht-1,mn=1,Ut=0;for(this[Ot+In]=it&255;--In>=0&&(mn*=256);)it<0&&Ut===0&&this[Ot+In+1]!==0&&(Ut=1),this[Ot+In]=(it/mn>>0)-Ut&255;return Ot+Ht},R.prototype.writeInt8=function(it,Ot,Ht){return it=+it,Ot=Ot|0,Ht||hn(this,it,Ot,1,127,-128),R.TYPED_ARRAY_SUPPORT||(it=Math.floor(it)),it<0&&(it=255+it+1),this[Ot]=it&255,Ot+1},R.prototype.writeInt16LE=function(it,Ot,Ht){return it=+it,Ot=Ot|0,Ht||hn(this,it,Ot,2,32767,-32768),R.TYPED_ARRAY_SUPPORT?(this[Ot]=it&255,this[Ot+1]=it>>>8):un(this,it,Ot,!0),Ot+2},R.prototype.writeInt16BE=function(it,Ot,Ht){return it=+it,Ot=Ot|0,Ht||hn(this,it,Ot,2,32767,-32768),R.TYPED_ARRAY_SUPPORT?(this[Ot]=it>>>8,this[Ot+1]=it&255):un(this,it,Ot,!1),Ot+2},R.prototype.writeInt32LE=function(it,Ot,Ht){return it=+it,Ot=Ot|0,Ht||hn(this,it,Ot,4,2147483647,-2147483648),R.TYPED_ARRAY_SUPPORT?(this[Ot]=it&255,this[Ot+1]=it>>>8,this[Ot+2]=it>>>16,this[Ot+3]=it>>>24):Sr(this,it,Ot,!0),Ot+4},R.prototype.writeInt32BE=function(it,Ot,Ht){return it=+it,Ot=Ot|0,Ht||hn(this,it,Ot,4,2147483647,-2147483648),it<0&&(it=4294967295+it+1),R.TYPED_ARRAY_SUPPORT?(this[Ot]=it>>>24,this[Ot+1]=it>>>16,this[Ot+2]=it>>>8,this[Ot+3]=it&255):Sr(this,it,Ot,!1),Ot+4};function ii(Ln,it,Ot,Ht,Pn,fr){if(Ot+Ht>Ln.length)throw new RangeError("Index out of range");if(Ot<0)throw new RangeError("Index out of range")}function Ii(Ln,it,Ot,Ht,Pn){return Pn||ii(Ln,it,Ot,4,34028234663852886e22,-34028234663852886e22),w.write(Ln,it,Ot,Ht,23,4),Ot+4}R.prototype.writeFloatLE=function(it,Ot,Ht){return Ii(this,it,Ot,!0,Ht)},R.prototype.writeFloatBE=function(it,Ot,Ht){return Ii(this,it,Ot,!1,Ht)};function Ni(Ln,it,Ot,Ht,Pn){return Pn||ii(Ln,it,Ot,8,17976931348623157e292,-17976931348623157e292),w.write(Ln,it,Ot,Ht,52,8),Ot+8}R.prototype.writeDoubleLE=function(it,Ot,Ht){return Ni(this,it,Ot,!0,Ht)},R.prototype.writeDoubleBE=function(it,Ot,Ht){return Ni(this,it,Ot,!1,Ht)},R.prototype.copy=function(it,Ot,Ht,Pn){if(Ht||(Ht=0),!Pn&&Pn!==0&&(Pn=this.length),Ot>=it.length&&(Ot=it.length),Ot||(Ot=0),Pn>0&&Pn=this.length)throw new RangeError("sourceStart out of bounds");if(Pn<0)throw new RangeError("sourceEnd out of bounds");Pn>this.length&&(Pn=this.length),it.length-Ot=0;--In)it[In+Ot]=this[In+Ht];else if(fr<1e3||!R.TYPED_ARRAY_SUPPORT)for(In=0;In>>0,Ht=Ht===void 0?this.length:Ht>>>0,it||(it=0);var In;if(typeof it=="number")for(In=Ot;In55295&&Ot<57344){if(!Pn){if(Ot>56319){(it-=3)>-1&&fr.push(239,191,189);continue}else if(In+1===Ht){(it-=3)>-1&&fr.push(239,191,189);continue}Pn=Ot;continue}if(Ot<56320){(it-=3)>-1&&fr.push(239,191,189),Pn=Ot;continue}Ot=(Pn-55296<<10|Ot-56320)+65536}else Pn&&(it-=3)>-1&&fr.push(239,191,189);if(Pn=null,Ot<128){if((it-=1)<0)break;fr.push(Ot)}else if(Ot<2048){if((it-=2)<0)break;fr.push(Ot>>6|192,Ot&63|128)}else if(Ot<65536){if((it-=3)<0)break;fr.push(Ot>>12|224,Ot>>6&63|128,Ot&63|128)}else if(Ot<1114112){if((it-=4)<0)break;fr.push(Ot>>18|240,Ot>>12&63|128,Ot>>6&63|128,Ot&63|128)}else throw new Error("Invalid code point")}return fr}function Xi(Ln){for(var it=[],Ot=0;Ot>8,Pn=Ot%256,fr.push(Pn),fr.push(Ht);return fr}function fo(Ln){return P.toByteArray(ti(Ln))}function di(Ln,it,Ot,Ht){for(var Pn=0;Pn=it.length||Pn>=Ln.length);++Pn)it[Pn+Ot]=Ln[Pn];return Pn}function Fs(Ln){return Ln!==Ln}},21924:function(yt,Y,y){"use strict";var v=y(40210),P=y(55559),w=P(v("String.prototype.indexOf"));yt.exports=function(B,V){var k=v(B,!!V);return typeof k=="function"&&w(B,".prototype.")>-1?P(k):k}},55559:function(yt,Y,y){"use strict";var v=y(58612),P=y(40210),w=y(67771),b=P("%TypeError%"),B=P("%Function.prototype.apply%"),V=P("%Function.prototype.call%"),k=P("%Reflect.apply%",!0)||v.call(V,B),R=P("%Object.defineProperty%",!0),C=P("%Math.max%");if(R)try{R({},"a",{value:1})}catch(A){R=null}yt.exports=function(O){if(typeof O!="function")throw new b("a function is required");var K=k(v,V,arguments);return w(K,1+C(0,O.length-(arguments.length-1)),!0)};var g=function(){return k(v,B,arguments)};R?R(yt.exports,"apply",{value:g}):yt.exports.apply=g},42152:function(yt){(function(y,v){yt.exports=v()})(this,function(){return function(){var Y={686:function(P,w,b){"use strict";b.d(w,{default:function(){return nt}});var B=b(279),V=b.n(B),k=b(370),R=b.n(k),C=b(817),g=b.n(C);function A(wt){try{return document.execCommand(wt)}catch(lt){return!1}}var O=function(lt){var Kt=g()(lt);return A("cut"),Kt},K=O;function he(wt){var lt=document.documentElement.getAttribute("dir")==="rtl",Kt=document.createElement("textarea");Kt.style.fontSize="12pt",Kt.style.border="0",Kt.style.padding="0",Kt.style.margin="0",Kt.style.position="absolute",Kt.style[lt?"right":"left"]="-9999px";var Mt=window.pageYOffset||document.documentElement.scrollTop;return Kt.style.top="".concat(Mt,"px"),Kt.setAttribute("readonly",""),Kt.value=wt,Kt}var ae=function(lt,Kt){var Mt=he(lt);Kt.container.appendChild(Mt);var hn=g()(Mt);return A("copy"),Mt.remove(),hn},fe=function(lt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},Mt="";return typeof lt=="string"?Mt=ae(lt,Kt):lt instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(lt==null?void 0:lt.type)?Mt=ae(lt.value,Kt):(Mt=g()(lt),A("copy")),Mt},xe=fe;function ye(wt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ye=function(Kt){return typeof Kt}:ye=function(Kt){return Kt&&typeof Symbol=="function"&&Kt.constructor===Symbol&&Kt!==Symbol.prototype?"symbol":typeof Kt},ye(wt)}var be=function(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Kt=lt.action,Mt=Kt===void 0?"copy":Kt,hn=lt.container,un=lt.target,Sr=lt.text;if(Mt!=="copy"&&Mt!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(un!==void 0)if(un&&ye(un)==="object"&&un.nodeType===1){if(Mt==="copy"&&un.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(Mt==="cut"&&(un.hasAttribute("readonly")||un.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Sr)return xe(Sr,{container:hn});if(un)return Mt==="cut"?K(un):xe(un,{container:hn})},Qe=be;function Ve(wt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ve=function(Kt){return typeof Kt}:Ve=function(Kt){return Kt&&typeof Symbol=="function"&&Kt.constructor===Symbol&&Kt!==Symbol.prototype?"symbol":typeof Kt},Ve(wt)}function pt(wt,lt){if(!(wt instanceof lt))throw new TypeError("Cannot call a class as a function")}function st(wt,lt){for(var Kt=0;Kt0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof hn.action=="function"?hn.action:this.defaultAction,this.target=typeof hn.target=="function"?hn.target:this.defaultTarget,this.text=typeof hn.text=="function"?hn.text:this.defaultText,this.container=Ve(hn.container)==="object"?hn.container:document.body}},{key:"listenClick",value:function(hn){var un=this;this.listener=R()(hn,"click",function(Sr){return un.onClick(Sr)})}},{key:"onClick",value:function(hn){var un=hn.delegateTarget||hn.currentTarget,Sr=this.action(un)||"copy",ii=Qe({action:Sr,container:this.container,target:this.target(un),text:this.text(un)});this.emit(ii?"success":"error",{action:Sr,text:ii,trigger:un,clearSelection:function(){un&&un.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(hn){return Xt("action",hn)}},{key:"defaultTarget",value:function(hn){var un=Xt("target",hn);if(un)return document.querySelector(un)}},{key:"defaultText",value:function(hn){return Xt("text",hn)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(hn){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return xe(hn,un)}},{key:"cut",value:function(hn){return K(hn)}},{key:"isSupported",value:function(){var hn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],un=typeof hn=="string"?[hn]:hn,Sr=!!document.queryCommandSupported;return un.forEach(function(ii){Sr=Sr&&!!document.queryCommandSupported(ii)}),Sr}}]),Kt}(V()),nt=St},828:function(P){var w=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var b=Element.prototype;b.matches=b.matchesSelector||b.mozMatchesSelector||b.msMatchesSelector||b.oMatchesSelector||b.webkitMatchesSelector}function B(V,k){for(;V&&V.nodeType!==w;){if(typeof V.matches=="function"&&V.matches(k))return V;V=V.parentNode}}P.exports=B},438:function(P,w,b){var B=b(828);function V(C,g,A,O,K){var he=R.apply(this,arguments);return C.addEventListener(A,he,K),{destroy:function(){C.removeEventListener(A,he,K)}}}function k(C,g,A,O,K){return typeof C.addEventListener=="function"?V.apply(null,arguments):typeof A=="function"?V.bind(null,document).apply(null,arguments):(typeof C=="string"&&(C=document.querySelectorAll(C)),Array.prototype.map.call(C,function(he){return V(he,g,A,O,K)}))}function R(C,g,A,O){return function(K){K.delegateTarget=B(K.target,g),K.delegateTarget&&O.call(C,K)}}P.exports=k},879:function(P,w){w.node=function(b){return b!==void 0&&b instanceof HTMLElement&&b.nodeType===1},w.nodeList=function(b){var B=Object.prototype.toString.call(b);return b!==void 0&&(B==="[object NodeList]"||B==="[object HTMLCollection]")&&"length"in b&&(b.length===0||w.node(b[0]))},w.string=function(b){return typeof b=="string"||b instanceof String},w.fn=function(b){var B=Object.prototype.toString.call(b);return B==="[object Function]"}},370:function(P,w,b){var B=b(879),V=b(438);function k(A,O,K){if(!A&&!O&&!K)throw new Error("Missing required arguments");if(!B.string(O))throw new TypeError("Second argument must be a String");if(!B.fn(K))throw new TypeError("Third argument must be a Function");if(B.node(A))return R(A,O,K);if(B.nodeList(A))return C(A,O,K);if(B.string(A))return g(A,O,K);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function R(A,O,K){return A.addEventListener(O,K),{destroy:function(){A.removeEventListener(O,K)}}}function C(A,O,K){return Array.prototype.forEach.call(A,function(he){he.addEventListener(O,K)}),{destroy:function(){Array.prototype.forEach.call(A,function(he){he.removeEventListener(O,K)})}}}function g(A,O,K){return V(document.body,A,O,K)}P.exports=k},817:function(P){function w(b){var B;if(b.nodeName==="SELECT")b.focus(),B=b.value;else if(b.nodeName==="INPUT"||b.nodeName==="TEXTAREA"){var V=b.hasAttribute("readonly");V||b.setAttribute("readonly",""),b.select(),b.setSelectionRange(0,b.value.length),V||b.removeAttribute("readonly"),B=b.value}else{b.hasAttribute("contenteditable")&&b.focus();var k=window.getSelection(),R=document.createRange();R.selectNodeContents(b),k.removeAllRanges(),k.addRange(R),B=k.toString()}return B}P.exports=w},279:function(P){function w(){}w.prototype={on:function(b,B,V){var k=this.e||(this.e={});return(k[b]||(k[b]=[])).push({fn:B,ctx:V}),this},once:function(b,B,V){var k=this;function R(){k.off(b,R),B.apply(V,arguments)}return R._=B,this.on(b,R,V)},emit:function(b){var B=[].slice.call(arguments,1),V=((this.e||(this.e={}))[b]||[]).slice(),k=0,R=V.length;for(k;k=4&&C[3]!==1&&(g=", "+C[3]),"hwb("+C[0]+", "+C[1]+"%, "+C[2]+"%"+g+")"},V.to.keyword=function(C){return b[C.slice(0,3)]};function k(C,g,A){return Math.min(Math.max(g,C),A)}function R(C){var g=Math.round(C).toString(16).toUpperCase();return g.length<2?"0"+g:g}},6767:function(yt,Y,y){const v=y(19818),P=y(80978),w=["keyword","gray","hex"],b={};for(const K of Object.keys(P))b[[...P[K].labels].sort().join("")]=K;const B={};function V(K,he){if(!(this instanceof V))return new V(K,he);if(he&&he in w&&(he=null),he&&!(he in P))throw new Error("Unknown model: "+he);let ae,fe;if(K==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(K instanceof V)this.model=K.model,this.color=[...K.color],this.valpha=K.valpha;else if(typeof K=="string"){const xe=v.get(K);if(xe===null)throw new Error("Unable to parse color from string: "+K);this.model=xe.model,fe=P[this.model].channels,this.color=xe.value.slice(0,fe),this.valpha=typeof xe.value[fe]=="number"?xe.value[fe]:1}else if(K.length>0){this.model=he||"rgb",fe=P[this.model].channels;const xe=Array.prototype.slice.call(K,0,fe);this.color=O(xe,fe),this.valpha=typeof K[fe]=="number"?K[fe]:1}else if(typeof K=="number")this.model="rgb",this.color=[K>>16&255,K>>8&255,K&255],this.valpha=1;else{this.valpha=1;const xe=Object.keys(K);"alpha"in K&&(xe.splice(xe.indexOf("alpha"),1),this.valpha=typeof K.alpha=="number"?K.alpha:0);const ye=xe.sort().join("");if(!(ye in b))throw new Error("Unable to parse color from object: "+JSON.stringify(K));this.model=b[ye];const{labels:be}=P[this.model],Qe=[];for(ae=0;ae(K%360+360)%360),saturationl:C("hsl",1,g(100)),lightness:C("hsl",2,g(100)),saturationv:C("hsv",1,g(100)),value:C("hsv",2,g(100)),chroma:C("hcg",1,g(100)),gray:C("hcg",2,g(100)),white:C("hwb",1,g(100)),wblack:C("hwb",2,g(100)),cyan:C("cmyk",0,g(100)),magenta:C("cmyk",1,g(100)),yellow:C("cmyk",2,g(100)),black:C("cmyk",3,g(100)),x:C("xyz",0,g(95.047)),y:C("xyz",1,g(100)),z:C("xyz",2,g(108.833)),l:C("lab",0,g(100)),a:C("lab",1),b:C("lab",2),keyword(K){return K!==void 0?new V(K):P[this.model].keyword(this.color)},hex(K){return K!==void 0?new V(K):v.to.hex(this.rgb().round().color)},hexa(K){if(K!==void 0)return new V(K);const he=this.rgb().round().color;let ae=Math.round(this.valpha*255).toString(16).toUpperCase();return ae.length===1&&(ae="0"+ae),v.to.hex(he)+ae},rgbNumber(){const K=this.rgb().color;return(K[0]&255)<<16|(K[1]&255)<<8|K[2]&255},luminosity(){const K=this.rgb().color,he=[];for(const[ae,fe]of K.entries()){const xe=fe/255;he[ae]=xe<=.04045?xe/12.92:ty((xe+.055)/1.055,2.4)}return .2126*he[0]+.7152*he[1]+.0722*he[2]},contrast(K){const he=this.luminosity(),ae=K.luminosity();return he>ae?(he+.05)/(ae+.05):(ae+.05)/(he+.05)},level(K){const he=this.contrast(K);return he>=7?"AAA":he>=4.5?"AA":""},isDark(){const K=this.rgb().color;return(K[0]*2126+K[1]*7152+K[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const K=this.rgb();for(let he=0;he<3;he++)K.color[he]=255-K.color[he];return K},lighten(K){const he=this.hsl();return he.color[2]+=he.color[2]*K,he},darken(K){const he=this.hsl();return he.color[2]-=he.color[2]*K,he},saturate(K){const he=this.hsl();return he.color[1]+=he.color[1]*K,he},desaturate(K){const he=this.hsl();return he.color[1]-=he.color[1]*K,he},whiten(K){const he=this.hwb();return he.color[1]+=he.color[1]*K,he},blacken(K){const he=this.hwb();return he.color[2]+=he.color[2]*K,he},grayscale(){const K=this.rgb().color,he=K[0]*.3+K[1]*.59+K[2]*.11;return V.rgb(he,he,he)},fade(K){return this.alpha(this.valpha-this.valpha*K)},opaquer(K){return this.alpha(this.valpha+this.valpha*K)},rotate(K){const he=this.hsl();let ae=he.color[0];return ae=(ae+K)%360,ae=ae<0?360+ae:ae,he.color[0]=ae,he},mix(K,he){if(!K||!K.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof K);const ae=K.rgb(),fe=this.rgb(),xe=he===void 0?.5:he,ye=2*xe-1,be=ae.alpha()-fe.alpha(),Qe=((ye*be===-1?ye:(ye+be)/(1+ye*be))+1)/2,Ve=1-Qe;return V.rgb(Qe*ae.red()+Ve*fe.red(),Qe*ae.green()+Ve*fe.green(),Qe*ae.blue()+Ve*fe.blue(),ae.alpha()*xe+fe.alpha()*(1-xe))}};for(const K of Object.keys(P)){if(w.includes(K))continue;const{channels:he}=P[K];V.prototype[K]=function(...ae){return this.model===K?new V(this):ae.length>0?new V(ae,K):new V([...A(P[this.model][K].raw(this.color)),this.valpha],K)},V[K]=function(...ae){let fe=ae[0];return typeof fe=="number"&&(fe=O(ae,he)),new V(fe,K)}}function k(K,he){return Number(K.toFixed(he))}function R(K){return function(he){return k(he,K)}}function C(K,he,ae){K=Array.isArray(K)?K:[K];for(const fe of K)(B[fe]||(B[fe]=[]))[he]=ae;return K=K[0],function(fe){let xe;return fe!==void 0?(ae&&(fe=ae(fe)),xe=this[K](),xe.color[he]=fe,xe):(xe=this[K]().color[he],ae&&(xe=ae(xe)),xe)}}function g(K){return function(he){return Math.max(0,Math.min(K,he))}}function A(K){return Array.isArray(K)?K:[K]}function O(K,he){for(let ae=0;ae1&&(C-=1)),[C*360,g*100,he*100]},w.rgb.hwb=function(B){const V=B[0],k=B[1];let R=B[2];const C=w.rgb.hsl(B)[0],g=1/255*Math.min(V,Math.min(k,R));return R=1-1/255*Math.max(V,Math.max(k,R)),[C,g*100,R*100]},w.rgb.cmyk=function(B){const V=B[0]/255,k=B[1]/255,R=B[2]/255,C=Math.min(1-V,1-k,1-R),g=(1-V-C)/(1-C)||0,A=(1-k-C)/(1-C)||0,O=(1-R-C)/(1-C)||0;return[g*100,A*100,O*100,C*100]};function b(B,V){return ty(B[0]-V[0],2)+ty(B[1]-V[1],2)+ty(B[2]-V[2],2)}w.rgb.keyword=function(B){const V=P[B];if(V)return V;let k=1/0,R;for(const C of Object.keys(v)){const g=v[C],A=b(B,g);A.04045?ty((V+.055)/1.055,2.4):V/12.92,k=k>.04045?ty((k+.055)/1.055,2.4):k/12.92,R=R>.04045?ty((R+.055)/1.055,2.4):R/12.92;const C=V*.4124+k*.3576+R*.1805,g=V*.2126+k*.7152+R*.0722,A=V*.0193+k*.1192+R*.9505;return[C*100,g*100,A*100]},w.rgb.lab=function(B){const V=w.rgb.xyz(B);let k=V[0],R=V[1],C=V[2];k/=95.047,R/=100,C/=108.883,k=k>.008856?ty(k,1/3):7.787*k+16/116,R=R>.008856?ty(R,1/3):7.787*R+16/116,C=C>.008856?ty(C,1/3):7.787*C+16/116;const g=116*R-16,A=500*(k-R),O=200*(R-C);return[g,A,O]},w.hsl.rgb=function(B){const V=B[0]/360,k=B[1]/100,R=B[2]/100;let C,g,A;if(k===0)return A=R*255,[A,A,A];R<.5?C=R*(1+k):C=R+k-R*k;const O=2*R-C,K=[0,0,0];for(let he=0;he<3;he++)g=V+1/3*-(he-1),g<0&&g++,g>1&&g--,6*g<1?A=O+(C-O)*6*g:2*g<1?A=C:3*g<2?A=O+(C-O)*(2/3-g)*6:A=O,K[he]=A*255;return K},w.hsl.hsv=function(B){const V=B[0];let k=B[1]/100,R=B[2]/100,C=k;const g=Math.max(R,.01);R*=2,k*=R<=1?R:2-R,C*=g<=1?g:2-g;const A=(R+k)/2,O=R===0?2*C/(g+C):2*k/(R+k);return[V,O*100,A*100]},w.hsv.rgb=function(B){const V=B[0]/60,k=B[1]/100;let R=B[2]/100;const C=Math.floor(V)%6,g=V-Math.floor(V),A=255*R*(1-k),O=255*R*(1-k*g),K=255*R*(1-k*(1-g));switch(R*=255,C){case 0:return[R,K,A];case 1:return[O,R,A];case 2:return[A,R,K];case 3:return[A,O,R];case 4:return[K,A,R];case 5:return[R,A,O]}},w.hsv.hsl=function(B){const V=B[0],k=B[1]/100,R=B[2]/100,C=Math.max(R,.01);let g,A;A=(2-k)*R;const O=(2-k)*C;return g=k*C,g/=O<=1?O:2-O,g=g||0,A/=2,[V,g*100,A*100]},w.hwb.rgb=function(B){const V=B[0]/360;let k=B[1]/100,R=B[2]/100;const C=k+R;let g;C>1&&(k/=C,R/=C);const A=Math.floor(6*V),O=1-R;g=6*V-A,A&1&&(g=1-g);const K=k+g*(O-k);let he,ae,fe;switch(A){default:case 6:case 0:he=O,ae=K,fe=k;break;case 1:he=K,ae=O,fe=k;break;case 2:he=k,ae=O,fe=K;break;case 3:he=k,ae=K,fe=O;break;case 4:he=K,ae=k,fe=O;break;case 5:he=O,ae=k,fe=K;break}return[he*255,ae*255,fe*255]},w.cmyk.rgb=function(B){const V=B[0]/100,k=B[1]/100,R=B[2]/100,C=B[3]/100,g=1-Math.min(1,V*(1-C)+C),A=1-Math.min(1,k*(1-C)+C),O=1-Math.min(1,R*(1-C)+C);return[g*255,A*255,O*255]},w.xyz.rgb=function(B){const V=B[0]/100,k=B[1]/100,R=B[2]/100;let C,g,A;return C=V*3.2406+k*-1.5372+R*-.4986,g=V*-.9689+k*1.8758+R*.0415,A=V*.0557+k*-.204+R*1.057,C=C>.0031308?1.055*ty(C,1/2.4)-.055:C*12.92,g=g>.0031308?1.055*ty(g,1/2.4)-.055:g*12.92,A=A>.0031308?1.055*ty(A,1/2.4)-.055:A*12.92,C=Math.min(Math.max(0,C),1),g=Math.min(Math.max(0,g),1),A=Math.min(Math.max(0,A),1),[C*255,g*255,A*255]},w.xyz.lab=function(B){let V=B[0],k=B[1],R=B[2];V/=95.047,k/=100,R/=108.883,V=V>.008856?ty(V,1/3):7.787*V+16/116,k=k>.008856?ty(k,1/3):7.787*k+16/116,R=R>.008856?ty(R,1/3):7.787*R+16/116;const C=116*k-16,g=500*(V-k),A=200*(k-R);return[C,g,A]},w.lab.xyz=function(B){const V=B[0],k=B[1],R=B[2];let C,g,A;g=(V+16)/116,C=k/500+g,A=g-R/200;const O=ty(g,3),K=ty(C,3),he=ty(A,3);return g=O>.008856?O:(g-16/116)/7.787,C=K>.008856?K:(C-16/116)/7.787,A=he>.008856?he:(A-16/116)/7.787,C*=95.047,g*=100,A*=108.883,[C,g,A]},w.lab.lch=function(B){const V=B[0],k=B[1],R=B[2];let C;C=Math.atan2(R,k)*360/2/Math.PI,C<0&&(C+=360);const A=Math.sqrt(k*k+R*R);return[V,A,C]},w.lch.lab=function(B){const V=B[0],k=B[1],C=B[2]/360*2*Math.PI,g=k*Math.cos(C),A=k*Math.sin(C);return[V,g,A]},w.rgb.ansi16=function(B,V=null){const[k,R,C]=B;let g=V===null?w.rgb.hsv(B)[2]:V;if(g=Math.round(g/50),g===0)return 30;let A=30+(Math.round(C/255)<<2|Math.round(R/255)<<1|Math.round(k/255));return g===2&&(A+=60),A},w.hsv.ansi16=function(B){return w.rgb.ansi16(w.hsv.rgb(B),B[2])},w.rgb.ansi256=function(B){const V=B[0],k=B[1],R=B[2];return V===k&&k===R?V<8?16:V>248?231:Math.round((V-8)/247*24)+232:16+36*Math.round(V/255*5)+6*Math.round(k/255*5)+Math.round(R/255*5)},w.ansi16.rgb=function(B){let V=B%10;if(V===0||V===7)return B>50&&(V+=3.5),V=V/10.5*255,[V,V,V];const k=(~~(B>50)+1)*.5,R=(V&1)*k*255,C=(V>>1&1)*k*255,g=(V>>2&1)*k*255;return[R,C,g]},w.ansi256.rgb=function(B){if(B>=232){const g=(B-232)*10+8;return[g,g,g]}B-=16;let V;const k=Math.floor(B/36)/5*255,R=Math.floor((V=B%36)/6)/5*255,C=V%6/5*255;return[k,R,C]},w.rgb.hex=function(B){const k=(((Math.round(B[0])&255)<<16)+((Math.round(B[1])&255)<<8)+(Math.round(B[2])&255)).toString(16).toUpperCase();return"000000".substring(k.length)+k},w.hex.rgb=function(B){const V=B.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!V)return[0,0,0];let k=V[0];V[0].length===3&&(k=k.split("").map(O=>O+O).join(""));const R=parseInt(k,16),C=R>>16&255,g=R>>8&255,A=R&255;return[C,g,A]},w.rgb.hcg=function(B){const V=B[0]/255,k=B[1]/255,R=B[2]/255,C=Math.max(Math.max(V,k),R),g=Math.min(Math.min(V,k),R),A=C-g;let O,K;return A<1?O=g/(1-A):O=0,A<=0?K=0:C===V?K=(k-R)/A%6:C===k?K=2+(R-V)/A:K=4+(V-k)/A,K/=6,K%=1,[K*360,A*100,O*100]},w.hsl.hcg=function(B){const V=B[1]/100,k=B[2]/100,R=k<.5?2*V*k:2*V*(1-k);let C=0;return R<1&&(C=(k-.5*R)/(1-R)),[B[0],R*100,C*100]},w.hsv.hcg=function(B){const V=B[1]/100,k=B[2]/100,R=V*k;let C=0;return R<1&&(C=(k-R)/(1-R)),[B[0],R*100,C*100]},w.hcg.rgb=function(B){const V=B[0]/360,k=B[1]/100,R=B[2]/100;if(k===0)return[R*255,R*255,R*255];const C=[0,0,0],g=V%1*6,A=g%1,O=1-A;let K=0;switch(Math.floor(g)){case 0:C[0]=1,C[1]=A,C[2]=0;break;case 1:C[0]=O,C[1]=1,C[2]=0;break;case 2:C[0]=0,C[1]=1,C[2]=A;break;case 3:C[0]=0,C[1]=O,C[2]=1;break;case 4:C[0]=A,C[1]=0,C[2]=1;break;default:C[0]=1,C[1]=0,C[2]=O}return K=(1-k)*R,[(k*C[0]+K)*255,(k*C[1]+K)*255,(k*C[2]+K)*255]},w.hcg.hsv=function(B){const V=B[1]/100,k=B[2]/100,R=V+k*(1-V);let C=0;return R>0&&(C=V/R),[B[0],C*100,R*100]},w.hcg.hsl=function(B){const V=B[1]/100,R=B[2]/100*(1-V)+.5*V;let C=0;return R>0&&R<.5?C=V/(2*R):R>=.5&&R<1&&(C=V/(2*(1-R))),[B[0],C*100,R*100]},w.hcg.hwb=function(B){const V=B[1]/100,k=B[2]/100,R=V+k*(1-V);return[B[0],(R-V)*100,(1-R)*100]},w.hwb.hcg=function(B){const V=B[1]/100,R=1-B[2]/100,C=R-V;let g=0;return C<1&&(g=(R-C)/(1-C)),[B[0],C*100,g*100]},w.apple.rgb=function(B){return[B[0]/65535*255,B[1]/65535*255,B[2]/65535*255]},w.rgb.apple=function(B){return[B[0]/255*65535,B[1]/255*65535,B[2]/255*65535]},w.gray.rgb=function(B){return[B[0]/100*255,B[0]/100*255,B[0]/100*255]},w.gray.hsl=function(B){return[0,0,B[0]]},w.gray.hsv=w.gray.hsl,w.gray.hwb=function(B){return[0,100,B[0]]},w.gray.cmyk=function(B){return[0,0,0,B[0]]},w.gray.lab=function(B){return[B[0],0,0]},w.gray.hex=function(B){const V=Math.round(B[0]/100*255)&255,R=((V<<16)+(V<<8)+V).toString(16).toUpperCase();return"000000".substring(R.length)+R},w.rgb.gray=function(B){return[(B[0]+B[1]+B[2])/3/255*100]}},80978:function(yt,Y,y){const v=y(12956),P=y(87774),w={},b=Object.keys(v);function B(k){const R=function(...C){const g=C[0];return g==null?g:(g.length>1&&(C=g),k(C))};return"conversion"in k&&(R.conversion=k.conversion),R}function V(k){const R=function(...C){const g=C[0];if(g==null)return g;g.length>1&&(C=g);const A=k(C);if(typeof A=="object")for(let O=A.length,K=0;K{w[k]={},Object.defineProperty(w[k],"channels",{value:v[k].channels}),Object.defineProperty(w[k],"labels",{value:v[k].labels});const R=P(k);Object.keys(R).forEach(g=>{const A=R[g];w[k][g]=V(A),w[k][g].raw=B(A)})}),yt.exports=w},87774:function(yt,Y,y){const v=y(12956);function P(){const V={},k=Object.keys(v);for(let R=k.length,C=0;CTe||Ue.push({node:Be,dist:Xt})}for(;Ue.length&&!Ue.peek().node.children;){var St=Ue.pop(),nt=St.node,wt=xe(nt,pt,st),lt=xe(nt,Ae,De);if(St.dist=pt.minX&&Ve[0]<=pt.maxX&&Ve[1]>=pt.minY&&Ve[1]<=pt.maxY}function g(Ve,pt,st){for(var Ae=Math.min(Ve[0],pt[0]),De=Math.min(Ve[1],pt[1]),Te=Math.max(Ve[0],pt[0]),Me=Math.max(Ve[1],pt[1]),Ue=st.search({minX:Ae,minY:De,maxX:Te,maxY:Me}),Pe=0;Pe0!=A(Ve,pt,Ae)>0&&A(st,Ae,Ve)>0!=A(st,Ae,pt)>0}function K(Ve){var pt=Ve.p,st=Ve.next.p;return Ve.minX=Math.min(pt[0],st[0]),Ve.minY=Math.min(pt[1],st[1]),Ve.maxX=Math.max(pt[0],st[0]),Ve.maxY=Math.max(pt[1],st[1]),Ve}function he(Ve){for(var pt=Ve[0],st=Ve[0],Ae=Ve[0],De=Ve[0],Te=0;TeAe[0]&&(Ae=Me),Me[1]De[1]&&(De=Me)}var Ue=[pt,st,Ae,De],Pe=Ue.slice();for(Te=0;Te1?(Ae=st[0],De=st[1]):Ue>0&&(Ae+=Te*Ue,De+=Me*Ue)}return Te=Ve[0]-Ae,Me=Ve[1]-De,Te*Te+Me*Me}function ye(Ve,pt,st,Ae,De,Te,Me,Ue){var Pe=st-Ve,Xe=Ae-pt,Be=Me-De,Xt=Ue-Te,St=Ve-De,nt=pt-Te,wt=Pe*Pe+Xe*Xe,lt=Pe*Be+Xe*Xt,Kt=Be*Be+Xt*Xt,Mt=Pe*St+Xe*nt,hn=Be*St+Xt*nt,un=wt*Kt-lt*lt,Sr,ii,Ii,Ni,eo=un,ti=un;un===0?(ii=0,eo=1,Ni=hn,ti=Kt):(ii=lt*hn-Kt*Mt,Ni=wt*hn-lt*Mt,ii<0?(ii=0,Ni=hn,ti=Kt):ii>eo&&(ii=eo,Ni=hn+lt,ti=Kt)),Ni<0?(Ni=0,-Mt<0?ii=0:-Mt>wt?ii=eo:(ii=-Mt,eo=wt)):Ni>ti&&(Ni=ti,-Mt+lt<0?ii=0:-Mt+lt>wt?ii=eo:(ii=-Mt+lt,eo=wt)),Sr=ii===0?0:ii/eo,Ii=Ni===0?0:Ni/ti;var Is=(1-Sr)*Ve+Sr*st,Ns=(1-Sr)*pt+Sr*Ae,Se=(1-Ii)*De+Ii*Me,Xi=(1-Ii)*Te+Ii*Ue,Yi=Se-Is,fo=Xi-Ns;return Yi*Yi+fo*fo}function be(Ve,pt){return Ve[0]===pt[0]?Ve[1]-pt[1]:Ve[0]-pt[0]}function Qe(Ve){Ve.sort(be);for(var pt=[],st=0;st=2&&A(pt[pt.length-2],pt[pt.length-1],Ve[st])<=0;)pt.pop();pt.push(Ve[st])}for(var Ae=[],De=Ve.length-1;De>=0;De--){for(;Ae.length>=2&&A(Ae[Ae.length-2],Ae[Ae.length-1],Ve[De])<=0;)Ae.pop();Ae.push(Ve[De])}return Ae.pop(),pt.pop(),pt.concat(Ae)}},81662:function(yt){(function(Y,y){yt.exports=y()})(this,function(){"use strict";function Y(ae,fe,xe,ye,be){(function Qe(Ve,pt,st,Ae,De){for(;Ae>st;){if(Ae-st>600){var Te=Ae-st+1,Me=pt-st+1,Ue=Math.log(Te),Pe=.5*Math.exp(2*Ue/3),Xe=.5*Math.sqrt(Ue*Pe*(Te-Pe)/Te)*(Me-Te/2<0?-1:1),Be=Math.max(st,Math.floor(pt-Me*Pe/Te+Xe)),Xt=Math.min(Ae,Math.floor(pt+(Te-Me)*Pe/Te+Xe));Qe(Ve,pt,Be,Xt,De)}var St=Ve[pt],nt=st,wt=Ae;for(y(Ve,st,pt),De(Ve[Ae],St)>0&&y(Ve,st,Ae);nt0;)wt--}De(Ve[st],St)===0?y(Ve,st,wt):y(Ve,++wt,Ae),wt<=pt&&(st=wt+1),pt<=wt&&(Ae=wt-1)}})(ae,fe,xe||0,ye||ae.length-1,be||v)}function y(ae,fe,xe){var ye=ae[fe];ae[fe]=ae[xe],ae[xe]=ye}function v(ae,fe){return aefe?1:0}var P=function(ae){ae===void 0&&(ae=9),this._maxEntries=Math.max(4,ae),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function w(ae,fe,xe){if(!xe)return fe.indexOf(ae);for(var ye=0;ye=ae.minX&&fe.maxY>=ae.minY}function K(ae){return{children:ae,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function he(ae,fe,xe,ye,be){for(var Qe=[fe,xe];Qe.length;)if(!((xe=Qe.pop())-(fe=Qe.pop())<=ye)){var Ve=fe+Math.ceil((xe-fe)/ye/2)*ye;Y(ae,Ve,fe,xe,be),Qe.push(fe,Ve,Ve,xe)}}return P.prototype.all=function(){return this._all(this.data,[])},P.prototype.search=function(ae){var fe=this.data,xe=[];if(!O(ae,fe))return xe;for(var ye=this.toBBox,be=[];fe;){for(var Qe=0;Qe=0&&be[fe].children.length>this._maxEntries;)this._split(be,fe),fe--;this._adjustParentBBoxes(ye,be,fe)},P.prototype._split=function(ae,fe){var xe=ae[fe],ye=xe.children.length,be=this._minEntries;this._chooseSplitAxis(xe,be,ye);var Qe=this._chooseSplitIndex(xe,be,ye),Ve=K(xe.children.splice(Qe,xe.children.length-Qe));Ve.height=xe.height,Ve.leaf=xe.leaf,b(xe,this.toBBox),b(Ve,this.toBBox),fe?ae[fe-1].children.push(Ve):this._splitRoot(xe,Ve)},P.prototype._splitRoot=function(ae,fe){this.data=K([ae,fe]),this.data.height=ae.height+1,this.data.leaf=!1,b(this.data,this.toBBox)},P.prototype._chooseSplitIndex=function(ae,fe,xe){for(var ye,be,Qe,Ve,pt,st,Ae,De=1/0,Te=1/0,Me=fe;Me<=xe-fe;Me++){var Ue=B(ae,0,Me,this.toBBox),Pe=B(ae,Me,xe,this.toBBox),Xe=(be=Ue,Qe=Pe,Ve=void 0,pt=void 0,st=void 0,Ae=void 0,Ve=Math.max(be.minX,Qe.minX),pt=Math.max(be.minY,Qe.minY),st=Math.min(be.maxX,Qe.maxX),Ae=Math.min(be.maxY,Qe.maxY),Math.max(0,st-Ve)*Math.max(0,Ae-pt)),Be=C(Ue)+C(Pe);Xe=fe;De--){var Te=ae.children[De];V(Ve,ae.leaf?be(Te):Te),pt+=g(Ve)}return pt},P.prototype._adjustParentBBoxes=function(ae,fe,xe){for(var ye=xe;ye>=0;ye--)V(fe[ye],ae)},P.prototype._condense=function(ae){for(var fe=ae.length-1,xe=void 0;fe>=0;fe--)ae[fe].children.length===0?fe>0?(xe=ae[fe-1].children).splice(xe.indexOf(ae[fe]),1):this.clear():b(ae[fe],this.toBBox)},P})},54098:function(yt,Y){var y=typeof self!="undefined"?self:this,v=function(){function w(){this.fetch=!1,this.DOMException=y.DOMException}return w.prototype=y,new w}();(function(w){var b=function(B){var V={searchParams:"URLSearchParams"in w,iterable:"Symbol"in w&&"iterator"in Symbol,blob:"FileReader"in w&&"Blob"in w&&function(){try{return new Blob,!0}catch(Pe){return!1}}(),formData:"FormData"in w,arrayBuffer:"ArrayBuffer"in w};function k(Pe){return Pe&&DataView.prototype.isPrototypeOf(Pe)}if(V.arrayBuffer)var R=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],C=ArrayBuffer.isView||function(Pe){return Pe&&R.indexOf(Object.prototype.toString.call(Pe))>-1};function g(Pe){if(typeof Pe!="string"&&(Pe=String(Pe)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(Pe))throw new TypeError("Invalid character in header field name");return Pe.toLowerCase()}function A(Pe){return typeof Pe!="string"&&(Pe=String(Pe)),Pe}function O(Pe){var Xe={next:function(){var Be=Pe.shift();return{done:Be===void 0,value:Be}}};return V.iterable&&(Xe[Symbol.iterator]=function(){return Xe}),Xe}function K(Pe){this.map={},Pe instanceof K?Pe.forEach(function(Xe,Be){this.append(Be,Xe)},this):Array.isArray(Pe)?Pe.forEach(function(Xe){this.append(Xe[0],Xe[1])},this):Pe&&Object.getOwnPropertyNames(Pe).forEach(function(Xe){this.append(Xe,Pe[Xe])},this)}K.prototype.append=function(Pe,Xe){Pe=g(Pe),Xe=A(Xe);var Be=this.map[Pe];this.map[Pe]=Be?Be+", "+Xe:Xe},K.prototype.delete=function(Pe){delete this.map[g(Pe)]},K.prototype.get=function(Pe){return Pe=g(Pe),this.has(Pe)?this.map[Pe]:null},K.prototype.has=function(Pe){return this.map.hasOwnProperty(g(Pe))},K.prototype.set=function(Pe,Xe){this.map[g(Pe)]=A(Xe)},K.prototype.forEach=function(Pe,Xe){for(var Be in this.map)this.map.hasOwnProperty(Be)&&Pe.call(Xe,this.map[Be],Be,this)},K.prototype.keys=function(){var Pe=[];return this.forEach(function(Xe,Be){Pe.push(Be)}),O(Pe)},K.prototype.values=function(){var Pe=[];return this.forEach(function(Xe){Pe.push(Xe)}),O(Pe)},K.prototype.entries=function(){var Pe=[];return this.forEach(function(Xe,Be){Pe.push([Be,Xe])}),O(Pe)},V.iterable&&(K.prototype[Symbol.iterator]=K.prototype.entries);function he(Pe){if(Pe.bodyUsed)return Promise.reject(new TypeError("Already read"));Pe.bodyUsed=!0}function ae(Pe){return new Promise(function(Xe,Be){Pe.onload=function(){Xe(Pe.result)},Pe.onerror=function(){Be(Pe.error)}})}function fe(Pe){var Xe=new FileReader,Be=ae(Xe);return Xe.readAsArrayBuffer(Pe),Be}function xe(Pe){var Xe=new FileReader,Be=ae(Xe);return Xe.readAsText(Pe),Be}function ye(Pe){for(var Xe=new Uint8Array(Pe),Be=new Array(Xe.length),Xt=0;Xt-1?Xe:Pe}function st(Pe,Xe){Xe=Xe||{};var Be=Xe.body;if(Pe instanceof st){if(Pe.bodyUsed)throw new TypeError("Already read");this.url=Pe.url,this.credentials=Pe.credentials,Xe.headers||(this.headers=new K(Pe.headers)),this.method=Pe.method,this.mode=Pe.mode,this.signal=Pe.signal,!Be&&Pe._bodyInit!=null&&(Be=Pe._bodyInit,Pe.bodyUsed=!0)}else this.url=String(Pe);if(this.credentials=Xe.credentials||this.credentials||"same-origin",(Xe.headers||!this.headers)&&(this.headers=new K(Xe.headers)),this.method=pt(Xe.method||this.method||"GET"),this.mode=Xe.mode||this.mode||null,this.signal=Xe.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Be)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Be)}st.prototype.clone=function(){return new st(this,{body:this._bodyInit})};function Ae(Pe){var Xe=new FormData;return Pe.trim().split("&").forEach(function(Be){if(Be){var Xt=Be.split("="),St=Xt.shift().replace(/\+/g," "),nt=Xt.join("=").replace(/\+/g," ");Xe.append(decodeURIComponent(St),decodeURIComponent(nt))}}),Xe}function De(Pe){var Xe=new K,Be=Pe.replace(/\r?\n[\t ]+/g," ");return Be.split(/\r?\n/).forEach(function(Xt){var St=Xt.split(":"),nt=St.shift().trim();if(nt){var wt=St.join(":").trim();Xe.append(nt,wt)}}),Xe}Qe.call(st.prototype);function Te(Pe,Xe){Xe||(Xe={}),this.type="default",this.status=Xe.status===void 0?200:Xe.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in Xe?Xe.statusText:"OK",this.headers=new K(Xe.headers),this.url=Xe.url||"",this._initBody(Pe)}Qe.call(Te.prototype),Te.prototype.clone=function(){return new Te(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new K(this.headers),url:this.url})},Te.error=function(){var Pe=new Te(null,{status:0,statusText:""});return Pe.type="error",Pe};var Me=[301,302,303,307,308];Te.redirect=function(Pe,Xe){if(Me.indexOf(Xe)===-1)throw new RangeError("Invalid status code");return new Te(null,{status:Xe,headers:{location:Pe}})},B.DOMException=w.DOMException;try{new B.DOMException}catch(Pe){B.DOMException=function(Xe,Be){this.message=Xe,this.name=Be;var Xt=Error(Xe);this.stack=Xt.stack},B.DOMException.prototype=Object.create(Error.prototype),B.DOMException.prototype.constructor=B.DOMException}function Ue(Pe,Xe){return new Promise(function(Be,Xt){var St=new st(Pe,Xe);if(St.signal&&St.signal.aborted)return Xt(new B.DOMException("Aborted","AbortError"));var nt=new XMLHttpRequest;function wt(){nt.abort()}nt.onload=function(){var lt={status:nt.status,statusText:nt.statusText,headers:De(nt.getAllResponseHeaders()||"")};lt.url="responseURL"in nt?nt.responseURL:lt.headers.get("X-Request-URL");var Kt="response"in nt?nt.response:nt.responseText;Be(new Te(Kt,lt))},nt.onerror=function(){Xt(new TypeError("Network request failed"))},nt.ontimeout=function(){Xt(new TypeError("Network request failed"))},nt.onabort=function(){Xt(new B.DOMException("Aborted","AbortError"))},nt.open(St.method,St.url,!0),St.credentials==="include"?nt.withCredentials=!0:St.credentials==="omit"&&(nt.withCredentials=!1),"responseType"in nt&&V.blob&&(nt.responseType="blob"),St.headers.forEach(function(lt,Kt){nt.setRequestHeader(Kt,lt)}),St.signal&&(St.signal.addEventListener("abort",wt),nt.onreadystatechange=function(){nt.readyState===4&&St.signal.removeEventListener("abort",wt)}),nt.send(typeof St._bodyInit=="undefined"?null:St._bodyInit)})}return Ue.polyfill=!0,w.fetch||(w.fetch=Ue,w.Headers=K,w.Request=st,w.Response=Te),B.Headers=K,B.Request=st,B.Response=Te,B.fetch=Ue,Object.defineProperty(B,"__esModule",{value:!0}),B}({})})(v),v.fetch.ponyfill=!0,delete v.fetch.polyfill;var P=v;Y=P.fetch,Y.default=P.fetch,Y.fetch=P.fetch,Y.Headers=P.Headers,Y.Request=P.Request,Y.Response=P.Response,yt.exports=Y},61272:function(yt,Y,y){"use strict";y.d(Y,{j2:function(){return v},b4:function(){return k},YF:function(){return P},We:function(){return R},TS:function(){return Qe},VR:function(){return pt},G9:function(){return fe},ly:function(){return xe},sd:function(){return ae}});function v(st,Ae){return stAe?1:st>=Ae?0:NaN}function P(st){return st.length===1&&(st=w(st)),{left:function(Ae,De,Te,Me){for(Te==null&&(Te=0),Me==null&&(Me=Ae.length);Te>>1;st(Ae[Ue],De)<0?Te=Ue+1:Me=Ue}return Te},right:function(Ae,De,Te,Me){for(Te==null&&(Te=0),Me==null&&(Me=Ae.length);Te>>1;st(Ae[Ue],De)>0?Me=Ue:Te=Ue+1}return Te}}}function w(st){return function(Ae,De){return v(st(Ae),De)}}var b=P(v),B=b.right,V=b.left,k=B;function R(st,Ae){var De=st.length,Te=-1,Me,Ue,Pe;if(Ae==null){for(;++Te=Me)for(Ue=Pe=Me;++TeMe&&(Ue=Me),Pe=Me)for(Ue=Pe=Me;++TeMe&&(Ue=Me),Pe0)return[st];if((Te=Ae0)for(st=Math.ceil(st/Xe),Ae=Math.floor(Ae/Xe),Pe=new Array(Ue=Math.ceil(Ae-st+1));++Me=0?(Ue>=O?10:Ue>=K?5:Ue>=he?2:1)*Math.pow(10,Me):-Math.pow(10,-Me)/(Ue>=O?10:Ue>=K?5:Ue>=he?2:1)}function xe(st,Ae,De){var Te=Math.abs(Ae-st)/Math.max(0,De),Me=Math.pow(10,Math.floor(Math.log(Te)/Math.LN10)),Ue=Te/Me;return Ue>=O?Me*=10:Ue>=K?Me*=5:Ue>=he&&(Me*=2),Aent;)wt.pop(),--lt;var Kt=new Array(lt+1),Mt;for(Ue=0;Ue<=lt;++Ue)Mt=Kt[Ue]=[],Mt.x0=Ue>0?wt[Ue-1]:St,Mt.x1=Ue=0;)for(Pe=st[Ae],De=Pe.length;--De>=0;)Ue[--Me]=Pe[De];return Ue}function Ve(st){return st===null?NaN:+st}function pt(st,Ae,De){if(De==null&&(De=Ve),!!(Te=st.length)){if((Ae=+Ae)<=0||Te<2)return+De(st[0],0,st);if(Ae>=1)return+De(st[Te-1],Te-1,st);var Te,Me=(Te-1)*Ae,Ue=Math.floor(Me),Pe=+De(st[Ue],Ue,st),Xe=+De(st[Ue+1],Ue+1,st);return Pe+(Xe-Pe)*(Me-Ue)}}},27484:function(yt){(function(Y,y){yt.exports=y()})(this,function(){"use strict";var Y=1e3,y=6e4,v=36e5,P="millisecond",w="second",b="minute",B="hour",V="day",k="week",R="month",C="quarter",g="year",A="date",O="Invalid Date",K=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,he=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ae={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Me){var Ue=["th","st","nd","rd"],Pe=Me%100;return"["+Me+(Ue[(Pe-20)%10]||Ue[Pe]||Ue[0])+"]"}},fe=function(Me,Ue,Pe){var Xe=String(Me);return!Xe||Xe.length>=Ue?Me:""+Array(Ue+1-Xe.length).join(Pe)+Me},xe={s:fe,z:function(Me){var Ue=-Me.utcOffset(),Pe=Math.abs(Ue),Xe=Math.floor(Pe/60),Be=Pe%60;return(Ue<=0?"+":"-")+fe(Xe,2,"0")+":"+fe(Be,2,"0")},m:function Me(Ue,Pe){if(Ue.date()1)return Me(St[0])}else{var nt=Ue.name;be[nt]=Ue,Be=nt}return!Xe&&Be&&(ye=Be),Be||!Xe&&ye},st=function(Me,Ue){if(Ve(Me))return Me.clone();var Pe=typeof Ue=="object"?Ue:{};return Pe.date=Me,Pe.args=arguments,new De(Pe)},Ae=xe;Ae.l=pt,Ae.i=Ve,Ae.w=function(Me,Ue){return st(Me,{locale:Ue.$L,utc:Ue.$u,x:Ue.$x,$offset:Ue.$offset})};var De=function(){function Me(Pe){this.$L=pt(Pe.locale,null,!0),this.parse(Pe),this.$x=this.$x||Pe.x||{},this[Qe]=!0}var Ue=Me.prototype;return Ue.parse=function(Pe){this.$d=function(Xe){var Be=Xe.date,Xt=Xe.utc;if(Be===null)return new Date(NaN);if(Ae.u(Be))return new Date;if(Be instanceof Date)return new Date(Be);if(typeof Be=="string"&&!/Z$/i.test(Be)){var St=Be.match(K);if(St){var nt=St[2]-1||0,wt=(St[7]||"0").substring(0,3);return Xt?new Date(Date.UTC(St[1],nt,St[3]||1,St[4]||0,St[5]||0,St[6]||0,wt)):new Date(St[1],nt,St[3]||1,St[4]||0,St[5]||0,St[6]||0,wt)}}return new Date(Be)}(Pe),this.init()},Ue.init=function(){var Pe=this.$d;this.$y=Pe.getFullYear(),this.$M=Pe.getMonth(),this.$D=Pe.getDate(),this.$W=Pe.getDay(),this.$H=Pe.getHours(),this.$m=Pe.getMinutes(),this.$s=Pe.getSeconds(),this.$ms=Pe.getMilliseconds()},Ue.$utils=function(){return Ae},Ue.isValid=function(){return this.$d.toString()!==O},Ue.isSame=function(Pe,Xe){var Be=st(Pe);return this.startOf(Xe)<=Be&&Be<=this.endOf(Xe)},Ue.isAfter=function(Pe,Xe){return st(Pe)0&&typeof O[0]!="number")}function A(O,K,he){var ae,fe;if(typeof O!=typeof K||C(O)||C(K)||O.prototype!==K.prototype||P(O)!==P(K))return!1;var xe=b(O),ye=b(K);if(xe!==ye)return!1;if(xe||ye)return O.source===K.source&&B(O)===B(K);if(V(O)&&V(K))return k.call(O)===k.call(K);var be=g(O),Qe=g(K);if(be!==Qe)return!1;if(be||Qe){if(O.length!==K.length)return!1;for(ae=0;ae=0;ae--)if(Ve[ae]!=pt[ae])return!1;for(ae=Ve.length-1;ae>=0;ae--)if(fe=Ve[ae],!R(O[fe],K[fe],he))return!1;return!0}yt.exports=R},12296:function(yt,Y,y){"use strict";var v=y(31044)(),P=y(40210),w=v&&P("%Object.defineProperty%",!0);if(w)try{w({},"a",{value:1})}catch(k){w=!1}var b=P("%SyntaxError%"),B=P("%TypeError%"),V=y(25275);yt.exports=function(R,C,g){if(!R||typeof R!="object"&&typeof R!="function")throw new B("`obj` must be an object or a function`");if(typeof C!="string"&&typeof C!="symbol")throw new B("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new B("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new B("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new B("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new B("`loose`, if provided, must be a boolean");var A=arguments.length>3?arguments[3]:null,O=arguments.length>4?arguments[4]:null,K=arguments.length>5?arguments[5]:null,he=arguments.length>6?arguments[6]:!1,ae=!!V&&V(R,C);if(w)w(R,C,{configurable:K===null&&ae?ae.configurable:!K,enumerable:A===null&&ae?ae.enumerable:!A,value:g,writable:O===null&&ae?ae.writable:!O});else if(he||!A&&!O&&!K)R[C]=g;else throw new b("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},4289:function(yt,Y,y){"use strict";var v=y(82215),P=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",w=Object.prototype.toString,b=Array.prototype.concat,B=y(12296),V=function(g){return typeof g=="function"&&w.call(g)==="[object Function]"},k=y(31044)(),R=function(g,A,O,K){if(A in g){if(K===!0){if(g[A]===O)return}else if(!V(K)||!K())return}k?B(g,A,O,!0):B(g,A,O)},C=function(g,A){var O=arguments.length>2?arguments[2]:{},K=v(A);P&&(K=b.call(K,Object.getOwnPropertySymbols(A)));for(var he=0;he=this.minPts&&(v=this._mergeArrays(v,b))}this._assigned[w]!==1&&this._addToCluster(w,y)}},Y.prototype._addToCluster=function(y,v){this.clusters[v].push(y),this._assigned[y]=1},Y.prototype._regionQuery=function(y){for(var v=[],P=0;P0){for(var R=0;R=0);return v},Y.prototype.assign=function(){for(var y=!1,v=this.dataset.length,P,w=0;w=this.minPts)return B}},P.prototype._regionQuery=function(w,b){b=b||this.epsilon;for(var B=[],V=0,k=this.dataset.length;Vb&&(P=w):v80*St){Mt=un=Be[0],hn=Sr=Be[1];for(var eo=St;eoun&&(un=ii),Ii>Sr&&(Sr=Ii);Ni=Math.max(un-Mt,Sr-hn),Ni=Ni!==0?32767/Ni:0}return P(lt,Kt,St,Mt,hn,Ni,0),Kt}function y(Be,Xt,St,nt,wt){var lt,Kt;if(wt===Xe(Be,Xt,St,nt)>0)for(lt=Xt;lt=Xt;lt-=nt)Kt=Me(lt,Be[lt],Be[lt+1],Kt);return Kt&&be(Kt,Kt.next)&&(Ue(Kt),Kt=Kt.next),Kt}function v(Be,Xt){if(!Be)return Be;Xt||(Xt=Be);var St=Be,nt;do if(nt=!1,!St.steiner&&(be(St,St.next)||ye(St.prev,St,St.next)===0)){if(Ue(St),St=Xt=St.prev,St===St.next)break;nt=!0}else St=St.next;while(nt||St!==Xt);return Xt}function P(Be,Xt,St,nt,wt,lt,Kt){if(Be){!Kt&<&&O(Be,nt,wt,lt);for(var Mt=Be,hn,un;Be.prev!==Be.next;){if(hn=Be.prev,un=Be.next,lt?b(Be,nt,wt,lt):w(Be)){Xt.push(hn.i/St|0),Xt.push(Be.i/St|0),Xt.push(un.i/St|0),Ue(Be),Be=un.next,Mt=un.next;continue}if(Be=un,Be===Mt){Kt?Kt===1?(Be=B(v(Be),Xt,St),P(Be,Xt,St,nt,wt,lt,2)):Kt===2&&V(Be,Xt,St,nt,wt,lt):P(v(Be),Xt,St,nt,wt,lt,1);break}}}}function w(Be){var Xt=Be.prev,St=Be,nt=Be.next;if(ye(Xt,St,nt)>=0)return!1;for(var wt=Xt.x,lt=St.x,Kt=nt.x,Mt=Xt.y,hn=St.y,un=nt.y,Sr=wtlt?wt>Kt?wt:Kt:lt>Kt?lt:Kt,Ni=Mt>hn?Mt>un?Mt:un:hn>un?hn:un,eo=nt.next;eo!==Xt;){if(eo.x>=Sr&&eo.x<=Ii&&eo.y>=ii&&eo.y<=Ni&&fe(wt,Mt,lt,hn,Kt,un,eo.x,eo.y)&&ye(eo.prev,eo,eo.next)>=0)return!1;eo=eo.next}return!0}function b(Be,Xt,St,nt){var wt=Be.prev,lt=Be,Kt=Be.next;if(ye(wt,lt,Kt)>=0)return!1;for(var Mt=wt.x,hn=lt.x,un=Kt.x,Sr=wt.y,ii=lt.y,Ii=Kt.y,Ni=Mthn?Mt>un?Mt:un:hn>un?hn:un,Is=Sr>ii?Sr>Ii?Sr:Ii:ii>Ii?ii:Ii,Ns=he(Ni,eo,Xt,St,nt),Se=he(ti,Is,Xt,St,nt),Xi=Be.prevZ,Yi=Be.nextZ;Xi&&Xi.z>=Ns&&Yi&&Yi.z<=Se;){if(Xi.x>=Ni&&Xi.x<=ti&&Xi.y>=eo&&Xi.y<=Is&&Xi!==wt&&Xi!==Kt&&fe(Mt,Sr,hn,ii,un,Ii,Xi.x,Xi.y)&&ye(Xi.prev,Xi,Xi.next)>=0||(Xi=Xi.prevZ,Yi.x>=Ni&&Yi.x<=ti&&Yi.y>=eo&&Yi.y<=Is&&Yi!==wt&&Yi!==Kt&&fe(Mt,Sr,hn,ii,un,Ii,Yi.x,Yi.y)&&ye(Yi.prev,Yi,Yi.next)>=0))return!1;Yi=Yi.nextZ}for(;Xi&&Xi.z>=Ns;){if(Xi.x>=Ni&&Xi.x<=ti&&Xi.y>=eo&&Xi.y<=Is&&Xi!==wt&&Xi!==Kt&&fe(Mt,Sr,hn,ii,un,Ii,Xi.x,Xi.y)&&ye(Xi.prev,Xi,Xi.next)>=0)return!1;Xi=Xi.prevZ}for(;Yi&&Yi.z<=Se;){if(Yi.x>=Ni&&Yi.x<=ti&&Yi.y>=eo&&Yi.y<=Is&&Yi!==wt&&Yi!==Kt&&fe(Mt,Sr,hn,ii,un,Ii,Yi.x,Yi.y)&&ye(Yi.prev,Yi,Yi.next)>=0)return!1;Yi=Yi.nextZ}return!0}function B(Be,Xt,St){var nt=Be;do{var wt=nt.prev,lt=nt.next.next;!be(wt,lt)&&Qe(wt,nt,nt.next,lt)&&Ae(wt,lt)&&Ae(lt,wt)&&(Xt.push(wt.i/St|0),Xt.push(nt.i/St|0),Xt.push(lt.i/St|0),Ue(nt),Ue(nt.next),nt=Be=lt),nt=nt.next}while(nt!==Be);return v(nt)}function V(Be,Xt,St,nt,wt,lt){var Kt=Be;do{for(var Mt=Kt.next.next;Mt!==Kt.prev;){if(Kt.i!==Mt.i&&xe(Kt,Mt)){var hn=Te(Kt,Mt);Kt=v(Kt,Kt.next),hn=v(hn,hn.next),P(Kt,Xt,St,nt,wt,lt,0),P(hn,Xt,St,nt,wt,lt,0);return}Mt=Mt.next}Kt=Kt.next}while(Kt!==Be)}function k(Be,Xt,St,nt){var wt=[],lt,Kt,Mt,hn,un;for(lt=0,Kt=Xt.length;lt=St.next.y&&St.next.y!==St.y){var Mt=St.x+(wt-St.y)*(St.next.x-St.x)/(St.next.y-St.y);if(Mt<=nt&&Mt>lt&&(lt=Mt,Kt=St.x=St.x&&St.x>=un&&nt!==St.x&&fe(wtKt.x||St.x===Kt.x&&A(Kt,St)))&&(Kt=St,ii=Ii)),St=St.next;while(St!==hn);return Kt}function A(Be,Xt){return ye(Be.prev,Be,Xt.prev)<0&&ye(Xt.next,Be,Be.next)<0}function O(Be,Xt,St,nt){var wt=Be;do wt.z===0&&(wt.z=he(wt.x,wt.y,Xt,St,nt)),wt.prevZ=wt.prev,wt.nextZ=wt.next,wt=wt.next;while(wt!==Be);wt.prevZ.nextZ=null,wt.prevZ=null,K(wt)}function K(Be){var Xt,St,nt,wt,lt,Kt,Mt,hn,un=1;do{for(St=Be,Be=null,lt=null,Kt=0;St;){for(Kt++,nt=St,Mt=0,Xt=0;Xt0||hn>0&&nt;)Mt!==0&&(hn===0||!nt||St.z<=nt.z)?(wt=St,St=St.nextZ,Mt--):(wt=nt,nt=nt.nextZ,hn--),lt?lt.nextZ=wt:Be=wt,wt.prevZ=lt,lt=wt;St=nt}lt.nextZ=null,un*=2}while(Kt>1);return Be}function he(Be,Xt,St,nt,wt){return Be=(Be-St)*wt|0,Xt=(Xt-nt)*wt|0,Be=(Be|Be<<8)&16711935,Be=(Be|Be<<4)&252645135,Be=(Be|Be<<2)&858993459,Be=(Be|Be<<1)&1431655765,Xt=(Xt|Xt<<8)&16711935,Xt=(Xt|Xt<<4)&252645135,Xt=(Xt|Xt<<2)&858993459,Xt=(Xt|Xt<<1)&1431655765,Be|Xt<<1}function ae(Be){var Xt=Be,St=Be;do(Xt.x=(Be-Kt)*(lt-Mt)&&(Be-Kt)*(nt-Mt)>=(St-Kt)*(Xt-Mt)&&(St-Kt)*(lt-Mt)>=(wt-Kt)*(nt-Mt)}function xe(Be,Xt){return Be.next.i!==Xt.i&&Be.prev.i!==Xt.i&&!st(Be,Xt)&&(Ae(Be,Xt)&&Ae(Xt,Be)&&De(Be,Xt)&&(ye(Be.prev,Be,Xt.prev)||ye(Be,Xt.prev,Xt))||be(Be,Xt)&&ye(Be.prev,Be,Be.next)>0&&ye(Xt.prev,Xt,Xt.next)>0)}function ye(Be,Xt,St){return(Xt.y-Be.y)*(St.x-Xt.x)-(Xt.x-Be.x)*(St.y-Xt.y)}function be(Be,Xt){return Be.x===Xt.x&&Be.y===Xt.y}function Qe(Be,Xt,St,nt){var wt=pt(ye(Be,Xt,St)),lt=pt(ye(Be,Xt,nt)),Kt=pt(ye(St,nt,Be)),Mt=pt(ye(St,nt,Xt));return!!(wt!==lt&&Kt!==Mt||wt===0&&Ve(Be,St,Xt)||lt===0&&Ve(Be,nt,Xt)||Kt===0&&Ve(St,Be,nt)||Mt===0&&Ve(St,Xt,nt))}function Ve(Be,Xt,St){return Xt.x<=Math.max(Be.x,St.x)&&Xt.x>=Math.min(Be.x,St.x)&&Xt.y<=Math.max(Be.y,St.y)&&Xt.y>=Math.min(Be.y,St.y)}function pt(Be){return Be>0?1:Be<0?-1:0}function st(Be,Xt){var St=Be;do{if(St.i!==Be.i&&St.next.i!==Be.i&&St.i!==Xt.i&&St.next.i!==Xt.i&&Qe(St,St.next,Be,Xt))return!0;St=St.next}while(St!==Be);return!1}function Ae(Be,Xt){return ye(Be.prev,Be,Be.next)<0?ye(Be,Xt,Be.next)>=0&&ye(Be,Be.prev,Xt)>=0:ye(Be,Xt,Be.prev)<0||ye(Be,Be.next,Xt)<0}function De(Be,Xt){var St=Be,nt=!1,wt=(Be.x+Xt.x)/2,lt=(Be.y+Xt.y)/2;do St.y>lt!=St.next.y>lt&&St.next.y!==St.y&&wt<(St.next.x-St.x)*(lt-St.y)/(St.next.y-St.y)+St.x&&(nt=!nt),St=St.next;while(St!==Be);return nt}function Te(Be,Xt){var St=new Pe(Be.i,Be.x,Be.y),nt=new Pe(Xt.i,Xt.x,Xt.y),wt=Be.next,lt=Xt.prev;return Be.next=Xt,Xt.prev=Be,St.next=wt,wt.prev=St,nt.next=St,St.prev=nt,lt.next=nt,nt.prev=lt,nt}function Me(Be,Xt,St,nt){var wt=new Pe(Be,Xt,St);return nt?(wt.next=nt.next,wt.prev=nt,nt.next.prev=wt,nt.next=wt):(wt.prev=wt,wt.next=wt),wt}function Ue(Be){Be.next.prev=Be.prev,Be.prev.next=Be.next,Be.prevZ&&(Be.prevZ.nextZ=Be.nextZ),Be.nextZ&&(Be.nextZ.prevZ=Be.prevZ)}function Pe(Be,Xt,St){this.i=Be,this.x=Xt,this.y=St,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Y.deviation=function(Be,Xt,St,nt){var wt=Xt&&Xt.length,lt=wt?Xt[0]*St:Be.length,Kt=Math.abs(Xe(Be,0,lt,St));if(wt)for(var Mt=0,hn=Xt.length;Mt0&&(nt+=Be[wt-1].length,St.holes.push(nt))}return St}},67709:function(yt){function Y(v){var P=v.target||v.srcElement;P.__resizeRAF__&&cancelAnimationFrame(P.__resizeRAF__),P.__resizeRAF__=requestAnimationFrame(function(){var w=P.__resizeTrigger__,b=w&&w.__resizeListeners__;b&&b.forEach(function(B){B.call(w,v)})})}var y=function(P,w){var b=this,B=b.document,V,k=B.attachEvent;typeof navigator!="undefined"&&(V=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));function R(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",Y)}if(!P.__resizeListeners__)if(P.__resizeListeners__=[],k)P.__resizeTrigger__=P,P.attachEvent("onresize",Y);else{getComputedStyle(P).position==="static"&&(P.style.position="relative");var C=P.__resizeTrigger__=B.createElement("object");C.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),C.setAttribute("class","resize-sensor"),C.setAttribute("tabindex","-1"),C.setAttribute("title",""),C.__resizeElement__=P,C.onload=R,C.type="text/html",V&&P.appendChild(C),C.data="about:blank",V||P.appendChild(C)}P.__resizeListeners__.push(w)};yt.exports=typeof window=="undefined"?y:y.bind(window),yt.exports.unbind=function(v,P){var w=document.attachEvent,b=v.__resizeListeners__||[];if(P){var B=b.indexOf(P);B!==-1&&b.splice(B,1)}else b=v.__resizeListeners__=[];if(!b.length){if(w)v.detachEvent("onresize",Y);else if(v.__resizeTrigger__){var V=v.__resizeTrigger__.contentDocument,k=V&&V.defaultView;k&&(k.removeEventListener("resize",Y),delete k.__resizeTrigger__),v.__resizeTrigger__=!v.removeChild(v.__resizeTrigger__)}delete v.__resizeListeners__}}},26729:function(yt){"use strict";var Y=Object.prototype.hasOwnProperty,y="~";function v(){}Object.create&&(v.prototype=Object.create(null),new v().__proto__||(y=!1));function P(V,k,R){this.fn=V,this.context=k,this.once=R||!1}function w(V,k,R,C,g){if(typeof R!="function")throw new TypeError("The listener must be a function");var A=new P(R,C||V,g),O=y?y+k:k;return V._events[O]?V._events[O].fn?V._events[O]=[V._events[O],A]:V._events[O].push(A):(V._events[O]=A,V._eventsCount++),V}function b(V,k){--V._eventsCount===0?V._events=new v:delete V._events[k]}function B(){this._events=new v,this._eventsCount=0}B.prototype.eventNames=function(){var k=[],R,C;if(this._eventsCount===0)return k;for(C in R=this._events)Y.call(R,C)&&k.push(y?C.slice(1):C);return Object.getOwnPropertySymbols?k.concat(Object.getOwnPropertySymbols(R)):k},B.prototype.listeners=function(k){var R=y?y+k:k,C=this._events[R];if(!C)return[];if(C.fn)return[C.fn];for(var g=0,A=C.length,O=new Array(A);g=72.004&&Yi<=137.8347&&fo>=.8293&&fo<=55.8271}function C(Yi,fo){let di=-100+2*Yi+3*fo+.2*fo*fo+.1*Yi*fo+.2*w(b(Yi));return di+=(20*v(6*Yi*B)+20*v(2*Yi*B))*2/3,di+=(20*v(fo*B)+40*v(fo/3*B))*2/3,di+=(160*v(fo/12*B)+320*v(fo*B/30))*2/3,di}function g(Yi,fo){let di=300+Yi+2*fo+.1*Yi*Yi+.1*Yi*fo+.1*w(b(Yi));return di+=(20*v(6*Yi*B)+20*v(2*Yi*B))*2/3,di+=(20*v(Yi*B)+40*v(Yi/3*B))*2/3,di+=(150*v(Yi/12*B)+300*v(Yi/30*B))*2/3,di}function A(Yi,fo){let di=g(Yi-105,fo-35),Fs=C(Yi-105,fo-35);const Ln=fo/180*B;let it=v(Ln);it=1-k*it*it;const Ot=w(it);return di=di*180/(V/Ot*P(Ln)*B),Fs=Fs*180/(V*(1-k)/(it*Ot)*B),[di,Fs]}function O(Yi){const[fo,di]=Yi;if(!R(fo,di))return[fo,di];const Fs=A(fo,di);return[fo+Fs[0],di+Fs[1]]}function K(Yi){const[fo,di]=Yi;if(!R(fo,di))return[fo,di];let[Fs,Ln]=[fo,di],it=O([Fs,Ln]),Ot=it[0]-fo,Ht=it[1]-di;for(;b(Ot)>1e-6||b(Ht)>1e-6;)Fs-=Ot,Ln-=Ht,it=O([Fs,Ln]),Ot=it[0]-fo,Ht=it[1]-di;return[Fs,Ln]}const{sin:he,cos:ae,atan2:fe,sqrt:xe,PI:ye}=Math,be=ye*3e3/180;function Qe(Yi){const[fo,di]=Yi,Fs=fo-.0065,Ln=di-.006,it=xe(Fs*Fs+Ln*Ln)-2e-5*he(Ln*be),Ot=fe(Ln,Fs)-3e-6*ae(Fs*be),Ht=it*ae(Ot),Pn=it*he(Ot);return[Ht,Pn]}function Ve(Yi){const[fo,di]=Yi,Fs=fo,Ln=di,it=xe(Fs*Fs+Ln*Ln)+2e-5*he(Ln*be),Ot=fe(Ln,Fs)+3e-6*ae(Fs*be),Ht=it*ae(Ot)+.0065,Pn=it*he(Ot)+.006;return[Ht,Pn]}const pt=180/Math.PI,st=Math.PI/180,Ae=6378137,De=20037508342789244e-9;function Te(Yi){return[Yi[0]*pt/Ae,(Math.PI*.5-2*Math.atan(Math.exp(-Yi[1]/Ae)))*pt]}function Me(Yi){const fo=Math.abs(Yi[0])<=180?Yi[0]:Yi[0]-(Yi[0]<0?-1:1)*360,di=[Ae*fo*st,Ae*Math.log(Math.tan(Math.PI*.25+.5*Yi[1]*st))];return di[0]>De&&(di[0]=De),di[0]<-De&&(di[0]=-De),di[1]>De&&(di[1]=De),di[1]<-De&&(di[1]=-De),di}const{abs:Ue}=Math,Pe=[1289059486e-2,836237787e-2,5591021,348198983e-2,167804312e-2,0],Xe=[75,60,45,30,15,0],Be=[[1410526172116255e-23,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,173379812e-1],[-7435856389565537e-24,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,1026014486e-2],[-3030883460898826e-23,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,685681737e-2],[-1981981304930552e-23,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,448277706e-2],[309191371068437e-23,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,25551644e-1],[2890871144776878e-24,8983055095805407e-21,-3068298e-14,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],Xt=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,6477955746671607e-7,-4082003173641316e-6,1077490566351142e-5,-1517187553151559e-5,1205306533862167e-5,-5124939663577472e-6,9133119359512032e-7,67.5],[.00337398766765,111320.7020202162,4481351045890365e-9,-2339375119931662e-8,7968221547186455e-8,-1159649932797253e-7,9723671115602145e-8,-4366194633752821e-8,8477230501135234e-9,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837749470245e-9,992013.7397791013,-122195221711287e-8,1340652697009075e-9,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758690035394e-9,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]];function St(Yi,fo,di){const Fs=Ue(fo)/di[9];let Ln=di[0]+di[1]*Ue(Yi),it=di[2]+di[3]*Fs+di[4]*Math.pow(Fs,2)+di[5]*Math.pow(Fs,3)+di[6]*Math.pow(Fs,4)+di[7]*Math.pow(Fs,5)+di[8]*Math.pow(Fs,6);return Ln*=Yi<0?-1:1,it*=fo<0?-1:1,[Ln,it]}function nt(Yi){const[fo,di]=Yi;let Fs=[];for(let Ln=0;LnXe[Ln]){Fs=Xt[Ln];break}return St(fo,di,Fs)}function wt(Yi){const[fo,di]=Yi;let Fs=[];for(let Ln=0;Ln=Pe[Ln]){Fs=Be[Ln];break}return St(fo,di,Fs)}function lt(Yi,fo){if(!Yi)throw new Error(fo)}function Kt(Yi){return!!Yi&&Object.prototype.toString.call(Yi)==="[object Array]"}function Mt(Yi){return!isNaN(Number(Yi))&&Yi!==null&&!Kt(Yi)}function hn(...Yi){const fo=Yi.length-1;return function(...di){let Fs=fo,Ln=Yi[fo].apply(null,di);for(;Fs--;)Ln=Yi[Fs].call(null,Ln);return Ln}}function un(Yi,fo,di=!1){if(Yi===null)return;let Fs,Ln,it,Ot,Ht,Pn,fr=0,In=0,mn,Ut;const{type:en}=Yi,Cn=en==="FeatureCollection",lr=en==="Feature",pr=Cn?Yi.features.length:1;for(let an=0;an=2,`Invalid input coordinate: ${Yi}`),lt(Mt(Yi[0])&&Mt(Yi[1]),`Invalid input coordinate: ${Yi}`),Yi=Yi.map(Number),Ot=!0);const Ht=Ln;return Ot?Ht(Yi):(un(Yi,Pn=>{[Pn[0],Pn[1]]=Ht(Pn)}),Yi)}const Xi=Object.assign(Object.assign({},Sr),{CRSTypes:Sr,transform:Se})},29657:function(yt,Y,y){var v=y(10251),P=function(V){this.precision=V&&V.precision?V.precision:17,this.direction=V&&V.direction?V.direction:!1,this.pseudoNode=V&&V.pseudoNode?V.pseudoNode:!1,this.objectComparator=V&&V.objectComparator?V.objectComparator:B};P.prototype.compare=function(V,k){if(V.type!==k.type||!b(V,k))return!1;switch(V.type){case"Point":return this.compareCoord(V.coordinates,k.coordinates);case"LineString":return this.compareLine(V.coordinates,k.coordinates,0,!1);case"Polygon":return this.comparePolygon(V,k);case"Feature":return this.compareFeature(V,k);default:if(V.type.indexOf("Multi")===0){var R=this,C=w(V),g=w(k);return C.every(function(A){return this.some(function(O){return R.compare(A,O)})},g)}}return!1};function w(V){return V.coordinates.map(function(k){return{type:V.type.replace("Multi",""),coordinates:k}})}function b(V,k){return V.hasOwnProperty("coordinates")?V.coordinates.length===k.coordinates.length:V.length===k.length}P.prototype.compareCoord=function(V,k){if(V.length!==k.length)return!1;for(var R=0;R=0&&(R=[].concat(V.slice(C,V.length),V.slice(1,C+1))),R},P.prototype.comparePath=function(V,k){var R=this;return V.every(function(C,g){return R.compareCoord(C,this[g])},k)},P.prototype.comparePolygon=function(V,k){if(this.compareLine(V.coordinates[0],k.coordinates[0],1,!0)){var R=V.coordinates.slice(1,V.coordinates.length),C=k.coordinates.slice(1,k.coordinates.length),g=this;return R.every(function(A){return this.some(function(O){return g.compareLine(A,O,1,!0)})},C)}else return!1},P.prototype.compareFeature=function(V,k){return V.id!==k.id||!this.objectComparator(V.properties,k.properties)||!this.compareBBox(V,k)?!1:this.compare(V.geometry,k.geometry)},P.prototype.compareBBox=function(V,k){return!!(!V.bbox&&!k.bbox||V.bbox&&k.bbox&&this.compareCoord(V.bbox,k.bbox))},P.prototype.removePseudo=function(V){return V};function B(V,k){return v(V,k,{strict:!0})}yt.exports=P},51787:function(yt,Y,y){var v=y(24056),P=y(84102),w=y(31540),b=y(9705).Z,B=w.featureEach,V=w.coordEach,k=P.polygon,R=P.featureCollection;function C(g){var A=new v(g);return A.insert=function(O){if(O.type!=="Feature")throw new Error("invalid feature");return O.bbox=O.bbox?O.bbox:b(O),v.prototype.insert.call(this,O)},A.load=function(O){var K=[];return Array.isArray(O)?O.forEach(function(he){if(he.type!=="Feature")throw new Error("invalid features");he.bbox=he.bbox?he.bbox:b(he),K.push(he)}):B(O,function(he){if(he.type!=="Feature")throw new Error("invalid features");he.bbox=he.bbox?he.bbox:b(he),K.push(he)}),v.prototype.load.call(this,K)},A.remove=function(O,K){if(O.type!=="Feature")throw new Error("invalid feature");return O.bbox=O.bbox?O.bbox:b(O),v.prototype.remove.call(this,O,K)},A.clear=function(){return v.prototype.clear.call(this)},A.search=function(O){var K=v.prototype.search.call(this,this.toBBox(O));return R(K)},A.collides=function(O){return v.prototype.collides.call(this,this.toBBox(O))},A.all=function(){var O=v.prototype.all.call(this);return R(O)},A.toJSON=function(){return v.prototype.toJSON.call(this)},A.fromJSON=function(O){return v.prototype.fromJSON.call(this,O)},A.toBBox=function(O){var K;if(O.bbox)K=O.bbox;else if(Array.isArray(O)&&O.length===4)K=O;else if(Array.isArray(O)&&O.length===6)K=[O[0],O[1],O[3],O[4]];else if(O.type==="Feature")K=b(O);else if(O.type==="FeatureCollection")K=b(O);else throw new Error("invalid geojson");return{minX:K[0],minY:K[1],maxX:K[2],maxY:K[3]}},A}yt.exports=C,yt.exports.default=C},24056:function(yt){(function(Y,y){yt.exports=y()})(this,function(){"use strict";function Y(ae,fe,xe,ye,be){(function Qe(Ve,pt,st,Ae,De){for(;Ae>st;){if(Ae-st>600){var Te=Ae-st+1,Me=pt-st+1,Ue=Math.log(Te),Pe=.5*Math.exp(2*Ue/3),Xe=.5*Math.sqrt(Ue*Pe*(Te-Pe)/Te)*(Me-Te/2<0?-1:1),Be=Math.max(st,Math.floor(pt-Me*Pe/Te+Xe)),Xt=Math.min(Ae,Math.floor(pt+(Te-Me)*Pe/Te+Xe));Qe(Ve,pt,Be,Xt,De)}var St=Ve[pt],nt=st,wt=Ae;for(y(Ve,st,pt),De(Ve[Ae],St)>0&&y(Ve,st,Ae);nt0;)wt--}De(Ve[st],St)===0?y(Ve,st,wt):y(Ve,++wt,Ae),wt<=pt&&(st=wt+1),pt<=wt&&(Ae=wt-1)}})(ae,fe,xe||0,ye||ae.length-1,be||v)}function y(ae,fe,xe){var ye=ae[fe];ae[fe]=ae[xe],ae[xe]=ye}function v(ae,fe){return aefe?1:0}var P=function(ae){ae===void 0&&(ae=9),this._maxEntries=Math.max(4,ae),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function w(ae,fe,xe){if(!xe)return fe.indexOf(ae);for(var ye=0;ye=ae.minX&&fe.maxY>=ae.minY}function K(ae){return{children:ae,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function he(ae,fe,xe,ye,be){for(var Qe=[fe,xe];Qe.length;)if(!((xe=Qe.pop())-(fe=Qe.pop())<=ye)){var Ve=fe+Math.ceil((xe-fe)/ye/2)*ye;Y(ae,Ve,fe,xe,be),Qe.push(fe,Ve,Ve,xe)}}return P.prototype.all=function(){return this._all(this.data,[])},P.prototype.search=function(ae){var fe=this.data,xe=[];if(!O(ae,fe))return xe;for(var ye=this.toBBox,be=[];fe;){for(var Qe=0;Qe=0&&be[fe].children.length>this._maxEntries;)this._split(be,fe),fe--;this._adjustParentBBoxes(ye,be,fe)},P.prototype._split=function(ae,fe){var xe=ae[fe],ye=xe.children.length,be=this._minEntries;this._chooseSplitAxis(xe,be,ye);var Qe=this._chooseSplitIndex(xe,be,ye),Ve=K(xe.children.splice(Qe,xe.children.length-Qe));Ve.height=xe.height,Ve.leaf=xe.leaf,b(xe,this.toBBox),b(Ve,this.toBBox),fe?ae[fe-1].children.push(Ve):this._splitRoot(xe,Ve)},P.prototype._splitRoot=function(ae,fe){this.data=K([ae,fe]),this.data.height=ae.height+1,this.data.leaf=!1,b(this.data,this.toBBox)},P.prototype._chooseSplitIndex=function(ae,fe,xe){for(var ye,be,Qe,Ve,pt,st,Ae,De=1/0,Te=1/0,Me=fe;Me<=xe-fe;Me++){var Ue=B(ae,0,Me,this.toBBox),Pe=B(ae,Me,xe,this.toBBox),Xe=(be=Ue,Qe=Pe,Ve=void 0,pt=void 0,st=void 0,Ae=void 0,Ve=Math.max(be.minX,Qe.minX),pt=Math.max(be.minY,Qe.minY),st=Math.min(be.maxX,Qe.maxX),Ae=Math.min(be.maxY,Qe.maxY),Math.max(0,st-Ve)*Math.max(0,Ae-pt)),Be=C(Ue)+C(Pe);Xe=fe;De--){var Te=ae.children[De];V(Ve,ae.leaf?be(Te):Te),pt+=g(Ve)}return pt},P.prototype._adjustParentBBoxes=function(ae,fe,xe){for(var ye=xe;ye>=0;ye--)V(fe[ye],ae)},P.prototype._condense=function(ae){for(var fe=ae.length-1,xe=void 0;fe>=0;fe--)ae[fe].children.length===0?fe>0?(xe=ae[fe-1].children).splice(xe.indexOf(ae[fe]),1):this.clear():b(ae[fe],this.toBBox)},P})},40210:function(yt,Y,y){"use strict";var v,P=SyntaxError,w=Function,b=TypeError,B=function(Pe){try{return w('"use strict"; return ('+Pe+").constructor;")()}catch(Xe){}},V=Object.getOwnPropertyDescriptor;if(V)try{V({},"")}catch(Pe){V=null}var k=function(){throw new b},R=V?function(){try{return arguments.callee,k}catch(Pe){try{return V(arguments,"callee").get}catch(Xe){return k}}}():k,C=y(41405)(),g=y(28185)(),A=Object.getPrototypeOf||(g?function(Pe){return Pe.__proto__}:null),O={},K=typeof Uint8Array=="undefined"||!A?v:A(Uint8Array),he={"%AggregateError%":typeof AggregateError=="undefined"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?v:ArrayBuffer,"%ArrayIteratorPrototype%":C&&A?A([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":typeof Atomics=="undefined"?v:Atomics,"%BigInt%":typeof BigInt=="undefined"?v:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?v:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?v:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?v:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?v:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":O,"%Int8Array%":typeof Int8Array=="undefined"?v:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?v:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&A?A(A([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map=="undefined"?v:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!C||!A?v:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?v:Promise,"%Proxy%":typeof Proxy=="undefined"?v:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?v:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!C||!A?v:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&A?A(""[Symbol.iterator]()):v,"%Symbol%":C?Symbol:v,"%SyntaxError%":P,"%ThrowTypeError%":R,"%TypedArray%":K,"%TypeError%":b,"%Uint8Array%":typeof Uint8Array=="undefined"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?v:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?v:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?v:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?v:WeakSet};if(A)try{null.error}catch(Pe){var ae=A(A(Pe));he["%Error.prototype%"]=ae}var fe=function Pe(Xe){var Be;if(Xe==="%AsyncFunction%")Be=B("async function () {}");else if(Xe==="%GeneratorFunction%")Be=B("function* () {}");else if(Xe==="%AsyncGeneratorFunction%")Be=B("async function* () {}");else if(Xe==="%AsyncGenerator%"){var Xt=Pe("%AsyncGeneratorFunction%");Xt&&(Be=Xt.prototype)}else if(Xe==="%AsyncIteratorPrototype%"){var St=Pe("%AsyncGenerator%");St&&A&&(Be=A(St.prototype))}return he[Xe]=Be,Be},xe={"%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"]},ye=y(58612),be=y(78001),Qe=ye.call(Function.call,Array.prototype.concat),Ve=ye.call(Function.apply,Array.prototype.splice),pt=ye.call(Function.call,String.prototype.replace),st=ye.call(Function.call,String.prototype.slice),Ae=ye.call(Function.call,RegExp.prototype.exec),De=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Te=/\\(\\)?/g,Me=function(Xe){var Be=st(Xe,0,1),Xt=st(Xe,-1);if(Be==="%"&&Xt!=="%")throw new P("invalid intrinsic syntax, expected closing `%`");if(Xt==="%"&&Be!=="%")throw new P("invalid intrinsic syntax, expected opening `%`");var St=[];return pt(Xe,De,function(nt,wt,lt,Kt){St[St.length]=lt?pt(Kt,Te,"$1"):wt||nt}),St},Ue=function(Xe,Be){var Xt=Xe,St;if(be(xe,Xt)&&(St=xe[Xt],Xt="%"+St[0]+"%"),be(he,Xt)){var nt=he[Xt];if(nt===O&&(nt=fe(Xt)),typeof nt=="undefined"&&!Be)throw new b("intrinsic "+Xe+" exists, but is not available. Please file an issue!");return{alias:St,name:Xt,value:nt}}throw new P("intrinsic "+Xe+" does not exist!")};yt.exports=function(Xe,Be){if(typeof Xe!="string"||Xe.length===0)throw new b("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Be!="boolean")throw new b('"allowMissing" argument must be a boolean');if(Ae(/^%?[^%]*%?$/,Xe)===null)throw new P("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Xt=Me(Xe),St=Xt.length>0?Xt[0]:"",nt=Ue("%"+St+"%",Be),wt=nt.name,lt=nt.value,Kt=!1,Mt=nt.alias;Mt&&(St=Mt[0],Ve(Xt,Qe([0,1],Mt)));for(var hn=1,un=!0;hn=Xt.length){var Ni=V(lt,Sr);un=!!Ni,un&&"get"in Ni&&!("originalValue"in Ni.get)?lt=Ni.get:lt=lt[Sr]}else un=be(lt,Sr),lt=lt[Sr];un&&!Kt&&(he[wt]=lt)}}return lt}},25275:function(yt,Y,y){"use strict";var v=y(40210),P=v("%Object.getOwnPropertyDescriptor%",!0);if(P)try{P([],"length")}catch(w){P=null}yt.exports=P},50840:function(yt,Y,y){var v;(function(P,w,b,B){"use strict";var V=["","webkit","Moz","MS","ms","o"],k=w.createElement("div"),R="function",C=Math.round,g=Math.abs,A=Date.now;function O(Ze,ht,dt){return setTimeout(Qe(Ze,dt),ht)}function K(Ze,ht,dt){return Array.isArray(Ze)?(he(Ze,dt[ht],dt),!0):!1}function he(Ze,ht,dt){var $e;if(Ze)if(Ze.forEach)Ze.forEach(ht,dt);else if(Ze.length!==B)for($e=0;$e\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",gn=P.console&&(P.console.warn||P.console.log);return gn&&gn.call(P.console,$e,Lt),Ze.apply(this,arguments)}}var fe;typeof Object.assign!="function"?fe=function(ht){if(ht===B||ht===null)throw new TypeError("Cannot convert undefined or null to object");for(var dt=Object(ht),$e=1;$e-1}function Me(Ze){return Ze.trim().split(/\s+/g)}function Ue(Ze,ht,dt){if(Ze.indexOf&&!dt)return Ze.indexOf(ht);for(var $e=0;$eFi[ht]}):$e=$e.sort()),$e}function Be(Ze,ht){for(var dt,$e,ft=ht[0].toUpperCase()+ht.slice(1),Lt=0;Lt1&&!dt.firstMultiple?dt.firstMultiple=en(ht):ft===1&&(dt.firstMultiple=!1);var Lt=dt.firstInput,gn=dt.firstMultiple,rr=gn?gn.center:Lt.center,zr=ht.center=Cn($e);ht.timeStamp=A(),ht.deltaTime=ht.timeStamp-Lt.timeStamp,ht.angle=wr(rr,zr),ht.distance=an(rr,zr),mn(dt,ht),ht.offsetDirection=pr(ht.deltaX,ht.deltaY);var Fi=lr(ht.deltaTime,ht.deltaX,ht.deltaY);ht.overallVelocityX=Fi.x,ht.overallVelocityY=Fi.y,ht.overallVelocity=g(Fi.x)>g(Fi.y)?Fi.x:Fi.y,ht.scale=gn?Ei(gn.pointers,$e):1,ht.rotation=gn?Cr(gn.pointers,$e):0,ht.maxPointers=dt.prevInput?ht.pointers.length>dt.prevInput.maxPointers?ht.pointers.length:dt.prevInput.maxPointers:ht.pointers.length,Ut(dt,ht);var xo=Ze.element;De(ht.srcEvent.target,xo)&&(xo=ht.srcEvent.target),ht.target=xo}function mn(Ze,ht){var dt=ht.center,$e=Ze.offsetDelta||{},ft=Ze.prevDelta||{},Lt=Ze.prevInput||{};(ht.eventType===Ni||Lt.eventType===ti)&&(ft=Ze.prevDelta={x:Lt.deltaX||0,y:Lt.deltaY||0},$e=Ze.offsetDelta={x:dt.x,y:dt.y}),ht.deltaX=ft.x+(dt.x-$e.x),ht.deltaY=ft.y+(dt.y-$e.y)}function Ut(Ze,ht){var dt=Ze.lastInterval||ht,$e=ht.timeStamp-dt.timeStamp,ft,Lt,gn,rr;if(ht.eventType!=Is&&($e>Ii||dt.velocity===B)){var zr=ht.deltaX-dt.deltaX,Fi=ht.deltaY-dt.deltaY,xo=lr($e,zr,Fi);Lt=xo.x,gn=xo.y,ft=g(xo.x)>g(xo.y)?xo.x:xo.y,rr=pr(zr,Fi),Ze.lastInterval=ht}else ft=dt.velocity,Lt=dt.velocityX,gn=dt.velocityY,rr=dt.direction;ht.velocity=ft,ht.velocityX=Lt,ht.velocityY=gn,ht.direction=rr}function en(Ze){for(var ht=[],dt=0;dt=g(ht)?Ze<0?Se:Xi:ht<0?Yi:fo}function an(Ze,ht,dt){dt||(dt=it);var $e=ht[dt[0]]-Ze[dt[0]],ft=ht[dt[1]]-Ze[dt[1]];return Math.sqrt($e*$e+ft*ft)}function wr(Ze,ht,dt){dt||(dt=it);var $e=ht[dt[0]]-Ze[dt[0]],ft=ht[dt[1]]-Ze[dt[1]];return Math.atan2(ft,$e)*180/Math.PI}function Cr(Ze,ht){return wr(ht[1],ht[0],Ot)+wr(Ze[1],Ze[0],Ot)}function Ei(Ze,ht){return an(ht[0],ht[1],Ot)/an(Ze[0],Ze[1],Ot)}var vo={mousedown:Ni,mousemove:eo,mouseup:ti},kr="mousedown",ro="mousemove mouseup";function qi(){this.evEl=kr,this.evWin=ro,this.pressed=!1,Ht.apply(this,arguments)}be(qi,Ht,{handler:function(ht){var dt=vo[ht.type];dt&Ni&&ht.button===0&&(this.pressed=!0),dt&eo&&ht.which!==1&&(dt=ti),this.pressed&&(dt&ti&&(this.pressed=!1),this.callback(this.manager,dt,{pointers:[ht],changedPointers:[ht],pointerType:Sr,srcEvent:ht}))}});var bo={pointerdown:Ni,pointermove:eo,pointerup:ti,pointercancel:Is,pointerout:Is},xn={2:hn,3:un,4:Sr,5:ii},pn="pointerdown",Dt="pointermove pointerup pointercancel";P.MSPointerEvent&&!P.PointerEvent&&(pn="MSPointerDown",Dt="MSPointerMove MSPointerUp MSPointerCancel");function Zt(){this.evEl=pn,this.evWin=Dt,Ht.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}be(Zt,Ht,{handler:function(ht){var dt=this.store,$e=!1,ft=ht.type.toLowerCase().replace("ms",""),Lt=bo[ft],gn=xn[ht.pointerType]||ht.pointerType,rr=gn==hn,zr=Ue(dt,ht.pointerId,"pointerId");Lt&Ni&&(ht.button===0||rr)?zr<0&&(dt.push(ht),zr=dt.length-1):Lt&(ti|Is)&&($e=!0),!(zr<0)&&(dt[zr]=ht,this.callback(this.manager,Lt,{pointers:dt,changedPointers:[ht],pointerType:gn,srcEvent:ht}),$e&&dt.splice(zr,1))}});var vn={touchstart:Ni,touchmove:eo,touchend:ti,touchcancel:Is},$n="touchstart",Ar="touchstart touchmove touchend touchcancel";function Dr(){this.evTarget=$n,this.evWin=Ar,this.started=!1,Ht.apply(this,arguments)}be(Dr,Ht,{handler:function(ht){var dt=vn[ht.type];if(dt===Ni&&(this.started=!0),!!this.started){var $e=dr.call(this,ht,dt);dt&(ti|Is)&&$e[0].length-$e[1].length===0&&(this.started=!1),this.callback(this.manager,dt,{pointers:$e[0],changedPointers:$e[1],pointerType:hn,srcEvent:ht})}}});function dr(Ze,ht){var dt=Pe(Ze.touches),$e=Pe(Ze.changedTouches);return ht&(ti|Is)&&(dt=Xe(dt.concat($e),"identifier",!0)),[dt,$e]}var Yt={touchstart:Ni,touchmove:eo,touchend:ti,touchcancel:Is},wn="touchstart touchmove touchend touchcancel";function Qn(){this.evTarget=wn,this.targetIds={},Ht.apply(this,arguments)}be(Qn,Ht,{handler:function(ht){var dt=Yt[ht.type],$e=Mr.call(this,ht,dt);$e&&this.callback(this.manager,dt,{pointers:$e[0],changedPointers:$e[1],pointerType:hn,srcEvent:ht})}});function Mr(Ze,ht){var dt=Pe(Ze.touches),$e=this.targetIds;if(ht&(Ni|eo)&&dt.length===1)return $e[dt[0].identifier]=!0,[dt,dt];var ft,Lt,gn=Pe(Ze.changedTouches),rr=[],zr=this.target;if(Lt=dt.filter(function(Fi){return De(Fi.target,zr)}),ht===Ni)for(ft=0;ft-1&&$e.splice(Lt,1)};setTimeout(ft,Wi)}}function yi(Ze){for(var ht=Ze.srcEvent.clientX,dt=Ze.srcEvent.clientY,$e=0;$e-1&&this.requireFail.splice(ht,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(Ze){return!!this.simultaneous[Ze.id]},emit:function(Ze){var ht=this,dt=this.state;function $e(ft){ht.manager.emit(ft,Ze)}dt=bn&&$e(ht.options.event+Na(dt))},tryEmit:function(Ze){if(this.canEmit())return this.emit(Ze);this.state=Mo},canEmit:function(){for(var Ze=0;Zeht.threshold&&ft&ht.direction},attrTest:function(Ze){return Ka.prototype.attrTest.call(this,Ze)&&(this.state&is||!(this.state&is)&&this.directionTest(Ze))},emit:function(Ze){this.pX=Ze.deltaX,this.pY=Ze.deltaY;var ht=ho(Ze.direction);ht&&(Ze.additionalEvent=this.options.event+ht),this._super.emit.call(this,Ze)}});function Pi(){Ka.apply(this,arguments)}be(Pi,Ka,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Nr]},attrTest:function(Ze){return this._super.attrTest.call(this,Ze)&&(Math.abs(Ze.scale-1)>this.options.threshold||this.state&is)},emit:function(Ze){if(Ze.scale!==1){var ht=Ze.scale<1?"in":"out";Ze.additionalEvent=this.options.event+ht}this._super.emit.call(this,Ze)}});function to(){vs.apply(this,arguments),this._timer=null,this._input=null}be(to,vs,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[mi]},process:function(Ze){var ht=this.options,dt=Ze.pointers.length===ht.pointers,$e=Ze.distanceht.time;if(this._input=Ze,!$e||!dt||Ze.eventType&(ti|Is)&&!ft)this.reset();else if(Ze.eventType&Ni)this.reset(),this._timer=O(function(){this.state=Or,this.tryEmit()},ht.time,this);else if(Ze.eventType&ti)return Or;return Mo},reset:function(){clearTimeout(this._timer)},emit:function(Ze){this.state===Or&&(Ze&&Ze.eventType&ti?this.manager.emit(this.options.event+"up",Ze):(this._input.timeStamp=A(),this.manager.emit(this.options.event,this._input)))}});function So(){Ka.apply(this,arguments)}be(So,Ka,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Nr]},attrTest:function(Ze){return this._super.attrTest.call(this,Ze)&&(Math.abs(Ze.rotation)>this.options.threshold||this.state&is)}});function ps(){Ka.apply(this,arguments)}be(ps,Ka,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:di|Fs,pointers:1},getTouchAction:function(){return Si.prototype.getTouchAction.call(this)},attrTest:function(Ze){var ht=this.options.direction,dt;return ht&(di|Fs)?dt=Ze.overallVelocity:ht&di?dt=Ze.overallVelocityX:ht&Fs&&(dt=Ze.overallVelocityY),this._super.attrTest.call(this,Ze)&&ht&Ze.offsetDirection&&Ze.distance>this.options.threshold&&Ze.maxPointers==this.options.pointers&&g(dt)>this.options.velocity&&Ze.eventType&ti},emit:function(Ze){var ht=ho(Ze.offsetDirection);ht&&this.manager.emit(this.options.event+ht,Ze),this.manager.emit(this.options.event,Ze)}});function Wn(){vs.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}be(Wn,vs,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Bi]},process:function(Ze){var ht=this.options,dt=Ze.pointers.length===ht.pointers,$e=Ze.distance>1,g=-7,A=P?b-1:0,O=P?-1:1,K=y[v+A];for(A+=O,B=K&(1<<-g)-1,K>>=-g,g+=k;g>0;B=B*256+y[v+A],A+=O,g-=8);for(V=B&(1<<-g)-1,B>>=-g,g+=w;g>0;V=V*256+y[v+A],A+=O,g-=8);if(B===0)B=1-C;else{if(B===R)return V?NaN:(K?-1:1)*(1/0);V=V+Math.pow(2,w),B=B-C}return(K?-1:1)*V*Math.pow(2,B-w)},Y.write=function(y,v,P,w,b,B){var V,k,R,C=B*8-b-1,g=(1<>1,O=b===23?Math.pow(2,-24)-Math.pow(2,-77):0,K=w?0:B-1,he=w?1:-1,ae=v<0||v===0&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===1/0?(k=isNaN(v)?1:0,V=g):(V=Math.floor(Math.log(v)/Math.LN2),v*(R=Math.pow(2,-V))<1&&(V--,R*=2),V+A>=1?v+=O/R:v+=O*Math.pow(2,1-A),v*R>=2&&(V++,R/=2),V+A>=g?(k=0,V=g):V+A>=1?(k=(v*R-1)*Math.pow(2,b),V=V+A):(k=v*Math.pow(2,A-1)*Math.pow(2,b),V=0));b>=8;y[P+K]=k&255,K+=he,k/=256,b-=8);for(V=V<0;y[P+K]=V&255,K+=he,V/=256,C-=8);y[P+K-he]|=ae*128}},7375:function(yt,Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var y=Symbol.for("INJECTION");function v(V,k,R,C){function g(){return C&&!Reflect.hasMetadata(y,this,k)&&Reflect.defineMetadata(y,R(),this,k),Reflect.hasMetadata(y,this,k)?Reflect.getMetadata(y,this,k):R()}function A(O){Reflect.defineMetadata(y,O,this,k)}Object.defineProperty(V,k,{configurable:!0,enumerable:!0,get:g,set:A})}function P(V,k){return function(R){return function(C,g){var A=function(){return V.get(R)};v(C,g,A,k)}}}Y.makePropertyInjectDecorator=P;function w(V,k){return function(R,C){return function(g,A){var O=function(){return V.getNamed(R,C)};v(g,A,O,k)}}}Y.makePropertyInjectNamedDecorator=w;function b(V,k){return function(R,C,g){return function(A,O){var K=function(){return V.getTagged(R,C,g)};v(A,O,K,k)}}}Y.makePropertyInjectTaggedDecorator=b;function B(V,k){return function(R){return function(C,g){var A=function(){return V.getAll(R)};v(C,g,A,k)}}}Y.makePropertyMultiInjectDecorator=B},84879:function(yt,Y,y){"use strict";var v;v={value:!0};var P=y(7375);function w(b,B){B===void 0&&(B=!0);var V=P.makePropertyInjectDecorator(b,B),k=P.makePropertyInjectNamedDecorator(b,B),R=P.makePropertyInjectTaggedDecorator(b,B),C=P.makePropertyMultiInjectDecorator(b,B);return{lazyInject:V,lazyInjectNamed:k,lazyInjectTagged:R,lazyMultiInject:C}}Y.Z=w},99934:function(yt,Y,y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.tagProperty=Y.tagParameter=Y.decorate=void 0;var v=y(16674),P=y(6867);function w(C,g,A,O){var K=P.TAGGED;B(K,C,g,O,A)}Y.tagParameter=w;function b(C,g,A){var O=P.TAGGED_PROP;B(O,C.constructor,g,A)}Y.tagProperty=b;function B(C,g,A,O,K){var he={},ae=typeof K=="number",fe=K!==void 0&&ae?K.toString():A;if(ae&&A!==void 0)throw new Error(v.INVALID_DECORATOR_OPERATION);Reflect.hasOwnMetadata(C,g)&&(he=Reflect.getMetadata(C,g));var xe=he[fe];if(!Array.isArray(xe))xe=[];else for(var ye=0,be=xe;ye= than the number of constructor arguments of its base class.")};Y.ARGUMENTS_LENGTH_MISMATCH=v,Y.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",Y.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",Y.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",Y.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",Y.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";var P=function(){for(var b=[],B=0;B0&&pt[pt.length-1])&&(Te[0]===6||Te[0]===2)){be=0;continue}if(Te[0]===3&&(!pt||Te[1]>pt[0]&&Te[1]0?B._map.set(k,R):B._map.delete(k)})},w.prototype.hasKey=function(b){if(b==null)throw new Error(v.NULL_ARGUMENT);return this._map.has(b)},w.prototype.clone=function(){var b=new w;return this._map.forEach(function(B,V){B.forEach(function(k){return b.add(V,k.clone())})}),b},w.prototype.traverse=function(b){this._map.forEach(function(B,V){b(V,B)})},w}();Y.Lookup=P},86700:function(yt,Y,y){"use strict";var v;v={value:!0},v=v=v=v=v=v=Y.GW=v=v=Y.zY=v=v=v=v=v=Y.f3=v=v=Y.b2=v=v=v=v=v=Y.W2=v=void 0;var P=y(6867);v=P;var w=y(51389);Object.defineProperty(Y,"W2",{enumerable:!0,get:function(){return w.Container}});var b=y(28421);v={enumerable:!0,get:function(){return b.BindingScopeEnum}},v={enumerable:!0,get:function(){return b.BindingTypeEnum}},v={enumerable:!0,get:function(){return b.TargetTypeEnum}};var B=y(33244);v={enumerable:!0,get:function(){return B.AsyncContainerModule}},v={enumerable:!0,get:function(){return B.ContainerModule}};var V=y(64315);Object.defineProperty(Y,"b2",{enumerable:!0,get:function(){return V.injectable}});var k=y(32052);v={enumerable:!0,get:function(){return k.tagged}};var R=y(38085);v={enumerable:!0,get:function(){return R.named}};var C=y(5744);Object.defineProperty(Y,"f3",{enumerable:!0,get:function(){return C.inject}}),v={enumerable:!0,get:function(){return C.LazyServiceIdentifer}};var g=y(6515);v={enumerable:!0,get:function(){return g.optional}};var A=y(86757);v={enumerable:!0,get:function(){return A.unmanaged}};var O=y(71693);v={enumerable:!0,get:function(){return O.multiInject}};var K=y(55638);v={enumerable:!0,get:function(){return K.targetName}};var he=y(7014);Object.defineProperty(Y,"zY",{enumerable:!0,get:function(){return he.postConstruct}});var ae=y(51377);v={enumerable:!0,get:function(){return ae.MetadataReader}};var fe=y(37791);v={enumerable:!0,get:function(){return fe.id}};var xe=y(99934);Object.defineProperty(Y,"GW",{enumerable:!0,get:function(){return xe.decorate}});var ye=y(80758);v={enumerable:!0,get:function(){return ye.traverseAncerstors}},v={enumerable:!0,get:function(){return ye.taggedConstraint}},v={enumerable:!0,get:function(){return ye.namedConstraint}},v={enumerable:!0,get:function(){return ye.typeConstraint}};var be=y(55800);v={enumerable:!0,get:function(){return be.getServiceIdentifierAsString}};var Qe=y(70600);v={enumerable:!0,get:function(){return Qe.multiBindToService}}},95228:function(yt,Y,y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.Context=void 0;var v=y(37791),P=function(){function w(b){this.id=v.id(),this.container=b}return w.prototype.addPlan=function(b){this.plan=b},w.prototype.setCurrentRequest=function(b){this.currentRequest=b},w}();Y.Context=P},47738:function(yt,Y,y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.Metadata=void 0;var v=y(6867),P=function(){function w(b,B){this.key=b,this.value=B}return w.prototype.toString=function(){return this.key===v.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},w}();Y.Metadata=P},51377:function(yt,Y,y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.MetadataReader=void 0;var v=y(6867),P=function(){function w(){}return w.prototype.getConstructorMetadata=function(b){var B=Reflect.getMetadata(v.PARAM_TYPES,b),V=Reflect.getMetadata(v.TAGGED,b);return{compilerGeneratedMetadata:B,userGeneratedMetadata:V||{}}},w.prototype.getPropertiesMetadata=function(b){var B=Reflect.getMetadata(v.TAGGED_PROP,b)||[];return B},w}();Y.MetadataReader=P},55314:function(yt,Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.Plan=void 0;var y=function(){function v(P,w){this.parentContext=P,this.rootRequest=w}return v}();Y.Plan=y},86311:function(yt,Y,y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.getBindingDictionary=Y.createMockRequest=Y.plan=void 0;var v=y(23184),P=y(16674),w=y(28421),b=y(6867),B=y(85265),V=y(55800),k=y(95228),R=y(47738),C=y(55314),g=y(6e3),A=y(6748),O=y(18924);function K(Ve){return Ve._bindingDictionary}Y.getBindingDictionary=K;function he(Ve,pt,st,Ae,De,Te){var Me=Ve?b.MULTI_INJECT_TAG:b.INJECT_TAG,Ue=new R.Metadata(Me,st),Pe=new O.Target(pt,Ae,st,Ue);if(De!==void 0){var Xe=new R.Metadata(De,Te);Pe.metadata.push(Xe)}return Pe}function ae(Ve,pt,st,Ae,De){var Te=ye(st.container,De.serviceIdentifier),Me=[];return Te.length===v.BindingCount.NoBindingsAvailable&&st.container.options.autoBindInjectable&&typeof De.serviceIdentifier=="function"&&Ve.getConstructorMetadata(De.serviceIdentifier).compilerGeneratedMetadata&&(st.container.bind(De.serviceIdentifier).toSelf(),Te=ye(st.container,De.serviceIdentifier)),pt?Me=Te:Me=Te.filter(function(Ue){var Pe=new A.Request(Ue.serviceIdentifier,st,Ae,Ue,De);return Ue.constraint(Pe)}),fe(De.serviceIdentifier,Me,De,st.container),Me}function fe(Ve,pt,st,Ae){switch(pt.length){case v.BindingCount.NoBindingsAvailable:if(st.isOptional())return pt;var De=V.getServiceIdentifierAsString(Ve),Te=P.NOT_REGISTERED;throw Te+=V.listMetadataForTarget(De,st),Te+=V.listRegisteredBindingsForServiceIdentifier(Ae,De,ye),new Error(Te);case v.BindingCount.OnlyOneBindingAvailable:if(!st.isArray())return pt;case v.BindingCount.MultipleBindingsAvailable:default:if(st.isArray())return pt;var De=V.getServiceIdentifierAsString(Ve),Te=P.AMBIGUOUS_MATCH+" "+De;throw Te+=V.listRegisteredBindingsForServiceIdentifier(Ae,De,ye),new Error(Te)}}function xe(Ve,pt,st,Ae,De,Te){var Me,Ue;if(De===null){Me=ae(Ve,pt,Ae,null,Te),Ue=new A.Request(st,Ae,null,Me,Te);var Pe=new C.Plan(Ae,Ue);Ae.addPlan(Pe)}else Me=ae(Ve,pt,Ae,De,Te),Ue=De.addChildRequest(Te.serviceIdentifier,Me,Te);Me.forEach(function(Xe){var Be=null;if(Te.isArray())Be=Ue.addChildRequest(Xe.serviceIdentifier,Xe,Te);else{if(Xe.cache)return;Be=Ue}if(Xe.type===w.BindingTypeEnum.Instance&&Xe.implementationType!==null){var Xt=g.getDependencies(Ve,Xe.implementationType);if(!Ae.container.options.skipBaseClassChecks){var St=g.getBaseClassDependencyCount(Ve,Xe.implementationType);if(Xt.length0,De=st.length>xe.length,Te=Ae||De?st.length:xe.length,Me=A(ye,fe,Qe,pt,Te),Ue=O(ae,xe),Pe=v(v([],Me),Ue);return Pe}function g(ae,fe,xe,ye,be){var Qe=be[ae.toString()]||[],Ve=he(Qe),pt=Ve.unmanaged!==!0,st=ye[ae],Ae=Ve.inject||Ve.multiInject;if(st=Ae||st,st instanceof P.LazyServiceIdentifer&&(st=st.unwrap()),pt){var De=st===Object,Te=st===Function,Me=st===void 0,Ue=De||Te||Me;if(!fe&&Ue){var Pe=w.MISSING_INJECT_ANNOTATION+" argument "+ae+" in class "+xe+".";throw new Error(Pe)}var Xe=new k.Target(b.TargetTypeEnum.ConstructorArgument,Ve.targetName,st);return Xe.metadata=Qe,Xe}return null}function A(ae,fe,xe,ye,be){for(var Qe=[],Ve=0;Ve0?pt:K(ae,xe)}else return 0}Y.getBaseClassDependencyCount=K;function he(ae){var fe={};return ae.forEach(function(xe){fe[xe.key.toString()]=xe.value}),{inject:fe[B.INJECT_TAG],multiInject:fe[B.MULTI_INJECT_TAG],targetName:fe[B.NAME_TAG],unmanaged:fe[B.UNMANAGED_TAG]}}},6748:function(yt,Y,y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.Request=void 0;var v=y(37791),P=function(){function w(b,B,V,k,R){this.id=v.id(),this.serviceIdentifier=b,this.parentContext=B,this.parentRequest=V,this.target=R,this.childRequests=[],this.bindings=Array.isArray(k)?k:[k],this.requestScope=V===null?new Map:null}return w.prototype.addChildRequest=function(b,B,V){var k=new w(b,this.parentContext,this,B,V);return this.childRequests.push(k),k},w}();Y.Request=P},18924:function(yt,Y,y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.Target=void 0;var v=y(6867),P=y(37791),w=y(47738),b=y(88460),B=function(){function V(k,R,C,g){this.id=P.id(),this.type=k,this.serviceIdentifier=C,this.name=new b.QueryableString(R||""),this.metadata=new Array;var A=null;typeof g=="string"?A=new w.Metadata(v.NAMED_TAG,g):g instanceof w.Metadata&&(A=g),A!==null&&this.metadata.push(A)}return V.prototype.hasTag=function(k){for(var R=0,C=this.metadata;R0){var K=g.filter(function(ae){return ae.target!==null&&ae.target.type===w.TargetTypeEnum.ConstructorArgument}),he=K.map(A);O=V(C,he),O=B(O,g,A)}else O=new C;return k(C,O),O}Y.resolveInstance=R},31927:function(yt,Y,y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.resolve=void 0;var v=y(16674),P=y(28421),w=y(85265),b=y(55800),B=y(52279),V=function(C,g,A){try{return A()}catch(O){throw w.isStackOverflowExeption(O)?new Error(v.CIRCULAR_DEPENDENCY_IN_FACTORY(C,g.toString())):O}},k=function(C){return function(g){g.parentContext.setCurrentRequest(g);var A=g.bindings,O=g.childRequests,K=g.target&&g.target.isArray(),he=!g.parentRequest||!g.parentRequest.target||!g.target||!g.parentRequest.target.matchesArray(g.target.serviceIdentifier);if(K&&he)return O.map(function(Qe){var Ve=k(C);return Ve(Qe)});var ae=null;if(g.target.isOptional()&&A.length===0)return;var fe=A[0],xe=fe.scope===P.BindingScopeEnum.Singleton,ye=fe.scope===P.BindingScopeEnum.Request;if(xe&&fe.activated)return fe.cache;if(ye&&C!==null&&C.has(fe.id))return C.get(fe.id);if(fe.type===P.BindingTypeEnum.ConstantValue)ae=fe.cache,fe.activated=!0;else if(fe.type===P.BindingTypeEnum.Function)ae=fe.cache,fe.activated=!0;else if(fe.type===P.BindingTypeEnum.Constructor)ae=fe.implementationType;else if(fe.type===P.BindingTypeEnum.DynamicValue&&fe.dynamicValue!==null)ae=V("toDynamicValue",fe.serviceIdentifier,function(){return fe.dynamicValue(g.parentContext)});else if(fe.type===P.BindingTypeEnum.Factory&&fe.factory!==null)ae=V("toFactory",fe.serviceIdentifier,function(){return fe.factory(g.parentContext)});else if(fe.type===P.BindingTypeEnum.Provider&&fe.provider!==null)ae=V("toProvider",fe.serviceIdentifier,function(){return fe.provider(g.parentContext)});else if(fe.type===P.BindingTypeEnum.Instance&&fe.implementationType!==null)ae=B.resolveInstance(fe.implementationType,O,k(C));else{var be=b.getServiceIdentifierAsString(g.serviceIdentifier);throw new Error(v.INVALID_BINDING_TYPE+" "+be)}return typeof fe.onActivation=="function"&&(ae=fe.onActivation(g.parentContext,ae)),xe&&(fe.cache=ae,fe.activated=!0),ye&&C!==null&&!C.has(fe.id)&&C.set(fe.id,ae),ae}};function R(C){var g=k(C.plan.rootRequest.requestScope);return g(C.plan.rootRequest)}Y.resolve=R},83366:function(yt,Y,y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingInSyntax=void 0;var v=y(28421),P=y(71325),w=function(){function b(B){this._binding=B}return b.prototype.inRequestScope=function(){return this._binding.scope=v.BindingScopeEnum.Request,new P.BindingWhenOnSyntax(this._binding)},b.prototype.inSingletonScope=function(){return this._binding.scope=v.BindingScopeEnum.Singleton,new P.BindingWhenOnSyntax(this._binding)},b.prototype.inTransientScope=function(){return this._binding.scope=v.BindingScopeEnum.Transient,new P.BindingWhenOnSyntax(this._binding)},b}();Y.BindingInSyntax=w},99812:function(yt,Y,y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingInWhenOnSyntax=void 0;var v=y(83366),P=y(51811),w=y(98370),b=function(){function B(V){this._binding=V,this._bindingWhenSyntax=new w.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new P.BindingOnSyntax(this._binding),this._bindingInSyntax=new v.BindingInSyntax(V)}return B.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},B.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},B.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},B.prototype.when=function(V){return this._bindingWhenSyntax.when(V)},B.prototype.whenTargetNamed=function(V){return this._bindingWhenSyntax.whenTargetNamed(V)},B.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},B.prototype.whenTargetTagged=function(V,k){return this._bindingWhenSyntax.whenTargetTagged(V,k)},B.prototype.whenInjectedInto=function(V){return this._bindingWhenSyntax.whenInjectedInto(V)},B.prototype.whenParentNamed=function(V){return this._bindingWhenSyntax.whenParentNamed(V)},B.prototype.whenParentTagged=function(V,k){return this._bindingWhenSyntax.whenParentTagged(V,k)},B.prototype.whenAnyAncestorIs=function(V){return this._bindingWhenSyntax.whenAnyAncestorIs(V)},B.prototype.whenNoAncestorIs=function(V){return this._bindingWhenSyntax.whenNoAncestorIs(V)},B.prototype.whenAnyAncestorNamed=function(V){return this._bindingWhenSyntax.whenAnyAncestorNamed(V)},B.prototype.whenAnyAncestorTagged=function(V,k){return this._bindingWhenSyntax.whenAnyAncestorTagged(V,k)},B.prototype.whenNoAncestorNamed=function(V){return this._bindingWhenSyntax.whenNoAncestorNamed(V)},B.prototype.whenNoAncestorTagged=function(V,k){return this._bindingWhenSyntax.whenNoAncestorTagged(V,k)},B.prototype.whenAnyAncestorMatches=function(V){return this._bindingWhenSyntax.whenAnyAncestorMatches(V)},B.prototype.whenNoAncestorMatches=function(V){return this._bindingWhenSyntax.whenNoAncestorMatches(V)},B.prototype.onActivation=function(V){return this._bindingOnSyntax.onActivation(V)},B}();Y.BindingInWhenOnSyntax=b},51811:function(yt,Y,y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingOnSyntax=void 0;var v=y(98370),P=function(){function w(b){this._binding=b}return w.prototype.onActivation=function(b){return this._binding.onActivation=b,new v.BindingWhenSyntax(this._binding)},w}();Y.BindingOnSyntax=P},51860:function(yt,Y,y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingToSyntax=void 0;var v=y(16674),P=y(28421),w=y(99812),b=y(71325),B=function(){function V(k){this._binding=k}return V.prototype.to=function(k){return this._binding.type=P.BindingTypeEnum.Instance,this._binding.implementationType=k,new w.BindingInWhenOnSyntax(this._binding)},V.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+v.INVALID_TO_SELF_VALUE);var k=this._binding.serviceIdentifier;return this.to(k)},V.prototype.toConstantValue=function(k){return this._binding.type=P.BindingTypeEnum.ConstantValue,this._binding.cache=k,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=P.BindingScopeEnum.Singleton,new b.BindingWhenOnSyntax(this._binding)},V.prototype.toDynamicValue=function(k){return this._binding.type=P.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=k,this._binding.implementationType=null,new w.BindingInWhenOnSyntax(this._binding)},V.prototype.toConstructor=function(k){return this._binding.type=P.BindingTypeEnum.Constructor,this._binding.implementationType=k,this._binding.scope=P.BindingScopeEnum.Singleton,new b.BindingWhenOnSyntax(this._binding)},V.prototype.toFactory=function(k){return this._binding.type=P.BindingTypeEnum.Factory,this._binding.factory=k,this._binding.scope=P.BindingScopeEnum.Singleton,new b.BindingWhenOnSyntax(this._binding)},V.prototype.toFunction=function(k){if(typeof k!="function")throw new Error(v.INVALID_FUNCTION_BINDING);var R=this.toConstantValue(k);return this._binding.type=P.BindingTypeEnum.Function,this._binding.scope=P.BindingScopeEnum.Singleton,R},V.prototype.toAutoFactory=function(k){return this._binding.type=P.BindingTypeEnum.Factory,this._binding.factory=function(R){var C=function(){return R.container.get(k)};return C},this._binding.scope=P.BindingScopeEnum.Singleton,new b.BindingWhenOnSyntax(this._binding)},V.prototype.toProvider=function(k){return this._binding.type=P.BindingTypeEnum.Provider,this._binding.provider=k,this._binding.scope=P.BindingScopeEnum.Singleton,new b.BindingWhenOnSyntax(this._binding)},V.prototype.toService=function(k){this.toDynamicValue(function(R){return R.container.get(k)})},V}();Y.BindingToSyntax=B},71325:function(yt,Y,y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingWhenOnSyntax=void 0;var v=y(51811),P=y(98370),w=function(){function b(B){this._binding=B,this._bindingWhenSyntax=new P.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new v.BindingOnSyntax(this._binding)}return b.prototype.when=function(B){return this._bindingWhenSyntax.when(B)},b.prototype.whenTargetNamed=function(B){return this._bindingWhenSyntax.whenTargetNamed(B)},b.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},b.prototype.whenTargetTagged=function(B,V){return this._bindingWhenSyntax.whenTargetTagged(B,V)},b.prototype.whenInjectedInto=function(B){return this._bindingWhenSyntax.whenInjectedInto(B)},b.prototype.whenParentNamed=function(B){return this._bindingWhenSyntax.whenParentNamed(B)},b.prototype.whenParentTagged=function(B,V){return this._bindingWhenSyntax.whenParentTagged(B,V)},b.prototype.whenAnyAncestorIs=function(B){return this._bindingWhenSyntax.whenAnyAncestorIs(B)},b.prototype.whenNoAncestorIs=function(B){return this._bindingWhenSyntax.whenNoAncestorIs(B)},b.prototype.whenAnyAncestorNamed=function(B){return this._bindingWhenSyntax.whenAnyAncestorNamed(B)},b.prototype.whenAnyAncestorTagged=function(B,V){return this._bindingWhenSyntax.whenAnyAncestorTagged(B,V)},b.prototype.whenNoAncestorNamed=function(B){return this._bindingWhenSyntax.whenNoAncestorNamed(B)},b.prototype.whenNoAncestorTagged=function(B,V){return this._bindingWhenSyntax.whenNoAncestorTagged(B,V)},b.prototype.whenAnyAncestorMatches=function(B){return this._bindingWhenSyntax.whenAnyAncestorMatches(B)},b.prototype.whenNoAncestorMatches=function(B){return this._bindingWhenSyntax.whenNoAncestorMatches(B)},b.prototype.onActivation=function(B){return this._bindingOnSyntax.onActivation(B)},b}();Y.BindingWhenOnSyntax=w},98370:function(yt,Y,y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingWhenSyntax=void 0;var v=y(51811),P=y(80758),w=function(){function b(B){this._binding=B}return b.prototype.when=function(B){return this._binding.constraint=B,new v.BindingOnSyntax(this._binding)},b.prototype.whenTargetNamed=function(B){return this._binding.constraint=P.namedConstraint(B),new v.BindingOnSyntax(this._binding)},b.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(B){var V=B.target!==null&&!B.target.isNamed()&&!B.target.isTagged();return V},new v.BindingOnSyntax(this._binding)},b.prototype.whenTargetTagged=function(B,V){return this._binding.constraint=P.taggedConstraint(B)(V),new v.BindingOnSyntax(this._binding)},b.prototype.whenInjectedInto=function(B){return this._binding.constraint=function(V){return P.typeConstraint(B)(V.parentRequest)},new v.BindingOnSyntax(this._binding)},b.prototype.whenParentNamed=function(B){return this._binding.constraint=function(V){return P.namedConstraint(B)(V.parentRequest)},new v.BindingOnSyntax(this._binding)},b.prototype.whenParentTagged=function(B,V){return this._binding.constraint=function(k){return P.taggedConstraint(B)(V)(k.parentRequest)},new v.BindingOnSyntax(this._binding)},b.prototype.whenAnyAncestorIs=function(B){return this._binding.constraint=function(V){return P.traverseAncerstors(V,P.typeConstraint(B))},new v.BindingOnSyntax(this._binding)},b.prototype.whenNoAncestorIs=function(B){return this._binding.constraint=function(V){return!P.traverseAncerstors(V,P.typeConstraint(B))},new v.BindingOnSyntax(this._binding)},b.prototype.whenAnyAncestorNamed=function(B){return this._binding.constraint=function(V){return P.traverseAncerstors(V,P.namedConstraint(B))},new v.BindingOnSyntax(this._binding)},b.prototype.whenNoAncestorNamed=function(B){return this._binding.constraint=function(V){return!P.traverseAncerstors(V,P.namedConstraint(B))},new v.BindingOnSyntax(this._binding)},b.prototype.whenAnyAncestorTagged=function(B,V){return this._binding.constraint=function(k){return P.traverseAncerstors(k,P.taggedConstraint(B)(V))},new v.BindingOnSyntax(this._binding)},b.prototype.whenNoAncestorTagged=function(B,V){return this._binding.constraint=function(k){return!P.traverseAncerstors(k,P.taggedConstraint(B)(V))},new v.BindingOnSyntax(this._binding)},b.prototype.whenAnyAncestorMatches=function(B){return this._binding.constraint=function(V){return P.traverseAncerstors(V,B)},new v.BindingOnSyntax(this._binding)},b.prototype.whenNoAncestorMatches=function(B){return this._binding.constraint=function(V){return!P.traverseAncerstors(V,B)},new v.BindingOnSyntax(this._binding)},b}();Y.BindingWhenSyntax=w},80758:function(yt,Y,y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.typeConstraint=Y.namedConstraint=Y.taggedConstraint=Y.traverseAncerstors=void 0;var v=y(6867),P=y(47738),w=function(k,R){var C=k.parentRequest;return C!==null?R(C)?!0:w(C,R):!1};Y.traverseAncerstors=w;var b=function(k){return function(R){var C=function(g){return g!==null&&g.target!==null&&g.target.matchesTag(k)(R)};return C.metaData=new P.Metadata(k,R),C}};Y.taggedConstraint=b;var B=b(v.NAMED_TAG);Y.namedConstraint=B;var V=function(k){return function(R){var C=null;if(R!==null)if(C=R.bindings[0],typeof k=="string"){var g=C.serviceIdentifier;return g===k}else{var A=R.bindings[0].implementationType;return k===A}return!1}};Y.typeConstraint=V},70600:function(yt,Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.multiBindToService=void 0;var y=function(v){return function(P){return function(){for(var w=[],b=0;b ")}function V(C){C.childRequests.forEach(function(g){if(b(g,g.serviceIdentifier)){var A=B(g);throw new Error(v.CIRCULAR_DEPENDENCY+" "+A)}else V(g)})}Y.circularDependencyToException=V;function k(C,g){if(g.isTagged()||g.isNamed()){var A="",O=g.getNamedTag(),K=g.getCustomTags();return O!==null&&(A+=O.toString()+` +`),K!==null&&K.forEach(function(he){A+=he.toString()+` `})," "+C+` - `+C+" - "+A}else return" "+C}Y.listMetadataForTarget=k;function M(C){if(C.name)return C.name;var g=C.toString(),A=g.match(/^function\s*([^\s(]+)/);return A?A[1]:"Anonymous function: "+g}Y.getFunctionName=M},76051:function(_t,Y,_){"use strict";var v=_(45119)(),R=_(97683),w=R("Object.prototype.toString"),b=function(M){return v&&M&&typeof M=="object"&&Symbol.toStringTag in M?!1:w(M)==="[object Arguments]"},B=function(M){return b(M)?!0:M!==null&&typeof M=="object"&&typeof M.length=="number"&&M.length>=0&&w(M)!=="[object Array]"&&w(M.callee)==="[object Function]"},V=function(){return b(arguments)}();b.isLegacyArguments=B,_t.exports=V?b:B},22948:function(_t){_t.exports=function(_){return!_||typeof _=="string"?!1:_ instanceof Array||Array.isArray(_)||_.length>=0&&(_.splice instanceof Function||Object.getOwnPropertyDescriptor(_,_.length-1)&&_.constructor.name!=="String")}},5012:function(_t,Y,_){"use strict";var v=Date.prototype.getDay,R=function(k){try{return v.call(k),!0}catch(M){return!1}},w=Object.prototype.toString,b="[object Date]",B=_(45119)();_t.exports=function(k){return typeof k!="object"||k===null?!1:B?R(k):w.call(k)===b}},11644:function(_t,Y,_){"use strict";var v=_(97683),R=_(45119)(),w,b,B,V;if(R){w=v("Object.prototype.hasOwnProperty"),b=v("RegExp.prototype.exec"),B={};var k=function(){throw B};V={toString:k,valueOf:k},typeof Symbol.toPrimitive=="symbol"&&(V[Symbol.toPrimitive]=k)}var M=v("Object.prototype.toString"),C=Object.getOwnPropertyDescriptor,g="[object RegExp]";_t.exports=R?function(O){if(!O||typeof O!="object")return!1;var K=C(O,"lastIndex"),ce=K&&w(K,"value");if(!ce)return!1;try{b(O,V)}catch(de){return de===B}}:function(O){return!O||typeof O!="object"&&typeof O!="function"?!1:M(O)===g}},99100:function(_t){var Y={}.toString;_t.exports=Array.isArray||function(_){return Y.call(_)=="[object Array]"}},72402:function(_t,Y,_){(function(v){if(!0)_t.exports=v();else var R})(function(){var v,R,w;return function b(B,V,k){function M(A,O){if(!V[A]){if(!B[A]){var K=void 0;if(!O&&K)return require(A,!0);if(C)return C(A,!0);var ce=new Error("Cannot find module '"+A+"'");throw ce.code="MODULE_NOT_FOUND",ce}var de=V[A]={exports:{}};B[A][0].call(de.exports,function(ve){var Ee=B[A][1][ve];return M(Ee||ve)},de,de.exports,b,B,V,k)}return V[A].exports}for(var C=void 0,g=0;g=43)}}).catch(function(){return!1})}function Ae(Ti){return typeof we=="boolean"?K.resolve(we):De(Ti).then(function(Li){return we=Li,we})}function Re(Ti){var Li=ot[Ti.name],eo={};eo.promise=new K(function(Eo,hs){eo.resolve=Eo,eo.reject=hs}),Li.deferredOperations.push(eo),Li.dbReady?Li.dbReady=Li.dbReady.then(function(){return eo.promise}):Li.dbReady=eo.promise}function $e(Ti){var Li=ot[Ti.name],eo=Li.deferredOperations.pop();if(eo)return eo.resolve(),eo.promise}function Ie(Ti,Li){var eo=ot[Ti.name],Eo=eo.deferredOperations.pop();if(Eo)return Eo.reject(Li),Eo.promise}function Xe(Ti,Li){return new K(function(eo,Eo){if(ot[Ti.name]=ot[Ti.name]||cn(),Ti.db)if(Li)Re(Ti),Ti.db.close();else return eo(Ti.db);var hs=[Ti.name];Li&&hs.push(Ti.version);var Wn=g.open.apply(g,hs);Li&&(Wn.onupgradeneeded=function(yo){var Qo=Wn.result;try{Qo.createObjectStore(Ti.storeName),yo.oldVersion<=1&&Qo.createObjectStore(_e)}catch(os){if(os.name==="ConstraintError")console.warn('The database "'+Ti.name+'" has been upgraded from version '+yo.oldVersion+" to version "+yo.newVersion+', but the storage "'+Ti.storeName+'" already exists.');else throw os}}),Wn.onerror=function(yo){yo.preventDefault(),Eo(Wn.error)},Wn.onsuccess=function(){var yo=Wn.result;yo.onversionchange=function(Qo){Qo.target.close()},eo(yo),$e(Ti)}})}function ze(Ti){return Xe(Ti,!1)}function Kt(Ti){return Xe(Ti,!0)}function St(Ti,Li){if(!Ti.db)return!0;var eo=!Ti.db.objectStoreNames.contains(Ti.storeName),Eo=Ti.versionTi.db.version;if(Eo&&(Ti.version!==Li&&console.warn('The database "'+Ti.name+`" can't be downgraded from version `+Ti.db.version+" to version "+Ti.version+"."),Ti.version=Ti.db.version),hs||eo){if(eo){var Wn=Ti.db.version+1;Wn>Ti.version&&(Ti.version=Wn)}return!0}return!1}function nt(Ti){return new K(function(Li,eo){var Eo=new FileReader;Eo.onerror=eo,Eo.onloadend=function(hs){var Wn=btoa(hs.target.result||"");Li({__local_forage_encoded_blob:!0,data:Wn,type:Ti.type})},Eo.readAsBinaryString(Ti)})}function Ct(Ti){var Li=Pe(atob(Ti.data));return O([Li],{type:Ti.type})}function lt(Ti){return Ti&&Ti.__local_forage_encoded_blob}function Gt(Ti){var Li=this,eo=Li._initReady().then(function(){var Eo=ot[Li._dbInfo.name];if(Eo&&Eo.dbReady)return Eo.dbReady});return de(eo,Ti,Ti),eo}function Rt(Ti){Re(Ti);for(var Li=ot[Ti.name],eo=Li.forages,Eo=0;Eo0&&(!Ti.db||Wn.name==="InvalidStateError"||Wn.name==="NotFoundError"))return K.resolve().then(function(){if(!Ti.db||Wn.name==="NotFoundError"&&!Ti.db.objectStoreNames.contains(Ti.storeName)&&Ti.version<=Ti.db.version)return Ti.db&&(Ti.version=Ti.db.version+1),Kt(Ti)}).then(function(){return Rt(Ti).then(function(){an(Ti,Li,eo,Eo-1)})}).catch(eo);eo(Wn)}}function cn(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Cr(Ti){var Li=this,eo={db:null};if(Ti)for(var Eo in Ti)eo[Eo]=Ti[Eo];var hs=ot[eo.name];hs||(hs=cn(),ot[eo.name]=hs),hs.forages.push(Li),Li._initReady||(Li._initReady=Li.ready,Li.ready=Gt);var Wn=[];function yo(){return K.resolve()}for(var Qo=0;Qo>4,Yn[hs++]=(yo&15)<<4|Qo>>2,Yn[hs++]=(Qo&3)<<6|os&63;return Ko}function mo(Ti){var Li=new Uint8Array(Ti),eo="",Eo;for(Eo=0;Eo>2],eo+=fi[(Li[Eo]&3)<<4|Li[Eo+1]>>4],eo+=fi[(Li[Eo+1]&15)<<2|Li[Eo+2]>>6],eo+=fi[Li[Eo+2]&63];return Li.length%3===2?eo=eo.substring(0,eo.length-1)+"=":Li.length%3===1&&(eo=eo.substring(0,eo.length-2)+"=="),eo}function Fr(Ti,Li){var eo="";if(Ti&&(eo=Sr.call(Ti)),Ti&&(eo==="[object ArrayBuffer]"||Ti.buffer&&Sr.call(Ti.buffer)==="[object ArrayBuffer]")){var Eo,hs=et;Ti instanceof ArrayBuffer?(Eo=Ti,hs+=$t):(Eo=Ti.buffer,eo==="[object Int8Array]"?hs+=gr:eo==="[object Uint8Array]"?hs+=kn:eo==="[object Uint8ClampedArray]"?hs+=bn:eo==="[object Int16Array]"?hs+=zt:eo==="[object Uint16Array]"?hs+=yn:eo==="[object Int32Array]"?hs+=Jt:eo==="[object Uint32Array]"?hs+=fr:eo==="[object Float32Array]"?hs+=vr:eo==="[object Float64Array]"?hs+=pn:Li(new Error("Failed to get type for BinaryArray"))),Li(hs+mo(Eo))}else if(eo==="[object Blob]"){var Wn=new FileReader;Wn.onload=function(){var yo=Ms+Ti.type+"~"+mo(this.result);Li(et+Dn+yo)},Wn.readAsArrayBuffer(Ti)}else try{Li(JSON.stringify(Ti))}catch(yo){console.error("Couldn't convert value into a JSON string: ",Ti),Li(null,yo)}}function to(Ti){if(Ti.substring(0,Dt)!==et)return JSON.parse(Ti);var Li=Ti.substring(wr),eo=Ti.substring(Dt,wr),Eo;if(eo===Dn&&In.test(Li)){var hs=Li.match(In);Eo=hs[1],Li=Li.substring(hs[0].length)}var Wn=Ai(Li);switch(eo){case $t:return Wn;case Dn:return O([Wn],{type:Eo});case gr:return new Int8Array(Wn);case kn:return new Uint8Array(Wn);case bn:return new Uint8ClampedArray(Wn);case zt:return new Int16Array(Wn);case yn:return new Uint16Array(Wn);case Jt:return new Int32Array(Wn);case fr:return new Uint32Array(Wn);case vr:return new Float32Array(Wn);case pn:return new Float64Array(Wn);default:throw new Error("Unkown type: "+eo)}}var Ji={serialize:Fr,deserialize:to,stringToBuffer:Ai,bufferToString:mo};function bo(Ti,Li,eo,Eo){Ti.executeSql("CREATE TABLE IF NOT EXISTS "+Li.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],eo,Eo)}function xn(Ti){var Li=this,eo={db:null};if(Ti)for(var Eo in Ti)eo[Eo]=typeof Ti[Eo]!="string"?Ti[Eo].toString():Ti[Eo];var hs=new K(function(Wn,yo){try{eo.db=openDatabase(eo.name,String(eo.version),eo.description,eo.size)}catch(Qo){return yo(Qo)}eo.db.transaction(function(Qo){bo(Qo,eo,function(){Li._dbInfo=eo,Wn()},function(os,Ko){yo(Ko)})},yo)});return eo.serializer=Ji,hs}function fn(Ti,Li,eo,Eo,hs,Wn){Ti.executeSql(eo,Eo,hs,function(yo,Qo){Qo.code===Qo.SYNTAX_ERR?yo.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Li.storeName],function(os,Ko){Ko.rows.length?Wn(os,Qo):bo(os,Li,function(){os.executeSql(eo,Eo,hs,Wn)},Wn)},Wn):Wn(yo,Qo)},Wn)}function It(Ti,Li){var eo=this;Ti=ve(Ti);var Eo=new K(function(hs,Wn){eo.ready().then(function(){var yo=eo._dbInfo;yo.db.transaction(function(Qo){fn(Qo,yo,"SELECT * FROM "+yo.storeName+" WHERE key = ? LIMIT 1",[Ti],function(os,Ko){var Yn=Ko.rows.length?Ko.rows.item(0).value:null;Yn&&(Yn=yo.serializer.deserialize(Yn)),hs(Yn)},function(os,Ko){Wn(Ko)})})}).catch(Wn)});return ce(Eo,Li),Eo}function Zt(Ti,Li){var eo=this,Eo=new K(function(hs,Wn){eo.ready().then(function(){var yo=eo._dbInfo;yo.db.transaction(function(Qo){fn(Qo,yo,"SELECT * FROM "+yo.storeName,[],function(os,Ko){for(var Yn=Ko.rows,kr=Yn.length,Gr=0;Gr0){yo(gn.apply(hs,[Ti,os,eo,Eo-1]));return}Qo(Gr)}})})}).catch(Qo)});return ce(Wn,eo),Wn}function $n(Ti,Li,eo){return gn.apply(this,[Ti,Li,eo,1])}function Ar(Ti,Li){var eo=this;Ti=ve(Ti);var Eo=new K(function(hs,Wn){eo.ready().then(function(){var yo=eo._dbInfo;yo.db.transaction(function(Qo){fn(Qo,yo,"DELETE FROM "+yo.storeName+" WHERE key = ?",[Ti],function(){hs()},function(os,Ko){Wn(Ko)})})}).catch(Wn)});return ce(Eo,Li),Eo}function Dr(Ti){var Li=this,eo=new K(function(Eo,hs){Li.ready().then(function(){var Wn=Li._dbInfo;Wn.db.transaction(function(yo){fn(yo,Wn,"DELETE FROM "+Wn.storeName,[],function(){Eo()},function(Qo,os){hs(os)})})}).catch(hs)});return ce(eo,Ti),eo}function dr(Ti){var Li=this,eo=new K(function(Eo,hs){Li.ready().then(function(){var Wn=Li._dbInfo;Wn.db.transaction(function(yo){fn(yo,Wn,"SELECT COUNT(key) as c FROM "+Wn.storeName,[],function(Qo,os){var Ko=os.rows.item(0).c;Eo(Ko)},function(Qo,os){hs(os)})})}).catch(hs)});return ce(eo,Ti),eo}function Xt(Ti,Li){var eo=this,Eo=new K(function(hs,Wn){eo.ready().then(function(){var yo=eo._dbInfo;yo.db.transaction(function(Qo){fn(Qo,yo,"SELECT key FROM "+yo.storeName+" WHERE id = ? LIMIT 1",[Ti+1],function(os,Ko){var Yn=Ko.rows.length?Ko.rows.item(0).key:null;hs(Yn)},function(os,Ko){Wn(Ko)})})}).catch(Wn)});return ce(Eo,Li),Eo}function Cn(Ti){var Li=this,eo=new K(function(Eo,hs){Li.ready().then(function(){var Wn=Li._dbInfo;Wn.db.transaction(function(yo){fn(yo,Wn,"SELECT key FROM "+Wn.storeName,[],function(Qo,os){for(var Ko=[],Yn=0;Yn '__WebKitDatabaseInfoTable__'",[],function(hs,Wn){for(var yo=[],Qo=0;Qo0}function vi(Ti){var Li=this,eo={};if(Ti)for(var Eo in Ti)eo[Eo]=Ti[Eo];return eo.keyPrefix=Xn(Ti,Li._defaultConfig),qr()?(Li._dbInfo=eo,eo.serializer=Ji,K.resolve()):K.reject()}function Hr(Ti){var Li=this,eo=Li.ready().then(function(){for(var Eo=Li._dbInfo.keyPrefix,hs=localStorage.length-1;hs>=0;hs--){var Wn=localStorage.key(hs);Wn.indexOf(Eo)===0&&localStorage.removeItem(Wn)}});return ce(eo,Ti),eo}function di(Ti,Li){var eo=this;Ti=ve(Ti);var Eo=eo.ready().then(function(){var hs=eo._dbInfo,Wn=localStorage.getItem(hs.keyPrefix+Ti);return Wn&&(Wn=hs.serializer.deserialize(Wn)),Wn});return ce(Eo,Li),Eo}function gi(Ti,Li){var eo=this,Eo=eo.ready().then(function(){for(var hs=eo._dbInfo,Wn=hs.keyPrefix,yo=Wn.length,Qo=localStorage.length,os=1,Ko=0;Ko=0;yo--){var Qo=localStorage.key(yo);Qo.indexOf(Wn)===0&&localStorage.removeItem(Qo)}}):hs=K.reject("Invalid arguments"),ce(hs,Li),hs}var Ur={_driver:"localStorageWrapper",_initStorage:vi,_support:An(),iterate:gi,getItem:di,setItem:Qi,removeItem:Xr,clear:Hr,length:zr,key:mi,keys:Bi,dropInstance:rs},gs=function(Li,eo){return Li===eo||typeof Li=="number"&&typeof eo=="number"&&isNaN(Li)&&isNaN(eo)},Kr=function(Li,eo){for(var Eo=Li.length,hs=0;hs-1}_t.exports=R},94874:function(_t){function Y(_,v,R){for(var w=-1,b=_==null?0:_.length;++w=v?_:v)),_}_t.exports=Y},99045:function(_t,Y,_){var v=_(91866),R=_(74809),w=_(60348),b=_(91937),B=_(26680),V=_(32315),k=_(47760),M=_(15168),C=_(71678),g=_(12076),A=_(22675),O=_(66139),K=_(79264),ce=_(97541),de=_(4084),ve=_(80744),Ee=_(57835),_e=_(41626),we=_(20816),ot=_(65226),He=_(55451),vt=_(56730),dt=1,Pe=2,De=4,Ae="[object Arguments]",Re="[object Array]",$e="[object Boolean]",Ie="[object Date]",Xe="[object Error]",ze="[object Function]",Kt="[object GeneratorFunction]",St="[object Map]",nt="[object Number]",Ct="[object Object]",lt="[object RegExp]",Gt="[object Set]",Rt="[object String]",an="[object Symbol]",cn="[object WeakMap]",Cr="[object ArrayBuffer]",ii="[object DataView]",Pi="[object Float32Array]",Ni="[object Float64Array]",Yi="[object Int8Array]",ti="[object Int16Array]",Ts="[object Int32Array]",Bs="[object Uint8Array]",Ce="[object Uint8ClampedArray]",Gi="[object Uint16Array]",qi="[object Uint32Array]",co={};co[Ae]=co[Re]=co[Cr]=co[ii]=co[$e]=co[Ie]=co[Pi]=co[Ni]=co[Yi]=co[ti]=co[Ts]=co[St]=co[nt]=co[Ct]=co[lt]=co[Gt]=co[Rt]=co[an]=co[Bs]=co[Ce]=co[Gi]=co[qi]=!0,co[Xe]=co[ze]=co[cn]=!1;function fi(Ms,In,et,Dt,$t,Dn){var gr,kn=In&dt,bn=In&Pe,zt=In&De;if(et&&(gr=$t?et(Ms,Dt,$t,Dn):et(Ms)),gr!==void 0)return gr;if(!we(Ms))return Ms;var Jt=ve(Ms);if(Jt){if(gr=K(Ms),!kn)return k(Ms,gr)}else{var yn=O(Ms),fr=yn==ze||yn==Kt;if(Ee(Ms))return V(Ms,kn);if(yn==Ct||yn==Ae||fr&&!$t){if(gr=bn||fr?{}:de(Ms),!kn)return bn?C(Ms,B(gr,Ms)):M(Ms,b(gr,Ms))}else{if(!co[yn])return $t?Ms:{};gr=ce(Ms,yn,kn)}}Dn||(Dn=new v);var vr=Dn.get(Ms);if(vr)return vr;Dn.set(Ms,gr),ot(Ms)?Ms.forEach(function(Sr){gr.add(fi(Sr,In,et,Sr,Ms,Dn))}):_e(Ms)&&Ms.forEach(function(Sr,Ai){gr.set(Ai,fi(Sr,In,et,Ai,Ms,Dn))});var pn=zt?bn?A:g:bn?vt:He,wr=Jt?void 0:pn(Ms);return R(wr||Ms,function(Sr,Ai){wr&&(Ai=Sr,Sr=Ms[Ai]),w(gr,Ai,fi(Sr,In,et,Ai,Ms,Dn))}),gr}_t.exports=fi},35024:function(_t,Y,_){var v=_(20816),R=Object.create,w=function(){function b(){}return function(B){if(!v(B))return{};if(R)return R(B);b.prototype=B;var V=new b;return b.prototype=void 0,V}}();_t.exports=w},51533:function(_t){function Y(_,v,R,w){for(var b=_.length,B=R+(w?1:-1);w?B--:++B-1;)ve!==C&&k.call(ve,Ee,1),k.call(C,Ee,1);return C}_t.exports=M},92918:function(_t,Y,_){var v=_(46962),R=_(19652),w=_(71152);function b(B,V){return w(R(B,V,v),B+"")}_t.exports=b},63989:function(_t,Y,_){var v=_(13503),R=_(35234),w=_(46962),b=R?function(B,V){return R(B,"toString",{configurable:!0,enumerable:!1,value:v(V),writable:!0})}:w;_t.exports=b},75760:function(_t){function Y(_,v,R){var w=-1,b=_.length;v<0&&(v=-v>b?0:b+v),R=R>b?b:R,R<0&&(R+=b),b=v>R?0:R-v>>>0,v>>>=0;for(var B=Array(b);++w=k){var _e=g?null:B(C);if(_e)return V(_e);de=!1,K=b,Ee=new v}else Ee=g?[]:ve;e:for(;++O=V?w:v(w,b,B)}_t.exports=R},20188:function(_t,Y,_){var v=_(77945);function R(w){var b=new w.constructor(w.byteLength);return new v(b).set(new v(w)),b}_t.exports=R},32315:function(_t,Y,_){_t=_.nmd(_t);var v=_(33152),R=Y&&!Y.nodeType&&Y,w=R&&!0&&_t&&!_t.nodeType&&_t,b=w&&w.exports===R,B=b?v.Buffer:void 0,V=B?B.allocUnsafe:void 0;function k(M,C){if(C)return M.slice();var g=M.length,A=V?V(g):new M.constructor(g);return M.copy(A),A}_t.exports=k},27984:function(_t,Y,_){var v=_(20188);function R(w,b){var B=b?v(w.buffer):w.buffer;return new w.constructor(B,w.byteOffset,w.byteLength)}_t.exports=R},78583:function(_t){var Y=/\w*$/;function _(v){var R=new v.constructor(v.source,Y.exec(v));return R.lastIndex=v.lastIndex,R}_t.exports=_},28757:function(_t,Y,_){var v=_(91869),R=v?v.prototype:void 0,w=R?R.valueOf:void 0;function b(B){return w?Object(w.call(B)):{}}_t.exports=b},78358:function(_t,Y,_){var v=_(20188);function R(w,b){var B=b?v(w.buffer):w.buffer;return new w.constructor(B,w.byteOffset,w.length)}_t.exports=R},47760:function(_t){function Y(_,v){var R=-1,w=_.length;for(v||(v=Array(w));++R1?V[M-1]:void 0,g=M>2?V[2]:void 0;for(C=b.length>3&&typeof C=="function"?(M--,C):void 0,g&&R(V[0],V[1],g)&&(C=M<3?void 0:C,M=1),B=Object(B);++kce))return!1;var ve=O.get(k),Ee=O.get(M);if(ve&&Ee)return ve==M&&Ee==k;var _e=-1,we=!0,ot=C&B?new v:void 0;for(O.set(k,M),O.set(M,k);++_e-1&&R%1==0&&R-1}_t.exports=R},54238:function(_t,Y,_){var v=_(67971);function R(w,b){var B=this.__data__,V=v(B,w);return V<0?(++this.size,B.push([w,b])):B[V][1]=b,this}_t.exports=R},35365:function(_t,Y,_){var v=_(76414),R=_(99746),w=_(40164);function b(){this.size=0,this.__data__={hash:new v,map:new(w||R),string:new v}}_t.exports=b},63765:function(_t,Y,_){var v=_(89819);function R(w){var b=v(this,w).delete(w);return this.size-=b?1:0,b}_t.exports=R},12608:function(_t,Y,_){var v=_(89819);function R(w){return v(this,w).get(w)}_t.exports=R},10203:function(_t,Y,_){var v=_(89819);function R(w){return v(this,w).has(w)}_t.exports=R},11298:function(_t,Y,_){var v=_(89819);function R(w,b){var B=v(this,w),V=B.size;return B.set(w,b),this.size+=B.size==V?0:1,this}_t.exports=R},83383:function(_t){function Y(_){var v=-1,R=Array(_.size);return _.forEach(function(w,b){R[++v]=[b,w]}),R}_t.exports=Y},26332:function(_t,Y,_){var v=_(52858),R=500;function w(b){var B=v(b,function(k){return V.size===R&&V.clear(),k}),V=B.cache;return B}_t.exports=w},65294:function(_t,Y,_){var v=_(73893),R=v(Object,"create");_t.exports=R},23730:function(_t,Y,_){var v=_(31030),R=v(Object.keys,Object);_t.exports=R},97817:function(_t){function Y(_){var v=[];if(_!=null)for(var R in Object(_))v.push(R);return v}_t.exports=Y},52495:function(_t,Y,_){_t=_.nmd(_t);var v=_(37675),R=Y&&!Y.nodeType&&Y,w=R&&!0&&_t&&!_t.nodeType&&_t,b=w&&w.exports===R,B=b&&v.process,V=function(){try{var k=w&&w.require&&w.require("util").types;return k||B&&B.binding&&B.binding("util")}catch(M){}}();_t.exports=V},74702:function(_t){var Y=Object.prototype,_=Y.toString;function v(R){return _.call(R)}_t.exports=v},31030:function(_t){function Y(_,v){return function(R){return _(v(R))}}_t.exports=Y},19652:function(_t,Y,_){var v=_(79628),R=Math.max;function w(b,B,V){return B=R(B===void 0?b.length-1:B,0),function(){for(var k=arguments,M=-1,C=R(k.length-B,0),g=Array(C);++M0){if(++b>=Y)return arguments[0]}else b=0;return w.apply(void 0,arguments)}}_t.exports=R},31119:function(_t,Y,_){var v=_(99746);function R(){this.__data__=new v,this.size=0}_t.exports=R},64399:function(_t){function Y(_){var v=this.__data__,R=v.delete(_);return this.size=v.size,R}_t.exports=Y},81897:function(_t){function Y(_){return this.__data__.get(_)}_t.exports=Y},90558:function(_t){function Y(_){return this.__data__.has(_)}_t.exports=Y},64841:function(_t,Y,_){var v=_(99746),R=_(40164),w=_(52166),b=200;function B(V,k){var M=this.__data__;if(M instanceof v){var C=M.__data__;if(!R||C.length=C||ze<0||we&&Kt>=K}function De(){var Xe=R();if(Pe(Xe))return Ae(Xe);de=setTimeout(De,dt(Xe))}function Ae(Xe){return de=void 0,ot&&A?He(Xe):(A=O=void 0,ce)}function Re(){de!==void 0&&clearTimeout(de),Ee=0,A=ve=O=de=void 0}function $e(){return de===void 0?ce:Ae(R())}function Ie(){var Xe=R(),ze=Pe(Xe);if(A=arguments,O=this,ve=Xe,ze){if(de===void 0)return vt(ve);if(we)return clearTimeout(de),de=setTimeout(De,C),He(ve)}return de===void 0&&(de=setTimeout(De,C)),ce}return Ie.cancel=Re,Ie.flush=$e,Ie}_t.exports=k},31876:function(_t,Y,_){var v=_(70668),R=_(44140),w=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,b="\\u0300-\\u036f",B="\\ufe20-\\ufe2f",V="\\u20d0-\\u20ff",k=b+B+V,M="["+k+"]",C=RegExp(M,"g");function g(A){return A=R(A),A&&A.replace(w,v).replace(C,"")}_t.exports=g},43607:function(_t){function Y(_,v){return _===v||_!==_&&v!==v}_t.exports=Y},44231:function(_t,Y,_){var v=_(89147);function R(w,b,B){var V=w==null?void 0:v(w,b);return V===void 0?B:V}_t.exports=R},46962:function(_t){function Y(_){return _}_t.exports=Y},13053:function(_t,Y,_){var v=_(4977),R=_(93913),w=Object.prototype,b=w.hasOwnProperty,B=w.propertyIsEnumerable,V=v(function(){return arguments}())?v:function(k){return R(k)&&b.call(k,"callee")&&!B.call(k,"callee")};_t.exports=V},80744:function(_t){var Y=Array.isArray;_t.exports=Y},24665:function(_t,Y,_){var v=_(9363),R=_(11156);function w(b){return b!=null&&R(b.length)&&!v(b)}_t.exports=w},41590:function(_t,Y,_){var v=_(24665),R=_(93913);function w(b){return R(b)&&v(b)}_t.exports=w},26561:function(_t,Y,_){var v=_(86756),R=_(93913),w="[object Boolean]";function b(B){return B===!0||B===!1||R(B)&&v(B)==w}_t.exports=b},57835:function(_t,Y,_){_t=_.nmd(_t);var v=_(33152),R=_(55950),w=Y&&!Y.nodeType&&Y,b=w&&!0&&_t&&!_t.nodeType&&_t,B=b&&b.exports===w,V=B?v.Buffer:void 0,k=V?V.isBuffer:void 0,M=k||R;_t.exports=M},98621:function(_t,Y,_){var v=_(77295);function R(w,b){return v(w,b)}_t.exports=R},9363:function(_t,Y,_){var v=_(86756),R=_(20816),w="[object AsyncFunction]",b="[object Function]",B="[object GeneratorFunction]",V="[object Proxy]";function k(M){if(!R(M))return!1;var C=v(M);return C==b||C==B||C==w||C==V}_t.exports=k},11156:function(_t){var Y=9007199254740991;function _(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=Y}_t.exports=_},41626:function(_t,Y,_){var v=_(55005),R=_(38342),w=_(52495),b=w&&w.isMap,B=b?R(b):v;_t.exports=B},93544:function(_t){function Y(_){return _==null}_t.exports=Y},68868:function(_t,Y,_){var v=_(86756),R=_(93913),w="[object Number]";function b(B){return typeof B=="number"||R(B)&&v(B)==w}_t.exports=b},20816:function(_t){function Y(_){var v=typeof _;return _!=null&&(v=="object"||v=="function")}_t.exports=Y},93913:function(_t){function Y(_){return _!=null&&typeof _=="object"}_t.exports=Y},19308:function(_t,Y,_){var v=_(86756),R=_(49217),w=_(93913),b="[object Object]",B=Function.prototype,V=Object.prototype,k=B.toString,M=V.hasOwnProperty,C=k.call(Object);function g(A){if(!w(A)||v(A)!=b)return!1;var O=R(A);if(O===null)return!0;var K=M.call(O,"constructor")&&O.constructor;return typeof K=="function"&&K instanceof K&&k.call(K)==C}_t.exports=g},65226:function(_t,Y,_){var v=_(38652),R=_(38342),w=_(52495),b=w&&w.isSet,B=b?R(b):v;_t.exports=B},7941:function(_t,Y,_){var v=_(86756),R=_(80744),w=_(93913),b="[object String]";function B(V){return typeof V=="string"||!R(V)&&w(V)&&v(V)==b}_t.exports=B},45029:function(_t,Y,_){var v=_(86756),R=_(93913),w="[object Symbol]";function b(B){return typeof B=="symbol"||R(B)&&v(B)==w}_t.exports=b},18397:function(_t,Y,_){var v=_(10766),R=_(38342),w=_(52495),b=w&&w.isTypedArray,B=b?R(b):v;_t.exports=B},16513:function(_t){function Y(_){return _===void 0}_t.exports=Y},55451:function(_t,Y,_){var v=_(63333),R=_(6019),w=_(24665);function b(B){return w(B)?v(B):R(B)}_t.exports=b},56730:function(_t,Y,_){var v=_(63333),R=_(33988),w=_(24665);function b(B){return w(B)?v(B,!0):R(B)}_t.exports=b},89392:function(_t,Y,_){_t=_.nmd(_t);var v;(function(){var R,w="4.17.21",b=200,B="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",V="Expected a function",k="Invalid `variable` option passed into `_.template`",M="__lodash_hash_undefined__",C=500,g="__lodash_placeholder__",A=1,O=2,K=4,ce=1,de=2,ve=1,Ee=2,_e=4,we=8,ot=16,He=32,vt=64,dt=128,Pe=256,De=512,Ae=30,Re="...",$e=800,Ie=16,Xe=1,ze=2,Kt=3,St=1/0,nt=9007199254740991,Ct=17976931348623157e292,lt=0/0,Gt=4294967295,Rt=Gt-1,an=Gt>>>1,cn=[["ary",dt],["bind",ve],["bindKey",Ee],["curry",we],["curryRight",ot],["flip",De],["partial",He],["partialRight",vt],["rearg",Pe]],Cr="[object Arguments]",ii="[object Array]",Pi="[object AsyncFunction]",Ni="[object Boolean]",Yi="[object Date]",ti="[object DOMException]",Ts="[object Error]",Bs="[object Function]",Ce="[object GeneratorFunction]",Gi="[object Map]",qi="[object Number]",co="[object Null]",fi="[object Object]",Ms="[object Promise]",In="[object Proxy]",et="[object RegExp]",Dt="[object Set]",$t="[object String]",Dn="[object Symbol]",gr="[object Undefined]",kn="[object WeakMap]",bn="[object WeakSet]",zt="[object ArrayBuffer]",Jt="[object DataView]",yn="[object Float32Array]",fr="[object Float64Array]",vr="[object Int8Array]",pn="[object Int16Array]",wr="[object Int32Array]",Sr="[object Uint8Array]",Ai="[object Uint8ClampedArray]",mo="[object Uint16Array]",Fr="[object Uint32Array]",to=/\b__p \+= '';/g,Ji=/\b(__p \+=) '' \+/g,bo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xn=/&(?:amp|lt|gt|quot|#39);/g,fn=/[&<>"']/g,It=RegExp(xn.source),Zt=RegExp(fn.source),gn=/<%-([\s\S]+?)%>/g,$n=/<%([\s\S]+?)%>/g,Ar=/<%=([\s\S]+?)%>/g,Dr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dr=/^\w*$/,Xt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cn=/[\\^$.*+?()[\]{}|]/g,er=RegExp(Cn.source),Mr=/^\s+/,ji=/\s/,An=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xn=/\{\n\/\* \[wrapped with (.+)\] \*/,nr=/,? & /,qr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vi=/[()=,{}\[\]\/\s]/,Hr=/\\(\\)?/g,di=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gi=/\w*$/,mi=/^[-+]0x[0-9a-f]+$/i,Bi=/^0b[01]+$/i,zr=/^\[object .+?Constructor\]$/,Xr=/^0o[0-7]+$/i,Qi=/^(?:0|[1-9]\d*)$/,rs=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ur=/($^)/,gs=/['\n\r\u2028\u2029\\]/g,Kr="\\ud800-\\udfff",ri="\\u0300-\\u036f",is="\\ufe20-\\ufe2f",Jr="\\u20d0-\\u20ff",_n=ri+is+Jr,Br="\\u2700-\\u27bf",es="a-z\\xdf-\\xf6\\xf8-\\xff",ko="\\xac\\xb1\\xd7\\xf7",vs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ba="\\u2000-\\u206f",uo=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ca="A-Z\\xc0-\\xd6\\xd8-\\xde",ll="\\ufe0e\\ufe0f",Ti=ko+vs+Ba+uo,Li="['\u2019]",eo="["+Kr+"]",Eo="["+Ti+"]",hs="["+_n+"]",Wn="\\d+",yo="["+Br+"]",Qo="["+es+"]",os="[^"+Kr+Ti+Wn+Br+es+ca+"]",Ko="\\ud83c[\\udffb-\\udfff]",Yn="(?:"+hs+"|"+Ko+")",kr="[^"+Kr+"]",Gr="(?:\\ud83c[\\udde6-\\uddff]){2}",je="[\\ud800-\\udbff][\\udc00-\\udfff]",ut="["+ca+"]",ht="\\u200d",Ue="(?:"+Qo+"|"+os+")",ft="(?:"+ut+"|"+os+")",Pt="(?:"+Li+"(?:d|ll|m|re|s|t|ve))?",ln="(?:"+Li+"(?:D|LL|M|RE|S|T|VE))?",sr=Yn+"?",Zr="["+ll+"]?",Ui="(?:"+ht+"(?:"+[kr,Gr,je].join("|")+")"+Zr+sr+")*",To="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Us=Zr+sr+Ui,Is="(?:"+[yo,Gr,je].join("|")+")"+Us,Rs="(?:"+[kr+hs+"?",hs,Gr,je,eo].join("|")+")",Ns=RegExp(Li,"g"),Lo=RegExp(hs,"g"),Ps=RegExp(Ko+"(?="+Ko+")|"+Rs+Us,"g"),ua=RegExp([ut+"?"+Qo+"+"+Pt+"(?="+[Eo,ut,"$"].join("|")+")",ft+"+"+ln+"(?="+[Eo,ut+Ue,"$"].join("|")+")",ut+"?"+Ue+"+"+Pt,ut+"+"+ln,Vi,To,Wn,Is].join("|"),"g"),Ka=RegExp("["+ht+Kr+_n+ll+"]"),Hl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],fs=-1,Hs={};Hs[yn]=Hs[fr]=Hs[vr]=Hs[pn]=Hs[wr]=Hs[Sr]=Hs[Ai]=Hs[mo]=Hs[Fr]=!0,Hs[Cr]=Hs[ii]=Hs[zt]=Hs[Ni]=Hs[Jt]=Hs[Yi]=Hs[Ts]=Hs[Bs]=Hs[Gi]=Hs[qi]=Hs[fi]=Hs[et]=Hs[Dt]=Hs[$t]=Hs[kn]=!1;var dl={};dl[Cr]=dl[ii]=dl[zt]=dl[Jt]=dl[Ni]=dl[Yi]=dl[yn]=dl[fr]=dl[vr]=dl[pn]=dl[wr]=dl[Gi]=dl[qi]=dl[fi]=dl[et]=dl[Dt]=dl[$t]=dl[Dn]=dl[Sr]=dl[Ai]=dl[mo]=dl[Fr]=!0,dl[Ts]=dl[Bs]=dl[kn]=!1;var Xo={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Mi={"&":"&","<":"<",">":">",'"':""","'":"'"},Yo={"&":"&","<":"<",">":">",""":'"',"'":"'"},Os={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cs=parseFloat,xa=parseInt,Xu=typeof _.g=="object"&&_.g&&_.g.Object===Object&&_.g,gc=typeof self=="object"&&self&&self.Object===Object&&self,Zu=Xu||gc||Function("return this")(),Cd=Y&&!Y.nodeType&&Y,ad=Cd&&!0&&_t&&!_t.nodeType&&_t,gu=ad&&ad.exports===Cd,iu=gu&&Xu.process,Tu=function(){try{var Qa=ad&&ad.require&&ad.require("util").types;return Qa||iu&&iu.binding&&iu.binding("util")}catch(_u){}}(),Si=Tu&&Tu.isArrayBuffer,tr=Tu&&Tu.isDate,Un=Tu&&Tu.isMap,jr=Tu&&Tu.isRegExp,Qr=Tu&&Tu.isSet,_o=Tu&&Tu.isTypedArray;function us(Qa,_u,Al){switch(Al.length){case 0:return Qa.call(_u);case 1:return Qa.call(_u,Al[0]);case 2:return Qa.call(_u,Al[0],Al[1]);case 3:return Qa.call(_u,Al[0],Al[1],Al[2])}return Qa.apply(_u,Al)}function ns(Qa,_u,Al,du){for(var Au=-1,Sc=Qa==null?0:Qa.length;++Au-1}function _a(Qa,_u,Al){for(var du=-1,Au=Qa==null?0:Qa.length;++du-1;);return Al}function zs(Qa,_u){for(var Al=Qa.length;Al--&&Pc(_u,Qa[Al],0)>-1;);return Al}function $a(Qa,_u){for(var Al=Qa.length,du=0;Al--;)Qa[Al]===_u&&++du;return du}var Ja=Td(Xo),pl=Td(Mi);function au(Qa){return"\\"+Os[Qa]}function ac(Qa,_u){return Qa==null?R:Qa[_u]}function $u(Qa){return Ka.test(Qa)}function cc(Qa){return Hl.test(Qa)}function Hu(Qa){for(var _u,Al=[];!(_u=Qa.next()).done;)Al.push(_u.value);return Al}function Fl(Qa){var _u=-1,Al=Array(Qa.size);return Qa.forEach(function(du,Au){Al[++_u]=[Au,du]}),Al}function Ou(Qa,_u){return function(Al){return Qa(_u(Al))}}function Qc(Qa,_u){for(var Al=-1,du=Qa.length,Au=0,Sc=[];++Al-1}function J(ye,Qe){var sn=this.__data__,si=Bu(sn,ye);return si<0?(++this.size,sn.push([ye,Qe])):sn[si][1]=Qe,this}Ht.prototype.clear=en,Ht.prototype.delete=zn,Ht.prototype.get=Ir,Ht.prototype.has=G,Ht.prototype.set=J;function Q(ye){var Qe=-1,sn=ye==null?0:ye.length;for(this.clear();++Qe=Qe?ye:Qe)),ye}function jh(ye,Qe,sn,si,cs,Ia){var ql,pu=Qe&A,rc=Qe&O,jd=Qe&K;if(sn&&(ql=cs?sn(ye,si,cs,Ia):sn(ye)),ql!==R)return ql;if(!vl(ye))return ye;var Hd=me(ye);if(Hd){if(ql=ho(ye),!pu)return Vt(ye,ql)}else{var mh=Ys(ye),zf=mh==Bs||mh==Ce;if(En(ye))return nn(ye,pu);if(mh==fi||mh==Cr||zf&&!cs){if(ql=rc||zf?{}:Sa(ye),!pu)return rc?_r(ye,ld(ql,ye)):Fn(ye,Ju(ql,ye))}else{if(!dl[mh])return cs?ye:{};ql=qo(ye,mh,pu)}}Ia||(Ia=new ki);var Cp=Ia.get(ye);if(Cp)return Cp;Ia.set(ye,ql),yf(ye)?ye.forEach(function(wg){ql.add(jh(wg,Qe,sn,wg,ye,Ia))}):Gu(ye)&&ye.forEach(function(wg,hm){ql.set(hm,jh(wg,Qe,sn,hm,ye,Ia))});var ng=jd?rc?As:ps:rc?dv:km,rg=Hd?R:ng(ye);return Oa(rg||ye,function(wg,hm){rg&&(hm=wg,wg=ye[hm]),Cu(ql,hm,jh(wg,Qe,sn,hm,ye,Ia))}),ql}function Jc(ye){var Qe=km(ye);return function(sn){return Ac(sn,ye,Qe)}}function Ac(ye,Qe,sn){var si=sn.length;if(ye==null)return!si;for(ye=wd(ye);si--;){var cs=sn[si],Ia=Qe[cs],ql=ye[cs];if(ql===R&&!(cs in ye)||!Ia(ql))return!1}return!0}function nf(ye,Qe,sn){if(typeof ye!="function")throw new uh(V);return Ul(function(){ye.apply(R,sn)},Qe)}function Wh(ye,Qe,sn,si){var cs=-1,Ia=Xl,ql=!0,pu=ye.length,rc=[],jd=Qe.length;if(!pu)return rc;sn&&(Qe=Ta(Qe,_h(sn))),si?(Ia=_a,ql=!1):Qe.length>=b&&(Ia=Mh,ql=!1,Qe=new yr(Qe));e:for(;++cscs?0:cs+sn),si=si===R||si>cs?cs:dc(si),si<0&&(si+=cs),si=sn>si?0:ih(si);sn0&&sn(pu)?Qe>1?gp(pu,Qe-1,sn,si,cs):Ya(cs,pu):si||(cs[cs.length]=pu)}return cs}var Gc=Yr(),bc=Yr(!0);function hd(ye,Qe){return ye&&Gc(ye,Qe,km)}function xd(ye,Qe){return ye&&bc(ye,Qe,km)}function rh(ye,Qe){return ea(Qe,function(sn){return Fa(ye[sn])})}function Ec(ye,Qe){Qe=xt(Qe,ye);for(var sn=0,si=Qe.length;ye!=null&&snQe}function Oo(ye,Qe){return ye!=null&&Mf.call(ye,Qe)}function Ig(ye,Qe){return ye!=null&&Qe in wd(ye)}function Op(ye,Qe,sn){return ye>=hp(Qe,sn)&&ye=120&&Hd.length>=120)?new yr(ql&&Hd):R}Hd=ye[0];var mh=-1,zf=pu[0];e:for(;++mh-1;)pu!==ye&&kg.call(pu,rc,1),kg.call(ye,rc,1);return ye}function Pg(ye,Qe){for(var sn=ye?Qe.length:0,si=sn-1;sn--;){var cs=Qe[sn];if(sn==si||cs!==Ia){var Ia=cs;Rl(cs)?kg.call(ye,cs,1):Fm(ye,cs)}}return ye}function cv(ye,Qe){return ye+xp(Tp()*(Qe-ye+1))}function Jf(ye,Qe,sn,si){for(var cs=-1,Ia=Pf(Kd((Qe-ye)/(sn||1)),0),ql=Al(Ia);Ia--;)ql[si?Ia:++cs]=ye,ye+=sn;return ql}function Dp(ye,Qe){var sn="";if(!ye||Qe<1||Qe>nt)return sn;do Qe%2&&(sn+=ye),Qe=xp(Qe/2),Qe&&(ye+=ye);while(Qe);return sn}function bf(ye,Qe){return Nh(hu(ye,Qe,p1),ye+"")}function O0(ye){return nl(M0(ye))}function N0(ye,Qe){var sn=M0(ye);return yt(sn,Bd(Qe,0,sn.length))}function um(ye,Qe,sn,si){if(!vl(ye))return ye;Qe=xt(Qe,ye);for(var cs=-1,Ia=Qe.length,ql=Ia-1,pu=ye;pu!=null&&++cscs?0:cs+Qe),sn=sn>cs?cs:sn,sn<0&&(sn+=cs),cs=Qe>sn?0:sn-Qe>>>0,Qe>>>=0;for(var Ia=Al(cs);++si>>1,ql=ye[Ia];ql!==null&&!bg(ql)&&(sn?ql<=Qe:ql=b){var jd=Qe?null:Xi(ye);if(jd)return fd(jd);ql=!1,cs=Mh,rc=new yr}else rc=Qe?[]:pu;e:for(;++si=si?ye:$h(ye,Qe,sn)}var on=Sg||function(ye){return Zu.clearTimeout(ye)};function nn(ye,Qe){if(Qe)return ye.slice();var sn=ye.length,si=uc?uc(sn):new ye.constructor(sn);return ye.copy(si),si}function hn(ye){var Qe=new ye.constructor(ye.byteLength);return new ug(Qe).set(new ug(ye)),Qe}function Ln(ye,Qe){var sn=Qe?hn(ye.buffer):ye.buffer;return new ye.constructor(sn,ye.byteOffset,ye.byteLength)}function Kn(ye){var Qe=new ye.constructor(ye.source,gi.exec(ye));return Qe.lastIndex=ye.lastIndex,Qe}function lr(ye){return oh?wd(oh.call(ye)):{}}function Rr(ye,Qe){var sn=Qe?hn(ye.buffer):ye.buffer;return new ye.constructor(sn,ye.byteOffset,ye.length)}function ni(ye,Qe){if(ye!==Qe){var sn=ye!==R,si=ye===null,cs=ye===ye,Ia=bg(ye),ql=Qe!==R,pu=Qe===null,rc=Qe===Qe,jd=bg(Qe);if(!pu&&!jd&&!Ia&&ye>Qe||Ia&&ql&&rc&&!pu&&!jd||si&&ql&&rc||!sn&&rc||!cs)return 1;if(!si&&!Ia&&!jd&&ye=pu)return rc;var jd=sn[si];return rc*(jd=="desc"?-1:1)}}return ye.index-Qe.index}function rt(ye,Qe,sn,si){for(var cs=-1,Ia=ye.length,ql=sn.length,pu=-1,rc=Qe.length,jd=Pf(Ia-ql,0),Hd=Al(rc+jd),mh=!si;++pu1?sn[cs-1]:R,ql=cs>2?sn[2]:R;for(Ia=ye.length>3&&typeof Ia=="function"?(cs--,Ia):R,ql&&Ga(sn[0],sn[1],ql)&&(Ia=cs<3?R:Ia,cs=1),Qe=wd(Qe);++si-1?cs[Ia?Qe[ql]:ql]:R}}function Mn(ye){return oi(function(Qe){var sn=Qe.length,si=sn,cs=ae.prototype.thru;for(ye&&Qe.reverse();si--;){var Ia=Qe[si];if(typeof Ia!="function")throw new uh(V);if(cs&&!ql&&no(Ia)=="wrapper")var ql=new ae([],!0)}for(si=ql?si:sn;++si1&&Om.reverse(),Hd&&rcpu))return!1;var jd=Ia.get(ye),Hd=Ia.get(Qe);if(jd&&Hd)return jd==Qe&&Hd==ye;var mh=-1,zf=!0,Cp=sn&de?new yr:R;for(Ia.set(ye,Qe),Ia.set(Qe,ye);++mh1?"& ":"")+Qe[si],Qe=Qe.join(sn>2?", ":" "),ye.replace(An,`{ -/* [wrapped with `+Qe+`] */ -`)}function ja(ye){return me(ye)||te(ye)||!!(_f&&ye&&ye[_f])}function Rl(ye,Qe){var sn=typeof ye;return Qe=Qe==null?nt:Qe,!!Qe&&(sn=="number"||sn!="symbol"&&Qi.test(ye))&&ye>-1&&ye%1==0&&ye0){if(++Qe>=$e)return arguments[0]}else Qe=0;return ye.apply(R,arguments)}}function yt(ye,Qe){var sn=-1,si=ye.length,cs=si-1;for(Qe=Qe===R?si:Qe;++sn1?ye[Qe-1]:R;return sn=typeof sn=="function"?(ye.pop(),sn):R,pc(ye,sn)});function mm(ye){var Qe=zo(ye);return Qe.__chain__=!0,Qe}function a0(ye,Qe){return Qe(ye),ye}function l0(ye,Qe){return Qe(ye)}var Gs=oi(function(ye){var Qe=ye.length,sn=Qe?ye[0]:0,si=this.__wrapped__,cs=function(Ia){return Xd(Ia,ye)};return Qe>1||this.__actions__.length||!(si instanceof pe)||!Rl(sn)?this.thru(cs):(si=si.slice(sn,+sn+(Qe?1:0)),si.__actions__.push({func:l0,args:[cs],thisArg:R}),new ae(si,this.__chain__).thru(function(Ia){return Qe&&!Ia.length&&Ia.push(R),Ia}))});function Xy(){return mm(this)}function vg(){return new ae(this.value(),this.__chain__)}function ev(){this.__values__===R&&(this.__values__=Su(this.value()));var ye=this.__index__>=this.__values__.length,Qe=ye?R:this.__values__[this.__index__++];return{done:ye,value:Qe}}function Me(){return this}function f(ye){for(var Qe,sn=this;sn instanceof j;){var si=So(sn);si.__index__=0,si.__values__=R,Qe?cs.__wrapped__=si:Qe=si;var cs=si;sn=sn.__wrapped__}return cs.__wrapped__=ye,Qe}function y(){var ye=this.__wrapped__;if(ye instanceof pe){var Qe=ye;return this.__actions__.length&&(Qe=new pe(this)),Qe=Qe.reverse(),Qe.__actions__.push({func:l0,args:[Mp],thisArg:R}),new ae(Qe,this.__chain__)}return this.thru(Mp)}function T(){return be(this.__wrapped__,this.__actions__)}var W=Jn(function(ye,Qe,sn){Mf.call(ye,sn)?++ye[sn]:yd(ye,sn,1)});function re(ye,Qe,sn){var si=me(ye)?Va:Oh;return sn&&Ga(ye,Qe,sn)&&(Qe=R),si(ye,Mo(Qe,3))}function he(ye,Qe){var sn=me(ye)?ea:lp;return sn(ye,Mo(Qe,3))}var Le=Lr(Fs),qe=Lr($l);function Ut(ye,Qe){return gp(Ro(ye,Qe),1)}function rn(ye,Qe){return gp(Ro(ye,Qe),St)}function Qn(ye,Qe,sn){return sn=sn===R?1:dc(sn),gp(Ro(ye,Qe),sn)}function br(ye,Qe){var sn=me(ye)?Oa:sh;return sn(ye,Mo(Qe,3))}function Ci(ye,Qe){var sn=me(ye)?ga:Yh;return sn(ye,Mo(Qe,3))}var Ii=Jn(function(ye,Qe,sn){Mf.call(ye,sn)?ye[sn].push(Qe):yd(ye,sn,[Qe])});function Po(ye,Qe,sn,si){ye=bt(ye)?ye:M0(ye),sn=sn&&!si?dc(sn):0;var cs=ye.length;return sn<0&&(sn=Pf(cs+sn,0)),jp(ye)?sn<=cs&&ye.indexOf(Qe,sn)>-1:!!cs&&Pc(ye,Qe,sn)>-1}var Io=bf(function(ye,Qe,sn){var si=-1,cs=typeof Qe=="function",Ia=bt(ye)?Al(ye.length):[];return sh(ye,function(ql){Ia[++si]=cs?us(Qe,ql,sn):qf(ql,Qe,sn)}),Ia}),Zo=Jn(function(ye,Qe,sn){yd(ye,sn,Qe)});function Ro(ye,Qe){var sn=me(ye)?Ta:Yg;return sn(ye,Mo(Qe,3))}function lo(ye,Qe,sn,si){return ye==null?[]:(me(Qe)||(Qe=Qe==null?[]:[Qe]),sn=si?R:sn,me(sn)||(sn=sn==null?[]:[sn]),k0(ye,Qe,sn))}var Js=Jn(function(ye,Qe,sn){ye[sn?0:1].push(Qe)},function(){return[[],[]]});function Ua(ye,Qe,sn){var si=me(ye)?cu:Gh,cs=arguments.length<3;return si(ye,Mo(Qe,4),sn,cs,sh)}function _l(ye,Qe,sn){var si=me(ye)?jl:Gh,cs=arguments.length<3;return si(ye,Mo(Qe,4),sn,cs,Yh)}function fu(ye,Qe){var sn=me(ye)?ea:lp;return sn(ye,Sd(Mo(Qe,3)))}function zu(ye){var Qe=me(ye)?nl:O0;return Qe(ye)}function Lu(ye,Qe,sn){(sn?Ga(ye,Qe,sn):Qe===R)?Qe=1:Qe=dc(Qe);var si=me(ye)?el:N0;return si(ye,Qe)}function od(ye){var Qe=me(ye)?Kl:X0;return Qe(ye)}function wu(ye){if(ye==null)return 0;if(bt(ye))return jp(ye)?Ch(ye):ye.length;var Qe=Ys(ye);return Qe==Gi||Qe==Dt?ye.size:i0(ye).length}function zc(ye,Qe,sn){var si=me(ye)?Mu:s0;return sn&&Ga(ye,Qe,sn)&&(Qe=R),si(ye,Mo(Qe,3))}var Nn=bf(function(ye,Qe){if(ye==null)return[];var sn=Qe.length;return sn>1&&Ga(ye,Qe[0],Qe[1])?Qe=[]:sn>2&&Ga(Qe[0],Qe[1],Qe[2])&&(Qe=[Qe[0]]),k0(ye,gp(Qe,1),[])}),or=ip||function(){return Zu.Date.now()};function Wr(ye,Qe){if(typeof Qe!="function")throw new uh(V);return ye=dc(ye),function(){if(--ye<1)return Qe.apply(this,arguments)}}function hi(ye,Qe,sn){return Qe=sn?R:Qe,Qe=ye&&Qe==null?ye.length:Qe,so(ye,dt,R,R,R,R,Qe)}function io(ye,Qe){var sn;if(typeof Qe!="function")throw new uh(V);return ye=dc(ye),function(){return--ye>0&&(sn=Qe.apply(this,arguments)),ye<=1&&(Qe=R),sn}}var ia=bf(function(ye,Qe,sn){var si=ve;if(sn.length){var cs=Qc(sn,ao(ia));si|=He}return so(ye,si,Qe,sn,cs)}),rl=bf(function(ye,Qe,sn){var si=ve|Ee;if(sn.length){var cs=Qc(sn,ao(rl));si|=He}return so(Qe,si,ye,sn,cs)});function js(ye,Qe,sn){Qe=sn?R:Qe;var si=so(ye,we,R,R,R,R,R,Qe);return si.placeholder=js.placeholder,si}function ul(ye,Qe,sn){Qe=sn?R:Qe;var si=so(ye,ot,R,R,R,R,R,Qe);return si.placeholder=ul.placeholder,si}function nu(ye,Qe,sn){var si,cs,Ia,ql,pu,rc,jd=0,Hd=!1,mh=!1,zf=!0;if(typeof ye!="function")throw new uh(V);Qe=Ud(Qe)||0,vl(sn)&&(Hd=!!sn.leading,mh="maxWait"in sn,Ia=mh?Pf(Ud(sn.maxWait)||0,Qe):Ia,zf="trailing"in sn?!!sn.trailing:zf);function Cp(xv){var j1=si,Fy=cs;return si=cs=R,jd=xv,ql=ye.apply(Fy,j1),ql}function ng(xv){return jd=xv,pu=Ul(hm,Qe),Hd?Cp(xv):ql}function rg(xv){var j1=xv-rc,Fy=xv-jd,m2=Qe-j1;return mh?hp(m2,Ia-Fy):m2}function wg(xv){var j1=xv-rc,Fy=xv-jd;return rc===R||j1>=Qe||j1<0||mh&&Fy>=Ia}function hm(){var xv=or();if(wg(xv))return Om(xv);pu=Ul(hm,rg(xv))}function Om(xv){return pu=R,zf&&si?Cp(xv):(si=cs=R,ql)}function E1(){pu!==R&&on(pu),jd=0,si=rc=cs=pu=R}function Hv(){return pu===R?ql:Om(or())}function T1(){var xv=or(),j1=wg(xv);if(si=arguments,cs=this,rc=xv,j1){if(pu===R)return ng(rc);if(mh)return on(pu),pu=Ul(hm,Qe),Cp(rc)}return pu===R&&(pu=Ul(hm,Qe)),ql}return T1.cancel=E1,T1.flush=Hv,T1}var ks=bf(function(ye,Qe){return nf(ye,1,Qe)}),Tc=bf(function(ye,Qe,sn){return nf(ye,Ud(Qe)||0,sn)});function ah(ye){return so(ye,De)}function kd(ye,Qe){if(typeof ye!="function"||Qe!=null&&typeof Qe!="function")throw new uh(V);var sn=function(){var si=arguments,cs=Qe?Qe.apply(this,si):si[0],Ia=sn.cache;if(Ia.has(cs))return Ia.get(cs);var ql=ye.apply(this,si);return sn.cache=Ia.set(cs,ql)||Ia,ql};return sn.cache=new(kd.Cache||Q),sn}kd.Cache=Q;function Sd(ye){if(typeof ye!="function")throw new uh(V);return function(){var Qe=arguments;switch(Qe.length){case 0:return!ye.call(this);case 1:return!ye.call(this,Qe[0]);case 2:return!ye.call(this,Qe[0],Qe[1]);case 3:return!ye.call(this,Qe[0],Qe[1],Qe[2])}return!ye.apply(this,Qe)}}function lh(ye){return io(2,ye)}var sp=pt(function(ye,Qe){Qe=Qe.length==1&&me(Qe[0])?Ta(Qe[0],_h(Mo())):Ta(gp(Qe,1),_h(Mo()));var sn=Qe.length;return bf(function(si){for(var cs=-1,Ia=hp(si.length,sn);++cs=Qe}),te=Zh(function(){return arguments}())?Zh:function(ye){return Yl(ye)&&Mf.call(ye,"callee")&&!Yp.call(ye,"callee")},me=Al.isArray,Ve=Si?_h(Si):Wf;function bt(ye){return ye!=null&&Wl(ye.length)&&!Fa(ye)}function gt(ye){return Yl(ye)&&bt(ye)}function Qt(ye){return ye===!0||ye===!1||Yl(ye)&&ch(ye)==Ni}var En=Lp||m_,Tr=tr?_h(tr):Np;function li(ye){return Yl(ye)&&ye.nodeType===1&&!dh(ye)}function Ri(ye){if(ye==null)return!0;if(bt(ye)&&(me(ye)||typeof ye=="string"||typeof ye.splice=="function"||En(ye)||nm(ye)||te(ye)))return!ye.length;var Qe=Ys(ye);if(Qe==Gi||Qe==Dt)return!ye.size;if(vu(ye))return!i0(ye).length;for(var sn in ye)if(Mf.call(ye,sn))return!1;return!0}function wo(ye,Qe){return Zp(ye,Qe)}function Ho(ye,Qe,sn){sn=typeof sn=="function"?sn:R;var si=sn?sn(ye,Qe):R;return si===R?Zp(ye,Qe,R,sn):!!si}function ys(ye){if(!Yl(ye))return!1;var Qe=ch(ye);return Qe==Ts||Qe==ti||typeof ye.message=="string"&&typeof ye.name=="string"&&!dh(ye)}function Ca(ye){return typeof ye=="number"&&gh(ye)}function Fa(ye){if(!vl(ye))return!1;var Qe=ch(ye);return Qe==Bs||Qe==Ce||Qe==Pi||Qe==In}function al(ye){return typeof ye=="number"&&ye==dc(ye)}function Wl(ye){return typeof ye=="number"&&ye>-1&&ye%1==0&&ye<=nt}function vl(ye){var Qe=typeof ye;return ye!=null&&(Qe=="object"||Qe=="function")}function Yl(ye){return ye!=null&&typeof ye=="object"}var Gu=Un?_h(Un):Gf;function sd(ye,Qe){return ye===Qe||of(ye,Qe,oa(Qe))}function xh(ye,Qe,sn){return sn=typeof sn=="function"?sn:R,of(ye,Qe,oa(Qe),sn)}function Bf(ye){return pf(ye)&&ye!=+ye}function Th(ye){if(xu(ye))throw new Au(B);return Ef(ye)}function Dh(ye){return ye===null}function Yd(ye){return ye==null}function pf(ye){return typeof ye=="number"||Yl(ye)&&ch(ye)==qi}function dh(ye){if(!Yl(ye)||ch(ye)!=fi)return!1;var Qe=dd(ye);if(Qe===null)return!0;var sn=Mf.call(Qe,"constructor")&&Qe.constructor;return typeof sn=="function"&&sn instanceof sn&&rd.call(sn)==Sh}var Md=jr?_h(jr):Eg;function Qf(ye){return al(ye)&&ye>=-nt&&ye<=nt}var yf=Qr?_h(Qr):Xg;function jp(ye){return typeof ye=="string"||!me(ye)&&Yl(ye)&&ch(ye)==$t}function bg(ye){return typeof ye=="symbol"||Yl(ye)&&ch(ye)==Dn}var nm=_o?_h(_o):np;function f0(ye){return ye===R}function yv(ye){return Yl(ye)&&Ys(ye)==kn}function p0(ye){return Yl(ye)&&ch(ye)==bn}var Rm=po(o0),Vu=po(function(ye,Qe){return ye<=Qe});function Su(ye){if(!ye)return[];if(bt(ye))return jp(ye)?Ad(ye):Vt(ye);if(bp&&ye[bp])return Hu(ye[bp]());var Qe=Ys(ye),sn=Qe==Gi?Fl:Qe==Dt?fd:M0;return sn(ye)}function nd(ye){if(!ye)return ye===0?ye:0;if(ye=Ud(ye),ye===St||ye===-St){var Qe=ye<0?-1:1;return Qe*Ct}return ye===ye?ye:0}function dc(ye){var Qe=nd(ye),sn=Qe%1;return Qe===Qe?sn?Qe-sn:Qe:0}function ih(ye){return ye?Bd(dc(ye),0,Gt):0}function Ud(ye){if(typeof ye=="number")return ye;if(bg(ye))return lt;if(vl(ye)){var Qe=typeof ye.valueOf=="function"?ye.valueOf():ye;ye=vl(Qe)?Qe+"":Qe}if(typeof ye!="string")return ye===0?ye:+ye;ye=Vf(ye);var sn=Bi.test(ye);return sn||Xr.test(ye)?xa(ye.slice(2),sn?2:8):mi.test(ye)?lt:+ye}function qh(ye){return qt(ye,dv(ye))}function ep(ye){return ye?Bd(dc(ye),-nt,nt):ye===0?ye:0}function Ah(ye){return ye==null?"":Hp(ye)}var Zf=hr(function(ye,Qe){if(vu(Qe)||bt(Qe)){qt(Qe,km(Qe),ye);return}for(var sn in Qe)Mf.call(Qe,sn)&&Cu(ye,sn,Qe[sn])}),Kf=hr(function(ye,Qe){qt(Qe,dv(Qe),ye)}),Lg=hr(function(ye,Qe,sn,si){qt(Qe,dv(Qe),ye,si)}),Cf=hr(function(ye,Qe,sn,si){qt(Qe,km(Qe),ye,si)}),zg=oi(Xd);function bm(ye,Qe){var sn=P(ye);return Qe==null?sn:Ju(sn,Qe)}var Am=bf(function(ye,Qe){ye=wd(ye);var sn=-1,si=Qe.length,cs=si>2?Qe[2]:R;for(cs&&Ga(Qe[0],Qe[1],cs)&&(si=1);++sn1),Ia}),qt(ye,As(ye),sn),si&&(sn=jh(sn,A|O|K,ha));for(var cs=Qe.length;cs--;)Fm(sn,Qe[cs]);return sn});function _y(ye,Qe){return T0(ye,Sd(Mo(Qe)))}var bv=oi(function(ye,Qe){return ye==null?{}:Ng(ye,Qe)});function T0(ye,Qe){if(ye==null)return{};var sn=Ta(As(ye),function(si){return[si]});return Qe=Mo(Qe),vm(ye,sn,function(si,cs){return Qe(si,cs[0])})}function f_(ye,Qe,sn){Qe=xt(Qe,ye);var si=-1,cs=Qe.length;for(cs||(cs=1,ye=R);++siQe){var si=ye;ye=Qe,Qe=si}if(sn||ye%1||Qe%1){var cs=Tp();return hp(ye+cs*(Qe-ye+Cs("1e-"+((cs+"").length-1))),Qe)}return cv(ye,Qe)}var t1=jn(function(ye,Qe,sn){return Qe=Qe.toLowerCase(),ye+(sn?w1(Qe):Qe)});function w1(ye){return Oy(Ah(ye).toLowerCase())}function C1(ye){return ye=Ah(ye),ye&&ye.replace(rs,Ja).replace(Lo,"")}function by(ye,Qe,sn){ye=Ah(ye),Qe=Hp(Qe);var si=ye.length;sn=sn===R?si:Bd(dc(sn),0,si);var cs=sn;return sn-=Qe.length,sn>=0&&ye.slice(sn,cs)==Qe}function F_(ye){return ye=Ah(ye),ye&&Zt.test(ye)?ye.replace(fn,pl):ye}function Bv(ye){return ye=Ah(ye),ye&&er.test(ye)?ye.replace(Cn,"\\$&"):ye}var ab=jn(function(ye,Qe,sn){return ye+(sn?"-":"")+Qe.toLowerCase()}),lb=jn(function(ye,Qe,sn){return ye+(sn?" ":"")+Qe.toLowerCase()}),z1=Ki("toLowerCase");function p_(ye,Qe,sn){ye=Ah(ye),Qe=dc(Qe);var si=Qe?Ch(ye):0;if(!Qe||si>=Qe)return ye;var cs=(Qe-si)/2;return wi(xp(cs),sn)+ye+wi(Kd(cs),sn)}function Px(ye,Qe,sn){ye=Ah(ye),Qe=dc(Qe);var si=Qe?Ch(ye):0;return Qe&&si>>0,sn?(ye=Ah(ye),ye&&(typeof Qe=="string"||Qe!=null&&!Md(Qe))&&(Qe=Hp(Qe),!Qe&&$u(ye))?jt(Ad(ye),0,sn):ye.split(Qe,sn)):[]}var u2=jn(function(ye,Qe,sn){return ye+(sn?" ":"")+Oy(Qe)});function cb(ye,Qe,sn){return ye=Ah(ye),sn=sn==null?0:Bd(dc(sn),0,ye.length),Qe=Hp(Qe),ye.slice(sn,sn+Qe.length)==Qe}function db(ye,Qe,sn){var si=zo.templateSettings;sn&&Ga(ye,Qe,sn)&&(Qe=R),ye=Ah(ye),Qe=Lg({},Qe,si,Wi);var cs=Lg({},Qe.imports,si.imports,Wi),Ia=km(cs),ql=Qh(cs,Ia),pu,rc,jd=0,Hd=Qe.interpolate||Ur,mh="__p += '",zf=ef((Qe.escape||Ur).source+"|"+Hd.source+"|"+(Hd===Ar?di:Ur).source+"|"+(Qe.evaluate||Ur).source+"|$","g"),Cp="//# sourceURL="+(Mf.call(Qe,"sourceURL")?(Qe.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++fs+"]")+` -`;ye.replace(zf,function(wg,hm,Om,E1,Hv,T1){return Om||(Om=E1),mh+=ye.slice(jd,T1).replace(gs,au),hm&&(pu=!0,mh+=`' + -__e(`+hm+`) + -'`),Hv&&(rc=!0,mh+=`'; + `+C+" - "+A}else return" "+C}Y.listMetadataForTarget=k;function R(C){if(C.name)return C.name;var g=C.toString(),A=g.match(/^function\s*([^\s(]+)/);return A?A[1]:"Anonymous function: "+g}Y.getFunctionName=R},82584:function(yt,Y,y){"use strict";var v=y(96410)(),P=y(21924),w=P("Object.prototype.toString"),b=function(R){return v&&R&&typeof R=="object"&&Symbol.toStringTag in R?!1:w(R)==="[object Arguments]"},B=function(R){return b(R)?!0:R!==null&&typeof R=="object"&&typeof R.length=="number"&&R.length>=0&&w(R)!=="[object Array]"&&w(R.callee)==="[object Function]"},V=function(){return b(arguments)}();b.isLegacyArguments=B,yt.exports=V?b:B},18923:function(yt,Y,y){"use strict";var v=Date.prototype.getDay,P=function(k){try{return v.call(k),!0}catch(R){return!1}},w=Object.prototype.toString,b="[object Date]",B=y(96410)();yt.exports=function(k){return typeof k!="object"||k===null?!1:B?P(k):w.call(k)===b}},98420:function(yt,Y,y){"use strict";var v=y(21924),P=y(96410)(),w,b,B,V;if(P){w=v("Object.prototype.hasOwnProperty"),b=v("RegExp.prototype.exec"),B={};var k=function(){throw B};V={toString:k,valueOf:k},typeof Symbol.toPrimitive=="symbol"&&(V[Symbol.toPrimitive]=k)}var R=v("Object.prototype.toString"),C=Object.getOwnPropertyDescriptor,g="[object RegExp]";yt.exports=P?function(O){if(!O||typeof O!="object")return!1;var K=C(O,"lastIndex"),he=K&&w(K,"value");if(!he)return!1;try{b(O,V)}catch(ae){return ae===B}}:function(O){return!O||typeof O!="object"&&typeof O!="function"?!1:R(O)===g}},5826:function(yt){var Y={}.toString;yt.exports=Array.isArray||function(y){return Y.call(y)=="[object Array]"}},69483:function(yt,Y,y){(function(v){if(!0)yt.exports=v();else var P})(function(){var v,P,w;return function b(B,V,k){function R(A,O){if(!V[A]){if(!B[A]){var K=void 0;if(!O&&K)return require(A,!0);if(C)return C(A,!0);var he=new Error("Cannot find module '"+A+"'");throw he.code="MODULE_NOT_FOUND",he}var ae=V[A]={exports:{}};B[A][0].call(ae.exports,function(fe){var xe=B[A][1][fe];return R(xe||fe)},ae,ae.exports,b,B,V,k)}return V[A].exports}for(var C=void 0,g=0;g=43)}}).catch(function(){return!1})}function Te(Si){return typeof be=="boolean"?K.resolve(be):De(Si).then(function(Pi){return be=Pi,be})}function Me(Si){var Pi=Qe[Si.name],to={};to.promise=new K(function(So,ps){to.resolve=So,to.reject=ps}),Pi.deferredOperations.push(to),Pi.dbReady?Pi.dbReady=Pi.dbReady.then(function(){return to.promise}):Pi.dbReady=to.promise}function Ue(Si){var Pi=Qe[Si.name],to=Pi.deferredOperations.pop();if(to)return to.resolve(),to.promise}function Pe(Si,Pi){var to=Qe[Si.name],So=to.deferredOperations.pop();if(So)return So.reject(Pi),So.promise}function Xe(Si,Pi){return new K(function(to,So){if(Qe[Si.name]=Qe[Si.name]||un(),Si.db)if(Pi)Me(Si),Si.db.close();else return to(Si.db);var ps=[Si.name];Pi&&ps.push(Si.version);var Wn=g.open.apply(g,ps);Pi&&(Wn.onupgradeneeded=function(yo){var Qo=Wn.result;try{Qo.createObjectStore(Si.storeName),yo.oldVersion<=1&&Qo.createObjectStore(ye)}catch(ss){if(ss.name==="ConstraintError")console.warn('The database "'+Si.name+'" has been upgraded from version '+yo.oldVersion+" to version "+yo.newVersion+', but the storage "'+Si.storeName+'" already exists.');else throw ss}}),Wn.onerror=function(yo){yo.preventDefault(),So(Wn.error)},Wn.onsuccess=function(){var yo=Wn.result;yo.onversionchange=function(Qo){Qo.target.close()},to(yo),Ue(Si)}})}function Be(Si){return Xe(Si,!1)}function Xt(Si){return Xe(Si,!0)}function St(Si,Pi){if(!Si.db)return!0;var to=!Si.db.objectStoreNames.contains(Si.storeName),So=Si.versionSi.db.version;if(So&&(Si.version!==Pi&&console.warn('The database "'+Si.name+`" can't be downgraded from version `+Si.db.version+" to version "+Si.version+"."),Si.version=Si.db.version),ps||to){if(to){var Wn=Si.db.version+1;Wn>Si.version&&(Si.version=Wn)}return!0}return!1}function nt(Si){return new K(function(Pi,to){var So=new FileReader;So.onerror=to,So.onloadend=function(ps){var Wn=btoa(ps.target.result||"");Pi({__local_forage_encoded_blob:!0,data:Wn,type:Si.type})},So.readAsBinaryString(Si)})}function wt(Si){var Pi=Ae(atob(Si.data));return O([Pi],{type:Si.type})}function lt(Si){return Si&&Si.__local_forage_encoded_blob}function Kt(Si){var Pi=this,to=Pi._initReady().then(function(){var So=Qe[Pi._dbInfo.name];if(So&&So.dbReady)return So.dbReady});return ae(to,Si,Si),to}function Mt(Si){Me(Si);for(var Pi=Qe[Si.name],to=Pi.forages,So=0;So0&&(!Si.db||Wn.name==="InvalidStateError"||Wn.name==="NotFoundError"))return K.resolve().then(function(){if(!Si.db||Wn.name==="NotFoundError"&&!Si.db.objectStoreNames.contains(Si.storeName)&&Si.version<=Si.db.version)return Si.db&&(Si.version=Si.db.version+1),Xt(Si)}).then(function(){return Mt(Si).then(function(){hn(Si,Pi,to,So-1)})}).catch(to);to(Wn)}}function un(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Sr(Si){var Pi=this,to={db:null};if(Si)for(var So in Si)to[So]=Si[So];var ps=Qe[to.name];ps||(ps=un(),Qe[to.name]=ps),ps.forages.push(Pi),Pi._initReady||(Pi._initReady=Pi.ready,Pi.ready=Kt);var Wn=[];function yo(){return K.resolve()}for(var Qo=0;Qo>4,Xn[ps++]=(yo&15)<<4|Qo>>2,Xn[ps++]=(Qo&3)<<6|ss&63;return Ko}function vo(Si){var Pi=new Uint8Array(Si),to="",So;for(So=0;So>2],to+=di[(Pi[So]&3)<<4|Pi[So+1]>>4],to+=di[(Pi[So+1]&15)<<2|Pi[So+2]>>6],to+=di[Pi[So+2]&63];return Pi.length%3===2?to=to.substring(0,to.length-1)+"=":Pi.length%3===1&&(to=to.substring(0,to.length-2)+"=="),to}function kr(Si,Pi){var to="";if(Si&&(to=Cr.call(Si)),Si&&(to==="[object ArrayBuffer]"||Si.buffer&&Cr.call(Si.buffer)==="[object ArrayBuffer]")){var So,ps=it;Si instanceof ArrayBuffer?(So=Si,ps+=Ht):(So=Si.buffer,to==="[object Int8Array]"?ps+=fr:to==="[object Uint8Array]"?ps+=In:to==="[object Uint8ClampedArray]"?ps+=mn:to==="[object Int16Array]"?ps+=Ut:to==="[object Uint16Array]"?ps+=Cn:to==="[object Int32Array]"?ps+=en:to==="[object Uint32Array]"?ps+=lr:to==="[object Float32Array]"?ps+=pr:to==="[object Float64Array]"?ps+=an:Pi(new Error("Failed to get type for BinaryArray"))),Pi(ps+vo(So))}else if(to==="[object Blob]"){var Wn=new FileReader;Wn.onload=function(){var yo=Fs+Si.type+"~"+vo(this.result);Pi(it+Pn+yo)},Wn.readAsArrayBuffer(Si)}else try{Pi(JSON.stringify(Si))}catch(yo){console.error("Couldn't convert value into a JSON string: ",Si),Pi(null,yo)}}function ro(Si){if(Si.substring(0,Ot)!==it)return JSON.parse(Si);var Pi=Si.substring(wr),to=Si.substring(Ot,wr),So;if(to===Pn&&Ln.test(Pi)){var ps=Pi.match(Ln);So=ps[1],Pi=Pi.substring(ps[0].length)}var Wn=Ei(Pi);switch(to){case Ht:return Wn;case Pn:return O([Wn],{type:So});case fr:return new Int8Array(Wn);case In:return new Uint8Array(Wn);case mn:return new Uint8ClampedArray(Wn);case Ut:return new Int16Array(Wn);case Cn:return new Uint16Array(Wn);case en:return new Int32Array(Wn);case lr:return new Uint32Array(Wn);case pr:return new Float32Array(Wn);case an:return new Float64Array(Wn);default:throw new Error("Unkown type: "+to)}}var qi={serialize:kr,deserialize:ro,stringToBuffer:Ei,bufferToString:vo};function bo(Si,Pi,to,So){Si.executeSql("CREATE TABLE IF NOT EXISTS "+Pi.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],to,So)}function xn(Si){var Pi=this,to={db:null};if(Si)for(var So in Si)to[So]=typeof Si[So]!="string"?Si[So].toString():Si[So];var ps=new K(function(Wn,yo){try{to.db=openDatabase(to.name,String(to.version),to.description,to.size)}catch(Qo){return yo(Qo)}to.db.transaction(function(Qo){bo(Qo,to,function(){Pi._dbInfo=to,Wn()},function(ss,Ko){yo(Ko)})},yo)});return to.serializer=qi,ps}function pn(Si,Pi,to,So,ps,Wn){Si.executeSql(to,So,ps,function(yo,Qo){Qo.code===Qo.SYNTAX_ERR?yo.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Pi.storeName],function(ss,Ko){Ko.rows.length?Wn(ss,Qo):bo(ss,Pi,function(){ss.executeSql(to,So,ps,Wn)},Wn)},Wn):Wn(yo,Qo)},Wn)}function Dt(Si,Pi){var to=this;Si=fe(Si);var So=new K(function(ps,Wn){to.ready().then(function(){var yo=to._dbInfo;yo.db.transaction(function(Qo){pn(Qo,yo,"SELECT * FROM "+yo.storeName+" WHERE key = ? LIMIT 1",[Si],function(ss,Ko){var Xn=Ko.rows.length?Ko.rows.item(0).value:null;Xn&&(Xn=yo.serializer.deserialize(Xn)),ps(Xn)},function(ss,Ko){Wn(Ko)})})}).catch(Wn)});return he(So,Pi),So}function Zt(Si,Pi){var to=this,So=new K(function(ps,Wn){to.ready().then(function(){var yo=to._dbInfo;yo.db.transaction(function(Qo){pn(Qo,yo,"SELECT * FROM "+yo.storeName,[],function(ss,Ko){for(var Xn=Ko.rows,Rr=Xn.length,Xr=0;Xr0){yo(vn.apply(ps,[Si,ss,to,So-1]));return}Qo(Xr)}})})}).catch(Qo)});return he(Wn,to),Wn}function $n(Si,Pi,to){return vn.apply(this,[Si,Pi,to,1])}function Ar(Si,Pi){var to=this;Si=fe(Si);var So=new K(function(ps,Wn){to.ready().then(function(){var yo=to._dbInfo;yo.db.transaction(function(Qo){pn(Qo,yo,"DELETE FROM "+yo.storeName+" WHERE key = ?",[Si],function(){ps()},function(ss,Ko){Wn(Ko)})})}).catch(Wn)});return he(So,Pi),So}function Dr(Si){var Pi=this,to=new K(function(So,ps){Pi.ready().then(function(){var Wn=Pi._dbInfo;Wn.db.transaction(function(yo){pn(yo,Wn,"DELETE FROM "+Wn.storeName,[],function(){So()},function(Qo,ss){ps(ss)})})}).catch(ps)});return he(to,Si),to}function dr(Si){var Pi=this,to=new K(function(So,ps){Pi.ready().then(function(){var Wn=Pi._dbInfo;Wn.db.transaction(function(yo){pn(yo,Wn,"SELECT COUNT(key) as c FROM "+Wn.storeName,[],function(Qo,ss){var Ko=ss.rows.item(0).c;So(Ko)},function(Qo,ss){ps(ss)})})}).catch(ps)});return he(to,Si),to}function Yt(Si,Pi){var to=this,So=new K(function(ps,Wn){to.ready().then(function(){var yo=to._dbInfo;yo.db.transaction(function(Qo){pn(Qo,yo,"SELECT key FROM "+yo.storeName+" WHERE id = ? LIMIT 1",[Si+1],function(ss,Ko){var Xn=Ko.rows.length?Ko.rows.item(0).key:null;ps(Xn)},function(ss,Ko){Wn(Ko)})})}).catch(Wn)});return he(So,Pi),So}function wn(Si){var Pi=this,to=new K(function(So,ps){Pi.ready().then(function(){var Wn=Pi._dbInfo;Wn.db.transaction(function(yo){pn(yo,Wn,"SELECT key FROM "+Wn.storeName,[],function(Qo,ss){for(var Ko=[],Xn=0;Xn '__WebKitDatabaseInfoTable__'",[],function(ps,Wn){for(var yo=[],Qo=0;Qo0}function yi(Si){var Pi=this,to={};if(Si)for(var So in Si)to[So]=Si[So];return to.keyPrefix=Kn(Si,Pi._defaultConfig),qr()?(Pi._dbInfo=to,to.serializer=qi,K.resolve()):K.reject()}function Hr(Si){var Pi=this,to=Pi.ready().then(function(){for(var So=Pi._dbInfo.keyPrefix,ps=localStorage.length-1;ps>=0;ps--){var Wn=localStorage.key(ps);Wn.indexOf(So)===0&&localStorage.removeItem(Wn)}});return he(to,Si),to}function ci(Si,Pi){var to=this;Si=fe(Si);var So=to.ready().then(function(){var ps=to._dbInfo,Wn=localStorage.getItem(ps.keyPrefix+Si);return Wn&&(Wn=ps.serializer.deserialize(Wn)),Wn});return he(So,Pi),So}function gi(Si,Pi){var to=this,So=to.ready().then(function(){for(var ps=to._dbInfo,Wn=ps.keyPrefix,yo=Wn.length,Qo=localStorage.length,ss=1,Ko=0;Ko=0;yo--){var Qo=localStorage.key(yo);Qo.indexOf(Wn)===0&&localStorage.removeItem(Qo)}}):ps=K.reject("Invalid arguments"),he(ps,Pi),ps}var Ur={_driver:"localStorageWrapper",_initStorage:yi,_support:Dn(),iterate:gi,getItem:ci,setItem:Qi,removeItem:Kr,clear:Hr,length:Nr,key:mi,keys:Bi,dropInstance:ns},gs=function(Pi,to){return Pi===to||typeof Pi=="number"&&typeof to=="number"&&isNaN(Pi)&&isNaN(to)},Gr=function(Pi,to){for(var So=Pi.length,ps=0;ps-1}yt.exports=P},1196:function(yt){function Y(y,v,P){for(var w=-1,b=y==null?0:y.length;++w=v?y:v)),y}yt.exports=Y},85990:function(yt,Y,y){var v=y(46384),P=y(77412),w=y(34865),b=y(44037),B=y(63886),V=y(64626),k=y(278),R=y(18805),C=y(1911),g=y(58234),A=y(46904),O=y(64160),K=y(43824),he=y(29148),ae=y(38517),fe=y(1469),xe=y(44144),ye=y(56688),be=y(13218),Qe=y(72928),Ve=y(3674),pt=y(81704),st=1,Ae=2,De=4,Te="[object Arguments]",Me="[object Array]",Ue="[object Boolean]",Pe="[object Date]",Xe="[object Error]",Be="[object Function]",Xt="[object GeneratorFunction]",St="[object Map]",nt="[object Number]",wt="[object Object]",lt="[object RegExp]",Kt="[object Set]",Mt="[object String]",hn="[object Symbol]",un="[object WeakMap]",Sr="[object ArrayBuffer]",ii="[object DataView]",Ii="[object Float32Array]",Ni="[object Float64Array]",eo="[object Int8Array]",ti="[object Int16Array]",Is="[object Int32Array]",Ns="[object Uint8Array]",Se="[object Uint8ClampedArray]",Xi="[object Uint16Array]",Yi="[object Uint32Array]",fo={};fo[Te]=fo[Me]=fo[Sr]=fo[ii]=fo[Ue]=fo[Pe]=fo[Ii]=fo[Ni]=fo[eo]=fo[ti]=fo[Is]=fo[St]=fo[nt]=fo[wt]=fo[lt]=fo[Kt]=fo[Mt]=fo[hn]=fo[Ns]=fo[Se]=fo[Xi]=fo[Yi]=!0,fo[Xe]=fo[Be]=fo[un]=!1;function di(Fs,Ln,it,Ot,Ht,Pn){var fr,In=Ln&st,mn=Ln&Ae,Ut=Ln&De;if(it&&(fr=Ht?it(Fs,Ot,Ht,Pn):it(Fs)),fr!==void 0)return fr;if(!be(Fs))return Fs;var en=fe(Fs);if(en){if(fr=K(Fs),!In)return k(Fs,fr)}else{var Cn=O(Fs),lr=Cn==Be||Cn==Xt;if(xe(Fs))return V(Fs,In);if(Cn==wt||Cn==Te||lr&&!Ht){if(fr=mn||lr?{}:ae(Fs),!In)return mn?C(Fs,B(fr,Fs)):R(Fs,b(fr,Fs))}else{if(!fo[Cn])return Ht?Fs:{};fr=he(Fs,Cn,In)}}Pn||(Pn=new v);var pr=Pn.get(Fs);if(pr)return pr;Pn.set(Fs,fr),Qe(Fs)?Fs.forEach(function(Cr){fr.add(di(Cr,Ln,it,Cr,Fs,Pn))}):ye(Fs)&&Fs.forEach(function(Cr,Ei){fr.set(Ei,di(Cr,Ln,it,Ei,Fs,Pn))});var an=Ut?mn?A:g:mn?pt:Ve,wr=en?void 0:an(Fs);return P(wr||Fs,function(Cr,Ei){wr&&(Ei=Cr,Cr=Fs[Ei]),w(fr,Ei,di(Cr,Ln,it,Ei,Fs,Pn))}),fr}yt.exports=di},3118:function(yt,Y,y){var v=y(13218),P=Object.create,w=function(){function b(){}return function(B){if(!v(B))return{};if(P)return P(B);b.prototype=B;var V=new b;return b.prototype=void 0,V}}();yt.exports=w},41848:function(yt){function Y(y,v,P,w){for(var b=y.length,B=P+(w?1:-1);w?B--:++B-1;)fe!==C&&k.call(fe,xe,1),k.call(C,xe,1);return C}yt.exports=R},5976:function(yt,Y,y){var v=y(6557),P=y(45357),w=y(30061);function b(B,V){return w(P(B,V,v),B+"")}yt.exports=b},56560:function(yt,Y,y){var v=y(75703),P=y(38777),w=y(6557),b=P?function(B,V){return P(B,"toString",{configurable:!0,enumerable:!1,value:v(V),writable:!0})}:w;yt.exports=b},14259:function(yt){function Y(y,v,P){var w=-1,b=y.length;v<0&&(v=-v>b?0:b+v),P=P>b?b:P,P<0&&(P+=b),b=v>P?0:P-v>>>0,v>>>=0;for(var B=Array(b);++w=k){var ye=g?null:B(C);if(ye)return V(ye);ae=!1,K=b,xe=new v}else xe=g?[]:fe;e:for(;++O=V?w:v(w,b,B)}yt.exports=P},74318:function(yt,Y,y){var v=y(11149);function P(w){var b=new w.constructor(w.byteLength);return new v(b).set(new v(w)),b}yt.exports=P},64626:function(yt,Y,y){yt=y.nmd(yt);var v=y(55639),P=Y&&!Y.nodeType&&Y,w=P&&!0&&yt&&!yt.nodeType&&yt,b=w&&w.exports===P,B=b?v.Buffer:void 0,V=B?B.allocUnsafe:void 0;function k(R,C){if(C)return R.slice();var g=R.length,A=V?V(g):new R.constructor(g);return R.copy(A),A}yt.exports=k},57157:function(yt,Y,y){var v=y(74318);function P(w,b){var B=b?v(w.buffer):w.buffer;return new w.constructor(B,w.byteOffset,w.byteLength)}yt.exports=P},93147:function(yt){var Y=/\w*$/;function y(v){var P=new v.constructor(v.source,Y.exec(v));return P.lastIndex=v.lastIndex,P}yt.exports=y},40419:function(yt,Y,y){var v=y(62705),P=v?v.prototype:void 0,w=P?P.valueOf:void 0;function b(B){return w?Object(w.call(B)):{}}yt.exports=b},77133:function(yt,Y,y){var v=y(74318);function P(w,b){var B=b?v(w.buffer):w.buffer;return new w.constructor(B,w.byteOffset,w.length)}yt.exports=P},278:function(yt){function Y(y,v){var P=-1,w=y.length;for(v||(v=Array(w));++P1?V[R-1]:void 0,g=R>2?V[2]:void 0;for(C=b.length>3&&typeof C=="function"?(R--,C):void 0,g&&P(V[0],V[1],g)&&(C=R<3?void 0:C,R=1),B=Object(B);++khe))return!1;var fe=O.get(k),xe=O.get(R);if(fe&&xe)return fe==R&&xe==k;var ye=-1,be=!0,Qe=C&B?new v:void 0;for(O.set(k,R),O.set(R,k);++ye-1&&P%1==0&&P-1}yt.exports=P},44264:function(yt,Y,y){var v=y(18470);function P(w,b){var B=this.__data__,V=v(B,w);return V<0?(++this.size,B.push([w,b])):B[V][1]=b,this}yt.exports=P},24785:function(yt,Y,y){var v=y(1989),P=y(38407),w=y(57071);function b(){this.size=0,this.__data__={hash:new v,map:new(w||P),string:new v}}yt.exports=b},11285:function(yt,Y,y){var v=y(45050);function P(w){var b=v(this,w).delete(w);return this.size-=b?1:0,b}yt.exports=P},96e3:function(yt,Y,y){var v=y(45050);function P(w){return v(this,w).get(w)}yt.exports=P},49916:function(yt,Y,y){var v=y(45050);function P(w){return v(this,w).has(w)}yt.exports=P},95265:function(yt,Y,y){var v=y(45050);function P(w,b){var B=v(this,w),V=B.size;return B.set(w,b),this.size+=B.size==V?0:1,this}yt.exports=P},68776:function(yt){function Y(y){var v=-1,P=Array(y.size);return y.forEach(function(w,b){P[++v]=[b,w]}),P}yt.exports=Y},24523:function(yt,Y,y){var v=y(88306),P=500;function w(b){var B=v(b,function(k){return V.size===P&&V.clear(),k}),V=B.cache;return B}yt.exports=w},94536:function(yt,Y,y){var v=y(10852),P=v(Object,"create");yt.exports=P},86916:function(yt,Y,y){var v=y(5569),P=v(Object.keys,Object);yt.exports=P},33498:function(yt){function Y(y){var v=[];if(y!=null)for(var P in Object(y))v.push(P);return v}yt.exports=Y},31167:function(yt,Y,y){yt=y.nmd(yt);var v=y(31957),P=Y&&!Y.nodeType&&Y,w=P&&!0&&yt&&!yt.nodeType&&yt,b=w&&w.exports===P,B=b&&v.process,V=function(){try{var k=w&&w.require&&w.require("util").types;return k||B&&B.binding&&B.binding("util")}catch(R){}}();yt.exports=V},2333:function(yt){var Y=Object.prototype,y=Y.toString;function v(P){return y.call(P)}yt.exports=v},5569:function(yt){function Y(y,v){return function(P){return y(v(P))}}yt.exports=Y},45357:function(yt,Y,y){var v=y(96874),P=Math.max;function w(b,B,V){return B=P(B===void 0?b.length-1:B,0),function(){for(var k=arguments,R=-1,C=P(k.length-B,0),g=Array(C);++R0){if(++b>=Y)return arguments[0]}else b=0;return w.apply(void 0,arguments)}}yt.exports=P},37465:function(yt,Y,y){var v=y(38407);function P(){this.__data__=new v,this.size=0}yt.exports=P},63779:function(yt){function Y(y){var v=this.__data__,P=v.delete(y);return this.size=v.size,P}yt.exports=Y},67599:function(yt){function Y(y){return this.__data__.get(y)}yt.exports=Y},44758:function(yt){function Y(y){return this.__data__.has(y)}yt.exports=Y},34309:function(yt,Y,y){var v=y(38407),P=y(57071),w=y(83369),b=200;function B(V,k){var R=this.__data__;if(R instanceof v){var C=R.__data__;if(!P||C.length=C||Be<0||be&&Xt>=K}function De(){var Xe=P();if(Ae(Xe))return Te(Xe);ae=setTimeout(De,st(Xe))}function Te(Xe){return ae=void 0,Qe&&A?Ve(Xe):(A=O=void 0,he)}function Me(){ae!==void 0&&clearTimeout(ae),xe=0,A=fe=O=ae=void 0}function Ue(){return ae===void 0?he:Te(P())}function Pe(){var Xe=P(),Be=Ae(Xe);if(A=arguments,O=this,fe=Xe,Be){if(ae===void 0)return pt(fe);if(be)return clearTimeout(ae),ae=setTimeout(De,C),Ve(fe)}return ae===void 0&&(ae=setTimeout(De,C)),he}return Pe.cancel=Me,Pe.flush=Ue,Pe}yt.exports=k},53816:function(yt,Y,y){var v=y(69389),P=y(79833),w=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,b="\\u0300-\\u036f",B="\\ufe20-\\ufe2f",V="\\u20d0-\\u20ff",k=b+B+V,R="["+k+"]",C=RegExp(R,"g");function g(A){return A=P(A),A&&A.replace(w,v).replace(C,"")}yt.exports=g},77813:function(yt){function Y(y,v){return y===v||y!==y&&v!==v}yt.exports=Y},27361:function(yt,Y,y){var v=y(97786);function P(w,b,B){var V=w==null?void 0:v(w,b);return V===void 0?B:V}yt.exports=P},6557:function(yt){function Y(y){return y}yt.exports=Y},35694:function(yt,Y,y){var v=y(9454),P=y(37005),w=Object.prototype,b=w.hasOwnProperty,B=w.propertyIsEnumerable,V=v(function(){return arguments}())?v:function(k){return P(k)&&b.call(k,"callee")&&!B.call(k,"callee")};yt.exports=V},1469:function(yt){var Y=Array.isArray;yt.exports=Y},98612:function(yt,Y,y){var v=y(23560),P=y(41780);function w(b){return b!=null&&P(b.length)&&!v(b)}yt.exports=w},29246:function(yt,Y,y){var v=y(98612),P=y(37005);function w(b){return P(b)&&v(b)}yt.exports=w},51584:function(yt,Y,y){var v=y(44239),P=y(37005),w="[object Boolean]";function b(B){return B===!0||B===!1||P(B)&&v(B)==w}yt.exports=b},44144:function(yt,Y,y){yt=y.nmd(yt);var v=y(55639),P=y(95062),w=Y&&!Y.nodeType&&Y,b=w&&!0&&yt&&!yt.nodeType&&yt,B=b&&b.exports===w,V=B?v.Buffer:void 0,k=V?V.isBuffer:void 0,R=k||P;yt.exports=R},18446:function(yt,Y,y){var v=y(90939);function P(w,b){return v(w,b)}yt.exports=P},23560:function(yt,Y,y){var v=y(44239),P=y(13218),w="[object AsyncFunction]",b="[object Function]",B="[object GeneratorFunction]",V="[object Proxy]";function k(R){if(!P(R))return!1;var C=v(R);return C==b||C==B||C==w||C==V}yt.exports=k},41780:function(yt){var Y=9007199254740991;function y(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=Y}yt.exports=y},56688:function(yt,Y,y){var v=y(25588),P=y(7518),w=y(31167),b=w&&w.isMap,B=b?P(b):v;yt.exports=B},14293:function(yt){function Y(y){return y==null}yt.exports=Y},81763:function(yt,Y,y){var v=y(44239),P=y(37005),w="[object Number]";function b(B){return typeof B=="number"||P(B)&&v(B)==w}yt.exports=b},13218:function(yt){function Y(y){var v=typeof y;return y!=null&&(v=="object"||v=="function")}yt.exports=Y},37005:function(yt){function Y(y){return y!=null&&typeof y=="object"}yt.exports=Y},68630:function(yt,Y,y){var v=y(44239),P=y(85924),w=y(37005),b="[object Object]",B=Function.prototype,V=Object.prototype,k=B.toString,R=V.hasOwnProperty,C=k.call(Object);function g(A){if(!w(A)||v(A)!=b)return!1;var O=P(A);if(O===null)return!0;var K=R.call(O,"constructor")&&O.constructor;return typeof K=="function"&&K instanceof K&&k.call(K)==C}yt.exports=g},72928:function(yt,Y,y){var v=y(29221),P=y(7518),w=y(31167),b=w&&w.isSet,B=b?P(b):v;yt.exports=B},47037:function(yt,Y,y){var v=y(44239),P=y(1469),w=y(37005),b="[object String]";function B(V){return typeof V=="string"||!P(V)&&w(V)&&v(V)==b}yt.exports=B},33448:function(yt,Y,y){var v=y(44239),P=y(37005),w="[object Symbol]";function b(B){return typeof B=="symbol"||P(B)&&v(B)==w}yt.exports=b},36719:function(yt,Y,y){var v=y(38749),P=y(7518),w=y(31167),b=w&&w.isTypedArray,B=b?P(b):v;yt.exports=B},52353:function(yt){function Y(y){return y===void 0}yt.exports=Y},3674:function(yt,Y,y){var v=y(14636),P=y(280),w=y(98612);function b(B){return w(B)?v(B):P(B)}yt.exports=b},81704:function(yt,Y,y){var v=y(14636),P=y(35014),w=y(98612);function b(B){return w(B)?v(B,!0):P(B)}yt.exports=b},96486:function(yt,Y,y){yt=y.nmd(yt);var v;(function(){var P,w="4.17.21",b=200,B="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",V="Expected a function",k="Invalid `variable` option passed into `_.template`",R="__lodash_hash_undefined__",C=500,g="__lodash_placeholder__",A=1,O=2,K=4,he=1,ae=2,fe=1,xe=2,ye=4,be=8,Qe=16,Ve=32,pt=64,st=128,Ae=256,De=512,Te=30,Me="...",Ue=800,Pe=16,Xe=1,Be=2,Xt=3,St=1/0,nt=9007199254740991,wt=17976931348623157e292,lt=0/0,Kt=4294967295,Mt=Kt-1,hn=Kt>>>1,un=[["ary",st],["bind",fe],["bindKey",xe],["curry",be],["curryRight",Qe],["flip",De],["partial",Ve],["partialRight",pt],["rearg",Ae]],Sr="[object Arguments]",ii="[object Array]",Ii="[object AsyncFunction]",Ni="[object Boolean]",eo="[object Date]",ti="[object DOMException]",Is="[object Error]",Ns="[object Function]",Se="[object GeneratorFunction]",Xi="[object Map]",Yi="[object Number]",fo="[object Null]",di="[object Object]",Fs="[object Promise]",Ln="[object Proxy]",it="[object RegExp]",Ot="[object Set]",Ht="[object String]",Pn="[object Symbol]",fr="[object Undefined]",In="[object WeakMap]",mn="[object WeakSet]",Ut="[object ArrayBuffer]",en="[object DataView]",Cn="[object Float32Array]",lr="[object Float64Array]",pr="[object Int8Array]",an="[object Int16Array]",wr="[object Int32Array]",Cr="[object Uint8Array]",Ei="[object Uint8ClampedArray]",vo="[object Uint16Array]",kr="[object Uint32Array]",ro=/\b__p \+= '';/g,qi=/\b(__p \+=) '' \+/g,bo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xn=/&(?:amp|lt|gt|quot|#39);/g,pn=/[&<>"']/g,Dt=RegExp(xn.source),Zt=RegExp(pn.source),vn=/<%-([\s\S]+?)%>/g,$n=/<%([\s\S]+?)%>/g,Ar=/<%=([\s\S]+?)%>/g,Dr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dr=/^\w*$/,Yt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wn=/[\\^$.*+?()[\]{}|]/g,Qn=RegExp(wn.source),Mr=/^\s+/,Wi=/\s/,Dn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Kn=/\{\n\/\* \[wrapped with (.+)\] \*/,nr=/,? & /,qr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,yi=/[()=,{}\[\]\/\s]/,Hr=/\\(\\)?/g,ci=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gi=/\w*$/,mi=/^[-+]0x[0-9a-f]+$/i,Bi=/^0b[01]+$/i,Nr=/^\[object .+?Constructor\]$/,Kr=/^0o[0-7]+$/i,Qi=/^(?:0|[1-9]\d*)$/,ns=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ur=/($^)/,gs=/['\n\r\u2028\u2029\\]/g,Gr="\\ud800-\\udfff",ni="\\u0300-\\u036f",is="\\ufe20-\\ufe2f",Jr="\\u20d0-\\u20ff",bn=ni+is+Jr,Or="\\u2700-\\u27bf",qo="a-z\\xdf-\\xf6\\xf8-\\xff",Mo="\\xac\\xb1\\xd7\\xf7",vs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Na="\\u2000-\\u206f",ho=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",aa="A-Z\\xc0-\\xd6\\xd8-\\xde",Ka="\\ufe0e\\ufe0f",Si=Mo+vs+Na+ho,Pi="['\u2019]",to="["+Gr+"]",So="["+Si+"]",ps="["+bn+"]",Wn="\\d+",yo="["+Or+"]",Qo="["+qo+"]",ss="[^"+Gr+Si+Wn+Or+qo+aa+"]",Ko="\\ud83c[\\udffb-\\udfff]",Xn="(?:"+ps+"|"+Ko+")",Rr="[^"+Gr+"]",Xr="(?:\\ud83c[\\udde6-\\uddff]){2}",Ze="[\\ud800-\\udbff][\\udc00-\\udfff]",ht="["+aa+"]",dt="\\u200d",$e="(?:"+Qo+"|"+ss+")",ft="(?:"+ht+"|"+ss+")",Lt="(?:"+Pi+"(?:d|ll|m|re|s|t|ve))?",gn="(?:"+Pi+"(?:D|LL|M|RE|S|T|VE))?",rr=Xn+"?",zr="["+Ka+"]?",Fi="(?:"+dt+"(?:"+[Rr,Xr,Ze].join("|")+")"+zr+rr+")*",xo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",zs=zr+rr+Fi,Ps="(?:"+[yo,Xr,Ze].join("|")+")"+zs,Ms="(?:"+[Rr+ps+"?",ps,Xr,Ze,to].join("|")+")",ks=RegExp(Pi,"g"),ko=RegExp(ps,"g"),As=RegExp(Ko+"(?="+Ko+")|"+Ms+zs,"g"),ia=RegExp([ht+"?"+Qo+"+"+Lt+"(?="+[So,ht,"$"].join("|")+")",ft+"+"+gn+"(?="+[So,ht+$e,"$"].join("|")+")",ht+"?"+$e+"+"+Lt,ht+"+"+gn,Vi,xo,Wn,Ps].join("|"),"g"),za=RegExp("["+dt+Gr+bn+Ka+"]"),Zl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Hl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],fs=-1,js={};js[Cn]=js[lr]=js[pr]=js[an]=js[wr]=js[Cr]=js[Ei]=js[vo]=js[kr]=!0,js[Sr]=js[ii]=js[Ut]=js[Ni]=js[en]=js[eo]=js[Is]=js[Ns]=js[Xi]=js[Yi]=js[di]=js[it]=js[Ot]=js[Ht]=js[In]=!1;var hl={};hl[Sr]=hl[ii]=hl[Ut]=hl[en]=hl[Ni]=hl[eo]=hl[Cn]=hl[lr]=hl[pr]=hl[an]=hl[wr]=hl[Xi]=hl[Yi]=hl[di]=hl[it]=hl[Ot]=hl[Ht]=hl[Pn]=hl[Cr]=hl[Ei]=hl[vo]=hl[kr]=!0,hl[Is]=hl[Ns]=hl[In]=!1;var Xo={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Li={"&":"&","<":"<",">":">",'"':""","'":"'"},Yo={"&":"&","<":"<",">":">",""":'"',"'":"'"},Os={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cs=parseFloat,ba=parseInt,Yu=typeof y.g=="object"&&y.g&&y.g.Object===Object&&y.g,pc=typeof self=="object"&&self&&self.Object===Object&&self,Hu=Yu||pc||Function("return this")(),wh=Y&&!Y.nodeType&&Y,lh=wh&&!0&&yt&&!yt.nodeType&&yt,fu=lh&&lh.exports===wh,ru=fu&&Yu.process,Tu=function(){try{var Qa=lh&&lh.require&&lh.require("util").types;return Qa||ru&&ru.binding&&ru.binding("util")}catch(mu){}}(),wi=Tu&&Tu.isArrayBuffer,er=Tu&&Tu.isDate,Un=Tu&&Tu.isMap,Wr=Tu&&Tu.isRegExp,Qr=Tu&&Tu.isSet,_o=Tu&&Tu.isTypedArray;function us(Qa,mu,Dl){switch(Dl.length){case 0:return Qa.call(mu);case 1:return Qa.call(mu,Dl[0]);case 2:return Qa.call(mu,Dl[0],Dl[1]);case 3:return Qa.call(mu,Dl[0],Dl[1],Dl[2])}return Qa.apply(mu,Dl)}function es(Qa,mu,Dl,uu){for(var Au=-1,xc=Qa==null?0:Qa.length;++Au-1}function ya(Qa,mu,Dl){for(var uu=-1,Au=Qa==null?0:Qa.length;++uu-1;);return Dl}function Bs(Qa,mu){for(var Dl=Qa.length;Dl--&&Ic(mu,Qa[Dl],0)>-1;);return Dl}function Ua(Qa,mu){for(var Dl=Qa.length,uu=0;Dl--;)Qa[Dl]===mu&&++uu;return uu}var Ya=Th(Xo),ml=Th(Li);function ou(Qa){return"\\"+Os[Qa]}function ac(Qa,mu){return Qa==null?P:Qa[mu]}function ju(Qa){return za.test(Qa)}function uc(Qa){return Zl.test(Qa)}function Gu(Qa){for(var mu,Dl=[];!(mu=Qa.next()).done;)Dl.push(mu.value);return Dl}function Ol(Qa){var mu=-1,Dl=Array(Qa.size);return Qa.forEach(function(uu,Au){Dl[++mu]=[Au,uu]}),Dl}function Nu(Qa,mu){return function(Dl){return Qa(mu(Dl))}}function qc(Qa,mu){for(var Dl=-1,uu=Qa.length,Au=0,xc=[];++Dl-1}function J(_e,et){var ln=this.__data__,si=zu(ln,_e);return si<0?(++this.size,ln.push([_e,et])):ln[si][1]=et,this}Gt.prototype.clear=tn,Gt.prototype.delete=Bn,Gt.prototype.get=Pr,Gt.prototype.has=G,Gt.prototype.set=J;function Q(_e){var et=-1,ln=_e==null?0:_e.length;for(this.clear();++et=et?_e:et)),_e}function jd(_e,et,ln,si,hs,Da){var Yl,du=et&A,rc=et&O,Vh=et&K;if(ln&&(Yl=hs?ln(_e,si,hs,Da):ln(_e)),Yl!==P)return Yl;if(!_l(_e))return _e;var Zh=ve(_e);if(Zh){if(Yl=so(_e),!du)return Vt(_e,Yl)}else{var md=Ks(_e),Uf=md==Ns||md==Se;if(En(_e))return rn(_e,du);if(md==di||md==Sr||Uf&&!hs){if(Yl=rc||Uf?{}:la(_e),!du)return rc?_r(_e,oh(Yl,_e)):Fn(_e,Ju(Yl,_e))}else{if(!hl[md])return hs?_e:{};Yl=ts(_e,md,du)}}Da||(Da=new Ri);var Tp=Da.get(_e);if(Tp)return Tp;Da.set(_e,Yl),bf(_e)?_e.forEach(function(Sg){Yl.add(jd(Sg,et,ln,Sg,_e,Da))}):Ku(_e)&&_e.forEach(function(Sg,dm){Yl.set(dm,jd(Sg,et,ln,dm,_e,Da))});var sg=Vh?rc?Ls:ms:rc?hv:Om,ag=Zh?P:sg(_e);return Ma(ag||_e,function(Sg,dm){ag&&(dm=Sg,Sg=_e[dm]),bu(Yl,dm,jd(Sg,et,ln,dm,_e,Da))}),Yl}function Jc(_e){var et=Om(_e);return function(ln){return Tc(ln,_e,et)}}function Tc(_e,et,ln){var si=ln.length;if(_e==null)return!si;for(_e=xh(_e);si--;){var hs=ln[si],Da=et[hs],Yl=_e[hs];if(Yl===P&&!(hs in _e)||!Da(Yl))return!1}return!0}function tf(_e,et,ln){if(typeof _e!="function")throw new ld(V);return Fl(function(){_e.apply(P,ln)},et)}function Wd(_e,et,ln,si){var hs=-1,Da=Kl,Yl=!0,du=_e.length,rc=[],Vh=et.length;if(!du)return rc;ln&&(et=Ta(et,_d(ln))),si?(Da=ya,Yl=!1):et.length>=b&&(Da=Md,Yl=!1,et=new yr(et));e:for(;++hshs?0:hs+ln),si=si===P||si>hs?hs:cc(si),si<0&&(si+=hs),si=ln>si?0:id(si);ln0&&ln(du)?et>1?mp(du,et-1,ln,si,hs):Xa(hs,du):si||(hs[hs.length]=du)}return hs}var Kc=Yr(),bc=Yr(!0);function ch(_e,et){return _e&&Kc(_e,et,Om)}function _h(_e,et){return _e&&bc(_e,et,Om)}function od(_e,et){return Js(et,function(ln){return Oa(_e[ln])})}function wc(_e,et){et=xt(et,_e);for(var ln=0,si=et.length;_e!=null&&lnet}function Oo(_e,et){return _e!=null&&Mf.call(_e,et)}function Fg(_e,et){return _e!=null&&et in xh(_e)}function zp(_e,et,ln){return _e>=_p(et,ln)&&_e=120&&Zh.length>=120)?new yr(Yl&&Zh):P}Zh=_e[0];var md=-1,Uf=du[0];e:for(;++md-1;)du!==_e&&Ng.call(du,rc,1),Ng.call(_e,rc,1);return _e}function Mg(_e,et){for(var ln=_e?et.length:0,si=ln-1;ln--;){var hs=et[ln];if(ln==si||hs!==Da){var Da=hs;Nl(hs)?Ng.call(_e,hs,1):zm(_e,hs)}}return _e}function uv(_e,et){return _e+Cp(Dp()*(et-_e+1))}function ip(_e,et,ln,si){for(var hs=-1,Da=kf(Wh((et-_e)/(ln||1)),0),Yl=Dl(Da);Da--;)Yl[si?Da:++hs]=_e,_e+=ln;return Yl}function Np(_e,et){var ln="";if(!_e||et<1||et>nt)return ln;do et%2&&(ln+=_e),et=Cp(et/2),et&&(_e+=_e);while(et);return ln}function _f(_e,et){return kd(hu(_e,et,p1),_e+"")}function K0(_e){return tl(k0(_e))}function U0(_e,et){var ln=k0(_e);return je(ln,Nh(et,0,ln.length))}function Tm(_e,et,ln,si){if(!_l(_e))return _e;et=xt(et,_e);for(var hs=-1,Da=et.length,Yl=Da-1,du=_e;du!=null&&++hshs?0:hs+et),ln=ln>hs?hs:ln,ln<0&&(ln+=hs),hs=et>ln?0:ln-et>>>0,et>>>=0;for(var Da=Dl(hs);++si>>1,Yl=_e[Da];Yl!==null&&!wg(Yl)&&(ln?Yl<=et:Yl=b){var Vh=et?null:Ji(_e);if(Vh)return fh(Vh);Yl=!1,hs=Md,rc=new yr}else rc=et?[]:du;e:for(;++si=si?_e:Nd(_e,et,ln)}var sn=Tg||function(_e){return Hu.clearTimeout(_e)};function rn(_e,et){if(et)return _e.slice();var ln=_e.length,si=gc?gc(ln):new _e.constructor(ln);return _e.copy(si),si}function fn(_e){var et=new _e.constructor(_e.byteLength);return new $p(et).set(new $p(_e)),et}function Rn(_e,et){var ln=et?fn(_e.buffer):_e.buffer;return new _e.constructor(ln,_e.byteOffset,_e.byteLength)}function Gn(_e){var et=new _e.constructor(_e.source,gi.exec(_e));return et.lastIndex=_e.lastIndex,et}function ur(_e){return zh?xh(zh.call(_e)):{}}function Fr(_e,et){var ln=et?fn(_e.buffer):_e.buffer;return new _e.constructor(ln,_e.byteOffset,_e.length)}function ri(_e,et){if(_e!==et){var ln=_e!==P,si=_e===null,hs=_e===_e,Da=wg(_e),Yl=et!==P,du=et===null,rc=et===et,Vh=wg(et);if(!du&&!Vh&&!Da&&_e>et||Da&&Yl&&rc&&!du&&!Vh||si&&Yl&&rc||!ln&&rc||!hs)return 1;if(!si&&!Da&&!Vh&&_e=du)return rc;var Vh=ln[si];return rc*(Vh=="desc"?-1:1)}}return _e.index-et.index}function rt(_e,et,ln,si){for(var hs=-1,Da=_e.length,Yl=ln.length,du=-1,rc=et.length,Vh=kf(Da-Yl,0),Zh=Dl(rc+Vh),md=!si;++du1?ln[hs-1]:P,Yl=hs>2?ln[2]:P;for(Da=_e.length>3&&typeof Da=="function"?(hs--,Da):P,Yl&&ja(ln[0],ln[1],Yl)&&(Da=hs<3?P:Da,hs=1),et=xh(et);++si-1?hs[Da?et[Yl]:Yl]:P}}function Mn(_e){return oi(function(et){var ln=et.length,si=ln,hs=le.prototype.thru;for(_e&&et.reverse();si--;){var Da=et[si];if(typeof Da!="function")throw new ld(V);if(hs&&!Yl&&no(Da)=="wrapper")var Yl=new le([],!0)}for(si=Yl?si:ln;++si1&&Nm.reverse(),Zh&&rcdu))return!1;var Vh=Da.get(_e),Zh=Da.get(et);if(Vh&&Zh)return Vh==et&&Zh==_e;var md=-1,Uf=!0,Tp=ln&ae?new yr:P;for(Da.set(_e,et),Da.set(et,_e);++md1?"& ":"")+et[si],et=et.join(ln>2?", ":" "),_e.replace(Dn,`{ +/* [wrapped with `+et+`] */ +`)}function Va(_e){return ve(_e)||te(_e)||!!(xf&&_e&&_e[xf])}function Nl(_e,et){var ln=typeof _e;return et=et==null?nt:et,!!et&&(ln=="number"||ln!="symbol"&&Qi.test(_e))&&_e>-1&&_e%1==0&&_e0){if(++et>=Ue)return arguments[0]}else et=0;return _e.apply(P,arguments)}}function je(_e,et){var ln=-1,si=_e.length,hs=si-1;for(et=et===P?si:et;++ln1?_e[et-1]:P;return ln=typeof ln=="function"?(_e.pop(),ln):P,fc(_e,ln)});function mm(_e){var et=zo(_e);return et.__chain__=!0,et}function s0(_e,et){return et(_e),_e}function a0(_e,et){return et(_e)}var Ws=oi(function(_e){var et=_e.length,ln=et?_e[0]:0,si=this.__wrapped__,hs=function(Da){return Gh(Da,_e)};return et>1||this.__actions__.length||!(si instanceof ge)||!Nl(ln)?this.thru(hs):(si=si.slice(ln,+ln+(et?1:0)),si.__actions__.push({func:a0,args:[hs],thisArg:P}),new le(si,this.__chain__).thru(function(Da){return et&&!Da.length&&Da.push(P),Da}))});function qy(){return mm(this)}function _g(){return new le(this.value(),this.__chain__)}function J0(){this.__values__===P&&(this.__values__=xu(this.value()));var _e=this.__index__>=this.__values__.length,et=_e?P:this.__values__[this.__index__++];return{done:_e,value:et}}function Re(){return this}function f(_e){for(var et,ln=this;ln instanceof j;){var si=zi(ln);si.__index__=0,si.__values__=P,et?hs.__wrapped__=si:et=si;var hs=si;ln=ln.__wrapped__}return hs.__wrapped__=_e,et}function _(){var _e=this.__wrapped__;if(_e instanceof ge){var et=_e;return this.__actions__.length&&(et=new ge(this)),et=et.reverse(),et.__actions__.push({func:a0,args:[Jd],thisArg:P}),new le(et,this.__chain__)}return this.thru(Jd)}function T(){return we(this.__wrapped__,this.__actions__)}var W=Yn(function(_e,et,ln){Mf.call(_e,ln)?++_e[ln]:vh(_e,ln,1)});function re(_e,et,ln){var si=ve(_e)?$a:$d;return ln&&ja(_e,et,ln)&&(et=P),si(_e,Ro(et,3))}function de(_e,et){var ln=ve(_e)?Js:ap;return ln(_e,Ro(et,3))}var Le=Lr(Us),Je=Lr(pl);function $t(_e,et){return mp(Lo(_e,et),1)}function on(_e,et){return mp(Lo(_e,et),St)}function Jn(_e,et,ln){return ln=ln===P?1:cc(ln),mp(Lo(_e,et),ln)}function br(_e,et){var ln=ve(_e)?Ma:rd;return ln(_e,Ro(et,3))}function xi(_e,et){var ln=ve(_e)?ga:of;return ln(_e,Ro(et,3))}var Di=Yn(function(_e,et,ln){Mf.call(_e,ln)?_e[ln].push(et):vh(_e,ln,[et])});function Do(_e,et,ln,si){_e=bt(_e)?_e:k0(_e),ln=ln&&!si?cc(ln):0;var hs=_e.length;return ln<0&&(ln=kf(hs+ln,0)),Gp(_e)?ln<=hs&&_e.indexOf(et,ln)>-1:!!hs&&Ic(_e,et,ln)>-1}var Ao=_f(function(_e,et,ln){var si=-1,hs=typeof et=="function",Da=bt(_e)?Dl(_e.length):[];return rd(_e,function(Yl){Da[++si]=hs?us(et,Yl,ln):qf(Yl,et,ln)}),Da}),Vo=Yn(function(_e,et,ln){vh(_e,ln,et)});function Lo(_e,et){var ln=ve(_e)?Ta:Qg;return ln(_e,Ro(et,3))}function co(_e,et,ln,si){return _e==null?[]:(ve(et)||(et=et==null?[]:[et]),ln=si?P:ln,ve(ln)||(ln=ln==null?[]:[ln]),w0(_e,et,ln))}var Ys=Yn(function(_e,et,ln){_e[ln?0:1].push(et)},function(){return[[],[]]});function Fa(_e,et,ln){var si=ve(_e)?au:Gd,hs=arguments.length<3;return si(_e,Ro(et,4),ln,hs,rd)}function xl(_e,et,ln){var si=ve(_e)?$l:Gd,hs=arguments.length<3;return si(_e,Ro(et,4),ln,hs,of)}function cu(_e,et){var ln=ve(_e)?Js:ap;return ln(_e,Ch(Ro(et,3)))}function $u(_e){var et=ve(_e)?tl:K0;return et(_e)}function Lu(_e,et,ln){(ln?ja(_e,et,ln):et===P)?et=1:et=cc(et);var si=ve(_e)?qa:U0;return si(_e,et)}function sh(_e){var et=ve(_e)?Gl:cv;return et(_e)}function _u(_e){if(_e==null)return 0;if(bt(_e))return Gp(_e)?Cd(_e):_e.length;var et=Ks(_e);return et==Xi||et==Ot?_e.size:i0(_e).length}function Bc(_e,et,ln){var si=ve(_e)?Mu:Wm;return ln&&ja(_e,et,ln)&&(et=P),si(_e,Ro(et,3))}var Nn=_f(function(_e,et){if(_e==null)return[];var ln=et.length;return ln>1&&ja(_e,et[0],et[1])?et=[]:ln>2&&ja(et[0],et[1],et[2])&&(et=[et[0]]),w0(_e,mp(et,1),[])}),sr=sp||function(){return Hu.Date.now()};function Zr(_e,et){if(typeof et!="function")throw new ld(V);return _e=cc(_e),function(){if(--_e<1)return et.apply(this,arguments)}}function hi(_e,et,ln){return et=ln?P:et,et=_e&&et==null?_e.length:et,lo(_e,st,P,P,P,P,et)}function oo(_e,et){var ln;if(typeof et!="function")throw new ld(V);return _e=cc(_e),function(){return--_e>0&&(ln=et.apply(this,arguments)),_e<=1&&(et=P),ln}}var na=_f(function(_e,et,ln){var si=fe;if(ln.length){var hs=qc(ln,uo(na));si|=Ve}return lo(_e,si,et,ln,hs)}),rl=_f(function(_e,et,ln){var si=fe|xe;if(ln.length){var hs=qc(ln,uo(rl));si|=Ve}return lo(et,si,_e,ln,hs)});function $s(_e,et,ln){et=ln?P:et;var si=lo(_e,be,P,P,P,P,P,et);return si.placeholder=$s.placeholder,si}function ll(_e,et,ln){et=ln?P:et;var si=lo(_e,Qe,P,P,P,P,P,et);return si.placeholder=ll.placeholder,si}function tu(_e,et,ln){var si,hs,Da,Yl,du,rc,Vh=0,Zh=!1,md=!1,Uf=!0;if(typeof _e!="function")throw new ld(V);et=Uh(et)||0,_l(ln)&&(Zh=!!ln.leading,md="maxWait"in ln,Da=md?kf(Uh(ln.maxWait)||0,et):Da,Uf="trailing"in ln?!!ln.trailing:Uf);function Tp(bv){var j1=si,Fy=hs;return si=hs=P,Vh=bv,Yl=_e.apply(Fy,j1),Yl}function sg(bv){return Vh=bv,du=Fl(dm,et),Zh?Tp(bv):Yl}function ag(bv){var j1=bv-rc,Fy=bv-Vh,g2=et-j1;return md?_p(g2,Da-Fy):g2}function Sg(bv){var j1=bv-rc,Fy=bv-Vh;return rc===P||j1>=et||j1<0||md&&Fy>=Da}function dm(){var bv=sr();if(Sg(bv))return Nm(bv);du=Fl(dm,ag(bv))}function Nm(bv){return du=P,Uf&&si?Tp(bv):(si=hs=P,Yl)}function E1(){du!==P&&sn(du),Vh=0,si=rc=hs=du=P}function Hv(){return du===P?Yl:Nm(sr())}function T1(){var bv=sr(),j1=Sg(bv);if(si=arguments,hs=this,rc=bv,j1){if(du===P)return sg(rc);if(md)return sn(du),du=Fl(dm,et),Tp(rc)}return du===P&&(du=Fl(dm,et)),Yl}return T1.cancel=E1,T1.flush=Hv,T1}var Rs=_f(function(_e,et){return tf(_e,1,et)}),Cc=_f(function(_e,et,ln){return tf(_e,Uh(et)||0,ln)});function sd(_e){return lo(_e,De)}function Rh(_e,et){if(typeof _e!="function"||et!=null&&typeof et!="function")throw new ld(V);var ln=function(){var si=arguments,hs=et?et.apply(this,si):si[0],Da=ln.cache;if(Da.has(hs))return Da.get(hs);var Yl=_e.apply(this,si);return ln.cache=Da.set(hs,Yl)||Da,Yl};return ln.cache=new(Rh.Cache||Q),ln}Rh.Cache=Q;function Ch(_e){if(typeof _e!="function")throw new ld(V);return function(){var et=arguments;switch(et.length){case 0:return!_e.call(this);case 1:return!_e.call(this,et[0]);case 2:return!_e.call(this,et[0],et[1]);case 3:return!_e.call(this,et[0],et[1],et[2])}return!_e.apply(this,et)}}function ad(_e){return oo(2,_e)}var up=gt(function(_e,et){et=et.length==1&&ve(et[0])?Ta(et[0],_d(Ro())):Ta(mp(et,1),_d(Ro()));var ln=et.length;return _f(function(si){for(var hs=-1,Da=_p(si.length,ln);++hs=et}),te=Hd(function(){return arguments}())?Hd:function(_e){return Xl(_e)&&Mf.call(_e,"callee")&&!Qp.call(_e,"callee")},ve=Dl.isArray,We=wi?_d(wi):Jf;function bt(_e){return _e!=null&&jl(_e.length)&&!Oa(_e)}function mt(_e){return Xl(_e)&&bt(_e)}function Qt(_e){return _e===!0||_e===!1||Xl(_e)&&cd(_e)==Ni}var En=Mp||v_,Tr=er?_d(er):Op;function li(_e){return Xl(_e)&&_e.nodeType===1&&!hd(_e)}function Mi(_e){if(_e==null)return!0;if(bt(_e)&&(ve(_e)||typeof _e=="string"||typeof _e.splice=="function"||En(_e)||nm(_e)||te(_e)))return!_e.length;var et=Ks(_e);if(et==Xi||et==Ot)return!_e.size;if(Cu(_e))return!i0(_e).length;for(var ln in _e)if(Mf.call(_e,ln))return!1;return!0}function Co(_e,et){return Vp(_e,et)}function jo(_e,et,ln){ln=typeof ln=="function"?ln:P;var si=ln?ln(_e,et):P;return si===P?Vp(_e,et,P,ln):!!si}function bs(_e){if(!Xl(_e))return!1;var et=cd(_e);return et==Is||et==ti||typeof _e.message=="string"&&typeof _e.name=="string"&&!hd(_e)}function Ca(_e){return typeof _e=="number"&&gd(_e)}function Oa(_e){if(!_l(_e))return!1;var et=cd(_e);return et==Ns||et==Se||et==Ii||et==Ln}function sl(_e){return typeof _e=="number"&&_e==cc(_e)}function jl(_e){return typeof _e=="number"&&_e>-1&&_e%1==0&&_e<=nt}function _l(_e){var et=typeof _e;return _e!=null&&(et=="object"||et=="function")}function Xl(_e){return _e!=null&&typeof _e=="object"}var Ku=Un?_d(Un):Qf;function ah(_e,et){return _e===et||df(_e,et,ra(et))}function bd(_e,et,ln){return ln=typeof ln=="function"?ln:P,df(_e,et,ra(et),ln)}function zf(_e){return gf(_e)&&_e!=+_e}function Ed(_e){if(vu(_e))throw new Au(B);return wf(_e)}function Dd(_e){return _e===null}function Xh(_e){return _e==null}function gf(_e){return typeof _e=="number"||Xl(_e)&&cd(_e)==Yi}function hd(_e){if(!Xl(_e)||cd(_e)!=di)return!1;var et=uh(_e);if(et===null)return!0;var ln=Mf.call(et,"constructor")&&et.constructor;return typeof ln=="function"&&ln instanceof ln&&rh.call(ln)==Sd}var Lh=Wr?_d(Wr):Ag;function ep(_e){return sl(_e)&&_e>=-nt&&_e<=nt}var bf=Qr?_d(Qr):Jg;function Gp(_e){return typeof _e=="string"||!ve(_e)&&Xl(_e)&&cd(_e)==Ht}function wg(_e){return typeof _e=="symbol"||Xl(_e)&&cd(_e)==Pn}var nm=_o?_d(_o):rp;function d0(_e){return _e===P}function vv(_e){return Xl(_e)&&Ks(_e)==In}function f0(_e){return Xl(_e)&&cd(_e)==mn}var km=mo(o0),Wu=mo(function(_e,et){return _e<=et});function xu(_e){if(!_e)return[];if(bt(_e))return Gp(_e)?Ah(_e):Vt(_e);if(wp&&_e[wp])return Gu(_e[wp]());var et=Ks(_e),ln=et==Xi?Ol:et==Ot?fh:k0;return ln(_e)}function nh(_e){if(!_e)return _e===0?_e:0;if(_e=Uh(_e),_e===St||_e===-St){var et=_e<0?-1:1;return et*wt}return _e===_e?_e:0}function cc(_e){var et=nh(_e),ln=et%1;return et===et?ln?et-ln:et:0}function id(_e){return _e?Nh(cc(_e),0,Kt):0}function Uh(_e){if(typeof _e=="number")return _e;if(wg(_e))return lt;if(_l(_e)){var et=typeof _e.valueOf=="function"?_e.valueOf():_e;_e=_l(et)?et+"":et}if(typeof _e!="string")return _e===0?_e:+_e;_e=jf(_e);var ln=Bi.test(_e);return ln||Kr.test(_e)?ba(_e.slice(2),ln?2:8):mi.test(_e)?lt:+_e}function Yd(_e){return Jt(_e,hv(_e))}function tp(_e){return _e?Nh(cc(_e),-nt,nt):_e===0?_e:0}function Td(_e){return _e==null?"":Zp(_e)}var Hf=gr(function(_e,et){if(Cu(et)||bt(et)){Jt(et,Om(et),_e);return}for(var ln in et)Mf.call(et,ln)&&bu(_e,ln,et[ln])}),Xf=gr(function(_e,et){Jt(et,hv(et),_e)}),Rg=gr(function(_e,et,ln,si){Jt(et,hv(et),_e,si)}),Ef=gr(function(_e,et,ln,si){Jt(et,Om(et),_e,si)}),$g=oi(Gh);function Cm(_e,et){var ln=L(_e);return et==null?ln:Ju(ln,et)}var Im=_f(function(_e,et){_e=xh(_e);var ln=-1,si=et.length,hs=si>2?et[2]:P;for(hs&&ja(et[0],et[1],hs)&&(si=1);++ln1),Da}),Jt(_e,Ls(_e),ln),si&&(ln=jd(ln,A|O|K,ha));for(var hs=et.length;hs--;)zm(ln,et[hs]);return ln});function _y(_e,et){return D0(_e,Ch(Ro(et)))}var _v=oi(function(_e,et){return _e==null?{}:Lg(_e,et)});function D0(_e,et){if(_e==null)return{};var ln=Ta(Ls(_e),function(si){return[si]});return et=Ro(et),bm(_e,ln,function(si,hs){return et(si,hs[0])})}function p_(_e,et,ln){et=xt(et,_e);var si=-1,hs=et.length;for(hs||(hs=1,_e=P);++siet){var si=_e;_e=et,et=si}if(ln||_e%1||et%1){var hs=Dp();return _p(_e+hs*(et-_e+Cs("1e-"+((hs+"").length-1))),et)}return uv(_e,et)}var e1=jn(function(_e,et,ln){return et=et.toLowerCase(),_e+(ln?w1(et):et)});function w1(_e){return Oy(Td(_e).toLowerCase())}function C1(_e){return _e=Td(_e),_e&&_e.replace(ns,Ya).replace(ko,"")}function by(_e,et,ln){_e=Td(_e),et=Zp(et);var si=_e.length;ln=ln===P?si:Nh(cc(ln),0,si);var hs=ln;return ln-=et.length,ln>=0&&_e.slice(ln,hs)==et}function B_(_e){return _e=Td(_e),_e&&Zt.test(_e)?_e.replace(pn,ml):_e}function Bv(_e){return _e=Td(_e),_e&&Qn.test(_e)?_e.replace(wn,"\\$&"):_e}var lb=jn(function(_e,et,ln){return _e+(ln?"-":"")+et.toLowerCase()}),ub=jn(function(_e,et,ln){return _e+(ln?" ":"")+et.toLowerCase()}),z1=Gi("toLowerCase");function g_(_e,et,ln){_e=Td(_e),et=cc(et);var si=et?Cd(_e):0;if(!et||si>=et)return _e;var hs=(et-si)/2;return bi(Cp(hs),ln)+_e+bi(Wh(hs),ln)}function Ix(_e,et,ln){_e=Td(_e),et=cc(et);var si=et?Cd(_e):0;return et&&si>>0,ln?(_e=Td(_e),_e&&(typeof et=="string"||et!=null&&!Lh(et))&&(et=Zp(et),!et&&ju(_e))?jt(Ah(_e),0,ln):_e.split(et,ln)):[]}var l2=jn(function(_e,et,ln){return _e+(ln?" ":"")+Oy(et)});function hb(_e,et,ln){return _e=Td(_e),ln=ln==null?0:Nh(cc(ln),0,_e.length),et=Zp(et),_e.slice(ln,ln+et.length)==et}function db(_e,et,ln){var si=zo.templateSettings;ln&&ja(_e,et,ln)&&(et=P),_e=Td(_e),et=Rg({},et,si,$i);var hs=Rg({},et.imports,si.imports,$i),Da=Om(hs),Yl=Qd(hs,Da),du,rc,Vh=0,Zh=et.interpolate||Ur,md="__p += '",Uf=ef((et.escape||Ur).source+"|"+Zh.source+"|"+(Zh===Ar?ci:Ur).source+"|"+(et.evaluate||Ur).source+"|$","g"),Tp="//# sourceURL="+(Mf.call(et,"sourceURL")?(et.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++fs+"]")+` +`;_e.replace(Uf,function(Sg,dm,Nm,E1,Hv,T1){return Nm||(Nm=E1),md+=_e.slice(Vh,T1).replace(gs,ou),dm&&(du=!0,md+=`' + +__e(`+dm+`) + +'`),Hv&&(rc=!0,md+=`'; `+Hv+`; -__p += '`),Om&&(mh+=`' + -((__t = (`+Om+`)) == null ? '' : __t) + -'`),jd=T1+wg.length,wg}),mh+=`'; -`;var ng=Mf.call(Qe,"variable")&&Qe.variable;if(!ng)mh=`with (obj) { -`+mh+` -} -`;else if(vi.test(ng))throw new Au(k);mh=(rc?mh.replace(to,""):mh).replace(Ji,"$1").replace(bo,"$1;"),mh="function("+(ng||"obj")+`) { -`+(ng?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(pu?", __e = _.escape":"")+(rc?`, __j = Array.prototype.join; +__p += '`),Nm&&(md+=`' + +((__t = (`+Nm+`)) == null ? '' : __t) + +'`),Vh=T1+Sg.length,Sg}),md+=`'; +`;var sg=Mf.call(et,"variable")&&et.variable;if(!sg)md=`with (obj) { +`+md+` +} +`;else if(yi.test(sg))throw new Au(k);md=(rc?md.replace(ro,""):md).replace(qi,"$1").replace(bo,"$1;"),md="function("+(sg||"obj")+`) { +`+(sg?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(du?", __e = _.escape":"")+(rc?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+mh+`return __p -}`;var rg=g_(function(){return Sc(Ia,Cp+"return "+mh).apply(R,ql)});if(rg.source=mh,ys(rg))throw rg;return rg}function hb(ye){return Ah(ye).toLowerCase()}function Q2(ye){return Ah(ye).toUpperCase()}function c2(ye,Qe,sn){if(ye=Ah(ye),ye&&(sn||Qe===R))return Vf(ye);if(!ye||!(Qe=Hp(Qe)))return ye;var si=Ad(ye),cs=Ad(Qe),Ia=Wd(si,cs),ql=zs(si,cs)+1;return jt(si,Ia,ql).join("")}function UE(ye,Qe,sn){if(ye=Ah(ye),ye&&(sn||Qe===R))return ye.slice(0,bd(ye)+1);if(!ye||!(Qe=Hp(Qe)))return ye;var si=Ad(ye),cs=zs(si,Ad(Qe))+1;return jt(si,0,cs).join("")}function U1(ye,Qe,sn){if(ye=Ah(ye),ye&&(sn||Qe===R))return ye.replace(Mr,"");if(!ye||!(Qe=Hp(Qe)))return ye;var si=Ad(ye),cs=Wd(si,Ad(Qe));return jt(si,cs).join("")}function S1(ye,Qe){var sn=Ae,si=Re;if(vl(Qe)){var cs="separator"in Qe?Qe.separator:cs;sn="length"in Qe?dc(Qe.length):sn,si="omission"in Qe?Hp(Qe.omission):si}ye=Ah(ye);var Ia=ye.length;if($u(ye)){var ql=Ad(ye);Ia=ql.length}if(sn>=Ia)return ye;var pu=sn-Ch(si);if(pu<1)return si;var rc=ql?jt(ql,0,pu).join(""):ye.slice(0,pu);if(cs===R)return rc+si;if(ql&&(pu+=rc.length-pu),Md(cs)){if(ye.slice(pu).search(cs)){var jd,Hd=rc;for(cs.global||(cs=ef(cs.source,Ah(gi.exec(cs))+"g")),cs.lastIndex=0;jd=cs.exec(Hd);)var mh=jd.index;rc=rc.slice(0,mh===R?pu:mh)}}else if(ye.indexOf(Hp(cs),pu)!=pu){var zf=rc.lastIndexOf(cs);zf>-1&&(rc=rc.slice(0,zf))}return rc+si}function ky(ye){return ye=Ah(ye),ye&&It.test(ye)?ye.replace(xn,su):ye}var d1=jn(function(ye,Qe,sn){return ye+(sn?" ":"")+Qe.toUpperCase()}),Oy=Ki("toUpperCase");function fb(ye,Qe,sn){return ye=Ah(ye),Qe=sn?R:Qe,Qe===R?cc(ye)?mu(ye):Tn(ye):ye.match(Qe)||[]}var g_=bf(function(ye,Qe){try{return us(ye,R,Qe)}catch(sn){return ys(sn)?sn:new Au(sn)}}),Ny=oi(function(ye,Qe){return Oa(Qe,function(sn){sn=xi(sn),yd(ye,sn,ia(ye[sn],ye))}),ye});function ry(ye){var Qe=ye==null?0:ye.length,sn=Mo();return ye=Qe?Ta(ye,function(si){if(typeof si[1]!="function")throw new uh(V);return[sn(si[0]),si[1]]}):[],bf(function(si){for(var cs=-1;++csnt)return[];var sn=Gt,si=hp(ye,Gt);Qe=Mo(Qe),ye-=Gt;for(var cs=Kh(si,Qe);++sn0||Qe<0)?new pe(sn):(ye<0?sn=sn.takeRight(-ye):ye&&(sn=sn.drop(ye)),Qe!==R&&(Qe=dc(Qe),sn=Qe<0?sn.dropRight(-Qe):sn.take(Qe-ye)),sn)},pe.prototype.takeRightWhile=function(ye){return this.reverse().takeWhile(ye).reverse()},pe.prototype.toArray=function(){return this.take(Gt)},hd(pe.prototype,function(ye,Qe){var sn=/^(?:filter|find|map|reject)|While$/.test(Qe),si=/^(?:head|last)$/.test(Qe),cs=zo[si?"take"+(Qe=="last"?"Right":""):Qe],Ia=si||/^find/.test(Qe);cs&&(zo.prototype[Qe]=function(){var ql=this.__wrapped__,pu=si?[1]:arguments,rc=ql instanceof pe,jd=pu[0],Hd=rc||me(ql),mh=function(hm){var Om=cs.apply(zo,Ya([hm],pu));return si&&zf?Om[0]:Om};Hd&&sn&&typeof jd=="function"&&jd.length!=1&&(rc=Hd=!1);var zf=this.__chain__,Cp=!!this.__actions__.length,ng=Ia&&!zf,rg=rc&&!Cp;if(!Ia&&Hd){ql=rg?ql:new pe(this);var wg=ye.apply(ql,pu);return wg.__actions__.push({func:l0,args:[mh],thisArg:R}),new ae(wg,zf)}return ng&&rg?ye.apply(this,pu):(wg=this.thru(mh),ng?si?wg.value()[0]:wg.value():wg)})}),Oa(["pop","push","shift","sort","splice","unshift"],function(ye){var Qe=cf[ye],sn=/^(?:push|sort|unshift)$/.test(ye)?"tap":"thru",si=/^(?:pop|shift)$/.test(ye);zo.prototype[ye]=function(){var cs=arguments;if(si&&!this.__chain__){var Ia=this.value();return Qe.apply(me(Ia)?Ia:[],cs)}return this[sn](function(ql){return Qe.apply(me(ql)?ql:[],cs)})}}),hd(pe.prototype,function(ye,Qe){var sn=zo[Qe];if(sn){var si=sn.name+"";Mf.call(Dd,si)||(Dd[si]=[]),Dd[si].push({name:Qe,func:sn})}}),Dd[Er(R,Ee).name]=[{name:"wrapper",func:R}],pe.prototype.clone=it,pe.prototype.reverse=dn,pe.prototype.value=ir,zo.prototype.at=Gs,zo.prototype.chain=Xy,zo.prototype.commit=vg,zo.prototype.next=ev,zo.prototype.plant=f,zo.prototype.reverse=y,zo.prototype.toJSON=zo.prototype.valueOf=zo.prototype.value=T,zo.prototype.first=zo.prototype.head,bp&&(zo.prototype[bp]=Me),zo},Uh=md();Zu._=Uh,v=function(){return Uh}.call(Y,_,Y,_t),v!==R&&(_t.exports=v)}).call(this)},52858:function(_t,Y,_){var v=_(52166),R="Expected a function";function w(b,B){if(typeof b!="function"||B!=null&&typeof B!="function")throw new TypeError(R);var V=function(){var k=arguments,M=B?B.apply(this,k):k[0],C=V.cache;if(C.has(M))return C.get(M);var g=b.apply(this,k);return V.cache=C.set(M,g)||C,g};return V.cache=new(w.Cache||v),V}w.Cache=v,_t.exports=w},28440:function(_t,Y,_){var v=_(50097),R=_(63323),w=R(function(b,B,V){v(b,B,V)});_t.exports=w},24602:function(_t,Y,_){var v=_(50097),R=_(63323),w=R(function(b,B,V,k){v(b,B,V,k)});_t.exports=w},9958:function(_t){function Y(){}_t.exports=Y},5795:function(_t,Y,_){var v=_(33152),R=function(){return v.Date.now()};_t.exports=R},63536:function(_t,Y,_){var v=_(92918),R=_(14989),w=v(R);_t.exports=w},14989:function(_t,Y,_){var v=_(23442);function R(w,b){return w&&w.length&&b&&b.length?v(w,b):w}_t.exports=R},4134:function(_t){function Y(){return[]}_t.exports=Y},55950:function(_t){function Y(){return!1}_t.exports=Y},46700:function(_t,Y,_){var v=_(41571),R=_(20816),w="Expected a function";function b(B,V,k){var M=!0,C=!0;if(typeof B!="function")throw new TypeError(w);return R(k)&&(M="leading"in k?!!k.leading:M,C="trailing"in k?!!k.trailing:C),v(B,V,{leading:M,maxWait:V,trailing:C})}_t.exports=b},20168:function(_t,Y,_){var v=_(13927),R=_(20816),w=_(45029),b=0/0,B=/^[-+]0x[0-9a-f]+$/i,V=/^0b[01]+$/i,k=/^0o[0-7]+$/i,M=parseInt;function C(g){if(typeof g=="number")return g;if(w(g))return b;if(R(g)){var A=typeof g.valueOf=="function"?g.valueOf():g;g=R(A)?A+"":A}if(typeof g!="string")return g===0?g:+g;g=v(g);var O=V.test(g);return O||k.test(g)?M(g.slice(2),O?2:8):B.test(g)?b:+g}_t.exports=C},20480:function(_t,Y,_){var v=_(95378),R=_(56730);function w(b){return v(b,R(b))}_t.exports=w},44140:function(_t,Y,_){var v=_(50230);function R(w){return w==null?"":v(w)}_t.exports=R},21691:function(_t,Y,_){var v=_(29098);function R(w){return w&&w.length?v(w):[]}_t.exports=R},53592:function(_t,Y,_){var v=_(97815),R=v("toUpperCase");_t.exports=R},61503:function(_t,Y,_){var v=_(34130),R=_(62840),w=_(44140),b=_(97681);function B(V,k,M){return V=w(V),k=M?void 0:k,k===void 0?R(V)?b(V):v(V):V.match(k)||[]}_t.exports=B},17369:function(_t){(function(Y,_){_t.exports=_()})(this,function(){"use strict";var Y,_,v;function R(w,b){if(!Y)Y=b;else if(!_)_=b;else{var B="var sharedChunk = {}; ("+Y+")(sharedChunk); ("+_+")(sharedChunk);",V={};Y(V),v=b(V),typeof window!="undefined"&&(v.workerUrl=window.URL.createObjectURL(new Blob([B],{type:"text/javascript"})))}}return R(["exports"],function(w){"use strict";function b(f,y){return f(y={exports:{}},y.exports),y.exports}var B=V;function V(f,y,T,W){this.cx=3*f,this.bx=3*(T-f)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*y,this.by=3*(W-y)-this.cy,this.ay=1-this.cy-this.by,this.p1x=f,this.p1y=W,this.p2x=T,this.p2y=W}V.prototype.sampleCurveX=function(f){return((this.ax*f+this.bx)*f+this.cx)*f},V.prototype.sampleCurveY=function(f){return((this.ay*f+this.by)*f+this.cy)*f},V.prototype.sampleCurveDerivativeX=function(f){return(3*this.ax*f+2*this.bx)*f+this.cx},V.prototype.solveCurveX=function(f,y){var T,W,re,he,Le;for(y===void 0&&(y=1e-6),re=f,Le=0;Le<8;Le++){if(he=this.sampleCurveX(re)-f,Math.abs(he)(W=1))return W;for(;The?T=re:W=re,re=.5*(W-T)+T}return re},V.prototype.solve=function(f,y){return this.sampleCurveY(this.solveCurveX(f,y))};var k=M;function M(f,y){this.x=f,this.y=y}M.prototype={clone:function(){return new M(this.x,this.y)},add:function(f){return this.clone()._add(f)},sub:function(f){return this.clone()._sub(f)},multByPoint:function(f){return this.clone()._multByPoint(f)},divByPoint:function(f){return this.clone()._divByPoint(f)},mult:function(f){return this.clone()._mult(f)},div:function(f){return this.clone()._div(f)},rotate:function(f){return this.clone()._rotate(f)},rotateAround:function(f,y){return this.clone()._rotateAround(f,y)},matMult:function(f){return this.clone()._matMult(f)},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(f){return this.x===f.x&&this.y===f.y},dist:function(f){return Math.sqrt(this.distSqr(f))},distSqr:function(f){var y=f.x-this.x,T=f.y-this.y;return y*y+T*T},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(f){return Math.atan2(this.y-f.y,this.x-f.x)},angleWith:function(f){return this.angleWithSep(f.x,f.y)},angleWithSep:function(f,y){return Math.atan2(this.x*y-this.y*f,this.x*f+this.y*y)},_matMult:function(f){var y=f[2]*this.x+f[3]*this.y;return this.x=f[0]*this.x+f[1]*this.y,this.y=y,this},_add:function(f){return this.x+=f.x,this.y+=f.y,this},_sub:function(f){return this.x-=f.x,this.y-=f.y,this},_mult:function(f){return this.x*=f,this.y*=f,this},_div:function(f){return this.x/=f,this.y/=f,this},_multByPoint:function(f){return this.x*=f.x,this.y*=f.y,this},_divByPoint:function(f){return this.x/=f.x,this.y/=f.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var f=this.y;return this.y=this.x,this.x=-f,this},_rotate:function(f){var y=Math.cos(f),T=Math.sin(f),W=T*this.x+y*this.y;return this.x=y*this.x-T*this.y,this.y=W,this},_rotateAround:function(f,y){var T=Math.cos(f),W=Math.sin(f),re=y.y+W*(this.x-y.x)+T*(this.y-y.y);return this.x=y.x+T*(this.x-y.x)-W*(this.y-y.y),this.y=re,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},M.convert=function(f){return f instanceof M?f:Array.isArray(f)?new M(f[0],f[1]):f};var C=typeof self!="undefined"?self:{},g=Math.pow(2,53)-1;function A(f,y,T,W){var re=new B(f,y,T,W);return function(he){return re.solve(he)}}var O=A(.25,.1,.25,1);function K(f,y,T){return Math.min(T,Math.max(y,f))}function ce(f,y,T){var W=T-y,re=((f-y)%W+W)%W+y;return re===y?T:re}function de(f){for(var y=[],T=arguments.length-1;T-- >0;)y[T]=arguments[T+1];for(var W=0,re=y;W>y/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,f)}()}function we(f){return!!f&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(f)}function ot(f,y){f.forEach(function(T){y[T]&&(y[T]=y[T].bind(y))})}function He(f,y){return f.indexOf(y,f.length-y.length)!==-1}function vt(f,y,T){var W={};for(var re in f)W[re]=y.call(T||this,f[re],re,f);return W}function dt(f,y,T){var W={};for(var re in f)y.call(T||this,f[re],re,f)&&(W[re]=f[re]);return W}function Pe(f){return Array.isArray(f)?f.map(Pe):typeof f=="object"&&f?vt(f,Pe):f}var De={};function Ae(f){De[f]||(typeof console!="undefined"&&console.warn(f),De[f]=!0)}function Re(f,y,T){return(T.y-f.y)*(y.x-f.x)>(y.y-f.y)*(T.x-f.x)}function $e(f){for(var y=0,T=0,W=f.length,re=W-1,he=void 0,Le=void 0;T@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(W,re,he,Le){var qe=he||Le;return y[re]=!qe||qe.toLowerCase(),""}),y["max-age"]){var T=parseInt(y["max-age"],10);isNaN(T)?delete y["max-age"]:y["max-age"]=T}return y}var ze=null;function Kt(f){if(ze==null){var y=f.navigator?f.navigator.userAgent:null;ze=!!f.safari||!(!y||!(/\b(iPad|iPhone|iPod)\b/.test(y)||y.match("Safari")&&!y.match("Chrome")))}return ze}function St(f){try{var y=C[f];return y.setItem("_mapbox_test_",1),y.removeItem("_mapbox_test_"),!0}catch(T){return!1}}var nt,Ct,lt,Gt,Rt=C.performance&&C.performance.now?C.performance.now.bind(C.performance):Date.now.bind(Date),an=C.requestAnimationFrame||C.mozRequestAnimationFrame||C.webkitRequestAnimationFrame||C.msRequestAnimationFrame,cn=C.cancelAnimationFrame||C.mozCancelAnimationFrame||C.webkitCancelAnimationFrame||C.msCancelAnimationFrame,Cr={now:Rt,frame:function(f){var y=an(f);return{cancel:function(){return cn(y)}}},getImageData:function(f,y){y===void 0&&(y=0);var T=C.document.createElement("canvas"),W=T.getContext("2d");if(!W)throw new Error("failed to create canvas 2d context");return T.width=f.width,T.height=f.height,W.drawImage(f,0,0,f.width,f.height),W.getImageData(-y,-y,f.width+2*y,f.height+2*y)},resolveURL:function(f){return nt||(nt=C.document.createElement("a")),nt.href=f,nt.href},hardwareConcurrency:C.navigator&&C.navigator.hardwareConcurrency||4,get devicePixelRatio(){return C.devicePixelRatio},get prefersReducedMotion(){return!!C.matchMedia&&(Ct==null&&(Ct=C.matchMedia("(prefers-reduced-motion: reduce)")),Ct.matches)}},ii={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},Pi={supported:!1,testSupport:function(f){!Ni&&Gt&&(Yi?ti(f):lt=f)}},Ni=!1,Yi=!1;function ti(f){var y=f.createTexture();f.bindTexture(f.TEXTURE_2D,y);try{if(f.texImage2D(f.TEXTURE_2D,0,f.RGBA,f.RGBA,f.UNSIGNED_BYTE,Gt),f.isContextLost())return;Pi.supported=!0}catch(T){}f.deleteTexture(y),Ni=!0}C.document&&((Gt=C.document.createElement("img")).onload=function(){lt&&ti(lt),lt=null,Yi=!0},Gt.onerror=function(){Ni=!0,lt=null},Gt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var Ts="01",Bs=function(f,y){this._transformRequestFn=f,this._customAccessToken=y,this._createSkuToken()};function Ce(f){return f.indexOf("mapbox:")===0}Bs.prototype._createSkuToken=function(){var f=function(){for(var y="",T=0;T<10;T++)y+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",Ts,y].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=f.token,this._skuTokenExpiresAt=f.tokenExpiresAt},Bs.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Bs.prototype.transformRequest=function(f,y){return this._transformRequestFn&&this._transformRequestFn(f,y)||{url:f}},Bs.prototype.normalizeStyleURL=function(f,y){if(!Ce(f))return f;var T=fi(f);return T.path="/styles/v1"+T.path,this._makeAPIURL(T,this._customAccessToken||y)},Bs.prototype.normalizeGlyphsURL=function(f,y){if(!Ce(f))return f;var T=fi(f);return T.path="/fonts/v1"+T.path,this._makeAPIURL(T,this._customAccessToken||y)},Bs.prototype.normalizeSourceURL=function(f,y){if(!Ce(f))return f;var T=fi(f);return T.path="/v4/"+T.authority+".json",T.params.push("secure"),this._makeAPIURL(T,this._customAccessToken||y)},Bs.prototype.normalizeSpriteURL=function(f,y,T,W){var re=fi(f);return Ce(f)?(re.path="/styles/v1"+re.path+"/sprite"+y+T,this._makeAPIURL(re,this._customAccessToken||W)):(re.path+=""+y+T,Ms(re))},Bs.prototype.normalizeTileURL=function(f,y){if(this._isSkuTokenExpired()&&this._createSkuToken(),f&&!Ce(f))return f;var T=fi(f);T.path=T.path.replace(/(\.(png|jpg)\d*)(?=$)/,(Cr.devicePixelRatio>=2||y===512?"@2x":"")+(Pi.supported?".webp":"$1")),T.path=T.path.replace(/^.+\/v4\//,"/"),T.path="/v4"+T.path;var W=this._customAccessToken||function(re){for(var he=0,Le=re;he=0&&f.params.splice(re,1)}if(W.path!=="/"&&(f.path=""+W.path+f.path),!ii.REQUIRE_ACCESS_TOKEN)return Ms(f);if(!(y=y||ii.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+T);if(y[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+T);return f.params=f.params.filter(function(he){return he.indexOf("access_token")===-1}),f.params.push("access_token="+y),Ms(f)};var Gi=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function qi(f){return Gi.test(f)}var co=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function fi(f){var y=f.match(co);if(!y)throw new Error("Unable to parse URL object");return{protocol:y[1],authority:y[2],path:y[3]||"/",params:y[4]?y[4].split("&"):[]}}function Ms(f){var y=f.params.length?"?"+f.params.join("&"):"";return f.protocol+"://"+f.authority+f.path+y}function In(f){if(!f)return null;var y=f.split(".");if(!y||y.length!==3)return null;try{return JSON.parse(decodeURIComponent(C.atob(y[1]).split("").map(function(T){return"%"+("00"+T.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch(T){return null}}var et=function(f){this.type=f,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};et.prototype.getStorageKey=function(f){var y,T=In(ii.ACCESS_TOKEN);return y=T&&T.u?C.btoa(encodeURIComponent(T.u).replace(/%([0-9A-F]{2})/g,function(W,re){return String.fromCharCode(+("0x"+re))})):ii.ACCESS_TOKEN||"",f?"mapbox.eventData."+f+":"+y:"mapbox.eventData:"+y},et.prototype.fetchEventData=function(){var f=St("localStorage"),y=this.getStorageKey(),T=this.getStorageKey("uuid");if(f)try{var W=C.localStorage.getItem(y);W&&(this.eventData=JSON.parse(W));var re=C.localStorage.getItem(T);re&&(this.anonId=re)}catch(he){Ae("Unable to read from LocalStorage")}},et.prototype.saveEventData=function(){var f=St("localStorage"),y=this.getStorageKey(),T=this.getStorageKey("uuid");if(f)try{C.localStorage.setItem(T,this.anonId),Object.keys(this.eventData).length>=1&&C.localStorage.setItem(y,JSON.stringify(this.eventData))}catch(W){Ae("Unable to write to LocalStorage")}},et.prototype.processRequests=function(f){},et.prototype.postEvent=function(f,y,T,W){var re=this;if(ii.EVENTS_URL){var he=fi(ii.EVENTS_URL);he.params.push("access_token="+(W||ii.ACCESS_TOKEN||""));var Le={event:this.type,created:new Date(f).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.3",skuId:Ts,userId:this.anonId},qe=y?de(Le,y):Le,Ut={url:Ms(he),headers:{"Content-Type":"text/plain"},body:JSON.stringify([qe])};this.pendingRequest=fn(Ut,function(rn){re.pendingRequest=null,T(rn),re.saveEventData(),re.processRequests(W)})}},et.prototype.queueRequest=function(f,y){this.queue.push(f),this.processRequests(y)};var Dt,$t,Dn=function(f){function y(){f.call(this,"map.load"),this.success={},this.skuToken=""}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.postMapLoadEvent=function(T,W,re,he){this.skuToken=re;var Le=!(!he&&!ii.ACCESS_TOKEN),qe=Array.isArray(T)&&T.some(function(Ut){return Ce(Ut)||qi(Ut)});ii.EVENTS_URL&&Le&&qe&&this.queueRequest({id:W,timestamp:Date.now()},he)},y.prototype.processRequests=function(T){var W=this;if(!this.pendingRequest&&this.queue.length!==0){var re=this.queue.shift(),he=re.id,Le=re.timestamp;he&&this.success[he]||(this.anonId||this.fetchEventData(),we(this.anonId)||(this.anonId=_e()),this.postEvent(Le,{skuToken:this.skuToken},function(qe){qe||he&&(W.success[he]=!0)},T))}},y}(et),gr=new(function(f){function y(T){f.call(this,"appUserTurnstile"),this._customAccessToken=T}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.postTurnstileEvent=function(T,W){ii.EVENTS_URL&&ii.ACCESS_TOKEN&&Array.isArray(T)&&T.some(function(re){return Ce(re)||qi(re)})&&this.queueRequest(Date.now(),W)},y.prototype.processRequests=function(T){var W=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var re=In(ii.ACCESS_TOKEN),he=re?re.u:ii.ACCESS_TOKEN,Le=he!==this.eventData.tokenU;we(this.anonId)||(this.anonId=_e(),Le=!0);var qe=this.queue.shift();if(this.eventData.lastSuccess){var Ut=new Date(this.eventData.lastSuccess),rn=new Date(qe),Qn=(qe-this.eventData.lastSuccess)/864e5;Le=Le||Qn>=1||Qn<-1||Ut.getDate()!==rn.getDate()}else Le=!0;if(!Le)return this.processRequests();this.postEvent(qe,{"enabled.telemetry":!1},function(br){br||(W.eventData.lastSuccess=qe,W.eventData.tokenU=he)},T)}},y}(et)),kn=gr.postTurnstileEvent.bind(gr),bn=new Dn,zt=bn.postMapLoadEvent.bind(bn),Jt=500,yn=50;function fr(){C.caches&&!Dt&&(Dt=C.caches.open("mapbox-tiles"))}function vr(f){var y=f.indexOf("?");return y<0?f:f.slice(0,y)}var pn,wr=1/0;function Sr(){return pn==null&&(pn=C.OffscreenCanvas&&new C.OffscreenCanvas(1,1).getContext("2d")&&typeof C.createImageBitmap=="function"),pn}var Ai={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(Ai);var mo=function(f){function y(T,W,re){W===401&&qi(re)&&(T+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),f.call(this,T),this.status=W,this.url=re,this.name=this.constructor.name,this.message=T}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},y}(Error),Fr=Ie()?function(){return self.worker&&self.worker.referrer}:function(){return(C.location.protocol==="blob:"?C.parent:C).location.href},to,Ji,bo=function(f,y){if(!(/^file:/.test(T=f.url)||/^file:/.test(Fr())&&!/^\w+:/.test(T))){if(C.fetch&&C.Request&&C.AbortController&&C.Request.prototype.hasOwnProperty("signal"))return function(W,re){var he,Le=new C.AbortController,qe=new C.Request(W.url,{method:W.method||"GET",body:W.body,credentials:W.credentials,headers:W.headers,referrer:Fr(),signal:Le.signal}),Ut=!1,rn=!1,Qn=(he=qe.url).indexOf("sku=")>0&&qi(he);W.type==="json"&&qe.headers.set("Accept","application/json");var br=function(Ii,Po,Io){if(!rn){if(Ii&&Ii.message!=="SecurityError"&&Ae(Ii),Po&&Io)return Ci(Po);var Zo=Date.now();C.fetch(qe).then(function(Ro){if(Ro.ok){var lo=Qn?Ro.clone():null;return Ci(Ro,lo,Zo)}return re(new mo(Ro.statusText,Ro.status,W.url))}).catch(function(Ro){Ro.code!==20&&re(new Error(Ro.message))})}},Ci=function(Ii,Po,Io){(W.type==="arrayBuffer"?Ii.arrayBuffer():W.type==="json"?Ii.json():Ii.text()).then(function(Zo){rn||(Po&&Io&&function(Ro,lo,Js){if(fr(),Dt){var Ua={status:lo.status,statusText:lo.statusText,headers:new C.Headers};lo.headers.forEach(function(fu,zu){return Ua.headers.set(zu,fu)});var _l=Xe(lo.headers.get("Cache-Control")||"");_l["no-store"]||(_l["max-age"]&&Ua.headers.set("Expires",new Date(Js+1e3*_l["max-age"]).toUTCString()),new Date(Ua.headers.get("Expires")).getTime()-Js<42e4||function(fu,zu){if($t===void 0)try{new Response(new ReadableStream),$t=!0}catch(Lu){$t=!1}$t?zu(fu.body):fu.blob().then(zu)}(lo,function(fu){var zu=new C.Response(fu,Ua);fr(),Dt&&Dt.then(function(Lu){return Lu.put(vr(Ro.url),zu)}).catch(function(Lu){return Ae(Lu.message)})}))}}(qe,Po,Io),Ut=!0,re(null,Zo,Ii.headers.get("Cache-Control"),Ii.headers.get("Expires")))}).catch(function(Zo){rn||re(new Error(Zo.message))})};return Qn?function(Ii,Po){if(fr(),!Dt)return Po(null);var Io=vr(Ii.url);Dt.then(function(Zo){Zo.match(Io).then(function(Ro){var lo=function(Js){if(!Js)return!1;var Ua=new Date(Js.headers.get("Expires")||0),_l=Xe(Js.headers.get("Cache-Control")||"");return Ua>Date.now()&&!_l["no-cache"]}(Ro);Zo.delete(Io),lo&&Zo.put(Io,Ro.clone()),Po(null,Ro,lo)}).catch(Po)}).catch(Po)}(qe,br):br(null,null),{cancel:function(){rn=!0,Ut||Le.abort()}}}(f,y);if(Ie()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",f,y,void 0,!0)}var T;return function(W,re){var he=new C.XMLHttpRequest;for(var Le in he.open(W.method||"GET",W.url,!0),W.type==="arrayBuffer"&&(he.responseType="arraybuffer"),W.headers)he.setRequestHeader(Le,W.headers[Le]);return W.type==="json"&&(he.responseType="text",he.setRequestHeader("Accept","application/json")),he.withCredentials=W.credentials==="include",he.onerror=function(){re(new Error(he.statusText))},he.onload=function(){if((he.status>=200&&he.status<300||he.status===0)&&he.response!==null){var qe=he.response;if(W.type==="json")try{qe=JSON.parse(he.response)}catch(Ut){return re(Ut)}re(null,qe,he.getResponseHeader("Cache-Control"),he.getResponseHeader("Expires"))}else re(new mo(he.statusText,he.status,W.url))},he.send(W.body),{cancel:function(){return he.abort()}}}(f,y)},xn=function(f,y){return bo(de(f,{type:"arrayBuffer"}),y)},fn=function(f,y){return bo(de(f,{method:"POST"}),y)},It="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";to=[],Ji=0;var Zt=function(f,y){if(Pi.supported&&(f.headers||(f.headers={}),f.headers.accept="image/webp,*/*"),Ji>=ii.MAX_PARALLEL_IMAGE_REQUESTS){var T={requestParameters:f,callback:y,cancelled:!1,cancel:function(){this.cancelled=!0}};return to.push(T),T}Ji++;var W=!1,re=function(){if(!W)for(W=!0,Ji--;to.length&&Ji0||this._oneTimeListeners&&this._oneTimeListeners[f]&&this._oneTimeListeners[f].length>0||this._eventedParent&&this._eventedParent.listens(f)},dr.prototype.setEventedParent=function(f,y){return this._eventedParent=f,this._eventedParentData=y,this};var Xt={$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"},sources:{required:!0,type:"sources"},sprite:{type:"string"},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:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{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"}},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"],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"}},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":{},within:{}}},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}},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"}}},Cn=function(f,y,T,W){this.message=(f?f+": ":"")+T,W&&(this.identifier=W),y!=null&&y.__line__&&(this.line=y.__line__)};function er(f){var y=f.value;return y?[new Cn(f.key,y,"constants have been deprecated as of v8")]:[]}function Mr(f){for(var y=[],T=arguments.length-1;T-- >0;)y[T]=arguments[T+1];for(var W=0,re=y;W":f.itemType.kind==="value"?"array":"array<"+y+">"}return f.kind}var gs=[qr,vi,Hr,di,gi,Xr,mi,rs(Bi),Qi];function Kr(f,y){if(y.kind==="error")return null;if(f.kind==="array"){if(y.kind==="array"&&(y.N===0&&y.itemType.kind==="value"||!Kr(f.itemType,y.itemType))&&(typeof f.N!="number"||f.N===y.N))return null}else{if(f.kind===y.kind)return null;if(f.kind==="value"){for(var T=0,W=gs;T255?255:qe}function re(qe){return W(qe[qe.length-1]==="%"?parseFloat(qe)/100*255:parseInt(qe))}function he(qe){return(Ut=qe[qe.length-1]==="%"?parseFloat(qe)/100:parseFloat(qe))<0?0:Ut>1?1:Ut;var Ut}function Le(qe,Ut,rn){return rn<0?rn+=1:rn>1&&(rn-=1),6*rn<1?qe+(Ut-qe)*rn*6:2*rn<1?Ut:3*rn<2?qe+(Ut-qe)*(2/3-rn)*6:qe}try{y.parseCSSColor=function(qe){var Ut,rn=qe.replace(/ /g,"").toLowerCase();if(rn in T)return T[rn].slice();if(rn[0]==="#")return rn.length===4?(Ut=parseInt(rn.substr(1),16))>=0&&Ut<=4095?[(3840&Ut)>>4|(3840&Ut)>>8,240&Ut|(240&Ut)>>4,15&Ut|(15&Ut)<<4,1]:null:rn.length===7&&(Ut=parseInt(rn.substr(1),16))>=0&&Ut<=16777215?[(16711680&Ut)>>16,(65280&Ut)>>8,255&Ut,1]:null;var Qn=rn.indexOf("("),br=rn.indexOf(")");if(Qn!==-1&&br+1===rn.length){var Ci=rn.substr(0,Qn),Ii=rn.substr(Qn+1,br-(Qn+1)).split(","),Po=1;switch(Ci){case"rgba":if(Ii.length!==4)return null;Po=he(Ii.pop());case"rgb":return Ii.length!==3?null:[re(Ii[0]),re(Ii[1]),re(Ii[2]),Po];case"hsla":if(Ii.length!==4)return null;Po=he(Ii.pop());case"hsl":if(Ii.length!==3)return null;var Io=(parseFloat(Ii[0])%360+360)%360/360,Zo=he(Ii[1]),Ro=he(Ii[2]),lo=Ro<=.5?Ro*(Zo+1):Ro+Zo-Ro*Zo,Js=2*Ro-lo;return[W(255*Le(Js,lo,Io+1/3)),W(255*Le(Js,lo,Io)),W(255*Le(Js,lo,Io-1/3)),Po];default:return null}}return null}}catch(qe){}}).parseCSSColor,_n=function(f,y,T,W){W===void 0&&(W=1),this.r=f,this.g=y,this.b=T,this.a=W};_n.parse=function(f){if(f){if(f instanceof _n)return f;if(typeof f=="string"){var y=Jr(f);if(y)return new _n(y[0]/255*y[3],y[1]/255*y[3],y[2]/255*y[3],y[3])}}},_n.prototype.toString=function(){var f=this.toArray(),y=f[1],T=f[2],W=f[3];return"rgba("+Math.round(f[0])+","+Math.round(y)+","+Math.round(T)+","+W+")"},_n.prototype.toArray=function(){var f=this.a;return f===0?[0,0,0,0]:[255*this.r/f,255*this.g/f,255*this.b/f,f]},_n.black=new _n(0,0,0,1),_n.white=new _n(1,1,1,1),_n.transparent=new _n(0,0,0,0),_n.red=new _n(1,0,0,1);var Br=function(f,y,T){this.sensitivity=f?y?"variant":"case":y?"accent":"base",this.locale=T,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Br.prototype.compare=function(f,y){return this.collator.compare(f,y)},Br.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var es=function(f,y,T,W,re){this.text=f,this.image=y,this.scale=T,this.fontStack=W,this.textColor=re},ko=function(f){this.sections=f};ko.fromString=function(f){return new ko([new es(f,null,null,null,null)])},ko.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(f){return f.text.length!==0||f.image&&f.image.name.length!==0})},ko.factory=function(f){return f instanceof ko?f:ko.fromString(f)},ko.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(f){return f.text}).join("")},ko.prototype.serialize=function(){for(var f=["format"],y=0,T=this.sections;y=0&&f<=255&&typeof y=="number"&&y>=0&&y<=255&&typeof T=="number"&&T>=0&&T<=255?W===void 0||typeof W=="number"&&W>=0&&W<=1?null:"Invalid rgba value ["+[f,y,T,W].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof W=="number"?[f,y,T,W]:[f,y,T]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function uo(f){if(f===null||typeof f=="string"||typeof f=="boolean"||typeof f=="number"||f instanceof _n||f instanceof Br||f instanceof ko||f instanceof vs)return!0;if(Array.isArray(f)){for(var y=0,T=f;y2){var qe=f[1];if(typeof qe!="string"||!(qe in eo)||qe==="object")return y.error('The item type argument of "array" must be one of string, number, boolean',1);he=eo[qe],W++}else he=Bi;if(f.length>3){if(f[2]!==null&&(typeof f[2]!="number"||f[2]<0||f[2]!==Math.floor(f[2])))return y.error('The length argument to "array" must be a positive integer literal',2);Le=f[2],W++}T=rs(he,Le)}else T=eo[re];for(var Ut=[];W1)&&y.push(W)}}return y.concat(this.args.map(function(re){return re.serialize()}))};var hs=function(f){this.type=Xr,this.sections=f};hs.parse=function(f,y){if(f.length<2)return y.error("Expected at least one argument.");var T=f[1];if(!Array.isArray(T)&&typeof T=="object")return y.error("First argument must be an image or text section.");for(var W=[],re=!1,he=1;he<=f.length-1;++he){var Le=f[he];if(re&&typeof Le=="object"&&!Array.isArray(Le)){re=!1;var qe=null;if(Le["font-scale"]&&!(qe=y.parse(Le["font-scale"],1,vi)))return null;var Ut=null;if(Le["text-font"]&&!(Ut=y.parse(Le["text-font"],1,rs(Hr))))return null;var rn=null;if(Le["text-color"]&&!(rn=y.parse(Le["text-color"],1,gi)))return null;var Qn=W[W.length-1];Qn.scale=qe,Qn.font=Ut,Qn.textColor=rn}else{var br=y.parse(f[he],1,Bi);if(!br)return null;var Ci=br.type.kind;if(Ci!=="string"&&Ci!=="value"&&Ci!=="null"&&Ci!=="resolvedImage")return y.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");re=!0,W.push({content:br,scale:null,font:null,textColor:null})}}return new hs(W)},hs.prototype.evaluate=function(f){return new ko(this.sections.map(function(y){var T=y.content.evaluate(f);return ca(T)===Qi?new es("",T,null,null,null):new es(ll(T),null,y.scale?y.scale.evaluate(f):null,y.font?y.font.evaluate(f).join(","):null,y.textColor?y.textColor.evaluate(f):null)}))},hs.prototype.eachChild=function(f){for(var y=0,T=this.sections;y-1),T},Wn.prototype.eachChild=function(f){f(this.input)},Wn.prototype.outputDefined=function(){return!1},Wn.prototype.serialize=function(){return["image",this.input.serialize()]};var yo={"to-boolean":di,"to-color":gi,"to-number":vi,"to-string":Hr},Qo=function(f,y){this.type=f,this.args=y};Qo.parse=function(f,y){if(f.length<2)return y.error("Expected at least one argument.");var T=f[0];if((T==="to-boolean"||T==="to-string")&&f.length!==2)return y.error("Expected one argument.");for(var W=yo[T],re=[],he=1;he4?"Invalid rbga value "+JSON.stringify(y)+": expected an array containing either three or four numeric values.":Ba(y[0],y[1],y[2],y[3])))return new _n(y[0]/255,y[1]/255,y[2]/255,y[3])}throw new Li(T||"Could not parse color from value '"+(typeof y=="string"?y:String(JSON.stringify(y)))+"'")}if(this.type.kind==="number"){for(var Le=null,qe=0,Ut=this.args;qe=y[2]||f[1]<=y[1]||f[3]>=y[3])}function ut(f,y){var T=(180+f[0])/360,W=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+f[1]*Math.PI/360)))/360,re=Math.pow(2,y.z);return[Math.round(T*re*8192),Math.round(W*re*8192)]}function ht(f,y,T){return y[1]>f[1]!=T[1]>f[1]&&f[0]<(T[0]-y[0])*(f[1]-y[1])/(T[1]-y[1])+y[0]}function Ue(f,y){for(var T,W,re,he,Le,qe,Ut,rn=!1,Qn=0,br=y.length;Qn0&&qe<0||Le<0&&qe>0}function ln(f,y,T){for(var W=0,re=T;WT[2]){var re=.5*W,he=f[0]-T[0]>re?-W:T[0]-f[0]>re?W:0;he===0&&(he=f[0]-T[2]>re?-W:T[2]-f[0]>re?W:0),f[0]+=he}Gr(y,f)}function Us(f,y,T,W){for(var re=8192*Math.pow(2,W.z),he=[8192*W.x,8192*W.y],Le=[],qe=0,Ut=f;qe=0)return!1;var T=!0;return f.eachChild(function(W){T&&!Ps(W,y)&&(T=!1)}),T}Rs.parse=function(f,y){if(f.length!==2)return y.error("'within' expression requires exactly one argument, but found "+(f.length-1)+" instead.");if(uo(f[1])){var T=f[1];if(T.type==="FeatureCollection")for(var W=0;Wy))throw new Li("Input is not a number.");he=Le-1}return 0}Ka.prototype.parse=function(f,y,T,W,re){return re===void 0&&(re={}),y?this.concat(y,T,W)._parse(f,re):this._parse(f,re)},Ka.prototype._parse=function(f,y){function T(rn,Qn,br){return br==="assert"?new Eo(Qn,[rn]):br==="coerce"?new Qo(Qn,[rn]):rn}if(f!==null&&typeof f!="string"&&typeof f!="boolean"&&typeof f!="number"||(f=["literal",f]),Array.isArray(f)){if(f.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var W=f[0];if(typeof W!="string")return this.error("Expression name must be a string, but found "+typeof W+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var re=this.registry[W];if(re){var he=re.parse(f,this);if(!he)return null;if(this.expectedType){var Le=this.expectedType,qe=he.type;if(Le.kind!=="string"&&Le.kind!=="number"&&Le.kind!=="boolean"&&Le.kind!=="object"&&Le.kind!=="array"||qe.kind!=="value")if(Le.kind!=="color"&&Le.kind!=="formatted"&&Le.kind!=="resolvedImage"||qe.kind!=="value"&&qe.kind!=="string"){if(this.checkSubtype(Le,qe))return null}else he=T(he,Le,y.typeAnnotation||"coerce");else he=T(he,Le,y.typeAnnotation||"assert")}if(!(he instanceof Ti)&&he.type.kind!=="resolvedImage"&&function rn(Qn){if(Qn instanceof ua)return rn(Qn.boundExpression);if(Qn instanceof Yn&&Qn.name==="error"||Qn instanceof kr||Qn instanceof Rs)return!1;var br=Qn instanceof Qo||Qn instanceof Eo,Ci=!0;return Qn.eachChild(function(Ii){Ci=br?Ci&&rn(Ii):Ci&&Ii instanceof Ti}),!!Ci&&Ns(Qn)&&Ps(Qn,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(he)){var Ut=new Ko;try{he=new Ti(he.type,he.evaluate(Ut))}catch(rn){return this.error(rn.message),null}}return he}return this.error('Unknown expression "'+W+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(f===void 0?"'undefined' value invalid. Use null instead.":typeof f=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof f+" instead.")},Ka.prototype.concat=function(f,y,T){var W=typeof f=="number"?this.path.concat(f):this.path,re=T?this.scope.concat(T):this.scope;return new Ka(this.registry,W,y||null,re,this.errors)},Ka.prototype.error=function(f){for(var y=[],T=arguments.length-1;T-- >0;)y[T]=arguments[T+1];var W=""+this.key+y.map(function(re){return"["+re+"]"}).join("");this.errors.push(new Xn(W,f))},Ka.prototype.checkSubtype=function(f,y){var T=Kr(f,y);return T&&this.error(T),T};var Gl=function(f,y,T){this.type=f,this.input=y,this.labels=[],this.outputs=[];for(var W=0,re=T;W=Le)return y.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Ut);var Qn=y.parse(qe,rn,re);if(!Qn)return null;re=re||Qn.type,W.push([Le,Qn])}return new Gl(re,T,W)},Gl.prototype.evaluate=function(f){var y=this.labels,T=this.outputs;if(y.length===1)return T[0].evaluate(f);var W=this.input.evaluate(f);if(W<=y[0])return T[0].evaluate(f);var re=y.length;return W>=y[re-1]?T[re-1].evaluate(f):T[Hl(y,W)].evaluate(f)},Gl.prototype.eachChild=function(f){f(this.input);for(var y=0,T=this.outputs;y0&&f.push(this.labels[y]),f.push(this.outputs[y].serialize());return f};var Hs=Object.freeze({__proto__:null,number:fs,color:function(f,y,T){return new _n(fs(f.r,y.r,T),fs(f.g,y.g,T),fs(f.b,y.b,T),fs(f.a,y.a,T))},array:function(f,y,T){return f.map(function(W,re){return fs(W,y[re],T)})}}),dl=6/29*3*(6/29),Xo=Math.PI/180,Mi=180/Math.PI;function Yo(f){return f>.008856451679035631?Math.pow(f,1/3):f/dl+4/29}function Os(f){return f>6/29?f*f*f:dl*(f-4/29)}function Cs(f){return 255*(f<=.0031308?12.92*f:1.055*Math.pow(f,1/2.4)-.055)}function xa(f){return(f/=255)<=.04045?f/12.92:Math.pow((f+.055)/1.055,2.4)}function Xu(f){var y=xa(f.r),T=xa(f.g),W=xa(f.b),re=Yo((.4124564*y+.3575761*T+.1804375*W)/.95047),he=Yo((.2126729*y+.7151522*T+.072175*W)/1);return{l:116*he-16,a:500*(re-he),b:200*(he-Yo((.0193339*y+.119192*T+.9503041*W)/1.08883)),alpha:f.a}}function gc(f){var y=(f.l+16)/116,T=isNaN(f.a)?y:y+f.a/500,W=isNaN(f.b)?y:y-f.b/200;return y=1*Os(y),T=.95047*Os(T),W=1.08883*Os(W),new _n(Cs(3.2404542*T-1.5371385*y-.4985314*W),Cs(-.969266*T+1.8760108*y+.041556*W),Cs(.0556434*T-.2040259*y+1.0572252*W),f.alpha)}function Zu(f,y,T){var W=y-f;return f+T*(W>180||W<-180?W-360*Math.round(W/360):W)}var Cd={forward:Xu,reverse:gc,interpolate:function(f,y,T){return{l:fs(f.l,y.l,T),a:fs(f.a,y.a,T),b:fs(f.b,y.b,T),alpha:fs(f.alpha,y.alpha,T)}}},ad={forward:function(f){var y=Xu(f),T=y.l,W=y.a,re=y.b,he=Math.atan2(re,W)*Mi;return{h:he<0?he+360:he,c:Math.sqrt(W*W+re*re),l:T,alpha:f.a}},reverse:function(f){var y=f.h*Xo,T=f.c;return gc({l:f.l,a:Math.cos(y)*T,b:Math.sin(y)*T,alpha:f.alpha})},interpolate:function(f,y,T){return{h:Zu(f.h,y.h,T),c:fs(f.c,y.c,T),l:fs(f.l,y.l,T),alpha:fs(f.alpha,y.alpha,T)}}},gu=Object.freeze({__proto__:null,lab:Cd,hcl:ad}),iu=function(f,y,T,W,re){this.type=f,this.operator=y,this.interpolation=T,this.input=W,this.labels=[],this.outputs=[];for(var he=0,Le=re;he1}))return y.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);W={name:"cubic-bezier",controlPoints:qe}}if(f.length-1<4)return y.error("Expected at least 4 arguments, but found only "+(f.length-1)+".");if((f.length-1)%2!=0)return y.error("Expected an even number of arguments.");if(!(re=y.parse(re,2,vi)))return null;var Ut=[],rn=null;T==="interpolate-hcl"||T==="interpolate-lab"?rn=gi:y.expectedType&&y.expectedType.kind!=="value"&&(rn=y.expectedType);for(var Qn=0;Qn=br)return y.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Ii);var Io=y.parse(Ci,Po,rn);if(!Io)return null;rn=rn||Io.type,Ut.push([br,Io])}return rn.kind==="number"||rn.kind==="color"||rn.kind==="array"&&rn.itemType.kind==="number"&&typeof rn.N=="number"?new iu(rn,T,W,re,Ut):y.error("Type "+Ur(rn)+" is not interpolatable.")},iu.prototype.evaluate=function(f){var y=this.labels,T=this.outputs;if(y.length===1)return T[0].evaluate(f);var W=this.input.evaluate(f);if(W<=y[0])return T[0].evaluate(f);var re=y.length;if(W>=y[re-1])return T[re-1].evaluate(f);var he=Hl(y,W),Le=iu.interpolationFactor(this.interpolation,W,y[he],y[he+1]),qe=T[he].evaluate(f),Ut=T[he+1].evaluate(f);return this.operator==="interpolate"?Hs[this.type.kind.toLowerCase()](qe,Ut,Le):this.operator==="interpolate-hcl"?ad.reverse(ad.interpolate(ad.forward(qe),ad.forward(Ut),Le)):Cd.reverse(Cd.interpolate(Cd.forward(qe),Cd.forward(Ut),Le))},iu.prototype.eachChild=function(f){f(this.input);for(var y=0,T=this.outputs;y=T.length)throw new Li("Array index out of bounds: "+y+" > "+(T.length-1)+".");if(y!==Math.floor(y))throw new Li("Array index must be an integer, but found "+y+" instead.");return T[y]},Un.prototype.eachChild=function(f){f(this.index),f(this.input)},Un.prototype.outputDefined=function(){return!1},Un.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var jr=function(f,y){this.type=di,this.needle=f,this.haystack=y};jr.parse=function(f,y){if(f.length!==3)return y.error("Expected 2 arguments, but found "+(f.length-1)+" instead.");var T=y.parse(f[1],1,Bi),W=y.parse(f[2],2,Bi);return T&&W?ri(T.type,[di,Hr,vi,qr,Bi])?new jr(T,W):y.error("Expected first argument to be of type boolean, string, number or null, but found "+Ur(T.type)+" instead"):null},jr.prototype.evaluate=function(f){var y=this.needle.evaluate(f),T=this.haystack.evaluate(f);if(!T)return!1;if(!is(y,["boolean","string","number","null"]))throw new Li("Expected first argument to be of type boolean, string, number or null, but found "+Ur(ca(y))+" instead.");if(!is(T,["string","array"]))throw new Li("Expected second argument to be of type array or string, but found "+Ur(ca(T))+" instead.");return T.indexOf(y)>=0},jr.prototype.eachChild=function(f){f(this.needle),f(this.haystack)},jr.prototype.outputDefined=function(){return!0},jr.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Qr=function(f,y,T){this.type=vi,this.needle=f,this.haystack=y,this.fromIndex=T};Qr.parse=function(f,y){if(f.length<=2||f.length>=5)return y.error("Expected 3 or 4 arguments, but found "+(f.length-1)+" instead.");var T=y.parse(f[1],1,Bi),W=y.parse(f[2],2,Bi);if(!T||!W)return null;if(!ri(T.type,[di,Hr,vi,qr,Bi]))return y.error("Expected first argument to be of type boolean, string, number or null, but found "+Ur(T.type)+" instead");if(f.length===4){var re=y.parse(f[3],3,vi);return re?new Qr(T,W,re):null}return new Qr(T,W)},Qr.prototype.evaluate=function(f){var y=this.needle.evaluate(f),T=this.haystack.evaluate(f);if(!is(y,["boolean","string","number","null"]))throw new Li("Expected first argument to be of type boolean, string, number or null, but found "+Ur(ca(y))+" instead.");if(!is(T,["string","array"]))throw new Li("Expected second argument to be of type array or string, but found "+Ur(ca(T))+" instead.");if(this.fromIndex){var W=this.fromIndex.evaluate(f);return T.indexOf(y,W)}return T.indexOf(y)},Qr.prototype.eachChild=function(f){f(this.needle),f(this.haystack),this.fromIndex&&f(this.fromIndex)},Qr.prototype.outputDefined=function(){return!1},Qr.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var f=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),f]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var _o=function(f,y,T,W,re,he){this.inputType=f,this.type=y,this.input=T,this.cases=W,this.outputs=re,this.otherwise=he};_o.parse=function(f,y){if(f.length<5)return y.error("Expected at least 4 arguments, but found only "+(f.length-1)+".");if(f.length%2!=1)return y.error("Expected an even number of arguments.");var T,W;y.expectedType&&y.expectedType.kind!=="value"&&(W=y.expectedType);for(var re={},he=[],Le=2;LeNumber.MAX_SAFE_INTEGER)return rn.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof Ci=="number"&&Math.floor(Ci)!==Ci)return rn.error("Numeric branch labels must be integer values.");if(T){if(rn.checkSubtype(T,ca(Ci)))return null}else T=ca(Ci);if(re[String(Ci)]!==void 0)return rn.error("Branch labels must be unique.");re[String(Ci)]=he.length}var Ii=y.parse(Ut,Le,W);if(!Ii)return null;W=W||Ii.type,he.push(Ii)}var Po=y.parse(f[1],1,Bi);if(!Po)return null;var Io=y.parse(f[f.length-1],f.length-1,W);return Io?Po.type.kind!=="value"&&y.concat(1).checkSubtype(T,Po.type)?null:new _o(T,W,Po,re,he,Io):null},_o.prototype.evaluate=function(f){var y=this.input.evaluate(f);return(ca(y)===this.inputType&&this.outputs[this.cases[y]]||this.otherwise).evaluate(f)},_o.prototype.eachChild=function(f){f(this.input),this.outputs.forEach(f),f(this.otherwise)},_o.prototype.outputDefined=function(){return this.outputs.every(function(f){return f.outputDefined()})&&this.otherwise.outputDefined()},_o.prototype.serialize=function(){for(var f=this,y=["match",this.input.serialize()],T=[],W={},re=0,he=Object.keys(this.cases).sort();re=5)return y.error("Expected 3 or 4 arguments, but found "+(f.length-1)+" instead.");var T=y.parse(f[1],1,Bi),W=y.parse(f[2],2,vi);if(!T||!W)return null;if(!ri(T.type,[rs(Bi),Hr,Bi]))return y.error("Expected first argument to be of type array or string, but found "+Ur(T.type)+" instead");if(f.length===4){var re=y.parse(f[3],3,vi);return re?new ns(T.type,T,W,re):null}return new ns(T.type,T,W)},ns.prototype.evaluate=function(f){var y=this.input.evaluate(f),T=this.beginIndex.evaluate(f);if(!is(y,["string","array"]))throw new Li("Expected first argument to be of type array or string, but found "+Ur(ca(y))+" instead.");if(this.endIndex){var W=this.endIndex.evaluate(f);return y.slice(T,W)}return y.slice(T)},ns.prototype.eachChild=function(f){f(this.input),f(this.beginIndex),this.endIndex&&f(this.endIndex)},ns.prototype.outputDefined=function(){return!1},ns.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var f=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),f]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var ea=Va("==",function(f,y,T){return y===T},ga),Xl=Va("!=",function(f,y,T){return y!==T},function(f,y,T,W){return!ga(0,y,T,W)}),_a=Va("<",function(f,y,T){return y",function(f,y,T){return y>T},function(f,y,T,W){return W.compare(y,T)>0}),Ya=Va("<=",function(f,y,T){return y<=T},function(f,y,T,W){return W.compare(y,T)<=0}),cu=Va(">=",function(f,y,T){return y>=T},function(f,y,T,W){return W.compare(y,T)>=0}),jl=function(f,y,T,W,re){this.type=Hr,this.number=f,this.locale=y,this.currency=T,this.minFractionDigits=W,this.maxFractionDigits=re};jl.parse=function(f,y){if(f.length!==3)return y.error("Expected two arguments.");var T=y.parse(f[1],1,vi);if(!T)return null;var W=f[2];if(typeof W!="object"||Array.isArray(W))return y.error("NumberFormat options argument must be an object.");var re=null;if(W.locale&&!(re=y.parse(W.locale,1,Hr)))return null;var he=null;if(W.currency&&!(he=y.parse(W.currency,1,Hr)))return null;var Le=null;if(W["min-fraction-digits"]&&!(Le=y.parse(W["min-fraction-digits"],1,vi)))return null;var qe=null;return W["max-fraction-digits"]&&!(qe=y.parse(W["max-fraction-digits"],1,vi))?null:new jl(T,re,he,Le,qe)},jl.prototype.evaluate=function(f){return new Intl.NumberFormat(this.locale?this.locale.evaluate(f):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(f):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(f):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(f):void 0}).format(this.number.evaluate(f))},jl.prototype.eachChild=function(f){f(this.number),this.locale&&f(this.locale),this.currency&&f(this.currency),this.minFractionDigits&&f(this.minFractionDigits),this.maxFractionDigits&&f(this.maxFractionDigits)},jl.prototype.outputDefined=function(){return!1},jl.prototype.serialize=function(){var f={};return this.locale&&(f.locale=this.locale.serialize()),this.currency&&(f.currency=this.currency.serialize()),this.minFractionDigits&&(f["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(f["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),f]};var Mu=function(f){this.type=vi,this.input=f};Mu.parse=function(f,y){if(f.length!==2)return y.error("Expected 1 argument, but found "+(f.length-1)+" instead.");var T=y.parse(f[1],1);return T?T.type.kind!=="array"&&T.type.kind!=="string"&&T.type.kind!=="value"?y.error("Expected argument of type string or array, but found "+Ur(T.type)+" instead."):new Mu(T):null},Mu.prototype.evaluate=function(f){var y=this.input.evaluate(f);if(typeof y=="string"||Array.isArray(y))return y.length;throw new Li("Expected value to be of type string or array, but found "+Ur(ca(y))+" instead.")},Mu.prototype.eachChild=function(f){f(this.input)},Mu.prototype.outputDefined=function(){return!1},Mu.prototype.serialize=function(){var f=["length"];return this.eachChild(function(y){f.push(y.serialize())}),f};var Bl={"==":ea,"!=":Xl,">":Ta,"<":_a,">=":cu,"<=":Ya,array:Eo,at:Un,boolean:Eo,case:us,coalesce:Si,collator:kr,format:hs,image:Wn,in:jr,"index-of":Qr,interpolate:iu,"interpolate-hcl":iu,"interpolate-lab":iu,length:Mu,let:tr,literal:Ti,match:_o,number:Eo,"number-format":jl,object:Eo,slice:ns,step:Gl,string:Eo,"to-boolean":Qo,"to-color":Qo,"to-number":Qo,"to-string":Qo,var:ua,within:Rs};function wl(f,y){var T=y[0],W=y[1],re=y[2],he=y[3];T=T.evaluate(f),W=W.evaluate(f),re=re.evaluate(f);var Le=he?he.evaluate(f):1,qe=Ba(T,W,re,Le);if(qe)throw new Li(qe);return new _n(T/255*Le,W/255*Le,re/255*Le,Le)}function Tn(f,y){return f in y}function nc(f,y){var T=y[f];return T===void 0?null:T}function Iu(f){return{type:f}}function Pc(f){return{result:"success",value:f}}function Wc(f){return{result:"error",value:f}}function cd(f){return f["property-type"]==="data-driven"||f["property-type"]==="cross-faded-data-driven"}function Fc(f){return!!f.expression&&f.expression.parameters.indexOf("zoom")>-1}function vh(f){return!!f.expression&&f.expression.interpolated}function Td(f){return f instanceof Number?"number":f instanceof String?"string":f instanceof Boolean?"boolean":Array.isArray(f)?"array":f===null?"null":typeof f}function Gh(f){return typeof f=="object"&&f!==null&&!Array.isArray(f)}function yh(f){return f}function kc(f,y,T){return f!==void 0?f:y!==void 0?y:T!==void 0?T:void 0}function Kh(f,y,T,W,re){return kc(typeof T===re?W[T]:void 0,f.default,y.default)}function $f(f,y,T){if(Td(T)!=="number")return kc(f.default,y.default);var W=f.stops.length;if(W===1||T<=f.stops[0][0])return f.stops[0][1];if(T>=f.stops[W-1][0])return f.stops[W-1][1];var re=Hl(f.stops.map(function(he){return he[0]}),T);return f.stops[re][1]}function Vf(f,y,T){var W=f.base!==void 0?f.base:1;if(Td(T)!=="number")return kc(f.default,y.default);var re=f.stops.length;if(re===1||T<=f.stops[0][0])return f.stops[0][1];if(T>=f.stops[re-1][0])return f.stops[re-1][1];var he=Hl(f.stops.map(function(br){return br[0]}),T),Le=function(br,Ci,Ii,Po){var Io=Po-Ii,Zo=br-Ii;return Io===0?0:Ci===1?Zo/Io:(Math.pow(Ci,Zo)-1)/(Math.pow(Ci,Io)-1)}(T,W,f.stops[he][0],f.stops[he+1][0]),qe=f.stops[he][1],Ut=f.stops[he+1][1],rn=Hs[y.type]||yh;if(f.colorSpace&&f.colorSpace!=="rgb"){var Qn=gu[f.colorSpace];rn=function(br,Ci){return Qn.reverse(Qn.interpolate(Qn.forward(br),Qn.forward(Ci),Le))}}return typeof qe.evaluate=="function"?{evaluate:function(){for(var br=[],Ci=arguments.length;Ci--;)br[Ci]=arguments[Ci];var Ii=qe.evaluate.apply(void 0,br),Po=Ut.evaluate.apply(void 0,br);if(Ii!==void 0&&Po!==void 0)return rn(Ii,Po,Le)}}:rn(qe,Ut,Le)}function _h(f,y,T){return y.type==="color"?T=_n.parse(T):y.type==="formatted"?T=ko.fromString(T.toString()):y.type==="resolvedImage"?T=vs.fromString(T.toString()):Td(T)===y.type||y.type==="enum"&&y.values[T]||(T=void 0),kc(T,f.default,y.default)}Yn.register(Bl,{error:[{kind:"error"},[Hr],function(f,y){throw new Li(y[0].evaluate(f))}],typeof:[Hr,[Bi],function(f,y){return Ur(ca(y[0].evaluate(f)))}],"to-rgba":[rs(vi,4),[gi],function(f,y){return y[0].evaluate(f).toArray()}],rgb:[gi,[vi,vi,vi],wl],rgba:[gi,[vi,vi,vi,vi],wl],has:{type:di,overloads:[[[Hr],function(f,y){return Tn(y[0].evaluate(f),f.properties())}],[[Hr,mi],function(f,y){var T=y[1];return Tn(y[0].evaluate(f),T.evaluate(f))}]]},get:{type:Bi,overloads:[[[Hr],function(f,y){return nc(y[0].evaluate(f),f.properties())}],[[Hr,mi],function(f,y){var T=y[1];return nc(y[0].evaluate(f),T.evaluate(f))}]]},"feature-state":[Bi,[Hr],function(f,y){return nc(y[0].evaluate(f),f.featureState||{})}],properties:[mi,[],function(f){return f.properties()}],"geometry-type":[Hr,[],function(f){return f.geometryType()}],id:[Bi,[],function(f){return f.id()}],zoom:[vi,[],function(f){return f.globals.zoom}],"heatmap-density":[vi,[],function(f){return f.globals.heatmapDensity||0}],"line-progress":[vi,[],function(f){return f.globals.lineProgress||0}],accumulated:[Bi,[],function(f){return f.globals.accumulated===void 0?null:f.globals.accumulated}],"+":[vi,Iu(vi),function(f,y){for(var T=0,W=0,re=y;W":[di,[Hr,Bi],function(f,y){var T=y[0],W=y[1],re=f.properties()[T.value],he=W.value;return typeof re==typeof he&&re>he}],"filter-id->":[di,[Bi],function(f,y){var T=y[0],W=f.id(),re=T.value;return typeof W==typeof re&&W>re}],"filter-<=":[di,[Hr,Bi],function(f,y){var T=y[0],W=y[1],re=f.properties()[T.value],he=W.value;return typeof re==typeof he&&re<=he}],"filter-id-<=":[di,[Bi],function(f,y){var T=y[0],W=f.id(),re=T.value;return typeof W==typeof re&&W<=re}],"filter->=":[di,[Hr,Bi],function(f,y){var T=y[0],W=y[1],re=f.properties()[T.value],he=W.value;return typeof re==typeof he&&re>=he}],"filter-id->=":[di,[Bi],function(f,y){var T=y[0],W=f.id(),re=T.value;return typeof W==typeof re&&W>=re}],"filter-has":[di,[Bi],function(f,y){return y[0].value in f.properties()}],"filter-has-id":[di,[],function(f){return f.id()!==null&&f.id()!==void 0}],"filter-type-in":[di,[rs(Hr)],function(f,y){return y[0].value.indexOf(f.geometryType())>=0}],"filter-id-in":[di,[rs(Bi)],function(f,y){return y[0].value.indexOf(f.id())>=0}],"filter-in-small":[di,[Hr,rs(Bi)],function(f,y){var T=y[0];return y[1].value.indexOf(f.properties()[T.value])>=0}],"filter-in-large":[di,[Hr,rs(Bi)],function(f,y){var T=y[0],W=y[1];return function(re,he,Le,qe){for(;Le<=qe;){var Ut=Le+qe>>1;if(he[Ut]===re)return!0;he[Ut]>re?qe=Ut-1:Le=Ut+1}return!1}(f.properties()[T.value],W.value,0,W.value.length-1)}],all:{type:di,overloads:[[[di,di],function(f,y){var T=y[1];return y[0].evaluate(f)&&T.evaluate(f)}],[Iu(di),function(f,y){for(var T=0,W=y;T0&&typeof f[0]=="string"&&f[0]in Bl}function Wd(f,y){var T=new Ka(Bl,[],y?function(re){var he={color:gi,string:Hr,number:vi,enum:Hr,boolean:di,formatted:Xr,resolvedImage:Qi};return re.type==="array"?rs(he[re.value]||Bi,re.length):he[re.type]}(y):void 0),W=T.parse(f,void 0,void 0,void 0,y&&y.type==="string"?{typeAnnotation:"coerce"}:void 0);return W?Pc(new Qh(W,y)):Wc(T.errors)}Qh.prototype.evaluateWithoutErrorHandling=function(f,y,T,W,re,he){return this._evaluator.globals=f,this._evaluator.feature=y,this._evaluator.featureState=T,this._evaluator.canonical=W,this._evaluator.availableImages=re||null,this._evaluator.formattedSection=he,this.expression.evaluate(this._evaluator)},Qh.prototype.evaluate=function(f,y,T,W,re,he){this._evaluator.globals=f,this._evaluator.feature=y||null,this._evaluator.featureState=T||null,this._evaluator.canonical=W,this._evaluator.availableImages=re||null,this._evaluator.formattedSection=he||null;try{var Le=this.expression.evaluate(this._evaluator);if(Le==null||typeof Le=="number"&&Le!=Le)return this._defaultValue;if(this._enumValues&&!(Le in this._enumValues))throw new Li("Expected value to be one of "+Object.keys(this._enumValues).map(function(qe){return JSON.stringify(qe)}).join(", ")+", but found "+JSON.stringify(Le)+" instead.");return Le}catch(qe){return this._warningHistory[qe.message]||(this._warningHistory[qe.message]=!0,typeof console!="undefined"&&console.warn(qe.message)),this._defaultValue}};var zs=function(f,y){this.kind=f,this._styleExpression=y,this.isStateDependent=f!=="constant"&&!Lo(y.expression)};zs.prototype.evaluateWithoutErrorHandling=function(f,y,T,W,re,he){return this._styleExpression.evaluateWithoutErrorHandling(f,y,T,W,re,he)},zs.prototype.evaluate=function(f,y,T,W,re,he){return this._styleExpression.evaluate(f,y,T,W,re,he)};var $a=function(f,y,T,W){this.kind=f,this.zoomStops=T,this._styleExpression=y,this.isStateDependent=f!=="camera"&&!Lo(y.expression),this.interpolationType=W};function Ja(f,y){if((f=Wd(f,y)).result==="error")return f;var T=f.value.expression,W=Ns(T);if(!W&&!cd(y))return Wc([new Xn("","data expressions not supported")]);var re=Ps(T,["zoom"]);if(!re&&!Fc(y))return Wc([new Xn("","zoom expressions not supported")]);var he=function Le(qe){var Ut=null;if(qe instanceof tr)Ut=Le(qe.result);else if(qe instanceof Si)for(var rn=0,Qn=qe.args;rnW.maximum?[new Cn(y,T,T+" is greater than the maximum value "+W.maximum)]:[]}function cc(f){var y,T,W,re=f.valueSpec,he=ji(f.value.type),Le={},qe=he!=="categorical"&&f.value.property===void 0,Ut=!qe,rn=Td(f.value.stops)==="array"&&Td(f.value.stops[0])==="array"&&Td(f.value.stops[0][0])==="object",Qn=au({key:f.key,value:f.value,valueSpec:f.styleSpec.function,style:f.style,styleSpec:f.styleSpec,objectElementValidators:{stops:function(Ii){if(he==="identity")return[new Cn(Ii.key,Ii.value,'identity function may not have a "stops" property')];var Po=[],Io=Ii.value;return Po=Po.concat(ac({key:Ii.key,value:Io,valueSpec:Ii.valueSpec,style:Ii.style,styleSpec:Ii.styleSpec,arrayElementValidator:br})),Td(Io)==="array"&&Io.length===0&&Po.push(new Cn(Ii.key,Io,"array must have at least one stop")),Po},default:function(Ii){return Au({key:Ii.key,value:Ii.value,valueSpec:re,style:Ii.style,styleSpec:Ii.styleSpec})}}});return he==="identity"&&qe&&Qn.push(new Cn(f.key,f.value,'missing required property "property"')),he==="identity"||f.value.stops||Qn.push(new Cn(f.key,f.value,'missing required property "stops"')),he==="exponential"&&f.valueSpec.expression&&!vh(f.valueSpec)&&Qn.push(new Cn(f.key,f.value,"exponential functions not supported")),f.styleSpec.$version>=8&&(Ut&&!cd(f.valueSpec)?Qn.push(new Cn(f.key,f.value,"property functions not supported")):qe&&!Fc(f.valueSpec)&&Qn.push(new Cn(f.key,f.value,"zoom functions not supported"))),he!=="categorical"&&!rn||f.value.property!==void 0||Qn.push(new Cn(f.key,f.value,'"property" property is required')),Qn;function br(Ii){var Po=[],Io=Ii.value,Zo=Ii.key;if(Td(Io)!=="array")return[new Cn(Zo,Io,"array expected, "+Td(Io)+" found")];if(Io.length!==2)return[new Cn(Zo,Io,"array length 2 expected, length "+Io.length+" found")];if(rn){if(Td(Io[0])!=="object")return[new Cn(Zo,Io,"object expected, "+Td(Io[0])+" found")];if(Io[0].zoom===void 0)return[new Cn(Zo,Io,"object stop key must have zoom")];if(Io[0].value===void 0)return[new Cn(Zo,Io,"object stop key must have value")];if(W&&W>ji(Io[0].zoom))return[new Cn(Zo,Io[0].zoom,"stop zoom values must appear in ascending order")];ji(Io[0].zoom)!==W&&(W=ji(Io[0].zoom),T=void 0,Le={}),Po=Po.concat(au({key:Zo+"[0]",value:Io[0],valueSpec:{zoom:{}},style:Ii.style,styleSpec:Ii.styleSpec,objectElementValidators:{zoom:$u,value:Ci}}))}else Po=Po.concat(Ci({key:Zo+"[0]",value:Io[0],valueSpec:{},style:Ii.style,styleSpec:Ii.styleSpec},Io));return Mh(An(Io[1]))?Po.concat([new Cn(Zo+"[1]",Io[1],"expressions are not allowed in function stops.")]):Po.concat(Au({key:Zo+"[1]",value:Io[1],valueSpec:re,style:Ii.style,styleSpec:Ii.styleSpec}))}function Ci(Ii,Po){var Io=Td(Ii.value),Zo=ji(Ii.value),Ro=Ii.value!==null?Ii.value:Po;if(y){if(Io!==y)return[new Cn(Ii.key,Ro,Io+" stop domain type must match previous stop domain type "+y)]}else y=Io;if(Io!=="number"&&Io!=="string"&&Io!=="boolean")return[new Cn(Ii.key,Ro,"stop domain value must be a number, string, or boolean")];if(Io!=="number"&&he!=="categorical"){var lo="number expected, "+Io+" found";return cd(re)&&he===void 0&&(lo+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Cn(Ii.key,Ro,lo)]}return he!=="categorical"||Io!=="number"||isFinite(Zo)&&Math.floor(Zo)===Zo?he!=="categorical"&&Io==="number"&&T!==void 0&&Zo=2&&f[1]!=="$id"&&f[1]!=="$type";case"in":return f.length>=3&&(typeof f[1]!="string"||Array.isArray(f[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return f.length!==3||Array.isArray(f[1])||Array.isArray(f[2]);case"any":case"all":for(var y=0,T=f.slice(1);yy?1:0}function Bh(f){if(!f)return!0;var y,T=f[0];return f.length<=1?T!=="any":T==="=="?Gd(f[1],f[2],"=="):T==="!="?bd(Gd(f[1],f[2],"==")):T==="<"||T===">"||T==="<="||T===">="?Gd(f[1],f[2],T):T==="any"?(y=f.slice(1),["any"].concat(y.map(Bh))):T==="all"?["all"].concat(f.slice(1).map(Bh)):T==="none"?["all"].concat(f.slice(1).map(Bh).map(bd)):T==="in"?Ch(f[1],f.slice(2)):T==="!in"?bd(Ch(f[1],f.slice(2))):T==="has"?Ad(f[1]):T==="!has"?bd(Ad(f[1])):T!=="within"||f}function Gd(f,y,T){switch(f){case"$type":return["filter-type-"+T,y];case"$id":return["filter-id-"+T,y];default:return["filter-"+T,f,y]}}function Ch(f,y){if(y.length===0)return!1;switch(f){case"$type":return["filter-type-in",["literal",y]];case"$id":return["filter-id-in",["literal",y]];default:return y.length>200&&!y.some(function(T){return typeof T!=typeof y[0]})?["filter-in-large",f,["literal",y.sort(Qd)]]:["filter-in-small",f,["literal",y]]}}function Ad(f){switch(f){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",f]}}function bd(f){return["!",f]}function su(f){return Ou(An(f.value))?Hu(Mr({},f,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function y(T){var W=T.value,re=T.key;if(Td(W)!=="array")return[new Cn(re,W,"array expected, "+Td(W)+" found")];var he,Le=T.styleSpec,qe=[];if(W.length<1)return[new Cn(re,W,"filter array must have at least 1 element")];switch(qe=qe.concat(Fl({key:re+"[0]",value:W[0],valueSpec:Le.filter_operator,style:T.style,styleSpec:T.styleSpec})),ji(W[0])){case"<":case"<=":case">":case">=":W.length>=2&&ji(W[1])==="$type"&&qe.push(new Cn(re,W,'"$type" cannot be use with operator "'+W[0]+'"'));case"==":case"!=":W.length!==3&&qe.push(new Cn(re,W,'filter array for operator "'+W[0]+'" must have 3 elements'));case"in":case"!in":W.length>=2&&(he=Td(W[1]))!=="string"&&qe.push(new Cn(re+"[1]",W[1],"string expected, "+he+" found"));for(var Ut=2;Ut=Qn[Ii+0]&&W>=Qn[Ii+1])?(Le[Ci]=!0,he.push(rn[Ci])):Le[Ci]=!1}}},rd.prototype._forEachCell=function(f,y,T,W,re,he,Le,qe){for(var Ut=this._convertToCellCoord(f),rn=this._convertToCellCoord(y),Qn=this._convertToCellCoord(T),br=this._convertToCellCoord(W),Ci=Ut;Ci<=Qn;Ci++)for(var Ii=rn;Ii<=br;Ii++){var Po=this.d*Ii+Ci;if((!qe||qe(this._convertFromCellCoord(Ci),this._convertFromCellCoord(Ii),this._convertFromCellCoord(Ci+1),this._convertFromCellCoord(Ii+1)))&&re.call(this,f,y,T,W,Po,he,Le,qe))return}},rd.prototype._convertFromCellCoord=function(f){return(f-this.padding)/this.scale},rd.prototype._convertToCellCoord=function(f){return Math.max(0,Math.min(this.d-1,Math.floor(f*this.scale)+this.padding))},rd.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var f=this.cells,y=3+this.cells.length+1+1,T=0,W=0;W=0)){var Qn=f[rn];Ut[rn]=qc[qe].shallow.indexOf(rn)>=0?Qn:Cc(Qn,y)}f instanceof Error&&(Ut.message=f.message)}if(Ut.$name)throw new Error("$name property is reserved for worker serialization logic.");return qe!=="Object"&&(Ut.$name=qe),Ut}throw new Error("can't serialize object of type "+typeof f)}function Fi(f){if(f==null||typeof f=="boolean"||typeof f=="number"||typeof f=="string"||f instanceof Boolean||f instanceof Number||f instanceof String||f instanceof Date||f instanceof RegExp||Pl(f)||ms(f)||ArrayBuffer.isView(f)||f instanceof Mf)return f;if(Array.isArray(f))return f.map(Fi);if(typeof f=="object"){var y=f.$name||"Object",T=qc[y].klass;if(!T)throw new Error("can't deserialize unregistered class "+y);if(T.deserialize)return T.deserialize(f);for(var W=Object.create(T.prototype),re=0,he=Object.keys(f);re=0?qe:Fi(qe)}}return W}throw new Error("can't deserialize object of type "+typeof f)}var ug=function(){this.first=!0};ug.prototype.update=function(f,y){var T=Math.floor(f);return this.first?(this.first=!1,this.lastIntegerZoom=T,this.lastIntegerZoomTime=0,this.lastZoom=f,this.lastFloorZoom=T,!0):(this.lastFloorZoom>T?(this.lastIntegerZoom=T+1,this.lastIntegerZoomTime=y):this.lastFloorZoom=128&&f<=255},Arabic:function(f){return f>=1536&&f<=1791},"Arabic Supplement":function(f){return f>=1872&&f<=1919},"Arabic Extended-A":function(f){return f>=2208&&f<=2303},"Hangul Jamo":function(f){return f>=4352&&f<=4607},"Unified Canadian Aboriginal Syllabics":function(f){return f>=5120&&f<=5759},Khmer:function(f){return f>=6016&&f<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(f){return f>=6320&&f<=6399},"General Punctuation":function(f){return f>=8192&&f<=8303},"Letterlike Symbols":function(f){return f>=8448&&f<=8527},"Number Forms":function(f){return f>=8528&&f<=8591},"Miscellaneous Technical":function(f){return f>=8960&&f<=9215},"Control Pictures":function(f){return f>=9216&&f<=9279},"Optical Character Recognition":function(f){return f>=9280&&f<=9311},"Enclosed Alphanumerics":function(f){return f>=9312&&f<=9471},"Geometric Shapes":function(f){return f>=9632&&f<=9727},"Miscellaneous Symbols":function(f){return f>=9728&&f<=9983},"Miscellaneous Symbols and Arrows":function(f){return f>=11008&&f<=11263},"CJK Radicals Supplement":function(f){return f>=11904&&f<=12031},"Kangxi Radicals":function(f){return f>=12032&&f<=12255},"Ideographic Description Characters":function(f){return f>=12272&&f<=12287},"CJK Symbols and Punctuation":function(f){return f>=12288&&f<=12351},Hiragana:function(f){return f>=12352&&f<=12447},Katakana:function(f){return f>=12448&&f<=12543},Bopomofo:function(f){return f>=12544&&f<=12591},"Hangul Compatibility Jamo":function(f){return f>=12592&&f<=12687},Kanbun:function(f){return f>=12688&&f<=12703},"Bopomofo Extended":function(f){return f>=12704&&f<=12735},"CJK Strokes":function(f){return f>=12736&&f<=12783},"Katakana Phonetic Extensions":function(f){return f>=12784&&f<=12799},"Enclosed CJK Letters and Months":function(f){return f>=12800&&f<=13055},"CJK Compatibility":function(f){return f>=13056&&f<=13311},"CJK Unified Ideographs Extension A":function(f){return f>=13312&&f<=19903},"Yijing Hexagram Symbols":function(f){return f>=19904&&f<=19967},"CJK Unified Ideographs":function(f){return f>=19968&&f<=40959},"Yi Syllables":function(f){return f>=40960&&f<=42127},"Yi Radicals":function(f){return f>=42128&&f<=42191},"Hangul Jamo Extended-A":function(f){return f>=43360&&f<=43391},"Hangul Syllables":function(f){return f>=44032&&f<=55215},"Hangul Jamo Extended-B":function(f){return f>=55216&&f<=55295},"Private Use Area":function(f){return f>=57344&&f<=63743},"CJK Compatibility Ideographs":function(f){return f>=63744&&f<=64255},"Arabic Presentation Forms-A":function(f){return f>=64336&&f<=65023},"Vertical Forms":function(f){return f>=65040&&f<=65055},"CJK Compatibility Forms":function(f){return f>=65072&&f<=65103},"Small Form Variants":function(f){return f>=65104&&f<=65135},"Arabic Presentation Forms-B":function(f){return f>=65136&&f<=65279},"Halfwidth and Fullwidth Forms":function(f){return f>=65280&&f<=65519}};function dd(f){for(var y=0,T=f;y=65097&&f<=65103)||uc["CJK Compatibility Ideographs"](f)||uc["CJK Compatibility"](f)||uc["CJK Radicals Supplement"](f)||uc["CJK Strokes"](f)||!(!uc["CJK Symbols and Punctuation"](f)||f>=12296&&f<=12305||f>=12308&&f<=12319||f===12336)||uc["CJK Unified Ideographs Extension A"](f)||uc["CJK Unified Ideographs"](f)||uc["Enclosed CJK Letters and Months"](f)||uc["Hangul Compatibility Jamo"](f)||uc["Hangul Jamo Extended-A"](f)||uc["Hangul Jamo Extended-B"](f)||uc["Hangul Jamo"](f)||uc["Hangul Syllables"](f)||uc.Hiragana(f)||uc["Ideographic Description Characters"](f)||uc.Kanbun(f)||uc["Kangxi Radicals"](f)||uc["Katakana Phonetic Extensions"](f)||uc.Katakana(f)&&f!==12540||!(!uc["Halfwidth and Fullwidth Forms"](f)||f===65288||f===65289||f===65293||f>=65306&&f<=65310||f===65339||f===65341||f===65343||f>=65371&&f<=65503||f===65507||f>=65512&&f<=65519)||!(!uc["Small Form Variants"](f)||f>=65112&&f<=65118||f>=65123&&f<=65126)||uc["Unified Canadian Aboriginal Syllabics"](f)||uc["Unified Canadian Aboriginal Syllabics Extended"](f)||uc["Vertical Forms"](f)||uc["Yijing Hexagram Symbols"](f)||uc["Yi Syllables"](f)||uc["Yi Radicals"](f))))}function Yp(f){return!(Ep(f)||function(y){return!!(uc["Latin-1 Supplement"](y)&&(y===167||y===169||y===174||y===177||y===188||y===189||y===190||y===215||y===247)||uc["General Punctuation"](y)&&(y===8214||y===8224||y===8225||y===8240||y===8241||y===8251||y===8252||y===8258||y===8263||y===8264||y===8265||y===8273)||uc["Letterlike Symbols"](y)||uc["Number Forms"](y)||uc["Miscellaneous Technical"](y)&&(y>=8960&&y<=8967||y>=8972&&y<=8991||y>=8996&&y<=9e3||y===9003||y>=9085&&y<=9114||y>=9150&&y<=9165||y===9167||y>=9169&&y<=9179||y>=9186&&y<=9215)||uc["Control Pictures"](y)&&y!==9251||uc["Optical Character Recognition"](y)||uc["Enclosed Alphanumerics"](y)||uc["Geometric Shapes"](y)||uc["Miscellaneous Symbols"](y)&&!(y>=9754&&y<=9759)||uc["Miscellaneous Symbols and Arrows"](y)&&(y>=11026&&y<=11055||y>=11088&&y<=11097||y>=11192&&y<=11243)||uc["CJK Symbols and Punctuation"](y)||uc.Katakana(y)||uc["Private Use Area"](y)||uc["CJK Compatibility Forms"](y)||uc["Small Form Variants"](y)||uc["Halfwidth and Fullwidth Forms"](y)||y===8734||y===8756||y===8757||y>=9984&&y<=10087||y>=10102&&y<=10131||y===65532||y===65533)}(f))}function kg(f){return f>=1424&&f<=2303||uc["Arabic Presentation Forms-A"](f)||uc["Arabic Presentation Forms-B"](f)}function _f(f,y){return!(!y&&kg(f)||f>=2304&&f<=3583||f>=3840&&f<=4255||uc.Khmer(f))}function bp(f){for(var y=0,T=f;y-1&&(fp="error"),qp&&qp(f)};function dp(){Kd.fire(new Ar("pluginStateChange",{pluginStatus:fp,pluginURL:Sg}))}var Kd=new dr,xp=function(){return fp},cg=function(){if(fp!=="deferred"||!Sg)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");fp="loading",dp(),Sg&&xn({url:Sg},function(f){f?ip(f):(fp="loaded",dp())})},Lp={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return fp==="loaded"||Lp.applyArabicShaping!=null},isLoading:function(){return fp==="loading"},setState:function(f){fp=f.pluginStatus,Sg=f.pluginURL},isParsed:function(){return Lp.applyArabicShaping!=null&&Lp.processBidirectionalText!=null&&Lp.processStyledBidirectionalText!=null},getPluginURL:function(){return Sg}},gh=function(f,y){this.zoom=f,y?(this.now=y.now,this.fadeDuration=y.fadeDuration,this.zoomHistory=y.zoomHistory,this.transition=y.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new ug,this.transition={})};gh.prototype.isSupportedScript=function(f){return function(y,T){for(var W=0,re=y;Wthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:y+(1-y)*T}:{fromScale:.5,toScale:1,t:1-(1-T)*y}};var eg=function(f,y){this.property=f,this.value=y,this.expression=function(T,W){if(Gh(T))return new pl(T,W);if(Mh(T)){var re=Ja(T,W);if(re.result==="error")throw new Error(re.value.map(function(Le){return Le.key+": "+Le.message}).join(", "));return re.value}var he=T;return typeof T=="string"&&W.type==="color"&&(he=_n.parse(T)),{kind:"constant",evaluate:function(){return he}}}(y===void 0?f.specification.default:y,f.specification)};eg.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},eg.prototype.possiblyEvaluate=function(f,y,T){return this.property.possiblyEvaluate(this,f,y,T)};var Jd=function(f){this.property=f,this.value=new eg(f,void 0)};Jd.prototype.transitioned=function(f,y){return new hp(this.property,this.value,y,de({},f.transition,this.transition),f.now)},Jd.prototype.untransitioned=function(){return new hp(this.property,this.value,null,{},0)};var Pf=function(f){this._properties=f,this._values=Object.create(f.defaultTransitionablePropertyValues)};Pf.prototype.getValue=function(f){return Pe(this._values[f].value.value)},Pf.prototype.setValue=function(f,y){this._values.hasOwnProperty(f)||(this._values[f]=new Jd(this._values[f].property)),this._values[f].value=new eg(this._values[f].property,y===null?void 0:Pe(y))},Pf.prototype.getTransition=function(f){return Pe(this._values[f].transition)},Pf.prototype.setTransition=function(f,y){this._values.hasOwnProperty(f)||(this._values[f]=new Jd(this._values[f].property)),this._values[f].transition=Pe(y)||void 0},Pf.prototype.serialize=function(){for(var f={},y=0,T=Object.keys(this._values);ythis.end)return this.prior=null,re;if(this.value.isDataDriven())return this.prior=null,re;if(W=1)return 1;var Ut=qe*qe,rn=Ut*qe;return 4*(qe<.5?rn:3*(qe-Ut)+rn-.75)}(Le))}return re};var Pu=function(f){this._properties=f,this._values=Object.create(f.defaultTransitioningPropertyValues)};Pu.prototype.possiblyEvaluate=function(f,y,T){for(var W=new Hf(this._properties),re=0,he=Object.keys(this._values);rehe.zoomHistory.lastIntegerZoom?{from:T,to:W}:{from:re,to:W}},y.prototype.interpolate=function(T){return T},y}(Fd),Ld=function(f){this.specification=f};Ld.prototype.possiblyEvaluate=function(f,y,T,W){if(f.value!==void 0){if(f.expression.kind==="constant"){var re=f.expression.evaluate(y,null,{},T,W);return this._calculate(re,re,re,y)}return this._calculate(f.expression.evaluate(new gh(Math.floor(y.zoom-1),y)),f.expression.evaluate(new gh(Math.floor(y.zoom),y)),f.expression.evaluate(new gh(Math.floor(y.zoom+1),y)),y)}},Ld.prototype._calculate=function(f,y,T,W){return W.zoom>W.zoomHistory.lastIntegerZoom?{from:f,to:y}:{from:T,to:y}},Ld.prototype.interpolate=function(f){return f};var Sf=function(f){this.specification=f};Sf.prototype.possiblyEvaluate=function(f,y,T,W){return!!f.expression.evaluate(y,null,{},T,W)},Sf.prototype.interpolate=function(){return!1};var pp=function(f){for(var y in this.properties=f,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],f){var T=f[y];T.specification.overridable&&this.overridableProperties.push(y);var W=this.defaultPropertyValues[y]=new eg(T,void 0),re=this.defaultTransitionablePropertyValues[y]=new Jd(T);this.defaultTransitioningPropertyValues[y]=re.untransitioned(),this.defaultPossiblyEvaluatedValues[y]=W.possiblyEvaluate({})}};id("DataDrivenProperty",Fd),id("DataConstantProperty",Od),id("CrossFadedDataDrivenProperty",Nd),id("CrossFadedProperty",Ld),id("ColorRampProperty",Sf);var tg=function(f){function y(T,W){if(f.call(this),this.id=T.id,this.type=T.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},T.type!=="custom"&&(this.metadata=(T=T).metadata,this.minzoom=T.minzoom,this.maxzoom=T.maxzoom,T.type!=="background"&&(this.source=T.source,this.sourceLayer=T["source-layer"],this.filter=T.filter),W.layout&&(this._unevaluatedLayout=new Rp(W.layout)),W.paint)){for(var re in this._transitionablePaint=new Pf(W.paint),T.paint)this.setPaintProperty(re,T.paint[re],{validate:!1});for(var he in T.layout)this.setLayoutProperty(he,T.layout[he],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Hf(W.paint)}}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},y.prototype.getLayoutProperty=function(T){return T==="visibility"?this.visibility:this._unevaluatedLayout.getValue(T)},y.prototype.setLayoutProperty=function(T,W,re){re===void 0&&(re={}),W!=null&&this._validate(Rh,"layers."+this.id+".layout."+T,T,W,re)||(T!=="visibility"?this._unevaluatedLayout.setValue(T,W):this.visibility=W)},y.prototype.getPaintProperty=function(T){return He(T,"-transition")?this._transitionablePaint.getTransition(T.slice(0,-11)):this._transitionablePaint.getValue(T)},y.prototype.setPaintProperty=function(T,W,re){if(re===void 0&&(re={}),W!=null&&this._validate(cf,"layers."+this.id+".paint."+T,T,W,re))return!1;if(He(T,"-transition"))return this._transitionablePaint.setTransition(T.slice(0,-11),W||void 0),!1;var he=this._transitionablePaint._values[T],Le=he.property.specification["property-type"]==="cross-faded-data-driven",qe=he.value.isDataDriven(),Ut=he.value;this._transitionablePaint.setValue(T,W),this._handleSpecialPaintPropertyUpdate(T);var rn=this._transitionablePaint._values[T].value;return rn.isDataDriven()||qe||Le||this._handleOverridablePaintPropertyUpdate(T,Ut,rn)},y.prototype._handleSpecialPaintPropertyUpdate=function(T){},y.prototype._handleOverridablePaintPropertyUpdate=function(T,W,re){return!1},y.prototype.isHidden=function(T){return!!(this.minzoom&&T=this.maxzoom)||this.visibility==="none"},y.prototype.updateTransitions=function(T){this._transitioningPaint=this._transitionablePaint.transitioned(T,this._transitioningPaint)},y.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},y.prototype.recalculate=function(T,W){T.getCrossfadeParameters&&(this._crossfadeParameters=T.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(T,void 0,W)),this.paint=this._transitioningPaint.possiblyEvaluate(T,void 0,W)},y.prototype.serialize=function(){var T={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(T.layout=T.layout||{},T.layout.visibility=this.visibility),dt(T,function(W,re){return!(W===void 0||re==="layout"&&!Object.keys(W).length||re==="paint"&&!Object.keys(W).length)})},y.prototype._validate=function(T,W,re,he,Le){return Le===void 0&&(Le={}),(!Le||Le.validate!==!1)&&yc(this,T.call(Jh,{key:W,layerType:this.type,objectKey:re,value:he,styleSpec:Xt,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 T in this.paint._values){var W=this.paint.get(T);if(W instanceof Tp&&cd(W.property.specification)&&(W.value.kind==="source"||W.value.kind==="composite")&&W.value.isStateDependent)return!0}return!1},y}(dr),Dd={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Rf=function(f,y){this._structArray=f,this._pos1=y*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},zh=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function kh(f,y){y===void 0&&(y=1);var T=0,W=0;return{members:f.map(function(re){var he=Dd[re.type].BYTES_PER_ELEMENT,Le=T=Yf(T,Math.max(y,he)),qe=re.components||1;return W=Math.max(W,he),T+=he*qe,{name:re.name,type:re.type,components:qe,offset:Le}}),size:Yf(T,Math.max(W,y)),alignment:y}}function Yf(f,y){return Math.ceil(f/y)*y}zh.serialize=function(f,y){return f._trim(),y&&(f.isTransferred=!0,y.push(f.arrayBuffer)),{length:f.length,arrayBuffer:f.arrayBuffer}},zh.deserialize=function(f){var y=Object.create(this.prototype);return y.arrayBuffer=f.arrayBuffer,y.length=f.length,y.capacity=f.arrayBuffer.byteLength/y.bytesPerElement,y._refreshViews(),y},zh.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},zh.prototype.clear=function(){this.length=0},zh.prototype.resize=function(f){this.reserve(f),this.length=f},zh.prototype.reserve=function(f){if(f>this.capacity){this.capacity=Math.max(f,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var y=this.uint8;this._refreshViews(),y&&this.uint8.set(y)}},zh.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var vd=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(T,W){var re=this.length;return this.resize(re+1),this.emplace(re,T,W)},y.prototype.emplace=function(T,W,re){var he=2*T;return this.int16[he+0]=W,this.int16[he+1]=re,T},y}(zh);vd.prototype.bytesPerElement=4,id("StructArrayLayout2i4",vd);var $c=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(T,W,re,he){var Le=this.length;return this.resize(Le+1),this.emplace(Le,T,W,re,he)},y.prototype.emplace=function(T,W,re,he,Le){var qe=4*T;return this.int16[qe+0]=W,this.int16[qe+1]=re,this.int16[qe+2]=he,this.int16[qe+3]=Le,T},y}(zh);$c.prototype.bytesPerElement=8,id("StructArrayLayout4i8",$c);var oh=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(T,W,re,he,Le,qe){var Ut=this.length;return this.resize(Ut+1),this.emplace(Ut,T,W,re,he,Le,qe)},y.prototype.emplace=function(T,W,re,he,Le,qe,Ut){var rn=6*T;return this.int16[rn+0]=W,this.int16[rn+1]=re,this.int16[rn+2]=he,this.int16[rn+3]=Le,this.int16[rn+4]=qe,this.int16[rn+5]=Ut,T},y}(zh);oh.prototype.bytesPerElement=12,id("StructArrayLayout2i4i12",oh);var Xh=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(T,W,re,he,Le,qe){var Ut=this.length;return this.resize(Ut+1),this.emplace(Ut,T,W,re,he,Le,qe)},y.prototype.emplace=function(T,W,re,he,Le,qe,Ut){var rn=4*T,Qn=8*T;return this.int16[rn+0]=W,this.int16[rn+1]=re,this.uint8[Qn+4]=he,this.uint8[Qn+5]=Le,this.uint8[Qn+6]=qe,this.uint8[Qn+7]=Ut,T},y}(zh);Xh.prototype.bytesPerElement=8,id("StructArrayLayout2i4ub8",Xh);var zo=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(T,W){var re=this.length;return this.resize(re+1),this.emplace(re,T,W)},y.prototype.emplace=function(T,W,re){var he=2*T;return this.float32[he+0]=W,this.float32[he+1]=re,T},y}(zh);zo.prototype.bytesPerElement=8,id("StructArrayLayout2f8",zo);var P=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(T,W,re,he,Le,qe,Ut,rn,Qn,br){var Ci=this.length;return this.resize(Ci+1),this.emplace(Ci,T,W,re,he,Le,qe,Ut,rn,Qn,br)},y.prototype.emplace=function(T,W,re,he,Le,qe,Ut,rn,Qn,br,Ci){var Ii=10*T;return this.uint16[Ii+0]=W,this.uint16[Ii+1]=re,this.uint16[Ii+2]=he,this.uint16[Ii+3]=Le,this.uint16[Ii+4]=qe,this.uint16[Ii+5]=Ut,this.uint16[Ii+6]=rn,this.uint16[Ii+7]=Qn,this.uint16[Ii+8]=br,this.uint16[Ii+9]=Ci,T},y}(zh);P.prototype.bytesPerElement=20,id("StructArrayLayout10ui20",P);var j=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.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(T,W,re,he,Le,qe,Ut,rn,Qn,br,Ci,Ii){var Po=this.length;return this.resize(Po+1),this.emplace(Po,T,W,re,he,Le,qe,Ut,rn,Qn,br,Ci,Ii)},y.prototype.emplace=function(T,W,re,he,Le,qe,Ut,rn,Qn,br,Ci,Ii,Po){var Io=12*T;return this.int16[Io+0]=W,this.int16[Io+1]=re,this.int16[Io+2]=he,this.int16[Io+3]=Le,this.uint16[Io+4]=qe,this.uint16[Io+5]=Ut,this.uint16[Io+6]=rn,this.uint16[Io+7]=Qn,this.int16[Io+8]=br,this.int16[Io+9]=Ci,this.int16[Io+10]=Ii,this.int16[Io+11]=Po,T},y}(zh);j.prototype.bytesPerElement=24,id("StructArrayLayout4i4ui4i24",j);var ae=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(T,W,re){var he=this.length;return this.resize(he+1),this.emplace(he,T,W,re)},y.prototype.emplace=function(T,W,re,he){var Le=3*T;return this.float32[Le+0]=W,this.float32[Le+1]=re,this.float32[Le+2]=he,T},y}(zh);ae.prototype.bytesPerElement=12,id("StructArrayLayout3f12",ae);var pe=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(T){var W=this.length;return this.resize(W+1),this.emplace(W,T)},y.prototype.emplace=function(T,W){return this.uint32[1*T+0]=W,T},y}(zh);pe.prototype.bytesPerElement=4,id("StructArrayLayout1ul4",pe);var it=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.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(T,W,re,he,Le,qe,Ut,rn,Qn){var br=this.length;return this.resize(br+1),this.emplace(br,T,W,re,he,Le,qe,Ut,rn,Qn)},y.prototype.emplace=function(T,W,re,he,Le,qe,Ut,rn,Qn,br){var Ci=10*T,Ii=5*T;return this.int16[Ci+0]=W,this.int16[Ci+1]=re,this.int16[Ci+2]=he,this.int16[Ci+3]=Le,this.int16[Ci+4]=qe,this.int16[Ci+5]=Ut,this.uint32[Ii+3]=rn,this.uint16[Ci+8]=Qn,this.uint16[Ci+9]=br,T},y}(zh);it.prototype.bytesPerElement=20,id("StructArrayLayout6i1ul2ui20",it);var dn=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(T,W,re,he,Le,qe){var Ut=this.length;return this.resize(Ut+1),this.emplace(Ut,T,W,re,he,Le,qe)},y.prototype.emplace=function(T,W,re,he,Le,qe,Ut){var rn=6*T;return this.int16[rn+0]=W,this.int16[rn+1]=re,this.int16[rn+2]=he,this.int16[rn+3]=Le,this.int16[rn+4]=qe,this.int16[rn+5]=Ut,T},y}(zh);dn.prototype.bytesPerElement=12,id("StructArrayLayout2i2i2i12",dn);var ir=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.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(T,W,re,he,Le){var qe=this.length;return this.resize(qe+1),this.emplace(qe,T,W,re,he,Le)},y.prototype.emplace=function(T,W,re,he,Le,qe){var Ut=4*T,rn=8*T;return this.float32[Ut+0]=W,this.float32[Ut+1]=re,this.float32[Ut+2]=he,this.int16[rn+6]=Le,this.int16[rn+7]=qe,T},y}(zh);ir.prototype.bytesPerElement=16,id("StructArrayLayout2f1f2i16",ir);var Te=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(T,W,re,he){var Le=this.length;return this.resize(Le+1),this.emplace(Le,T,W,re,he)},y.prototype.emplace=function(T,W,re,he,Le){var qe=12*T,Ut=3*T;return this.uint8[qe+0]=W,this.uint8[qe+1]=re,this.float32[Ut+1]=he,this.float32[Ut+2]=Le,T},y}(zh);Te.prototype.bytesPerElement=12,id("StructArrayLayout2ub2f12",Te);var D=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(T,W,re){var he=this.length;return this.resize(he+1),this.emplace(he,T,W,re)},y.prototype.emplace=function(T,W,re,he){var Le=3*T;return this.uint16[Le+0]=W,this.uint16[Le+1]=re,this.uint16[Le+2]=he,T},y}(zh);D.prototype.bytesPerElement=6,id("StructArrayLayout3ui6",D);var ie=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.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(T,W,re,he,Le,qe,Ut,rn,Qn,br,Ci,Ii,Po,Io,Zo,Ro,lo){var Js=this.length;return this.resize(Js+1),this.emplace(Js,T,W,re,he,Le,qe,Ut,rn,Qn,br,Ci,Ii,Po,Io,Zo,Ro,lo)},y.prototype.emplace=function(T,W,re,he,Le,qe,Ut,rn,Qn,br,Ci,Ii,Po,Io,Zo,Ro,lo,Js){var Ua=24*T,_l=12*T,fu=48*T;return this.int16[Ua+0]=W,this.int16[Ua+1]=re,this.uint16[Ua+2]=he,this.uint16[Ua+3]=Le,this.uint32[_l+2]=qe,this.uint32[_l+3]=Ut,this.uint32[_l+4]=rn,this.uint16[Ua+10]=Qn,this.uint16[Ua+11]=br,this.uint16[Ua+12]=Ci,this.float32[_l+7]=Ii,this.float32[_l+8]=Po,this.uint8[fu+36]=Io,this.uint8[fu+37]=Zo,this.uint8[fu+38]=Ro,this.uint32[_l+10]=lo,this.int16[Ua+22]=Js,T},y}(zh);ie.prototype.bytesPerElement=48,id("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",ie);var Se=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.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(T,W,re,he,Le,qe,Ut,rn,Qn,br,Ci,Ii,Po,Io,Zo,Ro,lo,Js,Ua,_l,fu,zu,Lu,od,wu,zc,Nn,or){var Wr=this.length;return this.resize(Wr+1),this.emplace(Wr,T,W,re,he,Le,qe,Ut,rn,Qn,br,Ci,Ii,Po,Io,Zo,Ro,lo,Js,Ua,_l,fu,zu,Lu,od,wu,zc,Nn,or)},y.prototype.emplace=function(T,W,re,he,Le,qe,Ut,rn,Qn,br,Ci,Ii,Po,Io,Zo,Ro,lo,Js,Ua,_l,fu,zu,Lu,od,wu,zc,Nn,or,Wr){var hi=34*T,io=17*T;return this.int16[hi+0]=W,this.int16[hi+1]=re,this.int16[hi+2]=he,this.int16[hi+3]=Le,this.int16[hi+4]=qe,this.int16[hi+5]=Ut,this.int16[hi+6]=rn,this.int16[hi+7]=Qn,this.uint16[hi+8]=br,this.uint16[hi+9]=Ci,this.uint16[hi+10]=Ii,this.uint16[hi+11]=Po,this.uint16[hi+12]=Io,this.uint16[hi+13]=Zo,this.uint16[hi+14]=Ro,this.uint16[hi+15]=lo,this.uint16[hi+16]=Js,this.uint16[hi+17]=Ua,this.uint16[hi+18]=_l,this.uint16[hi+19]=fu,this.uint16[hi+20]=zu,this.uint16[hi+21]=Lu,this.uint16[hi+22]=od,this.uint32[io+12]=wu,this.float32[io+13]=zc,this.float32[io+14]=Nn,this.float32[io+15]=or,this.float32[io+16]=Wr,T},y}(zh);Se.prototype.bytesPerElement=68,id("StructArrayLayout8i15ui1ul4f68",Se);var Ne=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(T){var W=this.length;return this.resize(W+1),this.emplace(W,T)},y.prototype.emplace=function(T,W){return this.float32[1*T+0]=W,T},y}(zh);Ne.prototype.bytesPerElement=4,id("StructArrayLayout1f4",Ne);var ct=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(T,W,re){var he=this.length;return this.resize(he+1),this.emplace(he,T,W,re)},y.prototype.emplace=function(T,W,re,he){var Le=3*T;return this.int16[Le+0]=W,this.int16[Le+1]=re,this.int16[Le+2]=he,T},y}(zh);ct.prototype.bytesPerElement=6,id("StructArrayLayout3i6",ct);var Ht=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.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(T,W,re){var he=this.length;return this.resize(he+1),this.emplace(he,T,W,re)},y.prototype.emplace=function(T,W,re,he){var Le=4*T;return this.uint32[2*T+0]=W,this.uint16[Le+2]=re,this.uint16[Le+3]=he,T},y}(zh);Ht.prototype.bytesPerElement=8,id("StructArrayLayout1ul2ui8",Ht);var en=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(T,W){var re=this.length;return this.resize(re+1),this.emplace(re,T,W)},y.prototype.emplace=function(T,W,re){var he=2*T;return this.uint16[he+0]=W,this.uint16[he+1]=re,T},y}(zh);en.prototype.bytesPerElement=4,id("StructArrayLayout2ui4",en);var zn=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(T){var W=this.length;return this.resize(W+1),this.emplace(W,T)},y.prototype.emplace=function(T,W){return this.uint16[1*T+0]=W,T},y}(zh);zn.prototype.bytesPerElement=2,id("StructArrayLayout1ui2",zn);var Ir=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(T,W,re,he){var Le=this.length;return this.resize(Le+1),this.emplace(Le,T,W,re,he)},y.prototype.emplace=function(T,W,re,he,Le){var qe=4*T;return this.float32[qe+0]=W,this.float32[qe+1]=re,this.float32[qe+2]=he,this.float32[qe+3]=Le,T},y}(zh);Ir.prototype.bytesPerElement=16,id("StructArrayLayout4f16",Ir);var G=function(f){function y(){f.apply(this,arguments)}f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y;var T={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 T.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},T.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},T.x1.get=function(){return this._structArray.int16[this._pos2+2]},T.y1.get=function(){return this._structArray.int16[this._pos2+3]},T.x2.get=function(){return this._structArray.int16[this._pos2+4]},T.y2.get=function(){return this._structArray.int16[this._pos2+5]},T.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},T.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},T.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},T.anchorPoint.get=function(){return new k(this.anchorPointX,this.anchorPointY)},Object.defineProperties(y.prototype,T),y}(Rf);G.prototype.size=20;var J=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.get=function(T){return new G(this,T)},y}(it);id("CollisionBoxArray",J);var Q=function(f){function y(){f.apply(this,arguments)}f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y;var T={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 T.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},T.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},T.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},T.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},T.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},T.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},T.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},T.segment.get=function(){return this._structArray.uint16[this._pos2+10]},T.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},T.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},T.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},T.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},T.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},T.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},T.placedOrientation.set=function(W){this._structArray.uint8[this._pos1+37]=W},T.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},T.hidden.set=function(W){this._structArray.uint8[this._pos1+38]=W},T.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},T.crossTileID.set=function(W){this._structArray.uint32[this._pos4+10]=W},T.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(y.prototype,T),y}(Rf);Q.prototype.size=48;var ue=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.get=function(T){return new Q(this,T)},y}(ie);id("PlacedSymbolArray",ue);var Ze=function(f){function y(){f.apply(this,arguments)}f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y;var T={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 T.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},T.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},T.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},T.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},T.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},T.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},T.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},T.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},T.key.get=function(){return this._structArray.uint16[this._pos2+8]},T.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},T.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},T.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},T.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},T.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},T.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},T.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},T.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},T.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},T.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},T.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},T.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},T.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},T.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},T.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},T.crossTileID.set=function(W){this._structArray.uint32[this._pos4+12]=W},T.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},T.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},T.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},T.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(y.prototype,T),y}(Rf);Ze.prototype.size=68;var Et=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.get=function(T){return new Ze(this,T)},y}(Se);id("SymbolInstanceArray",Et);var Ot=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.getoffsetX=function(T){return this.float32[1*T+0]},y}(Ne);id("GlyphOffsetArray",Ot);var mn=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.getx=function(T){return this.int16[3*T+0]},y.prototype.gety=function(T){return this.int16[3*T+1]},y.prototype.gettileUnitDistanceFromAnchor=function(T){return this.int16[3*T+2]},y}(ct);id("SymbolLineVertexArray",mn);var yr=function(f){function y(){f.apply(this,arguments)}f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y;var T={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return T.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},T.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},T.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(y.prototype,T),y}(Rf);yr.prototype.size=8;var Sn=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.get=function(T){return new yr(this,T)},y}(Ht);id("FeatureIndexArray",Sn);var bi=kh([{name:"a_pos",components:2,type:"Int16"}],4).members,ki=function(f){f===void 0&&(f=[]),this.segments=f};function Zi(f,y){return 256*(f=K(Math.floor(f),0,255))+K(Math.floor(y),0,255)}ki.prototype.prepareSegment=function(f,y,T,W){var re=this.segments[this.segments.length-1];return f>ki.MAX_VERTEX_ARRAY_LENGTH&&Ae("Max vertices per segment is "+ki.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+f),(!re||re.vertexLength+f>ki.MAX_VERTEX_ARRAY_LENGTH||re.sortKey!==W)&&(re={vertexOffset:y.length,primitiveOffset:T.length,vertexLength:0,primitiveLength:0},W!==void 0&&(re.sortKey=W),this.segments.push(re)),re},ki.prototype.get=function(){return this.segments},ki.prototype.destroy=function(){for(var f=0,y=this.segments;f>>16)*qe&65535)<<16)&4294967295)<<15|rn>>>17))*Ut+(((rn>>>16)*Ut&65535)<<16)&4294967295)<<13|he>>>19))+((5*(he>>>16)&65535)<<16)&4294967295))+((58964+(Le>>>16)&65535)<<16);switch(rn=0,W){case 3:rn^=(255&y.charCodeAt(Qn+2))<<16;case 2:rn^=(255&y.charCodeAt(Qn+1))<<8;case 1:he^=rn=(65535&(rn=(rn=(65535&(rn^=255&y.charCodeAt(Qn)))*qe+(((rn>>>16)*qe&65535)<<16)&4294967295)<<15|rn>>>17))*Ut+(((rn>>>16)*Ut&65535)<<16)&4294967295}return he^=y.length,he=2246822507*(65535&(he^=he>>>16))+((2246822507*(he>>>16)&65535)<<16)&4294967295,he=3266489909*(65535&(he^=he>>>13))+((3266489909*(he>>>16)&65535)<<16)&4294967295,(he^=he>>>16)>>>0}}),zi=b(function(f){f.exports=function(y,T){for(var W,re=y.length,he=T^re,Le=0;re>=4;)W=1540483477*(65535&(W=255&y.charCodeAt(Le)|(255&y.charCodeAt(++Le))<<8|(255&y.charCodeAt(++Le))<<16|(255&y.charCodeAt(++Le))<<24))+((1540483477*(W>>>16)&65535)<<16),he=1540483477*(65535&he)+((1540483477*(he>>>16)&65535)<<16)^(W=1540483477*(65535&(W^=W>>>24))+((1540483477*(W>>>16)&65535)<<16)),re-=4,++Le;switch(re){case 3:he^=(255&y.charCodeAt(Le+2))<<16;case 2:he^=(255&y.charCodeAt(Le+1))<<8;case 1:he=1540483477*(65535&(he^=255&y.charCodeAt(Le)))+((1540483477*(he>>>16)&65535)<<16)}return he=1540483477*(65535&(he^=he>>>13))+((1540483477*(he>>>16)&65535)<<16),(he^=he>>>15)>>>0}}),$o=Go,Ks=zi;$o.murmur3=Go,$o.murmur2=Ks;var nl=function(){this.ids=[],this.positions=[],this.indexed=!1};nl.prototype.add=function(f,y,T,W){this.ids.push(Kl(f)),this.positions.push(y,T,W)},nl.prototype.getPositions=function(f){for(var y=Kl(f),T=0,W=this.ids.length-1;T>1;this.ids[re]>=y?W=re:T=re+1}for(var he=[];this.ids[T]===y;)he.push({index:this.positions[3*T],start:this.positions[3*T+1],end:this.positions[3*T+2]}),T++;return he},nl.serialize=function(f,y){var T=new Float64Array(f.ids),W=new Uint32Array(f.positions);return function re(he,Le,qe,Ut){for(;qe>1],Qn=qe-1,br=Ut+1;;){do Qn++;while(he[Qn]rn);if(Qn>=br)break;yl(he,Qn,br),yl(Le,3*Qn,3*br),yl(Le,3*Qn+1,3*br+1),yl(Le,3*Qn+2,3*br+2)}br-qeLe.x+1||UtLe.y+1)&&Ae("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return T}function hd(f,y){return{type:f.type,id:f.id,properties:f.properties,geometry:y?bc(f):[]}}function xd(f,y,T,W,re){f.emplaceBack(2*y+(W+1)/2,2*T+(re+1)/2)}var rh=function(f){this.zoom=f.zoom,this.overscaling=f.overscaling,this.layers=f.layers,this.layerIds=this.layers.map(function(y){return y.id}),this.index=f.index,this.hasPattern=!1,this.layoutVertexArray=new vd,this.indexArray=new D,this.segments=new ki,this.programConfigurations=new bh(f.layers,f.zoom),this.stateDependentLayerIds=this.layers.filter(function(y){return y.isStateDependent()}).map(function(y){return y.id})};function Ec(f,y){for(var T=0;T1){if(Oo(f,y))return!0;for(var W=0;W1?T:T.sub(y)._mult(re)._add(y))}function Og(f,y){for(var T,W,re,he=!1,Le=0;Ley.y!=(re=T[Ut]).y>y.y&&y.x<(re.x-W.x)*(y.y-W.y)/(re.y-W.y)+W.x&&(he=!he);return he}function qf(f,y){for(var T=!1,W=0,re=f.length-1;Wy.y!=Le.y>y.y&&y.x<(Le.x-he.x)*(y.y-he.y)/(Le.y-he.y)+he.x&&(T=!T)}return T}function Zh(f,y,T){var W=T[0],re=T[2];if(f.xre.x&&y.x>re.x||f.yre.y&&y.y>re.y)return!1;var he=Re(f,y,T[0]);return he!==Re(f,y,T[1])||he!==Re(f,y,T[2])||he!==Re(f,y,T[3])}function Wf(f,y,T){var W=y.paint.get(f).value;return W.kind==="constant"?W.value:T.programConfigurations.get(y.id).getMaxValue(f)}function Np(f){return Math.sqrt(f[0]*f[0]+f[1]*f[1])}function Zp(f,y,T,W,re){if(!y[0]&&!y[1])return f;var he=k.convert(y)._mult(re);T==="viewport"&&he._rotate(-W);for(var Le=[],qe=0;qe=8192||Qn<0||Qn>=8192)){var br=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,f.sortKey),Ci=br.vertexLength;xd(this.layoutVertexArray,rn,Qn,-1,-1),xd(this.layoutVertexArray,rn,Qn,1,-1),xd(this.layoutVertexArray,rn,Qn,1,1),xd(this.layoutVertexArray,rn,Qn,-1,1),this.indexArray.emplaceBack(Ci,Ci+1,Ci+2),this.indexArray.emplaceBack(Ci,Ci+3,Ci+2),br.vertexLength+=4,br.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,f,T,{},W)},id("CircleBucket",rh,{omit:["layers"]});var Ap=new pp({"circle-sort-key":new Fd(Xt.layout_circle["circle-sort-key"])}),Gf={paint:new pp({"circle-radius":new Fd(Xt.paint_circle["circle-radius"]),"circle-color":new Fd(Xt.paint_circle["circle-color"]),"circle-blur":new Fd(Xt.paint_circle["circle-blur"]),"circle-opacity":new Fd(Xt.paint_circle["circle-opacity"]),"circle-translate":new Od(Xt.paint_circle["circle-translate"]),"circle-translate-anchor":new Od(Xt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Od(Xt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Od(Xt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Fd(Xt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Fd(Xt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Fd(Xt.paint_circle["circle-stroke-opacity"])}),layout:Ap},of=typeof Float32Array!="undefined"?Float32Array:Array;function Ef(f){return f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1,f}function Eg(f,y,T){var W=y[0],re=y[1],he=y[2],Le=y[3],qe=y[4],Ut=y[5],rn=y[6],Qn=y[7],br=y[8],Ci=y[9],Ii=y[10],Po=y[11],Io=y[12],Zo=y[13],Ro=y[14],lo=y[15],Js=T[0],Ua=T[1],_l=T[2],fu=T[3];return f[0]=Js*W+Ua*qe+_l*br+fu*Io,f[1]=Js*re+Ua*Ut+_l*Ci+fu*Zo,f[2]=Js*he+Ua*rn+_l*Ii+fu*Ro,f[3]=Js*Le+Ua*Qn+_l*Po+fu*lo,f[4]=(Js=T[4])*W+(Ua=T[5])*qe+(_l=T[6])*br+(fu=T[7])*Io,f[5]=Js*re+Ua*Ut+_l*Ci+fu*Zo,f[6]=Js*he+Ua*rn+_l*Ii+fu*Ro,f[7]=Js*Le+Ua*Qn+_l*Po+fu*lo,f[8]=(Js=T[8])*W+(Ua=T[9])*qe+(_l=T[10])*br+(fu=T[11])*Io,f[9]=Js*re+Ua*Ut+_l*Ci+fu*Zo,f[10]=Js*he+Ua*rn+_l*Ii+fu*Ro,f[11]=Js*Le+Ua*Qn+_l*Po+fu*lo,f[12]=(Js=T[12])*W+(Ua=T[13])*qe+(_l=T[14])*br+(fu=T[15])*Io,f[13]=Js*re+Ua*Ut+_l*Ci+fu*Zo,f[14]=Js*he+Ua*rn+_l*Ii+fu*Ro,f[15]=Js*Le+Ua*Qn+_l*Po+fu*lo,f}Math.hypot||(Math.hypot=function(){for(var f=arguments,y=0,T=arguments.length;T--;)y+=f[T]*f[T];return Math.sqrt(y)});var Xg,np=Eg;function Eh(f,y,T){var W=y[0],re=y[1],he=y[2],Le=y[3];return f[0]=T[0]*W+T[4]*re+T[8]*he+T[12]*Le,f[1]=T[1]*W+T[5]*re+T[9]*he+T[13]*Le,f[2]=T[2]*W+T[6]*re+T[10]*he+T[14]*Le,f[3]=T[3]*W+T[7]*re+T[11]*he+T[15]*Le,f}Xg=new of(3),of!=Float32Array&&(Xg[0]=0,Xg[1]=0,Xg[2]=0),function(){var f=new of(4);of!=Float32Array&&(f[0]=0,f[1]=0,f[2]=0,f[3]=0)}();var i0=(function(){var f=new of(2);of!=Float32Array&&(f[0]=0,f[1]=0)}(),function(f){function y(T){f.call(this,T,Gf)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.createBucket=function(T){return new rh(T)},y.prototype.queryRadius=function(T){var W=T;return Wf("circle-radius",this,W)+Wf("circle-stroke-width",this,W)+Np(this.paint.get("circle-translate"))},y.prototype.queryIntersectsFeature=function(T,W,re,he,Le,qe,Ut,rn){for(var Qn=Zp(T,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),qe.angle,Ut),br=this.paint.get("circle-radius").evaluate(W,re)+this.paint.get("circle-stroke-width").evaluate(W,re),Ci=this.paint.get("circle-pitch-alignment")==="map",Ii=Ci?Qn:function(zu,Lu){return zu.map(function(od){return Cm(od,Lu)})}(Qn,rn),Po=Ci?br*Ut:br,Io=0,Zo=he;Iof.width||re.height>f.height||T.x>f.width-re.width||T.y>f.height-re.height)throw new RangeError("out of range source coordinates for image copy");if(re.width>y.width||re.height>y.height||W.x>y.width-re.width||W.y>y.height-re.height)throw new RangeError("out of range destination coordinates for image copy");for(var Le=f.data,qe=y.data,Ut=0;Ut80*T){W=he=f[0],re=Le=f[1];for(var Po=T;Pohe&&(he=qe),Ut>Le&&(Le=Ut);rn=(rn=Math.max(he-W,Le-re))!==0?1/rn:0}return O0(Ci,Ii,T,W,re,rn),Ii}function Dp(f,y,T,W,re){var he,Le;if(re===xt(f,y,T,W)>0)for(he=y;he=y;he-=W)Le=ke(he,f[he],f[he+1],Le);return Le&&Qg(Le,Le.next)&&(At(Le),Le=Le.next),Le}function bf(f,y){if(!f)return f;y||(y=f);var T,W=f;do if(T=!1,W.steiner||!Qg(W,W.next)&&Hp(W.prev,W,W.next)!==0)W=W.next;else{if(At(W),(W=y=W.prev)===W.next)break;T=!0}while(T||W!==y);return y}function O0(f,y,T,W,re,he,Le){if(f){!Le&&he&&function(Qn,br,Ci,Ii){var Po=Qn;do Po.z===null&&(Po.z=gm(Po.x,Po.y,br,Ci,Ii)),Po.prevZ=Po.prev,Po.nextZ=Po.next,Po=Po.next;while(Po!==Qn);Po.prevZ.nextZ=null,Po.prevZ=null,function(Io){var Zo,Ro,lo,Js,Ua,_l,fu,zu,Lu=1;do{for(Ro=Io,Io=null,Ua=null,_l=0;Ro;){for(_l++,lo=Ro,fu=0,Zo=0;Zo0||zu>0&&lo;)fu!==0&&(zu===0||!lo||Ro.z<=lo.z)?(Js=Ro,Ro=Ro.nextZ,fu--):(Js=lo,lo=lo.nextZ,zu--),Ua?Ua.nextZ=Js:Io=Js,Js.prevZ=Ua,Ua=Js;Ro=lo}Ua.nextZ=null,Lu*=2}while(_l>1)}(Po)}(f,W,re,he);for(var qe,Ut,rn=f;f.prev!==f.next;)if(qe=f.prev,Ut=f.next,he?um(f,W,re,he):N0(f))y.push(qe.i/T),y.push(f.i/T),y.push(Ut.i/T),At(f),f=Ut.next,rn=Ut.next;else if((f=Ut)===rn){Le?Le===1?O0(f=P0(bf(f),y,T),y,T,W,re,he,2):Le===2&&K0(f,y,T,W,re,he):O0(bf(f),y,T,W,re,he,1);break}}}function N0(f){var y=f.prev,T=f,W=f.next;if(Hp(y,T,W)>=0)return!1;for(var re=f.next.next;re!==f.prev;){if(Mm(y.x,y.y,T.x,T.y,W.x,W.y,re.x,re.y)&&Hp(re.prev,re,re.next)>=0)return!1;re=re.next}return!0}function um(f,y,T,W){var re=f.prev,he=f,Le=f.next;if(Hp(re,he,Le)>=0)return!1;for(var qe=re.x>he.x?re.x>Le.x?re.x:Le.x:he.x>Le.x?he.x:Le.x,Ut=re.y>he.y?re.y>Le.y?re.y:Le.y:he.y>Le.y?he.y:Le.y,rn=gm(re.x=rn&&Ci&&Ci.z<=Qn;){if(br!==f.prev&&br!==f.next&&Mm(re.x,re.y,he.x,he.y,Le.x,Le.y,br.x,br.y)&&Hp(br.prev,br,br.next)>=0||(br=br.prevZ,Ci!==f.prev&&Ci!==f.next&&Mm(re.x,re.y,he.x,he.y,Le.x,Le.y,Ci.x,Ci.y)&&Hp(Ci.prev,Ci,Ci.next)>=0))return!1;Ci=Ci.nextZ}for(;br&&br.z>=rn;){if(br!==f.prev&&br!==f.next&&Mm(re.x,re.y,he.x,he.y,Le.x,Le.y,br.x,br.y)&&Hp(br.prev,br,br.next)>=0)return!1;br=br.prevZ}for(;Ci&&Ci.z<=Qn;){if(Ci!==f.prev&&Ci!==f.next&&Mm(re.x,re.y,he.x,he.y,Le.x,Le.y,Ci.x,Ci.y)&&Hp(Ci.prev,Ci,Ci.next)>=0)return!1;Ci=Ci.nextZ}return!0}function P0(f,y,T){var W=f;do{var re=W.prev,he=W.next.next;!Qg(re,he)&&Fm(re,W,W.next,he)&&be(re,he)&&be(he,re)&&(y.push(re.i/T),y.push(W.i/T),y.push(he.i/T),At(W),At(W.next),W=f=he),W=W.next}while(W!==f);return bf(W)}function K0(f,y,T,W,re,he){var Le=f;do{for(var qe=Le.next.next;qe!==Le.prev;){if(Le.i!==qe.i&&d0(Le,qe)){var Ut=ee(Le,qe);return Le=bf(Le,Le.next),Ut=bf(Ut,Ut.next),O0(Le,y,T,W,re,he),void O0(Ut,y,T,W,re,he)}qe=qe.next}Le=Le.next}while(Le!==f)}function X0(f,y){return f.x-y.x}function $h(f,y){if(y=function(W,re){var he,Le=re,qe=W.x,Ut=W.y,rn=-1/0;do{if(Ut<=Le.y&&Ut>=Le.next.y&&Le.next.y!==Le.y){var Qn=Le.x+(Ut-Le.y)*(Le.next.x-Le.x)/(Le.next.y-Le.y);if(Qn<=qe&&Qn>rn){if(rn=Qn,Qn===qe){if(Ut===Le.y)return Le;if(Ut===Le.next.y)return Le.next}he=Le.x=Le.x&&Le.x>=Ii&&qe!==Le.x&&Mm(Uthe.x||Le.x===he.x&&s0(he,Le)))&&(he=Le,Io=br)),Le=Le.next;while(Le!==Ci);return he}(f,y)){var T=ee(y,f);bf(y,y.next),bf(T,T.next)}}function s0(f,y){return Hp(f.prev,f,y.prev)<0&&Hp(y.next,f,f.next)<0}function gm(f,y,T,W,re){return(f=1431655765&((f=858993459&((f=252645135&((f=16711935&((f=32767*(f-T)*re)|f<<8))|f<<4))|f<<2))|f<<1))|(y=1431655765&((y=858993459&((y=252645135&((y=16711935&((y=32767*(y-W)*re)|y<<8))|y<<4))|y<<2))|y<<1))<<1}function c0(f){var y=f,T=f;do(y.x=0&&(f-Le)*(W-qe)-(T-Le)*(y-qe)>=0&&(T-Le)*(he-qe)-(re-Le)*(W-qe)>=0}function d0(f,y){return f.next.i!==y.i&&f.prev.i!==y.i&&!function(T,W){var re=T;do{if(re.i!==T.i&&re.next.i!==T.i&&re.i!==W.i&&re.next.i!==W.i&&Fm(re,re.next,T,W))return!0;re=re.next}while(re!==T);return!1}(f,y)&&(be(f,y)&&be(y,f)&&function(T,W){var re=T,he=!1,Le=(T.x+W.x)/2,qe=(T.y+W.y)/2;do re.y>qe!=re.next.y>qe&&re.next.y!==re.y&&Le<(re.next.x-re.x)*(qe-re.y)/(re.next.y-re.y)+re.x&&(he=!he),re=re.next;while(re!==T);return he}(f,y)&&(Hp(f.prev,f,y.prev)||Hp(f,y.prev,y))||Qg(f,y)&&Hp(f.prev,f,f.next)>0&&Hp(y.prev,y,y.next)>0)}function Hp(f,y,T){return(y.y-f.y)*(T.x-y.x)-(y.x-f.x)*(T.y-y.y)}function Qg(f,y){return f.x===y.x&&f.y===y.y}function Fm(f,y,T,W){var re=dg(Hp(f,y,T)),he=dg(Hp(f,y,W)),Le=dg(Hp(T,W,f)),qe=dg(Hp(T,W,y));return re!==he&&Le!==qe||!(re!==0||!Bm(f,T,y))||!(he!==0||!Bm(f,W,y))||!(Le!==0||!Bm(T,f,W))||!(qe!==0||!Bm(T,y,W))}function Bm(f,y,T){return y.x<=Math.max(f.x,T.x)&&y.x>=Math.min(f.x,T.x)&&y.y<=Math.max(f.y,T.y)&&y.y>=Math.min(f.y,T.y)}function dg(f){return f>0?1:f<0?-1:0}function be(f,y){return Hp(f.prev,f,f.next)<0?Hp(f,y,f.next)>=0&&Hp(f,f.prev,y)>=0:Hp(f,y,f.prev)<0||Hp(f,f.next,y)<0}function ee(f,y){var T=new Vn(f.i,f.x,f.y),W=new Vn(y.i,y.x,y.y),re=f.next,he=y.prev;return f.next=y,y.prev=f,T.next=re,re.prev=T,W.next=T,T.prev=W,he.next=W,W.prev=he,W}function ke(f,y,T,W){var re=new Vn(f,y,T);return W?(re.next=W.next,re.prev=W,W.next.prev=re,W.next=re):(re.prev=re,re.next=re),re}function At(f){f.next.prev=f.prev,f.prev.next=f.next,f.prevZ&&(f.prevZ.nextZ=f.nextZ),f.nextZ&&(f.nextZ.prevZ=f.prevZ)}function Vn(f,y,T){this.i=f,this.x=y,this.y=T,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function xt(f,y,T,W){for(var re=0,he=y,Le=T-W;heUt;){if(rn-Ut>600){var br=rn-Ut+1,Ci=qe-Ut+1,Ii=Math.log(br),Po=.5*Math.exp(2*Ii/3),Io=.5*Math.sqrt(Ii*Po*(br-Po)/br)*(Ci-br/2<0?-1:1);he(Le,qe,Math.max(Ut,Math.floor(qe-Ci*Po/br+Io)),Math.min(rn,Math.floor(qe+(br-Ci)*Po/br+Io)),Qn)}var Zo=Le[qe],Ro=Ut,lo=rn;for(jt(Le,Ut,qe),Qn(Le[rn],Zo)>0&&jt(Le,Ut,rn);Ro0;)lo--}Qn(Le[Ut],Zo)===0?jt(Le,Ut,lo):jt(Le,++lo,rn),lo<=qe&&(Ut=lo+1),qe<=lo&&(rn=lo-1)}})(f,y,T||0,W||f.length-1,re||on)}function jt(f,y,T){var W=f[y];f[y]=f[T],f[T]=W}function on(f,y){return fy?1:0}function nn(f,y){var T=f.length;if(T<=1)return[f];for(var W,re,he=[],Le=0;Le1)for(var Ut=0;Ut0&&T.holes.push(W+=f[re-1].length)}return T},Pg.default=cv;var lr=function(f){this.zoom=f.zoom,this.overscaling=f.overscaling,this.layers=f.layers,this.layerIds=this.layers.map(function(y){return y.id}),this.index=f.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new vd,this.indexArray=new D,this.indexArray2=new en,this.programConfigurations=new bh(f.layers,f.zoom),this.segments=new ki,this.segments2=new ki,this.stateDependentLayerIds=this.layers.filter(function(y){return y.isStateDependent()}).map(function(y){return y.id})};lr.prototype.populate=function(f,y,T){this.hasPattern=Ln("fill",this.layers,y);for(var W=this.layers[0].layout.get("fill-sort-key"),re=[],he=0,Le=f;he>3}if(re--,W===1||W===2)he+=f.readSVarint(),Le+=f.readSVarint(),W===1&&(y&&qe.push(y),y=[]),y.push(new k(he,Le));else{if(W!==7)throw new Error("unknown command "+W);y&&y.push(y[0].clone())}}return y&&qe.push(y),qe},Vt.prototype.bbox=function(){var f=this._pbf;f.pos=this._geometry;for(var y=f.readVarint()+f.pos,T=1,W=0,re=0,he=0,Le=1/0,qe=-1/0,Ut=1/0,rn=-1/0;f.pos>3}if(W--,T===1||T===2)(re+=f.readSVarint())qe&&(qe=re),(he+=f.readSVarint())rn&&(rn=he);else if(T!==7)throw new Error("unknown command "+T)}return[Le,Ut,qe,rn]},Vt.prototype.toGeoJSON=function(f,y,T){var W,re,he=this.extent*Math.pow(2,T),Le=this.extent*f,qe=this.extent*y,Ut=this.loadGeometry(),rn=Vt.types[this.type];function Qn(Ii){for(var Po=0;Po>3;re=Le===1?W.readString():Le===2?W.readFloat():Le===3?W.readDouble():Le===4?W.readVarint64():Le===5?W.readVarint():Le===6?W.readSVarint():Le===7?W.readBoolean():null}return re}(T))}function xr(f,y,T){if(f===3){var W=new _r(T,T.readVarint()+T.pos);W.length&&(y[W.name]=W)}}Jn.prototype.feature=function(f){if(f<0||f>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[f];var y=this._pbf.readVarint()+this._pbf.pos;return new Nt(this._pbf,y,this.extent,this._keys,this._values)};var Yr={VectorTile:function(f,y){this.layers=f.readFields(xr,{},y)},VectorTileFeature:Nt,VectorTileLayer:_r},Or=Yr.VectorTileFeature.types,Ki=Math.pow(2,13);function jn(f,y,T,W,re,he,Le,qe){f.emplaceBack(y,T,2*Math.floor(W*Ki)+Le,re*Ki*2,he*Ki*2,Math.round(qe))}var Nr=function(f){this.zoom=f.zoom,this.overscaling=f.overscaling,this.layers=f.layers,this.layerIds=this.layers.map(function(y){return y.id}),this.index=f.index,this.hasPattern=!1,this.layoutVertexArray=new oh,this.indexArray=new D,this.programConfigurations=new bh(f.layers,f.zoom),this.segments=new ki,this.stateDependentLayerIds=this.layers.filter(function(y){return y.isStateDependent()}).map(function(y){return y.id})};function cr(f,y){return f.x===y.x&&(f.x<0||f.x>8192)||f.y===y.y&&(f.y<0||f.y>8192)}Nr.prototype.populate=function(f,y,T){this.features=[],this.hasPattern=Ln("fill-extrusion",this.layers,y);for(var W=0,re=f;W8192})||io.every(function(ia){return ia.y<0})||io.every(function(ia){return ia.y>8192})))for(var Io=0,Zo=0;Zo=1){var lo=Po[Zo-1];if(!cr(Ro,lo)){br.vertexLength+4>ki.MAX_VERTEX_ARRAY_LENGTH&&(br=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Js=Ro.sub(lo)._perp()._unit(),Ua=lo.dist(Ro);Io+Ua>32768&&(Io=0),jn(this.layoutVertexArray,Ro.x,Ro.y,Js.x,Js.y,0,0,Io),jn(this.layoutVertexArray,Ro.x,Ro.y,Js.x,Js.y,0,1,Io),jn(this.layoutVertexArray,lo.x,lo.y,Js.x,Js.y,0,0,Io+=Ua),jn(this.layoutVertexArray,lo.x,lo.y,Js.x,Js.y,0,1,Io);var _l=br.vertexLength;this.indexArray.emplaceBack(_l,_l+2,_l+1),this.indexArray.emplaceBack(_l+1,_l+2,_l+3),br.vertexLength+=4,br.primitiveLength+=2}}}}if(br.vertexLength+Ut>ki.MAX_VERTEX_ARRAY_LENGTH&&(br=this.segments.prepareSegment(Ut,this.layoutVertexArray,this.indexArray)),Or[f.type]==="Polygon"){for(var fu=[],zu=[],Lu=br.vertexLength,od=0,wu=qe;od=2&&f[Ut-1].equals(f[Ut-2]);)Ut--;for(var rn=0;rn0;if(zu&&Ro>rn){var od=Qn.dist(Ii);if(od>2*br){var wu=Qn.sub(Qn.sub(Ii)._mult(br/od)._round());this.updateDistance(Ii,wu),this.addCurrentVertex(wu,Io,0,0,Ci),Ii=wu}}var zc=Ii&&Po,Nn=zc?T:qe?"butt":W;if(zc&&Nn==="round"&&(_lre&&(Nn="bevel"),Nn==="bevel"&&(_l>2&&(Nn="flipbevel"),_l100)lo=Zo.mult(-1);else{var or=_l*Io.add(Zo).mag()/Io.sub(Zo).mag();lo._perp()._mult(or*(Lu?-1:1))}this.addCurrentVertex(Qn,lo,0,0,Ci),this.addCurrentVertex(Qn,lo.mult(-1),0,0,Ci)}else if(Nn==="bevel"||Nn==="fakeround"){var Wr=-Math.sqrt(_l*_l-1),hi=Lu?Wr:0,io=Lu?0:Wr;if(Ii&&this.addCurrentVertex(Qn,Io,hi,io,Ci),Nn==="fakeround")for(var ia=Math.round(180*fu/Math.PI/20),rl=1;rl2*br){var ah=Qn.add(Po.sub(Qn)._mult(br/Tc)._round());this.updateDistance(Qn,ah),this.addCurrentVertex(ah,Zo,0,0,Ci),Qn=ah}}}}},po.prototype.addCurrentVertex=function(f,y,T,W,re,he){he===void 0&&(he=!1);var Le=y.y*W-y.x,qe=-y.y-y.x*W;this.addHalfVertex(f,y.x+y.y*T,y.y-y.x*T,he,!1,T,re),this.addHalfVertex(f,Le,qe,he,!0,-W,re),this.distance>Wo/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(f,y,T,W,re,he))},po.prototype.addHalfVertex=function(f,y,T,W,re,he,Le){var qe=.5*(this.lineClips?this.scaledDistance*(Wo-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((f.x<<1)+(W?1:0),(f.y<<1)+(re?1:0),Math.round(63*y)+128,Math.round(63*T)+128,1+(he===0?0:he<0?-1:1)|(63&qe)<<2,qe>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var Ut=Le.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Ut),Le.primitiveLength++),re?this.e2=Ut:this.e1=Ut},po.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},po.prototype.updateDistance=function(f,y){this.distance+=f.dist(y),this.updateScaledDistance()},id("LineBucket",po,{omit:["layers","patternFeatures"]});var Uo=new pp({"line-cap":new Od(Xt.layout_line["line-cap"]),"line-join":new Fd(Xt.layout_line["line-join"]),"line-miter-limit":new Od(Xt.layout_line["line-miter-limit"]),"line-round-limit":new Od(Xt.layout_line["line-round-limit"]),"line-sort-key":new Fd(Xt.layout_line["line-sort-key"])}),xs={paint:new pp({"line-opacity":new Fd(Xt.paint_line["line-opacity"]),"line-color":new Fd(Xt.paint_line["line-color"]),"line-translate":new Od(Xt.paint_line["line-translate"]),"line-translate-anchor":new Od(Xt.paint_line["line-translate-anchor"]),"line-width":new Fd(Xt.paint_line["line-width"]),"line-gap-width":new Fd(Xt.paint_line["line-gap-width"]),"line-offset":new Fd(Xt.paint_line["line-offset"]),"line-blur":new Fd(Xt.paint_line["line-blur"]),"line-dasharray":new Ld(Xt.paint_line["line-dasharray"]),"line-pattern":new Nd(Xt.paint_line["line-pattern"]),"line-gradient":new Sf(Xt.paint_line["line-gradient"])}),layout:Uo},Xi=new(function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.possiblyEvaluate=function(T,W){return W=new gh(Math.floor(W.zoom),{now:W.now,fadeDuration:W.fadeDuration,zoomHistory:W.zoomHistory,transition:W.transition}),f.prototype.possiblyEvaluate.call(this,T,W)},y.prototype.evaluate=function(T,W,re,he){return W=de({},W,{zoom:Math.floor(W.zoom)}),f.prototype.evaluate.call(this,T,W,re,he)},y}(Fd))(xs.paint.properties["line-width"].specification);Xi.useIntegerZoom=!0;var ws=function(f){function y(T){f.call(this,T,xs),this.gradientVersion=0}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._handleSpecialPaintPropertyUpdate=function(T){T==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Gl,this.gradientVersion=(this.gradientVersion+1)%g)},y.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},y.prototype.recalculate=function(T,W){f.prototype.recalculate.call(this,T,W),this.paint._values["line-floorwidth"]=Xi.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,T)},y.prototype.createBucket=function(T){return new po(T)},y.prototype.queryRadius=function(T){var W=T,re=so(Wf("line-width",this,W),Wf("line-gap-width",this,W)),he=Wf("line-offset",this,W);return re/2+Math.abs(he)+Np(this.paint.get("line-translate"))},y.prototype.queryIntersectsFeature=function(T,W,re,he,Le,qe,Ut){var rn=Zp(T,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),qe.angle,Ut),Qn=Ut/2*so(this.paint.get("line-width").evaluate(W,re),this.paint.get("line-gap-width").evaluate(W,re)),br=this.paint.get("line-offset").evaluate(W,re);return br&&(he=function(Ci,Ii){for(var Po=[],Io=new k(0,0),Zo=0;Zo=3){for(var Ro=0;Ro0?y+2*f:f}var Wi=kh([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),va=kh([{name:"a_projected_pos",components:3,type:"Float32"}],4),ha=(kh([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),kh([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),qs=(kh([{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"}]),kh([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Yt=kh([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function ar(f,y,T){return f.sections.forEach(function(W){W.text=function(re,he,Le){var qe=he.layout.get("text-transform").evaluate(Le,{});return qe==="uppercase"?re=re.toLocaleUpperCase():qe==="lowercase"&&(re=re.toLocaleLowerCase()),Lp.applyArabicShaping&&(re=Lp.applyArabicShaping(re)),re}(W.text,y,T)}),f}kh([{name:"triangle",components:3,type:"Uint16"}]),kh([{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"}]),kh([{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",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),kh([{type:"Float32",name:"offsetX"}]),kh([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var oi={"!":"\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"},ps=function(f,y,T,W,re){var he,Le,qe=8*re-W-1,Ut=(1<>1,Qn=-7,br=T?re-1:0,Ci=T?-1:1,Ii=f[y+br];for(br+=Ci,he=Ii&(1<<-Qn)-1,Ii>>=-Qn,Qn+=qe;Qn>0;he=256*he+f[y+br],br+=Ci,Qn-=8);for(Le=he&(1<<-Qn)-1,he>>=-Qn,Qn+=W;Qn>0;Le=256*Le+f[y+br],br+=Ci,Qn-=8);if(he===0)he=1-rn;else{if(he===Ut)return Le?NaN:1/0*(Ii?-1:1);Le+=Math.pow(2,W),he-=rn}return(Ii?-1:1)*Le*Math.pow(2,he-W)},As=function(f,y,T,W,re,he){var Le,qe,Ut,rn=8*he-re-1,Qn=(1<>1,Ci=re===23?Math.pow(2,-24)-Math.pow(2,-77):0,Ii=W?0:he-1,Po=W?1:-1,Io=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(qe=isNaN(y)?1:0,Le=Qn):(Le=Math.floor(Math.log(y)/Math.LN2),y*(Ut=Math.pow(2,-Le))<1&&(Le--,Ut*=2),(y+=Le+br>=1?Ci/Ut:Ci*Math.pow(2,1-br))*Ut>=2&&(Le++,Ut/=2),Le+br>=Qn?(qe=0,Le=Qn):Le+br>=1?(qe=(y*Ut-1)*Math.pow(2,re),Le+=br):(qe=y*Math.pow(2,br-1)*Math.pow(2,re),Le=0));re>=8;f[T+Ii]=255&qe,Ii+=Po,qe/=256,re-=8);for(Le=Le<0;f[T+Ii]=255&Le,Ii+=Po,Le/=256,rn-=8);f[T+Ii-Po]|=128*Io},Aa=no;function no(f){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(f)?f:new Uint8Array(f||0),this.pos=0,this.type=0,this.length=this.buf.length}no.Varint=0,no.Fixed64=1,no.Bytes=2,no.Fixed32=5;var ao=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");function Mo(f){return f.type===no.Bytes?f.readVarint()+f.pos:f.pos+1}function ta(f,y,T){return T?4294967296*y+(f>>>0):4294967296*(y>>>0)+(f>>>0)}function oa(f,y,T){var W=y<=16383?1:y<=2097151?2:y<=268435455?3:Math.floor(Math.log(y)/(7*Math.LN2));T.realloc(W);for(var re=T.pos-1;re>=f;re--)T.buf[re+W]=T.buf[re]}function Ke(f,y){for(var T=0;T>>8,f[T+2]=y>>>16,f[T+3]=y>>>24}function Pa(f,y){return(f[y]|f[y+1]<<8|f[y+2]<<16)+(f[y+3]<<24)}function ja(f,y,T){f===1&&T.readMessage(Rl,y)}function Rl(f,y,T){if(f===3){var W=T.readMessage(Ga,{}),re=W.width,he=W.height,Le=W.left,qe=W.top,Ut=W.advance;y.push({id:W.id,bitmap:new Tm({width:re+6,height:he+6},W.bitmap),metrics:{width:re,height:he,left:Le,top:qe,advance:Ut}})}}function Ga(f,y,T){f===1?y.id=T.readVarint():f===2?y.bitmap=T.readBytes():f===3?y.width=T.readVarint():f===4?y.height=T.readVarint():f===5?y.left=T.readSVarint():f===6?y.top=T.readSVarint():f===7&&(y.advance=T.readVarint())}function yi(f){for(var y=0,T=0,W=0,re=f;W=0;Ci--){var Ii=Le[Ci];if(!(br.w>Ii.w||br.h>Ii.h)){if(br.x=Ii.x,br.y=Ii.y,Ut=Math.max(Ut,br.y+br.h),qe=Math.max(qe,br.x+br.w),br.w===Ii.w&&br.h===Ii.h){var Po=Le.pop();Ci>3,he=this.pos;this.type=7&W,f(re,y,this),this.pos===he&&this.skip(W)}return y},readMessage:function(f,y){return this.readFields(f,y,this.readVarint()+this.pos)},readFixed32:function(){var f=Sa(this.buf,this.pos);return this.pos+=4,f},readSFixed32:function(){var f=Pa(this.buf,this.pos);return this.pos+=4,f},readFixed64:function(){var f=Sa(this.buf,this.pos)+4294967296*Sa(this.buf,this.pos+4);return this.pos+=8,f},readSFixed64:function(){var f=Sa(this.buf,this.pos)+4294967296*Pa(this.buf,this.pos+4);return this.pos+=8,f},readFloat:function(){var f=ps(this.buf,this.pos,!0,23,4);return this.pos+=4,f},readDouble:function(){var f=ps(this.buf,this.pos,!0,52,8);return this.pos+=8,f},readVarint:function(f){var y,T,W=this.buf;return y=127&(T=W[this.pos++]),T<128?y:(y|=(127&(T=W[this.pos++]))<<7,T<128?y:(y|=(127&(T=W[this.pos++]))<<14,T<128?y:(y|=(127&(T=W[this.pos++]))<<21,T<128?y:function(re,he,Le){var qe,Ut,rn=Le.buf;if(qe=(112&(Ut=rn[Le.pos++]))>>4,Ut<128||(qe|=(127&(Ut=rn[Le.pos++]))<<3,Ut<128)||(qe|=(127&(Ut=rn[Le.pos++]))<<10,Ut<128)||(qe|=(127&(Ut=rn[Le.pos++]))<<17,Ut<128)||(qe|=(127&(Ut=rn[Le.pos++]))<<24,Ut<128)||(qe|=(1&(Ut=rn[Le.pos++]))<<31,Ut<128))return ta(re,qe,he);throw new Error("Expected varint not more than 10 bytes")}(y|=(15&(T=W[this.pos]))<<28,f,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var f=this.readVarint();return f%2==1?(f+1)/-2:f/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var f=this.readVarint()+this.pos,y=this.pos;return this.pos=f,f-y>=12&&ao?function(T,W,re){return ao.decode(T.subarray(W,re))}(this.buf,y,f):function(T,W,re){for(var he="",Le=W;Le239?4:Qn>223?3:Qn>191?2:1;if(Le+Ci>re)break;Ci===1?Qn<128&&(br=Qn):Ci===2?(192&(qe=T[Le+1]))==128&&(br=(31&Qn)<<6|63&qe)<=127&&(br=null):Ci===3?(Ut=T[Le+2],(192&(qe=T[Le+1]))==128&&(192&Ut)==128&&((br=(15&Qn)<<12|(63&qe)<<6|63&Ut)<=2047||br>=55296&&br<=57343)&&(br=null)):Ci===4&&(Ut=T[Le+2],rn=T[Le+3],(192&(qe=T[Le+1]))==128&&(192&Ut)==128&&(192&rn)==128&&((br=(15&Qn)<<18|(63&qe)<<12|(63&Ut)<<6|63&rn)<=65535||br>=1114112)&&(br=null)),br===null?(br=65533,Ci=1):br>65535&&(br-=65536,he+=String.fromCharCode(br>>>10&1023|55296),br=56320|1023&br),he+=String.fromCharCode(br),Le+=Ci}return he}(this.buf,y,f)},readBytes:function(){var f=this.readVarint()+this.pos,y=this.buf.subarray(this.pos,f);return this.pos=f,y},readPackedVarint:function(f,y){if(this.type!==no.Bytes)return f.push(this.readVarint(y));var T=Mo(this);for(f=f||[];this.pos127;);else if(y===no.Bytes)this.pos=this.readVarint()+this.pos;else if(y===no.Fixed32)this.pos+=4;else{if(y!==no.Fixed64)throw new Error("Unimplemented type: "+y);this.pos+=8}},writeTag:function(f,y){this.writeVarint(f<<3|y)},realloc:function(f){for(var y=this.length||16;y268435455||f<0?function(y,T){var W,re;if(y>=0?(W=y%4294967296|0,re=y/4294967296|0):(re=~(-y/4294967296),4294967295^(W=~(-y%4294967296))?W=W+1|0:(W=0,re=re+1|0)),y>=18446744073709552e3||y<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");T.realloc(10),function(he,Le,qe){qe.buf[qe.pos++]=127&he|128,he>>>=7,qe.buf[qe.pos++]=127&he|128,he>>>=7,qe.buf[qe.pos++]=127&he|128,he>>>=7,qe.buf[qe.pos++]=127&he|128,qe.buf[qe.pos]=127&(he>>>=7)}(W,0,T),function(he,Le){var qe=(7&he)<<4;Le.buf[Le.pos++]|=qe|((he>>>=3)?128:0),he&&(Le.buf[Le.pos++]=127&he|((he>>>=7)?128:0),he&&(Le.buf[Le.pos++]=127&he|((he>>>=7)?128:0),he&&(Le.buf[Le.pos++]=127&he|((he>>>=7)?128:0),he&&(Le.buf[Le.pos++]=127&he|((he>>>=7)?128:0),he&&(Le.buf[Le.pos++]=127&he)))))}(re,T)}(f,this):(this.realloc(4),this.buf[this.pos++]=127&f|(f>127?128:0),f<=127||(this.buf[this.pos++]=127&(f>>>=7)|(f>127?128:0),f<=127||(this.buf[this.pos++]=127&(f>>>=7)|(f>127?128:0),f<=127||(this.buf[this.pos++]=f>>>7&127))))},writeSVarint:function(f){this.writeVarint(f<0?2*-f-1:2*f)},writeBoolean:function(f){this.writeVarint(!!f)},writeString:function(f){f=String(f),this.realloc(4*f.length),this.pos++;var y=this.pos;this.pos=function(W,re,he){for(var Le,qe,Ut=0;Ut55295&&Le<57344){if(!qe){Le>56319||Ut+1===re.length?(W[he++]=239,W[he++]=191,W[he++]=189):qe=Le;continue}if(Le<56320){W[he++]=239,W[he++]=191,W[he++]=189,qe=Le;continue}Le=qe-55296<<10|Le-56320|65536,qe=null}else qe&&(W[he++]=239,W[he++]=191,W[he++]=189,qe=null);Le<128?W[he++]=Le:(Le<2048?W[he++]=Le>>6|192:(Le<65536?W[he++]=Le>>12|224:(W[he++]=Le>>18|240,W[he++]=Le>>12&63|128),W[he++]=Le>>6&63|128),W[he++]=63&Le|128)}return he}(this.buf,f,this.pos);var T=this.pos-y;T>=128&&oa(y,T,this),this.pos=y-1,this.writeVarint(T),this.pos+=T},writeFloat:function(f){this.realloc(4),As(this.buf,f,this.pos,!0,23,4),this.pos+=4},writeDouble:function(f){this.realloc(8),As(this.buf,f,this.pos,!0,52,8),this.pos+=8},writeBytes:function(f){var y=f.length;this.writeVarint(y),this.realloc(y);for(var T=0;T=128&&oa(T,W,this),this.pos=T-1,this.writeVarint(W),this.pos+=W},writeMessage:function(f,y,T){this.writeTag(f,no.Bytes),this.writeRawMessage(y,T)},writePackedVarint:function(f,y){y.length&&this.writeMessage(f,Ke,y)},writePackedSVarint:function(f,y){y.length&&this.writeMessage(f,sa,y)},writePackedBoolean:function(f,y){y.length&&this.writeMessage(f,Ys,y)},writePackedFloat:function(f,y){y.length&&this.writeMessage(f,ml,y)},writePackedDouble:function(f,y){y.length&&this.writeMessage(f,kl,y)},writePackedFixed32:function(f,y){y.length&&this.writeMessage(f,$s,y)},writePackedSFixed32:function(f,y){y.length&&this.writeMessage(f,Dl,y)},writePackedFixed64:function(f,y){y.length&&this.writeMessage(f,ra,y)},writePackedSFixed64:function(f,y){y.length&&this.writeMessage(f,ho,y)},writeBytesField:function(f,y){this.writeTag(f,no.Bytes),this.writeBytes(y)},writeFixed32Field:function(f,y){this.writeTag(f,no.Fixed32),this.writeFixed32(y)},writeSFixed32Field:function(f,y){this.writeTag(f,no.Fixed32),this.writeSFixed32(y)},writeFixed64Field:function(f,y){this.writeTag(f,no.Fixed64),this.writeFixed64(y)},writeSFixed64Field:function(f,y){this.writeTag(f,no.Fixed64),this.writeSFixed64(y)},writeVarintField:function(f,y){this.writeTag(f,no.Varint),this.writeVarint(y)},writeSVarintField:function(f,y){this.writeTag(f,no.Varint),this.writeSVarint(y)},writeStringField:function(f,y){this.writeTag(f,no.Bytes),this.writeString(y)},writeFloatField:function(f,y){this.writeTag(f,no.Fixed32),this.writeFloat(y)},writeDoubleField:function(f,y){this.writeTag(f,no.Fixed64),this.writeDouble(y)},writeBooleanField:function(f,y){this.writeVarintField(f,!!y)}};var ls=function(f,y){var T=y.pixelRatio,W=y.version,re=y.stretchX,he=y.stretchY,Le=y.content;this.paddedRect=f,this.pixelRatio=T,this.stretchX=re,this.stretchY=he,this.content=Le,this.version=W},ma={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};ma.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},ma.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},ma.tlbr.get=function(){return this.tl.concat(this.br)},ma.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(ls.prototype,ma);var ol=function(f,y){var T={},W={};this.haveRenderCallbacks=[];var re=[];this.addImages(f,T,re),this.addImages(y,W,re);var he=yi(re),Le=new qg({width:he.w||1,height:he.h||1});for(var qe in f){var Ut=f[qe],rn=T[qe].paddedRect;qg.copy(Ut.data,Le,{x:0,y:0},{x:rn.x+1,y:rn.y+1},Ut.data)}for(var Qn in y){var br=y[Qn],Ci=W[Qn].paddedRect,Ii=Ci.x+1,Po=Ci.y+1,Io=br.data.width,Zo=br.data.height;qg.copy(br.data,Le,{x:0,y:0},{x:Ii,y:Po},br.data),qg.copy(br.data,Le,{x:0,y:Zo-1},{x:Ii,y:Po-1},{width:Io,height:1}),qg.copy(br.data,Le,{x:0,y:0},{x:Ii,y:Po+Zo},{width:Io,height:1}),qg.copy(br.data,Le,{x:Io-1,y:0},{x:Ii-1,y:Po},{width:1,height:Zo}),qg.copy(br.data,Le,{x:0,y:0},{x:Ii+Io,y:Po},{width:1,height:Zo})}this.image=Le,this.iconPositions=T,this.patternPositions=W};ol.prototype.addImages=function(f,y,T){for(var W in f){var re=f[W],he={x:0,y:0,w:re.data.width+2,h:re.data.height+2};T.push(he),y[W]=new ls(he,re),re.hasRenderCallback&&this.haveRenderCallbacks.push(W)}},ol.prototype.patchUpdatedImages=function(f,y){for(var T in f.dispatchRenderCallbacks(this.haveRenderCallbacks),f.updatedImages)this.patchUpdatedImage(this.iconPositions[T],f.getImage(T),y),this.patchUpdatedImage(this.patternPositions[T],f.getImage(T),y)},ol.prototype.patchUpdatedImage=function(f,y,T){if(f&&y&&f.version!==y.version){f.version=y.version;var W=f.tl;T.update(y.data,void 0,{x:W[0],y:W[1]})}},id("ImagePosition",ls),id("ImageAtlas",ol);var xu={horizontal:1,vertical:2,horizontalOnly:3},vu=function(){this.scale=1,this.fontStack="",this.imageName=null};vu.forText=function(f,y){var T=new vu;return T.scale=f||1,T.fontStack=y,T},vu.forImage=function(f){var y=new vu;return y.imageName=f,y};var ka=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function xc(f,y,T,W,re,he,Le,qe,Ut,rn,Qn,br,Ci,Ii,Po,Io){var Zo,Ro=ka.fromFeature(f,re);br===xu.vertical&&Ro.verticalizePunctuation();var lo=Lp.processBidirectionalText,Js=Lp.processStyledBidirectionalText;if(lo&&Ro.sections.length===1){Zo=[];for(var Ua=0,_l=lo(Ro.toString(),Oc(Ro,rn,he,y,W,Ii,Po));Ua<_l.length;Ua+=1){var fu=_l[Ua],zu=new ka;zu.text=fu,zu.sections=Ro.sections;for(var Lu=0;Lu0&&Tr>Id&&(Id=Tr)}else{var li=ia[Vc.fontStack],Ri=li&&li[H];if(Ri&&Ri.rect)me=Ri.rect,te=Ri.metrics;else{var wo=io[Vc.fontStack],Ho=wo&&wo[H];if(!Ho)continue;te=Ho.metrics}F=24*(xf-Vc.scale)}gt?(hi.verticalizable=!0,ou.push({glyph:H,imageName:Ve,x:lh,y:sp+F,vertical:gt,scale:Vc.scale,fontStack:Vc.fontStack,sectionIndex:zd,metrics:te,rect:me}),lh+=bt*Vc.scale+ah):(ou.push({glyph:H,imageName:Ve,x:lh,y:sp+F,vertical:gt,scale:Vc.scale,fontStack:Vc.fontStack,sectionIndex:zd,metrics:te,rect:me}),lh+=te.advance*Vc.scale+ah)}ou.length!==0&&(Ip=Math.max(lh-ah,Ip),Dc(ou,0,ou.length-1,Fh,Id)),lh=0;var ys=ul*xf+Id;wf.lineOffset=Math.max(Id,pg),sp+=ys,wh=Math.max(ys,wh),++ss}else sp+=ul,++ss}var Ca,Fa=sp- -17,al=ud(nu),Wl=al.horizontalAlign,vl=al.verticalAlign;(function(Yl,Gu,sd,xh,Bf,Th,Dh,Yd,pf){var dh,Md=(Gu-sd)*Bf;dh=Th!==Dh?-Yd*xh- -17:(-xh*pf+.5)*Dh;for(var Qf=0,yf=Yl;Qf=0&&W>=f&&zl[this.text.charCodeAt(W)];W--)T--;this.text=this.text.substring(f,T),this.sectionIndex=this.sectionIndex.slice(f,T)},ka.prototype.substring=function(f,y){var T=new ka;return T.text=this.text.substring(f,y),T.sectionIndex=this.sectionIndex.slice(f,y),T.sections=this.sections,T},ka.prototype.toString=function(){return this.text},ka.prototype.getMaxScale=function(){var f=this;return this.sectionIndex.reduce(function(y,T){return Math.max(y,f.sections[T].scale)},0)},ka.prototype.addTextSection=function(f,y){this.text+=f.text,this.sections.push(vu.forText(f.scale,f.fontStack||y));for(var T=this.sections.length-1,W=0;W=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var zl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Zc={};function Du(f,y,T,W,re,he){if(y.imageName){var Le=W[y.imageName];return Le?Le.displaySize[0]*y.scale*24/he+re:0}var qe=T[y.fontStack],Ut=qe&&qe[f];return Ut?Ut.metrics.advance*y.scale+re:0}function Lc(f,y,T,W){var re=Math.pow(f-y,2);return W?f=0,br=0,Ci=0;Ci-T/2;){if(--Le<0)return!1;qe-=f[Le].dist(he),he=f[Le]}qe+=f[Le].dist(f[Le+1]),Le++;for(var Ut=[],rn=0;qeW;)rn-=Ut.shift().angleDelta;if(rn>re)return!1;Le++,qe+=Qn.dist(br)}return!0}function Zn(f){for(var y=0,T=0;Trn){var Po=(rn-Ut)/Ii,Io=fs(br.x,Ci.x,Po),Zo=fs(br.y,Ci.y,Po),Ro=new Nh(Io,Zo,Ci.angleTo(br),Qn);return Ro._round(),!Le||xi(f,Ro,qe,Le,y)?Ro:void 0}Ut+=Ii}}function La(f,y,T,W,re,he,Le,qe,Ut){var rn=ci(W,he,Le),Qn=So(W,re),br=Qn*Le,Ci=f[0].x===0||f[0].x===Ut||f[0].y===0||f[0].y===Ut;return y-br=0&&rl=0&&js=0&&wu+zu<=Lu){var ul=new Nh(rl,js,io,Nn);ul._round(),Ro&&!xi(Po,ul,Js,Ro,lo)||zc.push(ul)}}od+=hi}return _l||zc.length||Ua||(zc=Ii(Po,od/2,Zo,Ro,lo,Js,Ua,!0,fu)),zc}(f,Ci?y/2*qe%y:(Qn/2+2*he)*Le*qe%y,y,rn,T,br,Ci,!1,Ut)}function uu(f,y,T,W,re){for(var he=[],Le=0;Le=W&&br.x>=W||(Qn.x>=W?Qn=new k(W,Qn.y+(W-Qn.x)/(br.x-Qn.x)*(br.y-Qn.y))._round():br.x>=W&&(br=new k(W,Qn.y+(W-Qn.x)/(br.x-Qn.x)*(br.y-Qn.y))._round()),Qn.y>=re&&br.y>=re||(Qn.y>=re?Qn=new k(Qn.x+(re-Qn.y)/(br.y-Qn.y)*(br.x-Qn.x),re)._round():br.y>=re&&(br=new k(Qn.x+(re-Qn.y)/(br.y-Qn.y)*(br.x-Qn.x),re)._round()),Ut&&Qn.equals(Ut[Ut.length-1])||he.push(Ut=[Qn]),Ut.push(br)))))}return he}function Jo(f,y,T,W){var re=[],he=f.image,Le=he.pixelRatio,qe=he.paddedRect.w-2,Ut=he.paddedRect.h-2,rn=f.right-f.left,Qn=f.bottom-f.top,br=he.stretchX||[[0,qe]],Ci=he.stretchY||[[0,Ut]],Ii=function(rl,js){return rl+js[1]-js[0]},Po=br.reduce(Ii,0),Io=Ci.reduce(Ii,0),Zo=qe-Po,Ro=Ut-Io,lo=0,Js=Po,Ua=0,_l=Io,fu=0,zu=Zo,Lu=0,od=Ro;if(he.content&&W){var wu=he.content;lo=ya(br,0,wu[0]),Ua=ya(Ci,0,wu[1]),Js=ya(br,wu[0],wu[2]),_l=ya(Ci,wu[1],wu[3]),fu=wu[0]-lo,Lu=wu[1]-Ua,zu=wu[2]-wu[0]-Js,od=wu[3]-wu[1]-_l}var zc=function(rl,js,ul,nu){var ks=ts(rl.stretch-lo,Js,rn,f.left),Tc=Ma(rl.fixed-fu,zu,rl.stretch,Po),ah=ts(js.stretch-Ua,_l,Qn,f.top),kd=Ma(js.fixed-Lu,od,js.stretch,Io),Sd=ts(ul.stretch-lo,Js,rn,f.left),lh=Ma(ul.fixed-fu,zu,ul.stretch,Po),sp=ts(nu.stretch-Ua,_l,Qn,f.top),Ip=Ma(nu.fixed-Lu,od,nu.stretch,Io),wh=new k(ks,ah),Fh=new k(Sd,ah),ss=new k(Sd,sp),Ll=new k(ks,sp),hf=new k(Tc/Le,kd/Le),ff=new k(lh/Le,Ip/Le),xf=y*Math.PI/180;if(xf){var pg=Math.sin(xf),wf=Math.cos(xf),ou=[wf,-pg,pg,wf];wh._matMult(ou),Fh._matMult(ou),Ll._matMult(ou),ss._matMult(ou)}var Id=rl.stretch+rl.fixed,rf=js.stretch+js.fixed;return{tl:wh,tr:Fh,bl:Ll,br:ss,tex:{x:he.paddedRect.x+1+Id,y:he.paddedRect.y+1+rf,w:ul.stretch+ul.fixed-Id,h:nu.stretch+nu.fixed-rf},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:hf,pixelOffsetBR:ff,minFontScaleX:zu/Le/rn,minFontScaleY:od/Le/Qn,isSDF:T}};if(W&&(he.stretchX||he.stretchY))for(var Nn=Ea(br,Zo,Po),or=Ea(Ci,Ro,Io),Wr=0;Wr0&&(Ii=Math.max(10,Ii),this.circleDiameter=Ii)}else{var Po=he.top*Le-qe,Io=he.bottom*Le+qe,Zo=he.left*Le-qe,Ro=he.right*Le+qe,lo=he.collisionPadding;if(lo&&(Zo-=lo[0]*Le,Po-=lo[1]*Le,Ro+=lo[2]*Le,Io+=lo[3]*Le),rn){var Js=new k(Zo,Po),Ua=new k(Ro,Po),_l=new k(Zo,Io),fu=new k(Ro,Io),zu=rn*Math.PI/180;Js._rotate(zu),Ua._rotate(zu),_l._rotate(zu),fu._rotate(zu),Zo=Math.min(Js.x,Ua.x,_l.x,fu.x),Ro=Math.max(Js.x,Ua.x,_l.x,fu.x),Po=Math.min(Js.y,Ua.y,_l.y,fu.y),Io=Math.max(Js.y,Ua.y,_l.y,fu.y)}f.emplaceBack(y.x,y.y,Zo,Po,Ro,Io,T,W,re)}this.boxEndIndex=f.length},go=function(f,y){if(f===void 0&&(f=[]),y===void 0&&(y=Vo),this.data=f,this.length=this.data.length,this.compare=y,this.length>0)for(var T=(this.length>>1)-1;T>=0;T--)this._down(T)};function Vo(f,y){return fy?1:0}function Fs(f,y,T){y===void 0&&(y=1),T===void 0&&(T=!1);for(var W=1/0,re=1/0,he=-1/0,Le=-1/0,qe=f[0],Ut=0;Uthe)&&(he=rn.x),(!Ut||rn.y>Le)&&(Le=rn.y)}var Qn=Math.min(he-W,Le-re),br=Qn/2,Ci=new go([],$l);if(Qn===0)return new k(W,re);for(var Ii=W;IiIo.d||!Io.d)&&(Io=Ro,T&&console.log("found best %d after %d probes",Math.round(1e4*Ro.d)/1e4,Zo)),Ro.max-Io.d<=y||(Ci.push(new Cl(Ro.p.x-(br=Ro.h/2),Ro.p.y-br,br,f)),Ci.push(new Cl(Ro.p.x+br,Ro.p.y-br,br,f)),Ci.push(new Cl(Ro.p.x-br,Ro.p.y+br,br,f)),Ci.push(new Cl(Ro.p.x+br,Ro.p.y+br,br,f)),Zo+=4)}return T&&(console.log("num probes: "+Zo),console.log("best distance: "+Io.d)),Io.p}function $l(f,y){return y.max-f.max}function Cl(f,y,T,W){this.p=new k(f,y),this.h=T,this.d=function(re,he){for(var Le=!1,qe=1/0,Ut=0;Utre.y!=Po.y>re.y&&re.x<(Po.x-Ii.x)*(re.y-Ii.y)/(Po.y-Ii.y)+Ii.x&&(Le=!Le),qe=Math.min(qe,Wg(re,Ii,Po))}return(Le?1:-1)*Math.sqrt(qe)}(this.p,W),this.max=this.d+this.h*Math.SQRT2}go.prototype.push=function(f){this.data.push(f),this.length++,this._up(this.length-1)},go.prototype.pop=function(){if(this.length!==0){var f=this.data[0],y=this.data.pop();return this.length--,this.length>0&&(this.data[0]=y,this._down(0)),f}},go.prototype.peek=function(){return this.data[0]},go.prototype._up=function(f){for(var y=this.data,T=this.compare,W=y[f];f>0;){var re=f-1>>1,he=y[re];if(T(W,he)>=0)break;y[f]=he,f=re}y[f]=W},go.prototype._down=function(f){for(var y=this.data,T=this.compare,W=this.length>>1,re=y[f];f=0)break;y[f]=Le,f=he}y[f]=re};var Ra=Number.POSITIVE_INFINITY;function Xs(f,y){return y[1]!==Ra?function(T,W,re){var he=0,Le=0;switch(W=Math.abs(W),re=Math.abs(re),T){case"top-right":case"top-left":case"top":Le=re-7;break;case"bottom-right":case"bottom-left":case"bottom":Le=7-re}switch(T){case"top-right":case"bottom-right":case"right":he=-W;break;case"top-left":case"bottom-left":case"left":he=W}return[he,Le]}(f,y[0],y[1]):function(T,W){var re=0,he=0;W<0&&(W=0);var Le=W/Math.sqrt(2);switch(T){case"top-right":case"top-left":he=Le-7;break;case"bottom-right":case"bottom-left":he=7-Le;break;case"bottom":he=7-W;break;case"top":he=W-7}switch(T){case"top-right":case"bottom-right":re=-Le;break;case"top-left":case"bottom-left":re=Le;break;case"left":re=W;break;case"right":re=-W}return[re,he]}(f,y[0])}function Wa(f){switch(f){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Vs(f,y,T,W,re,he,Le,qe,Ut,rn,Qn,br,Ci,Ii,Po){var Io=function(Ua,_l,fu,zu,Lu,od,wu,zc){for(var Nn=zu.layout.get("text-rotate").evaluate(od,{})*Math.PI/180,or=[],Wr=0,hi=_l.positionedLines;Wr32640&&Ae(f.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):Zo.kind==="composite"&&((Ro=[128*Ii.compositeTextSizes[0].evaluate(Le,{},Po),128*Ii.compositeTextSizes[1].evaluate(Le,{},Po)])[0]>32640||Ro[1]>32640)&&Ae(f.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),f.addSymbols(f.text,Io,Ro,qe,he,Le,rn,y,Ut.lineStartIndex,Ut.lineLength,Ci,Po);for(var lo=0,Js=Qn;lo=0;Le--)if(W.dist(he[Le])0)&&(he.value.kind!=="constant"||he.value.value.length>0),rn=qe.value.kind!=="constant"||!!qe.value.value||Object.keys(qe.parameters).length>0,Qn=re.get("symbol-sort-key");if(this.features=[],Ut||rn){for(var br=y.iconDependencies,Ci=y.glyphDependencies,Ii=y.availableImages,Po=new gh(this.zoom),Io=0,Zo=f;Io=0;for(var io=0,ia=Lu.sections;io=0;qe--)he[qe]={x:y[qe].x,y:y[qe].y,tileUnitDistanceFromAnchor:re},qe>0&&(re+=y[qe-1].dist(y[qe]));for(var Ut=0;Ut0},za.prototype.hasIconData=function(){return this.icon.segments.get().length>0},za.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},za.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},za.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},za.prototype.addIndicesForPlacedSymbol=function(f,y){for(var T=f.placedSymbolArray.get(y),W=T.vertexStartIndex+4*T.numGlyphs,re=T.vertexStartIndex;re1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(f),this.sortedAngle=f,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var T=0,W=this.symbolInstanceIndexes;T=0&&qe.indexOf(he)===Le&&y.addIndicesForPlacedSymbol(y.text,he)}),re.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,re.verticalPlacedTextSymbolIndex),re.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,re.placedIconSymbolIndex),re.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,re.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},id("SymbolBucket",za,{omit:["layers","collisionBoxArray","features","compareText"]}),za.MAX_GLYPHS=65535,za.addDynamicAttributes=Uu;var Ql=new pp({"symbol-placement":new Od(Xt.layout_symbol["symbol-placement"]),"symbol-spacing":new Od(Xt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Od(Xt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Fd(Xt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Od(Xt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Od(Xt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Od(Xt.layout_symbol["icon-ignore-placement"]),"icon-optional":new Od(Xt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Od(Xt.layout_symbol["icon-rotation-alignment"]),"icon-size":new Fd(Xt.layout_symbol["icon-size"]),"icon-text-fit":new Od(Xt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Od(Xt.layout_symbol["icon-text-fit-padding"]),"icon-image":new Fd(Xt.layout_symbol["icon-image"]),"icon-rotate":new Fd(Xt.layout_symbol["icon-rotate"]),"icon-padding":new Od(Xt.layout_symbol["icon-padding"]),"icon-keep-upright":new Od(Xt.layout_symbol["icon-keep-upright"]),"icon-offset":new Fd(Xt.layout_symbol["icon-offset"]),"icon-anchor":new Fd(Xt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Od(Xt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Od(Xt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Od(Xt.layout_symbol["text-rotation-alignment"]),"text-field":new Fd(Xt.layout_symbol["text-field"]),"text-font":new Fd(Xt.layout_symbol["text-font"]),"text-size":new Fd(Xt.layout_symbol["text-size"]),"text-max-width":new Fd(Xt.layout_symbol["text-max-width"]),"text-line-height":new Od(Xt.layout_symbol["text-line-height"]),"text-letter-spacing":new Fd(Xt.layout_symbol["text-letter-spacing"]),"text-justify":new Fd(Xt.layout_symbol["text-justify"]),"text-radial-offset":new Fd(Xt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Od(Xt.layout_symbol["text-variable-anchor"]),"text-anchor":new Fd(Xt.layout_symbol["text-anchor"]),"text-max-angle":new Od(Xt.layout_symbol["text-max-angle"]),"text-writing-mode":new Od(Xt.layout_symbol["text-writing-mode"]),"text-rotate":new Fd(Xt.layout_symbol["text-rotate"]),"text-padding":new Od(Xt.layout_symbol["text-padding"]),"text-keep-upright":new Od(Xt.layout_symbol["text-keep-upright"]),"text-transform":new Fd(Xt.layout_symbol["text-transform"]),"text-offset":new Fd(Xt.layout_symbol["text-offset"]),"text-allow-overlap":new Od(Xt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Od(Xt.layout_symbol["text-ignore-placement"]),"text-optional":new Od(Xt.layout_symbol["text-optional"])}),lu={paint:new pp({"icon-opacity":new Fd(Xt.paint_symbol["icon-opacity"]),"icon-color":new Fd(Xt.paint_symbol["icon-color"]),"icon-halo-color":new Fd(Xt.paint_symbol["icon-halo-color"]),"icon-halo-width":new Fd(Xt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Fd(Xt.paint_symbol["icon-halo-blur"]),"icon-translate":new Od(Xt.paint_symbol["icon-translate"]),"icon-translate-anchor":new Od(Xt.paint_symbol["icon-translate-anchor"]),"text-opacity":new Fd(Xt.paint_symbol["text-opacity"]),"text-color":new Fd(Xt.paint_symbol["text-color"],{runtimeType:gi,getOverride:function(f){return f.textColor},hasOverride:function(f){return!!f.textColor}}),"text-halo-color":new Fd(Xt.paint_symbol["text-halo-color"]),"text-halo-width":new Fd(Xt.paint_symbol["text-halo-width"]),"text-halo-blur":new Fd(Xt.paint_symbol["text-halo-blur"]),"text-translate":new Od(Xt.paint_symbol["text-translate"]),"text-translate-anchor":new Od(Xt.paint_symbol["text-translate-anchor"])}),layout:Ql},wc=function(f){this.type=f.property.overrides?f.property.overrides.runtimeType:qr,this.defaultValue=f};wc.prototype.evaluate=function(f){if(f.formattedSection){var y=this.defaultValue.property.overrides;if(y&&y.hasOverride(f.formattedSection))return y.getOverride(f.formattedSection)}return f.feature&&f.featureState?this.defaultValue.evaluate(f.feature,f.featureState):this.defaultValue.property.specification.default},wc.prototype.eachChild=function(f){this.defaultValue.isConstant()||f(this.defaultValue.value._styleExpression.expression)},wc.prototype.outputDefined=function(){return!1},wc.prototype.serialize=function(){return null},id("FormatSectionOverride",wc,{omit:["defaultValue"]});var Zd=function(f){function y(T){f.call(this,T,lu)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.recalculate=function(T,W){if(f.prototype.recalculate.call(this,T,W),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")),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 re=this.layout.get("text-writing-mode");if(re){for(var he=[],Le=0,qe=re;Le",targetMapId:W,sourceMapId:he.mapId})}}},Of.prototype.receive=function(f){var y=f.data,T=y.id;if(T&&(!y.targetMapId||this.mapId===y.targetMapId))if(y.type===""){delete this.tasks[T];var W=this.cancelCallbacks[T];delete this.cancelCallbacks[T],W&&W()}else Ie()||y.mustQueue?(this.tasks[T]=y,this.taskQueue.push(T),this.invoker.trigger()):this.processTask(T,y)},Of.prototype.process=function(){if(this.taskQueue.length){var f=this.taskQueue.shift(),y=this.tasks[f];delete this.tasks[f],this.taskQueue.length&&this.invoker.trigger(),y&&this.processTask(f,y)}},Of.prototype.processTask=function(f,y){var T=this;if(y.type===""){var W=this.callbacks[f];delete this.callbacks[f],W&&(y.error?W(Fi(y.error)):W(null,Fi(y.data)))}else{var re=!1,he=Kt(this.globalScope)?void 0:[],Le=y.hasCallback?function(Qn,br){re=!0,delete T.cancelCallbacks[f],T.target.postMessage({id:f,type:"",sourceMapId:T.mapId,error:Qn?Cc(Qn):null,data:Cc(br,he)},he)}:function(Qn){re=!0},qe=null,Ut=Fi(y.data);if(this.parent[y.type])qe=this.parent[y.type](y.sourceMapId,Ut,Le);else if(this.parent.getWorkerSource){var rn=y.type.split(".");qe=this.parent.getWorkerSource(y.sourceMapId,rn[0],Ut.source)[rn[1]](Ut,Le)}else Le(new Error("Could not find function "+y.type));!re&&qe&&qe.cancel&&(this.cancelCallbacks[f]=qe.cancel)}},Of.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Af=function(f,y){f&&(y?this.setSouthWest(f).setNorthEast(y):f.length===4?this.setSouthWest([f[0],f[1]]).setNorthEast([f[2],f[3]]):this.setSouthWest(f[0]).setNorthEast(f[1]))};Af.prototype.setNorthEast=function(f){return this._ne=f instanceof op?new op(f.lng,f.lat):op.convert(f),this},Af.prototype.setSouthWest=function(f){return this._sw=f instanceof op?new op(f.lng,f.lat):op.convert(f),this},Af.prototype.extend=function(f){var y,T,W=this._sw,re=this._ne;if(f instanceof op)y=f,T=f;else{if(!(f instanceof Af))return Array.isArray(f)?f.length===4||f.every(Array.isArray)?this.extend(Af.convert(f)):this.extend(op.convert(f)):this;if(T=f._ne,!(y=f._sw)||!T)return this}return W||re?(W.lng=Math.min(y.lng,W.lng),W.lat=Math.min(y.lat,W.lat),re.lng=Math.max(T.lng,re.lng),re.lat=Math.max(T.lat,re.lat)):(this._sw=new op(y.lng,y.lat),this._ne=new op(T.lng,T.lat)),this},Af.prototype.getCenter=function(){return new op((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Af.prototype.getSouthWest=function(){return this._sw},Af.prototype.getNorthEast=function(){return this._ne},Af.prototype.getNorthWest=function(){return new op(this.getWest(),this.getNorth())},Af.prototype.getSouthEast=function(){return new op(this.getEast(),this.getSouth())},Af.prototype.getWest=function(){return this._sw.lng},Af.prototype.getSouth=function(){return this._sw.lat},Af.prototype.getEast=function(){return this._ne.lng},Af.prototype.getNorth=function(){return this._ne.lat},Af.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Af.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Af.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Af.prototype.contains=function(f){var y=op.convert(f),T=y.lng,W=y.lat,re=this._sw.lng<=T&&T<=this._ne.lng;return this._sw.lng>this._ne.lng&&(re=this._sw.lng>=T&&T>=this._ne.lng),this._sw.lat<=W&&W<=this._ne.lat&&re},Af.convert=function(f){return!f||f instanceof Af?f:new Af(f)};var op=function(f,y){if(isNaN(f)||isNaN(y))throw new Error("Invalid LngLat object: ("+f+", "+y+")");if(this.lng=+f,this.lat=+y,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};op.prototype.wrap=function(){return new op(ce(this.lng,-180,180),this.lat)},op.prototype.toArray=function(){return[this.lng,this.lat]},op.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},op.prototype.distanceTo=function(f){var y=Math.PI/180,T=this.lat*y,W=f.lat*y,re=Math.sin(T)*Math.sin(W)+Math.cos(T)*Math.cos(W)*Math.cos((f.lng-this.lng)*y);return 63710088e-1*Math.acos(Math.min(re,1))},op.prototype.toBounds=function(f){f===void 0&&(f=0);var y=360*f/40075017,T=y/Math.cos(Math.PI/180*this.lat);return new Af(new op(this.lng-T,this.lat-y),new op(this.lng+T,this.lat+y))},op.convert=function(f){if(f instanceof op)return f;if(Array.isArray(f)&&(f.length===2||f.length===3))return new op(Number(f[0]),Number(f[1]));if(!Array.isArray(f)&&typeof f=="object"&&f!==null)return new op(Number("lng"in f?f.lng:f.lon),Number(f.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 Qm=2*Math.PI*63710088e-1;function yp(f){return Qm*Math.cos(f*Math.PI/180)}function Vp(f){return(180+f)/360}function Mc(f){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+f*Math.PI/360)))/360}function cm(f,y){return f/yp(y)}function C0(f){return 360/Math.PI*Math.atan(Math.exp((180-360*f)*Math.PI/180))-90}var pc=function(f,y,T){T===void 0&&(T=0),this.x=+f,this.y=+y,this.z=+T};pc.fromLngLat=function(f,y){y===void 0&&(y=0);var T=op.convert(f);return new pc(Vp(T.lng),Mc(T.lat),cm(y,T.lat))},pc.prototype.toLngLat=function(){return new op(360*this.x-180,C0(this.y))},pc.prototype.toAltitude=function(){return this.z*yp(C0(this.y))},pc.prototype.meterInMercatorCoordinateUnits=function(){return 1/Qm*(f=C0(this.y),1/Math.cos(f*Math.PI/180));var f};var Nu=function(f,y,T){this.z=f,this.x=y,this.y=T,this.key=sg(0,f,f,y,T)};Nu.prototype.equals=function(f){return this.z===f.z&&this.x===f.x&&this.y===f.y},Nu.prototype.url=function(f,y){var T,W,re,he,Le,qe=(W=this.y,re=this.z,he=Ag(256*(T=this.x),256*(W=Math.pow(2,re)-W-1),re),Le=Ag(256*(T+1),256*(W+1),re),he[0]+","+he[1]+","+Le[0]+","+Le[1]),Ut=function(rn,Qn,br){for(var Ci,Ii="",Po=rn;Po>0;Po--)Ii+=(Qn&(Ci=1<this.canonical.z?new Wm(f,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Wm(f,this.wrap,f,this.canonical.x>>y,this.canonical.y>>y)},Wm.prototype.calculateScaledKey=function(f,y){var T=this.canonical.z-f;return f>this.canonical.z?sg(this.wrap*+y,f,this.canonical.z,this.canonical.x,this.canonical.y):sg(this.wrap*+y,f,f,this.canonical.x>>T,this.canonical.y>>T)},Wm.prototype.isChildOf=function(f){if(f.wrap!==this.wrap)return!1;var y=this.canonical.z-f.canonical.z;return f.overscaledZ===0||f.overscaledZ>y&&f.canonical.y===this.canonical.y>>y},Wm.prototype.children=function(f){if(this.overscaledZ>=f)return[new Wm(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var y=this.canonical.z+1,T=2*this.canonical.x,W=2*this.canonical.y;return[new Wm(y,this.wrap,y,T,W),new Wm(y,this.wrap,y,T+1,W),new Wm(y,this.wrap,y,T,W+1),new Wm(y,this.wrap,y,T+1,W+1)]},Wm.prototype.isLessThan=function(f){return this.wrapf.wrap)&&(this.overscaledZf.overscaledZ)&&(this.canonical.xf.canonical.x)&&this.canonical.y=this.dim+1||y<-1||y>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(y+1)*this.stride+(f+1)},Nf.prototype._unpackMapbox=function(f,y,T){return(256*f*256+256*y+T)/10-1e4},Nf.prototype._unpackTerrarium=function(f,y,T){return 256*f+y+T/256-32768},Nf.prototype.getPixels=function(){return new qg({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Nf.prototype.backfillBorder=function(f,y,T){if(this.dim!==f.dim)throw new Error("dem dimension mismatch");var W=y*this.dim,re=y*this.dim+this.dim,he=T*this.dim,Le=T*this.dim+this.dim;switch(y){case-1:W=re-1;break;case 1:re=W+1}switch(T){case-1:he=Le-1;break;case 1:Le=he+1}for(var qe=-y*this.dim,Ut=-T*this.dim,rn=he;rn=0&&Qn[3]>=0&&qe.insert(Le,Qn[0],Qn[1],Qn[2],Qn[3])}},a0.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Yr.VectorTile(new Aa(this.rawTileData)).layers,this.sourceLayerCoder=new S0(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},a0.prototype.query=function(f,y,T,W){var re=this;this.loadVTLayers();for(var he=f.params||{},Le=8192/f.tileSize/f.scale,qe=fd(he.filter),Ut=f.queryGeometry,rn=f.queryPadding*Le,Qn=Gs(Ut),br=this.grid.query(Qn.minX-rn,Qn.minY-rn,Qn.maxX+rn,Qn.maxY+rn),Ci=Gs(f.cameraQueryGeometry),Ii=this.grid3D.query(Ci.minX-rn,Ci.minY-rn,Ci.maxX+rn,Ci.maxY+rn,function(Ua,_l,fu,zu){return function(Lu,od,wu,zc,Nn){for(var or=0,Wr=Lu;or=hi.x&&Nn>=hi.y)return!0}var io=[new k(od,wu),new k(od,Nn),new k(zc,Nn),new k(zc,wu)];if(Lu.length>2){for(var ia=0,rl=io;ia=0)return!0;return!1}(he,br)){var Ci=this.sourceLayerCoder.decode(T),Ii=this.vtLayers[Ci].feature(W);if(re.needGeometry){var Po=hd(Ii,!0);if(!re.filter(new gh(this.tileID.overscaledZ),Po,this.tileID.canonical))return}else if(!re.filter(new gh(this.tileID.overscaledZ),Ii))return;for(var Io=this.getId(Ii,Ci),Zo=0;ZoW)re=!1;else if(y)if(this.expirationTimeyn&&(f.getActor().send("enforceCacheSizeLimit",Jt),wr=0)},w.clamp=K,w.clearTileCache=function(f){var y=C.caches.delete("mapbox-tiles");f&&y.catch(f).then(function(){return f()})},w.clipLine=uu,w.clone=function(f){var y=new of(16);return y[0]=f[0],y[1]=f[1],y[2]=f[2],y[3]=f[3],y[4]=f[4],y[5]=f[5],y[6]=f[6],y[7]=f[7],y[8]=f[8],y[9]=f[9],y[10]=f[10],y[11]=f[11],y[12]=f[12],y[13]=f[13],y[14]=f[14],y[15]=f[15],y},w.clone$1=Pe,w.clone$2=function(f){var y=new of(3);return y[0]=f[0],y[1]=f[1],y[2]=f[2],y},w.collisionCircleLayout=Yt,w.config=ii,w.create=function(){var f=new of(16);return of!=Float32Array&&(f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[11]=0,f[12]=0,f[13]=0,f[14]=0),f[0]=1,f[5]=1,f[10]=1,f[15]=1,f},w.create$1=function(){var f=new of(9);return of!=Float32Array&&(f[1]=0,f[2]=0,f[3]=0,f[5]=0,f[6]=0,f[7]=0),f[0]=1,f[4]=1,f[8]=1,f},w.create$2=function(){var f=new of(4);return of!=Float32Array&&(f[1]=0,f[2]=0),f[0]=1,f[3]=1,f},w.createCommonjsModule=b,w.createExpression=Wd,w.createLayout=kh,w.createStyleLayer=function(f){return f.type==="custom"?new w0(f):new jm[f.type](f)},w.cross=function(f,y,T){var W=y[0],re=y[1],he=y[2],Le=T[0],qe=T[1],Ut=T[2];return f[0]=re*Ut-he*qe,f[1]=he*Le-W*Ut,f[2]=W*qe-re*Le,f},w.deepEqual=function f(y,T){if(Array.isArray(y)){if(!Array.isArray(T)||y.length!==T.length)return!1;for(var W=0;W0&&(he=1/Math.sqrt(he)),f[0]=y[0]*he,f[1]=y[1]*he,f[2]=y[2]*he,f},w.number=fs,w.offscreenCanvasSupported=Sr,w.ortho=function(f,y,T,W,re,he,Le){var qe=1/(y-T),Ut=1/(W-re),rn=1/(he-Le);return f[0]=-2*qe,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=-2*Ut,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=2*rn,f[11]=0,f[12]=(y+T)*qe,f[13]=(re+W)*Ut,f[14]=(Le+he)*rn,f[15]=1,f},w.parseGlyphPBF=function(f){return new Aa(f).readFields(ja,[])},w.pbf=Aa,w.performSymbolLayout=function(f,y,T,W,re,he,Le){f.createArrays(),f.tilePixelRatio=8192/(512*f.overscaling),f.compareText={},f.iconsNeedLinear=!1;var qe=f.layers[0].layout,Ut=f.layers[0]._unevaluatedLayout._values,rn={};if(f.textSizeData.kind==="composite"){var Qn=f.textSizeData,br=Qn.maxZoom;rn.compositeTextSizes=[Ut["text-size"].possiblyEvaluate(new gh(Qn.minZoom),Le),Ut["text-size"].possiblyEvaluate(new gh(br),Le)]}if(f.iconSizeData.kind==="composite"){var Ci=f.iconSizeData,Ii=Ci.maxZoom;rn.compositeIconSizes=[Ut["icon-size"].possiblyEvaluate(new gh(Ci.minZoom),Le),Ut["icon-size"].possiblyEvaluate(new gh(Ii),Le)]}rn.layoutTextSize=Ut["text-size"].possiblyEvaluate(new gh(f.zoom+1),Le),rn.layoutIconSize=Ut["icon-size"].possiblyEvaluate(new gh(f.zoom+1),Le),rn.textMaxSize=Ut["text-size"].possiblyEvaluate(new gh(18));for(var Po=24*qe.get("text-line-height"),Io=qe.get("text-rotation-alignment")==="map"&&qe.get("symbol-placement")!=="point",Zo=qe.get("text-keep-upright"),Ro=qe.get("text-size"),lo=function(){var _l=Ua[Js],fu=qe.get("text-font").evaluate(_l,{},Le).join(","),zu=Ro.evaluate(_l,{},Le),Lu=rn.layoutTextSize.evaluate(_l,{},Le),od=rn.layoutIconSize.evaluate(_l,{},Le),wu={horizontal:{},vertical:void 0},zc=_l.text,Nn=[0,0];if(zc){var or=zc.toString(),Wr=24*qe.get("text-letter-spacing").evaluate(_l,{},Le),hi=function(Ll){for(var hf=0,ff=Ll;hf=8192||nd.y<0||nd.y>=8192||function(dc,ih,Ud,qh,ep,Ah,Zf,Kf,Lg,Cf,zg,bm,Am,E0,xg,Fg,ny,_v,Gp,g0,Zm,zm,wp,Lv,Ly){var Qv,L0,u1,km,dv,My=dc.addToLineVertexArray(ih,Ud),Di=0,h_=0,Yy=0,b1=0,_y=-1,bv=-1,T0={},f_=$o(""),x1=0,c1=0;if(Kf._unevaluatedLayout.getValue("text-radial-offset")===void 0?(x1=(Qv=Kf.layout.get("text-offset").evaluate(Zm,{},Lv).map(function(dm){return 24*dm}))[0],c1=Qv[1]):(x1=24*Kf.layout.get("text-radial-offset").evaluate(Zm,{},Lv),c1=Ra),dc.allowVerticalPlacement&&qh.vertical){var Ry=Kf.layout.get("text-rotate").evaluate(Zm,{},Lv)+90;km=new Ls(Lg,ih,Cf,zg,bm,qh.vertical,Am,E0,xg,Ry),Zf&&(dv=new Ls(Lg,ih,Cf,zg,bm,Zf,ny,_v,xg,Ry))}if(ep){var $0=Kf.layout.get("icon-rotate").evaluate(Zm,{}),tv=Kf.layout.get("icon-text-fit")!=="none",e1=Jo(ep,$0,wp,tv),V0=Zf?Jo(Zf,$0,wp,tv):void 0;u1=new Ls(Lg,ih,Cf,zg,bm,ep,ny,_v,!1,$0),Di=4*e1.length;var Tv=dc.iconSizeData,M0=null;Tv.kind==="source"?(M0=[128*Kf.layout.get("icon-size").evaluate(Zm,{})])[0]>32640&&Ae(dc.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):Tv.kind==="composite"&&((M0=[128*zm.compositeIconSizes[0].evaluate(Zm,{},Lv),128*zm.compositeIconSizes[1].evaluate(Zm,{},Lv)])[0]>32640||M0[1]>32640)&&Ae(dc.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),dc.addSymbols(dc.icon,e1,M0,g0,Gp,Zm,!1,ih,My.lineStartIndex,My.lineLength,-1,Lv),_y=dc.icon.placedSymbolArray.length-1,V0&&(h_=4*V0.length,dc.addSymbols(dc.icon,V0,M0,g0,Gp,Zm,xu.vertical,ih,My.lineStartIndex,My.lineLength,-1,Lv),bv=dc.icon.placedSymbolArray.length-1)}for(var N_ in qh.horizontal){var B1=qh.horizontal[N_];if(!L0){f_=$o(B1.text);var Zv=Kf.layout.get("text-rotate").evaluate(Zm,{},Lv);L0=new Ls(Lg,ih,Cf,zg,bm,B1,Am,E0,xg,Zv)}var Fv=B1.positionedLines.length===1;if(Yy+=Vs(dc,ih,B1,Ah,Kf,xg,Zm,Fg,My,qh.vertical?xu.horizontal:xu.horizontalOnly,Fv?Object.keys(qh.horizontal):[N_],T0,_y,zm,Lv),Fv)break}qh.vertical&&(b1+=Vs(dc,ih,qh.vertical,Ah,Kf,xg,Zm,Fg,My,xu.vertical,["vertical"],T0,bv,zm,Lv));var t1=L0?L0.boxStartIndex:dc.collisionBoxArray.length,w1=L0?L0.boxEndIndex:dc.collisionBoxArray.length,C1=km?km.boxStartIndex:dc.collisionBoxArray.length,by=km?km.boxEndIndex:dc.collisionBoxArray.length,F_=u1?u1.boxStartIndex:dc.collisionBoxArray.length,Bv=u1?u1.boxEndIndex:dc.collisionBoxArray.length,ab=dv?dv.boxStartIndex:dc.collisionBoxArray.length,lb=dv?dv.boxEndIndex:dc.collisionBoxArray.length,z1=-1,p_=function(dm,Hb){return dm&&dm.circleDiameter?Math.max(dm.circleDiameter,Hb):Hb};z1=p_(L0,z1),z1=p_(km,z1),z1=p_(u1,z1);var Px=(z1=p_(dv,z1))>-1?1:0;Px&&(z1*=Ly/24),dc.glyphOffsetArray.length>=za.MAX_GLYPHS&&Ae("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Zm.sortKey!==void 0&&dc.addToSortKeyRanges(dc.symbolInstances.length,Zm.sortKey),dc.symbolInstances.emplaceBack(ih.x,ih.y,T0.right>=0?T0.right:-1,T0.center>=0?T0.center:-1,T0.left>=0?T0.left:-1,T0.vertical||-1,_y,bv,f_,t1,w1,C1,by,F_,Bv,ab,lb,Cf,Yy,b1,Di,h_,Px,0,Am,x1,c1,z1)}(Ll,nd,Su,ff,xf,pg,F,Ll.layers[0],Ll.collisionBoxArray,hf.index,hf.sourceLayerIndex,Ll.index,gt,li,Ho,rf,En,Ri,ys,me,hf,wf,Vc,zd,ou)};if(Ca==="line")for(var vl=0,Yl=uu(hf.geometry,0,0,8192,8192);vl1){var pf=Zs(Yd,wo,ff.vertical||Ve,xf,24,Qt);pf&&Wl(Yd,pf)}}else if(hf.type==="Polygon")for(var dh=0,Md=nn(hf.geometry,0);dh=rs.maxzoom||rs.visibility!=="none"&&(C(Qi,this.zoom,gn),(An[rs.id]=rs.createBucket({index:Xt.bucketLayerIDs.length,layers:Qi,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Hr,sourceID:this.source})).populate(di,Xn,this.tileID.canonical),Xt.bucketLayerIDs.push(Qi.map(function(is){return is.id})))}}}var Ur=w.mapObject(Xn.glyphDependencies,function(is){return Object.keys(is).map(Number)});Object.keys(Ur).length?$n.send("getGlyphs",{uid:this.uid,stacks:Ur},function(is,Jr){Cn||(Cn=is,er=Jr,ri.call(Dr))}):er={};var gs=Object.keys(Xn.iconDependencies);gs.length?$n.send("getImages",{icons:gs,source:this.source,tileID:this.tileID,type:"icons"},function(is,Jr){Cn||(Cn=is,Mr=Jr,ri.call(Dr))}):Mr={};var Kr=Object.keys(Xn.patternDependencies);function ri(){if(Cn)return Ar(Cn);if(er&&Mr&&ji){var is=new k(er),Jr=new w.ImageAtlas(Mr,ji);for(var _n in An){var Br=An[_n];Br instanceof w.SymbolBucket?(C(Br.layers,this.zoom,gn),w.performSymbolLayout(Br,er,is.positions,Mr,Jr.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Br.hasPattern&&(Br instanceof w.LineBucket||Br instanceof w.FillBucket||Br instanceof w.FillExtrusionBucket)&&(C(Br.layers,this.zoom,gn),Br.addFeatures(Xn,this.tileID.canonical,Jr.patternPositions))}this.status="done",Ar(null,{buckets:w.values(An).filter(function(es){return!es.isEmpty()}),featureIndex:Xt,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:is.image,imageAtlas:Jr,glyphMap:this.returnDependencies?er:null,iconMap:this.returnDependencies?Mr:null,glyphPositions:this.returnDependencies?is.positions:null})}}Kr.length?$n.send("getImages",{icons:Kr,source:this.source,tileID:this.tileID,type:"patterns"},function(is,Jr){Cn||(Cn=is,ji=Jr,ri.call(Dr))}):ji={},ri.call(this)};var A=function(It,Zt,gn,$n){this.actor=It,this.layerIndex=Zt,this.availableImages=gn,this.loadVectorData=$n||g,this.loading={},this.loaded={}};A.prototype.loadTile=function(It,Zt){var gn=this,$n=It.uid;this.loading||(this.loading={});var Ar=!!(It&&It.request&&It.request.collectResourceTiming)&&new w.RequestPerformance(It.request),Dr=this.loading[$n]=new M(It);Dr.abort=this.loadVectorData(It,function(dr,Xt){if(delete gn.loading[$n],dr||!Xt)return Dr.status="done",gn.loaded[$n]=Dr,Zt(dr);var Cn=Xt.rawData,er={};Xt.expires&&(er.expires=Xt.expires),Xt.cacheControl&&(er.cacheControl=Xt.cacheControl);var Mr={};if(Ar){var ji=Ar.finish();ji&&(Mr.resourceTiming=JSON.parse(JSON.stringify(ji)))}Dr.vectorTile=Xt.vectorTile,Dr.parse(Xt.vectorTile,gn.layerIndex,gn.availableImages,gn.actor,function(An,Xn){if(An||!Xn)return Zt(An);Zt(null,w.extend({rawTileData:Cn.slice(0)},Xn,er,Mr))}),gn.loaded=gn.loaded||{},gn.loaded[$n]=Dr})},A.prototype.reloadTile=function(It,Zt){var gn=this,$n=this.loaded,Ar=It.uid,Dr=this;if($n&&$n[Ar]){var dr=$n[Ar];dr.showCollisionBoxes=It.showCollisionBoxes;var Xt=function(Cn,er){var Mr=dr.reloadCallback;Mr&&(delete dr.reloadCallback,dr.parse(dr.vectorTile,Dr.layerIndex,gn.availableImages,Dr.actor,Mr)),Zt(Cn,er)};dr.status==="parsing"?dr.reloadCallback=Xt:dr.status==="done"&&(dr.vectorTile?dr.parse(dr.vectorTile,this.layerIndex,this.availableImages,this.actor,Xt):Xt())}},A.prototype.abortTile=function(It,Zt){var gn=this.loading,$n=It.uid;gn&&gn[$n]&&gn[$n].abort&&(gn[$n].abort(),delete gn[$n]),Zt()},A.prototype.removeTile=function(It,Zt){var gn=this.loaded,$n=It.uid;gn&&gn[$n]&&delete gn[$n],Zt()};var O=w.window.ImageBitmap,K=function(){this.loaded={}};function ce(It,Zt){if(It.length!==0){de(It[0],Zt);for(var gn=1;gn=Math.abs(Xt)?gn-Cn+Xt:Xt-Cn+gn,gn=Cn}gn+$n>=0!=!!Zt&&It.reverse()}K.prototype.loadTile=function(It,Zt){var gn=It.uid,$n=It.encoding,Ar=It.rawImageData,Dr=O&&Ar instanceof O?this.getImageData(Ar):Ar,dr=new w.DEMData(gn,Dr,$n);this.loaded=this.loaded||{},this.loaded[gn]=dr,Zt(null,dr)},K.prototype.getImageData=function(It){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(It.width,It.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=It.width,this.offscreenCanvas.height=It.height,this.offscreenCanvasContext.drawImage(It,0,0,It.width,It.height);var Zt=this.offscreenCanvasContext.getImageData(-1,-1,It.width+2,It.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new w.RGBAImage({width:Zt.width,height:Zt.height},Zt.data)},K.prototype.removeTile=function(It){var Zt=this.loaded,gn=It.uid;Zt&&Zt[gn]&&delete Zt[gn]};var ve=w.vectorTile.VectorTileFeature.prototype.toGeoJSON,Ee=function(It){this._feature=It,this.extent=w.EXTENT,this.type=It.type,this.properties=It.tags,"id"in It&&!isNaN(It.id)&&(this.id=parseInt(It.id,10))};Ee.prototype.loadGeometry=function(){if(this._feature.type===1){for(var It=[],Zt=0,gn=this._feature.geometry;Zt>31}function ze(It,Zt){for(var gn=It.loadGeometry(),$n=It.type,Ar=0,Dr=0,dr=gn.length,Xt=0;Xt>1;(function Hr(di,gi,mi,Bi,zr,Xr){for(;zr>Bi;){if(zr-Bi>600){var Qi=zr-Bi+1,rs=mi-Bi+1,Ur=Math.log(Qi),gs=.5*Math.exp(2*Ur/3),Kr=.5*Math.sqrt(Ur*gs*(Qi-gs)/Qi)*(rs-Qi/2<0?-1:1);Hr(di,gi,mi,Math.max(Bi,Math.floor(mi-rs*gs/Qi+Kr)),Math.min(zr,Math.floor(mi+(Qi-rs)*gs/Qi+Kr)),Xr)}var ri=gi[2*mi+Xr],is=Bi,Jr=zr;for(St(di,gi,Bi,mi),gi[2*zr+Xr]>ri&&St(di,gi,Bi,zr);isri;)Jr--}gi[2*Bi+Xr]===ri?St(di,gi,Bi,Jr):St(di,gi,++Jr,zr),Jr<=mi&&(Bi=Jr+1),mi<=Jr&&(zr=Jr-1)}})(Mr,ji,vi,Xn,nr,qr%2),er(Mr,ji,An,Xn,vi-1,qr+1),er(Mr,ji,An,vi+1,nr,qr+1)}})(dr,Xt,$n,0,dr.length-1,0)};Rt.prototype.range=function(It,Zt,gn,$n){return function(Ar,Dr,dr,Xt,Cn,er,Mr){for(var ji,An,Xn=[0,Ar.length-1,0],nr=[];Xn.length;){var qr=Xn.pop(),vi=Xn.pop(),Hr=Xn.pop();if(vi-Hr<=Mr)for(var di=Hr;di<=vi;di++)An=Dr[2*di+1],(ji=Dr[2*di])>=dr&&ji<=Cn&&An>=Xt&&An<=er&&nr.push(Ar[di]);else{var gi=Math.floor((Hr+vi)/2);An=Dr[2*gi+1],(ji=Dr[2*gi])>=dr&&ji<=Cn&&An>=Xt&&An<=er&&nr.push(Ar[gi]);var mi=(qr+1)%2;(qr===0?dr<=ji:Xt<=An)&&(Xn.push(Hr),Xn.push(gi-1),Xn.push(mi)),(qr===0?Cn>=ji:er>=An)&&(Xn.push(gi+1),Xn.push(vi),Xn.push(mi))}}return nr}(this.ids,this.coords,It,Zt,gn,$n,this.nodeSize)},Rt.prototype.within=function(It,Zt,gn){return function($n,Ar,Dr,dr,Xt,Cn){for(var er=[0,$n.length-1,0],Mr=[],ji=Xt*Xt;er.length;){var An=er.pop(),Xn=er.pop(),nr=er.pop();if(Xn-nr<=Cn)for(var qr=nr;qr<=Xn;qr++)Ct(Ar[2*qr],Ar[2*qr+1],Dr,dr)<=ji&&Mr.push($n[qr]);else{var vi=Math.floor((nr+Xn)/2),Hr=Ar[2*vi],di=Ar[2*vi+1];Ct(Hr,di,Dr,dr)<=ji&&Mr.push($n[vi]);var gi=(An+1)%2;(An===0?Dr-Xt<=Hr:dr-Xt<=di)&&(er.push(nr),er.push(vi-1),er.push(gi)),(An===0?Dr+Xt>=Hr:dr+Xt>=di)&&(er.push(vi+1),er.push(Xn),er.push(gi))}}return Mr}(this.ids,this.coords,It,Zt,gn,this.nodeSize)};var an={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(It){return It}},cn=function(It){this.options=Ts(Object.create(an),It),this.trees=new Array(this.options.maxZoom+1)};function Cr(It,Zt,gn,$n,Ar){return{x:It,y:Zt,zoom:1/0,id:gn,parentId:-1,numPoints:$n,properties:Ar}}function ii(It,Zt){var gn=It.geometry.coordinates,$n=gn[1];return{x:Yi(gn[0]),y:ti($n),zoom:1/0,index:Zt,parentId:-1}}function Pi(It){return{type:"Feature",id:It.id,properties:Ni(It),geometry:{type:"Point",coordinates:[($n=It.x,360*($n-.5)),(Zt=It.y,gn=(180-360*Zt)*Math.PI/180,360*Math.atan(Math.exp(gn))/Math.PI-90)]}};var Zt,gn,$n}function Ni(It){var Zt=It.numPoints,gn=Zt>=1e4?Math.round(Zt/1e3)+"k":Zt>=1e3?Math.round(Zt/100)/10+"k":Zt;return Ts(Ts({},It.properties),{cluster:!0,cluster_id:It.id,point_count:Zt,point_count_abbreviated:gn})}function Yi(It){return It/360+.5}function ti(It){var Zt=Math.sin(It*Math.PI/180),gn=.5-.25*Math.log((1+Zt)/(1-Zt))/Math.PI;return gn<0?0:gn>1?1:gn}function Ts(It,Zt){for(var gn in Zt)It[gn]=Zt[gn];return It}function Bs(It){return It.x}function Ce(It){return It.y}function Gi(It,Zt,gn,$n,Ar,Dr){var dr=Ar-gn,Xt=Dr-$n;if(dr!==0||Xt!==0){var Cn=((It-gn)*dr+(Zt-$n)*Xt)/(dr*dr+Xt*Xt);Cn>1?(gn=Ar,$n=Dr):Cn>0&&(gn+=dr*Cn,$n+=Xt*Cn)}return(dr=It-gn)*dr+(Xt=Zt-$n)*Xt}function qi(It,Zt,gn,$n){var Ar={id:It===void 0?null:It,type:Zt,geometry:gn,tags:$n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Dr){var dr=Dr.geometry,Xt=Dr.type;if(Xt==="Point"||Xt==="MultiPoint"||Xt==="LineString")co(Dr,dr);else if(Xt==="Polygon"||Xt==="MultiLineString")for(var Cn=0;Cn0&&(dr+=$n?(Ar*er-Cn*Dr)/2:Math.sqrt(Math.pow(Cn-Ar,2)+Math.pow(er-Dr,2))),Ar=Cn,Dr=er}var Mr=Zt.length-3;Zt[2]=1,function ji(An,Xn,nr,qr){for(var vi,Hr=qr,di=nr-Xn>>1,gi=nr-Xn,mi=An[Xn],Bi=An[Xn+1],zr=An[nr],Xr=An[nr+1],Qi=Xn+3;QiHr)vi=Qi,Hr=rs;else if(rs===Hr){var Ur=Math.abs(Qi-di);Urqr&&(vi-Xn>3&&ji(An,Xn,vi,qr),An[vi+2]=Hr,nr-vi>3&&ji(An,vi,nr,qr))}(Zt,0,Mr,gn),Zt[Mr+2]=1,Zt.size=Math.abs(dr),Zt.start=0,Zt.end=Zt.size}function et(It,Zt,gn,$n){for(var Ar=0;Ar1?1:gn}function Dn(It,Zt,gn,$n,Ar,Dr,dr,Xt){if($n/=Zt,Dr>=(gn/=Zt)&&dr<$n)return It;if(dr=$n)return null;for(var Cn=[],er=0;er=gn&&nr<$n)Cn.push(Mr);else if(!(nr=$n)){var qr=[];if(An==="Point"||An==="MultiPoint")gr(ji,qr,gn,$n,Ar);else if(An==="LineString")kn(ji,qr,gn,$n,Ar,!1,Xt.lineMetrics);else if(An==="MultiLineString")zt(ji,qr,gn,$n,Ar,!1);else if(An==="Polygon")zt(ji,qr,gn,$n,Ar,!0);else if(An==="MultiPolygon")for(var vi=0;vi=gn&&dr<=$n&&(Zt.push(It[Dr]),Zt.push(It[Dr+1]),Zt.push(It[Dr+2]))}}function kn(It,Zt,gn,$n,Ar,Dr,dr){for(var Xt,Cn,er=bn(It),Mr=Ar===0?yn:fr,ji=It.start,An=0;Angn&&(Cn=Mr(er,Xn,nr,vi,Hr,gn),dr&&(er.start=ji+Xt*Cn)):di>$n?gi<$n&&(Cn=Mr(er,Xn,nr,vi,Hr,$n),dr&&(er.start=ji+Xt*Cn)):Jt(er,Xn,nr,qr),gi=gn&&(Cn=Mr(er,Xn,nr,vi,Hr,gn),mi=!0),gi>$n&&di<=$n&&(Cn=Mr(er,Xn,nr,vi,Hr,$n),mi=!0),!Dr&&mi&&(dr&&(er.end=ji+Xt*Cn),Zt.push(er),er=bn(It)),dr&&(ji+=Xt)}var Bi=It.length-3;Xn=It[Bi],nr=It[Bi+1],qr=It[Bi+2],(di=Ar===0?Xn:nr)>=gn&&di<=$n&&Jt(er,Xn,nr,qr),Bi=er.length-3,Dr&&Bi>=3&&(er[Bi]!==er[0]||er[Bi+1]!==er[1])&&Jt(er,er[0],er[1],er[2]),er.length&&Zt.push(er)}function bn(It){var Zt=[];return Zt.size=It.size,Zt.start=It.start,Zt.end=It.end,Zt}function zt(It,Zt,gn,$n,Ar,Dr){for(var dr=0;drdr.maxX&&(dr.maxX=Mr),ji>dr.maxY&&(dr.maxY=ji)}return dr}function mo(It,Zt,gn,$n){var Ar=Zt.geometry,Dr=Zt.type,dr=[];if(Dr==="Point"||Dr==="MultiPoint")for(var Xt=0;Xt0&&Zt.size<(Ar?dr:$n))gn.numPoints+=Zt.length/3;else{for(var Xt=[],Cn=0;Cndr)&&(gn.numSimplified++,Xt.push(Zt[Cn]),Xt.push(Zt[Cn+1])),gn.numPoints++;Ar&&function(er,Mr){for(var ji=0,An=0,Xn=er.length,nr=Xn-2;An0===Mr)for(An=0,Xn=er.length;An24)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 $n=function(Ar,Dr){var dr=[];if(Ar.type==="FeatureCollection")for(var Xt=0;Xt=$n;er--){var Mr=+Date.now();Xt=this._cluster(Xt,er),this.trees[er]=new Rt(Xt,Bs,Ce,Dr,Float32Array),gn&&console.log("z%d: %d clusters in %dms",er,Xt.length,+Date.now()-Mr)}return gn&&console.timeEnd("total time"),this},cn.prototype.getClusters=function(It,Zt){var gn=((It[0]+180)%360+360)%360-180,$n=Math.max(-90,Math.min(90,It[1])),Ar=It[2]===180?180:((It[2]+180)%360+360)%360-180,Dr=Math.max(-90,Math.min(90,It[3]));if(It[2]-It[0]>=360)gn=-180,Ar=180;else if(gn>Ar){var dr=this.getClusters([gn,$n,180,Dr],Zt),Xt=this.getClusters([-180,$n,Ar,Dr],Zt);return dr.concat(Xt)}for(var Cn=this.trees[this._limitZoom(Zt)],er=[],Mr=0,ji=Cn.range(Yi(gn),ti(Dr),Yi(Ar),ti($n));MrZt&&(An+=qr.numPoints||1)}if(An>=Dr){for(var vi=Cn.x*ji,Hr=Cn.y*ji,di=Ar&&ji>1?this._map(Cn,!0):null,gi=(Xt<<5)+(Zt+1)+this.points.length,mi=0,Bi=Mr;mi1)for(var Qi=0,rs=Mr;Qi>5},cn.prototype._getOriginZoom=function(It){return(It-this.points.length)%32},cn.prototype._map=function(It,Zt){if(It.numPoints)return Zt?Ts({},It.properties):It.properties;var gn=this.points[It.index].properties,$n=this.options.map(gn);return Zt&&$n===gn?Ts({},$n):$n},to.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},to.prototype.splitTile=function(It,Zt,gn,$n,Ar,Dr,dr){for(var Xt=[It,Zt,gn,$n],Cn=this.options,er=Cn.debug;Xt.length;){$n=Xt.pop(),gn=Xt.pop(),Zt=Xt.pop(),It=Xt.pop();var Mr=1<1&&console.time("creation"),An=this.tiles[ji]=Ai(It,Zt,gn,$n,Cn),this.tileCoords.push({z:Zt,x:gn,y:$n}),er)){er>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Zt,gn,$n,An.numFeatures,An.numPoints,An.numSimplified),console.timeEnd("creation"));var Xn="z"+Zt;this.stats[Xn]=(this.stats[Xn]||0)+1,this.total++}if(An.source=It,Ar){if(Zt===Cn.maxZoom||Zt===Ar)continue;var nr=1<1&&console.time("clipping");var qr,vi,Hr,di,gi,mi,Bi=.5*Cn.buffer/Cn.extent,zr=.5-Bi,Xr=.5+Bi,Qi=1+Bi;qr=vi=Hr=di=null,gi=Dn(It,Mr,gn-Bi,gn+Xr,0,An.minX,An.maxX,Cn),mi=Dn(It,Mr,gn+zr,gn+Qi,0,An.minX,An.maxX,Cn),It=null,gi&&(qr=Dn(gi,Mr,$n-Bi,$n+Xr,1,An.minY,An.maxY,Cn),vi=Dn(gi,Mr,$n+zr,$n+Qi,1,An.minY,An.maxY,Cn),gi=null),mi&&(Hr=Dn(mi,Mr,$n-Bi,$n+Xr,1,An.minY,An.maxY,Cn),di=Dn(mi,Mr,$n+zr,$n+Qi,1,An.minY,An.maxY,Cn),mi=null),er>1&&console.timeEnd("clipping"),Xt.push(qr||[],Zt+1,2*gn,2*$n),Xt.push(vi||[],Zt+1,2*gn,2*$n+1),Xt.push(Hr||[],Zt+1,2*gn+1,2*$n),Xt.push(di||[],Zt+1,2*gn+1,2*$n+1)}}},to.prototype.getTile=function(It,Zt,gn){var $n=this.options,Ar=$n.extent,Dr=$n.debug;if(It<0||It>24)return null;var dr=1<1&&console.log("drilling down to z%d-%d-%d",It,Zt,gn);for(var Cn,er=It,Mr=Zt,ji=gn;!Cn&&er>0;)er--,Mr=Math.floor(Mr/2),ji=Math.floor(ji/2),Cn=this.tiles[Ji(er,Mr,ji)];return Cn&&Cn.source?(Dr>1&&console.log("found parent tile z%d-%d-%d",er,Mr,ji),Dr>1&&console.time("drilling down"),this.splitTile(Cn.source,er,Mr,ji,It,Zt,gn),Dr>1&&console.timeEnd("drilling down"),this.tiles[Xt]?wr(this.tiles[Xt],Ar):null):null};var xn=function(It){function Zt(gn,$n,Ar,Dr){It.call(this,gn,$n,Ar,bo),Dr&&(this.loadGeoJSON=Dr)}return It&&(Zt.__proto__=It),(Zt.prototype=Object.create(It&&It.prototype)).constructor=Zt,Zt.prototype.loadData=function(gn,$n){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=$n,this._pendingLoadDataParams=gn,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},Zt.prototype._loadData=function(){var gn=this;if(this._pendingCallback&&this._pendingLoadDataParams){var $n=this._pendingCallback,Ar=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var Dr=!!(Ar&&Ar.request&&Ar.request.collectResourceTiming)&&new w.RequestPerformance(Ar.request);this.loadGeoJSON(Ar,function(dr,Xt){if(dr||!Xt)return $n(dr);if(typeof Xt!="object")return $n(new Error("Input data given to '"+Ar.source+"' is not a valid GeoJSON object."));(function An(Xn,nr){var qr,vi=Xn&&Xn.type;if(vi==="FeatureCollection")for(qr=0;qr=0?0:G.button},B.remove=function(G){G.parentNode&&G.parentNode.removeChild(G)};var de=function(G){function J(){G.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new w.RGBAImage({width:1,height:1}),this.dirty=!0}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.prototype.isLoaded=function(){return this.loaded},J.prototype.setLoaded=function(Q){if(this.loaded!==Q&&(this.loaded=Q,Q)){for(var ue=0,Ze=this.requestors;ue=0?1.2:1))}function ot(G,J,Q,ue,Ze,Et,Ot){for(var mn=0;mn65535)yr(new Error("glyphs > 65535 not supported"));else if(ki.ranges[Bo])yr(null,{stack:Sn,id:bi,glyph:Zi});else{var Go=ki.requests[Bo];Go||(Go=ki.requests[Bo]=[],vt.loadGlyphRange(Sn,Bo,Q.url,Q.requestManager,function(zi,$o){if($o){for(var Ks in $o)Q._doesCharSupportLocalGlyph(+Ks)||(ki.glyphs[+Ks]=$o[+Ks]);ki.ranges[Bo]=!0}for(var nl=0,el=Go;nl1&&(mn=G[++Ot]);var Sn=Math.abs(yr-mn.left),bi=Math.abs(yr-mn.right),ki=Math.min(Sn,bi),Zi=void 0,Bo=Ze/Q*(ue+1);if(mn.isDash){var Go=ue-Math.abs(Bo);Zi=Math.sqrt(ki*ki+Go*Go)}else Zi=ue-Math.sqrt(ki*ki+Bo*Bo);this.data[Et+yr]=Math.max(0,Math.min(255,Zi+128))}},Ae.prototype.addRegularDash=function(G){for(var J=G.length-1;J>=0;--J){var Q=G[J],ue=G[J+1];Q.zeroLength?G.splice(J,1):ue&&ue.isDash===Q.isDash&&(ue.left=Q.left,G.splice(J,1))}var Ze=G[0],Et=G[G.length-1];Ze.isDash===Et.isDash&&(Ze.left=Et.left-this.width,Et.right=Ze.right+this.width);for(var Ot=this.width*this.nextRow,mn=0,yr=G[mn],Sn=0;Sn1&&(yr=G[++mn]);var bi=Math.abs(Sn-yr.left),ki=Math.abs(Sn-yr.right),Zi=Math.min(bi,ki);this.data[Ot+Sn]=Math.max(0,Math.min(255,(yr.isDash?Zi:-Zi)+128))}},Ae.prototype.addDash=function(G,J){var Q=J?7:0,ue=2*Q+1;if(this.nextRow+ue>this.height)return w.warnOnce("LineAtlas out of space"),null;for(var Ze=0,Et=0;Et=Q&&G.x=ue&&G.y0&&(Sn[new w.OverscaledTileID(Q.overscaledZ,Ot,ue.z,Et,ue.y-1).key]={backfilled:!1},Sn[new w.OverscaledTileID(Q.overscaledZ,Q.wrap,ue.z,ue.x,ue.y-1).key]={backfilled:!1},Sn[new w.OverscaledTileID(Q.overscaledZ,yr,ue.z,mn,ue.y-1).key]={backfilled:!1}),ue.y+10&&(Ze.resourceTiming=Q._resourceTiming,Q._resourceTiming=[]),Q.fire(new w.Event("data",Ze))}})},J.prototype.onAdd=function(Q){this.map=Q,this.load()},J.prototype.setData=function(Q){var ue=this;return this._data=Q,this.fire(new w.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(Ze){if(Ze)ue.fire(new w.ErrorEvent(Ze));else{var Et={dataType:"source",sourceDataType:"content"};ue._collectResourceTiming&&ue._resourceTiming&&ue._resourceTiming.length>0&&(Et.resourceTiming=ue._resourceTiming,ue._resourceTiming=[]),ue.fire(new w.Event("data",Et))}}),this},J.prototype.getClusterExpansionZoom=function(Q,ue){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:Q,source:this.id},ue),this},J.prototype.getClusterChildren=function(Q,ue){return this.actor.send("geojson.getClusterChildren",{clusterId:Q,source:this.id},ue),this},J.prototype.getClusterLeaves=function(Q,ue,Ze,Et){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:Q,limit:ue,offset:Ze},Et),this},J.prototype._updateWorkerData=function(Q){var ue=this;this._loaded=!1;var Ze=w.extend({},this.workerOptions),Et=this._data;typeof Et=="string"?(Ze.request=this.map._requestManager.transformRequest(w.browser.resolveURL(Et),w.ResourceType.Source),Ze.request.collectResourceTiming=this._collectResourceTiming):Ze.data=JSON.stringify(Et),this.actor.send(this.type+".loadData",Ze,function(Ot,mn){ue._removed||mn&&mn.abandoned||(ue._loaded=!0,mn&&mn.resourceTiming&&mn.resourceTiming[ue.id]&&(ue._resourceTiming=mn.resourceTiming[ue.id].slice(0)),ue.actor.send(ue.type+".coalesce",{source:Ze.source},null),Q(Ot))})},J.prototype.loaded=function(){return this._loaded},J.prototype.loadTile=function(Q,ue){var Ze=this,Et=Q.actor?"reloadTile":"loadTile";Q.actor=this.actor,Q.request=this.actor.send(Et,{type:this.type,uid:Q.uid,tileID:Q.tileID,zoom:Q.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:w.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(Ot,mn){return delete Q.request,Q.unloadVectorData(),Q.aborted?ue(null):Ot?ue(Ot):(Q.loadVectorData(mn,Ze.map.painter,Et==="reloadTile"),ue(null))})},J.prototype.abortTile=function(Q){Q.request&&(Q.request.cancel(),delete Q.request),Q.aborted=!0},J.prototype.unloadTile=function(Q){Q.unloadVectorData(),this.actor.send("removeTile",{uid:Q.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 w.extend({},this._options,{type:this.type,data:this._data})},J.prototype.hasTransition=function(){return!1},J}(w.Evented),nt=w.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Ct=function(G){function J(Q,ue,Ze,Et){G.call(this),this.id=Q,this.dispatcher=Ze,this.coordinates=ue.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(Et),this.options=ue}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.prototype.load=function(Q,ue){var Ze=this;this._loaded=!1,this.fire(new w.Event("dataloading",{dataType:"source"})),this.url=this.options.url,w.getImage(this.map._requestManager.transformRequest(this.url,w.ResourceType.Image),function(Et,Ot){Ze._loaded=!0,Et?Ze.fire(new w.ErrorEvent(Et)):Ot&&(Ze.image=Ot,Q&&(Ze.coordinates=Q),ue&&ue(),Ze._finishLoading())})},J.prototype.loaded=function(){return this._loaded},J.prototype.updateImage=function(Q){var ue=this;return this.image&&Q.url?(this.options.url=Q.url,this.load(Q.coordinates,function(){ue.texture=null}),this):this},J.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new w.Event("data",{dataType:"source",sourceDataType:"metadata"})))},J.prototype.onAdd=function(Q){this.map=Q,this.load()},J.prototype.setCoordinates=function(Q){var ue=this;this.coordinates=Q;var Ze=Q.map(w.MercatorCoordinate.fromLngLat);this.tileID=function(Ot){for(var mn=1/0,yr=1/0,Sn=-1/0,bi=-1/0,ki=0,Zi=Ot;kiue.end(0)?this.fire(new w.ErrorEvent(new w.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+ue.start(0)+" and "+ue.end(0)+"-second mark."))):this.video.currentTime=Q}},J.prototype.getVideo=function(){return this.video},J.prototype.onAdd=function(Q){this.map||(this.map=Q,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 Q=this.map.painter.context,ue=Q.gl;for(var Ze in this.boundsBuffer||(this.boundsBuffer=Q.createVertexBuffer(this._boundsArray,nt.members)),this.boundsSegments||(this.boundsSegments=w.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(ue.LINEAR,ue.CLAMP_TO_EDGE),ue.texSubImage2D(ue.TEXTURE_2D,0,0,0,ue.RGBA,ue.UNSIGNED_BYTE,this.video)):(this.texture=new w.Texture(Q,this.video,ue.RGBA),this.texture.bind(ue.LINEAR,ue.CLAMP_TO_EDGE)),this.tiles){var Et=this.tiles[Ze];Et.state!=="loaded"&&(Et.state="loaded",Et.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}(Ct),Gt=function(G){function J(Q,ue,Ze,Et){G.call(this,Q,ue,Ze,Et),ue.coordinates?Array.isArray(ue.coordinates)&&ue.coordinates.length===4&&!ue.coordinates.some(function(Ot){return!Array.isArray(Ot)||Ot.length!==2||Ot.some(function(mn){return typeof mn!="number"})})||this.fire(new w.ErrorEvent(new w.ValidationError("sources."+Q,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new w.ErrorEvent(new w.ValidationError("sources."+Q,null,'missing required property "coordinates"'))),ue.animate&&typeof ue.animate!="boolean"&&this.fire(new w.ErrorEvent(new w.ValidationError("sources."+Q,null,'optional "animate" property must be a boolean value'))),ue.canvas?typeof ue.canvas=="string"||ue.canvas instanceof w.window.HTMLCanvasElement||this.fire(new w.ErrorEvent(new w.ValidationError("sources."+Q,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 w.ErrorEvent(new w.ValidationError("sources."+Q,null,'missing required property "canvas"'))),this.options=ue,this.animate=ue.animate===void 0||ue.animate}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof w.window.HTMLCanvasElement?this.options.canvas:w.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new w.ErrorEvent(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())},J.prototype.getCanvas=function(){return this.canvas},J.prototype.onAdd=function(Q){this.map=Q,this.load(),this.canvas&&this.animate&&this.play()},J.prototype.onRemove=function(){this.pause()},J.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 ue=this.map.painter.context,Ze=ue.gl;for(var Et in this.boundsBuffer||(this.boundsBuffer=ue.createVertexBuffer(this._boundsArray,nt.members)),this.boundsSegments||(this.boundsSegments=w.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(Q||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new w.Texture(ue,this.canvas,Ze.RGBA,{premultiply:!0}),this.tiles){var Ot=this.tiles[Et];Ot.state!=="loaded"&&(Ot.state="loaded",Ot.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 Q=0,ue=[this.canvas.width,this.canvas.height];Qthis.max){var Ot=this._getAndRemoveByKey(this.order[0]);Ot&&this.onRemove(Ot)}return this},ii.prototype.has=function(G){return G.wrapped().key in this.data},ii.prototype.getAndRemove=function(G){return this.has(G)?this._getAndRemoveByKey(G.wrapped().key):null},ii.prototype._getAndRemoveByKey=function(G){var J=this.data[G].shift();return J.timeout&&clearTimeout(J.timeout),this.data[G].length===0&&delete this.data[G],this.order.splice(this.order.indexOf(G),1),J.value},ii.prototype.getByKey=function(G){var J=this.data[G];return J?J[0].value:null},ii.prototype.get=function(G){return this.has(G)?this.data[G.wrapped().key][0].value:null},ii.prototype.remove=function(G,J){if(!this.has(G))return this;var Q=G.wrapped().key,ue=J===void 0?0:this.data[Q].indexOf(J),Ze=this.data[Q][ue];return this.data[Q].splice(ue,1),Ze.timeout&&clearTimeout(Ze.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(Ze.value),this.order.splice(this.order.indexOf(Q),1),this},ii.prototype.setMaxSize=function(G){for(this.max=G;this.order.length>this.max;){var J=this._getAndRemoveByKey(this.order[0]);J&&this.onRemove(J)}return this},ii.prototype.filter=function(G){var J=[];for(var Q in this.data)for(var ue=0,Ze=this.data[Q];ue1||(Math.abs(bi)>1&&(Math.abs(bi+Zi)===1?bi+=Zi:Math.abs(bi-Zi)===1&&(bi-=Zi)),Sn.dem&&yr.dem&&(yr.dem.backfillBorder(Sn.dem,bi,ki),yr.neighboringTiles&&yr.neighboringTiles[Bo]&&(yr.neighboringTiles[Bo].backfilled=!0)))}},J.prototype.getTile=function(Q){return this.getTileByID(Q.key)},J.prototype.getTileByID=function(Q){return this._tiles[Q]},J.prototype._retainLoadedChildren=function(Q,ue,Ze,Et){for(var Ot in this._tiles){var mn=this._tiles[Ot];if(!(Et[Ot]||!mn.hasData()||mn.tileID.overscaledZ<=ue||mn.tileID.overscaledZ>Ze)){for(var yr=mn.tileID;mn&&mn.tileID.overscaledZ>ue+1;){var Sn=mn.tileID.scaledTo(mn.tileID.overscaledZ-1);(mn=this._tiles[Sn.key])&&mn.hasData()&&(yr=Sn)}for(var bi=yr;bi.overscaledZ>ue;)if(Q[(bi=bi.scaledTo(bi.overscaledZ-1)).key]){Et[yr.key]=yr;break}}}},J.prototype.findLoadedParent=function(Q,ue){if(Q.key in this._loadedParentTiles){var Ze=this._loadedParentTiles[Q.key];return Ze&&Ze.tileID.overscaledZ>=ue?Ze:null}for(var Et=Q.overscaledZ-1;Et>=ue;Et--){var Ot=Q.scaledTo(Et),mn=this._getLoadedTile(Ot);if(mn)return mn}},J.prototype._getLoadedTile=function(Q){var ue=this._tiles[Q.key];return ue&&ue.hasData()?ue:this._cache.getByKey(Q.wrapped().key)},J.prototype.updateCacheSize=function(Q){var ue=Math.ceil(Q.width/this._source.tileSize)+1,Ze=Math.ceil(Q.height/this._source.tileSize)+1,Et=Math.floor(ue*Ze*5),Ot=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Et):Et;this._cache.setMaxSize(Ot)},J.prototype.handleWrapJump=function(Q){var ue=Math.round((Q-(this._prevLng===void 0?Q:this._prevLng))/360);if(this._prevLng=Q,ue){var Ze={};for(var Et in this._tiles){var Ot=this._tiles[Et];Ot.tileID=Ot.tileID.unwrapTo(Ot.tileID.wrap+ue),Ze[Ot.tileID.key]=Ot}for(var mn in this._tiles=Ze,this._timers)clearTimeout(this._timers[mn]),delete this._timers[mn];for(var yr in this._tiles)this._setTileReloadTimer(yr,this._tiles[yr])}},J.prototype.update=function(Q){var ue=this;if(this.transform=Q,this._sourceLoaded&&!this._paused){var Ze;this.updateCacheSize(Q),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?Ze=Q.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Bu){return new w.OverscaledTileID(Bu.canonical.z,Bu.wrap,Bu.canonical.z,Bu.canonical.x,Bu.canonical.y)}):(Ze=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&&(Ze=Ze.filter(function(Bu){return ue._source.hasTile(Bu)}))):Ze=[];var Et=Q.coveringZoomLevel(this._source),Ot=Math.max(Et-J.maxOverzooming,this._source.minzoom),mn=Math.max(Et+J.maxUnderzooming,this._source.minzoom),yr=this._updateRetainedTiles(Ze,Et);if(Mr(this._source.type)){for(var Sn={},bi={},ki=0,Zi=Object.keys(yr);kithis._source.maxzoom){var Ks=zi.children(this._source.maxzoom)[0],nl=this.getTile(Ks);if(nl&&nl.hasData()){Ze[Ks.key]=Ks;continue}}else{var el=zi.children(this._source.maxzoom);if(Ze[el[0].key]&&Ze[el[1].key]&&Ze[el[2].key]&&Ze[el[3].key])continue}for(var Kl=$o.wasRequested(),yl=zi.overscaledZ-1;yl>=Ot;--yl){var Cu=zi.scaledTo(yl);if(Et[Cu.key]||(Et[Cu.key]=!0,!($o=this.getTile(Cu))&&Kl&&($o=this._addTile(Cu)),$o&&(Ze[Cu.key]=Cu,Kl=$o.wasRequested(),$o.hasData())))break}}}return Ze},J.prototype._updateLoadedParentTileCache=function(){for(var Q in this._loadedParentTiles={},this._tiles){for(var ue=[],Ze=void 0,Et=this._tiles[Q].tileID;Et.overscaledZ>0;){if(Et.key in this._loadedParentTiles){Ze=this._loadedParentTiles[Et.key];break}ue.push(Et.key);var Ot=Et.scaledTo(Et.overscaledZ-1);if(Ze=this._getLoadedTile(Ot))break;Et=Ot}for(var mn=0,yr=ue;mn0||(ue.hasData()&&ue.state!=="reloading"?this._cache.add(ue.tileID,ue,ue.getExpiryTimeout()):(ue.aborted=!0,this._abortTile(ue),this._unloadTile(ue))))},J.prototype.clearTiles=function(){for(var Q in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(Q);this._cache.reset()},J.prototype.tilesIn=function(Q,ue,Ze){var Et=this,Ot=[],mn=this.transform;if(!mn)return Ot;for(var yr=Ze?mn.getCameraQueryGeometry(Q):Q,Sn=Q.map(function(yl){return mn.pointCoordinate(yl)}),bi=yr.map(function(yl){return mn.pointCoordinate(yl)}),ki=this.getIds(),Zi=1/0,Bo=1/0,Go=-1/0,zi=-1/0,$o=0,Ks=bi;$o=0&&ld[1].y+Ju>=0){var yd=Sn.map(function(Bd){return Bu.getTilePoint(Bd)}),Xd=bi.map(function(Bd){return Bu.getTilePoint(Bd)});Ot.push({tile:Cu,tileID:Bu,queryGeometry:yd,cameraQueryGeometry:Xd,scale:ic})}}},Kl=0;Kl=w.browser.now())return!0}return!1},J.prototype.setFeatureState=function(Q,ue,Ze){this._state.updateState(Q=Q||"_geojsonTileLayer",ue,Ze)},J.prototype.removeFeatureState=function(Q,ue,Ze){this._state.removeFeatureState(Q=Q||"_geojsonTileLayer",ue,Ze)},J.prototype.getFeatureState=function(Q,ue){return this._state.getState(Q=Q||"_geojsonTileLayer",ue)},J.prototype.setDependencies=function(Q,ue,Ze){var Et=this._tiles[Q];Et&&Et.setDependencies(ue,Ze)},J.prototype.reloadTilesForDependencies=function(Q,ue){for(var Ze in this._tiles)this._tiles[Ze].hasDependency(Q,ue)&&this._reloadTile(Ze,"reloading");this._cache.filter(function(Et){return!Et.hasDependency(Q,ue)})},J}(w.Evented);function er(G,J){var Q=Math.abs(2*G.wrap)-+(G.wrap<0),ue=Math.abs(2*J.wrap)-+(J.wrap<0);return G.overscaledZ-J.overscaledZ||ue-Q||J.canonical.y-G.canonical.y||J.canonical.x-G.canonical.x}function Mr(G){return G==="raster"||G==="image"||G==="video"}function ji(){return new w.window.Worker(Ir.workerUrl)}Cn.maxOverzooming=10,Cn.maxUnderzooming=3;var An="mapboxgl_preloaded_worker_pool",Xn=function(){this.active={}};Xn.prototype.acquire=function(G){if(!this.workers)for(this.workers=[];this.workers.length0?(ue-Et)/Ot:0;return this.points[Ze].mult(1-mn).add(this.points[J].mult(mn))};var Kr=function(G,J,Q){var ue=this.boxCells=[],Ze=this.circleCells=[];this.xCellCount=Math.ceil(G/Q),this.yCellCount=Math.ceil(J/Q);for(var Et=0;Et=-J[0]&&Q<=J[0]&&ue>=-J[1]&&ue<=J[1]}function es(G,J,Q,ue,Ze,Et,Ot,mn){var yr=ue?G.textSizeData:G.iconSizeData,Sn=w.evaluateSizeForZoom(yr,Q.transform.zoom),bi=[256/Q.width*2+1,256/Q.height*2+1],ki=ue?G.text.dynamicLayoutVertexArray:G.icon.dynamicLayoutVertexArray;ki.clear();for(var Zi=G.lineVertexArray,Bo=ue?G.text.placedSymbolArray:G.icon.placedSymbolArray,Go=Q.transform.width/Q.transform.height,zi=!1,$o=0;$oMath.abs(Q.x-J.x)*ue?{useVertical:!0}:(G===w.WritingMode.vertical?J.yQ.x)?{needsFlipping:!0}:null}function Ba(G,J,Q,ue,Ze,Et,Ot,mn,yr,Sn,bi,ki,Zi,Bo){var Go,zi=J/24,$o=G.lineOffsetX*zi,Ks=G.lineOffsetY*zi;if(G.numGlyphs>1){var nl=G.glyphStartIndex+G.numGlyphs,el=G.lineStartIndex,Kl=G.lineStartIndex+G.lineLength,yl=ko(zi,mn,$o,Ks,Q,bi,ki,G,yr,Et,Zi);if(!yl)return{notEnoughRoom:!0};var Cu=Jr(yl.first.point,Ot).point,Bu=Jr(yl.last.point,Ot).point;if(ue&&!Q){var ic=vs(G.writingMode,Cu,Bu,Bo);if(ic)return ic}Go=[yl.first];for(var Ju=G.glyphStartIndex+1;Ju0?Bd.point:uo(ki,Xd,ld,1,Ze),Jc=vs(G.writingMode,ld,jh,Bo);if(Jc)return Jc}var Ac=ca(zi*mn.getoffsetX(G.glyphStartIndex),$o,Ks,Q,bi,ki,G.segment,G.lineStartIndex,G.lineStartIndex+G.lineLength,yr,Et,Zi);if(!Ac)return{notEnoughRoom:!0};Go=[Ac]}for(var nf=0,Wh=Go;nf0?1:-1,Go=0;ue&&(Bo*=-1,Go=Math.PI),Bo<0&&(Go+=Math.PI);for(var zi=Bo>0?mn+Ot:mn+Ot+1,$o=Ze,Ks=Ze,nl=0,el=0,Kl=Math.abs(Zi),yl=[];nl+el<=Kl;){if((zi+=Bo)=yr)return null;if(Ks=$o,yl.push($o),($o=ki[zi])===void 0){var Cu=new w.Point(Sn.getx(zi),Sn.gety(zi)),Bu=Jr(Cu,bi);if(Bu.signedDistanceFromCamera>0)$o=ki[zi]=Bu.point;else{var ic=zi-Bo;$o=uo(nl===0?Et:new w.Point(Sn.getx(ic),Sn.gety(ic)),Cu,Ks,Kl-nl+1,bi)}}nl+=el,el=Ks.dist($o)}var Ju=(Kl-nl)/el,ld=$o.sub(Ks),yd=ld.mult(Ju)._add(Ks);yd._add(ld._unit()._perp()._mult(Q*Bo));var Xd=Go+Math.atan2($o.y-Ks.y,$o.x-Ks.x);return yl.push(yd),{point:yd,angle:Xd,path:yl}}Kr.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Kr.prototype.insert=function(G,J,Q,ue,Ze){this._forEachCell(J,Q,ue,Ze,this._insertBoxCell,this.boxUid++),this.boxKeys.push(G),this.bboxes.push(J),this.bboxes.push(Q),this.bboxes.push(ue),this.bboxes.push(Ze)},Kr.prototype.insertCircle=function(G,J,Q,ue){this._forEachCell(J-ue,Q-ue,J+ue,Q+ue,this._insertCircleCell,this.circleUid++),this.circleKeys.push(G),this.circles.push(J),this.circles.push(Q),this.circles.push(ue)},Kr.prototype._insertBoxCell=function(G,J,Q,ue,Ze,Et){this.boxCells[Ze].push(Et)},Kr.prototype._insertCircleCell=function(G,J,Q,ue,Ze,Et){this.circleCells[Ze].push(Et)},Kr.prototype._query=function(G,J,Q,ue,Ze,Et){if(Q<0||G>this.width||ue<0||J>this.height)return!Ze&&[];var Ot=[];if(G<=0&&J<=0&&this.width<=Q&&this.height<=ue){if(Ze)return!0;for(var mn=0;mn0:Ot},Kr.prototype._queryCircle=function(G,J,Q,ue,Ze){var Et=G-Q,Ot=G+Q,mn=J-Q,yr=J+Q;if(Ot<0||Et>this.width||yr<0||mn>this.height)return!ue&&[];var Sn=[];return this._forEachCell(Et,mn,Ot,yr,this._queryCellCircle,Sn,{hitTest:ue,circle:{x:G,y:J,radius:Q},seenUids:{box:{},circle:{}}},Ze),ue?Sn.length>0:Sn},Kr.prototype.query=function(G,J,Q,ue,Ze){return this._query(G,J,Q,ue,!1,Ze)},Kr.prototype.hitTest=function(G,J,Q,ue,Ze){return this._query(G,J,Q,ue,!0,Ze)},Kr.prototype.hitTestCircle=function(G,J,Q,ue){return this._queryCircle(G,J,Q,!0,ue)},Kr.prototype._queryCell=function(G,J,Q,ue,Ze,Et,Ot,mn){var yr=Ot.seenUids,Sn=this.boxCells[Ze];if(Sn!==null)for(var bi=this.bboxes,ki=0,Zi=Sn;ki=bi[Go+0]&&ue>=bi[Go+1]&&(!mn||mn(this.boxKeys[Bo]))){if(Ot.hitTest)return Et.push(!0),!0;Et.push({key:this.boxKeys[Bo],x1:bi[Go],y1:bi[Go+1],x2:bi[Go+2],y2:bi[Go+3]})}}}var zi=this.circleCells[Ze];if(zi!==null)for(var $o=this.circles,Ks=0,nl=zi;KsOt*Ot+mn*mn},Kr.prototype._circleAndRectCollide=function(G,J,Q,ue,Ze,Et,Ot){var mn=(Et-ue)/2,yr=Math.abs(G-(ue+mn));if(yr>mn+Q)return!1;var Sn=(Ot-Ze)/2,bi=Math.abs(J-(Ze+Sn));if(bi>Sn+Q)return!1;if(yr<=mn||bi<=Sn)return!0;var ki=yr-mn,Zi=bi-Sn;return ki*ki+Zi*Zi<=Q*Q};var ll=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Ti(G,J){for(var Q=0;Q=1;jh--)Bd.push(yd.path[jh]);for(var Jc=1;Jc0){for(var sh=Bd[0].clone(),Yh=Bd[0].clone(),Oh=1;Oh=ic.x&&Yh.x<=Ju.x&&sh.y>=ic.y&&Yh.y<=Ju.y?[Bd]:Yh.xJu.x||Yh.yJu.y?[]:w.clipLine([Bd],ic.x,ic.y,Ju.x,Ju.y)}for(var bh=0,kp=Wh;bh=this.screenRightBoundary||ue<100||J>this.screenBottomBoundary},eo.prototype.isInsideGrid=function(G,J,Q,ue){return Q>=0&&G=0&&J0?(this.prevPlacement&&this.prevPlacement.variableOffsets[ki.crossTileID]&&this.prevPlacement.placements[ki.crossTileID]&&this.prevPlacement.placements[ki.crossTileID].text&&(zi=this.prevPlacement.variableOffsets[ki.crossTileID].anchor),this.variableOffsets[ki.crossTileID]={textOffset:$o,width:Q,height:ue,anchor:G,textBoxScale:Ze,prevAnchor:zi},this.markUsedJustification(Zi,G,ki,Bo),Zi.allowVerticalPlacement&&(this.markUsedOrientation(Zi,Bo,ki),this.placedOrientations[ki.crossTileID]=Bo),{shift:Ks,placedGlyphBoxes:nl}):void 0},Gr.prototype.placeLayerBucketPart=function(G,J,Q){var ue=this,Ze=G.parameters,Et=Ze.bucket,Ot=Ze.layout,mn=Ze.posMatrix,yr=Ze.textLabelPlaneMatrix,Sn=Ze.labelToScreenMatrix,bi=Ze.textPixelRatio,ki=Ze.holdingForFade,Zi=Ze.collisionBoxArray,Bo=Ze.partiallyEvaluatedTextSize,Go=Ze.collisionGroup,zi=Ot.get("text-optional"),$o=Ot.get("icon-optional"),Ks=Ot.get("text-allow-overlap"),nl=Ot.get("icon-allow-overlap"),el=Ot.get("text-rotation-alignment")==="map",Kl=Ot.get("text-pitch-alignment")==="map",yl=Ot.get("icon-text-fit")!=="none",Cu=Ot.get("symbol-z-order")==="viewport-y",Bu=Ks&&(nl||!Et.hasIconData()||$o),ic=nl&&(Ks||!Et.hasTextData()||zi);!Et.collisionArrays&&Zi&&Et.deserializeCollisionBoxes(Zi);var Ju=function(Jc,Ac){if(!J[Jc.crossTileID])if(ki)ue.placements[Jc.crossTileID]=new yo(!1,!1,!1);else{var nf,Wh=!1,sh=!1,Yh=!0,Oh=null,bh={box:null,offscreen:null},kp={box:null,offscreen:null},lp=null,gp=null,Gc=0,bc=0,hd=0;Ac.textFeatureIndex?Gc=Ac.textFeatureIndex:Jc.useRuntimeCollisionCircles&&(Gc=Jc.featureIndex),Ac.verticalTextFeatureIndex&&(bc=Ac.verticalTextFeatureIndex);var xd=Ac.textBox;if(xd){var rh=function(of){var Ef=w.WritingMode.horizontal;if(Et.allowVerticalPlacement&&!of&&ue.prevPlacement){var Eg=ue.prevPlacement.placedOrientations[Jc.crossTileID];Eg&&(ue.placedOrientations[Jc.crossTileID]=Eg,ue.markUsedOrientation(Et,Ef=Eg,Jc))}return Ef},Ec=function(of,Ef){if(Et.allowVerticalPlacement&&Jc.numVerticalGlyphVertices>0&&Ac.verticalTextBox)for(var Eg=0,Xg=Et.writingModes;Eg0&&(Ph=Ph.filter(function(of){return of!==ch.anchor})).unshift(ch.anchor)}var Nc=function(of,Ef,Eg){for(var Xg=of.x2-of.x1,np=of.y2-of.y1,Eh=Jc.textBoxScale,i0=yl&&!nl?Ef:null,Cm={box:[],offscreen:!1},o0=Ks?2*Ph.length:Ph.length,Yg=0;Yg=Ph.length,Jc,Et,Eg,i0);if(Ym&&(Cm=Ym.placedGlyphBoxes)&&Cm.box&&Cm.box.length){Wh=!0,Oh=Ym.shift;break}}return Cm};Ec(function(){return Nc(xd,Ac.iconBox,w.WritingMode.horizontal)},function(){var of=Ac.verticalTextBox;return Et.allowVerticalPlacement&&!(bh&&bh.box&&bh.box.length)&&Jc.numVerticalGlyphVertices>0&&of?Nc(of,Ac.verticalIconBox,w.WritingMode.vertical):{box:null,offscreen:null}}),bh&&(Wh=bh.box,Yh=bh.offscreen);var Oo=rh(bh&&bh.box);if(!Wh&&ue.prevPlacement){var Ig=ue.prevPlacement.variableOffsets[Jc.crossTileID];Ig&&(ue.variableOffsets[Jc.crossTileID]=Ig,ue.markUsedJustification(Et,Ig.anchor,Jc,Oo))}}else{var Op=function(of,Ef){var Eg=ue.collisionIndex.placeCollisionBox(of,Ks,bi,mn,Go.predicate);return Eg&&Eg.box&&Eg.box.length&&(ue.markUsedOrientation(Et,Ef,Jc),ue.placedOrientations[Jc.crossTileID]=Ef),Eg};Ec(function(){return Op(xd,w.WritingMode.horizontal)},function(){var of=Ac.verticalTextBox;return Et.allowVerticalPlacement&&Jc.numVerticalGlyphVertices>0&&of?Op(of,w.WritingMode.vertical):{box:null,offscreen:null}}),rh(bh&&bh.box&&bh.box.length)}}if(Wh=(nf=bh)&&nf.box&&nf.box.length>0,Yh=nf&&nf.offscreen,Jc.useRuntimeCollisionCircles){var Wg=Et.text.placedSymbolArray.get(Jc.centerJustifiedTextSymbolIndex),Og=w.evaluateSizeForFeature(Et.textSizeData,Bo,Wg),qf=Ot.get("text-padding");lp=ue.collisionIndex.placeCollisionCircles(Ks,Wg,Et.lineVertexArray,Et.glyphOffsetArray,Og,mn,yr,Sn,Q,Kl,Go.predicate,Jc.collisionCircleDiameter,qf),Wh=Ks||lp.circles.length>0&&!lp.collisionDetected,Yh=Yh&&lp.offscreen}if(Ac.iconFeatureIndex&&(hd=Ac.iconFeatureIndex),Ac.iconBox){var Zh=function(of){var Ef=yl&&Oh?kr(of,Oh.x,Oh.y,el,Kl,ue.transform.angle):of;return ue.collisionIndex.placeCollisionBox(Ef,nl,bi,mn,Go.predicate)};sh=kp&&kp.box&&kp.box.length&&Ac.verticalIconBox?(gp=Zh(Ac.verticalIconBox)).box.length>0:(gp=Zh(Ac.iconBox)).box.length>0,Yh=Yh&&gp.offscreen}var Wf=zi||Jc.numHorizontalGlyphVertices===0&&Jc.numVerticalGlyphVertices===0,Np=$o||Jc.numIconVertices===0;if(Wf||Np?Np?Wf||(sh=sh&&Wh):Wh=sh&&Wh:sh=Wh=sh&&Wh,Wh&&nf&&nf.box&&ue.collisionIndex.insertCollisionBox(nf.box,Ot.get("text-ignore-placement"),Et.bucketInstanceId,kp&&kp.box&&bc?bc:Gc,Go.ID),sh&&gp&&ue.collisionIndex.insertCollisionBox(gp.box,Ot.get("icon-ignore-placement"),Et.bucketInstanceId,hd,Go.ID),lp&&(Wh&&ue.collisionIndex.insertCollisionCircles(lp.circles,Ot.get("text-ignore-placement"),Et.bucketInstanceId,Gc,Go.ID),Q)){var Zp=Et.bucketInstanceId,Ap=ue.collisionCircleArrays[Zp];Ap===void 0&&(Ap=ue.collisionCircleArrays[Zp]=new Qo);for(var Gf=0;Gf=0;--yd){var Xd=ld[yd];Ju(Et.symbolInstances.get(Xd),Et.collisionArrays[Xd])}else for(var Bd=G.symbolInstanceStart;Bd=0&&(G.text.placedSymbolArray.get(mn).crossTileID=Ze>=0&&mn!==Ze?0:Q.crossTileID)}},Gr.prototype.markUsedOrientation=function(G,J,Q){for(var ue=J===w.WritingMode.horizontal||J===w.WritingMode.horizontalOnly?J:0,Ze=J===w.WritingMode.vertical?J:0,Et=0,Ot=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];Et0,ic=ue.placedOrientations[nl.crossTileID],Ju=ic===w.WritingMode.vertical,ld=ic===w.WritingMode.horizontal||ic===w.WritingMode.horizontalOnly;if(el>0||Kl>0){var yd=Zr(Cu.text);Bo(G.text,el,Ju?Ui:yd),Bo(G.text,Kl,ld?Ui:yd);var Xd=Cu.text.isHidden();[nl.rightJustifiedTextSymbolIndex,nl.centerJustifiedTextSymbolIndex,nl.leftJustifiedTextSymbolIndex].forEach(function(bh){bh>=0&&(G.text.placedSymbolArray.get(bh).hidden=Xd||Ju?1:0)}),nl.verticalPlacedTextSymbolIndex>=0&&(G.text.placedSymbolArray.get(nl.verticalPlacedTextSymbolIndex).hidden=Xd||ld?1:0);var Bd=ue.variableOffsets[nl.crossTileID];Bd&&ue.markUsedJustification(G,Bd.anchor,nl,ic);var jh=ue.placedOrientations[nl.crossTileID];jh&&(ue.markUsedJustification(G,"left",nl,jh),ue.markUsedOrientation(G,jh,nl))}if(Bu){var Jc=Zr(Cu.icon),Ac=!(ki&&nl.verticalPlacedIconSymbolIndex&&Ju);nl.placedIconSymbolIndex>=0&&(Bo(G.icon,nl.numIconVertices,Ac?Jc:Ui),G.icon.placedSymbolArray.get(nl.placedIconSymbolIndex).hidden=Cu.icon.isHidden()),nl.verticalPlacedIconSymbolIndex>=0&&(Bo(G.icon,nl.numVerticalIconVertices,Ac?Ui:Jc),G.icon.placedSymbolArray.get(nl.verticalPlacedIconSymbolIndex).hidden=Cu.icon.isHidden())}if(G.hasIconCollisionBoxData()||G.hasTextCollisionBoxData()){var nf=G.collisionArrays[Ks];if(nf){var Wh=new w.Point(0,0);if(nf.textBox||nf.verticalTextBox){var sh=!0;if(yr){var Yh=ue.variableOffsets[yl];Yh?(Wh=Yn(Yh.anchor,Yh.width,Yh.height,Yh.textOffset,Yh.textBoxScale),Sn&&Wh._rotate(bi?ue.transform.angle:-ue.transform.angle)):sh=!1}nf.textBox&&je(G.textCollisionBox.collisionVertexArray,Cu.text.placed,!sh||Ju,Wh.x,Wh.y),nf.verticalTextBox&&je(G.textCollisionBox.collisionVertexArray,Cu.text.placed,!sh||ld,Wh.x,Wh.y)}var Oh=!!(!ld&&nf.verticalIconBox);nf.iconBox&&je(G.iconCollisionBox.collisionVertexArray,Cu.icon.placed,Oh,ki?Wh.x:0,ki?Wh.y:0),nf.verticalIconBox&&je(G.iconCollisionBox.collisionVertexArray,Cu.icon.placed,!Oh,ki?Wh.x:0,ki?Wh.y:0)}}},zi=0;ziG},Gr.prototype.setStale=function(){this.stale=!0};var ut=Math.pow(2,25),ht=Math.pow(2,24),Ue=Math.pow(2,17),ft=Math.pow(2,16),Pt=Math.pow(2,9),ln=Math.pow(2,8),sr=Math.pow(2,1);function Zr(G){if(G.opacity===0&&!G.placed)return 0;if(G.opacity===1&&G.placed)return 4294967295;var J=G.placed?1:0,Q=Math.floor(127*G.opacity);return Q*ut+J*ht+Q*Ue+J*ft+Q*Pt+J*ln+Q*sr+J}var Ui=0,To=function(G){this._sortAcrossTiles=G.layout.get("symbol-z-order")!=="viewport-y"&&G.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};To.prototype.continuePlacement=function(G,J,Q,ue,Ze){for(var Et=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var Ot=J[G[this._currentPlacementIndex]],mn=this.placement.collisionIndex.transform.zoom;if(Ot.type==="symbol"&&(!Ot.minzoom||Ot.minzoom<=mn)&&(!Ot.maxzoom||Ot.maxzoom>mn)){if(this._inProgressLayer||(this._inProgressLayer=new To(Ot)),this._inProgressLayer.continuePlacement(Q[Ot.source],this.placement,this._showCollisionBoxes,Ot,Et))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Vi.prototype.commit=function(G){return this.placement.commit(G),this.placement};var Us=512/w.EXTENT/2,Is=function(G,J,Q){this.tileID=G,this.indexedSymbolInstances={},this.bucketInstanceId=Q;for(var ue=0;ueG.overscaledZ)for(var mn in Ot){var yr=Ot[mn];yr.tileID.isChildOf(G)&&yr.findMatches(J.symbolInstances,G,Ze)}else{var Sn=Ot[G.scaledTo(Number(Et)).key];Sn&&Sn.findMatches(J.symbolInstances,G,Ze)}}for(var bi=0;bi1?"@2x":"",ki=w.getJSON(Et.transformRequest(Et.normalizeSpriteURL(Ze,bi,".json"),w.ResourceType.SpriteJSON),function(Go,zi){ki=null,Sn||(Sn=Go,mn=zi,Bo())}),Zi=w.getImage(Et.transformRequest(Et.normalizeSpriteURL(Ze,bi,".png"),w.ResourceType.SpriteImage),function(Go,zi){Zi=null,Sn||(Sn=Go,yr=zi,Bo())});function Bo(){if(Sn)Ot(Sn);else if(mn&&yr){var Go=w.browser.getImageData(yr),zi={};for(var $o in mn){var Ks=mn[$o],nl=Ks.width,el=Ks.height,Kl=Ks.x,yl=Ks.y,Cu=Ks.sdf,Bu=Ks.pixelRatio,ic=Ks.stretchX,Ju=Ks.stretchY,ld=Ks.content,yd=new w.RGBAImage({width:nl,height:el});w.RGBAImage.copy(Go,yd,{x:Kl,y:yl},{x:0,y:0},{width:nl,height:el}),zi[$o]={data:yd,pixelRatio:Bu,sdf:Cu,stretchX:ic,stretchY:Ju,content:ld}}Ot(null,zi)}}return{cancel:function(){ki&&(ki.cancel(),ki=null),Zi&&(Zi.cancel(),Zi=null)}}}(Q,this.map._requestManager,function(Ze,Et){if(ue._spriteRequest=null,Ze)ue.fire(new w.ErrorEvent(Ze));else if(Et)for(var Ot in Et)ue.imageManager.addImage(Ot,Et[Ot]);ue.imageManager.setLoaded(!0),ue._availableImages=ue.imageManager.listImages(),ue.dispatcher.broadcast("setImages",ue._availableImages),ue.fire(new w.Event("data",{dataType:"style"}))})},J.prototype._validateLayer=function(Q){var ue=this.sourceCaches[Q.source];if(ue){var Ze=Q.sourceLayer;if(Ze){var Et=ue.getSource();(Et.type==="geojson"||Et.vectorLayerIds&&Et.vectorLayerIds.indexOf(Ze)===-1)&&this.fire(new w.ErrorEvent(new Error('Source layer "'+Ze+'" does not exist on source "'+Et.id+'" as specified by style layer "'+Q.id+'"')))}}},J.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var Q in this.sourceCaches)if(!this.sourceCaches[Q].loaded())return!1;return!!this.imageManager.isLoaded()},J.prototype._serializeLayers=function(Q){for(var ue=[],Ze=0,Et=Q;Ze0)throw new Error("Unimplemented: "+Et.map(function(Ot){return Ot.command}).join(", ")+".");return Ze.forEach(function(Ot){Ot.command!=="setTransition"&&ue[Ot.command].apply(ue,Ot.args)}),this.stylesheet=Q,!0},J.prototype.addImage=function(Q,ue){if(this.getImage(Q))return this.fire(new w.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(Q,ue),this._afterImageUpdated(Q)},J.prototype.updateImage=function(Q,ue){this.imageManager.updateImage(Q,ue)},J.prototype.getImage=function(Q){return this.imageManager.getImage(Q)},J.prototype.removeImage=function(Q){if(!this.getImage(Q))return this.fire(new w.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(Q),this._afterImageUpdated(Q)},J.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 w.Event("data",{dataType:"style"}))},J.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},J.prototype.addSource=function(Q,ue,Ze){var Et=this;if(Ze===void 0&&(Ze={}),this._checkLoaded(),this.sourceCaches[Q]!==void 0)throw new Error("There is already a source with this ID");if(!ue.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(ue).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(ue.type)>=0&&this._validate(w.validateStyle.source,"sources."+Q,ue,null,Ze))){this.map&&this.map._collectResourceTiming&&(ue.collectResourceTiming=!0);var Ot=this.sourceCaches[Q]=new Cn(Q,ue,this.dispatcher);Ot.style=this,Ot.setEventedParent(this,function(){return{isSourceLoaded:Et.loaded(),source:Ot.serialize(),sourceId:Q}}),Ot.onAdd(this.map),this._changed=!0}},J.prototype.removeSource=function(Q){if(this._checkLoaded(),this.sourceCaches[Q]===void 0)throw new Error("There is no source with this ID");for(var ue in this._layers)if(this._layers[ue].source===Q)return this.fire(new w.ErrorEvent(new Error('Source "'+Q+'" cannot be removed while layer "'+ue+'" is using it.')));var Ze=this.sourceCaches[Q];delete this.sourceCaches[Q],delete this._updatedSources[Q],Ze.fire(new w.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:Q})),Ze.setEventedParent(null),Ze.clearTiles(),Ze.onRemove&&Ze.onRemove(this.map),this._changed=!0},J.prototype.setGeoJSONSourceData=function(Q,ue){this._checkLoaded(),this.sourceCaches[Q].getSource().setData(ue),this._changed=!0},J.prototype.getSource=function(Q){return this.sourceCaches[Q]&&this.sourceCaches[Q].getSource()},J.prototype.addLayer=function(Q,ue,Ze){Ze===void 0&&(Ze={}),this._checkLoaded();var Et=Q.id;if(this.getLayer(Et))this.fire(new w.ErrorEvent(new Error('Layer with id "'+Et+'" already exists on this map')));else{var Ot;if(Q.type==="custom"){if(Ps(this,w.validateCustomStyleLayer(Q)))return;Ot=w.createStyleLayer(Q)}else{if(typeof Q.source=="object"&&(this.addSource(Et,Q.source),Q=w.clone$1(Q),Q=w.extend(Q,{source:Et})),this._validate(w.validateStyle.layer,"layers."+Et,Q,{arrayIndex:-1},Ze))return;Ot=w.createStyleLayer(Q),this._validateLayer(Ot),Ot.setEventedParent(this,{layer:{id:Et}}),this._serializedLayers[Ot.id]=Ot.serialize()}var mn=ue?this._order.indexOf(ue):this._order.length;if(ue&&mn===-1)this.fire(new w.ErrorEvent(new Error('Layer with id "'+ue+'" does not exist on this map.')));else{if(this._order.splice(mn,0,Et),this._layerOrderChanged=!0,this._layers[Et]=Ot,this._removedLayers[Et]&&Ot.source&&Ot.type!=="custom"){var yr=this._removedLayers[Et];delete this._removedLayers[Et],yr.type!==Ot.type?this._updatedSources[Ot.source]="clear":(this._updatedSources[Ot.source]="reload",this.sourceCaches[Ot.source].pause())}this._updateLayer(Ot),Ot.onAdd&&Ot.onAdd(this.map)}}},J.prototype.moveLayer=function(Q,ue){if(this._checkLoaded(),this._changed=!0,this._layers[Q]){if(Q!==ue){var Ze=this._order.indexOf(Q);this._order.splice(Ze,1);var Et=ue?this._order.indexOf(ue):this._order.length;ue&&Et===-1?this.fire(new w.ErrorEvent(new Error('Layer with id "'+ue+'" does not exist on this map.'))):(this._order.splice(Et,0,Q),this._layerOrderChanged=!0)}}else this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be moved.")))},J.prototype.removeLayer=function(Q){this._checkLoaded();var ue=this._layers[Q];if(ue){ue.setEventedParent(null);var Ze=this._order.indexOf(Q);this._order.splice(Ze,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[Q]=ue,delete this._layers[Q],delete this._serializedLayers[Q],delete this._updatedLayers[Q],delete this._updatedPaintProps[Q],ue.onRemove&&ue.onRemove(this.map)}else this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be removed.")))},J.prototype.getLayer=function(Q){return this._layers[Q]},J.prototype.hasLayer=function(Q){return Q in this._layers},J.prototype.setLayerZoomRange=function(Q,ue,Ze){this._checkLoaded();var Et=this.getLayer(Q);Et?Et.minzoom===ue&&Et.maxzoom===Ze||(ue!=null&&(Et.minzoom=ue),Ze!=null&&(Et.maxzoom=Ze),this._updateLayer(Et)):this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot have zoom extent.")))},J.prototype.setFilter=function(Q,ue,Ze){Ze===void 0&&(Ze={}),this._checkLoaded();var Et=this.getLayer(Q);if(Et){if(!w.deepEqual(Et.filter,ue))return ue==null?(Et.filter=void 0,void this._updateLayer(Et)):void(this._validate(w.validateStyle.filter,"layers."+Et.id+".filter",ue,null,Ze)||(Et.filter=w.clone$1(ue),this._updateLayer(Et)))}else this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be filtered.")))},J.prototype.getFilter=function(Q){return w.clone$1(this.getLayer(Q).filter)},J.prototype.setLayoutProperty=function(Q,ue,Ze,Et){Et===void 0&&(Et={}),this._checkLoaded();var Ot=this.getLayer(Q);Ot?w.deepEqual(Ot.getLayoutProperty(ue),Ze)||(Ot.setLayoutProperty(ue,Ze,Et),this._updateLayer(Ot)):this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be styled.")))},J.prototype.getLayoutProperty=function(Q,ue){var Ze=this.getLayer(Q);if(Ze)return Ze.getLayoutProperty(ue);this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style.")))},J.prototype.setPaintProperty=function(Q,ue,Ze,Et){Et===void 0&&(Et={}),this._checkLoaded();var Ot=this.getLayer(Q);Ot?w.deepEqual(Ot.getPaintProperty(ue),Ze)||(Ot.setPaintProperty(ue,Ze,Et)&&this._updateLayer(Ot),this._changed=!0,this._updatedPaintProps[Q]=!0):this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be styled.")))},J.prototype.getPaintProperty=function(Q,ue){return this.getLayer(Q).getPaintProperty(ue)},J.prototype.setFeatureState=function(Q,ue){this._checkLoaded();var Ze=Q.source,Et=Q.sourceLayer,Ot=this.sourceCaches[Ze];if(Ot!==void 0){var mn=Ot.getSource().type;mn==="geojson"&&Et?this.fire(new w.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):mn!=="vector"||Et?(Q.id===void 0&&this.fire(new w.ErrorEvent(new Error("The feature id parameter must be provided."))),Ot.setFeatureState(Et,Q.id,ue)):this.fire(new w.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new w.ErrorEvent(new Error("The source '"+Ze+"' does not exist in the map's style.")))},J.prototype.removeFeatureState=function(Q,ue){this._checkLoaded();var Ze=Q.source,Et=this.sourceCaches[Ze];if(Et!==void 0){var Ot=Et.getSource().type,mn=Ot==="vector"?Q.sourceLayer:void 0;Ot!=="vector"||mn?ue&&typeof Q.id!="string"&&typeof Q.id!="number"?this.fire(new w.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):Et.removeFeatureState(mn,Q.id,ue):this.fire(new w.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new w.ErrorEvent(new Error("The source '"+Ze+"' does not exist in the map's style.")))},J.prototype.getFeatureState=function(Q){this._checkLoaded();var ue=Q.source,Ze=Q.sourceLayer,Et=this.sourceCaches[ue];if(Et!==void 0){if(Et.getSource().type!=="vector"||Ze)return Q.id===void 0&&this.fire(new w.ErrorEvent(new Error("The feature id parameter must be provided."))),Et.getFeatureState(Ze,Q.id);this.fire(new w.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new w.ErrorEvent(new Error("The source '"+ue+"' does not exist in the map's style.")))},J.prototype.getTransition=function(){return w.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},J.prototype.serialize=function(){return w.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:w.mapObject(this.sourceCaches,function(Q){return Q.serialize()}),layers:this._serializeLayers(this._order)},function(Q){return Q!==void 0})},J.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},J.prototype._flattenAndSortRenderedFeatures=function(Q){for(var ue=this,Ze=function(ic){return ue._layers[ic].type==="fill-extrusion"},Et={},Ot=[],mn=this._order.length-1;mn>=0;mn--){var yr=this._order[mn];if(Ze(yr)){Et[yr]=mn;for(var Sn=0,bi=Q;Sn=0;zi--){var $o=this._order[zi];if(Ze($o))for(var Ks=Ot.length-1;Ks>=0;Ks--){var nl=Ot[Ks].feature;if(Et[nl.layer.id]=Da)return _e;var du=ln-Cd(si);if(du<1)return si;var rc=Yl?jt(Yl,0,du).join(""):_e.slice(0,du);if(hs===P)return rc+si;if(Yl&&(du+=rc.length-du),Lh(hs)){if(_e.slice(du).search(hs)){var Vh,Zh=rc;for(hs.global||(hs=ef(hs.source,Td(gi.exec(hs))+"g")),hs.lastIndex=0;Vh=hs.exec(Zh);)var md=Vh.index;rc=rc.slice(0,md===P?du:md)}}else if(_e.indexOf(Zp(hs),du)!=du){var Uf=rc.lastIndexOf(hs);Uf>-1&&(rc=rc.slice(0,Uf))}return rc+si}function ky(_e){return _e=Td(_e),_e&&Dt.test(_e)?_e.replace(xn,su):_e}var h1=jn(function(_e,et,ln){return _e+(ln?" ":"")+et.toUpperCase()}),Oy=Gi("toUpperCase");function pb(_e,et,ln){return _e=Td(_e),et=ln?P:et,et===P?uc(_e)?pu(_e):Tn(_e):_e.match(et)||[]}var m_=_f(function(_e,et){try{return us(_e,P,et)}catch(ln){return bs(ln)?ln:new Au(ln)}}),Ny=oi(function(_e,et){return Ma(et,function(ln){ln=_t(ln),vh(_e,ln,na(_e[ln],_e))}),_e});function ry(_e){var et=_e==null?0:_e.length,ln=Ro();return _e=et?Ta(_e,function(si){if(typeof si[1]!="function")throw new ld(V);return[ln(si[0]),si[1]]}):[],_f(function(si){for(var hs=-1;++hsnt)return[];var ln=Kt,si=_p(_e,Kt);et=Ro(et),_e-=Kt;for(var hs=Kd(si,et);++ln<_e;)et(ln);return hs}function V1(_e){return ve(_e)?Ta(_e,_t):wg(_e)?[_e]:Vt(Ge(Td(_e)))}function Rx(_e){var et=++yf;return Td(_e)+et}var sC=fi(function(_e,et){return _e+et},0),aC=ws("ceil"),rw=fi(function(_e,et){return _e/et},1),iw=ws("floor");function lC(_e){return _e&&_e.length?ud(_e,p1,Rc):P}function uC(_e,et){return _e&&_e.length?ud(_e,Ro(et,2),Rc):P}function mS(_e){return Nc(_e,p1)}function vS(_e,et){return Nc(_e,Ro(et,2))}function ZE(_e){return _e&&_e.length?ud(_e,p1,o0):P}function cC(_e,et){return _e&&_e.length?ud(_e,Ro(et,2),o0):P}var ow=fi(function(_e,et){return _e*et},1),vb=ws("round"),sw=fi(function(_e,et){return _e-et},0);function qb(_e){return _e&&_e.length?Mc(_e,p1):0}function iy(_e,et){return _e&&_e.length?Mc(_e,Ro(et,2)):0}return zo.after=Zr,zo.ary=hi,zo.assign=Hf,zo.assignIn=Xf,zo.assignInWith=Rg,zo.assignWith=Ef,zo.at=$g,zo.before=oo,zo.bind=na,zo.bindAll=Ny,zo.bindKey=rl,zo.castArray=vg,zo.chain=mm,zo.chunk=Ho,zo.compact=Jo,zo.concat=Pa,zo.cond=ry,zo.conforms=d1,zo.constant=gb,zo.countBy=W,zo.create=Cm,zo.curry=$s,zo.curryRight=ll,zo.debounce=tu,zo.defaults=Im,zo.defaultsDeep=A0,zo.defer=Rs,zo.delay=Cc,zo.difference=Ti,zo.differenceBy=os,zo.differenceWith=ua,zo.drop=Go,zo.dropRight=nl,zo.dropRightWhile=Zs,zo.dropWhile=Zi,zo.fill=Io,zo.filter=de,zo.flatMap=$t,zo.flatMapDeep=on,zo.flatMapDepth=Jn,zo.flatten=al,zo.flattenDeep=Ia,zo.flattenDepth=va,zo.flip=sd,zo.flow=$1,zo.flowRight=tw,zo.fromPairs=Ha,zo.functions=Gm,zo.functionsIn=Um,zo.groupBy=Di,zo.initial=Bo,zo.intersection=ka,zo.intersectionBy=yl,zo.intersectionWith=Cl,zo.invert=Jv,zo.invertBy=R0,zo.invokeMap=Ao,zo.iteratee=c2,zo.keyBy=Vo,zo.keys=Om,zo.keysIn=hv,zo.map=Lo,zo.mapKeys=My,zo.mapValues=Ai,zo.matches=nw,zo.matchesProperty=h2,zo.memoize=Rh,zo.merge=f_,zo.mergeWith=Jy,zo.method=Kb,zo.methodOf=d2,zo.mixin=f2,zo.negate=Ch,zo.nthArg=oC,zo.omit=b1,zo.omitBy=_y,zo.once=ad,zo.orderBy=co,zo.over=p2,zo.overArgs=up,zo.overEvery=WE,zo.overSome=e_,zo.partial=Pp,zo.partialRight=wd,zo.partition=Ys,zo.pick=_v,zo.pickBy=D0,zo.property=t_,zo.propertyOf=z_,zo.pull=Po,zo.pullAll=ea,zo.pullAllBy=Vl,zo.pullAllWith=lu,zo.pullAt=Eu,zo.range=mb,zo.rangeRight=Xb,zo.rearg=Fd,zo.reject=cu,zo.remove=rs,zo.rest=as,zo.reverse=Jd,zo.sampleSize=Lu,zo.set=x1,zo.setWith=c1,zo.shuffle=sh,zo.slice=xd,zo.sortBy=Nn,zo.sortedUniq=xm,zo.sortedUniqBy=Jm,zo.split=Qy,zo.spread=Ll,zo.tail=wm,zo.take=gg,zo.takeRight=Nf,zo.takeRightWhile=Ig,zo.takeWhile=Df,zo.tap=s0,zo.throttle=ff,zo.thru=a0,zo.toArray=xu,zo.toPairs=Ry,zo.toPairsIn=$0,zo.toPath=V1,zo.toPlainObject=Yd,zo.transform=Q0,zo.unary=pf,zo.union=lp,zo.unionBy=Qm,zo.unionWith=bp,zo.uniq=Hp,zo.uniqBy=Pc,zo.uniqWith=cm,zo.unset=Qv,zo.unzip=E0,zo.unzipWith=fc,zo.update=V0,zo.updateWith=Ev,zo.values=k0,zo.valuesIn=F_,zo.without=Fu,zo.words=pb,zo.wrap=Cf,zo.xor=Nv,zo.xorBy=Hm,zo.xorWith=cg,zo.zip=Ff,zo.zipObject=T0,zo.zipObjectDeep=af,zo.zipWith=F1,zo.entries=Ry,zo.entriesIn=$0,zo.extend=Xf,zo.extendWith=Rg,f2(zo,zo),zo.add=sC,zo.attempt=m_,zo.camelCase=e1,zo.capitalize=w1,zo.ceil=aC,zo.clamp=B1,zo.clone=Sf,zo.cloneDeep=Ih,zo.cloneDeepWith=rf,zo.cloneWith=iu,zo.conformsTo=Uc,zo.deburr=C1,zo.defaultTo=f1,zo.divide=rw,zo.endsWith=by,zo.eq=Fh,zo.escape=B_,zo.escapeRegExp=Bv,zo.every=re,zo.find=Le,zo.findIndex=Us,zo.findKey=Cg,zo.findLast=Je,zo.findLastIndex=pl,zo.findLastKey=Ug,zo.floor=iw,zo.forEach=br,zo.forEachRight=xi,zo.forIn=ny,zo.forInRight=yv,zo.forOwn=Xp,zo.forOwnRight=p0,zo.get=Ep,zo.gt=H,zo.gte=F,zo.has=Lv,zo.hasIn=Ly,zo.head=_s,zo.identity=p1,zo.includes=Do,zo.indexOf=La,zo.inRange=Zv,zo.invoke=u1,zo.isArguments=te,zo.isArray=ve,zo.isArrayBuffer=We,zo.isArrayLike=bt,zo.isArrayLikeObject=mt,zo.isBoolean=Qt,zo.isBuffer=En,zo.isDate=Tr,zo.isElement=li,zo.isEmpty=Mi,zo.isEqual=Co,zo.isEqualWith=jo,zo.isError=bs,zo.isFinite=Ca,zo.isFunction=Oa,zo.isInteger=sl,zo.isLength=jl,zo.isMap=Ku,zo.isMatch=ah,zo.isMatchWith=bd,zo.isNaN=zf,zo.isNative=Ed,zo.isNil=Xh,zo.isNull=Dd,zo.isNumber=gf,zo.isObject=_l,zo.isObjectLike=Xl,zo.isPlainObject=hd,zo.isRegExp=Lh,zo.isSafeInteger=ep,zo.isSet=bf,zo.isString=Gp,zo.isSymbol=wg,zo.isTypedArray=nm,zo.isUndefined=d0,zo.isWeakMap=vv,zo.isWeakSet=f0,zo.join=Ru,zo.kebabCase=lb,zo.last=Pu,zo.lastIndexOf=eu,zo.lowerCase=ub,zo.lowerFirst=z1,zo.lt=km,zo.lte=Wu,zo.max=lC,zo.maxBy=uC,zo.mean=mS,zo.meanBy=vS,zo.min=ZE,zo.minBy=cC,zo.stubArray=Lx,zo.stubFalse=v_,zo.stubObject=n_,zo.stubString=Mx,zo.stubTrue=Yb,zo.multiply=ow,zo.nth=Vs,zo.noConflict=gS,zo.noop=Px,zo.now=sr,zo.pad=g_,zo.padEnd=Ix,zo.padStart=hm,zo.parseInt=Gb,zo.random=Fv,zo.reduce=Fa,zo.reduceRight=xl,zo.repeat=iC,zo.replace=cb,zo.result=p_,zo.round=vb,zo.runInContext=Qa,zo.sample=$u,zo.size=_u,zo.snakeCase=a2,zo.some=Bc,zo.sortedIndex=Fp,zo.sortedIndexBy=tg,zo.sortedIndexOf=og,zo.sortedLastIndex=qm,zo.sortedLastIndexBy=Sv,zo.sortedLastIndexOf=h0,zo.startCase=l2,zo.startsWith=hb,zo.subtract=sw,zo.sum=qb,zo.sumBy=iy,zo.template=db,zo.times=U_,zo.toFinite=nh,zo.toInteger=cc,zo.toLength=id,zo.toLower=fb,zo.toNumber=Uh,zo.toSafeInteger=tp,zo.toString=Td,zo.toUpper=ew,zo.trim=u2,zo.trimEnd=jE,zo.trimStart=U1,zo.truncate=S1,zo.unescape=ky,zo.uniqueId=Rx,zo.upperCase=h1,zo.upperFirst=Oy,zo.each=br,zo.eachRight=xi,zo.first=_s,f2(zo,function(){var _e={};return ch(zo,function(et,ln){Mf.call(zo.prototype,ln)||(_e[ln]=et)}),_e}(),{chain:!1}),zo.VERSION=w,Ma(["bind","bindKey","curry","curryRight","partial","partialRight"],function(_e){zo[_e].placeholder=zo}),Ma(["drop","take"],function(_e,et){ge.prototype[_e]=function(ln){ln=ln===P?1:kf(cc(ln),0);var si=this.__filtered__&&!et?new ge(this):this.clone();return si.__filtered__?si.__takeCount__=_p(ln,si.__takeCount__):si.__views__.push({size:_p(ln,Kt),type:_e+(si.__dir__<0?"Right":"")}),si},ge.prototype[_e+"Right"]=function(ln){return this.reverse()[_e](ln).reverse()}}),Ma(["filter","map","takeWhile"],function(_e,et){var ln=et+1,si=ln==Xe||ln==Xt;ge.prototype[_e]=function(hs){var Da=this.clone();return Da.__iteratees__.push({iteratee:Ro(hs,3),type:ln}),Da.__filtered__=Da.__filtered__||si,Da}}),Ma(["head","last"],function(_e,et){var ln="take"+(et?"Right":"");ge.prototype[_e]=function(){return this[ln](1).value()[0]}}),Ma(["initial","tail"],function(_e,et){var ln="drop"+(et?"":"Right");ge.prototype[_e]=function(){return this.__filtered__?new ge(this):this[ln](1)}}),ge.prototype.compact=function(){return this.filter(p1)},ge.prototype.find=function(_e){return this.filter(_e).head()},ge.prototype.findLast=function(_e){return this.reverse().find(_e)},ge.prototype.invokeMap=_f(function(_e,et){return typeof _e=="function"?new ge(this):this.map(function(ln){return qf(ln,_e,et)})}),ge.prototype.reject=function(_e){return this.filter(Ch(Ro(_e)))},ge.prototype.slice=function(_e,et){_e=cc(_e);var ln=this;return ln.__filtered__&&(_e>0||et<0)?new ge(ln):(_e<0?ln=ln.takeRight(-_e):_e&&(ln=ln.drop(_e)),et!==P&&(et=cc(et),ln=et<0?ln.dropRight(-et):ln.take(et-_e)),ln)},ge.prototype.takeRightWhile=function(_e){return this.reverse().takeWhile(_e).reverse()},ge.prototype.toArray=function(){return this.take(Kt)},ch(ge.prototype,function(_e,et){var ln=/^(?:filter|find|map|reject)|While$/.test(et),si=/^(?:head|last)$/.test(et),hs=zo[si?"take"+(et=="last"?"Right":""):et],Da=si||/^find/.test(et);hs&&(zo.prototype[et]=function(){var Yl=this.__wrapped__,du=si?[1]:arguments,rc=Yl instanceof ge,Vh=du[0],Zh=rc||ve(Yl),md=function(dm){var Nm=hs.apply(zo,Xa([dm],du));return si&&Uf?Nm[0]:Nm};Zh&&ln&&typeof Vh=="function"&&Vh.length!=1&&(rc=Zh=!1);var Uf=this.__chain__,Tp=!!this.__actions__.length,sg=Da&&!Uf,ag=rc&&!Tp;if(!Da&&Zh){Yl=ag?Yl:new ge(this);var Sg=_e.apply(Yl,du);return Sg.__actions__.push({func:a0,args:[md],thisArg:P}),new le(Sg,Uf)}return sg&&ag?_e.apply(this,du):(Sg=this.thru(md),sg?si?Sg.value()[0]:Sg.value():Sg)})}),Ma(["pop","push","shift","sort","splice","unshift"],function(_e){var et=hf[_e],ln=/^(?:push|sort|unshift)$/.test(_e)?"tap":"thru",si=/^(?:pop|shift)$/.test(_e);zo.prototype[_e]=function(){var hs=arguments;if(si&&!this.__chain__){var Da=this.value();return et.apply(ve(Da)?Da:[],hs)}return this[ln](function(Yl){return et.apply(ve(Yl)?Yl:[],hs)})}}),ch(ge.prototype,function(_e,et){var ln=zo[et];if(ln){var si=ln.name+"";Mf.call(Dh,si)||(Dh[si]=[]),Dh[si].push({name:et,func:ln})}}),Dh[Er(P,xe).name]=[{name:"wrapper",func:P}],ge.prototype.clone=ot,ge.prototype.reverse=dn,ge.prototype.value=or,zo.prototype.at=Ws,zo.prototype.chain=qy,zo.prototype.commit=_g,zo.prototype.next=J0,zo.prototype.plant=f,zo.prototype.reverse=_,zo.prototype.toJSON=zo.prototype.valueOf=zo.prototype.value=T,zo.prototype.first=zo.prototype.head,wp&&(zo.prototype[wp]=Re),zo},Ud=mh();Hu._=Ud,v=function(){return Ud}.call(Y,y,Y,yt),v!==P&&(yt.exports=v)}).call(this)},88306:function(yt,Y,y){var v=y(83369),P="Expected a function";function w(b,B){if(typeof b!="function"||B!=null&&typeof B!="function")throw new TypeError(P);var V=function(){var k=arguments,R=B?B.apply(this,k):k[0],C=V.cache;if(C.has(R))return C.get(R);var g=b.apply(this,k);return V.cache=C.set(R,g)||C,g};return V.cache=new(w.Cache||v),V}w.Cache=v,yt.exports=w},82492:function(yt,Y,y){var v=y(42980),P=y(21463),w=P(function(b,B,V){v(b,B,V)});yt.exports=w},30236:function(yt,Y,y){var v=y(42980),P=y(21463),w=P(function(b,B,V,k){v(b,B,V,k)});yt.exports=w},50308:function(yt){function Y(){}yt.exports=Y},7771:function(yt,Y,y){var v=y(55639),P=function(){return v.Date.now()};yt.exports=P},97019:function(yt,Y,y){var v=y(5976),P=y(45604),w=v(P);yt.exports=w},45604:function(yt,Y,y){var v=y(65464);function P(w,b){return w&&w.length&&b&&b.length?v(w,b):w}yt.exports=P},70479:function(yt){function Y(){return[]}yt.exports=Y},95062:function(yt){function Y(){return!1}yt.exports=Y},23493:function(yt,Y,y){var v=y(23279),P=y(13218),w="Expected a function";function b(B,V,k){var R=!0,C=!0;if(typeof B!="function")throw new TypeError(w);return P(k)&&(R="leading"in k?!!k.leading:R,C="trailing"in k?!!k.trailing:C),v(B,V,{leading:R,maxWait:V,trailing:C})}yt.exports=b},14841:function(yt,Y,y){var v=y(4107),P=y(13218),w=y(33448),b=0/0,B=/^[-+]0x[0-9a-f]+$/i,V=/^0b[01]+$/i,k=/^0o[0-7]+$/i,R=parseInt;function C(g){if(typeof g=="number")return g;if(w(g))return b;if(P(g)){var A=typeof g.valueOf=="function"?g.valueOf():g;g=P(A)?A+"":A}if(typeof g!="string")return g===0?g:+g;g=v(g);var O=V.test(g);return O||k.test(g)?R(g.slice(2),O?2:8):B.test(g)?b:+g}yt.exports=C},59881:function(yt,Y,y){var v=y(98363),P=y(81704);function w(b){return v(b,P(b))}yt.exports=w},79833:function(yt,Y,y){var v=y(80531);function P(w){return w==null?"":v(w)}yt.exports=P},44908:function(yt,Y,y){var v=y(45652);function P(w){return w&&w.length?v(w):[]}yt.exports=P},11700:function(yt,Y,y){var v=y(98805),P=v("toUpperCase");yt.exports=P},58748:function(yt,Y,y){var v=y(49029),P=y(93157),w=y(79833),b=y(2757);function B(V,k,R){return V=w(V),k=R?void 0:k,k===void 0?P(V)?b(V):v(V):V.match(k)||[]}yt.exports=B},6158:function(yt){(function(Y,y){yt.exports=y()})(this,function(){"use strict";var Y,y,v;function P(w,b){if(!Y)Y=b;else if(!y)y=b;else{var B="var sharedChunk = {}; ("+Y+")(sharedChunk); ("+y+")(sharedChunk);",V={};Y(V),v=b(V),typeof window!="undefined"&&(v.workerUrl=window.URL.createObjectURL(new Blob([B],{type:"text/javascript"})))}}return P(["exports"],function(w){"use strict";function b(f,_){return f(_={exports:{}},_.exports),_.exports}var B=V;function V(f,_,T,W){this.cx=3*f,this.bx=3*(T-f)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*_,this.by=3*(W-_)-this.cy,this.ay=1-this.cy-this.by,this.p1x=f,this.p1y=W,this.p2x=T,this.p2y=W}V.prototype.sampleCurveX=function(f){return((this.ax*f+this.bx)*f+this.cx)*f},V.prototype.sampleCurveY=function(f){return((this.ay*f+this.by)*f+this.cy)*f},V.prototype.sampleCurveDerivativeX=function(f){return(3*this.ax*f+2*this.bx)*f+this.cx},V.prototype.solveCurveX=function(f,_){var T,W,re,de,Le;for(_===void 0&&(_=1e-6),re=f,Le=0;Le<8;Le++){if(de=this.sampleCurveX(re)-f,Math.abs(de)<_)return re;var Je=this.sampleCurveDerivativeX(re);if(Math.abs(Je)<1e-6)break;re-=de/Je}if((re=f)<(T=0))return T;if(re>(W=1))return W;for(;Tde?T=re:W=re,re=.5*(W-T)+T}return re},V.prototype.solve=function(f,_){return this.sampleCurveY(this.solveCurveX(f,_))};var k=R;function R(f,_){this.x=f,this.y=_}R.prototype={clone:function(){return new R(this.x,this.y)},add:function(f){return this.clone()._add(f)},sub:function(f){return this.clone()._sub(f)},multByPoint:function(f){return this.clone()._multByPoint(f)},divByPoint:function(f){return this.clone()._divByPoint(f)},mult:function(f){return this.clone()._mult(f)},div:function(f){return this.clone()._div(f)},rotate:function(f){return this.clone()._rotate(f)},rotateAround:function(f,_){return this.clone()._rotateAround(f,_)},matMult:function(f){return this.clone()._matMult(f)},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(f){return this.x===f.x&&this.y===f.y},dist:function(f){return Math.sqrt(this.distSqr(f))},distSqr:function(f){var _=f.x-this.x,T=f.y-this.y;return _*_+T*T},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(f){return Math.atan2(this.y-f.y,this.x-f.x)},angleWith:function(f){return this.angleWithSep(f.x,f.y)},angleWithSep:function(f,_){return Math.atan2(this.x*_-this.y*f,this.x*f+this.y*_)},_matMult:function(f){var _=f[2]*this.x+f[3]*this.y;return this.x=f[0]*this.x+f[1]*this.y,this.y=_,this},_add:function(f){return this.x+=f.x,this.y+=f.y,this},_sub:function(f){return this.x-=f.x,this.y-=f.y,this},_mult:function(f){return this.x*=f,this.y*=f,this},_div:function(f){return this.x/=f,this.y/=f,this},_multByPoint:function(f){return this.x*=f.x,this.y*=f.y,this},_divByPoint:function(f){return this.x/=f.x,this.y/=f.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var f=this.y;return this.y=this.x,this.x=-f,this},_rotate:function(f){var _=Math.cos(f),T=Math.sin(f),W=T*this.x+_*this.y;return this.x=_*this.x-T*this.y,this.y=W,this},_rotateAround:function(f,_){var T=Math.cos(f),W=Math.sin(f),re=_.y+W*(this.x-_.x)+T*(this.y-_.y);return this.x=_.x+T*(this.x-_.x)-W*(this.y-_.y),this.y=re,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},R.convert=function(f){return f instanceof R?f:Array.isArray(f)?new R(f[0],f[1]):f};var C=typeof self!="undefined"?self:{},g=Math.pow(2,53)-1;function A(f,_,T,W){var re=new B(f,_,T,W);return function(de){return re.solve(de)}}var O=A(.25,.1,.25,1);function K(f,_,T){return Math.min(T,Math.max(_,f))}function he(f,_,T){var W=T-_,re=((f-_)%W+W)%W+_;return re===_?T:re}function ae(f){for(var _=[],T=arguments.length-1;T-- >0;)_[T]=arguments[T+1];for(var W=0,re=_;W>_/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,f)}()}function be(f){return!!f&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(f)}function Qe(f,_){f.forEach(function(T){_[T]&&(_[T]=_[T].bind(_))})}function Ve(f,_){return f.indexOf(_,f.length-_.length)!==-1}function pt(f,_,T){var W={};for(var re in f)W[re]=_.call(T||this,f[re],re,f);return W}function st(f,_,T){var W={};for(var re in f)_.call(T||this,f[re],re,f)&&(W[re]=f[re]);return W}function Ae(f){return Array.isArray(f)?f.map(Ae):typeof f=="object"&&f?pt(f,Ae):f}var De={};function Te(f){De[f]||(typeof console!="undefined"&&console.warn(f),De[f]=!0)}function Me(f,_,T){return(T.y-f.y)*(_.x-f.x)>(_.y-f.y)*(T.x-f.x)}function Ue(f){for(var _=0,T=0,W=f.length,re=W-1,de=void 0,Le=void 0;T@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(W,re,de,Le){var Je=de||Le;return _[re]=!Je||Je.toLowerCase(),""}),_["max-age"]){var T=parseInt(_["max-age"],10);isNaN(T)?delete _["max-age"]:_["max-age"]=T}return _}var Be=null;function Xt(f){if(Be==null){var _=f.navigator?f.navigator.userAgent:null;Be=!!f.safari||!(!_||!(/\b(iPad|iPhone|iPod)\b/.test(_)||_.match("Safari")&&!_.match("Chrome")))}return Be}function St(f){try{var _=C[f];return _.setItem("_mapbox_test_",1),_.removeItem("_mapbox_test_"),!0}catch(T){return!1}}var nt,wt,lt,Kt,Mt=C.performance&&C.performance.now?C.performance.now.bind(C.performance):Date.now.bind(Date),hn=C.requestAnimationFrame||C.mozRequestAnimationFrame||C.webkitRequestAnimationFrame||C.msRequestAnimationFrame,un=C.cancelAnimationFrame||C.mozCancelAnimationFrame||C.webkitCancelAnimationFrame||C.msCancelAnimationFrame,Sr={now:Mt,frame:function(f){var _=hn(f);return{cancel:function(){return un(_)}}},getImageData:function(f,_){_===void 0&&(_=0);var T=C.document.createElement("canvas"),W=T.getContext("2d");if(!W)throw new Error("failed to create canvas 2d context");return T.width=f.width,T.height=f.height,W.drawImage(f,0,0,f.width,f.height),W.getImageData(-_,-_,f.width+2*_,f.height+2*_)},resolveURL:function(f){return nt||(nt=C.document.createElement("a")),nt.href=f,nt.href},hardwareConcurrency:C.navigator&&C.navigator.hardwareConcurrency||4,get devicePixelRatio(){return C.devicePixelRatio},get prefersReducedMotion(){return!!C.matchMedia&&(wt==null&&(wt=C.matchMedia("(prefers-reduced-motion: reduce)")),wt.matches)}},ii={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},Ii={supported:!1,testSupport:function(f){!Ni&&Kt&&(eo?ti(f):lt=f)}},Ni=!1,eo=!1;function ti(f){var _=f.createTexture();f.bindTexture(f.TEXTURE_2D,_);try{if(f.texImage2D(f.TEXTURE_2D,0,f.RGBA,f.RGBA,f.UNSIGNED_BYTE,Kt),f.isContextLost())return;Ii.supported=!0}catch(T){}f.deleteTexture(_),Ni=!0}C.document&&((Kt=C.document.createElement("img")).onload=function(){lt&&ti(lt),lt=null,eo=!0},Kt.onerror=function(){Ni=!0,lt=null},Kt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var Is="01",Ns=function(f,_){this._transformRequestFn=f,this._customAccessToken=_,this._createSkuToken()};function Se(f){return f.indexOf("mapbox:")===0}Ns.prototype._createSkuToken=function(){var f=function(){for(var _="",T=0;T<10;T++)_+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",Is,_].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=f.token,this._skuTokenExpiresAt=f.tokenExpiresAt},Ns.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Ns.prototype.transformRequest=function(f,_){return this._transformRequestFn&&this._transformRequestFn(f,_)||{url:f}},Ns.prototype.normalizeStyleURL=function(f,_){if(!Se(f))return f;var T=di(f);return T.path="/styles/v1"+T.path,this._makeAPIURL(T,this._customAccessToken||_)},Ns.prototype.normalizeGlyphsURL=function(f,_){if(!Se(f))return f;var T=di(f);return T.path="/fonts/v1"+T.path,this._makeAPIURL(T,this._customAccessToken||_)},Ns.prototype.normalizeSourceURL=function(f,_){if(!Se(f))return f;var T=di(f);return T.path="/v4/"+T.authority+".json",T.params.push("secure"),this._makeAPIURL(T,this._customAccessToken||_)},Ns.prototype.normalizeSpriteURL=function(f,_,T,W){var re=di(f);return Se(f)?(re.path="/styles/v1"+re.path+"/sprite"+_+T,this._makeAPIURL(re,this._customAccessToken||W)):(re.path+=""+_+T,Fs(re))},Ns.prototype.normalizeTileURL=function(f,_){if(this._isSkuTokenExpired()&&this._createSkuToken(),f&&!Se(f))return f;var T=di(f);T.path=T.path.replace(/(\.(png|jpg)\d*)(?=$)/,(Sr.devicePixelRatio>=2||_===512?"@2x":"")+(Ii.supported?".webp":"$1")),T.path=T.path.replace(/^.+\/v4\//,"/"),T.path="/v4"+T.path;var W=this._customAccessToken||function(re){for(var de=0,Le=re;de=0&&f.params.splice(re,1)}if(W.path!=="/"&&(f.path=""+W.path+f.path),!ii.REQUIRE_ACCESS_TOKEN)return Fs(f);if(!(_=_||ii.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+T);if(_[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+T);return f.params=f.params.filter(function(de){return de.indexOf("access_token")===-1}),f.params.push("access_token="+_),Fs(f)};var Xi=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Yi(f){return Xi.test(f)}var fo=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function di(f){var _=f.match(fo);if(!_)throw new Error("Unable to parse URL object");return{protocol:_[1],authority:_[2],path:_[3]||"/",params:_[4]?_[4].split("&"):[]}}function Fs(f){var _=f.params.length?"?"+f.params.join("&"):"";return f.protocol+"://"+f.authority+f.path+_}function Ln(f){if(!f)return null;var _=f.split(".");if(!_||_.length!==3)return null;try{return JSON.parse(decodeURIComponent(C.atob(_[1]).split("").map(function(T){return"%"+("00"+T.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch(T){return null}}var it=function(f){this.type=f,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};it.prototype.getStorageKey=function(f){var _,T=Ln(ii.ACCESS_TOKEN);return _=T&&T.u?C.btoa(encodeURIComponent(T.u).replace(/%([0-9A-F]{2})/g,function(W,re){return String.fromCharCode(+("0x"+re))})):ii.ACCESS_TOKEN||"",f?"mapbox.eventData."+f+":"+_:"mapbox.eventData:"+_},it.prototype.fetchEventData=function(){var f=St("localStorage"),_=this.getStorageKey(),T=this.getStorageKey("uuid");if(f)try{var W=C.localStorage.getItem(_);W&&(this.eventData=JSON.parse(W));var re=C.localStorage.getItem(T);re&&(this.anonId=re)}catch(de){Te("Unable to read from LocalStorage")}},it.prototype.saveEventData=function(){var f=St("localStorage"),_=this.getStorageKey(),T=this.getStorageKey("uuid");if(f)try{C.localStorage.setItem(T,this.anonId),Object.keys(this.eventData).length>=1&&C.localStorage.setItem(_,JSON.stringify(this.eventData))}catch(W){Te("Unable to write to LocalStorage")}},it.prototype.processRequests=function(f){},it.prototype.postEvent=function(f,_,T,W){var re=this;if(ii.EVENTS_URL){var de=di(ii.EVENTS_URL);de.params.push("access_token="+(W||ii.ACCESS_TOKEN||""));var Le={event:this.type,created:new Date(f).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.3",skuId:Is,userId:this.anonId},Je=_?ae(Le,_):Le,$t={url:Fs(de),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Je])};this.pendingRequest=pn($t,function(on){re.pendingRequest=null,T(on),re.saveEventData(),re.processRequests(W)})}},it.prototype.queueRequest=function(f,_){this.queue.push(f),this.processRequests(_)};var Ot,Ht,Pn=function(f){function _(){f.call(this,"map.load"),this.success={},this.skuToken=""}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.postMapLoadEvent=function(T,W,re,de){this.skuToken=re;var Le=!(!de&&!ii.ACCESS_TOKEN),Je=Array.isArray(T)&&T.some(function($t){return Se($t)||Yi($t)});ii.EVENTS_URL&&Le&&Je&&this.queueRequest({id:W,timestamp:Date.now()},de)},_.prototype.processRequests=function(T){var W=this;if(!this.pendingRequest&&this.queue.length!==0){var re=this.queue.shift(),de=re.id,Le=re.timestamp;de&&this.success[de]||(this.anonId||this.fetchEventData(),be(this.anonId)||(this.anonId=ye()),this.postEvent(Le,{skuToken:this.skuToken},function(Je){Je||de&&(W.success[de]=!0)},T))}},_}(it),fr=new(function(f){function _(T){f.call(this,"appUserTurnstile"),this._customAccessToken=T}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.postTurnstileEvent=function(T,W){ii.EVENTS_URL&&ii.ACCESS_TOKEN&&Array.isArray(T)&&T.some(function(re){return Se(re)||Yi(re)})&&this.queueRequest(Date.now(),W)},_.prototype.processRequests=function(T){var W=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var re=Ln(ii.ACCESS_TOKEN),de=re?re.u:ii.ACCESS_TOKEN,Le=de!==this.eventData.tokenU;be(this.anonId)||(this.anonId=ye(),Le=!0);var Je=this.queue.shift();if(this.eventData.lastSuccess){var $t=new Date(this.eventData.lastSuccess),on=new Date(Je),Jn=(Je-this.eventData.lastSuccess)/864e5;Le=Le||Jn>=1||Jn<-1||$t.getDate()!==on.getDate()}else Le=!0;if(!Le)return this.processRequests();this.postEvent(Je,{"enabled.telemetry":!1},function(br){br||(W.eventData.lastSuccess=Je,W.eventData.tokenU=de)},T)}},_}(it)),In=fr.postTurnstileEvent.bind(fr),mn=new Pn,Ut=mn.postMapLoadEvent.bind(mn),en=500,Cn=50;function lr(){C.caches&&!Ot&&(Ot=C.caches.open("mapbox-tiles"))}function pr(f){var _=f.indexOf("?");return _<0?f:f.slice(0,_)}var an,wr=1/0;function Cr(){return an==null&&(an=C.OffscreenCanvas&&new C.OffscreenCanvas(1,1).getContext("2d")&&typeof C.createImageBitmap=="function"),an}var Ei={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(Ei);var vo=function(f){function _(T,W,re){W===401&&Yi(re)&&(T+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),f.call(this,T),this.status=W,this.url=re,this.name=this.constructor.name,this.message=T}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},_}(Error),kr=Pe()?function(){return self.worker&&self.worker.referrer}:function(){return(C.location.protocol==="blob:"?C.parent:C).location.href},ro,qi,bo=function(f,_){if(!(/^file:/.test(T=f.url)||/^file:/.test(kr())&&!/^\w+:/.test(T))){if(C.fetch&&C.Request&&C.AbortController&&C.Request.prototype.hasOwnProperty("signal"))return function(W,re){var de,Le=new C.AbortController,Je=new C.Request(W.url,{method:W.method||"GET",body:W.body,credentials:W.credentials,headers:W.headers,referrer:kr(),signal:Le.signal}),$t=!1,on=!1,Jn=(de=Je.url).indexOf("sku=")>0&&Yi(de);W.type==="json"&&Je.headers.set("Accept","application/json");var br=function(Di,Do,Ao){if(!on){if(Di&&Di.message!=="SecurityError"&&Te(Di),Do&&Ao)return xi(Do);var Vo=Date.now();C.fetch(Je).then(function(Lo){if(Lo.ok){var co=Jn?Lo.clone():null;return xi(Lo,co,Vo)}return re(new vo(Lo.statusText,Lo.status,W.url))}).catch(function(Lo){Lo.code!==20&&re(new Error(Lo.message))})}},xi=function(Di,Do,Ao){(W.type==="arrayBuffer"?Di.arrayBuffer():W.type==="json"?Di.json():Di.text()).then(function(Vo){on||(Do&&Ao&&function(Lo,co,Ys){if(lr(),Ot){var Fa={status:co.status,statusText:co.statusText,headers:new C.Headers};co.headers.forEach(function(cu,$u){return Fa.headers.set($u,cu)});var xl=Xe(co.headers.get("Cache-Control")||"");xl["no-store"]||(xl["max-age"]&&Fa.headers.set("Expires",new Date(Ys+1e3*xl["max-age"]).toUTCString()),new Date(Fa.headers.get("Expires")).getTime()-Ys<42e4||function(cu,$u){if(Ht===void 0)try{new Response(new ReadableStream),Ht=!0}catch(Lu){Ht=!1}Ht?$u(cu.body):cu.blob().then($u)}(co,function(cu){var $u=new C.Response(cu,Fa);lr(),Ot&&Ot.then(function(Lu){return Lu.put(pr(Lo.url),$u)}).catch(function(Lu){return Te(Lu.message)})}))}}(Je,Do,Ao),$t=!0,re(null,Vo,Di.headers.get("Cache-Control"),Di.headers.get("Expires")))}).catch(function(Vo){on||re(new Error(Vo.message))})};return Jn?function(Di,Do){if(lr(),!Ot)return Do(null);var Ao=pr(Di.url);Ot.then(function(Vo){Vo.match(Ao).then(function(Lo){var co=function(Ys){if(!Ys)return!1;var Fa=new Date(Ys.headers.get("Expires")||0),xl=Xe(Ys.headers.get("Cache-Control")||"");return Fa>Date.now()&&!xl["no-cache"]}(Lo);Vo.delete(Ao),co&&Vo.put(Ao,Lo.clone()),Do(null,Lo,co)}).catch(Do)}).catch(Do)}(Je,br):br(null,null),{cancel:function(){on=!0,$t||Le.abort()}}}(f,_);if(Pe()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",f,_,void 0,!0)}var T;return function(W,re){var de=new C.XMLHttpRequest;for(var Le in de.open(W.method||"GET",W.url,!0),W.type==="arrayBuffer"&&(de.responseType="arraybuffer"),W.headers)de.setRequestHeader(Le,W.headers[Le]);return W.type==="json"&&(de.responseType="text",de.setRequestHeader("Accept","application/json")),de.withCredentials=W.credentials==="include",de.onerror=function(){re(new Error(de.statusText))},de.onload=function(){if((de.status>=200&&de.status<300||de.status===0)&&de.response!==null){var Je=de.response;if(W.type==="json")try{Je=JSON.parse(de.response)}catch($t){return re($t)}re(null,Je,de.getResponseHeader("Cache-Control"),de.getResponseHeader("Expires"))}else re(new vo(de.statusText,de.status,W.url))},de.send(W.body),{cancel:function(){return de.abort()}}}(f,_)},xn=function(f,_){return bo(ae(f,{type:"arrayBuffer"}),_)},pn=function(f,_){return bo(ae(f,{method:"POST"}),_)},Dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";ro=[],qi=0;var Zt=function(f,_){if(Ii.supported&&(f.headers||(f.headers={}),f.headers.accept="image/webp,*/*"),qi>=ii.MAX_PARALLEL_IMAGE_REQUESTS){var T={requestParameters:f,callback:_,cancelled:!1,cancel:function(){this.cancelled=!0}};return ro.push(T),T}qi++;var W=!1,re=function(){if(!W)for(W=!0,qi--;ro.length&&qi0||this._oneTimeListeners&&this._oneTimeListeners[f]&&this._oneTimeListeners[f].length>0||this._eventedParent&&this._eventedParent.listens(f)},dr.prototype.setEventedParent=function(f,_){return this._eventedParent=f,this._eventedParentData=_,this};var Yt={$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"},sources:{required:!0,type:"sources"},sprite:{type:"string"},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:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{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"}},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"],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"}},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":{},within:{}}},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}},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"}}},wn=function(f,_,T,W){this.message=(f?f+": ":"")+T,W&&(this.identifier=W),_!=null&&_.__line__&&(this.line=_.__line__)};function Qn(f){var _=f.value;return _?[new wn(f.key,_,"constants have been deprecated as of v8")]:[]}function Mr(f){for(var _=[],T=arguments.length-1;T-- >0;)_[T]=arguments[T+1];for(var W=0,re=_;W":f.itemType.kind==="value"?"array":"array<"+_+">"}return f.kind}var gs=[qr,yi,Hr,ci,gi,Kr,mi,ns(Bi),Qi];function Gr(f,_){if(_.kind==="error")return null;if(f.kind==="array"){if(_.kind==="array"&&(_.N===0&&_.itemType.kind==="value"||!Gr(f.itemType,_.itemType))&&(typeof f.N!="number"||f.N===_.N))return null}else{if(f.kind===_.kind)return null;if(f.kind==="value"){for(var T=0,W=gs;T255?255:Je}function re(Je){return W(Je[Je.length-1]==="%"?parseFloat(Je)/100*255:parseInt(Je))}function de(Je){return($t=Je[Je.length-1]==="%"?parseFloat(Je)/100:parseFloat(Je))<0?0:$t>1?1:$t;var $t}function Le(Je,$t,on){return on<0?on+=1:on>1&&(on-=1),6*on<1?Je+($t-Je)*on*6:2*on<1?$t:3*on<2?Je+($t-Je)*(2/3-on)*6:Je}try{_.parseCSSColor=function(Je){var $t,on=Je.replace(/ /g,"").toLowerCase();if(on in T)return T[on].slice();if(on[0]==="#")return on.length===4?($t=parseInt(on.substr(1),16))>=0&&$t<=4095?[(3840&$t)>>4|(3840&$t)>>8,240&$t|(240&$t)>>4,15&$t|(15&$t)<<4,1]:null:on.length===7&&($t=parseInt(on.substr(1),16))>=0&&$t<=16777215?[(16711680&$t)>>16,(65280&$t)>>8,255&$t,1]:null;var Jn=on.indexOf("("),br=on.indexOf(")");if(Jn!==-1&&br+1===on.length){var xi=on.substr(0,Jn),Di=on.substr(Jn+1,br-(Jn+1)).split(","),Do=1;switch(xi){case"rgba":if(Di.length!==4)return null;Do=de(Di.pop());case"rgb":return Di.length!==3?null:[re(Di[0]),re(Di[1]),re(Di[2]),Do];case"hsla":if(Di.length!==4)return null;Do=de(Di.pop());case"hsl":if(Di.length!==3)return null;var Ao=(parseFloat(Di[0])%360+360)%360/360,Vo=de(Di[1]),Lo=de(Di[2]),co=Lo<=.5?Lo*(Vo+1):Lo+Vo-Lo*Vo,Ys=2*Lo-co;return[W(255*Le(Ys,co,Ao+1/3)),W(255*Le(Ys,co,Ao)),W(255*Le(Ys,co,Ao-1/3)),Do];default:return null}}return null}}catch(Je){}}).parseCSSColor,bn=function(f,_,T,W){W===void 0&&(W=1),this.r=f,this.g=_,this.b=T,this.a=W};bn.parse=function(f){if(f){if(f instanceof bn)return f;if(typeof f=="string"){var _=Jr(f);if(_)return new bn(_[0]/255*_[3],_[1]/255*_[3],_[2]/255*_[3],_[3])}}},bn.prototype.toString=function(){var f=this.toArray(),_=f[1],T=f[2],W=f[3];return"rgba("+Math.round(f[0])+","+Math.round(_)+","+Math.round(T)+","+W+")"},bn.prototype.toArray=function(){var f=this.a;return f===0?[0,0,0,0]:[255*this.r/f,255*this.g/f,255*this.b/f,f]},bn.black=new bn(0,0,0,1),bn.white=new bn(1,1,1,1),bn.transparent=new bn(0,0,0,0),bn.red=new bn(1,0,0,1);var Or=function(f,_,T){this.sensitivity=f?_?"variant":"case":_?"accent":"base",this.locale=T,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Or.prototype.compare=function(f,_){return this.collator.compare(f,_)},Or.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var qo=function(f,_,T,W,re){this.text=f,this.image=_,this.scale=T,this.fontStack=W,this.textColor=re},Mo=function(f){this.sections=f};Mo.fromString=function(f){return new Mo([new qo(f,null,null,null,null)])},Mo.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(f){return f.text.length!==0||f.image&&f.image.name.length!==0})},Mo.factory=function(f){return f instanceof Mo?f:Mo.fromString(f)},Mo.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(f){return f.text}).join("")},Mo.prototype.serialize=function(){for(var f=["format"],_=0,T=this.sections;_=0&&f<=255&&typeof _=="number"&&_>=0&&_<=255&&typeof T=="number"&&T>=0&&T<=255?W===void 0||typeof W=="number"&&W>=0&&W<=1?null:"Invalid rgba value ["+[f,_,T,W].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof W=="number"?[f,_,T,W]:[f,_,T]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function ho(f){if(f===null||typeof f=="string"||typeof f=="boolean"||typeof f=="number"||f instanceof bn||f instanceof Or||f instanceof Mo||f instanceof vs)return!0;if(Array.isArray(f)){for(var _=0,T=f;_2){var Je=f[1];if(typeof Je!="string"||!(Je in to)||Je==="object")return _.error('The item type argument of "array" must be one of string, number, boolean',1);de=to[Je],W++}else de=Bi;if(f.length>3){if(f[2]!==null&&(typeof f[2]!="number"||f[2]<0||f[2]!==Math.floor(f[2])))return _.error('The length argument to "array" must be a positive integer literal',2);Le=f[2],W++}T=ns(de,Le)}else T=to[re];for(var $t=[];W1)&&_.push(W)}}return _.concat(this.args.map(function(re){return re.serialize()}))};var ps=function(f){this.type=Kr,this.sections=f};ps.parse=function(f,_){if(f.length<2)return _.error("Expected at least one argument.");var T=f[1];if(!Array.isArray(T)&&typeof T=="object")return _.error("First argument must be an image or text section.");for(var W=[],re=!1,de=1;de<=f.length-1;++de){var Le=f[de];if(re&&typeof Le=="object"&&!Array.isArray(Le)){re=!1;var Je=null;if(Le["font-scale"]&&!(Je=_.parse(Le["font-scale"],1,yi)))return null;var $t=null;if(Le["text-font"]&&!($t=_.parse(Le["text-font"],1,ns(Hr))))return null;var on=null;if(Le["text-color"]&&!(on=_.parse(Le["text-color"],1,gi)))return null;var Jn=W[W.length-1];Jn.scale=Je,Jn.font=$t,Jn.textColor=on}else{var br=_.parse(f[de],1,Bi);if(!br)return null;var xi=br.type.kind;if(xi!=="string"&&xi!=="value"&&xi!=="null"&&xi!=="resolvedImage")return _.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");re=!0,W.push({content:br,scale:null,font:null,textColor:null})}}return new ps(W)},ps.prototype.evaluate=function(f){return new Mo(this.sections.map(function(_){var T=_.content.evaluate(f);return aa(T)===Qi?new qo("",T,null,null,null):new qo(Ka(T),null,_.scale?_.scale.evaluate(f):null,_.font?_.font.evaluate(f).join(","):null,_.textColor?_.textColor.evaluate(f):null)}))},ps.prototype.eachChild=function(f){for(var _=0,T=this.sections;_-1),T},Wn.prototype.eachChild=function(f){f(this.input)},Wn.prototype.outputDefined=function(){return!1},Wn.prototype.serialize=function(){return["image",this.input.serialize()]};var yo={"to-boolean":ci,"to-color":gi,"to-number":yi,"to-string":Hr},Qo=function(f,_){this.type=f,this.args=_};Qo.parse=function(f,_){if(f.length<2)return _.error("Expected at least one argument.");var T=f[0];if((T==="to-boolean"||T==="to-string")&&f.length!==2)return _.error("Expected one argument.");for(var W=yo[T],re=[],de=1;de4?"Invalid rbga value "+JSON.stringify(_)+": expected an array containing either three or four numeric values.":Na(_[0],_[1],_[2],_[3])))return new bn(_[0]/255,_[1]/255,_[2]/255,_[3])}throw new Pi(T||"Could not parse color from value '"+(typeof _=="string"?_:String(JSON.stringify(_)))+"'")}if(this.type.kind==="number"){for(var Le=null,Je=0,$t=this.args;Je<$t.length;Je+=1){if((Le=$t[Je].evaluate(f))===null)return 0;var on=Number(Le);if(!isNaN(on))return on}throw new Pi("Could not convert "+JSON.stringify(Le)+" to number.")}return this.type.kind==="formatted"?Mo.fromString(Ka(this.args[0].evaluate(f))):this.type.kind==="resolvedImage"?vs.fromString(Ka(this.args[0].evaluate(f))):Ka(this.args[0].evaluate(f))},Qo.prototype.eachChild=function(f){this.args.forEach(f)},Qo.prototype.outputDefined=function(){return this.args.every(function(f){return f.outputDefined()})},Qo.prototype.serialize=function(){if(this.type.kind==="formatted")return new ps([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new Wn(this.args[0]).serialize();var f=["to-"+this.type.kind];return this.eachChild(function(_){f.push(_.serialize())}),f};var ss=["Unknown","Point","LineString","Polygon"],Ko=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};Ko.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},Ko.prototype.geometryType=function(){return this.feature?typeof this.feature.type=="number"?ss[this.feature.type]:this.feature.type:null},Ko.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},Ko.prototype.canonicalID=function(){return this.canonical},Ko.prototype.properties=function(){return this.feature&&this.feature.properties||{}},Ko.prototype.parseColor=function(f){var _=this._parseColorCache[f];return _||(_=this._parseColorCache[f]=bn.parse(f)),_};var Xn=function(f,_,T,W){this.name=f,this.type=_,this._evaluate=T,this.args=W};Xn.prototype.evaluate=function(f){return this._evaluate(f,this.args)},Xn.prototype.eachChild=function(f){this.args.forEach(f)},Xn.prototype.outputDefined=function(){return!1},Xn.prototype.serialize=function(){return[this.name].concat(this.args.map(function(f){return f.serialize()}))},Xn.parse=function(f,_){var T,W=f[0],re=Xn.definitions[W];if(!re)return _.error('Unknown expression "'+W+'". If you wanted a literal array, use ["literal", [...]].',0);for(var de=Array.isArray(re)?re[0]:re.type,Le=Array.isArray(re)?[[re[1],re[2]]]:re.overloads,Je=Le.filter(function(Bc){var Nn=Bc[0];return!Array.isArray(Nn)||Nn.length===f.length-1}),$t=null,on=0,Jn=Je;on=_[2]||f[1]<=_[1]||f[3]>=_[3])}function ht(f,_){var T=(180+f[0])/360,W=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+f[1]*Math.PI/360)))/360,re=Math.pow(2,_.z);return[Math.round(T*re*8192),Math.round(W*re*8192)]}function dt(f,_,T){return _[1]>f[1]!=T[1]>f[1]&&f[0]<(T[0]-_[0])*(f[1]-_[1])/(T[1]-_[1])+_[0]}function $e(f,_){for(var T,W,re,de,Le,Je,$t,on=!1,Jn=0,br=_.length;Jn0&&Je<0||Le<0&&Je>0}function gn(f,_,T){for(var W=0,re=T;WT[2]){var re=.5*W,de=f[0]-T[0]>re?-W:T[0]-f[0]>re?W:0;de===0&&(de=f[0]-T[2]>re?-W:T[2]-f[0]>re?W:0),f[0]+=de}Xr(_,f)}function zs(f,_,T,W){for(var re=8192*Math.pow(2,W.z),de=[8192*W.x,8192*W.y],Le=[],Je=0,$t=f;Je<$t.length;Je+=1)for(var on=0,Jn=$t[Je];on=0)return!1;var T=!0;return f.eachChild(function(W){T&&!As(W,_)&&(T=!1)}),T}Ms.parse=function(f,_){if(f.length!==2)return _.error("'within' expression requires exactly one argument, but found "+(f.length-1)+" instead.");if(ho(f[1])){var T=f[1];if(T.type==="FeatureCollection")for(var W=0;W_))throw new Pi("Input is not a number.");de=Le-1}return 0}za.prototype.parse=function(f,_,T,W,re){return re===void 0&&(re={}),_?this.concat(_,T,W)._parse(f,re):this._parse(f,re)},za.prototype._parse=function(f,_){function T(on,Jn,br){return br==="assert"?new So(Jn,[on]):br==="coerce"?new Qo(Jn,[on]):on}if(f!==null&&typeof f!="string"&&typeof f!="boolean"&&typeof f!="number"||(f=["literal",f]),Array.isArray(f)){if(f.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var W=f[0];if(typeof W!="string")return this.error("Expression name must be a string, but found "+typeof W+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var re=this.registry[W];if(re){var de=re.parse(f,this);if(!de)return null;if(this.expectedType){var Le=this.expectedType,Je=de.type;if(Le.kind!=="string"&&Le.kind!=="number"&&Le.kind!=="boolean"&&Le.kind!=="object"&&Le.kind!=="array"||Je.kind!=="value")if(Le.kind!=="color"&&Le.kind!=="formatted"&&Le.kind!=="resolvedImage"||Je.kind!=="value"&&Je.kind!=="string"){if(this.checkSubtype(Le,Je))return null}else de=T(de,Le,_.typeAnnotation||"coerce");else de=T(de,Le,_.typeAnnotation||"assert")}if(!(de instanceof Si)&&de.type.kind!=="resolvedImage"&&function on(Jn){if(Jn instanceof ia)return on(Jn.boundExpression);if(Jn instanceof Xn&&Jn.name==="error"||Jn instanceof Rr||Jn instanceof Ms)return!1;var br=Jn instanceof Qo||Jn instanceof So,xi=!0;return Jn.eachChild(function(Di){xi=br?xi&&on(Di):xi&&Di instanceof Si}),!!xi&&ks(Jn)&&As(Jn,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(de)){var $t=new Ko;try{de=new Si(de.type,de.evaluate($t))}catch(on){return this.error(on.message),null}}return de}return this.error('Unknown expression "'+W+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(f===void 0?"'undefined' value invalid. Use null instead.":typeof f=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof f+" instead.")},za.prototype.concat=function(f,_,T){var W=typeof f=="number"?this.path.concat(f):this.path,re=T?this.scope.concat(T):this.scope;return new za(this.registry,W,_||null,re,this.errors)},za.prototype.error=function(f){for(var _=[],T=arguments.length-1;T-- >0;)_[T]=arguments[T+1];var W=""+this.key+_.map(function(re){return"["+re+"]"}).join("");this.errors.push(new Kn(W,f))},za.prototype.checkSubtype=function(f,_){var T=Gr(f,_);return T&&this.error(T),T};var Hl=function(f,_,T){this.type=f,this.input=_,this.labels=[],this.outputs=[];for(var W=0,re=T;W=Le)return _.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',$t);var Jn=_.parse(Je,on,re);if(!Jn)return null;re=re||Jn.type,W.push([Le,Jn])}return new Hl(re,T,W)},Hl.prototype.evaluate=function(f){var _=this.labels,T=this.outputs;if(_.length===1)return T[0].evaluate(f);var W=this.input.evaluate(f);if(W<=_[0])return T[0].evaluate(f);var re=_.length;return W>=_[re-1]?T[re-1].evaluate(f):T[Zl(_,W)].evaluate(f)},Hl.prototype.eachChild=function(f){f(this.input);for(var _=0,T=this.outputs;_0&&f.push(this.labels[_]),f.push(this.outputs[_].serialize());return f};var js=Object.freeze({__proto__:null,number:fs,color:function(f,_,T){return new bn(fs(f.r,_.r,T),fs(f.g,_.g,T),fs(f.b,_.b,T),fs(f.a,_.a,T))},array:function(f,_,T){return f.map(function(W,re){return fs(W,_[re],T)})}}),hl=6/29*3*(6/29),Xo=Math.PI/180,Li=180/Math.PI;function Yo(f){return f>.008856451679035631?Math.pow(f,1/3):f/hl+4/29}function Os(f){return f>6/29?f*f*f:hl*(f-4/29)}function Cs(f){return 255*(f<=.0031308?12.92*f:1.055*Math.pow(f,1/2.4)-.055)}function ba(f){return(f/=255)<=.04045?f/12.92:Math.pow((f+.055)/1.055,2.4)}function Yu(f){var _=ba(f.r),T=ba(f.g),W=ba(f.b),re=Yo((.4124564*_+.3575761*T+.1804375*W)/.95047),de=Yo((.2126729*_+.7151522*T+.072175*W)/1);return{l:116*de-16,a:500*(re-de),b:200*(de-Yo((.0193339*_+.119192*T+.9503041*W)/1.08883)),alpha:f.a}}function pc(f){var _=(f.l+16)/116,T=isNaN(f.a)?_:_+f.a/500,W=isNaN(f.b)?_:_-f.b/200;return _=1*Os(_),T=.95047*Os(T),W=1.08883*Os(W),new bn(Cs(3.2404542*T-1.5371385*_-.4985314*W),Cs(-.969266*T+1.8760108*_+.041556*W),Cs(.0556434*T-.2040259*_+1.0572252*W),f.alpha)}function Hu(f,_,T){var W=_-f;return f+T*(W>180||W<-180?W-360*Math.round(W/360):W)}var wh={forward:Yu,reverse:pc,interpolate:function(f,_,T){return{l:fs(f.l,_.l,T),a:fs(f.a,_.a,T),b:fs(f.b,_.b,T),alpha:fs(f.alpha,_.alpha,T)}}},lh={forward:function(f){var _=Yu(f),T=_.l,W=_.a,re=_.b,de=Math.atan2(re,W)*Li;return{h:de<0?de+360:de,c:Math.sqrt(W*W+re*re),l:T,alpha:f.a}},reverse:function(f){var _=f.h*Xo,T=f.c;return pc({l:f.l,a:Math.cos(_)*T,b:Math.sin(_)*T,alpha:f.alpha})},interpolate:function(f,_,T){return{h:Hu(f.h,_.h,T),c:fs(f.c,_.c,T),l:fs(f.l,_.l,T),alpha:fs(f.alpha,_.alpha,T)}}},fu=Object.freeze({__proto__:null,lab:wh,hcl:lh}),ru=function(f,_,T,W,re){this.type=f,this.operator=_,this.interpolation=T,this.input=W,this.labels=[],this.outputs=[];for(var de=0,Le=re;de1}))return _.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);W={name:"cubic-bezier",controlPoints:Je}}if(f.length-1<4)return _.error("Expected at least 4 arguments, but found only "+(f.length-1)+".");if((f.length-1)%2!=0)return _.error("Expected an even number of arguments.");if(!(re=_.parse(re,2,yi)))return null;var $t=[],on=null;T==="interpolate-hcl"||T==="interpolate-lab"?on=gi:_.expectedType&&_.expectedType.kind!=="value"&&(on=_.expectedType);for(var Jn=0;Jn=br)return _.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Di);var Ao=_.parse(xi,Do,on);if(!Ao)return null;on=on||Ao.type,$t.push([br,Ao])}return on.kind==="number"||on.kind==="color"||on.kind==="array"&&on.itemType.kind==="number"&&typeof on.N=="number"?new ru(on,T,W,re,$t):_.error("Type "+Ur(on)+" is not interpolatable.")},ru.prototype.evaluate=function(f){var _=this.labels,T=this.outputs;if(_.length===1)return T[0].evaluate(f);var W=this.input.evaluate(f);if(W<=_[0])return T[0].evaluate(f);var re=_.length;if(W>=_[re-1])return T[re-1].evaluate(f);var de=Zl(_,W),Le=ru.interpolationFactor(this.interpolation,W,_[de],_[de+1]),Je=T[de].evaluate(f),$t=T[de+1].evaluate(f);return this.operator==="interpolate"?js[this.type.kind.toLowerCase()](Je,$t,Le):this.operator==="interpolate-hcl"?lh.reverse(lh.interpolate(lh.forward(Je),lh.forward($t),Le)):wh.reverse(wh.interpolate(wh.forward(Je),wh.forward($t),Le))},ru.prototype.eachChild=function(f){f(this.input);for(var _=0,T=this.outputs;_=T.length)throw new Pi("Array index out of bounds: "+_+" > "+(T.length-1)+".");if(_!==Math.floor(_))throw new Pi("Array index must be an integer, but found "+_+" instead.");return T[_]},Un.prototype.eachChild=function(f){f(this.index),f(this.input)},Un.prototype.outputDefined=function(){return!1},Un.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Wr=function(f,_){this.type=ci,this.needle=f,this.haystack=_};Wr.parse=function(f,_){if(f.length!==3)return _.error("Expected 2 arguments, but found "+(f.length-1)+" instead.");var T=_.parse(f[1],1,Bi),W=_.parse(f[2],2,Bi);return T&&W?ni(T.type,[ci,Hr,yi,qr,Bi])?new Wr(T,W):_.error("Expected first argument to be of type boolean, string, number or null, but found "+Ur(T.type)+" instead"):null},Wr.prototype.evaluate=function(f){var _=this.needle.evaluate(f),T=this.haystack.evaluate(f);if(!T)return!1;if(!is(_,["boolean","string","number","null"]))throw new Pi("Expected first argument to be of type boolean, string, number or null, but found "+Ur(aa(_))+" instead.");if(!is(T,["string","array"]))throw new Pi("Expected second argument to be of type array or string, but found "+Ur(aa(T))+" instead.");return T.indexOf(_)>=0},Wr.prototype.eachChild=function(f){f(this.needle),f(this.haystack)},Wr.prototype.outputDefined=function(){return!0},Wr.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Qr=function(f,_,T){this.type=yi,this.needle=f,this.haystack=_,this.fromIndex=T};Qr.parse=function(f,_){if(f.length<=2||f.length>=5)return _.error("Expected 3 or 4 arguments, but found "+(f.length-1)+" instead.");var T=_.parse(f[1],1,Bi),W=_.parse(f[2],2,Bi);if(!T||!W)return null;if(!ni(T.type,[ci,Hr,yi,qr,Bi]))return _.error("Expected first argument to be of type boolean, string, number or null, but found "+Ur(T.type)+" instead");if(f.length===4){var re=_.parse(f[3],3,yi);return re?new Qr(T,W,re):null}return new Qr(T,W)},Qr.prototype.evaluate=function(f){var _=this.needle.evaluate(f),T=this.haystack.evaluate(f);if(!is(_,["boolean","string","number","null"]))throw new Pi("Expected first argument to be of type boolean, string, number or null, but found "+Ur(aa(_))+" instead.");if(!is(T,["string","array"]))throw new Pi("Expected second argument to be of type array or string, but found "+Ur(aa(T))+" instead.");if(this.fromIndex){var W=this.fromIndex.evaluate(f);return T.indexOf(_,W)}return T.indexOf(_)},Qr.prototype.eachChild=function(f){f(this.needle),f(this.haystack),this.fromIndex&&f(this.fromIndex)},Qr.prototype.outputDefined=function(){return!1},Qr.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var f=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),f]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var _o=function(f,_,T,W,re,de){this.inputType=f,this.type=_,this.input=T,this.cases=W,this.outputs=re,this.otherwise=de};_o.parse=function(f,_){if(f.length<5)return _.error("Expected at least 4 arguments, but found only "+(f.length-1)+".");if(f.length%2!=1)return _.error("Expected an even number of arguments.");var T,W;_.expectedType&&_.expectedType.kind!=="value"&&(W=_.expectedType);for(var re={},de=[],Le=2;LeNumber.MAX_SAFE_INTEGER)return on.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof xi=="number"&&Math.floor(xi)!==xi)return on.error("Numeric branch labels must be integer values.");if(T){if(on.checkSubtype(T,aa(xi)))return null}else T=aa(xi);if(re[String(xi)]!==void 0)return on.error("Branch labels must be unique.");re[String(xi)]=de.length}var Di=_.parse($t,Le,W);if(!Di)return null;W=W||Di.type,de.push(Di)}var Do=_.parse(f[1],1,Bi);if(!Do)return null;var Ao=_.parse(f[f.length-1],f.length-1,W);return Ao?Do.type.kind!=="value"&&_.concat(1).checkSubtype(T,Do.type)?null:new _o(T,W,Do,re,de,Ao):null},_o.prototype.evaluate=function(f){var _=this.input.evaluate(f);return(aa(_)===this.inputType&&this.outputs[this.cases[_]]||this.otherwise).evaluate(f)},_o.prototype.eachChild=function(f){f(this.input),this.outputs.forEach(f),f(this.otherwise)},_o.prototype.outputDefined=function(){return this.outputs.every(function(f){return f.outputDefined()})&&this.otherwise.outputDefined()},_o.prototype.serialize=function(){for(var f=this,_=["match",this.input.serialize()],T=[],W={},re=0,de=Object.keys(this.cases).sort();re=5)return _.error("Expected 3 or 4 arguments, but found "+(f.length-1)+" instead.");var T=_.parse(f[1],1,Bi),W=_.parse(f[2],2,yi);if(!T||!W)return null;if(!ni(T.type,[ns(Bi),Hr,Bi]))return _.error("Expected first argument to be of type array or string, but found "+Ur(T.type)+" instead");if(f.length===4){var re=_.parse(f[3],3,yi);return re?new es(T.type,T,W,re):null}return new es(T.type,T,W)},es.prototype.evaluate=function(f){var _=this.input.evaluate(f),T=this.beginIndex.evaluate(f);if(!is(_,["string","array"]))throw new Pi("Expected first argument to be of type array or string, but found "+Ur(aa(_))+" instead.");if(this.endIndex){var W=this.endIndex.evaluate(f);return _.slice(T,W)}return _.slice(T)},es.prototype.eachChild=function(f){f(this.input),f(this.beginIndex),this.endIndex&&f(this.endIndex)},es.prototype.outputDefined=function(){return!1},es.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var f=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),f]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var Js=$a("==",function(f,_,T){return _===T},ga),Kl=$a("!=",function(f,_,T){return _!==T},function(f,_,T,W){return!ga(0,_,T,W)}),ya=$a("<",function(f,_,T){return _",function(f,_,T){return _>T},function(f,_,T,W){return W.compare(_,T)>0}),Xa=$a("<=",function(f,_,T){return _<=T},function(f,_,T,W){return W.compare(_,T)<=0}),au=$a(">=",function(f,_,T){return _>=T},function(f,_,T,W){return W.compare(_,T)>=0}),$l=function(f,_,T,W,re){this.type=Hr,this.number=f,this.locale=_,this.currency=T,this.minFractionDigits=W,this.maxFractionDigits=re};$l.parse=function(f,_){if(f.length!==3)return _.error("Expected two arguments.");var T=_.parse(f[1],1,yi);if(!T)return null;var W=f[2];if(typeof W!="object"||Array.isArray(W))return _.error("NumberFormat options argument must be an object.");var re=null;if(W.locale&&!(re=_.parse(W.locale,1,Hr)))return null;var de=null;if(W.currency&&!(de=_.parse(W.currency,1,Hr)))return null;var Le=null;if(W["min-fraction-digits"]&&!(Le=_.parse(W["min-fraction-digits"],1,yi)))return null;var Je=null;return W["max-fraction-digits"]&&!(Je=_.parse(W["max-fraction-digits"],1,yi))?null:new $l(T,re,de,Le,Je)},$l.prototype.evaluate=function(f){return new Intl.NumberFormat(this.locale?this.locale.evaluate(f):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(f):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(f):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(f):void 0}).format(this.number.evaluate(f))},$l.prototype.eachChild=function(f){f(this.number),this.locale&&f(this.locale),this.currency&&f(this.currency),this.minFractionDigits&&f(this.minFractionDigits),this.maxFractionDigits&&f(this.maxFractionDigits)},$l.prototype.outputDefined=function(){return!1},$l.prototype.serialize=function(){var f={};return this.locale&&(f.locale=this.locale.serialize()),this.currency&&(f.currency=this.currency.serialize()),this.minFractionDigits&&(f["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(f["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),f]};var Mu=function(f){this.type=yi,this.input=f};Mu.parse=function(f,_){if(f.length!==2)return _.error("Expected 1 argument, but found "+(f.length-1)+" instead.");var T=_.parse(f[1],1);return T?T.type.kind!=="array"&&T.type.kind!=="string"&&T.type.kind!=="value"?_.error("Expected argument of type string or array, but found "+Ur(T.type)+" instead."):new Mu(T):null},Mu.prototype.evaluate=function(f){var _=this.input.evaluate(f);if(typeof _=="string"||Array.isArray(_))return _.length;throw new Pi("Expected value to be of type string or array, but found "+Ur(aa(_))+" instead.")},Mu.prototype.eachChild=function(f){f(this.input)},Mu.prototype.outputDefined=function(){return!1},Mu.prototype.serialize=function(){var f=["length"];return this.eachChild(function(_){f.push(_.serialize())}),f};var Bl={"==":Js,"!=":Kl,">":Ta,"<":ya,">=":au,"<=":Xa,array:So,at:Un,boolean:So,case:us,coalesce:wi,collator:Rr,format:ps,image:Wn,in:Wr,"index-of":Qr,interpolate:ru,"interpolate-hcl":ru,"interpolate-lab":ru,length:Mu,let:er,literal:Si,match:_o,number:So,"number-format":$l,object:So,slice:es,step:Hl,string:So,"to-boolean":Qo,"to-color":Qo,"to-number":Qo,"to-string":Qo,var:ia,within:Ms};function Sl(f,_){var T=_[0],W=_[1],re=_[2],de=_[3];T=T.evaluate(f),W=W.evaluate(f),re=re.evaluate(f);var Le=de?de.evaluate(f):1,Je=Na(T,W,re,Le);if(Je)throw new Pi(Je);return new bn(T/255*Le,W/255*Le,re/255*Le,Le)}function Tn(f,_){return f in _}function nc(f,_){var T=_[f];return T===void 0?null:T}function Iu(f){return{type:f}}function Ic(f){return{result:"success",value:f}}function Vc(f){return{result:"error",value:f}}function dh(f){return f["property-type"]==="data-driven"||f["property-type"]==="cross-faded-data-driven"}function Nc(f){return!!f.expression&&f.expression.parameters.indexOf("zoom")>-1}function vd(f){return!!f.expression&&f.expression.interpolated}function Th(f){return f instanceof Number?"number":f instanceof String?"string":f instanceof Boolean?"boolean":Array.isArray(f)?"array":f===null?"null":typeof f}function Gd(f){return typeof f=="object"&&f!==null&&!Array.isArray(f)}function yd(f){return f}function Mc(f,_,T){return f!==void 0?f:_!==void 0?_:T!==void 0?T:void 0}function Kd(f,_,T,W,re){return Mc(typeof T===re?W[T]:void 0,f.default,_.default)}function Vf(f,_,T){if(Th(T)!=="number")return Mc(f.default,_.default);var W=f.stops.length;if(W===1||T<=f.stops[0][0])return f.stops[0][1];if(T>=f.stops[W-1][0])return f.stops[W-1][1];var re=Zl(f.stops.map(function(de){return de[0]}),T);return f.stops[re][1]}function jf(f,_,T){var W=f.base!==void 0?f.base:1;if(Th(T)!=="number")return Mc(f.default,_.default);var re=f.stops.length;if(re===1||T<=f.stops[0][0])return f.stops[0][1];if(T>=f.stops[re-1][0])return f.stops[re-1][1];var de=Zl(f.stops.map(function(br){return br[0]}),T),Le=function(br,xi,Di,Do){var Ao=Do-Di,Vo=br-Di;return Ao===0?0:xi===1?Vo/Ao:(Math.pow(xi,Vo)-1)/(Math.pow(xi,Ao)-1)}(T,W,f.stops[de][0],f.stops[de+1][0]),Je=f.stops[de][1],$t=f.stops[de+1][1],on=js[_.type]||yd;if(f.colorSpace&&f.colorSpace!=="rgb"){var Jn=fu[f.colorSpace];on=function(br,xi){return Jn.reverse(Jn.interpolate(Jn.forward(br),Jn.forward(xi),Le))}}return typeof Je.evaluate=="function"?{evaluate:function(){for(var br=[],xi=arguments.length;xi--;)br[xi]=arguments[xi];var Di=Je.evaluate.apply(void 0,br),Do=$t.evaluate.apply(void 0,br);if(Di!==void 0&&Do!==void 0)return on(Di,Do,Le)}}:on(Je,$t,Le)}function _d(f,_,T){return _.type==="color"?T=bn.parse(T):_.type==="formatted"?T=Mo.fromString(T.toString()):_.type==="resolvedImage"?T=vs.fromString(T.toString()):Th(T)===_.type||_.type==="enum"&&_.values[T]||(T=void 0),Mc(T,f.default,_.default)}Xn.register(Bl,{error:[{kind:"error"},[Hr],function(f,_){throw new Pi(_[0].evaluate(f))}],typeof:[Hr,[Bi],function(f,_){return Ur(aa(_[0].evaluate(f)))}],"to-rgba":[ns(yi,4),[gi],function(f,_){return _[0].evaluate(f).toArray()}],rgb:[gi,[yi,yi,yi],Sl],rgba:[gi,[yi,yi,yi,yi],Sl],has:{type:ci,overloads:[[[Hr],function(f,_){return Tn(_[0].evaluate(f),f.properties())}],[[Hr,mi],function(f,_){var T=_[1];return Tn(_[0].evaluate(f),T.evaluate(f))}]]},get:{type:Bi,overloads:[[[Hr],function(f,_){return nc(_[0].evaluate(f),f.properties())}],[[Hr,mi],function(f,_){var T=_[1];return nc(_[0].evaluate(f),T.evaluate(f))}]]},"feature-state":[Bi,[Hr],function(f,_){return nc(_[0].evaluate(f),f.featureState||{})}],properties:[mi,[],function(f){return f.properties()}],"geometry-type":[Hr,[],function(f){return f.geometryType()}],id:[Bi,[],function(f){return f.id()}],zoom:[yi,[],function(f){return f.globals.zoom}],"heatmap-density":[yi,[],function(f){return f.globals.heatmapDensity||0}],"line-progress":[yi,[],function(f){return f.globals.lineProgress||0}],accumulated:[Bi,[],function(f){return f.globals.accumulated===void 0?null:f.globals.accumulated}],"+":[yi,Iu(yi),function(f,_){for(var T=0,W=0,re=_;W":[ci,[Hr,Bi],function(f,_){var T=_[0],W=_[1],re=f.properties()[T.value],de=W.value;return typeof re==typeof de&&re>de}],"filter-id->":[ci,[Bi],function(f,_){var T=_[0],W=f.id(),re=T.value;return typeof W==typeof re&&W>re}],"filter-<=":[ci,[Hr,Bi],function(f,_){var T=_[0],W=_[1],re=f.properties()[T.value],de=W.value;return typeof re==typeof de&&re<=de}],"filter-id-<=":[ci,[Bi],function(f,_){var T=_[0],W=f.id(),re=T.value;return typeof W==typeof re&&W<=re}],"filter->=":[ci,[Hr,Bi],function(f,_){var T=_[0],W=_[1],re=f.properties()[T.value],de=W.value;return typeof re==typeof de&&re>=de}],"filter-id->=":[ci,[Bi],function(f,_){var T=_[0],W=f.id(),re=T.value;return typeof W==typeof re&&W>=re}],"filter-has":[ci,[Bi],function(f,_){return _[0].value in f.properties()}],"filter-has-id":[ci,[],function(f){return f.id()!==null&&f.id()!==void 0}],"filter-type-in":[ci,[ns(Hr)],function(f,_){return _[0].value.indexOf(f.geometryType())>=0}],"filter-id-in":[ci,[ns(Bi)],function(f,_){return _[0].value.indexOf(f.id())>=0}],"filter-in-small":[ci,[Hr,ns(Bi)],function(f,_){var T=_[0];return _[1].value.indexOf(f.properties()[T.value])>=0}],"filter-in-large":[ci,[Hr,ns(Bi)],function(f,_){var T=_[0],W=_[1];return function(re,de,Le,Je){for(;Le<=Je;){var $t=Le+Je>>1;if(de[$t]===re)return!0;de[$t]>re?Je=$t-1:Le=$t+1}return!1}(f.properties()[T.value],W.value,0,W.value.length-1)}],all:{type:ci,overloads:[[[ci,ci],function(f,_){var T=_[1];return _[0].evaluate(f)&&T.evaluate(f)}],[Iu(ci),function(f,_){for(var T=0,W=_;T0&&typeof f[0]=="string"&&f[0]in Bl}function jh(f,_){var T=new za(Bl,[],_?function(re){var de={color:gi,string:Hr,number:yi,enum:Hr,boolean:ci,formatted:Kr,resolvedImage:Qi};return re.type==="array"?ns(de[re.value]||Bi,re.length):de[re.type]}(_):void 0),W=T.parse(f,void 0,void 0,void 0,_&&_.type==="string"?{typeAnnotation:"coerce"}:void 0);return W?Ic(new Qd(W,_)):Vc(T.errors)}Qd.prototype.evaluateWithoutErrorHandling=function(f,_,T,W,re,de){return this._evaluator.globals=f,this._evaluator.feature=_,this._evaluator.featureState=T,this._evaluator.canonical=W,this._evaluator.availableImages=re||null,this._evaluator.formattedSection=de,this.expression.evaluate(this._evaluator)},Qd.prototype.evaluate=function(f,_,T,W,re,de){this._evaluator.globals=f,this._evaluator.feature=_||null,this._evaluator.featureState=T||null,this._evaluator.canonical=W,this._evaluator.availableImages=re||null,this._evaluator.formattedSection=de||null;try{var Le=this.expression.evaluate(this._evaluator);if(Le==null||typeof Le=="number"&&Le!=Le)return this._defaultValue;if(this._enumValues&&!(Le in this._enumValues))throw new Pi("Expected value to be one of "+Object.keys(this._enumValues).map(function(Je){return JSON.stringify(Je)}).join(", ")+", but found "+JSON.stringify(Le)+" instead.");return Le}catch(Je){return this._warningHistory[Je.message]||(this._warningHistory[Je.message]=!0,typeof console!="undefined"&&console.warn(Je.message)),this._defaultValue}};var Bs=function(f,_){this.kind=f,this._styleExpression=_,this.isStateDependent=f!=="constant"&&!ko(_.expression)};Bs.prototype.evaluateWithoutErrorHandling=function(f,_,T,W,re,de){return this._styleExpression.evaluateWithoutErrorHandling(f,_,T,W,re,de)},Bs.prototype.evaluate=function(f,_,T,W,re,de){return this._styleExpression.evaluate(f,_,T,W,re,de)};var Ua=function(f,_,T,W){this.kind=f,this.zoomStops=T,this._styleExpression=_,this.isStateDependent=f!=="camera"&&!ko(_.expression),this.interpolationType=W};function Ya(f,_){if((f=jh(f,_)).result==="error")return f;var T=f.value.expression,W=ks(T);if(!W&&!dh(_))return Vc([new Kn("","data expressions not supported")]);var re=As(T,["zoom"]);if(!re&&!Nc(_))return Vc([new Kn("","zoom expressions not supported")]);var de=function Le(Je){var $t=null;if(Je instanceof er)$t=Le(Je.result);else if(Je instanceof wi)for(var on=0,Jn=Je.args;onW.maximum?[new wn(_,T,T+" is greater than the maximum value "+W.maximum)]:[]}function uc(f){var _,T,W,re=f.valueSpec,de=Wi(f.value.type),Le={},Je=de!=="categorical"&&f.value.property===void 0,$t=!Je,on=Th(f.value.stops)==="array"&&Th(f.value.stops[0])==="array"&&Th(f.value.stops[0][0])==="object",Jn=ou({key:f.key,value:f.value,valueSpec:f.styleSpec.function,style:f.style,styleSpec:f.styleSpec,objectElementValidators:{stops:function(Di){if(de==="identity")return[new wn(Di.key,Di.value,'identity function may not have a "stops" property')];var Do=[],Ao=Di.value;return Do=Do.concat(ac({key:Di.key,value:Ao,valueSpec:Di.valueSpec,style:Di.style,styleSpec:Di.styleSpec,arrayElementValidator:br})),Th(Ao)==="array"&&Ao.length===0&&Do.push(new wn(Di.key,Ao,"array must have at least one stop")),Do},default:function(Di){return Au({key:Di.key,value:Di.value,valueSpec:re,style:Di.style,styleSpec:Di.styleSpec})}}});return de==="identity"&&Je&&Jn.push(new wn(f.key,f.value,'missing required property "property"')),de==="identity"||f.value.stops||Jn.push(new wn(f.key,f.value,'missing required property "stops"')),de==="exponential"&&f.valueSpec.expression&&!vd(f.valueSpec)&&Jn.push(new wn(f.key,f.value,"exponential functions not supported")),f.styleSpec.$version>=8&&($t&&!dh(f.valueSpec)?Jn.push(new wn(f.key,f.value,"property functions not supported")):Je&&!Nc(f.valueSpec)&&Jn.push(new wn(f.key,f.value,"zoom functions not supported"))),de!=="categorical"&&!on||f.value.property!==void 0||Jn.push(new wn(f.key,f.value,'"property" property is required')),Jn;function br(Di){var Do=[],Ao=Di.value,Vo=Di.key;if(Th(Ao)!=="array")return[new wn(Vo,Ao,"array expected, "+Th(Ao)+" found")];if(Ao.length!==2)return[new wn(Vo,Ao,"array length 2 expected, length "+Ao.length+" found")];if(on){if(Th(Ao[0])!=="object")return[new wn(Vo,Ao,"object expected, "+Th(Ao[0])+" found")];if(Ao[0].zoom===void 0)return[new wn(Vo,Ao,"object stop key must have zoom")];if(Ao[0].value===void 0)return[new wn(Vo,Ao,"object stop key must have value")];if(W&&W>Wi(Ao[0].zoom))return[new wn(Vo,Ao[0].zoom,"stop zoom values must appear in ascending order")];Wi(Ao[0].zoom)!==W&&(W=Wi(Ao[0].zoom),T=void 0,Le={}),Do=Do.concat(ou({key:Vo+"[0]",value:Ao[0],valueSpec:{zoom:{}},style:Di.style,styleSpec:Di.styleSpec,objectElementValidators:{zoom:ju,value:xi}}))}else Do=Do.concat(xi({key:Vo+"[0]",value:Ao[0],valueSpec:{},style:Di.style,styleSpec:Di.styleSpec},Ao));return Md(Dn(Ao[1]))?Do.concat([new wn(Vo+"[1]",Ao[1],"expressions are not allowed in function stops.")]):Do.concat(Au({key:Vo+"[1]",value:Ao[1],valueSpec:re,style:Di.style,styleSpec:Di.styleSpec}))}function xi(Di,Do){var Ao=Th(Di.value),Vo=Wi(Di.value),Lo=Di.value!==null?Di.value:Do;if(_){if(Ao!==_)return[new wn(Di.key,Lo,Ao+" stop domain type must match previous stop domain type "+_)]}else _=Ao;if(Ao!=="number"&&Ao!=="string"&&Ao!=="boolean")return[new wn(Di.key,Lo,"stop domain value must be a number, string, or boolean")];if(Ao!=="number"&&de!=="categorical"){var co="number expected, "+Ao+" found";return dh(re)&&de===void 0&&(co+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new wn(Di.key,Lo,co)]}return de!=="categorical"||Ao!=="number"||isFinite(Vo)&&Math.floor(Vo)===Vo?de!=="categorical"&&Ao==="number"&&T!==void 0&&Vo=2&&f[1]!=="$id"&&f[1]!=="$type";case"in":return f.length>=3&&(typeof f[1]!="string"||Array.isArray(f[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return f.length!==3||Array.isArray(f[1])||Array.isArray(f[2]);case"any":case"all":for(var _=0,T=f.slice(1);__?1:0}function Bd(f){if(!f)return!0;var _,T=f[0];return f.length<=1?T!=="any":T==="=="?Hh(f[1],f[2],"=="):T==="!="?bh(Hh(f[1],f[2],"==")):T==="<"||T===">"||T==="<="||T===">="?Hh(f[1],f[2],T):T==="any"?(_=f.slice(1),["any"].concat(_.map(Bd))):T==="all"?["all"].concat(f.slice(1).map(Bd)):T==="none"?["all"].concat(f.slice(1).map(Bd).map(bh)):T==="in"?Cd(f[1],f.slice(2)):T==="!in"?bh(Cd(f[1],f.slice(2))):T==="has"?Ah(f[1]):T==="!has"?bh(Ah(f[1])):T!=="within"||f}function Hh(f,_,T){switch(f){case"$type":return["filter-type-"+T,_];case"$id":return["filter-id-"+T,_];default:return["filter-"+T,f,_]}}function Cd(f,_){if(_.length===0)return!1;switch(f){case"$type":return["filter-type-in",["literal",_]];case"$id":return["filter-id-in",["literal",_]];default:return _.length>200&&!_.some(function(T){return typeof T!=typeof _[0]})?["filter-in-large",f,["literal",_.sort(Qh)]]:["filter-in-small",f,["literal",_]]}}function Ah(f){switch(f){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",f]}}function bh(f){return["!",f]}function su(f){return Nu(Dn(f.value))?Gu(Mr({},f,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function _(T){var W=T.value,re=T.key;if(Th(W)!=="array")return[new wn(re,W,"array expected, "+Th(W)+" found")];var de,Le=T.styleSpec,Je=[];if(W.length<1)return[new wn(re,W,"filter array must have at least 1 element")];switch(Je=Je.concat(Ol({key:re+"[0]",value:W[0],valueSpec:Le.filter_operator,style:T.style,styleSpec:T.styleSpec})),Wi(W[0])){case"<":case"<=":case">":case">=":W.length>=2&&Wi(W[1])==="$type"&&Je.push(new wn(re,W,'"$type" cannot be use with operator "'+W[0]+'"'));case"==":case"!=":W.length!==3&&Je.push(new wn(re,W,'filter array for operator "'+W[0]+'" must have 3 elements'));case"in":case"!in":W.length>=2&&(de=Th(W[1]))!=="string"&&Je.push(new wn(re+"[1]",W[1],"string expected, "+de+" found"));for(var $t=2;$t=Jn[Di+0]&&W>=Jn[Di+1])?(Le[xi]=!0,de.push(on[xi])):Le[xi]=!1}}},rh.prototype._forEachCell=function(f,_,T,W,re,de,Le,Je){for(var $t=this._convertToCellCoord(f),on=this._convertToCellCoord(_),Jn=this._convertToCellCoord(T),br=this._convertToCellCoord(W),xi=$t;xi<=Jn;xi++)for(var Di=on;Di<=br;Di++){var Do=this.d*Di+xi;if((!Je||Je(this._convertFromCellCoord(xi),this._convertFromCellCoord(Di),this._convertFromCellCoord(xi+1),this._convertFromCellCoord(Di+1)))&&re.call(this,f,_,T,W,Do,de,Le,Je))return}},rh.prototype._convertFromCellCoord=function(f){return(f-this.padding)/this.scale},rh.prototype._convertToCellCoord=function(f){return Math.max(0,Math.min(this.d-1,Math.floor(f*this.scale)+this.padding))},rh.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var f=this.cells,_=3+this.cells.length+1+1,T=0,W=0;W=0)){var Jn=f[on];$t[on]=Yc[Je].shallow.indexOf(on)>=0?Jn:Oc(Jn,_)}f instanceof Error&&($t.message=f.message)}if($t.$name)throw new Error("$name property is reserved for worker serialization logic.");return Je!=="Object"&&($t.$name=Je),$t}throw new Error("can't serialize object of type "+typeof f)}function Oi(f){if(f==null||typeof f=="boolean"||typeof f=="number"||typeof f=="string"||f instanceof Boolean||f instanceof Number||f instanceof String||f instanceof Date||f instanceof RegExp||Pl(f)||ys(f)||ArrayBuffer.isView(f)||f instanceof Mf)return f;if(Array.isArray(f))return f.map(Oi);if(typeof f=="object"){var _=f.$name||"Object",T=Yc[_].klass;if(!T)throw new Error("can't deserialize unregistered class "+_);if(T.deserialize)return T.deserialize(f);for(var W=Object.create(T.prototype),re=0,de=Object.keys(f);re=0?Je:Oi(Je)}}return W}throw new Error("can't deserialize object of type "+typeof f)}var $p=function(){this.first=!0};$p.prototype.update=function(f,_){var T=Math.floor(f);return this.first?(this.first=!1,this.lastIntegerZoom=T,this.lastIntegerZoomTime=0,this.lastZoom=f,this.lastFloorZoom=T,!0):(this.lastFloorZoom>T?(this.lastIntegerZoom=T+1,this.lastIntegerZoomTime=_):this.lastFloorZoom=128&&f<=255},Arabic:function(f){return f>=1536&&f<=1791},"Arabic Supplement":function(f){return f>=1872&&f<=1919},"Arabic Extended-A":function(f){return f>=2208&&f<=2303},"Hangul Jamo":function(f){return f>=4352&&f<=4607},"Unified Canadian Aboriginal Syllabics":function(f){return f>=5120&&f<=5759},Khmer:function(f){return f>=6016&&f<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(f){return f>=6320&&f<=6399},"General Punctuation":function(f){return f>=8192&&f<=8303},"Letterlike Symbols":function(f){return f>=8448&&f<=8527},"Number Forms":function(f){return f>=8528&&f<=8591},"Miscellaneous Technical":function(f){return f>=8960&&f<=9215},"Control Pictures":function(f){return f>=9216&&f<=9279},"Optical Character Recognition":function(f){return f>=9280&&f<=9311},"Enclosed Alphanumerics":function(f){return f>=9312&&f<=9471},"Geometric Shapes":function(f){return f>=9632&&f<=9727},"Miscellaneous Symbols":function(f){return f>=9728&&f<=9983},"Miscellaneous Symbols and Arrows":function(f){return f>=11008&&f<=11263},"CJK Radicals Supplement":function(f){return f>=11904&&f<=12031},"Kangxi Radicals":function(f){return f>=12032&&f<=12255},"Ideographic Description Characters":function(f){return f>=12272&&f<=12287},"CJK Symbols and Punctuation":function(f){return f>=12288&&f<=12351},Hiragana:function(f){return f>=12352&&f<=12447},Katakana:function(f){return f>=12448&&f<=12543},Bopomofo:function(f){return f>=12544&&f<=12591},"Hangul Compatibility Jamo":function(f){return f>=12592&&f<=12687},Kanbun:function(f){return f>=12688&&f<=12703},"Bopomofo Extended":function(f){return f>=12704&&f<=12735},"CJK Strokes":function(f){return f>=12736&&f<=12783},"Katakana Phonetic Extensions":function(f){return f>=12784&&f<=12799},"Enclosed CJK Letters and Months":function(f){return f>=12800&&f<=13055},"CJK Compatibility":function(f){return f>=13056&&f<=13311},"CJK Unified Ideographs Extension A":function(f){return f>=13312&&f<=19903},"Yijing Hexagram Symbols":function(f){return f>=19904&&f<=19967},"CJK Unified Ideographs":function(f){return f>=19968&&f<=40959},"Yi Syllables":function(f){return f>=40960&&f<=42127},"Yi Radicals":function(f){return f>=42128&&f<=42191},"Hangul Jamo Extended-A":function(f){return f>=43360&&f<=43391},"Hangul Syllables":function(f){return f>=44032&&f<=55215},"Hangul Jamo Extended-B":function(f){return f>=55216&&f<=55295},"Private Use Area":function(f){return f>=57344&&f<=63743},"CJK Compatibility Ideographs":function(f){return f>=63744&&f<=64255},"Arabic Presentation Forms-A":function(f){return f>=64336&&f<=65023},"Vertical Forms":function(f){return f>=65040&&f<=65055},"CJK Compatibility Forms":function(f){return f>=65072&&f<=65103},"Small Form Variants":function(f){return f>=65104&&f<=65135},"Arabic Presentation Forms-B":function(f){return f>=65136&&f<=65279},"Halfwidth and Fullwidth Forms":function(f){return f>=65280&&f<=65519}};function uh(f){for(var _=0,T=f;_=65097&&f<=65103)||gc["CJK Compatibility Ideographs"](f)||gc["CJK Compatibility"](f)||gc["CJK Radicals Supplement"](f)||gc["CJK Strokes"](f)||!(!gc["CJK Symbols and Punctuation"](f)||f>=12296&&f<=12305||f>=12308&&f<=12319||f===12336)||gc["CJK Unified Ideographs Extension A"](f)||gc["CJK Unified Ideographs"](f)||gc["Enclosed CJK Letters and Months"](f)||gc["Hangul Compatibility Jamo"](f)||gc["Hangul Jamo Extended-A"](f)||gc["Hangul Jamo Extended-B"](f)||gc["Hangul Jamo"](f)||gc["Hangul Syllables"](f)||gc.Hiragana(f)||gc["Ideographic Description Characters"](f)||gc.Kanbun(f)||gc["Kangxi Radicals"](f)||gc["Katakana Phonetic Extensions"](f)||gc.Katakana(f)&&f!==12540||!(!gc["Halfwidth and Fullwidth Forms"](f)||f===65288||f===65289||f===65293||f>=65306&&f<=65310||f===65339||f===65341||f===65343||f>=65371&&f<=65503||f===65507||f>=65512&&f<=65519)||!(!gc["Small Form Variants"](f)||f>=65112&&f<=65118||f>=65123&&f<=65126)||gc["Unified Canadian Aboriginal Syllabics"](f)||gc["Unified Canadian Aboriginal Syllabics Extended"](f)||gc["Vertical Forms"](f)||gc["Yijing Hexagram Symbols"](f)||gc["Yi Syllables"](f)||gc["Yi Radicals"](f))))}function Qp(f){return!(pp(f)||function(_){return!!(gc["Latin-1 Supplement"](_)&&(_===167||_===169||_===174||_===177||_===188||_===189||_===190||_===215||_===247)||gc["General Punctuation"](_)&&(_===8214||_===8224||_===8225||_===8240||_===8241||_===8251||_===8252||_===8258||_===8263||_===8264||_===8265||_===8273)||gc["Letterlike Symbols"](_)||gc["Number Forms"](_)||gc["Miscellaneous Technical"](_)&&(_>=8960&&_<=8967||_>=8972&&_<=8991||_>=8996&&_<=9e3||_===9003||_>=9085&&_<=9114||_>=9150&&_<=9165||_===9167||_>=9169&&_<=9179||_>=9186&&_<=9215)||gc["Control Pictures"](_)&&_!==9251||gc["Optical Character Recognition"](_)||gc["Enclosed Alphanumerics"](_)||gc["Geometric Shapes"](_)||gc["Miscellaneous Symbols"](_)&&!(_>=9754&&_<=9759)||gc["Miscellaneous Symbols and Arrows"](_)&&(_>=11026&&_<=11055||_>=11088&&_<=11097||_>=11192&&_<=11243)||gc["CJK Symbols and Punctuation"](_)||gc.Katakana(_)||gc["Private Use Area"](_)||gc["CJK Compatibility Forms"](_)||gc["Small Form Variants"](_)||gc["Halfwidth and Fullwidth Forms"](_)||_===8734||_===8756||_===8757||_>=9984&&_<=10087||_>=10102&&_<=10131||_===65532||_===65533)}(f))}function Ng(f){return f>=1424&&f<=2303||gc["Arabic Presentation Forms-A"](f)||gc["Arabic Presentation Forms-B"](f)}function xf(f,_){return!(!_&&Ng(f)||f>=2304&&f<=3583||f>=3840&&f<=4255||gc.Khmer(f))}function wp(f){for(var _=0,T=f;_-1&&(gp="error"),eg&&eg(f)};function hp(){Wh.fire(new Ar("pluginStateChange",{pluginStatus:gp,pluginURL:Tg}))}var Wh=new dr,Cp=function(){return gp},fg=function(){if(gp!=="deferred"||!Tg)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");gp="loading",hp(),Tg&&xn({url:Tg},function(f){f?sp(f):(gp="loaded",hp())})},Mp={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return gp==="loaded"||Mp.applyArabicShaping!=null},isLoading:function(){return gp==="loading"},setState:function(f){gp=f.pluginStatus,Tg=f.pluginURL},isParsed:function(){return Mp.applyArabicShaping!=null&&Mp.processBidirectionalText!=null&&Mp.processStyledBidirectionalText!=null},getPluginURL:function(){return Tg}},gd=function(f,_){this.zoom=f,_?(this.now=_.now,this.fadeDuration=_.fadeDuration,this.zoomHistory=_.zoomHistory,this.transition=_.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new $p,this.transition={})};gd.prototype.isSupportedScript=function(f){return function(_,T){for(var W=0,re=_;Wthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:_+(1-_)*T}:{fromScale:.5,toScale:1,t:1-(1-T)*_}};var ig=function(f,_){this.property=f,this.value=_,this.expression=function(T,W){if(Gd(T))return new ml(T,W);if(Md(T)){var re=Ya(T,W);if(re.result==="error")throw new Error(re.value.map(function(Le){return Le.key+": "+Le.message}).join(", "));return re.value}var de=T;return typeof T=="string"&&W.type==="color"&&(de=bn.parse(T)),{kind:"constant",evaluate:function(){return de}}}(_===void 0?f.specification.default:_,f.specification)};ig.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},ig.prototype.possiblyEvaluate=function(f,_,T){return this.property.possiblyEvaluate(this,f,_,T)};var qh=function(f){this.property=f,this.value=new ig(f,void 0)};qh.prototype.transitioned=function(f,_){return new _p(this.property,this.value,_,ae({},f.transition,this.transition),f.now)},qh.prototype.untransitioned=function(){return new _p(this.property,this.value,null,{},0)};var kf=function(f){this._properties=f,this._values=Object.create(f.defaultTransitionablePropertyValues)};kf.prototype.getValue=function(f){return Ae(this._values[f].value.value)},kf.prototype.setValue=function(f,_){this._values.hasOwnProperty(f)||(this._values[f]=new qh(this._values[f].property)),this._values[f].value=new ig(this._values[f].property,_===null?void 0:Ae(_))},kf.prototype.getTransition=function(f){return Ae(this._values[f].transition)},kf.prototype.setTransition=function(f,_){this._values.hasOwnProperty(f)||(this._values[f]=new qh(this._values[f].property)),this._values[f].transition=Ae(_)||void 0},kf.prototype.serialize=function(){for(var f={},_=0,T=Object.keys(this._values);_this.end)return this.prior=null,re;if(this.value.isDataDriven())return this.prior=null,re;if(W=1)return 1;var $t=Je*Je,on=$t*Je;return 4*(Je<.5?on:3*(Je-$t)+on-.75)}(Le))}return re};var Du=function(f){this._properties=f,this._values=Object.create(f.defaultTransitioningPropertyValues)};Du.prototype.possiblyEvaluate=function(f,_,T){for(var W=new Gf(this._properties),re=0,de=Object.keys(this._values);rede.zoomHistory.lastIntegerZoom?{from:T,to:W}:{from:re,to:W}},_.prototype.interpolate=function(T){return T},_}(Bh),Oh=function(f){this.specification=f};Oh.prototype.possiblyEvaluate=function(f,_,T,W){if(f.value!==void 0){if(f.expression.kind==="constant"){var re=f.expression.evaluate(_,null,{},T,W);return this._calculate(re,re,re,_)}return this._calculate(f.expression.evaluate(new gd(Math.floor(_.zoom-1),_)),f.expression.evaluate(new gd(Math.floor(_.zoom),_)),f.expression.evaluate(new gd(Math.floor(_.zoom+1),_)),_)}},Oh.prototype._calculate=function(f,_,T,W){return W.zoom>W.zoomHistory.lastIntegerZoom?{from:f,to:_}:{from:T,to:_}},Oh.prototype.interpolate=function(f){return f};var Tf=function(f){this.specification=f};Tf.prototype.possiblyEvaluate=function(f,_,T,W){return!!f.expression.evaluate(_,null,{},T,W)},Tf.prototype.interpolate=function(){return!1};var Zf=function(f){for(var _ in this.properties=f,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],f){var T=f[_];T.specification.overridable&&this.overridableProperties.push(_);var W=this.defaultPropertyValues[_]=new ig(T,void 0),re=this.defaultTransitionablePropertyValues[_]=new qh(T);this.defaultTransitioningPropertyValues[_]=re.untransitioned(),this.defaultPossiblyEvaluatedValues[_]=W.possiblyEvaluate({})}};ih("DataDrivenProperty",Bh),ih("DataConstantProperty",kh),ih("CrossFadedDataDrivenProperty",Jh),ih("CrossFadedProperty",Oh),ih("ColorRampProperty",Tf);var Ip=function(f){function _(T,W){if(f.call(this),this.id=T.id,this.type=T.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},T.type!=="custom"&&(this.metadata=(T=T).metadata,this.minzoom=T.minzoom,this.maxzoom=T.maxzoom,T.type!=="background"&&(this.source=T.source,this.sourceLayer=T["source-layer"],this.filter=T.filter),W.layout&&(this._unevaluatedLayout=new Rp(W.layout)),W.paint)){for(var re in this._transitionablePaint=new kf(W.paint),T.paint)this.setPaintProperty(re,T.paint[re],{validate:!1});for(var de in T.layout)this.setLayoutProperty(de,T.layout[de],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Gf(W.paint)}}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},_.prototype.getLayoutProperty=function(T){return T==="visibility"?this.visibility:this._unevaluatedLayout.getValue(T)},_.prototype.setLayoutProperty=function(T,W,re){re===void 0&&(re={}),W!=null&&this._validate(Od,"layers."+this.id+".layout."+T,T,W,re)||(T!=="visibility"?this._unevaluatedLayout.setValue(T,W):this.visibility=W)},_.prototype.getPaintProperty=function(T){return Ve(T,"-transition")?this._transitionablePaint.getTransition(T.slice(0,-11)):this._transitionablePaint.getValue(T)},_.prototype.setPaintProperty=function(T,W,re){if(re===void 0&&(re={}),W!=null&&this._validate(hf,"layers."+this.id+".paint."+T,T,W,re))return!1;if(Ve(T,"-transition"))return this._transitionablePaint.setTransition(T.slice(0,-11),W||void 0),!1;var de=this._transitionablePaint._values[T],Le=de.property.specification["property-type"]==="cross-faded-data-driven",Je=de.value.isDataDriven(),$t=de.value;this._transitionablePaint.setValue(T,W),this._handleSpecialPaintPropertyUpdate(T);var on=this._transitionablePaint._values[T].value;return on.isDataDriven()||Je||Le||this._handleOverridablePaintPropertyUpdate(T,$t,on)},_.prototype._handleSpecialPaintPropertyUpdate=function(T){},_.prototype._handleOverridablePaintPropertyUpdate=function(T,W,re){return!1},_.prototype.isHidden=function(T){return!!(this.minzoom&&T=this.maxzoom)||this.visibility==="none"},_.prototype.updateTransitions=function(T){this._transitioningPaint=this._transitionablePaint.transitioned(T,this._transitioningPaint)},_.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},_.prototype.recalculate=function(T,W){T.getCrossfadeParameters&&(this._crossfadeParameters=T.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(T,void 0,W)),this.paint=this._transitioningPaint.possiblyEvaluate(T,void 0,W)},_.prototype.serialize=function(){var T={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(T.layout=T.layout||{},T.layout.visibility=this.visibility),st(T,function(W,re){return!(W===void 0||re==="layout"&&!Object.keys(W).length||re==="paint"&&!Object.keys(W).length)})},_.prototype._validate=function(T,W,re,de,Le){return Le===void 0&&(Le={}),(!Le||Le.validate!==!1)&&yc(this,T.call(qd,{key:W,layerType:this.type,objectKey:re,value:de,styleSpec:Yt,style:{glyphs:!0,sprite:!0}}))},_.prototype.is3D=function(){return!1},_.prototype.isTileClipped=function(){return!1},_.prototype.hasOffscreenPass=function(){return!1},_.prototype.resize=function(){},_.prototype.isStateDependent=function(){for(var T in this.paint._values){var W=this.paint.get(T);if(W instanceof Dp&&dh(W.property.specification)&&(W.value.kind==="source"||W.value.kind==="composite")&&W.value.isStateDependent)return!0}return!1},_}(dr),Dh={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Of=function(f,_){this._structArray=f,this._pos1=_*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},zd=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Rd(f,_){_===void 0&&(_=1);var T=0,W=0;return{members:f.map(function(re){var de=Dh[re.type].BYTES_PER_ELEMENT,Le=T=Kf(T,Math.max(_,de)),Je=re.components||1;return W=Math.max(W,de),T+=de*Je,{name:re.name,type:re.type,components:Je,offset:Le}}),size:Kf(T,Math.max(W,_)),alignment:_}}function Kf(f,_){return Math.ceil(f/_)*_}zd.serialize=function(f,_){return f._trim(),_&&(f.isTransferred=!0,_.push(f.arrayBuffer)),{length:f.length,arrayBuffer:f.arrayBuffer}},zd.deserialize=function(f){var _=Object.create(this.prototype);return _.arrayBuffer=f.arrayBuffer,_.length=f.length,_.capacity=f.arrayBuffer.byteLength/_.bytesPerElement,_._refreshViews(),_},zd.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},zd.prototype.clear=function(){this.length=0},zd.prototype.resize=function(f){this.reserve(f),this.length=f},zd.prototype.reserve=function(f){if(f>this.capacity){this.capacity=Math.max(f,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var _=this.uint8;this._refreshViews(),_&&this.uint8.set(_)}},zd.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Eh=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T,W){var re=this.length;return this.resize(re+1),this.emplace(re,T,W)},_.prototype.emplace=function(T,W,re){var de=2*T;return this.int16[de+0]=W,this.int16[de+1]=re,T},_}(zd);Eh.prototype.bytesPerElement=4,ih("StructArrayLayout2i4",Eh);var jc=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T,W,re,de){var Le=this.length;return this.resize(Le+1),this.emplace(Le,T,W,re,de)},_.prototype.emplace=function(T,W,re,de,Le){var Je=4*T;return this.int16[Je+0]=W,this.int16[Je+1]=re,this.int16[Je+2]=de,this.int16[Je+3]=Le,T},_}(zd);jc.prototype.bytesPerElement=8,ih("StructArrayLayout4i8",jc);var zh=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T,W,re,de,Le,Je){var $t=this.length;return this.resize($t+1),this.emplace($t,T,W,re,de,Le,Je)},_.prototype.emplace=function(T,W,re,de,Le,Je,$t){var on=6*T;return this.int16[on+0]=W,this.int16[on+1]=re,this.int16[on+2]=de,this.int16[on+3]=Le,this.int16[on+4]=Je,this.int16[on+5]=$t,T},_}(zd);zh.prototype.bytesPerElement=12,ih("StructArrayLayout2i4i12",zh);var Xd=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T,W,re,de,Le,Je){var $t=this.length;return this.resize($t+1),this.emplace($t,T,W,re,de,Le,Je)},_.prototype.emplace=function(T,W,re,de,Le,Je,$t){var on=4*T,Jn=8*T;return this.int16[on+0]=W,this.int16[on+1]=re,this.uint8[Jn+4]=de,this.uint8[Jn+5]=Le,this.uint8[Jn+6]=Je,this.uint8[Jn+7]=$t,T},_}(zd);Xd.prototype.bytesPerElement=8,ih("StructArrayLayout2i4ub8",Xd);var zo=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T,W){var re=this.length;return this.resize(re+1),this.emplace(re,T,W)},_.prototype.emplace=function(T,W,re){var de=2*T;return this.float32[de+0]=W,this.float32[de+1]=re,T},_}(zd);zo.prototype.bytesPerElement=8,ih("StructArrayLayout2f8",zo);var L=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T,W,re,de,Le,Je,$t,on,Jn,br){var xi=this.length;return this.resize(xi+1),this.emplace(xi,T,W,re,de,Le,Je,$t,on,Jn,br)},_.prototype.emplace=function(T,W,re,de,Le,Je,$t,on,Jn,br,xi){var Di=10*T;return this.uint16[Di+0]=W,this.uint16[Di+1]=re,this.uint16[Di+2]=de,this.uint16[Di+3]=Le,this.uint16[Di+4]=Je,this.uint16[Di+5]=$t,this.uint16[Di+6]=on,this.uint16[Di+7]=Jn,this.uint16[Di+8]=br,this.uint16[Di+9]=xi,T},_}(zd);L.prototype.bytesPerElement=20,ih("StructArrayLayout10ui20",L);var j=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T,W,re,de,Le,Je,$t,on,Jn,br,xi,Di){var Do=this.length;return this.resize(Do+1),this.emplace(Do,T,W,re,de,Le,Je,$t,on,Jn,br,xi,Di)},_.prototype.emplace=function(T,W,re,de,Le,Je,$t,on,Jn,br,xi,Di,Do){var Ao=12*T;return this.int16[Ao+0]=W,this.int16[Ao+1]=re,this.int16[Ao+2]=de,this.int16[Ao+3]=Le,this.uint16[Ao+4]=Je,this.uint16[Ao+5]=$t,this.uint16[Ao+6]=on,this.uint16[Ao+7]=Jn,this.int16[Ao+8]=br,this.int16[Ao+9]=xi,this.int16[Ao+10]=Di,this.int16[Ao+11]=Do,T},_}(zd);j.prototype.bytesPerElement=24,ih("StructArrayLayout4i4ui4i24",j);var le=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T,W,re){var de=this.length;return this.resize(de+1),this.emplace(de,T,W,re)},_.prototype.emplace=function(T,W,re,de){var Le=3*T;return this.float32[Le+0]=W,this.float32[Le+1]=re,this.float32[Le+2]=de,T},_}(zd);le.prototype.bytesPerElement=12,ih("StructArrayLayout3f12",le);var ge=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T){var W=this.length;return this.resize(W+1),this.emplace(W,T)},_.prototype.emplace=function(T,W){return this.uint32[1*T+0]=W,T},_}(zd);ge.prototype.bytesPerElement=4,ih("StructArrayLayout1ul4",ge);var ot=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.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)},_.prototype.emplaceBack=function(T,W,re,de,Le,Je,$t,on,Jn){var br=this.length;return this.resize(br+1),this.emplace(br,T,W,re,de,Le,Je,$t,on,Jn)},_.prototype.emplace=function(T,W,re,de,Le,Je,$t,on,Jn,br){var xi=10*T,Di=5*T;return this.int16[xi+0]=W,this.int16[xi+1]=re,this.int16[xi+2]=de,this.int16[xi+3]=Le,this.int16[xi+4]=Je,this.int16[xi+5]=$t,this.uint32[Di+3]=on,this.uint16[xi+8]=Jn,this.uint16[xi+9]=br,T},_}(zd);ot.prototype.bytesPerElement=20,ih("StructArrayLayout6i1ul2ui20",ot);var dn=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T,W,re,de,Le,Je){var $t=this.length;return this.resize($t+1),this.emplace($t,T,W,re,de,Le,Je)},_.prototype.emplace=function(T,W,re,de,Le,Je,$t){var on=6*T;return this.int16[on+0]=W,this.int16[on+1]=re,this.int16[on+2]=de,this.int16[on+3]=Le,this.int16[on+4]=Je,this.int16[on+5]=$t,T},_}(zd);dn.prototype.bytesPerElement=12,ih("StructArrayLayout2i2i2i12",dn);var or=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T,W,re,de,Le){var Je=this.length;return this.resize(Je+1),this.emplace(Je,T,W,re,de,Le)},_.prototype.emplace=function(T,W,re,de,Le,Je){var $t=4*T,on=8*T;return this.float32[$t+0]=W,this.float32[$t+1]=re,this.float32[$t+2]=de,this.int16[on+6]=Le,this.int16[on+7]=Je,T},_}(zd);or.prototype.bytesPerElement=16,ih("StructArrayLayout2f1f2i16",or);var Ie=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T,W,re,de){var Le=this.length;return this.resize(Le+1),this.emplace(Le,T,W,re,de)},_.prototype.emplace=function(T,W,re,de,Le){var Je=12*T,$t=3*T;return this.uint8[Je+0]=W,this.uint8[Je+1]=re,this.float32[$t+1]=de,this.float32[$t+2]=Le,T},_}(zd);Ie.prototype.bytesPerElement=12,ih("StructArrayLayout2ub2f12",Ie);var D=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T,W,re){var de=this.length;return this.resize(de+1),this.emplace(de,T,W,re)},_.prototype.emplace=function(T,W,re,de){var Le=3*T;return this.uint16[Le+0]=W,this.uint16[Le+1]=re,this.uint16[Le+2]=de,T},_}(zd);D.prototype.bytesPerElement=6,ih("StructArrayLayout3ui6",D);var ie=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.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)},_.prototype.emplaceBack=function(T,W,re,de,Le,Je,$t,on,Jn,br,xi,Di,Do,Ao,Vo,Lo,co){var Ys=this.length;return this.resize(Ys+1),this.emplace(Ys,T,W,re,de,Le,Je,$t,on,Jn,br,xi,Di,Do,Ao,Vo,Lo,co)},_.prototype.emplace=function(T,W,re,de,Le,Je,$t,on,Jn,br,xi,Di,Do,Ao,Vo,Lo,co,Ys){var Fa=24*T,xl=12*T,cu=48*T;return this.int16[Fa+0]=W,this.int16[Fa+1]=re,this.uint16[Fa+2]=de,this.uint16[Fa+3]=Le,this.uint32[xl+2]=Je,this.uint32[xl+3]=$t,this.uint32[xl+4]=on,this.uint16[Fa+10]=Jn,this.uint16[Fa+11]=br,this.uint16[Fa+12]=xi,this.float32[xl+7]=Di,this.float32[xl+8]=Do,this.uint8[cu+36]=Ao,this.uint8[cu+37]=Vo,this.uint8[cu+38]=Lo,this.uint32[xl+10]=co,this.int16[Fa+22]=Ys,T},_}(zd);ie.prototype.bytesPerElement=48,ih("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",ie);var Ee=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.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)},_.prototype.emplaceBack=function(T,W,re,de,Le,Je,$t,on,Jn,br,xi,Di,Do,Ao,Vo,Lo,co,Ys,Fa,xl,cu,$u,Lu,sh,_u,Bc,Nn,sr){var Zr=this.length;return this.resize(Zr+1),this.emplace(Zr,T,W,re,de,Le,Je,$t,on,Jn,br,xi,Di,Do,Ao,Vo,Lo,co,Ys,Fa,xl,cu,$u,Lu,sh,_u,Bc,Nn,sr)},_.prototype.emplace=function(T,W,re,de,Le,Je,$t,on,Jn,br,xi,Di,Do,Ao,Vo,Lo,co,Ys,Fa,xl,cu,$u,Lu,sh,_u,Bc,Nn,sr,Zr){var hi=34*T,oo=17*T;return this.int16[hi+0]=W,this.int16[hi+1]=re,this.int16[hi+2]=de,this.int16[hi+3]=Le,this.int16[hi+4]=Je,this.int16[hi+5]=$t,this.int16[hi+6]=on,this.int16[hi+7]=Jn,this.uint16[hi+8]=br,this.uint16[hi+9]=xi,this.uint16[hi+10]=Di,this.uint16[hi+11]=Do,this.uint16[hi+12]=Ao,this.uint16[hi+13]=Vo,this.uint16[hi+14]=Lo,this.uint16[hi+15]=co,this.uint16[hi+16]=Ys,this.uint16[hi+17]=Fa,this.uint16[hi+18]=xl,this.uint16[hi+19]=cu,this.uint16[hi+20]=$u,this.uint16[hi+21]=Lu,this.uint16[hi+22]=sh,this.uint32[oo+12]=_u,this.float32[oo+13]=Bc,this.float32[oo+14]=Nn,this.float32[oo+15]=sr,this.float32[oo+16]=Zr,T},_}(zd);Ee.prototype.bytesPerElement=68,ih("StructArrayLayout8i15ui1ul4f68",Ee);var Ne=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T){var W=this.length;return this.resize(W+1),this.emplace(W,T)},_.prototype.emplace=function(T,W){return this.float32[1*T+0]=W,T},_}(zd);Ne.prototype.bytesPerElement=4,ih("StructArrayLayout1f4",Ne);var ct=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T,W,re){var de=this.length;return this.resize(de+1),this.emplace(de,T,W,re)},_.prototype.emplace=function(T,W,re,de){var Le=3*T;return this.int16[Le+0]=W,this.int16[Le+1]=re,this.int16[Le+2]=de,T},_}(zd);ct.prototype.bytesPerElement=6,ih("StructArrayLayout3i6",ct);var Gt=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T,W,re){var de=this.length;return this.resize(de+1),this.emplace(de,T,W,re)},_.prototype.emplace=function(T,W,re,de){var Le=4*T;return this.uint32[2*T+0]=W,this.uint16[Le+2]=re,this.uint16[Le+3]=de,T},_}(zd);Gt.prototype.bytesPerElement=8,ih("StructArrayLayout1ul2ui8",Gt);var tn=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T,W){var re=this.length;return this.resize(re+1),this.emplace(re,T,W)},_.prototype.emplace=function(T,W,re){var de=2*T;return this.uint16[de+0]=W,this.uint16[de+1]=re,T},_}(zd);tn.prototype.bytesPerElement=4,ih("StructArrayLayout2ui4",tn);var Bn=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T){var W=this.length;return this.resize(W+1),this.emplace(W,T)},_.prototype.emplace=function(T,W){return this.uint16[1*T+0]=W,T},_}(zd);Bn.prototype.bytesPerElement=2,ih("StructArrayLayout1ui2",Bn);var Pr=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(T,W,re,de){var Le=this.length;return this.resize(Le+1),this.emplace(Le,T,W,re,de)},_.prototype.emplace=function(T,W,re,de,Le){var Je=4*T;return this.float32[Je+0]=W,this.float32[Je+1]=re,this.float32[Je+2]=de,this.float32[Je+3]=Le,T},_}(zd);Pr.prototype.bytesPerElement=16,ih("StructArrayLayout4f16",Pr);var G=function(f){function _(){f.apply(this,arguments)}f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_;var T={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 T.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},T.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},T.x1.get=function(){return this._structArray.int16[this._pos2+2]},T.y1.get=function(){return this._structArray.int16[this._pos2+3]},T.x2.get=function(){return this._structArray.int16[this._pos2+4]},T.y2.get=function(){return this._structArray.int16[this._pos2+5]},T.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},T.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},T.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},T.anchorPoint.get=function(){return new k(this.anchorPointX,this.anchorPointY)},Object.defineProperties(_.prototype,T),_}(Of);G.prototype.size=20;var J=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.get=function(T){return new G(this,T)},_}(ot);ih("CollisionBoxArray",J);var Q=function(f){function _(){f.apply(this,arguments)}f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_;var T={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 T.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},T.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},T.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},T.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},T.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},T.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},T.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},T.segment.get=function(){return this._structArray.uint16[this._pos2+10]},T.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},T.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},T.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},T.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},T.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},T.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},T.placedOrientation.set=function(W){this._structArray.uint8[this._pos1+37]=W},T.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},T.hidden.set=function(W){this._structArray.uint8[this._pos1+38]=W},T.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},T.crossTileID.set=function(W){this._structArray.uint32[this._pos4+10]=W},T.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(_.prototype,T),_}(Of);Q.prototype.size=48;var ce=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.get=function(T){return new Q(this,T)},_}(ie);ih("PlacedSymbolArray",ce);var He=function(f){function _(){f.apply(this,arguments)}f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_;var T={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 T.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},T.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},T.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},T.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},T.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},T.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},T.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},T.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},T.key.get=function(){return this._structArray.uint16[this._pos2+8]},T.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},T.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},T.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},T.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},T.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},T.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},T.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},T.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},T.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},T.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},T.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},T.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},T.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},T.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},T.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},T.crossTileID.set=function(W){this._structArray.uint32[this._pos4+12]=W},T.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},T.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},T.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},T.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(_.prototype,T),_}(Of);He.prototype.size=68;var Et=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.get=function(T){return new He(this,T)},_}(Ee);ih("SymbolInstanceArray",Et);var Nt=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.getoffsetX=function(T){return this.float32[1*T+0]},_}(Ne);ih("GlyphOffsetArray",Nt);var yn=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.getx=function(T){return this.int16[3*T+0]},_.prototype.gety=function(T){return this.int16[3*T+1]},_.prototype.gettileUnitDistanceFromAnchor=function(T){return this.int16[3*T+2]},_}(ct);ih("SymbolLineVertexArray",yn);var yr=function(f){function _(){f.apply(this,arguments)}f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_;var T={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return T.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},T.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},T.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(_.prototype,T),_}(Of);yr.prototype.size=8;var Sn=function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.get=function(T){return new yr(this,T)},_}(Gt);ih("FeatureIndexArray",Sn);var _i=Rd([{name:"a_pos",components:2,type:"Int16"}],4).members,Ri=function(f){f===void 0&&(f=[]),this.segments=f};function Ki(f,_){return 256*(f=K(Math.floor(f),0,255))+K(Math.floor(_),0,255)}Ri.prototype.prepareSegment=function(f,_,T,W){var re=this.segments[this.segments.length-1];return f>Ri.MAX_VERTEX_ARRAY_LENGTH&&Te("Max vertices per segment is "+Ri.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+f),(!re||re.vertexLength+f>Ri.MAX_VERTEX_ARRAY_LENGTH||re.sortKey!==W)&&(re={vertexOffset:_.length,primitiveOffset:T.length,vertexLength:0,primitiveLength:0},W!==void 0&&(re.sortKey=W),this.segments.push(re)),re},Ri.prototype.get=function(){return this.segments},Ri.prototype.destroy=function(){for(var f=0,_=this.segments;f<_.length;f+=1){var T=_[f];for(var W in T.vaos)T.vaos[W].destroy()}},Ri.simpleSegment=function(f,_,T,W){return new Ri([{vertexOffset:f,primitiveOffset:_,vertexLength:T,primitiveLength:W,vaos:{},sortKey:0}])},Ri.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,ih("SegmentVector",Ri);var Fo=Rd([{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"}]),Wo=b(function(f){f.exports=function(_,T){var W,re,de,Le,Je,$t,on,Jn;for(re=_.length-(W=3&_.length),de=T,Je=3432918353,$t=461845907,Jn=0;Jn>>16)*Je&65535)<<16)&4294967295)<<15|on>>>17))*$t+(((on>>>16)*$t&65535)<<16)&4294967295)<<13|de>>>19))+((5*(de>>>16)&65535)<<16)&4294967295))+((58964+(Le>>>16)&65535)<<16);switch(on=0,W){case 3:on^=(255&_.charCodeAt(Jn+2))<<16;case 2:on^=(255&_.charCodeAt(Jn+1))<<8;case 1:de^=on=(65535&(on=(on=(65535&(on^=255&_.charCodeAt(Jn)))*Je+(((on>>>16)*Je&65535)<<16)&4294967295)<<15|on>>>17))*$t+(((on>>>16)*$t&65535)<<16)&4294967295}return de^=_.length,de=2246822507*(65535&(de^=de>>>16))+((2246822507*(de>>>16)&65535)<<16)&4294967295,de=3266489909*(65535&(de^=de>>>13))+((3266489909*(de>>>16)&65535)<<16)&4294967295,(de^=de>>>16)>>>0}}),Ui=b(function(f){f.exports=function(_,T){for(var W,re=_.length,de=T^re,Le=0;re>=4;)W=1540483477*(65535&(W=255&_.charCodeAt(Le)|(255&_.charCodeAt(++Le))<<8|(255&_.charCodeAt(++Le))<<16|(255&_.charCodeAt(++Le))<<24))+((1540483477*(W>>>16)&65535)<<16),de=1540483477*(65535&de)+((1540483477*(de>>>16)&65535)<<16)^(W=1540483477*(65535&(W^=W>>>24))+((1540483477*(W>>>16)&65535)<<16)),re-=4,++Le;switch(re){case 3:de^=(255&_.charCodeAt(Le+2))<<16;case 2:de^=(255&_.charCodeAt(Le+1))<<8;case 1:de=1540483477*(65535&(de^=255&_.charCodeAt(Le)))+((1540483477*(de>>>16)&65535)<<16)}return de=1540483477*(65535&(de^=de>>>13))+((1540483477*(de>>>16)&65535)<<16),(de^=de>>>15)>>>0}}),Uo=Wo,Hs=Ui;Uo.murmur3=Wo,Uo.murmur2=Hs;var tl=function(){this.ids=[],this.positions=[],this.indexed=!1};tl.prototype.add=function(f,_,T,W){this.ids.push(Gl(f)),this.positions.push(_,T,W)},tl.prototype.getPositions=function(f){for(var _=Gl(f),T=0,W=this.ids.length-1;T>1;this.ids[re]>=_?W=re:T=re+1}for(var de=[];this.ids[T]===_;)de.push({index:this.positions[3*T],start:this.positions[3*T+1],end:this.positions[3*T+2]}),T++;return de},tl.serialize=function(f,_){var T=new Float64Array(f.ids),W=new Uint32Array(f.positions);return function re(de,Le,Je,$t){for(;Je<$t;){for(var on=de[Je+$t>>1],Jn=Je-1,br=$t+1;;){do Jn++;while(de[Jn]on);if(Jn>=br)break;bl(de,Jn,br),bl(Le,3*Jn,3*br),bl(Le,3*Jn+1,3*br+1),bl(Le,3*Jn+2,3*br+2)}br-Je<$t-br?(re(de,Le,Je,br),Je=br+1):(re(de,Le,br+1,$t),$t=br)}}(T,W,0,T.length-1),_&&_.push(T.buffer,W.buffer),{ids:T,positions:W}},tl.deserialize=function(f){var _=new tl;return _.ids=f.ids,_.positions=f.positions,_.indexed=!0,_};var qa=Math.pow(2,53)-1;function Gl(f){var _=+f;return!isNaN(_)&&_<=qa?_:Uo(String(f))}function bl(f,_,T){var W=f[_];f[_]=f[T],f[T]=W}ih("FeaturePositionMap",tl);var bu=function(f,_){this.gl=f.gl,this.location=_},zu=function(f){function _(T,W){f.call(this,T,W),this.current=0}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.set=function(T){this.current!==T&&(this.current=T,this.gl.uniform1i(this.location,T))},_}(bu),ic=function(f){function _(T,W){f.call(this,T,W),this.current=0}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.set=function(T){this.current!==T&&(this.current=T,this.gl.uniform1f(this.location,T))},_}(bu),Ju=function(f){function _(T,W){f.call(this,T,W),this.current=[0,0]}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.set=function(T){T[0]===this.current[0]&&T[1]===this.current[1]||(this.current=T,this.gl.uniform2f(this.location,T[0],T[1]))},_}(bu),oh=function(f){function _(T,W){f.call(this,T,W),this.current=[0,0,0]}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.set=function(T){T[0]===this.current[0]&&T[1]===this.current[1]&&T[2]===this.current[2]||(this.current=T,this.gl.uniform3f(this.location,T[0],T[1],T[2]))},_}(bu),vh=function(f){function _(T,W){f.call(this,T,W),this.current=[0,0,0,0]}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.set=function(T){T[0]===this.current[0]&&T[1]===this.current[1]&&T[2]===this.current[2]&&T[3]===this.current[3]||(this.current=T,this.gl.uniform4f(this.location,T[0],T[1],T[2],T[3]))},_}(bu),Gh=function(f){function _(T,W){f.call(this,T,W),this.current=bn.transparent}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.set=function(T){T.r===this.current.r&&T.g===this.current.g&&T.b===this.current.b&&T.a===this.current.a||(this.current=T,this.gl.uniform4f(this.location,T.r,T.g,T.b,T.a))},_}(bu),Nh=new Float32Array(16),jd=function(f){function _(T,W){f.call(this,T,W),this.current=Nh}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.set=function(T){if(T[12]!==this.current[12]||T[0]!==this.current[0])return this.current=T,void this.gl.uniformMatrix4fv(this.location,!1,T);for(var W=1;W<16;W++)if(T[W]!==this.current[W]){this.current=T,this.gl.uniformMatrix4fv(this.location,!1,T);break}},_}(bu);function Jc(f){return[Ki(255*f.r,255*f.g),Ki(255*f.b,255*f.a)]}var Tc=function(f,_,T){this.value=f,this.uniformNames=_.map(function(W){return"u_"+W}),this.type=T};Tc.prototype.setUniform=function(f,_,T){f.set(T.constantOr(this.value))},Tc.prototype.getBinding=function(f,_,T){return this.type==="color"?new Gh(f,_):new ic(f,_)};var tf=function(f,_){this.uniformNames=_.map(function(T){return"u_"+T}),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};tf.prototype.setConstantPatternPositions=function(f,_){this.pixelRatioFrom=_.pixelRatio,this.pixelRatioTo=f.pixelRatio,this.patternFrom=_.tlbr,this.patternTo=f.tlbr},tf.prototype.setUniform=function(f,_,T,W){var re=W==="u_pattern_to"?this.patternTo:W==="u_pattern_from"?this.patternFrom:W==="u_pixel_ratio_to"?this.pixelRatioTo:W==="u_pixel_ratio_from"?this.pixelRatioFrom:null;re&&f.set(re)},tf.prototype.getBinding=function(f,_,T){return T.substr(0,9)==="u_pattern"?new vh(f,_):new ic(f,_)};var Wd=function(f,_,T,W){this.expression=f,this.type=T,this.maxValue=0,this.paintVertexAttributes=_.map(function(re){return{name:"a_"+re,type:"Float32",components:T==="color"?2:1,offset:0}}),this.paintVertexArray=new W};Wd.prototype.populatePaintArray=function(f,_,T,W,re){var de=this.paintVertexArray.length,Le=this.expression.evaluate(new gd(0),_,{},W,[],re);this.paintVertexArray.resize(f),this._setPaintValue(de,f,Le)},Wd.prototype.updatePaintArray=function(f,_,T,W){var re=this.expression.evaluate({zoom:0},T,W);this._setPaintValue(f,_,re)},Wd.prototype._setPaintValue=function(f,_,T){if(this.type==="color")for(var W=Jc(T),re=f;re<_;re++)this.paintVertexArray.emplace(re,W[0],W[1]);else{for(var de=f;de<_;de++)this.paintVertexArray.emplace(de,T);this.maxValue=Math.max(this.maxValue,Math.abs(T))}},Wd.prototype.upload=function(f){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=f.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Wd.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()};var rd=function(f,_,T,W,re,de){this.expression=f,this.uniformNames=_.map(function(Le){return"u_"+Le+"_t"}),this.type=T,this.useIntegerZoom=W,this.zoom=re,this.maxValue=0,this.paintVertexAttributes=_.map(function(Le){return{name:"a_"+Le,type:"Float32",components:T==="color"?4:2,offset:0}}),this.paintVertexArray=new de};rd.prototype.populatePaintArray=function(f,_,T,W,re){var de=this.expression.evaluate(new gd(this.zoom),_,{},W,[],re),Le=this.expression.evaluate(new gd(this.zoom+1),_,{},W,[],re),Je=this.paintVertexArray.length;this.paintVertexArray.resize(f),this._setPaintValue(Je,f,de,Le)},rd.prototype.updatePaintArray=function(f,_,T,W){var re=this.expression.evaluate({zoom:this.zoom},T,W),de=this.expression.evaluate({zoom:this.zoom+1},T,W);this._setPaintValue(f,_,re,de)},rd.prototype._setPaintValue=function(f,_,T,W){if(this.type==="color")for(var re=Jc(T),de=Jc(W),Le=f;Le<_;Le++)this.paintVertexArray.emplace(Le,re[0],re[1],de[0],de[1]);else{for(var Je=f;Je<_;Je++)this.paintVertexArray.emplace(Je,T,W);this.maxValue=Math.max(this.maxValue,Math.abs(T),Math.abs(W))}},rd.prototype.upload=function(f){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=f.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},rd.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},rd.prototype.setUniform=function(f,_){var T=this.useIntegerZoom?Math.floor(_.zoom):_.zoom,W=K(this.expression.interpolationFactor(T,this.zoom,this.zoom+1),0,1);f.set(W)},rd.prototype.getBinding=function(f,_,T){return new ic(f,_)};var of=function(f,_,T,W,re,de){this.expression=f,this.type=_,this.useIntegerZoom=T,this.zoom=W,this.layerId=de,this.zoomInPaintVertexArray=new re,this.zoomOutPaintVertexArray=new re};of.prototype.populatePaintArray=function(f,_,T){var W=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(f),this.zoomOutPaintVertexArray.resize(f),this._setPaintValues(W,f,_.patterns&&_.patterns[this.layerId],T)},of.prototype.updatePaintArray=function(f,_,T,W,re){this._setPaintValues(f,_,T.patterns&&T.patterns[this.layerId],re)},of.prototype._setPaintValues=function(f,_,T,W){if(W&&T){var re=W[T.min],de=W[T.mid],Le=W[T.max];if(re&&de&&Le)for(var Je=f;Je<_;Je++)this.zoomInPaintVertexArray.emplace(Je,de.tl[0],de.tl[1],de.br[0],de.br[1],re.tl[0],re.tl[1],re.br[0],re.br[1],de.pixelRatio,re.pixelRatio),this.zoomOutPaintVertexArray.emplace(Je,de.tl[0],de.tl[1],de.br[0],de.br[1],Le.tl[0],Le.tl[1],Le.br[0],Le.br[1],de.pixelRatio,Le.pixelRatio)}},of.prototype.upload=function(f){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=f.createVertexBuffer(this.zoomInPaintVertexArray,Fo.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=f.createVertexBuffer(this.zoomOutPaintVertexArray,Fo.members,this.expression.isStateDependent))},of.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()};var $d=function(f,_,T){this.binders={},this._buffers=[];var W=[];for(var re in f.paint._values)if(T(re)){var de=f.paint.get(re);if(de instanceof Dp&&dh(de.property.specification)){var Le=kp(re,f.type),Je=de.value,$t=de.property.specification.type,on=de.property.useIntegerZoom,Jn=de.property.specification["property-type"],br=Jn==="cross-faded"||Jn==="cross-faded-data-driven";if(Je.kind==="constant")this.binders[re]=br?new tf(Je.value,Le):new Tc(Je.value,Le,$t),W.push("/u_"+re);else if(Je.kind==="source"||br){var xi=ap(re,$t,"source");this.binders[re]=br?new of(Je,$t,on,_,xi,f.id):new Wd(Je,Le,$t,xi),W.push("/a_"+re)}else{var Di=ap(re,$t,"composite");this.binders[re]=new rd(Je,Le,$t,on,_,Di),W.push("/z_"+re)}}}this.cacheKey=W.sort().join("")};$d.prototype.getMaxValue=function(f){var _=this.binders[f];return _ instanceof Wd||_ instanceof rd?_.maxValue:0},$d.prototype.populatePaintArrays=function(f,_,T,W,re){for(var de in this.binders){var Le=this.binders[de];(Le instanceof Wd||Le instanceof rd||Le instanceof of)&&Le.populatePaintArray(f,_,T,W,re)}},$d.prototype.setConstantPatternPositions=function(f,_){for(var T in this.binders){var W=this.binders[T];W instanceof tf&&W.setConstantPatternPositions(f,_)}},$d.prototype.updatePaintArrays=function(f,_,T,W,re){var de=!1;for(var Le in f)for(var Je=0,$t=_.getPositions(Le);Je<$t.length;Je+=1){var on=$t[Je],Jn=T.feature(on.index);for(var br in this.binders){var xi=this.binders[br];if((xi instanceof Wd||xi instanceof rd||xi instanceof of)&&xi.expression.isStateDependent===!0){var Di=W.paint.get(br);xi.expression=Di.value,xi.updatePaintArray(on.start,on.end,Jn,f[Le],re),de=!0}}}return de},$d.prototype.defines=function(){var f=[];for(var _ in this.binders){var T=this.binders[_];(T instanceof Tc||T instanceof tf)&&f.push.apply(f,T.uniformNames.map(function(W){return"#define HAS_UNIFORM_"+W}))}return f},$d.prototype.getBinderAttributes=function(){var f=[];for(var _ in this.binders){var T=this.binders[_];if(T instanceof Wd||T instanceof rd)for(var W=0;WLe.x+1||$tLe.y+1)&&Te("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return T}function ch(f,_){return{type:f.type,id:f.id,properties:f.properties,geometry:_?bc(f):[]}}function _h(f,_,T,W,re){f.emplaceBack(2*_+(W+1)/2,2*T+(re+1)/2)}var od=function(f){this.zoom=f.zoom,this.overscaling=f.overscaling,this.layers=f.layers,this.layerIds=this.layers.map(function(_){return _.id}),this.index=f.index,this.hasPattern=!1,this.layoutVertexArray=new Eh,this.indexArray=new D,this.segments=new Ri,this.programConfigurations=new ud(f.layers,f.zoom),this.stateDependentLayerIds=this.layers.filter(function(_){return _.isStateDependent()}).map(function(_){return _.id})};function wc(f,_){for(var T=0;T1){if(Oo(f,_))return!0;for(var W=0;W<_.length;W++)if(zp(_[W],f,T))return!0}for(var re=0;re1?T:T.sub(_)._mult(re)._add(_))}function Bg(f,_){for(var T,W,re,de=!1,Le=0;Le_.y!=(re=T[$t]).y>_.y&&_.x<(re.x-W.x)*(_.y-W.y)/(re.y-W.y)+W.x&&(de=!de);return de}function qf(f,_){for(var T=!1,W=0,re=f.length-1;W_.y!=Le.y>_.y&&_.x<(Le.x-de.x)*(_.y-de.y)/(Le.y-de.y)+de.x&&(T=!T)}return T}function Hd(f,_,T){var W=T[0],re=T[2];if(f.xre.x&&_.x>re.x||f.yre.y&&_.y>re.y)return!1;var de=Me(f,_,T[0]);return de!==Me(f,_,T[1])||de!==Me(f,_,T[2])||de!==Me(f,_,T[3])}function Jf(f,_,T){var W=_.paint.get(f).value;return W.kind==="constant"?W.value:T.programConfigurations.get(_.id).getMaxValue(f)}function Op(f){return Math.sqrt(f[0]*f[0]+f[1]*f[1])}function Vp(f,_,T,W,re){if(!_[0]&&!_[1])return f;var de=k.convert(_)._mult(re);T==="viewport"&&de._rotate(-W);for(var Le=[],Je=0;Je=8192||Jn<0||Jn>=8192)){var br=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,f.sortKey),xi=br.vertexLength;_h(this.layoutVertexArray,on,Jn,-1,-1),_h(this.layoutVertexArray,on,Jn,1,-1),_h(this.layoutVertexArray,on,Jn,1,1),_h(this.layoutVertexArray,on,Jn,-1,1),this.indexArray.emplaceBack(xi,xi+1,xi+2),this.indexArray.emplaceBack(xi,xi+3,xi+2),br.vertexLength+=4,br.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,f,T,{},W)},ih("CircleBucket",od,{omit:["layers"]});var Sp=new Zf({"circle-sort-key":new Bh(Yt.layout_circle["circle-sort-key"])}),Qf={paint:new Zf({"circle-radius":new Bh(Yt.paint_circle["circle-radius"]),"circle-color":new Bh(Yt.paint_circle["circle-color"]),"circle-blur":new Bh(Yt.paint_circle["circle-blur"]),"circle-opacity":new Bh(Yt.paint_circle["circle-opacity"]),"circle-translate":new kh(Yt.paint_circle["circle-translate"]),"circle-translate-anchor":new kh(Yt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new kh(Yt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new kh(Yt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Bh(Yt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Bh(Yt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Bh(Yt.paint_circle["circle-stroke-opacity"])}),layout:Sp},df=typeof Float32Array!="undefined"?Float32Array:Array;function wf(f){return f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1,f}function Ag(f,_,T){var W=_[0],re=_[1],de=_[2],Le=_[3],Je=_[4],$t=_[5],on=_[6],Jn=_[7],br=_[8],xi=_[9],Di=_[10],Do=_[11],Ao=_[12],Vo=_[13],Lo=_[14],co=_[15],Ys=T[0],Fa=T[1],xl=T[2],cu=T[3];return f[0]=Ys*W+Fa*Je+xl*br+cu*Ao,f[1]=Ys*re+Fa*$t+xl*xi+cu*Vo,f[2]=Ys*de+Fa*on+xl*Di+cu*Lo,f[3]=Ys*Le+Fa*Jn+xl*Do+cu*co,f[4]=(Ys=T[4])*W+(Fa=T[5])*Je+(xl=T[6])*br+(cu=T[7])*Ao,f[5]=Ys*re+Fa*$t+xl*xi+cu*Vo,f[6]=Ys*de+Fa*on+xl*Di+cu*Lo,f[7]=Ys*Le+Fa*Jn+xl*Do+cu*co,f[8]=(Ys=T[8])*W+(Fa=T[9])*Je+(xl=T[10])*br+(cu=T[11])*Ao,f[9]=Ys*re+Fa*$t+xl*xi+cu*Vo,f[10]=Ys*de+Fa*on+xl*Di+cu*Lo,f[11]=Ys*Le+Fa*Jn+xl*Do+cu*co,f[12]=(Ys=T[12])*W+(Fa=T[13])*Je+(xl=T[14])*br+(cu=T[15])*Ao,f[13]=Ys*re+Fa*$t+xl*xi+cu*Vo,f[14]=Ys*de+Fa*on+xl*Di+cu*Lo,f[15]=Ys*Le+Fa*Jn+xl*Do+cu*co,f}Math.hypot||(Math.hypot=function(){for(var f=arguments,_=0,T=arguments.length;T--;)_+=f[T]*f[T];return Math.sqrt(_)});var Jg,rp=Ag;function Ad(f,_,T){var W=_[0],re=_[1],de=_[2],Le=_[3];return f[0]=T[0]*W+T[4]*re+T[8]*de+T[12]*Le,f[1]=T[1]*W+T[5]*re+T[9]*de+T[13]*Le,f[2]=T[2]*W+T[6]*re+T[10]*de+T[14]*Le,f[3]=T[3]*W+T[7]*re+T[11]*de+T[15]*Le,f}Jg=new df(3),df!=Float32Array&&(Jg[0]=0,Jg[1]=0,Jg[2]=0),function(){var f=new df(4);df!=Float32Array&&(f[0]=0,f[1]=0,f[2]=0,f[3]=0)}();var i0=(function(){var f=new df(2);df!=Float32Array&&(f[0]=0,f[1]=0)}(),function(f){function _(T){f.call(this,T,Qf)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.createBucket=function(T){return new od(T)},_.prototype.queryRadius=function(T){var W=T;return Jf("circle-radius",this,W)+Jf("circle-stroke-width",this,W)+Op(this.paint.get("circle-translate"))},_.prototype.queryIntersectsFeature=function(T,W,re,de,Le,Je,$t,on){for(var Jn=Vp(T,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),Je.angle,$t),br=this.paint.get("circle-radius").evaluate(W,re)+this.paint.get("circle-stroke-width").evaluate(W,re),xi=this.paint.get("circle-pitch-alignment")==="map",Di=xi?Jn:function($u,Lu){return $u.map(function(sh){return vm(sh,Lu)})}(Jn,on),Do=xi?br*$t:br,Ao=0,Vo=de;Aof.width||re.height>f.height||T.x>f.width-re.width||T.y>f.height-re.height)throw new RangeError("out of range source coordinates for image copy");if(re.width>_.width||re.height>_.height||W.x>_.width-re.width||W.y>_.height-re.height)throw new RangeError("out of range destination coordinates for image copy");for(var Le=f.data,Je=_.data,$t=0;$t80*T){W=de=f[0],re=Le=f[1];for(var Do=T;Dode&&(de=Je),$t>Le&&(Le=$t);on=(on=Math.max(de-W,Le-re))!==0?1/on:0}return K0(xi,Di,T,W,re,on),Di}function Np(f,_,T,W,re){var de,Le;if(re===xt(f,_,T,W)>0)for(de=_;de=_;de-=W)Le=ke(de,f[de],f[de+1],Le);return Le&&Gg(Le,Le.next)&&(At(Le),Le=Le.next),Le}function _f(f,_){if(!f)return f;_||(_=f);var T,W=f;do if(T=!1,W.steiner||!Gg(W,W.next)&&Zp(W.prev,W,W.next)!==0)W=W.next;else{if(At(W),(W=_=W.prev)===W.next)break;T=!0}while(T||W!==_);return _}function K0(f,_,T,W,re,de,Le){if(f){!Le&&de&&function(Jn,br,xi,Di){var Do=Jn;do Do.z===null&&(Do.z=gm(Do.x,Do.y,br,xi,Di)),Do.prevZ=Do.prev,Do.nextZ=Do.next,Do=Do.next;while(Do!==Jn);Do.prevZ.nextZ=null,Do.prevZ=null,function(Ao){var Vo,Lo,co,Ys,Fa,xl,cu,$u,Lu=1;do{for(Lo=Ao,Ao=null,Fa=null,xl=0;Lo;){for(xl++,co=Lo,cu=0,Vo=0;Vo0||$u>0&&co;)cu!==0&&($u===0||!co||Lo.z<=co.z)?(Ys=Lo,Lo=Lo.nextZ,cu--):(Ys=co,co=co.nextZ,$u--),Fa?Fa.nextZ=Ys:Ao=Ys,Ys.prevZ=Fa,Fa=Ys;Lo=co}Fa.nextZ=null,Lu*=2}while(xl>1)}(Do)}(f,W,re,de);for(var Je,$t,on=f;f.prev!==f.next;)if(Je=f.prev,$t=f.next,de?Tm(f,W,re,de):U0(f))_.push(Je.i/T),_.push(f.i/T),_.push($t.i/T),At(f),f=$t.next,on=$t.next;else if((f=$t)===on){Le?Le===1?K0(f=C0(_f(f),_,T),_,T,W,re,de,2):Le===2&&S0(f,_,T,W,re,de):K0(_f(f),_,T,W,re,de,1);break}}}function U0(f){var _=f.prev,T=f,W=f.next;if(Zp(_,T,W)>=0)return!1;for(var re=f.next.next;re!==f.prev;){if(Bm(_.x,_.y,T.x,T.y,W.x,W.y,re.x,re.y)&&Zp(re.prev,re,re.next)>=0)return!1;re=re.next}return!0}function Tm(f,_,T,W){var re=f.prev,de=f,Le=f.next;if(Zp(re,de,Le)>=0)return!1;for(var Je=re.x>de.x?re.x>Le.x?re.x:Le.x:de.x>Le.x?de.x:Le.x,$t=re.y>de.y?re.y>Le.y?re.y:Le.y:de.y>Le.y?de.y:Le.y,on=gm(re.x=on&&xi&&xi.z<=Jn;){if(br!==f.prev&&br!==f.next&&Bm(re.x,re.y,de.x,de.y,Le.x,Le.y,br.x,br.y)&&Zp(br.prev,br,br.next)>=0||(br=br.prevZ,xi!==f.prev&&xi!==f.next&&Bm(re.x,re.y,de.x,de.y,Le.x,Le.y,xi.x,xi.y)&&Zp(xi.prev,xi,xi.next)>=0))return!1;xi=xi.nextZ}for(;br&&br.z>=on;){if(br!==f.prev&&br!==f.next&&Bm(re.x,re.y,de.x,de.y,Le.x,Le.y,br.x,br.y)&&Zp(br.prev,br,br.next)>=0)return!1;br=br.prevZ}for(;xi&&xi.z<=Jn;){if(xi!==f.prev&&xi!==f.next&&Bm(re.x,re.y,de.x,de.y,Le.x,Le.y,xi.x,xi.y)&&Zp(xi.prev,xi,xi.next)>=0)return!1;xi=xi.nextZ}return!0}function C0(f,_,T){var W=f;do{var re=W.prev,de=W.next.next;!Gg(re,de)&&zm(re,W,W.next,de)&&we(re,de)&&we(de,re)&&(_.push(re.i/T),_.push(W.i/T),_.push(de.i/T),At(W),At(W.next),W=f=de),W=W.next}while(W!==f);return _f(W)}function S0(f,_,T,W,re,de){var Le=f;do{for(var Je=Le.next.next;Je!==Le.prev;){if(Le.i!==Je.i&&_0(Le,Je)){var $t=ee(Le,Je);return Le=_f(Le,Le.next),$t=_f($t,$t.next),K0(Le,_,T,W,re,de),void K0($t,_,T,W,re,de)}Je=Je.next}Le=Le.next}while(Le!==f)}function cv(f,_){return f.x-_.x}function Nd(f,_){if(_=function(W,re){var de,Le=re,Je=W.x,$t=W.y,on=-1/0;do{if($t<=Le.y&&$t>=Le.next.y&&Le.next.y!==Le.y){var Jn=Le.x+($t-Le.y)*(Le.next.x-Le.x)/(Le.next.y-Le.y);if(Jn<=Je&&Jn>on){if(on=Jn,Jn===Je){if($t===Le.y)return Le;if($t===Le.next.y)return Le.next}de=Le.x=Le.x&&Le.x>=Di&&Je!==Le.x&&Bm($tde.x||Le.x===de.x&&Wm(de,Le)))&&(de=Le,Ao=br)),Le=Le.next;while(Le!==xi);return de}(f,_)){var T=ee(_,f);_f(_,_.next),_f(T,T.next)}}function Wm(f,_){return Zp(f.prev,f,_.prev)<0&&Zp(_.next,f,f.next)<0}function gm(f,_,T,W,re){return(f=1431655765&((f=858993459&((f=252645135&((f=16711935&((f=32767*(f-T)*re)|f<<8))|f<<4))|f<<2))|f<<1))|(_=1431655765&((_=858993459&((_=252645135&((_=16711935&((_=32767*(_-W)*re)|_<<8))|_<<4))|_<<2))|_<<1))<<1}function c0(f){var _=f,T=f;do(_.x=0&&(f-Le)*(W-Je)-(T-Le)*(_-Je)>=0&&(T-Le)*(de-Je)-(re-Le)*(W-Je)>=0}function _0(f,_){return f.next.i!==_.i&&f.prev.i!==_.i&&!function(T,W){var re=T;do{if(re.i!==T.i&&re.next.i!==T.i&&re.i!==W.i&&re.next.i!==W.i&&zm(re,re.next,T,W))return!0;re=re.next}while(re!==T);return!1}(f,_)&&(we(f,_)&&we(_,f)&&function(T,W){var re=T,de=!1,Le=(T.x+W.x)/2,Je=(T.y+W.y)/2;do re.y>Je!=re.next.y>Je&&re.next.y!==re.y&&Le<(re.next.x-re.x)*(Je-re.y)/(re.next.y-re.y)+re.x&&(de=!de),re=re.next;while(re!==T);return de}(f,_)&&(Zp(f.prev,f,_.prev)||Zp(f,_.prev,_))||Gg(f,_)&&Zp(f.prev,f,f.next)>0&&Zp(_.prev,_,_.next)>0)}function Zp(f,_,T){return(_.y-f.y)*(T.x-_.x)-(_.x-f.x)*(T.y-_.y)}function Gg(f,_){return f.x===_.x&&f.y===_.y}function zm(f,_,T,W){var re=pg(Zp(f,_,T)),de=pg(Zp(f,_,W)),Le=pg(Zp(T,W,f)),Je=pg(Zp(T,W,_));return re!==de&&Le!==Je||!(re!==0||!Zm(f,T,_))||!(de!==0||!Zm(f,W,_))||!(Le!==0||!Zm(T,f,W))||!(Je!==0||!Zm(T,_,W))}function Zm(f,_,T){return _.x<=Math.max(f.x,T.x)&&_.x>=Math.min(f.x,T.x)&&_.y<=Math.max(f.y,T.y)&&_.y>=Math.min(f.y,T.y)}function pg(f){return f>0?1:f<0?-1:0}function we(f,_){return Zp(f.prev,f,f.next)<0?Zp(f,_,f.next)>=0&&Zp(f,f.prev,_)>=0:Zp(f,_,f.prev)<0||Zp(f,f.next,_)<0}function ee(f,_){var T=new Vn(f.i,f.x,f.y),W=new Vn(_.i,_.x,_.y),re=f.next,de=_.prev;return f.next=_,_.prev=f,T.next=re,re.prev=T,W.next=T,T.prev=W,de.next=W,W.prev=de,W}function ke(f,_,T,W){var re=new Vn(f,_,T);return W?(re.next=W.next,re.prev=W,W.next.prev=re,W.next=re):(re.prev=re,re.next=re),re}function At(f){f.next.prev=f.prev,f.prev.next=f.next,f.prevZ&&(f.prevZ.nextZ=f.nextZ),f.nextZ&&(f.nextZ.prevZ=f.prevZ)}function Vn(f,_,T){this.i=f,this.x=_,this.y=T,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function xt(f,_,T,W){for(var re=0,de=_,Le=T-W;de$t;){if(on-$t>600){var br=on-$t+1,xi=Je-$t+1,Di=Math.log(br),Do=.5*Math.exp(2*Di/3),Ao=.5*Math.sqrt(Di*Do*(br-Do)/br)*(xi-br/2<0?-1:1);de(Le,Je,Math.max($t,Math.floor(Je-xi*Do/br+Ao)),Math.min(on,Math.floor(Je+(br-xi)*Do/br+Ao)),Jn)}var Vo=Le[Je],Lo=$t,co=on;for(jt(Le,$t,Je),Jn(Le[on],Vo)>0&&jt(Le,$t,on);Lo0;)co--}Jn(Le[$t],Vo)===0?jt(Le,$t,co):jt(Le,++co,on),co<=Je&&($t=co+1),Je<=co&&(on=co-1)}})(f,_,T||0,W||f.length-1,re||sn)}function jt(f,_,T){var W=f[_];f[_]=f[T],f[T]=W}function sn(f,_){return f<_?-1:f>_?1:0}function rn(f,_){var T=f.length;if(T<=1)return[f];for(var W,re,de=[],Le=0;Le1)for(var $t=0;$t0&&T.holes.push(W+=f[re-1].length)}return T},Mg.default=uv;var ur=function(f){this.zoom=f.zoom,this.overscaling=f.overscaling,this.layers=f.layers,this.layerIds=this.layers.map(function(_){return _.id}),this.index=f.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Eh,this.indexArray=new D,this.indexArray2=new tn,this.programConfigurations=new ud(f.layers,f.zoom),this.segments=new Ri,this.segments2=new Ri,this.stateDependentLayerIds=this.layers.filter(function(_){return _.isStateDependent()}).map(function(_){return _.id})};ur.prototype.populate=function(f,_,T){this.hasPattern=Rn("fill",this.layers,_);for(var W=this.layers[0].layout.get("fill-sort-key"),re=[],de=0,Le=f;de>3}if(re--,W===1||W===2)de+=f.readSVarint(),Le+=f.readSVarint(),W===1&&(_&&Je.push(_),_=[]),_.push(new k(de,Le));else{if(W!==7)throw new Error("unknown command "+W);_&&_.push(_[0].clone())}}return _&&Je.push(_),Je},Vt.prototype.bbox=function(){var f=this._pbf;f.pos=this._geometry;for(var _=f.readVarint()+f.pos,T=1,W=0,re=0,de=0,Le=1/0,Je=-1/0,$t=1/0,on=-1/0;f.pos<_;){if(W<=0){var Jn=f.readVarint();T=7&Jn,W=Jn>>3}if(W--,T===1||T===2)(re+=f.readSVarint())Je&&(Je=re),(de+=f.readSVarint())<$t&&($t=de),de>on&&(on=de);else if(T!==7)throw new Error("unknown command "+T)}return[Le,$t,Je,on]},Vt.prototype.toGeoJSON=function(f,_,T){var W,re,de=this.extent*Math.pow(2,T),Le=this.extent*f,Je=this.extent*_,$t=this.loadGeometry(),on=Vt.types[this.type];function Jn(Di){for(var Do=0;Do>3;re=Le===1?W.readString():Le===2?W.readFloat():Le===3?W.readDouble():Le===4?W.readVarint64():Le===5?W.readVarint():Le===6?W.readSVarint():Le===7?W.readBoolean():null}return re}(T))}function xr(f,_,T){if(f===3){var W=new _r(T,T.readVarint()+T.pos);W.length&&(_[W.name]=W)}}Yn.prototype.feature=function(f){if(f<0||f>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[f];var _=this._pbf.readVarint()+this._pbf.pos;return new Ft(this._pbf,_,this.extent,this._keys,this._values)};var Yr={VectorTile:function(f,_){this.layers=f.readFields(xr,{},_)},VectorTileFeature:Ft,VectorTileLayer:_r},Br=Yr.VectorTileFeature.types,Gi=Math.pow(2,13);function jn(f,_,T,W,re,de,Le,Je){f.emplaceBack(_,T,2*Math.floor(W*Gi)+Le,re*Gi*2,de*Gi*2,Math.round(Je))}var Vr=function(f){this.zoom=f.zoom,this.overscaling=f.overscaling,this.layers=f.layers,this.layerIds=this.layers.map(function(_){return _.id}),this.index=f.index,this.hasPattern=!1,this.layoutVertexArray=new zh,this.indexArray=new D,this.programConfigurations=new ud(f.layers,f.zoom),this.segments=new Ri,this.stateDependentLayerIds=this.layers.filter(function(_){return _.isStateDependent()}).map(function(_){return _.id})};function cr(f,_){return f.x===_.x&&(f.x<0||f.x>8192)||f.y===_.y&&(f.y<0||f.y>8192)}Vr.prototype.populate=function(f,_,T){this.features=[],this.hasPattern=Rn("fill-extrusion",this.layers,_);for(var W=0,re=f;W8192})||oo.every(function(na){return na.y<0})||oo.every(function(na){return na.y>8192})))for(var Ao=0,Vo=0;Vo=1){var co=Do[Vo-1];if(!cr(Lo,co)){br.vertexLength+4>Ri.MAX_VERTEX_ARRAY_LENGTH&&(br=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Ys=Lo.sub(co)._perp()._unit(),Fa=co.dist(Lo);Ao+Fa>32768&&(Ao=0),jn(this.layoutVertexArray,Lo.x,Lo.y,Ys.x,Ys.y,0,0,Ao),jn(this.layoutVertexArray,Lo.x,Lo.y,Ys.x,Ys.y,0,1,Ao),jn(this.layoutVertexArray,co.x,co.y,Ys.x,Ys.y,0,0,Ao+=Fa),jn(this.layoutVertexArray,co.x,co.y,Ys.x,Ys.y,0,1,Ao);var xl=br.vertexLength;this.indexArray.emplaceBack(xl,xl+2,xl+1),this.indexArray.emplaceBack(xl+1,xl+2,xl+3),br.vertexLength+=4,br.primitiveLength+=2}}}}if(br.vertexLength+$t>Ri.MAX_VERTEX_ARRAY_LENGTH&&(br=this.segments.prepareSegment($t,this.layoutVertexArray,this.indexArray)),Br[f.type]==="Polygon"){for(var cu=[],$u=[],Lu=br.vertexLength,sh=0,_u=Je;sh<_u.length;sh+=1){var Bc=_u[sh];if(Bc.length!==0){Bc!==Je[0]&&$u.push(cu.length/2);for(var Nn=0;Nn=2&&f[$t-1].equals(f[$t-2]);)$t--;for(var on=0;on<$t-1&&f[on].equals(f[on+1]);)on++;if(!($t<(Je?3:2))){T==="bevel"&&(re=1.05);var Jn,br=this.overscaling<=16?122880/(512*this.overscaling):0,xi=this.segments.prepareSegment(10*$t,this.layoutVertexArray,this.indexArray),Di=void 0,Do=void 0,Ao=void 0,Vo=void 0;this.e1=this.e2=-1,Je&&(Vo=f[on].sub(Jn=f[$t-2])._unit()._perp());for(var Lo=on;Lo<$t;Lo++)if(!(Do=Lo===$t-1?Je?f[on+1]:void 0:f[Lo+1])||!f[Lo].equals(Do)){Vo&&(Ao=Vo),Jn&&(Di=Jn),Jn=f[Lo],Vo=Do?Do.sub(Jn)._unit()._perp():Ao;var co=(Ao=Ao||Vo).add(Vo);co.x===0&&co.y===0||co._unit();var Ys=Ao.x*Vo.x+Ao.y*Vo.y,Fa=co.x*Vo.x+co.y*Vo.y,xl=Fa!==0?1/Fa:1/0,cu=2*Math.sqrt(2-2*Fa),$u=Fa0;if($u&&Lo>on){var sh=Jn.dist(Di);if(sh>2*br){var _u=Jn.sub(Jn.sub(Di)._mult(br/sh)._round());this.updateDistance(Di,_u),this.addCurrentVertex(_u,Ao,0,0,xi),Di=_u}}var Bc=Di&&Do,Nn=Bc?T:Je?"butt":W;if(Bc&&Nn==="round"&&(xlre&&(Nn="bevel"),Nn==="bevel"&&(xl>2&&(Nn="flipbevel"),xl100)co=Vo.mult(-1);else{var sr=xl*Ao.add(Vo).mag()/Ao.sub(Vo).mag();co._perp()._mult(sr*(Lu?-1:1))}this.addCurrentVertex(Jn,co,0,0,xi),this.addCurrentVertex(Jn,co.mult(-1),0,0,xi)}else if(Nn==="bevel"||Nn==="fakeround"){var Zr=-Math.sqrt(xl*xl-1),hi=Lu?Zr:0,oo=Lu?0:Zr;if(Di&&this.addCurrentVertex(Jn,Ao,hi,oo,xi),Nn==="fakeround")for(var na=Math.round(180*cu/Math.PI/20),rl=1;rl2*br){var sd=Jn.add(Do.sub(Jn)._mult(br/Cc)._round());this.updateDistance(Jn,sd),this.addCurrentVertex(sd,Vo,0,0,xi),Jn=sd}}}}},mo.prototype.addCurrentVertex=function(f,_,T,W,re,de){de===void 0&&(de=!1);var Le=_.y*W-_.x,Je=-_.y-_.x*W;this.addHalfVertex(f,_.x+_.y*T,_.y-_.x*T,de,!1,T,re),this.addHalfVertex(f,Le,Je,de,!0,-W,re),this.distance>Zo/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(f,_,T,W,re,de))},mo.prototype.addHalfVertex=function(f,_,T,W,re,de,Le){var Je=.5*(this.lineClips?this.scaledDistance*(Zo-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((f.x<<1)+(W?1:0),(f.y<<1)+(re?1:0),Math.round(63*_)+128,Math.round(63*T)+128,1+(de===0?0:de<0?-1:1)|(63&Je)<<2,Je>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var $t=Le.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,$t),Le.primitiveLength++),re?this.e2=$t:this.e1=$t},mo.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},mo.prototype.updateDistance=function(f,_){this.distance+=f.dist(_),this.updateScaledDistance()},ih("LineBucket",mo,{omit:["layers","patternFeatures"]});var No=new Zf({"line-cap":new kh(Yt.layout_line["line-cap"]),"line-join":new Bh(Yt.layout_line["line-join"]),"line-miter-limit":new kh(Yt.layout_line["line-miter-limit"]),"line-round-limit":new kh(Yt.layout_line["line-round-limit"]),"line-sort-key":new Bh(Yt.layout_line["line-sort-key"])}),ws={paint:new Zf({"line-opacity":new Bh(Yt.paint_line["line-opacity"]),"line-color":new Bh(Yt.paint_line["line-color"]),"line-translate":new kh(Yt.paint_line["line-translate"]),"line-translate-anchor":new kh(Yt.paint_line["line-translate-anchor"]),"line-width":new Bh(Yt.paint_line["line-width"]),"line-gap-width":new Bh(Yt.paint_line["line-gap-width"]),"line-offset":new Bh(Yt.paint_line["line-offset"]),"line-blur":new Bh(Yt.paint_line["line-blur"]),"line-dasharray":new Oh(Yt.paint_line["line-dasharray"]),"line-pattern":new Jh(Yt.paint_line["line-pattern"]),"line-gradient":new Tf(Yt.paint_line["line-gradient"])}),layout:No},Ji=new(function(f){function _(){f.apply(this,arguments)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.possiblyEvaluate=function(T,W){return W=new gd(Math.floor(W.zoom),{now:W.now,fadeDuration:W.fadeDuration,zoomHistory:W.zoomHistory,transition:W.transition}),f.prototype.possiblyEvaluate.call(this,T,W)},_.prototype.evaluate=function(T,W,re,de){return W=ae({},W,{zoom:Math.floor(W.zoom)}),f.prototype.evaluate.call(this,T,W,re,de)},_}(Bh))(ws.paint.properties["line-width"].specification);Ji.useIntegerZoom=!0;var Ss=function(f){function _(T){f.call(this,T,ws),this.gradientVersion=0}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype._handleSpecialPaintPropertyUpdate=function(T){T==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Hl,this.gradientVersion=(this.gradientVersion+1)%g)},_.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},_.prototype.recalculate=function(T,W){f.prototype.recalculate.call(this,T,W),this.paint._values["line-floorwidth"]=Ji.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,T)},_.prototype.createBucket=function(T){return new mo(T)},_.prototype.queryRadius=function(T){var W=T,re=lo(Jf("line-width",this,W),Jf("line-gap-width",this,W)),de=Jf("line-offset",this,W);return re/2+Math.abs(de)+Op(this.paint.get("line-translate"))},_.prototype.queryIntersectsFeature=function(T,W,re,de,Le,Je,$t){var on=Vp(T,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Je.angle,$t),Jn=$t/2*lo(this.paint.get("line-width").evaluate(W,re),this.paint.get("line-gap-width").evaluate(W,re)),br=this.paint.get("line-offset").evaluate(W,re);return br&&(de=function(xi,Di){for(var Do=[],Ao=new k(0,0),Vo=0;Vo=3){for(var Lo=0;Lo0?_+2*f:f}var $i=Rd([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),wa=Rd([{name:"a_projected_pos",components:3,type:"Float32"}],4),ha=(Rd([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Rd([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Gs=(Rd([{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"}]),Rd([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),qt=Rd([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function ar(f,_,T){return f.sections.forEach(function(W){W.text=function(re,de,Le){var Je=de.layout.get("text-transform").evaluate(Le,{});return Je==="uppercase"?re=re.toLocaleUpperCase():Je==="lowercase"&&(re=re.toLocaleLowerCase()),Mp.applyArabicShaping&&(re=Mp.applyArabicShaping(re)),re}(W.text,_,T)}),f}Rd([{name:"triangle",components:3,type:"Uint16"}]),Rd([{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"}]),Rd([{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",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Rd([{type:"Float32",name:"offsetX"}]),Rd([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var oi={"!":"\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"},ms=function(f,_,T,W,re){var de,Le,Je=8*re-W-1,$t=(1<>1,Jn=-7,br=T?re-1:0,xi=T?-1:1,Di=f[_+br];for(br+=xi,de=Di&(1<<-Jn)-1,Di>>=-Jn,Jn+=Je;Jn>0;de=256*de+f[_+br],br+=xi,Jn-=8);for(Le=de&(1<<-Jn)-1,de>>=-Jn,Jn+=W;Jn>0;Le=256*Le+f[_+br],br+=xi,Jn-=8);if(de===0)de=1-on;else{if(de===$t)return Le?NaN:1/0*(Di?-1:1);Le+=Math.pow(2,W),de-=on}return(Di?-1:1)*Le*Math.pow(2,de-W)},Ls=function(f,_,T,W,re,de){var Le,Je,$t,on=8*de-re-1,Jn=(1<>1,xi=re===23?Math.pow(2,-24)-Math.pow(2,-77):0,Di=W?0:de-1,Do=W?1:-1,Ao=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(Je=isNaN(_)?1:0,Le=Jn):(Le=Math.floor(Math.log(_)/Math.LN2),_*($t=Math.pow(2,-Le))<1&&(Le--,$t*=2),(_+=Le+br>=1?xi/$t:xi*Math.pow(2,1-br))*$t>=2&&(Le++,$t/=2),Le+br>=Jn?(Je=0,Le=Jn):Le+br>=1?(Je=(_*$t-1)*Math.pow(2,re),Le+=br):(Je=_*Math.pow(2,br-1)*Math.pow(2,re),Le=0));re>=8;f[T+Di]=255&Je,Di+=Do,Je/=256,re-=8);for(Le=Le<0;f[T+Di]=255&Le,Di+=Do,Le/=256,on-=8);f[T+Di-Do]|=128*Ao},Aa=no;function no(f){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(f)?f:new Uint8Array(f||0),this.pos=0,this.type=0,this.length=this.buf.length}no.Varint=0,no.Fixed64=1,no.Bytes=2,no.Fixed32=5;var uo=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");function Ro(f){return f.type===no.Bytes?f.readVarint()+f.pos:f.pos+1}function Qs(f,_,T){return T?4294967296*_+(f>>>0):4294967296*(_>>>0)+(f>>>0)}function ra(f,_,T){var W=_<=16383?1:_<=2097151?2:_<=268435455?3:Math.floor(Math.log(_)/(7*Math.LN2));T.realloc(W);for(var re=T.pos-1;re>=f;re--)T.buf[re+W]=T.buf[re]}function Ke(f,_){for(var T=0;T>>8,f[T+2]=_>>>16,f[T+3]=_>>>24}function Ea(f,_){return(f[_]|f[_+1]<<8|f[_+2]<<16)+(f[_+3]<<24)}function Va(f,_,T){f===1&&T.readMessage(Nl,_)}function Nl(f,_,T){if(f===3){var W=T.readMessage(ja,{}),re=W.width,de=W.height,Le=W.left,Je=W.top,$t=W.advance;_.push({id:W.id,bitmap:new ym({width:re+6,height:de+6},W.bitmap),metrics:{width:re,height:de,left:Le,top:Je,advance:$t}})}}function ja(f,_,T){f===1?_.id=T.readVarint():f===2?_.bitmap=T.readBytes():f===3?_.width=T.readVarint():f===4?_.height=T.readVarint():f===5?_.left=T.readSVarint():f===6?_.top=T.readSVarint():f===7&&(_.advance=T.readVarint())}function vi(f){for(var _=0,T=0,W=0,re=f;W=0;xi--){var Di=Le[xi];if(!(br.w>Di.w||br.h>Di.h)){if(br.x=Di.x,br.y=Di.y,$t=Math.max($t,br.y+br.h),Je=Math.max(Je,br.x+br.w),br.w===Di.w&&br.h===Di.h){var Do=Le.pop();xi>3,de=this.pos;this.type=7&W,f(re,_,this),this.pos===de&&this.skip(W)}return _},readMessage:function(f,_){return this.readFields(f,_,this.readVarint()+this.pos)},readFixed32:function(){var f=la(this.buf,this.pos);return this.pos+=4,f},readSFixed32:function(){var f=Ea(this.buf,this.pos);return this.pos+=4,f},readFixed64:function(){var f=la(this.buf,this.pos)+4294967296*la(this.buf,this.pos+4);return this.pos+=8,f},readSFixed64:function(){var f=la(this.buf,this.pos)+4294967296*Ea(this.buf,this.pos+4);return this.pos+=8,f},readFloat:function(){var f=ms(this.buf,this.pos,!0,23,4);return this.pos+=4,f},readDouble:function(){var f=ms(this.buf,this.pos,!0,52,8);return this.pos+=8,f},readVarint:function(f){var _,T,W=this.buf;return _=127&(T=W[this.pos++]),T<128?_:(_|=(127&(T=W[this.pos++]))<<7,T<128?_:(_|=(127&(T=W[this.pos++]))<<14,T<128?_:(_|=(127&(T=W[this.pos++]))<<21,T<128?_:function(re,de,Le){var Je,$t,on=Le.buf;if(Je=(112&($t=on[Le.pos++]))>>4,$t<128||(Je|=(127&($t=on[Le.pos++]))<<3,$t<128)||(Je|=(127&($t=on[Le.pos++]))<<10,$t<128)||(Je|=(127&($t=on[Le.pos++]))<<17,$t<128)||(Je|=(127&($t=on[Le.pos++]))<<24,$t<128)||(Je|=(1&($t=on[Le.pos++]))<<31,$t<128))return Qs(re,Je,de);throw new Error("Expected varint not more than 10 bytes")}(_|=(15&(T=W[this.pos]))<<28,f,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var f=this.readVarint();return f%2==1?(f+1)/-2:f/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var f=this.readVarint()+this.pos,_=this.pos;return this.pos=f,f-_>=12&&uo?function(T,W,re){return uo.decode(T.subarray(W,re))}(this.buf,_,f):function(T,W,re){for(var de="",Le=W;Le239?4:Jn>223?3:Jn>191?2:1;if(Le+xi>re)break;xi===1?Jn<128&&(br=Jn):xi===2?(192&(Je=T[Le+1]))==128&&(br=(31&Jn)<<6|63&Je)<=127&&(br=null):xi===3?($t=T[Le+2],(192&(Je=T[Le+1]))==128&&(192&$t)==128&&((br=(15&Jn)<<12|(63&Je)<<6|63&$t)<=2047||br>=55296&&br<=57343)&&(br=null)):xi===4&&($t=T[Le+2],on=T[Le+3],(192&(Je=T[Le+1]))==128&&(192&$t)==128&&(192&on)==128&&((br=(15&Jn)<<18|(63&Je)<<12|(63&$t)<<6|63&on)<=65535||br>=1114112)&&(br=null)),br===null?(br=65533,xi=1):br>65535&&(br-=65536,de+=String.fromCharCode(br>>>10&1023|55296),br=56320|1023&br),de+=String.fromCharCode(br),Le+=xi}return de}(this.buf,_,f)},readBytes:function(){var f=this.readVarint()+this.pos,_=this.buf.subarray(this.pos,f);return this.pos=f,_},readPackedVarint:function(f,_){if(this.type!==no.Bytes)return f.push(this.readVarint(_));var T=Ro(this);for(f=f||[];this.pos127;);else if(_===no.Bytes)this.pos=this.readVarint()+this.pos;else if(_===no.Fixed32)this.pos+=4;else{if(_!==no.Fixed64)throw new Error("Unimplemented type: "+_);this.pos+=8}},writeTag:function(f,_){this.writeVarint(f<<3|_)},realloc:function(f){for(var _=this.length||16;_268435455||f<0?function(_,T){var W,re;if(_>=0?(W=_%4294967296|0,re=_/4294967296|0):(re=~(-_/4294967296),4294967295^(W=~(-_%4294967296))?W=W+1|0:(W=0,re=re+1|0)),_>=18446744073709552e3||_<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");T.realloc(10),function(de,Le,Je){Je.buf[Je.pos++]=127&de|128,de>>>=7,Je.buf[Je.pos++]=127&de|128,de>>>=7,Je.buf[Je.pos++]=127&de|128,de>>>=7,Je.buf[Je.pos++]=127&de|128,Je.buf[Je.pos]=127&(de>>>=7)}(W,0,T),function(de,Le){var Je=(7&de)<<4;Le.buf[Le.pos++]|=Je|((de>>>=3)?128:0),de&&(Le.buf[Le.pos++]=127&de|((de>>>=7)?128:0),de&&(Le.buf[Le.pos++]=127&de|((de>>>=7)?128:0),de&&(Le.buf[Le.pos++]=127&de|((de>>>=7)?128:0),de&&(Le.buf[Le.pos++]=127&de|((de>>>=7)?128:0),de&&(Le.buf[Le.pos++]=127&de)))))}(re,T)}(f,this):(this.realloc(4),this.buf[this.pos++]=127&f|(f>127?128:0),f<=127||(this.buf[this.pos++]=127&(f>>>=7)|(f>127?128:0),f<=127||(this.buf[this.pos++]=127&(f>>>=7)|(f>127?128:0),f<=127||(this.buf[this.pos++]=f>>>7&127))))},writeSVarint:function(f){this.writeVarint(f<0?2*-f-1:2*f)},writeBoolean:function(f){this.writeVarint(!!f)},writeString:function(f){f=String(f),this.realloc(4*f.length),this.pos++;var _=this.pos;this.pos=function(W,re,de){for(var Le,Je,$t=0;$t55295&&Le<57344){if(!Je){Le>56319||$t+1===re.length?(W[de++]=239,W[de++]=191,W[de++]=189):Je=Le;continue}if(Le<56320){W[de++]=239,W[de++]=191,W[de++]=189,Je=Le;continue}Le=Je-55296<<10|Le-56320|65536,Je=null}else Je&&(W[de++]=239,W[de++]=191,W[de++]=189,Je=null);Le<128?W[de++]=Le:(Le<2048?W[de++]=Le>>6|192:(Le<65536?W[de++]=Le>>12|224:(W[de++]=Le>>18|240,W[de++]=Le>>12&63|128),W[de++]=Le>>6&63|128),W[de++]=63&Le|128)}return de}(this.buf,f,this.pos);var T=this.pos-_;T>=128&&ra(_,T,this),this.pos=_-1,this.writeVarint(T),this.pos+=T},writeFloat:function(f){this.realloc(4),Ls(this.buf,f,this.pos,!0,23,4),this.pos+=4},writeDouble:function(f){this.realloc(8),Ls(this.buf,f,this.pos,!0,52,8),this.pos+=8},writeBytes:function(f){var _=f.length;this.writeVarint(_),this.realloc(_);for(var T=0;T<_;T++)this.buf[this.pos++]=f[T]},writeRawMessage:function(f,_){this.pos++;var T=this.pos;f(_,this);var W=this.pos-T;W>=128&&ra(T,W,this),this.pos=T-1,this.writeVarint(W),this.pos+=W},writeMessage:function(f,_,T){this.writeTag(f,no.Bytes),this.writeRawMessage(_,T)},writePackedVarint:function(f,_){_.length&&this.writeMessage(f,Ke,_)},writePackedSVarint:function(f,_){_.length&&this.writeMessage(f,Sa,_)},writePackedBoolean:function(f,_){_.length&&this.writeMessage(f,Ks,_)},writePackedFloat:function(f,_){_.length&&this.writeMessage(f,dl,_)},writePackedDouble:function(f,_){_.length&&this.writeMessage(f,Ul,_)},writePackedFixed32:function(f,_){_.length&&this.writeMessage(f,ma,_)},writePackedSFixed32:function(f,_){_.length&&this.writeMessage(f,ul,_)},writePackedFixed64:function(f,_){_.length&&this.writeMessage(f,Xs,_)},writePackedSFixed64:function(f,_){_.length&&this.writeMessage(f,so,_)},writeBytesField:function(f,_){this.writeTag(f,no.Bytes),this.writeBytes(_)},writeFixed32Field:function(f,_){this.writeTag(f,no.Fixed32),this.writeFixed32(_)},writeSFixed32Field:function(f,_){this.writeTag(f,no.Fixed32),this.writeSFixed32(_)},writeFixed64Field:function(f,_){this.writeTag(f,no.Fixed64),this.writeFixed64(_)},writeSFixed64Field:function(f,_){this.writeTag(f,no.Fixed64),this.writeSFixed64(_)},writeVarintField:function(f,_){this.writeTag(f,no.Varint),this.writeVarint(_)},writeSVarintField:function(f,_){this.writeTag(f,no.Varint),this.writeSVarint(_)},writeStringField:function(f,_){this.writeTag(f,no.Bytes),this.writeString(_)},writeFloatField:function(f,_){this.writeTag(f,no.Fixed32),this.writeFloat(_)},writeDoubleField:function(f,_){this.writeTag(f,no.Fixed64),this.writeDouble(_)},writeBooleanField:function(f,_){this.writeVarintField(f,!!_)}};var cs=function(f,_){var T=_.pixelRatio,W=_.version,re=_.stretchX,de=_.stretchY,Le=_.content;this.paddedRect=f,this.pixelRatio=T,this.stretchX=re,this.stretchY=de,this.content=Le,this.version=W},da={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};da.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},da.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},da.tlbr.get=function(){return this.tl.concat(this.br)},da.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(cs.prototype,da);var Ja=function(f,_){var T={},W={};this.haveRenderCallbacks=[];var re=[];this.addImages(f,T,re),this.addImages(_,W,re);var de=vi(re),Le=new um({width:de.w||1,height:de.h||1});for(var Je in f){var $t=f[Je],on=T[Je].paddedRect;um.copy($t.data,Le,{x:0,y:0},{x:on.x+1,y:on.y+1},$t.data)}for(var Jn in _){var br=_[Jn],xi=W[Jn].paddedRect,Di=xi.x+1,Do=xi.y+1,Ao=br.data.width,Vo=br.data.height;um.copy(br.data,Le,{x:0,y:0},{x:Di,y:Do},br.data),um.copy(br.data,Le,{x:0,y:Vo-1},{x:Di,y:Do-1},{width:Ao,height:1}),um.copy(br.data,Le,{x:0,y:0},{x:Di,y:Do+Vo},{width:Ao,height:1}),um.copy(br.data,Le,{x:Ao-1,y:0},{x:Di-1,y:Do},{width:1,height:Vo}),um.copy(br.data,Le,{x:0,y:0},{x:Di+Ao,y:Do},{width:1,height:Vo})}this.image=Le,this.iconPositions=T,this.patternPositions=W};Ja.prototype.addImages=function(f,_,T){for(var W in f){var re=f[W],de={x:0,y:0,w:re.data.width+2,h:re.data.height+2};T.push(de),_[W]=new cs(de,re),re.hasRenderCallback&&this.haveRenderCallbacks.push(W)}},Ja.prototype.patchUpdatedImages=function(f,_){for(var T in f.dispatchRenderCallbacks(this.haveRenderCallbacks),f.updatedImages)this.patchUpdatedImage(this.iconPositions[T],f.getImage(T),_),this.patchUpdatedImage(this.patternPositions[T],f.getImage(T),_)},Ja.prototype.patchUpdatedImage=function(f,_,T){if(f&&_&&f.version!==_.version){f.version=_.version;var W=f.tl;T.update(_.data,void 0,{x:W[0],y:W[1]})}},ih("ImagePosition",cs),ih("ImageAtlas",Ja);var vu={horizontal:1,vertical:2,horizontalOnly:3},Cu=function(){this.scale=1,this.fontStack="",this.imageName=null};Cu.forText=function(f,_){var T=new Cu;return T.scale=f||1,T.fontStack=_,T},Cu.forImage=function(f){var _=new Cu;return _.imageName=f,_};var Ba=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function Sc(f,_,T,W,re,de,Le,Je,$t,on,Jn,br,xi,Di,Do,Ao){var Vo,Lo=Ba.fromFeature(f,re);br===vu.vertical&&Lo.verticalizePunctuation();var co=Mp.processBidirectionalText,Ys=Mp.processStyledBidirectionalText;if(co&&Lo.sections.length===1){Vo=[];for(var Fa=0,xl=co(Lo.toString(),kc(Lo,on,de,_,W,Di,Do));Fa0&&Tr>Ih&&(Ih=Tr)}else{var li=na[Uc.fontStack],Mi=li&&li[H];if(Mi&&Mi.rect)ve=Mi.rect,te=Mi.metrics;else{var Co=oo[Uc.fontStack],jo=Co&&Co[H];if(!jo)continue;te=jo.metrics}F=24*(Cf-Uc.scale)}mt?(hi.verticalizable=!0,iu.push({glyph:H,imageName:We,x:ad,y:up+F,vertical:mt,scale:Uc.scale,fontStack:Uc.fontStack,sectionIndex:Fh,metrics:te,rect:ve}),ad+=bt*Uc.scale+sd):(iu.push({glyph:H,imageName:We,x:ad,y:up+F,vertical:mt,scale:Uc.scale,fontStack:Uc.fontStack,sectionIndex:Fh,metrics:te,rect:ve}),ad+=te.advance*Uc.scale+sd)}iu.length!==0&&(Pp=Math.max(ad-sd,Pp),Ac(iu,0,iu.length-1,Fd,Ih)),ad=0;var bs=ll*Cf+Ih;Sf.lineOffset=Math.max(Ih,vg),up+=bs,wd=Math.max(bs,wd),++as}else up+=ll,++as}var Ca,Oa=up- -17,sl=Ec(tu),jl=sl.horizontalAlign,_l=sl.verticalAlign;(function(Xl,Ku,ah,bd,zf,Ed,Dd,Xh,gf){var hd,Lh=(Ku-ah)*zf;hd=Ed!==Dd?-Xh*bd- -17:(-bd*gf+.5)*Dd;for(var ep=0,bf=Xl;ep=0&&W>=f&&Ml[this.text.charCodeAt(W)];W--)T--;this.text=this.text.substring(f,T),this.sectionIndex=this.sectionIndex.slice(f,T)},Ba.prototype.substring=function(f,_){var T=new Ba;return T.text=this.text.substring(f,_),T.sectionIndex=this.sectionIndex.slice(f,_),T.sections=this.sections,T},Ba.prototype.toString=function(){return this.text},Ba.prototype.getMaxScale=function(){var f=this;return this.sectionIndex.reduce(function(_,T){return Math.max(_,f.sections[T].scale)},0)},Ba.prototype.addTextSection=function(f,_){this.text+=f.text,this.sections.push(Cu.forText(f.scale,f.fontStack||_));for(var T=this.sections.length-1,W=0;W=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Ml={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Wc={};function Su(f,_,T,W,re,de){if(_.imageName){var Le=W[_.imageName];return Le?Le.displaySize[0]*_.scale*24/de+re:0}var Je=T[_.fontStack],$t=Je&&Je[f];return $t?$t.metrics.advance*_.scale+re:0}function Zc(f,_,T,W){var re=Math.pow(f-_,2);return W?f<_?re/2:2*re:re+Math.abs(T)*T}function hu(f,_,T){var W=0;return f===10&&(W-=1e4),T&&(W+=150),f!==40&&f!==65288||(W+=50),_!==41&&_!==65289||(W+=50),W}function Kh(f,_,T,W,re,de){for(var Le=null,Je=Zc(_,T,re,de),$t=0,on=W;$t=0,br=0,xi=0;xi-T/2;){if(--Le<0)return!1;Je-=f[Le].dist(de),de=f[Le]}Je+=f[Le].dist(f[Le+1]),Le++;for(var $t=[],on=0;JeW;)on-=$t.shift().angleDelta;if(on>re)return!1;Le++,Je+=Jn.dist(br)}return!0}function Rt(f){for(var _=0,T=0;Ton){var Do=(on-$t)/Di,Ao=fs(br.x,xi.x,Do),Vo=fs(br.y,xi.y,Do),Lo=new kd(Ao,Vo,xi.angleTo(br),Jn);return Lo._round(),!Le||_t(f,Lo,Je,Le,_)?Lo:void 0}$t+=Di}}function Jo(f,_,T,W,re,de,Le,Je,$t){var on=tr(W,de,Le),Jn=zi(W,re),br=Jn*Le,xi=f[0].x===0||f[0].x===$t||f[0].y===0||f[0].y===$t;return _-br<_/4&&(_=br+_/4),function Di(Do,Ao,Vo,Lo,co,Ys,Fa,xl,cu){for(var $u=Ys/2,Lu=Rt(Do),sh=0,_u=Ao-Vo,Bc=[],Nn=0;Nn=0&&rl=0&&$s=0&&_u+$u<=Lu){var ll=new kd(rl,$s,oo,Nn);ll._round(),Lo&&!_t(Do,ll,Ys,Lo,co)||Bc.push(ll)}}sh+=hi}return xl||Bc.length||Fa||(Bc=Di(Do,sh/2,Vo,Lo,co,Ys,Fa,!0,cu)),Bc}(f,xi?_/2*Je%_:(Jn/2+2*de)*Le*Je%_,_,on,T,br,xi,!1,$t)}function Pa(f,_,T,W,re){for(var de=[],Le=0;Le=W&&br.x>=W||(Jn.x>=W?Jn=new k(W,Jn.y+(W-Jn.x)/(br.x-Jn.x)*(br.y-Jn.y))._round():br.x>=W&&(br=new k(W,Jn.y+(W-Jn.x)/(br.x-Jn.x)*(br.y-Jn.y))._round()),Jn.y>=re&&br.y>=re||(Jn.y>=re?Jn=new k(Jn.x+(re-Jn.y)/(br.y-Jn.y)*(br.x-Jn.x),re)._round():br.y>=re&&(br=new k(Jn.x+(re-Jn.y)/(br.y-Jn.y)*(br.x-Jn.x),re)._round()),$t&&Jn.equals($t[$t.length-1])||de.push($t=[Jn]),$t.push(br)))))}return de}function Ti(f,_,T,W){var re=[],de=f.image,Le=de.pixelRatio,Je=de.paddedRect.w-2,$t=de.paddedRect.h-2,on=f.right-f.left,Jn=f.bottom-f.top,br=de.stretchX||[[0,Je]],xi=de.stretchY||[[0,$t]],Di=function(rl,$s){return rl+$s[1]-$s[0]},Do=br.reduce(Di,0),Ao=xi.reduce(Di,0),Vo=Je-Do,Lo=$t-Ao,co=0,Ys=Do,Fa=0,xl=Ao,cu=0,$u=Vo,Lu=0,sh=Lo;if(de.content&&W){var _u=de.content;co=os(br,0,_u[0]),Fa=os(xi,0,_u[1]),Ys=os(br,_u[0],_u[2]),xl=os(xi,_u[1],_u[3]),cu=_u[0]-co,Lu=_u[1]-Fa,$u=_u[2]-_u[0]-Ys,sh=_u[3]-_u[1]-xl}var Bc=function(rl,$s,ll,tu){var Rs=Go(rl.stretch-co,Ys,on,f.left),Cc=nl(rl.fixed-cu,$u,rl.stretch,Do),sd=Go($s.stretch-Fa,xl,Jn,f.top),Rh=nl($s.fixed-Lu,sh,$s.stretch,Ao),Ch=Go(ll.stretch-co,Ys,on,f.left),ad=nl(ll.fixed-cu,$u,ll.stretch,Do),up=Go(tu.stretch-Fa,xl,Jn,f.top),Pp=nl(tu.fixed-Lu,sh,tu.stretch,Ao),wd=new k(Rs,sd),Fd=new k(Ch,sd),as=new k(Ch,up),Ll=new k(Rs,up),ff=new k(Cc/Le,Rh/Le),pf=new k(ad/Le,Pp/Le),Cf=_*Math.PI/180;if(Cf){var vg=Math.sin(Cf),Sf=Math.cos(Cf),iu=[Sf,-vg,vg,Sf];wd._matMult(iu),Fd._matMult(iu),Ll._matMult(iu),as._matMult(iu)}var Ih=rl.stretch+rl.fixed,rf=$s.stretch+$s.fixed;return{tl:wd,tr:Fd,bl:Ll,br:as,tex:{x:de.paddedRect.x+1+Ih,y:de.paddedRect.y+1+rf,w:ll.stretch+ll.fixed-Ih,h:tu.stretch+tu.fixed-rf},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:ff,pixelOffsetBR:pf,minFontScaleX:$u/Le/on,minFontScaleY:sh/Le/Jn,isSDF:T}};if(W&&(de.stretchX||de.stretchY))for(var Nn=ua(br,Vo,Do),sr=ua(xi,Lo,Ao),Zr=0;Zr0&&(Di=Math.max(10,Di),this.circleDiameter=Di)}else{var Do=de.top*Le-Je,Ao=de.bottom*Le+Je,Vo=de.left*Le-Je,Lo=de.right*Le+Je,co=de.collisionPadding;if(co&&(Vo-=co[0]*Le,Do-=co[1]*Le,Lo+=co[2]*Le,Ao+=co[3]*Le),on){var Ys=new k(Vo,Do),Fa=new k(Lo,Do),xl=new k(Vo,Ao),cu=new k(Lo,Ao),$u=on*Math.PI/180;Ys._rotate($u),Fa._rotate($u),xl._rotate($u),cu._rotate($u),Vo=Math.min(Ys.x,Fa.x,xl.x,cu.x),Lo=Math.max(Ys.x,Fa.x,xl.x,cu.x),Do=Math.min(Ys.y,Fa.y,xl.y,cu.y),Ao=Math.max(Ys.y,Fa.y,xl.y,cu.y)}f.emplaceBack(_.x,_.y,Vo,Do,Lo,Ao,T,W,re)}this.boxEndIndex=f.length},Zi=function(f,_){if(f===void 0&&(f=[]),_===void 0&&(_=Io),this.data=f,this.length=this.data.length,this.compare=_,this.length>0)for(var T=(this.length>>1)-1;T>=0;T--)this._down(T)};function Io(f,_){return f<_?-1:f>_?1:0}function Us(f,_,T){_===void 0&&(_=1),T===void 0&&(T=!1);for(var W=1/0,re=1/0,de=-1/0,Le=-1/0,Je=f[0],$t=0;$tde)&&(de=on.x),(!$t||on.y>Le)&&(Le=on.y)}var Jn=Math.min(de-W,Le-re),br=Jn/2,xi=new Zi([],pl);if(Jn===0)return new k(W,re);for(var Di=W;DiAo.d||!Ao.d)&&(Ao=Lo,T&&console.log("found best %d after %d probes",Math.round(1e4*Lo.d)/1e4,Vo)),Lo.max-Ao.d<=_||(xi.push(new al(Lo.p.x-(br=Lo.h/2),Lo.p.y-br,br,f)),xi.push(new al(Lo.p.x+br,Lo.p.y-br,br,f)),xi.push(new al(Lo.p.x-br,Lo.p.y+br,br,f)),xi.push(new al(Lo.p.x+br,Lo.p.y+br,br,f)),Vo+=4)}return T&&(console.log("num probes: "+Vo),console.log("best distance: "+Ao.d)),Ao.p}function pl(f,_){return _.max-f.max}function al(f,_,T,W){this.p=new k(f,_),this.h=T,this.d=function(re,de){for(var Le=!1,Je=1/0,$t=0;$tre.y!=Do.y>re.y&&re.x<(Do.x-Di.x)*(re.y-Di.y)/(Do.y-Di.y)+Di.x&&(Le=!Le),Je=Math.min(Je,Hg(re,Di,Do))}return(Le?1:-1)*Math.sqrt(Je)}(this.p,W),this.max=this.d+this.h*Math.SQRT2}Zi.prototype.push=function(f){this.data.push(f),this.length++,this._up(this.length-1)},Zi.prototype.pop=function(){if(this.length!==0){var f=this.data[0],_=this.data.pop();return this.length--,this.length>0&&(this.data[0]=_,this._down(0)),f}},Zi.prototype.peek=function(){return this.data[0]},Zi.prototype._up=function(f){for(var _=this.data,T=this.compare,W=_[f];f>0;){var re=f-1>>1,de=_[re];if(T(W,de)>=0)break;_[f]=de,f=re}_[f]=W},Zi.prototype._down=function(f){for(var _=this.data,T=this.compare,W=this.length>>1,re=_[f];f=0)break;_[f]=Le,f=de}_[f]=re};var Ia=Number.POSITIVE_INFINITY;function va(f,_){return _[1]!==Ia?function(T,W,re){var de=0,Le=0;switch(W=Math.abs(W),re=Math.abs(re),T){case"top-right":case"top-left":case"top":Le=re-7;break;case"bottom-right":case"bottom-left":case"bottom":Le=7-re}switch(T){case"top-right":case"bottom-right":case"right":de=-W;break;case"top-left":case"bottom-left":case"left":de=W}return[de,Le]}(f,_[0],_[1]):function(T,W){var re=0,de=0;W<0&&(W=0);var Le=W/Math.sqrt(2);switch(T){case"top-right":case"top-left":de=Le-7;break;case"bottom-right":case"bottom-left":de=7-Le;break;case"bottom":de=7-W;break;case"top":de=W-7}switch(T){case"top-right":case"bottom-right":re=-Le;break;case"top-left":case"bottom-left":re=Le;break;case"left":re=W;break;case"right":re=-W}return[re,de]}(f,_[0])}function Ha(f){switch(f){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function _s(f,_,T,W,re,de,Le,Je,$t,on,Jn,br,xi,Di,Do){var Ao=function(Fa,xl,cu,$u,Lu,sh,_u,Bc){for(var Nn=$u.layout.get("text-rotate").evaluate(sh,{})*Math.PI/180,sr=[],Zr=0,hi=xl.positionedLines;Zr32640&&Te(f.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):Vo.kind==="composite"&&((Lo=[128*Di.compositeTextSizes[0].evaluate(Le,{},Do),128*Di.compositeTextSizes[1].evaluate(Le,{},Do)])[0]>32640||Lo[1]>32640)&&Te(f.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),f.addSymbols(f.text,Ao,Lo,Je,de,Le,on,_,$t.lineStartIndex,$t.lineLength,xi,Do);for(var co=0,Ys=Jn;co=0;Le--)if(W.dist(de[Le])0)&&(de.value.kind!=="constant"||de.value.value.length>0),on=Je.value.kind!=="constant"||!!Je.value.value||Object.keys(Je.parameters).length>0,Jn=re.get("symbol-sort-key");if(this.features=[],$t||on){for(var br=_.iconDependencies,xi=_.glyphDependencies,Di=_.availableImages,Do=new gd(this.zoom),Ao=0,Vo=f;Ao=0;for(var oo=0,na=Lu.sections;oo=0;Je--)de[Je]={x:_[Je].x,y:_[Je].y,tileUnitDistanceFromAnchor:re},Je>0&&(re+=_[Je-1].dist(_[Je]));for(var $t=0;$t<_.length;$t++){var on=de[$t];this.lineVertexArray.emplaceBack(on.x,on.y,on.tileUnitDistanceFromAnchor)}}return{lineStartIndex:T,lineLength:this.lineVertexArray.length-T}},Po.prototype.addSymbols=function(f,_,T,W,re,de,Le,Je,$t,on,Jn,br){for(var xi=f.indexArray,Di=f.layoutVertexArray,Do=f.segments.prepareSegment(4*_.length,Di,xi,this.canOverlap?de.sortKey:void 0),Ao=this.glyphOffsetArray.length,Vo=Do.vertexLength,Lo=this.allowVerticalPlacement&&Le===vu.vertical?Math.PI/2:0,co=de.text&&de.text.sections,Ys=0;Ys<_.length;Ys++){var Fa=_[Ys],xl=Fa.tl,cu=Fa.tr,$u=Fa.bl,Lu=Fa.br,sh=Fa.tex,_u=Fa.pixelOffsetTL,Bc=Fa.pixelOffsetBR,Nn=Fa.minFontScaleX,sr=Fa.minFontScaleY,Zr=Fa.glyphOffset,hi=Fa.isSDF,oo=Fa.sectionIndex,na=Do.vertexLength,rl=Zr[1];Cl(Di,Je.x,Je.y,xl.x,rl+xl.y,sh.x,sh.y,T,hi,_u.x,_u.y,Nn,sr),Cl(Di,Je.x,Je.y,cu.x,rl+cu.y,sh.x+sh.w,sh.y,T,hi,Bc.x,_u.y,Nn,sr),Cl(Di,Je.x,Je.y,$u.x,rl+$u.y,sh.x,sh.y+sh.h,T,hi,_u.x,Bc.y,Nn,sr),Cl(Di,Je.x,Je.y,Lu.x,rl+Lu.y,sh.x+sh.w,sh.y+sh.h,T,hi,Bc.x,Bc.y,Nn,sr),Ru(f.dynamicLayoutVertexArray,Je,Lo),xi.emplaceBack(na,na+1,na+2),xi.emplaceBack(na+1,na+2,na+3),Do.vertexLength+=4,Do.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(Zr[0]),Ys!==_.length-1&&oo===_[Ys+1].sectionIndex||f.programConfigurations.populatePaintArrays(Di.length,de,de.index,{},br,co&&co[oo])}f.placedSymbolArray.emplaceBack(Je.x,Je.y,Ao,this.glyphOffsetArray.length-Ao,Vo,$t,on,Je.segment,T?T[0]:0,T?T[1]:0,W[0],W[1],Le,0,!1,0,Jn)},Po.prototype._addCollisionDebugVertex=function(f,_,T,W,re,de){return _.emplaceBack(0,0),f.emplaceBack(T.x,T.y,W,re,Math.round(de.x),Math.round(de.y))},Po.prototype.addCollisionDebugVertices=function(f,_,T,W,re,de,Le){var Je=re.segments.prepareSegment(4,re.layoutVertexArray,re.indexArray),$t=Je.vertexLength,on=re.layoutVertexArray,Jn=re.collisionVertexArray,br=Le.anchorX,xi=Le.anchorY;this._addCollisionDebugVertex(on,Jn,de,br,xi,new k(f,_)),this._addCollisionDebugVertex(on,Jn,de,br,xi,new k(T,_)),this._addCollisionDebugVertex(on,Jn,de,br,xi,new k(T,W)),this._addCollisionDebugVertex(on,Jn,de,br,xi,new k(f,W)),Je.vertexLength+=4;var Di=re.indexArray;Di.emplaceBack($t,$t+1),Di.emplaceBack($t+1,$t+2),Di.emplaceBack($t+2,$t+3),Di.emplaceBack($t+3,$t),Je.primitiveLength+=4},Po.prototype.addDebugCollisionBoxes=function(f,_,T,W){for(var re=f;re<_;re++){var de=this.collisionBoxArray.get(re);this.addCollisionDebugVertices(de.x1,de.y1,de.x2,de.y2,W?this.textCollisionBox:this.iconCollisionBox,de.anchorPoint,T)}},Po.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new Vs(dn,Gs.members,tn),this.iconCollisionBox=new Vs(dn,Gs.members,tn);for(var f=0;f0},Po.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Po.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Po.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Po.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Po.prototype.addIndicesForPlacedSymbol=function(f,_){for(var T=f.placedSymbolArray.get(_),W=T.vertexStartIndex+4*T.numGlyphs,re=T.vertexStartIndex;re1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(f),this.sortedAngle=f,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var T=0,W=this.symbolInstanceIndexes;T=0&&Je.indexOf(de)===Le&&_.addIndicesForPlacedSymbol(_.text,de)}),re.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,re.verticalPlacedTextSymbolIndex),re.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,re.placedIconSymbolIndex),re.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,re.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},ih("SymbolBucket",Po,{omit:["layers","collisionBoxArray","features","compareText"]}),Po.MAX_GLYPHS=65535,Po.addDynamicAttributes=Ru;var ea=new Zf({"symbol-placement":new kh(Yt.layout_symbol["symbol-placement"]),"symbol-spacing":new kh(Yt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new kh(Yt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Bh(Yt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new kh(Yt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new kh(Yt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new kh(Yt.layout_symbol["icon-ignore-placement"]),"icon-optional":new kh(Yt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new kh(Yt.layout_symbol["icon-rotation-alignment"]),"icon-size":new Bh(Yt.layout_symbol["icon-size"]),"icon-text-fit":new kh(Yt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new kh(Yt.layout_symbol["icon-text-fit-padding"]),"icon-image":new Bh(Yt.layout_symbol["icon-image"]),"icon-rotate":new Bh(Yt.layout_symbol["icon-rotate"]),"icon-padding":new kh(Yt.layout_symbol["icon-padding"]),"icon-keep-upright":new kh(Yt.layout_symbol["icon-keep-upright"]),"icon-offset":new Bh(Yt.layout_symbol["icon-offset"]),"icon-anchor":new Bh(Yt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new kh(Yt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new kh(Yt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new kh(Yt.layout_symbol["text-rotation-alignment"]),"text-field":new Bh(Yt.layout_symbol["text-field"]),"text-font":new Bh(Yt.layout_symbol["text-font"]),"text-size":new Bh(Yt.layout_symbol["text-size"]),"text-max-width":new Bh(Yt.layout_symbol["text-max-width"]),"text-line-height":new kh(Yt.layout_symbol["text-line-height"]),"text-letter-spacing":new Bh(Yt.layout_symbol["text-letter-spacing"]),"text-justify":new Bh(Yt.layout_symbol["text-justify"]),"text-radial-offset":new Bh(Yt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new kh(Yt.layout_symbol["text-variable-anchor"]),"text-anchor":new Bh(Yt.layout_symbol["text-anchor"]),"text-max-angle":new kh(Yt.layout_symbol["text-max-angle"]),"text-writing-mode":new kh(Yt.layout_symbol["text-writing-mode"]),"text-rotate":new Bh(Yt.layout_symbol["text-rotate"]),"text-padding":new kh(Yt.layout_symbol["text-padding"]),"text-keep-upright":new kh(Yt.layout_symbol["text-keep-upright"]),"text-transform":new Bh(Yt.layout_symbol["text-transform"]),"text-offset":new Bh(Yt.layout_symbol["text-offset"]),"text-allow-overlap":new kh(Yt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new kh(Yt.layout_symbol["text-ignore-placement"]),"text-optional":new kh(Yt.layout_symbol["text-optional"])}),Vl={paint:new Zf({"icon-opacity":new Bh(Yt.paint_symbol["icon-opacity"]),"icon-color":new Bh(Yt.paint_symbol["icon-color"]),"icon-halo-color":new Bh(Yt.paint_symbol["icon-halo-color"]),"icon-halo-width":new Bh(Yt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Bh(Yt.paint_symbol["icon-halo-blur"]),"icon-translate":new kh(Yt.paint_symbol["icon-translate"]),"icon-translate-anchor":new kh(Yt.paint_symbol["icon-translate-anchor"]),"text-opacity":new Bh(Yt.paint_symbol["text-opacity"]),"text-color":new Bh(Yt.paint_symbol["text-color"],{runtimeType:gi,getOverride:function(f){return f.textColor},hasOverride:function(f){return!!f.textColor}}),"text-halo-color":new Bh(Yt.paint_symbol["text-halo-color"]),"text-halo-width":new Bh(Yt.paint_symbol["text-halo-width"]),"text-halo-blur":new Bh(Yt.paint_symbol["text-halo-blur"]),"text-translate":new kh(Yt.paint_symbol["text-translate"]),"text-translate-anchor":new kh(Yt.paint_symbol["text-translate-anchor"])}),layout:ea},lu=function(f){this.type=f.property.overrides?f.property.overrides.runtimeType:qr,this.defaultValue=f};lu.prototype.evaluate=function(f){if(f.formattedSection){var _=this.defaultValue.property.overrides;if(_&&_.hasOverride(f.formattedSection))return _.getOverride(f.formattedSection)}return f.feature&&f.featureState?this.defaultValue.evaluate(f.feature,f.featureState):this.defaultValue.property.specification.default},lu.prototype.eachChild=function(f){this.defaultValue.isConstant()||f(this.defaultValue.value._styleExpression.expression)},lu.prototype.outputDefined=function(){return!1},lu.prototype.serialize=function(){return null},ih("FormatSectionOverride",lu,{omit:["defaultValue"]});var Eu=function(f){function _(T){f.call(this,T,Vl)}return f&&(_.__proto__=f),(_.prototype=Object.create(f&&f.prototype)).constructor=_,_.prototype.recalculate=function(T,W){if(f.prototype.recalculate.call(this,T,W),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")),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 re=this.layout.get("text-writing-mode");if(re){for(var de=[],Le=0,Je=re;Le",targetMapId:W,sourceMapId:de.mapId})}}},Nf.prototype.receive=function(f){var _=f.data,T=_.id;if(T&&(!_.targetMapId||this.mapId===_.targetMapId))if(_.type===""){delete this.tasks[T];var W=this.cancelCallbacks[T];delete this.cancelCallbacks[T],W&&W()}else Pe()||_.mustQueue?(this.tasks[T]=_,this.taskQueue.push(T),this.invoker.trigger()):this.processTask(T,_)},Nf.prototype.process=function(){if(this.taskQueue.length){var f=this.taskQueue.shift(),_=this.tasks[f];delete this.tasks[f],this.taskQueue.length&&this.invoker.trigger(),_&&this.processTask(f,_)}},Nf.prototype.processTask=function(f,_){var T=this;if(_.type===""){var W=this.callbacks[f];delete this.callbacks[f],W&&(_.error?W(Oi(_.error)):W(null,Oi(_.data)))}else{var re=!1,de=Xt(this.globalScope)?void 0:[],Le=_.hasCallback?function(Jn,br){re=!0,delete T.cancelCallbacks[f],T.target.postMessage({id:f,type:"",sourceMapId:T.mapId,error:Jn?Oc(Jn):null,data:Oc(br,de)},de)}:function(Jn){re=!0},Je=null,$t=Oi(_.data);if(this.parent[_.type])Je=this.parent[_.type](_.sourceMapId,$t,Le);else if(this.parent.getWorkerSource){var on=_.type.split(".");Je=this.parent.getWorkerSource(_.sourceMapId,on[0],$t.source)[on[1]]($t,Le)}else Le(new Error("Could not find function "+_.type));!re&&Je&&Je.cancel&&(this.cancelCallbacks[f]=Je.cancel)}},Nf.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Df=function(f,_){f&&(_?this.setSouthWest(f).setNorthEast(_):f.length===4?this.setSouthWest([f[0],f[1]]).setNorthEast([f[2],f[3]]):this.setSouthWest(f[0]).setNorthEast(f[1]))};Df.prototype.setNorthEast=function(f){return this._ne=f instanceof lp?new lp(f.lng,f.lat):lp.convert(f),this},Df.prototype.setSouthWest=function(f){return this._sw=f instanceof lp?new lp(f.lng,f.lat):lp.convert(f),this},Df.prototype.extend=function(f){var _,T,W=this._sw,re=this._ne;if(f instanceof lp)_=f,T=f;else{if(!(f instanceof Df))return Array.isArray(f)?f.length===4||f.every(Array.isArray)?this.extend(Df.convert(f)):this.extend(lp.convert(f)):this;if(T=f._ne,!(_=f._sw)||!T)return this}return W||re?(W.lng=Math.min(_.lng,W.lng),W.lat=Math.min(_.lat,W.lat),re.lng=Math.max(T.lng,re.lng),re.lat=Math.max(T.lat,re.lat)):(this._sw=new lp(_.lng,_.lat),this._ne=new lp(T.lng,T.lat)),this},Df.prototype.getCenter=function(){return new lp((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Df.prototype.getSouthWest=function(){return this._sw},Df.prototype.getNorthEast=function(){return this._ne},Df.prototype.getNorthWest=function(){return new lp(this.getWest(),this.getNorth())},Df.prototype.getSouthEast=function(){return new lp(this.getEast(),this.getSouth())},Df.prototype.getWest=function(){return this._sw.lng},Df.prototype.getSouth=function(){return this._sw.lat},Df.prototype.getEast=function(){return this._ne.lng},Df.prototype.getNorth=function(){return this._ne.lat},Df.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Df.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Df.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Df.prototype.contains=function(f){var _=lp.convert(f),T=_.lng,W=_.lat,re=this._sw.lng<=T&&T<=this._ne.lng;return this._sw.lng>this._ne.lng&&(re=this._sw.lng>=T&&T>=this._ne.lng),this._sw.lat<=W&&W<=this._ne.lat&&re},Df.convert=function(f){return!f||f instanceof Df?f:new Df(f)};var lp=function(f,_){if(isNaN(f)||isNaN(_))throw new Error("Invalid LngLat object: ("+f+", "+_+")");if(this.lng=+f,this.lat=+_,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};lp.prototype.wrap=function(){return new lp(he(this.lng,-180,180),this.lat)},lp.prototype.toArray=function(){return[this.lng,this.lat]},lp.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},lp.prototype.distanceTo=function(f){var _=Math.PI/180,T=this.lat*_,W=f.lat*_,re=Math.sin(T)*Math.sin(W)+Math.cos(T)*Math.cos(W)*Math.cos((f.lng-this.lng)*_);return 63710088e-1*Math.acos(Math.min(re,1))},lp.prototype.toBounds=function(f){f===void 0&&(f=0);var _=360*f/40075017,T=_/Math.cos(Math.PI/180*this.lat);return new Df(new lp(this.lng-T,this.lat-_),new lp(this.lng+T,this.lat+_))},lp.convert=function(f){if(f instanceof lp)return f;if(Array.isArray(f)&&(f.length===2||f.length===3))return new lp(Number(f[0]),Number(f[1]));if(!Array.isArray(f)&&typeof f=="object"&&f!==null)return new lp(Number("lng"in f?f.lng:f.lon),Number(f.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 Qm=2*Math.PI*63710088e-1;function bp(f){return Qm*Math.cos(f*Math.PI/180)}function Hp(f){return(180+f)/360}function Pc(f){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+f*Math.PI/360)))/360}function cm(f,_){return f/bp(_)}function E0(f){return 360/Math.PI*Math.atan(Math.exp((180-360*f)*Math.PI/180))-90}var fc=function(f,_,T){T===void 0&&(T=0),this.x=+f,this.y=+_,this.z=+T};fc.fromLngLat=function(f,_){_===void 0&&(_=0);var T=lp.convert(f);return new fc(Hp(T.lng),Pc(T.lat),cm(_,T.lat))},fc.prototype.toLngLat=function(){return new lp(360*this.x-180,E0(this.y))},fc.prototype.toAltitude=function(){return this.z*bp(E0(this.y))},fc.prototype.meterInMercatorCoordinateUnits=function(){return 1/Qm*(f=E0(this.y),1/Math.cos(f*Math.PI/180));var f};var Fu=function(f,_,T){this.z=f,this.x=_,this.y=T,this.key=cg(0,f,f,_,T)};Fu.prototype.equals=function(f){return this.z===f.z&&this.x===f.x&&this.y===f.y},Fu.prototype.url=function(f,_){var T,W,re,de,Le,Je=(W=this.y,re=this.z,de=Ig(256*(T=this.x),256*(W=Math.pow(2,re)-W-1),re),Le=Ig(256*(T+1),256*(W+1),re),de[0]+","+de[1]+","+Le[0]+","+Le[1]),$t=function(on,Jn,br){for(var xi,Di="",Do=on;Do>0;Do--)Di+=(Jn&(xi=1<this.canonical.z?new Hm(f,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Hm(f,this.wrap,f,this.canonical.x>>_,this.canonical.y>>_)},Hm.prototype.calculateScaledKey=function(f,_){var T=this.canonical.z-f;return f>this.canonical.z?cg(this.wrap*+_,f,this.canonical.z,this.canonical.x,this.canonical.y):cg(this.wrap*+_,f,f,this.canonical.x>>T,this.canonical.y>>T)},Hm.prototype.isChildOf=function(f){if(f.wrap!==this.wrap)return!1;var _=this.canonical.z-f.canonical.z;return f.overscaledZ===0||f.overscaledZ>_&&f.canonical.y===this.canonical.y>>_},Hm.prototype.children=function(f){if(this.overscaledZ>=f)return[new Hm(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var _=this.canonical.z+1,T=2*this.canonical.x,W=2*this.canonical.y;return[new Hm(_,this.wrap,_,T,W),new Hm(_,this.wrap,_,T+1,W),new Hm(_,this.wrap,_,T,W+1),new Hm(_,this.wrap,_,T+1,W+1)]},Hm.prototype.isLessThan=function(f){return this.wrapf.wrap)&&(this.overscaledZf.overscaledZ)&&(this.canonical.xf.canonical.x)&&this.canonical.y=this.dim+1||_<-1||_>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(_+1)*this.stride+(f+1)},Ff.prototype._unpackMapbox=function(f,_,T){return(256*f*256+256*_+T)/10-1e4},Ff.prototype._unpackTerrarium=function(f,_,T){return 256*f+_+T/256-32768},Ff.prototype.getPixels=function(){return new um({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Ff.prototype.backfillBorder=function(f,_,T){if(this.dim!==f.dim)throw new Error("dem dimension mismatch");var W=_*this.dim,re=_*this.dim+this.dim,de=T*this.dim,Le=T*this.dim+this.dim;switch(_){case-1:W=re-1;break;case 1:re=W+1}switch(T){case-1:de=Le-1;break;case 1:Le=de+1}for(var Je=-_*this.dim,$t=-T*this.dim,on=de;on=0&&Jn[3]>=0&&Je.insert(Le,Jn[0],Jn[1],Jn[2],Jn[3])}},s0.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Yr.VectorTile(new Aa(this.rawTileData)).layers,this.sourceLayerCoder=new T0(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},s0.prototype.query=function(f,_,T,W){var re=this;this.loadVTLayers();for(var de=f.params||{},Le=8192/f.tileSize/f.scale,Je=fh(de.filter),$t=f.queryGeometry,on=f.queryPadding*Le,Jn=Ws($t),br=this.grid.query(Jn.minX-on,Jn.minY-on,Jn.maxX+on,Jn.maxY+on),xi=Ws(f.cameraQueryGeometry),Di=this.grid3D.query(xi.minX-on,xi.minY-on,xi.maxX+on,xi.maxY+on,function(Fa,xl,cu,$u){return function(Lu,sh,_u,Bc,Nn){for(var sr=0,Zr=Lu;sr=hi.x&&Nn>=hi.y)return!0}var oo=[new k(sh,_u),new k(sh,Nn),new k(Bc,Nn),new k(Bc,_u)];if(Lu.length>2){for(var na=0,rl=oo;na=0)return!0;return!1}(de,br)){var xi=this.sourceLayerCoder.decode(T),Di=this.vtLayers[xi].feature(W);if(re.needGeometry){var Do=ch(Di,!0);if(!re.filter(new gd(this.tileID.overscaledZ),Do,this.tileID.canonical))return}else if(!re.filter(new gd(this.tileID.overscaledZ),Di))return;for(var Ao=this.getId(Di,xi),Vo=0;VoW)re=!1;else if(_)if(this.expirationTime<_)re=!0;else{var de=this.expirationTime-_;de?this.expirationTime=W+Math.max(de,3e4):re=!0}else re=!0;re?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}},_g.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<Cn&&(f.getActor().send("enforceCacheSizeLimit",en),wr=0)},w.clamp=K,w.clearTileCache=function(f){var _=C.caches.delete("mapbox-tiles");f&&_.catch(f).then(function(){return f()})},w.clipLine=Pa,w.clone=function(f){var _=new df(16);return _[0]=f[0],_[1]=f[1],_[2]=f[2],_[3]=f[3],_[4]=f[4],_[5]=f[5],_[6]=f[6],_[7]=f[7],_[8]=f[8],_[9]=f[9],_[10]=f[10],_[11]=f[11],_[12]=f[12],_[13]=f[13],_[14]=f[14],_[15]=f[15],_},w.clone$1=Ae,w.clone$2=function(f){var _=new df(3);return _[0]=f[0],_[1]=f[1],_[2]=f[2],_},w.collisionCircleLayout=qt,w.config=ii,w.create=function(){var f=new df(16);return df!=Float32Array&&(f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[11]=0,f[12]=0,f[13]=0,f[14]=0),f[0]=1,f[5]=1,f[10]=1,f[15]=1,f},w.create$1=function(){var f=new df(9);return df!=Float32Array&&(f[1]=0,f[2]=0,f[3]=0,f[5]=0,f[6]=0,f[7]=0),f[0]=1,f[4]=1,f[8]=1,f},w.create$2=function(){var f=new df(4);return df!=Float32Array&&(f[1]=0,f[2]=0),f[0]=1,f[3]=1,f},w.createCommonjsModule=b,w.createExpression=jh,w.createLayout=Rd,w.createStyleLayer=function(f){return f.type==="custom"?new tg(f):new og[f.type](f)},w.cross=function(f,_,T){var W=_[0],re=_[1],de=_[2],Le=T[0],Je=T[1],$t=T[2];return f[0]=re*$t-de*Je,f[1]=de*Le-W*$t,f[2]=W*Je-re*Le,f},w.deepEqual=function f(_,T){if(Array.isArray(_)){if(!Array.isArray(T)||_.length!==T.length)return!1;for(var W=0;W<_.length;W++)if(!f(_[W],T[W]))return!1;return!0}if(typeof _=="object"&&_!==null&&T!==null){if(typeof T!="object"||Object.keys(_).length!==Object.keys(T).length)return!1;for(var re in _)if(!f(_[re],T[re]))return!1;return!0}return _===T},w.dot=function(f,_){return f[0]*_[0]+f[1]*_[1]+f[2]*_[2]},w.dot$1=function(f,_){return f[0]*_[0]+f[1]*_[1]+f[2]*_[2]+f[3]*_[3]},w.ease=O,w.emitValidationErrors=yc,w.endsWith=Ve,w.enforceCacheSizeLimit=function(f){lr(),Ot&&Ot.then(function(_){_.keys().then(function(T){for(var W=0;W0&&(de=1/Math.sqrt(de)),f[0]=_[0]*de,f[1]=_[1]*de,f[2]=_[2]*de,f},w.number=fs,w.offscreenCanvasSupported=Cr,w.ortho=function(f,_,T,W,re,de,Le){var Je=1/(_-T),$t=1/(W-re),on=1/(de-Le);return f[0]=-2*Je,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=-2*$t,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=2*on,f[11]=0,f[12]=(_+T)*Je,f[13]=(re+W)*$t,f[14]=(Le+de)*on,f[15]=1,f},w.parseGlyphPBF=function(f){return new Aa(f).readFields(Va,[])},w.pbf=Aa,w.performSymbolLayout=function(f,_,T,W,re,de,Le){f.createArrays(),f.tilePixelRatio=8192/(512*f.overscaling),f.compareText={},f.iconsNeedLinear=!1;var Je=f.layers[0].layout,$t=f.layers[0]._unevaluatedLayout._values,on={};if(f.textSizeData.kind==="composite"){var Jn=f.textSizeData,br=Jn.maxZoom;on.compositeTextSizes=[$t["text-size"].possiblyEvaluate(new gd(Jn.minZoom),Le),$t["text-size"].possiblyEvaluate(new gd(br),Le)]}if(f.iconSizeData.kind==="composite"){var xi=f.iconSizeData,Di=xi.maxZoom;on.compositeIconSizes=[$t["icon-size"].possiblyEvaluate(new gd(xi.minZoom),Le),$t["icon-size"].possiblyEvaluate(new gd(Di),Le)]}on.layoutTextSize=$t["text-size"].possiblyEvaluate(new gd(f.zoom+1),Le),on.layoutIconSize=$t["icon-size"].possiblyEvaluate(new gd(f.zoom+1),Le),on.textMaxSize=$t["text-size"].possiblyEvaluate(new gd(18));for(var Do=24*Je.get("text-line-height"),Ao=Je.get("text-rotation-alignment")==="map"&&Je.get("symbol-placement")!=="point",Vo=Je.get("text-keep-upright"),Lo=Je.get("text-size"),co=function(){var xl=Fa[Ys],cu=Je.get("text-font").evaluate(xl,{},Le).join(","),$u=Lo.evaluate(xl,{},Le),Lu=on.layoutTextSize.evaluate(xl,{},Le),sh=on.layoutIconSize.evaluate(xl,{},Le),_u={horizontal:{},vertical:void 0},Bc=xl.text,Nn=[0,0];if(Bc){var sr=Bc.toString(),Zr=24*Je.get("text-letter-spacing").evaluate(xl,{},Le),hi=function(Ll){for(var ff=0,pf=Ll;ff=8192||nh.y<0||nh.y>=8192||function(cc,id,Uh,Yd,tp,Td,Hf,Xf,Rg,Ef,$g,Cm,Im,A0,Cg,Ug,ny,yv,Xp,p0,Gm,Um,Ep,Lv,Ly){var Jv,R0,u1,Om,hv,My=cc.addToLineVertexArray(id,Uh),Ai=0,f_=0,Jy=0,b1=0,_y=-1,_v=-1,D0={},p_=Uo(""),x1=0,c1=0;if(Xf._unevaluatedLayout.getValue("text-radial-offset")===void 0?(x1=(Jv=Xf.layout.get("text-offset").evaluate(Gm,{},Lv).map(function(hm){return 24*hm}))[0],c1=Jv[1]):(x1=24*Xf.layout.get("text-radial-offset").evaluate(Gm,{},Lv),c1=Ia),cc.allowVerticalPlacement&&Yd.vertical){var Ry=Xf.layout.get("text-rotate").evaluate(Gm,{},Lv)+90;Om=new Zs(Rg,id,Ef,$g,Cm,Yd.vertical,Im,A0,Cg,Ry),Hf&&(hv=new Zs(Rg,id,Ef,$g,Cm,Hf,ny,yv,Cg,Ry))}if(tp){var $0=Xf.layout.get("icon-rotate").evaluate(Gm,{}),Q0=Xf.layout.get("icon-text-fit")!=="none",Qv=Ti(tp,$0,Ep,Q0),V0=Hf?Ti(Hf,$0,Ep,Q0):void 0;u1=new Zs(Rg,id,Ef,$g,Cm,tp,ny,yv,!1,$0),Ai=4*Qv.length;var Ev=cc.iconSizeData,k0=null;Ev.kind==="source"?(k0=[128*Xf.layout.get("icon-size").evaluate(Gm,{})])[0]>32640&&Te(cc.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):Ev.kind==="composite"&&((k0=[128*Um.compositeIconSizes[0].evaluate(Gm,{},Lv),128*Um.compositeIconSizes[1].evaluate(Gm,{},Lv)])[0]>32640||k0[1]>32640)&&Te(cc.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),cc.addSymbols(cc.icon,Qv,k0,p0,Xp,Gm,!1,id,My.lineStartIndex,My.lineLength,-1,Lv),_y=cc.icon.placedSymbolArray.length-1,V0&&(f_=4*V0.length,cc.addSymbols(cc.icon,V0,k0,p0,Xp,Gm,vu.vertical,id,My.lineStartIndex,My.lineLength,-1,Lv),_v=cc.icon.placedSymbolArray.length-1)}for(var F_ in Yd.horizontal){var B1=Yd.horizontal[F_];if(!R0){p_=Uo(B1.text);var Zv=Xf.layout.get("text-rotate").evaluate(Gm,{},Lv);R0=new Zs(Rg,id,Ef,$g,Cm,B1,Im,A0,Cg,Zv)}var Fv=B1.positionedLines.length===1;if(Jy+=_s(cc,id,B1,Td,Xf,Cg,Gm,Ug,My,Yd.vertical?vu.horizontal:vu.horizontalOnly,Fv?Object.keys(Yd.horizontal):[F_],D0,_y,Um,Lv),Fv)break}Yd.vertical&&(b1+=_s(cc,id,Yd.vertical,Td,Xf,Cg,Gm,Ug,My,vu.vertical,["vertical"],D0,_v,Um,Lv));var e1=R0?R0.boxStartIndex:cc.collisionBoxArray.length,w1=R0?R0.boxEndIndex:cc.collisionBoxArray.length,C1=Om?Om.boxStartIndex:cc.collisionBoxArray.length,by=Om?Om.boxEndIndex:cc.collisionBoxArray.length,B_=u1?u1.boxStartIndex:cc.collisionBoxArray.length,Bv=u1?u1.boxEndIndex:cc.collisionBoxArray.length,lb=hv?hv.boxStartIndex:cc.collisionBoxArray.length,ub=hv?hv.boxEndIndex:cc.collisionBoxArray.length,z1=-1,g_=function(hm,Gb){return hm&&hm.circleDiameter?Math.max(hm.circleDiameter,Gb):Gb};z1=g_(R0,z1),z1=g_(Om,z1),z1=g_(u1,z1);var Ix=(z1=g_(hv,z1))>-1?1:0;Ix&&(z1*=Ly/24),cc.glyphOffsetArray.length>=Po.MAX_GLYPHS&&Te("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Gm.sortKey!==void 0&&cc.addToSortKeyRanges(cc.symbolInstances.length,Gm.sortKey),cc.symbolInstances.emplaceBack(id.x,id.y,D0.right>=0?D0.right:-1,D0.center>=0?D0.center:-1,D0.left>=0?D0.left:-1,D0.vertical||-1,_y,_v,p_,e1,w1,C1,by,B_,Bv,lb,ub,Ef,Jy,b1,Ai,f_,Ix,0,Im,x1,c1,z1)}(Ll,nh,xu,pf,Cf,vg,F,Ll.layers[0],Ll.collisionBoxArray,ff.index,ff.sourceLayerIndex,Ll.index,mt,li,jo,rf,En,Mi,bs,ve,ff,Sf,Uc,Fh,iu)};if(Ca==="line")for(var _l=0,Xl=Pa(ff.geometry,0,0,8192,8192);_l1){var gf=Ho(Xh,Co,pf.vertical||We,Cf,24,Qt);gf&&jl(Xh,gf)}}else if(ff.type==="Polygon")for(var hd=0,Lh=rn(ff.geometry,0);hd=ns.maxzoom||ns.visibility!=="none"&&(C(Qi,this.zoom,vn),(Dn[ns.id]=ns.createBucket({index:Yt.bucketLayerIDs.length,layers:Qi,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Hr,sourceID:this.source})).populate(ci,Kn,this.tileID.canonical),Yt.bucketLayerIDs.push(Qi.map(function(is){return is.id})))}}}var Ur=w.mapObject(Kn.glyphDependencies,function(is){return Object.keys(is).map(Number)});Object.keys(Ur).length?$n.send("getGlyphs",{uid:this.uid,stacks:Ur},function(is,Jr){wn||(wn=is,Qn=Jr,ni.call(Dr))}):Qn={};var gs=Object.keys(Kn.iconDependencies);gs.length?$n.send("getImages",{icons:gs,source:this.source,tileID:this.tileID,type:"icons"},function(is,Jr){wn||(wn=is,Mr=Jr,ni.call(Dr))}):Mr={};var Gr=Object.keys(Kn.patternDependencies);function ni(){if(wn)return Ar(wn);if(Qn&&Mr&&Wi){var is=new k(Qn),Jr=new w.ImageAtlas(Mr,Wi);for(var bn in Dn){var Or=Dn[bn];Or instanceof w.SymbolBucket?(C(Or.layers,this.zoom,vn),w.performSymbolLayout(Or,Qn,is.positions,Mr,Jr.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Or.hasPattern&&(Or instanceof w.LineBucket||Or instanceof w.FillBucket||Or instanceof w.FillExtrusionBucket)&&(C(Or.layers,this.zoom,vn),Or.addFeatures(Kn,this.tileID.canonical,Jr.patternPositions))}this.status="done",Ar(null,{buckets:w.values(Dn).filter(function(qo){return!qo.isEmpty()}),featureIndex:Yt,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:is.image,imageAtlas:Jr,glyphMap:this.returnDependencies?Qn:null,iconMap:this.returnDependencies?Mr:null,glyphPositions:this.returnDependencies?is.positions:null})}}Gr.length?$n.send("getImages",{icons:Gr,source:this.source,tileID:this.tileID,type:"patterns"},function(is,Jr){wn||(wn=is,Wi=Jr,ni.call(Dr))}):Wi={},ni.call(this)};var A=function(Dt,Zt,vn,$n){this.actor=Dt,this.layerIndex=Zt,this.availableImages=vn,this.loadVectorData=$n||g,this.loading={},this.loaded={}};A.prototype.loadTile=function(Dt,Zt){var vn=this,$n=Dt.uid;this.loading||(this.loading={});var Ar=!!(Dt&&Dt.request&&Dt.request.collectResourceTiming)&&new w.RequestPerformance(Dt.request),Dr=this.loading[$n]=new R(Dt);Dr.abort=this.loadVectorData(Dt,function(dr,Yt){if(delete vn.loading[$n],dr||!Yt)return Dr.status="done",vn.loaded[$n]=Dr,Zt(dr);var wn=Yt.rawData,Qn={};Yt.expires&&(Qn.expires=Yt.expires),Yt.cacheControl&&(Qn.cacheControl=Yt.cacheControl);var Mr={};if(Ar){var Wi=Ar.finish();Wi&&(Mr.resourceTiming=JSON.parse(JSON.stringify(Wi)))}Dr.vectorTile=Yt.vectorTile,Dr.parse(Yt.vectorTile,vn.layerIndex,vn.availableImages,vn.actor,function(Dn,Kn){if(Dn||!Kn)return Zt(Dn);Zt(null,w.extend({rawTileData:wn.slice(0)},Kn,Qn,Mr))}),vn.loaded=vn.loaded||{},vn.loaded[$n]=Dr})},A.prototype.reloadTile=function(Dt,Zt){var vn=this,$n=this.loaded,Ar=Dt.uid,Dr=this;if($n&&$n[Ar]){var dr=$n[Ar];dr.showCollisionBoxes=Dt.showCollisionBoxes;var Yt=function(wn,Qn){var Mr=dr.reloadCallback;Mr&&(delete dr.reloadCallback,dr.parse(dr.vectorTile,Dr.layerIndex,vn.availableImages,Dr.actor,Mr)),Zt(wn,Qn)};dr.status==="parsing"?dr.reloadCallback=Yt:dr.status==="done"&&(dr.vectorTile?dr.parse(dr.vectorTile,this.layerIndex,this.availableImages,this.actor,Yt):Yt())}},A.prototype.abortTile=function(Dt,Zt){var vn=this.loading,$n=Dt.uid;vn&&vn[$n]&&vn[$n].abort&&(vn[$n].abort(),delete vn[$n]),Zt()},A.prototype.removeTile=function(Dt,Zt){var vn=this.loaded,$n=Dt.uid;vn&&vn[$n]&&delete vn[$n],Zt()};var O=w.window.ImageBitmap,K=function(){this.loaded={}};function he(Dt,Zt){if(Dt.length!==0){ae(Dt[0],Zt);for(var vn=1;vn=Math.abs(Yt)?vn-wn+Yt:Yt-wn+vn,vn=wn}vn+$n>=0!=!!Zt&&Dt.reverse()}K.prototype.loadTile=function(Dt,Zt){var vn=Dt.uid,$n=Dt.encoding,Ar=Dt.rawImageData,Dr=O&&Ar instanceof O?this.getImageData(Ar):Ar,dr=new w.DEMData(vn,Dr,$n);this.loaded=this.loaded||{},this.loaded[vn]=dr,Zt(null,dr)},K.prototype.getImageData=function(Dt){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(Dt.width,Dt.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=Dt.width,this.offscreenCanvas.height=Dt.height,this.offscreenCanvasContext.drawImage(Dt,0,0,Dt.width,Dt.height);var Zt=this.offscreenCanvasContext.getImageData(-1,-1,Dt.width+2,Dt.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new w.RGBAImage({width:Zt.width,height:Zt.height},Zt.data)},K.prototype.removeTile=function(Dt){var Zt=this.loaded,vn=Dt.uid;Zt&&Zt[vn]&&delete Zt[vn]};var fe=w.vectorTile.VectorTileFeature.prototype.toGeoJSON,xe=function(Dt){this._feature=Dt,this.extent=w.EXTENT,this.type=Dt.type,this.properties=Dt.tags,"id"in Dt&&!isNaN(Dt.id)&&(this.id=parseInt(Dt.id,10))};xe.prototype.loadGeometry=function(){if(this._feature.type===1){for(var Dt=[],Zt=0,vn=this._feature.geometry;Zt>31}function Be(Dt,Zt){for(var vn=Dt.loadGeometry(),$n=Dt.type,Ar=0,Dr=0,dr=vn.length,Yt=0;Yt>1;(function Hr(ci,gi,mi,Bi,Nr,Kr){for(;Nr>Bi;){if(Nr-Bi>600){var Qi=Nr-Bi+1,ns=mi-Bi+1,Ur=Math.log(Qi),gs=.5*Math.exp(2*Ur/3),Gr=.5*Math.sqrt(Ur*gs*(Qi-gs)/Qi)*(ns-Qi/2<0?-1:1);Hr(ci,gi,mi,Math.max(Bi,Math.floor(mi-ns*gs/Qi+Gr)),Math.min(Nr,Math.floor(mi+(Qi-ns)*gs/Qi+Gr)),Kr)}var ni=gi[2*mi+Kr],is=Bi,Jr=Nr;for(St(ci,gi,Bi,mi),gi[2*Nr+Kr]>ni&&St(ci,gi,Bi,Nr);isni;)Jr--}gi[2*Bi+Kr]===ni?St(ci,gi,Bi,Jr):St(ci,gi,++Jr,Nr),Jr<=mi&&(Bi=Jr+1),mi<=Jr&&(Nr=Jr-1)}})(Mr,Wi,yi,Kn,nr,qr%2),Qn(Mr,Wi,Dn,Kn,yi-1,qr+1),Qn(Mr,Wi,Dn,yi+1,nr,qr+1)}})(dr,Yt,$n,0,dr.length-1,0)};Mt.prototype.range=function(Dt,Zt,vn,$n){return function(Ar,Dr,dr,Yt,wn,Qn,Mr){for(var Wi,Dn,Kn=[0,Ar.length-1,0],nr=[];Kn.length;){var qr=Kn.pop(),yi=Kn.pop(),Hr=Kn.pop();if(yi-Hr<=Mr)for(var ci=Hr;ci<=yi;ci++)Dn=Dr[2*ci+1],(Wi=Dr[2*ci])>=dr&&Wi<=wn&&Dn>=Yt&&Dn<=Qn&&nr.push(Ar[ci]);else{var gi=Math.floor((Hr+yi)/2);Dn=Dr[2*gi+1],(Wi=Dr[2*gi])>=dr&&Wi<=wn&&Dn>=Yt&&Dn<=Qn&&nr.push(Ar[gi]);var mi=(qr+1)%2;(qr===0?dr<=Wi:Yt<=Dn)&&(Kn.push(Hr),Kn.push(gi-1),Kn.push(mi)),(qr===0?wn>=Wi:Qn>=Dn)&&(Kn.push(gi+1),Kn.push(yi),Kn.push(mi))}}return nr}(this.ids,this.coords,Dt,Zt,vn,$n,this.nodeSize)},Mt.prototype.within=function(Dt,Zt,vn){return function($n,Ar,Dr,dr,Yt,wn){for(var Qn=[0,$n.length-1,0],Mr=[],Wi=Yt*Yt;Qn.length;){var Dn=Qn.pop(),Kn=Qn.pop(),nr=Qn.pop();if(Kn-nr<=wn)for(var qr=nr;qr<=Kn;qr++)wt(Ar[2*qr],Ar[2*qr+1],Dr,dr)<=Wi&&Mr.push($n[qr]);else{var yi=Math.floor((nr+Kn)/2),Hr=Ar[2*yi],ci=Ar[2*yi+1];wt(Hr,ci,Dr,dr)<=Wi&&Mr.push($n[yi]);var gi=(Dn+1)%2;(Dn===0?Dr-Yt<=Hr:dr-Yt<=ci)&&(Qn.push(nr),Qn.push(yi-1),Qn.push(gi)),(Dn===0?Dr+Yt>=Hr:dr+Yt>=ci)&&(Qn.push(yi+1),Qn.push(Kn),Qn.push(gi))}}return Mr}(this.ids,this.coords,Dt,Zt,vn,this.nodeSize)};var hn={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(Dt){return Dt}},un=function(Dt){this.options=Is(Object.create(hn),Dt),this.trees=new Array(this.options.maxZoom+1)};function Sr(Dt,Zt,vn,$n,Ar){return{x:Dt,y:Zt,zoom:1/0,id:vn,parentId:-1,numPoints:$n,properties:Ar}}function ii(Dt,Zt){var vn=Dt.geometry.coordinates,$n=vn[1];return{x:eo(vn[0]),y:ti($n),zoom:1/0,index:Zt,parentId:-1}}function Ii(Dt){return{type:"Feature",id:Dt.id,properties:Ni(Dt),geometry:{type:"Point",coordinates:[($n=Dt.x,360*($n-.5)),(Zt=Dt.y,vn=(180-360*Zt)*Math.PI/180,360*Math.atan(Math.exp(vn))/Math.PI-90)]}};var Zt,vn,$n}function Ni(Dt){var Zt=Dt.numPoints,vn=Zt>=1e4?Math.round(Zt/1e3)+"k":Zt>=1e3?Math.round(Zt/100)/10+"k":Zt;return Is(Is({},Dt.properties),{cluster:!0,cluster_id:Dt.id,point_count:Zt,point_count_abbreviated:vn})}function eo(Dt){return Dt/360+.5}function ti(Dt){var Zt=Math.sin(Dt*Math.PI/180),vn=.5-.25*Math.log((1+Zt)/(1-Zt))/Math.PI;return vn<0?0:vn>1?1:vn}function Is(Dt,Zt){for(var vn in Zt)Dt[vn]=Zt[vn];return Dt}function Ns(Dt){return Dt.x}function Se(Dt){return Dt.y}function Xi(Dt,Zt,vn,$n,Ar,Dr){var dr=Ar-vn,Yt=Dr-$n;if(dr!==0||Yt!==0){var wn=((Dt-vn)*dr+(Zt-$n)*Yt)/(dr*dr+Yt*Yt);wn>1?(vn=Ar,$n=Dr):wn>0&&(vn+=dr*wn,$n+=Yt*wn)}return(dr=Dt-vn)*dr+(Yt=Zt-$n)*Yt}function Yi(Dt,Zt,vn,$n){var Ar={id:Dt===void 0?null:Dt,type:Zt,geometry:vn,tags:$n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Dr){var dr=Dr.geometry,Yt=Dr.type;if(Yt==="Point"||Yt==="MultiPoint"||Yt==="LineString")fo(Dr,dr);else if(Yt==="Polygon"||Yt==="MultiLineString")for(var wn=0;wn0&&(dr+=$n?(Ar*Qn-wn*Dr)/2:Math.sqrt(Math.pow(wn-Ar,2)+Math.pow(Qn-Dr,2))),Ar=wn,Dr=Qn}var Mr=Zt.length-3;Zt[2]=1,function Wi(Dn,Kn,nr,qr){for(var yi,Hr=qr,ci=nr-Kn>>1,gi=nr-Kn,mi=Dn[Kn],Bi=Dn[Kn+1],Nr=Dn[nr],Kr=Dn[nr+1],Qi=Kn+3;QiHr)yi=Qi,Hr=ns;else if(ns===Hr){var Ur=Math.abs(Qi-ci);Urqr&&(yi-Kn>3&&Wi(Dn,Kn,yi,qr),Dn[yi+2]=Hr,nr-yi>3&&Wi(Dn,yi,nr,qr))}(Zt,0,Mr,vn),Zt[Mr+2]=1,Zt.size=Math.abs(dr),Zt.start=0,Zt.end=Zt.size}function it(Dt,Zt,vn,$n){for(var Ar=0;Ar1?1:vn}function Pn(Dt,Zt,vn,$n,Ar,Dr,dr,Yt){if($n/=Zt,Dr>=(vn/=Zt)&&dr<$n)return Dt;if(dr=$n)return null;for(var wn=[],Qn=0;Qn=vn&&nr<$n)wn.push(Mr);else if(!(nr=$n)){var qr=[];if(Dn==="Point"||Dn==="MultiPoint")fr(Wi,qr,vn,$n,Ar);else if(Dn==="LineString")In(Wi,qr,vn,$n,Ar,!1,Yt.lineMetrics);else if(Dn==="MultiLineString")Ut(Wi,qr,vn,$n,Ar,!1);else if(Dn==="Polygon")Ut(Wi,qr,vn,$n,Ar,!0);else if(Dn==="MultiPolygon")for(var yi=0;yi=vn&&dr<=$n&&(Zt.push(Dt[Dr]),Zt.push(Dt[Dr+1]),Zt.push(Dt[Dr+2]))}}function In(Dt,Zt,vn,$n,Ar,Dr,dr){for(var Yt,wn,Qn=mn(Dt),Mr=Ar===0?Cn:lr,Wi=Dt.start,Dn=0;Dnvn&&(wn=Mr(Qn,Kn,nr,yi,Hr,vn),dr&&(Qn.start=Wi+Yt*wn)):ci>$n?gi<$n&&(wn=Mr(Qn,Kn,nr,yi,Hr,$n),dr&&(Qn.start=Wi+Yt*wn)):en(Qn,Kn,nr,qr),gi=vn&&(wn=Mr(Qn,Kn,nr,yi,Hr,vn),mi=!0),gi>$n&&ci<=$n&&(wn=Mr(Qn,Kn,nr,yi,Hr,$n),mi=!0),!Dr&&mi&&(dr&&(Qn.end=Wi+Yt*wn),Zt.push(Qn),Qn=mn(Dt)),dr&&(Wi+=Yt)}var Bi=Dt.length-3;Kn=Dt[Bi],nr=Dt[Bi+1],qr=Dt[Bi+2],(ci=Ar===0?Kn:nr)>=vn&&ci<=$n&&en(Qn,Kn,nr,qr),Bi=Qn.length-3,Dr&&Bi>=3&&(Qn[Bi]!==Qn[0]||Qn[Bi+1]!==Qn[1])&&en(Qn,Qn[0],Qn[1],Qn[2]),Qn.length&&Zt.push(Qn)}function mn(Dt){var Zt=[];return Zt.size=Dt.size,Zt.start=Dt.start,Zt.end=Dt.end,Zt}function Ut(Dt,Zt,vn,$n,Ar,Dr){for(var dr=0;drdr.maxX&&(dr.maxX=Mr),Wi>dr.maxY&&(dr.maxY=Wi)}return dr}function vo(Dt,Zt,vn,$n){var Ar=Zt.geometry,Dr=Zt.type,dr=[];if(Dr==="Point"||Dr==="MultiPoint")for(var Yt=0;Yt0&&Zt.size<(Ar?dr:$n))vn.numPoints+=Zt.length/3;else{for(var Yt=[],wn=0;wndr)&&(vn.numSimplified++,Yt.push(Zt[wn]),Yt.push(Zt[wn+1])),vn.numPoints++;Ar&&function(Qn,Mr){for(var Wi=0,Dn=0,Kn=Qn.length,nr=Kn-2;Dn0===Mr)for(Dn=0,Kn=Qn.length;Dn24)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 $n=function(Ar,Dr){var dr=[];if(Ar.type==="FeatureCollection")for(var Yt=0;Yt=$n;Qn--){var Mr=+Date.now();Yt=this._cluster(Yt,Qn),this.trees[Qn]=new Mt(Yt,Ns,Se,Dr,Float32Array),vn&&console.log("z%d: %d clusters in %dms",Qn,Yt.length,+Date.now()-Mr)}return vn&&console.timeEnd("total time"),this},un.prototype.getClusters=function(Dt,Zt){var vn=((Dt[0]+180)%360+360)%360-180,$n=Math.max(-90,Math.min(90,Dt[1])),Ar=Dt[2]===180?180:((Dt[2]+180)%360+360)%360-180,Dr=Math.max(-90,Math.min(90,Dt[3]));if(Dt[2]-Dt[0]>=360)vn=-180,Ar=180;else if(vn>Ar){var dr=this.getClusters([vn,$n,180,Dr],Zt),Yt=this.getClusters([-180,$n,Ar,Dr],Zt);return dr.concat(Yt)}for(var wn=this.trees[this._limitZoom(Zt)],Qn=[],Mr=0,Wi=wn.range(eo(vn),ti(Dr),eo(Ar),ti($n));MrZt&&(Dn+=qr.numPoints||1)}if(Dn>=Dr){for(var yi=wn.x*Wi,Hr=wn.y*Wi,ci=Ar&&Wi>1?this._map(wn,!0):null,gi=(Yt<<5)+(Zt+1)+this.points.length,mi=0,Bi=Mr;mi1)for(var Qi=0,ns=Mr;Qi>5},un.prototype._getOriginZoom=function(Dt){return(Dt-this.points.length)%32},un.prototype._map=function(Dt,Zt){if(Dt.numPoints)return Zt?Is({},Dt.properties):Dt.properties;var vn=this.points[Dt.index].properties,$n=this.options.map(vn);return Zt&&$n===vn?Is({},$n):$n},ro.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},ro.prototype.splitTile=function(Dt,Zt,vn,$n,Ar,Dr,dr){for(var Yt=[Dt,Zt,vn,$n],wn=this.options,Qn=wn.debug;Yt.length;){$n=Yt.pop(),vn=Yt.pop(),Zt=Yt.pop(),Dt=Yt.pop();var Mr=1<1&&console.time("creation"),Dn=this.tiles[Wi]=Ei(Dt,Zt,vn,$n,wn),this.tileCoords.push({z:Zt,x:vn,y:$n}),Qn)){Qn>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Zt,vn,$n,Dn.numFeatures,Dn.numPoints,Dn.numSimplified),console.timeEnd("creation"));var Kn="z"+Zt;this.stats[Kn]=(this.stats[Kn]||0)+1,this.total++}if(Dn.source=Dt,Ar){if(Zt===wn.maxZoom||Zt===Ar)continue;var nr=1<1&&console.time("clipping");var qr,yi,Hr,ci,gi,mi,Bi=.5*wn.buffer/wn.extent,Nr=.5-Bi,Kr=.5+Bi,Qi=1+Bi;qr=yi=Hr=ci=null,gi=Pn(Dt,Mr,vn-Bi,vn+Kr,0,Dn.minX,Dn.maxX,wn),mi=Pn(Dt,Mr,vn+Nr,vn+Qi,0,Dn.minX,Dn.maxX,wn),Dt=null,gi&&(qr=Pn(gi,Mr,$n-Bi,$n+Kr,1,Dn.minY,Dn.maxY,wn),yi=Pn(gi,Mr,$n+Nr,$n+Qi,1,Dn.minY,Dn.maxY,wn),gi=null),mi&&(Hr=Pn(mi,Mr,$n-Bi,$n+Kr,1,Dn.minY,Dn.maxY,wn),ci=Pn(mi,Mr,$n+Nr,$n+Qi,1,Dn.minY,Dn.maxY,wn),mi=null),Qn>1&&console.timeEnd("clipping"),Yt.push(qr||[],Zt+1,2*vn,2*$n),Yt.push(yi||[],Zt+1,2*vn,2*$n+1),Yt.push(Hr||[],Zt+1,2*vn+1,2*$n),Yt.push(ci||[],Zt+1,2*vn+1,2*$n+1)}}},ro.prototype.getTile=function(Dt,Zt,vn){var $n=this.options,Ar=$n.extent,Dr=$n.debug;if(Dt<0||Dt>24)return null;var dr=1<1&&console.log("drilling down to z%d-%d-%d",Dt,Zt,vn);for(var wn,Qn=Dt,Mr=Zt,Wi=vn;!wn&&Qn>0;)Qn--,Mr=Math.floor(Mr/2),Wi=Math.floor(Wi/2),wn=this.tiles[qi(Qn,Mr,Wi)];return wn&&wn.source?(Dr>1&&console.log("found parent tile z%d-%d-%d",Qn,Mr,Wi),Dr>1&&console.time("drilling down"),this.splitTile(wn.source,Qn,Mr,Wi,Dt,Zt,vn),Dr>1&&console.timeEnd("drilling down"),this.tiles[Yt]?wr(this.tiles[Yt],Ar):null):null};var xn=function(Dt){function Zt(vn,$n,Ar,Dr){Dt.call(this,vn,$n,Ar,bo),Dr&&(this.loadGeoJSON=Dr)}return Dt&&(Zt.__proto__=Dt),(Zt.prototype=Object.create(Dt&&Dt.prototype)).constructor=Zt,Zt.prototype.loadData=function(vn,$n){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=$n,this._pendingLoadDataParams=vn,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},Zt.prototype._loadData=function(){var vn=this;if(this._pendingCallback&&this._pendingLoadDataParams){var $n=this._pendingCallback,Ar=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var Dr=!!(Ar&&Ar.request&&Ar.request.collectResourceTiming)&&new w.RequestPerformance(Ar.request);this.loadGeoJSON(Ar,function(dr,Yt){if(dr||!Yt)return $n(dr);if(typeof Yt!="object")return $n(new Error("Input data given to '"+Ar.source+"' is not a valid GeoJSON object."));(function Dn(Kn,nr){var qr,yi=Kn&&Kn.type;if(yi==="FeatureCollection")for(qr=0;qr=0?0:G.button},B.remove=function(G){G.parentNode&&G.parentNode.removeChild(G)};var ae=function(G){function J(){G.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new w.RGBAImage({width:1,height:1}),this.dirty=!0}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.prototype.isLoaded=function(){return this.loaded},J.prototype.setLoaded=function(Q){if(this.loaded!==Q&&(this.loaded=Q,Q)){for(var ce=0,He=this.requestors;ce=0?1.2:1))}function Qe(G,J,Q,ce,He,Et,Nt){for(var yn=0;yn65535)yr(new Error("glyphs > 65535 not supported"));else if(Ri.ranges[Fo])yr(null,{stack:Sn,id:_i,glyph:Ki});else{var Wo=Ri.requests[Fo];Wo||(Wo=Ri.requests[Fo]=[],pt.loadGlyphRange(Sn,Fo,Q.url,Q.requestManager,function(Ui,Uo){if(Uo){for(var Hs in Uo)Q._doesCharSupportLocalGlyph(+Hs)||(Ri.glyphs[+Hs]=Uo[+Hs]);Ri.ranges[Fo]=!0}for(var tl=0,qa=Wo;tl1&&(yn=G[++Nt]);var Sn=Math.abs(yr-yn.left),_i=Math.abs(yr-yn.right),Ri=Math.min(Sn,_i),Ki=void 0,Fo=He/Q*(ce+1);if(yn.isDash){var Wo=ce-Math.abs(Fo);Ki=Math.sqrt(Ri*Ri+Wo*Wo)}else Ki=ce-Math.sqrt(Ri*Ri+Fo*Fo);this.data[Et+yr]=Math.max(0,Math.min(255,Ki+128))}},Te.prototype.addRegularDash=function(G){for(var J=G.length-1;J>=0;--J){var Q=G[J],ce=G[J+1];Q.zeroLength?G.splice(J,1):ce&&ce.isDash===Q.isDash&&(ce.left=Q.left,G.splice(J,1))}var He=G[0],Et=G[G.length-1];He.isDash===Et.isDash&&(He.left=Et.left-this.width,Et.right=He.right+this.width);for(var Nt=this.width*this.nextRow,yn=0,yr=G[yn],Sn=0;Sn1&&(yr=G[++yn]);var _i=Math.abs(Sn-yr.left),Ri=Math.abs(Sn-yr.right),Ki=Math.min(_i,Ri);this.data[Nt+Sn]=Math.max(0,Math.min(255,(yr.isDash?Ki:-Ki)+128))}},Te.prototype.addDash=function(G,J){var Q=J?7:0,ce=2*Q+1;if(this.nextRow+ce>this.height)return w.warnOnce("LineAtlas out of space"),null;for(var He=0,Et=0;Et=Q&&G.x=ce&&G.y0&&(Sn[new w.OverscaledTileID(Q.overscaledZ,Nt,ce.z,Et,ce.y-1).key]={backfilled:!1},Sn[new w.OverscaledTileID(Q.overscaledZ,Q.wrap,ce.z,ce.x,ce.y-1).key]={backfilled:!1},Sn[new w.OverscaledTileID(Q.overscaledZ,yr,ce.z,yn,ce.y-1).key]={backfilled:!1}),ce.y+10&&(He.resourceTiming=Q._resourceTiming,Q._resourceTiming=[]),Q.fire(new w.Event("data",He))}})},J.prototype.onAdd=function(Q){this.map=Q,this.load()},J.prototype.setData=function(Q){var ce=this;return this._data=Q,this.fire(new w.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(He){if(He)ce.fire(new w.ErrorEvent(He));else{var Et={dataType:"source",sourceDataType:"content"};ce._collectResourceTiming&&ce._resourceTiming&&ce._resourceTiming.length>0&&(Et.resourceTiming=ce._resourceTiming,ce._resourceTiming=[]),ce.fire(new w.Event("data",Et))}}),this},J.prototype.getClusterExpansionZoom=function(Q,ce){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:Q,source:this.id},ce),this},J.prototype.getClusterChildren=function(Q,ce){return this.actor.send("geojson.getClusterChildren",{clusterId:Q,source:this.id},ce),this},J.prototype.getClusterLeaves=function(Q,ce,He,Et){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:Q,limit:ce,offset:He},Et),this},J.prototype._updateWorkerData=function(Q){var ce=this;this._loaded=!1;var He=w.extend({},this.workerOptions),Et=this._data;typeof Et=="string"?(He.request=this.map._requestManager.transformRequest(w.browser.resolveURL(Et),w.ResourceType.Source),He.request.collectResourceTiming=this._collectResourceTiming):He.data=JSON.stringify(Et),this.actor.send(this.type+".loadData",He,function(Nt,yn){ce._removed||yn&&yn.abandoned||(ce._loaded=!0,yn&&yn.resourceTiming&&yn.resourceTiming[ce.id]&&(ce._resourceTiming=yn.resourceTiming[ce.id].slice(0)),ce.actor.send(ce.type+".coalesce",{source:He.source},null),Q(Nt))})},J.prototype.loaded=function(){return this._loaded},J.prototype.loadTile=function(Q,ce){var He=this,Et=Q.actor?"reloadTile":"loadTile";Q.actor=this.actor,Q.request=this.actor.send(Et,{type:this.type,uid:Q.uid,tileID:Q.tileID,zoom:Q.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:w.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(Nt,yn){return delete Q.request,Q.unloadVectorData(),Q.aborted?ce(null):Nt?ce(Nt):(Q.loadVectorData(yn,He.map.painter,Et==="reloadTile"),ce(null))})},J.prototype.abortTile=function(Q){Q.request&&(Q.request.cancel(),delete Q.request),Q.aborted=!0},J.prototype.unloadTile=function(Q){Q.unloadVectorData(),this.actor.send("removeTile",{uid:Q.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 w.extend({},this._options,{type:this.type,data:this._data})},J.prototype.hasTransition=function(){return!1},J}(w.Evented),nt=w.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),wt=function(G){function J(Q,ce,He,Et){G.call(this),this.id=Q,this.dispatcher=He,this.coordinates=ce.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(Et),this.options=ce}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.prototype.load=function(Q,ce){var He=this;this._loaded=!1,this.fire(new w.Event("dataloading",{dataType:"source"})),this.url=this.options.url,w.getImage(this.map._requestManager.transformRequest(this.url,w.ResourceType.Image),function(Et,Nt){He._loaded=!0,Et?He.fire(new w.ErrorEvent(Et)):Nt&&(He.image=Nt,Q&&(He.coordinates=Q),ce&&ce(),He._finishLoading())})},J.prototype.loaded=function(){return this._loaded},J.prototype.updateImage=function(Q){var ce=this;return this.image&&Q.url?(this.options.url=Q.url,this.load(Q.coordinates,function(){ce.texture=null}),this):this},J.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new w.Event("data",{dataType:"source",sourceDataType:"metadata"})))},J.prototype.onAdd=function(Q){this.map=Q,this.load()},J.prototype.setCoordinates=function(Q){var ce=this;this.coordinates=Q;var He=Q.map(w.MercatorCoordinate.fromLngLat);this.tileID=function(Nt){for(var yn=1/0,yr=1/0,Sn=-1/0,_i=-1/0,Ri=0,Ki=Nt;Rice.end(0)?this.fire(new w.ErrorEvent(new w.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+ce.start(0)+" and "+ce.end(0)+"-second mark."))):this.video.currentTime=Q}},J.prototype.getVideo=function(){return this.video},J.prototype.onAdd=function(Q){this.map||(this.map=Q,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 Q=this.map.painter.context,ce=Q.gl;for(var He in this.boundsBuffer||(this.boundsBuffer=Q.createVertexBuffer(this._boundsArray,nt.members)),this.boundsSegments||(this.boundsSegments=w.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(ce.LINEAR,ce.CLAMP_TO_EDGE),ce.texSubImage2D(ce.TEXTURE_2D,0,0,0,ce.RGBA,ce.UNSIGNED_BYTE,this.video)):(this.texture=new w.Texture(Q,this.video,ce.RGBA),this.texture.bind(ce.LINEAR,ce.CLAMP_TO_EDGE)),this.tiles){var Et=this.tiles[He];Et.state!=="loaded"&&(Et.state="loaded",Et.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}(wt),Kt=function(G){function J(Q,ce,He,Et){G.call(this,Q,ce,He,Et),ce.coordinates?Array.isArray(ce.coordinates)&&ce.coordinates.length===4&&!ce.coordinates.some(function(Nt){return!Array.isArray(Nt)||Nt.length!==2||Nt.some(function(yn){return typeof yn!="number"})})||this.fire(new w.ErrorEvent(new w.ValidationError("sources."+Q,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new w.ErrorEvent(new w.ValidationError("sources."+Q,null,'missing required property "coordinates"'))),ce.animate&&typeof ce.animate!="boolean"&&this.fire(new w.ErrorEvent(new w.ValidationError("sources."+Q,null,'optional "animate" property must be a boolean value'))),ce.canvas?typeof ce.canvas=="string"||ce.canvas instanceof w.window.HTMLCanvasElement||this.fire(new w.ErrorEvent(new w.ValidationError("sources."+Q,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 w.ErrorEvent(new w.ValidationError("sources."+Q,null,'missing required property "canvas"'))),this.options=ce,this.animate=ce.animate===void 0||ce.animate}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof w.window.HTMLCanvasElement?this.options.canvas:w.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new w.ErrorEvent(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())},J.prototype.getCanvas=function(){return this.canvas},J.prototype.onAdd=function(Q){this.map=Q,this.load(),this.canvas&&this.animate&&this.play()},J.prototype.onRemove=function(){this.pause()},J.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 ce=this.map.painter.context,He=ce.gl;for(var Et in this.boundsBuffer||(this.boundsBuffer=ce.createVertexBuffer(this._boundsArray,nt.members)),this.boundsSegments||(this.boundsSegments=w.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(Q||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new w.Texture(ce,this.canvas,He.RGBA,{premultiply:!0}),this.tiles){var Nt=this.tiles[Et];Nt.state!=="loaded"&&(Nt.state="loaded",Nt.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 Q=0,ce=[this.canvas.width,this.canvas.height];Qthis.max){var Nt=this._getAndRemoveByKey(this.order[0]);Nt&&this.onRemove(Nt)}return this},ii.prototype.has=function(G){return G.wrapped().key in this.data},ii.prototype.getAndRemove=function(G){return this.has(G)?this._getAndRemoveByKey(G.wrapped().key):null},ii.prototype._getAndRemoveByKey=function(G){var J=this.data[G].shift();return J.timeout&&clearTimeout(J.timeout),this.data[G].length===0&&delete this.data[G],this.order.splice(this.order.indexOf(G),1),J.value},ii.prototype.getByKey=function(G){var J=this.data[G];return J?J[0].value:null},ii.prototype.get=function(G){return this.has(G)?this.data[G.wrapped().key][0].value:null},ii.prototype.remove=function(G,J){if(!this.has(G))return this;var Q=G.wrapped().key,ce=J===void 0?0:this.data[Q].indexOf(J),He=this.data[Q][ce];return this.data[Q].splice(ce,1),He.timeout&&clearTimeout(He.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(He.value),this.order.splice(this.order.indexOf(Q),1),this},ii.prototype.setMaxSize=function(G){for(this.max=G;this.order.length>this.max;){var J=this._getAndRemoveByKey(this.order[0]);J&&this.onRemove(J)}return this},ii.prototype.filter=function(G){var J=[];for(var Q in this.data)for(var ce=0,He=this.data[Q];ce1||(Math.abs(_i)>1&&(Math.abs(_i+Ki)===1?_i+=Ki:Math.abs(_i-Ki)===1&&(_i-=Ki)),Sn.dem&&yr.dem&&(yr.dem.backfillBorder(Sn.dem,_i,Ri),yr.neighboringTiles&&yr.neighboringTiles[Fo]&&(yr.neighboringTiles[Fo].backfilled=!0)))}},J.prototype.getTile=function(Q){return this.getTileByID(Q.key)},J.prototype.getTileByID=function(Q){return this._tiles[Q]},J.prototype._retainLoadedChildren=function(Q,ce,He,Et){for(var Nt in this._tiles){var yn=this._tiles[Nt];if(!(Et[Nt]||!yn.hasData()||yn.tileID.overscaledZ<=ce||yn.tileID.overscaledZ>He)){for(var yr=yn.tileID;yn&&yn.tileID.overscaledZ>ce+1;){var Sn=yn.tileID.scaledTo(yn.tileID.overscaledZ-1);(yn=this._tiles[Sn.key])&&yn.hasData()&&(yr=Sn)}for(var _i=yr;_i.overscaledZ>ce;)if(Q[(_i=_i.scaledTo(_i.overscaledZ-1)).key]){Et[yr.key]=yr;break}}}},J.prototype.findLoadedParent=function(Q,ce){if(Q.key in this._loadedParentTiles){var He=this._loadedParentTiles[Q.key];return He&&He.tileID.overscaledZ>=ce?He:null}for(var Et=Q.overscaledZ-1;Et>=ce;Et--){var Nt=Q.scaledTo(Et),yn=this._getLoadedTile(Nt);if(yn)return yn}},J.prototype._getLoadedTile=function(Q){var ce=this._tiles[Q.key];return ce&&ce.hasData()?ce:this._cache.getByKey(Q.wrapped().key)},J.prototype.updateCacheSize=function(Q){var ce=Math.ceil(Q.width/this._source.tileSize)+1,He=Math.ceil(Q.height/this._source.tileSize)+1,Et=Math.floor(ce*He*5),Nt=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Et):Et;this._cache.setMaxSize(Nt)},J.prototype.handleWrapJump=function(Q){var ce=Math.round((Q-(this._prevLng===void 0?Q:this._prevLng))/360);if(this._prevLng=Q,ce){var He={};for(var Et in this._tiles){var Nt=this._tiles[Et];Nt.tileID=Nt.tileID.unwrapTo(Nt.tileID.wrap+ce),He[Nt.tileID.key]=Nt}for(var yn in this._tiles=He,this._timers)clearTimeout(this._timers[yn]),delete this._timers[yn];for(var yr in this._tiles)this._setTileReloadTimer(yr,this._tiles[yr])}},J.prototype.update=function(Q){var ce=this;if(this.transform=Q,this._sourceLoaded&&!this._paused){var He;this.updateCacheSize(Q),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?He=Q.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(zu){return new w.OverscaledTileID(zu.canonical.z,zu.wrap,zu.canonical.z,zu.canonical.x,zu.canonical.y)}):(He=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&&(He=He.filter(function(zu){return ce._source.hasTile(zu)}))):He=[];var Et=Q.coveringZoomLevel(this._source),Nt=Math.max(Et-J.maxOverzooming,this._source.minzoom),yn=Math.max(Et+J.maxUnderzooming,this._source.minzoom),yr=this._updateRetainedTiles(He,Et);if(Mr(this._source.type)){for(var Sn={},_i={},Ri=0,Ki=Object.keys(yr);Rithis._source.maxzoom){var Hs=Ui.children(this._source.maxzoom)[0],tl=this.getTile(Hs);if(tl&&tl.hasData()){He[Hs.key]=Hs;continue}}else{var qa=Ui.children(this._source.maxzoom);if(He[qa[0].key]&&He[qa[1].key]&&He[qa[2].key]&&He[qa[3].key])continue}for(var Gl=Uo.wasRequested(),bl=Ui.overscaledZ-1;bl>=Nt;--bl){var bu=Ui.scaledTo(bl);if(Et[bu.key]||(Et[bu.key]=!0,!(Uo=this.getTile(bu))&&Gl&&(Uo=this._addTile(bu)),Uo&&(He[bu.key]=bu,Gl=Uo.wasRequested(),Uo.hasData())))break}}}return He},J.prototype._updateLoadedParentTileCache=function(){for(var Q in this._loadedParentTiles={},this._tiles){for(var ce=[],He=void 0,Et=this._tiles[Q].tileID;Et.overscaledZ>0;){if(Et.key in this._loadedParentTiles){He=this._loadedParentTiles[Et.key];break}ce.push(Et.key);var Nt=Et.scaledTo(Et.overscaledZ-1);if(He=this._getLoadedTile(Nt))break;Et=Nt}for(var yn=0,yr=ce;yn0||(ce.hasData()&&ce.state!=="reloading"?this._cache.add(ce.tileID,ce,ce.getExpiryTimeout()):(ce.aborted=!0,this._abortTile(ce),this._unloadTile(ce))))},J.prototype.clearTiles=function(){for(var Q in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(Q);this._cache.reset()},J.prototype.tilesIn=function(Q,ce,He){var Et=this,Nt=[],yn=this.transform;if(!yn)return Nt;for(var yr=He?yn.getCameraQueryGeometry(Q):Q,Sn=Q.map(function(bl){return yn.pointCoordinate(bl)}),_i=yr.map(function(bl){return yn.pointCoordinate(bl)}),Ri=this.getIds(),Ki=1/0,Fo=1/0,Wo=-1/0,Ui=-1/0,Uo=0,Hs=_i;Uo=0&&oh[1].y+Ju>=0){var vh=Sn.map(function(Nh){return zu.getTilePoint(Nh)}),Gh=_i.map(function(Nh){return zu.getTilePoint(Nh)});Nt.push({tile:bu,tileID:zu,queryGeometry:vh,cameraQueryGeometry:Gh,scale:ic})}}},Gl=0;Gl=w.browser.now())return!0}return!1},J.prototype.setFeatureState=function(Q,ce,He){this._state.updateState(Q=Q||"_geojsonTileLayer",ce,He)},J.prototype.removeFeatureState=function(Q,ce,He){this._state.removeFeatureState(Q=Q||"_geojsonTileLayer",ce,He)},J.prototype.getFeatureState=function(Q,ce){return this._state.getState(Q=Q||"_geojsonTileLayer",ce)},J.prototype.setDependencies=function(Q,ce,He){var Et=this._tiles[Q];Et&&Et.setDependencies(ce,He)},J.prototype.reloadTilesForDependencies=function(Q,ce){for(var He in this._tiles)this._tiles[He].hasDependency(Q,ce)&&this._reloadTile(He,"reloading");this._cache.filter(function(Et){return!Et.hasDependency(Q,ce)})},J}(w.Evented);function Qn(G,J){var Q=Math.abs(2*G.wrap)-+(G.wrap<0),ce=Math.abs(2*J.wrap)-+(J.wrap<0);return G.overscaledZ-J.overscaledZ||ce-Q||J.canonical.y-G.canonical.y||J.canonical.x-G.canonical.x}function Mr(G){return G==="raster"||G==="image"||G==="video"}function Wi(){return new w.window.Worker(Pr.workerUrl)}wn.maxOverzooming=10,wn.maxUnderzooming=3;var Dn="mapboxgl_preloaded_worker_pool",Kn=function(){this.active={}};Kn.prototype.acquire=function(G){if(!this.workers)for(this.workers=[];this.workers.length0?(ce-Et)/Nt:0;return this.points[He].mult(1-yn).add(this.points[J].mult(yn))};var Gr=function(G,J,Q){var ce=this.boxCells=[],He=this.circleCells=[];this.xCellCount=Math.ceil(G/Q),this.yCellCount=Math.ceil(J/Q);for(var Et=0;Et=-J[0]&&Q<=J[0]&&ce>=-J[1]&&ce<=J[1]}function qo(G,J,Q,ce,He,Et,Nt,yn){var yr=ce?G.textSizeData:G.iconSizeData,Sn=w.evaluateSizeForZoom(yr,Q.transform.zoom),_i=[256/Q.width*2+1,256/Q.height*2+1],Ri=ce?G.text.dynamicLayoutVertexArray:G.icon.dynamicLayoutVertexArray;Ri.clear();for(var Ki=G.lineVertexArray,Fo=ce?G.text.placedSymbolArray:G.icon.placedSymbolArray,Wo=Q.transform.width/Q.transform.height,Ui=!1,Uo=0;UoMath.abs(Q.x-J.x)*ce?{useVertical:!0}:(G===w.WritingMode.vertical?J.yQ.x)?{needsFlipping:!0}:null}function Na(G,J,Q,ce,He,Et,Nt,yn,yr,Sn,_i,Ri,Ki,Fo){var Wo,Ui=J/24,Uo=G.lineOffsetX*Ui,Hs=G.lineOffsetY*Ui;if(G.numGlyphs>1){var tl=G.glyphStartIndex+G.numGlyphs,qa=G.lineStartIndex,Gl=G.lineStartIndex+G.lineLength,bl=Mo(Ui,yn,Uo,Hs,Q,_i,Ri,G,yr,Et,Ki);if(!bl)return{notEnoughRoom:!0};var bu=Jr(bl.first.point,Nt).point,zu=Jr(bl.last.point,Nt).point;if(ce&&!Q){var ic=vs(G.writingMode,bu,zu,Fo);if(ic)return ic}Wo=[bl.first];for(var Ju=G.glyphStartIndex+1;Ju0?Nh.point:ho(Ri,Gh,oh,1,He),Jc=vs(G.writingMode,oh,jd,Fo);if(Jc)return Jc}var Tc=aa(Ui*yn.getoffsetX(G.glyphStartIndex),Uo,Hs,Q,_i,Ri,G.segment,G.lineStartIndex,G.lineStartIndex+G.lineLength,yr,Et,Ki);if(!Tc)return{notEnoughRoom:!0};Wo=[Tc]}for(var tf=0,Wd=Wo;tf0?1:-1,Wo=0;ce&&(Fo*=-1,Wo=Math.PI),Fo<0&&(Wo+=Math.PI);for(var Ui=Fo>0?yn+Nt:yn+Nt+1,Uo=He,Hs=He,tl=0,qa=0,Gl=Math.abs(Ki),bl=[];tl+qa<=Gl;){if((Ui+=Fo)=yr)return null;if(Hs=Uo,bl.push(Uo),(Uo=Ri[Ui])===void 0){var bu=new w.Point(Sn.getx(Ui),Sn.gety(Ui)),zu=Jr(bu,_i);if(zu.signedDistanceFromCamera>0)Uo=Ri[Ui]=zu.point;else{var ic=Ui-Fo;Uo=ho(tl===0?Et:new w.Point(Sn.getx(ic),Sn.gety(ic)),bu,Hs,Gl-tl+1,_i)}}tl+=qa,qa=Hs.dist(Uo)}var Ju=(Gl-tl)/qa,oh=Uo.sub(Hs),vh=oh.mult(Ju)._add(Hs);vh._add(oh._unit()._perp()._mult(Q*Fo));var Gh=Wo+Math.atan2(Uo.y-Hs.y,Uo.x-Hs.x);return bl.push(vh),{point:vh,angle:Gh,path:bl}}Gr.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Gr.prototype.insert=function(G,J,Q,ce,He){this._forEachCell(J,Q,ce,He,this._insertBoxCell,this.boxUid++),this.boxKeys.push(G),this.bboxes.push(J),this.bboxes.push(Q),this.bboxes.push(ce),this.bboxes.push(He)},Gr.prototype.insertCircle=function(G,J,Q,ce){this._forEachCell(J-ce,Q-ce,J+ce,Q+ce,this._insertCircleCell,this.circleUid++),this.circleKeys.push(G),this.circles.push(J),this.circles.push(Q),this.circles.push(ce)},Gr.prototype._insertBoxCell=function(G,J,Q,ce,He,Et){this.boxCells[He].push(Et)},Gr.prototype._insertCircleCell=function(G,J,Q,ce,He,Et){this.circleCells[He].push(Et)},Gr.prototype._query=function(G,J,Q,ce,He,Et){if(Q<0||G>this.width||ce<0||J>this.height)return!He&&[];var Nt=[];if(G<=0&&J<=0&&this.width<=Q&&this.height<=ce){if(He)return!0;for(var yn=0;yn0:Nt},Gr.prototype._queryCircle=function(G,J,Q,ce,He){var Et=G-Q,Nt=G+Q,yn=J-Q,yr=J+Q;if(Nt<0||Et>this.width||yr<0||yn>this.height)return!ce&&[];var Sn=[];return this._forEachCell(Et,yn,Nt,yr,this._queryCellCircle,Sn,{hitTest:ce,circle:{x:G,y:J,radius:Q},seenUids:{box:{},circle:{}}},He),ce?Sn.length>0:Sn},Gr.prototype.query=function(G,J,Q,ce,He){return this._query(G,J,Q,ce,!1,He)},Gr.prototype.hitTest=function(G,J,Q,ce,He){return this._query(G,J,Q,ce,!0,He)},Gr.prototype.hitTestCircle=function(G,J,Q,ce){return this._queryCircle(G,J,Q,!0,ce)},Gr.prototype._queryCell=function(G,J,Q,ce,He,Et,Nt,yn){var yr=Nt.seenUids,Sn=this.boxCells[He];if(Sn!==null)for(var _i=this.bboxes,Ri=0,Ki=Sn;Ri=_i[Wo+0]&&ce>=_i[Wo+1]&&(!yn||yn(this.boxKeys[Fo]))){if(Nt.hitTest)return Et.push(!0),!0;Et.push({key:this.boxKeys[Fo],x1:_i[Wo],y1:_i[Wo+1],x2:_i[Wo+2],y2:_i[Wo+3]})}}}var Ui=this.circleCells[He];if(Ui!==null)for(var Uo=this.circles,Hs=0,tl=Ui;HsNt*Nt+yn*yn},Gr.prototype._circleAndRectCollide=function(G,J,Q,ce,He,Et,Nt){var yn=(Et-ce)/2,yr=Math.abs(G-(ce+yn));if(yr>yn+Q)return!1;var Sn=(Nt-He)/2,_i=Math.abs(J-(He+Sn));if(_i>Sn+Q)return!1;if(yr<=yn||_i<=Sn)return!0;var Ri=yr-yn,Ki=_i-Sn;return Ri*Ri+Ki*Ki<=Q*Q};var Ka=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Si(G,J){for(var Q=0;Q=1;jd--)Nh.push(vh.path[jd]);for(var Jc=1;Jc0){for(var rd=Nh[0].clone(),of=Nh[0].clone(),$d=1;$d=ic.x&&of.x<=Ju.x&&rd.y>=ic.y&&of.y<=Ju.y?[Nh]:of.xJu.x||of.yJu.y?[]:w.clipLine([Nh],ic.x,ic.y,Ju.x,Ju.y)}for(var ud=0,kp=Wd;ud=this.screenRightBoundary||ce<100||J>this.screenBottomBoundary},to.prototype.isInsideGrid=function(G,J,Q,ce){return Q>=0&&G=0&&J0?(this.prevPlacement&&this.prevPlacement.variableOffsets[Ri.crossTileID]&&this.prevPlacement.placements[Ri.crossTileID]&&this.prevPlacement.placements[Ri.crossTileID].text&&(Ui=this.prevPlacement.variableOffsets[Ri.crossTileID].anchor),this.variableOffsets[Ri.crossTileID]={textOffset:Uo,width:Q,height:ce,anchor:G,textBoxScale:He,prevAnchor:Ui},this.markUsedJustification(Ki,G,Ri,Fo),Ki.allowVerticalPlacement&&(this.markUsedOrientation(Ki,Fo,Ri),this.placedOrientations[Ri.crossTileID]=Fo),{shift:Hs,placedGlyphBoxes:tl}):void 0},Xr.prototype.placeLayerBucketPart=function(G,J,Q){var ce=this,He=G.parameters,Et=He.bucket,Nt=He.layout,yn=He.posMatrix,yr=He.textLabelPlaneMatrix,Sn=He.labelToScreenMatrix,_i=He.textPixelRatio,Ri=He.holdingForFade,Ki=He.collisionBoxArray,Fo=He.partiallyEvaluatedTextSize,Wo=He.collisionGroup,Ui=Nt.get("text-optional"),Uo=Nt.get("icon-optional"),Hs=Nt.get("text-allow-overlap"),tl=Nt.get("icon-allow-overlap"),qa=Nt.get("text-rotation-alignment")==="map",Gl=Nt.get("text-pitch-alignment")==="map",bl=Nt.get("icon-text-fit")!=="none",bu=Nt.get("symbol-z-order")==="viewport-y",zu=Hs&&(tl||!Et.hasIconData()||Uo),ic=tl&&(Hs||!Et.hasTextData()||Ui);!Et.collisionArrays&&Ki&&Et.deserializeCollisionBoxes(Ki);var Ju=function(Jc,Tc){if(!J[Jc.crossTileID])if(Ri)ce.placements[Jc.crossTileID]=new yo(!1,!1,!1);else{var tf,Wd=!1,rd=!1,of=!0,$d=null,ud={box:null,offscreen:null},kp={box:null,offscreen:null},ap=null,mp=null,Kc=0,bc=0,ch=0;Tc.textFeatureIndex?Kc=Tc.textFeatureIndex:Jc.useRuntimeCollisionCircles&&(Kc=Jc.featureIndex),Tc.verticalTextFeatureIndex&&(bc=Tc.verticalTextFeatureIndex);var _h=Tc.textBox;if(_h){var od=function(df){var wf=w.WritingMode.horizontal;if(Et.allowVerticalPlacement&&!df&&ce.prevPlacement){var Ag=ce.prevPlacement.placedOrientations[Jc.crossTileID];Ag&&(ce.placedOrientations[Jc.crossTileID]=Ag,ce.markUsedOrientation(Et,wf=Ag,Jc))}return wf},wc=function(df,wf){if(Et.allowVerticalPlacement&&Jc.numVerticalGlyphVertices>0&&Tc.verticalTextBox)for(var Ag=0,Jg=Et.writingModes;Ag0&&(Pd=Pd.filter(function(df){return df!==cd.anchor})).unshift(cd.anchor)}var Rc=function(df,wf,Ag){for(var Jg=df.x2-df.x1,rp=df.y2-df.y1,Ad=Jc.textBoxScale,i0=bl&&!tl?wf:null,vm={box:[],offscreen:!1},o0=Hs?2*Pd.length:Pd.length,Qg=0;Qg=Pd.length,Jc,Et,Ag,i0);if(u0&&(vm=u0.placedGlyphBoxes)&&vm.box&&vm.box.length){Wd=!0,$d=u0.shift;break}}return vm};wc(function(){return Rc(_h,Tc.iconBox,w.WritingMode.horizontal)},function(){var df=Tc.verticalTextBox;return Et.allowVerticalPlacement&&!(ud&&ud.box&&ud.box.length)&&Jc.numVerticalGlyphVertices>0&&df?Rc(df,Tc.verticalIconBox,w.WritingMode.vertical):{box:null,offscreen:null}}),ud&&(Wd=ud.box,of=ud.offscreen);var Oo=od(ud&&ud.box);if(!Wd&&ce.prevPlacement){var Fg=ce.prevPlacement.variableOffsets[Jc.crossTileID];Fg&&(ce.variableOffsets[Jc.crossTileID]=Fg,ce.markUsedJustification(Et,Fg.anchor,Jc,Oo))}}else{var zp=function(df,wf){var Ag=ce.collisionIndex.placeCollisionBox(df,Hs,_i,yn,Wo.predicate);return Ag&&Ag.box&&Ag.box.length&&(ce.markUsedOrientation(Et,wf,Jc),ce.placedOrientations[Jc.crossTileID]=wf),Ag};wc(function(){return zp(_h,w.WritingMode.horizontal)},function(){var df=Tc.verticalTextBox;return Et.allowVerticalPlacement&&Jc.numVerticalGlyphVertices>0&&df?zp(df,w.WritingMode.vertical):{box:null,offscreen:null}}),od(ud&&ud.box&&ud.box.length)}}if(Wd=(tf=ud)&&tf.box&&tf.box.length>0,of=tf&&tf.offscreen,Jc.useRuntimeCollisionCircles){var Hg=Et.text.placedSymbolArray.get(Jc.centerJustifiedTextSymbolIndex),Bg=w.evaluateSizeForFeature(Et.textSizeData,Fo,Hg),qf=Nt.get("text-padding");ap=ce.collisionIndex.placeCollisionCircles(Hs,Hg,Et.lineVertexArray,Et.glyphOffsetArray,Bg,yn,yr,Sn,Q,Gl,Wo.predicate,Jc.collisionCircleDiameter,qf),Wd=Hs||ap.circles.length>0&&!ap.collisionDetected,of=of&&ap.offscreen}if(Tc.iconFeatureIndex&&(ch=Tc.iconFeatureIndex),Tc.iconBox){var Hd=function(df){var wf=bl&&$d?Rr(df,$d.x,$d.y,qa,Gl,ce.transform.angle):df;return ce.collisionIndex.placeCollisionBox(wf,tl,_i,yn,Wo.predicate)};rd=kp&&kp.box&&kp.box.length&&Tc.verticalIconBox?(mp=Hd(Tc.verticalIconBox)).box.length>0:(mp=Hd(Tc.iconBox)).box.length>0,of=of&&mp.offscreen}var Jf=Ui||Jc.numHorizontalGlyphVertices===0&&Jc.numVerticalGlyphVertices===0,Op=Uo||Jc.numIconVertices===0;if(Jf||Op?Op?Jf||(rd=rd&&Wd):Wd=rd&&Wd:rd=Wd=rd&&Wd,Wd&&tf&&tf.box&&ce.collisionIndex.insertCollisionBox(tf.box,Nt.get("text-ignore-placement"),Et.bucketInstanceId,kp&&kp.box&&bc?bc:Kc,Wo.ID),rd&&mp&&ce.collisionIndex.insertCollisionBox(mp.box,Nt.get("icon-ignore-placement"),Et.bucketInstanceId,ch,Wo.ID),ap&&(Wd&&ce.collisionIndex.insertCollisionCircles(ap.circles,Nt.get("text-ignore-placement"),Et.bucketInstanceId,Kc,Wo.ID),Q)){var Vp=Et.bucketInstanceId,Sp=ce.collisionCircleArrays[Vp];Sp===void 0&&(Sp=ce.collisionCircleArrays[Vp]=new Qo);for(var Qf=0;Qf=0;--vh){var Gh=oh[vh];Ju(Et.symbolInstances.get(Gh),Et.collisionArrays[Gh])}else for(var Nh=G.symbolInstanceStart;Nh=0&&(G.text.placedSymbolArray.get(yn).crossTileID=He>=0&&yn!==He?0:Q.crossTileID)}},Xr.prototype.markUsedOrientation=function(G,J,Q){for(var ce=J===w.WritingMode.horizontal||J===w.WritingMode.horizontalOnly?J:0,He=J===w.WritingMode.vertical?J:0,Et=0,Nt=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];Et0,ic=ce.placedOrientations[tl.crossTileID],Ju=ic===w.WritingMode.vertical,oh=ic===w.WritingMode.horizontal||ic===w.WritingMode.horizontalOnly;if(qa>0||Gl>0){var vh=zr(bu.text);Fo(G.text,qa,Ju?Fi:vh),Fo(G.text,Gl,oh?Fi:vh);var Gh=bu.text.isHidden();[tl.rightJustifiedTextSymbolIndex,tl.centerJustifiedTextSymbolIndex,tl.leftJustifiedTextSymbolIndex].forEach(function(ud){ud>=0&&(G.text.placedSymbolArray.get(ud).hidden=Gh||Ju?1:0)}),tl.verticalPlacedTextSymbolIndex>=0&&(G.text.placedSymbolArray.get(tl.verticalPlacedTextSymbolIndex).hidden=Gh||oh?1:0);var Nh=ce.variableOffsets[tl.crossTileID];Nh&&ce.markUsedJustification(G,Nh.anchor,tl,ic);var jd=ce.placedOrientations[tl.crossTileID];jd&&(ce.markUsedJustification(G,"left",tl,jd),ce.markUsedOrientation(G,jd,tl))}if(zu){var Jc=zr(bu.icon),Tc=!(Ri&&tl.verticalPlacedIconSymbolIndex&&Ju);tl.placedIconSymbolIndex>=0&&(Fo(G.icon,tl.numIconVertices,Tc?Jc:Fi),G.icon.placedSymbolArray.get(tl.placedIconSymbolIndex).hidden=bu.icon.isHidden()),tl.verticalPlacedIconSymbolIndex>=0&&(Fo(G.icon,tl.numVerticalIconVertices,Tc?Fi:Jc),G.icon.placedSymbolArray.get(tl.verticalPlacedIconSymbolIndex).hidden=bu.icon.isHidden())}if(G.hasIconCollisionBoxData()||G.hasTextCollisionBoxData()){var tf=G.collisionArrays[Hs];if(tf){var Wd=new w.Point(0,0);if(tf.textBox||tf.verticalTextBox){var rd=!0;if(yr){var of=ce.variableOffsets[bl];of?(Wd=Xn(of.anchor,of.width,of.height,of.textOffset,of.textBoxScale),Sn&&Wd._rotate(_i?ce.transform.angle:-ce.transform.angle)):rd=!1}tf.textBox&&Ze(G.textCollisionBox.collisionVertexArray,bu.text.placed,!rd||Ju,Wd.x,Wd.y),tf.verticalTextBox&&Ze(G.textCollisionBox.collisionVertexArray,bu.text.placed,!rd||oh,Wd.x,Wd.y)}var $d=!!(!oh&&tf.verticalIconBox);tf.iconBox&&Ze(G.iconCollisionBox.collisionVertexArray,bu.icon.placed,$d,Ri?Wd.x:0,Ri?Wd.y:0),tf.verticalIconBox&&Ze(G.iconCollisionBox.collisionVertexArray,bu.icon.placed,!$d,Ri?Wd.x:0,Ri?Wd.y:0)}}},Ui=0;UiG},Xr.prototype.setStale=function(){this.stale=!0};var ht=Math.pow(2,25),dt=Math.pow(2,24),$e=Math.pow(2,17),ft=Math.pow(2,16),Lt=Math.pow(2,9),gn=Math.pow(2,8),rr=Math.pow(2,1);function zr(G){if(G.opacity===0&&!G.placed)return 0;if(G.opacity===1&&G.placed)return 4294967295;var J=G.placed?1:0,Q=Math.floor(127*G.opacity);return Q*ht+J*dt+Q*$e+J*ft+Q*Lt+J*gn+Q*rr+J}var Fi=0,xo=function(G){this._sortAcrossTiles=G.layout.get("symbol-z-order")!=="viewport-y"&&G.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};xo.prototype.continuePlacement=function(G,J,Q,ce,He){for(var Et=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var Nt=J[G[this._currentPlacementIndex]],yn=this.placement.collisionIndex.transform.zoom;if(Nt.type==="symbol"&&(!Nt.minzoom||Nt.minzoom<=yn)&&(!Nt.maxzoom||Nt.maxzoom>yn)){if(this._inProgressLayer||(this._inProgressLayer=new xo(Nt)),this._inProgressLayer.continuePlacement(Q[Nt.source],this.placement,this._showCollisionBoxes,Nt,Et))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Vi.prototype.commit=function(G){return this.placement.commit(G),this.placement};var zs=512/w.EXTENT/2,Ps=function(G,J,Q){this.tileID=G,this.indexedSymbolInstances={},this.bucketInstanceId=Q;for(var ce=0;ceG.overscaledZ)for(var yn in Nt){var yr=Nt[yn];yr.tileID.isChildOf(G)&&yr.findMatches(J.symbolInstances,G,He)}else{var Sn=Nt[G.scaledTo(Number(Et)).key];Sn&&Sn.findMatches(J.symbolInstances,G,He)}}for(var _i=0;_i1?"@2x":"",Ri=w.getJSON(Et.transformRequest(Et.normalizeSpriteURL(He,_i,".json"),w.ResourceType.SpriteJSON),function(Wo,Ui){Ri=null,Sn||(Sn=Wo,yn=Ui,Fo())}),Ki=w.getImage(Et.transformRequest(Et.normalizeSpriteURL(He,_i,".png"),w.ResourceType.SpriteImage),function(Wo,Ui){Ki=null,Sn||(Sn=Wo,yr=Ui,Fo())});function Fo(){if(Sn)Nt(Sn);else if(yn&&yr){var Wo=w.browser.getImageData(yr),Ui={};for(var Uo in yn){var Hs=yn[Uo],tl=Hs.width,qa=Hs.height,Gl=Hs.x,bl=Hs.y,bu=Hs.sdf,zu=Hs.pixelRatio,ic=Hs.stretchX,Ju=Hs.stretchY,oh=Hs.content,vh=new w.RGBAImage({width:tl,height:qa});w.RGBAImage.copy(Wo,vh,{x:Gl,y:bl},{x:0,y:0},{width:tl,height:qa}),Ui[Uo]={data:vh,pixelRatio:zu,sdf:bu,stretchX:ic,stretchY:Ju,content:oh}}Nt(null,Ui)}}return{cancel:function(){Ri&&(Ri.cancel(),Ri=null),Ki&&(Ki.cancel(),Ki=null)}}}(Q,this.map._requestManager,function(He,Et){if(ce._spriteRequest=null,He)ce.fire(new w.ErrorEvent(He));else if(Et)for(var Nt in Et)ce.imageManager.addImage(Nt,Et[Nt]);ce.imageManager.setLoaded(!0),ce._availableImages=ce.imageManager.listImages(),ce.dispatcher.broadcast("setImages",ce._availableImages),ce.fire(new w.Event("data",{dataType:"style"}))})},J.prototype._validateLayer=function(Q){var ce=this.sourceCaches[Q.source];if(ce){var He=Q.sourceLayer;if(He){var Et=ce.getSource();(Et.type==="geojson"||Et.vectorLayerIds&&Et.vectorLayerIds.indexOf(He)===-1)&&this.fire(new w.ErrorEvent(new Error('Source layer "'+He+'" does not exist on source "'+Et.id+'" as specified by style layer "'+Q.id+'"')))}}},J.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var Q in this.sourceCaches)if(!this.sourceCaches[Q].loaded())return!1;return!!this.imageManager.isLoaded()},J.prototype._serializeLayers=function(Q){for(var ce=[],He=0,Et=Q;He0)throw new Error("Unimplemented: "+Et.map(function(Nt){return Nt.command}).join(", ")+".");return He.forEach(function(Nt){Nt.command!=="setTransition"&&ce[Nt.command].apply(ce,Nt.args)}),this.stylesheet=Q,!0},J.prototype.addImage=function(Q,ce){if(this.getImage(Q))return this.fire(new w.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(Q,ce),this._afterImageUpdated(Q)},J.prototype.updateImage=function(Q,ce){this.imageManager.updateImage(Q,ce)},J.prototype.getImage=function(Q){return this.imageManager.getImage(Q)},J.prototype.removeImage=function(Q){if(!this.getImage(Q))return this.fire(new w.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(Q),this._afterImageUpdated(Q)},J.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 w.Event("data",{dataType:"style"}))},J.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},J.prototype.addSource=function(Q,ce,He){var Et=this;if(He===void 0&&(He={}),this._checkLoaded(),this.sourceCaches[Q]!==void 0)throw new Error("There is already a source with this ID");if(!ce.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(ce).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(ce.type)>=0&&this._validate(w.validateStyle.source,"sources."+Q,ce,null,He))){this.map&&this.map._collectResourceTiming&&(ce.collectResourceTiming=!0);var Nt=this.sourceCaches[Q]=new wn(Q,ce,this.dispatcher);Nt.style=this,Nt.setEventedParent(this,function(){return{isSourceLoaded:Et.loaded(),source:Nt.serialize(),sourceId:Q}}),Nt.onAdd(this.map),this._changed=!0}},J.prototype.removeSource=function(Q){if(this._checkLoaded(),this.sourceCaches[Q]===void 0)throw new Error("There is no source with this ID");for(var ce in this._layers)if(this._layers[ce].source===Q)return this.fire(new w.ErrorEvent(new Error('Source "'+Q+'" cannot be removed while layer "'+ce+'" is using it.')));var He=this.sourceCaches[Q];delete this.sourceCaches[Q],delete this._updatedSources[Q],He.fire(new w.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:Q})),He.setEventedParent(null),He.clearTiles(),He.onRemove&&He.onRemove(this.map),this._changed=!0},J.prototype.setGeoJSONSourceData=function(Q,ce){this._checkLoaded(),this.sourceCaches[Q].getSource().setData(ce),this._changed=!0},J.prototype.getSource=function(Q){return this.sourceCaches[Q]&&this.sourceCaches[Q].getSource()},J.prototype.addLayer=function(Q,ce,He){He===void 0&&(He={}),this._checkLoaded();var Et=Q.id;if(this.getLayer(Et))this.fire(new w.ErrorEvent(new Error('Layer with id "'+Et+'" already exists on this map')));else{var Nt;if(Q.type==="custom"){if(As(this,w.validateCustomStyleLayer(Q)))return;Nt=w.createStyleLayer(Q)}else{if(typeof Q.source=="object"&&(this.addSource(Et,Q.source),Q=w.clone$1(Q),Q=w.extend(Q,{source:Et})),this._validate(w.validateStyle.layer,"layers."+Et,Q,{arrayIndex:-1},He))return;Nt=w.createStyleLayer(Q),this._validateLayer(Nt),Nt.setEventedParent(this,{layer:{id:Et}}),this._serializedLayers[Nt.id]=Nt.serialize()}var yn=ce?this._order.indexOf(ce):this._order.length;if(ce&&yn===-1)this.fire(new w.ErrorEvent(new Error('Layer with id "'+ce+'" does not exist on this map.')));else{if(this._order.splice(yn,0,Et),this._layerOrderChanged=!0,this._layers[Et]=Nt,this._removedLayers[Et]&&Nt.source&&Nt.type!=="custom"){var yr=this._removedLayers[Et];delete this._removedLayers[Et],yr.type!==Nt.type?this._updatedSources[Nt.source]="clear":(this._updatedSources[Nt.source]="reload",this.sourceCaches[Nt.source].pause())}this._updateLayer(Nt),Nt.onAdd&&Nt.onAdd(this.map)}}},J.prototype.moveLayer=function(Q,ce){if(this._checkLoaded(),this._changed=!0,this._layers[Q]){if(Q!==ce){var He=this._order.indexOf(Q);this._order.splice(He,1);var Et=ce?this._order.indexOf(ce):this._order.length;ce&&Et===-1?this.fire(new w.ErrorEvent(new Error('Layer with id "'+ce+'" does not exist on this map.'))):(this._order.splice(Et,0,Q),this._layerOrderChanged=!0)}}else this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be moved.")))},J.prototype.removeLayer=function(Q){this._checkLoaded();var ce=this._layers[Q];if(ce){ce.setEventedParent(null);var He=this._order.indexOf(Q);this._order.splice(He,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[Q]=ce,delete this._layers[Q],delete this._serializedLayers[Q],delete this._updatedLayers[Q],delete this._updatedPaintProps[Q],ce.onRemove&&ce.onRemove(this.map)}else this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be removed.")))},J.prototype.getLayer=function(Q){return this._layers[Q]},J.prototype.hasLayer=function(Q){return Q in this._layers},J.prototype.setLayerZoomRange=function(Q,ce,He){this._checkLoaded();var Et=this.getLayer(Q);Et?Et.minzoom===ce&&Et.maxzoom===He||(ce!=null&&(Et.minzoom=ce),He!=null&&(Et.maxzoom=He),this._updateLayer(Et)):this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot have zoom extent.")))},J.prototype.setFilter=function(Q,ce,He){He===void 0&&(He={}),this._checkLoaded();var Et=this.getLayer(Q);if(Et){if(!w.deepEqual(Et.filter,ce))return ce==null?(Et.filter=void 0,void this._updateLayer(Et)):void(this._validate(w.validateStyle.filter,"layers."+Et.id+".filter",ce,null,He)||(Et.filter=w.clone$1(ce),this._updateLayer(Et)))}else this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be filtered.")))},J.prototype.getFilter=function(Q){return w.clone$1(this.getLayer(Q).filter)},J.prototype.setLayoutProperty=function(Q,ce,He,Et){Et===void 0&&(Et={}),this._checkLoaded();var Nt=this.getLayer(Q);Nt?w.deepEqual(Nt.getLayoutProperty(ce),He)||(Nt.setLayoutProperty(ce,He,Et),this._updateLayer(Nt)):this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be styled.")))},J.prototype.getLayoutProperty=function(Q,ce){var He=this.getLayer(Q);if(He)return He.getLayoutProperty(ce);this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style.")))},J.prototype.setPaintProperty=function(Q,ce,He,Et){Et===void 0&&(Et={}),this._checkLoaded();var Nt=this.getLayer(Q);Nt?w.deepEqual(Nt.getPaintProperty(ce),He)||(Nt.setPaintProperty(ce,He,Et)&&this._updateLayer(Nt),this._changed=!0,this._updatedPaintProps[Q]=!0):this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be styled.")))},J.prototype.getPaintProperty=function(Q,ce){return this.getLayer(Q).getPaintProperty(ce)},J.prototype.setFeatureState=function(Q,ce){this._checkLoaded();var He=Q.source,Et=Q.sourceLayer,Nt=this.sourceCaches[He];if(Nt!==void 0){var yn=Nt.getSource().type;yn==="geojson"&&Et?this.fire(new w.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):yn!=="vector"||Et?(Q.id===void 0&&this.fire(new w.ErrorEvent(new Error("The feature id parameter must be provided."))),Nt.setFeatureState(Et,Q.id,ce)):this.fire(new w.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new w.ErrorEvent(new Error("The source '"+He+"' does not exist in the map's style.")))},J.prototype.removeFeatureState=function(Q,ce){this._checkLoaded();var He=Q.source,Et=this.sourceCaches[He];if(Et!==void 0){var Nt=Et.getSource().type,yn=Nt==="vector"?Q.sourceLayer:void 0;Nt!=="vector"||yn?ce&&typeof Q.id!="string"&&typeof Q.id!="number"?this.fire(new w.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):Et.removeFeatureState(yn,Q.id,ce):this.fire(new w.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new w.ErrorEvent(new Error("The source '"+He+"' does not exist in the map's style.")))},J.prototype.getFeatureState=function(Q){this._checkLoaded();var ce=Q.source,He=Q.sourceLayer,Et=this.sourceCaches[ce];if(Et!==void 0){if(Et.getSource().type!=="vector"||He)return Q.id===void 0&&this.fire(new w.ErrorEvent(new Error("The feature id parameter must be provided."))),Et.getFeatureState(He,Q.id);this.fire(new w.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new w.ErrorEvent(new Error("The source '"+ce+"' does not exist in the map's style.")))},J.prototype.getTransition=function(){return w.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},J.prototype.serialize=function(){return w.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:w.mapObject(this.sourceCaches,function(Q){return Q.serialize()}),layers:this._serializeLayers(this._order)},function(Q){return Q!==void 0})},J.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},J.prototype._flattenAndSortRenderedFeatures=function(Q){for(var ce=this,He=function(ic){return ce._layers[ic].type==="fill-extrusion"},Et={},Nt=[],yn=this._order.length-1;yn>=0;yn--){var yr=this._order[yn];if(He(yr)){Et[yr]=yn;for(var Sn=0,_i=Q;Sn<_i.length;Sn+=1){var Ri=_i[Sn][yr];if(Ri)for(var Ki=0,Fo=Ri;Ki=0;Ui--){var Uo=this._order[Ui];if(He(Uo))for(var Hs=Nt.length-1;Hs>=0;Hs--){var tl=Nt[Hs].feature;if(Et[tl.layer.id] 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_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Xu=Va("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);}"),gc=Va("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,0,1);}"),Zu=Va(`#pragma mapbox: define highp vec4 color +}`,"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;}"),ba=$a("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_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Yu=$a("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);}"),pc=$a("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,0,1);}"),Hu=$a(`#pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize highp vec4 color @@ -8370,7 +8370,7 @@ gl_FragColor=vec4(1.0); void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);}`),Cd=Va(`varying vec2 v_pos; +gl_Position=u_matrix*vec4(a_pos,0,1);}`),wh=$a(`varying vec2 v_pos; #pragma mapbox: define highp vec4 outline_color #pragma mapbox: define lowp float opacity void main() { @@ -8386,7 +8386,7 @@ gl_FragColor=vec4(1.0); 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;}`),ad=Va(`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; +gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),lh=$a(`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 @@ -8410,7 +8410,7 @@ void main() { #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;}`),gu=Va(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; +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;}`),fu=$a(`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 @@ -8434,7 +8434,7 @@ void main() { #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);}`),iu=Va(`varying vec4 v_color;void main() {gl_FragColor=v_color; +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);}`),ru=$a(`varying vec4 v_color;void main() {gl_FragColor=v_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif @@ -8446,7 +8446,7 @@ 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;base=max(0.0,base);height=max(0.0,height);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;}`),Tu=Va(`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; +vec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);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;}`),Tu=$a(`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 @@ -8480,20 +8480,20 @@ void main() { #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;}`),Si=Va(`#ifdef GL_ES +: 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;}`),wi=$a(`#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;}"),tr=Va(`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; +}`,"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;}"),er=$a(`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;}"),Un=Va(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +}`,"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;}"),Un=$a(`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 @@ -8521,7 +8521,7 @@ void main() { #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);}`),jr=Va(`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; +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);}`),Wr=$a(`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() { @@ -8545,7 +8545,7 @@ void main() { #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);}`),Qr=Va(`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; +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);}`),Qr=$a(`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 @@ -8588,7 +8588,7 @@ void main() { #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;}`),_o=Va(`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; +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;}`),_o=$a(`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 @@ -8623,11 +8623,11 @@ void main() { #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);}`),us=Va(`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); +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);}`),us=$a(`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;}"),ns=Va(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +}`,"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;}"),es=$a(`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 @@ -8641,7 +8641,7 @@ 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));}`),Oa=Va(`#define SDF_PX 8.0 +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));}`),Ma=$a(`#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 @@ -8672,7 +8672,7 @@ void main() { #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);}`),ga=Va(`#define SDF_PX 8.0 +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);}`),ga=$a(`#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; @@ -8709,118 +8709,118 @@ void main() { #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);}`);function Va(G,J){var Q=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,ue=J.match(/attribute ([\w]+) ([\w]+)/g),Ze=G.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Et=J.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Ot=Et?Et.concat(Ze):Ze,mn={};return{fragmentSource:G=G.replace(Q,function(yr,Sn,bi,ki,Zi){return mn[Zi]=!0,Sn==="define"?` -#ifndef HAS_UNIFORM_u_`+Zi+` -varying `+bi+" "+ki+" "+Zi+`; +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);}`);function $a(G,J){var Q=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,ce=J.match(/attribute ([\w]+) ([\w]+)/g),He=G.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Et=J.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Nt=Et?Et.concat(He):He,yn={};return{fragmentSource:G=G.replace(Q,function(yr,Sn,_i,Ri,Ki){return yn[Ki]=!0,Sn==="define"?` +#ifndef HAS_UNIFORM_u_`+Ki+` +varying `+_i+" "+Ri+" "+Ki+`; #else -uniform `+bi+" "+ki+" u_"+Zi+`; +uniform `+_i+" "+Ri+" u_"+Ki+`; #endif `:` -#ifdef HAS_UNIFORM_u_`+Zi+` - `+bi+" "+ki+" "+Zi+" = u_"+Zi+`; +#ifdef HAS_UNIFORM_u_`+Ki+` + `+_i+" "+Ri+" "+Ki+" = u_"+Ki+`; #endif -`}),vertexSource:J=J.replace(Q,function(yr,Sn,bi,ki,Zi){var Bo=ki==="float"?"vec2":"vec4",Go=Zi.match(/color/)?"color":Bo;return mn[Zi]?Sn==="define"?` -#ifndef HAS_UNIFORM_u_`+Zi+` -uniform lowp float u_`+Zi+`_t; -attribute `+bi+" "+Bo+" a_"+Zi+`; -varying `+bi+" "+ki+" "+Zi+`; +`}),vertexSource:J=J.replace(Q,function(yr,Sn,_i,Ri,Ki){var Fo=Ri==="float"?"vec2":"vec4",Wo=Ki.match(/color/)?"color":Fo;return yn[Ki]?Sn==="define"?` +#ifndef HAS_UNIFORM_u_`+Ki+` +uniform lowp float u_`+Ki+`_t; +attribute `+_i+" "+Fo+" a_"+Ki+`; +varying `+_i+" "+Ri+" "+Ki+`; #else -uniform `+bi+" "+ki+" u_"+Zi+`; +uniform `+_i+" "+Ri+" u_"+Ki+`; #endif -`:Go==="vec4"?` -#ifndef HAS_UNIFORM_u_`+Zi+` - `+Zi+" = a_"+Zi+`; +`:Wo==="vec4"?` +#ifndef HAS_UNIFORM_u_`+Ki+` + `+Ki+" = a_"+Ki+`; #else - `+bi+" "+ki+" "+Zi+" = u_"+Zi+`; + `+_i+" "+Ri+" "+Ki+" = u_"+Ki+`; #endif `:` -#ifndef HAS_UNIFORM_u_`+Zi+` - `+Zi+" = unpack_mix_"+Go+"(a_"+Zi+", u_"+Zi+`_t); +#ifndef HAS_UNIFORM_u_`+Ki+` + `+Ki+" = unpack_mix_"+Wo+"(a_"+Ki+", u_"+Ki+`_t); #else - `+bi+" "+ki+" "+Zi+" = u_"+Zi+`; + `+_i+" "+Ri+" "+Ki+" = u_"+Ki+`; #endif `:Sn==="define"?` -#ifndef HAS_UNIFORM_u_`+Zi+` -uniform lowp float u_`+Zi+`_t; -attribute `+bi+" "+Bo+" a_"+Zi+`; +#ifndef HAS_UNIFORM_u_`+Ki+` +uniform lowp float u_`+Ki+`_t; +attribute `+_i+" "+Fo+" a_"+Ki+`; #else -uniform `+bi+" "+ki+" u_"+Zi+`; +uniform `+_i+" "+Ri+" u_"+Ki+`; #endif -`:Go==="vec4"?` -#ifndef HAS_UNIFORM_u_`+Zi+` - `+bi+" "+ki+" "+Zi+" = a_"+Zi+`; +`:Wo==="vec4"?` +#ifndef HAS_UNIFORM_u_`+Ki+` + `+_i+" "+Ri+" "+Ki+" = a_"+Ki+`; #else - `+bi+" "+ki+" "+Zi+" = u_"+Zi+`; + `+_i+" "+Ri+" "+Ki+" = u_"+Ki+`; #endif `:` -#ifndef HAS_UNIFORM_u_`+Zi+` - `+bi+" "+ki+" "+Zi+" = unpack_mix_"+Go+"(a_"+Zi+", u_"+Zi+`_t); +#ifndef HAS_UNIFORM_u_`+Ki+` + `+_i+" "+Ri+" "+Ki+" = unpack_mix_"+Wo+"(a_"+Ki+", u_"+Ki+`_t); #else - `+bi+" "+ki+" "+Zi+" = u_"+Zi+`; + `+_i+" "+Ri+" "+Ki+" = u_"+Ki+`; #endif -`}),staticAttributes:ue,staticUniforms:Ot}}var ea=Object.freeze({__proto__:null,prelude:Hs,background:dl,backgroundPattern:Xo,circle:Mi,clippingMask:Yo,heatmap:Os,heatmapTexture:Cs,collisionBox:xa,collisionCircle:Xu,debug:gc,fill:Zu,fillOutline:Cd,fillOutlinePattern:ad,fillPattern:gu,fillExtrusion:iu,fillExtrusionPattern:Tu,hillshadePrepare:Si,hillshade:tr,line:Un,lineGradient:jr,linePattern:Qr,lineSDF:_o,raster:us,symbolIcon:ns,symbolSDF:Oa,symbolTextAndIcon:ga}),Xl=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function _a(G){for(var J=[],Q=0;Q>16,mn>>16],u_pixel_coord_lower:[65535&Ot,65535&mn]}}Ta.prototype.draw=function(G,J,Q,ue,Ze,Et,Ot,mn,yr,Sn,bi,ki,Zi,Bo,Go,zi){var $o,Ks=G.gl;if(!this.failedToCreate){for(var nl in G.program.set(this.program),G.setDepthMode(Q),G.setStencilMode(ue),G.setColorMode(Ze),G.setCullFace(Et),this.fixedUniforms)this.fixedUniforms[nl].set(Ot[nl]);Bo&&Bo.setUniforms(G,this.binderUniforms,ki,{zoom:Zi});for(var el=($o={},$o[Ks.LINES]=2,$o[Ks.TRIANGLES]=3,$o[Ks.LINE_STRIP]=1,$o)[J],Kl=0,yl=bi.get();Kl0?1-1/(1.001-Ot):-Ot),u_contrast_factor:(Et=Ze.paint.get("raster-contrast"),Et>0?1/(1-Et):1+Et),u_spin_weights:Vf(Ze.paint.get("raster-hue-rotate"))};var Et,Ot};function Vf(G){G*=Math.PI/180;var J=Math.sin(G),Q=Math.cos(G);return[(2*Q+1)/3,(-Math.sqrt(3)*J-Q+1)/3,(Math.sqrt(3)*J-Q+1)/3]}var _h,Qh=function(G,J,Q,ue,Ze,Et,Ot,mn,yr,Sn){var bi=Ze.transform;return{u_is_size_zoom_constant:+(G==="constant"||G==="source"),u_is_size_feature_constant:+(G==="constant"||G==="camera"),u_size_t:J?J.uSizeT:0,u_size:J?J.uSize:0,u_camera_to_center_distance:bi.cameraToCenterDistance,u_pitch:bi.pitch/360*2*Math.PI,u_rotate_symbol:+Q,u_aspect_ratio:bi.width/bi.height,u_fade_change:Ze.options.fadeDuration?Ze.symbolFadeChange:1,u_matrix:Et,u_label_plane_matrix:Ot,u_coord_matrix:mn,u_is_text:+yr,u_pitch_with_map:+ue,u_texsize:Sn,u_texture:0}},Mh=function(G,J,Q,ue,Ze,Et,Ot,mn,yr,Sn,bi){var ki=Ze.transform;return w.extend(Qh(G,J,Q,ue,Ze,Et,Ot,mn,yr,Sn),{u_gamma_scale:ue?Math.cos(ki._pitch)*ki.cameraToCenterDistance:1,u_device_pixel_ratio:w.browser.devicePixelRatio,u_is_halo:+bi})},Wd=function(G,J,Q,ue,Ze,Et,Ot,mn,yr,Sn){return w.extend(Mh(G,J,Q,ue,Ze,Et,Ot,mn,!0,yr,!0),{u_texsize_icon:Sn,u_texture_icon:1})},zs=function(G,J,Q){return{u_matrix:G,u_opacity:J,u_color:Q}},$a=function(G,J,Q,ue,Ze,Et){return w.extend(function(Ot,mn,yr,Sn){var bi=yr.imageManager.getPattern(Ot.from.toString()),ki=yr.imageManager.getPattern(Ot.to.toString()),Zi=yr.imageManager.getPixelSize(),Bo=Zi.width,Go=Zi.height,zi=Math.pow(2,Sn.tileID.overscaledZ),$o=Sn.tileSize*Math.pow(2,yr.transform.tileZoom)/zi,Ks=$o*(Sn.tileID.canonical.x+Sn.tileID.wrap*zi),nl=$o*Sn.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:bi.tl,u_pattern_br_a:bi.br,u_pattern_tl_b:ki.tl,u_pattern_br_b:ki.br,u_texsize:[Bo,Go],u_mix:mn.t,u_pattern_size_a:bi.displaySize,u_pattern_size_b:ki.displaySize,u_scale_a:mn.fromScale,u_scale_b:mn.toScale,u_tile_units_to_pixels:1/Eo(Sn,1,yr.transform.tileZoom),u_pixel_coord_upper:[Ks>>16,nl>>16],u_pixel_coord_lower:[65535&Ks,65535&nl]}}(ue,Et,Q,Ze),{u_matrix:G,u_opacity:J})},Ja={fillExtrusion:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_lightpos:new w.Uniform3f(G,J.u_lightpos),u_lightintensity:new w.Uniform1f(G,J.u_lightintensity),u_lightcolor:new w.Uniform3f(G,J.u_lightcolor),u_vertical_gradient:new w.Uniform1f(G,J.u_vertical_gradient),u_opacity:new w.Uniform1f(G,J.u_opacity)}},fillExtrusionPattern:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_lightpos:new w.Uniform3f(G,J.u_lightpos),u_lightintensity:new w.Uniform1f(G,J.u_lightintensity),u_lightcolor:new w.Uniform3f(G,J.u_lightcolor),u_vertical_gradient:new w.Uniform1f(G,J.u_vertical_gradient),u_height_factor:new w.Uniform1f(G,J.u_height_factor),u_image:new w.Uniform1i(G,J.u_image),u_texsize:new w.Uniform2f(G,J.u_texsize),u_pixel_coord_upper:new w.Uniform2f(G,J.u_pixel_coord_upper),u_pixel_coord_lower:new w.Uniform2f(G,J.u_pixel_coord_lower),u_scale:new w.Uniform3f(G,J.u_scale),u_fade:new w.Uniform1f(G,J.u_fade),u_opacity:new w.Uniform1f(G,J.u_opacity)}},fill:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix)}},fillPattern:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_image:new w.Uniform1i(G,J.u_image),u_texsize:new w.Uniform2f(G,J.u_texsize),u_pixel_coord_upper:new w.Uniform2f(G,J.u_pixel_coord_upper),u_pixel_coord_lower:new w.Uniform2f(G,J.u_pixel_coord_lower),u_scale:new w.Uniform3f(G,J.u_scale),u_fade:new w.Uniform1f(G,J.u_fade)}},fillOutline:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_world:new w.Uniform2f(G,J.u_world)}},fillOutlinePattern:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_world:new w.Uniform2f(G,J.u_world),u_image:new w.Uniform1i(G,J.u_image),u_texsize:new w.Uniform2f(G,J.u_texsize),u_pixel_coord_upper:new w.Uniform2f(G,J.u_pixel_coord_upper),u_pixel_coord_lower:new w.Uniform2f(G,J.u_pixel_coord_lower),u_scale:new w.Uniform3f(G,J.u_scale),u_fade:new w.Uniform1f(G,J.u_fade)}},circle:function(G,J){return{u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_scale_with_map:new w.Uniform1i(G,J.u_scale_with_map),u_pitch_with_map:new w.Uniform1i(G,J.u_pitch_with_map),u_extrude_scale:new w.Uniform2f(G,J.u_extrude_scale),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_matrix:new w.UniformMatrix4f(G,J.u_matrix)}},collisionBox:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_pixels_to_tile_units:new w.Uniform1f(G,J.u_pixels_to_tile_units),u_extrude_scale:new w.Uniform2f(G,J.u_extrude_scale),u_overscale_factor:new w.Uniform1f(G,J.u_overscale_factor)}},collisionCircle:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_inv_matrix:new w.UniformMatrix4f(G,J.u_inv_matrix),u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_viewport_size:new w.Uniform2f(G,J.u_viewport_size)}},debug:function(G,J){return{u_color:new w.UniformColor(G,J.u_color),u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_overlay:new w.Uniform1i(G,J.u_overlay),u_overlay_scale:new w.Uniform1f(G,J.u_overlay_scale)}},clippingMask:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix)}},heatmap:function(G,J){return{u_extrude_scale:new w.Uniform1f(G,J.u_extrude_scale),u_intensity:new w.Uniform1f(G,J.u_intensity),u_matrix:new w.UniformMatrix4f(G,J.u_matrix)}},heatmapTexture:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_world:new w.Uniform2f(G,J.u_world),u_image:new w.Uniform1i(G,J.u_image),u_color_ramp:new w.Uniform1i(G,J.u_color_ramp),u_opacity:new w.Uniform1f(G,J.u_opacity)}},hillshade:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_image:new w.Uniform1i(G,J.u_image),u_latrange:new w.Uniform2f(G,J.u_latrange),u_light:new w.Uniform2f(G,J.u_light),u_shadow:new w.UniformColor(G,J.u_shadow),u_highlight:new w.UniformColor(G,J.u_highlight),u_accent:new w.UniformColor(G,J.u_accent)}},hillshadePrepare:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_image:new w.Uniform1i(G,J.u_image),u_dimension:new w.Uniform2f(G,J.u_dimension),u_zoom:new w.Uniform1f(G,J.u_zoom),u_unpack:new w.Uniform4f(G,J.u_unpack)}},line:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_ratio:new w.Uniform1f(G,J.u_ratio),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_units_to_pixels:new w.Uniform2f(G,J.u_units_to_pixels)}},lineGradient:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_ratio:new w.Uniform1f(G,J.u_ratio),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_units_to_pixels:new w.Uniform2f(G,J.u_units_to_pixels),u_image:new w.Uniform1i(G,J.u_image),u_image_height:new w.Uniform1f(G,J.u_image_height)}},linePattern:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_texsize:new w.Uniform2f(G,J.u_texsize),u_ratio:new w.Uniform1f(G,J.u_ratio),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_image:new w.Uniform1i(G,J.u_image),u_units_to_pixels:new w.Uniform2f(G,J.u_units_to_pixels),u_scale:new w.Uniform3f(G,J.u_scale),u_fade:new w.Uniform1f(G,J.u_fade)}},lineSDF:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_ratio:new w.Uniform1f(G,J.u_ratio),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_units_to_pixels:new w.Uniform2f(G,J.u_units_to_pixels),u_patternscale_a:new w.Uniform2f(G,J.u_patternscale_a),u_patternscale_b:new w.Uniform2f(G,J.u_patternscale_b),u_sdfgamma:new w.Uniform1f(G,J.u_sdfgamma),u_image:new w.Uniform1i(G,J.u_image),u_tex_y_a:new w.Uniform1f(G,J.u_tex_y_a),u_tex_y_b:new w.Uniform1f(G,J.u_tex_y_b),u_mix:new w.Uniform1f(G,J.u_mix)}},raster:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_tl_parent:new w.Uniform2f(G,J.u_tl_parent),u_scale_parent:new w.Uniform1f(G,J.u_scale_parent),u_buffer_scale:new w.Uniform1f(G,J.u_buffer_scale),u_fade_t:new w.Uniform1f(G,J.u_fade_t),u_opacity:new w.Uniform1f(G,J.u_opacity),u_image0:new w.Uniform1i(G,J.u_image0),u_image1:new w.Uniform1i(G,J.u_image1),u_brightness_low:new w.Uniform1f(G,J.u_brightness_low),u_brightness_high:new w.Uniform1f(G,J.u_brightness_high),u_saturation_factor:new w.Uniform1f(G,J.u_saturation_factor),u_contrast_factor:new w.Uniform1f(G,J.u_contrast_factor),u_spin_weights:new w.Uniform3f(G,J.u_spin_weights)}},symbolIcon:function(G,J){return{u_is_size_zoom_constant:new w.Uniform1i(G,J.u_is_size_zoom_constant),u_is_size_feature_constant:new w.Uniform1i(G,J.u_is_size_feature_constant),u_size_t:new w.Uniform1f(G,J.u_size_t),u_size:new w.Uniform1f(G,J.u_size),u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_pitch:new w.Uniform1f(G,J.u_pitch),u_rotate_symbol:new w.Uniform1i(G,J.u_rotate_symbol),u_aspect_ratio:new w.Uniform1f(G,J.u_aspect_ratio),u_fade_change:new w.Uniform1f(G,J.u_fade_change),u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_label_plane_matrix:new w.UniformMatrix4f(G,J.u_label_plane_matrix),u_coord_matrix:new w.UniformMatrix4f(G,J.u_coord_matrix),u_is_text:new w.Uniform1i(G,J.u_is_text),u_pitch_with_map:new w.Uniform1i(G,J.u_pitch_with_map),u_texsize:new w.Uniform2f(G,J.u_texsize),u_texture:new w.Uniform1i(G,J.u_texture)}},symbolSDF:function(G,J){return{u_is_size_zoom_constant:new w.Uniform1i(G,J.u_is_size_zoom_constant),u_is_size_feature_constant:new w.Uniform1i(G,J.u_is_size_feature_constant),u_size_t:new w.Uniform1f(G,J.u_size_t),u_size:new w.Uniform1f(G,J.u_size),u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_pitch:new w.Uniform1f(G,J.u_pitch),u_rotate_symbol:new w.Uniform1i(G,J.u_rotate_symbol),u_aspect_ratio:new w.Uniform1f(G,J.u_aspect_ratio),u_fade_change:new w.Uniform1f(G,J.u_fade_change),u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_label_plane_matrix:new w.UniformMatrix4f(G,J.u_label_plane_matrix),u_coord_matrix:new w.UniformMatrix4f(G,J.u_coord_matrix),u_is_text:new w.Uniform1i(G,J.u_is_text),u_pitch_with_map:new w.Uniform1i(G,J.u_pitch_with_map),u_texsize:new w.Uniform2f(G,J.u_texsize),u_texture:new w.Uniform1i(G,J.u_texture),u_gamma_scale:new w.Uniform1f(G,J.u_gamma_scale),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_is_halo:new w.Uniform1i(G,J.u_is_halo)}},symbolTextAndIcon:function(G,J){return{u_is_size_zoom_constant:new w.Uniform1i(G,J.u_is_size_zoom_constant),u_is_size_feature_constant:new w.Uniform1i(G,J.u_is_size_feature_constant),u_size_t:new w.Uniform1f(G,J.u_size_t),u_size:new w.Uniform1f(G,J.u_size),u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_pitch:new w.Uniform1f(G,J.u_pitch),u_rotate_symbol:new w.Uniform1i(G,J.u_rotate_symbol),u_aspect_ratio:new w.Uniform1f(G,J.u_aspect_ratio),u_fade_change:new w.Uniform1f(G,J.u_fade_change),u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_label_plane_matrix:new w.UniformMatrix4f(G,J.u_label_plane_matrix),u_coord_matrix:new w.UniformMatrix4f(G,J.u_coord_matrix),u_is_text:new w.Uniform1i(G,J.u_is_text),u_pitch_with_map:new w.Uniform1i(G,J.u_pitch_with_map),u_texsize:new w.Uniform2f(G,J.u_texsize),u_texsize_icon:new w.Uniform2f(G,J.u_texsize_icon),u_texture:new w.Uniform1i(G,J.u_texture),u_texture_icon:new w.Uniform1i(G,J.u_texture_icon),u_gamma_scale:new w.Uniform1f(G,J.u_gamma_scale),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_is_halo:new w.Uniform1i(G,J.u_is_halo)}},background:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_opacity:new w.Uniform1f(G,J.u_opacity),u_color:new w.UniformColor(G,J.u_color)}},backgroundPattern:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_opacity:new w.Uniform1f(G,J.u_opacity),u_image:new w.Uniform1i(G,J.u_image),u_pattern_tl_a:new w.Uniform2f(G,J.u_pattern_tl_a),u_pattern_br_a:new w.Uniform2f(G,J.u_pattern_br_a),u_pattern_tl_b:new w.Uniform2f(G,J.u_pattern_tl_b),u_pattern_br_b:new w.Uniform2f(G,J.u_pattern_br_b),u_texsize:new w.Uniform2f(G,J.u_texsize),u_mix:new w.Uniform1f(G,J.u_mix),u_pattern_size_a:new w.Uniform2f(G,J.u_pattern_size_a),u_pattern_size_b:new w.Uniform2f(G,J.u_pattern_size_b),u_scale_a:new w.Uniform1f(G,J.u_scale_a),u_scale_b:new w.Uniform1f(G,J.u_scale_b),u_pixel_coord_upper:new w.Uniform2f(G,J.u_pixel_coord_upper),u_pixel_coord_lower:new w.Uniform2f(G,J.u_pixel_coord_lower),u_tile_units_to_pixels:new w.Uniform1f(G,J.u_tile_units_to_pixels)}}};function pl(G,J,Q,ue,Ze,Et,Ot){for(var mn=G.context,yr=mn.gl,Sn=G.useProgram("collisionBox"),bi=[],ki=0,Zi=0,Bo=0;Bo0){var Kl=w.create(),yl=Ks;w.mul(Kl,$o.placementInvProjMatrix,G.transform.glCoordMatrix),w.mul(Kl,Kl,$o.placementViewportMatrix),bi.push({circleArray:el,circleOffset:Zi,transform:yl,invTransform:Kl}),Zi=ki+=el.length/4}nl&&Sn.draw(mn,yr.LINES,$n.disabled,Ar.disabled,G.colorModeForRenderPass(),dr.disabled,Iu(Ks,G.transform,zi),Q.id,nl.layoutVertexBuffer,nl.indexBuffer,nl.segments,null,G.transform.zoom,null,null,nl.collisionVertexBuffer)}}if(Ot&&bi.length){var Cu=G.useProgram("collisionCircle"),Bu=new w.StructArrayLayout2f1f2i16;Bu.resize(4*ki),Bu._trim();for(var ic=0,Ju=0,ld=bi;Ju=0&&(Go[$o.associatedIconIndex]={shiftedAnchor:Bu,angle:ic})}else Ti($o.numGlyphs,Zi)}if(bi){Bo.clear();for(var ld=G.icon.placedSymbolArray,yd=0;yd0){var Ot=w.browser.now(),mn=(Ot-G.timeAdded)/Et,yr=J?(Ot-J.timeAdded)/Et:-1,Sn=Q.getSource(),bi=Ze.coveringZoomLevel({tileSize:Sn.tileSize,roundZoom:Sn.roundZoom}),ki=!J||Math.abs(J.tileID.overscaledZ-bi)>Math.abs(G.tileID.overscaledZ-bi),Zi=ki&&G.refreshedUponExpiration?1:w.clamp(ki?mn:1-yr,0,1);return G.refreshedUponExpiration&&mn>=1&&(G.refreshedUponExpiration=!1),J?{opacity:1,mix:1-Zi}:{opacity:Zi,mix:0}}return{opacity:1,mix:0}}var Gd=new w.Color(1,0,0,1),Ch=new w.Color(0,1,0,1),Ad=new w.Color(0,0,1,1),bd=new w.Color(1,0,1,1),su=new w.Color(0,1,1,1);function nh(G,J,Q,ue){mu(G,0,J+Q/2,G.transform.width,Q,ue)}function tl(G,J,Q,ue){mu(G,J-Q/2,0,Q,G.transform.height,ue)}function mu(G,J,Q,ue,Ze,Et){var Ot=G.context,mn=Ot.gl;mn.enable(mn.SCISSOR_TEST),mn.scissor(J*w.browser.devicePixelRatio,Q*w.browser.devicePixelRatio,ue*w.browser.devicePixelRatio,Ze*w.browser.devicePixelRatio),Ot.clear({color:Et}),mn.disable(mn.SCISSOR_TEST)}function md(G,J,Q){var ue=G.context,Ze=ue.gl,Et=Q.posMatrix,Ot=G.useProgram("debug"),mn=$n.disabled,yr=Ar.disabled,Sn=G.colorModeForRenderPass();ue.activeTexture.set(Ze.TEXTURE0),G.emptyTexture.bind(Ze.LINEAR,Ze.CLAMP_TO_EDGE),Ot.draw(ue,Ze.LINE_STRIP,mn,yr,Sn,dr.disabled,Wc(Et,w.Color.red),"$debug",G.debugBuffer,G.tileBorderIndexBuffer,G.debugSegments);var bi=J.getTileByID(Q.key).latestRawTileData,ki=Math.floor((bi&&bi.byteLength||0)/1024),Zi=J.getTile(Q).tileSize,Bo=512/Math.min(Zi,512)*(Q.overscaledZ/G.transform.zoom)*.5,Go=Q.canonical.toString();Q.overscaledZ!==Q.canonical.z&&(Go+=" => "+Q.overscaledZ),function(zi,$o){zi.initDebugOverlayCanvas();var Ks=zi.debugOverlayCanvas,nl=zi.context.gl,el=zi.debugOverlayCanvas.getContext("2d");el.clearRect(0,0,Ks.width,Ks.height),el.shadowColor="white",el.shadowBlur=2,el.lineWidth=1.5,el.strokeStyle="white",el.textBaseline="top",el.font="bold 36px Open Sans, sans-serif",el.fillText($o,5,5),el.strokeText($o,5,5),zi.debugOverlayTexture.update(Ks),zi.debugOverlayTexture.bind(nl.LINEAR,nl.CLAMP_TO_EDGE)}(G,Go+" "+ki+"kb"),Ot.draw(ue,Ze.TRIANGLES,mn,yr,Dr.alphaBlended,dr.disabled,Wc(Et,w.Color.transparent,Bo),"$debug",G.debugBuffer,G.quadTriangleIndexBuffer,G.debugSegments)}var Uh={symbol:function(G,J,Q,ue,Ze){if(G.renderPass==="translucent"){var Et=Ar.disabled,Ot=G.colorModeForRenderPass();Q.layout.get("text-variable-anchor")&&function(mn,yr,Sn,bi,ki,Zi,Bo){for(var Go=yr.transform,zi=ki==="map",$o=Zi==="map",Ks=0,nl=mn;Ks256&&this.clearStencil(),Q.setColorMode(Dr.disabled),Q.setDepthMode($n.disabled);var Ze=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var Et=0,Ot=J;Et256&&this.clearStencil();var G=this.nextStencilID++,J=this.context.gl;return new Ar({func:J.NOTEQUAL,mask:255},G,255,J.KEEP,J.KEEP,J.REPLACE)},Qa.prototype.stencilModeForClipping=function(G){var J=this.context.gl;return new Ar({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[G.key],0,J.KEEP,J.KEEP,J.REPLACE)},Qa.prototype.stencilConfigForOverlap=function(G){var J,Q=this.context.gl,ue=G.sort(function(yr,Sn){return Sn.overscaledZ-yr.overscaledZ}),Ze=ue[ue.length-1].overscaledZ,Et=ue[0].overscaledZ-Ze+1;if(Et>1){this.currentStencilSource=void 0,this.nextStencilID+Et>256&&this.clearStencil();for(var Ot={},mn=0;mn=0;this.currentLayer--){var el=this.style._layers[ue[this.currentLayer]],Kl=Ze[el.source],yl=Sn[el.source];this._renderTileClippingMasks(el,yl),this.renderLayer(this,Kl,el,yl)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?J.pop():null},Qa.prototype.isPatternMissing=function(G){if(!G)return!1;if(!G.from||!G.to)return!0;var J=this.imageManager.getPattern(G.from.toString()),Q=this.imageManager.getPattern(G.to.toString());return!J||!Q},Qa.prototype.useProgram=function(G,J){this.cache=this.cache||{};var Q=""+G+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[Q]||(this.cache[Q]=new Ta(this.context,G,ea[G],J,Ja[G],this._showOverdrawInspector)),this.cache[Q]},Qa.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()},Qa.prototype.setBaseState=function(){var G=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(G.FUNC_ADD)},Qa.prototype.initDebugOverlayCanvas=function(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=w.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new w.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},Qa.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var _u=function(G,J){this.points=G,this.planes=J};_u.fromInvProjectionMatrix=function(G,J,Q){var ue=Math.pow(2,Q),Ze=[[-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(function(Ot){return w.transformMat4([],Ot,G)}).map(function(Ot){return w.scale$1([],Ot,1/Ot[3]/J*ue)}),Et=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(Ot){var mn=w.sub([],Ze[Ot[0]],Ze[Ot[1]]),yr=w.sub([],Ze[Ot[2]],Ze[Ot[1]]),Sn=w.normalize([],w.cross([],mn,yr)),bi=-w.dot(Sn,Ze[Ot[1]]);return Sn.concat(bi)});return new _u(Ze,Et)};var Al=function(G,J){this.min=G,this.max=J,this.center=w.scale$2([],w.add([],this.min,this.max),.5)};Al.prototype.quadrant=function(G){for(var J=[G%2==0,G<2],Q=w.clone$2(this.min),ue=w.clone$2(this.max),Ze=0;Ze=0;if(Et===0)return 0;Et!==J.length&&(Q=!1)}if(Q)return 2;for(var mn=0;mn<3;mn++){for(var yr=Number.MAX_VALUE,Sn=-Number.MAX_VALUE,bi=0;bithis.max[mn]-this.min[mn])return 0}return 1};var du=function(G,J,Q,ue){if(G===void 0&&(G=0),J===void 0&&(J=0),Q===void 0&&(Q=0),ue===void 0&&(ue=0),isNaN(G)||G<0||isNaN(J)||J<0||isNaN(Q)||Q<0||isNaN(ue)||ue<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=G,this.bottom=J,this.left=Q,this.right=ue};du.prototype.interpolate=function(G,J,Q){return J.top!=null&&G.top!=null&&(this.top=w.number(G.top,J.top,Q)),J.bottom!=null&&G.bottom!=null&&(this.bottom=w.number(G.bottom,J.bottom,Q)),J.left!=null&&G.left!=null&&(this.left=w.number(G.left,J.left,Q)),J.right!=null&&G.right!=null&&(this.right=w.number(G.right,J.right,Q)),this},du.prototype.getCenter=function(G,J){var Q=w.clamp((this.left+G-this.right)/2,0,G),ue=w.clamp((this.top+J-this.bottom)/2,0,J);return new w.Point(Q,ue)},du.prototype.equals=function(G){return this.top===G.top&&this.bottom===G.bottom&&this.left===G.left&&this.right===G.right},du.prototype.clone=function(){return new du(this.top,this.bottom,this.left,this.right)},du.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Au=function(G,J,Q,ue,Ze){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=Ze===void 0||Ze,this._minZoom=G||0,this._maxZoom=J||22,this._minPitch=Q==null?0:Q,this._maxPitch=ue==null?60:ue,this.setMaxBounds(),this.width=0,this.height=0,this._center=new w.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new du,this._posMatrixCache={},this._alignedPosMatrixCache={}},Sc={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}};Au.prototype.clone=function(){var G=new Au(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return G.tileSize=this.tileSize,G.latRange=this.latRange,G.width=this.width,G.height=this.height,G._center=this._center,G.zoom=this.zoom,G.angle=this.angle,G._fov=this._fov,G._pitch=this._pitch,G._unmodified=this._unmodified,G._edgeInsets=this._edgeInsets.clone(),G._calcMatrices(),G},Sc.minZoom.get=function(){return this._minZoom},Sc.minZoom.set=function(G){this._minZoom!==G&&(this._minZoom=G,this.zoom=Math.max(this.zoom,G))},Sc.maxZoom.get=function(){return this._maxZoom},Sc.maxZoom.set=function(G){this._maxZoom!==G&&(this._maxZoom=G,this.zoom=Math.min(this.zoom,G))},Sc.minPitch.get=function(){return this._minPitch},Sc.minPitch.set=function(G){this._minPitch!==G&&(this._minPitch=G,this.pitch=Math.max(this.pitch,G))},Sc.maxPitch.get=function(){return this._maxPitch},Sc.maxPitch.set=function(G){this._maxPitch!==G&&(this._maxPitch=G,this.pitch=Math.min(this.pitch,G))},Sc.renderWorldCopies.get=function(){return this._renderWorldCopies},Sc.renderWorldCopies.set=function(G){G===void 0?G=!0:G===null&&(G=!1),this._renderWorldCopies=G},Sc.worldSize.get=function(){return this.tileSize*this.scale},Sc.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Sc.size.get=function(){return new w.Point(this.width,this.height)},Sc.bearing.get=function(){return-this.angle/Math.PI*180},Sc.bearing.set=function(G){var J=-w.wrap(G,-180,180)*Math.PI/180;this.angle!==J&&(this._unmodified=!1,this.angle=J,this._calcMatrices(),this.rotationMatrix=w.create$2(),w.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Sc.pitch.get=function(){return this._pitch/Math.PI*180},Sc.pitch.set=function(G){var J=w.clamp(G,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==J&&(this._unmodified=!1,this._pitch=J,this._calcMatrices())},Sc.fov.get=function(){return this._fov/Math.PI*180},Sc.fov.set=function(G){G=Math.max(.01,Math.min(60,G)),this._fov!==G&&(this._unmodified=!1,this._fov=G/180*Math.PI,this._calcMatrices())},Sc.zoom.get=function(){return this._zoom},Sc.zoom.set=function(G){var J=Math.min(Math.max(G,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())},Sc.center.get=function(){return this._center},Sc.center.set=function(G){G.lat===this._center.lat&&G.lng===this._center.lng||(this._unmodified=!1,this._center=G,this._constrain(),this._calcMatrices())},Sc.padding.get=function(){return this._edgeInsets.toJSON()},Sc.padding.set=function(G){this._edgeInsets.equals(G)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,G,1),this._calcMatrices())},Sc.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Au.prototype.isPaddingEqual=function(G){return this._edgeInsets.equals(G)},Au.prototype.interpolatePadding=function(G,J,Q){this._unmodified=!1,this._edgeInsets.interpolate(G,J,Q),this._constrain(),this._calcMatrices()},Au.prototype.coveringZoomLevel=function(G){var J=(G.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/G.tileSize));return Math.max(0,J)},Au.prototype.getVisibleUnwrappedCoordinates=function(G){var J=[new w.UnwrappedTileID(0,G)];if(this._renderWorldCopies)for(var Q=this.pointCoordinate(new w.Point(0,0)),ue=this.pointCoordinate(new w.Point(this.width,0)),Ze=this.pointCoordinate(new w.Point(this.width,this.height)),Et=this.pointCoordinate(new w.Point(0,this.height)),Ot=Math.floor(Math.min(Q.x,ue.x,Ze.x,Et.x)),mn=Math.floor(Math.max(Q.x,ue.x,Ze.x,Et.x)),yr=Ot-1;yr<=mn+1;yr++)yr!==0&&J.push(new w.UnwrappedTileID(yr,G));return J},Au.prototype.coveringTiles=function(G){var J=this.coveringZoomLevel(G),Q=J;if(G.minzoom!==void 0&&JG.maxzoom&&(J=G.maxzoom);var ue=w.MercatorCoordinate.fromLngLat(this.center),Ze=Math.pow(2,J),Et=[Ze*ue.x,Ze*ue.y,0],Ot=_u.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),mn=G.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(mn=J);var yr=function(Ju){return{aabb:new Al([Ju*Ze,0,0],[(Ju+1)*Ze,Ze,0]),zoom:0,x:0,y:0,wrap:Ju,fullyVisible:!1}},Sn=[],bi=[],ki=J,Zi=G.reparseOverscaled?Q:J;if(this._renderWorldCopies)for(var Bo=1;Bo<=3;Bo++)Sn.push(yr(-Bo)),Sn.push(yr(Bo));for(Sn.push(yr(0));Sn.length>0;){var Go=Sn.pop(),zi=Go.x,$o=Go.y,Ks=Go.fullyVisible;if(!Ks){var nl=Go.aabb.intersects(Ot);if(nl===0)continue;Ks=nl===2}var el=Go.aabb.distanceX(Et),Kl=Go.aabb.distanceY(Et),yl=Math.max(Math.abs(el),Math.abs(Kl));if(Go.zoom===ki||yl>3+(1<=mn)bi.push({tileID:new w.OverscaledTileID(Go.zoom===ki?Zi:Go.zoom,Go.wrap,Go.zoom,zi,$o),distanceSq:w.sqrLen([Et[0]-.5-zi,Et[1]-.5-$o])});else for(var Cu=0;Cu<4;Cu++){var Bu=(zi<<1)+Cu%2,ic=($o<<1)+(Cu>>1);Sn.push({aabb:Go.aabb.quadrant(Cu),zoom:Go.zoom+1,x:Bu,y:ic,wrap:Go.wrap,fullyVisible:Ks})}}return bi.sort(function(Ju,ld){return Ju.distanceSq-ld.distanceSq}).map(function(Ju){return Ju.tileID})},Au.prototype.resize=function(G,J){this.width=G,this.height=J,this.pixelsToGLUnits=[2/G,-2/J],this._constrain(),this._calcMatrices()},Sc.unmodified.get=function(){return this._unmodified},Au.prototype.zoomScale=function(G){return Math.pow(2,G)},Au.prototype.scaleZoom=function(G){return Math.log(G)/Math.LN2},Au.prototype.project=function(G){var J=w.clamp(G.lat,-this.maxValidLatitude,this.maxValidLatitude);return new w.Point(w.mercatorXfromLng(G.lng)*this.worldSize,w.mercatorYfromLat(J)*this.worldSize)},Au.prototype.unproject=function(G){return new w.MercatorCoordinate(G.x/this.worldSize,G.y/this.worldSize).toLngLat()},Sc.point.get=function(){return this.project(this.center)},Au.prototype.setLocationAtPoint=function(G,J){var Q=this.pointCoordinate(J),ue=this.pointCoordinate(this.centerPoint),Ze=this.locationCoordinate(G),Et=new w.MercatorCoordinate(Ze.x-(Q.x-ue.x),Ze.y-(Q.y-ue.y));this.center=this.coordinateLocation(Et),this._renderWorldCopies&&(this.center=this.center.wrap())},Au.prototype.locationPoint=function(G){return this.coordinatePoint(this.locationCoordinate(G))},Au.prototype.pointLocation=function(G){return this.coordinateLocation(this.pointCoordinate(G))},Au.prototype.locationCoordinate=function(G){return w.MercatorCoordinate.fromLngLat(G)},Au.prototype.coordinateLocation=function(G){return G.toLngLat()},Au.prototype.pointCoordinate=function(G){var J=[G.x,G.y,0,1],Q=[G.x,G.y,1,1];w.transformMat4(J,J,this.pixelMatrixInverse),w.transformMat4(Q,Q,this.pixelMatrixInverse);var ue=J[3],Ze=Q[3],Et=J[1]/ue,Ot=Q[1]/Ze,mn=J[2]/ue,yr=Q[2]/Ze,Sn=mn===yr?0:(0-mn)/(yr-mn);return new w.MercatorCoordinate(w.number(J[0]/ue,Q[0]/Ze,Sn)/this.worldSize,w.number(Et,Ot,Sn)/this.worldSize)},Au.prototype.coordinatePoint=function(G){var J=[G.x*this.worldSize,G.y*this.worldSize,0,1];return w.transformMat4(J,J,this.pixelMatrix),new w.Point(J[0]/J[3],J[1]/J[3])},Au.prototype.getBounds=function(){return new w.LngLatBounds().extend(this.pointLocation(new w.Point(0,0))).extend(this.pointLocation(new w.Point(this.width,0))).extend(this.pointLocation(new w.Point(this.width,this.height))).extend(this.pointLocation(new w.Point(0,this.height)))},Au.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new w.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Au.prototype.setMaxBounds=function(G){G?(this.lngRange=[G.getWest(),G.getEast()],this.latRange=[G.getSouth(),G.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Au.prototype.calculatePosMatrix=function(G,J){J===void 0&&(J=!1);var Q=G.key,ue=J?this._alignedPosMatrixCache:this._posMatrixCache;if(ue[Q])return ue[Q];var Ze=G.canonical,Et=this.worldSize/this.zoomScale(Ze.z),Ot=Ze.x+Math.pow(2,Ze.z)*G.wrap,mn=w.identity(new Float64Array(16));return w.translate(mn,mn,[Ot*Et,Ze.y*Et,0]),w.scale(mn,mn,[Et/w.EXTENT,Et/w.EXTENT,1]),w.multiply(mn,J?this.alignedProjMatrix:this.projMatrix,mn),ue[Q]=new Float32Array(mn),ue[Q]},Au.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Au.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var G,J,Q,ue,Ze=-90,Et=90,Ot=-180,mn=180,yr=this.size,Sn=this._unmodified;if(this.latRange){var bi=this.latRange;Ze=w.mercatorYfromLat(bi[1])*this.worldSize,G=(Et=w.mercatorYfromLat(bi[0])*this.worldSize)-ZeEt&&(ue=Et-zi)}if(this.lngRange){var $o=Zi.x,Ks=yr.x/2;$o-Ksmn&&(Q=mn-Ks)}Q===void 0&&ue===void 0||(this.center=this.unproject(new w.Point(Q!==void 0?Q:Zi.x,ue!==void 0?ue:Zi.y))),this._unmodified=Sn,this._constraining=!1}},Au.prototype._calcMatrices=function(){if(this.height){var G=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var J=Math.PI/2+this._pitch,Q=this._fov*(.5+G.y/this.height),ue=Math.sin(Q)*this.cameraToCenterDistance/Math.sin(w.clamp(Math.PI-J-Q,.01,Math.PI-.01)),Ze=this.point,Et=Ze.x,Ot=Ze.y,mn=1.01*(Math.cos(Math.PI/2-this._pitch)*ue+this.cameraToCenterDistance),yr=this.height/50,Sn=new Float64Array(16);w.perspective(Sn,this._fov,this.width/this.height,yr,mn),Sn[8]=2*-G.x/this.width,Sn[9]=2*G.y/this.height,w.scale(Sn,Sn,[1,-1,1]),w.translate(Sn,Sn,[0,0,-this.cameraToCenterDistance]),w.rotateX(Sn,Sn,this._pitch),w.rotateZ(Sn,Sn,this.angle),w.translate(Sn,Sn,[-Et,-Ot,0]),this.mercatorMatrix=w.scale([],Sn,[this.worldSize,this.worldSize,this.worldSize]),w.scale(Sn,Sn,[1,1,w.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Sn,this.invProjMatrix=w.invert([],this.projMatrix);var bi=this.width%2/2,ki=this.height%2/2,Zi=Math.cos(this.angle),Bo=Math.sin(this.angle),Go=Et-Math.round(Et)+Zi*bi+Bo*ki,zi=Ot-Math.round(Ot)+Zi*ki+Bo*bi,$o=new Float64Array(Sn);if(w.translate($o,$o,[Go>.5?Go-1:Go,zi>.5?zi-1:zi,0]),this.alignedProjMatrix=$o,Sn=w.create(),w.scale(Sn,Sn,[this.width/2,-this.height/2,1]),w.translate(Sn,Sn,[1,-1,0]),this.labelPlaneMatrix=Sn,Sn=w.create(),w.scale(Sn,Sn,[1,-1,1]),w.translate(Sn,Sn,[-1,-1,0]),w.scale(Sn,Sn,[2/this.width,2/this.height,1]),this.glCoordMatrix=Sn,this.pixelMatrix=w.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(Sn=w.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=Sn,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Au.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var G=this.pointCoordinate(new w.Point(0,0)),J=[G.x*this.worldSize,G.y*this.worldSize,0,1];return w.transformMat4(J,J,this.pixelMatrix)[3]/this.cameraToCenterDistance},Au.prototype.getCameraPoint=function(){var G=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new w.Point(0,G))},Au.prototype.getCameraQueryGeometry=function(G){var J=this.getCameraPoint();if(G.length===1)return[G[0],J];for(var Q=J.x,ue=J.y,Ze=J.x,Et=J.y,Ot=0,mn=G;Ot=3&&!G.some(function(Q){return isNaN(Q)})){var J=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(G[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+G[2],+G[1]],zoom:+G[0],bearing:J,pitch:+(G[4]||0)}),!0}return!1},_d.prototype._updateHashUnthrottled=function(){var G=w.window.location.href.replace(/(#.+)?$/,this.getHashString());try{w.window.history.replaceState(w.window.history.state,null,G)}catch(J){}};var wd={linearity:.3,easing:w.bezier(0,0,.3,1)},ef=w.extend({deceleration:2500,maxSpeed:1400},wd),Jh=w.extend({deceleration:20,maxSpeed:1400},wd),uh=w.extend({deceleration:1e3,maxSpeed:360},wd),cf=w.extend({deceleration:1e3,maxSpeed:90},wd),Rh=function(G){this._map=G,this.clear()};function yc(G,J){(!G.duration||G.duration0&&J-G[0].time>160;)G.shift()},Rh.prototype._onMoveEnd=function(G){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var J={zoom:0,bearing:0,pitch:0,pan:new w.Point(0,0),pinchAround:void 0,around:void 0},Q=0,ue=this._inertiaBuffer;Q=this._clickTolerance||this._map.fire(new rd(G.type,this._map,G))},qc.prototype.dblclick=function(G){return this._firePreventable(new rd(G.type,this._map,G))},qc.prototype.mouseover=function(G){this._map.fire(new rd(G.type,this._map,G))},qc.prototype.mouseout=function(G){this._map.fire(new rd(G.type,this._map,G))},qc.prototype.touchstart=function(G){return this._firePreventable(new Mf(G.type,this._map,G))},qc.prototype.touchmove=function(G){this._map.fire(new Mf(G.type,this._map,G))},qc.prototype.touchend=function(G){this._map.fire(new Mf(G.type,this._map,G))},qc.prototype.touchcancel=function(G){this._map.fire(new Mf(G.type,this._map,G))},qc.prototype._firePreventable=function(G){if(this._map.fire(G),G.defaultPrevented)return{}},qc.prototype.isEnabled=function(){return!0},qc.prototype.isActive=function(){return!1},qc.prototype.enable=function(){},qc.prototype.disable=function(){};var id=function(G){this._map=G};id.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},id.prototype.mousemove=function(G){this._map.fire(new rd(G.type,this._map,G))},id.prototype.mousedown=function(){this._delayContextMenu=!0},id.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new rd("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},id.prototype.contextmenu=function(G){this._delayContextMenu?this._contextMenuEvent=G:this._map.fire(new rd(G.type,this._map,G)),this._map.listens("contextmenu")&&G.preventDefault()},id.prototype.isEnabled=function(){return!0},id.prototype.isActive=function(){return!1},id.prototype.enable=function(){},id.prototype.disable=function(){};var Sh=function(G,J){this._map=G,this._el=G.getCanvasContainer(),this._container=G.getContainer(),this._clickTolerance=J.clickTolerance||1};function Pl(G,J){for(var Q={},ue=0;uethis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=G.timeStamp),Q.length===this.numTouches&&(this.centroid=function(ue){for(var Ze=new w.Point(0,0),Et=0,Ot=ue;Et30)&&(this.aborted=!0)}}},ms.prototype.touchend=function(G,J,Q){if((!this.centroid||G.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){var ue=!this.aborted&&this.centroid;if(this.reset(),ue)return ue}};var Cc=function(G){this.singleTap=new ms(G),this.numTaps=G.numTaps,this.reset()};Cc.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Cc.prototype.touchstart=function(G,J,Q){this.singleTap.touchstart(G,J,Q)},Cc.prototype.touchmove=function(G,J,Q){this.singleTap.touchmove(G,J,Q)},Cc.prototype.touchend=function(G,J,Q){var ue=this.singleTap.touchend(G,J,Q);if(ue){var Ze=G.timeStamp-this.lastTime<500,Et=!this.lastTap||this.lastTap.dist(ue)<30;if(Ze&&Et||this.reset(),this.count++,this.lastTime=G.timeStamp,this.lastTap=ue,this.count===this.numTaps)return this.reset(),ue}};var Fi=function(){this._zoomIn=new Cc({numTouches:1,numTaps:2}),this._zoomOut=new Cc({numTouches:2,numTaps:1}),this.reset()};Fi.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Fi.prototype.touchstart=function(G,J,Q){this._zoomIn.touchstart(G,J,Q),this._zoomOut.touchstart(G,J,Q)},Fi.prototype.touchmove=function(G,J,Q){this._zoomIn.touchmove(G,J,Q),this._zoomOut.touchmove(G,J,Q)},Fi.prototype.touchend=function(G,J,Q){var ue=this,Ze=this._zoomIn.touchend(G,J,Q),Et=this._zoomOut.touchend(G,J,Q);return Ze?(this._active=!0,G.preventDefault(),setTimeout(function(){return ue.reset()},0),{cameraAnimation:function(Ot){return Ot.easeTo({duration:300,zoom:Ot.getZoom()+1,around:Ot.unproject(Ze)},{originalEvent:G})}}):Et?(this._active=!0,G.preventDefault(),setTimeout(function(){return ue.reset()},0),{cameraAnimation:function(Ot){return Ot.easeTo({duration:300,zoom:Ot.getZoom()-1,around:Ot.unproject(Et)},{originalEvent:G})}}):void 0},Fi.prototype.touchcancel=function(){this.reset()},Fi.prototype.enable=function(){this._enabled=!0},Fi.prototype.disable=function(){this._enabled=!1,this.reset()},Fi.prototype.isEnabled=function(){return this._enabled},Fi.prototype.isActive=function(){return this._active};var ug={0:1,2:2},uc=function(G){this.reset(),this._clickTolerance=G.clickTolerance||1};uc.prototype.blur=function(){this.reset()},uc.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},uc.prototype._correctButton=function(G,J){return!1},uc.prototype._move=function(G,J){return{}},uc.prototype.mousedown=function(G,J){if(!this._lastPoint){var Q=B.mouseButton(G);this._correctButton(G,Q)&&(this._lastPoint=J,this._eventButton=Q)}},uc.prototype.mousemoveWindow=function(G,J){var Q=this._lastPoint;if(Q){if(G.preventDefault(),function(ue,Ze){var Et=ug[Ze];return ue.buttons===void 0||(ue.buttons&Et)!==Et}(G,this._eventButton))this.reset();else if(this._moved||!(J.dist(Q)0&&(this._active=!0);var ue=Pl(Q,J),Ze=new w.Point(0,0),Et=new w.Point(0,0),Ot=0;for(var mn in ue){var yr=ue[mn],Sn=this._touches[mn];Sn&&(Ze._add(yr),Et._add(yr.sub(Sn)),Ot++,ue[mn]=yr)}if(this._touches=ue,!(OtMath.abs(G.x)}var Kd=function(G){function J(){G.apply(this,arguments)}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.prototype.reset=function(){G.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},J.prototype._start=function(Q){this._lastPoints=Q,dp(Q[0].sub(Q[1]))&&(this._valid=!1)},J.prototype._move=function(Q,ue,Ze){var Et=Q[0].sub(this._lastPoints[0]),Ot=Q[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(Et,Ot,Ze.timeStamp),this._valid)return this._lastPoints=Q,this._active=!0,{pitchDelta:(Et.y+Ot.y)/2*-.5}},J.prototype.gestureBeginsVertically=function(Q,ue,Ze){if(this._valid!==void 0)return this._valid;var Et=Q.mag()>=2,Ot=ue.mag()>=2;if(Et||Ot){if(!Et||!Ot)return this._firstMove===void 0&&(this._firstMove=Ze),Ze-this._firstMove<100&&void 0;var mn=Q.y>0==ue.y>0;return dp(Q)&&dp(ue)&&mn}},J}(_f),xp={panStep:100,bearingStep:15,pitchStep:10},cg=function(){var G=xp;this._panStep=G.panStep,this._bearingStep=G.bearingStep,this._pitchStep=G.pitchStep,this._rotationDisabled=!1};function Lp(G){return G*(2-G)}cg.prototype.blur=function(){this.reset()},cg.prototype.reset=function(){this._active=!1},cg.prototype.keydown=function(G){var J=this;if(!(G.altKey||G.ctrlKey||G.metaKey)){var Q=0,ue=0,Ze=0,Et=0,Ot=0;switch(G.keyCode){case 61:case 107:case 171:case 187:Q=1;break;case 189:case 109:case 173:Q=-1;break;case 37:G.shiftKey?ue=-1:(G.preventDefault(),Et=-1);break;case 39:G.shiftKey?ue=1:(G.preventDefault(),Et=1);break;case 38:G.shiftKey?Ze=1:(G.preventDefault(),Ot=-1);break;case 40:G.shiftKey?Ze=-1:(G.preventDefault(),Ot=1);break;default:return}return this._rotationDisabled&&(ue=0,Ze=0),{cameraAnimation:function(mn){var yr=mn.getZoom();mn.easeTo({duration:300,easeId:"keyboardHandler",easing:Lp,zoom:Q?Math.round(yr)+Q*(G.shiftKey?2:1):yr,bearing:mn.getBearing()+ue*J._bearingStep,pitch:mn.getPitch()+Ze*J._pitchStep,offset:[-Et*J._panStep,-Ot*J._panStep],center:mn.getCenter()},{originalEvent:G})}}}},cg.prototype.enable=function(){this._enabled=!0},cg.prototype.disable=function(){this._enabled=!1,this.reset()},cg.prototype.isEnabled=function(){return this._enabled},cg.prototype.isActive=function(){return this._active},cg.prototype.disableRotation=function(){this._rotationDisabled=!0},cg.prototype.enableRotation=function(){this._rotationDisabled=!1};var gh=function(G,J){this._map=G,this._el=G.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,w.bindAll(["_onTimeout"],this)};gh.prototype.setZoomRate=function(G){this._defaultZoomRate=G},gh.prototype.setWheelZoomRate=function(G){this._wheelZoomRate=G},gh.prototype.isEnabled=function(){return!!this._enabled},gh.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},gh.prototype.isZooming=function(){return!!this._zooming},gh.prototype.enable=function(G){this.isEnabled()||(this._enabled=!0,this._aroundCenter=G&&G.around==="center")},gh.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},gh.prototype.wheel=function(G){if(this.isEnabled()){var J=G.deltaMode===w.window.WheelEvent.DOM_DELTA_LINE?40*G.deltaY:G.deltaY,Q=w.browser.now(),ue=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,J!==0&&J%4.000244140625==0?this._type="wheel":J!==0&&Math.abs(J)<4?this._type="trackpad":ue>400?(this._type=null,this._lastValue=J,this._timeout=setTimeout(this._onTimeout,40,G)):this._type||(this._type=Math.abs(ue*J)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,J+=this._lastValue)),G.shiftKey&&J&&(J/=4),this._type&&(this._lastWheelEvent=G,this._delta-=J,this._active||this._start(G)),G.preventDefault()}},gh.prototype._onTimeout=function(G){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(G)},gh.prototype._start=function(G){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=B.mousePos(this._el,G);this._around=w.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())}},gh.prototype.renderFrame=function(){var G=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)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,ue=2/(1+Math.exp(-Math.abs(this._delta*Q)));this._delta<0&&ue!==0&&(ue=1/ue);var Ze=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(Ze*ue))),this._type==="wheel"&&(this._startZoom=J.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var Et,Ot=typeof this._targetZoom=="number"?this._targetZoom:J.zoom,mn=this._startZoom,yr=this._easing,Sn=!1;if(this._type==="wheel"&&mn&&yr){var bi=Math.min((w.browser.now()-this._lastWheelEventTime)/200,1),ki=yr(bi);Et=w.number(mn,Ot,ki),bi<1?this._frameId||(this._frameId=!0):Sn=!0}else Et=Ot,Sn=!0;return this._active=!0,Sn&&(this._active=!1,this._finishTimeout=setTimeout(function(){G._zooming=!1,G._handler._triggerRenderFrame(),delete G._targetZoom,delete G._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Sn,zoomDelta:Et-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},gh.prototype._smoothOutEasing=function(G){var J=w.ease;if(this._prevEase){var Q=this._prevEase,ue=(w.browser.now()-Q.start)/Q.duration,Ze=Q.easing(ue+.01)-Q.easing(ue),Et=.27/Math.sqrt(Ze*Ze+1e-4)*.01,Ot=Math.sqrt(.0729-Et*Et);J=w.bezier(Et,Ot,.25,1)}return this._prevEase={start:w.browser.now(),duration:G,easing:J},J},gh.prototype.blur=function(){this.reset()},gh.prototype.reset=function(){this._active=!1};var eg=function(G,J){this._clickZoom=G,this._tapZoom=J};eg.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},eg.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},eg.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},eg.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Jd=function(){this.reset()};Jd.prototype.reset=function(){this._active=!1},Jd.prototype.blur=function(){this.reset()},Jd.prototype.dblclick=function(G,J){return G.preventDefault(),{cameraAnimation:function(Q){Q.easeTo({duration:300,zoom:Q.getZoom()+(G.shiftKey?-1:1),around:Q.unproject(J)},{originalEvent:G})}}},Jd.prototype.enable=function(){this._enabled=!0},Jd.prototype.disable=function(){this._enabled=!1,this.reset()},Jd.prototype.isEnabled=function(){return this._enabled},Jd.prototype.isActive=function(){return this._active};var Pf=function(){this._tap=new Cc({numTouches:1,numTaps:1}),this.reset()};Pf.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Pf.prototype.touchstart=function(G,J,Q){this._swipePoint||(this._tapTime&&G.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?Q.length>0&&(this._swipePoint=J[0],this._swipeTouch=Q[0].identifier):this._tap.touchstart(G,J,Q))},Pf.prototype.touchmove=function(G,J,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;var ue=J[0],Ze=ue.y-this._swipePoint.y;return this._swipePoint=ue,G.preventDefault(),this._active=!0,{zoomDelta:Ze/128}}}else this._tap.touchmove(G,J,Q)},Pf.prototype.touchend=function(G,J,Q){this._tapTime?this._swipePoint&&Q.length===0&&this.reset():this._tap.touchend(G,J,Q)&&(this._tapTime=G.timeStamp)},Pf.prototype.touchcancel=function(){this.reset()},Pf.prototype.enable=function(){this._enabled=!0},Pf.prototype.disable=function(){this._enabled=!1,this.reset()},Pf.prototype.isEnabled=function(){return this._enabled},Pf.prototype.isActive=function(){return this._active};var hp=function(G,J,Q){this._el=G,this._mousePan=J,this._touchPan=Q};hp.prototype.enable=function(G){this._inertiaOptions=G||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},hp.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},hp.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},hp.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Pu=function(G,J,Q){this._pitchWithRotate=G.pitchWithRotate,this._mouseRotate=J,this._mousePitch=Q};Pu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Pu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Pu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Pu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Rp=function(G,J,Q,ue){this._el=G,this._touchZoom=J,this._touchRotate=Q,this._tapDragZoom=ue,this._rotationDisabled=!1,this._enabled=!0};Rp.prototype.enable=function(G){this._touchZoom.enable(G),this._rotationDisabled||this._touchRotate.enable(G),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Rp.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Rp.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Rp.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Rp.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Rp.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Tp=function(G){return G.zoom||G.drag||G.pitch||G.rotate},Hf=function(G){function J(){G.apply(this,arguments)}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J}(w.Event);function Od(G){return G.panDelta&&G.panDelta.mag()||G.zoomDelta||G.bearingDelta||G.pitchDelta}var Fd=function(G,J){this._map=G,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Rh(G),this._bearingSnap=J.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(J),w.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],[w.window.document,"mousemove",{capture:!0}],[w.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],[w.window,"blur",void 0]];for(var ue=0,Ze=this._listeners;ueOt?Math.min(2,Cu):Math.max(.5,Cu),yd=Math.pow(ld,1-ic),Xd=Et.unproject(Kl.add(yl.mult(ic*yd)).mult(Ju));Et.setLocationAtPoint(Et.renderWorldCopies?Xd.wrap():Xd,zi)}Ze._fireMoveEvents(ue)},function(ic){Ze._afterEase(ue,ic)},Q),this},J.prototype._prepareEase=function(Q,ue,Ze){Ze===void 0&&(Ze={}),this._moving=!0,ue||Ze.moving||this.fire(new w.Event("movestart",Q)),this._zooming&&!Ze.zooming&&this.fire(new w.Event("zoomstart",Q)),this._rotating&&!Ze.rotating&&this.fire(new w.Event("rotatestart",Q)),this._pitching&&!Ze.pitching&&this.fire(new w.Event("pitchstart",Q))},J.prototype._fireMoveEvents=function(Q){this.fire(new w.Event("move",Q)),this._zooming&&this.fire(new w.Event("zoom",Q)),this._rotating&&this.fire(new w.Event("rotate",Q)),this._pitching&&this.fire(new w.Event("pitch",Q))},J.prototype._afterEase=function(Q,ue){if(!this._easeId||!ue||this._easeId!==ue){delete this._easeId;var Ze=this._zooming,Et=this._rotating,Ot=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Ze&&this.fire(new w.Event("zoomend",Q)),Et&&this.fire(new w.Event("rotateend",Q)),Ot&&this.fire(new w.Event("pitchend",Q)),this.fire(new w.Event("moveend",Q))}},J.prototype.flyTo=function(Q,ue){var Ze=this;if(!Q.essential&&w.browser.prefersReducedMotion){var Et=w.pick(Q,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Et,ue)}this.stop(),Q=w.extend({offset:[0,0],speed:1.2,curve:1.42,easing:w.ease},Q);var Ot=this.transform,mn=this.getZoom(),yr=this.getBearing(),Sn=this.getPitch(),bi=this.getPadding(),ki="zoom"in Q?w.clamp(+Q.zoom,Ot.minZoom,Ot.maxZoom):mn,Zi="bearing"in Q?this._normalizeBearing(Q.bearing,yr):yr,Bo="pitch"in Q?+Q.pitch:Sn,Go="padding"in Q?Q.padding:Ot.padding,zi=Ot.zoomScale(ki-mn),$o=w.Point.convert(Q.offset),Ks=Ot.centerPoint.add($o),nl=Ot.pointLocation(Ks),el=w.LngLat.convert(Q.center||nl);this._normalizeCenter(el);var Kl=Ot.project(nl),yl=Ot.project(el).sub(Kl),Cu=Q.curve,Bu=Math.max(Ot.width,Ot.height),ic=Bu/zi,Ju=yl.mag();if("minZoom"in Q){var ld=w.clamp(Math.min(Q.minZoom,mn,ki),Ot.minZoom,Ot.maxZoom),yd=Bu/Ot.zoomScale(ld-mn);Cu=Math.sqrt(yd/Ju*2)}var Xd=Cu*Cu;function Bd(Oh){var bh=(ic*ic-Bu*Bu+(Oh?-1:1)*Xd*Xd*Ju*Ju)/(2*(Oh?ic:Bu)*Xd*Ju);return Math.log(Math.sqrt(bh*bh+1)-bh)}function jh(Oh){return(Math.exp(Oh)-Math.exp(-Oh))/2}function Jc(Oh){return(Math.exp(Oh)+Math.exp(-Oh))/2}var Ac=Bd(0),nf=function(Oh){return Jc(Ac)/Jc(Ac+Cu*Oh)},Wh=function(Oh){return Bu*((Jc(Ac)*(jh(bh=Ac+Cu*Oh)/Jc(bh))-jh(Ac))/Xd)/Ju;var bh},sh=(Bd(1)-Ac)/Cu;if(Math.abs(Ju)<1e-6||!isFinite(sh)){if(Math.abs(Bu-ic)<1e-6)return this.easeTo(Q,ue);var Yh=icQ.maxDuration&&(Q.duration=0),this._zooming=!0,this._rotating=yr!==Zi,this._pitching=Bo!==Sn,this._padding=!Ot.isPaddingEqual(Go),this._prepareEase(ue,!1),this._ease(function(Oh){var bh=Oh*sh,kp=1/nf(bh);Ot.zoom=Oh===1?ki:mn+Ot.scaleZoom(kp),Ze._rotating&&(Ot.bearing=w.number(yr,Zi,Oh)),Ze._pitching&&(Ot.pitch=w.number(Sn,Bo,Oh)),Ze._padding&&(Ot.interpolatePadding(bi,Go,Oh),Ks=Ot.centerPoint.add($o));var lp=Oh===1?el:Ot.unproject(Kl.add(yl.mult(Wh(bh))).mult(kp));Ot.setLocationAtPoint(Ot.renderWorldCopies?lp.wrap():lp,Ks),Ze._fireMoveEvents(ue)},function(){return Ze._afterEase(ue)},Q),this},J.prototype.isEasing=function(){return!!this._easeFrameId},J.prototype.stop=function(){return this._stop()},J.prototype._stop=function(Q,ue){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var Ze=this._onEaseEnd;delete this._onEaseEnd,Ze.call(this,ue)}if(!Q){var Et=this.handlers;Et&&Et.stop(!1)}return this},J.prototype._ease=function(Q,ue,Ze){Ze.animate===!1||Ze.duration===0?(Q(1),ue()):(this._easeStart=w.browser.now(),this._easeOptions=Ze,this._onEaseFrame=Q,this._onEaseEnd=ue,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},J.prototype._renderFrameCallback=function(){var Q=Math.min((w.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},J.prototype._normalizeBearing=function(Q,ue){Q=w.wrap(Q,-180,180);var Ze=Math.abs(Q-ue);return Math.abs(Q-360-ue)180?-360:Ze<-180?360:0}},J}(w.Evented),Ld=function(G){G===void 0&&(G={}),this.options=G,w.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Ld.prototype.getDefaultPosition=function(){return"bottom-right"},Ld.prototype.onAdd=function(G){var J=this.options&&this.options.compact;return this._map=G,this._container=B.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=B.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=B.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},Ld.prototype.onRemove=function(){B.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},Ld.prototype._setElementTitle=function(G,J){var Q=this._map._getUIString("AttributionControl."+J);G.title=Q,G.setAttribute("aria-label",Q)},Ld.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"))},Ld.prototype._updateEditLink=function(){var G=this._editLink;G||(G=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||w.config.ACCESS_TOKEN}];if(G){var Q=J.reduce(function(ue,Ze,Et){return Ze.value&&(ue+=Ze.key+"="+Ze.value+(Et=0)return!1;return!0})).join(" | ");Ot!==this._attribHTML&&(this._attribHTML=Ot,G.length?(this._innerContainer.innerHTML=Ot,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Ld.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Sf=function(){w.bindAll(["_updateLogo"],this),w.bindAll(["_updateCompact"],this)};Sf.prototype.onAdd=function(G){this._map=G,this._container=B.create("div","mapboxgl-ctrl");var J=B.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},Sf.prototype.onRemove=function(){B.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Sf.prototype.getDefaultPosition=function(){return"bottom-left"},Sf.prototype._updateLogo=function(G){G&&G.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},Sf.prototype._logoRequired=function(){if(this._map.style){var G=this._map.style.sourceCaches;for(var J in G)if(G[J].getSource().mapbox_logo)return!0;return!1}},Sf.prototype._updateCompact=function(){var G=this._container.children;if(G.length){var J=G[0];this._map.getCanvasContainer().offsetWidth<250?J.classList.add("mapboxgl-compact"):J.classList.remove("mapboxgl-compact")}};var pp=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};pp.prototype.add=function(G){var J=++this._id;return this._queue.push({callback:G,id:J,cancelled:!1}),J},pp.prototype.remove=function(G){for(var J=this._currentlyRunning,Q=0,ue=J?this._queue.concat(J):this._queue;Que.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(ue.minPitch!=null&&ue.maxPitch!=null&&ue.minPitch>ue.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(ue.minPitch!=null&&ue.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(ue.maxPitch!=null&&ue.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var Et=new Au(ue.minZoom,ue.maxZoom,ue.minPitch,ue.maxPitch,ue.renderWorldCopies);if(G.call(this,Et,ue),this._interactive=ue.interactive,this._maxTileCacheSize=ue.maxTileCacheSize,this._failIfMajorPerformanceCaveat=ue.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=ue.preserveDrawingBuffer,this._antialias=ue.antialias,this._trackResize=ue.trackResize,this._bearingSnap=ue.bearingSnap,this._refreshExpiredTiles=ue.refreshExpiredTiles,this._fadeDuration=ue.fadeDuration,this._crossSourceCollisions=ue.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=ue.collectResourceTiming,this._renderTaskQueue=new pp,this._controls=[],this._mapId=w.uniqueId(),this._locale=w.extend({},tg,ue.locale),this._clickTolerance=ue.clickTolerance,this._requestManager=new w.RequestManager(ue.transformRequest,ue.accessToken),typeof ue.container=="string"){if(this._container=w.window.document.getElementById(ue.container),!this._container)throw new Error("Container '"+ue.container+"' not found.")}else{if(!(ue.container instanceof Rf))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=ue.container}if(ue.maxBounds&&this.setMaxBounds(ue.maxBounds),w.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 Ze._update(!1)}),this.on("moveend",function(){return Ze._update(!1)}),this.on("zoom",function(){return Ze._update(!0)}),w.window!==void 0&&(w.window.addEventListener("online",this._onWindowOnline,!1),w.window.addEventListener("resize",this._onWindowResize,!1),w.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Fd(this,ue),this._hash=ue.hash&&new _d(typeof ue.hash=="string"&&ue.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:ue.center,zoom:ue.zoom,bearing:ue.bearing,pitch:ue.pitch}),ue.bounds&&(this.resize(),this.fitBounds(ue.bounds,w.extend({},ue.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=ue.localIdeographFontFamily,ue.style&&this.setStyle(ue.style,{localIdeographFontFamily:ue.localIdeographFontFamily}),ue.attributionControl&&this.addControl(new Ld({customAttribution:ue.customAttribution})),this.addControl(new Sf,ue.logoPosition),this.on("style.load",function(){Ze.transform.unmodified&&Ze.jumpTo(Ze.style.stylesheet)}),this.on("data",function(Ot){Ze._update(Ot.dataType==="style"),Ze.fire(new w.Event(Ot.dataType+"data",Ot))}),this.on("dataloading",function(Ot){Ze.fire(new w.Event(Ot.dataType+"dataloading",Ot))})}G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J;var Q={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(ue,Ze){if(Ze===void 0&&(Ze=ue.getDefaultPosition?ue.getDefaultPosition():"top-right"),!ue||!ue.onAdd)return this.fire(new w.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var Et=ue.onAdd(this);this._controls.push(ue);var Ot=this._controlPositions[Ze];return Ze.indexOf("bottom")!==-1?Ot.insertBefore(Et,Ot.firstChild):Ot.appendChild(Et),this},J.prototype.removeControl=function(ue){if(!ue||!ue.onRemove)return this.fire(new w.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var Ze=this._controls.indexOf(ue);return Ze>-1&&this._controls.splice(Ze,1),ue.onRemove(this),this},J.prototype.hasControl=function(ue){return this._controls.indexOf(ue)>-1},J.prototype.resize=function(ue){var Ze=this._containerDimensions(),Et=Ze[0],Ot=Ze[1];if(Et===this.transform.width&&Ot===this.transform.height)return this;this._resizeCanvas(Et,Ot),this.transform.resize(Et,Ot),this.painter.resize(Et,Ot);var mn=!this._moving;return mn&&this.fire(new w.Event("movestart",ue)).fire(new w.Event("move",ue)),this.fire(new w.Event("resize",ue)),mn&&this.fire(new w.Event("moveend",ue)),this},J.prototype.getBounds=function(){return this.transform.getBounds()},J.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},J.prototype.setMaxBounds=function(ue){return this.transform.setMaxBounds(w.LngLatBounds.convert(ue)),this._update()},J.prototype.setMinZoom=function(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")},J.prototype.getMaxZoom=function(){return this.transform.maxZoom},J.prototype.setMinPitch=function(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()60)throw new Error("maxPitch must be less than or equal to 60");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")},J.prototype.getMaxPitch=function(){return this.transform.maxPitch},J.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},J.prototype.setRenderWorldCopies=function(ue){return this.transform.renderWorldCopies=ue,this._update()},J.prototype.project=function(ue){return this.transform.locationPoint(w.LngLat.convert(ue))},J.prototype.unproject=function(ue){return this.transform.pointLocation(w.Point.convert(ue))},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(ue,Ze,Et){var Ot,mn=this;if(ue==="mouseenter"||ue==="mouseover"){var yr=!1;return{layer:Ze,listener:Et,delegates:{mousemove:function(bi){var ki=mn.getLayer(Ze)?mn.queryRenderedFeatures(bi.point,{layers:[Ze]}):[];ki.length?yr||(yr=!0,Et.call(mn,new rd(ue,mn,bi.originalEvent,{features:ki}))):yr=!1},mouseout:function(){yr=!1}}}}if(ue==="mouseleave"||ue==="mouseout"){var Sn=!1;return{layer:Ze,listener:Et,delegates:{mousemove:function(bi){(mn.getLayer(Ze)?mn.queryRenderedFeatures(bi.point,{layers:[Ze]}):[]).length?Sn=!0:Sn&&(Sn=!1,Et.call(mn,new rd(ue,mn,bi.originalEvent)))},mouseout:function(bi){Sn&&(Sn=!1,Et.call(mn,new rd(ue,mn,bi.originalEvent)))}}}}return{layer:Ze,listener:Et,delegates:(Ot={},Ot[ue]=function(bi){var ki=mn.getLayer(Ze)?mn.queryRenderedFeatures(bi.point,{layers:[Ze]}):[];ki.length&&(bi.features=ki,Et.call(mn,bi),delete bi.features)},Ot)}},J.prototype.on=function(ue,Ze,Et){if(Et===void 0)return G.prototype.on.call(this,ue,Ze);var Ot=this._createDelegatedListener(ue,Ze,Et);for(var mn in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ue]=this._delegatedListeners[ue]||[],this._delegatedListeners[ue].push(Ot),Ot.delegates)this.on(mn,Ot.delegates[mn]);return this},J.prototype.once=function(ue,Ze,Et){if(Et===void 0)return G.prototype.once.call(this,ue,Ze);var Ot=this._createDelegatedListener(ue,Ze,Et);for(var mn in Ot.delegates)this.once(mn,Ot.delegates[mn]);return this},J.prototype.off=function(ue,Ze,Et){var Ot=this;return Et===void 0?G.prototype.off.call(this,ue,Ze):(this._delegatedListeners&&this._delegatedListeners[ue]&&function(mn){for(var yr=mn[ue],Sn=0;Sn180;){var Ot=Q.locationPoint(G);if(Ot.x>=0&&Ot.y>=0&&Ot.x<=Q.width&&Ot.y<=Q.height)break;G.lng>Q.center.lng?G.lng-=360:G.lng+=360}return G}Xh.prototype.down=function(G,J){this.mouseRotate.mousedown(G,J),this.mousePitch&&this.mousePitch.mousedown(G,J),B.disableDrag()},Xh.prototype.move=function(G,J){var Q=this.map,ue=this.mouseRotate.mousemoveWindow(G,J);if(ue&&ue.bearingDelta&&Q.setBearing(Q.getBearing()+ue.bearingDelta),this.mousePitch){var Ze=this.mousePitch.mousemoveWindow(G,J);Ze&&Ze.pitchDelta&&Q.setPitch(Q.getPitch()+Ze.pitchDelta)}},Xh.prototype.off=function(){var G=this.element;B.removeEventListener(G,"mousedown",this.mousedown),B.removeEventListener(G,"touchstart",this.touchstart,{passive:!1}),B.removeEventListener(G,"touchmove",this.touchmove),B.removeEventListener(G,"touchend",this.touchend),B.removeEventListener(G,"touchcancel",this.reset),this.offTemp()},Xh.prototype.offTemp=function(){B.enableDrag(),B.removeEventListener(w.window,"mousemove",this.mousemove),B.removeEventListener(w.window,"mouseup",this.mouseup)},Xh.prototype.mousedown=function(G){this.down(w.extend({},G,{ctrlKey:!0,preventDefault:function(){return G.preventDefault()}}),B.mousePos(this.element,G)),B.addEventListener(w.window,"mousemove",this.mousemove),B.addEventListener(w.window,"mouseup",this.mouseup)},Xh.prototype.mousemove=function(G){this.move(G,B.mousePos(this.element,G))},Xh.prototype.mouseup=function(G){this.mouseRotate.mouseupWindow(G),this.mousePitch&&this.mousePitch.mouseupWindow(G),this.offTemp()},Xh.prototype.touchstart=function(G){G.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=B.touchPos(this.element,G.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return G.preventDefault()}},this._startPos))},Xh.prototype.touchmove=function(G){G.targetTouches.length!==1?this.reset():(this._lastPos=B.touchPos(this.element,G.targetTouches)[0],this.move({preventDefault:function(){return G.preventDefault()}},this._lastPos))},Xh.prototype.touchend=function(G){G.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=ue}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 w.Event("dragstart"))),this.fire(new w.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 w.Event("dragend")),this._state="inactive"},J.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))},J.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},J.prototype.isDraggable=function(){return this._draggable},J.prototype.setRotation=function(Q){return this._rotation=Q||0,this._update(),this},J.prototype.getRotation=function(){return this._rotation},J.prototype.setRotationAlignment=function(Q){return this._rotationAlignment=Q||"auto",this._update(),this},J.prototype.getRotationAlignment=function(){return this._rotationAlignment},J.prototype.setPitchAlignment=function(Q){return this._pitchAlignment=Q&&Q!=="auto"?Q:this._rotationAlignment,this._update(),this},J.prototype.getPitchAlignment=function(){return this._pitchAlignment},J}(w.Evented),it={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},dn=0,ir=!1,Te=function(G){function J(Q){G.call(this),this.options=w.extend({},it,Q),w.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.prototype.onAdd=function(Q){var ue;return this._map=Q,this._container=B.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),ue=this._setupUI,ae!==void 0?ue(ae):w.window.navigator.permissions!==void 0?w.window.navigator.permissions.query({name:"geolocation"}).then(function(Ze){ue(ae=Ze.state!=="denied")}):ue(ae=!!w.window.navigator.geolocation),this._container},J.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(w.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(),B.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,dn=0,ir=!1},J.prototype._isOutOfMapMaxBounds=function(Q){var ue=this._map.getMaxBounds(),Ze=Q.coords;return ue&&(Ze.longitudeue.getEast()||Ze.latitudeue.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")}},J.prototype._onSuccess=function(Q){if(this._map){if(this._isOutOfMapMaxBounds(Q))return this._setErrorState(),this.fire(new w.Event("outofmaxbounds",Q)),this._updateMarker(),void this._finish();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")}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 w.Event("geolocate",Q)),this._finish()}},J.prototype._updateCamera=function(Q){var ue=new w.LngLat(Q.coords.longitude,Q.coords.latitude),Ze=Q.coords.accuracy,Et=this._map.getBearing(),Ot=w.extend({bearing:Et},this.options.fitBoundsOptions);this._map.fitBounds(ue.toBounds(Ze),Ot,{geolocateSource:!0})},J.prototype._updateMarker=function(Q){if(Q){var ue=new w.LngLat(Q.coords.longitude,Q.coords.latitude);this._accuracyCircleMarker.setLngLat(ue).addTo(this._map),this._userLocationDotMarker.setLngLat(ue).addTo(this._map),this._accuracy=Q.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},J.prototype._updateCircleRadius=function(){var Q=this._map._container.clientHeight/2,ue=this._map.unproject([0,Q]),Ze=this._map.unproject([1,Q]),Et=ue.distanceTo(Ze),Ot=Math.ceil(2*this._accuracy/Et);this._circleElement.style.width=Ot+"px",this._circleElement.style.height=Ot+"px"},J.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},J.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 ue=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=ue,this._geolocateButton.setAttribute("aria-label",ue),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(Q.code===3&&ir)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new w.Event("error",Q)),this._finish()}},J.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},J.prototype._setupUI=function(Q){var ue=this;if(this._container.addEventListener("contextmenu",function(Ot){return Ot.preventDefault()}),this._geolocateButton=B.create("button","mapboxgl-ctrl-geolocate",this._container),B.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",Q===!1){w.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var Ze=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=Ze,this._geolocateButton.setAttribute("aria-label",Ze)}else{var Et=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=Et,this._geolocateButton.setAttribute("aria-label",Et)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=B.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new pe(this._dotElement),this._circleElement=B.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new pe({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(Ot){Ot.geolocateSource||ue._watchState!=="ACTIVE_LOCK"||Ot.originalEvent&&Ot.originalEvent.type==="resize"||(ue._watchState="BACKGROUND",ue._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),ue._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),ue.fire(new w.Event("trackuserlocationend")))})},J.prototype.trigger=function(){if(!this._setup)return w.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 w.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":dn--,ir=!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 w.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 w.Event("trackuserlocationstart"))}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")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var Q;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++dn>1?(Q={maximumAge:6e5,timeout:0},ir=!0):(Q=this.options.positionOptions,ir=!1),this._geolocationWatchID=w.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,Q)}}else w.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},J.prototype._clearWatch=function(){w.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}(w.Evented),D={maxWidth:100,unit:"metric"},ie=function(G){this.options=w.extend({},D,G),w.bindAll(["_onMove","setUnit"],this)};function Se(G,J,Q){var ue=Q&&Q.maxWidth||100,Ze=G._container.clientHeight/2,Et=G.unproject([0,Ze]),Ot=G.unproject([ue,Ze]),mn=Et.distanceTo(Ot);if(Q&&Q.unit==="imperial"){var yr=3.2808*mn;yr>5280?Ne(J,ue,yr/5280,G._getUIString("ScaleControl.Miles")):Ne(J,ue,yr,G._getUIString("ScaleControl.Feet"))}else Q&&Q.unit==="nautical"?Ne(J,ue,mn/1852,G._getUIString("ScaleControl.NauticalMiles")):mn>=1e3?Ne(J,ue,mn/1e3,G._getUIString("ScaleControl.Kilometers")):Ne(J,ue,mn,G._getUIString("ScaleControl.Meters"))}function Ne(G,J,Q,ue){var Ze,Et,Ot,mn=(Ze=Q,(Et=Math.pow(10,(""+Math.floor(Ze)).length-1))*(Ot=(Ot=Ze/Et)>=10?10:Ot>=5?5:Ot>=3?3:Ot>=2?2:Ot>=1?1:function(yr){var Sn=Math.pow(10,Math.ceil(-Math.log(yr)/Math.LN10));return Math.round(yr*Sn)/Sn}(Ot)));G.style.width=J*(mn/Q)+"px",G.innerHTML=mn+" "+ue}ie.prototype.getDefaultPosition=function(){return"bottom-left"},ie.prototype._onMove=function(){Se(this._map,this._container,this.options)},ie.prototype.onAdd=function(G){return this._map=G,this._container=B.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",G.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},ie.prototype.onRemove=function(){B.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},ie.prototype.setUnit=function(G){this.options.unit=G,Se(this._map,this._container,this.options)};var ct=function(G){this._fullscreen=!1,G&&G.container&&(G.container instanceof w.window.HTMLElement?this._container=G.container:w.warnOnce("Full screen control 'container' must be a DOM element.")),w.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in w.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in w.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in w.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in w.window.document&&(this._fullscreenchange="MSFullscreenChange")};ct.prototype.onAdd=function(G){return this._map=G,this._container||(this._container=this._map.getContainer()),this._controlContainer=B.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",w.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},ct.prototype.onRemove=function(){B.remove(this._controlContainer),this._map=null,w.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},ct.prototype._checkFullscreenSupport=function(){return!!(w.window.document.fullscreenEnabled||w.window.document.mozFullScreenEnabled||w.window.document.msFullscreenEnabled||w.window.document.webkitFullscreenEnabled)},ct.prototype._setupUI=function(){var G=this._fullscreenButton=B.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);B.create("span","mapboxgl-ctrl-icon",G).setAttribute("aria-hidden",!0),G.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),w.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},ct.prototype._updateTitle=function(){var G=this._getTitle();this._fullscreenButton.setAttribute("aria-label",G),this._fullscreenButton.title=G},ct.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},ct.prototype._isFullscreen=function(){return this._fullscreen},ct.prototype._changeIcon=function(){(w.window.document.fullscreenElement||w.window.document.mozFullScreenElement||w.window.document.webkitFullscreenElement||w.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},ct.prototype._onClickFullscreen=function(){this._isFullscreen()?w.window.document.exitFullscreen?w.window.document.exitFullscreen():w.window.document.mozCancelFullScreen?w.window.document.mozCancelFullScreen():w.window.document.msExitFullscreen?w.window.document.msExitFullscreen():w.window.document.webkitCancelFullScreen&&w.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 Ht={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},en=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),zn=function(G){function J(Q){G.call(this),this.options=w.extend(Object.create(Ht),Q),w.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.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 w.Event("open")),this},J.prototype.isOpen=function(){return!!this._map},J.prototype.remove=function(){return this._content&&B.remove(this._content),this._container&&(B.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 w.Event("close")),this},J.prototype.getLngLat=function(){return this._lngLat},J.prototype.setLngLat=function(Q){return this._lngLat=w.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},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(Q){return this.setDOMContent(w.window.document.createTextNode(Q))},J.prototype.setHTML=function(Q){var ue,Ze=w.window.document.createDocumentFragment(),Et=w.window.document.createElement("body");for(Et.innerHTML=Q;ue=Et.firstChild;)Ze.appendChild(ue);return this.setDOMContent(Ze)},J.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},J.prototype.setMaxWidth=function(Q){return this.options.maxWidth=Q,this._update(),this},J.prototype.setDOMContent=function(Q){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=B.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(Q),this._createCloseButton(),this._update(),this._focusFirstElement(),this},J.prototype.addClassName=function(Q){this._container&&this._container.classList.add(Q)},J.prototype.removeClassName=function(Q){this._container&&this._container.classList.remove(Q)},J.prototype.setOffset=function(Q){return this.options.offset=Q,this._update(),this},J.prototype.toggleClassName=function(Q){if(this._container)return this._container.classList.toggle(Q)},J.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=B.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(Q){this._update(Q.point)},J.prototype._onMouseMove=function(Q){this._update(Q.point)},J.prototype._onDrag=function(Q){this._update(Q.point)},J.prototype._update=function(Q){var ue=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=B.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=B.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(ki){return ue._container.classList.add(ki)}),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=zo(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||Q)){var Ze=this._pos=this._trackPointer&&Q?Q:this._map.project(this._lngLat),Et=this.options.anchor,Ot=function ki(Zi){if(Zi){if(typeof Zi=="number"){var Bo=Math.round(Math.sqrt(.5*Math.pow(Zi,2)));return{center:new w.Point(0,0),top:new w.Point(0,Zi),"top-left":new w.Point(Bo,Bo),"top-right":new w.Point(-Bo,Bo),bottom:new w.Point(0,-Zi),"bottom-left":new w.Point(Bo,-Bo),"bottom-right":new w.Point(-Bo,-Bo),left:new w.Point(Zi,0),right:new w.Point(-Zi,0)}}if(Zi instanceof w.Point||Array.isArray(Zi)){var Go=w.Point.convert(Zi);return{center:Go,top:Go,"top-left":Go,"top-right":Go,bottom:Go,"bottom-left":Go,"bottom-right":Go,left:Go,right:Go}}return{center:w.Point.convert(Zi.center||[0,0]),top:w.Point.convert(Zi.top||[0,0]),"top-left":w.Point.convert(Zi["top-left"]||[0,0]),"top-right":w.Point.convert(Zi["top-right"]||[0,0]),bottom:w.Point.convert(Zi.bottom||[0,0]),"bottom-left":w.Point.convert(Zi["bottom-left"]||[0,0]),"bottom-right":w.Point.convert(Zi["bottom-right"]||[0,0]),left:w.Point.convert(Zi.left||[0,0]),right:w.Point.convert(Zi.right||[0,0])}}return ki(new w.Point(0,0))}(this.options.offset);if(!Et){var mn,yr=this._container.offsetWidth,Sn=this._container.offsetHeight;mn=Ze.y+Ot.bottom.ythis._map.transform.height-Sn?["bottom"]:[],Ze.xthis._map.transform.width-yr/2&&mn.push("right"),Et=mn.length===0?"bottom":mn.join("-")}var bi=Ze.add(Ot[Et]).round();B.setTransform(this._container,P[Et]+" translate("+bi.x+"px,"+bi.y+"px)"),j(this._container,Et,"popup")}},J.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var Q=this._container.querySelector(en);Q&&Q.focus()}},J.prototype._onClose=function(){this.remove()},J}(w.Evented),Ir={version:w.version,supported:b,setRTLTextPlugin:w.setRTLTextPlugin,getRTLTextPluginStatus:w.getRTLTextPluginStatus,Map:Yf,NavigationControl:oh,GeolocateControl:Te,AttributionControl:Ld,ScaleControl:ie,FullscreenControl:ct,Popup:zn,Marker:pe,Style:Gl,LngLat:w.LngLat,LngLatBounds:w.LngLatBounds,Point:w.Point,MercatorCoordinate:w.MercatorCoordinate,Evented:w.Evented,config:w.config,prewarm:function(){vi().acquire(An)},clearPrewarmedResources:function(){var G=nr;G&&(G.isPreloaded()&&G.numActive()===1?(G.release(An),nr=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()"))},get accessToken(){return w.config.ACCESS_TOKEN},set accessToken(G){w.config.ACCESS_TOKEN=G},get baseApiUrl(){return w.config.API_URL},set baseApiUrl(G){w.config.API_URL=G},get workerCount(){return Xn.workerCount},set workerCount(G){Xn.workerCount=G},get maxParallelImageRequests(){return w.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(G){w.config.MAX_PARALLEL_IMAGE_REQUESTS=G},clearStorage:function(G){w.clearTileCache(G)},workerUrl:""};return Ir}),v})},39945:function(_t,Y,_){"use strict";_.r(Y),_.d(Y,{CancellationTokenSource:function(){return pJ},Emitter:function(){return gJ},KeyCode:function(){return mJ},KeyMod:function(){return vJ},MarkerSeverity:function(){return wJ},MarkerTag:function(){return CJ},Position:function(){return yJ},Range:function(){return _J},Selection:function(){return bJ},SelectionDirection:function(){return xJ},Token:function(){return EJ},Uri:function(){return SJ},default:function(){return Ire},editor:function(){return TJ},languages:function(){return AJ}});var v={};_.r(v),_.d(v,{PixelRatio:function(){return ca},addMatchMediaChangeListener:function(){return uo},getZoomFactor:function(){return ll},isAndroid:function(){return Qo},isChrome:function(){return Eo},isElectron:function(){return yo},isFirefox:function(){return Li},isSafari:function(){return hs},isStandalone:function(){return Ko},isWebKit:function(){return eo},isWebkitWebView:function(){return Wn}});var R={};_.r(R),_.d(R,{CancellationTokenSource:function(){return pJ},Emitter:function(){return gJ},KeyCode:function(){return mJ},KeyMod:function(){return vJ},MarkerSeverity:function(){return wJ},MarkerTag:function(){return CJ},Position:function(){return yJ},Range:function(){return _J},Selection:function(){return bJ},SelectionDirection:function(){return xJ},Token:function(){return EJ},Uri:function(){return SJ},editor:function(){return TJ},languages:function(){return AJ}});var w={};_.r(w),_.d(w,{CancellationTokenSource:function(){return pJ},Emitter:function(){return gJ},KeyCode:function(){return mJ},KeyMod:function(){return vJ},MarkerSeverity:function(){return wJ},MarkerTag:function(){return CJ},Position:function(){return yJ},Range:function(){return _J},Selection:function(){return bJ},SelectionDirection:function(){return xJ},Token:function(){return EJ},Uri:function(){return SJ},default:function(){return Ire},editor:function(){return TJ},languages:function(){return AJ}});class b{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?ve.isErrorNoTelemetry(e)?new ve(e.message+` +`}),staticAttributes:ce,staticUniforms:Nt}}var Js=Object.freeze({__proto__:null,prelude:js,background:hl,backgroundPattern:Xo,circle:Li,clippingMask:Yo,heatmap:Os,heatmapTexture:Cs,collisionBox:ba,collisionCircle:Yu,debug:pc,fill:Hu,fillOutline:wh,fillOutlinePattern:lh,fillPattern:fu,fillExtrusion:ru,fillExtrusionPattern:Tu,hillshadePrepare:wi,hillshade:er,line:Un,lineGradient:Wr,linePattern:Qr,lineSDF:_o,raster:us,symbolIcon:es,symbolSDF:Ma,symbolTextAndIcon:ga}),Kl=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function ya(G){for(var J=[],Q=0;Q>16,yn>>16],u_pixel_coord_lower:[65535&Nt,65535&yn]}}Ta.prototype.draw=function(G,J,Q,ce,He,Et,Nt,yn,yr,Sn,_i,Ri,Ki,Fo,Wo,Ui){var Uo,Hs=G.gl;if(!this.failedToCreate){for(var tl in G.program.set(this.program),G.setDepthMode(Q),G.setStencilMode(ce),G.setColorMode(He),G.setCullFace(Et),this.fixedUniforms)this.fixedUniforms[tl].set(Nt[tl]);Fo&&Fo.setUniforms(G,this.binderUniforms,Ri,{zoom:Ki});for(var qa=(Uo={},Uo[Hs.LINES]=2,Uo[Hs.TRIANGLES]=3,Uo[Hs.LINE_STRIP]=1,Uo)[J],Gl=0,bl=_i.get();Gl0?1-1/(1.001-Nt):-Nt),u_contrast_factor:(Et=He.paint.get("raster-contrast"),Et>0?1/(1-Et):1+Et),u_spin_weights:jf(He.paint.get("raster-hue-rotate"))};var Et,Nt};function jf(G){G*=Math.PI/180;var J=Math.sin(G),Q=Math.cos(G);return[(2*Q+1)/3,(-Math.sqrt(3)*J-Q+1)/3,(Math.sqrt(3)*J-Q+1)/3]}var _d,Qd=function(G,J,Q,ce,He,Et,Nt,yn,yr,Sn){var _i=He.transform;return{u_is_size_zoom_constant:+(G==="constant"||G==="source"),u_is_size_feature_constant:+(G==="constant"||G==="camera"),u_size_t:J?J.uSizeT:0,u_size:J?J.uSize:0,u_camera_to_center_distance:_i.cameraToCenterDistance,u_pitch:_i.pitch/360*2*Math.PI,u_rotate_symbol:+Q,u_aspect_ratio:_i.width/_i.height,u_fade_change:He.options.fadeDuration?He.symbolFadeChange:1,u_matrix:Et,u_label_plane_matrix:Nt,u_coord_matrix:yn,u_is_text:+yr,u_pitch_with_map:+ce,u_texsize:Sn,u_texture:0}},Md=function(G,J,Q,ce,He,Et,Nt,yn,yr,Sn,_i){var Ri=He.transform;return w.extend(Qd(G,J,Q,ce,He,Et,Nt,yn,yr,Sn),{u_gamma_scale:ce?Math.cos(Ri._pitch)*Ri.cameraToCenterDistance:1,u_device_pixel_ratio:w.browser.devicePixelRatio,u_is_halo:+_i})},jh=function(G,J,Q,ce,He,Et,Nt,yn,yr,Sn){return w.extend(Md(G,J,Q,ce,He,Et,Nt,yn,!0,yr,!0),{u_texsize_icon:Sn,u_texture_icon:1})},Bs=function(G,J,Q){return{u_matrix:G,u_opacity:J,u_color:Q}},Ua=function(G,J,Q,ce,He,Et){return w.extend(function(Nt,yn,yr,Sn){var _i=yr.imageManager.getPattern(Nt.from.toString()),Ri=yr.imageManager.getPattern(Nt.to.toString()),Ki=yr.imageManager.getPixelSize(),Fo=Ki.width,Wo=Ki.height,Ui=Math.pow(2,Sn.tileID.overscaledZ),Uo=Sn.tileSize*Math.pow(2,yr.transform.tileZoom)/Ui,Hs=Uo*(Sn.tileID.canonical.x+Sn.tileID.wrap*Ui),tl=Uo*Sn.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:_i.tl,u_pattern_br_a:_i.br,u_pattern_tl_b:Ri.tl,u_pattern_br_b:Ri.br,u_texsize:[Fo,Wo],u_mix:yn.t,u_pattern_size_a:_i.displaySize,u_pattern_size_b:Ri.displaySize,u_scale_a:yn.fromScale,u_scale_b:yn.toScale,u_tile_units_to_pixels:1/So(Sn,1,yr.transform.tileZoom),u_pixel_coord_upper:[Hs>>16,tl>>16],u_pixel_coord_lower:[65535&Hs,65535&tl]}}(ce,Et,Q,He),{u_matrix:G,u_opacity:J})},Ya={fillExtrusion:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_lightpos:new w.Uniform3f(G,J.u_lightpos),u_lightintensity:new w.Uniform1f(G,J.u_lightintensity),u_lightcolor:new w.Uniform3f(G,J.u_lightcolor),u_vertical_gradient:new w.Uniform1f(G,J.u_vertical_gradient),u_opacity:new w.Uniform1f(G,J.u_opacity)}},fillExtrusionPattern:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_lightpos:new w.Uniform3f(G,J.u_lightpos),u_lightintensity:new w.Uniform1f(G,J.u_lightintensity),u_lightcolor:new w.Uniform3f(G,J.u_lightcolor),u_vertical_gradient:new w.Uniform1f(G,J.u_vertical_gradient),u_height_factor:new w.Uniform1f(G,J.u_height_factor),u_image:new w.Uniform1i(G,J.u_image),u_texsize:new w.Uniform2f(G,J.u_texsize),u_pixel_coord_upper:new w.Uniform2f(G,J.u_pixel_coord_upper),u_pixel_coord_lower:new w.Uniform2f(G,J.u_pixel_coord_lower),u_scale:new w.Uniform3f(G,J.u_scale),u_fade:new w.Uniform1f(G,J.u_fade),u_opacity:new w.Uniform1f(G,J.u_opacity)}},fill:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix)}},fillPattern:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_image:new w.Uniform1i(G,J.u_image),u_texsize:new w.Uniform2f(G,J.u_texsize),u_pixel_coord_upper:new w.Uniform2f(G,J.u_pixel_coord_upper),u_pixel_coord_lower:new w.Uniform2f(G,J.u_pixel_coord_lower),u_scale:new w.Uniform3f(G,J.u_scale),u_fade:new w.Uniform1f(G,J.u_fade)}},fillOutline:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_world:new w.Uniform2f(G,J.u_world)}},fillOutlinePattern:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_world:new w.Uniform2f(G,J.u_world),u_image:new w.Uniform1i(G,J.u_image),u_texsize:new w.Uniform2f(G,J.u_texsize),u_pixel_coord_upper:new w.Uniform2f(G,J.u_pixel_coord_upper),u_pixel_coord_lower:new w.Uniform2f(G,J.u_pixel_coord_lower),u_scale:new w.Uniform3f(G,J.u_scale),u_fade:new w.Uniform1f(G,J.u_fade)}},circle:function(G,J){return{u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_scale_with_map:new w.Uniform1i(G,J.u_scale_with_map),u_pitch_with_map:new w.Uniform1i(G,J.u_pitch_with_map),u_extrude_scale:new w.Uniform2f(G,J.u_extrude_scale),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_matrix:new w.UniformMatrix4f(G,J.u_matrix)}},collisionBox:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_pixels_to_tile_units:new w.Uniform1f(G,J.u_pixels_to_tile_units),u_extrude_scale:new w.Uniform2f(G,J.u_extrude_scale),u_overscale_factor:new w.Uniform1f(G,J.u_overscale_factor)}},collisionCircle:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_inv_matrix:new w.UniformMatrix4f(G,J.u_inv_matrix),u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_viewport_size:new w.Uniform2f(G,J.u_viewport_size)}},debug:function(G,J){return{u_color:new w.UniformColor(G,J.u_color),u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_overlay:new w.Uniform1i(G,J.u_overlay),u_overlay_scale:new w.Uniform1f(G,J.u_overlay_scale)}},clippingMask:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix)}},heatmap:function(G,J){return{u_extrude_scale:new w.Uniform1f(G,J.u_extrude_scale),u_intensity:new w.Uniform1f(G,J.u_intensity),u_matrix:new w.UniformMatrix4f(G,J.u_matrix)}},heatmapTexture:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_world:new w.Uniform2f(G,J.u_world),u_image:new w.Uniform1i(G,J.u_image),u_color_ramp:new w.Uniform1i(G,J.u_color_ramp),u_opacity:new w.Uniform1f(G,J.u_opacity)}},hillshade:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_image:new w.Uniform1i(G,J.u_image),u_latrange:new w.Uniform2f(G,J.u_latrange),u_light:new w.Uniform2f(G,J.u_light),u_shadow:new w.UniformColor(G,J.u_shadow),u_highlight:new w.UniformColor(G,J.u_highlight),u_accent:new w.UniformColor(G,J.u_accent)}},hillshadePrepare:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_image:new w.Uniform1i(G,J.u_image),u_dimension:new w.Uniform2f(G,J.u_dimension),u_zoom:new w.Uniform1f(G,J.u_zoom),u_unpack:new w.Uniform4f(G,J.u_unpack)}},line:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_ratio:new w.Uniform1f(G,J.u_ratio),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_units_to_pixels:new w.Uniform2f(G,J.u_units_to_pixels)}},lineGradient:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_ratio:new w.Uniform1f(G,J.u_ratio),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_units_to_pixels:new w.Uniform2f(G,J.u_units_to_pixels),u_image:new w.Uniform1i(G,J.u_image),u_image_height:new w.Uniform1f(G,J.u_image_height)}},linePattern:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_texsize:new w.Uniform2f(G,J.u_texsize),u_ratio:new w.Uniform1f(G,J.u_ratio),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_image:new w.Uniform1i(G,J.u_image),u_units_to_pixels:new w.Uniform2f(G,J.u_units_to_pixels),u_scale:new w.Uniform3f(G,J.u_scale),u_fade:new w.Uniform1f(G,J.u_fade)}},lineSDF:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_ratio:new w.Uniform1f(G,J.u_ratio),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_units_to_pixels:new w.Uniform2f(G,J.u_units_to_pixels),u_patternscale_a:new w.Uniform2f(G,J.u_patternscale_a),u_patternscale_b:new w.Uniform2f(G,J.u_patternscale_b),u_sdfgamma:new w.Uniform1f(G,J.u_sdfgamma),u_image:new w.Uniform1i(G,J.u_image),u_tex_y_a:new w.Uniform1f(G,J.u_tex_y_a),u_tex_y_b:new w.Uniform1f(G,J.u_tex_y_b),u_mix:new w.Uniform1f(G,J.u_mix)}},raster:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_tl_parent:new w.Uniform2f(G,J.u_tl_parent),u_scale_parent:new w.Uniform1f(G,J.u_scale_parent),u_buffer_scale:new w.Uniform1f(G,J.u_buffer_scale),u_fade_t:new w.Uniform1f(G,J.u_fade_t),u_opacity:new w.Uniform1f(G,J.u_opacity),u_image0:new w.Uniform1i(G,J.u_image0),u_image1:new w.Uniform1i(G,J.u_image1),u_brightness_low:new w.Uniform1f(G,J.u_brightness_low),u_brightness_high:new w.Uniform1f(G,J.u_brightness_high),u_saturation_factor:new w.Uniform1f(G,J.u_saturation_factor),u_contrast_factor:new w.Uniform1f(G,J.u_contrast_factor),u_spin_weights:new w.Uniform3f(G,J.u_spin_weights)}},symbolIcon:function(G,J){return{u_is_size_zoom_constant:new w.Uniform1i(G,J.u_is_size_zoom_constant),u_is_size_feature_constant:new w.Uniform1i(G,J.u_is_size_feature_constant),u_size_t:new w.Uniform1f(G,J.u_size_t),u_size:new w.Uniform1f(G,J.u_size),u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_pitch:new w.Uniform1f(G,J.u_pitch),u_rotate_symbol:new w.Uniform1i(G,J.u_rotate_symbol),u_aspect_ratio:new w.Uniform1f(G,J.u_aspect_ratio),u_fade_change:new w.Uniform1f(G,J.u_fade_change),u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_label_plane_matrix:new w.UniformMatrix4f(G,J.u_label_plane_matrix),u_coord_matrix:new w.UniformMatrix4f(G,J.u_coord_matrix),u_is_text:new w.Uniform1i(G,J.u_is_text),u_pitch_with_map:new w.Uniform1i(G,J.u_pitch_with_map),u_texsize:new w.Uniform2f(G,J.u_texsize),u_texture:new w.Uniform1i(G,J.u_texture)}},symbolSDF:function(G,J){return{u_is_size_zoom_constant:new w.Uniform1i(G,J.u_is_size_zoom_constant),u_is_size_feature_constant:new w.Uniform1i(G,J.u_is_size_feature_constant),u_size_t:new w.Uniform1f(G,J.u_size_t),u_size:new w.Uniform1f(G,J.u_size),u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_pitch:new w.Uniform1f(G,J.u_pitch),u_rotate_symbol:new w.Uniform1i(G,J.u_rotate_symbol),u_aspect_ratio:new w.Uniform1f(G,J.u_aspect_ratio),u_fade_change:new w.Uniform1f(G,J.u_fade_change),u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_label_plane_matrix:new w.UniformMatrix4f(G,J.u_label_plane_matrix),u_coord_matrix:new w.UniformMatrix4f(G,J.u_coord_matrix),u_is_text:new w.Uniform1i(G,J.u_is_text),u_pitch_with_map:new w.Uniform1i(G,J.u_pitch_with_map),u_texsize:new w.Uniform2f(G,J.u_texsize),u_texture:new w.Uniform1i(G,J.u_texture),u_gamma_scale:new w.Uniform1f(G,J.u_gamma_scale),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_is_halo:new w.Uniform1i(G,J.u_is_halo)}},symbolTextAndIcon:function(G,J){return{u_is_size_zoom_constant:new w.Uniform1i(G,J.u_is_size_zoom_constant),u_is_size_feature_constant:new w.Uniform1i(G,J.u_is_size_feature_constant),u_size_t:new w.Uniform1f(G,J.u_size_t),u_size:new w.Uniform1f(G,J.u_size),u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_pitch:new w.Uniform1f(G,J.u_pitch),u_rotate_symbol:new w.Uniform1i(G,J.u_rotate_symbol),u_aspect_ratio:new w.Uniform1f(G,J.u_aspect_ratio),u_fade_change:new w.Uniform1f(G,J.u_fade_change),u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_label_plane_matrix:new w.UniformMatrix4f(G,J.u_label_plane_matrix),u_coord_matrix:new w.UniformMatrix4f(G,J.u_coord_matrix),u_is_text:new w.Uniform1i(G,J.u_is_text),u_pitch_with_map:new w.Uniform1i(G,J.u_pitch_with_map),u_texsize:new w.Uniform2f(G,J.u_texsize),u_texsize_icon:new w.Uniform2f(G,J.u_texsize_icon),u_texture:new w.Uniform1i(G,J.u_texture),u_texture_icon:new w.Uniform1i(G,J.u_texture_icon),u_gamma_scale:new w.Uniform1f(G,J.u_gamma_scale),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_is_halo:new w.Uniform1i(G,J.u_is_halo)}},background:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_opacity:new w.Uniform1f(G,J.u_opacity),u_color:new w.UniformColor(G,J.u_color)}},backgroundPattern:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_opacity:new w.Uniform1f(G,J.u_opacity),u_image:new w.Uniform1i(G,J.u_image),u_pattern_tl_a:new w.Uniform2f(G,J.u_pattern_tl_a),u_pattern_br_a:new w.Uniform2f(G,J.u_pattern_br_a),u_pattern_tl_b:new w.Uniform2f(G,J.u_pattern_tl_b),u_pattern_br_b:new w.Uniform2f(G,J.u_pattern_br_b),u_texsize:new w.Uniform2f(G,J.u_texsize),u_mix:new w.Uniform1f(G,J.u_mix),u_pattern_size_a:new w.Uniform2f(G,J.u_pattern_size_a),u_pattern_size_b:new w.Uniform2f(G,J.u_pattern_size_b),u_scale_a:new w.Uniform1f(G,J.u_scale_a),u_scale_b:new w.Uniform1f(G,J.u_scale_b),u_pixel_coord_upper:new w.Uniform2f(G,J.u_pixel_coord_upper),u_pixel_coord_lower:new w.Uniform2f(G,J.u_pixel_coord_lower),u_tile_units_to_pixels:new w.Uniform1f(G,J.u_tile_units_to_pixels)}}};function ml(G,J,Q,ce,He,Et,Nt){for(var yn=G.context,yr=yn.gl,Sn=G.useProgram("collisionBox"),_i=[],Ri=0,Ki=0,Fo=0;Fo0){var Gl=w.create(),bl=Hs;w.mul(Gl,Uo.placementInvProjMatrix,G.transform.glCoordMatrix),w.mul(Gl,Gl,Uo.placementViewportMatrix),_i.push({circleArray:qa,circleOffset:Ki,transform:bl,invTransform:Gl}),Ki=Ri+=qa.length/4}tl&&Sn.draw(yn,yr.LINES,$n.disabled,Ar.disabled,G.colorModeForRenderPass(),dr.disabled,Iu(Hs,G.transform,Ui),Q.id,tl.layoutVertexBuffer,tl.indexBuffer,tl.segments,null,G.transform.zoom,null,null,tl.collisionVertexBuffer)}}if(Nt&&_i.length){var bu=G.useProgram("collisionCircle"),zu=new w.StructArrayLayout2f1f2i16;zu.resize(4*Ri),zu._trim();for(var ic=0,Ju=0,oh=_i;Ju=0&&(Wo[Uo.associatedIconIndex]={shiftedAnchor:zu,angle:ic})}else Si(Uo.numGlyphs,Ki)}if(_i){Fo.clear();for(var oh=G.icon.placedSymbolArray,vh=0;vh0){var Nt=w.browser.now(),yn=(Nt-G.timeAdded)/Et,yr=J?(Nt-J.timeAdded)/Et:-1,Sn=Q.getSource(),_i=He.coveringZoomLevel({tileSize:Sn.tileSize,roundZoom:Sn.roundZoom}),Ri=!J||Math.abs(J.tileID.overscaledZ-_i)>Math.abs(G.tileID.overscaledZ-_i),Ki=Ri&&G.refreshedUponExpiration?1:w.clamp(Ri?yn:1-yr,0,1);return G.refreshedUponExpiration&&yn>=1&&(G.refreshedUponExpiration=!1),J?{opacity:1,mix:1-Ki}:{opacity:Ki,mix:0}}return{opacity:1,mix:0}}var Hh=new w.Color(1,0,0,1),Cd=new w.Color(0,1,0,1),Ah=new w.Color(0,0,1,1),bh=new w.Color(1,0,1,1),su=new w.Color(0,1,1,1);function nd(G,J,Q,ce){pu(G,0,J+Q/2,G.transform.width,Q,ce)}function el(G,J,Q,ce){pu(G,J-Q/2,0,Q,G.transform.height,ce)}function pu(G,J,Q,ce,He,Et){var Nt=G.context,yn=Nt.gl;yn.enable(yn.SCISSOR_TEST),yn.scissor(J*w.browser.devicePixelRatio,Q*w.browser.devicePixelRatio,ce*w.browser.devicePixelRatio,He*w.browser.devicePixelRatio),Nt.clear({color:Et}),yn.disable(yn.SCISSOR_TEST)}function mh(G,J,Q){var ce=G.context,He=ce.gl,Et=Q.posMatrix,Nt=G.useProgram("debug"),yn=$n.disabled,yr=Ar.disabled,Sn=G.colorModeForRenderPass();ce.activeTexture.set(He.TEXTURE0),G.emptyTexture.bind(He.LINEAR,He.CLAMP_TO_EDGE),Nt.draw(ce,He.LINE_STRIP,yn,yr,Sn,dr.disabled,Vc(Et,w.Color.red),"$debug",G.debugBuffer,G.tileBorderIndexBuffer,G.debugSegments);var _i=J.getTileByID(Q.key).latestRawTileData,Ri=Math.floor((_i&&_i.byteLength||0)/1024),Ki=J.getTile(Q).tileSize,Fo=512/Math.min(Ki,512)*(Q.overscaledZ/G.transform.zoom)*.5,Wo=Q.canonical.toString();Q.overscaledZ!==Q.canonical.z&&(Wo+=" => "+Q.overscaledZ),function(Ui,Uo){Ui.initDebugOverlayCanvas();var Hs=Ui.debugOverlayCanvas,tl=Ui.context.gl,qa=Ui.debugOverlayCanvas.getContext("2d");qa.clearRect(0,0,Hs.width,Hs.height),qa.shadowColor="white",qa.shadowBlur=2,qa.lineWidth=1.5,qa.strokeStyle="white",qa.textBaseline="top",qa.font="bold 36px Open Sans, sans-serif",qa.fillText(Uo,5,5),qa.strokeText(Uo,5,5),Ui.debugOverlayTexture.update(Hs),Ui.debugOverlayTexture.bind(tl.LINEAR,tl.CLAMP_TO_EDGE)}(G,Wo+" "+Ri+"kb"),Nt.draw(ce,He.TRIANGLES,yn,yr,Dr.alphaBlended,dr.disabled,Vc(Et,w.Color.transparent,Fo),"$debug",G.debugBuffer,G.quadTriangleIndexBuffer,G.debugSegments)}var Ud={symbol:function(G,J,Q,ce,He){if(G.renderPass==="translucent"){var Et=Ar.disabled,Nt=G.colorModeForRenderPass();Q.layout.get("text-variable-anchor")&&function(yn,yr,Sn,_i,Ri,Ki,Fo){for(var Wo=yr.transform,Ui=Ri==="map",Uo=Ki==="map",Hs=0,tl=yn;Hs256&&this.clearStencil(),Q.setColorMode(Dr.disabled),Q.setDepthMode($n.disabled);var He=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var Et=0,Nt=J;Et256&&this.clearStencil();var G=this.nextStencilID++,J=this.context.gl;return new Ar({func:J.NOTEQUAL,mask:255},G,255,J.KEEP,J.KEEP,J.REPLACE)},Qa.prototype.stencilModeForClipping=function(G){var J=this.context.gl;return new Ar({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[G.key],0,J.KEEP,J.KEEP,J.REPLACE)},Qa.prototype.stencilConfigForOverlap=function(G){var J,Q=this.context.gl,ce=G.sort(function(yr,Sn){return Sn.overscaledZ-yr.overscaledZ}),He=ce[ce.length-1].overscaledZ,Et=ce[0].overscaledZ-He+1;if(Et>1){this.currentStencilSource=void 0,this.nextStencilID+Et>256&&this.clearStencil();for(var Nt={},yn=0;yn=0;this.currentLayer--){var qa=this.style._layers[ce[this.currentLayer]],Gl=He[qa.source],bl=Sn[qa.source];this._renderTileClippingMasks(qa,bl),this.renderLayer(this,Gl,qa,bl)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?J.pop():null},Qa.prototype.isPatternMissing=function(G){if(!G)return!1;if(!G.from||!G.to)return!0;var J=this.imageManager.getPattern(G.from.toString()),Q=this.imageManager.getPattern(G.to.toString());return!J||!Q},Qa.prototype.useProgram=function(G,J){this.cache=this.cache||{};var Q=""+G+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[Q]||(this.cache[Q]=new Ta(this.context,G,Js[G],J,Ya[G],this._showOverdrawInspector)),this.cache[Q]},Qa.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()},Qa.prototype.setBaseState=function(){var G=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(G.FUNC_ADD)},Qa.prototype.initDebugOverlayCanvas=function(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=w.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new w.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},Qa.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var mu=function(G,J){this.points=G,this.planes=J};mu.fromInvProjectionMatrix=function(G,J,Q){var ce=Math.pow(2,Q),He=[[-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(function(Nt){return w.transformMat4([],Nt,G)}).map(function(Nt){return w.scale$1([],Nt,1/Nt[3]/J*ce)}),Et=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(Nt){var yn=w.sub([],He[Nt[0]],He[Nt[1]]),yr=w.sub([],He[Nt[2]],He[Nt[1]]),Sn=w.normalize([],w.cross([],yn,yr)),_i=-w.dot(Sn,He[Nt[1]]);return Sn.concat(_i)});return new mu(He,Et)};var Dl=function(G,J){this.min=G,this.max=J,this.center=w.scale$2([],w.add([],this.min,this.max),.5)};Dl.prototype.quadrant=function(G){for(var J=[G%2==0,G<2],Q=w.clone$2(this.min),ce=w.clone$2(this.max),He=0;He=0;if(Et===0)return 0;Et!==J.length&&(Q=!1)}if(Q)return 2;for(var yn=0;yn<3;yn++){for(var yr=Number.MAX_VALUE,Sn=-Number.MAX_VALUE,_i=0;_ithis.max[yn]-this.min[yn])return 0}return 1};var uu=function(G,J,Q,ce){if(G===void 0&&(G=0),J===void 0&&(J=0),Q===void 0&&(Q=0),ce===void 0&&(ce=0),isNaN(G)||G<0||isNaN(J)||J<0||isNaN(Q)||Q<0||isNaN(ce)||ce<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=G,this.bottom=J,this.left=Q,this.right=ce};uu.prototype.interpolate=function(G,J,Q){return J.top!=null&&G.top!=null&&(this.top=w.number(G.top,J.top,Q)),J.bottom!=null&&G.bottom!=null&&(this.bottom=w.number(G.bottom,J.bottom,Q)),J.left!=null&&G.left!=null&&(this.left=w.number(G.left,J.left,Q)),J.right!=null&&G.right!=null&&(this.right=w.number(G.right,J.right,Q)),this},uu.prototype.getCenter=function(G,J){var Q=w.clamp((this.left+G-this.right)/2,0,G),ce=w.clamp((this.top+J-this.bottom)/2,0,J);return new w.Point(Q,ce)},uu.prototype.equals=function(G){return this.top===G.top&&this.bottom===G.bottom&&this.left===G.left&&this.right===G.right},uu.prototype.clone=function(){return new uu(this.top,this.bottom,this.left,this.right)},uu.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Au=function(G,J,Q,ce,He){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=He===void 0||He,this._minZoom=G||0,this._maxZoom=J||22,this._minPitch=Q==null?0:Q,this._maxPitch=ce==null?60:ce,this.setMaxBounds(),this.width=0,this.height=0,this._center=new w.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new uu,this._posMatrixCache={},this._alignedPosMatrixCache={}},xc={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}};Au.prototype.clone=function(){var G=new Au(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return G.tileSize=this.tileSize,G.latRange=this.latRange,G.width=this.width,G.height=this.height,G._center=this._center,G.zoom=this.zoom,G.angle=this.angle,G._fov=this._fov,G._pitch=this._pitch,G._unmodified=this._unmodified,G._edgeInsets=this._edgeInsets.clone(),G._calcMatrices(),G},xc.minZoom.get=function(){return this._minZoom},xc.minZoom.set=function(G){this._minZoom!==G&&(this._minZoom=G,this.zoom=Math.max(this.zoom,G))},xc.maxZoom.get=function(){return this._maxZoom},xc.maxZoom.set=function(G){this._maxZoom!==G&&(this._maxZoom=G,this.zoom=Math.min(this.zoom,G))},xc.minPitch.get=function(){return this._minPitch},xc.minPitch.set=function(G){this._minPitch!==G&&(this._minPitch=G,this.pitch=Math.max(this.pitch,G))},xc.maxPitch.get=function(){return this._maxPitch},xc.maxPitch.set=function(G){this._maxPitch!==G&&(this._maxPitch=G,this.pitch=Math.min(this.pitch,G))},xc.renderWorldCopies.get=function(){return this._renderWorldCopies},xc.renderWorldCopies.set=function(G){G===void 0?G=!0:G===null&&(G=!1),this._renderWorldCopies=G},xc.worldSize.get=function(){return this.tileSize*this.scale},xc.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},xc.size.get=function(){return new w.Point(this.width,this.height)},xc.bearing.get=function(){return-this.angle/Math.PI*180},xc.bearing.set=function(G){var J=-w.wrap(G,-180,180)*Math.PI/180;this.angle!==J&&(this._unmodified=!1,this.angle=J,this._calcMatrices(),this.rotationMatrix=w.create$2(),w.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},xc.pitch.get=function(){return this._pitch/Math.PI*180},xc.pitch.set=function(G){var J=w.clamp(G,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==J&&(this._unmodified=!1,this._pitch=J,this._calcMatrices())},xc.fov.get=function(){return this._fov/Math.PI*180},xc.fov.set=function(G){G=Math.max(.01,Math.min(60,G)),this._fov!==G&&(this._unmodified=!1,this._fov=G/180*Math.PI,this._calcMatrices())},xc.zoom.get=function(){return this._zoom},xc.zoom.set=function(G){var J=Math.min(Math.max(G,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())},xc.center.get=function(){return this._center},xc.center.set=function(G){G.lat===this._center.lat&&G.lng===this._center.lng||(this._unmodified=!1,this._center=G,this._constrain(),this._calcMatrices())},xc.padding.get=function(){return this._edgeInsets.toJSON()},xc.padding.set=function(G){this._edgeInsets.equals(G)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,G,1),this._calcMatrices())},xc.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Au.prototype.isPaddingEqual=function(G){return this._edgeInsets.equals(G)},Au.prototype.interpolatePadding=function(G,J,Q){this._unmodified=!1,this._edgeInsets.interpolate(G,J,Q),this._constrain(),this._calcMatrices()},Au.prototype.coveringZoomLevel=function(G){var J=(G.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/G.tileSize));return Math.max(0,J)},Au.prototype.getVisibleUnwrappedCoordinates=function(G){var J=[new w.UnwrappedTileID(0,G)];if(this._renderWorldCopies)for(var Q=this.pointCoordinate(new w.Point(0,0)),ce=this.pointCoordinate(new w.Point(this.width,0)),He=this.pointCoordinate(new w.Point(this.width,this.height)),Et=this.pointCoordinate(new w.Point(0,this.height)),Nt=Math.floor(Math.min(Q.x,ce.x,He.x,Et.x)),yn=Math.floor(Math.max(Q.x,ce.x,He.x,Et.x)),yr=Nt-1;yr<=yn+1;yr++)yr!==0&&J.push(new w.UnwrappedTileID(yr,G));return J},Au.prototype.coveringTiles=function(G){var J=this.coveringZoomLevel(G),Q=J;if(G.minzoom!==void 0&&JG.maxzoom&&(J=G.maxzoom);var ce=w.MercatorCoordinate.fromLngLat(this.center),He=Math.pow(2,J),Et=[He*ce.x,He*ce.y,0],Nt=mu.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),yn=G.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(yn=J);var yr=function(Ju){return{aabb:new Dl([Ju*He,0,0],[(Ju+1)*He,He,0]),zoom:0,x:0,y:0,wrap:Ju,fullyVisible:!1}},Sn=[],_i=[],Ri=J,Ki=G.reparseOverscaled?Q:J;if(this._renderWorldCopies)for(var Fo=1;Fo<=3;Fo++)Sn.push(yr(-Fo)),Sn.push(yr(Fo));for(Sn.push(yr(0));Sn.length>0;){var Wo=Sn.pop(),Ui=Wo.x,Uo=Wo.y,Hs=Wo.fullyVisible;if(!Hs){var tl=Wo.aabb.intersects(Nt);if(tl===0)continue;Hs=tl===2}var qa=Wo.aabb.distanceX(Et),Gl=Wo.aabb.distanceY(Et),bl=Math.max(Math.abs(qa),Math.abs(Gl));if(Wo.zoom===Ri||bl>3+(1<=yn)_i.push({tileID:new w.OverscaledTileID(Wo.zoom===Ri?Ki:Wo.zoom,Wo.wrap,Wo.zoom,Ui,Uo),distanceSq:w.sqrLen([Et[0]-.5-Ui,Et[1]-.5-Uo])});else for(var bu=0;bu<4;bu++){var zu=(Ui<<1)+bu%2,ic=(Uo<<1)+(bu>>1);Sn.push({aabb:Wo.aabb.quadrant(bu),zoom:Wo.zoom+1,x:zu,y:ic,wrap:Wo.wrap,fullyVisible:Hs})}}return _i.sort(function(Ju,oh){return Ju.distanceSq-oh.distanceSq}).map(function(Ju){return Ju.tileID})},Au.prototype.resize=function(G,J){this.width=G,this.height=J,this.pixelsToGLUnits=[2/G,-2/J],this._constrain(),this._calcMatrices()},xc.unmodified.get=function(){return this._unmodified},Au.prototype.zoomScale=function(G){return Math.pow(2,G)},Au.prototype.scaleZoom=function(G){return Math.log(G)/Math.LN2},Au.prototype.project=function(G){var J=w.clamp(G.lat,-this.maxValidLatitude,this.maxValidLatitude);return new w.Point(w.mercatorXfromLng(G.lng)*this.worldSize,w.mercatorYfromLat(J)*this.worldSize)},Au.prototype.unproject=function(G){return new w.MercatorCoordinate(G.x/this.worldSize,G.y/this.worldSize).toLngLat()},xc.point.get=function(){return this.project(this.center)},Au.prototype.setLocationAtPoint=function(G,J){var Q=this.pointCoordinate(J),ce=this.pointCoordinate(this.centerPoint),He=this.locationCoordinate(G),Et=new w.MercatorCoordinate(He.x-(Q.x-ce.x),He.y-(Q.y-ce.y));this.center=this.coordinateLocation(Et),this._renderWorldCopies&&(this.center=this.center.wrap())},Au.prototype.locationPoint=function(G){return this.coordinatePoint(this.locationCoordinate(G))},Au.prototype.pointLocation=function(G){return this.coordinateLocation(this.pointCoordinate(G))},Au.prototype.locationCoordinate=function(G){return w.MercatorCoordinate.fromLngLat(G)},Au.prototype.coordinateLocation=function(G){return G.toLngLat()},Au.prototype.pointCoordinate=function(G){var J=[G.x,G.y,0,1],Q=[G.x,G.y,1,1];w.transformMat4(J,J,this.pixelMatrixInverse),w.transformMat4(Q,Q,this.pixelMatrixInverse);var ce=J[3],He=Q[3],Et=J[1]/ce,Nt=Q[1]/He,yn=J[2]/ce,yr=Q[2]/He,Sn=yn===yr?0:(0-yn)/(yr-yn);return new w.MercatorCoordinate(w.number(J[0]/ce,Q[0]/He,Sn)/this.worldSize,w.number(Et,Nt,Sn)/this.worldSize)},Au.prototype.coordinatePoint=function(G){var J=[G.x*this.worldSize,G.y*this.worldSize,0,1];return w.transformMat4(J,J,this.pixelMatrix),new w.Point(J[0]/J[3],J[1]/J[3])},Au.prototype.getBounds=function(){return new w.LngLatBounds().extend(this.pointLocation(new w.Point(0,0))).extend(this.pointLocation(new w.Point(this.width,0))).extend(this.pointLocation(new w.Point(this.width,this.height))).extend(this.pointLocation(new w.Point(0,this.height)))},Au.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new w.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Au.prototype.setMaxBounds=function(G){G?(this.lngRange=[G.getWest(),G.getEast()],this.latRange=[G.getSouth(),G.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Au.prototype.calculatePosMatrix=function(G,J){J===void 0&&(J=!1);var Q=G.key,ce=J?this._alignedPosMatrixCache:this._posMatrixCache;if(ce[Q])return ce[Q];var He=G.canonical,Et=this.worldSize/this.zoomScale(He.z),Nt=He.x+Math.pow(2,He.z)*G.wrap,yn=w.identity(new Float64Array(16));return w.translate(yn,yn,[Nt*Et,He.y*Et,0]),w.scale(yn,yn,[Et/w.EXTENT,Et/w.EXTENT,1]),w.multiply(yn,J?this.alignedProjMatrix:this.projMatrix,yn),ce[Q]=new Float32Array(yn),ce[Q]},Au.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Au.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var G,J,Q,ce,He=-90,Et=90,Nt=-180,yn=180,yr=this.size,Sn=this._unmodified;if(this.latRange){var _i=this.latRange;He=w.mercatorYfromLat(_i[1])*this.worldSize,G=(Et=w.mercatorYfromLat(_i[0])*this.worldSize)-HeEt&&(ce=Et-Ui)}if(this.lngRange){var Uo=Ki.x,Hs=yr.x/2;Uo-Hsyn&&(Q=yn-Hs)}Q===void 0&&ce===void 0||(this.center=this.unproject(new w.Point(Q!==void 0?Q:Ki.x,ce!==void 0?ce:Ki.y))),this._unmodified=Sn,this._constraining=!1}},Au.prototype._calcMatrices=function(){if(this.height){var G=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var J=Math.PI/2+this._pitch,Q=this._fov*(.5+G.y/this.height),ce=Math.sin(Q)*this.cameraToCenterDistance/Math.sin(w.clamp(Math.PI-J-Q,.01,Math.PI-.01)),He=this.point,Et=He.x,Nt=He.y,yn=1.01*(Math.cos(Math.PI/2-this._pitch)*ce+this.cameraToCenterDistance),yr=this.height/50,Sn=new Float64Array(16);w.perspective(Sn,this._fov,this.width/this.height,yr,yn),Sn[8]=2*-G.x/this.width,Sn[9]=2*G.y/this.height,w.scale(Sn,Sn,[1,-1,1]),w.translate(Sn,Sn,[0,0,-this.cameraToCenterDistance]),w.rotateX(Sn,Sn,this._pitch),w.rotateZ(Sn,Sn,this.angle),w.translate(Sn,Sn,[-Et,-Nt,0]),this.mercatorMatrix=w.scale([],Sn,[this.worldSize,this.worldSize,this.worldSize]),w.scale(Sn,Sn,[1,1,w.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Sn,this.invProjMatrix=w.invert([],this.projMatrix);var _i=this.width%2/2,Ri=this.height%2/2,Ki=Math.cos(this.angle),Fo=Math.sin(this.angle),Wo=Et-Math.round(Et)+Ki*_i+Fo*Ri,Ui=Nt-Math.round(Nt)+Ki*Ri+Fo*_i,Uo=new Float64Array(Sn);if(w.translate(Uo,Uo,[Wo>.5?Wo-1:Wo,Ui>.5?Ui-1:Ui,0]),this.alignedProjMatrix=Uo,Sn=w.create(),w.scale(Sn,Sn,[this.width/2,-this.height/2,1]),w.translate(Sn,Sn,[1,-1,0]),this.labelPlaneMatrix=Sn,Sn=w.create(),w.scale(Sn,Sn,[1,-1,1]),w.translate(Sn,Sn,[-1,-1,0]),w.scale(Sn,Sn,[2/this.width,2/this.height,1]),this.glCoordMatrix=Sn,this.pixelMatrix=w.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(Sn=w.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=Sn,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Au.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var G=this.pointCoordinate(new w.Point(0,0)),J=[G.x*this.worldSize,G.y*this.worldSize,0,1];return w.transformMat4(J,J,this.pixelMatrix)[3]/this.cameraToCenterDistance},Au.prototype.getCameraPoint=function(){var G=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new w.Point(0,G))},Au.prototype.getCameraQueryGeometry=function(G){var J=this.getCameraPoint();if(G.length===1)return[G[0],J];for(var Q=J.x,ce=J.y,He=J.x,Et=J.y,Nt=0,yn=G;Nt=3&&!G.some(function(Q){return isNaN(Q)})){var J=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(G[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+G[2],+G[1]],zoom:+G[0],bearing:J,pitch:+(G[4]||0)}),!0}return!1},yh.prototype._updateHashUnthrottled=function(){var G=w.window.location.href.replace(/(#.+)?$/,this.getHashString());try{w.window.history.replaceState(w.window.history.state,null,G)}catch(J){}};var xh={linearity:.3,easing:w.bezier(0,0,.3,1)},ef=w.extend({deceleration:2500,maxSpeed:1400},xh),qd=w.extend({deceleration:20,maxSpeed:1400},xh),ld=w.extend({deceleration:1e3,maxSpeed:360},xh),hf=w.extend({deceleration:1e3,maxSpeed:90},xh),Od=function(G){this._map=G,this.clear()};function yc(G,J){(!G.duration||G.duration0&&J-G[0].time>160;)G.shift()},Od.prototype._onMoveEnd=function(G){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var J={zoom:0,bearing:0,pitch:0,pan:new w.Point(0,0),pinchAround:void 0,around:void 0},Q=0,ce=this._inertiaBuffer;Q=this._clickTolerance||this._map.fire(new rh(G.type,this._map,G))},Yc.prototype.dblclick=function(G){return this._firePreventable(new rh(G.type,this._map,G))},Yc.prototype.mouseover=function(G){this._map.fire(new rh(G.type,this._map,G))},Yc.prototype.mouseout=function(G){this._map.fire(new rh(G.type,this._map,G))},Yc.prototype.touchstart=function(G){return this._firePreventable(new Mf(G.type,this._map,G))},Yc.prototype.touchmove=function(G){this._map.fire(new Mf(G.type,this._map,G))},Yc.prototype.touchend=function(G){this._map.fire(new Mf(G.type,this._map,G))},Yc.prototype.touchcancel=function(G){this._map.fire(new Mf(G.type,this._map,G))},Yc.prototype._firePreventable=function(G){if(this._map.fire(G),G.defaultPrevented)return{}},Yc.prototype.isEnabled=function(){return!0},Yc.prototype.isActive=function(){return!1},Yc.prototype.enable=function(){},Yc.prototype.disable=function(){};var ih=function(G){this._map=G};ih.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},ih.prototype.mousemove=function(G){this._map.fire(new rh(G.type,this._map,G))},ih.prototype.mousedown=function(){this._delayContextMenu=!0},ih.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new rh("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},ih.prototype.contextmenu=function(G){this._delayContextMenu?this._contextMenuEvent=G:this._map.fire(new rh(G.type,this._map,G)),this._map.listens("contextmenu")&&G.preventDefault()},ih.prototype.isEnabled=function(){return!0},ih.prototype.isActive=function(){return!1},ih.prototype.enable=function(){},ih.prototype.disable=function(){};var Sd=function(G,J){this._map=G,this._el=G.getCanvasContainer(),this._container=G.getContainer(),this._clickTolerance=J.clickTolerance||1};function Pl(G,J){for(var Q={},ce=0;cethis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=G.timeStamp),Q.length===this.numTouches&&(this.centroid=function(ce){for(var He=new w.Point(0,0),Et=0,Nt=ce;Et30)&&(this.aborted=!0)}}},ys.prototype.touchend=function(G,J,Q){if((!this.centroid||G.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){var ce=!this.aborted&&this.centroid;if(this.reset(),ce)return ce}};var Oc=function(G){this.singleTap=new ys(G),this.numTaps=G.numTaps,this.reset()};Oc.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Oc.prototype.touchstart=function(G,J,Q){this.singleTap.touchstart(G,J,Q)},Oc.prototype.touchmove=function(G,J,Q){this.singleTap.touchmove(G,J,Q)},Oc.prototype.touchend=function(G,J,Q){var ce=this.singleTap.touchend(G,J,Q);if(ce){var He=G.timeStamp-this.lastTime<500,Et=!this.lastTap||this.lastTap.dist(ce)<30;if(He&&Et||this.reset(),this.count++,this.lastTime=G.timeStamp,this.lastTap=ce,this.count===this.numTaps)return this.reset(),ce}};var Oi=function(){this._zoomIn=new Oc({numTouches:1,numTaps:2}),this._zoomOut=new Oc({numTouches:2,numTaps:1}),this.reset()};Oi.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Oi.prototype.touchstart=function(G,J,Q){this._zoomIn.touchstart(G,J,Q),this._zoomOut.touchstart(G,J,Q)},Oi.prototype.touchmove=function(G,J,Q){this._zoomIn.touchmove(G,J,Q),this._zoomOut.touchmove(G,J,Q)},Oi.prototype.touchend=function(G,J,Q){var ce=this,He=this._zoomIn.touchend(G,J,Q),Et=this._zoomOut.touchend(G,J,Q);return He?(this._active=!0,G.preventDefault(),setTimeout(function(){return ce.reset()},0),{cameraAnimation:function(Nt){return Nt.easeTo({duration:300,zoom:Nt.getZoom()+1,around:Nt.unproject(He)},{originalEvent:G})}}):Et?(this._active=!0,G.preventDefault(),setTimeout(function(){return ce.reset()},0),{cameraAnimation:function(Nt){return Nt.easeTo({duration:300,zoom:Nt.getZoom()-1,around:Nt.unproject(Et)},{originalEvent:G})}}):void 0},Oi.prototype.touchcancel=function(){this.reset()},Oi.prototype.enable=function(){this._enabled=!0},Oi.prototype.disable=function(){this._enabled=!1,this.reset()},Oi.prototype.isEnabled=function(){return this._enabled},Oi.prototype.isActive=function(){return this._active};var $p={0:1,2:2},gc=function(G){this.reset(),this._clickTolerance=G.clickTolerance||1};gc.prototype.blur=function(){this.reset()},gc.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},gc.prototype._correctButton=function(G,J){return!1},gc.prototype._move=function(G,J){return{}},gc.prototype.mousedown=function(G,J){if(!this._lastPoint){var Q=B.mouseButton(G);this._correctButton(G,Q)&&(this._lastPoint=J,this._eventButton=Q)}},gc.prototype.mousemoveWindow=function(G,J){var Q=this._lastPoint;if(Q){if(G.preventDefault(),function(ce,He){var Et=$p[He];return ce.buttons===void 0||(ce.buttons&Et)!==Et}(G,this._eventButton))this.reset();else if(this._moved||!(J.dist(Q)0&&(this._active=!0);var ce=Pl(Q,J),He=new w.Point(0,0),Et=new w.Point(0,0),Nt=0;for(var yn in ce){var yr=ce[yn],Sn=this._touches[yn];Sn&&(He._add(yr),Et._add(yr.sub(Sn)),Nt++,ce[yn]=yr)}if(this._touches=ce,!(NtMath.abs(G.x)}var Wh=function(G){function J(){G.apply(this,arguments)}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.prototype.reset=function(){G.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},J.prototype._start=function(Q){this._lastPoints=Q,hp(Q[0].sub(Q[1]))&&(this._valid=!1)},J.prototype._move=function(Q,ce,He){var Et=Q[0].sub(this._lastPoints[0]),Nt=Q[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(Et,Nt,He.timeStamp),this._valid)return this._lastPoints=Q,this._active=!0,{pitchDelta:(Et.y+Nt.y)/2*-.5}},J.prototype.gestureBeginsVertically=function(Q,ce,He){if(this._valid!==void 0)return this._valid;var Et=Q.mag()>=2,Nt=ce.mag()>=2;if(Et||Nt){if(!Et||!Nt)return this._firstMove===void 0&&(this._firstMove=He),He-this._firstMove<100&&void 0;var yn=Q.y>0==ce.y>0;return hp(Q)&&hp(ce)&&yn}},J}(xf),Cp={panStep:100,bearingStep:15,pitchStep:10},fg=function(){var G=Cp;this._panStep=G.panStep,this._bearingStep=G.bearingStep,this._pitchStep=G.pitchStep,this._rotationDisabled=!1};function Mp(G){return G*(2-G)}fg.prototype.blur=function(){this.reset()},fg.prototype.reset=function(){this._active=!1},fg.prototype.keydown=function(G){var J=this;if(!(G.altKey||G.ctrlKey||G.metaKey)){var Q=0,ce=0,He=0,Et=0,Nt=0;switch(G.keyCode){case 61:case 107:case 171:case 187:Q=1;break;case 189:case 109:case 173:Q=-1;break;case 37:G.shiftKey?ce=-1:(G.preventDefault(),Et=-1);break;case 39:G.shiftKey?ce=1:(G.preventDefault(),Et=1);break;case 38:G.shiftKey?He=1:(G.preventDefault(),Nt=-1);break;case 40:G.shiftKey?He=-1:(G.preventDefault(),Nt=1);break;default:return}return this._rotationDisabled&&(ce=0,He=0),{cameraAnimation:function(yn){var yr=yn.getZoom();yn.easeTo({duration:300,easeId:"keyboardHandler",easing:Mp,zoom:Q?Math.round(yr)+Q*(G.shiftKey?2:1):yr,bearing:yn.getBearing()+ce*J._bearingStep,pitch:yn.getPitch()+He*J._pitchStep,offset:[-Et*J._panStep,-Nt*J._panStep],center:yn.getCenter()},{originalEvent:G})}}}},fg.prototype.enable=function(){this._enabled=!0},fg.prototype.disable=function(){this._enabled=!1,this.reset()},fg.prototype.isEnabled=function(){return this._enabled},fg.prototype.isActive=function(){return this._active},fg.prototype.disableRotation=function(){this._rotationDisabled=!0},fg.prototype.enableRotation=function(){this._rotationDisabled=!1};var gd=function(G,J){this._map=G,this._el=G.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,w.bindAll(["_onTimeout"],this)};gd.prototype.setZoomRate=function(G){this._defaultZoomRate=G},gd.prototype.setWheelZoomRate=function(G){this._wheelZoomRate=G},gd.prototype.isEnabled=function(){return!!this._enabled},gd.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},gd.prototype.isZooming=function(){return!!this._zooming},gd.prototype.enable=function(G){this.isEnabled()||(this._enabled=!0,this._aroundCenter=G&&G.around==="center")},gd.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},gd.prototype.wheel=function(G){if(this.isEnabled()){var J=G.deltaMode===w.window.WheelEvent.DOM_DELTA_LINE?40*G.deltaY:G.deltaY,Q=w.browser.now(),ce=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,J!==0&&J%4.000244140625==0?this._type="wheel":J!==0&&Math.abs(J)<4?this._type="trackpad":ce>400?(this._type=null,this._lastValue=J,this._timeout=setTimeout(this._onTimeout,40,G)):this._type||(this._type=Math.abs(ce*J)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,J+=this._lastValue)),G.shiftKey&&J&&(J/=4),this._type&&(this._lastWheelEvent=G,this._delta-=J,this._active||this._start(G)),G.preventDefault()}},gd.prototype._onTimeout=function(G){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(G)},gd.prototype._start=function(G){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=B.mousePos(this._el,G);this._around=w.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())}},gd.prototype.renderFrame=function(){var G=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)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,ce=2/(1+Math.exp(-Math.abs(this._delta*Q)));this._delta<0&&ce!==0&&(ce=1/ce);var He=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(He*ce))),this._type==="wheel"&&(this._startZoom=J.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var Et,Nt=typeof this._targetZoom=="number"?this._targetZoom:J.zoom,yn=this._startZoom,yr=this._easing,Sn=!1;if(this._type==="wheel"&&yn&&yr){var _i=Math.min((w.browser.now()-this._lastWheelEventTime)/200,1),Ri=yr(_i);Et=w.number(yn,Nt,Ri),_i<1?this._frameId||(this._frameId=!0):Sn=!0}else Et=Nt,Sn=!0;return this._active=!0,Sn&&(this._active=!1,this._finishTimeout=setTimeout(function(){G._zooming=!1,G._handler._triggerRenderFrame(),delete G._targetZoom,delete G._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Sn,zoomDelta:Et-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},gd.prototype._smoothOutEasing=function(G){var J=w.ease;if(this._prevEase){var Q=this._prevEase,ce=(w.browser.now()-Q.start)/Q.duration,He=Q.easing(ce+.01)-Q.easing(ce),Et=.27/Math.sqrt(He*He+1e-4)*.01,Nt=Math.sqrt(.0729-Et*Et);J=w.bezier(Et,Nt,.25,1)}return this._prevEase={start:w.browser.now(),duration:G,easing:J},J},gd.prototype.blur=function(){this.reset()},gd.prototype.reset=function(){this._active=!1};var ig=function(G,J){this._clickZoom=G,this._tapZoom=J};ig.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},ig.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},ig.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},ig.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var qh=function(){this.reset()};qh.prototype.reset=function(){this._active=!1},qh.prototype.blur=function(){this.reset()},qh.prototype.dblclick=function(G,J){return G.preventDefault(),{cameraAnimation:function(Q){Q.easeTo({duration:300,zoom:Q.getZoom()+(G.shiftKey?-1:1),around:Q.unproject(J)},{originalEvent:G})}}},qh.prototype.enable=function(){this._enabled=!0},qh.prototype.disable=function(){this._enabled=!1,this.reset()},qh.prototype.isEnabled=function(){return this._enabled},qh.prototype.isActive=function(){return this._active};var kf=function(){this._tap=new Oc({numTouches:1,numTaps:1}),this.reset()};kf.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},kf.prototype.touchstart=function(G,J,Q){this._swipePoint||(this._tapTime&&G.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?Q.length>0&&(this._swipePoint=J[0],this._swipeTouch=Q[0].identifier):this._tap.touchstart(G,J,Q))},kf.prototype.touchmove=function(G,J,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;var ce=J[0],He=ce.y-this._swipePoint.y;return this._swipePoint=ce,G.preventDefault(),this._active=!0,{zoomDelta:He/128}}}else this._tap.touchmove(G,J,Q)},kf.prototype.touchend=function(G,J,Q){this._tapTime?this._swipePoint&&Q.length===0&&this.reset():this._tap.touchend(G,J,Q)&&(this._tapTime=G.timeStamp)},kf.prototype.touchcancel=function(){this.reset()},kf.prototype.enable=function(){this._enabled=!0},kf.prototype.disable=function(){this._enabled=!1,this.reset()},kf.prototype.isEnabled=function(){return this._enabled},kf.prototype.isActive=function(){return this._active};var _p=function(G,J,Q){this._el=G,this._mousePan=J,this._touchPan=Q};_p.prototype.enable=function(G){this._inertiaOptions=G||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},_p.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},_p.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},_p.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Du=function(G,J,Q){this._pitchWithRotate=G.pitchWithRotate,this._mouseRotate=J,this._mousePitch=Q};Du.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Du.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Du.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Du.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Rp=function(G,J,Q,ce){this._el=G,this._touchZoom=J,this._touchRotate=Q,this._tapDragZoom=ce,this._rotationDisabled=!1,this._enabled=!0};Rp.prototype.enable=function(G){this._touchZoom.enable(G),this._rotationDisabled||this._touchRotate.enable(G),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Rp.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Rp.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Rp.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Rp.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Rp.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Dp=function(G){return G.zoom||G.drag||G.pitch||G.rotate},Gf=function(G){function J(){G.apply(this,arguments)}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J}(w.Event);function kh(G){return G.panDelta&&G.panDelta.mag()||G.zoomDelta||G.bearingDelta||G.pitchDelta}var Bh=function(G,J){this._map=G,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Od(G),this._bearingSnap=J.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(J),w.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],[w.window.document,"mousemove",{capture:!0}],[w.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],[w.window,"blur",void 0]];for(var ce=0,He=this._listeners;ceNt?Math.min(2,bu):Math.max(.5,bu),vh=Math.pow(oh,1-ic),Gh=Et.unproject(Gl.add(bl.mult(ic*vh)).mult(Ju));Et.setLocationAtPoint(Et.renderWorldCopies?Gh.wrap():Gh,Ui)}He._fireMoveEvents(ce)},function(ic){He._afterEase(ce,ic)},Q),this},J.prototype._prepareEase=function(Q,ce,He){He===void 0&&(He={}),this._moving=!0,ce||He.moving||this.fire(new w.Event("movestart",Q)),this._zooming&&!He.zooming&&this.fire(new w.Event("zoomstart",Q)),this._rotating&&!He.rotating&&this.fire(new w.Event("rotatestart",Q)),this._pitching&&!He.pitching&&this.fire(new w.Event("pitchstart",Q))},J.prototype._fireMoveEvents=function(Q){this.fire(new w.Event("move",Q)),this._zooming&&this.fire(new w.Event("zoom",Q)),this._rotating&&this.fire(new w.Event("rotate",Q)),this._pitching&&this.fire(new w.Event("pitch",Q))},J.prototype._afterEase=function(Q,ce){if(!this._easeId||!ce||this._easeId!==ce){delete this._easeId;var He=this._zooming,Et=this._rotating,Nt=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,He&&this.fire(new w.Event("zoomend",Q)),Et&&this.fire(new w.Event("rotateend",Q)),Nt&&this.fire(new w.Event("pitchend",Q)),this.fire(new w.Event("moveend",Q))}},J.prototype.flyTo=function(Q,ce){var He=this;if(!Q.essential&&w.browser.prefersReducedMotion){var Et=w.pick(Q,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Et,ce)}this.stop(),Q=w.extend({offset:[0,0],speed:1.2,curve:1.42,easing:w.ease},Q);var Nt=this.transform,yn=this.getZoom(),yr=this.getBearing(),Sn=this.getPitch(),_i=this.getPadding(),Ri="zoom"in Q?w.clamp(+Q.zoom,Nt.minZoom,Nt.maxZoom):yn,Ki="bearing"in Q?this._normalizeBearing(Q.bearing,yr):yr,Fo="pitch"in Q?+Q.pitch:Sn,Wo="padding"in Q?Q.padding:Nt.padding,Ui=Nt.zoomScale(Ri-yn),Uo=w.Point.convert(Q.offset),Hs=Nt.centerPoint.add(Uo),tl=Nt.pointLocation(Hs),qa=w.LngLat.convert(Q.center||tl);this._normalizeCenter(qa);var Gl=Nt.project(tl),bl=Nt.project(qa).sub(Gl),bu=Q.curve,zu=Math.max(Nt.width,Nt.height),ic=zu/Ui,Ju=bl.mag();if("minZoom"in Q){var oh=w.clamp(Math.min(Q.minZoom,yn,Ri),Nt.minZoom,Nt.maxZoom),vh=zu/Nt.zoomScale(oh-yn);bu=Math.sqrt(vh/Ju*2)}var Gh=bu*bu;function Nh($d){var ud=(ic*ic-zu*zu+($d?-1:1)*Gh*Gh*Ju*Ju)/(2*($d?ic:zu)*Gh*Ju);return Math.log(Math.sqrt(ud*ud+1)-ud)}function jd($d){return(Math.exp($d)-Math.exp(-$d))/2}function Jc($d){return(Math.exp($d)+Math.exp(-$d))/2}var Tc=Nh(0),tf=function($d){return Jc(Tc)/Jc(Tc+bu*$d)},Wd=function($d){return zu*((Jc(Tc)*(jd(ud=Tc+bu*$d)/Jc(ud))-jd(Tc))/Gh)/Ju;var ud},rd=(Nh(1)-Tc)/bu;if(Math.abs(Ju)<1e-6||!isFinite(rd)){if(Math.abs(zu-ic)<1e-6)return this.easeTo(Q,ce);var of=icQ.maxDuration&&(Q.duration=0),this._zooming=!0,this._rotating=yr!==Ki,this._pitching=Fo!==Sn,this._padding=!Nt.isPaddingEqual(Wo),this._prepareEase(ce,!1),this._ease(function($d){var ud=$d*rd,kp=1/tf(ud);Nt.zoom=$d===1?Ri:yn+Nt.scaleZoom(kp),He._rotating&&(Nt.bearing=w.number(yr,Ki,$d)),He._pitching&&(Nt.pitch=w.number(Sn,Fo,$d)),He._padding&&(Nt.interpolatePadding(_i,Wo,$d),Hs=Nt.centerPoint.add(Uo));var ap=$d===1?qa:Nt.unproject(Gl.add(bl.mult(Wd(ud))).mult(kp));Nt.setLocationAtPoint(Nt.renderWorldCopies?ap.wrap():ap,Hs),He._fireMoveEvents(ce)},function(){return He._afterEase(ce)},Q),this},J.prototype.isEasing=function(){return!!this._easeFrameId},J.prototype.stop=function(){return this._stop()},J.prototype._stop=function(Q,ce){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var He=this._onEaseEnd;delete this._onEaseEnd,He.call(this,ce)}if(!Q){var Et=this.handlers;Et&&Et.stop(!1)}return this},J.prototype._ease=function(Q,ce,He){He.animate===!1||He.duration===0?(Q(1),ce()):(this._easeStart=w.browser.now(),this._easeOptions=He,this._onEaseFrame=Q,this._onEaseEnd=ce,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},J.prototype._renderFrameCallback=function(){var Q=Math.min((w.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},J.prototype._normalizeBearing=function(Q,ce){Q=w.wrap(Q,-180,180);var He=Math.abs(Q-ce);return Math.abs(Q-360-ce)180?-360:He<-180?360:0}},J}(w.Evented),Oh=function(G){G===void 0&&(G={}),this.options=G,w.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Oh.prototype.getDefaultPosition=function(){return"bottom-right"},Oh.prototype.onAdd=function(G){var J=this.options&&this.options.compact;return this._map=G,this._container=B.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=B.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=B.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},Oh.prototype.onRemove=function(){B.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},Oh.prototype._setElementTitle=function(G,J){var Q=this._map._getUIString("AttributionControl."+J);G.title=Q,G.setAttribute("aria-label",Q)},Oh.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"))},Oh.prototype._updateEditLink=function(){var G=this._editLink;G||(G=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||w.config.ACCESS_TOKEN}];if(G){var Q=J.reduce(function(ce,He,Et){return He.value&&(ce+=He.key+"="+He.value+(Et=0)return!1;return!0})).join(" | ");Nt!==this._attribHTML&&(this._attribHTML=Nt,G.length?(this._innerContainer.innerHTML=Nt,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Oh.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Tf=function(){w.bindAll(["_updateLogo"],this),w.bindAll(["_updateCompact"],this)};Tf.prototype.onAdd=function(G){this._map=G,this._container=B.create("div","mapboxgl-ctrl");var J=B.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},Tf.prototype.onRemove=function(){B.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Tf.prototype.getDefaultPosition=function(){return"bottom-left"},Tf.prototype._updateLogo=function(G){G&&G.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},Tf.prototype._logoRequired=function(){if(this._map.style){var G=this._map.style.sourceCaches;for(var J in G)if(G[J].getSource().mapbox_logo)return!0;return!1}},Tf.prototype._updateCompact=function(){var G=this._container.children;if(G.length){var J=G[0];this._map.getCanvasContainer().offsetWidth<250?J.classList.add("mapboxgl-compact"):J.classList.remove("mapboxgl-compact")}};var Zf=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Zf.prototype.add=function(G){var J=++this._id;return this._queue.push({callback:G,id:J,cancelled:!1}),J},Zf.prototype.remove=function(G){for(var J=this._currentlyRunning,Q=0,ce=J?this._queue.concat(J):this._queue;Qce.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(ce.minPitch!=null&&ce.maxPitch!=null&&ce.minPitch>ce.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(ce.minPitch!=null&&ce.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(ce.maxPitch!=null&&ce.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var Et=new Au(ce.minZoom,ce.maxZoom,ce.minPitch,ce.maxPitch,ce.renderWorldCopies);if(G.call(this,Et,ce),this._interactive=ce.interactive,this._maxTileCacheSize=ce.maxTileCacheSize,this._failIfMajorPerformanceCaveat=ce.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=ce.preserveDrawingBuffer,this._antialias=ce.antialias,this._trackResize=ce.trackResize,this._bearingSnap=ce.bearingSnap,this._refreshExpiredTiles=ce.refreshExpiredTiles,this._fadeDuration=ce.fadeDuration,this._crossSourceCollisions=ce.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=ce.collectResourceTiming,this._renderTaskQueue=new Zf,this._controls=[],this._mapId=w.uniqueId(),this._locale=w.extend({},Ip,ce.locale),this._clickTolerance=ce.clickTolerance,this._requestManager=new w.RequestManager(ce.transformRequest,ce.accessToken),typeof ce.container=="string"){if(this._container=w.window.document.getElementById(ce.container),!this._container)throw new Error("Container '"+ce.container+"' not found.")}else{if(!(ce.container instanceof Of))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=ce.container}if(ce.maxBounds&&this.setMaxBounds(ce.maxBounds),w.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 He._update(!1)}),this.on("moveend",function(){return He._update(!1)}),this.on("zoom",function(){return He._update(!0)}),w.window!==void 0&&(w.window.addEventListener("online",this._onWindowOnline,!1),w.window.addEventListener("resize",this._onWindowResize,!1),w.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Bh(this,ce),this._hash=ce.hash&&new yh(typeof ce.hash=="string"&&ce.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:ce.center,zoom:ce.zoom,bearing:ce.bearing,pitch:ce.pitch}),ce.bounds&&(this.resize(),this.fitBounds(ce.bounds,w.extend({},ce.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=ce.localIdeographFontFamily,ce.style&&this.setStyle(ce.style,{localIdeographFontFamily:ce.localIdeographFontFamily}),ce.attributionControl&&this.addControl(new Oh({customAttribution:ce.customAttribution})),this.addControl(new Tf,ce.logoPosition),this.on("style.load",function(){He.transform.unmodified&&He.jumpTo(He.style.stylesheet)}),this.on("data",function(Nt){He._update(Nt.dataType==="style"),He.fire(new w.Event(Nt.dataType+"data",Nt))}),this.on("dataloading",function(Nt){He.fire(new w.Event(Nt.dataType+"dataloading",Nt))})}G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J;var Q={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(ce,He){if(He===void 0&&(He=ce.getDefaultPosition?ce.getDefaultPosition():"top-right"),!ce||!ce.onAdd)return this.fire(new w.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var Et=ce.onAdd(this);this._controls.push(ce);var Nt=this._controlPositions[He];return He.indexOf("bottom")!==-1?Nt.insertBefore(Et,Nt.firstChild):Nt.appendChild(Et),this},J.prototype.removeControl=function(ce){if(!ce||!ce.onRemove)return this.fire(new w.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var He=this._controls.indexOf(ce);return He>-1&&this._controls.splice(He,1),ce.onRemove(this),this},J.prototype.hasControl=function(ce){return this._controls.indexOf(ce)>-1},J.prototype.resize=function(ce){var He=this._containerDimensions(),Et=He[0],Nt=He[1];if(Et===this.transform.width&&Nt===this.transform.height)return this;this._resizeCanvas(Et,Nt),this.transform.resize(Et,Nt),this.painter.resize(Et,Nt);var yn=!this._moving;return yn&&this.fire(new w.Event("movestart",ce)).fire(new w.Event("move",ce)),this.fire(new w.Event("resize",ce)),yn&&this.fire(new w.Event("moveend",ce)),this},J.prototype.getBounds=function(){return this.transform.getBounds()},J.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},J.prototype.setMaxBounds=function(ce){return this.transform.setMaxBounds(w.LngLatBounds.convert(ce)),this._update()},J.prototype.setMinZoom=function(ce){if((ce=ce==null?-2:ce)>=-2&&ce<=this.transform.maxZoom)return this.transform.minZoom=ce,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ce,this._update(),this.getZoom()>ce&&this.setZoom(ce),this;throw new Error("maxZoom must be greater than the current minZoom")},J.prototype.getMaxZoom=function(){return this.transform.maxZoom},J.prototype.setMinPitch=function(ce){if((ce=ce==null?0:ce)<0)throw new Error("minPitch must be greater than or equal to 0");if(ce>=0&&ce<=this.transform.maxPitch)return this.transform.minPitch=ce,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(ce>=this.transform.minPitch)return this.transform.maxPitch=ce,this._update(),this.getPitch()>ce&&this.setPitch(ce),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(ce){return this.transform.renderWorldCopies=ce,this._update()},J.prototype.project=function(ce){return this.transform.locationPoint(w.LngLat.convert(ce))},J.prototype.unproject=function(ce){return this.transform.pointLocation(w.Point.convert(ce))},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(ce,He,Et){var Nt,yn=this;if(ce==="mouseenter"||ce==="mouseover"){var yr=!1;return{layer:He,listener:Et,delegates:{mousemove:function(_i){var Ri=yn.getLayer(He)?yn.queryRenderedFeatures(_i.point,{layers:[He]}):[];Ri.length?yr||(yr=!0,Et.call(yn,new rh(ce,yn,_i.originalEvent,{features:Ri}))):yr=!1},mouseout:function(){yr=!1}}}}if(ce==="mouseleave"||ce==="mouseout"){var Sn=!1;return{layer:He,listener:Et,delegates:{mousemove:function(_i){(yn.getLayer(He)?yn.queryRenderedFeatures(_i.point,{layers:[He]}):[]).length?Sn=!0:Sn&&(Sn=!1,Et.call(yn,new rh(ce,yn,_i.originalEvent)))},mouseout:function(_i){Sn&&(Sn=!1,Et.call(yn,new rh(ce,yn,_i.originalEvent)))}}}}return{layer:He,listener:Et,delegates:(Nt={},Nt[ce]=function(_i){var Ri=yn.getLayer(He)?yn.queryRenderedFeatures(_i.point,{layers:[He]}):[];Ri.length&&(_i.features=Ri,Et.call(yn,_i),delete _i.features)},Nt)}},J.prototype.on=function(ce,He,Et){if(Et===void 0)return G.prototype.on.call(this,ce,He);var Nt=this._createDelegatedListener(ce,He,Et);for(var yn in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ce]=this._delegatedListeners[ce]||[],this._delegatedListeners[ce].push(Nt),Nt.delegates)this.on(yn,Nt.delegates[yn]);return this},J.prototype.once=function(ce,He,Et){if(Et===void 0)return G.prototype.once.call(this,ce,He);var Nt=this._createDelegatedListener(ce,He,Et);for(var yn in Nt.delegates)this.once(yn,Nt.delegates[yn]);return this},J.prototype.off=function(ce,He,Et){var Nt=this;return Et===void 0?G.prototype.off.call(this,ce,He):(this._delegatedListeners&&this._delegatedListeners[ce]&&function(yn){for(var yr=yn[ce],Sn=0;Sn180;){var Nt=Q.locationPoint(G);if(Nt.x>=0&&Nt.y>=0&&Nt.x<=Q.width&&Nt.y<=Q.height)break;G.lng>Q.center.lng?G.lng-=360:G.lng+=360}return G}Xd.prototype.down=function(G,J){this.mouseRotate.mousedown(G,J),this.mousePitch&&this.mousePitch.mousedown(G,J),B.disableDrag()},Xd.prototype.move=function(G,J){var Q=this.map,ce=this.mouseRotate.mousemoveWindow(G,J);if(ce&&ce.bearingDelta&&Q.setBearing(Q.getBearing()+ce.bearingDelta),this.mousePitch){var He=this.mousePitch.mousemoveWindow(G,J);He&&He.pitchDelta&&Q.setPitch(Q.getPitch()+He.pitchDelta)}},Xd.prototype.off=function(){var G=this.element;B.removeEventListener(G,"mousedown",this.mousedown),B.removeEventListener(G,"touchstart",this.touchstart,{passive:!1}),B.removeEventListener(G,"touchmove",this.touchmove),B.removeEventListener(G,"touchend",this.touchend),B.removeEventListener(G,"touchcancel",this.reset),this.offTemp()},Xd.prototype.offTemp=function(){B.enableDrag(),B.removeEventListener(w.window,"mousemove",this.mousemove),B.removeEventListener(w.window,"mouseup",this.mouseup)},Xd.prototype.mousedown=function(G){this.down(w.extend({},G,{ctrlKey:!0,preventDefault:function(){return G.preventDefault()}}),B.mousePos(this.element,G)),B.addEventListener(w.window,"mousemove",this.mousemove),B.addEventListener(w.window,"mouseup",this.mouseup)},Xd.prototype.mousemove=function(G){this.move(G,B.mousePos(this.element,G))},Xd.prototype.mouseup=function(G){this.mouseRotate.mouseupWindow(G),this.mousePitch&&this.mousePitch.mouseupWindow(G),this.offTemp()},Xd.prototype.touchstart=function(G){G.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=B.touchPos(this.element,G.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return G.preventDefault()}},this._startPos))},Xd.prototype.touchmove=function(G){G.targetTouches.length!==1?this.reset():(this._lastPos=B.touchPos(this.element,G.targetTouches)[0],this.move({preventDefault:function(){return G.preventDefault()}},this._lastPos))},Xd.prototype.touchend=function(G){G.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=ce}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 w.Event("dragstart"))),this.fire(new w.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 w.Event("dragend")),this._state="inactive"},J.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))},J.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},J.prototype.isDraggable=function(){return this._draggable},J.prototype.setRotation=function(Q){return this._rotation=Q||0,this._update(),this},J.prototype.getRotation=function(){return this._rotation},J.prototype.setRotationAlignment=function(Q){return this._rotationAlignment=Q||"auto",this._update(),this},J.prototype.getRotationAlignment=function(){return this._rotationAlignment},J.prototype.setPitchAlignment=function(Q){return this._pitchAlignment=Q&&Q!=="auto"?Q:this._rotationAlignment,this._update(),this},J.prototype.getPitchAlignment=function(){return this._pitchAlignment},J}(w.Evented),ot={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},dn=0,or=!1,Ie=function(G){function J(Q){G.call(this),this.options=w.extend({},ot,Q),w.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.prototype.onAdd=function(Q){var ce;return this._map=Q,this._container=B.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),ce=this._setupUI,le!==void 0?ce(le):w.window.navigator.permissions!==void 0?w.window.navigator.permissions.query({name:"geolocation"}).then(function(He){ce(le=He.state!=="denied")}):ce(le=!!w.window.navigator.geolocation),this._container},J.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(w.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(),B.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,dn=0,or=!1},J.prototype._isOutOfMapMaxBounds=function(Q){var ce=this._map.getMaxBounds(),He=Q.coords;return ce&&(He.longitudece.getEast()||He.latitudece.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")}},J.prototype._onSuccess=function(Q){if(this._map){if(this._isOutOfMapMaxBounds(Q))return this._setErrorState(),this.fire(new w.Event("outofmaxbounds",Q)),this._updateMarker(),void this._finish();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")}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 w.Event("geolocate",Q)),this._finish()}},J.prototype._updateCamera=function(Q){var ce=new w.LngLat(Q.coords.longitude,Q.coords.latitude),He=Q.coords.accuracy,Et=this._map.getBearing(),Nt=w.extend({bearing:Et},this.options.fitBoundsOptions);this._map.fitBounds(ce.toBounds(He),Nt,{geolocateSource:!0})},J.prototype._updateMarker=function(Q){if(Q){var ce=new w.LngLat(Q.coords.longitude,Q.coords.latitude);this._accuracyCircleMarker.setLngLat(ce).addTo(this._map),this._userLocationDotMarker.setLngLat(ce).addTo(this._map),this._accuracy=Q.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},J.prototype._updateCircleRadius=function(){var Q=this._map._container.clientHeight/2,ce=this._map.unproject([0,Q]),He=this._map.unproject([1,Q]),Et=ce.distanceTo(He),Nt=Math.ceil(2*this._accuracy/Et);this._circleElement.style.width=Nt+"px",this._circleElement.style.height=Nt+"px"},J.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},J.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 ce=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=ce,this._geolocateButton.setAttribute("aria-label",ce),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(Q.code===3&&or)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new w.Event("error",Q)),this._finish()}},J.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},J.prototype._setupUI=function(Q){var ce=this;if(this._container.addEventListener("contextmenu",function(Nt){return Nt.preventDefault()}),this._geolocateButton=B.create("button","mapboxgl-ctrl-geolocate",this._container),B.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",Q===!1){w.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var He=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=He,this._geolocateButton.setAttribute("aria-label",He)}else{var Et=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=Et,this._geolocateButton.setAttribute("aria-label",Et)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=B.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new ge(this._dotElement),this._circleElement=B.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new ge({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(Nt){Nt.geolocateSource||ce._watchState!=="ACTIVE_LOCK"||Nt.originalEvent&&Nt.originalEvent.type==="resize"||(ce._watchState="BACKGROUND",ce._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),ce._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),ce.fire(new w.Event("trackuserlocationend")))})},J.prototype.trigger=function(){if(!this._setup)return w.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 w.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":dn--,or=!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 w.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 w.Event("trackuserlocationstart"))}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")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var Q;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++dn>1?(Q={maximumAge:6e5,timeout:0},or=!0):(Q=this.options.positionOptions,or=!1),this._geolocationWatchID=w.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,Q)}}else w.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},J.prototype._clearWatch=function(){w.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}(w.Evented),D={maxWidth:100,unit:"metric"},ie=function(G){this.options=w.extend({},D,G),w.bindAll(["_onMove","setUnit"],this)};function Ee(G,J,Q){var ce=Q&&Q.maxWidth||100,He=G._container.clientHeight/2,Et=G.unproject([0,He]),Nt=G.unproject([ce,He]),yn=Et.distanceTo(Nt);if(Q&&Q.unit==="imperial"){var yr=3.2808*yn;yr>5280?Ne(J,ce,yr/5280,G._getUIString("ScaleControl.Miles")):Ne(J,ce,yr,G._getUIString("ScaleControl.Feet"))}else Q&&Q.unit==="nautical"?Ne(J,ce,yn/1852,G._getUIString("ScaleControl.NauticalMiles")):yn>=1e3?Ne(J,ce,yn/1e3,G._getUIString("ScaleControl.Kilometers")):Ne(J,ce,yn,G._getUIString("ScaleControl.Meters"))}function Ne(G,J,Q,ce){var He,Et,Nt,yn=(He=Q,(Et=Math.pow(10,(""+Math.floor(He)).length-1))*(Nt=(Nt=He/Et)>=10?10:Nt>=5?5:Nt>=3?3:Nt>=2?2:Nt>=1?1:function(yr){var Sn=Math.pow(10,Math.ceil(-Math.log(yr)/Math.LN10));return Math.round(yr*Sn)/Sn}(Nt)));G.style.width=J*(yn/Q)+"px",G.innerHTML=yn+" "+ce}ie.prototype.getDefaultPosition=function(){return"bottom-left"},ie.prototype._onMove=function(){Ee(this._map,this._container,this.options)},ie.prototype.onAdd=function(G){return this._map=G,this._container=B.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",G.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},ie.prototype.onRemove=function(){B.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},ie.prototype.setUnit=function(G){this.options.unit=G,Ee(this._map,this._container,this.options)};var ct=function(G){this._fullscreen=!1,G&&G.container&&(G.container instanceof w.window.HTMLElement?this._container=G.container:w.warnOnce("Full screen control 'container' must be a DOM element.")),w.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in w.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in w.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in w.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in w.window.document&&(this._fullscreenchange="MSFullscreenChange")};ct.prototype.onAdd=function(G){return this._map=G,this._container||(this._container=this._map.getContainer()),this._controlContainer=B.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",w.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},ct.prototype.onRemove=function(){B.remove(this._controlContainer),this._map=null,w.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},ct.prototype._checkFullscreenSupport=function(){return!!(w.window.document.fullscreenEnabled||w.window.document.mozFullScreenEnabled||w.window.document.msFullscreenEnabled||w.window.document.webkitFullscreenEnabled)},ct.prototype._setupUI=function(){var G=this._fullscreenButton=B.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);B.create("span","mapboxgl-ctrl-icon",G).setAttribute("aria-hidden",!0),G.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),w.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},ct.prototype._updateTitle=function(){var G=this._getTitle();this._fullscreenButton.setAttribute("aria-label",G),this._fullscreenButton.title=G},ct.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},ct.prototype._isFullscreen=function(){return this._fullscreen},ct.prototype._changeIcon=function(){(w.window.document.fullscreenElement||w.window.document.mozFullScreenElement||w.window.document.webkitFullscreenElement||w.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},ct.prototype._onClickFullscreen=function(){this._isFullscreen()?w.window.document.exitFullscreen?w.window.document.exitFullscreen():w.window.document.mozCancelFullScreen?w.window.document.mozCancelFullScreen():w.window.document.msExitFullscreen?w.window.document.msExitFullscreen():w.window.document.webkitCancelFullScreen&&w.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 Gt={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},tn=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Bn=function(G){function J(Q){G.call(this),this.options=w.extend(Object.create(Gt),Q),w.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.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 w.Event("open")),this},J.prototype.isOpen=function(){return!!this._map},J.prototype.remove=function(){return this._content&&B.remove(this._content),this._container&&(B.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 w.Event("close")),this},J.prototype.getLngLat=function(){return this._lngLat},J.prototype.setLngLat=function(Q){return this._lngLat=w.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},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(Q){return this.setDOMContent(w.window.document.createTextNode(Q))},J.prototype.setHTML=function(Q){var ce,He=w.window.document.createDocumentFragment(),Et=w.window.document.createElement("body");for(Et.innerHTML=Q;ce=Et.firstChild;)He.appendChild(ce);return this.setDOMContent(He)},J.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},J.prototype.setMaxWidth=function(Q){return this.options.maxWidth=Q,this._update(),this},J.prototype.setDOMContent=function(Q){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=B.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(Q),this._createCloseButton(),this._update(),this._focusFirstElement(),this},J.prototype.addClassName=function(Q){this._container&&this._container.classList.add(Q)},J.prototype.removeClassName=function(Q){this._container&&this._container.classList.remove(Q)},J.prototype.setOffset=function(Q){return this.options.offset=Q,this._update(),this},J.prototype.toggleClassName=function(Q){if(this._container)return this._container.classList.toggle(Q)},J.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=B.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(Q){this._update(Q.point)},J.prototype._onMouseMove=function(Q){this._update(Q.point)},J.prototype._onDrag=function(Q){this._update(Q.point)},J.prototype._update=function(Q){var ce=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=B.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=B.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Ri){return ce._container.classList.add(Ri)}),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=zo(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||Q)){var He=this._pos=this._trackPointer&&Q?Q:this._map.project(this._lngLat),Et=this.options.anchor,Nt=function Ri(Ki){if(Ki){if(typeof Ki=="number"){var Fo=Math.round(Math.sqrt(.5*Math.pow(Ki,2)));return{center:new w.Point(0,0),top:new w.Point(0,Ki),"top-left":new w.Point(Fo,Fo),"top-right":new w.Point(-Fo,Fo),bottom:new w.Point(0,-Ki),"bottom-left":new w.Point(Fo,-Fo),"bottom-right":new w.Point(-Fo,-Fo),left:new w.Point(Ki,0),right:new w.Point(-Ki,0)}}if(Ki instanceof w.Point||Array.isArray(Ki)){var Wo=w.Point.convert(Ki);return{center:Wo,top:Wo,"top-left":Wo,"top-right":Wo,bottom:Wo,"bottom-left":Wo,"bottom-right":Wo,left:Wo,right:Wo}}return{center:w.Point.convert(Ki.center||[0,0]),top:w.Point.convert(Ki.top||[0,0]),"top-left":w.Point.convert(Ki["top-left"]||[0,0]),"top-right":w.Point.convert(Ki["top-right"]||[0,0]),bottom:w.Point.convert(Ki.bottom||[0,0]),"bottom-left":w.Point.convert(Ki["bottom-left"]||[0,0]),"bottom-right":w.Point.convert(Ki["bottom-right"]||[0,0]),left:w.Point.convert(Ki.left||[0,0]),right:w.Point.convert(Ki.right||[0,0])}}return Ri(new w.Point(0,0))}(this.options.offset);if(!Et){var yn,yr=this._container.offsetWidth,Sn=this._container.offsetHeight;yn=He.y+Nt.bottom.ythis._map.transform.height-Sn?["bottom"]:[],He.xthis._map.transform.width-yr/2&&yn.push("right"),Et=yn.length===0?"bottom":yn.join("-")}var _i=He.add(Nt[Et]).round();B.setTransform(this._container,L[Et]+" translate("+_i.x+"px,"+_i.y+"px)"),j(this._container,Et,"popup")}},J.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var Q=this._container.querySelector(tn);Q&&Q.focus()}},J.prototype._onClose=function(){this.remove()},J}(w.Evented),Pr={version:w.version,supported:b,setRTLTextPlugin:w.setRTLTextPlugin,getRTLTextPluginStatus:w.getRTLTextPluginStatus,Map:Kf,NavigationControl:zh,GeolocateControl:Ie,AttributionControl:Oh,ScaleControl:ie,FullscreenControl:ct,Popup:Bn,Marker:ge,Style:Hl,LngLat:w.LngLat,LngLatBounds:w.LngLatBounds,Point:w.Point,MercatorCoordinate:w.MercatorCoordinate,Evented:w.Evented,config:w.config,prewarm:function(){yi().acquire(Dn)},clearPrewarmedResources:function(){var G=nr;G&&(G.isPreloaded()&&G.numActive()===1?(G.release(Dn),nr=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()"))},get accessToken(){return w.config.ACCESS_TOKEN},set accessToken(G){w.config.ACCESS_TOKEN=G},get baseApiUrl(){return w.config.API_URL},set baseApiUrl(G){w.config.API_URL=G},get workerCount(){return Kn.workerCount},set workerCount(G){Kn.workerCount=G},get maxParallelImageRequests(){return w.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(G){w.config.MAX_PARALLEL_IMAGE_REQUESTS=G},clearStorage:function(G){w.clearTileCache(G)},workerUrl:""};return Pr}),v})},23978:function(yt,Y,y){"use strict";y.r(Y),y.d(Y,{CancellationTokenSource:function(){return pJ},Emitter:function(){return gJ},KeyCode:function(){return mJ},KeyMod:function(){return vJ},MarkerSeverity:function(){return wJ},MarkerTag:function(){return CJ},Position:function(){return yJ},Range:function(){return _J},Selection:function(){return bJ},SelectionDirection:function(){return xJ},Token:function(){return EJ},Uri:function(){return SJ},default:function(){return Ire},editor:function(){return TJ},languages:function(){return AJ}});var v={};y.r(v),y.d(v,{PixelRatio:function(){return aa},addMatchMediaChangeListener:function(){return ho},getZoomFactor:function(){return Ka},isAndroid:function(){return Qo},isChrome:function(){return So},isElectron:function(){return yo},isFirefox:function(){return Pi},isSafari:function(){return ps},isStandalone:function(){return Ko},isWebKit:function(){return to},isWebkitWebView:function(){return Wn}});var P={};y.r(P),y.d(P,{CancellationTokenSource:function(){return pJ},Emitter:function(){return gJ},KeyCode:function(){return mJ},KeyMod:function(){return vJ},MarkerSeverity:function(){return wJ},MarkerTag:function(){return CJ},Position:function(){return yJ},Range:function(){return _J},Selection:function(){return bJ},SelectionDirection:function(){return xJ},Token:function(){return EJ},Uri:function(){return SJ},editor:function(){return TJ},languages:function(){return AJ}});var w={};y.r(w),y.d(w,{CancellationTokenSource:function(){return pJ},Emitter:function(){return gJ},KeyCode:function(){return mJ},KeyMod:function(){return vJ},MarkerSeverity:function(){return wJ},MarkerTag:function(){return CJ},Position:function(){return yJ},Range:function(){return _J},Selection:function(){return bJ},SelectionDirection:function(){return xJ},Token:function(){return EJ},Uri:function(){return SJ},default:function(){return Ire},editor:function(){return TJ},languages:function(){return AJ}});class b{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?fe.isErrorNoTelemetry(e)?new fe(e.message+` `+e.stack):new Error(e.message+` -`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const B=new b;function V(s){g(s)||B.onUnexpectedError(s)}function k(s){g(s)||B.onUnexpectedExternalError(s)}function M(s){if(s instanceof Error){const{name:e,message:t}=s,n=s.stacktrace||s.stack;return{$isError:!0,name:e,message:t,stack:n,noTelemetry:ve.isErrorNoTelemetry(s)}}return s}const C="Canceled";function g(s){return s instanceof A?!0:s instanceof Error&&s.name===C&&s.message===C}class A extends Error{constructor(){super(C),this.name=this.message}}function O(){const s=new Error(C);return s.name=s.message,s}function K(s){return s?new Error(`Illegal argument: ${s}`):new Error("Illegal argument")}function ce(s){return s?new Error(`Illegal state: ${s}`):new Error("Illegal state")}class de extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class ve extends Error{constructor(e){super(e),this.name="ErrorNoTelemetry"}static fromError(e){if(e instanceof ve)return e;const t=new ve;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="ErrorNoTelemetry"}}class Ee extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,Ee.prototype);debugger}}function _e(s){const e=this;let t=!1,n;return function(){return t||(t=!0,n=s.apply(e,arguments)),n}}var we;(function(s){function e(ro){return ro&&typeof ro=="object"&&typeof ro[Symbol.iterator]=="function"}s.is=e;const t=Object.freeze([]);function n(){return t}s.empty=n;function*r(ro){yield ro}s.single=r;function i(ro){return ro||t}s.from=i;function a(ro){return!ro||ro[Symbol.iterator]().next().done===!0}s.isEmpty=a;function p(ro){return ro[Symbol.iterator]().next().value}s.first=p;function S(ro,Es){for(const wa of ro)if(Es(wa))return!0;return!1}s.some=S;function I(ro,Es){for(const wa of ro)if(Es(wa))return wa}s.find=I;function*U(ro,Es){for(const wa of ro)Es(wa)&&(yield wa)}s.filter=U;function*X(ro,Es){let wa=0;for(const Do of ro)yield Es(Do,wa++)}s.map=X;function*fe(...ro){for(const Es of ro)for(const wa of Es)yield wa}s.concat=fe;function*Fe(ro){for(const Es of ro)for(const wa of Es)yield wa}s.concatNested=Fe;function st(ro,Es,wa){let Do=wa;for(const Ao of ro)Do=Es(Do,Ao);return Do}s.reduce=st;function Lt(ro,Es){let wa=0;for(const Do of ro)Es(Do,wa++)}s.forEach=Lt;function*tn(ro,Es,wa=ro.length){for(Es<0&&(Es+=ro.length),wa<0?wa+=ro.length:wa>ro.length&&(wa=ro.length);EsDo===Ao){const Do=ro[Symbol.iterator](),Ao=Es[Symbol.iterator]();for(;;){const la=Do.next(),Il=Ao.next();if(la.done!==Il.done)return!1;if(la.done)return!0;if(!wa(la.value,Il.value))return!1}}s.equals=ei})(we||(we={}));const ot=!1;let He=null;function vt(s){He=s}if(ot){const s="__is_disposable_tracked__";vt(new class{trackDisposable(e){const t=new Error("Potentially leaked disposable").stack;setTimeout(()=>{e[s]||console.log(t)},3e3)}setParent(e,t){if(e&&e!==nt.None)try{e[s]=!0}catch(n){}}markAsDisposed(e){if(e&&e!==nt.None)try{e[s]=!0}catch(t){}}markAsSingleton(e){}})}function dt(s){return He==null||He.trackDisposable(s),s}function Pe(s){He==null||He.markAsDisposed(s)}function De(s,e){He==null||He.setParent(s,e)}function Ae(s,e){if(He)for(const t of s)He.setParent(t,e)}function Re(s){return He==null||He.markAsSingleton(s),s}class $e extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function Ie(s){return typeof s.dispose=="function"&&s.dispose.length===0}function Xe(s){if(we.is(s)){const e=[];for(const t of s)if(t)try{t.dispose()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1)throw new $e(e);return Array.isArray(s)?[]:s}else if(s)return s.dispose(),s}function ze(...s){const e=Kt(()=>Xe(s));return Ae(s,e),e}function Kt(s){const e=dt({dispose:_e(()=>{Pe(e),s()})});return e}class St{constructor(){this._toDispose=new Set,this._isDisposed=!1,dt(this)}dispose(){this._isDisposed||(Pe(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{Xe(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return De(e,this),this._isDisposed?St.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}St.DISABLE_DISPOSED_WARNING=!1;class nt{constructor(){this._store=new St,dt(this),De(this._store,this)}dispose(){Pe(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}nt.None=Object.freeze({dispose(){}});class Ct{constructor(){this._isDisposed=!1,dt(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)===null||t===void 0||t.dispose(),e&&De(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,Pe(this),(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&De(e,null),e}}class lt{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class Gt{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,dt(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0,Pe(this))},this}}class Rt{constructor(e){this.object=e}dispose(){}}class an{constructor(e){this.element=e,this.next=an.Undefined,this.prev=an.Undefined}}an.Undefined=new an(void 0);class cn{constructor(){this._first=an.Undefined,this._last=an.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===an.Undefined}clear(){let e=this._first;for(;e!==an.Undefined;){const t=e.next;e.prev=an.Undefined,e.next=an.Undefined,e=t}this._first=an.Undefined,this._last=an.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new an(e);if(this._first===an.Undefined)this._first=n,this._last=n;else if(t){const i=this._last;this._last=n,n.prev=i,i.next=n}else{const i=this._first;this._first=n,n.next=i,i.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==an.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==an.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==an.Undefined&&e.next!==an.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===an.Undefined&&e.next===an.Undefined?(this._first=an.Undefined,this._last=an.Undefined):e.next===an.Undefined?(this._last=this._last.prev,this._last.next=an.Undefined):e.prev===an.Undefined&&(this._first=this._first.next,this._first.prev=an.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==an.Undefined;)yield e.element,e=e.next}}var Cr=function(s,e,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function p(U){try{I(n.next(U))}catch(X){a(X)}}function S(U){try{I(n.throw(U))}catch(X){a(X)}}function I(U){U.done?i(U.value):r(U.value).then(p,S)}I((n=n.apply(s,e||[])).next())})};let ii=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const Pi="i-default";function Ni(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,(n,r)=>{const i=r[0],a=e[i];let p=n;return typeof a=="string"?p=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(p=String(a)),p}),ii&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function Yi(s,e){let t=s[e];return t||(t=s["*"],t)?t:null}function ti(s){return s.charAt(s.length-1)==="/"?s:s+"/"}function Ts(s,e,t){return Cr(this,void 0,void 0,function*(){const n=ti(s)+ti(e)+"vscode/"+ti(t),r=yield fetch(n);if(r.ok)return yield r.json();throw new Error(`${r.status} - ${r.statusText}`)})}function Bs(s){return function(e,t){const n=Array.prototype.slice.call(arguments,2);return Ni(s[e],n)}}function Ce(s,e,...t){return Ni(e,t)}function Gi(s){}function qi(s){ii=s}function co(s,e){var t;return{localize:Bs(e[s]),getConfiguredDefaultLocale:(t=e.getConfiguredDefaultLocale)!==null&&t!==void 0?t:n=>{}}}function fi(s,e,t,n){var r;const i=(r=n["vs/nls"])!==null&&r!==void 0?r:{};if(!s||s.length===0)return t({localize:Ce,getConfiguredDefaultLocale:()=>{var U;return(U=i.availableLanguages)===null||U===void 0?void 0:U["*"]}});const a=i.availableLanguages?Yi(i.availableLanguages,s):null,p=a===null||a===Pi;let S=".nls";p||(S=S+"."+a);const I=U=>{Array.isArray(U)?U.localize=Bs(U):U.localize=Bs(U[s]),U.getConfiguredDefaultLocale=()=>{var X;return(X=i.availableLanguages)===null||X===void 0?void 0:X["*"]},t(U)};typeof i.loadBundle=="function"?i.loadBundle(s,a,(U,X)=>{U?e([s+".nls"],I):I(X)}):i.translationServiceUrl&&!p?Cr(this,void 0,void 0,function*(){var U;try{const X=yield Ts(i.translationServiceUrl,a,s);return I(X)}catch(X){if(!a.includes("-"))return console.error(X),e([s+".nls"],I);try{const fe=a.split("-")[0],Fe=yield Ts(i.translationServiceUrl,fe,s);return(U=i.availableLanguages)!==null&&U!==void 0||(i.availableLanguages={}),i.availableLanguages["*"]=fe,I(Fe)}catch(fe){return console.error(fe),e([s+".nls"],I)}}}):e([s+S],I,U=>{if(S===".nls"){console.error("Failed trying to load default language strings",U);return}console.error(`Failed to load message bundle for language ${a}. Falling back to the default language:`,U),e([s+".nls"],I)})}var Ms=_(97671),In;const et="en";let Dt=!1,$t=!1,Dn=!1,gr=!1,kn=!1,bn=!1,zt=!1,Jt=!1,yn=!1,fr,vr=et,pn=null,wr;const Sr=typeof self=="object"?self:typeof _.g=="object"?_.g:{};let Ai;typeof Sr.vscode!="undefined"&&typeof Sr.vscode.process!="undefined"?Ai=Sr.vscode.process:typeof Ms!="undefined"&&(Ai=Ms);const mo=typeof((In=Ai==null?void 0:Ai.versions)===null||In===void 0?void 0:In.electron)=="string",Fr=mo&&(Ai==null?void 0:Ai.type)==="renderer";if(typeof navigator=="object"&&!Fr)wr=navigator.userAgent,Dt=wr.indexOf("Windows")>=0,$t=wr.indexOf("Macintosh")>=0,Jt=(wr.indexOf("Macintosh")>=0||wr.indexOf("iPad")>=0||wr.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Dn=wr.indexOf("Linux")>=0,bn=!0,fr=(Ce({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||et,vr=fr;else if(typeof Ai=="object"){Dt=Ai.platform==="win32",$t=Ai.platform==="darwin",Dn=Ai.platform==="linux",gr=Dn&&!!Ai.env.SNAP&&!!Ai.env.SNAP_REVISION,zt=mo,yn=!!Ai.env.CI||!!Ai.env.BUILD_ARTIFACTSTAGINGDIRECTORY,fr=et,vr=et;const s=Ai.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];fr=e.locale,vr=t||et,pn=e._translationsConfigFile}catch(e){}kn=!0}else console.error("Unable to resolve platform.");let to=0;$t?to=1:Dt?to=3:Dn&&(to=2);const Ji=Dt,bo=$t,xn=Dn,fn=kn,It=bn,Zt=bn&&typeof Sr.importScripts=="function",gn=Jt,$n=wr,Ar=vr,Dr=typeof Sr.postMessage=="function"&&!Sr.importScripts,dr=(()=>{if(Dr){const s=[];Sr.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=s.length;n{const n=++e;s.push({id:n,callback:t}),Sr.postMessage({vscodeScheduleAsyncWork:n},"*")}}return s=>setTimeout(s)})(),Xt=$t||Jt?2:Dt?1:3;let Cn=!0,er=!1;function Mr(){if(!er){er=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,Cn=new Uint16Array(s.buffer)[0]===512+1}return Cn}const ji=!!($n&&$n.indexOf("Chrome")>=0),An=!!($n&&$n.indexOf("Firefox")>=0),Xn=!!(!ji&&$n&&$n.indexOf("Safari")>=0),nr=!!($n&&$n.indexOf("Edg/")>=0),qr=!!($n&&$n.indexOf("Android")>=0),vi=Sr.performance&&typeof Sr.performance.now=="function";class Hr{constructor(e){this._highResolution=vi&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new Hr(e)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?Sr.performance.now():Date.now()}}const di=!1,gi=!1;var mi;(function(s){s.None=()=>nt.None;function e(Do){if(gi){const{onListenerDidAdd:Ao}=Do,la=Qi.create();let Il=0;Do.onListenerDidAdd=()=>{++Il===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),la.print()),Ao==null||Ao()}}}function t(Do){return(Ao,la=null,Il)=>{let eu=!1,Wu;return Wu=Do(_c=>{if(!eu)return Wu?Wu.dispose():eu=!0,Ao.call(la,_c)},null,Il),eu&&Wu.dispose(),Wu}}s.once=t;function n(Do,Ao,la){return I((Il,eu=null,Wu)=>Do(_c=>Il.call(eu,Ao(_c)),null,Wu),la)}s.map=n;function r(Do,Ao,la){return I((Il,eu=null,Wu)=>Do(_c=>{Ao(_c),Il.call(eu,_c)},null,Wu),la)}s.forEach=r;function i(Do,Ao,la){return I((Il,eu=null,Wu)=>Do(_c=>Ao(_c)&&Il.call(eu,_c),null,Wu),la)}s.filter=i;function a(Do){return Do}s.signal=a;function p(...Do){return(Ao,la=null,Il)=>ze(...Do.map(eu=>eu(Wu=>Ao.call(la,Wu),null,Il)))}s.any=p;function S(Do,Ao,la,Il){let eu=la;return n(Do,Wu=>(eu=Ao(eu,Wu),eu),Il)}s.reduce=S;function I(Do,Ao){let la;const Il={onFirstListenerAdd(){la=Do(eu.fire,eu)},onLastListenerRemove(){la==null||la.dispose()}};Ao||e(Il);const eu=new Ur(Il);return Ao==null||Ao.add(eu),eu.event}function U(Do,Ao,la=100,Il=!1,eu,Wu){let _c,hh,Tf,mp=0;const Wp={leakWarningThreshold:eu,onFirstListenerAdd(){_c=Do(tm=>{mp++,hh=Ao(hh,tm),Il&&!Tf&&(Qp.fire(hh),hh=void 0),clearTimeout(Tf),Tf=setTimeout(()=>{const lv=hh;hh=void 0,Tf=void 0,(!Il||mp>1)&&Qp.fire(lv),mp=0},la)})},onLastListenerRemove(){_c.dispose()}};Wu||e(Wp);const Qp=new Ur(Wp);return Wu==null||Wu.add(Qp),Qp.event}s.debounce=U;function X(Do,Ao=(Il,eu)=>Il===eu,la){let Il=!0,eu;return i(Do,Wu=>{const _c=Il||!Ao(Wu,eu);return Il=!1,eu=Wu,_c},la)}s.latch=X;function fe(Do,Ao,la){return[s.filter(Do,Ao,la),s.filter(Do,Il=>!Ao(Il),la)]}s.split=fe;function Fe(Do,Ao=!1,la=[]){let Il=la.slice(),eu=Do(hh=>{Il?Il.push(hh):_c.fire(hh)});const Wu=()=>{Il==null||Il.forEach(hh=>_c.fire(hh)),Il=null},_c=new Ur({onFirstListenerAdd(){eu||(eu=Do(hh=>_c.fire(hh)))},onFirstListenerDidAdd(){Il&&(Ao?setTimeout(Wu):Wu())},onLastListenerRemove(){eu&&eu.dispose(),eu=null}});return _c.event}s.buffer=Fe;class st{constructor(Ao){this.event=Ao,this.disposables=new St}map(Ao){return new st(n(this.event,Ao,this.disposables))}forEach(Ao){return new st(r(this.event,Ao,this.disposables))}filter(Ao){return new st(i(this.event,Ao,this.disposables))}reduce(Ao,la){return new st(S(this.event,Ao,la,this.disposables))}latch(){return new st(X(this.event,void 0,this.disposables))}debounce(Ao,la=100,Il=!1,eu){return new st(U(this.event,Ao,la,Il,eu,this.disposables))}on(Ao,la,Il){return this.event(Ao,la,Il)}once(Ao,la,Il){return t(this.event)(Ao,la,Il)}dispose(){this.disposables.dispose()}}function Lt(Do){return new st(Do)}s.chain=Lt;function tn(Do,Ao,la=Il=>Il){const Il=(...hh)=>_c.fire(la(...hh)),eu=()=>Do.on(Ao,Il),Wu=()=>Do.removeListener(Ao,Il),_c=new Ur({onFirstListenerAdd:eu,onLastListenerRemove:Wu});return _c.event}s.fromNodeEventEmitter=tn;function qn(Do,Ao,la=Il=>Il){const Il=(...hh)=>_c.fire(la(...hh)),eu=()=>Do.addEventListener(Ao,Il),Wu=()=>Do.removeEventListener(Ao,Il),_c=new Ur({onFirstListenerAdd:eu,onLastListenerRemove:Wu});return _c.event}s.fromDOMEventEmitter=qn;function rr(Do){return new Promise(Ao=>t(Do)(Ao))}s.toPromise=rr;function ei(Do,Ao){return Ao(void 0),Do(la=>Ao(la))}s.runAndSubscribe=ei;function ro(Do,Ao){let la=null;function Il(Wu){la==null||la.dispose(),la=new St,Ao(Wu,la)}Il(void 0);const eu=Do(Wu=>Il(Wu));return Kt(()=>{eu.dispose(),la==null||la.dispose()})}s.runAndSubscribeWithStore=ro;class Es{constructor(Ao,la){this.obs=Ao,this._counter=0,this._hasChanged=!1;const Il={onFirstListenerAdd:()=>{Ao.addObserver(this)},onLastListenerRemove:()=>{Ao.removeObserver(this)}};la||e(Il),this.emitter=new Ur(Il),la&&la.add(this.emitter)}beginUpdate(Ao){this._counter++}handleChange(Ao,la){this._hasChanged=!0}endUpdate(Ao){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function wa(Do,Ao){return new Es(Do,Ao).emitter.event}s.fromObservable=wa})(mi||(mi={}));class Bi{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${Bi._idPool++}`}start(e){this._stopWatch=new Hr(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}Bi._idPool=0;let zr=-1;class Xr{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e,t){let n=zr;if(typeof this.customThreshold=="number"&&(n=this.customThreshold),n<=0||t{const i=this._stacks.get(e.value)||0;this._stacks.set(e.value,i-1)}}}class Qi{constructor(e){this.value=e}static create(){var e;return new Qi((e=new Error().stack)!==null&&e!==void 0?e:"")}print(){console.warn(this.value.split(` +`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const B=new b;function V(s){g(s)||B.onUnexpectedError(s)}function k(s){g(s)||B.onUnexpectedExternalError(s)}function R(s){if(s instanceof Error){const{name:e,message:t}=s,n=s.stacktrace||s.stack;return{$isError:!0,name:e,message:t,stack:n,noTelemetry:fe.isErrorNoTelemetry(s)}}return s}const C="Canceled";function g(s){return s instanceof A?!0:s instanceof Error&&s.name===C&&s.message===C}class A extends Error{constructor(){super(C),this.name=this.message}}function O(){const s=new Error(C);return s.name=s.message,s}function K(s){return s?new Error(`Illegal argument: ${s}`):new Error("Illegal argument")}function he(s){return s?new Error(`Illegal state: ${s}`):new Error("Illegal state")}class ae extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class fe extends Error{constructor(e){super(e),this.name="ErrorNoTelemetry"}static fromError(e){if(e instanceof fe)return e;const t=new fe;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="ErrorNoTelemetry"}}class xe extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,xe.prototype);debugger}}function ye(s){const e=this;let t=!1,n;return function(){return t||(t=!0,n=s.apply(e,arguments)),n}}var be;(function(s){function e(io){return io&&typeof io=="object"&&typeof io[Symbol.iterator]=="function"}s.is=e;const t=Object.freeze([]);function n(){return t}s.empty=n;function*r(io){yield io}s.single=r;function i(io){return io||t}s.from=i;function a(io){return!io||io[Symbol.iterator]().next().done===!0}s.isEmpty=a;function p(io){return io[Symbol.iterator]().next().value}s.first=p;function S(io,Ts){for(const xa of io)if(Ts(xa))return!0;return!1}s.some=S;function I(io,Ts){for(const xa of io)if(Ts(xa))return xa}s.find=I;function*U(io,Ts){for(const xa of io)Ts(xa)&&(yield xa)}s.filter=U;function*X(io,Ts){let xa=0;for(const To of io)yield Ts(To,xa++)}s.map=X;function*pe(...io){for(const Ts of io)for(const xa of Ts)yield xa}s.concat=pe;function*Fe(io){for(const Ts of io)for(const xa of Ts)yield xa}s.concatNested=Fe;function at(io,Ts,xa){let To=xa;for(const Eo of io)To=Ts(To,Eo);return To}s.reduce=at;function It(io,Ts){let xa=0;for(const To of io)Ts(To,xa++)}s.forEach=It;function*nn(io,Ts,xa=io.length){for(Ts<0&&(Ts+=io.length),xa<0?xa+=io.length:xa>io.length&&(xa=io.length);TsTo===Eo){const To=io[Symbol.iterator](),Eo=Ts[Symbol.iterator]();for(;;){const sa=To.next(),Il=Eo.next();if(sa.done!==Il.done)return!1;if(sa.done)return!0;if(!xa(sa.value,Il.value))return!1}}s.equals=ei})(be||(be={}));const Qe=!1;let Ve=null;function pt(s){Ve=s}if(Qe){const s="__is_disposable_tracked__";pt(new class{trackDisposable(e){const t=new Error("Potentially leaked disposable").stack;setTimeout(()=>{e[s]||console.log(t)},3e3)}setParent(e,t){if(e&&e!==nt.None)try{e[s]=!0}catch(n){}}markAsDisposed(e){if(e&&e!==nt.None)try{e[s]=!0}catch(t){}}markAsSingleton(e){}})}function st(s){return Ve==null||Ve.trackDisposable(s),s}function Ae(s){Ve==null||Ve.markAsDisposed(s)}function De(s,e){Ve==null||Ve.setParent(s,e)}function Te(s,e){if(Ve)for(const t of s)Ve.setParent(t,e)}function Me(s){return Ve==null||Ve.markAsSingleton(s),s}class Ue extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function Pe(s){return typeof s.dispose=="function"&&s.dispose.length===0}function Xe(s){if(be.is(s)){const e=[];for(const t of s)if(t)try{t.dispose()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1)throw new Ue(e);return Array.isArray(s)?[]:s}else if(s)return s.dispose(),s}function Be(...s){const e=Xt(()=>Xe(s));return Te(s,e),e}function Xt(s){const e=st({dispose:ye(()=>{Ae(e),s()})});return e}class St{constructor(){this._toDispose=new Set,this._isDisposed=!1,st(this)}dispose(){this._isDisposed||(Ae(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{Xe(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return De(e,this),this._isDisposed?St.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}St.DISABLE_DISPOSED_WARNING=!1;class nt{constructor(){this._store=new St,st(this),De(this._store,this)}dispose(){Ae(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}nt.None=Object.freeze({dispose(){}});class wt{constructor(){this._isDisposed=!1,st(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)===null||t===void 0||t.dispose(),e&&De(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,Ae(this),(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&De(e,null),e}}class lt{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class Kt{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,st(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0,Ae(this))},this}}class Mt{constructor(e){this.object=e}dispose(){}}class hn{constructor(e){this.element=e,this.next=hn.Undefined,this.prev=hn.Undefined}}hn.Undefined=new hn(void 0);class un{constructor(){this._first=hn.Undefined,this._last=hn.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===hn.Undefined}clear(){let e=this._first;for(;e!==hn.Undefined;){const t=e.next;e.prev=hn.Undefined,e.next=hn.Undefined,e=t}this._first=hn.Undefined,this._last=hn.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new hn(e);if(this._first===hn.Undefined)this._first=n,this._last=n;else if(t){const i=this._last;this._last=n,n.prev=i,i.next=n}else{const i=this._first;this._first=n,n.next=i,i.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==hn.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==hn.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==hn.Undefined&&e.next!==hn.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===hn.Undefined&&e.next===hn.Undefined?(this._first=hn.Undefined,this._last=hn.Undefined):e.next===hn.Undefined?(this._last=this._last.prev,this._last.next=hn.Undefined):e.prev===hn.Undefined&&(this._first=this._first.next,this._first.prev=hn.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==hn.Undefined;)yield e.element,e=e.next}}var Sr=function(s,e,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function p(U){try{I(n.next(U))}catch(X){a(X)}}function S(U){try{I(n.throw(U))}catch(X){a(X)}}function I(U){U.done?i(U.value):r(U.value).then(p,S)}I((n=n.apply(s,e||[])).next())})};let ii=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const Ii="i-default";function Ni(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,(n,r)=>{const i=r[0],a=e[i];let p=n;return typeof a=="string"?p=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(p=String(a)),p}),ii&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function eo(s,e){let t=s[e];return t||(t=s["*"],t)?t:null}function ti(s){return s.charAt(s.length-1)==="/"?s:s+"/"}function Is(s,e,t){return Sr(this,void 0,void 0,function*(){const n=ti(s)+ti(e)+"vscode/"+ti(t),r=yield fetch(n);if(r.ok)return yield r.json();throw new Error(`${r.status} - ${r.statusText}`)})}function Ns(s){return function(e,t){const n=Array.prototype.slice.call(arguments,2);return Ni(s[e],n)}}function Se(s,e,...t){return Ni(e,t)}function Xi(s){}function Yi(s){ii=s}function fo(s,e){var t;return{localize:Ns(e[s]),getConfiguredDefaultLocale:(t=e.getConfiguredDefaultLocale)!==null&&t!==void 0?t:n=>{}}}function di(s,e,t,n){var r;const i=(r=n["vs/nls"])!==null&&r!==void 0?r:{};if(!s||s.length===0)return t({localize:Se,getConfiguredDefaultLocale:()=>{var U;return(U=i.availableLanguages)===null||U===void 0?void 0:U["*"]}});const a=i.availableLanguages?eo(i.availableLanguages,s):null,p=a===null||a===Ii;let S=".nls";p||(S=S+"."+a);const I=U=>{Array.isArray(U)?U.localize=Ns(U):U.localize=Ns(U[s]),U.getConfiguredDefaultLocale=()=>{var X;return(X=i.availableLanguages)===null||X===void 0?void 0:X["*"]},t(U)};typeof i.loadBundle=="function"?i.loadBundle(s,a,(U,X)=>{U?e([s+".nls"],I):I(X)}):i.translationServiceUrl&&!p?Sr(this,void 0,void 0,function*(){var U;try{const X=yield Is(i.translationServiceUrl,a,s);return I(X)}catch(X){if(!a.includes("-"))return console.error(X),e([s+".nls"],I);try{const pe=a.split("-")[0],Fe=yield Is(i.translationServiceUrl,pe,s);return(U=i.availableLanguages)!==null&&U!==void 0||(i.availableLanguages={}),i.availableLanguages["*"]=pe,I(Fe)}catch(pe){return console.error(pe),e([s+".nls"],I)}}}):e([s+S],I,U=>{if(S===".nls"){console.error("Failed trying to load default language strings",U);return}console.error(`Failed to load message bundle for language ${a}. Falling back to the default language:`,U),e([s+".nls"],I)})}var Fs=y(34155),Ln;const it="en";let Ot=!1,Ht=!1,Pn=!1,fr=!1,In=!1,mn=!1,Ut=!1,en=!1,Cn=!1,lr,pr=it,an=null,wr;const Cr=typeof self=="object"?self:typeof y.g=="object"?y.g:{};let Ei;typeof Cr.vscode!="undefined"&&typeof Cr.vscode.process!="undefined"?Ei=Cr.vscode.process:typeof Fs!="undefined"&&(Ei=Fs);const vo=typeof((Ln=Ei==null?void 0:Ei.versions)===null||Ln===void 0?void 0:Ln.electron)=="string",kr=vo&&(Ei==null?void 0:Ei.type)==="renderer";if(typeof navigator=="object"&&!kr)wr=navigator.userAgent,Ot=wr.indexOf("Windows")>=0,Ht=wr.indexOf("Macintosh")>=0,en=(wr.indexOf("Macintosh")>=0||wr.indexOf("iPad")>=0||wr.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Pn=wr.indexOf("Linux")>=0,mn=!0,lr=(Se({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||it,pr=lr;else if(typeof Ei=="object"){Ot=Ei.platform==="win32",Ht=Ei.platform==="darwin",Pn=Ei.platform==="linux",fr=Pn&&!!Ei.env.SNAP&&!!Ei.env.SNAP_REVISION,Ut=vo,Cn=!!Ei.env.CI||!!Ei.env.BUILD_ARTIFACTSTAGINGDIRECTORY,lr=it,pr=it;const s=Ei.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];lr=e.locale,pr=t||it,an=e._translationsConfigFile}catch(e){}In=!0}else console.error("Unable to resolve platform.");let ro=0;Ht?ro=1:Ot?ro=3:Pn&&(ro=2);const qi=Ot,bo=Ht,xn=Pn,pn=In,Dt=mn,Zt=mn&&typeof Cr.importScripts=="function",vn=en,$n=wr,Ar=pr,Dr=typeof Cr.postMessage=="function"&&!Cr.importScripts,dr=(()=>{if(Dr){const s=[];Cr.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=s.length;n{const n=++e;s.push({id:n,callback:t}),Cr.postMessage({vscodeScheduleAsyncWork:n},"*")}}return s=>setTimeout(s)})(),Yt=Ht||en?2:Ot?1:3;let wn=!0,Qn=!1;function Mr(){if(!Qn){Qn=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,wn=new Uint16Array(s.buffer)[0]===512+1}return wn}const Wi=!!($n&&$n.indexOf("Chrome")>=0),Dn=!!($n&&$n.indexOf("Firefox")>=0),Kn=!!(!Wi&&$n&&$n.indexOf("Safari")>=0),nr=!!($n&&$n.indexOf("Edg/")>=0),qr=!!($n&&$n.indexOf("Android")>=0),yi=Cr.performance&&typeof Cr.performance.now=="function";class Hr{constructor(e){this._highResolution=yi&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new Hr(e)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?Cr.performance.now():Date.now()}}const ci=!1,gi=!1;var mi;(function(s){s.None=()=>nt.None;function e(To){if(gi){const{onListenerDidAdd:Eo}=To,sa=Qi.create();let Il=0;To.onListenerDidAdd=()=>{++Il===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),sa.print()),Eo==null||Eo()}}}function t(To){return(Eo,sa=null,Il)=>{let Jl=!1,Zu;return Zu=To(_c=>{if(!Jl)return Zu?Zu.dispose():Jl=!0,Eo.call(sa,_c)},null,Il),Jl&&Zu.dispose(),Zu}}s.once=t;function n(To,Eo,sa){return I((Il,Jl=null,Zu)=>To(_c=>Il.call(Jl,Eo(_c)),null,Zu),sa)}s.map=n;function r(To,Eo,sa){return I((Il,Jl=null,Zu)=>To(_c=>{Eo(_c),Il.call(Jl,_c)},null,Zu),sa)}s.forEach=r;function i(To,Eo,sa){return I((Il,Jl=null,Zu)=>To(_c=>Eo(_c)&&Il.call(Jl,_c),null,Zu),sa)}s.filter=i;function a(To){return To}s.signal=a;function p(...To){return(Eo,sa=null,Il)=>Be(...To.map(Jl=>Jl(Zu=>Eo.call(sa,Zu),null,Il)))}s.any=p;function S(To,Eo,sa,Il){let Jl=sa;return n(To,Zu=>(Jl=Eo(Jl,Zu),Jl),Il)}s.reduce=S;function I(To,Eo){let sa;const Il={onFirstListenerAdd(){sa=To(Jl.fire,Jl)},onLastListenerRemove(){sa==null||sa.dispose()}};Eo||e(Il);const Jl=new Ur(Il);return Eo==null||Eo.add(Jl),Jl.event}function U(To,Eo,sa=100,Il=!1,Jl,Zu){let _c,dd,Af,vp=0;const Kp={leakWarningThreshold:Jl,onFirstListenerAdd(){_c=To(tm=>{vp++,dd=Eo(dd,tm),Il&&!Af&&(rg.fire(dd),dd=void 0),clearTimeout(Af),Af=setTimeout(()=>{const av=dd;dd=void 0,Af=void 0,(!Il||vp>1)&&rg.fire(av),vp=0},sa)})},onLastListenerRemove(){_c.dispose()}};Zu||e(Kp);const rg=new Ur(Kp);return Zu==null||Zu.add(rg),rg.event}s.debounce=U;function X(To,Eo=(Il,Jl)=>Il===Jl,sa){let Il=!0,Jl;return i(To,Zu=>{const _c=Il||!Eo(Zu,Jl);return Il=!1,Jl=Zu,_c},sa)}s.latch=X;function pe(To,Eo,sa){return[s.filter(To,Eo,sa),s.filter(To,Il=>!Eo(Il),sa)]}s.split=pe;function Fe(To,Eo=!1,sa=[]){let Il=sa.slice(),Jl=To(dd=>{Il?Il.push(dd):_c.fire(dd)});const Zu=()=>{Il==null||Il.forEach(dd=>_c.fire(dd)),Il=null},_c=new Ur({onFirstListenerAdd(){Jl||(Jl=To(dd=>_c.fire(dd)))},onFirstListenerDidAdd(){Il&&(Eo?setTimeout(Zu):Zu())},onLastListenerRemove(){Jl&&Jl.dispose(),Jl=null}});return _c.event}s.buffer=Fe;class at{constructor(Eo){this.event=Eo,this.disposables=new St}map(Eo){return new at(n(this.event,Eo,this.disposables))}forEach(Eo){return new at(r(this.event,Eo,this.disposables))}filter(Eo){return new at(i(this.event,Eo,this.disposables))}reduce(Eo,sa){return new at(S(this.event,Eo,sa,this.disposables))}latch(){return new at(X(this.event,void 0,this.disposables))}debounce(Eo,sa=100,Il=!1,Jl){return new at(U(this.event,Eo,sa,Il,Jl,this.disposables))}on(Eo,sa,Il){return this.event(Eo,sa,Il)}once(Eo,sa,Il){return t(this.event)(Eo,sa,Il)}dispose(){this.disposables.dispose()}}function It(To){return new at(To)}s.chain=It;function nn(To,Eo,sa=Il=>Il){const Il=(...dd)=>_c.fire(sa(...dd)),Jl=()=>To.on(Eo,Il),Zu=()=>To.removeListener(Eo,Il),_c=new Ur({onFirstListenerAdd:Jl,onLastListenerRemove:Zu});return _c.event}s.fromNodeEventEmitter=nn;function qn(To,Eo,sa=Il=>Il){const Il=(...dd)=>_c.fire(sa(...dd)),Jl=()=>To.addEventListener(Eo,Il),Zu=()=>To.removeEventListener(Eo,Il),_c=new Ur({onFirstListenerAdd:Jl,onLastListenerRemove:Zu});return _c.event}s.fromDOMEventEmitter=qn;function ir(To){return new Promise(Eo=>t(To)(Eo))}s.toPromise=ir;function ei(To,Eo){return Eo(void 0),To(sa=>Eo(sa))}s.runAndSubscribe=ei;function io(To,Eo){let sa=null;function Il(Zu){sa==null||sa.dispose(),sa=new St,Eo(Zu,sa)}Il(void 0);const Jl=To(Zu=>Il(Zu));return Xt(()=>{Jl.dispose(),sa==null||sa.dispose()})}s.runAndSubscribeWithStore=io;class Ts{constructor(Eo,sa){this.obs=Eo,this._counter=0,this._hasChanged=!1;const Il={onFirstListenerAdd:()=>{Eo.addObserver(this)},onLastListenerRemove:()=>{Eo.removeObserver(this)}};sa||e(Il),this.emitter=new Ur(Il),sa&&sa.add(this.emitter)}beginUpdate(Eo){this._counter++}handleChange(Eo,sa){this._hasChanged=!0}endUpdate(Eo){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function xa(To,Eo){return new Ts(To,Eo).emitter.event}s.fromObservable=xa})(mi||(mi={}));class Bi{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${Bi._idPool++}`}start(e){this._stopWatch=new Hr(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}Bi._idPool=0;let Nr=-1;class Kr{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e,t){let n=Nr;if(typeof this.customThreshold=="number"&&(n=this.customThreshold),n<=0||t{const i=this._stacks.get(e.value)||0;this._stacks.set(e.value,i-1)}}}class Qi{constructor(e){this.value=e}static create(){var e;return new Qi((e=new Error().stack)!==null&&e!==void 0?e:"")}print(){console.warn(this.value.split(` `).slice(2).join(` -`))}}class rs{constructor(e,t,n){this.callback=e,this.callbackThis=t,this.stack=n,this.subscription=new Gt}invoke(e){this.callback.call(this.callbackThis,e)}}class Ur{constructor(e){var t,n;this._disposed=!1,this._options=e,this._leakageMon=zr>0?new Xr(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((t=this._options)===null||t===void 0)&&t._profName?new Bi(this._options._profName):void 0,this._deliveryQueue=(n=this._options)===null||n===void 0?void 0:n.deliveryQueue}dispose(){var e,t,n,r;if(!this._disposed){if(this._disposed=!0,this._listeners){if(di){const i=Array.from(this._listeners);queueMicrotask(()=>{var a;for(const p of i)p.subscription.isset()&&(p.subscription.unset(),(a=p.stack)===null||a===void 0||a.print())})}this._listeners.clear()}(e=this._deliveryQueue)===null||e===void 0||e.clear(this),(n=(t=this._options)===null||t===void 0?void 0:t.onLastListenerRemove)===null||n===void 0||n.call(t),(r=this._leakageMon)===null||r===void 0||r.dispose()}}get event(){return this._event||(this._event=(e,t,n)=>{var r,i,a;this._listeners||(this._listeners=new cn);const p=this._listeners.isEmpty();p&&(!((r=this._options)===null||r===void 0)&&r.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this);let S,I;this._leakageMon&&this._listeners.size>=30&&(I=Qi.create(),S=this._leakageMon.check(I,this._listeners.size+1)),di&&(I=I!=null?I:Qi.create());const U=new rs(e,t,I),X=this._listeners.push(U);p&&(!((i=this._options)===null||i===void 0)&&i.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),!((a=this._options)===null||a===void 0)&&a.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const fe=U.subscription.set(()=>{S==null||S(),this._disposed||(X(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return n instanceof St?n.add(fe):Array.isArray(n)&&n.push(fe),fe}),this._event}fire(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Kr);for(const r of this._listeners)this._deliveryQueue.push(this,r,e);(t=this._perfMon)===null||t===void 0||t.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),(n=this._perfMon)===null||n===void 0||n.stop()}}}class gs{constructor(){this._queue=new cn}get size(){return this._queue.size}push(e,t,n){this._queue.push(new ri(e,t,n))}clear(e){const t=new cn;for(const n of this._queue)n.emitter!==e&&t.push(n);this._queue=t}deliver(){for(;this._queue.size>0;){const e=this._queue.shift();try{e.listener.invoke(e.event)}catch(t){V(t)}}}}class Kr extends gs{clear(e){this._queue.clear()}}class ri{constructor(e,t,n){this.emitter=e,this.listener=t,this.event=n}}class is extends Ur{constructor(e){super(e),this._isPaused=0,this._eventQueue=new cn,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class Jr extends is{constructor(e){var t;super(e),this._delay=(t=e.delay)!==null&&t!==void 0?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class _n{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,r)=>e(i=>{const a=this.buffers[this.buffers.length-1];a?a.push(()=>t.call(n,i)):t.call(n,i)},void 0,r)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(r=>r()),n}}class Br{constructor(){this.listening=!1,this.inputEvent=mi.None,this.inputEventListener=nt.None,this.emitter=new Ur({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}class es{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}es.INSTANCE=new es;class ko extends nt{constructor(){super(),this._onDidChange=this._register(new Ur),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var t;(t=this._mediaQueryList)===null||t===void 0||t.removeEventListener("change",this._listener),this._mediaQueryList=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class vs extends nt{constructor(){super(),this._onDidChange=this._register(new Ur),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new ko);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}get value(){return this._value}_getPixelRatio(){const e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n}}class Ba{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=Re(new vs)),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}function uo(s,e){typeof s=="string"&&(s=window.matchMedia(s)),s.addEventListener("change",e)}const ca=new Ba;function ll(){return es.INSTANCE.getZoomFactor()}const Ti=navigator.userAgent,Li=Ti.indexOf("Firefox")>=0,eo=Ti.indexOf("AppleWebKit")>=0,Eo=Ti.indexOf("Chrome")>=0,hs=!Eo&&Ti.indexOf("Safari")>=0,Wn=!Eo&&!hs&&eo,yo=Ti.indexOf("Electron/")>=0,Qo=Ti.indexOf("Android")>=0;let os=!1;if(window.matchMedia){const s=window.matchMedia("(display-mode: standalone)");os=s.matches,uo(s,({matches:e})=>{os=e})}function Ko(){return os}const Yn={clipboard:{writeText:fn||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:fn||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>fn||Ko()?0:navigator.keyboard||hs?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};class kr{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Gr=new kr,je=new kr,ut=new kr,ht=new Array(230),Ue={},ft=[],Pt=Object.create(null),ln=Object.create(null),sr=[],Zr=[];for(let s=0;s<=193;s++)sr[s]=-1;for(let s=0;s<=127;s++)Zr[s]=-1;(function(){const s="",e=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",s,s],[0,1,1,"Hyper",0,s,0,s,s,s],[0,1,2,"Super",0,s,0,s,s,s],[0,1,3,"Fn",0,s,0,s,s,s],[0,1,4,"FnLock",0,s,0,s,s,s],[0,1,5,"Suspend",0,s,0,s,s,s],[0,1,6,"Resume",0,s,0,s,s,s],[0,1,7,"Turbo",0,s,0,s,s,s],[0,1,8,"Sleep",0,s,0,"VK_SLEEP",s,s],[0,1,9,"WakeUp",0,s,0,s,s,s],[31,0,10,"KeyA",31,"A",65,"VK_A",s,s],[32,0,11,"KeyB",32,"B",66,"VK_B",s,s],[33,0,12,"KeyC",33,"C",67,"VK_C",s,s],[34,0,13,"KeyD",34,"D",68,"VK_D",s,s],[35,0,14,"KeyE",35,"E",69,"VK_E",s,s],[36,0,15,"KeyF",36,"F",70,"VK_F",s,s],[37,0,16,"KeyG",37,"G",71,"VK_G",s,s],[38,0,17,"KeyH",38,"H",72,"VK_H",s,s],[39,0,18,"KeyI",39,"I",73,"VK_I",s,s],[40,0,19,"KeyJ",40,"J",74,"VK_J",s,s],[41,0,20,"KeyK",41,"K",75,"VK_K",s,s],[42,0,21,"KeyL",42,"L",76,"VK_L",s,s],[43,0,22,"KeyM",43,"M",77,"VK_M",s,s],[44,0,23,"KeyN",44,"N",78,"VK_N",s,s],[45,0,24,"KeyO",45,"O",79,"VK_O",s,s],[46,0,25,"KeyP",46,"P",80,"VK_P",s,s],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",s,s],[48,0,27,"KeyR",48,"R",82,"VK_R",s,s],[49,0,28,"KeyS",49,"S",83,"VK_S",s,s],[50,0,29,"KeyT",50,"T",84,"VK_T",s,s],[51,0,30,"KeyU",51,"U",85,"VK_U",s,s],[52,0,31,"KeyV",52,"V",86,"VK_V",s,s],[53,0,32,"KeyW",53,"W",87,"VK_W",s,s],[54,0,33,"KeyX",54,"X",88,"VK_X",s,s],[55,0,34,"KeyY",55,"Y",89,"VK_Y",s,s],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",s,s],[22,0,36,"Digit1",22,"1",49,"VK_1",s,s],[23,0,37,"Digit2",23,"2",50,"VK_2",s,s],[24,0,38,"Digit3",24,"3",51,"VK_3",s,s],[25,0,39,"Digit4",25,"4",52,"VK_4",s,s],[26,0,40,"Digit5",26,"5",53,"VK_5",s,s],[27,0,41,"Digit6",27,"6",54,"VK_6",s,s],[28,0,42,"Digit7",28,"7",55,"VK_7",s,s],[29,0,43,"Digit8",29,"8",56,"VK_8",s,s],[30,0,44,"Digit9",30,"9",57,"VK_9",s,s],[21,0,45,"Digit0",21,"0",48,"VK_0",s,s],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",s,s],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",s,s],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",s,s],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",s,s],[10,1,50,"Space",10,"Space",32,"VK_SPACE",s,s],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,s,0,s,s,s],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",s,s],[59,1,64,"F1",59,"F1",112,"VK_F1",s,s],[60,1,65,"F2",60,"F2",113,"VK_F2",s,s],[61,1,66,"F3",61,"F3",114,"VK_F3",s,s],[62,1,67,"F4",62,"F4",115,"VK_F4",s,s],[63,1,68,"F5",63,"F5",116,"VK_F5",s,s],[64,1,69,"F6",64,"F6",117,"VK_F6",s,s],[65,1,70,"F7",65,"F7",118,"VK_F7",s,s],[66,1,71,"F8",66,"F8",119,"VK_F8",s,s],[67,1,72,"F9",67,"F9",120,"VK_F9",s,s],[68,1,73,"F10",68,"F10",121,"VK_F10",s,s],[69,1,74,"F11",69,"F11",122,"VK_F11",s,s],[70,1,75,"F12",70,"F12",123,"VK_F12",s,s],[0,1,76,"PrintScreen",0,s,0,s,s,s],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",s,s],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",s,s],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",s,s],[14,1,80,"Home",14,"Home",36,"VK_HOME",s,s],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",s,s],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",s,s],[13,1,83,"End",13,"End",35,"VK_END",s,s],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",s,s],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",s],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",s],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",s],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",s],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",s,s],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",s,s],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",s,s],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",s,s],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",s,s],[3,1,94,"NumpadEnter",3,s,0,s,s,s],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",s,s],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",s,s],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",s,s],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",s,s],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",s,s],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",s,s],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",s,s],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",s,s],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",s,s],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",s,s],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",s,s],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",s,s],[58,1,107,"ContextMenu",58,"ContextMenu",93,s,s,s],[0,1,108,"Power",0,s,0,s,s,s],[0,1,109,"NumpadEqual",0,s,0,s,s,s],[71,1,110,"F13",71,"F13",124,"VK_F13",s,s],[72,1,111,"F14",72,"F14",125,"VK_F14",s,s],[73,1,112,"F15",73,"F15",126,"VK_F15",s,s],[74,1,113,"F16",74,"F16",127,"VK_F16",s,s],[75,1,114,"F17",75,"F17",128,"VK_F17",s,s],[76,1,115,"F18",76,"F18",129,"VK_F18",s,s],[77,1,116,"F19",77,"F19",130,"VK_F19",s,s],[0,1,117,"F20",0,s,0,"VK_F20",s,s],[0,1,118,"F21",0,s,0,"VK_F21",s,s],[0,1,119,"F22",0,s,0,"VK_F22",s,s],[0,1,120,"F23",0,s,0,"VK_F23",s,s],[0,1,121,"F24",0,s,0,"VK_F24",s,s],[0,1,122,"Open",0,s,0,s,s,s],[0,1,123,"Help",0,s,0,s,s,s],[0,1,124,"Select",0,s,0,s,s,s],[0,1,125,"Again",0,s,0,s,s,s],[0,1,126,"Undo",0,s,0,s,s,s],[0,1,127,"Cut",0,s,0,s,s,s],[0,1,128,"Copy",0,s,0,s,s,s],[0,1,129,"Paste",0,s,0,s,s,s],[0,1,130,"Find",0,s,0,s,s,s],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",s,s],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",s,s],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",s,s],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",s,s],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",s,s],[0,1,136,"KanaMode",0,s,0,s,s,s],[0,0,137,"IntlYen",0,s,0,s,s,s],[0,1,138,"Convert",0,s,0,s,s,s],[0,1,139,"NonConvert",0,s,0,s,s,s],[0,1,140,"Lang1",0,s,0,s,s,s],[0,1,141,"Lang2",0,s,0,s,s,s],[0,1,142,"Lang3",0,s,0,s,s,s],[0,1,143,"Lang4",0,s,0,s,s,s],[0,1,144,"Lang5",0,s,0,s,s,s],[0,1,145,"Abort",0,s,0,s,s,s],[0,1,146,"Props",0,s,0,s,s,s],[0,1,147,"NumpadParenLeft",0,s,0,s,s,s],[0,1,148,"NumpadParenRight",0,s,0,s,s,s],[0,1,149,"NumpadBackspace",0,s,0,s,s,s],[0,1,150,"NumpadMemoryStore",0,s,0,s,s,s],[0,1,151,"NumpadMemoryRecall",0,s,0,s,s,s],[0,1,152,"NumpadMemoryClear",0,s,0,s,s,s],[0,1,153,"NumpadMemoryAdd",0,s,0,s,s,s],[0,1,154,"NumpadMemorySubtract",0,s,0,s,s,s],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",s,s],[0,1,156,"NumpadClearEntry",0,s,0,s,s,s],[5,1,0,s,5,"Ctrl",17,"VK_CONTROL",s,s],[4,1,0,s,4,"Shift",16,"VK_SHIFT",s,s],[6,1,0,s,6,"Alt",18,"VK_MENU",s,s],[57,1,0,s,57,"Meta",0,"VK_COMMAND",s,s],[5,1,157,"ControlLeft",5,s,0,"VK_LCONTROL",s,s],[4,1,158,"ShiftLeft",4,s,0,"VK_LSHIFT",s,s],[6,1,159,"AltLeft",6,s,0,"VK_LMENU",s,s],[57,1,160,"MetaLeft",57,s,0,"VK_LWIN",s,s],[5,1,161,"ControlRight",5,s,0,"VK_RCONTROL",s,s],[4,1,162,"ShiftRight",4,s,0,"VK_RSHIFT",s,s],[6,1,163,"AltRight",6,s,0,"VK_RMENU",s,s],[57,1,164,"MetaRight",57,s,0,"VK_RWIN",s,s],[0,1,165,"BrightnessUp",0,s,0,s,s,s],[0,1,166,"BrightnessDown",0,s,0,s,s,s],[0,1,167,"MediaPlay",0,s,0,s,s,s],[0,1,168,"MediaRecord",0,s,0,s,s,s],[0,1,169,"MediaFastForward",0,s,0,s,s,s],[0,1,170,"MediaRewind",0,s,0,s,s,s],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",s,s],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",s,s],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",s,s],[0,1,174,"Eject",0,s,0,s,s,s],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",s,s],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",s,s],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",s,s],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",s,s],[0,1,179,"LaunchApp1",0,s,0,"VK_MEDIA_LAUNCH_APP1",s,s],[0,1,180,"SelectTask",0,s,0,s,s,s],[0,1,181,"LaunchScreenSaver",0,s,0,s,s,s],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",s,s],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",s,s],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",s,s],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",s,s],[0,1,186,"BrowserStop",0,s,0,"VK_BROWSER_STOP",s,s],[0,1,187,"BrowserRefresh",0,s,0,"VK_BROWSER_REFRESH",s,s],[0,1,188,"BrowserFavorites",0,s,0,"VK_BROWSER_FAVORITES",s,s],[0,1,189,"ZoomToggle",0,s,0,s,s,s],[0,1,190,"MailReply",0,s,0,s,s,s],[0,1,191,"MailForward",0,s,0,s,s,s],[0,1,192,"MailSend",0,s,0,s,s,s],[109,1,0,s,109,"KeyInComposition",229,s,s,s],[111,1,0,s,111,"ABNT_C2",194,"VK_ABNT_C2",s,s],[91,1,0,s,91,"OEM_8",223,"VK_OEM_8",s,s],[0,1,0,s,0,s,0,"VK_KANA",s,s],[0,1,0,s,0,s,0,"VK_HANGUL",s,s],[0,1,0,s,0,s,0,"VK_JUNJA",s,s],[0,1,0,s,0,s,0,"VK_FINAL",s,s],[0,1,0,s,0,s,0,"VK_HANJA",s,s],[0,1,0,s,0,s,0,"VK_KANJI",s,s],[0,1,0,s,0,s,0,"VK_CONVERT",s,s],[0,1,0,s,0,s,0,"VK_NONCONVERT",s,s],[0,1,0,s,0,s,0,"VK_ACCEPT",s,s],[0,1,0,s,0,s,0,"VK_MODECHANGE",s,s],[0,1,0,s,0,s,0,"VK_SELECT",s,s],[0,1,0,s,0,s,0,"VK_PRINT",s,s],[0,1,0,s,0,s,0,"VK_EXECUTE",s,s],[0,1,0,s,0,s,0,"VK_SNAPSHOT",s,s],[0,1,0,s,0,s,0,"VK_HELP",s,s],[0,1,0,s,0,s,0,"VK_APPS",s,s],[0,1,0,s,0,s,0,"VK_PROCESSKEY",s,s],[0,1,0,s,0,s,0,"VK_PACKET",s,s],[0,1,0,s,0,s,0,"VK_DBE_SBCSCHAR",s,s],[0,1,0,s,0,s,0,"VK_DBE_DBCSCHAR",s,s],[0,1,0,s,0,s,0,"VK_ATTN",s,s],[0,1,0,s,0,s,0,"VK_CRSEL",s,s],[0,1,0,s,0,s,0,"VK_EXSEL",s,s],[0,1,0,s,0,s,0,"VK_EREOF",s,s],[0,1,0,s,0,s,0,"VK_PLAY",s,s],[0,1,0,s,0,s,0,"VK_ZOOM",s,s],[0,1,0,s,0,s,0,"VK_NONAME",s,s],[0,1,0,s,0,s,0,"VK_PA1",s,s],[0,1,0,s,0,s,0,"VK_OEM_CLEAR",s,s]],t=[],n=[];for(const r of e){const[i,a,p,S,I,U,X,fe,Fe,st]=r;if(n[p]||(n[p]=!0,ft[p]=S,Pt[S]=p,ln[S.toLowerCase()]=p,a&&(sr[p]=I,I!==0&&I!==3&&I!==5&&I!==4&&I!==6&&I!==57&&(Zr[I]=p))),!t[I]){if(t[I]=!0,!U)throw new Error(`String representation missing for key code ${I} around scan code ${S}`);Gr.define(I,U),je.define(I,Fe||U),ut.define(I,st||Fe||U)}X&&(ht[X]=I),fe&&(Ue[fe]=I)}Zr[3]=46})();var Ui;(function(s){function e(p){return Gr.keyCodeToStr(p)}s.toString=e;function t(p){return Gr.strToKeyCode(p)}s.fromString=t;function n(p){return je.keyCodeToStr(p)}s.toUserSettingsUS=n;function r(p){return ut.keyCodeToStr(p)}s.toUserSettingsGeneral=r;function i(p){return je.strToKeyCode(p)||ut.strToKeyCode(p)}s.fromUserSettings=i;function a(p){if(p>=93&&p<=108)return null;switch(p){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Gr.keyCodeToStr(p)}s.toElectronAccelerator=a})(Ui||(Ui={}));function To(s,e){const t=(e&65535)<<16>>>0;return(s|t)>>>0}function Vi(s,e){if(s===0)return null;const t=(s&65535)>>>0,n=(s&4294901760)>>>16;return n!==0?new Rs([Us(t,e),Us(n,e)]):new Rs([Us(t,e)])}function Us(s,e){const t=!!(s&2048),n=!!(s&256),r=e===2?n:t,i=!!(s&1024),a=!!(s&512),p=e===2?t:n,S=s&255;return new Is(r,i,a,p,S)}class Is{constructor(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toChord(){return new Rs([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class Rs{constructor(e){if(e.length===0)throw K("parts");this.parts=e}}class Ns{constructor(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.scanCode=i}isDuplicateModifierCase(){return this.ctrlKey&&(this.scanCode===157||this.scanCode===161)||this.shiftKey&&(this.scanCode===158||this.scanCode===162)||this.altKey&&(this.scanCode===159||this.scanCode===163)||this.metaKey&&(this.scanCode===160||this.scanCode===164)}}class Lo{constructor(e,t,n,r,i,a){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyLabel=i,this.keyAriaLabel=a}}class Ps{}function ua(s){if(s.charCode){const t=String.fromCharCode(s.charCode).toUpperCase();return Ui.fromString(t)}const e=s.keyCode;if(e===3)return 7;if(Li){if(e===59)return 80;if(e===107)return 81;if(e===109)return 83;if(bo&&e===224)return 57}else if(eo){if(e===91)return 57;if(bo&&e===93)return 57;if(!bo&&e===92)return 57}return ht[e]||0}const Ka=bo?256:2048,Hl=512,Gl=1024,fs=bo?2048:256;class Hs{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=ua(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=Ka),this.altKey&&(t|=Hl),this.shiftKey&&(t|=Gl),this.metaKey&&(t|=fs),t|=e,t}_computeRuntimeKeybinding(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new Is(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}let dl=!1,Xo=null;function Mi(s){if(!s.parent||s.parent===s)return null;try{const e=s.location,t=s.parent.location;if(e.origin!=="null"&&t.origin!=="null"&&e.origin!==t.origin)return dl=!0,null}catch(e){return dl=!0,null}return s.parent}class Yo{static getSameOriginWindowChain(){if(!Xo){Xo=[];let e=window,t;do t=Mi(e),t?Xo.push({window:e,iframeElement:e.frameElement||null}):Xo.push({window:e,iframeElement:null}),e=t;while(e)}return Xo.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let n=0,r=0;const i=this.getSameOriginWindowChain();for(const a of i){if(n+=a.window.scrollY,r+=a.window.scrollX,a.window===t||!a.iframeElement)break;const p=a.iframeElement.getBoundingClientRect();n+=p.top,r+=p.left}return{top:n,left:r}}}class Os{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=e.button===0,this.middleButton=e.button===1,this.rightButton=e.button===2,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,e.type==="dblclick"&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,typeof e.pageX=="number"?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);const t=Yo.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class Cs{constructor(e,t=0,n=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t,e){const r=e,i=e;if(typeof r.wheelDeltaY!="undefined")this.deltaY=r.wheelDeltaY/120;else if(typeof i.VERTICAL_AXIS!="undefined"&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if(e.type==="wheel"){const a=e;a.deltaMode===a.DOM_DELTA_LINE?Li&&!bo?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof r.wheelDeltaX!="undefined")hs&&Ji?this.deltaX=-(r.wheelDeltaX/120):this.deltaX=r.wheelDeltaX/120;else if(typeof i.HORIZONTAL_AXIS!="undefined"&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){const a=e;a.deltaMode===a.DOM_DELTA_LINE?Li&&!bo?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}function xa(s){if(Array.isArray(s)){for(var e=0,t=Array(s.length);e1?t-1:0),r=1;r/gm),yh=iu(/^data-[\-\w.\u00B7-\uFFFF]/),kc=iu(/^aria-[\-\w]+$/),Kh=iu(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$f=iu(/^(?:\w+script|data):/i),Vf=iu(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s};function Qh(s){if(Array.isArray(s)){for(var e=0,t=Array(s.length);e0&&arguments[0]!==void 0?arguments[0]:Mh(),e=function(Uc){return zs(Uc)};if(e.version="2.3.1",e.removed=[],!s||!s.document||s.document.nodeType!==9)return e.isSupported=!1,e;var t=s.document,n=s.document,r=s.DocumentFragment,i=s.HTMLTemplateElement,a=s.Node,p=s.Element,S=s.NodeFilter,I=s.NamedNodeMap,U=I===void 0?s.NamedNodeMap||s.MozNamedAttrMap:I,X=s.Text,fe=s.Comment,Fe=s.DOMParser,st=s.trustedTypes,Lt=p.prototype,tn=jl(Lt,"cloneNode"),qn=jl(Lt,"nextSibling"),rr=jl(Lt,"childNodes"),ei=jl(Lt,"parentNode");if(typeof i=="function"){var ro=n.createElement("template");ro.content&&ro.content.ownerDocument&&(n=ro.content.ownerDocument)}var Es=Wd(st,t),wa=Es&&Vk?Es.createHTML(""):"",Do=n,Ao=Do.implementation,la=Do.createNodeIterator,Il=Do.createDocumentFragment,eu=Do.getElementsByTagName,Wu=t.importNode,_c={};try{_c=cu(n).documentMode?n.documentMode:{}}catch(lm){}var hh={};e.isSupported=typeof ei=="function"&&Ao&&typeof Ao.createHTMLDocument!="undefined"&&_c!==9;var Tf=Td,mp=Gh,Wp=yh,Qp=kc,tm=$f,lv=Vf,uv=Kh,vp=null,rp=Ya({},[].concat(Qh(Mu),Qh(Bl),Qh(wl),Qh(nc),Qh(Pc))),vv=null,Iy=Ya({},[].concat(Qh(Wc),Qh(cd),Qh(Fc),Qh(vh))),Vb=null,fS=null,u3=!0,pS=!0,NE=!1,Vg=!1,HI=!1,WF=!1,ZF=!1,GI=!1,$k=!1,CV=!0,Vk=!1,SV=!0,td=!0,lc=!1,mc={},pa=null,Ha=Ya({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),bu=null,Jl=Ya({},["audio","video","img","source","image","track"]),gd=null,th=Ya({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xp="http://www.w3.org/1998/Math/MathML",_p="http://www.w3.org/2000/svg",Kg="http://www.w3.org/1999/xhtml",jg=Kg,Q0=!1,_0=null,lg=n.createElement("form"),N1=function(Uc){_0&&_0===Uc||((!Uc||(typeof Uc=="undefined"?"undefined":_h(Uc))!=="object")&&(Uc={}),Uc=cu(Uc),vp="ALLOWED_TAGS"in Uc?Ya({},Uc.ALLOWED_TAGS):rp,vv="ALLOWED_ATTR"in Uc?Ya({},Uc.ALLOWED_ATTR):Iy,gd="ADD_URI_SAFE_ATTR"in Uc?Ya(cu(th),Uc.ADD_URI_SAFE_ATTR):th,bu="ADD_DATA_URI_TAGS"in Uc?Ya(cu(Jl),Uc.ADD_DATA_URI_TAGS):Jl,pa="FORBID_CONTENTS"in Uc?Ya({},Uc.FORBID_CONTENTS):Ha,Vb="FORBID_TAGS"in Uc?Ya({},Uc.FORBID_TAGS):{},fS="FORBID_ATTR"in Uc?Ya({},Uc.FORBID_ATTR):{},mc="USE_PROFILES"in Uc?Uc.USE_PROFILES:!1,u3=Uc.ALLOW_ARIA_ATTR!==!1,pS=Uc.ALLOW_DATA_ATTR!==!1,NE=Uc.ALLOW_UNKNOWN_PROTOCOLS||!1,Vg=Uc.SAFE_FOR_TEMPLATES||!1,HI=Uc.WHOLE_DOCUMENT||!1,GI=Uc.RETURN_DOM||!1,$k=Uc.RETURN_DOM_FRAGMENT||!1,CV=Uc.RETURN_DOM_IMPORT!==!1,Vk=Uc.RETURN_TRUSTED_TYPE||!1,ZF=Uc.FORCE_BODY||!1,SV=Uc.SANITIZE_DOM!==!1,td=Uc.KEEP_CONTENT!==!1,lc=Uc.IN_PLACE||!1,uv=Uc.ALLOWED_URI_REGEXP||uv,jg=Uc.NAMESPACE||Kg,Vg&&(pS=!1),$k&&(GI=!0),mc&&(vp=Ya({},[].concat(Qh(Pc))),vv=[],mc.html===!0&&(Ya(vp,Mu),Ya(vv,Wc)),mc.svg===!0&&(Ya(vp,Bl),Ya(vv,cd),Ya(vv,vh)),mc.svgFilters===!0&&(Ya(vp,wl),Ya(vv,cd),Ya(vv,vh)),mc.mathMl===!0&&(Ya(vp,nc),Ya(vv,Fc),Ya(vv,vh))),Uc.ADD_TAGS&&(vp===rp&&(vp=cu(vp)),Ya(vp,Uc.ADD_TAGS)),Uc.ADD_ATTR&&(vv===Iy&&(vv=cu(vv)),Ya(vv,Uc.ADD_ATTR)),Uc.ADD_URI_SAFE_ATTR&&Ya(gd,Uc.ADD_URI_SAFE_ATTR),Uc.FORBID_CONTENTS&&(pa===Ha&&(pa=cu(pa)),Ya(pa,Uc.FORBID_CONTENTS)),td&&(vp["#text"]=!0),HI&&Ya(vp,["html","head","body"]),vp.table&&(Ya(vp,["tbody"]),delete Vb.tbody),gu&&gu(Uc),_0=Uc)},Jv=Ya({},["mi","mo","mn","ms","mtext"]),J2=Ya({},["foreignobject","desc","title","annotation-xml"]),jv=Ya({},Bl);Ya(jv,wl),Ya(jv,Tn);var Py=Ya({},nc);Ya(Py,Iu);var KL=function(Uc){var cp=ei(Uc);(!cp||!cp.tagName)&&(cp={namespaceURI:Kg,tagName:"template"});var Rg=us(Uc.tagName),Wv=us(cp.tagName);if(Uc.namespaceURI===_p)return cp.namespaceURI===Kg?Rg==="svg":cp.namespaceURI===Xp?Rg==="svg"&&(Wv==="annotation-xml"||Jv[Wv]):!!jv[Rg];if(Uc.namespaceURI===Xp)return cp.namespaceURI===Kg?Rg==="math":cp.namespaceURI===_p?Rg==="math"&&J2[Wv]:!!Py[Rg];if(Uc.namespaceURI===Kg){if(cp.namespaceURI===_p&&!J2[Wv]||cp.namespaceURI===Xp&&!Jv[Wv])return!1;var jb=Ya({},["title","style","font","a","script"]);return!Py[Rg]&&(jb[Rg]||!jv[Rg])}return!1},a2=function(Uc){_o(e.removed,{element:Uc});try{Uc.parentNode.removeChild(Uc)}catch(cp){try{Uc.outerHTML=wa}catch(Rg){Uc.remove()}}},FE=function(Uc,cp){try{_o(e.removed,{attribute:cp.getAttributeNode(Uc),from:cp})}catch(Rg){_o(e.removed,{attribute:null,from:cp})}if(cp.removeAttribute(Uc),Uc==="is"&&!vv[Uc])if(GI||$k)try{a2(cp)}catch(Rg){}else try{cp.setAttribute(Uc,"")}catch(Rg){}},c3=function(Uc){var cp=void 0,Rg=void 0;if(ZF)Uc=""+Uc;else{var Wv=ns(Uc,/^[\r\n\t ]+/);Rg=Wv&&Wv[0]}var jb=Es?Es.createHTML(Uc):Uc;if(jg===Kg)try{cp=new Fe().parseFromString(jb,"text/html")}catch(Zb){}if(!cp||!cp.documentElement){cp=Ao.createDocument(jg,"template",null);try{cp.documentElement.innerHTML=Q0?"":jb}catch(Zb){}}var Wb=cp.body||cp.documentElement;return Uc&&Rg&&Wb.insertBefore(n.createTextNode(Rg),Wb.childNodes[0]||null),jg===Kg?eu.call(cp,HI?"html":"body")[0]:HI?cp.documentElement:Wb},XL=function(Uc){return la.call(Uc.ownerDocument||Uc,Uc,S.SHOW_ELEMENT|S.SHOW_COMMENT|S.SHOW_TEXT,null,!1)},KI=function(Uc){return Uc instanceof X||Uc instanceof fe?!1:typeof Uc.nodeName!="string"||typeof Uc.textContent!="string"||typeof Uc.removeChild!="function"||!(Uc.attributes instanceof U)||typeof Uc.removeAttribute!="function"||typeof Uc.setAttribute!="function"||typeof Uc.namespaceURI!="string"||typeof Uc.insertBefore!="function"},YL=function(Uc){return(typeof a=="undefined"?"undefined":_h(a))==="object"?Uc instanceof a:Uc&&(typeof Uc=="undefined"?"undefined":_h(Uc))==="object"&&typeof Uc.nodeType=="number"&&typeof Uc.nodeName=="string"},tC=function(Uc,cp,Rg){hh[Uc]&&jr(hh[Uc],function(Wv){Wv.call(e,cp,Rg,_0)})},EV=function(Uc){var cp=void 0;if(tC("beforeSanitizeElements",Uc,null),KI(Uc)||ns(Uc.nodeName,/[\u0080-\uFFFF]/))return a2(Uc),!0;var Rg=us(Uc.nodeName);if(tC("uponSanitizeElement",Uc,{tagName:Rg,allowedTags:vp}),!YL(Uc.firstElementChild)&&(!YL(Uc.content)||!YL(Uc.content.firstElementChild))&&ea(/<[/\w]/g,Uc.innerHTML)&&ea(/<[/\w]/g,Uc.textContent)||Rg==="select"&&ea(/