diff --git a/272.674197f2.chunk.css b/214.674197f2.chunk.css similarity index 100% rename from 272.674197f2.chunk.css rename to 214.674197f2.chunk.css diff --git a/272.94ac652e.async.js b/214.d6880da0.async.js similarity index 55% rename from 272.94ac652e.async.js rename to 214.d6880da0.async.js index fabb0a6..9eaab97 100644 --- a/272.94ac652e.async.js +++ b/214.d6880da0.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 KEe=Object.defineProperty,XEe=Object.defineProperties;var YEe=Object.getOwnPropertyDescriptors;var Une=Object.getOwnPropertySymbols;var mve=Object.prototype.hasOwnProperty,vve=Object.prototype.propertyIsEnumerable;var o4=Math.pow,Cfe=(c,m,l)=>m in c?KEe(c,m,{enumerable:!0,configurable:!0,writable:!0,value:l}):c[m]=l,g_=(c,m)=>{for(var l in m||(m={}))mve.call(m,l)&&Cfe(c,l,m[l]);if(Une)for(var l of Une(m))vve.call(m,l)&&Cfe(c,l,m[l]);return c},o2=(c,m)=>XEe(c,YEe(m));var d6=(c,m)=>{var l={};for(var u in c)mve.call(c,u)&&m.indexOf(u)<0&&(l[u]=c[u]);if(c!=null&&Une)for(var u of Une(c))m.indexOf(u)<0&&vve.call(c,u)&&(l[u]=c[u]);return l};var h6=(c,m,l)=>(Cfe(c,typeof m!="symbol"?m+"":m,l),l);var zw=(c,m,l)=>new Promise((u,D)=>{var b=A=>{try{y(l.next(A))}catch(a){D(a)}},x=A=>{try{y(l.throw(A))}catch(a){D(a)}},y=A=>A.done?u(A.value):Promise.resolve(A.value).then(b,x);y((l=l.apply(c,m)).next())}),Sfe=(c,m,l)=>(m=c[Symbol.asyncIterator],l=(u,D)=>(D=c[u])&&(m[u]=b=>new Promise((x,y,A)=>(b=D.call(c,b),A=b.done,Promise.resolve(b.value).then(a=>x({value:a,done:A}),y)))),m?m.call(c):(c=c[Symbol.iterator](),m={},l("next"),l("return"),m));(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[214],{95906:function(c){"use strict";(function(m,l){c.exports=l()})(this,function(){function m(E){var I=[];return E.AMapUI&&I.push(l(E.AMapUI)),E.Loca&&I.push(u(E.Loca)),Promise.all(I)}function l(E){return new Promise(function(I,F){var se=[];if(E.plugins)for(var Be=0;Be=60&&Math.round(Or.h)<=240?si=zs?Math.round(Or.h)-b*Wt:Math.round(Or.h)+b*Wt:si=zs?Math.round(Or.h)+b*Wt:Math.round(Or.h)-b*Wt,si<0?si+=360:si>=360&&(si-=360),si}function Pt(Or,Wt,zs){if(Or.h===0&&Or.s===0)return Or.s;var si;return zs?si=Or.s-x*Wt:Wt===I?si=Or.s+x:si=Or.s+y*Wt,si>1&&(si=1),zs&&Wt===E&&si>.1&&(si=.1),si<.06&&(si=.06),Number(si.toFixed(2))}function et(Or,Wt,zs){var si;return zs?si=Or.v+A*Wt:si=Or.v-a*Wt,si>1&&(si=1),Number(si.toFixed(2))}function Dt(Or){for(var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zs=[],si=(0,D.uA)(Or),Ia=E;Ia>0;Ia-=1){var Da=se(si),$g=Be((0,D.uA)({h:Et(Da,Ia,!0),s:Pt(Da,Ia,!0),v:et(Da,Ia,!0)}));zs.push($g)}zs.push(Be(si));for(var Yg=1;Yg<=I;Yg+=1){var l0=se(si),q0=Be((0,D.uA)({h:Et(l0,Yg),s:Pt(l0,Yg),v:et(l0,Yg)}));zs.push(q0)}return Wt.theme==="dark"?F.map(function(rv){var x0=rv.index,Qv=rv.opacity,$v=Be(Me((0,D.uA)(Wt.backgroundColor||"#141414"),(0,D.uA)(zs[x0]),Qv*100));return $v}):zs}var Bt={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"},On={},ia={};Object.keys(Bt).forEach(function(Or){On[Or]=Dt(Bt[Or]),On[Or].primary=On[Or][5],ia[Or]=Dt(Bt[Or],{theme:"dark",backgroundColor:"#141414"}),ia[Or].primary=ia[Or][5]});var jr=On.red,ni=On.volcano,_r=On.gold,At=On.orange,wn=On.yellow,It=On.lime,Hn=On.green,Ot=On.cyan,_n=On.blue,ri=On.geekblue,An=On.purple,Ra=On.magenta,Ro=On.grey,at=On.grey},78600:function(c,m,l){"use strict";l.d(m,{E4:function(){return GC},jG:function(){return Or},t2:function(){return Cd},ks:function(){return H1},bf:function(){return pv},CI:function(){return xx},fp:function(){return Ou},xy:function(){return ex}});var u=l(16514),D=l(35372),b=l(49397),x=l(54131);function y(T1){for(var By=0,Wy,d_=0,cx=T1.length;cx>=4;++d_,cx-=4)Wy=T1.charCodeAt(d_)&255|(T1.charCodeAt(++d_)&255)<<8|(T1.charCodeAt(++d_)&255)<<16|(T1.charCodeAt(++d_)&255)<<24,Wy=(Wy&65535)*1540483477+((Wy>>>16)*59797<<16),Wy^=Wy>>>24,By=(Wy&65535)*1540483477+((Wy>>>16)*59797<<16)^(By&65535)*1540483477+((By>>>16)*59797<<16);switch(cx){case 3:By^=(T1.charCodeAt(d_+2)&255)<<16;case 2:By^=(T1.charCodeAt(d_+1)&255)<<8;case 1:By^=T1.charCodeAt(d_)&255,By=(By&65535)*1540483477+((By>>>16)*59797<<16)}return By^=By>>>13,By=(By&65535)*1540483477+((By>>>16)*59797<<16),((By^By>>>15)>>>0).toString(36)}var A=y,a=l(98052),E=l(77617),I=l.t(E,2),F=l(64913),se=l(48897),Be=l(61577),Me=l(22946),Et="%";function Pt(T1){return T1.join(Et)}var et=function(){function T1(By){(0,Be.Z)(this,T1),(0,u.Z)(this,"instanceId",void 0),(0,u.Z)(this,"cache",new Map),this.instanceId=By}return(0,Me.Z)(T1,[{key:"get",value:function(Wy){return this.opGet(Pt(Wy))}},{key:"opGet",value:function(Wy){return this.cache.get(Wy)||null}},{key:"update",value:function(Wy,d_){return this.opUpdate(Pt(Wy),d_)}},{key:"opUpdate",value:function(Wy,d_){var cx=this.cache.get(Wy),Px=d_(cx);Px===null?this.cache.delete(Wy):this.cache.set(Wy,Px)}}]),T1}(),Dt=et,Bt=null,On="data-token-hash",ia="data-css-hash",jr="data-cache-path",ni="__cssinjs_instance__";function _r(){var T1=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var By=document.body.querySelectorAll("style[".concat(ia,"]"))||[],Wy=document.head.firstChild;Array.from(By).forEach(function(cx){cx[ni]=cx[ni]||T1,cx[ni]===T1&&document.head.insertBefore(cx,Wy)});var d_={};Array.from(document.querySelectorAll("style[".concat(ia,"]"))).forEach(function(cx){var Px=cx.getAttribute(ia);if(d_[Px]){if(cx[ni]===T1){var L2;(L2=cx.parentNode)===null||L2===void 0||L2.removeChild(cx)}}else d_[Px]=!0})}return new Dt(T1)}var At=E.createContext({hashPriority:"low",cache:_r(),defaultCache:!0}),wn=function(By){var Wy=By.children,d_=_objectWithoutProperties(By,Bt),cx=React.useContext(At),Px=useMemo(function(){var L2=_objectSpread({},cx);Object.keys(d_).forEach(function(Z_){var W2=d_[Z_];d_[Z_]!==void 0&&(L2[Z_]=W2)});var r2=d_.cache;return L2.cache=L2.cache||_r(),L2.defaultCache=!r2&&cx.defaultCache,L2},[cx,d_],function(L2,r2){return!isEqual(L2[0],r2[0],!0)||!isEqual(L2[1],r2[1],!0)});return React.createElement(At.Provider,{value:Px},Wy)},It=At,Hn=l(13255),Ot=l(10254);function _n(T1,By){if(T1.length!==By.length)return!1;for(var Wy=0;Wy1&&arguments[1]!==void 0?arguments[1]:!1,L2={map:this.cache};return Wy.forEach(function(r2){if(!L2)L2=void 0;else{var Z_;L2=(Z_=L2)===null||Z_===void 0||(Z_=Z_.map)===null||Z_===void 0?void 0:Z_.get(r2)}}),(d_=L2)!==null&&d_!==void 0&&d_.value&&Px&&(L2.value[1]=this.cacheCallTimes++),(cx=L2)===null||cx===void 0?void 0:cx.value}},{key:"get",value:function(Wy){var d_;return(d_=this.internalGet(Wy,!0))===null||d_===void 0?void 0:d_[0]}},{key:"has",value:function(Wy){return!!this.internalGet(Wy)}},{key:"set",value:function(Wy,d_){var cx=this;if(!this.has(Wy)){if(this.size()+1>T1.MAX_CACHE_SIZE+T1.MAX_CACHE_OFFSET){var Px=this.keys.reduce(function(W2,M2){var jw=(0,D.Z)(W2,2),I2=jw[1];return cx.internalGet(M2)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Ra+=1}return(0,Me.Z)(T1,[{key:"getDerivativeToken",value:function(Wy){return this.derivatives.reduce(function(d_,cx){return cx(Wy,d_)},void 0)}}]),T1}(),at=new ri;function Or(T1){var By=Array.isArray(T1)?T1:[T1];return at.has(By)||at.set(By,new Ro(By)),at.get(By)}var Wt=new WeakMap,zs={};function si(T1,By){for(var Wy=Wt,d_=0;d_3&&arguments[3]!==void 0?arguments[3]:{},Px=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Px)return T1;var L2=(0,x.Z)((0,x.Z)({},cx),{},(d_={},(0,u.Z)(d_,On,By),(0,u.Z)(d_,ia,Wy),d_)),r2=Object.keys(L2).map(function(Z_){var W2=L2[Z_];return W2?"".concat(Z_,'="').concat(W2,'"'):null}).filter(function(Z_){return Z_}).join(" ");return"")}var H1=function(By){var Wy=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(Wy?"".concat(Wy,"-"):"").concat(By).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()},Og=function(By,Wy,d_){return Object.keys(By).length?".".concat(Wy).concat(d_!=null&&d_.scope?".".concat(d_.scope):"","{").concat(Object.entries(By).map(function(cx){var Px=(0,D.Z)(cx,2),L2=Px[0],r2=Px[1];return"".concat(L2,":").concat(r2,";")}).join(""),"}"):""},Uo=function(By,Wy,d_){var cx={},Px={};return Object.entries(By).forEach(function(L2){var r2,Z_,W2=(0,D.Z)(L2,2),M2=W2[0],jw=W2[1];if(d_!=null&&(r2=d_.preserve)!==null&&r2!==void 0&&r2[M2])Px[M2]=jw;else if((typeof jw=="string"||typeof jw=="number")&&!(d_!=null&&(Z_=d_.ignore)!==null&&Z_!==void 0&&Z_[M2])){var I2,bw=H1(M2,d_==null?void 0:d_.prefix);cx[bw]=typeof jw=="number"&&!(d_!=null&&(I2=d_.unitless)!==null&&I2!==void 0&&I2[M2])?"".concat(jw,"px"):String(jw),Px[M2]="var(".concat(bw,")")}}),[Px,Og(cx,Wy,{scope:d_==null?void 0:d_.scope})]},wu=l(64693),Rg=(0,x.Z)({},I),_0=Rg.useInsertionEffect,k0=function(By,Wy,d_){E.useMemo(By,d_),(0,wu.Z)(function(){return Wy(!0)},d_)},U0=_0?function(T1,By,Wy){return _0(function(){return T1(),By()},Wy)}:k0,cv=U0,Gg=(0,x.Z)({},I),cu=Gg.useInsertionEffect,Hs=function(By){var Wy=[],d_=!1;function cx(Px){d_||Wy.push(Px)}return E.useEffect(function(){return d_=!1,function(){d_=!0,Wy.length&&Wy.forEach(function(Px){return Px()})}},By),cx},Aa=function(){return function(By){By()}},au=typeof cu!="undefined"?Hs:Aa,bg=au;function Fr(){return!1}var qn=!1;function qr(){return qn}var La=Fr;if(!1)var Ig,o0;function $0(T1,By,Wy,d_,cx){var Px=E.useContext(It),L2=Px.cache,r2=[T1].concat((0,b.Z)(By)),Z_=Pt(r2),W2=bg([Z_]),M2=La(),jw=function(Fw){L2.opUpdate(Z_,function(rw){var sw=rw||[void 0,void 0],Zb=(0,D.Z)(sw,2),Kw=Zb[0],$y=Kw===void 0?0:Kw,yx=Zb[1],Dw=yx,Bw=Dw||Wy(),Ky=[$y,Bw];return Fw?Fw(Ky):Ky})};E.useMemo(function(){jw()},[Z_]);var I2=L2.opGet(Z_),bw=I2[1];return cv(function(){cx==null||cx(bw)},function(yC){return jw(function(Fw){var rw=(0,D.Z)(Fw,2),sw=rw[0],Zb=rw[1];return yC&&sw===0&&(cx==null||cx(bw)),[sw+1,Zb]}),function(){L2.opUpdate(Z_,function(Fw){var rw=Fw||[],sw=(0,D.Z)(rw,2),Zb=sw[0],Kw=Zb===void 0?0:Zb,$y=sw[1],yx=Kw-1;return yx===0?(W2(function(){(yC||!L2.opGet(Z_))&&(d_==null||d_($y,!1))}),null):[Kw-1,$y]})}},[Z_]),bw}var Vo={},oi="css",Kr=new Map;function In(T1){Kr.set(T1,(Kr.get(T1)||0)+1)}function Gt(T1,By){if(typeof document!="undefined"){var Wy=document.querySelectorAll("style[".concat(On,'="').concat(T1,'"]'));Wy.forEach(function(d_){if(d_[ni]===By){var cx;(cx=d_.parentNode)===null||cx===void 0||cx.removeChild(d_)}})}}var ui=0;function qs(T1,By){Kr.set(T1,(Kr.get(T1)||0)-1);var Wy=Array.from(Kr.keys()),d_=Wy.filter(function(cx){var Px=Kr.get(cx)||0;return Px<=0});Wy.length-d_.length>ui&&d_.forEach(function(cx){Gt(cx,By),Kr.delete(cx)})}var Cd=function(By,Wy,d_,cx){var Px=d_.getDerivativeToken(By),L2=(0,x.Z)((0,x.Z)({},Px),Wy);return cx&&(L2=cx(L2)),L2},gd="token";function Ou(T1,By){var Wy=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d_=(0,E.useContext)(It),cx=d_.cache.instanceId,Px=d_.container,L2=Wy.salt,r2=L2===void 0?"":L2,Z_=Wy.override,W2=Z_===void 0?Vo:Z_,M2=Wy.formatToken,jw=Wy.getComputedToken,I2=Wy.cssVar,bw=si(function(){return Object.assign.apply(Object,[{}].concat((0,b.Z)(By)))},By),yC=Da(bw),Fw=Da(W2),rw=I2?Da(I2):"",sw=$0(gd,[r2,T1.id,yC,Fw,rw],function(){var Zb,Kw=jw?jw(bw,W2,T1):Cd(bw,W2,T1,M2),$y=(0,x.Z)({},Kw),yx="";if(I2){var Dw=Uo(Kw,I2.key,{prefix:I2.prefix,ignore:I2.ignore,unitless:I2.unitless,preserve:I2.preserve}),Bw=(0,D.Z)(Dw,2);Kw=Bw[0],yx=Bw[1]}var Ky=$g(Kw,r2);Kw._tokenKey=Ky,$y._tokenKey=$g($y,r2);var Lx=(Zb=I2==null?void 0:I2.key)!==null&&Zb!==void 0?Zb:Ky;Kw._themeKey=Lx,In(Lx);var X_="".concat(oi,"-").concat(A(Ky));return Kw._hashId=X_,[Kw,X_,$y,yx,(I2==null?void 0:I2.key)||""]},function(Zb){qs(Zb[0]._themeKey,cx)},function(Zb){var Kw=(0,D.Z)(Zb,4),$y=Kw[0],yx=Kw[3];if(I2&&yx){var Dw=(0,a.hq)(yx,A("css-variables-".concat($y._themeKey)),{mark:ia,prepend:"queue",attachTo:Px,priority:-999});Dw[ni]=cx,Dw.setAttribute(On,$y._themeKey)}});return sw}var _a=function(By,Wy,d_){var cx=(0,D.Z)(By,5),Px=cx[2],L2=cx[3],r2=cx[4],Z_=d_||{},W2=Z_.plain;if(!L2)return null;var M2=Px._tokenKey,jw=-999,I2={"data-rc-order":"prependQueue","data-rc-priority":"".concat(jw)},bw=w0(L2,r2,M2,I2,W2);return[jw,M2,bw]},Nd=l(79384),Zg={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},Ga=Zg,J0="-ms-",xa="-moz-",Ua="-webkit-",du="comm",jg="rule",c0="decl",Jg="@page",P0="@media",h0="@import",a0="@charset",V0="@viewport",Av="@supports",m0="@document",f0="@namespace",L1="@keyframes",Pg="@font-face",A1="@counter-style",Qg="@font-feature-values",d0="@layer",f1=Math.abs,w1=String.fromCharCode,Gd=Object.assign;function _g(T1,By){return G0(T1,0)^45?(((By<<2^G0(T1,0))<<2^G0(T1,1))<<2^G0(T1,2))<<2^G0(T1,3):0}function jv(T1){return T1.trim()}function Ov(T1,By){return(T1=By.exec(T1))?T1[0]:T1}function r1(T1,By,Wy){return T1.replace(By,Wy)}function M1(T1,By,Wy){return T1.indexOf(By,Wy)}function G0(T1,By){return T1.charCodeAt(By)|0}function q1(T1,By,Wy){return T1.slice(By,Wy)}function My(T1){return T1.length}function S0(T1){return T1.length}function Y0(T1,By){return By.push(T1),T1}function uv(T1,By){return T1.map(By).join("")}function Gv(T1,By){return T1.filter(function(Wy){return!Ov(Wy,By)})}function W0(T1,By){for(var Wy="",d_=0;d_0?G0(Kg,--E1):0,h1--,yu===10&&(h1=1,dv--),yu}function No(){return yu=E12||rn(yu)>3?"":" "}function Pv(T1){for(;No();)switch(rn(yu)){case 0:append(wy(E1-1),T1);break;case 2:append(yd(yu),T1);break;default:append(from(yu),T1)}return T1}function Jv(T1,By){for(;--By&&No()&&!(yu<48||yu>102||yu>57&&yu<65||yu>70&&yu<97););return e0(T1,mu()+(By<6&&va()==32&&No()==32))}function N1(T1){for(;No();)switch(yu){case T1:return E1;case 34:case 39:T1!==34&&T1!==39&&N1(yu);break;case 40:T1===41&&N1(T1);break;case 92:No();break}return E1}function G1(T1,By){for(;No()&&T1+yu!==47+10;)if(T1+yu===42+42&&va()===47)break;return"/*"+e0(By,E1-1)+"*"+w1(T1===47?T1:No())}function wy(T1){for(;!rn(va());)No();return e0(T1,E1)}function Oy(T1){return $a(e_("",null,null,null,[""],T1=js(T1),0,[0],T1))}function e_(T1,By,Wy,d_,cx,Px,L2,r2,Z_){for(var W2=0,M2=0,jw=L2,I2=0,bw=0,yC=0,Fw=1,rw=1,sw=1,Zb=0,Kw="",$y=cx,yx=Px,Dw=d_,Bw=Kw;rw;)switch(yC=Zb,Zb=No()){case 40:if(yC!=108&&G0(Bw,jw-1)==58){M1(Bw+=r1(yd(Zb),"&","&\f"),"&\f",f1(W2?r2[W2-1]:0))!=-1&&(sw=-1);break}case 34:case 39:case 91:Bw+=yd(Zb);break;case 9:case 10:case 13:case 32:Bw+=yv(yC);break;case 92:Bw+=Jv(mu()-1,7);continue;case 47:switch(va()){case 42:case 47:Y0(e1(G1(No(),mu()),By,Wy,Z_),Z_);break;default:Bw+="/"}break;case 123*Fw:r2[W2++]=My(Bw)*sw;case 125*Fw:case 59:case 0:switch(Zb){case 0:case 125:rw=0;case 59+M2:sw==-1&&(Bw=r1(Bw,/\f/g,"")),bw>0&&My(Bw)-jw&&Y0(bw>32?ty(Bw+";",d_,Wy,jw-1,Z_):ty(r1(Bw," ","")+";",d_,Wy,jw-2,Z_),Z_);break;case 59:Bw+=";";default:if(Y0(Dw=av(Bw,By,Wy,W2,M2,cx,r2,Kw,$y=[],yx=[],jw,Px),Px),Zb===123)if(M2===0)e_(Bw,By,Dw,Dw,$y,Px,jw,r2,yx);else switch(I2===99&&G0(Bw,3)===110?100:I2){case 100:case 108:case 109:case 115:e_(T1,Dw,Dw,d_&&Y0(av(T1,Dw,Dw,0,0,cx,r2,Kw,cx,$y=[],jw,yx),yx),cx,yx,jw,r2,d_?$y:yx);break;default:e_(Bw,Dw,Dw,Dw,[""],yx,0,r2,yx)}}W2=M2=bw=0,Fw=sw=1,Kw=Bw="",jw=L2;break;case 58:jw=1+My(Bw),bw=yC;default:if(Fw<1){if(Zb==123)--Fw;else if(Zb==125&&Fw++==0&&Yr()==125)continue}switch(Bw+=w1(Zb),Zb*Fw){case 38:sw=M2>0?1:(Bw+="\f",-1);break;case 44:r2[W2++]=(My(Bw)-1)*sw,sw=1;break;case 64:va()===45&&(Bw+=yd(No())),I2=va(),M2=jw=My(Kw=Bw+=wy(mu())),Zb++;break;case 45:yC===45&&My(Bw)==2&&(Fw=0)}}return Px}function av(T1,By,Wy,d_,cx,Px,L2,r2,Z_,W2,M2,jw){for(var I2=cx-1,bw=cx===0?Px:[""],yC=S0(bw),Fw=0,rw=0,sw=0;Fw0?bw[Zb]+" "+Kw:r1(Kw,/&\f/g,bw[Zb])))&&(Z_[sw++]=$y);return i0(T1,By,Wy,cx===0?jg:r2,Z_,W2,M2,jw)}function e1(T1,By,Wy,d_){return i0(T1,By,Wy,du,w1(fr()),q1(T1,2,-2),0,d_)}function ty(T1,By,Wy,d_,cx){return i0(T1,By,Wy,c0,q1(T1,0,d_),q1(T1,d_+1,-1),d_,cx)}function L_(T1,By){var Wy=By.path,d_=By.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(Wy?"Error in ".concat(Wy,": "):"").concat(T1).concat(d_.length?" Selector: ".concat(d_.join(" | ")):""))}var u1=function(By,Wy,d_){if(By==="content"){var cx=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Px=["normal","none","initial","inherit","unset"];(typeof Wy!="string"||Px.indexOf(Wy)===-1&&!cx.test(Wy)&&(Wy.charAt(0)!==Wy.charAt(Wy.length-1)||Wy.charAt(0)!=='"'&&Wy.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(Wy,"\"'`."),d_)}},mv=null,Sv=function(By,Wy,d_){By==="animation"&&d_.hashId&&Wy!=="none"&&lintWarning("You seem to be using hashed animation '".concat(Wy,"', in which case 'animationName' with Keyframe as value is recommended."),d_)},Fv=null;function x1(T1){var By,Wy=((By=T1.match(/:not\(([^)]*)\)/))===null||By===void 0?void 0:By[1])||"",d_=Wy.split(/(\[[^[]*])|(?=[.#])/).filter(function(cx){return cx});return d_.length>1}function ey(T1){return T1.parentSelectors.reduce(function(By,Wy){return By?Wy.includes("&")?Wy.replace(/&/g,By):"".concat(By," ").concat(Wy):Wy},"")}var ox=function(By,Wy,d_){var cx=ey(d_),Px=cx.match(/:not\([^)]*\)/g)||[];Px.length>0&&Px.some(x1)&&lintWarning("Concat ':not' selector not support in legacy browsers.",d_)},s2=null,l2=function(By,Wy,d_){switch(By){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(By,"' 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."),d_);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof Wy=="string"){var cx=Wy.split(" ").map(function(r2){return r2.trim()});cx.length===4&&cx[1]!==cx[3]&&lintWarning("You seem to be using '".concat(By,"' property with different left ").concat(By," and right ").concat(By,", 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."),d_)}return;case"clear":case"textAlign":(Wy==="left"||Wy==="right")&&lintWarning("You seem to be using non-logical value '".concat(Wy,"' of ").concat(By,", 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."),d_);return;case"borderRadius":if(typeof Wy=="string"){var Px=Wy.split("/").map(function(r2){return r2.trim()}),L2=Px.reduce(function(r2,Z_){if(r2)return r2;var W2=Z_.split(" ").map(function(M2){return M2.trim()});return W2.length>=2&&W2[0]!==W2[1]||W2.length===3&&W2[1]!==W2[2]||W2.length===4&&W2[2]!==W2[3]?!0:r2},!1);L2&&lintWarning("You seem to be using non-logical value '".concat(Wy,"' of ").concat(By,", 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."),d_)}return;default:}},z2=null,k2=function(By,Wy,d_){(typeof Wy=="string"&&/NaN/g.test(Wy)||Number.isNaN(Wy))&&lintWarning("Unexpected 'NaN' in property '".concat(By,": ").concat(Wy,"'."),d_)},ix=null,hx=function(By,Wy,d_){d_.parentSelectors.some(function(cx){var Px=cx.split(",");return Px.some(function(L2){return L2.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",d_)},ax=null,sv="data-ant-cssinjs-cache-path",ov="_FILE_STYLE__";function Eu(T1){return Object.keys(T1).map(function(By){var Wy=T1[By];return"".concat(By,":").concat(Wy)}).join(";")}var Bg,Hg=!0;function xv(T1){var By=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Bg=T1,Hg=By}function y1(){if(!Bg&&(Bg={},(0,Ot.Z)())){var T1=document.createElement("div");T1.className=sv,T1.style.position="fixed",T1.style.visibility="hidden",T1.style.top="-9999px",document.body.appendChild(T1);var By=getComputedStyle(T1).content||"";By=By.replace(/^"/,"").replace(/"$/,""),By.split(";").forEach(function(cx){var Px=cx.split(":"),L2=(0,D.Z)(Px,2),r2=L2[0],Z_=L2[1];Bg[r2]=Z_});var Wy=document.querySelector("style[".concat(sv,"]"));if(Wy){var d_;Hg=!1,(d_=Wy.parentNode)===null||d_===void 0||d_.removeChild(Wy)}document.body.removeChild(T1)}}function R1(T1){return y1(),!!Bg[T1]}function V1(T1){var By=Bg[T1],Wy=null;if(By&&(0,Ot.Z)())if(Hg)Wy=ov;else{var d_=document.querySelector("style[".concat(ia,'="').concat(Bg[T1],'"]'));d_?Wy=d_.innerHTML:delete Bg[T1]}return[Wy,By]}var I1="_skip_check_",zy="_multi_value_";function U1(T1){var By=W0(Oy(T1),bu);return By.replace(/\{%%%\:[^;];}/g,";")}function E_(T1){return(0,Hn.Z)(T1)==="object"&&T1&&(I1 in T1||zy in T1)}function sy(T1,By,Wy){if(!By)return T1;var d_=".".concat(By),cx=Wy==="low"?":where(".concat(d_,")"):d_,Px=T1.split(",").map(function(L2){var r2,Z_=L2.trim().split(/\s+/),W2=Z_[0]||"",M2=((r2=W2.match(/^\w+/))===null||r2===void 0?void 0:r2[0])||"";return W2="".concat(M2).concat(cx).concat(W2.slice(M2.length)),[W2].concat((0,b.Z)(Z_.slice(1))).join(" ")});return Px.join(",")}var p_=function T1(By){var Wy=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},cx=d_.root,Px=d_.injectHash,L2=d_.parentSelectors,r2=Wy.hashId,Z_=Wy.layer,W2=Wy.path,M2=Wy.hashPriority,jw=Wy.transformers,I2=jw===void 0?[]:jw,bw=Wy.linters,yC=bw===void 0?[]:bw,Fw="",rw={};function sw(Dw){var Bw=Dw.getName(r2);if(!rw[Bw]){var Ky=T1(Dw.style,Wy,{root:!1,parentSelectors:L2}),Lx=(0,D.Z)(Ky,1),X_=Lx[0];rw[Bw]="@keyframes ".concat(Dw.getName(r2)).concat(X_)}}function Zb(Dw){var Bw=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Dw.forEach(function(Ky){Array.isArray(Ky)?Zb(Ky,Bw):Ky&&Bw.push(Ky)}),Bw}var Kw=Zb(Array.isArray(By)?By:[By]);if(Kw.forEach(function(Dw){var Bw=typeof Dw=="string"&&!cx?{}:Dw;if(typeof Bw=="string")Fw+="".concat(Bw,` +`);else if(Bw._keyframe)sw(Bw);else{var Ky=I2.reduce(function(Lx,X_){var e2;return(X_==null||(e2=X_.visit)===null||e2===void 0?void 0:e2.call(X_,Lx))||Lx},Bw);Object.keys(Ky).forEach(function(Lx){var X_=Ky[Lx];if((0,Hn.Z)(X_)==="object"&&X_&&(Lx!=="animationName"||!X_._keyframe)&&!E_(X_)){var e2=!1,Ox=Lx.trim(),O2=!1;(cx||Px)&&r2?Ox.startsWith("@")?e2=!0:Ox=sy(Lx,r2,M2):cx&&!r2&&(Ox==="&"||Ox==="")&&(Ox="",O2=!0);var iw=T1(X_,Wy,{root:O2,injectHash:e2,parentSelectors:[].concat((0,b.Z)(L2),[Ox])}),dw=(0,D.Z)(iw,2),Jw=dw[0],DC=dw[1];rw=(0,x.Z)((0,x.Z)({},rw),DC),Fw+="".concat(Ox).concat(Jw)}else{let Kx=function(bS,Qw){var Ew=bS.replace(/[A-Z]/g,function(XS){return"-".concat(XS.toLowerCase())}),BS=Qw;!Ga[bS]&&typeof BS=="number"&&BS!==0&&(BS="".concat(BS,"px")),bS==="animationName"&&Qw!==null&&Qw!==void 0&&Qw._keyframe&&(sw(Qw),BS=Qw.getName(r2)),Fw+="".concat(Ew,":").concat(BS,";")};var uC,qC=(uC=X_==null?void 0:X_.value)!==null&&uC!==void 0?uC:X_;(0,Hn.Z)(X_)==="object"&&X_!==null&&X_!==void 0&&X_[zy]&&Array.isArray(qC)?qC.forEach(function(bS){Kx(Lx,bS)}):Kx(Lx,qC)}})}}),!cx)Fw="{".concat(Fw,"}");else if(Z_&&x0()){var $y=Z_.split(","),yx=$y[$y.length-1].trim();Fw="@layer ".concat(yx," {").concat(Fw,"}"),$y.length>1&&(Fw="@layer ".concat(Z_,"{%%%:%}").concat(Fw))}return[Fw,rw]};function m_(T1,By){return A("".concat(T1.join("%")).concat(By))}function mx(){return null}var W_="style";function ex(T1,By){var Wy=T1.token,d_=T1.path,cx=T1.hashId,Px=T1.layer,L2=T1.nonce,r2=T1.clientOnly,Z_=T1.order,W2=Z_===void 0?0:Z_,M2=E.useContext(It),jw=M2.autoClear,I2=M2.mock,bw=M2.defaultCache,yC=M2.hashPriority,Fw=M2.container,rw=M2.ssrInline,sw=M2.transformers,Zb=M2.linters,Kw=M2.cache,$y=Wy._tokenKey,yx=[$y].concat((0,b.Z)(d_)),Dw=nv,Bw=$0(W_,yx,function(){var Ox=yx.join("|");if(R1(Ox)){var O2=V1(Ox),iw=(0,D.Z)(O2,2),dw=iw[0],Jw=iw[1];if(dw)return[dw,$y,Jw,{},r2,W2]}var DC=By(),uC=p_(DC,{hashId:cx,hashPriority:yC,layer:Px,path:d_.join("-"),transformers:sw,linters:Zb}),qC=(0,D.Z)(uC,2),Kx=qC[0],bS=qC[1],Qw=U1(Kx),Ew=m_(yx,Qw);return[Qw,$y,Ew,bS,r2,W2]},function(Ox,O2){var iw=(0,D.Z)(Ox,3),dw=iw[2];(O2||jw)&&nv&&(0,a.jL)(dw,{mark:ia})},function(Ox){var O2=(0,D.Z)(Ox,4),iw=O2[0],dw=O2[1],Jw=O2[2],DC=O2[3];if(Dw&&iw!==ov){var uC={mark:ia,prepend:"queue",attachTo:Fw,priority:W2},qC=typeof L2=="function"?L2():L2;qC&&(uC.csp={nonce:qC});var Kx=(0,a.hq)(iw,Jw,uC);Kx[ni]=Kw.instanceId,Kx.setAttribute(On,$y),Object.keys(DC).forEach(function(bS){(0,a.hq)(U1(DC[bS]),"_effect-".concat(bS),uC)})}}),Ky=(0,D.Z)(Bw,3),Lx=Ky[0],X_=Ky[1],e2=Ky[2];return function(Ox){var O2;if(!rw||Dw||!bw)O2=E.createElement(mx,null);else{var iw;O2=E.createElement("style",(0,Nd.Z)({},(iw={},(0,u.Z)(iw,On,X_),(0,u.Z)(iw,ia,e2),iw),{dangerouslySetInnerHTML:{__html:Lx}}))}return E.createElement(E.Fragment,null,O2,Ox)}}var B_=function(By,Wy,d_){var cx=(0,D.Z)(By,6),Px=cx[0],L2=cx[1],r2=cx[2],Z_=cx[3],W2=cx[4],M2=cx[5],jw=d_||{},I2=jw.plain;if(W2)return null;var bw=Px,yC={"data-rc-order":"prependQueue","data-rc-priority":"".concat(M2)};return bw=w0(Px,L2,r2,yC,I2),Z_&&Object.keys(Z_).forEach(function(Fw){if(!Wy[Fw]){Wy[Fw]=!0;var rw=U1(Z_[Fw]);bw+=w0(rw,L2,"_effect-".concat(Fw),yC,I2)}}),[M2,r2,bw]},T_="cssVar",vx=function(By,Wy){var d_=By.key,cx=By.prefix,Px=By.unitless,L2=By.ignore,r2=By.token,Z_=By.scope,W2=Z_===void 0?"":Z_,M2=(0,E.useContext)(It),jw=M2.cache.instanceId,I2=M2.container,bw=r2._tokenKey,yC=[].concat((0,b.Z)(By.path),[d_,W2,bw]),Fw=$0(T_,yC,function(){var rw=Wy(),sw=Uo(rw,d_,{prefix:cx,unitless:Px,ignore:L2,scope:W2}),Zb=(0,D.Z)(sw,2),Kw=Zb[0],$y=Zb[1],yx=m_(yC,$y);return[Kw,$y,yx,d_]},function(rw){var sw=(0,D.Z)(rw,3),Zb=sw[2];nv&&(0,a.jL)(Zb,{mark:ia})},function(rw){var sw=(0,D.Z)(rw,3),Zb=sw[1],Kw=sw[2];if(Zb){var $y=(0,a.hq)(Zb,Kw,{mark:ia,prepend:"queue",attachTo:I2,priority:-999});$y[ni]=jw,$y.setAttribute(On,d_)}});return Fw},ka=function(By,Wy,d_){var cx=(0,D.Z)(By,4),Px=cx[1],L2=cx[2],r2=cx[3],Z_=d_||{},W2=Z_.plain;if(!Px)return null;var M2=-999,jw={"data-rc-order":"prependQueue","data-rc-priority":"".concat(M2)},I2=w0(Px,r2,L2,jw,W2);return[M2,L2,I2]},xx=vx,u2,v2=(u2={},(0,u.Z)(u2,W_,B_),(0,u.Z)(u2,gd,_a),(0,u.Z)(u2,T_,ka),u2);function U2(T1){return T1!==null}function Z2(T1,By){var Wy=typeof By=="boolean"?{plain:By}:By||{},d_=Wy.plain,cx=d_===void 0?!1:d_,Px=Wy.types,L2=Px===void 0?["style","token","cssVar"]:Px,r2=new RegExp("^(".concat((typeof L2=="string"?[L2]:L2).join("|"),")%")),Z_=Array.from(T1.cache.keys()).filter(function(I2){return r2.test(I2)}),W2={},M2={},jw="";return Z_.map(function(I2){var bw=I2.replace(r2,"").replace(/%/g,"|"),yC=I2.split("%"),Fw=_slicedToArray(yC,1),rw=Fw[0],sw=v2[rw],Zb=sw(T1.cache.get(I2)[1],W2,{plain:cx});if(!Zb)return null;var Kw=_slicedToArray(Zb,3),$y=Kw[0],yx=Kw[1],Dw=Kw[2];return I2.startsWith("style")&&(M2[bw]=yx),[$y,Dw]}).filter(U2).sort(function(I2,bw){var yC=_slicedToArray(I2,1),Fw=yC[0],rw=_slicedToArray(bw,1),sw=rw[0];return Fw-sw}).forEach(function(I2){var bw=_slicedToArray(I2,2),yC=bw[1];jw+=yC}),jw+=toStyleStr(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serializeCacheMap(M2),'";}'),void 0,void 0,_defineProperty({},ATTR_CACHE_MAP,ATTR_CACHE_MAP),cx),jw}var rC=function(){function T1(By,Wy){(0,Be.Z)(this,T1),(0,u.Z)(this,"name",void 0),(0,u.Z)(this,"style",void 0),(0,u.Z)(this,"_keyframe",!0),this.name=By,this.style=Wy}return(0,Me.Z)(T1,[{key:"getName",value:function(){var Wy=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Wy?"".concat(Wy,"-").concat(this.name):this.name}}]),T1}(),GC=rC;function vC(T1){if(typeof T1=="number")return[[T1],!1];var By=String(T1).trim(),Wy=By.match(/(.*)(!important)/),d_=(Wy?Wy[1]:By).trim().split(/\s+/),cx="",Px=0;return[d_.reduce(function(L2,r2){if(r2.includes("(")||r2.includes(")")){var Z_=r2.split("(").length-1,W2=r2.split(")").length-1;Px+=Z_-W2}return Px===0?(L2.push(cx+r2),cx=""):Px>0&&(cx+=r2),L2},[]),!!Wy]}function Lw(T1){return T1.notSplit=!0,T1}var Mw={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:Lw(["borderTop","borderBottom"]),borderBlockStart:Lw(["borderTop"]),borderBlockEnd:Lw(["borderBottom"]),borderInline:Lw(["borderLeft","borderRight"]),borderInlineStart:Lw(["borderLeft"]),borderInlineEnd:Lw(["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(T1,By){var Wy=T1;return By&&(Wy="".concat(Wy," !important")),{_skip_check_:!0,value:Wy}}var QS={visit:function(By){var Wy={};return Object.keys(By).forEach(function(d_){var cx=By[d_],Px=Mw[d_];if(Px&&(typeof cx=="number"||typeof cx=="string")){var L2=vC(cx),r2=(0,D.Z)(L2,2),Z_=r2[0],W2=r2[1];Px.length&&Px.notSplit?Px.forEach(function(M2){Wy[M2]=KC(cx,W2)}):Px.length===1?Wy[Px[0]]=KC(cx,W2):Px.length===2?Px.forEach(function(M2,jw){var I2;Wy[M2]=KC((I2=Z_[jw])!==null&&I2!==void 0?I2:Z_[0],W2)}):Px.length===4?Px.forEach(function(M2,jw){var I2,bw;Wy[M2]=KC((I2=(bw=Z_[jw])!==null&&bw!==void 0?bw:Z_[jw-2])!==null&&I2!==void 0?I2:Z_[0],W2)}):Wy[d_]=cx}else Wy[d_]=cx}),Wy}},lS=null,zC=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function uE(T1,By){var Wy=Math.pow(10,By+1),d_=Math.floor(T1*Wy);return Math.round(d_/10)*10/Wy}var HS=function(){var By=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Wy=By.rootValue,d_=Wy===void 0?16:Wy,cx=By.precision,Px=cx===void 0?5:cx,L2=By.mediaQuery,r2=L2===void 0?!1:L2,Z_=function(jw,I2){if(!I2)return jw;var bw=parseFloat(I2);if(bw<=1)return jw;var yC=uE(bw/d_,Px);return"".concat(yC,"rem")},W2=function(jw){var I2=_objectSpread({},jw);return Object.entries(jw).forEach(function(bw){var yC=_slicedToArray(bw,2),Fw=yC[0],rw=yC[1];if(typeof rw=="string"&&rw.includes("px")){var sw=rw.replace(zC,Z_);I2[Fw]=sw}!unitless[Fw]&&typeof rw=="number"&&rw!==0&&(I2[Fw]="".concat(rw,"px").replace(zC,Z_));var Zb=Fw.trim();if(Zb.startsWith("@")&&Zb.includes("px")&&r2){var Kw=Fw.replace(zC,Z_);I2[Kw]=I2[Fw],delete I2[Fw]}}),I2};return{visit:W2}},$C=null,dE={supportModernCSS:function(){return $v()&&F0()}}},69929:function(c,m){"use strict";var l={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"};m.Z=l},43755:function(c,m){"use strict";var l={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"};m.Z=l},48041:function(c,m){"use strict";var l={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"};m.Z=l},12022:function(c,m){"use strict";var l={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"};m.Z=l},48245:function(c,m){"use strict";var l={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"};m.Z=l},27955:function(c,m){"use strict";var l={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"};m.Z=l},58781:function(c,m,l){"use strict";l.d(m,{Z:function(){return au}});var u=l(54131),D=l(35372),b=l(16514),x=l(56348),y=l(77617),A=l(92310),a=l.n(A),E=(0,y.createContext)({}),I=E,F=l(13255),se=l(12722),Be=l(9915),Me=2,Et=.16,Pt=.05,et=.05,Dt=.15,Bt=5,On=4,ia=[{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 jr(bg){var Fr=bg.r,qn=bg.g,qr=bg.b,La=(0,se.py)(Fr,qn,qr);return{h:La.h*360,s:La.s,v:La.v}}function ni(bg){var Fr=bg.r,qn=bg.g,qr=bg.b;return"#".concat((0,se.vq)(Fr,qn,qr,!1))}function _r(bg,Fr,qn){var qr=qn/100,La={r:(Fr.r-bg.r)*qr+bg.r,g:(Fr.g-bg.g)*qr+bg.g,b:(Fr.b-bg.b)*qr+bg.b};return La}function At(bg,Fr,qn){var qr;return Math.round(bg.h)>=60&&Math.round(bg.h)<=240?qr=qn?Math.round(bg.h)-Me*Fr:Math.round(bg.h)+Me*Fr:qr=qn?Math.round(bg.h)+Me*Fr:Math.round(bg.h)-Me*Fr,qr<0?qr+=360:qr>=360&&(qr-=360),qr}function wn(bg,Fr,qn){if(bg.h===0&&bg.s===0)return bg.s;var qr;return qn?qr=bg.s-Et*Fr:Fr===On?qr=bg.s+Et:qr=bg.s+Pt*Fr,qr>1&&(qr=1),qn&&Fr===Bt&&qr>.1&&(qr=.1),qr<.06&&(qr=.06),Number(qr.toFixed(2))}function It(bg,Fr,qn){var qr;return qn?qr=bg.v+et*Fr:qr=bg.v-Dt*Fr,qr>1&&(qr=1),Number(qr.toFixed(2))}function Hn(bg){for(var Fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qn=[],qr=(0,Be.uA)(bg),La=Bt;La>0;La-=1){var Ig=jr(qr),o0=ni((0,Be.uA)({h:At(Ig,La,!0),s:wn(Ig,La,!0),v:It(Ig,La,!0)}));qn.push(o0)}qn.push(ni(qr));for(var $0=1;$0<=On;$0+=1){var Vo=jr(qr),oi=ni((0,Be.uA)({h:At(Vo,$0),s:wn(Vo,$0),v:It(Vo,$0)}));qn.push(oi)}return Fr.theme==="dark"?ia.map(function(Kr){var In=Kr.index,Gt=Kr.opacity,ui=ni(_r((0,Be.uA)(Fr.backgroundColor||"#141414"),(0,Be.uA)(qn[In]),Gt*100));return ui}):qn}var Ot={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"},_n={},ri={};Object.keys(Ot).forEach(function(bg){_n[bg]=Hn(Ot[bg]),_n[bg].primary=_n[bg][5],ri[bg]=Hn(Ot[bg],{theme:"dark",backgroundColor:"#141414"}),ri[bg].primary=ri[bg][5]});var An=_n.red,Ra=_n.volcano,Ro=_n.gold,at=_n.orange,Or=_n.yellow,Wt=_n.lime,zs=_n.green,si=_n.cyan,Ia=_n.blue,Da=_n.geekblue,$g=_n.purple,Yg=_n.magenta,l0=_n.grey,q0=l(32188),rv=l(98052),x0=l(34301),Qv=l.n(x0);function $v(bg,Fr){(0,q0.ZP)(bg,"[@ant-design/icons] ".concat(Fr))}function He(bg){return(0,F.Z)(bg)==="object"&&typeof bg.name=="string"&&typeof bg.theme=="string"&&((0,F.Z)(bg.icon)==="object"||typeof bg.icon=="function")}function F0(){var bg=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(bg).reduce(function(Fr,qn){var qr=bg[qn];switch(qn){case"class":Fr.className=qr,delete Fr.class;break;default:delete Fr[qn],Fr[Qv()(qn)]=qr}return Fr},{})}function nv(bg,Fr,qn){return qn?y.createElement(bg.tag,(0,u.Z)((0,u.Z)({key:Fr},F0(bg.attrs)),qn),(bg.children||[]).map(function(qr,La){return nv(qr,"".concat(Fr,"-").concat(bg.tag,"-").concat(La))})):y.createElement(bg.tag,(0,u.Z)({key:Fr},F0(bg.attrs)),(bg.children||[]).map(function(qr,La){return nv(qr,"".concat(Fr,"-").concat(bg.tag,"-").concat(La))}))}function pv(bg){return Hn(bg)[0]}function w0(bg){return bg?Array.isArray(bg)?bg:[bg]:[]}var H1={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Og=` .anticon { display: inline-block; color: inherit; @@ -53,7 +53,7 @@ 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=` +`,Uo=function(){var Fr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Og,qn=(0,y.useContext)(I),qr=qn.csp;(0,y.useEffect)(function(){(0,rv.hq)(Fr,"@ant-design-icons",{prepend:!0,csp:qr})},[])},wu=["icon","className","onClick","style","primaryColor","secondaryColor"],Rg={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function _0(bg){var Fr=bg.primaryColor,qn=bg.secondaryColor;Rg.primaryColor=Fr,Rg.secondaryColor=qn||pv(Fr),Rg.calculated=!!qn}function k0(){return(0,u.Z)({},Rg)}var U0=function(Fr){var qn=Fr.icon,qr=Fr.className,La=Fr.onClick,Ig=Fr.style,o0=Fr.primaryColor,$0=Fr.secondaryColor,Vo=(0,x.Z)(Fr,wu),oi=Rg;if(o0&&(oi={primaryColor:o0,secondaryColor:$0||pv(o0)}),Uo(),$v(He(qn),"icon should be icon definiton, but got ".concat(qn)),!He(qn))return null;var Kr=qn;return Kr&&typeof Kr.icon=="function"&&(Kr=(0,u.Z)((0,u.Z)({},Kr),{},{icon:Kr.icon(oi.primaryColor,oi.secondaryColor)})),nv(Kr.icon,"svg-".concat(Kr.name),(0,u.Z)({className:qr,onClick:La,style:Ig,"data-icon":Kr.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},Vo))};U0.displayName="IconReact",U0.getTwoToneColors=k0,U0.setTwoToneColors=_0;var cv=U0;function Gg(bg){var Fr=w0(bg),qn=(0,D.Z)(Fr,2),qr=qn[0],La=qn[1];return cv.setTwoToneColors({primaryColor:qr,secondaryColor:La})}function cu(){var bg=cv.getTwoToneColors();return bg.calculated?[bg.primaryColor,bg.secondaryColor]:bg.primaryColor}var Hs=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Gg("#1890ff");var Aa=y.forwardRef(function(bg,Fr){var qn,qr=bg.className,La=bg.icon,Ig=bg.spin,o0=bg.rotate,$0=bg.tabIndex,Vo=bg.onClick,oi=bg.twoToneColor,Kr=(0,x.Z)(bg,Hs),In=y.useContext(I),Gt=In.prefixCls,ui=Gt===void 0?"anticon":Gt,qs=In.rootClassName,Cd=a()(qs,ui,(qn={},(0,b.Z)(qn,"".concat(ui,"-").concat(La.name),!!La.name),(0,b.Z)(qn,"".concat(ui,"-spin"),!!Ig||La.name==="loading"),qn),qr),gd=$0;gd===void 0&&Vo&&(gd=-1);var Ou=o0?{msTransform:"rotate(".concat(o0,"deg)"),transform:"rotate(".concat(o0,"deg)")}:void 0,_a=w0(oi),Nd=(0,D.Z)(_a,2),Zg=Nd[0],Ga=Nd[1];return y.createElement("span",(0,u.Z)((0,u.Z)({role:"img","aria-label":La.name},Kr),{},{ref:Fr,tabIndex:gd,onClick:Vo,className:Cd}),y.createElement(cv,{icon:La,primaryColor:Zg,secondaryColor:Ga,style:Ou}))});Aa.displayName="AntdIcon",Aa.getTwoToneColor=cu,Aa.setTwoToneColor=Gg;var au=Aa},59554:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(54131),D=l(77617),b={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"},x=b,y=l(58781),A=function(I,F){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:F,icon:x}))};A.displayName="CaretRightOutlined";var a=D.forwardRef(A)},66850:function(c,m,l){"use strict";var u=l(54131),D=l(77617),b=l(69929),x=l(58781),y=function(a,E){return D.createElement(x.Z,(0,u.Z)((0,u.Z)({},a),{},{ref:E,icon:b.Z}))};y.displayName="CloseOutlined",m.Z=D.forwardRef(y)},99595:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(54131),D=l(77617),b={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"},x=b,y=l(58781),A=function(I,F){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:F,icon:x}))};A.displayName="CloudDownloadOutlined";var a=D.forwardRef(A)},54834:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(54131),D=l(77617),b={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"},x=b,y=l(58781),A=function(I,F){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:F,icon:x}))};A.displayName="CloudUploadOutlined";var a=D.forwardRef(A)},74307:function(c,m,l){"use strict";var u=l(54131),D=l(77617),b=l(43755),x=l(58781),y=function(a,E){return D.createElement(x.Z,(0,u.Z)((0,u.Z)({},a),{},{ref:E,icon:b.Z}))};y.displayName="DeleteOutlined",m.Z=D.forwardRef(y)},92621:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(54131),D=l(77617),b={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"},x=b,y=l(58781),A=function(I,F){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:F,icon:x}))};A.displayName="DingtalkOutlined";var a=D.forwardRef(A)},78730:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(54131),D=l(77617),b={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"},x=b,y=l(58781),A=function(I,F){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:F,icon:x}))};A.displayName="FieldBinaryOutlined";var a=D.forwardRef(A)},85752:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(54131),D=l(77617),b={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"},x=b,y=l(58781),A=function(I,F){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:F,icon:x}))};A.displayName="FieldStringOutlined";var a=D.forwardRef(A)},98331:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(54131),D=l(77617),b={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"},x=b,y=l(58781),A=function(I,F){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:F,icon:x}))};A.displayName="FileTextOutlined";var a=D.forwardRef(A)},7741:function(c,m,l){"use strict";var u=l(54131),D=l(77617),b=l(48041),x=l(58781),y=function(a,E){return D.createElement(x.Z,(0,u.Z)((0,u.Z)({},a),{},{ref:E,icon:b.Z}))};y.displayName="FilterFilled",m.Z=D.forwardRef(y)},84135:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(54131),D=l(77617),b={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"},x=b,y=l(58781),A=function(I,F){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:F,icon:x}))};A.displayName="FilterOutlined";var a=D.forwardRef(A)},45818:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(54131),D=l(77617),b={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"},x=b,y=l(58781),A=function(I,F){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:F,icon:x}))};A.displayName="FlagOutlined";var a=D.forwardRef(A)},51383:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(54131),D=l(77617),b={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"},x=b,y=l(58781),A=function(I,F){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:F,icon:x}))};A.displayName="FormOutlined";var a=D.forwardRef(A)},26890:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(54131),D=l(77617),b={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"},x=b,y=l(58781),A=function(I,F){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:F,icon:x}))};A.displayName="GithubOutlined";var a=D.forwardRef(A)},16304:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(54131),D=l(77617),b={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"},x=b,y=l(58781),A=function(I,F){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:F,icon:x}))};A.displayName="GlobalOutlined";var a=D.forwardRef(A)},75995:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(54131),D=l(77617),b={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"},x=b,y=l(58781),A=function(I,F){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:F,icon:x}))};A.displayName="MinusCircleOutlined";var a=D.forwardRef(A)},22840:function(c,m,l){"use strict";var u=l(54131),D=l(77617),b=l(12022),x=l(58781),y=function(a,E){return D.createElement(x.Z,(0,u.Z)((0,u.Z)({},a),{},{ref:E,icon:b.Z}))};y.displayName="PlusOutlined",m.Z=D.forwardRef(y)},43056:function(c,m,l){"use strict";var u=l(54131),D=l(77617),b=l(48245),x=l(58781),y=function(a,E){return D.createElement(x.Z,(0,u.Z)((0,u.Z)({},a),{},{ref:E,icon:b.Z}))};y.displayName="PlusSquareOutlined",m.Z=D.forwardRef(y)},83624:function(c,m,l){"use strict";var u=l(54131),D=l(77617),b=l(27955),x=l(58781),y=function(a,E){return D.createElement(x.Z,(0,u.Z)((0,u.Z)({},a),{},{ref:E,icon:b.Z}))};y.displayName="QuestionCircleOutlined",m.Z=D.forwardRef(y)},39429:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(54131),D=l(77617),b={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"},x=b,y=l(58781),A=function(I,F){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:F,icon:x}))};A.displayName="SaveOutlined";var a=D.forwardRef(A)},54558:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(54131),D=l(77617),b={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"},x=b,y=l(58781),A=function(I,F){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:F,icon:x}))};A.displayName="SettingOutlined";var a=D.forwardRef(A)},24695:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(54131),D=l(77617),b={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"},x=b,y=l(58781),A=function(I,F){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:F,icon:x}))};A.displayName="TableOutlined";var a=D.forwardRef(A)},22251:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(54131),D=l(77617),b={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"},x=b,y=l(58781),A=function(I,F){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:F,icon:x}))};A.displayName="UploadOutlined";var a=D.forwardRef(A)},44847:function(c,m,l){"use strict";l.d(m,{Z:function(){return Or}});var u=l(79384),D=l(35372),b=l(16514),x=l(56348),y=l(77617),A=l(92310),a=l.n(A),E=l(10129),I=l(48081),F=l(54131),se=l(13255),Be=l(98052),Me=l(39561),Et=l(32188);function Pt(Wt){return Wt.replace(/-(.)/g,function(zs,si){return si.toUpperCase()})}function et(Wt,zs){(0,Et.ZP)(Wt,"[@ant-design/icons] ".concat(zs))}function Dt(Wt){return(0,se.Z)(Wt)==="object"&&typeof Wt.name=="string"&&typeof Wt.theme=="string"&&((0,se.Z)(Wt.icon)==="object"||typeof Wt.icon=="function")}function Bt(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(Wt).reduce(function(zs,si){var Ia=Wt[si];switch(si){case"class":zs.className=Ia,delete zs.class;break;default:delete zs[si],zs[Pt(si)]=Ia}return zs},{})}function On(Wt,zs,si){return si?y.createElement(Wt.tag,(0,F.Z)((0,F.Z)({key:zs},Bt(Wt.attrs)),si),(Wt.children||[]).map(function(Ia,Da){return On(Ia,"".concat(zs,"-").concat(Wt.tag,"-").concat(Da))})):y.createElement(Wt.tag,(0,F.Z)({key:zs},Bt(Wt.attrs)),(Wt.children||[]).map(function(Ia,Da){return On(Ia,"".concat(zs,"-").concat(Wt.tag,"-").concat(Da))}))}function ia(Wt){return(0,E.R_)(Wt)[0]}function jr(Wt){return Wt?Array.isArray(Wt)?Wt:[Wt]:[]}var ni={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},_r=` .anticon { display: inline-block; color: inherit; @@ -107,45 +107,46 @@ 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(;Rn=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:` +`,At=function(zs){var si=(0,y.useContext)(I.Z),Ia=si.csp,Da=si.prefixCls,$g=_r;Da&&($g=$g.replace(/anticon/g,Da)),(0,y.useEffect)(function(){var Yg=zs.current,l0=(0,Me.A)(Yg);(0,Be.hq)($g,"@ant-design-icons",{prepend:!0,csp:Ia,attachTo:l0})},[])},wn=["icon","className","onClick","style","primaryColor","secondaryColor"],It={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Hn(Wt){var zs=Wt.primaryColor,si=Wt.secondaryColor;It.primaryColor=zs,It.secondaryColor=si||ia(zs),It.calculated=!!si}function Ot(){return(0,F.Z)({},It)}var _n=function(zs){var si=zs.icon,Ia=zs.className,Da=zs.onClick,$g=zs.style,Yg=zs.primaryColor,l0=zs.secondaryColor,q0=(0,x.Z)(zs,wn),rv=y.useRef(),x0=It;if(Yg&&(x0={primaryColor:Yg,secondaryColor:l0||ia(Yg)}),At(rv),et(Dt(si),"icon should be icon definiton, but got ".concat(si)),!Dt(si))return null;var Qv=si;return Qv&&typeof Qv.icon=="function"&&(Qv=(0,F.Z)((0,F.Z)({},Qv),{},{icon:Qv.icon(x0.primaryColor,x0.secondaryColor)})),On(Qv.icon,"svg-".concat(Qv.name),(0,F.Z)((0,F.Z)({className:Ia,onClick:Da,style:$g,"data-icon":Qv.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},q0),{},{ref:rv}))};_n.displayName="IconReact",_n.getTwoToneColors=Ot,_n.setTwoToneColors=Hn;var ri=_n;function An(Wt){var zs=jr(Wt),si=(0,D.Z)(zs,2),Ia=si[0],Da=si[1];return ri.setTwoToneColors({primaryColor:Ia,secondaryColor:Da})}function Ra(){var Wt=ri.getTwoToneColors();return Wt.calculated?[Wt.primaryColor,Wt.secondaryColor]:Wt.primaryColor}var Ro=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];An(E.iN.primary);var at=y.forwardRef(function(Wt,zs){var si=Wt.className,Ia=Wt.icon,Da=Wt.spin,$g=Wt.rotate,Yg=Wt.tabIndex,l0=Wt.onClick,q0=Wt.twoToneColor,rv=(0,x.Z)(Wt,Ro),x0=y.useContext(I.Z),Qv=x0.prefixCls,$v=Qv===void 0?"anticon":Qv,He=x0.rootClassName,F0=a()(He,$v,(0,b.Z)((0,b.Z)({},"".concat($v,"-").concat(Ia.name),!!Ia.name),"".concat($v,"-spin"),!!Da||Ia.name==="loading"),si),nv=Yg;nv===void 0&&l0&&(nv=-1);var pv=$g?{msTransform:"rotate(".concat($g,"deg)"),transform:"rotate(".concat($g,"deg)")}:void 0,w0=jr(q0),H1=(0,D.Z)(w0,2),Og=H1[0],Uo=H1[1];return y.createElement("span",(0,u.Z)({role:"img","aria-label":Ia.name},rv,{ref:zs,tabIndex:nv,onClick:l0,className:F0}),y.createElement(ri,{icon:Ia,primaryColor:Og,secondaryColor:Uo,style:pv}))});at.displayName="AntdIcon",at.getTwoToneColor=Ra,at.setTwoToneColor=An;var Or=at},48081:function(c,m,l){"use strict";var u=l(77617),D=(0,u.createContext)({});m.Z=D},50555:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(79384),D=l(77617),b={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"},x=b,y=l(44847),A=function(I,F){return D.createElement(y.Z,(0,u.Z)({},I,{ref:F,icon:x}))},a=D.forwardRef(A)},49247:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(79384),D=l(77617),b={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"},x=b,y=l(44847),A=function(I,F){return D.createElement(y.Z,(0,u.Z)({},I,{ref:F,icon:x}))},a=D.forwardRef(A)},43418:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(79384),D=l(77617),b={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"},x=b,y=l(44847),A=function(I,F){return D.createElement(y.Z,(0,u.Z)({},I,{ref:F,icon:x}))},a=D.forwardRef(A)},4531:function(c,m,l){"use strict";var u=l(79384),D=l(77617),b=l(69929),x=l(44847),y=function(a,E){return D.createElement(x.Z,(0,u.Z)({},a,{ref:E,icon:b.Z}))};m.Z=D.forwardRef(y)},21112:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(79384),D=l(77617),b={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"},x=b,y=l(44847),A=function(I,F){return D.createElement(y.Z,(0,u.Z)({},I,{ref:F,icon:x}))},a=D.forwardRef(A)},71323:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(79384),D=l(77617),b={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"},x=b,y=l(44847),A=function(I,F){return D.createElement(y.Z,(0,u.Z)({},I,{ref:F,icon:x}))},a=D.forwardRef(A)},81664:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(79384),D=l(77617),b={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"},x=b,y=l(44847),A=function(I,F){return D.createElement(y.Z,(0,u.Z)({},I,{ref:F,icon:x}))},a=D.forwardRef(A)},29338:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(79384),D=l(77617),b={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"},x=b,y=l(44847),A=function(I,F){return D.createElement(y.Z,(0,u.Z)({},I,{ref:F,icon:x}))},a=D.forwardRef(A)},20906:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(79384),D=l(77617),b={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"},x=b,y=l(44847),A=function(I,F){return D.createElement(y.Z,(0,u.Z)({},I,{ref:F,icon:x}))},a=D.forwardRef(A)},39820:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(79384),D=l(77617),b={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"},x=b,y=l(44847),A=function(I,F){return D.createElement(y.Z,(0,u.Z)({},I,{ref:F,icon:x}))},a=D.forwardRef(A)},20555:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(79384),D=l(77617),b={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"},x=b,y=l(44847),A=function(I,F){return D.createElement(y.Z,(0,u.Z)({},I,{ref:F,icon:x}))},a=D.forwardRef(A)},24545:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(79384),D=l(77617),b={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"},x=b,y=l(44847),A=function(I,F){return D.createElement(y.Z,(0,u.Z)({},I,{ref:F,icon:x}))},a=D.forwardRef(A)},38528:function(c,m,l){"use strict";l.d(m,{Z:function(){return a}});var u=l(79384),D=l(77617),b={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"},x=b,y=l(44847),A=function(I,F){return D.createElement(y.Z,(0,u.Z)({},I,{ref:F,icon:x}))},a=D.forwardRef(A)},7639:function(){window._iconfont_svg_string_3580659='',function(c){try{let I=function(){y||(y=!0,b())},F=function(){try{x.documentElement.doScroll("left")}catch(se){return void setTimeout(F,50)}I()};var a=I,E=F,l=(l=document.getElementsByTagName("script"))[l.length-1],m=l.getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var u,D,b,x,y,A=function(Be,Me){Me.parentNode.insertBefore(Be,Me)};if(m&&!c.__iconfont__svg__cssinject__){c.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(se){console&&console.log(se)}}u=function(){var Be,Me=document.createElement("div");Me.innerHTML=c._iconfont_svg_string_3580659,(Me=Me.getElementsByTagName("svg")[0])&&(Me.setAttribute("aria-hidden","true"),Me.style.position="absolute",Me.style.width=0,Me.style.height=0,Me.style.overflow="hidden",Me=Me,(Be=document.body).firstChild?A(Me,Be.firstChild):Be.appendChild(Me))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(u,0):(D=function(){document.removeEventListener("DOMContentLoaded",D,!1),u()},document.addEventListener("DOMContentLoaded",D,!1)):document.attachEvent&&(b=u,x=c.document,y=!1,F(),x.onreadystatechange=function(){x.readyState=="complete"&&(x.onreadystatechange=null,I())})}}catch(I){}}(window)},29075:function(c,m,l){(function(u,D){D(m,l(23051))})(this,function(u,D){"use strict";var b={draw:"crosshair",pointHover:"pointer",pointDrag:"move",lineHover:"pointer",lineDrag:"move",polygonHover:"pointer",polygonDrag:"move"},x={point:[],line:[],polygon:[],midPoint:[],dashLine:[],text:[]},y="top",A="bottom",a="right",E="left",I="auto",F=[y,A,a,E],se="start",Be="end",Me="clippingParents",Et="viewport",Pt="popper",et="reference",Dt=F.reduce(function(ot,w){return ot.concat([w+"-"+se,w+"-"+Be])},[]),Bt=[].concat(F,[I]).reduce(function(ot,w){return ot.concat([w,w+"-"+se,w+"-"+Be])},[]),On=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ia(ot){return ot?(ot.nodeName||"").toLowerCase():null}function jr(ot){if(ot==null)return window;if(""+ot!="[object Window]"){var w=ot.ownerDocument;return w&&w.defaultView||window}return ot}function ni(ot){return ot instanceof jr(ot).Element||ot instanceof Element}function _r(ot){return ot instanceof jr(ot).HTMLElement||ot instanceof HTMLElement}function At(ot){return typeof ShadowRoot!="undefined"&&(ot instanceof jr(ot).ShadowRoot||ot instanceof ShadowRoot)}var wn={name:"applyStyles",enabled:!0,phase:"write",fn:function(ot){var w=ot.state;Object.keys(w.elements).forEach(function(P){var N=w.styles[P]||{},Q=w.attributes[P]||{},_e=w.elements[P];_r(_e)&&ia(_e)&&(Object.assign(_e.style,N),Object.keys(Q).forEach(function(Le){var rt=Q[Le];rt===!1?_e.removeAttribute(Le):_e.setAttribute(Le,rt===!0?"":rt)}))})},effect:function(ot){var w=ot.state,P={popper:{position:w.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(w.elements.popper.style,P.popper),w.styles=P,w.elements.arrow&&Object.assign(w.elements.arrow.style,P.arrow),function(){Object.keys(w.elements).forEach(function(N){var Q=w.elements[N],_e=w.attributes[N]||{},Le=Object.keys(w.styles.hasOwnProperty(N)?w.styles[N]:P[N]).reduce(function(rt,on){return rt[on]="",rt},{});_r(Q)&&ia(Q)&&(Object.assign(Q.style,Le),Object.keys(_e).forEach(function(rt){Q.removeAttribute(rt)}))})}},requires:["computeStyles"]};function It(ot){return ot.split("-")[0]}var Hn=Math.max,Ot=Math.min,_n=Math.round;function ri(){var ot=navigator.userAgentData;return ot!=null&&ot.brands&&Array.isArray(ot.brands)?ot.brands.map(function(w){return w.brand+"/"+w.version}).join(" "):navigator.userAgent}function An(){return!/^((?!chrome|android).)*safari/i.test(ri())}function Ra(ot,w,P){w===void 0&&(w=!1),P===void 0&&(P=!1);var N=ot.getBoundingClientRect(),Q=1,_e=1;w&&_r(ot)&&(Q=ot.offsetWidth>0&&_n(N.width)/ot.offsetWidth||1,_e=ot.offsetHeight>0&&_n(N.height)/ot.offsetHeight||1);var Le=(ni(ot)?jr(ot):window).visualViewport,rt=!An()&&P,on=(N.left+(rt&&Le?Le.offsetLeft:0))/Q,Bs=(N.top+(rt&&Le?Le.offsetTop:0))/_e,Pa=N.width/Q,uh=N.height/_e;return{width:Pa,height:uh,top:Bs,right:on+Pa,bottom:Bs+uh,left:on,x:on,y:Bs}}function Ro(ot){var w=Ra(ot),P=ot.offsetWidth,N=ot.offsetHeight;return Math.abs(w.width-P)>1||(P=w.width),Math.abs(w.height-N)>1||(N=w.height),{x:ot.offsetLeft,y:ot.offsetTop,width:P,height:N}}function at(ot,w){var P=w.getRootNode&&w.getRootNode();if(ot.contains(w))return!0;if(P&&At(P)){var N=w;do{if(N&&ot.isSameNode(N))return!0;N=N.parentNode||N.host}while(N)}return!1}function Or(ot){return jr(ot).getComputedStyle(ot)}function Wt(ot){return["table","td","th"].indexOf(ia(ot))>=0}function zs(ot){return((ni(ot)?ot.ownerDocument:ot.document)||window.document).documentElement}function si(ot){return ia(ot)==="html"?ot:ot.assignedSlot||ot.parentNode||(At(ot)?ot.host:null)||zs(ot)}function Ia(ot){return _r(ot)&&Or(ot).position!=="fixed"?ot.offsetParent:null}function Da(ot){for(var w=jr(ot),P=Ia(ot);P&&Wt(P)&&Or(P).position==="static";)P=Ia(P);return P&&(ia(P)==="html"||ia(P)==="body"&&Or(P).position==="static")?w:P||function(N){var Q=/firefox/i.test(ri());if(/Trident/i.test(ri())&&_r(N)&&Or(N).position==="fixed")return null;var _e=si(N);for(At(_e)&&(_e=_e.host);_r(_e)&&0>["html","body"].indexOf(ia(_e));){var Le=Or(_e);if(Le.transform!=="none"||Le.perspective!=="none"||Le.contain==="paint"||["transform","perspective"].indexOf(Le.willChange)!==-1||Q&&Le.willChange==="filter"||Q&&Le.filter&&Le.filter!=="none")return _e;_e=_e.parentNode}return null}(ot)||w}function $g(ot){return 0>["top","bottom"].indexOf(ot)?"y":"x"}function Yg(ot,w,P){return Hn(ot,Ot(w,P))}function l0(ot){return Object.assign({},{top:0,right:0,bottom:0,left:0},ot)}function q0(ot,w){return w.reduce(function(P,N){return P[N]=ot,P},{})}var rv={name:"arrow",enabled:!0,phase:"main",fn:function(ot){var w,P=ot.state,N=ot.name,Q=ot.options,_e=P.elements.arrow,Le=P.modifiersData.popperOffsets,rt=It(P.placement),on=$g(rt),Bs=[E,a].indexOf(rt)>=0?"height":"width";if(_e&&Le){var Pa=function(oy,jy){return l0(typeof(oy=typeof oy=="function"?oy(Object.assign({},jy.rects,{placement:jy.placement})):oy)!="number"?oy:q0(oy,F))}(Q.padding,P),uh=Ro(_e),zg=on==="y"?y:E,M0=on==="y"?A:a,z0=P.rects.reference[Bs]+P.rects.reference[on]-Le[on]-P.rects.popper[Bs],Zv=Le[on]-P.rects.reference[on],Vv=Da(_e),i1=Vv?on==="y"?Vv.clientHeight||0:Vv.clientWidth||0:0,Kv=i1/2-uh[Bs]/2+(z0/2-Zv/2),wv=Yg(Pa[zg],Kv,i1-uh[Bs]-Pa[M0]);P.modifiersData[N]=((w={})[on]=wv,w.centerOffset=wv-Kv,w)}},effect:function(ot){var w=ot.state,P=ot.options.element,N=P===void 0?"[data-popper-arrow]":P;N!=null&&(typeof N!="string"||(N=w.elements.popper.querySelector(N)))&&at(w.elements.popper,N)&&(w.elements.arrow=N)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function x0(ot){return ot.split("-")[1]}var Qv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $v(ot){var w,P=ot.popper,N=ot.popperRect,Q=ot.placement,_e=ot.variation,Le=ot.offsets,rt=ot.position,on=ot.gpuAcceleration,Bs=ot.adaptive,Pa=ot.roundOffsets,uh=ot.isFixed,zg=Le.x,M0=zg===void 0?0:zg,z0=Le.y,Zv=z0===void 0?0:z0,Vv=typeof Pa=="function"?Pa({x:M0,y:Zv}):{x:M0,y:Zv};M0=Vv.x,Zv=Vv.y;var i1=Le.hasOwnProperty("x"),Kv=Le.hasOwnProperty("y"),wv=E,oy=y,jy=window;if(Bs){var x_=Da(P),dx="clientHeight",Ux="clientWidth";x_===jr(P)&&Or(x_=zs(P)).position!=="static"&&rt==="absolute"&&(dx="scrollHeight",Ux="scrollWidth"),(Q===y||(Q===E||Q===a)&&_e===Be)&&(oy=A,Zv-=(uh&&x_===jy&&jy.visualViewport?jy.visualViewport.height:x_[dx])-N.height,Zv*=on?1:-1),(Q===E||(Q===y||Q===A)&&_e===Be)&&(wv=a,M0-=(uh&&x_===jy&&jy.visualViewport?jy.visualViewport.width:x_[Ux])-N.width,M0*=on?1:-1)}var Dx,gw=Object.assign({position:rt},Bs&&Qv),Sx=Pa===!0?function(X2,gu){var mg=X2.y,s0=gu.devicePixelRatio||1;return{x:_n(X2.x*s0)/s0||0,y:_n(mg*s0)/s0||0}}({x:M0,y:Zv},jr(P)):{x:M0,y:Zv};return M0=Sx.x,Zv=Sx.y,Object.assign({},gw,on?((Dx={})[oy]=Kv?"0":"",Dx[wv]=i1?"0":"",Dx.transform=(jy.devicePixelRatio||1)>1?"translate3d("+M0+"px, "+Zv+"px, 0)":"translate("+M0+"px, "+Zv+"px)",Dx):((w={})[oy]=Kv?Zv+"px":"",w[wv]=i1?M0+"px":"",w.transform="",w))}var He={passive:!0},F0={left:"right",right:"left",bottom:"top",top:"bottom"};function nv(ot){return ot.replace(/left|right|bottom|top/g,function(w){return F0[w]})}var pv={start:"end",end:"start"};function w0(ot){return ot.replace(/start|end/g,function(w){return pv[w]})}function H1(ot){var w=jr(ot);return{scrollLeft:w.pageXOffset,scrollTop:w.pageYOffset}}function Og(ot){return Ra(zs(ot)).left+H1(ot).scrollLeft}function Uo(ot){var w=Or(ot);return/auto|scroll|overlay|hidden/.test(w.overflow+w.overflowY+w.overflowX)}function wu(ot){return 0>["html","body","#document"].indexOf(ia(ot))?_r(ot)&&Uo(ot)?ot:wu(si(ot)):ot.ownerDocument.body}function Rg(ot,w){var P;w===void 0&&(w=[]);var N=wu(ot),Q=N===((P=ot.ownerDocument)==null?void 0:P.body),_e=jr(N),Le=Q?[_e].concat(_e.visualViewport||[],Uo(N)?N:[]):N,rt=w.concat(Le);return Q?rt:rt.concat(Rg(si(Le)))}function _0(ot){return Object.assign({},ot,{left:ot.x,top:ot.y,right:ot.x+ot.width,bottom:ot.y+ot.height})}function k0(ot,w,P){return w===Et?_0(function(N,Q){var _e=jr(N),Le=zs(N),rt=_e.visualViewport,on=Le.clientWidth,Bs=Le.clientHeight,Pa=0,uh=0;if(rt){on=rt.width,Bs=rt.height;var zg=An();(zg||!zg&&Q==="fixed")&&(Pa=rt.offsetLeft,uh=rt.offsetTop)}return{width:on,height:Bs,x:Pa+Og(N),y:uh}}(ot,P)):ni(w)?function(N,Q){var _e=Ra(N,!1,Q==="fixed");return _e.top=_e.top+N.clientTop,_e.left=_e.left+N.clientLeft,_e.bottom=_e.top+N.clientHeight,_e.right=_e.left+N.clientWidth,_e.width=N.clientWidth,_e.height=N.clientHeight,_e.x=_e.left,_e.y=_e.top,_e}(w,P):_0(function(N){var Q,_e=zs(N),Le=H1(N),rt=(Q=N.ownerDocument)==null?void 0:Q.body,on=Hn(_e.scrollWidth,_e.clientWidth,rt?rt.scrollWidth:0,rt?rt.clientWidth:0),Bs=Hn(_e.scrollHeight,_e.clientHeight,rt?rt.scrollHeight:0,rt?rt.clientHeight:0),Pa=-Le.scrollLeft+Og(N),uh=-Le.scrollTop;return Or(rt||_e).direction==="rtl"&&(Pa+=Hn(_e.clientWidth,rt?rt.clientWidth:0)-on),{width:on,height:Bs,x:Pa,y:uh}}(zs(ot)))}function U0(ot,w,P,N){var Q=w==="clippingParents"?function(rt){var on=Rg(si(rt)),Bs=["absolute","fixed"].indexOf(Or(rt).position)>=0&&_r(rt)?Da(rt):rt;return ni(Bs)?on.filter(function(Pa){return ni(Pa)&&at(Pa,Bs)&&ia(Pa)!=="body"}):[]}(ot):[].concat(w),_e=[].concat(Q,[P]),Le=_e.reduce(function(rt,on){var Bs=k0(ot,on,N);return rt.top=Hn(Bs.top,rt.top),rt.right=Ot(Bs.right,rt.right),rt.bottom=Ot(Bs.bottom,rt.bottom),rt.left=Hn(Bs.left,rt.left),rt},k0(ot,_e[0],N));return Le.width=Le.right-Le.left,Le.height=Le.bottom-Le.top,Le.x=Le.left,Le.y=Le.top,Le}function cv(ot){var w,P=ot.reference,N=ot.element,Q=ot.placement,_e=Q?It(Q):null,Le=Q?x0(Q):null,rt=P.x+P.width/2-N.width/2,on=P.y+P.height/2-N.height/2;switch(_e){case y:w={x:rt,y:P.y-N.height};break;case A:w={x:rt,y:P.y+P.height};break;case a:w={x:P.x+P.width,y:on};break;case E:w={x:P.x-N.width,y:on};break;default:w={x:P.x,y:P.y}}var Bs=_e?$g(_e):null;if(Bs!=null){var Pa=Bs==="y"?"height":"width";switch(Le){case se:w[Bs]=w[Bs]-(P[Pa]/2-N[Pa]/2);break;case Be:w[Bs]=w[Bs]+(P[Pa]/2-N[Pa]/2)}}return w}function Gg(ot,w){w===void 0&&(w={});var P=w.placement,N=P===void 0?ot.placement:P,Q=w.strategy,_e=Q===void 0?ot.strategy:Q,Le=w.boundary,rt=Le===void 0?Me:Le,on=w.rootBoundary,Bs=on===void 0?Et:on,Pa=w.elementContext,uh=Pa===void 0?Pt:Pa,zg=w.altBoundary,M0=zg!==void 0&&zg,z0=w.padding,Zv=z0===void 0?0:z0,Vv=l0(typeof Zv!="number"?Zv:q0(Zv,F)),i1=ot.rects.popper,Kv=ot.elements[M0?uh===Pt?et:Pt:uh],wv=U0(ni(Kv)?Kv:Kv.contextElement||zs(ot.elements.popper),rt,Bs,_e),oy=Ra(ot.elements.reference),jy=cv({reference:oy,element:i1,strategy:"absolute",placement:N}),x_=_0(Object.assign({},i1,jy)),dx=uh===Pt?x_:oy,Ux={top:wv.top-dx.top+Vv.top,bottom:dx.bottom-wv.bottom+Vv.bottom,left:wv.left-dx.left+Vv.left,right:dx.right-wv.right+Vv.right},Dx=ot.modifiersData.offset;if(uh===Pt&&Dx){var gw=Dx[N];Object.keys(Ux).forEach(function(Sx){var X2=0>[a,A].indexOf(Sx)?-1:1;Ux[Sx]+=gw[0>[y,A].indexOf(Sx)?"x":"y"]*X2})}return Ux}function cu(ot,w){w===void 0&&(w={});var P=w.boundary,N=w.rootBoundary,Q=w.padding,_e=w.flipVariations,Le=w.allowedAutoPlacements,rt=Le===void 0?Bt:Le,on=x0(w.placement),Bs=on?_e?Dt:Dt.filter(function(zg){return x0(zg)===on}):F,Pa=Bs.filter(function(zg){return rt.indexOf(zg)>=0});Pa.length===0&&(Pa=Bs);var uh=Pa.reduce(function(zg,M0){return zg[M0]=Gg(ot,{placement:M0,boundary:P,rootBoundary:N,padding:Q})[It(M0)],zg},{});return Object.keys(uh).sort(function(zg,M0){return uh[zg]-uh[M0]})}var Hs={name:"flip",enabled:!0,phase:"main",fn:function(ot){var w=ot.state,P=ot.options,N=ot.name;if(!w.modifiersData[N]._skip){for(var Q=P.mainAxis,_e=Q===void 0||Q,Le=P.altAxis,rt=Le===void 0||Le,on=P.fallbackPlacements,Bs=P.padding,Pa=P.boundary,uh=P.rootBoundary,zg=P.altBoundary,M0=P.flipVariations,z0=M0===void 0||M0,Zv=P.allowedAutoPlacements,Vv=w.options.placement,i1=It(Vv),Kv=on||(i1===Vv||!z0?[nv(Vv)]:function(s_){if(It(s_)===I)return[];var rx=nv(s_);return[w0(s_),rx,w0(rx)]}(Vv)),wv=[Vv].concat(Kv).reduce(function(s_,rx){return s_.concat(It(rx)===I?cu(w,{placement:rx,boundary:Pa,rootBoundary:uh,padding:Bs,flipVariations:z0,allowedAutoPlacements:Zv}):rx)},[]),oy=w.rects.reference,jy=w.rects.popper,x_=new Map,dx=!0,Ux=wv[0],Dx=0;wv.length>Dx;Dx++){var gw=wv[Dx],Sx=It(gw),X2=x0(gw)===se,gu=[y,A].indexOf(Sx)>=0,mg=gu?"width":"height",s0=Gg(w,{placement:gw,boundary:Pa,rootBoundary:uh,altBoundary:zg,padding:Bs}),T0=gu?X2?a:E:X2?A:y;oy[mg]>jy[mg]&&(T0=nv(T0));var Cv=nv(T0),yy=[];if(_e&&yy.push(0>=s0[Sx]),rt&&yy.push(0>=s0[T0],0>=s0[Cv]),yy.every(function(s_){return s_})){Ux=gw,dx=!1;break}x_.set(gw,yy)}if(dx)for(var Yy=function(s_){var rx=wv.find(function(Z1){var D2=x_.get(Z1);if(D2)return D2.slice(0,s_).every(function(TC){return TC})});if(rx)return Ux=rx,"break"},J1=z0?3:1;J1>0&&Yy(J1)!=="break";J1--);w.placement!==Ux&&(w.modifiersData[N]._skip=!0,w.placement=Ux,w.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Aa(ot,w,P){return P===void 0&&(P={x:0,y:0}),{top:ot.top-w.height-P.y,right:ot.right-w.width+P.x,bottom:ot.bottom-w.height+P.y,left:ot.left-w.width-P.x}}function au(ot){return[y,a,A,E].some(function(w){return ot[w]>=0})}var bg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(ot){var w=ot.state,P=ot.name,N=ot.options.offset,Q=N===void 0?[0,0]:N,_e=Bt.reduce(function(on,Bs){return on[Bs]=function(Pa,uh,zg){var M0=It(Pa),z0=0>[E,y].indexOf(M0)?1:-1,Zv=typeof zg=="function"?zg(Object.assign({},uh,{placement:Pa})):zg,Vv=Zv[0],i1=Zv[1];return Vv=Vv||0,i1=(i1||0)*z0,0>[E,a].indexOf(M0)?{x:Vv,y:i1}:{x:i1,y:Vv}}(Bs,w.rects,Q),on},{}),Le=_e[w.placement],rt=Le.y;w.modifiersData.popperOffsets!=null&&(w.modifiersData.popperOffsets.x+=Le.x,w.modifiersData.popperOffsets.y+=rt),w.modifiersData[P]=_e}},Fr={name:"preventOverflow",enabled:!0,phase:"main",fn:function(ot){var w=ot.state,P=ot.options,N=ot.name,Q=P.mainAxis,_e=Q===void 0||Q,Le=P.altAxis,rt=Le!==void 0&&Le,on=P.tether,Bs=on===void 0||on,Pa=P.tetherOffset,uh=Pa===void 0?0:Pa,zg=Gg(w,{boundary:P.boundary,rootBoundary:P.rootBoundary,padding:P.padding,altBoundary:P.altBoundary}),M0=It(w.placement),z0=x0(w.placement),Zv=!z0,Vv=$g(M0),i1=Vv==="x"?"y":"x",Kv=w.modifiersData.popperOffsets,wv=w.rects.reference,oy=w.rects.popper,jy=typeof uh=="function"?uh(Object.assign({},w.rects,{placement:w.placement})):uh,x_=typeof jy=="number"?{mainAxis:jy,altAxis:jy}:Object.assign({mainAxis:0,altAxis:0},jy),dx=w.modifiersData.offset?w.modifiersData.offset[w.placement]:null,Ux={x:0,y:0};if(Kv){if(_e){var Dx,gw=Vv==="y"?y:E,Sx=Vv==="y"?A:a,X2=Vv==="y"?"height":"width",gu=Kv[Vv],mg=gu+zg[gw],s0=gu-zg[Sx],T0=Bs?-oy[X2]/2:0,Cv=z0===se?wv[X2]:oy[X2],yy=z0===se?-oy[X2]:-wv[X2],Yy=w.elements.arrow,J1=Bs&&Yy?Ro(Yy):{width:0,height:0},s_=w.modifiersData["arrow#persistent"]?w.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},rx=s_[gw],Z1=s_[Sx],D2=Yg(0,wv[X2],J1[X2]),TC=Zv?wv[X2]/2-T0-D2-rx-x_.mainAxis:Cv-D2-rx-x_.mainAxis,Gw=Zv?-wv[X2]/2+T0+D2+Z1+x_.mainAxis:yy+D2+Z1+x_.mainAxis,Ow=w.elements.arrow&&Da(w.elements.arrow),xC=(Dx=dx==null?void 0:dx[Vv])!=null?Dx:0,EE=gu+Gw-xC,jE=Yg(Bs?Ot(mg,gu+TC-xC-(Ow?Vv==="y"?Ow.clientTop||0:Ow.clientLeft||0:0)):mg,gu,Bs?Hn(s0,EE):s0);Kv[Vv]=jE,Ux[Vv]=jE-gu}if(rt){var rS,hS=Kv[i1],m1=i1==="y"?"height":"width",V_=hS+zg[Vv==="x"?y:E],pS=hS-zg[Vv==="x"?A:a],OC=[y,E].indexOf(M0)!==-1,VS=(rS=dx==null?void 0:dx[i1])!=null?rS:0,OT=OC?V_:hS-wv[m1]-oy[m1]-VS+x_.altAxis,zS=OC?hS+wv[m1]+oy[m1]-VS-x_.altAxis:pS,nx=Bs&&OC?function($w,yS,tS){var LE=Yg($w,yS,tS);return LE>tS?tS:LE}(OT,hS,zS):Yg(Bs?OT:V_,hS,Bs?zS:pS);Kv[i1]=nx,Ux[i1]=nx-hS}w.modifiersData[N]=Ux}},requiresIfExists:["offset"]};function qn(ot,w,P){P===void 0&&(P=!1);var N,Q,_e=_r(w),Le=_r(w)&&function(uh){var zg=uh.getBoundingClientRect(),M0=_n(zg.width)/uh.offsetWidth||1,z0=_n(zg.height)/uh.offsetHeight||1;return M0!==1||z0!==1}(w),rt=zs(w),on=Ra(ot,Le,P),Bs={scrollLeft:0,scrollTop:0},Pa={x:0,y:0};return(_e||!_e&&!P)&&((ia(w)!=="body"||Uo(rt))&&(Bs=(N=w)!==jr(N)&&_r(N)?{scrollLeft:(Q=N).scrollLeft,scrollTop:Q.scrollTop}:H1(N)),_r(w)?((Pa=Ra(w,!0)).x+=w.clientLeft,Pa.y+=w.clientTop):rt&&(Pa.x=Og(rt))),{x:on.left+Bs.scrollLeft-Pa.x,y:on.top+Bs.scrollTop-Pa.y,width:on.width,height:on.height}}function qr(ot){var w=new Map,P=new Set,N=[];function Q(_e){P.add(_e.name),[].concat(_e.requires||[],_e.requiresIfExists||[]).forEach(function(Le){if(!P.has(Le)){var rt=w.get(Le);rt&&Q(rt)}}),N.push(_e)}return ot.forEach(function(_e){w.set(_e.name,_e)}),ot.forEach(function(_e){P.has(_e.name)||Q(_e)}),N}var La={placement:"bottom",modifiers:[],strategy:"absolute"};function Ig(){for(var ot=arguments.length,w=Array(ot),P=0;ot>P;P++)w[P]=arguments[P];return!w.some(function(N){return!(N&&typeof N.getBoundingClientRect=="function")})}function o0(ot){ot===void 0&&(ot={});var w=ot.defaultModifiers,P=w===void 0?[]:w,N=ot.defaultOptions,Q=N===void 0?La:N;return function(_e,Le,rt){rt===void 0&&(rt=Q);var on,Bs,Pa={placement:"bottom",orderedModifiers:[],options:Object.assign({},La,Q),modifiersData:{},elements:{reference:_e,popper:Le},attributes:{},styles:{}},uh=[],zg=!1,M0={state:Pa,setOptions:function(Zv){var Vv=typeof Zv=="function"?Zv(Pa.options):Zv;z0(),Pa.options=Object.assign({},Q,Pa.options,Vv),Pa.scrollParents={reference:ni(_e)?Rg(_e):_e.contextElement?Rg(_e.contextElement):[],popper:Rg(Le)};var i1,Kv,wv=function(oy){var jy=qr(oy);return On.reduce(function(x_,dx){return x_.concat(jy.filter(function(Ux){return Ux.phase===dx}))},[])}((i1=[].concat(P,Pa.options.modifiers),Kv=i1.reduce(function(oy,jy){var x_=oy[jy.name];return oy[jy.name]=x_?Object.assign({},x_,jy,{options:Object.assign({},x_.options,jy.options),data:Object.assign({},x_.data,jy.data)}):jy,oy},{}),Object.keys(Kv).map(function(oy){return Kv[oy]})));return Pa.orderedModifiers=wv.filter(function(oy){return oy.enabled}),Pa.orderedModifiers.forEach(function(oy){var jy=oy.options,x_=oy.effect;if(typeof x_=="function"){var dx=x_({state:Pa,name:oy.name,instance:M0,options:jy===void 0?{}:jy});uh.push(dx||function(){})}}),M0.update()},forceUpdate:function(){if(!zg){var Zv=Pa.elements,Vv=Zv.reference,i1=Zv.popper;if(Ig(Vv,i1)){Pa.rects={reference:qn(Vv,Da(i1),Pa.options.strategy==="fixed"),popper:Ro(i1)},Pa.reset=!1,Pa.placement=Pa.options.placement,Pa.orderedModifiers.forEach(function(x_){return Pa.modifiersData[x_.name]=Object.assign({},x_.data)});for(var Kv=0;Pa.orderedModifiers.length>Kv;Kv++)if(Pa.reset!==!0){var wv=Pa.orderedModifiers[Kv],oy=wv.fn,jy=wv.options;typeof oy=="function"&&(Pa=oy({state:Pa,options:jy===void 0?{}:jy,name:wv.name,instance:M0})||Pa)}else Pa.reset=!1,Kv=-1}}},update:(on=function(){return new Promise(function(Zv){M0.forceUpdate(),Zv(Pa)})},function(){return Bs||(Bs=new Promise(function(Zv){Promise.resolve().then(function(){Bs=void 0,Zv(on())})})),Bs}),destroy:function(){z0(),zg=!0}};if(!Ig(_e,Le))return M0;function z0(){uh.forEach(function(Zv){return Zv()}),uh=[]}return M0.setOptions(rt).then(function(Zv){!zg&&rt.onFirstUpdate&&rt.onFirstUpdate(Zv)}),M0}}var $0=o0({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(ot){var w=ot.state,P=ot.instance,N=ot.options,Q=N.scroll,_e=Q===void 0||Q,Le=N.resize,rt=Le===void 0||Le,on=jr(w.elements.popper),Bs=[].concat(w.scrollParents.reference,w.scrollParents.popper);return _e&&Bs.forEach(function(Pa){Pa.addEventListener("scroll",P.update,He)}),rt&&on.addEventListener("resize",P.update,He),function(){_e&&Bs.forEach(function(Pa){Pa.removeEventListener("scroll",P.update,He)}),rt&&on.removeEventListener("resize",P.update,He)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(ot){var w=ot.state;w.modifiersData[ot.name]=cv({reference:w.rects.reference,element:w.rects.popper,strategy:"absolute",placement:w.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(ot){var w=ot.state,P=ot.options,N=P.gpuAcceleration,Q=N===void 0||N,_e=P.adaptive,Le=_e===void 0||_e,rt=P.roundOffsets,on=rt===void 0||rt,Bs={placement:It(w.placement),variation:x0(w.placement),popper:w.elements.popper,popperRect:w.rects.popper,gpuAcceleration:Q,isFixed:w.options.strategy==="fixed"};w.modifiersData.popperOffsets!=null&&(w.styles.popper=Object.assign({},w.styles.popper,$v(Object.assign({},Bs,{offsets:w.modifiersData.popperOffsets,position:w.options.strategy,adaptive:Le,roundOffsets:on})))),w.modifiersData.arrow!=null&&(w.styles.arrow=Object.assign({},w.styles.arrow,$v(Object.assign({},Bs,{offsets:w.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:on})))),w.attributes.popper=Object.assign({},w.attributes.popper,{"data-popper-placement":w.placement})},data:{}},wn,bg,Hs,Fr,rv,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(ot){var w=ot.state,P=ot.name,N=w.rects.reference,Q=w.rects.popper,_e=w.modifiersData.preventOverflow,Le=Gg(w,{elementContext:"reference"}),rt=Gg(w,{altBoundary:!0}),on=Aa(Le,N),Bs=Aa(rt,Q,_e),Pa=au(on),uh=au(Bs);w.modifiersData[P]={referenceClippingOffsets:on,popperEscapeOffsets:Bs,isReferenceHidden:Pa,hasPopperEscaped:uh},w.attributes.popper=Object.assign({},w.attributes.popper,{"data-popper-reference-hidden":Pa,"data-popper-escaped":uh})}}]}),Vo="tippy-content",oi="tippy-backdrop",Kr="tippy-arrow",In="tippy-svg-arrow",Gt={passive:!0,capture:!0},ui=function(){return document.body};function qs(ot,w,P){if(Array.isArray(ot)){var N=ot[w];return N==null?Array.isArray(P)?P[w]:P:N}return ot}function Cd(ot,w){var P={}.toString.call(ot);return P.indexOf("[object")===0&&P.indexOf(w+"]")>-1}function gd(ot,w){return typeof ot=="function"?ot.apply(void 0,w):ot}function Ou(ot,w){return w===0?ot:function(N){clearTimeout(P),P=setTimeout(function(){ot(N)},w)};var P}function _a(ot){return[].concat(ot)}function Nd(ot,w){ot.indexOf(w)===-1&&ot.push(w)}function Zg(ot){return[].slice.call(ot)}function Ga(ot){return Object.keys(ot).reduce(function(w,P){return ot[P]!==void 0&&(w[P]=ot[P]),w},{})}function J0(){return document.createElement("div")}function xa(ot){return["Element","Fragment"].some(function(w){return Cd(ot,w)})}function Ua(ot){return Cd(ot,"MouseEvent")}function du(ot){return xa(ot)?[ot]:function(w){return Cd(w,"NodeList")}(ot)?Zg(ot):Array.isArray(ot)?ot:Zg(document.querySelectorAll(ot))}function jg(ot,w){ot.forEach(function(P){P&&(P.style.transitionDuration=w+"ms")})}function c0(ot,w){ot.forEach(function(P){P&&P.setAttribute("data-state",w)})}function Jg(ot){var w,P=_a(ot)[0];return P!=null&&(w=P.ownerDocument)!=null&&w.body?P.ownerDocument:document}function P0(ot,w,P){var N=w+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(Q){ot[N](Q,P)})}function h0(ot,w){for(var P=w;P;){var N;if(ot.contains(P))return!0;P=P.getRootNode==null||(N=P.getRootNode())==null?void 0:N.host}return!1}var a0={isTouch:!1},V0=0;function Av(){a0.isTouch||(a0.isTouch=!0,window.performance&&document.addEventListener("mousemove",m0))}function m0(){var ot=performance.now();20>ot-V0&&(a0.isTouch=!1,document.removeEventListener("mousemove",m0)),V0=ot}function f0(){var ot,w=document.activeElement;(ot=w)&&ot._tippy&&ot._tippy.reference===ot&&w.blur&&!w._tippy.state.isVisible&&w.blur()}var L1=typeof window!="undefined"&&typeof document!="undefined"&&!!window.msCrypto,Pg=Object.assign({appendTo:ui,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}),A1=Object.keys(Pg);function Qg(ot){var w=(ot.plugins||[]).reduce(function(P,N){var Q,_e=N.name;return _e&&(P[_e]=ot[_e]!==void 0?ot[_e]:(Q=Pg[_e])!=null?Q:N.defaultValue),P},{});return Object.assign({},ot,w)}function d0(ot,w){var P=Object.assign({},w,{content:gd(w.content,[ot])},w.ignoreAttributes?{}:function(N,Q){return(Q?Object.keys(Qg(Object.assign({},Pg,{plugins:Q}))):A1).reduce(function(_e,Le){var rt=(N.getAttribute("data-tippy-"+Le)||"").trim();if(!rt)return _e;if(Le==="content")_e[Le]=rt;else try{_e[Le]=JSON.parse(rt)}catch(on){_e[Le]=rt}return _e},{})}(ot,w.plugins));return P.aria=Object.assign({},Pg.aria,P.aria),P.aria={expanded:P.aria.expanded==="auto"?w.interactive:P.aria.expanded,content:P.aria.content==="auto"?w.interactive?null:"describedby":P.aria.content},P}var f1=function(){return"innerHTML"};function w1(ot,w){ot[f1()]=w}function Gd(ot){var w=J0();return ot===!0?w.className=Kr:(w.className=In,xa(ot)?w.appendChild(ot):w1(w,ot)),w}function _g(ot,w){xa(w.content)?(w1(ot,""),ot.appendChild(w.content)):typeof w.content!="function"&&(w.allowHTML?w1(ot,w.content):ot.textContent=w.content)}function jv(ot){var w=ot.firstElementChild,P=Zg(w.children);return{box:w,content:P.find(function(N){return N.classList.contains(Vo)}),arrow:P.find(function(N){return N.classList.contains(Kr)||N.classList.contains(In)}),backdrop:P.find(function(N){return N.classList.contains(oi)})}}function Ov(ot){var w=J0(),P=J0();P.className="tippy-box",P.setAttribute("data-state","hidden"),P.setAttribute("tabindex","-1");var N=J0();function Q(_e,Le){var rt=jv(w),on=rt.box,Bs=rt.content,Pa=rt.arrow;Le.theme?on.setAttribute("data-theme",Le.theme):on.removeAttribute("data-theme"),typeof Le.animation=="string"?on.setAttribute("data-animation",Le.animation):on.removeAttribute("data-animation"),Le.inertia?on.setAttribute("data-inertia",""):on.removeAttribute("data-inertia"),on.style.maxWidth=typeof Le.maxWidth=="number"?Le.maxWidth+"px":Le.maxWidth,Le.role?on.setAttribute("role",Le.role):on.removeAttribute("role"),_e.content===Le.content&&_e.allowHTML===Le.allowHTML||_g(Bs,ot.props),Le.arrow?Pa?_e.arrow!==Le.arrow&&(on.removeChild(Pa),on.appendChild(Gd(Le.arrow))):on.appendChild(Gd(Le.arrow)):Pa&&on.removeChild(Pa)}return N.className=Vo,N.setAttribute("data-state","hidden"),_g(N,ot.props),w.appendChild(P),P.appendChild(N),Q(ot.props,ot.props),{popper:w,onUpdate:Q}}Ov.$$tippy=!0;var r1=1,M1=[],G0=[];function q1(ot,w){var P,N,Q,_e,Le,rt,on,Bs,Pa=d0(ot,Object.assign({},Pg,Qg(Ga(w)))),uh=!1,zg=!1,M0=!1,z0=!1,Zv=[],Vv=Ou(rS,Pa.interactiveDebounce),i1=r1++,Kv=(Bs=Pa.plugins).filter(function(nx,$w){return Bs.indexOf(nx)===$w}),wv={id:i1,reference:ot,popper:J0(),popperInstance:null,props:Pa,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:Kv,clearDelayTimeouts:function(){clearTimeout(P),clearTimeout(N),cancelAnimationFrame(Q)},setProps:function(nx){if(!wv.state.isDestroyed){Cv("onBeforeUpdate",[wv,nx]),EE();var $w=wv.props,yS=d0(ot,Object.assign({},$w,Ga(nx),{ignoreAttributes:!0}));wv.props=yS,xC(),$w.interactiveDebounce!==yS.interactiveDebounce&&(J1(),Vv=Ou(rS,yS.interactiveDebounce)),$w.triggerTarget&&!yS.triggerTarget?_a($w.triggerTarget).forEach(function(tS){tS.removeAttribute("aria-expanded")}):yS.triggerTarget&&ot.removeAttribute("aria-expanded"),Yy(),T0(),x_&&x_($w,yS),wv.popperInstance&&(pS(),VS().forEach(function(tS){requestAnimationFrame(tS._tippy.popperInstance.forceUpdate)})),Cv("onAfterUpdate",[wv,nx])}},setContent:function(nx){wv.setProps({content:nx})},show:function(){var nx=wv.state.isVisible,$w=wv.state.isDestroyed,yS=!wv.state.isEnabled,tS=a0.isTouch&&!wv.props.touch,LE=qs(wv.props.duration,0,Pg.duration);if(!(nx||$w||yS||tS)&&!X2().hasAttribute("disabled")&&(Cv("onShow",[wv],!1),wv.props.onShow(wv)!==!1)){if(wv.state.isVisible=!0,Sx()&&(jy.style.visibility="visible"),T0(),D2(),wv.state.isMounted||(jy.style.transition="none"),Sx()){var ne=mg();jg([ne.box,ne.content],0)}rt=function(){var H;if(wv.state.isVisible&&!z0){if(z0=!0,jy.style.transition=wv.props.moveTransition,Sx()&&wv.props.animation){var ve=mg(),je=ve.box,Lt=ve.content;jg([je,Lt],LE),c0([je,Lt],"visible")}yy(),Yy(),Nd(G0,wv),(H=wv.popperInstance)==null||H.forceUpdate(),Cv("onMount",[wv]),wv.props.animation&&Sx()&&function(Zr,Sr){Gw(Zr,Sr)}(LE,function(){wv.state.isShown=!0,Cv("onShown",[wv])})}},function(){var H,ve=wv.props.appendTo,je=X2();H=wv.props.interactive&&ve===ui||ve==="parent"?je.parentNode:gd(ve,[je]),H.contains(jy)||H.appendChild(jy),wv.state.isMounted=!0,pS()}()}},hide:function(){var nx=!wv.state.isVisible,$w=wv.state.isDestroyed,yS=!wv.state.isEnabled,tS=qs(wv.props.duration,1,Pg.duration);if(!(nx||$w||yS)&&(Cv("onHide",[wv],!1),wv.props.onHide(wv)!==!1)){if(wv.state.isVisible=!1,wv.state.isShown=!1,z0=!1,uh=!1,Sx()&&(jy.style.visibility="hidden"),J1(),TC(),T0(!0),Sx()){var LE=mg(),ne=LE.box,H=LE.content;wv.props.animation&&(jg([ne,H],tS),c0([ne,H],"hidden"))}yy(),Yy(),wv.props.animation?Sx()&&function(ve,je){Gw(ve,function(){!wv.state.isVisible&&jy.parentNode&&jy.parentNode.contains(jy)&&je()})}(tS,wv.unmount):wv.unmount()}},hideWithInteractivity:function(nx){gu().addEventListener("mousemove",Vv),Nd(M1,Vv),Vv(nx)},enable:function(){wv.state.isEnabled=!0},disable:function(){wv.hide(),wv.state.isEnabled=!1},unmount:function(){wv.state.isVisible&&wv.hide(),wv.state.isMounted&&(OC(),VS().forEach(function(nx){nx._tippy.unmount()}),jy.parentNode&&jy.parentNode.removeChild(jy),G0=G0.filter(function(nx){return nx!==wv}),wv.state.isMounted=!1,Cv("onHidden",[wv]))},destroy:function(){wv.state.isDestroyed||(wv.clearDelayTimeouts(),wv.unmount(),EE(),delete ot._tippy,wv.state.isDestroyed=!0,Cv("onDestroy",[wv]))}};if(!Pa.render)return wv;var oy=Pa.render(wv),jy=oy.popper,x_=oy.onUpdate;jy.setAttribute("data-tippy-root",""),jy.id="tippy-"+wv.id,wv.popper=jy,ot._tippy=wv,jy._tippy=wv;var dx=Kv.map(function(nx){return nx.fn(wv)}),Ux=ot.hasAttribute("aria-expanded");return xC(),Yy(),T0(),Cv("onCreate",[wv]),Pa.showOnCreate&&OT(),jy.addEventListener("mouseenter",function(){wv.props.interactive&&wv.state.isVisible&&wv.clearDelayTimeouts()}),jy.addEventListener("mouseleave",function(){wv.props.interactive&&wv.props.trigger.indexOf("mouseenter")>=0&&gu().addEventListener("mousemove",Vv)}),wv;function Dx(){var nx=wv.props.touch;return Array.isArray(nx)?nx:[nx,0]}function gw(){return Dx()[0]==="hold"}function Sx(){var nx;return!((nx=wv.props.render)==null||!nx.$$tippy)}function X2(){return on||ot}function gu(){var nx=X2().parentNode;return nx?Jg(nx):document}function mg(){return jv(jy)}function s0(nx){return wv.state.isMounted&&!wv.state.isVisible||a0.isTouch||_e&&_e.type==="focus"?0:qs(wv.props.delay,nx?0:1,Pg.delay)}function T0(nx){nx===void 0&&(nx=!1),jy.style.pointerEvents=wv.props.interactive&&!nx?"":"none",jy.style.zIndex=""+wv.props.zIndex}function Cv(nx,$w,yS){var tS;yS===void 0&&(yS=!0),dx.forEach(function(LE){LE[nx]&&LE[nx].apply(LE,$w)}),yS&&(tS=wv.props)[nx].apply(tS,$w)}function yy(){var nx=wv.props.aria;if(nx.content){var $w="aria-"+nx.content,yS=jy.id;_a(wv.props.triggerTarget||ot).forEach(function(tS){var LE=tS.getAttribute($w);if(wv.state.isVisible)tS.setAttribute($w,LE?LE+" "+yS:yS);else{var ne=LE&&LE.replace(yS,"").trim();ne?tS.setAttribute($w,ne):tS.removeAttribute($w)}})}}function Yy(){!Ux&&wv.props.aria.expanded&&_a(wv.props.triggerTarget||ot).forEach(function(nx){wv.props.interactive?nx.setAttribute("aria-expanded",wv.state.isVisible&&nx===X2()?"true":"false"):nx.removeAttribute("aria-expanded")})}function J1(){gu().removeEventListener("mousemove",Vv),M1=M1.filter(function(nx){return nx!==Vv})}function s_(nx){if(!a0.isTouch||!M0&&nx.type!=="mousedown"){var $w=nx.composedPath&&nx.composedPath()[0]||nx.target;if(!wv.props.interactive||!h0(jy,$w)){if(_a(wv.props.triggerTarget||ot).some(function(yS){return h0(yS,$w)})){if(a0.isTouch||wv.state.isVisible&&wv.props.trigger.indexOf("click")>=0)return}else Cv("onClickOutside",[wv,nx]);wv.props.hideOnClick===!0&&(wv.clearDelayTimeouts(),wv.hide(),zg=!0,setTimeout(function(){zg=!1}),wv.state.isMounted||TC())}}}function rx(){M0=!0}function Z1(){M0=!1}function D2(){var nx=gu();nx.addEventListener("mousedown",s_,!0),nx.addEventListener("touchend",s_,Gt),nx.addEventListener("touchstart",Z1,Gt),nx.addEventListener("touchmove",rx,Gt)}function TC(){var nx=gu();nx.removeEventListener("mousedown",s_,!0),nx.removeEventListener("touchend",s_,Gt),nx.removeEventListener("touchstart",Z1,Gt),nx.removeEventListener("touchmove",rx,Gt)}function Gw(nx,$w){var yS=mg().box;function tS(LE){LE.target===yS&&(P0(yS,"remove",tS),$w())}if(nx===0)return $w();P0(yS,"remove",Le),P0(yS,"add",tS),Le=tS}function Ow(nx,$w,yS){yS===void 0&&(yS=!1),_a(wv.props.triggerTarget||ot).forEach(function(tS){tS.addEventListener(nx,$w,yS),Zv.push({node:tS,eventType:nx,handler:$w,options:yS})})}function xC(){var nx;gw()&&(Ow("touchstart",jE,{passive:!0}),Ow("touchend",hS,{passive:!0})),(nx=wv.props.trigger,nx.split(/\s+/).filter(Boolean)).forEach(function($w){if($w!=="manual")switch(Ow($w,jE),$w){case"mouseenter":Ow("mouseleave",hS);break;case"focus":Ow(L1?"focusout":"blur",m1);break;case"focusin":Ow("focusout",m1)}})}function EE(){Zv.forEach(function(nx){nx.node.removeEventListener(nx.eventType,nx.handler,nx.options)}),Zv=[]}function jE(nx){var $w,yS=!1;if(wv.state.isEnabled&&!V_(nx)&&!zg){var tS=(($w=_e)==null?void 0:$w.type)==="focus";_e=nx,on=nx.currentTarget,Yy(),!wv.state.isVisible&&Ua(nx)&&M1.forEach(function(LE){return LE(nx)}),nx.type==="click"&&(0>wv.props.trigger.indexOf("mouseenter")||uh)&&wv.props.hideOnClick!==!1&&wv.state.isVisible?yS=!0:OT(nx),nx.type==="click"&&(uh=!yS),yS&&!tS&&zS(nx)}}function rS(nx){var $w=nx.target,yS=X2().contains($w)||jy.contains($w);if(nx.type!=="mousemove"||!yS){var tS=VS().concat(jy).map(function(LE){var ne,H=(ne=LE._tippy.popperInstance)==null?void 0:ne.state;return H?{popperRect:LE.getBoundingClientRect(),popperState:H,props:Pa}:null}).filter(Boolean);(function(LE,ne){var H=ne.clientX,ve=ne.clientY;return LE.every(function(je){var Lt=je.popperRect,Zr=je.popperState,Sr=je.props.interactiveBorder,wa=Zr.placement.split("-")[0],ru=Zr.modifiersData.offset;return!ru||Lt.top-ve+(wa==="bottom"?ru.top.y:0)>Sr||ve-Lt.bottom-(wa==="top"?ru.bottom.y:0)>Sr||Lt.left-H+(wa==="right"?ru.left.x:0)>Sr||H-Lt.right-(wa==="left"?ru.right.x:0)>Sr})})(tS,nx)&&(J1(),zS(nx))}}function hS(nx){V_(nx)||wv.props.trigger.indexOf("click")>=0&&uh||(wv.props.interactive?wv.hideWithInteractivity(nx):zS(nx))}function m1(nx){0>wv.props.trigger.indexOf("focusin")&&nx.target!==X2()||wv.props.interactive&&nx.relatedTarget&&jy.contains(nx.relatedTarget)||zS(nx)}function V_(nx){return!!a0.isTouch&&gw()!==nx.type.indexOf("touch")>=0}function pS(){OC();var nx=wv.props,$w=nx.popperOptions,yS=nx.placement,tS=nx.offset,LE=nx.getReferenceClientRect,ne=nx.moveTransition,H=Sx()?jv(jy).arrow:null,ve=LE?{getBoundingClientRect:LE,contextElement:LE.contextElement||X2()}:ot,je={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Zr){var Sr=Zr.state;if(Sx()){var wa=mg().box;["placement","reference-hidden","escaped"].forEach(function(ru){ru==="placement"?wa.setAttribute("data-placement",Sr.placement):Sr.attributes.popper["data-popper-"+ru]?wa.setAttribute("data-"+ru,""):wa.removeAttribute("data-"+ru)}),Sr.attributes.popper={}}}},Lt=[{name:"offset",options:{offset:tS}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ne}},je];Sx()&&H&&Lt.push({name:"arrow",options:{element:H,padding:3}}),Lt.push.apply(Lt,($w==null?void 0:$w.modifiers)||[]),wv.popperInstance=$0(ve,jy,Object.assign({},$w,{placement:yS,onFirstUpdate:rt,modifiers:Lt}))}function OC(){wv.popperInstance&&(wv.popperInstance.destroy(),wv.popperInstance=null)}function VS(){return Zg(jy.querySelectorAll("[data-tippy-root]"))}function OT(nx){wv.clearDelayTimeouts(),nx&&Cv("onTrigger",[wv,nx]),D2();var $w=s0(!0),yS=Dx(),tS=yS[1];a0.isTouch&&yS[0]==="hold"&&tS&&($w=tS),$w?P=setTimeout(function(){wv.show()},$w):wv.show()}function zS(nx){if(wv.clearDelayTimeouts(),Cv("onUntrigger",[wv,nx]),wv.state.isVisible){if(0>wv.props.trigger.indexOf("mouseenter")||0>wv.props.trigger.indexOf("click")||0>["mouseleave","mousemove"].indexOf(nx.type)||!uh){var $w=s0(!1);$w?N=setTimeout(function(){wv.state.isVisible&&wv.hide()},$w):Q=requestAnimationFrame(function(){wv.hide()})}}else TC()}}function My(ot,w){w===void 0&&(w={});var P=Pg.plugins.concat(w.plugins||[]);document.addEventListener("touchstart",Av,Gt),window.addEventListener("blur",f0);var N=Object.assign({},w,{plugins:P}),Q=du(ot).reduce(function(_e,Le){var rt=Le&&q1(Le,N);return rt&&_e.push(rt),_e},[]);return xa(ot)?Q[0]:Q}My.defaultProps=Pg,My.setDefaultProps=function(ot){Object.keys(ot).forEach(function(w){Pg[w]=ot[w]})},My.currentInput=a0,Object.assign({},wn,{effect:function(ot){var w=ot.state,P={popper:{position:w.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(w.elements.popper.style,P.popper),w.styles=P,w.elements.arrow&&Object.assign(w.elements.arrow.style,P.arrow)}});var S0={clientX:0,clientY:0},Y0=[];function uv(ot){S0={clientX:ot.clientX,clientY:ot.clientY}}var Gv={name:"followCursor",defaultValue:!1,fn:function(ot){var w=ot.reference,P=Jg(ot.props.triggerTarget||w),N=!1,Q=!1,_e=!0,Le=ot.props;function rt(){return ot.props.followCursor==="initial"&&ot.state.isVisible}function on(){P.addEventListener("mousemove",uh)}function Bs(){P.removeEventListener("mousemove",uh)}function Pa(){N=!0,ot.setProps({getReferenceClientRect:null}),N=!1}function uh(z0){var Zv=!z0.target||w.contains(z0.target),Vv=ot.props.followCursor,i1=z0.clientX,Kv=z0.clientY,wv=w.getBoundingClientRect(),oy=i1-wv.left,jy=Kv-wv.top;!Zv&&ot.props.interactive||ot.setProps({getReferenceClientRect:function(){var x_=w.getBoundingClientRect(),dx=i1,Ux=Kv;Vv==="initial"&&(dx=x_.left+oy,Ux=x_.top+jy);var Dx=Vv==="horizontal"?x_.top:Ux,gw=Vv==="vertical"?x_.right:dx,Sx=Vv==="horizontal"?x_.bottom:Ux,X2=Vv==="vertical"?x_.left:dx;return{width:gw-X2,height:Sx-Dx,top:Dx,right:gw,bottom:Sx,left:X2}}})}function zg(){ot.props.followCursor&&(Y0.push({instance:ot,doc:P}),function(z0){z0.addEventListener("mousemove",uv)}(P))}function M0(){(Y0=Y0.filter(function(z0){return z0.instance!==ot})).filter(function(z0){return z0.doc===P}).length===0&&function(z0){z0.removeEventListener("mousemove",uv)}(P)}return{onCreate:zg,onDestroy:M0,onBeforeUpdate:function(){Le=ot.props},onAfterUpdate:function(z0,Zv){var Vv=Zv.followCursor;N||Vv!==void 0&&Le.followCursor!==Vv&&(M0(),Vv?(zg(),!ot.state.isMounted||Q||rt()||on()):(Bs(),Pa()))},onMount:function(){ot.props.followCursor&&!Q&&(_e&&(uh(S0),_e=!1),rt()||on())},onTrigger:function(z0,Zv){Ua(Zv)&&(S0={clientX:Zv.clientX,clientY:Zv.clientY}),Q=Zv.type==="focus"},onHidden:function(){ot.props.followCursor&&(Pa(),Bs(),_e=!0)}}}};My.setDefaultProps({render:Ov});var W0,bu,dv,h1,C1,E1,yu={showTotalDistance:!1,showDashDistance:!0,showWhen:["normal","active"],format:function(ot){return 1e3>ot?+ot.toFixed(2)+"m":+(ot/1e3).toFixed(2)+"km"}},Kg={showWhen:["normal","active"],format:function(ot){return ot>1e6?"".concat(+(ot/1e6).toFixed(2),"km\xB2"):"".concat(+ot.toFixed(2),"m\xB2")}},i0={maxSize:100},ii={remove:["del","backspace"],revert:["command+z","ctrl+z"],redo:["command+shift+z","ctrl+shift+z"]},Nt={allowHTML:!0,followCursor:!0,placement:"bottom-start",offset:[-10,20],plugins:[Gv],trigger:"manual",hideOnClick:!1,theme:"light"},fr={data:"drawData",pointAdsorbPixel:12,lineAdsorbPixel:10};function Yr(ot,w){var P=Object.keys(ot);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(ot);w&&(N=N.filter(function(Q){return Object.getOwnPropertyDescriptor(ot,Q).enumerable})),P.push.apply(P,N)}return P}function No(ot){for(var w=1;arguments.length>w;w++){var P=arguments[w]!=null?arguments[w]:{};w%2?Yr(Object(P),!0).forEach(function(N){js(ot,N,P[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ot,Object.getOwnPropertyDescriptors(P)):Yr(Object(P)).forEach(function(N){Object.defineProperty(ot,N,Object.getOwnPropertyDescriptor(P,N))})}return ot}function va(ot){return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},va(ot)}function mu(ot,w){if(!(ot instanceof w))throw new TypeError("Cannot call a class as a function")}function e0(ot,w){for(var P=0;w.length>P;P++){var N=w[P];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(ot,e_(N.key),N)}}function rn(ot,w,P){return w&&e0(ot.prototype,w),P&&e0(ot,P),Object.defineProperty(ot,"prototype",{writable:!1}),ot}function js(ot,w,P){return(w=e_(w))in ot?Object.defineProperty(ot,w,{value:P,enumerable:!0,configurable:!0,writable:!0}):ot[w]=P,ot}function $a(ot,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");ot.prototype=Object.create(w&&w.prototype,{constructor:{value:ot,writable:!0,configurable:!0}}),Object.defineProperty(ot,"prototype",{writable:!1}),w&&Q0(ot,w)}function yd(ot){return yd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)},yd(ot)}function Q0(ot,w){return Q0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,N){return P.__proto__=N,P},Q0(ot,w)}function yv(ot){if(ot===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ot}function Pv(ot){var w=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(P){return!1}}();return function(){var P,N=yd(ot);if(w){var Q=yd(this).constructor;P=Reflect.construct(N,arguments,Q)}else P=N.apply(this,arguments);return function(_e,Le){if(Le&&(typeof Le=="object"||typeof Le=="function"))return Le;if(Le!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yv(_e)}(this,P)}}function Jv(){return Jv=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(ot,w,P){var N=function(_e,Le){for(;!Object.prototype.hasOwnProperty.call(_e,Le)&&(_e=yd(_e))!==null;);return _e}(ot,w);if(N){var Q=Object.getOwnPropertyDescriptor(N,w);return Q.get?Q.get.call(3>arguments.length?ot:P):Q.value}},Jv.apply(this,arguments)}function N1(ot,w){return function(P){if(Array.isArray(P))return P}(ot)||function(P,N){var Q=P==null?null:typeof Symbol!="undefined"&&P[Symbol.iterator]||P["@@iterator"];if(Q!=null){var _e,Le,rt,on,Bs=[],Pa=!0,uh=!1;try{if(rt=(Q=Q.call(P)).next,N===0){if(Object(Q)!==Q)return;Pa=!1}else for(;!(Pa=(_e=rt.call(Q)).done)&&(Bs.push(_e.value),Bs.length!==N);Pa=!0);}catch(zg){uh=!0,Le=zg}finally{try{if(!Pa&&Q.return!=null&&(on=Q.return(),Object(on)!==on))return}finally{if(uh)throw Le}}return Bs}}(ot,w)||wy(ot,w)||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 G1(ot){return function(w){if(Array.isArray(w))return Oy(w)}(ot)||function(w){if(typeof Symbol!="undefined"&&w[Symbol.iterator]!=null||w["@@iterator"]!=null)return Array.from(w)}(ot)||wy(ot)||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 wy(ot,w){if(ot){if(typeof ot=="string")return Oy(ot,w);var P=Object.prototype.toString.call(ot).slice(8,-1);return P==="Object"&&ot.constructor&&(P=ot.constructor.name),P==="Map"||P==="Set"?Array.from(ot):P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P)?Oy(ot,w):void 0}}function Oy(ot,w){(w==null||w>ot.length)&&(w=ot.length);for(var P=0,N=Array(w);w>P;P++)N[P]=ot[P];return N}function e_(ot){var w=function(P,N){if(typeof P!="object"||P===null)return P;var Q=P[Symbol.toPrimitive];if(Q!==void 0){var _e=Q.call(P,N||"default");if(typeof _e!="object")return _e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(N==="string"?String:Number)(P)}(ot,"string");return typeof w=="symbol"?w:w+""}(W0=u.DrawEvent||(u.DrawEvent={})).Init="init",W0.Destroy="destroy",W0.Enable="enable",W0.Disable="disable",W0.Add="add",W0.Edit="edit",W0.Remove="remove",W0.Clear="clear",W0.Change="change",W0.DragStart="dragStart",W0.Dragging="dragging",W0.DragEnd="dragEnd",W0.Select="select",W0.AddNode="addNode",W0.RemoveNode="removeNode",(bu=u.SourceEvent||(u.SourceEvent={})).Change="change",bu.Update="update",(dv=u.RenderEvent||(u.RenderEvent={})).Click="click",dv.UnClick="unclick",dv.Dragstart="dragstart",dv.Mousemove="mousemove",dv.Mouseout="mouseout",dv.Dragging="dragging",dv.Dragend="dragend",dv.DblClick="dblClick",dv.Contextmenu="contextmenu",(h1=u.LayerEvent||(u.LayerEvent={})).Mousedown="mousedown",h1.Mouseup="mouseup",h1.Click="click",h1.UnClick="unclick",h1.Dblclick="dblclick",h1.Mousemove="mousemove",h1.Mouseover="mouseover",h1.Mouseenter="mouseenter",h1.Mouseleave="mouseleave",h1.Mouseout="mouseout",h1.Contextmenu="contextmenu",(C1=u.SceneEvent||(u.SceneEvent={})).Loaded="loaded",C1.MapMove="mapmove",C1.MoveStart="movestart",C1.MoveEnd="moveend",C1.ZoomChange="zoomchange",C1.ZoomStart="zoomstart",C1.ZoomEnd="zoomend",C1.Click="click",C1.Dblclick="dblclick",C1.Mousemove="mousemove",C1.Mousewheel="mousewheel",C1.Mouseover="mouseover",C1.Mouseout="mouseout",C1.Mouseup="mouseup",C1.Mousedown="mousedown",C1.Contextmenu="contextmenu",C1.Dragstart="dragstart",C1.Dragging="dragging",C1.Dragend="dragend",(E1=u.ControlEvent||(u.ControlEvent={})).DrawChange="drawchange",E1.DataChange="datachange",E1.DrawSelect="drawselect",E1.DrawClear="drawclear";var av=63710088e-1,e1={centimeters:637100880,centimetres:637100880,degrees:57.22891354143274,feet:20902260511392e-6,inches:39.37*av,kilometers:6371.0088,kilometres:6371.0088,meters:av,metres:av,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:av/1852,radians:1,yards:6967335223679999e-9},ty={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 L_(ot,w,P){P===void 0&&(P={});var N={type:"Feature"};return(P.id===0||P.id)&&(N.id=P.id),P.bbox&&(N.bbox=P.bbox),N.properties=w||{},N.geometry=ot,N}function u1(ot,w,P){if(P===void 0&&(P={}),!ot)throw Error("coordinates is required");if(!Array.isArray(ot))throw Error("coordinates must be an Array");if(2>ot.length)throw Error("coordinates must be at least 2 numbers long");if(!ix(ot[0])||!ix(ot[1]))throw Error("coordinates must contain numbers");return L_({type:"Point",coordinates:ot},w,P)}function mv(ot,w,P){P===void 0&&(P={});for(var N=0,Q=ot;Q.length>N;N++){var _e=Q[N];if(4>_e.length)throw Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var Le=0;_e[_e.length-1].length>Le;Le++)if(_e[_e.length-1][Le]!==_e[0][Le])throw Error("First and last Position are not equivalent.")}return L_({type:"Polygon",coordinates:ot},w,P)}function Sv(ot,w,P){if(P===void 0&&(P={}),2>ot.length)throw Error("coordinates must be an array of two or more positions");return L_({type:"LineString",coordinates:ot},w,P)}function Fv(ot,w){w===void 0&&(w={});var P={type:"FeatureCollection"};return w.id&&(P.id=w.id),w.bbox&&(P.bbox=w.bbox),P.features=ot,P}function x1(ot,w,P){return P===void 0&&(P={}),L_({type:"MultiLineString",coordinates:ot},w,P)}function ey(ot,w,P){return P===void 0&&(P={}),L_({type:"MultiPoint",coordinates:ot},w,P)}function ox(ot,w,P){return P===void 0&&(P={}),L_({type:"MultiPolygon",coordinates:ot},w,P)}function s2(ot,w){w===void 0&&(w="kilometers");var P=e1[w];if(!P)throw Error(w+" units is invalid");return ot*P}function l2(ot,w){w===void 0&&(w="kilometers");var P=e1[w];if(!P)throw Error(w+" units is invalid");return ot/P}function z2(ot){return 180*(ot%(2*Math.PI))/Math.PI}function k2(ot){return ot%360*Math.PI/180}function ix(ot){return!isNaN(ot)&&ot!==null&&!Array.isArray(ot)}function hx(ot){return!!ot&&ot.constructor===Object}var ax=Object.freeze({__proto__:null,earthRadius:av,factors:e1,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/av,yards:1.0936133},areaFactors:ty,feature:L_,geometry:function(ot,w,P){switch(ot){case"Point":return u1(w).geometry;case"LineString":return Sv(w).geometry;case"Polygon":return mv(w).geometry;case"MultiPoint":return ey(w).geometry;case"MultiLineString":return x1(w).geometry;case"MultiPolygon":return ox(w).geometry;default:throw Error(ot+" is invalid")}},point:u1,points:function(ot,w,P){return P===void 0&&(P={}),Fv(ot.map(function(N){return u1(N,w)}),P)},polygon:mv,polygons:function(ot,w,P){return P===void 0&&(P={}),Fv(ot.map(function(N){return mv(N,w)}),P)},lineString:Sv,lineStrings:function(ot,w,P){return P===void 0&&(P={}),Fv(ot.map(function(N){return Sv(N,w)}),P)},featureCollection:Fv,multiLineString:x1,multiPoint:ey,multiPolygon:ox,geometryCollection:function(ot,w,P){return P===void 0&&(P={}),L_({type:"GeometryCollection",geometries:ot},w,P)},round:function(ot,w){if(w===void 0&&(w=0),w&&w<0)throw Error("precision must be a positive number");var P=Math.pow(10,w||0);return Math.round(ot*P)/P},radiansToLength:s2,lengthToRadians:l2,lengthToDegrees:function(ot,w){return z2(l2(ot,w))},bearingToAzimuth:function(ot){var w=ot%360;return 0>w&&(w+=360),w},radiansToDegrees:z2,degreesToRadians:k2,convertLength:function(ot,w,P){if(w===void 0&&(w="kilometers"),P===void 0&&(P="kilometers"),ot<0)throw Error("length must be a positive number");return s2(l2(ot,w),P)},convertArea:function(ot,w,P){if(w===void 0&&(w="meters"),P===void 0&&(P="kilometers"),ot<0)throw Error("area must be a positive number");var N=ty[w];if(!N)throw Error("invalid original units");var Q=ty[P];if(!Q)throw Error("invalid final units");return ot/N*Q},isNumber:ix,isObject:hx,validateBBox:function(ot){if(!ot)throw Error("bbox is required");if(!Array.isArray(ot))throw Error("bbox must be an Array");if(ot.length!==4&&ot.length!==6)throw Error("bbox must be an Array of 4 or 6 numbers");ot.forEach(function(w){if(!ix(w))throw Error("bbox must only contain numbers")})},validateId:function(ot){if(!ot)throw Error("id is required");if(["string","number"].indexOf(typeof ot)===-1)throw Error("id must be a number or a string")}});function sv(ot,w,P){if(ot!==null)for(var N,Q,_e,Le,rt,on,Bs,Pa,uh=0,zg=0,M0=ot.type,z0=M0==="FeatureCollection",Zv=M0==="Feature",Vv=z0?ot.features.length:1,i1=0;Vv>i1;i1++){rt=(Pa=!!(Bs=z0?ot.features[i1].geometry:Zv?ot.geometry:ot)&&Bs.type==="GeometryCollection")?Bs.geometries.length:1;for(var Kv=0;rt>Kv;Kv++){var wv=0,oy=0;if((Le=Pa?Bs.geometries[Kv]:Bs)!==null){on=Le.coordinates;var jy=Le.type;switch(uh=!P||jy!=="Polygon"&&jy!=="MultiPolygon"?0:1,jy){case null:break;case"Point":if(w(on,zg,i1,wv,oy)===!1)return!1;zg++,wv++;break;case"LineString":case"MultiPoint":for(N=0;on.length>N;N++){if(w(on[N],zg,i1,wv,oy)===!1)return!1;zg++,jy==="MultiPoint"&&wv++}jy==="LineString"&&wv++;break;case"Polygon":case"MultiLineString":for(N=0;on.length>N;N++){for(Q=0;on[N].length-uh>Q;Q++){if(w(on[N][Q],zg,i1,wv,oy)===!1)return!1;zg++}jy==="MultiLineString"&&wv++,jy==="Polygon"&&oy++}jy==="Polygon"&&wv++;break;case"MultiPolygon":for(N=0;on.length>N;N++){for(oy=0,Q=0;on[N].length>Q;Q++){for(_e=0;on[N][Q].length-uh>_e;_e++){if(w(on[N][Q][_e],zg,i1,wv,oy)===!1)return!1;zg++}oy++}wv++}break;case"GeometryCollection":for(N=0;Le.geometries.length>N;N++)if(sv(Le.geometries[N],w,P)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}}}}}function ov(ot,w){var P;switch(ot.type){case"FeatureCollection":for(P=0;ot.features.length>P&&w(ot.features[P].properties,P)!==!1;P++);break;case"Feature":w(ot.properties,0)}}function Eu(ot,w){if(ot.type==="Feature")w(ot,0);else if(ot.type==="FeatureCollection")for(var P=0;ot.features.length>P&&w(ot.features[P],P)!==!1;P++);}function Bg(ot){var w=[];return sv(ot,function(P){w.push(P)}),w}function Hg(ot,w){var P,N,Q,_e,Le,rt,on,Bs,Pa,uh,zg=0,M0=ot.type==="FeatureCollection",z0=ot.type==="Feature",Zv=M0?ot.features.length:1;for(P=0;Zv>P;P++){for(Bs=M0?ot.features[P].properties:z0?ot.properties:{},Pa=M0?ot.features[P].bbox:z0?ot.bbox:void 0,uh=M0?ot.features[P].id:z0?ot.id:void 0,Le=(on=!!(rt=M0?ot.features[P].geometry:z0?ot.geometry:ot)&&rt.type==="GeometryCollection")?rt.geometries.length:1,Q=0;Le>Q;Q++)if((_e=on?rt.geometries[Q]:rt)!==null)switch(_e.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(w(_e,zg,Bs,Pa,uh)===!1)return!1;break;case"GeometryCollection":for(N=0;_e.geometries.length>N;N++)if(w(_e.geometries[N],zg,Bs,Pa,uh)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}else if(w(null,zg,Bs,Pa,uh)===!1)return!1;zg++}}function xv(ot,w,P){var N=P;return Hg(ot,function(Q,_e,Le,rt,on){N=_e===0&&P===void 0?Q:w(N,Q,_e,Le,rt,on)}),N}function y1(ot,w){Hg(ot,function(P,N,Q,_e,Le){var rt,on=P===null?null:P.type;switch(on){case null:case"Point":case"LineString":case"Polygon":return w(L_(P,Q,{bbox:_e,id:Le}),N,0)!==!1&&void 0}switch(on){case"MultiPoint":rt="Point";break;case"MultiLineString":rt="LineString";break;case"MultiPolygon":rt="Polygon"}for(var Bs=0;P.coordinates.length>Bs;Bs++)if(w(L_({type:rt,coordinates:P.coordinates[Bs]},Q),N,Bs)===!1)return!1})}function R1(ot,w){y1(ot,function(P,N,Q){var _e=0;if(P.geometry){var Le=P.geometry.type;if(Le!=="Point"&&Le!=="MultiPoint"){var rt,on=0,Bs=0,Pa=0;return sv(P,function(uh,zg,M0,z0,Zv){if(rt===void 0||N>on||z0>Bs||Zv>Pa)return rt=uh,on=N,Bs=z0,Pa=Zv,void(_e=0);var Vv=Sv([rt,uh],P.properties);if(w(Vv,N,Q,Zv,_e)===!1)return!1;_e++,rt=uh})!==!1&&void 0}}})}function V1(ot,w,P){var N=P,Q=!1;return R1(ot,function(_e,Le,rt,on,Bs){N=Q===!1&&P===void 0?_e:w(N,_e,Le,rt,on,Bs),Q=!0}),N}function I1(ot,w){if(!ot)throw Error("geojson is required");y1(ot,function(P,N,Q){if(P.geometry!==null){var _e=P.geometry.coordinates;switch(P.geometry.type){case"LineString":if(w(P,N,Q,0,0)===!1)return!1;break;case"Polygon":for(var Le=0;_e.length>Le;Le++)if(w(Sv(_e[Le],P.properties),N,Q,Le)===!1)return!1}}})}var zy=Object.freeze({__proto__:null,coordAll:Bg,coordEach:sv,coordReduce:function(ot,w,P,N){var Q=P;return sv(ot,function(_e,Le,rt,on,Bs){Q=Le===0&&P===void 0?_e:w(Q,_e,Le,rt,on,Bs)},N),Q},featureEach:Eu,featureReduce:function(ot,w,P){var N=P;return Eu(ot,function(Q,_e){N=_e===0&&P===void 0?Q:w(N,Q,_e)}),N},findPoint:function(ot,w){if(!hx(w=w||{}))throw Error("options is invalid");var P,N=w.featureIndex||0,Q=w.multiFeatureIndex||0,_e=w.geometryIndex||0,Le=w.coordIndex||0,rt=w.properties;switch(ot.type){case"FeatureCollection":0>N&&(N=ot.features.length+N),rt=rt||ot.features[N].properties,P=ot.features[N].geometry;break;case"Feature":rt=rt||ot.properties,P=ot.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":P=ot;break;default:throw Error("geojson is invalid")}if(P===null)return null;var on=P.coordinates;switch(P.type){case"Point":return u1(on,rt,w);case"MultiPoint":return 0>Q&&(Q=on.length+Q),u1(on[Q],rt,w);case"LineString":return 0>Le&&(Le=on.length+Le),u1(on[Le],rt,w);case"Polygon":return 0>_e&&(_e=on.length+_e),0>Le&&(Le=on[_e].length+Le),u1(on[_e][Le],rt,w);case"MultiLineString":return 0>Q&&(Q=on.length+Q),0>Le&&(Le=on[Q].length+Le),u1(on[Q][Le],rt,w);case"MultiPolygon":return 0>Q&&(Q=on.length+Q),0>_e&&(_e=on[Q].length+_e),0>Le&&(Le=on[Q][_e].length-Le),u1(on[Q][_e][Le],rt,w)}throw Error("geojson is invalid")},findSegment:function(ot,w){if(!hx(w=w||{}))throw Error("options is invalid");var P,N=w.featureIndex||0,Q=w.multiFeatureIndex||0,_e=w.geometryIndex||0,Le=w.segmentIndex||0,rt=w.properties;switch(ot.type){case"FeatureCollection":0>N&&(N=ot.features.length+N),rt=rt||ot.features[N].properties,P=ot.features[N].geometry;break;case"Feature":rt=rt||ot.properties,P=ot.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":P=ot;break;default:throw Error("geojson is invalid")}if(P===null)return null;var on=P.coordinates;switch(P.type){case"Point":case"MultiPoint":return null;case"LineString":return 0>Le&&(Le=on.length+Le-1),Sv([on[Le],on[Le+1]],rt,w);case"Polygon":return 0>_e&&(_e=on.length+_e),0>Le&&(Le=on[_e].length+Le-1),Sv([on[_e][Le],on[_e][Le+1]],rt,w);case"MultiLineString":return 0>Q&&(Q=on.length+Q),0>Le&&(Le=on[Q].length+Le-1),Sv([on[Q][Le],on[Q][Le+1]],rt,w);case"MultiPolygon":return 0>Q&&(Q=on.length+Q),0>_e&&(_e=on[Q].length+_e),0>Le&&(Le=on[Q][_e].length-Le-1),Sv([on[Q][_e][Le],on[Q][_e][Le+1]],rt,w)}throw Error("geojson is invalid")},flattenEach:y1,flattenReduce:function(ot,w,P){var N=P;return y1(ot,function(Q,_e,Le){N=_e===0&&Le===0&&P===void 0?Q:w(N,Q,_e,Le)}),N},geomEach:Hg,geomReduce:xv,lineEach:I1,lineReduce:function(ot,w,P){var N=P;return I1(ot,function(Q,_e,Le,rt){N=_e===0&&P===void 0?Q:w(N,Q,_e,Le,rt)}),N},propEach:ov,propReduce:function(ot,w,P){var N=P;return ov(ot,function(Q,_e){N=_e===0&&P===void 0?Q:w(N,Q,_e)}),N},segmentEach:R1,segmentReduce:V1});function U1(ot){var w=[1/0,1/0,-1/0,-1/0];return sv(ot,function(P){w[0]>P[0]&&(w[0]=P[0]),w[1]>P[1]&&(w[1]=P[1]),P[0]>w[2]&&(w[2]=P[0]),P[1]>w[3]&&(w[3]=P[1])}),w}U1.default=U1;var E_=Object.freeze({__proto__:null,default:U1});function sy(ot){if(!ot)throw Error("coord is required");if(!Array.isArray(ot)){if(ot.type==="Feature"&&ot.geometry!==null&&ot.geometry.type==="Point")return ot.geometry.coordinates;if(ot.type==="Point")return ot.coordinates}if(Array.isArray(ot)&&ot.length>=2&&!Array.isArray(ot[0])&&!Array.isArray(ot[1]))return ot;throw Error("coord must be GeoJSON Point or an Array of numbers")}function p_(ot){if(Array.isArray(ot))return ot;if(ot.type==="Feature"){if(ot.geometry!==null)return ot.geometry.coordinates}else if(ot.coordinates)return ot.coordinates;throw Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function m_(ot){return ot.type==="Feature"?ot.geometry:ot}function mx(ot,w){return ot.type==="FeatureCollection"?"FeatureCollection":ot.type==="GeometryCollection"?"GeometryCollection":ot.type==="Feature"&&ot.geometry!==null?ot.geometry.type:ot.type}function W_(ot,w,P,N,Q){ex(ot,w,P||0,N||ot.length-1,Q||T_)}function ex(ot,w,P,N,Q){for(;N>P;){if(N-P>600){var _e=N-P+1,Le=w-P+1,rt=Math.log(_e),on=.5*Math.exp(2*rt/3),Bs=.5*Math.sqrt(rt*on*(_e-on)/_e)*(0>Le-_e/2?-1:1);ex(ot,w,Math.max(P,Math.floor(w-Le*on/_e+Bs)),Math.min(N,Math.floor(w+(_e-Le)*on/_e+Bs)),Q)}var Pa=ot[w],uh=P,zg=N;for(B_(ot,P,w),Q(ot[N],Pa)>0&&B_(ot,P,N);zg>uh;){for(B_(ot,uh,zg),uh++,zg--;0>Q(ot[uh],Pa);)uh++;for(;Q(ot[zg],Pa)>0;)zg--}Q(ot[P],Pa)===0?B_(ot,P,zg):B_(ot,++zg,N),zg>w||(P=zg+1),w>zg||(N=zg-1)}}function B_(ot,w,P){var N=ot[w];ot[w]=ot[P],ot[P]=N}function T_(ot,w){return w>ot?-1:ot>w?1:0}function vx(ot,w,P){if(!P)return w.indexOf(ot);for(let N=0;w.length>N;N++)if(P(ot,w[N]))return N;return-1}function ka(ot,w){xx(ot,0,ot.children.length,w,ot)}function xx(ot,w,P,N,Q){Q||(Q=Mw(null)),Q.minX=1/0,Q.minY=1/0,Q.maxX=-1/0,Q.maxY=-1/0;for(let _e=w;P>_e;_e++){const Le=ot.children[_e];u2(Q,ot.leaf?N(Le):Le)}return Q}function u2(ot,w){return ot.minX=Math.min(ot.minX,w.minX),ot.minY=Math.min(ot.minY,w.minY),ot.maxX=Math.max(ot.maxX,w.maxX),ot.maxY=Math.max(ot.maxY,w.maxY),ot}function v2(ot,w){return ot.minX-w.minX}function U2(ot,w){return ot.minY-w.minY}function Z2(ot){return(ot.maxX-ot.minX)*(ot.maxY-ot.minY)}function rC(ot){return ot.maxX-ot.minX+(ot.maxY-ot.minY)}function GC(ot,w){const P=Math.max(ot.minX,w.minX),N=Math.max(ot.minY,w.minY),Q=Math.min(ot.maxX,w.maxX),_e=Math.min(ot.maxY,w.maxY);return Math.max(0,Q-P)*Math.max(0,_e-N)}function vC(ot,w){return!(ot.minX>w.minX||ot.minY>w.minY||w.maxX>ot.maxX||w.maxY>ot.maxY)}function Lw(ot,w){return!(w.minX>ot.maxX||w.minY>ot.maxY||ot.minX>w.maxX||ot.minY>w.maxY)}function Mw(ot){return{children:ot,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function KC(ot,w,P,N,Q){const _e=[w,P];for(;_e.length;){if(N>=(P=_e.pop())-(w=_e.pop()))continue;const Le=w+Math.ceil((P-w)/N/2)*N;W_(ot,Le,w,P,Q),_e.push(w,Le,Le,P)}}var QS=Object.freeze({__proto__:null,default:class{constructor(ot=9){this._maxEntries=Math.max(4,ot),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(ot){let w=this.data;const P=[];if(!Lw(ot,w))return P;const N=this.toBBox,Q=[];for(;w;){for(let _e=0;w.children.length>_e;_e++){const Le=w.children[_e],rt=w.leaf?N(Le):Le;Lw(ot,rt)&&(w.leaf?P.push(Le):vC(ot,rt)?this._all(Le,P):Q.push(Le))}w=Q.pop()}return P}collides(ot){let w=this.data;if(!Lw(ot,w))return!1;const P=[];for(;w;){for(let N=0;w.children.length>N;N++){const Q=w.children[N],_e=w.leaf?this.toBBox(Q):Q;if(Lw(ot,_e)){if(w.leaf||vC(ot,_e))return!0;P.push(Q)}}w=P.pop()}return!1}load(ot){if(!ot||!ot.length)return this;if(this._minEntries>ot.length){for(let P=0;ot.length>P;P++)this.insert(ot[P]);return this}let w=this._build(ot.slice(),0,ot.length-1,0);if(this.data.children.length)if(this.data.height===w.height)this._splitRoot(this.data,w);else{if(w.height>this.data.height){const P=this.data;this.data=w,w=P}this._insert(w,this.data.height-w.height-1,!0)}else this.data=w;return this}insert(ot){return ot&&this._insert(ot,this.data.height-1),this}clear(){return this.data=Mw([]),this}remove(ot,w){if(!ot)return this;let P=this.data;const N=this.toBBox(ot),Q=[],_e=[];let Le,rt,on;for(;P||Q.length;){if(P||(P=Q.pop(),rt=Q[Q.length-1],Le=_e.pop(),on=!0),P.leaf){const Bs=vx(ot,P.children,w);if(Bs!==-1)return P.children.splice(Bs,1),Q.push(P),this._condense(Q),this}on||P.leaf||!vC(P,N)?rt?(Le++,P=rt.children[Le],on=!1):P=null:(Q.push(P),_e.push(Le),Le=0,rt=P,P=P.children[0])}return this}toBBox(ot){return ot}compareMinX(ot,w){return ot.minX-w.minX}compareMinY(ot,w){return ot.minY-w.minY}toJSON(){return this.data}fromJSON(ot){return this.data=ot,this}_all(ot,w){const P=[];for(;ot;)ot.leaf?w.push(...ot.children):P.push(...ot.children),ot=P.pop();return w}_build(ot,w,P,N){const Q=P-w+1;let _e,Le=this._maxEntries;if(Le>=Q)return _e=Mw(ot.slice(w,P+1)),ka(_e,this.toBBox),_e;N||(Le=Math.ceil(Q/Math.pow(Le,(N=Math.ceil(Math.log(Q)/Math.log(Le)))-1))),_e=Mw([]),_e.leaf=!1,_e.height=N;const rt=Math.ceil(Q/Le),on=rt*Math.ceil(Math.sqrt(Le));KC(ot,w,P,on,this.compareMinX);for(let Bs=w;P>=Bs;Bs+=on){const Pa=Math.min(Bs+on-1,P);KC(ot,Bs,Pa,rt,this.compareMinY);for(let uh=Bs;Pa>=uh;uh+=rt)_e.children.push(this._build(ot,uh,Math.min(uh+rt-1,Pa),N-1))}return ka(_e,this.toBBox),_e}_chooseSubtree(ot,w,P,N){for(;N.push(w),!w.leaf&&N.length-1!==P;){let Le,rt=1/0,on=1/0;for(let Bs=0;w.children.length>Bs;Bs++){const Pa=w.children[Bs],uh=Z2(Pa),zg=(Math.max((_e=Pa).maxX,(Q=ot).maxX)-Math.min(_e.minX,Q.minX))*(Math.max(_e.maxY,Q.maxY)-Math.min(_e.minY,Q.minY))-uh;on>zg?(on=zg,rt=rt>uh?uh:rt,Le=Pa):zg===on&&rt>uh&&(rt=uh,Le=Pa)}w=Le||w.children[0]}var Q,_e;return w}_insert(ot,w,P){const N=P?ot:this.toBBox(ot),Q=[],_e=this._chooseSubtree(N,this.data,w,Q);for(_e.children.push(ot),u2(_e,N);w>=0&&Q[w].children.length>this._maxEntries;)this._split(Q,w),w--;this._adjustParentBBoxes(N,Q,w)}_split(ot,w){const P=ot[w],N=P.children.length,Q=this._minEntries;this._chooseSplitAxis(P,Q,N);const _e=this._chooseSplitIndex(P,Q,N),Le=Mw(P.children.splice(_e,P.children.length-_e));Le.height=P.height,Le.leaf=P.leaf,ka(P,this.toBBox),ka(Le,this.toBBox),w?ot[w-1].children.push(Le):this._splitRoot(P,Le)}_splitRoot(ot,w){this.data=Mw([ot,w]),this.data.height=ot.height+1,this.data.leaf=!1,ka(this.data,this.toBBox)}_chooseSplitIndex(ot,w,P){let N,Q=1/0,_e=1/0;for(let Le=w;P-w>=Le;Le++){const rt=xx(ot,0,Le,this.toBBox),on=xx(ot,Le,P,this.toBBox),Bs=GC(rt,on),Pa=Z2(rt)+Z2(on);Q>Bs?(Q=Bs,N=Le,_e=_e>Pa?Pa:_e):Bs===Q&&_e>Pa&&(_e=Pa,N=Le)}return N||P-w}_chooseSplitAxis(ot,w,P){const N=ot.leaf?this.compareMinX:v2,Q=ot.leaf?this.compareMinY:U2,_e=this._allDistMargin(ot,w,P,N);this._allDistMargin(ot,w,P,Q)>_e&&ot.children.sort(N)}_allDistMargin(ot,w,P,N){ot.children.sort(N);const Q=this.toBBox,_e=xx(ot,0,w,Q),Le=xx(ot,P-w,P,Q);let rt=rC(_e)+rC(Le);for(let on=w;P-w>on;on++){const Bs=ot.children[on];u2(_e,ot.leaf?Q(Bs):Bs),rt+=rC(_e)}for(let on=P-w-1;on>=w;on--){const Bs=ot.children[on];u2(Le,ot.leaf?Q(Bs):Bs),rt+=rC(Le)}return rt}_adjustParentBBoxes(ot,w,P){for(let N=P;N>=0;N--)u2(w[N],ot)}_condense(ot){for(let w,P=ot.length-1;P>=0;P--)ot[P].children.length===0?P>0?(w=ot[P-1].children,w.splice(w.indexOf(ot[P]),1)):this.clear():ka(ot[P],this.toBBox)}}});function lS(ot,w){return w>ot?-1:ot>w?1:0}var zC=Object.freeze({__proto__:null,default:class{constructor(ot=[],w=lS){if(this.data=ot,this.length=this.data.length,this.compare=w,this.length>0)for(let P=(this.length>>1)-1;P>=0;P--)this._down(P)}push(ot){this.data.push(ot),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const ot=this.data[0],w=this.data.pop();return this.length--,this.length>0&&(this.data[0]=w,this._down(0)),ot}peek(){return this.data[0]}_up(ot){const{data:w,compare:P}=this,N=w[ot];for(;ot>0;){const Q=ot-1>>1,_e=w[Q];if(P(N,_e)>=0)break;w[ot]=_e,ot=Q}w[ot]=N}_down(ot){const{data:w,compare:P}=this,N=this.length>>1,Q=w[ot];for(;N>ot;){let _e=1+(ot<<1),Le=w[_e];const rt=_e+1;if(this.length>rt&&0>P(w[rt],Le)&&(_e=rt,Le=w[rt]),P(Le,Q)>=0)break;w[ot]=Le,ot=_e}w[ot]=Q}}}),uE=function(ot,w,P,N){var Q=ot[0],_e=ot[1],Le=!1;P===void 0&&(P=0),N===void 0&&(N=w.length);for(var rt=(N-P)/2,on=0,Bs=rt-1;rt>on;Bs=on++){var Pa=w[P+2*on+0],uh=w[P+2*on+1],zg=w[P+2*Bs+1];uh>_e!=zg>_e&&(w[P+2*Bs+0]-Pa)*(_e-uh)/(zg-uh)+Pa>Q&&(Le=!Le)}return Le},HS=function(ot,w,P,N){var Q=ot[0],_e=ot[1],Le=!1;P===void 0&&(P=0),N===void 0&&(N=w.length);for(var rt=N-P,on=0,Bs=rt-1;rt>on;Bs=on++){var Pa=w[on+P][0],uh=w[on+P][1],zg=w[Bs+P][1];uh>_e!=zg>_e&&(w[Bs+P][0]-Pa)*(_e-uh)/(zg-uh)+Pa>Q&&(Le=!Le)}return Le},$C=function(ot,w,P,N){return w.length>0&&Array.isArray(w[0])?HS(ot,w,P,N):uE(ot,w,P,N)},dE=uE;$C.nested=HS,$C.flat=dE;var T1=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof l.g!="undefined"?l.g:typeof self!="undefined"?self:{};function By(ot,w,P){return ot(P={path:w,exports:{},require:function(N,Q){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},P.exports),P.exports}function Wy(ot){if(ot.__esModule)return ot;var w=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(ot).forEach(function(P){var N=Object.getOwnPropertyDescriptor(ot,P);Object.defineProperty(w,P,N.get?N:{enumerable:!0,get:function(){return ot[P]}})}),w}var d_=By(function(ot,w){(function(P){const Q=33306690738754706e-32;function _e(Zv,Vv,i1,Kv,wv){let oy,jy,x_,dx,Ux=Vv[0],Dx=Kv[0],gw=0,Sx=0;Dx>Ux==Dx>-Ux?(oy=Ux,Ux=Vv[++gw]):(oy=Dx,Dx=Kv[++Sx]);let X2=0;if(Zv>gw&&i1>Sx)for(Dx>Ux==Dx>-Ux?(x_=oy-((jy=Ux+oy)-Ux),Ux=Vv[++gw]):(x_=oy-((jy=Dx+oy)-Dx),Dx=Kv[++Sx]),oy=jy,x_!==0&&(wv[X2++]=x_);Zv>gw&&i1>Sx;)Dx>Ux==Dx>-Ux?(x_=oy-((jy=oy+Ux)-(dx=jy-oy))+(Ux-dx),Ux=Vv[++gw]):(x_=oy-((jy=oy+Dx)-(dx=jy-oy))+(Dx-dx),Dx=Kv[++Sx]),oy=jy,x_!==0&&(wv[X2++]=x_);for(;Zv>gw;)x_=oy-((jy=oy+Ux)-(dx=jy-oy))+(Ux-dx),Ux=Vv[++gw],oy=jy,x_!==0&&(wv[X2++]=x_);for(;i1>Sx;)x_=oy-((jy=oy+Dx)-(dx=jy-oy))+(Dx-dx),Dx=Kv[++Sx],oy=jy,x_!==0&&(wv[X2++]=x_);return oy===0&&X2!==0||(wv[X2++]=oy),X2}function Le(Zv){return new Float64Array(Zv)}const rt=33306690738754716e-32,on=22204460492503146e-32,Bs=11093356479670487e-47,Pa=Le(4),uh=Le(8),zg=Le(12),M0=Le(16),z0=Le(4);P.orient2d=function(Zv,Vv,i1,Kv,wv,oy){const jy=(Vv-oy)*(i1-wv),x_=(Zv-wv)*(Kv-oy),dx=jy-x_;if(jy===0||x_===0||jy>0!=x_>0)return dx;const Ux=Math.abs(jy+x_);return rt*Ux>Math.abs(dx)?-function(Dx,gw,Sx,X2,gu,mg,s0){let T0,Cv,yy,Yy,J1,s_,rx,Z1,D2,TC,Gw,Ow,xC,EE,jE,rS,hS,m1;const V_=Dx-gu,pS=Sx-gu,OC=gw-mg,VS=X2-mg;J1=(jE=(Z1=V_-(rx=(s_=134217729*V_)-(s_-V_)))*(TC=VS-(D2=(s_=134217729*VS)-(s_-VS)))-((EE=V_*VS)-rx*D2-Z1*D2-rx*TC))-(Gw=jE-(hS=(Z1=OC-(rx=(s_=134217729*OC)-(s_-OC)))*(TC=pS-(D2=(s_=134217729*pS)-(s_-pS)))-((rS=OC*pS)-rx*D2-Z1*D2-rx*TC))),Pa[0]=jE-(Gw+J1)+(J1-hS),J1=(xC=EE-((Ow=EE+Gw)-(J1=Ow-EE))+(Gw-J1))-(Gw=xC-rS),Pa[1]=xC-(Gw+J1)+(J1-rS),J1=(m1=Ow+Gw)-Ow,Pa[2]=Ow-(m1-J1)+(Gw-J1),Pa[3]=m1;let OT=function(tS,LE){let ne=LE[0];for(let H=1;tS>H;H++)ne+=LE[H];return ne}(4,Pa),zS=on*s0;if(OT>=zS||-OT>=zS||(T0=Dx-(V_+(J1=Dx-V_))+(J1-gu),yy=Sx-(pS+(J1=Sx-pS))+(J1-gu),Cv=gw-(OC+(J1=gw-OC))+(J1-mg),Yy=X2-(VS+(J1=X2-VS))+(J1-mg),T0===0&&Cv===0&&yy===0&&Yy===0)||(zS=Bs*s0+Q*Math.abs(OT),(OT+=V_*Yy+VS*T0-(OC*yy+pS*Cv))>=zS||-OT>=zS))return OT;J1=(jE=(Z1=T0-(rx=(s_=134217729*T0)-(s_-T0)))*(TC=VS-(D2=(s_=134217729*VS)-(s_-VS)))-((EE=T0*VS)-rx*D2-Z1*D2-rx*TC))-(Gw=jE-(hS=(Z1=Cv-(rx=(s_=134217729*Cv)-(s_-Cv)))*(TC=pS-(D2=(s_=134217729*pS)-(s_-pS)))-((rS=Cv*pS)-rx*D2-Z1*D2-rx*TC))),z0[0]=jE-(Gw+J1)+(J1-hS),J1=(xC=EE-((Ow=EE+Gw)-(J1=Ow-EE))+(Gw-J1))-(Gw=xC-rS),z0[1]=xC-(Gw+J1)+(J1-rS),J1=(m1=Ow+Gw)-Ow,z0[2]=Ow-(m1-J1)+(Gw-J1),z0[3]=m1;const nx=_e(4,Pa,4,z0,uh);J1=(jE=(Z1=V_-(rx=(s_=134217729*V_)-(s_-V_)))*(TC=Yy-(D2=(s_=134217729*Yy)-(s_-Yy)))-((EE=V_*Yy)-rx*D2-Z1*D2-rx*TC))-(Gw=jE-(hS=(Z1=OC-(rx=(s_=134217729*OC)-(s_-OC)))*(TC=yy-(D2=(s_=134217729*yy)-(s_-yy)))-((rS=OC*yy)-rx*D2-Z1*D2-rx*TC))),z0[0]=jE-(Gw+J1)+(J1-hS),J1=(xC=EE-((Ow=EE+Gw)-(J1=Ow-EE))+(Gw-J1))-(Gw=xC-rS),z0[1]=xC-(Gw+J1)+(J1-rS),J1=(m1=Ow+Gw)-Ow,z0[2]=Ow-(m1-J1)+(Gw-J1),z0[3]=m1;const $w=_e(nx,uh,4,z0,zg);J1=(jE=(Z1=T0-(rx=(s_=134217729*T0)-(s_-T0)))*(TC=Yy-(D2=(s_=134217729*Yy)-(s_-Yy)))-((EE=T0*Yy)-rx*D2-Z1*D2-rx*TC))-(Gw=jE-(hS=(Z1=Cv-(rx=(s_=134217729*Cv)-(s_-Cv)))*(TC=yy-(D2=(s_=134217729*yy)-(s_-yy)))-((rS=Cv*yy)-rx*D2-Z1*D2-rx*TC))),z0[0]=jE-(Gw+J1)+(J1-hS),J1=(xC=EE-((Ow=EE+Gw)-(J1=Ow-EE))+(Gw-J1))-(Gw=xC-rS),z0[1]=xC-(Gw+J1)+(J1-rS),J1=(m1=Ow+Gw)-Ow,z0[2]=Ow-(m1-J1)+(Gw-J1),z0[3]=m1;const yS=_e($w,zg,4,z0,M0);return M0[yS-1]}(Zv,Vv,i1,Kv,wv,oy,Ux):dx},P.orient2dfast=function(Zv,Vv,i1,Kv,wv,oy){return(Vv-oy)*(i1-wv)-(Zv-wv)*(Kv-oy)},Object.defineProperty(P,"__esModule",{value:!0})})(w)}),cx=Wy(QS),Px=Wy(zC),L2=d_.orient2d;Px.default&&(Px=Px.default);var r2=Z_;function Z_(ot,w,P){w=Math.max(0,w===void 0?2:w),P=P||0;var N=function(Kv){for(var wv=Kv[0],oy=Kv[0],jy=Kv[0],x_=Kv[0],dx=0;Kv.length>dx;dx++){var Ux=Kv[dx];wv[0]>Ux[0]&&(wv=Ux),Ux[0]>jy[0]&&(jy=Ux),oy[1]>Ux[1]&&(oy=Ux),Ux[1]>x_[1]&&(x_=Ux)}var Dx=[wv,oy,jy,x_],gw=Dx.slice();for(dx=0;Kv.length>dx;dx++)$C(Kv[dx],Dx)||gw.push(Kv[dx]);return function(Sx){Sx.sort($y);for(var X2=[],gu=0;Sx.length>gu;gu++){for(;X2.length>=2&&0>=yC(X2[X2.length-2],X2[X2.length-1],Sx[gu]);)X2.pop();X2.push(Sx[gu])}for(var mg=[],s0=Sx.length-1;s0>=0;s0--){for(;mg.length>=2&&0>=yC(mg[mg.length-2],mg[mg.length-1],Sx[s0]);)mg.pop();mg.push(Sx[s0])}return mg.pop(),X2.pop(),X2.concat(mg)}(gw)}(ot),Q=new cx(16);Q.toBBox=function(Kv){return{minX:Kv[0],minY:Kv[1],maxX:Kv[0],maxY:Kv[1]}},Q.compareMinX=function(Kv,wv){return Kv[0]-wv[0]},Q.compareMinY=function(Kv,wv){return Kv[1]-wv[1]},Q.load(ot);for(var _e,Le=[],rt=0;N.length>rt;rt++){var on=N[rt];Q.remove(on),_e=rw(on,_e),Le.push(_e)}var Bs=new cx(16);for(rt=0;Le.length>rt;rt++)Bs.insert(Fw(Le[rt]));for(var Pa=w*w,uh=P*P;Le.length;){var zg=Le.shift(),M0=zg.p,z0=zg.next.p,Zv=sw(M0,z0);if(Zv>=uh){var Vv=Zv/Pa;(on=W2(Q,zg.prev.p,M0,z0,zg.next.next.p,Vv,Bs))&&Math.min(sw(on,M0),sw(on,z0))<=Vv&&(Le.push(zg),Le.push(rw(on,zg)),Q.remove(on),Bs.remove(zg),Bs.insert(Fw(zg)),Bs.insert(Fw(zg.next)))}}zg=_e;var i1=[];do i1.push(zg.p),zg=zg.next;while(zg!==_e);return i1.push(zg.p),i1}function W2(ot,w,P,N,Q,_e,Le){for(var rt=new Px([],M2),on=ot.data;on;){for(var Bs=0;on.children.length>Bs;Bs++){var Pa=on.children[Bs],uh=on.leaf?Zb(Pa,P,N):jw(P,N,Pa);_ezg.dist&&Zv>zg.dist&&bw(P,M0,Le)&&bw(N,M0,Le))return M0}(on=rt.pop())&&(on=on.node)}return null}function M2(ot,w){return ot.dist-w.dist}function jw(ot,w,P){if(I2(ot,P)||I2(w,P))return 0;var N=Kw(ot[0],ot[1],w[0],w[1],P.minX,P.minY,P.maxX,P.minY);if(N===0)return 0;var Q=Kw(ot[0],ot[1],w[0],w[1],P.minX,P.minY,P.minX,P.maxY);if(Q===0)return 0;var _e=Kw(ot[0],ot[1],w[0],w[1],P.maxX,P.minY,P.maxX,P.maxY);if(_e===0)return 0;var Le=Kw(ot[0],ot[1],w[0],w[1],P.minX,P.maxY,P.maxX,P.maxY);return Le===0?0:Math.min(N,Q,_e,Le)}function I2(ot,w){return!(w.minX>ot[0]||ot[0]>w.maxX||w.minY>ot[1]||ot[1]>w.maxY)}function bw(ot,w,P){for(var N,Q,_e,Le,rt=P.search({minX:Math.min(ot[0],w[0]),minY:Math.min(ot[1],w[1]),maxX:Math.max(ot[0],w[0]),maxY:Math.max(ot[1],w[1])}),on=0;rt.length>on;on++)if(Q=rt[on].next.p,_e=ot,(N=rt[on].p)!==(Le=w)&&Q!==_e&&yC(N,Q,_e)>0!=yC(N,Q,Le)>0&&yC(_e,Le,N)>0!=yC(_e,Le,Q)>0)return!1;return!0}function yC(ot,w,P){return L2(ot[0],ot[1],w[0],w[1],P[0],P[1])}function Fw(ot){var w=ot.p,P=ot.next.p;return ot.minX=Math.min(w[0],P[0]),ot.minY=Math.min(w[1],P[1]),ot.maxX=Math.max(w[0],P[0]),ot.maxY=Math.max(w[1],P[1]),ot}function rw(ot,w){var P={p:ot,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return w?(P.next=w.next,P.prev=w,w.next.prev=P,w.next=P):(P.prev=P,P.next=P),P}function sw(ot,w){var P=ot[0]-w[0],N=ot[1]-w[1];return P*P+N*N}function Zb(ot,w,P){var N=w[0],Q=w[1],_e=P[0]-N,Le=P[1]-Q;if(_e!==0||Le!==0){var rt=((ot[0]-N)*_e+(ot[1]-Q)*Le)/(_e*_e+Le*Le);rt>1?(N=P[0],Q=P[1]):rt>0&&(N+=_e*rt,Q+=Le*rt)}return(_e=ot[0]-N)*_e+(Le=ot[1]-Q)*Le}function Kw(ot,w,P,N,Q,_e,Le,rt){var on,Bs,Pa,uh,zg=P-ot,M0=N-w,z0=Le-Q,Zv=rt-_e,Vv=ot-Q,i1=w-_e,Kv=zg*zg+M0*M0,wv=zg*z0+M0*Zv,oy=z0*z0+Zv*Zv,jy=zg*Vv+M0*i1,x_=z0*Vv+Zv*i1,dx=Kv*oy-wv*wv,Ux=dx,Dx=dx;dx===0?(Bs=0,Ux=1,uh=x_,Dx=oy):(uh=Kv*x_-wv*jy,0>(Bs=wv*x_-oy*jy)?(Bs=0,uh=x_,Dx=oy):Bs>Ux&&(Bs=Ux,uh=x_+wv,Dx=oy)),0>uh?(uh=0,0>-jy?Bs=0:-jy>Kv?Bs=Ux:(Bs=-jy,Ux=Kv)):uh>Dx&&(uh=Dx,0>-jy+wv?Bs=0:-jy+wv>Kv?Bs=Ux:(Bs=-jy+wv,Ux=Kv));var gw=(1-(Pa=uh===0?0:uh/Dx))*Q+Pa*Le-((1-(on=Bs===0?0:Bs/Ux))*ot+on*P),Sx=(1-Pa)*_e+Pa*rt-((1-on)*w+on*N);return gw*gw+Sx*Sx}function $y(ot,w){return ot[0]===w[0]?ot[1]-w[1]:ot[0]-w[0]}function yx(ot,w,P){P===void 0&&(P={});var N=sy(ot),Q=sy(w),_e=k2(Q[1]-N[1]),Le=k2(Q[0]-N[0]),rt=k2(N[1]),on=k2(Q[1]),Bs=Math.pow(Math.sin(_e/2),2)+Math.pow(Math.sin(Le/2),2)*Math.cos(rt)*Math.cos(on);return s2(2*Math.atan2(Math.sqrt(Bs),Math.sqrt(1-Bs)),P.units)}function Dw(ot){return function(w,P){P===void 0&&(P={});var N=Number(w[0]),Q=Number(w[1]),_e=Number(w[2]),Le=Number(w[3]);if(w.length===6)throw Error("@turf/bbox-polygon does not support BBox with 6 positions");var rt=[N,Q];return mv([[rt,[_e,Q],[_e,Le],[N,Le],rt]],P.properties,{bbox:w,id:P.id})}(U1(ot))}function Bw(ot,w,P,N){N===void 0&&(N={});var Q=sy(ot),_e=k2(Q[0]),Le=k2(Q[1]),rt=k2(P),on=l2(w,N.units),Bs=Math.asin(Math.sin(Le)*Math.cos(on)+Math.cos(Le)*Math.sin(on)*Math.cos(rt));return u1([z2(_e+Math.atan2(Math.sin(rt)*Math.sin(on)*Math.cos(Le),Math.cos(on)-Math.sin(Le)*Math.sin(Bs))),z2(Bs)],N.properties)}function Ky(ot,w,P){if(P===void 0&&(P={}),P.final===!0)return function(Bs,Pa){var uh=Ky(Pa,Bs);return uh=(uh+180)%360}(ot,w);var N=sy(ot),Q=sy(w),_e=k2(N[0]),Le=k2(Q[0]),rt=k2(N[1]),on=k2(Q[1]);return z2(Math.atan2(Math.sin(Le-_e)*Math.cos(on),Math.cos(rt)*Math.sin(on)-Math.sin(rt)*Math.cos(on)*Math.cos(Le-_e)))}function Lx(ot,w){w===void 0&&(w={});var P=U1(ot);return u1([(P[0]+P[2])/2,(P[1]+P[3])/2],w.properties,w)}function X_(ot,w){w===void 0&&(w={});var P=0,N=0,Q=0;return sv(ot,function(_e){P+=_e[0],N+=_e[1],Q++},!0),u1([P/Q,N/Q],w.properties)}function e2(ot,w){switch(w===void 0&&(w={}),mx(ot)){case"Point":return u1(sy(ot),w.properties);case"Polygon":var P=[];sv(ot,function(wv){P.push(wv)});var N,Q,_e,Le,rt,on,Bs,Pa,uh=X_(ot,{properties:w.properties}),zg=uh.geometry.coordinates,M0=0,z0=0,Zv=0,Vv=P.map(function(wv){return[wv[0]-zg[0],wv[1]-zg[1]]});for(N=0;P.length-1>N;N++)Zv+=Pa=(Le=(Q=Vv[N])[0])*(Bs=(_e=Vv[N+1])[1])-(rt=_e[0])*(on=Q[1]),M0+=(Le+rt)*Pa,z0+=(on+Bs)*Pa;if(Zv===0)return uh;var i1=1/(6*(.5*Zv));return u1([zg[0]+i1*M0,zg[1]+i1*z0],w.properties);default:var Kv=function(wv,oy){oy===void 0&&(oy={}),oy.concavity=oy.concavity||1/0;var jy=[];if(sv(wv,function(dx){jy.push([dx[0],dx[1]])}),!jy.length)return null;var x_=r2(jy,oy.concavity);return x_.length>3?mv([x_]):null}(ot);return Kv?e2(Kv,{properties:w.properties}):X_(ot,{properties:w.properties})}}function Ox(ot){if(!ot)throw Error("geojson is required");var w=[];return y1(ot,function(P){(function(N,Q){var _e=[],Le=N.geometry;if(Le!==null){switch(Le.type){case"Polygon":_e=p_(Le);break;case"LineString":_e=[p_(Le)]}_e.forEach(function(rt){var on=function(Bs,Pa){var uh=[];return Bs.reduce(function(zg,M0){var z0,Zv,Vv,i1,Kv,wv,oy=Sv([zg,M0],Pa);return oy.bbox=[(Kv=(Zv=M0)[0])>(Vv=(z0=zg)[0])?Vv:Kv,(wv=Zv[1])>(i1=z0[1])?i1:wv,Vv>Kv?Vv:Kv,i1>wv?i1:wv],uh.push(oy),M0}),uh}(rt,N.properties);on.forEach(function(Bs){Bs.id=Q.length,Q.push(Bs)})})}})(P,w)}),Fv(w)}r2.default=Z_;function O2(ot,w,P){if(!P)return w.indexOf(ot);for(let N=0;w.length>N;N++)if(P(ot,w[N]))return N;return-1}function iw(ot,w){dw(ot,0,ot.children.length,w,ot)}function dw(ot,w,P,N,Q){Q||(Q=BS(null)),Q.minX=1/0,Q.minY=1/0,Q.maxX=-1/0,Q.maxY=-1/0;for(let _e=w;P>_e;_e++){const Le=ot.children[_e];Jw(Q,ot.leaf?N(Le):Le)}return Q}function Jw(ot,w){return ot.minX=Math.min(ot.minX,w.minX),ot.minY=Math.min(ot.minY,w.minY),ot.maxX=Math.max(ot.maxX,w.maxX),ot.maxY=Math.max(ot.maxY,w.maxY),ot}function DC(ot,w){return ot.minX-w.minX}function uC(ot,w){return ot.minY-w.minY}function qC(ot){return(ot.maxX-ot.minX)*(ot.maxY-ot.minY)}function Kx(ot){return ot.maxX-ot.minX+(ot.maxY-ot.minY)}function bS(ot,w){const P=Math.max(ot.minX,w.minX),N=Math.max(ot.minY,w.minY),Q=Math.min(ot.maxX,w.maxX),_e=Math.min(ot.maxY,w.maxY);return Math.max(0,Q-P)*Math.max(0,_e-N)}function Qw(ot,w){return!(ot.minX>w.minX||ot.minY>w.minY||w.maxX>ot.maxX||w.maxY>ot.maxY)}function Ew(ot,w){return!(w.minX>ot.maxX||w.minY>ot.maxY||ot.minX>w.maxX||ot.minY>w.maxY)}function BS(ot){return{children:ot,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function XS(ot,w,P,N,Q){const _e=[w,P];for(;_e.length;){if(N>=(P=_e.pop())-(w=_e.pop()))continue;const Le=w+Math.ceil((P-w)/N/2)*N;W_(ot,Le,w,P,Q),_e.push(w,Le,Le,P)}}var J2=Object.freeze({__proto__:null,default:class{constructor(ot=9){this._maxEntries=Math.max(4,ot),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(ot){let w=this.data;const P=[];if(!Ew(ot,w))return P;const N=this.toBBox,Q=[];for(;w;){for(let _e=0;w.children.length>_e;_e++){const Le=w.children[_e],rt=w.leaf?N(Le):Le;Ew(ot,rt)&&(w.leaf?P.push(Le):Qw(ot,rt)?this._all(Le,P):Q.push(Le))}w=Q.pop()}return P}collides(ot){let w=this.data;if(!Ew(ot,w))return!1;const P=[];for(;w;){for(let N=0;w.children.length>N;N++){const Q=w.children[N],_e=w.leaf?this.toBBox(Q):Q;if(Ew(ot,_e)){if(w.leaf||Qw(ot,_e))return!0;P.push(Q)}}w=P.pop()}return!1}load(ot){if(!ot||!ot.length)return this;if(this._minEntries>ot.length){for(let P=0;ot.length>P;P++)this.insert(ot[P]);return this}let w=this._build(ot.slice(),0,ot.length-1,0);if(this.data.children.length)if(this.data.height===w.height)this._splitRoot(this.data,w);else{if(w.height>this.data.height){const P=this.data;this.data=w,w=P}this._insert(w,this.data.height-w.height-1,!0)}else this.data=w;return this}insert(ot){return ot&&this._insert(ot,this.data.height-1),this}clear(){return this.data=BS([]),this}remove(ot,w){if(!ot)return this;let P=this.data;const N=this.toBBox(ot),Q=[],_e=[];let Le,rt,on;for(;P||Q.length;){if(P||(P=Q.pop(),rt=Q[Q.length-1],Le=_e.pop(),on=!0),P.leaf){const Bs=O2(ot,P.children,w);if(Bs!==-1)return P.children.splice(Bs,1),Q.push(P),this._condense(Q),this}on||P.leaf||!Qw(P,N)?rt?(Le++,P=rt.children[Le],on=!1):P=null:(Q.push(P),_e.push(Le),Le=0,rt=P,P=P.children[0])}return this}toBBox(ot){return ot}compareMinX(ot,w){return ot.minX-w.minX}compareMinY(ot,w){return ot.minY-w.minY}toJSON(){return this.data}fromJSON(ot){return this.data=ot,this}_all(ot,w){const P=[];for(;ot;)ot.leaf?w.push(...ot.children):P.push(...ot.children),ot=P.pop();return w}_build(ot,w,P,N){const Q=P-w+1;let _e,Le=this._maxEntries;if(Le>=Q)return _e=BS(ot.slice(w,P+1)),iw(_e,this.toBBox),_e;N||(Le=Math.ceil(Q/Math.pow(Le,(N=Math.ceil(Math.log(Q)/Math.log(Le)))-1))),_e=BS([]),_e.leaf=!1,_e.height=N;const rt=Math.ceil(Q/Le),on=rt*Math.ceil(Math.sqrt(Le));XS(ot,w,P,on,this.compareMinX);for(let Bs=w;P>=Bs;Bs+=on){const Pa=Math.min(Bs+on-1,P);XS(ot,Bs,Pa,rt,this.compareMinY);for(let uh=Bs;Pa>=uh;uh+=rt)_e.children.push(this._build(ot,uh,Math.min(uh+rt-1,Pa),N-1))}return iw(_e,this.toBBox),_e}_chooseSubtree(ot,w,P,N){for(;N.push(w),!w.leaf&&N.length-1!==P;){let Le,rt=1/0,on=1/0;for(let Bs=0;w.children.length>Bs;Bs++){const Pa=w.children[Bs],uh=qC(Pa),zg=(Math.max((_e=Pa).maxX,(Q=ot).maxX)-Math.min(_e.minX,Q.minX))*(Math.max(_e.maxY,Q.maxY)-Math.min(_e.minY,Q.minY))-uh;on>zg?(on=zg,rt=rt>uh?uh:rt,Le=Pa):zg===on&&rt>uh&&(rt=uh,Le=Pa)}w=Le||w.children[0]}var Q,_e;return w}_insert(ot,w,P){const N=P?ot:this.toBBox(ot),Q=[],_e=this._chooseSubtree(N,this.data,w,Q);for(_e.children.push(ot),Jw(_e,N);w>=0&&Q[w].children.length>this._maxEntries;)this._split(Q,w),w--;this._adjustParentBBoxes(N,Q,w)}_split(ot,w){const P=ot[w],N=P.children.length,Q=this._minEntries;this._chooseSplitAxis(P,Q,N);const _e=this._chooseSplitIndex(P,Q,N),Le=BS(P.children.splice(_e,P.children.length-_e));Le.height=P.height,Le.leaf=P.leaf,iw(P,this.toBBox),iw(Le,this.toBBox),w?ot[w-1].children.push(Le):this._splitRoot(P,Le)}_splitRoot(ot,w){this.data=BS([ot,w]),this.data.height=ot.height+1,this.data.leaf=!1,iw(this.data,this.toBBox)}_chooseSplitIndex(ot,w,P){let N,Q=1/0,_e=1/0;for(let Le=w;P-w>=Le;Le++){const rt=dw(ot,0,Le,this.toBBox),on=dw(ot,Le,P,this.toBBox),Bs=bS(rt,on),Pa=qC(rt)+qC(on);Q>Bs?(Q=Bs,N=Le,_e=_e>Pa?Pa:_e):Bs===Q&&_e>Pa&&(_e=Pa,N=Le)}return N||P-w}_chooseSplitAxis(ot,w,P){const N=ot.leaf?this.compareMinX:DC,Q=ot.leaf?this.compareMinY:uC,_e=this._allDistMargin(ot,w,P,N);this._allDistMargin(ot,w,P,Q)>_e&&ot.children.sort(N)}_allDistMargin(ot,w,P,N){ot.children.sort(N);const Q=this.toBBox,_e=dw(ot,0,w,Q),Le=dw(ot,P-w,P,Q);let rt=Kx(_e)+Kx(Le);for(let on=w;P-w>on;on++){const Bs=ot.children[on];Jw(_e,ot.leaf?Q(Bs):Bs),rt+=Kx(_e)}for(let on=P-w-1;on>=w;on--){const Bs=ot.children[on];Jw(Le,ot.leaf?Q(Bs):Bs),rt+=Kx(Le)}return rt}_adjustParentBBoxes(ot,w,P){for(let N=P;N>=0;N--)Jw(w[N],ot)}_condense(ot){for(let w,P=ot.length-1;P>=0;P--)ot[P].children.length===0?P>0?(w=ot[P-1].children,w.splice(w.indexOf(ot[P]),1)):this.clear():iw(ot[P],this.toBBox)}}}),_w=Wy(J2),MC=Wy(ax),ET=Wy(zy),y_=Wy(E_).default,hv=ET.featureEach,Rw=MC.featureCollection;function Dv(ot){var w=new _w(ot);return w.insert=function(P){if(P.type!=="Feature")throw Error("invalid feature");return P.bbox=P.bbox?P.bbox:y_(P),_w.prototype.insert.call(this,P)},w.load=function(P){var N=[];return Array.isArray(P)?P.forEach(function(Q){if(Q.type!=="Feature")throw Error("invalid features");Q.bbox=Q.bbox?Q.bbox:y_(Q),N.push(Q)}):hv(P,function(Q){if(Q.type!=="Feature")throw Error("invalid features");Q.bbox=Q.bbox?Q.bbox:y_(Q),N.push(Q)}),_w.prototype.load.call(this,N)},w.remove=function(P,N){if(P.type!=="Feature")throw Error("invalid feature");return P.bbox=P.bbox?P.bbox:y_(P),_w.prototype.remove.call(this,P,N)},w.clear=function(){return _w.prototype.clear.call(this)},w.search=function(P){var N=_w.prototype.search.call(this,this.toBBox(P));return Rw(N)},w.collides=function(P){return _w.prototype.collides.call(this,this.toBBox(P))},w.all=function(){var P=_w.prototype.all.call(this);return Rw(P)},w.toJSON=function(){return _w.prototype.toJSON.call(this)},w.fromJSON=function(P){return _w.prototype.fromJSON.call(this,P)},w.toBBox=function(P){var N;if(P.bbox)N=P.bbox;else if(Array.isArray(P)&&P.length===4)N=P;else if(Array.isArray(P)&&P.length===6)N=[P[0],P[1],P[3],P[4]];else if(P.type==="Feature")N=y_(P);else{if(P.type!=="FeatureCollection")throw Error("invalid geojson");N=y_(P)}return{minX:N[0],minY:N[1],maxX:N[2],maxY:N[3]}},w}var B2=Dv;function N2(ot,w){var P={},N=[];if(ot.type==="LineString"&&(ot=L_(ot)),w.type==="LineString"&&(w=L_(w)),ot.type==="Feature"&&w.type==="Feature"&&ot.geometry!==null&&w.geometry!==null&&ot.geometry.type==="LineString"&&w.geometry.type==="LineString"&&ot.geometry.coordinates.length===2&&w.geometry.coordinates.length===2){var Q=eT(ot,w);return Q&&N.push(Q),Fv(N)}var _e=B2();return _e.load(Ox(w)),Eu(Ox(ot),function(Le){Eu(_e.search(Le),function(rt){var on=eT(Le,rt);if(on){var Bs=p_(on).join(",");P[Bs]||(P[Bs]=!0,N.push(on))}})}),Fv(N)}function eT(ot,w){var P=p_(ot),N=p_(w);if(P.length!==2)throw Error(" line1 must only contain 2 coordinates");if(N.length!==2)throw Error(" line2 must only contain 2 coordinates");var Q=P[0][0],_e=P[0][1],Le=P[1][0],rt=P[1][1],on=N[0][0],Bs=N[0][1],Pa=N[1][0],uh=N[1][1],zg=(uh-Bs)*(Le-Q)-(Pa-on)*(rt-_e),M0=(Pa-on)*(_e-Bs)-(uh-Bs)*(Q-on),z0=(Le-Q)*(_e-Bs)-(rt-_e)*(Q-on);if(zg===0)return null;var Zv=M0/zg,Vv=z0/zg;return 0>Zv||Zv>1||0>Vv||Vv>1?null:u1([Q+Zv*(Le-Q),_e+Zv*(rt-_e)])}B2.default=Dv;var yT=6378137;function xT(ot){return xv(ot,function(w,P){return w+function(N){var Q,_e=0;switch(N.type){case"Polygon":return US(N.coordinates);case"MultiPolygon":for(Q=0;N.coordinates.length>Q;Q++)_e+=US(N.coordinates[Q]);return _e;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(P)},0)}function US(ot){var w=0;if(ot&&ot.length>0){w+=Math.abs(HE(ot[0]));for(var P=1;ot.length>P;P++)w-=Math.abs(HE(ot[P]))}return w}function HE(ot){var w,P,N,Q,_e,Le,rt=0,on=ot.length;if(on>2){for(Le=0;on>Le;Le++)Le===on-2?(N=on-2,Q=on-1,_e=0):Le===on-1?(N=on-1,Q=0,_e=1):(N=Le,Q=Le+1,_e=Le+2),w=ot[N],P=ot[Q],rt+=(lT(ot[_e][0])-lT(w[0]))*Math.sin(lT(P[1]));rt=rt*yT*yT/2}return rt}function lT(ot){return ot*Math.PI/180}function ME(ot,w){return w===void 0&&(w={}),V1(ot,function(P,N){var Q=N.geometry.coordinates;return P+yx(Q[0],Q[1],w)},0)}function VT(ot,w){w===void 0&&(w={});var P=m_(ot);switch(w.properties||ot.type!=="Feature"||(w.properties=ot.properties),P.type){case"Polygon":return function(N,Q){Q===void 0&&(Q={});var _e=m_(N),Le=_e.coordinates,rt=Q.properties?Q.properties:N.type==="Feature"?N.properties:{};return CE(Le,rt)}(P,w);case"MultiPolygon":return function(N,Q){Q===void 0&&(Q={});var _e=m_(N),Le=_e.coordinates,rt=Q.properties?Q.properties:N.type==="Feature"?N.properties:{},on=[];return Le.forEach(function(Bs){on.push(CE(Bs,rt))}),Fv(on)}(P,w);default:throw Error("invalid poly")}}function CE(ot,w){return ot.length>1?x1(ot,w):Sv(ot[0],w)}function DE(ot){for(var w,P,N=p_(ot),Q=0,_e=1;N.length>_e;)w=P||N[0],Q+=((P=N[_e])[0]-w[0])*(P[1]+w[1]),_e++;return Q>0}var dC=By(function(ot){var w=Object.prototype.hasOwnProperty,P="~";function N(){}function Q(on,Bs,Pa){this.fn=on,this.context=Bs,this.once=Pa||!1}function _e(on,Bs,Pa,uh,zg){if(typeof Pa!="function")throw new TypeError("The listener must be a function");var M0=new Q(Pa,uh||on,zg),z0=P?P+Bs:Bs;return on._events[z0]?on._events[z0].fn?on._events[z0]=[on._events[z0],M0]:on._events[z0].push(M0):(on._events[z0]=M0,on._eventsCount++),on}function Le(on,Bs){--on._eventsCount==0?on._events=new N:delete on._events[Bs]}function rt(){this._events=new N,this._eventsCount=0}Object.create&&(N.prototype=Object.create(null),new N().__proto__||(P=!1)),rt.prototype.eventNames=function(){var on,Bs,Pa=[];if(this._eventsCount===0)return Pa;for(Bs in on=this._events)w.call(on,Bs)&&Pa.push(P?Bs.slice(1):Bs);return Object.getOwnPropertySymbols?Pa.concat(Object.getOwnPropertySymbols(on)):Pa},rt.prototype.listeners=function(on){var Bs=this._events[P?P+on:on];if(!Bs)return[];if(Bs.fn)return[Bs.fn];for(var Pa=0,uh=Bs.length,zg=Array(uh);uh>Pa;Pa++)zg[Pa]=Bs[Pa].fn;return zg},rt.prototype.listenerCount=function(on){var Bs=this._events[P?P+on:on];return Bs?Bs.fn?1:Bs.length:0},rt.prototype.emit=function(on,Bs,Pa,uh,zg,M0){var z0=P?P+on:on;if(!this._events[z0])return!1;var Zv,Vv,i1=this._events[z0],Kv=arguments.length;if(i1.fn){switch(i1.once&&this.removeListener(on,i1.fn,void 0,!0),Kv){case 1:return i1.fn.call(i1.context),!0;case 2:return i1.fn.call(i1.context,Bs),!0;case 3:return i1.fn.call(i1.context,Bs,Pa),!0;case 4:return i1.fn.call(i1.context,Bs,Pa,uh),!0;case 5:return i1.fn.call(i1.context,Bs,Pa,uh,zg),!0;case 6:return i1.fn.call(i1.context,Bs,Pa,uh,zg,M0),!0}for(Vv=1,Zv=Array(Kv-1);Kv>Vv;Vv++)Zv[Vv-1]=arguments[Vv];i1.fn.apply(i1.context,Zv)}else{var wv,oy=i1.length;for(Vv=0;oy>Vv;Vv++)switch(i1[Vv].once&&this.removeListener(on,i1[Vv].fn,void 0,!0),Kv){case 1:i1[Vv].fn.call(i1[Vv].context);break;case 2:i1[Vv].fn.call(i1[Vv].context,Bs);break;case 3:i1[Vv].fn.call(i1[Vv].context,Bs,Pa);break;case 4:i1[Vv].fn.call(i1[Vv].context,Bs,Pa,uh);break;default:if(!Zv)for(wv=1,Zv=Array(Kv-1);Kv>wv;wv++)Zv[wv-1]=arguments[wv];i1[Vv].fn.apply(i1[Vv].context,Zv)}}return!0},rt.prototype.on=function(on,Bs,Pa){return _e(this,on,Bs,Pa,!1)},rt.prototype.once=function(on,Bs,Pa){return _e(this,on,Bs,Pa,!0)},rt.prototype.removeListener=function(on,Bs,Pa,uh){var zg=P?P+on:on;if(!this._events[zg])return this;if(!Bs)return Le(this,zg),this;var M0=this._events[zg];if(M0.fn)M0.fn!==Bs||uh&&!M0.once||Pa&&M0.context!==Pa||Le(this,zg);else{for(var z0=0,Zv=[],Vv=M0.length;Vv>z0;z0++)(M0[z0].fn!==Bs||uh&&!M0[z0].once||Pa&&M0[z0].context!==Pa)&&Zv.push(M0[z0]);Zv.length?this._events[zg]=Zv.length===1?Zv[0]:Zv:Le(this,zg)}return this},rt.prototype.removeAllListeners=function(on){var Bs;return on?this._events[Bs=P?P+on:on]&&Le(this,Bs):(this._events=new N,this._eventsCount=0),this},rt.prototype.off=rt.prototype.removeListener,rt.prototype.addListener=rt.prototype.on,rt.prefixed=P,rt.EventEmitter=rt,ot.exports=rt}),zE=function(ot){$a(P,ot);var w=Pv(P);function P(N,Q){var _e,Le=Q.style;return mu(this,P),(_e=w.call(this)).scene=void 0,_e.style=void 0,_e.layers=void 0,_e.data=[],_e.scene=N,_e.style=Le,_e.layers=_e.initLayers(),_e.layers.forEach(function(rt){N.addLayer(rt)}),Le.callback instanceof Function&&Le.callback(_e.layers),_e}return rn(P,[{key:"getLayers",value:function(){return this.layers}},{key:"show",value:function(){this.layers.forEach(function(N){N.show()})}},{key:"hide",value:function(){this.layers.forEach(function(N){N.hide()})}},{key:"setData",value:function(N){var Q=G1(N).sort(function(_e,Le){return+_e.properties.isActive-+Le.properties.isActive});this.data=Q,this.layers.forEach(function(_e){_e.setData(Fv(Q))})}},{key:"destroy",value:function(){var N=this;this.layers.forEach(function(Q){N.scene.removeLayer(Q)})}}]),P}(dC.EventEmitter),TT=function(ot){$a(P,ot);var w=Pv(P);function P(){return mu(this,P),w.apply(this,arguments)}return rn(P,[{key:"initLayers",value:function(){var N=this.style,Q=N.normal,_e=N.style,Le=N.options;return[new D.LineLayer(Le!=null?Le:{}).source(Fv([])).size(Q.size).color(Q.color).shape("line").style(_e)]}}]),P}(zE),$E=function(ot){var w=typeof ot;return ot!=null&&(w=="object"||w=="function")},CC=typeof T1=="object"&&T1&&T1.Object===Object&&T1,_T=typeof self=="object"&&self&&self.Object===Object&&self,hC=CC||_T||Function("return this")(),oE=function(){return hC.Date.now()},OE=/\s/,Ix=function(ot){for(var w=ot.length;w--&&OE.test(ot.charAt(w)););return w},GE=/^\s+/,UE=function(ot){return ot&&ot.slice(0,Ix(ot)+1).replace(GE,"")},rE=hC.Symbol,Xw=Object.prototype,oC=Xw.hasOwnProperty,sC=Xw.toString,eC=rE?rE.toStringTag:void 0,_E=function(ot){var w=oC.call(ot,eC),P=ot[eC];try{ot[eC]=void 0;var N=!0}catch(_e){}var Q=sC.call(ot);return N&&(w?ot[eC]=P:delete ot[eC]),Q},GS=Object.prototype.toString,KE=function(ot){return GS.call(ot)},Tw=rE?rE.toStringTag:void 0,JS=function(ot){return ot==null?ot===void 0?"[object Undefined]":"[object Null]":Tw&&Tw in Object(ot)?_E(ot):KE(ot)},eS=function(ot){return ot!=null&&typeof ot=="object"},uS=function(ot){return typeof ot=="symbol"||eS(ot)&&JS(ot)=="[object Symbol]"},YS=/^[-+]0x[0-9a-f]+$/i,kw=/^0b[01]+$/i,Q2=/^0o[0-7]+$/i,NC=parseInt,FC=function(ot){if(typeof ot=="number")return ot;if(uS(ot))return NaN;if($E(ot)){var w=typeof ot.valueOf=="function"?ot.valueOf():ot;ot=$E(w)?w+"":w}if(typeof ot!="string")return ot===0?ot:+ot;ot=UE(ot);var P=kw.test(ot);return P||Q2.test(ot)?NC(ot.slice(2),P?2:8):YS.test(ot)?NaN:+ot},t1=Math.max,j=Math.min,Y=function(ot,w,P){var N,Q,_e,Le,rt,on,Bs=0,Pa=!1,uh=!1,zg=!0;if(typeof ot!="function")throw new TypeError("Expected a function");function M0(Kv){var wv=N,oy=Q;return N=Q=void 0,Bs=Kv,Le=ot.apply(oy,wv)}function z0(Kv){var wv=Kv-on;return on===void 0||wv>=w||0>wv||uh&&Kv-Bs>=_e}function Zv(){var Kv=oE();if(z0(Kv))return Vv(Kv);rt=setTimeout(Zv,function(wv){var oy=w-(wv-on);return uh?j(oy,_e-(wv-Bs)):oy}(Kv))}function Vv(Kv){return rt=void 0,zg&&N?M0(Kv):(N=Q=void 0,Le)}function i1(){var Kv=oE(),wv=z0(Kv);if(N=arguments,Q=this,on=Kv,wv){if(rt===void 0)return function(oy){return Bs=oy,rt=setTimeout(Zv,w),Pa?M0(oy):Le}(on);if(uh)return clearTimeout(rt),rt=setTimeout(Zv,w),M0(on)}return rt===void 0&&(rt=setTimeout(Zv,w)),Le}return w=FC(w)||0,$E(P)&&(Pa=!!P.leading,_e=(uh="maxWait"in P)?t1(FC(P.maxWait)||0,w):_e,zg="trailing"in P?!!P.trailing:zg),i1.cancel=function(){rt!==void 0&&clearTimeout(rt),Bs=0,N=on=Q=rt=void 0},i1.flush=function(){return rt===void 0?Le:Vv(oE())},i1},Te=function(ot){$a(P,ot);var w=Pv(P);function P(){var N;mu(this,P);for(var Q=arguments.length,_e=Array(Q),Le=0;Q>Le;Le++)_e[Le]=arguments[Le];return(N=w.call.apply(w,[this].concat(_e))).onMouseMove=function(rt){N.emit(u.RenderEvent.Mousemove,rt)},N.onMouseOut=function(rt){N.emit(u.RenderEvent.Mouseout,rt)},N.onMouseDown=function(rt){N.emit(u.RenderEvent.Dragstart,rt)},N.onDragging=function(rt){N.emit(u.RenderEvent.Dragging,rt)},N.onDragEnd=Y(function(rt){N.emit(u.RenderEvent.Dragend,rt)},0),N.onUnClick=function(rt){N.emit(u.RenderEvent.UnClick,rt)},N.enableHover=function(){var rt,on;N.disableHover(),(rt=N.layers[0])===null||rt===void 0||rt.on(u.LayerEvent.Mousemove,N.onMouseMove),(on=N.layers[0])===null||on===void 0||on.on(u.LayerEvent.Mouseout,N.onMouseOut)},N.disableHover=function(){var rt,on;(rt=N.layers[0])===null||rt===void 0||rt.off(u.LayerEvent.Mousemove,N.onMouseMove),(on=N.layers[0])===null||on===void 0||on.off(u.LayerEvent.Mouseout,N.onMouseOut)},N}return rn(P,[{key:"initLayers",value:function(){var N=this.style,Q=N.normal,_e=N.hover,Le=N.active,rt=N.style,on=N.options;return[new D.LineLayer(on!=null?on:{}).source(Fv([])).size("isHover*isActive",function(Bs,Pa){return Pa?Le.size:Bs?_e.size:Q.size}).color("isHover*isActive",function(Bs,Pa){return Pa?Le.color:Bs?_e.color:Q.color}).shape("line").style(rt)]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(u.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(u.SceneEvent.Dragging,this.onDragging),this.scene.on(u.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(u.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(u.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(u.SceneEvent.Dragging,this.onDragging),this.scene.off(u.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(u.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(u.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(u.LayerEvent.UnClick,this.onUnClick)}}]),P}(zE),ze=function(ot){$a(P,ot);var w=Pv(P);function P(){var N;mu(this,P);for(var Q=arguments.length,_e=Array(Q),Le=0;Q>Le;Le++)_e[Le]=arguments[Le];return(N=w.call.apply(w,[this].concat(_e))).onMouseMove=function(rt){N.emit(u.RenderEvent.Mousemove,rt)},N.onMouseOut=function(rt){N.emit(u.RenderEvent.Mouseout,rt)},N.onMouseDown=function(rt){N.emit(u.RenderEvent.Click,rt)},N}return rn(P,[{key:"initLayers",value:function(){var N=this.style,Q=N.normal,_e=N.style,Le=_e===void 0?{}:_e,rt=N.options,on=Q.shape,Bs=Q.size,Pa=Q.color;return[new D.PointLayer(rt!=null?rt:{}).source(Fv([])).size(Bs).color(Pa).shape(on).style(Le)]}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(u.LayerEvent.Mousedown,this.onMouseDown)}},{key:"disableClick",value:function(){this.layers[0].off(u.LayerEvent.Mousedown,this.onMouseDown)}},{key:"enableHover",value:function(){var N,Q;this.disableHover(),(N=this.layers[0])===null||N===void 0||N.on(u.LayerEvent.Mousemove,this.onMouseMove),(Q=this.layers[0])===null||Q===void 0||Q.on(u.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var N,Q;(N=this.layers[0])===null||N===void 0||N.off(u.LayerEvent.Mousemove,this.onMouseMove),(Q=this.layers[0])===null||Q===void 0||Q.off(u.LayerEvent.Mouseout,this.onMouseOut)}}]),P}(zE),Pn=function(ot){$a(P,ot);var w=Pv(P);function P(){var N;mu(this,P);for(var Q=arguments.length,_e=Array(Q),Le=0;Q>Le;Le++)_e[Le]=arguments[Le];return(N=w.call.apply(w,[this].concat(_e))).onCreate=function(rt){N.emit(u.RenderEvent.UnClick,rt)},N.onMouseMove=function(rt){N.emit(u.RenderEvent.Mousemove,rt)},N.onMouseOut=function(rt){N.emit(u.RenderEvent.Mouseout,rt)},N.onMouseDown=function(rt){N.emit(u.RenderEvent.Dragstart,rt)},N.onDragging=function(rt){N.emit(u.RenderEvent.Dragging,rt)},N.onDragEnd=Y(function(rt){N.emit(u.RenderEvent.Dragend,rt)},0),N.onClick=function(rt){N.emit(u.RenderEvent.Click,rt)},N.onContextmenu=function(rt){N.emit(u.RenderEvent.Contextmenu,rt)},N}return rn(P,[{key:"initLayers",value:function(){var N=this.style,Q=N.normal,_e=N.hover,Le=N.active,rt=N.style,on=rt===void 0?{}:rt,Bs=N.options;return[new D.PointLayer(Bs!=null?Bs:{}).source(Fv([])).size("isHover*isActive",function(Pa,uh){return uh?Le.size:Pa?_e.size:Q.size}).color("isHover*isActive",function(Pa,uh){return uh?Le.color:Pa?_e.color:Q.color}).shape("isHover*isActive",function(Pa,uh){return uh?Le.shape:Pa?_e.shape:Q.shape}).style(on)]}},{key:"enableCreate",value:function(){this.disableCreate(),this.layers[0].on(u.LayerEvent.UnClick,this.onCreate)}},{key:"disableCreate",value:function(){this.layers[0].off(u.LayerEvent.UnClick,this.onCreate)}},{key:"enableHover",value:function(){var N,Q;this.disableHover(),(N=this.layers[0])===null||N===void 0||N.on(u.LayerEvent.Mousemove,this.onMouseMove),(Q=this.layers[0])===null||Q===void 0||Q.on(u.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var N,Q;(N=this.layers[0])===null||N===void 0||N.off(u.LayerEvent.Mousemove,this.onMouseMove),(Q=this.layers[0])===null||Q===void 0||Q.off(u.LayerEvent.Mouseout,this.onMouseOut)}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(u.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(u.SceneEvent.Dragging,this.onDragging),this.scene.on(u.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(u.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(u.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(u.SceneEvent.Dragging,this.onDragging),this.scene.off(u.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(u.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(u.LayerEvent.Click,this.onClick)}},{key:"disableClick",value:function(){this.layers[0].off(u.LayerEvent.Click,this.onClick)}},{key:"enableContextMenu",value:function(){this.disableContextMenu(),this.layers[0].on(u.LayerEvent.Contextmenu,this.onContextmenu)}},{key:"disableContextMenu",value:function(){this.layers[0].off(u.LayerEvent.Contextmenu,this.onContextmenu)}}]),P}(zE),za=function(ot){$a(P,ot);var w=Pv(P);function P(){var N;mu(this,P);for(var Q=arguments.length,_e=Array(Q),Le=0;Q>Le;Le++)_e[Le]=arguments[Le];return(N=w.call.apply(w,[this].concat(_e))).onMouseMove=function(rt){N.emit(u.RenderEvent.Mousemove,rt)},N.onMouseOut=function(rt){N.emit(u.RenderEvent.Mouseout,rt)},N.onMouseDown=function(rt){N.emit(u.RenderEvent.Dragstart,rt)},N.onDragging=function(rt){N.emit(u.RenderEvent.Dragging,rt)},N.onDragEnd=Y(function(rt){N.emit(u.RenderEvent.Dragend,rt)},0),N.onUnClick=function(rt){N.emit(u.RenderEvent.UnClick,rt)},N.enableHover=function(){var rt,on;N.disableHover(),(rt=N.layers[0])===null||rt===void 0||rt.on(u.LayerEvent.Mousemove,N.onMouseMove),(on=N.layers[0])===null||on===void 0||on.on(u.LayerEvent.Mouseout,N.onMouseOut)},N.disableHover=function(){var rt,on;(rt=N.layers[0])===null||rt===void 0||rt.off(u.LayerEvent.Mousemove,N.onMouseMove),(on=N.layers[0])===null||on===void 0||on.off(u.LayerEvent.Mouseout,N.onMouseOut)},N}return rn(P,[{key:"initLayers",value:function(){var N=this.style,Q=N.normal,_e=N.hover,Le=N.active,rt=N.style,on=N.options,Bs=new D.PolygonLayer(on!=null?on:{});return Bs.source(Fv([])).color("isHover*isActive",function(Pa,uh){return uh?Le.color:Pa?_e.color:Q.color}).style(rt),[Bs]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(u.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(u.SceneEvent.Dragging,this.onDragging),this.scene.on(u.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(u.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(u.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(u.SceneEvent.Dragging,this.onDragging),this.scene.off(u.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(u.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(u.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(u.LayerEvent.UnClick,this.onUnClick)}}]),P}(zE),og=function(ot){$a(P,ot);var w=Pv(P);function P(N){var Q;return mu(this,P),(Q=w.call(this)).scene=void 0,Q.previousClick=void 0,Q.onDblClick=function(_e){var Le,rt,on=(Le=(rt=_e.pixel)!==null&&rt!==void 0?rt:_e.point)!==null&&Le!==void 0?Le:{},Bs=on.x,Pa=Bs===void 0?0:Bs,uh=on.y,zg=uh===void 0?0:uh,M0=Date.now();if(Q.previousClick){var z0=Q.previousClick,Zv=z0.y;300>M0-z0.time&&5>Math.abs(Pa-z0.x)&&5>Math.abs(zg-Zv)&&Q.emit(u.RenderEvent.DblClick,_e)}Q.previousClick={x:Pa,y:zg,time:M0}},Q.onMouseMove=function(_e){Q.emit(u.RenderEvent.Mousemove,_e)},Q.onMouseDown=function(_e){Q.emit(u.RenderEvent.Dragstart,_e)},Q.onDragging=function(_e){Q.emit(u.RenderEvent.Dragging,_e)},Q.onDragEnd=Y(function(_e){Q.emit(u.RenderEvent.Dragend,_e)},0),Q.scene=N,Q}return rn(P,[{key:"enableDrag",value:function(){this.disableDrag(),this.scene.on(u.SceneEvent.Mousedown,this.onMouseDown),this.scene.on(u.SceneEvent.Dragging,this.onDragging),this.scene.on(u.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(u.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.scene.off(u.SceneEvent.Mousedown,this.onMouseDown),this.scene.off(u.SceneEvent.Dragging,this.onDragging),this.scene.off(u.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(u.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableMouseMove",value:function(){this.disableMouseMove(),this.scene.on(u.SceneEvent.Mousemove,this.onMouseMove)}},{key:"disableMouseMove",value:function(){this.scene.off(u.SceneEvent.Mousemove,this.onMouseMove)}},{key:"enableDblClick",value:function(){this.disableDblClick(),this.scene.on(u.SceneEvent.Mousedown,this.onDblClick)}},{key:"disableDblClick",value:function(){this.scene.off(u.SceneEvent.Mousedown,this.onDblClick)}}]),P}(dC),Qe=function(ot){$a(P,ot);var w=Pv(P);function P(){return mu(this,P),w.apply(this,arguments)}return rn(P,[{key:"initLayers",value:function(){var N=this.style,Q=N.normal,_e=N.active,Le=N.style,rt=Le===void 0?{}:Le,on=N.options;return[new D.PointLayer(on!=null?on:{}).source(Fv([])).size("isActive",function(Bs){return Bs?_e.size:Q.size}).color("isActive",function(Bs){return Bs?_e.color:Q.color}).shape("text","text").style(rt)]}}]),P}(zE),z={point:Pn,line:Te,dashLine:TT,midPoint:ze,text:Qe,polygon:za},we="#1990FF",Je="#ED9D48",yt={blend:"normal",pickingBuffer:5},er={color:we,shape:"circle",size:6},Gs={color:Je,shape:"circle",size:6},Sa={shape:"circle",size:6,color:Je},xu={options:yt,normal:er,hover:No(No({},er),{},{size:8}),active:No(No({},er),{},{size:8,color:Je}),style:{stroke:"#ffffff",strokeWidth:2}},Wg={options:yt,normal:Gs,hover:No(No({},Gs),{},{size:8}),active:No(No({},Gs),{},{size:8}),style:{stroke:"#ffffff",strokeWidth:2}},re={color:we,size:12},pe={point:Wg,line:{options:yt,normal:{color:we,size:2},hover:{color:we,size:2},active:{color:Je,size:2},style:{}},polygon:{options:yt,normal:{color:we},hover:{color:we},active:{color:Je},style:{opacity:.15}},midPoint:{options:yt,normal:Sa},dashLine:{options:yt,normal:{color:Je,size:2},style:{lineType:"dash",dashArray:[6,6]}},text:{options:yt,normal:re,active:No(No({},re),{},{color:Je}),style:{fontWeight:"800",textOffset:[0,re.size+6],textAllowOverlap:!0,stroke:"#ffffff",strokeWidth:2}}},ge=function(ot,w){return ot===w||ot!=ot&&w!=w},Ie=function(ot,w){for(var P=ot.length;P--;)if(ge(ot[P][0],w))return P;return-1},Rt=Array.prototype.splice,Xr=function(ot){var w=this.__data__,P=Ie(w,ot);return P>=0&&(P==w.length-1?w.pop():Rt.call(w,P,1),--this.size,!0)},zo=function(ot){var w=this.__data__,P=Ie(w,ot);return 0>P?void 0:w[P][1]},Va=function(ot){return Ie(this.__data__,ot)>-1},kg=function(ot,w){var P=this.__data__,N=Ie(P,ot);return 0>N?(++this.size,P.push([ot,w])):P[N][1]=w,this};function ou(ot){var w=-1,P=ot==null?0:ot.length;for(this.clear();++wN.length)return N.push([ot,w]),this.size=++P.size,this;P=this.__data__=new Aw(N)}return P.set(ot,w),this.size=P.size,this};function gC(ot){var w=this.__data__=new D0(ot);this.size=w.size}gC.prototype.clear=Z0,gC.prototype.delete=lv,gC.prototype.get=Xv,gC.prototype.has=d1,gC.prototype.set=xw;var A2=gC,UC=function(ot,w){for(var P=-1,N=ot==null?0:ot.length;++P-1&&ot%1==0&&w>ot},pA=function(ot){return typeof ot=="number"&&ot>-1&&ot%1==0&&9007199254740991>=ot},iE={};iE["[object Float32Array]"]=iE["[object Float64Array]"]=iE["[object Int8Array]"]=iE["[object Int16Array]"]=iE["[object Int32Array]"]=iE["[object Uint8Array]"]=iE["[object Uint8ClampedArray]"]=iE["[object Uint16Array]"]=iE["[object Uint32Array]"]=!0,iE["[object Arguments]"]=iE["[object Array]"]=iE["[object ArrayBuffer]"]=iE["[object Boolean]"]=iE["[object DataView]"]=iE["[object Date]"]=iE["[object Error]"]=iE["[object Function]"]=iE["[object Map]"]=iE["[object Number]"]=iE["[object Object]"]=iE["[object RegExp]"]=iE["[object Set]"]=iE["[object String]"]=iE["[object WeakMap]"]=!1;var jC=function(ot){return eS(ot)&&pA(ot.length)&&!!iE[JS(ot)]},E3=function(ot){return function(w){return ot(w)}},NA=By(function(ot,w){var P=w&&!w.nodeType&&w,N=P&&ot&&!ot.nodeType&&ot,Q=N&&N.exports===P&&CC.process,_e=function(){try{var Le=N&&N.require&&N.require("util").types;return Le||Q&&Q.binding&&Q.binding("util")}catch(rt){}}();ot.exports=_e}),u3=NA&&NA.isTypedArray,gA=u3?E3(u3):jC,T3=Object.prototype.hasOwnProperty,x3=function(ot,w){var P=cE(ot),N=!P&&IT(ot),Q=!P&&!N&&VC(ot),_e=!P&&!N&&!Q&&gA(ot),Le=P||N||Q||_e,rt=Le?fA(ot.length,String):[],on=rt.length;for(var Bs in ot)!w&&!T3.call(ot,Bs)||Le&&(Bs=="length"||Q&&(Bs=="offset"||Bs=="parent")||_e&&(Bs=="buffer"||Bs=="byteLength"||Bs=="byteOffset")||UT(Bs,on))||rt.push(Bs);return rt},jA=Object.prototype,bA=function(ot){var w=ot&&ot.constructor;return ot===(typeof w=="function"&&w.prototype||jA)},MA=function(ot,w){return function(P){return ot(w(P))}},B3=MA(Object.keys,Object),A3=Object.prototype.hasOwnProperty,nA=function(ot){if(!bA(ot))return B3(ot);var w=[];for(var P in Object(ot))A3.call(ot,P)&&P!="constructor"&&w.push(P);return w},BT=function(ot){return ot!=null&&pA(ot.length)&&!Yv(ot)},t3=function(ot){return BT(ot)?x3(ot):nA(ot)},GT=function(ot,w){return ot&&XE(w,t3(w),ot)},eD=function(ot){var w=[];if(ot!=null)for(var P in Object(ot))w.push(P);return w},bE=Object.prototype.hasOwnProperty,QE=function(ot){if(!$E(ot))return eD(ot);var w=bA(ot),P=[];for(var N in ot)(N!="constructor"||!w&&bE.call(ot,N))&&P.push(N);return P},AS=function(ot){return BT(ot)?x3(ot,!0):QE(ot)},H3=function(ot,w){return ot&&XE(w,AS(w),ot)},G3=By(function(ot,w){var P=w&&!w.nodeType&&w,N=P&&ot&&!ot.nodeType&&ot,Q=N&&N.exports===P?hC.Buffer:void 0,_e=Q?Q.allocUnsafe:void 0;ot.exports=function(Le,rt){if(rt)return Le.slice();var on=Le.length,Bs=_e?_e(on):new Le.constructor(on);return Le.copy(Bs),Bs}}),WA=function(ot,w){var P=-1,N=ot.length;for(w||(w=Array(N));++Prt))return!1;var Bs=_e.get(ot),Pa=_e.get(w);if(Bs&&Pa)return Bs==w&&Pa==ot;var uh=-1,zg=!0,M0=2&P?new ry:void 0;for(_e.set(ot,w),_e.set(w,ot);++uh0){if(++w>=800)return arguments[0]}else w=0;return ot.apply(void 0,arguments)}},Yx=lx(cS?function(ot,w){return cS(ot,"toString",{configurable:!0,enumerable:!1,value:gy(w),writable:!0})}:D_),Ny=function(ot,w){return Yx(S1(ot,w,D_),ot+"")},V2=function(ot,w,P){if(!$E(P))return!1;var N=typeof w;return!!(N=="number"?BT(P)&&UT(w,P.length):N=="string"&&w in P)&&ge(P[w],ot)},z_=function(ot){return Ny(function(w,P){var N=-1,Q=P.length,_e=Q>1?P[Q-1]:void 0,Le=Q>2?P[2]:void 0;for(_e=ot.length>3&&typeof _e=="function"?(Q--,_e):void 0,Le&&V2(P[0],P[1],Le)&&(_e=3>Q?void 0:_e,Q=1),w=Object(w);++N":".","?":"/","|":"\\"},on={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},Bs=1;20>Bs;++Bs)_e[111+Bs]="f"+Bs;for(Bs=0;9>=Bs;++Bs)_e[Bs+96]=""+Bs;Vv.prototype.bind=function(i1,Kv,wv){var oy=this;return oy._bindMultiple.call(oy,i1=i1 instanceof Array?i1:[i1],Kv,wv),oy},Vv.prototype.unbind=function(i1,Kv){return this.bind.call(this,i1,function(){},Kv)},Vv.prototype.trigger=function(i1,Kv){var wv=this;return wv._directMap[i1+":"+Kv]&&wv._directMap[i1+":"+Kv]({},i1),wv},Vv.prototype.reset=function(){var i1=this;return i1._callbacks={},i1._directMap={},i1},Vv.prototype.stopCallback=function(i1,Kv){if((" "+Kv.className+" ").indexOf(" mousetrap ")>-1||Zv(Kv,this.target))return!1;if("composedPath"in i1&&typeof i1.composedPath=="function"){var wv=i1.composedPath()[0];wv!==i1.target&&(Kv=wv)}return Kv.tagName=="INPUT"||Kv.tagName=="SELECT"||Kv.tagName=="TEXTAREA"||Kv.isContentEditable},Vv.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},Vv.addKeycodes=function(i1){for(var Kv in i1)i1.hasOwnProperty(Kv)&&(_e[Kv]=i1[Kv]);Q=null},Vv.init=function(){var i1=Vv(P);for(var Kv in i1)Kv.charAt(0)!=="_"&&(Vv[Kv]=function(wv){return function(){return i1[wv].apply(i1,arguments)}}(Kv))},Vv.init(),w.Mousetrap=Vv,ot.exports&&(ot.exports=Vv)}function Pa(i1,Kv,wv){i1.addEventListener?i1.addEventListener(Kv,wv,!1):i1.attachEvent("on"+Kv,wv)}function uh(i1){if(i1.type=="keypress"){var Kv=String.fromCharCode(i1.which);return i1.shiftKey||(Kv=Kv.toLowerCase()),Kv}return _e[i1.which]?_e[i1.which]:Le[i1.which]?Le[i1.which]:String.fromCharCode(i1.which).toLowerCase()}function zg(i1){return i1=="shift"||i1=="ctrl"||i1=="alt"||i1=="meta"}function M0(i1,Kv,wv){return wv||(wv=function(){if(!Q)for(var oy in Q={},_e)oy>95&&112>oy||_e.hasOwnProperty(oy)&&(Q[_e[oy]]=oy);return Q}()[i1]?"keydown":"keypress"),wv=="keypress"&&Kv.length&&(wv="keydown"),wv}function z0(i1,Kv){var wv,oy,jy,x_=[];for(wv=function(dx){return dx==="+"?["+"]:(dx=dx.replace(/\+{2}/g,"+plus")).split("+")}(i1),jy=0;wv.length>jy;++jy)on[oy=wv[jy]]&&(oy=on[oy]),Kv&&Kv!="keypress"&&rt[oy]&&(oy=rt[oy],x_.push("shift")),zg(oy)&&x_.push(oy);return{key:oy,modifiers:x_,action:Kv=M0(oy,x_,Kv)}}function Zv(i1,Kv){return i1!==null&&i1!==P&&(i1===Kv||Zv(i1.parentNode,Kv))}function Vv(i1){var Kv=this;if(i1=i1||P,!(Kv instanceof Vv))return new Vv(i1);Kv.target=i1,Kv._callbacks={},Kv._directMap={};var wv,oy={},jy=!1,x_=!1,dx=!1;function Ux(mg){mg=mg||{};var s0,T0=!1;for(s0 in oy)mg[s0]?T0=!0:oy[s0]=0;T0||(dx=!1)}function Dx(mg,s0,T0,Cv,yy,Yy){var J1,s_,rx,Z1=[],D2=T0.type;if(!Kv._callbacks[mg])return[];for(D2=="keyup"&&zg(mg)&&(s0=[mg]),J1=0;Kv._callbacks[mg].length>J1;++J1)s_=Kv._callbacks[mg][J1],(Cv||!s_.seq||oy[s_.seq]==s_.level)&&D2==s_.action&&(D2=="keypress"&&!T0.metaKey&&!T0.ctrlKey||(rx=s_.modifiers,s0.sort().join(",")===rx.sort().join(",")))&&((!Cv&&s_.combo==yy||Cv&&s_.seq==Cv&&s_.level==Yy)&&Kv._callbacks[mg].splice(J1,1),Z1.push(s_));return Z1}function gw(mg,s0,T0,Cv){Kv.stopCallback(s0,s0.target||s0.srcElement,T0,Cv)||mg(s0,T0)===!1&&(function(yy){yy.preventDefault?yy.preventDefault():yy.returnValue=!1}(s0),function(yy){yy.stopPropagation?yy.stopPropagation():yy.cancelBubble=!0}(s0))}function Sx(mg){typeof mg.which!="number"&&(mg.which=mg.keyCode);var s0=uh(mg);s0&&(mg.type!="keyup"||jy!==s0?Kv.handleKey(s0,function(T0){var Cv=[];return T0.shiftKey&&Cv.push("shift"),T0.altKey&&Cv.push("alt"),T0.ctrlKey&&Cv.push("ctrl"),T0.metaKey&&Cv.push("meta"),Cv}(mg),mg):jy=!1)}function X2(mg,s0,T0,Cv){function yy(rx){return function(){dx=rx,++oy[mg],clearTimeout(wv),wv=setTimeout(Ux,1e3)}}function Yy(rx){gw(T0,rx,mg),Cv!=="keyup"&&(jy=uh(rx)),setTimeout(Ux,10)}oy[mg]=0;for(var J1=0;s0.length>J1;++J1){var s_=J1+1===s0.length?Yy:yy(Cv||z0(s0[J1+1]).action);gu(s0[J1],s_,Cv,mg,J1)}}function gu(mg,s0,T0,Cv,yy){Kv._directMap[mg+":"+T0]=s0;var Yy,J1=(mg=mg.replace(/\s+/g," ")).split(" ");J1.length>1?X2(mg,J1,s0,T0):(Yy=z0(mg,T0),Kv._callbacks[Yy.key]=Kv._callbacks[Yy.key]||[],Dx(Yy.key,Yy.modifiers,{type:Yy.action},Cv,mg,yy),Kv._callbacks[Yy.key][Cv?"unshift":"push"]({callback:s0,modifiers:Yy.modifiers,action:Yy.action,seq:Cv,level:yy,combo:mg}))}Kv._handleKey=function(mg,s0,T0){var Cv,yy=Dx(mg,s0,T0),Yy={},J1=0,s_=!1;for(Cv=0;yy.length>Cv;++Cv)yy[Cv].seq&&(J1=Math.max(J1,yy[Cv].level));for(Cv=0;yy.length>Cv;++Cv)if(yy[Cv].seq){if(yy[Cv].level!=J1)continue;s_=!0,Yy[yy[Cv].seq]=1,gw(yy[Cv].callback,T0,yy[Cv].combo,yy[Cv].seq)}else s_||gw(yy[Cv].callback,T0,yy[Cv].combo);var rx=T0.type=="keypress"&&x_;T0.type!=dx||zg(mg)||rx||Ux(Yy),x_=s_&&T0.type=="keydown"},Kv._bindMultiple=function(mg,s0,T0){for(var Cv=0;mg.length>Cv;++Cv)gu(mg[Cv],s0,T0)},Pa(i1,"keypress",Sx),Pa(i1,"keydown",Sx),Pa(i1,"keyup",Sx)}})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)}),nw,P2=function(ot){return ot&&ot.length?ot[0]:void 0},M_=(nw=1,function(ot){return"".concat(ot,"-").concat(nw++)}),mC=function(ot,w){var P,N;return!(!ot||!w||((P=ot.properties)===null||P===void 0?void 0:P.id)!==((N=w.properties)===null||N===void 0?void 0:N.id))},sS=function(ot){var w=ot.target,P=ot.targetHandler,N=ot.otherHandler;return ot.data.map(function(Q,_e){var Le,rt=mC(Q,w)?P:N;return(Le=rt==null?void 0:rt(Q,_e))!==null&&Le!==void 0?Le:Q})},pw=function(){return{id:M_("point"),isHover:!1,isActive:!1,isDrag:!1,createTime:Date.now()}},_C=function(){return{id:M_("line"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},Pw=function(){return{id:M_("polygon"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},aS=function(ot){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return u1(ot,No(No({},pw()),w))},qv=function(ot){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:No(No({},_C()),{},{nodes:ot},w),geometry:{type:"LineString",coordinates:Bg(Fv(ot))}}},v_=function(ot){return Sv(ot,{id:M_("dashLine")})},T2=function(ot){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:No(No({},Pw()),{},{nodes:ot},w),geometry:{type:"Polygon",coordinates:[Bg(Fv([].concat(G1(ot),[P2(ot)])))]}}},Ww=function(ot){return function(w,P,N){N===void 0&&(N={});for(var Q=m_(w).coordinates,_e=0,Le=0;Q.length>Le&&(_e>P||Le!==Q.length-1);Le++){if(_e>=P){var rt=P-_e;if(rt){var on=Ky(Q[Le],Q[Le-1])-180;return Bw(Q[Le],rt,on,N)}return u1(Q[Le])}_e+=yx(Q[Le],Q[Le+1],N)}return u1(Q[Q.length-1])}(ot,ME(ot,{units:"meters"})/2,{units:"meters"})},JC=function(ot,w){var P=w.format,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Q=[];if(w.showTotalDistance){var _e=Ww(ot),Le=ME(ot,{units:"meters"}),rt=Bg(ot).map(function(z0){return u1(z0)});_e.properties=No({id:M_("text"),isActive:!1,meters:Le,text:P(Le,rt),type:"totalDistance"},N),Q.push(_e)}else for(var on=ot.geometry.coordinates,Bs=0;on.length-1>Bs;Bs++){var Pa=u1(on[Bs]),uh=u1(on[Bs+1]),zg=yx(Pa,uh,{units:"meters"}),M0=Lx(Fv([Pa,uh]));M0.properties=No({id:M_("text"),isActive:!1,meters:zg,text:P(zg,[Pa,uh]),type:"distance"},N),Q.push(M0)}return Q},YE=function(ot,w){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},N=w.format,Q=xT(ot);return e2(ot,{properties:No({meters:Q,text:N(Q,ot),type:"area",isActive:!1},P)})},hy=function(ot){var w,P,N,Q,_e,Le,rt=ot.getContainer();return(w=(P=(N=(Q=(_e=(Le=rt==null?void 0:rt.querySelector(".l7-marker-container"))!==null&&Le!==void 0?Le:rt==null?void 0:rt.querySelector(".BMap_mask"))!==null&&_e!==void 0?_e:ot.getMapCanvasContainer())!==null&&Q!==void 0?Q:rt==null?void 0:rt.querySelector(".l7-scene"))!==null&&N!==void 0?N:rt==null?void 0:rt.querySelector(".l7-control-container"))!==null&&P!==void 0?P:rt==null?void 0:rt.querySelector(".l7-marker-container2"))!==null&&w!==void 0?w:null},ct=function(ot){return ot.lngLat||ot.lnglat},gt=function(ot){var w=ct(ot);return[w.lng,w.lat]},xn=function(ot){return[ot.lng,ot.lat]},Ea=function(ot){for(var w=Number.MAX_SAFE_INTEGER,P=0,N=ot.length,Q=0;N>Q;Q++)w>ot[Q]&&(w=ot[Q],P=Q);return P},Cg=function(ot,w){var P=[],N=[];return ot.forEach(function(Q){Ht(Q,w)?N.length&&(P.push(N),N=[]):N.push(Q)}),N.length&&P.push(N),P},Td=function(ot,w,P){var N=[],Q=[],_e=[];return N=ot==="allDrawData"?Ty.instances.map(function(Le){return Le.getData()}).flat():ot==="drawData"?w.getData():ot instanceof Function?ot(P):ot,N.length&&(Q=N.map(function(Le){var rt,on=(rt=Le.properties)!==null&&rt!==void 0?rt:{},Bs=on.nodes,Pa=Bs===void 0?[]:Bs,uh=on.isActive;return uh!==void 0&&uh?Pa.filter(function(zg){return!Ht(zg.geometry.coordinates,P)}):Pa}).flat().filter(function(Le){return Le}),Q.length||(Q=Bg(Fv(N)).map(function(Le){return u1(Le)})),_e=N.map(function(Le){var rt,on,Bs=(rt=Le.properties)===null||rt===void 0?void 0:rt.line;return!((on=Le.properties)===null||on===void 0)&&on.isActive&&Bs?Cg(Bs.properties.nodes.map(function(Pa){return Pa.geometry.coordinates}),P).filter(function(Pa){return Pa.length>1}).map(function(Pa){return Sv(Pa)}):[Bs]}).flat().filter(function(Le){return Le}),_e.length||N.forEach(function(Le){var rt=mx(Le);if(/linestring/i.test(rt)&&_e.push(Le),/polygon/i.test(rt)){var on,Bs,Pa=VT(Le);return(on=_e).push.apply(on,G1((Bs=Pa==null?void 0:Pa.features)!==null&&Bs!==void 0?Bs:[Pa]))}})),{points:Q,lines:_e}},su=function(ot,w,P,N){var Q=P.pointAdsorbPixel,_e=N1(ot,2),Le=N.lngLatToPixel([_e[0],_e[1]]),rt=Le.x,on=Le.y,Bs=w.map(function(uh){var zg=N1(uh.geometry.coordinates,2),M0=N.lngLatToPixel([zg[0],zg[1]]),z0=M0.y;return Math.pow(rt-M0.x,2)+Math.pow(on-z0,2)}),Pa=Ea(Bs);return Math.pow(Bs[Pa],.5)>Q?null:w[Pa].geometry.coordinates},p0=function(ot,w,P,N){var Q=P.lineAdsorbPixel,_e=N1(ot,2),Le=N.lngLatToPixel([_e[0],_e[1]]),rt=Le.x,on=Le.y,Bs=w.filter(function(zg){return Bg(zg).length>1}).map(function(zg){return function(M0,z0,Zv){Zv===void 0&&(Zv={});var Vv=u1([1/0,1/0],{dist:1/0}),i1=0;return y1(M0,function(Kv){for(var wv=p_(Kv),oy=0;wv.length-1>oy;oy++){var jy=u1(wv[oy]);jy.properties.dist=yx(z0,jy,Zv);var x_=u1(wv[oy+1]);x_.properties.dist=yx(z0,x_,Zv);var dx=yx(jy,x_,Zv),Ux=Math.max(jy.properties.dist,x_.properties.dist),Dx=Ky(jy,x_),gw=Bw(z0,Ux,Dx+90,Zv),Sx=Bw(z0,Ux,Dx-90,Zv),X2=N2(Sv([gw.geometry.coordinates,Sx.geometry.coordinates]),Sv([jy.geometry.coordinates,x_.geometry.coordinates])),gu=null;X2.features.length>0&&((gu=X2.features[0]).properties.dist=yx(z0,gu,Zv),gu.properties.location=i1+yx(jy,gu,Zv)),Vv.properties.dist>jy.properties.dist&&((Vv=jy).properties.index=oy,Vv.properties.location=i1),Vv.properties.dist>x_.properties.dist&&((Vv=x_).properties.index=oy+1,Vv.properties.location=i1+dx),gu&&Vv.properties.dist>gu.properties.dist&&((Vv=gu).properties.index=oy),i1+=dx}}),Vv}(zg,ot)});if(!Bs.length)return null;var Pa=Bs.map(function(zg){var M0=N1(zg.geometry.coordinates,2),z0=N.lngLatToPixel([M0[0],M0[1]]),Zv=z0.y;return Math.pow(rt-z0.x,2)+Math.pow(on-Zv,2)}),uh=Ea(Pa);return Math.pow(Pa[uh],.5)>Q?null:Bs[uh].geometry.coordinates},Bv=function(ot,w){var P=N1(w,2),N=P[0],Q=P[1];ot.lngLat&&(ot.lngLat={lng:N,lat:Q}),ot.lnglat&&(ot.lnglat={lng:N,lat:Q})},c1=function(){function ot(w,P){mu(this,ot),this.container=void 0,this.cursor=null,this.options=void 0,this.container=hy(w),this.options=P}return rn(ot,[{key:"setCursor",value:function(w){w!==this.cursor&&this.container&&(this.container.style.cursor=w?this.options[w]:"",this.cursor=w)}},{key:"destroy",value:function(){this.setCursor(null)}}]),ot}();function l1(ot,w){w===void 0&&(w={});var P=w.insertAt;if(ot&&typeof document!="undefined"){var N=document.head||document.getElementsByTagName("head")[0],Q=document.createElement("style");Q.type="text/css",P==="top"&&N.firstChild?N.insertBefore(Q,N.firstChild):N.appendChild(Q),Q.styleSheet?Q.styleSheet.cssText=ot:Q.appendChild(document.createTextNode(ot))}}l1('.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}'),l1(".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 X1=function(){function ot(w,P){var N=this;mu(this,ot),this.content="",this.tippy=void 0,this.scene=void 0,this.isMouseInner=!1,this.onMouseMove=function(){N.isMouseInner=!0,N.checkTippyShow()},this.onMouseOut=function(){N.isMouseInner=!1,N.checkTippyShow()},this.setContent=Y(function(_e){var Le;N.content=_e!=null?_e:"",(Le=N.tippy)===null||Le===void 0||Le.setContent(_e!=null?_e:""),N.checkTippyShow()},16,{maxWait:16});var Q=hy(w);this.scene=w,Q&&(this.tippy=My(hy(w),No(No({},Nt),P)),this.tippy.hide(),w.on(u.SceneEvent.Mousemove,this.onMouseMove),w.on(u.SceneEvent.Mouseout,this.onMouseOut))}return rn(ot,[{key:"getContent",value:function(){return this.content}},{key:"checkTippyShow",value:function(){var w,P;this.content&&this.isMouseInner?(w=this.tippy)===null||w===void 0||w.show():(P=this.tippy)===null||P===void 0||P.hide()}},{key:"destroy",value:function(){var w;this.scene.off(u.SceneEvent.Mousemove,this.onMouseMove),this.scene.off(u.SceneEvent.Mouseout,this.onMouseOut),(w=this.tippy)===null||w===void 0||w.destroy()}}]),ot}(),Py=function(){function ot(w){var P=w.config;mu(this,ot),this.historyList=[],this.historyIndex=0,this.config=void 0,this.config=P}return rn(ot,[{key:"save",value:function(w){if(this.config){var P=this.config.maxSize;this.historyIndex&&(this.historyList=this.historyList.slice(this.historyIndex),this.historyIndex=0),P>this.historyList.length||this.historyList.pop();var N=o1(w);return this.historyList.unshift(N),N}}},{key:"revert",value:function(){if(this.historyList.length&&this.historyList.length-1>this.historyIndex){var w=this.historyList[++this.historyIndex];return w?o1(w):void 0}}},{key:"redo",value:function(){if(this.historyList.length&&this.historyIndex>0){var w=this.historyList[--this.historyIndex];return w?o1(w):void 0}}}]),ot}(),P1=function(ot){$a(P,ot);var w=Pv(P);function P(N){var Q,_e=N.data,Le=N.render,rt=N.history,on=N.scene;return mu(this,P),(Q=w.call(this)).scene=void 0,Q.render=void 0,Q.data=o1(x),Q.timeout=null,Q.diffData={},Q.history=void 0,Q.scene=on,Q.render=Le,rt&&(Q.history=new Py({config:rt})),_e&&Q.setData(_e),Q}return rn(P,[{key:"saveHistory",value:function(){var N;return(N=this.history)===null||N===void 0?void 0:N.save(this.data)}},{key:"revertHistory",value:function(){var N,Q=(N=this.history)===null||N===void 0?void 0:N.revert();if(Q)return this.setData(Q),Q}},{key:"redoHistory",value:function(){var N,Q=(N=this.history)===null||N===void 0?void 0:N.redo();if(Q)return this.setData(Q),Q}},{key:"setData",value:function(N){var Q=this;return Object.keys(N).length&&(this.data=No(No({},this.data),N),this.diffData=No(No({},this.diffData),N),this.timeout||(this.timeout=requestAnimationFrame(function(){return Q.updateDiffData()})),this.emit(u.SourceEvent.Change,{data:this.data})),this.data}},{key:"getData",value:function(){return this.data}},{key:"getRenderData",value:function(N){return this.data[N]}},{key:"setRenderData",value:function(N,Q){var _e=typeof Q=="function"?Q(this.getRenderData(N)):Q;return this.setData(js({},N,_e)),this.emit(u.SourceEvent.Change,this.data),_e}},{key:"updateDiffData",value:function(){var N=this,Q=Object.entries(this.diffData);Q.length&&(Q.forEach(function(_e){var Le,rt=N1(_e,2),on=rt[0],Bs=rt[1];Array.isArray(Bs)&&((Le=N.getRender(on))===null||Le===void 0||Le.setData(Bs))}),this.emit(u.SourceEvent.Update,this.data,this.diffData),this.diffData={},this.timeout=null,requestAnimationFrame(function(){N.scene.render()}))}},{key:"getRender",value:function(N){return this.render[N]}},{key:"clear",value:function(){this.setData(Mv(Object.keys(this.render).map(function(N){return[N,[]]})))}}]),P}(dC),Ty=function(ot){$a(P,ot);var w=Pv(P);function P(N,Q){var _e;mu(this,P),(_e=w.call(this)).scene=void 0,_e.source=void 0,_e.render=void 0,_e.cursor=void 0,_e.options=void 0,_e.enabled=!1,_e.allowCreate=!1,_e.sceneRender=void 0,_e.mouseLngLat={lng:0,lat:0},_e.popup=void 0,_e.addCount=0,_e.saveMouseLngLat=Y(function(Bs){_e.mouseLngLat=ct(Bs)},100,{maxWait:100}),_e.saveHistory=Y(function(){_e.options.history&&_e.source.saveHistory()},100),_e.bindThis(),_e.scene=N,_e.sceneRender=new og(N),_e.options=$2({},_e.getDefaultOptions(Q),Q),_e.render=_e.initRender(),_e.source=new P1({render:_e.render,history:_e.options.history||void 0,scene:N}),_e.cursor=new c1(N,_e.options.cursor);var Le=_e.options,rt=Le.initialData,on=Le.popup;return rt&&_e.setData(rt),on&&(_e.popup=new X1(N,on instanceof Object?on:{})),_e.saveHistory(),_e.bindCommonEvent(),_e.emit(u.DrawEvent.Init,yv(_e)),_e.bindEnableEvent(),P.instances.push(yv(_e)),_e}return rn(P,[{key:"addable",get:function(){var N=this.getData(),Q=this.options,_e=Q.multiple,Le=Q.maxCount,rt=N.find(function(on){return on.properties.isDraw});return!(!this.enabled||!this.allowCreate)&&(!!(_e&&0>=Le||rt)||!(!_e&&this.addCount>=1)&&(0>=Le||Le>N.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(N){var Q,_e,Le=this.options.helper;if(Le){var rt=(Q=N in Le?Le[N]:N)!==null&&Q!==void 0?Q:null;(_e=this.popup)===null||_e===void 0||_e.setContent(rt)}}},{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 N=this;this.on(u.DrawEvent.Add,this.emitChangeEvent),this.on(u.DrawEvent.Add,function(){N.addCount++}),this.on(u.DrawEvent.Edit,this.emitChangeEvent),this.on(u.DrawEvent.Remove,this.emitChangeEvent),this.on(u.DrawEvent.Clear,this.emitChangeEvent),this.on(u.DrawEvent.AddNode,this.saveHistory),this.on(u.DrawEvent.RemoveNode,this.emitChangeEvent),this.bindEmitSelectEvent(!0)}},{key:"bindEmitSelectEvent",value:function(){var N=this,Q=arguments.length>0&&arguments[0]!==void 0&&arguments[0],_e=null,Le=function(){var rt,on,Bs,Pa=N.getData().find(function(uh){var zg;return(zg=uh.properties)===null||zg===void 0?void 0:zg.isActive})||null;((rt=_e)===null||rt===void 0||(on=rt.properties)===null||on===void 0?void 0:on.id)!==(Pa==null||(Bs=Pa.properties)===null||Bs===void 0?void 0:Bs.id)&&(_e=Pa,N.emit(u.DrawEvent.Select,Pa))};this.source.on(u.SourceEvent.Change,Le),Q&&Le()}},{key:"bindEnableEvent",value:function(){this.unbindKeyboardEvent(),this.scene.setMapStatus({doubleClickZoom:!1}),this.scene.on(u.SceneEvent.Mousemove,this.saveMouseLngLat),this.bindKeyboardEvent()}},{key:"unbindEnableEvent",value:function(){this.scene.setMapStatus({doubleClickZoom:!0}),this.scene.off(u.SceneEvent.Mousemove,this.saveMouseLngLat),this.unbindKeyboardEvent()}},{key:"bindKeyboardEvent",value:function(){var N=this,Q=this.options.keyboard||{},_e=Q.revert,Le=Q.redo,rt=Q.remove;rt&&S2.bind(rt,function(){N.removeActiveFeature()}),this.options.history&&(_e&&S2.bind(_e,this.revertHistory),Le&&S2.bind(Le,this.redoHistory))}},{key:"unbindKeyboardEvent",value:function(){var N=this.options.keyboard||{},Q=N.revert,_e=N.redo,Le=N.remove;Le&&S2.unbind(Le),this.options.history&&(Q&&S2.unbind(Q),_e&&S2.unbind(_e))}},{key:"emitChangeEvent",value:function(){this.emit(u.DrawEvent.Change,this.getData()),this.saveHistory()}},{key:"revertHistory",value:function(){this.enabled&&this.options.history&&this.source.revertHistory()&&(this.correctDrawItem(),this.emit(u.DrawEvent.Change,this.getData()))}},{key:"redoHistory",value:function(){this.enabled&&this.options.history&&this.source.redoHistory()&&(this.correctDrawItem(),this.emit(u.DrawEvent.Change,this.getData()))}},{key:"getRenderLayers",value:function(){return Mv(nC(this.render).map(function(N){var Q=N1(N,2);return[Q[0],Q[1].getLayers()]}))}},{key:"getTargetFeature",value:function(N){var Q,_e,Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getData(),rt=null;return N&&(rt=(Q=Le.find(function(on){var Bs;return on.properties.id===(typeof N=="string"?N:(Bs=N.properties)===null||Bs===void 0?void 0:Bs.id)}))!==null&&Q!==void 0?Q:null,!rt&&N instanceof Object&&(rt=(_e=Le.find(function(on){return Ht(N.geometry,on.geometry)}))!==null&&_e!==void 0?_e:null)),rt}},{key:"removeActiveFeature",value:function(){var N=this.getData().find(function(Q){var _e=Q.properties;return _e.isActive||_e.isDraw});return N&&this.removeFeature(N),N}},{key:"removeFeature",value:function(N){var Q=this.getData(),_e=this.getTargetFeature(N);_e&&(this.setData(Q.filter(function(Le){return!mC(_e,Le)})),this.emit(u.DrawEvent.Remove,N,this.getData()))}},{key:"correctDrawItem",value:function(){this.getData().find(function(N){return N.properties.isDraw})&&this.onSceneMouseMove({type:"mousemove",lnglat:this.mouseLngLat,lngLat:this.mouseLngLat})}},{key:"initRender",value:function(){var N,Q={},_e=function(rt,on){var Bs=typeof Symbol!="undefined"&&rt[Symbol.iterator]||rt["@@iterator"];if(!Bs){if(Array.isArray(rt)||(Bs=wy(rt))||on&&rt&&typeof rt.length=="number"){Bs&&(rt=Bs);var Pa=0,uh=function(){};return{s:uh,n:function(){return rt.length>Pa?{done:!1,value:rt[Pa++]}:{done:!0}},e:function(Zv){throw Zv},f:uh}}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 zg,M0=!0,z0=!1;return{s:function(){Bs=Bs.call(rt)},n:function(){var Zv=Bs.next();return M0=Zv.done,Zv},e:function(Zv){z0=!0,zg=Zv},f:function(){try{M0||Bs.return==null||Bs.return()}finally{if(z0)throw zg}}}}(this.getRenderTypes());try{for(_e.s();!(N=_e.n()).done;){var Le=N.value;Q[Le]=new z[Le](this.scene,{style:this.options.style[Le]})}}catch(rt){_e.e(rt)}finally{_e.f()}return Q}},{key:"getCommonOptions",value:function(N){return{initialData:[],autoActive:!0,cursor:o1(b),editable:!0,style:o1(pe),multiple:!0,history:o1(i0),keyboard:o1(ii),popup:!0,helper:{},maxCount:-1}}},{key:"setCursor",value:function(N){this.cursor.setCursor(N)}},{key:"resetCursor",value:function(){this.setCursor(this.addable?"draw":null)}},{key:"enable",value:function(){var N=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(){N.emit(u.DrawEvent.Enable,N)},0)}},{key:"disable",value:function(){var N=this;this.resetFeatures(),this.enabled=!1,this.setCursor(null),this.unbindEnableEvent(),this.addCount=0,this.setHelper(null),setTimeout(function(){N.emit(u.DrawEvent.Disable,N)},0)}},{key:"clear",value:function(){var N=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.source.clear(),this.emit(u.DrawEvent.Clear,this),N&&this.disable()}},{key:"show",value:function(){return Object.values(this.render).forEach(function(N){N.show()})}},{key:"hide",value:function(){return Object.values(this.render).forEach(function(N){N.hide()})}},{key:"destroy",value:function(){var N,Q=this;Object.values(this.render).forEach(function(Le){Le.destroy()}),Object.values(u.RenderEvent).forEach(function(Le){Object.values(Q.render).forEach(function(rt){rt.removeAllListeners(Le)}),Q.sceneRender.removeAllListeners(Le)}),setTimeout(function(){Object.values(u.DrawEvent).forEach(function(Le){Q.removeAllListeners(Le)})},0),(N=this.popup)===null||N===void 0||N.destroy(),this.cursor.destroy(),this.emit(u.DrawEvent.Destroy,this);var _e=P.instances.indexOf(this);_e>-1&&P.instances.splice(_e,1)}}]),P}(dC);Ty.instances=[];var _v=function(ot){var w=ot==null?0:ot.length;return w?ot[w-1]:void 0},vy=function(ot){$a(P,ot);var w=Pv(P);function P(){return mu(this,P),w.apply(this,arguments)}return rn(P,[{key:"pointRender",get:function(){return this.render.point}},{key:"dragPoint",get:function(){return this.getPointData().find(function(N){return N.properties.isDrag})}},{key:"editPoint",get:function(){return this.getPointData().find(function(N){return N.properties.isActive})}},{key:"hoverPoint",get:function(){return this.getPointData().find(function(N){return N.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(N){return this.source.setRenderData("point",N)}},{key:"bindPointRenderEvent",value:function(){var N,Q,_e,Le,rt,on;(N=this.pointRender)===null||N===void 0||N.on(u.RenderEvent.UnClick,this.onPointCreate.bind(this)),(Q=this.pointRender)===null||Q===void 0||Q.on(u.RenderEvent.Mousemove,this.onPointMouseMove.bind(this)),(_e=this.pointRender)===null||_e===void 0||_e.on(u.RenderEvent.Mouseout,this.onPointMouseOut.bind(this)),(Le=this.pointRender)===null||Le===void 0||Le.on(u.RenderEvent.Dragstart,this.onPointDragStart.bind(this)),(rt=this.pointRender)===null||rt===void 0||rt.on(u.RenderEvent.Dragging,this.onPointDragging.bind(this)),(on=this.pointRender)===null||on===void 0||on.on(u.RenderEvent.Dragend,this.onPointDragEnd.bind(this))}},{key:"handleCreatePoint",value:function(N){var Q=this.options,_e=Q.autoActive,Le=Q.editable,rt=aS(N);return this.setPointData(function(on){return sS({target:rt,data:[].concat(G1(on),[rt]),targetHandler:function(Bs){Bs.properties=No(No({},Bs.properties),{},{isHover:Le,isActive:_e&&Le})},otherHandler:function(Bs){Bs.properties=No(No({},Bs.properties),{},{isHover:!1,isActive:!1,isDrag:!1})}})}),rt}},{key:"handlePointHover",value:function(N){return this.setCursor("pointHover"),mC(N,this.hoverPoint)||this.setPointData(function(Q){return sS({target:N,data:Q,targetHandler:function(_e){_e.properties.isHover=!0},otherHandler:function(_e){_e.properties.isHover=!1}})}),N}},{key:"handlePointUnHover",value:function(N){return this.resetCursor(),this.setPointData(function(Q){return Q.map(function(_e){return _e.properties.isHover=!1,_e})}),N}},{key:"handlePointDragStart",value:function(N){return this.setPointData(function(Q){return sS({target:N,data:Q,targetHandler:function(_e){_e.properties=No(No({},_e.properties),{},{isDrag:!0,isActive:!0})},otherHandler:function(_e){_e.properties=No(No({},_e.properties),{},{isDrag:!1,isActive:!1})}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),N}},{key:"handlePointDragging",value:function(N,Q){return this.setPointData(function(_e){return sS({target:N,data:_e,targetHandler:function(Le){Le.geometry.coordinates=xn(Q)}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),N}},{key:"handlePointDragEnd",value:function(N){return this.setPointData(function(Q){return sS({target:N,data:Q,targetHandler:function(_e){_e.properties.isDrag=!1}})}),this.scene.setMapStatus({dragEnable:!0}),this.setCursor("pointHover"),N}},{key:"onPointCreate",value:function(N){return this.handleCreatePoint(xn(ct(N)))}},{key:"onPointMouseMove",value:function(N){return this.handlePointHover(N.feature)}},{key:"onPointMouseOut",value:function(N){return this.handlePointUnHover(N.feature)}},{key:"onPointDragStart",value:function(N){if(this.options.editable)return this.handlePointDragStart(N.feature)}},{key:"onPointDragging",value:function(N){var Q=this.dragPoint;if(this.options.editable&&Q)return this.handlePointDragging(Q,ct(N))}},{key:"onPointDragEnd",value:function(N){var Q=this.dragPoint;if(this.options.editable&&Q)return this.handlePointDragEnd(Q)}},{key:"enablePointRenderAction",value:function(){var N,Q,_e,Le,rt=this.options.editable;this.enabled&&((Q=this.pointRender)===null||Q===void 0||Q.enableCreate()),(N=this.pointRender)===null||N===void 0||N.enableClick(),rt&&((_e=this.pointRender)===null||_e===void 0||_e.enableHover(),(Le=this.pointRender)===null||Le===void 0||Le.enableDrag())}},{key:"disablePointRenderAction",value:function(){var N,Q,_e,Le;(N=this.pointRender)===null||N===void 0||N.disableCreate(),(Q=this.pointRender)===null||Q===void 0||Q.disableHover(),(_e=this.pointRender)===null||_e===void 0||_e.disableDrag(),(Le=this.pointRender)===null||Le===void 0||Le.disableClick()}}]),P}(Ty),h_=function(ot){$a(P,ot);var w=Pv(P);function P(){return mu(this,P),w.apply(this,arguments)}return rn(P,[{key:"midPointRender",get:function(){return this.render.midPoint}},{key:"getCommonOptions",value:function(N){return No(No({},Jv(yd(P.prototype),"getCommonOptions",this).call(this,N)),{},{showMidPoint:!0})}},{key:"bindMidPointRenderEvent",value:function(){var N,Q,_e;(N=this.midPointRender)===null||N===void 0||N.on(u.RenderEvent.Click,this.onMidPointClick.bind(this)),(Q=this.midPointRender)===null||Q===void 0||Q.on(u.RenderEvent.Mousemove,this.onMidPointHover.bind(this)),(_e=this.midPointRender)===null||_e===void 0||_e.on(u.RenderEvent.Mouseout,this.onMidPointUnHover.bind(this))}},{key:"getMidPointData",value:function(){return this.source.getRenderData("midPoint")}},{key:"setMidPointData",value:function(N){return this.source.setRenderData("midPoint",N)}},{key:"getMidPointsByLine",value:function(N){var Q=N.properties.nodes;if(!this.options.showMidPoint||2>Q.length)return[];for(var _e=[],Le=0;Q.length-1>Le;Le++){var rt,on,Bs,Pa,uh=Lx(Fv([Q[Le],Q[Le+1]]),{properties:{id:M_("midPoint"),startId:(rt=(on=Q[Le].properties)===null||on===void 0?void 0:on.id)!==null&&rt!==void 0?rt:"",endId:(Bs=(Pa=Q[Le+1].properties)===null||Pa===void 0?void 0:Pa.id)!==null&&Bs!==void 0?Bs:""}});_e.push(uh)}return _e}},{key:"onMidPointHover",value:function(N){this.setCursor("pointHover")}},{key:"onMidPointUnHover",value:function(N){this.resetCursor()}},{key:"enableMidPointRenderAction",value:function(){var N,Q;(N=this.midPointRender)===null||N===void 0||N.enableClick(),(Q=this.midPointRender)===null||Q===void 0||Q.enableHover()}},{key:"disableMidPointRenderAction",value:function(){var N,Q;(N=this.midPointRender)===null||N===void 0||N.disableClick(),(Q=this.midPointRender)===null||Q===void 0||Q.disableHover()}}]),P}(vy),Hy={draw:"\u5355\u51FB\u7ED8\u5236\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u70B9\u4F4D\u7F6E",pointDrag:null},J_={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"},fx={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},kx=No(No({},fx),{},{draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawFinish:"\u5355\u51FB\u7ED3\u675F\u7ED8\u5236"}),Rx={draw:"\u62D6\u62FD\u5F00\u59CB\u7ED8\u5236",drawFinish:"\u677E\u5F00\u9F20\u6807\u7ED3\u675F\u7ED8\u5236"},K_={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E"},x2={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E"},ww=function(ot){$a(P,ot);var w=Pv(P);function P(){var N;mu(this,P);for(var Q=arguments.length,_e=Array(Q),Le=0;Q>Le;Le++)_e[Le]=arguments[Le];return(N=w.call.apply(w,[this].concat(_e))).previousPosition=[0,0],N}return rn(P,[{key:"lineRender",get:function(){return this.render.line}},{key:"dragLine",get:function(){return this.getLineData().find(function(N){return N.properties.isDrag})}},{key:"drawLine",get:function(){return this.getLineData().find(function(N){return N.properties.isDraw})}},{key:"editLine",get:function(){return this.getLineData().find(function(N){var Q=N.properties;return!Q.isDraw&&Q.isActive})}},{key:"hoverLine",get:function(){return this.getLineData().find(function(N){return N.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(N){var Q=No(No({},this.getCommonOptions(N)),{},{showMidPoint:!0,distanceOptions:!1,helper:o1(J_)});return N.distanceOptions&&(Q.distanceOptions=No(No({},yu),Q.distanceOptions)),N.adsorbOptions&&(Q.adsorbOptions=No(No({},fr),Q.adsorbOptions)),Q}},{key:"getAdsorbPosition",value:function(N){var Q=this.options.adsorbOptions;if(typeof Q=="boolean")return N;var _e=this.scene,Le=Q.pointAdsorbPixel,rt=Q.lineAdsorbPixel,on=null,Bs=Td(Q.data,this,N),Pa=Bs.points,uh=Bs.lines;return Pa.length&&Le>0&&(on=su(N,Pa,Q,_e)),!on&&uh.length&&rt>0&&(on=p0(N,uh,Q,_e)),on}},{key:"bindSceneEvent",value:function(){this.sceneRender.on(u.RenderEvent.Mousemove,this.onSceneMouseMove.bind(this))}},{key:"bindPointRenderEvent",value:function(){var N;Jv(yd(P.prototype),"bindPointRenderEvent",this).call(this),(N=this.pointRender)===null||N===void 0||N.on(u.RenderEvent.Click,this.onPointClick.bind(this))}},{key:"bindLineRenderEvent",value:function(){var N,Q,_e,Le,rt,on;(N=this.lineRender)===null||N===void 0||N.on(u.RenderEvent.UnClick,this.onLineUnClick.bind(this)),(Q=this.lineRender)===null||Q===void 0||Q.on(u.RenderEvent.Mousemove,this.onLineMouseMove.bind(this)),(_e=this.lineRender)===null||_e===void 0||_e.on(u.RenderEvent.Mouseout,this.onLineMouseOut.bind(this)),(Le=this.lineRender)===null||Le===void 0||Le.on(u.RenderEvent.Dragstart,this.onLineDragStart.bind(this)),(rt=this.lineRender)===null||rt===void 0||rt.on(u.RenderEvent.Dragging,this.onLineDragging.bind(this)),(on=this.lineRender)===null||on===void 0||on.on(u.RenderEvent.Dragend,this.onLineDragEnd.bind(this))}},{key:"getDashLineDistanceTexts",value:function(N,Q){var _e=Q.showTotalDistance,Le=Q.format;return Q.showDashDistance?N.map(function(rt){return JC(rt,{showTotalDistance:_e,format:Le},{isActive:!0,type:"dash"})}).flat():[]}},{key:"getLineDistanceTexts",value:function(N,Q){var _e=Q.showTotalDistance,Le=Q.format,rt=Q.showWhen,on=[];if(rt.includes("active")){var Bs=N.filter(function(uh){return uh.properties.isActive&&uh.properties.nodes.length>1});on.push.apply(on,G1(Bs.map(function(uh){return JC(uh,{showTotalDistance:_e,format:Le},{isActive:!0})}).flat()))}if(rt.includes("normal")){var Pa=N.filter(function(uh){return!uh.properties.isActive&&uh.properties.nodes.length>1});on.push.apply(on,G1(Pa.map(function(uh){return JC(uh,{showTotalDistance:_e,format:Le})}).flat()))}return on}},{key:"getDistanceTexts",value:function(){var N=this.options.distanceOptions;if(!N)return[];var Q=[],_e=N.showWhen,Le=N.showDashDistance,rt=N.format,on=N.showTotalDistance;return Q.push.apply(Q,G1(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!1,format:rt,showDashDistance:Le})).concat(G1(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:on,format:rt,showWhen:_e})))),Q}},{key:"getAllTexts",value:function(){return this.getDistanceTexts()}},{key:"handleCreateLine",value:function(N){var Q=qv([N],{isActive:!0,isDraw:!0});return this.setLineData(function(_e){return sS({target:Q,data:[].concat(G1(_e),[Q]),otherHandler:function(Le){Le.properties.isActive=!1}})}),this.setPointData([N]),this.setTextData(this.getAllTexts()),Q}},{key:"syncLineNodes",value:function(N,Q){return N.properties.nodes=Q,N.geometry.coordinates=Bg(Fv(Q)),this.setLineData(function(_e){return _e.map(function(Le){return mC(Le,N)?N:Le})}),mC(this.editLine,N)&&this.setMidPointData(this.getMidPointsByLine(N)),this.setPointData(N.properties.nodes),this.setTextData(this.getAllTexts()),N}},{key:"setActiveLine",value:function(N){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setLineData(function(_e){return sS({target:N,data:_e,targetHandler:function(Le){Le.properties=No(No({},Le.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},Q)},otherHandler:function(Le){Le.properties=No(No({},Le.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(N.properties.nodes.map(function(_e){return _e.properties=No(No({},_e.properties),{},{isHover:!1,isActive:!1}),_e})),this.setMidPointData(this.getMidPointsByLine(N)),this.setDashLineData([]),this.setTextData(this.getAllTexts()),N}},{key:"clearActiveLine",value:function(){this.source.setData({point:[],line:this.getLineData().map(function(N){return N.properties=No(No({},N.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),N}),midPoint:[],text:this.getAllTexts()})}},{key:"handleLineUnClick",value:function(N){return this.clearActiveLine(),N}},{key:"handleLineHover",value:function(N){if(!this.drawLine)return this.setCursor("lineHover"),mC(N,this.hoverLine)||this.setLineData(function(Q){return sS({target:N,data:Q,targetHandler:function(_e){_e.properties.isHover=!0},otherHandler:function(_e){_e.properties.isHover=!1}})}),N}},{key:"handleLineUnHover",value:function(N){if(!this.drawLine)return this.resetCursor(),this.setLineData(function(Q){return Q.map(function(_e){return _e.properties.isHover=!1,_e})}),N}},{key:"handleLineDragStart",value:function(N){return this.setActiveLine(N,{isDrag:!0,isActive:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("lineDrag"),N}},{key:"handleLineDragging",value:function(N,Q){var _e=Q.lng,Le=Q.lat,rt=N.properties.nodes,on=N1(this.previousPosition,2),Bs=on[0],Pa=on[1];return rt.forEach(function(uh){var zg=uh.geometry.coordinates;uh.geometry.coordinates=[zg[0]+_e-Bs,zg[1]+Le-Pa]}),this.syncLineNodes(N,rt),this.setActiveLine(N,{isDrag:!0}),this.setCursor("lineDrag"),this.previousPosition=[_e,Le],N}},{key:"handleLineDragEnd",value:function(N){return N.properties.isDrag=!1,this.setLineData(function(Q){return Q}),this.scene.setMapStatus({dragEnable:!0}),N}},{key:"resetAdsorbLngLat",value:function(N){if(this.options.adsorbOptions){var Q=this.getAdsorbPosition(xn(ct(N)));return Q&&Bv(N,Q),Q}}},{key:"onPointCreate",value:function(N){if(!this.editLine){this.resetAdsorbLngLat(N);var Q=Jv(yd(P.prototype),"onPointCreate",this).call(this,N),_e=this.drawLine;if(Q)return _e?(this.syncLineNodes(_e,[].concat(G1(_e.properties.nodes),[Q])),this.setDashLineData([])):this.handleCreateLine(Q),Q}}},{key:"onPointDragStart",value:function(N){if(this.editLine)return this.setHelper("pointDrag"),Jv(yd(P.prototype),"onPointDragStart",this).call(this,N)}},{key:"onPointDragging",value:function(N){var Q=Jv(yd(P.prototype),"onPointDragging",this).call(this,N);if(Q){var _e=this.resetAdsorbLngLat(N);_e&&(Q.geometry.coordinates=o1(_e))}var Le=this.editLine;return Le&&Q&&(this.syncLineNodes(Le,Le.properties.nodes.map(function(rt){return mC(Q,rt)?Q:rt})),this.setActiveLine(Le)),Q}},{key:"onPointDragEnd",value:function(N){if(this.editLine){var Q=Jv(yd(P.prototype),"onPointDragEnd",this).call(this,N);return this.setPointData(function(_e){return _e.map(function(Le){return Le.properties.isActive=!1,Le})}),this.setHelper("pointHover"),Q}}},{key:"onLineUnClick",value:function(N){var Q=this.editLine;if(Q)return this.handleLineUnClick(Q)}},{key:"onLineMouseMove",value:function(N){if(!this.drawLine)return this.dragLine||this.drawLine||!this.options.editable||this.setHelper("lineHover"),this.handleLineHover(N.feature)}},{key:"onLineMouseOut",value:function(N){if(!this.drawLine)return this.dragLine||this.drawLine||this.setHelper(this.addable?"draw":null),this.handleLineUnHover(N.feature)}},{key:"onLineDragStart",value:function(N){if(this.options.editable&&!this.drawLine)return this.previousPosition=gt(N),this.setHelper("lineDrag"),this.handleLineDragStart(N.feature)}},{key:"onLineDragging",value:function(N){var Q=this.dragLine;if(Q)return this.handleLineDragging(Q,ct(N))}},{key:"onLineDragEnd",value:function(N){var Q=this.dragLine;if(Q)return this.setHelper("lineHover"),this.handleLineDragEnd(Q)}},{key:"onPointMouseMove",value:function(N){var Q=Jv(yd(P.prototype),"onPointMouseMove",this).call(this,N);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper("pointHover"),Q}},{key:"onPointMouseOut",value:function(N){var Q=Jv(yd(P.prototype),"onPointMouseOut",this).call(this,N);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper(this.addable?"draw":null),Q}},{key:"onMidPointHover",value:function(N){Jv(yd(P.prototype),"onMidPointHover",this).call(this,N),this.setHelper("midPointHover")}},{key:"onMidPointUnHover",value:function(N){Jv(yd(P.prototype),"onMidPointUnHover",this).call(this,N),this.setHelper(null)}},{key:"onPointClick",value:function(N){}},{key:"getLineData",value:function(){return this.source.getRenderData("line")}},{key:"setLineData",value:function(N){return this.source.setRenderData("line",N)}},{key:"getTextData",value:function(){return this.source.getRenderData("text")}},{key:"setTextData",value:function(N){return this.source.setRenderData("text",N)}},{key:"getDashLineData",value:function(){return this.source.getRenderData("dashLine")}},{key:"setDashLineData",value:function(N){return this.source.setRenderData("dashLine",N)}},{key:"onMidPointClick",value:function(N){var Q=this.editLine,_e=N.feature;if(Q&&_e&&!this.dragPoint){var Le=Q.properties.nodes,rt=_e.properties,on=rt.startId,Bs=rt.endId,Pa=Le.findIndex(function(M0){return M0.properties.id===on}),uh=Le.findIndex(function(M0){return M0.properties.id===Bs});if(Pa>-1&&uh>-1){var zg=aS(_e.geometry.coordinates,{isDrag:!0,isHover:!0});return this.setHelper("pointDrag"),Le.splice(uh,0,zg),Q.geometry.coordinates=Bg(Fv(Le)),this.syncLineNodes(Q,Le),this.setActiveLine(Q),zg}}}},{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 N,Q,_e,Le=this.options.editable;(N=this.lineRender)===null||N===void 0||N.enableUnClick(),Le&&((Q=this.lineRender)===null||Q===void 0||Q.enableHover(),(_e=this.lineRender)===null||_e===void 0||_e.enableDrag())}},{key:"disableLineRenderAction",value:function(){var N,Q,_e;(N=this.lineRender)===null||N===void 0||N.disableUnClick(),(Q=this.lineRender)===null||Q===void 0||Q.disableHover(),(_e=this.lineRender)===null||_e===void 0||_e.disableDrag()}}]),P}(h_),H2=function(ot){$a(P,ot);var w=Pv(P);function P(){return mu(this,P),w.apply(this,arguments)}return rn(P,[{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(N){return N.properties.isDrag})}},{key:"drawPolygon",get:function(){return this.getPolygonData().find(function(N){return N.properties.isDraw})}},{key:"editPolygon",get:function(){return this.getPolygonData().find(function(N){var Q=N.properties;return!Q.isDraw&&Q.isActive})}},{key:"hoverPolygon",get:function(){return this.getPolygonData().find(function(N){return N.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 N,Q;return(N=(Q=this.render.polygon)===null||Q===void 0?void 0:Q.getLayers())!==null&&N!==void 0?N:[]}},{key:"getDefaultOptions",value:function(N){var Q=No(No({},Jv(yd(P.prototype),"getDefaultOptions",this).call(this,N)),{},{areaOptions:!1,helper:o1(fx)});return N.areaOptions&&(Q.areaOptions=No(No({},Kg),N.areaOptions)),Q}},{key:"getAreaTexts",value:function(N){var Q=this.options.areaOptions;if(!Q)return[];var _e=Q.format,Le=Q.showWhen,rt=[],on=N.filter(function(Bs){return Bs.geometry.coordinates[0].length>=4});return Le.includes("active")&&on.filter(function(Bs){return Bs.properties.isActive}).forEach(function(Bs){rt.push(YE(Bs,{format:_e},{isActive:!0}))}),Le.includes("normal")&&on.filter(function(Bs){return!Bs.properties.isActive}).forEach(function(Bs){rt.push(YE(Bs,{format:_e},{isActive:!1}))}),rt}},{key:"getAllTexts",value:function(){return[].concat(G1(Jv(yd(P.prototype),"getAllTexts",this).call(this)),G1(this.getAreaTexts(this.getPolygonData())))}},{key:"getPolygonData",value:function(){return this.source.getRenderData("polygon")}},{key:"setPolygonData",value:function(N){return this.source.setRenderData("polygon",N)}},{key:"handleCreatePolygon",value:function(N,Q){var _e=T2(N,{nodes:N,line:Q,isActive:!0,isDraw:!0});return this.setPolygonData(function(Le){return sS({target:_e,data:[].concat(G1(Le),[_e]),otherHandler:function(rt){rt.properties.isActive=!1}})}),_e}},{key:"handlePolygonUnClick",value:function(N){return this.clearActivePolygon(),N}},{key:"handlePolygonHover",value:function(N){return this.setCursor("polygonHover"),mC(N,this.hoverPolygon)||this.setPolygonData(function(Q){return sS({target:N,data:Q,targetHandler:function(_e){_e.properties.isHover=!0},otherHandler:function(_e){_e.properties.isHover=!1}})}),N}},{key:"handlePolygonUnHover",value:function(){this.resetCursor(),this.setPolygonData(function(N){return N.map(function(Q){return Q.properties.isHover=!1,Q})})}},{key:"handlePolygonDragStart",value:function(N){return this.setActivePolygon(N,{isDrag:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("polygonDrag"),N}},{key:"bindPolygonRenderEvent",value:function(){var N,Q,_e,Le;(N=this.polygonRender)===null||N===void 0||N.on(u.RenderEvent.UnClick,this.onPolygonUnClick.bind(this)),(Q=this.polygonRender)===null||Q===void 0||Q.on(u.RenderEvent.Mousemove,this.onPolygonHover.bind(this)),(_e=this.polygonRender)===null||_e===void 0||_e.on(u.RenderEvent.Mouseout,this.onPolygonUnHover.bind(this)),(Le=this.polygonRender)===null||Le===void 0||Le.on(u.RenderEvent.Dragstart,this.onPolygonDragStart.bind(this))}},{key:"syncPolygonNodes",value:function(N,Q){var _e=Bg(Fv([].concat(G1(Q),[P2(Q)]))),Le=N.properties,rt=Le.line;if(N.properties.nodes=Q,N.geometry.coordinates=[DE(Sv(_e))?_e:_e.reverse()],this.setPolygonData(function(zg){return zg.map(function(M0){return mC(M0,N)?N:M0})}),!mC(this.drawPolygon,N)){var on=rt.properties.nodes,Bs=G1(Q),Pa=P2(Bs);Bs.push(on.length===Q.length?aS(Pa.geometry.coordinates):_v(on));var uh=_v(Bs);Ht(Pa.geometry.coordinates,uh.geometry.coordinates)||(uh.geometry.coordinates=o1(Pa.geometry.coordinates)),this.syncLineNodes(rt,Bs)}return N}},{key:"setActivePolygon",value:function(N){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setActiveLine(N.properties.line,Q),this.setPolygonData(function(_e){return sS({target:N,data:_e,targetHandler:function(Le){Le.properties=No(No({},Le.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},Q)},otherHandler:function(Le){Le.properties=No(No({},Le.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setTextData(this.getAllTexts()),N}},{key:"clearActivePolygon",value:function(){this.setPolygonData(function(N){return N.map(function(Q){return Q.properties=No(No({},Q.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),Q})}),this.clearActiveLine()}},{key:"onLineDragStart",value:function(N){var Q=Jv(yd(P.prototype),"onLineDragStart",this).call(this,N),_e=this.getPolygonData().find(function(Le){return mC(Le.properties.line,Q)});return _e&&(this.setActivePolygon(_e,{isDrag:!0}),this.emit(u.DrawEvent.DragStart,_e,this.getPolygonData())),Q}},{key:"onLineUnClick",value:function(N){return this.editLine}},{key:"onLineDragEnd",value:function(N){var Q=Jv(yd(P.prototype),"onLineDragEnd",this).call(this,N),_e=this.dragPolygon;return Q&&_e&&(_e.properties.isDrag=!1,this.emit(u.DrawEvent.DragEnd,_e,this.getPolygonData()),this.emit(u.DrawEvent.Edit,_e,this.getPolygonData())),Q}},{key:"onPolygonUnClick",value:function(N){var Q=this.editPolygon;if(Q)return this.handlePolygonUnClick(Q)}},{key:"onPolygonHover",value:function(N){if(!this.drawPolygon)return this.dragPolygon||this.setHelper("polygonHover"),this.handlePolygonHover(N.feature)}},{key:"onPolygonUnHover",value:function(N){if(!this.drawPolygon)return this.setHelper(this.addable?"draw":null),this.handlePolygonUnHover()}},{key:"onPolygonDragStart",value:function(N){if(this.options.editable&&!this.drawPolygon){var Q=N.feature;return this.previousPosition=gt(N),this.setHelper("polygonDrag"),this.emit(u.DrawEvent.DragStart,Q,this.getPolygonData()),this.handlePolygonDragStart(Q)}}},{key:"onMidPointClick",value:function(N){var Q=this.editPolygon,_e=Jv(yd(P.prototype),"onMidPointClick",this).call(this,N);if(_e&&Q){var Le=Q.properties.line.properties.nodes;this.syncPolygonNodes(Q,Le.slice(0,Le.length-1)),this.setActivePolygon(Q)}return _e}},{key:"onPointDragEnd",value:function(N){var Q=this.editPolygon,_e=Jv(yd(P.prototype),"onPointDragEnd",this).call(this,N);return _e&&Q&&this.emit(u.DrawEvent.Edit,Q,this.getPolygonData()),_e}},{key:"enablePolygonRenderAction",value:function(){var N,Q,_e,Le=this.options.editable;(N=this.polygonRender)===null||N===void 0||N.enableUnClick(),Le&&((Q=this.polygonRender)===null||Q===void 0||Q.enableHover(),(_e=this.polygonRender)===null||_e===void 0||_e.enableDrag())}},{key:"disablePolygonRenderAction",value:function(){var N,Q,_e;(N=this.polygonRender)===null||N===void 0||N.disableUnClick(),(Q=this.polygonRender)===null||Q===void 0||Q.disableHover(),(_e=this.polygonRender)===null||_e===void 0||_e.disableDrag()}},{key:"bindEnableEvent",value:function(){Jv(yd(P.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.enablePolygonRenderAction()}},{key:"unbindEnableEvent",value:function(){Jv(yd(P.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.disablePolygonRenderAction()}},{key:"bindThis",value:function(){Jv(yd(P.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(N){var Q=this.getTargetFeature(N);Q?this.setActivePolygon(Q):this.clearActivePolygon()}},{key:"resetFeatures",value:function(){var N=this.getPolygonData();this.drawPolygon&&(N=N.filter(function(Q){return!Q.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setLineData(function(Q){return Q.filter(function(_e){return!_e.properties.isDraw})}),this.setTextData(function(Q){return Q.filter(function(_e){return!_e.properties.isActive})})),this.editPolygon&&this.handlePolygonUnClick(this.editPolygon),this.setPolygonData(N.map(function(Q){return Q.properties=No(No({},Q.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),Q}))}}]),P}(ww),qw=function(ot){$a(P,ot);var w=Pv(P);function P(N,Q){var _e;return mu(this,P),(_e=w.call(this,N,Q)).onSceneDragStart=_e.onSceneDragStart.bind(yv(_e)),_e.onSceneDragEnd=_e.onSceneDragEnd.bind(yv(_e)),_e}return rn(P,[{key:"drawLine",get:function(){var N;return(N=this.drawPolygon)===null||N===void 0?void 0:N.properties.line}},{key:"isDragTrigger",get:function(){return this.options.trigger==="drag"}},{key:"isClickTrigger",get:function(){return this.options.trigger==="click"}},{key:"getDefaultOptions",value:function(N){var Q=No(No({},Jv(yd(P.prototype),"getDefaultOptions",this).call(this,N)),{},{showMidPoint:!1,trigger:"click",autoActive:!1,helper:o1(kx)});return N.trigger==="drag"&&(Q.helper=No(No({},Q.helper),Rx)),Q}},{key:"getMidPointsByLine",value:function(N){return[]}},{key:"handleCreatePolygon",value:function(N,Q){var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Le=Q.properties.nodes;return T2(Le.slice(0,Le.length-1),No({nodes:N,line:Q},_e))}},{key:"handleFirstNodeCreate",value:function(N){var Q=aS(N.geometry.coordinates),_e=this.handleCreatePolygonLine(N,Q,{isDraw:!0,isActive:!0}),Le=this.handleCreatePolygon([N,Q],_e,{isDraw:!0,isActive:!0});return this.setPolygonData(function(rt){return sS({target:Le,data:[].concat(G1(rt),[Le]),targetHandler:function(on){on.properties=No(No({},on.properties),{},{isDraw:!0,isActive:!0})}})}),this.emit(u.DrawEvent.AddNode,N,this.drawPolygon,this.getPolygonData()),this.setHelper("drawFinish"),N}},{key:"handleLastNodeCreate",value:function(N){var Q=this.options,_e=Q.autoActive,Le=Q.editable,rt=this.drawPolygon;return rt&&(this.setLineData(function(on){return[].concat(G1(on),[rt.properties.line])}),this.setActivePolygon(rt),_e&&Le||this.handlePolygonUnClick(rt),this.emit(u.DrawEvent.Add,rt,this.getPolygonData()),this.emit(u.DrawEvent.AddNode,rt.properties.nodes[1],this.drawPolygon,this.getPolygonData()),this.setHelper(Le?_e?"pointHover":"polygonHover":this.addable?"draw":null)),N}},{key:"onPointCreate",value:function(N){var Q=this;if(this.addable&&!this.dragPoint&&!this.editLine&&this.isClickTrigger){var _e=this.drawPolygon,Le=gt(N),rt=this.handleCreatePoint(Le);return _e?requestAnimationFrame(function(){Q.handleLastNodeCreate(rt)}):this.handleFirstNodeCreate(rt),rt}}},{key:"setActivePolygon",value:function(N){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.setActiveLine(N.properties.line,Q),this.setPolygonData(function(Le){return sS({target:N,data:Le,targetHandler:function(rt){rt.properties=No(No({},rt.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},Q)},otherHandler:function(rt){rt.properties=No(No({},rt.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(N.properties.nodes),this.setDashLineData([]);var _e=this.getAllTexts();return this.setTextData(_e),N}},{key:"onPointDragging",value:function(N){var Q=this.dragPoint;if(Q){var _e=this.handlePointDragging(Q,ct(N)),Le=this.editPolygon;return _e&&Le&&(this.syncPolygonNodes(Le,Le.properties.nodes.map(function(rt){return mC(rt,_e)?_e:rt})),this.setActivePolygon(Le)),_e}}},{key:"onSceneDragStart",value:function(N){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&(this.scene.setMapStatus({dragEnable:!1}),this.handleFirstNodeCreate(this.handleCreatePoint(gt(N))))}},{key:"onSceneDragEnd",value:function(N){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&this.drawPolygon&&(this.scene.setMapStatus({dragEnable:!1}),this.handleLastNodeCreate(this.handleCreatePoint(gt(N))))}},{key:"onSceneMouseMove",value:function(N){var Q=this.drawPolygon;if(Q){var _e=Q.properties.nodes,Le=P2(_e),rt=_v(_e);rt.geometry.coordinates=gt(N),this.syncPolygonNodes(Q,[Le,rt]),this.setDashLineData([Q.properties.line]),this.setTextData(this.getAllTexts()),this.resetCursor()}}},{key:"bindSceneDragEvent",value:function(){this.unbindSceneDragEvent(),this.sceneRender.on(u.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.on(u.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!1})}},{key:"unbindSceneDragEvent",value:function(){this.sceneRender.off(u.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.off(u.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!0})}},{key:"bindEnableEvent",value:function(){Jv(yd(P.prototype),"bindEnableEvent",this).call(this),this.isDragTrigger&&this.bindSceneDragEvent()}},{key:"unbindEnableEvent",value:function(){Jv(yd(P.prototype),"unbindEnableEvent",this).call(this),this.isDragTrigger&&this.unbindSceneDragEvent()}},{key:"bindThis",value:function(){Jv(yd(P.prototype),"bindThis",this).call(this),this.onSceneDragStart=this.onSceneDragStart.bind(this),this.onSceneDragEnd=this.onSceneDragEnd.bind(this)}}]),P}(H2),F1=function(ot){$a(P,ot);var w=Pv(P);function P(N,Q){var _e;return mu(this,P),(_e=w.call(this,N,Q)).bindPointRenderEvent(),_e.bindSceneEvent(),_e.bindMidPointRenderEvent(),_e.bindLineRenderEvent(),_e.bindPolygonRenderEvent(),_e}return rn(P,[{key:"getDefaultOptions",value:function(N){var Q=No(No({},Jv(yd(P.prototype),"getDefaultOptions",this).call(this,N)),{},{showMidPoint:!1,circleSteps:60});return Q.distanceOptions&&(Q.distanceOptions.showTotalDistance=!0,Q.distanceOptions.showOnRadius===void 0&&(Q.distanceOptions.showOnRadius=!0)),Q.helper&&(Q.helper=No(No({},Q.helper),x2)),Q}},{key:"getDistanceTexts",value:function(){var N=this.options.distanceOptions;if(!N)return[];var Q=[],_e=N.showWhen,Le=N.showDashDistance,rt=N.format,on=N.showTotalDistance;return Q.push.apply(Q,G1(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!0,format:rt,showDashDistance:Le})).concat(G1(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:on,format:rt,showWhen:_e})))),Q}},{key:"setData",value:function(N){var Q=this,_e=N.map(function(Le){var rt,on,Bs;Le.properties=No(No({},Pw()),Le.properties);var Pa=(rt=Le.properties)===null||rt===void 0?void 0:rt.nodes;if(((on=Pa)===null||on===void 0?void 0:on.length)!==2){var uh=N1(Lx(Le).geometry.coordinates,2),zg=uh[0],M0=uh[1],z0=U1(Le),Zv=z0[2],Vv=(z0[1]+z0[3])/2;Pa=[aS([zg,M0]),aS([Zv,Vv])],Le.properties.nodes=Pa}var i1=Pa[0],Kv=Pa[1],wv=!!(!((Bs=Le.properties)===null||Bs===void 0)&&Bs.isActive),oy=Le.properties.line;return oy||(oy=Q.handleCreatePolygonLine(i1,Kv,{isActive:wv}),Le.properties.line=oy),Q.handleCreatePolygon([i1,Kv],oy,No(No({},Le.properties),{},{isActive:wv}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:_e,line:_e.map(function(Le){return Le.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(N,Q){var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Le=this.getBoundaryPositions(N,Q).map(function(rt){return aS(rt)});return qv(Le,_e)}},{key:"syncPolygonNodes",value:function(N,Q){var _e=N.properties.line,Le=this.getBoundaryPositions(Q[0],Q[1]);return N.properties.nodes=Q,N.geometry.coordinates=[Le],this.setPolygonData(function(rt){return rt.map(function(on){return mC(on,N)?N:on})}),this.setPointData(N.properties.isDraw?[Q[0]]:Q),_e.properties.nodes.forEach(function(rt,on){rt.geometry.coordinates=Le[on]}),_e.geometry.coordinates=Le,N}},{key:"onLineDragging",value:function(N){var Q=this.dragPolygon,_e=N1(this.previousPosition,2),Le=_e[0],rt=_e[1],on=Jv(yd(P.prototype),"onLineDragging",this).call(this,N);if(Q){var Bs=N1(gt(N),2),Pa=Bs[0],uh=Bs[1];Q.properties.nodes.forEach(function(zg){var M0=N1(zg.geometry.coordinates,2);zg.geometry.coordinates=[M0[0]+Pa-Le,M0[1]+uh-rt]}),this.syncPolygonNodes(Q,Q.properties.nodes),this.setActivePolygon(Q,{isDrag:!0}),this.emit(u.DrawEvent.Dragging,Q,this.getPolygonData())}return on}},{key:"getBoundaryPositions",value:function(N,Q){for(var _e=this.options.circleSteps,Le=yx(N,Q,{units:"meters"}),rt=[],on=0;_e>on;on++)rt.push(Bw(N,Le,-360*on/_e,{units:"meters"}).geometry.coordinates);return rt.push(rt[0]),rt}}]),P}(qw),DS=function(ot){$a(P,ot);var w=Pv(P);function P(N,Q){var _e;return mu(this,P),(_e=w.call(this,N,Q)).drawLineFinish=function(){var Le,rt=_e.drawLine,on=(Le=rt==null?void 0:rt.properties.nodes)!==null&&Le!==void 0?Le:[];if(rt&&(on==null?void 0:on.length)>1){_e.setActiveLine(rt);var Bs=_e.options,Pa=Bs.autoActive,uh=Bs.editable;Pa&&uh||_e.handleLineUnClick(rt),_e.setHelper(uh&&Pa?"pointHover":_e.addable?"draw":null),_e.emit(u.DrawEvent.Add,rt,_e.getLineData())}},_e.sceneRender.on(u.RenderEvent.DblClick,_e.drawLineFinish),_e.bindPointRenderEvent(),_e.bindSceneEvent(),_e.bindMidPointRenderEvent(),_e.bindLineRenderEvent(),_e}return rn(P,[{key:"dragItem",get:function(){return this.dragLine}},{key:"editItem",get:function(){return this.editLine}},{key:"getMainLayer",value:function(){var N,Q;return(N=(Q=this.render.line)===null||Q===void 0?void 0:Q.getLayers())!==null&&N!==void 0?N:[]}},{key:"setData",value:function(N){var Q=N.map(function(_e){var Le,rt;return _e.properties=No(No({},_C()),(Le=_e.properties)!==null&&Le!==void 0?Le:{}),!((rt=_e.properties.nodes)===null||rt===void 0)&&rt.length||(_e.properties.nodes=Bg(_e).map(function(on){return aS(on)})),_e});this.source.setData({point:[],midPoint:[],dashLine:[],line:Q}),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 N;Jv(yd(P.prototype),"bindPointRenderEvent",this).call(this),(N=this.pointRender)===null||N===void 0||N.on(u.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"onPointClick",value:function(N){var Q,_e=this,Le=this.drawLine,rt=(Q=Le==null?void 0:Le.properties.nodes)!==null&&Q!==void 0?Q:[],on=N.feature;if(mC(on,_v(rt)))requestAnimationFrame(function(){_e.drawLineFinish()});else{var Bs=N1(on.geometry.coordinates,2);N.lngLat={lng:Bs[0],lat:Bs[1]},this.onPointCreate(N)}}},{key:"removeNode",value:function(N,Q){var _e,Le=this.getTargetFeature(Q),rt=this.getTargetFeature(N,(_e=Le==null?void 0:Le.properties.nodes)!==null&&_e!==void 0?_e:[]);if(Le&&rt){var on,Bs=(on=Le==null?void 0:Le.properties.nodes)!==null&&on!==void 0?on:[];if(3>Bs.length)return;this.syncLineNodes(Le,Bs.filter(function(Pa){return!mC(rt,Pa)})),this.emit(u.DrawEvent.RemoveNode,rt,Le,this.getLineData()),this.emit(u.DrawEvent.Edit,Le,this.getLineData())}}},{key:"onPointContextMenu",value:function(N){var Q,_e=this.editLine,Le=N.feature,rt=(Q=_e==null?void 0:_e.properties.nodes)!==null&&Q!==void 0?Q:[];if(_e&&rt.length>=3)return this.removeNode(Le,_e),this.scene.setMapStatus({dragEnable:!0}),Le}},{key:"onPointCreate",value:function(N){if(this.addable){var Q=Jv(yd(P.prototype),"onPointCreate",this).call(this,N);return Q&&(this.setHelper("drawFinish"),this.emit(u.DrawEvent.AddNode,Q,this.drawLine,this.getLineData())),Q}}},{key:"onPointDragEnd",value:function(N){var Q=this.editLine,_e=Jv(yd(P.prototype),"onPointDragEnd",this).call(this,N);return Q&&_e&&this.emit(u.DrawEvent.Edit,Q,this.getLineData()),_e}},{key:"onLineDragStart",value:function(N){var Q=Jv(yd(P.prototype),"onLineDragStart",this).call(this,N);return Q&&this.emit(u.DrawEvent.DragStart,Q,this.getLineData()),Q}},{key:"onLineDragging",value:function(N){var Q=Jv(yd(P.prototype),"onLineDragging",this).call(this,N);return Q&&this.emit(u.DrawEvent.Dragging,Q,this.getLineData()),Q}},{key:"onLineDragEnd",value:function(N){var Q=Jv(yd(P.prototype),"onLineDragEnd",this).call(this,N);return Q&&(this.emit(u.DrawEvent.DragEnd,Q,this.getLineData()),this.emit(u.DrawEvent.Edit,Q,this.getLineData())),Q}},{key:"onMidPointClick",value:function(N){var Q=this.editLine,_e=Jv(yd(P.prototype),"onMidPointClick",this).call(this,N);return Q&&_e&&(this.emit(u.DrawEvent.Edit,Q,this.getLineData()),this.emit(u.DrawEvent.AddNode,_e,Q,this.getLineData())),_e}},{key:"onSceneMouseMove",value:function(N){var Q=this.drawLine;if(Q){var _e,Le=_v(Q.properties.nodes),rt=gt(N);this.options.adsorbOptions&&(rt=(_e=this.getAdsorbPosition(rt))!==null&&_e!==void 0?_e:rt),this.setDashLineData([v_([rt,Le.geometry.coordinates])]),this.setTextData(this.getAllTexts())}}},{key:"setActiveFeature",value:function(N){var Q=this.getTargetFeature(N);Q?this.setActiveLine(Q):this.clearActiveLine()}},{key:"resetFeatures",value:function(){var N=this.getLineData();this.drawLine&&(N=N.filter(function(Q){return!Q.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setTextData(function(Q){return Q.filter(function(_e){return!_e.properties.isActive})})),this.editLine&&this.handleLineUnClick(this.editLine),this.setLineData(N.map(function(Q){return Q.properties=No(No({},Q.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),Q}))}},{key:"enablePointRenderAction",value:function(){var N;Jv(yd(P.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((N=this.pointRender)===null||N===void 0||N.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var N;Jv(yd(P.prototype),"disablePointRenderAction",this).call(this),(N=this.pointRender)===null||N===void 0||N.disableContextMenu()}},{key:"bindEnableEvent",value:function(){Jv(yd(P.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.sceneRender.enableDblClick()}},{key:"unbindEnableEvent",value:function(){Jv(yd(P.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.sceneRender.disableDblClick()}},{key:"bindThis",value:function(){Jv(yd(P.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)}}]),P}(ww),QC=function(ot){$a(P,ot);var w=Pv(P);function P(N,Q){var _e;return mu(this,P),(_e=w.call(this,N,Q)).bindPointRenderEvent(),_e}return rn(P,[{key:"dragItem",get:function(){return this.dragPoint}},{key:"editItem",get:function(){return this.editPoint}},{key:"getDefaultOptions",value:function(N){var Q=No(No({},this.getCommonOptions(N)),{},{helper:o1(Hy),initialData:N.initialData});return Q.style.point=xu,Q}},{key:"bindEnableEvent",value:function(){Jv(yd(P.prototype),"bindEnableEvent",this).call(this),this.enablePointRenderAction()}},{key:"unbindEnableEvent",value:function(){Jv(yd(P.prototype),"unbindEnableEvent",this).call(this),this.disablePointRenderAction()}},{key:"getRenderTypes",value:function(){return["point"]}},{key:"getMainLayer",value:function(){var N,Q;return(N=(Q=this.render.point)===null||Q===void 0?void 0:Q.getLayers())!==null&&N!==void 0?N:[]}},{key:"setData",value:function(N){this.setPointData(N.map(function(Q){var _e;return Q.properties=No(No({},pw()),(_e=Q.properties)!==null&&_e!==void 0?_e:{}),Q}))}},{key:"getData",value:function(){return this.getPointData()}},{key:"onPointCreate",value:function(N){if(this.addable){var Q=Jv(yd(P.prototype),"onPointCreate",this).call(this,N);if(Q)return this.options.editable&&this.setHelper("pointHover"),this.emit(u.DrawEvent.Add,Q,this.getData()),Q}else this.setPointData(function(_e){return _e.map(function(Le){return Le.properties=No(No({},Le.properties),{},{isHover:!1,isActive:!1}),Le})})}},{key:"onPointMouseMove",value:function(N){var Q=Jv(yd(P.prototype),"onPointMouseMove",this).call(this,N);return this.options.editable&&!this.dragPoint&&this.setHelper("pointHover"),Q}},{key:"onPointMouseOut",value:function(N){var Q=Jv(yd(P.prototype),"onPointMouseOut",this).call(this,N);return this.setHelper(this.addable?"draw":null),Q}},{key:"onPointDragStart",value:function(N){var Q=Jv(yd(P.prototype),"onPointDragStart",this).call(this,N);return this.setHelper("pointDrag"),this.emit(u.DrawEvent.DragStart,Q,this.getData()),Q}},{key:"onPointDragging",value:function(N){var Q=Jv(yd(P.prototype),"onPointDragging",this).call(this,N);return Q&&this.options.editable&&this.emit(u.DrawEvent.Dragging,Q,this.getData()),Q}},{key:"onPointDragEnd",value:function(N){var Q=Jv(yd(P.prototype),"onPointDragEnd",this).call(this,N);return Q&&this.options.editable&&(this.setHelper("pointHover"),this.emit(u.DrawEvent.DragEnd,Q,this.getData()),this.emit(u.DrawEvent.Edit,Q,this.getData())),Q}},{key:"bindThis",value:function(){Jv(yd(P.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this)}},{key:"onSceneMouseMove",value:function(N){}},{key:"setActiveFeature",value:function(N){var Q=this.getTargetFeature(N);this.setPointData(function(_e){return _e.map(function(Le){return Le.properties.isActive=mC(Q,Le),Le})})}},{key:"resetFeatures",value:function(){this.setPointData(function(N){return N.map(function(Q){return Q.properties=No(No({},Q.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),Q})})}}]),P}(vy),KS=function(ot){$a(P,ot);var w=Pv(P);function P(N,Q){var _e;return mu(this,P),(_e=w.call(this,N,Q)).drawPolygonFinish=function(){var Le,rt=_e.drawPolygon,on=(Le=rt==null?void 0:rt.properties.nodes)!==null&&Le!==void 0?Le:[];if(rt&&on.length>=3){rt.properties.isDraw=!1,_e.syncPolygonNodes(rt,on),_e.setActivePolygon(rt);var Bs=_e.options,Pa=Bs.autoActive,uh=Bs.editable;Pa&&uh||_e.handlePolygonUnClick(rt),_e.setHelper(uh?Pa?"pointHover":"polygonHover":_e.addable?"draw":null),_e.emit(u.DrawEvent.Add,rt,_e.getPolygonData())}},_e.sceneRender.on(u.RenderEvent.DblClick,_e.drawPolygonFinish),_e.bindPointRenderEvent(),_e.bindSceneEvent(),_e.bindMidPointRenderEvent(),_e.bindLineRenderEvent(),_e.bindPolygonRenderEvent(),_e}return rn(P,[{key:"getDefaultOptions",value:function(N){return No(No({},Jv(yd(P.prototype),"getDefaultOptions",this).call(this,N)),{},{liveUpdate:!1})}},{key:"setData",value:function(N){var Q=N.map(function(_e){var Le,rt;if(_e.properties=No(No({},Pw()),(Le=_e.properties)!==null&&Le!==void 0?Le:{}),!(!((rt=_e.properties.nodes)===null||rt===void 0)&&rt.length)){var on=Bg(_e);on=on.slice(0,on.length-1),_e.properties.nodes=on.map(function(Pa){return aS(Pa)})}if(!_e.properties.line){var Bs=_e.properties.nodes;_e.properties.line=qv([].concat(G1(Bs),[aS(P2(Bs).geometry.coordinates)]))}return _e});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:Q,line:Q.map(function(_e){return _e.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"onPointCreate",value:function(N){if(this.addable&&!this.dragPoint){var Q=Jv(yd(P.prototype),"onPointCreate",this).call(this,N),_e=this.drawPolygon,Le=this.drawLine;return Q&&(_e?(this.syncPolygonNodes(_e,[].concat(G1(_e.properties.nodes),[Q])),this.setDashLineData([v_([gt(N),_e.properties.nodes[0].geometry.coordinates])]),_e.properties.nodes.length>1&&this.setHelper("drawFinish")):Le&&(this.handleCreatePolygon([Q],Le),this.setHelper("drawContinue")),this.emit(u.DrawEvent.AddNode,Q,_e,this.getPolygonData())),Q}}},{key:"onPointClick",value:function(N){var Q=this,_e=this.drawPolygon,Le=N.feature;if(_e){var rt=_e.properties.nodes;if(rt.length<3||!mC(P2(rt),Le)&&!mC(_v(rt),Le)){var on=N1(Le.geometry.coordinates,2);N.lngLat={lng:on[0],lat:on[1]},this.onPointCreate(N)}else requestAnimationFrame(function(){Q.drawPolygonFinish()})}}},{key:"onPointDragging",value:function(N){var Q=this.dragPoint,_e=this.editPolygon;if(Q&&_e){var Le=_e.properties.line;Le.properties.nodes=Le.properties.nodes.map(function(M0){return mC(M0,Q)?Q:M0});var rt=Le.properties.nodes,on=rt.slice(0,rt.length-1),Bs=P2(rt),Pa=_v(rt),uh=mC(Bs,Q)||mC(Pa,Q);if(uh&&(Bs.geometry.coordinates=Pa.geometry.coordinates=gt(N)),this.options.adsorbOptions&&uh){var zg=this.resetAdsorbLngLat(N);zg&&(Bs.geometry.coordinates=Pa.geometry.coordinates=zg)}Jv(yd(P.prototype),"onPointDragging",this).call(this,N),this.syncPolygonNodes(_e,on),this.setActivePolygon(_e)}return Q}},{key:"onLineDragging",value:function(N){var Q=this.dragPolygon,_e=Jv(yd(P.prototype),"onLineDragging",this).call(this,N);if(_e&&Q){var Le=_e.properties.nodes;this.syncPolygonNodes(Q,Le.slice(0,Le.length-1)),this.emit(u.DrawEvent.Dragging,Q,this.getPolygonData())}return _e}},{key:"onMidPointClick",value:function(N){var Q=Jv(yd(P.prototype),"onMidPointClick",this).call(this,N),_e=this.editPolygon;return Q&&_e&&(this.emit(u.DrawEvent.Edit,_e,this.getPolygonData()),this.emit(u.DrawEvent.AddNode,Q,_e,this.getPolygonData())),Q}},{key:"onSceneMouseMove",value:function(N){var Q,_e=this.drawPolygon,Le=(Q=_e==null?void 0:_e.properties.nodes)!==null&&Q!==void 0?Q:[];if(_e&&Le.length){this.options.adsorbOptions&&this.resetAdsorbLngLat(N);var rt=gt(N),on=[];if(on.push(v_([rt,P2(Le).geometry.coordinates])),Le.length>1&&on.push(v_([rt,_v(Le).geometry.coordinates])),this.options.liveUpdate&&Le.length>=2){var Bs=Bg(Fv(Le));_e.geometry.coordinates=[[].concat(G1(Bs),[rt,Bs[0]])],this.setPolygonData(this.getPolygonData())}this.setDashLineData(on),this.setTextData(this.getAllTexts())}}},{key:"removeNode",value:function(N,Q){var _e,Le=this.getTargetFeature(Q),rt=this.getTargetFeature(N,(_e=Le==null?void 0:Le.properties.nodes)!==null&&_e!==void 0?_e:[]);if(Le&&rt){var on,Bs=(on=Le==null?void 0:Le.properties.nodes)!==null&&on!==void 0?on:[];if(4>Bs.length)return;this.syncPolygonNodes(Le,Bs.filter(function(Pa){return!mC(rt,Pa)})),this.emit(u.DrawEvent.RemoveNode,rt,Le,this.getLineData()),this.emit(u.DrawEvent.Edit,Le,this.getPolygonData())}}},{key:"onPointContextMenu",value:function(N){var Q,_e=this.editPolygon,Le=N.feature,rt=(Q=_e==null?void 0:_e.properties.nodes)!==null&&Q!==void 0?Q:[];if(_e&&rt.length>=4)return rt.find(function(on){return mC(on,Le)})||(Le=rt[0]),this.removeNode(Le,_e),Le}},{key:"bindPointRenderEvent",value:function(){var N;Jv(yd(P.prototype),"bindPointRenderEvent",this).call(this),(N=this.pointRender)===null||N===void 0||N.on(u.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"enablePointRenderAction",value:function(){var N;Jv(yd(P.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((N=this.pointRender)===null||N===void 0||N.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var N;Jv(yd(P.prototype),"disablePointRenderAction",this).call(this),(N=this.pointRender)===null||N===void 0||N.disableContextMenu()}}]),P}(H2),O_=function(ot){$a(P,ot);var w=Pv(P);function P(N,Q){var _e;return mu(this,P),(_e=w.call(this,N,Q)).bindPointRenderEvent(),_e.bindSceneEvent(),_e.bindMidPointRenderEvent(),_e.bindLineRenderEvent(),_e.bindPolygonRenderEvent(),_e}return rn(P,[{key:"getDefaultOptions",value:function(N){var Q=Jv(yd(P.prototype),"getDefaultOptions",this).call(this,N);return Q.helper&&(Q.helper=No(No({},Q.helper),K_)),Q}},{key:"setData",value:function(N){var Q=this,_e=N.map(function(Le){var rt,on,Bs;Le.properties=No(No({},Pw()),(rt=Le.properties)!==null&&rt!==void 0?rt:{});var Pa=Le.properties.nodes;if(((on=Pa)===null||on===void 0?void 0:on.length)!==2){var uh=N1(U1(Le),4),zg=uh[2],M0=uh[3];Pa=[aS([uh[0],uh[1]]),aS([zg,M0])],Le.properties.nodes=Pa}var z0=N1(Pa,2),Zv=z0[0],Vv=z0[1],i1=!!(!((Bs=Le.properties)===null||Bs===void 0)&&Bs.isActive),Kv=Le.properties.line;return Kv||(Kv=Q.handleCreatePolygonLine(Zv,Vv,{isActive:i1}),Le.properties.line=Kv),Q.handleCreatePolygon([Zv,Vv],Kv,No(No({},Le.properties),{},{isActive:i1}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:_e,line:_e.map(function(Le){return Le.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(N,Q){var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Le=Bg(Dw(Fv([N,Q]))).map(function(rt,on){return on===0?N:on===2?Q:aS(rt)});return qv(Le,_e)}},{key:"syncPolygonNodes",value:function(N,Q){var _e=N.properties.line,Le=Bg(Dw(Fv(Q)));N.properties.nodes=Q,N.geometry.coordinates=[Le],this.setPolygonData(function(Bs){return Bs.map(function(Pa){return mC(Pa,N)?N:Pa})}),this.setPointData(N.properties.isDraw?[Q[0]]:Q);var rt=_e.properties.nodes,on=Le.filter(function(Bs){return!Ht(Bs,Q[0].geometry.coordinates)&&!Ht(Bs,Q[1].geometry.coordinates)});return rt.forEach(function(Bs,Pa){var uh=[0,0];switch(Pa){case 0:uh=Q[0].geometry.coordinates;break;case 1:uh=on[0];break;case 2:uh=Q[1].geometry.coordinates;break;case 3:uh=on[1];break;case 4:uh=o1(Q[0].geometry.coordinates)}Bs.geometry.coordinates=uh}),_e.geometry.coordinates=Le,N}},{key:"onLineDragging",value:function(N){var Q=Jv(yd(P.prototype),"onLineDragging",this).call(this,N),_e=this.dragPolygon;if(Q&&_e){var Le=_e.properties.line.properties.nodes;this.syncPolygonNodes(_e,[Le[0],Le[2]]),this.setActivePolygon(_e,{isDrag:!0}),this.emit(u.DrawEvent.Dragging,_e,this.getPolygonData())}return Q}}]),P}(qw),Sy=function(ot,w){for(var P=ot;P&&!Array.from(P.classList).includes(w);)P=P.parentElement;return P},u_=["point","line","polygon","rect","circle","clear"],Jx={point:"#l7draw-point",line:"#l7draw-line",polygon:"#l7draw-polygon",rect:"#l7draw-rect",circle:"#l7draw-circle",clear:"#l7draw-qingkong"},i2={point:QC,line:DS,polygon:KS,rect:O_,circle:F1},$x="data-draw-type",bC="l7-draw-control",dS="".concat(bC,"__btn"),SE="".concat(dS,"--active");(function(ot){var w,P,N,Q,_e,Le='',rt=(rt=document.getElementsByTagName("script"))[rt.length-1].getAttribute("data-injectcss");if(rt&&!ot.__iconfont__svg__cssinject__){ot.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(Bs){console&&console.log(Bs)}}function on(){_e||(_e=!0,N())}w=function(){var Bs,Pa=document.createElement("div");Pa.innerHTML=Le,Le=null,(Pa=Pa.getElementsByTagName("svg")[0])&&(Pa.setAttribute("aria-hidden","true"),Pa.style.position="absolute",Pa.style.width=0,Pa.style.height=0,Pa.style.overflow="hidden",(Bs=document.body).firstChild?function(uh,zg){zg.parentNode.insertBefore(uh,zg)}(Pa,Bs.firstChild):Bs.appendChild(Pa))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(w,0):(P=function(){document.removeEventListener("DOMContentLoaded",P,!1),w()},document.addEventListener("DOMContentLoaded",P,!1)):document.attachEvent&&(N=w,Q=ot.document,_e=!1,function Bs(){try{Q.documentElement.doScroll("left")}catch(Pa){return void setTimeout(Bs,50)}on()}(),Q.onreadystatechange=function(){Q.readyState=="complete"&&(Q.onreadystatechange=null,on())})})(window),l1(".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 fE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YC=/^\w*$/,Zw=function(ot,w){if(cE(ot))return!1;var P=typeof ot;return!(P!="number"&&P!="symbol"&&P!="boolean"&&ot!=null&&!uS(ot))||YC.test(ot)||!fE.test(ot)||w!=null&&ot in Object(w)};function xE(ot,w){if(typeof ot!="function"||w!=null&&typeof w!="function")throw new TypeError("Expected a function");var P=function(){var N=arguments,Q=w?w.apply(this,N):N[0],_e=P.cache;if(_e.has(Q))return _e.get(Q);var Le=ot.apply(this,N);return P.cache=_e.set(Q,Le)||_e,Le};return P.cache=new(xE.Cache||Aw),P}xE.Cache=Aw;var cA=xE,AA=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wT=/\\(\\)?/g,Vx=function(ot){var w=cA(ot,function(N){return P.size===500&&P.clear(),N}),P=w.cache;return w}(function(ot){var w=[];return ot.charCodeAt(0)===46&&w.push(""),ot.replace(AA,function(P,N,Q,_e){w.push(Q?_e.replace(wT,"$1"):N||P)}),w}),QT=rE?rE.prototype:void 0,qA=QT?QT.toString:void 0,p2=function ot(w){if(typeof w=="string")return w;if(cE(w))return Mx(w,ot)+"";if(uS(w))return qA?qA.call(w):"";var P=w+"";return P=="0"&&1/w==-1/0?"-0":P},Fx=function(ot){return ot==null?"":p2(ot)},pI=function(ot,w){return cE(ot)?ot:Zw(ot,w)?[ot]:Vx(Fx(ot))},i3=function(ot){if(typeof ot=="string"||uS(ot))return ot;var w=ot+"";return w=="0"&&1/ot==-1/0?"-0":w},rT=function(ot,w){for(var P=0,N=(w=pI(w,ot)).length;ot!=null&&N>P;)ot=ot[i3(w[P++])];return P&&P==N?ot:void 0},iT=function(ot,w,P){var N=-1,Q=ot.length;0>w&&(w=-w>Q?0:Q+w),0>(P=P>Q?Q:P)&&(P+=Q),Q=w>P?0:P-w>>>0,w>>>=0;for(var _e=Array(Q);++Nw.length?ot:rT(ot,iT(w,0,-1))},IS=function(ot,w){return w=pI(w,ot),(ot=E4(ot,w))==null||delete ot[i3(_v(w))]},m3=function(ot){return gv(ot)?void 0:ot},eA=rE?rE.isConcatSpreadable:void 0,DD=function(ot){return cE(ot)||IT(ot)||!!(eA&&ot&&ot[eA])},d3=function ot(w,P,N,Q,_e){var Le=-1,rt=w.length;for(N||(N=DD),_e||(_e=[]);++Le0&&N(on)?P>1?ot(on,P-1,N,Q,_e):c3(_e,on):Q||(_e[_e.length]=on)}return _e},Y1=function(ot){return ot!=null&&ot.length?d3(ot,1):[]},zD=function(ot){return Yx(S1(ot,void 0,Y1),ot+"")}(function(ot,w){var P={};if(ot==null)return P;var N=!1;w=Mx(w,function(_e){return _e=pI(_e,ot),N||(N=_e.length>1),_e}),XE(ot,OA(ot),P),N&&(P=Wv(P,7,m3));for(var Q=w.length;Q--;)IS(P,w[Q]);return P}),LT=zD,hD=function(ot){$a(P,ot);var w=Pv(P);function P(N){var Q,_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return mu(this,P),(Q=w.call(this,_e)).controlOption=void 0,Q.sceneInstance=void 0,Q.drawMap={},Q.btnMap={},Q.activeType=null,Q.emitDataChange=Y(function(){Q.emit(u.ControlEvent.DataChange,Q.getDrawData())},16),Q.emitDrawSelect=function(Le,rt){Q.emit(u.ControlEvent.DrawSelect,Le,rt)},Q.sceneInstance=N,Q.controlOption=No(No({},Q.getDefault()),_e||{}),Q.onBtnClick=Q.onBtnClick.bind(yv(Q)),Q}return rn(P,[{key:"getActiveType",value:function(){return this.activeType}},{key:"getDefault",value:function(){return No(No({},Jv(yd(P.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(N){return Jv(yd(P.prototype),"addTo",this).call(this,N),this.init(),this}},{key:"onAdd",value:function(){var N=this.controlOption,Q=N.className,_e=N.style,Le=D.DOM.create("div","".concat(bC," ").concat(Q));return _e&&Le.setAttribute("style",_e),Le}},{key:"onRemove",value:function(){Object.values(this.drawMap).forEach(function(N){N.clear(!0)})}},{key:"init",value:function(){var N,Q=this,_e=[];Object.entries(this.controlOption.drawConfig).filter(function(Le){var rt=N1(Le,2);return rt[1]}).sort(function(Le,rt){var on=N1(Le,2)[1],Bs=N1(rt,2)[1],Pa=Number.MAX_SAFE_INTEGER;return(typeof on=="boolean"?Pa:on.order)-(typeof Bs=="boolean"?Pa:Bs.order)}).map(function(Le){var rt=N1(Le,2),on=rt[1];return[rt[0],va(on)==="object"?LT(on,"order"):on]}).forEach(function(Le){var rt=N1(Le,2),on=rt[0],Bs=rt[1];if(va(Bs)==="object"&&Bs.button){var Pa=Bs.button;Pa.classList.contains("l7-draw-control__btn")||Pa.classList.add("l7-draw-control__btn"),Q.btnMap[on]=Pa,_e.push(Pa)}else if(Bs&&u_.includes(on)){var uh=Q.initBtn(on);uh.addEventListener("click",Q.onBtnClick),_e.push(uh),Q.btnMap[on]=uh;var zg=i2[on];if(zg&&Q.sceneInstance){var M0=new zg(Q.sceneInstance,No(No({},Q.controlOption.commonDrawOptions),typeof Bs=="boolean"?{}:Bs));M0.on(u.DrawEvent.Change,Q.emitDataChange),M0.on(u.DrawEvent.Select,function(z0){Q.emitDrawSelect(on,z0)}),Q.drawMap[on]=M0}}}),(N=this.container).append.apply(N,_e),this.controlOption.defaultActiveType&&this.onDrawClick(this.controlOption.defaultActiveType)}},{key:"getDrawData",value:function(){return Mv(nC(this.drawMap).map(function(N){var Q=N1(N,2);return[Q[0],Q[1].getData()]}))}},{key:"getTypeDraw",value:function(N){var Q;return(Q=this.drawMap[N])!==null&&Q!==void 0?Q:null}},{key:"onBtnClick",value:function(N){var Q=Sy(N.target,dS);if(Q){var _e=Q.getAttribute($x);_e==="clear"?this.clearDrawData():this.onDrawClick(_e)}}},{key:"setActiveType",value:function(N){var Q=null,_e=this.activeType;if(_e){var Le,rt=this.btnMap[_e];if(rt){D.DOM.removeClass(rt,SE);var on=this.controlOption.activeButtonClassName;on&&D.DOM.removeClass(rt,on)}(Le=this.drawMap[_e])===null||Le===void 0||Le.disable(),Q=null}if(_e!==N&&N){var Bs;(Bs=this.drawMap[N])===null||Bs===void 0||Bs.enable();var Pa=this.btnMap[N];Pa&&D.DOM.addClass(Pa,"".concat(SE," ").concat(this.controlOption.activeButtonClassName)),Q=N}this.activeType=Q,this.emit(u.ControlEvent.DrawChange,Q)}},{key:"onDrawClick",value:function(N){this.setActiveType(N)}},{key:"clearDrawData",value:function(){Object.values(this.drawMap).forEach(function(N){N==null||N.clear()}),this.emit(u.ControlEvent.DrawClear)}},{key:"initBtn",value:function(N){var Q=D.DOM.create("button","".concat(dS," ").concat(this.controlOption.buttonClassName));return Q.innerHTML=``),Q.setAttribute($x,N),Q}}]),P}(D.Control);u.ACTIVE_COLOR=Je,u.BaseMode=Ty,u.CircleDrawer=F1,u.DEFAULT_ADSORB_CONFIG=fr,u.DEFAULT_AREA_OPTIONS=Kg,u.DEFAULT_COMMON_OPTIONS=yt,u.DEFAULT_CURSOR_MAP=b,u.DEFAULT_DISTANCE_OPTIONS=yu,u.DEFAULT_HISTORY_CONFIG=i0,u.DEFAULT_KEYBOARD_CONFIG=ii,u.DEFAULT_MID_POINT_STYLE=Sa,u.DEFAULT_NODE_NORMAL_STYLE=Gs,u.DEFAULT_NODE_STYLE=Wg,u.DEFAULT_POINT_NORMAL_STYLE=er,u.DEFAULT_POINT_STYLE=xu,u.DEFAULT_POPUP_CONFIG=Nt,u.DEFAULT_SOURCE_DATA=x,u.DEFAULT_STYLE=pe,u.DEFAULT_TEXT_NORMAL_STYLE=re,u.DashLineRender=TT,u.DragPolygonMode=qw,u.DrawCircle=F1,u.DrawControl=hD,u.DrawLine=DS,u.DrawPoint=QC,u.DrawPolygon=KS,u.DrawRect=O_,u.LayerRender=zE,u.LineDrawer=DS,u.LineMode=ww,u.LineRender=Te,u.MidPointMode=h_,u.MidPointRender=ze,u.NORMAL_COLOR=we,u.PointDrawer=QC,u.PointMode=vy,u.PointRender=Pn,u.PolygonDrawer=KS,u.PolygonMode=H2,u.PolygonRender=za,u.RENDER_MAP=z,u.RectDrawer=O_,u.SceneRender=og,u.Source=P1,u.TextRender=Qe,u.calcAreaText=YE,u.calcDistanceTextsByLine=JC,u.createDashLine=v_,u.createLineFeature=qv,u.createPointFeature=aS,u.createPolygonFeature=T2,u.findMinIndex=Ea,u.getAdsorbFeature=Td,u.getAdsorbLine=p0,u.getAdsorbPoint=su,u.getDefaultLineProperties=_C,u.getDefaultPointProperties=pw,u.getDefaultPolygonProperties=Pw,u.getLineCenterPoint=Ww,u.getLngLat=ct,u.getMapDom=hy,u.getParentByClassName=Sy,u.getPosition=gt,u.getSingleColorStyle=function(ot){return{point:{normal:{color:ot},hover:{color:ot},active:{color:ot}},line:{normal:{color:ot},hover:{color:ot},active:{color:ot}},polygon:{normal:{color:ot},hover:{color:ot},active:{color:ot},style:{opacity:.2}},text:{normal:{color:ot},active:{color:ot}},midPoint:{normal:{color:ot}},dashLine:{normal:{color:ot}}}},u.getUuid=M_,u.isDev=!1,u.isSameFeature=mC,u.resetEventLngLat=Bv,u.splitByPosition=Cg,u.transLngLat2Position=xn,u.updateTargetFeature=sS,Object.defineProperty(u,"__esModule",{value:!0})})},23051:function(c,m,l){"use strict";l.r(m),l.d(m,{AJAXError:function(){return $v},AttributeType:function(){return mS},BKDRHash:function(){return sw},BaiduMap:function(){return uj},BaseLayer:function(){return q4},BaseMapService:function(){return pk},BaseMapWrapper:function(){return YO},BaseModel:function(){return Gx},BasePostProcessingPass:function(){return DP},BlendType:function(){return m1},ButtonControl:function(){return l_},CameraUniform:function(){return AL},CanvasLayer:function(){return n8},CanvasUpdateType:function(){return jS},CityBuildingLayer:function(){return i8},Control:function(){return p1},CoordinateSystem:function(){return kS},CoordinateUniform:function(){return AC},DOM:function(){return u},Earth:function(){return Lj},EarthLayer:function(){return cq},ExportImage:function(){return oT},FrequencyController:function(){return u2},Fullscreen:function(){return Go},GaodeMap:function(){return mQ},GaodeMapV1:function(){return lG},GaodeMapV2:function(){return mQ},GeoLocate:function(){return b1},GeometryLayer:function(){return xY},GoogleMap:function(){return Ile},HeatmapLayer:function(){return HU},IDebugLog:function(){return XT},ILayerStage:function(){return OC},ImageLayer:function(){return oz},InteractionEvent:function(){return tA},LRUCache:function(){return bS},LayerPopup:function(){return HH},LayerSwitch:function(){return ow},LineLayer:function(){return MZ},LineTriangulation:function(){return Ma},LinearDir:function(){return _S},LoadTileDataStatus:function(){return xT},Logo:function(){return Cw},Map:function(){return E$},MapLibre:function(){return rO},MapServiceEvent:function(){return BI},MapTheme:function(){return p3},MapType:function(){return $y},Mapbox:function(){return D$},Marker:function(){return Ar},MarkerLayer:function(){return Ng},MaskLayer:function(){return iH},MaskOperation:function(){return pS},MouseLocation:function(){return d4},PassType:function(){return J3},PointFillTriangulation:function(){return Fa},PointLayer:function(){return uz},PolygonLayer:function(){return pN},PopperControl:function(){return m2},Popup:function(){return jJ},PositionType:function(){return Yy},RasterLayer:function(){return mM},RasterTileType:function(){return lD},Satistics:function(){return D},Scale:function(){return e4},ScaleTypes:function(){return U3},Scene:function(){return Gue},SceneConifg:function(){return q0},SceneEventList:function(){return OO},SelectControl:function(){return d2},SizeUnitType:function(){return sT},Source:function(){return Se},SourceTile:function(){return sC},StencilType:function(){return V_},StyleScaleType:function(){return VM},Swipe:function(){return Gse},TMap:function(){return sK},TYPES:function(){return su},TencentMap:function(){return wle},TextureBlend:function(){return qS},TextureUsage:function(){return GI},TileDebugLayer:function(){return Wie},TilesetManager:function(){return kw},UpdateTileStrategy:function(){return yT},Viewport:function(){return LN},WindLayer:function(){return gq},WorkerSourceMap:function(){return b0},Zoom:function(){return Yse},aProjectFlat:function(){return $C},amap2Project:function(){return T1},amap2UnProject:function(){return By},anchorTranslate:function(){return Gg},anchorType:function(){return cv},applyAnchorClass:function(){return cu},bBoxToBounds:function(){return L2},bindAll:function(){return xx},boundsContains:function(){return Px},calAngle:function(){return jw},calDistance:function(){return Z_},calculateCentroid:function(){return yC},calculatePointsCenterAndRadius:function(){return Fw},container:function(){return WD},createLayerContainer:function(){return TL},createSceneContainer:function(){return Xk},decodePickingColor:function(){return V0},defaultValue:function(){return Fd},djb2hash:function(){return Zb},encodePickingColor:function(){return Av},executeWorkerTask:function(){return u0},expandUrl:function(){return NC},extent:function(){return vC},flow:function(){return bw},formatImage:function(){return U0},generateCatRamp:function(){return L1},generateColorRamp:function(){return m0},generateCustomRamp:function(){return A1},generateLinearRamp:function(){return f0},generateQuantizeRamp:function(){return Pg},getAngle:function(){return I2},getArrayBuffer:function(){return w0},getBBoxFromPoints:function(){return rw},getCullFace:function(){return w1},getData:function(){return Og},getDefaultDomain:function(){return d0},getImage:function(){return k0},getJSON:function(){return pv},getProtocolAction:function(){return Qv},getReferrer:function(){return W_},getTileIndices:function(){return UE},getTileWarpXY:function(){return rE},getURLFromTemplate:function(){return FC},getWMTSURLFromTemplate:function(){return t1},gl:function(){return K0},guid:function(){return Kw},isAndroid:function(){return T_},isColor:function(){return h0},isImageBitmap:function(){return m_},isPC:function(){return vx},isURLTemplate:function(){return Q2},isWorker:function(){return mx},isiOS:function(){return B_},latitude:function(){return uE},lazyInject:function(){return dP},lazyMultiInject:function(){return Kk},lineAtOffset:function(){return uC},lineAtOffsetAsyc:function(){return qC},lineStyleType:function(){return yw},lngLatInExtent:function(){return GC},lngLatToMeters:function(){return QS},lnglatDistance:function(){return Wy},lodashUtil:function(){return e1},longitude:function(){return zC},makeXMLHttpRequestPromise:function(){return F0},metersToLngLat:function(){return lS},normalize:function(){return r2},osmLonLat2TileXY:function(){return OE},osmTileXY2LonLat:function(){return Ix},packCircleVertex:function(){return QF},padBounds:function(){return cx},polygonFillTriangulation:function(){return uu},postData:function(){return H1},project:function(){return d_},removeDuplicateUniforms:function(){return Lg},rgb2arr:function(){return a0},sameOrigin:function(){return Uo},setL7WorkerSource:function(){return Sg},tileToBounds:function(){return GE},tranfrormCoord:function(){return Mw},unProjectFlat:function(){return dE},validateLngLat:function(){return HS},version:function(){return Kue}});var u={};l.r(u),l.d(u,{DPR:function(){return Bg},addClass:function(){return ey},addStyle:function(){return Hg},appendElementType:function(){return E_},clearChildren:function(){return zy},create:function(){return Fv},css2Style:function(){return R1},empty:function(){return ix},findParentElement:function(){return sy},getClass:function(){return k2},getContainer:function(){return L_},getDiffRect:function(){return V1},getStyleList:function(){return xv},getViewPortScale:function(){return Eu},hasClass:function(){return s2},printCanvas:function(){return ov},remove:function(){return x1},removeClass:function(){return ox},removeStyle:function(){return y1},setChecked:function(){return I1},setClass:function(){return l2},setTransform:function(){return ax},setUnDraggable:function(){return U1},splitWords:function(){return mv},toggleClass:function(){return z2},triggerResize:function(){return sv},trim:function(){return u1}});var D={};l.r(D),l.d(D,{getColumn:function(){return MC},getSatByColumn:function(){return ET},max:function(){return Qw},mean:function(){return XS},min:function(){return Ew},mode:function(){return J2},statMap:function(){return _w},sum:function(){return BS}});var b={};l.r(b),l.d(b,{add:function(){return Ux},adjoint:function(){return iT},clone:function(){return QT},copy:function(){return qA},create:function(){return Vx},determinant:function(){return E4},equals:function(){return gu},exactEquals:function(){return X2},frob:function(){return dx},fromQuat:function(){return uh},fromQuat2:function(){return _e},fromRotation:function(){return ot},fromRotationTranslation:function(){return Q},fromRotationTranslationScale:function(){return Bs},fromRotationTranslationScaleOrigin:function(){return Pa},fromScaling:function(){return hD},fromTranslation:function(){return LT},fromValues:function(){return p2},fromXRotation:function(){return w},fromYRotation:function(){return P},fromZRotation:function(){return N},frustum:function(){return zg},getRotation:function(){return on},getScaling:function(){return rt},getTranslation:function(){return Le},identity:function(){return pI},invert:function(){return rT},lookAt:function(){return oy},mul:function(){return mg},multiply:function(){return IS},multiplyScalar:function(){return gw},multiplyScalarAndAdd:function(){return Sx},ortho:function(){return Kv},orthoNO:function(){return i1},orthoZO:function(){return wv},perspective:function(){return z0},perspectiveFromFieldOfView:function(){return Vv},perspectiveNO:function(){return M0},perspectiveZO:function(){return Zv},rotate:function(){return DD},rotateX:function(){return d3},rotateY:function(){return Y1},rotateZ:function(){return zD},scale:function(){return eA},set:function(){return Fx},str:function(){return x_},sub:function(){return s0},subtract:function(){return Dx},targetTo:function(){return jy},translate:function(){return m3},transpose:function(){return i3}});var x={};l.r(x),l.d(x,{add:function(){return tre},angle:function(){return dZ},bezier:function(){return rY},ceil:function(){return eY},clone:function(){return X9},copy:function(){return Qne},create:function(){return LP},cross:function(){return R3},dist:function(){return uN},distance:function(){return nY},div:function(){return Gfe},divide:function(){return QX},dot:function(){return LU},equals:function(){return oY},exactEquals:function(){return Zfe},floor:function(){return IU},forEach:function(){return ure},fromValues:function(){return QA},hermite:function(){return jfe},inverse:function(){return ire},len:function(){return VI},length:function(){return HM},lerp:function(){return Vfe},max:function(){return rre},min:function(){return f4},mul:function(){return Hfe},multiply:function(){return JX},negate:function(){return cZ},normalize:function(){return gP},random:function(){return Wfe},rotateX:function(){return sre},rotateY:function(){return MU},rotateZ:function(){return are},round:function(){return UR},scale:function(){return VR},scaleAndAdd:function(){return tY},set:function(){return ere},sqrDist:function(){return f7},sqrLen:function(){return sY},squaredDistance:function(){return uZ},squaredLength:function(){return PU},str:function(){return iY},sub:function(){return OU},subtract:function(){return nre},transformMat3:function(){return ore},transformMat4:function(){return h7},transformQuat:function(){return hM},zero:function(){return lre}});var y={},A={},a=function(v){return A[v]},E=function(v,f){A[v]=f},I=function(v){return y[v]},F=function(v,f){y[v]=f},se={},Be={},Me=34,Et=10,Pt=13;function et(i){return new Function("d","return {"+i.map(function(v,f){return JSON.stringify(v)+": d["+f+'] || ""'}).join(",")+"}")}function Dt(i,v){var f=et(i);return function(g,d){return v(f(g),d,i)}}function Bt(i){var v=Object.create(null),f=[];return i.forEach(function(g){for(var d in g)d in v||f.push(v[d]=d)}),f}function On(i,v){var f=i+"",g=f.length;return g9999?"+"+On(i,6):On(i,4)}function jr(i){var v=i.getUTCHours(),f=i.getUTCMinutes(),g=i.getUTCSeconds(),d=i.getUTCMilliseconds();return isNaN(i)?"Invalid Date":ia(i.getUTCFullYear(),4)+"-"+On(i.getUTCMonth()+1,2)+"-"+On(i.getUTCDate(),2)+(d?"T"+On(v,2)+":"+On(f,2)+":"+On(g,2)+"."+On(d,3)+"Z":g?"T"+On(v,2)+":"+On(f,2)+":"+On(g,2)+"Z":f||v?"T"+On(v,2)+":"+On(f,2)+"Z":"")}function ni(i){var v=new RegExp('["'+i+` +\r]`),f=i.charCodeAt(0);function g(it,Ir){var Wo,Ca,eu=d(it,function(Bd,r0){if(Wo)return Wo(Bd,r0-1);Ca=Bd,Wo=Ir?Dt(Bd,Ir):et(Bd)});return eu.columns=Ca||[],eu}function d(it,Ir){var Wo=[],Ca=it.length,eu=0,Bd=0,r0,N0=Ca<=0,fv=!1;it.charCodeAt(Ca-1)===Et&&--Ca,it.charCodeAt(Ca-1)===Pt&&--Ca;function v1(){if(N0)return Be;if(fv)return fv=!1,se;var Q1,iy=eu,Uy;if(it.charCodeAt(iy)===Me){for(;eu++=Ca?N0=!0:(Uy=it.charCodeAt(eu++))===Et?fv=!0:Uy===Pt&&(fv=!0,it.charCodeAt(eu)===Et&&++eu),it.slice(iy+1,Q1-1).replace(/""/g,'"')}for(;eu=200&&f.status<300||f.status===0)&&f.response!==null){var C=f.response;if(i.type==="json")try{C=JSON.parse(f.response)}catch(B){return v(B)}v(null,C,f.getResponseHeader("Cache-Control"),f.getResponseHeader("Expires"),f)}else{var M=new Blob([f.response],{type:f.getResponseHeader("Content-Type")});v(new $v(f.status,f.statusText,g.toString(),M))}},f.cancel=f.abort,f.send(i.body),f}function F0(i){return new Promise(function(v,f){He(i,function(g,d,C,M,B){g?f({err:g,data:null,xhr:B}):v({err:null,data:d,cacheControl:C,expires:M,xhr:B})})})}function nv(i,v){return He(i,v)}var pv=function(v,f){var g=Qv(v.url)||nv;return g((0,An.Z)((0,An.Z)({},v),{},{type:"json"}),f)},w0=function(v,f){var g=Qv(v.url)||nv;return g((0,An.Z)((0,An.Z)({},v),{},{type:"arrayBuffer"}),f)},H1=function(v,f){return nv((0,An.Z)((0,An.Z)({},v),{},{method:"POST"}),f)},Og=function(v,f){return nv((0,An.Z)((0,An.Z)({},v),{},{method:"GET"}),f)};function Uo(i){var v=window.document.createElement("a");return v.href=i,v.protocol===window.document.location.protocol&&v.host===window.document.location.host}var wu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Rg(i,v){var f=new window.Image,g=window.URL||window.webkitURL;f.crossOrigin="anonymous",f.onload=function(){v(null,f),g.revokeObjectURL(f.src),f.onload=null,window.requestAnimationFrame(function(){f.src=wu})},f.onerror=function(){return v(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 d=new Blob([new Uint8Array(i)],{type:"image/png"});f.src=i.byteLength?g.createObjectURL(d):wu}function _0(i,v){var f=new Blob([new Uint8Array(i)],{type:"image/png"});createImageBitmap(f).then(function(g){v(null,g)}).catch(function(g){v(new Error("Could not load image because of ".concat(g.message,". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")))})}var k0=function(v,f,g){var d=function(M,B){if(M)f(M);else if(B){var J=typeof createImageBitmap=="function",ue=g?g(B):B;J?_0(ue,f):Rg(ue,f)}};return v.type==="json"?pv(v,d):w0(v,d)},U0=function(v,f){var g=typeof createImageBitmap=="function";g?_0(v,f):Rg(v,f)},cv=function(i){return i.CENTER="center",i.TOP="top",i["TOP-LEFT"]="top-left",i["TOP-RIGHT"]="top-right",i.BOTTOM="bottom",i["BOTTOM-LEFT"]="bottom-left",i["BOTTOM-RIGHT"]="bottom-right",i.LEFT="left",i.RIGHT="right",i}({}),Gg={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 cu(i,v,f){var g=i.classList;for(var d in Gg)Gg.hasOwnProperty(d)&&g.remove("l7-".concat(f,"-anchor-").concat(d));g.add("l7-".concat(f,"-anchor-").concat(v))}function Hs(i,v,f){i.prototype=v.prototype=f,f.constructor=i}function Aa(i,v){var f=Object.create(i.prototype);for(var g in v)f[g]=v[g];return f}function au(){}var bg=.7,Fr=1/bg,qn="\\s*([+-]?\\d+)\\s*",qr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",La="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ig=/^#([0-9a-f]{3,8})$/,o0=new RegExp("^rgb\\("+[qn,qn,qn]+"\\)$"),$0=new RegExp("^rgb\\("+[La,La,La]+"\\)$"),Vo=new RegExp("^rgba\\("+[qn,qn,qn,qr]+"\\)$"),oi=new RegExp("^rgba\\("+[La,La,La,qr]+"\\)$"),Kr=new RegExp("^hsl\\("+[qr,La,La]+"\\)$"),In=new RegExp("^hsla\\("+[qr,La,La,qr]+"\\)$"),Gt={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};Hs(au,gd,{copy:function(i){return Object.assign(new this.constructor,this,i)},displayable:function(){return this.rgb().displayable()},hex:ui,formatHex:ui,formatHsl:qs,formatRgb:Cd,toString:Cd});function ui(){return this.rgb().formatHex()}function qs(){return jg(this).formatHsl()}function Cd(){return this.rgb().formatRgb()}function gd(i){var v,f;return i=(i+"").trim().toLowerCase(),(v=Ig.exec(i))?(f=v[1].length,v=parseInt(v[1],16),f===6?Ou(v):f===3?new Ga(v>>8&15|v>>4&240,v>>4&15|v&240,(v&15)<<4|v&15,1):f===8?_a(v>>24&255,v>>16&255,v>>8&255,(v&255)/255):f===4?_a(v>>12&15|v>>8&240,v>>8&15|v>>4&240,v>>4&15|v&240,((v&15)<<4|v&15)/255):null):(v=o0.exec(i))?new Ga(v[1],v[2],v[3],1):(v=$0.exec(i))?new Ga(v[1]*255/100,v[2]*255/100,v[3]*255/100,1):(v=Vo.exec(i))?_a(v[1],v[2],v[3],v[4]):(v=oi.exec(i))?_a(v[1]*255/100,v[2]*255/100,v[3]*255/100,v[4]):(v=Kr.exec(i))?du(v[1],v[2]/100,v[3]/100,1):(v=In.exec(i))?du(v[1],v[2]/100,v[3]/100,v[4]):Gt.hasOwnProperty(i)?Ou(Gt[i]):i==="transparent"?new Ga(NaN,NaN,NaN,0):null}function Ou(i){return new Ga(i>>16&255,i>>8&255,i&255,1)}function _a(i,v,f,g){return g<=0&&(i=v=f=NaN),new Ga(i,v,f,g)}function Nd(i){return i instanceof au||(i=gd(i)),i?(i=i.rgb(),new Ga(i.r,i.g,i.b,i.opacity)):new Ga}function Zg(i,v,f,g){return arguments.length===1?Nd(i):new Ga(i,v,f,g==null?1:g)}function Ga(i,v,f,g){this.r=+i,this.g=+v,this.b=+f,this.opacity=+g}Hs(Ga,Zg,Aa(au,{brighter:function(i){return i=i==null?Fr:Math.pow(Fr,i),new Ga(this.r*i,this.g*i,this.b*i,this.opacity)},darker:function(i){return i=i==null?bg:Math.pow(bg,i),new Ga(this.r*i,this.g*i,this.b*i,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:J0,formatHex:J0,formatRgb:xa,toString:xa}));function J0(){return"#"+Ua(this.r)+Ua(this.g)+Ua(this.b)}function xa(){var i=this.opacity;return i=isNaN(i)?1:Math.max(0,Math.min(1,i)),(i===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))+(i===1?")":", "+i+")")}function Ua(i){return i=Math.max(0,Math.min(255,Math.round(i)||0)),(i<16?"0":"")+i.toString(16)}function du(i,v,f,g){return g<=0?i=v=f=NaN:f<=0||f>=1?i=v=NaN:v<=0&&(i=NaN),new Jg(i,v,f,g)}function jg(i){if(i instanceof Jg)return new Jg(i.h,i.s,i.l,i.opacity);if(i instanceof au||(i=gd(i)),!i)return new Jg;if(i instanceof Jg)return i;i=i.rgb();var v=i.r/255,f=i.g/255,g=i.b/255,d=Math.min(v,f,g),C=Math.max(v,f,g),M=NaN,B=C-d,J=(C+d)/2;return B?(v===C?M=(f-g)/B+(f0&&J<1?0:M,new Jg(M,B,J,i.opacity)}function c0(i,v,f,g){return arguments.length===1?jg(i):new Jg(i,v,f,g==null?1:g)}function Jg(i,v,f,g){this.h=+i,this.s=+v,this.l=+f,this.opacity=+g}Hs(Jg,c0,Aa(au,{brighter:function(i){return i=i==null?Fr:Math.pow(Fr,i),new Jg(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=i==null?bg:Math.pow(bg,i),new Jg(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=this.h%360+(this.h<0)*360,v=isNaN(i)||isNaN(this.s)?0:this.s,f=this.l,g=f+(f<.5?f:1-f)*v,d=2*f-g;return new Ga(P0(i>=240?i-240:i+120,d,g),P0(i,d,g),P0(i<120?i+240:i-120,d,g),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 i=this.opacity;return i=isNaN(i)?1:Math.max(0,Math.min(1,i)),(i===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(i===1?")":", "+i+")")}}));function P0(i,v,f){return(i<60?v+(f-v)*i/60:i<180?f:i<240?v+(f-v)*(240-i)/60:v)*255}function h0(i){return typeof i=="string"?!!gd(i):!1}function a0(i){var v=gd(i),f=[0,0,0,0];return v!=null&&(f[0]=v.r/255,f[1]=v.g/255,f[2]=v.b/255,f[3]=v.opacity),f}function V0(i){var v=i&&i[0],f=i&&i[1],g=i&&i[2],d=v+f*256+g*65536-1;return d}function Av(i){return[i+1&255,i+1>>8&255,i+1>>8>>8&255]}function m0(i){var v=window.document.createElement("canvas"),f=v.getContext("2d");v.width=256,v.height=1;for(var g=null,d=f.createLinearGradient(0,0,256,1),C=i.positions[0],M=i.positions[i.positions.length-1],B=0;B0&&new RegExp("(^|\\s)"+v+"(\\s|$)").test(f)}function l2(i,v){i instanceof HTMLElement?i.className=v:i.className.baseVal=v}function z2(i,v,f){f===void 0?s2(i,v)?ox(i,v):ey(i,v):f?ey(i,v):ox(i,v)}function k2(i){return i instanceof SVGElement&&(i=i.correspondingElement),i.className.baseVal===void 0?i.className:i.className.baseVal}function ix(i){for(;i&&i.firstChild;)i.removeChild(i.firstChild)}var hx=Sv(["transform","WebkitTransform"]);function ax(i,v){i.style[hx]=v}function sv(){if(typeof Event=="function")window.dispatchEvent(new Event("resize"));else{var i=window.document.createEvent("UIEvents");i.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(i)}}function ov(i){var v=["padding: "+(i.height/2-8)+"px "+i.width/2+"px;","line-height: "+i.height+"px;","background-image: url("+i.toDataURL()+");"];console.log(`%c +`,v.join(""))}function Eu(){var i,v=window.document.querySelector('meta[name="viewport"]');if(!v)return 1;var f=(i=v.content)===null||i===void 0?void 0:i.split(","),g=f.find(function(d){var C=d.split("="),M=(0,_g.Z)(C,1),B=M[0];return B==="initial-scale"});return g?g.split("=")[1]*1:1}var Bg=Eu()<1?1:window.devicePixelRatio;function Hg(i,v){i.setAttribute("style","".concat(i.style.cssText).concat(v))}function xv(i){return i.split(";").map(function(v){return v.trim()}).filter(function(v){return v})}function y1(i,v){var f,g=xv((f=i.getAttribute("style"))!==null&&f!==void 0?f:""),d=xv(v),C=ty.apply(void 0,[g].concat((0,Gd.Z)(d)));i.setAttribute("style",C.join(";"))}function R1(i){return Object.entries(i).map(function(v){var f=(0,_g.Z)(v,2),g=f[0],d=f[1];return"".concat(g,": ").concat(d)}).join(";")}function V1(i,v){return{left:i.left-v.left,top:i.top-v.top,right:v.left+v.width-i.left-i.width,bottom:v.top+v.height-i.top-i.height}}function I1(i,v){i.checked=v,v?i.setAttribute("checked","true"):i.removeAttribute("checked")}function zy(i){i.innerHTML=""}function U1(i){i.setAttribute("draggable","false")}function E_(i,v){if(typeof v=="string"){var f=document.createElement("div");for(f.innerHTML=v;f.firstChild;)i.append(f.firstChild)}else Array.isArray(v)?i.append.apply(i,(0,Gd.Z)(v)):i.append(v)}function sy(i,v){for(var f=Array.isArray(v)?v:[v],g=i;g instanceof Element&&g!==window.document.body;){var d,C;if(f.find(function(M){var B;return(B=g)===null||B===void 0?void 0:B.matches(M)}))return g;g=(d=(C=g)===null||C===void 0?void 0:C.parentElement)!==null&&d!==void 0?d:null}}var p_;function m_(i){return typeof ImageBitmap!="undefined"&&i instanceof ImageBitmap}function mx(){return typeof importScripts=="function"}var W_=mx()?function(){return self.worker&&self.worker.referrer}:function(){return(window.location.protocol==="blob:"?window.parent:window).location.href},ex=(p_=navigator)===null||p_===void 0?void 0:p_.userAgent,B_=!!ex.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),T_=ex.indexOf("Android")>-1||ex.indexOf("Adr")>-1;function vx(){for(var i=ex,v=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],f=!0,g=0,d=v;g0){f=!1;break}}return f}var ka=l(16514);function xx(i,v){i.forEach(function(f){v[f]&&(v[f]=v[f].bind(v))})}var u2=function(){function i(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16;(0,Or.Z)(this,i),(0,ka.Z)(this,"duration",16),(0,ka.Z)(this,"timestamp",new Date().getTime()),this.duration=v}return(0,at.Z)(i,[{key:"run",value:function(f){var g=new Date().getTime(),d=g-this.timestamp;this.timestamp=g,d>=this.duration&&f()}}]),i}(),v2=l(86461),U2=l(8822);function Z2(i){return typeof i=="number"}var rC=2*Math.PI*6378137/2;function GC(i,v){var f=(0,_g.Z)(v,4),g=f[0],d=f[1],C=f[2],M=f[3];return i.lng>g&&i.lng<=C&&i.lat>d&&i.lat<=M}function vC(i){var v=[1/0,1/0,-1/0,-1/0];return i.forEach(function(f){var g=f.coordinates;Lw(v,g)}),v}function Lw(i,v){return Array.isArray(v[0])?v.forEach(function(f){Lw(i,f)}):(i[0]>v[0]&&(i[0]=v[0]),i[1]>v[1]&&(i[1]=v[1]),i[2]1&&arguments[1]!==void 0?arguments[1]:!0,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{enable:!0,decimal:1};i=HS(i,v);var g=i[0],d=i[1],C=g*rC/180,M=Math.log(Math.tan((90+d)*Math.PI/360))/(Math.PI/180);return M=M*rC/180,f.enable&&(C=Number(C.toFixed(f.decimal)),M=Number(M.toFixed(f.decimal))),i.length===3?[C,M,i[2]]:[C,M]}function lS(i){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,f=i[0],g=i[1],d=f/rC*180,C=g/rC*180;return C=180/Math.PI*(2*Math.atan(Math.exp(C*Math.PI/180))-Math.PI/2),v!=null&&(d=Number(d.toFixed(v)),C=Number(C.toFixed(v))),i.length===3?[d,C,i[2]]:[d,C]}function zC(i){if(i==null)throw new Error("lng is required");return(i>180||i<-180)&&(i=i%360,i>180&&(i=-360+i),i<-180&&(i=360+i),i===0&&(i=0)),i}function uE(i){if(i==null)throw new Error("lat is required");return(i>90||i<-90)&&(i=i%180,i>90&&(i=-180+i),i<-90&&(i=180+i),i===0&&(i=0)),i}function HS(i,v){if(v===!1)return i;var f=zC(i[0]),g=uE(i[1]);return g>85&&(g=85),g<-85&&(g=-85),i.length===3?[f,g,i[2]]:[f,g]}function $C(i){var v=85.0511287798,f=Math.max(Math.min(v,i[1]),-v),g=256<<20,d=Math.PI/180,C=i[0]*d,M=f*d;M=Math.log(Math.tan(Math.PI/4+M/2));var B=.5/Math.PI,J=.5,ue=-.5/Math.PI;return d=.5,C=g*(B*C+J),M=g*(ue*M+d),[Math.floor(C),Math.floor(M)]}function dE(i){var v=.5/Math.PI,f=.5,g=-.5/Math.PI,d=.5,C=256<<20,M=(0,_g.Z)(i,2),B=M[0],J=M[1];B=(B/C-f)/v,J=(J/C-d)/g,J=(Math.atan(Math.pow(Math.E,J))-Math.PI/4)*2,d=Math.PI/180;var ue=J/d,Ue=B/d;return[Ue,ue]}function T1(i,v){var f=85.0511287798,g=Math.PI/180,d=6378137;return v=Math.max(Math.min(f,v),-f),i*=g,v*=g,v=Math.log(Math.tan(Math.PI/4+v/2)),[i*d,v*d]}function By(i,v){var f=Math.PI/180,g=6378137,d=i/g/f,C=2*(Math.atan(Math.exp(v/g))-Math.PI/4)/f;return[d,C]}function Wy(i,v,f){var g=(0,U2.degreesToRadians)(v[1]-i[1]),d=(0,U2.degreesToRadians)(v[0]-i[0]),C=(0,U2.degreesToRadians)(i[1]),M=(0,U2.degreesToRadians)(v[1]),B=Math.pow(Math.sin(g/2),2)+Math.pow(Math.sin(d/2),2)*Math.cos(C)*Math.cos(M);return(0,U2.radiansToLength)(2*Math.atan2(Math.sqrt(B),Math.sqrt(1-B)),f="meters")}function d_(i){var v=Math.PI/180,f=85.0511287798,g=6378137,d=Math.max(Math.min(f,i[1]),-f),C=Math.sin(d*v),M=g*i[0]*v,B=g*Math.log((1+C)/(1-C))/2;return[M,B]}function cx(i,v){var f=Math.abs(i[1][1]-i[0][1])*v,g=Math.abs(i[1][0]-i[0][0])*v;return[[i[0][0]-g,i[0][1]-f],[i[1][0]+g,i[1][1]+f]]}function Px(i,v){return i[0][0]<=v[0][0]&&i[0][1]<=v[0][1]&&i[1][0]>=v[1][0]&&i[1][1]>=v[1][1]}function L2(i){return[[i[0],i[1]],[i[2],i[3]]]}function r2(i){var v=Z_(i,[0,0]);return[i[0]/v,i[1]/v]}function Z_(i,v){return Math.sqrt(Math.pow(i[0]-v[0],2)+Math.pow(i[1]-v[1],2))}function W2(i,v){return i[0]*v[0]+i[1]*v[1]}function M2(i){return Math.sqrt(i[0]*i[0]+i[1]*i[1])}function jw(i,v){return Math.acos(W2(i,v)/(M2(i)*M2(v)))*180/Math.PI}function I2(i,v){return v[0]>0?v[1]>0?90-Math.atan(v[1]/v[0])*180/Math.PI:90+Math.atan(-v[1]/v[0])*180/Math.PI:v[1]<0?180+(90-Math.atan(v[1]/v[0])*180/Math.PI):270+Math.atan(v[1]/-v[0])*180/Math.PI}function bw(i){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;if(!(!i||i.length<2)){for(var f=[0,1],g=0,d=[],C=0;C0){var it=d[C-1].rotation;it-Ue>360-it+Ue&&(Ue=Ue+360)}d.push({start:M,end:B,dis:J,rotation:Ue,duration:0})}return d.map(function(Ir){Ir.duration=v*(Ir.dis/g)}),d}}function yC(i){if(Z2(i[0]))return i;if(Z2(i[0][0]))throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8");if(Z2(i[0][0][0])){var v=i,f=0,g=0,d=0;return v.forEach(function(C){C.forEach(function(M){f+=M[0],g+=M[1],d++})}),[f/d,g/d,0]}else throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8")}function Fw(i){for(var v=i[0],f=i[1],g=i[0],d=i[1],C=0,M=0,B=0,J=0;Jd&&(g=Math.floor(g/f)),g=g*v+i.charCodeAt(C);return g}function Zb(i){i=i.toString();for(var v=5381,f=i.length;f;)v=v*33^i.charCodeAt(--f);return v>>>0}function Kw(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(i){var v=Math.random()*16|0,f=i==="x"?v:v&3|8;return f.toString(16)})}var $y=function(i){return i["GAODE1.x"]="GAODE1.x",i["GAODE2.x"]="GAODE2.x",i.MAPBOX="MAPBOX",i.DEFAULT="DEFAUlTMAP",i.SIMPLE="SIMPLE",i.GLOBEL="GLOBEL",i}({});function yx(i,v,f,g,d){var C=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,M=arguments.length>6?arguments[6]:void 0,B=f;return M&&(B=Math.round(f*(C-1))/(C-1)),g?Lx(i,v,B,g,d):Lx(i,v,B,.314,d)}function Dw(i,v){var f=1-v;return(i[0]*f+i[1]*v)*f+(i[1]*f+i[2]*v)*v}function Bw(i,v){return Math.sqrt(Math.pow(i[0]-v[0],2)+Math.pow(i[1]-v[1],2))}function Ky(i,v,f){var g=[v[0]-i[0],v[1]-i[1]],d=Bw(g,[0,0]),C=Math.atan2(g[1],g[0]),M=d/2/Math.cos(f),B=C+f,J=[M*Math.cos(B)+i[0],M*Math.sin(B)+i[1]];return J}function Lx(i,v,f,g,d){if(d===$y["GAODE2.x"]){var C=T1(i[0],i[1]),M=T1(v[0],v[1]),B=Ky(C,M,g),J=[C[0],B[0],M[0]],ue=[C[1],B[1],M[1]];return[].concat((0,Gd.Z)(By(Dw(J,f),Dw(ue,f))),[0])}else{var Ue=Ky(i,v,g),it=[i[0],Ue[0],v[0]],Ir=[i[1],Ue[1],v[1]];return[Dw(it,f),Dw(Ir,f),0]}}function X_(i,v,f,g,d){var C=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,M=arguments.length>6?arguments[6]:void 0,B=f;return M&&(B=Math.round(f*29)/29),iw(i,v,B,d)}function e2(i,v){var f=[v[0]-i[0],v[1]-i[1]],g=Z_(f,[0,0]),d=Math.atan2(f[1],f[0]),C=.314,M=g/2/Math.cos(C),B=d+C,J=[M*Math.cos(B)+i[0],M*Math.sin(B)+i[1]];return J}function Ox(i,v){var f=1-v;return(i[0]*f+i[1]*v)*f+(i[1]*f+i[2]*v)*v}function O2(i,v){var f=[i[0]-v[0],i[1]-v[1]],g=[Math.sin(f[0]/2),Math.sin(f[1]/2)],d=g[1]*g[1]+Math.cos(i[1])*Math.cos(v[1])*g[0]*g[0];return 2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d))}function iw(i,v,f,g){var d=[(0,U2.degreesToRadians)(i[0]),(0,U2.degreesToRadians)(i[1])],C=[(0,U2.degreesToRadians)(v[0]),(0,U2.degreesToRadians)(v[1])];if(g==="GAODE2.x"){var M=e2(d,C),B=[d[0],M[0],C[0]],J=[d[1],M[1],C[1]];return[Ox(B,f),Ox(J,f),0]}else{var ue=O2(d,C);if(Math.abs(ue-Math.PI)<.001)return[(1-f)*d[0]+f*C[0],(1-f)*d[1]+f*C[1]];var Ue=Math.sin((1-f)*ue)/Math.sin(ue),it=Math.sin(f*ue)/Math.sin(ue),Ir=[Math.sin(d[0]),Math.sin(d[1])],Wo=[Math.cos(d[0]),Math.cos(d[1])],Ca=[Math.sin(C[0]),Math.sin(C[1])],eu=[Math.cos(C[0]),Math.cos(C[1])],Bd=Ue*Wo[1]*Wo[0]+it*eu[1]*eu[0],r0=Ue*Wo[1]*Ir[0]+it*eu[1]*Ca[0],N0=Ue*Ir[1]+it*Ca[1];return[(0,U2.radiansToDegrees)(Math.atan2(r0,Bd)),(0,U2.radiansToDegrees)(Math.atan2(N0,Math.sqrt(Bd*Bd+r0*r0)))]}}function dw(i,v){for(var f=0,g=[],d=0;due){var Bd=Ca.p1,r0=Ca.p2,N0=(ue-Ca.lastTotalDistance)/Ca.distance,fv=Jw(r0,Bd,N0);Ue=fv[0],it=fv[1];break}}return{lng:Ue,lat:it,height:0}}function Jw(i,v,f){return[i[0]*f+v[0]*(1-f),i[1]*f+v[1]*(1-f)]}function DC(i,v){return Math.sqrt(Math.pow(i[0]-v[0],2)+Math.pow(i[1]-v[1],2))}function uC(i,v){var f=v.featureId,g=i.data.dataArray;return typeof f=="number"&&(g=g.filter(function(d){var C=d.id;return C===f})),g.map(function(d){var C=Kx(d,v);return(0,An.Z)((0,An.Z)({},d),C)})}function qC(i,v){return new Promise(function(f){i.inited?f(uC(i,v)):i.once("update",function(){f(uC(i,v))})})}function Kx(i,v){var f=v.offset,g=v.shape,d=v.thetaOffset,C=v.mapVersion,M=v.segmentNumber,B=M===void 0?30:M,J=v.autoFit,ue=J===void 0?!0:J,Ue=i.coordinates;if(g==="line")return dw(Ue,f);var it=Ue[0],Ir=Ue[1],Wo=typeof d=="string"?i[d]||0:d,Ca;switch(g){case"arc":Ca=yx;break;case"greatcircle":Ca=X_;break;default:Ca=yx}var eu=Ca(it,Ir,f,Wo,C,B,ue),Bd=(0,_g.Z)(eu,3),r0=Bd[0],N0=Bd[1],fv=Bd[2];return{lng:r0,lat:N0,height:fv}}var bS=function(){function i(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:50,f=arguments.length>1?arguments[1]:void 0;(0,Or.Z)(this,i),this.limit=v,this.destroy=f||this.defaultDestroy,this.order=[],this.clear()}return(0,at.Z)(i,[{key:"clear",value:function(){var f=this;this.order.forEach(function(g){f.delete(g)}),this.cache={},this.order=[]}},{key:"get",value:function(f){var g=this.cache[f];return g&&(this.deleteOrder(f),this.appendOrder(f)),g}},{key:"set",value:function(f,g){this.cache[f]?(this.delete(f),this.cache[f]=g,this.appendOrder(f)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[f]=g,this.appendOrder(f))}},{key:"delete",value:function(f){var g=this.cache[f];g&&(this.deleteCache(f),this.deleteOrder(f),this.destroy(g,f))}},{key:"deleteCache",value:function(f){delete this.cache[f]}},{key:"deleteOrder",value:function(f){var g=this.order.findIndex(function(d){return d===f});g>=0&&this.order.splice(g,1)}},{key:"appendOrder",value:function(f){this.order.push(f)}},{key:"defaultDestroy",value:function(f,g){return null}}]),i}();function Qw(i){if(i.length===0)throw new Error("max requires at least one data point");for(var v=i[0],f=1;fv&&(v=i[f]);return v*1}function Ew(i){if(i.length===0)throw new Error("min requires at least one data point");for(var v=i[0],f=1;fg&&(g=d,f=v),d=1,v=i[C]):d++;return f*1}var _w={min:Ew,max:Qw,mean:XS,sum:BS,mode:J2};function MC(i,v){return i.map(function(f){return f[v]})}function ET(i,v){return _w[i](v)}var y_=l(90304),hv=l(7963),Rw=l(57168),Dv=l.n(Rw),B2=l(39511),N2=l(40666),eT=l.n(N2),yT=function(i){return i.Realtime="realtime",i.Overlap="overlap",i.Replace="replace",i}({}),xT=function(i){return i.Loading="Loading",i.Loaded="Loaded",i.Failure="Failure",i.Cancelled="Cancelled",i}({}),US=0,HE=1,lT=2;function ME(i){i.forEach(function(v){v.isCurrent&&(v.isVisible=v.isLoaded)})}function VT(i){i.forEach(function(v){v.properties.state=US}),i.forEach(function(v){v.isCurrent&&!DE(v)&&dC(v)}),i.forEach(function(v){v.isVisible=!!(v.properties.state&lT)})}function CE(i){i.forEach(function(f){f.properties.state=US}),i.forEach(function(f){f.isCurrent&&DE(f)});var v=i.slice().sort(function(f,g){return f.z-g.z});v.forEach(function(f){f.isVisible=!!(f.properties.state&lT),f.children.length&&(f.isVisible||f.properties.state&HE)?f.children.forEach(function(g){g.properties.state=HE}):f.isCurrent&&dC(f)})}function DE(i){for(;i;){if(i.isLoaded)return i.properties.state|=lT,!0;i=i.parent}return!1}function dC(i){i.children.forEach(function(v){v.isLoaded?v.properties.state|=lT:dC(v)})}var zE,TT=256,$E=[-1/0,-1/0,1/0,1/0],CC=.2,_T=5,hC=(zE={},(0,ka.Z)(zE,yT.Realtime,ME),(0,ka.Z)(zE,yT.Overlap,VT),(0,ka.Z)(zE,yT.Replace,CE),zE),oE=function(){};function OE(i,v,f){var g=Math.floor((i+180)/360*Math.pow(2,f)),d=Math.floor((1-Math.log(Math.tan(v*Math.PI/180)+1/Math.cos(v*Math.PI/180))/Math.PI)/2*Math.pow(2,f));return[g,d]}function Ix(i,v,f){var g=i/Math.pow(2,f)*360-180,d=Math.PI-2*Math.PI*v/Math.pow(2,f),C=180/Math.PI*Math.atan(.5*(Math.exp(d)-Math.exp(-d)));return[g,C]}var GE=function(v,f,g){var d=Ix(v,f,g),C=(0,_g.Z)(d,2),M=C[0],B=C[1],J=Ix(v+1,f+1,g),ue=(0,_g.Z)(J,2),Ue=ue[0],it=ue[1];return[M,it,Ue,B]};function UE(i){var v=i.zoom,f=i.latLonBounds,g=i.maxZoom,d=g===void 0?1/0:g,C=i.minZoom,M=C===void 0?0:C,B=i.zoomOffset,J=B===void 0?0:B,ue=i.extent,Ue=ue===void 0?$E:ue,it=Math.ceil(v)+J;if(Number.isFinite(M)&&itd&&(it=d);for(var Ir=(0,_g.Z)(f,4),Wo=Ir[0],Ca=Ir[1],eu=Ir[2],Bd=Ir[3],r0=[Math.max(Wo,Ue[0]),Math.max(Ca,Ue[1]),Math.min(eu,Ue[2]),Math.min(Bd,Ue[3])],N0=[],fv=OE(r0[0],r0[1],it),v1=(0,_g.Z)(fv,2),_y=v1[0],Q1=v1[1],iy=OE(r0[2],r0[3],it),Uy=(0,_g.Z)(iy,2),w_=Uy[0],_x=Uy[1],ux=_y;ux<=w_;ux++)for(var f2=_x;f2<=Q1;f2++)N0.push({x:ux,y:f2,z:it});var G2=(w_+_y)/2,cw=(Q1+_x)/2,JE=function(qT,Z3){return Math.abs(qT-G2)+Math.abs(Z3-cw)};return N0.sort(function(mT,qT){return JE(mT.x,mT.y)-JE(qT.x,qT.y)}),N0}var rE=function(v,f,g){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,C=Math.pow(2,g),M=C-1,B=C,J=v,ue=f;return d&&(J<0?J=J+B:J>M&&(J=J%B)),{warpX:J,warpY:ue}};function Xw(i){var v=oC();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}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(i){return!1}}var sC=function(i){(0,Wt.Z)(f,i);var v=Xw(f);function f(g){var d;(0,Or.Z)(this,f),d=v.call(this),(0,ka.Z)((0,hv.Z)(d),"tileSize",256),(0,ka.Z)((0,hv.Z)(d),"isVisible",!1),(0,ka.Z)((0,hv.Z)(d),"isCurrent",!1),(0,ka.Z)((0,hv.Z)(d),"isVisibleChange",!1),(0,ka.Z)((0,hv.Z)(d),"loadedLayers",0),(0,ka.Z)((0,hv.Z)(d),"isLayerLoaded",!1),(0,ka.Z)((0,hv.Z)(d),"isLoad",!1),(0,ka.Z)((0,hv.Z)(d),"isChildLoad",!1),(0,ka.Z)((0,hv.Z)(d),"parent",null),(0,ka.Z)((0,hv.Z)(d),"children",[]),(0,ka.Z)((0,hv.Z)(d),"data",null),(0,ka.Z)((0,hv.Z)(d),"properties",{}),(0,ka.Z)((0,hv.Z)(d),"loadDataId",0);var C=g.x,M=g.y,B=g.z,J=g.tileSize,ue=g.warp,Ue=ue===void 0?!0:ue;return d.x=C,d.y=M,d.z=B,d.warp=Ue||!0,d.tileSize=J,d}return(0,at.Z)(f,[{key:"isLoading",get:function(){return this.loadStatus===xT.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===xT.Loaded}},{key:"isFailure",get:function(){return this.loadStatus===xT.Failure}},{key:"setTileLayerLoaded",value:function(){this.isLayerLoaded=!0}},{key:"isCancelled",get:function(){return this.loadStatus===xT.Cancelled}},{key:"isDone",get:function(){return[xT.Loaded,xT.Cancelled,xT.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return GE(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var d=(0,_g.Z)(this.bounds,4),C=d[0],M=d[1],B=d[2],J=d[3],ue=[(B-C)/2,(J-M)/2],Ue=(0,B2.Z)(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:ue,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 { - importScripts('`+o+`'); + `)}});return Ue}},{key:"key",get:function(){var d="".concat(this.x,"_").concat(this.y,"_").concat(this.z);return d}},{key:"layerLoad",value:function(){this.loadedLayers++,this.emit("layerLoaded")}},{key:"loadData",value:function(){var g=(0,y_.Z)(Dv().mark(function C(M){var B,J,ue,Ue,it,Ir,Wo,Ca,eu,Bd,r0,N0,fv,v1,_y,Q1,iy;return Dv().wrap(function(w_){for(;;)switch(w_.prev=w_.next){case 0:return B=M.getData,J=M.onLoad,ue=M.onError,this.loadDataId++,Ue=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=xT.Loading,it=null,w_.prev=7,Wo=this.x,Ca=this.y,eu=this.z,Bd=this.bounds,r0=this.tileSize,N0=this.warp,fv=rE(Wo,Ca,eu,N0),v1=fv.warpX,_y=fv.warpY,Q1=this.abortController.signal,iy={x:v1,y:_y,z:eu,bounds:Bd,tileSize:r0,signal:Q1,warp:N0},w_.next=14,B(iy,this);case 14:it=w_.sent,w_.next=20;break;case 17:w_.prev=17,w_.t0=w_.catch(7),Ir=w_.t0;case 20:if(Ue===this.loadDataId){w_.next=22;break}return w_.abrupt("return");case 22:if(!(this.isCancelled&&!it)){w_.next=24;break}return w_.abrupt("return");case 24:if(!(Ir||!it)){w_.next=28;break}return this.loadStatus=xT.Failure,ue(Ir,this),w_.abrupt("return");case 28:this.loadStatus=xT.Loaded,this.data=it,J(this);case 31:case"end":return w_.stop()}},C,this,[[7,17]])}));function d(C){return g.apply(this,arguments)}return d}()},{key:"reloadData",value:function(d){this.isLoading&&this.abortLoad(),this.loadData(d)}},{key:"abortLoad",value:function(){this.isLoaded||this.isCancelled||(this.loadStatus=xT.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}}]),f}(N2.EventEmitter),eC=function(v,f){var g=L2(v),d=cx(g,f),C=360*3-180,M=85.0511287798065,B=[Math.max(d[0][0],-C),Math.max(d[0][1],-M),Math.min(d[1][0],C),Math.min(d[1][1],M)];return B},_E=function(v,f){var g=L2(v),d=L2(f),C=Px(g,d);return C};function GS(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=KE(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var g=0,d=function(){};return{s:d,n:function(){return g>=i.length?{done:!0}:{done:!1,value:i[g++]}},e:function(ue){throw ue},f:d}}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 C=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return C=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!C&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function KE(i,v){if(i){if(typeof i=="string")return Tw(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return Tw(i,v)}}function Tw(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,g=new Array(v);f=0&&it.x0;){var J=d.shift();J.abortLoad()}}},{key:"getTileByLngLat",value:function(d,C,M){var B=this.options.zoomOffset,J=Math.ceil(M)+B,ue=OE(d,C,J),Ue=this.tiles.filter(function(it){return it.key==="".concat(ue[0],"_").concat(ue[1],"_").concat(J)});return Ue[0]}},{key:"getTileExtent",value:function(d,C){return this.getTileIndices(C,d)}},{key:"getTileByZXY",value:function(d,C,M){var B=this.tiles.filter(function(J){return J.key==="".concat(C,"_").concat(M,"_").concat(d)});return B[0]}},{key:"clear",value:function(){var d=GS(this.cacheTiles.values()),C;try{for(d.s();!(C=d.n()).done;){var M=C.value;M.isLoading?M.abortLoad():this.onTileUnload(M)}}catch(B){d.e(B)}finally{d.f()}this.lastViewStates=void 0,this.cacheTiles.clear(),this.currentTiles=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners()}},{key:"updateTileVisible",value:function(){var d=this.options.updateStrategy,C=new Map,M=GS(this.cacheTiles.values()),B;try{for(M.s();!(B=M.n()).done;){var J=B.value;C.set(J.key,J.isVisible),J.isCurrent=!1,J.isVisible=!1}}catch(Ca){M.e(Ca)}finally{M.f()}var ue=GS(this.currentTiles),Ue;try{for(ue.s();!(Ue=ue.n()).done;){var it=Ue.value;it.isCurrent=!0,it.isVisible=!0}}catch(Ca){ue.e(Ca)}finally{ue.f()}var Ir=Array.from(this.cacheTiles.values());typeof d=="function"?d(Ir):hC[d](Ir);var Wo=!1;Array.from(this.cacheTiles.values()).forEach(function(Ca){Ca.isVisible!==C.get(Ca.key)?(Ca.isVisibleChange=!0,Wo=!0):Ca.isVisibleChange=!1}),Wo&&this.emit(YS.TileUpdate)}},{key:"getTileIndices",value:function(d,C){var M=this.options,B=M.tileSize,J=M.extent,ue=M.zoomOffset,Ue=Math.floor(this.options.maxZoom),it=Math.ceil(this.options.minZoom),Ir=UE({maxZoom:Ue,minZoom:it,zoomOffset:ue,tileSize:B,zoom:d,latLonBounds:C,extent:J});return Ir}},{key:"getTileId",value:function(d,C,M){var B="".concat(d,",").concat(C,",").concat(M);return B}},{key:"loadFinished",value:function(){var d=!this.currentTiles.some(function(C){return!C.isDone});return d&&this.emit(YS.TilesLoadFinished),d}},{key:"getTile",value:function(d,C,M){var B=this.getTileId(d,C,M),J=this.cacheTiles.get(B);return J}},{key:"createTile",value:function(d,C,M){var B=this.getTileId(d,C,M),J=new sC({x:d,y:C,z:M,tileSize:this.options.tileSize,warp:this.options.warp});return this.cacheTiles.set(B,J),J.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),J}},{key:"resizeCacheTiles",value:function(){var d=_T*this.currentTiles.length,C=this.cacheTiles.size>d;if(C){var M=GS(this.cacheTiles),B;try{for(M.s();!(B=M.n()).done;){var J=(0,_g.Z)(B.value,2),ue=J[0],Ue=J[1];if(!Ue.isVisible&&!this.currentTiles.includes(Ue)&&(this.cacheTiles.delete(ue),this.onTileUnload(Ue)),this.cacheTiles.size<=d)break}}catch(it){M.e(it)}finally{M.f()}}this.rebuildTileTree()}},{key:"rebuildTileTree",value:function(){var d=GS(this.cacheTiles.values()),C;try{for(d.s();!(C=d.n()).done;){var M=C.value;M.parent=null,M.children.length=0}}catch(it){d.e(it)}finally{d.f()}var B=GS(this.cacheTiles.values()),J;try{for(B.s();!(J=B.n()).done;){var ue=J.value,Ue=this.getNearestAncestor(ue.x,ue.y,ue.z);ue.parent=Ue,Ue!=null&&Ue.children&&Ue.children.push(ue)}}catch(it){B.e(it)}finally{B.f()}}},{key:"getNearestAncestor",value:function(d,C,M){for(;M>this.options.minZoom;){d=Math.floor(d/2),C=Math.floor(C/2),M=M-1;var B=this.getTile(d,C,M);if(B)return B}return null}}]),f}(eT());function Q2(i){return/(?=.*{box})(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(i)}function NC(i){var v=[],f=/\{([a-z])-([a-z])\}/.exec(i);if(f){var g=f[1].charCodeAt(0),d=f[2].charCodeAt(0),C;for(C=g;C<=d;++C)v.push(i.replace(f[0],String.fromCharCode(C)));return v}if(f=/\{(\d+)-(\d+)\}/.exec(i),f){for(var M=parseInt(f[2],10),B=parseInt(f[1],10);B<=M;B++)v.push(i.replace(f[0],B.toString()));return v}return v.push(i),v}function FC(i,v){if(!i||!i.length)throw new Error("url is not allowed to be empty");var f=v.x,g=v.y,d=v.z,C=NC(i),M=Math.abs(f+g)%C.length,B=Qv(C[M])?"".concat(C[M],"/{z}/{x}/{y}"):C[M];return B.replace(/\{x\}/g,f.toString()).replace(/\{y\}/g,g.toString()).replace(/\{z\}/g,d.toString()).replace(/\{bbox\}/g,GE(f,g,d).join(",")).replace(/\{-y\}/g,(Math.pow(2,d)-g-1).toString())}function t1(i,v){var f=v.x,g=v.y,d=v.z,C=v.layer,M=v.version,B=M===void 0?"1.0.0":M,J=v.style,ue=J===void 0?"default":J,Ue=v.format,it=v.service,Ir=it===void 0?"WMTS":it,Wo=v.tileMatrixset,Ca=NC(i),eu=Math.abs(f+g)%Ca.length,Bd="".concat(Ca[eu],"&SERVICE=").concat(Ir,"&REQUEST=GetTile&VERSION=").concat(B,"&LAYER=").concat(C,"&STYLE=").concat(ue,"&TILEMATRIXSET=").concat(Wo,"&FORMAT=").concat(Ue,"&TILECOL=").concat(f,"&TILEROW=").concat(g,"&TILEMATRIX=").concat(d);return Bd}function j(i,v){if(!i)throw new Error(v||"web worker helper assertion failed.")}var Y={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,document:typeof document!="undefined"&&document},Te=Y.self||Y.window||{},ze=Y.window||Y.self||{},Pn=Y.self||Y.window||{},za=Y.document||{},og=typeof importScripts=="function",Qe=typeof window!="undefined"&&typeof window.orientation!="undefined",z=function(){function i(v,f){var g=this;this.name=v,this.workerThread=f,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise(function(d,C){g.resolve=d,g.reject=C})}return i.prototype.postMessage=function(v,f){this.workerThread.postMessage({source:"Main thread",type:v,payload:f})},i.prototype.done=function(v){j(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(v)},i.prototype.error=function(v){j(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(v)},i}(),we=z,Je=new Map;function yt(i){j(i.source&&!i.url||!i.source&&i.url);var v=Je.get(i.source||i.url);return v||(i.url&&(v=er(i.url),Je.set(i.url,v)),i.source&&(v=Gs(i.source),Je.set(i.source,v))),j(v),v}function er(i){if(!i.startsWith("http"))return i;var v=Sa(i);return Gs(v)}function Gs(i){var v=new Blob([i],{type:"application/javascript"});return URL.createObjectURL(v)}function Sa(i){return`try { + importScripts('`+i+`'); } 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&&C[C.length-1])&&(ue[0]===6||ue[0]===2)){f=0;continue}if(ue[0]===3&&(!C||ue[1]>C[0]&&ue[1]this.getMaxConcurrency();f?(v.destroy(),this.count--):this.idleQueue.push(v),this.isDestroyed||this.startQueuedJob()},i.prototype.getAvailableWorker=function(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count=i.length&&(i=void 0),{value:i&&i[g++],done:!i}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")},D0={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},Z0=function(){function i(v){this.workerPools=new Map,this.props=kg({},D0),this.setProps(v),this.workerPools=new Map}return i.isSupported=function(){return ge.isSupported()},i.getWorkerFarm=function(v){return v===void 0&&(v={}),i.workerFarm=i.workerFarm||new i({}),i.workerFarm.setProps(v),i.workerFarm},i.prototype.destroy=function(){var v,f;try{for(var g=ou(this.workerPools.values()),d=g.next();!d.done;d=g.next()){var C=d.value;C.destroy()}}catch(M){v={error:M}}finally{try{d&&!d.done&&(f=g.return)&&f.call(g)}finally{if(v)throw v.error}}},i.prototype.setProps=function(v){var f,g;this.props=kg(kg({},this.props),v);try{for(var d=ou(this.workerPools.values()),C=d.next();!C.done;C=d.next()){var M=C.value;M.setProps(this.getWorkerPoolProps())}}catch(B){f={error:B}}finally{try{C&&!C.done&&(g=d.return)&&g.call(d)}finally{if(f)throw f.error}}},i.prototype.getWorkerPool=function(v){var f=v.name,g=v.source,d=v.url,C=this.workerPools.get(f);return C||(C=new Va({name:f,source:g,url:d}),C.setProps(this.getWorkerPoolProps()),this.workerPools.set(f,C)),C},i.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}},i}(),lv=Z0,Xv=new Map,d1=function(){function i(){}return Object.defineProperty(i,"onmessage",{set:function(v){self.onmessage=function(f){if(Yv(f)){var g=f.data,d=g.type,C=g.payload;v(d,C)}}},enumerable:!1,configurable:!0}),i.addEventListener=function(v){var f=Xv.get(v);f||(f=function(g){if(Yv(g)){var d=g.data,C=d.type,M=d.payload;v(C,M)}}),self.addEventListener("message",f)},i.removeEventListener=function(v){var f=Xv.get(v);Xv.delete(v),self.removeEventListener("message",f)},i.postMessage=function(v,f){if(self){var g={source:"Worker thread",type:v,payload:f},d=xu(f);self.postMessage(g,d)}},i}(),ev=null;function Yv(i){var v=i.type,f=i.data;return v==="message"&&f&&typeof f.source=="string"&&f.source==="Main thread"}function ly(i){return JSON.parse(n_(i))}function n_(i){var v=new Set;return JSON.stringify(i,function(f,g){if(typeof g=="object"&&g!==null){if(v.has(g))try{return JSON.parse(JSON.stringify(g))}catch(d){return}v.add(g)}return g})}function t_(i){return""+i.name}function Y_(i,v){v===void 0&&(v={});var f=v[i.id]||{},g=i.name+".worker.js",d=f.workerUrl;return v._workerType==="test"&&(d=i.module+"/dist/"+g),d||(d="https://unpkg.com/"+i.module+"/dist/"+g),assert(d),d}var __=function(i,v,f,g){function d(C){return C instanceof f?C:new f(function(M){M(C)})}return new(f||(f=Promise))(function(C,M){function B(Ue){try{ue(g.next(Ue))}catch(it){M(it)}}function J(Ue){try{ue(g.throw(Ue))}catch(it){M(it)}}function ue(Ue){Ue.done?C(Ue.value):d(Ue.value).then(B,J)}ue((g=g.apply(i,v||[])).next())})},bx=function(i,v){var f={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},g,d,C,M;return M={next:B(0),throw:B(1),return:B(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function B(ue){return function(Ue){return J([ue,Ue])}}function J(ue){if(g)throw new TypeError("Generator is already executing.");for(;f;)try{if(g=1,d&&(C=ue[0]&2?d.return:ue[0]?d.throw||((C=d.return)&&C.call(d),0):d.next)&&!(C=C.call(d,ue[1])).done)return C;switch(d=0,C&&(ue=[ue[0]&2,C.value]),ue[0]){case 0:case 1:C=ue;break;case 4:return f.label++,{value:ue[1],done:!1};case 5:f.label++,d=ue[1],ue=[0];continue;case 7:ue=f.ops.pop(),f.trys.pop();continue;default:if(C=f.trys,!(C=C.length>0&&C[C.length-1])&&(ue[0]===6||ue[0]===2)){f=0;continue}if(ue[0]===3&&(!C||ue[1]>C[0]&&ue[1]0){if(this._values.length>0)throw new Error("Illegal internal state");var f=this._settlers.shift();v instanceof Error?f.reject(v):f.resolve({value:v})}else this._values.push(v)},i.prototype.close=function(){for(;this._settlers.length>0;){var v=this._settlers.shift();v.resolve({done:!0})}this._closed=!0},i.prototype.next=function(){var v=this;if(this._values.length>0){var f=this._values.shift();return f instanceof Error?Promise.reject(f):Promise.resolve({done:!1,value:f})}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(g,d){v._settlers.push({resolve:g,reject:d})})},i}(),Iw=null,cC=function(i,v,f,g){function d(C){return C instanceof f?C:new f(function(M){M(C)})}return new(f||(f=Promise))(function(C,M){function B(Ue){try{ue(g.next(Ue))}catch(it){M(it)}}function J(Ue){try{ue(g.throw(Ue))}catch(it){M(it)}}function ue(Ue){Ue.done?C(Ue.value):d(Ue.value).then(B,J)}ue((g=g.apply(i,v||[])).next())})},tC=function(i,v){var f={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},g,d,C,M;return M={next:B(0),throw:B(1),return:B(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function B(ue){return function(Ue){return J([ue,Ue])}}function J(ue){if(g)throw new TypeError("Generator is already executing.");for(;f;)try{if(g=1,d&&(C=ue[0]&2?d.return:ue[0]?d.throw||((C=d.return)&&C.call(d),0):d.next)&&!(C=C.call(d,ue[1])).done)return C;switch(d=0,C&&(ue=[ue[0]&2,C.value]),ue[0]){case 0:case 1:C=ue;break;case 4:return f.label++,{value:ue[1],done:!1};case 5:f.label++,d=ue[1],ue=[0];continue;case 7:ue=f.ops.pop(),f.trys.pop();continue;default:if(C=f.trys,!(C=C.length>0&&C[C.length-1])&&(ue[0]===6||ue[0]===2)){f=0;continue}if(ue[0]===3&&(!C||ue[1]>C[0]&&ue[1]0&&C[C.length-1])&&(ue[0]===6||ue[0]===2)){f=0;continue}if(ue[0]===3&&(!C||ue[1]>C[0]&&ue[1]0&&(d=1/Math.sqrt(d)),i[0]=v[0]*d,i[1]=v[1]*d,i}function BT(i,v){return i[0]*v[0]+i[1]*v[1]}function t3(i,v,f){var g=v[0]*f[1]-v[1]*f[0];return i[0]=i[1]=0,i[2]=g,i}function GT(i,v,f,g){var d=v[0],C=v[1];return i[0]=d+g*(f[0]-d),i[1]=C+g*(f[1]-C),i}function eD(i,v){v=v||1;var f=glMatrix.RANDOM()*2*Math.PI;return i[0]=Math.cos(f)*v,i[1]=Math.sin(f)*v,i}function bE(i,v,f){var g=v[0],d=v[1];return i[0]=f[0]*g+f[2]*d,i[1]=f[1]*g+f[3]*d,i}function QE(i,v,f){var g=v[0],d=v[1];return i[0]=f[0]*g+f[2]*d+f[4],i[1]=f[1]*g+f[3]*d+f[5],i}function AS(i,v,f){var g=v[0],d=v[1];return i[0]=f[0]*g+f[3]*d+f[6],i[1]=f[1]*g+f[4]*d+f[7],i}function H3(i,v,f){var g=v[0],d=v[1];return i[0]=f[0]*g+f[4]*d+f[12],i[1]=f[1]*g+f[5]*d+f[13],i}function G3(i,v,f,g){var d=v[0]-f[0],C=v[1]-f[1],M=Math.sin(g),B=Math.cos(g);return i[0]=d*B-C*M+f[0],i[1]=d*M+C*B+f[1],i}function WA(i,v){var f=i[0],g=i[1],d=v[0],C=v[1],M=Math.sqrt(f*f+g*g)*Math.sqrt(d*d+C*C),B=M&&(f*d+g*C)/M;return Math.acos(Math.min(Math.max(B,-1),1))}function M3(i){return i[0]=0,i[1]=0,i}function AD(i){return"vec2("+i[0]+", "+i[1]+")"}function dD(i,v){return i[0]===v[0]&&i[1]===v[1]}function oS(i,v){var f=i[0],g=i[1],d=v[0],C=v[1];return Math.abs(f-d)<=glMatrix.EPSILON*Math.max(1,Math.abs(f),Math.abs(d))&&Math.abs(g-C)<=glMatrix.EPSILON*Math.max(1,Math.abs(g),Math.abs(C))}var K3=null,rA=TS,c3=null,n3=null,r3=null,dT=null,jT=null,D3=function(){var i=fC();return function(v,f,g,d,C,M){var B,J;for(f||(f=2),g||(g=0),d?J=Math.min(d*f+g,v.length):J=v.length,B=g;B0&&arguments[0]!==void 0?arguments[0]:{};(0,Or.Z)(this,i),(0,ka.Z)(this,"lastFlip",-1),(0,ka.Z)(this,"miter",IT(0,0)),(0,ka.Z)(this,"started",!1),(0,ka.Z)(this,"dash",!1),(0,ka.Z)(this,"totalDistance",0),(0,ka.Z)(this,"currentIndex",0),this.join=v.join||"miter",this.cap=v.cap||"butt",this.miterLimit=v.miterLimit||10,this.thickness=v.thickness||1,this.dash=v.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,at.Z)(i,[{key:"extrude_gaode2",value:function(f,g){var d=this.complex;if(f.length<=1)return d;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var C=f.length,M=d.startIndex,B=1;Bthis.miterLimit&&(f2=!0)}f2?(Wo.push(this.normal[0],this.normal[1],0),Wo.push(_x[0],_x[1],0),Ir.push(C[0],C[1],C[2]|0,this.totalDistance,-this.thickness*ux,C[2]|0),this.complex.indexes.push(this.currentIndex),Ir.push(C[0],C[1],C[2]|0,this.totalDistance,this.thickness*ux,C[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,it.push.apply(it,(0,Gd.Z)(this.lastFlip!==-ux?[g,g+2,g+3]:[g+2,g+1,g+3])),it.push(g+2,g+3,g+4),Lu(OA,he),cE(this.normal,OA),Wo.push(this.normal[0],this.normal[1],0),Ir.push(C[0],C[1],C[2]|0,this.totalDistance,-this.thickness*ux,C[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Ue+=3):(this.extrusions(Ir,Wo,C,_x,w_,this.totalDistance),it.push.apply(it,(0,Gd.Z)(this.lastFlip===1?[g,g+2,g+3]:[g+2,g+1,g+3])),ux=-1,cE(this.normal,_x),Ue+=2),this.lastFlip=ux}else{if(Lu(this.normal,qe),Ca){var _y=fC(),Q1=fC();rA(Q1,qe,this.normal),VC(_y,qe,this.normal),Wo.push(Q1[0],Q1[1],0),Wo.push(_y[0],_y[1],0),Ir.push(C[0],C[1],C[2]|0,this.totalDistance,this.thickness,C[2]|0),this.complex.indexes.push(this.currentIndex),Ir.push(C[0],C[1],C[2]|0,this.totalDistance,this.thickness,C[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(Ir,Wo,C,this.normal,this.thickness,this.totalDistance);it.push.apply(it,(0,Gd.Z)(this.lastFlip===1?[g,g+2,g+3]:[g+2,g+1,g+3])),Ue+=2}return Ue}},{key:"simpleSegment",value:function(f,g,d,C,M){var B=0,J=f.indices,ue=f.positions,Ue=f.normals,it=$C([C[0],C[1]]),Ir=$C([d[0],d[1]]);Hr(qe,it,Ir);var Wo=0;if(this.dash&&(Wo=this.lineSegmentDistance(it,Ir),this.totalDistance+=Wo),this.normal||(this.normal=fC(),Lu(this.normal,qe)),this.started||(this.started=!0,this.extrusions(ue,Ue,d,this.normal,this.thickness,this.totalDistance-Wo)),J.push(g+0,g+1,g+2),!M)Lu(this.normal,qe),this.extrusions(ue,Ue,C,this.normal,this.thickness,this.totalDistance),J.push.apply(J,(0,Gd.Z)(this.lastFlip===1?[g,g+2,g+3]:[g+2,g+1,g+3])),B+=2;else{var Ca=$C([M[0],M[1]]);wr(it,Ca)&&VC(Ca,it,nA(Ca,TS(Ca,it,Ir))),Hr(he,Ca,it);var eu=ai(st,fC(),qe,he,this.thickness),Bd=(0,_g.Z)(eu,2),r0=Bd[0],N0=Bd[1],fv=BT(st,this.normal)<0?-1:1;this.extrusions(ue,Ue,C,N0,r0,this.totalDistance),J.push.apply(J,(0,Gd.Z)(this.lastFlip===1?[g,g+2,g+3]:[g+2,g+1,g+3])),fv=-1,cE(this.normal,N0),B+=2,this.lastFlip=fv}return B}},{key:"segment",value:function(f,g,d,C,M){var B=0,J=f.indices,ue=f.positions,Ue=f.normals,it=this.cap==="square",Ir=this.join==="bevel",Wo=$C([C[0],C[1]]),Ca=$C([d[0],d[1]]);Hr(qe,Wo,Ca);var eu=0;if(this.dash&&(eu=this.lineSegmentDistance(Wo,Ca),this.totalDistance+=eu),this.normal||(this.normal=fC(),Lu(this.normal,qe)),!this.started)if(this.started=!0,it){var Bd=fC(),r0=fC();VC(Bd,this.normal,qe),VC(r0,this.normal,qe),Ue.push(r0[0],r0[1],0),Ue.push(Bd[0],Bd[1],0),ue.push(d[0],d[1],d[2]|0,this.totalDistance-eu,-this.thickness,d[2]|0),this.complex.indexes.push(this.currentIndex),ue.push(d[0],d[1],d[2]|0,this.totalDistance-eu,this.thickness,d[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ue,Ue,d,this.normal,this.thickness,this.totalDistance-eu);if(J.push(g+0,g+1,g+2),M){var v1=$C([M[0],M[1]]);wr(Wo,v1)&&VC(v1,Wo,nA(v1,TS(v1,Wo,Ca))),Hr(he,v1,Wo);var _y=ai(st,fC(),qe,he,this.thickness),Q1=(0,_g.Z)(_y,2),iy=Q1[0],Uy=Q1[1],w_=BT(st,this.normal)<0?-1:1,_x=Ir;if(!_x&&this.join==="miter"){var ux=iy;ux>this.miterLimit&&(_x=!0)}_x?(Ue.push(this.normal[0],this.normal[1],0),Ue.push(Uy[0],Uy[1],0),ue.push(C[0],C[1],C[2]|0,this.totalDistance,-this.thickness*w_,C[2]|0),this.complex.indexes.push(this.currentIndex),ue.push(C[0],C[1],C[2]|0,this.totalDistance,this.thickness*w_,C[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,J.push.apply(J,(0,Gd.Z)(this.lastFlip!==-w_?[g,g+2,g+3]:[g+2,g+1,g+3])),J.push(g+2,g+3,g+4),Lu(OA,he),cE(this.normal,OA),Ue.push(this.normal[0],this.normal[1],0),ue.push(C[0],C[1],C[2]|0,this.totalDistance,-this.thickness*w_,C[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,B+=3):(this.extrusions(ue,Ue,C,Uy,iy,this.totalDistance),J.push.apply(J,(0,Gd.Z)(this.lastFlip===1?[g,g+2,g+3]:[g+2,g+1,g+3])),w_=-1,cE(this.normal,Uy),B+=2),this.lastFlip=w_}else{if(Lu(this.normal,qe),it){var N0=fC(),fv=fC();rA(fv,qe,this.normal),VC(N0,qe,this.normal),Ue.push(fv[0],fv[1],0),Ue.push(N0[0],N0[1],0),ue.push(C[0],C[1],C[2]|0,this.totalDistance,this.thickness,C[2]|0),this.complex.indexes.push(this.currentIndex),ue.push(C[0],C[1],C[2]|0,this.totalDistance,this.thickness,C[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ue,Ue,C,this.normal,this.thickness,this.totalDistance);J.push.apply(J,(0,Gd.Z)(this.lastFlip===1?[g,g+2,g+3]:[g+2,g+1,g+3])),B+=2}return B}},{key:"extrusions",value:function(f,g,d,C,M,B){g.push(C[0],C[1],0),g.push(C[0],C[1],0),f.push(d[0],d[1],d[2]|0,B,-M,d[2]|0),this.complex.indexes.push(this.currentIndex),f.push(d[0],d[1],d[2]|0,B,M,d[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(f,g){var d=g[0]-f[0],C=g[1]-f[1];return Math.sqrt(d*d+C*C)}}]),i}();function Ma(i){var v=i.coordinates,f=i.originCoordinates,g=i.version,d=new Oa({dash:!0,join:"bevel"});if(g==="GAODE2.x"){var C=v;Array.isArray(C[0][0])||(C=[v]);var M=f;Array.isArray(M[0][0])||(M=[f]);for(var B=0;B0}).forEach(function(r0,N0){var fv=y0(r0[B]);(0,Ro.flattenEach)(fv,function(v1){var _y=(0,Ra.getCoords)(v1),Q1=(0,An.Z)((0,An.Z)({},r0),{},{_id:N0,coordinates:_y});J.push(Q1)})}),{dataArray:J};for(var ue=0;ue>>0}function Wv(i,v){return v===void 0?null:typeof(i.properties[v]*1)=="number"?i.properties[v]*1:i.properties&&i.properties[v]?H0(i.properties[v]+"")%1000019:null}function o1(i,v){var f=[],g={};return i.features?(i.features=i.features.filter(function(d){var C=d.geometry;return d!=null&&C&&C.type&&C.coordinates&&C.coordinates.length>0}),i=y0(i),i.features.length===0?{dataArray:[],featureKeys:g}:((0,Ro.flattenEach)(i,function(d,C){var M=Wv(d,v==null?void 0:v.featureId);M===null&&(M=C);var B=M,J=(0,Ra.getCoords)(d),ue=(0,An.Z)((0,An.Z)({},d.properties),{},{coordinates:J,_id:B});f.push(ue)}),{dataArray:f,featureKeys:g})):(i.features=[],{dataArray:[]})}function Mv(i,v,f,g){for(var d=g,C=f-v>>1,M=f-v,B,J=i[v],ue=i[v+1],Ue=i[f],it=i[f+1],Ir=v+3;Ird)B=Ir,d=Wo;else if(Wo===d){var Ca=Math.abs(Ir-C);Cag&&(B-v>3&&Mv(i,v,B,g),i[B+2]=d,f-B>3&&Mv(i,B,f,g))}function K1(i,v,f,g,d,C){var M=d-f,B=C-g;if(M!==0||B!==0){var J=((i-f)*M+(v-g)*B)/(M*M+B*B);J>1?(f=d,g=C):J>0&&(f+=M*J,g+=B*J)}return M=i-f,B=v-g,M*M+B*B}function Iv(i,v,f,g){var d={id:typeof i=="undefined"?null:i,type:v,geometry:f,tags:g,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return ry(d),d}function ry(i){var v=i.geometry,f=i.type;if(f==="Point"||f==="MultiPoint"||f==="LineString")Lv(i,v);else if(f==="Polygon"||f==="MultiLineString")for(var g=0;g0&&(g?M+=(d*ue-J*C)/2:M+=Math.sqrt(Math.pow(J-d,2)+Math.pow(ue-C,2))),d=J,C=ue}var Ue=v.length-3;v[2]=1,Mv(v,0,Ue,f),v[Ue+2]=1,v.size=Math.abs(M),v.start=0,v.end=v.size}function ga(i,v,f,g){for(var d=0;d1?1:f}function s1(i,v,f,g,d,C,M,B){if(f/=v,g/=v,C>=f&&M=g)return null;for(var J=[],ue=0;ue=f&&Ca=g)continue;var eu=[];if(Ir==="Point"||Ir==="MultiPoint")j1(it,eu,f,g,d);else if(Ir==="LineString")Ly(it,eu,f,g,d,!1,B.lineMetrics);else if(Ir==="MultiLineString")Rv(it,eu,f,g,d,!1);else if(Ir==="Polygon")Rv(it,eu,f,g,d,!0);else if(Ir==="MultiPolygon")for(var Bd=0;Bd=f&&M<=g&&(v.push(i[C]),v.push(i[C+1]),v.push(i[C+2]))}}function Ly(i,v,f,g,d,C,M){for(var B=vv(i),J=d===0?uy:Ry,ue=i.start,Ue,it,Ir=0;Irf&&(it=J(B,Wo,Ca,Bd,r0,f),M&&(B.start=ue+Ue*it)):N0>g?fv=f&&(it=J(B,Wo,Ca,Bd,r0,f),v1=!0),fv>g&&N0<=g&&(it=J(B,Wo,Ca,Bd,r0,g),v1=!0),!C&&v1&&(M&&(B.end=ue+Ue*it),v.push(B),B=vv(i)),M&&(ue+=Ue)}var _y=i.length-3;Wo=i[_y],Ca=i[_y+1],eu=i[_y+2],N0=d===0?Wo:Ca,N0>=f&&N0<=g&&Nv(B,Wo,Ca,eu),_y=B.length-3,C&&_y>=3&&(B[_y]!==B[0]||B[_y+1]!==B[1])&&Nv(B,B[0],B[1],B[2]),B.length&&v.push(B)}function vv(i){var v=[];return v.size=i.size,v.start=i.start,v.end=i.end,v}function Rv(i,v,f,g,d,C){for(var M=0;MM.maxX&&(M.maxX=Ue),it>M.maxY&&(M.maxY=it)}return M}function o_(i,v,f,g){var d=v.geometry,C=v.type,M=[];if(C==="Point"||C==="MultiPoint")for(var B=0;B0&&v.size<(d?M:g)){f.numPoints+=v.length/3;return}for(var B=[],J=0;JM)&&(f.numSimplified++,B.push(v[J]),B.push(v[J+1])),f.numPoints++;d&&gv(B,C),i.push(B)}function gv(i,v){for(var f=0,g=0,d=i.length,C=d-2;g0===v)for(g=0,d=i.length;g24)throw new Error("maxZoom should be in the 0-24 range");if(v.promoteId&&v.generateId)throw new Error("promoteId and generateId cannot be used together.");var g=tv(i,v);this.tiles={},this.tileCoords=[],f&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",v.indexMaxZoom,v.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),g=Ht(g,v),g.length&&this.splitTile(g,0,0,0),f&&(g.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)))}g1.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},g1.prototype.splitTile=function(i,v,f,g,d,C,M){for(var B=[i,v,f,g],J=this.options,ue=J.debug;B.length;){g=B.pop(),f=B.pop(),v=B.pop(),i=B.pop();var Ue=1<1&&console.time("creation"),Ir=this.tiles[it]=Ey(i,v,f,g,J),this.tileCoords.push({z:v,x:f,y:g}),ue)){ue>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",v,f,g,Ir.numFeatures,Ir.numPoints,Ir.numSimplified),console.timeEnd("creation"));var Wo="z"+v;this.stats[Wo]=(this.stats[Wo]||0)+1,this.total++}if(Ir.source=i,d){if(v===J.maxZoom||v===d)continue;var Ca=1<1&&console.time("clipping");var eu=.5*J.buffer/J.extent,Bd=.5-eu,r0=.5+eu,N0=1+eu,fv,v1,_y,Q1,iy,Uy;fv=v1=_y=Q1=null,iy=s1(i,Ue,f-eu,f+r0,0,Ir.minX,Ir.maxX,J),Uy=s1(i,Ue,f+Bd,f+N0,0,Ir.minX,Ir.maxX,J),i=null,iy&&(fv=s1(iy,Ue,g-eu,g+r0,1,Ir.minY,Ir.maxY,J),v1=s1(iy,Ue,g+Bd,g+N0,1,Ir.minY,Ir.maxY,J),iy=null),Uy&&(_y=s1(Uy,Ue,g-eu,g+r0,1,Ir.minY,Ir.maxY,J),Q1=s1(Uy,Ue,g+Bd,g+N0,1,Ir.minY,Ir.maxY,J),Uy=null),ue>1&&console.timeEnd("clipping"),B.push(fv||[],v+1,f*2,g*2),B.push(v1||[],v+1,f*2,g*2+1),B.push(_y||[],v+1,f*2+1,g*2),B.push(Q1||[],v+1,f*2+1,g*2+1)}}},g1.prototype.getTile=function(i,v,f){var g=this.options,d=g.extent,C=g.debug;if(i<0||i>24)return null;var M=1<1&&console.log("drilling down to z%d-%d-%d",i,v,f);for(var J=i,ue=v,Ue=f,it;!it&&J>0;)J--,ue=Math.floor(ue/2),Ue=Math.floor(Ue/2),it=this.tiles[dy(J,ue,Ue)];return!it||!it.source?null:(C>1&&console.log("found parent tile z%d-%d-%d",J,ue,Ue),C>1&&console.time("drilling down"),this.splitTile(it.source,J,ue,Ue,i,v,f),C>1&&console.timeEnd("drilling down"),this.tiles[B]?j_(this.tiles[B],d):null)};function dy(i,v,f){return((1<0)switch(g[0]){case"band":try{i[d]=v[g[1]][f]}catch(C){console.warn("Raster Data err!"),i[d]=0}break;default:_C(g,v,f)}})}function Pw(i){var v=(0,_g.Z)(i,3),f=v[0],g=v[1],d=g===void 0?-1:g,C=v[2],M=C===void 0?-1:C;if(f===void 0)return console.warn("Express err!"),["+",0,0];var B=f.replace(/\s+/g,"");return[B,d,M]}function aS(i){var v=Pw(i),f=v[0],g=v[1],d=v[2];return Array.isArray(g)&&(g=aS(i[1])),Array.isArray(d)&&(d=aS(i[2])),sS(f,g,d)}var qv={nd:{type:"operation",expression:["/",["-",["band",1],["band",0]],["+",["band",1],["band",0]]]},rgb:{type:"function",method:v_}};function v_(i,v){for(var f=i[0].rasterData,g=i[1].rasterData,d=i[2].rasterData,C=[],M=(v==null?void 0:v.countCut)||[2,98],B=(0,_g.Z)(M,2),J=B[0],ue=B[1],Ue=(v==null?void 0:v.RMinMax)||T2(f,J,ue),it=(v==null?void 0:v.GMinMax)||T2(g,J,ue),Ir=(v==null?void 0:v.BMinMax)||T2(d,J,ue),Wo=0;Wo"),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")},p0=l(52155),Bv=l.n(p0);function c1(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=l1(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var g=0,d=function(){};return{s:d,n:function(){return g>=i.length?{done:!0}:{done:!1,value:i[g++]}},e:function(ue){throw ue},f:d}}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 C=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return C=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!C&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function l1(i,v){if(i){if(typeof i=="string")return X1(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return X1(i,v)}}function X1(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,g=new Array(v);fC&&(Wo=0,Ir++),B[eu]={x:Wo,y:it+Ir*Py,width:Py,height:Py,advance:r0},Wo+=Py}});var Ca=g+d*2;return{mapping:B,xOffset:Wo,yOffset:it+Ir*Ca,canvasHeight:vy(it+(Ir+1)*Ca)}}function Ty(i,v,f){var g=0,d=0,C=0,M=[],B={},J=c1(i),ue;try{for(J.s();!(ue=J.n()).done;){var Ue=ue.value;if(!B[Ue.id]){var it=Ue.size;g+it+v>f&&(_v(B,M,d),g=0,d=C+d+v,C=0,M=[]),M.push({icon:Ue,xOffset:g}),g=g+it+v,C=Math.max(C,it)}}}catch(Wo){J.e(Wo)}finally{J.f()}M.length>0&&_v(B,M,d);var Ir=vy(C+d+v);return{mapping:B,canvasHeight:Ir}}function _v(i,v,f){var g=c1(v),d;try{for(g.s();!(d=g.n()).done;){var C=d.value,M=C.icon,B=C.xOffset;i[M.id]=(0,An.Z)((0,An.Z)({},M),{},{x:B,y:f,image:M.image,width:M.width,height:M.height})}}catch(J){g.e(J)}finally{g.f()}}function vy(i){return Math.pow(2,Math.ceil(Math.log2(i)))}var h_,Hy;function J_(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=fx(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var g=0,d=function(){};return{s:d,n:function(){return g>=i.length?{done:!0}:{done:!1,value:i[g++]}},e:function(ue){throw ue},f:d}}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 C=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return C=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!C&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function fx(i,v){if(i){if(typeof i=="string")return kx(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return kx(i,v)}}function kx(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,g=new Array(v);f0?(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?(f[0]=(B*M+Ue*g+J*C-ue*d)*2/it,f[1]=(J*M+Ue*d+ue*g-B*C)*2/it,f[2]=(ue*M+Ue*C+B*d-J*g)*2/it):(f[0]=(B*M+Ue*g+J*C-ue*d)*2,f[1]=(J*M+Ue*d+ue*g-B*C)*2,f[2]=(ue*M+Ue*C+B*d-J*g)*2),Q(i,v,f),i}function Le(i,v){return i[0]=v[12],i[1]=v[13],i[2]=v[14],i}function rt(i,v){var f=v[0],g=v[1],d=v[2],C=v[4],M=v[5],B=v[6],J=v[8],ue=v[9],Ue=v[10];return i[0]=Math.hypot(f,g,d),i[1]=Math.hypot(C,M,B),i[2]=Math.hypot(J,ue,Ue),i}function on(i,v){var f=new VE(3);rt(f,v);var g=1/f[0],d=1/f[1],C=1/f[2],M=v[0]*g,B=v[1]*d,J=v[2]*C,ue=v[4]*g,Ue=v[5]*d,it=v[6]*C,Ir=v[8]*g,Wo=v[9]*d,Ca=v[10]*C,eu=M+Ue+Ca,Bd=0;return eu>0?(Bd=Math.sqrt(eu+1)*2,i[3]=.25*Bd,i[0]=(it-Wo)/Bd,i[1]=(Ir-J)/Bd,i[2]=(B-ue)/Bd):M>Ue&&M>Ca?(Bd=Math.sqrt(1+M-Ue-Ca)*2,i[3]=(it-Wo)/Bd,i[0]=.25*Bd,i[1]=(B+ue)/Bd,i[2]=(Ir+J)/Bd):Ue>Ca?(Bd=Math.sqrt(1+Ue-M-Ca)*2,i[3]=(Ir-J)/Bd,i[0]=(B+ue)/Bd,i[1]=.25*Bd,i[2]=(it+Wo)/Bd):(Bd=Math.sqrt(1+Ca-M-Ue)*2,i[3]=(B-ue)/Bd,i[0]=(Ir+J)/Bd,i[1]=(it+Wo)/Bd,i[2]=.25*Bd),i}function Bs(i,v,f,g){var d=v[0],C=v[1],M=v[2],B=v[3],J=d+d,ue=C+C,Ue=M+M,it=d*J,Ir=d*ue,Wo=d*Ue,Ca=C*ue,eu=C*Ue,Bd=M*Ue,r0=B*J,N0=B*ue,fv=B*Ue,v1=g[0],_y=g[1],Q1=g[2];return i[0]=(1-(Ca+Bd))*v1,i[1]=(Ir+fv)*v1,i[2]=(Wo-N0)*v1,i[3]=0,i[4]=(Ir-fv)*_y,i[5]=(1-(it+Bd))*_y,i[6]=(eu+r0)*_y,i[7]=0,i[8]=(Wo+N0)*Q1,i[9]=(eu-r0)*Q1,i[10]=(1-(it+Ca))*Q1,i[11]=0,i[12]=f[0],i[13]=f[1],i[14]=f[2],i[15]=1,i}function Pa(i,v,f,g,d){var C=v[0],M=v[1],B=v[2],J=v[3],ue=C+C,Ue=M+M,it=B+B,Ir=C*ue,Wo=C*Ue,Ca=C*it,eu=M*Ue,Bd=M*it,r0=B*it,N0=J*ue,fv=J*Ue,v1=J*it,_y=g[0],Q1=g[1],iy=g[2],Uy=d[0],w_=d[1],_x=d[2],ux=(1-(eu+r0))*_y,f2=(Wo+v1)*_y,G2=(Ca-fv)*_y,cw=(Wo-v1)*Q1,JE=(1-(Ir+r0))*Q1,mT=(Bd+N0)*Q1,qT=(Ca+fv)*iy,Z3=(Bd-N0)*iy,yA=(1-(Ir+eu))*iy;return i[0]=ux,i[1]=f2,i[2]=G2,i[3]=0,i[4]=cw,i[5]=JE,i[6]=mT,i[7]=0,i[8]=qT,i[9]=Z3,i[10]=yA,i[11]=0,i[12]=f[0]+Uy-(ux*Uy+cw*w_+qT*_x),i[13]=f[1]+w_-(f2*Uy+JE*w_+Z3*_x),i[14]=f[2]+_x-(G2*Uy+mT*w_+yA*_x),i[15]=1,i}function uh(i,v){var f=v[0],g=v[1],d=v[2],C=v[3],M=f+f,B=g+g,J=d+d,ue=f*M,Ue=g*M,it=g*B,Ir=d*M,Wo=d*B,Ca=d*J,eu=C*M,Bd=C*B,r0=C*J;return i[0]=1-it-Ca,i[1]=Ue+r0,i[2]=Ir-Bd,i[3]=0,i[4]=Ue-r0,i[5]=1-ue-Ca,i[6]=Wo+eu,i[7]=0,i[8]=Ir+Bd,i[9]=Wo-eu,i[10]=1-ue-it,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}function zg(i,v,f,g,d,C,M){var B=1/(f-v),J=1/(d-g),ue=1/(C-M);return i[0]=C*2*B,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=C*2*J,i[6]=0,i[7]=0,i[8]=(f+v)*B,i[9]=(d+g)*J,i[10]=(M+C)*ue,i[11]=-1,i[12]=0,i[13]=0,i[14]=M*C*2*ue,i[15]=0,i}function M0(i,v,f,g,d){var C=1/Math.tan(v/2),M;return i[0]=C/f,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=C,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[11]=-1,i[12]=0,i[13]=0,i[15]=0,d!=null&&d!==1/0?(M=1/(g-d),i[10]=(d+g)*M,i[14]=2*d*g*M):(i[10]=-1,i[14]=-2*g),i}var z0=M0;function Zv(i,v,f,g,d){var C=1/Math.tan(v/2),M;return i[0]=C/f,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=C,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[11]=-1,i[12]=0,i[13]=0,i[15]=0,d!=null&&d!==1/0?(M=1/(g-d),i[10]=d*M,i[14]=d*g*M):(i[10]=-1,i[14]=-g),i}function Vv(i,v,f,g){var d=Math.tan(v.upDegrees*Math.PI/180),C=Math.tan(v.downDegrees*Math.PI/180),M=Math.tan(v.leftDegrees*Math.PI/180),B=Math.tan(v.rightDegrees*Math.PI/180),J=2/(M+B),ue=2/(d+C);return i[0]=J,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=ue,i[6]=0,i[7]=0,i[8]=-((M-B)*J*.5),i[9]=(d-C)*ue*.5,i[10]=g/(f-g),i[11]=-1,i[12]=0,i[13]=0,i[14]=g*f/(f-g),i[15]=0,i}function i1(i,v,f,g,d,C,M){var B=1/(v-f),J=1/(g-d),ue=1/(C-M);return i[0]=-2*B,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=-2*J,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=2*ue,i[11]=0,i[12]=(v+f)*B,i[13]=(d+g)*J,i[14]=(M+C)*ue,i[15]=1,i}var Kv=i1;function wv(i,v,f,g,d,C,M){var B=1/(v-f),J=1/(g-d),ue=1/(C-M);return i[0]=-2*B,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=-2*J,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=ue,i[11]=0,i[12]=(v+f)*B,i[13]=(d+g)*J,i[14]=C*ue,i[15]=1,i}function oy(i,v,f,g){var d,C,M,B,J,ue,Ue,it,Ir,Wo,Ca=v[0],eu=v[1],Bd=v[2],r0=g[0],N0=g[1],fv=g[2],v1=f[0],_y=f[1],Q1=f[2];return Math.abs(Ca-v1)0&&(Wo=1/Math.sqrt(Wo),Ue*=Wo,it*=Wo,Ir*=Wo);var Ca=J*Ir-ue*it,eu=ue*Ue-B*Ir,Bd=B*it-J*Ue;return Wo=Ca*Ca+eu*eu+Bd*Bd,Wo>0&&(Wo=1/Math.sqrt(Wo),Ca*=Wo,eu*=Wo,Bd*=Wo),i[0]=Ca,i[1]=eu,i[2]=Bd,i[3]=0,i[4]=it*Bd-Ir*eu,i[5]=Ir*Ca-Ue*Bd,i[6]=Ue*eu-it*Ca,i[7]=0,i[8]=Ue,i[9]=it,i[10]=Ir,i[11]=0,i[12]=d,i[13]=C,i[14]=M,i[15]=1,i}function x_(i){return"mat4("+i[0]+", "+i[1]+", "+i[2]+", "+i[3]+", "+i[4]+", "+i[5]+", "+i[6]+", "+i[7]+", "+i[8]+", "+i[9]+", "+i[10]+", "+i[11]+", "+i[12]+", "+i[13]+", "+i[14]+", "+i[15]+")"}function dx(i){return Math.hypot(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],i[9],i[10],i[11],i[12],i[13],i[14],i[15])}function Ux(i,v,f){return i[0]=v[0]+f[0],i[1]=v[1]+f[1],i[2]=v[2]+f[2],i[3]=v[3]+f[3],i[4]=v[4]+f[4],i[5]=v[5]+f[5],i[6]=v[6]+f[6],i[7]=v[7]+f[7],i[8]=v[8]+f[8],i[9]=v[9]+f[9],i[10]=v[10]+f[10],i[11]=v[11]+f[11],i[12]=v[12]+f[12],i[13]=v[13]+f[13],i[14]=v[14]+f[14],i[15]=v[15]+f[15],i}function Dx(i,v,f){return i[0]=v[0]-f[0],i[1]=v[1]-f[1],i[2]=v[2]-f[2],i[3]=v[3]-f[3],i[4]=v[4]-f[4],i[5]=v[5]-f[5],i[6]=v[6]-f[6],i[7]=v[7]-f[7],i[8]=v[8]-f[8],i[9]=v[9]-f[9],i[10]=v[10]-f[10],i[11]=v[11]-f[11],i[12]=v[12]-f[12],i[13]=v[13]-f[13],i[14]=v[14]-f[14],i[15]=v[15]-f[15],i}function gw(i,v,f){return i[0]=v[0]*f,i[1]=v[1]*f,i[2]=v[2]*f,i[3]=v[3]*f,i[4]=v[4]*f,i[5]=v[5]*f,i[6]=v[6]*f,i[7]=v[7]*f,i[8]=v[8]*f,i[9]=v[9]*f,i[10]=v[10]*f,i[11]=v[11]*f,i[12]=v[12]*f,i[13]=v[13]*f,i[14]=v[14]*f,i[15]=v[15]*f,i}function Sx(i,v,f,g){return i[0]=v[0]+f[0]*g,i[1]=v[1]+f[1]*g,i[2]=v[2]+f[2]*g,i[3]=v[3]+f[3]*g,i[4]=v[4]+f[4]*g,i[5]=v[5]+f[5]*g,i[6]=v[6]+f[6]*g,i[7]=v[7]+f[7]*g,i[8]=v[8]+f[8]*g,i[9]=v[9]+f[9]*g,i[10]=v[10]+f[10]*g,i[11]=v[11]+f[11]*g,i[12]=v[12]+f[12]*g,i[13]=v[13]+f[13]*g,i[14]=v[14]+f[14]*g,i[15]=v[15]+f[15]*g,i}function X2(i,v){return i[0]===v[0]&&i[1]===v[1]&&i[2]===v[2]&&i[3]===v[3]&&i[4]===v[4]&&i[5]===v[5]&&i[6]===v[6]&&i[7]===v[7]&&i[8]===v[8]&&i[9]===v[9]&&i[10]===v[10]&&i[11]===v[11]&&i[12]===v[12]&&i[13]===v[13]&&i[14]===v[14]&&i[15]===v[15]}function gu(i,v){var f=i[0],g=i[1],d=i[2],C=i[3],M=i[4],B=i[5],J=i[6],ue=i[7],Ue=i[8],it=i[9],Ir=i[10],Wo=i[11],Ca=i[12],eu=i[13],Bd=i[14],r0=i[15],N0=v[0],fv=v[1],v1=v[2],_y=v[3],Q1=v[4],iy=v[5],Uy=v[6],w_=v[7],_x=v[8],ux=v[9],f2=v[10],G2=v[11],cw=v[12],JE=v[13],mT=v[14],qT=v[15];return Math.abs(f-N0)<=Hv*Math.max(1,Math.abs(f),Math.abs(N0))&&Math.abs(g-fv)<=Hv*Math.max(1,Math.abs(g),Math.abs(fv))&&Math.abs(d-v1)<=Hv*Math.max(1,Math.abs(d),Math.abs(v1))&&Math.abs(C-_y)<=Hv*Math.max(1,Math.abs(C),Math.abs(_y))&&Math.abs(M-Q1)<=Hv*Math.max(1,Math.abs(M),Math.abs(Q1))&&Math.abs(B-iy)<=Hv*Math.max(1,Math.abs(B),Math.abs(iy))&&Math.abs(J-Uy)<=Hv*Math.max(1,Math.abs(J),Math.abs(Uy))&&Math.abs(ue-w_)<=Hv*Math.max(1,Math.abs(ue),Math.abs(w_))&&Math.abs(Ue-_x)<=Hv*Math.max(1,Math.abs(Ue),Math.abs(_x))&&Math.abs(it-ux)<=Hv*Math.max(1,Math.abs(it),Math.abs(ux))&&Math.abs(Ir-f2)<=Hv*Math.max(1,Math.abs(Ir),Math.abs(f2))&&Math.abs(Wo-G2)<=Hv*Math.max(1,Math.abs(Wo),Math.abs(G2))&&Math.abs(Ca-cw)<=Hv*Math.max(1,Math.abs(Ca),Math.abs(cw))&&Math.abs(eu-JE)<=Hv*Math.max(1,Math.abs(eu),Math.abs(JE))&&Math.abs(Bd-mT)<=Hv*Math.max(1,Math.abs(Bd),Math.abs(mT))&&Math.abs(r0-qT)<=Hv*Math.max(1,Math.abs(r0),Math.abs(qT))}var mg=IS,s0=Dx,T0,Cv,yy=(T0=(0,Cg.b2)(),T0(Cv=function(){function i(){(0,Or.Z)(this,i),(0,ka.Z)(this,"viewport",void 0),(0,ka.Z)(this,"overridedViewProjectionMatrix",void 0),(0,ka.Z)(this,"jitteredViewProjectionMatrix",void 0),(0,ka.Z)(this,"jitteredProjectionMatrix",void 0),(0,ka.Z)(this,"viewMatrixInverse",void 0),(0,ka.Z)(this,"cameraPosition",void 0)}return(0,at.Z)(i,[{key:"init",value:function(){}},{key:"update",value:function(f){this.viewport=f,this.viewMatrixInverse=Vx(),rT(this.viewMatrixInverse,f.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 f=this.viewport.getCenter(),g=(0,_g.Z)(f,2),d=g[0],C=g[1];return[d,C]}},{key:"getFocalDistance",value:function(){return this.viewport.getFocalDistance()}},{key:"getCameraPosition",value:function(){return this.cameraPosition}},{key:"projectFlat",value:function(f,g){return this.viewport.projectFlat(f,g)}},{key:"setViewProjectionMatrix",value:function(f){this.overridedViewProjectionMatrix=f}},{key:"jitterProjectionMatrix",value:function(f,g){var d=LT(Vx(),[f,g,0]);this.jitteredProjectionMatrix=IS(Vx(),d,this.viewport.getProjectionMatrix()),this.jitteredViewProjectionMatrix=IS(Vx(),this.jitteredProjectionMatrix,this.viewport.getViewMatrix())}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0,this.jitteredViewProjectionMatrix=void 0}}]),i}())||Cv),Yy=function(i){return i.TOPRIGHT="topright",i.TOPLEFT="topleft",i.BOTTOMRIGHT="bottomright",i.BOTTOMLEFT="bottomleft",i.TOPCENTER="topcenter",i.BOTTOMCENTER="bottomcenter",i.LEFTCENTER="leftcenter",i.RIGHTCENTER="rightcenter",i.LEFTTOP="lefttop",i.RIGHTTOP="righttop",i.LEFTBOTTOM="leftbottom",i.RIGHTBOTTOM="rightbottom",i}({}),J1,s_;function rx(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=Z1(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var g=0,d=function(){};return{s:d,n:function(){return g>=i.length?{done:!0}:{done:!1,value:i[g++]}},e:function(ue){throw ue},f:d}}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 C=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return C=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!C&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function Z1(i,v){if(i){if(typeof i=="string")return D2(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return D2(i,v)}}function D2(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,g=new Array(v);f-1&&this.controls.splice(g,1),f.remove(),this}},{key:"addControls",value:function(){var f=this;this.unAddControls.forEach(function(g){g.addTo(f.scene),f.controls.push(g)}),this.unAddControls=[]}},{key:"destroy",value:function(){var f=rx(this.controls),g;try{for(f.s();!(g=f.n()).done;){var d=g.value;d.remove()}}catch(C){f.e(C)}finally{f.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var f=this.controlCorners={},g="l7-",d=this.controlContainer=Fv("div",g+"control-container",this.container);function C(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],J=B.map(function(ue){return g+ue}).join(" ");f[B.filter(function(ue){return!["row","column"].includes(ue)}).join("")]=Fv("div",J,d)}function M(B){var J=B.replace(/^(top|bottom|left|right|center)/,"$1-").split("-");return[].concat((0,Gd.Z)(J),[TC[B]])}Object.values(Yy).forEach(function(B){C(M(B))}),this.checkCornerOverlap()}},{key:"clearControlPos",value:function(){for(var f in this.controlCorners)this.controlCorners[f]&&x1(this.controlCorners[f]);this.controlContainer&&x1(this.controlContainer)}},{key:"checkCornerOverlap",value:function(){var f=this,g=window.MutationObserver;if(g)for(var d=function(){var J=M[C],ue=J.match(/^(top|bottom)(left|right)$/);if(ue){var Ue=(0,_g.Z)(ue,3),it=Ue[1],Ir=Ue[2],Wo=f.controlCorners["".concat(it).concat(Ir)],Ca=new g(function(eu){var Bd=(0,_g.Z)(eu,1),r0=Bd[0].target;Wo&&(Wo.style[it]=r0.clientHeight+"px")});Ca.observe(f.controlCorners["".concat(Ir).concat(it)],{childList:!0,attributes:!0})}},C=0,M=Object.keys(this.controlCorners);C-1&&this.markerLayers.splice(g,1)}},{key:"addMarker",value:function(f){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(f),f.addTo(this.scene)):this.unAddMarkers.push(f)}},{key:"addMarkers",value:function(){var f=this;this.unAddMarkers.forEach(function(g){g.addTo(f.scene),f.markers.push(g)}),this.unAddMarkers=[]}},{key:"addMarkerLayers",value:function(){var f=this;this.unAddMarkerLayers.forEach(function(g){f.markerLayers.push(g),g.addTo(f.scene)}),this.unAddMarkers=[]}},{key:"removeMarker",value:function(f){f.remove(),this.markers.indexOf(f);var g=this.markers.indexOf(f);g>-1&&this.markers.splice(g,1)}},{key:"removeAllMarkers",value:function(){this.destroy()}},{key:"init",value:function(f){this.scene=f,this.mapsService=f.get(su.IMapService)}},{key:"destroy",value:function(){this.markers.forEach(function(f){f.remove()}),this.markers=[],this.markerLayers.forEach(function(f){f.destroy()}),this.markerLayers=[]}},{key:"removeMakerLayerMarker",value:function(f){f.destroy()}}]),i}())||xC),jE,rS,hS=(jE=(0,Cg.b2)(),jE(rS=function(){function i(){(0,Or.Z)(this,i),(0,ka.Z)(this,"scene",void 0),(0,ka.Z)(this,"mapsService",void 0),(0,ka.Z)(this,"popups",[]),(0,ka.Z)(this,"unAddPopups",[])}return(0,at.Z)(i,[{key:"isMarkerReady",get:function(){return this.mapsService.map&&this.mapsService.getMarkerContainer()}},{key:"removePopup",value:function(f){f!=null&&f.isOpen()&&f.remove();var g=this.popups.indexOf(f);g>-1&&this.popups.splice(g,1);var d=this.unAddPopups.indexOf(f);d>-1&&this.unAddPopups.splice(d,1)}},{key:"destroy",value:function(){this.popups.forEach(function(f){return f.remove()})}},{key:"addPopup",value:function(f){var g=this;f&&f.getOptions().autoClose&&[].concat((0,Gd.Z)(this.popups),(0,Gd.Z)(this.unAddPopups)).forEach(function(d){d.getOptions().autoClose&&g.removePopup(d)}),this.isMarkerReady?(f.addTo(this.scene),this.popups.push(f)):this.unAddPopups.push(f),f.on("close",function(){g.removePopup(f)})}},{key:"initPopup",value:function(){var f=this;this.unAddPopups.length&&this.unAddPopups.forEach(function(g){f.addPopup(g),f.unAddPopups=[]})}},{key:"init",value:function(f){this.scene=f,this.mapsService=f.get(su.IMapService)}}]),i}())||rS),m1=function(i){return i.normal="normal",i.additive="additive",i.subtractive="subtractive",i.min="min",i.max="max",i.none="none",i}({}),V_=function(i){return i.MULTIPLE="MULTIPLE",i.SINGLE="SINGLE",i}({}),pS=function(i){return i.AND="and",i.OR="or",i}({}),OC=function(i){return i.INIT="init",i.UPDATE="update",i}({}),VS={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"},OT=VS,zS,nx,$w=e1.merge,yS={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,stencil:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},tS={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:pS.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},LE=(zS=(0,Cg.b2)(),zS(nx=function(){function i(){(0,Or.Z)(this,i),(0,ka.Z)(this,"sceneConfigCache",{}),(0,ka.Z)(this,"layerConfigCache",{}),(0,ka.Z)(this,"layerAttributeConfigCache",{})}return(0,at.Z)(i,[{key:"getSceneConfig",value:function(f){return this.sceneConfigCache[f]}},{key:"getSceneWarninfo",value:function(f){return OT[f]}},{key:"setSceneConfig",value:function(f,g){this.sceneConfigCache[f]=(0,An.Z)((0,An.Z)({},yS),g)}},{key:"getLayerConfig",value:function(f){return this.layerConfigCache[f]}},{key:"setLayerConfig",value:function(f,g,d){this.layerConfigCache[g]=(0,An.Z)({},$w({},this.sceneConfigCache[f],tS,d))}},{key:"getAttributeConfig",value:function(f){return this.layerAttributeConfigCache[f]}},{key:"setAttributeConfig",value:function(f,g){this.layerAttributeConfigCache[f]=(0,An.Z)((0,An.Z)({},this.layerAttributeConfigCache[f]),g)}},{key:"clean",value:function(){this.sceneConfigCache={},this.layerConfigCache={}}}]),i}())||nx);function ne(i,v,f,g){f&&Object.defineProperty(i,v,{enumerable:f.enumerable,configurable:f.configurable,writable:f.writable,value:f.initializer?f.initializer.call(g):void 0})}function H(i,v,f,g,d){var C={};return Object.keys(g).forEach(function(M){C[M]=g[M]}),C.enumerable=!!C.enumerable,C.configurable=!!C.configurable,("value"in C||C.initializer)&&(C.writable=!0),C=f.slice().reverse().reduce(function(M,B){return B(i,v,M)||M},C),d&&C.initializer!==void 0&&(C.value=C.initializer?C.initializer.call(d):void 0,C.initializer=void 0),C.initializer===void 0&&(Object.defineProperty(i,v,C),C=null),C}function ve(){var i=new VE(4);return VE!=Float32Array&&(i[0]=0,i[1]=0,i[2]=0,i[3]=0),i}function je(i){var v=new glMatrix.ARRAY_TYPE(4);return v[0]=i[0],v[1]=i[1],v[2]=i[2],v[3]=i[3],v}function Lt(i,v,f,g){var d=new VE(4);return d[0]=i,d[1]=v,d[2]=f,d[3]=g,d}function Zr(i,v){return i[0]=v[0],i[1]=v[1],i[2]=v[2],i[3]=v[3],i}function Sr(i,v,f,g,d){return i[0]=v,i[1]=f,i[2]=g,i[3]=d,i}function wa(i,v,f){return i[0]=v[0]+f[0],i[1]=v[1]+f[1],i[2]=v[2]+f[2],i[3]=v[3]+f[3],i}function ru(i,v,f){return i[0]=v[0]-f[0],i[1]=v[1]-f[1],i[2]=v[2]-f[2],i[3]=v[3]-f[3],i}function Vg(i,v,f){return i[0]=v[0]*f[0],i[1]=v[1]*f[1],i[2]=v[2]*f[2],i[3]=v[3]*f[3],i}function E0(i,v,f){return i[0]=v[0]/f[0],i[1]=v[1]/f[1],i[2]=v[2]/f[2],i[3]=v[3]/f[3],i}function j0(i,v){return i[0]=Math.ceil(v[0]),i[1]=Math.ceil(v[1]),i[2]=Math.ceil(v[2]),i[3]=Math.ceil(v[3]),i}function kv(i,v){return i[0]=Math.floor(v[0]),i[1]=Math.floor(v[1]),i[2]=Math.floor(v[2]),i[3]=Math.floor(v[3]),i}function a1(i,v,f){return i[0]=Math.min(v[0],f[0]),i[1]=Math.min(v[1],f[1]),i[2]=Math.min(v[2],f[2]),i[3]=Math.min(v[3],f[3]),i}function O1(i,v,f){return i[0]=Math.max(v[0],f[0]),i[1]=Math.max(v[1],f[1]),i[2]=Math.max(v[2],f[2]),i[3]=Math.max(v[3],f[3]),i}function Iy(i,v){return i[0]=Math.round(v[0]),i[1]=Math.round(v[1]),i[2]=Math.round(v[2]),i[3]=Math.round(v[3]),i}function Vy(i,v,f){return i[0]=v[0]*f,i[1]=v[1]*f,i[2]=v[2]*f,i[3]=v[3]*f,i}function a_(i,v,f,g){return i[0]=v[0]+f[0]*g,i[1]=v[1]+f[1]*g,i[2]=v[2]+f[2]*g,i[3]=v[3]+f[3]*g,i}function U_(i,v){var f=v[0]-i[0],g=v[1]-i[1],d=v[2]-i[2],C=v[3]-i[3];return Math.hypot(f,g,d,C)}function b_(i,v){var f=v[0]-i[0],g=v[1]-i[1],d=v[2]-i[2],C=v[3]-i[3];return f*f+g*g+d*d+C*C}function H_(i){var v=i[0],f=i[1],g=i[2],d=i[3];return Math.hypot(v,f,g,d)}function Zx(i){var v=i[0],f=i[1],g=i[2],d=i[3];return v*v+f*f+g*g+d*d}function mw(i,v){return i[0]=-v[0],i[1]=-v[1],i[2]=-v[2],i[3]=-v[3],i}function BC(i,v){return i[0]=1/v[0],i[1]=1/v[1],i[2]=1/v[2],i[3]=1/v[3],i}function eE(i,v){var f=v[0],g=v[1],d=v[2],C=v[3],M=f*f+g*g+d*d+C*C;return M>0&&(M=1/Math.sqrt(M)),i[0]=f*M,i[1]=g*M,i[2]=d*M,i[3]=C*M,i}function WC(i,v){return i[0]*v[0]+i[1]*v[1]+i[2]*v[2]+i[3]*v[3]}function ZC(i,v,f,g){var d=f[0]*g[1]-f[1]*g[0],C=f[0]*g[2]-f[2]*g[0],M=f[0]*g[3]-f[3]*g[0],B=f[1]*g[2]-f[2]*g[1],J=f[1]*g[3]-f[3]*g[1],ue=f[2]*g[3]-f[3]*g[2],Ue=v[0],it=v[1],Ir=v[2],Wo=v[3];return i[0]=it*ue-Ir*J+Wo*B,i[1]=-(Ue*ue)+Ir*M-Wo*C,i[2]=Ue*J-it*M+Wo*d,i[3]=-(Ue*B)+it*C-Ir*d,i}function PC(i,v,f,g){var d=v[0],C=v[1],M=v[2],B=v[3];return i[0]=d+g*(f[0]-d),i[1]=C+g*(f[1]-C),i[2]=M+g*(f[2]-M),i[3]=B+g*(f[3]-B),i}function PS(i,v){v=v||1;var f,g,d,C,M,B;do f=glMatrix.RANDOM()*2-1,g=glMatrix.RANDOM()*2-1,M=f*f+g*g;while(M>=1);do d=glMatrix.RANDOM()*2-1,C=glMatrix.RANDOM()*2-1,B=d*d+C*C;while(B>=1);var J=Math.sqrt((1-M)/B);return i[0]=v*f,i[1]=v*g,i[2]=v*d*J,i[3]=v*C*J,i}function aC(i,v,f){var g=v[0],d=v[1],C=v[2],M=v[3];return i[0]=f[0]*g+f[4]*d+f[8]*C+f[12]*M,i[1]=f[1]*g+f[5]*d+f[9]*C+f[13]*M,i[2]=f[2]*g+f[6]*d+f[10]*C+f[14]*M,i[3]=f[3]*g+f[7]*d+f[11]*C+f[15]*M,i}function Vw(i,v,f){var g=v[0],d=v[1],C=v[2],M=f[0],B=f[1],J=f[2],ue=f[3],Ue=ue*g+B*C-J*d,it=ue*d+J*g-M*C,Ir=ue*C+M*d-B*g,Wo=-M*g-B*d-J*C;return i[0]=Ue*ue+Wo*-M+it*-J-Ir*-B,i[1]=it*ue+Wo*-B+Ir*-M-Ue*-J,i[2]=Ir*ue+Wo*-J+Ue*-B-it*-M,i[3]=v[3],i}function pE(i){return i[0]=0,i[1]=0,i[2]=0,i[3]=0,i}function $S(i){return"vec4("+i[0]+", "+i[1]+", "+i[2]+", "+i[3]+")"}function uT(i,v){return i[0]===v[0]&&i[1]===v[1]&&i[2]===v[2]&&i[3]===v[3]}function zT(i,v){var f=i[0],g=i[1],d=i[2],C=i[3],M=v[0],B=v[1],J=v[2],ue=v[3];return Math.abs(f-M)<=glMatrix.EPSILON*Math.max(1,Math.abs(f),Math.abs(M))&&Math.abs(g-B)<=glMatrix.EPSILON*Math.max(1,Math.abs(g),Math.abs(B))&&Math.abs(d-J)<=glMatrix.EPSILON*Math.max(1,Math.abs(d),Math.abs(J))&&Math.abs(C-ue)<=glMatrix.EPSILON*Math.max(1,Math.abs(C),Math.abs(ue))}var xA=null,w3=null,ID=null,C3=null,ZA=null,jx=null,Tx=null,vw=function(){var i=ve();return function(v,f,g,d,C,M){var B,J;for(f||(f=4),g||(g=0),d?J=Math.min(d*f+g,v.length):J=v.length,B=g;B0){var J=B.changedTouches[0];g.onHover({clientX:J.clientX,clientY:J.clientY,type:"touchend"})}}),(0,ka.Z)((0,hv.Z)(g),"onTouchMove",function(B){var J=B.changedTouches[0];g.onHover({clientX:J.clientX,clientY:J.clientY,type:"touchmove"})}),(0,ka.Z)((0,hv.Z)(g),"onHover",function(B){var J=B.clientX,ue=B.clientY,Ue=J,it=ue,Ir=B.type,Wo=g.mapService.getMapContainer();if(Wo){var Ca=Wo.getBoundingClientRect(),eu=Ca.top,Bd=Ca.left;Ue=Ue-Bd-Wo.clientLeft,it=it-eu-Wo.clientTop}var r0=g.mapService.containerToLngLat([Ue,it]);if(Ir==="click"){g.isDoubleTap(Ue,it,r0);return}if(Ir==="touch"){g.isDoubleTap(Ue,it,r0);return}Ir!=="click"&&Ir!=="dblclick"&&g.emit(tA.Hover,{x:Ue,y:it,lngLat:r0,type:Ir,target:B})}),g}return(0,at.Z)(f,[{key:"init",value:function(){this.addEventListenerOnMap(),this.$containter=this.mapService.getMapContainer()}},{key:"destroy",value:function(){this.hammertime&&this.hammertime.destroy(),this.removeEventListenerOnMap(),this.off(tA.Hover)}},{key:"triggerHover",value:function(d){var C=d.x,M=d.y;this.emit(tA.Hover,{x:C,y:M})}},{key:"triggerSelect",value:function(d){this.emit(tA.Select,{featureId:d})}},{key:"triggerActive",value:function(d){this.emit(tA.Active,{featureId:d})}},{key:"addEventListenerOnMap",value:function(){var d=this.mapService.getMapContainer();if(d){var C=new(o3()).Manager(d);C.add(new(o3()).Tap({event:"dblclick",taps:2})),C.add(new(o3()).Tap({event:"click"})),C.add(new(o3()).Pan({threshold:0,pointers:0})),C.add(new(o3()).Press({})),C.on("dblclick click",this.onHammer),C.on("panstart panmove panend pancancel",this.onDrag),d.addEventListener("touchstart",this.onTouch),d.addEventListener("touchend",this.onTouchEnd),d.addEventListener("mousemove",this.onHover),d.addEventListener("touchmove",this.onTouchMove),d.addEventListener("mousedown",this.onHover,!0),d.addEventListener("mouseup",this.onHover),d.addEventListener("contextmenu",this.onHover),this.hammertime=C}}},{key:"removeEventListenerOnMap",value:function(){var d=this.mapService.getMapContainer();d&&(d.removeEventListener("mousemove",this.onHover),this.hammertime.off("dblclick click",this.onHammer),this.hammertime.off("panstart panmove panend pancancel",this.onDrag),d.removeEventListener("touchstart",this.onTouch),d.removeEventListener("touchend",this.onTouchEnd),d.removeEventListener("mousedown",this.onHover),d.removeEventListener("mouseup",this.onHover),d.removeEventListener("contextmenu",this.onHover))}},{key:"interactionEvent",value:function(d){var C=d.type,M=d.pointerType,B,J;M==="touch"?(J=Math.floor(d.pointers[0].clientY),B=Math.floor(d.pointers[0].clientX)):(J=Math.floor(d.srcEvent.y),B=Math.floor(d.srcEvent.x));var ue=this.mapService.getMapContainer();if(ue){var Ue=ue.getBoundingClientRect(),it=Ue.top,Ir=Ue.left;B-=Ir,J-=it}var Wo=this.mapService.containerToLngLat([B,J]);return{x:B,y:J,lngLat:Wo,type:C,target:d.srcEvent}}},{key:"isDoubleTap",value:function(d,C,M){var B=this,J=new Date().getTime(),ue="click";J-this.lastClickTime<400&&Math.abs(this.lastClickXY[0]-d)<10&&Math.abs(this.lastClickXY[1]-C)<10?(this.lastClickTime=0,this.lastClickXY=[-1,-1],this.clickTimer&&clearTimeout(this.clickTimer),ue="dblclick",this.emit(tA.Hover,{x:d,y:C,lngLat:M,type:ue})):(this.lastClickTime=J,this.lastClickXY=[d,C],this.clickTimer=setTimeout(function(){ue="click",B.emit(tA.Hover,{x:d,y:C,lngLat:M,type:ue})},400))}}]),f}(eT()),aI=H(a4.prototype,"mapService",[qE],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a4))||HD),W4=0;function gI(i){var v=i;if(typeof i=="string"&&(v=document.getElementById(i)),v){var f=document.createElement("div");return f.style.cssText+=` position: absolute; z-index:2; height: 100%; width: 100%; pointer-events: none; - `,l.id="l7-scene-".concat(km++),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 Di=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}({}),h_,Yy,b1,_y,bv,T0,f_,x1,c1,Ry,$0,tv,e1,V0=(h_=(0,ts.b2)(),Yy=(0,ts.f3)(Ls.IMapService),b1=(0,ts.f3)(Ls.IRendererService),_y=(0,ts.f3)(Ls.IGlobalConfigService),bv=(0,ts.f3)(Ls.IInteractionService),T0=(0,ts.f3)(Ls.ILayerService),h_(f_=(x1=function(){function o(){var d=this;(0,Ct.Z)(this,o),(0,Tn.Z)(this,"pickedColors",void 0),(0,Tn.Z)(this,"pickedTileLayers",[]),Vc(this,"mapService",c1,this),Vc(this,"rendererService",Ry,this),Vc(this,"configService",$0,this),Vc(this,"interactionService",tv,this),Vc(this,"layerService",e1,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,L=c.type,Z=c.target,ne=!1,xe=d.rendererService,Oe=xe.readPixels,wt=xe.getContainer,Bt=d.getContainerSize(wt()),wn=Bt.width,Rn=Bt.height;wn*=Un,Rn*=Un;var Pr=l.getLayerConfig(),ui=Pr.enableHighlight,oo=Pr.enableSelect,xo=u*Un,Ds=m*Un;if(xo>wn-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,`{ -`).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 + `,f.id="l7-scene-".concat(W4++),f.classList.add("l7-scene"),v.appendChild(f),f}return null}function zP(i){var v,f=!0;if((i==null||(v=i.target)===null||v===void 0?void 0:v.target)instanceof HTMLElement)for(var g,d=i==null||(g=i.target)===null||g===void 0?void 0:g.target;d;){var C,M=Array.from(d.classList);if(M.includes("l7-marker")||M.includes("l7-popup")){f=!1;break}d=(C=d)===null||C===void 0?void 0:C.parentElement}return f}var GI=function(i){return i[i.SAMPLED=0]="SAMPLED",i[i.RENDER_TARGET=1]="RENDER_TARGET",i}({}),MI,T4,PD,O3,wP,oP,EI,TI,tD,fD,mI,X3,LD;function Y3(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=mL(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var g=0,d=function(){};return{s:d,n:function(){return g>=i.length?{done:!0}:{done:!1,value:i[g++]}},e:function(ue){throw ue},f:d}}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 C=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return C=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!C&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function mL(i,v){if(i){if(typeof i=="string")return KI(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return KI(i,v)}}function KI(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,g=new Array(v);fBd-1*Bg||_y<0||Q1>r0-1*Bg||Q1<0)){cw.next=11;break}return cw.abrupt("return",!1);case 11:return cw.next=13,Wo({x:Math.floor(_y/v.pickBufferScale),y:Math.floor((r0-(B+1)*Bg)/v.pickBufferScale),width:1,height:1,data:new Uint8Array(4),framebuffer:v.pickingFBO});case 13:return iy=cw.sent,v.pickedColors=iy,iy[0]!==0||iy[1]!==0||iy[2]!==0?(Uy=V0(iy),w_=d.layerPickService.getFeatureById(Uy),Uy!==d.getCurrentPickId()&&ue==="mousemove"&&(ue="mouseenter"),_x={x:M,y:B,type:ue,lngLat:J,featureId:Uy,feature:w_,target:Ue},w_&&(it=!0,d.setCurrentPickId(Uy),v.triggerHoverOnLayer(d,_x))):(ux={x:M,y:B,lngLat:J,type:d.getCurrentPickId()!==null&&ue==="mousemove"?"mouseout":"un"+ue,featureId:null,target:Ue,feature:null},v.triggerHoverOnLayer(d,(0,An.Z)((0,An.Z)({},ux),{},{type:"unpick"})),v.triggerHoverOnLayer(d,ux),d.setCurrentPickId(null)),fv&&d.layerPickService.highlightPickedFeature(iy),v1&&ue==="click"&&(iy==null?void 0:iy.toString())!==[0,0,0,0].toString()&&(f2=V0(iy),d.getCurrentSelectedId()===null||f2!==d.getCurrentSelectedId()?(d.layerPickService.selectFeature(iy),d.setCurrentSelectedId(f2)):(d.layerPickService.selectFeature(new Uint8Array([0,0,0,0])),d.setCurrentSelectedId(null))),cw.abrupt("return",it);case 19:case"end":return cw.stop()}},g)}));return function(g,d){return f.apply(this,arguments)}}())}return(0,at.Z)(i,[{key:"init",value:function(f){var g=this.rendererService,d=g.createTexture2D,C=g.createFramebuffer,M=g.getContainer,B=this.getContainerSize(M()),J=B.width,ue=B.height;J*=Bg,ue*=Bg,this.pickBufferScale=this.configService.getSceneConfig(f).pickBufferScale||1,J=Math.round(J/this.pickBufferScale),ue=Math.round(ue/this.pickBufferScale);var Ue=d({width:J,height:ue,usage:GI.RENDER_TARGET,label:"Picking Texture"});this.pickingFBO=C({color:Ue,depth:!0,width:J,height:ue}),this.interactionService.on(tA.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:function(){var v=(0,y_.Z)(Dv().mark(function g(d,C,M){var B=this,J,ue,Ue,it;return Dv().wrap(function(Wo){for(;;)switch(Wo.prev=Wo.next){case 0:return J=this.rendererService,ue=J.useFramebufferAsync,Ue=J.clear,this.resizePickingFBO(),d.hooks.beforePickingEncode.call(),Wo.next=5,ue(this.pickingFBO,(0,y_.Z)(Dv().mark(function Ca(){return Dv().wrap(function(Bd){for(;;)switch(Bd.prev=Bd.next){case 0:Ue({framebuffer:B.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),d.renderModels({ispick:!0});case 2:case"end":return Bd.stop()}},Ca)})));case 5:return d.hooks.afterPickingEncode.call(),Wo.next=8,this.pickBox(d,C);case 8:it=Wo.sent,M(it);case 10:case"end":return Wo.stop()}},g,this)}));function f(g,d,C){return v.apply(this,arguments)}return f}()},{key:"pickBox",value:function(){var v=(0,y_.Z)(Dv().mark(function g(d,C){var M=this,B,J,ue,Ue,it,Ir,Wo,Ca,eu,Bd,r0,N0,fv,v1,_y,Q1,iy,Uy,w_,_x,ux;return Dv().wrap(function(G2){for(;;)switch(G2.prev=G2.next){case 0:if(B=C.map(function(cw){var JE=cw<0?0:cw;return Math.floor(JE*Bg/M.pickBufferScale)}),J=(0,_g.Z)(B,4),ue=J[0],Ue=J[1],it=J[2],Ir=J[3],Wo=this.rendererService,Ca=Wo.readPixelsAsync,eu=Wo.getContainer,Bd=this.getContainerSize(eu()),r0=Bd.width,N0=Bd.height,r0*=Bg,N0*=Bg,!(ue>(r0-1)*Bg/this.pickBufferScale||it<0||Ue>(N0-1)*Bg/this.pickBufferScale||Ir<0)){G2.next=7;break}return G2.abrupt("return",[]);case 7:return fv=Math.min(r0/this.pickBufferScale,it)-ue,v1=Math.min(N0/this.pickBufferScale,Ir)-Ue,G2.next=11,Ca({x:ue,y:Math.floor(N0/this.pickBufferScale-(Ir+1)),width:fv,height:v1,data:new Uint8Array(fv*v1*4),framebuffer:this.pickingFBO});case 11:for(_y=G2.sent,Q1=[],iy={},Uy=0;Uy<_y.length/4;Uy=Uy+1)w_=_y.slice(Uy*4,Uy*4+4),_x=V0(w_),_x!==-1&&!iy[_x]&&(ux=d.layerPickService.getFeatureById(_x),Q1.push((0,An.Z)((0,An.Z)({},ux),{},{pickedFeatureIdx:_x})),iy[_x]=!0);return G2.abrupt("return",Q1);case 16:case"end":return G2.stop()}},g,this)}));function f(g,d){return v.apply(this,arguments)}return f}()},{key:"handleCursor",value:function(f,g){var d=f.getLayerConfig(),C=d.cursor,M=C===void 0?"":C,B=d.cursorEnabled;if(B){var J=this.mapService.version,ue=J==="GAODE2.x"?this.mapService.getMapContainer():this.mapService.getMarkerContainer(),Ue=ue==null?void 0:ue.style.getPropertyValue("cursor");g==="unmousemove"&&Ue!==""?ue==null||ue.style.setProperty("cursor",""):g==="mousemove"&&(ue==null||ue.style.setProperty("cursor",M))}}},{key:"destroy",value:function(){this.pickingFBO.destroy(),this.pickingFBO=null}},{key:"getContainerSize",value:function(f){return f.getContext?{width:f.width/Bg,height:f.height/Bg}:f.getBoundingClientRect()}},{key:"pickingAllLayer",value:function(){var v=(0,y_.Z)(Dv().mark(function g(d){return Dv().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(!(!this.layerService.needPick(d.type)||!this.isPickingAllLayer())){M.next=2;break}return M.abrupt("return");case 2:return this.alreadyInPicking=!0,M.next=5,this.pickingLayers(d);case 5:this.layerService.renderLayers(),this.alreadyInPicking=!1;case 7:case"end":return M.stop()}},g,this)}));function f(g){return v.apply(this,arguments)}return f}()},{key:"isPickingAllLayer",value:function(){return!(this.alreadyInPicking||this.layerService.alreadyInRendering||this.interactionService.indragging||!this.layerService.getShaderPickStat())}},{key:"resizePickingFBO",value:function(){var f=this.rendererService.getContainer,g=this.getContainerSize(f()),d=g.width,C=g.height;d*=Bg,C*=Bg,(this.width!==d||this.height!==C)&&(this.pickingFBO.resize({width:Math.round(d/this.pickBufferScale),height:Math.round(C/this.pickBufferScale)}),this.width=d,this.height=C)}},{key:"pickingLayers",value:function(){var v=(0,y_.Z)(Dv().mark(function g(d){var C=this,M,B,J,ue,Ue,it,Ir;return Dv().wrap(function(Ca){for(;;)switch(Ca.prev=Ca.next){case 0:M=this.rendererService,B=M.clear,J=M.useFramebufferAsync,this.resizePickingFBO(),ue=this.layerService.getRenderList(),Ue=Y3(ue.filter(function(eu){return eu.needPick(d.type)}).reverse()),Ca.prev=4,Ir=Dv().mark(function eu(){var Bd,r0;return Dv().wrap(function(fv){for(;;)switch(fv.prev=fv.next){case 0:return Bd=it.value,fv.next=3,J(C.pickingFBO,(0,y_.Z)(Dv().mark(function v1(){return Dv().wrap(function(Q1){for(;;)switch(Q1.prev=Q1.next){case 0:B({framebuffer:C.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),Bd.layerPickService.pickRender(d);case 2:case"end":return Q1.stop()}},v1)})));case 3:return fv.next=5,C.pickFromPickingFBO(Bd,d);case 5:if(r0=fv.sent,C.layerService.pickedLayerId=r0?+Bd.id:-1,!(r0&&!Bd.getLayerConfig().enablePropagation)){fv.next=9;break}return fv.abrupt("return",1);case 9:case"end":return fv.stop()}},eu)}),Ue.s();case 7:if((it=Ue.n()).done){Ca.next=13;break}return Ca.delegateYield(Ir(),"t0",9);case 9:if(!Ca.t0){Ca.next=11;break}return Ca.abrupt("break",13);case 11:Ca.next=7;break;case 13:Ca.next=18;break;case 15:Ca.prev=15,Ca.t1=Ca.catch(4),Ue.e(Ca.t1);case 18:return Ca.prev=18,Ue.f(),Ca.finish(18);case 21:case"end":return Ca.stop()}},g,this,[[4,15,18,21]])}));function f(g){return v.apply(this,arguments)}return f}()},{key:"triggerHoverOnLayer",value:function(f,g){zP(g)&&(this.handleCursor(f,g.type),f.emit(g.type,g))}}]),i}(),tD=H(TI.prototype,"mapService",[T4],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fD=H(TI.prototype,"rendererService",[PD],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mI=H(TI.prototype,"configService",[O3],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X3=H(TI.prototype,"interactionService",[wP],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),LD=H(TI.prototype,"layerService",[oP],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),TI))||EI),lI=function(){function i(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;(0,Or.Z)(this,i),(0,ka.Z)(this,"autoStart",void 0),(0,ka.Z)(this,"startTime",0),(0,ka.Z)(this,"oldTime",0),(0,ka.Z)(this,"running",!1),(0,ka.Z)(this,"elapsedTime",0),this.autoStart=v}return(0,at.Z)(i,[{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 f=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var g=(typeof performance=="undefined"?Date:performance).now();f=(g-this.oldTime)/1e3,this.oldTime=g,this.elapsedTime+=f}return f}}]),i}(),XI,OI,RI,A4,vL,MD,yL,$P,kI;function Z4(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=PM(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var g=0,d=function(){};return{s:d,n:function(){return g>=i.length?{done:!0}:{done:!1,value:i[g++]}},e:function(ue){throw ue},f:d}}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 C=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return C=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!C&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function PM(i,v){if(i){if(typeof i=="string")return _D(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return _D(i,v)}}function _D(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,g=new Array(v);f-1&&B.layerChildren.splice(J,1)):(ue=this.layers.indexOf(M),ue>-1&&this.layers.splice(ue,1)),M.destroy(),this.reRender(),this.emit("layerChange",this.layers);case 4:case"end":return it.stop()}},C,this)}));function d(C,M){return g.apply(this,arguments)}return d}()},{key:"removeAllLayers",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:this.destroy(),this.reRender();case 2:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"setEnableRender",value:function(d){this.enableRender=d}},{key:"renderLayers",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J,ue,Ue,it,Ir,Wo,Ca;return Dv().wrap(function(Bd){for(;;)switch(Bd.prev=Bd.next){case 0:if(!(this.alreadyInRendering||!this.enableRender)){Bd.next=2;break}return Bd.abrupt("return");case 2:this.updateLayerRenderList(),M=this.debugService.generateRenderUid(),this.debugService.renderStart(M),this.alreadyInRendering=!0,this.clear(),B=Z4(this.layerList);try{for(B.s();!(J=B.n()).done;)ue=J.value,ue.prerender()}catch(r0){B.e(r0)}finally{B.f()}this.renderService.beginFrame(),Ue=Z4(this.layerList),Bd.prev=11,Ue.s();case 13:if((it=Ue.n()).done){Bd.next=25;break}if(Ir=it.value,Wo=Ir.getLayerConfig(),Ca=Wo.enableMask,Ir.masks.filter(function(r0){return r0.inited}).length>0&&Ca&&this.renderMask(Ir.masks),!Ir.getLayerConfig().enableMultiPassRenderer){Bd.next=22;break}return Bd.next=20,Ir.renderMultiPass();case 20:Bd.next=23;break;case 22:Ir.render();case 23:Bd.next=13;break;case 25:Bd.next=30;break;case 27:Bd.prev=27,Bd.t0=Bd.catch(11),Ue.e(Bd.t0);case 30:return Bd.prev=30,Ue.f(),Bd.finish(30);case 33:this.renderService.endFrame(),this.debugService.renderEnd(M),this.alreadyInRendering=!1;case 36:case"end":return Bd.stop()}},C,this,[[11,27,30,33]])}));function d(){return g.apply(this,arguments)}return d}()},{key:"renderMask",value:function(d){var C=0;this.renderService.clear({stencil:0,depth:1,framebuffer:null});var M=d.length>1?V_.MULTIPLE:V_.SINGLE,B=Z4(d),J;try{for(B.s();!(J=B.n()).done;){var ue=J.value;ue.render({isStencil:!0,stencilType:M,stencilIndex:C++})}}catch(Ue){B.e(Ue)}finally{B.f()}}},{key:"beforeRenderData",value:function(){var g=(0,y_.Z)(Dv().mark(function C(M){var B;return Dv().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.next=2,M.hooks.beforeRenderData.promise();case 2:B=ue.sent,B&&this.renderLayers();case 4:case"end":return ue.stop()}},C,this)}));function d(C){return g.apply(this,arguments)}return d}()},{key:"renderTileLayerMask",value:function(d){var C=0,M=d.getLayerConfig(),B=M.enableMask,J=B===void 0?!0:B,ue=d.tileMask?1:0,Ue=d.masks.filter(function(eu){return eu.inited});ue=ue+(J?Ue.length:1);var it=ue>1?V_.MULTIPLE:V_.SINGLE;if((d.tileMask||Ue.length&&J)&&this.renderService.clear({stencil:0,depth:1,framebuffer:null}),Ue.length&&J){var Ir=Z4(Ue),Wo;try{for(Ir.s();!(Wo=Ir.n()).done;){var Ca=Wo.value;Ca.render({isStencil:!0,stencilType:it,stencilIndex:C++})}}catch(eu){Ir.e(eu)}finally{Ir.f()}}d.tileMask&&d.tileMask.render({isStencil:!0,stencilType:it,stencilIndex:C++,stencilOperation:pS.OR})}},{key:"renderTileLayer",value:function(){var g=(0,y_.Z)(Dv().mark(function C(M){return Dv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(this.renderTileLayerMask(M),!M.getLayerConfig().enableMultiPassRenderer){J.next=6;break}return J.next=4,M.renderMultiPass();case 4:J.next=8;break;case 6:return J.next=8,M.render();case 8:case"end":return J.stop()}},C,this)}));function d(C){return g.apply(this,arguments)}return d}()},{key:"updateLayerRenderList",value:function(){var d=this;this.layerList=[],this.layers.filter(function(C){return C.inited}).filter(function(C){return C.isVisible()}).sort(function(C,M){return C.zIndex-M.zIndex}).forEach(function(C){d.layerList.push(C)})}},{key:"destroy",value:function(){this.layers.forEach(function(d){d.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 d=a0(this.mapService.bgColor);this.renderService.clear({color:d,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)}}]),f}(N2.EventEmitter),yL=H(MD.prototype,"renderService",[OI],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$P=H(MD.prototype,"mapService",[RI],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kI=H(MD.prototype,"debugService",[A4],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),MD))||vL),q3=l(56348),K0=function(i){return i[i.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",i[i.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",i[i.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",i[i.POINTS=0]="POINTS",i[i.LINES=1]="LINES",i[i.LINE_LOOP=2]="LINE_LOOP",i[i.LINE_STRIP=3]="LINE_STRIP",i[i.TRIANGLES=4]="TRIANGLES",i[i.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",i[i.TRIANGLE_FAN=6]="TRIANGLE_FAN",i[i.ZERO=0]="ZERO",i[i.ONE=1]="ONE",i[i.SRC_COLOR=768]="SRC_COLOR",i[i.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",i[i.SRC_ALPHA=770]="SRC_ALPHA",i[i.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",i[i.DST_ALPHA=772]="DST_ALPHA",i[i.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",i[i.DST_COLOR=774]="DST_COLOR",i[i.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",i[i.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",i[i.FUNC_ADD=32774]="FUNC_ADD",i[i.BLEND_EQUATION=32777]="BLEND_EQUATION",i[i.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",i[i.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",i[i.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",i[i.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",i[i.MAX_EXT=32776]="MAX_EXT",i[i.MIN_EXT=32775]="MIN_EXT",i[i.BLEND_DST_RGB=32968]="BLEND_DST_RGB",i[i.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",i[i.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",i[i.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",i[i.CONSTANT_COLOR=32769]="CONSTANT_COLOR",i[i.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",i[i.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",i[i.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",i[i.BLEND_COLOR=32773]="BLEND_COLOR",i[i.ARRAY_BUFFER=34962]="ARRAY_BUFFER",i[i.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",i[i.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",i[i.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",i[i.STREAM_DRAW=35040]="STREAM_DRAW",i[i.STATIC_DRAW=35044]="STATIC_DRAW",i[i.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",i[i.BUFFER_SIZE=34660]="BUFFER_SIZE",i[i.BUFFER_USAGE=34661]="BUFFER_USAGE",i[i.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",i[i.FRONT=1028]="FRONT",i[i.BACK=1029]="BACK",i[i.FRONT_AND_BACK=1032]="FRONT_AND_BACK",i[i.CULL_FACE=2884]="CULL_FACE",i[i.BLEND=3042]="BLEND",i[i.DITHER=3024]="DITHER",i[i.STENCIL_TEST=2960]="STENCIL_TEST",i[i.DEPTH_TEST=2929]="DEPTH_TEST",i[i.SCISSOR_TEST=3089]="SCISSOR_TEST",i[i.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",i[i.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",i[i.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",i[i.NO_ERROR=0]="NO_ERROR",i[i.INVALID_ENUM=1280]="INVALID_ENUM",i[i.INVALID_VALUE=1281]="INVALID_VALUE",i[i.INVALID_OPERATION=1282]="INVALID_OPERATION",i[i.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",i[i.CW=2304]="CW",i[i.CCW=2305]="CCW",i[i.LINE_WIDTH=2849]="LINE_WIDTH",i[i.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",i[i.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",i[i.CULL_FACE_MODE=2885]="CULL_FACE_MODE",i[i.FRONT_FACE=2886]="FRONT_FACE",i[i.DEPTH_RANGE=2928]="DEPTH_RANGE",i[i.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",i[i.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",i[i.DEPTH_FUNC=2932]="DEPTH_FUNC",i[i.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",i[i.STENCIL_FUNC=2962]="STENCIL_FUNC",i[i.STENCIL_FAIL=2964]="STENCIL_FAIL",i[i.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",i[i.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",i[i.STENCIL_REF=2967]="STENCIL_REF",i[i.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",i[i.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",i[i.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",i[i.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",i[i.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",i[i.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",i[i.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",i[i.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",i[i.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",i[i.VIEWPORT=2978]="VIEWPORT",i[i.SCISSOR_BOX=3088]="SCISSOR_BOX",i[i.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",i[i.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",i[i.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",i[i.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",i[i.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",i[i.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",i[i.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",i[i.RED_BITS=3410]="RED_BITS",i[i.GREEN_BITS=3411]="GREEN_BITS",i[i.BLUE_BITS=3412]="BLUE_BITS",i[i.ALPHA_BITS=3413]="ALPHA_BITS",i[i.DEPTH_BITS=3414]="DEPTH_BITS",i[i.STENCIL_BITS=3415]="STENCIL_BITS",i[i.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",i[i.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",i[i.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",i[i.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",i[i.SAMPLES=32937]="SAMPLES",i[i.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",i[i.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",i[i.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",i[i.DONT_CARE=4352]="DONT_CARE",i[i.FASTEST=4353]="FASTEST",i[i.NICEST=4354]="NICEST",i[i.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",i[i.BYTE=5120]="BYTE",i[i.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",i[i.SHORT=5122]="SHORT",i[i.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",i[i.INT=5124]="INT",i[i.UNSIGNED_INT=5125]="UNSIGNED_INT",i[i.FLOAT=5126]="FLOAT",i[i.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",i[i.ALPHA=6406]="ALPHA",i[i.RGB=6407]="RGB",i[i.RGBA=6408]="RGBA",i[i.LUMINANCE=6409]="LUMINANCE",i[i.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",i[i.RED=6403]="RED",i[i.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",i[i.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",i[i.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",i[i.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",i[i.VERTEX_SHADER=35633]="VERTEX_SHADER",i[i.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",i[i.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",i[i.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",i[i.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",i[i.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",i[i.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",i[i.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",i[i.SHADER_TYPE=35663]="SHADER_TYPE",i[i.DELETE_STATUS=35712]="DELETE_STATUS",i[i.LINK_STATUS=35714]="LINK_STATUS",i[i.VALIDATE_STATUS=35715]="VALIDATE_STATUS",i[i.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",i[i.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",i[i.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",i[i.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",i[i.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",i[i.NEVER=512]="NEVER",i[i.LESS=513]="LESS",i[i.EQUAL=514]="EQUAL",i[i.LEQUAL=515]="LEQUAL",i[i.GREATER=516]="GREATER",i[i.NOTEQUAL=517]="NOTEQUAL",i[i.GEQUAL=518]="GEQUAL",i[i.ALWAYS=519]="ALWAYS",i[i.KEEP=7680]="KEEP",i[i.REPLACE=7681]="REPLACE",i[i.INCR=7682]="INCR",i[i.DECR=7683]="DECR",i[i.INVERT=5386]="INVERT",i[i.INCR_WRAP=34055]="INCR_WRAP",i[i.DECR_WRAP=34056]="DECR_WRAP",i[i.VENDOR=7936]="VENDOR",i[i.RENDERER=7937]="RENDERER",i[i.VERSION=7938]="VERSION",i[i.NEAREST=9728]="NEAREST",i[i.LINEAR=9729]="LINEAR",i[i.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",i[i.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",i[i.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",i[i.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",i[i.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",i[i.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",i[i.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",i[i.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",i[i.TEXTURE_2D=3553]="TEXTURE_2D",i[i.TEXTURE=5890]="TEXTURE",i[i.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",i[i.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",i[i.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",i[i.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",i[i.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",i[i.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",i[i.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",i[i.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",i[i.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",i[i.TEXTURE0=33984]="TEXTURE0",i[i.TEXTURE1=33985]="TEXTURE1",i[i.TEXTURE2=33986]="TEXTURE2",i[i.TEXTURE3=33987]="TEXTURE3",i[i.TEXTURE4=33988]="TEXTURE4",i[i.TEXTURE5=33989]="TEXTURE5",i[i.TEXTURE6=33990]="TEXTURE6",i[i.TEXTURE7=33991]="TEXTURE7",i[i.TEXTURE8=33992]="TEXTURE8",i[i.TEXTURE9=33993]="TEXTURE9",i[i.TEXTURE10=33994]="TEXTURE10",i[i.TEXTURE11=33995]="TEXTURE11",i[i.TEXTURE12=33996]="TEXTURE12",i[i.TEXTURE13=33997]="TEXTURE13",i[i.TEXTURE14=33998]="TEXTURE14",i[i.TEXTURE15=33999]="TEXTURE15",i[i.TEXTURE16=34e3]="TEXTURE16",i[i.TEXTURE17=34001]="TEXTURE17",i[i.TEXTURE18=34002]="TEXTURE18",i[i.TEXTURE19=34003]="TEXTURE19",i[i.TEXTURE20=34004]="TEXTURE20",i[i.TEXTURE21=34005]="TEXTURE21",i[i.TEXTURE22=34006]="TEXTURE22",i[i.TEXTURE23=34007]="TEXTURE23",i[i.TEXTURE24=34008]="TEXTURE24",i[i.TEXTURE25=34009]="TEXTURE25",i[i.TEXTURE26=34010]="TEXTURE26",i[i.TEXTURE27=34011]="TEXTURE27",i[i.TEXTURE28=34012]="TEXTURE28",i[i.TEXTURE29=34013]="TEXTURE29",i[i.TEXTURE30=34014]="TEXTURE30",i[i.TEXTURE31=34015]="TEXTURE31",i[i.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",i[i.REPEAT=10497]="REPEAT",i[i.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",i[i.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",i[i.FLOAT_VEC2=35664]="FLOAT_VEC2",i[i.FLOAT_VEC3=35665]="FLOAT_VEC3",i[i.FLOAT_VEC4=35666]="FLOAT_VEC4",i[i.INT_VEC2=35667]="INT_VEC2",i[i.INT_VEC3=35668]="INT_VEC3",i[i.INT_VEC4=35669]="INT_VEC4",i[i.BOOL=35670]="BOOL",i[i.BOOL_VEC2=35671]="BOOL_VEC2",i[i.BOOL_VEC3=35672]="BOOL_VEC3",i[i.BOOL_VEC4=35673]="BOOL_VEC4",i[i.FLOAT_MAT2=35674]="FLOAT_MAT2",i[i.FLOAT_MAT3=35675]="FLOAT_MAT3",i[i.FLOAT_MAT4=35676]="FLOAT_MAT4",i[i.SAMPLER_2D=35678]="SAMPLER_2D",i[i.SAMPLER_CUBE=35680]="SAMPLER_CUBE",i[i.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",i[i.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",i[i.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",i[i.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",i[i.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",i[i.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",i[i.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",i[i.COMPILE_STATUS=35713]="COMPILE_STATUS",i[i.LOW_FLOAT=36336]="LOW_FLOAT",i[i.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",i[i.HIGH_FLOAT=36338]="HIGH_FLOAT",i[i.LOW_INT=36339]="LOW_INT",i[i.MEDIUM_INT=36340]="MEDIUM_INT",i[i.HIGH_INT=36341]="HIGH_INT",i[i.FRAMEBUFFER=36160]="FRAMEBUFFER",i[i.RENDERBUFFER=36161]="RENDERBUFFER",i[i.RGBA4=32854]="RGBA4",i[i.RGB5_A1=32855]="RGB5_A1",i[i.RGB565=36194]="RGB565",i[i.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",i[i.STENCIL_INDEX=6401]="STENCIL_INDEX",i[i.STENCIL_INDEX8=36168]="STENCIL_INDEX8",i[i.DEPTH_STENCIL=34041]="DEPTH_STENCIL",i[i.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",i[i.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",i[i.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",i[i.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",i[i.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",i[i.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",i[i.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",i[i.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",i[i.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",i[i.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",i[i.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",i[i.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",i[i.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",i[i.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",i[i.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",i[i.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",i[i.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",i[i.NONE=0]="NONE",i[i.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",i[i.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",i[i.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",i[i.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",i[i.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",i[i.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",i[i.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",i[i.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",i[i.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",i[i.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",i[i.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",i[i.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",i[i.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",i[i.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",i}({}),eM=e1.isNil,tM=function(){function i(v){var f=this;(0,Or.Z)(this,i),(0,ka.Z)(this,"name",void 0),(0,ka.Z)(this,"type",void 0),(0,ka.Z)(this,"scale",void 0),(0,ka.Z)(this,"descriptor",void 0),(0,ka.Z)(this,"featureBufferLayout",[]),(0,ka.Z)(this,"needRescale",!1),(0,ka.Z)(this,"needRemapping",!1),(0,ka.Z)(this,"needRegenerateVertices",!1),(0,ka.Z)(this,"featureRange",{startIndex:0,endIndex:1/0}),(0,ka.Z)(this,"vertexAttribute",void 0),(0,ka.Z)(this,"defaultCallback",function(g){if(g.length===0){var d;return((d=f.scale)===null||d===void 0?void 0:d.defaultValues)||[]}return g.map(function(C,M){var B,J=(B=f.scale)===null||B===void 0?void 0:B.scalers[M].func,ue=J(C);return ue})}),this.setProps(v)}return(0,at.Z)(i,[{key:"setProps",value:function(f){Object.assign(this,f)}},{key:"mapping",value:function(f){var g;if((g=this.scale)!==null&&g!==void 0&&g.callback){var d,C=(d=this.scale)===null||d===void 0?void 0:d.callback.apply(d,(0,Gd.Z)(f));if(!eM(C))return[C]}return this.defaultCallback(f)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}]),i}(),LM=["buffer","update","name"],A5=["buffer","update","name"],VP,Lk,l4,YI,H4,qI,jP=(VP={},(0,ka.Z)(VP,K0.FLOAT,4),(0,ka.Z)(VP,K0.UNSIGNED_BYTE,1),(0,ka.Z)(VP,K0.UNSIGNED_SHORT,2),VP),MM=(Lk=(0,Cg.b2)(),l4=(0,Cg.f3)(su.IRendererService),Lk(YI=(H4=function(){function i(){(0,Or.Z)(this,i),(0,ka.Z)(this,"attributesAndIndices",void 0),ne(this,"rendererService",qI,this),(0,ka.Z)(this,"attributes",[]),(0,ka.Z)(this,"triangulation",void 0),(0,ka.Z)(this,"featureLayout",{sizePerElement:0,elements:[]})}return(0,at.Z)(i,[{key:"registerStyleAttribute",value:function(f){var g=this.getLayerStyleAttribute(f.name||"");return g?g.setProps(f):(g=new tM(f),this.attributes.push(g)),g}},{key:"unRegisterStyleAttribute",value:function(f){var g=this.attributes.findIndex(function(d){return d.name===f});g>-1&&this.attributes.splice(g,1)}},{key:"updateScaleAttribute",value:function(f){this.attributes.forEach(function(g){var d,C=g.name,M=(d=g.scale)===null||d===void 0?void 0:d.field;(f[C]||M&&f[M])&&(g.needRescale=!0,g.needRemapping=!0,g.needRegenerateVertices=!0)})}},{key:"updateStyleAttribute",value:function(f,g,d){var C=this.getLayerStyleAttribute(f);C||(C=this.registerStyleAttribute((0,An.Z)((0,An.Z)({},g),{},{name:f})));var M=g.scale;M&&C&&(C.scale=M,C.needRescale=!0,C.needRemapping=!0,C.needRegenerateVertices=!0,d&&d.featureRange&&(C.featureRange=d.featureRange))}},{key:"getLayerStyleAttributes",value:function(){return this.attributes}},{key:"getLayerStyleAttribute",value:function(f){return this.attributes.find(function(g){return g.name===f})}},{key:"getLayerAttributeScale",value:function(f){var g,d=this.getLayerStyleAttribute(f),C=d==null||(g=d.scale)===null||g===void 0?void 0:g.scalers;return C&&C[0]?C[0].func:null}},{key:"updateAttributeByFeatureRange",value:function(f,g){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,C=arguments.length>3?arguments[3]:void 0,M=arguments.length>4?arguments[4]:void 0,B=this.attributes.find(function(_y){return _y.name===f});if(B&&B.descriptor){var J=B.descriptor,ue=J.update,Ue=J.buffer,it=J.size,Ir=it===void 0?0:it,Wo=jP[Ue.type||K0.FLOAT];if(ue){var Ca=this.featureLayout,eu=Ca.elements,Bd=Ca.sizePerElement,r0=eu.slice(d,C);if(!r0.length)return;var N0=r0[0].offset,fv=N0*Ir*Wo,v1=r0.map(function(_y,Q1){for(var iy=_y.featureIdx,Uy=_y.vertices,w_=_y.normals,_x=Uy.length/Bd,ux=[],f2=0;f2<_x;f2++){var G2=w_?w_.slice(f2*3,f2*3+3):[];ux.push.apply(ux,(0,Gd.Z)(ue(g[iy],iy,Uy.slice(f2*Bd,f2*Bd+Bd),Q1,G2)))}return ux}).flat();B.vertexAttribute.updateBuffer({data:v1,offset:fv}),M==null||M.emit("legend:".concat(f),{type:f,attr:B})}}}},{key:"createAttributesAndIndices",value:function(f,g,d){var C=this;this.featureLayout={sizePerElement:0,elements:[]},g&&(this.triangulation=g);var M=this.attributes.map(function(r0){return r0.resetDescriptor(),r0.descriptor}),B=0,J=0,ue=[],Ue=3;f.forEach(function(r0,N0){var fv=C.triangulation(r0,d),v1=fv.indices,_y=fv.vertices,Q1=fv.normals,iy=fv.size,Uy=fv.indexes,w_=fv.count;typeof w_=="number"&&(J+=w_),v1.forEach(function(G2){ue.push(G2+B)}),Ue=iy;var _x=_y.length/iy;C.featureLayout.sizePerElement=Ue,C.featureLayout.elements.push({featureIdx:N0,vertices:_y,normals:Q1,offset:B}),B+=_x;for(var ux=function(cw){var JE=(Q1==null?void 0:Q1.slice(cw*3,cw*3+3))||[],mT=_y.slice(cw*iy,cw*iy+iy),qT=0;Uy&&Uy[cw]!==void 0&&(qT=Uy[cw]),M.forEach(function(Z3,yA){if(Z3&&Z3.update){var hI;(hI=Z3.buffer.data).push.apply(hI,(0,Gd.Z)(Z3.update(r0,N0,mT,cw,JE,qT)))}})},f2=0;f2<_x;f2++)ux(f2)});var it=this.rendererService,Ir=it.createAttribute,Wo=it.createBuffer,Ca=it.createElements,eu={};M.forEach(function(r0,N0){if(r0){var fv=r0.buffer,v1=r0.update,_y=r0.name,Q1=(0,q3.Z)(r0,LM),iy=Ir((0,An.Z)({buffer:Wo(fv)},Q1));eu[r0.name||""]=iy,C.attributes[N0].vertexAttribute=iy}});var Bd=Ca({data:ue,type:K0.UNSIGNED_INT,count:ue.length});return this.attributesAndIndices={attributes:eu,elements:Bd,count:J},this.attributesAndIndices}},{key:"createAttributes",value:function(f,g){var d=this;this.featureLayout={sizePerElement:0,elements:[]},g&&(this.triangulation=g);var C=this.attributes.map(function(Wo){return Wo.resetDescriptor(),Wo.descriptor}),M=0,B=[],J=3;f.forEach(function(Wo,Ca){var eu=d.triangulation(Wo),Bd=eu.indices,r0=eu.vertices,N0=eu.normals,fv=eu.size,v1=eu.indexes;Bd.forEach(function(Uy){B.push(Uy+M)}),J=fv;var _y=r0.length/fv;d.featureLayout.sizePerElement=J,d.featureLayout.elements.push({featureIdx:Ca,vertices:r0,normals:N0,offset:M}),M+=_y;for(var Q1=function(w_){var _x=(N0==null?void 0:N0.slice(w_*3,w_*3+3))||[],ux=r0.slice(w_*fv,w_*fv+fv),f2=0;v1&&v1[w_]!==void 0&&(f2=v1[w_]),C.forEach(function(G2,cw){if(G2&&G2.update){var JE;(JE=G2.buffer.data).push.apply(JE,(0,Gd.Z)(G2.update(Wo,Ca,ux,w_,_x,f2)))}})},iy=0;iy<_y;iy++)Q1(iy)});var ue=this.rendererService,Ue=ue.createAttribute,it=ue.createBuffer,Ir={};return C.forEach(function(Wo,Ca){if(Wo){var eu=Wo.buffer,Bd=Wo.update,r0=Wo.name,N0=(0,q3.Z)(Wo,A5),fv=Ue((0,An.Z)({buffer:it(eu)},N0));Ir[Wo.name||""]=fv,d.attributes[Ca].vertexAttribute=fv}}),{attributes:Ir}}},{key:"clearAllAttributes",value:function(){var f;this.attributes.forEach(function(g){g.vertexAttribute&&g.vertexAttribute.destroy()}),(f=this.attributesAndIndices)===null||f===void 0||f.elements.destroy(),this.attributes=[]}}]),i}(),qI=H(H4.prototype,"rendererService",[l4],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H4))||YI),CP=l(97671);function sP(i,v,f,g){function d(C){return C instanceof f?C:new f(function(M){M(C)})}return new(f||(f=Promise))(function(C,M){function B(Ue){try{ue(g.next(Ue))}catch(it){M(it)}}function J(Ue){try{ue(g.throw(Ue))}catch(it){M(it)}}function ue(Ue){Ue.done?C(Ue.value):d(Ue.value).then(B,J)}ue((g=g.apply(i,v||[])).next())})}function G4(i,v){var f={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},g,d,C,M;return M={next:B(0),throw:B(1),return:B(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function B(ue){return function(Ue){return J([ue,Ue])}}function J(ue){if(g)throw new TypeError("Generator is already executing.");for(;f;)try{if(g=1,d&&(C=ue[0]&2?d.return:ue[0]?d.throw||((C=d.return)&&C.call(d),0):d.next)&&!(C=C.call(d,ue[1])).done)return C;switch(d=0,C&&(ue=[ue[0]&2,C.value]),ue[0]){case 0:case 1:C=ue;break;case 4:return f.label++,{value:ue[1],done:!1};case 5:f.label++,d=ue[1],ue=[0];continue;case 7:ue=f.ops.pop(),f.trys.pop();continue;default:if(C=f.trys,!(C=C.length>0&&C[C.length-1])&&(ue[0]===6||ue[0]===2)){f=0;continue}if(ue[0]===3&&(!C||ue[1]>C[0]&&ue[1]0)&&!(d=g.next()).done;)C.push(d.value)}catch(B){M={error:B}}finally{try{d&&!d.done&&(f=g.return)&&f.call(g)}finally{if(M)throw M.error}}return C}function WP(i,v,f){if(f||arguments.length===2)for(var g=0,d=v.length,C;g=0&&g.length%1===0}i.exports=v.default})(GD,GD.exports);var yI={},yO={exports:{}},OM={exports:{}};(function(i,v){Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(f){return function(){for(var g=[],d=arguments.length;d--;)g[d]=arguments[d];var C=g.pop();return f.call(this,g,C)}},i.exports=v.default})(OM,OM.exports);var EP={};Object.defineProperty(EP,"__esModule",{value:!0}),EP.fallback=RM,EP.wrap=wR;var _O=EP.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,bO=EP.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,Mk=EP.hasNextTick=typeof CP=="object"&&typeof CP.nextTick=="function";function RM(i){setTimeout(i,0)}function wR(i){return function(v){for(var f=[],g=arguments.length-1;g-- >0;)f[g]=arguments[g+1];return i(function(){return v.apply(void 0,f)})}}var ZP;_O?ZP=queueMicrotask:bO?ZP=setImmediate:Mk?ZP=CP.nextTick:ZP=RM,EP.default=wR(ZP),function(i,v){Object.defineProperty(v,"__esModule",{value:!0}),v.default=J;var f=OM.exports,g=B(f),d=EP,C=B(d),M=yI;function B(it){return it&&it.__esModule?it:{default:it}}function J(it){return(0,M.isAsync)(it)?function(){for(var Ir=[],Wo=arguments.length;Wo--;)Ir[Wo]=arguments[Wo];var Ca=Ir.pop(),eu=it.apply(this,Ir);return ue(eu,Ca)}:(0,g.default)(function(Ir,Wo){var Ca;try{Ca=it.apply(this,Ir)}catch(eu){return Wo(eu)}if(Ca&&typeof Ca.then=="function")return ue(Ca,Wo);Wo(null,Ca)})}function ue(it,Ir){return it.then(function(Wo){Ue(Ir,null,Wo)},function(Wo){Ue(Ir,Wo&&Wo.message?Wo:new Error(Wo))})}function Ue(it,Ir,Wo){try{it(Ir,Wo)}catch(Ca){(0,C.default)(function(eu){throw eu},Ca)}}i.exports=v.default}(yO,yO.exports),Object.defineProperty(yI,"__esModule",{value:!0}),yI.isAsyncIterable=yI.isAsyncGenerator=yI.isAsync=void 0;var f6=yO.exports,xO=HP(f6);function HP(i){return i&&i.__esModule?i:{default:i}}function iM(i){return i[Symbol.toStringTag]==="AsyncFunction"}function kM(i){return i[Symbol.toStringTag]==="AsyncGenerator"}function D5(i){return typeof i[Symbol.asyncIterator]=="function"}function CR(i){if(typeof i!="function")throw new Error("expected a function");return iM(i)?(0,xO.default)(i):i}yI.default=CR,yI.isAsync=iM,yI.isAsyncGenerator=kM,yI.isAsyncIterable=D5;var u4={exports:{}};(function(i,v){Object.defineProperty(v,"__esModule",{value:!0}),v.default=f;function f(g,d){if(d===void 0&&(d=g.length),!d)throw new Error("arity is undefined");function C(){for(var M=this,B=[],J=arguments.length;J--;)B[J]=arguments[J];return typeof B[d-1]=="function"?g.apply(this,B):new Promise(function(ue,Ue){B[d-1]=function(it){for(var Ir=[],Wo=arguments.length-1;Wo-- >0;)Ir[Wo]=arguments[Wo+1];if(it)return Ue(it);ue(Ir.length>1?Ir:Ir[0])},g.apply(M,B)})}return C}i.exports=v.default})(u4,u4.exports),function(i,v){Object.defineProperty(v,"__esModule",{value:!0});var f=GD.exports,g=J(f),d=yI,C=J(d),M=u4.exports,B=J(M);function J(ue){return ue&&ue.__esModule?ue:{default:ue}}v.default=(0,B.default)(function(ue,Ue,it){var Ir=(0,g.default)(Ue)?[]:{};ue(Ue,function(Wo,Ca,eu){(0,C.default)(Wo)(function(Bd){for(var r0,N0=[],fv=arguments.length-1;fv-- >0;)N0[fv]=arguments[fv+1];N0.length<2&&(r0=N0,N0=r0[0]),Ir[Ca]=N0,eu(Bd)})},function(Wo){return it(Wo,Ir)})},3),i.exports=v.default}(rM,rM.exports);var GP={exports:{}},oM={exports:{}},wO={exports:{}},TP={exports:{}};(function(i,v){Object.defineProperty(v,"__esModule",{value:!0}),v.default=f;function f(g){function d(){for(var C=[],M=arguments.length;M--;)C[M]=arguments[M];if(g!==null){var B=g;g=null,B.apply(this,C)}}return Object.assign(d,g),d}i.exports=v.default})(TP,TP.exports);var _L={exports:{}},NM={exports:{}};(function(i,v){Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(f){return f[Symbol.iterator]&&f[Symbol.iterator]()},i.exports=v.default})(NM,NM.exports),function(i,v){Object.defineProperty(v,"__esModule",{value:!0}),v.default=Ue;var f=GD.exports,g=M(f),d=NM.exports,C=M(d);function M(it){return it&&it.__esModule?it:{default:it}}function B(it){var Ir=-1,Wo=it.length;return function(){return++Ir=B||Ir||Ue||(Ir=!0,M.next().then(function(N0){var fv=N0.value,v1=N0.done;if(!(it||Ue)){if(Ir=!1,v1){Ue=!0,Wo<=0&&ue(null);return}Wo++,J(fv,Ca,Bd),Ca++,eu()}}).catch(r0))}function Bd(N0,fv){if(Wo-=1,!it){if(N0)return r0(N0);if(N0===!1){Ue=!0,it=!0;return}if(fv===g.default||Ue&&Wo<=0)return Ue=!0,ue(null);eu()}}function r0(N0){it||(Ir=!1,Ue=!0,ue(N0))}eu()}i.exports=v.default}(SO,SO.exports),function(i,v){Object.defineProperty(v,"__esModule",{value:!0});var f=TP.exports,g=Wo(f),d=_L.exports,C=Wo(d),M=CO.exports,B=Wo(M),J=yI,ue=SO.exports,Ue=Wo(ue),it=KP.exports,Ir=Wo(it);function Wo(Ca){return Ca&&Ca.__esModule?Ca:{default:Ca}}v.default=function(Ca){return function(eu,Bd,r0){if(r0=(0,g.default)(r0),Ca<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!eu)return r0(null);if((0,J.isAsyncGenerator)(eu))return(0,Ue.default)(eu,Ca,Bd,r0);if((0,J.isAsyncIterable)(eu))return(0,Ue.default)(eu[Symbol.asyncIterator](),Ca,Bd,r0);var N0=(0,C.default)(eu),fv=!1,v1=!1,_y=0,Q1=!1;function iy(w_,_x){if(!v1)if(_y-=1,w_)fv=!0,r0(w_);else if(w_===!1)fv=!0,v1=!0;else{if(_x===Ir.default||fv&&_y<=0)return fv=!0,r0(null);Q1||Uy()}}function Uy(){for(Q1=!0;_y0;)N0[fv]=arguments[fv+1];if(r0!==!1){if(r0||Ca===Ir.length)return Wo.apply(void 0,[r0].concat(N0));eu(N0)}}eu([])}v.default=(0,ue.default)(it),i.exports=v.default})(TO,TO.exports);var SR=AI(TO.exports),sM=function(){function i(){this.tasks=[]}return i.prototype.call=function(){return SR(this.tasks)},i.prototype.tap=function(v,f){this.tasks.length===0?this.tasks.push(function(g){var d=f();g(d?null:!1,d)}):this.tasks.push(function(g,d){var C=f.apply(void 0,WP([],nM(g),!1));d(C?null:!1,v)})},i}(),ER=function(){function i(){this.tasks=[]}return i.prototype.call=function(){return EO(this.tasks)},i.prototype.tap=function(v,f){this.tasks.push(function(g){var d=f();g(d,v)})},i}(),BM=function(){function i(){this.args=[],this.tasks=[]}return i.prototype.promise=function(){for(var v=arguments,f=[],g=0;g1&&arguments[1]!==void 0?arguments[1]:!1,f={};return i=i.replace(Zs,function(g,d,C){var M=C.split(":"),B=M[0].trim(),J="";switch(M.length>1&&(J=M[1].trim()),d){case"bool":J=J==="true";break;case"float":case"int":J=Number(J);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":J?J=J.replace("[","").replace("]","").split(",").reduce(function(ue,Ue){return ue.push(Number(Ue.trim())),ue},[]):J=new Array(Wa(d)).fill(0);break;default:}return f[B]=J,"".concat(v?"uniform ":"").concat(d," ").concat(B,`; +`)}),{content:i,uniforms:f}}function Md(i){var v=Su(i,!0),f=v.content,g=v.uniforms;return f=f.replace(/(\s*uniform\s*.*\s*){((?:\s*.*\s*)*?)};/g,function(d,C,M){M=M.trim().replace(/^.*$/gm,function(Ue){return"uniform ".concat(Ue)});var B=Su(M),J=B.content,ue=B.uniforms;return Object.assign(g,ue),"".concat(C,`{ +`).concat(J,` +};`)}),{content:f,uniforms:g}}function Lg(i){var v={};return i.replace(Zs,function(f,g,d){var C=d.trim();return v[C]?"":(v[C]=!0,"uniform ".concat(g," ").concat(C,`; +`))})}var n0,py,Ay=e1.uniq,$_="#define PI 3.14159265359",Jy=`#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,12 +176,11 @@ vec4 decode_color(vec2 encodedColor) { unpack_float(encodedColor[1]) / 255.0 ); } -`,pr=`layout(std140) uniform SceneUniforms { +`,xy=`layout(std140) uniform SceneUniforms { mat4 u_ViewMatrix; mat4 u_ProjectionMatrix; mat4 u_ViewProjectionMatrix; mat4 u_ModelMatrix; - mat4 u_Mvp; vec4 u_ViewportCenterProjection; vec3 u_PixelsPerDegree; float u_Zoom; @@ -192,9 +192,14 @@ vec4 decode_color(vec2 encodedColor) { float u_DevicePixelRatio; vec2 u_ViewportCenter; vec2 u_ViewportSize; - vec2 u_sceneCenterMercator; float u_FocalDistance; -};`,$r=`layout(std140) uniform PickingUniforms { +}; + +layout(std140) uniform LayerUniforms { + mat4 u_Mvp; + vec2 u_sceneCenterMercator; +}; +`,c_=`layout(std140) uniform PickingUniforms { vec4 u_HighlightColor; vec4 u_SelectColor; vec3 u_PickingColor; @@ -205,7 +210,7 @@ vec4 decode_color(vec2 encodedColor) { float u_shaderPick; float u_EnableSelect; float u_activeMix; -};`,na=`#define ambientRatio 0.5 +};`,Bx=`#define ambientRatio 0.5 #define diffuseRatio 0.3 #define specularRatio 0.2 @@ -230,7 +235,7 @@ float calc_lighting(vec4 pos) { return lightWeight; } -`,ba=`// Blinn-Phong model +`,Nx=`// 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; @@ -282,34 +287,6 @@ vec3 calc_directional_light(DirectionalLight light, vec3 normal, vec3 viewDir) { return ambient + diffuse + specular; } -// vec3 calc_spot_light(SpotLight light, vec3 normal, vec3 fragPos, vec3 viewDir) { -// vec3 lightDir = normalize(light.position - fragPos); -// // diffuse shading -// float diff = max(dot(normal, lightDir), 0.0); -// // specular shading -// vec3 reflectDir = reflect(-lightDir, normal); -// float spec = pow(max(dot(viewDir, reflectDir), 0.0), SHININESS); -// // attenuation -// float distance = length(light.position - fragPos); -// float attenuation = 1.0 / (light.constant + light.linear * distance + -// light.quadratic * (distance * distance)); - -// vec3 ambient = light.ambient * u_Ambient; -// vec3 diffuse = light.diffuse * diff * u_Diffuse; -// vec3 specular = light.specular * spec * u_Specular; - -// float spotEffect = dot(normalize(light.direction), -lightDir); -// float spotCosCutoff = cos(light.angle / 180.0 * PI); -// float spotCosOuterCutoff = cos((light.angle + light.blur) / 180.0 * PI); -// float spotCosInnerCutoff = cos((light.angle - light.blur) / 180.0 * PI); -// if (spotEffect > spotCosCutoff) { -// spotEffect = pow(smoothstep(spotCosOuterCutoff, spotCosInnerCutoff, spotEffect), light.exponent); -// } else { -// spotEffect = 0.0; -// } - -// return ambient + attenuation * (spotEffect * diffuse + specular); -// } vec3 calc_lighting(vec3 position, vec3 normal, vec3 viewDir) { vec3 weight = vec3(0.0); @@ -319,15 +296,9 @@ vec3 calc_lighting(vec3 position, vec3 normal, vec3 viewDir) { } weight += calc_directional_light(u_DirectionalLights[i], normal, viewDir); } - // for (int i = 0; i < MAX_NUM_OF_SPOT_LIGHTS; i++) { - // if (i >= u_NumOfSpotLights) { - // break; - // } - // weight += calc_spot_light(u_SpotLights[i], normal, position, viewDir); - // } return weight; } -`,Zl=` +`,a2=` in vec4 v_PickingResult; #pragma include "picking_uniforms" @@ -402,7 +373,7 @@ vec4 filterColorAlpha(vec4 color, float alpha) { } } -`,Xa=`layout(location = 2) in vec3 a_PickingColor; +`,n2=`layout(location = 3) in vec3 a_PickingColor; out vec4 v_PickingResult; #pragma include "picking_uniforms" @@ -445,7 +416,7 @@ float setPickingOrder(float z) { bool selected = bool(v_PickingResult.a); return selected ? z + 1. : 0.; } -`,da=` +`,w2=` #define E 2.718281828459045 vec2 ProjectFlat(vec2 lnglat){ float maxs=85.0511287798; @@ -514,7 +485,7 @@ float customPixelDistance(vec2 from, vec2 to) { vec2 a1 = ProjectFlat(from); vec2 b1 = ProjectFlat(to); return distance(a1, b1); -}`,cl=`#define TILE_SIZE 512.0 +}`,F_=`#define TILE_SIZE 512.0 #define PI 3.1415926536 #define WORLD_SCALE TILE_SIZE / (PI * 2.0) #define EARTH_CIRCUMFERENCE 40.03e6 @@ -702,7 +673,7 @@ float project_float_meter(float meter) { } // TODO: change the following code to make adaptations for amap - return u_FocalDistance * TILE_SIZE * pow(2.0, u_Zoom) * meter / EARTH_CIRCUMFERENCE; + // return u_FocalDistance * TILE_SIZE * pow(2.0, u_Zoom) * meter / EARTH_CIRCUMFERENCE; } float project_pixel(float pixel) { @@ -782,13 +753,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) { +`,gT=`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=`/** +}`,mE=`/** * 2D signed distance field functions * @see http://www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm */ @@ -862,24 +833,24 @@ float sdVesica(vec2 p, float r, float d) { ? length(p-vec2(0.0,b)) : length(p-vec2(-d,0.0))-r; } -`,oc=/precision\s+(high|low|medium)p\s+float/,tc=`#ifdef GL_FRAGMENT_PRECISION_HIGH +`,ZT=/precision\s+(high|low|medium)p\s+float/,sA=`#ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; #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,` -`),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],`; +`,gS=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,PT=/void\s+main\s*\([^)]*\)\s*\{\n?/,tT=/}\n?[^{}]*$/,v3=(n0=(0,Cg.b2)(),n0(py=function(){function i(){(0,Or.Z)(this,i),(0,ka.Z)(this,"moduleCache",{}),(0,ka.Z)(this,"rawContentCache",{})}return(0,at.Z)(i,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:$_,fs:$_}),this.registerModule("decode",{vs:Jy,fs:""}),this.registerModule("scene_uniforms",{vs:xy,fs:xy}),this.registerModule("picking_uniforms",{vs:c_,fs:c_}),this.registerModule("projection",{vs:F_,fs:F_}),this.registerModule("project",{vs:w2,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:mE}),this.registerModule("lighting",{vs:Nx,fs:""}),this.registerModule("light",{vs:Bx,fs:""}),this.registerModule("picking",{vs:n2,fs:a2}),this.registerModule("rotation_2d",{vs:gT,fs:""})}},{key:"registerModule",value:function(f,g){g.vs=g.vs.replace(/\r\n/g,` +`),g.fs=g.fs.replace(/\r\n/g,` +`);var d=g.vs,C=g.fs,M=g.uniforms,B=g.inject,J=Md(d),ue=J.content,Ue=J.uniforms,it=Md(C),Ir=it.content,Wo=it.uniforms;this.rawContentCache[f]={fs:Ir,inject:B,uniforms:(0,An.Z)((0,An.Z)((0,An.Z)({},Ue),Wo),M),vs:ue}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(f){var g=this,d=this.rawContentCache[f].vs,C=this.rawContentCache[f].fs,M=this.rawContentCache[f].inject,B={};M!=null&&M["vs:#decl"]&&(d=(M==null?void 0:M["vs:#decl"])+d,B=Md(M==null?void 0:M["vs:#decl"]).uniforms),M!=null&&M["vs:#main-start"]&&(d=d.replace(PT,function(r0){return r0+(M==null?void 0:M["vs:#main-start"])})),M!=null&&M["fs:#decl"]&&(C=(M==null?void 0:M["fs:#decl"])+C);var J=this.processModule(d,[],"vs"),ue=J.content,Ue=J.includeList,it=this.processModule(C,[],"fs"),Ir=it.content,Wo=it.includeList,Ca="",eu=Ay(Ue.concat(Wo).concat(f)).reduce(function(r0,N0){return(0,An.Z)((0,An.Z)({},r0),g.rawContentCache[N0].uniforms)},(0,An.Z)({},B));ZT.test(Ir)||(Ca=Ca+sA),Ca=Ca+Ir;var Bd="";return ZT.test(ue)||(Bd=Bd+sA),Bd=Bd+ue,this.moduleCache[f]={fs:Ca.trim(),uniforms:eu,vs:Bd.trim()},this.moduleCache[f]}},{key:"processModule",value:function(f,g,d){var C=this,M=f.replace(gS,function(B,J){var ue=J.split(" "),Ue=ue[0].replace(/"/g,"");if(g.indexOf(Ue)>-1)return"";var it=C.rawContentCache[Ue][d];g.push(Ue);var Ir=C.processModule(it,g,d),Wo=Ir.content;return Wo});return{content:M,includeList:g}}},{key:"injectDefines",value:function(f){var g=Object.keys(f).reduce(function(d,C){return d+"#define ".concat(C.toUpperCase()," ").concat(f[C],`; `)},` -`);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 g}}]),i}())||py);function h3(i,v){for(;!Object.prototype.hasOwnProperty.call(i,v)&&(i=(0,si.Z)(i),i!==null););return i}function OS(){return typeof Reflect!="undefined"&&Reflect.get?OS=Reflect.get.bind():OS=function(v,f,g){var d=h3(v,f);if(d){var C=Object.getOwnPropertyDescriptor(d,f);return C.get?C.get.call(arguments.length<3?v:g):C.value}},OS.apply(this,arguments)}var J3=function(i){return i.Normal="normal",i.PostProcessing="post-processing",i}({}),KD,s3,f3=(KD=(0,Cg.b2)(),KD(s3=function(){function i(){(0,Or.Z)(this,i),(0,ka.Z)(this,"shaderModuleService",void 0),(0,ka.Z)(this,"rendererService",void 0),(0,ka.Z)(this,"cameraService",void 0),(0,ka.Z)(this,"mapService",void 0),(0,ka.Z)(this,"interactionService",void 0),(0,ka.Z)(this,"layerService",void 0),(0,ka.Z)(this,"config",void 0)}return(0,at.Z)(i,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return J3.Normal}},{key:"init",value:function(f,g){this.config=g,this.rendererService=f.getContainer().get(su.IRendererService),this.cameraService=f.getContainer().get(su.ICameraService),this.mapService=f.getContainer().get(su.IMapService),this.interactionService=f.getContainer().get(su.IInteractionService),this.layerService=f.getContainer().get(su.ILayerService),this.shaderModuleService=f.getContainer().get(su.IShaderModuleService)}},{key:"render",value:function(f){}}]),i}())||s3),a3,nD;function AP(i){var v=I4();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}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(i){return!1}}var TR=(a3=(0,Cg.b2)(),a3(nD=function(i){(0,Wt.Z)(f,i);var v=AP(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(d,C){OS((0,si.Z)(f.prototype),"init",this).call(this,d,C)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}]),f}(f3))||nD),bL,HT,xL,XP,DO;function AR(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=Nk(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var g=0,d=function(){};return{s:d,n:function(){return g>=i.length?{done:!0}:{done:!1,value:i[g++]}},e:function(ue){throw ue},f:d}}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 C=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return C=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!C&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function Nk(i,v){if(i){if(typeof i=="string")return Fk(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return Fk(i,v)}}function Fk(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,g=new Array(v);fr0||Q1<0||iy>N0||iy<0)){var Uy;eu(g.pickingFBO,(0,y_.Z)(Dv().mark(function w_(){var _x,ux,f2,G2,cw;return Dv().wrap(function(mT){for(;;)switch(mT.prev=mT.next){case 0:return mT.next=2,Ca({x:Math.round(Q1),y:Math.round(N0-(ue+1)*Bg),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:g.pickingFBO});case 2:Uy=mT.sent,Uy[0]!==0||Uy[1]!==0||Uy[2]!==0?(ux=V0(Uy),f2=g.layer.getSource().getFeatureById(ux),G2={x:J,y:ue,type:it,lngLat:Ue,featureId:ux,feature:f2},f2&&(g.layer.setCurrentPickId(ux),g.triggerHoverOnLayer(G2))):(cw={x:J,y:ue,lngLat:Ue,type:g.layer.getCurrentPickId()===null?"un"+it:"mouseout",featureId:null,feature:null},g.triggerHoverOnLayer((0,An.Z)((0,An.Z)({},cw),{},{type:"unpick"})),g.triggerHoverOnLayer(cw),g.layer.setCurrentPickId(null)),v1&&g.highlightPickedFeature(Uy),_y&&it==="click"&&((_x=Uy)===null||_x===void 0?void 0:_x.toString())!==[0,0,0,0].toString()&&g.selectFeature(Uy);case 6:case"end":return mT.stop()}},w_)})))}}}),g}return(0,at.Z)(f,[{key:"getType",value:function(){return J3.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(d,C){OS((0,si.Z)(f.prototype),"init",this).call(this,d,C),this.layer=d;var M=this.rendererService,B=M.createTexture2D,J=M.createFramebuffer,ue=M.getViewportSize,Ue=ue(),it=Ue.width,Ir=Ue.height,Wo=B({width:it,height:Ir,wrapS:K0.CLAMP_TO_EDGE,wrapT:K0.CLAMP_TO_EDGE,label:"Picking Texture"});this.pickingFBO=J({color:Wo}),this.interactionService.on(tA.Hover,this.pickFromPickingFBO),this.interactionService.on(tA.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(tA.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(d){var C=this;if(!this.alreadyInRendering){var M=this.rendererService,B=M.getViewportSize,J=M.useFramebuffer,ue=M.clear,Ue=B(),it=Ue.width,Ir=Ue.height;this.alreadyInRendering=!0,(this.width!==it||this.height!==Ir)&&(this.pickingFBO.resize({width:it,height:Ir}),this.width=it,this.height=Ir),J(this.pickingFBO,function(){ue({framebuffer:C.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var Wo=C.layer.multiPassRenderer.getRenderFlag();C.layer.multiPassRenderer.setRenderFlag(!1),d.hooks.beforePickingEncode.call(),d.render(),d.hooks.afterPickingEncode.call(),C.layer.multiPassRenderer.setRenderFlag(Wo),C.alreadyInRendering=!1})}}},{key:"triggerHoverOnLayer",value:function(d){this.layer.emit(d.type,d)}},{key:"highlightPickedFeature",value:function(d){var C=(0,_g.Z)(d,3),M=C[0],B=C[1],J=C[2];this.layer.hooks.beforeHighlight.call([M,B,J]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(d){var C=(0,_g.Z)(d,3),M=C[0],B=C[1],J=C[2];this.layer.hooks.beforeSelect.call([M,B,J]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(d){var C=d.featureId,M=Av(C);this.selectFeature(new Uint8Array(M))}},{key:"highlightFeatureHandle",value:function(d){var C=d.featureId,M=Av(C);this.highlightPickedFeature(new Uint8Array(M))}}]),f}(f3))||y6),kF,NF,FF,x6,w6,b9=e1.camelCase,C6=e1.isNil,S6=e1.upperFirst,x9=`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; +}`,DP=(kF=(0,Cg.b2)(),NF=(0,Cg.f3)(su.IShaderModuleService),kF(FF=(x6=function(){function i(){(0,Or.Z)(this,i),ne(this,"shaderModuleService",w6,this),(0,ka.Z)(this,"rendererService",void 0),(0,ka.Z)(this,"config",void 0),(0,ka.Z)(this,"quad",x9),(0,ka.Z)(this,"enabled",!0),(0,ka.Z)(this,"renderToScreen",!1),(0,ka.Z)(this,"model",void 0),(0,ka.Z)(this,"name",void 0),(0,ka.Z)(this,"optionsToUpdate",{})}return(0,at.Z)(i,[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(f){this.name=f}},{key:"getType",value:function(){return J3.PostProcessing}},{key:"init",value:function(f,g){this.config=g,this.rendererService=f.getContainer().get(su.IRendererService),this.shaderModuleService=f.getContainer().get(su.IShaderModuleService);var d=this.rendererService,C=d.createAttribute,M=d.createBuffer,B=d.createModel,J=this.setupShaders(),ue=J.vs,Ue=J.fs,it=J.uniforms;this.model=B({vs:ue,fs:Ue,attributes:{a_Position:C({buffer:M({data:[-4,-4,4,-4,0,4],type:K0.FLOAT}),size:2})},uniforms:(0,An.Z)((0,An.Z)({u_Texture:null},it),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:this.getName()==="copy"}})}},{key:"render",value:function(f,g){var d=this,C=f.multiPassRenderer.getPostProcessor(),M=this.rendererService,B=M.useFramebuffer,J=M.getViewportSize,ue=M.clear,Ue=J(),it=Ue.width,Ir=Ue.height;B(this.renderToScreen?null:C.getWriteFBO(),function(){ue({framebuffer:C.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var Wo=(0,An.Z)({u_BloomFinal:0,u_Texture:C.getReadFBO(),u_ViewportSize:[it,Ir]},d.convertOptionsToUniforms(d.optionsToUpdate));g&&(Wo.u_BloomFinal=1,Wo.u_Texture2=g),d.model.draw({uniforms:Wo})})}},{key:"isEnabled",value:function(){return this.enabled}},{key:"setEnabled",value:function(f){this.enabled=f}},{key:"setRenderToScreen",value:function(f){this.renderToScreen=f}},{key:"updateOptions",value:function(f){this.optionsToUpdate=(0,An.Z)((0,An.Z)({},this.optionsToUpdate),f)}},{key:"setupShaders",value:function(){throw new Error("Method not implemented.")}},{key:"convertOptionsToUniforms",value:function(f){var g={};return Object.keys(f).forEach(function(d){C6(f[d])||(g["u_".concat(S6(b9(d)))]=f[d])}),g}}]),i}(),w6=H(x6.prototype,"shaderModuleService",[NF],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x6))||FF),E6,T6;function wL(i){var v=zk();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function zk(){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(i){return!1}}var aM=`varying vec2 v_UV; uniform float u_BloomFinal: 0.0; uniform sampler2D u_Texture; @@ -935,14 +906,14 @@ void main() { } else { gl_FragColor = inbloomColor; } -}`,QE=`attribute vec2 a_Position; +}`,A6=`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; +}`,DR=e1.isNil,BF=(E6=(0,Cg.b2)(),E6(T6=function(i){(0,Wt.Z)(f,i);var v=wL(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:A6,fs:aM});var d=this.shaderModuleService.getModule("blur-pass"),C=d.vs,M=d.fs,B=d.uniforms,J=this.rendererService.getViewportSize(),ue=J.width,Ue=J.height;return{vs:C,fs:M,uniforms:(0,An.Z)((0,An.Z)({},B),{},{u_ViewportSize:[ue,Ue]})}}},{key:"convertOptionsToUniforms",value:function(d){var C={};return DR(d.bloomRadius)||(C.u_radius=d.bloomRadius),DR(d.bloomIntensity)||(C.u_intensity=d.bloomIntensity),DR(d.bloomBaseRadio)||(C.u_baseRadio=d.bloomBaseRadio),C}}]),f}(DP))||T6),$k,P4;function zM(i){var v=L5();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function L5(){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(i){return!1}}var w9=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -964,14 +935,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; +}`,Uk=`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; +}`,zF=e1.isNil,L4=($k=(0,Cg.b2)(),$k(P4=function(i){(0,Wt.Z)(f,i);var v=zM(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:Uk,fs:w9});var d=this.shaderModuleService.getModule("blur-pass"),C=d.vs,M=d.fs,B=d.uniforms,J=this.rendererService.getViewportSize(),ue=J.width,Ue=J.height;return{vs:C,fs:M,uniforms:(0,An.Z)((0,An.Z)({},B),{},{u_ViewportSize:[ue,Ue]})}}},{key:"convertOptionsToUniforms",value:function(d){var C={};return zF(d.blurRadius)||(C.u_BlurDir=[d.blurRadius,0]),C}}]),f}(DP))||P4),D6,lM;function C9(i){var v=IP();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function IP(){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(i){return!1}}var I6=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -993,14 +964,14 @@ vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { void main() { gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir); -}`,xy=`attribute vec2 a_Position; +}`,IR=`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.); -}`,_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; +}`,$F=e1.isNil,UF=(D6=(0,Cg.b2)(),D6(lM=function(i){(0,Wt.Z)(f,i);var v=C9(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:IR,fs:I6});var d=this.shaderModuleService.getModule("blur-pass"),C=d.vs,M=d.fs,B=d.uniforms,J=this.rendererService.getViewportSize(),ue=J.width,Ue=J.height;return{vs:C,fs:M,uniforms:(0,An.Z)((0,An.Z)({},B),{},{u_ViewportSize:[ue,Ue]})}}},{key:"convertOptionsToUniforms",value:function(d){var C={};return $F(d.blurRadius)||(C.u_BlurDir=[0,d.blurRadius]),C}}]),f}(DP))||lM),Vk,jk;function S9(i){var v=M5();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function M5(){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(i){return!1}}var P6=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -1043,27 +1014,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; +}`,VF=`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; +}`,E9=(Vk=(0,Cg.b2)(),Vk(jk=function(i){(0,Wt.Z)(f,i);var v=S9(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("colorhalftone-pass",{vs:VF,fs:P6});var d=this.shaderModuleService.getModule("colorhalftone-pass"),C=d.vs,M=d.fs,B=d.uniforms,J=this.rendererService.getViewportSize(),ue=J.width,Ue=J.height;return{vs:C,fs:M,uniforms:(0,An.Z)((0,An.Z)({},B),{},{u_ViewportSize:[ue,Ue]})}}}]),f}(DP))||jk),jF,WF;function T9(i){var v=A9();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function A9(){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(i){return!1}}var O5=`varying vec2 v_UV; uniform sampler2D u_Texture; void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); -}`,e4=`attribute vec2 a_Position; +}`,PR=`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; +}`,D9=(jF=(0,Cg.b2)(),jF(WF=function(i){(0,Wt.Z)(f,i);var v=T9(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("copy-pass",{vs:PR,fs:O5}),this.shaderModuleService.getModule("copy-pass")}}]),f}(DP))||WF),$M,QI;function LR(i){var v=ZF();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function ZF(){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(i){return!1}}var CL=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -1106,14 +1077,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; +}`,IO=`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; +}`,L6=($M=(0,Cg.b2)(),$M(QI=function(i){(0,Wt.Z)(f,i);var v=LR(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("hexagonalpixelate-pass",{vs:IO,fs:CL});var d=this.shaderModuleService.getModule("hexagonalpixelate-pass"),C=d.vs,M=d.fs,B=d.uniforms,J=this.rendererService.getViewportSize(),ue=J.width,Ue=J.height;return{vs:C,fs:M,uniforms:(0,An.Z)((0,An.Z)({},B),{},{u_ViewportSize:[ue,Ue]})}}}]),f}(DP))||QI),MR,Ev;function kC(i){var v=HF();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function HF(){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(i){return!1}}var I9=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -1146,14 +1117,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; +}`,UM=`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; +}`,OR=(MR=(0,Cg.b2)(),MR(Ev=function(i){(0,Wt.Z)(f,i);var v=kC(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("ink-pass",{vs:UM,fs:I9});var d=this.shaderModuleService.getModule("ink-pass"),C=d.vs,M=d.fs,B=d.uniforms,J=this.rendererService.getViewportSize(),ue=J.width,Ue=J.height;return{vs:C,fs:M,uniforms:(0,An.Z)((0,An.Z)({},B),{},{u_ViewportSize:[ue,Ue]})}}}]),f}(DP))||Ev),wS,GF;function R5(i){var v=P9();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function P9(){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(i){return!1}}var L9=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform float u_Amount : 0.5; @@ -1174,21 +1145,21 @@ vec4 noise_filterColor(vec4 color, vec2 texCoord) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = noise_filterColor(gl_FragColor, v_UV); -}`,dw=`attribute vec2 a_Position; +}`,uM=`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.); -}`,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; +}`,M9=(wS=(0,Cg.b2)(),wS(GF=function(i){(0,Wt.Z)(f,i);var v=R5(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("noise-pass",{vs:uM,fs:L9}),this.shaderModuleService.getModule("noise-pass")}}]),f}(DP))||GF),M6,O6;function R6(i){var v=SL();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function SL(){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(i){return!1}}var lP=`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; +}`,uP=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -1209,7 +1180,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;)f=f+g*(d%v),d=Math.floor(d/v),g=g/v;return f}var qF=1,PO=(cI=(0,Cg.b2)(),$3=(0,Cg.f3)(su.IShaderModuleService),cI(F5=(Wk=function(i){(0,Wt.Z)(f,i);var v=YF(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M=1&&(ue(this.copyRenderTarget,function(){C.outputModel.draw({uniforms:{u_Texture:C.outputRenderTarget}})}),ue(d.multiPassRenderer.getPostProcessor().getReadFBO(),function(){C.copyModel.draw({uniforms:{u_Texture:C.copyRenderTarget}})}),d.multiPassRenderer.getPostProcessor().render(d));var N0=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=N0,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(d,C,M){this.shaderModuleService.registerModule(d,{vs:rD,fs:C});var B=this.shaderModuleService.getModule(d),J=B.vs,ue=B.fs,Ue=B.uniforms,it=this.rendererService,Ir=it.createAttribute,Wo=it.createBuffer,Ca=it.createModel;return Ca((0,An.Z)({vs:J,fs:ue,attributes:{a_Position:Ir({buffer:Wo({data:[-4,-4,4,-4,0,4],type:K0.FLOAT}),size:2})},uniforms:(0,An.Z)({},Ue),depth:{enable:!1},count:3},M))}}]),f}(f3),Zk=H(Wk.prototype,"shaderModuleService",[$3],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wk))||F5),Y4=new Cg.W2;Y4.bind(su.IGlobalConfigService).to(LE).inSingletonScope(),(0,Cg.GW)((0,Cg.b2)(),N2.EventEmitter),Y4.bind(su.IEventEmitter).to(N2.EventEmitter);var Gk=(0,Td.Z)(Y4,!1),dP=function(v){var f=Gk.lazyInject(v);return function(g,d,C){f.call(this,g,d),C&&(C.initializer=function(){return g[d]})}},Kk=function(v){var f=Gk.lazyMultiInject(v);return function(g,d,C){f.call(this,g,d),C&&(C.initializer=function(){return g[d]})}},WD=Y4,$6=0;function Xk(){var i=new Cg.W2;return i.parent=Y4,i.bind(su.SceneID).toConstantValue("".concat($6++)),i.bind(su.IShaderModuleService).to(v3).inSingletonScope(),i.bind(su.ILayerService).to(vO).inSingletonScope(),i.bind(su.IDebugService).to(eI).inSingletonScope(),i.bind(su.ISceneService).to(Ba).inSingletonScope(),i.bind(su.ICameraService).to(yy).inSingletonScope(),i.bind(su.ICoordinateSystemService).to(HA).inSingletonScope(),i.bind(su.IInteractionService).to(yD).inSingletonScope(),i.bind(su.IPickingService).to(vI).inSingletonScope(),i.bind(su.IControlService).to(Gw).inSingletonScope(),i.bind(su.IMarkerService).to(EE).inSingletonScope(),i.bind(su.IIconService).to(wT).inSingletonScope(),i.bind(su.IFontService).to(dS).inSingletonScope(),i.bind(su.IPopupService).to(hS).inSingletonScope(),i.bind(su.INormalPass).to(TR).whenTargetNamed("clear"),i.bind(su.INormalPass).to(b6).whenTargetNamed("pixelPicking"),i.bind(su.INormalPass).to(N5).whenTargetNamed("render"),i.bind(su.INormalPass).to(PO).whenTargetNamed("taa"),i.bind(su.IFactoryNormalPass).toFactory(function(v){return function(f){return v.container.getNamed(su.INormalPass,f)}}),i.bind(su.IPostProcessingPass).to(D9).whenTargetNamed("copy"),i.bind(su.IPostProcessingPass).to(BF).whenTargetNamed("bloom"),i.bind(su.IPostProcessingPass).to(L4).whenTargetNamed("blurH"),i.bind(su.IPostProcessingPass).to(UF).whenTargetNamed("blurV"),i.bind(su.IPostProcessingPass).to(M9).whenTargetNamed("noise"),i.bind(su.IPostProcessingPass).to(X4).whenTargetNamed("sepia"),i.bind(su.IPostProcessingPass).to(E9).whenTargetNamed("colorHalftone"),i.bind(su.IPostProcessingPass).to(L6).whenTargetNamed("hexagonalPixelate"),i.bind(su.IPostProcessingPass).to(OR).whenTargetNamed("ink"),i.bind(su.IFactoryPostProcessingPass).toFactory(function(v){return function(f){var g=v.container.getNamed(su.IPostProcessingPass,f);return g.setName(f),g}}),i}function TL(i){var v=new Cg.W2;return v.parent=i,v.bind(su.IStyleAttributeService).to(MM).inSingletonScope(),v.bind(su.IMultiPassRenderer).to(Bk).inSingletonScope(),v.bind(su.IPostProcessor).to(KF).inSingletonScope(),v}var NR=["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"];function iD(i){return NR.indexOf(i)}var L3=e1.clamp,BA=2,FI=4,Yk=64,hP=128,LO=256,U6=512,YP=8192,MO=16384,O9=32768,JF=null,qP=131072,qk=262144,R9=524288,c4=1048576,SU=2097152,k9=4194304,B5=8388608,N9=16777216,F9=null;function z5(i,v){return i=L3(Math.floor(i),0,255),v=L3(Math.floor(v),0,255),256*i+v}function QF(i){var v=i.color,f=i.radius,g=i.tileX,d=i.tileY,C=i.shape,M=i.opacity,B=i.stroke,J=i.strokeWidth,ue=i.strokeOpacity,Ue=[],it=[],Ir=[],Wo=[z5(v[0],v[1]),z5(v[2],v[3])],Ca=[z5(B[0],B[1]),z5(B[2],B[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(eu){var Bd=(0,_g.Z)(eu,2),r0=Bd[0],N0=Bd[1];Ue.push([].concat(Wo,[(r0+1)*B5+(N0+1)*SU+iD(C)*qP+f,(g+512)*R9+(d+512)*Yk])),it.push([].concat(Ca,[J,ue])),Ir.push([M,0,0,0])}),{packedBuffer:Ue,packedBuffer2:it,packedBuffer3:Ir}}function V6(i,v){if(i===0&&!v)return 0;if(i===1&&v)return 4294967295;var f=v?1:0,g=Math.floor(i*127);return g*F9+f*N9+g*qP+f*JF+g*U6+f*LO+g*BA+f}var AL={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"},XT={MapInitStart:"mapInitStart",LayerInitStart:"layerInitStart",LayerInitEnd:"layerInitEnd",SourceInitStart:"sourceInitStart",SourceInitEnd:"sourceInitEnd",ScaleInitStart:"scaleInitStart",ScaleInitEnd:"scaleInitEnd",MappingStart:"mappingStart",MappingEnd:"mappingEnd",BuildModelStart:"buildModelStart",BuildModelEnd:"buildModelEnd"},U3=function(i){return i.LINEAR="linear",i.SEQUENTIAL="sequential",i.POWER="power",i.LOG="log",i.IDENTITY="identity",i.TIME="time",i.QUANTILE="quantile",i.QUANTIZE="quantize",i.THRESHOLD="threshold",i.CAT="cat",i.DIVERGING="diverging",i.CUSTOM="threshold",i}({}),VM=function(i){return i.CONSTANT="constant",i.VARIABLE="variable",i}({}),mS=function(i){return i[i.Attribute=0]="Attribute",i[i.InstancedAttribute=1]="InstancedAttribute",i[i.Uniform=2]="Uniform",i}({}),BI=["mapload","mapchange","mapAfterFrameChange"],OO=["loaded","fontloaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"],lD=function(i){return i.IMAGE="image",i.CUSTOMIMAGE="customImage",i.ARRAYBUFFER="arraybuffer",i.RGB="rgb",i.TERRAINRGB="terrainRGB",i.CUSTOMRGB="customRGB",i.CUSTOMARRAYBUFFER="customArrayBuffer",i.CUSTOMTERRAINRGB="customTerrainRGB",i}({}),B9=function(){var i=(0,y_.Z)(Dv().mark(function v(f,g,d,C){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",new Promise(function(J,ue){g({x:f.x,y:f.y,z:f.z},function(Ue,it){if(Ue||it.length===0){ue(Ue);return}it&&ct([{data:it,bands:[0]}],d,C,function(Ir,Wo){Ir?ue(Ir):Wo&&J(Wo)})})}));case 1:case"end":return B.stop()}},v)}));return function(f,g,d,C){return i.apply(this,arguments)}}(),M4=function(){var i=(0,y_.Z)(Dv().mark(function v(f,g){return Dv().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",new Promise(function(M,B){g({x:f.x,y:f.y,z:f.z},function(J,ue){if(J||!ue){B(J);return}ue instanceof ArrayBuffer?U0(ue,function(Ue,it){Ue&&B(Ue),M(it)}):ue instanceof HTMLImageElement?M(ue):B(J)})}));case 1:case"end":return C.stop()}},v)}));return function(f,g){return i.apply(this,arguments)}}();function z9(i,v){return Array.isArray(i)?typeof i[0]=="string"?i.map(function(f){return FC(f,v)}):i.map(function(f){return{url:FC(f.url,v),bands:f.bands||[0]}}):FC(i,v)}function FR(i){return typeof i=="string"?[{url:i,bands:[0]}]:typeof i[0]=="string"?i.map(function(v){return{url:v,bands:[0]}}):i}function CA(i,v){i.xhrCancel=function(){v.map(function(f){f.abort()})}}var e7=function(){var i=(0,y_.Z)(Dv().mark(function v(f,g,d,C,M){var B,J,ue,Ue,it,Ir;return Dv().wrap(function(Ca){for(;;)switch(Ca.prev=Ca.next){case 0:if(B=FR(g.url),!(B.length>1)){Ca.next=15;break}return Ca.next=4,Jk(B,g);case 4:if(J=Ca.sent,ue=J.rasterFiles,Ue=J.xhrList,it=J.errList,CA(f,Ue),!(it.length>0)){Ca.next=12;break}return d(it,null),Ca.abrupt("return");case 12:ct(ue,C,M,d),Ca.next=17;break;case 15:Ir=w0(g,function(eu,Bd){if(eu)d(eu);else if(Bd){var r0=[{data:Bd,bands:B[0].bands}];ct(r0,C,M,d)}}),CA(f,[Ir]);case 17:case"end":return Ca.stop()}},v)}));return function(f,g,d,C,M){return i.apply(this,arguments)}}();function Jk(i,v){return $5.apply(this,arguments)}function $5(){return $5=(0,y_.Z)(Dv().mark(function i(v,f){var g,d,C,M,B,J,ue,Ue,it,Ir,Wo;return Dv().wrap(function(eu){for(;;)switch(eu.prev=eu.next){case 0:g=[],d=[],C=[],M=0;case 4:if(!(M1&&arguments[1]!==void 0?arguments[1]:{};if(SA(i))throw new Error("tile server url is error");var f=(v==null?void 0:v.dataType)||lD.IMAGE;f===lD.RGB&&(f=lD.ARRAYBUFFER);var g=function(M,B){switch(f){case lD.IMAGE:return j6(i,M,B,v);case lD.CUSTOMIMAGE:case lD.CUSTOMTERRAINRGB:return M4(B,v==null?void 0:v.getCustomData);case lD.ARRAYBUFFER:return t7(i,M,B,(v==null?void 0:v.format)||W6,v==null?void 0:v.operation);case lD.CUSTOMARRAYBUFFER:case lD.CUSTOMRGB:return B9(B,v==null?void 0:v.getCustomData,(v==null?void 0:v.format)||W6,v==null?void 0:v.operation);default:return j6(i,M,B,v)}},d=(0,An.Z)((0,An.Z)((0,An.Z)({},DL),v),{},{getTileData:g});return{data:i,dataArray:[],tilesetOptions:d,isTile:!0}}var DI=["extent","min","max","width","height","format","operation"];function jM(i,v){var f=v.extent,g=v.min,d=v.max,C=v.width,M=v.height,B=v.format,J=v.operation,ue=(0,q3.Z)(v,DI),Ue;if(B===void 0||t0(i))Ue=Array.from(i);else{var it=Array.isArray(i)?i:[i];Ue=Ww(it,B,J)}var Ir={_id:1,dataArray:[(0,An.Z)((0,An.Z)({_id:1,data:Ue,width:C,height:M},ue),{},{min:g,max:d,coordinates:[[f[0],f[1]],[f[2],f[3]]]})]};return Ir}var eN={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},Z6=function(){var i=(0,y_.Z)(Dv().mark(function v(f){return Dv().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",new Promise(function(C){var M=(0,_g.Z)(f.bounds,4),B=M[0],J=M[1],ue=M[2],Ue=M[3],it={layers:{testTile:{features:[{type:"Feature",properties:{key:f.x+"/"+f.y+"/"+f.z,x:(B+ue)/2,y:(J+Ue)/2},geometry:{type:"LineString",coordinates:[[ue,Ue],[ue,J],[B,J],[B,J]]}}]}}};C(it)}));case 1:case"end":return d.stop()}},v)}));return function(f){return i.apply(this,arguments)}}();function H6(i,v){var f=function(C){return Z6(C)},g=(0,An.Z)((0,An.Z)((0,An.Z)({},eN),v),{},{getTileData:f});return{data:i,dataArray:[],tilesetOptions:g,isTile:!0}}var tN=["extent","width","height"];function G6(i,v){var f=v.extent,g=v.width,d=v.height,C=(0,q3.Z)(v,tN);i.length<3&&console.warn("RGB\u89E3\u6790\u9700\u8981\u4E09\u4E2A\u6CE2\u6BB5\u7684\u6570\u636E");for(var M=C.bands||[0,1,2],B=(0,_g.Z)(M,3),J=B[0],ue=B[1],Ue=B[2],it=[i[J],i[ue],i[Ue]],Ir=[],Wo=(C==null?void 0:C.countCut)||[2,98],Ca=(0,_g.Z)(Wo,2),eu=Ca[0],Bd=Ca[1],r0=(C==null?void 0:C.RMinMax)||T2(it[0],eu,Bd),N0=(C==null?void 0:C.GMinMax)||T2(it[1],eu,Bd),fv=(C==null?void 0:C.BMinMax)||T2(it[2],eu,Bd),v1=0;v1v&&(v=i[f]);return v}function rN(i){if(i.length===0)throw new Error("min requires at least one data point");for(var v=i[0],f=1;f=Math.abs(i[d])?f+=v-g+i[d]:f+=i[d]-g+v,v=g;return v+f*1}function i7(i){if(i.length===0)throw new Error("mean requires at least one data point");return r7(i)/i.length}var RO={min:rN,max:BR,mean:i7,sum:r7};function X6(i){var v=o7();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function o7(){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(i){return!1}}var Y6=e1.cloneDeep,WM=e1.isFunction,O4=e1.isString,s7=e1.mergeWith;function $9(i,v){if(Array.isArray(v))return v}var zR=function(i){(0,Wt.Z)(f,i);var v=X6(f);function f(g,d){var C;return(0,Or.Z)(this,f),C=v.call(this),(0,ka.Z)((0,hv.Z)(C),"type","source"),(0,ka.Z)((0,hv.Z)(C),"isTile",!1),(0,ka.Z)((0,hv.Z)(C),"inited",!1),(0,ka.Z)((0,hv.Z)(C),"hooks",{init:new aP}),(0,ka.Z)((0,hv.Z)(C),"parser",{type:"geojson"}),(0,ka.Z)((0,hv.Z)(C),"transforms",[]),(0,ka.Z)((0,hv.Z)(C),"cluster",!1),(0,ka.Z)((0,hv.Z)(C),"clusterOptions",{enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"}),(0,ka.Z)((0,hv.Z)(C),"invalidExtent",!1),(0,ka.Z)((0,hv.Z)(C),"dataArrayChanged",!1),(0,ka.Z)((0,hv.Z)(C),"cfg",{autoRender:!0}),C.originData=g,C.initCfg(d),C.init().then(function(){C.inited=!0,C.emit("update",{type:"inited"})}),C}return(0,at.Z)(f,[{key:"getSourceCfg",value:function(){return this.cfg}},{key:"getClusters",value:function(d){return this.clusterIndex.getClusters(this.caculClusterExtent(2),d)}},{key:"getClustersLeaves",value:function(d){return this.clusterIndex.getLeaves(d,1/0)}},{key:"getParserType",value:function(){return this.parser.type}},{key:"updateClusterData",value:function(d){var C=this,M=this.clusterOptions,B=M.method,J=B===void 0?"sum":B,ue=M.field,Ue=this.clusterIndex.getClusters(this.caculClusterExtent(2),Math.floor(d));this.clusterOptions.zoom=d,Ue.forEach(function(it){it.id||(it.properties.point_count=1)}),(ue||WM(J))&&(Ue=Ue.map(function(it){var Ir=it.id;if(Ir){var Wo=C.clusterIndex.getLeaves(Ir,1/0),Ca=Wo.map(function(r0){return r0.properties}),eu;if(O4(J)&&ue){var Bd=qg(Ca,ue);eu=RO[J](Bd)}WM(J)&&(eu=J(Ca)),it.properties.stat=eu}else it.properties.point_count=1;return it})),this.data=a("geojson")({type:"FeatureCollection",features:Ue}),this.executeTrans()}},{key:"getFeatureById",value:function(d){var C=this.parser,M=C.type,B=M===void 0?"geojson":M,J=C.geometry;if(B==="geojson"&&!this.cluster){var ue=d=i.length?{done:!0}:{done:!1,value:i[g++]}},e:function(ue){throw ue},f:d}}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 C=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return C=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!C&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function q6(i,v){if(i){if(typeof i=="string")return l7(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return l7(i,v)}}function l7(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,g=new Array(v);fg?d:g)}}catch(fv){C.e(fv)}finally{C.f()}var J=(f+g)/2,ue=J6(v,J);if(ue.xOffset<=0||ue.yOffset<=0)return{gridHash:{},gridOffset:ue};var Ue={},it=iN(i),Ir;try{for(it.s();!(Ir=it.n()).done;){var Wo=Ir.value,Ca=Wo.coordinates[1],eu=Wo.coordinates[0];if(Number.isFinite(Ca)&&Number.isFinite(eu)){var Bd=Math.floor((Ca+90)/ue.yOffset),r0=Math.floor((eu+180)/ue.xOffset),N0="".concat(Bd,"-").concat(r0);Ue[N0]=Ue[N0]||{count:0,points:[]},Ue[N0].count+=1,Ue[N0].points.push(Wo)}}}catch(fv){it.e(fv)}finally{it.f()}return{gridHash:Ue,gridOffset:ue}}function J6(i,v){var f=U9(i),g=Q6(v,i);return{yOffset:f,xOffset:g}}function U9(i){return i/oN*(180/Math.PI)}function Q6(i,v){return v/oN*(180/Math.PI)/Math.cos(i*Math.PI/180)}function aN(i,v,f){return Object.keys(i).reduce(function(g,d,C){var M=d.split("-"),B=parseInt(M[0],10),J=parseInt(M[1],10),ue={};if(f.field&&f.method){var Ue=MC(i[d].points,f.field);ue[f.method]=_w[f.method](Ue)}return Object.assign(ue,{_id:C,coordinates:$C([-180+v.xOffset*(J+.5),-90+v.yOffset*(B+.5)]),rawData:i[d].points,count:i[d].count}),g.push(ue),g},[])}var ZM=Math.PI/3,u7=[0,ZM,2*ZM,3*ZM,4*ZM,5*ZM];function $R(i){return i[0]}function V9(i){return i[1]}function j9(){var i=0,v=0,f=1,g=1,d=$R,C=V9,M,B,J;function ue(it){var Ir={},Wo=[],Ca,eu=it.length;for(Ca=0;Ca1){var Q1=r0-v1,iy=v1+(r0w_*w_+_x*_x&&(v1=iy+(fv&1?1:-1)/2,fv=Uy)}var ux=v1+"-"+fv,f2=Ir[ux];f2?f2.push(Bd):(Wo.push(f2=Ir[ux]=[Bd]),f2.x=(v1+(fv&1)/2)*B,f2.y=fv*J)}return Wo}function Ue(it){var Ir=0,Wo=0;return u7.map(function(Ca){var eu=Math.sin(Ca)*it,Bd=-Math.cos(Ca)*it,r0=eu-Ir,N0=Bd-Wo;return Ir=eu,Wo=Bd,[r0,N0]})}return ue.hexagon=function(it){return"m"+Ue(it==null?M:+it).join("l")+"z"},ue.centers=function(){for(var it=[],Ir=Math.round(v/J),Wo=Math.round(i/B),Ca=Ir*J;Ca180||Math.abs(Ca[1][0])>180){if(N0.x>Wo){var fv=this.mapsService.lngLatToContainer([ue-360,Ue]);N0.x=fv.x}if(N0.x<0){var v1=this.mapsService.lngLatToContainer([ue+360,Ue]);N0.x=v1.x}}(N0.x>Wo||N0.x<0||N0.y>Ir||N0.y<0)&&(M.style.display="none"),M.style.left=N0.x+"px",M.style.top=N0.y+"px",console.log(N0),M.style.transition="left 0.25s cubic-bezier(0,0,0.25,1), top 0.25s cubic-bezier(0,0,0.25,1)"}}}},{key:"onMapClick",value:function(d){var C=this.markerOption.element;this.popup&&C&&this.togglePopup()}},{key:"getCurrentContainerSize",value:function(){var d=this.mapsService.getContainer();return{containerHeight:(d==null?void 0:d.scrollHeight)||0,containerWidth:(d==null?void 0:d.scrollWidth)||0,bounds:this.mapsService.getBounds()}}},{key:"updateDraggable",value:function(){var d=this.markerOption.element;d==null||d.removeEventListener("mousedown",this.onMarkerDragStart),this.mapsService.off("mousemove",this.onMarkerDragMove),document.removeEventListener("mouseup",this.onMarkerDragEnd),this.markerOption.draggable&&(d==null||d.addEventListener("mousedown",this.onMarkerDragStart))}},{key:"updatePosition",value:function(){if(this.mapsService){var d=this.markerOption,C=d.element,M=d.offsets,B=this.lngLat,J=B.lng,ue=B.lat,Ue=this.mapsService.lngLatToContainer([J,ue]);if(C){C.style.display="block",C.style.whiteSpace="nowrap";var it=this.getMarkerLayerContainerSize()||this.getCurrentContainerSize(),Ir=it.containerHeight,Wo=it.containerWidth,Ca=it.bounds;if(!Ca)return;if(Math.abs(Ca[0][0])>180||Math.abs(Ca[1][0])>180){if(Ue.x>Wo){var eu=this.mapsService.lngLatToContainer([J-360,ue]);Ue.x=eu.x}if(Ue.x<0){var Bd=this.mapsService.lngLatToContainer([J+360,ue]);Ue.x=Bd.x}}(Ue.x>Wo||Ue.x<0||Ue.y>Ir||Ue.y<0)&&(C.style.display="none"),C.style.left=Ue.x+M[0]+"px",C.style.top=Ue.y-M[1]+"px"}}}},{key:"init",value:function(){var d=this,C=this.markerOption.element,M=this.markerOption,B=M.color,J=M.anchor;if(!C){this.defaultMarker=!0,C=Fv("div"),this.markerOption.element=C;var ue=document.createElementNS("http://www.w3.org/2000/svg","svg");ue.setAttributeNS(null,"display","block"),ue.setAttributeNS(null,"height","48px"),ue.setAttributeNS(null,"width","48px"),ue.setAttributeNS(null,"viewBox","0 0 1024 1024");var Ue=document.createElementNS("http://www.w3.org/2000/svg","path");Ue.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"),Ue.setAttributeNS(null,"fill",B),ue.appendChild(Ue),C.appendChild(ue)}ey(C,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(function(it){var Ir,Wo,Ca=((Ir=d.markerOption)===null||Ir===void 0?void 0:Ir.style)&&((Wo=d.markerOption)===null||Wo===void 0?void 0:Wo.style[it]);C&&(C.style[it]=Ca)}),cu(C,J,"marker")}},{key:"registerMarkerEvent",value:function(d){d.addEventListener("click",this.onMapClick),d.addEventListener("mousemove",this.eventHandle),d.addEventListener("click",this.eventHandle),d.addEventListener("mousedown",this.eventHandle),d.addEventListener("mouseup",this.eventHandle),d.addEventListener("dblclick",this.eventHandle),d.addEventListener("contextmenu",this.eventHandle),d.addEventListener("mouseover",this.eventHandle),d.addEventListener("mouseout",this.eventHandle),d.addEventListener("touchstart",this.eventHandle),d.addEventListener("touchend",this.eventHandle)}},{key:"unRegisterMarkerEvent",value:function(){var d=this.getElement();d.removeEventListener("click",this.onMapClick),d.removeEventListener("mousemove",this.eventHandle),d.removeEventListener("click",this.eventHandle),d.removeEventListener("mousedown",this.eventHandle),d.removeEventListener("mouseup",this.eventHandle),d.removeEventListener("dblclick",this.eventHandle),d.removeEventListener("contextmenu",this.eventHandle),d.removeEventListener("mouseover",this.eventHandle),d.removeEventListener("mouseout",this.eventHandle),d.removeEventListener("touchstart",this.eventHandle),d.removeEventListener("touchend",this.eventHandle)}},{key:"polyfillEvent",value:function(d){!this.mapsService||this.mapsService.version!=="GAODE2.x"||vx()||(d.type==="touchstart"&&(this.touchStartTime=Date.now()),d.type==="touchend"&&Date.now()-this.touchStartTime<300&&this.emit("click",{target:d,data:this.markerOption.extData,lngLat:this.lngLat}))}},{key:"addDragHandler",value:function(d){return null}},{key:"onUp",value:function(d){throw new Error("Method not implemented.")}}]),f}(N2.EventEmitter);function Bo(i){var v=hu();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function hu(){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(i){return!1}}var Eg=e1.merge,Ng=function(i){(0,Wt.Z)(f,i);var v=Bo(f);function f(g){var d,C;return(0,Or.Z)(this,f),C=v.call(this),(0,ka.Z)((0,hv.Z)(C),"markers",[]),(0,ka.Z)((0,hv.Z)(C),"points",[]),(0,ka.Z)((0,hv.Z)(C),"clusterMarkers",[]),C.markerLayerOption=Eg(C.getDefault(),g),xx(["update"],(0,hv.Z)(C)),C.zoom=((d=C.markerLayerOption.clusterOption)===null||d===void 0?void 0:d.zoom)||-99,C}return(0,at.Z)(f,[{key:"getDefault",value:function(){return{cluster:!1,clusterOption:{radius:80,maxZoom:20,minZoom:0,zoom:-99,style:{},className:""}}}},{key:"addTo",value:function(d){return this.scene=d,this.mapsService=d.get(su.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 d=this.mapsService.getContainer();this.containerSize={containerWidth:(d==null?void 0:d.scrollWidth)||0,containerHeight:(d==null?void 0:d.scrollHeight)||0,bounds:this.mapsService.getBounds()}}}},{key:"getContainerSize",value:function(){return this.containerSize}},{key:"addMarker",value:function(d){var C=this.markerLayerOption.cluster;if(d.getMarkerLayerContainerSize=this.getContainerSize.bind(this),C&&(this.addPoint(d,this.markers.length),this.mapsService)){var M=this.mapsService.getZoom(),B=this.mapsService.getBounds();this.bbox=cx(B,.5),this.zoom=Math.floor(M),this.getClusterMarker(this.bbox,this.zoom)}this.markers.push(d)}},{key:"removeMarker",value:function(d){this.markers.indexOf(d);var C=this.markers.indexOf(d);C>-1&&(this.markers.splice(C,1),this.markerLayerOption.cluster&&(this.removePoint(C),this.mapsService&&this.getClusterMarker(this.bbox,this.zoom)))}},{key:"hide",value:function(){this.markers.map(function(d){d.getElement().style.opacity="0"}),this.clusterMarkers.map(function(d){d.getElement().style.opacity="0"})}},{key:"show",value:function(){this.markers.map(function(d){d.getElement().style.opacity="1"}),this.clusterMarkers.map(function(d){d.getElement().style.opacity="1"})}},{key:"getMarkers",value:function(){var d=this.markerLayerOption.cluster;return d?this.clusterMarkers:this.markers}},{key:"getOriginMarkers",value:function(){return this.markers}},{key:"addMarkers",value:function(){var d=this;this.getMarkers().forEach(function(C){C.addTo(d.scene)})}},{key:"clear",value:function(){this.markers.forEach(function(d){d.remove()}),this.clusterMarkers.forEach(function(d){d.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(d,C){var M=d.getLnglat(),B=M.lng,J=M.lat,ue={geometry:{type:"Point",coordinates:[B,J]},properties:(0,An.Z)((0,An.Z)({},d.getExtData()),{},{marker_id:C})};this.points.push(ue),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"removePoint",value:function(d){var C=this.points.findIndex(function(M){return M.properties.marker_id===d});C>-1&&this.points.splice(C,1),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"initCluster",value:function(){if(this.markerLayerOption.cluster){var d=this.markerLayerOption.clusterOption,C=d.radius,M=d.minZoom,B=M===void 0?0:M,J=d.maxZoom;this.clusterIndex=new(K6())({radius:C,minZoom:B,maxZoom:J}),this.clusterIndex.load(this.points)}}},{key:"getClusterMarker",value:function(d,C){var M=this,B=d[0].concat(d[1]),J=this.clusterIndex.getClusters(B,C);this.clusterMarkers.forEach(function(ue){ue.remove()}),this.clusterMarkers=[],J.forEach(function(ue){var Ue,it=M.markerLayerOption.clusterOption,Ir=it.field,Wo=it.method;if((Ue=ue.properties)!==null&&Ue!==void 0&&Ue.cluster_id){var Ca,eu=M.getLeaves((Ca=ue.properties)===null||Ca===void 0?void 0:Ca.cluster_id);if(ue.properties.clusterData=eu,Ir&&Wo){var Bd=eu==null?void 0:eu.map(function(_y){var Q1=(0,ka.Z)({},Ir,_y.properties[Ir]);return Q1}),r0=MC(Bd,Ir),N0=ET(Wo,r0),fv="point_"+Wo;ue.properties[fv]=N0.toFixed(2)}}var v1=M.clusterMarker(ue);M.clusterMarkers.push(v1),v1.addTo(M.scene)})}},{key:"getLeaves",value:function(d){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1/0,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return d?this.clusterIndex.getLeaves(d,C,M):null}},{key:"clusterMarker",value:function(d){var C=this.markerLayerOption.clusterOption,M=C,B=M.element,J=B===void 0?this.generateElement.bind(this):B,ue=new Ar({element:J(d)}).setLnglat({lng:d.geometry.coordinates[0],lat:d.geometry.coordinates[1]});return ue}},{key:"normalMarker",value:function(d){var C=d.properties.marker_id;return this.markers[C]}},{key:"update",value:function(){if(this.mapsService&&this.markers.length!==0){var d=this.mapsService.getZoom(),C=this.mapsService.getBounds();(!this.bbox||Math.abs(d-this.zoom)>=1||!Px(this.bbox,C))&&(this.bbox=cx(C,.5),this.zoom=Math.floor(d),this.getClusterMarker(this.bbox,this.zoom))}}},{key:"generateElement",value:function(d){var C=Fv("div","l7-marker-cluster"),M=Fv("div","",C),B=Fv("span","",M),J=this.markerLayerOption.clusterOption,ue=J.field,Ue=J.method;d.properties.point_count=d.properties.point_count||1;var it=ue&&Ue?d.properties["point_"+Ue]||d.properties[ue]:d.properties.point_count;return B.textContent=it,C}}]),f}(N2.EventEmitter),iv=l(7639);function Tv(i){var v=n1();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function n1(){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(i){return!1}}var p1=function(i){(0,Wt.Z)(f,i);var v=Tv(f);function f(g){var d;return(0,Or.Z)(this,f),d=v.call(this),f.controlCount++,d.controlOption=(0,An.Z)((0,An.Z)({},d.getDefault(g)),g||{}),d}return(0,at.Z)(f,[{key:"getOptions",value:function(){return this.controlOption}},{key:"setOptions",value:function(d){var C=this.getDefault(d);Object.entries(d).forEach(function(M){var B=(0,_g.Z)(M,2),J=B[0],ue=B[1];ue===void 0&&(d[J]=C[J])}),"position"in d&&this.setPosition(d.position),"className"in d&&this.setClassName(d.className),"style"in d&&this.setStyle(d.style),this.controlOption=(0,An.Z)((0,An.Z)({},this.controlOption),d)}},{key:"addTo",value:function(d){this.mapsService=d.get(su.IMapService),this.renderService=d.get(su.IRendererService),this.layerService=d.get(su.ILayerService),this.controlService=d.get(su.IControlService),this.configService=d.get(su.IGlobalConfigService),this.scene=d.get(su.ISceneService),this.sceneContainer=d,this.isShow=!0,this.container=this.onAdd(),ey(this.container,"l7-control");var C=this.controlOption,M=C.className,B=C.style;return M&&this.setClassName(M),B&&this.setStyle(B),this.insertContainer(),this.emit("add",this),this}},{key:"remove",value:function(){if(!this.mapsService)return this;x1(this.container),this.onRemove(),this.emit("remove",this)}},{key:"onAdd",value:function(){return Fv("div")}},{key:"onRemove",value:function(){}},{key:"show",value:function(){var d=this.container;ox(d,"l7-control--hide"),this.isShow=!0,this.emit("show",this)}},{key:"hide",value:function(){var d=this.container;ey(d,"l7-control--hide"),this.isShow=!1,this.emit("hide",this)}},{key:"getDefault",value:function(d){return{position:Yy.TOPRIGHT,name:"".concat(f.controlCount)}}},{key:"getContainer",value:function(){return this.container}},{key:"getIsShow",value:function(){return this.isShow}},{key:"_refocusOnMap",value:function(d){if(this.mapsService&&d&&d.screenX>0&&d.screenY>0){var C=this.mapsService.getContainer();C!==null&&C.focus()}}},{key:"setPosition",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yy.TOPLEFT,C=this.controlService;return C&&C.removeControl(this),this.controlOption.position=d,C&&C.addControl(this,this.sceneContainer),this}},{key:"setClassName",value:function(d){var C=this.container,M=this.controlOption.className;M&&ox(C,M),d&&ey(C,d)}},{key:"setStyle",value:function(d){var C=this.container;d?C.setAttribute("style",d):C.removeAttribute("style")}},{key:"insertContainer",value:function(){var d=this.controlOption.position,C=this.container;if(d instanceof Element)d.appendChild(C);else{var M=this.controlService.controlCorners[d];["bottomleft","bottomright","righttop","rightbottom"].includes(d)?M.insertBefore(C,M.firstChild):M.appendChild(C)}}},{key:"checkUpdateOption",value:function(d,C){return C.some(function(M){return M in d})}}]),f}(eT());(0,ka.Z)(p1,"controlCount",0);function R0(i){var v=k1();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function k1(){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(i){return!1}}var l_=function(i){(0,Wt.Z)(f,i);var v=R0(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M0&&arguments[0]!==void 0?arguments[0]:"";return Fv("button","l7-button-control ".concat(d))}},{key:"onAdd",value:function(){this.button=this.createButton(),this.isDisable=!1;var d=this.controlOption,C=d.title,M=d.btnText,B=d.btnIcon;return this.setBtnTitle(C),this.setBtnText(M),this.setBtnIcon(B),this.button}},{key:"onRemove",value:function(){this.button=this.buttonIcon=this.buttonText=void 0,this.isDisable=!1}},{key:"setOptions",value:function(d){var C=d.title,M=d.btnText,B=d.btnIcon;this.checkUpdateOption(d,["title"])&&this.setBtnTitle(C),this.checkUpdateOption(d,["btnIcon"])&&this.setBtnIcon(B),this.checkUpdateOption(d,["btnText"])&&this.setBtnText(M),OS((0,si.Z)(f.prototype),"setOptions",this).call(this,d)}},{key:"setBtnTitle",value:function(d){var C;(C=this.button)===null||C===void 0||C.setAttribute("title",d!=null?d:"")}},{key:"setBtnIcon",value:function(d){if(this.buttonIcon&&x1(this.buttonIcon),d){var C,M=(C=this.button)===null||C===void 0?void 0:C.firstChild;if(M){var B;(B=this.button)===null||B===void 0||B.insertBefore(d,M)}else{var J;(J=this.button)===null||J===void 0||J.appendChild(d)}this.buttonIcon=d}}},{key:"setBtnText",value:function(d){if(this.button)if(ox(this.button,"l7-button-control--row"),ox(this.button,"l7-button-control--column"),d){var C=this.buttonText;if(!C){var M;C=Fv("div","l7-button-control__text"),(M=this.button)===null||M===void 0||M.appendChild(C),this.buttonText=C}C.innerText=d,ey(this.button,this.controlOption.vertical?"l7-button-control--column":"l7-button-control--row")}else!d&&this.buttonText&&(x1(this.buttonText),this.buttonText=void 0)}}]),f}(p1);function C_(i){var v=Gy();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function Gy(){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(i){return!1}}var Qx=function(i){(0,Wt.Z)(f,i);var v=C_(f);function f(g,d){var C;return(0,Or.Z)(this,f),C=v.call(this),(0,ka.Z)((0,hv.Z)(C),"isShow",!1),(0,ka.Z)((0,hv.Z)(C),"timeout",null),(0,ka.Z)((0,hv.Z)(C),"show",function(){return C.isShow||!C.contentDOM.innerHTML||(C.resetPopperPosition(),ox(C.popperDOM,"l7-popper-hide"),C.isShow=!0,C.option.unique&&f.conflictPopperList.forEach(function(M){M!==(0,hv.Z)(C)&&M.isShow&&M.hide()}),C.emit("show"),window.addEventListener("pointerdown",C.onPopperUnClick)),(0,hv.Z)(C)}),(0,ka.Z)((0,hv.Z)(C),"hide",function(){return C.isShow&&(ey(C.popperDOM,"l7-popper-hide"),C.isShow=!1,C.emit("hide"),window.removeEventListener("pointerdown",C.onPopperUnClick)),(0,hv.Z)(C)}),(0,ka.Z)((0,hv.Z)(C),"setHideTimeout",function(){C.timeout||(C.timeout=window.setTimeout(function(){C.isShow&&(C.hide(),C.timeout=null)},300))}),(0,ka.Z)((0,hv.Z)(C),"clearHideTimeout",function(){C.timeout&&(window.clearTimeout(C.timeout),C.timeout=null)}),(0,ka.Z)((0,hv.Z)(C),"onBtnClick",function(){C.isShow?C.hide():C.show()}),(0,ka.Z)((0,hv.Z)(C),"onPopperUnClick",function(M){sy(M.target,[".l7-button-control",".l7-popper-content"])||C.hide()}),(0,ka.Z)((0,hv.Z)(C),"onBtnMouseLeave",function(){C.setHideTimeout()}),(0,ka.Z)((0,hv.Z)(C),"onBtnMouseMove",function(){C.clearHideTimeout(),!C.isShow&&C.show()}),C.button=g,C.option=d,C.init(),d.unique&&f.conflictPopperList.push((0,hv.Z)(C)),C}return(0,at.Z)(f,[{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(d){typeof d=="string"?this.contentDOM.innerHTML=d:d instanceof HTMLElement&&(zy(this.contentDOM),this.contentDOM.appendChild(d)),this.content=d}},{key:"init",value:function(){var d=this.option.trigger;this.popperDOM=this.createPopper(),d==="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),x1(this.popperDOM)}},{key:"resetPopperPosition",value:function(){var d={},C=this.option,M=C.container,B=C.offset,J=B===void 0?[0,0]:B,ue=C.placement,Ue=(0,_g.Z)(J,2),it=Ue[0],Ir=Ue[1],Wo=this.button.getBoundingClientRect(),Ca=M.getBoundingClientRect(),eu=V1(Wo,Ca),Bd=eu.left,r0=eu.right,N0=eu.top,fv=eu.bottom,v1=!1,_y=!1;/^(left|right)/.test(ue)?(ue.includes("left")?d.right="".concat(Wo.width+r0,"px"):ue.includes("right")&&(d.left="".concat(Wo.width+Bd,"px")),ue.includes("start")?d.top="".concat(N0,"px"):ue.includes("end")?d.bottom="".concat(fv,"px"):(d.top="".concat(N0+Wo.height/2,"px"),_y=!0,d.transform="translate(".concat(it,"px, calc(").concat(Ir,"px - 50%))"))):/^(top|bottom)/.test(ue)&&(ue.includes("top")?d.bottom="".concat(Wo.height+fv,"px"):ue.includes("bottom")&&(d.top="".concat(Wo.height+N0,"px")),ue.includes("start")?d.left="".concat(Bd,"px"):ue.includes("end")?d.right="".concat(r0,"px"):(d.left="".concat(Bd+Wo.width/2,"px"),v1=!0,d.transform="translate(calc(".concat(it,"px - 50%), ").concat(Ir,"px)"))),d.transform="translate(calc(".concat(it,"px - ").concat(v1?"50%":"0%","), calc(").concat(Ir,"px - ").concat(_y?"50%":"0%",")");var Q1=ue.split("-");Q1.length&&ey(this.popperDOM,Q1.map(function(iy){return"l7-popper-".concat(iy)}).join(" ")),Hg(this.popperDOM,R1(d))}},{key:"createPopper",value:function(){var d=this.option,C=d.container,M=d.className,B=M===void 0?"":M,J=d.content,ue=Fv("div","l7-popper l7-popper-hide ".concat(B)),Ue=Fv("div","l7-popper-content"),it=Fv("div","l7-popper-arrow");return ue.appendChild(Ue),ue.appendChild(it),C.appendChild(ue),this.popperDOM=ue,this.contentDOM=Ue,J&&this.setContent(J),ue}}]),f}(N2.EventEmitter);(0,ka.Z)(Qx,"conflictPopperList",[]);function F2(i){var v=Hx();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}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(i){return!1}}var N_={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"},m2=function(i){(0,Wt.Z)(f,i);var v=F2(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getPopper",value:function(){return this.popper}},{key:"hide",value:function(){this.popper.hide(),OS((0,si.Z)(f.prototype),"hide",this).call(this)}},{key:"getDefault",value:function(d){var C,M=OS((0,si.Z)(f.prototype),"getDefault",this).call(this,d),B=(C=d==null?void 0:d.position)!==null&&C!==void 0?C:M.position;return(0,An.Z)((0,An.Z)({},OS((0,si.Z)(f.prototype),"getDefault",this).call(this,d)),{},{popperPlacement:B instanceof Element?"bottom":N_[B],popperTrigger:"click"})}},{key:"onAdd",value:function(){var d=OS((0,si.Z)(f.prototype),"onAdd",this).call(this);return this.initPopper(),d}},{key:"onRemove",value:function(){this.popper.destroy()}},{key:"initPopper",value:function(){var d=this,C=this.controlOption,M=C.popperClassName,B=C.popperPlacement,J=C.popperTrigger,ue=this.mapsService.getMapContainer();return this.popper=new Qx(this.button,{className:M,placement:B,trigger:J,container:ue,unique:!0}),this.popper.on("show",function(){d.emit("popperShow",d)}).on("hide",function(){d.emit("popperHide",d)}),this.popper}},{key:"setOptions",value:function(d){if(OS((0,si.Z)(f.prototype),"setOptions",this).call(this,d),this.checkUpdateOption(d,["popperPlacement","popperTrigger","popperClassName"])){var C=this.popper.getContent();this.popper.destroy(),this.initPopper(),this.popper.setContent(C)}}}]),f}(l_);function qx(i){var v=uw();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}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(i){return!1}}var y2=function(i){return i.ActiveOptionClassName="l7-select-control-item-active",i.OptionValueAttrKey="data-option-value",i.OptionIndexAttrKey="data-option-index",i}(y2||{}),d2=function(i){(0,Wt.Z)(f,i);var v=qx(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M-1?g.selectValue.splice(J,1):g.selectValue=[].concat((0,Gd.Z)(g.selectValue),[B.value])}else g.selectValue=[B.value];g.setSelectValue(g.selectValue)}),g}return(0,at.Z)(f,[{key:"setOptions",value:function(d){OS((0,si.Z)(f.prototype),"setOptions",this).call(this,d);var C=d.options;C&&this.popper.setContent(this.getPopperContent(C))}},{key:"onAdd",value:function(){var d=OS((0,si.Z)(f.prototype),"onAdd",this).call(this),C=this.controlOption.defaultValue;return C&&(this.selectValue=this.transSelectValue(C)),this.popper.setContent(this.getPopperContent(this.controlOption.options)),d}},{key:"getSelectValue",value:function(){return this.getIsMultiple()?this.selectValue:this.selectValue[0]}},{key:"setSelectValue",value:function(d){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,M=this.transSelectValue(d);this.optionDOMList.forEach(function(B){var J=B.getAttribute(y2.OptionValueAttrKey),ue=B.querySelector("input[type=checkbox]"),Ue=B.querySelector("input[type=radio]"),it=M.includes(J),Ir=function(Ca,eu){z2(B,y2.ActiveOptionClassName,eu),Ca&&I1(Ca,eu)};Ir(ue,it),Ir(Ue,it)}),this.selectValue=M,C&&this.emit("selectChange",this.getIsMultiple()?M:M[0])}},{key:"getIsMultiple",value:function(){return!1}},{key:"getPopperContent",value:function(d){var C=this,M=this.isImageOptions(),B=Fv("div",M?"l7-select-control--image":"l7-select-control--normal");this.getIsMultiple()&&ey(B,"l7-select-control--multiple");var J=d.map(function(ue,Ue){var it=M?C.createImageOption(ue):C.createNormalOption(ue);return it.setAttribute(y2.OptionValueAttrKey,ue.value),it.setAttribute(y2.OptionIndexAttrKey,window.String(Ue)),it.addEventListener("click",C.onItemClick.bind(C,ue)),it});return B.append.apply(B,(0,Gd.Z)(J)),this.optionDOMList=J,B}},{key:"createImageOption",value:function(d){var C=this.selectValue.includes(d.value),M=Fv("div","l7-select-control-item ".concat(C?y2.ActiveOptionClassName:"")),B=Fv("img");B.setAttribute("src",d.img),U1(B),M.appendChild(B);var J=Fv("div","l7-select-control-item-row");this.getIsMultiple()&&M.appendChild(this.createCheckbox(C));var ue=Fv("span");return ue.innerText=d.text,J.appendChild(ue),M.appendChild(J),M}},{key:"createCheckbox",value:function(d){var C=Fv("input");return C.setAttribute("type","checkbox"),d&&I1(C,!0),C}},{key:"createRadio",value:function(d){var C=Fv("input");return C.setAttribute("type","radio"),d&&I1(C,!0),C}},{key:"isImageOptions",value:function(){return!!this.controlOption.options.find(function(d){return d.img})}},{key:"transSelectValue",value:function(d){return Array.isArray(d)?d:[d]}}]),f}(m2),fS=function(v){var f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.classList.add("l7-iconfont"),f.setAttribute("aria-hidden","true");var g=document.createElementNS("http://www.w3.org/2000/svg","use");return g.setAttributeNS("http://www.w3.org/1999/xlink","href","#".concat(v)),f.appendChild(g),f};function RE(i){var v=RS();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function RS(){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(i){return!1}}var oT=function(i){(0,Wt.Z)(f,i);var v=RE(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M=i.length?{done:!0}:{done:!1,value:i[g++]}},e:function(ue){throw ue},f:d}}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 C=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return C=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!C&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function l3(i,v){if(i){if(typeof i=="string")return nE(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return nE(i,v)}}function nE(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,g=new Array(v);f0&&arguments[0]!==void 0?arguments[0]:document.documentElement,f=arguments.length>1?arguments[1]:void 0;return new Promise(function(g,d){var C=function B(){_2.off("change",B),g()};_2.on("change",C);var M=v[Yw.requestFullscreen](f);M instanceof Promise&&M.then(C).catch(d)})},exit:function(){return new Promise(function(v,f){if(!_2.isFullscreen){v();return}var g=function C(){_2.off("change",C),v()};_2.on("change",g);var d=document[Yw.exitFullscreen]();d instanceof Promise&&d.then(g).catch(f)})},toggle:function(v,f){return _2.isFullscreen?_2.exit():_2.request(v,f)},onchange:function(v){_2.on("change",v)},onerror:function(v){_2.on("error",v)},on:function(v,f){var g=tx[v];g&&document.addEventListener(g,f,!1)},off:function(v,f){var g=tx[v];g&&document.removeEventListener(g,f,!1)},raw:Yw};Object.defineProperties(_2,{isFullscreen:{get:function(){return!!document[Yw.fullscreenElement]}},element:{enumerable:!0,get:function(){var v;return(v=document[Yw.fullscreenElement])!==null&&v!==void 0?v:void 0}},isEnabled:{enumerable:!0,get:function(){return!!document[Yw.fullscreenEnabled]}}}),Yw||(_2={isEnabled:!1});var gx=_2;function Ex(i){var v=Yn();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function Yn(){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(i){return!1}}var Go=function(i){(0,Wt.Z)(f,i);var v=Ex(f);function f(g){var d;return(0,Or.Z)(this,f),d=v.call(this,g),(0,ka.Z)((0,hv.Z)(d),"isFullscreen",!1),(0,ka.Z)((0,hv.Z)(d),"toggleFullscreen",(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(!gx.isEnabled){B.next=3;break}return B.next=3,gx.toggle(d.mapContainer);case 3:case"end":return B.stop()}},C)}))),(0,ka.Z)((0,hv.Z)(d),"onClick",function(){d.toggleFullscreen()}),(0,ka.Z)((0,hv.Z)(d),"onFullscreenChange",function(){d.isFullscreen=!!document.fullscreenElement;var C=d.controlOption,M=C.btnText,B=C.btnIcon,J=C.title,ue=C.exitBtnText,Ue=C.exitBtnIcon,it=C.exitTitle;d.isFullscreen?(d.setBtnTitle(it),d.setBtnText(ue),d.setBtnIcon(Ue)):(d.setBtnTitle(J),d.setBtnText(M),d.setBtnIcon(B)),d.emit("fullscreenChange",d.isFullscreen)}),gx.isEnabled||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u5BF9\u5730\u56FE\u5168\u5C4F\u5316"),d}return(0,at.Z)(f,[{key:"setOptions",value:function(d){var C=d.exitBtnText,M=d.exitBtnIcon,B=d.exitTitle;this.isFullscreen&&(this.checkUpdateOption(d,["exitBtnIcon"])&&this.setBtnIcon(M),this.checkUpdateOption(d,["exitBtnText"])&&this.setBtnText(C),this.checkUpdateOption(d,["exitTitle"])&&this.setBtnTitle(B)),OS((0,si.Z)(f.prototype),"setOptions",this).call(this,d)}},{key:"onAdd",value:function(){var d=OS((0,si.Z)(f.prototype),"onAdd",this).call(this);return d.addEventListener("click",this.onClick),this.mapContainer=L_(this.scene.getSceneConfig().id),this.mapContainer.addEventListener("fullscreenchange",this.onFullscreenChange),d}},{key:"onRemove",value:function(){OS((0,si.Z)(f.prototype),"onRemove",this).call(this),this.mapContainer.removeEventListener("fullscreenchange",this.onFullscreenChange)}},{key:"getDefault",value:function(d){return(0,An.Z)((0,An.Z)({},OS((0,si.Z)(f.prototype),"getDefault",this).call(this,d)),{},{title:"\u5168\u5C4F",btnIcon:fS("l7-icon-fullscreen"),exitTitle:"\u9000\u51FA\u5168\u5C4F",exitBtnIcon:fS("l7-icon-exit-fullscreen")})}}]),f}(l_);function Rd(i){var v=X0();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function X0(){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(i){return!1}}var b1=function(i){(0,Wt.Z)(f,i);var v=Rd(f);function f(g){var d;return(0,Or.Z)(this,f),d=v.call(this,g),(0,ka.Z)((0,hv.Z)(d),"getGeoLocation",function(){return new Promise(function(C,M){window.navigator.geolocation.getCurrentPosition(function(B){var J=B.coords,ue=J!=null?J:{},Ue=ue.longitude,it=ue.latitude;!isNaN(Ue)&&!isNaN(it)?C([Ue,it]):M()},function(B){M(B)})})}),(0,ka.Z)((0,hv.Z)(d),"onClick",(0,y_.Z)(Dv().mark(function C(){var M,B,J;return Dv().wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(window.navigator.geolocation){Ue.next=2;break}return Ue.abrupt("return");case 2:return M=d.controlOption.transform,Ue.next=5,d.getGeoLocation();case 5:if(B=Ue.sent,J=d.mapsService.getZoom(),Ue.t0=d.mapsService,Ue.t1=J>15?J:15,!M){Ue.next=15;break}return Ue.next=12,M(B);case 12:Ue.t2=Ue.sent,Ue.next=16;break;case 15:Ue.t2=B;case 16:Ue.t3=Ue.t2,Ue.t0.setZoomAndCenter.call(Ue.t0,Ue.t1,Ue.t3);case 18:case"end":return Ue.stop()}},C)}))),window.navigator.geolocation||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u83B7\u53D6\u5730\u7406\u5B9A\u4F4D"),d}return(0,at.Z)(f,[{key:"getDefault",value:function(d){return(0,An.Z)((0,An.Z)({},OS((0,si.Z)(f.prototype),"getDefault",this).call(this,d)),{},{title:"\u5B9A\u4F4D",btnIcon:fS("l7-icon-reposition")})}},{key:"onAdd",value:function(){var d=OS((0,si.Z)(f.prototype),"onAdd",this).call(this);return d.addEventListener("click",this.onClick),d}}]),f}(l_);function A_(i){var v=B1();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function B1(){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(i){return!1}}function Y2(i){return Object.keys(i!=null?i:{}).every(function(v){return["layer","name","img"].includes(v)})}var ow=function(i){(0,Wt.Z)(f,i);var v=A_(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M=10?10:M>=5?5:M>=3?3:M>=2?2:1,C*M}},{key:"updateMetric",value:function(d){var C=this.getRoundNum(d),M=C<1e3?C+" m":C/1e3+" km";this.updateScale(this.mScale,M,C/d)}},{key:"updateImperial",value:function(d){var C=d*3.2808399,M,B,J;C>5280?(M=C/5280,B=this.getRoundNum(M),this.updateScale(this.iScale,B+" mi",B/M)):(J=this.getRoundNum(C),this.updateScale(this.iScale,J+" ft",J/C))}}]),f}(p1),zI,RA=(zI={},(0,ka.Z)(zI,m1.additive,{enable:!0,func:{srcRGB:K0.ONE,dstRGB:K0.ONE,srcAlpha:1,dstAlpha:1}}),(0,ka.Z)(zI,m1.none,{enable:!1}),(0,ka.Z)(zI,m1.normal,{enable:!0,func:{srcRGB:K0.SRC_ALPHA,dstRGB:K0.ONE_MINUS_SRC_ALPHA,srcAlpha:1,dstAlpha:1}}),(0,ka.Z)(zI,m1.subtractive,{enable:!0,func:{srcRGB:K0.ONE,dstRGB:K0.ONE,srcAlpha:K0.ZERO,dstAlpha:K0.ONE_MINUS_SRC_COLOR},equation:{rgb:K0.FUNC_SUBTRACT,alpha:K0.FUNC_SUBTRACT}}),(0,ka.Z)(zI,m1.max,{enable:!0,func:{srcRGB:K0.ONE,dstRGB:K0.ONE},equation:{rgb:K0.MAX_EXT}}),(0,ka.Z)(zI,m1.min,{enable:!0,func:{srcRGB:K0.ONE,dstRGB:K0.ONE},equation:{rgb:K0.MIN_EXT}}),zI);function _I(i){return i.map(function(v){return typeof v=="string"&&(v=[v,{}]),v})}function JP(i,v,f,g){var d=i.multiPassRenderer,C=i.getLayerConfig(),M=C.enableTAA;return M?d.add(g("taa")):d.add(g("render")),_I(v).forEach(function(B){var J=(0,_g.Z)(B,2),ue=J[0],Ue=J[1];d.add(f(ue),Ue)}),d.add(f("copy")),d}var II=function(){function i(v){(0,Or.Z)(this,i),this.layer=v}return(0,at.Z)(i,[{key:"pickRender",value:function(f){var g=this.layer.getContainer(),d=g.get(su.ILayerService),C=this.layer;if(C.tileLayer)return C.tileLayer.pickRender(f);C.hooks.beforePickingEncode.call(),d.renderTileLayerMask(C),C.renderModels({ispick:!0}),C.hooks.afterPickingEncode.call()}},{key:"pick",value:function(){var v=(0,y_.Z)(Dv().mark(function g(d,C){var M,B;return Dv().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(M=this.layer.getContainer(),B=M.get(su.IPickingService),d.type!=="RasterLayer"){ue.next=4;break}return ue.abrupt("return",this.pickRasterLayer(d,C));case 4:return this.pickRender(C),ue.abrupt("return",B.pickFromPickingFBO(d,C));case 6:case"end":return ue.stop()}},g,this)}));function f(g,d){return v.apply(this,arguments)}return f}()},{key:"pickRasterLayer",value:function(f,g,d){var C=this.layer.getContainer(),M=C.get(su.IPickingService),B=C.get(su.IMapService),J=this.layer.getSource().extent,ue=GC(g.lngLat,J),Ue={x:g.x,y:g.y,type:g.type,lngLat:g.lngLat,target:g,rasterValue:null},it=d||f;if(ue){var Ir=this.readRasterValue(f,J,B,g.x,g.y);return Ue.rasterValue=Ir,M.triggerHoverOnLayer(it,Ue),!0}else return Ue.type=g.type==="mousemove"?"mouseout":"un"+g.type,M.triggerHoverOnLayer(it,(0,An.Z)((0,An.Z)({},Ue),{},{type:"unpick"})),M.triggerHoverOnLayer(it,Ue),!1}},{key:"readRasterValue",value:function(f,g,d,C,M){var B=f.getSource().data.dataArray[0],J=(0,_g.Z)(g,4),ue=J[0],Ue=ue===void 0?0:ue,it=J[1],Ir=it===void 0?0:it,Wo=J[2],Ca=Wo===void 0?10:Wo,eu=J[3],Bd=eu===void 0?-10:eu,r0=d.lngLatToContainer([Ue,Ir]),N0=d.lngLatToContainer([Ca,Bd]),fv=N0.x-r0.x,v1=r0.y-N0.y,_y=[(C-r0.x)/fv,(M-N0.y)/v1],Q1=B.width||1,iy=B.height||1,Uy=Math.floor(_y[0]*Q1),w_=Math.floor(_y[1]*iy),_x=Math.max(0,w_-1)*Q1+Uy,ux=B.data[_x];return ux}},{key:"selectFeature",value:function(f){var g=this.layer,d=(0,_g.Z)(f,3),C=d[0],M=d[1],B=d[2];g.hooks.beforeSelect.call([C,M,B])}},{key:"highlightPickedFeature",value:function(f){var g=(0,_g.Z)(f,3),d=g[0],C=g[1],M=g[2];this.layer.hooks.beforeHighlight.call([d,C,M])}},{key:"getFeatureById",value:function(f){return this.layer.getSource().getFeatureById(f)}}]),i}(),pP=function(){function i(v){(0,Or.Z)(this,i),this.layer=v;var f=this.layer.getContainer();this.rendererService=f.get(su.IRendererService)}return(0,at.Z)(i,[{key:"getColorTexture",value:function(f,g){var d=this.getTextureKey(f,g);return this.key===d?this.colorTexture:(this.createColorTexture(f,g),this.key=d,this.colorTexture)}},{key:"createColorTexture",value:function(f,g){var d=this.rendererService.createTexture2D,C=this.getColorRampBar(f,g),M=d({data:new Uint8Array(C.data),width:C.width,height:C.height,flipY:!1,unorm:!0});return this.colorTexture=M,M}},{key:"setColorTexture",value:function(f,g,d){this.key=this.getTextureKey(g,d),this.colorTexture=f}},{key:"destroy",value:function(){var f;(f=this.colorTexture)===null||f===void 0||f.destroy()}},{key:"getColorRampBar",value:function(f,g){switch(f.type){case"cat":return L1(f);case"quantize":return Pg(f);case"custom":return A1(f,g);case"linear":return f0(f,g);default:return m0(f)}}},{key:"getTextureKey",value:function(f,g){var d;return"".concat(f.colors.join("_"),"_").concat(f==null||(d=f.positions)===null||d===void 0?void 0:d.join("_"),"_").concat(f.type,"_").concat(g==null?void 0:g.join("_"))}}]),i}(),e8=["passes"],EU=["moduleName","vertexShader","fragmentShader","inject","triangulation","styleOption","pickingEnabled"],Z9,c7,H9;function TU(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=oZ(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var g=0,d=function(){};return{s:d,n:function(){return g>=i.length?{done:!0}:{done:!1,value:i[g++]}},e:function(ue){throw ue},f:d}}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 C=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return C=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!C&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function oZ(i,v){if(i){if(typeof i=="string")return G9(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return G9(i,v)}}function G9(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,g=new Array(v);f0&&arguments[0]!==void 0?arguments[0]:{};return(0,Or.Z)(this,f),g=v.call(this),(0,ka.Z)((0,hv.Z)(g),"id","".concat(lZ++)),(0,ka.Z)((0,hv.Z)(g),"name","".concat(lZ)),(0,ka.Z)((0,hv.Z)(g),"visible",!0),(0,ka.Z)((0,hv.Z)(g),"zIndex",0),(0,ka.Z)((0,hv.Z)(g),"inited",!1),(0,ka.Z)((0,hv.Z)(g),"layerModelNeedUpdate",!1),(0,ka.Z)((0,hv.Z)(g),"pickedFeatureID",null),(0,ka.Z)((0,hv.Z)(g),"selectedFeatureID",null),(0,ka.Z)((0,hv.Z)(g),"styleNeedUpdate",!1),(0,ka.Z)((0,hv.Z)(g),"forceRender",!1),(0,ka.Z)((0,hv.Z)(g),"clusterZoom",0),(0,ka.Z)((0,hv.Z)(g),"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),(0,ka.Z)((0,hv.Z)(g),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),(0,ka.Z)((0,hv.Z)(g),"hooks",{init:new D4,afterInit:new ER,beforeRender:new ER,beforeRenderData:new Ze,afterRender:new aP,beforePickingEncode:new aP,afterPickingEncode:new aP,beforeHighlight:new aP(["pickedColor"]),afterHighlight:new aP,beforeSelect:new aP(["pickedColor"]),afterSelect:new aP,beforeDestroy:new aP,afterDestroy:new aP}),(0,ka.Z)((0,hv.Z)(g),"models",[]),(0,ka.Z)((0,hv.Z)(g),"startInit",!1),(0,ka.Z)((0,hv.Z)(g),"layerChildren",[]),(0,ka.Z)((0,hv.Z)(g),"masks",[]),ne((0,hv.Z)(g),"configService",H9,(0,hv.Z)(g)),(0,ka.Z)((0,hv.Z)(g),"animateOptions",{enable:!1}),(0,ka.Z)((0,hv.Z)(g),"currentPickId",null),(0,ka.Z)((0,hv.Z)(g),"encodeStyleAttribute",{}),(0,ka.Z)((0,hv.Z)(g),"enableShaderEncodeStyles",[]),(0,ka.Z)((0,hv.Z)(g),"enableDataEncodeStyles",[]),(0,ka.Z)((0,hv.Z)(g),"pendingStyleAttributes",[]),(0,ka.Z)((0,hv.Z)(g),"scaleOptions",{}),(0,ka.Z)((0,hv.Z)(g),"animateStatus",!1),(0,ka.Z)((0,hv.Z)(g),"isDestroyed",!1),(0,ka.Z)((0,hv.Z)(g),"uniformBuffers",[]),(0,ka.Z)((0,hv.Z)(g),"encodeDataLength",0),(0,ka.Z)((0,hv.Z)(g),"sourceEvent",function(){g.dataState.dataSourceNeedUpdate=!0;var C=g.getLayerConfig();C&&C.autoFit&&g.fitBounds(C.fitBoundsOptions);var M=g.layerSource.getSourceCfg().autoRender;M&&setTimeout(function(){g.reRender()},10)}),g.name=d.name||g.id,g.zIndex=d.zIndex||0,g.rawConfig=d,g}return(0,at.Z)(f,[{key:"addMask",value:function(d){this.masks.push(d),this.updateLayerConfig({maskLayers:this.masks}),this.enableMask()}},{key:"removeMask",value:function(d){var C=this.masks.indexOf(d);C>-1&&this.masks.splice(C,1),this.updateLayerConfig({maskLayers:this.masks})}},{key:"disableMask",value:function(){this.updateLayerConfig({enableMask:!1})}},{key:"enableMask",value:function(){this.updateLayerConfig({enableMask:!0})}},{key:"addMaskLayer",value:function(d){this.masks.push(d)}},{key:"removeMaskLayer",value:function(d){var C=this.masks.indexOf(d);C>-1&&this.masks.splice(C,1),d.destroy()}},{key:"getAttribute",value:function(d){return this.styleAttributeService.getLayerStyleAttribute(d)}},{key:"getLayerConfig",value:function(){return this.configService.getLayerConfig(this.id)}},{key:"updateLayerConfig",value:function(d){var C=this;if(Object.keys(d).map(function(B){B in C.rawConfig&&(C.rawConfig[B]=d[B])}),!this.startInit)this.needUpdateConfig=(0,An.Z)((0,An.Z)({},this.needUpdateConfig),d);else{var M=this.container.get(su.SceneID);this.configService.setLayerConfig(M,this.id,(0,An.Z)((0,An.Z)((0,An.Z)({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),d)),this.needUpdateConfig={}}}},{key:"setContainer",value:function(d,C){this.container=d,this.sceneContainer=C}},{key:"getContainer",value:function(){return this.container}},{key:"addPlugin",value:function(d){return this.plugins.push(d),this}},{key:"init",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M=this,B,J,ue,Ue,it,Ir,Wo;return Dv().wrap(function(eu){for(;;)switch(eu.prev=eu.next){case 0:B=this.container.get(su.SceneID),this.startInit=!0,this.configService.setLayerConfig(B,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(su.IIconService),this.fontService=this.container.get(su.IFontService),this.rendererService=this.container.get(su.IRendererService),this.layerService=this.container.get(su.ILayerService),this.debugService=this.container.get(su.IDebugService),this.interactionService=this.container.get(su.IInteractionService),this.pickingService=this.container.get(su.IPickingService),this.mapService=this.container.get(su.IMapService),J=this.getLayerConfig(),ue=J.enableMultiPassRenderer,Ue=J.passes,ue&&Ue!==null&&Ue!==void 0&&Ue.length&&Ue.length>0&&this.mapService.on("mapAfterFrameChange",function(){M.renderLayers()}),this.cameraService=this.container.get(su.ICameraService),this.coordinateService=this.container.get(su.ICoordinateSystemService),this.shaderModuleService=this.container.get(su.IShaderModuleService),this.postProcessingPassFactory=this.container.get(su.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(su.IFactoryNormalPass),this.styleAttributeService=this.container.get(su.IStyleAttributeService),ue&&(this.multiPassRenderer=this.container.get(su.IMultiPassRenderer),this.multiPassRenderer.setLayer(this)),this.pendingStyleAttributes.forEach(function(Bd){var r0=Bd.attributeName,N0=Bd.attributeField,fv=Bd.attributeValues,v1=Bd.updateOptions;M.styleAttributeService.updateStyleAttribute(r0,{scale:(0,An.Z)({field:N0},M.splitValuesAndCallbackInAttribute(fv,N0?void 0:M.getLayerConfig()[r0]))},v1)}),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(su.ILayerPlugin),it=TU(this.plugins);try{for(it.s();!(Ir=it.n()).done;)Wo=Ir.value,Wo.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}catch(Bd){it.e(Bd)}finally{it.f()}return this.layerPickService=new II(this),this.textureService=new pP(this),this.log(XT.LayerInitStart),eu.next=31,this.hooks.init.promise();case 31:this.log(XT.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 eu.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"log",value:function(d){var C,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"init";if(!(this.tileLayer||this.isTileLayer)){var B="".concat(this.id,".").concat(M,".").concat(d),J={id:this.id,type:this.type};(C=this.debugService)===null||C===void 0||C.log(B,J)}}},{key:"updateModelData",value:function(d){d.attributes&&d.elements?this.models.map(function(C){C.updateAttributesAndElements(d.attributes,d.elements)}):console.warn("data error")}},{key:"setLayerPickService",value:function(d){this.layerPickService=d}},{key:"prepareBuildModel",value:function(){Object.keys(this.needUpdateConfig||{}).length!==0&&this.updateLayerConfig({});var d=this.getLayerConfig(),C=d.animateOption;C!=null&&C.enable&&(this.layerService.startAnimate(),this.animateStatus=!0)}},{key:"color",value:function(d,C,M){return this.updateStyleAttribute("color",d,C,M),this}},{key:"texture",value:function(d,C,M){return this.updateStyleAttribute("texture",d,C,M),this}},{key:"rotate",value:function(d,C,M){return this.updateStyleAttribute("rotate",d,C,M),this}},{key:"size",value:function(d,C,M){return this.updateStyleAttribute("size",d,C,M),this}},{key:"filter",value:function(d,C,M){var B=this.updateStyleAttribute("filter",d,C,M);return this.dataState.dataSourceNeedUpdate=B&&this.inited,this}},{key:"shape",value:function(d,C,M){this.shapeOption={field:d,values:C};var B=this.updateStyleAttribute("shape",d,C,M);return this.dataState.dataSourceNeedUpdate=B&&this.inited,this}},{key:"label",value:function(d,C,M){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:d,attributeValues:C,updateOptions:M}),this}},{key:"animate",value:function(d){var C={};return $I(d)?(C.enable=!0,C=(0,An.Z)((0,An.Z)({},C),d)):C.enable=d,this.updateLayerConfig({animateOption:C}),this}},{key:"source",value:function(d,C){return(d==null?void 0:d.type)==="source"?(this.setSource(d),this):(this.sourceOption={data:d,options:C},this.clusterZoom=0,this)}},{key:"setData",value:function(d,C){var M=this;return this.inited?(this.log(XT.SourceInitStart,OC.UPDATE),this.layerSource.setData(d,C),this.log(XT.SourceInitEnd,OC.UPDATE)):this.on("inited",function(){M.log(XT.SourceInitStart,OC.UPDATE);var B=M.getSource();B?M.layerSource.setData(d,C):M.source(new Se(d,C)),M.layerSource.once("update",function(){M.log(XT.SourceInitEnd,OC.UPDATE)})}),this}},{key:"style",value:function(d){var C=this,M=d.passes,B=(0,q3.Z)(d,e8);M&&_I(M).forEach(function(ue){var Ue=C.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(ue[0]);Ue&&Ue.updateOptions(ue[1])}),B.borderColor&&(B.stroke=B.borderColor),B.borderWidth&&(B.strokeWidth=B.borderWidth);var J=B;return Object.keys(B).forEach(function(ue){var Ue=B[ue];Array.isArray(Ue)&&Ue.length===2&&!K9(Ue[0])&&!K9(Ue[1])&&(J[ue]={field:Ue[0],value:Ue[1]})}),this.encodeStyle(J),this.updateLayerConfig(J),this}},{key:"encodeStyle",value:function(d){var C=this;Object.keys(d).forEach(function(M){[].concat((0,Gd.Z)(C.enableShaderEncodeStyles),(0,Gd.Z)(C.enableDataEncodeStyles)).includes(M)&&sZ(d[M])&&(d[M].field||d[M].value)&&!W5(C.encodeStyleAttribute[M],d[M])?(C.encodeStyleAttribute[M]=d[M],C.updateStyleAttribute(M,d[M].field,d[M].value),C.inited&&(C.dataState.dataMappingNeedUpdate=!0)):C.encodeStyleAttribute[M]&&(delete C.encodeStyleAttribute[M],C.dataState.dataSourceNeedUpdate=!0)})}},{key:"scale",value:function(d,C){var M=(0,An.Z)({},this.scaleOptions);if($I(d)?this.scaleOptions=(0,An.Z)((0,An.Z)({},this.scaleOptions),d):this.scaleOptions[d]=C,this.styleAttributeService&&!W5(M,this.scaleOptions)){var B=$I(d)?d:(0,ka.Z)({},d,C);this.styleAttributeService.updateScaleAttribute(B)}return this}},{key:"renderLayers",value:function(){this.rendering=!0,this.layerService.reRender(),this.rendering=!1}},{key:"prerender",value:function(){}},{key:"render",value:function(){var d=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(d),this))}},{key:"renderMultiPass",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(!(this.encodeDataLength<=0&&!this.forceRender)){B.next=2;break}return B.abrupt("return");case 2:if(!(this.multiPassRenderer&&this.multiPassRenderer.getRenderFlag())){B.next=7;break}return B.next=5,this.multiPassRenderer.render();case 5:B.next=8;break;case 7:this.multiPassRenderer?this.renderModels():this.renderModels();case 8:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"active",value:function(d){var C={};return C.enableHighlight=$I(d)?!0:d,$I(d)?(C.enableHighlight=!0,d.color&&(C.highlightColor=d.color),d.mix&&(C.activeMix=d.mix)):C.enableHighlight=!!d,this.updateLayerConfig(C),this}},{key:"setActive",value:function(d,C){var M=this;if($I(d)){var B=d.x,J=B===void 0?0:B,ue=d.y,Ue=ue===void 0?0:ue;this.updateLayerConfig({highlightColor:$I(C)?C.color:this.getLayerConfig().highlightColor,activeMix:$I(C)?C.mix:this.getLayerConfig().activeMix}),this.pick({x:J,y:Ue})}else this.updateLayerConfig({pickedFeatureID:d,highlightColor:$I(C)?C.color:this.getLayerConfig().highlightColor,activeMix:$I(C)?C.mix:this.getLayerConfig().activeMix}),this.hooks.beforeHighlight.call(Av(d)).then(function(){setTimeout(function(){M.reRender()},1)})}},{key:"select",value:function(d){var C={};return C.enableSelect=$I(d)?!0:d,$I(d)?(C.enableSelect=!0,d.color&&(C.selectColor=d.color),d.mix&&(C.selectMix=d.mix)):C.enableSelect=!!d,this.updateLayerConfig(C),this}},{key:"setSelect",value:function(d,C){var M=this;if($I(d)){var B=d.x,J=B===void 0?0:B,ue=d.y,Ue=ue===void 0?0:ue;this.updateLayerConfig({selectColor:$I(C)?C.color:this.getLayerConfig().selectColor,selectMix:$I(C)?C.mix:this.getLayerConfig().selectMix}),this.pick({x:J,y:Ue})}else this.updateLayerConfig({pickedFeatureID:d,selectColor:$I(C)?C.color:this.getLayerConfig().selectColor,selectMix:$I(C)?C.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(Av(d)).then(function(){setTimeout(function(){M.reRender()},1)})}},{key:"setBlend",value:function(d){return this.updateLayerConfig({blend:d}),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(d){return this.zIndex=d,this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this}},{key:"setCurrentPickId",value:function(d){this.currentPickId=d}},{key:"getCurrentPickId",value:function(){return this.currentPickId}},{key:"setCurrentSelectedId",value:function(d){this.selectedFeatureID=d}},{key:"getCurrentSelectedId",value:function(){return this.selectedFeatureID}},{key:"isVisible",value:function(){var d=this.mapService.getZoom(),C=this.getLayerConfig(),M=C.visible,B=C.minZoom,J=B===void 0?-1/0:B,ue=C.maxZoom,Ue=ue===void 0?1/0:ue;return!!M&&d>=J&&d0&&arguments[0]!==void 0?arguments[0]:!0;if(!this.isDestroyed){(d=this.layerModel)===null||d===void 0||d.uniformBuffers.forEach(function(Ir){Ir.destroy()}),this.layerChildren.map(function(Ir){return Ir.destroy(!1)}),this.layerChildren=[];var Ue=this.getLayerConfig(),it=Ue.maskfence;it&&(this.masks.map(function(Ir){return Ir.destroy(!1)}),this.masks=[]),this.hooks.beforeDestroy.call(),this.layerSource.off("update",this.sourceEvent),(C=this.multiPassRenderer)===null||C===void 0||C.destroy(),this.textureService.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),(M=this.layerModel)===null||M===void 0||M.clearModels(ue),(B=this.tileLayer)===null||B===void 0||B.destroy(),this.models=[],(J=this.debugService)===null||J===void 0||J.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 d;this.models.forEach(function(C){return C.destroy()}),(d=this.layerModel)===null||d===void 0||d.clearModels(),this.models=[]}},{key:"isDirty",value:function(){return!!(this.styleAttributeService.getLayerStyleAttributes()||[]).filter(function(d){return d.needRescale||d.needRemapping||d.needRegenerateVertices}).length}},{key:"setSource",value:function(d){var C=this;if(this.layerSource&&this.layerSource.off("update",this.sourceEvent),this.layerSource=d,this.clusterZoom=0,this.inited&&this.layerSource.cluster){var M=this.mapService.getZoom();this.layerSource.updateClusterData(M)}this.layerSource.inited&&this.sourceEvent(),this.layerSource.on("update",function(B){var J=B.type;if(C.coordCenter===void 0){var ue,Ue=C.layerSource.center;C.coordCenter=Ue,(ue=C.mapService)!==null&&ue!==void 0&&ue.setCoordCenter&&C.mapService.setCoordCenter(Ue)}if(J==="update"){if(C.tileLayer){C.tileLayer.reload();return}C.sourceEvent()}})}},{key:"getSource",value:function(){return this.layerSource}},{key:"getScaleOptions",value:function(){return this.scaleOptions}},{key:"setEncodedData",value:function(d){this.encodedData=d,this.encodeDataLength=d.length}},{key:"getEncodedData",value:function(){return this.encodedData}},{key:"getScale",value:function(d){return this.styleAttributeService.getLayerAttributeScale(d)}},{key:"getLegend",value:function(d){var C,M,B,J=this.styleAttributeService.getLayerStyleAttribute(d),ue=(J==null||(C=J.scale)===null||C===void 0?void 0:C.scalers)||[];return{type:(M=ue[0].option)===null||M===void 0?void 0:M.type,field:J==null||(B=J.scale)===null||B===void 0?void 0:B.field,items:this.getLegendItems(d)}}},{key:"getLegendItems",value:function(d){var C=this.styleAttributeService.getLayerAttributeScale(d);if(!C)return[];if(C.invertExtent){var M=C.range().map(function(ue){return(0,ka.Z)({value:C.invertExtent(ue)},d,ue)});return M}else if(C.ticks){var B=C.ticks().map(function(ue){return(0,ka.Z)({value:ue},d,C(ue))});return B}else if(C!=null&&C.domain){var J=C.domain().filter(function(ue){return!aZ(ue)}).map(function(ue){return(0,ka.Z)({value:ue},d,C(ue))});return J}return[]}},{key:"pick",value:function(d){var C=d.x,M=d.y;this.interactionService.triggerHover({x:C,y:M})}},{key:"boxSelect",value:function(d,C){this.pickingService.boxPickLayer(this,d,C)}},{key:"buildLayerModel",value:function(){var g=(0,y_.Z)(Dv().mark(function C(M){var B=this,J,ue,Ue,it,Ir,Wo,Ca,eu,Bd,r0,N0,fv,v1,_y;return Dv().wrap(function(iy){for(;;)switch(iy.prev=iy.next){case 0:return J=M.moduleName,ue=M.vertexShader,Ue=M.fragmentShader,it=M.inject,Ir=M.triangulation,Wo=M.styleOption,Ca=M.pickingEnabled,eu=Ca===void 0?!0:Ca,Bd=(0,q3.Z)(M,EU),this.shaderModuleService.registerModule(J,{vs:ue,fs:Ue,inject:it}),r0=this.shaderModuleService.getModule(J),N0=r0.vs,fv=r0.fs,v1=r0.uniforms,_y=this.rendererService.createModel,iy.abrupt("return",new Promise(function(Uy){var w_=B.styleAttributeService.createAttributesAndIndices(B.encodedData,Ir,Wo),_x=w_.attributes,ux=w_.elements,f2=w_.count,G2=[].concat((0,Gd.Z)(B.layerModel.uniformBuffers),(0,Gd.Z)(B.rendererService.uniformBuffers),[B.getLayerUniformBuffer()]);eu&&G2.push(B.getPickingUniformBuffer());var cw=(0,An.Z)({attributes:_x,uniforms:v1,fs:fv,vs:N0,elements:ux,blend:RA[m1.normal],uniformBuffers:G2,textures:B.layerModel.textures},Bd);f2&&(cw.count=f2);var JE=_y(cw);Uy(JE)}));case 5:case"end":return iy.stop()}},C,this)}));function d(C){return g.apply(this,arguments)}return d}()},{key:"createAttributes",value:function(d){var C=d.triangulation,M=this.styleAttributeService.createAttributes(this.encodedData,C),B=M.attributes;return B}},{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(d){var C=this.getLayerConfig(),M=C.enableHighlight,B=M===void 0?!0:M,J=C.enableSelect,ue=J===void 0?!0:J,Ue=this.eventNames().indexOf(d)!==-1||this.eventNames().indexOf("un"+d)!==-1;return(d==="click"||d==="dblclick")&&ue&&(Ue=!0),d==="mousemove"&&(B||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&(Ue=!0),this.isVisible()&&Ue}},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return B.stop()}},C)}));function d(){return g.apply(this,arguments)}return d}()},{key:"rebuildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.buildModels();case 2:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"renderMulPass",value:function(){var g=(0,y_.Z)(Dv().mark(function C(M){return Dv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,M.render();case 2:case"end":return J.stop()}},C)}));function d(C){return g.apply(this,arguments)}return d}()},{key:"renderModels",value:function(){var d=this,C=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(M){M.draw({uniforms:d.layerModel.getUninforms(),blend:d.layerModel.getBlend(),stencil:d.layerModel.getStencil(C),textures:d.layerModel.textures},(C==null?void 0:C.ispick)||!1)}),this.hooks.afterRender.call(),this)}},{key:"updateStyleAttribute",value:function(d,C,M,B){var J=this.configService.getAttributeConfig(this.id)||{};return W5(J[d],{field:C,values:M})?!1:(["color","size","texture","rotate","filter","label","shape"].indexOf(d)!==-1&&this.configService.setAttributeConfig(this.id,(0,ka.Z)({},d,{field:C,values:M})),this.startInit?this.styleAttributeService.updateStyleAttribute(d,{scale:(0,An.Z)({field:C},this.splitValuesAndCallbackInAttribute(M,this.getLayerConfig()[C]))},B):this.pendingStyleAttributes.push({attributeName:d,attributeField:C,attributeValues:M,updateOptions:B}),!0)}},{key:"getLayerAttributeConfig",value:function(){return this.configService.getAttributeConfig(this.id)}},{key:"getShaderPickStat",value:function(){return this.layerService.getShaderPickStat()}},{key:"setEarthTime",value:function(d){console.warn("empty fn")}},{key:"processData",value:function(d){return d}},{key:"getModelType",value:function(){throw new Error("Method not implemented.")}},{key:"getDefaultConfig",value:function(){return{}}},{key:"initLayerModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B;return Dv().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return this.models.forEach(function(Ue){return Ue.destroy()}),this.models=[],this.uniformBuffers.forEach(function(Ue){Ue.destroy()}),this.uniformBuffers=[],M=this.rendererService.createBuffer({data:new Float32Array(20).fill(0),isUBO:!0}),this.uniformBuffers.push(M),B=this.rendererService.createBuffer({data:new Float32Array(20).fill(0),isUBO:!0}),this.uniformBuffers.push(B),ue.next=10,this.layerModel.initModels();case 10:this.models=ue.sent;case 11:case"end":return ue.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"getLayerUniformBuffer",value:function(){return this.uniformBuffers[0]}},{key:"getPickingUniformBuffer",value:function(){return this.uniformBuffers[1]}},{key:"reRender",value:function(){this.inited&&this.layerService.reRender()}},{key:"splitValuesAndCallbackInAttribute",value:function(d){return{values:lN(d)?void 0:d,callback:lN(d)?d:void 0}}}]),f}(N2.EventEmitter),H9=H(c7.prototype,"configService",[Z9],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c7);function AU(i,v){return{enable:i,mask:255,func:{cmp:K0.EQUAL,ref:v?1:0,mask:1}}}function DU(i){return i.maskOperation===pS.OR?{enable:!0,mask:255,func:{cmp:K0.ALWAYS,ref:1,mask:255},opFront:{fail:K0.KEEP,zfail:K0.REPLACE,zpass:K0.REPLACE}}:{enable:!0,mask:255,func:{cmp:i.stencilType===V_.SINGLE||i.stencilIndex===0?K0.ALWAYS:K0.LESS,ref:i.stencilType===V_.SINGLE?1:i.stencilIndex===0?2:1,mask:255},opFront:{fail:K0.KEEP,zfail:K0.REPLACE,zpass:K0.REPLACE}}}var aE=function(i){return i[i.POSITION=0]="POSITION",i[i.COLOR=1]="COLOR",i[i.VERTEX_ID=2]="VERTEX_ID",i[i.PICKING_COLOR=3]="PICKING_COLOR",i[i.STROKE=4]="STROKE",i[i.OPACITY=5]="OPACITY",i[i.OFFSETS=6]="OFFSETS",i[i.ROTATION=7]="ROTATION",i[i.EXTRUSION_BASE=8]="EXTRUSION_BASE",i[i.SIZE=9]="SIZE",i[i.SHAPE=10]="SHAPE",i[i.EXTRUDE=11]="EXTRUDE",i[i.MAX=12]="MAX",i[i.NORMAL=13]="NORMAL",i[i.UV=14]="UV",i[i.LINEAR=15]="LINEAR",i}({});function cy(i){switch(i){case"rotation":return{name:"Rotation",type:mS.Attribute,descriptor:{name:"a_Rotation",shaderLocation:aE.ROTATION,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:1,update:function(f){var g=f.rotation,d=g===void 0?0:g;return Array.isArray(d)?[d[0]]:[d]}}};case"stroke":return{name:"stroke",type:mS.Attribute,descriptor:{name:"a_Stroke",shaderLocation:aE.STROKE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:4,update:function(f){var g=f.stroke,d=g===void 0?[1,1,1,1]:g;return d}}};case"opacity":return{name:"opacity",type:mS.Attribute,descriptor:{name:"a_Opacity",shaderLocation:aE.OPACITY,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:1,update:function(f){var g=f.opacity,d=g===void 0?1:g;return[d]}}};case"extrusionBase":return{name:"extrusionBase",type:mS.Attribute,descriptor:{name:"a_ExtrusionBase",shaderLocation:aE.EXTRUSION_BASE,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:1,update:function(f){var g=f.extrusionBase,d=g===void 0?0:g;return[d]}}};case"offsets":return{name:"offsets",type:mS.Attribute,descriptor:{name:"a_Offsets",shaderLocation:aE.OFFSETS,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:2,update:function(f){var g=f.offsets;return g}}};case"thetaOffset":return{name:"thetaOffset",type:mS.Attribute,descriptor:{name:"a_ThetaOffset",shaderLocation:15,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:1,update:function(f){var g=f.thetaOffset,d=g===void 0?1:g;return[d]}}};default:return}}var P_={opacity:1,stroke:[1,0,0,1],offsets:[0,0],rotation:0,extrusionBase:0,strokeOpacity:1,thetaOffset:.314},Qy={opacity:"float",stroke:"vec4",offsets:"vec2",textOffset:"vec2",rotation:"float",extrusionBase:"float",strokeOpacity:"float",thetaOffset:"float"};function f_(i){var v="";return Object.keys(i).forEach(function(f){var g=i[f];Array.isArray(g)?v+="vec".concat(g.length," ").concat(f,`; +`):v+="flot ".concat(f,`; +`)}),v}function R_(i){return Math.max(Math.ceil(i/4)*4,4)}var k_,j2,Hw,ew={opacity:aE.OPACITY,stroke:aE.STROKE,offsets:aE.OFFSETS,rotation:aE.ROTATION,extrusionBase:aE.EXTRUSION_BASE,thetaOffset:15},Gx=(k_=dP(su.IGlobalConfigService),j2=function(){function i(v){(0,Or.Z)(this,i),(0,ka.Z)(this,"uniformBuffers",[]),(0,ka.Z)(this,"textures",[]),(0,ka.Z)(this,"preStyleAttribute",{}),(0,ka.Z)(this,"encodeStyleAttribute",{}),ne(this,"configService",Hw,this),this.layer=v,this.rendererService=v.getContainer().get(su.IRendererService),this.pickingService=v.getContainer().get(su.IPickingService),this.shaderModuleService=v.getContainer().get(su.IShaderModuleService),this.styleAttributeService=v.getContainer().get(su.IStyleAttributeService),this.mapService=v.getContainer().get(su.IMapService),this.iconService=v.getContainer().get(su.IIconService),this.fontService=v.getContainer().get(su.IFontService),this.cameraService=v.getContainer().get(su.ICameraService),this.layerService=v.getContainer().get(su.ILayerService),this.registerStyleAttribute(),this.registerBuiltinAttributes(),this.startModelAnimate();var f=this.rendererService.createTexture2D;this.createTexture2D=f}return(0,at.Z)(i,[{key:"getBlend",value:function(){var f=this.layer.getLayerConfig(),g=f.blend,d=g===void 0?"normal":g;return RA[m1[d]]}},{key:"getStencil",value:function(f){var g=this.layer.getLayerConfig(),d=g.mask,C=d===void 0?!1:d,M=g.maskInside,B=M===void 0?!0:M,J=g.enableMask,ue=g.maskOperation,Ue=ue===void 0?pS.AND:ue;if(this.layer.type==="MaskLayer")return DU({isStencil:!0,stencilType:V_.SINGLE});if(f.isStencil)return DU((0,An.Z)((0,An.Z)({},f),{},{maskOperation:Ue}));var it=C||J&&this.layer.masks.length!==0||this.layer.tileMask!==void 0;return AU(it,B)}},{key:"getDefaultStyle",value:function(){return{}}},{key:"getUninforms",value:function(){var f=this.getCommonUniformsInfo(),g=this.getUniformsBufferInfo(this.getStyleAttribute());this.updateStyleUnifoms();var d=(0,An.Z)((0,An.Z)({},g.uniformsOption),f.uniformsOption);return!this.rendererService.hasOwnProperty("device")&&this.textures&&this.textures.length===1&&(d.u_texture=this.textures[0]),d}},{key:"getAnimateUniforms",value:function(){return{}}},{key:"needUpdate",value:function(){var v=(0,y_.Z)(Dv().mark(function g(){return Dv().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",!1);case 1:case"end":return C.stop()}},g)}));function f(){return v.apply(this,arguments)}return f}()},{key:"buildModels",value:function(){var v=(0,y_.Z)(Dv().mark(function g(){return Dv().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return C.stop()}},g)}));function f(){return v.apply(this,arguments)}return f}()},{key:"initModels",value:function(){var v=(0,y_.Z)(Dv().mark(function g(){return Dv().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return C.stop()}},g)}));function f(){return v.apply(this,arguments)}return f}()},{key:"clearModels",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0}},{key:"getAttribute",value:function(){throw new Error("Method not implemented.")}},{key:"prerender",value:function(){}},{key:"render",value:function(f){throw new Error("Method not implemented.")}},{key:"registerBuiltinAttributes",value:function(){throw new Error("Method not implemented.")}},{key:"animateOption2Array",value:function(f){return[f.enable?0:1,f.duration||4,f.interval||.2,f.trailLength||.1]}},{key:"startModelAnimate",value:function(){var f=this.layer.getLayerConfig(),g=f.animateOption;g.enable&&this.layer.setAnimateStartTime()}},{key:"getInject",value:function(){var f=this.layer.encodeStyleAttribute,g="",d=[];this.layer.enableShaderEncodeStyles.forEach(function(B){f[B]?g+="#define USE_ATTRIBUTE_".concat(B.toUpperCase(),` 0.0; + +`):d.push(" ".concat(Qy[B]," u_").concat(B,";"));var J=ew[B];!J&&B==="THETA_OFFSET"&&(J=15),g+=` + #ifdef USE_ATTRIBUTE_`.concat(B.toUpperCase(),` + layout(location = `).concat(ew[B],") in ").concat(Qy[B]," a_").concat(B.charAt(0).toUpperCase()+B.slice(1),`; + #endif + + `)});var C=d.length?` +layout(std140) uniform AttributeUniforms { +`.concat(d.join(` +`),` +}; + `):"";g+=C;var M="";return this.layer.enableShaderEncodeStyles.forEach(function(B){M+=` + + #ifdef USE_ATTRIBUTE_`.concat(B.toUpperCase(),` + `).concat(Qy[B]," ").concat(B," = a_").concat(B.charAt(0).toUpperCase()+B.slice(1),`; + #else + `).concat(Qy[B]," ").concat(B," = u_").concat(B,`; + #endif + + `)}),{"vs:#decl":g,"fs:#decl":C,"vs:#main-start":M}}},{key:"getStyleAttribute",value:function(){var f=this,g={};return this.layer.enableShaderEncodeStyles.forEach(function(d){if(!f.layer.encodeStyleAttribute[d]){var C=f.layer.getLayerConfig()[d],M=typeof C=="undefined"?P_[d]:C;d==="stroke"&&(M=a0(M)),g["u_"+d]=M}}),g}},{key:"registerStyleAttribute",value:function(){var f=this;Object.keys(this.layer.encodeStyleAttribute).forEach(function(g){var d=cy(g);d&&(f.styleAttributeService.registerStyleAttribute(d),d.descriptor&&(d.descriptor.shaderLocation=ew[g]))})}},{key:"updateEncodeAttribute",value:function(f,g){this.encodeStyleAttribute[f]=g}},{key:"initUniformsBuffer",value:function(){var f=this.getUniformsBufferInfo(this.getStyleAttribute()),g=this.getCommonUniformsInfo();f.uniformsLength!==0&&(this.attributeUnifoms=this.rendererService.createBuffer({data:new Float32Array(R_(f.uniformsLength)).fill(0),isUBO:!0}),this.uniformBuffers.push(this.attributeUnifoms)),g.uniformsLength!==0&&(this.commonUnifoms=this.rendererService.createBuffer({data:new Float32Array(R_(g.uniformsLength)).fill(0),isUBO:!0}),this.uniformBuffers.push(this.commonUnifoms))}},{key:"getUniformsBufferInfo",value:function(f){var g=0,d=[];return Object.values(f).forEach(function(C){Array.isArray(C)?(d.push.apply(d,(0,Gd.Z)(C)),g+=C.length):typeof C=="number"?(d.push(C),g+=1):typeof C=="boolean"&&(d.push(Number(C)),g+=1)}),{uniformsOption:f,uniformsLength:g,uniformsArray:d}}},{key:"getCommonUniformsInfo",value:function(){return{uniformsLength:0,uniformsArray:[],uniformsOption:{}}}},{key:"updateStyleUnifoms",value:function(){var f,g,d=this.getUniformsBufferInfo(this.getStyleAttribute()),C=d.uniformsArray,M=this.getCommonUniformsInfo(),B=M.uniformsArray;(f=this.attributeUnifoms)===null||f===void 0||f.subData({offset:0,data:new Uint8Array(new Float32Array(C).buffer)}),(g=this.commonUnifoms)===null||g===void 0||g.subData({offset:0,data:new Uint8Array(new Float32Array(B).buffer)})}}]),i}(),Hw=H(j2.prototype,"configService",[k_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j2),yw=function(i){return i[i.solid=0]="solid",i[i.dash=1]="dash",i}({}),_S=function(i){return i.VERTICAL="vertical",i.HORIZONTAL="horizontal",i}({}),qS=function(i){return i.NORMAL="normal",i.REPLACE="replace",i}({}),sT=function(i){return i[i.pixel=0]="pixel",i[i.meter=1]="meter",i}({}),jS=function(i){return i.ALWAYS="always",i.DRAGEND="dragend",i}({});function vE(i){var v=kA();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function kA(){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(i){return!1}}var XD=function(i){(0,Wt.Z)(f,i);var v=vE(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M0&&(C=1/Math.sqrt(C)),i[0]=v[0]*C,i[1]=v[1]*C,i[2]=v[2]*C,i}function LU(i,v){return i[0]*v[0]+i[1]*v[1]+i[2]*v[2]}function R3(i,v,f){var g=v[0],d=v[1],C=v[2],M=f[0],B=f[1],J=f[2];return i[0]=d*J-C*B,i[1]=C*M-g*J,i[2]=g*B-d*M,i}function Vfe(i,v,f,g){var d=v[0],C=v[1],M=v[2];return i[0]=d+g*(f[0]-d),i[1]=C+g*(f[1]-C),i[2]=M+g*(f[2]-M),i}function jfe(i,v,f,g,d,C){var M=C*C,B=M*(2*C-3)+1,J=M*(C-2)+C,ue=M*(C-1),Ue=M*(3-2*C);return i[0]=v[0]*B+f[0]*J+g[0]*ue+d[0]*Ue,i[1]=v[1]*B+f[1]*J+g[1]*ue+d[1]*Ue,i[2]=v[2]*B+f[2]*J+g[2]*ue+d[2]*Ue,i}function rY(i,v,f,g,d,C){var M=1-C,B=M*M,J=C*C,ue=B*M,Ue=3*C*B,it=3*J*M,Ir=J*C;return i[0]=v[0]*ue+f[0]*Ue+g[0]*it+d[0]*Ir,i[1]=v[1]*ue+f[1]*Ue+g[1]*it+d[1]*Ir,i[2]=v[2]*ue+f[2]*Ue+g[2]*it+d[2]*Ir,i}function Wfe(i,v){v=v||1;var f=XE()*2*Math.PI,g=XE()*2-1,d=Math.sqrt(1-g*g)*v;return i[0]=Math.cos(f)*d,i[1]=Math.sin(f)*d,i[2]=g*v,i}function h7(i,v,f){var g=v[0],d=v[1],C=v[2],M=f[3]*g+f[7]*d+f[11]*C+f[15];return M=M||1,i[0]=(f[0]*g+f[4]*d+f[8]*C+f[12])/M,i[1]=(f[1]*g+f[5]*d+f[9]*C+f[13])/M,i[2]=(f[2]*g+f[6]*d+f[10]*C+f[14])/M,i}function ore(i,v,f){var g=v[0],d=v[1],C=v[2];return i[0]=g*f[0]+d*f[3]+C*f[6],i[1]=g*f[1]+d*f[4]+C*f[7],i[2]=g*f[2]+d*f[5]+C*f[8],i}function hM(i,v,f){var g=f[0],d=f[1],C=f[2],M=f[3],B=v[0],J=v[1],ue=v[2],Ue=d*ue-C*J,it=C*B-g*ue,Ir=g*J-d*B,Wo=d*Ir-C*it,Ca=C*Ue-g*Ir,eu=g*it-d*Ue,Bd=M*2;return Ue*=Bd,it*=Bd,Ir*=Bd,Wo*=2,Ca*=2,eu*=2,i[0]=B+Ue+Wo,i[1]=J+it+Ca,i[2]=ue+Ir+eu,i}function sre(i,v,f,g){var d=[],C=[];return d[0]=v[0]-f[0],d[1]=v[1]-f[1],d[2]=v[2]-f[2],C[0]=d[0],C[1]=d[1]*Math.cos(g)-d[2]*Math.sin(g),C[2]=d[1]*Math.sin(g)+d[2]*Math.cos(g),i[0]=C[0]+f[0],i[1]=C[1]+f[1],i[2]=C[2]+f[2],i}function MU(i,v,f,g){var d=[],C=[];return d[0]=v[0]-f[0],d[1]=v[1]-f[1],d[2]=v[2]-f[2],C[0]=d[2]*Math.sin(g)+d[0]*Math.cos(g),C[1]=d[1],C[2]=d[2]*Math.cos(g)-d[0]*Math.sin(g),i[0]=C[0]+f[0],i[1]=C[1]+f[1],i[2]=C[2]+f[2],i}function are(i,v,f,g){var d=[],C=[];return d[0]=v[0]-f[0],d[1]=v[1]-f[1],d[2]=v[2]-f[2],C[0]=d[0]*Math.cos(g)-d[1]*Math.sin(g),C[1]=d[0]*Math.sin(g)+d[1]*Math.cos(g),C[2]=d[2],i[0]=C[0]+f[0],i[1]=C[1]+f[1],i[2]=C[2]+f[2],i}function dZ(i,v){var f=i[0],g=i[1],d=i[2],C=v[0],M=v[1],B=v[2],J=Math.sqrt(f*f+g*g+d*d),ue=Math.sqrt(C*C+M*M+B*B),Ue=J*ue,it=Ue&&LU(i,v)/Ue;return Math.acos(Math.min(Math.max(it,-1),1))}function lre(i){return i[0]=0,i[1]=0,i[2]=0,i}function iY(i){return"vec3("+i[0]+", "+i[1]+", "+i[2]+")"}function Zfe(i,v){return i[0]===v[0]&&i[1]===v[1]&&i[2]===v[2]}function oY(i,v){var f=i[0],g=i[1],d=i[2],C=v[0],M=v[1],B=v[2];return Math.abs(f-C)<=Hv*Math.max(1,Math.abs(f),Math.abs(C))&&Math.abs(g-M)<=Hv*Math.max(1,Math.abs(g),Math.abs(M))&&Math.abs(d-B)<=Hv*Math.max(1,Math.abs(d),Math.abs(B))}var OU=nre,Hfe=JX,Gfe=QX,uN=nY,f7=uZ,VI=HM,sY=PU,ure=function(){var i=LP();return function(v,f,g,d,C,M){var B,J;for(f||(f=3),g||(g=0),d?J=Math.min(d*f+g,v.length):J=v.length,B=g;B0)for(var _y=it.length,Q1=_y-2*(J+1);Q1+J+2<_y;Q1++)ue.push([Q1,Q1+1,Q1+J+1]),Ue.push(Q1,Q1+1,Q1+J+1),ue.push([Q1+J+1,Q1+1,Q1+J+2]),Ue.push(Q1+J+1,Q1+1,Q1+J+2)}return{cells:ue,positions:it,uvs:Ca,positionsArr:Ir,indicesArr:Ue,normalArr:Wo}}var WR=fC(),RU=fC(),p4=fC(),Z5=fC(),g7=fC();function pZ(i,v,f,g,d){VC(i,f,g),nA(i,i),v=IT(-i[1],i[0]);var C=IT(-f[1],f[0]);return[d/BT(v,C),v]}function H5(i,v){return RT(i,-v[1],v[0])}function t4(i,v,f){return rA(i,v,f),nA(i,i),i}function V3(i,v){return i[0]===v[0]&&i[1]===v[1]}function R4(i){for(var v=new Map,f=0;f0&&arguments[0]!==void 0?arguments[0]:{};(0,Or.Z)(this,i),(0,ka.Z)(this,"lastFlip",-1),(0,ka.Z)(this,"miter",IT(0,0)),(0,ka.Z)(this,"started",!1),(0,ka.Z)(this,"dash",!1),(0,ka.Z)(this,"totalDistance",0),(0,ka.Z)(this,"currentIndex",0),this.join=v.join||"miter",this.cap=v.cap||"butt",this.miterLimit=v.miterLimit||10,this.thickness=v.thickness||1,this.dash=v.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,at.Z)(i,[{key:"simpleExtrude",value:function(f){var g=this.complex;if(f.length<=1)return g;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var d=f.length,C=g.startIndex,M=1;Mthis.miterLimit&&(f2=!0)}f2?(Wo.push(this.normal[0],this.normal[1],0),Wo.push(_x[0],_x[1],0),Ir.push(C[0],C[1],C[2]|0,this.totalDistance,-this.thickness*ux,C[2]|0),this.complex.indexes.push(this.currentIndex),Ir.push(C[0],C[1],C[2]|0,this.totalDistance,this.thickness*ux,C[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,it.push.apply(it,(0,Gd.Z)(this.lastFlip!==-ux?[g,g+2,g+3]:[g+2,g+1,g+3])),it.push(g+2,g+3,g+4),H5(WR,Z5),cE(this.normal,WR),Wo.push(this.normal[0],this.normal[1],0),Ir.push(C[0],C[1],C[2]|0,this.totalDistance,-this.thickness*ux,C[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Ue+=3):(this.extrusions(Ir,Wo,C,_x,w_,this.totalDistance),it.push.apply(it,(0,Gd.Z)(this.lastFlip===1?[g,g+2,g+3]:[g+2,g+1,g+3])),ux=-1,cE(this.normal,_x),Ue+=2),this.lastFlip=ux}else{if(H5(this.normal,p4),Ca){var _y=fC(),Q1=fC();rA(Q1,p4,this.normal),VC(_y,p4,this.normal),Wo.push(Q1[0],Q1[1],0),Wo.push(_y[0],_y[1],0),Ir.push(C[0],C[1],C[2]|0,this.totalDistance,this.thickness,C[2]|0),this.complex.indexes.push(this.currentIndex),Ir.push(C[0],C[1],C[2]|0,this.totalDistance,this.thickness,C[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(Ir,Wo,C,this.normal,this.thickness,this.totalDistance);it.push.apply(it,(0,Gd.Z)(this.lastFlip===1?[g,g+2,g+3]:[g+2,g+1,g+3])),Ue+=2}return Ue}},{key:"segment",value:function(f,g,d,C,M){var B=0,J=f.indices,ue=f.positions,Ue=f.normals,it=this.cap==="square",Ir=this.join==="bevel",Wo=$C([C[0],C[1]]),Ca=$C([d[0],d[1]]);t4(p4,Wo,Ca);var eu=0;if(this.dash&&(eu=this.lineSegmentDistance(Wo,Ca),this.totalDistance+=eu),this.normal||(this.normal=fC(),H5(this.normal,p4)),!this.started)if(this.started=!0,it){var Bd=fC(),r0=fC();VC(Bd,this.normal,p4),VC(r0,this.normal,p4),Ue.push(r0[0],r0[1],0),Ue.push(Bd[0],Bd[1],0),ue.push(d[0],d[1],d[2]|0,this.totalDistance-eu,-this.thickness,d[2]|0),this.complex.indexes.push(this.currentIndex),ue.push(d[0],d[1],d[2]|0,this.totalDistance-eu,this.thickness,d[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ue,Ue,d,this.normal,this.thickness,this.totalDistance-eu);if(J.push(g+0,g+1,g+2),M){var v1=$C([M[0],M[1]]);V3(Wo,v1)&&VC(v1,Wo,nA(v1,TS(v1,Wo,Ca))),t4(Z5,v1,Wo);var _y=pZ(g7,fC(),p4,Z5,this.thickness),Q1=(0,_g.Z)(_y,2),iy=Q1[0],Uy=Q1[1],w_=BT(g7,this.normal)<0?-1:1,_x=Ir;if(!_x&&this.join==="miter"){var ux=iy;ux>this.miterLimit&&(_x=!0)}_x?(Ue.push(this.normal[0],this.normal[1],0),Ue.push(Uy[0],Uy[1],0),ue.push(C[0],C[1],C[2]|0,this.totalDistance,-this.thickness*w_,C[2]|0),this.complex.indexes.push(this.currentIndex),ue.push(C[0],C[1],C[2]|0,this.totalDistance,this.thickness*w_,C[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,J.push.apply(J,(0,Gd.Z)(this.lastFlip!==-w_?[g,g+2,g+3]:[g+2,g+1,g+3])),J.push(g+2,g+3,g+4),H5(WR,Z5),cE(this.normal,WR),Ue.push(this.normal[0],this.normal[1],0),ue.push(C[0],C[1],C[2]|0,this.totalDistance,-this.thickness*w_,C[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,B+=3):(this.extrusions(ue,Ue,C,Uy,iy,this.totalDistance),J.push.apply(J,(0,Gd.Z)(this.lastFlip===1?[g,g+2,g+3]:[g+2,g+1,g+3])),w_=-1,cE(this.normal,Uy),B+=2),this.lastFlip=w_}else{if(H5(this.normal,p4),it){var N0=fC(),fv=fC();rA(fv,p4,this.normal),VC(N0,p4,this.normal),Ue.push(fv[0],fv[1],0),Ue.push(N0[0],N0[1],0),ue.push(C[0],C[1],C[2]|0,this.totalDistance,this.thickness,C[2]|0),this.complex.indexes.push(this.currentIndex),ue.push(C[0],C[1],C[2]|0,this.totalDistance,this.thickness,C[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ue,Ue,C,this.normal,this.thickness,this.totalDistance);J.push.apply(J,(0,Gd.Z)(this.lastFlip===1?[g,g+2,g+3]:[g+2,g+1,g+3])),B+=2}return B}},{key:"extrusions",value:function(f,g,d,C,M,B){g.push(C[0],C[1],0),g.push(C[0],C[1],0),f.push(d[0],d[1],d[2]|0,B,-M,d[2]|0),this.complex.indexes.push(this.currentIndex),f.push(d[0],d[1],d[2]|0,B,M,d[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(f,g){var d=g[0]-f[0],C=g[1]-f[1];return Math.sqrt(d*d+C*C)}}]),i}();function aY(i){var v=i[0][0],f=i[0][i[0].length-1];v[0]===f[0]&&v[1]===f[1]&&(i[0]=i[0].slice(0,i[0].length-1));for(var g=i[0].length,d=aw().flatten(i),C=d.vertices,M=d.dimensions,B=[],J=[],ue=0;ue1&&arguments[1]!==void 0?arguments[1]:!1,f=i[0][0],g=i[0][i[0].length-1];f[0]===g[0]&&f[1]===g[1]&&(i[0]=i[0].slice(0,i[0].length-1));for(var d=i[0].length,C=aw().flatten(i),M=C.vertices,B=C.dimensions,J=[],ue=[],Ue=[],it=0;it3&&arguments[3]!==void 0?arguments[3]:!1,d=LP(),C=LP(),M=LP();g&&(i=QS(i),v=QS(v),f=QS(f));var B=QA.apply(x,(0,Gd.Z)(i)),J=QA.apply(x,(0,Gd.Z)(v)),ue=QA.apply(x,(0,Gd.Z)(f));OU(d,ue,J),OU(C,B,J),R3(M,d,C);var Ue=LP();return gP(Ue,M),Ue}var GM,m7=function(i){return i.CYLINDER="cylinder",i.SQUARECOLUMN="squareColumn",i.TRIANGLECOLUMN="triangleColumn",i.HEXAGONCOLUMN="hexagonColumn",i.PENTAGONCOLUMN="pentagonColumn",i}({}),v7=function(i){return i.CIRCLE="circle",i.SQUARE="square",i.TRIANGLE="triangle",i.HEXAGON="hexagon",i.PENTAGON="pentagon",i}({});function NT(i){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f=Math.PI*2/i,g=[],d=0;d1&&arguments[1]!==void 0?arguments[1]:!1;if(kU&&kU[i])return kU[i];var f=y7[i]?y7[i]():y7.cylinder(),g=uY([f],v);return kU[i]=g,g}function zU(i,v){for(var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,d=new Float32Array(i.length/f*3),C,M,B,J=vec3.create(),ue=vec3.create(),Ue=vec3.create(),it=0,Ir=v.length;it 0.0 && v_worldDis < u_cityMinSize) { + float r = fract(((v_worldDis/u_cityMinSize) - u_time * u_circleSweepSpeed) * 2.0); + outputColor.rgb += r * r * u_circleSweepColor.rgb; + } + + outputColor.a *= u_opacity; + outputColor = filterColor(outputColor); } -.l7-touch .l7-control-layers, -.l7-touch .l7-bar { - background-clip: padding-box; - border: 2px solid rgba(0, 0, 0, 0.2); +`,pre=`precision highp float; + +#define ambientRatio 0.5 +#define diffuseRatio 0.3 +#define specularRatio 0.2 + +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 13) in vec3 a_Normal; +layout(location = 14) in vec2 a_Uv; + +out vec2 v_texCoord; +out vec4 v_Color; +out float v_worldDis; + +layout(std140) uniform commonUniforms { + vec4 u_baseColor : [ 1.0, 0, 0, 1.0 ]; + vec4 u_brightColor : [ 1.0, 0, 0, 1.0 ]; + vec4 u_windowColor : [ 1.0, 0, 0, 1.0 ]; + vec4 u_circleSweepColor; + vec2 u_cityCenter; + float u_circleSweep; + float u_cityMinSize; + float u_circleSweepSpeed; + float u_opacity: 1.0; + float u_near : 0; + float u_far : 1; + float u_time; +}; +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + + +void main() { + vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); + vec4 project_pos = project_position(pos); + + v_texCoord = a_Uv; + + if(u_circleSweep > 0.0) { + vec2 lnglatscale = vec2(0.0); + if(u_CoordinateSystem != COORDINATE_SYSTEM_P20_2) { + lnglatscale = (a_Position.xy - u_cityCenter) * vec2(0.0, 0.135); + } + v_worldDis = length(a_Position.xy + lnglatscale - u_cityCenter); + } + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + } + + float lightWeight = calc_lighting(pos); + // v_Color = a_Color; + v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w); + + setPickingColor(a_PickingColor); } -.mapboxgl-ctrl-logo, -.amap-logo { - display: none !important; +`,gre=function(i){(0,Wt.Z)(f,i);var v=w7(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),C=d.opacity,M=C===void 0?1:C,B=d.baseColor,J=B===void 0?"rgb(16,16,16)":B,ue=d.brightColor,Ue=ue===void 0?"rgb(255,176,38)":ue,it=d.windowColor,Ir=it===void 0?"rgb(30,60,89)":it,Wo=d.time,Ca=Wo===void 0?0:Wo,eu=d.sweep,Bd=eu===void 0?{enable:!1,sweepRadius:1,sweepColor:"rgb(255, 255, 255)",sweepSpeed:.4,sweepCenter:this.cityCenter}:eu,r0={u_baseColor:a0(J),u_brightColor:a0(Ue),u_windowColor:a0(Ir),u_circleSweepColor:[].concat((0,Gd.Z)(a0(Bd.sweepColor).slice(0,3)),[1]),u_cityCenter:Bd.sweepCenter||this.cityCenter,u_circleSweep:Bd.enable?1:0,u_cityMinSize:this.cityMinSize*Bd.sweepRadius,u_circleSweepSpeed:Bd.sweepSpeed,u_opacity:M,u_near:0,u_far:1,u_time:this.layer.getLayerAnimateTime()||Ca},N0=this.getUniformsBufferInfo(r0);return N0}},{key:"calCityGeo",value:function(){var d=(0,_g.Z)(this.layer.getSource().extent,4),C=d[0],M=d[1],B=d[2],J=d[3];if(this.mapService.version==="GAODE2.x"){this.cityCenter=this.mapService.lngLatToCoord([(B+C)/2,(J+M)/2]);var ue=this.mapService.lngLatToCoord([B,J]),Ue=this.mapService.lngLatToCoord([C,M]);this.cityMinSize=Math.sqrt(Math.pow(ue[0]-Ue[0],2)+Math.pow(ue[1]-Ue[1],2))/4}else{var it=B-C,Ir=J-M;this.cityCenter=[(B+C)/2,(J+M)/2],this.cityMinSize=Math.sqrt(Math.pow(it,2)+Math.pow(Ir,2))/4}}},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return this.calCityGeo(),this.initUniformsBuffer(),this.startModelAnimate(),B.abrupt("return",this.buildModels());case 4:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M;return Dv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,this.layer.buildLayerModel({moduleName:"cityBuilding",vertexShader:pre,fragmentShader:S7,triangulation:fT,depth:{enable:!0},inject:this.getInject(),cull:{enable:!0,face:K0.BACK}});case 2:return M=J.sent,J.abrupt("return",[M]);case 4:case"end":return J.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"normal",type:mS.Attribute,descriptor:{name:"a_Normal",shaderLocation:aE.NORMAL,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:3,update:function(C,M,B,J,ue){return ue}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:mS.Attribute,descriptor:{name:"a_Size",shaderLocation:aE.SIZE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:1,update:function(C){var M=C.size,B=M===void 0?10:M;return Array.isArray(B)?[B[0]]:[B]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:mS.Attribute,descriptor:{name:"a_Uv",shaderLocation:aE.UV,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:2,update:function(C,M,B){return[B[3],B[4]]}}})}}]),f}(Gx);function fM(i){var v=mre();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function mre(){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(i){return!1}}var i8=function(i){(0,Wt.Z)(f,i);var v=fM(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M 0.0) { + outputColor = texture(SAMPLER_2D(u_texture), vec2(v_uv.x, 1.0 - v_uv.y)); + outputColor.a *= u_opacity; + } else { + // gl_FragColor = vec4(v_uv, 0.0, u_opacity); + outputColor = vec4(v_Color, u_opacity); + } + outputColor.a *= v_clip; + outputColor = filterColor(outputColor); } -.l7-control-container .l7-control { - position: relative; - z-index: 999; - float: left; - clear: both; - color: #595959; - font-size: 12px; - pointer-events: visiblePainted; - /* IE 9-10 doesn't have auto */ - pointer-events: auto; -} -.l7-control-container .l7-control.l7-control--hide { - display: none; -} -.l7-control-container .l7-top { - top: 0; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - position: absolute; - z-index: 999; - pointer-events: none; -} -.l7-control-container .l7-top .l7-control:not(.l7-control--hide) { - margin-top: 8px; +`,G5=` +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec3 a_Color; +layout(location = 14) in vec2 a_Uv; + +layout(std140) uniform commonUniforms { + float u_opacity; + float u_mapFlag; + float u_terrainClipHeight; +}; + +out vec3 v_Color; +out vec2 v_uv; +out float v_clip; + +#pragma include "projection" +#pragma include "picking" +void main() { + v_Color = a_Color; + v_uv = a_Uv; + + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + + v_clip = 1.0; + if(a_Position.z < u_terrainClipHeight) { + v_clip = 0.0; + } + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy, a_Position.z, 1.0)); + + setPickingColor(a_PickingColor); } -.l7-control-container .l7-right { - right: 0; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - position: absolute; - z-index: 999; - pointer-events: none; +`,bY=function(i){(0,Wt.Z)(f,i);var v=_re(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M0&&arguments[0]!==void 0?arguments[0]:1,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,J=arguments.length>4&&arguments[4]!==void 0?arguments[4]:120,ue=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,Ue=d/2,it=C/2,Ir=Math.floor(M),Wo=Math.floor(B),Ca=Ir+1,eu=Wo+1,Bd=d/Ir,r0=C/Wo,N0=[],fv=[],v1=0;v1 0.0) { + outputColor = texture(SAMPLER_2D(u_texture), gl_PointCoord); + outputColor.a *= u_opacity; + } else { + outputColor = vec4(v_Color, u_opacity); + } } -.l7-control-container .l7-right .l7-control:not(.l7-control--hide) { - margin-right: 8px; +`,eL=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec3 a_Color; + +layout(std140) uniform commonUniforms { + float u_opacity; + float u_mapFlag; + float u_Scale; +}; + +out vec3 v_Color; +out float v_d; + +#pragma include "projection" +void main() { + v_Color = a_Color.xyz; + + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + + v_d = a_Position.z; + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy, a_Position.z, 1.0)); +gl_PointSize = pow((u_Zoom - 1.0), 2.0) * u_Scale; } -.l7-control-container .l7-bottom { - bottom: 0; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - position: absolute; - z-index: 999; - pointer-events: none; +`,XM=function(i){return i.UP="up",i.DOWN="down",i}(XM||{}),wre=function(i){(0,Wt.Z)(f,i);var v=bre(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;MIr&&(g.positions[Wo+2]=it)):(g.positions[Wo+2]-=Ue,g.positions[Wo+2]0&&arguments[0]!==void 0?arguments[0]:10,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:120,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30,J=[],ue=[],Ue=this.mapService,it=this.spriteAnimate===XM.UP?-this.spriteTop:this.spriteTop,Ir=0;Ir 1 \u7684 uv \u8F6C\u6362\u4E3A -1 -> 1 \u7684\u6807\u51C6\u5750\u6807\u7A7A\u95F4\uFF08NDC\uFF09 + + vec4 p1 = vec4(pos, 0.0, 1.0); // x/y \u5E73\u9762\u4E0A\u7684\u70B9\uFF08z == 0\uFF09\u53EF\u4EE5\u8BA4\u4E3A\u662F\u4E09\u7EF4\u4E0A\u7684\u70B9\u88AB\u6295\u5F71\u5230\u5E73\u9762\u540E\u7684\u70B9 + vec4 p2 = vec4(pos, 1.0, 1.0); // \u5E73\u884C\u4E8Ex/y\u5E73\u9762\u3001z==1 \u7684\u5E73\u9762\u4E0A\u7684\u70B9 + + vec4 inverseP1 = u_InverseViewProjectionMatrix * p1; // \u6839\u636E\u89C6\u56FE\u6295\u5F71\u77E9\u9635\u7684\u9006\u77E9\u9635\u5E73\u9762\u4E0A\u7684\u53CD\u7B97\u51FA\u4E09\u7EF4\u7A7A\u95F4\u4E2D\u7684\u70B9\uFF08p1\u5E73\u9762\u4E0A\u7684\u70B9\uFF09 + vec4 inverseP2 = u_InverseViewProjectionMatrix * p2; + + inverseP1 = inverseP1 / inverseP1.w; // \u5F52\u4E00\u5316\u64CD\u4F5C\uFF08\u5F52\u4E00\u5316\u540E\u4E3A\u4E16\u754C\u5750\u6807\uFF09 + inverseP2 = inverseP2 / inverseP2.w; + + float zPos = (0.0 - inverseP1.z) / (inverseP2.z - inverseP1.z); // ?? + vec4 position = inverseP1 + zPos * (inverseP2 - inverseP1); + + vec4 b= vec4(0.5000, 0.0, 1.0, 0.5000); + float fh; + + v_intensity = texture(SAMPLER_2D(u_texture), v_texCoord).r; + fh = toBezier(v_intensity, b).y; + gl_Position = u_ViewProjectionMatrixUncentered * vec4(position.xy, fh * project_pixel(50.), 1.0); + } -.l7-control-container .l7-center .l7-control { - margin-right: 8px; - margin-bottom: 8px; -} -.l7-control-container .l7-row { - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-direction: row; - flex-direction: row; -} -.l7-control-container .l7-row.l7-top { - -webkit-box-align: start; - -ms-flex-align: start; - align-items: flex-start; -} -.l7-control-container .l7-row.l7-bottom { - -webkit-box-align: end; - -ms-flex-align: end; - align-items: flex-end; -} -.l7-control-container .l7-column { - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; -} -.l7-control-container .l7-column.l7-left { - -webkit-box-align: start; - -ms-flex-align: start; - align-items: flex-start; -} -.l7-control-container .l7-column.l7-right { - -webkit-box-align: end; - -ms-flex-align: end; - align-items: flex-end; -} -.l7-button-control { - min-width: 28px; - height: 28px; - background-color: #fff; - border-width: 0; - border-radius: 2px; - outline: 0; - cursor: pointer; - -webkit-transition: all 0.2s; - transition: all 0.2s; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - padding: 0 6px; - -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); - box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); - line-height: 16px; -} -.l7-button-control .l7-iconfont { - fill: #595959; - color: #595959; - width: 16px; - height: 16px; -} -.l7-button-control.l7-button-control--row { - padding: 0 16px 0 13px; -} -.l7-button-control.l7-button-control--row * + .l7-button-control__text { - margin-left: 8px; -} -.l7-button-control.l7-button-control--column { - height: 44px; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; +`,A7=`uniform sampler2D u_texture; // \u70ED\u529B\u5F3A\u5EA6\u56FE +uniform sampler2D u_colorTexture; // \u6839\u636E\u5F3A\u5EA6\u5206\u5E03\u7684\u8272\u5E26 + +layout(std140) uniform commonUniforms { + float u_opacity; + float u_common_uniforms_padding1; + float u_common_uniforms_padding2; + float u_common_uniforms_padding3; +}; +in vec2 v_texCoord; +out vec4 outputColor; + +#pragma include "scene_uniforms" + +float getBlurIndusty() { + float vW = 2.0/ u_ViewportSize.x; + float vH = 2.0/ u_ViewportSize.y; + vec2 vUv = v_texCoord; + float i11 = texture(SAMPLER_2D(u_texture), vec2( vUv.x - 1.0 * vW, vUv.y + 1.0 * vH) ).r; + float i12 = texture(SAMPLER_2D(u_texture), vec2( vUv.x - 0.0 * vW, vUv.y + 1.0 * vH) ).r; + float i13 = texture(SAMPLER_2D(u_texture), vec2( vUv.x + 1.0 * vW, vUv.y + 1.0 * vH) ).r; + + float i21 = texture(SAMPLER_2D(u_texture), vec2( vUv.x - 1.0 * vW, vUv.y) ).r; + float i22 = texture(SAMPLER_2D(u_texture), vec2( vUv.x , vUv.y) ).r; + float i23 = texture(SAMPLER_2D(u_texture), vec2( vUv.x + 1.0 * vW, vUv.y) ).r; + + float i31 = texture(SAMPLER_2D(u_texture), vec2( vUv.x - 1.0 * vW, vUv.y-1.0*vH) ).r; + float i32 = texture(SAMPLER_2D(u_texture), vec2( vUv.x - 0.0 * vW, vUv.y-1.0*vH) ).r; + float i33 = texture(SAMPLER_2D(u_texture), vec2( vUv.x + 1.0 * vW, vUv.y-1.0*vH) ).r; + + return( + i11 + + i12 + + i13 + + i21 + + i21 + + i22 + + i23 + + i31 + + i32 + + i33 + )/9.0; } -.l7-button-control.l7-button-control--column .l7-iconfont { - margin-top: 3px; + + +void main(){ + // float intensity = texture(u_texture, v_texCoord).r; + float intensity = getBlurIndusty(); + vec4 color = texture(SAMPLER_2D(u_colorTexture), vec2(intensity, 0.0)); + outputColor = color; + outputColor.a = color.a * smoothstep(0.,0.1,intensity) * u_opacity; } -.l7-button-control.l7-button-control--column .l7-button-control__text { - margin-top: 3px; - font-size: 10px; - -webkit-transform: scale(0.83333); - transform: scale(0.83333); +`,SZ=` +layout(location = 0) in vec3 a_Position; +layout(location = 14) in vec2 a_Uv; + +layout(std140) uniform commonUniforms { + float u_opacity; + float u_common_uniforms_padding1; + float u_common_uniforms_padding2; + float u_common_uniforms_padding3; +}; + +#pragma include "scene_uniforms" + +out vec2 v_texCoord; +void main() { + v_texCoord = a_Uv; + #ifdef VIEWPORT_ORIGIN_TL + v_texCoord.y = 1.0 - v_texCoord.y; + #endif + + gl_Position = vec4(a_Position.xy, 0, 1.); } -.l7-button-control:not(:disabled):hover { - background-color: #f3f3f3; +`,ZU=`layout(std140) uniform commonUniforms { + float u_radius; + float u_intensity; + float u_common_uniforms_padding1; + float u_common_uniforms_padding2; +}; + +in vec2 v_extrude; +in float v_weight; +out vec4 outputColor; +#define GAUSS_COEF 0.3989422804014327 + +void main(){ + float d = -0.5 * 3.0 * 3.0 * dot(v_extrude, v_extrude); + float val = v_weight * u_intensity * GAUSS_COEF * exp(d); + outputColor = vec4(val, 1., 1., 1.); } -.l7-button-control:not(:disabled):active { - background-color: #f3f3f3; +`,Dre=`layout(location = 0) in vec3 a_Position; +layout(location = 9) in float a_Size; +layout(location = 10) in vec2 a_Dir; + + +layout(std140) uniform commonUniforms { + float u_radius; + float u_intensity; + float u_common_uniforms_padding1; + float u_common_uniforms_padding2; +}; + +out vec2 v_extrude; +out float v_weight; + +#define GAUSS_COEF 0.3989422804014327 + +#pragma include "projection" +#pragma include "picking" + +void main(){ + vec3 picking_color_placeholder = u_PickingColor; + + v_weight = a_Size; + float ZERO = 1.0 / 255.0 / 16.0; + float extrude_x = a_Dir.x * 2.0 -1.0; + float extrude_y = a_Dir.y * 2.0 -1.0; + vec2 extrude_dir = normalize(vec2(extrude_x,extrude_y)); + float S = sqrt(-2.0 * log(ZERO / a_Size / u_intensity / GAUSS_COEF)) / 2.5; + v_extrude = extrude_dir * S; + + vec2 offset = project_pixel(v_extrude * u_radius); + vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0)); + + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xy + offset, 0.0, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); + } } -.l7-button-control:disabled { - background-color: #fafafa; - color: #bdbdbd; - cursor: not-allowed; +`,EZ=e1.isEqual,TZ=(wY=(0,Cg.b2)(),wY(jU=function(i){(0,Wt.Z)(f,i);var v=NO(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M=i.colors.length?null:i.colors[g]),(0,ka.Z)(d,"value",f),d})}}function CY(i){var v=AZ();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function AZ(){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(i){return!1}}var HU=function(i){(0,Wt.Z)(f,i);var v=CY(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M0&&arguments[0]!==void 0?arguments[0]:{},M=this.getModelType();return M==="heatmap"?(this.layerModel&&this.layerModel.render(C),this):this.encodeDataLength<=0&&!this.forceRender?this:(this.hooks.beforeRender.call(),this.models.forEach(function(B){return B.draw({uniforms:d.layerModel.getUninforms(),blend:d.layerModel.getBlend(),stencil:d.layerModel.getStencil(C)})}),this.hooks.afterRender.call(),this)}},{key:"updateModelData",value:function(d){d.attributes&&d.elements?this.models[0].updateAttributesAndElements(d.attributes,d.elements):console.warn("data error")}},{key:"getModelType",value:function(){var d,C=this.styleAttributeService.getLayerStyleAttribute("shape"),M=this.getLayerConfig(),B=M.shape3d,J=this.getSource(),ue=J.data.type,Ue=(C==null||(d=C.scale)===null||d===void 0?void 0:d.field)||"heatmap";return Ue==="heatmap"||Ue==="heatmap3d"?"heatmap":ue==="hexagon"?(B==null?void 0:B.indexOf(Ue))===-1?"hexagon":"grid3d":ue==="grid"?(B==null?void 0:B.indexOf(Ue))===-1?"grid":"grid3d":"heatmap"}},{key:"getLegend",value:function(d){if(this.getModelType()==="heatmap"){if(d!=="color")return{type:void 0,field:void 0,items:[]};var C=this.getLayerConfig().rampColors;return iz(C,d)}else return OS((0,si.Z)(f.prototype),"getLegend",this).call(this,d)}}]),f}(q4);function Mre(i){var v=FO();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function FO(){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(i){return!1}}var SY=`uniform sampler2D u_texture; +layout(std140) uniform commonUniforms { + float u_opacity:1.0; + float u_brightness:1.0; + float u_contrast:1.0; + float u_saturation:1.0; + float u_gamma:1.0; +}; + +in vec2 v_texCoord; +out vec4 outputColor; +vec3 setContrast(vec3 rgb, float contrast) { + vec3 color = mix(vec3(0.5), rgb, contrast); + color = clamp(color, 0.0, 1.0); + return color; } -.l7-button-control:disabled:active { - background-color: #fafafa; +vec3 setSaturation(vec3 rgb, float adjustment) { + const vec3 grayVector = vec3(0.2125, 0.7154, 0.0721); + vec3 intensity = vec3(dot(rgb, grayVector)); + vec3 color = mix(intensity, rgb, adjustment); + color = clamp(color, 0.0, 1.0); + return color; } -.l7-popper { - position: absolute; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - z-index: 5; - color: #595959; +void main() { + vec4 color = texture(SAMPLER_2D(u_texture),vec2(v_texCoord.x,v_texCoord.y)); + //brightness + color.rgb = mix(vec3(0.0, 0.0, 0.0), color.rgb, u_brightness); + //contrast + color.rgb = setContrast(color.rgb, u_contrast); + // saturation + color.rgb = setSaturation(color.rgb, u_saturation); + // gamma + color.rgb = pow(color.rgb, vec3(u_gamma)); + outputColor = color; + outputColor.a *= u_opacity; + if(outputColor.a < 0.01) + discard; } -.l7-popper.l7-popper-hide { - display: none; +`,Ore=`layout(location = 0) in vec3 a_Position; +layout(location = 14) in vec2 a_Uv; + +layout(std140) uniform commonUniforms { + float u_opacity:1.0; + float u_brightness:1.0; + float u_contrast:1.0; + float u_saturation:1.0; + float u_gamma:1.0; +}; + +out vec2 v_texCoord; +#pragma include "projection" +void main() { + v_texCoord = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); + } -.l7-popper .l7-popper-content { - min-height: 28px; - background: #fff; - border-radius: 2px; - -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); - box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); -} -.l7-popper .l7-popper-arrow { - width: 0; - height: 0; - border-width: 4px; - border-style: solid; - border-top-color: transparent; - border-bottom-color: transparent; - border-left-color: transparent; - border-right-color: transparent; - -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); - box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); -} -.l7-popper.l7-popper-left { - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-direction: row; - flex-direction: row; -} -.l7-popper.l7-popper-left .l7-popper-arrow { - border-left-color: #fff; - margin: 10px 0; -} -.l7-popper.l7-popper-right { - -webkit-box-orient: horizontal; - -webkit-box-direction: reverse; - -ms-flex-direction: row-reverse; - flex-direction: row-reverse; -} -.l7-popper.l7-popper-right .l7-popper-arrow { - border-right-color: #fff; - margin: 10px 0; -} -.l7-popper.l7-popper-top { - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; +`,Rre=function(i){(0,Wt.Z)(f,i);var v=Mre(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),C=d.opacity,M=d.brightness,B=d.contrast,J=d.saturation,ue=d.gamma,Ue={u_opacity:Fd(C,1),u_brightness:Fd(M,1),u_contrast:Fd(B,1),u_saturation:Fd(J,1),u_gamma:Fd(ue,1)};this.textures=[this.texture];var it=this.getUniformsBufferInfo(Ue);return it}},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.loadTexture();case 2:return B.abrupt("return",this.buildModels());case 3:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"clearModels",value:function(){var d;(d=this.texture)===null||d===void 0||d.destroy()}},{key:"loadTexture",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J;return Dv().wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return M=this.rendererService.createTexture2D,this.texture=M({height:1,width:1}),B=this.layer.getSource(),Ue.next=5,B.data.images;case 5:J=Ue.sent,this.texture=M({data:J[0],width:J[0].width,height:J[0].height,mag:K0.LINEAR,min:K0.LINEAR});case 7:case"end":return Ue.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M;return Dv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return this.initUniformsBuffer(),J.next=3,this.layer.buildLayerModel({moduleName:"rasterImage",vertexShader:Ore,fragmentShader:SY,triangulation:b7,primitive:K0.TRIANGLES,blend:{enable:!0},depth:{enable:!1},pickingEnabled:!1});case 3:return M=J.sent,J.abrupt("return",[M]);case 5:case"end":return J.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:mS.Attribute,descriptor:{name:"a_Uv",shaderLocation:aE.UV,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:2,update:function(C,M,B){return[B[3],B[4]]}}})}}]),f}(Gx),kre={image:Rre},D7=kre;function EY(i){var v=s8();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function s8(){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(i){return!1}}var oz=function(i){(0,Wt.Z)(f,i);var v=EY(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z))) { + discard; + }; + } + float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 + outputColor = v_color; + if(u_animate.x == Animate && u_line_texture != LineTexture) { + animateSpeed = u_time / u_animate.y; + float alpha =1.0 - fract( mod(1.0- v_lineData.b, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); + alpha = (alpha + u_animate.w -1.0) / u_animate.w; + // alpha = smoothstep(0., 1., alpha); + alpha = clamp(alpha, 0.0, 1.0); + outputColor.a *= alpha; + } + + // \u5F53\u5B58\u5728\u8D34\u56FE\u65F6\u5728\u5E95\u8272\u4E0A\u8D34\u4E0A\u8D34\u56FE + if(u_line_texture == LineTexture) { // while load texture + float arcRadio = smoothstep( 0.0, 1.0, (v_lineData.r / segmentNumber)); + // float arcRadio = smoothstep( 0.0, 1.0, d_distance_ratio); + + float count = v_lineData.g; // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + float time = 0.0; + if(u_animate.x == Animate) { + time = u_time / u_animate.y; + } + float redioCount = arcRadio * count; + + float u = fract(redioCount - time); + float v = v_lineData.a; // \u6A2A\u5411 v + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + + vec4 pattern = texture(SAMPLER_2D(u_texture), uv); + + if(u_animate.x == Animate) { + float currentPlane = floor(redioCount - time); + float textureStep = floor(count * u_animate.z); + float a = mod(currentPlane, textureStep); + if(a < textureStep - 1.0) { + pattern = vec4(0.0); + } + } + + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + outputColor = filterColor(outputColor + pattern); + } else { // replace + pattern.a *= v_color.a; + if(outputColor.a <= 0.0) { + pattern.a = 0.0; + } + outputColor = filterColor(pattern); + } + + } else { + outputColor = filterColor(outputColor); + } +}`,Nre=`#define Animate 0.0 +#define LineTexture 1.0 +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 12) in vec4 a_Instance; +layout(location = 14) in vec2 a_iconMapUV; + +layout(std140) uniform commonUniorm { + vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; + vec4 u_dash_array; + vec4 u_sourceColor; + vec4 u_targetColor; + vec2 u_textSize; + float segmentNumber; + float u_lineDir: 1.0; + float u_icon_step: 100; + float u_line_texture: 0.0; + float u_textureBlend; + float u_blur : 0.9; + float u_line_type: 0.0; + float u_time; + float u_linearColor: 0.0; +}; +out vec4 v_color; +out vec2 v_iconMapUV; +out vec4 v_lineData; +//dash +out vec4 v_dash_array; +out float v_distance_ratio; + + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float bezier3(vec3 arr, float t) { + float ut = 1. - t; + return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; } -.l7-popper.l7-popper-top .l7-popper-arrow { - border-top-color: #fff; - margin: 0 10px; +vec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) { + vec2 center = target - source; + float r = length(center); + float theta = atan(center.y, center.x); + float thetaOffset = arcThetaOffset; + float r2 = r / 2.0 / cos(thetaOffset); + float theta2 = theta + thetaOffset; + vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); + if(u_lineDir == 1.0) { // \u6B63\u5411 + return mid; + } else { // \u9006\u5411 + // (mid + vmin)/2 = (s + t)/2 + vec2 vmid = source + target - mid; + return vmid; + } + // return mid; } -.l7-popper.l7-popper-bottom { - -webkit-box-orient: vertical; - -webkit-box-direction: reverse; - -ms-flex-direction: column-reverse; - flex-direction: column-reverse; +float getSegmentRatio(float index) { + // dash: index / (segmentNumber - 1.); + // normal: smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); + return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); + // return index / (segmentNumber - 1.); } -.l7-popper.l7-popper-bottom .l7-popper-arrow { - border-bottom-color: #fff; - margin: 0 10px; +vec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) { + // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation + vec2 mid = midPoint(source, target, arcThetaOffset); + vec3 x = vec3(source.x, mid.x, target.x); + vec3 y = vec3(source.y, mid.y, target.y); + return vec2(bezier3(x ,t), bezier3(y,t)); } -.l7-popper.l7-popper-start { - -webkit-box-align: start; - -ms-flex-align: start; - align-items: flex-start; +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + return offset; } -.l7-popper.l7-popper-end { - -webkit-box-align: end; - -ms-flex-align: end; - align-items: flex-end; +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); } -.l7-select-control--normal { - padding: 4px 0; + +void main() { + //vs\u4E2D\u8BA1\u7B97\u6E10\u53D8\u8272 + if(u_linearColor==1.0){ + float d_segmentIndex = a_Position.x + 1.0; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E + v_color = mix(u_sourceColor, u_targetColor, d_segmentIndex/segmentNumber); + } + else{ + v_color = a_Color; + } + v_color.a = v_color.a * opacity; + + vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 + vec2 target = a_Instance.ba; // \u7EC8\u70B9 + + + + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + + //\u8BA1\u7B97dashArray\u548CdistanceRatio \u8F93\u51FA\u5230\u7247\u5143 + vec2 s = source; + vec2 t = target; + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + s = unProjCustomCoord(source); + t = unProjCustomCoord(target); + } + float total_Distance = pixelDistance(s, t) / 2.0 * PI; + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / total_Distance; + v_distance_ratio = segmentIndex / segmentNumber; + + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + float d_distance_ratio; + + if(u_animate.x == Animate) { + d_distance_ratio = segmentIndex / segmentNumber; + if(u_lineDir != 1.0) { + d_distance_ratio = 1.0 - d_distance_ratio; + } + } + + v_lineData.b = d_distance_ratio; + + vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, thetaOffset), 0.0, 1.0)); + vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, thetaOffset), 0.0, 1.0)); + + + vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); + + + float d_segmentIndex = a_Position.x + 1.0; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E + v_lineData.r = d_segmentIndex; + + if(LineTexture == u_line_texture) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F + + float arcDistrance = length(source - target); // \u8D77\u59CB\u70B9\u548C\u7EC8\u70B9\u7684\u8DDD\u79BB + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20) { // amap + arcDistrance *= 1000000.0; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { // mapbox + // arcDistrance *= 8.0; + arcDistrance = project_pixel_allmap(arcDistrance); + } + v_iconMapUV = a_iconMapUV; + + float pixelLen = project_pixel_texture(u_icon_step); // \u8D34\u56FE\u6CBF\u5F27\u7EBF\u65B9\u5411\u7684\u957F\u5EA6 - \u968F\u5730\u56FE\u7F29\u653E\u6539\u53D8 + float texCount = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + v_lineData.g = texCount; + + float lineOffsetWidth = length(offset + offset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB + float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB + v_lineData.a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + } + + gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + offset, 0, 1.0)); + + setPickingColor(a_PickingColor); } -.l7-select-control--normal .l7-select-control-item { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - height: 24px; - padding: 0 16px; - font-size: 12px; - line-height: 24px; -} -.l7-select-control--normal .l7-select-control-item > * + * { - margin-left: 6px; -} -.l7-select-control--normal .l7-select-control-item input[type='checkbox'] { - width: 14px; - height: 14px; -} -.l7-select-control--normal .l7-select-control-item:hover { - background-color: #f3f3f3; -} -.l7-select-control--image { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -webkit-box-align: start; - -ms-flex-align: start; - align-items: flex-start; - -webkit-box-sizing: content-box; - box-sizing: content-box; - max-width: 460px; - max-height: 400px; - margin: 12px 0 0 12px; - overflow-x: hidden; - overflow-y: auto; -} -.l7-select-control--image .l7-select-control-item { - position: relative; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-flex: 0; - -ms-flex: 0 0 calc((100% - (12px + 9px) * 2) / 3); - flex: 0 0 calc((100% - (12px + 9px) * 2) / 3); - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-box-sizing: content-box; - box-sizing: content-box; - margin-right: 12px; - margin-bottom: 12px; - overflow: hidden; - font-size: 12px; - border: 1px solid #fff; - border-radius: 2px; -} -.l7-select-control--image .l7-select-control-item img { - width: 100%; - height: 80px; -} -.l7-select-control--image .l7-select-control-item input[type='checkbox'] { - position: absolute; - top: 0; - right: 0; -} -.l7-select-control--image .l7-select-control-item .l7-select-control-item-row { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - line-height: 26px; -} -.l7-select-control--image .l7-select-control-item .l7-select-control-item-row > * + * { - margin-left: 8px; +`,DZ={solid:0,dash:1},Kfe=e1.isNumber,Fre=function(i){(0,Wt.Z)(f,i);var v=TY(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { + flag = 1.; + } + outputColor.a *=flag; + } + + if(u_animate.x == Animate && u_line_texture != LineTexture) { + animateSpeed = u_time / u_animate.y; + float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); + + alpha = (alpha + u_animate.w -1.0) / u_animate.w; + // alpha = smoothstep(0., 1., alpha); + alpha = clamp(alpha, 0.0, 1.0); + outputColor.a *= alpha; + + // u_animate + // x enable + // y duration + // z interval + // w trailLength + } + + if(u_line_texture == LineTexture && u_line_type != LineTypeDash) { // while load texture + // float arcRadio = smoothstep( 0.0, 1.0, (v_segmentIndex / segmentNumber)); + float arcRadio = v_segmentIndex / (segmentNumber - 1.0); + float count = v_line_data.b; // // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + float time = 0.0; + if(u_animate.x == Animate) { + time = u_time / u_animate.y; + } + float redioCount = arcRadio * count; + + float u = fract(redioCount - time); + + float v = v_line_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + vec4 pattern = texture(SAMPLER_2D(u_texture), uv); + + if(u_animate.x == Animate) { + float currentPlane = floor(redioCount - time); + float textureStep = floor(count * u_animate.z); + float a = mod(currentPlane, textureStep); + if(a < textureStep - 1.0) { + pattern = vec4(0.0); + } + } + + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + outputColor = filterColor(outputColor + pattern); + } else { // replace + pattern.a *= v_color.a; + if(outputColor.a <= 0.0) { + pattern.a = 0.0; + discard; + } else { + outputColor = filterColor(pattern); + } + } + + } else { + outputColor = filterColor(outputColor); + } } -.l7-select-control--image .l7-select-control-item.l7-select-control-item-active { - border-color: #0370fe; +`,zre=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 +#define LineTexture 1.0 +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 12) in vec4 a_Instance; +layout(location = 14) in vec2 a_iconMapUV; + + +layout(std140) uniform commonUniorm { + vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; + vec4 u_dash_array: [10.0, 5., 0, 0]; + vec4 u_sourceColor; + vec4 u_targetColor; + vec2 u_textSize; + float u_globel; + float u_globel_radius; + float u_global_height: 10; + float segmentNumber; + float u_line_type: 0.0; + float u_icon_step: 100; + float u_line_texture: 0.0; + float u_textureBlend; + float u_time; + float u_linearColor: 0.0; +}; +out vec4 v_color; +out vec4 v_dash_array; +out float v_segmentIndex; +out vec2 v_iconMapUV; +out vec4 v_line_data; + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float maps (float value, float start1, float stop1, float start2, float stop2) { + return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); } -.l7-select-control-item { - cursor: pointer; + +float getSegmentRatio(float index) { + return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0)); } -.l7-select-control-item input[type='checkbox'] { - margin: 0; - cursor: pointer; + +float paraboloid(vec2 source, vec2 target, float ratio) { + vec2 x = mix(source, target, ratio); + vec2 center = mix(source, target, 0.5); + float dSourceCenter = distance(source, center); + float dXCenter = distance(x, center); + return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); } -.l7-select-control--multiple .l7-select-control-item:hover { - background-color: transparent; + +vec3 getPos(vec2 source, vec2 target, float segmentRatio) { + float vertex_height = paraboloid(source, target, segmentRatio); + + return vec3( + mix(source, target, segmentRatio), + sqrt(max(0.0, vertex_height)) + ); } -.l7-control-logo { - width: 89px; - height: 16px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + + return offset; } -.l7-control-logo img { - height: 100%; - width: 100%; +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); } -.l7-control-logo .l7-control-logo-link { - display: block; - cursor: pointer; + +float torad(float deg) { + return (deg / 180.0) * acos(-1.0); } -.l7-control-logo .l7-control-logo-link img { - cursor: pointer; + +vec3 lglt2xyz(vec2 lnglat) { + float pi = 3.1415926; + // + Math.PI/2 \u662F\u4E3A\u4E86\u5BF9\u9F50\u5750\u6807 + float lng = torad(lnglat.x) + pi / 2.0; + float lat = torad(lnglat.y); + + // \u624B\u52A8\u589E\u52A0\u4E00\u4E9B\u504F\u79FB\uFF0C\u51CF\u8F7B\u9762\u7684\u51B2\u7A81 + float radius = u_globel_radius; + + float z = radius * cos(lat) * cos(lng); + float x = radius * cos(lat) * sin(lng); + float y = radius * sin(lat); + return vec3(x, y, z); } -.l7-control-mouse-location { - background-color: #fff; - border-radius: 2px; - -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); - box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); - padding: 2px 4px; - min-width: 130px; -} -.l7-control-zoom { - overflow: hidden; - border-radius: 2px; - -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); - box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); -} -.l7-control-zoom .l7-button-control { - font-size: 16px; - border-bottom: 1px solid #f0f0f0; - border-radius: 0; - -webkit-box-shadow: 0 0 0; - box-shadow: 0 0 0; -} -.l7-control-zoom .l7-button-control .l7-iconfont { - width: 14px; - height: 14px; -} -.l7-control-zoom .l7-button-control:last-child { - border-bottom: 0; -} -.l7-control-zoom .l7-control-zoom__number { - color: #595959; - padding: 0; -} -.l7-control-zoom .l7-control-zoom__number:hover { - background-color: #fff; -} -.l7-control-scale { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; -} -.l7-control-scale .l7-control-scale-line { - -webkit-box-sizing: border-box; - box-sizing: border-box; - padding: 2px 5px 1px; - overflow: hidden; - color: #595959; - font-size: 10px; - line-height: 1.1; - white-space: nowrap; - background: #fff; - border: 2px solid #000; - border-top: 0; - -webkit-transition: width 0.1s; - transition: width 0.1s; + +void main() { + //vs\u4E2D\u8BA1\u7B97\u6E10\u53D8\u8272 + if(u_linearColor==1.0){ + float d_segmentIndex = a_Position.x + 1.0; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E + v_color = mix(u_sourceColor, u_targetColor, d_segmentIndex/segmentNumber); + } + else{ + v_color = a_Color; + } + v_color.a = v_color.a * opacity; + vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy; + vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy; + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + + float d_distance_ratio; + if(u_line_type == LineTypeDash) { + d_distance_ratio = segmentIndex / segmentNumber; + vec2 s = source; + vec2 t = target; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + s = unProjCustomCoord(source); + t = unProjCustomCoord(target); + } + float total_Distance = pixelDistance(s, t) / 2.0 * PI; + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); + } + if(u_animate.x == Animate) { + d_distance_ratio = segmentIndex / segmentNumber; + } + v_line_data.g = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + vec3 curr = getPos(source, target, segmentRatio); + vec3 next = getPos(source, target, nextSegmentRatio); + vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y); + // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); + + + v_segmentIndex = a_Position.x; + if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F + + float arcDistrance = length(source - target); + float pixelLen = project_pixel_texture(u_icon_step); + v_line_data.b = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + vec2 projectOffset = project_pixel(offset); + float lineOffsetWidth = length(projectOffset + projectOffset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB + float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB + v_line_data.a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + v_iconMapUV = a_iconMapUV; + } + + + gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + project_pixel(offset), curr.z * thetaOffset, 1.0)); + + // \u5730\u7403\u6A21\u5F0F + if(u_globel > 0.0) { + vec3 startLngLat = lglt2xyz(a_Instance.rg); + vec3 endLngLat = lglt2xyz(a_Instance.ba); + float globalRadius = length(startLngLat); + + vec3 lineDir = normalize(endLngLat - startLngLat); + vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); + + // \u7EBF\u7684\u504F\u79FB + vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; + // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB + float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; + // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 + float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; + // \u5730\u7403\u70B9\u4F4D + vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; + + gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); + } + + + setPickingColor(a_PickingColor); } -.l7-control-scale .l7-control-scale-line + .l7-control-scale .l7-control-scale-line { - margin-top: -2px; - border-top: 2px solid #777; - border-bottom: none; +`,$re={solid:0,dash:1},P7=function(i){(0,Wt.Z)(f,i);var v=AY(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M1&&arguments[1]!==void 0?arguments[1]:0,f=arguments.length>2?arguments[2]:void 0,g=(0,mC.Z)(f.source)==="object"?f.source.type:f.source,d=(0,mC.Z)(f.target)==="object"?f.target.type:f.target,C=(0,mC.Z)(f.source)==="object"?f.source:{},M=C.width,B=M===void 0?g?XR[g]:0:M,J=C.height,ue=J===void 0?2:J,Ue=(0,mC.Z)(f.target)==="object"?f.target:{},it=Ue.width,Ir=it===void 0?d?XR[d]:0:it,Wo=Ue.height,Ca=Wo===void 0?2:Wo;return{vertices:[0,IL,1*B].concat((0,Gd.Z)(i),[1,IL,-1*Ir],(0,Gd.Z)(i),[1,-IL,-1*Ir],(0,Gd.Z)(i),[0,-IL,1*B],(0,Gd.Z)(i),[0,IL,1*B],(0,Gd.Z)(i),[1,IL,-1*Ir],(0,Gd.Z)(i),[1,-IL,-1*Ir],(0,Gd.Z)(i),[0,-IL,1*B],(0,Gd.Z)(i)),outLineIndices:[0,1,2,0,2,3].map(function(eu){return eu+v}),indices:[4,5,6,4,6,7].map(function(eu){return eu+v}),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 hN(i,v){var f=(0,mC.Z)(i)==="object"?i.type:i,g=v==="source"?1:-1,d=(0,mC.Z)(i)==="object"?i:{};switch(f){case"circle":return Ure(g,d);case"triangle":return PZ(g,d);case"diamond":return J5(g,d);case"rect":return DY(g,d);case"classic":return IY(g,d);case"halfTriangle":return IZ(g,d);default:return{vertices:[],indices:[],normals:[],dimensions:2,outLineIndices:[],outLineNormals:[]}}}function FT(i){var v=i.coordinates.flat(),f=1,g=1;return{vertices:[1,0,0].concat((0,Gd.Z)(v),[1,2,-3],(0,Gd.Z)(v),[1,1,-3],(0,Gd.Z)(v),[0,1,0],(0,Gd.Z)(v),[0,0,0],(0,Gd.Z)(v),[1,0,0],(0,Gd.Z)(v),[1,2,-3],(0,Gd.Z)(v),[1,1,-3],(0,Gd.Z)(v),[0,1,0],(0,Gd.Z)(v),[0,0,0],(0,Gd.Z)(v)),normals:[-f,2*g,1,2*g,-g,1,g,-g,1,g,-g,1,-f,-g,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 PY(i,v){return v?LY(i,v):FT(i)}function LY(i,v){var f=i.coordinates.flat(),g=v,d=g.target,C=d===void 0?"classic":d,M=g.source,B=M===void 0?"circle":M,J=MY(hN(B,"source"),f,0,0),ue=Vre(f,J.vertices.length/7,v),Ue=MY(hN(C,"target"),f,1,J.vertices.length/7+ue.vertices.length/7),it={vertices:[].concat((0,Gd.Z)(J.vertices),(0,Gd.Z)(ue.vertices),(0,Gd.Z)(Ue.vertices)),indices:[].concat((0,Gd.Z)(J.outLineIndices),(0,Gd.Z)(ue.outLineIndices),(0,Gd.Z)(Ue.outLineIndices),(0,Gd.Z)(J.indices),(0,Gd.Z)(ue.indices),(0,Gd.Z)(Ue.indices)),normals:[].concat((0,Gd.Z)(J.normals),(0,Gd.Z)(ue.normals),(0,Gd.Z)(Ue.normals)),size:7};return it}function MY(i,v){for(var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=[],C=i.vertices,M=i.indices,B=i.dimensions,J=i.outLineIndices,ue=0;ue=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,`; -`):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; - -`):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),`; - #endif +`,Gre=function(i){(0,Wt.Z)(f,i);var v=jre(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),C=d.gapWidth,M=C===void 0?2:C,B=d.strokeWidth,J=B===void 0?1:B,ue=d.strokeOpacity,Ue=ue===void 0?1:ue,it={u_gap_width:M,u_stroke_width:J,u_stroke_opacity:Ue},Ir=this.getUniformsBufferInfo(it);return Ir}},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return this.initUniformsBuffer(),B.abrupt("return",this.buildModels());case 2:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M;return Dv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,this.layer.buildLayerModel({moduleName:"flow_line",vertexShader:Hre,fragmentShader:Zre,inject:this.getInject(),triangulation:PY,styleOption:this.layer.getLayerConfig().symbol,primitive:K0.TRIANGLES,depth:{enable:!1},pick:!1});case 2:return M=J.sent,J.abrupt("return",[M]);case 4:case"end":return J.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:mS.Attribute,descriptor:{name:"a_Size",shaderLocation:aE.SIZE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:2,update:function(C){var M=C.size,B=M===void 0?1:M;return Array.isArray(B)?[B[0],B[1]]:[B,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:mS.Attribute,descriptor:{name:"a_Instance",shaderLocation:12,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:4,update:function(C,M,B){return[B[3],B[4],B[5],B[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:mS.Attribute,descriptor:{name:"a_Normal",shaderLocation:aE.NORMAL,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:3,update:function(C,M,B,J,ue){return ue}}})}}]),f}(Gx);function BO(i){var v=Kre();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function Kre(){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(i){return!1}}var Xre=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 +#define LineTexture 1.0 - `)});var m=u.length?` -layout(std140) uniform AttributeUniforms { -`.concat(u.join(` -`),` +uniform sampler2D u_texture; +layout(std140) uniform commonUniorm { + vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; + vec4 u_dash_array: [10.0, 5., 0, 0]; + vec4 u_sourceColor; + vec4 u_targetColor; + vec2 u_textSize; + float segmentNumber; + float u_line_type: 0.0; + float u_icon_step: 100; + float u_line_texture: 0.0; + float u_textureBlend; + float u_time; + float u_linearColor: 0; }; - `):"";c+=m;var E="";return this.layer.enableShaderEncodeStyles.forEach(function(L){E+=` - - #ifdef USE_ATTRIBUTE_`.concat(L.toUpperCase(),` - `).concat(El[L]," ").concat(L," = a_").concat(L.charAt(0).toUpperCase()+L.slice(1),`; - #else - `).concat(El[L]," ").concat(L," = u_").concat(L,`; - #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;Oe (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { + // \u5B9E\u7EBF\u90E8\u5206 + } else { + // \u865A\u7EBF\u90E8\u5206 + discard; + }; + } -vec3 fog(vec3 color, vec3 fogColor, float depth){ - float fogFactor=clamp(depth,0.0,1.0); - vec3 output_color=mix(fogColor,color,fogFactor); - return output_color; -} + // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u52A8\u753B\u6A21\u5F0F + if(u_animate.x == Animate) { + animateSpeed = u_time / u_animate.y; + float alpha =1.0 - fract( mod(1.0- v_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); + alpha = (alpha + u_animate.w -1.0) / u_animate.w; + alpha = smoothstep(0., 1., alpha); + outputColor.a *= alpha; + } -float sdRect(vec2 p, vec2 sz) { - vec2 d = abs(p) - sz; - float outside = length(max(d, 0.)); - float inside = min(max(d.x, d.y), 0.); - return outside + inside; -} + // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u8D34\u56FE + if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { + float arcRadio = smoothstep( 0.0, 1.0, (d_segmentIndex / (segmentNumber - 1.0))); + // float arcRadio = d_segmentIndex / (segmentNumber - 1.0); + float count = v_line_data.b; // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + float u = fract(arcRadio * count - animateSpeed * count); + // float u = fract(arcRadio * count - animateSpeed); + if(u_animate.x == Animate) { + u = outputColor.a/v_color.a; + } -void main() { - gl_FragColor = v_Color; - vec3 baseColor = u_baseColor.xyz; - vec3 brightColor = u_brightColor.xyz; - vec3 windowColor = u_windowColor.xyz; - float targetColId = 5.; - float depth = 1.0 - LinearizeDepth() / u_far * u_Zoom; - vec3 fogColor = vec3(23.0/255.0,31.0/255.0,51.0/255.0); - if(v_texCoord.x < 0.) { //\u9876\u90E8\u989C\u8272 - vec3 foggedColor = fog(baseColor.xyz + vec3(0.12*0.9,0.2*0.9,0.3*0.9),fogColor,depth); - gl_FragColor = vec4( foggedColor, v_Color.w); - }else { // \u4FA7\u9762\u989C\u8272 - vec2 st = v_texCoord; - vec2 UvScale = v_texCoord; - float tStep = min(0.08,max(0.05* (18.0-u_Zoom),0.02)); - float tStart = 0.25 * tStep; - float tEnd = 0.75 * tStep; - float u = mod(UvScale.x, tStep); - float v = mod(UvScale.y, tStep); - float ux = floor(UvScale.x/tStep); - float uy = floor(UvScale.y/tStep); - float n = random(vec2(ux,uy)); - float lightP = u_time; - float head = 1.0- step(0.005,st.y); - /*step3*/ - // \u5C06\u7A97\u6237\u989C\u8272\u548C\u5899\u9762\u989C\u8272\u533A\u522B\u5F00\u6765 - float sU = step(tStart, u) - step(tEnd, u); - float sV = step(tStart, v) - step(tEnd, v); - vec2 windowSize = vec2(abs(tEnd-tStart),abs(tEnd-tStart)); - float dist = sdRect(vec2(u,v), windowSize); - float s = sU * sV; - - float curColId = floor(UvScale.x / tStep); - float sCol = step(targetColId - 0.2, curColId) - step(targetColId + 0.2, curColId); + float v = v_line_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - float mLightP = mod(lightP, 2.); - float sRow = step(mLightP - 0.2, st.y) - step(mLightP, st.y); - if(ux == targetColId){ - n =0.; - } - float timeP = min(0.75, abs ( sin(u_time/3.0) ) ); - float hot = smoothstep(1.0,0.0,timeP); - vec3 color = mix(baseColor, getWindowColor(n,hot,brightColor,windowColor), s); - //vec3 color = mix(baseColor, getWindowColor(n,hot,brightColor,windowColor), 1.0); - float sFinal = s * sCol * sRow; - color += mix(baseColor, brightColor, sFinal*n); - if (st.y<0.01){ - color = baseColor; - } - if(head ==1.0) { // \u9876\u90E8\u4EAE\u7EBF - color = brightColor; + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + vec4 pattern = texture(SAMPLER_2D(u_texture), uv); + + // \u8BBE\u7F6E\u8D34\u56FE\u548C\u5E95\u8272\u7684\u53E0\u52A0\u6A21\u5F0F + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + outputColor = filterColor(outputColor + pattern); + } else { // replace + pattern.a *= v_color.a; + if(outputColor.a <= 0.0) { + pattern.a = 0.0; } - color = color * v_Color.rgb; + outputColor = filterColor(pattern); + } + } else { + outputColor = filterColor(outputColor); + } - vec3 foggedColor = fog(color,fogColor,depth); + // gl_FragColor = filterColor(gl_FragColor); +}`,Yre=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 +#define LineTexture 1.0 - gl_FragColor = vec4(foggedColor,1.0); - } +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 12) in vec4 a_Instance; +layout(location = 14) in vec2 a_iconMapUV; +layout(std140) uniform commonUniorm { + vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; + vec4 u_dash_array: [10.0, 5., 0, 0]; + vec4 u_sourceColor; + vec4 u_targetColor; + vec2 u_textSize; + float segmentNumber; + float u_line_type: 0.0; + float u_icon_step: 100; + float u_line_texture: 0.0; + float u_textureBlend; + float u_time; + float u_linearColor: 0; +}; - if(u_circleSweep > 0.0 && v_worldDis < u_cityMinSize) { - float r = fract(((v_worldDis/u_cityMinSize) - u_time * u_circleSweepSpeed) * 2.0); - gl_FragColor.rgb += r * r * u_circleSweepColor; - } - - gl_FragColor.a *= u_opacity; - gl_FragColor = filterColor(gl_FragColor); -} -`,qV=`precision highp float; +out vec4 v_dash_array; +out vec4 v_color; +out vec2 v_iconMapUV; +out vec4 v_line_data; +out float v_distance_ratio; -#define ambientRatio 0.5 -#define diffuseRatio 0.3 -#define specularRatio 0.2 +#pragma include "projection" +#pragma include "project" +#pragma include "picking" -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Normal; -attribute float a_Size; -uniform mat4 u_ModelMatrix; +float maps (float value, float start1, float stop1, float start2, float stop2) { + return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); +} -attribute vec2 a_Uv; -varying vec2 v_texCoord; +float getSegmentRatio(float index) { + return index / (segmentNumber - 1.); +} -varying vec4 v_Color; +float paraboloid(vec2 source, vec2 target, float ratio) { + vec2 x = mix(source, target, ratio); + vec2 center = mix(source, target, 0.5); + float dSourceCenter = distance(source, center); + float dXCenter = distance(x, center); + return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); +} -uniform float u_circleSweep; -uniform vec2 u_cityCenter; +vec3 getPos(vec2 source, vec2 target, float segmentRatio) { + float vertex_height = paraboloid(source, target, segmentRatio); -varying float v_worldDis; + return vec3( + mix(source, target, segmentRatio), + sqrt(max(0.0, vertex_height)) + ); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size)/ 2.0; + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} +float getAngularDist (vec2 source, vec2 target) { + vec2 delta = source - target; + vec2 sin_half_delta = sin(delta / 2.0); + float a = + sin_half_delta.y * sin_half_delta.y + + cos(source.y) * cos(target.y) * + sin_half_delta.x * sin_half_delta.x; + return 2.0 * atan(sqrt(a), sqrt(1.0 - a)); +} -#pragma include "projection" -#pragma include "light" -#pragma include "picking" +vec2 midPoint(vec2 source, vec2 target) { + vec2 center = target - source; + float r = length(center); + float theta = atan(center.y, center.x); + float thetaOffset = 0.314; + float r2 = r / 2.0 / cos(thetaOffset); + float theta2 = theta + thetaOffset; + vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); + return mid; +} +float bezier3(vec3 arr, float t) { + float ut = 1. - t; + return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; +} +vec2 interpolate (vec2 source, vec2 target, float angularDist, float t) { + // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + vec2 mid = midPoint(source, target); + vec3 x = vec3(source.x, mid.x, target.x); + vec3 y = vec3(source.y, mid.y, target.y); + return vec2(bezier3(x ,t), bezier3(y,t)); + } + else { + if(abs(angularDist - PI) < 0.001) { + return (1.0 - t) * source + t * target; + } + float a = sin((1.0 - t) * angularDist) / sin(angularDist); + float b = sin(t * angularDist) / sin(angularDist); + vec2 sin_source = sin(source); + vec2 cos_source = cos(source); + vec2 sin_target = sin(target); + vec2 cos_target = cos(target); + float x = a * cos_source.y * cos_source.x + b * cos_target.y * cos_target.x; + float y = a * cos_source.y * sin_source.x + b * cos_target.y * sin_target.x; + float z = a * sin_source.y + b * sin_target.y; + return vec2(atan(y, x), atan(z, sqrt(x * x + y * y))); + } +} void main() { - vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); - vec4 project_pos = project_position(pos); - - v_texCoord = a_Uv; + v_color = a_Color; + v_color.a = v_color.a * opacity; + vec2 source = radians(a_Instance.rg); + vec2 target = radians(a_Instance.ba); + float angularDist = getAngularDist(source, target); + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - if(u_circleSweep > 0.0) { - vec2 lnglatscale = vec2(0.0); - if(u_CoordinateSystem != COORDINATE_SYSTEM_P20_2) { - lnglatscale = (a_Position.xy - u_cityCenter) * vec2(0.0, 0.135); + if(u_line_type == LineTypeDash) { + v_distance_ratio = segmentIndex / segmentNumber; + vec2 s = source; + vec2 t = target; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + s = unProjCustomCoord(source); + t = unProjCustomCoord(target); } - v_worldDis = length(a_Position.xy + lnglatscale - u_cityCenter); + float total_Distance = pixelDistance(s, t) / 2.0 * PI; + total_Distance = total_Distance*16.0; // total_Distance*16.0 \u8C03\u6574\u9ED8\u8BA4\u7684\u6548\u679C + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / total_Distance; } - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + + if(u_animate.x == Animate) { + v_distance_ratio = segmentIndex / segmentNumber; } - float lightWeight = calc_lighting(pos); - // v_Color = a_Color; - v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w); + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + v_distance_ratio = segmentIndex / segmentNumber; + vec4 curr = project_position(vec4(degrees(interpolate(source, target, angularDist, segmentRatio)), 0.0, 1.0)); + vec4 next = project_position(vec4(degrees(interpolate(source, target, angularDist, nextSegmentRatio)), 0.0, 1.0)); + // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); + vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); + // vec4 project_pos = project_position(vec4(curr.xy, 0, 1.0)); + // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, curr.z, 1.0)); + + v_line_data.g = a_Position.x; // \u8BE5\u9876\u70B9\u5728\u5F27\u7EBF\u4E0A\u7684\u5206\u6BB5\u6392\u5E8F + if(LineTexture == u_line_texture) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F + // float mapZoomScale = u_CoordinateSystem !== COORDINATE_SYSTEM_P20_2?10000000.0:1.0; + float d_arcDistrance = length(source - target); + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20) { // amap + d_arcDistrance = d_arcDistrance * 1000000.0; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { // mapbox + d_arcDistrance = project_pixel_allmap(d_arcDistrance); + } + float d_pixelLen = project_pixel(u_icon_step)/8.0; + v_line_data.b = floor(d_arcDistrance/d_pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + float lineOffsetWidth = length(offset + offset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB + float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB + v_line_data.a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + v_iconMapUV = a_iconMapUV; + } + + gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + offset, 0, 1.0)); setPickingColor(a_PickingColor); } -`,ax=function(o){(0,lt.Z)(l,o);var d=iD(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.baseColor,Z=L===void 0?"rgb(16,16,16)":L,ne=u.brightColor,xe=ne===void 0?"rgb(255,176,38)":ne,Oe=u.windowColor,wt=Oe===void 0?"rgb(30,60,89)":Oe,Bt=u.time,wn=Bt===void 0?0:Bt,Rn=u.sweep,Pr=Rn===void 0?{enable:!1,sweepRadius:1,sweepColor:"rgb(255, 255, 255)",sweepSpeed:.4,sweepCenter:this.cityCenter}:Rn;return{u_cityCenter:Pr.sweepCenter||this.cityCenter,u_cityMinSize:this.cityMinSize*Pr.sweepRadius,u_circleSweep:Pr.enable?1:0,u_circleSweepColor:mi(Pr.sweepColor).slice(0,3),u_circleSweepSpeed:Pr.sweepSpeed,u_opacity:E,u_baseColor:mi(Z),u_brightColor:mi(xe),u_windowColor:mi(wt),u_time:this.layer.getLayerAnimateTime()||wn}}},{key:"calCityGeo",value:function(){var u=(0,Br.Z)(this.layer.getSource().extent,4),m=u[0],E=u[1],L=u[2],Z=u[3];if(this.mapService.version==="GAODE2.x"){this.cityCenter=this.mapService.lngLatToCoord([(L+m)/2,(Z+E)/2]);var ne=this.mapService.lngLatToCoord([L,Z]),xe=this.mapService.lngLatToCoord([m,E]);this.cityMinSize=Math.sqrt(Math.pow(ne[0]-xe[0],2)+Math.pow(ne[1]-xe[1],2))/4}else{var Oe=L-m,wt=Z-E;this.cityCenter=[(L+m)/2,(Z+E)/2],this.cityMinSize=Math.sqrt(Math.pow(Oe,2)+Math.pow(wt,2))/4}}},{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 this.calCityGeo(),this.startModelAnimate(),L.abrupt("return",this.buildModels());case 3: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 Z.next=2,this.layer.buildLayerModel({moduleName:"cityBuilding",vertexShader:qV,fragmentShader:YV,triangulation:E4,depth:{enable:!0},cull:{enable:!0,face:Di.BACK}});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:"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:"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?10:E;return Array.isArray(L)?[L[0]]:[L]}}}),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);function JV(o){var d=zT();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 zT(){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 QV=function(o){(0,lt.Z)(l,o);var d=JV(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z))) { + // \u865A\u7EBF\u90E8\u5206 + discard; + }; + } + float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 + float d_distance_ratio = v_texture_data.r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + if(u_linearDir < 1.0) { + d_distance_ratio = v_texture_data.a; + } + if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 + outputColor = mix(u_sourceColor, u_targetColor, d_distance_ratio); + outputColor.a *= v_color.a; + } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 + outputColor = v_color; + } + // anti-alias + // float blur = 1.0 - smoothstep(u_blur, 1., length(v_normal.xy)); + if(u_animate.x == Animate) { + animateSpeed = u_time / u_animate.y; + float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + animateSpeed); + alpha = (alpha + u_animate.w -1.0) / u_animate.w; + alpha = smoothstep(0., 1., alpha); + outputColor.a *= alpha; + } - float raiseHeight = u_raisingHeight; - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - raiseHeight = u_raisingHeight * mapboxZoomScale; - } + if(u_line_texture == LineTexture) { // while load texture + float aDistance = v_texture_data.g; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB + float d_texPixelLen = v_texture_data.b; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + float u = fract(mod(aDistance, d_texPixelLen)/d_texPixelLen - animateSpeed); + float v = v_texture_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - // \u8BA1\u7B97\u7ECF\u7EAC\u5EA6\u70B9\u4F4D\u5750\u6807 - vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0)); + // v = max(smoothstep(0.95, 1.0, v), v); + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + vec4 pattern = texture(SAMPLER_2D(u_texture), uv); - // \u8BA1\u7B97\u7ED5 z \u8F74\u65CB\u8F6C\u540E\u7684\u504F\u79FB - vec2 offsetXY = project_pixel(u_RotateMatrix * vec2(extrude.x * u_size.x, 0.0)); - // \u7ED5 z \u8F74\u65CB\u8F6C - float x = project_pos.x + offsetXY.x; - float y = project_pos.y + offsetXY.y; - // z \u8F74\u4E0D\u53C2\u4E0E\u65CB\u8F6C - float z = project_pixel(extrude.y * u_size.y + raiseHeight); + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + outputColor += pattern; + } else { // replace + pattern.a *= v_color.a; + if(outputColor.a <= 0.0) { + pattern.a = 0.0; + } + outputColor = pattern; + } + } - gl_Position = project_common_position_to_clipspace_v2(vec4(x , y, z , 1.0)); + float v = v_texture_data.a; + float strokeWidth = min(0.5, u_strokeWidth); + // \u7ED8\u5236 border + if(strokeWidth > 0.01) { + float borderOuterWidth = strokeWidth / 2.0; - setPickingColor(a_PickingColor); -} -`,tj=function(o){(0,lt.Z)(l,o);var d=UT(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E= 1.0 - strokeWidth || v <= strokeWidth) { + if(v > strokeWidth) { // \u5916\u4FA7 + float linear = smoothstep(0.0, 1.0, (v - (1.0 - strokeWidth))/strokeWidth); + // float linear = step(0.0, (v - (1.0 - borderWidth))/borderWidth); + outputColor.rgb = mix(outputColor.rgb, v_stroke.rgb, linear); + } else if(v <= strokeWidth) { + float linear = smoothstep(0.0, 1.0, v/strokeWidth); + outputColor.rgb = mix(v_stroke.rgb, outputColor.rgb, linear); + } + } -#pragma include "picking" -void main() { - // gl_FragColor = vec4(v_Color, u_opacity); - if(u_mapFlag > 0.0) { - gl_FragColor = texture2D(u_texture, vec2(v_uv.x, 1.0 - v_uv.y)); - gl_FragColor.a *= u_opacity; + if(v < borderOuterWidth) { + outputColor.a = mix(0.0, outputColor.a, v/borderOuterWidth); + } else if(v > 1.0 - borderOuterWidth) { + outputColor.a = mix(outputColor.a, 0.0, (v - (1.0 - borderOuterWidth))/borderOuterWidth); + } + } + + // blur + float blurV = v_texture_data.a; + if(blurV < 0.5) { + outputColor.a *= mix(u_blur.r, u_blur.g, blurV/0.5); } else { - // gl_FragColor = vec4(v_uv, 0.0, u_opacity); - gl_FragColor = vec4(v_Color, u_opacity); + outputColor.a *= mix(u_blur.g, u_blur.b, (blurV - 0.5)/0.5); } - gl_FragColor.a *= v_clip; - gl_FragColor = filterColor(gl_FragColor); + + outputColor = filterColor(outputColor); } -`,g7=`precision highp float; -uniform mat4 u_ModelMatrix; +`,MP=` +#define Animate 0.0 -uniform float u_opacity; -uniform float u_terrainClipHeight; +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in vec2 a_Size; +layout(location = 10) in vec3 a_DistanceAndIndexAndMiter; +layout(location = 13) in vec4 a_Normal_Total_Distance; +layout(location = 14) in vec2 a_iconMapUV; + +layout(std140) uniform commonUniorm { + vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; + vec4 u_dash_array; + vec4 u_blur; + vec4 u_sourceColor; + vec4 u_targetColor; + vec2 u_textSize; + float u_icon_step: 100; + float u_heightfixed: 0.0; + float u_vertexScale: 1.0; + float u_raisingHeight: 0.0; + float u_strokeWidth: 0.0; + float u_textureBlend; + float u_line_texture; + float u_linearDir: 1.0; + float u_linearColor: 0; + float u_time; +}; -attribute vec3 a_Position; -attribute vec2 a_Uv; -attribute vec3 a_Color; -varying vec3 v_Color; -varying vec2 v_uv; -varying float v_clip; +out vec4 v_color; +out vec4 v_stroke; +//dash +out vec4 v_dash_array; +out float v_d_distance_ratio; +// texV \u7EBF\u56FE\u5C42 - \u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\uFF08\u7EBF\u7684\u5BBD\u5EA6\u65B9\u5411\uFF09 +out vec2 v_iconMapUV; +out vec4 v_texture_data; #pragma include "projection" #pragma include "picking" -void main() { - v_Color = a_Color; - v_uv = a_Uv; - - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - - v_clip = 1.0; - if(a_Position.z < u_terrainClipHeight) { - v_clip = 0.0; - } - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy, a_Position.z, 1.0)); - - setPickingColor(a_PickingColor); -} -`,nj=function(o){(0,lt.Z)(l,o);var d=lO(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]: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;Ds 0.0) { - gl_FragColor = texture2D(u_texture, gl_PointCoord); - gl_FragColor.a *= u_opacity; - } else { - gl_FragColor = vec4(v_Color, u_opacity); - } -} -`,$T=`precision highp float; + v_color = a_Color; + v_color.a *= opacity; + v_stroke = stroke; -attribute vec3 a_Position; -attribute vec3 a_Color; + vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal); + + vec2 offset = project_pixel(size.xy); -uniform mat4 u_ModelMatrix; -uniform float u_opacity; -uniform float u_Scale; -varying vec3 v_Color; -varying float v_d; + float lineDistance = a_DistanceAndIndex.x; + float currentLinePointRatio = lineDistance / a_Total_Distance; + -#pragma include "projection" -void main() { - v_Color = a_Color; + float lineOffsetWidth = length(offset + offset * sign(a_Miter)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB\uFF08\u5411\u4E24\u4FA7\u504F\u79FB\u7684\u548C\uFF09 + float linePixelSize = project_pixel(a_Size.x) * 2.0; // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB \u5355\u4FA7 * 2 + float texV = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - vec4 project_pos = project_position(vec4(a_Position, 1.0)); + v_texture_data = vec4(currentLinePointRatio, lineDistance, d_texPixelLen, texV); + // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 - v_d = a_Position.z; + vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy, a_Position.z, 1.0)); -gl_PointSize = pow((u_Zoom - 1.0), 2.0) * u_Scale; -} -`,aD=function(o){return o.UP="up",o.DOWN="down",o}(aD||{}),ij=function(o){(0,lt.Z)(l,o);var d=PC(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;Ewt&&(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;wt 0.0) { + lineHeight *= mapboxZoomScale; + } + + } else { + // amap + h += u_raisingHeight; + // lineHeight \u9876\u70B9\u504F\u79FB\u9AD8\u5EA6 + if(u_heightfixed < 1.0) { + lineHeight *= pow(2.0, 20.0 - u_Zoom); + } + } - gl_FragColor = filterColor(gl_FragColor); + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight + h, 1.0)); + } + + setPickingColor(a_PickingColor); } -`,D4=function(o){(0,lt.Z)(l,o);var d=uO(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=u.coverage,L=u.angle;return{u_opacity:m||1,u_coverage:E||.9,u_angle:L||0,u_radius:[this.layer.getSource().data.xOffset,this.layer.getSource().data.yOffset]}}},{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 Z.next=2,this.layer.buildLayerModel({moduleName:"heatmapGrid",vertexShader:aj,fragmentShader:lj,triangulation:aO,primitive:Di.TRIANGLES,depth:{enable:!1}});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:Ih.Attribute,descriptor:{name:"a_Pos",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(m){var E=m.version==="GAODE2.x"?m.originCoordinates:m.coordinates;return[E[0],E[1],0]}}})}}]),l}(ec);function dO(o){var d=_M();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 _M(){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 I4=`precision highp float; -// \u591A\u8FB9\u5F62\u9876\u70B9\u5750\u6807 -attribute vec3 a_Position; -// \u591A\u8FB9\u5F62\u7ECF\u7EAC\u5EA6\u5750\u6807 -attribute vec3 a_Pos; - -attribute vec3 a_Normal; -attribute float a_Size; -attribute vec4 a_Color; -uniform vec2 u_radius; -uniform float u_coverage: 0.9; -uniform float u_angle: 0; -uniform mat4 u_ModelMatrix; +`,a8={solid:0,dash:1},fN=function(i){(0,Wt.Z)(f,i);var v=qre(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z))) { + // \u865A\u7EBF\u90E8\u5206 + discard; + }; + } + if(u_linearColor==1.0){ + outputColor = mix(u_sourceColor, u_targetColor, v_distanceScale); + outputColor.a *= v_color.a; // \u5168\u5C40\u900F\u660E\u5EA6 + } + else{ + outputColor = v_color; + } +} +`,XU=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in vec4 a_SizeDistanceAndTotalDistance; -uniform vec2 u_sceneCenterMercator; +layout(std140) uniform commonUniorm { + vec4 u_sourceColor; + vec4 u_targetColor; + vec4 u_dash_array; + float u_vertexScale: 1.0; + float u_linearColor: 0; +}; #pragma include "projection" -#pragma include "project" -#pragma include "light" #pragma include "picking" +out vec4 v_color; +out float v_distanceScale; +out vec4 v_dash_array; void main() { - mat2 rotationMatrix = mat2(cos(u_angle), sin(u_angle), -sin(u_angle), cos(u_angle)); - vec2 offset =(vec2(a_Position.xy * u_radius * rotationMatrix * u_coverage)); + //dash\u8F93\u51FA + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / a_SizeDistanceAndTotalDistance.a; + + v_color = a_Color; + v_distanceScale = a_SizeDistanceAndTotalDistance.b / a_SizeDistanceAndTotalDistance.a; + v_color.a = v_color.a * opacity; + vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); + float h = float(a_Position.z) * u_vertexScale; // \u7EBF\u9876\u70B9\u7684\u9AD8\u5EA6 - \u517C\u5BB9\u4E0D\u5B58\u5728\u7B2C\u4E09\u4E2A\u6570\u503C\u7684\u60C5\u51B5 if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - - vec2 lnglat = unProjectFlat(a_Pos.xy + offset); // \u7ECF\u7EAC\u5EA6 - vec2 customLnglat = customProject(lnglat) - u_sceneCenterMercator; // \u5C06\u7ECF\u7EAC\u5EA6\u8F6C\u6362\u4E3A\u9AD8\u5FB72.0\u9700\u8981\u7684\u5E73\u9762\u5750\u6807 - vec4 project_pos = project_position(vec4(customLnglat, a_Position.z * a_Size, 1.0)); - - float lightWeight = calc_lighting(project_pos); - v_color =vec4(a_Color.rgb*lightWeight, a_Color.w); - - gl_Position = u_Mvp * vec4(customLnglat , a_Position.z * a_Size, 1.0); + gl_Position = u_Mvp * (vec4(project_pos.xy, project_pixel(a_SizeDistanceAndTotalDistance.y) + h * 0.2, 1.0)); } else { - vec2 lnglat = unProjectFlat(a_Pos.xy + offset); // \u5B9E\u9645\u7684\u7ECF\u7EAC\u5EA6 - vec4 project_pos = project_position(vec4(lnglat, a_Position.z * a_Size, 1.0)); - - float lightWeight = calc_lighting(project_pos); - v_color =vec4(a_Color.rgb*lightWeight, a_Color.w); - - gl_Position = project_common_position_to_clipspace(project_pos); - } - + float lineHeight = a_SizeDistanceAndTotalDistance.y; + // \u517C\u5BB9 mapbox \u5728\u7EBF\u9AD8\u5EA6\u4E0A\u7684\u6548\u679C\u8868\u73B0\u57FA\u672C\u4E00\u81F4 + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 + h *= 2.0/pow(2.0, 20.0 - u_Zoom); + } + // amap1.x + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 + lineHeight *= pow(2.0, 20.0 - u_Zoom); + } - setPickingColor(a_PickingColor); + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, lineHeight + h, 1.0)); + gl_PointSize = 10.0; + } } -`,lx=`precision highp float; -varying vec4 v_color; -uniform float u_opacity: 1; - -#pragma include "picking" - -void main() { - gl_FragColor = v_color; - gl_FragColor.a *= u_opacity; +`,OY=e1.isNumber,sz=function(i){(0,Wt.Z)(f,i);var v=g4(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),C=d.sourceColor,M=d.targetColor,B=d.lineType,J=B===void 0?"solid":B,ue=d.dashArray,Ue=ue===void 0?[10,5,0,0]:ue,it=d.vertexHeightScale,Ir=it===void 0?20:it,Wo=Ue;J!=="dash"&&(Wo=[0,0,0,0]),Wo.length===2&&Wo.push(0,0);var Ca=0,eu=[0,0,0,0],Bd=[0,0,0,0];C&&M&&(eu=a0(C),Bd=a0(M),Ca=1);var r0={u_sourceColor:eu,u_targetColor:Bd,u_dash_array:Wo,u_vertexScale:Ir,u_linearColor:Ca},N0=this.getUniformsBufferInfo(r0);return N0}},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"getShaders",value:function(){return{frag:KU,vert:XU,type:"lineSimpleNormal"}}},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J,ue,Ue;return Dv().wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:return this.initUniformsBuffer(),M=this.getShaders(),B=M.frag,J=M.vert,ue=M.type,Ir.next=4,this.layer.buildLayerModel({moduleName:ue,vertexShader:J,fragmentShader:B,triangulation:hre,inject:this.getInject(),primitive:K0.LINES,depth:{enable:!1},pick:!1});case 4:return Ue=Ir.sent,Ir.abrupt("return",[Ue]);case 6:case"end":return Ir.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"sizeDistanceAndTotalDistance",type:mS.Attribute,descriptor:{name:"a_SizeDistanceAndTotalDistance",shaderLocation:aE.SIZE,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:4,update:function(C,M,B){var J=C.size,ue=J===void 0?1:J,Ue=Array.isArray(ue)?[ue[0],ue[1]]:[ue,0];return[Ue[0],Ue[1],B[3],B[5]]}}})}}]),f}(Gx);function LZ(i){var v=e3();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function e3(){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(i){return!1}}var l8=`#define Animate 0.0 +#define LineTexture 1.0 - gl_FragColor = filterColor(gl_FragColor); -} -`,xw=function(o){(0,lt.Z)(l,o);var d=dO(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=u.coverage,L=u.angle;return{u_opacity:m||1,u_coverage:E||1,u_angle:L||0,u_radius:[this.layer.getSource().data.xOffset,this.layer.getSource().data.yOffset]}}},{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 Z.next=2,this.layer.buildLayerModel({moduleName:"heatmapGrid3d",vertexShader:I4,fragmentShader:lx,triangulation:hM,primitive:Di.TRIANGLES,depth:{enable:!0}});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:"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;return Array.isArray(E)?[E[0]]:[E]}}}),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=m.version==="GAODE2.x"?m.originCoordinates:m.coordinates;return[E[0],E[1],0]}}})}}]),l}(ec);function P4(o,d){for(var l=[],c=[],u=[],m=o+1,E=d+1,L=o/2,Z=d/2,ne=0;ne 1 \u7684 uv \u8F6C\u6362\u4E3A -1 -> 1 \u7684\u6807\u51C6\u5750\u6807\u7A7A\u95F4\uFF08NDC\uFF09 - - vec4 p1 = vec4(pos, 0.0, 1.0); // x/y \u5E73\u9762\u4E0A\u7684\u70B9\uFF08z == 0\uFF09\u53EF\u4EE5\u8BA4\u4E3A\u662F\u4E09\u7EF4\u4E0A\u7684\u70B9\u88AB\u6295\u5F71\u5230\u5E73\u9762\u540E\u7684\u70B9 - vec4 p2 = vec4(pos, 1.0, 1.0); // \u5E73\u884C\u4E8Ex/y\u5E73\u9762\u3001z==1 \u7684\u5E73\u9762\u4E0A\u7684\u70B9 - - vec4 inverseP1 = u_InverseViewProjectionMatrix * p1; // \u6839\u636E\u89C6\u56FE\u6295\u5F71\u77E9\u9635\u7684\u9006\u77E9\u9635\u5E73\u9762\u4E0A\u7684\u53CD\u7B97\u51FA\u4E09\u7EF4\u7A7A\u95F4\u4E2D\u7684\u70B9\uFF08p1\u5E73\u9762\u4E0A\u7684\u70B9\uFF09 - vec4 inverseP2 = u_InverseViewProjectionMatrix * p2; + float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 + float d_distance_ratio = v_dataset.r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + float v = v_dataset.a; - inverseP1 = inverseP1 / inverseP1.w; // \u5F52\u4E00\u5316\u64CD\u4F5C\uFF08\u5F52\u4E00\u5316\u540E\u4E3A\u4E16\u754C\u5750\u6807\uFF09 - inverseP2 = inverseP2 / inverseP2.w; + if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 + outputColor = mix(u_sourceColor, u_targetColor, v); + } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 + outputColor = v_color; + } - float zPos = (0.0 - inverseP1.z) / (inverseP2.z - inverseP1.z); // ?? - vec4 position = inverseP1 + zPos * (inverseP2 - inverseP1); + outputColor.a *= v_color.a; // \u5168\u5C40\u900F\u660E\u5EA6 + if(u_animate.x == Animate) { + animateSpeed = u_time / u_animate.y; + float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + animateSpeed); + alpha = (alpha + u_animate.w -1.0) / u_animate.w; + alpha = smoothstep(0., 1., alpha); + outputColor.a *= alpha; + } - vec4 b= vec4(0.5000, 0.0, 1.0, 0.5000); - float fh; + if(u_line_texture == LineTexture) { // while load texture + float aDistance = v_dataset.g; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB + float d_texPixelLen = v_dataset.b; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + float u = fract(mod(aDistance, d_texPixelLen)/d_texPixelLen - animateSpeed); + float v = v_dataset.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - v_intensity = texture2D(u_texture, v_texCoord).r; - fh = toBezier(v_intensity, b).y; - gl_Position = u_ViewProjectionMatrixUncentered * vec4(position.xy, fh * project_pixel(50.), 1.0); - -} -`,uD=`uniform sampler2D u_texture; // \u70ED\u529B\u5F3A\u5EA6\u56FE -uniform sampler2D u_colorTexture; // \u6839\u636E\u5F3A\u5EA6\u5206\u5E03\u7684\u8272\u5E26 -uniform float u_opacity; -varying vec2 v_texCoord; + // \u8BA1\u7B97\u7EB9\u7406\u95F4\u9694 start + float flag = 0.0; + if(u > 1.0/u_iconStepCount) { + flag = 1.0; + } + u = fract(u*u_iconStepCount); + // \u8BA1\u7B97\u7EB9\u7406\u95F4\u9694 end -uniform vec2 u_ViewportSize; + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + vec4 pattern = texture(SAMPLER_2D(u_texture), uv); -float getBlurIndusty() { - float vW = 2.0/u_ViewportSize.x; - float vH = 2.0/u_ViewportSize.y; - vec2 vUv = v_texCoord; - float i11 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y + 1.0 * vH) ).r; - float i12 = texture2D( u_texture, vec2( vUv.x - 0.0 * vW, vUv.y + 1.0 * vH) ).r; - float i13 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y + 1.0 * vH) ).r; + // Tip: \u5224\u65AD\u7EB9\u7406\u95F4\u9694 + if(flag > 0.0) { + pattern = vec4(0.0); + } - float i21 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y) ).r; - float i22 = texture2D( u_texture, vec2( vUv.x , vUv.y) ).r; - float i23 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y) ).r; + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + outputColor = filterColor(outputColor + pattern); + } else { // replace + pattern.a *= v_color.a; + if(outputColor.a <= 0.0) { + pattern.a = 0.0; + } + outputColor = filterColor(pattern); + } + } + - float i31 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y-1.0*vH) ).r; - float i32 = texture2D( u_texture, vec2( vUv.x - 0.0 * vW, vUv.y-1.0*vH) ).r; - float i33 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y-1.0*vH) ).r; + // blur - AA + if(v < v_blur) { + outputColor.a = mix(0.0, outputColor.a, v/v_blur); + } else if(v > 1.0 - v_blur) { + outputColor.a = mix(outputColor.a, 0.0, (v - (1.0 - v_blur))/v_blur); + } - return( - i11 + - i12 + - i13 + - i21 + - i21 + - i22 + - i23 + - i31 + - i32 + - i33 - )/9.0; + outputColor = filterColor(outputColor); } +`,UA=`#define Animate 0.0 +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in vec2 a_Size; +layout(location = 10) in float a_Miter; +layout(location = 11) in float a_Total_Distance; +layout(location = 12) in vec4 a_Instance; +layout(location = 13) in vec3 a_Normal; +layout(location = 14) in vec2 a_iconMapUV; +layout(location = 15) in float a_Distance; -void main(){ - // float intensity = texture2D(u_texture, v_texCoord).r; - float intensity = getBlurIndusty(); - vec4 color = texture2D(u_colorTexture, vec2(intensity, 0.0)); - - gl_FragColor =color; - gl_FragColor.a = color.a * smoothstep(0.,0.1,intensity) * u_opacity; +layout(std140) uniform commonUniorm { + vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; + vec4 u_sourceColor; + vec4 u_targetColor; + vec2 u_textSize; + float u_icon_step: 100; + float u_heightfixed; + float u_linearColor: 0; + float u_line_texture; + float u_textureBlend; + float u_iconStepCount; + float u_time; +}; +#pragma include "projection" +#pragma include "light" +#pragma include "picking" -} -`,fO=`precision highp float; -attribute vec3 a_Position; -attribute vec2 a_Uv; -varying vec2 v_texCoord; +// texV \u7EBF\u56FE\u5C42 - \u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\uFF08\u7EBF\u7684\u5BBD\u5EA6\u65B9\u5411\uFF09 +out vec2 v_iconMapUV; +out vec4 v_color; +out float v_blur; +out float v_radio; +out vec4 v_dataset; void main() { - v_texCoord = a_Uv; - gl_Position = vec4(a_Position.xy, 0, 1.); -} -`,wM=`precision highp float; -uniform float u_intensity; -varying float v_weight; -varying vec2 v_extrude; -#define GAUSS_COEF 0.3989422804014327 -void main(){ - float d = -0.5 * 3.0 * 3.0 * dot(v_extrude, v_extrude); - float val = v_weight * u_intensity * GAUSS_COEF * exp(d); - gl_FragColor = vec4(val, 1., 1., 1.); -} -`,uj=`precision highp float; -attribute vec3 a_Position; -attribute float a_Size; -attribute vec2 a_Dir; -uniform float u_intensity; -uniform float u_radius; -varying vec2 v_extrude; -varying float v_weight; -uniform mat4 u_ModelMatrix; + float d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + float d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E -#define GAUSS_COEF 0.3989422804014327 + v_iconMapUV = a_iconMapUV; + if(u_heightfixed < 1.0) { // \u9AD8\u5EA6\u968F zoom \u8C03\u6574 + d_texPixelLen = project_pixel(u_icon_step); + } else { + d_texPixelLen = u_icon_step; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + d_texPixelLen *= 10.0; + } -#pragma include "projection" + if(u_animate.x == Animate || u_linearColor == 1.0) { + d_distance_ratio = a_Distance / a_Total_Distance; + } -void main(){ - v_weight = a_Size; - float ZERO = 1.0 / 255.0 / 16.0; - float extrude_x = a_Dir.x * 2.0 -1.0; - float extrude_y = a_Dir.y * 2.0 -1.0; - vec2 extrude_dir = normalize(vec2(extrude_x,extrude_y)); - float S = sqrt(-2.0 * log(ZERO / a_Size / u_intensity / GAUSS_COEF)) / 2.5; - v_extrude = extrude_dir * S; + float miter = (a_Miter + 1.0)/2.0; + // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 + v_dataset[0] = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + v_dataset[1] = a_Distance; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB + v_dataset[2] = d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + v_dataset[3] = miter; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C 0 - 1 - vec2 offset = project_pixel(v_extrude * u_radius); - vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0)); + vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); + float originSize = a_Size.x; // \u56FA\u5B9A\u9AD8\u5EA6 + if(u_heightfixed < 1.0) { + originSize = project_float_meter(a_Size.x); // \u9AD8\u5EA6\u968F zoom \u8C03\u6574 + } - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(project_pos.xy + offset, 0.0, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); - } -} -`,pO=fs.isEqual,gO=(v7=(0,ts.b2)(),v7(bM=function(o){(0,lt.Z)(l,o);var d=I2(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"render",value:function(u){var m=this,E=this.rendererService,L=E.clear,Z=E.useFramebuffer,ne=this.layer.getLayerConfig(),xe=ne.rampColors;Z(this.heatmapFramerBuffer,function(){L({color:[0,0,0,0],depth:1,stencil:0,framebuffer:m.heatmapFramerBuffer}),m.drawIntensityMode()}),pO(this.preRampColors,xe)||this.updateColorTexture(),this.shapeType==="heatmap"?this.drawColorMode(u):this.draw3DHeatMap(u)}},{key:"getUninforms",value:function(){throw new Error("Method not implemented.")}},{key:"initModels",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 L=this.rendererService,Z=L.createFramebuffer,ne=L.getViewportSize,xe=L.createTexture2D,Oe=this.styleAttributeService.getLayerStyleAttribute("shape"),wt=(Oe==null||(E=Oe.scale)===null||E===void 0?void 0:E.field)||"heatmap",this.shapeType=wt,ui.next=6,this.buildHeatMapIntensity();case 6:return this.intensityModel=ui.sent,this.colorModel=wt==="heatmap"?this.buildHeatmapColor():this.build3dHeatMap(),Bt=ne(),wn=Bt.width,Rn=Bt.height,this.heatmapFramerBuffer=Z({color:xe({width:Math.floor(wn/4),height:Math.floor(Rn/4),wrapS:Di.CLAMP_TO_EDGE,wrapT:Di.CLAMP_TO_EDGE,min:Di.LINEAR,mag:Di.LINEAR}),depth:!1}),this.updateColorTexture(),ui.abrupt("return",[this.intensityModel,this.colorModel]);case 12:case"end":return ui.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(){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:"dir",type:Ih.Attribute,descriptor:{name:"a_Dir",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:2,update:function(m,E,L){return[L[3],L[4]]}}}),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?1:E;return[L]}}})}},{key:"buildHeatMapIntensity",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=gM,Z.next=3,this.layer.buildLayerModel({moduleName:"heatmapIntensity",vertexShader:uj,fragmentShader:wM,triangulation:gM,depth:{enable:!1},cull:{enable:!0,face:Jr(this.mapService.version)}});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:"buildHeatmapColor",value:function(){this.shaderModuleService.registerModule("heatmapColor",{vs:fO,fs:uD});var u=this.shaderModuleService.getModule("heatmapColor"),m=u.vs,E=u.fs,L=u.uniforms,Z=this.rendererService,ne=Z.createAttribute,xe=Z.createElements,Oe=Z.createBuffer,wt=Z.createModel;return wt({vs:m,fs:E,attributes:{a_Position:ne({buffer:Oe({data:[-1,1,0,1,1,0,-1,-1,0,1,-1,0],type:Di.FLOAT}),size:3}),a_Uv:ne({buffer:Oe({data:[0,1,1,1,0,0,1,0],type:Di.FLOAT}),size:2})},uniforms:(0,ze.Z)({},L),depth:{enable:!1},elements:xe({data:[0,2,1,2,3,1],type:Di.UNSIGNED_INT,count:6})})}},{key:"drawIntensityMode",value:function(){var u,m=this.layer.getLayerConfig(),E=m.opacity,L=m.intensity,Z=L===void 0?10:L,ne=m.radius,xe=ne===void 0?5:ne;this.layerService.beforeRenderData(this.layer),this.layer.hooks.beforeRender.call(),(u=this.intensityModel)===null||u===void 0||u.draw({uniforms:{u_opacity:E||1,u_radius:xe,u_intensity:Z},blend:{enable:!0,func:{srcRGB:Di.ONE,srcAlpha:1,dstRGB:Di.ONE,dstAlpha:1}},stencil:{enable:!1,mask:255,func:{cmp:514,ref:1,mask:255}}}),this.layer.hooks.afterRender.call()}},{key:"drawColorMode",value:function(u){var m,E=this.layer.getLayerConfig(),L=E.opacity;(m=this.colorModel)===null||m===void 0||m.draw({uniforms:{u_opacity:L||1,u_colorTexture:this.colorTexture,u_texture:this.heatmapFramerBuffer},blend:this.getBlend(),stencil:this.getStencil(u)})}},{key:"draw3DHeatMap",value:function(u){var m,E=this.layer.getLayerConfig(),L=E.opacity,Z=yp();Nv(Z,this.cameraService.getViewProjectionMatrixUncentered()),(m=this.colorModel)===null||m===void 0||m.draw({uniforms:{u_opacity:L||1,u_colorTexture:this.colorTexture,u_texture:this.heatmapFramerBuffer,u_ViewProjectionMatrixUncentered:this.cameraService.getViewProjectionMatrixUncentered(),u_InverseViewProjectionMatrix:(0,_n.Z)(Z)},blend:{enable:!0,func:{srcRGB:Di.SRC_ALPHA,srcAlpha:1,dstRGB:Di.ONE_MINUS_SRC_ALPHA,dstAlpha:1}},stencil:this.getStencil(u)})}},{key:"build3dHeatMap",value:function(){var u=this.rendererService.getViewportSize,m=u(),E=m.width,L=m.height,Z=P4(E/4,L/4);this.shaderModuleService.registerModule("heatmap3dColor",{vs:Cv,fs:xM});var ne=this.shaderModuleService.getModule("heatmap3dColor"),xe=ne.vs,Oe=ne.fs,wt=ne.uniforms,Bt=this.rendererService,wn=Bt.createAttribute,Rn=Bt.createElements,Pr=Bt.createBuffer,ui=Bt.createModel;return ui({vs:xe,fs:Oe,attributes:{a_Position:wn({buffer:Pr({data:Z.vertices,type:Di.FLOAT}),size:3}),a_Uv:wn({buffer:Pr({data:Z.uvs,type:Di.FLOAT}),size:2})},primitive:Di.TRIANGLES,uniforms:(0,ze.Z)({},wt),depth:{enable:!0},blend:{enable:!0,func:{srcRGB:Di.SRC_ALPHA,srcAlpha:1,dstRGB:Di.ONE_MINUS_SRC_ALPHA,dstAlpha:1}},elements:Rn({data:Z.indices,type:Di.UNSIGNED_INT,count:Z.indices.length})})}},{key:"updateStyle",value:function(){this.updateColorTexture()}},{key:"updateColorTexture",value:function(){var u=this.rendererService.createTexture2D;this.texture&&this.texture.destroy();var m=this.layer.getLayerConfig(),E=m.rampColors,L=Xr(E);this.colorTexture=u({data:new Uint8Array(L.data),width:L.width,height:L.height,wrapS:Di.CLAMP_TO_EDGE,wrapT:Di.CLAMP_TO_EDGE,min:Di.NEAREST,mag:Di.NEAREST,flipY:!1}),this.preRampColors=E}}]),l}(ec))||bM);function cj(o){var d=dj();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 dj(){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 hj=`precision highp float; -varying vec4 v_color; -uniform float u_opacity: 1; -#pragma include "picking" + float wallHeight = originSize * miter; + float lightWeight = calc_lighting(vec4(project_pos.xy, wallHeight, 1.0)); -void main() { - gl_FragColor = v_color; - gl_FragColor.a *= u_opacity; + v_blur = min(project_float_pixel(2.0) / originSize, 0.05); + v_color = vec4(a_Color.rgb * lightWeight, a_Color.w * opacity); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xy, wallHeight, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, wallHeight, 1.0)); + } - gl_FragColor = filterColor(gl_FragColor); + setPickingColor(a_PickingColor); } -`,L4=`precision highp float; -// \u591A\u8FB9\u5F62\u9876\u70B9\u5750\u6807 -attribute vec3 a_Position; -// \u591A\u8FB9\u5F62\u7ECF\u7EAC\u5EA6\u5750\u6807 -attribute vec3 a_Pos; -attribute float a_Size; -attribute vec4 a_Color; -uniform vec2 u_radius; -uniform float u_coverage: 0.9; -uniform float u_angle: 0; -uniform mat4 u_ModelMatrix; +`,YU=function(i){(0,Wt.Z)(f,i);var v=LZ(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M0&&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; -uniform float u_opacity: 1.0; -uniform sampler2D u_texture; -varying vec2 v_texCoord; -void main() { - vec4 color = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y)); - gl_FragColor = color; - gl_FragColor.a *= u_opacity; - if(gl_FragColor.a < 0.01) - discard; -} -`,_7=`precision highp float; -uniform mat4 u_ModelMatrix; - -attribute vec3 a_Position; -attribute vec2 a_Uv; -varying vec2 v_texCoord; -#pragma include "projection" -void main() { - v_texCoord = a_Uv; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - 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;E 0.01 + float blurWidth = (1.0 - v_blur)/2.0; + vec4 stroke = vec4(u_stroke_color.rgb, u_stroke_opacity); + if(fragmengTocenter > v_innerRadius + blurWidth) { + outputColor = stroke; + } else if(fragmengTocenter > v_innerRadius - blurWidth){ + float mixR = (fragmengTocenter - (v_innerRadius - blurWidth)) / (blurWidth * 2.0); + outputColor = mix(v_color, stroke, mixR); + } else { + outputColor = v_color; + } + } else { + // \u5F53\u4E0D\u5B58\u5728 stroke \u6216 stroke <= 0.01 + outputColor = v_color; + } - float flag = 0.; - float dashLength = mod(v_distance_ratio, v_dash_array.x + v_dash_array.y + v_dash_array.z + v_dash_array.w); - if(dashLength < v_dash_array.x || (dashLength > (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { - flag = 1.; - }; - gl_FragColor.a *=flag; + outputColor = filterColor(outputColor); - gl_FragColor = filterColor(gl_FragColor); -}`,Cw=` -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute float a_Size; -uniform mat4 u_ModelMatrix; + if(u_additive > 0.0) { + outputColor *= circleClipOpacity; + } else { + outputColor.a *= circleClipOpacity; + } -uniform float segmentNumber; -varying vec4 v_color; +} +`,gM=` +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; + +layout(std140) uniform commonUniorm { + vec4 u_stroke_color; + float u_additive; + float u_stroke_opacity; + float u_stroke_width; +}; +out vec4 v_color; +out float v_blur; +out float v_innerRadius; -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; -uniform float u_lineDir: 1.0; -varying vec4 v_dash_array; -varying float v_distance_ratio; #pragma include "projection" -#pragma include "project" #pragma include "picking" - -float bezier3(vec3 arr, float t) { - float ut = 1. - t; - return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; -} -vec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) { - vec2 center = target - source; - float r = length(center); - float theta = atan(center.y, center.x); - float thetaOffset = arcThetaOffset; - float r2 = r / 2.0 / cos(thetaOffset); - float theta2 = theta + thetaOffset; - vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); - if(u_lineDir == 1.0) { // \u6B63\u5411 - return mid; - } else { // \u9006\u5411 - // (mid + vmin)/2 = (s + t)/2 - vec2 vmid = source + target - mid; - return vmid; - } - // return mid; -} -float getSegmentRatio(float index) { - // dash: index / (segmentNumber - 1.); - // normal: smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); - return index / (segmentNumber - 1.); -} -vec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) { - // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation - vec2 mid = midPoint(source, target, arcThetaOffset); - vec3 x = vec3(source.x, mid.x, target.x); - vec3 y = vec3(source.y, mid.y, target.y); - return vec2(bezier3(x ,t), bezier3(y,t)); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} - +#pragma include "project" void main() { v_color = vec4(a_Color.xyz, a_Color.w * opacity); + v_blur = 1.0 - max(2.0/a_Size, 0.05); + v_innerRadius = max((a_Size - u_stroke_width) / a_Size, 0.0); - vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 - vec2 target = a_Instance.ba; // \u7EC8\u70B9 - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - - vec2 s = source; - vec2 t = target; + vec2 offset = project_pixel(u_offsets); if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - s = unProjCustomCoord(source); - t = unProjCustomCoord(target); + gl_Position = u_Mvp * vec4(a_Position.xy + offset, a_Position.z, 1.0); + } else { // else + vec4 project_pos = project_position(vec4(a_Position, 1.0)) + vec4(a_Size / 2.,-a_Size /2.,0.,0.); + gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy+offset),project_pos.z,project_pos.w)); } - float total_Distance = pixelDistance(s, t) / 2.0 * PI; - v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / total_Distance; - - v_distance_ratio = segmentIndex / segmentNumber; - - vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, thetaOffset), 0.0, 1.0)); - vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, thetaOffset), 0.0, 1.0)); - - vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); - - gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + offset, 0, 1.0)); - - gl_PointSize = 5.0; + gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; setPickingColor(a_PickingColor); } -`,vj=` -#define Animate 0.0 -#define LineTexture 1.0 -uniform float u_textureBlend; -uniform float u_blur : 0.9; -uniform float u_line_type: 0.0; -// varying vec2 v_normal; -varying vec4 v_dash_array; -varying vec4 v_color; +`;function RY(i){var v=i.coordinates;return{vertices:(0,Gd.Z)(v),indices:[0],size:v.length}}var tie=function(i){(0,Wt.Z)(f,i);var v=eie(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getDefaultStyle",value:function(){return{blend:"additive"}}},{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),C=d.blend,M=d.strokeOpacity,B=M===void 0?1:M,J=d.strokeWidth,ue=J===void 0?0:J,Ue=d.stroke,it=Ue===void 0?"#fff":Ue,Ir={u_stroke_color:a0(it),u_additive:C==="additive"?1:0,u_stroke_opacity:B,u_stroke_width:ue},Wo=this.getUniformsBufferInfo(Ir);return Wo}},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M;return Dv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return this.layer.triangulation=RY,this.initUniformsBuffer(),J.next=4,this.layer.buildLayerModel({moduleName:"pointSimple",vertexShader:gM,fragmentShader:u8,inject:this.getInject(),triangulation:RY,depth:{enable:!1},primitive:K0.POINTS});case 4:return M=J.sent,J.abrupt("return",[M]);case 6:case"end":return J.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:mS.Attribute,descriptor:{name:"a_Size",shaderLocation:aE.SIZE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:1,update:function(C){var M=C.size,B=M===void 0?1:M;return Array.isArray(B)?[B[0]]:[B]}}})}}]),f}(Gx);function nie(i){var v=QU();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function QU(){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(i){return!1}}var az=`precision highp float; +in vec4 v_color; -uniform float u_time; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; +#pragma include "picking" -uniform float u_line_texture; -uniform sampler2D u_texture; -uniform vec2 u_textSize; +layout(std140) uniform commonUniform { + vec4 u_sourceColor; + vec4 u_targetColor; + float u_linearColor: 0; + float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A + float u_globel; + float u_r; + float u_pickLight: 0.0; + float u_opacitylinear: 0.0; + float u_opacitylinear_dir: 1.0; + float u_lightEnable: 1.0; +}; +in float v_lightWeight; +in float v_barLinearZ; +out vec4 outputColor; +void main() { -uniform float segmentNumber; -varying vec2 v_iconMapUV; -varying vec4 v_lineData; + outputColor = v_color; + // \u5F00\u542F\u900F\u660E\u5EA6\u6E10\u53D8 + if(u_opacitylinear > 0.0) { + outputColor.a *= u_opacitylinear_dir > 0.0 ? (1.0 - v_barLinearZ): v_barLinearZ; + } -#pragma include "picking" + // picking + if(u_pickLight > 0.0) { + outputColor = filterColorAlpha(outputColor, v_lightWeight); + } else { + outputColor = filterColor(outputColor); + } +} +`,rie=`precision highp float; -void main() { - float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 - gl_FragColor = v_color; - +#define pi 3.1415926535 +#define ambientRatio 0.5 +#define diffuseRatio 0.3 +#define specularRatio 0.2 - if(u_animate.x == Animate && u_line_texture != LineTexture) { - animateSpeed = u_time / u_animate.y; - float alpha =1.0 - fract( mod(1.0- v_lineData.b, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); - alpha = (alpha + u_animate.w -1.0) / u_animate.w; - // alpha = smoothstep(0., 1., alpha); - alpha = clamp(alpha, 0.0, 1.0); - gl_FragColor.a *= alpha; - } - // \u5F53\u5B58\u5728\u8D34\u56FE\u65F6\u5728\u5E95\u8272\u4E0A\u8D34\u4E0A\u8D34\u56FE - if(u_line_texture == LineTexture) { // while load texture - float arcRadio = smoothstep( 0.0, 1.0, (v_lineData.r / segmentNumber)); - // float arcRadio = smoothstep( 0.0, 1.0, d_distance_ratio); +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in vec3 a_Size; +layout(location = 11) in vec3 a_Pos; +layout(location = 13) in vec3 a_Normal; - float count = v_lineData.g; // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - float time = 0.0; - if(u_animate.x == Animate) { - time = u_time / u_animate.y; - } - float redioCount = arcRadio * count; +layout(std140) uniform commonUniform { + vec4 u_sourceColor; + vec4 u_targetColor; + float u_linearColor: 0; + float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A + float u_globel; + float u_r; + float u_pickLight: 0.0; + float u_opacitylinear: 0.0; + float u_opacitylinear_dir: 1.0; + float u_lightEnable: 1.0; +}; - float u = fract(redioCount - time); - float v = v_lineData.a; // \u6A2A\u5411 v - vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; +out vec4 v_color; +out float v_lightWeight; +out float v_barLinearZ; +// \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - vec4 pattern = texture2D(u_texture, uv); - if(u_animate.x == Animate) { - float currentPlane = floor(redioCount - time); - float textureStep = floor(count * u_animate.z); - float a = mod(currentPlane, textureStep); - if(a < textureStep - 1.0) { - pattern = vec4(0.0); - } - } +#pragma include "projection" +#pragma include "light" +#pragma include "picking" - if(u_textureBlend == 0.0) { // normal - pattern.a = 0.0; - gl_FragColor = filterColor(gl_FragColor + pattern); - } else { // replace - pattern.a *= v_color.a; - if(gl_FragColor.a <= 0.0) { - pattern.a = 0.0; - } - gl_FragColor = filterColor(pattern); - } - +float getYRadian(float x, float z) { + if(x > 0.0 && z > 0.0) { + return atan(x/z); + } else if(x > 0.0 && z <= 0.0){ + return atan(-z/x) + pi/2.0; + } else if(x <= 0.0 && z <= 0.0) { + return pi + atan(x/z); //atan(x/z) + } else { - gl_FragColor = filterColor(gl_FragColor); + return atan(z/-x) + pi*3.0/2.0; } -}`,vO=`#define Animate 0.0 -#define LineTexture 1.0 - -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute float a_Size; -uniform mat4 u_ModelMatrix; +} -uniform float segmentNumber; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -varying vec4 v_color; +float getXRadian(float y, float r) { + return atan(y/r); +} -uniform float u_lineDir: 1.0; +void main() { -uniform float u_icon_step: 100; -uniform float u_line_texture: 0.0; -attribute vec2 a_iconMapUV; -varying vec2 v_iconMapUV; -varying vec4 v_lineData; -varying vec2 v_distance_ratio; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + vec3 size = a_Size * a_Position; + // a_Position.z \u662F\u5728\u6784\u5EFA\u7F51\u683C\u7684\u65F6\u5019\u4F20\u5165\u7684\u6807\u51C6\u503C 0 - 1\uFF0C\u5728\u63D2\u503C\u5668\u63D2\u503C\u53EF\u4EE5\u83B7\u53D6 0\uFF5E1 \u7EBF\u6027\u6E10\u53D8\u7684\u503C + v_barLinearZ = a_Position.z; -#pragma include "projection" -#pragma include "project" -#pragma include "picking" - -float bezier3(vec3 arr, float t) { - float ut = 1. - t; - return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; -} -vec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) { - vec2 center = target - source; - float r = length(center); - float theta = atan(center.y, center.x); - float thetaOffset = arcThetaOffset; - float r2 = r / 2.0 / cos(thetaOffset); - float theta2 = theta + thetaOffset; - vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); - if(u_lineDir == 1.0) { // \u6B63\u5411 - return mid; - } else { // \u9006\u5411 - // (mid + vmin)/2 = (s + t)/2 - vec2 vmid = source + target - mid; - return vmid; + vec3 offset = size; // \u63A7\u5236\u5706\u67F1\u4F53\u7684\u5927\u5C0F - \u4ECE\u6807\u51C6\u5355\u4F4D\u5706\u67F1\u4F53\u8FDB\u884C\u504F\u79FB + if(u_heightfixed < 1.0) { // \u5706\u67F1\u4F53\u4E0D\u56FA\u5B9A\u9AD8\u5EA6 + + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + offset = offset * pow(2.0, (19.0 - u_Zoom)); + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + offset = offset * pow(2.0, (19.0 - 3.0 - u_Zoom)); + } + } else {// \u5706\u67F1\u4F53\u56FA\u5B9A\u9AD8\u5EA6 \uFF08 \u5904\u7406 mapbox \uFF09 + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + offset *= 4.0/pow(2.0, 21.0 - u_Zoom); + } } - // return mid; -} -float getSegmentRatio(float index) { - // dash: index / (segmentNumber - 1.); - // normal: smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); - // return index / (segmentNumber - 1.); -} -vec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) { - // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation - vec2 mid = midPoint(source, target, arcThetaOffset); - vec3 x = vec3(source.x, mid.x, target.x); - vec3 y = vec3(source.y, mid.y, target.y); - return vec2(bezier3(x ,t), bezier3(y,t)); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} -void main() { - v_color = a_Color; - v_color.a = v_color.a * opacity; - vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 - vec2 target = a_Instance.ba; // \u7EC8\u70B9 - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); + vec4 project_pos = project_position(vec4(a_Pos.xy, 0., 1.0)); - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - float d_distance_ratio; - - if(u_animate.x == Animate) { - d_distance_ratio = segmentIndex / segmentNumber; - if(u_lineDir != 1.0) { - d_distance_ratio = 1.0 - d_distance_ratio; - } + // u_r \u63A7\u5236\u5706\u67F1\u7684\u751F\u957F + vec4 pos = vec4(project_pos.xy + offset.xy, offset.z * u_r, 1.0); + + // \u5706\u67F1\u5149\u7167\u6548\u679C + float lightWeight = 1.0; + if(u_lightEnable > 0.0) { // \u53D6\u6D88\u4E09\u5143\u8868\u8FBE\u5F0F\uFF0C\u589E\u5F3A\u5065\u58EE\u6027 + lightWeight = calc_lighting(pos); + } + v_lightWeight = lightWeight; + // \u8BBE\u7F6E\u5706\u67F1\u7684\u5E95\u8272 + if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 + v_color = mix(u_sourceColor, u_targetColor, v_barLinearZ); + v_color.rgb *= lightWeight; + } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 + v_color = a_Color; } + v_color.a *= u_opacity; - v_lineData.b = d_distance_ratio; + + // \u5728\u5730\u7403\u6A21\u5F0F\u4E0B\uFF0C\u5C06\u539F\u672C\u5782\u76F4\u4E8E xy \u5E73\u9762\u7684\u5706\u67F1\u8C03\u6574\u59FF\u6001\u5230\u9002\u5E94\u5706\u7684\u89D2\u5EA6 + //\u65CB\u8F6C\u77E9\u9635mx\uFF0C\u521B\u5EFA\u7ED5x\u8F74\u65CB\u8F6C\u77E9\u9635 + float r = sqrt(a_Pos.z*a_Pos.z + a_Pos.x*a_Pos.x); + float xRadian = getXRadian(a_Pos.y, r); + float xcos = cos(xRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u4F59\u5F26\u503C + float xsin = sin(xRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u6B63\u5F26\u503C + mat4 mx = mat4( + 1,0,0,0, + 0,xcos,-xsin,0, + 0,xsin,xcos,0, + 0,0,0,1); - vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, thetaOffset), 0.0, 1.0)); - vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, thetaOffset), 0.0, 1.0)); + //\u65CB\u8F6C\u77E9\u9635my\uFF0C\u521B\u5EFA\u7ED5y\u8F74\u65CB\u8F6C\u77E9\u9635 + float yRadian = getYRadian(a_Pos.x, a_Pos.z); + float ycos = cos(yRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u4F59\u5F26\u503C + float ysin = sin(yRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u6B63\u5F26\u503C + mat4 my = mat4( + ycos,0,-ysin,0, + 0,1,0,0, + ysin,0,ycos,0, + 0,0,0,1); + gl_Position = u_ViewProjectionMatrix * vec4(( my * mx * vec4(a_Position * a_Size, 1.0)).xyz + a_Pos, 1.0); - vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); + setPickingColor(a_PickingColor); +} +`,iie=e1.isNumber,kY=function(i){(0,Wt.Z)(f,i);var v=nie(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M0&&M.enable){var Q1=M.speed,iy=Q1===void 0?.01:Q1;this.raiseCount+=iy,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}var Uy={u_sourceColor:v1,u_targetColor:_y,u_linearColor:fv,u_pickLight:Number(Ir),u_heightfixed:Number(Ca),u_r:M.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:iie(J)?J:1,u_opacitylinear:Number(Bd.enable),u_opacitylinear_dir:Bd.dir==="up"?1:0,u_lightEnable:Number(N0)},w_=this.getUniformsBufferInfo(Uy);return w_}},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return this.initUniformsBuffer(),B.abrupt("return",this.buildModels());case 2:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J,ue;return Dv().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return M=this.layer.getLayerConfig(),B=M.animateOption.repeat,J=B===void 0?1:B,this.raiseRepeat=J,it.next=4,this.layer.buildLayerModel({moduleName:"pointEarthExtrude",vertexShader:rie,fragmentShader:az,triangulation:gZ,depth:{enable:!0},inject:this.getInject(),cull:{enable:!0,face:w1(this.mapService.version)},blend:this.getBlend()});case 4:return ue=it.sent,it.abrupt("return",[ue]);case 6:case"end":return it.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:mS.Attribute,descriptor:{name:"a_Size",shaderLocation:aE.SIZE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:3,update:function(C){var M=C.size;if(M){var B=[];return Array.isArray(M)&&(B=M.length===2?[M[0],M[0],M[1]]:M),Array.isArray(M)||(B=[M,M,M]),B}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:mS.Attribute,descriptor:{name:"a_Normal",shaderLocation:aE.NORMAL,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:3,update:function(C,M,B,J,ue){return ue}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:mS.Attribute,descriptor:{name:"a_Pos",shaderLocation:15,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:3,update:function(C){var M=yC(C.coordinates);return Y9([M[0],M[1]])}}})}}]),f}(Gx);function xD(i){var v=NY();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function NY(){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(i){return!1}}var oie=`in vec4 v_data; +in vec4 v_color; +in float v_radius; - float d_segmentIndex = a_Position.x + 1.0; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E - v_lineData.r = d_segmentIndex; +layout(std140) uniform commonUniform { + float u_additive; + float u_stroke_opacity : 1; + float u_stroke_width : 2; + float u_blur : 0.0; +}; +#pragma include "sdf_2d" +#pragma include "picking" - if(LineTexture == u_line_texture) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F +out vec4 outputColor; - float arcDistrance = length(source - target); // \u8D77\u59CB\u70B9\u548C\u7EC8\u70B9\u7684\u8DDD\u79BB - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20) { // amap - arcDistrance *= 1000000.0; - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { // mapbox - // arcDistrance *= 8.0; - arcDistrance = project_pixel_allmap(arcDistrance); - } - v_iconMapUV = a_iconMapUV; +void main() { + int shape = int(floor(v_data.w + 0.5)); - float pixelLen = project_pixel_texture(u_icon_step); // \u8D34\u56FE\u6CBF\u5F27\u7EBF\u65B9\u5411\u7684\u957F\u5EA6 - \u968F\u5730\u56FE\u7F29\u653E\u6539\u53D8 - float texCount = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - v_lineData.g = texCount; + vec4 strokeColor = u_stroke == vec4(0.0) ? v_color : u_stroke; - float lineOffsetWidth = length(offset + offset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB - float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB - v_lineData.a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + lowp float antialiasblur = v_data.z; + float r = v_radius / (v_radius + u_stroke_width); + + float outer_df; + float inner_df; + // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica' + if (shape == 0) { + outer_df = sdCircle(v_data.xy, 1.0); + inner_df = sdCircle(v_data.xy, r); + } else if (shape == 1) { + outer_df = sdEquilateralTriangle(1.1 * v_data.xy); + inner_df = sdEquilateralTriangle(1.1 / r * v_data.xy); + } else if (shape == 2) { + outer_df = sdBox(v_data.xy, vec2(1.)); + inner_df = sdBox(v_data.xy, vec2(r)); + } else if (shape == 3) { + outer_df = sdPentagon(v_data.xy, 0.8); + inner_df = sdPentagon(v_data.xy, r * 0.8); + } else if (shape == 4) { + outer_df = sdHexagon(v_data.xy, 0.8); + inner_df = sdHexagon(v_data.xy, r * 0.8); + } else if (shape == 5) { + outer_df = sdOctogon(v_data.xy, 1.0); + inner_df = sdOctogon(v_data.xy, r); + } else if (shape == 6) { + outer_df = sdHexagram(v_data.xy, 0.52); + inner_df = sdHexagram(v_data.xy, r * 0.52); + } else if (shape == 7) { + outer_df = sdRhombus(v_data.xy, vec2(1.0)); + inner_df = sdRhombus(v_data.xy, vec2(r)); + } else if (shape == 8) { + outer_df = sdVesica(v_data.xy, 1.1, 0.8); + inner_df = sdVesica(v_data.xy, r * 1.1, r * 0.8); } - gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + offset, 0, 1.0)); + if(outer_df > antialiasblur + 0.018) discard; - setPickingColor(a_PickingColor); + float opacity_t = smoothstep(0.0, antialiasblur, outer_df); + + float color_t = u_stroke_width < 0.01 ? 0.0 : smoothstep( + antialiasblur, + 0.0, + inner_df + ); + + if(u_stroke_width < 0.01) { + outputColor = vec4(v_color.rgb, v_color.a * u_opacity); + } else { + outputColor = mix(vec4(v_color.rgb, v_color.a * u_opacity), strokeColor * u_stroke_opacity, color_t); + } + + if(u_additive > 0.0) { + outputColor *= opacity_t; + outputColor = filterColorAlpha(outputColor, outputColor.a); + } else { + outputColor.a *= opacity_t; + outputColor = filterColor(outputColor); + } } -`,yj=`varying vec4 v_color; +`,RZ=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 10) in float a_Shape; +layout(location = 11) in vec3 a_Extrude; + +layout(std140) uniform commonUniform { + float u_additive; + float u_stroke_opacity : 1; + float u_stroke_width : 2; + float u_blur : 0.0; +}; +out vec4 v_data; +out vec4 v_color; +out float v_radius; +#pragma include "projection" #pragma include "picking" + void main() { -// \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E + vec3 extrude = a_Extrude; + float shape_type = a_Shape; + /* + * setPickingSize \u8BBE\u7F6E\u62FE\u53D6\u5927\u5C0F + */ + float newSize = setPickingSize(a_Size); + // float newSize = setPickingSize(a_Size) * 0.00001038445708445579; - gl_FragColor = v_color; - gl_FragColor = filterColor(gl_FragColor); -}`,_j=` -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute float a_Size; -uniform mat4 u_ModelMatrix; + // unpack color(vec2) + v_color = a_Color; -uniform float segmentNumber; -varying vec4 v_color; -varying float v_segmentIndex; + // radius(16-bit) + v_radius = newSize; -uniform float u_lineDir: 1.0; + // anti-alias + // float antialiased_blur = -max(u_blur, antialiasblur); + float antialiasblur = -max(2.0 / u_DevicePixelRatio / newSize, u_blur); -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; + // TODP: /abs(extrude.x) \u662F\u4E3A\u4E86\u517C\u5BB9\u5730\u7403\u6A21\u5F0F + v_data = vec4(extrude.x/abs(extrude.x), extrude.y/abs(extrude.y), antialiasblur,shape_type); + gl_Position = u_ViewProjectionMatrix * vec4(a_Position + extrude * newSize * 0.1 + vec3(u_offsets,0.0), 1.0); + setPickingColor(a_PickingColor); +}`,eV=function(i){(0,Wt.Z)(f,i);var v=xD(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),C=d.strokeOpacity,M=C===void 0?1:C,B=d.strokeWidth,J=B===void 0?0:B,ue=d.blend,Ue=d.blur,it=Ue===void 0?0:Ue;this.layer.getLayerConfig();var Ir={u_additive:ue==="additive"?1:0,u_stroke_opacity:M,u_stroke_width:J,u_blur:it},Wo=this.getUniformsBufferInfo(Ir);return Wo}},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return this.initUniformsBuffer(),B.abrupt("return",this.buildModels());case 2:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M;return Dv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return this.layer.triangulation=pY,J.next=3,this.layer.buildLayerModel({moduleName:"pointEarthFill",vertexShader:RZ,fragmentShader:oie,triangulation:pY,inject:this.getInject(),depth:{enable:!0},blend:this.getBlend()});case 3:return M=J.sent,J.abrupt("return",[M]);case 5:case"end":return J.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"animateOption2Array",value:function(d){return[d.enable?0:1,d.speed||1,d.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var d=this;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:mS.Attribute,descriptor:{name:"a_Extrude",shaderLocation:aE.EXTRUDE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:3,update:function(M,B,J,ue){var Ue=(0,_g.Z)(J,3),it=Ue[0],Ir=Ue[1],Wo=Ue[2],Ca=QA(0,0,1),eu=QA(it,0,Wo),Bd=it>=0?dZ(Ca,eu):Math.PI*2-dZ(Ca,eu),r0=Math.PI*2-Math.asin(Ir/100),N0=Vx();Y1(N0,N0,Bd),d3(N0,N0,r0);var fv=QA(1,1,0);h7(fv,fv,N0),gP(fv,fv);var v1=QA(-1,1,0);h7(v1,v1,N0),gP(v1,v1);var _y=QA(-1,-1,0);h7(_y,_y,N0),gP(_y,_y);var Q1=QA(1,-1,0);h7(Q1,Q1,N0),gP(Q1,Q1);var iy=[].concat((0,Gd.Z)(fv),(0,Gd.Z)(v1),(0,Gd.Z)(_y),(0,Gd.Z)(Q1)),Uy=ue%4*3;return[iy[Uy],iy[Uy+1],iy[Uy+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:mS.Attribute,descriptor:{name:"a_Size",shaderLocation:aE.SIZE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:1,update:function(M){var B=M.size,J=B===void 0?5:B;return Array.isArray(J)?[J[0]]:[J]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:mS.Attribute,descriptor:{name:"a_Shape",shaderLocation:aE.SHAPE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:1,update:function(M){var B=M.shape,J=B===void 0?2:B,ue=d.layer.getLayerConfig().shape2d,Ue=ue.indexOf(J);return[Ue]}}})}}]),f}(Gx);function FY(i){var v=BY();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function BY(){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(i){return!1}}var XA=` +in vec4 v_color; +in float v_lightWeight; +out vec4 outputColor; +layout(std140) uniform commonUniforms { + float u_pickLight; + float u_heightfixed; + float u_r; + float u_linearColor; + vec4 u_sourceColor; + vec4 u_targetColor; + float u_opacitylinear; + float u_opacitylinear_dir; + float u_lightEnable; +}; -#pragma include "projection" -#pragma include "project" +#pragma include "scene_uniforms" #pragma include "picking" -float bezier3(vec3 arr, float t) { - float ut = 1. - t; - return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; -} -vec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) { - vec2 center = target - source; - float r = length(center); - float theta = atan(center.y, center.x); - float thetaOffset = arcThetaOffset; - float r2 = r / 2.0 / cos(thetaOffset); - float theta2 = theta + thetaOffset; - vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); - if(u_lineDir == 1.0) { // \u6B63\u5411 - return mid; - } else { // \u9006\u5411 - // (mid + vmin)/2 = (s + t)/2 - vec2 vmid = source + target - mid; - return vmid; - } - // return mid; -} -float getSegmentRatio(float index) { - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); -} -vec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) { - // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation - vec2 mid = midPoint(source, target, arcThetaOffset); - vec3 x = vec3(source.x, mid.x, target.x); - vec3 y = vec3(source.y, mid.y, target.y); - return vec2(bezier3(x ,t), bezier3(y,t)); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} - void main() { - v_color = a_Color; - - vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 - vec2 target = a_Instance.ba; // \u7EC8\u70B9 - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - float d_distance_ratio; - vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, thetaOffset), 0.0, 1.0)); - vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, thetaOffset), 0.0, 1.0)); - // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); - //unProjCustomCoord - - vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); + outputColor = v_color; + // \u5F00\u542F\u900F\u660E\u5EA6\u6E10\u53D8 + // picking + if(u_pickLight > 0.0) { + outputColor = filterColorAlpha(outputColor, v_lightWeight); + } else { + outputColor = filterColor(outputColor); + } +} +`,YD=`#define pi 3.1415926535 - float d_segmentIndex = a_Position.x + 1.0; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in vec3 a_Size; +layout(location = 11) in vec3 a_Extrude; +layout(location = 13) in vec3 a_Normal; - v_color = mix(u_sourceColor, u_targetColor, d_segmentIndex/segmentNumber); - v_color.a *= opacity; +layout(std140) uniform commonUniforms { + float u_pickLight; + float u_heightfixed; + float u_r; + float u_linearColor; + vec4 u_sourceColor; + vec4 u_targetColor; + float u_opacitylinear; + float u_opacitylinear_dir; + float u_lightEnable; +}; +out vec4 v_color; +out float v_lightWeight; - gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + offset, 0, 1.0)); +#pragma include "projection" +#pragma include "light" +#pragma include "picking" - setPickingColor(a_PickingColor); +float getYRadian(float x, float z) { + if(x > 0.0 && z > 0.0) { + return atan(x/z); + } else if(x > 0.0 && z <= 0.0){ + return atan(-z/x) + pi/2.0; + } else if(x <= 0.0 && z <= 0.0) { + return pi + atan(x/z); //atan(x/z) + + } else { + return atan(z/-x) + pi*3.0/2.0; + } } -`,w7={solid:0,dash:1},yO=fs.isNumber,bj=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;E (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { - flag = 1.; + if(u_heightfixed < 1.0) { // \u5706\u67F1\u4F53\u4E0D\u56FA\u5B9A\u9AD8\u5EA6 + + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + offset = offset * pow(2.0, (19.0 - u_Zoom)); + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + offset = offset * pow(2.0, (19.0 - 3.0 - u_Zoom)); + } + } else {// \u5706\u67F1\u4F53\u56FA\u5B9A\u9AD8\u5EA6 \uFF08 \u5904\u7406 mapbox \uFF09 + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + offset *= 4.0/pow(2.0, 21.0 - u_Zoom); } - gl_FragColor.a *=flag; } - if(u_animate.x == Animate && u_line_texture != LineTexture) { - animateSpeed = u_time / u_animate.y; - float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); - - alpha = (alpha + u_animate.w -1.0) / u_animate.w; - // alpha = smoothstep(0., 1., alpha); - alpha = clamp(alpha, 0.0, 1.0); - gl_FragColor.a *= alpha; - - // u_animate - // x enable - // y duration - // z interval - // w trailLength - } - if(u_line_texture == LineTexture && u_line_type != LineTypeDash) { // while load texture - // float arcRadio = smoothstep( 0.0, 1.0, (v_segmentIndex / segmentNumber)); - float arcRadio = v_segmentIndex / (segmentNumber - 1.0); - float count = v_line_data.b; // // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + vec4 project_pos = project_position(vec4(a_Extrude.xy, 0., 1.0)); - float time = 0.0; - if(u_animate.x == Animate) { - time = u_time / u_animate.y; - } - float redioCount = arcRadio * count; + // u_r \u63A7\u5236\u5706\u67F1\u7684\u751F\u957F + vec4 pos = vec4(project_pos.xy + offset.xy, offset.z * u_r, 1.0); - float u = fract(redioCount - time); + // // \u5706\u67F1\u5149\u7167\u6548\u679C + float lightWeight = 1.0; - float v = v_line_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; - vec4 pattern = texture2D(u_texture, uv); + if(u_lightEnable > 0.0) { // \u53D6\u6D88\u4E09\u5143\u8868\u8FBE\u5F0F\uFF0C\u589E\u5F3A\u5065\u58EE\u6027 + lightWeight = calc_lighting(pos); + } - if(u_animate.x == Animate) { - float currentPlane = floor(redioCount - time); - float textureStep = floor(count * u_animate.z); - float a = mod(currentPlane, textureStep); - if(a < textureStep - 1.0) { - pattern = vec4(0.0); - } - } + v_lightWeight = lightWeight; - if(u_textureBlend == 0.0) { // normal - pattern.a = 0.0; - gl_FragColor = filterColor(gl_FragColor + pattern); - } else { // replace - pattern.a *= v_color.a; - if(gl_FragColor.a <= 0.0) { - pattern.a = 0.0; - discard; - } else { - gl_FragColor = filterColor(pattern); - } - } + v_color = a_Color; + // \u8BBE\u7F6E\u5706\u67F1\u7684\u5E95\u8272 + if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 + v_color = mix(u_sourceColor, u_targetColor, a_Position.z); + v_color.a = v_color.a * opacity; } else { - gl_FragColor = filterColor(gl_FragColor); + v_color = vec4(a_Color.rgb * lightWeight, a_Color.w * opacity); } -} -`,RC=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#define Animate 0.0 -#define LineTexture 1.0 -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute vec4 a_Color; -attribute float a_Size; -uniform float u_globel; -uniform float u_globel_radius; -uniform float u_global_height: 10; -uniform mat4 u_ModelMatrix; + if(u_opacitylinear > 0.0) { + v_color.a *= u_opacitylinear_dir > 0.0 ? (1.0 - a_Position.z): a_Position.z; + } -uniform float segmentNumber; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -varying vec4 v_color; -uniform float u_line_type: 0.0; -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; -varying vec4 v_dash_array; + gl_Position = project_common_position_to_clipspace_v2(pos); -uniform float u_icon_step: 100; -uniform float u_line_texture: 0.0; -varying float v_segmentIndex; + setPickingColor(a_PickingColor); +} +`,lz=function(i){(0,Wt.Z)(f,i);var v=FY(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M0&&M.enable){var v1=M.speed,_y=v1===void 0?.01:v1;this.raiseCount+=_y,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}var Q1={u_pickLight:Number(Ue),u_heightfixed:Number(Ir),u_r:M.enable&&this.raiseRepeat>0?this.raiseCount:1,u_linearColor:r0,u_sourceColor:N0,u_targetColor:fv,u_opacitylinear:Number(Ca.enable),u_opacitylinear_dir:Ca.dir==="up"?1:0,u_lightEnable:Number(Bd)},iy=this.getUniformsBufferInfo(Q1);return iy}},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J,ue,Ue,it;return Dv().wrap(function(Wo){for(;;)switch(Wo.prev=Wo.next){case 0:return M=this.layer.getLayerConfig(),B=M.depth,J=B===void 0?!0:B,ue=M.animateOption.repeat,Ue=ue===void 0?1:ue,this.raiseRepeat=Ue,this.initUniformsBuffer(),Wo.next=5,this.layer.buildLayerModel({moduleName:"pointExtrude",vertexShader:YD,fragmentShader:XA,triangulation:gZ,inject:this.getInject(),cull:{enable:!0,face:w1(this.mapService.version)},depth:{enable:J}});case 5:return it=Wo.sent,Wo.abrupt("return",[it]);case 7:case"end":return Wo.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:mS.Attribute,descriptor:{name:"a_Size",shaderLocation:aE.SIZE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:3,update:function(C){var M=C.size;if(M){var B=[];return Array.isArray(M)&&(B=M.length===2?[M[0],M[0],M[1]]:M),Array.isArray(M)||(B=[M,M,M]),B}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:mS.Attribute,descriptor:{name:"a_Normal",shaderLocation:aE.NORMAL,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:3,update:function(C,M,B,J,ue){return ue}}}),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:mS.Attribute,descriptor:{name:"a_Extrude",shaderLocation:aE.EXTRUDE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:3,update:function(C){var M=yC(C.coordinates);return[M[0],M[1],0]}}})}}]),f}(Gx);function O7(i){var v=kZ();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}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(i){return!1}}var jI=` +layout(std140) uniform commonUniforms { + vec3 u_blur_height_fixed; + float u_stroke_width; + float u_additive; + float u_stroke_opacity; + float u_size_unit; + float u_time; + vec4 u_animate; +}; -attribute vec2 a_iconMapUV; -varying vec2 v_iconMapUV; -varying vec4 v_line_data; +in vec4 v_color; +in vec4 v_stroke; +in vec4 v_data; +in float v_radius; -#pragma include "projection" -#pragma include "project" +#pragma include "scene_uniforms" +#pragma include "sdf_2d" #pragma include "picking" -float maps (float value, float start1, float stop1, float start2, float stop2) { - return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); -} - -float getSegmentRatio(float index) { - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0)); -} - -float paraboloid(vec2 source, vec2 target, float ratio) { - vec2 x = mix(source, target, ratio); - vec2 center = mix(source, target, 0.5); - float dSourceCenter = distance(source, center); - float dXCenter = distance(x, center); - return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); -} +out vec4 outputColor; -vec3 getPos(vec2 source, vec2 target, float segmentRatio) { - float vertex_height = paraboloid(source, target, segmentRatio); +void main() { + int shape = int(floor(v_data.w + 0.5)); + lowp float antialiasblur = v_data.z; + float r = v_radius / (v_radius + u_stroke_width); - return vec3( - mix(source, target, segmentRatio), - sqrt(max(0.0, vertex_height)) - ); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + float outer_df; + float inner_df; + // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica' + if (shape == 0) { + outer_df = sdCircle(v_data.xy, 1.0); + inner_df = sdCircle(v_data.xy, r); + } else if (shape == 1) { + outer_df = sdEquilateralTriangle(1.1 * v_data.xy); + inner_df = sdEquilateralTriangle(1.1 / r * v_data.xy); + } else if (shape == 2) { + outer_df = sdBox(v_data.xy, vec2(1.)); + inner_df = sdBox(v_data.xy, vec2(r)); + } else if (shape == 3) { + outer_df = sdPentagon(v_data.xy, 0.8); + inner_df = sdPentagon(v_data.xy, r * 0.8); + } else if (shape == 4) { + outer_df = sdHexagon(v_data.xy, 0.8); + inner_df = sdHexagon(v_data.xy, r * 0.8); + } else if (shape == 5) { + outer_df = sdOctogon(v_data.xy, 1.0); + inner_df = sdOctogon(v_data.xy, r); + } else if (shape == 6) { + outer_df = sdHexagram(v_data.xy, 0.52); + inner_df = sdHexagram(v_data.xy, r * 0.52); + } else if (shape == 7) { + outer_df = sdRhombus(v_data.xy, vec2(1.0)); + inner_df = sdRhombus(v_data.xy, vec2(r)); + } else if (shape == 8) { + outer_df = sdVesica(v_data.xy, 1.1, 0.8); + inner_df = sdVesica(v_data.xy, r * 1.1, r * 0.8); + } - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + float opacity_t = smoothstep(0.0, antialiasblur, outer_df); - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} + float color_t = u_stroke_width < 0.01 ? 0.0 : smoothstep( + antialiasblur, + 0.0, + inner_df + ); -float torad(float deg) { - return (deg / 180.0) * acos(-1.0); + float PI = 3.14159; + float N_RINGS = 3.0; + float FREQ = 1.0; + + if(u_stroke_width < 0.01) { + outputColor = v_color; + } else { + outputColor = mix(v_color, v_stroke * u_stroke_opacity, color_t); + } + float intensity = 1.0; + if(u_time!=-1.0){ + //wave\u76F8\u5173\u903B\u8F91 + float d = length(v_data.xy); + if(d > 0.5) { + discard; + } + intensity = clamp(cos(d * PI), 0.0, 1.0) * clamp(cos(2.0 * PI * (d * 2.0 * u_animate.z - u_animate.y * u_time)), 0.0, 1.0); + } + + if(u_additive > 0.0) { + outputColor *= opacity_t; + outputColor *= intensity;//wave + outputColor = filterColorAlpha(outputColor, outputColor.a); + } else { + outputColor.a *= opacity_t; + outputColor.a *= intensity;//wave + outputColor = filterColor(outputColor); + } + // \u4F5C\u4E3A mask \u6A21\u677F\u65F6\u9700\u8981\u4E22\u5F03\u900F\u660E\u7684\u50CF\u7D20 + if(outputColor.a < 0.01) { + discard; + } } +`,sie=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 10) in float a_Shape; +layout(location = 11) in vec3 a_Extrude; -vec3 lglt2xyz(vec2 lnglat) { - float pi = 3.1415926; - // + Math.PI/2 \u662F\u4E3A\u4E86\u5BF9\u9F50\u5750\u6807 - float lng = torad(lnglat.x) + pi / 2.0; - float lat = torad(lnglat.y); +layout(std140) uniform commonUniforms { + vec3 u_blur_height_fixed; + float u_stroke_width; + float u_additive; + float u_stroke_opacity; + float u_size_unit; + float u_time; + vec4 u_animate; +}; - // \u624B\u52A8\u589E\u52A0\u4E00\u4E9B\u504F\u79FB\uFF0C\u51CF\u8F7B\u9762\u7684\u51B2\u7A81 - float radius = u_globel_radius; +out vec4 v_color; +out vec4 v_stroke; +out vec4 v_data; +out float v_radius; - float z = radius * cos(lat) * cos(lng); - float x = radius * cos(lat) * sin(lng); - float y = radius * sin(lat); - return vec3(x, y, z); -} +#pragma include "projection" +#pragma include "picking" +#pragma include "rotation_2d" void main() { + // \u900F\u660E\u5EA6\u8BA1\u7B97 + v_stroke = stroke; + vec3 extrude = a_Extrude; + float shape_type = a_Shape; + /* + * setPickingSize \u8BBE\u7F6E\u62FE\u53D6\u5927\u5C0F + * u_meter2coord \u5728\u7B49\u9762\u79EF\u5927\u5C0F\u7684\u65F6\u5019\u8BBE\u7F6E\u5355\u4F4D + */ + float newSize = setPickingSize(a_Size); + // float newSize = setPickingSize(a_Size) * 0.00001038445708445579; - v_color = a_Color; - v_color.a = v_color.a * opacity; - vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy; - vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy; - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - - float d_distance_ratio; - if(u_line_type == LineTypeDash) { - d_distance_ratio = segmentIndex / segmentNumber; - vec2 s = source; - vec2 t = target; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - s = unProjCustomCoord(source); - t = unProjCustomCoord(target); - } - float total_Distance = pixelDistance(s, t) / 2.0 * PI; - v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); - } - if(u_animate.x == Animate) { - d_distance_ratio = segmentIndex / segmentNumber; - } - v_line_data.g = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - vec3 curr = getPos(source, target, segmentRatio); - vec3 next = getPos(source, target, nextSegmentRatio); - vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y); - // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); + // unpack color(vec2) + v_color = vec4(a_Color.xyz, a_Color.w * opacity); - v_segmentIndex = a_Position.x; - if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F + if(u_size_unit == 1.0) { + newSize = newSize * u_PixelsPerMeter.z; + } - float arcDistrance = length(source - target); - float pixelLen = project_pixel_texture(u_icon_step); - v_line_data.b = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + v_radius = newSize; - vec2 projectOffset = project_pixel(offset); - float lineOffsetWidth = length(projectOffset + projectOffset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB - float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB - v_line_data.a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + // anti-alias + // float antialiased_blur = -max(u_blur, antialiasblur); + float antialiasblur = -max(2.0 / u_DevicePixelRatio / newSize, u_blur_height_fixed.x); - v_iconMapUV = a_iconMapUV; - } + vec2 offset = (extrude.xy * (newSize + u_stroke_width) + u_offsets); + vec3 aPosition = a_Position; + offset = project_pixel(offset); + offset = rotate_matrix(offset,rotation); + + // TODP: /abs(extrude.x) \u662F\u4E3A\u4E86\u517C\u5BB9\u5730\u7403\u6A21\u5F0F + v_data = vec4(extrude.x/abs(extrude.x), extrude.y/abs(extrude.y), antialiasblur,shape_type); - gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + project_pixel(offset), curr.z * thetaOffset, 1.0)); - // \u5730\u7403\u6A21\u5F0F - if(u_globel > 0.0) { - vec3 startLngLat = lglt2xyz(a_Instance.rg); - vec3 endLngLat = lglt2xyz(a_Instance.ba); - float globalRadius = length(startLngLat); + // vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0)); + vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); - vec3 lineDir = normalize(endLngLat - startLngLat); - vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); + float raisingHeight = u_blur_height_fixed.y; - // \u7EBF\u7684\u504F\u79FB - vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; - // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB - float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; - // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 - float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; - // \u5730\u7403\u70B9\u4F4D - vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; - - gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); + if(u_blur_height_fixed.z < 1.0) { // false + raisingHeight = project_pixel(u_blur_height_fixed.y); + } else { + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + raisingHeight = u_blur_height_fixed.y * mapboxZoomScale; + } } - + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, raisingHeight, 1.0)); setPickingColor(a_PickingColor); } -`,Cj=` -#define Animate 0.0 -uniform float u_time; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -varying vec4 v_Color; +`,c8=function(i){(0,Wt.Z)(f,i);var v=O7(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),C=d.strokeOpacity,M=C===void 0?1:C,B=d.strokeWidth,J=B===void 0?0:B,ue=d.blend,Ue=d.blur,it=Ue===void 0?0:Ue,Ir=d.raisingHeight,Wo=Ir===void 0?0:Ir,Ca=d.heightfixed,eu=Ca===void 0?!1:Ca,Bd=d.unit,r0=Bd===void 0?"pixel":Bd,N0=this.getAnimateUniforms().u_time;isNaN(N0)&&(N0=-1);var fv={u_blur_height_fixed:[it,Number(Wo),Number(eu)],u_stroke_width:J,u_additive:ue==="additive"?1:0,u_stroke_opacity:M,u_size_unit:sT[r0],u_time:N0,u_animate:this.getAnimateUniforms().u_animate},v1=this.getUniformsBufferInfo(fv);return v1}},{key:"getAnimateUniforms",value:function(){var d=this.layer.getLayerConfig(),C=d.animateOption,M=C===void 0?{enable:!1}:C;return{u_animate:this.animateOption2Array(M),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),Fa)}},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J,ue,Ue,it,Ir,Wo;return Dv().wrap(function(eu){for(;;)switch(eu.prev=eu.next){case 0:return M=this.layer.getLayerConfig(),B=M.animateOption,J=B===void 0?{enable:!1}:B,ue=this.getShaders(J),Ue=ue.frag,it=ue.vert,Ir=ue.type,this.layer.triangulation=Fa,this.initUniformsBuffer(),eu.next=6,this.layer.buildLayerModel({moduleName:Ir,vertexShader:it,fragmentShader:Ue,inject:this.getInject(),triangulation:Fa,depth:{enable:!1}});case 6:return Wo=eu.sent,eu.abrupt("return",[Wo]);case 8:case"end":return eu.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"getShaders",value:function(d){return{frag:jI,vert:sie,type:"pointFill"}}},{key:"animateOption2Array",value:function(d){return[d.enable?0:1,d.speed||1,d.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var d=this.layer.getLayerConfig().shape2d;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:mS.Attribute,descriptor:{name:"a_Extrude",shaderLocation:aE.EXTRUDE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:3,update:function(M,B,J,ue){var Ue=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],it=ue%4*3;return[Ue[it],Ue[it+1],Ue[it+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:mS.Attribute,descriptor:{name:"a_Size",shaderLocation:aE.SIZE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:1,update:function(M){var B=M.size,J=B===void 0?5:B;return Array.isArray(J)?[J[0]]:[J]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:mS.Attribute,descriptor:{name:"a_Shape",shaderLocation:aE.SHAPE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:1,update:function(M){var B=M.shape,J=B===void 0?2:B,ue=d.indexOf(J);return[ue]}}})}}]),f}(Gx);function zY(i){var v=R7();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function R7(){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(i){return!1}}var $Y=`in vec2 v_uv;// \u672C\u8EAB\u7684 uv \u5750\u6807 +in vec2 v_Iconuv; +in float v_opacity; +out vec4 outputColor; + +uniform sampler2D u_texture; +layout(std140) uniform commonUniform { + vec2 u_textSize; + float u_heightfixed: 0.0; + float u_raisingHeight: 0.0; + float u_size_unit; +}; -varying float v_distance_ratio; +#pragma include "scene_uniforms" +#pragma include "sdf_2d" #pragma include "picking" void main() { - - float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 - gl_FragColor = v_Color; - - if(u_animate.x == Animate) { - animateSpeed = u_time / u_animate.y; - float alpha =1.0 - fract( mod(1.0- v_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); - - alpha = (alpha + u_animate.w -1.0) / u_animate.w; - // alpha = smoothstep(0., 1., alpha); - alpha = clamp(alpha, 0.0, 1.0); - gl_FragColor.a *= alpha; - - // u_animate - // x enable - // y duration - // z interval - // w trailLength - } - - gl_FragColor = filterColor(gl_FragColor); + vec2 pos = v_Iconuv / u_textSize + v_uv / u_textSize * 64.; + outputColor = texture(SAMPLER_2D(u_texture), pos); + outputColor.a *= v_opacity; + outputColor = filterColor(outputColor); } -`,_O=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#define Animate 0.0 -#define LineTexture 1.0 -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute vec4 a_Color; -attribute float a_Size; -attribute vec2 a_iconMapUV; - -uniform float u_globel; -uniform float u_globel_radius; -uniform float u_global_height: 10; -uniform mat4 u_ModelMatrix; +`,d8=`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; +layout(location = 14) in vec2 a_Uv; -uniform float segmentNumber; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; +layout(std140) uniform commonUniform { + vec2 u_textSize; + float u_heightfixed: 0.0; + float u_raisingHeight: 0.0; + float u_size_unit; +}; -uniform float u_line_type: 0.0; -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; -uniform float u_icon_step: 100; -uniform float u_line_texture: 0.0; -varying float v_distance_ratio; +out vec2 v_uv; +out vec2 v_Iconuv; +out float v_opacity; -varying vec4 v_dash_array; -varying vec4 v_color; -varying vec2 v_iconMapUV; -varying vec4 v_Color; #pragma include "projection" -#pragma include "project" #pragma include "picking" +#pragma include "rotation_2d" -float maps (float value, float start1, float stop1, float start2, float stop2) { - return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); -} - -float getSegmentRatio(float index) { - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0)); -} - -float paraboloid(vec2 source, vec2 target, float ratio) { - vec2 x = mix(source, target, ratio); - vec2 center = mix(source, target, 0.5); - float dSourceCenter = distance(source, center); - float dXCenter = distance(x, center); - return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); -} +void main() { + vec3 extrude = a_Extrude; + v_uv = (a_Extrude.xy + 1.0)/2.0; + v_uv.y = 1.0 - v_uv.y; + v_Iconuv = a_Uv; + v_opacity = opacity; + float newSize = a_Size; + if(u_size_unit == 1.0) { + newSize = newSize * u_PixelsPerMeter.z; + } + + // vec2 offset = (u_RotateMatrix * extrude.xy * (a_Size) + textrueOffsets); + vec2 offset = (extrude.xy * (newSize) + offsets); -vec3 getPos(vec2 source, vec2 target, float segmentRatio) { - float vertex_height = paraboloid(source, target, segmentRatio); + offset = rotate_matrix(offset,rotation); - return vec3( - mix(source, target, segmentRatio), - sqrt(max(0.0, vertex_height)) - ); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + vec3 aPosition = a_Position; - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + offset = project_pixel(offset); - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} + vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); + float raisingHeight = u_raisingHeight; + if(u_heightfixed < 1.0) { // height fixed + raisingHeight = project_pixel(u_raisingHeight); + } else { + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + raisingHeight = u_raisingHeight * mapboxZoomScale; + } + } -float torad(float deg) { - return (deg / 180.0) * acos(-1.0); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, 0.0, 1.0)); + + setPickingColor(a_PickingColor); } +`,aie=function(i){(0,Wt.Z)(f,i);var v=zY(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M= 0.5) { + float luma = 0.299 * textureColor.r + 0.587 * textureColor.g + 0.114 * textureColor.b; + textureColor.a *= luma; } - if(u_animate.x == Animate) { - v_distance_ratio = segmentIndex / segmentNumber; + + if(all(lessThan(v_color, vec4(1.0+0.00001))) && all(greaterThan(v_color, vec4(1.0-0.00001))) || v_color==vec4(1.0)){ + outputColor= textureColor; + }else { + outputColor= step(0.01, textureColor.z) * v_color; + } + outputColor.a *= v_opacity; + if (outputColor.a < 0.01) { + discard; } + outputColor = filterColor(outputColor); +} +`,cie=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 14) in vec2 a_Uv; +layout(std140) uniform commonUniforms { + vec2 u_textSize; + float u_raisingHeight; + float u_heightfixed; +}; - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - vec3 curr = getPos(source, target, segmentRatio); - vec3 next = getPos(source, target, nextSegmentRatio); - vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y); +out vec4 v_color; +out vec2 v_uv; +out float v_opacity; - float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 - v_Color = mix(u_sourceColor, u_targetColor, a_Position.x/segmentNumber); +#pragma include "projection" +#pragma include "picking" - v_Color.a *= opacity; +void main() { - gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + v_color = a_Color; + v_opacity = opacity; + v_uv = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + + vec2 offset = project_pixel(offsets); - // \u5730\u7403\u6A21\u5F0F - if(u_globel > 0.0) { - vec3 startLngLat = lglt2xyz(a_Instance.rg); - vec3 endLngLat = lglt2xyz(a_Instance.ba); - float globalRadius = length(startLngLat); + float raisingHeight = u_raisingHeight; + if(u_heightfixed < 1.0) { // false + raisingHeight = project_pixel(u_raisingHeight); + } else { + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + raisingHeight = u_raisingHeight * mapboxZoomScale; + } + } - vec3 lineDir = normalize(endLngLat - startLngLat); - vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); - // \u7EBF\u7684\u504F\u79FB - vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; - // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB - float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; - // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 - float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; - // \u5730\u7403\u70B9\u4F4D - vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; - - gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); - } - + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, raisingHeight, 1.0)); + gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; setPickingColor(a_PickingColor); } -`,bO={solid:0,dash:1},C7=function(o){(0,lt.Z)(l,o);var d=xj(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { - flag = 1.; - } - gl_FragColor.a *=flag; - } + lowp float antialiasblur = v_data.z; + float r = v_radius / (v_radius); - if(u_animate.x == Animate && u_line_texture != LineTexture) { - animateSpeed = u_time / u_animate.y; - float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); + float outer_df = sdCircle(v_data.xy, 1.0); + float inner_df = sdCircle(v_data.xy, r); - alpha = (alpha + u_animate.w -1.0) / u_animate.w; - // alpha = smoothstep(0., 1., alpha); - alpha = clamp(alpha, 0.0, 1.0); - gl_FragColor.a *= alpha; + float opacity_t = smoothstep(0.0, antialiasblur, outer_df); - // u_animate - // x enable - // y duration - // z interval - // w trailLength + outputColor = vec4(v_color.rgb, v_color.a); + + if(u_additive > 0.0) { + outputColor *= opacity_t; + } else { + outputColor.a *= opacity_t; } - if(u_line_texture == LineTexture && u_line_type != LineTypeDash) { // while load texture - // float arcRadio = smoothstep( 0.0, 1.0, (v_segmentIndex / segmentNumber)); - float arcRadio = v_segmentIndex / (segmentNumber - 1.0); - float count = v_line_data.b; // // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + if(outputColor.a > 0.0) { + outputColor = filterColor(outputColor); + } - float time = 0.0; - if(u_animate.x == Animate) { - time = u_time / u_animate.y; - } - float redioCount = arcRadio * count; + vec2 extrude = v_extrude; + vec2 dir = normalize(extrude); + vec2 baseDir = vec2(1.0, 0.0); + float pi = 3.14159265359; + float flag = sign(dir.y); + float rades = dot(dir, baseDir); + float radar_v = (flag - 1.0) * -0.5 * acos(rades)/pi; + // simple AA + if(radar_v > 0.99) { + radar_v = 1.0 - (radar_v - 0.99)/0.01; + } - float u = fract(redioCount - time); + outputColor.a *= radar_v; +} +`,Q5=`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; - float v = v_line_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; - vec4 pattern = texture2D(u_texture, uv); +layout(std140) uniform commonUniorm { + float u_additive; + float u_size_unit; + float u_speed: 1.0; + float u_time; +}; - if(u_animate.x == Animate) { - float currentPlane = floor(redioCount - time); - float textureStep = floor(count * u_animate.z); - float a = mod(currentPlane, textureStep); - if(a < textureStep - 1.0) { - pattern = vec4(0.0); - } - } +out vec4 v_data; +out vec4 v_color; +out float v_radius; +out vec2 v_extrude; - if(u_textureBlend == 0.0) { // normal - pattern.a = 0.0; - gl_FragColor = filterColor(gl_FragColor + pattern); - } else { // replace - pattern.a *= v_color.a; - if(gl_FragColor.a <= 0.0) { - pattern.a = 0.0; - discard; - } else { - gl_FragColor = filterColor(pattern); - } - } +#pragma include "projection" +#pragma include "picking" - } else { - gl_FragColor = filterColor(gl_FragColor); - } -} -`,Ej=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#define Animate 0.0 -#define LineTexture 1.0 -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute vec4 a_Color; -attribute float a_Size; +void main() { + float newSize = setPickingSize(a_Size); -uniform float u_globel; -uniform float u_globel_radius; -uniform float u_global_height: 10; -uniform mat4 u_ModelMatrix; + float time = u_time * u_speed; + mat2 rotateMatrix = mat2( + cos(time), sin(time), + -sin(time), cos(time) + ); + v_extrude = rotateMatrix * a_Extrude.xy; -uniform float segmentNumber; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -varying vec4 v_color; + v_color = a_Color; + v_color.a *= opacity; -uniform float u_line_type: 0.0; -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; -varying vec4 v_dash_array; + float blur = 0.0; + float antialiasblur = -max(2.0 / u_DevicePixelRatio / a_Size, blur); -uniform float u_icon_step: 100; -uniform float u_line_texture: 0.0; -varying float v_segmentIndex; + if(u_size_unit == 1.) { + newSize = newSize * u_PixelsPerMeter.z; + } + v_radius = newSize; -attribute vec2 a_iconMapUV; -varying vec2 v_iconMapUV; -varying vec4 v_line_data; + vec2 offset = (a_Extrude.xy * (newSize)); + vec3 aPosition = a_Position; + + offset = project_pixel(offset); + + v_data = vec4(a_Extrude.x, a_Extrude.y, antialiasblur, -1.0); -#pragma include "projection" -#pragma include "project" -#pragma include "picking" + vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); -float maps (float value, float start1, float stop1, float start2, float stop2) { - return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); + setPickingColor(a_PickingColor); } +`,fie=function(i){(0,Wt.Z)(f,i);var v=die(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),C=d.blend,M=d.speed,B=M===void 0?1:M,J=d.unit,ue=J===void 0?"pixel":J,Ue={u_additive:C==="additive"?1:0,u_size_unit:sT[ue],u_speed:B,u_time:this.layer.getLayerAnimateTime()},it=this.getUniformsBufferInfo(Ue);return it}},{key:"getAnimateUniforms",value:function(){return{}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),NU)}},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M;return Dv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return this.initUniformsBuffer(),J.next=3,this.layer.buildLayerModel({moduleName:"pointRadar",vertexShader:Q5,fragmentShader:hie,triangulation:NU,inject:this.getInject(),depth:{enable:!1}});case 3:return M=J.sent,J.abrupt("return",[M]);case 5:case"end":return J.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"animateOption2Array",value:function(d){return[d.enable?0:1,d.speed||1,d.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"extrude",type:mS.Attribute,descriptor:{name:"a_Extrude",shaderLocation:aE.EXTRUDE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:3,update:function(C,M,B,J){var ue=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],Ue=J%4*3;return[ue[Ue],ue[Ue+1],ue[Ue+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:mS.Attribute,descriptor:{shaderLocation:aE.SIZE,name:"a_Size",buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:1,update:function(C){var M=C.size,B=M===void 0?5:M;return Array.isArray(B)?[B[0]]:[B]}}})}}]),f}(Gx);function h8(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=pie(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var g=0,d=function(){};return{s:d,n:function(){return g>=i.length?{done:!0}:{done:!1,value:i[g++]}},e:function(ue){throw ue},f:d}}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 C=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return C=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!C&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function pie(i,v){if(i){if(typeof i=="string")return FZ(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return FZ(i,v)}}function FZ(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,g=new Array(v);fthis.width||C<0||g>this.height)return M?!1:[];var J=[];if(f<=0&&g<=0&&this.width<=d&&this.height<=C){if(M)return!0;for(var ue=0;ue0:J}},{key:"queryCell",value:function(f,g,d,C,M,B,J,ue){var Ue=J.seenUids,it=this.boxCells[M];if(it!==null){var Ir=this.bboxes,Wo=h8(it),Ca;try{for(Wo.s();!(Ca=Wo.n()).done;){var eu=Ca.value;if(!Ue.box[eu]){Ue.box[eu]=!0;var Bd=eu*4;if(f<=Ir[Bd+2]&&g<=Ir[Bd+3]&&d>=Ir[Bd+0]&&C>=Ir[Bd+1]&&(!ue||ue(this.boxKeys[eu]))){if(J.hitTest)return B.push(!0),!0;B.push({key:this.boxKeys[eu],x1:Ir[Bd],y1:Ir[Bd+1],x2:Ir[Bd+2],y2:Ir[Bd+3]})}}}}catch(r0){Wo.e(r0)}finally{Wo.f()}}return!1}},{key:"forEachCell",value:function(f,g,d,C,M,B,J,ue){for(var Ue=this.convertToXCellCoord(f),it=this.convertToYCellCoord(g),Ir=this.convertToXCellCoord(d),Wo=this.convertToYCellCoord(C),Ca=Ue;Ca<=Ir;Ca++)for(var eu=it;eu<=Wo;eu++){var Bd=this.xCellCount*eu+Ca;if(M.call(this,f,g,d,C,Bd,B,J,ue))return}}},{key:"convertToXCellCoord",value:function(f){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(f*this.xScale)))}},{key:"convertToYCellCoord",value:function(f){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(f*this.yScale)))}}]),i}(),BZ=gie,mie=function(){function i(v,f){(0,Or.Z)(this,i),(0,ka.Z)(this,"viewportPadding",100),this.width=v,this.height=f,this.viewportPadding=Math.max(v,f),this.grid=new BZ(v+this.viewportPadding,f+this.viewportPadding,25),this.screenRightBoundary=v+this.viewportPadding,this.screenBottomBoundary=f+this.viewportPadding,this.gridRightBoundary=v+2*this.viewportPadding,this.gridBottomBoundary=f+2*this.viewportPadding}return(0,at.Z)(i,[{key:"placeCollisionBox",value:function(f){var g=f.x1+f.anchorPointX+this.viewportPadding,d=f.y1+f.anchorPointY+this.viewportPadding,C=f.x2+f.anchorPointX+this.viewportPadding,M=f.y2+f.anchorPointY+this.viewportPadding;return!this.isInsideGrid(g,d,C,M)||this.grid.hitTest(g,d,C,M)?{box:[]}:{box:[g,d,C,M]}}},{key:"insertCollisionBox",value:function(f,g){var d={featureIndex:g};this.grid.insert(d,f[0],f[1],f[2],f[3])}},{key:"project",value:function(f,g,d){var C=Lt(g,d,0,1),M=ve(),B=p2.apply(b,(0,Gd.Z)(f));return aC(M,C,B),{x:(M[0]/M[3]+1)/2*this.width+this.viewportPadding,y:(-M[1]/M[3]+1)/2*this.height+this.viewportPadding}}},{key:"isInsideGrid",value:function(f,g,d,C){return d>=0&&f=0&&g=i.length?{done:!0}:{done:!1,value:i[g++]}},e:function(ue){throw ue},f:d}}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 C=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return C=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!C&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function zZ(i,v){if(i){if(typeof i=="string")return ZY(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return ZY(i,v)}}function ZY(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,g=new Array(v);f6&&arguments[6]!==void 0?arguments[6]:[0,0],B=arguments.length>7?arguments[7]:void 0,J=i.split(` +`),ue=[],Ue={positionedGlyphs:ue,top:M[1],bottom:M[1],left:M[0],right:M[0],lineCount:J.length,text:i};return B?B7(Ue,v,J,f,g,d,C):p8(Ue,v,J,f,g,d,C),ue.length?Ue:!1}function UZ(i){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0],f=arguments.length>2?arguments[2]:void 0,g=i.positionedGlyphs,d=g===void 0?[]:g,C=[],M=WY(d),B;try{for(M.s();!(B=M.n()).done;){var J=B.value,ue=J.metrics,Ue=4,it=ue.advance*J.scale/2,Ir=f?[J.x+it,J.y]:[0,0],Wo=f?[0,0]:[J.x+it+v[0],J.y+v[1]],Ca=(0-Ue)*J.scale-it+Wo[0],eu=(0-Ue)*J.scale+Wo[1],Bd=Ca+ue.width*J.scale,r0=eu+ue.height*J.scale,N0={x:Ca,y:eu},fv={x:Bd,y:eu},v1={x:Ca,y:r0},_y={x:Bd,y:r0};C.push({tl:N0,tr:fv,bl:v1,br:_y,tex:ue,glyphOffset:Ir})}}catch(Q1){M.e(Q1)}finally{M.f()}return C}function HY(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=vie(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var g=0,d=function(){};return{s:d,n:function(){return g>=i.length?{done:!0}:{done:!1,value:i[g++]}},e:function(ue){throw ue},f:d}}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 C=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return C=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!C&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function vie(i,v){if(i){if(typeof i=="string")return z7(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return z7(i,v)}}function z7(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,g=new Array(v);f 0.0) { - vec3 startLngLat = lglt2xyz(a_Instance.rg); - vec3 endLngLat = lglt2xyz(a_Instance.ba); - float globalRadius = length(startLngLat); + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + // vec4 projected_position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - vec3 lineDir = normalize(endLngLat - startLngLat); - vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); + vec2 offset = rotate_matrix(a_textOffsets,rotation); + + // gl_Position = vec4(projected_position.xy / projected_position.w + rotation_matrix * a_textOffsets * fontScale / u_ViewportSize * 2.0 * u_DevicePixelRatio, 0.0, 1.0); - // \u7EBF\u7684\u504F\u79FB - vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; - // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB - float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; - // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 - float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; - // \u5730\u7403\u70B9\u4F4D - vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; - - gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); + float raiseHeight = u_raisingHeight; + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + raiseHeight = u_raisingHeight * mapboxZoomScale; } - + vec4 projected_position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz + vec3(0.0, 0.0, raiseHeight), 1.0)); + + gl_Position = vec4( + projected_position.xy / projected_position.w + offset * fontScale / u_ViewportSize * 2.0 * u_DevicePixelRatio, 0.0, 1.0); + v_gamma_scale = gl_Position.w; setPickingColor(a_PickingColor); + } -`,VT=` -#define Animate 0.0 -uniform float u_time; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -varying vec4 v_Color; +`,$O=e1.isEqual;function ek(i){var v=this,f=i.id,g=[],d=[];if(!v.glyphInfoMap||!v.glyphInfoMap[f])return{vertices:[],indices:[],size:7};var C=v.glyphInfoMap[f].centroid,M=C.length===2?[C[0],C[1],0]:C;return v.glyphInfoMap[f].glyphQuads.forEach(function(B,J){g.push.apply(g,(0,Gd.Z)(M).concat([B.tex.x,B.tex.y+B.tex.height,B.tl.x,B.tl.y],(0,Gd.Z)(M),[B.tex.x+B.tex.width,B.tex.y+B.tex.height,B.tr.x,B.tr.y],(0,Gd.Z)(M),[B.tex.x+B.tex.width,B.tex.y,B.br.x,B.br.y],(0,Gd.Z)(M),[B.tex.x,B.tex.y,B.bl.x,B.bl.y])),d.push(0+J*4,1+J*4,2+J*4,2+J*4,3+J*4,0+J*4)}),{vertices:g,indices:d,size:7}}var EA=function(i){(0,Wt.Z)(f,i);var v=g8(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M.5||!r0||J!==this.preTextStyle.textAllowOverlap)){fv.next=14;break}return fv.next=13,this.reBuildModel();case 13:return fv.abrupt("return",!0);case 14:return fv.abrupt("return",!1);case 15:case"end":return fv.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"clearModels",value:function(){var d;(d=this.texture)===null||d===void 0||d.destroy(),this.layer.off("remapping",this.mapping)}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:mS.Attribute,descriptor:{shaderLocation:10,name:"a_textOffsets",buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:2,update:function(C,M,B){return[B[5],B[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:mS.Attribute,descriptor:{name:"a_tex",shaderLocation:aE.UV,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:2,update:function(C,M,B){return[B[3],B[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:mS.Attribute,descriptor:{name:"a_Size",shaderLocation:aE.SIZE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:1,update:function(C){var M=C.size,B=M===void 0?12:M;return Array.isArray(B)?[B[0]]:[B]}}})}},{key:"bindEvent",value:function(){this.layer.isTileLayer||this.layer.on("remapping",this.mapping)}},{key:"textExtent",value:function(){var d=this.mapService.getBounds();return cx(d,.5)}},{key:"initTextFont",value:function(){var d=this.getTextStyle(),C=d.fontWeight,M=d.fontFamily,B=this.rawEncodeData,J=[];B.forEach(function(ue){var Ue=ue.shape,it=Ue===void 0?"":Ue;it=it.toString();var Ir=HY(it),Wo;try{for(Ir.s();!(Wo=Ir.n()).done;){var Ca=Wo.value;J.indexOf(Ca)===-1&&J.push(Ca)}}catch(eu){Ir.e(eu)}finally{Ir.f()}}),this.fontService.setFontOptions({characterSet:J,fontWeight:C,fontFamily:M,iconfont:!1})}},{key:"initIconFontTex",value:function(){var d=this.getTextStyle(),C=d.fontWeight,M=d.fontFamily,B=this.rawEncodeData,J=[];B.forEach(function(ue){var Ue=ue.shape,it=Ue===void 0?"":Ue;it="".concat(it),J.indexOf(it)===-1&&J.push(it)}),this.fontService.setFontOptions({characterSet:J,fontWeight:C,fontFamily:M,iconfont:!0})}},{key:"getTextStyle",value:function(){var d=this.layer.getLayerConfig(),C=d.fontWeight,M=C===void 0?"400":C,B=d.fontFamily,J=B===void 0?"sans-serif":B,ue=d.textAllowOverlap,Ue=ue===void 0?!1:ue,it=d.padding,Ir=it===void 0?[0,0]:it,Wo=d.textAnchor,Ca=Wo===void 0?"center":Wo,eu=d.textOffset,Bd=eu===void 0?[0,0]:eu,r0=d.opacity,N0=r0===void 0?1:r0,fv=d.strokeOpacity,v1=fv===void 0?1:fv,_y=d.strokeWidth,Q1=_y===void 0?0:_y,iy=d.stroke,Uy=iy===void 0?"#000":iy;return{fontWeight:M,fontFamily:J,textAllowOverlap:Ue,padding:Ir,textAnchor:Ca,textOffset:Bd,opacity:N0,strokeOpacity:v1,strokeWidth:Q1,stroke:Uy}}},{key:"generateGlyphLayout",value:function(d){var C=this,M=this.getFontServiceMapping(),B=this.layer.getLayerConfig(),J=B.spacing,ue=J===void 0?2:J,Ue=B.textAnchor,it=Ue===void 0?"center":Ue,Ir=B.textOffset,Wo=this.rawEncodeData;this.glyphInfo=Wo.map(function(Ca){var eu=Ca.shape,Bd=eu===void 0?"":eu,r0=Ca.id,N0=Ca.size,fv=N0===void 0?1:N0,v1=Ca.textOffset?Ca.textOffset:Ir||[0,0],_y=Ca.textAnchor?Ca.textAnchor:it||"center",Q1=SS(Bd.toString(),M,fv,_y,"left",ue,v1,d),iy=UZ(Q1,v1,!1);return Ca.shaping=Q1,Ca.glyphQuads=iy,Ca.centroid=yC(Ca.coordinates),Ca.originCentroid=Ca.version==="GAODE2.x"?yC(Ca.originCoordinates):Ca.originCentroid=Ca.centroid,C.glyphInfoMap[r0]={shaping:Q1,glyphQuads:iy,centroid:yC(Ca.coordinates)},Ca})}},{key:"getFontServiceMapping",value:function(){var d=this.layer.getLayerConfig(),C=d.fontWeight,M=C===void 0?"400":C,B=d.fontFamily,J=B===void 0?"sans-serif":B;return this.fontService.getMappingByKey("".concat(J,"_").concat(M))}},{key:"getFontServiceCanvas",value:function(){var d=this.layer.getLayerConfig(),C=d.fontWeight,M=C===void 0?"400":C,B=d.fontFamily,J=B===void 0?"sans-serif":B;return this.fontService.getCanvasByKey("".concat(J,"_").concat(M))}},{key:"filterGlyphs",value:function(){var d=this,C=this.layer.getLayerConfig(),M=C.padding,B=M===void 0?[0,0]:M,J=C.textAllowOverlap,ue=J===void 0?!1:J;if(!ue){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var Ue=this.rendererService.getViewportSize(),it=Ue.width,Ir=Ue.height,Wo=new mie(it,Ir),Ca=this.glyphInfo.filter(function(eu){var Bd=eu.shaping,r0=eu.id,N0=r0===void 0?0:r0,fv=eu.version==="GAODE2.x"?eu.originCentroid:eu.centroid,v1=eu.size,_y=v1/16,Q1=d.mapService.lngLatToContainer(fv),iy=Wo.placeCollisionBox({x1:Bd.left*_y-B[0],x2:Bd.right*_y+B[0],y1:Bd.top*_y-B[1],y2:Bd.bottom*_y+B[1],anchorPointX:Q1.x,anchorPointY:Q1.y}),Uy=iy.box;return Uy&&Uy.length?(Wo.insertCollisionBox(Uy,N0),!0):!1});Ca.forEach(function(eu){d.glyphInfoMap[eu.id]=eu})}}},{key:"initGlyph",value:function(){var d=this.layer.getLayerConfig(),C=d.iconfont,M=C===void 0?!1:C;M?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(M)}},{key:"updateTexture",value:function(){var d=this.rendererService.createTexture2D,C=this.getFontServiceCanvas();this.textureHeight=C.height,this.texture&&this.texture.destroy(),this.texture=d({data:C,mag:K0.LINEAR,min:K0.LINEAR,width:C.width,height:C.height}),this.textures=[this.texture]}},{key:"reBuildModel",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M;return Dv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return this.filterGlyphs(),J.next=3,this.layer.buildLayerModel({moduleName:"pointText",vertexShader:yie,fragmentShader:jZ,triangulation:ek.bind(this),inject:this.getInject(),depth:{enable:!1}});case 3:M=J.sent,this.layer.models=[M];case 5:case"end":return J.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()}]),f}(Gx),J4={fillImage:aie,fill:c8,radar:fie,image:PL,normal:VY,simplePoint:tie,extrude:lz,text:EA,earthFill:eV,earthExtrude:kY},_ie=J4;function bie(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=GY(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var g=0,d=function(){};return{s:d,n:function(){return g>=i.length?{done:!0}:{done:!1,value:i[g++]}},e:function(ue){throw ue},f:d}}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 C=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return C=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!C&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function GY(i,v){if(i){if(typeof i=="string")return UO(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return UO(i,v)}}function UO(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,g=new Array(v);f 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 + project_pos.z = a_Position.z * a_Size; + project_pos.z += u_raisingHeight; -float maps (float value, float start1, float stop1, float start2, float stop2) { - return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); -} + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + } -float getSegmentRatio(float index) { - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0)); -} -float paraboloid(vec2 source, vec2 target, float ratio) { - vec2 x = mix(source, target, ratio); - vec2 center = mix(source, target, 0.5); - float dSourceCenter = distance(source, center); - float dXCenter = distance(x, center); - return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); -} + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); -vec3 getPos(vec2 source, vec2 target, float segmentRatio) { - float vertex_height = paraboloid(source, target, segmentRatio); + // Tip: \u90E8\u5206\u673A\u578B GPU \u8BA1\u7B97\u7CBE\u5EA6\u517C\u5BB9 + if(isSide < 0.999) { + // side face + // if(u_sidesurface < 1.0) { + // discard; + // } - return vec3( - mix(source, target, segmentRatio), - sqrt(max(0.0, vertex_height)) - ); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + if(u_linearColor == 1.0) { + vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); + linearColor.rgb *= lightWeight; + v_Color = linearColor; + } else { + v_Color = a_Color; + } - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + } else { + v_Color = a_Color; + } - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} + v_Color = vec4(v_Color.rgb * lightWeight, v_Color.w * opacity); -float torad(float deg) { - return (deg / 180.0) * acos(-1.0); + + setPickingColor(a_PickingColor); } +`,YY=`uniform sampler2D u_texture; -vec3 lglt2xyz(vec2 lnglat) { - float pi = 3.1415926; - // + Math.PI/2 \u662F\u4E3A\u4E86\u5BF9\u9F50\u5750\u6807 - float lng = torad(lnglat.x) + pi / 2.0; - float lat = torad(lnglat.y); +layout(std140) uniform commonUniforms { + vec4 u_sourceColor; + vec4 u_targetColor; + float u_linearColor; + float u_topsurface; + float u_sidesurface; + float u_heightfixed; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A + float u_raisingHeight; +}; - // \u624B\u52A8\u589E\u52A0\u4E00\u4E9B\u504F\u79FB\uFF0C\u51CF\u8F7B\u9762\u7684\u51B2\u7A81 - float radius = u_globel_radius; +in vec4 v_Color; +in vec3 v_uvs; +in vec2 v_texture_data; - float z = radius * cos(lat) * cos(lng); - float x = radius * cos(lat) * sin(lng); - float y = radius * sin(lat); - return vec3(x, y, z); -} +#pragma include "scene_uniforms" +#pragma include "picking" + +out vec4 outputColor; void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + float opacity = u_opacity; + float isSide = v_texture_data.x; + float lightWeight = v_texture_data.y; + float topU = v_uvs[0]; + float topV = 1.0 - v_uvs[1]; + float sidey = v_uvs[2]; - v_color = a_Color; - vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy; - vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy; - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + outputColor = texture(SAMPLER_2D(u_texture), vec2(topU, topV)); + // Tip: \u90E8\u5206\u673A\u578B GPU \u8BA1\u7B97\u7CBE\u5EA6\u517C\u5BB9 + if (isSide < 0.999) {// \u662F\u5426\u662F\u8FB9\u7F18 + // side face + if (u_sidesurface < 1.0) { + discard; + } - float d_distance_ratio; - if(u_line_type == LineTypeDash) { - d_distance_ratio = segmentIndex / segmentNumber; - // float total_Distance = pixelDistance(a_Instance.rg, a_Instance.ba) / 2.0 * PI; - vec2 s = source; - vec2 t = target; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - s = unProjCustomCoord(source); - t = unProjCustomCoord(target); + if (u_linearColor == 1.0) { + vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); + linearColor.rgb *= lightWeight; + outputColor = linearColor; + } else { + outputColor = v_Color; + } + } else { + // top face + if (u_topsurface < 1.0) { + discard; } - float total_Distance = pixelDistance(s, t) / 2.0 * PI; - v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); - } - if(u_animate.x == Animate) { - v_distance_ratio = segmentIndex / segmentNumber; } + + outputColor.a *= opacity; + outputColor = filterColor(outputColor); +} +`,KZ=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 13) in vec3 a_Normal; +layout(location = 14) in vec3 a_uvs; - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - vec3 curr = getPos(source, target, segmentRatio); - vec3 next = getPos(source, target, nextSegmentRatio); - vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y); +layout(std140) uniform commonUniforms { + vec4 u_sourceColor; + vec4 u_targetColor; + float u_linearColor; + float u_topsurface; + float u_sidesurface; + float u_heightfixed; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A + float u_raisingHeight; +}; - float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 - v_Color = mix(u_sourceColor, u_targetColor, a_Position.x/segmentNumber); +out vec4 v_Color; +out vec3 v_uvs; +out vec2 v_texture_data; + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" +void main() { + + vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); + float lightWeight = calc_lighting(pos); + vec4 project_pos = project_position(pos); + v_uvs = a_uvs; + v_Color = a_Color; v_Color.a *= opacity; + + v_texture_data = vec2(a_Position.z, lightWeight); - gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); + if(u_heightfixed > 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 + project_pos.z = a_Position.z * a_Size; + project_pos.z += u_raisingHeight; - // \u5730\u7403\u6A21\u5F0F - if(u_globel > 0.0) { - vec3 startLngLat = lglt2xyz(a_Instance.rg); - vec3 endLngLat = lglt2xyz(a_Instance.ba); - float globalRadius = length(startLngLat); + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + } - vec3 lineDir = normalize(endLngLat - startLngLat); - vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); - // \u7EBF\u7684\u504F\u79FB - vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; - // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB - float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; - // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 - float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; - // \u5730\u7403\u70B9\u4F4D - vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; - - gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); - } - + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); - setPickingColor(a_PickingColor); -} -`,E7={solid:0,dash:1},T7=function(o){(0,lt.Z)(l,o);var d=kC(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;ne 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 + project_pos.z = a_Position.z * a_Size; + project_pos.z += u_raisingHeight; + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } } - return -1.; -} + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); + float lightWeight = calc_lighting(pos); + v_texture_data = vec2(a_Position.z,lightWeight); + v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w * opacity); + setPickingColor(a_PickingColor); +} +`,Sie=function(i){(0,Wt.Z)(f,i);var v=ZZ(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getUninforms",value:function(){var d=this.getCommonUniformsInfo(),C=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),(0,An.Z)((0,An.Z)({},d.uniformsOption),C.uniformsOption)}},{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),C=d.mapTexture,M=d.heightfixed,B=M===void 0?!1:M,J=d.raisingHeight,ue=J===void 0?0:J,Ue=d.topsurface,it=Ue===void 0?!0:Ue,Ir=d.sidesurface,Wo=Ir===void 0?!0:Ir,Ca=d.sourceColor,eu=d.targetColor,Bd=0,r0=[1,1,1,1],N0=[1,1,1,1];Ca&&eu&&(r0=a0(Ca),N0=a0(eu),Bd=1);var fv={u_sourceColor:r0,u_targetColor:N0,u_linearColor:Bd,u_topsurface:Number(it),u_sidesurface:Number(Wo),u_heightfixed:Number(B),u_raisingHeight:Number(ue)};C&&this.texture&&(fv.u_texture=this.texture,this.textures=[this.texture]);var v1=this.getUniformsBufferInfo(fv);return v1}},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.loadTexture();case 2:return B.abrupt("return",this.buildModels());case 3:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J,ue,Ue;return Dv().wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:return M=this.getShaders(),B=M.frag,J=M.vert,ue=M.type,this.initUniformsBuffer(),Ir.next=4,this.layer.buildLayerModel({moduleName:ue,vertexShader:J,fragmentShader:B,depth:{enable:!0},inject:this.getInject(),triangulation:fT});case 4:return Ue=Ir.sent,Ir.abrupt("return",[Ue]);case 6:case"end":return Ir.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"getShaders",value:function(){var d=this.layer.getLayerConfig(),C=d.pickLight,M=d.mapTexture;return M?{frag:YY,vert:KZ,type:"polygonExtrudeTexture"}:C?{frag:wie,vert:Cie,type:"polygonExtrudePickLight"}:{frag:XY,vert:GZ,type:"polygonExtrude"}}},{key:"clearModels",value:function(){var d;(d=this.texture)===null||d===void 0||d.destroy(),this.textures=[]}},{key:"registerBuiltinAttributes",value:function(){var d=this.layer.getSource().extent,C=d,M=this.layer.coordCenter||this.layer.getSource().center,B=C[2]-C[0],J=C[3]-C[1];if(this.mapService.version==="GAODE2.x"){var ue=this.mapService.coordToAMap2RelativeCoordinates([d[0],d[1]],M),Ue=(0,_g.Z)(ue,2),it=Ue[0],Ir=Ue[1],Wo=this.mapService.coordToAMap2RelativeCoordinates([d[2],d[3]],M),Ca=(0,_g.Z)(Wo,2),eu=Ca[0],Bd=Ca[1];B=eu-it,J=Bd-Ir,C=[it,Ir,eu,Bd]}this.styleAttributeService.registerStyleAttribute({name:"uvs",type:mS.Attribute,descriptor:{name:"a_uvs",shaderLocation:aE.UV,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:3,update:function(N0,fv,v1){var _y=v1[0],Q1=v1[1];return[(_y-C[0])/B,(Q1-C[1])/J,v1[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:mS.Attribute,descriptor:{name:"a_Normal",shaderLocation:aE.NORMAL,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:3,update:function(N0,fv,v1,_y,Q1){return Q1}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:mS.Attribute,descriptor:{name:"a_Size",shaderLocation:aE.SIZE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:1,update:function(N0){var fv=N0.size,v1=fv===void 0?10:fv;return Array.isArray(v1)?[v1[0]]:[v1]}}})}},{key:"loadTexture",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J,ue;return Dv().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:if(M=this.layer.getLayerConfig(),B=M.mapTexture,J=this.rendererService.createTexture2D,this.texture=J({height:1,width:1}),!B){it.next=8;break}return it.next=6,xie(B);case 6:ue=it.sent,this.texture=J({data:ue,width:ue.width,height:ue.height,wrapS:K0.CLAMP_TO_EDGE,wrapT:K0.CLAMP_TO_EDGE,min:K0.LINEAR,mag:K0.LINEAR});case 8:case"end":return it.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()}]),f}(Gx);function Eie(i){var v=tL();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function tL(){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(i){return!1}}var Tie=` +in vec4 v_Color; +#pragma include "scene_uniforms" +#pragma include "picking" +out vec4 outputColor; void main() { -// \u900F\u660E\u5EA6\u8BA1\u7B97 - vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 - vec2 target = a_Instance.ba; // \u7EC8\u70B9 - vec2 flowlineDir = line_dir(target,source); - vec2 perpendicularDir = vec2(flowlineDir.y, flowlineDir.x); // mapbox || \u9AD8\u5FB7 + outputColor = v_Color; + outputColor = filterColor(outputColor); +} +`,qY=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 13) in vec3 a_Normal; +out vec4 v_Color; - vec2 position = mix(source, target, a_Position.x); - - float lengthCommon = length(project_position(vec4(target,0,1)) - project_position(vec4(source,0,1))); // - vec2 offsetDistances = a_Size.x * project_pixel_offset(vec2(a_Position.y, a_Position.z)); // Mapbox || \u9AD8\u5FB7 - vec2 limitedOffsetDistances = clamp( - offsetDistances, - project_pixel(-lengthCommon*.2), project_pixel(lengthCommon*.2) - ); +#pragma include "projection" +#pragma include "light" +#pragma include "picking" +void main() { + + vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size + (1.0 - a_Position.z) * extrusionBase, 1.0); - float startOffsetCommon = project_pixel(offsets[0]); - float endOffsetCommon = project_pixel(offsets[1]); - float endpointOffset = mix( - clamp(startOffsetCommon, 0.0, lengthCommon*.2), - -clamp(endOffsetCommon, 0.0, lengthCommon*.2), - a_Position.x - ); + vec4 project_pos = project_position(pos); + float lightWeight = calc_lighting(project_pos); + v_Color = a_Color; + v_Color = vec4(v_Color.rgb * lightWeight, v_Color.w * opacity); - vec2 normalsCommon = u_stroke_width * project_pixel_offset(vec2(a_Normal.x, a_Normal.y)); // mapbox || \u9AD8\u5FB7 + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); - float gapCommon = flag_gap() * project_pixel(u_gap_width); - vec3 offsetCommon = vec3( - flowlineDir * (limitedOffsetDistances[1] + normalsCommon.y + endpointOffset * 1.05) - - perpendicularDir * (limitedOffsetDistances[0] + gapCommon + normalsCommon.x), - 0.0 - ); + setPickingColor(a_PickingColor); +} +`,j3=function(i){(0,Wt.Z)(f,i);var v=Eie(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getUninforms",value:function(){var d=this.getCommonUniformsInfo(),C=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),(0,An.Z)((0,An.Z)({},d.uniformsOption),C.uniformsOption)}},{key:"getCommonUniformsInfo",value:function(){var d={},C=this.getUniformsBufferInfo(d);return C}},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J,ue,Ue;return Dv().wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:return M=this.getShaders(),B=M.frag,J=M.vert,ue=M.type,this.initUniformsBuffer(),Ir.next=4,this.layer.buildLayerModel({moduleName:ue,vertexShader:J,fragmentShader:B,inject:this.getInject(),triangulation:fT,depth:{enable:!0}});case 4:return Ue=Ir.sent,Ir.abrupt("return",[Ue]);case 6:case"end":return Ir.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"getShaders",value:function(){return{frag:Tie,vert:qY,type:"polygonExtrude"}}},{key:"clearModels",value:function(){var d;(d=this.texture)===null||d===void 0||d.destroy()}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"normal",type:mS.Attribute,descriptor:{name:"a_Normal",shaderLocation:aE.NORMAL,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:3,update:function(C,M,B,J,ue){return ue}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:mS.Attribute,descriptor:{name:"a_Size",shaderLocation:aE.SIZE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:1,update:function(C){var M=C.size,B=M===void 0?10:M;return Array.isArray(B)?[B[0]]:[B]}}})}}]),f}(Gx);function XZ(i){var v=Aie();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function Aie(){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(i){return!1}}var nL=`in vec4 v_color; +#pragma include "scene_uniforms" +#pragma include "picking" +out vec4 outputColor; +void main() { + outputColor = v_color; + outputColor = filterColor(outputColor); +} +`,JY=` +layout(std140) uniform commonUniforms { + float u_raisingHeight; + float u_opacitylinear; + float u_dir; +}; +in vec4 v_color; +in vec3 v_linear; +in vec2 v_pos; +out vec4 outputColor; +#pragma include "scene_uniforms" +#pragma include "picking" - vec4 project_pos = project_position(vec4(position.xy, 0, 1.0)); +void main() { + outputColor = v_color; + if (u_opacitylinear > 0.0) { + outputColor.a *= u_dir == 1.0 ? 1.0 - length(v_pos - v_linear.xy)/v_linear.z : length(v_pos - v_linear.xy)/v_linear.z; + } + outputColor = filterColor(outputColor); +} +`,Die=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 15) in vec3 a_linear; - vec4 fillColor = vec4(a_Color.rgb, a_Color.a * opacity); - v_color = mix(fillColor, vec4(u_stroke.xyz, u_stroke.w * fillColor.w * u_stroke_opacity), a_Normal.z); +layout(std140) uniform commonUniforms { + float u_raisingHeight; + float u_opacitylinear; + float u_dir; +}; - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offsetCommon.xy, 0., 1.0)); +out vec4 v_color; +out vec3 v_linear; +out vec2 v_pos; + +#pragma include "projection" +#pragma include "picking" +void main() { + if (u_opacitylinear > 0.0) { + v_linear = a_linear; + v_pos = a_Position.xy; + } + v_color = vec4(a_Color.xyz, a_Color.w * opacity); + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + project_pos.z += u_raisingHeight; + if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); setPickingColor(a_PickingColor); -} -`,cy=function(o){(0,lt.Z)(l,o);var d=K1(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.gapWidth,E=m===void 0?2:m,L=u.strokeWidth,Z=L===void 0?1:L,ne=u.stroke,xe=ne===void 0?"#000":ne,Oe=u.strokeOpacity,wt=Oe===void 0?1:Oe;return(0,ze.Z)({u_gap_width:E,u_stroke_width:Z,u_stroke:mi(xe),u_stroke_opacity:wt},this.getStyleAttribute())}},{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 Z.next=2,this.layer.buildLayerModel({moduleName:"flow_line",vertexShader:jT,fragmentShader:GS,inject:this.getInject(),triangulation:Hg,styleOption:this.layer.getLayerConfig().symbol,primitive:Di.TRIANGLES,depth:{enable:!1},pick:!1});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:"size",type:Ih.Attribute,descriptor:{name:"a_Size",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:2,update:function(m){var E=m.size,L=E===void 0?1:E;return Array.isArray(L)?[L[0],L[1]]:[L,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:Ih.Attribute,descriptor:{name:"a_Instance",buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:4,update:function(m,E,L){return[L[3],L[4],L[5],L[6]]}}}),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}}})}}]),l}(ec);function Rj(o){var d=TM();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 TM(){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 AM=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#define Animate 0.0 -#define LineTexture 1.0 - -uniform float u_textureBlend; -uniform float u_blur : 0.9; -uniform float u_line_type: 0.0; -// varying vec2 v_normal; -varying vec4 v_dash_array; -varying float v_distance_ratio; -varying vec4 v_color; +}`,$7=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; -uniform float u_time; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; +layout(std140) uniform commonUniforms { + float u_raisingHeight; +}; -uniform float u_line_texture: 0.0; -uniform sampler2D u_texture; -uniform vec2 u_textSize; -uniform float segmentNumber; -varying vec2 v_iconMapUV; +out vec4 v_color; -uniform float u_linearColor: 0; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; -varying vec4 v_line_data; -#pragma include "picking" -#pragma include "project" #pragma include "projection" +#pragma include "picking" void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - float animateSpeed = 0.0; - float d_segmentIndex = v_line_data.g; - - // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u5E95\u8272 - if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 - gl_FragColor = mix(u_sourceColor, u_targetColor, d_segmentIndex/segmentNumber); - gl_FragColor.a *= v_color.a; - } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 - gl_FragColor = v_color; - } - - // float blur = 1.- smoothstep(u_blur, 1., length(v_normal.xy)); - // float blur = smoothstep(1.0, u_blur, length(v_normal.xy)); - if(u_line_type == LineTypeDash) { - float dashLength = mod(v_distance_ratio, v_dash_array.x + v_dash_array.y + v_dash_array.z + v_dash_array.w); - if(dashLength < v_dash_array.x || (dashLength > (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { - // \u5B9E\u7EBF\u90E8\u5206 - } else { - // \u865A\u7EBF\u90E8\u5206 - discard; - }; - } - - // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u52A8\u753B\u6A21\u5F0F - if(u_animate.x == Animate) { - animateSpeed = u_time / u_animate.y; - float alpha =1.0 - fract( mod(1.0- v_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); - alpha = (alpha + u_animate.w -1.0) / u_animate.w; - alpha = smoothstep(0., 1., alpha); - gl_FragColor.a *= alpha; - } + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u8D34\u56FE - if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { - float arcRadio = smoothstep( 0.0, 1.0, (d_segmentIndex / (segmentNumber - 1.0))); - // float arcRadio = d_segmentIndex / (segmentNumber - 1.0); - float count = v_line_data.b; // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - float u = fract(arcRadio * count - animateSpeed * count); - // float u = fract(arcRadio * count - animateSpeed); - if(u_animate.x == Animate) { - u = gl_FragColor.a/v_color.a; - } + v_color = vec4(a_Color.xyz, a_Color.w * opacity); + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - float v = v_line_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + project_pos.z += u_raisingHeight; - vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; - vec4 pattern = texture2D(u_texture, uv); - - // \u8BBE\u7F6E\u8D34\u56FE\u548C\u5E95\u8272\u7684\u53E0\u52A0\u6A21\u5F0F - if(u_textureBlend == 0.0) { // normal - pattern.a = 0.0; - gl_FragColor = filterColor(gl_FragColor + pattern); - } else { // replace - pattern.a *= v_color.a; - if(gl_FragColor.a <= 0.0) { - pattern.a = 0.0; - } - gl_FragColor = filterColor(pattern); - } - } else { - gl_FragColor = filterColor(gl_FragColor); + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; } - // gl_FragColor = filterColor(gl_FragColor); -}`,xO=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#define Animate 0.0 -#define LineTexture 1.0 + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute float a_Size; -uniform mat4 u_ModelMatrix; + setPickingColor(a_PickingColor); +} -uniform float segmentNumber; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -varying vec4 v_color; +`,cz=function(i){(0,Wt.Z)(f,i);var v=XZ(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getUninforms",value:function(){var d=this.getCommonUniformsInfo(),C=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),(0,An.Z)((0,An.Z)({},d.uniformsOption),C.uniformsOption)}},{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),C=d.raisingHeight,M=C===void 0?0:C,B=d.opacityLinear,J=B===void 0?{enable:!1,dir:"in"}:B,ue={u_raisingHeight:Number(M),u_opacitylinear:Number(J.enable),u_dir:J.dir==="in"?1:0},Ue=this.getUniformsBufferInfo(ue);return Ue}},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J,ue,Ue,it;return Dv().wrap(function(Wo){for(;;)switch(Wo.prev=Wo.next){case 0:return M=this.getModelParams(),B=M.frag,J=M.vert,ue=M.triangulation,Ue=M.type,this.initUniformsBuffer(),this.layer.triangulation=ue,Wo.next=5,this.layer.buildLayerModel({moduleName:Ue,vertexShader:J,fragmentShader:B,inject:this.getInject(),triangulation:ue,primitive:K0.TRIANGLES,depth:{enable:!1}});case 5:return it=Wo.sent,Wo.abrupt("return",[it]);case 7:case"end":return Wo.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"registerBuiltinAttributes",value:function(){var d=this.layer.getLayerConfig(),C=d.opacityLinear,M=C===void 0?{enable:!1,dir:"in"}:C;M.enable&&this.styleAttributeService.registerStyleAttribute({name:"linear",type:mS.Attribute,descriptor:{name:"a_linear",shaderLocation:aE.LINEAR,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:3,update:function(J,ue,Ue){return[Ue[3],Ue[4],Ue[5]]}}})}},{key:"getModelParams",value:function(){var d=this.layer.getLayerConfig(),C=d.opacityLinear,M=C===void 0?{enable:!1}:C;return M.enable?{frag:JY,vert:Die,type:"polygonLinear",triangulation:fre}:{frag:nL,vert:$7,type:"polygonFill",triangulation:uu}}}]),f}(Gx);function m8(i){var v=U7();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function U7(){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(i){return!1}}var V7=` +layout(std140) uniform commonUniforms { + vec4 u_watercolor; + vec4 u_watercolor2; + float u_time; +}; -varying float v_distance_ratio; -uniform float u_line_type: 0.0; -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; -varying vec4 v_dash_array; +in vec2 v_uv; +in float v_opacity; +out vec4 outputColor; -uniform float u_icon_step: 100; -uniform float u_line_texture: 0.0; +float coast2water_fadedepth = 0.10; +float large_waveheight = .750; // change to adjust the "heavy" waves +float large_wavesize = 3.4; // factor to adjust the large wave size +float small_waveheight = 0.6; // change to adjust the small random waves +float small_wavesize = 0.5; // factor to ajust the small wave size +float water_softlight_fact = 15.; // range [1..200] (should be << smaller than glossy-fact) +float water_glossylight_fact= 120.; // range [1..200] +float particle_amount = 70.; -attribute vec2 a_iconMapUV; -varying vec2 v_iconMapUV; -varying vec4 v_line_data; +vec3 water_specularcolor = vec3(1.3, 1.3, 0.9); // specular Color (RGB) of the water-highlights +#define light vec3(-0., sin(u_time*0.5)*.5 + .35, 2.8) // position of the sun +uniform sampler2D u_texture1; +uniform sampler2D u_texture2; +uniform sampler2D u_texture3; -#pragma include "projection" -#pragma include "project" -#pragma include "picking" + -float maps (float value, float start1, float stop1, float start2, float stop2) { - return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); +float hash( float n ) { + return fract(sin(n)*43758.5453123); } -float getSegmentRatio(float index) { - return index / (segmentNumber - 1.); +// 2d noise function +float noise1( in vec2 x ) { + vec2 p = floor(x); + vec2 f = smoothstep(0.0, 1.0, fract(x)); + float n = p.x + p.y*57.0; + return mix(mix( hash(n+ 0.0), hash(n+ 1.0),f.x), + mix( hash(n+ 57.0), hash(n+ 58.0),f.x),f.y); } -float paraboloid(vec2 source, vec2 target, float ratio) { - vec2 x = mix(source, target, ratio); - vec2 center = mix(source, target, 0.5); - float dSourceCenter = distance(source, center); - float dXCenter = distance(x, center); - return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); +float noise(vec2 p) { + return texture(SAMPLER_2D(u_texture2),p*vec2(1./256.)).x; } -vec3 getPos(vec2 source, vec2 target, float segmentRatio) { - float vertex_height = paraboloid(source, target, segmentRatio); - - return vec3( - mix(source, target, segmentRatio), - sqrt(max(0.0, vertex_height)) - ); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size)/ 2.0; - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} -float getAngularDist (vec2 source, vec2 target) { - vec2 delta = source - target; - vec2 sin_half_delta = sin(delta / 2.0); - float a = - sin_half_delta.y * sin_half_delta.y + - cos(source.y) * cos(target.y) * - sin_half_delta.x * sin_half_delta.x; - return 2.0 * atan(sqrt(a), sqrt(1.0 - a)); +vec4 highness(vec2 p) { + vec4 t = texture(SAMPLER_2D(u_texture1),fract(p)); + float clipped = -2.0-smoothstep(3.,10.,t.a)*6.9-smoothstep(10.,100.,t.a)*89.9-smoothstep(0.,10000.,t.a)*10000.0; + return clamp(t, 0.0,3.0)+clamp(t/3.0-1.0, 0.0,1.0)+clamp(t/16.0-1.0, 0.0,1.0); } -vec2 midPoint(vec2 source, vec2 target) { - vec2 center = target - source; - float r = length(center); - float theta = atan(center.y, center.x); - float thetaOffset = 0.314; - float r2 = r / 2.0 / cos(thetaOffset); - float theta2 = theta + thetaOffset; - vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); - return mid; -} -float bezier3(vec3 arr, float t) { - float ut = 1. - t; - return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; -} +float height_map( vec2 p ) { + vec4 height=highness(p); + /* + height = -0.5+ + 0.5*smoothstep(-100.,0.,-height)+ + 2.75*smoothstep(0.,2.,height)+ + 1.75*smoothstep(2.,4.,height)+ + 2.75*smoothstep(4.,16.,height)+ + 1.5*smoothstep(16.,1000.,height); + */ -vec2 interpolate (vec2 source, vec2 target, float angularDist, float t) { - // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - vec2 mid = midPoint(source, target); - vec3 x = vec3(source.x, mid.x, target.x); - vec3 y = vec3(source.y, mid.y, target.y); - return vec2(bezier3(x ,t), bezier3(y,t)); - }else { - if(abs(angularDist - PI) < 0.001) { - return (1.0 - t) * source + t * target; - } - float a = sin((1.0 - t) * angularDist) / sin(angularDist); - float b = sin(t * angularDist) / sin(angularDist); - vec2 sin_source = sin(source); - vec2 cos_source = cos(source); - vec2 sin_target = sin(target); - vec2 cos_target = cos(target); - float x = a * cos_source.y * cos_source.x + b * cos_target.y * cos_target.x; - float y = a * cos_source.y * sin_source.x + b * cos_target.y * sin_target.x; - float z = a * sin_source.y + b * sin_target.y; - return vec2(atan(y, x), atan(z, sqrt(x * x + y * y))); - } + mat2 m = mat2( 0.9563*1.4, -0.2924*1.4, 0.2924*1.4, 0.9563*1.4 ); + //p = p*6.; + float f = 0.6000*noise1( p ); p = m*p*1.1*6.; + f += 0.2500*noise( p ); p = m*p*1.32; + f += 0.1666*noise( p ); p = m*p*1.11; + f += 0.0834*noise( p ); p = m*p*1.12; + f += 0.0634*noise( p ); p = m*p*1.13; + f += 0.0444*noise( p ); p = m*p*1.14; + f += 0.0274*noise( p ); p = m*p*1.15; + f += 0.0134*noise( p ); p = m*p*1.16; + f += 0.0104*noise( p ); p = m*p*1.17; + f += 0.0084*noise( p ); + f = .25*f+dot(height,vec4(-.03125,-.125,.25,.25))*.5; + const float FLAT_LEVEL = 0.92525; + //f = f*0.25+height*0.75; + if (f level) + { + col = CalcTerrain(uv, height); + } + if (height <= level) + { + vec2 dif = vec2(.0, .01); + vec2 pos = uv*15. + vec2(u_time*.01); + float h1 = water_map(pos-dif,waveheight); + float h2 = water_map(pos+dif,waveheight); + float h3 = water_map(pos-dif.yx,waveheight); + float h4 = water_map(pos+dif.yx,waveheight); + vec3 normwater = normalize(vec3(h3-h4, h1-h2, .125)); // norm-vector of the 'bumpy' water-plane + uv += normwater.xy*.002*(level-height); + + col = CalcTerrain(uv, height); - float dashLength = mod(v_d_distance_ratio, v_dash_array.x + v_dash_array.y + v_dash_array.z + v_dash_array.w); - if(dashLength < v_dash_array.x || (dashLength > (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { - // \u5B9E\u7EBF\u90E8\u5206 - } else { - // \u865A\u7EBF\u90E8\u5206 - discard; - }; + float coastfade = clamp((level-height)/coast2water_fadedepth, 0., 1.); + float coastfade2= clamp((level-height)/deepwater_fadedepth, 0., 1.); + float intensity = col.r*.2126+col.g*.7152+col.b*.0722; + watercolor = mix(watercolor*intensity, watercolor2, smoothstep(0., 1., coastfade2)); - gl_FragColor = filterColor(gl_FragColor); + vec3 r0 = vec3(uv, WATER_LEVEL); + vec3 rd = normalize( light - r0 ); // ray-direction to the light from water-position + float grad = dot(normwater, rd); // dot-product of norm-vector and light-direction + float specular = pow(grad, water_softlight_fact); // used for soft highlights + float specular2= pow(grad, water_glossylight_fact); // used for glossy highlights + float gradpos = dot(vec3(0., 0., 1.), rd); + float specular1= smoothstep(0., 1., pow(gradpos, 5.)); // used for diffusity (some darker corona around light's specular reflections...) + float watershade = test_shadow( uv, level ); + watercolor *= 2.2+watershade; + watercolor += (.2+.8*watershade) * ((grad-1.0)*.5+specular) * .25; + watercolor /= (1.+specular1*1.25); + watercolor += watershade*specular2*water_specularcolor; + watercolor += watershade*coastfade*(1.-coastfade2)*(vec3(.5, .6, .7)*nautic(uv)+vec3(1., 1., 1.)*particles(uv)); + + col = mix(col, watercolor, coastfade); + } + + outputColor = vec4(col, v_opacity); } -`,DM=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#define Animate 0.0 +`,Iie=`layout(location = 0) in vec3 a_Position; +layout(location = 14) in vec2 a_uv; -attribute float a_Miter; -attribute vec4 a_Color; -attribute vec2 a_Size; -attribute vec3 a_Normal; -attribute vec3 a_Position; - -attribute vec2 a_iconMapUV; - -// dash line -attribute float a_Total_Distance; -attribute vec2 a_DistanceAndIndex; -uniform float u_raisingHeight: 0.0; -uniform float u_heightfixed: 0.0; - -uniform mat4 u_ModelMatrix; +layout(std140) uniform commonUniforms { + vec4 u_watercolor; + vec4 u_watercolor2; + float u_time; +}; -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; -uniform float u_vertexScale: 1.0; +out vec2 v_uv; +out float v_opacity; #pragma include "projection" -#pragma include "picking" -varying vec4 v_color; -varying vec4 v_dash_array; -varying float v_d_distance_ratio; +void main() { + v_uv = a_uv; + v_opacity = opacity; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); +} +`,Xfe=e1.isNumber,Pie=function(i){(0,Wt.Z)(f,i);var v=m8(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getUninforms",value:function(){var d=this.getCommonUniformsInfo(),C=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),(0,An.Z)((0,An.Z)({},d.uniformsOption),C.uniformsOption)}},{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),C=d.watercolor,M=C===void 0?"#6D99A8":C,B=d.watercolor2,J=B===void 0?"#0F121C":B,ue={u_watercolor:a0(M),u_watercolor2:a0(J),u_time:this.layer.getLayerAnimateTime(),u_texture1:this.texture1,u_texture2:this.texture2,u_texture3:this.texture3};this.textures=[this.texture1,this.texture2,this.texture3];var Ue=this.getUniformsBufferInfo(ue);return Ue}},{key:"getAnimateUniforms",value:function(){return{u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return this.loadTexture(),B.abrupt("return",this.buildModels());case 2:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M;return Dv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return this.initUniformsBuffer(),J.next=3,this.layer.buildLayerModel({moduleName:"polygonOcean",vertexShader:Iie,fragmentShader:V7,inject:this.getInject(),triangulation:HR,primitive:K0.TRIANGLES,depth:{enable:!1}});case 3:return M=J.sent,J.abrupt("return",[M]);case 5:case"end":return J.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"clearModels",value:function(){var d,C,M;(d=this.texture1)===null||d===void 0||d.destroy(),(C=this.texture2)===null||C===void 0||C.destroy(),(M=this.texture3)===null||M===void 0||M.destroy()}},{key:"registerBuiltinAttributes",value:function(){var d=this.layer.getSource().extent,C=(0,_g.Z)(d,4),M=C[0],B=C[1],J=C[2],ue=C[3],Ue=J-M,it=ue-B;this.styleAttributeService.registerStyleAttribute({name:"oceanUv",type:mS.Attribute,descriptor:{name:"a_uv",shaderLocation:aE.UV,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:2,update:function(Wo,Ca,eu,Bd){var r0=Wo.version==="GAODE2.x"?Wo.originCoordinates[0][Bd]:eu,N0=(0,_g.Z)(r0,2),fv=N0[0],v1=N0[1];return[(fv-M)/Ue,(v1-B)/it]}}})}},{key:"loadTexture",value:function(){var d=this,C=this.rendererService.createTexture2D,M={height:0,width:0};this.texture1=C(M),this.texture2=C(M),this.texture3=C(M),B(function(ue){d.texture1=J(ue[0]),d.texture2=J(ue[1]),d.texture3=J(ue[2]),d.layerService.reRender()});function B(ue){var Ue=0,it=[],Ir=["https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*MJ22QbpuCzIAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*-z2HSIVDsHIAAAAAAAAAAAAAARQnAQ"];Ir.map(function(Wo){var Ca=new Image;Ca.crossOrigin="",Ca.src=Wo,it.push(Ca),Ca.onload=function(){Ue++,Ue===3&&ue(it)}})}function J(ue){return C({data:ue,width:ue.width,height:ue.height,wrapS:K0.MIRRORED_REPEAT,wrapT:K0.MIRRORED_REPEAT,min:K0.LINEAR,mag:K0.LINEAR})}}}]),f}(Gx);function QY(i){var v=Lie();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function Lie(){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(i){return!1}}var dz=`uniform sampler2D u_texture; +layout(std140) uniform commonUniforms { + float u_speed; + float u_time; +}; -void main() { +out vec4 outputColor; - v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / a_Total_Distance; - v_color = vec4(a_Color.xyz, a_Color.w * opacity); - vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal); - vec2 offset = project_pixel(size.xy); - v_d_distance_ratio = a_DistanceAndIndex.x / a_Total_Distance; +in vec4 v_Color; +in vec2 v_uv; +float rand(vec2 n) { return 0.5 + 0.5 * fract(sin(dot(n.xy, vec2(12.9898, 78.233)))* 43758.5453); } - vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); - - float h = float(a_Position.z) * u_vertexScale; // \u7EBF\u9876\u70B9\u7684\u9AD8\u5EA6 - \u517C\u5BB9\u4E0D\u5B58\u5728\u7B2C\u4E09\u4E2A\u6570\u503C\u7684\u60C5\u51B5 vertex height - float lineHeight = a_Size.y; // size \u7B2C\u4E8C\u4E2A\u53C2\u6570\u4EE3\u8868\u7684\u9AD8\u5EA6 [linewidth, lineheight] +float water(vec3 p) { + float t = u_time * u_speed; + p.z += t * 2.; p.x += t * 2.; + vec3 c1 = texture(SAMPLER_2D(u_texture), p.xz / 30.).xyz; + p.z += t * 3.; p.x += t * 0.52; + vec3 c2 = texture(SAMPLER_2D(u_texture), p.xz / 30.).xyz; + p.z += t * 4.; p.x += t * 0.8; + vec3 c3 = texture(SAMPLER_2D(u_texture), p.xz / 30.).xyz; + c1 += c2 - c3; + float z = (c1.x + c1.y + c1.z) / 3.; + return p.y + z / 4.; +} - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - lineHeight *= 0.2; // \u4FDD\u6301\u548C amap/mapbox \u4E00\u81F4\u7684\u6548\u679C - h *= 0.2; - if(u_heightfixed < 1.0) { - lineHeight = project_pixel(a_Size.y); - } - gl_Position = u_Mvp * (vec4(project_pos.xy + offset, lineHeight + h + u_raisingHeight, 1.0)); - } else { - // mapbox - amap - - // \u517C\u5BB9 mapbox \u5728\u7EBF\u9AD8\u5EA6\u4E0A\u7684\u6548\u679C\u8868\u73B0\u57FA\u672C\u4E00\u81F4 - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - // mapbox - // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - h *= mapboxZoomScale; - h += u_raisingHeight * mapboxZoomScale; - if(u_heightfixed > 0.0) { - lineHeight *= mapboxZoomScale; - } - - } else { - // amap - h += u_raisingHeight; - // lineHeight \u9876\u70B9\u504F\u79FB\u9AD8\u5EA6 - if(u_heightfixed < 1.0) { - lineHeight *= pow(2.0, 20.0 - u_Zoom); - } - } +float map(vec3 p) { + float d = 100.0; + d = water(p); + return d; +} - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight + h, 1.0)); +float intersect(vec3 ro, vec3 rd) { + float d = 0.0; + for (int i = 0; i <= 100; i++) { + float h = map(ro + rd * d); + if (h < 0.1) return d; + d += h; } - - setPickingColor(a_PickingColor); + return 0.0; } -`,IM=`#extension GL_OES_standard_derivatives : enable -#define Animate 0.0 -#define LineTexture 1.0 -uniform float u_textureBlend; -uniform float u_strokeWidth: 0.0; +vec3 norm(vec3 p) { + float eps = .1; + return normalize(vec3( + map(p + vec3(eps, 0, 0)) - map(p + vec3(-eps, 0, 0)), + map(p + vec3(0, eps, 0)) - map(p + vec3(0, -eps, 0)), + map(p + vec3(0, 0, eps)) - map(p + vec3(0, 0, -eps)) + )); +} -uniform vec3 u_blur; -varying vec4 v_color; -varying vec4 v_stroke; +float calSpc() { + vec3 l1 = normalize(vec3(1, 1, 1)); + vec3 ro = vec3(-3, 20, -8); + vec3 rc = vec3(0, 0, 0); + vec3 ww = normalize(rc - ro); + vec3 uu = normalize(cross(vec3(0,1,0), ww)); + vec3 vv = normalize(cross(rc - ro, uu)); + vec3 rd = normalize(uu * v_uv.x + vv * v_uv.y + ww); + float d = intersect(ro, rd); + vec3 p = ro + rd * d; + vec3 n = norm(p); + float spc = pow(max(0.0, dot(reflect(l1, n), rd)), 30.0); + return spc; +} -// line texture -uniform float u_line_texture; -uniform sampler2D u_texture; -uniform vec2 u_textSize; -varying vec2 v_iconMapUV; -varying vec4 v_texture_data; +void main() { + outputColor = v_Color; + float spc = calSpc(); + outputColor += spc * 0.4; +} +`,Mie=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 14) in vec2 a_uv; +layout(std140) uniform commonUniforms { + float u_speed; + float u_time; +}; +out vec4 v_Color; +out vec2 v_uv; -#pragma include "picking" -uniform float u_time; -uniform vec4 u_animate: [ 1, 2., 1.0, 0.2 ]; // \u63A7\u5236\u8FD0\u52A8 -// [animate, duration, interval, trailLength], -void main() { - float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 - float d_distance_ratio = v_texture_data.r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - gl_FragColor = v_color; - // anti-alias - // float blur = 1.0 - smoothstep(u_blur, 1., length(v_normal.xy)); - if(u_animate.x == Animate) { - animateSpeed = u_time / u_animate.y; - float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + animateSpeed); - alpha = (alpha + u_animate.w -1.0) / u_animate.w; - alpha = smoothstep(0., 1., alpha); - gl_FragColor.a *= alpha; - } +#pragma include "projection" - if(u_line_texture == LineTexture) { // while load texture - float aDistance = v_texture_data.g; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB - float d_texPixelLen = v_texture_data.b; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E - float u = fract(mod(aDistance, d_texPixelLen)/d_texPixelLen - animateSpeed); - float v = v_texture_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C +void main() { + v_uv = a_uv; + v_Color = a_Color; + v_Color.a *= opacity; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); - // v = max(smoothstep(0.95, 1.0, v), v); - vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; - vec4 pattern = texture2D(u_texture, uv); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); +} - if(u_textureBlend == 0.0) { // normal - pattern.a = 0.0; - gl_FragColor += pattern; - } else { // replace - pattern.a *= v_color.a; - if(gl_FragColor.a <= 0.0) { - pattern.a = 0.0; - } - gl_FragColor = pattern; - } - } +`,Yfe=e1.isNumber,rV=function(i){(0,Wt.Z)(f,i);var v=QY(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getUninforms",value:function(){var d=this.getCommonUniformsInfo(),C=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),(0,An.Z)((0,An.Z)({},d.uniformsOption),C.uniformsOption)}},{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),C=d.speed,M=C===void 0?.5:C,B={u_speed:M,u_time:this.layer.getLayerAnimateTime(),u_texture:this.texture};this.textures=[this.texture];var J=this.getUniformsBufferInfo(B);return J}},{key:"getAnimateUniforms",value:function(){return{u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return this.loadTexture(),B.abrupt("return",this.buildModels());case 2:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M;return Dv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return this.initUniformsBuffer(),J.next=3,this.layer.buildLayerModel({moduleName:"polygonWater",vertexShader:Mie,fragmentShader:dz,triangulation:HR,inject:this.getInject(),primitive:K0.TRIANGLES,depth:{enable:!1},pickingEnabled:!1,diagnosticDerivativeUniformityEnabled:!1});case 3:return M=J.sent,J.abrupt("return",[M]);case 5:case"end":return J.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"clearModels",value:function(){var d;(d=this.texture)===null||d===void 0||d.destroy()}},{key:"registerBuiltinAttributes",value:function(){var d=this.layer.getSource().extent,C=(0,_g.Z)(d,4),M=C[0],B=C[1],J=C[2],ue=C[3],Ue=J-M,it=ue-B;this.styleAttributeService.registerStyleAttribute({name:"waterUv",type:mS.Attribute,descriptor:{name:"a_uv",shaderLocation:aE.UV,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:2,update:function(Wo,Ca,eu,Bd){var r0=Wo.version==="GAODE2.x"?Wo.originCoordinates[0][Bd]:eu,N0=(0,_g.Z)(r0,2),fv=N0[0],v1=N0[1];return[(fv-M)/Ue,(v1-B)/it]}}})}},{key:"loadTexture",value:function(){var d=this,C=this.layer.getLayerConfig(),M=C.waterTexture,B=this.rendererService.createTexture2D;this.texture=B({height:1,width:1});var J=new Image;J.crossOrigin="",M?(console.warn("L7 recommend\uFF1Ahttps://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ"),J.src=M):J.src="https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ",J.onload=function(){d.texture=B({data:J,width:J.width,height:J.height,wrapS:K0.MIRRORED_REPEAT,wrapT:K0.MIRRORED_REPEAT,min:K0.LINEAR,mag:K0.LINEAR}),d.layerService.reRender()}}}]),f}(Gx),hz={fill:cz,line:fN,extrude:Sie,text:EA,point_fill:c8,point_image:PL,point_normal:VY,point_extrude:lz,water:rV,ocean:Pie,extrusion:j3},eq=hz;function YZ(i){var v=Oie();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function Oie(){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(i){return!1}}var pN=function(i){(0,Wt.Z)(f,i);var v=YZ(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M 0.01) { - float borderOuterWidth = strokeWidth / 2.0; +uniform sampler2D u_rasterTexture; +uniform sampler2D u_colorTexture; +in vec2 v_texCoord; - if(v >= 1.0 - strokeWidth || v <= strokeWidth) { - if(v > strokeWidth) { // \u5916\u4FA7 - float linear = smoothstep(0.0, 1.0, (v - (1.0 - strokeWidth))/strokeWidth); - // float linear = step(0.0, (v - (1.0 - borderWidth))/borderWidth); - gl_FragColor.rgb = mix(gl_FragColor.rgb, v_stroke.rgb, linear); - } else if(v <= strokeWidth) { - float linear = smoothstep(0.0, 1.0, v/strokeWidth); - gl_FragColor.rgb = mix(v_stroke.rgb, gl_FragColor.rgb, linear); - } - } +bool isnan_emu(float x) { return (x > 0.0 || x < 0.0) ? x != x : x != 0.0; } - if(v < borderOuterWidth) { - gl_FragColor.a = mix(0.0, gl_FragColor.a, v/borderOuterWidth); - } else if(v > 1.0 - borderOuterWidth) { - gl_FragColor.a = mix(gl_FragColor.a, 0.0, (v - (1.0 - borderOuterWidth))/borderOuterWidth); - } - } +out vec4 outputColor; - // blur - float blurV = v_texture_data.a; - if(blurV < 0.5) { - gl_FragColor.a *= mix(u_blur.r, u_blur.g, blurV/0.5); +void main() { + // Can use any component here since u_rasterTexture is under luminance format. + float value = texture(SAMPLER_2D(u_rasterTexture), vec2(v_texCoord.x, v_texCoord.y)).r; + if (value == u_noDataValue || isnan_emu(value)) { + discard; + } else if ((u_clampLow < 0.5 && value < u_domain[0]) || (u_clampHigh < 0.5 && value > u_domain[1])) { + discard; } else { - gl_FragColor.a *= mix(u_blur.g, u_blur.b, (blurV - 0.5)/0.5); + float normalisedValue =(value - u_domain[0]) / (u_domain[1] - u_domain[0]); + vec4 color = texture(SAMPLER_2D(u_colorTexture), vec2(normalisedValue, 0)); + + outputColor = color; + outputColor.a = outputColor.a * u_opacity ; + if (outputColor.a < 0.01) + discard; } - - gl_FragColor = filterColor(gl_FragColor); } -`,M1=` -#define Animate 0.0 +`,tq=` +layout(location = 0) in vec3 a_Position; +layout(location = 14) in vec2 a_Uv; -attribute float a_Miter; -attribute vec4 a_Color; -attribute vec2 a_Size; -attribute vec3 a_Normal; -attribute vec3 a_Position; +layout(std140) uniform commonUniforms { + vec2 u_domain; + float u_opacity; + float u_noDataValue; + float u_clampLow; + float u_clampHigh; +}; -attribute vec2 a_iconMapUV; +out vec2 v_texCoord; -// dash line -attribute float a_Total_Distance; -attribute vec2 a_DistanceAndIndex; +#pragma include "projection" -uniform mat4 u_ModelMatrix; +void main() { + v_texCoord = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); +} +`,qZ=function(i){(0,Wt.Z)(f,i);var v=Rie(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getUninforms",value:function(){var d=this.getCommonUniformsInfo(),C=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),(0,An.Z)((0,An.Z)({},d.uniformsOption),C.uniformsOption)}},{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),C=d.opacity,M=C===void 0?1:C,B=d.clampLow,J=B===void 0?!0:B,ue=d.clampHigh,Ue=ue===void 0?!0:ue,it=d.noDataValue,Ir=it===void 0?-9999999:it,Wo=d.domain,Ca=d.rampColors,eu=Wo||d0(Ca);this.colorTexture=this.layer.textureService.getColorTexture(Ca,eu);var Bd={u_domain:eu,u_opacity:M||1,u_noDataValue:Ir,u_clampLow:J?1:0,u_clampHigh:(typeof Ue!="undefined"?Ue:J)?1:0,u_rasterTexture:this.texture,u_colorTexture:this.colorTexture};this.textures=[this.texture,this.colorTexture];var r0=this.getUniformsBufferInfo(Bd);return r0}},{key:"getRasterData",value:function(){var g=(0,y_.Z)(Dv().mark(function C(M){var B,J,ue,Ue;return Dv().wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:if(!Array.isArray(M.data)){Ir.next=4;break}return Ir.abrupt("return",{data:M.data,width:M.width,height:M.height});case 4:return Ir.next=6,M.data;case 6:return B=Ir.sent,J=B.rasterData,ue=B.width,Ue=B.height,Ir.abrupt("return",{data:Array.from(J),width:ue,height:Ue});case 11:case"end":return Ir.stop()}},C)}));function d(C){return g.apply(this,arguments)}return d}()},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J,ue,Ue,it,Ir,Wo,Ca,eu;return Dv().wrap(function(r0){for(;;)switch(r0.prev=r0.next){case 0:return this.initUniformsBuffer(),M=this.layer.getSource(),B=this.rendererService,J=B.createTexture2D,ue=B.queryVerdorInfo,Ue=M.data.dataArray[0],r0.next=6,this.getRasterData(Ue);case 6:return it=r0.sent,Ir=it.data,Wo=it.width,Ca=it.height,this.texture=J({data:new Float32Array(Ir),width:Wo,height:Ca,format:ue()==="WebGL1"?K0.LUMINANCE:K0.RED,type:K0.FLOAT,alignment:1}),r0.next=13,this.layer.buildLayerModel({moduleName:"rasterImageData",vertexShader:tq,fragmentShader:Nie,triangulation:b7,primitive:K0.TRIANGLES,depth:{enable:!1},pickingEnabled:!1});case 13:return eu=r0.sent,r0.abrupt("return",[eu]);case 15:case"end":return r0.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"clearModels",value:function(){var d,C;(d=this.texture)===null||d===void 0||d.destroy(),(C=this.colorTexture)===null||C===void 0||C.destroy()}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:mS.Attribute,descriptor:{shaderLocation:aE.UV,name:"a_Uv",buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:2,update:function(C,M,B){return[B[3],B[4]]}}})}}]),f}(Gx),Fie=["data"],JZ=["rasterData"];function QZ(i){var v=nq();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function nq(){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(i){return!1}}var eH=`uniform sampler2D u_texture; +layout(std140) uniform commonUniforms { + vec2 u_rminmax; + vec2 u_gminmax; + vec2 u_bminmax; + float u_opacity; + float u_noDataValue; +}; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -uniform float u_icon_step: 100; +in vec2 v_texCoord; -uniform float u_heightfixed: 0.0; -uniform float u_vertexScale: 1.0; -uniform float u_raisingHeight: 0.0; +out vec4 outputColor; -#pragma include "projection" -#pragma include "picking" +void main() { -varying vec4 v_color; -varying vec4 v_stroke; + vec3 rgb = texture(SAMPLER_2D(u_texture),vec2(v_texCoord.x,v_texCoord.y)).rgb; -// texV \u7EBF\u56FE\u5C42 - \u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\uFF08\u7EBF\u7684\u5BBD\u5EA6\u65B9\u5411\uFF09 -varying vec2 v_iconMapUV; + if(rgb == vec3(u_noDataValue)) { + outputColor = vec4(0.0, 0, 0, 0.0); + } else { + outputColor = vec4(rgb.r / (u_rminmax.y -u_rminmax.x), rgb.g /(u_gminmax.y -u_gminmax.x), rgb.b/ (u_bminmax.y - u_bminmax.x), u_opacity); + } + if(outputColor.a < 0.01) + discard; + +}`,fz=` +layout(location = 0) in vec3 a_Position; +layout(location = 14) in vec2 a_Uv; -uniform float u_linearColor: 0; -uniform float u_arrow: 0.0; -uniform float u_arrowHeight: 3.0; -uniform float u_arrowWidth: 2.0; -uniform float u_tailWidth: 1.0; +layout(std140) uniform commonUniforms { + vec2 u_rminmax; + vec2 u_gminmax; + vec2 u_bminmax; + float u_opacity; + float u_noDataValue; +}; -varying vec4 v_texture_data; +out vec2 v_texCoord; -vec2 calculateArrow(vec2 offset) { - /* - * \u5728\u652F\u6301\u7BAD\u5934\u7684\u65F6\u5019\uFF0C\u7B2C\u4E8C\u3001\u7B2C\u4E09\u7EC4\u9876\u70B9\u662F\u989D\u5916\u63D2\u5165\u7528\u4E8E\u6784\u5EFA\u9876\u70B9\u7684 - */ - float arrowFlag = -1.0; - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - // \u9AD8\u5FB7 2.0 \u7684\u65CB\u8F6C\u89D2\u5EA6\u4E0D\u540C - arrowFlag = 1.0; - } - float pi = arrowFlag * 3.1415926/2.; - if(a_Miter < 0.) { - // \u6839\u636E\u7EBF\u7684\u4E24\u4FA7\u504F\u79FB\u4E0D\u540C\u3001\u65CB\u8F6C\u7684\u65B9\u5411\u76F8\u53CD - pi = -pi; - } - highp float angle_sin = sin(pi); - highp float angle_cos = cos(pi); - // \u8BA1\u7B97\u5782\u76F4\u4E0E\u7EBF\u65B9\u5411\u7684\u65CB\u8F6C\u77E9\u9635 - mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos); - float arrowWidth = u_arrowWidth; - float arrowHeight = u_arrowHeight; - - vec2 arrowOffset = vec2(0.0); - /* - * a_DistanceAndIndex.y \u7528\u4E8E\u6807\u8BB0\u5F53\u524D\u9876\u70B9\u5C5E\u4E8E\u54EA\u4E00\u7EC4\uFF08\u4E24\u4E2A\u9876\u70B9\u4E00\u7EC4\uFF0C\u6784\u6210\u7EBF\u7684\u5176\u5B9E\u662F\u77E9\u5F62\uFF0C\u6700\u7B80\u9700\u8981\u56DB\u4E2A\u9876\u70B9\u3001\u4E24\u7EC4\u9876\u70B9\u6784\u6210\uFF09 - */ - if(a_DistanceAndIndex.y == 0.0) { - // \u7BAD\u5934\u5C16\u90E8 - offset = vec2(0.0); - } else if(a_DistanceAndIndex.y == 1.0) { - // \u7BAD\u5934\u4E24\u4FA7 - arrowOffset = rotation_matrix*(offset * arrowHeight); - offset += arrowOffset; // \u6CBF\u7EBF\u504F\u79FB - offset = offset * arrowWidth; // \u5782\u76F4\u7EBF\u5411\u5916\u504F\u79FB\uFF08\u662F\u6784\u5EFA\u7BAD\u5934\u4E24\u4FA7\u7684\u9876\u70B9\uFF09 - } else if(a_DistanceAndIndex.y == 2.0 || a_DistanceAndIndex.y == 3.0 || a_DistanceAndIndex.y == 4.0) { - // \u504F\u79FB\u5176\u4F59\u7684\u70B9\u4F4D\uFF08\u5C06\u957F\u5EA6\u8BA9\u4F4D\u7ED9\u7BAD\u5934\uFF09 - arrowOffset = rotation_matrix*(offset * arrowHeight) * arrowWidth; - offset += arrowOffset;// \u6CBF\u7EBF\u504F\u79FB - } +#pragma include "projection" - return offset; +void main() { + v_texCoord = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); } +`,Bie=function(i){(0,Wt.Z)(f,i);var v=QZ(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M 0.0) { - // \u8BA1\u7B97\u7BAD\u5934 - offset = calculateArrow(offset); - - if(a_DistanceAndIndex.y > 4.0) { - offset *= mix(1.0, u_tailWidth, currentLinePointRatio); - } - } - - float lineOffsetWidth = length(offset + offset * sign(a_Miter)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB\uFF08\u5411\u4E24\u4FA7\u504F\u79FB\u7684\u548C\uFF09 - float linePixelSize = project_pixel(a_Size.x) * 2.0; // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB \u5355\u4FA7 * 2 - float texV = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - - v_texture_data = vec4(currentLinePointRatio, lineDistance, d_texPixelLen, texV); - // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 - - vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); - - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, a_Size.y, 1.0)); +float getElevation(vec2 coord, float bias) { + // Convert encoded elevation value to meters + vec4 data = texture(SAMPLER_2D(u_texture), coord,bias) * 255.0; + data.a = -1.0; + return dot(data, u_unpack); +} - float h = float(a_Position.z) * u_vertexScale; // \u7EBF\u9876\u70B9\u7684\u9AD8\u5EA6 - \u517C\u5BB9\u4E0D\u5B58\u5728\u7B2C\u4E09\u4E2A\u6570\u503C\u7684\u60C5\u51B5 vertex height - float lineHeight = a_Size.y; // size \u7B2C\u4E8C\u4E2A\u53C2\u6570\u4EE3\u8868\u7684\u9AD8\u5EA6 [linewidth, lineheight] +vec4 getColor(float value) { + float normalisedValue =(value- u_domain[0]) / (u_domain[1] - u_domain[0]); + vec2 coord = vec2(normalisedValue, 0); + return texture(SAMPLER_2D(u_colorTexture), coord); +} - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - lineHeight *= 0.2; // \u4FDD\u6301\u548C amap/mapbox \u4E00\u81F4\u7684\u6548\u679C - h *= 0.2; - if(u_heightfixed < 1.0) { - lineHeight = project_pixel(a_Size.y); - } - gl_Position = u_Mvp * (vec4(project_pos.xy + offset, lineHeight + h + u_raisingHeight, 1.0)); +void main() { + float value = getElevation(v_texCoord,0.0); + if (value == u_noDataValue) { + outputColor = vec4(0.0, 0, 0, 0.0); + } else if ((u_clampLow < 0.5 && value < u_domain[0]) || (u_clampHigh < 0.5 && value > u_domain[1])) { + outputColor = vec4(0.0, 0, 0, 0.0); } else { - // mapbox - amap - - // \u517C\u5BB9 mapbox \u5728\u7EBF\u9AD8\u5EA6\u4E0A\u7684\u6548\u679C\u8868\u73B0\u57FA\u672C\u4E00\u81F4 - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - // mapbox - // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - h *= mapboxZoomScale; - h += u_raisingHeight * mapboxZoomScale; - if(u_heightfixed > 0.0) { - lineHeight *= mapboxZoomScale; - } - - } else { - // amap - h += u_raisingHeight; - // lineHeight \u9876\u70B9\u504F\u79FB\u9AD8\u5EA6 - if(u_heightfixed < 1.0) { - lineHeight *= pow(2.0, 20.0 - u_Zoom); - } - } - - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight + h, 1.0)); + + outputColor = getColor(value); + outputColor.a = outputColor.a * u_opacity ; + if(outputColor.a < 0.01) + discard; } - - setPickingColor(a_PickingColor); } -`,PM=`varying vec4 v_color; -varying vec4 v_texture_data; -uniform float u_linearDir: 1.0; -uniform float u_linearColor: 0; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; - -#pragma include "picking" +`,zie=`layout(location = 0) in vec3 a_Position; +layout(location = 14) in vec2 a_Uv; +layout(std140) uniform commonUniforms { + vec4 u_unpack; + vec2 u_domain; + float u_opacity; + float u_noDataValue; + float u_clampLow; + float u_clampHigh; +}; +out vec2 v_texCoord; +#pragma include "projection" void main() { - float linearRadio = v_texture_data.r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - if(u_linearDir < 1.0) { - linearRadio = v_texture_data.a; - } - - if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 - gl_FragColor = mix(u_sourceColor, u_targetColor, linearRadio); - gl_FragColor.a *= v_color.a; - } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 - gl_FragColor = v_color; - } - - gl_FragColor = filterColor(gl_FragColor); + v_texCoord = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); } -`,fD={solid:0,dash:1},P7=function(o){(0,lt.Z)(l,o);var d=$m(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E 1.0) intensity = 0.0; - gl_FragColor = v_Color; // \u5168\u5C40\u900F\u660E\u5EA6 - gl_FragColor = filterColor(gl_FragColor); + outputColor = vec4(v_Color.rgb, v_Color.a * intensity * u_opacity); } -`,ux=` -attribute float a_Miter; -attribute vec2 a_Size; -attribute vec3 a_Normal; -attribute vec3 a_Position; - -// dash line -attribute float a_Total_Distance; -attribute vec2 a_DistanceAndIndex; - -uniform mat4 u_ModelMatrix; - +`,v8=`layout(location = 0) in vec3 a_Position; +layout(location = 1) vec4 a_Color; +layout(location = 13) in vec3 a_Normal; +layout(location = 14) in vec2 a_Uv; +layout(std140) uniform commonUniforms { + float u_opacity; +}; +#pragma include "scene_uniforms" +out vec3 vVertexNormal; +out vec4 v_Color; +out float v_offset; -uniform float u_heightfixed: 0.0; -uniform float u_vertexScale: 1.0; -uniform float u_raisingHeight: 0.0; -uniform sampler2D u_texture; -uniform float u_linearDir: 1.0; -varying vec4 v_Color; +void main() { + float EARTH_RADIUS = 100.0; + + v_Color = a_Color; + v_offset = min(((length(u_CameraPosition) - EARTH_RADIUS)/600.0) * 0.5 + 0.4, 1.0); + vVertexNormal = a_Normal; -#pragma include "projection" -#pragma include "picking" + gl_Position = u_ViewProjectionMatrix * u_ModelMatrix * vec4(a_Position, 1.0); +} +`,oq=e1.isNumber,Gie=function(i){(0,Wt.Z)(f,i);var v=Zie(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),C=d.opacity,M=C===void 0?1:C,B={u_opacity:oq(M)?M:1},J=this.getUniformsBufferInfo(B);return J}},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return this.initUniformsBuffer(),B.abrupt("return",this.buildModels());case 2:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"clearModels",value:function(){return""}},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M;return Dv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return this.layer.zIndex=-997,J.next=3,this.layer.buildLayerModel({moduleName:"earthAtmoSphere",vertexShader:v8,fragmentShader:YM,triangulation:x7,depth:{enable:!1},blend:this.getBlend()});case 3:return M=J.sent,J.abrupt("return",[M]);case 5:case"end":return J.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:mS.Attribute,descriptor:{name:"a_Size",shaderLocation:aE.SIZE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:1,update:function(C){var M=C.size,B=M===void 0?1:M;return Array.isArray(B)?[B[0]]:[B]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:mS.Attribute,descriptor:{name:"a_Normal",shaderLocation:aE.NORMAL,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:3,update:function(C,M,B,J,ue){return ue}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:mS.Attribute,descriptor:{name:"a_Uv",shaderLocation:aE.UV,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:2,update:function(C,M,B){return[B[3],B[4]]}}})}}]),f}(Gx);function iV(i){var v=Kie();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function Kie(){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(i){return!1}}var nH=`uniform sampler2D u_texture; +in vec2 v_texCoord; +in float v_lightWeight; +out vec4 outputColor; void main() { + vec4 color = texture(SAMPLER_2D(u_texture),vec2(v_texCoord.x,v_texCoord.y)); + color.xyz = color.xyz * v_lightWeight; + outputColor = color; +} +`,y8=`// attribute vec4 a_Color; +layout(location = 0) in vec3 a_Position; +layout(location = 13) in vec3 a_Normal; +layout(location = 14) in vec2 a_Uv; +// attribute vec2 a_Extrude; +// attribute float a_Size; +// attribute float a_Shape; - vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal); - - vec2 offset = project_pixel(size.xy); +layout(std140) uniform commonUniforms { + vec4 u_sunLight: [1.0, -10.5, 12.0,0.0]; + float u_ambientRatio : 0.5; + float u_diffuseRatio : 0.3; + float u_specularRatio : 0.2; +}; - float lineDistance = a_DistanceAndIndex.x; - float currentLinePointRatio = lineDistance / a_Total_Distance; - +#pragma include "scene_uniforms" - float lineOffsetWidth = length(offset + offset * sign(a_Miter)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB\uFF08\u5411\u4E24\u4FA7\u504F\u79FB\u7684\u548C\uFF09 - float linePixelSize = project_pixel(a_Size.x) * 2.0; // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB \u5355\u4FA7 * 2 - float texV = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C +out vec2 v_texCoord; +out float v_lightWeight; - float linearRadio =currentLinePointRatio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - if(u_linearDir < 1.0) { - linearRadio = texV; - } +float calc_lighting(vec4 pos) { - v_Color = texture2D(u_texture, vec2(linearRadio, 0.5)); + vec3 worldPos = vec3(pos * u_ModelMatrix); - v_Color.a *= opacity; // \u5168\u5C40\u900F\u660E\u5EA6 + vec3 worldNormal = a_Normal; + // cal light weight + vec3 viewDir = normalize(u_CameraPosition - worldPos); + vec3 lightDir = normalize(u_sunLight.xyz); - vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); + vec3 halfDir = normalize(viewDir+lightDir); + // lambert + float lambert = dot(worldNormal, lightDir); + // specular + float specular = pow(max(0.0, dot(worldNormal, halfDir)), 32.0); + //sum to light weight + float lightWeight = u_ambientRatio + u_diffuseRatio * lambert + u_specularRatio * specular; - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, a_Size.y, 1.0)); + return lightWeight; +} - float h = float(a_Position.z) * u_vertexScale; // \u7EBF\u9876\u70B9\u7684\u9AD8\u5EA6 - \u517C\u5BB9\u4E0D\u5B58\u5728\u7B2C\u4E09\u4E2A\u6570\u503C\u7684\u60C5\u51B5 vertex height - float lineHeight = a_Size.y; // size \u7B2C\u4E8C\u4E2A\u53C2\u6570\u4EE3\u8868\u7684\u9AD8\u5EA6 [linewidth, lineheight] +void main() { - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - lineHeight *= 0.2; // \u4FDD\u6301\u548C amap/mapbox \u4E00\u81F4\u7684\u6548\u679C - h *= 0.2; - if(u_heightfixed < 1.0) { - lineHeight = project_pixel(a_Size.y); - } - gl_Position = u_Mvp * (vec4(project_pos.xy + offset, lineHeight + h + u_raisingHeight, 1.0)); - } else { - // mapbox - amap - - // \u517C\u5BB9 mapbox \u5728\u7EBF\u9AD8\u5EA6\u4E0A\u7684\u6548\u679C\u8868\u73B0\u57FA\u672C\u4E00\u81F4 - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - // mapbox - // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - h *= mapboxZoomScale; - h += u_raisingHeight * mapboxZoomScale; - if(u_heightfixed > 0.0) { - lineHeight *= mapboxZoomScale; - } - - } else { - // amap - h += u_raisingHeight; - // lineHeight \u9876\u70B9\u504F\u79FB\u9AD8\u5EA6 - if(u_heightfixed < 1.0) { - lineHeight *= pow(2.0, 20.0 - u_Zoom); - } - } + v_texCoord = a_Uv; - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight + h, 1.0)); - } + float lightWeight = calc_lighting(vec4(a_Position, 1.0)); + v_lightWeight = lightWeight; - setPickingColor(a_PickingColor); + gl_Position = u_ViewProjectionMatrix * u_ModelMatrix * vec4(a_Position, 1.0); } -`,JJ=fs.isNumber,Oj=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 1.0) intensity = 0.0; + + outputColor = vec4(v_Color.rgb, v_Color.a * intensity * u_opacity); } -`,L7=`attribute vec4 a_Color; -attribute vec2 a_Size; -attribute vec3 a_Position; +`,W7=`layout(location = 0) in vec3 a_Position; +layout(location = 1) vec4 a_Color; +layout(location = 13) in vec3 a_Normal; +layout(location = 14) in vec2 a_Uv; +layout(std140) uniform commonUniforms { + float u_opacity; +}; +#pragma include "scene_uniforms" -attribute float a_Total_Distance; -attribute float a_Distance; +out vec3 vVertexNormal; +out vec4 v_Color; -uniform mat4 u_ModelMatrix; +void main() { + v_Color = a_Color; + + vVertexNormal = a_Normal; + gl_Position = u_ViewProjectionMatrix * u_ModelMatrix * vec4(a_Position, 1.0); +} +`,Xie=e1.isNumber,Yie=function(i){(0,Wt.Z)(f,i);var v=sq(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),C=d.opacity,M=C===void 0?1:C,B={u_opacity:Xie(M)?M:1},J=this.getUniformsBufferInfo(B);return J}},{key:"initModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){return Dv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return this.initUniformsBuffer(),B.abrupt("return",this.buildModels());case 2:case"end":return B.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"clearModels",value:function(){return""}},{key:"buildModels",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M;return Dv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return this.layer.zIndex=-999,J.next=3,this.layer.buildLayerModel({moduleName:"earthBloom",vertexShader:W7,fragmentShader:mN,triangulation:$U,depth:{enable:!1},blend:this.getBlend()});case 3:return M=J.sent,J.abrupt("return",[M]);case 5:case"end":return J.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:mS.Attribute,descriptor:{name:"a_Size",shaderLocation:aE.SIZE,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:1,update:function(C){var M=C.size,B=M===void 0?1:M;return Array.isArray(B)?[B[0]]:[B]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:mS.Attribute,descriptor:{name:"a_Normal",shaderLocation:aE.NORMAL,buffer:{usage:K0.STATIC_DRAW,data:[],type:K0.FLOAT},size:3,update:function(C,M,B,J,ue){return ue}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:mS.Attribute,descriptor:{name:"a_Uv",shaderLocation:aE.UV,buffer:{usage:K0.DYNAMIC_DRAW,data:[],type:K0.FLOAT},size:2,update:function(C,M,B){return[B[3],B[4]]}}})}}]),f}(Gx);function qie(i){var v=lq();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function lq(){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(i){return!1}}var uq={base:j7,atomSphere:Gie,bloomSphere:Yie},Jie=["base","atomSphere","bloomSphere"],cq=function(i){(0,Wt.Z)(f,i);var v=qie(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M0&&arguments[0]!==void 0?arguments[0]:!0;d&&this.layerService.clear()}},{key:"registerBuiltinAttributes",value:function(){return""}}]),f}(Gx),rH={fill:toe},noe=rH;function fq(i){var v=roe();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function roe(){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(i){return!1}}var iH=function(i){(0,Wt.Z)(f,i);var v=fq(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M 1.0/u_iconStepCount) { - flag = 1.0; - } - u = fract(u*u_iconStepCount); - // \u8BA1\u7B97\u7EB9\u7406\u95F4\u9694 end + // decode current particle position from the pixel's RGBA value + v_particle_pos = vec2( color.r / 255.0 + color.b, color.g / 255.0 + color.a); - vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; - vec4 pattern = texture2D(u_texture, uv); + gl_PointSize = 1.0; + gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1); + }`,aH=` + precision mediump float; - // Tip: \u5224\u65AD\u7EB9\u7406\u95F4\u9694 - if(flag > 0.0) { - pattern = vec4(0.0); - } + uniform sampler2D u_wind; + uniform vec2 u_wind_min; + uniform vec2 u_wind_max; + uniform sampler2D u_color_ramp; - if(u_textureBlend == 0.0) { // normal - pattern.a = 0.0; - gl_FragColor = filterColor(gl_FragColor + pattern); - } else { // replace - pattern.a *= v_color.a; - if(gl_FragColor.a <= 0.0) { - pattern.a = 0.0; - } - gl_FragColor = filterColor(pattern); - } - } - + varying vec2 v_particle_pos; - // blur - AA - if(v < v_blur) { - gl_FragColor.a = mix(0.0, gl_FragColor.a, v/v_blur); - } else if(v > 1.0 - v_blur) { - gl_FragColor.a = mix(gl_FragColor.a, 0.0, (v - (1.0 - v_blur))/v_blur); - } + void main() { + vec2 velocity = mix(u_wind_min, u_wind_max, texture2D(u_wind, v_particle_pos).rg); + float speed_t = length(velocity) / length(u_wind_max); - gl_FragColor = filterColor(gl_FragColor); -} -`,MM=`#define Animate 0.0 + // color ramp is encoded in a 16x16 texture + vec2 ramp_pos = vec2( fract(16.0 * speed_t), floor(16.0 * speed_t) / 16.0); -attribute float a_Miter; -attribute vec4 a_Color; -attribute vec2 a_Size; -attribute vec3 a_Normal; -attribute vec3 a_Position; -attribute vec2 a_iconMapUV; -attribute float a_Total_Distance; -attribute float a_Distance; + gl_FragColor = texture2D(u_color_ramp, ramp_pos); + }`,oV=` + precision mediump float; -uniform mat4 u_ModelMatrix; + attribute vec2 a_pos; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -uniform float u_icon_step: 100; -uniform float u_heightfixed; -uniform float u_linearColor: 0; + varying vec2 v_tex_pos; -#pragma include "projection" -#pragma include "light" -#pragma include "picking" + void main() { + v_tex_pos = a_pos; + gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1); + // framebuffer \u59CB\u7EC8\u7528\u94FA\u6EE1\u5C4F\u5E55\u7684 texture + }`,sV=` + precision highp float; -// texV \u7EBF\u56FE\u5C42 - \u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\uFF08\u7EBF\u7684\u5BBD\u5EA6\u65B9\u5411\uFF09 -varying vec2 v_iconMapUV; -varying vec4 v_color; -varying float v_blur; -varying float v_radio; -varying vec4 v_dataset; + uniform sampler2D u_particles; + uniform sampler2D u_wind; + uniform vec2 u_wind_res; + uniform vec2 u_wind_min; + uniform vec2 u_wind_max; + uniform float u_rand_seed; + uniform float u_speed_factor; + uniform float u_drop_rate; + uniform float u_drop_rate_bump; -void main() { + varying vec2 v_tex_pos; + // pseudo-random generator + const vec3 rand_constants = vec3(12.9898, 78.233, 4375.85453); + float rand(const vec2 co) { + float t = dot(rand_constants.xy, co); + return fract(sin(t) * (rand_constants.z + t)); + } - float d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - float d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + // wind speed lookup; use manual bilinear filtering based on 4 adjacent pixels for smooth interpolation + vec2 lookup_wind(const vec2 uv) { + // return texture2D(u_wind, uv).rg; // lower-res hardware filtering + vec2 px = 1.0 / u_wind_res; + vec2 vc = (floor(uv * u_wind_res)) * px; + vec2 f = fract(uv * u_wind_res); + vec2 tl = texture2D(u_wind, vc).rg; + vec2 tr = texture2D(u_wind, vc + vec2(px.x, 0)).rg; + vec2 bl = texture2D(u_wind, vc + vec2(0, px.y)).rg; + vec2 br = texture2D(u_wind, vc + px).rg; + return mix(mix(tl, tr, f.x), mix(bl, br, f.x), f.y); + } - v_iconMapUV = a_iconMapUV; - if(u_heightfixed < 1.0) { // \u9AD8\u5EA6\u968F zoom \u8C03\u6574 - d_texPixelLen = project_pixel(u_icon_step); - } else { - d_texPixelLen = u_icon_step; - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - d_texPixelLen *= 10.0; - } + void main() { + vec4 color = texture2D(u_particles, v_tex_pos); + vec2 pos = vec2( + color.r / 255.0 + color.b, + color.g / 255.0 + color.a); // decode particle position from pixel RGBA + vec2 velocity = mix(u_wind_min, u_wind_max, lookup_wind(pos)); + float speed_t = length(velocity) / length(u_wind_max); - if(u_animate.x == Animate || u_linearColor == 1.0) { - d_distance_ratio = a_Distance / a_Total_Distance; - } + // take EPSG:4236 distortion into account for calculating where the particle moved + float distortion = cos(radians(pos.y * 180.0 - 90.0)); + vec2 offset = vec2(velocity.x / distortion, -velocity.y) * 0.0001 * u_speed_factor; - float miter = (a_Miter + 1.0)/2.0; - // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 - v_dataset[0] = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - v_dataset[1] = a_Distance; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB - v_dataset[2] = d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E - v_dataset[3] = miter; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C 0 - 1 + // update particle position, wrapping around the date line + pos = fract(1.0 + pos + offset); - vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); + // a random seed to use for the particle drop + vec2 seed = (pos + v_tex_pos) * u_rand_seed; - float originSize = a_Size.x; // \u56FA\u5B9A\u9AD8\u5EA6 - if(u_heightfixed < 1.0) { - originSize = project_float_meter(a_Size.x); // \u9AD8\u5EA6\u968F zoom \u8C03\u6574 - } + // drop rate is a chance a particle will restart at random position, to avoid degeneration + float drop_rate = u_drop_rate + speed_t * u_drop_rate_bump; + float drop = step(1.0 - drop_rate, rand(seed)); + vec2 random_pos = vec2( + rand(seed + 1.3), + rand(seed + 2.1)); + pos = mix(pos, random_pos, drop); - float wallHeight = originSize * miter; - float lightWeight = calc_lighting(vec4(project_pos.xy, wallHeight, 1.0)); + // encode the new particle position back into RGBA + gl_FragColor = vec4( + fract(pos * 255.0), + floor(pos * 255.0) / 255.0); + }`,ooe=` + precision mediump float; - v_blur = min(project_float_pixel(2.0) / originSize, 0.05); - v_color = vec4(a_Color.rgb * lightWeight, a_Color.w * opacity); + attribute vec2 a_pos; - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(project_pos.xy, wallHeight, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, wallHeight, 1.0)); - } + varying vec2 v_tex_pos; - setPickingColor(a_PickingColor); -} -`,R7=function(o){(0,lt.Z)(l,o);var d=M7(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E 0.01 - float blurWidth = (1.0 - v_blur)/2.0; - vec4 stroke = vec4(u_stroke_color.rgb, u_stroke_opacity); - if(fragmengTocenter > v_innerRadius + blurWidth) { - gl_FragColor = stroke; - } else if(fragmengTocenter > v_innerRadius - blurWidth){ - float mixR = (fragmengTocenter - (v_innerRadius - blurWidth)) / (blurWidth * 2.0); - gl_FragColor = mix(v_color, stroke, mixR); - } else { - gl_FragColor = v_color; - } - } else { - // \u5F53\u4E0D\u5B58\u5728 stroke \u6216 stroke <= 0.01 - gl_FragColor = v_color; - } - - gl_FragColor = filterColor(gl_FragColor); - - if(u_additive > 0.0) { - gl_FragColor *= circleClipOpacity; - } else { - gl_FragColor.a *= circleClipOpacity; - } - + vec4 color = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y)); + gl_FragColor = color; + gl_FragColor.a *= u_opacity; } -`,pD=` -attribute vec3 a_Position; +`,lV=`precision highp float; uniform mat4 u_ModelMatrix; -attribute float a_Size; -attribute vec4 a_Color; -varying vec4 v_color; - -uniform float u_opacity : 1; -uniform vec2 u_offsets; -uniform float u_stroke_width; - -varying float v_blur; -varying float v_innerRadius; - - - +attribute vec3 a_Position; +attribute vec2 a_Uv; +varying vec2 v_texCoord; #pragma include "projection" -#pragma include "picking" -#pragma include "project" -void main() { - v_color = vec4(a_Color.xyz, a_Color.w * u_opacity); - v_blur = 1.0 - max(2.0/a_Size, 0.05); - v_innerRadius = max((a_Size - u_stroke_width) / a_Size, 0.0); - - vec2 offset = project_pixel(u_offsets); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * vec4(a_Position.xy + offset, a_Position.z, 1.0); - } else { // else - vec4 project_pos = project_position(vec4(a_Position, 1.0)) + vec4(a_Size / 2.,-a_Size /2.,0.,0.); - gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy+offset),project_pos.z,project_pos.w)); - } - - gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; - setPickingColor(a_PickingColor); -} -`;function TO(o){var d=o.coordinates;return{vertices:(0,_n.Z)(d),indices:[0],size:d.length}}var gD=function(o){(0,lt.Z)(l,o);var d=EO(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getDefaultStyle",value:function(){return{blend:"additive"}}},{key:"getUninforms",value:function(){var u=this.layer.getLayerConfig(),m=u.opacity,E=m===void 0?1:m,L=u.offsets,Z=L===void 0?[0,0]:L,ne=u.blend,xe=u.strokeOpacity,Oe=xe===void 0?1:xe,wt=u.strokeWidth,Bt=wt===void 0?0:wt,wn=u.stroke,Rn=wn===void 0?"#fff":wn;return{u_additive:ne==="additive"?1:0,u_opacity:E,u_offsets:Z,u_stroke_opacity:Oe,u_stroke_width:Bt,u_stroke_color:mi(Rn)}}},{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=TO,Z.next=3,this.layer.buildLayerModel({moduleName:"pointSimple",vertexShader:pD,fragmentShader:Uj,triangulation:TO,depth:{enable:!1},primitive:Di.POINTS});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:"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:1,update:function(m){var E=m.size,L=E===void 0?1:E;return Array.isArray(L)?[L[0]]:[L]}}})}}]),l}(ec);function O7(o){var d=HT();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 HT(){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 $j=`varying vec4 v_color; -uniform float u_opacity: 1.0; - -uniform float u_pickLight: 0.0; - -#pragma include "picking" - - -uniform float u_linearColor: 0; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; - -uniform float u_opacitylinear: 0.0; -uniform float u_opacitylinear_dir: 1.0; -varying float v_lightWeight; -varying float v_barLinearZ; void main() { + v_texCoord = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); - gl_FragColor = v_color; - - // \u5F00\u542F\u900F\u660E\u5EA6\u6E10\u53D8 - if(u_opacitylinear > 0.0) { - gl_FragColor.a *= u_opacitylinear_dir > 0.0 ? (1.0 - v_barLinearZ): v_barLinearZ; - } - - // picking - if(u_pickLight > 0.0) { - gl_FragColor = filterColorAlpha(gl_FragColor, v_lightWeight); - } else { - gl_FragColor = filterColor(gl_FragColor); - } + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); } -`,N7=`precision highp float; - -#define pi 3.1415926535 -#define ambientRatio 0.5 -#define diffuseRatio 0.3 -#define specularRatio 0.2 - -attribute vec3 a_Position; -attribute vec3 a_Pos; -attribute vec4 a_Color; -attribute vec3 a_Size; -attribute vec3 a_Normal; - -uniform float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A -uniform float u_globel; -uniform float u_r; -uniform mat4 u_ModelMatrix; - -varying vec4 v_color; - -uniform float u_opacity : 1; -uniform float u_lightEnable: 1; -varying float v_lightWeight; -varying float v_barLinearZ; -// \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - - -#pragma include "projection" -#pragma include "light" -#pragma include "picking" - -float getYRadian(float x, float z) { - if(x > 0.0 && z > 0.0) { - return atan(x/z); - } else if(x > 0.0 && z <= 0.0){ - return atan(-z/x) + pi/2.0; - } else if(x <= 0.0 && z <= 0.0) { - return pi + atan(x/z); //atan(x/z) + - } else { - return atan(z/-x) + pi*3.0/2.0; - } +`,uV={0:"#3288bd",.1:"#66c2a5",.2:"#abdda4",.3:"#e6f598",.4:"#fee08b",.5:"#fdae61",.6:"#f46d43",1:"#d53e4f"},yz=function(i){(0,Wt.Z)(f,i);var v=lH(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M0&&arguments[0]!==void 0?arguments[0]:{},M=this.layer.getLayerConfig(),B=M.opacity;this.layerService.beforeRenderData(this.layer),this.layer.hooks.beforeRender.call(),this.layerService.renderMask(this.layer.masks),(d=this.colorModel)===null||d===void 0||d.draw({uniforms:{u_opacity:B||1,u_texture:this.texture},blend:this.getBlend(),stencil:this.getStencil(C)}),this.layer.hooks.afterRender.call()}}]),f}(Gx),kD={wind:yz},ND=kD;function cV(i){var v=YR();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function YR(){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(i){return!1}}var gq=function(i){(0,Wt.Z)(f,i);var v=cV(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M0&&arguments[0]!==void 0?arguments[0]:{};return this.layerModel&&this.layerModel.render(d),this}},{key:"getDefaultConfig",value:function(){var d=this.getModelType(),C={wind:{}};return C[d]}},{key:"getModelType",value:function(){return"wind"}}]),f}(q4),qD,mq,dV,vq,nk,uH,yq,_8=e1.cloneDeep,coe=(qD=(0,Cg.b2)(),mq=(0,Cg.f3)(su.IMapService),dV=(0,Cg.f3)(su.IFontService),qD(vq=(nk=function(){function i(){(0,Or.Z)(this,i),ne(this,"mapService",uH,this),ne(this,"fontService",yq,this)}return(0,at.Z)(i,[{key:"apply",value:function(f,g){var d=this,C=g.styleAttributeService;f.hooks.init.tapPromise("DataMappingPlugin",(0,y_.Z)(Dv().mark(function M(){return Dv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:f.log(XT.MappingStart,OC.INIT),d.generateMaping(f,{styleAttributeService:C}),f.log(XT.MappingEnd,OC.INIT);case 3:case"end":return J.stop()}},M)}))),f.hooks.beforeRenderData.tapPromise("DataMappingPlugin",function(){var M=(0,y_.Z)(Dv().mark(function B(J){var ue;return Dv().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:if(J){it.next=2;break}return it.abrupt("return",J);case 2:return f.dataState.dataMappingNeedUpdate=!1,f.log(XT.MappingStart,OC.UPDATE),ue=d.generateMaping(f,{styleAttributeService:C}),f.log(XT.MappingEnd,OC.UPDATE),it.abrupt("return",ue);case 7:case"end":return it.stop()}},B)}));return function(B){return M.apply(this,arguments)}}()),f.hooks.beforeRender.tap("DataMappingPlugin",function(){var M=f.getSource();if(!(f.layerModelNeedUpdate||!M||!M.inited)){var B=C.getLayerStyleAttributes()||[],J=C.getLayerStyleAttribute("filter"),ue=M.data.dataArray;if(!(Array.isArray(ue)&&ue.length===0)){var Ue=B.filter(function(Wo){return Wo.needRemapping}),it=ue;if(J!=null&&J.needRemapping&&J!==null&&J!==void 0&&J.scale&&(it=ue.filter(function(Wo){return d.applyAttributeMapping(J,Wo)[0]})),Ue.length){var Ir=d.mapping(f,Ue,it,f.getEncodedData());f.setEncodedData(Ir)}}}})}},{key:"generateMaping",value:function(f,g){var d=this,C=g.styleAttributeService,M=C.getLayerStyleAttributes()||[],B=C.getLayerStyleAttribute("filter"),J=f.getSource().data.dataArray,ue=J;B!=null&&B.scale&&(ue=J.filter(function(it){return d.applyAttributeMapping(B,it)[0]})),ue=f.processData(ue);var Ue=this.mapping(f,M,ue,void 0);return f.setEncodedData(Ue),f.emit("dataUpdate",null),!0}},{key:"mapping",value:function(f,g,d,C){var M=this,B=g.filter(function(ue){return ue.scale!==void 0}).filter(function(ue){return ue.name!=="filter"}),J=d.map(function(ue,Ue){var it=C?C[Ue]:{},Ir=(0,An.Z)({id:ue._id,coordinates:ue.coordinates},it);return B.forEach(function(Wo){var Ca=M.applyAttributeMapping(Wo,ue);(Wo.name==="color"||Wo.name==="stroke")&&(Ca=Ca.map(function(eu){return a0(eu)})),Ir[Wo.name]=Array.isArray(Ca)&&Ca.length===1?Ca[0]:Ca,Wo.name==="shape"&&(Ir.shape=M.fontService.getIconFontKey(Ir[Wo.name]))}),Ir});return g.forEach(function(ue){ue.needRemapping=!1}),this.adjustData2Amap2Coordinates(J,f),this.adjustData2SimpleCoordinates(J),J}},{key:"adjustData2Amap2Coordinates",value:function(f,g){var d=this;if(f.length>0&&this.mapService.version==="GAODE2.x"){var C=g.coordCenter||g.getSource().center;f.filter(function(M){return!M.originCoordinates}).map(function(M){M.version="GAODE2.x",M.originCoordinates=_8(M.coordinates),M.coordinates=d.mapService.coordToAMap2RelativeCoordinates(M.coordinates,C)})}}},{key:"adjustData2SimpleCoordinates",value:function(f){var g=this;f.length>0&&this.mapService.version==="SIMPLE"&&f.map(function(d){d.simpleCoordinate||(d.coordinates=g.unProjectCoordinates(d.coordinates),d.simpleCoordinate=!0)})}},{key:"unProjectCoordinates",value:function(f){var g=this;if(typeof f[0]=="number")return this.mapService.simpleMapCoord.unproject(f);if(f[0]&&f[0][0]instanceof Array){var d=[];return f.map(function(M){var B=[];M.map(function(J){B.push(g.mapService.simpleMapCoord.unproject(J))}),d.push(B)}),d}else{var C=[];return f.map(function(M){C.push(g.mapService.simpleMapCoord.unproject(M))}),C}}},{key:"applyAttributeMapping",value:function(f,g){var d;if(!f.scale)return[];var C=(f==null||(d=f.scale)===null||d===void 0?void 0:d.scalers)||[],M=[];C.forEach(function(J){var ue,Ue=J.field;(g.hasOwnProperty(Ue)||((ue=f.scale)===null||ue===void 0?void 0:ue.type)==="variable")&&M.push(g[Ue])});var B=f.mapping?f.mapping(M):[];return B}},{key:"getArrowPoints",value:function(f,g){var d=[g[0]-f[0],g[1]-f[1]],C=r2(d),M=[f[0]+C[0]*1e-4,f[1]+C[1]*1e-4];return M}}]),i}(),uH=H(nk.prototype,"mapService",[mq],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),yq=H(nk.prototype,"fontService",[dV],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),nk))||vq),_q,bq,_z=(_q=(0,Cg.b2)(),_q(bq=function(){function i(){(0,Or.Z)(this,i)}return(0,at.Z)(i,[{key:"apply",value:function(f){var g=this;this.mapService=f.getContainer().get(su.IMapService),f.hooks.init.tapPromise("DataSourcePlugin",(0,y_.Z)(Dv().mark(function d(){var C,M,B,J;return Dv().wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(f.log(XT.SourceInitStart,OC.INIT),C=f.getSource(),C||(M=f.sourceOption||f.defaultSourceConfig,B=M.data,J=M.options,C=new Se(B,J),f.setSource(C)),!C.inited){Ue.next=8;break}g.updateClusterData(f),f.log(XT.SourceInitEnd,OC.INIT),Ue.next=10;break;case 8:return Ue.next=10,new Promise(function(it){C.on("update",function(Ir){Ir.type==="inited"&&(g.updateClusterData(f),f.log(XT.SourceInitEnd,OC.INIT)),it(null)})});case 10:case"end":return Ue.stop()}},d)}))),f.hooks.beforeRenderData.tapPromise("DataSourcePlugin",(0,y_.Z)(Dv().mark(function d(){var C,M,B;return Dv().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return C=g.updateClusterData(f),M=f.dataState.dataSourceNeedUpdate,f.dataState.dataSourceNeedUpdate=!1,B=C||M,ue.abrupt("return",B);case 5:case"end":return ue.stop()}},d)})))}},{key:"updateClusterData",value:function(f){if(f.isTileLayer||f.tileLayer||!f.getSource())return!1;var g=f.getSource(),d=g.cluster,C=g.clusterOptions.zoom,M=C===void 0?0:C,B=this.mapService.getZoom()-1,J=f.dataState.dataSourceNeedUpdate;return d&&J&&g.updateClusterData(Math.floor(B)),d&&Math.abs(f.clusterZoom-B)>=1?(M!==Math.floor(B)&&g.updateClusterData(Math.floor(B)),f.clusterZoom=B,!0):!1}}]),i}())||bq),Q4=l(57965);function H7(i,v,f,g,d){var C=i*i,M=C*i;return((1-3*i+3*C-M)*v+(4-6*C+3*M)*f+(1+3*i+3*C-3*M)*g+M*d)/6}function xq(i){var v=i.length-1;return function(f){var g=f<=0?f=0:f>=1?(f=1,v-1):Math.floor(f*v),d=i[g],C=i[g+1],M=g>0?i[g-1]:2*d-C,B=g180||f<-180?f-360*Math.round(f/360):f):constant(isNaN(i)?v:i)}function b8(i){return(i=+i)==1?x8:function(v,f){return f-v?doe(v,f,i):qR(isNaN(v)?f:v)}}function x8(i,v){var f=v-i;return f?fV(i,f):qR(isNaN(i)?v:i)}var wq=function i(v){var f=b8(v);function g(d,C){var M=f((d=Zg(d)).r,(C=Zg(C)).r),B=f(d.g,C.g),J=f(d.b,C.b),ue=x8(d.opacity,C.opacity);return function(Ue){return d.r=M(Ue),d.g=B(Ue),d.b=J(Ue),d.opacity=ue(Ue),d+""}}return g.gamma=i,g}(1);function Cq(i){return function(v){var f=v.length,g=new Array(f),d=new Array(f),C=new Array(f),M,B;for(M=0;M=i.length)return f!=null&&B.sort(f),g!=null?g(B):B;for(var it=-1,Ir=B.length,Wo=i[J++],Ca,eu,Bd=map(),r0,N0=ue();++iti.length)return B;var ue,Ue=v[J-1];return g!=null&&J>=i.length?ue=B.entries():(ue=[],B.each(function(it,Ir){ue.push({key:Ir,values:M(it,J)})})),Ue!=null?ue.sort(function(it,Ir){return Ue(it.key,Ir.key)}):ue}return d={object:function(B){return C(B,0,vN,Sq)},map:function(B){return C(B,0,cH,tI)},entries:function(B){return M(C(B,0,cH,tI),0)},key:function(B){return i.push(B),d},sortKeys:function(B){return v[i.length-1]=B,d},sortValues:function(B){return f=B,d},rollup:function(B){return g=B,d}}}function vN(){return{}}function Sq(i,v,f){i[v]=f}function cH(){return map()}function tI(i,v,f){i.set(v,f)}function yN(){}var JR=w8.prototype;yN.prototype=K7.prototype={constructor:yN,has:JR.has,add:function(i){return i+="",this[JM+i]=i,this},remove:JR.remove,clear:JR.clear,values:JR.keys,size:JR.size,empty:JR.empty,each:JR.each};function K7(i,v){var f=new yN;if(i instanceof yN)i.each(function(C){f.add(C)});else if(i){var g=-1,d=i.length;if(v==null)for(;++gf&&(C=v.slice(f,C),B[M]?B[M]+=C:B[++M]=C),(g=g[0])===(d=d[0])?B[M]?B[M]+=d:B[++M]=d:(B[++M]=null,J.push({i:M,x:bI(g,d)})),f=hH.lastIndex;return ff&&(g=v,v=f,f=g),function(d){return Math.max(v,Math.min(f,d))}}function boe(i,v,f){var g=i[0],d=i[1],C=v[0],M=v[1];return d2?xoe:boe,J=ue=null,it}function it(Ir){return isNaN(Ir=+Ir)?C:(J||(J=B(i.map(g),v,f)))(g(M(Ir)))}return it.invert=function(Ir){return M(d((ue||(ue=B(v,i.map(g),bI)))(Ir)))},it.domain=function(Ir){return arguments.length?(i=IA.call(Ir,_oe),M===kP||(M=Aq(i)),Ue()):i.slice()},it.range=function(Ir){return arguments.length?(v=rk.call(Ir),Ue()):v.slice()},it.rangeRound=function(Ir){return v=rk.call(Ir),f=yoe,Ue()},it.clamp=function(Ir){return arguments.length?(M=Ir?Aq(i):kP,it):M!==kP},it.interpolate=function(Ir){return arguments.length?(f=Ir,Ue()):f},it.unknown=function(Ir){return arguments.length?(C=Ir,it):C},function(Ir,Wo){return g=Ir,d=Wo,Ue()}}function Dq(i,v){return gH()(i,v)}var woe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function C8(i){if(!(v=woe.exec(i)))throw new Error("invalid format: "+i);var v;return new mH({fill:v[1],align:v[2],sign:v[3],symbol:v[4],zero:v[5],width:v[6],comma:v[7],precision:v[8]&&v[8].slice(1),trim:v[9],type:v[10]})}C8.prototype=mH.prototype;function mH(i){this.fill=i.fill===void 0?" ":i.fill+"",this.align=i.align===void 0?">":i.align+"",this.sign=i.sign===void 0?"-":i.sign+"",this.symbol=i.symbol===void 0?"":i.symbol+"",this.zero=!!i.zero,this.width=i.width===void 0?void 0:+i.width,this.comma=!!i.comma,this.precision=i.precision===void 0?void 0:+i.precision,this.trim=!!i.trim,this.type=i.type===void 0?"":i.type+""}mH.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 Iq(i){return Math.abs(i=Math.round(i))>=1e21?i.toLocaleString("en").replace(/,/g,""):i.toString(10)}function vV(i,v){if((f=(i=v?i.toExponential(v-1):i.toExponential()).indexOf("e"))<0)return null;var f,g=i.slice(0,f);return[g.length>1?g[0]+g.slice(2):g,+i.slice(f+1)]}function N4(i){return i=vV(Math.abs(i)),i?i[1]:NaN}function NP(i,v){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(N4(v)/3)))*3-N4(Math.abs(i)))}function Coe(i,v){return function(f,g){for(var d=f.length,C=[],M=0,B=i[0],J=0;d>0&&B>0&&(J+B+1>g&&(B=Math.max(1,g-J)),C.push(f.substring(d-=B,d+B)),!((J+=B+1)>g));)B=i[M=(M+1)%i.length];return C.reverse().join(v)}}function Soe(i){return function(v){return v.replace(/[0-9]/g,function(f){return i[+f]})}}function Eoe(i){e:for(var v=i.length,f=1,g=-1,d;f0&&(g=0);break}return g>0?i.slice(0,g)+i.slice(d+1):i}var Pq;function J7(i,v){var f=vV(i,v);if(!f)return i+"";var g=f[0],d=f[1],C=d-(Pq=Math.max(-8,Math.min(8,Math.floor(d/3)))*3)+1,M=g.length;return C===M?g:C>M?g+new Array(C-M+1).join("0"):C>0?g.slice(0,C)+"."+g.slice(C):"0."+new Array(1-C).join("0")+vV(i,Math.max(0,v+C-1))[0]}function Lq(i,v){var f=vV(i,v);if(!f)return i+"";var g=f[0],d=f[1];return d<0?"0."+new Array(-d).join("0")+g:g.length>d+1?g.slice(0,d+1)+"."+g.slice(d+1):g+new Array(d-g.length+2).join("0")}var Mq={"%":function(i,v){return(i*100).toFixed(v)},b:function(i){return Math.round(i).toString(2)},c:function(i){return i+""},d:Iq,e:function(i,v){return i.toExponential(v)},f:function(i,v){return i.toFixed(v)},g:function(i,v){return i.toPrecision(v)},o:function(i){return Math.round(i).toString(8)},p:function(i,v){return Lq(i*100,v)},r:Lq,s:J7,X:function(i){return Math.round(i).toString(16).toUpperCase()},x:function(i){return Math.round(i).toString(16)}};function Oq(i){return i}var Rq=Array.prototype.map,kq=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Toe(i){var v=i.grouping===void 0||i.thousands===void 0?Oq:Coe(Rq.call(i.grouping,Number),i.thousands+""),f=i.currency===void 0?"":i.currency[0]+"",g=i.currency===void 0?"":i.currency[1]+"",d=i.decimal===void 0?".":i.decimal+"",C=i.numerals===void 0?Oq:Soe(Rq.call(i.numerals,String)),M=i.percent===void 0?"%":i.percent+"",B=i.minus===void 0?"-":i.minus+"",J=i.nan===void 0?"NaN":i.nan+"";function ue(it){it=C8(it);var Ir=it.fill,Wo=it.align,Ca=it.sign,eu=it.symbol,Bd=it.zero,r0=it.width,N0=it.comma,fv=it.precision,v1=it.trim,_y=it.type;_y==="n"?(N0=!0,_y="g"):Mq[_y]||(fv===void 0&&(fv=12),v1=!0,_y="g"),(Bd||Ir==="0"&&Wo==="=")&&(Bd=!0,Ir="0",Wo="=");var Q1=eu==="$"?f:eu==="#"&&/[boxX]/.test(_y)?"0"+_y.toLowerCase():"",iy=eu==="$"?g:/[%p]/.test(_y)?M:"",Uy=Mq[_y],w_=/[defgprs%]/.test(_y);fv=fv===void 0?6:/[gprs]/.test(_y)?Math.max(1,Math.min(21,fv)):Math.max(0,Math.min(20,fv));function _x(ux){var f2=Q1,G2=iy,cw,JE,mT;if(_y==="c")G2=Uy(ux)+G2,ux="";else{ux=+ux;var qT=ux<0||1/ux<0;if(ux=isNaN(ux)?J:Uy(Math.abs(ux),fv),v1&&(ux=Eoe(ux)),qT&&+ux==0&&Ca!=="+"&&(qT=!1),f2=(qT?Ca==="("?Ca:B:Ca==="-"||Ca==="("?"":Ca)+f2,G2=(_y==="s"?kq[8+Pq/3]:"")+G2+(qT&&Ca==="("?")":""),w_){for(cw=-1,JE=ux.length;++cwmT||mT>57){G2=(mT===46?d+ux.slice(cw+1):ux.slice(cw))+G2,ux=ux.slice(0,cw);break}}}N0&&!Bd&&(ux=v(ux,1/0));var Z3=f2.length+ux.length+G2.length,yA=Z3>1)+f2+ux+G2+yA.slice(Z3);break;default:ux=yA+f2+ux+G2;break}return C(ux)}return _x.toString=function(){return it+""},_x}function Ue(it,Ir){var Wo=ue((it=C8(it),it.type="f",it)),Ca=Math.max(-8,Math.min(8,Math.floor(N4(Ir)/3)))*3,eu=Math.pow(10,-Ca),Bd=kq[8+Ca/3];return function(r0){return Wo(eu*r0)+Bd}}return{format:ue,formatPrefix:Ue}}var vH,Nq,Aoe;rL({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function rL(i){return vH=Toe(i),Nq=vH.format,Aoe=vH.formatPrefix,vH}function Q7(i,v){return i=Math.abs(i),v=Math.abs(v)-i,Math.max(0,N4(v)-N4(i))+1}function Nw(i){return Math.max(0,-N4(Math.abs(i)))}function WO(i,v,f,g){var d=(0,Q4.ly)(i,v,f),C;switch(g=C8(g==null?",f":g),g.type){case"s":{var M=Math.max(Math.abs(i),Math.abs(v));return g.precision==null&&!isNaN(C=NP(d,M))&&(g.precision=C),Aoe(g,M)}case"":case"e":case"g":case"p":case"r":{g.precision==null&&!isNaN(C=Q7(d,Math.max(Math.abs(i),Math.abs(v))))&&(g.precision=C-(g.type==="e"));break}case"f":case"%":{g.precision==null&&!isNaN(C=Nw(d))&&(g.precision=C-(g.type==="%")*2);break}}return Nq(g)}function S8(i){var v=i.domain;return i.ticks=function(f){var g=v();return(0,Q4.sd)(g[0],g[g.length-1],f==null?10:f)},i.tickFormat=function(f,g){var d=v();return WO(d[0],d[d.length-1],f==null?10:f,g)},i.nice=function(f){f==null&&(f=10);var g=v(),d=0,C=g.length-1,M=g[d],B=g[C],J;return B0?(M=Math.floor(M/J)*J,B=Math.ceil(B/J)*J,J=(0,Q4.G9)(M,B,f)):J<0&&(M=Math.ceil(M*J)/J,B=Math.floor(B*J)/J,J=(0,Q4.G9)(M,B,f)),J>0?(g[d]=Math.floor(M/J)*J,g[C]=Math.ceil(B/J)*J,v(g)):J<0&&(g[d]=Math.ceil(M*J)/J,g[C]=Math.floor(B*J)/J,v(g)),i},i}function bz(){var i=Dq(kP,kP);return i.copy=function(){return mV(i,bz())},b3.apply(i,arguments),S8(i)}function Doe(i){var v;function f(g){return isNaN(g=+g)?v:g}return f.invert=f,f.domain=f.range=function(g){return arguments.length?(i=map.call(g,number),f):i.slice()},f.unknown=function(g){return arguments.length?(v=g,f):v},f.copy=function(){return Doe(i).unknown(v)},i=arguments.length?map.call(i,number):[0,1],linearish(f)}function xz(i,v){i=i.slice();var f=0,g=i.length-1,d=i[f],C=i[g],M;return C0){for(;IrUe)break;N0.push(Bd)}}else for(;Ir=1;--eu)if(Bd=Ca*eu,!(BdUe)break;N0.push(Bd)}}else N0=(0,Q4.sd)(Ir,Wo,Math.min(Wo-Ir,r0)).map(C);return it?N0.reverse():N0},v.tickFormat=function(B,J){if(J==null&&(J=g===10?".0e":","),typeof J!="function"&&(J=Nq(J)),B===1/0)return J;B==null&&(B=10);var ue=Math.max(1,g*B/v.ticks().length);return function(Ue){var it=Ue/C(Math.round(d(Ue)));return it*g0?f[B-1]:i[0],B=f?[g[f-1],v]:[g[ue-1],g[ue]]},M.unknown=function(J){return arguments.length&&(C=J),M},M.thresholds=function(){return g.slice()},M.copy=function(){return E8().domain([i,v]).range(d).unknown(C)},b3.apply(S8(M),arguments)}function T8(){var i=[.5],v=[0,1],f,g=1;function d(C){return C<=C?v[(0,Q4.b4)(i,C,0,g)]:f}return d.domain=function(C){return arguments.length?(i=rk.call(C),g=Math.min(i.length,v.length-1),d):i.slice()},d.range=function(C){return arguments.length?(v=rk.call(C),g=Math.min(i.length,v.length-1),d):v.slice()},d.invertExtent=function(C){var M=v.indexOf(C);return[i[M-1],i[M]]},d.unknown=function(C){return arguments.length?(f=C,d):f},d.copy=function(){return T8().domain(i).range(v).unknown(f)},b3.apply(d,arguments)}var Cz=new Date,nB=new Date;function nI(i,v,f,g){function d(C){return i(C=arguments.length===0?new Date:new Date(+C)),C}return d.floor=function(C){return i(C=new Date(+C)),C},d.ceil=function(C){return i(C=new Date(C-1)),v(C,1),i(C),C},d.round=function(C){var M=d(C),B=d.ceil(C);return C-M0))return J;do J.push(ue=new Date(+C)),v(C,B),i(C);while(ue=M)for(;i(M),!C(M);)M.setTime(M-1)},function(M,B){if(M>=M)if(B<0)for(;++B<=0;)for(;v(M,-1),!C(M););else for(;--B>=0;)for(;v(M,1),!C(M););})},f&&(d.count=function(C,M){return Cz.setTime(+C),nB.setTime(+M),i(Cz),i(nB),Math.floor(f(Cz,nB))},d.every=function(C){return C=Math.floor(C),!isFinite(C)||!(C>0)?null:C>1?d.filter(g?function(M){return g(M)%C===0}:function(M){return d.count(0,M)%C===0}):d}),d}var rB=nI(function(i){i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,v){i.setFullYear(i.getFullYear()+v)},function(i,v){return v.getFullYear()-i.getFullYear()},function(i){return i.getFullYear()});rB.every=function(i){return!isFinite(i=Math.floor(i))||!(i>0)?null:nI(function(v){v.setFullYear(Math.floor(v.getFullYear()/i)*i),v.setMonth(0,1),v.setHours(0,0,0,0)},function(v,f){v.setFullYear(v.getFullYear()+f*i)})};var ok=rB,ipe=rB.range,jq=nI(function(i){i.setDate(1),i.setHours(0,0,0,0)},function(i,v){i.setMonth(i.getMonth()+v)},function(i,v){return v.getMonth()-i.getMonth()+(v.getFullYear()-i.getFullYear())*12},function(i){return i.getMonth()}),Moe=jq,Ooe=jq.range,Sz=1e3,A8=6e4,Wq=36e5,bN=864e5,Zq=6048e5;function D8(i){return nI(function(v){v.setDate(v.getDate()-(v.getDay()+7-i)%7),v.setHours(0,0,0,0)},function(v,f){v.setDate(v.getDate()+f*7)},function(v,f){return(f-v-(f.getTimezoneOffset()-v.getTimezoneOffset())*A8)/Zq})}var iB=D8(0),oB=D8(1),Hq=D8(2),Roe=D8(3),e5=D8(4),ZO=D8(5),koe=D8(6),n1e=iB.range,xN=oB.range,ope=Hq.range,spe=Roe.range,QM=e5.range,xH=ZO.range,ape=koe.range,xV=nI(function(i){i.setHours(0,0,0,0)},function(i,v){i.setDate(i.getDate()+v)},function(i,v){return(v-i-(v.getTimezoneOffset()-i.getTimezoneOffset())*A8)/bN},function(i){return i.getDate()-1}),wH=xV,wV=xV.range,Gq=nI(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*Sz-i.getMinutes()*A8)},function(i,v){i.setTime(+i+v*Wq)},function(i,v){return(v-i)/Wq},function(i){return i.getHours()}),sB=Gq,Kq=Gq.range,CH=nI(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*Sz)},function(i,v){i.setTime(+i+v*A8)},function(i,v){return(v-i)/A8},function(i){return i.getMinutes()}),Noe=CH,lpe=CH.range,SH=nI(function(i){i.setTime(i-i.getMilliseconds())},function(i,v){i.setTime(+i+v*Sz)},function(i,v){return(v-i)/Sz},function(i){return i.getUTCSeconds()}),Xq=SH,I8=SH.range,CV=nI(function(){},function(i,v){i.setTime(+i+v)},function(i,v){return v-i});CV.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?nI(function(v){v.setTime(Math.floor(v/i)*i)},function(v,f){v.setTime(+v+f*i)},function(v,f){return(f-v)/i}):CV};var Foe=CV,upe=CV.range;function HO(i){return nI(function(v){v.setUTCDate(v.getUTCDate()-(v.getUTCDay()+7-i)%7),v.setUTCHours(0,0,0,0)},function(v,f){v.setUTCDate(v.getUTCDate()+f*7)},function(v,f){return(f-v)/Zq})}var Yq=HO(0),SV=HO(1),Boe=HO(2),qq=HO(3),aB=HO(4),EH=HO(5),zoe=HO(6),$oe=Yq.range,cpe=SV.range,lB=Boe.range,dpe=qq.range,t5=aB.range,hpe=EH.range,fpe=zoe.range,Jq=nI(function(i){i.setUTCHours(0,0,0,0)},function(i,v){i.setUTCDate(i.getUTCDate()+v)},function(i,v){return(v-i)/bN},function(i){return i.getUTCDate()-1}),TH=Jq,ppe=Jq.range,AH=nI(function(i){i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,v){i.setUTCFullYear(i.getUTCFullYear()+v)},function(i,v){return v.getUTCFullYear()-i.getUTCFullYear()},function(i){return i.getUTCFullYear()});AH.every=function(i){return!isFinite(i=Math.floor(i))||!(i>0)?null:nI(function(v){v.setUTCFullYear(Math.floor(v.getUTCFullYear()/i)*i),v.setUTCMonth(0,1),v.setUTCHours(0,0,0,0)},function(v,f){v.setUTCFullYear(v.getUTCFullYear()+f*i)})};var Ez=AH,gpe=AH.range;function DH(i){if(0<=i.y&&i.y<100){var v=new Date(-1,i.m,i.d,i.H,i.M,i.S,i.L);return v.setFullYear(i.y),v}return new Date(i.y,i.m,i.d,i.H,i.M,i.S,i.L)}function EV(i){if(0<=i.y&&i.y<100){var v=new Date(Date.UTC(-1,i.m,i.d,i.H,i.M,i.S,i.L));return v.setUTCFullYear(i.y),v}return new Date(Date.UTC(i.y,i.m,i.d,i.H,i.M,i.S,i.L))}function Tz(i,v,f){return{y:i,m:v,d:f,H:0,M:0,S:0,L:0}}function IH(i){var v=i.dateTime,f=i.date,g=i.time,d=i.periods,C=i.days,M=i.shortDays,B=i.months,J=i.shortMonths,ue=P8(d),Ue=Az(d),it=P8(C),Ir=Az(C),Wo=P8(M),Ca=Az(M),eu=P8(B),Bd=Az(B),r0=P8(J),N0=Az(J),fv={a:qT,A:Z3,b:yA,B:hI,c:null,d:IV,e:IV,f:uB,g:ese,G:wN,H:Koe,I:nJ,j:RH,L:ak,m:KO,M:Xoe,p:_R,q:Ak,Q:hB,s:aJ,S:Yoe,u:lk,U:Pz,V:qoe,w:kH,W:Joe,x:null,X:null,y:Qoe,Y:tse,Z:iJ,"%":MV},v1={a:XB,A:YB,b:FD,B:hL,c:null,d:cB,e:cB,f:rse,g:ase,G:FH,H:ML,I:r5,j:nse,L:oJ,m:PV,M:dB,p:gW,q:mW,Q:hB,s:aJ,S:ise,u:ose,U:NH,V:sJ,w:LV,W:sse,x:null,X:null,y:WI,Y:CN,Z:i5,"%":MV},_y={a:_x,A:ux,b:f2,B:G2,c:cw,d:LH,e:LH,f:Hoe,g:DV,G:GO,H:tJ,I:tJ,j:F4,L:sk,m:Iz,M:MH,p:w_,q:Woe,Q:L8,s:Goe,S:Zoe,u:eJ,U:n5,V:Dz,w:Uoe,W:Voe,x:JE,X:mT,y:DV,Y:GO,Z:joe,"%":OH};fv.x=Q1(f,fv),fv.X=Q1(g,fv),fv.c=Q1(v,fv),v1.x=Q1(f,v1),v1.X=Q1(g,v1),v1.c=Q1(v,v1);function Q1(CT,F3){return function(aD){var FS=[],KL=-1,BD=0,TM=CT.length,AM,vF,yF;for(aD instanceof Date||(aD=new Date(+aD));++KL53)return null;"w"in FS||(FS.w=1),"Z"in FS?(BD=EV(Tz(FS.y,0,1)),TM=BD.getUTCDay(),BD=TM>4||TM===0?SV.ceil(BD):SV(BD),BD=TH.offset(BD,(FS.V-1)*7),FS.y=BD.getUTCFullYear(),FS.m=BD.getUTCMonth(),FS.d=BD.getUTCDate()+(FS.w+6)%7):(BD=DH(Tz(FS.y,0,1)),TM=BD.getDay(),BD=TM>4||TM===0?oB.ceil(BD):oB(BD),BD=wH.offset(BD,(FS.V-1)*7),FS.y=BD.getFullYear(),FS.m=BD.getMonth(),FS.d=BD.getDate()+(FS.w+6)%7)}else("W"in FS||"U"in FS)&&("w"in FS||(FS.w="u"in FS?FS.u%7:"W"in FS?1:0),TM="Z"in FS?EV(Tz(FS.y,0,1)).getUTCDay():DH(Tz(FS.y,0,1)).getDay(),FS.m=0,FS.d="W"in FS?(FS.w+6)%7+FS.W*7-(TM+5)%7:FS.w+FS.U*7-(TM+6)%7);return"Z"in FS?(FS.H+=FS.Z/100|0,FS.M+=FS.Z%100,EV(FS)):DH(FS)}}function Uy(CT,F3,aD,FS){for(var KL=0,BD=F3.length,TM=aD.length,AM,vF;KL=TM)return-1;if(AM=F3.charCodeAt(KL++),AM===37){if(AM=F3.charAt(KL++),vF=_y[AM in TV?F3.charAt(KL++):AM],!vF||(FS=vF(CT,aD,FS))<0)return-1}else if(AM!=aD.charCodeAt(FS++))return-1}return FS}function w_(CT,F3,aD){var FS=ue.exec(F3.slice(aD));return FS?(CT.p=Ue[FS[0].toLowerCase()],aD+FS[0].length):-1}function _x(CT,F3,aD){var FS=Wo.exec(F3.slice(aD));return FS?(CT.w=Ca[FS[0].toLowerCase()],aD+FS[0].length):-1}function ux(CT,F3,aD){var FS=it.exec(F3.slice(aD));return FS?(CT.w=Ir[FS[0].toLowerCase()],aD+FS[0].length):-1}function f2(CT,F3,aD){var FS=r0.exec(F3.slice(aD));return FS?(CT.m=N0[FS[0].toLowerCase()],aD+FS[0].length):-1}function G2(CT,F3,aD){var FS=eu.exec(F3.slice(aD));return FS?(CT.m=Bd[FS[0].toLowerCase()],aD+FS[0].length):-1}function cw(CT,F3,aD){return Uy(CT,v,F3,aD)}function JE(CT,F3,aD){return Uy(CT,f,F3,aD)}function mT(CT,F3,aD){return Uy(CT,g,F3,aD)}function qT(CT){return M[CT.getDay()]}function Z3(CT){return C[CT.getDay()]}function yA(CT){return J[CT.getMonth()]}function hI(CT){return B[CT.getMonth()]}function _R(CT){return d[+(CT.getHours()>=12)]}function Ak(CT){return 1+~~(CT.getMonth()/3)}function XB(CT){return M[CT.getUTCDay()]}function YB(CT){return C[CT.getUTCDay()]}function FD(CT){return J[CT.getUTCMonth()]}function hL(CT){return B[CT.getUTCMonth()]}function gW(CT){return d[+(CT.getUTCHours()>=12)]}function mW(CT){return 1+~~(CT.getUTCMonth()/3)}return{format:function(CT){var F3=Q1(CT+="",fv);return F3.toString=function(){return CT},F3},parse:function(CT){var F3=iy(CT+="",!1);return F3.toString=function(){return CT},F3},utcFormat:function(CT){var F3=Q1(CT+="",v1);return F3.toString=function(){return CT},F3},utcParse:function(CT){var F3=iy(CT+="",!0);return F3.toString=function(){return CT},F3}}}var TV={"-":"",_:" ",0:"0"},v4=/^\s*\d+/,Qq=/^%/,AV=/[\\^$*+?|[\]().{}]/g;function uD(i,v,f){var g=i<0?"-":"",d=(g?-i:i)+"",C=d.length;return g+(C68?1900:2e3),f+g[0].length):-1}function joe(i,v,f){var g=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(v.slice(f,f+6));return g?(i.Z=g[1]?0:-(g[2]+(g[3]||"00")),f+g[0].length):-1}function Woe(i,v,f){var g=v4.exec(v.slice(f,f+1));return g?(i.q=g[0]*3-3,f+g[0].length):-1}function Iz(i,v,f){var g=v4.exec(v.slice(f,f+2));return g?(i.m=g[0]-1,f+g[0].length):-1}function LH(i,v,f){var g=v4.exec(v.slice(f,f+2));return g?(i.d=+g[0],f+g[0].length):-1}function F4(i,v,f){var g=v4.exec(v.slice(f,f+3));return g?(i.m=0,i.d=+g[0],f+g[0].length):-1}function tJ(i,v,f){var g=v4.exec(v.slice(f,f+2));return g?(i.H=+g[0],f+g[0].length):-1}function MH(i,v,f){var g=v4.exec(v.slice(f,f+2));return g?(i.M=+g[0],f+g[0].length):-1}function Zoe(i,v,f){var g=v4.exec(v.slice(f,f+2));return g?(i.S=+g[0],f+g[0].length):-1}function sk(i,v,f){var g=v4.exec(v.slice(f,f+3));return g?(i.L=+g[0],f+g[0].length):-1}function Hoe(i,v,f){var g=v4.exec(v.slice(f,f+6));return g?(i.L=Math.floor(g[0]/1e3),f+g[0].length):-1}function OH(i,v,f){var g=Qq.exec(v.slice(f,f+1));return g?f+g[0].length:-1}function L8(i,v,f){var g=v4.exec(v.slice(f));return g?(i.Q=+g[0],f+g[0].length):-1}function Goe(i,v,f){var g=v4.exec(v.slice(f));return g?(i.s=+g[0],f+g[0].length):-1}function IV(i,v){return uD(i.getDate(),v,2)}function Koe(i,v){return uD(i.getHours(),v,2)}function nJ(i,v){return uD(i.getHours()%12||12,v,2)}function RH(i,v){return uD(1+wH.count(ok(i),i),v,3)}function ak(i,v){return uD(i.getMilliseconds(),v,3)}function uB(i,v){return ak(i,v)+"000"}function KO(i,v){return uD(i.getMonth()+1,v,2)}function Xoe(i,v){return uD(i.getMinutes(),v,2)}function Yoe(i,v){return uD(i.getSeconds(),v,2)}function lk(i){var v=i.getDay();return v===0?7:v}function Pz(i,v){return uD(iB.count(ok(i)-1,i),v,2)}function rJ(i){var v=i.getDay();return v>=4||v===0?e5(i):e5.ceil(i)}function qoe(i,v){return i=rJ(i),uD(e5.count(ok(i),i)+(ok(i).getDay()===4),v,2)}function kH(i){return i.getDay()}function Joe(i,v){return uD(oB.count(ok(i)-1,i),v,2)}function Qoe(i,v){return uD(i.getFullYear()%100,v,2)}function ese(i,v){return i=rJ(i),uD(i.getFullYear()%100,v,2)}function tse(i,v){return uD(i.getFullYear()%1e4,v,4)}function wN(i,v){var f=i.getDay();return i=f>=4||f===0?e5(i):e5.ceil(i),uD(i.getFullYear()%1e4,v,4)}function iJ(i){var v=i.getTimezoneOffset();return(v>0?"-":(v*=-1,"+"))+uD(v/60|0,"0",2)+uD(v%60,"0",2)}function cB(i,v){return uD(i.getUTCDate(),v,2)}function ML(i,v){return uD(i.getUTCHours(),v,2)}function r5(i,v){return uD(i.getUTCHours()%12||12,v,2)}function nse(i,v){return uD(1+TH.count(Ez(i),i),v,3)}function oJ(i,v){return uD(i.getUTCMilliseconds(),v,3)}function rse(i,v){return oJ(i,v)+"000"}function PV(i,v){return uD(i.getUTCMonth()+1,v,2)}function dB(i,v){return uD(i.getUTCMinutes(),v,2)}function ise(i,v){return uD(i.getUTCSeconds(),v,2)}function ose(i){var v=i.getUTCDay();return v===0?7:v}function NH(i,v){return uD(Yq.count(Ez(i)-1,i),v,2)}function FP(i){var v=i.getUTCDay();return v>=4||v===0?aB(i):aB.ceil(i)}function sJ(i,v){return i=FP(i),uD(aB.count(Ez(i),i)+(Ez(i).getUTCDay()===4),v,2)}function LV(i){return i.getUTCDay()}function sse(i,v){return uD(SV.count(Ez(i)-1,i),v,2)}function WI(i,v){return uD(i.getUTCFullYear()%100,v,2)}function ase(i,v){return i=FP(i),uD(i.getUTCFullYear()%100,v,2)}function CN(i,v){return uD(i.getUTCFullYear()%1e4,v,4)}function FH(i,v){var f=i.getUTCDay();return i=f>=4||f===0?aB(i):aB.ceil(i),uD(i.getUTCFullYear()%1e4,v,4)}function i5(){return"+0000"}function MV(){return"%"}function hB(i){return+i}function aJ(i){return Math.floor(+i/1e3)}var uk,lJ,lse,use,cse;uJ({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 uJ(i){return uk=IH(i),lJ=uk.format,lse=uk.parse,use=uk.utcFormat,cse=uk.utcParse,uk}var Lz=1e3,Mz=Lz*60,Oz=Mz*60,Rz=Oz*24,dse=Rz*7,cJ=Rz*30,SN=Rz*365;function dJ(i){return new Date(i)}function hJ(i){return i instanceof Date?+i:+new Date(+i)}function XO(i,v,f,g,d,C,M,B,J){var ue=Dq(kP,kP),Ue=ue.invert,it=ue.domain,Ir=J(".%L"),Wo=J(":%S"),Ca=J("%I:%M"),eu=J("%I %p"),Bd=J("%a %d"),r0=J("%b %d"),N0=J("%B"),fv=J("%Y"),v1=[[M,1,Lz],[M,5,5*Lz],[M,15,15*Lz],[M,30,30*Lz],[C,1,Mz],[C,5,5*Mz],[C,15,15*Mz],[C,30,30*Mz],[d,1,Oz],[d,3,3*Oz],[d,6,6*Oz],[d,12,12*Oz],[g,1,Rz],[g,2,2*Rz],[f,1,dse],[v,1,cJ],[v,3,3*cJ],[i,1,SN]];function _y(iy){return(M(iy)2){var it=ue.scale.ticks(M.values.length);ue.scale.domain(it)}M.values?ue.scale.range(M.values):ue.scale.range(ue.option.domain);break;case U3.QUANTILE:case U3.QUANTIZE:case U3.THRESHOLD:ue.scale.range(M.values);break;case U3.IDENTITY:break;case U3.CAT:M.values?ue.scale.range(M.values):ue.scale.range(ue.option.domain);break;case U3.DIVERGING:case U3.SEQUENTIAL:ue.scale.interpolator(hoe(M.values));break}}if(M.values==="text"){var Ir;ue.scale.range((Ir=ue.option)===null||Ir===void 0?void 0:Ir.domain)}})):(M.type=VM.CONSTANT,M.defaultValues=J.map(function(ue,Ue){return ue.scale(M.names[Ue])})),M.scalers=J.map(function(ue){return{field:ue.field,func:ue.scale,option:ue.option}}),C.needRescale=!1}})}},{key:"parseFields",value:function(f){return Array.isArray(f)?f:vse(f)?f.split("*"):[f]}},{key:"createScale",value:function(f,g,d,C){var M,B,J=this.scaleOptions[g]&&((M=this.scaleOptions[g])===null||M===void 0?void 0:M.field)===f?this.scaleOptions[g]:this.scaleOptions[f],ue={field:f,scale:void 0,type:VM.VARIABLE,option:J};if(!C||!C.length)return J&&J.type?ue.scale=this.createDefaultScale(J):(ue.scale=LI([f]),ue.type=VM.CONSTANT),ue;var Ue=(B=C.find(function(Wo){return!kz(Wo[f])}))===null||B===void 0?void 0:B[f];if(this.isNumber(f)||kz(Ue)&&!J)ue.scale=LI([f]),ue.type=VM.CONSTANT;else{var it=J&&J.type||this.getDefaultType(Ue);d==="text"&&(it=U3.CAT),d===void 0&&(it=U3.IDENTITY);var Ir=this.createScaleConfig(it,f,J,C);ue.scale=this.createDefaultScale(Ir),ue.option=Ir}return ue}},{key:"getDefaultType",value:function(f){var g=U3.LINEAR;return typeof f=="string"&&(g=yse.test(f)?U3.TIME:U3.CAT),g}},{key:"createScaleConfig",value:function(f,g,d,C){var M={type:f},B=[];if(f===U3.QUANTILE){var J=new Map;C==null||C.forEach(function(it){J.set(it._id,it[g])}),B=Array.from(J.values())}else B=(C==null?void 0:C.map(function(it){return it[g]}))||[];if(d!=null&&d.domain)M.domain=d==null?void 0:d.domain;else if(f===U3.CAT||f===U3.IDENTITY)M.domain=BV(B);else if(f===U3.QUANTILE)M.domain=B;else if(f===U3.DIVERGING){var ue=(0,Q4.We)(B),Ue=(d==null?void 0:d.neutral)!==void 0?d==null?void 0:d.neutral:(ue[0]+ue[1])/2;M.domain=[ue[0],Ue,ue[1]]}else M.domain=(0,Q4.We)(B);return(0,An.Z)((0,An.Z)({},M),d)}},{key:"createDefaultScale",value:function(f){var g=f.type,d=f.domain,C=f.unknown,M=f.clamp,B=f.nice,J=_se[g]();return d&&J.domain&&J.domain(d),C&&J.unknown(C),M!==void 0&&J.clamp&&J.clamp(M),B!==void 0&&J.nice&&J.nice(B),J}}]),i}())||TN),M8,O8,R8=(M8=(0,Cg.b2)(),M8(O8=function(){function i(){(0,Or.Z)(this,i)}return(0,at.Z)(i,[{key:"apply",value:function(f){f.hooks.beforeRender.tap("LayerAnimateStylePlugin",function(){var g=f.animateStatus;g&&f.models.forEach(function(d){d.addUniforms((0,An.Z)({},f.layerModel.getAnimateUniforms()))})})}}]),i}())||O8),AN,gJ,Nz=(AN=(0,Cg.b2)(),AN(gJ=function(){function i(){(0,Or.Z)(this,i)}return(0,at.Z)(i,[{key:"apply",value:function(f){f.hooks.afterInit.tap("LayerMaskPlugin",function(){var g=f.getLayerConfig(),d=g.maskLayers,C=g.enableMask;if(!f.tileLayer&&d&&d.length>0){var M;(M=f.masks).push.apply(M,(0,Gd.Z)(d)),f.updateLayerConfig({mask:C})}})}}]),i}())||gJ),xse=function(){function i(v){var f=v.rendererService,g=v.layerService,d=v.parent;(0,Or.Z)(this,i),(0,ka.Z)(this,"tileResource",new Map),(0,ka.Z)(this,"layerTiles",[]),this.rendererService=f,this.layerService=g,this.parent=d}return(0,at.Z)(i,[{key:"tiles",get:function(){return this.layerTiles}},{key:"hasTile",value:function(f){return this.layerTiles.some(function(g){return g.key===f})}},{key:"addTile",value:function(f){this.layerTiles.push(f)}},{key:"getTile",value:function(f){return this.layerTiles.find(function(g){return g.key===f})}},{key:"getVisibleTileBylngLat",value:function(f){return this.layerTiles.find(function(g){return g.isLoaded&&g.visible&&g.lnglatInBounds(f)})}},{key:"removeTile",value:function(f){var g=this.layerTiles.findIndex(function(C){return C.key===f}),d=this.layerTiles.splice(g,1);d[0]&&d[0].destroy()}},{key:"updateTileVisible",value:function(f){var g=this.getTile(f.key);if(f.isVisible)if(f.parent){var d=this.isChildrenLoaded(f.parent);g==null||g.updateVisible(d)}else g==null||g.updateVisible(!0);else if(f.parent){var C=this.isChildrenLoaded(f.parent);g==null||g.updateVisible(!C)}else g==null||g.updateVisible(!1)}},{key:"isParentLoaded",value:function(f){var g=f.parent;if(!g)return!0;var d=this.getTile(g==null?void 0:g.key);return!!(d!=null&&d.isLoaded)}},{key:"isChildrenLoaded",value:function(f){var g=this,d=f==null?void 0:f.children;return d.length===0?!0:d.every(function(C){var M=g.getTile(C==null?void 0:C.key);return M?(M==null?void 0:M.isLoaded)===!0:!0})}},{key:"render",value:function(){var v=(0,y_.Z)(Dv().mark(function g(){var d=this,C,M;return Dv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return C=this.getRenderLayers(),M=C.map(function(){var ue=(0,y_.Z)(Dv().mark(function Ue(it){return Dv().wrap(function(Wo){for(;;)switch(Wo.prev=Wo.next){case 0:return Wo.next=2,d.layerService.renderTileLayer(it);case 2:case"end":return Wo.stop()}},Ue)}));return function(Ue){return ue.apply(this,arguments)}}()),J.next=4,Promise.all(M);case 4:case"end":return J.stop()}},g,this)}));function f(){return v.apply(this,arguments)}return f}()},{key:"getRenderLayers",value:function(){var f=this.layerTiles.filter(function(d){return d.visible&&d.isLoaded}),g=[];return f.map(function(d){return g.push.apply(g,(0,Gd.Z)(d.getLayers()))}),g}},{key:"getLayers",value:function(){var f=this.layerTiles.filter(function(d){return d.isLoaded}),g=[];return f.map(function(d){return g.push.apply(g,(0,Gd.Z)(d.getLayers()))}),g}},{key:"getTiles",value:function(){return this.layerTiles}},{key:"destroy",value:function(){this.layerTiles.forEach(function(f){return f.destroy()}),this.tileResource.clear()}}]),i}(),wse=l(35486),Cse=function(){function i(){(0,Or.Z)(this,i)}return(0,at.Z)(i,[{key:"getCombineFeature",value:function(f){var g=null,d=f[0];return f.map(function(C){var M=U2.polygon(C.coordinates);g===null?g=M:g=(0,wse.Z)(g,M)}),d&&(g.properties=(0,An.Z)({},d)),g}}]),i}(),DN="select",k8="active",mJ=function(){function i(v){var f=v.layerService,g=v.tileLayerService,d=v.parent;(0,Or.Z)(this,i),(0,ka.Z)(this,"tilePickID",new Map),this.layerService=f,this.tileLayerService=g,this.parent=d,this.tileSourceService=new Cse}return(0,at.Z)(i,[{key:"pickRender",value:function(f){var g=this.tileLayerService.getVisibleTileBylngLat(f.lngLat);if(g){var d=g.getMainLayer();d==null||d.layerPickService.pickRender(f)}}},{key:"pick",value:function(){var v=(0,y_.Z)(Dv().mark(function g(d,C){var M,B,J,ue;return Dv().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:if(M=this.parent.getContainer(),B=M.get(su.IPickingService),d.type!=="RasterLayer"){it.next=8;break}if(J=this.tileLayerService.getVisibleTileBylngLat(C.lngLat),!(J&&J.getMainLayer()!==void 0)){it.next=7;break}return ue=J.getMainLayer(),it.abrupt("return",ue.layerPickService.pickRasterLayer(ue,C,this.parent));case 7:return it.abrupt("return",!1);case 8:return this.pickRender(C),it.abrupt("return",B.pickFromPickingFBO(d,C));case 10:case"end":return it.stop()}},g,this)}));function f(g,d){return v.apply(this,arguments)}return f}()},{key:"selectFeature",value:function(f){var g=(0,_g.Z)(f,3),d=g[0],C=g[1],M=g[2],B=this.color2PickId(d,C,M);this.tilePickID.set(DN,B),this.updateHighLight(d,C,M,DN)}},{key:"highlightPickedFeature",value:function(f){var g=(0,_g.Z)(f,3),d=g[0],C=g[1],M=g[2],B=this.color2PickId(d,C,M);this.tilePickID.set(k8,B),this.updateHighLight(d,C,M,k8)}},{key:"updateHighLight",value:function(f,g,d,C){this.tileLayerService.tiles.map(function(M){var B=M.getMainLayer();switch(C){case DN:B==null||B.hooks.beforeSelect.call([f,g,d]);break;case k8:B==null||B.hooks.beforeHighlight.call([f,g,d]);break}})}},{key:"setPickState",value:function(){var f=this.tilePickID.get(DN),g=this.tilePickID.get(k8);if(f){var d=this.pickId2Color(f),C=(0,_g.Z)(d,3),M=C[0],B=C[1],J=C[2];this.updateHighLight(M,B,J,DN);return}if(g){var ue=this.pickId2Color(g),Ue=(0,_g.Z)(ue,3),it=Ue[0],Ir=Ue[1],Wo=Ue[2];this.updateHighLight(it,Ir,Wo,k8);return}}},{key:"color2PickId",value:function(f,g,d){return V0(new Uint8Array([f,g,d]))}},{key:"pickId2Color",value:function(f){return Av(f)}},{key:"getFeatureById",value:function(f){var g=this.tileLayerService.getTiles().filter(function(C){return C.visible}),d=[];return g.forEach(function(C){d.push.apply(d,(0,Gd.Z)(C.getFeatureById(f)))}),d}},{key:"pickRasterLayer",value:function(f,g,d){return!1}}]),i}();function vJ(i){return i==="PolygonLayer"?pN:i==="LineLayer"?MZ:uz}function ck(i){return["PolygonLayer","LineLayer"].indexOf(i)!==-1}function yJ(i){var v=Sse();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function Sse(){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(i){return!1}}var N8=function(i){(0,Wt.Z)(f,i);var v=yJ(f);function f(g,d){var C;return(0,Or.Z)(this,f),C=v.call(this),(0,ka.Z)((0,hv.Z)(C),"visible",!0),(0,ka.Z)((0,hv.Z)(C),"layers",[]),(0,ka.Z)((0,hv.Z)(C),"isLoaded",!1),(0,ka.Z)((0,hv.Z)(C),"tileMaskLayers",[]),C.parent=d,C.sourceTile=g,C.x=g.x,C.y=g.y,C.z=g.z,C.key="".concat(C.x,"_").concat(C.y,"_").concat(C.z),C}return(0,at.Z)(f,[{key:"getLayers",value:function(){return this.layers}},{key:"styleUpdate",value:function(){}},{key:"lnglatInBounds",value:function(d){var C=(0,_g.Z)(this.sourceTile.bounds,4),M=C[0],B=C[1],J=C[2],ue=C[3],Ue=d.lng,it=d.lat;return Ue>=M&&Ue<=J&&it>=B&&it<=ue}},{key:"getLayerOptions",value:function(){var d,C=this.parent.getLayerConfig();return(0,An.Z)((0,An.Z)({},C),{},{textAllowOverlap:!0,autoFit:!1,maskLayers:this.getMaskLayer(),tileMask:ck(this.parent.type),mask:C.mask||((d=C.maskLayers)===null||d===void 0?void 0:d.length)!==0&&C.enableMask})}},{key:"getMaskLayer",value:function(){var d=this,C=this.parent.getLayerConfig(),M=C.maskLayers,B=[];return M==null||M.forEach(function(J){if(!J.tileLayer)return B.push(J),J;var ue=J.tileLayer,Ue=ue.getTile(d.sourceTile.key),it=Ue==null?void 0:Ue.getLayers()[0];it&&B.push(it)}),B}},{key:"addTileMask",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J;return Dv().wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return M=new pN({name:"mask",visible:!0,enablePicking:!1}).source({type:"FeatureCollection",features:[this.sourceTile.bboxPolygon]},{parser:{type:"geojson",featureId:"id"}}).shape("fill").color("#0f0").style({opacity:.5}),B=TL(this.parent.sceneContainer),M.setContainer(B,this.parent.sceneContainer),Ue.next=5,M.init();case 5:return this.tileMask=M,J=this.getMainLayer(),J!==void 0&&(J.tileMask=M),Ue.abrupt("return",M);case 9:case"end":return Ue.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"addMask",value:function(){var g=(0,y_.Z)(Dv().mark(function C(M,B){var J;return Dv().wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return J=TL(this.parent.sceneContainer),B.setContainer(J,this.parent.sceneContainer),Ue.next=4,B.init();case 4:M.addMask(B),this.tileMaskLayers.push(B);case 6:case"end":return Ue.stop()}},C,this)}));function d(C,M){return g.apply(this,arguments)}return d}()},{key:"addLayer",value:function(){var g=(0,y_.Z)(Dv().mark(function C(M){var B;return Dv().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return M.isTileLayer=!0,B=TL(this.parent.sceneContainer),M.setContainer(B,this.parent.sceneContainer),this.layers.push(M),ue.next=6,M.init();case 6:case"end":return ue.stop()}},C,this)}));function d(C){return g.apply(this,arguments)}return d}()},{key:"updateVisible",value:function(d){this.visible=d,this.updateOptions("visible",d)}},{key:"updateOptions",value:function(d,C){this.layers.forEach(function(M){M.updateLayerConfig((0,ka.Z)({},d,C))})}},{key:"getMainLayer",value:function(){return this.layers[0]}},{key:"getFeatures",value:function(d){return[]}},{key:"getFeatureById",value:function(d){return[]}},{key:"destroy",value:function(){var d;(d=this.tileMask)===null||d===void 0||d.destroy(),this.layers.forEach(function(C){return C.destroy()})}}]),f}(N2.EventEmitter);function Ese(i){var v=Fz();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function Fz(){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(i){return!1}}var Tse=function(i){(0,Wt.Z)(f,i);var v=Ese(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"initTileLayer",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J,ue;return Dv().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return M=this.getSourceOption(),B=M.data.features[0].properties,J=new MZ().source(M.data,M.options).size(1).shape("line").color("red"),ue=new uz({minZoom:this.z-1,maxZoom:this.z+1,textAllowOverlap:!0}).source([B],{parser:{type:"json",x:"x",y:"y"}}).size(20).color("red").shape(this.key).style({stroke:"#fff",strokeWidth:2}),it.next=6,this.addLayer(J);case 6:return it.next=8,this.addLayer(ue);case 8:this.isLoaded=!0;case 9:case"end":return it.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"getSourceOption",value:function(){var d=this.parent.getSource(),C=this.sourceTile.data.layers.testTile.features;return{data:{type:"FeatureCollection",features:C},options:{parser:{type:"geojson"},transforms:d.transforms}}}}]),f}(N8);function Ase(i){var v=BH();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}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(i){return!1}}var _J=function(i){(0,Wt.Z)(f,i);var v=Ase(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"initTileLayer",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J,ue;return Dv().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return M=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),J=this.getSourceOption(),ue=new oz((0,An.Z)({},B)).source(J.data,J.options),M&&Object.keys(M).forEach(function(Ir){var Wo,Ca,eu=Ir;ue[eu]((Wo=M[eu])===null||Wo===void 0?void 0:Wo.field,(Ca=M[eu])===null||Ca===void 0?void 0:Ca.values)}),it.next=7,this.addLayer(ue);case 7:this.isLoaded=!0;case 8:case"end":return it.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"getSourceOption",value:function(){var d=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:d.transforms}}}}]),f}(N8);function Dse(i){var v=Ise();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function Ise(){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(i){return!1}}var Pse=function(i){(0,Wt.Z)(f,i);var v=Dse(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"initTileLayer",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J,ue;return Dv().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return M=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),J=this.getSourceOption(),ue=new iH((0,An.Z)({},B)).source(J.data,J.options),M&&Object.keys(M).forEach(function(Ir){var Wo,Ca,eu=Ir;ue[eu]((Wo=M[eu])===null||Wo===void 0?void 0:Wo.field,(Ca=M[eu])===null||Ca===void 0?void 0:Ca.values)}),it.next=7,this.addLayer(ue);case 7:this.isLoaded=!0;case 8:case"end":return it.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"getFeatures",value:function(d){if(!d)return[];var C=this.sourceTile.data;return C.getTileData(d)}},{key:"getSourceOption",value:function(){var d=this.parent.getSource(),C=this.parent.getLayerConfig(),M=C.sourceLayer,B=C.featureId,J=this.getFeatures(M);return{data:{type:"FeatureCollection",features:J},options:{parser:{type:"geojson",featureId:B},transforms:d.transforms}}}}]),f}(N8),Lse=["rasterData"];function zV(i){var v=zH();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function zH(){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(i){return!1}}var Mse=function(i){(0,Wt.Z)(f,i);var v=zV(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"initTileLayer",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J,ue;return Dv().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return M=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),J=this.getSourceOption(),ue=new mM((0,An.Z)({},B)).source(J.data,J.options),M&&Object.keys(M).forEach(function(Ir){var Wo,Ca,eu=Ir;ue[eu]((Wo=M[eu])===null||Wo===void 0?void 0:Wo.field,(Ca=M[eu])===null||Ca===void 0?void 0:Ca.values)}),it.next=7,this.addLayer(ue);case 7:this.isLoaded=!0;case 8:case"end":return it.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"getSourceOption",value:function(){var d=this.parent.getSource(),C=this.sourceTile.data.data,M=C.rasterData,B=(0,q3.Z)(C,Lse);return{data:M,options:{parser:(0,An.Z)({type:"rasterRgb",extent:this.sourceTile.bounds},B),transforms:d.transforms}}}}]),f}(N8);function Ose(i){var v=$V();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function $V(){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(i){return!1}}var Rse=function(i){(0,Wt.Z)(f,i);var v=Ose(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"initTileLayer",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J,ue;return Dv().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return M=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),J=this.getSourceOption(),ue=new mM((0,An.Z)({},B)).source(J.data,J.options),M&&Object.keys(M).forEach(function(Ir){var Wo,Ca,eu=Ir;ue[eu]((Wo=M[eu])===null||Wo===void 0?void 0:Wo.field,(Ca=M[eu])===null||Ca===void 0?void 0:Ca.values)}),it.next=7,this.addLayer(ue);case 7:this.isLoaded=!0;case 8:case"end":return it.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"getSourceOption",value:function(){var d=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:d.transforms}}}}]),f}(N8),kse=["rasterData"];function Nse(i){var v=UV();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function UV(){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(i){return!1}}var Fse={positions:[0,1],colors:["#000","#fff"]},Bse=function(i){(0,Wt.Z)(f,i);var v=Nse(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"initTileLayer",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J,ue,Ue,it,Ir;return Dv().wrap(function(Ca){for(;;)switch(Ca.prev=Ca.next){case 0:return M=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),J=this.getSourceOption(),ue=this.getLayerOptions(),Ue=ue.rampColors,it=ue.domain,this.colorTexture=this.parent.textureService.getColorTexture(Ue,it),Ir=new mM((0,An.Z)((0,An.Z)({},B),{},{colorTexture:this.colorTexture})).source(J.data,J.options),M&&Object.keys(M).forEach(function(eu){var Bd,r0,N0=eu;Ir[N0]((Bd=M[N0])===null||Bd===void 0?void 0:Bd.field,(r0=M[N0])===null||r0===void 0?void 0:r0.values)}),Ca.next=9,this.addLayer(Ir);case 9:this.isLoaded=!0;case 10:case"end":return Ca.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"getSourceOption",value:function(){var d=this.parent.getSource(),C=this.sourceTile.data.data,M=C.rasterData,B=(0,q3.Z)(C,kse);return{data:M,options:{parser:(0,An.Z)({type:"raster",extent:this.sourceTile.bounds},B),transforms:d.transforms}}}},{key:"styleUpdate",value:function(){for(var d=this,C=arguments.length,M=new Array(C),B=0;B=2&&!ue&&(f.parent.updateLayerConfig({visible:!0}),f.layerService.reRender())}f.lastViewStates&&f.lastViewStates.zoom===B&&f.lastViewStates.latLonBounds.toString()===M.toString()||(f.lastViewStates={zoom:B,latLonBounds:M},(d=f.tilesetManager)===null||d===void 0||d.throttleUpdate(B,M))}}),(0,ka.Z)(this,"viewchange",OL(this.mapchange,24)),this.parent=v;var g=this.parent.getContainer();this.rendererService=g.get(su.IRendererService),this.layerService=g.get(su.ILayerService),this.mapService=g.get(su.IMapService),this.pickingService=g.get(su.IPickingService),this.tileLayerService=new xse({rendererService:this.rendererService,layerService:this.layerService,parent:v}),this.tilePickService=new mJ({tileLayerService:this.tileLayerService,layerService:this.layerService,parent:v}),this.parent.setLayerPickService(this.tilePickService),this.proxy(v),this.initTileSetManager()}return(0,at.Z)(i,[{key:"initTileSetManager",value:function(){var f,g=this.parent.getSource();if(this.tilesetManager=g.tileset,this.initedTileset||(this.bindTilesetEvent(),this.initedTileset=!0),this.parent.isVisible()!==!1){var d=this.getCurrentView(),C=d.latLonBounds,M=d.zoom;(f=this.tilesetManager)===null||f===void 0||f.update(M,C)}}},{key:"getCurrentView",value:function(){var f=this.mapService.getBounds(),g=[f[0][0],f[0][1],f[1][0],f[1][1]],d=this.mapService.getZoom();return{latLonBounds:g,zoom:d}}},{key:"bindTilesetEvent",value:function(){var f=this;this.tilesetManager.on("tile-loaded",function(g){}),this.tilesetManager.on("tile-unload",function(g){f.tileUnLoad(g)}),this.tilesetManager.on("tile-error",function(g,d){f.tileError(g)}),this.tilesetManager.on("tile-update",function(){f.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(f){return this.tileLayerService.getTile(f)}},{key:"tileLoaded",value:function(f){}},{key:"tileError",value:function(f){console.warn("error:",f)}},{key:"destroy",value:function(){var f;this.mapService.off("zoomend",this.mapchange),this.mapService.off("moveend",this.viewchange),(f=this.tilesetManager)===null||f===void 0||f.destroy(),this.tileLayerService.destroy()}},{key:"reload",value:function(){var f;this.tilesetManager.clear();var g=this.getCurrentView(),d=g.latLonBounds,C=g.zoom;(f=this.tilesetManager)===null||f===void 0||f.update(C,d)}},{key:"tileUnLoad",value:function(f){this.tileLayerService.removeTile(f.key)}},{key:"tileUpdate",value:function(){var v=(0,y_.Z)(Dv().mark(function g(){var d=this,C,M,B;return Dv().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(this.tilesetManager){ue.next=2;break}return ue.abrupt("return");case 2:return C=this.parent.getMinZoom(),M=this.parent.getMaxZoom(),B=this.tilesetManager.tiles.filter(function(Ue){return Ue.isLoaded}).filter(function(Ue){return Ue.isVisibleChange}).filter(function(Ue){return Ue.data}).filter(function(Ue){return Ue.z>=C&&Ue.z0&&arguments[0]!==void 0?arguments[0]:"vertical",C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;this.container.classList.remove("horizontal","vertical"),this.container.classList.add(d),d==="horizontal"?(this.container.style.top=C*100+"%",this.container.style.left=""):(this.container.style.left=C*100+"%",this.container.style.top="")}},{key:"setLayers",value:function(d,C){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,B=d.filter(function(ue){return C.includes(ue)===!1}),J=C.filter(function(ue){return d.includes(ue)===!1});this.addMaskToLayers(B,M),this.removeMaskFromLayers(J)}},{key:"addMaskToLayers",value:function(d,C){var M=this;d.forEach(function(B){B.updateLayerConfig({maskInside:!C}),B.addMask(M.maskLayer)})}},{key:"removeMaskFromLayers",value:function(d){var C=this;d.forEach(function(M){M.updateLayerConfig({maskInside:!0}),M.removeMask(C.maskLayer)})}},{key:"getMaskGeoData",value:function(){var d=this.controlOption,C=d.ratio,M=C===void 0?.5:C,B=d.orientation,J=B===void 0?"vertical":B,ue=J==="vertical",Ue=this.getBounds(),it=(0,_g.Z)(Ue,2),Ir=it[0],Wo=it[1],Ca=(0,_g.Z)(Ir,2),eu=Ca[0],Bd=Ca[1],r0=(0,_g.Z)(Wo,2),N0=r0[0],fv=r0[1],v1;if(ue){var _y=eu+(N0-eu)*M;v1=[[eu,fv],[_y,fv],[_y,Bd],Ir,[eu,fv]]}else{var Q1=this.getContainerSize(),iy=this.mapsService.containerToLngLat([Q1[0],Q1[1]*M]),Uy=iy.lat;v1=[[eu,fv],Wo,[N0,Uy],[eu,Uy],[eu,fv]]}var w_={type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[v1]}}]};return w_}},{key:"getContainerDOMRect",value:function(){var d,C=(d=this.mapsService.getContainer())===null||d===void 0?void 0:d.getBoundingClientRect();return C}},{key:"getContainerSize",value:function(){var d=this.mapsService.getSize();return d}},{key:"getBounds",value:function(){var d=this.mapsService.getBounds();return d}},{key:"addLayer",value:function(d){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,M=Array.isArray(d)?d:[d];if(C){var B,J=(B=this.controlOption.rightLayers).concat.apply(B,(0,Gd.Z)(M));this.setOptions({rightLayers:J})}else{var ue,Ue=(ue=this.controlOption.layers).concat.apply(ue,(0,Gd.Z)(M));this.setOptions({layers:Ue})}}},{key:"removeLayer",value:function(d){var C=Array.isArray(d)?d:[d],M=this.controlOption.layers.filter(function(J){return C.includes(J)}),B=this.controlOption.rightLayers.filter(function(J){return C.includes(J)});this.setOptions({layers:M,rightLayers:B})}},{key:"removeLayers",value:function(){this.setOptions({layers:[],rightLayers:[]})}}]),f}(p1);function Kse(i){var v=Xse();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function Xse(){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(i){return!1}}var Yse=function(i){(0,Wt.Z)(f,i);var v=Kse(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;Mg.mapsService.getMinZoom()&&g.mapsService.zoomOut()}),(0,ka.Z)((0,hv.Z)(g),"updateDisabled",function(){var B=g.mapsService;g.zoomInButton.removeAttribute("disabled"),g.zoomOutButton.removeAttribute("disabled"),(g.disabled||B.getZoom()<=B.getMinZoom())&&g.zoomOutButton.setAttribute("disabled","true"),g.controlOption.showZoom&&g.zoomNumDiv&&(g.zoomNumDiv.innerText=String(Math.floor(B.getZoom()))),(g.disabled||B.getZoom()>=B.getMaxZoom())&&g.zoomInButton.setAttribute("disabled","true")}),g}return(0,at.Z)(f,[{key:"getDefault",value:function(d){return(0,An.Z)((0,An.Z)({},OS((0,si.Z)(f.prototype),"getDefault",this).call(this,d)),{},{position:Yy.BOTTOMRIGHT,name:"zoom",zoomInText:fS("l7-icon-enlarge"),zoomInTitle:"Zoom in",zoomOutText:fS("l7-icon-narrow"),zoomOutTitle:"Zoom out",showZoom:!1})}},{key:"setOptions",value:function(d){OS((0,si.Z)(f.prototype),"setOptions",this).call(this,d),this.checkUpdateOption(d,["zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","showZoom"])&&this.resetButtonGroup(this.container)}},{key:"onAdd",value:function(){var d=Fv("div","l7-control-zoom");return this.resetButtonGroup(d),this.mapsService.on("zoomend",this.updateDisabled),this.mapsService.on("zoomchange",this.updateDisabled),d}},{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(d){zy(d),this.zoomInButton=this.createButton(this.controlOption.zoomInText,this.controlOption.zoomInTitle,"l7-button-control",d,this.zoomIn),this.controlOption.showZoom&&(this.zoomNumDiv=this.createButton("0","","l7-button-control l7-control-zoom__number",d)),this.zoomOutButton=this.createButton(this.controlOption.zoomOutText,this.controlOption.zoomOutTitle,"l7-button-control",d,this.zoomOut),this.updateDisabled()}},{key:"createButton",value:function(d,C,M,B,J){var ue=Fv("button",M,B);return typeof d=="string"?ue.innerHTML=d:ue.append(d),ue.title=C,J&&ue.addEventListener("click",J),ue}}]),f}(p1);function bB(i){var v=GV();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function GV(){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(i){return!1}}var jJ=function(i){(0,Wt.Z)(f,i);var v=bB(f);function f(g){var d;(0,Or.Z)(this,f),d=v.call(this),(0,ka.Z)((0,hv.Z)(d),"isShow",!0),(0,ka.Z)((0,hv.Z)(d),"onMouseMove",function(M){var B,J=d.mapsService.getMapContainer(),ue=(B=J==null?void 0:J.getBoundingClientRect())!==null&&B!==void 0?B:{},Ue=ue.left,it=Ue===void 0?0:Ue,Ir=ue.top,Wo=Ir===void 0?0:Ir;d.setPopupPosition(M.clientX-it,M.clientY-Wo)}),(0,ka.Z)((0,hv.Z)(d),"updateLngLatPosition",function(){if(!(!d.mapsService||d.popupOption.followCursor)){var M=d.lngLat,B=M.lng,J=M.lat,ue=d.mapsService.lngLatToContainer([B,J]),Ue=ue.x,it=ue.y;d.setPopupPosition(Ue,it)}}),(0,ka.Z)((0,hv.Z)(d),"updateLngLatPositionWhenZoom",function(M){if(!(!d.mapsService||d.popupOption.followCursor)){var B=d.lngLat,J=B.lng,ue=B.lat,Ue=d.mapsService.lngLatToContainer([J,ue]),it=Ue.x,Ir=Ue.y,Wo=M.map,Ca=Wo.getSize();Ca.x=Ca.x/2,Ca.y=Ca.y/2;var eu=M.center,Bd=M.zoom,r0=Wo.DE(d.lngLat,Bd,eu);r0.x=Math.round(r0.x),r0.y=Math.round(r0.y),d.setPopupPosition(r0.x,r0.y,!0)}}),(0,ka.Z)((0,hv.Z)(d),"onKeyDown",function(M){M.keyCode===27&&d.remove()}),(0,ka.Z)((0,hv.Z)(d),"onCloseButtonClick",function(M){M.stopPropagation&&M.stopPropagation(),d.hide()}),(0,ka.Z)((0,hv.Z)(d),"updatePosition",function(M){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,J=!!d.lngLat,ue=d.popupOption,Ue=ue.className,it=ue.style,Ir=ue.maxWidth,Wo=ue.anchor,Ca=ue.stopPropagation;if(!(!d.mapsService||!J||!d.content)){var eu=d.mapsService.getMarkerContainer();if(!d.container&&eu&&(d.container=Fv("div","l7-popup ".concat(Ue!=null?Ue:""," ").concat(d.isShow?"":"l7-popup-hide"),eu),it&&d.container.setAttribute("style",it),d.tip=Fv("div","l7-popup-tip",d.container),d.container.appendChild(d.content),Ca&&["mousemove","mousedown","mouseup","click","dblclick"].forEach(function(N0){d.container.addEventListener(N0,function(fv){fv.stopPropagation()})}),d.container.style.whiteSpace="nowrap"),B?d.updateLngLatPositionWhenZoom(M):d.updateLngLatPosition(),ax(d.container,"".concat(Gg[Wo])),cu(d.container,Wo,"popup"),Ir){var Bd=d.container.getBoundingClientRect(),r0=Bd.width;r0>parseFloat(Ir)&&(d.container.style.width=Ir)}else d.container.style.removeProperty("width")}}),(0,ka.Z)((0,hv.Z)(d),"updateWhenZoom",function(M){d.updatePosition(M,!0)}),(0,ka.Z)((0,hv.Z)(d),"update",function(){d.updatePosition(null,!1)}),d.popupOption=(0,An.Z)((0,An.Z)({},d.getDefault(g!=null?g:{})),g);var C=d.popupOption.lngLat;return C&&(d.lngLat=C),d}return(0,at.Z)(f,[{key:"lngLat",get:function(){var d;return(d=this.popupOption.lngLat)!==null&&d!==void 0?d:{lng:0,lat:0}},set:function(d){this.popupOption.lngLat=d}},{key:"getIsShow",value:function(){return this.isShow}},{key:"addTo",value:function(d){this.mapsService=d.get(su.IMapService),this.sceneService=d.get(su.ISceneService),this.layerService=d.get(su.ILayerService),this.mapsService.on("zoomchange",this.updateWhenZoom),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update),this.scene=d,this.update(),this.updateCloseOnClick(),this.updateCloseOnEsc(),this.updateFollowCursor();var C=this.popupOption,M=C.html,B=C.text,J=C.title;return M?this.setHTML(M):B&&this.setText(B),J&&this.setTitle(J),this.emit("open"),this}},{key:"remove",value:function(){if(this!==null&&this!==void 0&&this.isOpen())return this.content&&x1(this.content),this.container&&(x1(this.container),delete this.container),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.off("zoomchange",this.updateWhenZoom),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(d){return this.show(),this.popupOption=(0,An.Z)((0,An.Z)({},this.popupOption),d),this.checkUpdateOption(d,["html","text","title","closeButton","closeButtonOffsets","maxWidth","anchor","stopPropagation","className","style","lngLat","offsets"])&&(this.container&&(x1(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(d,["closeOnEsc"])&&this.updateCloseOnEsc(),this.checkUpdateOption(d,["closeOnClick"])&&this.updateCloseOnClick(),this.checkUpdateOption(d,["followCursor"])&&this.updateFollowCursor(),this.checkUpdateOption(d,["html"])&&d.html?this.setHTML(d.html):this.checkUpdateOption(d,["text"])&&d.text&&this.setText(d.text),this.checkUpdateOption(d,["lngLat"])&&d.lngLat&&this.setLnglat(d.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&&ox(this.container,"l7-popup-hide"),this.isShow=!0,this.emit("show"),this}},{key:"hide",value:function(){if(this.isShow)return this.container&&ey(this.container,"l7-popup-hide"),this.isShow=!1,this.emit("hide"),this}},{key:"setHTML",value:function(d){return this.popupOption.html=d,this.setDOMContent(d)}},{key:"setText",value:function(d){return this.popupOption.text=d,this.setDOMContent(window.document.createTextNode(d))}},{key:"setTitle",value:function(d){this.show(),this.popupOption.title=d,d?(this.contentTitle||(this.contentTitle=Fv("div","l7-popup-content__title"),this.content.firstChild?this.content.insertBefore(this.contentTitle,this.content.firstChild):this.content.append(this.contentTitle)),zy(this.contentTitle),E_(this.contentTitle,d)):this.contentTitle&&(x1(this.contentTitle),this.contentTitle=void 0)}},{key:"panToPopup",value:function(){var d=this.lngLat,C=d.lng,M=d.lat;return this.popupOption.autoPan&&this.mapsService.panTo([C,M]),this}},{key:"setLngLat",value:function(d){return this.setLnglat(d)}},{key:"setLnglat",value:function(d){var C=this;return this.show(),this.lngLat=d,Array.isArray(d)&&(this.lngLat={lng:d[0],lat:d[1]}),this.mapsService&&(this.mapsService.off("zoonanim",this.updateWhenZoom),this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.on("zoonanim",this.updateWhenZoom),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.update(),this.popupOption.autoPan&&setTimeout(function(){C.panToPopup()},0),this}},{key:"getLnglat",value:function(){return this.lngLat}},{key:"setMaxWidth",value:function(d){return this.popupOption.maxWidth=d,this.update(),this}},{key:"isOpen",value:function(){return!!this.mapsService}},{key:"getDefault",value:function(d){return{closeButton:!0,closeOnClick:!1,maxWidth:"240px",offsets:[0,0],anchor:cv.BOTTOM,stopPropagation:!0,autoPan:!1,autoClose:!0,closeOnEsc:!1,followCursor:!1}}},{key:"setDOMContent",value:function(d){return this.show(),this.createContent(),E_(this.contentPanel,d),this.update(),this}},{key:"updateCloseOnClick",value:function(d){var C=this,M=this.mapsService;M&&(M==null||M.off("click",this.onCloseButtonClick),this.popupOption.closeOnClick&&!d&&requestAnimationFrame(function(){M==null||M.on("click",C.onCloseButtonClick)}))}},{key:"updateCloseOnEsc",value:function(d){window.removeEventListener("keydown",this.onKeyDown),this.popupOption.closeOnEsc&&!d&&window.addEventListener("keydown",this.onKeyDown)}},{key:"updateFollowCursor",value:function(d){var C,M=(C=this.mapsService)===null||C===void 0?void 0:C.getContainer();M&&(M==null||M.removeEventListener("mousemove",this.onMouseMove),this.popupOption.followCursor&&!d&&(M==null||M.addEventListener("mousemove",this.onMouseMove)))}},{key:"createContent",value:function(){var d=this;if(this.content&&x1(this.content),this.contentTitle=void 0,this.content=Fv("div","l7-popup-content",this.container),this.setTitle(this.popupOption.title),this.popupOption.closeButton){var C=fS("l7-icon-guanbi");ey(C,"l7-popup-close-button"),this.content.appendChild(C),this.popupOption.closeButtonOffsets&&(C.style.right=this.popupOption.closeButtonOffsets[0]+"px",C.style.top=this.popupOption.closeButtonOffsets[1]+"px"),C.setAttribute("aria-label","Close popup"),C.addEventListener("click",function(){d.hide()}),C.addEventListener("pointerup",function(M){M.stopPropagation()}),C.addEventListener("pointerdown",function(M){M.stopPropagation()}),this.closeButton=C}else this.closeButton=void 0;this.contentPanel=Fv("div","l7-popup-content__panel",this.content)}},{key:"setPopupPosition",value:function(d,C){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.container){var B=this.popupOption.offsets;this.container.style.left=d+B[0]+"px",this.container.style.top=C-B[1]+"px",M?this.container.style.transition="left 0.25s cubic-bezier(0,0,0.25,1), top 0.25s cubic-bezier(0,0,0.25,1)":this.container.style.transition=""}}},{key:"checkUpdateOption",value:function(d,C){return C.some(function(M){return M in d})}}]),f}(N2.EventEmitter);function qse(i){var v=KV();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function KV(){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(i){return!1}}var WJ=e1.get,HH=function(i){(0,Wt.Z)(f,i);var v=qse(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;M 0.0) { // \u53D6\u6D88\u4E09\u5143\u8868\u8FBE\u5F0F\uFF0C\u589E\u5F3A\u5065\u58EE\u6027 - lightWeight = calc_lighting(pos); - } - v_lightWeight = lightWeight; - // \u8BBE\u7F6E\u5706\u67F1\u7684\u5E95\u8272 - if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 - v_color = mix(u_sourceColor, u_targetColor, barLinearZ); - v_color.rgb *= lightWeight; - } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 - v_color = a_Color; - } - v_color.a *= u_opacity; - - - // \u5728\u5730\u7403\u6A21\u5F0F\u4E0B\uFF0C\u5C06\u539F\u672C\u5782\u76F4\u4E8E xy \u5E73\u9762\u7684\u5706\u67F1\u8C03\u6574\u59FF\u6001\u5230\u9002\u5E94\u5706\u7684\u89D2\u5EA6 - //\u65CB\u8F6C\u77E9\u9635mx\uFF0C\u521B\u5EFA\u7ED5x\u8F74\u65CB\u8F6C\u77E9\u9635 - float r = sqrt(a_Pos.z*a_Pos.z + a_Pos.x*a_Pos.x); - float xRadian = getXRadian(a_Pos.y, r); - float xcos = cos(xRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u4F59\u5F26\u503C - float xsin = sin(xRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u6B63\u5F26\u503C - mat4 mx = mat4( - 1,0,0,0, - 0,xcos,-xsin,0, - 0,xsin,xcos,0, - 0,0,0,1); - - //\u65CB\u8F6C\u77E9\u9635my\uFF0C\u521B\u5EFA\u7ED5y\u8F74\u65CB\u8F6C\u77E9\u9635 - float yRadian = getYRadian(a_Pos.x, a_Pos.z); - float ycos = cos(yRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u4F59\u5F26\u503C - float ysin = sin(yRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u6B63\u5F26\u503C - mat4 my = mat4( - ycos,0,-ysin,0, - 0,1,0,0, - ysin,0,ycos,0, - 0,0,0,1); - - gl_Position = u_ViewProjectionMatrix * vec4(( my * mx * vec4(a_Position * a_Size, 1.0)).xyz + a_Pos, 1.0); - - - setPickingColor(a_PickingColor); +.l7-marker-cluster { + width: 40px; + height: 40px; + background-color: rgba(181, 226, 140, 0.6); + background-clip: padding-box; + border-radius: 20px; } -`,Vj=fs.isNumber,jj=function(o){(0,lt.Z)(l,o);var d=O7(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 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; -uniform float u_opacity : 1; -uniform float u_stroke_opacity : 1; -uniform float u_stroke_width : 2; - -varying vec4 v_data; -varying vec4 v_color; -varying float v_radius; - -#pragma include "sdf_2d" -#pragma include "picking" - - -void main() { - int shape = int(floor(v_data.w + 0.5)); - - vec4 strokeColor = textrueStroke == vec4(0) ? v_color : textrueStroke; - - lowp float antialiasblur = v_data.z; - float r = v_radius / (v_radius + strokeWidth); - - float outer_df; - float inner_df; - // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica' - if (shape == 0) { - outer_df = sdCircle(v_data.xy, 1.0); - inner_df = sdCircle(v_data.xy, r); - } else if (shape == 1) { - outer_df = sdEquilateralTriangle(1.1 * v_data.xy); - inner_df = sdEquilateralTriangle(1.1 / r * v_data.xy); - } else if (shape == 2) { - outer_df = sdBox(v_data.xy, vec2(1.)); - inner_df = sdBox(v_data.xy, vec2(r)); - } else if (shape == 3) { - outer_df = sdPentagon(v_data.xy, 0.8); - inner_df = sdPentagon(v_data.xy, r * 0.8); - } else if (shape == 4) { - outer_df = sdHexagon(v_data.xy, 0.8); - inner_df = sdHexagon(v_data.xy, r * 0.8); - } else if (shape == 5) { - outer_df = sdOctogon(v_data.xy, 1.0); - inner_df = sdOctogon(v_data.xy, r); - } else if (shape == 6) { - outer_df = sdHexagram(v_data.xy, 0.52); - inner_df = sdHexagram(v_data.xy, r * 0.52); - } else if (shape == 7) { - outer_df = sdRhombus(v_data.xy, vec2(1.0)); - inner_df = sdRhombus(v_data.xy, vec2(r)); - } else if (shape == 8) { - outer_df = sdVesica(v_data.xy, 1.1, 0.8); - inner_df = sdVesica(v_data.xy, r * 1.1, r * 0.8); - } - - if(outer_df > antialiasblur + 0.018) discard; - - float opacity_t = smoothstep(0.0, antialiasblur, outer_df); - - float color_t = strokeWidth < 0.01 ? 0.0 : smoothstep( - antialiasblur, - 0.0, - inner_df - ); - - if(strokeWidth < 0.01) { - gl_FragColor = vec4(v_color.rgb, v_color.a * u_opacity); - } else { - gl_FragColor = mix(vec4(v_color.rgb, v_color.a * u_opacity), u_stroke_color * u_stroke_opacity, color_t); - } - - if(u_additive > 0.0) { - gl_FragColor *= opacity_t; - gl_FragColor = filterColorAlpha(gl_FragColor, gl_FragColor.a); - } else { - gl_FragColor.a *= opacity_t; - gl_FragColor = filterColor(gl_FragColor); - } +.l7-marker-cluster div { + width: 30px; + height: 30px; + margin-top: 5px; + margin-left: 5px; + font: 12px 'Helvetica Neue', Arial, Helvetica, sans-serif; + text-align: center; + background-color: rgba(110, 204, 57, 0.6); + border-radius: 15px; } -`,mD=`attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Extrude; -attribute float a_Size; -attribute float a_Shape; -uniform mat4 u_ModelMatrix; - - -varying vec4 v_data; -varying vec4 v_color; -varying float v_radius; - -uniform float u_opacity : 1; -uniform float u_stroke_opacity : 1; -uniform float u_stroke_width : 2; -uniform vec4 u_stroke_color : [0.0, 0.0, 0.0, 0.0]; -uniform vec2 u_offsets; - -uniform float u_blur : 0.0; - -#pragma include "projection" -#pragma include "picking" - - -void main() { - vec3 extrude = a_Extrude; - float shape_type = a_Shape; - /* - * setPickingSize \u8BBE\u7F6E\u62FE\u53D6\u5927\u5C0F - */ - float newSize = setPickingSize(a_Size); - // float newSize = setPickingSize(a_Size) * 0.00001038445708445579; - - // unpack color(vec2) - v_color = a_Color; - - // radius(16-bit) - v_radius = newSize; - - // anti-alias - // float antialiased_blur = -max(u_blur, antialiasblur); - float antialiasblur = -max(2.0 / u_DevicePixelRatio / newSize, u_blur); - - // TODP: /abs(extrude.x) \u662F\u4E3A\u4E86\u517C\u5BB9\u5730\u7403\u6A21\u5F0F - v_data = vec4(extrude.x/abs(extrude.x), extrude.y/abs(extrude.y), antialiasblur,shape_type); - - - gl_Position = u_ViewProjectionMatrix * vec4(a_Position + extrude * newSize * 0.1 + u_offsets, 1.0); - - setPickingColor(a_PickingColor); +.l7-marker-cluster span { + line-height: 30px; } -`,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; -in float v_lightWeight; -out vec4 outputColor; - - -layout(std140) uniform commonUniforms { - float u_pickLight; - float u_heightfixed; - float u_r; - float u_linearColor; - vec4 u_sourceColor; - vec4 u_targetColor; - float u_opacitylinear; - float u_opacitylinear_dir; - float u_lightEnable; -}; - -#pragma include "picking" - -void main() { - - outputColor = v_color; - // \u5F00\u542F\u900F\u660E\u5EA6\u6E10\u53D8 - // picking - if(u_pickLight > 0.0) { - outputColor = filterColorAlpha(outputColor, v_lightWeight); - } else { - outputColor = filterColor(outputColor); - } +.l7-touch .l7-control-attribution, +.l7-touch .l7-control-layers, +.l7-touch .l7-bar { + -webkit-box-shadow: none; + box-shadow: none; } -`,Hj=`#define pi 3.1415926535 -#define ambientRatio 0.5 -#define diffuseRatio 0.3 -#define specularRatio 0.2 - -layout(location = 0) in vec3 a_Position; -layout(location = 1) in vec4 a_Color; -layout(location = 9) in vec3 a_Size; -layout(location = 11) in vec3 a_Extrude; -layout(location = 13) in vec3 a_Normal; - -layout(std140) uniform commonUniforms { - float u_pickLight; - float u_heightfixed; - float u_r; - float u_linearColor; - vec4 u_sourceColor; - vec4 u_targetColor; - float u_opacitylinear; - float u_opacitylinear_dir; - float u_lightEnable; -}; -out vec4 v_color; -out float v_lightWeight; -out float v_barLinearZ; - -#pragma include "projection" -#pragma include "light" -#pragma include "picking" - -float getYRadian(float x, float z) { - if(x > 0.0 && z > 0.0) { - return atan(x/z); - } else if(x > 0.0 && z <= 0.0){ - return atan(-z/x) + pi/2.0; - } else if(x <= 0.0 && z <= 0.0) { - return pi + atan(x/z); //atan(x/z) + - } else { - return atan(z/-x) + pi*3.0/2.0; - } +.l7-touch .l7-control-layers, +.l7-touch .l7-bar { + background-clip: padding-box; + border: 2px solid rgba(0, 0, 0, 0.2); } - -float getXRadian(float y, float r) { - return atan(y/r); +.mapboxgl-ctrl-logo, +.amap-logo { + display: none !important; } - -void main() { - - - vec3 size = a_Size * a_Position; - - vec3 offset = size; // \u63A7\u5236\u5706\u67F1\u4F53\u7684\u5927\u5C0F - \u4ECE\u6807\u51C6\u5355\u4F4D\u5706\u67F1\u4F53\u8FDB\u884C\u504F\u79FB - - if(u_heightfixed < 1.0) { // \u5706\u67F1\u4F53\u4E0D\u56FA\u5B9A\u9AD8\u5EA6 - - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { - // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 - offset = offset * pow(2.0, (19.0 - u_Zoom)); - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 - offset = offset * pow(2.0, (19.0 - 3.0 - u_Zoom)); - } - } else {// \u5706\u67F1\u4F53\u56FA\u5B9A\u9AD8\u5EA6 \uFF08 \u5904\u7406 mapbox \uFF09 - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - offset *= 4.0/pow(2.0, 21.0 - u_Zoom); - } - } - - - vec4 project_pos = project_position(vec4(a_Extrude.xy, 0., 1.0)); - - // u_r \u63A7\u5236\u5706\u67F1\u7684\u751F\u957F - vec4 pos = vec4(project_pos.xy + offset.xy, offset.z * u_r, 1.0); - - // // \u5706\u67F1\u5149\u7167\u6548\u679C - float lightWeight = 1.0; - - if(u_lightEnable > 0.0) { // \u53D6\u6D88\u4E09\u5143\u8868\u8FBE\u5F0F\uFF0C\u589E\u5F3A\u5065\u58EE\u6027 - lightWeight = calc_lighting(pos); - } - - v_lightWeight = lightWeight; - - v_color = a_Color; - - // \u8BBE\u7F6E\u5706\u67F1\u7684\u5E95\u8272 - if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 - v_color = mix(u_sourceColor, u_targetColor, a_Position.z); - v_color.a = v_color.a * opacity; - } else { - v_color = vec4(a_Color.rgb * lightWeight, a_Color.w * opacity); - } - - if(u_opacitylinear > 0.0) { - v_color.a *= u_opacitylinear_dir > 0.0 ? (1.0 - a_Position.z): a_Position.z; - } - - - gl_Position = project_common_position_to_clipspace_v2(pos); - - setPickingColor(a_PickingColor); +.l7-select-box { + border: 3px dashed gray; + border-radius: 2px; + position: absolute; + z-index: 999; + -webkit-box-sizing: border-box; + box-sizing: border-box; } -`,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=` -uniform float u_additive; - - -varying vec4 v_data; -varying vec4 v_color; -varying float v_radius; -uniform float u_time; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; - -#pragma include "sdf_2d" -#pragma include "picking" - -void main() { - - lowp float antialiasblur = v_data.z; - float r = v_radius / (v_radius); - - float outer_df; - float inner_df; - // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica' - - outer_df = sdCircle(v_data.xy, 1.0); - inner_df = sdCircle(v_data.xy, r); - - - float opacity_t = smoothstep(0.0, antialiasblur, outer_df); - - float color_t = smoothstep( - antialiasblur, - 0.0, - inner_df - ); - float PI = 3.14159; - float N_RINGS = 3.0; - float FREQ = 1.0; - - gl_FragColor = v_color; - - float d = length(v_data.xy); - if(d > 0.5) { - discard; - } - float intensity = clamp(cos(d * PI), 0.0, 1.0) * clamp(cos(2.0 * PI * (d * 2.0 * u_animate.z - u_animate.y * u_time)), 0.0, 1.0); - - // \u6839\u636E\u53E0\u52A0\u6A21\u5F0F\u9009\u62E9\u6548\u679C - if(u_additive > 0.0) { - gl_FragColor *= intensity; - // \u4F18\u5316\u6C34\u6CE2\u70B9 blend additive \u6A21\u5F0F\u4E0B\u6709\u7684\u62FE\u53D6\u6548\u679C - gl_FragColor = filterColorAlpha(gl_FragColor, gl_FragColor.a); - } else { - gl_FragColor = vec4(gl_FragColor.xyz, gl_FragColor.a * intensity); - gl_FragColor = filterColor(gl_FragColor); - } +.l7-control-container { + font: 12px/1.5 'Helvetica Neue', Arial, Helvetica, sans-serif; } -`,GT=` -layout(std140) uniform commonUniforms { - vec3 u_blur_height_fixed; - float u_stroke_width; - float u_additive; - float u_stroke_opacity; - float u_size_unit; -}; - -in vec4 v_color; -in vec4 v_stroke; -in vec4 v_data; -in float v_radius; - -#pragma include "scene_uniforms" -#pragma include "sdf_2d" -#pragma include "picking" - -out vec4 outputColor; - -void main() { - int shape = int(floor(v_data.w + 0.5)); - lowp float antialiasblur = v_data.z; - float r = v_radius / (v_radius + u_stroke_width); - - float outer_df; - float inner_df; - // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica' - if (shape == 0) { - outer_df = sdCircle(v_data.xy, 1.0); - inner_df = sdCircle(v_data.xy, r); - } else if (shape == 1) { - outer_df = sdEquilateralTriangle(1.1 * v_data.xy); - inner_df = sdEquilateralTriangle(1.1 / r * v_data.xy); - } else if (shape == 2) { - outer_df = sdBox(v_data.xy, vec2(1.)); - inner_df = sdBox(v_data.xy, vec2(r)); - } else if (shape == 3) { - outer_df = sdPentagon(v_data.xy, 0.8); - inner_df = sdPentagon(v_data.xy, r * 0.8); - } else if (shape == 4) { - outer_df = sdHexagon(v_data.xy, 0.8); - inner_df = sdHexagon(v_data.xy, r * 0.8); - } else if (shape == 5) { - outer_df = sdOctogon(v_data.xy, 1.0); - inner_df = sdOctogon(v_data.xy, r); - } else if (shape == 6) { - outer_df = sdHexagram(v_data.xy, 0.52); - inner_df = sdHexagram(v_data.xy, r * 0.52); - } else if (shape == 7) { - outer_df = sdRhombus(v_data.xy, vec2(1.0)); - inner_df = sdRhombus(v_data.xy, vec2(r)); - } else if (shape == 8) { - outer_df = sdVesica(v_data.xy, 1.1, 0.8); - inner_df = sdVesica(v_data.xy, r * 1.1, r * 0.8); - } - - float opacity_t = smoothstep(0.0, antialiasblur, outer_df); - - float color_t = u_stroke_width < 0.01 ? 0.0 : smoothstep( - antialiasblur, - 0.0, - inner_df - ); - - if(u_stroke_width < 0.01) { - outputColor = v_color; - } else { - outputColor = mix(v_color, v_stroke * u_stroke_opacity, color_t); - } - - if(u_additive > 0.0) { - outputColor *= opacity_t; - outputColor = filterColorAlpha(outputColor, outputColor.a); - } else { - outputColor.a *= opacity_t; - outputColor = filterColor(outputColor); - } - // \u4F5C\u4E3A mask \u6A21\u677F\u65F6\u9700\u8981\u4E22\u5F03\u900F\u660E\u7684\u50CF\u7D20 - if(outputColor.a < 0.01) { - discard; - } +.l7-control-container .l7-control { + position: relative; + z-index: 999; + float: left; + clear: both; + color: #595959; + font-size: 12px; + pointer-events: visiblePainted; + /* IE 9-10 doesn't have auto */ + pointer-events: auto; } -`,IO=`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; -layout(location = 10) in float a_Shape; - -layout(std140) uniform commonUniforms { - vec3 u_blur_height_fixed; - float u_stroke_width; - float u_additive; - float u_stroke_opacity; - float u_size_unit; -}; - -out vec4 v_color; -out vec4 v_stroke; -out vec4 v_data; -out float v_radius; - -#pragma include "projection" -#pragma include "picking" -#pragma include "rotation_2d" - -void main() { - // \u900F\u660E\u5EA6\u8BA1\u7B97 - v_stroke = stroke; - vec3 extrude = a_Extrude; - float shape_type = a_Shape; - /* - * setPickingSize \u8BBE\u7F6E\u62FE\u53D6\u5927\u5C0F - * u_meter2coord \u5728\u7B49\u9762\u79EF\u5927\u5C0F\u7684\u65F6\u5019\u8BBE\u7F6E\u5355\u4F4D - */ - float newSize = setPickingSize(a_Size); - // float newSize = setPickingSize(a_Size) * 0.00001038445708445579; - - - - // unpack color(vec2) - v_color = vec4(a_Color.xyz, a_Color.w * opacity); - - if(u_size_unit == 1.0) { - newSize = newSize * u_PixelsPerMeter.z; - } - - v_radius = newSize; - - // anti-alias - // float antialiased_blur = -max(u_blur, antialiasblur); - float antialiasblur = -max(2.0 / u_DevicePixelRatio / newSize, u_blur_height_fixed.x); - - vec2 offset = (extrude.xy * (newSize + u_stroke_width) + u_offsets); - vec3 aPosition = a_Position; - - offset = project_pixel(offset); - offset = rotate_matrix(offset,rotation); - - // TODP: /abs(extrude.x) \u662F\u4E3A\u4E86\u517C\u5BB9\u5730\u7403\u6A21\u5F0F - v_data = vec4(extrude.x/abs(extrude.x), extrude.y/abs(extrude.y), antialiasblur,shape_type); - - - // vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0)); - vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); - - float raisingHeight = u_blur_height_fixed.y; - - if(u_blur_height_fixed.z < 1.0) { // false - raisingHeight = project_pixel(u_blur_height_fixed.y); - } else { - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - raisingHeight = u_blur_height_fixed.y * mapboxZoomScale; - } - } - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, raisingHeight, 1.0)); - - setPickingColor(a_PickingColor); +.l7-control-container .l7-control.l7-control--hide { + display: none; } -`,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; -uniform vec2 u_textSize; -uniform float u_opacity : 1; - -#pragma include "sdf_2d" -#pragma include "picking" -varying vec2 v_uv; // \u672C\u8EAB\u7684 uv \u5750\u6807 -varying vec2 v_Iconuv; -varying float v_opacity; - -void main() { - - vec2 pos = v_Iconuv / u_textSize + v_uv / u_textSize * 64.; - gl_FragColor = texture2D(u_texture, pos); - gl_FragColor.a *= v_opacity; - - gl_FragColor = filterColor(gl_FragColor); +.l7-control-container .l7-top { + top: 0; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + position: absolute; + z-index: 999; + pointer-events: none; } -`,Yj=`attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Extrude; -attribute float a_Size; -attribute vec2 a_Uv; - -uniform mat4 u_ModelMatrix; - -uniform mat2 u_RotateMatrix; -uniform int u_size_unit; - -varying vec2 v_uv; // \u672C\u8EAB\u7684 uv \u5750\u6807 -varying vec2 v_Iconuv; // icon \u8D34\u56FE\u7684 uv \u5750\u6807 - -uniform float u_raisingHeight: 0.0; -uniform float u_heightfixed: 0.0; -varying float v_opacity; -// uniform vec2 u_offsets; // shader \u6CE8\u5165 - - -#pragma include "projection" -#pragma include "picking" -#pragma include "rotation_2d" - -void main() { - vec3 extrude = a_Extrude; - v_uv = (a_Extrude.xy + 1.0)/2.0; - v_uv.y = 1.0 - v_uv.y; - v_Iconuv = a_Uv; - v_opacity = opacity; - float newSize = a_Size; - if(u_size_unit == 1) { - newSize = newSize * u_PixelsPerMeter.z; - } - - // vec2 offset = (u_RotateMatrix * extrude.xy * (a_Size) + textrueOffsets); - vec2 offset = (extrude.xy * (newSize) + offsets); - - offset = rotate_matrix(offset,rotation); - - vec3 aPosition = a_Position; - - offset = project_pixel(offset); - - vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); - float raisingHeight = u_raisingHeight; - if(u_heightfixed < 1.0) { // height fixed - raisingHeight = project_pixel(u_raisingHeight); - } else { - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - raisingHeight = u_raisingHeight * mapboxZoomScale; - } - } - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, 0.0, 1.0)); - - setPickingColor(a_PickingColor); +.l7-control-container .l7-top .l7-control:not(.l7-control--hide) { + margin-top: 8px; } -`,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= 0.5) { - float luma = 0.299 * textureColor.r + 0.587 * textureColor.g + 0.114 * textureColor.b; - textureColor.a *= luma; - } - - - - if(all(lessThan(v_color, vec4(1.0+0.00001))) && all(greaterThan(v_color, vec4(1.0-0.00001))) || v_color==vec4(1.0)){ - gl_FragColor= textureColor; - }else { - gl_FragColor= step(0.01, textureColor.z) * v_color; - } - gl_FragColor.a *= v_opacity; - if (gl_FragColor.a < 0.01) { - discard; - } - gl_FragColor = filterColor(gl_FragColor); +.l7-control-container .l7-right { + right: 0; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + position: absolute; + z-index: 999; + pointer-events: none; } -`,vD=`precision highp float; -attribute vec3 a_Position; -attribute vec4 a_Color; -attribute vec2 a_Uv; -attribute float a_Size; -varying vec4 v_color; -varying vec2 v_uv; -varying float v_opacity; -uniform mat4 u_ModelMatrix; - - -uniform float u_raisingHeight: 0.0; -uniform float u_heightfixed: 0.0; - -#pragma include "projection" -#pragma include "picking" - -void main() { - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - v_color = a_Color; - v_opacity = opacity; - v_uv = a_Uv; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - - vec2 offset = project_pixel(offsets); - - float raisingHeight = u_raisingHeight; - if(u_heightfixed < 1.0) { // false - raisingHeight = project_pixel(u_raisingHeight); - } else { - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - raisingHeight = u_raisingHeight * mapboxZoomScale; - } - } - - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, raisingHeight, 1.0)); - - gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; - setPickingColor(a_PickingColor); +.l7-control-container .l7-right .l7-control:not(.l7-control--hide) { + margin-right: 8px; } -`,XS=function(o){(0,lt.Z)(l,o);var d=qj(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E 0.0) { - gl_FragColor *= opacity_t; - } else { - gl_FragColor.a *= opacity_t; - } - - if(gl_FragColor.a > 0.0) { - gl_FragColor = filterColor(gl_FragColor); - } - - vec2 extrude = v_exteude; - vec2 dir = normalize(extrude); - vec2 baseDir = vec2(1.0, 0.0); - float pi = 3.14159265359; - float flag = sign(dir.y); - float rades = dot(dir, baseDir); - float radar_v = (flag - 1.0) * -0.5 * acos(rades)/pi; - // simple AA - if(radar_v > 0.99) { - radar_v = 1.0 - (radar_v - 0.99)/0.01; - } - - gl_FragColor.a *= radar_v; +.l7-control-container .l7-bottom .l7-control:not(.l7-control--hide) { + margin-bottom: 8px; } -`,QJ=`attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Extrude; -attribute float a_Size; -uniform float u_speed: 1.0; -uniform float u_time; - -uniform mat4 u_ModelMatrix; - -uniform int u_size_unit; - -varying vec4 v_data; -varying vec4 v_color; -varying float v_radius; -varying vec2 v_exteude; - -#pragma include "projection" -#pragma include "picking" - -void main() { - vec3 extrude = a_Extrude; - float newSize = setPickingSize(a_Size); - - float time = u_time * u_speed; - mat2 rotateMatrix = mat2( - cos(time), sin(time), - -sin(time), cos(time) - ); - v_exteude = rotateMatrix * a_Extrude.xy; - - // unpack color(vec2) - v_color = a_Color; - - // anti-alias - float blur = 0.0; - float antialiasblur = -max(2.0 / u_DevicePixelRatio / a_Size, blur); - - if(u_size_unit == 1) { - newSize = newSize * u_PixelsPerMeter.z; - } - // radius(16-bit) - v_radius = newSize; - - vec2 offset = (extrude.xy * (newSize)); - vec3 aPosition = a_Position; - - // \u4E0D\u4EE5\u7C73\u4E3A\u5B9E\u9645\u5355\u4F4D - offset = project_pixel(offset); - - v_data = vec4(extrude.x, extrude.y, antialiasblur, -1.0); - - vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); - - setPickingColor(a_PickingColor); +.l7-control-container .l7-left { + left: 0; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + position: absolute; + z-index: 999; + pointer-events: none; } -`,XT=function(o){(0,lt.Z)(l,o);var d=KT(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.blend,Z=u.speed,ne=Z===void 0?1:Z,xe=u.unit,Oe=xe===void 0?"pixel":xe;return{u_size_unit:Lf[Oe],u_speed:ne,u_additive:L==="additive"?1:0,u_opacity:E}}},{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(),dM)}},{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 Z.next=2,this.layer.buildLayerModel({moduleName:"pointRadar",vertexShader:QJ,fragmentShader:$7,triangulation:dM,depth:{enable:!1}});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:"animateOption2Array",value:function(u){return[u.enable?0:1,u.speed||1,u.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){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(m,E,L,Z){var ne=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],xe=Z%4*3;return[ne[xe],ne[xe+1],ne[xe+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(m){var E=m.size,L=E===void 0?5:E;return Array.isArray(L)?[L[0]]:[L]}}})}}]),l}(ec);function YS(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=fm(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 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.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 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 - project_pos.z = a_Position.z * a_Size; - project_pos.z += u_raisingHeight; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - project_pos.z *= mapboxZoomScale; - project_pos.z += u_raisingHeight * mapboxZoomScale; - } - } - - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); - - // Tip: \u90E8\u5206\u673A\u578B GPU \u8BA1\u7B97\u7CBE\u5EA6\u517C\u5BB9 - if(isSide < 0.999) { - // side face - // if(u_sidesurface < 1.0) { - // discard; - // } - - if(u_linearColor == 1.0) { - vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); - linearColor.rgb *= lightWeight; - v_Color = linearColor; - } else { - v_Color = a_Color; - } - - } else { - v_Color = a_Color; - } - - v_Color = vec4(v_Color.rgb * lightWeight, v_Color.w * opacity); - - - setPickingColor(a_PickingColor); +.l7-control-container .l7-center.l7-left, +.l7-control-container .l7-center.l7-right { + height: 100%; } -`,oW=`uniform sampler2D u_texture; -uniform float u_opacity: 1.0; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; -uniform float u_linearColor: 0; - -uniform float u_topsurface: 1.0; -uniform float u_sidesurface: 1.0; - -varying vec4 v_Color; -varying vec3 v_uvs; -varying vec2 v_texture_data; - - -#pragma include "picking" - -void main() { - float opacity = u_opacity; - float isSide = v_texture_data.x; - float lightWeight = v_texture_data.y; - float topU = v_uvs[0]; - float topV = 1.0 - v_uvs[1]; - float sidey = v_uvs[2]; - // Tip: \u90E8\u5206\u673A\u578B GPU \u8BA1\u7B97\u7CBE\u5EA6\u517C\u5BB9 - if(isSide < 0.999) {// \u662F\u5426\u662F\u8FB9\u7F18 - // side face - if(u_sidesurface < 1.0) { - discard; - } - - if(u_linearColor == 1.0) { - vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); - linearColor.rgb *= lightWeight; - gl_FragColor = linearColor; - } else { - gl_FragColor = v_Color; - } - } else { - - // top face - if(u_topsurface < 1.0) { - discard; - } - - gl_FragColor = texture2D(u_texture, vec2(topU, topV)); - // gl_FragColor = vec4(1.0, 0., 0., 1.0); - } - - - gl_FragColor.a *= opacity; - gl_FragColor = filterColor(gl_FragColor); +.l7-control-container .l7-center .l7-control { + margin-right: 8px; + margin-bottom: 8px; } -`,Y7=`precision highp float; - -#define ambientRatio 0.5 -#define diffuseRatio 0.3 -#define specularRatio 0.2 - -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Normal; -attribute float a_Size; -attribute vec3 a_uvs; -uniform mat4 u_ModelMatrix; - -uniform sampler2D u_texture; - - -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; -uniform float u_topsurface: 1.0; -uniform float u_sidesurface: 1.0; -varying vec4 v_Color; -uniform float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A -uniform float u_raisingHeight: 0.0; -uniform float u_linearColor: 0.0; - -varying vec2 v_texture_data; -varying vec3 v_uvs; - -#pragma include "projection" -#pragma include "light" -#pragma include "picking" - -void main() { - - vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); - float lightWeight = calc_lighting(pos); - vec4 project_pos = project_position(pos); - v_uvs = a_uvs; - - v_texture_data = vec2(a_Position.z, lightWeight); - - if(u_heightfixed > 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 - project_pos.z = a_Position.z * a_Size; - project_pos.z += u_raisingHeight; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - project_pos.z *= mapboxZoomScale; - project_pos.z += u_raisingHeight * mapboxZoomScale; - } - } - - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); - - - - setPickingColor(a_PickingColor); +.l7-control-container .l7-row { + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row; } -`,sW=`uniform float u_opacity: 1.0; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; -uniform float u_linearColor: 0; - -uniform float u_topsurface: 1.0; -uniform float u_sidesurface: 1.0; - -varying vec4 v_Color; -varying vec3 v_uvs; -varying vec2 v_texture_data; - -#pragma include "picking" - -void main() { - float opacity = u_opacity; - float isSide = v_texture_data.x; - float sidey = v_uvs[2]; - float lightWeight = v_texture_data.y; - - // Tip: \u90E8\u5206\u673A\u578B GPU \u8BA1\u7B97\u7CBE\u5EA6\u517C\u5BB9 - if(isSide < 0.999) { - // side face - if(u_sidesurface < 1.0) { - discard; - } - - if( u_linearColor == 1.0) { - // side use linear - vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); - linearColor.rgb *= lightWeight; - gl_FragColor = linearColor; - } else { - // side notuse linear - gl_FragColor = v_Color; - } - } else { - // top face - if(u_topsurface < 1.0) { - discard; - } - gl_FragColor = v_Color; - } - - gl_FragColor.a *= opacity; - gl_FragColor = filterColorAlpha(gl_FragColor, lightWeight); +.l7-control-container .l7-row.l7-top { + -webkit-box-align: start; + -ms-flex-align: start; + align-items: flex-start; } -`,z4=`precision highp float; - -#define ambientRatio 0.5 -#define diffuseRatio 0.3 -#define specularRatio 0.2 - -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Normal; -attribute float a_Size; -attribute vec3 a_uvs; -uniform mat4 u_ModelMatrix; - - -uniform float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A -uniform float u_raisingHeight: 0.0; - -varying vec2 v_texture_data; -varying vec3 v_uvs; -varying vec4 v_Color; - - -#pragma include "projection" -#pragma include "light" -#pragma include "picking" - -void main() { - - - v_uvs = a_uvs; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); - vec4 project_pos = project_position(pos); - - if(u_heightfixed > 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 - project_pos.z = a_Position.z * a_Size; - project_pos.z += u_raisingHeight; - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - project_pos.z *= mapboxZoomScale; - project_pos.z += u_raisingHeight * mapboxZoomScale; - } - } - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); - float lightWeight = calc_lighting(pos); - v_texture_data = vec2(a_Position.z,lightWeight); - - v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w); - - setPickingColor(a_PickingColor); +.l7-control-container .l7-row.l7-bottom { + -webkit-box-align: end; + -ms-flex-align: end; + align-items: flex-end; } -`,aW=function(o){(0,lt.Z)(l,o);var d=xD(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.heightfixed,E=m===void 0?!1:m,L=u.raisingHeight,Z=L===void 0?0:L,ne=u.topsurface,xe=ne===void 0?!0:ne,Oe=u.sidesurface,wt=Oe===void 0?!0:Oe,Bt=u.sourceColor,wn=u.targetColor,Rn=0,Pr=[1,1,1,1],ui=[1,1,1,1];return Bt&&wn&&(Pr=mi(Bt),ui=mi(wn),Rn=1),(0,ze.Z)({u_topsurface:Number(xe),u_sidesurface:Number(wt),u_heightfixed:Number(E),u_raisingHeight:Number(Z),u_linearColor:Rn,u_sourceColor:Pr,u_targetColor:ui,u_texture:this.texture},this.getStyleAttribute())}},{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.next=2,this.loadTexture();case 2:return L.abrupt("return",this.buildModels());case 3: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;return Fi().wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return E=this.getShaders(),L=E.frag,Z=E.vert,ne=E.type,wt.next=3,this.layer.buildLayerModel({moduleName:ne,vertexShader:Z,fragmentShader:L,inject:this.getInject(),triangulation:E4});case 3:return xe=wt.sent,wt.abrupt("return",[xe]);case 5:case"end":return wt.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getShaders",value:function(){var u=this.layer.getLayerConfig(),m=u.pickLight,E=u.mapTexture;return E?{frag:oW,vert:Y7,type:"polygonExtrudeTexture"}:m?{frag:sW,vert:z4,type:"polygonExtrudePickLight"}:{frag:rW,vert:iW,type:"polygonExtrude"}}},{key:"clearModels",value:function(){var u;(u=this.texture)===null||u===void 0||u.destroy()}},{key:"registerBuiltinAttributes",value:function(){var u=this.layer.getSource().extent,m=u,E=this.layer.coordCenter||this.layer.getSource().center,L=m[2]-m[0],Z=m[3]-m[1];if(this.mapService.version==="GAODE2.x"){var ne=this.mapService.coordToAMap2RelativeCoordinates([u[0],u[1]],E),xe=(0,Br.Z)(ne,2),Oe=xe[0],wt=xe[1],Bt=this.mapService.coordToAMap2RelativeCoordinates([u[2],u[3]],E),wn=(0,Br.Z)(Bt,2),Rn=wn[0],Pr=wn[1];L=Rn-Oe,Z=Pr-wt,m=[Oe,wt,Rn,Pr]}this.styleAttributeService.registerStyleAttribute({name:"uvs",type:Ih.Attribute,descriptor:{name:"a_uvs",buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(oo,xo,Ds){var aa=Ds[0],fa=Ds[1];return[(aa-m[0])/L,(fa-m[1])/Z,Ds[4]]}}}),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(oo,xo,Ds,aa,fa){return fa}}}),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(oo){var xo=oo.size,Ds=xo===void 0?10:xo;return Array.isArray(Ds)?[Ds[0]]:[Ds]}}})}},{key:"loadTexture",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(){var E=this,L,Z,ne;return Fi().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(L=this.layer.getLayerConfig(),Z=L.mapTexture,ne=this.rendererService.createTexture2D,this.texture=ne({height:0,width:0}),!Z){Oe.next=5;break}return Oe.abrupt("return",new Promise(function(wt,Bt){var wn=new Image;wn.crossOrigin="anonymous",wn.src=Z,wn.onload=function(){return E.texture=ne({data:wn,width:wn.width,height:wn.height,wrapS:Di.CLAMP_TO_EDGE,wrapT:Di.CLAMP_TO_EDGE,min:Di.LINEAR,mag:Di.LINEAR}),wt(null)},wn.onerror=function(){Bt(new Error("image load error"))}}));case 5:case"end":return Oe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()}]),l}(ec);function lW(o){var d=OM();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 OM(){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 U4=` -uniform float u_opacity: 1.0; -varying vec4 v_Color; -varying vec2 v_texture_data; - - -#pragma include "picking" - -void main() { - - gl_FragColor = v_Color; - gl_FragColor = filterColor(gl_FragColor); +.l7-control-container .l7-column { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; } -`,q7=`precision highp float; - -#define ambientRatio 0.5 -#define diffuseRatio 0.3 -#define specularRatio 0.2 - -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Normal; -attribute float a_Size; -uniform mat4 u_ModelMatrix; - - - - -varying vec4 v_Color; - -#pragma include "projection" -#pragma include "light" -#pragma include "picking" - -void main() { - - vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size + (1.0 - a_Position.z) * extrusionBase, 1.0); - float lightWeight = calc_lighting(pos); - vec4 project_pos = project_position(pos); - v_Color = a_Color; - v_Color = vec4(v_Color.rgb * lightWeight, v_Color.w * opacity); - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); - - setPickingColor(a_PickingColor); +.l7-control-container .l7-column.l7-left { + -webkit-box-align: start; + -ms-flex-align: start; + align-items: flex-start; } -`,ZO=function(o){(0,lt.Z)(l,o);var d=lW(l);function l(){return(0,Ct.Z)(this,l),d.apply(this,arguments)}return(0,nt.Z)(l,[{key:"getUninforms",value:function(){return(0,ze.Z)({},this.getStyleAttribute())}},{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;return Fi().wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return E=this.getShaders(),L=E.frag,Z=E.vert,ne=E.type,wt.next=3,this.layer.buildLayerModel({moduleName:ne,vertexShader:Z,fragmentShader:L,inject:this.getInject(),triangulation:E4});case 3:return xe=wt.sent,wt.abrupt("return",[xe]);case 5:case"end":return wt.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getShaders",value:function(){return{frag:U4,vert:q7,type:"polygonExtrude"}}},{key:"clearModels",value:function(){var u;(u=this.texture)===null||u===void 0||u.destroy()}},{key:"registerBuiltinAttributes",value:function(){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:"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?10:E;return Array.isArray(L)?[L[0]]:[L]}}})}}]),l}(ec);function uW(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 cW=`varying vec4 v_color; -#pragma include "picking" - -void main() { - gl_FragColor = v_color; - gl_FragColor = filterColor(gl_FragColor); +.l7-control-container .l7-column.l7-right { + -webkit-box-align: end; + -ms-flex-align: end; + align-items: flex-end; } -`,dW=`#pragma include "picking" -uniform float u_opacitylinear: 0.0; -uniform float u_dir: 1.0; -varying vec3 v_linear; -varying vec2 v_pos; -varying vec4 v_Color; - - -void main() { - gl_FragColor = v_Color; - if(u_opacitylinear > 0.0) { - gl_FragColor.a *= u_dir == 1.0 ? 1.0 - length(v_pos - v_linear.xy)/v_linear.z : length(v_pos - v_linear.xy)/v_linear.z; - } - gl_FragColor = filterColor(gl_FragColor); +.l7-button-control { + min-width: 28px; + height: 28px; + background-color: #fff; + border-width: 0; + border-radius: 2px; + outline: 0; + cursor: pointer; + -webkit-transition: all 0.2s; + transition: all 0.2s; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + padding: 0 6px; + -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + line-height: 16px; } -`,hW=`attribute vec4 a_Color; -attribute vec3 a_Position; - -uniform mat4 u_ModelMatrix; - -uniform float u_raisingHeight: 0.0; - -varying vec4 v_Color; - - -#pragma include "projection" -#pragma include "picking" - -uniform float u_opacitylinear: 0.0; - -attribute vec3 a_linear; -varying vec3 v_linear; -varying vec2 v_pos; - -void main() { - if(u_opacitylinear > 0.0) { - v_linear = a_linear; - v_pos = a_Position.xy; - } - v_Color = vec4(a_Color.xyz, a_Color.w * opacity); - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - project_pos.z += u_raisingHeight; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - project_pos.z *= mapboxZoomScale; - project_pos.z += u_raisingHeight * mapboxZoomScale; - } - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); - setPickingColor(a_PickingColor); -}`,J7=`attribute vec4 a_Color; -attribute vec3 a_Position; - -uniform mat4 u_ModelMatrix; - - -uniform float u_raisingHeight: 0.0; - -varying vec4 v_color; - - -#pragma include "projection" -#pragma include "picking" - -void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - v_color = vec4(a_Color.xyz, a_Color.w * opacity); - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - - project_pos.z += u_raisingHeight; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - project_pos.z *= mapboxZoomScale; - project_pos.z += u_raisingHeight * mapboxZoomScale; - } - - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); - - setPickingColor(a_PickingColor); +.l7-button-control .l7-iconfont { + fill: #595959; + color: #595959; + width: 16px; + height: 16px; } - -`,Q7=function(o){(0,lt.Z)(l,o);var d=uW(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.raisingHeight,E=m===void 0?0:m,L=u.opacityLinear,Z=L===void 0?{enable:!1,dir:"in"}:L;return(0,ze.Z)({u_raisingHeight:Number(E),u_opacitylinear:Number(Z.enable),u_dir:Z.dir==="in"?1:0},this.getStyleAttribute())}},{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.getModelParams(),L=E.frag,Z=E.vert,ne=E.triangulation,xe=E.type,this.layer.triangulation=ne,Bt.next=4,this.layer.buildLayerModel({moduleName:xe,vertexShader:Z,fragmentShader:L,inject:this.getInject(),triangulation:ne,primitive:Di.TRIANGLES,depth:{enable:!1}});case 4:return Oe=Bt.sent,Bt.abrupt("return",[Oe]);case 6:case"end":return Bt.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"registerBuiltinAttributes",value:function(){var u=this.layer.getLayerConfig(),m=u.opacityLinear,E=m===void 0?{enable:!1,dir:"in"}:m;E.enable&&this.styleAttributeService.registerStyleAttribute({name:"linear",type:Ih.Attribute,descriptor:{name:"a_linear",buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(Z,ne,xe){return[xe[3],xe[4],xe[5]]}}})}},{key:"getModelParams",value:function(){var u=this.layer.getLayerConfig(),m=u.opacityLinear,E=m===void 0?{enable:!1}:m;return E.enable?{frag:dW,vert:hW,type:"polygonLinear",triangulation:sO}:{frag:cW,vert:J7,type:"polygonFill",triangulation:hn}}}]),l}(ec);function fW(o){var d=HO();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 HO(){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 GO=` -uniform float u_time: 0.0; -uniform float u_opacity: 1.0; - -varying vec2 v_uv; - -float coast2water_fadedepth = 0.10; -float large_waveheight = .750; // change to adjust the "heavy" waves -float large_wavesize = 3.4; // factor to adjust the large wave size -float small_waveheight = 0.6; // change to adjust the small random waves -float small_wavesize = 0.5; // factor to ajust the small wave size -float water_softlight_fact = 15.; // range [1..200] (should be << smaller than glossy-fact) -float water_glossylight_fact= 120.; // range [1..200] -float particle_amount = 70.; -// vec3 watercolor = vec3(0.43, 0.60, 0.66); // 'transparent' low-water color (RGB) -// vec3 watercolor2 = vec3(0.06, 0.07, 0.11); // deep-water color (RGB, should be darker than the low-water color) -uniform vec4 u_watercolor; -uniform vec4 u_watercolor2; -vec3 water_specularcolor = vec3(1.3, 1.3, 0.9); // specular Color (RGB) of the water-highlights -#define light vec3(-0., sin(u_time*0.5)*.5 + .35, 2.8) // position of the sun - -uniform sampler2D u_texture1; -uniform sampler2D u_texture2; -uniform sampler2D u_texture3; - - - -float hash( float n ) { - return fract(sin(n)*43758.5453123); +.l7-button-control.l7-button-control--row { + padding: 0 16px 0 13px; } - -// 2d noise function -float noise1( in vec2 x ) { - vec2 p = floor(x); - vec2 f = smoothstep(0.0, 1.0, fract(x)); - float n = p.x + p.y*57.0; - return mix(mix( hash(n+ 0.0), hash(n+ 1.0),f.x), - mix( hash(n+ 57.0), hash(n+ 58.0),f.x),f.y); +.l7-button-control.l7-button-control--row * + .l7-button-control__text { + margin-left: 8px; } - -float noise(vec2 p) { - return texture2D(u_texture2,p*vec2(1./256.)).x; +.l7-button-control.l7-button-control--column { + height: 44px; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; } - -vec4 highness(vec2 p) { - vec4 t = texture2D(u_texture1,fract(p)); - float clipped = -2.0-smoothstep(3.,10.,t.a)*6.9-smoothstep(10.,100.,t.a)*89.9-smoothstep(0.,10000.,t.a)*10000.0; - return clamp(t, 0.0,3.0)+clamp(t/3.0-1.0, 0.0,1.0)+clamp(t/16.0-1.0, 0.0,1.0); +.l7-button-control.l7-button-control--column .l7-iconfont { + margin-top: 3px; } - -float height_map( vec2 p ) { - vec4 height=highness(p); - /* - height = -0.5+ - 0.5*smoothstep(-100.,0.,-height)+ - 2.75*smoothstep(0.,2.,height)+ - 1.75*smoothstep(2.,4.,height)+ - 2.75*smoothstep(4.,16.,height)+ - 1.5*smoothstep(16.,1000.,height); - */ - - mat2 m = mat2( 0.9563*1.4, -0.2924*1.4, 0.2924*1.4, 0.9563*1.4 ); - //p = p*6.; - float f = 0.6000*noise1( p ); p = m*p*1.1*6.; - f += 0.2500*noise( p ); p = m*p*1.32; - f += 0.1666*noise( p ); p = m*p*1.11; - f += 0.0834*noise( p ); p = m*p*1.12; - f += 0.0634*noise( p ); p = m*p*1.13; - f += 0.0444*noise( p ); p = m*p*1.14; - f += 0.0274*noise( p ); p = m*p*1.15; - f += 0.0134*noise( p ); p = m*p*1.16; - f += 0.0104*noise( p ); p = m*p*1.17; - f += 0.0084*noise( p ); - f = .25*f+dot(height,vec4(-.03125,-.125,.25,.25))*.5; - const float FLAT_LEVEL = 0.92525; - //f = f*0.25+height*0.75; - if (f level) - { - col = CalcTerrain(uv, height); - } - if (height <= level) - { - vec2 dif = vec2(.0, .01); - vec2 pos = uv*15. + vec2(u_time*.01); - float h1 = water_map(pos-dif,waveheight); - float h2 = water_map(pos+dif,waveheight); - float h3 = water_map(pos-dif.yx,waveheight); - float h4 = water_map(pos+dif.yx,waveheight); - vec3 normwater = normalize(vec3(h3-h4, h1-h2, .125)); // norm-vector of the 'bumpy' water-plane - uv += normwater.xy*.002*(level-height); - - col = CalcTerrain(uv, height); - - float coastfade = clamp((level-height)/coast2water_fadedepth, 0., 1.); - float coastfade2= clamp((level-height)/deepwater_fadedepth, 0., 1.); - float intensity = col.r*.2126+col.g*.7152+col.b*.0722; - watercolor = mix(watercolor*intensity, watercolor2, smoothstep(0., 1., coastfade2)); - - vec3 r0 = vec3(uv, WATER_LEVEL); - vec3 rd = normalize( light - r0 ); // ray-direction to the light from water-position - float grad = dot(normwater, rd); // dot-product of norm-vector and light-direction - float specular = pow(grad, water_softlight_fact); // used for soft highlights - float specular2= pow(grad, water_glossylight_fact); // used for glossy highlights - float gradpos = dot(vec3(0., 0., 1.), rd); - float specular1= smoothstep(0., 1., pow(gradpos, 5.)); // used for diffusity (some darker corona around light's specular reflections...) - float watershade = test_shadow( uv, level ); - watercolor *= 2.2+watershade; - watercolor += (.2+.8*watershade) * ((grad-1.0)*.5+specular) * .25; - watercolor /= (1.+specular1*1.25); - watercolor += watershade*specular2*water_specularcolor; - watercolor += watershade*coastfade*(1.-coastfade2)*(vec3(.5, .6, .7)*nautic(uv)+vec3(1., 1., 1.)*particles(uv)); - - col = mix(col, watercolor, coastfade); - } - - - float opacity = u_opacity; - gl_FragColor = vec4(col, opacity); -} -`,eB=`attribute vec2 a_uv; -attribute vec3 a_Position; -uniform mat4 u_ModelMatrix; - - -varying vec2 v_uv; - -#pragma include "projection" - -void main() { - v_uv = a_uv; - - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); +.l7-popper .l7-popper-content { + min-height: 28px; + background: #fff; + border-radius: 2px; + -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); } - -`,KO=fs.isNumber,V4=function(o){(0,lt.Z)(l,o);var d=fW(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.watercolor,Z=L===void 0?"#6D99A8":L,ne=u.watercolor2,xe=ne===void 0?"#0F121C":ne;return{u_texture1:this.texture1,u_texture2:this.texture2,u_texture3:this.texture3,u_watercolor:mi(Z),u_watercolor2:mi(xe),u_opacity:KO(E)?E:1}}},{key:"getAnimateUniforms",value:function(){return{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 this.loadTexture(),L.abrupt("return",this.buildModels());case 2: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 Z.next=2,this.layer.buildLayerModel({moduleName:"polygonOcean",vertexShader:eB,fragmentShader:GO,triangulation:oO,primitive:Di.TRIANGLES,depth:{enable:!1}});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:"clearModels",value:function(){var u,m,E;(u=this.texture1)===null||u===void 0||u.destroy(),(m=this.texture2)===null||m===void 0||m.destroy(),(E=this.texture3)===null||E===void 0||E.destroy()}},{key:"registerBuiltinAttributes",value:function(){var u=this.layer.getSource().extent,m=(0,Br.Z)(u,4),E=m[0],L=m[1],Z=m[2],ne=m[3],xe=Z-E,Oe=ne-L;this.styleAttributeService.registerStyleAttribute({name:"oceanUv",type:Ih.Attribute,descriptor:{name:"a_uv",buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:2,update:function(Bt,wn,Rn,Pr){var ui=Bt.version==="GAODE2.x"?Bt.originCoordinates[0][Pr]:Rn,oo=(0,Br.Z)(ui,2),xo=oo[0],Ds=oo[1];return[(xo-E)/xe,(Ds-L)/Oe]}}})}},{key:"loadTexture",value:function(){var u=this,m=this.rendererService.createTexture2D,E={height:0,width:0};this.texture1=m(E),this.texture2=m(E),this.texture3=m(E),L(function(ne){u.texture1=Z(ne[0]),u.texture2=Z(ne[1]),u.texture3=Z(ne[2]),u.layerService.reRender()});function L(ne){var xe=0,Oe=[],wt=["https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*MJ22QbpuCzIAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*-z2HSIVDsHIAAAAAAAAAAAAAARQnAQ"];wt.map(function(Bt){var wn=new Image;wn.crossOrigin="",wn.src=Bt,Oe.push(wn),wn.onload=function(){xe++,xe===3&&ne(Oe)}})}function Z(ne){return m({data:ne,width:ne.width,height:ne.height,wrapS:Di.MIRRORED_REPEAT,wrapT:Di.MIRRORED_REPEAT,min:Di.LINEAR,mag:Di.LINEAR})}}}]),l}(ec);function pW(o){var d=Ty();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 Ty(){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 tB=`uniform sampler2D u_texture; -uniform float u_time: 0.0; -uniform float u_speed: 1.0; -uniform float u_opacity: 1.0; - -varying vec4 v_Color; -varying vec2 v_uv; - -float rand(vec2 n) { return 0.5 + 0.5 * fract(sin(dot(n.xy, vec2(12.9898, 78.233)))* 43758.5453); } - -float water(vec3 p) { - float t = u_time * u_speed; - p.z += t * 2.; p.x += t * 2.; - vec3 c1 = texture2D(u_texture, p.xz / 30.).xyz; - p.z += t * 3.; p.x += t * 0.52; - vec3 c2 = texture2D(u_texture, p.xz / 30.).xyz; - p.z += t * 4.; p.x += t * 0.8; - vec3 c3 = texture2D(u_texture, p.xz / 30.).xyz; - c1 += c2 - c3; - float z = (c1.x + c1.y + c1.z) / 3.; - return p.y + z / 4.; +.l7-popper .l7-popper-arrow { + width: 0; + height: 0; + border-width: 4px; + border-style: solid; + border-top-color: transparent; + border-bottom-color: transparent; + border-left-color: transparent; + border-right-color: transparent; + -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); } - -float map(vec3 p) { - float d = 100.0; - d = water(p); - return d; +.l7-popper.l7-popper-left { + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row; } - -float intersect(vec3 ro, vec3 rd) { - float d = 0.0; - for (int i = 0; i <= 100; i++) { - float h = map(ro + rd * d); - if (h < 0.1) return d; - d += h; - } - return 0.0; +.l7-popper.l7-popper-left .l7-popper-arrow { + border-left-color: #fff; + margin: 10px 0; } - -vec3 norm(vec3 p) { - float eps = .1; - return normalize(vec3( - map(p + vec3(eps, 0, 0)) - map(p + vec3(-eps, 0, 0)), - map(p + vec3(0, eps, 0)) - map(p + vec3(0, -eps, 0)), - map(p + vec3(0, 0, eps)) - map(p + vec3(0, 0, -eps)) - )); -} - -float calSpc() { - vec3 l1 = normalize(vec3(1, 1, 1)); - vec3 ro = vec3(-3, 20, -8); - vec3 rc = vec3(0, 0, 0); - vec3 ww = normalize(rc - ro); - vec3 uu = normalize(cross(vec3(0,1,0), ww)); - vec3 vv = normalize(cross(rc - ro, uu)); - vec3 rd = normalize(uu * v_uv.x + vv * v_uv.y + ww); - float d = intersect(ro, rd); - vec3 p = ro + rd * d; - vec3 n = norm(p); - float spc = pow(max(0.0, dot(reflect(l1, n), rd)), 30.0); - return spc; +.l7-popper.l7-popper-right { + -webkit-box-orient: horizontal; + -webkit-box-direction: reverse; + -ms-flex-direction: row-reverse; + flex-direction: row-reverse; } - -void main() { - float opacity = u_opacity; - gl_FragColor = v_Color; - gl_FragColor.a *= opacity; - - float spc = calSpc(); - gl_FragColor += spc * 0.4; +.l7-popper.l7-popper-right .l7-popper-arrow { + border-right-color: #fff; + margin: 10px 0; } -`,XO=`attribute vec4 a_Color; -attribute vec2 a_uv; -attribute vec3 a_Position; -uniform mat4 u_ModelMatrix; - - -varying vec4 v_Color; -varying vec2 v_uv; -uniform float u_opacity: 1.0; - - -#pragma include "projection" - -void main() { - v_uv = a_uv; - - v_Color = a_Color; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); +.l7-popper.l7-popper-top { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; } - -`,gW=fs.isNumber,mW=function(o){(0,lt.Z)(l,o);var d=pW(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.speed,Z=L===void 0?.5:L;return{u_texture:this.texture,u_speed:Z,u_opacity:gW(E)?E:1}}},{key:"getAnimateUniforms",value:function(){return{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 this.loadTexture(),L.abrupt("return",this.buildModels());case 2: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 Z.next=2,this.layer.buildLayerModel({moduleName:"polygonWater",vertexShader:XO,fragmentShader:tB,triangulation:oO,primitive:Di.TRIANGLES,depth:{enable:!1}});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:"clearModels",value:function(){var u;(u=this.texture)===null||u===void 0||u.destroy()}},{key:"registerBuiltinAttributes",value:function(){var u=this.layer.getSource().extent,m=(0,Br.Z)(u,4),E=m[0],L=m[1],Z=m[2],ne=m[3],xe=Z-E,Oe=ne-L;this.styleAttributeService.registerStyleAttribute({name:"waterUv",type:Ih.Attribute,descriptor:{name:"a_uv",buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:2,update:function(Bt,wn,Rn,Pr){var ui=Bt.version==="GAODE2.x"?Bt.originCoordinates[0][Pr]:Rn,oo=(0,Br.Z)(ui,2),xo=oo[0],Ds=oo[1];return[(xo-E)/xe,(Ds-L)/Oe]}}})}},{key:"loadTexture",value:function(){var u=this,m=this.layer.getLayerConfig(),E=m.waterTexture,L=this.rendererService.createTexture2D;this.texture=L({height:0,width:0});var Z=new Image;Z.crossOrigin="",E?(console.warn("L7 recommend\uFF1Ahttps://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ"),Z.src=E):Z.src="https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ",Z.onload=function(){u.texture=L({data:Z,width:Z.width,height:Z.height,wrapS:Di.MIRRORED_REPEAT,wrapT:Di.MIRRORED_REPEAT,min:Di.LINEAR,mag:Di.LINEAR}),u.layerService.reRender()}}}]),l}(ec),nB={fill:Q7,line:P7,extrude:aW,text:I0,point_fill:PO,point_image:XS,point_normal:_D,point_extrude:DO,water:mW,ocean:V4,extrusion:ZO},vW=nB;function yW(o){var d=qS();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 qS(){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 jx=function(o){(0,lt.Z)(l,o);var d=yW(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E 0.0 || x < 0.0) ? x != x : x != 0.0; } - - -void main() { - - float value = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y)).r; - if (value == u_noDataValue || isnan_emu(value)) - discard; - else if ((!u_clampLow && value < u_domain[0]) || (!u_clampHigh && value > u_domain[1])) - discard; - else { - float normalisedValue =(value - u_domain[0]) / (u_domain[1] -u_domain[0]); - vec4 color = texture2D(u_colorTexture,vec2(normalisedValue, 0)); - - gl_FragColor = color; - gl_FragColor.a = gl_FragColor.a * u_opacity ; - if(gl_FragColor.a < 0.01) - discard; - - } +.l7-popper.l7-popper-top .l7-popper-arrow { + border-top-color: #fff; + margin: 0 10px; } -`,xW=`precision highp float; -uniform mat4 u_ModelMatrix; - -attribute vec3 a_Position; -attribute vec2 a_Uv; -varying vec2 v_texCoord; -#pragma include "projection" -void main() { - v_texCoord = a_Uv; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); +.l7-popper.l7-popper-bottom { + -webkit-box-orient: vertical; + -webkit-box-direction: reverse; + -ms-flex-direction: column-reverse; + flex-direction: column-reverse; } -`,rB=function(o){(0,lt.Z)(l,o);var d=j4(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.clampLow,Z=L===void 0?!0:L,ne=u.clampHigh,xe=ne===void 0?!0:ne,Oe=u.noDataValue,wt=Oe===void 0?-9999999:Oe,Bt=u.domain,wn=u.rampColors,Rn=Bt||ri(wn);return this.colorTexture=this.layer.textureService.getColorTexture(wn,Rn),{u_opacity:E||1,u_texture:this.texture,u_domain:Rn,u_clampLow:Z,u_clampHigh:typeof xe!="undefined"?xe:Z,u_noDataValue:wt,u_colorTexture:this.colorTexture}}},{key:"getRasterData",value:function(){var c=(0,Pl.Z)(Fi().mark(function m(E){var L,Z,ne,xe;return Fi().wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:if(!Array.isArray(E.data)){wt.next=4;break}return wt.abrupt("return",{data:E.data,width:E.width,height:E.height});case 4:return wt.next=6,E.data;case 6:return L=wt.sent,Z=L.rasterData,ne=L.width,xe=L.height,wt.abrupt("return",{data:Array.from(Z),width:ne,height:xe});case 11:case"end":return wt.stop()}},m)}));function u(m){return c.apply(this,arguments)}return u}()},{key:"initModels",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:return E=this.layer.getSource(),L=this.rendererService.createTexture2D,Z=E.data.dataArray[0],Rn.next=5,this.getRasterData(Z);case 5:return ne=Rn.sent,xe=ne.data,Oe=ne.width,wt=ne.height,this.texture=L({data:xe,width:Oe,height:wt,format:Di.LUMINANCE,type:Di.FLOAT}),Rn.next=12,this.layer.buildLayerModel({moduleName:"rasterImageData",vertexShader:xW,fragmentShader:bW,triangulation:BT,primitive:Di.TRIANGLES,depth:{enable:!1}});case 12:return Bt=Rn.sent,Rn.abrupt("return",[Bt]);case 14:case"end":return Rn.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(){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:"clearModels",value:function(){var u,m;(u=this.texture)===null||u===void 0||u.destroy(),(m=this.colorTexture)===null||m===void 0||m.destroy()}},{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),Wx=["data"],YT=["rasterData"];function iB(o){var d=wW();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 wW(){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 NM=`precision highp float; -uniform mat4 u_ModelMatrix; - -attribute vec3 a_Position; -attribute vec2 a_Uv; -varying vec2 v_texCoord; -#pragma include "projection" -void main() { - v_texCoord = a_Uv; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); +.l7-popper.l7-popper-bottom .l7-popper-arrow { + border-bottom-color: #fff; + margin: 0 10px; } -`,CW=`precision mediump float; -uniform vec2 u_rminmax: vec2(0,255); -uniform vec2 u_gminmax: vec2(0,255); -uniform vec2 u_bminmax: vec2(0,255); -uniform float u_opacity: 1.0; -uniform sampler2D u_texture; -uniform float u_noDataValue : 0.0; -varying vec2 v_texCoord; - -void main() { - vec3 rgb = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y)).rgb; - if(rgb == vec3(u_noDataValue)) { - gl_FragColor = vec4(0.0, 0, 0, 0.0); - } else { - gl_FragColor = vec4(rgb.r / (u_rminmax.y -u_rminmax.x), rgb.g /(u_gminmax.y -u_gminmax.x), rgb.b/ (u_bminmax.y - u_bminmax.x), u_opacity); - } - if(gl_FragColor.a < 0.01) - discard; - -}`,YO=function(o){(0,lt.Z)(l,o);var d=iB(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E u_domain[1])) { - gl_FragColor = vec4(0.0, 0, 0, 0.0); - } else { - - gl_FragColor = getColor(value); - gl_FragColor.a = gl_FragColor.a * u_opacity ; - if(gl_FragColor.a < 0.01) - discard; - } +.l7-select-control--normal { + padding: 4px 0; } -`,sB=`precision highp float; -uniform mat4 u_ModelMatrix; - -attribute vec3 a_Position; -attribute vec2 a_Uv; -varying vec2 v_texCoord; -#pragma include "projection" -void main() { - v_texCoord = a_Uv; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); +.l7-select-control--normal .l7-select-control-item { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + height: 24px; + padding: 0 16px; + font-size: 12px; + line-height: 24px; } -`,JS=function(o){(0,lt.Z)(l,o);var d=qT(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=u.clampLow,L=E===void 0?!0:E,Z=u.clampHigh,ne=Z===void 0?!0:Z,xe=u.noDataValue,Oe=xe===void 0?-9999999:xe,wt=u.domain,Bt=u.rampColors,wn=u.colorTexture,Rn=u.rScaler,Pr=Rn===void 0?6553.6:Rn,ui=u.gScaler,oo=ui===void 0?25.6:ui,xo=u.bScaler,Ds=xo===void 0?.1:xo,aa=u.offset,fa=aa===void 0?1e4:aa,Za=wt||ri(Bt),gl=wn;return wn?this.layer.textureService.setColorTexture(wn,Bt,Za):gl=this.layer.textureService.getColorTexture(Bt,Za),{u_opacity:m||1,u_texture:this.texture,u_domain:Za,u_clampLow:L,u_clampHigh:typeof ne!="undefined"?ne:L,u_noDataValue:Oe,u_unpack:[Pr,oo,Ds,fa],u_colorTexture:gl}}},{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,Oe.next=4,E.data.images;case 4:return Z=Oe.sent,this.texture=L({data:Z[0],width:Z[0].width,height:Z[0].height,min:Di.LINEAR,mag:Di.LINEAR}),Oe.next=8,this.layer.buildLayerModel({moduleName:"RasterTileDataImage",vertexShader:sB,fragmentShader:oB,triangulation:BT,primitive:Di.TRIANGLES,depth:{enable:!1}});case 8:return ne=Oe.sent,Oe.abrupt("return",[ne]);case 10: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),SD={raster:rB,rasterRgb:YO,raster3d:rB,rasterTerrainRgb:JS},SW=SD;function EW(o){var d=TW();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 TW(){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 W4=function(o){(0,lt.Z)(l,o);var d=EW(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E 1.0) intensity = 0.0; - - gl_FragColor = vec4(v_Color.rgb, v_Color.a * intensity * u_opacity); +.l7-select-control--normal .l7-select-control-item > * + * { + margin-left: 6px; } -`,IW=` -attribute vec3 a_Position; -attribute vec3 a_Normal; -attribute vec2 a_Uv; -attribute vec4 a_Color; -uniform vec3 u_CameraPosition; -varying float v_CamreaDistance; - -uniform mat4 u_ViewProjectionMatrix; -uniform mat4 u_ModelMatrix; -uniform mat4 u_ViewMatrix; - -varying vec3 vVertexNormal; -varying vec4 v_Color; -varying float v_offset; - -void main() { - float EARTH_RADIUS = 100.0; - - v_Color = a_Color; - - v_offset = min(((length(u_CameraPosition) - EARTH_RADIUS)/600.0) * 0.5 + 0.4, 1.0); - vVertexNormal = a_Normal; - - gl_Position = u_ViewProjectionMatrix * u_ModelMatrix * vec4(a_Position, 1.0); +.l7-select-control--normal .l7-select-control-item input[type='checkbox'] { + width: 14px; + height: 14px; } -`,PW=fs.isNumber,qO=function(o){(0,lt.Z)(l,o);var d=uB(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;return{u_opacity:PW(E)?E:1}}},{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:"clearModels",value:function(){return""}},{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.zIndex=-997,Z.next=3,this.layer.buildLayerModel({moduleName:"earthAtmoSphere",vertexShader:IW,fragmentShader:DW,triangulation:A4,depth:{enable:!1},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:"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:1,update:function(m){var E=m.size,L=E===void 0?1:E;return Array.isArray(L)?[L[0]]:[L]}}}),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:"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);function LW(o){var d=dB();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 dB(){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 MW=` -uniform sampler2D u_texture; - -varying vec2 v_texCoord; -varying float v_lightWeight; - - -void main() { - - vec4 color = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y)); - color.xyz = color.xyz * v_lightWeight; - gl_FragColor = color; +.l7-select-control--normal .l7-select-control-item:hover { + background-color: #f3f3f3; } -`,RW=`// attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Normal; -attribute vec2 a_Uv; -varying vec2 v_texCoord; - -// attribute vec2 a_Extrude; -// attribute float a_Size; -// attribute float a_Shape; - -uniform vec3 u_CameraPosition; -uniform mat4 u_ViewProjectionMatrix; -uniform mat4 u_ModelMatrix; -uniform float u_ambientRatio : 0.5; -uniform float u_diffuseRatio : 0.3; -uniform float u_specularRatio : 0.2; -uniform vec3 u_sunLight: [1.0, -10.5, 12.0]; - - - -float calc_lighting(vec4 pos) { - - vec3 worldPos = vec3(pos * u_ModelMatrix); - - vec3 worldNormal = a_Normal; - - // cal light weight - vec3 viewDir = normalize(u_CameraPosition - worldPos); - - vec3 lightDir = normalize(u_sunLight); - - vec3 halfDir = normalize(viewDir+lightDir); - // lambert - float lambert = dot(worldNormal, lightDir); - // specular - float specular = pow(max(0.0, dot(worldNormal, halfDir)), 32.0); - //sum to light weight - float lightWeight = u_ambientRatio + u_diffuseRatio * lambert + u_specularRatio * specular; - - return lightWeight; +.l7-select-control--image { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + -webkit-box-align: start; + -ms-flex-align: start; + align-items: flex-start; + -webkit-box-sizing: content-box; + box-sizing: content-box; + max-width: 460px; + max-height: 400px; + margin: 12px 0 0 12px; + overflow-x: hidden; + overflow-y: auto; } - -varying float v_lightWeight; -void main() { - - v_texCoord = a_Uv; - - float lightWeight = calc_lighting(vec4(a_Position, 1.0)); - v_lightWeight = lightWeight; - - gl_Position = u_ViewProjectionMatrix * u_ModelMatrix * vec4(a_Position, 1.0); +.l7-select-control--image .l7-select-control-item { + position: relative; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-flex: 0; + -ms-flex: 0 0 calc((100% - (12px + 9px) * 2) / 3); + flex: 0 0 calc((100% - (12px + 9px) * 2) / 3); + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + -webkit-box-sizing: content-box; + box-sizing: content-box; + margin-right: 12px; + margin-bottom: 12px; + overflow: hidden; + font-size: 12px; + border: 1px solid #fff; + border-radius: 2px; } -`,kW=function(o){(0,lt.Z)(l,o);var d=LW(l);function l(){var c;(0,Ct.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E 1.0) intensity = 0.0; - - gl_FragColor = vec4(v_Color.rgb, v_Color.a * intensity * u_opacity); +.l7-select-control--image .l7-select-control-item img { + width: 100%; + height: 80px; } -`,hB=` -attribute vec3 a_Position; -attribute vec3 a_Normal; -attribute vec2 a_Uv; -attribute vec4 a_Color; -uniform vec3 u_CameraPosition; -uniform mat4 u_ViewProjectionMatrix; -uniform mat4 u_ModelMatrix; -uniform mat4 u_ViewMatrix; - -varying vec3 vVertexNormal; -varying vec4 v_Color; - -void main() { - v_Color = a_Color; - - vVertexNormal = a_Normal; - - gl_Position = u_ViewProjectionMatrix * u_ModelMatrix * vec4(a_Position, 1.0); +.l7-select-control--image .l7-select-control-item input[type='checkbox'] { + position: absolute; + top: 0; + right: 0; } -`,FC=fs.isNumber,OW=function(o){(0,lt.Z)(l,o);var d=R2(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;return{u_opacity:FC(E)?E:1}}},{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:"clearModels",value:function(){return""}},{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.zIndex=-999,Z.next=3,this.layer.buildLayerModel({moduleName:"earthBloom",vertexShader:hB,fragmentShader:NC,triangulation:rD,depth:{enable:!1},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:"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:1,update:function(m){var E=m.size,L=E===void 0?1:E;return Array.isArray(L)?[L[0]]:[L]}}}),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:"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);function ED(o){var d=JO();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 JO(){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={base:kW,atomSphere:qO,bloomSphere:OW},FW=["base","atomSphere","bloomSphere"],QO=function(o){(0,lt.Z)(l,o);var d=ED(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),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;E * + * { + margin-left: 8px; } -`,zC={0:"#3288bd",.1:"#66c2a5",.2:"#abdda4",.3:"#e6f598",.4:"#fee08b",.5:"#fdae61",.6:"#f46d43",1:"#d53e4f"},s6=function(o){(0,lt.Z)(l,o);var d=mB(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]:{},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{ - display: none !important; +.l7-select-control--image .l7-select-control-item.l7-select-control-item-active { + border-color: #0370fe; } -`);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;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{ - display: none !important; +.l7-select-control-item { + cursor: pointer; } -`);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'] { - display: none; +.l7-select-control-item input[type='checkbox'] { + margin: 0; + cursor: pointer; } -`);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 { - font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif; - overflow: hidden; - position: relative; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +.l7-select-control--multiple .l7-select-control-item:hover { + background-color: transparent; } - -.l7-canvas { - position: absolute; - left: 0; - top: 0; +.l7-control-logo { + width: 89px; + height: 16px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } - -.l7-map:-webkit-full-screen { - width: 100%; +.l7-control-logo img { height: 100%; + width: 100%; } - -.l7-canary { - background-color: salmon; -} - -.l7-canvas-container.l7-interactive, -.l7-ctrl-group button.l7-ctrl-compass { - cursor: -webkit-grab; - cursor: grab; - -moz-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; +.l7-control-logo .l7-control-logo-link { + display: block; + cursor: pointer; } - -.l7-canvas-container.l7-interactive.l7-track-pointer { +.l7-control-logo .l7-control-logo-link img { cursor: pointer; } - -.l7-canvas-container.l7-interactive:active, -.l7-ctrl-group button.l7-ctrl-compass:active { - cursor: -webkit-grabbing; - cursor: grabbing; +.l7-control-mouse-location { + background-color: #fff; + border-radius: 2px; + -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + padding: 2px 4px; + min-width: 130px; } - -.l7-canvas-container.l7-touch-zoom-rotate, -.l7-canvas-container.l7-touch-zoom-rotate .l7-canvas { - -ms-touch-action: pan-x pan-y; - touch-action: pan-x pan-y; +.l7-control-zoom { + overflow: hidden; + border-radius: 2px; + -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); } - -.l7-canvas-container.l7-touch-drag-pan, -.l7-canvas-container.l7-touch-drag-pan .l7-canvas { - -ms-touch-action: pinch-zoom; - touch-action: pinch-zoom; +.l7-control-zoom .l7-button-control { + font-size: 16px; + border-bottom: 1px solid #f0f0f0; + border-radius: 0; + -webkit-box-shadow: 0 0 0; + box-shadow: 0 0 0; } - -.l7-canvas-container.l7-touch-zoom-rotate.l7-touch-drag-pan, -.l7-canvas-container.l7-touch-zoom-rotate.l7-touch-drag-pan .l7-canvas { - -ms-touch-action: none; - touch-action: none; +.l7-control-zoom .l7-button-control .l7-iconfont { + width: 14px; + height: 14px; } - -.l7-ctrl-top-left, -.l7-ctrl-top-right, -.l7-ctrl-bottom-left, -.l7-ctrl-bottom-right { position: absolute; pointer-events: none; z-index: 2; } -.l7-ctrl-top-left { top: 0; left: 0; } -.l7-ctrl-top-right { top: 0; right: 0; } -.l7-ctrl-bottom-left { bottom: 0; left: 0; } -.l7-ctrl-bottom-right { right: 0; bottom: 0; } - -.l7-ctrl { - clear: both; - pointer-events: auto; - - /* workaround for a Safari bug https://github.com/mapbox/mapbox-gl-js/issues/8185 */ - -webkit-transform: translate(0, 0); - transform: translate(0, 0); +.l7-control-zoom .l7-button-control:last-child { + border-bottom: 0; } -.l7-ctrl-top-left .l7-ctrl { margin: 10px 0 0 10px; float: left; } -.l7-ctrl-top-right .l7-ctrl { margin: 10px 10px 0 0; float: right; } -.l7-ctrl-bottom-left .l7-ctrl { margin: 0 0 10px 10px; float: left; } -.l7-ctrl-bottom-right .l7-ctrl { margin: 0 10px 10px 0; float: right; } - - -.l7-crosshair, -.l7-crosshair .l7-interactive, -.l7-crosshair .l7-interactive:active { - cursor: crosshair; +.l7-control-zoom .l7-control-zoom__number { + color: #595959; + padding: 0; } - -.l7-boxzoom { - position: absolute; - top: 0; - left: 0; - width: 0; - height: 0; - background: #fff; - border: 2px dotted #202020; - opacity: 0.5; - z-index: 10; +.l7-control-zoom .l7-control-zoom__number:hover { + background-color: #fff; } -`);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 { - font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif; - overflow: hidden; - position: relative; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +.l7-control-scale { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; } - -.l7-canvas { - position: absolute; - left: 0; - top: 0; +.l7-control-scale .l7-control-scale-line { + -webkit-box-sizing: border-box; + box-sizing: border-box; + padding: 2px 5px 1px; + overflow: hidden; + color: #595959; + font-size: 10px; + line-height: 1.1; + white-space: nowrap; + background: #fff; + border: 2px solid #000; + border-top: 0; + -webkit-transition: width 0.1s; + transition: width 0.1s; } - -.l7-map:-webkit-full-screen { - width: 100%; - height: 100%; +.l7-control-scale .l7-control-scale-line + .l7-control-scale .l7-control-scale-line { + margin-top: -2px; + border-top: 2px solid #777; + border-bottom: none; } - -.l7-canary { - background-color: salmon; +.l7-right .l7-control-scale { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: end; + -ms-flex-align: end; + align-items: flex-end; } - -.l7-canvas-container.l7-interactive, -.l7-ctrl-group button.l7-ctrl-compass { - cursor: -webkit-grab; - cursor: grab; - -moz-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; +.l7-right .l7-control-scale .l7-control-scale-line { + text-align: right; } - -.l7-canvas-container.l7-interactive.l7-track-pointer { +.l7-popup { + position: absolute; + top: 0; + left: 0; + z-index: 5; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + will-change: transform; + pointer-events: none; +} +.l7-popup.l7-popup-hide { + display: none; +} +.l7-popup .l7-popup-content { + position: relative; + padding: 16px; + font-size: 14px; + background: #fff; + border-radius: 3px; + -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); +} +.l7-popup .l7-popup-content .l7-popup-content__title { + margin-bottom: 8px; + font-weight: bold; +} +.l7-popup .l7-popup-content .l7-popup-close-button, +.l7-popup .l7-popup-content .l7-popup-content__title, +.l7-popup .l7-popup-content .l7-popup-content__panel { + white-space: normal; + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; + pointer-events: initial; +} +.l7-popup .l7-popup-content .l7-popup-close-button { + position: absolute; + top: 0; + right: 0; + width: 18px; + height: 18px; + padding: 0; + font-size: 14px; + line-height: 18px; + text-align: center; + background-color: transparent; + border: 0; + border-radius: 0 3px 0 0; cursor: pointer; } - -.l7-canvas-container.l7-interactive:active, -.l7-ctrl-group button.l7-ctrl-compass:active { - cursor: -webkit-grabbing; - cursor: grabbing; +.l7-popup .l7-popup-tip { + position: relative; + z-index: 1; + width: 0; + height: 0; + border: 10px solid transparent; } - -.l7-canvas-container.l7-touch-zoom-rotate, -.l7-canvas-container.l7-touch-zoom-rotate .l7-canvas { - -ms-touch-action: pan-x pan-y; - touch-action: pan-x pan-y; +.l7-popup.l7-popup-anchor-bottom, +.l7-popup.l7-popup-anchor-bottom-left, +.l7-popup.l7-popup-anchor-bottom-right { + -webkit-box-orient: vertical; + -webkit-box-direction: reverse; + -ms-flex-direction: column-reverse; + flex-direction: column-reverse; } - -.l7-canvas-container.l7-touch-drag-pan, -.l7-canvas-container.l7-touch-drag-pan .l7-canvas { - -ms-touch-action: pinch-zoom; - touch-action: pinch-zoom; +.l7-popup.l7-popup-anchor-bottom .l7-popup-tip, +.l7-popup.l7-popup-anchor-bottom-left .l7-popup-tip, +.l7-popup.l7-popup-anchor-bottom-right .l7-popup-tip { + bottom: 1px; } - -.l7-canvas-container.l7-touch-zoom-rotate.l7-touch-drag-pan, -.l7-canvas-container.l7-touch-zoom-rotate.l7-touch-drag-pan .l7-canvas { - -ms-touch-action: none; - touch-action: none; +.l7-popup.l7-popup-anchor-top, +.l7-popup.l7-popup-anchor-top-left, +.l7-popup.l7-popup-anchor-top-right { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; } - -.l7-ctrl-top-left, -.l7-ctrl-top-right, -.l7-ctrl-bottom-left, -.l7-ctrl-bottom-right { position: absolute; pointer-events: none; z-index: 2; } -.l7-ctrl-top-left { top: 0; left: 0; } -.l7-ctrl-top-right { top: 0; right: 0; } -.l7-ctrl-bottom-left { bottom: 0; left: 0; } -.l7-ctrl-bottom-right { right: 0; bottom: 0; } - -.l7-ctrl { - clear: both; - pointer-events: auto; - - /* workaround for a Safari bug https://github.com/mapbox/mapbox-gl-js/issues/8185 */ - -webkit-transform: translate(0, 0); - transform: translate(0, 0); +.l7-popup.l7-popup-anchor-top .l7-popup-tip, +.l7-popup.l7-popup-anchor-top-left .l7-popup-tip, +.l7-popup.l7-popup-anchor-top-right .l7-popup-tip { + top: 1px; } -.l7-ctrl-top-left .l7-ctrl { margin: 10px 0 0 10px; float: left; } -.l7-ctrl-top-right .l7-ctrl { margin: 10px 10px 0 0; float: right; } -.l7-ctrl-bottom-left .l7-ctrl { margin: 0 0 10px 10px; float: left; } -.l7-ctrl-bottom-right .l7-ctrl { margin: 0 10px 10px 0; float: right; } - - -.l7-crosshair, -.l7-crosshair .l7-interactive, -.l7-crosshair .l7-interactive:active { - cursor: crosshair; +.l7-popup.l7-popup-anchor-left { + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row; } - -.l7-boxzoom { - position: absolute; - top: 0; - left: 0; - width: 0; - height: 0; - background: #fff; - border: 2px dotted #202020; - opacity: 0.5; - z-index: 10; +.l7-popup.l7-popup-anchor-right { + -webkit-box-orient: horizontal; + -webkit-box-direction: reverse; + -ms-flex-direction: row-reverse; + flex-direction: row-reverse; } -`),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.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=-90&&d<=90,"invalid latitude"),v*=XH;var C=g*eO,M=d*eO,B=v*(C+qO)/(2*qO),J=v*(qO-Math.log(Math.tan(XJ+M*.5)))/(2*qO);return[B,J]}function PN(i,v){var f=(0,_g.Z)(i,2),g=f[0],d=f[1];v*=XH;var C=g/v*(2*qO)-qO,M=2*(Math.atan(Math.exp(qO-d/v*(2*qO)))-XJ);return[C*YJ,M*YJ]}function qV(i){var v=i.latitude;assert(Number.isFinite(v));var f=Math.cos(v*eO);return eae(YH*f)-9}function qH(i){var v=i.latitude,f=i.longitude,g=i.zoom,d=i.scale,C=i.highPrecision,M=C===void 0?!1:C;d=d!==void 0?d:qJ(g),dk(Number.isFinite(v)&&Number.isFinite(f)&&Number.isFinite(d));var B={},J=XH*d,ue=Math.cos(v*eO),Ue=J/360,it=Ue/ue,Ir=J/YH/ue;if(B.pixelsPerMeter=[Ir,-Ir,Ir],B.metersPerPixel=[1/Ir,-1/Ir,1/Ir],B.pixelsPerDegree=[Ue,-it,Ir],B.degreesPerPixel=[1/Ue,-1/it,1/Ir],M){var Wo=eO*Math.tan(v*eO)/ue,Ca=Ue*Wo/2,eu=J/YH*Wo,Bd=eu/it*Ir;B.pixelsPerDegree2=[0,-Ca,eu],B.pixelsPerMeter2=[Bd,0,Bd]}return B}function mpe(i,v){var f=_slicedToArray(i,3),g=f[0],d=f[1],C=f[2],M=_slicedToArray(v,3),B=M[0],J=M[1],ue=M[2],Ue=1,it=qH({longitude:g,latitude:d,scale:Ue,highPrecision:!0}),Ir=it.pixelsPerMeter,Wo=it.pixelsPerMeter2,Ca=YV(i,Ue);Ca[0]+=B*(Ir[0]+Wo[0]*J),Ca[1]+=J*(Ir[1]+Wo[1]*J);var eu=PN(Ca,Ue),Bd=(C||0)+(ue||0);return Number.isFinite(C)||Number.isFinite(ue)?[eu[0],eu[1],Bd]:eu}function tae(i){var v=i.height,f=i.pitch,g=i.bearing,d=i.altitude,C=i.center,M=C===void 0?null:C,B=i.flipY,J=B===void 0?!1:B,ue=Gz();return m3(ue,ue,[0,0,-d]),eA(ue,ue,[1,1,1/v]),d3(ue,ue,-f*eO),zD(ue,ue,g*eO),J&&eA(ue,ue,[1,-1,1]),M&&m3(ue,ue,cZ([],M)),ue}function Kz(i){var v=i.width,f=i.height,g=i.altitude,d=g===void 0?Qse:g,C=i.pitch,M=C===void 0?0:C,B=i.nearZMultiplier,J=B===void 0?1:B,ue=i.farZMultiplier,Ue=ue===void 0?1:ue,it=M*eO,Ir=Math.atan(.5/d),Wo=Math.sin(Ir)*d/Math.sin(Math.PI/2-it-Ir),Ca=Math.cos(Math.PI/2-it)*Wo+d;return{fov:2*Math.atan(f/2/d),aspect:v/f,focalDistance:d,near:J,far:Ca*Ue}}function JJ(i){var v=i.width,f=i.height,g=i.pitch,d=i.altitude,C=i.nearZMultiplier,M=i.farZMultiplier,B=Kz({width:v,height:f,altitude:d,pitch:g,nearZMultiplier:C,farZMultiplier:M}),J=B.fov,ue=B.aspect,Ue=B.near,it=B.far,Ir=z0([],J,ue,Ue,it);return Ir}function Xz(i,v){var f=(0,_g.Z)(i,3),g=f[0],d=f[1],C=f[2],M=C===void 0?0:C;return dk(Number.isFinite(g)&&Number.isFinite(d)&&Number.isFinite(M)),XV(v,[g,d,M,1])}function QJ(i,v){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,g=(0,_g.Z)(i,3),d=g[0],C=g[1],M=g[2];if(dk(Number.isFinite(d)&&Number.isFinite(C),"invalid pixel coordinate"),Number.isFinite(M)){var B=XV(v,[d,C,M,1]);return B}var J=XV(v,[d,C,0,1]),ue=XV(v,[d,C,1,1]),Ue=J[2],it=ue[2],Ir=Ue===it?0:((f||0)-Ue)/(it-Ue);return GT([],J,ue,Ir)}var JH=Gz(),nae=function(){function i(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=v.width,g=v.height,d=v.viewMatrix,C=d===void 0?JH:d,M=v.projectionMatrix,B=M===void 0?JH:M;(0,Or.Z)(this,i),this.width=f||1,this.height=g||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=C,this.projectionMatrix=B;var J=Gz();IS(J,J,this.projectionMatrix),IS(J,J,this.viewMatrix),this.viewProjectionMatrix=J;var ue=Gz();eA(ue,ue,[this.width/2,-this.height/2,1]),m3(ue,ue,[1,-1,0]),IS(ue,ue,this.viewProjectionMatrix);var Ue=rT(Gz(),ue);if(!Ue)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=ue,this.pixelUnprojectionMatrix=Ue,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,at.Z)(i,[{key:"equals",value:function(f){return f instanceof i?f.width===this.width&&f.height===this.height&&gu(f.projectionMatrix,this.projectionMatrix)&&gu(f.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=g.topLeft,C=d===void 0?!0:d,M=this.projectPosition(f),B=Xz(M,this.pixelProjectionMatrix),J=(0,_g.Z)(B,2),ue=J[0],Ue=J[1],it=C?Ue:this.height-Ue;return f.length===2?[ue,it]:[ue,it,B[2]]}},{key:"unproject",value:function(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=g.topLeft,C=d===void 0?!0:d,M=g.targetZ,B=(0,_g.Z)(f,3),J=B[0],ue=B[1],Ue=B[2],it=C?ue:this.height-ue,Ir=M&&M*this.pixelsPerMeter,Wo=QJ([J,it,Ue],this.pixelUnprojectionMatrix,Ir),Ca=this.unprojectPosition(Wo),eu=(0,_g.Z)(Ca,3),Bd=eu[0],r0=eu[1],N0=eu[2];return Number.isFinite(Ue)?[Bd,r0,N0]:Number.isFinite(M)?[Bd,r0,M]:[Bd,r0]}},{key:"projectPosition",value:function(f){var g=this.projectFlat(f),d=(0,_g.Z)(g,2),C=d[0],M=d[1],B=(f[2]||0)*this.pixelsPerMeter;return[C,M,B]}},{key:"unprojectPosition",value:function(f){var g=this.unprojectFlat(f),d=(0,_g.Z)(g,2),C=d[0],M=d[1],B=(f[2]||0)/this.pixelsPerMeter;return[C,M,B]}},{key:"projectFlat",value:function(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return f}},{key:"unprojectFlat",value:function(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return f}}]),i}();function rae(i){var v=i.width,f=i.height,g=i.bounds,d=i.minExtent,C=d===void 0?0:d,M=i.maxZoom,B=M===void 0?24:M,J=i.padding,ue=J===void 0?0:J,Ue=i.offset,it=Ue===void 0?[0,0]:Ue,Ir=(0,_g.Z)(g,2),Wo=(0,_g.Z)(Ir[0],2),Ca=Wo[0],eu=Wo[1],Bd=(0,_g.Z)(Ir[1],2),r0=Bd[0],N0=Bd[1];if(Number.isFinite(ue)){var fv=ue;ue={top:fv,bottom:fv,left:fv,right:fv}}else dk(Number.isFinite(ue.top)&&Number.isFinite(ue.bottom)&&Number.isFinite(ue.left)&&Number.isFinite(ue.right));var v1=new JV({width:v,height:f,longitude:0,latitude:0,zoom:0}),_y=v1.project([Ca,N0]),Q1=v1.project([r0,eu]),iy=[Math.max(Math.abs(Q1[0]-_y[0]),C),Math.max(Math.abs(Q1[1]-_y[1]),C)],Uy=[v-ue.left-ue.right-Math.abs(it[0])*2,f-ue.top-ue.bottom-Math.abs(it[1])*2];dk(Uy[0]>0&&Uy[1]>0);var w_=Uy[0]/iy[0],_x=Uy[1]/iy[1],ux=(ue.right-ue.left)/2/w_,f2=(ue.bottom-ue.top)/2/_x,G2=[(Q1[0]+_y[0])/2+ux,(Q1[1]+_y[1])/2+f2],cw=v1.unproject(G2),JE=v1.zoom+Math.log2(Math.abs(Math.min(w_,_x)));return{longitude:cw[0],latitude:cw[1],zoom:Math.min(JE,B)}}var JV=function(i){(0,Wt.Z)(v,i);function v(){var f,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=g.width,C=g.height,M=g.latitude,B=M===void 0?0:M,J=g.longitude,ue=J===void 0?0:J,Ue=g.zoom,it=Ue===void 0?0:Ue,Ir=g.pitch,Wo=Ir===void 0?0:Ir,Ca=g.bearing,eu=Ca===void 0?0:Ca,Bd=g.altitude,r0=Bd===void 0?1.5:Bd,N0=g.nearZMultiplier,fv=g.farZMultiplier;(0,Or.Z)(this,v),d=d||1,C=C||1;var v1=qJ(it);r0=Math.max(.75,r0);var _y=YV([ue,B],v1);_y[2]=0;var Q1=JJ({width:d,height:C,pitch:Wo,bearing:eu,altitude:r0,nearZMultiplier:N0||1/C,farZMultiplier:fv||1.01}),iy=tae({height:C,center:_y,pitch:Wo,bearing:eu,altitude:r0,flipY:!0});return f=(0,zs.Z)(this,(0,si.Z)(v).call(this,{width:d,height:C,viewMatrix:iy,projectionMatrix:Q1})),f.latitude=B,f.longitude=ue,f.zoom=it,f.pitch=Wo,f.bearing=eu,f.altitude=r0,f.scale=v1,f.center=_y,f.pixelsPerMeter=qH((0,hv.Z)((0,hv.Z)(f))).pixelsPerMeter[2],Object.freeze((0,hv.Z)((0,hv.Z)(f))),f}return(0,at.Z)(v,[{key:"projectFlat",value:function(g){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return YV(g,d)}},{key:"unprojectFlat",value:function(g){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return PN(g,d)}},{key:"getMapCenterByLngLatPosition",value:function(g){var d=g.lngLat,C=g.pos,M=QJ(C,this.pixelUnprojectionMatrix),B=YV(d,this.scale),J=VC([],B,B3([],M)),ue=VC([],this.center,J);return PN(ue,this.scale)}},{key:"getLocationAtPoint",value:function(g){var d=g.lngLat,C=g.pos;return this.getMapCenterByLngLatPosition({lngLat:d,pos:C})}},{key:"fitBounds",value:function(g){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=this.width,M=this.height,B=rae(Object.assign({width:C,height:M,bounds:g},d)),J=B.longitude,ue=B.latitude,Ue=B.zoom;return new v({width:C,height:M,longitude:J,latitude:ue,zoom:Ue})}}]),v}(nae),LN=function(){function i(){(0,Or.Z)(this,i)}return(0,at.Z)(i,[{key:"syncWithMapCamera",value:function(f){var g=f.center,d=f.zoom,C=f.pitch,M=f.bearing,B=f.viewportHeight,J=f.viewportWidth,ue=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 JV((0,An.Z)((0,An.Z)({},ue),{},{width:J,height:B,longitude:g&&g[0],latitude:g&&g[1],zoom:d,pitch:C,bearing:M}))}},{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(f,g){return this.viewport.projectFlat(f,g)}}]),i}(),eQ=function(){function i(v){(0,Or.Z)(this,i),(0,ka.Z)(this,"size",1e4),this.size=v||1e4}return(0,at.Z)(i,[{key:"setSize",value:function(f){this.size=f}},{key:"getSize",value:function(){return[this.size,this.size]}},{key:"mercatorXfromLng",value:function(f){return(180+f)/360*this.size}},{key:"mercatorYfromLat",value:function(f){return(1-(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+f*Math.PI/360)))/360)*this.size}},{key:"lngFromMercatorX",value:function(f){return f/this.size*360-180}},{key:"latFromMercatorY",value:function(f){var g=180-(1-f/this.size)*360;return 360/Math.PI*Math.atan(Math.exp(g*Math.PI/180))-90}},{key:"project",value:function(f){var g=this.mercatorXfromLng(f[0]),d=this.mercatorYfromLat(f[1]);return[g,d]}},{key:"unproject",value:function(f){var g=this.lngFromMercatorX(f[0]),d=this.latFromMercatorY(f[1]);return[g,d]}}]),i}();function MN(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},v={top:0,right:0,bottom:0,left:0};if(typeof i=="number")return{top:i,right:i,bottom:i,left:i};if(Array.isArray(i)){if(i.length===4)return{top:i[0],right:i[1],bottom:i[2],left:i[3]};if(i.length===2)return{top:i[0],right:i[1],bottom:i[0],left:i[1]}}return(0,An.Z)((0,An.Z)({},v),i)}var iae={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"},Yz=["id","style","minZoom","maxZoom","token","mapInstance","plugin"],tQ,nQ,rQ,QV,ej,tj,F8,nj,iQ,qz,Jz;function QH(i,v){var f=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,g=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(f||g)&&(v||(v=document),!!v)){var d=v.head||v.getElementsByTagName("head")[0];if(!d){d=v.createElement("head");var C=v.body||v.getElementsByTagName("body")[0];C?C.parentNode.insertBefore(d,C):v.documentElement.appendChild(d)}var M=v.createElement("style");return M.type="text/css",M.styleSheet?M.styleSheet.cssText=i:M.appendChild(v.createTextNode(i)),d.appendChild(M),M}}QH(`.amap-logo{ + display: none !important; +} +.amap-copyright { + display: none !important; +} +`);var oQ={contextmenu:"rightclick"},oae={contextmenu:"rightclick",camerachange:"viewchange"},sQ={"GAODE1.x":oQ,"GAODE2.x":oae},sae=0;window.forceWebGL=!0;var eG="15cd8a57710d40c9b7c0e3cc120f1200",aae="1.4.15",lae="amap-script",rj=!1,Qz=[],uae=12,aQ=(tQ=(0,Cg.b2)(),nQ=(0,Cg.f3)(su.IGlobalConfigService),rQ=(0,Cg.f3)(su.MapConfig),QV=(0,Cg.f3)(su.ICoordinateSystemService),ej=(0,Cg.f3)(su.IEventEmitter),tQ(tj=(F8=function(){function i(){var v=this;(0,Or.Z)(this,i),(0,ka.Z)(this,"version",$y["GAODE1.x"]),(0,ka.Z)(this,"simpleMapCoord",new eQ),(0,ka.Z)(this,"bgColor","rgba(0, 0, 0, 0)"),ne(this,"configService",nj,this),ne(this,"config",iQ,this),ne(this,"coordinateSystemService",qz,this),ne(this,"eventEmitter",Jz,this),(0,ka.Z)(this,"handleCameraChanged",function(f){var g=f.camera,d=g.fov,C=g.near,M=g.far,B=g.height,J=g.pitch,ue=g.rotation,Ue=g.aspect,it=g.position,Ir=v.getCenter(),Wo=Ir.lng,Ca=Ir.lat;if(v.emit("mapchange"),v.cameraChangedCallback){v.viewport.syncWithMapCamera({aspect:Ue,bearing:360-ue,far:M,fov:d,cameraHeight:B,near:C,pitch:J,zoom:v.map.getZoom()-1,center:[Wo,Ca],offsetOrigin:[it.x,it.y]});var eu=v.config.offsetZoom,Bd=eu===void 0?uae:eu;v.viewport.getZoom()>Bd?v.coordinateSystemService.setCoordinateSystem(kS.P20_OFFSET):v.coordinateSystemService.setCoordinateSystem(kS.P20),v.cameraChangedCallback(v.viewport)}})}return(0,at.Z)(i,[{key:"setBgColor",value:function(f){this.bgColor=f}},{key:"addMarkerContainer",value:function(){var f=this.map.getContainer();if(f!==null){var g=f.getElementsByClassName("amap-maps")[0];this.markerContainer=Fv("div","l7-marker-container",g)}}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(f,g){BI.indexOf(f)!==-1?this.eventEmitter.on(f,g):this.map.on(sQ[this.version][f]||f,g)}},{key:"off",value:function(f,g){BI.indexOf(f)!==-1?this.eventEmitter.off(f,g):this.map.off(sQ[this.version][f]||f,g)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){var f;return(f=this.map.getContainer())===null||f===void 0?void 0:f.getElementsByClassName("amap-maps")[0]}},{key:"getSize",value:function(){var f=this.map.getSize();return[f.getWidth(),f.getHeight()]}},{key:"getType",value:function(){return"amap"}},{key:"getZoom",value:function(){return this.map.getZoom()-1}},{key:"setZoom",value:function(f){return this.map.setZoom(f+1)}},{key:"getCenter",value:function(f){if(f!=null&&f.padding){var g=this.getCenter(),d=MN(f.padding),C=this.lngLatToPixel([g.lng,g.lat]),M=[(d.right-d.left)/2,(d.bottom-d.top)/2],B=this.pixelToLngLat([C.x-M[0],C.y-M[1]]);return B}var J=this.map.getCenter();return{lng:J.getLng(),lat:J.getLat()}}},{key:"setCenter",value:function(f,g){if(g!=null&&g.padding){var d=MN(g.padding),C=this.lngLatToPixel(f),M=[(d.right-d.left)/2,(d.bottom-d.top)/2],B=this.pixelToLngLat([C.x+M[0],C.y+M[1]]);this.map.setCenter([B.lng,B.lat])}else this.map.setCenter(f)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return 360-this.map.getRotation()}},{key:"getBounds",value:function(){var f=this.map.getBounds().toBounds(),g=f.getNorthEast(),d=f.getSouthWest(),C=this.getCenter(),M=C.lng>g.getLng()||C.lng0&&arguments[0]!==void 0?arguments[0]:0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy(f,g)}},{key:"fitBounds",value:function(f){this.map.setBounds(new AMap.Bounds([f[0][0],f[0][1],f[1][0],f[1][1]]))}},{key:"setZoomAndCenter",value:function(f,g){this.map.setZoomAndCenter(f+1,g)}},{key:"setMapStyle",value:function(f){this.map.setMapStyle(this.getMapStyleValue(f))}},{key:"setMapStatus",value:function(f){this.map.setStatus(f)}},{key:"getMapStyleConfig",value:function(){return iae}},{key:"getMapStyleValue",value:function(f){return this.getMapStyleConfig()[f]||f}},{key:"getMapStyle",value:function(){return this.map.getMapStyle()}},{key:"pixelToLngLat",value:function(f){var g=this.map.pixelToLngLat(new AMap.Pixel(f[0],f[1]));return{lng:g.getLng(),lat:g.getLat()}}},{key:"lngLatToPixel",value:function(f){var g=this.map.lnglatToPixel(new AMap.LngLat(f[0],f[1]));return{x:g.getX(),y:g.getY()}}},{key:"containerToLngLat",value:function(f){var g=new AMap.Pixel(f[0],f[1]),d=this.map.containerToLngLat(g);return{lng:d==null?void 0:d.getLng(),lat:d==null?void 0:d.getLat()}}},{key:"lngLatToContainer",value:function(f){var g=new AMap.LngLat(f[0],f[1]),d=this.map.lngLatToContainer(g);return{x:d.getX(),y:d.getY()}}},{key:"lngLatToCoord",value:function(f){var g=this.map.lngLatToGeodeticCoord(f),d=g.x,C=g.y;return[d,-C]}},{key:"lngLatToMercator",value:function(f,g){return{x:0,y:0,z:0}}},{key:"getModelMatrix",value:function(f,g,d){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],M=this.viewport.projectFlat(f),B=Vx();return m3(B,B,QA(M[0],M[1],g)),eA(B,B,QA(C[0],C[1],C[2])),d3(B,B,d[0]),Y1(B,B,d[1]),zD(B,B,d[2]),B}},{key:"init",value:function(){var v=(0,y_.Z)(Dv().mark(function g(){var d=this,C,M,B,J,ue,Ue,it,Ir,Wo,Ca,eu,Bd,r0,N0;return Dv().wrap(function(v1){for(;;)switch(v1.prev=v1.next){case 0:return C=this.config,M=C.id,B=C.style,J=B===void 0?"light":B,ue=C.minZoom,Ue=ue===void 0?0:ue,it=C.maxZoom,Ir=it===void 0?18:it,Wo=C.token,Ca=Wo===void 0?eG:Wo,eu=C.mapInstance,Bd=C.plugin,r0=Bd===void 0?[]:Bd,N0=(0,q3.Z)(C,Yz),v1.next=3,new Promise(function(_y){var Q1=function(){if(eu)d.map=eu,d.$mapContainer=d.map.getContainer(),setTimeout(function(){d.map.on("camerachange",d.handleCameraChanged),_y()},30);else{d.$mapContainer=d.creatMapContainer(M);var Uy=(0,An.Z)({mapStyle:d.getMapStyleValue(J),zooms:[Ue,Ir],viewMode:"3D"},N0);Uy.zoom&&(Uy.zoom+=1);var w_=new AMap.Map(d.$mapContainer,Uy);w_.on("camerachange",d.handleCameraChanged),w_.on("camerachange",function(){setTimeout(function(){return d.handleAfterMapChange()})}),d.map=w_,setTimeout(function(){_y()},10)}};!rj&&!eu?(Ca===eG&&console.warn("%c".concat(d.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;"),rj=!0,r0.push("Map3D"),HJ().load({key:Ca,version:aae,plugins:r0}).then(function(){Q1(),Qz.length&&(Qz.forEach(function(iy){return iy()}),Qz=[])}).catch(function(iy){throw new Error(iy)})):rj&&window.AMap||eu?Q1():Qz.push(Q1)});case 3:this.viewport=new LN;case 4:case"end":return v1.stop()}},g,this)}));function f(){return v.apply(this,arguments)}return f}()},{key:"meterToCoord",value:function(f,g){var d=AMap.GeometryUtil.distance(Yg(AMap.LngLat,(0,Gd.Z)(f)),Yg(AMap.LngLat,(0,Gd.Z)(g))),C=this.lngLatToCoord(f),M=(0,_g.Z)(C,2),B=M[0],J=M[1],ue=this.lngLatToCoord(g),Ue=(0,_g.Z)(ue,2),it=Ue[0],Ir=Ue[1],Wo=Math.sqrt(Math.pow(B-it,2)+Math.pow(J-Ir,2));return Wo/d}},{key:"updateView",value:function(f){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(f){var g,d=(g=this.getContainer())===null||g===void 0?void 0:g.getElementsByClassName("amap-layer")[0],C=f==="jpg"?d==null?void 0:d.toDataURL("image/jpeg"):d==null?void 0:d.toDataURL("image/png");return C}},{key:"emit",value:function(f){for(var g,d=arguments.length,C=new Array(d>1?d-1:0),M=1;M1?d-1:0),M=1;M_y?g.coordinateSystemService.setCoordinateSystem(kS.P20_OFFSET):g.coordinateSystemService.setCoordinateSystem(kS.P20),g.cameraChangedCallback(g.viewport)}}),g}return(0,at.Z)(f,[{key:"getModelMatrix",value:function(d,C,M){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],J=this.viewport.projectFlat(d),ue=Vx();return m3(ue,ue,QA(J[0],J[1],C)),eA(ue,ue,QA(B[0],B[1],B[2])),d3(ue,ue,M[0]),Y1(ue,ue,M[1]),zD(ue,ue,M[2]),ue}},{key:"init",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M=this,B,J,ue,Ue,it,Ir,Wo,Ca,eu,Bd,r0,N0,fv,v1;return Dv().wrap(function(Q1){for(;;)switch(Q1.prev=Q1.next){case 0:return B=this.config,J=B.id,ue=B.style,Ue=ue===void 0?"light":ue,it=B.minZoom,Ir=it===void 0?0:it,Wo=B.maxZoom,Ca=Wo===void 0?18:Wo,eu=B.token,Bd=eu===void 0?cQ:eu,r0=B.mapInstance,N0=B.plugin,fv=N0===void 0?[]:N0,v1=(0,q3.Z)(B,oj),Q1.next=3,new Promise(function(iy){var Uy=function(){if(r0)M.map=r0,M.$mapContainer=M.map.getContainer(),setTimeout(function(){M.map.on("camerachange",M.handleCameraChanged),iy()},30);else{M.$mapContainer=M.creatMapContainer(J);var _x=(0,An.Z)({mapStyle:M.getMapStyleValue(Ue),zooms:[Ir,Ca],viewMode:"3D"},v1);_x.zoom&&(_x.zoom+=1);var ux=new AMap.Map(M.$mapContainer,_x);ux.on("camerachange",M.handleCameraChanged),ux.on("camerachange",function(){setTimeout(function(){return M.handleAfterMapChange()})}),M.map=ux,setTimeout(function(){iy()},10)}};!B8&&!r0?(Bd===cQ&&console.warn(M.configService.getSceneWarninfo("MapToken")),B8=!0,fv.push("Map3D"),lQ.load({key:Bd,version:dae,plugins:fv}).then(function(w_){Uy(),t$.length&&(t$.forEach(function(_x){return _x()}),t$=[])}).catch(function(w_){throw new Error(w_)})):B8&&window.AMap||r0?Uy():t$.push(Uy)});case 3:this.viewport=new vpe;case 4:case"end":return Q1.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"meterToCoord",value:function(d,C){var M=AMap.GeometryUtil.distance(Yg(AMap.LngLat,(0,Gd.Z)(d)),Yg(AMap.LngLat,(0,Gd.Z)(C))),B=this.lngLatToCoord(d),J=(0,_g.Z)(B,2),ue=J[0],Ue=J[1],it=this.lngLatToCoord(C),Ir=(0,_g.Z)(it,2),Wo=Ir[0],Ca=Ir[1],eu=Math.sqrt(Math.pow(ue-Wo,2)+Math.pow(Ue-Ca,2));return eu/M}},{key:"updateView",value:function(d){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(d){var C,M=(C=this.getContainer())===null||C===void 0?void 0:C.getElementsByClassName("amap-layer")[0],B=d==="jpg"?M==null?void 0:M.toDataURL("image/jpeg"):M==null?void 0:M.toDataURL("image/png");return B}},{key:"onCameraChanged",value:function(d){this.cameraChangedCallback=d}}]),f}(aQ))||uQ);function sG(i){var v=aG();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}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(i){return!1}}var lG=function(i){(0,Wt.Z)(f,i);var v=sG(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getServiceConstructor",value:function(){return dQ}}]),f}(YO),hae=function(){function i(){(0,Or.Z)(this,i),(0,ka.Z)(this,"projectionMatrix",Vx()),(0,ka.Z)(this,"viewMatrix",Vx()),(0,ka.Z)(this,"viewProjectionMatrix",Vx()),(0,ka.Z)(this,"ViewProjectionMatrixUncentered",Vx()),(0,ka.Z)(this,"viewUncenteredMatrix",Vx())}return(0,at.Z)(i,[{key:"syncWithMapCamera",value:function(f){var g=f.zoom,d=g===void 0?1:g,C=f.center,M=C===void 0?[0,0]:C,B=f.offsetOrigin,J=B===void 0?[0,0]:B,ue=f.cameraPosition,Ue=ue===void 0?[0,0,0]:ue,it=f.up,Ir=it===void 0?[0,1,0]:it,Wo=f.lookAt,Ca=Wo===void 0?[0,0,0]:Wo,eu=f.aspect,Bd=eu===void 0?1:eu,r0=f.near,N0=r0===void 0?.1:r0,fv=f.far,v1=fv===void 0?1e3:fv,_y=f.fov,Q1=_y===void 0?45:_y;this.zoom=d,this.center=M,z0(this.projectionMatrix,Q1/180*Math.PI,Bd,N0,v1);var iy=QA.apply(x,(0,Gd.Z)(Ue)),Uy=QA.apply(x,(0,Gd.Z)(Ca)),w_=QA.apply(x,(0,Gd.Z)(Ir));oy(this.viewMatrix,iy,Uy,w_),this.viewUncenteredMatrix=QT(this.viewMatrix),m3(this.viewMatrix,this.viewMatrix,QA(-J[0],J[1],0)),IS(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),IS(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 1048576}},{key:"getCenter",value:function(){var f=(0,_g.Z)(this.center,2),g=f[0],d=f[1];return[g,d]}},{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(f){var g=85.0511287798,d=Math.max(Math.min(g,f[1]),-g),C=256<<20,M=Math.PI/180,B=f[0]*M,J=d*M;J=Math.log(Math.tan(Math.PI/4+J/2));var ue=.5/Math.PI,Ue=.5,it=-.5/Math.PI;return M=.5,B=C*(ue*B+Ue)-215440491,J=-(C*(it*J+M)-106744817),[B,J]}}]),i}(),fae=["id","style","minZoom","maxZoom","token","mapInstance","plugin","version"],hQ,aj;function uG(i){var v=pae();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function pae(){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(i){return!1}}function fk(i,v){var f=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,g=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(f||g)&&(v||(v=document),!!v)){var d=v.head||v.getElementsByTagName("head")[0];if(!d){d=v.createElement("head");var C=v.body||v.getElementsByTagName("body")[0];C?C.parentNode.insertBefore(d,C):v.documentElement.appendChild(d)}var M=v.createElement("style");return M.type="text/css",M.styleSheet?M.styleSheet.cssText=i:M.appendChild(v.createTextNode(i)),d.appendChild(M),M}}fk(`.amap-logo{ + display: none !important; +} +.amap-copyright { + display: none !important; +} +`);var fQ=[108.92361,34.54083];window.forceWebGL=!0;var pQ="f59bcf249433f8b05caaee19f349b3d7",gQ="2.0",n$=!1,gae=null,mae=(hQ=(0,Cg.b2)(),hQ(aj=function(i){(0,Wt.Z)(f,i);var v=uG(f);function f(){var g;(0,Or.Z)(this,f);for(var d=arguments.length,C=new Array(d),M=0;MC.getLng()||B.lng3&&arguments[3]!==void 0?arguments[3]:[1,1,1],J=this.map.customCoords.lngLatToCoord(d),ue=Vx();return m3(ue,ue,QA(J[0],J[1],C)),eA(ue,ue,QA(B[0],B[1],B[2])),d3(ue,ue,M[0]),Y1(ue,ue,M[1]),zD(ue,ue,M[2]),ue}},{key:"init",value:function(){var g=(0,y_.Z)(Dv().mark(function C(){var M,B,J,ue,Ue,it,Ir,Wo,Ca,eu,Bd,r0,N0,fv,v1,_y,Q1,iy,Uy,w_,_x,ux;return Dv().wrap(function(G2){for(;;)switch(G2.prev=G2.next){case 0:if(M=this.config,B=M.id,J=M.style,ue=J===void 0?"light":J,Ue=M.minZoom,it=Ue===void 0?0:Ue,Ir=M.maxZoom,Wo=Ir===void 0?24:Ir,Ca=M.token,eu=Ca===void 0?pQ:Ca,Bd=M.mapInstance,r0=M.plugin,N0=r0===void 0?[]:r0,fv=M.version,v1=fv===void 0?gQ:fv,_y=(0,q3.Z)(M,fae),this.viewport=new hae,window.AMap||Bd){G2.next=6;break}return N0.push("Map3D"),G2.next=6,HJ().load({key:eu,version:gQ,plugins:N0});case 6:Bd?(this.map=Bd,this.$mapContainer=this.map.getContainer(),iy=this.map.getCenter(),(Q1=this.map.customCoords)===null||Q1===void 0||Q1.setCenter([iy.lng,iy.lat]),this.setCustomCoordCenter([iy.lng,iy.lat]),this.map.on("viewchange",this.handleViewChanged)):(this.$mapContainer=this.creatMapContainer(B),w_=(0,An.Z)({mapStyle:this.getMapStyleValue(ue),zooms:[it,Wo],viewMode:"3D"},_y),w_.zoom&&(w_.zoom+=1),eu===pQ&&(window._AMapSecurityConfig={securityJsCode:"2653011adeb04230b3a26cc9a780a800"},console.warn("%c".concat(this.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;")),_x=new AMap.Map(this.$mapContainer,w_),this.map=_x,ux=_x.getCenter(),(Uy=this.map.customCoords)===null||Uy===void 0||Uy.setCenter([ux.lng,ux.lat]),this.setCustomCoordCenter([ux.lng,ux.lat]),_x.on("viewchange",this.handleViewChanged)),this.initViewPort();case 8:case"end":return G2.stop()}},C,this)}));function d(){return g.apply(this,arguments)}return d}()},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"onCameraChanged",value:function(d){this.cameraChangedCallback=d}},{key:"initViewPort",value:function(){var d,C=((d=this.map.customCoords)===null||d===void 0?void 0:d.getCameraParams())||{},M=C.fov,B=C.near,J=C.far,ue=C.aspect,Ue=C.position,it=C.lookAt,Ir=C.up;this.emit("mapchange");var Wo=this.map.customCoords.getCenter(),Ca=this.map.getZoom();this.cameraChangedCallback&&(this.viewport.syncWithMapCamera({aspect:ue,far:J,fov:M,cameraPosition:Ue,lookAt:it,near:B,up:Ir,zoom:Ca-1,center:Wo,offsetOrigin:[Ue[0],Ue[1]]}),this.coordinateSystemService.setCoordinateSystem(kS.P20_2),this.cameraChangedCallback(this.viewport))}},{key:"_sub",value:function(d,C){var M=[0,0];return M[0]=d[0]-C[0],M[1]=d[1]-C[1],M}}]),f}(aQ))||aj);function vae(i){var v=yae();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function yae(){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(i){return!1}}var mQ=function(i){(0,Wt.Z)(f,i);var v=vae(f);function f(){return(0,Or.Z)(this,f),v.apply(this,arguments)}return(0,at.Z)(f,[{key:"getServiceConstructor",value:function(){return mae}}]),f}(YO),_ae={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"}}]}},vQ,lj,yQ,_Q,bQ,xQ,kL,ON,z8,wQ,r$,CQ={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},bae=12,pk=(vQ=(0,Cg.b2)(),lj=(0,Cg.f3)(su.MapConfig),yQ=(0,Cg.f3)(su.IGlobalConfigService),_Q=(0,Cg.f3)(su.ICoordinateSystemService),bQ=(0,Cg.f3)(su.IEventEmitter),vQ(xQ=(kL=function(){function i(){var v=this;(0,Or.Z)(this,i),(0,ka.Z)(this,"version","DEFAUlTMAP"),(0,ka.Z)(this,"simpleMapCoord",new eQ),(0,ka.Z)(this,"bgColor","rgba(0.0, 0.0, 0.0, 0.0)"),ne(this,"config",ON,this),ne(this,"configService",z8,this),ne(this,"coordinateSystemService",wQ,this),ne(this,"eventEmitter",r$,this),(0,ka.Z)(this,"handleCameraChanged",function(f){var g=v.map.getCenter(),d=g.lat,C=g.lng;v.emit("mapchange"),v.viewport.syncWithMapCamera({bearing:v.map.getBearing(),center:[C,d],viewportHeight:v.map.transform.height,pitch:v.map.getPitch(),viewportWidth:v.map.transform.width,zoom:v.map.getZoom(),cameraHeight:0}),v.updateCoordinateSystemService(),v.cameraChangedCallback(v.viewport)})}return(0,at.Z)(i,[{key:"setBgColor",value:function(f){this.bgColor=f}},{key:"addMarkerContainer",value:function(){var f=this.map.getCanvasContainer();this.markerContainer=Fv("div","l7-marker-container",f),this.markerContainer.setAttribute("tabindex","-1")}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"getOverlayContainer",value:function(){}},{key:"on",value:function(f,g){BI.indexOf(f)!==-1?this.eventEmitter.on(f,g):this.map.on(CQ[f]||f,g)}},{key:"off",value:function(f,g){this.map.off(CQ[f]||f,g),this.eventEmitter.off(f,g)}},{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 f=this.map.transform;return[f.width,f.height]}},{key:"getType",value:function(){return"default"}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"setZoom",value:function(f){return this.map.setZoom(f)}},{key:"getCenter",value:function(){return this.map.getCenter()}},{key:"setCenter",value:function(f){this.map.setCenter(f)}},{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(f){this.map.setBearing(f)}},{key:"zoomIn",value:function(f,g){this.map.zoomIn(f,g)}},{key:"zoomOut",value:function(f,g){this.map.zoomOut(f,g)}},{key:"setPitch",value:function(f){return this.map.setPitch(f)}},{key:"panTo",value:function(f){this.map.panTo(f)}},{key:"panBy",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy([f,g])}},{key:"fitBounds",value:function(f,g){this.map.fitBounds(f,g)}},{key:"setMaxZoom",value:function(f){this.map.setMaxZoom(f)}},{key:"setMinZoom",value:function(f){this.map.setMinZoom(f)}},{key:"setMapStatus",value:function(f){f.doubleClickZoom===!0&&this.map.doubleClickZoom.enable(),f.doubleClickZoom===!1&&this.map.doubleClickZoom.disable(),f.dragEnable===!1&&this.map.dragPan.disable(),f.dragEnable===!0&&this.map.dragPan.enable(),f.rotateEnable===!1&&this.map.dragRotate.disable(),f.dragEnable===!0&&this.map.dragRotate.enable(),f.keyboardEnable===!1&&this.map.keyboard.disable(),f.keyboardEnable===!0&&this.map.keyboard.enable(),f.zoomEnable===!1&&this.map.scrollZoom.disable(),f.zoomEnable===!0&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(f,g){this.map.flyTo({zoom:f,center:g})}},{key:"setMapStyle",value:function(f){this.map.setStyle(this.getMapStyleValue(f))}},{key:"meterToCoord",value:function(f,g){return 1}},{key:"pixelToLngLat",value:function(f){return this.map.unproject(f)}},{key:"lngLatToPixel",value:function(f){return this.map.project(f)}},{key:"containerToLngLat",value:function(f){return this.map.unproject(f)}},{key:"lngLatToContainer",value:function(f){return this.map.project(f)}},{key:"getMapStyle",value:function(){try{var f,g=(f=this.map.getStyle().sprite)!==null&&f!==void 0?f:"";return/^mapbox:\/\/sprites\/zcxduo\/\w+\/\w+$/.test(g)?g==null?void 0:g.replace(/\/\w+$/,"").replace(/sprites/,"styles"):g}catch(d){return""}}},{key:"getMapStyleConfig",value:function(){return _ae}},{key:"getMapStyleValue",value:function(f){var g;return(g=this.getMapStyleConfig()[f])!==null&&g!==void 0?g:f}},{key:"destroy",value:function(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(f){for(var g,d=arguments.length,C=new Array(d>1?d-1:0),M=1;M1?d-1:0),M=1;Mbae&&g?this.coordinateSystemService.setCoordinateSystem(kS.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(kS.LNGLAT)}}]),i}(),ON=H(kL.prototype,"config",[lj],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z8=H(kL.prototype,"configService",[yQ],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wQ=H(kL.prototype,"coordinateSystemService",[_Q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r$=H(kL.prototype,"eventEmitter",[bQ],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kL))||xQ);if(!window)throw Error("BMapGL JSAPI can only be used in Browser.");var QO=function(i){return i.notload="notload",i.loading="loading",i.loaded="loaded",i.failed="failed",i}(QO||{}),tO={key:"",BMapGL:{version:"1.0"}},eR={BMapGL:QO.notload},xB=[],cG=function(v){if(typeof v=="function"){if(eR.BMapGL===QO.loaded){v(window.BMapGL);return}xB.push(v)}},z4=function(v){return new Promise(function(f,g){if(eR.BMapGL===QO.failed)g("");else if(eR.BMapGL===QO.notload){var d=v.key,C=v.version;if(!d){g("\u8BF7\u586B\u5199key");return}tO.key=d,tO.BMapGL.version=C||tO.BMapGL.version,eR.BMapGL=QO.loading;var M=document.body||document.head;window.___onBMapGLAPILoaded=function(J){if(delete window.___onBMapGLAPILoaded,J)eR.BMapGL=QO.failed,g(J);else for(eR.BMapGL=QO.loaded;xB.length;)xB.splice(0,1)[0](window.BMapGL)};var B=document.createElement("script");B.type="text/javascript",B.src="https://api.map.baidu.com/api?type=webgl&v=".concat(tO.BMapGL.version,"&ak=").concat(tO.key,"&callback=___onBMapGLAPILoaded"),B.onerror=function(J){eR.BMapGL=QO.failed,g(J)},M.appendChild(B),cG(f)}else if(eR.BMapGL===QO.loaded){if(v.key&&v.key!==tO.key){g("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(v.version&&v.version!==tO.BMapGL.version){g("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}f(window.BMapGL)}else{if(v.key&&v.key!==tO.key){g("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(v.version&&v.version!==tO.BMapGL.version){g("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}cG(f)}})},dG=function(){delete window.BMapGL,tO={key:"",BMapGL:{version:"1.0"}},eR={BMapGL:QO.notload}},SQ={load:z4,reset:dG},EQ=["id","center","zoom","token","mapInstance","version","mapSize","minZoom","maxZoom"];function xae(i){var v=wae();return function(){var g=(0,si.Z)(i),d;if(v){var C=(0,si.Z)(this).constructor;d=Reflect.construct(g,arguments,C)}else d=g.apply(this,arguments);return(0,zs.Z)(this,d)}}function wae(){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(i){return!1}}function Cae(i,v){var f=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,g=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(f||g)&&(v||(v=document),!!v)){var d=v.head||v.getElementsByTagName("head")[0];if(!d){d=v.createElement("head");var C=v.body||v.getElementsByTagName("body")[0];C?C.parentNode.insertBefore(d,C):v.documentElement.appendChild(d)}var M=v.createElement("style");return M.type="text/css",M.styleSheet?M.styleSheet.cssText=i:M.appendChild(v.createTextNode(i)),d.appendChild(M),M}}Cae(`.BMap_cpyCtrl .anchorBL { + display: none !important; } -`);var xR="OB4BZ-D4W3U-B7VVO-4PJWW-6TKDJ-WPB77",fU="1.exp",yE={mapmove:"center_changed",camerachange:["drag","pan","rotate","pitch","zoom"],zoomchange:"zoom",dragging:"drag"},WG=function(o){(0,lt.Z)(l,o);var d=jG(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.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;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 -`,` -`).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(` -`):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 -`:"",` -`).concat(E&&d==="frag"?`#extension GL_OES_standard_derivatives : enable -`:"").concat(u?xe:"",` -`).concat(wt||"").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,`; - `)}).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;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;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. -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=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, - &: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}})},{[` - ${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}`}}},[` - ${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"]:{[` - &, - & > ${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`]:{[` - &, - & > .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}`},[` - > ${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"),` - :root { - ${Object.keys($t).map(bn=>`--${et}-${bn}: ${$t[bn]};`).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)"}},[` - &-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, - 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 - `]:{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=` - min-height:0 !important; - max-height:none !important; - height:0 !important; - visibility:hidden !important; - overflow:hidden !important; - position:absolute !important; - z-index:-1000 !important; - 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},[` - & > ${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, - > ${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},[` - &-placement-leftTop, - &-placement-bottomRight, - `]:{transformOrigin:"100% 0"},[` - &-placement-leftBottom, - &-placement-topRight, - `]:{transformOrigin:"100% 100%"},[` - &-placement-rightBottom, - &-placement-topLeft, - `]:{transformOrigin:"0 100%"},[` - &-placement-bottomLeft, - &-placement-rightTop, - `]:{transformOrigin:"0 0"},[` - &-placement-leftTop, - &-placement-leftBottom - `]:{paddingInlineEnd:zt.paddingXS},[` - &-placement-rightTop, - &-placement-rightBottom - `]:{paddingInlineStart:zt.paddingXS},[` - &-placement-topRight, - &-placement-topLeft - `]:{paddingBottom:zt.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, - ${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 - `]:{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(),[` - &-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}, - 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),{[` - ${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{[` - ${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"}),[` - ${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"}}},[` - &${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{[` - &${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}}},[` - ${rt}-prev, - ${rt}-jump-prev, - ${rt}-jump-next - `]:{marginInlineEnd:Je.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":{[` - &: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`]:{[` - > 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}-content, - > ${rt}-header, - > ${rt}-body, - > ${rt}-summary - `]:{"> table":{[` - > thead > tr > th, - > thead > tr > td, - > tbody > tr > th, - > tbody > tr > td, - > tfoot > tr > th, - > tfoot > tr > td - `]:{borderInlineEnd:xr},"> thead":{"> tr:not(:last-child) > th":{borderBottom:xr},"> tr > th::before":{backgroundColor:"transparent !important"}},[` - > thead > tr, - > tbody > tr, - > tfoot > tr - `]:{[`> ${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":{[` - > 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",[` - &${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,[` - &: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`]:{[` - ${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"},[` - ${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}`}},[` - ${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()}},[` - 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,[` - ${rt}-title, - ${rt}-footer, - ${rt}-cell, - ${rt}-thead > tr > th, - ${rt}-tbody > tr > th, - ${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},[` - &${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},[` - ${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`]:{[` - > 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,[` - > ${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, -'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:` - 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) - `,boxShadowSecondary:` - 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) - `,boxShadowTertiary:` - 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:` - 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()} - `,boxShadowDrawerRight:` - -6px 0 16px 0 rgba(0, 0, 0, 0.08), - -3px 0 6px -4px rgba(0, 0, 0, 0.12), - -9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerLeft:` - 6px 0 16px 0 rgba(0, 0, 0, 0.08), - 3px 0 6px -4px rgba(0, 0, 0, 0.12), - 9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerUp:` - 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) - `,boxShadowDrawerDown:` - 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[` - 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":{[` - &, - &:hover, - &:focus`]:{color:nr.colorSuccess}}}),Bs=()=>({[` - 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"},[` - div&, - p - `]:{marginBottom:"1em"}},Pi(nr)),{[` - & + h1${qr}, - & + h2${qr}, - & + h3${qr}, - & + h4${qr}, - & + h5${qr} - `]:{marginTop:vi},[` - div, - ul, - li, - p, - h1, - h2, - h3, - h4, - h5`]:{[` - + h1, - + h2, - + h3, - + h4, - + h5 - `]:{marginTop:vi}}}),Yi(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)"}},[` - ${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`]:{[` - ${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()+` -`})," "+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+=`'; -`+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; -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] 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 -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float opacity -gl_FragColor=color*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`attribute vec2 a_pos;uniform mat4 u_matrix; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);}`),Cd=Va(`varying vec2 v_pos; -#pragma mapbox: define highp vec4 outline_color -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 outline_color -#pragma mapbox: initialize lowp float opacity -float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos; -#pragma mapbox: define highp vec4 outline_color -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 outline_color -#pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),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; -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),gu=Va(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b; -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),iu=Va(`varying vec4 v_color;void main() {gl_FragColor=v_color; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color; -#pragma mapbox: define highp float base -#pragma mapbox: define highp float height -#pragma mapbox: define highp vec4 color -void main() { -#pragma mapbox: initialize highp float base -#pragma mapbox: initialize highp float height -#pragma mapbox: initialize highp vec4 color -vec3 normal=a_normal_ed.xyz;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; -#pragma mapbox: define lowp float base -#pragma mapbox: define lowp float height -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float base -#pragma mapbox: initialize lowp float height -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; -#pragma mapbox: define lowp float base -#pragma mapbox: define lowp float height -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float base -#pragma mapbox: initialize lowp float height -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 -? a_pos -: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),Si=Va(`#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; -#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; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;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; -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -void main() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;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; -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -#define LINE_DISTANCE_SCALE 2.0 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize mediump float width -#pragma mapbox: initialize lowp float floorwidth -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;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; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float width -#pragma mapbox: initialize lowp float floorwidth -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -#define LINE_DISTANCE_SCALE 2.0 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float width -#pragma mapbox: initialize lowp float floorwidth -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;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); -#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; -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize lowp float opacity -lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity; -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize lowp float opacity -vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? -camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`),Oa=Va(`#define SDF_PX 8.0 -uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? -camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),ga=Va(`#define SDF_PX 8.0 -#define SDF 1.0 -#define ICON 0.0 -uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? -camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`);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+`; -#else -uniform `+bi+" "+ki+" u_"+Zi+`; -#endif -`:` -#ifdef HAS_UNIFORM_u_`+Zi+` - `+bi+" "+ki+" "+Zi+" = u_"+Zi+`; -#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+`; -#else -uniform `+bi+" "+ki+" u_"+Zi+`; -#endif -`:Go==="vec4"?` -#ifndef HAS_UNIFORM_u_`+Zi+` - `+Zi+" = a_"+Zi+`; -#else - `+bi+" "+ki+" "+Zi+" = u_"+Zi+`; -#endif -`:` -#ifndef HAS_UNIFORM_u_`+Zi+` - `+Zi+" = unpack_mix_"+Go+"(a_"+Zi+", u_"+Zi+`_t); -#else - `+bi+" "+ki+" "+Zi+" = u_"+Zi+`; -#endif -`:Sn==="define"?` -#ifndef HAS_UNIFORM_u_`+Zi+` -uniform lowp float u_`+Zi+`_t; -attribute `+bi+" "+Bo+" a_"+Zi+`; -#else -uniform `+bi+" "+ki+" u_"+Zi+`; -#endif -`:Go==="vec4"?` -#ifndef HAS_UNIFORM_u_`+Zi+` - `+bi+" "+ki+" "+Zi+" = a_"+Zi+`; -#else - `+bi+" "+ki+" "+Zi+" = u_"+Zi+`; -#endif -`:` -#ifndef HAS_UNIFORM_u_`+Zi+` - `+bi+" "+ki+" "+Zi+" = unpack_mix_"+Go+"(a_"+Zi+", u_"+Zi+`_t); -#else - `+bi+" "+ki+" "+Zi+" = u_"+Zi+`; -#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+` - -`+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(` -`).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(/