@inploi/plugin-job-search 2.0.3 → 2.0.4

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 Sr=require("./utils-1496783d.cjs");var j0={exports:{}};(function(kr,oh){(function(Bs,Ns){kr.exports=Ns()})(Sr.commonjsGlobal,function(){var Bs,Ns,Vs;function Vl(s,Er){if(!Bs)Bs=Er;else if(!Ns)Ns=Er;else{var Bi="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 = {}; ("+Bs+")(sharedChunk); ("+Ns+")(sharedChunk); self.onerror = null;",Mn={};Bs(Mn),Vs=Er(Mn),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(Vs.workerUrl=window.URL.createObjectURL(new Blob([Bi],{type:"text/javascript"})))}}Vl(["exports"],function(s){var Er=1e-6,Bi=typeof Float32Array<"u"?Float32Array:Array;function Mn(r,e){var i=e[0],o=e[1],a=e[2],h=e[3],u=i*h-a*o;return u?(r[0]=h*(u=1/u),r[1]=-o*u,r[2]=-a*u,r[3]=i*u,r):null}function es(){var r=new Bi(9);return Bi!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[5]=0,r[6]=0,r[7]=0),r[0]=1,r[4]=1,r[8]=1,r}function qn(r,e){var i=e[0],o=e[1],a=e[2],h=e[3],u=e[4],f=e[5],_=e[6],y=e[7],v=e[8];return r[0]=u*v-f*y,r[1]=a*y-o*v,r[2]=o*f-a*u,r[3]=f*_-h*v,r[4]=i*v-a*_,r[5]=a*h-i*f,r[6]=h*y-u*_,r[7]=o*_-i*y,r[8]=i*u-o*h,r}function dn(r,e,i){var o=e[0],a=e[1],h=e[2],u=e[3],f=e[4],_=e[5],y=e[6],v=e[7],b=e[8],T=i[0],A=i[1],M=i[2],P=i[3],O=i[4],B=i[5],q=i[6],U=i[7],z=i[8];return r[0]=T*o+A*u+M*y,r[1]=T*a+A*f+M*v,r[2]=T*h+A*_+M*b,r[3]=P*o+O*u+B*y,r[4]=P*a+O*f+B*v,r[5]=P*h+O*_+B*b,r[6]=q*o+U*u+z*y,r[7]=q*a+U*f+z*v,r[8]=q*h+U*_+z*b,r}function Zn(){var r=new Bi(16);return Bi!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=0,r[12]=0,r[13]=0,r[14]=0),r[0]=1,r[5]=1,r[10]=1,r[15]=1,r}function Ft(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function Wt(r,e){var i=e[0],o=e[1],a=e[2],h=e[3],u=e[4],f=e[5],_=e[6],y=e[7],v=e[8],b=e[9],T=e[10],A=e[11],M=e[12],P=e[13],O=e[14],B=e[15],q=i*f-o*u,U=i*_-a*u,z=i*y-h*u,N=o*_-a*f,G=o*y-h*f,$=a*y-h*_,te=v*P-b*M,se=v*O-T*M,ae=v*B-A*M,de=b*O-T*P,Se=b*B-A*P,ke=T*B-A*O,ze=q*ke-U*Se+z*de+N*ae-G*se+$*te;return ze?(r[0]=(f*ke-_*Se+y*de)*(ze=1/ze),r[1]=(a*Se-o*ke-h*de)*ze,r[2]=(P*$-O*G+B*N)*ze,r[3]=(T*G-b*$-A*N)*ze,r[4]=(_*ae-u*ke-y*se)*ze,r[5]=(i*ke-a*ae+h*se)*ze,r[6]=(O*z-M*$-B*U)*ze,r[7]=(v*$-T*z+A*U)*ze,r[8]=(u*Se-f*ae+y*te)*ze,r[9]=(o*ae-i*Se-h*te)*ze,r[10]=(M*G-P*z+B*q)*ze,r[11]=(b*z-v*G-A*q)*ze,r[12]=(f*se-u*de-_*te)*ze,r[13]=(i*de-o*se+a*te)*ze,r[14]=(P*U-M*N-O*q)*ze,r[15]=(v*N-b*U+T*q)*ze,r):null}function mi(r,e,i){var o=e[0],a=e[1],h=e[2],u=e[3],f=e[4],_=e[5],y=e[6],v=e[7],b=e[8],T=e[9],A=e[10],M=e[11],P=e[12],O=e[13],B=e[14],q=e[15],U=i[0],z=i[1],N=i[2],G=i[3];return r[0]=U*o+z*f+N*b+G*P,r[1]=U*a+z*_+N*T+G*O,r[2]=U*h+z*y+N*A+G*B,r[3]=U*u+z*v+N*M+G*q,r[4]=(U=i[4])*o+(z=i[5])*f+(N=i[6])*b+(G=i[7])*P,r[5]=U*a+z*_+N*T+G*O,r[6]=U*h+z*y+N*A+G*B,r[7]=U*u+z*v+N*M+G*q,r[8]=(U=i[8])*o+(z=i[9])*f+(N=i[10])*b+(G=i[11])*P,r[9]=U*a+z*_+N*T+G*O,r[10]=U*h+z*y+N*A+G*B,r[11]=U*u+z*v+N*M+G*q,r[12]=(U=i[12])*o+(z=i[13])*f+(N=i[14])*b+(G=i[15])*P,r[13]=U*a+z*_+N*T+G*O,r[14]=U*h+z*y+N*A+G*B,r[15]=U*u+z*v+N*M+G*q,r}function xr(r,e,i){var o,a,h,u,f,_,y,v,b,T,A,M,P=i[0],O=i[1],B=i[2];return e===r?(r[12]=e[0]*P+e[4]*O+e[8]*B+e[12],r[13]=e[1]*P+e[5]*O+e[9]*B+e[13],r[14]=e[2]*P+e[6]*O+e[10]*B+e[14],r[15]=e[3]*P+e[7]*O+e[11]*B+e[15]):(a=e[1],h=e[2],u=e[3],f=e[4],_=e[5],y=e[6],v=e[7],b=e[8],T=e[9],A=e[10],M=e[11],r[0]=o=e[0],r[1]=a,r[2]=h,r[3]=u,r[4]=f,r[5]=_,r[6]=y,r[7]=v,r[8]=b,r[9]=T,r[10]=A,r[11]=M,r[12]=o*P+f*O+b*B+e[12],r[13]=a*P+_*O+T*B+e[13],r[14]=h*P+y*O+A*B+e[14],r[15]=u*P+v*O+M*B+e[15]),r}function vr(r,e,i){var o=i[0],a=i[1],h=i[2];return r[0]=e[0]*o,r[1]=e[1]*o,r[2]=e[2]*o,r[3]=e[3]*o,r[4]=e[4]*a,r[5]=e[5]*a,r[6]=e[6]*a,r[7]=e[7]*a,r[8]=e[8]*h,r[9]=e[9]*h,r[10]=e[10]*h,r[11]=e[11]*h,r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}function Ir(r,e,i){var o=Math.sin(i),a=Math.cos(i),h=e[4],u=e[5],f=e[6],_=e[7],y=e[8],v=e[9],b=e[10],T=e[11];return e!==r&&(r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[4]=h*a+y*o,r[5]=u*a+v*o,r[6]=f*a+b*o,r[7]=_*a+T*o,r[8]=y*a-h*o,r[9]=v*a-u*o,r[10]=b*a-f*o,r[11]=T*a-_*o,r}function Vr(r,e,i){var o=Math.sin(i),a=Math.cos(i),h=e[0],u=e[1],f=e[2],_=e[3],y=e[8],v=e[9],b=e[10],T=e[11];return e!==r&&(r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[0]=h*a-y*o,r[1]=u*a-v*o,r[2]=f*a-b*o,r[3]=_*a-T*o,r[8]=h*o+y*a,r[9]=u*o+v*a,r[10]=f*o+b*a,r[11]=_*o+T*a,r}function Hn(r,e,i){var o=Math.sin(i),a=Math.cos(i),h=e[0],u=e[1],f=e[2],_=e[3],y=e[4],v=e[5],b=e[6],T=e[7];return e!==r&&(r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[0]=h*a+y*o,r[1]=u*a+v*o,r[2]=f*a+b*o,r[3]=_*a+T*o,r[4]=y*a-h*o,r[5]=v*a-u*o,r[6]=b*a-f*o,r[7]=T*a-_*o,r}function $n(r,e){return r[0]=e[0],r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=e[1],r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=e[2],r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function Cn(r,e,i){var o,a,h,u=i[0],f=i[1],_=i[2],y=Math.hypot(u,f,_);return y<Er?null:(u*=y=1/y,f*=y,_*=y,o=Math.sin(e),a=Math.cos(e),r[0]=u*u*(h=1-a)+a,r[1]=f*u*h+_*o,r[2]=_*u*h-f*o,r[3]=0,r[4]=u*f*h-_*o,r[5]=f*f*h+a,r[6]=_*f*h+u*o,r[7]=0,r[8]=u*_*h+f*o,r[9]=f*_*h-u*o,r[10]=_*_*h+a,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r)}function ts(r,e){var i=e[0],o=e[1],a=e[2],h=e[3],u=i+i,f=o+o,_=a+a,y=i*u,v=o*u,b=o*f,T=a*u,A=a*f,M=a*_,P=h*u,O=h*f,B=h*_;return r[0]=1-b-M,r[1]=v+B,r[2]=T-O,r[3]=0,r[4]=v-B,r[5]=1-y-M,r[6]=A+P,r[7]=0,r[8]=T+O,r[9]=A-P,r[10]=1-y-b,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}Math.hypot||(Math.hypot=function(){for(var r=0,e=arguments.length;e--;)r+=arguments[e]*arguments[e];return Math.sqrt(r)});var Ba=mi;function rr(){var r=new Bi(3);return Bi!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r}function Ao(r){var e=new Bi(3);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e}function Ur(r){return Math.hypot(r[0],r[1],r[2])}function ji(r,e,i){var o=new Bi(3);return o[0]=r,o[1]=e,o[2]=i,o}function ar(r,e,i){return r[0]=e[0]+i[0],r[1]=e[1]+i[1],r[2]=e[2]+i[2],r}function Ar(r,e,i){return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],r}function Pn(r,e,i){return r[0]=e[0]*i[0],r[1]=e[1]*i[1],r[2]=e[2]*i[2],r}function Wn(r,e,i){return r[0]=Math.min(e[0],i[0]),r[1]=Math.min(e[1],i[1]),r[2]=Math.min(e[2],i[2]),r}function Xn(r,e,i){return r[0]=Math.max(e[0],i[0]),r[1]=Math.max(e[1],i[1]),r[2]=Math.max(e[2],i[2]),r}function vi(r,e,i){return r[0]=e[0]*i,r[1]=e[1]*i,r[2]=e[2]*i,r}function yn(r,e,i,o){return r[0]=e[0]+i[0]*o,r[1]=e[1]+i[1]*o,r[2]=e[2]+i[2]*o,r}function Us(r,e){var i=e[0]-r[0],o=e[1]-r[1],a=e[2]-r[2];return i*i+o*o+a*a}function js(r){var e=r[0],i=r[1],o=r[2];return e*e+i*i+o*o}function is(r,e){return r[0]=-e[0],r[1]=-e[1],r[2]=-e[2],r}function ki(r,e){var i=e[0],o=e[1],a=e[2],h=i*i+o*o+a*a;return h>0&&(h=1/Math.sqrt(h)),r[0]=e[0]*h,r[1]=e[1]*h,r[2]=e[2]*h,r}function Gi(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]}function nr(r,e,i){var o=e[0],a=e[1],h=e[2],u=i[0],f=i[1],_=i[2];return r[0]=a*_-h*f,r[1]=h*u-o*_,r[2]=o*f-a*u,r}function Gs(r,e,i,o){var a=e[0],h=e[1],u=e[2];return r[0]=a+o*(i[0]-a),r[1]=h+o*(i[1]-h),r[2]=u+o*(i[2]-u),r}function Ki(r,e,i){var o=e[0],a=e[1],h=e[2],u=i[3]*o+i[7]*a+i[11]*h+i[15];return r[0]=(i[0]*o+i[4]*a+i[8]*h+i[12])/(u=u||1),r[1]=(i[1]*o+i[5]*a+i[9]*h+i[13])/u,r[2]=(i[2]*o+i[6]*a+i[10]*h+i[14])/u,r}function qs(r,e,i){var o=e[0],a=e[1],h=e[2];return r[0]=o*i[0]+a*i[3]+h*i[6],r[1]=o*i[1]+a*i[4]+h*i[7],r[2]=o*i[2]+a*i[5]+h*i[8],r}function Mo(r,e,i){var o=i[0],a=i[1],h=i[2],u=e[0],f=e[1],_=e[2],y=a*_-h*f,v=h*u-o*_,b=o*f-a*u,T=a*b-h*v,A=h*y-o*b,M=o*v-a*y,P=2*i[3];return v*=P,b*=P,A*=2,M*=2,r[0]=u+(y*=P)+(T*=2),r[1]=f+v+A,r[2]=_+b+M,r}function pn(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]}var Ji=Ar,ah=Pn,rs=Ur;function jr(){var r=new Bi(4);return Bi!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0,r[3]=0),r}function ao(r,e,i){return r[0]=e[0]*i,r[1]=e[1]*i,r[2]=e[2]*i,r[3]=e[3]*i,r}function Co(r,e){var i=e[0],o=e[1],a=e[2],h=e[3],u=i*i+o*o+a*a+h*h;return u>0&&(u=1/Math.sqrt(u)),r[0]=i*u,r[1]=o*u,r[2]=a*u,r[3]=h*u,r}function nn(r,e,i){var o=e[0],a=e[1],h=e[2],u=e[3];return r[0]=i[0]*o+i[4]*a+i[8]*h+i[12]*u,r[1]=i[1]*o+i[5]*a+i[9]*h+i[13]*u,r[2]=i[2]*o+i[6]*a+i[10]*h+i[14]*u,r[3]=i[3]*o+i[7]*a+i[11]*h+i[15]*u,r}function zn(){var r=new Bi(4);return Bi!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r[3]=1,r}function Po(r){return r[0]=0,r[1]=0,r[2]=0,r[3]=1,r}function lo(r,e,i){i*=.5;var o=e[0],a=e[1],h=e[2],u=e[3],f=Math.sin(i),_=Math.cos(i);return r[0]=o*_+u*f,r[1]=a*_+h*f,r[2]=h*_-a*f,r[3]=u*_-o*f,r}function ns(r,e,i){i*=.5;var o=e[0],a=e[1],h=e[2],u=e[3],f=Math.sin(i),_=Math.cos(i);return r[0]=o*_-h*f,r[1]=a*_+u*f,r[2]=h*_+o*f,r[3]=u*_-a*f,r}rr(),jr();var Kr,fn,Na,os,Zs,Yn=Co,co=(Kr=rr(),fn=ji(1,0,0),Na=ji(0,1,0),function(r,e,i){var o=Gi(e,i);return o<-.999999?(nr(Kr,fn,e),rs(Kr)<1e-6&&nr(Kr,Na,e),ki(Kr,Kr),function(a,h,u){u*=.5;var f=Math.sin(u);a[0]=f*h[0],a[1]=f*h[1],a[2]=f*h[2],a[3]=Math.cos(u)}(r,Kr,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(nr(Kr,e,i),r[0]=Kr[0],r[1]=Kr[1],r[2]=Kr[2],r[3]=1+o,Yn(r,r))});function Jr(){var r=new Bi(2);return Bi!=Float32Array&&(r[0]=0,r[1]=0),r}function ss(r,e){var i=new Bi(2);return i[0]=r,i[1]=e,i}function zo(r,e,i){return r[0]=e[0]+i[0],r[1]=e[1]+i[1],r}function Kn(r,e,i){return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r}function as(r,e,i){return r[0]=e[0]*i,r[1]=e[1]*i,r}function ls(r){return Math.hypot(r[0],r[1])}function Va(r,e){var i=e[0],o=e[1],a=i*i+o*o;return a>0&&(a=1/Math.sqrt(a)),r[0]=e[0]*a,r[1]=e[1]*a,r}function Oi(r,e){return r[0]*e[0]+r[1]*e[1]}function Jn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}zn(),zn(),es(),Jr();var Hs,xn,Ua=function(){if(Zs)return os;function r(e,i,o,a){this.cx=3*e,this.bx=3*(o-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=o,this.p2y=a}return Zs=1,os=r,r.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 o=e,a=0;a<8;a++){var h=this.sampleCurveX(o)-e;if(Math.abs(h)<i)return o;var u=this.sampleCurveDerivativeX(o);if(Math.abs(u)<1e-6)break;o-=h/u}var f=0,_=1;for(o=e,a=0;a<20&&(h=this.sampleCurveX(o),!(Math.abs(h-e)<i));a++)e>h?f=o:_=o,o=.5*(_-f)+f;return o},solve:function(e,i){return this.sampleCurveY(this.solveCurveX(e,i))}},os}(),Ul=Jn(Ua);function ja(){if(xn)return Hs;function r(e,i){this.x=e,this.y=i}return xn=1,Hs=r,r.prototype={clone:function(){return new r(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,i){return this.clone()._rotateAround(e,i)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var i=e.x-this.x,o=e.y-this.y;return i*i+o*o},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,i){return Math.atan2(this.x*i-this.y*e,this.x*e+this.y*i)},_matMult:function(e){var i=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=i,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var i=Math.cos(e),o=Math.sin(e),a=o*this.x+i*this.y;return this.x=i*this.x-o*this.y,this.y=a,this},_rotateAround:function(e,i){var o=Math.cos(e),a=Math.sin(e),h=i.y+a*(this.x-i.x)+o*(this.y-i.y);return this.x=i.x+o*(this.x-i.x)-a*(this.y-i.y),this.y=h,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},r.convert=function(e){return e instanceof r?e:Array.isArray(e)?new r(e[0],e[1]):e},Hs}var He=Jn(ja());function ho(r,e){if(Array.isArray(r)){if(!Array.isArray(e)||r.length!==e.length)return!1;for(let i=0;i<r.length;i++)if(!ho(r[i],e[i]))return!1;return!0}if(typeof r=="object"&&r!==null&&e!==null){if(typeof e!="object"||Object.keys(r).length!==Object.keys(e).length)return!1;for(const i in r)if(!ho(r[i],e[i]))return!1;return!0}return r===e}const jl=Math.PI/180,Ee=180/Math.PI;function k(r){return r*jl}function V(r){return r*Ee}const K=[[0,0],[1,0],[1,1],[0,1]];function oe(r){if(r<=0)return 0;if(r>=1)return 1;const e=r*r,i=e*r;return 4*(r<.5?i:3*(r-e)+i-.75)}function re(r,e,i,o){const a=new Ul(r,e,i,o);return function(h){return a.solve(h)}}const le=re(.25,.1,.25,1);function ce(r,e,i){return Math.min(i,Math.max(e,r))}function he(r,e,i){return(i=ce((i-r)/(e-r),0,1))*i*(3-2*i)}function ve(r,e,i){const o=i-e,a=((r-e)%o+o)%o+e;return a===e?i:a}function Me(r,e,i){if(!r.length)return i(null,[]);let o=r.length;const a=new Array(r.length);let h=null;r.forEach((u,f)=>{e(u,(_,y)=>{_&&(h=_),a[f]=y,--o==0&&i(h,a)})})}function ye(r,...e){for(const i of e)for(const o in i)r[o]=i[o];return r}let $e=1;function Je(){return $e++}function ct(r){return r<=1?1:Math.pow(2,Math.ceil(Math.log(r)/Math.LN2))}function St(r,e){r.forEach(i=>{e[i]&&(e[i]=e[i].bind(e))})}function At(r,e,i){const o={};for(const a in r)o[a]=e.call(this,r[a],a,r);return o}function Rt(r,e,i){const o={};for(const a in r)e.call(this,r[a],a,r)&&(o[a]=r[a]);return o}function Bt(r){return Array.isArray(r)?r.map(Bt):typeof r=="object"&&r?At(r,Bt):r}const qi={};function Vt(r){qi[r]||(typeof console<"u"&&console.warn(r),qi[r]=!0)}function _i(r,e,i){return(i.y-r.y)*(e.x-r.x)>(e.y-r.y)*(i.x-r.x)}function Jt(r){let e=0;for(let i,o,a=0,h=r.length,u=h-1;a<h;u=a++)i=r[a],o=r[u],e+=(o.x-i.x)*(i.y+o.y);return e}function gi([r,e,i]){const o=k(e+90),a=k(i);return{x:r*Math.cos(o)*Math.sin(a),y:r*Math.sin(o)*Math.sin(a),z:r*Math.cos(a),azimuthal:e,polar:i}}function bi(r){return(typeof self<"u"||r!==void 0)&&typeof WorkerGlobalScope<"u"&&(r!==void 0?r:self)instanceof WorkerGlobalScope}function Qi(r){const e={};if(r.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(i,o,a,h)=>{const u=a||h;return e[o]=!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 lr=null;function mr(r,e){return[r[4*e],r[4*e+1],r[4*e+2],r[4*e+3]]}function Mr(r,e,i,o){for(;e<i;){const a=e+i>>1;r[a]<o?e=a+1:i=a}return e}function uo(r,e,i,o){for(;e<i;){const a=e+i>>1;r[a]<=o?e=a+1:i=a}return e}function Or(r){return r>0?1/(1.001-r):1+r}function Fr(r){return r>0?1-1/(1.001-r):-r}function br(r,e,i){return(r-e.min)*(i.max-i.min)/(e.max-e.min)+i.min}const zr={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(!zr.API_URL)return null;try{const r=new URL(zr.API_URL);return r.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":r.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",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1"};function Qn(r){return zr.API_URL_REGEX.test(r)}function cs(r){return zr.API_SPRITE_REGEX.test(r)}let Ga,$s,Gl,qa,hs,Za;function lh(){return Ga==null&&(Ga=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),Ga}const Dn={now:()=>qa!==void 0?qa:performance.now(),setNow(r){qa=r},restoreNow(){qa=void 0},frame(r){const e=requestAnimationFrame(r);return{cancel:()=>cancelAnimationFrame(e)}},getImageData(r,e=0){const{width:i,height:o}=r;hs||(hs=document.createElement("canvas"));const a=hs.getContext("2d",{willReadFrequently:!0});if(!a)throw new Error("failed to create canvas 2d context");return(i>hs.width||o>hs.height)&&(hs.width=i,hs.height=o),a.clearRect(-e,-e,i+2*e,o+2*e),a.drawImage(r,0,0,i,o),a.getImageData(-e,-e,i+2*e,o+2*e)},resolveURL:r=>($s||($s=document.createElement("a")),$s.href=r,$s.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(Gl==null&&(Gl=window.matchMedia("(prefers-reduced-motion: reduce)")),Gl.matches)},hasCanvasFingerprintNoise(){if(Za!==void 0)return Za;if(!lh())return Za=!1,!1;const r=new OffscreenCanvas(85,1),e=r.getContext("2d",{willReadFrequently:!0});let i=0;for(let a=0;a<r.width;++a)e.fillStyle=`rgba(${i++},${i++},${i++}, 255)`,e.fillRect(a,0,1,1);const o=e.getImageData(0,0,r.width,r.height);i=0;for(let a=0;a<o.data.length;++a)if(a%4!=3&&i++!==o.data[a])return Za=!0,!0;return Za=!1,!1}};function ch(r,e){const i=r.indexOf("?");if(i<0)return`${r}?${new URLSearchParams(e).toString()}`;const o=new URLSearchParams(r.slice(i));for(const a in e)o.set(a,e[a]);return`${r.slice(0,i)}?${o.toString()}`}function on(r,e={persistentParams:[]}){const i=r.indexOf("?");if(i<0)return r;const o=new URLSearchParams,a=new URLSearchParams(r.slice(i));for(const u of e.persistentParams){const f=a.get(u);f&&o.set(u,f)}const h=o.toString();return`${r.slice(0,i)}${h.length>0?`?${h}`:""}`}const Rn="mapbox-tiles";let po=500,Ln=50;const fo=["language","worldview","jobid"];let vn,Ha;function hh(){try{return caches}catch{}}function mo(){const r=hh();r&&vn==null&&(vn=r.open(Rn))}let $a=1/0;const uh={supported:!1,testSupport:function(r){!ql&&Gr&&(Zl?Qu(r):Wa=r)}};let Wa,Gr,ql=!1,Zl=!1;const Ws=typeof self<"u"?self:{};function Qu(r){const e=r.createTexture();r.bindTexture(r.TEXTURE_2D,e);try{if(r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,Gr),r.isContextLost())return;uh.supported=!0}catch{}r.deleteTexture(e),ql=!0}Ws.document&&(Gr=Ws.document.createElement("img"),Gr.onload=function(){Wa&&Qu(Wa),Wa=null,Zl=!0},Gr.onerror=function(){ql=!0,Wa=null},Gr.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const Hl={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Iconset:"Iconset",Image:"Image",Model:"Model"};typeof Object.freeze=="function"&&Object.freeze(Hl);class $l extends Error{constructor(e,i,o){i===401&&Qn(o)&&(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=o}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const Yt=bi()?()=>self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,Xs=function(r,e){if(!(/^file:/.test(i=r.url)||/^file:/.test(Yt())&&!/^\w+:/.test(i))){if(self.fetch&&self.Request&&self.AbortController&&Request.prototype.hasOwnProperty("signal"))return function(o,a){const h=new AbortController,u=new Request(o.url,{method:o.method||"GET",body:o.body,credentials:o.credentials,headers:o.headers,referrer:Yt(),referrerPolicy:o.referrerPolicy,signal:h.signal});let f=!1,_=!1;const y=(v=u.url).indexOf("sku=")>0&&Qn(v);var v;o.type==="json"&&u.headers.set("Accept","application/json");const b=(A,M,P)=>{if(_)return;if(A&&A.message!=="SecurityError"&&Vt(A.toString()),M&&P)return T(M);const O=Date.now();fetch(u).then(B=>{if(B.ok){const q=y?B.clone():null;return T(B,q,O)}return a(new $l(B.statusText,B.status,o.url))}).catch(B=>{B.name!=="AbortError"&&a(new Error(`${B.message} ${o.url}`))})},T=(A,M,P)=>{(o.type==="arrayBuffer"?A.arrayBuffer():o.type==="json"?A.json():A.text()).then(O=>{_||(M&&P&&function(B,q,U){if(mo(),vn==null)return;const z=Qi(q.headers.get("Cache-Control")||"");if(z["no-store"])return;const N={status:q.status,statusText:q.statusText,headers:new Headers};q.headers.forEach((te,se)=>N.headers.set(se,te)),z["max-age"]&&N.headers.set("Expires",new Date(U+1e3*z["max-age"]).toUTCString());const G=N.headers.get("Expires");if(!G||new Date(G).getTime()-U<42e4)return;let $=on(B.url,{persistentParams:fo});if(q.status===206){const te=B.headers.get("Range");if(!te)return;N.status=200,$=ch($,{range:te})}(function(te,se){if(Ha===void 0)try{new Response(new ReadableStream),Ha=!0}catch{Ha=!1}Ha?se(te.body):te.blob().then(se).catch(ae=>Vt(ae.message))})(q,te=>{const se=new Response((ae=q.status)!==200&&ae!==404&&[101,103,204,205,304].includes(ae)?null:te,N);var ae;mo(),vn!=null&&vn.then(de=>de.put($,se)).catch(de=>Vt(de.message))})}(u,M,P),f=!0,a(null,O,A.headers.get("Cache-Control"),A.headers.get("Expires")))}).catch(O=>{_||a(new Error(O.message))})};return y?function(A,M){if(mo(),vn==null)return M(null);vn.then(P=>{let O=on(A.url,{persistentParams:fo});const B=A.headers.get("Range");B&&(O=ch(O,{range:B})),P.match(O).then(q=>{const U=function(z){if(!z)return!1;const N=new Date(z.headers.get("Expires")||0),G=Qi(z.headers.get("Cache-Control")||"");return Number(N)>Date.now()&&!G["no-cache"]}(q);P.delete(O).catch(M),U&&P.put(O,q.clone()).catch(M),M(null,q,U)}).catch(M)}).catch(M)}(u,b):b(null,null),{cancel:()=>{_=!0,f||h.abort()}}}(r,e);if(bi(self)&&self.worker.actor)return self.worker.actor.send("getResource",r,e,void 0,!0)}var i;return function(o,a){const h=new XMLHttpRequest;h.open(o.method||"GET",o.url,!0),o.type==="arrayBuffer"&&(h.responseType="arraybuffer");for(const u in o.headers)h.setRequestHeader(u,o.headers[u]);return o.type==="json"&&(h.responseType="text",h.setRequestHeader("Accept","application/json")),h.withCredentials=o.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(o.type==="json")try{u=JSON.parse(h.response)}catch(f){return a(f)}a(null,u,h.getResponseHeader("Cache-Control"),h.getResponseHeader("Expires"))}else a(new $l(h.statusText,h.status,o.url))},h.send(o.body),{cancel:()=>h.abort()}}(r,e)},Ys=function(r,e){return Xs(ye(r,{type:"arrayBuffer"}),e)};function Kp(r){const e=document.createElement("a");return e.href=r,e.protocol===location.protocol&&e.host===location.host}const ed="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let us,Do;us=[],Do=0;const Ks=function(r,e){if(uh.supported&&(r.headers||(r.headers={}),r.headers.accept="image/webp,*/*"),Do>=zr.MAX_PARALLEL_IMAGE_REQUESTS){const h={requestParameters:r,callback:e,cancelled:!1,cancel(){this.cancelled=!0}};return us.push(h),h}Do++;let i=!1;const o=()=>{if(!i)for(i=!0,Do--;us.length&&Do<zr.MAX_PARALLEL_IMAGE_REQUESTS;){const h=us.shift(),{requestParameters:u,callback:f,cancelled:_}=h;_||(h.cancel=Ks(u,f).cancel)}},a=Ys(r,(h,u,f,_)=>{o(),h?e(h):u&&(self.createImageBitmap?function(y,v){const b=new Blob([new Uint8Array(y)],{type:"image/png"});createImageBitmap(b).then(T=>{v(null,T)}).catch(T=>{v(new Error(`Could not load image because of ${T.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(u,(y,v)=>e(y,v,f,_)):function(y,v){const b=new Image;b.onload=()=>{v(null,b),URL.revokeObjectURL(b.src),b.onload=null,requestAnimationFrame(()=>{b.src=ed})},b.onerror=()=>v(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const T=new Blob([new Uint8Array(y)],{type:"image/png"});b.src=y.byteLength?URL.createObjectURL(T):ed}(u,(y,v)=>e(y,v,f,_)))});return{cancel:()=>{a.cancel(),o()}}};var td,dh,ds,Xa={exports:{}},Js={exports:{}},Wl={exports:{}},ph=function(){if(ds)return Xa.exports;ds=1;var r=(td||(td=1,Js.exports=function(i,o){var a,h,u,f,_,y,v,b;for(h=i.length-(a=3&i.length),u=o,_=3432918353,y=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&(f=5*(65535&(u=(u^=v=(65535&(v=(v=(65535&v)*_+(((v>>>16)*_&65535)<<16)&4294967295)<<15|v>>>17))*y+(((v>>>16)*y&65535)<<16)&4294967295)<<13|u>>>19))+((5*(u>>>16)&65535)<<16)&4294967295))+((58964+(f>>>16)&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))*y+(((v>>>16)*y&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}),Js.exports),e=(dh||(dh=1,Wl.exports=function(i,o){for(var a,h=i.length,u=o^h,f=0;h>=4;)a=1540483477*(65535&(a=255&i.charCodeAt(f)|(255&i.charCodeAt(++f))<<8|(255&i.charCodeAt(++f))<<16|(255&i.charCodeAt(++f))<<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,++f;switch(h){case 3:u^=(255&i.charCodeAt(f+2))<<16;case 2:u^=(255&i.charCodeAt(f+1))<<8;case 1:u=1540483477*(65535&(u^=255&i.charCodeAt(f)))+((1540483477*(u>>>16)&65535)<<16)}return u=1540483477*(65535&(u^=u>>>13))+((1540483477*(u>>>16)&65535)<<16),(u^=u>>>15)>>>0}),Wl.exports);return Xa.exports=r,Xa.exports.murmur3=r,Xa.exports.murmur2=e,Xa.exports}(),sn=Jn(ph);class Ro{constructor(e,...i){ye(this,i[0]||{}),this.type=e}}class fh extends Ro{constructor(e,i={}){super("error",ye({error:e},i))}}function mh(r,e,i){i[r]&&i[r].indexOf(e)!==-1||(i[r]=i[r]||[],i[r].push(e))}function Xl(r,e,i){if(i&&i[r]){const o=i[r].indexOf(e);o!==-1&&i[r].splice(o,1)}}class ps{on(e,i){return this._listeners=this._listeners||{},mh(e,i,this._listeners),this}off(e,i){return Xl(e,i,this._listeners),Xl(e,i,this._oneTimeListeners),this}once(e,i){return i?(this._oneTimeListeners=this._oneTimeListeners||{},mh(e,i,this._oneTimeListeners),this):new Promise(o=>{this.once(e,o)})}fire(e,i){const o=typeof e=="string"?new Ro(e,i):e,a=o.type;if(this.listens(a)){o.target=this;const h=this._listeners&&this._listeners[a]?this._listeners[a].slice():[];for(const _ of h)_.call(this,o);const u=this._oneTimeListeners&&this._oneTimeListeners[a]?this._oneTimeListeners[a].slice():[];for(const _ of u)Xl(a,_,this._oneTimeListeners),_.call(this,o);const f=this._eventedParent;f&&(ye(o,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),f.fire(o))}else o instanceof fh&&console.error(o.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 an{constructor(e){typeof e=="string"?this.name=e:(this.name=e.name,this.iconsetId=e.iconsetId)}static from(e){return new an(e)}static toString(e){return e.iconsetId?`${e.name}${e.iconsetId}`:e.name}static parse(e){const[i,o]=e.split("");return new an({name:i,iconsetId:o})}static isEqual(e,i){return e.name===i.name&&e.iconsetId===i.iconsetId}toString(){return an.toString(this)}serialize(){return{name:this.name,iconsetId:this.iconsetId}}}var _h,Yl={},Ya=function(){if(_h)return Yl;_h=1;var r={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 o(h){return(u=h[h.length-1]==="%"?parseFloat(h)/100:parseFloat(h))<0?0:u>1?1:u;var u}function a(h,u,f){return f<0?f+=1:f>1&&(f-=1),6*f<1?h+(u-h)*f*6:2*f<1?u:3*f<2?h+(u-h)*(2/3-f)*6:h}try{Yl.parseCSSColor=function(h){var u,f=h.replace(/ /g,"").toLowerCase();if(f in r)return r[f].slice();if(f[0]==="#")return f.length===4?(u=parseInt(f.substr(1),16))>=0&&u<=4095?[(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1]:null:f.length===7&&(u=parseInt(f.substr(1),16))>=0&&u<=16777215?[(16711680&u)>>16,(65280&u)>>8,255&u,1]:null;var _=f.indexOf("("),y=f.indexOf(")");if(_!==-1&&y+1===f.length){var v=f.substr(0,_),b=f.substr(_+1,y-(_+1)).split(","),T=1;switch(v){case"rgba":if(b.length!==4)return null;T=o(b.pop());case"rgb":return b.length!==3?null:[i(b[0]),i(b[1]),i(b[2]),T];case"hsla":if(b.length!==4)return null;T=o(b.pop());case"hsl":if(b.length!==3)return null;var A=(parseFloat(b[0])%360+360)%360/360,M=o(b[1]),P=o(b[2]),O=P<=.5?P*(M+1):P+M-P*M,B=2*P-O;return[e(255*a(B,O,A+1/3)),e(255*a(B,O,A)),e(255*a(B,O,A-1/3)),T];default:return null}}return null}}catch{}return Yl}();class ei{constructor(e,i,o,a=1){this.r=e,this.g=i,this.b=o,this.a=a}static parse(e){if(!e)return;if(e instanceof ei)return e;if(typeof e!="string")return;const i=Ya.parseCSSColor(e);return i?new ei(i[0]/255*i[3],i[1]/255*i[3],i[2]/255*i[3],i[3]):void 0}toStringPremultipliedAlpha(){const[e,i,o,a]=this.a===0?[0,0,0,0]:[255*this.r/this.a,255*this.g/this.a,255*this.b/this.a,this.a];return`rgba(${Math.round(e)},${Math.round(i)},${Math.round(o)},${a})`}toString(){const[e,i,o,a]=[this.r,this.g,this.b,this.a];return`rgba(${Math.round(255*e)},${Math.round(255*i)},${Math.round(255*o)},${a})`}toRenderColor(e){const{r:i,g:o,b:a,a:h}=this;return new id(e,i,o,a,h)}clone(){return new ei(this.r,this.g,this.b,this.a)}}class id{constructor(e,i,o,a,h){if(e){const u=e.image.height,f=u*u;i=h===0?0:i/h*(u-1),o=h===0?0:o/h*(u-1),a=h===0?0:a/h*(u-1);const _=Math.floor(i),y=Math.floor(o),v=Math.floor(a),b=Math.ceil(i),T=Math.ceil(o),A=Math.ceil(a),M=i-_,P=o-y,O=a-v,B=e.image.data,q=4*(_+y*f+v*u),U=4*(_+y*f+A*u),z=4*(_+T*f+v*u),N=4*(_+T*f+A*u),G=4*(b+y*f+v*u),$=4*(b+y*f+A*u),te=4*(b+T*f+v*u),se=4*(b+T*f+A*u);if(q<0||se>=B.length)throw new Error("out of range");this.r=ft(ft(ft(B[q],B[U],O),ft(B[z],B[N],O),P),ft(ft(B[G],B[$],O),ft(B[te],B[se],O),P),M)/255*h,this.g=ft(ft(ft(B[q+1],B[U+1],O),ft(B[z+1],B[N+1],O),P),ft(ft(B[G+1],B[$+1],O),ft(B[te+1],B[se+1],O),P),M)/255*h,this.b=ft(ft(ft(B[q+2],B[U+2],O),ft(B[z+2],B[N+2],O),P),ft(ft(B[G+2],B[$+2],O),ft(B[te+2],B[se+2],O),P),M)/255*h,this.a=h}else this.r=i,this.g=o,this.b=a,this.a=h}toArray(){const{r:e,g:i,b:o,a}=this;return a===0?[0,0,0,0]:[255*e/a,255*i/a,255*o/a,a]}toHslaArray(){if(this.a===0)return[0,0,0,0];const{r:e,g:i,b:o,a}=this,h=Math.min(Math.max(e/a,0),1),u=Math.min(Math.max(i/a,0),1),f=Math.min(Math.max(o/a,0),1),_=Math.min(h,u,f),y=Math.max(h,u,f),v=(_+y)/2;if(_===y)return[0,0,100*v,a];const b=y-_,T=v>.5?b/(2-y-_):b/(y+_);let A=0;return y===h?A=(u-f)/b+(u<f?6:0):y===u?A=(f-h)/b+2:y===f&&(A=(h-u)/b+4),A*=60,[Math.min(Math.max(A,0),360),Math.min(Math.max(100*T,0),100),Math.min(Math.max(100*v,0),100),a]}toArray01(){const{r:e,g:i,b:o,a}=this;return a===0?[0,0,0,0]:[e/a,i/a,o/a,a]}toArray01Scaled(e){const{r:i,g:o,b:a,a:h}=this;return h===0?[0,0,0]:[i/h*e,o/h*e,a/h*e]}toArray01PremultipliedAlpha(){const{r:e,g:i,b:o,a}=this;return[e,i,o,a]}toArray01Linear(){const{r:e,g:i,b:o,a}=this;return a===0?[0,0,0,0]:[Math.pow(e/a,2.2),Math.pow(i/a,2.2),Math.pow(o/a,2.2),a]}}function ft(r,e,i){return r*(1-i)+e*i}function rd(r,e,i){return r.map((o,a)=>ft(o,e[a],i))}function Kl(r){return r*r*r*r*r}ei.black=new ei(0,0,0,1),ei.white=new ei(1,1,1,1),ei.transparent=new ei(0,0,0,0),ei.red=new ei(1,0,0,1),ei.blue=new ei(0,0,1,1);var Jl=Object.freeze({__proto__:null,array:rd,color:function(r,e,i){return new ei(ft(r.r,e.r,i),ft(r.g,e.g,i),ft(r.b,e.b,i),ft(r.a,e.a,i))},easeIn:Kl,number:ft});function Ka(r,...e){for(const i of e)for(const o in i)r[o]=i[o];return r}class bn extends Error{constructor(e,i){super(i),this.message=i,this.key=e}}class fs{constructor(e,i=[]){this.parent=e,this.bindings={};for(const[o,a]of i)this.bindings[o]=a}concat(e){return new fs(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 Lo={kind:"null"},pt={kind:"number"},di={kind:"string"},ni={kind:"boolean"},Qr={kind:"color"},ko={kind:"object"},ii={kind:"value"},ms={kind:"collator"},Ja={kind:"formatted"},Qa={kind:"resolvedImage"};function qr(r,e){return{kind:"array",itemType:r,N:e}}function cr(r){if(r.kind==="array"){const e=cr(r.itemType);return typeof r.N=="number"?`array<${e}, ${r.N}>`:r.itemType.kind==="value"?"array":`array<${e}>`}return r.kind}const Jp=[Lo,pt,di,ni,Qr,Ja,ko,qr(ii),Qa];function el(r,e){if(e.kind==="error")return null;if(r.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!el(r.itemType,e.itemType))&&(typeof r.N!="number"||r.N===e.N))return null}else{if(r.kind===e.kind)return null;if(r.kind==="value"){for(const i of Jp)if(!el(i,e))return null}}return`Expected ${cr(r)} but found ${cr(e)} instead.`}function gh(r,e){return e.some(i=>i.kind===r.kind)}function Qs(r,e){return e.some(i=>i==="null"?r===null:i==="array"?Array.isArray(r):i==="object"?r&&!Array.isArray(r)&&typeof r=="object":i===typeof r)}class Oo{constructor(e,i,o){this.sensitivity=e?i?"variant":"case":i?"accent":"base",this.locale=o,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 Ql{constructor(e,i,o,a,h){this.text=e.normalize?e.normalize():e,this.image=i,this.scale=o,this.fontStack=a,this.textColor=h}}class Zr{constructor(e){this.sections=e}static fromString(e){return new Zr([new Ql(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 Zr?e:Zr.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 o={};i.fontStack&&(o["text-font"]=["literal",i.fontStack.split(",")]),i.scale&&(o["font-scale"]=i.scale),i.textColor&&(o["text-color"]=["rgba"].concat(i.textColor.toRenderColor(null).toArray())),e.push(o)}return e}}class kn{constructor(e,i={}){if(this.id=an.from(e),this.options=Object.assign({},i),i.transform){const{a:o,b:a,c:h,d:u,e:f,f:_}=i.transform;this.options.transform=new DOMMatrix([o,a,h,u,f,_])}else this.options.transform=new DOMMatrix([1,0,0,1,0,0])}toString(){const{a:e,b:i,c:o,d:a,e:h,f:u}=this.options.transform;return JSON.stringify({name:this.id.name,iconsetId:this.id.iconsetId,params:this.options.params,transform:{a:e,b:i,c:o,d:a,e:h,f:u}})}static parse(e){let i,o,a,h;try{({name:i,iconsetId:o,params:a,transform:h}=JSON.parse(e)||{})}catch{return null}if(!i)return null;const{a:u,b:f,c:_,d:y,e:v,f:b}=h||{};return new kn({name:i,iconsetId:o},{params:a,transform:new DOMMatrix([u,f,_,y,v,b])})}scaleSelf(e,i){return this.options.transform.scaleSelf(e,i),this}}class en{constructor(e,i,o,a,h=!1){this.primaryId=an.from(e),this.primaryOptions=i,o&&(this.secondaryId=an.from(o)),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 kn(this.primaryId,this.primaryOptions)}hasSecondary(){return!!this.secondaryId}getSecondary(){return this.secondaryId?new kn(this.secondaryId,this.secondaryOptions):null}static from(e){return typeof e=="string"?en.build({name:e}):e}static build(e,i,o,a){return!e||typeof e=="object"&&!("name"in e)?null:new en(e,o,i,a)}}function nd(r,e,i,o){return typeof r=="number"&&r>=0&&r<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof i=="number"&&i>=0&&i<=255?o===void 0||typeof o=="number"&&o>=0&&o<=1?null:`Invalid rgba value [${[r,e,i,o].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof o=="number"?[r,e,i,o]:[r,e,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function ea(r){if(r===null||typeof r=="string"||typeof r=="boolean"||typeof r=="number"||r instanceof ei||r instanceof Oo||r instanceof Zr||r instanceof en)return!0;if(Array.isArray(r)){for(const e of r)if(!ea(e))return!1;return!0}if(typeof r=="object"){for(const e in r)if(!ea(r[e]))return!1;return!0}return!1}function pr(r){if(r===null)return Lo;if(typeof r=="string")return di;if(typeof r=="boolean")return ni;if(typeof r=="number")return pt;if(r instanceof ei)return Qr;if(r instanceof Oo)return ms;if(r instanceof Zr)return Ja;if(r instanceof en)return Qa;if(Array.isArray(r)){const e=r.length;let i;for(const o of r){const a=pr(o);if(i){if(i===a)continue;i=ii;break}i=a}return qr(i||ii,e)}return ko}function Hr(r){const e=typeof r;return r===null?"":e==="string"||e==="number"||e==="boolean"?String(r):r instanceof ei?r.toStringPremultipliedAlpha():r instanceof Zr||r instanceof en?r.toString():JSON.stringify(r)}class Lt{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(!ea(e[1]))return i.error("invalid value");const o=e[1];let a=pr(o);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 Lt(a,o)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof ei?["rgba"].concat(this.value.toRenderColor(null).toArray()):this.value instanceof Zr?this.value.serialize():this.value}}class nt{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const tl={string:di,number:pt,boolean:ni,object:ko};class vt{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 o,a=1;const h=e[0];if(h==="array"){let f,_;if(e.length>2){const y=e[1];if(typeof y!="string"||!(y in tl)||y==="object")return i.error('The item type argument of "array" must be one of string, number, boolean',1);f=tl[y],a++}else f=ii;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++}o=qr(f,_)}else o=tl[h];const u=[];for(;a<e.length;a++){const f=i.parse(e[a],a,ii);if(!f)return null;u.push(f)}return new vt(o,u)}evaluate(e){for(let i=0;i<this.args.length;i++){const o=this.args[i].evaluate(e);if(!el(this.type,pr(o)))return o;if(i===this.args.length-1)throw new nt(`The expression ${JSON.stringify(this.args[i].serialize())} evaluated to ${cr(pr(o))} but was expected to be of type ${cr(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 o=e.itemType;if(o.kind==="string"||o.kind==="number"||o.kind==="boolean"){i.push(o.kind);const a=e.N;(typeof a=="number"||this.args.length>1)&&i.push(a)}}return i.concat(this.args.map(o=>o.serialize()))}}class _s{constructor(e){this.type=Ja,this.sections=e}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");const o=e[1];if(!Array.isArray(o)&&typeof o=="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 f=e[u];if(h&&typeof f=="object"&&!Array.isArray(f)){h=!1;let _=null;if(f["font-scale"]&&(_=i.parseObjectValue(f["font-scale"],u,"font-scale",pt),!_))return null;let y=null;if(f["text-font"]&&(y=i.parseObjectValue(f["text-font"],u,"text-font",qr(di)),!y))return null;let v=null;if(f["text-color"]&&(v=i.parseObjectValue(f["text-color"],u,"text-color",Qr),!v))return null;const b=a[a.length-1];b.scale=_,b.font=y,b.textColor=v}else{const _=i.parse(e[u],u,ii);if(!_)return null;const y=_.type.kind;if(y!=="string"&&y!=="value"&&y!=="null"&&y!=="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 _s(a)}evaluate(e){return new Zr(this.sections.map(i=>{const o=i.content.evaluate(e);return pr(o)===Qa?new Ql("",o,null,null,null):new Ql(Hr(o),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 o={};i.scale&&(o["font-scale"]=i.scale.serialize()),i.font&&(o["text-font"]=i.font.serialize()),i.textColor&&(o["text-color"]=i.textColor.serialize()),e.push(o)}return e}}class ta{constructor(e,i,o,a){this._imageWarnHistory={},this.type=Qa,this.namePrimary=e,this.nameSecondary=i,o&&(this.paramsPrimary=o.params,this.iconsetIdPrimary=o.iconset?o.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 o=1;const a=[];function h(){if(o<e.length){const f=i.parse(e[o],o++,di);return f?(a.push({image:f,options:{}}),!0):(i.error(a.length?"Secondary image variant is not a string.":"No image name provided."),!1)}return!0}function u(){if(o<e.length){const _=e[o];if((f=_)===null||typeof f!="object"||Array.isArray(f))return!0;const y=_.params,v=_.iconset,b=i.concat(o);if(!y&&!v)return o++,!0;if(y){if(typeof y!="object"||y.constructor!==Object)return b.error('Image options "params" should be an object'),!1;const T={},A=b.concat(void 0,"params");for(const M in y){if(!M)return A.error("Image parameter name should be non-empty"),!1;const P=A.concat(void 0,M).parse(y[M],void 0,Qr,void 0,{typeAnnotation:"coerce"});if(!P)return!1;T[M]=P}a[a.length-1].options.params=T}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 o++,!0}var f;return!0}for(let f=0;f<2;f++)if(!h()||!u())return;return new ta(a[0].image,a[1]?a[1].image:void 0,a[0].options,a[1]?a[1].options:void 0)}evaluateParams(e,i){const o={};if(i){for(const a in i)if(i[a])try{o[a]=i[a].evaluate(e)}catch{continue}if(Object.keys(o).length!==0)return{params:o}}}evaluate(e){const i={name:this.namePrimary.evaluate(e),iconsetId:this.iconsetIdPrimary},o=this.nameSecondary?{name:this.nameSecondary.evaluate(e),iconsetId:this.iconsetIdSecondary}:void 0,a=en.build(i,o,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=>an.isEqual(u,h)),a.available){const u=a.getSecondary()?a.getSecondary().id:null;u&&(a.available=e.availableImages.some(f=>an.isEqual(f,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 o={};if(i&&(o.iconset={id:i}),e){o.params={};for(const a in e)e[a]&&(o.params[a]=e[a].serialize())}return Object.keys(o).length>0?o: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 bt(r){return r instanceof Number?"number":r instanceof String?"string":r instanceof Boolean?"boolean":Array.isArray(r)?"array":r===null?"null":typeof r}const od={"to-boolean":ni,"to-color":Qr,"to-number":pt,"to-string":di};class On{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 o=e[0],a=[];let h=Lo;if(o==="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=qr(i.expectedType.itemType,u)}else{if(!(u>0&&ea(e[1][0])))return null;h=qr(pr(e[1][0]),u)}for(let f=0;f<u;f++){const _=e[1][f];let y;if(bt(_)==="array")y=i.parse(_,void 0,h.itemType);else{const v=bt(_);if(v!==h.itemType.kind)return i.error(`Expected ${h.itemType.kind} but found ${v}.`);y=i.registry.literal.parse(["literal",_===void 0?null:_],i)}if(!y)return null;a.push(y)}}else{if((o==="to-boolean"||o==="to-string")&&e.length!==2)return i.error("Expected one argument.");h=od[o];for(let u=1;u<e.length;u++){const f=i.parse(e[u],u,ii);if(!f)return null;a.push(f)}}return new On(h,a)}evaluate(e){if(this.type.kind==="boolean")return!!this.args[0].evaluate(e);if(this.type.kind==="color"){let i,o;for(const a of this.args){if(i=a.evaluate(e),o=null,i instanceof ei)return i;if(typeof i=="string"){const h=e.parseColor(i);if(h)return h}else if(Array.isArray(i)&&(o=i.length<3||i.length>4?`Invalid rbga value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.`:nd(i[0],i[1],i[2],i[3]),!o))return new ei(i[0]/255,i[1]/255,i[2]/255,i[3])}throw new nt(o||`Could not parse color from value '${typeof i=="string"?i:String(JSON.stringify(i))}'`)}if(this.type.kind==="number"){let i=null;for(const o of this.args){if(i=o.evaluate(e),i===null)return 0;const a=Number(i);if(!isNaN(a))return a}throw new nt(`Could not convert ${JSON.stringify(i)} to number.`)}return this.type.kind==="formatted"?Zr.fromString(Hr(this.args[0].evaluate(e))):this.type.kind==="resolvedImage"?en.build(Hr(this.args[0].evaluate(e))):this.type.kind==="array"?this.args.map(i=>i.evaluate(e)):Hr(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 _s([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new ta(this.args[0]).serialize();const e=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(i=>{e.push(i.serialize())}),e}}const sd=["Unknown","Point","LineString","Polygon"];class ec{constructor(e,i){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}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?sd[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:o,y:a}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(o*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]=ei.parse(e)),i}getConfig(e){return this.options?this.options.get(e):null}}class Br{constructor(e,i,o,a,h){this.name=e,this.type=i,this._evaluate=o,this.args=a,this._overloadIndex=h}evaluate(e){if(!this._evaluate){const i=Br.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 o=e[0],a=Br.definitions[o];if(!a)return i.error(`Unknown expression "${o}". 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,f=[];let _=null,y=-1;for(const[v,b]of u){if(Array.isArray(v)&&v.length!==e.length-1)continue;f.push(v),y++,_=new _d(i.registry,i.path,null,i.scope,void 0,i._scope,i.options);const T=[];let A=!1;for(let M=1;M<e.length;M++){const P=e[M],O=Array.isArray(v)?v[M-1]:v.type,B=_.parse(P,1+T.length,O);if(!B){A=!0;break}T.push(B)}if(!A)if(Array.isArray(v)&&v.length!==T.length)_.error(`Expected ${v.length} arguments, but found ${T.length} instead.`);else{for(let M=0;M<T.length;M++){const P=Array.isArray(v)?v[M]:v.type,O=T[M];_.concat(M+1).checkSubtype(P,O.type)}if(_.errors.length===0)return new Br(o,h,b,T,y)}}if(f.length===1)i.errors.push(..._.errors);else{const v=(f.length?f:u.map(([T])=>T)).map($r).join(" | "),b=[];for(let T=1;T<e.length;T++){const A=i.parse(e[T],1+b.length);if(!A)return null;b.push(cr(A.type))}i.error(`Expected arguments of type ${v}, but found (${b.join(", ")}) instead.`)}return null}static register(e,i){Br.definitions=i;for(const o in i)e[o]=Br}}function $r(r){return Array.isArray(r)?`(${r.map(cr).join(", ")})`:`(${cr(r.type)}...)`}class ia{constructor(e,i,o){this.type=ms,this.locale=o,this.caseSensitive=e,this.diacriticSensitive=i}static parse(e,i){if(e.length!==2)return i.error("Expected one argument.");const o=e[1];if(typeof o!="object"||Array.isArray(o))return i.error("Collator options argument must be an object.");const a=o["case-sensitive"]===void 0?i.parse(!1,1,ni):i.parseObjectValue(o["case-sensitive"],1,"case-sensitive",ni);if(!a)return null;const h=o["diacritic-sensitive"]===void 0?i.parse(!1,1,ni):i.parseObjectValue(o["diacritic-sensitive"],1,"diacritic-sensitive",ni);if(!h)return null;let u=null;return o.locale&&(u=i.parseObjectValue(o.locale,1,"locale",di),!u)?null:new ia(a,h,u)}evaluate(e){return new Oo(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 Fo(r,e,i=0,o=r.length-1,a=ys){for(;o>i;){if(o-i>600){const _=o-i+1,y=e-i+1,v=Math.log(_),b=.5*Math.exp(2*v/3),T=.5*Math.sqrt(v*b*(_-b)/_)*(y-_/2<0?-1:1);Fo(r,e,Math.max(i,Math.floor(e-y*b/_+T)),Math.min(o,Math.floor(e+(_-y)*b/_+T)),a)}const h=r[e];let u=i,f=o;for(gs(r,i,e),a(r[o],h)>0&&gs(r,i,o);u<f;){for(gs(r,u,f),u++,f--;a(r[u],h)<0;)u++;for(;a(r[f],h)>0;)f--}a(r[i],h)===0?gs(r,i,f):(f++,gs(r,f,o)),f<=e&&(i=f+1),e<=f&&(o=f-1)}}function gs(r,e,i){const o=r[e];r[e]=r[i],r[i]=o}function ys(r,e){return r<e?-1:r>e?1:0}function Wr(r){let e=0;for(let i,o,a=0,h=r.length,u=h-1;a<h;u=a++)i=r[a],o=r[u],e+=(o.x-i.x)*(i.y+o.y);return e}function il(r,e){r[0]=Math.min(r[0],e[0]),r[1]=Math.min(r[1],e[1]),r[2]=Math.max(r[2],e[0]),r[3]=Math.max(r[3],e[1])}function rl(r,e){return!(r[0]<=e[0]||r[2]>=e[2]||r[1]<=e[1]||r[3]>=e[3])}function Qp(r,e,i){const o=r[0]-e[0],a=r[1]-e[1],h=r[0]-i[0],u=r[1]-i[1];return o*u-h*a==0&&o*h<=0&&a*u<=0}function _o(r,e,i=!1){let o=!1;for(let f=0,_=e.length;f<_;f++){const y=e[f];for(let v=0,b=y.length,T=b-1;v<b;T=v++){const A=y[T],M=y[v];if(Qp(r,A,M))return i;(h=A)[1]>(a=r)[1]!=(u=M)[1]>a[1]&&a[0]<(u[0]-h[0])*(a[1]-h[1])/(u[1]-h[1])+h[0]&&(o=!o)}}var a,h,u;return o}function yh(r,e,i,o){const a=o[0]-i[0],h=o[1]-i[1],u=(r[0]-i[0])*h-a*(r[1]-i[1]),f=(e[0]-i[0])*h-a*(e[1]-i[1]);return u>0&&f<0||u<0&&f>0}function eo(r,e,i,o){return(a=[o[0]-i[0],o[1]-i[1]])[0]*(h=[e[0]-r[0],e[1]-r[1]])[1]-a[1]*h[0]!=0&&!(!yh(r,e,i,o)||!yh(i,o,r,e));var a,h}function xh(r){const e=new He(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),i=new He(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);for(const o of r[0])e.x>o.x&&(e.x=o.x),e.y>o.y&&(e.y=o.y),i.x<o.x&&(i.x=o.x),i.y<o.y&&(i.y=o.y);return{min:e,max:i}}const Bo=8192;function ef(r,e){const i=(180+r[0])/360,o=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r[1]*Math.PI/360)))/360,a=Math.pow(2,e.z);return[Math.round(i*a*Bo),Math.round(o*a*Bo)]}function tf(r,e){for(let i=0;i<e.length;i++)if(_o(r,e[i]))return!0;return!1}function ad(r,e,i){for(const o of i)for(let a=0,h=o.length,u=h-1;a<h;u=a++)if(eo(r,e,o[u],o[a]))return!0;return!1}function ld(r,e){for(let i=0;i<r.length;++i)if(!_o(r[i],e))return!1;for(let i=0;i<r.length-1;++i)if(ad(r[i],r[i+1],e))return!1;return!0}function rf(r,e){for(let i=0;i<e.length;i++)if(ld(r,e[i]))return!0;return!1}function tc(r,e,i){const o=[];for(let a=0;a<r.length;a++){const h=[];for(let u=0;u<r[a].length;u++){const f=ef(r[a][u],i);il(e,f),h.push(f)}o.push(h)}return o}function cd(r,e,i){const o=[];for(let a=0;a<r.length;a++){const h=tc(r[a],e,i);o.push(h)}return o}function No(r,e,i,o){if(r[0]<i[0]||r[0]>i[2]){const a=.5*o;let h=r[0]-i[0]>a?-o:i[0]-r[0]>a?o:0;h===0&&(h=r[0]-i[2]>a?-o:i[2]-r[0]>a?o:0),r[0]+=h}il(e,r)}function hd(r,e,i,o){const a=Math.pow(2,o.z)*Bo,h=[o.x*Bo,o.y*Bo],u=[];if(!r)return u;for(const f of r)for(const _ of f){const y=[_.x+h[0],_.y+h[1]];No(y,e,i,a),u.push(y)}return u}function ud(r,e,i,o){const a=Math.pow(2,o.z)*Bo,h=[o.x*Bo,o.y*Bo],u=[];if(!r)return u;for(const _ of r){const y=[];for(const v of _){const b=[v.x+h[0],v.y+h[1]];il(e,b),y.push(b)}u.push(y)}if(e[2]-e[0]<=a/2){(f=e)[0]=f[1]=1/0,f[2]=f[3]=-1/0;for(const _ of u)for(const y of _)No(y,e,i,a)}var f;return u}class go{constructor(e,i){this.type=ni,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(ea(e[1])){const o=e[1];if(o.type==="FeatureCollection")for(let a=0;a<o.features.length;++a){const h=o.features[a].geometry.type;if(h==="Polygon"||h==="MultiPolygon")return new go(o,o.features[a].geometry)}else if(o.type==="Feature"){const a=o.geometry.type;if(a==="Polygon"||a==="MultiPolygon")return new go(o,o.geometry)}else if(o.type==="Polygon"||o.type==="MultiPolygon")return new go(o,o)}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,o){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(o.type==="Polygon"){const f=tc(o.coordinates,h,u),_=hd(i.geometry(),a,h,u);if(!rl(a,h))return!1;for(const y of _)if(!_o(y,f))return!1}if(o.type==="MultiPolygon"){const f=cd(o.coordinates,h,u),_=hd(i.geometry(),a,h,u);if(!rl(a,h))return!1;for(const y of _)if(!tf(y,f))return!1}return!0}(e,this.geometries);if(e.geometryType()==="LineString")return function(i,o){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(o.type==="Polygon"){const f=tc(o.coordinates,h,u),_=ud(i.geometry(),a,h,u);if(!rl(a,h))return!1;for(const y of _)if(!ld(y,f))return!1}if(o.type==="MultiPolygon"){const f=cd(o.coordinates,h,u),_=ud(i.geometry(),a,h,u);if(!rl(a,h))return!1;for(const y of _)if(!rf(y,f))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}const nl={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},vh=1/298.257223563,wn=vh*(2-vh),ra=Math.PI/180;class na{static fromTile(e,i,o){const a=Math.PI*(1-2*(e+.5)/Math.pow(2,i)),h=Math.atan(.5*(Math.exp(a)-Math.exp(-a)))/ra;return new na(h,o)}static get units(){return nl}constructor(e,i){if(e===void 0)throw new Error("No latitude given.");if(i&&!nl[i])throw new Error(`Unknown unit ${i}. Use one of: ${Object.keys(nl).join(", ")}`);const o=6378.137*ra*(i?nl[i]:1),a=Math.cos(e*ra),h=1/(1-wn*(1-a*a)),u=Math.sqrt(h);this.kx=o*u*a,this.ky=o*u*h*(1-wn)}distance(e,i){const o=mn(e[0]-i[0])*this.kx,a=(e[1]-i[1])*this.ky;return Math.sqrt(o*o+a*a)}bearing(e,i){const o=mn(i[0]-e[0])*this.kx;return Math.atan2(o,(i[1]-e[1])*this.ky)/ra}destination(e,i,o){const a=o*ra;return this.offset(e,Math.sin(a)*i,Math.cos(a)*i)}offset(e,i,o){return[e[0]+i/this.kx,e[1]+o/this.ky]}lineDistance(e){let i=0;for(let o=0;o<e.length-1;o++)i+=this.distance(e[o],e[o+1]);return i}area(e){let i=0;for(let o=0;o<e.length;o++){const a=e[o];for(let h=0,u=a.length,f=u-1;h<u;f=h++)i+=mn(a[h][0]-a[f][0])*(a[h][1]+a[f][1])*(o?-1:1)}return Math.abs(i)/2*this.kx*this.ky}along(e,i){let o=0;if(i<=0)return e[0];for(let a=0;a<e.length-1;a++){const h=e[a],u=e[a+1],f=this.distance(h,u);if(o+=f,o>i)return ic(h,u,(i-(o-f))/f)}return e[e.length-1]}pointToSegmentDistance(e,i,o){let[a,h]=i,u=mn(o[0]-a)*this.kx,f=(o[1]-h)*this.ky;if(u!==0||f!==0){const _=(mn(e[0]-a)*this.kx*u+(e[1]-h)*this.ky*f)/(u*u+f*f);_>1?(a=o[0],h=o[1]):_>0&&(a+=u/this.kx*_,h+=f/this.ky*_)}return u=mn(e[0]-a)*this.kx,f=(e[1]-h)*this.ky,Math.sqrt(u*u+f*f)}pointOnLine(e,i){let o=1/0,a=e[0][0],h=e[0][1],u=0,f=0;for(let _=0;_<e.length-1;_++){let y=e[_][0],v=e[_][1],b=mn(e[_+1][0]-y)*this.kx,T=(e[_+1][1]-v)*this.ky,A=0;b===0&&T===0||(A=(mn(i[0]-y)*this.kx*b+(i[1]-v)*this.ky*T)/(b*b+T*T),A>1?(y=e[_+1][0],v=e[_+1][1]):A>0&&(y+=b/this.kx*A,v+=T/this.ky*A)),b=mn(i[0]-y)*this.kx,T=(i[1]-v)*this.ky;const M=b*b+T*T;M<o&&(o=M,a=y,h=v,u=_,f=A)}return{point:[a,h],index:u,t:Math.max(0,Math.min(1,f))}}lineSlice(e,i,o){let a=this.pointOnLine(o,e),h=this.pointOnLine(o,i);if(a.index>h.index||a.index===h.index&&a.t>h.t){const y=a;a=h,h=y}const u=[a.point],f=a.index+1,_=h.index;!bh(o[f],u[0])&&f<=_&&u.push(o[f]);for(let y=f+1;y<=_;y++)u.push(o[y]);return bh(o[_],h.point)||u.push(h.point),u}lineSliceAlong(e,i,o){let a=0;const h=[];for(let u=0;u<o.length-1;u++){const f=o[u],_=o[u+1],y=this.distance(f,_);if(a+=y,a>e&&h.length===0&&h.push(ic(f,_,(e-(a-y))/y)),a>=i)return h.push(ic(f,_,(i-(a-y))/y)),h;a>e&&h.push(_)}return h}bufferPoint(e,i){const o=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-o,e[0]+a,e[1]+o]}bufferBBox(e,i){const o=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-o,e[2]+a,e[3]+o]}insideBBox(e,i){return mn(e[0]-i[0])>=0&&mn(e[0]-i[2])<=0&&e[1]>=i[1]&&e[1]<=i[3]}}function bh(r,e){return r[0]===e[0]&&r[1]===e[1]}function ic(r,e,i){const o=mn(e[0]-r[0]);return[r[0]+o*i,r[1]+(e[1]-r[1])*i]}function mn(r){for(;r<-180;)r+=360;for(;r>180;)r-=360;return r}class rc{constructor(e=[],i=(o,a)=>o<a?-1:o>a?1:0){if(this.data=e,this.length=this.data.length,this.compare=i,this.length>0)for(let o=(this.length>>1)-1;o>=0;o--)this._down(o)}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:o}=this,a=i[e];for(;e>0;){const h=e-1>>1,u=i[h];if(o(a,u)>=0)break;i[e]=u,e=h}i[e]=a}_down(e){const{data:i,compare:o}=this,a=this.length>>1,h=i[e];for(;e<a;){let u=1+(e<<1);const f=u+1;if(f<this.length&&o(i[f],i[u])<0&&(u=f),o(i[u],h)>=0)break;i[e]=i[u],e=u}i[e]=h}}var We=8192;function wh(r,e){return e.dist-r.dist}const nc=100,oc=50;function Th(r){const e=[1/0,1/0,-1/0,-1/0];if(e.length!==r.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==r[i])return!1;return!0}function xs(r){return r[1]-r[0]+1}function Tn(r,e){const i=r[1]>=r[0]&&r[1]<e;return i||console.warn("Distance Expression: Index is out of range"),i}function oa(r,e){if(r[0]>r[1])return[null,null];const i=xs(r);if(e){if(i===2)return[r,null];const o=Math.floor(i/2);return[[r[0],r[0]+o],[r[0]+o,r[1]]]}{if(i===1)return[r,null];const o=Math.floor(i/2)-1;return[[r[0],r[0]+o],[r[0]+o+1,r[1]]]}}function Vo(r,e){const i=[1/0,1/0,-1/0,-1/0];if(!Tn(e,r.length))return i;for(let o=e[0];o<=e[1];++o)il(i,r[o]);return i}function ol(r){const e=[1/0,1/0,-1/0,-1/0];for(let i=0;i<r.length;++i)for(let o=0;o<r[i].length;++o)il(e,r[i][o]);return e}function vs(r,e,i){if(Th(r)||Th(e))return NaN;let o=0,a=0;return r[2]<e[0]&&(o=e[0]-r[2]),r[0]>e[2]&&(o=r[0]-e[2]),r[1]>e[3]&&(a=r[1]-e[3]),r[3]<e[1]&&(a=e[1]-r[3]),i.distance([0,0],[o,a])}function sa(r){return 360*r-180}function Ht(r){return 360/Math.PI*Math.atan(Math.exp((180-360*r)*Math.PI/180))-90}function Sh(r,e){const i=Math.pow(2,e.z),o=(r.y/We+e.y)/i;return[sa((r.x/We+e.x)/i),Ht(o)]}function nf(r,e){const i=[];for(let o=0;o<r.length;++o)i.push(Sh(r[o],e));return i}function dd(r,e,i){const o=i.pointOnLine(e,r).point;return i.distance(r,o)}function Eh(r,e,i,o,a){const h=i.slice(o[0],o[1]+1);let u=1/0;for(let f=e[0];f<=e[1];++f)if((u=Math.min(u,dd(r[f],h,a)))===0)return 0;return u}function Ih(r,e,i,o,a){const h=Math.min(a.pointToSegmentDistance(r,i,o),a.pointToSegmentDistance(e,i,o)),u=Math.min(a.pointToSegmentDistance(i,r,e),a.pointToSegmentDistance(o,r,e));return Math.min(h,u)}function Zi(r,e,i,o,a){if(!Tn(e,r.length)||!Tn(o,i.length))return NaN;let h=1/0;for(let u=e[0];u<e[1];++u)for(let f=o[0];f<o[1];++f){if(eo(r[u],r[u+1],i[f],i[f+1]))return 0;h=Math.min(h,Ih(r[u],r[u+1],i[f],i[f+1],a))}return h}function of(r,e,i,o,a){if(!Tn(e,r.length)||!Tn(o,i.length))return NaN;let h=1/0;for(let u=e[0];u<=e[1];++u)for(let f=o[0];f<=o[1];++f)if((h=Math.min(h,a.distance(r[u],i[f])))===0)return h;return h}function sf(r,e,i){if(_o(r,e,!0))return 0;let o=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]&&(o=Math.min(o,i.pointToSegmentDistance(r,a[h-1],a[0])))===0||(o=Math.min(o,dd(r,a,i)))===0)return o}return o}function af(r,e,i,o){if(!Tn(e,r.length))return NaN;for(let h=e[0];h<=e[1];++h)if(_o(r[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 f=0,_=u.length,y=_-1;f<_;y=f++){if(eo(r[h],r[h+1],u[y],u[f]))return 0;a=Math.min(a,Ih(r[h],r[h+1],u[y],u[f],o))}return a}function pd(r,e){for(const i of r)for(let o=0;o<=i.length-1;++o)if(_o(i[o],e,!0))return!0;return!1}function lf(r,e,i,o=1/0){const a=ol(r),h=ol(e);if(o!==1/0&&vs(a,h,i)>=o)return o;if(rl(a,h)){if(pd(r,e))return 0}else if(pd(e,r))return 0;let u=o;for(const f of r)for(let _=0,y=f.length,v=y-1;_<y;v=_++)for(const b of e)for(let T=0,A=b.length,M=A-1;T<A;M=T++){if(eo(f[v],f[_],b[M],b[T]))return 0;u=Math.min(u,Ih(f[v],f[_],b[M],b[T],i))}return u}function sc(r,e,i,o,a,h,u){if(h===null||u===null)return;const f=vs(Vo(o,h),Vo(a,u),i);f<e&&r.push({dist:f,range1:h,range2:u})}function cf(r,e,i,o,a=1/0){let h=Math.min(o.distance(r[0],i[0][0]),a);if(h===0)return h;const u=new rc([{dist:0,range1:[0,r.length-1],range2:[0,0]}],wh),f=e?oc:nc,_=ol(i);for(;u.length;){const y=u.pop();if(y.dist>=h)continue;const v=y.range1;if(xs(v)<=f){if(!Tn(v,r.length))return NaN;if(e){const b=af(r,v,i,o);if((h=Math.min(h,b))===0)return h}else for(let b=v[0];b<=v[1];++b){const T=sf(r[b],i,o);if((h=Math.min(h,T))===0)return h}}else{const b=oa(v,e);if(b[0]!==null){const T=vs(Vo(r,b[0]),_,o);T<h&&u.push({dist:T,range1:b[0],range2:[0,0]})}if(b[1]!==null){const T=vs(Vo(r,b[1]),_,o);T<h&&u.push({dist:T,range1:b[1],range2:[0,0]})}}}return h}function fd(r,e,i,o,a,h=1/0){let u=Math.min(h,a.distance(r[0],i[0]));if(u===0)return u;const f=new rc([{dist:0,range1:[0,r.length-1],range2:[0,i.length-1]}],wh),_=e?oc:nc,y=o?oc:nc;for(;f.length;){const v=f.pop();if(v.dist>=u)continue;const b=v.range1,T=v.range2;if(xs(b)<=_&&xs(T)<=y){if(!Tn(b,r.length)||!Tn(T,i.length))return NaN;if(e&&o?u=Math.min(u,Zi(r,b,i,T,a)):e||o?e&&!o?u=Math.min(u,Eh(i,T,r,b,a)):!e&&o&&(u=Math.min(u,Eh(r,b,i,T,a))):u=Math.min(u,of(r,b,i,T,a)),u===0)return u}else{const A=oa(b,e),M=oa(T,o);sc(f,u,a,r,i,A[0],M[0]),sc(f,u,a,r,i,A[0],M[1]),sc(f,u,a,r,i,A[1],M[0]),sc(f,u,a,r,i,A[1],M[1])}}return u}function Ah(r,e,i,o,a=1/0){let h=a;const u=Vo(r,[0,r.length-1]);for(const f of i)if(!(h!==1/0&&vs(u,Vo(f,[0,f.length-1]),o)>=h)&&(h=Math.min(h,fd(r,e,f,!0,o,h)),h===0))return h;return h}function ac(r,e,i,o,a=1/0){let h=a;const u=Vo(r,[0,r.length-1]);for(const f of i){if(h!==1/0&&vs(u,ol(f),o)>=h)continue;const _=cf(r,e,f,o,h);if(isNaN(_))return _;if((h=Math.min(h,_))===0)return h}return h}function Mh(r){return r==="Point"||r==="MultiPoint"||r==="LineString"||r==="MultiLineString"||r==="Polygon"||r==="MultiPolygon"}class bs{constructor(e,i){this.type=pt,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(ea(e[1])){const o=e[1];if(o.type==="FeatureCollection"){for(let a=0;a<o.features.length;++a)if(Mh(o.features[a].geometry.type))return new bs(o,o.features[a].geometry)}else if(o.type==="Feature"){if(Mh(o.geometry.type))return new bs(o,o.geometry)}else if(Mh(o.type))return new bs(o,o)}return i.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(e){const i=e.geometry(),o=e.canonicalID();if(i!=null&&o!=null){if(e.geometryType()==="Point")return function(a,h,u){const f=[];for(const y of a)for(const v of y)f.push(Sh(v,h));const _=new na(f[0][1],"meters");return u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString"?fd(f,!1,u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",_):u.type==="MultiLineString"?Ah(f,!1,u.coordinates,_):u.type==="Polygon"||u.type==="MultiPolygon"?ac(f,!1,u.type==="Polygon"?[u.coordinates]:u.coordinates,_):null}(i,o,this.geometries);if(e.geometryType()==="LineString")return function(a,h,u){const f=[];for(const y of a){const v=[];for(const b of y)v.push(Sh(b,h));f.push(v)}const _=new na(f[0][0][1],"meters");if(u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString")return Ah(u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",f,_);if(u.type==="MultiLineString"){let y=1/0;for(let v=0;v<u.coordinates.length;v++){const b=Ah(u.coordinates[v],!0,f,_,y);if(isNaN(b))return b;if((y=Math.min(y,b))===0)return y}return y}if(u.type==="Polygon"||u.type==="MultiPolygon"){let y=1/0;for(let v=0;v<f.length;v++){const b=ac(f[v],!0,u.type==="Polygon"?[u.coordinates]:u.coordinates,_,y);if(isNaN(b))return b;if((y=Math.min(y,b))===0)return y}return y}return null}(i,o,this.geometries);if(e.geometryType()==="Polygon")return function(a,h,u){const f=[];for(const y of function(v,b){const T=v.length;if(T<=1)return[v];const A=[];let M,P;for(let O=0;O<T;O++){const B=Wr(v[O]);B!==0&&(v[O].area=Math.abs(B),P===void 0&&(P=B<0),P===B<0?(M&&A.push(M),M=[v[O]]):M.push(v[O]))}return M&&A.push(M),A}(a)){const v=[];for(let b=0;b<y.length;++b)v.push(nf(y[b],h));f.push(v)}const _=new na(f[0][0][0][1],"meters");if(u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString")return ac(u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",f,_);if(u.type==="MultiLineString"){let y=1/0;for(let v=0;v<u.coordinates.length;v++){const b=ac(u.coordinates[v],!0,f,_,y);if(isNaN(b))return b;if((y=Math.min(y,b))===0)return y}return y}return u.type==="Polygon"||u.type==="MultiPolygon"?function(y,v,b){let T=1/0;for(const A of y)for(const M of v){const P=lf(A,M,b,T);if(isNaN(P))return P;if((T=Math.min(T,P))===0)return T}return T}(u.type==="Polygon"?[u.coordinates]:u.coordinates,f,_):null}(i,o,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requirs valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}function Ch(r,e){switch(r){case"string":return Hr(e);case"number":return+e;case"boolean":return!!e;case"color":return ei.parse(e);case"formatted":return Zr.fromString(Hr(e));case"resolvedImage":return en.build(Hr(e))}return e}function md(r,e,i,o){return o!==void 0&&(r=o*Math.round(r/o)),e!==void 0&&r<e&&(r=e),i!==void 0&&r>i&&(r=i),r}class aa{constructor(e,i,o){this.type=e,this.key=i,this.scope=o}static parse(e,i){let o=i.expectedType;if(o==null&&(o=ii),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 Lt))return i.error("Key name of 'config' expression must be a string literal.");if(e.length>=3){const h=i.parse(e[2],2);return h instanceof Lt?new aa(o,Hr(a.value),Hr(h.value)):i.error("Scope of 'config' expression must be a string literal.")}return new aa(o,Hr(a.value))}evaluate(e){const i=[this.key,this.scope,e.scope].filter(Boolean).join(""),o=e.getConfig(i);if(!o)return null;const{type:a,value:h,values:u,minValue:f,maxValue:_,stepValue:y}=o,v=o.default.evaluate(e);let b=v;if(h){const T=e.scope;e.scope=(T||"").split("").slice(1).join(""),b=h.evaluate(e),e.scope=T}return a&&(b=Ch(a,b)),b===void 0||f===void 0&&_===void 0&&y===void 0||(typeof b=="number"?b=md(b,f,_,y):Array.isArray(b)&&(b=b.map(T=>typeof T=="number"?md(T,f,_,y):T))),h!==void 0&&b!==void 0&&u&&!u.includes(b)&&(b=v,a&&(b=Ch(a,b))),(a&&a!==this.type||b!==void 0&&pr(b)!==this.type)&&(b=Ch(this.type.kind,b)),b}eachChild(){}outputDefined(){return!1}serialize(){const e=["config",this.key];return this.scope&&e.concat(this.key),e}}function sl(r){if(r instanceof Br&&(r.name==="get"&&r.args.length===1||r.name==="feature-state"||r.name==="has"&&r.args.length===1||r.name==="properties"||r.name==="geometry-type"||r.name==="id"||/^filter-/.test(r.name))||r instanceof go||r instanceof bs)return!1;let e=!0;return r.eachChild(i=>{e&&!sl(i)&&(e=!1)}),e}function lc(r){if(r instanceof Br&&r.name==="feature-state")return!1;let e=!0;return r.eachChild(i=>{e&&!lc(i)&&(e=!1)}),e}function cc(r){if(r instanceof aa)return new Set([r.key]);let e=new Set;return r.eachChild(i=>{e=new Set([...e,...cc(i)])}),e}function la(r,e){if(r instanceof Br&&e.indexOf(r.name)>=0)return!1;let i=!0;return r.eachChild(o=>{i&&!la(o,e)&&(i=!1)}),i}class hc{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 o=e[1];return i.scope.has(o)?new hc(o,i.scope.get(o)):i.error(`Unknown variable "${o}". Make sure "${o}" 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 Ph{constructor(e,i=[],o,a=new fs,h=[],u,f){this.registry=e,this.path=i,this.key=i.map(_=>typeof _=="string"?`['${_}']`:`[${_}]`).join(""),this.scope=a,this.errors=h,this.expectedType=o,this._scope=u,this.options=f}parse(e,i,o,a,h={}){return i||o?this.concat(i,null,o,a)._parse(e,h):this._parse(e,h)}parseObjectValue(e,i,o,a,h,u={}){return this.concat(i,o,a,h)._parse(e,u)}_parse(e,i){function o(a,h,u){return u==="assert"?new vt(h,[a]):u==="coerce"?new On(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,f=h.type;if(u.kind!=="string"&&u.kind!=="number"&&u.kind!=="boolean"&&u.kind!=="object"&&u.kind!=="array"||f.kind!=="value")if(u.kind!=="color"&&u.kind!=="formatted"&&u.kind!=="resolvedImage"||f.kind!=="value"&&f.kind!=="string"){if(this.checkSubtype(u,f))return null}else h=o(h,u,i.typeAnnotation||"coerce");else h=o(h,u,i.typeAnnotation||"assert")}if(!(h instanceof Lt)&&h.type.kind!=="resolvedImage"&&zh(h)){const u=new ec(this._scope,this.options);try{h=new Lt(h.type,h.evaluate(u))}catch(f){return this.error(f.message),null}}return h}return On.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,o,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 Ph(this.registry,h,o||null,u,this.errors,this._scope,this.options)}error(e,...i){const o=`${this.key}${i.map(a=>`[${a}]`).join("")}`;this.errors.push(new bn(o,e))}checkSubtype(e,i){const o=el(e,i);return o&&this.error(o),o}}var _d=Ph;function zh(r){if(r instanceof hc)return zh(r.boundExpression);if(r instanceof Br&&r.name==="error"||r instanceof ia||r instanceof go||r instanceof bs||r instanceof aa)return!1;const e=r instanceof On||r instanceof vt;let i=!0;return r.eachChild(o=>{i=e?i&&zh(o):i&&o instanceof Lt}),!!i&&sl(r)&&la(r,["zoom","heatmap-density","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed"])}function uc(r,e){const i=r.length-1;let o,a,h=0,u=i,f=0;for(;h<=u;)if(f=Math.floor((h+u)/2),o=r[f],a=r[f+1],o<=e){if(f===i||e<a)return f;h=f+1}else{if(!(o>e))throw new nt("Input is not a number.");u=f-1}return 0}class al{constructor(e,i,o){this.type=e,this.input=i,this.labels=[],this.outputs=[];for(const[a,h]of o)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 o=i.parse(e[1],1,pt);if(!o)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 f=u===1?-1/0:e[u],_=e[u+1],y=u,v=u+1;if(typeof f!="number")return i.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',y);if(a.length&&a[a.length-1][0]>=f)return i.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',y);const b=i.parse(_,v,h);if(!b)return null;h=h||b.type,a.push([f,b])}return new al(h,o,a)}evaluate(e){const i=this.labels,o=this.outputs;if(i.length===1)return o[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return o[0].evaluate(e);const h=i.length;return a>=i[h-1]?o[h-1].evaluate(e):o[uc(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 gd=.95047,yd=1.08883,xd=4/29,ca=6/29,vd=3*ca*ca,hf=ca*ca*ca,Dh=Math.PI/180,uf=180/Math.PI;function dc(r){return r>hf?Math.pow(r,1/3):r/vd+xd}function Rh(r){return r>ca?r*r*r:vd*(r-xd)}function Lh(r){return 255*(r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055)}function kh(r){return(r/=255)<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function Oh(r){const e=kh(r.r),i=kh(r.g),o=kh(r.b),a=dc((.4124564*e+.3575761*i+.1804375*o)/gd),h=dc((.2126729*e+.7151522*i+.072175*o)/1);return{l:116*h-16,a:500*(a-h),b:200*(h-dc((.0193339*e+.119192*i+.9503041*o)/yd)),alpha:r.a}}function Fh(r){let e=(r.l+16)/116,i=isNaN(r.a)?e:e+r.a/500,o=isNaN(r.b)?e:e-r.b/200;return e=1*Rh(e),i=gd*Rh(i),o=yd*Rh(o),new ei(Lh(3.2404542*i-1.5371385*e-.4985314*o),Lh(-.969266*i+1.8760108*e+.041556*o),Lh(.0556434*i-.2040259*e+1.0572252*o),r.alpha)}function ha(r,e,i){const o=e-r;return r+i*(o>180||o<-180?o-360*Math.round(o/360):o)}const ua={forward:Oh,reverse:Fh,interpolate:function(r,e,i){return{l:ft(r.l,e.l,i),a:ft(r.a,e.a,i),b:ft(r.b,e.b,i),alpha:ft(r.alpha,e.alpha,i)}}},da={forward:function(r){const{l:e,a:i,b:o}=Oh(r),a=Math.atan2(o,i)*uf;return{h:a<0?a+360:a,c:Math.sqrt(i*i+o*o),l:e,alpha:r.a}},reverse:function(r){const e=r.h*Dh,i=r.c;return Fh({l:r.l,a:Math.cos(e)*i,b:Math.sin(e)*i,alpha:r.alpha})},interpolate:function(r,e,i){return{h:ha(r.h,e.h,i),c:ft(r.c,e.c,i),l:ft(r.l,e.l,i),alpha:ft(r.alpha,e.alpha,i)}}};var bd=Object.freeze({__proto__:null,hcl:da,lab:ua});class tn{constructor(e,i,o,a,h){this.type=e,this.operator=i,this.interpolation=o,this.input=a,this.labels=[],this.outputs=[];for(const[u,f]of h)this.labels.push(u),this.outputs.push(f)}static interpolationFactor(e,i,o,a){let h=0;if(e.name==="exponential")h=ll(i,e.base,o,a);else if(e.name==="linear")h=ll(i,1,o,a);else if(e.name==="cubic-bezier"){const u=e.controlPoints;h=new Ul(u[0],u[1],u[2],u[3]).solve(ll(i,1,o,a))}return h}static parse(e,i){let[o,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 y=a[1];if(typeof y!="number")return i.error("Exponential interpolation requires a numeric base.",1,1);a={name:"exponential",base:y}}else{if(a[0]!=="cubic-bezier")return i.error(`Unknown interpolation type ${String(a[0])}`,1,0);{const y=a.slice(1);if(y.length!==4||y.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:y}}}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,pt),!h)return null;const f=[];let _=null;o==="interpolate-hcl"||o==="interpolate-lab"?_=Qr:i.expectedType&&i.expectedType.kind!=="value"&&(_=i.expectedType);for(let y=0;y<u.length;y+=2){const v=u[y],b=u[y+1],T=y+3,A=y+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.',T);if(f.length&&f[f.length-1][0]>=v)return i.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',T);const M=i.parse(b,A,_);if(!M)return null;_=_||M.type,f.push([v,M])}return _.kind==="number"||_.kind==="color"||_.kind==="array"&&_.itemType.kind==="number"&&typeof _.N=="number"?new tn(_,o,a,h,f):i.error(`Type ${cr(_)} is not interpolatable.`)}evaluate(e){const i=this.labels,o=this.outputs;if(i.length===1)return o[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return o[0].evaluate(e);const h=i.length;if(a>=i[h-1])return o[h-1].evaluate(e);const u=uc(i,a),f=tn.interpolationFactor(this.interpolation,a,i[u],i[u+1]),_=o[u].evaluate(e),y=o[u+1].evaluate(e);return this.operator==="interpolate"?Jl[this.type.kind.toLowerCase()](_,y,f):this.operator==="interpolate-hcl"?da.reverse(da.interpolate(da.forward(_),da.forward(y),f)):ua.reverse(ua.interpolate(ua.forward(_),ua.forward(y),f))}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 o=0;o<this.labels.length;o++)i.push(this.labels[o],this.outputs[o].serialize());return i}}function ll(r,e,i,o){const a=o-i,h=r-i;return a===0?0:e===1?h/a:(Math.pow(e,h)-1)/(Math.pow(e,a)-1)}class pc{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 o=null;const a=i.expectedType;a&&a.kind!=="value"&&(o=a);const h=[];for(const f of e.slice(1)){const _=i.parse(f,1+h.length,o,void 0,{typeAnnotation:"omit"});if(!_)return null;o=o||_.type,h.push(_)}const u=a&&h.some(f=>el(a,f.type));return new pc(u?ii:o,h)}evaluate(e){let i,o=null,a=0;for(const h of this.args){if(a++,o=h.evaluate(e),o&&o instanceof en&&!o.available&&(i||(i=o),o=null,a===this.args.length))return i;if(o!==null)break}return o}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 fc{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 o=[];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 f=i.parse(e[h+1],h+1);if(!f)return null;o.push([u,f])}const a=i.parse(e[e.length-1],e.length-1,i.expectedType,o);return a?new fc(o,a):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[i,o]of this.bindings)e.push(i,o.serialize());return e.push(this.result.serialize()),e}}class mc{constructor(e,i,o){this.type=e,this.index=i,this.input=o}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const o=i.parse(e[1],1,pt),a=i.parse(e[2],2,qr(i.expectedType||ii));return o&&a?new mc(a.type.itemType,o,a):null}evaluate(e){const i=this.index.evaluate(e),o=this.input.evaluate(e);if(i<0)throw new nt(`Array index out of bounds: ${i} < 0.`);if(i>=o.length)throw new nt(`Array index out of bounds: ${i} > ${o.length-1}.`);if(i!==Math.floor(i))throw new nt(`Array index must be an integer, but found ${i} instead. Use at-interpolated to retrieve interpolated result with a fractional index.`);return o[i]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class _c{constructor(e,i,o){this.type=e,this.index=i,this.input=o}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const o=i.parse(e[1],1,pt),a=i.parse(e[2],2,qr(i.expectedType||ii));return o&&a?new _c(a.type.itemType,o,a):null}evaluate(e){const i=this.index.evaluate(e),o=this.input.evaluate(e);if(i<0)throw new nt(`Array index out of bounds: ${i} < 0.`);if(i>o.length-1)throw new nt(`Array index out of bounds: ${i} > ${o.length-1}.`);if(i===Math.floor(i))return o[i];const a=Math.floor(i),h=Math.ceil(i),u=o[a],f=o[h];if(typeof u!="number"||typeof f!="number")throw new nt(`Cannot interpolate between non-number values at index ${i}.`);const _=i-a;return u*(1-_)+f*_}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at-interpolated",this.index.serialize(),this.input.serialize()]}}class Bh{constructor(e,i){this.type=ni,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 o=i.parse(e[1],1,ii),a=i.parse(e[2],2,ii);return o&&a?gh(o.type,[ni,di,pt,Lo,ii])?new Bh(o,a):i.error(`Expected first argument to be of type boolean, string, number or null, but found ${cr(o.type)} instead`):null}evaluate(e){const i=this.needle.evaluate(e),o=this.haystack.evaluate(e);if(o==null)return!1;if(!Qs(i,["boolean","string","number","null"]))throw new nt(`Expected first argument to be of type boolean, string, number or null, but found ${cr(pr(i))} instead.`);if(!Qs(o,["string","array"]))throw new nt(`Expected second argument to be of type array or string, but found ${cr(pr(o))} instead.`);return o.indexOf(i)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class gc{constructor(e,i,o){this.type=pt,this.needle=e,this.haystack=i,this.fromIndex=o}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 o=i.parse(e[1],1,ii),a=i.parse(e[2],2,ii);if(!o||!a)return null;if(!gh(o.type,[ni,di,pt,Lo,ii]))return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${cr(o.type)} instead`);if(e.length===4){const h=i.parse(e[3],3,pt);return h?new gc(o,a,h):null}return new gc(o,a)}evaluate(e){const i=this.needle.evaluate(e),o=this.haystack.evaluate(e);if(!Qs(i,["boolean","string","number","null"]))throw new nt(`Expected first argument to be of type boolean, string, number or null, but found ${cr(pr(i))} instead.`);if(!Qs(o,["string","array"]))throw new nt(`Expected second argument to be of type array or string, but found ${cr(pr(o))} instead.`);if(this.fromIndex){const a=this.fromIndex.evaluate(e);return o.indexOf(i,a)}return o.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 Nh{constructor(e,i,o,a,h,u){this.inputType=e,this.type=i,this.input=o,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 o,a;i.expectedType&&i.expectedType.kind!=="value"&&(a=i.expectedType);const h={},u=[];for(let y=2;y<e.length-1;y+=2){let v=e[y];const b=e[y+1];Array.isArray(v)||(v=[v]);const T=i.concat(y);if(v.length===0)return T.error("Expected at least one branch label.");for(const M of v){if(typeof M!="number"&&typeof M!="string")return T.error("Branch labels must be numbers or strings.");if(typeof M=="number"&&Math.abs(M)>Number.MAX_SAFE_INTEGER)return T.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof M=="number"&&Math.floor(M)!==M)return T.error("Numeric branch labels must be integer values.");if(o){if(T.checkSubtype(o,pr(M)))return null}else o=pr(M);if(h[String(M)]!==void 0)return T.error("Branch labels must be unique.");h[String(M)]=u.length}const A=i.parse(b,y,a);if(!A)return null;a=a||A.type,u.push(A)}const f=i.parse(e[1],1,ii);if(!f)return null;const _=i.parse(e[e.length-1],e.length-1,a);return _?f.type.kind!=="value"&&i.concat(1).checkSubtype(o,f.type)?null:new Nh(o,a,f,h,u,_):null}evaluate(e){const i=this.input.evaluate(e);return(pr(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(),o=[],a={};for(const u of i){const f=a[this.cases[u]];f===void 0?(a[this.cases[u]]=o.length,o.push([this.cases[u],[u]])):o[f][1].push(u)}const h=u=>this.inputType.kind==="number"?Number(u):u;for(const[u,f]of o)e.push(f.length===1?h(f[0]):f.map(h)),e.push(this.outputs[u].serialize());return e.push(this.otherwise.serialize()),e}}class yc{constructor(e,i,o){this.type=e,this.branches=i,this.otherwise=o}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 o;i.expectedType&&i.expectedType.kind!=="value"&&(o=i.expectedType);const a=[];for(let u=1;u<e.length-1;u+=2){const f=i.parse(e[u],u,ni);if(!f)return null;const _=i.parse(e[u+1],u+1,o);if(!_)return null;a.push([f,_]),o=o||_.type}const h=i.parse(e[e.length-1],e.length-1,o);return h?new yc(o,a,h):null}evaluate(e){for(const[i,o]of this.branches)if(i.evaluate(e))return o.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[i,o]of this.branches)e(i),e(o);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 cl{constructor(e,i,o,a){this.type=e,this.input=i,this.beginIndex=o,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 o=i.parse(e[1],1,ii),a=i.parse(e[2],2,pt);if(!o||!a)return null;if(!gh(o.type,[qr(ii),di,ii]))return i.error(`Expected first argument to be of type array or string, but found ${cr(o.type)} instead`);if(e.length===4){const h=i.parse(e[3],3,pt);return h?new cl(o.type,o,a,h):null}return new cl(o.type,o,a)}evaluate(e){const i=this.input.evaluate(e),o=this.beginIndex.evaluate(e);if(!Qs(i,["string","array"]))throw new nt(`Expected first argument to be of type array or string, but found ${cr(pr(i))} instead.`);if(this.endIndex){const a=this.endIndex.evaluate(e);return i.slice(o,a)}return i.slice(o)}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()]}}function hl(r,e){return r==="=="||r==="!="?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 wd(r,e,i,o){return o.compare(e,i)===0}function ws(r,e,i){const o=r!=="=="&&r!=="!=";return class G0{constructor(h,u,f){this.type=ni,this.lhs=h,this.rhs=u,this.collator=f,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 f=h[0];let _=u.parse(h[1],1,ii);if(!_)return null;if(!hl(f,_.type))return u.concat(1).error(`"${f}" comparisons are not supported for type '${cr(_.type)}'.`);let y=u.parse(h[2],2,ii);if(!y)return null;if(!hl(f,y.type))return u.concat(2).error(`"${f}" comparisons are not supported for type '${cr(y.type)}'.`);if(_.type.kind!==y.type.kind&&_.type.kind!=="value"&&y.type.kind!=="value")return u.error(`Cannot compare types '${cr(_.type)}' and '${cr(y.type)}'.`);o&&(_.type.kind==="value"&&y.type.kind!=="value"?_=new vt(y.type,[_]):_.type.kind!=="value"&&y.type.kind==="value"&&(y=new vt(_.type,[y])));let v=null;if(h.length===4){if(_.type.kind!=="string"&&y.type.kind!=="string"&&_.type.kind!=="value"&&y.type.kind!=="value")return u.error("Cannot use collator to compare non-string types.");if(v=u.parse(h[3],3,ms),!v)return null}return new G0(_,y,v)}evaluate(h){const u=this.lhs.evaluate(h),f=this.rhs.evaluate(h);if(o&&this.hasUntypedArgument){const _=pr(u),y=pr(f);if(_.kind!==y.kind||_.kind!=="string"&&_.kind!=="number")throw new nt(`Expected arguments for "${r}" to be (string, string) or (number, number), but found (${_.kind}, ${y.kind}) instead.`)}if(this.collator&&!o&&this.hasUntypedArgument){const _=pr(u),y=pr(f);if(_.kind!=="string"||y.kind!=="string")return e(h,u,f)}return this.collator?i(h,u,f,this.collator.evaluate(h)):e(h,u,f)}eachChild(h){h(this.lhs),h(this.rhs),this.collator&&h(this.collator)}outputDefined(){return!0}serialize(){const h=[r];return this.eachChild(u=>{h.push(u.serialize())}),h}}}const df=ws("==",function(r,e,i){return e===i},wd),pf=ws("!=",function(r,e,i){return e!==i},function(r,e,i,o){return!wd(0,e,i,o)}),Td=ws("<",function(r,e,i){return e<i},function(r,e,i,o){return o.compare(e,i)<0}),Sd=ws(">",function(r,e,i){return e>i},function(r,e,i,o){return o.compare(e,i)>0}),ff=ws("<=",function(r,e,i){return e<=i},function(r,e,i,o){return o.compare(e,i)<=0}),mf=ws(">=",function(r,e,i){return e>=i},function(r,e,i,o){return o.compare(e,i)>=0});class Vh{constructor(e,i,o,a,h,u){this.type=di,this.number=e,this.locale=i,this.currency=o,this.unit=a,this.minFractionDigits=h,this.maxFractionDigits=u}static parse(e,i){if(e.length!==3)return i.error("Expected two arguments.");const o=i.parse(e[1],1,pt);if(!o)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",di),!h))return null;let u=null;if(a.currency&&(u=i.parseObjectValue(a.currency,2,"currency",di),!u))return null;let f=null;if(a.unit&&(f=i.parseObjectValue(a.unit,2,"unit",di),!f))return null;let _=null;if(a["min-fraction-digits"]&&(_=i.parseObjectValue(a["min-fraction-digits"],2,"min-fraction-digits",pt),!_))return null;let y=null;return a["max-fraction-digits"]&&(y=i.parseObjectValue(a["max-fraction-digits"],2,"max-fraction-digits",pt),!y)?null:new Vh(o,h,u,f,_,y)}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 ul{constructor(e){this.type=pt,this.input=e}static parse(e,i){if(e.length!==2)return i.error(`Expected 1 argument, but found ${e.length-1} instead.`);const o=i.parse(e[1],1);return o?o.type.kind!=="array"&&o.type.kind!=="string"&&o.type.kind!=="value"?i.error(`Expected argument of type string or array, but found ${cr(o.type)} instead.`):new ul(o):null}evaluate(e){const i=this.input.evaluate(e);if(typeof i=="string"||Array.isArray(i))return i.length;throw new nt(`Expected value to be of type string or array, but found ${cr(pr(i))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(i=>{e.push(i.serialize())}),e}}function Ed(r){return function(){r=1831565813+(r|=0)|0;let e=Math.imul(r^r>>>15,1|r);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const Ts={"==":df,"!=":pf,">":Sd,"<":Td,">=":mf,"<=":ff,array:vt,at:mc,"at-interpolated":_c,boolean:vt,case:yc,coalesce:pc,collator:ia,format:_s,image:ta,in:Bh,"index-of":gc,interpolate:tn,"interpolate-hcl":tn,"interpolate-lab":tn,length:ul,let:fc,literal:Lt,match:Nh,number:vt,"number-format":Vh,object:vt,slice:cl,step:al,string:vt,"to-boolean":On,"to-color":On,"to-number":On,"to-string":On,var:hc,within:go,distance:bs,config:aa};function Id(r,[e,i,o,a]){e=e.evaluate(r),i=i.evaluate(r),o=o.evaluate(r);const h=a?a.evaluate(r):1,u=nd(e,i,o,h);if(u)throw new nt(u);return new ei(e/255*h,i/255*h,o/255*h,h)}function Ad(r,[e,i,o,a]){e=e.evaluate(r),i=i.evaluate(r),o=o.evaluate(r);const h=a?a.evaluate(r):1,u=function(y,v,b,T){return typeof y=="number"&&y>=0&&y<=360?typeof v=="number"&&v>=0&&v<=100&&typeof b=="number"&&b>=0&&b<=100?T===void 0||typeof T=="number"&&T>=0&&T<=1?null:`Invalid hsla value [${[y,v,b,T].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof T=="number"?[y,v,b,T]:[y,v,b]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof T=="number"?[y,v,b,T]:[y,v,b]).join(", ")}]: 'h' must be between 0 and 360.`}(e,i,o,h);if(u)throw new nt(u);const f=`hsla(${e}, ${i}%, ${o}%, ${h})`,_=ei.parse(f);if(!_)throw new nt(`Failed to parse HSLA color: ${f}`);return _}function Uh(r,e){return r in e}function xc(r,e){const i=e[r];return i===void 0?null:i}function Uo(r){return{type:r}}function Md(r){return{result:"success",value:r}}function _n(r){return{result:"error",value:r}}function jh(r,e){return!!r&&!!r.parameters&&r.parameters.indexOf(e)>-1}function vc(r){return r["property-type"]==="data-driven"}function Cd(r){return jh(r.expression,"measure-light")}function Gh(r){return jh(r.expression,"zoom")}function bc(r){return!!r.expression&&r.expression.interpolated}function wc(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function Pd(r){return r}function Tc(r,e){const i=e.type==="color",o=r.stops&&typeof r.stops[0][0]=="object",a=o||!(o||r.property!==void 0),h=r.type||(bc(e)?"exponential":"interval");if(i&&((r=Ka({},r)).stops&&(r.stops=r.stops.map(y=>[y[0],ei.parse(y[1])])),r.default=ei.parse(r.default?r.default:e.default)),r.colorSpace&&r.colorSpace!=="rgb"&&!bd[r.colorSpace])throw new Error(`Unknown color space: ${r.colorSpace}`);let u,f,_;if(h==="exponential")u=yo;else if(h==="interval")u=_f;else if(h==="categorical"){u=zd,f=Object.create(null);for(const y of r.stops)f[y[0]]=y[1];_=typeof r.stops[0][0]}else{if(h!=="identity")throw new Error(`Unknown function type "${h}"`);u=gf}if(o){const y={},v=[];for(let A=0;A<r.stops.length;A++){const M=r.stops[A],P=M[0].zoom;y[P]===void 0&&(y[P]={zoom:P,type:r.type,property:r.property,default:r.default,stops:[]},v.push(P)),y[P].stops.push([M[0].value,M[1]])}const b=[];for(const A of v)b.push([y[A].zoom,Tc(y[A],e)]);const T={name:"linear"};return{kind:"composite",interpolationType:T,interpolationFactor:tn.interpolationFactor.bind(void 0,T),zoomStops:b.map(A=>A[0]),evaluate:({zoom:A},M)=>yo({stops:b,base:r.base},e,A).evaluate(A,M)}}if(a){const y=h==="exponential"?{name:"exponential",base:r.base!==void 0?r.base:1}:null;return{kind:"camera",interpolationType:y,interpolationFactor:tn.interpolationFactor.bind(void 0,y),zoomStops:r.stops.map(v=>v[0]),evaluate:({zoom:v})=>u(r,e,v,f,_)}}return{kind:"source",evaluate(y,v){const b=v&&v.properties?v.properties[r.property]:void 0;return b===void 0?Ss(r.default,e.default):u(r,e,b,f,_)}}}function Ss(r,e,i){return r!==void 0?r:e!==void 0?e:i!==void 0?i:void 0}function zd(r,e,i,o,a){return Ss(typeof i===a?o[i]:void 0,r.default,e.default)}function _f(r,e,i){if(bt(i)!=="number")return Ss(r.default,e.default);const o=r.stops.length;if(o===1||i<=r.stops[0][0])return r.stops[0][1];if(i>=r.stops[o-1][0])return r.stops[o-1][1];const a=uc(r.stops.map(h=>h[0]),i);return r.stops[a][1]}function yo(r,e,i){const o=r.base!==void 0?r.base:1;if(bt(i)!=="number")return Ss(r.default,e.default);const a=r.stops.length;if(a===1||i<=r.stops[0][0])return r.stops[0][1];if(i>=r.stops[a-1][0])return r.stops[a-1][1];const h=uc(r.stops.map(v=>v[0]),i),u=function(v,b,T,A){const M=A-T,P=v-T;return M===0?0:b===1?P/M:(Math.pow(b,P)-1)/(Math.pow(b,M)-1)}(i,o,r.stops[h][0],r.stops[h+1][0]),f=r.stops[h][1],_=r.stops[h+1][1];let y=Jl[e.type]||Pd;if(r.colorSpace&&r.colorSpace!=="rgb"){const v=bd[r.colorSpace];y=(b,T)=>v.reverse(v.interpolate(v.forward(b),v.forward(T),u))}return typeof f.evaluate=="function"?{evaluate(...v){const b=f.evaluate.apply(void 0,v),T=_.evaluate.apply(void 0,v);if(b!==void 0&&T!==void 0)return y(b,T,u)}}:y(f,_,u)}function gf(r,e,i){return e.type==="color"?i=ei.parse(i):e.type==="formatted"?i=Zr.fromString(i.toString()):e.type==="resolvedImage"?i=en.build(i.toString()):bt(i)===e.type||e.type==="enum"&&e.values[i]||(i=void 0),Ss(i,r.default,e.default)}Br.register(Ts,{error:[{kind:"error"},[di],(r,[e])=>{throw new nt(e.evaluate(r))}],typeof:[di,[ii],(r,[e])=>cr(pr(e.evaluate(r)))],"to-rgba":[qr(pt,4),[Qr],(r,[e])=>e.evaluate(r).toRenderColor(null).toArray()],"to-hsla":[qr(pt,4),[Qr],(r,[e])=>e.evaluate(r).toRenderColor(null).toHslaArray()],rgb:[Qr,[pt,pt,pt],Id],rgba:[Qr,[pt,pt,pt,pt],Id],hsl:[Qr,[pt,pt,pt],Ad],hsla:[Qr,[pt,pt,pt,pt],Ad],has:{type:ni,overloads:[[[di],(r,[e])=>Uh(e.evaluate(r),r.properties())],[[di,ko],(r,[e,i])=>Uh(e.evaluate(r),i.evaluate(r))]]},get:{type:ii,overloads:[[[di],(r,[e])=>xc(e.evaluate(r),r.properties())],[[di,ko],(r,[e,i])=>xc(e.evaluate(r),i.evaluate(r))]]},"feature-state":[ii,[di],(r,[e])=>xc(e.evaluate(r),r.featureState||{})],properties:[ko,[],r=>r.properties()],"geometry-type":[di,[],r=>r.geometryType()],id:[ii,[],r=>r.id()],zoom:[pt,[],r=>r.globals.zoom],pitch:[pt,[],r=>r.globals.pitch||0],"distance-from-center":[pt,[],r=>r.distanceFromCenter()],"measure-light":[pt,[di],(r,[e])=>r.measureLight(e.evaluate(r))],"heatmap-density":[pt,[],r=>r.globals.heatmapDensity||0],"line-progress":[pt,[],r=>r.globals.lineProgress||0],"raster-value":[pt,[],r=>r.globals.rasterValue||0],"raster-particle-speed":[pt,[],r=>r.globals.rasterParticleSpeed||0],"sky-radial-progress":[pt,[],r=>r.globals.skyRadialProgress||0],accumulated:[ii,[],r=>r.globals.accumulated===void 0?null:r.globals.accumulated],"+":[pt,Uo(pt),(r,e)=>{let i=0;for(const o of e)i+=o.evaluate(r);return i}],"*":[pt,Uo(pt),(r,e)=>{let i=1;for(const o of e)i*=o.evaluate(r);return i}],"-":{type:pt,overloads:[[[pt,pt],(r,[e,i])=>e.evaluate(r)-i.evaluate(r)],[[pt],(r,[e])=>-e.evaluate(r)]]},"/":[pt,[pt,pt],(r,[e,i])=>e.evaluate(r)/i.evaluate(r)],"%":[pt,[pt,pt],(r,[e,i])=>e.evaluate(r)%i.evaluate(r)],ln2:[pt,[],()=>Math.LN2],pi:[pt,[],()=>Math.PI],e:[pt,[],()=>Math.E],"^":[pt,[pt,pt],(r,[e,i])=>Math.pow(e.evaluate(r),i.evaluate(r))],sqrt:[pt,[pt],(r,[e])=>Math.sqrt(e.evaluate(r))],log10:[pt,[pt],(r,[e])=>Math.log(e.evaluate(r))/Math.LN10],ln:[pt,[pt],(r,[e])=>Math.log(e.evaluate(r))],log2:[pt,[pt],(r,[e])=>Math.log(e.evaluate(r))/Math.LN2],sin:[pt,[pt],(r,[e])=>Math.sin(e.evaluate(r))],cos:[pt,[pt],(r,[e])=>Math.cos(e.evaluate(r))],tan:[pt,[pt],(r,[e])=>Math.tan(e.evaluate(r))],asin:[pt,[pt],(r,[e])=>Math.asin(e.evaluate(r))],acos:[pt,[pt],(r,[e])=>Math.acos(e.evaluate(r))],atan:[pt,[pt],(r,[e])=>Math.atan(e.evaluate(r))],min:[pt,Uo(pt),(r,e)=>Math.min(...e.map(i=>i.evaluate(r)))],max:[pt,Uo(pt),(r,e)=>Math.max(...e.map(i=>i.evaluate(r)))],abs:[pt,[pt],(r,[e])=>Math.abs(e.evaluate(r))],round:[pt,[pt],(r,[e])=>{const i=e.evaluate(r);return i<0?-Math.round(-i):Math.round(i)}],floor:[pt,[pt],(r,[e])=>Math.floor(e.evaluate(r))],ceil:[pt,[pt],(r,[e])=>Math.ceil(e.evaluate(r))],"filter-==":[ni,[di,ii],(r,[e,i])=>r.properties()[e.value]===i.value],"filter-id-==":[ni,[ii],(r,[e])=>r.id()===e.value],"filter-type-==":[ni,[di],(r,[e])=>r.geometryType()===e.value],"filter-<":[ni,[di,ii],(r,[e,i])=>{const o=r.properties()[e.value],a=i.value;return typeof o==typeof a&&o<a}],"filter-id-<":[ni,[ii],(r,[e])=>{const i=r.id(),o=e.value;return typeof i==typeof o&&i<o}],"filter->":[ni,[di,ii],(r,[e,i])=>{const o=r.properties()[e.value],a=i.value;return typeof o==typeof a&&o>a}],"filter-id->":[ni,[ii],(r,[e])=>{const i=r.id(),o=e.value;return typeof i==typeof o&&i>o}],"filter-<=":[ni,[di,ii],(r,[e,i])=>{const o=r.properties()[e.value],a=i.value;return typeof o==typeof a&&o<=a}],"filter-id-<=":[ni,[ii],(r,[e])=>{const i=r.id(),o=e.value;return typeof i==typeof o&&i<=o}],"filter->=":[ni,[di,ii],(r,[e,i])=>{const o=r.properties()[e.value],a=i.value;return typeof o==typeof a&&o>=a}],"filter-id->=":[ni,[ii],(r,[e])=>{const i=r.id(),o=e.value;return typeof i==typeof o&&i>=o}],"filter-has":[ni,[ii],(r,[e])=>e.value in r.properties()],"filter-has-id":[ni,[],r=>r.id()!==null&&r.id()!==void 0],"filter-type-in":[ni,[qr(di)],(r,[e])=>e.value.indexOf(r.geometryType())>=0],"filter-id-in":[ni,[qr(ii)],(r,[e])=>e.value.indexOf(r.id())>=0],"filter-in-small":[ni,[di,qr(ii)],(r,[e,i])=>i.value.indexOf(r.properties()[e.value])>=0],"filter-in-large":[ni,[di,qr(ii)],(r,[e,i])=>function(o,a,h,u){for(;h<=u;){const f=h+u>>1;if(a[f]===o)return!0;a[f]>o?u=f-1:h=f+1}return!1}(r.properties()[e.value],i.value,0,i.value.length-1)],all:{type:ni,overloads:[[[ni,ni],(r,[e,i])=>e.evaluate(r)&&i.evaluate(r)],[Uo(ni),(r,e)=>{for(const i of e)if(!i.evaluate(r))return!1;return!0}]]},any:{type:ni,overloads:[[[ni,ni],(r,[e,i])=>e.evaluate(r)||i.evaluate(r)],[Uo(ni),(r,e)=>{for(const i of e)if(i.evaluate(r))return!0;return!1}]]},"!":[ni,[ni],(r,[e])=>!e.evaluate(r)],"is-supported-script":[ni,[di],(r,[e])=>{const i=r.globals&&r.globals.isSupportedScript;return!i||i(e.evaluate(r))}],upcase:[di,[di],(r,[e])=>e.evaluate(r).toUpperCase()],downcase:[di,[di],(r,[e])=>e.evaluate(r).toLowerCase()],concat:[di,Uo(ii),(r,e)=>e.map(i=>Hr(i.evaluate(r))).join("")],"resolved-locale":[di,[ms],(r,[e])=>e.evaluate(r).resolvedLocale()],random:[pt,[pt,pt,ii],(r,e)=>{const[i,o,a]=e.map(u=>u.evaluate(r));if(i>o||i===o)return i;let h;if(typeof a=="string")h=function(u){let f=0;if(u.length===0)return f;for(let _=0;_<u.length;_++)f=(f<<5)-f+u.charCodeAt(_),f|=0;return f}(a);else{if(typeof a!="number")throw new nt(`Invalid seed input: ${a}`);h=a}return i+Ed(h)()*(o-i)}]});class qh{constructor(e,i,o,a){this.expression=e,this._warningHistory={},this._evaluator=new ec(o,a),this._defaultValue=i?function(h){return h.type==="color"&&(wc(h.default)||Array.isArray(h.default))?new ei(0,0,0,0):h.type==="color"?ei.parse(h.default)||null:h.default===void 0?null:h.default}(i):null,this._enumValues=i&&i.type==="enum"?i.values:null,this.configDependencies=cc(e)}evaluateWithoutErrorHandling(e,i,o,a,h,u,f,_){return this._evaluator.globals=e,this._evaluator.feature=i,this._evaluator.featureState=o,this._evaluator.canonical=a||null,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=u,this._evaluator.featureTileCoord=f||null,this._evaluator.featureDistanceData=_||null,this.expression.evaluate(this._evaluator)}evaluate(e,i,o,a,h,u,f,_){this._evaluator.globals=e,this._evaluator.feature=i||null,this._evaluator.featureState=o||null,this._evaluator.canonical=a||null,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=u||null,this._evaluator.featureTileCoord=f||null,this._evaluator.featureDistanceData=_||null;try{const y=this.expression.evaluate(this._evaluator);if(y==null||typeof y=="number"&&y!=y)return this._defaultValue;if(this._enumValues&&!(y in this._enumValues))throw new nt(`Expected value to be one of ${Object.keys(this._enumValues).map(v=>JSON.stringify(v)).join(", ")}, but found ${JSON.stringify(y)} instead.`);return y}catch(y){return this._warningHistory[y.message]||(this._warningHistory[y.message]=!0,typeof console<"u"&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${y.message}`)),this._defaultValue}}}function Sc(r){return Array.isArray(r)&&r.length>0&&typeof r[0]=="string"&&r[0]in Ts}function pa(r,e,i,o){const a=new _d(Ts,[],e?function(u){const f={color:Qr,string:di,number:pt,enum:di,boolean:ni,formatted:Ja,resolvedImage:Qa};return u.type==="array"?qr(f[u.value]||ii,u.length):f[u.type]}(e):void 0,void 0,void 0,i,o),h=a.parse(r,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return h?Md(new qh(h,e,i,o)):_n(a.errors)}class Es{constructor(e,i,o,a){this.kind=e,this._styleExpression=i,this.isLightConstant=o,this.isLineProgressConstant=a,this.isStateDependent=e!=="constant"&&!lc(i.expression),this.configDependencies=cc(i.expression)}evaluateWithoutErrorHandling(e,i,o,a,h,u){return this._styleExpression.evaluateWithoutErrorHandling(e,i,o,a,h,u)}evaluate(e,i,o,a,h,u){return this._styleExpression.evaluate(e,i,o,a,h,u)}}class fa{constructor(e,i,o,a,h,u){this.kind=e,this.zoomStops=o,this._styleExpression=i,this.isStateDependent=e!=="camera"&&!lc(i.expression),this.isLightConstant=h,this.isLineProgressConstant=u,this.configDependencies=cc(i.expression),this.interpolationType=a}evaluateWithoutErrorHandling(e,i,o,a,h,u){return this._styleExpression.evaluateWithoutErrorHandling(e,i,o,a,h,u)}evaluate(e,i,o,a,h,u){return this._styleExpression.evaluate(e,i,o,a,h,u)}interpolationFactor(e,i,o){return this.interpolationType?tn.interpolationFactor(this.interpolationType,e,i,o):0}}function dl(r,e,i,o){if((r=pa(r,e,i,o)).result==="error")return r;const a=r.value.expression,h=sl(a);if(!h&&!vc(e))return _n([new bn("","data expressions not supported")]);const u=la(a,["zoom","pitch","distance-from-center"]);if(!u&&!Gh(e))return _n([new bn("","zoom expressions not supported")]);const f=la(a,["measure-light"]);if(!f&&!Cd(e))return _n([new bn("","measure-light expression not supported")]);const _=la(a,["line-progress"]);if(!_&&!function(b){return jh(b.expression,"line-progress")}(e))return _n([new bn("","line-progress expression not supported")]);const y=e.expression&&e.expression.relaxZoomRestriction,v=Ec(a);return v||u||y?v instanceof bn?_n([v]):v instanceof tn&&!bc(e)?_n([new bn("",'"interpolate" expressions cannot be used with this property')]):Md(v?new fa(h&&_?"camera":"composite",r.value,v.labels,v instanceof tn?v.interpolation:void 0,f,_):new Es(h&&_?"constant":"source",r.value,f,_)):_n([new bn("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class pl{constructor(e,i){this._parameters=e,this._specification=i,Ka(this,Tc(this._parameters,this._specification))}static deserialize(e){return new pl(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function Ec(r){let e=null;if(r instanceof fc)e=Ec(r.result);else if(r instanceof pc){for(const i of r.args)if(e=Ec(i),e)break}else(r instanceof al||r instanceof tn)&&r.input instanceof Br&&r.input.name==="zoom"&&(e=r);return e instanceof bn||r.eachChild(i=>{const o=Ec(i);o instanceof bn?e=o:e&&o&&e!==o&&(e=new bn("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}var Zh,Ic,Hh=function(){if(Ic)return Zh;Ic=1,Zh=e;var r=3;function e(i,o,a){var h=this.cells=[];if(i instanceof ArrayBuffer){this.arrayBuffer=i;var u=new Int32Array(this.arrayBuffer);i=u[0],this.d=(o=u[1])+2*(a=u[2]);for(var f=0;f<this.d*this.d;f++){var _=u[r+f],y=u[r+f+1];h.push(_===y?null:u.subarray(_,y))}var v=u[r+h.length+1];this.keys=u.subarray(u[r+h.length],v),this.bboxes=u.subarray(v),this.insert=this._insertReadonly}else{this.d=o+2*a;for(var b=0;b<this.d*this.d;b++)h.push([]);this.keys=[],this.bboxes=[]}this.n=o,this.extent=i,this.padding=a,this.scale=o/i,this.uid=0;var T=a/o*i;this.min=-T,this.max=i+T}return e.prototype.insert=function(i,o,a,h,u){this._forEachCell(o,a,h,u,this._insertCell,this.uid++),this.keys.push(i),this.bboxes.push(o),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,o,a,h,u,f){this.cells[u].push(f)},e.prototype.query=function(i,o,a,h,u){var f=this.min,_=this.max;if(i<=f&&o<=f&&_<=a&&_<=h&&!u)return Array.prototype.slice.call(this.keys);var y=[];return this._forEachCell(i,o,a,h,this._queryCell,y,{},u),y},e.prototype._queryCell=function(i,o,a,h,u,f,_,y){var v=this.cells[u];if(v!==null)for(var b=this.keys,T=this.bboxes,A=0;A<v.length;A++){var M=v[A];if(_[M]===void 0){var P=4*M;(y?y(T[P+0],T[P+1],T[P+2],T[P+3]):i<=T[P+2]&&o<=T[P+3]&&a>=T[P+0]&&h>=T[P+1])?(_[M]=!0,f.push(b[M])):_[M]=!1}}},e.prototype._forEachCell=function(i,o,a,h,u,f,_,y){for(var v=this._convertToCellCoord(i),b=this._convertToCellCoord(o),T=this._convertToCellCoord(a),A=this._convertToCellCoord(h),M=v;M<=T;M++)for(var P=b;P<=A;P++){var O=this.d*P+M;if((!y||y(this._convertFromCellCoord(M),this._convertFromCellCoord(P),this._convertFromCellCoord(M+1),this._convertFromCellCoord(P+1)))&&u.call(this,i,o,a,h,O,f,_,y))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,o=r+this.cells.length+1+1,a=0,h=0;h<this.cells.length;h++)a+=this.cells[h].length;var u=new Int32Array(o+a+this.keys.length+this.bboxes.length);u[0]=this.extent,u[1]=this.n,u[2]=this.padding;for(var f=o,_=0;_<i.length;_++){var y=i[_];u[r+_]=f,u.set(y,f),f+=y.length}return u[r+i.length]=f,u.set(this.keys,f),u[r+i.length+1]=f+=this.keys.length,u.set(this.bboxes,f),f+=this.bboxes.length,u.buffer},Zh}(),ma=Jn(Hh);const fl={};function et(r,e,i={}){Object.defineProperty(r,"_classRegistryKey",{value:e,writable:!1}),fl[e]={klass:r,omit:i.omit||[]}}et(Object,"Object"),ma.serialize=function(r,e){const i=r.toArrayBuffer();return e&&e.add(i),{buffer:i}},ma.deserialize=function(r){return new ma(r.buffer)},Object.defineProperty(ma,"name",{value:"Grid"}),et(ma,"Grid"),typeof DOMMatrix<"u"&&et(DOMMatrix,"DOMMatrix"),et(ei,"Color"),et(Error,"Error"),et(Zr,"Formatted"),et(Ql,"FormattedSection"),et($l,"AJAXError"),et(en,"ResolvedImage"),et(pl,"StylePropertyFunction"),et(qh,"StyleExpression",{omit:["_evaluator"]}),et(an,"ImageId"),et(kn,"ImageVariant"),et(fa,"ZoomDependentExpression"),et(Es,"ZoomConstantExpression"),et(Br,"CompoundExpression",{omit:["_evaluate"]});for(const r in Ts)fl[Ts[r]._classRegistryKey]||et(Ts[r],`Expression${r}`);function ml(r){return r&&typeof ArrayBuffer<"u"&&(r instanceof ArrayBuffer||r.constructor&&r.constructor.name==="ArrayBuffer")}function Is(r){return self.ImageBitmap&&r instanceof ImageBitmap}function jo(r,e){if(r==null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||r instanceof Boolean||r instanceof Number||r instanceof String||r instanceof Date||r instanceof RegExp)return r;if(ml(r)||Is(r))return e&&e.add(r),r;if(ArrayBuffer.isView(r))return e&&e.add(r.buffer),r;if(r instanceof ImageData)return e&&e.add(r.data.buffer),r;if(Array.isArray(r)){const i=[];for(const o of r)i.push(jo(o,e));return i}if(r instanceof Map){const i={$name:"Map",entries:[]};for(const[o,a]of r.entries())i.entries.push(jo(o),jo(a,e));return i}if(r instanceof Set){const i={$name:"Set"};let o=0;for(const a of r.values())i[++o]=jo(a);return i}if(r instanceof DOMMatrix){const i={$name:"DOMMatrix"},o=["is2D","m11","m12","m13","m14","m21","m22","m23","m24","m31","m32","m33","m34","m41","m42","m43","m44","a","b","c","d","e","f"];for(const a of o)i[a]=r[a];return i}if(typeof r=="bigint")return{$name:"BigInt",value:r.toString()};if(typeof r=="object"){const i=r.constructor,o=i._classRegistryKey;if(!o)throw new Error(`Can't serialize object of unregistered class "${i.name}".`);const a=i.serialize?i.serialize(r,e):{};if(!i.serialize){for(const h in r)r.hasOwnProperty(h)&&(fl[o].omit.indexOf(h)>=0||(a[h]=jo(r[h],e)));r instanceof Error&&(a.message=r.message)}if(a.$name)throw new Error("$name property is reserved for worker serialization logic.");return o!=="Object"&&(a.$name=o),a}throw new Error("can't serialize object of type "+typeof r)}function Go(r){if(r==null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||r instanceof Boolean||r instanceof Number||r instanceof String||r instanceof Date||r instanceof RegExp||ml(r)||Is(r)||ArrayBuffer.isView(r)||r instanceof ImageData)return r;if(Array.isArray(r))return r.map(Go);if(typeof r=="object"){const e=r.$name||"Object";if(e==="Map"){const a=r.entries||[],h=new Map;for(let u=0;u<a.length;u+=2)h.set(Go(a[u]),Go(a[u+1]));return h}if(e==="Set"){const a=new Set;for(const h of Object.keys(r))h!=="$name"&&a.add(Go(r[h]));return a}if(e==="DOMMatrix"){let a;return a=r.is2D?[r.a,r.b,r.c,r.d,r.e,r.f]:[r.m11,r.m12,r.m13,r.m14,r.m21,r.m22,r.m23,r.m24,r.m31,r.m32,r.m33,r.m34,r.m41,r.m42,r.m43,r.m44],new DOMMatrix(a)}if(e==="BigInt")return BigInt(r.value);const{klass:i}=fl[e];if(!i)throw new Error(`Can't deserialize unregistered class "${e}".`);if(i.deserialize)return i.deserialize(r);const o=Object.create(i.prototype);for(const a of Object.keys(r))a!=="$name"&&(o[a]=Go(r[a]));return o}throw new Error("can't deserialize object of type "+typeof r)}const mt={"Latin-1 Supplement":r=>r>=128&&r<=255,Arabic:r=>r>=1536&&r<=1791,"Arabic Supplement":r=>r>=1872&&r<=1919,"Arabic Extended-A":r=>r>=2208&&r<=2303,"Hangul Jamo":r=>r>=4352&&r<=4607,"Unified Canadian Aboriginal Syllabics":r=>r>=5120&&r<=5759,Khmer:r=>r>=6016&&r<=6143,"Unified Canadian Aboriginal Syllabics Extended":r=>r>=6320&&r<=6399,"General Punctuation":r=>r>=8192&&r<=8303,"Letterlike Symbols":r=>r>=8448&&r<=8527,"Number Forms":r=>r>=8528&&r<=8591,"Miscellaneous Technical":r=>r>=8960&&r<=9215,"Control Pictures":r=>r>=9216&&r<=9279,"Optical Character Recognition":r=>r>=9280&&r<=9311,"Enclosed Alphanumerics":r=>r>=9312&&r<=9471,"Geometric Shapes":r=>r>=9632&&r<=9727,"Miscellaneous Symbols":r=>r>=9728&&r<=9983,"Miscellaneous Symbols and Arrows":r=>r>=11008&&r<=11263,"CJK Radicals Supplement":r=>r>=11904&&r<=12031,"Kangxi Radicals":r=>r>=12032&&r<=12255,"Ideographic Description Characters":r=>r>=12272&&r<=12287,"CJK Symbols and Punctuation":r=>r>=12288&&r<=12351,Hiragana:r=>r>=12352&&r<=12447,Katakana:r=>r>=12448&&r<=12543,Bopomofo:r=>r>=12544&&r<=12591,"Hangul Compatibility Jamo":r=>r>=12592&&r<=12687,Kanbun:r=>r>=12688&&r<=12703,"Bopomofo Extended":r=>r>=12704&&r<=12735,"CJK Strokes":r=>r>=12736&&r<=12783,"Katakana Phonetic Extensions":r=>r>=12784&&r<=12799,"Enclosed CJK Letters and Months":r=>r>=12800&&r<=13055,"CJK Compatibility":r=>r>=13056&&r<=13311,"CJK Unified Ideographs Extension A":r=>r>=13312&&r<=19903,"Yijing Hexagram Symbols":r=>r>=19904&&r<=19967,"CJK Unified Ideographs":r=>r>=19968&&r<=40959,"Yi Syllables":r=>r>=40960&&r<=42127,"Yi Radicals":r=>r>=42128&&r<=42191,"Hangul Jamo Extended-A":r=>r>=43360&&r<=43391,"Hangul Syllables":r=>r>=44032&&r<=55215,"Hangul Jamo Extended-B":r=>r>=55216&&r<=55295,"Private Use Area":r=>r>=57344&&r<=63743,"CJK Compatibility Ideographs":r=>r>=63744&&r<=64255,"Arabic Presentation Forms-A":r=>r>=64336&&r<=65023,"Vertical Forms":r=>r>=65040&&r<=65055,"CJK Compatibility Forms":r=>r>=65072&&r<=65103,"Small Form Variants":r=>r>=65104&&r<=65135,"Arabic Presentation Forms-B":r=>r>=65136&&r<=65279,"Halfwidth and Fullwidth Forms":r=>r>=65280&&r<=65519,Osage:r=>r>=66736&&r<=66815,"CJK Unified Ideographs Extension B":r=>r>=131072&&r<=173791};function $h(r){for(const e of r)if(_l(e.charCodeAt(0)))return!0;return!1}function yf(r){for(const e of r)if(!Dd(e.charCodeAt(0)))return!1;return!0}function Dd(r){return!(mt.Arabic(r)||mt["Arabic Supplement"](r)||mt["Arabic Extended-A"](r)||mt["Arabic Presentation Forms-A"](r)||mt["Arabic Presentation Forms-B"](r))}function _l(r){return!(r!==746&&r!==747&&(r<4352||!(mt["Bopomofo Extended"](r)||mt.Bopomofo(r)||mt["CJK Compatibility Forms"](r)&&!(r>=65097&&r<=65103)||mt["CJK Compatibility Ideographs"](r)||mt["CJK Compatibility"](r)||mt["CJK Radicals Supplement"](r)||mt["CJK Strokes"](r)||!(!mt["CJK Symbols and Punctuation"](r)||r>=12296&&r<=12305||r>=12308&&r<=12319||r===12336)||mt["CJK Unified Ideographs Extension A"](r)||mt["CJK Unified Ideographs"](r)||mt["Enclosed CJK Letters and Months"](r)||mt["Hangul Compatibility Jamo"](r)||mt["Hangul Jamo Extended-A"](r)||mt["Hangul Jamo Extended-B"](r)||mt["Hangul Jamo"](r)||mt["Hangul Syllables"](r)||mt.Hiragana(r)||mt["Ideographic Description Characters"](r)||mt.Kanbun(r)||mt["Kangxi Radicals"](r)||mt["Katakana Phonetic Extensions"](r)||mt.Katakana(r)&&r!==12540||!(!mt["Halfwidth and Fullwidth Forms"](r)||r===65288||r===65289||r===65293||r>=65306&&r<=65310||r===65339||r===65341||r===65343||r>=65371&&r<=65503||r===65507||r>=65512&&r<=65519)||!(!mt["Small Form Variants"](r)||r>=65112&&r<=65118||r>=65123&&r<=65126)||mt["Unified Canadian Aboriginal Syllabics"](r)||mt["Unified Canadian Aboriginal Syllabics Extended"](r)||mt["Vertical Forms"](r)||mt["Yijing Hexagram Symbols"](r)||mt["Yi Syllables"](r)||mt["Yi Radicals"](r))))}function Rd(r){return!(_l(r)||function(e){return!!(mt["Latin-1 Supplement"](e)&&(e===167||e===169||e===174||e===177||e===188||e===189||e===190||e===215||e===247)||mt["General Punctuation"](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)||mt["Letterlike Symbols"](e)||mt["Number Forms"](e)||mt["Miscellaneous Technical"](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)||mt["Control Pictures"](e)&&e!==9251||mt["Optical Character Recognition"](e)||mt["Enclosed Alphanumerics"](e)||mt["Geometric Shapes"](e)||mt["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||mt["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||mt["CJK Symbols and Punctuation"](e)||mt.Katakana(e)||mt["Private Use Area"](e)||mt["CJK Compatibility Forms"](e)||mt["Small Form Variants"](e)||mt["Halfwidth and Fullwidth Forms"](e)||e===8734||e===8756||e===8757||e>=9984&&e<=10087||e>=10102&&e<=10131||e===65532||e===65533)}(r))}function xf(r){return mt.Arabic(r)||mt["Arabic Supplement"](r)||mt["Arabic Extended-A"](r)||mt["Arabic Presentation Forms-A"](r)||mt["Arabic Presentation Forms-B"](r)}function Ld(r){return r>=1424&&r<=2303||mt["Arabic Presentation Forms-A"](r)||mt["Arabic Presentation Forms-B"](r)}function vf(r,e){return!(!e&&Ld(r)||r>=2304&&r<=3583||r>=3840&&r<=4255||mt.Khmer(r))}function bf(r){for(const e of r)if(Ld(e.charCodeAt(0)))return!0;return!1}const Wh="deferred",Xh="loading",Yh="loaded";let Kh=null,ln="unavailable",qo=null;const As=function(r){r&&typeof r=="string"&&r.indexOf("NetworkError")>-1&&(ln="error"),Kh&&Kh(r)};function Ac(){Mc.fire(new Ro("pluginStateChange",{pluginStatus:ln,pluginURL:qo}))}const Mc=new ps,_a=function(){return ln},kd=function(){if(ln!==Wh||!qo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");ln=Xh,Ac(),qo&&Ys({url:qo},r=>{r?As(r):(ln=Yh,Ac())})},Sn={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>ln===Yh||Sn.applyArabicShaping!=null,isLoading:()=>ln===Xh,setState(r){ln=r.pluginStatus,qo=r.pluginURL},isParsed:()=>Sn.applyArabicShaping!=null&&Sn.processBidirectionalText!=null&&Sn.processStyledBidirectionalText!=null,getPluginURL:()=>qo};class li{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.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(e){return function(i,o){for(const a of i)if(!vf(a.charCodeAt(0),o))return!1;return!0}(e,Sn.isLoaded())}}class gl{constructor(e,i,o,a){this.property=e,this.value=i,this.expression=function(h,u,f,_){if(wc(h))return new pl(h,u);if(Sc(h)||Array.isArray(h)&&h.length>0){const y=dl(h,u,f,_);if(y.result==="error")throw new Error(y.value.map(v=>`${v.key}: ${v.message}`).join(", "));return y.value}{let y=h;return typeof h=="string"&&u.type==="color"&&(y=ei.parse(h)),{kind:"constant",configDependencies:new Set,evaluate:()=>y}}}(i===void 0?e.specification.default:i,e.specification,o,a)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(e,i,o){return this.property.possiblyEvaluate(this,e,i,o)}}class Zo{constructor(e,i,o){this.property=e,this.value=new gl(e,void 0,i,o)}transitioned(e,i){return new Fd(this.property,this.value,i,ye({},e.transition,this.transition),e.now)}untransitioned(){return new Fd(this.property,this.value,null,{},0)}}class Od{constructor(e,i,o){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._scope=i,this._options=o,this.configDependencies=new Set}getValue(e){return Bt(this._values[e].value.value)}setValue(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new Zo(this._values[e].property,this._scope,this._options)),this._values[e].value=new gl(this._values[e].property,i===null?void 0:Bt(i),this._scope,this._options),this._values[e].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].value.expression.configDependencies]))}setTransitionOrValue(e,i){i&&(this._options=i);const o=this._properties.properties;if(e)for(const a in e){const h=e[a];if(a.endsWith("-transition")){const u=a.slice(0,-11);o[u]&&this.setTransition(u,h)}else o.hasOwnProperty(a)&&this.setValue(a,h)}}getTransition(e){return Bt(this._values[e].transition)}setTransition(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new Zo(this._values[e].property)),this._values[e].transition=Bt(i)||void 0}serialize(){const e={};for(const i of Object.keys(this._values)){const o=this.getValue(i);o!==void 0&&(e[i]=o);const a=this.getTransition(i);a!==void 0&&(e[`${i}-transition`]=a)}return e}transitioned(e,i){const o=new Bd(this._properties);for(const a of Object.keys(this._values))o._values[a]=this._values[a].transitioned(e,i._values[a]);return o}untransitioned(){const e=new Bd(this._properties);for(const i of Object.keys(this._values))e._values[i]=this._values[i].untransitioned();return e}}class Fd{constructor(e,i,o,a,h){const u=a.delay||0,f=a.duration||0;h=h||0,this.property=e,this.value=i,this.begin=h+u,this.end=this.begin+f,e.specification.transition&&(a.delay||a.duration)&&(this.prior=o)}possiblyEvaluate(e,i,o){const a=e.now||0,h=this.value.possiblyEvaluate(e,i,o),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,o);{const f=(a-this.begin)/(this.end-this.begin);return this.property.interpolate(u.possiblyEvaluate(e,i,o),h,oe(f))}}return h}}class Bd{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,i,o){const a=new Ms(this._properties);for(const h of Object.keys(this._values))a._values[h]=this._values[h].possiblyEvaluate(e,i,o);return a}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class wf{constructor(e,i,o){this._properties=e,this._values=Object.create(e.defaultPropertyValues),this._scope=i,this._options=o,this.configDependencies=new Set}getValue(e){return Bt(this._values[e].value)}setValue(e,i){this._values[e]=new gl(this._values[e].property,i===null?void 0:Bt(i),this._scope,this._options),this._values[e].expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].expression.configDependencies]))}serialize(){const e={};for(const i of Object.keys(this._values)){const o=this.getValue(i);o!==void 0&&(e[i]=o)}return e}possiblyEvaluate(e,i,o){const a=new Ms(this._properties);for(const h of Object.keys(this._values))a._values[h]=this._values[h].possiblyEvaluate(e,i,o);return a}}class ga{constructor(e,i,o){this.property=e,this.value=i,this.parameters=o}isConstant(){return this.value.kind==="constant"}constantOr(e){return this.value.kind==="constant"?this.value.value:e}evaluate(e,i,o,a){return this.property.evaluate(this.value,this.parameters,e,i,o,a)}}class Ms{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class qe{constructor(e){this.specification=e}possiblyEvaluate(e,i){return e.expression.evaluate(i)}interpolate(e,i,o){const a=Jl[this.specification.type];return a?a(e,i,o):e}}class Qe{constructor(e,i){this.specification=e,this.overrides=i}possiblyEvaluate(e,i,o,a){return new ga(this,e.expression.kind==="constant"||e.expression.kind==="camera"?{kind:"constant",value:e.expression.evaluate(i,null,{},o,a)}:e.expression,i)}interpolate(e,i,o){if(e.value.kind!=="constant"||i.value.kind!=="constant")return e;if(e.value.value===void 0||i.value.value===void 0)return new ga(this,{kind:"constant",value:void 0},e.parameters);const a=Jl[this.specification.type];return a?new ga(this,{kind:"constant",value:a(e.value.value,i.value.value,o)},e.parameters):e}evaluate(e,i,o,a,h,u){return e.kind==="constant"?e.value:e.evaluate(i,o,a,h,u)}}class Cs{constructor(e){this.specification=e}possiblyEvaluate(e,i,o,a){return!!e.expression.evaluate(i,null,{},o,a)}interpolate(){return!1}}class Wi{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const i=new li(0,{});for(const o in e){const a=e[o];a.specification.overridable&&this.overridableProperties.push(o);const h=this.defaultPropertyValues[o]=new gl(a,void 0),u=this.defaultTransitionablePropertyValues[o]=new Zo(a);this.defaultTransitioningPropertyValues[o]=u.untransitioned(),this.defaultPossiblyEvaluatedValues[o]=h.possiblyEvaluate(i)}}}et(Qe,"DataDrivenProperty"),et(qe,"DataConstantProperty"),et(Cs,"ColorRampProperty");var me=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"]},"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}},"properties_light_ambient":{"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"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"]},"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"}}},"source_model":{"type":{"type":"enum","values":{"model":1,"batched-model":1}},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"}},"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"}},"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"]}}},"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":{}}},"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-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"}},"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"]}}},"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,"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,"maximum":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,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"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],"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,"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,"maximum":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,"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],"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},"transition":true},"high-color":{"type":"color","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"space-color":{"type":"color","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":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},"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},"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},"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},"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":{"floorplanFeaturesetId":{"type":"string","expression":{}},"buildingFeaturesetId":{"type":"string","expression":{}}},"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"]},"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","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","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"]},"transition":true},"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)","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)","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","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"]},"transition":true},"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","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-wall-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"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)","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"property-type":"data-driven"},"building-emissive-strength":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"}},"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","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"]},"transition":true},"line-gradient":{"type":"color","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","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"]}},"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)","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","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","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"],"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","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)","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"]},"transition":true},"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","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)","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","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"]}}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string"},"raster-particle-count":{"type":"number","default":512,"minimum":1},"raster-particle-color":{"type":"color","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","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-accent-color":{"type":"color","default":"#000000","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","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"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"],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]}},"sky-atmosphere-halo-color":{"type":"color","default":"white"},"sky-atmosphere-color":{"type":"color","default":"white"},"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"]},"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]}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"promoteId":{"*":{"type":"*"}}}');function Fn(r){return r instanceof Number||r instanceof String||r instanceof Boolean?r.valueOf():r}function Cc(r){if(Array.isArray(r))return r.map(Cc);if(r instanceof Object&&!(r instanceof Number||r instanceof String||r instanceof Boolean)){const e={};for(const i in r)e[i]=Cc(r[i]);return e}return Fn(r)}function Pc(r){if(r===!0||r===!1)return!0;if(!Array.isArray(r)||r.length===0)return!1;switch(r[0]){case"has":return r.length>=2&&r[1]!=="$id"&&r[1]!=="$type";case"in":return r.length>=3&&(typeof r[1]!="string"||Array.isArray(r[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return r.length!==3||Array.isArray(r[1])||Array.isArray(r[2]);case"any":case"all":for(const e of r.slice(1))if(!Pc(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}function Jh(r,e="",i=null,o="fill"){if(r==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};Pc(r)||(r=zc(r));const a=r;let h=!0;try{h=function(v){if(!ya(v))return v;let b=Cc(v);return Vd(b),b=Nd(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 Sr=require("./utils-95d79be8.cjs");var j0={exports:{}};(function(kr,oh){(function(Bs,Ns){kr.exports=Ns()})(Sr.commonjsGlobal,function(){var Bs,Ns,Vs;function Vl(s,Er){if(!Bs)Bs=Er;else if(!Ns)Ns=Er;else{var Bi="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 = {}; ("+Bs+")(sharedChunk); ("+Ns+")(sharedChunk); self.onerror = null;",Mn={};Bs(Mn),Vs=Er(Mn),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(Vs.workerUrl=window.URL.createObjectURL(new Blob([Bi],{type:"text/javascript"})))}}Vl(["exports"],function(s){var Er=1e-6,Bi=typeof Float32Array<"u"?Float32Array:Array;function Mn(r,e){var i=e[0],o=e[1],a=e[2],h=e[3],u=i*h-a*o;return u?(r[0]=h*(u=1/u),r[1]=-o*u,r[2]=-a*u,r[3]=i*u,r):null}function es(){var r=new Bi(9);return Bi!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[5]=0,r[6]=0,r[7]=0),r[0]=1,r[4]=1,r[8]=1,r}function qn(r,e){var i=e[0],o=e[1],a=e[2],h=e[3],u=e[4],f=e[5],_=e[6],y=e[7],v=e[8];return r[0]=u*v-f*y,r[1]=a*y-o*v,r[2]=o*f-a*u,r[3]=f*_-h*v,r[4]=i*v-a*_,r[5]=a*h-i*f,r[6]=h*y-u*_,r[7]=o*_-i*y,r[8]=i*u-o*h,r}function dn(r,e,i){var o=e[0],a=e[1],h=e[2],u=e[3],f=e[4],_=e[5],y=e[6],v=e[7],b=e[8],T=i[0],A=i[1],M=i[2],P=i[3],O=i[4],B=i[5],q=i[6],U=i[7],z=i[8];return r[0]=T*o+A*u+M*y,r[1]=T*a+A*f+M*v,r[2]=T*h+A*_+M*b,r[3]=P*o+O*u+B*y,r[4]=P*a+O*f+B*v,r[5]=P*h+O*_+B*b,r[6]=q*o+U*u+z*y,r[7]=q*a+U*f+z*v,r[8]=q*h+U*_+z*b,r}function Zn(){var r=new Bi(16);return Bi!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=0,r[12]=0,r[13]=0,r[14]=0),r[0]=1,r[5]=1,r[10]=1,r[15]=1,r}function Ft(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function Wt(r,e){var i=e[0],o=e[1],a=e[2],h=e[3],u=e[4],f=e[5],_=e[6],y=e[7],v=e[8],b=e[9],T=e[10],A=e[11],M=e[12],P=e[13],O=e[14],B=e[15],q=i*f-o*u,U=i*_-a*u,z=i*y-h*u,N=o*_-a*f,G=o*y-h*f,$=a*y-h*_,te=v*P-b*M,se=v*O-T*M,ae=v*B-A*M,de=b*O-T*P,Se=b*B-A*P,ke=T*B-A*O,ze=q*ke-U*Se+z*de+N*ae-G*se+$*te;return ze?(r[0]=(f*ke-_*Se+y*de)*(ze=1/ze),r[1]=(a*Se-o*ke-h*de)*ze,r[2]=(P*$-O*G+B*N)*ze,r[3]=(T*G-b*$-A*N)*ze,r[4]=(_*ae-u*ke-y*se)*ze,r[5]=(i*ke-a*ae+h*se)*ze,r[6]=(O*z-M*$-B*U)*ze,r[7]=(v*$-T*z+A*U)*ze,r[8]=(u*Se-f*ae+y*te)*ze,r[9]=(o*ae-i*Se-h*te)*ze,r[10]=(M*G-P*z+B*q)*ze,r[11]=(b*z-v*G-A*q)*ze,r[12]=(f*se-u*de-_*te)*ze,r[13]=(i*de-o*se+a*te)*ze,r[14]=(P*U-M*N-O*q)*ze,r[15]=(v*N-b*U+T*q)*ze,r):null}function mi(r,e,i){var o=e[0],a=e[1],h=e[2],u=e[3],f=e[4],_=e[5],y=e[6],v=e[7],b=e[8],T=e[9],A=e[10],M=e[11],P=e[12],O=e[13],B=e[14],q=e[15],U=i[0],z=i[1],N=i[2],G=i[3];return r[0]=U*o+z*f+N*b+G*P,r[1]=U*a+z*_+N*T+G*O,r[2]=U*h+z*y+N*A+G*B,r[3]=U*u+z*v+N*M+G*q,r[4]=(U=i[4])*o+(z=i[5])*f+(N=i[6])*b+(G=i[7])*P,r[5]=U*a+z*_+N*T+G*O,r[6]=U*h+z*y+N*A+G*B,r[7]=U*u+z*v+N*M+G*q,r[8]=(U=i[8])*o+(z=i[9])*f+(N=i[10])*b+(G=i[11])*P,r[9]=U*a+z*_+N*T+G*O,r[10]=U*h+z*y+N*A+G*B,r[11]=U*u+z*v+N*M+G*q,r[12]=(U=i[12])*o+(z=i[13])*f+(N=i[14])*b+(G=i[15])*P,r[13]=U*a+z*_+N*T+G*O,r[14]=U*h+z*y+N*A+G*B,r[15]=U*u+z*v+N*M+G*q,r}function xr(r,e,i){var o,a,h,u,f,_,y,v,b,T,A,M,P=i[0],O=i[1],B=i[2];return e===r?(r[12]=e[0]*P+e[4]*O+e[8]*B+e[12],r[13]=e[1]*P+e[5]*O+e[9]*B+e[13],r[14]=e[2]*P+e[6]*O+e[10]*B+e[14],r[15]=e[3]*P+e[7]*O+e[11]*B+e[15]):(a=e[1],h=e[2],u=e[3],f=e[4],_=e[5],y=e[6],v=e[7],b=e[8],T=e[9],A=e[10],M=e[11],r[0]=o=e[0],r[1]=a,r[2]=h,r[3]=u,r[4]=f,r[5]=_,r[6]=y,r[7]=v,r[8]=b,r[9]=T,r[10]=A,r[11]=M,r[12]=o*P+f*O+b*B+e[12],r[13]=a*P+_*O+T*B+e[13],r[14]=h*P+y*O+A*B+e[14],r[15]=u*P+v*O+M*B+e[15]),r}function vr(r,e,i){var o=i[0],a=i[1],h=i[2];return r[0]=e[0]*o,r[1]=e[1]*o,r[2]=e[2]*o,r[3]=e[3]*o,r[4]=e[4]*a,r[5]=e[5]*a,r[6]=e[6]*a,r[7]=e[7]*a,r[8]=e[8]*h,r[9]=e[9]*h,r[10]=e[10]*h,r[11]=e[11]*h,r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}function Ir(r,e,i){var o=Math.sin(i),a=Math.cos(i),h=e[4],u=e[5],f=e[6],_=e[7],y=e[8],v=e[9],b=e[10],T=e[11];return e!==r&&(r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[4]=h*a+y*o,r[5]=u*a+v*o,r[6]=f*a+b*o,r[7]=_*a+T*o,r[8]=y*a-h*o,r[9]=v*a-u*o,r[10]=b*a-f*o,r[11]=T*a-_*o,r}function Vr(r,e,i){var o=Math.sin(i),a=Math.cos(i),h=e[0],u=e[1],f=e[2],_=e[3],y=e[8],v=e[9],b=e[10],T=e[11];return e!==r&&(r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[0]=h*a-y*o,r[1]=u*a-v*o,r[2]=f*a-b*o,r[3]=_*a-T*o,r[8]=h*o+y*a,r[9]=u*o+v*a,r[10]=f*o+b*a,r[11]=_*o+T*a,r}function Hn(r,e,i){var o=Math.sin(i),a=Math.cos(i),h=e[0],u=e[1],f=e[2],_=e[3],y=e[4],v=e[5],b=e[6],T=e[7];return e!==r&&(r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[0]=h*a+y*o,r[1]=u*a+v*o,r[2]=f*a+b*o,r[3]=_*a+T*o,r[4]=y*a-h*o,r[5]=v*a-u*o,r[6]=b*a-f*o,r[7]=T*a-_*o,r}function $n(r,e){return r[0]=e[0],r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=e[1],r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=e[2],r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function Cn(r,e,i){var o,a,h,u=i[0],f=i[1],_=i[2],y=Math.hypot(u,f,_);return y<Er?null:(u*=y=1/y,f*=y,_*=y,o=Math.sin(e),a=Math.cos(e),r[0]=u*u*(h=1-a)+a,r[1]=f*u*h+_*o,r[2]=_*u*h-f*o,r[3]=0,r[4]=u*f*h-_*o,r[5]=f*f*h+a,r[6]=_*f*h+u*o,r[7]=0,r[8]=u*_*h+f*o,r[9]=f*_*h-u*o,r[10]=_*_*h+a,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r)}function ts(r,e){var i=e[0],o=e[1],a=e[2],h=e[3],u=i+i,f=o+o,_=a+a,y=i*u,v=o*u,b=o*f,T=a*u,A=a*f,M=a*_,P=h*u,O=h*f,B=h*_;return r[0]=1-b-M,r[1]=v+B,r[2]=T-O,r[3]=0,r[4]=v-B,r[5]=1-y-M,r[6]=A+P,r[7]=0,r[8]=T+O,r[9]=A-P,r[10]=1-y-b,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}Math.hypot||(Math.hypot=function(){for(var r=0,e=arguments.length;e--;)r+=arguments[e]*arguments[e];return Math.sqrt(r)});var Ba=mi;function rr(){var r=new Bi(3);return Bi!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r}function Ao(r){var e=new Bi(3);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e}function Ur(r){return Math.hypot(r[0],r[1],r[2])}function ji(r,e,i){var o=new Bi(3);return o[0]=r,o[1]=e,o[2]=i,o}function ar(r,e,i){return r[0]=e[0]+i[0],r[1]=e[1]+i[1],r[2]=e[2]+i[2],r}function Ar(r,e,i){return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],r}function Pn(r,e,i){return r[0]=e[0]*i[0],r[1]=e[1]*i[1],r[2]=e[2]*i[2],r}function Wn(r,e,i){return r[0]=Math.min(e[0],i[0]),r[1]=Math.min(e[1],i[1]),r[2]=Math.min(e[2],i[2]),r}function Xn(r,e,i){return r[0]=Math.max(e[0],i[0]),r[1]=Math.max(e[1],i[1]),r[2]=Math.max(e[2],i[2]),r}function vi(r,e,i){return r[0]=e[0]*i,r[1]=e[1]*i,r[2]=e[2]*i,r}function yn(r,e,i,o){return r[0]=e[0]+i[0]*o,r[1]=e[1]+i[1]*o,r[2]=e[2]+i[2]*o,r}function Us(r,e){var i=e[0]-r[0],o=e[1]-r[1],a=e[2]-r[2];return i*i+o*o+a*a}function js(r){var e=r[0],i=r[1],o=r[2];return e*e+i*i+o*o}function is(r,e){return r[0]=-e[0],r[1]=-e[1],r[2]=-e[2],r}function ki(r,e){var i=e[0],o=e[1],a=e[2],h=i*i+o*o+a*a;return h>0&&(h=1/Math.sqrt(h)),r[0]=e[0]*h,r[1]=e[1]*h,r[2]=e[2]*h,r}function Gi(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]}function nr(r,e,i){var o=e[0],a=e[1],h=e[2],u=i[0],f=i[1],_=i[2];return r[0]=a*_-h*f,r[1]=h*u-o*_,r[2]=o*f-a*u,r}function Gs(r,e,i,o){var a=e[0],h=e[1],u=e[2];return r[0]=a+o*(i[0]-a),r[1]=h+o*(i[1]-h),r[2]=u+o*(i[2]-u),r}function Ki(r,e,i){var o=e[0],a=e[1],h=e[2],u=i[3]*o+i[7]*a+i[11]*h+i[15];return r[0]=(i[0]*o+i[4]*a+i[8]*h+i[12])/(u=u||1),r[1]=(i[1]*o+i[5]*a+i[9]*h+i[13])/u,r[2]=(i[2]*o+i[6]*a+i[10]*h+i[14])/u,r}function qs(r,e,i){var o=e[0],a=e[1],h=e[2];return r[0]=o*i[0]+a*i[3]+h*i[6],r[1]=o*i[1]+a*i[4]+h*i[7],r[2]=o*i[2]+a*i[5]+h*i[8],r}function Mo(r,e,i){var o=i[0],a=i[1],h=i[2],u=e[0],f=e[1],_=e[2],y=a*_-h*f,v=h*u-o*_,b=o*f-a*u,T=a*b-h*v,A=h*y-o*b,M=o*v-a*y,P=2*i[3];return v*=P,b*=P,A*=2,M*=2,r[0]=u+(y*=P)+(T*=2),r[1]=f+v+A,r[2]=_+b+M,r}function pn(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]}var Ji=Ar,ah=Pn,rs=Ur;function jr(){var r=new Bi(4);return Bi!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0,r[3]=0),r}function ao(r,e,i){return r[0]=e[0]*i,r[1]=e[1]*i,r[2]=e[2]*i,r[3]=e[3]*i,r}function Co(r,e){var i=e[0],o=e[1],a=e[2],h=e[3],u=i*i+o*o+a*a+h*h;return u>0&&(u=1/Math.sqrt(u)),r[0]=i*u,r[1]=o*u,r[2]=a*u,r[3]=h*u,r}function nn(r,e,i){var o=e[0],a=e[1],h=e[2],u=e[3];return r[0]=i[0]*o+i[4]*a+i[8]*h+i[12]*u,r[1]=i[1]*o+i[5]*a+i[9]*h+i[13]*u,r[2]=i[2]*o+i[6]*a+i[10]*h+i[14]*u,r[3]=i[3]*o+i[7]*a+i[11]*h+i[15]*u,r}function zn(){var r=new Bi(4);return Bi!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r[3]=1,r}function Po(r){return r[0]=0,r[1]=0,r[2]=0,r[3]=1,r}function lo(r,e,i){i*=.5;var o=e[0],a=e[1],h=e[2],u=e[3],f=Math.sin(i),_=Math.cos(i);return r[0]=o*_+u*f,r[1]=a*_+h*f,r[2]=h*_-a*f,r[3]=u*_-o*f,r}function ns(r,e,i){i*=.5;var o=e[0],a=e[1],h=e[2],u=e[3],f=Math.sin(i),_=Math.cos(i);return r[0]=o*_-h*f,r[1]=a*_+u*f,r[2]=h*_+o*f,r[3]=u*_-a*f,r}rr(),jr();var Kr,fn,Na,os,Zs,Yn=Co,co=(Kr=rr(),fn=ji(1,0,0),Na=ji(0,1,0),function(r,e,i){var o=Gi(e,i);return o<-.999999?(nr(Kr,fn,e),rs(Kr)<1e-6&&nr(Kr,Na,e),ki(Kr,Kr),function(a,h,u){u*=.5;var f=Math.sin(u);a[0]=f*h[0],a[1]=f*h[1],a[2]=f*h[2],a[3]=Math.cos(u)}(r,Kr,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(nr(Kr,e,i),r[0]=Kr[0],r[1]=Kr[1],r[2]=Kr[2],r[3]=1+o,Yn(r,r))});function Jr(){var r=new Bi(2);return Bi!=Float32Array&&(r[0]=0,r[1]=0),r}function ss(r,e){var i=new Bi(2);return i[0]=r,i[1]=e,i}function zo(r,e,i){return r[0]=e[0]+i[0],r[1]=e[1]+i[1],r}function Kn(r,e,i){return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r}function as(r,e,i){return r[0]=e[0]*i,r[1]=e[1]*i,r}function ls(r){return Math.hypot(r[0],r[1])}function Va(r,e){var i=e[0],o=e[1],a=i*i+o*o;return a>0&&(a=1/Math.sqrt(a)),r[0]=e[0]*a,r[1]=e[1]*a,r}function Oi(r,e){return r[0]*e[0]+r[1]*e[1]}function Jn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}zn(),zn(),es(),Jr();var Hs,xn,Ua=function(){if(Zs)return os;function r(e,i,o,a){this.cx=3*e,this.bx=3*(o-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=o,this.p2y=a}return Zs=1,os=r,r.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 o=e,a=0;a<8;a++){var h=this.sampleCurveX(o)-e;if(Math.abs(h)<i)return o;var u=this.sampleCurveDerivativeX(o);if(Math.abs(u)<1e-6)break;o-=h/u}var f=0,_=1;for(o=e,a=0;a<20&&(h=this.sampleCurveX(o),!(Math.abs(h-e)<i));a++)e>h?f=o:_=o,o=.5*(_-f)+f;return o},solve:function(e,i){return this.sampleCurveY(this.solveCurveX(e,i))}},os}(),Ul=Jn(Ua);function ja(){if(xn)return Hs;function r(e,i){this.x=e,this.y=i}return xn=1,Hs=r,r.prototype={clone:function(){return new r(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,i){return this.clone()._rotateAround(e,i)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var i=e.x-this.x,o=e.y-this.y;return i*i+o*o},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,i){return Math.atan2(this.x*i-this.y*e,this.x*e+this.y*i)},_matMult:function(e){var i=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=i,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var i=Math.cos(e),o=Math.sin(e),a=o*this.x+i*this.y;return this.x=i*this.x-o*this.y,this.y=a,this},_rotateAround:function(e,i){var o=Math.cos(e),a=Math.sin(e),h=i.y+a*(this.x-i.x)+o*(this.y-i.y);return this.x=i.x+o*(this.x-i.x)-a*(this.y-i.y),this.y=h,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},r.convert=function(e){return e instanceof r?e:Array.isArray(e)?new r(e[0],e[1]):e},Hs}var He=Jn(ja());function ho(r,e){if(Array.isArray(r)){if(!Array.isArray(e)||r.length!==e.length)return!1;for(let i=0;i<r.length;i++)if(!ho(r[i],e[i]))return!1;return!0}if(typeof r=="object"&&r!==null&&e!==null){if(typeof e!="object"||Object.keys(r).length!==Object.keys(e).length)return!1;for(const i in r)if(!ho(r[i],e[i]))return!1;return!0}return r===e}const jl=Math.PI/180,Ee=180/Math.PI;function k(r){return r*jl}function V(r){return r*Ee}const K=[[0,0],[1,0],[1,1],[0,1]];function oe(r){if(r<=0)return 0;if(r>=1)return 1;const e=r*r,i=e*r;return 4*(r<.5?i:3*(r-e)+i-.75)}function re(r,e,i,o){const a=new Ul(r,e,i,o);return function(h){return a.solve(h)}}const le=re(.25,.1,.25,1);function ce(r,e,i){return Math.min(i,Math.max(e,r))}function he(r,e,i){return(i=ce((i-r)/(e-r),0,1))*i*(3-2*i)}function ve(r,e,i){const o=i-e,a=((r-e)%o+o)%o+e;return a===e?i:a}function Me(r,e,i){if(!r.length)return i(null,[]);let o=r.length;const a=new Array(r.length);let h=null;r.forEach((u,f)=>{e(u,(_,y)=>{_&&(h=_),a[f]=y,--o==0&&i(h,a)})})}function ye(r,...e){for(const i of e)for(const o in i)r[o]=i[o];return r}let $e=1;function Je(){return $e++}function ct(r){return r<=1?1:Math.pow(2,Math.ceil(Math.log(r)/Math.LN2))}function St(r,e){r.forEach(i=>{e[i]&&(e[i]=e[i].bind(e))})}function At(r,e,i){const o={};for(const a in r)o[a]=e.call(this,r[a],a,r);return o}function Rt(r,e,i){const o={};for(const a in r)e.call(this,r[a],a,r)&&(o[a]=r[a]);return o}function Bt(r){return Array.isArray(r)?r.map(Bt):typeof r=="object"&&r?At(r,Bt):r}const qi={};function Vt(r){qi[r]||(typeof console<"u"&&console.warn(r),qi[r]=!0)}function _i(r,e,i){return(i.y-r.y)*(e.x-r.x)>(e.y-r.y)*(i.x-r.x)}function Jt(r){let e=0;for(let i,o,a=0,h=r.length,u=h-1;a<h;u=a++)i=r[a],o=r[u],e+=(o.x-i.x)*(i.y+o.y);return e}function gi([r,e,i]){const o=k(e+90),a=k(i);return{x:r*Math.cos(o)*Math.sin(a),y:r*Math.sin(o)*Math.sin(a),z:r*Math.cos(a),azimuthal:e,polar:i}}function bi(r){return(typeof self<"u"||r!==void 0)&&typeof WorkerGlobalScope<"u"&&(r!==void 0?r:self)instanceof WorkerGlobalScope}function Qi(r){const e={};if(r.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(i,o,a,h)=>{const u=a||h;return e[o]=!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 lr=null;function mr(r,e){return[r[4*e],r[4*e+1],r[4*e+2],r[4*e+3]]}function Mr(r,e,i,o){for(;e<i;){const a=e+i>>1;r[a]<o?e=a+1:i=a}return e}function uo(r,e,i,o){for(;e<i;){const a=e+i>>1;r[a]<=o?e=a+1:i=a}return e}function Or(r){return r>0?1/(1.001-r):1+r}function Fr(r){return r>0?1-1/(1.001-r):-r}function br(r,e,i){return(r-e.min)*(i.max-i.min)/(e.max-e.min)+i.min}const zr={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(!zr.API_URL)return null;try{const r=new URL(zr.API_URL);return r.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":r.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",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1"};function Qn(r){return zr.API_URL_REGEX.test(r)}function cs(r){return zr.API_SPRITE_REGEX.test(r)}let Ga,$s,Gl,qa,hs,Za;function lh(){return Ga==null&&(Ga=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),Ga}const Dn={now:()=>qa!==void 0?qa:performance.now(),setNow(r){qa=r},restoreNow(){qa=void 0},frame(r){const e=requestAnimationFrame(r);return{cancel:()=>cancelAnimationFrame(e)}},getImageData(r,e=0){const{width:i,height:o}=r;hs||(hs=document.createElement("canvas"));const a=hs.getContext("2d",{willReadFrequently:!0});if(!a)throw new Error("failed to create canvas 2d context");return(i>hs.width||o>hs.height)&&(hs.width=i,hs.height=o),a.clearRect(-e,-e,i+2*e,o+2*e),a.drawImage(r,0,0,i,o),a.getImageData(-e,-e,i+2*e,o+2*e)},resolveURL:r=>($s||($s=document.createElement("a")),$s.href=r,$s.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(Gl==null&&(Gl=window.matchMedia("(prefers-reduced-motion: reduce)")),Gl.matches)},hasCanvasFingerprintNoise(){if(Za!==void 0)return Za;if(!lh())return Za=!1,!1;const r=new OffscreenCanvas(85,1),e=r.getContext("2d",{willReadFrequently:!0});let i=0;for(let a=0;a<r.width;++a)e.fillStyle=`rgba(${i++},${i++},${i++}, 255)`,e.fillRect(a,0,1,1);const o=e.getImageData(0,0,r.width,r.height);i=0;for(let a=0;a<o.data.length;++a)if(a%4!=3&&i++!==o.data[a])return Za=!0,!0;return Za=!1,!1}};function ch(r,e){const i=r.indexOf("?");if(i<0)return`${r}?${new URLSearchParams(e).toString()}`;const o=new URLSearchParams(r.slice(i));for(const a in e)o.set(a,e[a]);return`${r.slice(0,i)}?${o.toString()}`}function on(r,e={persistentParams:[]}){const i=r.indexOf("?");if(i<0)return r;const o=new URLSearchParams,a=new URLSearchParams(r.slice(i));for(const u of e.persistentParams){const f=a.get(u);f&&o.set(u,f)}const h=o.toString();return`${r.slice(0,i)}${h.length>0?`?${h}`:""}`}const Rn="mapbox-tiles";let po=500,Ln=50;const fo=["language","worldview","jobid"];let vn,Ha;function hh(){try{return caches}catch{}}function mo(){const r=hh();r&&vn==null&&(vn=r.open(Rn))}let $a=1/0;const uh={supported:!1,testSupport:function(r){!ql&&Gr&&(Zl?Qu(r):Wa=r)}};let Wa,Gr,ql=!1,Zl=!1;const Ws=typeof self<"u"?self:{};function Qu(r){const e=r.createTexture();r.bindTexture(r.TEXTURE_2D,e);try{if(r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,Gr),r.isContextLost())return;uh.supported=!0}catch{}r.deleteTexture(e),ql=!0}Ws.document&&(Gr=Ws.document.createElement("img"),Gr.onload=function(){Wa&&Qu(Wa),Wa=null,Zl=!0},Gr.onerror=function(){ql=!0,Wa=null},Gr.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const Hl={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Iconset:"Iconset",Image:"Image",Model:"Model"};typeof Object.freeze=="function"&&Object.freeze(Hl);class $l extends Error{constructor(e,i,o){i===401&&Qn(o)&&(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=o}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const Yt=bi()?()=>self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,Xs=function(r,e){if(!(/^file:/.test(i=r.url)||/^file:/.test(Yt())&&!/^\w+:/.test(i))){if(self.fetch&&self.Request&&self.AbortController&&Request.prototype.hasOwnProperty("signal"))return function(o,a){const h=new AbortController,u=new Request(o.url,{method:o.method||"GET",body:o.body,credentials:o.credentials,headers:o.headers,referrer:Yt(),referrerPolicy:o.referrerPolicy,signal:h.signal});let f=!1,_=!1;const y=(v=u.url).indexOf("sku=")>0&&Qn(v);var v;o.type==="json"&&u.headers.set("Accept","application/json");const b=(A,M,P)=>{if(_)return;if(A&&A.message!=="SecurityError"&&Vt(A.toString()),M&&P)return T(M);const O=Date.now();fetch(u).then(B=>{if(B.ok){const q=y?B.clone():null;return T(B,q,O)}return a(new $l(B.statusText,B.status,o.url))}).catch(B=>{B.name!=="AbortError"&&a(new Error(`${B.message} ${o.url}`))})},T=(A,M,P)=>{(o.type==="arrayBuffer"?A.arrayBuffer():o.type==="json"?A.json():A.text()).then(O=>{_||(M&&P&&function(B,q,U){if(mo(),vn==null)return;const z=Qi(q.headers.get("Cache-Control")||"");if(z["no-store"])return;const N={status:q.status,statusText:q.statusText,headers:new Headers};q.headers.forEach((te,se)=>N.headers.set(se,te)),z["max-age"]&&N.headers.set("Expires",new Date(U+1e3*z["max-age"]).toUTCString());const G=N.headers.get("Expires");if(!G||new Date(G).getTime()-U<42e4)return;let $=on(B.url,{persistentParams:fo});if(q.status===206){const te=B.headers.get("Range");if(!te)return;N.status=200,$=ch($,{range:te})}(function(te,se){if(Ha===void 0)try{new Response(new ReadableStream),Ha=!0}catch{Ha=!1}Ha?se(te.body):te.blob().then(se).catch(ae=>Vt(ae.message))})(q,te=>{const se=new Response((ae=q.status)!==200&&ae!==404&&[101,103,204,205,304].includes(ae)?null:te,N);var ae;mo(),vn!=null&&vn.then(de=>de.put($,se)).catch(de=>Vt(de.message))})}(u,M,P),f=!0,a(null,O,A.headers.get("Cache-Control"),A.headers.get("Expires")))}).catch(O=>{_||a(new Error(O.message))})};return y?function(A,M){if(mo(),vn==null)return M(null);vn.then(P=>{let O=on(A.url,{persistentParams:fo});const B=A.headers.get("Range");B&&(O=ch(O,{range:B})),P.match(O).then(q=>{const U=function(z){if(!z)return!1;const N=new Date(z.headers.get("Expires")||0),G=Qi(z.headers.get("Cache-Control")||"");return Number(N)>Date.now()&&!G["no-cache"]}(q);P.delete(O).catch(M),U&&P.put(O,q.clone()).catch(M),M(null,q,U)}).catch(M)}).catch(M)}(u,b):b(null,null),{cancel:()=>{_=!0,f||h.abort()}}}(r,e);if(bi(self)&&self.worker.actor)return self.worker.actor.send("getResource",r,e,void 0,!0)}var i;return function(o,a){const h=new XMLHttpRequest;h.open(o.method||"GET",o.url,!0),o.type==="arrayBuffer"&&(h.responseType="arraybuffer");for(const u in o.headers)h.setRequestHeader(u,o.headers[u]);return o.type==="json"&&(h.responseType="text",h.setRequestHeader("Accept","application/json")),h.withCredentials=o.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(o.type==="json")try{u=JSON.parse(h.response)}catch(f){return a(f)}a(null,u,h.getResponseHeader("Cache-Control"),h.getResponseHeader("Expires"))}else a(new $l(h.statusText,h.status,o.url))},h.send(o.body),{cancel:()=>h.abort()}}(r,e)},Ys=function(r,e){return Xs(ye(r,{type:"arrayBuffer"}),e)};function Kp(r){const e=document.createElement("a");return e.href=r,e.protocol===location.protocol&&e.host===location.host}const ed="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let us,Do;us=[],Do=0;const Ks=function(r,e){if(uh.supported&&(r.headers||(r.headers={}),r.headers.accept="image/webp,*/*"),Do>=zr.MAX_PARALLEL_IMAGE_REQUESTS){const h={requestParameters:r,callback:e,cancelled:!1,cancel(){this.cancelled=!0}};return us.push(h),h}Do++;let i=!1;const o=()=>{if(!i)for(i=!0,Do--;us.length&&Do<zr.MAX_PARALLEL_IMAGE_REQUESTS;){const h=us.shift(),{requestParameters:u,callback:f,cancelled:_}=h;_||(h.cancel=Ks(u,f).cancel)}},a=Ys(r,(h,u,f,_)=>{o(),h?e(h):u&&(self.createImageBitmap?function(y,v){const b=new Blob([new Uint8Array(y)],{type:"image/png"});createImageBitmap(b).then(T=>{v(null,T)}).catch(T=>{v(new Error(`Could not load image because of ${T.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(u,(y,v)=>e(y,v,f,_)):function(y,v){const b=new Image;b.onload=()=>{v(null,b),URL.revokeObjectURL(b.src),b.onload=null,requestAnimationFrame(()=>{b.src=ed})},b.onerror=()=>v(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const T=new Blob([new Uint8Array(y)],{type:"image/png"});b.src=y.byteLength?URL.createObjectURL(T):ed}(u,(y,v)=>e(y,v,f,_)))});return{cancel:()=>{a.cancel(),o()}}};var td,dh,ds,Xa={exports:{}},Js={exports:{}},Wl={exports:{}},ph=function(){if(ds)return Xa.exports;ds=1;var r=(td||(td=1,Js.exports=function(i,o){var a,h,u,f,_,y,v,b;for(h=i.length-(a=3&i.length),u=o,_=3432918353,y=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&(f=5*(65535&(u=(u^=v=(65535&(v=(v=(65535&v)*_+(((v>>>16)*_&65535)<<16)&4294967295)<<15|v>>>17))*y+(((v>>>16)*y&65535)<<16)&4294967295)<<13|u>>>19))+((5*(u>>>16)&65535)<<16)&4294967295))+((58964+(f>>>16)&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))*y+(((v>>>16)*y&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}),Js.exports),e=(dh||(dh=1,Wl.exports=function(i,o){for(var a,h=i.length,u=o^h,f=0;h>=4;)a=1540483477*(65535&(a=255&i.charCodeAt(f)|(255&i.charCodeAt(++f))<<8|(255&i.charCodeAt(++f))<<16|(255&i.charCodeAt(++f))<<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,++f;switch(h){case 3:u^=(255&i.charCodeAt(f+2))<<16;case 2:u^=(255&i.charCodeAt(f+1))<<8;case 1:u=1540483477*(65535&(u^=255&i.charCodeAt(f)))+((1540483477*(u>>>16)&65535)<<16)}return u=1540483477*(65535&(u^=u>>>13))+((1540483477*(u>>>16)&65535)<<16),(u^=u>>>15)>>>0}),Wl.exports);return Xa.exports=r,Xa.exports.murmur3=r,Xa.exports.murmur2=e,Xa.exports}(),sn=Jn(ph);class Ro{constructor(e,...i){ye(this,i[0]||{}),this.type=e}}class fh extends Ro{constructor(e,i={}){super("error",ye({error:e},i))}}function mh(r,e,i){i[r]&&i[r].indexOf(e)!==-1||(i[r]=i[r]||[],i[r].push(e))}function Xl(r,e,i){if(i&&i[r]){const o=i[r].indexOf(e);o!==-1&&i[r].splice(o,1)}}class ps{on(e,i){return this._listeners=this._listeners||{},mh(e,i,this._listeners),this}off(e,i){return Xl(e,i,this._listeners),Xl(e,i,this._oneTimeListeners),this}once(e,i){return i?(this._oneTimeListeners=this._oneTimeListeners||{},mh(e,i,this._oneTimeListeners),this):new Promise(o=>{this.once(e,o)})}fire(e,i){const o=typeof e=="string"?new Ro(e,i):e,a=o.type;if(this.listens(a)){o.target=this;const h=this._listeners&&this._listeners[a]?this._listeners[a].slice():[];for(const _ of h)_.call(this,o);const u=this._oneTimeListeners&&this._oneTimeListeners[a]?this._oneTimeListeners[a].slice():[];for(const _ of u)Xl(a,_,this._oneTimeListeners),_.call(this,o);const f=this._eventedParent;f&&(ye(o,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),f.fire(o))}else o instanceof fh&&console.error(o.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 an{constructor(e){typeof e=="string"?this.name=e:(this.name=e.name,this.iconsetId=e.iconsetId)}static from(e){return new an(e)}static toString(e){return e.iconsetId?`${e.name}${e.iconsetId}`:e.name}static parse(e){const[i,o]=e.split("");return new an({name:i,iconsetId:o})}static isEqual(e,i){return e.name===i.name&&e.iconsetId===i.iconsetId}toString(){return an.toString(this)}serialize(){return{name:this.name,iconsetId:this.iconsetId}}}var _h,Yl={},Ya=function(){if(_h)return Yl;_h=1;var r={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 o(h){return(u=h[h.length-1]==="%"?parseFloat(h)/100:parseFloat(h))<0?0:u>1?1:u;var u}function a(h,u,f){return f<0?f+=1:f>1&&(f-=1),6*f<1?h+(u-h)*f*6:2*f<1?u:3*f<2?h+(u-h)*(2/3-f)*6:h}try{Yl.parseCSSColor=function(h){var u,f=h.replace(/ /g,"").toLowerCase();if(f in r)return r[f].slice();if(f[0]==="#")return f.length===4?(u=parseInt(f.substr(1),16))>=0&&u<=4095?[(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1]:null:f.length===7&&(u=parseInt(f.substr(1),16))>=0&&u<=16777215?[(16711680&u)>>16,(65280&u)>>8,255&u,1]:null;var _=f.indexOf("("),y=f.indexOf(")");if(_!==-1&&y+1===f.length){var v=f.substr(0,_),b=f.substr(_+1,y-(_+1)).split(","),T=1;switch(v){case"rgba":if(b.length!==4)return null;T=o(b.pop());case"rgb":return b.length!==3?null:[i(b[0]),i(b[1]),i(b[2]),T];case"hsla":if(b.length!==4)return null;T=o(b.pop());case"hsl":if(b.length!==3)return null;var A=(parseFloat(b[0])%360+360)%360/360,M=o(b[1]),P=o(b[2]),O=P<=.5?P*(M+1):P+M-P*M,B=2*P-O;return[e(255*a(B,O,A+1/3)),e(255*a(B,O,A)),e(255*a(B,O,A-1/3)),T];default:return null}}return null}}catch{}return Yl}();class ei{constructor(e,i,o,a=1){this.r=e,this.g=i,this.b=o,this.a=a}static parse(e){if(!e)return;if(e instanceof ei)return e;if(typeof e!="string")return;const i=Ya.parseCSSColor(e);return i?new ei(i[0]/255*i[3],i[1]/255*i[3],i[2]/255*i[3],i[3]):void 0}toStringPremultipliedAlpha(){const[e,i,o,a]=this.a===0?[0,0,0,0]:[255*this.r/this.a,255*this.g/this.a,255*this.b/this.a,this.a];return`rgba(${Math.round(e)},${Math.round(i)},${Math.round(o)},${a})`}toString(){const[e,i,o,a]=[this.r,this.g,this.b,this.a];return`rgba(${Math.round(255*e)},${Math.round(255*i)},${Math.round(255*o)},${a})`}toRenderColor(e){const{r:i,g:o,b:a,a:h}=this;return new id(e,i,o,a,h)}clone(){return new ei(this.r,this.g,this.b,this.a)}}class id{constructor(e,i,o,a,h){if(e){const u=e.image.height,f=u*u;i=h===0?0:i/h*(u-1),o=h===0?0:o/h*(u-1),a=h===0?0:a/h*(u-1);const _=Math.floor(i),y=Math.floor(o),v=Math.floor(a),b=Math.ceil(i),T=Math.ceil(o),A=Math.ceil(a),M=i-_,P=o-y,O=a-v,B=e.image.data,q=4*(_+y*f+v*u),U=4*(_+y*f+A*u),z=4*(_+T*f+v*u),N=4*(_+T*f+A*u),G=4*(b+y*f+v*u),$=4*(b+y*f+A*u),te=4*(b+T*f+v*u),se=4*(b+T*f+A*u);if(q<0||se>=B.length)throw new Error("out of range");this.r=ft(ft(ft(B[q],B[U],O),ft(B[z],B[N],O),P),ft(ft(B[G],B[$],O),ft(B[te],B[se],O),P),M)/255*h,this.g=ft(ft(ft(B[q+1],B[U+1],O),ft(B[z+1],B[N+1],O),P),ft(ft(B[G+1],B[$+1],O),ft(B[te+1],B[se+1],O),P),M)/255*h,this.b=ft(ft(ft(B[q+2],B[U+2],O),ft(B[z+2],B[N+2],O),P),ft(ft(B[G+2],B[$+2],O),ft(B[te+2],B[se+2],O),P),M)/255*h,this.a=h}else this.r=i,this.g=o,this.b=a,this.a=h}toArray(){const{r:e,g:i,b:o,a}=this;return a===0?[0,0,0,0]:[255*e/a,255*i/a,255*o/a,a]}toHslaArray(){if(this.a===0)return[0,0,0,0];const{r:e,g:i,b:o,a}=this,h=Math.min(Math.max(e/a,0),1),u=Math.min(Math.max(i/a,0),1),f=Math.min(Math.max(o/a,0),1),_=Math.min(h,u,f),y=Math.max(h,u,f),v=(_+y)/2;if(_===y)return[0,0,100*v,a];const b=y-_,T=v>.5?b/(2-y-_):b/(y+_);let A=0;return y===h?A=(u-f)/b+(u<f?6:0):y===u?A=(f-h)/b+2:y===f&&(A=(h-u)/b+4),A*=60,[Math.min(Math.max(A,0),360),Math.min(Math.max(100*T,0),100),Math.min(Math.max(100*v,0),100),a]}toArray01(){const{r:e,g:i,b:o,a}=this;return a===0?[0,0,0,0]:[e/a,i/a,o/a,a]}toArray01Scaled(e){const{r:i,g:o,b:a,a:h}=this;return h===0?[0,0,0]:[i/h*e,o/h*e,a/h*e]}toArray01PremultipliedAlpha(){const{r:e,g:i,b:o,a}=this;return[e,i,o,a]}toArray01Linear(){const{r:e,g:i,b:o,a}=this;return a===0?[0,0,0,0]:[Math.pow(e/a,2.2),Math.pow(i/a,2.2),Math.pow(o/a,2.2),a]}}function ft(r,e,i){return r*(1-i)+e*i}function rd(r,e,i){return r.map((o,a)=>ft(o,e[a],i))}function Kl(r){return r*r*r*r*r}ei.black=new ei(0,0,0,1),ei.white=new ei(1,1,1,1),ei.transparent=new ei(0,0,0,0),ei.red=new ei(1,0,0,1),ei.blue=new ei(0,0,1,1);var Jl=Object.freeze({__proto__:null,array:rd,color:function(r,e,i){return new ei(ft(r.r,e.r,i),ft(r.g,e.g,i),ft(r.b,e.b,i),ft(r.a,e.a,i))},easeIn:Kl,number:ft});function Ka(r,...e){for(const i of e)for(const o in i)r[o]=i[o];return r}class bn extends Error{constructor(e,i){super(i),this.message=i,this.key=e}}class fs{constructor(e,i=[]){this.parent=e,this.bindings={};for(const[o,a]of i)this.bindings[o]=a}concat(e){return new fs(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 Lo={kind:"null"},pt={kind:"number"},di={kind:"string"},ni={kind:"boolean"},Qr={kind:"color"},ko={kind:"object"},ii={kind:"value"},ms={kind:"collator"},Ja={kind:"formatted"},Qa={kind:"resolvedImage"};function qr(r,e){return{kind:"array",itemType:r,N:e}}function cr(r){if(r.kind==="array"){const e=cr(r.itemType);return typeof r.N=="number"?`array<${e}, ${r.N}>`:r.itemType.kind==="value"?"array":`array<${e}>`}return r.kind}const Jp=[Lo,pt,di,ni,Qr,Ja,ko,qr(ii),Qa];function el(r,e){if(e.kind==="error")return null;if(r.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!el(r.itemType,e.itemType))&&(typeof r.N!="number"||r.N===e.N))return null}else{if(r.kind===e.kind)return null;if(r.kind==="value"){for(const i of Jp)if(!el(i,e))return null}}return`Expected ${cr(r)} but found ${cr(e)} instead.`}function gh(r,e){return e.some(i=>i.kind===r.kind)}function Qs(r,e){return e.some(i=>i==="null"?r===null:i==="array"?Array.isArray(r):i==="object"?r&&!Array.isArray(r)&&typeof r=="object":i===typeof r)}class Oo{constructor(e,i,o){this.sensitivity=e?i?"variant":"case":i?"accent":"base",this.locale=o,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 Ql{constructor(e,i,o,a,h){this.text=e.normalize?e.normalize():e,this.image=i,this.scale=o,this.fontStack=a,this.textColor=h}}class Zr{constructor(e){this.sections=e}static fromString(e){return new Zr([new Ql(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 Zr?e:Zr.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 o={};i.fontStack&&(o["text-font"]=["literal",i.fontStack.split(",")]),i.scale&&(o["font-scale"]=i.scale),i.textColor&&(o["text-color"]=["rgba"].concat(i.textColor.toRenderColor(null).toArray())),e.push(o)}return e}}class kn{constructor(e,i={}){if(this.id=an.from(e),this.options=Object.assign({},i),i.transform){const{a:o,b:a,c:h,d:u,e:f,f:_}=i.transform;this.options.transform=new DOMMatrix([o,a,h,u,f,_])}else this.options.transform=new DOMMatrix([1,0,0,1,0,0])}toString(){const{a:e,b:i,c:o,d:a,e:h,f:u}=this.options.transform;return JSON.stringify({name:this.id.name,iconsetId:this.id.iconsetId,params:this.options.params,transform:{a:e,b:i,c:o,d:a,e:h,f:u}})}static parse(e){let i,o,a,h;try{({name:i,iconsetId:o,params:a,transform:h}=JSON.parse(e)||{})}catch{return null}if(!i)return null;const{a:u,b:f,c:_,d:y,e:v,f:b}=h||{};return new kn({name:i,iconsetId:o},{params:a,transform:new DOMMatrix([u,f,_,y,v,b])})}scaleSelf(e,i){return this.options.transform.scaleSelf(e,i),this}}class en{constructor(e,i,o,a,h=!1){this.primaryId=an.from(e),this.primaryOptions=i,o&&(this.secondaryId=an.from(o)),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 kn(this.primaryId,this.primaryOptions)}hasSecondary(){return!!this.secondaryId}getSecondary(){return this.secondaryId?new kn(this.secondaryId,this.secondaryOptions):null}static from(e){return typeof e=="string"?en.build({name:e}):e}static build(e,i,o,a){return!e||typeof e=="object"&&!("name"in e)?null:new en(e,o,i,a)}}function nd(r,e,i,o){return typeof r=="number"&&r>=0&&r<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof i=="number"&&i>=0&&i<=255?o===void 0||typeof o=="number"&&o>=0&&o<=1?null:`Invalid rgba value [${[r,e,i,o].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof o=="number"?[r,e,i,o]:[r,e,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function ea(r){if(r===null||typeof r=="string"||typeof r=="boolean"||typeof r=="number"||r instanceof ei||r instanceof Oo||r instanceof Zr||r instanceof en)return!0;if(Array.isArray(r)){for(const e of r)if(!ea(e))return!1;return!0}if(typeof r=="object"){for(const e in r)if(!ea(r[e]))return!1;return!0}return!1}function pr(r){if(r===null)return Lo;if(typeof r=="string")return di;if(typeof r=="boolean")return ni;if(typeof r=="number")return pt;if(r instanceof ei)return Qr;if(r instanceof Oo)return ms;if(r instanceof Zr)return Ja;if(r instanceof en)return Qa;if(Array.isArray(r)){const e=r.length;let i;for(const o of r){const a=pr(o);if(i){if(i===a)continue;i=ii;break}i=a}return qr(i||ii,e)}return ko}function Hr(r){const e=typeof r;return r===null?"":e==="string"||e==="number"||e==="boolean"?String(r):r instanceof ei?r.toStringPremultipliedAlpha():r instanceof Zr||r instanceof en?r.toString():JSON.stringify(r)}class Lt{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(!ea(e[1]))return i.error("invalid value");const o=e[1];let a=pr(o);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 Lt(a,o)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof ei?["rgba"].concat(this.value.toRenderColor(null).toArray()):this.value instanceof Zr?this.value.serialize():this.value}}class nt{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const tl={string:di,number:pt,boolean:ni,object:ko};class vt{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 o,a=1;const h=e[0];if(h==="array"){let f,_;if(e.length>2){const y=e[1];if(typeof y!="string"||!(y in tl)||y==="object")return i.error('The item type argument of "array" must be one of string, number, boolean',1);f=tl[y],a++}else f=ii;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++}o=qr(f,_)}else o=tl[h];const u=[];for(;a<e.length;a++){const f=i.parse(e[a],a,ii);if(!f)return null;u.push(f)}return new vt(o,u)}evaluate(e){for(let i=0;i<this.args.length;i++){const o=this.args[i].evaluate(e);if(!el(this.type,pr(o)))return o;if(i===this.args.length-1)throw new nt(`The expression ${JSON.stringify(this.args[i].serialize())} evaluated to ${cr(pr(o))} but was expected to be of type ${cr(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 o=e.itemType;if(o.kind==="string"||o.kind==="number"||o.kind==="boolean"){i.push(o.kind);const a=e.N;(typeof a=="number"||this.args.length>1)&&i.push(a)}}return i.concat(this.args.map(o=>o.serialize()))}}class _s{constructor(e){this.type=Ja,this.sections=e}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");const o=e[1];if(!Array.isArray(o)&&typeof o=="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 f=e[u];if(h&&typeof f=="object"&&!Array.isArray(f)){h=!1;let _=null;if(f["font-scale"]&&(_=i.parseObjectValue(f["font-scale"],u,"font-scale",pt),!_))return null;let y=null;if(f["text-font"]&&(y=i.parseObjectValue(f["text-font"],u,"text-font",qr(di)),!y))return null;let v=null;if(f["text-color"]&&(v=i.parseObjectValue(f["text-color"],u,"text-color",Qr),!v))return null;const b=a[a.length-1];b.scale=_,b.font=y,b.textColor=v}else{const _=i.parse(e[u],u,ii);if(!_)return null;const y=_.type.kind;if(y!=="string"&&y!=="value"&&y!=="null"&&y!=="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 _s(a)}evaluate(e){return new Zr(this.sections.map(i=>{const o=i.content.evaluate(e);return pr(o)===Qa?new Ql("",o,null,null,null):new Ql(Hr(o),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 o={};i.scale&&(o["font-scale"]=i.scale.serialize()),i.font&&(o["text-font"]=i.font.serialize()),i.textColor&&(o["text-color"]=i.textColor.serialize()),e.push(o)}return e}}class ta{constructor(e,i,o,a){this._imageWarnHistory={},this.type=Qa,this.namePrimary=e,this.nameSecondary=i,o&&(this.paramsPrimary=o.params,this.iconsetIdPrimary=o.iconset?o.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 o=1;const a=[];function h(){if(o<e.length){const f=i.parse(e[o],o++,di);return f?(a.push({image:f,options:{}}),!0):(i.error(a.length?"Secondary image variant is not a string.":"No image name provided."),!1)}return!0}function u(){if(o<e.length){const _=e[o];if((f=_)===null||typeof f!="object"||Array.isArray(f))return!0;const y=_.params,v=_.iconset,b=i.concat(o);if(!y&&!v)return o++,!0;if(y){if(typeof y!="object"||y.constructor!==Object)return b.error('Image options "params" should be an object'),!1;const T={},A=b.concat(void 0,"params");for(const M in y){if(!M)return A.error("Image parameter name should be non-empty"),!1;const P=A.concat(void 0,M).parse(y[M],void 0,Qr,void 0,{typeAnnotation:"coerce"});if(!P)return!1;T[M]=P}a[a.length-1].options.params=T}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 o++,!0}var f;return!0}for(let f=0;f<2;f++)if(!h()||!u())return;return new ta(a[0].image,a[1]?a[1].image:void 0,a[0].options,a[1]?a[1].options:void 0)}evaluateParams(e,i){const o={};if(i){for(const a in i)if(i[a])try{o[a]=i[a].evaluate(e)}catch{continue}if(Object.keys(o).length!==0)return{params:o}}}evaluate(e){const i={name:this.namePrimary.evaluate(e),iconsetId:this.iconsetIdPrimary},o=this.nameSecondary?{name:this.nameSecondary.evaluate(e),iconsetId:this.iconsetIdSecondary}:void 0,a=en.build(i,o,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=>an.isEqual(u,h)),a.available){const u=a.getSecondary()?a.getSecondary().id:null;u&&(a.available=e.availableImages.some(f=>an.isEqual(f,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 o={};if(i&&(o.iconset={id:i}),e){o.params={};for(const a in e)e[a]&&(o.params[a]=e[a].serialize())}return Object.keys(o).length>0?o: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 bt(r){return r instanceof Number?"number":r instanceof String?"string":r instanceof Boolean?"boolean":Array.isArray(r)?"array":r===null?"null":typeof r}const od={"to-boolean":ni,"to-color":Qr,"to-number":pt,"to-string":di};class On{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 o=e[0],a=[];let h=Lo;if(o==="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=qr(i.expectedType.itemType,u)}else{if(!(u>0&&ea(e[1][0])))return null;h=qr(pr(e[1][0]),u)}for(let f=0;f<u;f++){const _=e[1][f];let y;if(bt(_)==="array")y=i.parse(_,void 0,h.itemType);else{const v=bt(_);if(v!==h.itemType.kind)return i.error(`Expected ${h.itemType.kind} but found ${v}.`);y=i.registry.literal.parse(["literal",_===void 0?null:_],i)}if(!y)return null;a.push(y)}}else{if((o==="to-boolean"||o==="to-string")&&e.length!==2)return i.error("Expected one argument.");h=od[o];for(let u=1;u<e.length;u++){const f=i.parse(e[u],u,ii);if(!f)return null;a.push(f)}}return new On(h,a)}evaluate(e){if(this.type.kind==="boolean")return!!this.args[0].evaluate(e);if(this.type.kind==="color"){let i,o;for(const a of this.args){if(i=a.evaluate(e),o=null,i instanceof ei)return i;if(typeof i=="string"){const h=e.parseColor(i);if(h)return h}else if(Array.isArray(i)&&(o=i.length<3||i.length>4?`Invalid rbga value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.`:nd(i[0],i[1],i[2],i[3]),!o))return new ei(i[0]/255,i[1]/255,i[2]/255,i[3])}throw new nt(o||`Could not parse color from value '${typeof i=="string"?i:String(JSON.stringify(i))}'`)}if(this.type.kind==="number"){let i=null;for(const o of this.args){if(i=o.evaluate(e),i===null)return 0;const a=Number(i);if(!isNaN(a))return a}throw new nt(`Could not convert ${JSON.stringify(i)} to number.`)}return this.type.kind==="formatted"?Zr.fromString(Hr(this.args[0].evaluate(e))):this.type.kind==="resolvedImage"?en.build(Hr(this.args[0].evaluate(e))):this.type.kind==="array"?this.args.map(i=>i.evaluate(e)):Hr(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 _s([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new ta(this.args[0]).serialize();const e=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(i=>{e.push(i.serialize())}),e}}const sd=["Unknown","Point","LineString","Polygon"];class ec{constructor(e,i){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}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?sd[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:o,y:a}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(o*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]=ei.parse(e)),i}getConfig(e){return this.options?this.options.get(e):null}}class Br{constructor(e,i,o,a,h){this.name=e,this.type=i,this._evaluate=o,this.args=a,this._overloadIndex=h}evaluate(e){if(!this._evaluate){const i=Br.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 o=e[0],a=Br.definitions[o];if(!a)return i.error(`Unknown expression "${o}". 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,f=[];let _=null,y=-1;for(const[v,b]of u){if(Array.isArray(v)&&v.length!==e.length-1)continue;f.push(v),y++,_=new _d(i.registry,i.path,null,i.scope,void 0,i._scope,i.options);const T=[];let A=!1;for(let M=1;M<e.length;M++){const P=e[M],O=Array.isArray(v)?v[M-1]:v.type,B=_.parse(P,1+T.length,O);if(!B){A=!0;break}T.push(B)}if(!A)if(Array.isArray(v)&&v.length!==T.length)_.error(`Expected ${v.length} arguments, but found ${T.length} instead.`);else{for(let M=0;M<T.length;M++){const P=Array.isArray(v)?v[M]:v.type,O=T[M];_.concat(M+1).checkSubtype(P,O.type)}if(_.errors.length===0)return new Br(o,h,b,T,y)}}if(f.length===1)i.errors.push(..._.errors);else{const v=(f.length?f:u.map(([T])=>T)).map($r).join(" | "),b=[];for(let T=1;T<e.length;T++){const A=i.parse(e[T],1+b.length);if(!A)return null;b.push(cr(A.type))}i.error(`Expected arguments of type ${v}, but found (${b.join(", ")}) instead.`)}return null}static register(e,i){Br.definitions=i;for(const o in i)e[o]=Br}}function $r(r){return Array.isArray(r)?`(${r.map(cr).join(", ")})`:`(${cr(r.type)}...)`}class ia{constructor(e,i,o){this.type=ms,this.locale=o,this.caseSensitive=e,this.diacriticSensitive=i}static parse(e,i){if(e.length!==2)return i.error("Expected one argument.");const o=e[1];if(typeof o!="object"||Array.isArray(o))return i.error("Collator options argument must be an object.");const a=o["case-sensitive"]===void 0?i.parse(!1,1,ni):i.parseObjectValue(o["case-sensitive"],1,"case-sensitive",ni);if(!a)return null;const h=o["diacritic-sensitive"]===void 0?i.parse(!1,1,ni):i.parseObjectValue(o["diacritic-sensitive"],1,"diacritic-sensitive",ni);if(!h)return null;let u=null;return o.locale&&(u=i.parseObjectValue(o.locale,1,"locale",di),!u)?null:new ia(a,h,u)}evaluate(e){return new Oo(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 Fo(r,e,i=0,o=r.length-1,a=ys){for(;o>i;){if(o-i>600){const _=o-i+1,y=e-i+1,v=Math.log(_),b=.5*Math.exp(2*v/3),T=.5*Math.sqrt(v*b*(_-b)/_)*(y-_/2<0?-1:1);Fo(r,e,Math.max(i,Math.floor(e-y*b/_+T)),Math.min(o,Math.floor(e+(_-y)*b/_+T)),a)}const h=r[e];let u=i,f=o;for(gs(r,i,e),a(r[o],h)>0&&gs(r,i,o);u<f;){for(gs(r,u,f),u++,f--;a(r[u],h)<0;)u++;for(;a(r[f],h)>0;)f--}a(r[i],h)===0?gs(r,i,f):(f++,gs(r,f,o)),f<=e&&(i=f+1),e<=f&&(o=f-1)}}function gs(r,e,i){const o=r[e];r[e]=r[i],r[i]=o}function ys(r,e){return r<e?-1:r>e?1:0}function Wr(r){let e=0;for(let i,o,a=0,h=r.length,u=h-1;a<h;u=a++)i=r[a],o=r[u],e+=(o.x-i.x)*(i.y+o.y);return e}function il(r,e){r[0]=Math.min(r[0],e[0]),r[1]=Math.min(r[1],e[1]),r[2]=Math.max(r[2],e[0]),r[3]=Math.max(r[3],e[1])}function rl(r,e){return!(r[0]<=e[0]||r[2]>=e[2]||r[1]<=e[1]||r[3]>=e[3])}function Qp(r,e,i){const o=r[0]-e[0],a=r[1]-e[1],h=r[0]-i[0],u=r[1]-i[1];return o*u-h*a==0&&o*h<=0&&a*u<=0}function _o(r,e,i=!1){let o=!1;for(let f=0,_=e.length;f<_;f++){const y=e[f];for(let v=0,b=y.length,T=b-1;v<b;T=v++){const A=y[T],M=y[v];if(Qp(r,A,M))return i;(h=A)[1]>(a=r)[1]!=(u=M)[1]>a[1]&&a[0]<(u[0]-h[0])*(a[1]-h[1])/(u[1]-h[1])+h[0]&&(o=!o)}}var a,h,u;return o}function yh(r,e,i,o){const a=o[0]-i[0],h=o[1]-i[1],u=(r[0]-i[0])*h-a*(r[1]-i[1]),f=(e[0]-i[0])*h-a*(e[1]-i[1]);return u>0&&f<0||u<0&&f>0}function eo(r,e,i,o){return(a=[o[0]-i[0],o[1]-i[1]])[0]*(h=[e[0]-r[0],e[1]-r[1]])[1]-a[1]*h[0]!=0&&!(!yh(r,e,i,o)||!yh(i,o,r,e));var a,h}function xh(r){const e=new He(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),i=new He(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);for(const o of r[0])e.x>o.x&&(e.x=o.x),e.y>o.y&&(e.y=o.y),i.x<o.x&&(i.x=o.x),i.y<o.y&&(i.y=o.y);return{min:e,max:i}}const Bo=8192;function ef(r,e){const i=(180+r[0])/360,o=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r[1]*Math.PI/360)))/360,a=Math.pow(2,e.z);return[Math.round(i*a*Bo),Math.round(o*a*Bo)]}function tf(r,e){for(let i=0;i<e.length;i++)if(_o(r,e[i]))return!0;return!1}function ad(r,e,i){for(const o of i)for(let a=0,h=o.length,u=h-1;a<h;u=a++)if(eo(r,e,o[u],o[a]))return!0;return!1}function ld(r,e){for(let i=0;i<r.length;++i)if(!_o(r[i],e))return!1;for(let i=0;i<r.length-1;++i)if(ad(r[i],r[i+1],e))return!1;return!0}function rf(r,e){for(let i=0;i<e.length;i++)if(ld(r,e[i]))return!0;return!1}function tc(r,e,i){const o=[];for(let a=0;a<r.length;a++){const h=[];for(let u=0;u<r[a].length;u++){const f=ef(r[a][u],i);il(e,f),h.push(f)}o.push(h)}return o}function cd(r,e,i){const o=[];for(let a=0;a<r.length;a++){const h=tc(r[a],e,i);o.push(h)}return o}function No(r,e,i,o){if(r[0]<i[0]||r[0]>i[2]){const a=.5*o;let h=r[0]-i[0]>a?-o:i[0]-r[0]>a?o:0;h===0&&(h=r[0]-i[2]>a?-o:i[2]-r[0]>a?o:0),r[0]+=h}il(e,r)}function hd(r,e,i,o){const a=Math.pow(2,o.z)*Bo,h=[o.x*Bo,o.y*Bo],u=[];if(!r)return u;for(const f of r)for(const _ of f){const y=[_.x+h[0],_.y+h[1]];No(y,e,i,a),u.push(y)}return u}function ud(r,e,i,o){const a=Math.pow(2,o.z)*Bo,h=[o.x*Bo,o.y*Bo],u=[];if(!r)return u;for(const _ of r){const y=[];for(const v of _){const b=[v.x+h[0],v.y+h[1]];il(e,b),y.push(b)}u.push(y)}if(e[2]-e[0]<=a/2){(f=e)[0]=f[1]=1/0,f[2]=f[3]=-1/0;for(const _ of u)for(const y of _)No(y,e,i,a)}var f;return u}class go{constructor(e,i){this.type=ni,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(ea(e[1])){const o=e[1];if(o.type==="FeatureCollection")for(let a=0;a<o.features.length;++a){const h=o.features[a].geometry.type;if(h==="Polygon"||h==="MultiPolygon")return new go(o,o.features[a].geometry)}else if(o.type==="Feature"){const a=o.geometry.type;if(a==="Polygon"||a==="MultiPolygon")return new go(o,o.geometry)}else if(o.type==="Polygon"||o.type==="MultiPolygon")return new go(o,o)}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,o){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(o.type==="Polygon"){const f=tc(o.coordinates,h,u),_=hd(i.geometry(),a,h,u);if(!rl(a,h))return!1;for(const y of _)if(!_o(y,f))return!1}if(o.type==="MultiPolygon"){const f=cd(o.coordinates,h,u),_=hd(i.geometry(),a,h,u);if(!rl(a,h))return!1;for(const y of _)if(!tf(y,f))return!1}return!0}(e,this.geometries);if(e.geometryType()==="LineString")return function(i,o){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(o.type==="Polygon"){const f=tc(o.coordinates,h,u),_=ud(i.geometry(),a,h,u);if(!rl(a,h))return!1;for(const y of _)if(!ld(y,f))return!1}if(o.type==="MultiPolygon"){const f=cd(o.coordinates,h,u),_=ud(i.geometry(),a,h,u);if(!rl(a,h))return!1;for(const y of _)if(!rf(y,f))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}const nl={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},vh=1/298.257223563,wn=vh*(2-vh),ra=Math.PI/180;class na{static fromTile(e,i,o){const a=Math.PI*(1-2*(e+.5)/Math.pow(2,i)),h=Math.atan(.5*(Math.exp(a)-Math.exp(-a)))/ra;return new na(h,o)}static get units(){return nl}constructor(e,i){if(e===void 0)throw new Error("No latitude given.");if(i&&!nl[i])throw new Error(`Unknown unit ${i}. Use one of: ${Object.keys(nl).join(", ")}`);const o=6378.137*ra*(i?nl[i]:1),a=Math.cos(e*ra),h=1/(1-wn*(1-a*a)),u=Math.sqrt(h);this.kx=o*u*a,this.ky=o*u*h*(1-wn)}distance(e,i){const o=mn(e[0]-i[0])*this.kx,a=(e[1]-i[1])*this.ky;return Math.sqrt(o*o+a*a)}bearing(e,i){const o=mn(i[0]-e[0])*this.kx;return Math.atan2(o,(i[1]-e[1])*this.ky)/ra}destination(e,i,o){const a=o*ra;return this.offset(e,Math.sin(a)*i,Math.cos(a)*i)}offset(e,i,o){return[e[0]+i/this.kx,e[1]+o/this.ky]}lineDistance(e){let i=0;for(let o=0;o<e.length-1;o++)i+=this.distance(e[o],e[o+1]);return i}area(e){let i=0;for(let o=0;o<e.length;o++){const a=e[o];for(let h=0,u=a.length,f=u-1;h<u;f=h++)i+=mn(a[h][0]-a[f][0])*(a[h][1]+a[f][1])*(o?-1:1)}return Math.abs(i)/2*this.kx*this.ky}along(e,i){let o=0;if(i<=0)return e[0];for(let a=0;a<e.length-1;a++){const h=e[a],u=e[a+1],f=this.distance(h,u);if(o+=f,o>i)return ic(h,u,(i-(o-f))/f)}return e[e.length-1]}pointToSegmentDistance(e,i,o){let[a,h]=i,u=mn(o[0]-a)*this.kx,f=(o[1]-h)*this.ky;if(u!==0||f!==0){const _=(mn(e[0]-a)*this.kx*u+(e[1]-h)*this.ky*f)/(u*u+f*f);_>1?(a=o[0],h=o[1]):_>0&&(a+=u/this.kx*_,h+=f/this.ky*_)}return u=mn(e[0]-a)*this.kx,f=(e[1]-h)*this.ky,Math.sqrt(u*u+f*f)}pointOnLine(e,i){let o=1/0,a=e[0][0],h=e[0][1],u=0,f=0;for(let _=0;_<e.length-1;_++){let y=e[_][0],v=e[_][1],b=mn(e[_+1][0]-y)*this.kx,T=(e[_+1][1]-v)*this.ky,A=0;b===0&&T===0||(A=(mn(i[0]-y)*this.kx*b+(i[1]-v)*this.ky*T)/(b*b+T*T),A>1?(y=e[_+1][0],v=e[_+1][1]):A>0&&(y+=b/this.kx*A,v+=T/this.ky*A)),b=mn(i[0]-y)*this.kx,T=(i[1]-v)*this.ky;const M=b*b+T*T;M<o&&(o=M,a=y,h=v,u=_,f=A)}return{point:[a,h],index:u,t:Math.max(0,Math.min(1,f))}}lineSlice(e,i,o){let a=this.pointOnLine(o,e),h=this.pointOnLine(o,i);if(a.index>h.index||a.index===h.index&&a.t>h.t){const y=a;a=h,h=y}const u=[a.point],f=a.index+1,_=h.index;!bh(o[f],u[0])&&f<=_&&u.push(o[f]);for(let y=f+1;y<=_;y++)u.push(o[y]);return bh(o[_],h.point)||u.push(h.point),u}lineSliceAlong(e,i,o){let a=0;const h=[];for(let u=0;u<o.length-1;u++){const f=o[u],_=o[u+1],y=this.distance(f,_);if(a+=y,a>e&&h.length===0&&h.push(ic(f,_,(e-(a-y))/y)),a>=i)return h.push(ic(f,_,(i-(a-y))/y)),h;a>e&&h.push(_)}return h}bufferPoint(e,i){const o=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-o,e[0]+a,e[1]+o]}bufferBBox(e,i){const o=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-o,e[2]+a,e[3]+o]}insideBBox(e,i){return mn(e[0]-i[0])>=0&&mn(e[0]-i[2])<=0&&e[1]>=i[1]&&e[1]<=i[3]}}function bh(r,e){return r[0]===e[0]&&r[1]===e[1]}function ic(r,e,i){const o=mn(e[0]-r[0]);return[r[0]+o*i,r[1]+(e[1]-r[1])*i]}function mn(r){for(;r<-180;)r+=360;for(;r>180;)r-=360;return r}class rc{constructor(e=[],i=(o,a)=>o<a?-1:o>a?1:0){if(this.data=e,this.length=this.data.length,this.compare=i,this.length>0)for(let o=(this.length>>1)-1;o>=0;o--)this._down(o)}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:o}=this,a=i[e];for(;e>0;){const h=e-1>>1,u=i[h];if(o(a,u)>=0)break;i[e]=u,e=h}i[e]=a}_down(e){const{data:i,compare:o}=this,a=this.length>>1,h=i[e];for(;e<a;){let u=1+(e<<1);const f=u+1;if(f<this.length&&o(i[f],i[u])<0&&(u=f),o(i[u],h)>=0)break;i[e]=i[u],e=u}i[e]=h}}var We=8192;function wh(r,e){return e.dist-r.dist}const nc=100,oc=50;function Th(r){const e=[1/0,1/0,-1/0,-1/0];if(e.length!==r.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==r[i])return!1;return!0}function xs(r){return r[1]-r[0]+1}function Tn(r,e){const i=r[1]>=r[0]&&r[1]<e;return i||console.warn("Distance Expression: Index is out of range"),i}function oa(r,e){if(r[0]>r[1])return[null,null];const i=xs(r);if(e){if(i===2)return[r,null];const o=Math.floor(i/2);return[[r[0],r[0]+o],[r[0]+o,r[1]]]}{if(i===1)return[r,null];const o=Math.floor(i/2)-1;return[[r[0],r[0]+o],[r[0]+o+1,r[1]]]}}function Vo(r,e){const i=[1/0,1/0,-1/0,-1/0];if(!Tn(e,r.length))return i;for(let o=e[0];o<=e[1];++o)il(i,r[o]);return i}function ol(r){const e=[1/0,1/0,-1/0,-1/0];for(let i=0;i<r.length;++i)for(let o=0;o<r[i].length;++o)il(e,r[i][o]);return e}function vs(r,e,i){if(Th(r)||Th(e))return NaN;let o=0,a=0;return r[2]<e[0]&&(o=e[0]-r[2]),r[0]>e[2]&&(o=r[0]-e[2]),r[1]>e[3]&&(a=r[1]-e[3]),r[3]<e[1]&&(a=e[1]-r[3]),i.distance([0,0],[o,a])}function sa(r){return 360*r-180}function Ht(r){return 360/Math.PI*Math.atan(Math.exp((180-360*r)*Math.PI/180))-90}function Sh(r,e){const i=Math.pow(2,e.z),o=(r.y/We+e.y)/i;return[sa((r.x/We+e.x)/i),Ht(o)]}function nf(r,e){const i=[];for(let o=0;o<r.length;++o)i.push(Sh(r[o],e));return i}function dd(r,e,i){const o=i.pointOnLine(e,r).point;return i.distance(r,o)}function Eh(r,e,i,o,a){const h=i.slice(o[0],o[1]+1);let u=1/0;for(let f=e[0];f<=e[1];++f)if((u=Math.min(u,dd(r[f],h,a)))===0)return 0;return u}function Ih(r,e,i,o,a){const h=Math.min(a.pointToSegmentDistance(r,i,o),a.pointToSegmentDistance(e,i,o)),u=Math.min(a.pointToSegmentDistance(i,r,e),a.pointToSegmentDistance(o,r,e));return Math.min(h,u)}function Zi(r,e,i,o,a){if(!Tn(e,r.length)||!Tn(o,i.length))return NaN;let h=1/0;for(let u=e[0];u<e[1];++u)for(let f=o[0];f<o[1];++f){if(eo(r[u],r[u+1],i[f],i[f+1]))return 0;h=Math.min(h,Ih(r[u],r[u+1],i[f],i[f+1],a))}return h}function of(r,e,i,o,a){if(!Tn(e,r.length)||!Tn(o,i.length))return NaN;let h=1/0;for(let u=e[0];u<=e[1];++u)for(let f=o[0];f<=o[1];++f)if((h=Math.min(h,a.distance(r[u],i[f])))===0)return h;return h}function sf(r,e,i){if(_o(r,e,!0))return 0;let o=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]&&(o=Math.min(o,i.pointToSegmentDistance(r,a[h-1],a[0])))===0||(o=Math.min(o,dd(r,a,i)))===0)return o}return o}function af(r,e,i,o){if(!Tn(e,r.length))return NaN;for(let h=e[0];h<=e[1];++h)if(_o(r[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 f=0,_=u.length,y=_-1;f<_;y=f++){if(eo(r[h],r[h+1],u[y],u[f]))return 0;a=Math.min(a,Ih(r[h],r[h+1],u[y],u[f],o))}return a}function pd(r,e){for(const i of r)for(let o=0;o<=i.length-1;++o)if(_o(i[o],e,!0))return!0;return!1}function lf(r,e,i,o=1/0){const a=ol(r),h=ol(e);if(o!==1/0&&vs(a,h,i)>=o)return o;if(rl(a,h)){if(pd(r,e))return 0}else if(pd(e,r))return 0;let u=o;for(const f of r)for(let _=0,y=f.length,v=y-1;_<y;v=_++)for(const b of e)for(let T=0,A=b.length,M=A-1;T<A;M=T++){if(eo(f[v],f[_],b[M],b[T]))return 0;u=Math.min(u,Ih(f[v],f[_],b[M],b[T],i))}return u}function sc(r,e,i,o,a,h,u){if(h===null||u===null)return;const f=vs(Vo(o,h),Vo(a,u),i);f<e&&r.push({dist:f,range1:h,range2:u})}function cf(r,e,i,o,a=1/0){let h=Math.min(o.distance(r[0],i[0][0]),a);if(h===0)return h;const u=new rc([{dist:0,range1:[0,r.length-1],range2:[0,0]}],wh),f=e?oc:nc,_=ol(i);for(;u.length;){const y=u.pop();if(y.dist>=h)continue;const v=y.range1;if(xs(v)<=f){if(!Tn(v,r.length))return NaN;if(e){const b=af(r,v,i,o);if((h=Math.min(h,b))===0)return h}else for(let b=v[0];b<=v[1];++b){const T=sf(r[b],i,o);if((h=Math.min(h,T))===0)return h}}else{const b=oa(v,e);if(b[0]!==null){const T=vs(Vo(r,b[0]),_,o);T<h&&u.push({dist:T,range1:b[0],range2:[0,0]})}if(b[1]!==null){const T=vs(Vo(r,b[1]),_,o);T<h&&u.push({dist:T,range1:b[1],range2:[0,0]})}}}return h}function fd(r,e,i,o,a,h=1/0){let u=Math.min(h,a.distance(r[0],i[0]));if(u===0)return u;const f=new rc([{dist:0,range1:[0,r.length-1],range2:[0,i.length-1]}],wh),_=e?oc:nc,y=o?oc:nc;for(;f.length;){const v=f.pop();if(v.dist>=u)continue;const b=v.range1,T=v.range2;if(xs(b)<=_&&xs(T)<=y){if(!Tn(b,r.length)||!Tn(T,i.length))return NaN;if(e&&o?u=Math.min(u,Zi(r,b,i,T,a)):e||o?e&&!o?u=Math.min(u,Eh(i,T,r,b,a)):!e&&o&&(u=Math.min(u,Eh(r,b,i,T,a))):u=Math.min(u,of(r,b,i,T,a)),u===0)return u}else{const A=oa(b,e),M=oa(T,o);sc(f,u,a,r,i,A[0],M[0]),sc(f,u,a,r,i,A[0],M[1]),sc(f,u,a,r,i,A[1],M[0]),sc(f,u,a,r,i,A[1],M[1])}}return u}function Ah(r,e,i,o,a=1/0){let h=a;const u=Vo(r,[0,r.length-1]);for(const f of i)if(!(h!==1/0&&vs(u,Vo(f,[0,f.length-1]),o)>=h)&&(h=Math.min(h,fd(r,e,f,!0,o,h)),h===0))return h;return h}function ac(r,e,i,o,a=1/0){let h=a;const u=Vo(r,[0,r.length-1]);for(const f of i){if(h!==1/0&&vs(u,ol(f),o)>=h)continue;const _=cf(r,e,f,o,h);if(isNaN(_))return _;if((h=Math.min(h,_))===0)return h}return h}function Mh(r){return r==="Point"||r==="MultiPoint"||r==="LineString"||r==="MultiLineString"||r==="Polygon"||r==="MultiPolygon"}class bs{constructor(e,i){this.type=pt,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(ea(e[1])){const o=e[1];if(o.type==="FeatureCollection"){for(let a=0;a<o.features.length;++a)if(Mh(o.features[a].geometry.type))return new bs(o,o.features[a].geometry)}else if(o.type==="Feature"){if(Mh(o.geometry.type))return new bs(o,o.geometry)}else if(Mh(o.type))return new bs(o,o)}return i.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(e){const i=e.geometry(),o=e.canonicalID();if(i!=null&&o!=null){if(e.geometryType()==="Point")return function(a,h,u){const f=[];for(const y of a)for(const v of y)f.push(Sh(v,h));const _=new na(f[0][1],"meters");return u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString"?fd(f,!1,u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",_):u.type==="MultiLineString"?Ah(f,!1,u.coordinates,_):u.type==="Polygon"||u.type==="MultiPolygon"?ac(f,!1,u.type==="Polygon"?[u.coordinates]:u.coordinates,_):null}(i,o,this.geometries);if(e.geometryType()==="LineString")return function(a,h,u){const f=[];for(const y of a){const v=[];for(const b of y)v.push(Sh(b,h));f.push(v)}const _=new na(f[0][0][1],"meters");if(u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString")return Ah(u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",f,_);if(u.type==="MultiLineString"){let y=1/0;for(let v=0;v<u.coordinates.length;v++){const b=Ah(u.coordinates[v],!0,f,_,y);if(isNaN(b))return b;if((y=Math.min(y,b))===0)return y}return y}if(u.type==="Polygon"||u.type==="MultiPolygon"){let y=1/0;for(let v=0;v<f.length;v++){const b=ac(f[v],!0,u.type==="Polygon"?[u.coordinates]:u.coordinates,_,y);if(isNaN(b))return b;if((y=Math.min(y,b))===0)return y}return y}return null}(i,o,this.geometries);if(e.geometryType()==="Polygon")return function(a,h,u){const f=[];for(const y of function(v,b){const T=v.length;if(T<=1)return[v];const A=[];let M,P;for(let O=0;O<T;O++){const B=Wr(v[O]);B!==0&&(v[O].area=Math.abs(B),P===void 0&&(P=B<0),P===B<0?(M&&A.push(M),M=[v[O]]):M.push(v[O]))}return M&&A.push(M),A}(a)){const v=[];for(let b=0;b<y.length;++b)v.push(nf(y[b],h));f.push(v)}const _=new na(f[0][0][0][1],"meters");if(u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString")return ac(u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",f,_);if(u.type==="MultiLineString"){let y=1/0;for(let v=0;v<u.coordinates.length;v++){const b=ac(u.coordinates[v],!0,f,_,y);if(isNaN(b))return b;if((y=Math.min(y,b))===0)return y}return y}return u.type==="Polygon"||u.type==="MultiPolygon"?function(y,v,b){let T=1/0;for(const A of y)for(const M of v){const P=lf(A,M,b,T);if(isNaN(P))return P;if((T=Math.min(T,P))===0)return T}return T}(u.type==="Polygon"?[u.coordinates]:u.coordinates,f,_):null}(i,o,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requirs valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}function Ch(r,e){switch(r){case"string":return Hr(e);case"number":return+e;case"boolean":return!!e;case"color":return ei.parse(e);case"formatted":return Zr.fromString(Hr(e));case"resolvedImage":return en.build(Hr(e))}return e}function md(r,e,i,o){return o!==void 0&&(r=o*Math.round(r/o)),e!==void 0&&r<e&&(r=e),i!==void 0&&r>i&&(r=i),r}class aa{constructor(e,i,o){this.type=e,this.key=i,this.scope=o}static parse(e,i){let o=i.expectedType;if(o==null&&(o=ii),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 Lt))return i.error("Key name of 'config' expression must be a string literal.");if(e.length>=3){const h=i.parse(e[2],2);return h instanceof Lt?new aa(o,Hr(a.value),Hr(h.value)):i.error("Scope of 'config' expression must be a string literal.")}return new aa(o,Hr(a.value))}evaluate(e){const i=[this.key,this.scope,e.scope].filter(Boolean).join(""),o=e.getConfig(i);if(!o)return null;const{type:a,value:h,values:u,minValue:f,maxValue:_,stepValue:y}=o,v=o.default.evaluate(e);let b=v;if(h){const T=e.scope;e.scope=(T||"").split("").slice(1).join(""),b=h.evaluate(e),e.scope=T}return a&&(b=Ch(a,b)),b===void 0||f===void 0&&_===void 0&&y===void 0||(typeof b=="number"?b=md(b,f,_,y):Array.isArray(b)&&(b=b.map(T=>typeof T=="number"?md(T,f,_,y):T))),h!==void 0&&b!==void 0&&u&&!u.includes(b)&&(b=v,a&&(b=Ch(a,b))),(a&&a!==this.type||b!==void 0&&pr(b)!==this.type)&&(b=Ch(this.type.kind,b)),b}eachChild(){}outputDefined(){return!1}serialize(){const e=["config",this.key];return this.scope&&e.concat(this.key),e}}function sl(r){if(r instanceof Br&&(r.name==="get"&&r.args.length===1||r.name==="feature-state"||r.name==="has"&&r.args.length===1||r.name==="properties"||r.name==="geometry-type"||r.name==="id"||/^filter-/.test(r.name))||r instanceof go||r instanceof bs)return!1;let e=!0;return r.eachChild(i=>{e&&!sl(i)&&(e=!1)}),e}function lc(r){if(r instanceof Br&&r.name==="feature-state")return!1;let e=!0;return r.eachChild(i=>{e&&!lc(i)&&(e=!1)}),e}function cc(r){if(r instanceof aa)return new Set([r.key]);let e=new Set;return r.eachChild(i=>{e=new Set([...e,...cc(i)])}),e}function la(r,e){if(r instanceof Br&&e.indexOf(r.name)>=0)return!1;let i=!0;return r.eachChild(o=>{i&&!la(o,e)&&(i=!1)}),i}class hc{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 o=e[1];return i.scope.has(o)?new hc(o,i.scope.get(o)):i.error(`Unknown variable "${o}". Make sure "${o}" 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 Ph{constructor(e,i=[],o,a=new fs,h=[],u,f){this.registry=e,this.path=i,this.key=i.map(_=>typeof _=="string"?`['${_}']`:`[${_}]`).join(""),this.scope=a,this.errors=h,this.expectedType=o,this._scope=u,this.options=f}parse(e,i,o,a,h={}){return i||o?this.concat(i,null,o,a)._parse(e,h):this._parse(e,h)}parseObjectValue(e,i,o,a,h,u={}){return this.concat(i,o,a,h)._parse(e,u)}_parse(e,i){function o(a,h,u){return u==="assert"?new vt(h,[a]):u==="coerce"?new On(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,f=h.type;if(u.kind!=="string"&&u.kind!=="number"&&u.kind!=="boolean"&&u.kind!=="object"&&u.kind!=="array"||f.kind!=="value")if(u.kind!=="color"&&u.kind!=="formatted"&&u.kind!=="resolvedImage"||f.kind!=="value"&&f.kind!=="string"){if(this.checkSubtype(u,f))return null}else h=o(h,u,i.typeAnnotation||"coerce");else h=o(h,u,i.typeAnnotation||"assert")}if(!(h instanceof Lt)&&h.type.kind!=="resolvedImage"&&zh(h)){const u=new ec(this._scope,this.options);try{h=new Lt(h.type,h.evaluate(u))}catch(f){return this.error(f.message),null}}return h}return On.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,o,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 Ph(this.registry,h,o||null,u,this.errors,this._scope,this.options)}error(e,...i){const o=`${this.key}${i.map(a=>`[${a}]`).join("")}`;this.errors.push(new bn(o,e))}checkSubtype(e,i){const o=el(e,i);return o&&this.error(o),o}}var _d=Ph;function zh(r){if(r instanceof hc)return zh(r.boundExpression);if(r instanceof Br&&r.name==="error"||r instanceof ia||r instanceof go||r instanceof bs||r instanceof aa)return!1;const e=r instanceof On||r instanceof vt;let i=!0;return r.eachChild(o=>{i=e?i&&zh(o):i&&o instanceof Lt}),!!i&&sl(r)&&la(r,["zoom","heatmap-density","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed"])}function uc(r,e){const i=r.length-1;let o,a,h=0,u=i,f=0;for(;h<=u;)if(f=Math.floor((h+u)/2),o=r[f],a=r[f+1],o<=e){if(f===i||e<a)return f;h=f+1}else{if(!(o>e))throw new nt("Input is not a number.");u=f-1}return 0}class al{constructor(e,i,o){this.type=e,this.input=i,this.labels=[],this.outputs=[];for(const[a,h]of o)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 o=i.parse(e[1],1,pt);if(!o)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 f=u===1?-1/0:e[u],_=e[u+1],y=u,v=u+1;if(typeof f!="number")return i.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',y);if(a.length&&a[a.length-1][0]>=f)return i.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',y);const b=i.parse(_,v,h);if(!b)return null;h=h||b.type,a.push([f,b])}return new al(h,o,a)}evaluate(e){const i=this.labels,o=this.outputs;if(i.length===1)return o[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return o[0].evaluate(e);const h=i.length;return a>=i[h-1]?o[h-1].evaluate(e):o[uc(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 gd=.95047,yd=1.08883,xd=4/29,ca=6/29,vd=3*ca*ca,hf=ca*ca*ca,Dh=Math.PI/180,uf=180/Math.PI;function dc(r){return r>hf?Math.pow(r,1/3):r/vd+xd}function Rh(r){return r>ca?r*r*r:vd*(r-xd)}function Lh(r){return 255*(r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055)}function kh(r){return(r/=255)<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function Oh(r){const e=kh(r.r),i=kh(r.g),o=kh(r.b),a=dc((.4124564*e+.3575761*i+.1804375*o)/gd),h=dc((.2126729*e+.7151522*i+.072175*o)/1);return{l:116*h-16,a:500*(a-h),b:200*(h-dc((.0193339*e+.119192*i+.9503041*o)/yd)),alpha:r.a}}function Fh(r){let e=(r.l+16)/116,i=isNaN(r.a)?e:e+r.a/500,o=isNaN(r.b)?e:e-r.b/200;return e=1*Rh(e),i=gd*Rh(i),o=yd*Rh(o),new ei(Lh(3.2404542*i-1.5371385*e-.4985314*o),Lh(-.969266*i+1.8760108*e+.041556*o),Lh(.0556434*i-.2040259*e+1.0572252*o),r.alpha)}function ha(r,e,i){const o=e-r;return r+i*(o>180||o<-180?o-360*Math.round(o/360):o)}const ua={forward:Oh,reverse:Fh,interpolate:function(r,e,i){return{l:ft(r.l,e.l,i),a:ft(r.a,e.a,i),b:ft(r.b,e.b,i),alpha:ft(r.alpha,e.alpha,i)}}},da={forward:function(r){const{l:e,a:i,b:o}=Oh(r),a=Math.atan2(o,i)*uf;return{h:a<0?a+360:a,c:Math.sqrt(i*i+o*o),l:e,alpha:r.a}},reverse:function(r){const e=r.h*Dh,i=r.c;return Fh({l:r.l,a:Math.cos(e)*i,b:Math.sin(e)*i,alpha:r.alpha})},interpolate:function(r,e,i){return{h:ha(r.h,e.h,i),c:ft(r.c,e.c,i),l:ft(r.l,e.l,i),alpha:ft(r.alpha,e.alpha,i)}}};var bd=Object.freeze({__proto__:null,hcl:da,lab:ua});class tn{constructor(e,i,o,a,h){this.type=e,this.operator=i,this.interpolation=o,this.input=a,this.labels=[],this.outputs=[];for(const[u,f]of h)this.labels.push(u),this.outputs.push(f)}static interpolationFactor(e,i,o,a){let h=0;if(e.name==="exponential")h=ll(i,e.base,o,a);else if(e.name==="linear")h=ll(i,1,o,a);else if(e.name==="cubic-bezier"){const u=e.controlPoints;h=new Ul(u[0],u[1],u[2],u[3]).solve(ll(i,1,o,a))}return h}static parse(e,i){let[o,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 y=a[1];if(typeof y!="number")return i.error("Exponential interpolation requires a numeric base.",1,1);a={name:"exponential",base:y}}else{if(a[0]!=="cubic-bezier")return i.error(`Unknown interpolation type ${String(a[0])}`,1,0);{const y=a.slice(1);if(y.length!==4||y.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:y}}}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,pt),!h)return null;const f=[];let _=null;o==="interpolate-hcl"||o==="interpolate-lab"?_=Qr:i.expectedType&&i.expectedType.kind!=="value"&&(_=i.expectedType);for(let y=0;y<u.length;y+=2){const v=u[y],b=u[y+1],T=y+3,A=y+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.',T);if(f.length&&f[f.length-1][0]>=v)return i.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',T);const M=i.parse(b,A,_);if(!M)return null;_=_||M.type,f.push([v,M])}return _.kind==="number"||_.kind==="color"||_.kind==="array"&&_.itemType.kind==="number"&&typeof _.N=="number"?new tn(_,o,a,h,f):i.error(`Type ${cr(_)} is not interpolatable.`)}evaluate(e){const i=this.labels,o=this.outputs;if(i.length===1)return o[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return o[0].evaluate(e);const h=i.length;if(a>=i[h-1])return o[h-1].evaluate(e);const u=uc(i,a),f=tn.interpolationFactor(this.interpolation,a,i[u],i[u+1]),_=o[u].evaluate(e),y=o[u+1].evaluate(e);return this.operator==="interpolate"?Jl[this.type.kind.toLowerCase()](_,y,f):this.operator==="interpolate-hcl"?da.reverse(da.interpolate(da.forward(_),da.forward(y),f)):ua.reverse(ua.interpolate(ua.forward(_),ua.forward(y),f))}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 o=0;o<this.labels.length;o++)i.push(this.labels[o],this.outputs[o].serialize());return i}}function ll(r,e,i,o){const a=o-i,h=r-i;return a===0?0:e===1?h/a:(Math.pow(e,h)-1)/(Math.pow(e,a)-1)}class pc{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 o=null;const a=i.expectedType;a&&a.kind!=="value"&&(o=a);const h=[];for(const f of e.slice(1)){const _=i.parse(f,1+h.length,o,void 0,{typeAnnotation:"omit"});if(!_)return null;o=o||_.type,h.push(_)}const u=a&&h.some(f=>el(a,f.type));return new pc(u?ii:o,h)}evaluate(e){let i,o=null,a=0;for(const h of this.args){if(a++,o=h.evaluate(e),o&&o instanceof en&&!o.available&&(i||(i=o),o=null,a===this.args.length))return i;if(o!==null)break}return o}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 fc{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 o=[];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 f=i.parse(e[h+1],h+1);if(!f)return null;o.push([u,f])}const a=i.parse(e[e.length-1],e.length-1,i.expectedType,o);return a?new fc(o,a):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[i,o]of this.bindings)e.push(i,o.serialize());return e.push(this.result.serialize()),e}}class mc{constructor(e,i,o){this.type=e,this.index=i,this.input=o}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const o=i.parse(e[1],1,pt),a=i.parse(e[2],2,qr(i.expectedType||ii));return o&&a?new mc(a.type.itemType,o,a):null}evaluate(e){const i=this.index.evaluate(e),o=this.input.evaluate(e);if(i<0)throw new nt(`Array index out of bounds: ${i} < 0.`);if(i>=o.length)throw new nt(`Array index out of bounds: ${i} > ${o.length-1}.`);if(i!==Math.floor(i))throw new nt(`Array index must be an integer, but found ${i} instead. Use at-interpolated to retrieve interpolated result with a fractional index.`);return o[i]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class _c{constructor(e,i,o){this.type=e,this.index=i,this.input=o}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const o=i.parse(e[1],1,pt),a=i.parse(e[2],2,qr(i.expectedType||ii));return o&&a?new _c(a.type.itemType,o,a):null}evaluate(e){const i=this.index.evaluate(e),o=this.input.evaluate(e);if(i<0)throw new nt(`Array index out of bounds: ${i} < 0.`);if(i>o.length-1)throw new nt(`Array index out of bounds: ${i} > ${o.length-1}.`);if(i===Math.floor(i))return o[i];const a=Math.floor(i),h=Math.ceil(i),u=o[a],f=o[h];if(typeof u!="number"||typeof f!="number")throw new nt(`Cannot interpolate between non-number values at index ${i}.`);const _=i-a;return u*(1-_)+f*_}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at-interpolated",this.index.serialize(),this.input.serialize()]}}class Bh{constructor(e,i){this.type=ni,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 o=i.parse(e[1],1,ii),a=i.parse(e[2],2,ii);return o&&a?gh(o.type,[ni,di,pt,Lo,ii])?new Bh(o,a):i.error(`Expected first argument to be of type boolean, string, number or null, but found ${cr(o.type)} instead`):null}evaluate(e){const i=this.needle.evaluate(e),o=this.haystack.evaluate(e);if(o==null)return!1;if(!Qs(i,["boolean","string","number","null"]))throw new nt(`Expected first argument to be of type boolean, string, number or null, but found ${cr(pr(i))} instead.`);if(!Qs(o,["string","array"]))throw new nt(`Expected second argument to be of type array or string, but found ${cr(pr(o))} instead.`);return o.indexOf(i)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class gc{constructor(e,i,o){this.type=pt,this.needle=e,this.haystack=i,this.fromIndex=o}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 o=i.parse(e[1],1,ii),a=i.parse(e[2],2,ii);if(!o||!a)return null;if(!gh(o.type,[ni,di,pt,Lo,ii]))return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${cr(o.type)} instead`);if(e.length===4){const h=i.parse(e[3],3,pt);return h?new gc(o,a,h):null}return new gc(o,a)}evaluate(e){const i=this.needle.evaluate(e),o=this.haystack.evaluate(e);if(!Qs(i,["boolean","string","number","null"]))throw new nt(`Expected first argument to be of type boolean, string, number or null, but found ${cr(pr(i))} instead.`);if(!Qs(o,["string","array"]))throw new nt(`Expected second argument to be of type array or string, but found ${cr(pr(o))} instead.`);if(this.fromIndex){const a=this.fromIndex.evaluate(e);return o.indexOf(i,a)}return o.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 Nh{constructor(e,i,o,a,h,u){this.inputType=e,this.type=i,this.input=o,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 o,a;i.expectedType&&i.expectedType.kind!=="value"&&(a=i.expectedType);const h={},u=[];for(let y=2;y<e.length-1;y+=2){let v=e[y];const b=e[y+1];Array.isArray(v)||(v=[v]);const T=i.concat(y);if(v.length===0)return T.error("Expected at least one branch label.");for(const M of v){if(typeof M!="number"&&typeof M!="string")return T.error("Branch labels must be numbers or strings.");if(typeof M=="number"&&Math.abs(M)>Number.MAX_SAFE_INTEGER)return T.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof M=="number"&&Math.floor(M)!==M)return T.error("Numeric branch labels must be integer values.");if(o){if(T.checkSubtype(o,pr(M)))return null}else o=pr(M);if(h[String(M)]!==void 0)return T.error("Branch labels must be unique.");h[String(M)]=u.length}const A=i.parse(b,y,a);if(!A)return null;a=a||A.type,u.push(A)}const f=i.parse(e[1],1,ii);if(!f)return null;const _=i.parse(e[e.length-1],e.length-1,a);return _?f.type.kind!=="value"&&i.concat(1).checkSubtype(o,f.type)?null:new Nh(o,a,f,h,u,_):null}evaluate(e){const i=this.input.evaluate(e);return(pr(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(),o=[],a={};for(const u of i){const f=a[this.cases[u]];f===void 0?(a[this.cases[u]]=o.length,o.push([this.cases[u],[u]])):o[f][1].push(u)}const h=u=>this.inputType.kind==="number"?Number(u):u;for(const[u,f]of o)e.push(f.length===1?h(f[0]):f.map(h)),e.push(this.outputs[u].serialize());return e.push(this.otherwise.serialize()),e}}class yc{constructor(e,i,o){this.type=e,this.branches=i,this.otherwise=o}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 o;i.expectedType&&i.expectedType.kind!=="value"&&(o=i.expectedType);const a=[];for(let u=1;u<e.length-1;u+=2){const f=i.parse(e[u],u,ni);if(!f)return null;const _=i.parse(e[u+1],u+1,o);if(!_)return null;a.push([f,_]),o=o||_.type}const h=i.parse(e[e.length-1],e.length-1,o);return h?new yc(o,a,h):null}evaluate(e){for(const[i,o]of this.branches)if(i.evaluate(e))return o.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[i,o]of this.branches)e(i),e(o);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 cl{constructor(e,i,o,a){this.type=e,this.input=i,this.beginIndex=o,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 o=i.parse(e[1],1,ii),a=i.parse(e[2],2,pt);if(!o||!a)return null;if(!gh(o.type,[qr(ii),di,ii]))return i.error(`Expected first argument to be of type array or string, but found ${cr(o.type)} instead`);if(e.length===4){const h=i.parse(e[3],3,pt);return h?new cl(o.type,o,a,h):null}return new cl(o.type,o,a)}evaluate(e){const i=this.input.evaluate(e),o=this.beginIndex.evaluate(e);if(!Qs(i,["string","array"]))throw new nt(`Expected first argument to be of type array or string, but found ${cr(pr(i))} instead.`);if(this.endIndex){const a=this.endIndex.evaluate(e);return i.slice(o,a)}return i.slice(o)}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()]}}function hl(r,e){return r==="=="||r==="!="?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 wd(r,e,i,o){return o.compare(e,i)===0}function ws(r,e,i){const o=r!=="=="&&r!=="!=";return class G0{constructor(h,u,f){this.type=ni,this.lhs=h,this.rhs=u,this.collator=f,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 f=h[0];let _=u.parse(h[1],1,ii);if(!_)return null;if(!hl(f,_.type))return u.concat(1).error(`"${f}" comparisons are not supported for type '${cr(_.type)}'.`);let y=u.parse(h[2],2,ii);if(!y)return null;if(!hl(f,y.type))return u.concat(2).error(`"${f}" comparisons are not supported for type '${cr(y.type)}'.`);if(_.type.kind!==y.type.kind&&_.type.kind!=="value"&&y.type.kind!=="value")return u.error(`Cannot compare types '${cr(_.type)}' and '${cr(y.type)}'.`);o&&(_.type.kind==="value"&&y.type.kind!=="value"?_=new vt(y.type,[_]):_.type.kind!=="value"&&y.type.kind==="value"&&(y=new vt(_.type,[y])));let v=null;if(h.length===4){if(_.type.kind!=="string"&&y.type.kind!=="string"&&_.type.kind!=="value"&&y.type.kind!=="value")return u.error("Cannot use collator to compare non-string types.");if(v=u.parse(h[3],3,ms),!v)return null}return new G0(_,y,v)}evaluate(h){const u=this.lhs.evaluate(h),f=this.rhs.evaluate(h);if(o&&this.hasUntypedArgument){const _=pr(u),y=pr(f);if(_.kind!==y.kind||_.kind!=="string"&&_.kind!=="number")throw new nt(`Expected arguments for "${r}" to be (string, string) or (number, number), but found (${_.kind}, ${y.kind}) instead.`)}if(this.collator&&!o&&this.hasUntypedArgument){const _=pr(u),y=pr(f);if(_.kind!=="string"||y.kind!=="string")return e(h,u,f)}return this.collator?i(h,u,f,this.collator.evaluate(h)):e(h,u,f)}eachChild(h){h(this.lhs),h(this.rhs),this.collator&&h(this.collator)}outputDefined(){return!0}serialize(){const h=[r];return this.eachChild(u=>{h.push(u.serialize())}),h}}}const df=ws("==",function(r,e,i){return e===i},wd),pf=ws("!=",function(r,e,i){return e!==i},function(r,e,i,o){return!wd(0,e,i,o)}),Td=ws("<",function(r,e,i){return e<i},function(r,e,i,o){return o.compare(e,i)<0}),Sd=ws(">",function(r,e,i){return e>i},function(r,e,i,o){return o.compare(e,i)>0}),ff=ws("<=",function(r,e,i){return e<=i},function(r,e,i,o){return o.compare(e,i)<=0}),mf=ws(">=",function(r,e,i){return e>=i},function(r,e,i,o){return o.compare(e,i)>=0});class Vh{constructor(e,i,o,a,h,u){this.type=di,this.number=e,this.locale=i,this.currency=o,this.unit=a,this.minFractionDigits=h,this.maxFractionDigits=u}static parse(e,i){if(e.length!==3)return i.error("Expected two arguments.");const o=i.parse(e[1],1,pt);if(!o)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",di),!h))return null;let u=null;if(a.currency&&(u=i.parseObjectValue(a.currency,2,"currency",di),!u))return null;let f=null;if(a.unit&&(f=i.parseObjectValue(a.unit,2,"unit",di),!f))return null;let _=null;if(a["min-fraction-digits"]&&(_=i.parseObjectValue(a["min-fraction-digits"],2,"min-fraction-digits",pt),!_))return null;let y=null;return a["max-fraction-digits"]&&(y=i.parseObjectValue(a["max-fraction-digits"],2,"max-fraction-digits",pt),!y)?null:new Vh(o,h,u,f,_,y)}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 ul{constructor(e){this.type=pt,this.input=e}static parse(e,i){if(e.length!==2)return i.error(`Expected 1 argument, but found ${e.length-1} instead.`);const o=i.parse(e[1],1);return o?o.type.kind!=="array"&&o.type.kind!=="string"&&o.type.kind!=="value"?i.error(`Expected argument of type string or array, but found ${cr(o.type)} instead.`):new ul(o):null}evaluate(e){const i=this.input.evaluate(e);if(typeof i=="string"||Array.isArray(i))return i.length;throw new nt(`Expected value to be of type string or array, but found ${cr(pr(i))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(i=>{e.push(i.serialize())}),e}}function Ed(r){return function(){r=1831565813+(r|=0)|0;let e=Math.imul(r^r>>>15,1|r);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const Ts={"==":df,"!=":pf,">":Sd,"<":Td,">=":mf,"<=":ff,array:vt,at:mc,"at-interpolated":_c,boolean:vt,case:yc,coalesce:pc,collator:ia,format:_s,image:ta,in:Bh,"index-of":gc,interpolate:tn,"interpolate-hcl":tn,"interpolate-lab":tn,length:ul,let:fc,literal:Lt,match:Nh,number:vt,"number-format":Vh,object:vt,slice:cl,step:al,string:vt,"to-boolean":On,"to-color":On,"to-number":On,"to-string":On,var:hc,within:go,distance:bs,config:aa};function Id(r,[e,i,o,a]){e=e.evaluate(r),i=i.evaluate(r),o=o.evaluate(r);const h=a?a.evaluate(r):1,u=nd(e,i,o,h);if(u)throw new nt(u);return new ei(e/255*h,i/255*h,o/255*h,h)}function Ad(r,[e,i,o,a]){e=e.evaluate(r),i=i.evaluate(r),o=o.evaluate(r);const h=a?a.evaluate(r):1,u=function(y,v,b,T){return typeof y=="number"&&y>=0&&y<=360?typeof v=="number"&&v>=0&&v<=100&&typeof b=="number"&&b>=0&&b<=100?T===void 0||typeof T=="number"&&T>=0&&T<=1?null:`Invalid hsla value [${[y,v,b,T].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof T=="number"?[y,v,b,T]:[y,v,b]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof T=="number"?[y,v,b,T]:[y,v,b]).join(", ")}]: 'h' must be between 0 and 360.`}(e,i,o,h);if(u)throw new nt(u);const f=`hsla(${e}, ${i}%, ${o}%, ${h})`,_=ei.parse(f);if(!_)throw new nt(`Failed to parse HSLA color: ${f}`);return _}function Uh(r,e){return r in e}function xc(r,e){const i=e[r];return i===void 0?null:i}function Uo(r){return{type:r}}function Md(r){return{result:"success",value:r}}function _n(r){return{result:"error",value:r}}function jh(r,e){return!!r&&!!r.parameters&&r.parameters.indexOf(e)>-1}function vc(r){return r["property-type"]==="data-driven"}function Cd(r){return jh(r.expression,"measure-light")}function Gh(r){return jh(r.expression,"zoom")}function bc(r){return!!r.expression&&r.expression.interpolated}function wc(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function Pd(r){return r}function Tc(r,e){const i=e.type==="color",o=r.stops&&typeof r.stops[0][0]=="object",a=o||!(o||r.property!==void 0),h=r.type||(bc(e)?"exponential":"interval");if(i&&((r=Ka({},r)).stops&&(r.stops=r.stops.map(y=>[y[0],ei.parse(y[1])])),r.default=ei.parse(r.default?r.default:e.default)),r.colorSpace&&r.colorSpace!=="rgb"&&!bd[r.colorSpace])throw new Error(`Unknown color space: ${r.colorSpace}`);let u,f,_;if(h==="exponential")u=yo;else if(h==="interval")u=_f;else if(h==="categorical"){u=zd,f=Object.create(null);for(const y of r.stops)f[y[0]]=y[1];_=typeof r.stops[0][0]}else{if(h!=="identity")throw new Error(`Unknown function type "${h}"`);u=gf}if(o){const y={},v=[];for(let A=0;A<r.stops.length;A++){const M=r.stops[A],P=M[0].zoom;y[P]===void 0&&(y[P]={zoom:P,type:r.type,property:r.property,default:r.default,stops:[]},v.push(P)),y[P].stops.push([M[0].value,M[1]])}const b=[];for(const A of v)b.push([y[A].zoom,Tc(y[A],e)]);const T={name:"linear"};return{kind:"composite",interpolationType:T,interpolationFactor:tn.interpolationFactor.bind(void 0,T),zoomStops:b.map(A=>A[0]),evaluate:({zoom:A},M)=>yo({stops:b,base:r.base},e,A).evaluate(A,M)}}if(a){const y=h==="exponential"?{name:"exponential",base:r.base!==void 0?r.base:1}:null;return{kind:"camera",interpolationType:y,interpolationFactor:tn.interpolationFactor.bind(void 0,y),zoomStops:r.stops.map(v=>v[0]),evaluate:({zoom:v})=>u(r,e,v,f,_)}}return{kind:"source",evaluate(y,v){const b=v&&v.properties?v.properties[r.property]:void 0;return b===void 0?Ss(r.default,e.default):u(r,e,b,f,_)}}}function Ss(r,e,i){return r!==void 0?r:e!==void 0?e:i!==void 0?i:void 0}function zd(r,e,i,o,a){return Ss(typeof i===a?o[i]:void 0,r.default,e.default)}function _f(r,e,i){if(bt(i)!=="number")return Ss(r.default,e.default);const o=r.stops.length;if(o===1||i<=r.stops[0][0])return r.stops[0][1];if(i>=r.stops[o-1][0])return r.stops[o-1][1];const a=uc(r.stops.map(h=>h[0]),i);return r.stops[a][1]}function yo(r,e,i){const o=r.base!==void 0?r.base:1;if(bt(i)!=="number")return Ss(r.default,e.default);const a=r.stops.length;if(a===1||i<=r.stops[0][0])return r.stops[0][1];if(i>=r.stops[a-1][0])return r.stops[a-1][1];const h=uc(r.stops.map(v=>v[0]),i),u=function(v,b,T,A){const M=A-T,P=v-T;return M===0?0:b===1?P/M:(Math.pow(b,P)-1)/(Math.pow(b,M)-1)}(i,o,r.stops[h][0],r.stops[h+1][0]),f=r.stops[h][1],_=r.stops[h+1][1];let y=Jl[e.type]||Pd;if(r.colorSpace&&r.colorSpace!=="rgb"){const v=bd[r.colorSpace];y=(b,T)=>v.reverse(v.interpolate(v.forward(b),v.forward(T),u))}return typeof f.evaluate=="function"?{evaluate(...v){const b=f.evaluate.apply(void 0,v),T=_.evaluate.apply(void 0,v);if(b!==void 0&&T!==void 0)return y(b,T,u)}}:y(f,_,u)}function gf(r,e,i){return e.type==="color"?i=ei.parse(i):e.type==="formatted"?i=Zr.fromString(i.toString()):e.type==="resolvedImage"?i=en.build(i.toString()):bt(i)===e.type||e.type==="enum"&&e.values[i]||(i=void 0),Ss(i,r.default,e.default)}Br.register(Ts,{error:[{kind:"error"},[di],(r,[e])=>{throw new nt(e.evaluate(r))}],typeof:[di,[ii],(r,[e])=>cr(pr(e.evaluate(r)))],"to-rgba":[qr(pt,4),[Qr],(r,[e])=>e.evaluate(r).toRenderColor(null).toArray()],"to-hsla":[qr(pt,4),[Qr],(r,[e])=>e.evaluate(r).toRenderColor(null).toHslaArray()],rgb:[Qr,[pt,pt,pt],Id],rgba:[Qr,[pt,pt,pt,pt],Id],hsl:[Qr,[pt,pt,pt],Ad],hsla:[Qr,[pt,pt,pt,pt],Ad],has:{type:ni,overloads:[[[di],(r,[e])=>Uh(e.evaluate(r),r.properties())],[[di,ko],(r,[e,i])=>Uh(e.evaluate(r),i.evaluate(r))]]},get:{type:ii,overloads:[[[di],(r,[e])=>xc(e.evaluate(r),r.properties())],[[di,ko],(r,[e,i])=>xc(e.evaluate(r),i.evaluate(r))]]},"feature-state":[ii,[di],(r,[e])=>xc(e.evaluate(r),r.featureState||{})],properties:[ko,[],r=>r.properties()],"geometry-type":[di,[],r=>r.geometryType()],id:[ii,[],r=>r.id()],zoom:[pt,[],r=>r.globals.zoom],pitch:[pt,[],r=>r.globals.pitch||0],"distance-from-center":[pt,[],r=>r.distanceFromCenter()],"measure-light":[pt,[di],(r,[e])=>r.measureLight(e.evaluate(r))],"heatmap-density":[pt,[],r=>r.globals.heatmapDensity||0],"line-progress":[pt,[],r=>r.globals.lineProgress||0],"raster-value":[pt,[],r=>r.globals.rasterValue||0],"raster-particle-speed":[pt,[],r=>r.globals.rasterParticleSpeed||0],"sky-radial-progress":[pt,[],r=>r.globals.skyRadialProgress||0],accumulated:[ii,[],r=>r.globals.accumulated===void 0?null:r.globals.accumulated],"+":[pt,Uo(pt),(r,e)=>{let i=0;for(const o of e)i+=o.evaluate(r);return i}],"*":[pt,Uo(pt),(r,e)=>{let i=1;for(const o of e)i*=o.evaluate(r);return i}],"-":{type:pt,overloads:[[[pt,pt],(r,[e,i])=>e.evaluate(r)-i.evaluate(r)],[[pt],(r,[e])=>-e.evaluate(r)]]},"/":[pt,[pt,pt],(r,[e,i])=>e.evaluate(r)/i.evaluate(r)],"%":[pt,[pt,pt],(r,[e,i])=>e.evaluate(r)%i.evaluate(r)],ln2:[pt,[],()=>Math.LN2],pi:[pt,[],()=>Math.PI],e:[pt,[],()=>Math.E],"^":[pt,[pt,pt],(r,[e,i])=>Math.pow(e.evaluate(r),i.evaluate(r))],sqrt:[pt,[pt],(r,[e])=>Math.sqrt(e.evaluate(r))],log10:[pt,[pt],(r,[e])=>Math.log(e.evaluate(r))/Math.LN10],ln:[pt,[pt],(r,[e])=>Math.log(e.evaluate(r))],log2:[pt,[pt],(r,[e])=>Math.log(e.evaluate(r))/Math.LN2],sin:[pt,[pt],(r,[e])=>Math.sin(e.evaluate(r))],cos:[pt,[pt],(r,[e])=>Math.cos(e.evaluate(r))],tan:[pt,[pt],(r,[e])=>Math.tan(e.evaluate(r))],asin:[pt,[pt],(r,[e])=>Math.asin(e.evaluate(r))],acos:[pt,[pt],(r,[e])=>Math.acos(e.evaluate(r))],atan:[pt,[pt],(r,[e])=>Math.atan(e.evaluate(r))],min:[pt,Uo(pt),(r,e)=>Math.min(...e.map(i=>i.evaluate(r)))],max:[pt,Uo(pt),(r,e)=>Math.max(...e.map(i=>i.evaluate(r)))],abs:[pt,[pt],(r,[e])=>Math.abs(e.evaluate(r))],round:[pt,[pt],(r,[e])=>{const i=e.evaluate(r);return i<0?-Math.round(-i):Math.round(i)}],floor:[pt,[pt],(r,[e])=>Math.floor(e.evaluate(r))],ceil:[pt,[pt],(r,[e])=>Math.ceil(e.evaluate(r))],"filter-==":[ni,[di,ii],(r,[e,i])=>r.properties()[e.value]===i.value],"filter-id-==":[ni,[ii],(r,[e])=>r.id()===e.value],"filter-type-==":[ni,[di],(r,[e])=>r.geometryType()===e.value],"filter-<":[ni,[di,ii],(r,[e,i])=>{const o=r.properties()[e.value],a=i.value;return typeof o==typeof a&&o<a}],"filter-id-<":[ni,[ii],(r,[e])=>{const i=r.id(),o=e.value;return typeof i==typeof o&&i<o}],"filter->":[ni,[di,ii],(r,[e,i])=>{const o=r.properties()[e.value],a=i.value;return typeof o==typeof a&&o>a}],"filter-id->":[ni,[ii],(r,[e])=>{const i=r.id(),o=e.value;return typeof i==typeof o&&i>o}],"filter-<=":[ni,[di,ii],(r,[e,i])=>{const o=r.properties()[e.value],a=i.value;return typeof o==typeof a&&o<=a}],"filter-id-<=":[ni,[ii],(r,[e])=>{const i=r.id(),o=e.value;return typeof i==typeof o&&i<=o}],"filter->=":[ni,[di,ii],(r,[e,i])=>{const o=r.properties()[e.value],a=i.value;return typeof o==typeof a&&o>=a}],"filter-id->=":[ni,[ii],(r,[e])=>{const i=r.id(),o=e.value;return typeof i==typeof o&&i>=o}],"filter-has":[ni,[ii],(r,[e])=>e.value in r.properties()],"filter-has-id":[ni,[],r=>r.id()!==null&&r.id()!==void 0],"filter-type-in":[ni,[qr(di)],(r,[e])=>e.value.indexOf(r.geometryType())>=0],"filter-id-in":[ni,[qr(ii)],(r,[e])=>e.value.indexOf(r.id())>=0],"filter-in-small":[ni,[di,qr(ii)],(r,[e,i])=>i.value.indexOf(r.properties()[e.value])>=0],"filter-in-large":[ni,[di,qr(ii)],(r,[e,i])=>function(o,a,h,u){for(;h<=u;){const f=h+u>>1;if(a[f]===o)return!0;a[f]>o?u=f-1:h=f+1}return!1}(r.properties()[e.value],i.value,0,i.value.length-1)],all:{type:ni,overloads:[[[ni,ni],(r,[e,i])=>e.evaluate(r)&&i.evaluate(r)],[Uo(ni),(r,e)=>{for(const i of e)if(!i.evaluate(r))return!1;return!0}]]},any:{type:ni,overloads:[[[ni,ni],(r,[e,i])=>e.evaluate(r)||i.evaluate(r)],[Uo(ni),(r,e)=>{for(const i of e)if(i.evaluate(r))return!0;return!1}]]},"!":[ni,[ni],(r,[e])=>!e.evaluate(r)],"is-supported-script":[ni,[di],(r,[e])=>{const i=r.globals&&r.globals.isSupportedScript;return!i||i(e.evaluate(r))}],upcase:[di,[di],(r,[e])=>e.evaluate(r).toUpperCase()],downcase:[di,[di],(r,[e])=>e.evaluate(r).toLowerCase()],concat:[di,Uo(ii),(r,e)=>e.map(i=>Hr(i.evaluate(r))).join("")],"resolved-locale":[di,[ms],(r,[e])=>e.evaluate(r).resolvedLocale()],random:[pt,[pt,pt,ii],(r,e)=>{const[i,o,a]=e.map(u=>u.evaluate(r));if(i>o||i===o)return i;let h;if(typeof a=="string")h=function(u){let f=0;if(u.length===0)return f;for(let _=0;_<u.length;_++)f=(f<<5)-f+u.charCodeAt(_),f|=0;return f}(a);else{if(typeof a!="number")throw new nt(`Invalid seed input: ${a}`);h=a}return i+Ed(h)()*(o-i)}]});class qh{constructor(e,i,o,a){this.expression=e,this._warningHistory={},this._evaluator=new ec(o,a),this._defaultValue=i?function(h){return h.type==="color"&&(wc(h.default)||Array.isArray(h.default))?new ei(0,0,0,0):h.type==="color"?ei.parse(h.default)||null:h.default===void 0?null:h.default}(i):null,this._enumValues=i&&i.type==="enum"?i.values:null,this.configDependencies=cc(e)}evaluateWithoutErrorHandling(e,i,o,a,h,u,f,_){return this._evaluator.globals=e,this._evaluator.feature=i,this._evaluator.featureState=o,this._evaluator.canonical=a||null,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=u,this._evaluator.featureTileCoord=f||null,this._evaluator.featureDistanceData=_||null,this.expression.evaluate(this._evaluator)}evaluate(e,i,o,a,h,u,f,_){this._evaluator.globals=e,this._evaluator.feature=i||null,this._evaluator.featureState=o||null,this._evaluator.canonical=a||null,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=u||null,this._evaluator.featureTileCoord=f||null,this._evaluator.featureDistanceData=_||null;try{const y=this.expression.evaluate(this._evaluator);if(y==null||typeof y=="number"&&y!=y)return this._defaultValue;if(this._enumValues&&!(y in this._enumValues))throw new nt(`Expected value to be one of ${Object.keys(this._enumValues).map(v=>JSON.stringify(v)).join(", ")}, but found ${JSON.stringify(y)} instead.`);return y}catch(y){return this._warningHistory[y.message]||(this._warningHistory[y.message]=!0,typeof console<"u"&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${y.message}`)),this._defaultValue}}}function Sc(r){return Array.isArray(r)&&r.length>0&&typeof r[0]=="string"&&r[0]in Ts}function pa(r,e,i,o){const a=new _d(Ts,[],e?function(u){const f={color:Qr,string:di,number:pt,enum:di,boolean:ni,formatted:Ja,resolvedImage:Qa};return u.type==="array"?qr(f[u.value]||ii,u.length):f[u.type]}(e):void 0,void 0,void 0,i,o),h=a.parse(r,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return h?Md(new qh(h,e,i,o)):_n(a.errors)}class Es{constructor(e,i,o,a){this.kind=e,this._styleExpression=i,this.isLightConstant=o,this.isLineProgressConstant=a,this.isStateDependent=e!=="constant"&&!lc(i.expression),this.configDependencies=cc(i.expression)}evaluateWithoutErrorHandling(e,i,o,a,h,u){return this._styleExpression.evaluateWithoutErrorHandling(e,i,o,a,h,u)}evaluate(e,i,o,a,h,u){return this._styleExpression.evaluate(e,i,o,a,h,u)}}class fa{constructor(e,i,o,a,h,u){this.kind=e,this.zoomStops=o,this._styleExpression=i,this.isStateDependent=e!=="camera"&&!lc(i.expression),this.isLightConstant=h,this.isLineProgressConstant=u,this.configDependencies=cc(i.expression),this.interpolationType=a}evaluateWithoutErrorHandling(e,i,o,a,h,u){return this._styleExpression.evaluateWithoutErrorHandling(e,i,o,a,h,u)}evaluate(e,i,o,a,h,u){return this._styleExpression.evaluate(e,i,o,a,h,u)}interpolationFactor(e,i,o){return this.interpolationType?tn.interpolationFactor(this.interpolationType,e,i,o):0}}function dl(r,e,i,o){if((r=pa(r,e,i,o)).result==="error")return r;const a=r.value.expression,h=sl(a);if(!h&&!vc(e))return _n([new bn("","data expressions not supported")]);const u=la(a,["zoom","pitch","distance-from-center"]);if(!u&&!Gh(e))return _n([new bn("","zoom expressions not supported")]);const f=la(a,["measure-light"]);if(!f&&!Cd(e))return _n([new bn("","measure-light expression not supported")]);const _=la(a,["line-progress"]);if(!_&&!function(b){return jh(b.expression,"line-progress")}(e))return _n([new bn("","line-progress expression not supported")]);const y=e.expression&&e.expression.relaxZoomRestriction,v=Ec(a);return v||u||y?v instanceof bn?_n([v]):v instanceof tn&&!bc(e)?_n([new bn("",'"interpolate" expressions cannot be used with this property')]):Md(v?new fa(h&&_?"camera":"composite",r.value,v.labels,v instanceof tn?v.interpolation:void 0,f,_):new Es(h&&_?"constant":"source",r.value,f,_)):_n([new bn("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class pl{constructor(e,i){this._parameters=e,this._specification=i,Ka(this,Tc(this._parameters,this._specification))}static deserialize(e){return new pl(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function Ec(r){let e=null;if(r instanceof fc)e=Ec(r.result);else if(r instanceof pc){for(const i of r.args)if(e=Ec(i),e)break}else(r instanceof al||r instanceof tn)&&r.input instanceof Br&&r.input.name==="zoom"&&(e=r);return e instanceof bn||r.eachChild(i=>{const o=Ec(i);o instanceof bn?e=o:e&&o&&e!==o&&(e=new bn("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}var Zh,Ic,Hh=function(){if(Ic)return Zh;Ic=1,Zh=e;var r=3;function e(i,o,a){var h=this.cells=[];if(i instanceof ArrayBuffer){this.arrayBuffer=i;var u=new Int32Array(this.arrayBuffer);i=u[0],this.d=(o=u[1])+2*(a=u[2]);for(var f=0;f<this.d*this.d;f++){var _=u[r+f],y=u[r+f+1];h.push(_===y?null:u.subarray(_,y))}var v=u[r+h.length+1];this.keys=u.subarray(u[r+h.length],v),this.bboxes=u.subarray(v),this.insert=this._insertReadonly}else{this.d=o+2*a;for(var b=0;b<this.d*this.d;b++)h.push([]);this.keys=[],this.bboxes=[]}this.n=o,this.extent=i,this.padding=a,this.scale=o/i,this.uid=0;var T=a/o*i;this.min=-T,this.max=i+T}return e.prototype.insert=function(i,o,a,h,u){this._forEachCell(o,a,h,u,this._insertCell,this.uid++),this.keys.push(i),this.bboxes.push(o),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,o,a,h,u,f){this.cells[u].push(f)},e.prototype.query=function(i,o,a,h,u){var f=this.min,_=this.max;if(i<=f&&o<=f&&_<=a&&_<=h&&!u)return Array.prototype.slice.call(this.keys);var y=[];return this._forEachCell(i,o,a,h,this._queryCell,y,{},u),y},e.prototype._queryCell=function(i,o,a,h,u,f,_,y){var v=this.cells[u];if(v!==null)for(var b=this.keys,T=this.bboxes,A=0;A<v.length;A++){var M=v[A];if(_[M]===void 0){var P=4*M;(y?y(T[P+0],T[P+1],T[P+2],T[P+3]):i<=T[P+2]&&o<=T[P+3]&&a>=T[P+0]&&h>=T[P+1])?(_[M]=!0,f.push(b[M])):_[M]=!1}}},e.prototype._forEachCell=function(i,o,a,h,u,f,_,y){for(var v=this._convertToCellCoord(i),b=this._convertToCellCoord(o),T=this._convertToCellCoord(a),A=this._convertToCellCoord(h),M=v;M<=T;M++)for(var P=b;P<=A;P++){var O=this.d*P+M;if((!y||y(this._convertFromCellCoord(M),this._convertFromCellCoord(P),this._convertFromCellCoord(M+1),this._convertFromCellCoord(P+1)))&&u.call(this,i,o,a,h,O,f,_,y))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,o=r+this.cells.length+1+1,a=0,h=0;h<this.cells.length;h++)a+=this.cells[h].length;var u=new Int32Array(o+a+this.keys.length+this.bboxes.length);u[0]=this.extent,u[1]=this.n,u[2]=this.padding;for(var f=o,_=0;_<i.length;_++){var y=i[_];u[r+_]=f,u.set(y,f),f+=y.length}return u[r+i.length]=f,u.set(this.keys,f),u[r+i.length+1]=f+=this.keys.length,u.set(this.bboxes,f),f+=this.bboxes.length,u.buffer},Zh}(),ma=Jn(Hh);const fl={};function et(r,e,i={}){Object.defineProperty(r,"_classRegistryKey",{value:e,writable:!1}),fl[e]={klass:r,omit:i.omit||[]}}et(Object,"Object"),ma.serialize=function(r,e){const i=r.toArrayBuffer();return e&&e.add(i),{buffer:i}},ma.deserialize=function(r){return new ma(r.buffer)},Object.defineProperty(ma,"name",{value:"Grid"}),et(ma,"Grid"),typeof DOMMatrix<"u"&&et(DOMMatrix,"DOMMatrix"),et(ei,"Color"),et(Error,"Error"),et(Zr,"Formatted"),et(Ql,"FormattedSection"),et($l,"AJAXError"),et(en,"ResolvedImage"),et(pl,"StylePropertyFunction"),et(qh,"StyleExpression",{omit:["_evaluator"]}),et(an,"ImageId"),et(kn,"ImageVariant"),et(fa,"ZoomDependentExpression"),et(Es,"ZoomConstantExpression"),et(Br,"CompoundExpression",{omit:["_evaluate"]});for(const r in Ts)fl[Ts[r]._classRegistryKey]||et(Ts[r],`Expression${r}`);function ml(r){return r&&typeof ArrayBuffer<"u"&&(r instanceof ArrayBuffer||r.constructor&&r.constructor.name==="ArrayBuffer")}function Is(r){return self.ImageBitmap&&r instanceof ImageBitmap}function jo(r,e){if(r==null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||r instanceof Boolean||r instanceof Number||r instanceof String||r instanceof Date||r instanceof RegExp)return r;if(ml(r)||Is(r))return e&&e.add(r),r;if(ArrayBuffer.isView(r))return e&&e.add(r.buffer),r;if(r instanceof ImageData)return e&&e.add(r.data.buffer),r;if(Array.isArray(r)){const i=[];for(const o of r)i.push(jo(o,e));return i}if(r instanceof Map){const i={$name:"Map",entries:[]};for(const[o,a]of r.entries())i.entries.push(jo(o),jo(a,e));return i}if(r instanceof Set){const i={$name:"Set"};let o=0;for(const a of r.values())i[++o]=jo(a);return i}if(r instanceof DOMMatrix){const i={$name:"DOMMatrix"},o=["is2D","m11","m12","m13","m14","m21","m22","m23","m24","m31","m32","m33","m34","m41","m42","m43","m44","a","b","c","d","e","f"];for(const a of o)i[a]=r[a];return i}if(typeof r=="bigint")return{$name:"BigInt",value:r.toString()};if(typeof r=="object"){const i=r.constructor,o=i._classRegistryKey;if(!o)throw new Error(`Can't serialize object of unregistered class "${i.name}".`);const a=i.serialize?i.serialize(r,e):{};if(!i.serialize){for(const h in r)r.hasOwnProperty(h)&&(fl[o].omit.indexOf(h)>=0||(a[h]=jo(r[h],e)));r instanceof Error&&(a.message=r.message)}if(a.$name)throw new Error("$name property is reserved for worker serialization logic.");return o!=="Object"&&(a.$name=o),a}throw new Error("can't serialize object of type "+typeof r)}function Go(r){if(r==null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||r instanceof Boolean||r instanceof Number||r instanceof String||r instanceof Date||r instanceof RegExp||ml(r)||Is(r)||ArrayBuffer.isView(r)||r instanceof ImageData)return r;if(Array.isArray(r))return r.map(Go);if(typeof r=="object"){const e=r.$name||"Object";if(e==="Map"){const a=r.entries||[],h=new Map;for(let u=0;u<a.length;u+=2)h.set(Go(a[u]),Go(a[u+1]));return h}if(e==="Set"){const a=new Set;for(const h of Object.keys(r))h!=="$name"&&a.add(Go(r[h]));return a}if(e==="DOMMatrix"){let a;return a=r.is2D?[r.a,r.b,r.c,r.d,r.e,r.f]:[r.m11,r.m12,r.m13,r.m14,r.m21,r.m22,r.m23,r.m24,r.m31,r.m32,r.m33,r.m34,r.m41,r.m42,r.m43,r.m44],new DOMMatrix(a)}if(e==="BigInt")return BigInt(r.value);const{klass:i}=fl[e];if(!i)throw new Error(`Can't deserialize unregistered class "${e}".`);if(i.deserialize)return i.deserialize(r);const o=Object.create(i.prototype);for(const a of Object.keys(r))a!=="$name"&&(o[a]=Go(r[a]));return o}throw new Error("can't deserialize object of type "+typeof r)}const mt={"Latin-1 Supplement":r=>r>=128&&r<=255,Arabic:r=>r>=1536&&r<=1791,"Arabic Supplement":r=>r>=1872&&r<=1919,"Arabic Extended-A":r=>r>=2208&&r<=2303,"Hangul Jamo":r=>r>=4352&&r<=4607,"Unified Canadian Aboriginal Syllabics":r=>r>=5120&&r<=5759,Khmer:r=>r>=6016&&r<=6143,"Unified Canadian Aboriginal Syllabics Extended":r=>r>=6320&&r<=6399,"General Punctuation":r=>r>=8192&&r<=8303,"Letterlike Symbols":r=>r>=8448&&r<=8527,"Number Forms":r=>r>=8528&&r<=8591,"Miscellaneous Technical":r=>r>=8960&&r<=9215,"Control Pictures":r=>r>=9216&&r<=9279,"Optical Character Recognition":r=>r>=9280&&r<=9311,"Enclosed Alphanumerics":r=>r>=9312&&r<=9471,"Geometric Shapes":r=>r>=9632&&r<=9727,"Miscellaneous Symbols":r=>r>=9728&&r<=9983,"Miscellaneous Symbols and Arrows":r=>r>=11008&&r<=11263,"CJK Radicals Supplement":r=>r>=11904&&r<=12031,"Kangxi Radicals":r=>r>=12032&&r<=12255,"Ideographic Description Characters":r=>r>=12272&&r<=12287,"CJK Symbols and Punctuation":r=>r>=12288&&r<=12351,Hiragana:r=>r>=12352&&r<=12447,Katakana:r=>r>=12448&&r<=12543,Bopomofo:r=>r>=12544&&r<=12591,"Hangul Compatibility Jamo":r=>r>=12592&&r<=12687,Kanbun:r=>r>=12688&&r<=12703,"Bopomofo Extended":r=>r>=12704&&r<=12735,"CJK Strokes":r=>r>=12736&&r<=12783,"Katakana Phonetic Extensions":r=>r>=12784&&r<=12799,"Enclosed CJK Letters and Months":r=>r>=12800&&r<=13055,"CJK Compatibility":r=>r>=13056&&r<=13311,"CJK Unified Ideographs Extension A":r=>r>=13312&&r<=19903,"Yijing Hexagram Symbols":r=>r>=19904&&r<=19967,"CJK Unified Ideographs":r=>r>=19968&&r<=40959,"Yi Syllables":r=>r>=40960&&r<=42127,"Yi Radicals":r=>r>=42128&&r<=42191,"Hangul Jamo Extended-A":r=>r>=43360&&r<=43391,"Hangul Syllables":r=>r>=44032&&r<=55215,"Hangul Jamo Extended-B":r=>r>=55216&&r<=55295,"Private Use Area":r=>r>=57344&&r<=63743,"CJK Compatibility Ideographs":r=>r>=63744&&r<=64255,"Arabic Presentation Forms-A":r=>r>=64336&&r<=65023,"Vertical Forms":r=>r>=65040&&r<=65055,"CJK Compatibility Forms":r=>r>=65072&&r<=65103,"Small Form Variants":r=>r>=65104&&r<=65135,"Arabic Presentation Forms-B":r=>r>=65136&&r<=65279,"Halfwidth and Fullwidth Forms":r=>r>=65280&&r<=65519,Osage:r=>r>=66736&&r<=66815,"CJK Unified Ideographs Extension B":r=>r>=131072&&r<=173791};function $h(r){for(const e of r)if(_l(e.charCodeAt(0)))return!0;return!1}function yf(r){for(const e of r)if(!Dd(e.charCodeAt(0)))return!1;return!0}function Dd(r){return!(mt.Arabic(r)||mt["Arabic Supplement"](r)||mt["Arabic Extended-A"](r)||mt["Arabic Presentation Forms-A"](r)||mt["Arabic Presentation Forms-B"](r))}function _l(r){return!(r!==746&&r!==747&&(r<4352||!(mt["Bopomofo Extended"](r)||mt.Bopomofo(r)||mt["CJK Compatibility Forms"](r)&&!(r>=65097&&r<=65103)||mt["CJK Compatibility Ideographs"](r)||mt["CJK Compatibility"](r)||mt["CJK Radicals Supplement"](r)||mt["CJK Strokes"](r)||!(!mt["CJK Symbols and Punctuation"](r)||r>=12296&&r<=12305||r>=12308&&r<=12319||r===12336)||mt["CJK Unified Ideographs Extension A"](r)||mt["CJK Unified Ideographs"](r)||mt["Enclosed CJK Letters and Months"](r)||mt["Hangul Compatibility Jamo"](r)||mt["Hangul Jamo Extended-A"](r)||mt["Hangul Jamo Extended-B"](r)||mt["Hangul Jamo"](r)||mt["Hangul Syllables"](r)||mt.Hiragana(r)||mt["Ideographic Description Characters"](r)||mt.Kanbun(r)||mt["Kangxi Radicals"](r)||mt["Katakana Phonetic Extensions"](r)||mt.Katakana(r)&&r!==12540||!(!mt["Halfwidth and Fullwidth Forms"](r)||r===65288||r===65289||r===65293||r>=65306&&r<=65310||r===65339||r===65341||r===65343||r>=65371&&r<=65503||r===65507||r>=65512&&r<=65519)||!(!mt["Small Form Variants"](r)||r>=65112&&r<=65118||r>=65123&&r<=65126)||mt["Unified Canadian Aboriginal Syllabics"](r)||mt["Unified Canadian Aboriginal Syllabics Extended"](r)||mt["Vertical Forms"](r)||mt["Yijing Hexagram Symbols"](r)||mt["Yi Syllables"](r)||mt["Yi Radicals"](r))))}function Rd(r){return!(_l(r)||function(e){return!!(mt["Latin-1 Supplement"](e)&&(e===167||e===169||e===174||e===177||e===188||e===189||e===190||e===215||e===247)||mt["General Punctuation"](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)||mt["Letterlike Symbols"](e)||mt["Number Forms"](e)||mt["Miscellaneous Technical"](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)||mt["Control Pictures"](e)&&e!==9251||mt["Optical Character Recognition"](e)||mt["Enclosed Alphanumerics"](e)||mt["Geometric Shapes"](e)||mt["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||mt["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||mt["CJK Symbols and Punctuation"](e)||mt.Katakana(e)||mt["Private Use Area"](e)||mt["CJK Compatibility Forms"](e)||mt["Small Form Variants"](e)||mt["Halfwidth and Fullwidth Forms"](e)||e===8734||e===8756||e===8757||e>=9984&&e<=10087||e>=10102&&e<=10131||e===65532||e===65533)}(r))}function xf(r){return mt.Arabic(r)||mt["Arabic Supplement"](r)||mt["Arabic Extended-A"](r)||mt["Arabic Presentation Forms-A"](r)||mt["Arabic Presentation Forms-B"](r)}function Ld(r){return r>=1424&&r<=2303||mt["Arabic Presentation Forms-A"](r)||mt["Arabic Presentation Forms-B"](r)}function vf(r,e){return!(!e&&Ld(r)||r>=2304&&r<=3583||r>=3840&&r<=4255||mt.Khmer(r))}function bf(r){for(const e of r)if(Ld(e.charCodeAt(0)))return!0;return!1}const Wh="deferred",Xh="loading",Yh="loaded";let Kh=null,ln="unavailable",qo=null;const As=function(r){r&&typeof r=="string"&&r.indexOf("NetworkError")>-1&&(ln="error"),Kh&&Kh(r)};function Ac(){Mc.fire(new Ro("pluginStateChange",{pluginStatus:ln,pluginURL:qo}))}const Mc=new ps,_a=function(){return ln},kd=function(){if(ln!==Wh||!qo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");ln=Xh,Ac(),qo&&Ys({url:qo},r=>{r?As(r):(ln=Yh,Ac())})},Sn={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>ln===Yh||Sn.applyArabicShaping!=null,isLoading:()=>ln===Xh,setState(r){ln=r.pluginStatus,qo=r.pluginURL},isParsed:()=>Sn.applyArabicShaping!=null&&Sn.processBidirectionalText!=null&&Sn.processStyledBidirectionalText!=null,getPluginURL:()=>qo};class li{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.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(e){return function(i,o){for(const a of i)if(!vf(a.charCodeAt(0),o))return!1;return!0}(e,Sn.isLoaded())}}class gl{constructor(e,i,o,a){this.property=e,this.value=i,this.expression=function(h,u,f,_){if(wc(h))return new pl(h,u);if(Sc(h)||Array.isArray(h)&&h.length>0){const y=dl(h,u,f,_);if(y.result==="error")throw new Error(y.value.map(v=>`${v.key}: ${v.message}`).join(", "));return y.value}{let y=h;return typeof h=="string"&&u.type==="color"&&(y=ei.parse(h)),{kind:"constant",configDependencies:new Set,evaluate:()=>y}}}(i===void 0?e.specification.default:i,e.specification,o,a)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(e,i,o){return this.property.possiblyEvaluate(this,e,i,o)}}class Zo{constructor(e,i,o){this.property=e,this.value=new gl(e,void 0,i,o)}transitioned(e,i){return new Fd(this.property,this.value,i,ye({},e.transition,this.transition),e.now)}untransitioned(){return new Fd(this.property,this.value,null,{},0)}}class Od{constructor(e,i,o){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._scope=i,this._options=o,this.configDependencies=new Set}getValue(e){return Bt(this._values[e].value.value)}setValue(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new Zo(this._values[e].property,this._scope,this._options)),this._values[e].value=new gl(this._values[e].property,i===null?void 0:Bt(i),this._scope,this._options),this._values[e].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].value.expression.configDependencies]))}setTransitionOrValue(e,i){i&&(this._options=i);const o=this._properties.properties;if(e)for(const a in e){const h=e[a];if(a.endsWith("-transition")){const u=a.slice(0,-11);o[u]&&this.setTransition(u,h)}else o.hasOwnProperty(a)&&this.setValue(a,h)}}getTransition(e){return Bt(this._values[e].transition)}setTransition(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new Zo(this._values[e].property)),this._values[e].transition=Bt(i)||void 0}serialize(){const e={};for(const i of Object.keys(this._values)){const o=this.getValue(i);o!==void 0&&(e[i]=o);const a=this.getTransition(i);a!==void 0&&(e[`${i}-transition`]=a)}return e}transitioned(e,i){const o=new Bd(this._properties);for(const a of Object.keys(this._values))o._values[a]=this._values[a].transitioned(e,i._values[a]);return o}untransitioned(){const e=new Bd(this._properties);for(const i of Object.keys(this._values))e._values[i]=this._values[i].untransitioned();return e}}class Fd{constructor(e,i,o,a,h){const u=a.delay||0,f=a.duration||0;h=h||0,this.property=e,this.value=i,this.begin=h+u,this.end=this.begin+f,e.specification.transition&&(a.delay||a.duration)&&(this.prior=o)}possiblyEvaluate(e,i,o){const a=e.now||0,h=this.value.possiblyEvaluate(e,i,o),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,o);{const f=(a-this.begin)/(this.end-this.begin);return this.property.interpolate(u.possiblyEvaluate(e,i,o),h,oe(f))}}return h}}class Bd{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,i,o){const a=new Ms(this._properties);for(const h of Object.keys(this._values))a._values[h]=this._values[h].possiblyEvaluate(e,i,o);return a}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class wf{constructor(e,i,o){this._properties=e,this._values=Object.create(e.defaultPropertyValues),this._scope=i,this._options=o,this.configDependencies=new Set}getValue(e){return Bt(this._values[e].value)}setValue(e,i){this._values[e]=new gl(this._values[e].property,i===null?void 0:Bt(i),this._scope,this._options),this._values[e].expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].expression.configDependencies]))}serialize(){const e={};for(const i of Object.keys(this._values)){const o=this.getValue(i);o!==void 0&&(e[i]=o)}return e}possiblyEvaluate(e,i,o){const a=new Ms(this._properties);for(const h of Object.keys(this._values))a._values[h]=this._values[h].possiblyEvaluate(e,i,o);return a}}class ga{constructor(e,i,o){this.property=e,this.value=i,this.parameters=o}isConstant(){return this.value.kind==="constant"}constantOr(e){return this.value.kind==="constant"?this.value.value:e}evaluate(e,i,o,a){return this.property.evaluate(this.value,this.parameters,e,i,o,a)}}class Ms{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class qe{constructor(e){this.specification=e}possiblyEvaluate(e,i){return e.expression.evaluate(i)}interpolate(e,i,o){const a=Jl[this.specification.type];return a?a(e,i,o):e}}class Qe{constructor(e,i){this.specification=e,this.overrides=i}possiblyEvaluate(e,i,o,a){return new ga(this,e.expression.kind==="constant"||e.expression.kind==="camera"?{kind:"constant",value:e.expression.evaluate(i,null,{},o,a)}:e.expression,i)}interpolate(e,i,o){if(e.value.kind!=="constant"||i.value.kind!=="constant")return e;if(e.value.value===void 0||i.value.value===void 0)return new ga(this,{kind:"constant",value:void 0},e.parameters);const a=Jl[this.specification.type];return a?new ga(this,{kind:"constant",value:a(e.value.value,i.value.value,o)},e.parameters):e}evaluate(e,i,o,a,h,u){return e.kind==="constant"?e.value:e.evaluate(i,o,a,h,u)}}class Cs{constructor(e){this.specification=e}possiblyEvaluate(e,i,o,a){return!!e.expression.evaluate(i,null,{},o,a)}interpolate(){return!1}}class Wi{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const i=new li(0,{});for(const o in e){const a=e[o];a.specification.overridable&&this.overridableProperties.push(o);const h=this.defaultPropertyValues[o]=new gl(a,void 0),u=this.defaultTransitionablePropertyValues[o]=new Zo(a);this.defaultTransitioningPropertyValues[o]=u.untransitioned(),this.defaultPossiblyEvaluatedValues[o]=h.possiblyEvaluate(i)}}}et(Qe,"DataDrivenProperty"),et(qe,"DataConstantProperty"),et(Cs,"ColorRampProperty");var me=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"]},"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}},"properties_light_ambient":{"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"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"]},"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"}}},"source_model":{"type":{"type":"enum","values":{"model":1,"batched-model":1}},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"}},"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"}},"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"]}}},"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":{}}},"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-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"}},"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"]}}},"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,"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,"maximum":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,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"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],"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,"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,"maximum":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,"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],"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},"transition":true},"high-color":{"type":"color","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"space-color":{"type":"color","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":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},"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},"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},"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},"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":{"floorplanFeaturesetId":{"type":"string","expression":{}},"buildingFeaturesetId":{"type":"string","expression":{}}},"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"]},"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","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","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"]},"transition":true},"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)","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)","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","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"]},"transition":true},"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","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-wall-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"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)","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"property-type":"data-driven"},"building-emissive-strength":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"}},"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","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"]},"transition":true},"line-gradient":{"type":"color","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","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"]}},"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)","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","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","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"],"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","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)","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"]},"transition":true},"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","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)","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","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"]}}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string"},"raster-particle-count":{"type":"number","default":512,"minimum":1},"raster-particle-color":{"type":"color","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","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-accent-color":{"type":"color","default":"#000000","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","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"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"],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]}},"sky-atmosphere-halo-color":{"type":"color","default":"white"},"sky-atmosphere-color":{"type":"color","default":"white"},"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"]},"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]}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"promoteId":{"*":{"type":"*"}}}');function Fn(r){return r instanceof Number||r instanceof String||r instanceof Boolean?r.valueOf():r}function Cc(r){if(Array.isArray(r))return r.map(Cc);if(r instanceof Object&&!(r instanceof Number||r instanceof String||r instanceof Boolean)){const e={};for(const i in r)e[i]=Cc(r[i]);return e}return Fn(r)}function Pc(r){if(r===!0||r===!1)return!0;if(!Array.isArray(r)||r.length===0)return!1;switch(r[0]){case"has":return r.length>=2&&r[1]!=="$id"&&r[1]!=="$type";case"in":return r.length>=3&&(typeof r[1]!="string"||Array.isArray(r[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return r.length!==3||Array.isArray(r[1])||Array.isArray(r[2]);case"any":case"all":for(const e of r.slice(1))if(!Pc(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}function Jh(r,e="",i=null,o="fill"){if(r==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};Pc(r)||(r=zc(r));const a=r;let h=!0;try{h=function(v){if(!ya(v))return v;let b=Cc(v);return Vd(b),b=Nd(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!