chunk-d134a92a.e5cabb63.js 99 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d134a92a"],{"0c53":function(t,e,i){"use strict";i.d(e,"a",(function(){return l})),i.d(e,"b",(function(){return h}));var n=i("b2cd"),r=i("c120");const s=128e3;let o=null,a=null;async function l(){return o||(o=u()),o}async function u(){const t=Object(r["a"])("esri-csp-restrictions")?await i.e("chunk-038b6711").then(i.bind(null,"a546")).then(t=>t.l):await i.e("chunk-47c1d7bd").then(i.bind(null,"cfdc")).then(t=>t.l);a=await t.load({locateFile:()=>Object(n["b"])("esri/core/libs/libtess/libtess.wasm")})}function h(t,e){const i=Math.max(t.length,s);return a.triangulate(t,e,i)}},"1d01":function(t,e,i){"use strict";i.d(e,"a",(function(){return c})),i.d(e,"b",(function(){return u})),i.d(e,"c",(function(){return h})),i.d(e,"d",(function(){return l}));Number.POSITIVE_INFINITY;const n=Math.PI,r=128/n,s=256/360,o=1/Math.LN2;function a(t,e){return(t%=e)>=0?t:t+e}function l(t){return a(t*r,256)}function u(t){return a(t*s,256)}function h(t){return Math.log(t)*o}function c(t,e,i){return t>=e&&t<=i||t>=i&&t<=e}},2629:function(t,e,i){"use strict";i.d(e,"a",(function(){return x}));var n=i("ab39"),r=i("8c81");function s(t,e){return t.x===e.x&&t.y===e.y}function o(t){if(!t)return;const e=t.length;if(e<=1)return;let i=0;for(let n=1;n<e;n++)s(t[n],t[i])||++i===n||(t[i]=t[n]);t.length=i+1}function a(t,e){return t.x=e.y,t.y=-e.x,t}function l(t,e){return t.x=-e.y,t.y=e.x,t}function u(t,e){return t.x=e.x,t.y=e.y,t}function h(t,e){return t.x=-e.x,t.y=-e.y,t}function c(t){return Math.sqrt(t.x*t.x+t.y*t.y)}function f(t,e){return t.x*e.y-t.y*e.x}function d(t,e){return t.x*e.x+t.y*e.y}function y(t,e,i,n){return t.x=e.x*i+e.y*n,t.y=e.x*n-e.y*i,t}class x{constructor(t,e,i){this.writeVertex=t,this.writeTriangle=e,this.canUseThinTessellation=i,this.prevNormal={x:void 0,y:void 0},this.nextNormal={x:void 0,y:void 0},this.textureNormalLeft={x:0,y:1},this.textureNormalRight={x:0,y:-1},this.textureNormal={x:void 0,y:void 0},this.joinNormal={x:void 0,y:void 0},this.inner={x:void 0,y:void 0},this.outer={x:void 0,y:void 0},this.roundStart={x:void 0,y:void 0},this.roundEnd={x:void 0,y:void 0},this.startBreak={x:void 0,y:void 0},this.endBreak={x:void 0,y:void 0},this.innerPrev={x:void 0,y:void 0},this.innerNext={x:void 0,y:void 0},this.bevelStart={x:void 0,y:void 0},this.bevelEnd={x:void 0,y:void 0},this.bevelMiddle={x:void 0,y:void 0}}tessellate(t,e){o(t),this.canUseThinTessellation&&e.halfWidth<r["O"]&&!e.offset?this._tessellateThin(t,e):this._tessellate(t,e)}_tessellateThin(t,e){if(t.length<2)return;const i=e.wrapDistance||65535;let n=e.initialDistance||0,r=!1,s=t[0].x,o=t[0].y;const a=t.length;for(let l=1;l<a;++l){r&&(r=!1,n=0);let e=t[l].x,a=t[l].y,u=e-s,h=a-o,c=Math.sqrt(u*u+h*h);if(u/=c,h/=c,n+c>i){r=!0;const t=(i-n)/c;c=i-n,e=(1-t)*s+t*e,a=(1-t)*o+t*a,--l}const f=this.writeVertex(s,o,0,0,u,h,h,-u,0,-1,n),d=this.writeVertex(s,o,0,0,u,h,-h,u,0,1,n);n+=c;const y=this.writeVertex(e,a,0,0,u,h,h,-u,0,-1,n),x=this.writeVertex(e,a,0,0,u,h,-h,u,0,1,n);this.writeTriangle(f,d,y),this.writeTriangle(d,y,x),s=e,o=a}}_tessellate(t,e){const i=t[0],r=t[t.length-1],o=s(i,r),x=o?3:2;if(t.length<x)return;const p=e.pixelCoordRatio,m=null!=e.capType?e.capType:n["d"].BUTT,g=null!=e.joinType?e.joinType:n["o"].MITER,_=null!=e.miterLimit?Math.min(e.miterLimit,4):2,b=null!=e.roundLimit?Math.min(e.roundLimit,1.05):1.05,T=null!=e.halfWidth?e.halfWidth:2,I=!!e.textured;let L,w,v=null,P=null;const A=this.prevNormal,M=this.nextNormal;let B=-1,R=-1;const E=this.joinNormal;let S,C;const O=this.textureNormalLeft,D=this.textureNormalRight,N=this.textureNormal;let V=-1,k=-1;const F=e.wrapDistance||65535;let U=e.initialDistance||0;const z=this.writeVertex,G=this.writeTriangle,H=function(t,e,i,n,r,s){const o=z(L,w,S,C,i,n,t,e,r,s,U);return V>=0&&k>=0&&o>=0&&G(V,k,o),V=k,k=o,o};o&&(v=t[t.length-2],M.x=r.x-v.x,M.y=r.y-v.y,R=c(M),M.x/=R,M.y/=R);let j=!1;for(let s=0;s<t.length;++s){if(j&&(j=!1,U=0),v&&(A.x=-M.x,A.y=-M.y,B=R,U+B>F&&(j=!0)),j){const e=(F-U)/B;B=F-U,v={x:(1-e)*v.x+e*t[s].x,y:(1-e)*v.y+e*t[s].y},--s}else v=t[s];L=v.x,w=v.y;const e=s<=0&&!j,i=s===t.length-1;if(e||(U+=B),P=i?o?t[1]:null:t[s+1],P?(M.x=P.x-L,M.y=P.y-w,R=c(M),M.x/=R,M.y/=R):(M.x=void 0,M.y=void 0),!o){if(e){l(E,M),S=E.x,C=E.y,m===n["d"].SQUARE&&(H(-M.y-M.x,M.x-M.y,M.x,M.y,0,-1),H(M.y-M.x,-M.x-M.y,M.x,M.y,0,1)),m===n["d"].ROUND&&(H(-M.y-M.x,M.x-M.y,M.x,M.y,-1,-1),H(M.y-M.x,-M.x-M.y,M.x,M.y,-1,1)),m!==n["d"].ROUND&&m!==n["d"].BUTT||(H(-M.y,M.x,M.x,M.y,0,-1),H(M.y,-M.x,M.x,M.y,0,1));continue}if(i){a(E,A),S=E.x,C=E.y,m!==n["d"].ROUND&&m!==n["d"].BUTT||(H(A.y,-A.x,-A.x,-A.y,0,-1),H(-A.y,A.x,-A.x,-A.y,0,1)),m===n["d"].SQUARE&&(H(A.y-A.x,-A.x-A.y,-A.x,-A.y,0,-1),H(-A.y-A.x,A.x-A.y,-A.x,-A.y,0,1)),m===n["d"].ROUND&&(H(A.y-A.x,-A.x-A.y,-A.x,-A.y,1,-1),H(-A.y-A.x,A.x-A.y,-A.x,-A.y,1,1));continue}}let r,x,z=-f(A,M);if(Math.abs(z)<.01)d(A,M)>0?(E.x=A.x,E.y=A.y,z=1,r=Number.MAX_VALUE,x=!0):(l(E,M),z=1,r=1,x=!1);else{E.x=(A.x+M.x)/z,E.y=(A.y+M.y)/z,r=c(E);const t=(r-1)*T*p;x=r>4||t>B&&t>R}S=E.x,C=E.y;let G=g;switch(g){case n["o"].BEVEL:r<1.05&&(G=n["o"].MITER);break;case n["o"].ROUND:r<b&&(G=n["o"].MITER);break;case n["o"].MITER:r>_&&(G=n["o"].BEVEL)}switch(G){case n["o"].MITER:if(H(E.x,E.y,-A.x,-A.y,0,-1),H(-E.x,-E.y,-A.x,-A.y,0,1),i)break;if(I){const t=j?0:U;V=this.writeVertex(L,w,S,C,M.x,M.y,E.x,E.y,0,-1,t),k=this.writeVertex(L,w,S,C,M.x,M.y,-E.x,-E.y,0,1,t)}break;case n["o"].BEVEL:{const t=z<0;let e,n,r,s;if(t){const t=V;V=k,k=t,e=O,n=D}else e=D,n=O;if(x)r=t?l(this.innerPrev,A):a(this.innerPrev,A),s=t?a(this.innerNext,M):l(this.innerNext,M);else{const e=t?h(this.inner,E):u(this.inner,E);r=e,s=e}const o=t?a(this.bevelStart,A):l(this.bevelStart,A);H(r.x,r.y,-A.x,-A.y,e.x,e.y);const c=H(o.x,o.y,-A.x,-A.y,n.x,n.y);if(i)break;const f=t?l(this.bevelEnd,M):a(this.bevelEnd,M);if(x){const t=this.writeVertex(L,w,S,C,-A.x,-A.y,0,0,0,0,U);V=this.writeVertex(L,w,S,C,M.x,M.y,s.x,s.y,e.x,e.y,U),k=this.writeVertex(L,w,S,C,M.x,M.y,f.x,f.y,n.x,n.y,U),this.writeTriangle(c,t,k)}else{if(I){const t=this.bevelMiddle;t.x=(o.x+f.x)/2,t.y=(o.y+f.y)/2,y(N,t,-A.x,-A.y),H(t.x,t.y,-A.x,-A.y,N.x,N.y),y(N,t,M.x,M.y),V=this.writeVertex(L,w,S,C,M.x,M.y,t.x,t.y,N.x,N.y,U),k=this.writeVertex(L,w,S,C,M.x,M.y,s.x,s.y,e.x,e.y,U)}else{const t=V;V=k,k=t}H(f.x,f.y,M.x,M.y,n.x,n.y)}if(t){const t=V;V=k,k=t}break}case n["o"].ROUND:{const t=z<0;let e,n;if(t){const t=V;V=k,k=t,e=O,n=D}else e=D,n=O;const s=t?h(this.inner,E):u(this.inner,E);let o,c;x?(o=t?l(this.innerPrev,A):a(this.innerPrev,A),c=t?a(this.innerNext,M):l(this.innerNext,M)):(o=s,c=s);const f=t?a(this.roundStart,A):l(this.roundStart,A),p=t?l(this.roundEnd,M):a(this.roundEnd,M),m=H(o.x,o.y,-A.x,-A.y,e.x,e.y),g=H(f.x,f.y,-A.x,-A.y,n.x,n.y);if(i)break;const _=this.writeVertex(L,w,S,C,-A.x,-A.y,0,0,0,0,U);x||this.writeTriangle(V,k,_);const b=h(this.outer,s),T=this.writeVertex(L,w,S,C,M.x,M.y,p.x,p.y,n.x,n.y,U);let v,P;const B=r>2;if(B){let e;r!==Number.MAX_VALUE?(b.x/=r,b.y/=r,e=d(A,b),e=(r*(e*e-1)+1)/e):e=-1,v=t?a(this.startBreak,A):l(this.startBreak,A),v.x+=A.x*e,v.y+=A.y*e,P=t?l(this.endBreak,M):a(this.endBreak,M),P.x+=M.x*e,P.y+=M.y*e}y(N,b,-A.x,-A.y);const R=this.writeVertex(L,w,S,C,-A.x,-A.y,b.x,b.y,N.x,N.y,U);y(N,b,M.x,M.y);const F=I?this.writeVertex(L,w,S,C,M.x,M.y,b.x,b.y,N.x,N.y,U):R,G=_,j=I?this.writeVertex(L,w,S,C,M.x,M.y,0,0,0,0,U):_;let W=-1,q=-1;if(B&&(y(N,v,-A.x,-A.y),W=this.writeVertex(L,w,S,C,-A.x,-A.y,v.x,v.y,N.x,N.y,U),y(N,P,M.x,M.y),q=this.writeVertex(L,w,S,C,M.x,M.y,P.x,P.y,N.x,N.y,U)),I?B?(this.writeTriangle(G,g,W),this.writeTriangle(G,W,R),this.writeTriangle(j,F,q),this.writeTriangle(j,q,T)):(this.writeTriangle(G,g,R),this.writeTriangle(j,F,T)):B?(this.writeTriangle(_,g,W),this.writeTriangle(_,W,q),this.writeTriangle(_,q,T)):(this.writeTriangle(_,g,R),this.writeTriangle(_,F,T)),x?(V=this.writeVertex(L,w,S,C,M.x,M.y,c.x,c.y,e.x,e.y,U),k=T):(V=I?this.writeVertex(L,w,S,C,M.x,M.y,c.x,c.y,e.x,e.y,U):m,this.writeTriangle(V,j,T),k=T),t){const t=V;V=k,k=t}break}}}}}},"2da5":function(t,e,i){"use strict";i.d(e,"a",(function(){return u})),i.d(e,"b",(function(){return l}));var n,r=i("8c81"),s=i("3976"),o=i("1d01");class a{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class l{constructor(t,e,i,n=8,s=8){this.lines=[],this.starts=[],this.validateTessellation=!0,this.pixelRatio=n,this.pixelMargin=s,this.tileSize=r["P"]*n,this.dz=t,this.yPos=e,this.xPos=i}setPixelMargin(t){t!==this.pixelMargin&&(this.pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this.finalRatio=this.tileSize/t*(1<<this.dz);let e=this.pixelRatio*this.pixelMargin;e/=this.finalRatio;const i=t>>this.dz;e>i&&(e=i),this.margin=e,this.xmin=i*this.xPos-e,this.ymin=i*this.yPos-e,this.xmax=this.xmin+i+2*e,this.ymax=this.ymin+i+2*e}reset(t){this.type=t,this.lines=[],this.starts=[],this.line=null,this.start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new s["b"](t,e),this._firstPt=new s["b"](t,e),this._dist=0}lineTo(t,e){const i=this._isIn(t,e),n=new s["b"](t,e),r=s["b"].distance(this._prevPt,n);let o,l,u,h,c,f,d,y;if(i)this._prevIsIn?this._lineTo(t,e,!0):(o=this._prevPt,l=n,u=this._intersect(l,o),this.start=this._dist+r*(1-this._r),this._lineTo(u.x,u.y,!0),this._lineTo(l.x,l.y,!0));else if(this._prevIsIn)l=this._prevPt,o=n,u=this._intersect(l,o),this._lineTo(u.x,u.y,!0),this._lineTo(o.x,o.y,!1);else{const t=this._prevPt,e=n;if(t.x<=this.xmin&&e.x<=this.xmin||t.x>=this.xmax&&e.x>=this.xmax||t.y<=this.ymin&&e.y<=this.ymin||t.y>=this.ymax&&e.y>=this.ymax)this._lineTo(e.x,e.y,!1);else{const i=[];if((t.x<this.xmin&&e.x>this.xmin||t.x>this.xmin&&e.x<this.xmin)&&(h=(this.xmin-t.x)/(e.x-t.x),y=t.y+h*(e.y-t.y),y<=this.ymin?f=!1:y>=this.ymax?f=!0:i.push(new a(h,this.xmin,y))),(t.x<this.xmax&&e.x>this.xmax||t.x>this.xmax&&e.x<this.xmax)&&(h=(this.xmax-t.x)/(e.x-t.x),y=t.y+h*(e.y-t.y),y<=this.ymin?f=!1:y>=this.ymax?f=!0:i.push(new a(h,this.xmax,y))),(t.y<this.ymin&&e.y>this.ymin||t.y>this.ymin&&e.y<this.ymin)&&(h=(this.ymin-t.y)/(e.y-t.y),d=t.x+h*(e.x-t.x),d<=this.xmin?c=!1:d>=this.xmax?c=!0:i.push(new a(h,d,this.ymin))),(t.y<this.ymax&&e.y>this.ymax||t.y>this.ymax&&e.y<this.ymax)&&(h=(this.ymax-t.y)/(e.y-t.y),d=t.x+h*(e.x-t.x),d<=this.xmin?c=!1:d>=this.xmax?c=!0:i.push(new a(h,d,this.ymax))),0===i.length)c?f?this._lineTo(this.xmax,this.ymax,!0):this._lineTo(this.xmax,this.ymin,!0):f?this._lineTo(this.xmin,this.ymax,!0):this._lineTo(this.xmin,this.ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this.start=this._dist+r*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this.start=this._dist+r*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=r,this._prevIsIn=i,this._prevPt=n}close(){if(this.line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const i=this.line;let n=i.length;for(;n>=4&&(i[0].x===i[1].x&&i[0].x===i[n-2].x||i[0].y===i[1].y&&i[0].y===i[n-2].y);)i.pop(),i[0].x=i[n-2].x,i[0].y=i[n-2].y,--n}}result(t=!0){return this._pushLine(),0===this.lines.length?null:(this.type===s["a"].Polygon&&t&&h.simplify(this.tileSize,this.margin*this.finalRatio,this.lines),this.lines)}resultWithStarts(){if(this.type!==s["a"].LineString)throw new Error("Only valid for lines");this._pushLine();const t=this.lines,e=t.length;if(0===e)return null;const i=[];for(let n=0;n<e;n++)i.push({line:t[n],start:this.starts[n]||0});return i}_isIn(t,e){return t>=this.xmin&&t<=this.xmax&&e>=this.ymin&&e<=this.ymax}_intersect(t,e){let i,n,r;if(e.x>=this.xmin&&e.x<=this.xmax)n=e.y<=this.ymin?this.ymin:this.ymax,r=(n-t.y)/(e.y-t.y),i=t.x+r*(e.x-t.x);else if(e.y>=this.ymin&&e.y<=this.ymax)i=e.x<=this.xmin?this.xmin:this.xmax,r=(i-t.x)/(e.x-t.x),n=t.y+r*(e.y-t.y);else{n=e.y<=this.ymin?this.ymin:this.ymax,i=e.x<=this.xmin?this.xmin:this.xmax;const s=(i-t.x)/(e.x-t.x),o=(n-t.y)/(e.y-t.y);s<o?(r=s,n=t.y+s*(e.y-t.y)):(r=o,i=t.x+o*(e.x-t.x))}return this._r=r,new s["b"](i,n)}_pushLine(){this.line&&(this.type===s["a"].Point?this.line.length>0&&(this.lines.push(this.line),this.starts.push(this.start)):this.type===s["a"].LineString?this.line.length>1&&(this.lines.push(this.line),this.starts.push(this.start)):this.type===s["a"].Polygon&&this.line.length>3&&(this.lines.push(this.line),this.starts.push(this.start))),this.line=[],this.start=0}_moveTo(t,e,i){this.type!==s["a"].Polygon?i&&(t=Math.round((t-(this.xmin+this.margin))*this.finalRatio),e=Math.round((e-(this.ymin+this.margin))*this.finalRatio),this.line.push(new s["b"](t,e))):(i||(t<this.xmin&&(t=this.xmin),t>this.xmax&&(t=this.xmax),e<this.ymin&&(e=this.ymin),e>this.ymax&&(e=this.ymax)),t=Math.round((t-(this.xmin+this.margin))*this.finalRatio),e=Math.round((e-(this.ymin+this.margin))*this.finalRatio),this.line.push(new s["b"](t,e)),this._is_h=!1,this._is_v=!1)}_lineTo(t,e,i){let n,r;if(this.type!==s["a"].Polygon)if(i){if(t=Math.round((t-(this.xmin+this.margin))*this.finalRatio),e=Math.round((e-(this.ymin+this.margin))*this.finalRatio),this.line.length>0&&(n=this.line[this.line.length-1],n.equals(t,e)))return;this.line.push(new s["b"](t,e))}else this.line&&this.line.length>0&&this._pushLine();else if(i||(t<this.xmin&&(t=this.xmin),t>this.xmax&&(t=this.xmax),e<this.ymin&&(e=this.ymin),e>this.ymax&&(e=this.ymax)),t=Math.round((t-(this.xmin+this.margin))*this.finalRatio),e=Math.round((e-(this.ymin+this.margin))*this.finalRatio),this.line&&this.line.length>0){n=this.line[this.line.length-1];const i=n.x===t,o=n.y===e;if(i&&o)return;this._is_h&&i||this._is_v&&o?(n.x=t,n.y=e,r=this.line[this.line.length-2],r.x===t&&r.y===e?(this.line.pop(),this.line.length<=1?(this._is_h=!1,this._is_v=!1):(r=this.line[this.line.length-2],this._is_h=r.x===t,this._is_v=r.y===e)):(this._is_h=r.x===t,this._is_v=r.y===e)):(this.line.push(new s["b"](t,e)),this._is_h=i,this._is_v=o)}else this.line.push(new s["b"](t,e))}}class u{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this.lines=[],this.line=null}moveTo(t,e){this.line&&this.lines.push(this.line),this.line=[];const i=this._ratio;this.line.push(new s["b"](t*i,e*i))}lineTo(t,e){const i=this._ratio;this.line.push(new s["b"](t*i,e*i))}close(){const t=this.line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this.line&&this.lines.push(this.line),0===this.lines.length?null:this.lines}}!function(t){t[t.sideLeft=0]="sideLeft",t[t.sideRight=1]="sideRight",t[t.sideTop=2]="sideTop",t[t.sideBottom=3]="sideBottom"}(n||(n={}));class h{static simplify(t,e,i){if(!i)return;const r=-e,s=t+e,o=-e,a=t+e,l=[],u=[],c=i.length;for(let h=0;h<c;++h){const t=i[h];if(!t||t.length<2)continue;let e,c=t[0];const f=t.length;for(let i=1;i<f;++i)e=t[i],c.x===e.x&&(c.x<=r&&(c.y>e.y?(l.push(h),l.push(i),l.push(n.sideLeft),l.push(-1)):(u.push(h),u.push(i),u.push(n.sideLeft),u.push(-1))),c.x>=s&&(c.y<e.y?(l.push(h),l.push(i),l.push(n.sideRight),l.push(-1)):(u.push(h),u.push(i),u.push(n.sideRight),u.push(-1)))),c.y===e.y&&(c.y<=o&&(c.x<e.x?(l.push(h),l.push(i),l.push(n.sideTop),l.push(-1)):(u.push(h),u.push(i),u.push(n.sideTop),u.push(-1))),c.y>=a&&(c.x>e.x?(l.push(h),l.push(i),l.push(n.sideBottom),l.push(-1)):(u.push(h),u.push(i),u.push(n.sideBottom),u.push(-1)))),c=e}if(0===l.length||0===u.length)return;h.fillParent(i,u,l),h.fillParent(i,l,u);const f=[];h.calcDeltas(f,u,l),h.calcDeltas(f,l,u),h.addDeltas(f,i)}static fillParent(t,e,i){const r=i.length,s=e.length;for(let a=0;a<s;a+=4){const s=e[a],l=e[a+1],u=e[a+2],h=t[s][l-1],c=t[s][l];let f=8092,d=-1;for(let e=0;e<r;e+=4){if(i[e+2]!==u)continue;const r=i[e],s=i[e+1],a=t[r][s-1],l=t[r][s];switch(u){case n.sideLeft:case n.sideRight:if(Object(o["a"])(h.y,a.y,l.y)&&Object(o["a"])(c.y,a.y,l.y)){const t=Math.abs(l.y-a.y);t<f&&(f=t,d=e)}break;case n.sideTop:case n.sideBottom:if(Object(o["a"])(h.x,a.x,l.x)&&Object(o["a"])(c.x,a.x,l.x)){const t=Math.abs(l.x-a.x);t<f&&(f=t,d=e)}}}e[a+3]=d}}static calcDeltas(t,e,i){const n=e.length;for(let r=0;r<n;r+=4){const n=[],s=h.calcDelta(r,e,i,n);t.push(e[r]),t.push(e[r+1]),t.push(e[r+2]),t.push(s)}}static calcDelta(t,e,i,n){const r=e[t+3];if(-1===r)return 0;const s=n.length;return s>1&&n[s-2]===r?0:(n.push(r),h.calcDelta(r,i,e,n)+1)}static addDeltas(t,e){const i=t.length;let r=0;for(let n=0;n<i;n+=4){const e=t[n+3];e>r&&(r=e)}for(let s=0;s<i;s+=4){const i=e[t[s]],o=t[s+1],a=r-t[s+3];switch(t[s+2]){case n.sideLeft:i[o-1].x-=a,i[o].x-=a,1===o&&(i[i.length-1].x-=a),o===i.length-1&&(i[0].x-=a);break;case n.sideRight:i[o-1].x+=a,i[o].x+=a,1===o&&(i[i.length-1].x+=a),o===i.length-1&&(i[0].x+=a);break;case n.sideTop:i[o-1].y-=a,i[o].y-=a,1===o&&(i[i.length-1].y-=a),o===i.length-1&&(i[0].y-=a);break;case n.sideBottom:i[o-1].y+=a,i[o].y+=a,1===o&&(i[i.length-1].y+=a),o===i.length-1&&(i[0].y+=a)}}}}},"3b19":function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"d",(function(){return r})),i.d(e,"e",(function(){return f})),i.d(e,"f",(function(){return c})),i.d(e,"g",(function(){return u})),i.d(e,"h",(function(){return h}));const n=Number.POSITIVE_INFINITY,r=Math.PI,s=2*r,o=128/r,a=r/180,l=1/Math.LN2;function u(t,e){return(t%=e)>=0?t:t+e}function h(t){return u(t*o,256)}function c(t){return Math.log(t)*l}function f(t,e,i){return t*(1-i)+e*i}},"54b6":function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return ut}));var n=i("f4cc"),r=i("ff93"),s=i("b2b2"),o=i("3b19");function a(t){return 746===t||747===t||!(t<4352)&&(t>=12704&&t<=12735||t>=12544&&t<=12591||t>=65072&&t<=65103&&!(t>=65097&&t<=65103)||t>=63744&&t<=64255||t>=13056&&t<=13311||t>=11904&&t<=12031||t>=12736&&t<=12783||t>=12288&&t<=12351&&!(t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=12800&&t<=13055||t>=12592&&t<=12687||t>=43360&&t<=43391||t>=55216&&t<=55295||t>=4352&&t<=4607||t>=44032&&t<=55215||t>=12352&&t<=12447||t>=12272&&t<=12287||t>=12688&&t<=12703||t>=12032&&t<=12255||t>=12784&&t<=12799||t>=12448&&t<=12543&&12540!==t||t>=65280&&t<=65519&&!(65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||t>=65104&&t<=65135&&!(t>=65112&&t<=65118||t>=65123&&t<=65126)||t>=5120&&t<=5759||t>=6320&&t<=6399||t>=65040&&t<=65055||t>=19904&&t<=19967||t>=40960&&t<=42127||t>=42128&&t<=42191)}function l(t){return!(t<11904)&&(t>=12704&&t<=12735||t>=12544&&t<=12591||t>=65072&&t<=65103||t>=63744&&t<=64255||t>=13056&&t<=13311||t>=11904&&t<=12031||t>=12736&&t<=12783||t>=12288&&t<=12351||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=12800&&t<=13055||t>=65280&&t<=65519||t>=12352&&t<=12447||t>=12272&&t<=12287||t>=12032&&t<=12255||t>=12784&&t<=12799||t>=12448&&t<=12543||t>=65040&&t<=65055||t>=42128&&t<=42191||t>=40960&&t<=42127)}function u(t){switch(t){case 10:case 32:case 38:case 40:case 41:case 43:case 45:case 47:case 173:case 183:case 8203:case 8208:case 8211:case 8231:return!0}return!1}function h(t){switch(t){case 9:case 10:case 11:case 12:case 13:case 32:return!0}return!1}var c=i("a9c0");const f=24,d=17;class y{constructor(t,e,i,n,r,s,o){this._glyphItems=t,this._maxWidth=e,this._lineHeight=i,this._letterSpacing=n,this._hAnchor=r,this._vAnchor=s,this._justify=o}getShaping(t,e,i){const n=this._letterSpacing,r=this._lineHeight,s=this._justify,o=this._maxWidth,c=[];let f=0,d=0;const y=t.length;for(let l=0;l<y;l++){const e=t.charCodeAt(l),r=i&&a(e);let s;for(const t of this._glyphItems)if(s=t[e],s)break;c.push({codePoint:e,x:f,y:d,vertical:r,glyphMosaicItem:s}),s&&(f+=s.metrics.advance+n)}let x=f;o>0&&(x=f/Math.max(1,Math.ceil(f/o)));const p=t.indexOf("​")>=0,m=[];for(let a=0;a<y-1;a++){const t=c[a].codePoint,e=l(t);if(u(t)||e){let i=0;if(10===t)i-=1e4;else if(e&&p)i+=150;else{40!==t&&65288!==t||(i+=50);const e=c[a+1].codePoint;41!==e&&65289!==e||(i+=50)}m.push(this._buildBreak(a+1,c[a].x,x,m,i,!1))}}const g=this._optimalBreaks(this._buildBreak(y,f,x,m,0,!0));let _=0;const b=e?-r:r;let T=0;for(let a=0;a<g.length;a++){const t=g[a];let e=T;for(;e<t&&h(c[e].codePoint);)c[e].glyphMosaicItem=null,++e;let i=t-1;for(;i>e&&h(c[i].codePoint);)c[i].glyphMosaicItem=null,--i;if(e<=i){const t=c[e].x;for(let r=e;r<=i;r++)c[r].x-=t,c[r].y=d;let n=c[i].x;c[i].glyphMosaicItem&&(n+=c[i].glyphMosaicItem.metrics.advance),_=Math.max(n,_),s&&this._applyJustification(c,e,i)}T=t,d+=b}if(c.length>0){const t=g.length-1,i=(s-this._hAnchor)*_;let n=(-this._vAnchor*(t+1)+.5)*r;e&&t&&(n+=t*r);for(const e of c)e.x+=i,e.y+=n}return c.filter(t=>t.glyphMosaicItem)}static getTextBox(t,e){if(!t.length)return null;let i=1/0,n=1/0,r=0,s=0;for(const o of t){const t=o.glyphMosaicItem.metrics.advance,a=o.x,l=o.y-d,u=a+t,h=l+e;i=Math.min(i,a),r=Math.max(r,u),n=Math.min(n,l),s=Math.max(s,h)}return{x:i,y:n,width:r-i,height:s-n}}static getBox(t){if(!t.length)return null;let e=1/0,i=1/0,n=0,r=0;for(const s of t){const{height:t,left:o,top:a,width:l}=s.glyphMosaicItem.metrics,u=s.x,h=s.y-(t-Math.abs(a)),c=u+l+o,f=h+t;e=Math.min(e,u),n=Math.max(n,c),i=Math.min(i,h),r=Math.max(r,f)}return{x:e,y:i,width:n-e,height:r-i}}static addDecoration(t,e){const i=t.length;if(0===i)return;const n=3;let r=t[0].x+t[0].glyphMosaicItem.metrics.left,s=t[0].y;for(let a=1;a<i;a++){const i=t[a];if(i.y!==s){const o=t[a-1].x+t[a-1].glyphMosaicItem.metrics.left+t[a-1].glyphMosaicItem.metrics.width;t.push({codePoint:0,x:r,y:s+e-n,vertical:!1,glyphMosaicItem:{sdf:!0,rect:new c["a"](4,0,4,8),metrics:{width:o-r,height:2+2*n,left:0,top:0,advance:0},page:0,code:0}}),s=i.y,r=i.x+i.glyphMosaicItem.metrics.left}}const o=t[i-1].x+t[i-1].glyphMosaicItem.metrics.left+t[i-1].glyphMosaicItem.metrics.width;t.push({codePoint:0,x:r,y:s+e-n,vertical:!1,glyphMosaicItem:{sdf:!0,rect:new c["a"](4,0,4,8),metrics:{width:o-r,height:2+2*n,left:0,top:0,advance:0},page:0,code:0}})}_breakScore(t,e,i,n){const r=(t-e)*(t-e);return n?t<e?r/2:2*r:r+Math.abs(i)*i}_buildBreak(t,e,i,n,r,s){let o=null,a=this._breakScore(e,i,r,s);for(const l of n){const t=e-l.x,n=this._breakScore(t,i,r,s)+l.score;n<=a&&(o=l,a=n)}return{index:t,x:e,score:a,previousBreak:o}}_optimalBreaks(t){return t?this._optimalBreaks(t.previousBreak).concat(t.index):[]}_applyJustification(t,e,i){const n=t[i],r=n.vertical?f:n.glyphMosaicItem?n.glyphMosaicItem.metrics.advance:0,s=(n.x+r)*this._justify;for(let o=e;o<=i;o++)t[o].x-=s}}var x=i("db21"),p=i("ef89"),m=i("3976");const g=4096,_=8,b=.5,T=2;class I{constructor(t,e,i=0,n=-1,r=b){this.x=t,this.y=e,this.angle=i,this.segment=n,this.minzoom=r}}class L{constructor(t,e,i,n,r,s=b,a=o["c"]){this.anchor=t,this.labelAngle=e,this.glyphAngle=i,this.page=n,this.alternateVerticalGlyph=r,this.minzoom=s,this.maxzoom=a}}class w{constructor(t,e,i,n,r,s,o,a,l,u,h,c){this.tl=t,this.tr=e,this.bl=i,this.br=n,this.mosaicRect=r,this.labelAngle=s,this.minAngle=o,this.maxAngle=a,this.anchor=l,this.minzoom=u,this.maxzoom=h,this.page=c}}class v{constructor(t){this.shapes=t}}class P{getIconPlacement(t,e,i){const n=new m["b"](t.x,t.y),r=i.rotationAlignment===p["a"].MAP,s=i.keepUpright;let a=i.rotate*o["b"];r&&(a+=t.angle);const l=new v([]);return i.allowOverlap&&i.ignorePlacement||!x["c"]||(l.iconColliders=[]),this._addIconPlacement(l,n,e,i,a),r&&s&&this._addIconPlacement(l,n,e,i,a+o["d"]),l}_addIconPlacement(t,e,i,n,r){const s=i.pixelRatio,a=i.width/s,l=i.height/s,u=n.offset;let h=u[0],c=u[1];switch(n.anchor){case p["d"].CENTER:h-=a/2,c-=l/2;break;case p["d"].LEFT:c-=l/2;break;case p["d"].RIGHT:h-=a,c-=l/2;break;case p["d"].TOP:h-=a/2;break;case p["d"].BOTTOM:h-=a/2,c-=l;break;case p["d"].TOP_LEFT:break;case p["d"].BOTTOM_LEFT:c-=l;break;case p["d"].TOP_RIGHT:h-=a;break;case p["d"].BOTTOM_RIGHT:h-=a,c-=l}const f=i.rect,d=2/s,y=h-d,g=c-d,_=y+f.width/s,T=g+f.height/s,I=new m["b"](y,g),L=new m["b"](_,T),v=new m["b"](y,T),P=new m["b"](_,g);if(0!==r){const t=Math.cos(r),e=Math.sin(r);I.rotate(t,e),L.rotate(t,e),v.rotate(t,e),P.rotate(t,e)}const A=new w(I,P,v,L,f,r,0,256,e,b,o["c"],0);if(t.shapes.push(A),(!n.allowOverlap||!n.ignorePlacement)&&x["c"]){const i=n.size,s=n.padding,u={xTile:e.x,yTile:e.y,dxPixels:h*i-s,dyPixels:c*i-s,hard:!n.optional,partIndex:0,width:a*i+2*s,height:l*i+2*s,angle:r,minLod:b,maxLod:o["c"]};t.iconColliders.push(u)}}getTextPlacement(t,e,i,n){const r=new m["b"](t.x,t.y),s=n.rotate*o["b"],a=n.rotationAlignment===p["a"].MAP,l=n.keepUpright,u=n.padding;let h=b;const c=a?t.angle:0,x=t.segment>=0&&a,g=n.allowOverlap&&n.ignorePlacement?null:[],I=[],P=4,A=!x;let M=Number.POSITIVE_INFINITY,B=Number.NEGATIVE_INFINITY,R=M,E=B;const S=(x||a)&&l,C=n.size/f;let O=!1;for(const o of e)if(o.vertical){O=!0;break}let D,N=0,V=0;if(!x&&O){const t=y.getTextBox(e,n.lineHeight*f);switch(n.anchor){case p["d"].LEFT:N=t.height/2,V=-t.width/2;break;case p["d"].RIGHT:N=-t.height/2,V=t.width/2;break;case p["d"].TOP:N=t.height/2,V=t.width/2;break;case p["d"].BOTTOM:N=-t.height/2,V=-t.width/2;break;case p["d"].TOP_LEFT:N=t.height;break;case p["d"].BOTTOM_LEFT:V=-t.width;break;case p["d"].TOP_RIGHT:V=t.width;break;case p["d"].BOTTOM_RIGHT:N=-t.height}}N+=n.offset[0]*f,V+=n.offset[1]*f;for(const f of e){const e=f.glyphMosaicItem;if(!e||e.rect.isEmpty)continue;const y=e.rect,p=e.metrics,v=e.page;if(g&&A){if(void 0!==D&&D!==f.y){let e,i,r,a;O?(e=-E+N,i=M+V,r=E-R,a=B-M):(e=M+N,i=R+V,r=B-M,a=E-R);const l={xTile:t.x,yTile:t.y,dxPixels:e*C-u,dyPixels:i*C-u,hard:!n.optional,partIndex:1,width:r*C+2*u,height:a*C+2*u,angle:s,minLod:b,maxLod:o["c"]};g.push(l),M=Number.POSITIVE_INFINITY,B=Number.NEGATIVE_INFINITY,R=M,E=B}D=f.y}const k=[];if(x){const n=.5*e.metrics.width,r=(f.x+p.left-P+n)*C*_;if(h=this._placeGlyph(t,h,r,i,t.segment,1,f.vertical,v,k),l&&(h=this._placeGlyph(t,h,r,i,t.segment,-1,f.vertical,v,k)),h>=T)break}else k.push(new L(r,c,c,v,!1)),a&&l&&k.push(new L(r,c+o["d"],c+o["d"],v,!1));const F=f.x+p.left,U=f.y-d-p.top,z=F+p.width,G=U+p.height;let H,j,W,q,K,Y,Z,J;if(!x&&O)if(f.vertical){const t=(F+z)/2-p.height/2,e=(U+G)/2+p.width/2;H=new m["b"](-e-P+N,t-P+V),j=new m["b"](H.x+y.width,H.y+y.height),W=new m["b"](H.x,j.y),q=new m["b"](j.x,H.y)}else H=new m["b"](-U+P+N,F-P+V),j=new m["b"](H.x-y.height,H.y+y.width),W=new m["b"](j.x,H.y),q=new m["b"](H.x,j.y);else H=new m["b"](F-P+N,U-P+V),j=new m["b"](H.x+y.width,H.y+y.height),W=new m["b"](H.x,j.y),q=new m["b"](j.x,H.y);for(const i of k){let e,r,o,a;if(i.alternateVerticalGlyph){if(!K){const t=(U+G)/2+V;K=new m["b"]((F+z)/2+N-p.height/2-P,t+p.width/2+P),Y=new m["b"](K.x+y.height,K.y-y.width),Z=new m["b"](Y.x,K.y),J=new m["b"](K.x,Y.y)}e=K,r=Z,o=J,a=Y}else e=H,r=W,o=q,a=j;const l=U,h=G,c=i.glyphAngle+s;if(0!==c){const t=Math.cos(c),i=Math.sin(c);e=e.clone(),r=r.clone(),o=o.clone(),a=a.clone(),e.rotate(t,i),a.rotate(t,i),r.rotate(t,i),o.rotate(t,i)}let d=0,_=256;if(x&&O?f.vertical?i.alternateVerticalGlyph?(d=32,_=96):(d=224,_=32):(d=224,_=96):(d=192,_=64),I.push(new w(e,o,r,a,y,i.labelAngle,d,_,i.anchor,i.minzoom,i.maxzoom,i.page)),g&&(!S||this._legible(i.labelAngle)))if(A)F<M&&(M=F),l<R&&(R=l),z>B&&(B=z),h>E&&(E=h);else if(i.minzoom<T){const e={xTile:t.x,yTile:t.y,dxPixels:(F+N)*C-u,dyPixels:(l+N)*C-u,hard:!n.optional,partIndex:1,width:(z-F)*C+2*u,height:(h-l)*C+2*u,angle:c,minLod:i.minzoom,maxLod:i.maxzoom};g.push(e)}}}if(h>=T)return null;if(g&&A){let e,i,r,a;O?(e=-E+N,i=M+V,r=E-R,a=B-M):(e=M+N,i=R+V,r=B-M,a=E-R);const l={xTile:t.x,yTile:t.y,dxPixels:e*C-u,dyPixels:i*C-u,hard:!n.optional,partIndex:1,width:r*C+2*u,height:a*C+2*u,angle:s,minLod:b,maxLod:o["c"]};g.push(l)}const k=new v(I);return g&&g.length>0&&(k.textColliders=g),k}_legible(t){const e=Object(o["h"])(t);return e<65||e>=193}_placeGlyph(t,e,i,n,r,s,a,l,u){let h=s;const c=h<0?Object(o["g"])(t.angle+o["d"],o["a"]):t.angle;let f=0;i<0&&(h*=-1,i*=-1,f=o["d"]),h>0&&++r;let d=new m["b"](t.x,t.y),y=n[r],x=o["c"];if(n.length<=r)return x;for(;;){const t=y.x-d.x,s=y.y-d.y,p=Math.sqrt(t*t+s*s),m=Math.max(i/p,e),g=t/p,_=s/p,b=Object(o["g"])(Math.atan2(_,g)+f,o["a"]);if(u.push(new L(d,c,b,l,!1,m,x)),a&&u.push(new L(d,c,b,l,!0,m,x)),m<=e)return m;d=y.clone();do{if(r+=h,n.length<=r||r<0)return m;y=n[r]}while(d.isEqual(y));let T=y.x-d.x,I=y.y-d.y;const w=Math.sqrt(T*T+I*I);T*=p/w,I*=p/w,d.x-=T,d.y-=I,x=m}}}var A,M=i("013b"),B=i("0c53");!function(t){t[t.moveTo=1]="moveTo",t[t.lineTo=2]="lineTo",t[t.close=7]="close"}(A||(A={}));class R{constructor(t,e){this.values={};const i=e.keys,n=e.values;for(;t.next();)switch(t.tag()){case 1:this.id=t.getUInt64();break;case 2:{const e=t.getMessage(),r=this.values;for(;!e.empty();){const t=e.getUInt32(),s=e.getUInt32();r[i[t]]=n[s]}e.release();break}case 3:this.type=t.getUInt32();break;case 4:this._pbfGeometry=t.getMessage();break;default:t.skip()}}getGeometry(t){if(void 0!==this._geometry)return this._geometry;if(!this._pbfGeometry)return null;const e=this._pbfGeometry;let i,n;this._pbfGeometry=null,t?t.reset(this.type):i=[];let r,s=A.moveTo,o=0,a=0,l=0;for(;!e.empty();){if(0===o){const t=e.getUInt32();s=7&t,o=t>>3}switch(o--,s){case A.moveTo:a+=e.getSInt32(),l+=e.getSInt32(),t?t.moveTo(a,l):(n&&i.push(n),n=[],n.push(new m["b"](a,l)));break;case A.lineTo:a+=e.getSInt32(),l+=e.getSInt32(),t?t.lineTo(a,l):n.push(new m["b"](a,l));break;case A.close:t?t.close():n&&!n[0].equals(a,l)&&n.push(n[0].clone());break;default:throw e.release(),new Error("Invalid path operation")}}return t?r=t.result():(n&&i.push(n),r=i),e.release(),this._geometry=r,r}}var E=i("ae0b");class S extends E["a"]{constructor(){super(12)}add(t,e,i){const n=this.array;n.push(t),n.push(e),n.push(i)}}E["a"];class C{constructor(t){for(this.extent=4096,this.keys=[],this.values=[],this._pbfLayer=t.clone();t.next();)switch(t.tag()){case 1:this.name=t.getString();break;case 3:this.keys.push(t.getString());break;case 4:this.values.push(t.processMessage(C._parseValue));break;case 5:this.extent=t.getUInt32();break;default:t.skip()}}getData(){return this._pbfLayer}static _parseValue(t){for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getInt64();case 5:return t.getUInt64();case 6:return t.getSInt64();case 7:return t.getBool();default:t.skip()}return null}}class O extends E["a"]{constructor(t){super(t)}add(t,e,i,n,r,s,o,a,l,u,h,c){const f=this.array;let d=E["a"].i1616to32(t,e);f.push(d);const y=31;d=E["a"].i8888to32(Math.round(y*i),Math.round(y*n),Math.round(y*r),Math.round(y*s)),f.push(d),d=E["a"].i8888to32(Math.round(y*o),Math.round(y*a),Math.round(y*l),Math.round(y*u)),f.push(d),d=E["a"].i1616to32(h,0),f.push(d),c&&f.push(...c)}}class D extends E["a"]{constructor(t){super(t)}add(t,e,i){const n=this.array;n.push(E["a"].i1616to32(t,e)),i&&n.push(...i)}}class N extends E["a"]{constructor(t){super(t)}add(t,e,i,n,r,s,o){const a=this.array,l=this.index;let u=E["a"].i1616to32(t,e);a.push(u);const h=15;return u=E["a"].i8888to32(Math.round(h*i),Math.round(h*n),r,s),a.push(u),o&&a.push(...o),l}}class V extends E["a"]{constructor(t){super(t)}add(t,e,i,n,r,s,a,l,u,h,c,f){const d=this.array;let y=E["a"].i1616to32(t,e);d.push(y),y=E["a"].i1616to32(Math.round(8*i),Math.round(8*n)),d.push(y),y=E["a"].i8888to32(r/4,s/4,l,u),d.push(y),y=E["a"].i8888to32(0,Object(o["h"])(a),10*h,Math.min(10*c,255)),d.push(y),f&&d.push(...f)}}class k extends E["a"]{constructor(t){super(t)}add(t,e,i,n,r){const s=this.array,o=E["a"].i1616to32(2*t+i,2*e+n);s.push(o),r&&s.push(...r)}}class F{constructor(t,e,i){this.layerExtent=4096,this._features=[],this.layer=t,this.zoom=e,this._spriteInfo=i,this._filter=t.getFeatureFilter()}pushFeature(t){this._filter&&!this._filter.filter(t,this.zoom)||this._features.push(t)}hasFeatures(){return this._features.length>0}getResources(t,e,i){}}class U extends F{constructor(t,e,i,n,s){super(t,e,i),this.type=r["a"].CIRCLE,this._circleVertexBuffer=n,this._circleIndexBuffer=s}get circleIndexStart(){return this._circleIndexStart}get circleIndexCount(){return this._circleIndexCount}processFeatures(t){const e=this._circleVertexBuffer,i=this._circleIndexBuffer;this._circleIndexStart=3*i.index,this._circleIndexCount=0;const n=this.layer,r=this.zoom;t&&t.setExtent(this.layerExtent);for(const s of this._features){const o=s.getGeometry(t);if(!o)continue;const a=n.circleMaterial.encodeAttributes(s,r,n);for(const t of o)if(t)for(const n of t){const t=e.index;e.add(n.x,n.y,0,0,a),e.add(n.x,n.y,0,1,a),e.add(n.x,n.y,1,0,a),e.add(n.x,n.y,1,1,a),i.add(t+0,t+1,t+2),i.add(t+1,t+2,t+3),this._circleIndexCount+=6}}}serialize(){let t=6;t+=this.layerUIDs.length,t+=this._circleVertexBuffer.array.length,t+=this._circleIndexBuffer.array.length;const e=new Uint32Array(t),i=new Int32Array(e.buffer);let n=0;e[n++]=this.type,e[n++]=this.layerUIDs.length;for(let r=0;r<this.layerUIDs.length;r++)e[n++]=this.layerUIDs[r];e[n++]=this._circleIndexStart,e[n++]=this._circleIndexCount,e[n++]=this._circleVertexBuffer.array.length;for(let r=0;r<this._circleVertexBuffer.array.length;r++)i[n++]=this._circleVertexBuffer.array[r];e[n++]=this._circleIndexBuffer.array.length;for(let r=0;r<this._circleIndexBuffer.array.length;r++)e[n++]=this._circleIndexBuffer.array[r];return e.buffer}}var z=i("556f"),G=i("9812");class H extends F{constructor(t,e,i,n,s,o,a){super(t,e,i),this.type=r["a"].FILL,this._patternMap=new Map,this._fillVertexBuffer=n,this._fillIndexBuffer=s,this._outlineVertexBuffer=o,this._outlineIndexBuffer=a}get fillIndexStart(){return this._fillIndexStart}get fillIndexCount(){return this._fillIndexCount}get outlineIndexStart(){return this._outlineIndexStart}get outlineIndexCount(){return this._outlineIndexCount}getResources(t,e,i){const n=this.layer,r=this.zoom,s=n.getPaintProperty("fill-pattern");if(s)if(s.isDataDriven)for(const o of this._features)e(s.getValue(r,o),!0);else e(s.getValue(r),!0)}processFeatures(t){this._fillIndexStart=3*this._fillIndexBuffer.index,this._fillIndexCount=0,this._outlineIndexStart=3*this._outlineIndexBuffer.index,this._outlineIndexCount=0;const e=this.layer,i=this.zoom,{fillMaterial:n,outlineMaterial:r,hasDataDrivenFill:s,hasDataDrivenOutline:o}=e;t&&t.setExtent(this.layerExtent);const a=e.getPaintProperty("fill-pattern"),l=null==a?void 0:a.isDataDriven;let u=!a&&e.getPaintValue("fill-antialias",i);if(e.outlineUsesFillColor){if(u&&!e.hasDataDrivenOpacity){const t=e.getPaintValue("fill-opacity",i),n=e.getPaintValue("fill-opacity",i+1);t<1&&n<1&&(u=!1)}if(u&&!e.hasDataDrivenColor){const t=e.getPaintValue("fill-color",i),n=e.getPaintValue("fill-color",i+1);t[3]<1&&n[3]<1&&(u=!1)}}const h=this._features,c=null==t?void 0:t.validateTessellation;if(l){const s=[];for(const l of h){const h=a.getValue(i,l),f=this._spriteInfo[h];if(!f||!f.rect)continue;const d=n.encodeAttributes(l,i,e,f),y=u&&o?r.encodeAttributes(l,i,e):[],x=l.getGeometry(t);s.push({ddFillAttributes:d,ddOutlineAttributes:y,page:f.page,geometry:x}),s.sort((t,e)=>t.page-e.page);for(const{ddFillAttributes:t,ddOutlineAttributes:i,page:n,geometry:r}of s)this._processFeature(r,u,e.outlineUsesFillColor,t,i,c,n)}}else for(const f of h){const a=s?n.encodeAttributes(f,i,e):null,l=u&&o?r.encodeAttributes(f,i,e):null,h=f.getGeometry(t);this._processFeature(h,u,e.outlineUsesFillColor,a,l,c)}}serialize(){let t=10;t+=this.layerUIDs.length,t+=this._fillVertexBuffer.array.length,t+=this._fillIndexBuffer.array.length,t+=this._outlineVertexBuffer.array.length,t+=this._outlineIndexBuffer.array.length,t+=3*this._patternMap.size+1;const e=new Uint32Array(t),i=new Int32Array(e.buffer);let n=0;e[n++]=this.type,e[n++]=this.layerUIDs.length;for(let o=0;o<this.layerUIDs.length;o++)e[n++]=this.layerUIDs[o];e[n++]=this._fillIndexStart,e[n++]=this._fillIndexCount,e[n++]=this._outlineIndexStart,e[n++]=this._outlineIndexCount;const r=this._patternMap,s=r.size;if(e[n++]=s,s>0)for(const[o,[a,l]]of r)e[n++]=o,e[n++]=a,e[n++]=l;e[n++]=this._fillVertexBuffer.array.length;for(let o=0;o<this._fillVertexBuffer.array.length;o++)i[n++]=this._fillVertexBuffer.array[o];e[n++]=this._fillIndexBuffer.array.length;for(let o=0;o<this._fillIndexBuffer.array.length;o++)e[n++]=this._fillIndexBuffer.array[o];e[n++]=this._outlineVertexBuffer.array.length;for(let o=0;o<this._outlineVertexBuffer.array.length;o++)i[n++]=this._outlineVertexBuffer.array[o];e[n++]=this._outlineIndexBuffer.array.length;for(let o=0;o<this._outlineIndexBuffer.array.length;o++)e[n++]=this._outlineIndexBuffer.array[o];return e.buffer}_processFeature(t,e,i,n,r,s,o){if(!t)return;const a=t.length,l=!r||0===r.length;if(e&&(!i||l))for(let c=0;c<a;c++)this._processOutline(t[c],r);const u=32;let h;for(let c=0;c<a;c++){const e=H._area(t[c]);e>u?(void 0!==h&&this._processFill(t,h,n,s,o),h=[c]):e<-u&&void 0!==h&&h.push(c)}void 0!==h&&this._processFill(t,h,n,s,o)}_processOutline(t,e){const i=this._outlineVertexBuffer,n=this._outlineIndexBuffer,r=n.index;let s,o,a;const l=new m["b"](0,0),u=new m["b"](0,0),h=new m["b"](0,0);let c=-1,f=-1,d=-1,y=-1,x=-1,p=!1;const g=0;let _=t.length;if(_<2)return;const b=t[g];let T=t[_-1];for(;_&&T.isEqual(b);)--_,T=t[_-1];if(!(_-g<2)){for(let r=g;r<_;++r){r===g?(s=t[_-1],o=t[g],a=t[g+1],l.assignSub(o,s),l.normalize(),l.rightPerpendicular()):(s=o,o=a,a=r!==_-1?t[r+1]:t[g],l.assign(u));const m=this._isClipEdge(s,o);-1===y&&(p=m),u.assignSub(a,o),u.normalize(),u.rightPerpendicular();const b=l.x*u.y-l.y*u.x;h.assignAdd(l,u),h.normalize();const T=-h.x*-l.x+-h.y*-l.y;let I=Math.abs(0!==T?1/T:1);I>8&&(I=8),b>=0?(d=i.add(o.x,o.y,l.x,l.y,0,1,e),-1===y&&(y=d),c>=0&&f>=0&&d>=0&&!m&&n.add(c,f,d),f=i.add(o.x,o.y,I*-h.x,I*-h.y,0,-1,e),-1===x&&(x=f),c>=0&&f>=0&&d>=0&&!m&&n.add(c,f,d),c=f,f=d,d=i.add(o.x,o.y,h.x,h.y,0,1,e),c>=0&&f>=0&&d>=0&&!m&&n.add(c,f,d),f=i.add(o.x,o.y,u.x,u.y,0,1,e),c>=0&&f>=0&&d>=0&&!m&&n.add(c,f,d)):(d=i.add(o.x,o.y,I*h.x,I*h.y,0,1,e),-1===y&&(y=d),c>=0&&f>=0&&d>=0&&!m&&n.add(c,f,d),f=i.add(o.x,o.y,-l.x,-l.y,0,-1,e),-1===x&&(x=f),c>=0&&f>=0&&d>=0&&!m&&n.add(c,f,d),c=f,f=d,d=i.add(o.x,o.y,-h.x,-h.y,0,-1,e),c>=0&&f>=0&&d>=0&&!m&&n.add(c,f,d),c=i.add(o.x,o.y,-u.x,-u.y,0,-1,e),c>=0&&f>=0&&d>=0&&!m&&n.add(c,f,d))}c>=0&&f>=0&&y>=0&&!p&&n.add(c,f,y),c>=0&&y>=0&&x>=0&&!p&&n.add(c,x,y),this._outlineIndexCount+=3*(n.index-r)}}_processFill(t,e,i,n,r){let s;n=!0,e.length>1&&(s=[]);let o=0;for(const h of e)0!==o&&s.push(o),o+=t[h].length;const a=2*o,l=z["a"].acquire();for(const h of e){const e=t[h],i=e.length;for(let t=0;t<i;++t)l.push(e[t].x,e[t].y)}const u=Object(G["a"])(l,s,2);if(n&&G["a"].deviation(l,s,2,u)>0){const n=e.map(e=>t[e].length),{buffer:s,vertexCount:o}=Object(B["b"])(l,n);if(o>0){const t=this._fillVertexBuffer.index;for(let e=0;e<o;e++)this._fillVertexBuffer.add(s[2*e],s[2*e+1],i);for(let e=0;e<o;e+=3){const i=t+e;this._fillIndexBuffer.add(i,i+1,i+2)}if(void 0!==r){const t=this._patternMap,e=t.get(r);e?e[1]+=o:t.set(r,[this._fillIndexStart+this._fillIndexCount,o])}this._fillIndexCount+=o}}else{const t=u.length;if(t>0){const e=this._fillVertexBuffer.index;let n=0;for(;n<a;)this._fillVertexBuffer.add(l[n++],l[n++],i);let s=0;for(;s<t;)this._fillIndexBuffer.add(e+u[s++],e+u[s++],e+u[s++]);if(void 0!==r){const e=this._patternMap,i=e.get(r);i?i[1]+=t:e.set(r,[this._fillIndexStart+this._fillIndexCount,t])}this._fillIndexCount+=t}}z["a"].release(l)}_isClipEdge(t,e){return t.x===e.x?t.x<=-64||t.x>=4160:t.y===e.y&&(t.y<=-64||t.y>=4160)}static _area(t){let e=0;const i=t.length-1;for(let n=0;n<i;n++)e+=(t[n].x-t[n+1].x)*(t[n].y+t[n+1].y);return e+=(t[i].x-t[0].x)*(t[i].y+t[0].y),.5*e}}var j=i("2629");const W=65535;class q extends F{constructor(t,e,i,n,s){super(t,e,i),this.type=r["a"].LINE,this._tessellationOptions={pixelCoordRatio:8,halfWidth:0,offset:0},this._patternMap=new Map,this.tessellationProperties={_lineVertexBuffer:null,_lineIndexBuffer:null,_ddValues:null},this.tessellationProperties._lineVertexBuffer=n,this.tessellationProperties._lineIndexBuffer=s,this._lineTessellator=new j["a"](K(this.tessellationProperties),Y(this.tessellationProperties),t.canUseThinTessellation)}get lineIndexStart(){return this._lineIndexStart}get lineIndexCount(){return this._lineIndexCount}getResources(t,e,i){const n=this.layer,r=this.zoom,s=n.hasDataDrivenLine,o=n.getPaintProperty("line-pattern"),a=n.getPaintProperty("line-dasharray"),l=n.getLayoutProperty("line-cap");if(!o&&!a)return;const u=(null==l?void 0:l.getValue(r))||0,h=null==l?void 0:l.isDataDriven;if(s){const t=null==o?void 0:o.isDataDriven,i=null==a?void 0:a.isDataDriven;if(!t&&!i)return;for(const s of this._features)e(t?o.getValue(r,s):this._getDashArrayKey(s,r,n,a,h,l,u))}else if(o)e(o.getValue(r));else if(a){const t=a.getValue(r);e(n.getDashKey(t,u))}}processFeatures(t){var e,i,n,r,s,o;this._lineIndexStart=3*this.tessellationProperties._lineIndexBuffer.index,this._lineIndexCount=0;const a=this.layer,l=this.zoom,u=this._features,h=this._tessellationOptions,{hasDataDrivenLine:c,lineMaterial:f}=a;t&&t.setExtent(this.layerExtent);const d=a.getPaintProperty("line-pattern"),y=a.getPaintProperty("line-dasharray"),x=null==d?void 0:d.isDataDriven,p=null==y?void 0:y.isDataDriven;let m;m=a.getLayoutProperty("line-cap");const g=null!=(e=m)&&e.isDataDriven?m:null,_=g?null:a.getLayoutValue("line-cap",l),b=_||0,T=!!g;m=a.getLayoutProperty("line-join");const I=null!=(i=m)&&i.isDataDriven?m:null,L=I?null:a.getLayoutValue("line-join",l);m=a.getLayoutProperty("line-miter-limit");const w=null!=(n=m)&&n.isDataDriven?m:null,v=w?null:a.getLayoutValue("line-miter-limit",l);m=a.getLayoutProperty("line-round-limit");const P=null!=(r=m)&&r.isDataDriven?m:null,A=P?null:a.getLayoutValue("line-round-limit",l);m=a.getPaintProperty("line-width");const M=null!=(s=m)&&s.isDataDriven?m:null,B=M?null:a.getPaintValue("line-width",l);m=a.getPaintProperty("line-offset");const R=null!=(o=m)&&o.isDataDriven?m:null,E=R?null:a.getPaintValue("line-offset",l);if(x||p){const e=[];for(const i of u){const n=x?d.getValue(l,i):this._getDashArrayKey(i,l,a,y,T,g,b),r=this._spriteInfo[n];if(!r||!r.rect)continue;const s=f.encodeAttributes(i,l,a,r),o=i.getGeometry(t);e.push({ddAttributes:s,page:r.page,cap:g?g.getValue(l,i):_,join:I?I.getValue(l,i):L,miterLimit:w?w.getValue(l,i):v,roundLimit:P?P.getValue(l,i):A,halfWidth:.5*(M?M.getValue(l,i):B),offset:R?R.getValue(l,i):E,geometry:o})}e.sort((t,e)=>t.page-e.page),h.textured=!0;for(const{ddAttributes:t,page:i,cap:n,join:r,miterLimit:s,roundLimit:o,halfWidth:a,offset:l,geometry:u}of e)h.capType=n,h.joinType=r,h.miterLimit=s,h.roundLimit=o,h.halfWidth=a,h.offset=l,this._processFeature(u,t,i)}else{h.textured=!(!d&&!y),h.capType=_,h.joinType=L,h.miterLimit=v,h.roundLimit=A,h.halfWidth=.5*B,h.offset=E;for(const e of u){const i=c?f.encodeAttributes(e,l,a):null;g&&(h.capType=g.getValue(l,e)),I&&(h.joinType=I.getValue(l,e)),w&&(h.miterLimit=w.getValue(l,e)),P&&(h.roundLimit=P.getValue(l,e)),M&&(h.halfWidth=.5*M.getValue(l,e)),R&&(h.offset=R.getValue(l,e));const n=e.getGeometry(t);this._processFeature(n,i)}}}serialize(){let t=6;t+=this.layerUIDs.length,t+=this.tessellationProperties._lineVertexBuffer.array.length,t+=this.tessellationProperties._lineIndexBuffer.array.length,t+=3*this._patternMap.size+1;const e=new Uint32Array(t),i=new Int32Array(e.buffer);let n=0;e[n++]=this.type,e[n++]=this.layerUIDs.length;for(let o=0;o<this.layerUIDs.length;o++)e[n++]=this.layerUIDs[o];e[n++]=this._lineIndexStart,e[n++]=this._lineIndexCount;const r=this._patternMap,s=r.size;if(e[n++]=s,s>0)for(const[o,[a,l]]of r)e[n++]=o,e[n++]=a,e[n++]=l;e[n++]=this.tessellationProperties._lineVertexBuffer.array.length;for(let o=0;o<this.tessellationProperties._lineVertexBuffer.array.length;o++)i[n++]=this.tessellationProperties._lineVertexBuffer.array[o];e[n++]=this.tessellationProperties._lineIndexBuffer.array.length;for(let o=0;o<this.tessellationProperties._lineIndexBuffer.array.length;o++)e[n++]=this.tessellationProperties._lineIndexBuffer.array[o];return e.buffer}_processFeature(t,e,i){if(!t)return;const n=t.length;for(let r=0;r<n;r++)this._processGeometry(t[r],e,i)}_processGeometry(t,e,i){if(t.length<2)return;const n=.001;let r,s,o=t[0],a=1;for(;a<t.length;)r=t[a].x-o.x,s=t[a].y-o.y,r*r+s*s<n*n?t.splice(a,1):(o=t[a],++a);if(t.length<2)return;const l=this.tessellationProperties._lineIndexBuffer,u=3*l.index;this._tessellationOptions.initialDistance=0,this._tessellationOptions.wrapDistance=W,this.tessellationProperties._ddValues=e,this._lineTessellator.tessellate(t,this._tessellationOptions);const h=3*l.index-u;if(void 0!==i){const t=this._patternMap,e=t.get(i);e?e[1]+=h:t.set(i,[u+this._lineIndexCount,h])}this._lineIndexCount+=h}_getDashArrayKey(t,e,i,n,r,s,o){const a=r?s.getValue(e,t):o,l=n.getValue(e,t);return i.getDashKey(l,a)}}const K=t=>(e,i,n,r,s,o,a,l,u,h,c)=>(t._lineVertexBuffer.add(e,i,a,l,n,r,s,o,u,h,c,t._ddValues),t._lineVertexBuffer.index-1),Y=t=>(e,i,n)=>{t._lineIndexBuffer.add(e,i,n)};var Z=i("d7bf"),J=i("b3b6"),X=i("229e");const Q=10;function $(t,e){return t.iconMosaicItem&&e.iconMosaicItem?t.iconMosaicItem.page===e.iconMosaicItem.page?0:t.iconMosaicItem.page-e.iconMosaicItem.page:t.iconMosaicItem&&!e.iconMosaicItem?1:!t.iconMosaicItem&&e.iconMosaicItem?-1:0}class tt extends F{constructor(t,e,i,n,s,o,a,l){super(t,e,l.getSpriteItems()),this.type=r["a"].SYMBOL,this._markerMap=new Map,this._glyphMap=new Map,this._glyphBufferDataStorage=new Map,this._isIconSDF=!1,this._iconVertexBuffer=i,this._iconIndexBuffer=n,this._textVertexBuffer=s,this._textIndexBuffer=o,this._placementEngine=a,this._workerTileHandler=l}get markerPageMap(){return this._markerMap}get glyphsPageMap(){return this._glyphMap}get symbolInstances(){return this._symbolInstances}getResources(t,e,i){const n=this.layer,r=this.zoom;t&&t.setExtent(this.layerExtent);const s=n.getLayoutProperty("icon-image"),o=n.getLayoutProperty("text-field");let a=n.getLayoutProperty("text-transform"),l=n.getLayoutProperty("text-font");const u=[];let h,c,f,d;s&&!s.isDataDriven&&(h=s.getValue(r)),o&&!o.isDataDriven&&(c=o.getValue(r)),a&&a.isDataDriven||(f=n.getLayoutValue("text-transform",r),a=null),l&&l.isDataDriven||(d=n.getLayoutValue("text-font",r),l=null);for(const y of this._features){const x=y.getGeometry(t);if(!x||0===x.length)continue;let m,g;s&&(m=s.isDataDriven?s.getValue(r,y):this._replaceKeys(h,y.values),m&&e(m));let _=!1;if(o&&(g=o.isDataDriven?o.getValue(r,y):this._replaceKeys(c,y.values),g)){switch(g=g.replace(/\\n/g,"\n"),a&&(f=a.getValue(r,y)),f){case p["g"].LOWERCASE:g=g.toLowerCase();break;case p["g"].UPPERCASE:g=g.toUpperCase()}if(tt._bidiEngine.hasBidiChar(g)){let t;t="rtl"===tt._bidiEngine.checkContextual(g)?"IDNNN":"ICNNN",g=tt._bidiEngine.bidiTransform(g,t,"VLYSN"),_=!0}const t=g.length;if(t>0){l&&(d=l.getValue(r,y));for(const e of d){let n=i[e];n||(n=i[e]=new Set);for(let e=0;e<t;e++){const t=g.charCodeAt(e);n.add(t)}}}}if(!m&&!g)continue;const b=n.getLayoutValue("symbol-sort-key",r,y),T={feature:y,sprite:m,label:g,rtl:_,geometry:x,hash:(g?Object(J["b"])(g):0)^(m?Object(J["b"])(m):0),priority:b,textFont:d};u.push(T)}this._symbolFeatures=u}processFeatures(t){t&&t.setExtent(this.layerExtent);const e=this.layer,i=this.zoom,n=e.getLayoutValue("symbol-placement",i),r=n!==p["e"].POINT,s=e.getLayoutValue("symbol-spacing",i)*_,a=e.getLayoutProperty("icon-image"),l=e.getLayoutProperty("text-field"),u=a?new X["d"](e,i,r):null,h=l?new X["g"](e,i,r):null,c=this._workerTileHandler;let d;a&&(d=c.getSpriteItems()),this._iconIndexStart=3*this._iconIndexBuffer.index,this._textIndexStart=3*this._textIndexBuffer.index,this._iconIndexCount=0,this._textIndexCount=0,this._markerMap.clear(),this._glyphMap.clear();const x=[];let b=1;h&&h.size&&(b=h.size/f);const T=h?h.maxAngle*o["b"]:0,L=h?h.size*_:0;for(const o of this._symbolFeatures){let t,e;u&&d&&o.sprite&&(t=d[o.sprite],t&&t.sdf&&(this._isIconSDF=!0)),t&&u.update(i,o.feature);let a=0;const l=o.label;if(l){h.update(i,o.feature);const t=r?h.keepUpright:h.writingMode&&h.writingMode.indexOf(p["h"].VERTICAL)>=0;let n=.5;switch(h.anchor){case p["d"].TOP_LEFT:case p["d"].LEFT:case p["d"].BOTTOM_LEFT:n=0;break;case p["d"].TOP_RIGHT:case p["d"].RIGHT:case p["d"].BOTTOM_RIGHT:n=1}let s=.5;switch(h.anchor){case p["d"].TOP_LEFT:case p["d"].TOP:case p["d"].TOP_RIGHT:s=0;break;case p["d"].BOTTOM_LEFT:case p["d"].BOTTOM:case p["d"].BOTTOM_RIGHT:s=1}let u=.5;switch(h.justify){case p["f"].AUTO:u=n;break;case p["f"].LEFT:u=0;break;case p["f"].RIGHT:u=1}const d=h.letterSpacing*f,x=r?0:h.maxWidth*f,m=h.lineHeight*f,g=o.textFont.map(t=>c.getGlyphItems(t));if(e=new y(g,x,m,d,n,s,u).getShaping(l,o.rtl,t),e&&e.length>0){let t=1e30,i=-1e30;for(const n of e)t=Math.min(t,n.x),i=Math.max(i,n.x);a=(i-t+2*f)*b*_}}for(let i of o.geometry){const l=[];if(n===p["e"].LINE){if(e&&e.length>0&&h&&h.size){const t=h.size*_*(2+Math.min(2,4*Math.abs(h.offset[1])));i=tt._smoothVertices(i,t)}tt._pushAnchors(l,i,s,a)}else n===p["e"].LINE_CENTER?tt._pushCenterAnchor(l,i):o.feature.type===m["a"].Polygon?tt._pushCentroid(l,i):l.push(new I(i[0].x,i[0].y));for(const n of l){if(n.x<0||n.x>g||n.y<0||n.y>g)continue;if(r&&a>0&&h.rotationAlignment===p["a"].MAP&&!tt._honorsTextMaxAngle(i,n,a,T,L))continue;const s={shaping:e,line:i,iconMosaicItem:t,anchor:n,symbolFeature:o,textColliders:[],iconColliders:[],textVertexRanges:[],iconVertexRanges:[]};x.push(s),this._processFeature(s,u,h)}}}x.sort($),this._addPlacedGlyphs(),this._symbolInstances=x}serialize(){let t=11;t+=this.layerUIDs.length,t+=3*this.markerPageMap.size,t+=3*this.glyphsPageMap.size,t+=tt._symbolsSerializationLength(this._symbolInstances),t+=this._iconVertexBuffer.array.length,t+=this._iconIndexBuffer.array.length,t+=this._textVertexBuffer.array.length,t+=this._textIndexBuffer.array.length;const e=new Uint32Array(t),i=new Int32Array(e.buffer),n=new Float32Array(e.buffer);let r=0;e[r++]=this.type,e[r++]=this.layerUIDs.length;for(let s=0;s<this.layerUIDs.length;s++)e[r++]=this.layerUIDs[s];e[r++]=this._isIconSDF?1:0,e[r++]=this.markerPageMap.size;for(const[s,[o,a]]of this.markerPageMap)e[r++]=s,e[r++]=o,e[r++]=a;e[r++]=this.glyphsPageMap.size;for(const[s,[o,a]]of this.glyphsPageMap)e[r++]=s,e[r++]=o,e[r++]=a;e[r++]=this._iconVertexBuffer.index/4,e[r++]=this._textVertexBuffer.index/4,r=tt.serializeSymbols(e,i,n,r,this._symbolInstances),e[r++]=this._iconVertexBuffer.array.length;for(let s=0;s<this._iconVertexBuffer.array.length;s++)i[r++]=this._iconVertexBuffer.array[s];e[r++]=this._iconIndexBuffer.array.length;for(let s=0;s<this._iconIndexBuffer.array.length;s++)e[r++]=this._iconIndexBuffer.array[s];e[r++]=this._textVertexBuffer.array.length;for(let s=0;s<this._textVertexBuffer.array.length;s++)i[r++]=this._textVertexBuffer.array[s];e[r++]=this._textIndexBuffer.array.length;for(let s=0;s<this._textIndexBuffer.array.length;s++)e[r++]=this._textIndexBuffer.array[s];return e.buffer}static _symbolsSerializationLength(t){let e=0;e+=1;for(const i of t||[]){e+=4,e+=1;for(const t of i.textColliders)e+=Q;for(const t of i.iconColliders)e+=Q;e+=1,e+=2*i.textVertexRanges.length,e+=1,e+=2*i.iconVertexRanges.length}return e}static serializeSymbols(t,e,i,n,r){r=r||[],e[n++]=r.length;for(const s of r){e[n++]=s.anchor.x,e[n++]=s.anchor.y,e[n++]=s.symbolFeature.hash,e[n++]=s.symbolFeature.priority,e[n++]=s.textColliders.length+s.iconColliders.length;for(const t of s.textColliders)e[n++]=t.xTile,e[n++]=t.yTile,e[n++]=t.dxPixels,e[n++]=t.dyPixels,e[n++]=t.hard?1:0,e[n++]=t.partIndex,i[n++]=t.minLod,i[n++]=t.maxLod,e[n++]=t.width,e[n++]=t.height;for(const t of s.iconColliders)e[n++]=t.xTile,e[n++]=t.yTile,e[n++]=t.dxPixels,e[n++]=t.dyPixels,e[n++]=t.hard?1:0,e[n++]=t.partIndex,i[n++]=t.minLod,i[n++]=t.maxLod,e[n++]=t.width,e[n++]=t.height;e[n++]=s.textVertexRanges.length;for(const[t,i]of s.textVertexRanges)e[n++]=t,e[n++]=i;e[n++]=s.iconVertexRanges.length;for(const[t,i]of s.iconVertexRanges)e[n++]=t,e[n++]=i}return n}_replaceKeys(t,e){return t.replace(/{([^{}]+)}/g,(function(t,i){return i in e?e[i]:""}))}_processFeature(t,e,i){const{line:n,iconMosaicItem:r,shaping:s,anchor:a}=t,l=this.zoom,u=this.layer,h=!!r;let c=!0;h&&(c=e.optional||!r);const f=s&&s.length>0;let d,y,x=!0;if(f&&(x=i.optional),h&&(d=this._placementEngine.getIconPlacement(a,r,e)),(d||c)&&(f&&(y=this._placementEngine.getTextPlacement(a,s,n,i)),y||x)){if(d&&y||(x||c?x||y?c||d||(y=null):d=null:(d=null,y=null)),y){const e=u.hasDataDrivenText?u.textMaterial.encodeAttributes(t.symbolFeature.feature,l,u):null;if(this._storePlacedGlyphs(t,y.shapes,l,i.rotationAlignment,e),y.textColliders){t.textColliders=y.textColliders;for(const t of y.textColliders){t.minLod=Math.max(l+Object(o["f"])(t.minLod),0),t.maxLod=Math.min(l+Object(o["f"])(t.maxLod),25);const e=t.angle;if(e){const i=Math.cos(e),n=Math.sin(e),r=t.dxPixels*i-t.dyPixels*n,s=t.dxPixels*n+t.dyPixels*i,o=(t.dxPixels+t.width)*i-t.dyPixels*n,a=(t.dxPixels+t.width)*n+t.dyPixels*i,l=t.dxPixels*i-(t.dyPixels+t.height)*n,u=t.dxPixels*n+(t.dyPixels+t.height)*i,h=(t.dxPixels+t.width)*i-(t.dyPixels+t.height)*n,c=(t.dxPixels+t.width)*n+(t.dyPixels+t.height)*i,f=Math.min(r,o,l,h),d=Math.max(r,o,l,h),y=Math.min(s,a,u,c),x=Math.max(s,a,u,c);t.dxPixels=f,t.dyPixels=y,t.width=d-f,t.height=x-y}}}}if(d){const i=u.hasDataDrivenIcon?u.iconMaterial.encodeAttributes(t.symbolFeature.feature,l,u):null;if(this._addPlacedIcons(t,d.shapes,l,r.page,e.rotationAlignment===p["a"].VIEWPORT,i),d.iconColliders){t.iconColliders=d.iconColliders;for(const t of d.iconColliders){t.minLod=Math.max(l+Object(o["f"])(t.minLod),0),t.maxLod=Math.min(l+Object(o["f"])(t.maxLod),25);const e=t.angle;if(e){const i=Math.cos(e),n=Math.sin(e),r=t.dxPixels*i-t.dyPixels*n,s=t.dxPixels*n+t.dyPixels*i,o=(t.dxPixels+t.width)*i-t.dyPixels*n,a=(t.dxPixels+t.width)*n+t.dyPixels*i,l=t.dxPixels*i-(t.dyPixels+t.height)*n,u=t.dxPixels*n+(t.dyPixels+t.height)*i,h=(t.dxPixels+t.width)*i-(t.dyPixels+t.height)*n,c=(t.dxPixels+t.width)*n+(t.dyPixels+t.height)*i,f=Math.min(r,o,l,h),d=Math.max(r,o,l,h),y=Math.min(s,a,u,c),x=Math.max(s,a,u,c);t.dxPixels=f,t.dyPixels=y,t.width=d-f,t.height=x-y}}}}}}_addPlacedIcons(t,e,i,n,r,s){const a=Math.max(i-1,0),l=this._iconVertexBuffer,u=this._iconIndexBuffer,h=this._markerMap;for(const c of e){const e=r?0:Math.max(i+Object(o["f"])(c.minzoom),a),f=r?25:Math.min(i+Object(o["f"])(c.maxzoom),25);if(f<=e)continue;const d=c.tl,y=c.tr,x=c.bl,p=c.br,m=c.mosaicRect,g=c.labelAngle,_=c.minAngle,b=c.maxAngle,T=c.anchor,I=l.index,L=m.x,w=m.y,v=L+m.width,P=w+m.height,A=l.index;l.add(T.x,T.y,d.x,d.y,L,w,g,_,b,e,f,s),l.add(T.x,T.y,y.x,y.y,v,w,g,_,b,e,f,s),l.add(T.x,T.y,x.x,x.y,L,P,g,_,b,e,f,s),l.add(T.x,T.y,p.x,p.y,v,P,g,_,b,e,f,s),t.iconVertexRanges.length>0&&t.iconVertexRanges[0][0]+t.iconVertexRanges[0][1]===A?t.iconVertexRanges[0][1]+=4:t.iconVertexRanges.push([A,4]),u.add(I+0,I+1,I+2),u.add(I+1,I+2,I+3),h.has(n)?h.get(n)[1]+=6:h.set(n,[this._iconIndexStart+this._iconIndexCount,6]),this._iconIndexCount+=6}}_addPlacedGlyphs(){const t=this._textVertexBuffer,e=this._textIndexBuffer,i=this._glyphMap;for(const[n,r]of this._glyphBufferDataStorage)for(const s of r){const r=t.index,o=s.symbolInstance,a=s.ddAttributes,l=t.index;t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.tl[0],s.tl[1],s.xmin,s.ymin,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.tr[0],s.tr[1],s.xmax,s.ymin,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.bl[0],s.bl[1],s.xmin,s.ymax,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.br[0],s.br[1],s.xmax,s.ymax,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),o.textVertexRanges.length>0&&o.textVertexRanges[0][0]+o.textVertexRanges[0][1]===l?o.textVertexRanges[0][1]+=4:o.textVertexRanges.push([l,4]),e.add(r+0,r+1,r+2),e.add(r+1,r+2,r+3),i.has(n)?i.get(n)[1]+=6:i.set(n,[this._textIndexStart+this._textIndexCount,6]),this._textIndexCount+=6}this._glyphBufferDataStorage.clear()}_storePlacedGlyphs(t,e,i,n,r){const s=Math.max(i-1,0),a=n===p["a"].VIEWPORT;let l,u,h,c,f,d,y,x,m,g,_;for(const p of e)l=a?0:Math.max(i+Object(o["f"])(p.minzoom),s),u=a?25:Math.min(i+Object(o["f"])(p.maxzoom),25),u<=l||(h=p.tl,c=p.tr,f=p.bl,d=p.br,y=p.labelAngle,x=p.minAngle,m=p.maxAngle,g=p.anchor,_=p.mosaicRect,this._glyphBufferDataStorage.has(p.page)||this._glyphBufferDataStorage.set(p.page,[]),this._glyphBufferDataStorage.get(p.page).push({glyphAnchor:[g.x,g.y],tl:[h.x,h.y],tr:[c.x,c.y],bl:[f.x,f.y],br:[d.x,d.y],xmin:_.x,ymin:_.y,xmax:_.x+_.width,ymax:_.y+_.height,labelAngle:y,minAngle:x,maxAngle:m,minLod:l,maxLod:u,placementLod:s,symbolInstance:t,ddAttributes:r}))}static _pushAnchors(t,e,i,n){i+=n;let r=0;const s=e.length-1;for(let o=0;o<s;o++)r+=m["b"].distance(e[o],e[o+1]);let a=n||i;if(a*=.5,r<=a)return;const l=a/r;let u=0,h=-(i=r/Math.max(Math.round(r/i),1))/2;const c=e.length-1;for(let f=0;f<c;f++){const n=e[f],r=e[f+1],s=r.x-n.x,a=r.y-n.y,c=Math.sqrt(s*s+a*a);let d;for(;h+i<u+c;){h+=i;const e=(h-u)/c,y=Object(o["e"])(n.x,r.x,e),x=Object(o["e"])(n.y,r.y,e);void 0===d&&(d=Math.atan2(a,s)),t.push(new I(y,x,d,f,l))}u+=c}}static _pushCenterAnchor(t,e){let i=0;const n=e.length-1;for(let o=0;o<n;o++)i+=m["b"].distance(e[o],e[o+1]);const r=i/2;let s=0;const a=e.length-1;for(let l=0;l<a;l++){const i=e[l],n=e[l+1],a=n.x-i.x,u=n.y-i.y,h=Math.sqrt(a*a+u*u);if(r<s+h){const e=(r-s)/h,c=Object(o["e"])(i.x,n.x,e),f=Object(o["e"])(i.y,n.y,e),d=Math.atan2(u,a);return void t.push(new I(c,f,d,l,0))}s+=h}}static _deviation(t,e,i){const n=(e.x-t.x)*(i.x-e.x)+(e.y-t.y)*(i.y-e.y),r=(e.x-t.x)*(i.y-e.y)-(e.y-t.y)*(i.x-e.x);return Math.atan2(r,n)}static _honorsTextMaxAngle(t,e,i,n,r){let s=0;const o=i/2;let a=new m["b"](e.x,e.y),l=e.segment+1;for(;s>-o;){if(--l,l<0)return!1;s-=m["b"].distance(t[l],a),a=t[l]}s+=m["b"].distance(t[l],t[l+1]);const u=[];let h=0;const c=t.length;for(;s<o;){const e=t[l];let i,o=l;do{if(++o,o===c)return!1;i=t[o]}while(i.isEqual(e));let a,f=o;do{if(++f,f===c)return!1;a=t[f]}while(a.isEqual(i));const d=this._deviation(e,i,a);for(u.push({deviation:d,distToAnchor:s}),h+=d;s-u[0].distToAnchor>r;)h-=u.shift().deviation;if(Math.abs(h)>n)return!1;s+=m["b"].distance(i,a),l=o}return!0}static _smoothVertices(t,e){if(e<=0)return t;let i=t.length;if(i<3)return t;const n=[];let r=0,s=0;n.push(0);for(let y=1;y<i;y++){const e=m["b"].distance(t[y],t[y-1]);e>0&&(r+=e,n.push(r),s++,s!==y&&(t[s]=t[y]))}if(i=s+1,i<3)return t;e=Math.min(e,.2*r);const o=t[0].x,a=t[0].y,l=t[i-1].x,u=t[i-1].y,h=m["b"].sub(t[0],t[1]);h.normalize(),t[0].x+=e*h.x,t[0].y+=e*h.y,h.assignSub(t[i-1],t[i-2]),h.normalize(),t[i-1].x+=e*h.x,t[i-1].y+=e*h.y,n[0]-=e,n[i-1]+=e;const c=[];c.push(new m["b"](o,a));const f=1e-6,d=.5*e;for(let y=1;y<i-1;y++){let r=0,s=0,o=0;for(let i=y-1;i>=0;i--){const a=d+n[i+1]-n[y];if(a<0)break;const l=n[i+1]-n[i],u=n[y]-n[i]<d?1:a/l;if(u<f)break;const h=u*u,c=u*a-.5*h*l,x=u*l/e,p=t[i+1],m=t[i].x-p.x,g=t[i].y-p.y;r+=x/c*(p.x*u*a+.5*h*(a*m-l*p.x)-h*u*l*m/3),s+=x/c*(p.y*u*a+.5*h*(a*g-l*p.y)-h*u*l*g/3),o+=x}for(let a=y+1;a<i;a++){const i=d-n[a-1]+n[y];if(i<0)break;const l=n[a]-n[a-1],u=n[a]-n[y]<d?1:i/l;if(u<f)break;const h=u*u,c=u*i-.5*h*l,x=u*l/e,p=t[a-1],m=t[a].x-p.x,g=t[a].y-p.y;r+=x/c*(p.x*u*i+.5*h*(i*m-l*p.x)-h*u*l*m/3),s+=x/c*(p.y*u*i+.5*h*(i*g-l*p.y)-h*u*l*g/3),o+=x}c.push(new m["b"](r/o,s/o))}return c.push(new m["b"](l,u)),t[0].x=o,t[0].y=a,t[i-1].x=l,t[i-1].y=u,c}static _pushCentroid(t,e){const i=0,n=0,r=4096,s=4096,o=e.length-1;let a=0,l=0,u=0,h=e[0].x,c=e[0].y;h>r&&(h=r),h<i&&(h=i),c>s&&(c=s),c<n&&(c=n);for(let f=1;f<o;f++){let t=e[f].x,o=e[f].y,d=e[f+1].x,y=e[f+1].y;t>r&&(t=r),t<i&&(t=i),o>s&&(o=s),o<n&&(o=n),d>r&&(d=r),d<i&&(d=i),y>s&&(y=s),y<n&&(y=n);const x=(t-h)*(y-c)-(d-h)*(o-c);a+=x*(h+t+d),l+=x*(c+o+y),u+=x}a/=3*u,l/=3*u,isNaN(a)||isNaN(l)||t.push(new I(a,l))}}tt._bidiEngine=new Z["a"];var et,it=i("2da5");!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.NO_DATA=1]="NO_DATA",t[t.READY=2]="READY",t[t.MODIFIED=3]="MODIFIED",t[t.INVALID=4]="INVALID"}(et||(et={}));const nt=8,rt=14,st=5;class ot{constructor(t,e,i,n,r){if(this._pbfTiles={},this._tileClippers={},this._client=i,this._tile=e,r){this._styleLayerUIDs=new Set;for(const t of r)this._styleLayerUIDs.add(t)}this._styleRepository=n,this._layers=this._styleRepository.layers;const[s,o,a]=e.tileKey.split("/").map(parseFloat);this._level=s;const l=nt+Math.max((this._level-rt)*st,0);for(const u of Object.keys(t)){const e=t[u];if(this._pbfTiles[u]=new M["a"](new Uint8Array(e.protobuff),new DataView(e.protobuff)),e.refKey){const[t]=e.refKey.split("/").map(parseFloat),i=s-t;if(i>0){const t=(1<<i)-1,e=o&t,n=a&t;this._tileClippers[u]=new it["b"](i,e,n,8,l)}}this._tileClippers[u]||(this._tileClippers[u]=new it["a"])}}_canParseStyleLayer(t){return!this._styleLayerUIDs||this._styleLayerUIDs.has(t)}async parse(t){const e=Object(B["a"])(),i=this._initialize(t),{returnedBuckets:n}=i;this._processLayers(i),this._linkReferences(i),this._filterFeatures(i);const r=[],s=new Set,o=(t,e)=>{s.has(t)||(r.push({name:t,repeat:e}),s.add(t))},a={};for(const u of n)u.getResources(u.tileClipper,o,a);if(this._tile.status===et.INVALID)return Promise.resolve([]);const l=this._fetchResources(r,a,t);return Promise.all([...l,e]).then(()=>this._processFeatures(i.returnedBuckets))}_initialize(t){return{signal:t&&t.signal,sourceNameToTileData:this._parseTileData(this._pbfTiles),layers:this._layers,zoom:this._level,sourceNameToTileClipper:this._tileClippers,sourceNameToUniqueSourceLayerBuckets:{},sourceNameToUniqueSourceLayers:{},returnedBuckets:[],layerIdToBucket:{},referencerUIDToReferencedId:new Map}}_processLayers(t){const{sourceNameToTileData:e,layers:i,zoom:n,sourceNameToTileClipper:r,sourceNameToUniqueSourceLayerBuckets:s,sourceNameToUniqueSourceLayers:o,returnedBuckets:a,layerIdToBucket:l,referencerUIDToReferencedId:u}=t;for(let h=i.length-1;h>=0;h--){const t=i[h];if(!this._canParseStyleLayer(t.uid)||t.minzoom&&n<Math.floor(t.minzoom)||t.maxzoom&&n>=t.maxzoom||t.type===p["c"].BACKGROUND)continue;if(!e[t.source]||!r[t.source])continue;const c=e[t.source],f=r[t.source],d=t.sourceLayer,y=c[d];if(y){let e=o[t.source];if(e||(e=o[t.source]=new Set),e.add(t.sourceLayer),t.refLayerId)u.set(t.uid,t.refLayerId);else{const e=this._createBucket(t);if(e){e.layerUIDs=[t.uid],e.layerExtent=y.extent,e.tileClipper=f;let i=s[t.source];i||(i=s[t.source]={});let n=i[d];n||(n=i[d]=[]),n.push(e),a.push(e),l[t.id]=e}}}}}_linkReferences(t){const{layerIdToBucket:e,referencerUIDToReferencedId:i}=t;i.forEach((t,i)=>{e[t=t]&&e[t].layerUIDs.push(i)})}_filterFeatures(t){const{signal:e,sourceNameToTileData:i,sourceNameToUniqueSourceLayerBuckets:r,sourceNameToUniqueSourceLayers:s}=t,o=10*this._level,a=10*(this._level+1),l=[],u=[];for(const n of Object.keys(s))s[n].forEach(t=>{l.push(t),u.push(n)});for(let h=0;h<l.length;h++){const t=u[h],s=l[h];if(!i[t]||!r[t])continue;const c=i[t][s],f=r[t][s];if(!f||0===f.length)continue;if(Object(n["n"])(e))return;const d=c.getData();for(;d.nextTag(2);){const t=d.getMessage(),e=new R(t,c);t.release();const i=e.values;if(i){const t=i._minzoom;if(t&&t>=a)continue;const e=i._maxzoom;if(e&&e<=o)continue}for(const n of f)n.pushFeature(e)}}}_fetchResources(t,e,i){const n=[],r=this._tile.getWorkerTileHandler();let s,o;t.length>0&&(s=r.fetchSprites(t,this._client,i),n.push(s));for(const a in e){const t=e[a];t.size>0&&(o=r.fetchGlyphs(this._tile.tileKey,a,t,this._client,i),n.push(o))}return n}_processFeatures(t){const e=t.filter(t=>t.hasFeatures()||this._canParseStyleLayer(t.layer.uid));for(const i of e)i.processFeatures(i.tileClipper);return e}_parseTileData(t){const e={};for(const i of Object.keys(t)){const n=t[i],r={};for(;n.next();)switch(n.tag()){case 3:{const t=n.getMessage(),e=new C(t);t.release(),r[e.name]=e;break}default:n.skip()}e[i]=r}return e}_createBucket(t){switch(t.type){case p["c"].BACKGROUND:return null;case p["c"].FILL:return this._createFillBucket(t);case p["c"].LINE:return this._createLineBucket(t);case p["c"].CIRCLE:return this._createCircleBucket(t);case p["c"].SYMBOL:return this._createSymbolBucket(t)}}_createFillBucket(t){return new H(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new D(t.fillMaterial.getStride()),new S,new N(t.outlineMaterial.getStride()),new S)}_createLineBucket(t){return new q(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new O(t.lineMaterial.getStride()),new S)}_createCircleBucket(t){return new U(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new k(t.circleMaterial.getStride()),new S)}_createSymbolBucket(t){const e=this._tile;return new tt(t,this._level,new V(t.iconMaterial.getStride()),new S,new V(t.textMaterial.getStride()),new S,e.placementEngine,e.getWorkerTileHandler())}}class at{constructor(t,e,i,n){this.status=et.INITIALIZED,this.placementEngine=new P,this.tileKey=t,this.refKeys=e,this._workerTileHandler=i,this._styleRepository=n}release(){this.tileKey="",this.refKeys=null,this.status=et.INITIALIZED,this._workerTileHandler=null}async parse(t,e){const i=e&&e.signal;if(Object(s["k"])(i)){const t=()=>{i.removeEventListener("abort",t),this.status=et.INVALID};i.addEventListener("abort",t)}let r;const o={bucketsWithData:[],emptyBuckets:null};try{r=await this._parse(t,e)}catch(c){if(Object(n["m"])(c))throw c;return{result:o,transferList:[]}}this.status=et.READY;const a=o.bucketsWithData,l=[];for(const n of r)if(n.hasFeatures()){const t=n.serialize();a.push(t)}else l.push(n.layer.uid);const u=[...a];let h=null;return l.length>0&&(h=Uint32Array.from(l),u.push(h.buffer)),o.emptyBuckets=h,{result:o,transferList:u}}setObsolete(){this.status=et.INVALID}getLayers(){return this._workerTileHandler.getLayers()}getWorkerTileHandler(){return this._workerTileHandler}async _parse(t,e){const i=t.sourceName2DataAndRefKey;return 0===Object.keys(i).length?[]:(this.status=et.MODIFIED,new ot(i,this,e.client,this._styleRepository,t.styleLayerUIDs).parse(e))}}var lt=i("901e");class ut{constructor(){this._spriteInfo={},this._glyphInfo={}}reset(){return this._spriteInfo={},this._glyphInfo={},Promise.resolve()}getLayers(){var t;return null==(t=this._styleRepository)?void 0:t.layers}async createTileAndParse(t,e){const{key:i}=t,r={};for(const n of Object.keys(t.sourceName2DataAndRefKey)){const e=t.sourceName2DataAndRefKey[n];r[n]=e.refKey}const s=new at(i,r,this,this._styleRepository);try{return await s.parse(t,e)}catch(o){if(s.setObsolete(),s.release(),!Object(n["m"])(o))throw o;return null}}updateStyle(t){if(!t||0===t.length||!this._styleRepository)return;const e=this._styleRepository;for(const i of t){const t=i.type,n=i.data;switch(t){case r["c"].PAINTER_CHANGED:e.setPaintProperties(n.layer,n.paint);break;case r["c"].LAYOUT_CHANGED:e.setLayoutProperties(n.layer,n.layout);break;case r["c"].LAYER_REMOVED:e.deleteStyleLayer(n.layer);break;case r["c"].LAYER_CHANGED:e.setStyleLayer(n.layer,n.index);break;case r["c"].SPRITES_CHANGED:this._spriteInfo={}}}}setStyle(t){this._styleRepository=new lt["a"](t),this._spriteInfo={},this._glyphInfo={}}fetchSprites(t,e,i){const n=[],r=this._spriteInfo;for(const s of t)void 0===r[s.name]&&n.push(s);return 0===n.length?Promise.resolve():e.invoke("getSprites",n,{signal:i&&i.signal}).then(t=>{for(const e in t){const i=t[e];r[e]=i}})}getSpriteItems(){return this._spriteInfo}fetchGlyphs(t,e,i,n,r){const s=[];let o=this._glyphInfo[e];return o?i.forEach(t=>{o[t]||s.push(t)}):(o=this._glyphInfo[e]=[],i.forEach(t=>s.push(t))),0===s.length?Promise.resolve():n.invoke("getGlyphs",{tileID:t,font:e,codePoints:s},r).then(t=>{for(let e=0;e<t.length;e++)t[e]&&(o[e]=t[e])})}getGlyphItems(t){return this._glyphInfo[t]}}},"8c81":function(t,e,i){"use strict";i.d(e,"a",(function(){return w})),i.d(e,"b",(function(){return A})),i.d(e,"c",(function(){return L})),i.d(e,"d",(function(){return v})),i.d(e,"e",(function(){return P})),i.d(e,"f",(function(){return h})),i.d(e,"g",(function(){return z})),i.d(e,"h",(function(){return q})),i.d(e,"i",(function(){return H})),i.d(e,"j",(function(){return G})),i.d(e,"k",(function(){return j})),i.d(e,"l",(function(){return W})),i.d(e,"m",(function(){return K})),i.d(e,"n",(function(){return k})),i.d(e,"o",(function(){return o})),i.d(e,"p",(function(){return E})),i.d(e,"q",(function(){return R})),i.d(e,"r",(function(){return l})),i.d(e,"s",(function(){return B})),i.d(e,"t",(function(){return C})),i.d(e,"u",(function(){return a})),i.d(e,"v",(function(){return M})),i.d(e,"w",(function(){return U})),i.d(e,"x",(function(){return n})),i.d(e,"y",(function(){return F})),i.d(e,"z",(function(){return r})),i.d(e,"A",(function(){return V})),i.d(e,"B",(function(){return y})),i.d(e,"C",(function(){return x})),i.d(e,"D",(function(){return p})),i.d(e,"E",(function(){return m})),i.d(e,"F",(function(){return d})),i.d(e,"G",(function(){return f})),i.d(e,"H",(function(){return g})),i.d(e,"I",(function(){return _})),i.d(e,"J",(function(){return b})),i.d(e,"K",(function(){return T})),i.d(e,"L",(function(){return I})),i.d(e,"M",(function(){return c})),i.d(e,"N",(function(){return u})),i.d(e,"O",(function(){return S})),i.d(e,"P",(function(){return s})),i.d(e,"Q",(function(){return N})),i.d(e,"R",(function(){return D})),i.d(e,"S",(function(){return O}));const n=1e-30,r=4294967295,s=512,o=8,a=29,l=24,u=8,h={metrics:{width:15,height:17,left:0,top:-7,advance:14}},c=0,f=0,d=0,y=1,x=2,p=3,m=4,g=12,_=5,b=6,T=5,I=6,L=0,w=1,v=2,P=3,A=4,M=2,B=1,R=2,E=4,S=1.05,C=3,O=5,D=6,N=1.15,V=2,k=8,F=500,U=10,z=2,G=0,H=1,j=4,W=8,q=4,K=1},a9c0:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));class n{constructor(t=0,e=0,i=0,n=0){this.x=t,this.y=e,this.width=i,this.height=n}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}},ab39:function(t,e,i){"use strict";var n,r,s,o,a,l,u,h,c,f,d,y,x,p,m,g,_,b,T,I,L,w,v,P,A,M,B,R,E,S,C,O,D,N,V,k,F,U,z,G,H,j,W,q,K,Y,Z,J,X,Q,$,tt,et,it,nt,rt,st,ot,at,lt;i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return g})),i.d(e,"c",(function(){return m})),i.d(e,"d",(function(){return n})),i.d(e,"e",(function(){return a})),i.d(e,"f",(function(){return u})),i.d(e,"g",(function(){return h})),i.d(e,"h",(function(){return c})),i.d(e,"i",(function(){return T})),i.d(e,"j",(function(){return I})),i.d(e,"k",(function(){return L})),i.d(e,"l",(function(){return P})),i.d(e,"m",(function(){return B})),i.d(e,"n",(function(){return R})),i.d(e,"o",(function(){return r})),i.d(e,"p",(function(){return V})),i.d(e,"q",(function(){return k})),i.d(e,"r",(function(){return z})),i.d(e,"s",(function(){return q})),i.d(e,"t",(function(){return K})),i.d(e,"u",(function(){return Y})),i.d(e,"v",(function(){return Z})),i.d(e,"w",(function(){return nt})),i.d(e,"x",(function(){return rt})),i.d(e,"y",(function(){return ot})),function(t){t[t.BUTT=0]="BUTT",t[t.ROUND=1]="ROUND",t[t.SQUARE=2]="SQUARE",t[t.UNKNOWN=4]="UNKNOWN"}(n||(n={})),function(t){t[t.BEVEL=0]="BEVEL",t[t.ROUND=1]="ROUND",t[t.MITER=2]="MITER",t[t.UNKNOWN=4]="UNKNOWN"}(r||(r={})),function(t){t[t.SCREEN=0]="SCREEN",t[t.MAP=1]="MAP"}(s||(s={})),function(t){t[t.Tint=0]="Tint",t[t.Ignore=1]="Ignore",t[t.Multiply=99]="Multiply"}(o||(o={})),function(t){t.Both="Both",t.JustBegin="JustBegin",t.JustEnd="JustEnd",t.None="None"}(a||(a={})),function(t){t[t.Mosaic=0]="Mosaic",t[t.Centered=1]="Centered"}(l||(l={})),function(t){t[t.Normal=0]="Normal",t[t.Superscript=1]="Superscript",t[t.Subscript=2]="Subscript"}(u||(u={})),function(t){t[t.MSSymbol=0]="MSSymbol",t[t.Unicode=1]="Unicode"}(h||(h={})),function(t){t[t.Unspecified=0]="Unspecified",t[t.TrueType=1]="TrueType",t[t.PSOpenType=2]="PSOpenType",t[t.TTOpenType=3]="TTOpenType",t[t.Type1=4]="Type1"}(c||(c={})),function(t){t[t.Display=0]="Display",t[t.Map=1]="Map"}(f||(f={})),function(t){t[t.Z=0]="Z",t[t.X=1]="X",t[t.Y=2]="Y"}(d||(d={})),function(t){t[t.XYZ=0]="XYZ",t[t.ZXY=1]="ZXY",t[t.YXZ=2]="YXZ"}(y||(y={})),function(t){t[t.Rectangle=0]="Rectangle",t[t.RoundedRectangle=1]="RoundedRectangle",t[t.Oval=2]="Oval"}(x||(x={})),function(t){t[t.None=0]="None",t[t.Alpha=1]="Alpha",t[t.Screen=2]="Screen",t[t.Multiply=3]="Multiply",t[t.Add=4]="Add"}(p||(p={})),function(t){t[t.TTB=0]="TTB",t[t.RTL=1]="RTL",t[t.BTT=2]="BTT"}(m||(m={})),function(t){t[t.None=0]="None",t[t.SignPost=1]="SignPost",t[t.FaceNearPlane=2]="FaceNearPlane"}(g||(g={})),function(t){t[t.Float=0]="Float",t[t.String=1]="String",t[t.Boolean=2]="Boolean"}(_||(_={})),function(t){t[t.Intersect=0]="Intersect",t[t.Subtract=1]="Subtract"}(b||(b={})),function(t){t.OpenEnded="OpenEnded",t.Block="Block",t.Crossed="Crossed"}(T||(T={})),function(t){t.FullGeometry="FullGeometry",t.PerpendicularFromFirstSegment="PerpendicularFromFirstSegment",t.ReversedFirstSegment="ReversedFirstSegment",t.PerpendicularToSecondSegment="PerpendicularToSecondSegment",t.SecondSegmentWithTicks="SecondSegmentWithTicks",t.DoublePerpendicular="DoublePerpendicular",t.OppositeToFirstSegment="OppositeToFirstSegment",t.TriplePerpendicular="TriplePerpendicular",t.HalfCircleFirstSegment="HalfCircleFirstSegment",t.HalfCircleSecondSegment="HalfCircleSecondSegment",t.HalfCircleExtended="HalfCircleExtended",t.OpenCircle="OpenCircle",t.CoverageEdgesWithTicks="CoverageEdgesWithTicks",t.GapExtentWithDoubleTicks="GapExtentWithDoubleTicks",t.GapExtentMidline="GapExtentMidline",t.Chevron="Chevron",t.PerpendicularWithArc="PerpendicularWithArc",t.ClosedHalfCircle="ClosedHalfCircle",t.TripleParallelExtended="TripleParallelExtended",t.ParallelWithTicks="ParallelWithTicks",t.Parallel="Parallel",t.PerpendicularToFirstSegment="PerpendicularToFirstSegment",t.ParallelOffset="ParallelOffset",t.OffsetOpposite="OffsetOpposite",t.OffsetSame="OffsetSame",t.CircleWithArc="CircleWithArc",t.DoubleJog="DoubleJog",t.PerpendicularOffset="PerpendicularOffset",t.LineExcludingLastSegment="LineExcludingLastSegment",t.MultivertexArrow="MultivertexArrow",t.CrossedArrow="CrossedArrow",t.ChevronArrow="ChevronArrow",t.ChevronArrowOffset="ChevronArrowOffset",t.PartialFirstSegment="PartialFirstSegment",t.Arch="Arch",t.CurvedParallelTicks="CurvedParallelTicks",t.Arc90Degrees="Arc90Degrees"}(I||(I={})),function(t){t.Mitered="Mitered",t.Bevelled="Bevelled",t.Rounded="Rounded",t.Square="Square",t.TrueBuffer="TrueBuffer"}(L||(L={})),function(t){t.ClosePath="ClosePath",t.ConvexHull="ConvexHull",t.RectangularBox="RectangularBox"}(w||(w={})),function(t){t.BeginningOfLine="BeginningOfLine",t.EndOfLine="EndOfLine"}(v||(v={})),function(t){t.Mitered="Mitered",t.Bevelled="Bevelled",t.Rounded="Rounded",t.Square="Square"}(P||(P={})),function(t){t.Fast="Fast",t.Accurate="Accurate"}(A||(A={})),function(t){t.BeginningOfLine="BeginningOfLine",t.EndOfLine="EndOfLine"}(M||(M={})),function(t){t.Sinus="Sinus",t.Square="Square",t.Triangle="Triangle",t.Random="Random"}(B||(B={})),function(t){t[t.None=0]="None",t[t.Default=1]="Default",t[t.Force=2]="Force"}(R||(R={})),function(t){t[t.Buffered=0]="Buffered",t[t.Left=1]="Left",t[t.Right=2]="Right",t[t.AlongLine=3]="AlongLine"}(E||(E={})),function(t){t[t.Linear=0]="Linear",t[t.Rectangular=1]="Rectangular",t[t.Circular=2]="Circular",t[t.Buffered=3]="Buffered"}(S||(S={})),function(t){t[t.Discrete=0]="Discrete",t[t.Continuous=1]="Continuous"}(C||(C={})),function(t){t[t.AcrossLine=0]="AcrossLine",t[t.AloneLine=1]="AloneLine"}(O||(O={})),function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.Center=2]="Center",t[t.Justify=3]="Justify"}(D||(D={})),function(t){t[t.Base=0]="Base",t[t.MidPoint=1]="MidPoint",t[t.ThreePoint=2]="ThreePoint",t[t.FourPoint=3]="FourPoint",t[t.Underline=4]="Underline",t[t.CircularCW=5]="CircularCW",t[t.CircularCCW=6]="CircularCCW"}(N||(N={})),function(t){t.Butt="Butt",t.Round="Round",t.Square="Square"}(V||(V={})),function(t){t.NoConstraint="NoConstraint",t.HalfPattern="HalfPattern",t.HalfGap="HalfGap",t.FullPattern="FullPattern",t.FullGap="FullGap",t.Custom="Custom"}(k||(k={})),function(t){t[t.None=-1]="None",t[t.Custom=0]="Custom",t[t.Circle=1]="Circle",t[t.OpenArrow=2]="OpenArrow",t[t.ClosedArrow=3]="ClosedArrow",t[t.Diamond=4]="Diamond"}(F||(F={})),function(t){t[t.ExtraLeading=0]="ExtraLeading",t[t.Multiple=1]="Multiple",t[t.Exact=2]="Exact"}(U||(U={})),function(t){t.Bevel="Bevel",t.Round="Round",t.Miter="Miter"}(z||(z={})),function(t){t[t.Default=0]="Default",t[t.String=1]="String",t[t.Numeric=2]="Numeric"}(G||(G={})),function(t){t[t.InsidePolygon=0]="InsidePolygon",t[t.PolygonCenter=1]="PolygonCenter",t[t.RandomlyInsidePolygon=2]="RandomlyInsidePolygon"}(H||(H={})),function(t){t[t.Tint=0]="Tint",t[t.Replace=1]="Replace",t[t.Multiply=2]="Multiply"}(j||(j={})),function(t){t[t.ClipAtBoundary=0]="ClipAtBoundary",t[t.RemoveIfCenterOutsideBoundary=1]="RemoveIfCenterOutsideBoundary",t[t.DoNotTouchBoundary=2]="DoNotTouchBoundary",t[t.DoNotClip=3]="DoNotClip"}(W||(W={})),function(t){t.NoConstraint="NoConstraint",t.WithMarkers="WithMarkers",t.WithFullGap="WithFullGap",t.WithHalfGap="WithHalfGap",t.Custom="Custom"}(q||(q={})),function(t){t.Fixed="Fixed",t.Random="Random",t.RandomFixedQuantity="RandomFixedQuantity"}(K||(K={})),function(t){t.LineMiddle="LineMiddle",t.LineBeginning="LineBeginning",t.LineEnd="LineEnd",t.SegmentMidpoint="SegmentMidpoint"}(Y||(Y={})),function(t){t.OnPolygon="OnPolygon",t.CenterOfMass="CenterOfMass",t.BoundingBoxCenter="BoundingBoxCenter"}(Z||(Z={})),function(t){t[t.Low=0]="Low",t[t.Medium=1]="Medium",t[t.High=2]="High"}(J||(J={})),function(t){t[t.MarkerCenter=0]="MarkerCenter",t[t.MarkerBounds=1]="MarkerBounds"}(X||(X={})),function(t){t[t.None=0]="None",t[t.PropUniform=1]="PropUniform",t[t.PropNonuniform=2]="PropNonuniform",t[t.DifUniform=3]="DifUniform",t[t.DifNonuniform=4]="DifNonuniform"}(Q||(Q={})),function(t){t.Tube="Tube",t.Strip="Strip",t.Wall="Wall"}($||($={})),function(t){t[t.Random=0]="Random",t[t.Increasing=1]="Increasing",t[t.Decreasing=2]="Decreasing",t[t.IncreasingThenDecreasing=3]="IncreasingThenDecreasing"}(tt||(tt={})),function(t){t[t.Relative=0]="Relative",t[t.Absolute=1]="Absolute"}(et||(et={})),function(t){t[t.Normal=0]="Normal",t[t.LowerCase=1]="LowerCase",t[t.Allcaps=2]="Allcaps"}(it||(it={})),function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"}(nt||(nt={})),function(t){t.Draft="Draft",t.Picture="Picture",t.Text="Text"}(rt||(rt={})),function(t){t[t.Top=0]="Top",t[t.Center=1]="Center",t[t.Baseline=2]="Baseline",t[t.Bottom=3]="Bottom"}(st||(st={})),function(t){t[t.Right=0]="Right",t[t.Upright=1]="Upright"}(ot||(ot={})),function(t){t[t.Small=0]="Small",t[t.Medium=1]="Medium",t[t.Large=2]="Large"}(at||(at={})),function(t){t[t.Calm=0]="Calm",t[t.Rippled=1]="Rippled",t[t.Slight=2]="Slight",t[t.Moderate=3]="Moderate"}(lt||(lt={}))},d7bf:function(t,e,i){"use strict";i.d(e,"a",(function(){return z}));const n=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],r=["آ","أ","إ","ا"],s=["ﻵ","ﻷ","ﻹ","ﻻ"],o=["ﻶ","ﻸ","ﻺ","ﻼ"],a=["ا","ب","ت","ث","ج","ح","خ","د","ذ","ر","ز","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق","ك","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ی","ئ","ؤ"],l=["ﺍ","ﺏ","ﺕ","ﺙ","ﺝ","ﺡ","ﺥ","ﺩ","ﺫ","ﺭ","ﺯ","ﺱ","ﺵ","ﺹ","ﺽ","ﻁ","ﻅ","ﻉ","ﻍ","ﻑ","ﻕ","ﻙ","ﻝ","ﻡ","ﻥ","ﻩ","ﻭ","ﻱ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯼ","ﺉ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺉ","ﺅ"],u=["ﺎ","ﺐ","ﺖ","ﺚ","ﺞ","ﺢ","ﺦ","ﺪ","ﺬ","ﺮ","ﺰ","ﺲ","ﺶ","ﺺ","ﺾ","ﻂ","ﻆ","ﻊ","ﻎ","ﻒ","ﻖ","ﻚ","ﻞ","ﻢ","ﻦ","ﻪ","ﻮ","ﻲ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯽ","ﺊ","ﺆ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺊ","ﺆ"],h=["ﺎ","ﺒ","ﺘ","ﺜ","ﺠ","ﺤ","ﺨ","ﺪ","ﺬ","ﺮ","ﺰ","ﺴ","ﺸ","ﺼ","ﻀ","ﻄ","ﻈ","ﻌ","ﻐ","ﻔ","ﻘ","ﻜ","ﻠ","ﻤ","ﻨ","ﻬ","ﻮ","ﻴ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯿ","ﺌ","ﺆ","ﹱ","ﹲ","ﹴ","ﹷ","ﹹ","ﹻ","ﹽ","ﹿ","ﺀ","ﺌ","ﺆ"],c=["ﺍ","ﺑ","ﺗ","ﺛ","ﺟ","ﺣ","ﺧ","ﺩ","ﺫ","ﺭ","ﺯ","ﺳ","ﺷ","ﺻ","ﺿ","ﻃ","ﻇ","ﻋ","ﻏ","ﻓ","ﻗ","ﻛ","ﻟ","ﻣ","ﻧ","ﻫ","ﻭ","ﻳ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯾ","ﺋ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺋ","ﺅ"],f=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],d=["ً","ً","ٌ","؟","ٍ","؟","َ","َ","ُ","ُ","ِ","ِ","ّ","ّ","ْ","ْ","ء","آ","آ","أ","أ","ؤ","ؤ","إ","إ","ئ","ئ","ئ","ئ","ا","ا","ب","ب","ب","ب","ة","ة","ت","ت","ت","ت","ث","ث","ث","ث","ج","ج","ج","ج","ح","ح","ح","ح","خ","خ","خ","خ","د","د","ذ","ذ","ر","ر","ز","ز","س","س","س","س","ش","ش","ش","ش","ص","ص","ص","ص","ض","ض","ض","ض","ط","ط","ط","ط","ظ","ظ","ظ","ظ","ع","ع","ع","ع","غ","غ","غ","غ","ف","ف","ف","ف","ق","ق","ق","ق","ك","ك","ك","ك","ل","ل","ل","ل","م","م","م","م","ن","ن","ن","ن","ه","ه","ه","ه","و","و","ى","ى","ي","ي","ي","ي","ﻵ","ﻶ","ﻷ","ﻸ","ﻹ","ﻺ","ﻻ","ﻼ","؟","؟","؟"],y=["ء","ف"],x=["غ","ي"],p=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],m=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],g=0,_=1,b=2,T=3,I=4,L=5,w=6,v=7,P=8,A=9,M=10,B=11,R=12,E=13,S=14,C=15,O=16,D=17,N=18,V=["UBAT_L","UBAT_R","UBAT_EN","UBAT_AN","UBAT_ON","UBAT_B","UBAT_S","UBAT_AL","UBAT_WS","UBAT_CS","UBAT_ES","UBAT_ET","UBAT_NSM","UBAT_LRE","UBAT_RLE","UBAT_PDF","UBAT_LRO","UBAT_RLO","UBAT_BN"],k=100,F=[k+0,g,g,g,g,k+1,k+2,k+3,_,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,k+4,I,I,I,g,I,g,I,g,I,I,I,g,g,I,I,g,g,g,g,g,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,g,g,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,g,g,g,g,g,g,g,g,g,g,g,g,g,g,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,g,g,I,I,g,g,I,I,g,g,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,g,g,g,k+5,v,v,k+6,k+7],U=[[N,N,N,N,N,N,N,N,N,w,L,w,P,L,N,N,N,N,N,N,N,N,N,N,N,N,N,N,L,L,L,w,P,I,I,B,B,B,I,I,I,I,I,M,A,M,A,A,b,b,b,b,b,b,b,b,b,b,A,I,I,I,I,I,I,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,I,I,I,I,I,I,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,I,I,I,I,N,N,N,N,N,N,L,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,A,I,B,B,B,B,I,I,I,I,g,I,I,N,I,I,B,B,b,b,I,g,I,I,I,b,g,I,I,I,I,I,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,I,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,I,g,g,g,g,g,g,g,g],[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,I,I,I,I,I,I,I,I,I,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,I,I,g,g,g,g,g,g,g,I,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,I,g,I,I,I,I,I,I,I,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,_,R,_,R,R,_,R,R,_,R,I,I,I,I,I,I,I,I,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,I,I,I,I,I,_,_,_,_,_,I,I,I,I,I,I,I,I,I,I,I],[T,T,T,T,I,I,I,I,v,B,B,v,A,v,I,I,R,R,R,R,R,R,R,R,R,R,R,v,I,I,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,T,T,T,T,T,T,T,T,T,T,B,T,T,v,v,v,R,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,R,R,R,R,R,R,R,T,I,R,R,R,R,R,R,v,v,R,R,I,R,R,R,R,v,v,b,b,b,b,b,b,b,b,b,b,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,I,v,v,R,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,I,I,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,R,R,R,R,R,R,R,R,R,R,R,v,I,I,I,I,I,I,I,I,I,I,I,I,I,I,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,R,R,R,R,R,R,R,R,R,_,_,I,I,I,I,_,I,I,I,I,I],[P,P,P,P,P,P,P,P,P,P,P,N,N,N,g,_,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,P,L,E,S,C,O,D,A,B,B,B,B,B,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,A,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,P,N,N,N,N,N,I,I,I,I,I,N,N,N,N,N,N,b,g,I,I,b,b,b,b,b,b,M,M,I,I,I,g,b,b,b,b,b,b,b,b,b,b,M,M,I,I,I,I,g,g,g,g,g,g,g,g,g,g,g,g,g,I,I,I,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I],[g,g,g,g,g,g,g,I,I,I,I,I,I,I,I,I,I,I,I,g,g,g,g,g,I,I,I,I,I,_,R,_,_,_,_,_,_,_,_,_,_,M,_,_,_,_,_,_,_,_,_,_,_,_,_,I,_,_,_,_,_,I,_,I,_,_,I,_,_,I,_,_,_,_,_,_,_,_,_,_,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,R,R,R,R,R,R,R,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,A,I,A,I,I,A,I,I,I,I,I,I,I,I,I,B,I,I,M,M,I,I,I,I,I,B,B,I,I,I,I,I,v,v,v,v,v,I,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,I,I,N],[I,I,I,B,B,B,I,I,I,I,I,M,A,M,A,A,b,b,b,b,b,b,b,b,b,b,A,I,I,I,I,I,I,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,I,I,I,I,I,I,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,I,I,I,I,I,I,I,I,I,I,I,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,I,I,I,g,g,g,g,g,g,I,I,g,g,g,g,g,g,I,I,g,g,g,g,g,g,I,I,g,g,g,I,I,I,B,B,I,I,I,B,B,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I]];class z{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,i){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(xt(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,i))return t;e=this.inputFormat,i=this.outputFormat;let n=t;const r=Tt,s=ft(e.charAt(1)),o=ft(i.charAt(1)),a=("I"===e.charAt(0)?"L":e.charAt(0))+s,l=("I"===i.charAt(0)?"L":i.charAt(0))+o,u=e.charAt(2)+i.charAt(2);r.defInFormat=a,r.defOutFormat=l,r.defSwap=u;const h=G(t,a,l,u,r);let c=!1;return"R"===i.charAt(1)?c=!0:"C"!==i.charAt(1)&&"D"!==i.charAt(1)||(c="rtl"===this.checkContextual(h)),this.sourceToTarget=gt,this.targetToSource=pt(this.sourceToTarget),_t=this.targetToSource,n=e.charAt(3)===i.charAt(3)?h:"S"===i.charAt(3)?j(c,h,!0):Y(h,c,!0),this.sourceToTarget=gt,this.targetToSource=_t,this.levels=bt,n}_inputFormatSetter(t){if(!Pt.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!Pt.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=t}checkParameters(t,e){return t?this._inputFormatSetter(t):t=this.inputFormat,e?this._outputFormatSetter(e):e=this.outputFormat,t!==e}checkContextual(t){let e=q(t);if("ltr"!==e&&"rtl"!==e){try{e=document.dir.toLowerCase()}catch(i){}"ltr"!==e&&"rtl"!==e&&(e="ltr")}return e}hasBidiChar(t){return At.test(t)}}function G(t,e,i,n,r){const s=H(t,{inFormat:e,outFormat:i,swap:n},r);if(s.inFormat===s.outFormat)return t;e=s.inFormat,i=s.outFormat,n=s.swap;const o=e.substring(0,1),a=e.substring(1,4),l=i.substring(0,1),u=i.substring(1,4);if(r.inFormat=e,r.outFormat=i,r.swap=n,"L"===o&&"VLTR"===i){if("LTR"===a)return r.dir=wt,Z(t,r);if("RTL"===a)return r.dir=vt,Z(t,r)}if("V"===o&&"V"===l)return r.dir="RTL"===a?vt:wt,tt(t,r);if("L"===o&&"VRTL"===i)return"LTR"===a?(r.dir=wt,t=Z(t,r)):(r.dir=vt,t=Z(t,r)),tt(t);if("VLTR"===e&&"LLTR"===i)return r.dir=wt,Z(t,r);if("V"===o&&"L"===l&&a!==u)return t=tt(t),"RTL"===a?G(t,"LLTR","VLTR",n,r):G(t,"LRTL","VRTL",n,r);if("VRTL"===e&&"LRTL"===i)return G(t,"LRTL","VRTL",n,r);if("L"===o&&"L"===l){const e=r.swap;return r.swap=e.substr(0,1)+"N","RTL"===a?(r.dir=vt,t=Z(t,r),r.swap="N"+e.substr(1,2),r.dir=wt,t=Z(t,r)):(r.dir=wt,t=Z(t,r),r.swap="N"+e.substr(1,2),t=G(t,"VLTR","LRTL",r.swap,r)),t}return t}function H(t,e,i){if(void 0===e.inFormat&&(e.inFormat=i.defInFormat),void 0===e.outFormat&&(e.outFormat=i.defOutFormat),void 0===e.swap&&(e.swap=i.defSwap),e.inFormat===e.outFormat)return e;const n=e.inFormat.substring(0,1),r=e.outFormat.substring(0,1);let s,o=e.inFormat.substring(1,4),a=e.outFormat.substring(1,4);return"C"===o.charAt(0)&&(s=q(t),o="ltr"===s||"rtl"===s?s.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=n+o),"C"===a.charAt(0)&&(s=q(t),"rtl"===s?a="RTL":"ltr"===s?(s=K(t),a=s.toUpperCase()):a="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=r+a),e}function j(t,e,i){if(0===e.length)return"";void 0===t&&(t=!0),void 0===i&&(i=!0);const n=(e=String(e)).split("");let r=0,s=1,o=n.length;t||(r=n.length-1,s=-1,o=1);const a=W(n,r,s,o,i);let l="";for(let u=0;u<n.length;u++)i&&et(a,a.length,u)>-1?(mt(_t,u,!t,-1),gt.splice(u,1)):l+=n[u];return l}function W(t,e,i,n,r){let a=0;const h=[];let f=0;for(let d=e;d*i<n;d+=i)if(it(t[d])||ct(t[d])){if("ل"===t[d]&&rt(t,d+i,i,n)){t[d]=yt(t[d+i],0===a?s:o),d+=i,dt(t,d,i,n),r&&(h[f]=d,f++),a=0;continue}const e=t[d];1===a?t[d]=nt(t,d+i,i,n)?ut(t[d]):ht(t[d],u):!0===nt(t,d+i,i,n)?t[d]=ht(t[d],c):t[d]=ht(t[d],l),ct(e)||(a=1),!0===lt(e)&&(a=0)}else a=0;return h}function q(t){const e=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(t);return e?e[0]<="z"?"ltr":"rtl":""}function K(t){const e=t.split("");return e.reverse(),q(e.join(""))}function Y(t,e,i){if(0===t.length)return"";void 0===i&&(i=!0),void 0===e&&(e=!0);let n="";const s=(t=String(t)).split("");for(let o=0;o<t.length;o++){let a=!1;if(s[o]>="ﹰ"&&s[o]<"\ufeff"){const l=t.charCodeAt(o);s[o]>="ﻵ"&&s[o]<="ﻼ"?(e?(o>0&&i&&" "===s[o-1]?n=n.substring(0,n.length-1)+"ل":(n+="ل",a=!0),n+=r[(l-65269)/2]):(n+=r[(l-65269)/2],n+="ل",o+1<t.length&&i&&" "===s[o+1]?o++:a=!0),a&&(mt(_t,o,!0,1),gt.splice(o,0,gt[o]))):n+=d[l-65136]}else n+=s[o]}return n}function Z(t,e){const i=t.split(""),n=[];return J(i,n,e),Q(i,n,e),st(2,i,n,e),st(1,i,n,e),bt=n,i.join("")}function J(t,e,i){const n=t.length,r=i.dir?m:p;let s=0,o=-1;const a=[],l=[];i.hiLevel=i.dir,i.lastArabic=!1,i.hasUbatAl=!1,i.hasUbatB=!1,i.hasUbatS=!1;for(let u=0;u<n;u++)a[u]=$(t[u]);for(let u=0;u<n;u++){const n=s,h=ot(t,a,l,u,i);l[u]=h,s=r[n][h];const c=240&s;s&=15;const f=r[s][It];if(e[u]=f,c>0)if(16===c){for(let t=o;t<u;t++)e[t]=1;o=-1}else o=-1;if(r[s][Lt])-1===o&&(o=u);else if(o>-1){for(let t=o;t<u;t++)e[t]=f;o=-1}a[u]===L&&(e[u]=0),i.hiLevel|=f}i.hasUbatS&&X(a,e,n,i)}function X(t,e,i,n){for(let r=0;r<i;r++)if(t[r]===w){e[r]=n.dir;for(let i=r-1;i>=0&&t[i]===P;i--)e[i]=n.dir}}function Q(t,e,i){if(0!==i.hiLevel&&i.swap.substr(0,1)!==i.swap.substr(1,2))for(let n=0;n<t.length;n++)1===e[n]&&(t[n]=at(t[n]))}function $(t){const e=t.charCodeAt(0),i=F[e>>8];return i<k?i:U[i-k][255&e]}function tt(t,e){const i=t.split("");if(e){const t=[];J(i,t,e),bt=t}return i.reverse(),gt.reverse(),i.join("")}function et(t,e,i){for(let n=0;n<e;n++)if(t[n]===i)return n;return-1}function it(t){for(let e=0;e<y.length;e++)if(t>=y[e]&&t<=x[e])return!0;return!1}function nt(t,e,i,n){for(;e*i<n&&ct(t[e]);)e+=i;return!!(e*i<n&&it(t[e]))}function rt(t,e,i,n){for(;e*i<n&&ct(t[e]);)e+=i;let s=" ";if(!(e*i<n))return!1;s=t[e];for(let o=0;o<r.length;o++)if(r[o]===s)return!0;return!1}function st(t,e,i,n){if(n.hiLevel<t)return;if(1===t&&n.dir===vt&&!n.hasUbatB)return e.reverse(),void gt.reverse();const r=e.length;let s,o,a,l,u,h=0;for(;h<r;){if(i[h]>=t){for(s=h+1;s<r&&i[s]>=t;)s++;for(o=h,a=s-1;o<a;o++,a--)l=e[o],e[o]=e[a],e[a]=l,u=gt[o],gt[o]=gt[a],gt[a]=u;h=s}h++}}function ot(t,e,i,n,r){const s=e[n];return{UBAT_L:()=>(r.lastArabic=!1,g),UBAT_R:()=>(r.lastArabic=!1,_),UBAT_ON:()=>I,UBAT_AN:()=>T,UBAT_EN:()=>r.lastArabic?T:b,UBAT_AL:()=>(r.lastArabic=!0,r.hasUbatAl=!0,_),UBAT_WS:()=>I,UBAT_CS:()=>{let t,s;return n<1||n+1>=e.length||(t=i[n-1])!==b&&t!==T||(s=e[n+1])!==b&&s!==T?I:(r.lastArabic&&(s=T),s===t?s:I)},UBAT_ES:()=>(n>0?i[n-1]:L)===b&&n+1<e.length&&e[n+1]===b?b:I,UBAT_ET:()=>{if(n>0&&i[n-1]===b)return b;if(r.lastArabic)return I;let t=n+1;const s=e.length;for(;t<s&&e[t]===B;)t++;return t<s&&e[t]===b?b:I},UBAT_NSM:()=>{if("VLTR"===r.inFormat){const i=e.length;let r=n+1;for(;r<i&&e[r]===R;)r++;if(r<i){const i=t[n].charCodeAt[0],s=i>=1425&&i<=2303||64286===i,o=e[r];if(s&&(o===_||o===v))return _}}return n<1||e[n-1]===L?I:i[n-1]},UBAT_B:()=>(r.lastArabic=!0,r.hasUbatB=!0,r.dir),UBAT_S:()=>(r.hasUbatS=!0,I),UBAT_LRE:()=>(r.lastArabic=!1,I),UBAT_RLE:()=>(r.lastArabic=!1,I),UBAT_LRO:()=>(r.lastArabic=!1,I),UBAT_RLO:()=>(r.lastArabic=!1,I),UBAT_PDF:()=>(r.lastArabic=!1,I),UBAT_BN:()=>I}[V[s]]()}function at(t){let e,i=0,r=n.length-1;for(;i<=r;)if(e=Math.floor((i+r)/2),t<n[e][0])r=e-1;else{if(!(t>n[e][0]))return n[e][1];i=e+1}return t}function lt(t){for(let e=0;e<f.length;e++)if(f[e]===t)return!0;return!1}function ut(t){for(let e=0;e<a.length;e++)if(t===a[e])return h[e];return t}function ht(t,e){for(let i=0;i<a.length;i++)if(t===a[i])return e[i];return t}function ct(t){return t>="ً"&&t<="ٕ"}function ft(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function dt(t,e,i,n){for(;e*i<n&&ct(t[e]);)e+=i;return e*i<n&&(t[e]=" ",!0)}function yt(t,e){for(let i=0;i<r.length;i++)if(t===r[i])return e[i];return t}function xt(t,e,i){gt=[],bt=[];for(let n=0;n<i;n++)t[n]=n,e[n]=n,gt[n]=n}function pt(t){const e=new Array(t.length);for(let i=0;i<t.length;i++)e[t[i]]=i;return e}function mt(t,e,i,n){for(let r=0;r<t.length;r++)(t[r]>e||!i&&t[r]===e)&&(t[r]+=n)}let gt=[],_t=[],bt=[];const Tt={dir:0,defInFormat:"LLTR",defoutFormat:"VLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,hasBlockSep:!1,hasSegSep:!1,defOutFormat:""},It=5,Lt=6,wt=0,vt=1,Pt=/^[(I|V)][(L|R|C|D)][(Y|N)][(S|N)][N]$/,At=/[\u0591-\u06ff\ufb1d-\ufefc]/},ef89:function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return d})),i.d(e,"c",(function(){return n})),i.d(e,"d",(function(){return l})),i.d(e,"e",(function(){return s})),i.d(e,"f",(function(){return a})),i.d(e,"g",(function(){return u})),i.d(e,"h",(function(){return c})),i.d(e,"i",(function(){return h})),i.d(e,"j",(function(){return r}));var n,r,s,o,a,l,u,h,c,f=i("ab39");!function(t){t[t.BACKGROUND=0]="BACKGROUND",t[t.FILL=1]="FILL",t[t.LINE=2]="LINE",t[t.SYMBOL=3]="SYMBOL",t[t.CIRCLE=4]="CIRCLE"}(n||(n={})),function(t){t[t.VISIBLE=0]="VISIBLE",t[t.NONE=1]="NONE"}(r||(r={})),function(t){t[t.POINT=0]="POINT",t[t.LINE=1]="LINE",t[t.LINE_CENTER=2]="LINE_CENTER"}(s||(s={})),function(t){t[t.MAP=0]="MAP",t[t.VIEWPORT=1]="VIEWPORT",t[t.AUTO=2]="AUTO"}(o||(o={})),function(t){t[t.AUTO=0]="AUTO",t[t.LEFT=1]="LEFT",t[t.CENTER=2]="CENTER",t[t.RIGHT=3]="RIGHT"}(a||(a={})),function(t){t[t.CENTER=0]="CENTER",t[t.LEFT=1]="LEFT",t[t.RIGHT=2]="RIGHT",t[t.TOP=3]="TOP",t[t.BOTTOM=4]="BOTTOM",t[t.TOP_LEFT=5]="TOP_LEFT",t[t.TOP_RIGHT=6]="TOP_RIGHT",t[t.BOTTOM_LEFT=7]="BOTTOM_LEFT",t[t.BOTTOM_RIGHT=8]="BOTTOM_RIGHT"}(l||(l={})),function(t){t[t.NONE=0]="NONE",t[t.UPPERCASE=1]="UPPERCASE",t[t.LOWERCASE=2]="LOWERCASE"}(u||(u={})),function(t){t[t.MAP=0]="MAP",t[t.VIEWPORT=1]="VIEWPORT"}(h||(h={})),function(t){t[t.HORIZONTAL=0]="HORIZONTAL",t[t.VERTICAL=1]="VERTICAL"}(c||(c={}));class d{}d.backgroundLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:r.VISIBLE}},d.fillLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:r.VISIBLE}},d.lineLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:r.VISIBLE},"line-cap":{type:"enum",values:["butt","round","square"],default:f["d"].BUTT},"line-join":{type:"enum",values:["bevel","round","miter"],default:f["o"].MITER},"line-miter-limit":{type:"number",default:2},"line-round-limit":{type:"number",default:1.05}},d.symbolLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:r.VISIBLE},"symbol-avoid-edges":{type:"boolean",default:!1},"symbol-placement":{type:"enum",values:["point","line","line-center"],default:s.POINT},"symbol-sort-key":{type:"number",default:-1},"symbol-spacing":{type:"number",minimum:1,default:250},"icon-allow-overlap":{type:"boolean",default:!1},"icon-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:l.CENTER},"icon-ignore-placement":{type:"boolean",default:!1},"icon-image":{type:"string"},"icon-keep-upright":{type:"boolean",default:!1},"icon-offset":{type:"array",value:"number",length:2,default:[0,0]},"icon-optional":{type:"boolean",default:!1},"icon-padding":{type:"number",minimum:0,default:2},"icon-rotate":{type:"number",default:0},"icon-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:o.AUTO},"icon-size":{type:"number",minimum:0,default:1},"text-allow-overlap":{type:"boolean",default:!1},"text-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:l.CENTER},"text-field":{type:"string"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"]},"text-ignore-placement":{type:"boolean",default:!1},"text-justify":{type:"enum",values:["auto","left","center","right"],default:a.CENTER},"text-keep-upright":{type:"boolean",default:!0},"text-letter-spacing":{type:"number",default:0},"text-line-height":{type:"number",default:1.2},"text-max-angle":{type:"number",minimum:0,default:45},"text-max-width":{type:"number",minimum:0,default:10},"text-offset":{type:"array",value:"number",length:2,default:[0,0]},"text-optional":{type:"boolean",default:!1},"text-padding":{type:"number",minimum:0,default:2},"text-rotate":{type:"number",default:0},"text-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:o.AUTO},"text-size":{type:"number",minimum:0,default:16},"text-transform":{type:"enum",values:["none","uppercase","lowercase"],default:u.NONE},"text-writing-mode":{type:"array",value:"enum",values:["horizontal","vertical"],default:[c.HORIZONTAL]}},d.circleLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:r.VISIBLE}},d.backgroundPaintDefinition={"background-color":{type:"color",default:[0,0,0,1]},"background-opacity":{type:"number",minimum:0,maximum:1,default:1},"background-pattern":{type:"string"}},d.fillPaintDefinition={"fill-antialias":{type:"boolean",default:!0},"fill-color":{type:"color",default:[0,0,0,1]},"fill-opacity":{type:"number",minimum:0,maximum:1,default:1},"fill-outline-color":{type:"color",default:[0,0,0,0]},"fill-pattern":{type:"string"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0]},"fill-translate-anchor":{type:"enum",values:["map","viewport"],default:h.MAP}},d.linePaintDefinition={"line-blur":{type:"number",minimum:0,default:0},"line-color":{type:"color",default:[0,0,0,1]},"line-dasharray":{type:"array",value:"number",default:[]},"line-gap-width":{type:"number",minimum:0,default:0},"line-offset":{type:"number",default:0},"line-opacity":{type:"number",minimum:0,maximum:1,default:1},"line-pattern":{type:"string"},"line-translate":{type:"array",value:"number",length:2,default:[0,0]},"line-translate-anchor":{type:"enum",values:["map","viewport"],default:h.MAP},"line-width":{type:"number",minimum:0,default:1}},d.symbolPaintDefinition={"icon-color":{type:"color",default:[0,0,0,1]},"icon-halo-blur":{type:"number",minimum:0,default:0},"icon-halo-color":{type:"color",default:[0,0,0,0]},"icon-halo-width":{type:"number",minimum:0,default:0},"icon-opacity":{type:"number",minimum:0,maximum:1,default:1},"icon-translate":{type:"array",value:"number",length:2,default:[0,0]},"icon-translate-anchor":{type:"enum",values:["map","viewport"],default:h.MAP},"text-color":{type:"color",default:[0,0,0,1]},"text-halo-blur":{type:"number",minimum:0,default:0},"text-halo-color":{type:"color",default:[0,0,0,0]},"text-halo-width":{type:"number",minimum:0,default:0},"text-opacity":{type:"number",minimum:0,maximum:1,default:1},"text-translate":{type:"array",value:"number",length:2,default:[0,0]},"text-translate-anchor":{type:"enum",values:["map","viewport"],default:h.MAP}},d.rasterPaintDefinition={"raster-opacity":{type:"number",minimum:0,maximum:1,default:1},"raster-hue-rotate":{type:"number",default:0},"raster-brightness-min":{type:"number",minimum:0,maximum:1,default:0},"raster-brightness-max":{type:"number",minimum:0,maximum:1,default:1},"raster-saturation":{type:"number",minimum:-1,maximum:1,default:0},"raster-contrast":{type:"number",minimum:-1,maximum:1,default:0},"raster-fade-duration":{type:"number",minimum:0,default:300}},d.circlePaintDefinition={"circle-blur":{type:"number",minimum:0,default:0},"circle-color":{type:"color",default:[0,0,0,1]},"circle-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-radius":{type:"number",minimum:0,default:5},"circle-stroke-color":{type:"color",default:[0,0,0,1]},"circle-stroke-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-stroke-width":{type:"number",minimum:0,default:0},"circle-translate":{type:"array",value:"number",length:2,default:[0,0]},"circle-translate-anchor":{type:"enum",values:["map","viewport"],default:h.MAP}}}}]);
  2. //# sourceMappingURL=chunk-d134a92a.e5cabb63.js.map