@inploi/plugin-job-search 8.2.0 → 8.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Sn=require("./utils-864c9c53.cjs");require("@inploi/sdk");var Fv={exports:{}};(function(Fn,Ph){(function(Ys,Ks){Fn.exports=Ks()})(Sn.commonjsGlobal,function(){var Ys,Ks,Js;function Kl(s,gn){if(!Ys)Ys=gn;else if(!Ks)Ks=gn;else{var vi="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+Ys+")(sharedChunk); ("+Ks+")(sharedChunk); self.onerror = null;",Br={};Ys(Br),Js=gn(Br),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(Js.workerUrl=window.URL.createObjectURL(new Blob([vi],{type:"text/javascript"})))}}Kl(["exports"],function(s){var gn=1e-6,vi=typeof Float32Array<"u"?Float32Array:Array;function Br(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=i*h-a*r;return u?(n[0]=h*(u=1/u),n[1]=-r*u,n[2]=-a*u,n[3]=i*u,n):null}function ws(){var n=new vi(9);return vi!=Float32Array&&(n[1]=0,n[2]=0,n[3]=0,n[5]=0,n[6]=0,n[7]=0),n[0]=1,n[4]=1,n[8]=1,n}function xo(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=e[4],p=e[5],_=e[6],g=e[7],v=e[8];return n[0]=u*v-p*g,n[1]=a*g-r*v,n[2]=r*p-a*u,n[3]=p*_-h*v,n[4]=i*v-a*_,n[5]=a*h-i*p,n[6]=h*g-u*_,n[7]=r*_-i*g,n[8]=i*u-r*h,n}function _r(n,e,i){var r=e[0],a=e[1],h=e[2],u=e[3],p=e[4],_=e[5],g=e[6],v=e[7],b=e[8],w=i[0],E=i[1],I=i[2],P=i[3],z=i[4],R=i[5],B=i[6],k=i[7],j=i[8];return n[0]=w*r+E*u+I*g,n[1]=w*a+E*p+I*v,n[2]=w*h+E*_+I*b,n[3]=P*r+z*u+R*g,n[4]=P*a+z*p+R*v,n[5]=P*h+z*_+R*b,n[6]=B*r+k*u+j*g,n[7]=B*a+k*p+j*v,n[8]=B*h+k*_+j*b,n}function eo(){var n=new vi(16);return vi!=Float32Array&&(n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0),n[0]=1,n[5]=1,n[10]=1,n[15]=1,n}function Ht(n){var e=new vi(16);return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],e}function bt(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=1,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=1,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}function En(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=e[4],p=e[5],_=e[6],g=e[7],v=e[8],b=e[9],w=e[10],E=e[11],I=e[12],P=e[13],z=e[14],R=e[15],B=i*p-r*u,k=i*_-a*u,j=i*g-h*u,H=r*_-a*p,$=r*g-h*p,re=a*g-h*_,K=v*P-b*I,Q=v*z-w*I,ie=v*R-E*I,oe=b*z-w*P,ve=b*R-E*P,xe=w*R-E*z,Te=B*xe-k*ve+j*oe+H*ie-$*Q+re*K;return Te?(n[0]=(p*xe-_*ve+g*oe)*(Te=1/Te),n[1]=(a*ve-r*xe-h*oe)*Te,n[2]=(P*re-z*$+R*H)*Te,n[3]=(w*$-b*re-E*H)*Te,n[4]=(_*ie-u*xe-g*Q)*Te,n[5]=(i*xe-a*ie+h*Q)*Te,n[6]=(z*j-I*re-R*k)*Te,n[7]=(v*re-w*j+E*k)*Te,n[8]=(u*ve-p*ie+g*K)*Te,n[9]=(r*ie-i*ve-h*K)*Te,n[10]=(I*$-P*j+R*B)*Te,n[11]=(b*j-v*$-E*B)*Te,n[12]=(p*Q-u*oe-_*K)*Te,n[13]=(i*oe-r*Q+a*K)*Te,n[14]=(P*k-I*H-z*B)*Te,n[15]=(v*H-b*k+w*B)*Te,n):null}function hi(n,e,i){var r=e[0],a=e[1],h=e[2],u=e[3],p=e[4],_=e[5],g=e[6],v=e[7],b=e[8],w=e[9],E=e[10],I=e[11],P=e[12],z=e[13],R=e[14],B=e[15],k=i[0],j=i[1],H=i[2],$=i[3];return n[0]=k*r+j*p+H*b+$*P,n[1]=k*a+j*_+H*w+$*z,n[2]=k*h+j*g+H*E+$*R,n[3]=k*u+j*v+H*I+$*B,n[4]=(k=i[4])*r+(j=i[5])*p+(H=i[6])*b+($=i[7])*P,n[5]=k*a+j*_+H*w+$*z,n[6]=k*h+j*g+H*E+$*R,n[7]=k*u+j*v+H*I+$*B,n[8]=(k=i[8])*r+(j=i[9])*p+(H=i[10])*b+($=i[11])*P,n[9]=k*a+j*_+H*w+$*z,n[10]=k*h+j*g+H*E+$*R,n[11]=k*u+j*v+H*I+$*B,n[12]=(k=i[12])*r+(j=i[13])*p+(H=i[14])*b+($=i[15])*P,n[13]=k*a+j*_+H*w+$*z,n[14]=k*h+j*g+H*E+$*R,n[15]=k*u+j*v+H*I+$*B,n}function On(n,e,i){var r,a,h,u,p,_,g,v,b,w,E,I,P=i[0],z=i[1],R=i[2];return e===n?(n[12]=e[0]*P+e[4]*z+e[8]*R+e[12],n[13]=e[1]*P+e[5]*z+e[9]*R+e[13],n[14]=e[2]*P+e[6]*z+e[10]*R+e[14],n[15]=e[3]*P+e[7]*z+e[11]*R+e[15]):(a=e[1],h=e[2],u=e[3],p=e[4],_=e[5],g=e[6],v=e[7],b=e[8],w=e[9],E=e[10],I=e[11],n[0]=r=e[0],n[1]=a,n[2]=h,n[3]=u,n[4]=p,n[5]=_,n[6]=g,n[7]=v,n[8]=b,n[9]=w,n[10]=E,n[11]=I,n[12]=r*P+p*z+b*R+e[12],n[13]=a*P+_*z+w*R+e[13],n[14]=h*P+g*z+E*R+e[14],n[15]=u*P+v*z+I*R+e[15]),n}function ki(n,e,i){var r=i[0],a=i[1],h=i[2];return n[0]=e[0]*r,n[1]=e[1]*r,n[2]=e[2]*r,n[3]=e[3]*r,n[4]=e[4]*a,n[5]=e[5]*a,n[6]=e[6]*a,n[7]=e[7]*a,n[8]=e[8]*h,n[9]=e[9]*h,n[10]=e[10]*h,n[11]=e[11]*h,n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15],n}function jn(n,e,i){var r=Math.sin(i),a=Math.cos(i),h=e[4],u=e[5],p=e[6],_=e[7],g=e[8],v=e[9],b=e[10],w=e[11];return e!==n&&(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[4]=h*a+g*r,n[5]=u*a+v*r,n[6]=p*a+b*r,n[7]=_*a+w*r,n[8]=g*a-h*r,n[9]=v*a-u*r,n[10]=b*a-p*r,n[11]=w*a-_*r,n}function gr(n,e,i){var r=Math.sin(i),a=Math.cos(i),h=e[0],u=e[1],p=e[2],_=e[3],g=e[8],v=e[9],b=e[10],w=e[11];return e!==n&&(n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[0]=h*a-g*r,n[1]=u*a-v*r,n[2]=p*a-b*r,n[3]=_*a-w*r,n[8]=h*r+g*a,n[9]=u*r+v*a,n[10]=p*r+b*a,n[11]=_*r+w*a,n}function Cr(n,e,i){var r=Math.sin(i),a=Math.cos(i),h=e[0],u=e[1],p=e[2],_=e[3],g=e[4],v=e[5],b=e[6],w=e[7];return e!==n&&(n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[0]=h*a+g*r,n[1]=u*a+v*r,n[2]=p*a+b*r,n[3]=_*a+w*r,n[4]=g*a-h*r,n[5]=v*a-u*r,n[6]=b*a-p*r,n[7]=w*a-_*r,n}function Pr(n,e){return n[0]=e[0],n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=e[1],n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=e[2],n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}function Ts(n,e,i){var r,a,h,u=i[0],p=i[1],_=i[2],g=Math.sqrt(u*u+p*p+_*_);return g<gn?null:(u*=g=1/g,p*=g,_*=g,r=Math.sin(e),a=Math.cos(e),n[0]=u*u*(h=1-a)+a,n[1]=p*u*h+_*r,n[2]=_*u*h-p*r,n[3]=0,n[4]=u*p*h-_*r,n[5]=p*p*h+a,n[6]=_*p*h+u*r,n[7]=0,n[8]=u*_*h+p*r,n[9]=p*_*h-u*r,n[10]=_*_*h+a,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n)}function Ka(n,e){var i=e[0],r=e[1],a=e[2],h=e[4],u=e[5],p=e[6],_=e[8],g=e[9],v=e[10];return n[0]=Math.sqrt(i*i+r*r+a*a),n[1]=Math.sqrt(h*h+u*u+p*p),n[2]=Math.sqrt(_*_+g*g+v*v),n}function Ja(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=i+i,p=r+r,_=a+a,g=i*u,v=r*u,b=r*p,w=a*u,E=a*p,I=a*_,P=h*u,z=h*p,R=h*_;return n[0]=1-b-I,n[1]=v+R,n[2]=w-z,n[3]=0,n[4]=v-R,n[5]=1-g-I,n[6]=E+P,n[7]=0,n[8]=w+z,n[9]=E-P,n[10]=1-g-b,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}var Qa=hi;function Jt(){var n=new vi(3);return vi!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0),n}function Jl(n){var e=new vi(3);return e[0]=n[0],e[1]=n[1],e[2]=n[2],e}function rr(n){var e=n[0],i=n[1],r=n[2];return Math.sqrt(e*e+i*i+r*r)}function ui(n,e,i){var r=new vi(3);return r[0]=n,r[1]=e,r[2]=i,r}function pi(n,e,i,r){return n[0]=e,n[1]=i,n[2]=r,n}function Gi(n,e,i){return n[0]=e[0]+i[0],n[1]=e[1]+i[1],n[2]=e[2]+i[2],n}function to(n,e,i){return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n[2]=e[2]-i[2],n}function kr(n,e,i){return n[0]=e[0]*i[0],n[1]=e[1]*i[1],n[2]=e[2]*i[2],n}function io(n,e,i){return n[0]=Math.min(e[0],i[0]),n[1]=Math.min(e[1],i[1]),n[2]=Math.min(e[2],i[2]),n}function Nr(n,e,i){return n[0]=Math.max(e[0],i[0]),n[1]=Math.max(e[1],i[1]),n[2]=Math.max(e[2],i[2]),n}function bi(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n[2]=e[2]*i,n}function yr(n,e,i,r){return n[0]=e[0]+i[0]*r,n[1]=e[1]+i[1]*r,n[2]=e[2]+i[2]*r,n}function Ql(n,e){var i=e[0]-n[0],r=e[1]-n[1],a=e[2]-n[2];return Math.sqrt(i*i+r*r+a*a)}function el(n,e){var i=e[0]-n[0],r=e[1]-n[1],a=e[2]-n[2];return i*i+r*r+a*a}function ec(n){var e=n[0],i=n[1],r=n[2];return e*e+i*i+r*r}function Uo(n,e){return n[0]=-e[0],n[1]=-e[1],n[2]=-e[2],n}function si(n,e){var i=e[0],r=e[1],a=e[2],h=i*i+r*r+a*a;return h>0&&(h=1/Math.sqrt(h)),n[0]=e[0]*h,n[1]=e[1]*h,n[2]=e[2]*h,n}function zi(n,e){return n[0]*e[0]+n[1]*e[1]+n[2]*e[2]}function Cn(n,e,i){var r=e[0],a=e[1],h=e[2],u=i[0],p=i[1],_=i[2];return n[0]=a*_-h*p,n[1]=h*u-r*_,n[2]=r*p-a*u,n}function Ss(n,e,i,r){var a=e[0],h=e[1],u=e[2];return n[0]=a+r*(i[0]-a),n[1]=h+r*(i[1]-h),n[2]=u+r*(i[2]-u),n}function Ui(n,e,i){var r=e[0],a=e[1],h=e[2],u=i[3]*r+i[7]*a+i[11]*h+i[15];return n[0]=(i[0]*r+i[4]*a+i[8]*h+i[12])/(u=u||1),n[1]=(i[1]*r+i[5]*a+i[9]*h+i[13])/u,n[2]=(i[2]*r+i[6]*a+i[10]*h+i[14])/u,n}function jo(n,e,i){var r=e[0],a=e[1],h=e[2];return n[0]=r*i[0]+a*i[3]+h*i[6],n[1]=r*i[1]+a*i[4]+h*i[7],n[2]=r*i[2]+a*i[5]+h*i[8],n}function Go(n,e,i){var r=i[0],a=i[1],h=i[2],u=i[3],p=e[0],_=e[1],g=e[2],v=a*g-h*_,b=h*p-r*g,w=r*_-a*p;return n[0]=p+u*(v+=v)+a*(w+=w)-h*(b+=b),n[1]=_+u*b+h*v-r*w,n[2]=g+u*w+r*b-a*v,n}function Es(n){return n[0]=0,n[1]=0,n[2]=0,n}function Vr(n,e){return n[0]===e[0]&&n[1]===e[1]&&n[2]===e[2]}var ji=to,Qs=kr,qo=rr;function ea(){var n=new vi(4);return vi!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0,n[3]=0),n}function Is(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n[2]=e[2]*i,n[3]=e[3]*i,n}function tl(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=i*i+r*r+a*a+h*h;return u>0&&(u=1/Math.sqrt(u)),n[0]=i*u,n[1]=r*u,n[2]=a*u,n[3]=h*u,n}function or(n,e){return n[0]*e[0]+n[1]*e[1]+n[2]*e[2]+n[3]*e[3]}function Wn(n,e,i){var r=e[0],a=e[1],h=e[2],u=e[3];return n[0]=i[0]*r+i[4]*a+i[8]*h+i[12]*u,n[1]=i[1]*r+i[5]*a+i[9]*h+i[13]*u,n[2]=i[2]*r+i[6]*a+i[10]*h+i[14]*u,n[3]=i[3]*r+i[7]*a+i[11]*h+i[15]*u,n}function vo(){var n=new vi(4);return vi!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0),n[3]=1,n}function bo(n){return n[0]=0,n[1]=0,n[2]=0,n[3]=1,n}function $o(n,e,i){i*=.5;var r=e[0],a=e[1],h=e[2],u=e[3],p=Math.sin(i),_=Math.cos(i);return n[0]=r*_+u*p,n[1]=a*_+h*p,n[2]=h*_-a*p,n[3]=u*_-r*p,n}function As(n,e,i){i*=.5;var r=e[0],a=e[1],h=e[2],u=e[3],p=Math.sin(i),_=Math.cos(i);return n[0]=r*_-h*p,n[1]=a*_+u*p,n[2]=h*_+r*p,n[3]=u*_-a*p,n}Jt(),ea();var Gn,ta,xr,il=tl,wo=(Gn=Jt(),ta=ui(1,0,0),xr=ui(0,1,0),function(n,e,i){var r=zi(e,i);return r<-.999999?(Cn(Gn,ta,e),qo(Gn)<1e-6&&Cn(Gn,xr,e),si(Gn,Gn),function(a,h,u){u*=.5;var p=Math.sin(u);a[0]=p*h[0],a[1]=p*h[1],a[2]=p*h[2],a[3]=Math.cos(u)}(n,Gn,Math.PI),n):r>.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(Cn(Gn,e,i),n[0]=Gn[0],n[1]=Gn[1],n[2]=Gn[2],n[3]=1+r,il(n,n))});function Pn(){var n=new vi(2);return vi!=Float32Array&&(n[0]=0,n[1]=0),n}function To(n,e){var i=new vi(2);return i[0]=n,i[1]=e,i}function So(n,e,i){return n[0]=e,n[1]=i,n}function Ho(n,e,i){return n[0]=e[0]+i[0],n[1]=e[1]+i[1],n}function Eo(n,e,i){return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n}function Zo(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n}function Wo(n){var e=n[0],i=n[1];return Math.sqrt(e*e+i*i)}function ia(n,e){var i=e[0],r=e[1],a=i*i+r*r;return a>0&&(a=1/Math.sqrt(a)),n[0]=e[0]*a,n[1]=e[1]*a,n}function mi(n,e){return n[0]*e[0]+n[1]*e[1]}vo(),vo(),ws();var In,tc,na=Eo;function vr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}Pn();var Dh=function(){if(tc)return In;function n(e,i,r,a){this.cx=3*e,this.bx=3*(r-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*i,this.by=3*(a-i)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=i,this.p2x=r,this.p2y=a}return tc=1,In=n,n.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,i){if(i===void 0&&(i=1e-6),e<0)return 0;if(e>1)return 1;for(var r=e,a=0;a<8;a++){var h=this.sampleCurveX(r)-e;if(Math.abs(h)<i)return r;var u=this.sampleCurveDerivativeX(r);if(Math.abs(u)<1e-6)break;r-=h/u}var p=0,_=1;for(r=e,a=0;a<20&&(h=this.sampleCurveX(r),!(Math.abs(h-e)<i));a++)e>h?p=r:_=r,r=.5*(_-p)+p;return r},solve:function(e,i){return this.sampleCurveY(this.solveCurveX(e,i))}},In}(),ra=vr(Dh);function Oe(n,e){this.x=n,this.y=e}function Io(n,e){if(Array.isArray(n)){if(!Array.isArray(e)||n.length!==e.length)return!1;for(let i=0;i<n.length;i++)if(!Io(n[i],e[i]))return!1;return!0}if(typeof n=="object"&&n!==null&&e!==null){if(typeof e!="object"||Object.keys(n).length!==Object.keys(e).length)return!1;for(const i in n)if(!Io(n[i],e[i]))return!1;return!0}return n===e}Oe.prototype={clone(){return new Oe(this.x,this.y)},add(n){return this.clone()._add(n)},sub(n){return this.clone()._sub(n)},multByPoint(n){return this.clone()._multByPoint(n)},divByPoint(n){return this.clone()._divByPoint(n)},mult(n){return this.clone()._mult(n)},div(n){return this.clone()._div(n)},rotate(n){return this.clone()._rotate(n)},rotateAround(n,e){return this.clone()._rotateAround(n,e)},matMult(n){return this.clone()._matMult(n)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(n){return this.x===n.x&&this.y===n.y},dist(n){return Math.sqrt(this.distSqr(n))},distSqr(n){const e=n.x-this.x,i=n.y-this.y;return e*e+i*i},angle(){return Math.atan2(this.y,this.x)},angleTo(n){return Math.atan2(this.y-n.y,this.x-n.x)},angleWith(n){return this.angleWithSep(n.x,n.y)},angleWithSep(n,e){return Math.atan2(this.x*e-this.y*n,this.x*n+this.y*e)},_matMult(n){const e=n[2]*this.x+n[3]*this.y;return this.x=n[0]*this.x+n[1]*this.y,this.y=e,this},_add(n){return this.x+=n.x,this.y+=n.y,this},_sub(n){return this.x-=n.x,this.y-=n.y,this},_mult(n){return this.x*=n,this.y*=n,this},_div(n){return this.x/=n,this.y/=n,this},_multByPoint(n){return this.x*=n.x,this.y*=n.y,this},_divByPoint(n){return this.x/=n.x,this.y/=n.y,this},_unit(){return this._div(this.mag()),this},_perp(){const n=this.y;return this.y=this.x,this.x=-n,this},_rotate(n){const e=Math.cos(n),i=Math.sin(n),r=i*this.x+e*this.y;return this.x=e*this.x-i*this.y,this.y=r,this},_rotateAround(n,e){const i=Math.cos(n),r=Math.sin(n),a=e.y+r*(this.x-e.x)+i*(this.y-e.y);return this.x=e.x+i*(this.x-e.x)-r*(this.y-e.y),this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:Oe},Oe.convert=function(n){if(n instanceof Oe)return n;if(Array.isArray(n))return new Oe(+n[0],+n[1]);if(n.x!==void 0&&n.y!==void 0)return new Oe(+n.x,+n.y);throw new Error("Expected [x, y] or {x, y} point format")};const zh=Math.PI/180,nl=180/Math.PI;function Nt(n){return n*zh}function de(n){return n*nl}const O=[[0,0],[1,0],[1,1],[0,1]];function U(n){if(n<=0)return 0;if(n>=1)return 1;const e=n*n,i=e*n;return 4*(n<.5?i:3*(n-e)+i-.75)}function X(n,e,i,r){const a=new ra(n,e,i,r);return function(h){return a.solve(h)}}const se=X(.25,.1,.25,1);function Y(n,e,i){return Math.min(i,Math.max(e,n))}function he(n,e,i){return(i=Y((i-n)/(e-n),0,1))*i*(3-2*i)}function ge(n,e,i){const r=i-e,a=((n-e)%r+r)%r+e;return a===e?i:a}function ue(n,e,i){if(!n.length)return i(null,[]);let r=n.length;const a=new Array(n.length);let h=null;n.forEach((u,p)=>{e(u,(_,g)=>{_&&(h=_),a[p]=g,--r===0&&i(h,a)})})}let be=1;function Be(){return be++}function De(n){return n<=1?1:Math.pow(2,Math.ceil(Math.log2(n)))}function Ye(n,e){n.forEach(i=>{e[i]&&(e[i]=e[i].bind(e))})}function at(n,e,i){const r={};for(const a in n)r[a]=e.call(this,n[a],a,n);return r}function ct(n,e,i){const r={};for(const a in n)e.call(this,n[a],a,n)&&(r[a]=n[a]);return r}function yt(n){return Array.isArray(n)?n.map(yt):typeof n=="object"&&n?at(n,yt):n}function wt(n,e){for(let i=0;i<n.length;i++)if(e.indexOf(n[i])>=0)return!0;return!1}const _t={};function mt(n){_t[n]||(typeof console<"u"&&console.warn(n),_t[n]=!0)}function oi(n,e,i){return(i.y-n.y)*(e.x-n.x)>(e.y-n.y)*(i.x-n.x)}function Hi(n){let e=0;for(let i,r,a=0,h=n.length,u=h-1;a<h;u=a++)i=n[a],r=n[u],e+=(r.x-i.x)*(i.y+r.y);return e}function Li([n,e,i]){const r=Nt(e+90),a=Nt(i);return{x:n*Math.cos(r)*Math.sin(a),y:n*Math.sin(r)*Math.sin(a),z:n*Math.cos(a),azimuthal:e,polar:i}}function Ni(n){return(typeof self<"u"||n!==void 0)&&typeof WorkerGlobalScope<"u"&&(n!==void 0?n:self)instanceof WorkerGlobalScope}function _i(n){const e={};if(n.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(i,r,a,h)=>{const u=a||h;return e[r]=!u||u.toLowerCase(),""}),e["max-age"]){const i=parseInt(e["max-age"],10);isNaN(i)?delete e["max-age"]:e["max-age"]=i}return e}let kt=null;function wi(n,e){return[n[4*e],n[4*e+1],n[4*e+2],n[4*e+3]]}function ri(n,e,i,r){for(;e<i;){const a=e+i>>1;n[a]<r?e=a+1:i=a}return e}function gi(n,e,i,r){for(;e<i;){const a=e+i>>1;n[a]<=r?e=a+1:i=a}return e}function Ti(n){return n>0?1/(1.001-n):1+n}function An(n){return n>0?1-1/(1.001-n):-n}function yn(n,e,i){return(n-e.min)*(i.max-i.min)/(e.max-e.min)+i.min}const Ji={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!Ji.API_URL)return null;try{const n=new URL(Ji.API_URL);return n.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":n.hostname==="api.mapbox.com"?"https://events.mapbox.com/events/v2":null}catch{return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",BUILDING_GEN_URL:"https://api.mapbox.com/mapbox-gl-js/building-gen/building_gen_v1.2.4.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1"};function no(n){return Ji.API_URL_REGEX.test(n)}function Ao(n){return Ji.API_SPRITE_REGEX.test(n)}let ro,rl,oa,ic,Rr,Ms;function ol(){return ro==null&&(ro=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),ro}const oo={now:()=>ic!==void 0?ic:performance.now(),setNow(n){ic=n},restoreNow(){ic=void 0},frame(n){const e=requestAnimationFrame(n);return{cancel:()=>cancelAnimationFrame(e)}},getImageData(n,e=0){const{width:i,height:r}=n;Rr||(Rr=document.createElement("canvas"));const a=Rr.getContext("2d",{willReadFrequently:!0});if(!a)throw new Error("failed to create canvas 2d context");return(i>Rr.width||r>Rr.height)&&(Rr.width=i,Rr.height=r),a.clearRect(-e,-e,i+2*e,r+2*e),a.drawImage(n,0,0,i,r),a.getImageData(-e,-e,i+2*e,r+2*e)},resolveURL:n=>(rl||(rl=document.createElement("a")),rl.href=n,rl.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(oa==null&&(oa=window.matchMedia("(prefers-reduced-motion: reduce)")),oa.matches)},hasCanvasFingerprintNoise(){if(Ms!==void 0)return Ms;if(!ol())return Ms=!1,!1;const n=new OffscreenCanvas(85,1),e=n.getContext("2d",{willReadFrequently:!0});let i=0;for(let a=0;a<n.width;++a)e.fillStyle=`rgba(${i++},${i++},${i++}, 255)`,e.fillRect(a,0,1,1);const r=e.getImageData(0,0,n.width,n.height);i=0;for(let a=0;a<r.data.length;++a)if(a%4!=3&&i++!==r.data[a])return Ms=!0,!0;return Ms=!1,!1}};function Lh(n,e){const i=n.indexOf("?");if(i<0)return`${n}?${new URLSearchParams(e).toString()}`;const r=new URLSearchParams(n.slice(i));for(const a in e)r.set(a,e[a]);return`${n.slice(0,i)}?${r.toString()}`}function Fh(n,e={persistentParams:[]}){const i=n.indexOf("?");if(i<0)return n;const r=new URLSearchParams,a=new URLSearchParams(n.slice(i));for(const u of e.persistentParams){const p=a.get(u);p&&r.set(u,p)}const h=r.toString();return`${n.slice(0,i)}${h.length>0?`?${h}`:""}`}const Yd="mapbox-tiles";let Kd=500,Oh=50;const Bh=["language","worldview","jobid"];let xn;function Ur(){try{return caches}catch{}}function jr(){const n=Ur();n&&xn==null&&(xn=n.open(Yd))}let Dr=1/0;const so={supported:!1,testSupport:function(n){!nc&&Cs&&(Ps?Jd(n):Xo=n)}};let Xo,Cs,nc=!1,Ps=!1;const rc=typeof self<"u"?self:{};function Jd(n){const e=n.createTexture();n.bindTexture(n.TEXTURE_2D,e);try{if(n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,Cs),n.isContextLost())return;so.supported=!0}catch{}n.deleteTexture(e),nc=!0}rc.document&&(Cs=rc.document.createElement("img"),Cs.onload=function(){Xo&&Jd(Xo),Xo=null,Ps=!0},Cs.onerror=function(){nc=!0,Xo=null},Cs.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const sl={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Iconset:"Iconset",Image:"Image",Model:"Model"};Object.freeze(sl);class sr extends Error{constructor(e,i,r){i===401&&no(r)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=i,this.url=r}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const oc=Ni()?()=>self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,Mo=function(n,e){return/^file:/.test(i=n.url)||/^file:/.test(oc())&&!/^\w+:/.test(i)?function(r,a){const h=new XMLHttpRequest;h.open(r.method||"GET",r.url,!0),r.type==="arrayBuffer"&&(h.responseType="arraybuffer");for(const u in r.headers)h.setRequestHeader(u,r.headers[u]);return r.type==="json"&&(h.responseType="text",h.setRequestHeader("Accept","application/json")),h.withCredentials=r.credentials==="include",h.onerror=()=>{a(new Error(h.statusText))},h.onload=()=>{if((h.status>=200&&h.status<300||h.status===0)&&h.response!==null){let u=h.response;if(r.type==="json")try{u=JSON.parse(h.response)}catch(_){return a(_)}const p=new Headers;h.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(_=>{const g=_.split(": "),v=g.shift(),b=g.join(": ");p.append(v,b)}),a(null,u,p)}else a(new sr(h.statusText,h.status,r.url))},h.send(r.body),{cancel:()=>h.abort()}}(n,e):function(r,a){const h=new AbortController,u=new Request(r.url,{method:r.method||"GET",body:r.body,credentials:r.credentials,headers:r.headers,referrer:oc(),referrerPolicy:r.referrerPolicy,signal:h.signal});let p=!1,_=!1;const g=(v=u.url).indexOf("sku=")>0&&no(v);var v;r.type==="json"&&u.headers.set("Accept","application/json");const b=(E,I,P)=>{if(_)return;if(E&&E.message!=="SecurityError"&&mt(E.toString()),I&&P)return w(I);const z=Date.now();fetch(u).then(R=>{if(R.ok){const B=g?R.clone():null;return w(R,B,z)}return a(new sr(R.statusText,R.status,r.url))}).catch(R=>{R.name!=="AbortError"&&a(new Error(`${R.message} ${r.url}`))})},w=(E,I,P)=>{(r.type==="arrayBuffer"?E.arrayBuffer():r.type==="json"?E.json():E.text()).then(z=>{_||(I&&P&&function(R,B,k){if(jr(),xn==null)return;const j=_i(B.headers.get("cache-control")||"");if(j["no-store"])return;const H={status:B.status,statusText:B.statusText,headers:new Headers};B.headers.forEach((ie,oe)=>H.headers.set(oe,ie)),j["max-age"]&&H.headers.set("Expires",new Date(k+1e3*j["max-age"]).toUTCString());const $=H.headers.get("expires");if(!$||new Date($).getTime()-k<42e4)return;let re=Fh(R.url,{persistentParams:Bh});if(B.status===206){const ie=R.headers.get("Range");if(!ie)return;H.status=200,re=Lh(re,{range:ie})}const K=new Response((Q=B.status)!==200&&Q!==404&&[101,103,204,205,304].includes(Q)?null:B.body,H);var Q;jr(),xn!=null&&xn.then(ie=>ie.put(re,K)).catch(ie=>mt(ie.message))}(u,I,P),p=!0,a(null,z,E.headers))}).catch(z=>{_||a(new Error(z.message))})};return g?function(E,I){if(jr(),xn==null)return I(null);xn.then(P=>{let z=Fh(E.url,{persistentParams:Bh});const R=E.headers.get("Range");R&&(z=Lh(z,{range:R})),P.match(z).then(B=>{const k=function(j){if(!j)return!1;const H=new Date(j.headers.get("expires")||0),$=_i(j.headers.get("cache-control")||"");return Number(H)>Date.now()&&!$["no-cache"]}(B);P.delete(z).catch(I),k&&P.put(z,B.clone()).catch(I),I(null,B,k)}).catch(I)}).catch(I)}(u,b):b(null,null),{cancel:()=>{_=!0,p||h.abort()}}}(n,e);var i},al=function(n,e){return Mo(Object.assign(n,{type:"arrayBuffer"}),e)};function gm(n){const e=document.createElement("a");return e.href=n,e.protocol===location.protocol&&e.host===location.host}let ll,Vt;ll=[],Vt=0;const sc=function(n,e){if(so.supported&&(n.headers||(n.headers={}),n.headers.accept="image/webp,*/*"),Vt>=Ji.MAX_PARALLEL_IMAGE_REQUESTS){const h={requestParameters:n,callback:e,cancelled:!1,cancel(){this.cancelled=!0}};return ll.push(h),h}Vt++;let i=!1;const r=()=>{if(!i)for(i=!0,Vt--;ll.length&&Vt<Ji.MAX_PARALLEL_IMAGE_REQUESTS;){const h=ll.shift(),{requestParameters:u,callback:p,cancelled:_}=h;_||(h.cancel=sc(u,p).cancel)}},a=al(n,(h,u,p)=>{r(),h?e(h):u&&function(_,g){const v=new Blob([new Uint8Array(_)],{type:"image/png"});createImageBitmap(v).then(b=>{g(null,b)}).catch(b=>{g(new Error(`Could not load image because of ${b.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(u,(_,g)=>e(_,g,p))});return{cancel:()=>{a.cancel(),r()}}};var kh,Qd,ep,Yo={exports:{}},cl={exports:{}},hl={exports:{}},Nh=function(){if(ep)return Yo.exports;ep=1;var n=(kh||(kh=1,cl.exports=function(i,r){var a,h,u,p,_,g,v,b;for(h=i.length-(a=3&i.length),u=r,_=3432918353,g=461845907,b=0;b<h;)v=255&i.charCodeAt(b)|(255&i.charCodeAt(++b))<<8|(255&i.charCodeAt(++b))<<16|(255&i.charCodeAt(++b))<<24,++b,u=27492+(65535&(p=5*(65535&(u=(u^=v=(65535&(v=(v=(65535&v)*_+(((v>>>16)*_&65535)<<16)&4294967295)<<15|v>>>17))*g+(((v>>>16)*g&65535)<<16)&4294967295)<<13|u>>>19))+((5*(u>>>16)&65535)<<16)&4294967295))+(((p>>>16)+58964&65535)<<16);switch(v=0,a){case 3:v^=(255&i.charCodeAt(b+2))<<16;case 2:v^=(255&i.charCodeAt(b+1))<<8;case 1:u^=v=(65535&(v=(v=(65535&(v^=255&i.charCodeAt(b)))*_+(((v>>>16)*_&65535)<<16)&4294967295)<<15|v>>>17))*g+(((v>>>16)*g&65535)<<16)&4294967295}return u^=i.length,u=2246822507*(65535&(u^=u>>>16))+((2246822507*(u>>>16)&65535)<<16)&4294967295,u=3266489909*(65535&(u^=u>>>13))+((3266489909*(u>>>16)&65535)<<16)&4294967295,(u^=u>>>16)>>>0}),cl.exports),e=(Qd||(Qd=1,hl.exports=function(i,r){for(var a,h=i.length,u=r^h,p=0;h>=4;)a=1540483477*(65535&(a=255&i.charCodeAt(p)|(255&i.charCodeAt(++p))<<8|(255&i.charCodeAt(++p))<<16|(255&i.charCodeAt(++p))<<24))+((1540483477*(a>>>16)&65535)<<16),u=1540483477*(65535&u)+((1540483477*(u>>>16)&65535)<<16)^(a=1540483477*(65535&(a^=a>>>24))+((1540483477*(a>>>16)&65535)<<16)),h-=4,++p;switch(h){case 3:u^=(255&i.charCodeAt(p+2))<<16;case 2:u^=(255&i.charCodeAt(p+1))<<8;case 1:u=1540483477*(65535&(u^=255&i.charCodeAt(p)))+((1540483477*(u>>>16)&65535)<<16)}return u=1540483477*(65535&(u^=u>>>13))+((1540483477*(u>>>16)&65535)<<16),(u^=u>>>15)>>>0}),hl.exports);return Yo.exports=n,Yo.exports.murmur3=n,Yo.exports.murmur2=e,Yo.exports}(),ac=vr(Nh);class Gr{constructor(e,...i){Object.assign(this,i[0]||{}),this.type=e}}class lc extends Gr{constructor(e,i={}){super("error",Object.assign({error:e},i))}}function Vh(n,e,i){i[n]&&i[n].indexOf(e)!==-1||(i[n]=i[n]||[],i[n].push(e))}function Uh(n,e,i){if(i&&i[n]){const r=i[n].indexOf(e);r!==-1&&i[n].splice(r,1)}}class qr{on(e,i){return this._listeners=this._listeners||{},Vh(e,i,this._listeners),this}off(e,i){return Uh(e,i,this._listeners),Uh(e,i,this._oneTimeListeners),this}once(e,i){return i?(this._oneTimeListeners=this._oneTimeListeners||{},Vh(e,i,this._oneTimeListeners),this):new Promise(r=>{this.once(e,r)})}fire(e,i){const r=typeof e=="string"?new Gr(e,i):e,a=r.type;if(this.listens(a)){r.target=this;const h=this._listeners&&this._listeners[a]?this._listeners[a].slice():[];for(const _ of h)_.call(this,r);const u=this._oneTimeListeners&&this._oneTimeListeners[a]?this._oneTimeListeners[a].slice():[];for(const _ of u)Uh(a,_,this._oneTimeListeners),_.call(this,r);const p=this._eventedParent;if(p){const _=typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData;Object.assign(r,_),p.fire(r)}}else r instanceof lc&&console.error(r.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,i){return this._eventedParent=e,this._eventedParentData=i,this}}class Xn{constructor(e){typeof e=="string"?this.name=e:(this.name=e.name,this.iconsetId=e.iconsetId)}static from(e){return new Xn(e)}static toString(e){return e.iconsetId?`${e.name}${e.iconsetId}`:e.name}static parse(e){const[i,r]=e.split("");return new Xn({name:i,iconsetId:r})}static isEqual(e,i){return e.name===i.name&&e.iconsetId===i.iconsetId}toString(){return Xn.toString(this)}serialize(){return{name:this.name,iconsetId:this.iconsetId}}}var cc,br={},jh=function(){if(cc)return br;cc=1;var n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function e(h){return(h=Math.round(h))<0?0:h>255?255:h}function i(h){return e(h[h.length-1]==="%"?parseFloat(h)/100*255:parseInt(h))}function r(h){return(u=h[h.length-1]==="%"?parseFloat(h)/100:parseFloat(h))<0?0:u>1?1:u;var u}function a(h,u,p){return p<0?p+=1:p>1&&(p-=1),6*p<1?h+(u-h)*p*6:2*p<1?u:3*p<2?h+(u-h)*(2/3-p)*6:h}try{br.parseCSSColor=function(h){var u,p=h.replace(/ /g,"").toLowerCase();if(p in n)return n[p].slice();if(p[0]==="#")return p.length===4?(u=parseInt(p.substr(1),16))>=0&&u<=4095?[(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1]:null:p.length===7&&(u=parseInt(p.substr(1),16))>=0&&u<=16777215?[(16711680&u)>>16,(65280&u)>>8,255&u,1]:null;var _=p.indexOf("("),g=p.indexOf(")");if(_!==-1&&g+1===p.length){var v=p.substr(0,_),b=p.substr(_+1,g-(_+1)).split(","),w=1;switch(v){case"rgba":if(b.length!==4)return null;w=r(b.pop());case"rgb":return b.length!==3?null:[i(b[0]),i(b[1]),i(b[2]),w];case"hsla":if(b.length!==4)return null;w=r(b.pop());case"hsl":if(b.length!==3)return null;var E=(parseFloat(b[0])%360+360)%360/360,I=r(b[1]),P=r(b[2]),z=P<=.5?P*(I+1):P+I-P*I,R=2*P-z;return[e(255*a(R,z,E+1/3)),e(255*a(R,z,E)),e(255*a(R,z,E-1/3)),w];default:return null}}return null}}catch{}return br}();class Yt{constructor(e,i,r,a=1){this.r=e,this.g=i,this.b=r,this.a=a}static parse(e){if(!e)return;if(e instanceof Yt)return e;if(typeof e!="string")return;const i=jh.parseCSSColor(e);return i?new Yt(i[0]/255,i[1]/255,i[2]/255,i[3]):void 0}toString(){const[e,i,r,a]=[this.r,this.g,this.b,this.a];return`rgba(${Math.round(255*e)},${Math.round(255*i)},${Math.round(255*r)},${a})`}toNonPremultipliedRenderColor(e){const{r:i,g:r,b:a,a:h}=this;return new tp(e,i,r,a,h)}toPremultipliedRenderColor(e){const{r:i,g:r,b:a,a:h}=this;return new ip(e,i*h,r*h,a*h,h)}clone(){return new Yt(this.r,this.g,this.b,this.a)}}class Gh{constructor(e,i,r,a,h,u=!1){if(this.premultiplied=!1,this.premultiplied=u,e){const p=e.image.height,_=p*p;this.premultiplied?(i=h===0?0:i/h*(p-1),r=h===0?0:r/h*(p-1),a=h===0?0:a/h*(p-1)):(i*=p-1,r*=p-1,a*=p-1),i=Math.max(0,Math.min(p-1,i)),r=Math.max(0,Math.min(p-1,r)),a=Math.max(0,Math.min(p-1,a));const g=Math.floor(i),v=Math.floor(r),b=Math.floor(a),w=Math.ceil(i),E=Math.ceil(r),I=Math.ceil(a),P=i-g,z=r-v,R=a-b,B=e.image.data,k=4*(g+v*_+b*p),j=4*(g+v*_+I*p),H=4*(g+E*_+b*p),$=4*(g+E*_+I*p),re=4*(w+v*_+b*p),K=4*(w+v*_+I*p),Q=4*(w+E*_+b*p),ie=4*(w+E*_+I*p);this.r=ut(ut(ut(B[k],B[j],R),ut(B[H],B[$],R),z),ut(ut(B[re],B[K],R),ut(B[Q],B[ie],R),z),P)/255*(this.premultiplied?h:1),this.g=ut(ut(ut(B[k+1],B[j+1],R),ut(B[H+1],B[$+1],R),z),ut(ut(B[re+1],B[K+1],R),ut(B[Q+1],B[ie+1],R),z),P)/255*(this.premultiplied?h:1),this.b=ut(ut(ut(B[k+2],B[j+2],R),ut(B[H+2],B[$+2],R),z),ut(ut(B[re+2],B[K+2],R),ut(B[Q+2],B[ie+2],R),z),P)/255*(this.premultiplied?h:1),this.a=h}else this.r=i,this.g=r,this.b=a,this.a=h}toArray(){const{r:e,g:i,b:r,a}=this;return[255*e,255*i,255*r,a]}toHslaArray(){let{r:e,g:i,b:r,a}=this;if(this.premultiplied){if(a===0)return[0,0,0,0];const I=1/a;e*=I,i*=I,r*=I}const h=Math.min(Math.max(e,0),1),u=Math.min(Math.max(i,0),1),p=Math.min(Math.max(r,0),1),_=Math.min(h,u,p),g=Math.max(h,u,p),v=g-_,b=.5*(_+g);if(v===0)return[0,0,100*b,a];const w=b>.5?v/(2-g-_):v/(g+_);let E;switch(g){case h:E=60*((u-p)/v+(u<p?6:0));break;case u:E=60*((p-h)/v+2);break;default:E=60*((h-u)/v+4)}return[E,100*w,100*b,a]}toArray01(){const{r:e,g:i,b:r,a}=this;return[e,i,r,a]}toArray01Scaled(e){const{r:i,g:r,b:a}=this;return[i*e,r*e,a*e]}toArray01Linear(){const{r:e,g:i,b:r,a}=this;return[Math.pow(e,2.2),Math.pow(i,2.2),Math.pow(r,2.2),a]}}class tp extends Gh{constructor(e,i,r,a,h){super(e,i,r,a,h,!1)}}class ip extends Gh{constructor(e,i,r,a,h){super(e,i,r,a,h,!0)}}function ut(n,e,i){return n*(1-i)+e*i}function qh(n,e,i){return n.map((r,a)=>ut(r,e[a],i))}Yt.black=new Yt(0,0,0,1),Yt.white=new Yt(1,1,1,1),Yt.transparent=new Yt(0,0,0,0),Yt.red=new Yt(1,0,0,1),Yt.blue=new Yt(0,0,1,1);var ul=Object.freeze({__proto__:null,array:qh,color:function(n,e,i){return new Yt(ut(n.r,e.r,i),ut(n.g,e.g,i),ut(n.b,e.b,i),ut(n.a,e.a,i))},number:ut});class ar extends Error{constructor(e,i){super(i),this.message=i,this.key=e}}class Ko{constructor(e,i=[]){this.parent=e,this.bindings={};for(const[r,a]of i)this.bindings[r]=a}concat(e){return new Ko(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}const Rs={kind:"null"},tt={kind:"number"},Zt={kind:"string"},Wt={kind:"boolean"},Rn={kind:"color"},Jo={kind:"object"},Kt={kind:"value"},hc={kind:"collator"},dl={kind:"formatted"},sa={kind:"resolvedImage"};function Mn(n,e){return{kind:"array",itemType:n,N:e}}function Zi(n){if(n.kind==="array"){const e=Zi(n.itemType);return typeof n.N=="number"?`array<${e}, ${n.N}>`:n.itemType.kind==="value"?"array":`array<${e}>`}return n.kind}const uc=[Rs,tt,Zt,Wt,Rn,dl,Jo,Mn(Kt),sa];function pl(n,e){if(e.kind==="error")return null;if(n.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!pl(n.itemType,e.itemType))&&(typeof n.N!="number"||n.N===e.N))return null}else{if(n.kind===e.kind)return null;if(n.kind==="value"){for(const i of uc)if(!pl(i,e))return null}}return`Expected ${Zi(n)} but found ${Zi(e)} instead.`}function $h(n,e){return e.some(i=>i.kind===n.kind)}function fl(n,e){return e.some(i=>i==="null"?n===null:i==="array"?Array.isArray(n):i==="object"?n&&!Array.isArray(n)&&typeof n=="object":i===typeof n)}function dc(n,e){return n.kind==="array"&&e.kind==="array"?n.N===e.N&&dc(n.itemType,e.itemType):n.kind===e.kind}class Hh{constructor(e,i,r){this.sensitivity=e?i?"variant":"case":i?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,i){return this.collator.compare(e,i)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class pc{constructor(e,i,r,a,h){this.text=e.normalize?e.normalize():e,this.image=i,this.scale=r,this.fontStack=a,this.textColor=h}}class qn{constructor(e){this.sections=e}static fromString(e){return new qn([new pc(e,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||!!e.image&&e.image.hasPrimary())}static factory(e){return e instanceof qn?e:qn.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const i of this.sections){if(i.image){const a=i.image.getPrimary().id.toString();e.push(["image",a]);continue}e.push(i.text);const r={};i.fontStack&&(r["text-font"]=["literal",i.fontStack.split(",")]),i.scale&&(r["font-scale"]=i.scale),i.textColor&&(r["text-color"]=["rgba"].concat(i.textColor.toNonPremultipliedRenderColor(null).toArray())),e.push(r)}return e}}class $r{constructor(e,i={}){this.id=Xn.from(e),this.params=i.params,this.sx=i.sx||1,this.sy=i.sy||1}toString(){return JSON.stringify(this)}static parse(e){let i,r,a,h;try{({id:i,params:r,sx:a,sy:h}=JSON.parse(e)||{})}catch{return null}return i?new $r(i,{params:r,sx:a,sy:h}):null}scaleSelf(e,i=e){return this.sx*=e,this.sy*=i,this}}class vn{constructor(e,i,r,a,h=!1){this.primaryId=Xn.from(e),this.primaryOptions=i,r&&(this.secondaryId=Xn.from(r)),this.secondaryOptions=a,this.available=h}toString(){return this.primaryId&&this.secondaryId?`[${this.primaryId.name},${this.secondaryId.name}]`:this.primaryId.name}hasPrimary(){return!!this.primaryId}getPrimary(){return new $r(this.primaryId,this.primaryOptions)}hasSecondary(){return!!this.secondaryId}getSecondary(){return this.secondaryId?new $r(this.secondaryId,this.secondaryOptions):null}static from(e){return typeof e=="string"?vn.build({name:e}):e}static build(e,i,r,a){return!e||typeof e=="object"&&!("name"in e)?null:new vn(e,r,i,a)}}function np(n,e,i,r){return typeof n=="number"&&n>=0&&n<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof i=="number"&&i>=0&&i<=255?r===void 0||typeof r=="number"&&r>=0&&r<=1?null:`Invalid rgba value [${[n,e,i,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof r=="number"?[n,e,i,r]:[n,e,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Ds(n){if(n===null||typeof n=="string"||typeof n=="boolean"||typeof n=="number"||n instanceof Yt||n instanceof Hh||n instanceof qn||n instanceof vn)return!0;if(Array.isArray(n)){for(const e of n)if(!Ds(e))return!1;return!0}if(typeof n=="object"){for(const e in n)if(!Ds(n[e]))return!1;return!0}return!1}function Wi(n){if(n===null)return Rs;if(typeof n=="string")return Zt;if(typeof n=="boolean")return Wt;if(typeof n=="number")return tt;if(n instanceof Yt)return Rn;if(n instanceof Hh)return hc;if(n instanceof qn)return dl;if(n instanceof vn)return sa;if(Array.isArray(n)){const e=n.length;let i;for(const r of n){const a=Wi(r);if(i){if(i===a)continue;i=Kt;break}i=a}return Mn(i||Kt,e)}return Jo}function ao(n){const e=typeof n;return n===null?"":e==="string"||e==="number"||e==="boolean"?String(n):n instanceof qn||n instanceof vn||n instanceof Yt?n.toString():JSON.stringify(n)}class Co{constructor(e,i){this.type=e,this.value=i}static parse(e,i){if(e.length!==2)return i.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!Ds(e[1]))return i.error("invalid value");const r=e[1];let a=Wi(r);const h=i.expectedType;return a.kind!=="array"||a.N!==0||!h||h.kind!=="array"||typeof h.N=="number"&&h.N!==0||(a=h),new Co(a,r)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof Yt?["rgba"].concat(this.value.toNonPremultipliedRenderColor(null).toArray()):this.value instanceof qn?this.value.serialize():this.value}}class Qi{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const Zh={string:Zt,number:tt,boolean:Wt,object:Jo};class $n{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");let r,a=1;const h=e[0];if(h==="array"){let p,_;if(e.length>2){const g=e[1];if(typeof g!="string"||!(g in Zh)||g==="object")return i.error('The item type argument of "array" must be one of string, number, boolean',1);p=Zh[g],a++}else p=Kt;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return i.error('The length argument to "array" must be a positive integer literal',2);_=e[2],a++}r=Mn(p,_)}else r=Zh[h];const u=[];for(;a<e.length;a++){const p=i.parse(e[a],a,Kt);if(!p)return null;u.push(p)}return new $n(r,u)}evaluate(e){for(let i=0;i<this.args.length;i++){const r=this.args[i].evaluate(e);if(!pl(this.type,Wi(r)))return r;if(i===this.args.length-1)throw new Qi(`The expression ${JSON.stringify(this.args[i].serialize())} evaluated to ${Zi(Wi(r))} but was expected to be of type ${Zi(this.type)}.`)}return null}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=this.type,i=[e.kind];if(e.kind==="array"){const r=e.itemType;if(r.kind==="string"||r.kind==="number"||r.kind==="boolean"){i.push(r.kind);const a=e.N;(typeof a=="number"||this.args.length>1)&&i.push(a)}}return i.concat(this.args.map(r=>r.serialize()))}}class xt{constructor(e){this.type=dl,this.sections=e}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");const r=e[1];if(!Array.isArray(r)&&typeof r=="object")return i.error("First argument must be an image or text section.");const a=[];let h=!1;for(let u=1;u<=e.length-1;++u){const p=e[u];if(h&&typeof p=="object"&&!Array.isArray(p)){h=!1;let _=null;if(p["font-scale"]&&(_=i.parseObjectValue(p["font-scale"],u,"font-scale",tt),!_))return null;let g=null;if(p["text-font"]&&(g=i.parseObjectValue(p["text-font"],u,"text-font",Mn(Zt)),!g))return null;let v=null;if(p["text-color"]&&(v=i.parseObjectValue(p["text-color"],u,"text-color",Rn),!v))return null;const b=a[a.length-1];b.scale=_,b.font=g,b.textColor=v}else{const _=i.parse(e[u],u,Kt);if(!_)return null;const g=_.type.kind;if(g!=="string"&&g!=="value"&&g!=="null"&&g!=="resolvedImage")return i.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");h=!0,a.push({content:_,scale:null,font:null,textColor:null})}}return new xt(a)}evaluate(e){return new qn(this.sections.map(i=>{const r=i.content.evaluate(e);return dc(Wi(r),sa)?new pc("",r,null,null,null):new pc(ao(r),null,i.scale?i.scale.evaluate(e):null,i.font?i.font.evaluate(e).join(","):null,i.textColor?i.textColor.evaluate(e):null)}))}eachChild(e){for(const i of this.sections)e(i.content),i.scale&&e(i.scale),i.font&&e(i.font),i.textColor&&e(i.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const i of this.sections){e.push(i.content.serialize());const r={};i.scale&&(r["font-scale"]=i.scale.serialize()),i.font&&(r["text-font"]=i.font.serialize()),i.textColor&&(r["text-color"]=i.textColor.serialize()),e.push(r)}return e}}class rt{constructor(e,i,r,a){this._imageWarnHistory={},this.type=sa,this.namePrimary=e,this.nameSecondary=i,r&&(this.paramsPrimary=r.params,this.iconsetIdPrimary=r.iconset?r.iconset.id:void 0),a&&(this.paramsSecondary=a.params,this.iconsetIdSecondary=a.iconset?a.iconset.id:void 0)}static parse(e,i){if(e.length<2)return i.error("Expected two or more arguments.");let r=1;const a=[];function h(){if(r<e.length){const p=i.parse(e[r],r++,Zt);return p?(a.push({image:p,options:{}}),!0):(i.error(a.length?"Secondary image variant is not a string.":"No image name provided."),!1)}return!0}function u(){if(r<e.length){const _=e[r];if((p=_)===null||typeof p!="object"||Array.isArray(p))return!0;const g=_.params,v=_.iconset,b=i.concat(r);if(!g&&!v)return r++,!0;if(g){if(typeof g!="object"||g.constructor!==Object)return b.error('Image options "params" should be an object'),!1;const w={},E=b.concat(void 0,"params");for(const I in g){if(!I)return E.error("Image parameter name should be non-empty"),!1;const P=E.concat(void 0,I).parse(g[I],void 0,Rn,void 0,{typeAnnotation:"coerce"});if(!P)return!1;w[I]=P}a[a.length-1].options.params=w}if(v){if(typeof v!="object"||v.constructor!==Object)return b.error('Image options "iconset" should be an object'),!1;if(!v.id)return b.error('Image options "iconset" should have an "id" property'),!1;a[a.length-1].options.iconset=v}return r++,!0}var p;return!0}for(let p=0;p<2;p++)if(!h()||!u())return;return new rt(a[0].image,a[1]?a[1].image:void 0,a[0].options,a[1]?a[1].options:void 0)}evaluateParams(e,i){const r={};if(i){for(const a in i)if(i[a])try{r[a]=i[a].evaluate(e)}catch{continue}if(Object.keys(r).length!==0)return{params:r}}}evaluate(e){const i={name:this.namePrimary.evaluate(e),iconsetId:this.iconsetIdPrimary},r=this.nameSecondary?{name:this.nameSecondary.evaluate(e),iconsetId:this.iconsetIdSecondary}:void 0,a=vn.build(i,r,this.paramsPrimary?this.evaluateParams(e,this.paramsPrimary):void 0,this.paramsSecondary?this.evaluateParams(e,this.paramsSecondary):void 0);if(a&&e.availableImages){const h=a.getPrimary().id;if(a.available=e.availableImages.some(u=>Xn.isEqual(u,h)),a.available){const u=a.getSecondary()?a.getSecondary().id:null;u&&(a.available=e.availableImages.some(p=>Xn.isEqual(p,u)))}}return a}eachChild(e){if(e(this.namePrimary),this.paramsPrimary)for(const i in this.paramsPrimary)this.paramsPrimary[i]&&e(this.paramsPrimary[i]);if(this.nameSecondary&&(e(this.nameSecondary),this.paramsSecondary))for(const i in this.paramsSecondary)this.paramsSecondary[i]&&e(this.paramsSecondary[i])}outputDefined(){return!1}serializeOptions(e,i){const r={};if(i&&(r.iconset={id:i}),e){r.params={};for(const a in e)e[a]&&(r.params[a]=e[a].serialize())}return Object.keys(r).length>0?r:void 0}serialize(){const e=["image",this.namePrimary.serialize()];if(this.paramsPrimary||this.iconsetIdPrimary){const i=this.serializeOptions(this.paramsPrimary,this.iconsetIdPrimary);i&&e.push(i)}if(this.nameSecondary&&(e.push(this.nameSecondary.serialize()),this.paramsSecondary||this.iconsetIdSecondary)){const i=this.serializeOptions(this.paramsSecondary,this.iconsetIdSecondary);i&&e.push(i)}return e}}function aa(n){return ml(n)?"string":la(n)?"number":ht(n)?"boolean":Array.isArray(n)?"array":n===null?"null":dt(n)?"object":typeof n}function dt(n){return n!=null&&!Array.isArray(n)&&typeof n!="function"&&!(n instanceof String||n instanceof Number||n instanceof Boolean)&&typeof n=="object"}function ml(n){return typeof n=="string"||n instanceof String}function la(n){return typeof n=="number"||n instanceof Number}function ht(n){return typeof n=="boolean"||n instanceof Boolean}const rp={"to-boolean":Wt,"to-color":Rn,"to-number":tt,"to-string":Zt};class Hr{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");const r=e[0],a=[];let h=Rs;if(r==="to-array"){if(!Array.isArray(e[1]))return null;const u=e[1].length;if(i.expectedType){if(i.expectedType.kind!=="array")return i.error(`Expected ${i.expectedType.kind} but found array.`);h=Mn(i.expectedType.itemType,u)}else{if(!(u>0&&Ds(e[1][0])))return null;h=Mn(Wi(e[1][0]),u)}for(let p=0;p<u;p++){const _=e[1][p];let g;if(Array.isArray(_))g=i.parse(_,void 0,h.itemType);else{const v=aa(_);if(v!==h.itemType.kind)return i.error(`Expected ${h.itemType.kind} but found ${v}.`);g=i.registry.literal.parse(["literal",_===void 0?null:_],i)}if(!g)return null;a.push(g)}}else{if((r==="to-boolean"||r==="to-string")&&e.length!==2)return i.error("Expected one argument.");h=rp[r];for(let u=1;u<e.length;u++){const p=i.parse(e[u],u,Kt);if(!p)return null;a.push(p)}}return new Hr(h,a)}evaluate(e){if(this.type.kind==="boolean")return!!this.args[0].evaluate(e);if(this.type.kind==="color"){let i,r;for(const a of this.args){if(i=a.evaluate(e),r=null,i instanceof Yt)return i;if(typeof i=="string"){const h=e.parseColor(i);if(h)return h}else if(Array.isArray(i)&&(r=i.length<3||i.length>4?`Invalid rbga value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.`:np(i[0],i[1],i[2],i[3]),!r))return new Yt(i[0]/255,i[1]/255,i[2]/255,i[3])}throw new Qi(r||`Could not parse color from value '${typeof i=="string"?i:String(JSON.stringify(i))}'`)}if(this.type.kind==="number"){let i=null;for(const r of this.args){if(i=r.evaluate(e),i===null)return 0;const a=Number(i);if(!isNaN(a))return a}throw new Qi(`Could not convert ${JSON.stringify(i)} to number.`)}return this.type.kind==="formatted"?qn.fromString(ao(this.args[0].evaluate(e))):this.type.kind==="resolvedImage"?vn.build(ao(this.args[0].evaluate(e))):this.type.kind==="array"?this.args.map(i=>i.evaluate(e)):ao(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if(this.type.kind==="formatted")return new xt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new rt(this.args[0]).serialize();const e=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(i=>{e.push(i.serialize())}),e}}const op=["Unknown","Point","LineString","Polygon"];class fc{constructor(e,i,r){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.scope=e,this.options=i,this.iconImageUseTheme=r}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?op[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}measureLight(e){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,i=this.featureDistanceData.scale,{x:r,y:a}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(r*i-e[0])+this.featureDistanceData.bearing[1]*(a*i-e[1])}return 0}parseColor(e){let i=this._parseColorCache[e];return i||(i=this._parseColorCache[e]=Yt.parse(e)),i}getConfig(e){return this.options?this.options.get(e):null}}class Dn{constructor(e,i,r,a,h){this.name=e,this.type=i,this._evaluate=r,this.args=a,this._overloadIndex=h}evaluate(e){if(!this._evaluate){const i=Dn.definitions[this.name];this._evaluate=Array.isArray(i)?i[2]:i.overloads[this._overloadIndex][1]}return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,i){const r=e[0],a=Dn.definitions[r];if(!a)return i.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0);const h=Array.isArray(a)?a[0]:a.type,u=Array.isArray(a)?[[a[1],a[2]]]:a.overloads,p=[];let _=null,g=-1;for(const[v,b]of u){if(Array.isArray(v)&&v.length!==e.length-1)continue;p.push(v),g++,_=new Ic(i.registry,i.path,null,i.scope,void 0,i._scope,i.options,i.iconImageUseTheme);const w=[];let E=!1;for(let I=1;I<e.length;I++){const P=e[I],z=Array.isArray(v)?v[I-1]:v.type,R=_.parse(P,1+w.length,z);if(!R){E=!0;break}w.push(R)}if(!E)if(Array.isArray(v)&&v.length!==w.length)_.error(`Expected ${v.length} arguments, but found ${w.length} instead.`);else{for(let I=0;I<w.length;I++){const P=Array.isArray(v)?v[I]:v.type,z=w[I];_.concat(I+1).checkSubtype(P,z.type)}if(_.errors.length===0)return new Dn(r,h,b,w,g)}}if(p.length===1)i.errors.push(..._.errors);else{const v=(p.length?p:u.map(([w])=>w)).map(ym).join(" | "),b=[];for(let w=1;w<e.length;w++){const E=i.parse(e[w],1+b.length);if(!E)return null;b.push(Zi(E.type))}i.error(`Expected arguments of type ${v}, but found (${b.join(", ")}) instead.`)}return null}static register(e,i){Dn.definitions=i;for(const r in i)e[r]=Dn}}function ym(n){return Array.isArray(n)?`(${n.map(Zi).join(", ")})`:`(${Zi(n.type)}...)`}class ca{constructor(e,i,r){this.type=hc,this.locale=r,this.caseSensitive=e,this.diacriticSensitive=i}static parse(e,i){if(e.length!==2)return i.error("Expected one argument.");const r=e[1];if(typeof r!="object"||Array.isArray(r))return i.error("Collator options argument must be an object.");const a=r["case-sensitive"]===void 0?i.parse(!1,1,Wt):i.parseObjectValue(r["case-sensitive"],1,"case-sensitive",Wt);if(!a)return null;const h=r["diacritic-sensitive"]===void 0?i.parse(!1,1,Wt):i.parseObjectValue(r["diacritic-sensitive"],1,"diacritic-sensitive",Wt);if(!h)return null;let u=null;return r.locale&&(u=i.parseObjectValue(r.locale,1,"locale",Zt),!u)?null:new ca(a,h,u)}evaluate(e){return new Hh(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}serialize(){const e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}function Qo(n,e,i=0,r=n.length-1,a=es){for(;r>i;){if(r-i>600){const _=r-i+1,g=e-i+1,v=Math.log(_),b=.5*Math.exp(2*v/3),w=.5*Math.sqrt(v*b*(_-b)/_)*(g-_/2<0?-1:1);Qo(n,e,Math.max(i,Math.floor(e-g*b/_+w)),Math.min(r,Math.floor(e+(_-g)*b/_+w)),a)}const h=n[e];let u=i,p=r;for(zs(n,i,e),a(n[r],h)>0&&zs(n,i,r);u<p;){for(zs(n,u,p),u++,p--;a(n[u],h)<0;)u++;for(;a(n[p],h)>0;)p--}a(n[i],h)===0?zs(n,i,p):(p++,zs(n,p,r)),p<=e&&(i=p+1),e<=p&&(r=p-1)}}function zs(n,e,i){const r=n[e];n[e]=n[i],n[i]=r}function es(n,e){return n<e?-1:n>e?1:0}function ts(n){let e=0;for(let i,r,a=0,h=n.length,u=h-1;a<h;u=a++)i=n[a],r=n[u],e+=(r.x-i.x)*(i.y+r.y);return e}function _l(n,e){n[0]=Math.min(n[0],e[0]),n[1]=Math.min(n[1],e[1]),n[2]=Math.max(n[2],e[0]),n[3]=Math.max(n[3],e[1])}function gl(n,e){return!(n[0]<=e[0]||n[2]>=e[2]||n[1]<=e[1]||n[3]>=e[3])}function xm(n,e,i){const r=n[0]-e[0],a=n[1]-e[1],h=n[0]-i[0],u=n[1]-i[1];return r*u-h*a===0&&r*h<=0&&a*u<=0}function mc(n,e,i){return e[1]>n[1]!=i[1]>n[1]&&n[0]<(i[0]-e[0])*(n[1]-e[1])/(i[1]-e[1])+e[0]}function Ls(n,e,i=!1){let r=!1;for(let a=0,h=e.length;a<h;a++){const u=e[a];for(let p=0,_=u.length,g=_-1;p<_;g=p++){const v=u[g],b=u[p];if(xm(n,v,b))return i;mc(n,v,b)&&(r=!r)}}return r}function is(n,e,i,r){const a=r[0]-i[0],h=r[1]-i[1],u=(n[0]-i[0])*h-a*(n[1]-i[1]),p=(e[0]-i[0])*h-a*(e[1]-i[1]);return u>0&&p<0||u<0&&p>0}function _c(n,e,i,r){return(a=[r[0]-i[0],r[1]-i[1]])[0]*(h=[e[0]-n[0],e[1]-n[1]])[1]-a[1]*h[0]!==0&&!(!is(n,e,i,r)||!is(i,r,n,e));var a,h}function Wh(n){const e=new Oe(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),i=new Oe(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);for(const r of n[0])e.x>r.x&&(e.x=r.x),e.y>r.y&&(e.y=r.y),i.x<r.x&&(i.x=r.x),i.y<r.y&&(i.y=r.y);return{min:e,max:i}}const lo=8192;function vm(n,e){const i=(180+n[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+n[1]*Math.PI/360)))/360,a=Math.pow(2,e.z);return[Math.round(i*a*lo),Math.round(r*a*lo)]}function bm(n,e){for(let i=0;i<e.length;i++)if(Ls(n,e[i]))return!0;return!1}function sp(n,e,i){for(const r of i)for(let a=0,h=r.length,u=h-1;a<h;u=a++)if(_c(n,e,r[u],r[a]))return!0;return!1}function ap(n,e){for(let i=0;i<n.length;++i)if(!Ls(n[i],e))return!1;for(let i=0;i<n.length-1;++i)if(sp(n[i],n[i+1],e))return!1;return!0}function wm(n,e){for(let i=0;i<e.length;i++)if(ap(n,e[i]))return!0;return!1}function Xh(n,e,i){const r=[];for(let a=0;a<n.length;a++){const h=[];for(let u=0;u<n[a].length;u++){const p=vm(n[a][u],i);_l(e,p),h.push(p)}r.push(h)}return r}function ns(n,e,i){const r=[];for(let a=0;a<n.length;a++){const h=Xh(n[a],e,i);r.push(h)}return r}function lp(n,e,i,r){if(n[0]<i[0]||n[0]>i[2]){const a=.5*r;let h=n[0]-i[0]>a?-r:i[0]-n[0]>a?r:0;h===0&&(h=n[0]-i[2]>a?-r:i[2]-n[0]>a?r:0),n[0]+=h}_l(e,n)}function cp(n,e,i,r){const a=Math.pow(2,r.z)*lo,h=[r.x*lo,r.y*lo],u=[];if(!n)return u;for(const p of n)for(const _ of p){const g=[_.x+h[0],_.y+h[1]];lp(g,e,i,a),u.push(g)}return u}function gc(n,e,i,r){const a=Math.pow(2,r.z)*lo,h=[r.x*lo,r.y*lo],u=[];if(!n)return u;for(const _ of n){const g=[];for(const v of _){const b=[v.x+h[0],v.y+h[1]];_l(e,b),g.push(b)}u.push(g)}if(e[2]-e[0]<=a/2){(p=e)[0]=p[1]=1/0,p[2]=p[3]=-1/0;for(const _ of u)for(const g of _)lp(g,e,i,a)}var p;return u}class rs{constructor(e,i){this.type=Wt,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Ds(e[1])){const r=e[1];if(r.type==="FeatureCollection")for(let a=0;a<r.features.length;++a){const h=r.features[a].geometry.type;if(h==="Polygon"||h==="MultiPolygon")return new rs(r,r.features[a].geometry)}else if(r.type==="Feature"){const a=r.geometry.type;if(a==="Polygon"||a==="MultiPolygon")return new rs(r,r.geometry)}else if(r.type==="Polygon"||r.type==="MultiPolygon")return new rs(r,r)}return i.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return function(i,r){const a=[1/0,1/0,-1/0,-1/0],h=[1/0,1/0,-1/0,-1/0],u=i.canonicalID();if(!u)return!1;if(r.type==="Polygon"){const p=Xh(r.coordinates,h,u),_=cp(i.geometry(),a,h,u);if(!gl(a,h))return!1;for(const g of _)if(!Ls(g,p))return!1}if(r.type==="MultiPolygon"){const p=ns(r.coordinates,h,u),_=cp(i.geometry(),a,h,u);if(!gl(a,h))return!1;for(const g of _)if(!bm(g,p))return!1}return!0}(e,this.geometries);if(e.geometryType()==="LineString")return function(i,r){const a=[1/0,1/0,-1/0,-1/0],h=[1/0,1/0,-1/0,-1/0],u=i.canonicalID();if(!u)return!1;if(r.type==="Polygon"){const p=Xh(r.coordinates,h,u),_=gc(i.geometry(),a,h,u);if(!gl(a,h))return!1;for(const g of _)if(!ap(g,p))return!1}if(r.type==="MultiPolygon"){const p=ns(r.coordinates,h,u),_=gc(i.geometry(),a,h,u);if(!gl(a,h))return!1;for(const g of _)if(!wm(g,p))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}const yl={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},zr=1/298.257223563,Yh=zr*(2-zr),ha=Math.PI/180;class ua{static fromTile(e,i,r){const a=Math.PI*(1-2*(e+.5)/Math.pow(2,i)),h=Math.atan(.5*(Math.exp(a)-Math.exp(-a)))/ha;return new ua(h,r)}static get units(){return yl}constructor(e,i){if(e===void 0)throw new Error("No latitude given.");if(i&&!yl[i])throw new Error(`Unknown unit ${i}. Use one of: ${Object.keys(yl).join(", ")}`);const r=6378.137*ha*(i?yl[i]:1),a=Math.cos(e*ha),h=1/(1-Yh*(1-a*a)),u=Math.sqrt(h);this.kx=r*u*a,this.ky=r*u*h*(1-Yh)}distance(e,i){const r=wr(e[0]-i[0])*this.kx,a=(e[1]-i[1])*this.ky;return Math.sqrt(r*r+a*a)}bearing(e,i){const r=wr(i[0]-e[0])*this.kx;return Math.atan2(r,(i[1]-e[1])*this.ky)/ha}destination(e,i,r){const a=r*ha;return this.offset(e,Math.sin(a)*i,Math.cos(a)*i)}offset(e,i,r){return[e[0]+i/this.kx,e[1]+r/this.ky]}lineDistance(e){let i=0;for(let r=0;r<e.length-1;r++)i+=this.distance(e[r],e[r+1]);return i}area(e){let i=0;for(let r=0;r<e.length;r++){const a=e[r];for(let h=0,u=a.length,p=u-1;h<u;p=h++)i+=wr(a[h][0]-a[p][0])*(a[h][1]+a[p][1])*(r?-1:1)}return Math.abs(i)/2*this.kx*this.ky}along(e,i){let r=0;if(i<=0)return e[0];for(let a=0;a<e.length-1;a++){const h=e[a],u=e[a+1],p=this.distance(h,u);if(r+=p,r>i)return yc(h,u,(i-(r-p))/p)}return e[e.length-1]}pointToSegmentDistance(e,i,r){let[a,h]=i,u=wr(r[0]-a)*this.kx,p=(r[1]-h)*this.ky;if(u!==0||p!==0){const _=(wr(e[0]-a)*this.kx*u+(e[1]-h)*this.ky*p)/(u*u+p*p);_>1?(a=r[0],h=r[1]):_>0&&(a+=u/this.kx*_,h+=p/this.ky*_)}return u=wr(e[0]-a)*this.kx,p=(e[1]-h)*this.ky,Math.sqrt(u*u+p*p)}pointOnLine(e,i){let r=1/0,a=e[0][0],h=e[0][1],u=0,p=0;for(let _=0;_<e.length-1;_++){let g=e[_][0],v=e[_][1],b=wr(e[_+1][0]-g)*this.kx,w=(e[_+1][1]-v)*this.ky,E=0;b===0&&w===0||(E=(wr(i[0]-g)*this.kx*b+(i[1]-v)*this.ky*w)/(b*b+w*w),E>1?(g=e[_+1][0],v=e[_+1][1]):E>0&&(g+=b/this.kx*E,v+=w/this.ky*E)),b=wr(i[0]-g)*this.kx,w=(i[1]-v)*this.ky;const I=b*b+w*w;I<r&&(r=I,a=g,h=v,u=_,p=E)}return{point:[a,h],index:u,t:Math.max(0,Math.min(1,p))}}lineSlice(e,i,r){let a=this.pointOnLine(r,e),h=this.pointOnLine(r,i);if(a.index>h.index||a.index===h.index&&a.t>h.t){const g=a;a=h,h=g}const u=[a.point],p=a.index+1,_=h.index;!Kh(r[p],u[0])&&p<=_&&u.push(r[p]);for(let g=p+1;g<=_;g++)u.push(r[g]);return Kh(r[_],h.point)||u.push(h.point),u}lineSliceAlong(e,i,r){let a=0;const h=[];for(let u=0;u<r.length-1;u++){const p=r[u],_=r[u+1],g=this.distance(p,_);if(a+=g,a>e&&h.length===0&&h.push(yc(p,_,(e-(a-g))/g)),a>=i)return h.push(yc(p,_,(i-(a-g))/g)),h;a>e&&h.push(_)}return h}bufferPoint(e,i){const r=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-r,e[0]+a,e[1]+r]}bufferBBox(e,i){const r=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-r,e[2]+a,e[3]+r]}insideBBox(e,i){return wr(e[0]-i[0])>=0&&wr(e[0]-i[2])<=0&&e[1]>=i[1]&&e[1]<=i[3]}}function Kh(n,e){return n[0]===e[0]&&n[1]===e[1]}function yc(n,e,i){const r=wr(e[0]-n[0]);return[n[0]+r*i,n[1]+(e[1]-n[1])*i]}function wr(n){for(;n<-180;)n+=360;for(;n>180;)n-=360;return n}class xl{constructor(e=[],i=(r,a)=>r<a?-1:r>a?1:0){if(this.data=e,this.length=this.data.length,this.compare=i,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;const e=this.data[0],i=this.data.pop();return--this.length>0&&(this.data[0]=i,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:i,compare:r}=this,a=i[e];for(;e>0;){const h=e-1>>1,u=i[h];if(r(a,u)>=0)break;i[e]=u,e=h}i[e]=a}_down(e){const{data:i,compare:r}=this,a=this.length>>1,h=i[e];for(;e<a;){let u=1+(e<<1);const p=u+1;if(p<this.length&&r(i[p],i[u])<0&&(u=p),r(i[u],h)>=0)break;i[e]=i[u],e=u}i[e]=h}}var $e=8192;function Jh(n,e){return e.dist-n.dist}function Qh(n){const e=[1/0,1/0,-1/0,-1/0];if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==n[i])return!1;return!0}function vl(n){return n[1]-n[0]+1}function co(n,e){const i=n[1]>=n[0]&&n[1]<e;return i||console.warn("Distance Expression: Index is out of range"),i}function xc(n,e){if(n[0]>n[1])return[null,null];const i=vl(n);if(e){if(i===2)return[n,null];const r=Math.floor(i/2);return[[n[0],n[0]+r],[n[0]+r,n[1]]]}{if(i===1)return[n,null];const r=Math.floor(i/2)-1;return[[n[0],n[0]+r],[n[0]+r+1,n[1]]]}}function Fs(n,e){const i=[1/0,1/0,-1/0,-1/0];if(!co(e,n.length))return i;for(let r=e[0];r<=e[1];++r)_l(i,n[r]);return i}function vc(n){const e=[1/0,1/0,-1/0,-1/0];for(let i=0;i<n.length;++i)for(let r=0;r<n[i].length;++r)_l(e,n[i][r]);return e}function Po(n,e,i){if(Qh(n)||Qh(e))return NaN;let r=0,a=0;return n[2]<e[0]&&(r=e[0]-n[2]),n[0]>e[2]&&(r=n[0]-e[2]),n[1]>e[3]&&(a=n[1]-e[3]),n[3]<e[1]&&(a=e[1]-n[3]),i.distance([0,0],[r,a])}function eu(n){return 360*n-180}function bc(n){return 360/Math.PI*Math.atan(Math.exp((180-360*n)*Math.PI/180))-90}function bl(n,e,i=8192){const r=Math.pow(2,e.z),a=(n.y/i+e.y)/r;return[eu((n.x/i+e.x)/r),bc(a)]}function hp(n,e){const i=[];for(let r=0;r<n.length;++r)i.push(bl(n[r],e));return i}function up(n,e,i){const r=i.pointOnLine(e,n).point;return i.distance(n,r)}function dp(n,e,i,r,a){const h=i.slice(r[0],r[1]+1);let u=1/0;for(let p=e[0];p<=e[1];++p)if((u=Math.min(u,up(n[p],h,a)))===0)return 0;return u}function wc(n,e,i,r,a){const h=Math.min(a.pointToSegmentDistance(n,i,r),a.pointToSegmentDistance(e,i,r)),u=Math.min(a.pointToSegmentDistance(i,n,e),a.pointToSegmentDistance(r,n,e));return Math.min(h,u)}function da(n,e,i,r,a){if(!co(e,n.length)||!co(r,i.length))return NaN;let h=1/0;for(let u=e[0];u<e[1];++u)for(let p=r[0];p<r[1];++p){if(_c(n[u],n[u+1],i[p],i[p+1]))return 0;h=Math.min(h,wc(n[u],n[u+1],i[p],i[p+1],a))}return h}function Ft(n,e,i,r,a){if(!co(e,n.length)||!co(r,i.length))return NaN;let h=1/0;for(let u=e[0];u<=e[1];++u)for(let p=r[0];p<=r[1];++p)if((h=Math.min(h,a.distance(n[u],i[p])))===0)return h;return h}function Tm(n,e,i){if(Ls(n,e,!0))return 0;let r=1/0;for(const a of e){const h=a.length;if(h<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(a[0]!==a[h-1]&&(r=Math.min(r,i.pointToSegmentDistance(n,a[h-1],a[0])))===0||(r=Math.min(r,up(n,a,i)))===0)return r}return r}function Sm(n,e,i,r){if(!co(e,n.length))return NaN;for(let h=e[0];h<=e[1];++h)if(Ls(n[h],i,!0))return 0;let a=1/0;for(let h=e[0];h<e[1];++h)for(const u of i)for(let p=0,_=u.length,g=_-1;p<_;g=p++){if(_c(n[h],n[h+1],u[g],u[p]))return 0;a=Math.min(a,wc(n[h],n[h+1],u[g],u[p],r))}return a}function pp(n,e){for(const i of n)for(let r=0;r<=i.length-1;++r)if(Ls(i[r],e,!0))return!0;return!1}function fp(n,e,i,r=1/0){const a=vc(n),h=vc(e);if(r!==1/0&&Po(a,h,i)>=r)return r;if(gl(a,h)){if(pp(n,e))return 0}else if(pp(e,n))return 0;let u=r;for(const p of n)for(let _=0,g=p.length,v=g-1;_<g;v=_++)for(const b of e)for(let w=0,E=b.length,I=E-1;w<E;I=w++){if(_c(p[v],p[_],b[I],b[w]))return 0;u=Math.min(u,wc(p[v],p[_],b[I],b[w],i))}return u}function Tc(n,e,i,r,a,h,u){if(h===null||u===null)return;const p=Po(Fs(r,h),Fs(a,u),i);p<e&&n.push({dist:p,range1:h,range2:u})}function Si(n,e,i,r,a=1/0){let h=Math.min(r.distance(n[0],i[0][0]),a);if(h===0)return h;const u=new xl([{dist:0,range1:[0,n.length-1],range2:[0,0]}],Jh),p=e?50:100,_=vc(i);for(;u.length;){const g=u.pop();if(g.dist>=h)continue;const v=g.range1;if(vl(v)<=p){if(!co(v,n.length))return NaN;if(e){const b=Sm(n,v,i,r);if((h=Math.min(h,b))===0)return h}else for(let b=v[0];b<=v[1];++b){const w=Tm(n[b],i,r);if((h=Math.min(h,w))===0)return h}}else{const b=xc(v,e);if(b[0]!==null){const w=Po(Fs(n,b[0]),_,r);w<h&&u.push({dist:w,range1:b[0],range2:[0,0]})}if(b[1]!==null){const w=Po(Fs(n,b[1]),_,r);w<h&&u.push({dist:w,range1:b[1],range2:[0,0]})}}}return h}function mp(n,e,i,r,a,h=1/0){let u=Math.min(h,a.distance(n[0],i[0]));if(u===0)return u;const p=new xl([{dist:0,range1:[0,n.length-1],range2:[0,i.length-1]}],Jh),_=e?50:100,g=r?50:100;for(;p.length;){const v=p.pop();if(v.dist>=u)continue;const b=v.range1,w=v.range2;if(vl(b)<=_&&vl(w)<=g){if(!co(b,n.length)||!co(w,i.length))return NaN;if(e&&r?u=Math.min(u,da(n,b,i,w,a)):e||r?e&&!r?u=Math.min(u,dp(i,w,n,b,a)):!e&&r&&(u=Math.min(u,dp(n,b,i,w,a))):u=Math.min(u,Ft(n,b,i,w,a)),u===0)return u}else{const E=xc(b,e),I=xc(w,r);Tc(p,u,a,n,i,E[0],I[0]),Tc(p,u,a,n,i,E[0],I[1]),Tc(p,u,a,n,i,E[1],I[0]),Tc(p,u,a,n,i,E[1],I[1])}}return u}function tu(n,e,i,r,a=1/0){let h=a;const u=Fs(n,[0,n.length-1]);for(const p of i)if(!(h!==1/0&&Po(u,Fs(p,[0,p.length-1]),r)>=h)&&(h=Math.min(h,mp(n,e,p,!0,r,h)),h===0))return h;return h}function Sc(n,e,i,r,a=1/0){let h=a;const u=Fs(n,[0,n.length-1]);for(const p of i){if(h!==1/0&&Po(u,vc(p),r)>=h)continue;const _=Si(n,e,p,r,h);if(isNaN(_))return _;if((h=Math.min(h,_))===0)return h}return h}function iu(n){return n==="Point"||n==="MultiPoint"||n==="LineString"||n==="MultiLineString"||n==="Polygon"||n==="MultiPolygon"}class Os{constructor(e,i){this.type=tt,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'distance' expression requires either one argument, but found ' ${e.length-1} instead.`);if(Ds(e[1])){const r=e[1];if(r.type==="FeatureCollection"){for(let a=0;a<r.features.length;++a)if(iu(r.features[a].geometry.type))return new Os(r,r.features[a].geometry)}else if(r.type==="Feature"){if(iu(r.geometry.type))return new Os(r,r.geometry)}else if(iu(r.type))return new Os(r,r)}return i.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(e){const i=e.geometry(),r=e.canonicalID();if(i!=null&&r!=null){if(e.geometryType()==="Point")return function(a,h,u){const p=[];for(const g of a)for(const v of g)p.push(bl(v,h));const _=new ua(p[0][1],"meters");return u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString"?mp(p,!1,u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",_):u.type==="MultiLineString"?tu(p,!1,u.coordinates,_):u.type==="Polygon"||u.type==="MultiPolygon"?Sc(p,!1,u.type==="Polygon"?[u.coordinates]:u.coordinates,_):null}(i,r,this.geometries);if(e.geometryType()==="LineString")return function(a,h,u){const p=[];for(const g of a){const v=[];for(const b of g)v.push(bl(b,h));p.push(v)}const _=new ua(p[0][0][1],"meters");if(u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString")return tu(u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",p,_);if(u.type==="MultiLineString"){let g=1/0;for(let v=0;v<u.coordinates.length;v++){const b=tu(u.coordinates[v],!0,p,_,g);if(isNaN(b))return b;if((g=Math.min(g,b))===0)return g}return g}if(u.type==="Polygon"||u.type==="MultiPolygon"){let g=1/0;for(let v=0;v<p.length;v++){const b=Sc(p[v],!0,u.type==="Polygon"?[u.coordinates]:u.coordinates,_,g);if(isNaN(b))return b;if((g=Math.min(g,b))===0)return g}return g}return null}(i,r,this.geometries);if(e.geometryType()==="Polygon")return function(a,h,u){const p=[];for(const g of function(v){const b=v.length;if(b<=1)return[v];const w=[];let E,I;for(let P=0;P<b;P++){const z=ts(v[P]);z!==0&&(v[P].area=Math.abs(z),I===void 0&&(I=z<0),I===z<0?(E&&w.push(E),E=[v[P]]):E.push(v[P]))}return E&&w.push(E),w}(a)){const v=[];for(let b=0;b<g.length;++b)v.push(hp(g[b],h));p.push(v)}const _=new ua(p[0][0][0][1],"meters");if(u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString")return Sc(u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",p,_);if(u.type==="MultiLineString"){let g=1/0;for(let v=0;v<u.coordinates.length;v++){const b=Sc(u.coordinates[v],!0,p,_,g);if(isNaN(b))return b;if((g=Math.min(g,b))===0)return g}return g}return u.type==="Polygon"||u.type==="MultiPolygon"?function(g,v,b){let w=1/0;for(const E of g)for(const I of v){const P=fp(E,I,b,w);if(isNaN(P))return P;if((w=Math.min(w,P))===0)return w}return w}(u.type==="Polygon"?[u.coordinates]:u.coordinates,p,_):null}(i,r,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requires valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}function pa(n){if(n instanceof Dn&&(n.name==="get"&&n.args.length===1||n.name==="feature-state"||n.name==="has"&&n.args.length===1||n.name==="properties"||n.name==="geometry-type"||n.name==="id"||/^filter-/.test(n.name))||n instanceof rs||n instanceof Os)return!1;if(n instanceof ma)return n.featureConstant;let e=!0;return n.eachChild(i=>{e&&!pa(i)&&(e=!1)}),e}function wl(n){if(n instanceof Dn&&n.name==="feature-state")return!1;let e=!0;return n.eachChild(i=>{e&&!wl(i)&&(e=!1)}),e}function fa(n,e){if(n instanceof Dn&&e.indexOf(n.name)>=0)return!1;let i=!0;return n.eachChild(r=>{i&&!fa(r,e)&&(i=!1)}),i}function _p(n,e,i){return[n,e,i].filter(Boolean).join("")}function nu(n,e){switch(n){case"string":return ao(e);case"number":return+e;case"boolean":return!!e;case"color":return Yt.parse(e);case"formatted":return qn.fromString(ao(e));case"resolvedImage":return vn.build(ao(e))}return e}function gp(n,e,i,r){return r!==void 0&&(n=r*Math.round(n/r)),e!==void 0&&n<e&&(n=e),i!==void 0&&n>i&&(n=i),n}class ma{constructor(e,i,r,a=!1){this.type=e,this.key=i,this.scope=r,this.featureConstant=a}static parse(e,i){let r=i.expectedType;if(r==null&&(r=Kt),e.length<2||e.length>3)return i.error("Invalid number of arguments for 'config' expression.");const a=i.parse(e[1],1);if(!(a instanceof Co))return i.error("Key name of 'config' expression must be a string literal.");let h,u=!0;const p=ao(a.value);if(e.length>=3){const _=i.parse(e[2],2);if(!(_ instanceof Co))return i.error("Scope of 'config' expression must be a string literal.");h=ao(_.value)}if(i.options){const _=_p(p,h,i._scope),g=i.options.get(_);g&&(u=pa(g.value||g.default))}return new ma(r,p,h,u)}evaluate(e){const i=_p(this.key,this.scope,e.scope),r=e.getConfig(i);if(!r)return null;const{type:a,value:h,values:u,minValue:p,maxValue:_,stepValue:g}=r,v=r.default.evaluate(e);let b=v;if(h){const w=e.scope;e.scope=(w||"").split("").slice(1).join(""),b=h.evaluate(e),e.scope=w}return a&&(b=nu(a,b)),b===void 0||p===void 0&&_===void 0&&g===void 0||(typeof b=="number"?b=gp(b,p,_,g):Array.isArray(b)&&(b=b.map(w=>typeof w=="number"?gp(w,p,_,g):w))),h!==void 0&&b!==void 0&&u&&!u.includes(b)&&(b=v,a&&(b=nu(a,b))),(a&&a!==this.type||b!==void 0&&!dc(Wi(b),this.type))&&(b=nu(this.type.kind,b)),b}eachChild(){}outputDefined(){return!1}serialize(){const e=["config",this.key];return this.scope&&e.concat(this.scope),e}}class Ec{constructor(e,i){this.type=i.type,this.name=e,this.boundExpression=i}static parse(e,i){if(e.length!==2||typeof e[1]!="string")return i.error("'var' expression requires exactly one string literal argument.");const r=e[1];return i.scope.has(r)?new Ec(r,i.scope.get(r)):i.error(`Unknown variable "${r}". Make sure "${r}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class Ic{constructor(e,i=[],r,a=new Ko,h=[],u,p,_){this.registry=e,this.path=i,this.key=i.map(g=>typeof g=="string"?`['${g}']`:`[${g}]`).join(""),this.scope=a,this.errors=h,this.expectedType=r,this._scope=u,this.options=p,this.iconImageUseTheme=_}parse(e,i,r,a,h={}){return i||r?this.concat(i,null,r,a)._parse(e,h):this._parse(e,h)}parseObjectValue(e,i,r,a,h,u={}){return this.concat(i,r,a,h)._parse(e,u)}_parse(e,i){function r(a,h,u){return u==="assert"?new $n(h,[a]):u==="coerce"?new Hr(h,[a]):a}if(e!==null&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"||(e=["literal",e]),Array.isArray(e)){if(e.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const a=typeof e[0]=="string"?this.registry[e[0]]:void 0;if(a){let h=a.parse(e,this);if(!h)return null;if(this.expectedType){const u=this.expectedType,p=h.type;if(u.kind!=="string"&&u.kind!=="number"&&u.kind!=="boolean"&&u.kind!=="object"&&u.kind!=="array"||p.kind!=="value")if(u.kind!=="color"&&u.kind!=="formatted"&&u.kind!=="resolvedImage"||p.kind!=="value"&&p.kind!=="string"){if(this.checkSubtype(u,p))return null}else h=r(h,u,i.typeAnnotation||"coerce");else h=r(h,u,i.typeAnnotation||"assert")}if(!(h instanceof Co)&&h.type.kind!=="resolvedImage"&&ru(h)){const u=new fc(this._scope,this.options,this.iconImageUseTheme);try{h=new Co(h.type,h.evaluate(u))}catch(p){return this.error(p.message),null}}return h}return Hr.parse(["to-array",e],this)}return this.error(e===void 0?"'undefined' value invalid. Use null instead.":typeof e=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,i,r,a){let h=typeof e=="number"?this.path.concat(e):this.path;h=typeof i=="string"?h.concat(i):h;const u=a?this.scope.concat(a):this.scope;return new Ic(this.registry,h,r||null,u,this.errors,this._scope,this.options,this.iconImageUseTheme)}error(e,...i){const r=`${this.key}${i.map(a=>`[${a}]`).join("")}`;this.errors.push(new ar(r,e))}checkSubtype(e,i){const r=pl(e,i);return r&&this.error(r),r}}function ru(n){if(n instanceof Ec)return ru(n.boundExpression);if(n instanceof Dn&&n.name==="error"||n instanceof ca||n instanceof rs||n instanceof Os||n instanceof ma)return!1;const e=n instanceof Hr||n instanceof $n;let i=!0;return n.eachChild(r=>{i=e?i&&ru(r):i&&r instanceof Co}),!!i&&pa(n)&&fa(n,["zoom","heatmap-density","worldview","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed","is-active-floor"])}function Ac(n,e){const i=n.length-1;let r,a,h=0,u=i,p=0;for(;h<=u;)if(p=Math.floor((h+u)/2),r=n[p],a=n[p+1],r<=e){if(p===i||e<a)return p;h=p+1}else{if(!(r>e))throw new Qi("Input is not a number.");u=p-1}return 0}class Tl{constructor(e,i,r){this.type=e,this.input=i,this.labels=[],this.outputs=[];for(const[a,h]of r)this.labels.push(a),this.outputs.push(h)}static parse(e,i){if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return i.error("Expected an even number of arguments.");const r=i.parse(e[1],1,tt);if(!r)return null;const a=[];let h=null;i.expectedType&&i.expectedType.kind!=="value"&&(h=i.expectedType);for(let u=1;u<e.length;u+=2){const p=u===1?-1/0:e[u],_=e[u+1],g=u,v=u+1;if(typeof p!="number")return i.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',g);if(a.length&&a[a.length-1][0]>=p)return i.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',g);const b=i.parse(_,v,h);if(!b)return null;h=h||b.type,a.push([p,b])}return new Tl(h,r,a)}evaluate(e){const i=this.labels,r=this.outputs;if(i.length===1)return r[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return r[0].evaluate(e);const h=i.length;return a>=i[h-1]?r[h-1].evaluate(e):r[Ac(i,a)].evaluate(e)}eachChild(e){e(this.input);for(const i of this.outputs)e(i)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let i=0;i<this.labels.length;i++)i>0&&e.push(this.labels[i]),e.push(this.outputs[i].serialize());return e}}const yp=.95047,xp=1.08883,vp=4/29,_a=6/29,bp=3*_a*_a,Em=_a*_a*_a,Im=Math.PI/180,Am=180/Math.PI;function ou(n){return n>Em?Math.pow(n,1/3):n/bp+vp}function su(n){return n>_a?n*n*n:bp*(n-vp)}function au(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function lu(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function wp(n){const e=lu(n.r),i=lu(n.g),r=lu(n.b),a=ou((.4124564*e+.3575761*i+.1804375*r)/yp),h=ou((.2126729*e+.7151522*i+.072175*r)/1);return{l:116*h-16,a:500*(a-h),b:200*(h-ou((.0193339*e+.119192*i+.9503041*r)/xp)),alpha:n.a}}function Tp(n){let e=(n.l+16)/116,i=isNaN(n.a)?e:e+n.a/500,r=isNaN(n.b)?e:e-n.b/200;return e=1*su(e),i=yp*su(i),r=xp*su(r),new Yt(au(3.2404542*i-1.5371385*e-.4985314*r),au(-.969266*i+1.8760108*e+.041556*r),au(.0556434*i-.2040259*e+1.0572252*r),n.alpha)}function cu(n,e,i){const r=e-n;return n+i*(r>180||r<-180?r-360*Math.round(r/360):r)}const os={forward:wp,reverse:Tp,interpolate:function(n,e,i){return{l:ut(n.l,e.l,i),a:ut(n.a,e.a,i),b:ut(n.b,e.b,i),alpha:ut(n.alpha,e.alpha,i)}}},ga={forward:function(n){const{l:e,a:i,b:r}=wp(n),a=Math.atan2(r,i)*Am;return{h:a<0?a+360:a,c:Math.sqrt(i*i+r*r),l:e,alpha:n.a}},reverse:function(n){const e=n.h*Im,i=n.c;return Tp({l:n.l,a:Math.cos(e)*i,b:Math.sin(e)*i,alpha:n.alpha})},interpolate:function(n,e,i){return{h:cu(n.h,e.h,i),c:ut(n.c,e.c,i),l:ut(n.l,e.l,i),alpha:ut(n.alpha,e.alpha,i)}}};var Sp=Object.freeze({__proto__:null,hcl:ga,lab:os});class Tr{constructor(e,i,r,a,h){this.type=e,this.operator=i,this.interpolation=r,this.input=a,this.labels=[],this.outputs=[];for(const[u,p]of h)this.labels.push(u),this.outputs.push(p)}static interpolationFactor(e,i,r,a){let h=0;if(e.name==="exponential")h=hu(i,e.base,r,a);else if(e.name==="linear")h=hu(i,1,r,a);else if(e.name==="cubic-bezier"){const u=e.controlPoints;h=new ra(u[0],u[1],u[2],u[3]).solve(hu(i,1,r,a))}return h}static parse(e,i){let[r,a,h,...u]=e;if(!Array.isArray(a)||a.length===0)return i.error("Expected an interpolation type expression.",1);if(a[0]==="linear")a={name:"linear"};else if(a[0]==="exponential"){const g=a[1];if(typeof g!="number")return i.error("Exponential interpolation requires a numeric base.",1,1);a={name:"exponential",base:g}}else{if(a[0]!=="cubic-bezier")return i.error(`Unknown interpolation type ${String(a[0])}`,1,0);{const g=a.slice(1);if(g.length!==4||g.some(v=>typeof v!="number"||v<0||v>1))return i.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);a={name:"cubic-bezier",controlPoints:g}}}if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length-1>3&&(e.length-1)%2!=0)return i.error("Expected an even number of arguments.");if(h=i.parse(h,2,tt),!h)return null;const p=[];let _=null;r==="interpolate-hcl"||r==="interpolate-lab"?_=Rn:i.expectedType&&i.expectedType.kind!=="value"&&(_=i.expectedType);for(let g=0;g<u.length;g+=2){const v=u[g],b=u[g+1],w=g+3,E=g+4;if(typeof v!="number")return i.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',w);if(p.length&&p[p.length-1][0]>=v)return i.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',w);const I=i.parse(b,E,_);if(!I)return null;_=_||I.type,p.push([v,I])}return _.kind==="number"||_.kind==="color"||_.kind==="array"&&_.itemType.kind==="number"&&typeof _.N=="number"?new Tr(_,r,a,h,p):i.error(`Type ${Zi(_)} is not interpolatable.`)}evaluate(e){const i=this.labels,r=this.outputs;if(i.length===1)return r[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return r[0].evaluate(e);const h=i.length;if(a>=i[h-1])return r[h-1].evaluate(e);const u=Ac(i,a),p=Tr.interpolationFactor(this.interpolation,a,i[u],i[u+1]),_=r[u].evaluate(e),g=r[u+1].evaluate(e);return this.operator==="interpolate"?ul[this.type.kind.toLowerCase()](_,g,p):this.operator==="interpolate-hcl"?ga.reverse(ga.interpolate(ga.forward(_),ga.forward(g),p)):os.reverse(os.interpolate(os.forward(_),os.forward(g),p))}eachChild(e){e(this.input);for(const i of this.outputs)e(i)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;e=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier",...this.interpolation.controlPoints];const i=[this.operator,e,this.input.serialize()];for(let r=0;r<this.labels.length;r++)i.push(this.labels[r],this.outputs[r].serialize());return i}}function hu(n,e,i,r){const a=r-i,h=n-i;return a===0?0:e===1?h/a:(Math.pow(e,h)-1)/(Math.pow(e,a)-1)}class Sl{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expectected at least one argument.");let r=null;const a=i.expectedType;a&&a.kind!=="value"&&(r=a);const h=[];for(const p of e.slice(1)){const _=i.parse(p,1+h.length,r,void 0,{typeAnnotation:"omit"});if(!_)return null;r=r||_.type,h.push(_)}const u=a&&h.some(p=>pl(a,p.type));return new Sl(u?Kt:r,h)}evaluate(e){let i,r=null,a=0;for(const h of this.args){if(a++,r=h.evaluate(e),r&&r instanceof vn&&!r.available&&(i||(i=r),r=null,a===this.args.length))return i;if(r!==null)break}return r}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(i=>{e.push(i.serialize())}),e}}class El{constructor(e,i){this.type=i.type,this.bindings=[].concat(e),this.result=i}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const i of this.bindings)e(i[1]);e(this.result)}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const r=[];for(let h=1;h<e.length-1;h+=2){const u=e[h];if(typeof u!="string")return i.error(`Expected string, but found ${typeof u} instead.`,h);if(/[^a-zA-Z0-9_]/.test(u))return i.error("Variable names must contain only alphanumeric characters or '_'.",h);const p=i.parse(e[h+1],h+1);if(!p)return null;r.push([u,p])}const a=i.parse(e[e.length-1],e.length-1,i.expectedType,r);return a?new El(r,a):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[i,r]of this.bindings)e.push(i,r.serialize());return e.push(this.result.serialize()),e}}class ss{constructor(e,i,r){this.type=e,this.index=i,this.input=r}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,tt),a=i.parse(e[2],2,Mn(i.expectedType||Kt));return r&&a?new ss(a.type.itemType,r,a):null}evaluate(e){const i=this.index.evaluate(e),r=this.input.evaluate(e);if(i<0)throw new Qi("Array index out of bounds: negative index");if(i>=r.length)throw new Qi("Array index out of bounds: index exceeds array size");if(i!==Math.floor(i))throw new Qi("Array index must be an integer. Use at-interpolated for fractional indices");return r[i]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class Mc{constructor(e,i,r){this.type=e,this.index=i,this.input=r}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,tt),a=i.parse(e[2],2,Mn(i.expectedType||Kt));return r&&a?new Mc(a.type.itemType,r,a):null}evaluate(e){const i=this.index.evaluate(e),r=this.input.evaluate(e);if(i<0)throw new Qi(`Array index out of bounds: ${i} < 0.`);if(i>r.length-1)throw new Qi(`Array index out of bounds: ${i} > ${r.length-1}.`);if(i===Math.floor(i))return r[i];const a=Math.floor(i),h=Math.ceil(i),u=r[a],p=r[h];if(typeof u!="number"||typeof p!="number")throw new Qi(`Cannot interpolate between non-number values at index ${i}.`);const _=i-a;return u*(1-_)+p*_}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at-interpolated",this.index.serialize(),this.input.serialize()]}}class Cc{constructor(e,i){this.type=Wt,this.needle=e,this.haystack=i}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Kt),a=i.parse(e[2],2,Kt);return r&&a?$h(r.type,[Wt,Zt,tt,Rs,Kt])?new Cc(r,a):i.error(`Expected first argument to be of type boolean, string, number or null, but found ${Zi(r.type)} instead`):null}evaluate(e){const i=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(r==null)return!1;if(!fl(i,["boolean","string","number","null"]))throw new Qi(`Expected first argument to be of type boolean, string, number or null, but found ${Zi(Wi(i))} instead.`);if(!fl(r,["string","array"]))throw new Qi(`Expected second argument to be of type array or string, but found ${Zi(Wi(r))} instead.`);return r.indexOf(i)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class Pc{constructor(e,i,r){this.type=tt,this.needle=e,this.haystack=i,this.fromIndex=r}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Kt),a=i.parse(e[2],2,Kt);if(!r||!a)return null;if(!$h(r.type,[Wt,Zt,tt,Rs,Kt]))return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${Zi(r.type)} instead`);if(e.length===4){const h=i.parse(e[3],3,tt);return h?new Pc(r,a,h):null}return new Pc(r,a)}evaluate(e){const i=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(!fl(i,["boolean","string","number","null"]))throw new Qi(`Expected first argument to be of type boolean, string, number or null, but found ${Zi(Wi(i))} instead.`);if(!fl(r,["string","array"]))throw new Qi(`Expected second argument to be of type array or string, but found ${Zi(Wi(r))} instead.`);if(this.fromIndex){const a=this.fromIndex.evaluate(e);return r.indexOf(i,a)}return r.indexOf(i)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class Il{constructor(e,i,r,a,h,u){this.inputType=e,this.type=i,this.input=r,this.cases=a,this.outputs=h,this.otherwise=u}static parse(e,i){if(e.length<5)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return i.error("Expected an even number of arguments.");let r,a;i.expectedType&&i.expectedType.kind!=="value"&&(a=i.expectedType);const h={},u=[];for(let g=2;g<e.length-1;g+=2){let v=e[g];const b=e[g+1];Array.isArray(v)||(v=[v]);const w=i.concat(g);if(v.length===0)return w.error("Expected at least one branch label.");for(const I of v){if(typeof I!="number"&&typeof I!="string")return w.error("Branch labels must be numbers or strings.");if(typeof I=="number"&&Math.abs(I)>Number.MAX_SAFE_INTEGER)return w.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof I=="number"&&Math.floor(I)!==I)return w.error("Numeric branch labels must be integer values.");if(r){if(w.checkSubtype(r,Wi(I)))return null}else r=Wi(I);if(h[String(I)]!==void 0)return w.error("Branch labels must be unique.");h[String(I)]=u.length}const E=i.parse(b,g,a);if(!E)return null;a=a||E.type,u.push(E)}const p=i.parse(e[1],1,Kt);if(!p)return null;const _=i.parse(e[e.length-1],e.length-1,a);return _?p.type.kind!=="value"&&i.concat(1).checkSubtype(r,p.type)?null:new Il(r,a,p,h,u,_):null}evaluate(e){const i=this.input.evaluate(e);return(dc(Wi(i),this.inputType)&&this.outputs[this.cases[i]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],i=Object.keys(this.cases).sort(),r=[],a={};for(const u of i){const p=a[this.cases[u]];p===void 0?(a[this.cases[u]]=r.length,r.push([this.cases[u],[u]])):r[p][1].push(u)}const h=u=>this.inputType.kind==="number"?Number(u):u;for(const[u,p]of r)e.push(p.length===1?h(p[0]):p.map(h)),e.push(this.outputs[u].serialize());return e.push(this.otherwise.serialize()),e}}class Al{constructor(e,i,r){this.type=e,this.branches=i,this.otherwise=r}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return i.error("Expected an odd number of arguments.");let r;i.expectedType&&i.expectedType.kind!=="value"&&(r=i.expectedType);const a=[];for(let u=1;u<e.length-1;u+=2){const p=i.parse(e[u],u,Wt);if(!p)return null;const _=i.parse(e[u+1],u+1,r);if(!_)return null;a.push([p,_]),r=r||_.type}const h=i.parse(e[e.length-1],e.length-1,r);return h?new Al(r,a,h):null}evaluate(e){for(const[i,r]of this.branches)if(i.evaluate(e))return r.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[i,r]of this.branches)e(i),e(r);e(this.otherwise)}outputDefined(){return this.branches.every(([e,i])=>i.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(i=>{e.push(i.serialize())}),e}}class ya{constructor(e,i,r,a){this.type=e,this.input=i,this.beginIndex=r,this.endIndex=a}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Kt),a=i.parse(e[2],2,tt);if(!r||!a)return null;if(!$h(r.type,[Mn(Kt),Zt,Kt]))return i.error(`Expected first argument to be of type array or string, but found ${Zi(r.type)} instead`);if(e.length===4){const h=i.parse(e[3],3,tt);return h?new ya(r.type,r,a,h):null}return new ya(r.type,r,a)}evaluate(e){const i=this.input.evaluate(e),r=this.beginIndex.evaluate(e);if(!fl(i,["string","array"]))throw new Qi(`Expected first argument to be of type array or string, but found ${Zi(Wi(i))} instead.`);if(this.endIndex){const a=this.endIndex.evaluate(e);return i.slice(r,a)}return i.slice(r)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}class uu{constructor(e,i){this.type=Mn(Zt),this.str=e,this.delimiter=i}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Zt),a=i.parse(e[2],2,Zt);return r&&a?new uu(r,a):void 0}evaluate(e){const i=this.str.evaluate(e),r=this.delimiter.evaluate(e);return i.split(r)}eachChild(e){e(this.str),e(this.delimiter)}outputDefined(){return!1}serialize(){return["split",this.str.serialize(),this.delimiter.serialize()]}}function Ep(n,e){return n==="=="||n==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function du(n,e,i,r){return r.compare(e,i)===0}function Bs(n,e,i){const r=n!=="=="&&n!=="!=";return class Ov{constructor(h,u,p){this.type=Wt,this.lhs=h,this.rhs=u,this.collator=p,this.hasUntypedArgument=h.type.kind==="value"||u.type.kind==="value"}static parse(h,u){if(h.length!==3&&h.length!==4)return u.error("Expected two or three arguments.");const p=h[0];let _=u.parse(h[1],1,Kt);if(!_)return null;if(!Ep(p,_.type))return u.concat(1).error(`"${p}" comparisons are not supported for type '${Zi(_.type)}'.`);let g=u.parse(h[2],2,Kt);if(!g)return null;if(!Ep(p,g.type))return u.concat(2).error(`"${p}" comparisons are not supported for type '${Zi(g.type)}'.`);if(_.type.kind!==g.type.kind&&_.type.kind!=="value"&&g.type.kind!=="value")return u.error(`Cannot compare types '${Zi(_.type)}' and '${Zi(g.type)}'.`);r&&(_.type.kind==="value"&&g.type.kind!=="value"?_=new $n(g.type,[_]):_.type.kind!=="value"&&g.type.kind==="value"&&(g=new $n(_.type,[g])));let v=null;if(h.length===4){if(_.type.kind!=="string"&&g.type.kind!=="string"&&_.type.kind!=="value"&&g.type.kind!=="value")return u.error("Cannot use collator to compare non-string types.");if(v=u.parse(h[3],3,hc),!v)return null}return new Ov(_,g,v)}evaluate(h){const u=this.lhs.evaluate(h),p=this.rhs.evaluate(h);if(r&&this.hasUntypedArgument){const _=Wi(u),g=Wi(p);if(_.kind!==g.kind||_.kind!=="string"&&_.kind!=="number")throw new Qi(`Expected arguments for "${n}" to be (string, string) or (number, number), but found (${_.kind}, ${g.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const _=Wi(u),g=Wi(p);if(_.kind!=="string"||g.kind!=="string")return e(h,u,p)}return this.collator?i(h,u,p,this.collator.evaluate(h)):e(h,u,p)}eachChild(h){h(this.lhs),h(this.rhs),this.collator&&h(this.collator)}outputDefined(){return!0}serialize(){const h=[n];return this.eachChild(u=>{h.push(u.serialize())}),h}}}const Mm=Bs("==",function(n,e,i){return e===i},du),Cm=Bs("!=",function(n,e,i){return e!==i},function(n,e,i,r){return!du(0,e,i,r)}),Pm=Bs("<",function(n,e,i){return e<i},function(n,e,i,r){return r.compare(e,i)<0}),Ip=Bs(">",function(n,e,i){return e>i},function(n,e,i,r){return r.compare(e,i)>0}),Ap=Bs("<=",function(n,e,i){return e<=i},function(n,e,i,r){return r.compare(e,i)<=0}),Rc=Bs(">=",function(n,e,i){return e>=i},function(n,e,i,r){return r.compare(e,i)>=0});class pu{constructor(e,i,r,a,h,u){this.type=Zt,this.number=e,this.locale=i,this.currency=r,this.unit=a,this.minFractionDigits=h,this.maxFractionDigits=u}static parse(e,i){if(e.length!==3)return i.error("Expected two arguments.");const r=i.parse(e[1],1,tt);if(!r)return null;const a=e[2];if(typeof a!="object"||Array.isArray(a))return i.error("NumberFormat options argument must be an object.");let h=null;if(a.locale&&(h=i.parseObjectValue(a.locale,2,"locale",Zt),!h))return null;let u=null;if(a.currency&&(u=i.parseObjectValue(a.currency,2,"currency",Zt),!u))return null;let p=null;if(a.unit&&(p=i.parseObjectValue(a.unit,2,"unit",Zt),!p))return null;let _=null;if(a["min-fraction-digits"]&&(_=i.parseObjectValue(a["min-fraction-digits"],2,"min-fraction-digits",tt),!_))return null;let g=null;return a["max-fraction-digits"]&&(g=i.parseObjectValue(a["max-fraction-digits"],2,"max-fraction-digits",tt),!g)?null:new pu(r,h,u,p,_,g)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class Dc{constructor(e){this.type=tt,this.input=e}static parse(e,i){if(e.length!==2)return i.error(`Expected 1 argument, but found ${e.length-1} instead.`);const r=i.parse(e[1],1);return r?r.type.kind!=="array"&&r.type.kind!=="string"&&r.type.kind!=="value"?i.error(`Expected argument of type string or array, but found ${Zi(r.type)} instead.`):new Dc(r):null}evaluate(e){const i=this.input.evaluate(e);if(typeof i=="string"||Array.isArray(i))return i.length;throw new Qi(`Expected value to be of type string or array, but found ${Zi(Wi(i))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(i=>{e.push(i.serialize())}),e}}function Mp(n){return function(){n=1831565813+(n|=0)|0;let e=Math.imul(n^n>>>15,1|n);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const xa={"==":Mm,"!=":Cm,">":Ip,"<":Pm,">=":Rc,"<=":Ap,array:$n,at:ss,"at-interpolated":Mc,boolean:$n,case:Al,coalesce:Sl,collator:ca,format:xt,image:rt,in:Cc,"index-of":Pc,interpolate:Tr,"interpolate-hcl":Tr,"interpolate-lab":Tr,length:Dc,let:El,literal:Co,match:Il,number:$n,"number-format":pu,object:$n,slice:ya,step:Tl,string:$n,"to-boolean":Hr,"to-color":Hr,"to-number":Hr,"to-string":Hr,var:Ec,within:rs,distance:Os,config:ma,split:uu};function fu(n,[e,i,r,a]){e=e.evaluate(n),i=i.evaluate(n),r=r.evaluate(n);const h=a?a.evaluate(n):1,u=np(e,i,r,h);if(u)throw new Qi(u);return new Yt(e/255,i/255,r/255,h)}function mu(n,[e,i,r,a]){e=e.evaluate(n),i=i.evaluate(n),r=r.evaluate(n);const h=a?a.evaluate(n):1,u=function(g,v,b,w){return typeof g=="number"&&g>=0&&g<=360?typeof v=="number"&&v>=0&&v<=100&&typeof b=="number"&&b>=0&&b<=100?w===void 0||typeof w=="number"&&w>=0&&w<=1?null:`Invalid hsla value [${[g,v,b,w].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof w=="number"?[g,v,b,w]:[g,v,b]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof w=="number"?[g,v,b,w]:[g,v,b]).join(", ")}]: 'h' must be between 0 and 360.`}(e,i,r,h);if(u)throw new Qi(u);const p=`hsla(${e}, ${i}%, ${r}%, ${h})`,_=Yt.parse(p);if(!_)throw new Qi(`Failed to parse HSLA color: ${p}`);return _}function Cp(n,e){return n in e}function _u(n,e){const i=e[n];return i===void 0?null:i}function as(n){return{type:n}}function zc(n){if(n instanceof ma)return new Set([n.key]);let e=new Set;return n.eachChild(i=>{e=new Set([...e,...zc(i)])}),e}function ks(n){if(n instanceof Dn&&n.name==="is-active-floor")return!0;let e=!1;return n.eachChild(i=>{!e&&ks(i)&&(e=!0)}),e}function Pp(n){return{result:"success",value:n}}function ls(n){return{result:"error",value:n}}function gu(n,e){return!!n&&!!n.parameters&&n.parameters.indexOf(e)>-1}function Lc(n){return n["property-type"]==="data-driven"}function Rp(n){return gu(n.expression,"measure-light")}function Fc(n){return gu(n.expression,"zoom")}function yu(n){return!!n.expression&&n.expression.interpolated}function xu(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Dp(n){return n}function vu(n,e){const i=e.type==="color",r=n.stops&&typeof n.stops[0][0]=="object",a=r||!(r||n.property!==void 0),h=n.type||(yu(e)?"exponential":"interval");if(i&&((n=Object.assign({},n)).stops&&(n.stops=n.stops.map(g=>[g[0],Yt.parse(g[1])])),n.default=Yt.parse(n.default?n.default:e.default)),n.colorSpace&&n.colorSpace!=="rgb"&&!Sp[n.colorSpace])throw new Error(`Unknown color space: ${n.colorSpace}`);let u,p,_;if(h==="exponential")u=Ns;else if(h==="interval")u=Rm;else if(h==="categorical"){u=zp,p=Object.create(null);for(const g of n.stops)p[g[0]]=g[1];_=typeof n.stops[0][0]}else{if(h!=="identity")throw new Error(`Unknown function type "${h}"`);u=Dm}if(r){const g={},v=[];for(let E=0;E<n.stops.length;E++){const I=n.stops[E],P=I[0].zoom;g[P]===void 0&&(g[P]={zoom:P,type:n.type,property:n.property,default:n.default,stops:[]},v.push(P)),g[P].stops.push([I[0].value,I[1]])}const b=[];for(const E of v)b.push([g[E].zoom,vu(g[E],e)]);const w={name:"linear"};return{kind:"composite",interpolationType:w,interpolationFactor:Tr.interpolationFactor.bind(void 0,w),zoomStops:b.map(E=>E[0]),evaluate:({zoom:E},I)=>Ns({stops:b,base:n.base},e,E).evaluate(E,I)}}if(a){const g=h==="exponential"?{name:"exponential",base:n.base!==void 0?n.base:1}:null;return{kind:"camera",interpolationType:g,interpolationFactor:Tr.interpolationFactor.bind(void 0,g),zoomStops:n.stops.map(v=>v[0]),evaluate:({zoom:v})=>u(n,e,v,p,_)}}return{kind:"source",evaluate(g,v){const b=v&&v.properties?v.properties[n.property]:void 0;return b===void 0?Ml(n.default,e.default):u(n,e,b,p,_)}}}function Ml(n,e,i){return n!==void 0?n:e!==void 0?e:i!==void 0?i:void 0}function zp(n,e,i,r,a){return Ml(typeof i===a?r[i]:void 0,n.default,e.default)}function Rm(n,e,i){if(!la(i))return Ml(n.default,e.default);const r=n.stops.length;if(r===1||i<=n.stops[0][0])return n.stops[0][1];if(i>=n.stops[r-1][0])return n.stops[r-1][1];const a=Ac(n.stops.map(h=>h[0]),i);return n.stops[a][1]}function Ns(n,e,i){const r=n.base!==void 0?n.base:1;if(!la(i))return Ml(n.default,e.default);const a=n.stops.length;if(a===1||i<=n.stops[0][0])return n.stops[0][1];if(i>=n.stops[a-1][0])return n.stops[a-1][1];const h=Ac(n.stops.map(v=>v[0]),i),u=function(v,b,w,E){const I=E-w,P=v-w;return I===0?0:b===1?P/I:(Math.pow(b,P)-1)/(Math.pow(b,I)-1)}(i,r,n.stops[h][0],n.stops[h+1][0]),p=n.stops[h][1],_=n.stops[h+1][1];let g=ul[e.type]||Dp;if(n.colorSpace&&n.colorSpace!=="rgb"){const v=Sp[n.colorSpace];g=(b,w)=>v.reverse(v.interpolate(v.forward(b),v.forward(w),u))}return typeof p.evaluate=="function"?{evaluate(...v){const b=p.evaluate.apply(void 0,v),w=_.evaluate.apply(void 0,v);if(b!==void 0&&w!==void 0)return g(b,w,u)}}:g(p,_,u)}function Dm(n,e,i){return e.type==="color"?i=Yt.parse(i):e.type==="formatted"?i=qn.fromString(i.toString()):e.type==="resolvedImage"?i=vn.build(i.toString()):aa(i)===e.type||e.type==="enum"&&e.values[i]||(i=void 0),Ml(i,n.default,e.default)}Dn.register(xa,{error:[{kind:"error"},[Zt],(n,[e])=>{throw new Qi(e.evaluate(n))}],typeof:[Zt,[Kt],(n,[e])=>Zi(Wi(e.evaluate(n)))],"to-rgba":[Mn(tt,4),[Rn],(n,[e])=>e.evaluate(n).toNonPremultipliedRenderColor(null).toArray()],"to-hsla":[Mn(tt,4),[Rn],(n,[e])=>e.evaluate(n).toNonPremultipliedRenderColor(null).toHslaArray()],rgb:[Rn,[tt,tt,tt],fu],rgba:[Rn,[tt,tt,tt,tt],fu],hsl:[Rn,[tt,tt,tt],mu],hsla:[Rn,[tt,tt,tt,tt],mu],has:{type:Wt,overloads:[[[Zt],(n,[e])=>Cp(e.evaluate(n),n.properties())],[[Zt,Jo],(n,[e,i])=>Cp(e.evaluate(n),i.evaluate(n))]]},get:{type:Kt,overloads:[[[Zt],(n,[e])=>_u(e.evaluate(n),n.properties())],[[Zt,Jo],(n,[e,i])=>_u(e.evaluate(n),i.evaluate(n))]]},"feature-state":[Kt,[Zt],(n,[e])=>_u(e.evaluate(n),n.featureState||{})],properties:[Jo,[],n=>n.properties()],"geometry-type":[Zt,[],n=>n.geometryType()],worldview:[Zt,[],n=>n.globals.worldview||""],"is-active-floor":[Wt,as(Zt),(n,e)=>{if(!(n.globals&&n.globals.activeFloors&&n.globals.activeFloors.size>0))return!1;if(e.length===0)return!0;const i=n.globals.activeFloors;return e.some(r=>{const a=r.evaluate(n);return i.has(a)})}],id:[Kt,[],n=>n.id()],zoom:[tt,[],n=>n.globals.zoom],pitch:[tt,[],n=>n.globals.pitch||0],"distance-from-center":[tt,[],n=>n.distanceFromCenter()],"measure-light":[tt,[Zt],(n,[e])=>n.measureLight(e.evaluate(n))],"heatmap-density":[tt,[],n=>n.globals.heatmapDensity||0],"line-progress":[tt,[],n=>n.globals.lineProgress||0],"raster-value":[tt,[],n=>n.globals.rasterValue||0],"raster-particle-speed":[tt,[],n=>n.globals.rasterParticleSpeed||0],"sky-radial-progress":[tt,[],n=>n.globals.skyRadialProgress||0],accumulated:[Kt,[],n=>n.globals.accumulated===void 0?null:n.globals.accumulated],"+":[tt,as(tt),(n,e)=>{let i=0;for(const r of e)i+=r.evaluate(n);return i}],"*":[tt,as(tt),(n,e)=>{let i=1;for(const r of e)i*=r.evaluate(n);return i}],"-":{type:tt,overloads:[[[tt,tt],(n,[e,i])=>e.evaluate(n)-i.evaluate(n)],[[tt],(n,[e])=>-e.evaluate(n)]]},"/":[tt,[tt,tt],(n,[e,i])=>e.evaluate(n)/i.evaluate(n)],"%":[tt,[tt,tt],(n,[e,i])=>e.evaluate(n)%i.evaluate(n)],ln2:[tt,[],()=>Math.LN2],pi:[tt,[],()=>Math.PI],e:[tt,[],()=>Math.E],"^":[tt,[tt,tt],(n,[e,i])=>Math.pow(e.evaluate(n),i.evaluate(n))],sqrt:[tt,[tt],(n,[e])=>Math.sqrt(e.evaluate(n))],log10:[tt,[tt],(n,[e])=>Math.log(e.evaluate(n))/Math.LN10],ln:[tt,[tt],(n,[e])=>Math.log(e.evaluate(n))],log2:[tt,[tt],(n,[e])=>Math.log2(e.evaluate(n))],sin:[tt,[tt],(n,[e])=>Math.sin(e.evaluate(n))],cos:[tt,[tt],(n,[e])=>Math.cos(e.evaluate(n))],tan:[tt,[tt],(n,[e])=>Math.tan(e.evaluate(n))],asin:[tt,[tt],(n,[e])=>Math.asin(e.evaluate(n))],acos:[tt,[tt],(n,[e])=>Math.acos(e.evaluate(n))],atan:[tt,[tt],(n,[e])=>Math.atan(e.evaluate(n))],min:[tt,as(tt),(n,e)=>Math.min(...e.map(i=>i.evaluate(n)))],max:[tt,as(tt),(n,e)=>Math.max(...e.map(i=>i.evaluate(n)))],abs:[tt,[tt],(n,[e])=>Math.abs(e.evaluate(n))],round:[tt,[tt],(n,[e])=>{const i=e.evaluate(n);return i<0?-Math.round(-i):Math.round(i)}],floor:[tt,[tt],(n,[e])=>Math.floor(e.evaluate(n))],ceil:[tt,[tt],(n,[e])=>Math.ceil(e.evaluate(n))],"filter-==":[Wt,[Zt,Kt],(n,[e,i])=>n.properties()[e.value]===i.value],"filter-id-==":[Wt,[Kt],(n,[e])=>n.id()===e.value],"filter-type-==":[Wt,[Zt],(n,[e])=>n.geometryType()===e.value],"filter-<":[Wt,[Zt,Kt],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r<a}],"filter-id-<":[Wt,[Kt],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i<r}],"filter->":[Wt,[Zt,Kt],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r>a}],"filter-id->":[Wt,[Kt],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i>r}],"filter-<=":[Wt,[Zt,Kt],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r<=a}],"filter-id-<=":[Wt,[Kt],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i<=r}],"filter->=":[Wt,[Zt,Kt],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r>=a}],"filter-id->=":[Wt,[Kt],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i>=r}],"filter-has":[Wt,[Kt],(n,[e])=>e.value in n.properties()],"filter-has-id":[Wt,[],n=>n.id()!==null&&n.id()!==void 0],"filter-type-in":[Wt,[Mn(Zt)],(n,[e])=>e.value.indexOf(n.geometryType())>=0],"filter-id-in":[Wt,[Mn(Kt)],(n,[e])=>e.value.indexOf(n.id())>=0],"filter-in-small":[Wt,[Zt,Mn(Kt)],(n,[e,i])=>i.value.indexOf(n.properties()[e.value])>=0],"filter-in-large":[Wt,[Zt,Mn(Kt)],(n,[e,i])=>function(r,a,h,u){for(;h<=u;){const p=h+u>>1;if(a[p]===r)return!0;a[p]>r?u=p-1:h=p+1}return!1}(n.properties()[e.value],i.value,0,i.value.length-1)],all:{type:Wt,overloads:[[[Wt,Wt],(n,[e,i])=>e.evaluate(n)&&i.evaluate(n)],[as(Wt),(n,e)=>{for(const i of e)if(!i.evaluate(n))return!1;return!0}]]},any:{type:Wt,overloads:[[[Wt,Wt],(n,[e,i])=>e.evaluate(n)||i.evaluate(n)],[as(Wt),(n,e)=>{for(const i of e)if(i.evaluate(n))return!0;return!1}]]},"!":[Wt,[Wt],(n,[e])=>!e.evaluate(n)],"is-supported-script":[Wt,[Zt],(n,[e])=>{const i=n.globals&&n.globals.isSupportedScript;return!i||i(e.evaluate(n))}],upcase:[Zt,[Zt],(n,[e])=>e.evaluate(n).toUpperCase()],downcase:[Zt,[Zt],(n,[e])=>e.evaluate(n).toLowerCase()],concat:[Zt,as(Kt),(n,e)=>e.map(i=>ao(i.evaluate(n))).join("")],"resolved-locale":[Zt,[hc],(n,[e])=>e.evaluate(n).resolvedLocale()],random:[tt,[tt,tt,Kt],(n,e)=>{const[i,r,a]=e.map(u=>u.evaluate(n));if(i>r||i===r)return i;let h;if(typeof a=="string")h=function(u){let p=0;if(u.length===0)return p;for(let _=0;_<u.length;_++)p=(p<<5)-p+u.charCodeAt(_),p&=p;return p}(a);else{if(typeof a!="number")throw new Qi(`Invalid seed input: ${a}`);h=a}return i+Mp(h)()*(r-i)}]});class bu{constructor(e,i,r,a,h){this.expression=e,this._warningHistory={},this._scope=r,this._options=a,this._iconImageUseTheme=h,this._evaluator=new fc(r,a,h),this._defaultValue=i?function(u){return u.type==="color"&&(xu(u.default)||Array.isArray(u.default))?new Yt(0,0,0,0):u.type==="color"?Yt.parse(u.default)||null:u.default===void 0?null:u.default}(i):null,this._enumValues=i&&i.type==="enum"?i.values:null,this.configDependencies=zc(e),this.isIndoorDependent=ks(e)}evaluateWithoutErrorHandling(e,i,r,a,h,u,p,_){return this._evaluator.globals=e,this._evaluator.feature=i,this._evaluator.featureState=r,this._evaluator.canonical=a||null,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=u,this._evaluator.featureTileCoord=p||null,this._evaluator.featureDistanceData=_||null,this.expression.evaluate(this._evaluator)}evaluate(e,i,r,a,h,u,p,_,g){this._evaluator||(this._evaluator=new fc(this._scope,this._options,this._iconImageUseTheme)),this._evaluator.globals=e,this._evaluator.feature=i||null,this._evaluator.featureState=r||null,this._evaluator.canonical=a||null,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=u||null,this._evaluator.featureTileCoord=p||null,this._evaluator.featureDistanceData=_||null,this._evaluator.iconImageUseTheme=g||null;try{const v=this.expression.evaluate(this._evaluator);if(v==null||typeof v=="number"&&v!=v)return this._defaultValue;if(this._enumValues&&!(v in this._enumValues))throw new Qi(`Expected value to be one of ${Object.keys(this._enumValues).map(b=>JSON.stringify(b)).join(", ")}, but found ${JSON.stringify(v)} instead.`);return v}catch(v){const b=v;return this._warningHistory[b.message]||(this._warningHistory[b.message]=!0,typeof console<"u"&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${b.message}`)),this._defaultValue}}}function Oc(n){return Array.isArray(n)&&n.length>0&&typeof n[0]=="string"&&n[0]in xa}function cs(n,e,i,r,a){const h=new Ic(xa,[],e?function(p){const _={color:Rn,string:Zt,number:tt,enum:Zt,boolean:Wt,formatted:dl,resolvedImage:sa};return p.type==="array"?Mn(_[p.value]||Kt,p.length):_[p.type]}(e):void 0,void 0,void 0,i,r,a),u=h.parse(n,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return u?Pp(new bu(u,e,i,r,a)):ls(h.errors)}class Cl{constructor(e,i,r,a){this.kind=e,this._styleExpression=i,this.isLightConstant=r,this.isLineProgressConstant=a,this.isStateDependent=e!=="constant"&&!wl(i.expression),this.configDependencies=zc(i.expression),this.isIndoorDependent=ks(i.expression)}evaluateWithoutErrorHandling(e,i,r,a,h,u){return this._styleExpression.evaluateWithoutErrorHandling(e,i,r,a,h,u)}evaluate(e,i,r,a,h,u,p){return this._styleExpression.evaluate(e,i,r,a,h,u,void 0,void 0,p)}}class va{constructor(e,i,r,a,h,u){this.kind=e,this.zoomStops=r,this._styleExpression=i,this.isStateDependent=e!=="camera"&&!wl(i.expression),this.isIndoorDependent=ks(i.expression),this.isLightConstant=h,this.isLineProgressConstant=u,this.configDependencies=zc(i.expression),this.interpolationType=a}evaluateWithoutErrorHandling(e,i,r,a,h,u){return this._styleExpression.evaluateWithoutErrorHandling(e,i,r,a,h,u)}evaluate(e,i,r,a,h,u){return this._styleExpression.evaluate(e,i,r,a,h,u)}interpolationFactor(e,i,r){return this.interpolationType?Tr.interpolationFactor(this.interpolationType,e,i,r):0}}function wu(n,e,i,r,a){if((n=cs(n,e,i,r,a)).result==="error")return n;const h=n.value.expression,u=pa(h);if(!u&&!Lc(e))return ls([new ar("","data expressions not supported")]);const p=fa(h,["zoom","pitch","distance-from-center"]);if(!p&&!Fc(e))return ls([new ar("","zoom expressions not supported")]);const _=fa(h,["measure-light"]);if(!_&&!Rp(e))return ls([new ar("","measure-light expression not supported")]);const g=fa(h,["line-progress"]);if(!g&&!function(w){return gu(w.expression,"line-progress")}(e))return ls([new ar("","line-progress expression not supported")]);const v=e.expression&&e.expression.relaxZoomRestriction,b=wa(h);return b||p||v?b instanceof ar?ls([b]):b instanceof Tr&&!yu(e)?ls([new ar("",'"interpolate" expressions cannot be used with this property')]):Pp(b?new va(u&&g?"camera":"composite",n.value,b.labels,b instanceof Tr?b.interpolation:void 0,_,g):new Cl(u&&g?"constant":"source",n.value,_,g)):ls([new ar("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class ba{constructor(e,i){this._parameters=e,this._specification=i,Object.assign(this,vu(this._parameters,this._specification))}static deserialize(e){return new ba(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function wa(n){let e=null;if(n instanceof El)e=wa(n.result);else if(n instanceof Sl){for(const i of n.args)if(e=wa(i),e)break}else(n instanceof Tl||n instanceof Tr)&&n.input instanceof Dn&&n.input.name==="zoom"&&(e=n);return e instanceof ar||n.eachChild(i=>{const r=wa(i);r instanceof ar?e=r:e&&r&&e!==r&&(e=new ar("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}var Bc,Lp,hs=function(){if(Lp)return Bc;Lp=1,Bc=e;var n=3;function e(i,r,a){var h=this.cells=[];if(i instanceof ArrayBuffer){this.arrayBuffer=i;var u=new Int32Array(this.arrayBuffer);i=u[0],this.d=(r=u[1])+2*(a=u[2]);for(var p=0;p<this.d*this.d;p++){var _=u[n+p],g=u[n+p+1];h.push(_===g?null:u.subarray(_,g))}var v=u[n+h.length+1];this.keys=u.subarray(u[n+h.length],v),this.bboxes=u.subarray(v),this.insert=this._insertReadonly}else{this.d=r+2*a;for(var b=0;b<this.d*this.d;b++)h.push([]);this.keys=[],this.bboxes=[]}this.n=r,this.extent=i,this.padding=a,this.scale=r/i,this.uid=0;var w=a/r*i;this.min=-w,this.max=i+w}return e.prototype.insert=function(i,r,a,h,u){this._forEachCell(r,a,h,u,this._insertCell,this.uid++),this.keys.push(i),this.bboxes.push(r),this.bboxes.push(a),this.bboxes.push(h),this.bboxes.push(u)},e.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},e.prototype._insertCell=function(i,r,a,h,u,p){this.cells[u].push(p)},e.prototype.query=function(i,r,a,h,u){var p=this.min,_=this.max;if(i<=p&&r<=p&&_<=a&&_<=h&&!u)return Array.prototype.slice.call(this.keys);var g=[];return this._forEachCell(i,r,a,h,this._queryCell,g,{},u),g},e.prototype._queryCell=function(i,r,a,h,u,p,_,g){var v=this.cells[u];if(v!==null)for(var b=this.keys,w=this.bboxes,E=0;E<v.length;E++){var I=v[E];if(_[I]===void 0){var P=4*I;(g?g(w[P+0],w[P+1],w[P+2],w[P+3]):i<=w[P+2]&&r<=w[P+3]&&a>=w[P+0]&&h>=w[P+1])?(_[I]=!0,p.push(b[I])):_[I]=!1}}},e.prototype._forEachCell=function(i,r,a,h,u,p,_,g){for(var v=this._convertToCellCoord(i),b=this._convertToCellCoord(r),w=this._convertToCellCoord(a),E=this._convertToCellCoord(h),I=v;I<=w;I++)for(var P=b;P<=E;P++){var z=this.d*P+I;if((!g||g(this._convertFromCellCoord(I),this._convertFromCellCoord(P),this._convertFromCellCoord(I+1),this._convertFromCellCoord(P+1)))&&u.call(this,i,r,a,h,z,p,_,g))return}},e.prototype._convertFromCellCoord=function(i){return(i-this.padding)/this.scale},e.prototype._convertToCellCoord=function(i){return Math.max(0,Math.min(this.d-1,Math.floor(i*this.scale)+this.padding))},e.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var i=this.cells,r=n+this.cells.length+1+1,a=0,h=0;h<this.cells.length;h++)a+=this.cells[h].length;var u=new Int32Array(r+a+this.keys.length+this.bboxes.length);u[0]=this.extent,u[1]=this.n,u[2]=this.padding;for(var p=r,_=0;_<i.length;_++){var g=i[_];u[n+_]=p,u.set(g,p),p+=g.length}return u[n+i.length]=p,u.set(this.keys,p),u[n+i.length+1]=p+=this.keys.length,u.set(this.bboxes,p),p+=this.bboxes.length,u.buffer},Bc}(),Ta=vr(hs);const kc={};function Qe(n,e,i={}){Object.defineProperty(n,"_classRegistryKey",{value:e,writable:!1}),kc[e]={klass:n,omit:i.omit||[]}}Qe(Object,"Object"),Ta.serialize=function(n,e){const i=n.toArrayBuffer();return e&&e.add(i),{buffer:i}},Ta.deserialize=function(n){return new Ta(n.buffer)},Object.defineProperty(Ta,"name",{value:"Grid"}),Qe(Ta,"Grid"),delete Oe.prototype.constructor,Qe(Yt,"Color"),Qe(Error,"Error"),Qe(qn,"Formatted"),Qe(pc,"FormattedSection"),Qe(sr,"AJAXError"),Qe(vn,"ResolvedImage"),Qe(ba,"StylePropertyFunction"),Qe(bu,"StyleExpression",{omit:["_evaluator"]}),Qe(Xn,"ImageId"),Qe($r,"ImageVariant"),Qe(va,"ZoomDependentExpression"),Qe(Cl,"ZoomConstantExpression"),Qe(Dn,"CompoundExpression",{omit:["_evaluate"]});for(const n in xa)kc[xa[n]._classRegistryKey]||Qe(xa[n],`Expression${n}`);function Fp(n){return n&&(n instanceof ArrayBuffer||n.constructor&&n.constructor.name==="ArrayBuffer")}function Zr(n,e){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp)return n;if(Fp(n)||n instanceof ImageBitmap)return e&&e.add(n),n;if(ArrayBuffer.isView(n))return e&&e.add(n.buffer),n;if(n instanceof ImageData)return e&&e.add(n.data.buffer),n;if(Array.isArray(n)){const i=[];for(const r of n)i.push(Zr(r,e));return i}if(n instanceof Map){const i={$name:"Map",entries:[]};for(const[r,a]of n.entries())i.entries.push(Zr(r),Zr(a,e));return i}if(n instanceof Set){const i={$name:"Set"};let r=0;for(const a of n.values())i[++r]=Zr(a);return i}if(typeof n=="bigint")return{$name:"BigInt",value:n.toString()};if(typeof n=="object"){const i=n.constructor,r=i._classRegistryKey;if(!r)throw new Error(`Can't serialize object of unregistered class "${i.name}".`);const a=i.serialize?i.serialize(n,e):{};if(!i.serialize){for(const h in n)n.hasOwnProperty(h)&&(kc[r].omit.indexOf(h)>=0||(a[h]=Zr(n[h],e)));n instanceof Error&&(a.message=n.message)}if(a.$name)throw new Error("$name property is reserved for worker serialization logic.");return r!=="Object"&&(a.$name=r),a}throw new Error("can't serialize object of type "+typeof n)}function Ro(n){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp||Fp(n)||n instanceof ImageBitmap||ArrayBuffer.isView(n)||n instanceof ImageData)return n;if(Array.isArray(n))return n.map(Ro);if(typeof n=="object"){const e=n.$name||"Object";if(e==="Map"){const a=n.entries||[],h=new Map;for(let u=0;u<a.length;u+=2)h.set(Ro(a[u]),Ro(a[u+1]));return h}if(e==="Set"){const a=new Set;for(const h of Object.keys(n))h!=="$name"&&a.add(Ro(n[h]));return a}if(e==="BigInt")return BigInt(n.value);const{klass:i}=kc[e];if(!i)throw new Error(`Can't deserialize unregistered class "${e}".`);if(i.deserialize)return i.deserialize(n);const r=Object.create(i.prototype);for(const a of Object.keys(n))a!=="$name"&&(r[a]=Ro(n[a]));return r}throw new Error("can't deserialize object of type "+typeof n)}const Pl=n=>n>=1536&&n<=1791,Tu=n=>n>=1872&&n<=1919,Op=n=>n>=2208&&n<=2303,Bp=n=>n>=11904&&n<=12031,Nc=n=>n>=12032&&n<=12255,Vc=n=>n>=12272&&n<=12287,Rl=n=>n>=12288&&n<=12351,Uc=n=>n>=12352&&n<=12447,Sa=n=>n>=12448&&n<=12543,Dl=n=>n>=12544&&n<=12591,Su=n=>n>=12704&&n<=12735,ho=n=>n>=12736&&n<=12783,kp=n=>n>=12784&&n<=12799,Np=n=>n>=12800&&n<=13055,Vp=n=>n>=13056&&n<=13311,Eu=n=>n>=13312&&n<=19903,jc=n=>n>=19968&&n<=40959,zl=n=>n>=40960&&n<=42127,Iu=n=>n>=42128&&n<=42191,Au=n=>n>=44032&&n<=55215,Gc=n=>n>=63744&&n<=64255,Mu=n=>n>=64336&&n<=65023,Up=n=>n>=65040&&n<=65055,Cu=n=>n>=65072&&n<=65103,jp=n=>n>=65104&&n<=65135,Pu=n=>n>=65136&&n<=65279,Ru=n=>n>=65280&&n<=65519;function Du(n){for(const e of n)if(zu(e.charCodeAt(0)))return!0;return!1}function zm(n){for(const e of n)if(!Lm(e.charCodeAt(0)))return!1;return!0}function Lm(n){return!(Pl(n)||Tu(n)||Op(n)||Mu(n)||Pu(n))}function Fm(n){return!(n<11904||!(Su(n)||Dl(n)||Cu(n)||Gc(n)||Vp(n)||Bp(n)||ho(n)||Rl(n)||Eu(n)||jc(n)||Np(n)||Ru(n)||Uc(n)||Vc(n)||Nc(n)||kp(n)||Sa(n)||Up(n)||Iu(n)||zl(n)))}function zu(n){return!(n!==746&&n!==747&&(n<4352||!(Su(n)||Dl(n)||Cu(n)&&!(n>=65097&&n<=65103)||Gc(n)||Vp(n)||Bp(n)||ho(n)||!(!Rl(n)||n>=12296&&n<=12305||n>=12308&&n<=12319||n===12336)||Eu(n)||jc(n)||Np(n)||(e=>e>=12592&&e<=12687)(n)||(e=>e>=43360&&e<=43391)(n)||(e=>e>=55216&&e<=55295)(n)||(e=>e>=4352&&e<=4607)(n)||Au(n)||Uc(n)||Vc(n)||(e=>e>=12688&&e<=12703)(n)||Nc(n)||kp(n)||Sa(n)&&n!==12540||!(!Ru(n)||n===65288||n===65289||n===65293||n>=65306&&n<=65310||n===65339||n===65341||n===65343||n>=65371&&n<=65503||n===65507||n>=65512&&n<=65519)||!(!jp(n)||n>=65112&&n<=65118||n>=65123&&n<=65126)||(e=>e>=5120&&e<=5759)(n)||(e=>e>=6320&&e<=6399)(n)||Up(n)||(e=>e>=19904&&e<=19967)(n)||zl(n)||Iu(n))))}function Gp(n){return n===12312||n===12313||n===12316||n===12540||n===12448}function Vs(n){return!(zu(n)||function(e){return!!((i=>i>=128&&i<=255)(e)&&(e===167||e===169||e===174||e===177||e===188||e===189||e===190||e===215||e===247)||(i=>i>=8192&&i<=8303)(e)&&(e===8214||e===8224||e===8225||e===8240||e===8241||e===8251||e===8252||e===8258||e===8263||e===8264||e===8265||e===8273)||(i=>i>=8448&&i<=8527)(e)||(i=>i>=8528&&i<=8591)(e)||(i=>i>=8960&&i<=9215)(e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||e===9003||e>=9085&&e<=9114||e>=9150&&e<=9165||e===9167||e>=9169&&e<=9179||e>=9186&&e<=9215)||(i=>i>=9216&&i<=9279)(e)&&e!==9251||(i=>i>=9280&&i<=9311)(e)||(i=>i>=9312&&i<=9471)(e)||(i=>i>=9632&&i<=9727)(e)||(i=>i>=9728&&i<=9983)(e)&&!(e>=9754&&e<=9759)||(i=>i>=11008&&i<=11263)(e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||Rl(e)||Sa(e)||(i=>i>=57344&&i<=63743)(e)||Cu(e)||jp(e)||Ru(e)||e===8734||e===8756||e===8757||e>=9984&&e<=10087||e>=10102&&e<=10131||e===65532||e===65533)}(n))}function qp(n){return Pl(n)||Tu(n)||Op(n)||Mu(n)||Pu(n)}function Lu(n){return n>=1424&&n<=2303||Mu(n)||Pu(n)}function qc(n,e){return!(!e&&Lu(n)||n>=2304&&n<=3583||n>=3840&&n<=4255||(i=>i>=6016&&i<=6143)(n))}function Om(n){for(const e of n)if(Lu(e.charCodeAt(0)))return!0;return!1}const lr={unavailable:"unavailable",deferred:"deferred",loading:"loading",parsing:"parsing",parsed:"parsed",loaded:"loaded",error:"error"};let uo=null,Bn=lr.unavailable,Sr=null;const $p=function(n){n&&typeof n=="string"&&n.indexOf("NetworkError")>-1&&(Bn=lr.error),uo&&uo(n)};function Fu(){Ou.fire(new Gr("pluginStateChange",{pluginStatus:Bn,pluginURL:Sr}))}const Ou=new qr,Bu=function(){return Bn},Hp=function(){if(Bn!==lr.deferred||!Sr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Bn=lr.loading,Fu(),Sr&&al({url:Sr},n=>{n?$p(n):(Bn=lr.loaded,Fu())})},Do={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Bn===lr.loaded||Do.applyArabicShaping!=null,isLoading:()=>Bn===lr.loading,setState(n){Bn=n.pluginStatus,Sr=n.pluginURL},isParsing:()=>Bn===lr.parsing,isParsed:()=>Bn===lr.parsed,getPluginURL:()=>Sr};class Qt{constructor(e,i){this.zoom=e,i?(this.now=i.now,this.fadeDuration=i.fadeDuration,this.transition=i.transition,this.pitch=i.pitch,this.brightness=i.brightness,this.worldview=i.worldview,this.activeFloors=i.activeFloors):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(e){return function(i,r){for(const a of i)if(!qc(a.charCodeAt(0),r))return!1;return!0}(e,Do.isLoaded())}}class Ea{constructor(e,i,r,a,h){this.property=e,this.value=i,this.expression=function(u,p,_,g,v){if(xu(u))return new ba(u,p);if(Oc(u)||Array.isArray(u)&&u.length>0){const b=wu(u,p,_,g,v);if(b.result==="error")throw new Error(b.value.map(w=>`${w.key}: ${w.message}`).join(", "));return b.value}{let b=u;return typeof u=="string"&&p.type==="color"&&(b=Yt.parse(u)),{kind:"constant",configDependencies:new Set,isIndoorDependent:!1,evaluate:()=>b}}}(i===void 0?e.specification.default:i,e.specification,r,a,h)}isIndoorDependent(){return this.expression.isIndoorDependent}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(e,i,r,a){return this.property.possiblyEvaluate(this,e,i,r,a)}}class Ll{constructor(e,i,r,a){this.property=e,this.value=new Ea(e,void 0,i,r,a)}transitioned(e,i){return new $c(this.property,this.value,i,Object.assign({},e.transition,this.transition),e.now)}untransitioned(){return new $c(this.property,this.value,null,{},0)}}class ku{constructor(e,i,r,a){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._scope=i,this._options=r,this._iconImageUseTheme=a,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(e){return yt(this._values[e].value.value)}setValue(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new Ll(this._values[e].property,this._scope,this._options,this._iconImageUseTheme)),this._values[e].value=new Ea(this._values[e].property,i===null?void 0:yt(i),this._scope,this._options,this._iconImageUseTheme),this._values[e].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].value.expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[e].value.isIndoorDependent())}setTransitionOrValue(e,i){i&&(this._options=i);const r=this._properties.properties;if(e)for(const a in e){const h=e[a];if(a.endsWith("-transition")){const u=a.slice(0,-11);r[u]&&this.setTransition(u,h)}else r.hasOwnProperty(a)&&this.setValue(a,h)}}getTransition(e){return yt(this._values[e].transition)}setTransition(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new Ll(this._values[e].property)),this._values[e].transition=yt(i)||void 0}serialize(){const e={};for(const i of Object.keys(this._values)){const r=this.getValue(i);r!==void 0&&(e[i]=r);const a=this.getTransition(i);a!==void 0&&(e[`${i}-transition`]=a)}return e}transitioned(e,i){const r=new Ia(this._properties);for(const a of Object.keys(this._values))r._values[a]=this._values[a].transitioned(e,i._values[a]);return r}untransitioned(){const e=new Ia(this._properties);for(const i of Object.keys(this._values))e._values[i]=this._values[i].untransitioned();return e}isIndoorDependent(){return this._isIndoorDependent}}class $c{constructor(e,i,r,a,h){const u=a.delay||0,p=a.duration||0;h=h||0,this.property=e,this.value=i,this.begin=h+u,this.end=this.begin+p,e.specification.transition&&(a.delay||a.duration)&&(this.prior=r)}possiblyEvaluate(e,i,r){const a=e.now||0,h=this.value.possiblyEvaluate(e,i,r),u=this.prior;if(u){if(a>this.end)return this.prior=null,h;if(this.value.isDataDriven())return this.prior=null,h;if(a<this.begin)return u.possiblyEvaluate(e,i,r);{const p=(a-this.begin)/(this.end-this.begin);return this.property.interpolate(u.possiblyEvaluate(e,i,r),h,U(p))}}return h}}class Ia{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,i,r){const a=new js(this._properties);for(const h of Object.keys(this._values))a._values[h]=this._values[h].possiblyEvaluate(e,i,r);return a}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class Nu{constructor(e,i,r,a){this._properties=e,this._values=Object.create(e.defaultPropertyValues),this._scope=i,this._options=r,this._iconImageUseTheme=a,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(e){return yt(this._values[e].value)}setValue(e,i){this._values[e]=new Ea(this._values[e].property,i===null?void 0:yt(i),this._scope,this._options,this._iconImageUseTheme),this._values[e].expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[e].isIndoorDependent())}serialize(){const e={};for(const i of Object.keys(this._values)){const r=this.getValue(i);r!==void 0&&(e[i]=r)}return e}possiblyEvaluate(e,i,r,a){const h=new js(this._properties);for(const u of Object.keys(this._values))h._values[u]=this._values[u].possiblyEvaluate(e,i,r,a);return h}isIndoorDependent(){return this._isIndoorDependent}}class Us{constructor(e,i,r,a){this.property=e,this.value=i,this.parameters=r,this.iconImageUseTheme=a}isConstant(){return this.value.kind==="constant"}constantOr(e){return this.value.kind==="constant"?this.value.value:e}evaluate(e,i,r,a){return this.property.evaluate(this.value,this.parameters,e,i,r,a,this.iconImageUseTheme)}}class js{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class Ve{constructor(e){this.specification=e}possiblyEvaluate(e,i){return e.expression.evaluate(i)}interpolate(e,i,r){const a=ul[this.specification.type];return a?a(e,i,r):e}}class He{constructor(e,i){this.specification=e,this.overrides=i}possiblyEvaluate(e,i,r,a,h){return e.expression.kind==="constant"||e.expression.kind==="camera"?new Us(this,{kind:"constant",value:e.expression.evaluate(i,null,{},r,a,void 0,h)},i):new Us(this,e.expression,i,h)}interpolate(e,i,r){if(e.value.kind!=="constant"||i.value.kind!=="constant")return e;if(e.value.value===void 0||i.value.value===void 0)return new Us(this,{kind:"constant",value:void 0},e.parameters);const a=ul[this.specification.type];return a?new Us(this,{kind:"constant",value:a(e.value.value,i.value.value,r)},e.parameters):e}evaluate(e,i,r,a,h,u,p){return e.kind==="constant"?e.value:e.evaluate(i,r,a,h,u,void 0,p)}}class Yn{constructor(e){this.specification=e}possiblyEvaluate(e,i,r,a){return!!e.expression.evaluate(i,null,{},r,a)}interpolate(){return!1}}class Ei{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const i=new Qt(0,{});for(const r in e){const a=e[r];a.specification.overridable&&this.overridableProperties.push(r);const h=this.defaultPropertyValues[r]=new Ea(a,void 0),u=this.defaultTransitionablePropertyValues[r]=new Ll(a);this.defaultTransitioningPropertyValues[r]=u.untransitioned(),this.defaultPossiblyEvaluatedValues[r]=h.possiblyEvaluate(i)}}}Qe(He,"DataDrivenProperty"),Qe(Ve,"DataConstantProperty"),Qe(Yn,"ColorRampProperty");var pe=JSON.parse('{"$version":8,"$root":{"version":{"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"snow":{"type":"snow"},"rain":{"type":"rain"},"camera":{"type":"camera"},"color-theme":{"type":"colorTheme"},"indoor":{"type":"indoor"},"imports":{"type":"array","value":"import"},"iconsets":{"type":"iconsets"},"schema":{"type":"schema"},"sources":{"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"type":"array","value":"layer"},"models":{"type":"models"},"featuresets":{"type":"featuresets"}},"featuresets":{"*":{"type":"featureset"}},"featureset":{"metadata":{"type":"*"},"selectors":{"type":"array","value":"selector"}},"selector":{"layer":{"type":"string"},"properties":{"type":"selectorProperty"},"featureNamespace":{"type":"string"},"_uniqueFeatureID":{"type":"boolean"}},"selectorProperty":{"*":{"type":"*"}},"model":{"type":"string"},"import":{"id":{"type":"string"},"url":{"type":"string"},"config":{"type":"config"},"data":{"type":"$root"},"color-theme":{"type":"colorTheme","optional":true}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","expression":{}},"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1}},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"values":{"type":"array","value":"*"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}},"light-3d":{"id":{"type":"string"},"properties":{"type":"properties"},"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false},"shadow-quality":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"parameters":["zoom"]}},"shadow-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"shadow-draw-before-layer":{"type":"string"}},"properties_light_ambient":{"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"iconsets":{"*":{"type":"iconset"}},"iconset":["iconset_sprite","iconset_source"],"iconset_sprite":{"type":{"type":"enum","values":{"sprite":1}},"url":{"type":"string"}},"iconset_source":{"type":{"type":"enum","values":{"source":1}},"source":{"type":"string"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_raster_array","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"type":"enum","values":{"vector":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"type":"enum","values":{"raster":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"type":"enum","values":{"raster-dem":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":1,"mapbox":1},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_array":{"type":{"type":"enum","values":{"raster-array":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"},"dynamic":{"type":"boolean","default":false}},"source_video":{"type":{"type":"enum","values":{"video":1}},"urls":{"type":"array","value":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"type":"enum","values":{"image":1}},"url":{"type":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"modelNodeOverride":{"orientation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360}},"modelNodeOverrides":{"*":{"type":"modelNodeOverride"}},"modelMaterialOverride":{"model-color":{"type":"color"},"model-color-mix-intensity":{"type":"number"},"model-opacity":{"type":"number"},"model-emissive-strength":{"type":"number"}},"modelMaterialOverrides":{"*":{"type":"modelMaterialOverride"}},"modelSourceModel":{"uri":{"type":"string"},"position":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[-180,-90],"maximum":[180,90]},"orientation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360},"nodeOverrides":{"type":"modelNodeOverrides"},"materialOverrides":{"type":"modelMaterialOverrides"},"nodeOverrideNames":{"type":"array","value":"string"},"materialOverrideNames":{"type":"array","value":"string"},"featureProperties":{"type":"*"}},"modelSourceModels":{"*":{"type":"modelSourceModel"}},"source_model":{"type":{"type":"enum","values":{"model":1,"batched-model":1}},"url":{"type":"string"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"},"models":{"type":"modelSourceModels"}},"layer":{"id":{"type":"string"},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"building":{},"raster":{},"raster-particle":{},"hillshade":{},"model":{},"background":{},"sky":{},"slot":{},"clip":{}}},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"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"},"appearances":{"type":"array","value":"appearance","supported-layer-types":["symbol"]}},"appearance":{"condition":{"type":"boolean","expression":{"interpolated":true,"parameters":["zoom","pitch","feature","feature-state","measure-light","distance-from-center"]},"property-type":"data-driven"},"name":{"type":"string"},"properties":{"type":"*"}},"layout":["layout_clip","layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_building","layout_symbol","layout_raster","layout_raster-particle","layout_hillshade","layout_background","layout_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"model-allow-density-reduction":{"type":"boolean","default":true}},"layout_clip":{"clip-layer-types":{"type":"array","value":"enum","values":{"model":1,"symbol":1},"default":[],"expression":{}},"clip-layer-scope":{"type":"array","value":"string","default":[],"expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"fill-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-base":1,"hd-road-markup":1},"default":"none","expression":{}},"fill-construct-bridge-guard-rail":{"type":"boolean","default":"true","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"circle-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-markup":1},"default":"none","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"fill-extrusion-edge-radius":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}}},"layout_building":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"building-facade":{"type":"boolean","default":false,"expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-facade-floors":{"type":"number","minimum":1,"maximum":200,"default":3,"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-facade-unit-width":{"type":"number","minimum":1,"maximum":20,"default":3.1,"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-facade-window":{"type":"array","length":2,"value":"number","minimum":0.1,"maximum":1,"default":[0.9,0.9],"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-roof-shape":{"type":"enum","values":{"flat":1,"hipped":1,"gabled":1,"parapet":1,"mansard":1,"skillion":1,"pyramidal":1},"default":"flat","expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"},"building-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"},"building-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"building-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"building-flip-roof-orientation":{"property-type":"data-driven","type":"boolean","default":false,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":1,"round":1,"square":1},"default":"butt","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":1,"round":1,"miter":1,"none":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-z-offset":{"type":"number","default":0,"expression":{"parameters":["zoom","feature","line-progress"]},"property-type":"data-driven"},"line-elevation-reference":{"type":"enum","values":{"none":1,"sea":1,"ground":1,"hd-road-markup":1},"default":"none","expression":{}},"line-cross-slope":{"type":"number","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"line-width-unit":{"type":"enum","values":{"pixels":1,"meters":1},"default":"pixels","expression":{"parameters":["zoom"]}},"line-elevation-ground-scale":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","line-progress"]},"transition":true,"property-type":"data-driven"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]}},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]}},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":1,"viewport-y":1,"source":1},"default":"auto","expression":{"parameters":["zoom"]}},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1,"hd-road-markup":1},"default":"ground","expression":{"parameters":["zoom"]}},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"icon-size":{"type":"number","default":1,"minimum":0,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":[0.1,0.1],"maximum":[10,10],"expression":{}},"icon-text-fit":{"type":"enum","values":{"none":1,"width":1,"height":1,"both":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","tokens":true,"appearance":true,"use-theme":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":[0.1,0.1],"maximum":[10,10],"expression":{}},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":1,"left":1,"center":1,"right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]}},"text-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]}},"text-rotate":{"type":"number","default":0,"period":360,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"text-transform":{"type":"enum","values":{"none":1,"uppercase":1,"lowercase":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","length":2,"default":[0,0],"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster-particle":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_hillshade":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster-particle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_clip":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_model":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_building":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"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":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*"}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"high-color":{"type":"color","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"space-color":{"type":"color","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"horizon-blend":{"type":"number","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"snow":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.85],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.3],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.4,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,50],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"flake-size":{"type":"number","default":0.71,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"rain":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.5],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#03113d",0.3,"#a8adbc"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":["interpolate",["linear"],["measure-light","brightness"],0,0.88,1,0.7],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#001736",0.3,"#464646"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.57,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,80],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"droplet-size":{"type":"array","default":[2.6,18.2],"minimum":0,"maximum":50,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"distortion-strength":{"type":"number","default":0.7,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective"}},"colorTheme":{"data":{"type":"string","expression":{}}},"indoor_source":{"sourceId":{"type":"string"},"sourceLayers":{"type":"array","value":"string"}},"indoor":{"*":{"type":"indoor_source"}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator"},"center":{"type":"array","length":2,"value":"number","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string"},"exaggeration":{"type":"number","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_building","paint_symbol","paint_raster","paint_raster-particle","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-bridge-guard-rail-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"},"fill-tunnel-structure-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-height-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"flat"},"fill-extrusion-base-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"terrain"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"type":"color","default":"#ffffff","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"fill-extrusion-line-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-cast-shadows":{"type":"boolean","default":true}},"paint_building":{"building-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"parameters":[]},"transition":true},"building-ambient-occlusion-ground-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-cast-shadows":{"type":"boolean","default":true},"building-color":{"type":"color","default":"rgba(193, 154, 127, 1)","use-theme":true,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"},"building-emissive-strength":{"type":"number","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"},"building-facade-emissive-chance":{"type":"number","default":0.35,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["measure-light","zoom"]}},"building-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"building-flood-light-color":{"type":"color","default":"#ffffff","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"building-flood-light-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"building-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light","line-progress"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-gradient":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["line-progress"]}},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1]},"line-trim-fade-range":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-trim-color":{"type":"color","default":"transparent","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"line-border-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-occlusion-opacity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"use-theme":true,"expression":{"interpolated":true,"parameters":["heatmap-density"]}},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-image-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-color-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"icon-color-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{}},"symbol-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-value"]}},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]}},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"raster-array-band":{"type":"string"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1},"default":"sea","expression":{}}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string"},"raster-particle-count":{"type":"number","default":512,"minimum":1},"raster-particle-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-particle-speed"]}},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1},"raster-particle-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-shadow-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-accent-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_background":{"background-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":[]}},"background-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]}},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]}},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]}},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"use-theme":true,"expression":{"interpolated":true,"parameters":["sky-radial-progress"]}},"sky-atmosphere-halo-color":{"type":"color","default":"white","use-theme":true},"sky-atmosphere-color":{"type":"color","default":"white","use-theme":true},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"property-type":"data-driven"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"use-theme":true,"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d"},"model-cast-shadows":{"type":"boolean","default":true},"model-receive-shadows":{"type":"boolean","default":true},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"model-front-cutoff":{"type":"array","value":"number","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]},"model-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1,"hd-road-markup":1},"default":"ground","expression":{}}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"promoteId":{"*":{"type":"*"}}}');function Zp(n){return n instanceof Number||n instanceof String||n instanceof Boolean?n.valueOf():n}function Hc(n){if(Array.isArray(n))return n.map(Hc);if(n instanceof Object&&!(n instanceof Number||n instanceof String||n instanceof Boolean)){const e={};for(const i in n)e[i]=Hc(n[i]);return e}return Zp(n)}function Vu(n){if(n===!0||n===!1)return!0;if(!Array.isArray(n)||n.length===0)return!1;switch(n[0]){case"has":return n.length>=2&&n[1]!=="$id"&&n[1]!=="$type";case"in":return n.length>=3&&(typeof n[1]!="string"||Array.isArray(n[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return n.length!==3||Array.isArray(n[1])||Array.isArray(n[2]);case"any":case"all":for(const e of n.slice(1))if(!Vu(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}function Uu(n,e="",i=null,r="fill"){if(n==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};Vu(n)||(n=Zc(n));const a=n;let h=!0;try{h=function(v){if(!Aa(v))return v;let b=Hc(v);return Xp(b),b=Wp(b),b}(a)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Sn=require("./utils-1d47427d.cjs");require("@inploi/sdk");var Fv={exports:{}};(function(Fn,Ph){(function(Ys,Ks){Fn.exports=Ks()})(Sn.commonjsGlobal,function(){var Ys,Ks,Js;function Kl(s,gn){if(!Ys)Ys=gn;else if(!Ks)Ks=gn;else{var vi="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+Ys+")(sharedChunk); ("+Ks+")(sharedChunk); self.onerror = null;",Br={};Ys(Br),Js=gn(Br),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(Js.workerUrl=window.URL.createObjectURL(new Blob([vi],{type:"text/javascript"})))}}Kl(["exports"],function(s){var gn=1e-6,vi=typeof Float32Array<"u"?Float32Array:Array;function Br(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=i*h-a*r;return u?(n[0]=h*(u=1/u),n[1]=-r*u,n[2]=-a*u,n[3]=i*u,n):null}function ws(){var n=new vi(9);return vi!=Float32Array&&(n[1]=0,n[2]=0,n[3]=0,n[5]=0,n[6]=0,n[7]=0),n[0]=1,n[4]=1,n[8]=1,n}function xo(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=e[4],p=e[5],_=e[6],g=e[7],v=e[8];return n[0]=u*v-p*g,n[1]=a*g-r*v,n[2]=r*p-a*u,n[3]=p*_-h*v,n[4]=i*v-a*_,n[5]=a*h-i*p,n[6]=h*g-u*_,n[7]=r*_-i*g,n[8]=i*u-r*h,n}function _r(n,e,i){var r=e[0],a=e[1],h=e[2],u=e[3],p=e[4],_=e[5],g=e[6],v=e[7],b=e[8],w=i[0],E=i[1],I=i[2],P=i[3],z=i[4],R=i[5],B=i[6],k=i[7],j=i[8];return n[0]=w*r+E*u+I*g,n[1]=w*a+E*p+I*v,n[2]=w*h+E*_+I*b,n[3]=P*r+z*u+R*g,n[4]=P*a+z*p+R*v,n[5]=P*h+z*_+R*b,n[6]=B*r+k*u+j*g,n[7]=B*a+k*p+j*v,n[8]=B*h+k*_+j*b,n}function eo(){var n=new vi(16);return vi!=Float32Array&&(n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0),n[0]=1,n[5]=1,n[10]=1,n[15]=1,n}function Ht(n){var e=new vi(16);return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],e}function bt(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=1,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=1,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}function En(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=e[4],p=e[5],_=e[6],g=e[7],v=e[8],b=e[9],w=e[10],E=e[11],I=e[12],P=e[13],z=e[14],R=e[15],B=i*p-r*u,k=i*_-a*u,j=i*g-h*u,H=r*_-a*p,$=r*g-h*p,re=a*g-h*_,K=v*P-b*I,Q=v*z-w*I,ie=v*R-E*I,oe=b*z-w*P,ve=b*R-E*P,xe=w*R-E*z,Te=B*xe-k*ve+j*oe+H*ie-$*Q+re*K;return Te?(n[0]=(p*xe-_*ve+g*oe)*(Te=1/Te),n[1]=(a*ve-r*xe-h*oe)*Te,n[2]=(P*re-z*$+R*H)*Te,n[3]=(w*$-b*re-E*H)*Te,n[4]=(_*ie-u*xe-g*Q)*Te,n[5]=(i*xe-a*ie+h*Q)*Te,n[6]=(z*j-I*re-R*k)*Te,n[7]=(v*re-w*j+E*k)*Te,n[8]=(u*ve-p*ie+g*K)*Te,n[9]=(r*ie-i*ve-h*K)*Te,n[10]=(I*$-P*j+R*B)*Te,n[11]=(b*j-v*$-E*B)*Te,n[12]=(p*Q-u*oe-_*K)*Te,n[13]=(i*oe-r*Q+a*K)*Te,n[14]=(P*k-I*H-z*B)*Te,n[15]=(v*H-b*k+w*B)*Te,n):null}function hi(n,e,i){var r=e[0],a=e[1],h=e[2],u=e[3],p=e[4],_=e[5],g=e[6],v=e[7],b=e[8],w=e[9],E=e[10],I=e[11],P=e[12],z=e[13],R=e[14],B=e[15],k=i[0],j=i[1],H=i[2],$=i[3];return n[0]=k*r+j*p+H*b+$*P,n[1]=k*a+j*_+H*w+$*z,n[2]=k*h+j*g+H*E+$*R,n[3]=k*u+j*v+H*I+$*B,n[4]=(k=i[4])*r+(j=i[5])*p+(H=i[6])*b+($=i[7])*P,n[5]=k*a+j*_+H*w+$*z,n[6]=k*h+j*g+H*E+$*R,n[7]=k*u+j*v+H*I+$*B,n[8]=(k=i[8])*r+(j=i[9])*p+(H=i[10])*b+($=i[11])*P,n[9]=k*a+j*_+H*w+$*z,n[10]=k*h+j*g+H*E+$*R,n[11]=k*u+j*v+H*I+$*B,n[12]=(k=i[12])*r+(j=i[13])*p+(H=i[14])*b+($=i[15])*P,n[13]=k*a+j*_+H*w+$*z,n[14]=k*h+j*g+H*E+$*R,n[15]=k*u+j*v+H*I+$*B,n}function On(n,e,i){var r,a,h,u,p,_,g,v,b,w,E,I,P=i[0],z=i[1],R=i[2];return e===n?(n[12]=e[0]*P+e[4]*z+e[8]*R+e[12],n[13]=e[1]*P+e[5]*z+e[9]*R+e[13],n[14]=e[2]*P+e[6]*z+e[10]*R+e[14],n[15]=e[3]*P+e[7]*z+e[11]*R+e[15]):(a=e[1],h=e[2],u=e[3],p=e[4],_=e[5],g=e[6],v=e[7],b=e[8],w=e[9],E=e[10],I=e[11],n[0]=r=e[0],n[1]=a,n[2]=h,n[3]=u,n[4]=p,n[5]=_,n[6]=g,n[7]=v,n[8]=b,n[9]=w,n[10]=E,n[11]=I,n[12]=r*P+p*z+b*R+e[12],n[13]=a*P+_*z+w*R+e[13],n[14]=h*P+g*z+E*R+e[14],n[15]=u*P+v*z+I*R+e[15]),n}function ki(n,e,i){var r=i[0],a=i[1],h=i[2];return n[0]=e[0]*r,n[1]=e[1]*r,n[2]=e[2]*r,n[3]=e[3]*r,n[4]=e[4]*a,n[5]=e[5]*a,n[6]=e[6]*a,n[7]=e[7]*a,n[8]=e[8]*h,n[9]=e[9]*h,n[10]=e[10]*h,n[11]=e[11]*h,n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15],n}function jn(n,e,i){var r=Math.sin(i),a=Math.cos(i),h=e[4],u=e[5],p=e[6],_=e[7],g=e[8],v=e[9],b=e[10],w=e[11];return e!==n&&(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[4]=h*a+g*r,n[5]=u*a+v*r,n[6]=p*a+b*r,n[7]=_*a+w*r,n[8]=g*a-h*r,n[9]=v*a-u*r,n[10]=b*a-p*r,n[11]=w*a-_*r,n}function gr(n,e,i){var r=Math.sin(i),a=Math.cos(i),h=e[0],u=e[1],p=e[2],_=e[3],g=e[8],v=e[9],b=e[10],w=e[11];return e!==n&&(n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[0]=h*a-g*r,n[1]=u*a-v*r,n[2]=p*a-b*r,n[3]=_*a-w*r,n[8]=h*r+g*a,n[9]=u*r+v*a,n[10]=p*r+b*a,n[11]=_*r+w*a,n}function Cr(n,e,i){var r=Math.sin(i),a=Math.cos(i),h=e[0],u=e[1],p=e[2],_=e[3],g=e[4],v=e[5],b=e[6],w=e[7];return e!==n&&(n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[0]=h*a+g*r,n[1]=u*a+v*r,n[2]=p*a+b*r,n[3]=_*a+w*r,n[4]=g*a-h*r,n[5]=v*a-u*r,n[6]=b*a-p*r,n[7]=w*a-_*r,n}function Pr(n,e){return n[0]=e[0],n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=e[1],n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=e[2],n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}function Ts(n,e,i){var r,a,h,u=i[0],p=i[1],_=i[2],g=Math.sqrt(u*u+p*p+_*_);return g<gn?null:(u*=g=1/g,p*=g,_*=g,r=Math.sin(e),a=Math.cos(e),n[0]=u*u*(h=1-a)+a,n[1]=p*u*h+_*r,n[2]=_*u*h-p*r,n[3]=0,n[4]=u*p*h-_*r,n[5]=p*p*h+a,n[6]=_*p*h+u*r,n[7]=0,n[8]=u*_*h+p*r,n[9]=p*_*h-u*r,n[10]=_*_*h+a,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n)}function Ka(n,e){var i=e[0],r=e[1],a=e[2],h=e[4],u=e[5],p=e[6],_=e[8],g=e[9],v=e[10];return n[0]=Math.sqrt(i*i+r*r+a*a),n[1]=Math.sqrt(h*h+u*u+p*p),n[2]=Math.sqrt(_*_+g*g+v*v),n}function Ja(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=i+i,p=r+r,_=a+a,g=i*u,v=r*u,b=r*p,w=a*u,E=a*p,I=a*_,P=h*u,z=h*p,R=h*_;return n[0]=1-b-I,n[1]=v+R,n[2]=w-z,n[3]=0,n[4]=v-R,n[5]=1-g-I,n[6]=E+P,n[7]=0,n[8]=w+z,n[9]=E-P,n[10]=1-g-b,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}var Qa=hi;function Jt(){var n=new vi(3);return vi!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0),n}function Jl(n){var e=new vi(3);return e[0]=n[0],e[1]=n[1],e[2]=n[2],e}function rr(n){var e=n[0],i=n[1],r=n[2];return Math.sqrt(e*e+i*i+r*r)}function ui(n,e,i){var r=new vi(3);return r[0]=n,r[1]=e,r[2]=i,r}function pi(n,e,i,r){return n[0]=e,n[1]=i,n[2]=r,n}function Gi(n,e,i){return n[0]=e[0]+i[0],n[1]=e[1]+i[1],n[2]=e[2]+i[2],n}function to(n,e,i){return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n[2]=e[2]-i[2],n}function kr(n,e,i){return n[0]=e[0]*i[0],n[1]=e[1]*i[1],n[2]=e[2]*i[2],n}function io(n,e,i){return n[0]=Math.min(e[0],i[0]),n[1]=Math.min(e[1],i[1]),n[2]=Math.min(e[2],i[2]),n}function Nr(n,e,i){return n[0]=Math.max(e[0],i[0]),n[1]=Math.max(e[1],i[1]),n[2]=Math.max(e[2],i[2]),n}function bi(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n[2]=e[2]*i,n}function yr(n,e,i,r){return n[0]=e[0]+i[0]*r,n[1]=e[1]+i[1]*r,n[2]=e[2]+i[2]*r,n}function Ql(n,e){var i=e[0]-n[0],r=e[1]-n[1],a=e[2]-n[2];return Math.sqrt(i*i+r*r+a*a)}function el(n,e){var i=e[0]-n[0],r=e[1]-n[1],a=e[2]-n[2];return i*i+r*r+a*a}function ec(n){var e=n[0],i=n[1],r=n[2];return e*e+i*i+r*r}function Uo(n,e){return n[0]=-e[0],n[1]=-e[1],n[2]=-e[2],n}function si(n,e){var i=e[0],r=e[1],a=e[2],h=i*i+r*r+a*a;return h>0&&(h=1/Math.sqrt(h)),n[0]=e[0]*h,n[1]=e[1]*h,n[2]=e[2]*h,n}function zi(n,e){return n[0]*e[0]+n[1]*e[1]+n[2]*e[2]}function Cn(n,e,i){var r=e[0],a=e[1],h=e[2],u=i[0],p=i[1],_=i[2];return n[0]=a*_-h*p,n[1]=h*u-r*_,n[2]=r*p-a*u,n}function Ss(n,e,i,r){var a=e[0],h=e[1],u=e[2];return n[0]=a+r*(i[0]-a),n[1]=h+r*(i[1]-h),n[2]=u+r*(i[2]-u),n}function Ui(n,e,i){var r=e[0],a=e[1],h=e[2],u=i[3]*r+i[7]*a+i[11]*h+i[15];return n[0]=(i[0]*r+i[4]*a+i[8]*h+i[12])/(u=u||1),n[1]=(i[1]*r+i[5]*a+i[9]*h+i[13])/u,n[2]=(i[2]*r+i[6]*a+i[10]*h+i[14])/u,n}function jo(n,e,i){var r=e[0],a=e[1],h=e[2];return n[0]=r*i[0]+a*i[3]+h*i[6],n[1]=r*i[1]+a*i[4]+h*i[7],n[2]=r*i[2]+a*i[5]+h*i[8],n}function Go(n,e,i){var r=i[0],a=i[1],h=i[2],u=i[3],p=e[0],_=e[1],g=e[2],v=a*g-h*_,b=h*p-r*g,w=r*_-a*p;return n[0]=p+u*(v+=v)+a*(w+=w)-h*(b+=b),n[1]=_+u*b+h*v-r*w,n[2]=g+u*w+r*b-a*v,n}function Es(n){return n[0]=0,n[1]=0,n[2]=0,n}function Vr(n,e){return n[0]===e[0]&&n[1]===e[1]&&n[2]===e[2]}var ji=to,Qs=kr,qo=rr;function ea(){var n=new vi(4);return vi!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0,n[3]=0),n}function Is(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n[2]=e[2]*i,n[3]=e[3]*i,n}function tl(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=i*i+r*r+a*a+h*h;return u>0&&(u=1/Math.sqrt(u)),n[0]=i*u,n[1]=r*u,n[2]=a*u,n[3]=h*u,n}function or(n,e){return n[0]*e[0]+n[1]*e[1]+n[2]*e[2]+n[3]*e[3]}function Wn(n,e,i){var r=e[0],a=e[1],h=e[2],u=e[3];return n[0]=i[0]*r+i[4]*a+i[8]*h+i[12]*u,n[1]=i[1]*r+i[5]*a+i[9]*h+i[13]*u,n[2]=i[2]*r+i[6]*a+i[10]*h+i[14]*u,n[3]=i[3]*r+i[7]*a+i[11]*h+i[15]*u,n}function vo(){var n=new vi(4);return vi!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0),n[3]=1,n}function bo(n){return n[0]=0,n[1]=0,n[2]=0,n[3]=1,n}function $o(n,e,i){i*=.5;var r=e[0],a=e[1],h=e[2],u=e[3],p=Math.sin(i),_=Math.cos(i);return n[0]=r*_+u*p,n[1]=a*_+h*p,n[2]=h*_-a*p,n[3]=u*_-r*p,n}function As(n,e,i){i*=.5;var r=e[0],a=e[1],h=e[2],u=e[3],p=Math.sin(i),_=Math.cos(i);return n[0]=r*_-h*p,n[1]=a*_+u*p,n[2]=h*_+r*p,n[3]=u*_-a*p,n}Jt(),ea();var Gn,ta,xr,il=tl,wo=(Gn=Jt(),ta=ui(1,0,0),xr=ui(0,1,0),function(n,e,i){var r=zi(e,i);return r<-.999999?(Cn(Gn,ta,e),qo(Gn)<1e-6&&Cn(Gn,xr,e),si(Gn,Gn),function(a,h,u){u*=.5;var p=Math.sin(u);a[0]=p*h[0],a[1]=p*h[1],a[2]=p*h[2],a[3]=Math.cos(u)}(n,Gn,Math.PI),n):r>.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(Cn(Gn,e,i),n[0]=Gn[0],n[1]=Gn[1],n[2]=Gn[2],n[3]=1+r,il(n,n))});function Pn(){var n=new vi(2);return vi!=Float32Array&&(n[0]=0,n[1]=0),n}function To(n,e){var i=new vi(2);return i[0]=n,i[1]=e,i}function So(n,e,i){return n[0]=e,n[1]=i,n}function Ho(n,e,i){return n[0]=e[0]+i[0],n[1]=e[1]+i[1],n}function Eo(n,e,i){return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n}function Zo(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n}function Wo(n){var e=n[0],i=n[1];return Math.sqrt(e*e+i*i)}function ia(n,e){var i=e[0],r=e[1],a=i*i+r*r;return a>0&&(a=1/Math.sqrt(a)),n[0]=e[0]*a,n[1]=e[1]*a,n}function mi(n,e){return n[0]*e[0]+n[1]*e[1]}vo(),vo(),ws();var In,tc,na=Eo;function vr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}Pn();var Dh=function(){if(tc)return In;function n(e,i,r,a){this.cx=3*e,this.bx=3*(r-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*i,this.by=3*(a-i)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=i,this.p2x=r,this.p2y=a}return tc=1,In=n,n.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,i){if(i===void 0&&(i=1e-6),e<0)return 0;if(e>1)return 1;for(var r=e,a=0;a<8;a++){var h=this.sampleCurveX(r)-e;if(Math.abs(h)<i)return r;var u=this.sampleCurveDerivativeX(r);if(Math.abs(u)<1e-6)break;r-=h/u}var p=0,_=1;for(r=e,a=0;a<20&&(h=this.sampleCurveX(r),!(Math.abs(h-e)<i));a++)e>h?p=r:_=r,r=.5*(_-p)+p;return r},solve:function(e,i){return this.sampleCurveY(this.solveCurveX(e,i))}},In}(),ra=vr(Dh);function Oe(n,e){this.x=n,this.y=e}function Io(n,e){if(Array.isArray(n)){if(!Array.isArray(e)||n.length!==e.length)return!1;for(let i=0;i<n.length;i++)if(!Io(n[i],e[i]))return!1;return!0}if(typeof n=="object"&&n!==null&&e!==null){if(typeof e!="object"||Object.keys(n).length!==Object.keys(e).length)return!1;for(const i in n)if(!Io(n[i],e[i]))return!1;return!0}return n===e}Oe.prototype={clone(){return new Oe(this.x,this.y)},add(n){return this.clone()._add(n)},sub(n){return this.clone()._sub(n)},multByPoint(n){return this.clone()._multByPoint(n)},divByPoint(n){return this.clone()._divByPoint(n)},mult(n){return this.clone()._mult(n)},div(n){return this.clone()._div(n)},rotate(n){return this.clone()._rotate(n)},rotateAround(n,e){return this.clone()._rotateAround(n,e)},matMult(n){return this.clone()._matMult(n)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(n){return this.x===n.x&&this.y===n.y},dist(n){return Math.sqrt(this.distSqr(n))},distSqr(n){const e=n.x-this.x,i=n.y-this.y;return e*e+i*i},angle(){return Math.atan2(this.y,this.x)},angleTo(n){return Math.atan2(this.y-n.y,this.x-n.x)},angleWith(n){return this.angleWithSep(n.x,n.y)},angleWithSep(n,e){return Math.atan2(this.x*e-this.y*n,this.x*n+this.y*e)},_matMult(n){const e=n[2]*this.x+n[3]*this.y;return this.x=n[0]*this.x+n[1]*this.y,this.y=e,this},_add(n){return this.x+=n.x,this.y+=n.y,this},_sub(n){return this.x-=n.x,this.y-=n.y,this},_mult(n){return this.x*=n,this.y*=n,this},_div(n){return this.x/=n,this.y/=n,this},_multByPoint(n){return this.x*=n.x,this.y*=n.y,this},_divByPoint(n){return this.x/=n.x,this.y/=n.y,this},_unit(){return this._div(this.mag()),this},_perp(){const n=this.y;return this.y=this.x,this.x=-n,this},_rotate(n){const e=Math.cos(n),i=Math.sin(n),r=i*this.x+e*this.y;return this.x=e*this.x-i*this.y,this.y=r,this},_rotateAround(n,e){const i=Math.cos(n),r=Math.sin(n),a=e.y+r*(this.x-e.x)+i*(this.y-e.y);return this.x=e.x+i*(this.x-e.x)-r*(this.y-e.y),this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:Oe},Oe.convert=function(n){if(n instanceof Oe)return n;if(Array.isArray(n))return new Oe(+n[0],+n[1]);if(n.x!==void 0&&n.y!==void 0)return new Oe(+n.x,+n.y);throw new Error("Expected [x, y] or {x, y} point format")};const zh=Math.PI/180,nl=180/Math.PI;function Nt(n){return n*zh}function de(n){return n*nl}const O=[[0,0],[1,0],[1,1],[0,1]];function U(n){if(n<=0)return 0;if(n>=1)return 1;const e=n*n,i=e*n;return 4*(n<.5?i:3*(n-e)+i-.75)}function X(n,e,i,r){const a=new ra(n,e,i,r);return function(h){return a.solve(h)}}const se=X(.25,.1,.25,1);function Y(n,e,i){return Math.min(i,Math.max(e,n))}function he(n,e,i){return(i=Y((i-n)/(e-n),0,1))*i*(3-2*i)}function ge(n,e,i){const r=i-e,a=((n-e)%r+r)%r+e;return a===e?i:a}function ue(n,e,i){if(!n.length)return i(null,[]);let r=n.length;const a=new Array(n.length);let h=null;n.forEach((u,p)=>{e(u,(_,g)=>{_&&(h=_),a[p]=g,--r===0&&i(h,a)})})}let be=1;function Be(){return be++}function De(n){return n<=1?1:Math.pow(2,Math.ceil(Math.log2(n)))}function Ye(n,e){n.forEach(i=>{e[i]&&(e[i]=e[i].bind(e))})}function at(n,e,i){const r={};for(const a in n)r[a]=e.call(this,n[a],a,n);return r}function ct(n,e,i){const r={};for(const a in n)e.call(this,n[a],a,n)&&(r[a]=n[a]);return r}function yt(n){return Array.isArray(n)?n.map(yt):typeof n=="object"&&n?at(n,yt):n}function wt(n,e){for(let i=0;i<n.length;i++)if(e.indexOf(n[i])>=0)return!0;return!1}const _t={};function mt(n){_t[n]||(typeof console<"u"&&console.warn(n),_t[n]=!0)}function oi(n,e,i){return(i.y-n.y)*(e.x-n.x)>(e.y-n.y)*(i.x-n.x)}function Hi(n){let e=0;for(let i,r,a=0,h=n.length,u=h-1;a<h;u=a++)i=n[a],r=n[u],e+=(r.x-i.x)*(i.y+r.y);return e}function Li([n,e,i]){const r=Nt(e+90),a=Nt(i);return{x:n*Math.cos(r)*Math.sin(a),y:n*Math.sin(r)*Math.sin(a),z:n*Math.cos(a),azimuthal:e,polar:i}}function Ni(n){return(typeof self<"u"||n!==void 0)&&typeof WorkerGlobalScope<"u"&&(n!==void 0?n:self)instanceof WorkerGlobalScope}function _i(n){const e={};if(n.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(i,r,a,h)=>{const u=a||h;return e[r]=!u||u.toLowerCase(),""}),e["max-age"]){const i=parseInt(e["max-age"],10);isNaN(i)?delete e["max-age"]:e["max-age"]=i}return e}let kt=null;function wi(n,e){return[n[4*e],n[4*e+1],n[4*e+2],n[4*e+3]]}function ri(n,e,i,r){for(;e<i;){const a=e+i>>1;n[a]<r?e=a+1:i=a}return e}function gi(n,e,i,r){for(;e<i;){const a=e+i>>1;n[a]<=r?e=a+1:i=a}return e}function Ti(n){return n>0?1/(1.001-n):1+n}function An(n){return n>0?1-1/(1.001-n):-n}function yn(n,e,i){return(n-e.min)*(i.max-i.min)/(e.max-e.min)+i.min}const Ji={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!Ji.API_URL)return null;try{const n=new URL(Ji.API_URL);return n.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":n.hostname==="api.mapbox.com"?"https://events.mapbox.com/events/v2":null}catch{return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",BUILDING_GEN_URL:"https://api.mapbox.com/mapbox-gl-js/building-gen/building_gen_v1.2.4.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1"};function no(n){return Ji.API_URL_REGEX.test(n)}function Ao(n){return Ji.API_SPRITE_REGEX.test(n)}let ro,rl,oa,ic,Rr,Ms;function ol(){return ro==null&&(ro=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),ro}const oo={now:()=>ic!==void 0?ic:performance.now(),setNow(n){ic=n},restoreNow(){ic=void 0},frame(n){const e=requestAnimationFrame(n);return{cancel:()=>cancelAnimationFrame(e)}},getImageData(n,e=0){const{width:i,height:r}=n;Rr||(Rr=document.createElement("canvas"));const a=Rr.getContext("2d",{willReadFrequently:!0});if(!a)throw new Error("failed to create canvas 2d context");return(i>Rr.width||r>Rr.height)&&(Rr.width=i,Rr.height=r),a.clearRect(-e,-e,i+2*e,r+2*e),a.drawImage(n,0,0,i,r),a.getImageData(-e,-e,i+2*e,r+2*e)},resolveURL:n=>(rl||(rl=document.createElement("a")),rl.href=n,rl.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(oa==null&&(oa=window.matchMedia("(prefers-reduced-motion: reduce)")),oa.matches)},hasCanvasFingerprintNoise(){if(Ms!==void 0)return Ms;if(!ol())return Ms=!1,!1;const n=new OffscreenCanvas(85,1),e=n.getContext("2d",{willReadFrequently:!0});let i=0;for(let a=0;a<n.width;++a)e.fillStyle=`rgba(${i++},${i++},${i++}, 255)`,e.fillRect(a,0,1,1);const r=e.getImageData(0,0,n.width,n.height);i=0;for(let a=0;a<r.data.length;++a)if(a%4!=3&&i++!==r.data[a])return Ms=!0,!0;return Ms=!1,!1}};function Lh(n,e){const i=n.indexOf("?");if(i<0)return`${n}?${new URLSearchParams(e).toString()}`;const r=new URLSearchParams(n.slice(i));for(const a in e)r.set(a,e[a]);return`${n.slice(0,i)}?${r.toString()}`}function Fh(n,e={persistentParams:[]}){const i=n.indexOf("?");if(i<0)return n;const r=new URLSearchParams,a=new URLSearchParams(n.slice(i));for(const u of e.persistentParams){const p=a.get(u);p&&r.set(u,p)}const h=r.toString();return`${n.slice(0,i)}${h.length>0?`?${h}`:""}`}const Yd="mapbox-tiles";let Kd=500,Oh=50;const Bh=["language","worldview","jobid"];let xn;function Ur(){try{return caches}catch{}}function jr(){const n=Ur();n&&xn==null&&(xn=n.open(Yd))}let Dr=1/0;const so={supported:!1,testSupport:function(n){!nc&&Cs&&(Ps?Jd(n):Xo=n)}};let Xo,Cs,nc=!1,Ps=!1;const rc=typeof self<"u"?self:{};function Jd(n){const e=n.createTexture();n.bindTexture(n.TEXTURE_2D,e);try{if(n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,Cs),n.isContextLost())return;so.supported=!0}catch{}n.deleteTexture(e),nc=!0}rc.document&&(Cs=rc.document.createElement("img"),Cs.onload=function(){Xo&&Jd(Xo),Xo=null,Ps=!0},Cs.onerror=function(){nc=!0,Xo=null},Cs.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const sl={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Iconset:"Iconset",Image:"Image",Model:"Model"};Object.freeze(sl);class sr extends Error{constructor(e,i,r){i===401&&no(r)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=i,this.url=r}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const oc=Ni()?()=>self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,Mo=function(n,e){return/^file:/.test(i=n.url)||/^file:/.test(oc())&&!/^\w+:/.test(i)?function(r,a){const h=new XMLHttpRequest;h.open(r.method||"GET",r.url,!0),r.type==="arrayBuffer"&&(h.responseType="arraybuffer");for(const u in r.headers)h.setRequestHeader(u,r.headers[u]);return r.type==="json"&&(h.responseType="text",h.setRequestHeader("Accept","application/json")),h.withCredentials=r.credentials==="include",h.onerror=()=>{a(new Error(h.statusText))},h.onload=()=>{if((h.status>=200&&h.status<300||h.status===0)&&h.response!==null){let u=h.response;if(r.type==="json")try{u=JSON.parse(h.response)}catch(_){return a(_)}const p=new Headers;h.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(_=>{const g=_.split(": "),v=g.shift(),b=g.join(": ");p.append(v,b)}),a(null,u,p)}else a(new sr(h.statusText,h.status,r.url))},h.send(r.body),{cancel:()=>h.abort()}}(n,e):function(r,a){const h=new AbortController,u=new Request(r.url,{method:r.method||"GET",body:r.body,credentials:r.credentials,headers:r.headers,referrer:oc(),referrerPolicy:r.referrerPolicy,signal:h.signal});let p=!1,_=!1;const g=(v=u.url).indexOf("sku=")>0&&no(v);var v;r.type==="json"&&u.headers.set("Accept","application/json");const b=(E,I,P)=>{if(_)return;if(E&&E.message!=="SecurityError"&&mt(E.toString()),I&&P)return w(I);const z=Date.now();fetch(u).then(R=>{if(R.ok){const B=g?R.clone():null;return w(R,B,z)}return a(new sr(R.statusText,R.status,r.url))}).catch(R=>{R.name!=="AbortError"&&a(new Error(`${R.message} ${r.url}`))})},w=(E,I,P)=>{(r.type==="arrayBuffer"?E.arrayBuffer():r.type==="json"?E.json():E.text()).then(z=>{_||(I&&P&&function(R,B,k){if(jr(),xn==null)return;const j=_i(B.headers.get("cache-control")||"");if(j["no-store"])return;const H={status:B.status,statusText:B.statusText,headers:new Headers};B.headers.forEach((ie,oe)=>H.headers.set(oe,ie)),j["max-age"]&&H.headers.set("Expires",new Date(k+1e3*j["max-age"]).toUTCString());const $=H.headers.get("expires");if(!$||new Date($).getTime()-k<42e4)return;let re=Fh(R.url,{persistentParams:Bh});if(B.status===206){const ie=R.headers.get("Range");if(!ie)return;H.status=200,re=Lh(re,{range:ie})}const K=new Response((Q=B.status)!==200&&Q!==404&&[101,103,204,205,304].includes(Q)?null:B.body,H);var Q;jr(),xn!=null&&xn.then(ie=>ie.put(re,K)).catch(ie=>mt(ie.message))}(u,I,P),p=!0,a(null,z,E.headers))}).catch(z=>{_||a(new Error(z.message))})};return g?function(E,I){if(jr(),xn==null)return I(null);xn.then(P=>{let z=Fh(E.url,{persistentParams:Bh});const R=E.headers.get("Range");R&&(z=Lh(z,{range:R})),P.match(z).then(B=>{const k=function(j){if(!j)return!1;const H=new Date(j.headers.get("expires")||0),$=_i(j.headers.get("cache-control")||"");return Number(H)>Date.now()&&!$["no-cache"]}(B);P.delete(z).catch(I),k&&P.put(z,B.clone()).catch(I),I(null,B,k)}).catch(I)}).catch(I)}(u,b):b(null,null),{cancel:()=>{_=!0,p||h.abort()}}}(n,e);var i},al=function(n,e){return Mo(Object.assign(n,{type:"arrayBuffer"}),e)};function gm(n){const e=document.createElement("a");return e.href=n,e.protocol===location.protocol&&e.host===location.host}let ll,Vt;ll=[],Vt=0;const sc=function(n,e){if(so.supported&&(n.headers||(n.headers={}),n.headers.accept="image/webp,*/*"),Vt>=Ji.MAX_PARALLEL_IMAGE_REQUESTS){const h={requestParameters:n,callback:e,cancelled:!1,cancel(){this.cancelled=!0}};return ll.push(h),h}Vt++;let i=!1;const r=()=>{if(!i)for(i=!0,Vt--;ll.length&&Vt<Ji.MAX_PARALLEL_IMAGE_REQUESTS;){const h=ll.shift(),{requestParameters:u,callback:p,cancelled:_}=h;_||(h.cancel=sc(u,p).cancel)}},a=al(n,(h,u,p)=>{r(),h?e(h):u&&function(_,g){const v=new Blob([new Uint8Array(_)],{type:"image/png"});createImageBitmap(v).then(b=>{g(null,b)}).catch(b=>{g(new Error(`Could not load image because of ${b.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(u,(_,g)=>e(_,g,p))});return{cancel:()=>{a.cancel(),r()}}};var kh,Qd,ep,Yo={exports:{}},cl={exports:{}},hl={exports:{}},Nh=function(){if(ep)return Yo.exports;ep=1;var n=(kh||(kh=1,cl.exports=function(i,r){var a,h,u,p,_,g,v,b;for(h=i.length-(a=3&i.length),u=r,_=3432918353,g=461845907,b=0;b<h;)v=255&i.charCodeAt(b)|(255&i.charCodeAt(++b))<<8|(255&i.charCodeAt(++b))<<16|(255&i.charCodeAt(++b))<<24,++b,u=27492+(65535&(p=5*(65535&(u=(u^=v=(65535&(v=(v=(65535&v)*_+(((v>>>16)*_&65535)<<16)&4294967295)<<15|v>>>17))*g+(((v>>>16)*g&65535)<<16)&4294967295)<<13|u>>>19))+((5*(u>>>16)&65535)<<16)&4294967295))+(((p>>>16)+58964&65535)<<16);switch(v=0,a){case 3:v^=(255&i.charCodeAt(b+2))<<16;case 2:v^=(255&i.charCodeAt(b+1))<<8;case 1:u^=v=(65535&(v=(v=(65535&(v^=255&i.charCodeAt(b)))*_+(((v>>>16)*_&65535)<<16)&4294967295)<<15|v>>>17))*g+(((v>>>16)*g&65535)<<16)&4294967295}return u^=i.length,u=2246822507*(65535&(u^=u>>>16))+((2246822507*(u>>>16)&65535)<<16)&4294967295,u=3266489909*(65535&(u^=u>>>13))+((3266489909*(u>>>16)&65535)<<16)&4294967295,(u^=u>>>16)>>>0}),cl.exports),e=(Qd||(Qd=1,hl.exports=function(i,r){for(var a,h=i.length,u=r^h,p=0;h>=4;)a=1540483477*(65535&(a=255&i.charCodeAt(p)|(255&i.charCodeAt(++p))<<8|(255&i.charCodeAt(++p))<<16|(255&i.charCodeAt(++p))<<24))+((1540483477*(a>>>16)&65535)<<16),u=1540483477*(65535&u)+((1540483477*(u>>>16)&65535)<<16)^(a=1540483477*(65535&(a^=a>>>24))+((1540483477*(a>>>16)&65535)<<16)),h-=4,++p;switch(h){case 3:u^=(255&i.charCodeAt(p+2))<<16;case 2:u^=(255&i.charCodeAt(p+1))<<8;case 1:u=1540483477*(65535&(u^=255&i.charCodeAt(p)))+((1540483477*(u>>>16)&65535)<<16)}return u=1540483477*(65535&(u^=u>>>13))+((1540483477*(u>>>16)&65535)<<16),(u^=u>>>15)>>>0}),hl.exports);return Yo.exports=n,Yo.exports.murmur3=n,Yo.exports.murmur2=e,Yo.exports}(),ac=vr(Nh);class Gr{constructor(e,...i){Object.assign(this,i[0]||{}),this.type=e}}class lc extends Gr{constructor(e,i={}){super("error",Object.assign({error:e},i))}}function Vh(n,e,i){i[n]&&i[n].indexOf(e)!==-1||(i[n]=i[n]||[],i[n].push(e))}function Uh(n,e,i){if(i&&i[n]){const r=i[n].indexOf(e);r!==-1&&i[n].splice(r,1)}}class qr{on(e,i){return this._listeners=this._listeners||{},Vh(e,i,this._listeners),this}off(e,i){return Uh(e,i,this._listeners),Uh(e,i,this._oneTimeListeners),this}once(e,i){return i?(this._oneTimeListeners=this._oneTimeListeners||{},Vh(e,i,this._oneTimeListeners),this):new Promise(r=>{this.once(e,r)})}fire(e,i){const r=typeof e=="string"?new Gr(e,i):e,a=r.type;if(this.listens(a)){r.target=this;const h=this._listeners&&this._listeners[a]?this._listeners[a].slice():[];for(const _ of h)_.call(this,r);const u=this._oneTimeListeners&&this._oneTimeListeners[a]?this._oneTimeListeners[a].slice():[];for(const _ of u)Uh(a,_,this._oneTimeListeners),_.call(this,r);const p=this._eventedParent;if(p){const _=typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData;Object.assign(r,_),p.fire(r)}}else r instanceof lc&&console.error(r.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,i){return this._eventedParent=e,this._eventedParentData=i,this}}class Xn{constructor(e){typeof e=="string"?this.name=e:(this.name=e.name,this.iconsetId=e.iconsetId)}static from(e){return new Xn(e)}static toString(e){return e.iconsetId?`${e.name}${e.iconsetId}`:e.name}static parse(e){const[i,r]=e.split("");return new Xn({name:i,iconsetId:r})}static isEqual(e,i){return e.name===i.name&&e.iconsetId===i.iconsetId}toString(){return Xn.toString(this)}serialize(){return{name:this.name,iconsetId:this.iconsetId}}}var cc,br={},jh=function(){if(cc)return br;cc=1;var n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function e(h){return(h=Math.round(h))<0?0:h>255?255:h}function i(h){return e(h[h.length-1]==="%"?parseFloat(h)/100*255:parseInt(h))}function r(h){return(u=h[h.length-1]==="%"?parseFloat(h)/100:parseFloat(h))<0?0:u>1?1:u;var u}function a(h,u,p){return p<0?p+=1:p>1&&(p-=1),6*p<1?h+(u-h)*p*6:2*p<1?u:3*p<2?h+(u-h)*(2/3-p)*6:h}try{br.parseCSSColor=function(h){var u,p=h.replace(/ /g,"").toLowerCase();if(p in n)return n[p].slice();if(p[0]==="#")return p.length===4?(u=parseInt(p.substr(1),16))>=0&&u<=4095?[(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1]:null:p.length===7&&(u=parseInt(p.substr(1),16))>=0&&u<=16777215?[(16711680&u)>>16,(65280&u)>>8,255&u,1]:null;var _=p.indexOf("("),g=p.indexOf(")");if(_!==-1&&g+1===p.length){var v=p.substr(0,_),b=p.substr(_+1,g-(_+1)).split(","),w=1;switch(v){case"rgba":if(b.length!==4)return null;w=r(b.pop());case"rgb":return b.length!==3?null:[i(b[0]),i(b[1]),i(b[2]),w];case"hsla":if(b.length!==4)return null;w=r(b.pop());case"hsl":if(b.length!==3)return null;var E=(parseFloat(b[0])%360+360)%360/360,I=r(b[1]),P=r(b[2]),z=P<=.5?P*(I+1):P+I-P*I,R=2*P-z;return[e(255*a(R,z,E+1/3)),e(255*a(R,z,E)),e(255*a(R,z,E-1/3)),w];default:return null}}return null}}catch{}return br}();class Yt{constructor(e,i,r,a=1){this.r=e,this.g=i,this.b=r,this.a=a}static parse(e){if(!e)return;if(e instanceof Yt)return e;if(typeof e!="string")return;const i=jh.parseCSSColor(e);return i?new Yt(i[0]/255,i[1]/255,i[2]/255,i[3]):void 0}toString(){const[e,i,r,a]=[this.r,this.g,this.b,this.a];return`rgba(${Math.round(255*e)},${Math.round(255*i)},${Math.round(255*r)},${a})`}toNonPremultipliedRenderColor(e){const{r:i,g:r,b:a,a:h}=this;return new tp(e,i,r,a,h)}toPremultipliedRenderColor(e){const{r:i,g:r,b:a,a:h}=this;return new ip(e,i*h,r*h,a*h,h)}clone(){return new Yt(this.r,this.g,this.b,this.a)}}class Gh{constructor(e,i,r,a,h,u=!1){if(this.premultiplied=!1,this.premultiplied=u,e){const p=e.image.height,_=p*p;this.premultiplied?(i=h===0?0:i/h*(p-1),r=h===0?0:r/h*(p-1),a=h===0?0:a/h*(p-1)):(i*=p-1,r*=p-1,a*=p-1),i=Math.max(0,Math.min(p-1,i)),r=Math.max(0,Math.min(p-1,r)),a=Math.max(0,Math.min(p-1,a));const g=Math.floor(i),v=Math.floor(r),b=Math.floor(a),w=Math.ceil(i),E=Math.ceil(r),I=Math.ceil(a),P=i-g,z=r-v,R=a-b,B=e.image.data,k=4*(g+v*_+b*p),j=4*(g+v*_+I*p),H=4*(g+E*_+b*p),$=4*(g+E*_+I*p),re=4*(w+v*_+b*p),K=4*(w+v*_+I*p),Q=4*(w+E*_+b*p),ie=4*(w+E*_+I*p);this.r=ut(ut(ut(B[k],B[j],R),ut(B[H],B[$],R),z),ut(ut(B[re],B[K],R),ut(B[Q],B[ie],R),z),P)/255*(this.premultiplied?h:1),this.g=ut(ut(ut(B[k+1],B[j+1],R),ut(B[H+1],B[$+1],R),z),ut(ut(B[re+1],B[K+1],R),ut(B[Q+1],B[ie+1],R),z),P)/255*(this.premultiplied?h:1),this.b=ut(ut(ut(B[k+2],B[j+2],R),ut(B[H+2],B[$+2],R),z),ut(ut(B[re+2],B[K+2],R),ut(B[Q+2],B[ie+2],R),z),P)/255*(this.premultiplied?h:1),this.a=h}else this.r=i,this.g=r,this.b=a,this.a=h}toArray(){const{r:e,g:i,b:r,a}=this;return[255*e,255*i,255*r,a]}toHslaArray(){let{r:e,g:i,b:r,a}=this;if(this.premultiplied){if(a===0)return[0,0,0,0];const I=1/a;e*=I,i*=I,r*=I}const h=Math.min(Math.max(e,0),1),u=Math.min(Math.max(i,0),1),p=Math.min(Math.max(r,0),1),_=Math.min(h,u,p),g=Math.max(h,u,p),v=g-_,b=.5*(_+g);if(v===0)return[0,0,100*b,a];const w=b>.5?v/(2-g-_):v/(g+_);let E;switch(g){case h:E=60*((u-p)/v+(u<p?6:0));break;case u:E=60*((p-h)/v+2);break;default:E=60*((h-u)/v+4)}return[E,100*w,100*b,a]}toArray01(){const{r:e,g:i,b:r,a}=this;return[e,i,r,a]}toArray01Scaled(e){const{r:i,g:r,b:a}=this;return[i*e,r*e,a*e]}toArray01Linear(){const{r:e,g:i,b:r,a}=this;return[Math.pow(e,2.2),Math.pow(i,2.2),Math.pow(r,2.2),a]}}class tp extends Gh{constructor(e,i,r,a,h){super(e,i,r,a,h,!1)}}class ip extends Gh{constructor(e,i,r,a,h){super(e,i,r,a,h,!0)}}function ut(n,e,i){return n*(1-i)+e*i}function qh(n,e,i){return n.map((r,a)=>ut(r,e[a],i))}Yt.black=new Yt(0,0,0,1),Yt.white=new Yt(1,1,1,1),Yt.transparent=new Yt(0,0,0,0),Yt.red=new Yt(1,0,0,1),Yt.blue=new Yt(0,0,1,1);var ul=Object.freeze({__proto__:null,array:qh,color:function(n,e,i){return new Yt(ut(n.r,e.r,i),ut(n.g,e.g,i),ut(n.b,e.b,i),ut(n.a,e.a,i))},number:ut});class ar extends Error{constructor(e,i){super(i),this.message=i,this.key=e}}class Ko{constructor(e,i=[]){this.parent=e,this.bindings={};for(const[r,a]of i)this.bindings[r]=a}concat(e){return new Ko(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}const Rs={kind:"null"},tt={kind:"number"},Zt={kind:"string"},Wt={kind:"boolean"},Rn={kind:"color"},Jo={kind:"object"},Kt={kind:"value"},hc={kind:"collator"},dl={kind:"formatted"},sa={kind:"resolvedImage"};function Mn(n,e){return{kind:"array",itemType:n,N:e}}function Zi(n){if(n.kind==="array"){const e=Zi(n.itemType);return typeof n.N=="number"?`array<${e}, ${n.N}>`:n.itemType.kind==="value"?"array":`array<${e}>`}return n.kind}const uc=[Rs,tt,Zt,Wt,Rn,dl,Jo,Mn(Kt),sa];function pl(n,e){if(e.kind==="error")return null;if(n.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!pl(n.itemType,e.itemType))&&(typeof n.N!="number"||n.N===e.N))return null}else{if(n.kind===e.kind)return null;if(n.kind==="value"){for(const i of uc)if(!pl(i,e))return null}}return`Expected ${Zi(n)} but found ${Zi(e)} instead.`}function $h(n,e){return e.some(i=>i.kind===n.kind)}function fl(n,e){return e.some(i=>i==="null"?n===null:i==="array"?Array.isArray(n):i==="object"?n&&!Array.isArray(n)&&typeof n=="object":i===typeof n)}function dc(n,e){return n.kind==="array"&&e.kind==="array"?n.N===e.N&&dc(n.itemType,e.itemType):n.kind===e.kind}class Hh{constructor(e,i,r){this.sensitivity=e?i?"variant":"case":i?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,i){return this.collator.compare(e,i)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class pc{constructor(e,i,r,a,h){this.text=e.normalize?e.normalize():e,this.image=i,this.scale=r,this.fontStack=a,this.textColor=h}}class qn{constructor(e){this.sections=e}static fromString(e){return new qn([new pc(e,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||!!e.image&&e.image.hasPrimary())}static factory(e){return e instanceof qn?e:qn.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const i of this.sections){if(i.image){const a=i.image.getPrimary().id.toString();e.push(["image",a]);continue}e.push(i.text);const r={};i.fontStack&&(r["text-font"]=["literal",i.fontStack.split(",")]),i.scale&&(r["font-scale"]=i.scale),i.textColor&&(r["text-color"]=["rgba"].concat(i.textColor.toNonPremultipliedRenderColor(null).toArray())),e.push(r)}return e}}class $r{constructor(e,i={}){this.id=Xn.from(e),this.params=i.params,this.sx=i.sx||1,this.sy=i.sy||1}toString(){return JSON.stringify(this)}static parse(e){let i,r,a,h;try{({id:i,params:r,sx:a,sy:h}=JSON.parse(e)||{})}catch{return null}return i?new $r(i,{params:r,sx:a,sy:h}):null}scaleSelf(e,i=e){return this.sx*=e,this.sy*=i,this}}class vn{constructor(e,i,r,a,h=!1){this.primaryId=Xn.from(e),this.primaryOptions=i,r&&(this.secondaryId=Xn.from(r)),this.secondaryOptions=a,this.available=h}toString(){return this.primaryId&&this.secondaryId?`[${this.primaryId.name},${this.secondaryId.name}]`:this.primaryId.name}hasPrimary(){return!!this.primaryId}getPrimary(){return new $r(this.primaryId,this.primaryOptions)}hasSecondary(){return!!this.secondaryId}getSecondary(){return this.secondaryId?new $r(this.secondaryId,this.secondaryOptions):null}static from(e){return typeof e=="string"?vn.build({name:e}):e}static build(e,i,r,a){return!e||typeof e=="object"&&!("name"in e)?null:new vn(e,r,i,a)}}function np(n,e,i,r){return typeof n=="number"&&n>=0&&n<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof i=="number"&&i>=0&&i<=255?r===void 0||typeof r=="number"&&r>=0&&r<=1?null:`Invalid rgba value [${[n,e,i,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof r=="number"?[n,e,i,r]:[n,e,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Ds(n){if(n===null||typeof n=="string"||typeof n=="boolean"||typeof n=="number"||n instanceof Yt||n instanceof Hh||n instanceof qn||n instanceof vn)return!0;if(Array.isArray(n)){for(const e of n)if(!Ds(e))return!1;return!0}if(typeof n=="object"){for(const e in n)if(!Ds(n[e]))return!1;return!0}return!1}function Wi(n){if(n===null)return Rs;if(typeof n=="string")return Zt;if(typeof n=="boolean")return Wt;if(typeof n=="number")return tt;if(n instanceof Yt)return Rn;if(n instanceof Hh)return hc;if(n instanceof qn)return dl;if(n instanceof vn)return sa;if(Array.isArray(n)){const e=n.length;let i;for(const r of n){const a=Wi(r);if(i){if(i===a)continue;i=Kt;break}i=a}return Mn(i||Kt,e)}return Jo}function ao(n){const e=typeof n;return n===null?"":e==="string"||e==="number"||e==="boolean"?String(n):n instanceof qn||n instanceof vn||n instanceof Yt?n.toString():JSON.stringify(n)}class Co{constructor(e,i){this.type=e,this.value=i}static parse(e,i){if(e.length!==2)return i.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!Ds(e[1]))return i.error("invalid value");const r=e[1];let a=Wi(r);const h=i.expectedType;return a.kind!=="array"||a.N!==0||!h||h.kind!=="array"||typeof h.N=="number"&&h.N!==0||(a=h),new Co(a,r)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof Yt?["rgba"].concat(this.value.toNonPremultipliedRenderColor(null).toArray()):this.value instanceof qn?this.value.serialize():this.value}}class Qi{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const Zh={string:Zt,number:tt,boolean:Wt,object:Jo};class $n{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");let r,a=1;const h=e[0];if(h==="array"){let p,_;if(e.length>2){const g=e[1];if(typeof g!="string"||!(g in Zh)||g==="object")return i.error('The item type argument of "array" must be one of string, number, boolean',1);p=Zh[g],a++}else p=Kt;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return i.error('The length argument to "array" must be a positive integer literal',2);_=e[2],a++}r=Mn(p,_)}else r=Zh[h];const u=[];for(;a<e.length;a++){const p=i.parse(e[a],a,Kt);if(!p)return null;u.push(p)}return new $n(r,u)}evaluate(e){for(let i=0;i<this.args.length;i++){const r=this.args[i].evaluate(e);if(!pl(this.type,Wi(r)))return r;if(i===this.args.length-1)throw new Qi(`The expression ${JSON.stringify(this.args[i].serialize())} evaluated to ${Zi(Wi(r))} but was expected to be of type ${Zi(this.type)}.`)}return null}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=this.type,i=[e.kind];if(e.kind==="array"){const r=e.itemType;if(r.kind==="string"||r.kind==="number"||r.kind==="boolean"){i.push(r.kind);const a=e.N;(typeof a=="number"||this.args.length>1)&&i.push(a)}}return i.concat(this.args.map(r=>r.serialize()))}}class xt{constructor(e){this.type=dl,this.sections=e}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");const r=e[1];if(!Array.isArray(r)&&typeof r=="object")return i.error("First argument must be an image or text section.");const a=[];let h=!1;for(let u=1;u<=e.length-1;++u){const p=e[u];if(h&&typeof p=="object"&&!Array.isArray(p)){h=!1;let _=null;if(p["font-scale"]&&(_=i.parseObjectValue(p["font-scale"],u,"font-scale",tt),!_))return null;let g=null;if(p["text-font"]&&(g=i.parseObjectValue(p["text-font"],u,"text-font",Mn(Zt)),!g))return null;let v=null;if(p["text-color"]&&(v=i.parseObjectValue(p["text-color"],u,"text-color",Rn),!v))return null;const b=a[a.length-1];b.scale=_,b.font=g,b.textColor=v}else{const _=i.parse(e[u],u,Kt);if(!_)return null;const g=_.type.kind;if(g!=="string"&&g!=="value"&&g!=="null"&&g!=="resolvedImage")return i.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");h=!0,a.push({content:_,scale:null,font:null,textColor:null})}}return new xt(a)}evaluate(e){return new qn(this.sections.map(i=>{const r=i.content.evaluate(e);return dc(Wi(r),sa)?new pc("",r,null,null,null):new pc(ao(r),null,i.scale?i.scale.evaluate(e):null,i.font?i.font.evaluate(e).join(","):null,i.textColor?i.textColor.evaluate(e):null)}))}eachChild(e){for(const i of this.sections)e(i.content),i.scale&&e(i.scale),i.font&&e(i.font),i.textColor&&e(i.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const i of this.sections){e.push(i.content.serialize());const r={};i.scale&&(r["font-scale"]=i.scale.serialize()),i.font&&(r["text-font"]=i.font.serialize()),i.textColor&&(r["text-color"]=i.textColor.serialize()),e.push(r)}return e}}class rt{constructor(e,i,r,a){this._imageWarnHistory={},this.type=sa,this.namePrimary=e,this.nameSecondary=i,r&&(this.paramsPrimary=r.params,this.iconsetIdPrimary=r.iconset?r.iconset.id:void 0),a&&(this.paramsSecondary=a.params,this.iconsetIdSecondary=a.iconset?a.iconset.id:void 0)}static parse(e,i){if(e.length<2)return i.error("Expected two or more arguments.");let r=1;const a=[];function h(){if(r<e.length){const p=i.parse(e[r],r++,Zt);return p?(a.push({image:p,options:{}}),!0):(i.error(a.length?"Secondary image variant is not a string.":"No image name provided."),!1)}return!0}function u(){if(r<e.length){const _=e[r];if((p=_)===null||typeof p!="object"||Array.isArray(p))return!0;const g=_.params,v=_.iconset,b=i.concat(r);if(!g&&!v)return r++,!0;if(g){if(typeof g!="object"||g.constructor!==Object)return b.error('Image options "params" should be an object'),!1;const w={},E=b.concat(void 0,"params");for(const I in g){if(!I)return E.error("Image parameter name should be non-empty"),!1;const P=E.concat(void 0,I).parse(g[I],void 0,Rn,void 0,{typeAnnotation:"coerce"});if(!P)return!1;w[I]=P}a[a.length-1].options.params=w}if(v){if(typeof v!="object"||v.constructor!==Object)return b.error('Image options "iconset" should be an object'),!1;if(!v.id)return b.error('Image options "iconset" should have an "id" property'),!1;a[a.length-1].options.iconset=v}return r++,!0}var p;return!0}for(let p=0;p<2;p++)if(!h()||!u())return;return new rt(a[0].image,a[1]?a[1].image:void 0,a[0].options,a[1]?a[1].options:void 0)}evaluateParams(e,i){const r={};if(i){for(const a in i)if(i[a])try{r[a]=i[a].evaluate(e)}catch{continue}if(Object.keys(r).length!==0)return{params:r}}}evaluate(e){const i={name:this.namePrimary.evaluate(e),iconsetId:this.iconsetIdPrimary},r=this.nameSecondary?{name:this.nameSecondary.evaluate(e),iconsetId:this.iconsetIdSecondary}:void 0,a=vn.build(i,r,this.paramsPrimary?this.evaluateParams(e,this.paramsPrimary):void 0,this.paramsSecondary?this.evaluateParams(e,this.paramsSecondary):void 0);if(a&&e.availableImages){const h=a.getPrimary().id;if(a.available=e.availableImages.some(u=>Xn.isEqual(u,h)),a.available){const u=a.getSecondary()?a.getSecondary().id:null;u&&(a.available=e.availableImages.some(p=>Xn.isEqual(p,u)))}}return a}eachChild(e){if(e(this.namePrimary),this.paramsPrimary)for(const i in this.paramsPrimary)this.paramsPrimary[i]&&e(this.paramsPrimary[i]);if(this.nameSecondary&&(e(this.nameSecondary),this.paramsSecondary))for(const i in this.paramsSecondary)this.paramsSecondary[i]&&e(this.paramsSecondary[i])}outputDefined(){return!1}serializeOptions(e,i){const r={};if(i&&(r.iconset={id:i}),e){r.params={};for(const a in e)e[a]&&(r.params[a]=e[a].serialize())}return Object.keys(r).length>0?r:void 0}serialize(){const e=["image",this.namePrimary.serialize()];if(this.paramsPrimary||this.iconsetIdPrimary){const i=this.serializeOptions(this.paramsPrimary,this.iconsetIdPrimary);i&&e.push(i)}if(this.nameSecondary&&(e.push(this.nameSecondary.serialize()),this.paramsSecondary||this.iconsetIdSecondary)){const i=this.serializeOptions(this.paramsSecondary,this.iconsetIdSecondary);i&&e.push(i)}return e}}function aa(n){return ml(n)?"string":la(n)?"number":ht(n)?"boolean":Array.isArray(n)?"array":n===null?"null":dt(n)?"object":typeof n}function dt(n){return n!=null&&!Array.isArray(n)&&typeof n!="function"&&!(n instanceof String||n instanceof Number||n instanceof Boolean)&&typeof n=="object"}function ml(n){return typeof n=="string"||n instanceof String}function la(n){return typeof n=="number"||n instanceof Number}function ht(n){return typeof n=="boolean"||n instanceof Boolean}const rp={"to-boolean":Wt,"to-color":Rn,"to-number":tt,"to-string":Zt};class Hr{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");const r=e[0],a=[];let h=Rs;if(r==="to-array"){if(!Array.isArray(e[1]))return null;const u=e[1].length;if(i.expectedType){if(i.expectedType.kind!=="array")return i.error(`Expected ${i.expectedType.kind} but found array.`);h=Mn(i.expectedType.itemType,u)}else{if(!(u>0&&Ds(e[1][0])))return null;h=Mn(Wi(e[1][0]),u)}for(let p=0;p<u;p++){const _=e[1][p];let g;if(Array.isArray(_))g=i.parse(_,void 0,h.itemType);else{const v=aa(_);if(v!==h.itemType.kind)return i.error(`Expected ${h.itemType.kind} but found ${v}.`);g=i.registry.literal.parse(["literal",_===void 0?null:_],i)}if(!g)return null;a.push(g)}}else{if((r==="to-boolean"||r==="to-string")&&e.length!==2)return i.error("Expected one argument.");h=rp[r];for(let u=1;u<e.length;u++){const p=i.parse(e[u],u,Kt);if(!p)return null;a.push(p)}}return new Hr(h,a)}evaluate(e){if(this.type.kind==="boolean")return!!this.args[0].evaluate(e);if(this.type.kind==="color"){let i,r;for(const a of this.args){if(i=a.evaluate(e),r=null,i instanceof Yt)return i;if(typeof i=="string"){const h=e.parseColor(i);if(h)return h}else if(Array.isArray(i)&&(r=i.length<3||i.length>4?`Invalid rbga value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.`:np(i[0],i[1],i[2],i[3]),!r))return new Yt(i[0]/255,i[1]/255,i[2]/255,i[3])}throw new Qi(r||`Could not parse color from value '${typeof i=="string"?i:String(JSON.stringify(i))}'`)}if(this.type.kind==="number"){let i=null;for(const r of this.args){if(i=r.evaluate(e),i===null)return 0;const a=Number(i);if(!isNaN(a))return a}throw new Qi(`Could not convert ${JSON.stringify(i)} to number.`)}return this.type.kind==="formatted"?qn.fromString(ao(this.args[0].evaluate(e))):this.type.kind==="resolvedImage"?vn.build(ao(this.args[0].evaluate(e))):this.type.kind==="array"?this.args.map(i=>i.evaluate(e)):ao(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if(this.type.kind==="formatted")return new xt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new rt(this.args[0]).serialize();const e=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(i=>{e.push(i.serialize())}),e}}const op=["Unknown","Point","LineString","Polygon"];class fc{constructor(e,i,r){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.scope=e,this.options=i,this.iconImageUseTheme=r}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?op[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}measureLight(e){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,i=this.featureDistanceData.scale,{x:r,y:a}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(r*i-e[0])+this.featureDistanceData.bearing[1]*(a*i-e[1])}return 0}parseColor(e){let i=this._parseColorCache[e];return i||(i=this._parseColorCache[e]=Yt.parse(e)),i}getConfig(e){return this.options?this.options.get(e):null}}class Dn{constructor(e,i,r,a,h){this.name=e,this.type=i,this._evaluate=r,this.args=a,this._overloadIndex=h}evaluate(e){if(!this._evaluate){const i=Dn.definitions[this.name];this._evaluate=Array.isArray(i)?i[2]:i.overloads[this._overloadIndex][1]}return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,i){const r=e[0],a=Dn.definitions[r];if(!a)return i.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0);const h=Array.isArray(a)?a[0]:a.type,u=Array.isArray(a)?[[a[1],a[2]]]:a.overloads,p=[];let _=null,g=-1;for(const[v,b]of u){if(Array.isArray(v)&&v.length!==e.length-1)continue;p.push(v),g++,_=new Ic(i.registry,i.path,null,i.scope,void 0,i._scope,i.options,i.iconImageUseTheme);const w=[];let E=!1;for(let I=1;I<e.length;I++){const P=e[I],z=Array.isArray(v)?v[I-1]:v.type,R=_.parse(P,1+w.length,z);if(!R){E=!0;break}w.push(R)}if(!E)if(Array.isArray(v)&&v.length!==w.length)_.error(`Expected ${v.length} arguments, but found ${w.length} instead.`);else{for(let I=0;I<w.length;I++){const P=Array.isArray(v)?v[I]:v.type,z=w[I];_.concat(I+1).checkSubtype(P,z.type)}if(_.errors.length===0)return new Dn(r,h,b,w,g)}}if(p.length===1)i.errors.push(..._.errors);else{const v=(p.length?p:u.map(([w])=>w)).map(ym).join(" | "),b=[];for(let w=1;w<e.length;w++){const E=i.parse(e[w],1+b.length);if(!E)return null;b.push(Zi(E.type))}i.error(`Expected arguments of type ${v}, but found (${b.join(", ")}) instead.`)}return null}static register(e,i){Dn.definitions=i;for(const r in i)e[r]=Dn}}function ym(n){return Array.isArray(n)?`(${n.map(Zi).join(", ")})`:`(${Zi(n.type)}...)`}class ca{constructor(e,i,r){this.type=hc,this.locale=r,this.caseSensitive=e,this.diacriticSensitive=i}static parse(e,i){if(e.length!==2)return i.error("Expected one argument.");const r=e[1];if(typeof r!="object"||Array.isArray(r))return i.error("Collator options argument must be an object.");const a=r["case-sensitive"]===void 0?i.parse(!1,1,Wt):i.parseObjectValue(r["case-sensitive"],1,"case-sensitive",Wt);if(!a)return null;const h=r["diacritic-sensitive"]===void 0?i.parse(!1,1,Wt):i.parseObjectValue(r["diacritic-sensitive"],1,"diacritic-sensitive",Wt);if(!h)return null;let u=null;return r.locale&&(u=i.parseObjectValue(r.locale,1,"locale",Zt),!u)?null:new ca(a,h,u)}evaluate(e){return new Hh(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}serialize(){const e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}function Qo(n,e,i=0,r=n.length-1,a=es){for(;r>i;){if(r-i>600){const _=r-i+1,g=e-i+1,v=Math.log(_),b=.5*Math.exp(2*v/3),w=.5*Math.sqrt(v*b*(_-b)/_)*(g-_/2<0?-1:1);Qo(n,e,Math.max(i,Math.floor(e-g*b/_+w)),Math.min(r,Math.floor(e+(_-g)*b/_+w)),a)}const h=n[e];let u=i,p=r;for(zs(n,i,e),a(n[r],h)>0&&zs(n,i,r);u<p;){for(zs(n,u,p),u++,p--;a(n[u],h)<0;)u++;for(;a(n[p],h)>0;)p--}a(n[i],h)===0?zs(n,i,p):(p++,zs(n,p,r)),p<=e&&(i=p+1),e<=p&&(r=p-1)}}function zs(n,e,i){const r=n[e];n[e]=n[i],n[i]=r}function es(n,e){return n<e?-1:n>e?1:0}function ts(n){let e=0;for(let i,r,a=0,h=n.length,u=h-1;a<h;u=a++)i=n[a],r=n[u],e+=(r.x-i.x)*(i.y+r.y);return e}function _l(n,e){n[0]=Math.min(n[0],e[0]),n[1]=Math.min(n[1],e[1]),n[2]=Math.max(n[2],e[0]),n[3]=Math.max(n[3],e[1])}function gl(n,e){return!(n[0]<=e[0]||n[2]>=e[2]||n[1]<=e[1]||n[3]>=e[3])}function xm(n,e,i){const r=n[0]-e[0],a=n[1]-e[1],h=n[0]-i[0],u=n[1]-i[1];return r*u-h*a===0&&r*h<=0&&a*u<=0}function mc(n,e,i){return e[1]>n[1]!=i[1]>n[1]&&n[0]<(i[0]-e[0])*(n[1]-e[1])/(i[1]-e[1])+e[0]}function Ls(n,e,i=!1){let r=!1;for(let a=0,h=e.length;a<h;a++){const u=e[a];for(let p=0,_=u.length,g=_-1;p<_;g=p++){const v=u[g],b=u[p];if(xm(n,v,b))return i;mc(n,v,b)&&(r=!r)}}return r}function is(n,e,i,r){const a=r[0]-i[0],h=r[1]-i[1],u=(n[0]-i[0])*h-a*(n[1]-i[1]),p=(e[0]-i[0])*h-a*(e[1]-i[1]);return u>0&&p<0||u<0&&p>0}function _c(n,e,i,r){return(a=[r[0]-i[0],r[1]-i[1]])[0]*(h=[e[0]-n[0],e[1]-n[1]])[1]-a[1]*h[0]!==0&&!(!is(n,e,i,r)||!is(i,r,n,e));var a,h}function Wh(n){const e=new Oe(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),i=new Oe(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);for(const r of n[0])e.x>r.x&&(e.x=r.x),e.y>r.y&&(e.y=r.y),i.x<r.x&&(i.x=r.x),i.y<r.y&&(i.y=r.y);return{min:e,max:i}}const lo=8192;function vm(n,e){const i=(180+n[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+n[1]*Math.PI/360)))/360,a=Math.pow(2,e.z);return[Math.round(i*a*lo),Math.round(r*a*lo)]}function bm(n,e){for(let i=0;i<e.length;i++)if(Ls(n,e[i]))return!0;return!1}function sp(n,e,i){for(const r of i)for(let a=0,h=r.length,u=h-1;a<h;u=a++)if(_c(n,e,r[u],r[a]))return!0;return!1}function ap(n,e){for(let i=0;i<n.length;++i)if(!Ls(n[i],e))return!1;for(let i=0;i<n.length-1;++i)if(sp(n[i],n[i+1],e))return!1;return!0}function wm(n,e){for(let i=0;i<e.length;i++)if(ap(n,e[i]))return!0;return!1}function Xh(n,e,i){const r=[];for(let a=0;a<n.length;a++){const h=[];for(let u=0;u<n[a].length;u++){const p=vm(n[a][u],i);_l(e,p),h.push(p)}r.push(h)}return r}function ns(n,e,i){const r=[];for(let a=0;a<n.length;a++){const h=Xh(n[a],e,i);r.push(h)}return r}function lp(n,e,i,r){if(n[0]<i[0]||n[0]>i[2]){const a=.5*r;let h=n[0]-i[0]>a?-r:i[0]-n[0]>a?r:0;h===0&&(h=n[0]-i[2]>a?-r:i[2]-n[0]>a?r:0),n[0]+=h}_l(e,n)}function cp(n,e,i,r){const a=Math.pow(2,r.z)*lo,h=[r.x*lo,r.y*lo],u=[];if(!n)return u;for(const p of n)for(const _ of p){const g=[_.x+h[0],_.y+h[1]];lp(g,e,i,a),u.push(g)}return u}function gc(n,e,i,r){const a=Math.pow(2,r.z)*lo,h=[r.x*lo,r.y*lo],u=[];if(!n)return u;for(const _ of n){const g=[];for(const v of _){const b=[v.x+h[0],v.y+h[1]];_l(e,b),g.push(b)}u.push(g)}if(e[2]-e[0]<=a/2){(p=e)[0]=p[1]=1/0,p[2]=p[3]=-1/0;for(const _ of u)for(const g of _)lp(g,e,i,a)}var p;return u}class rs{constructor(e,i){this.type=Wt,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Ds(e[1])){const r=e[1];if(r.type==="FeatureCollection")for(let a=0;a<r.features.length;++a){const h=r.features[a].geometry.type;if(h==="Polygon"||h==="MultiPolygon")return new rs(r,r.features[a].geometry)}else if(r.type==="Feature"){const a=r.geometry.type;if(a==="Polygon"||a==="MultiPolygon")return new rs(r,r.geometry)}else if(r.type==="Polygon"||r.type==="MultiPolygon")return new rs(r,r)}return i.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return function(i,r){const a=[1/0,1/0,-1/0,-1/0],h=[1/0,1/0,-1/0,-1/0],u=i.canonicalID();if(!u)return!1;if(r.type==="Polygon"){const p=Xh(r.coordinates,h,u),_=cp(i.geometry(),a,h,u);if(!gl(a,h))return!1;for(const g of _)if(!Ls(g,p))return!1}if(r.type==="MultiPolygon"){const p=ns(r.coordinates,h,u),_=cp(i.geometry(),a,h,u);if(!gl(a,h))return!1;for(const g of _)if(!bm(g,p))return!1}return!0}(e,this.geometries);if(e.geometryType()==="LineString")return function(i,r){const a=[1/0,1/0,-1/0,-1/0],h=[1/0,1/0,-1/0,-1/0],u=i.canonicalID();if(!u)return!1;if(r.type==="Polygon"){const p=Xh(r.coordinates,h,u),_=gc(i.geometry(),a,h,u);if(!gl(a,h))return!1;for(const g of _)if(!ap(g,p))return!1}if(r.type==="MultiPolygon"){const p=ns(r.coordinates,h,u),_=gc(i.geometry(),a,h,u);if(!gl(a,h))return!1;for(const g of _)if(!wm(g,p))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}const yl={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},zr=1/298.257223563,Yh=zr*(2-zr),ha=Math.PI/180;class ua{static fromTile(e,i,r){const a=Math.PI*(1-2*(e+.5)/Math.pow(2,i)),h=Math.atan(.5*(Math.exp(a)-Math.exp(-a)))/ha;return new ua(h,r)}static get units(){return yl}constructor(e,i){if(e===void 0)throw new Error("No latitude given.");if(i&&!yl[i])throw new Error(`Unknown unit ${i}. Use one of: ${Object.keys(yl).join(", ")}`);const r=6378.137*ha*(i?yl[i]:1),a=Math.cos(e*ha),h=1/(1-Yh*(1-a*a)),u=Math.sqrt(h);this.kx=r*u*a,this.ky=r*u*h*(1-Yh)}distance(e,i){const r=wr(e[0]-i[0])*this.kx,a=(e[1]-i[1])*this.ky;return Math.sqrt(r*r+a*a)}bearing(e,i){const r=wr(i[0]-e[0])*this.kx;return Math.atan2(r,(i[1]-e[1])*this.ky)/ha}destination(e,i,r){const a=r*ha;return this.offset(e,Math.sin(a)*i,Math.cos(a)*i)}offset(e,i,r){return[e[0]+i/this.kx,e[1]+r/this.ky]}lineDistance(e){let i=0;for(let r=0;r<e.length-1;r++)i+=this.distance(e[r],e[r+1]);return i}area(e){let i=0;for(let r=0;r<e.length;r++){const a=e[r];for(let h=0,u=a.length,p=u-1;h<u;p=h++)i+=wr(a[h][0]-a[p][0])*(a[h][1]+a[p][1])*(r?-1:1)}return Math.abs(i)/2*this.kx*this.ky}along(e,i){let r=0;if(i<=0)return e[0];for(let a=0;a<e.length-1;a++){const h=e[a],u=e[a+1],p=this.distance(h,u);if(r+=p,r>i)return yc(h,u,(i-(r-p))/p)}return e[e.length-1]}pointToSegmentDistance(e,i,r){let[a,h]=i,u=wr(r[0]-a)*this.kx,p=(r[1]-h)*this.ky;if(u!==0||p!==0){const _=(wr(e[0]-a)*this.kx*u+(e[1]-h)*this.ky*p)/(u*u+p*p);_>1?(a=r[0],h=r[1]):_>0&&(a+=u/this.kx*_,h+=p/this.ky*_)}return u=wr(e[0]-a)*this.kx,p=(e[1]-h)*this.ky,Math.sqrt(u*u+p*p)}pointOnLine(e,i){let r=1/0,a=e[0][0],h=e[0][1],u=0,p=0;for(let _=0;_<e.length-1;_++){let g=e[_][0],v=e[_][1],b=wr(e[_+1][0]-g)*this.kx,w=(e[_+1][1]-v)*this.ky,E=0;b===0&&w===0||(E=(wr(i[0]-g)*this.kx*b+(i[1]-v)*this.ky*w)/(b*b+w*w),E>1?(g=e[_+1][0],v=e[_+1][1]):E>0&&(g+=b/this.kx*E,v+=w/this.ky*E)),b=wr(i[0]-g)*this.kx,w=(i[1]-v)*this.ky;const I=b*b+w*w;I<r&&(r=I,a=g,h=v,u=_,p=E)}return{point:[a,h],index:u,t:Math.max(0,Math.min(1,p))}}lineSlice(e,i,r){let a=this.pointOnLine(r,e),h=this.pointOnLine(r,i);if(a.index>h.index||a.index===h.index&&a.t>h.t){const g=a;a=h,h=g}const u=[a.point],p=a.index+1,_=h.index;!Kh(r[p],u[0])&&p<=_&&u.push(r[p]);for(let g=p+1;g<=_;g++)u.push(r[g]);return Kh(r[_],h.point)||u.push(h.point),u}lineSliceAlong(e,i,r){let a=0;const h=[];for(let u=0;u<r.length-1;u++){const p=r[u],_=r[u+1],g=this.distance(p,_);if(a+=g,a>e&&h.length===0&&h.push(yc(p,_,(e-(a-g))/g)),a>=i)return h.push(yc(p,_,(i-(a-g))/g)),h;a>e&&h.push(_)}return h}bufferPoint(e,i){const r=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-r,e[0]+a,e[1]+r]}bufferBBox(e,i){const r=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-r,e[2]+a,e[3]+r]}insideBBox(e,i){return wr(e[0]-i[0])>=0&&wr(e[0]-i[2])<=0&&e[1]>=i[1]&&e[1]<=i[3]}}function Kh(n,e){return n[0]===e[0]&&n[1]===e[1]}function yc(n,e,i){const r=wr(e[0]-n[0]);return[n[0]+r*i,n[1]+(e[1]-n[1])*i]}function wr(n){for(;n<-180;)n+=360;for(;n>180;)n-=360;return n}class xl{constructor(e=[],i=(r,a)=>r<a?-1:r>a?1:0){if(this.data=e,this.length=this.data.length,this.compare=i,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;const e=this.data[0],i=this.data.pop();return--this.length>0&&(this.data[0]=i,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:i,compare:r}=this,a=i[e];for(;e>0;){const h=e-1>>1,u=i[h];if(r(a,u)>=0)break;i[e]=u,e=h}i[e]=a}_down(e){const{data:i,compare:r}=this,a=this.length>>1,h=i[e];for(;e<a;){let u=1+(e<<1);const p=u+1;if(p<this.length&&r(i[p],i[u])<0&&(u=p),r(i[u],h)>=0)break;i[e]=i[u],e=u}i[e]=h}}var $e=8192;function Jh(n,e){return e.dist-n.dist}function Qh(n){const e=[1/0,1/0,-1/0,-1/0];if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==n[i])return!1;return!0}function vl(n){return n[1]-n[0]+1}function co(n,e){const i=n[1]>=n[0]&&n[1]<e;return i||console.warn("Distance Expression: Index is out of range"),i}function xc(n,e){if(n[0]>n[1])return[null,null];const i=vl(n);if(e){if(i===2)return[n,null];const r=Math.floor(i/2);return[[n[0],n[0]+r],[n[0]+r,n[1]]]}{if(i===1)return[n,null];const r=Math.floor(i/2)-1;return[[n[0],n[0]+r],[n[0]+r+1,n[1]]]}}function Fs(n,e){const i=[1/0,1/0,-1/0,-1/0];if(!co(e,n.length))return i;for(let r=e[0];r<=e[1];++r)_l(i,n[r]);return i}function vc(n){const e=[1/0,1/0,-1/0,-1/0];for(let i=0;i<n.length;++i)for(let r=0;r<n[i].length;++r)_l(e,n[i][r]);return e}function Po(n,e,i){if(Qh(n)||Qh(e))return NaN;let r=0,a=0;return n[2]<e[0]&&(r=e[0]-n[2]),n[0]>e[2]&&(r=n[0]-e[2]),n[1]>e[3]&&(a=n[1]-e[3]),n[3]<e[1]&&(a=e[1]-n[3]),i.distance([0,0],[r,a])}function eu(n){return 360*n-180}function bc(n){return 360/Math.PI*Math.atan(Math.exp((180-360*n)*Math.PI/180))-90}function bl(n,e,i=8192){const r=Math.pow(2,e.z),a=(n.y/i+e.y)/r;return[eu((n.x/i+e.x)/r),bc(a)]}function hp(n,e){const i=[];for(let r=0;r<n.length;++r)i.push(bl(n[r],e));return i}function up(n,e,i){const r=i.pointOnLine(e,n).point;return i.distance(n,r)}function dp(n,e,i,r,a){const h=i.slice(r[0],r[1]+1);let u=1/0;for(let p=e[0];p<=e[1];++p)if((u=Math.min(u,up(n[p],h,a)))===0)return 0;return u}function wc(n,e,i,r,a){const h=Math.min(a.pointToSegmentDistance(n,i,r),a.pointToSegmentDistance(e,i,r)),u=Math.min(a.pointToSegmentDistance(i,n,e),a.pointToSegmentDistance(r,n,e));return Math.min(h,u)}function da(n,e,i,r,a){if(!co(e,n.length)||!co(r,i.length))return NaN;let h=1/0;for(let u=e[0];u<e[1];++u)for(let p=r[0];p<r[1];++p){if(_c(n[u],n[u+1],i[p],i[p+1]))return 0;h=Math.min(h,wc(n[u],n[u+1],i[p],i[p+1],a))}return h}function Ft(n,e,i,r,a){if(!co(e,n.length)||!co(r,i.length))return NaN;let h=1/0;for(let u=e[0];u<=e[1];++u)for(let p=r[0];p<=r[1];++p)if((h=Math.min(h,a.distance(n[u],i[p])))===0)return h;return h}function Tm(n,e,i){if(Ls(n,e,!0))return 0;let r=1/0;for(const a of e){const h=a.length;if(h<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(a[0]!==a[h-1]&&(r=Math.min(r,i.pointToSegmentDistance(n,a[h-1],a[0])))===0||(r=Math.min(r,up(n,a,i)))===0)return r}return r}function Sm(n,e,i,r){if(!co(e,n.length))return NaN;for(let h=e[0];h<=e[1];++h)if(Ls(n[h],i,!0))return 0;let a=1/0;for(let h=e[0];h<e[1];++h)for(const u of i)for(let p=0,_=u.length,g=_-1;p<_;g=p++){if(_c(n[h],n[h+1],u[g],u[p]))return 0;a=Math.min(a,wc(n[h],n[h+1],u[g],u[p],r))}return a}function pp(n,e){for(const i of n)for(let r=0;r<=i.length-1;++r)if(Ls(i[r],e,!0))return!0;return!1}function fp(n,e,i,r=1/0){const a=vc(n),h=vc(e);if(r!==1/0&&Po(a,h,i)>=r)return r;if(gl(a,h)){if(pp(n,e))return 0}else if(pp(e,n))return 0;let u=r;for(const p of n)for(let _=0,g=p.length,v=g-1;_<g;v=_++)for(const b of e)for(let w=0,E=b.length,I=E-1;w<E;I=w++){if(_c(p[v],p[_],b[I],b[w]))return 0;u=Math.min(u,wc(p[v],p[_],b[I],b[w],i))}return u}function Tc(n,e,i,r,a,h,u){if(h===null||u===null)return;const p=Po(Fs(r,h),Fs(a,u),i);p<e&&n.push({dist:p,range1:h,range2:u})}function Si(n,e,i,r,a=1/0){let h=Math.min(r.distance(n[0],i[0][0]),a);if(h===0)return h;const u=new xl([{dist:0,range1:[0,n.length-1],range2:[0,0]}],Jh),p=e?50:100,_=vc(i);for(;u.length;){const g=u.pop();if(g.dist>=h)continue;const v=g.range1;if(vl(v)<=p){if(!co(v,n.length))return NaN;if(e){const b=Sm(n,v,i,r);if((h=Math.min(h,b))===0)return h}else for(let b=v[0];b<=v[1];++b){const w=Tm(n[b],i,r);if((h=Math.min(h,w))===0)return h}}else{const b=xc(v,e);if(b[0]!==null){const w=Po(Fs(n,b[0]),_,r);w<h&&u.push({dist:w,range1:b[0],range2:[0,0]})}if(b[1]!==null){const w=Po(Fs(n,b[1]),_,r);w<h&&u.push({dist:w,range1:b[1],range2:[0,0]})}}}return h}function mp(n,e,i,r,a,h=1/0){let u=Math.min(h,a.distance(n[0],i[0]));if(u===0)return u;const p=new xl([{dist:0,range1:[0,n.length-1],range2:[0,i.length-1]}],Jh),_=e?50:100,g=r?50:100;for(;p.length;){const v=p.pop();if(v.dist>=u)continue;const b=v.range1,w=v.range2;if(vl(b)<=_&&vl(w)<=g){if(!co(b,n.length)||!co(w,i.length))return NaN;if(e&&r?u=Math.min(u,da(n,b,i,w,a)):e||r?e&&!r?u=Math.min(u,dp(i,w,n,b,a)):!e&&r&&(u=Math.min(u,dp(n,b,i,w,a))):u=Math.min(u,Ft(n,b,i,w,a)),u===0)return u}else{const E=xc(b,e),I=xc(w,r);Tc(p,u,a,n,i,E[0],I[0]),Tc(p,u,a,n,i,E[0],I[1]),Tc(p,u,a,n,i,E[1],I[0]),Tc(p,u,a,n,i,E[1],I[1])}}return u}function tu(n,e,i,r,a=1/0){let h=a;const u=Fs(n,[0,n.length-1]);for(const p of i)if(!(h!==1/0&&Po(u,Fs(p,[0,p.length-1]),r)>=h)&&(h=Math.min(h,mp(n,e,p,!0,r,h)),h===0))return h;return h}function Sc(n,e,i,r,a=1/0){let h=a;const u=Fs(n,[0,n.length-1]);for(const p of i){if(h!==1/0&&Po(u,vc(p),r)>=h)continue;const _=Si(n,e,p,r,h);if(isNaN(_))return _;if((h=Math.min(h,_))===0)return h}return h}function iu(n){return n==="Point"||n==="MultiPoint"||n==="LineString"||n==="MultiLineString"||n==="Polygon"||n==="MultiPolygon"}class Os{constructor(e,i){this.type=tt,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'distance' expression requires either one argument, but found ' ${e.length-1} instead.`);if(Ds(e[1])){const r=e[1];if(r.type==="FeatureCollection"){for(let a=0;a<r.features.length;++a)if(iu(r.features[a].geometry.type))return new Os(r,r.features[a].geometry)}else if(r.type==="Feature"){if(iu(r.geometry.type))return new Os(r,r.geometry)}else if(iu(r.type))return new Os(r,r)}return i.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(e){const i=e.geometry(),r=e.canonicalID();if(i!=null&&r!=null){if(e.geometryType()==="Point")return function(a,h,u){const p=[];for(const g of a)for(const v of g)p.push(bl(v,h));const _=new ua(p[0][1],"meters");return u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString"?mp(p,!1,u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",_):u.type==="MultiLineString"?tu(p,!1,u.coordinates,_):u.type==="Polygon"||u.type==="MultiPolygon"?Sc(p,!1,u.type==="Polygon"?[u.coordinates]:u.coordinates,_):null}(i,r,this.geometries);if(e.geometryType()==="LineString")return function(a,h,u){const p=[];for(const g of a){const v=[];for(const b of g)v.push(bl(b,h));p.push(v)}const _=new ua(p[0][0][1],"meters");if(u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString")return tu(u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",p,_);if(u.type==="MultiLineString"){let g=1/0;for(let v=0;v<u.coordinates.length;v++){const b=tu(u.coordinates[v],!0,p,_,g);if(isNaN(b))return b;if((g=Math.min(g,b))===0)return g}return g}if(u.type==="Polygon"||u.type==="MultiPolygon"){let g=1/0;for(let v=0;v<p.length;v++){const b=Sc(p[v],!0,u.type==="Polygon"?[u.coordinates]:u.coordinates,_,g);if(isNaN(b))return b;if((g=Math.min(g,b))===0)return g}return g}return null}(i,r,this.geometries);if(e.geometryType()==="Polygon")return function(a,h,u){const p=[];for(const g of function(v){const b=v.length;if(b<=1)return[v];const w=[];let E,I;for(let P=0;P<b;P++){const z=ts(v[P]);z!==0&&(v[P].area=Math.abs(z),I===void 0&&(I=z<0),I===z<0?(E&&w.push(E),E=[v[P]]):E.push(v[P]))}return E&&w.push(E),w}(a)){const v=[];for(let b=0;b<g.length;++b)v.push(hp(g[b],h));p.push(v)}const _=new ua(p[0][0][0][1],"meters");if(u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString")return Sc(u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",p,_);if(u.type==="MultiLineString"){let g=1/0;for(let v=0;v<u.coordinates.length;v++){const b=Sc(u.coordinates[v],!0,p,_,g);if(isNaN(b))return b;if((g=Math.min(g,b))===0)return g}return g}return u.type==="Polygon"||u.type==="MultiPolygon"?function(g,v,b){let w=1/0;for(const E of g)for(const I of v){const P=fp(E,I,b,w);if(isNaN(P))return P;if((w=Math.min(w,P))===0)return w}return w}(u.type==="Polygon"?[u.coordinates]:u.coordinates,p,_):null}(i,r,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requires valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}function pa(n){if(n instanceof Dn&&(n.name==="get"&&n.args.length===1||n.name==="feature-state"||n.name==="has"&&n.args.length===1||n.name==="properties"||n.name==="geometry-type"||n.name==="id"||/^filter-/.test(n.name))||n instanceof rs||n instanceof Os)return!1;if(n instanceof ma)return n.featureConstant;let e=!0;return n.eachChild(i=>{e&&!pa(i)&&(e=!1)}),e}function wl(n){if(n instanceof Dn&&n.name==="feature-state")return!1;let e=!0;return n.eachChild(i=>{e&&!wl(i)&&(e=!1)}),e}function fa(n,e){if(n instanceof Dn&&e.indexOf(n.name)>=0)return!1;let i=!0;return n.eachChild(r=>{i&&!fa(r,e)&&(i=!1)}),i}function _p(n,e,i){return[n,e,i].filter(Boolean).join("")}function nu(n,e){switch(n){case"string":return ao(e);case"number":return+e;case"boolean":return!!e;case"color":return Yt.parse(e);case"formatted":return qn.fromString(ao(e));case"resolvedImage":return vn.build(ao(e))}return e}function gp(n,e,i,r){return r!==void 0&&(n=r*Math.round(n/r)),e!==void 0&&n<e&&(n=e),i!==void 0&&n>i&&(n=i),n}class ma{constructor(e,i,r,a=!1){this.type=e,this.key=i,this.scope=r,this.featureConstant=a}static parse(e,i){let r=i.expectedType;if(r==null&&(r=Kt),e.length<2||e.length>3)return i.error("Invalid number of arguments for 'config' expression.");const a=i.parse(e[1],1);if(!(a instanceof Co))return i.error("Key name of 'config' expression must be a string literal.");let h,u=!0;const p=ao(a.value);if(e.length>=3){const _=i.parse(e[2],2);if(!(_ instanceof Co))return i.error("Scope of 'config' expression must be a string literal.");h=ao(_.value)}if(i.options){const _=_p(p,h,i._scope),g=i.options.get(_);g&&(u=pa(g.value||g.default))}return new ma(r,p,h,u)}evaluate(e){const i=_p(this.key,this.scope,e.scope),r=e.getConfig(i);if(!r)return null;const{type:a,value:h,values:u,minValue:p,maxValue:_,stepValue:g}=r,v=r.default.evaluate(e);let b=v;if(h){const w=e.scope;e.scope=(w||"").split("").slice(1).join(""),b=h.evaluate(e),e.scope=w}return a&&(b=nu(a,b)),b===void 0||p===void 0&&_===void 0&&g===void 0||(typeof b=="number"?b=gp(b,p,_,g):Array.isArray(b)&&(b=b.map(w=>typeof w=="number"?gp(w,p,_,g):w))),h!==void 0&&b!==void 0&&u&&!u.includes(b)&&(b=v,a&&(b=nu(a,b))),(a&&a!==this.type||b!==void 0&&!dc(Wi(b),this.type))&&(b=nu(this.type.kind,b)),b}eachChild(){}outputDefined(){return!1}serialize(){const e=["config",this.key];return this.scope&&e.concat(this.scope),e}}class Ec{constructor(e,i){this.type=i.type,this.name=e,this.boundExpression=i}static parse(e,i){if(e.length!==2||typeof e[1]!="string")return i.error("'var' expression requires exactly one string literal argument.");const r=e[1];return i.scope.has(r)?new Ec(r,i.scope.get(r)):i.error(`Unknown variable "${r}". Make sure "${r}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class Ic{constructor(e,i=[],r,a=new Ko,h=[],u,p,_){this.registry=e,this.path=i,this.key=i.map(g=>typeof g=="string"?`['${g}']`:`[${g}]`).join(""),this.scope=a,this.errors=h,this.expectedType=r,this._scope=u,this.options=p,this.iconImageUseTheme=_}parse(e,i,r,a,h={}){return i||r?this.concat(i,null,r,a)._parse(e,h):this._parse(e,h)}parseObjectValue(e,i,r,a,h,u={}){return this.concat(i,r,a,h)._parse(e,u)}_parse(e,i){function r(a,h,u){return u==="assert"?new $n(h,[a]):u==="coerce"?new Hr(h,[a]):a}if(e!==null&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"||(e=["literal",e]),Array.isArray(e)){if(e.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const a=typeof e[0]=="string"?this.registry[e[0]]:void 0;if(a){let h=a.parse(e,this);if(!h)return null;if(this.expectedType){const u=this.expectedType,p=h.type;if(u.kind!=="string"&&u.kind!=="number"&&u.kind!=="boolean"&&u.kind!=="object"&&u.kind!=="array"||p.kind!=="value")if(u.kind!=="color"&&u.kind!=="formatted"&&u.kind!=="resolvedImage"||p.kind!=="value"&&p.kind!=="string"){if(this.checkSubtype(u,p))return null}else h=r(h,u,i.typeAnnotation||"coerce");else h=r(h,u,i.typeAnnotation||"assert")}if(!(h instanceof Co)&&h.type.kind!=="resolvedImage"&&ru(h)){const u=new fc(this._scope,this.options,this.iconImageUseTheme);try{h=new Co(h.type,h.evaluate(u))}catch(p){return this.error(p.message),null}}return h}return Hr.parse(["to-array",e],this)}return this.error(e===void 0?"'undefined' value invalid. Use null instead.":typeof e=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,i,r,a){let h=typeof e=="number"?this.path.concat(e):this.path;h=typeof i=="string"?h.concat(i):h;const u=a?this.scope.concat(a):this.scope;return new Ic(this.registry,h,r||null,u,this.errors,this._scope,this.options,this.iconImageUseTheme)}error(e,...i){const r=`${this.key}${i.map(a=>`[${a}]`).join("")}`;this.errors.push(new ar(r,e))}checkSubtype(e,i){const r=pl(e,i);return r&&this.error(r),r}}function ru(n){if(n instanceof Ec)return ru(n.boundExpression);if(n instanceof Dn&&n.name==="error"||n instanceof ca||n instanceof rs||n instanceof Os||n instanceof ma)return!1;const e=n instanceof Hr||n instanceof $n;let i=!0;return n.eachChild(r=>{i=e?i&&ru(r):i&&r instanceof Co}),!!i&&pa(n)&&fa(n,["zoom","heatmap-density","worldview","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed","is-active-floor"])}function Ac(n,e){const i=n.length-1;let r,a,h=0,u=i,p=0;for(;h<=u;)if(p=Math.floor((h+u)/2),r=n[p],a=n[p+1],r<=e){if(p===i||e<a)return p;h=p+1}else{if(!(r>e))throw new Qi("Input is not a number.");u=p-1}return 0}class Tl{constructor(e,i,r){this.type=e,this.input=i,this.labels=[],this.outputs=[];for(const[a,h]of r)this.labels.push(a),this.outputs.push(h)}static parse(e,i){if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return i.error("Expected an even number of arguments.");const r=i.parse(e[1],1,tt);if(!r)return null;const a=[];let h=null;i.expectedType&&i.expectedType.kind!=="value"&&(h=i.expectedType);for(let u=1;u<e.length;u+=2){const p=u===1?-1/0:e[u],_=e[u+1],g=u,v=u+1;if(typeof p!="number")return i.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',g);if(a.length&&a[a.length-1][0]>=p)return i.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',g);const b=i.parse(_,v,h);if(!b)return null;h=h||b.type,a.push([p,b])}return new Tl(h,r,a)}evaluate(e){const i=this.labels,r=this.outputs;if(i.length===1)return r[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return r[0].evaluate(e);const h=i.length;return a>=i[h-1]?r[h-1].evaluate(e):r[Ac(i,a)].evaluate(e)}eachChild(e){e(this.input);for(const i of this.outputs)e(i)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let i=0;i<this.labels.length;i++)i>0&&e.push(this.labels[i]),e.push(this.outputs[i].serialize());return e}}const yp=.95047,xp=1.08883,vp=4/29,_a=6/29,bp=3*_a*_a,Em=_a*_a*_a,Im=Math.PI/180,Am=180/Math.PI;function ou(n){return n>Em?Math.pow(n,1/3):n/bp+vp}function su(n){return n>_a?n*n*n:bp*(n-vp)}function au(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function lu(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function wp(n){const e=lu(n.r),i=lu(n.g),r=lu(n.b),a=ou((.4124564*e+.3575761*i+.1804375*r)/yp),h=ou((.2126729*e+.7151522*i+.072175*r)/1);return{l:116*h-16,a:500*(a-h),b:200*(h-ou((.0193339*e+.119192*i+.9503041*r)/xp)),alpha:n.a}}function Tp(n){let e=(n.l+16)/116,i=isNaN(n.a)?e:e+n.a/500,r=isNaN(n.b)?e:e-n.b/200;return e=1*su(e),i=yp*su(i),r=xp*su(r),new Yt(au(3.2404542*i-1.5371385*e-.4985314*r),au(-.969266*i+1.8760108*e+.041556*r),au(.0556434*i-.2040259*e+1.0572252*r),n.alpha)}function cu(n,e,i){const r=e-n;return n+i*(r>180||r<-180?r-360*Math.round(r/360):r)}const os={forward:wp,reverse:Tp,interpolate:function(n,e,i){return{l:ut(n.l,e.l,i),a:ut(n.a,e.a,i),b:ut(n.b,e.b,i),alpha:ut(n.alpha,e.alpha,i)}}},ga={forward:function(n){const{l:e,a:i,b:r}=wp(n),a=Math.atan2(r,i)*Am;return{h:a<0?a+360:a,c:Math.sqrt(i*i+r*r),l:e,alpha:n.a}},reverse:function(n){const e=n.h*Im,i=n.c;return Tp({l:n.l,a:Math.cos(e)*i,b:Math.sin(e)*i,alpha:n.alpha})},interpolate:function(n,e,i){return{h:cu(n.h,e.h,i),c:ut(n.c,e.c,i),l:ut(n.l,e.l,i),alpha:ut(n.alpha,e.alpha,i)}}};var Sp=Object.freeze({__proto__:null,hcl:ga,lab:os});class Tr{constructor(e,i,r,a,h){this.type=e,this.operator=i,this.interpolation=r,this.input=a,this.labels=[],this.outputs=[];for(const[u,p]of h)this.labels.push(u),this.outputs.push(p)}static interpolationFactor(e,i,r,a){let h=0;if(e.name==="exponential")h=hu(i,e.base,r,a);else if(e.name==="linear")h=hu(i,1,r,a);else if(e.name==="cubic-bezier"){const u=e.controlPoints;h=new ra(u[0],u[1],u[2],u[3]).solve(hu(i,1,r,a))}return h}static parse(e,i){let[r,a,h,...u]=e;if(!Array.isArray(a)||a.length===0)return i.error("Expected an interpolation type expression.",1);if(a[0]==="linear")a={name:"linear"};else if(a[0]==="exponential"){const g=a[1];if(typeof g!="number")return i.error("Exponential interpolation requires a numeric base.",1,1);a={name:"exponential",base:g}}else{if(a[0]!=="cubic-bezier")return i.error(`Unknown interpolation type ${String(a[0])}`,1,0);{const g=a.slice(1);if(g.length!==4||g.some(v=>typeof v!="number"||v<0||v>1))return i.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);a={name:"cubic-bezier",controlPoints:g}}}if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length-1>3&&(e.length-1)%2!=0)return i.error("Expected an even number of arguments.");if(h=i.parse(h,2,tt),!h)return null;const p=[];let _=null;r==="interpolate-hcl"||r==="interpolate-lab"?_=Rn:i.expectedType&&i.expectedType.kind!=="value"&&(_=i.expectedType);for(let g=0;g<u.length;g+=2){const v=u[g],b=u[g+1],w=g+3,E=g+4;if(typeof v!="number")return i.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',w);if(p.length&&p[p.length-1][0]>=v)return i.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',w);const I=i.parse(b,E,_);if(!I)return null;_=_||I.type,p.push([v,I])}return _.kind==="number"||_.kind==="color"||_.kind==="array"&&_.itemType.kind==="number"&&typeof _.N=="number"?new Tr(_,r,a,h,p):i.error(`Type ${Zi(_)} is not interpolatable.`)}evaluate(e){const i=this.labels,r=this.outputs;if(i.length===1)return r[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return r[0].evaluate(e);const h=i.length;if(a>=i[h-1])return r[h-1].evaluate(e);const u=Ac(i,a),p=Tr.interpolationFactor(this.interpolation,a,i[u],i[u+1]),_=r[u].evaluate(e),g=r[u+1].evaluate(e);return this.operator==="interpolate"?ul[this.type.kind.toLowerCase()](_,g,p):this.operator==="interpolate-hcl"?ga.reverse(ga.interpolate(ga.forward(_),ga.forward(g),p)):os.reverse(os.interpolate(os.forward(_),os.forward(g),p))}eachChild(e){e(this.input);for(const i of this.outputs)e(i)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;e=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier",...this.interpolation.controlPoints];const i=[this.operator,e,this.input.serialize()];for(let r=0;r<this.labels.length;r++)i.push(this.labels[r],this.outputs[r].serialize());return i}}function hu(n,e,i,r){const a=r-i,h=n-i;return a===0?0:e===1?h/a:(Math.pow(e,h)-1)/(Math.pow(e,a)-1)}class Sl{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expectected at least one argument.");let r=null;const a=i.expectedType;a&&a.kind!=="value"&&(r=a);const h=[];for(const p of e.slice(1)){const _=i.parse(p,1+h.length,r,void 0,{typeAnnotation:"omit"});if(!_)return null;r=r||_.type,h.push(_)}const u=a&&h.some(p=>pl(a,p.type));return new Sl(u?Kt:r,h)}evaluate(e){let i,r=null,a=0;for(const h of this.args){if(a++,r=h.evaluate(e),r&&r instanceof vn&&!r.available&&(i||(i=r),r=null,a===this.args.length))return i;if(r!==null)break}return r}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(i=>{e.push(i.serialize())}),e}}class El{constructor(e,i){this.type=i.type,this.bindings=[].concat(e),this.result=i}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const i of this.bindings)e(i[1]);e(this.result)}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const r=[];for(let h=1;h<e.length-1;h+=2){const u=e[h];if(typeof u!="string")return i.error(`Expected string, but found ${typeof u} instead.`,h);if(/[^a-zA-Z0-9_]/.test(u))return i.error("Variable names must contain only alphanumeric characters or '_'.",h);const p=i.parse(e[h+1],h+1);if(!p)return null;r.push([u,p])}const a=i.parse(e[e.length-1],e.length-1,i.expectedType,r);return a?new El(r,a):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[i,r]of this.bindings)e.push(i,r.serialize());return e.push(this.result.serialize()),e}}class ss{constructor(e,i,r){this.type=e,this.index=i,this.input=r}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,tt),a=i.parse(e[2],2,Mn(i.expectedType||Kt));return r&&a?new ss(a.type.itemType,r,a):null}evaluate(e){const i=this.index.evaluate(e),r=this.input.evaluate(e);if(i<0)throw new Qi("Array index out of bounds: negative index");if(i>=r.length)throw new Qi("Array index out of bounds: index exceeds array size");if(i!==Math.floor(i))throw new Qi("Array index must be an integer. Use at-interpolated for fractional indices");return r[i]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class Mc{constructor(e,i,r){this.type=e,this.index=i,this.input=r}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,tt),a=i.parse(e[2],2,Mn(i.expectedType||Kt));return r&&a?new Mc(a.type.itemType,r,a):null}evaluate(e){const i=this.index.evaluate(e),r=this.input.evaluate(e);if(i<0)throw new Qi(`Array index out of bounds: ${i} < 0.`);if(i>r.length-1)throw new Qi(`Array index out of bounds: ${i} > ${r.length-1}.`);if(i===Math.floor(i))return r[i];const a=Math.floor(i),h=Math.ceil(i),u=r[a],p=r[h];if(typeof u!="number"||typeof p!="number")throw new Qi(`Cannot interpolate between non-number values at index ${i}.`);const _=i-a;return u*(1-_)+p*_}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at-interpolated",this.index.serialize(),this.input.serialize()]}}class Cc{constructor(e,i){this.type=Wt,this.needle=e,this.haystack=i}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Kt),a=i.parse(e[2],2,Kt);return r&&a?$h(r.type,[Wt,Zt,tt,Rs,Kt])?new Cc(r,a):i.error(`Expected first argument to be of type boolean, string, number or null, but found ${Zi(r.type)} instead`):null}evaluate(e){const i=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(r==null)return!1;if(!fl(i,["boolean","string","number","null"]))throw new Qi(`Expected first argument to be of type boolean, string, number or null, but found ${Zi(Wi(i))} instead.`);if(!fl(r,["string","array"]))throw new Qi(`Expected second argument to be of type array or string, but found ${Zi(Wi(r))} instead.`);return r.indexOf(i)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class Pc{constructor(e,i,r){this.type=tt,this.needle=e,this.haystack=i,this.fromIndex=r}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Kt),a=i.parse(e[2],2,Kt);if(!r||!a)return null;if(!$h(r.type,[Wt,Zt,tt,Rs,Kt]))return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${Zi(r.type)} instead`);if(e.length===4){const h=i.parse(e[3],3,tt);return h?new Pc(r,a,h):null}return new Pc(r,a)}evaluate(e){const i=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(!fl(i,["boolean","string","number","null"]))throw new Qi(`Expected first argument to be of type boolean, string, number or null, but found ${Zi(Wi(i))} instead.`);if(!fl(r,["string","array"]))throw new Qi(`Expected second argument to be of type array or string, but found ${Zi(Wi(r))} instead.`);if(this.fromIndex){const a=this.fromIndex.evaluate(e);return r.indexOf(i,a)}return r.indexOf(i)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class Il{constructor(e,i,r,a,h,u){this.inputType=e,this.type=i,this.input=r,this.cases=a,this.outputs=h,this.otherwise=u}static parse(e,i){if(e.length<5)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return i.error("Expected an even number of arguments.");let r,a;i.expectedType&&i.expectedType.kind!=="value"&&(a=i.expectedType);const h={},u=[];for(let g=2;g<e.length-1;g+=2){let v=e[g];const b=e[g+1];Array.isArray(v)||(v=[v]);const w=i.concat(g);if(v.length===0)return w.error("Expected at least one branch label.");for(const I of v){if(typeof I!="number"&&typeof I!="string")return w.error("Branch labels must be numbers or strings.");if(typeof I=="number"&&Math.abs(I)>Number.MAX_SAFE_INTEGER)return w.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof I=="number"&&Math.floor(I)!==I)return w.error("Numeric branch labels must be integer values.");if(r){if(w.checkSubtype(r,Wi(I)))return null}else r=Wi(I);if(h[String(I)]!==void 0)return w.error("Branch labels must be unique.");h[String(I)]=u.length}const E=i.parse(b,g,a);if(!E)return null;a=a||E.type,u.push(E)}const p=i.parse(e[1],1,Kt);if(!p)return null;const _=i.parse(e[e.length-1],e.length-1,a);return _?p.type.kind!=="value"&&i.concat(1).checkSubtype(r,p.type)?null:new Il(r,a,p,h,u,_):null}evaluate(e){const i=this.input.evaluate(e);return(dc(Wi(i),this.inputType)&&this.outputs[this.cases[i]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],i=Object.keys(this.cases).sort(),r=[],a={};for(const u of i){const p=a[this.cases[u]];p===void 0?(a[this.cases[u]]=r.length,r.push([this.cases[u],[u]])):r[p][1].push(u)}const h=u=>this.inputType.kind==="number"?Number(u):u;for(const[u,p]of r)e.push(p.length===1?h(p[0]):p.map(h)),e.push(this.outputs[u].serialize());return e.push(this.otherwise.serialize()),e}}class Al{constructor(e,i,r){this.type=e,this.branches=i,this.otherwise=r}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return i.error("Expected an odd number of arguments.");let r;i.expectedType&&i.expectedType.kind!=="value"&&(r=i.expectedType);const a=[];for(let u=1;u<e.length-1;u+=2){const p=i.parse(e[u],u,Wt);if(!p)return null;const _=i.parse(e[u+1],u+1,r);if(!_)return null;a.push([p,_]),r=r||_.type}const h=i.parse(e[e.length-1],e.length-1,r);return h?new Al(r,a,h):null}evaluate(e){for(const[i,r]of this.branches)if(i.evaluate(e))return r.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[i,r]of this.branches)e(i),e(r);e(this.otherwise)}outputDefined(){return this.branches.every(([e,i])=>i.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(i=>{e.push(i.serialize())}),e}}class ya{constructor(e,i,r,a){this.type=e,this.input=i,this.beginIndex=r,this.endIndex=a}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Kt),a=i.parse(e[2],2,tt);if(!r||!a)return null;if(!$h(r.type,[Mn(Kt),Zt,Kt]))return i.error(`Expected first argument to be of type array or string, but found ${Zi(r.type)} instead`);if(e.length===4){const h=i.parse(e[3],3,tt);return h?new ya(r.type,r,a,h):null}return new ya(r.type,r,a)}evaluate(e){const i=this.input.evaluate(e),r=this.beginIndex.evaluate(e);if(!fl(i,["string","array"]))throw new Qi(`Expected first argument to be of type array or string, but found ${Zi(Wi(i))} instead.`);if(this.endIndex){const a=this.endIndex.evaluate(e);return i.slice(r,a)}return i.slice(r)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}class uu{constructor(e,i){this.type=Mn(Zt),this.str=e,this.delimiter=i}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Zt),a=i.parse(e[2],2,Zt);return r&&a?new uu(r,a):void 0}evaluate(e){const i=this.str.evaluate(e),r=this.delimiter.evaluate(e);return i.split(r)}eachChild(e){e(this.str),e(this.delimiter)}outputDefined(){return!1}serialize(){return["split",this.str.serialize(),this.delimiter.serialize()]}}function Ep(n,e){return n==="=="||n==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function du(n,e,i,r){return r.compare(e,i)===0}function Bs(n,e,i){const r=n!=="=="&&n!=="!=";return class Ov{constructor(h,u,p){this.type=Wt,this.lhs=h,this.rhs=u,this.collator=p,this.hasUntypedArgument=h.type.kind==="value"||u.type.kind==="value"}static parse(h,u){if(h.length!==3&&h.length!==4)return u.error("Expected two or three arguments.");const p=h[0];let _=u.parse(h[1],1,Kt);if(!_)return null;if(!Ep(p,_.type))return u.concat(1).error(`"${p}" comparisons are not supported for type '${Zi(_.type)}'.`);let g=u.parse(h[2],2,Kt);if(!g)return null;if(!Ep(p,g.type))return u.concat(2).error(`"${p}" comparisons are not supported for type '${Zi(g.type)}'.`);if(_.type.kind!==g.type.kind&&_.type.kind!=="value"&&g.type.kind!=="value")return u.error(`Cannot compare types '${Zi(_.type)}' and '${Zi(g.type)}'.`);r&&(_.type.kind==="value"&&g.type.kind!=="value"?_=new $n(g.type,[_]):_.type.kind!=="value"&&g.type.kind==="value"&&(g=new $n(_.type,[g])));let v=null;if(h.length===4){if(_.type.kind!=="string"&&g.type.kind!=="string"&&_.type.kind!=="value"&&g.type.kind!=="value")return u.error("Cannot use collator to compare non-string types.");if(v=u.parse(h[3],3,hc),!v)return null}return new Ov(_,g,v)}evaluate(h){const u=this.lhs.evaluate(h),p=this.rhs.evaluate(h);if(r&&this.hasUntypedArgument){const _=Wi(u),g=Wi(p);if(_.kind!==g.kind||_.kind!=="string"&&_.kind!=="number")throw new Qi(`Expected arguments for "${n}" to be (string, string) or (number, number), but found (${_.kind}, ${g.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const _=Wi(u),g=Wi(p);if(_.kind!=="string"||g.kind!=="string")return e(h,u,p)}return this.collator?i(h,u,p,this.collator.evaluate(h)):e(h,u,p)}eachChild(h){h(this.lhs),h(this.rhs),this.collator&&h(this.collator)}outputDefined(){return!0}serialize(){const h=[n];return this.eachChild(u=>{h.push(u.serialize())}),h}}}const Mm=Bs("==",function(n,e,i){return e===i},du),Cm=Bs("!=",function(n,e,i){return e!==i},function(n,e,i,r){return!du(0,e,i,r)}),Pm=Bs("<",function(n,e,i){return e<i},function(n,e,i,r){return r.compare(e,i)<0}),Ip=Bs(">",function(n,e,i){return e>i},function(n,e,i,r){return r.compare(e,i)>0}),Ap=Bs("<=",function(n,e,i){return e<=i},function(n,e,i,r){return r.compare(e,i)<=0}),Rc=Bs(">=",function(n,e,i){return e>=i},function(n,e,i,r){return r.compare(e,i)>=0});class pu{constructor(e,i,r,a,h,u){this.type=Zt,this.number=e,this.locale=i,this.currency=r,this.unit=a,this.minFractionDigits=h,this.maxFractionDigits=u}static parse(e,i){if(e.length!==3)return i.error("Expected two arguments.");const r=i.parse(e[1],1,tt);if(!r)return null;const a=e[2];if(typeof a!="object"||Array.isArray(a))return i.error("NumberFormat options argument must be an object.");let h=null;if(a.locale&&(h=i.parseObjectValue(a.locale,2,"locale",Zt),!h))return null;let u=null;if(a.currency&&(u=i.parseObjectValue(a.currency,2,"currency",Zt),!u))return null;let p=null;if(a.unit&&(p=i.parseObjectValue(a.unit,2,"unit",Zt),!p))return null;let _=null;if(a["min-fraction-digits"]&&(_=i.parseObjectValue(a["min-fraction-digits"],2,"min-fraction-digits",tt),!_))return null;let g=null;return a["max-fraction-digits"]&&(g=i.parseObjectValue(a["max-fraction-digits"],2,"max-fraction-digits",tt),!g)?null:new pu(r,h,u,p,_,g)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class Dc{constructor(e){this.type=tt,this.input=e}static parse(e,i){if(e.length!==2)return i.error(`Expected 1 argument, but found ${e.length-1} instead.`);const r=i.parse(e[1],1);return r?r.type.kind!=="array"&&r.type.kind!=="string"&&r.type.kind!=="value"?i.error(`Expected argument of type string or array, but found ${Zi(r.type)} instead.`):new Dc(r):null}evaluate(e){const i=this.input.evaluate(e);if(typeof i=="string"||Array.isArray(i))return i.length;throw new Qi(`Expected value to be of type string or array, but found ${Zi(Wi(i))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(i=>{e.push(i.serialize())}),e}}function Mp(n){return function(){n=1831565813+(n|=0)|0;let e=Math.imul(n^n>>>15,1|n);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const xa={"==":Mm,"!=":Cm,">":Ip,"<":Pm,">=":Rc,"<=":Ap,array:$n,at:ss,"at-interpolated":Mc,boolean:$n,case:Al,coalesce:Sl,collator:ca,format:xt,image:rt,in:Cc,"index-of":Pc,interpolate:Tr,"interpolate-hcl":Tr,"interpolate-lab":Tr,length:Dc,let:El,literal:Co,match:Il,number:$n,"number-format":pu,object:$n,slice:ya,step:Tl,string:$n,"to-boolean":Hr,"to-color":Hr,"to-number":Hr,"to-string":Hr,var:Ec,within:rs,distance:Os,config:ma,split:uu};function fu(n,[e,i,r,a]){e=e.evaluate(n),i=i.evaluate(n),r=r.evaluate(n);const h=a?a.evaluate(n):1,u=np(e,i,r,h);if(u)throw new Qi(u);return new Yt(e/255,i/255,r/255,h)}function mu(n,[e,i,r,a]){e=e.evaluate(n),i=i.evaluate(n),r=r.evaluate(n);const h=a?a.evaluate(n):1,u=function(g,v,b,w){return typeof g=="number"&&g>=0&&g<=360?typeof v=="number"&&v>=0&&v<=100&&typeof b=="number"&&b>=0&&b<=100?w===void 0||typeof w=="number"&&w>=0&&w<=1?null:`Invalid hsla value [${[g,v,b,w].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof w=="number"?[g,v,b,w]:[g,v,b]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof w=="number"?[g,v,b,w]:[g,v,b]).join(", ")}]: 'h' must be between 0 and 360.`}(e,i,r,h);if(u)throw new Qi(u);const p=`hsla(${e}, ${i}%, ${r}%, ${h})`,_=Yt.parse(p);if(!_)throw new Qi(`Failed to parse HSLA color: ${p}`);return _}function Cp(n,e){return n in e}function _u(n,e){const i=e[n];return i===void 0?null:i}function as(n){return{type:n}}function zc(n){if(n instanceof ma)return new Set([n.key]);let e=new Set;return n.eachChild(i=>{e=new Set([...e,...zc(i)])}),e}function ks(n){if(n instanceof Dn&&n.name==="is-active-floor")return!0;let e=!1;return n.eachChild(i=>{!e&&ks(i)&&(e=!0)}),e}function Pp(n){return{result:"success",value:n}}function ls(n){return{result:"error",value:n}}function gu(n,e){return!!n&&!!n.parameters&&n.parameters.indexOf(e)>-1}function Lc(n){return n["property-type"]==="data-driven"}function Rp(n){return gu(n.expression,"measure-light")}function Fc(n){return gu(n.expression,"zoom")}function yu(n){return!!n.expression&&n.expression.interpolated}function xu(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Dp(n){return n}function vu(n,e){const i=e.type==="color",r=n.stops&&typeof n.stops[0][0]=="object",a=r||!(r||n.property!==void 0),h=n.type||(yu(e)?"exponential":"interval");if(i&&((n=Object.assign({},n)).stops&&(n.stops=n.stops.map(g=>[g[0],Yt.parse(g[1])])),n.default=Yt.parse(n.default?n.default:e.default)),n.colorSpace&&n.colorSpace!=="rgb"&&!Sp[n.colorSpace])throw new Error(`Unknown color space: ${n.colorSpace}`);let u,p,_;if(h==="exponential")u=Ns;else if(h==="interval")u=Rm;else if(h==="categorical"){u=zp,p=Object.create(null);for(const g of n.stops)p[g[0]]=g[1];_=typeof n.stops[0][0]}else{if(h!=="identity")throw new Error(`Unknown function type "${h}"`);u=Dm}if(r){const g={},v=[];for(let E=0;E<n.stops.length;E++){const I=n.stops[E],P=I[0].zoom;g[P]===void 0&&(g[P]={zoom:P,type:n.type,property:n.property,default:n.default,stops:[]},v.push(P)),g[P].stops.push([I[0].value,I[1]])}const b=[];for(const E of v)b.push([g[E].zoom,vu(g[E],e)]);const w={name:"linear"};return{kind:"composite",interpolationType:w,interpolationFactor:Tr.interpolationFactor.bind(void 0,w),zoomStops:b.map(E=>E[0]),evaluate:({zoom:E},I)=>Ns({stops:b,base:n.base},e,E).evaluate(E,I)}}if(a){const g=h==="exponential"?{name:"exponential",base:n.base!==void 0?n.base:1}:null;return{kind:"camera",interpolationType:g,interpolationFactor:Tr.interpolationFactor.bind(void 0,g),zoomStops:n.stops.map(v=>v[0]),evaluate:({zoom:v})=>u(n,e,v,p,_)}}return{kind:"source",evaluate(g,v){const b=v&&v.properties?v.properties[n.property]:void 0;return b===void 0?Ml(n.default,e.default):u(n,e,b,p,_)}}}function Ml(n,e,i){return n!==void 0?n:e!==void 0?e:i!==void 0?i:void 0}function zp(n,e,i,r,a){return Ml(typeof i===a?r[i]:void 0,n.default,e.default)}function Rm(n,e,i){if(!la(i))return Ml(n.default,e.default);const r=n.stops.length;if(r===1||i<=n.stops[0][0])return n.stops[0][1];if(i>=n.stops[r-1][0])return n.stops[r-1][1];const a=Ac(n.stops.map(h=>h[0]),i);return n.stops[a][1]}function Ns(n,e,i){const r=n.base!==void 0?n.base:1;if(!la(i))return Ml(n.default,e.default);const a=n.stops.length;if(a===1||i<=n.stops[0][0])return n.stops[0][1];if(i>=n.stops[a-1][0])return n.stops[a-1][1];const h=Ac(n.stops.map(v=>v[0]),i),u=function(v,b,w,E){const I=E-w,P=v-w;return I===0?0:b===1?P/I:(Math.pow(b,P)-1)/(Math.pow(b,I)-1)}(i,r,n.stops[h][0],n.stops[h+1][0]),p=n.stops[h][1],_=n.stops[h+1][1];let g=ul[e.type]||Dp;if(n.colorSpace&&n.colorSpace!=="rgb"){const v=Sp[n.colorSpace];g=(b,w)=>v.reverse(v.interpolate(v.forward(b),v.forward(w),u))}return typeof p.evaluate=="function"?{evaluate(...v){const b=p.evaluate.apply(void 0,v),w=_.evaluate.apply(void 0,v);if(b!==void 0&&w!==void 0)return g(b,w,u)}}:g(p,_,u)}function Dm(n,e,i){return e.type==="color"?i=Yt.parse(i):e.type==="formatted"?i=qn.fromString(i.toString()):e.type==="resolvedImage"?i=vn.build(i.toString()):aa(i)===e.type||e.type==="enum"&&e.values[i]||(i=void 0),Ml(i,n.default,e.default)}Dn.register(xa,{error:[{kind:"error"},[Zt],(n,[e])=>{throw new Qi(e.evaluate(n))}],typeof:[Zt,[Kt],(n,[e])=>Zi(Wi(e.evaluate(n)))],"to-rgba":[Mn(tt,4),[Rn],(n,[e])=>e.evaluate(n).toNonPremultipliedRenderColor(null).toArray()],"to-hsla":[Mn(tt,4),[Rn],(n,[e])=>e.evaluate(n).toNonPremultipliedRenderColor(null).toHslaArray()],rgb:[Rn,[tt,tt,tt],fu],rgba:[Rn,[tt,tt,tt,tt],fu],hsl:[Rn,[tt,tt,tt],mu],hsla:[Rn,[tt,tt,tt,tt],mu],has:{type:Wt,overloads:[[[Zt],(n,[e])=>Cp(e.evaluate(n),n.properties())],[[Zt,Jo],(n,[e,i])=>Cp(e.evaluate(n),i.evaluate(n))]]},get:{type:Kt,overloads:[[[Zt],(n,[e])=>_u(e.evaluate(n),n.properties())],[[Zt,Jo],(n,[e,i])=>_u(e.evaluate(n),i.evaluate(n))]]},"feature-state":[Kt,[Zt],(n,[e])=>_u(e.evaluate(n),n.featureState||{})],properties:[Jo,[],n=>n.properties()],"geometry-type":[Zt,[],n=>n.geometryType()],worldview:[Zt,[],n=>n.globals.worldview||""],"is-active-floor":[Wt,as(Zt),(n,e)=>{if(!(n.globals&&n.globals.activeFloors&&n.globals.activeFloors.size>0))return!1;if(e.length===0)return!0;const i=n.globals.activeFloors;return e.some(r=>{const a=r.evaluate(n);return i.has(a)})}],id:[Kt,[],n=>n.id()],zoom:[tt,[],n=>n.globals.zoom],pitch:[tt,[],n=>n.globals.pitch||0],"distance-from-center":[tt,[],n=>n.distanceFromCenter()],"measure-light":[tt,[Zt],(n,[e])=>n.measureLight(e.evaluate(n))],"heatmap-density":[tt,[],n=>n.globals.heatmapDensity||0],"line-progress":[tt,[],n=>n.globals.lineProgress||0],"raster-value":[tt,[],n=>n.globals.rasterValue||0],"raster-particle-speed":[tt,[],n=>n.globals.rasterParticleSpeed||0],"sky-radial-progress":[tt,[],n=>n.globals.skyRadialProgress||0],accumulated:[Kt,[],n=>n.globals.accumulated===void 0?null:n.globals.accumulated],"+":[tt,as(tt),(n,e)=>{let i=0;for(const r of e)i+=r.evaluate(n);return i}],"*":[tt,as(tt),(n,e)=>{let i=1;for(const r of e)i*=r.evaluate(n);return i}],"-":{type:tt,overloads:[[[tt,tt],(n,[e,i])=>e.evaluate(n)-i.evaluate(n)],[[tt],(n,[e])=>-e.evaluate(n)]]},"/":[tt,[tt,tt],(n,[e,i])=>e.evaluate(n)/i.evaluate(n)],"%":[tt,[tt,tt],(n,[e,i])=>e.evaluate(n)%i.evaluate(n)],ln2:[tt,[],()=>Math.LN2],pi:[tt,[],()=>Math.PI],e:[tt,[],()=>Math.E],"^":[tt,[tt,tt],(n,[e,i])=>Math.pow(e.evaluate(n),i.evaluate(n))],sqrt:[tt,[tt],(n,[e])=>Math.sqrt(e.evaluate(n))],log10:[tt,[tt],(n,[e])=>Math.log(e.evaluate(n))/Math.LN10],ln:[tt,[tt],(n,[e])=>Math.log(e.evaluate(n))],log2:[tt,[tt],(n,[e])=>Math.log2(e.evaluate(n))],sin:[tt,[tt],(n,[e])=>Math.sin(e.evaluate(n))],cos:[tt,[tt],(n,[e])=>Math.cos(e.evaluate(n))],tan:[tt,[tt],(n,[e])=>Math.tan(e.evaluate(n))],asin:[tt,[tt],(n,[e])=>Math.asin(e.evaluate(n))],acos:[tt,[tt],(n,[e])=>Math.acos(e.evaluate(n))],atan:[tt,[tt],(n,[e])=>Math.atan(e.evaluate(n))],min:[tt,as(tt),(n,e)=>Math.min(...e.map(i=>i.evaluate(n)))],max:[tt,as(tt),(n,e)=>Math.max(...e.map(i=>i.evaluate(n)))],abs:[tt,[tt],(n,[e])=>Math.abs(e.evaluate(n))],round:[tt,[tt],(n,[e])=>{const i=e.evaluate(n);return i<0?-Math.round(-i):Math.round(i)}],floor:[tt,[tt],(n,[e])=>Math.floor(e.evaluate(n))],ceil:[tt,[tt],(n,[e])=>Math.ceil(e.evaluate(n))],"filter-==":[Wt,[Zt,Kt],(n,[e,i])=>n.properties()[e.value]===i.value],"filter-id-==":[Wt,[Kt],(n,[e])=>n.id()===e.value],"filter-type-==":[Wt,[Zt],(n,[e])=>n.geometryType()===e.value],"filter-<":[Wt,[Zt,Kt],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r<a}],"filter-id-<":[Wt,[Kt],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i<r}],"filter->":[Wt,[Zt,Kt],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r>a}],"filter-id->":[Wt,[Kt],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i>r}],"filter-<=":[Wt,[Zt,Kt],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r<=a}],"filter-id-<=":[Wt,[Kt],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i<=r}],"filter->=":[Wt,[Zt,Kt],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r>=a}],"filter-id->=":[Wt,[Kt],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i>=r}],"filter-has":[Wt,[Kt],(n,[e])=>e.value in n.properties()],"filter-has-id":[Wt,[],n=>n.id()!==null&&n.id()!==void 0],"filter-type-in":[Wt,[Mn(Zt)],(n,[e])=>e.value.indexOf(n.geometryType())>=0],"filter-id-in":[Wt,[Mn(Kt)],(n,[e])=>e.value.indexOf(n.id())>=0],"filter-in-small":[Wt,[Zt,Mn(Kt)],(n,[e,i])=>i.value.indexOf(n.properties()[e.value])>=0],"filter-in-large":[Wt,[Zt,Mn(Kt)],(n,[e,i])=>function(r,a,h,u){for(;h<=u;){const p=h+u>>1;if(a[p]===r)return!0;a[p]>r?u=p-1:h=p+1}return!1}(n.properties()[e.value],i.value,0,i.value.length-1)],all:{type:Wt,overloads:[[[Wt,Wt],(n,[e,i])=>e.evaluate(n)&&i.evaluate(n)],[as(Wt),(n,e)=>{for(const i of e)if(!i.evaluate(n))return!1;return!0}]]},any:{type:Wt,overloads:[[[Wt,Wt],(n,[e,i])=>e.evaluate(n)||i.evaluate(n)],[as(Wt),(n,e)=>{for(const i of e)if(i.evaluate(n))return!0;return!1}]]},"!":[Wt,[Wt],(n,[e])=>!e.evaluate(n)],"is-supported-script":[Wt,[Zt],(n,[e])=>{const i=n.globals&&n.globals.isSupportedScript;return!i||i(e.evaluate(n))}],upcase:[Zt,[Zt],(n,[e])=>e.evaluate(n).toUpperCase()],downcase:[Zt,[Zt],(n,[e])=>e.evaluate(n).toLowerCase()],concat:[Zt,as(Kt),(n,e)=>e.map(i=>ao(i.evaluate(n))).join("")],"resolved-locale":[Zt,[hc],(n,[e])=>e.evaluate(n).resolvedLocale()],random:[tt,[tt,tt,Kt],(n,e)=>{const[i,r,a]=e.map(u=>u.evaluate(n));if(i>r||i===r)return i;let h;if(typeof a=="string")h=function(u){let p=0;if(u.length===0)return p;for(let _=0;_<u.length;_++)p=(p<<5)-p+u.charCodeAt(_),p&=p;return p}(a);else{if(typeof a!="number")throw new Qi(`Invalid seed input: ${a}`);h=a}return i+Mp(h)()*(r-i)}]});class bu{constructor(e,i,r,a,h){this.expression=e,this._warningHistory={},this._scope=r,this._options=a,this._iconImageUseTheme=h,this._evaluator=new fc(r,a,h),this._defaultValue=i?function(u){return u.type==="color"&&(xu(u.default)||Array.isArray(u.default))?new Yt(0,0,0,0):u.type==="color"?Yt.parse(u.default)||null:u.default===void 0?null:u.default}(i):null,this._enumValues=i&&i.type==="enum"?i.values:null,this.configDependencies=zc(e),this.isIndoorDependent=ks(e)}evaluateWithoutErrorHandling(e,i,r,a,h,u,p,_){return this._evaluator.globals=e,this._evaluator.feature=i,this._evaluator.featureState=r,this._evaluator.canonical=a||null,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=u,this._evaluator.featureTileCoord=p||null,this._evaluator.featureDistanceData=_||null,this.expression.evaluate(this._evaluator)}evaluate(e,i,r,a,h,u,p,_,g){this._evaluator||(this._evaluator=new fc(this._scope,this._options,this._iconImageUseTheme)),this._evaluator.globals=e,this._evaluator.feature=i||null,this._evaluator.featureState=r||null,this._evaluator.canonical=a||null,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=u||null,this._evaluator.featureTileCoord=p||null,this._evaluator.featureDistanceData=_||null,this._evaluator.iconImageUseTheme=g||null;try{const v=this.expression.evaluate(this._evaluator);if(v==null||typeof v=="number"&&v!=v)return this._defaultValue;if(this._enumValues&&!(v in this._enumValues))throw new Qi(`Expected value to be one of ${Object.keys(this._enumValues).map(b=>JSON.stringify(b)).join(", ")}, but found ${JSON.stringify(v)} instead.`);return v}catch(v){const b=v;return this._warningHistory[b.message]||(this._warningHistory[b.message]=!0,typeof console<"u"&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${b.message}`)),this._defaultValue}}}function Oc(n){return Array.isArray(n)&&n.length>0&&typeof n[0]=="string"&&n[0]in xa}function cs(n,e,i,r,a){const h=new Ic(xa,[],e?function(p){const _={color:Rn,string:Zt,number:tt,enum:Zt,boolean:Wt,formatted:dl,resolvedImage:sa};return p.type==="array"?Mn(_[p.value]||Kt,p.length):_[p.type]}(e):void 0,void 0,void 0,i,r,a),u=h.parse(n,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return u?Pp(new bu(u,e,i,r,a)):ls(h.errors)}class Cl{constructor(e,i,r,a){this.kind=e,this._styleExpression=i,this.isLightConstant=r,this.isLineProgressConstant=a,this.isStateDependent=e!=="constant"&&!wl(i.expression),this.configDependencies=zc(i.expression),this.isIndoorDependent=ks(i.expression)}evaluateWithoutErrorHandling(e,i,r,a,h,u){return this._styleExpression.evaluateWithoutErrorHandling(e,i,r,a,h,u)}evaluate(e,i,r,a,h,u,p){return this._styleExpression.evaluate(e,i,r,a,h,u,void 0,void 0,p)}}class va{constructor(e,i,r,a,h,u){this.kind=e,this.zoomStops=r,this._styleExpression=i,this.isStateDependent=e!=="camera"&&!wl(i.expression),this.isIndoorDependent=ks(i.expression),this.isLightConstant=h,this.isLineProgressConstant=u,this.configDependencies=zc(i.expression),this.interpolationType=a}evaluateWithoutErrorHandling(e,i,r,a,h,u){return this._styleExpression.evaluateWithoutErrorHandling(e,i,r,a,h,u)}evaluate(e,i,r,a,h,u){return this._styleExpression.evaluate(e,i,r,a,h,u)}interpolationFactor(e,i,r){return this.interpolationType?Tr.interpolationFactor(this.interpolationType,e,i,r):0}}function wu(n,e,i,r,a){if((n=cs(n,e,i,r,a)).result==="error")return n;const h=n.value.expression,u=pa(h);if(!u&&!Lc(e))return ls([new ar("","data expressions not supported")]);const p=fa(h,["zoom","pitch","distance-from-center"]);if(!p&&!Fc(e))return ls([new ar("","zoom expressions not supported")]);const _=fa(h,["measure-light"]);if(!_&&!Rp(e))return ls([new ar("","measure-light expression not supported")]);const g=fa(h,["line-progress"]);if(!g&&!function(w){return gu(w.expression,"line-progress")}(e))return ls([new ar("","line-progress expression not supported")]);const v=e.expression&&e.expression.relaxZoomRestriction,b=wa(h);return b||p||v?b instanceof ar?ls([b]):b instanceof Tr&&!yu(e)?ls([new ar("",'"interpolate" expressions cannot be used with this property')]):Pp(b?new va(u&&g?"camera":"composite",n.value,b.labels,b instanceof Tr?b.interpolation:void 0,_,g):new Cl(u&&g?"constant":"source",n.value,_,g)):ls([new ar("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class ba{constructor(e,i){this._parameters=e,this._specification=i,Object.assign(this,vu(this._parameters,this._specification))}static deserialize(e){return new ba(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function wa(n){let e=null;if(n instanceof El)e=wa(n.result);else if(n instanceof Sl){for(const i of n.args)if(e=wa(i),e)break}else(n instanceof Tl||n instanceof Tr)&&n.input instanceof Dn&&n.input.name==="zoom"&&(e=n);return e instanceof ar||n.eachChild(i=>{const r=wa(i);r instanceof ar?e=r:e&&r&&e!==r&&(e=new ar("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}var Bc,Lp,hs=function(){if(Lp)return Bc;Lp=1,Bc=e;var n=3;function e(i,r,a){var h=this.cells=[];if(i instanceof ArrayBuffer){this.arrayBuffer=i;var u=new Int32Array(this.arrayBuffer);i=u[0],this.d=(r=u[1])+2*(a=u[2]);for(var p=0;p<this.d*this.d;p++){var _=u[n+p],g=u[n+p+1];h.push(_===g?null:u.subarray(_,g))}var v=u[n+h.length+1];this.keys=u.subarray(u[n+h.length],v),this.bboxes=u.subarray(v),this.insert=this._insertReadonly}else{this.d=r+2*a;for(var b=0;b<this.d*this.d;b++)h.push([]);this.keys=[],this.bboxes=[]}this.n=r,this.extent=i,this.padding=a,this.scale=r/i,this.uid=0;var w=a/r*i;this.min=-w,this.max=i+w}return e.prototype.insert=function(i,r,a,h,u){this._forEachCell(r,a,h,u,this._insertCell,this.uid++),this.keys.push(i),this.bboxes.push(r),this.bboxes.push(a),this.bboxes.push(h),this.bboxes.push(u)},e.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},e.prototype._insertCell=function(i,r,a,h,u,p){this.cells[u].push(p)},e.prototype.query=function(i,r,a,h,u){var p=this.min,_=this.max;if(i<=p&&r<=p&&_<=a&&_<=h&&!u)return Array.prototype.slice.call(this.keys);var g=[];return this._forEachCell(i,r,a,h,this._queryCell,g,{},u),g},e.prototype._queryCell=function(i,r,a,h,u,p,_,g){var v=this.cells[u];if(v!==null)for(var b=this.keys,w=this.bboxes,E=0;E<v.length;E++){var I=v[E];if(_[I]===void 0){var P=4*I;(g?g(w[P+0],w[P+1],w[P+2],w[P+3]):i<=w[P+2]&&r<=w[P+3]&&a>=w[P+0]&&h>=w[P+1])?(_[I]=!0,p.push(b[I])):_[I]=!1}}},e.prototype._forEachCell=function(i,r,a,h,u,p,_,g){for(var v=this._convertToCellCoord(i),b=this._convertToCellCoord(r),w=this._convertToCellCoord(a),E=this._convertToCellCoord(h),I=v;I<=w;I++)for(var P=b;P<=E;P++){var z=this.d*P+I;if((!g||g(this._convertFromCellCoord(I),this._convertFromCellCoord(P),this._convertFromCellCoord(I+1),this._convertFromCellCoord(P+1)))&&u.call(this,i,r,a,h,z,p,_,g))return}},e.prototype._convertFromCellCoord=function(i){return(i-this.padding)/this.scale},e.prototype._convertToCellCoord=function(i){return Math.max(0,Math.min(this.d-1,Math.floor(i*this.scale)+this.padding))},e.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var i=this.cells,r=n+this.cells.length+1+1,a=0,h=0;h<this.cells.length;h++)a+=this.cells[h].length;var u=new Int32Array(r+a+this.keys.length+this.bboxes.length);u[0]=this.extent,u[1]=this.n,u[2]=this.padding;for(var p=r,_=0;_<i.length;_++){var g=i[_];u[n+_]=p,u.set(g,p),p+=g.length}return u[n+i.length]=p,u.set(this.keys,p),u[n+i.length+1]=p+=this.keys.length,u.set(this.bboxes,p),p+=this.bboxes.length,u.buffer},Bc}(),Ta=vr(hs);const kc={};function Qe(n,e,i={}){Object.defineProperty(n,"_classRegistryKey",{value:e,writable:!1}),kc[e]={klass:n,omit:i.omit||[]}}Qe(Object,"Object"),Ta.serialize=function(n,e){const i=n.toArrayBuffer();return e&&e.add(i),{buffer:i}},Ta.deserialize=function(n){return new Ta(n.buffer)},Object.defineProperty(Ta,"name",{value:"Grid"}),Qe(Ta,"Grid"),delete Oe.prototype.constructor,Qe(Yt,"Color"),Qe(Error,"Error"),Qe(qn,"Formatted"),Qe(pc,"FormattedSection"),Qe(sr,"AJAXError"),Qe(vn,"ResolvedImage"),Qe(ba,"StylePropertyFunction"),Qe(bu,"StyleExpression",{omit:["_evaluator"]}),Qe(Xn,"ImageId"),Qe($r,"ImageVariant"),Qe(va,"ZoomDependentExpression"),Qe(Cl,"ZoomConstantExpression"),Qe(Dn,"CompoundExpression",{omit:["_evaluate"]});for(const n in xa)kc[xa[n]._classRegistryKey]||Qe(xa[n],`Expression${n}`);function Fp(n){return n&&(n instanceof ArrayBuffer||n.constructor&&n.constructor.name==="ArrayBuffer")}function Zr(n,e){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp)return n;if(Fp(n)||n instanceof ImageBitmap)return e&&e.add(n),n;if(ArrayBuffer.isView(n))return e&&e.add(n.buffer),n;if(n instanceof ImageData)return e&&e.add(n.data.buffer),n;if(Array.isArray(n)){const i=[];for(const r of n)i.push(Zr(r,e));return i}if(n instanceof Map){const i={$name:"Map",entries:[]};for(const[r,a]of n.entries())i.entries.push(Zr(r),Zr(a,e));return i}if(n instanceof Set){const i={$name:"Set"};let r=0;for(const a of n.values())i[++r]=Zr(a);return i}if(typeof n=="bigint")return{$name:"BigInt",value:n.toString()};if(typeof n=="object"){const i=n.constructor,r=i._classRegistryKey;if(!r)throw new Error(`Can't serialize object of unregistered class "${i.name}".`);const a=i.serialize?i.serialize(n,e):{};if(!i.serialize){for(const h in n)n.hasOwnProperty(h)&&(kc[r].omit.indexOf(h)>=0||(a[h]=Zr(n[h],e)));n instanceof Error&&(a.message=n.message)}if(a.$name)throw new Error("$name property is reserved for worker serialization logic.");return r!=="Object"&&(a.$name=r),a}throw new Error("can't serialize object of type "+typeof n)}function Ro(n){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp||Fp(n)||n instanceof ImageBitmap||ArrayBuffer.isView(n)||n instanceof ImageData)return n;if(Array.isArray(n))return n.map(Ro);if(typeof n=="object"){const e=n.$name||"Object";if(e==="Map"){const a=n.entries||[],h=new Map;for(let u=0;u<a.length;u+=2)h.set(Ro(a[u]),Ro(a[u+1]));return h}if(e==="Set"){const a=new Set;for(const h of Object.keys(n))h!=="$name"&&a.add(Ro(n[h]));return a}if(e==="BigInt")return BigInt(n.value);const{klass:i}=kc[e];if(!i)throw new Error(`Can't deserialize unregistered class "${e}".`);if(i.deserialize)return i.deserialize(n);const r=Object.create(i.prototype);for(const a of Object.keys(n))a!=="$name"&&(r[a]=Ro(n[a]));return r}throw new Error("can't deserialize object of type "+typeof n)}const Pl=n=>n>=1536&&n<=1791,Tu=n=>n>=1872&&n<=1919,Op=n=>n>=2208&&n<=2303,Bp=n=>n>=11904&&n<=12031,Nc=n=>n>=12032&&n<=12255,Vc=n=>n>=12272&&n<=12287,Rl=n=>n>=12288&&n<=12351,Uc=n=>n>=12352&&n<=12447,Sa=n=>n>=12448&&n<=12543,Dl=n=>n>=12544&&n<=12591,Su=n=>n>=12704&&n<=12735,ho=n=>n>=12736&&n<=12783,kp=n=>n>=12784&&n<=12799,Np=n=>n>=12800&&n<=13055,Vp=n=>n>=13056&&n<=13311,Eu=n=>n>=13312&&n<=19903,jc=n=>n>=19968&&n<=40959,zl=n=>n>=40960&&n<=42127,Iu=n=>n>=42128&&n<=42191,Au=n=>n>=44032&&n<=55215,Gc=n=>n>=63744&&n<=64255,Mu=n=>n>=64336&&n<=65023,Up=n=>n>=65040&&n<=65055,Cu=n=>n>=65072&&n<=65103,jp=n=>n>=65104&&n<=65135,Pu=n=>n>=65136&&n<=65279,Ru=n=>n>=65280&&n<=65519;function Du(n){for(const e of n)if(zu(e.charCodeAt(0)))return!0;return!1}function zm(n){for(const e of n)if(!Lm(e.charCodeAt(0)))return!1;return!0}function Lm(n){return!(Pl(n)||Tu(n)||Op(n)||Mu(n)||Pu(n))}function Fm(n){return!(n<11904||!(Su(n)||Dl(n)||Cu(n)||Gc(n)||Vp(n)||Bp(n)||ho(n)||Rl(n)||Eu(n)||jc(n)||Np(n)||Ru(n)||Uc(n)||Vc(n)||Nc(n)||kp(n)||Sa(n)||Up(n)||Iu(n)||zl(n)))}function zu(n){return!(n!==746&&n!==747&&(n<4352||!(Su(n)||Dl(n)||Cu(n)&&!(n>=65097&&n<=65103)||Gc(n)||Vp(n)||Bp(n)||ho(n)||!(!Rl(n)||n>=12296&&n<=12305||n>=12308&&n<=12319||n===12336)||Eu(n)||jc(n)||Np(n)||(e=>e>=12592&&e<=12687)(n)||(e=>e>=43360&&e<=43391)(n)||(e=>e>=55216&&e<=55295)(n)||(e=>e>=4352&&e<=4607)(n)||Au(n)||Uc(n)||Vc(n)||(e=>e>=12688&&e<=12703)(n)||Nc(n)||kp(n)||Sa(n)&&n!==12540||!(!Ru(n)||n===65288||n===65289||n===65293||n>=65306&&n<=65310||n===65339||n===65341||n===65343||n>=65371&&n<=65503||n===65507||n>=65512&&n<=65519)||!(!jp(n)||n>=65112&&n<=65118||n>=65123&&n<=65126)||(e=>e>=5120&&e<=5759)(n)||(e=>e>=6320&&e<=6399)(n)||Up(n)||(e=>e>=19904&&e<=19967)(n)||zl(n)||Iu(n))))}function Gp(n){return n===12312||n===12313||n===12316||n===12540||n===12448}function Vs(n){return!(zu(n)||function(e){return!!((i=>i>=128&&i<=255)(e)&&(e===167||e===169||e===174||e===177||e===188||e===189||e===190||e===215||e===247)||(i=>i>=8192&&i<=8303)(e)&&(e===8214||e===8224||e===8225||e===8240||e===8241||e===8251||e===8252||e===8258||e===8263||e===8264||e===8265||e===8273)||(i=>i>=8448&&i<=8527)(e)||(i=>i>=8528&&i<=8591)(e)||(i=>i>=8960&&i<=9215)(e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||e===9003||e>=9085&&e<=9114||e>=9150&&e<=9165||e===9167||e>=9169&&e<=9179||e>=9186&&e<=9215)||(i=>i>=9216&&i<=9279)(e)&&e!==9251||(i=>i>=9280&&i<=9311)(e)||(i=>i>=9312&&i<=9471)(e)||(i=>i>=9632&&i<=9727)(e)||(i=>i>=9728&&i<=9983)(e)&&!(e>=9754&&e<=9759)||(i=>i>=11008&&i<=11263)(e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||Rl(e)||Sa(e)||(i=>i>=57344&&i<=63743)(e)||Cu(e)||jp(e)||Ru(e)||e===8734||e===8756||e===8757||e>=9984&&e<=10087||e>=10102&&e<=10131||e===65532||e===65533)}(n))}function qp(n){return Pl(n)||Tu(n)||Op(n)||Mu(n)||Pu(n)}function Lu(n){return n>=1424&&n<=2303||Mu(n)||Pu(n)}function qc(n,e){return!(!e&&Lu(n)||n>=2304&&n<=3583||n>=3840&&n<=4255||(i=>i>=6016&&i<=6143)(n))}function Om(n){for(const e of n)if(Lu(e.charCodeAt(0)))return!0;return!1}const lr={unavailable:"unavailable",deferred:"deferred",loading:"loading",parsing:"parsing",parsed:"parsed",loaded:"loaded",error:"error"};let uo=null,Bn=lr.unavailable,Sr=null;const $p=function(n){n&&typeof n=="string"&&n.indexOf("NetworkError")>-1&&(Bn=lr.error),uo&&uo(n)};function Fu(){Ou.fire(new Gr("pluginStateChange",{pluginStatus:Bn,pluginURL:Sr}))}const Ou=new qr,Bu=function(){return Bn},Hp=function(){if(Bn!==lr.deferred||!Sr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Bn=lr.loading,Fu(),Sr&&al({url:Sr},n=>{n?$p(n):(Bn=lr.loaded,Fu())})},Do={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Bn===lr.loaded||Do.applyArabicShaping!=null,isLoading:()=>Bn===lr.loading,setState(n){Bn=n.pluginStatus,Sr=n.pluginURL},isParsing:()=>Bn===lr.parsing,isParsed:()=>Bn===lr.parsed,getPluginURL:()=>Sr};class Qt{constructor(e,i){this.zoom=e,i?(this.now=i.now,this.fadeDuration=i.fadeDuration,this.transition=i.transition,this.pitch=i.pitch,this.brightness=i.brightness,this.worldview=i.worldview,this.activeFloors=i.activeFloors):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(e){return function(i,r){for(const a of i)if(!qc(a.charCodeAt(0),r))return!1;return!0}(e,Do.isLoaded())}}class Ea{constructor(e,i,r,a,h){this.property=e,this.value=i,this.expression=function(u,p,_,g,v){if(xu(u))return new ba(u,p);if(Oc(u)||Array.isArray(u)&&u.length>0){const b=wu(u,p,_,g,v);if(b.result==="error")throw new Error(b.value.map(w=>`${w.key}: ${w.message}`).join(", "));return b.value}{let b=u;return typeof u=="string"&&p.type==="color"&&(b=Yt.parse(u)),{kind:"constant",configDependencies:new Set,isIndoorDependent:!1,evaluate:()=>b}}}(i===void 0?e.specification.default:i,e.specification,r,a,h)}isIndoorDependent(){return this.expression.isIndoorDependent}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(e,i,r,a){return this.property.possiblyEvaluate(this,e,i,r,a)}}class Ll{constructor(e,i,r,a){this.property=e,this.value=new Ea(e,void 0,i,r,a)}transitioned(e,i){return new $c(this.property,this.value,i,Object.assign({},e.transition,this.transition),e.now)}untransitioned(){return new $c(this.property,this.value,null,{},0)}}class ku{constructor(e,i,r,a){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._scope=i,this._options=r,this._iconImageUseTheme=a,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(e){return yt(this._values[e].value.value)}setValue(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new Ll(this._values[e].property,this._scope,this._options,this._iconImageUseTheme)),this._values[e].value=new Ea(this._values[e].property,i===null?void 0:yt(i),this._scope,this._options,this._iconImageUseTheme),this._values[e].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].value.expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[e].value.isIndoorDependent())}setTransitionOrValue(e,i){i&&(this._options=i);const r=this._properties.properties;if(e)for(const a in e){const h=e[a];if(a.endsWith("-transition")){const u=a.slice(0,-11);r[u]&&this.setTransition(u,h)}else r.hasOwnProperty(a)&&this.setValue(a,h)}}getTransition(e){return yt(this._values[e].transition)}setTransition(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new Ll(this._values[e].property)),this._values[e].transition=yt(i)||void 0}serialize(){const e={};for(const i of Object.keys(this._values)){const r=this.getValue(i);r!==void 0&&(e[i]=r);const a=this.getTransition(i);a!==void 0&&(e[`${i}-transition`]=a)}return e}transitioned(e,i){const r=new Ia(this._properties);for(const a of Object.keys(this._values))r._values[a]=this._values[a].transitioned(e,i._values[a]);return r}untransitioned(){const e=new Ia(this._properties);for(const i of Object.keys(this._values))e._values[i]=this._values[i].untransitioned();return e}isIndoorDependent(){return this._isIndoorDependent}}class $c{constructor(e,i,r,a,h){const u=a.delay||0,p=a.duration||0;h=h||0,this.property=e,this.value=i,this.begin=h+u,this.end=this.begin+p,e.specification.transition&&(a.delay||a.duration)&&(this.prior=r)}possiblyEvaluate(e,i,r){const a=e.now||0,h=this.value.possiblyEvaluate(e,i,r),u=this.prior;if(u){if(a>this.end)return this.prior=null,h;if(this.value.isDataDriven())return this.prior=null,h;if(a<this.begin)return u.possiblyEvaluate(e,i,r);{const p=(a-this.begin)/(this.end-this.begin);return this.property.interpolate(u.possiblyEvaluate(e,i,r),h,U(p))}}return h}}class Ia{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,i,r){const a=new js(this._properties);for(const h of Object.keys(this._values))a._values[h]=this._values[h].possiblyEvaluate(e,i,r);return a}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class Nu{constructor(e,i,r,a){this._properties=e,this._values=Object.create(e.defaultPropertyValues),this._scope=i,this._options=r,this._iconImageUseTheme=a,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(e){return yt(this._values[e].value)}setValue(e,i){this._values[e]=new Ea(this._values[e].property,i===null?void 0:yt(i),this._scope,this._options,this._iconImageUseTheme),this._values[e].expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[e].isIndoorDependent())}serialize(){const e={};for(const i of Object.keys(this._values)){const r=this.getValue(i);r!==void 0&&(e[i]=r)}return e}possiblyEvaluate(e,i,r,a){const h=new js(this._properties);for(const u of Object.keys(this._values))h._values[u]=this._values[u].possiblyEvaluate(e,i,r,a);return h}isIndoorDependent(){return this._isIndoorDependent}}class Us{constructor(e,i,r,a){this.property=e,this.value=i,this.parameters=r,this.iconImageUseTheme=a}isConstant(){return this.value.kind==="constant"}constantOr(e){return this.value.kind==="constant"?this.value.value:e}evaluate(e,i,r,a){return this.property.evaluate(this.value,this.parameters,e,i,r,a,this.iconImageUseTheme)}}class js{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class Ve{constructor(e){this.specification=e}possiblyEvaluate(e,i){return e.expression.evaluate(i)}interpolate(e,i,r){const a=ul[this.specification.type];return a?a(e,i,r):e}}class He{constructor(e,i){this.specification=e,this.overrides=i}possiblyEvaluate(e,i,r,a,h){return e.expression.kind==="constant"||e.expression.kind==="camera"?new Us(this,{kind:"constant",value:e.expression.evaluate(i,null,{},r,a,void 0,h)},i):new Us(this,e.expression,i,h)}interpolate(e,i,r){if(e.value.kind!=="constant"||i.value.kind!=="constant")return e;if(e.value.value===void 0||i.value.value===void 0)return new Us(this,{kind:"constant",value:void 0},e.parameters);const a=ul[this.specification.type];return a?new Us(this,{kind:"constant",value:a(e.value.value,i.value.value,r)},e.parameters):e}evaluate(e,i,r,a,h,u,p){return e.kind==="constant"?e.value:e.evaluate(i,r,a,h,u,void 0,p)}}class Yn{constructor(e){this.specification=e}possiblyEvaluate(e,i,r,a){return!!e.expression.evaluate(i,null,{},r,a)}interpolate(){return!1}}class Ei{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const i=new Qt(0,{});for(const r in e){const a=e[r];a.specification.overridable&&this.overridableProperties.push(r);const h=this.defaultPropertyValues[r]=new Ea(a,void 0),u=this.defaultTransitionablePropertyValues[r]=new Ll(a);this.defaultTransitioningPropertyValues[r]=u.untransitioned(),this.defaultPossiblyEvaluatedValues[r]=h.possiblyEvaluate(i)}}}Qe(He,"DataDrivenProperty"),Qe(Ve,"DataConstantProperty"),Qe(Yn,"ColorRampProperty");var pe=JSON.parse('{"$version":8,"$root":{"version":{"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"snow":{"type":"snow"},"rain":{"type":"rain"},"camera":{"type":"camera"},"color-theme":{"type":"colorTheme"},"indoor":{"type":"indoor"},"imports":{"type":"array","value":"import"},"iconsets":{"type":"iconsets"},"schema":{"type":"schema"},"sources":{"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"type":"array","value":"layer"},"models":{"type":"models"},"featuresets":{"type":"featuresets"}},"featuresets":{"*":{"type":"featureset"}},"featureset":{"metadata":{"type":"*"},"selectors":{"type":"array","value":"selector"}},"selector":{"layer":{"type":"string"},"properties":{"type":"selectorProperty"},"featureNamespace":{"type":"string"},"_uniqueFeatureID":{"type":"boolean"}},"selectorProperty":{"*":{"type":"*"}},"model":{"type":"string"},"import":{"id":{"type":"string"},"url":{"type":"string"},"config":{"type":"config"},"data":{"type":"$root"},"color-theme":{"type":"colorTheme","optional":true}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","expression":{}},"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1}},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"values":{"type":"array","value":"*"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}},"light-3d":{"id":{"type":"string"},"properties":{"type":"properties"},"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false},"shadow-quality":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"parameters":["zoom"]}},"shadow-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"shadow-draw-before-layer":{"type":"string"}},"properties_light_ambient":{"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"iconsets":{"*":{"type":"iconset"}},"iconset":["iconset_sprite","iconset_source"],"iconset_sprite":{"type":{"type":"enum","values":{"sprite":1}},"url":{"type":"string"}},"iconset_source":{"type":{"type":"enum","values":{"source":1}},"source":{"type":"string"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_raster_array","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"type":"enum","values":{"vector":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"type":"enum","values":{"raster":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"type":"enum","values":{"raster-dem":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":1,"mapbox":1},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_array":{"type":{"type":"enum","values":{"raster-array":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"},"dynamic":{"type":"boolean","default":false}},"source_video":{"type":{"type":"enum","values":{"video":1}},"urls":{"type":"array","value":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"type":"enum","values":{"image":1}},"url":{"type":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"modelNodeOverride":{"orientation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360}},"modelNodeOverrides":{"*":{"type":"modelNodeOverride"}},"modelMaterialOverride":{"model-color":{"type":"color"},"model-color-mix-intensity":{"type":"number"},"model-opacity":{"type":"number"},"model-emissive-strength":{"type":"number"}},"modelMaterialOverrides":{"*":{"type":"modelMaterialOverride"}},"modelSourceModel":{"uri":{"type":"string"},"position":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[-180,-90],"maximum":[180,90]},"orientation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360},"nodeOverrides":{"type":"modelNodeOverrides"},"materialOverrides":{"type":"modelMaterialOverrides"},"nodeOverrideNames":{"type":"array","value":"string"},"materialOverrideNames":{"type":"array","value":"string"},"featureProperties":{"type":"*"}},"modelSourceModels":{"*":{"type":"modelSourceModel"}},"source_model":{"type":{"type":"enum","values":{"model":1,"batched-model":1}},"url":{"type":"string"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"},"models":{"type":"modelSourceModels"}},"layer":{"id":{"type":"string"},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"building":{},"raster":{},"raster-particle":{},"hillshade":{},"model":{},"background":{},"sky":{},"slot":{},"clip":{}}},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"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"},"appearances":{"type":"array","value":"appearance","supported-layer-types":["symbol"]}},"appearance":{"condition":{"type":"boolean","expression":{"interpolated":true,"parameters":["zoom","pitch","feature","feature-state","measure-light","distance-from-center"]},"property-type":"data-driven"},"name":{"type":"string"},"properties":{"type":"*"}},"layout":["layout_clip","layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_building","layout_symbol","layout_raster","layout_raster-particle","layout_hillshade","layout_background","layout_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"model-allow-density-reduction":{"type":"boolean","default":true}},"layout_clip":{"clip-layer-types":{"type":"array","value":"enum","values":{"model":1,"symbol":1},"default":[],"expression":{}},"clip-layer-scope":{"type":"array","value":"string","default":[],"expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"fill-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-base":1,"hd-road-markup":1},"default":"none","expression":{}},"fill-construct-bridge-guard-rail":{"type":"boolean","default":"true","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"circle-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-markup":1},"default":"none","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"fill-extrusion-edge-radius":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}}},"layout_building":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"building-facade":{"type":"boolean","default":false,"expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-facade-floors":{"type":"number","minimum":1,"maximum":200,"default":3,"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-facade-unit-width":{"type":"number","minimum":1,"maximum":20,"default":3.1,"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-facade-window":{"type":"array","length":2,"value":"number","minimum":0.1,"maximum":1,"default":[0.9,0.9],"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-roof-shape":{"type":"enum","values":{"flat":1,"hipped":1,"gabled":1,"parapet":1,"mansard":1,"skillion":1,"pyramidal":1},"default":"flat","expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"},"building-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"},"building-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"building-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"building-flip-roof-orientation":{"property-type":"data-driven","type":"boolean","default":false,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":1,"round":1,"square":1},"default":"butt","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":1,"round":1,"miter":1,"none":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-z-offset":{"type":"number","default":0,"expression":{"parameters":["zoom","feature","line-progress"]},"property-type":"data-driven"},"line-elevation-reference":{"type":"enum","values":{"none":1,"sea":1,"ground":1,"hd-road-markup":1},"default":"none","expression":{}},"line-cross-slope":{"type":"number","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"line-width-unit":{"type":"enum","values":{"pixels":1,"meters":1},"default":"pixels","expression":{"parameters":["zoom"]}},"line-elevation-ground-scale":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","line-progress"]},"transition":true,"property-type":"data-driven"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]}},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]}},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":1,"viewport-y":1,"source":1},"default":"auto","expression":{"parameters":["zoom"]}},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1,"hd-road-markup":1},"default":"ground","expression":{"parameters":["zoom"]}},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"icon-size":{"type":"number","default":1,"minimum":0,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":[0.1,0.1],"maximum":[10,10],"expression":{}},"icon-text-fit":{"type":"enum","values":{"none":1,"width":1,"height":1,"both":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","tokens":true,"appearance":true,"use-theme":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":[0.1,0.1],"maximum":[10,10],"expression":{}},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":1,"left":1,"center":1,"right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]}},"text-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]}},"text-rotate":{"type":"number","default":0,"period":360,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"text-transform":{"type":"enum","values":{"none":1,"uppercase":1,"lowercase":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","length":2,"default":[0,0],"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster-particle":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_hillshade":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster-particle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_clip":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_model":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_building":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"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":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*"}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"high-color":{"type":"color","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"space-color":{"type":"color","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"horizon-blend":{"type":"number","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"snow":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.85],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.3],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.4,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,50],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"flake-size":{"type":"number","default":0.71,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"rain":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.5],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#03113d",0.3,"#a8adbc"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":["interpolate",["linear"],["measure-light","brightness"],0,0.88,1,0.7],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#001736",0.3,"#464646"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.57,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,80],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"droplet-size":{"type":"array","default":[2.6,18.2],"minimum":0,"maximum":50,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"distortion-strength":{"type":"number","default":0.7,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective"}},"colorTheme":{"data":{"type":"string","expression":{}}},"indoor_source":{"sourceId":{"type":"string"},"sourceLayers":{"type":"array","value":"string"}},"indoor":{"*":{"type":"indoor_source"}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator"},"center":{"type":"array","length":2,"value":"number","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string"},"exaggeration":{"type":"number","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_building","paint_symbol","paint_raster","paint_raster-particle","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-bridge-guard-rail-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"},"fill-tunnel-structure-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-height-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"flat"},"fill-extrusion-base-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"terrain"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"type":"color","default":"#ffffff","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"fill-extrusion-line-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-cast-shadows":{"type":"boolean","default":true}},"paint_building":{"building-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"parameters":[]},"transition":true},"building-ambient-occlusion-ground-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-cast-shadows":{"type":"boolean","default":true},"building-color":{"type":"color","default":"rgba(193, 154, 127, 1)","use-theme":true,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"},"building-emissive-strength":{"type":"number","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"},"building-facade-emissive-chance":{"type":"number","default":0.35,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["measure-light","zoom"]}},"building-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"building-flood-light-color":{"type":"color","default":"#ffffff","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"building-flood-light-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"building-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light","line-progress"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-gradient":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["line-progress"]}},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1]},"line-trim-fade-range":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-trim-color":{"type":"color","default":"transparent","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"line-border-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-occlusion-opacity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"use-theme":true,"expression":{"interpolated":true,"parameters":["heatmap-density"]}},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-image-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-color-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"icon-color-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{}},"symbol-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-value"]}},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]}},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"raster-array-band":{"type":"string"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1},"default":"sea","expression":{}}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string"},"raster-particle-count":{"type":"number","default":512,"minimum":1},"raster-particle-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-particle-speed"]}},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1},"raster-particle-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-shadow-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-accent-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_background":{"background-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":[]}},"background-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]}},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]}},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]}},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"use-theme":true,"expression":{"interpolated":true,"parameters":["sky-radial-progress"]}},"sky-atmosphere-halo-color":{"type":"color","default":"white","use-theme":true},"sky-atmosphere-color":{"type":"color","default":"white","use-theme":true},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"property-type":"data-driven"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"use-theme":true,"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d"},"model-cast-shadows":{"type":"boolean","default":true},"model-receive-shadows":{"type":"boolean","default":true},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"model-front-cutoff":{"type":"array","value":"number","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]},"model-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1,"hd-road-markup":1},"default":"ground","expression":{}}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"promoteId":{"*":{"type":"*"}}}');function Zp(n){return n instanceof Number||n instanceof String||n instanceof Boolean?n.valueOf():n}function Hc(n){if(Array.isArray(n))return n.map(Hc);if(n instanceof Object&&!(n instanceof Number||n instanceof String||n instanceof Boolean)){const e={};for(const i in n)e[i]=Hc(n[i]);return e}return Zp(n)}function Vu(n){if(n===!0||n===!1)return!0;if(!Array.isArray(n)||n.length===0)return!1;switch(n[0]){case"has":return n.length>=2&&n[1]!=="$id"&&n[1]!=="$type";case"in":return n.length>=3&&(typeof n[1]!="string"||Array.isArray(n[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return n.length!==3||Array.isArray(n[1])||Array.isArray(n[2]);case"any":case"all":for(const e of n.slice(1))if(!Vu(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}function Uu(n,e="",i=null,r="fill"){if(n==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};Vu(n)||(n=Zc(n));const a=n;let h=!0;try{h=function(v){if(!Aa(v))return v;let b=Hc(v);return Xp(b),b=Wp(b),b}(a)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
2
2
  This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md
3
3
  and paste the contents of this message in the report.
4
4
  Thank you!