Files
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

3 lines
516 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*! For license information please see common.js.LICENSE.txt */
(()=>{var t,e={9828:t=>{"use strict";function e(t,e){this.x=t,this.y=e}t.exports=e,e.prototype={clone:function(){return new e(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=e*this.x-r*this.y,i=r*this.x+e*this.y;return this.x=n,this.y=i,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.x+r*(this.x-e.x)-n*(this.y-e.y),o=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=i,this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},e.convert=function(t){return t instanceof e?t:Array.isArray(t)?new e(t[0],t[1]):t}},8657:t=>{function e(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}t.exports=e,e.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},e.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},e.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},e.prototype.solveCurveX=function(t,e){var r,n,i,o,a;for(void 0===e&&(e=1e-6),i=t,a=0;a<8;a++){if(o=this.sampleCurveX(i)-t,Math.abs(o)<e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=o/s}if((i=t)<(r=0))return r;if(i>(n=1))return n;for(;r<n;){if(o=this.sampleCurveX(i),Math.abs(o-t)<e)return i;t>o?r=i:n=i,i=.5*(n-r)+r}return i},e.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}},5933:(t,e)=>{var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(t){return(t=Math.round(t))<0?0:t>255?255:t}function i(t){return t<0?0:t>1?1:t}function o(t){return"%"===t[t.length-1]?n(parseFloat(t)/100*255):n(parseInt(t))}function a(t){return"%"===t[t.length-1]?i(parseFloat(t)/100):i(parseFloat(t))}function s(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}try{e.G=function(t){var e,i=t.replace(/ /g,"").toLowerCase();if(i in r)return r[i].slice();if("#"===i[0])return 4===i.length?(e=parseInt(i.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===i.length&&(e=parseInt(i.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var l=i.indexOf("("),u=i.indexOf(")");if(-1!==l&&u+1===i.length){var h=i.substr(0,l),p=i.substr(l+1,u-(l+1)).split(","),c=1;switch(h){case"rgba":if(4!==p.length)return null;c=a(p.pop());case"rgb":return 3!==p.length?null:[o(p[0]),o(p[1]),o(p[2]),c];case"hsla":if(4!==p.length)return null;c=a(p.pop());case"hsl":if(3!==p.length)return null;var f=(parseFloat(p[0])%360+360)%360/360,d=a(p[1]),y=a(p[2]),g=y<=.5?y*(d+1):y+d-y*d,v=2*y-g;return[n(255*s(v,g,f+1/3)),n(255*s(v,g,f)),n(255*s(v,g,f-1/3)),c];default:return null}}return null}}catch(t){}},5796:(t,e)=>{e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,u=l>>1,h=-7,p=r?i-1:0,c=r?-1:1,f=t[e+p];for(p+=c,o=f&(1<<-h)-1,f>>=-h,h+=s;h>0;o=256*o+t[e+p],p+=c,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=256*a+t[e+p],p+=c,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=u}return(f?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,l,u=8*o-i-1,h=(1<<u)-1,p=h>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+p>=1?c/l:c*Math.pow(2,1-p))*l>=2&&(a++,l/=2),a+p>=h?(s=0,a=h):a+p>=1?(s=(e*l-1)*Math.pow(2,i),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;t[r+f]=255&s,f+=d,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[r+f]=255&a,f+=d,a/=256,u-=8);t[r+f-d]|=128*y}},4376:t=>{var e={thin:100,hairline:100,"ultra-light":100,"extra-light":100,light:200,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,heavy:800,black:800,"extra-bold":800,"ultra-black":900,"extra-black":900,"ultra-bold":900,"heavy-black":900,fat:900,poster:900},r=" ",n=/(italic|oblique)$/i,i={};t.exports=function(t,o,a){var s=i[t];if(!s){Array.isArray(t)||(t=[t]);for(var l=400,u="normal",h=[],p=0,c=t.length;p<c;++p){var f=t[p].split(" "),d=f[f.length-1].toLowerCase();for(var y in"normal"==d||"italic"==d||"oblique"==d?(u=d,f.pop(),d=f[f.length-1].toLowerCase()):n.test(d)&&(d=d.replace(n,""),u=f[f.length-1].replace(d,"")),e){var g=f.length>1?f[f.length-2].toLowerCase():"";if(d==y||d==y.replace("-","")||g+"-"+d==y){l=e[y],f.pop(),g&&y.startsWith(g)&&f.pop();break}}"number"==typeof d&&(l=d);var v=f.join(r).replace("Klokantech Noto Sans","Noto Sans");-1!==v.indexOf(r)&&(v='"'+v+'"'),h.push(v)}s=i[t]=[u,l,h]}return s[0]+r+s[1]+r+o+"px"+(a?"/"+a:"")+r+s[2]}},1494:t=>{t.exports=function t(r,n){if(!r){var i=new e(n);throw Error.captureStackTrace&&Error.captureStackTrace(i,t),i}};var e=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error);e.prototype.name="AssertionError"},9455:(t,e,r)=>{"use strict";t.exports=i;var n=r(5796);function i(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}i.Varint=0,i.Fixed64=1,i.Bytes=2,i.Fixed32=5;var o=4294967296,a=1/o,s="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function l(t){return t.type===i.Bytes?t.readVarint()+t.pos:t.pos+1}function u(t,e,r){return r?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function h(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i>=t;i--)r.buf[i+n]=r.buf[i]}function p(t,e){for(var r=0;r<t.length;r++)e.writeVarint(t[r])}function c(t,e){for(var r=0;r<t.length;r++)e.writeSVarint(t[r])}function f(t,e){for(var r=0;r<t.length;r++)e.writeFloat(t[r])}function d(t,e){for(var r=0;r<t.length;r++)e.writeDouble(t[r])}function y(t,e){for(var r=0;r<t.length;r++)e.writeBoolean(t[r])}function g(t,e){for(var r=0;r<t.length;r++)e.writeFixed32(t[r])}function v(t,e){for(var r=0;r<t.length;r++)e.writeSFixed32(t[r])}function m(t,e){for(var r=0;r<t.length;r++)e.writeFixed64(t[r])}function _(t,e){for(var r=0;r<t.length;r++)e.writeSFixed64(t[r])}function x(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function b(t,e,r){t[r]=e,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function w(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}i.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos<r;){var n=this.readVarint(),i=n>>3,o=this.pos;this.type=7&n,t(i,e,this),this.pos===o&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=x(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=w(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=x(this.buf,this.pos)+x(this.buf,this.pos+4)*o;return this.pos+=8,t},readSFixed64:function(){var t=x(this.buf,this.pos)+w(this.buf,this.pos+4)*o;return this.pos+=8,t},readFloat:function(){var t=n.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=n.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&(r=n[this.pos++]),r<128?e:(e|=(127&(r=n[this.pos++]))<<7,r<128?e:(e|=(127&(r=n[this.pos++]))<<14,r<128?e:(e|=(127&(r=n[this.pos++]))<<21,r<128?e:function(t,e,r){var n,i,o=r.buf;if(n=(112&(i=o[r.pos++]))>>4,i<128)return u(t,n,e);if(n|=(127&(i=o[r.pos++]))<<3,i<128)return u(t,n,e);if(n|=(127&(i=o[r.pos++]))<<10,i<128)return u(t,n,e);if(n|=(127&(i=o[r.pos++]))<<17,i<128)return u(t,n,e);if(n|=(127&(i=o[r.pos++]))<<24,i<128)return u(t,n,e);if(n|=(1&(i=o[r.pos++]))<<31,i<128)return u(t,n,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(r=n[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&s?function(t,e,r){return s.decode(t.subarray(e,r))}(this.buf,e,t):function(t,e,r){for(var n="",i=e;i<r;){var o,a,s,l=t[i],u=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h>r)break;1===h?l<128&&(u=l):2===h?128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)<=127&&(u=null):3===h?(o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&((u=(15&l)<<12|(63&o)<<6|63&a)<=2047||u>=55296&&u<=57343)&&(u=null)):4===h&&(o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&((u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,h=1):u>65535&&(u-=65536,n+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),n+=String.fromCharCode(u),i+=h}return n}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==i.Bytes)return t.push(this.readVarint(e));var r=l(this);for(t=t||[];this.pos<r;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==i.Bytes)return t.push(this.readSVarint());var e=l(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==i.Bytes)return t.push(this.readBoolean());var e=l(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==i.Bytes)return t.push(this.readFloat());var e=l(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==i.Bytes)return t.push(this.readDouble());var e=l(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==i.Bytes)return t.push(this.readFixed32());var e=l(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==i.Bytes)return t.push(this.readSFixed32());var e=l(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==i.Bytes)return t.push(this.readFixed64());var e=l(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==i.Bytes)return t.push(this.readSFixed64());var e=l(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===i.Varint)for(;this.buf[this.pos++]>127;);else if(e===i.Bytes)this.pos=this.readVarint()+this.pos;else if(e===i.Fixed32)this.pos+=4;else{if(e!==i.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),b(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),b(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),b(this.buf,-1&t,this.pos),b(this.buf,Math.floor(t*a),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),b(this.buf,-1&t,this.pos),b(this.buf,Math.floor(t*a),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)>268435455||t<0?function(t,e){var r,n;if(t>=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos]=127&t}(r,0,e),function(t,e){var r=(7&t)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,i,o=0;o<e.length;o++){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){n>56319||o+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296<<10|n-56320|65536,i=null}else i&&(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=63&n|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r>=128&&h(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),n.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),n.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r<e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n>=128&&h(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,i.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,p,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,c,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,y,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,f,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,d,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,g,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,v,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,m,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,_,e)},writeBytesField:function(t,e){this.writeTag(t,i.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,i.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,i.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,i.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}},53:function(t){t.exports=function(){"use strict";function t(t,n,i,o,a){!function t(r,n,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=n-i+1,u=Math.log(s),h=.5*Math.exp(2*u/3),p=.5*Math.sqrt(u*h*(s-h)/s)*(l-s/2<0?-1:1);t(r,n,Math.max(i,Math.floor(n-l*h/s+p)),Math.min(o,Math.floor(n+(s-l)*h/s+p)),a)}var c=r[n],f=i,d=o;for(e(r,i,n),a(r[o],c)>0&&e(r,i,o);f<d;){for(e(r,f,d),f++,d--;a(r[f],c)<0;)f++;for(;a(r[d],c)>0;)d--}0===a(r[i],c)?e(r,i,d):e(r,++d,o),d<=n&&(i=d+1),n<=d&&(o=d-1)}}(t,n,i||0,o||t.length-1,a||r)}function e(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function r(t,e){return t<e?-1:t>e?1:0}var n=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(t,e,r){if(!r)return e.indexOf(t);for(var n=0;n<e.length;n++)if(r(t,e[n]))return n;return-1}function o(t,e){a(t,0,t.children.length,e,t)}function a(t,e,r,n,i){i||(i=d(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=e;o<r;o++){var a=t.children[o];s(i,t.leaf?n(a):a)}return i}function s(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function l(t,e){return t.minX-e.minX}function u(t,e){return t.minY-e.minY}function h(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function p(t){return t.maxX-t.minX+(t.maxY-t.minY)}function c(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function f(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function d(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(e,r,n,i,o){for(var a=[r,n];a.length;)if(!((n=a.pop())-(r=a.pop())<=i)){var s=r+Math.ceil((n-r)/i/2)*i;t(e,s,r,n,o),a.push(r,s,s,n)}}return n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(t){var e=this.data,r=[];if(!f(t,e))return r;for(var n=this.toBBox,i=[];e;){for(var o=0;o<e.children.length;o++){var a=e.children[o],s=e.leaf?n(a):a;f(t,s)&&(e.leaf?r.push(a):c(t,s)?this._all(a,r):i.push(a))}e=i.pop()}return r},n.prototype.collides=function(t){var e=this.data;if(!f(t,e))return!1;for(var r=[];e;){for(var n=0;n<e.children.length;n++){var i=e.children[n],o=e.leaf?this.toBBox(i):i;if(f(t,o)){if(e.leaf||c(t,o))return!0;r.push(i)}}e=r.pop()}return!1},n.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var r=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var n=this.data;this.data=r,r=n}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},n.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},n.prototype.clear=function(){return this.data=d([]),this},n.prototype.remove=function(t,e){if(!t)return this;for(var r,n,o,a=this.data,s=this.toBBox(t),l=[],u=[];a||l.length;){if(a||(a=l.pop(),n=l[l.length-1],r=u.pop(),o=!0),a.leaf){var h=i(t,a.children,e);if(-1!==h)return a.children.splice(h,1),l.push(a),this._condense(l),this}o||a.leaf||!c(a,s)?n?(r++,a=n.children[r],o=!1):a=null:(l.push(a),u.push(r),r=0,n=a,a=a.children[0])}return this},n.prototype.toBBox=function(t){return t},n.prototype.compareMinX=function(t,e){return t.minX-e.minX},n.prototype.compareMinY=function(t,e){return t.minY-e.minY},n.prototype.toJSON=function(){return this.data},n.prototype.fromJSON=function(t){return this.data=t,this},n.prototype._all=function(t,e){for(var r=[];t;)t.leaf?e.push.apply(e,t.children):r.push.apply(r,t.children),t=r.pop();return e},n.prototype._build=function(t,e,r,n){var i,a=r-e+1,s=this._maxEntries;if(a<=s)return o(i=d(t.slice(e,r+1)),this.toBBox),i;n||(n=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,n-1))),(i=d([])).leaf=!1,i.height=n;var l=Math.ceil(a/s),u=l*Math.ceil(Math.sqrt(s));y(t,e,r,u,this.compareMinX);for(var h=e;h<=r;h+=u){var p=Math.min(h+u-1,r);y(t,h,p,l,this.compareMinY);for(var c=h;c<=p;c+=l){var f=Math.min(c+l-1,p);i.children.push(this._build(t,c,f,n-1))}}return o(i,this.toBBox),i},n.prototype._chooseSubtree=function(t,e,r,n){for(;n.push(e),!e.leaf&&n.length-1!==r;){for(var i=1/0,o=1/0,a=void 0,s=0;s<e.children.length;s++){var l=e.children[s],u=h(l),p=(c=t,f=l,(Math.max(f.maxX,c.maxX)-Math.min(f.minX,c.minX))*(Math.max(f.maxY,c.maxY)-Math.min(f.minY,c.minY))-u);p<o?(o=p,i=u<i?u:i,a=l):p===o&&u<i&&(i=u,a=l)}e=a||e.children[0]}var c,f;return e},n.prototype._insert=function(t,e,r){var n=r?t:this.toBBox(t),i=[],o=this._chooseSubtree(n,this.data,e,i);for(o.children.push(t),s(o,n);e>=0&&i[e].children.length>this._maxEntries;)this._split(i,e),e--;this._adjustParentBBoxes(n,i,e)},n.prototype._split=function(t,e){var r=t[e],n=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,n);var a=this._chooseSplitIndex(r,i,n),s=d(r.children.splice(a,r.children.length-a));s.height=r.height,s.leaf=r.leaf,o(r,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(r,s)},n.prototype._splitRoot=function(t,e){this.data=d([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},n.prototype._chooseSplitIndex=function(t,e,r){for(var n,i,o,s,l,u,p,c=1/0,f=1/0,d=e;d<=r-e;d++){var y=a(t,0,d,this.toBBox),g=a(t,d,r,this.toBBox),v=(i=y,o=g,void 0,void 0,void 0,void 0,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),u=Math.min(i.maxX,o.maxX),p=Math.min(i.maxY,o.maxY),Math.max(0,u-s)*Math.max(0,p-l)),m=h(y)+h(g);v<c?(c=v,n=d,f=m<f?m:f):v===c&&m<f&&(f=m,n=d)}return n||r-e},n.prototype._chooseSplitAxis=function(t,e,r){var n=t.leaf?this.compareMinX:l,i=t.leaf?this.compareMinY:u;this._allDistMargin(t,e,r,n)<this._allDistMargin(t,e,r,i)&&t.children.sort(n)},n.prototype._allDistMargin=function(t,e,r,n){t.children.sort(n);for(var i=this.toBBox,o=a(t,0,e,i),l=a(t,r-e,r,i),u=p(o)+p(l),h=e;h<r-e;h++){var c=t.children[h];s(o,t.leaf?i(c):c),u+=p(o)}for(var f=r-e-1;f>=e;f--){var d=t.children[f];s(l,t.leaf?i(d):d),u+=p(l)}return u},n.prototype._adjustParentBBoxes=function(t,e,r){for(var n=r;n>=0;n--)s(e[n],t)},n.prototype._condense=function(t){for(var e=t.length-1,r=void 0;e>=0;e--)0===t[e].children.length?e>0?(r=t[e-1].children).splice(r.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},n}()},840:t=>{t.exports={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},fog:{type:"fog"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},projection:{type:"projection"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{},sky:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_symbol:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature","pitch","distance-from-center"]}},filter_fill:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_line:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_circle:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},"filter_fill-extrusion":{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_heatmap:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Camera"},pitch:{group:"Camera"},"distance-from-center":{group:"Camera"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},"sky-radial-progress":{group:"sky"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"high-color":{type:"color","property-type":"data-constant",default:"#245cdf",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"space-color":{type:"color","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,.2,7,.1],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"star-intensity":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],5,.35,6,0],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},projection:{name:{type:"enum",values:{albers:{},equalEarth:{},equirectangular:{},lambertConformalConic:{},mercator:{},naturalEarth:{},winkelTripel:{},globe:{}},default:"mercator",required:!0},center:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-180,-90],maximum:[180,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]},parallels:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-90,-90],maximum:[90,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["source"]}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{type:"array",value:"number",length:2,default:[0,0],minimum:[0,0],maximum:[1,1],transition:!1,requires:[{source:"geojson",has:{lineMetrics:!0}}],"property-type":"constant"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}}},9789:()=>{},6643:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});var n,i=r(4415),o=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const a=function(t){function e(e){var r=this,n="Assertion failed. See https://openlayers.org/en/"+("latest"===i.q4?i.q4:"v"+i.q4.split("-")[0])+"/doc/errors/#"+e+" for details.";return(r=t.call(this,n)||this).code=e,r.name="AssertionError",r.message=n,r}return o(e,t),e}(Error)},6193:(t,e,r)=>{"use strict";r.d(e,{Z:()=>p});var n,i=r(6643),o=r(12),a=r(5917),s=r(7288),l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u="length",h=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.element=r,i.index=n,i}return l(e,t),e}(s.ZP);const p=function(t){function e(e,r){var n=t.call(this)||this;n.on,n.once,n.un;var i=r||{};if(n.unique_=!!i.unique,n.array_=e||[],n.unique_)for(var o=0,a=n.array_.length;o<a;++o)n.assertUnique_(n.array_[o],o);return n.updateLength_(),n}return l(e,t),e.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},e.prototype.extend=function(t){for(var e=0,r=t.length;e<r;++e)this.push(t[e]);return this},e.prototype.forEach=function(t){for(var e=this.array_,r=0,n=e.length;r<n;++r)t(e[r],r,e)},e.prototype.getArray=function(){return this.array_},e.prototype.item=function(t){return this.array_[t]},e.prototype.getLength=function(){return this.get(u)},e.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new h(a.Z.ADD,e,t))},e.prototype.pop=function(){return this.removeAt(this.getLength()-1)},e.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},e.prototype.remove=function(t){for(var e=this.array_,r=0,n=e.length;r<n;++r)if(e[r]===t)return this.removeAt(r)},e.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new h(a.Z.REMOVE,e,t)),e},e.prototype.setAt=function(t,e){var r=this.getLength();if(t<r){this.unique_&&this.assertUnique_(e,t);var n=this.array_[t];this.array_[t]=e,this.dispatchEvent(new h(a.Z.REMOVE,n,t)),this.dispatchEvent(new h(a.Z.ADD,e,t))}else{for(var i=r;i<t;++i)this.insertAt(i,void 0);this.insertAt(t,e)}},e.prototype.updateLength_=function(){this.set(u,this.array_.length)},e.prototype.assertUnique_=function(t,e){for(var r=0,n=this.array_.length;r<n;++r)if(this.array_[r]===t&&r!==e)throw new i.Z(58)},e}(o.Z)},5917:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={ADD:"add",REMOVE:"remove"}},2083:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n=function(){function t(){this.disposed=!1}return t.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},t.prototype.disposeInternal=function(){},t}()},3458:(t,e,r)=>{"use strict";r.d(e,{K:()=>y});var n,i=r(7758),o=r(8408),a=r(4415),s=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),l=function(t){function e(e,r,n,i){var o=t.call(this)||this;return o.extent=e,o.pixelRatio_=n,o.resolution=r,o.state=i,o}return s(e,t),e.prototype.changed=function(){this.dispatchEvent(i.Z.CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return(0,a.O3)()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){(0,a.O3)()},e}(o.Z);const u=l;var h=r(8260),p=r(6299),c=r(2005),f=r(5310),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function y(t,e,r){var n=t,o=!0,a=!1,s=!1,l=[(0,f.Vx)(n,i.Z.LOAD,(function(){s=!0,a||e()}))];return n.src&&p.Tp?(a=!0,n.decode().then((function(){o&&e()})).catch((function(t){o&&(s?e():r())}))):l.push((0,f.Vx)(n,i.Z.ERROR,r)),function(){o=!1,l.forEach(f.bN)}}!function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r,n,h.Z.IDLE)||this;return s.src_=i,s.image_=new Image,null!==o&&(s.image_.crossOrigin=o),s.unlisten_=null,s.state=h.Z.IDLE,s.imageLoadFunction_=a,s}d(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=h.Z.ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=(0,c.Cr)(this.extent)/this.image_.height),this.state=h.Z.LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=h.Z.IDLE&&this.state!=h.Z.ERROR||(this.state=h.Z.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=y(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t,this.resolution=(0,c.Cr)(this.extent)/this.image_.height},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}(u)},8260:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},7341:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});var n,i=r(3102),o=r(5816),a=r(766),s=r(3458),l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const u=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r,a)||this;return s.crossOrigin_=i,s.src_=n,s.key=n,s.image_=new Image,null!==i&&(s.image_.crossOrigin=i),s.unlisten_=null,s.tileLoadFunction_=o,s}return l(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=o.Z.LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){var t;this.state=o.Z.ERROR,this.unlistenImage_(),this.image_=((t=(0,a.E4)(1,1)).fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=o.Z.LOADED:this.state=o.Z.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==o.Z.ERROR&&(this.state=o.Z.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==o.Z.IDLE&&(this.state=o.Z.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,s.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(i.Z)},6219:(t,e,r)=>{"use strict";r.d(e,{Z:()=>ve});var n,i=r(2083),o=r(1998),a=r(4415),s=r(4765),l=r(2005),u=r(6929),h=r(7385),p=r(5353),c=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function f(t,e){u.c.expire()}const d=function(t){function e(e){var r=t.call(this)||this;return r.map_=e,r}return c(e,t),e.prototype.dispatchRenderEvent=function(t,e){(0,a.O3)()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,r=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;(0,s.qC)(r,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),(0,s.nb)(n,r)},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i,o,a,s){var u,c=e.viewState;function f(t,e,r,n){return i.call(o,e,t?r:null,n)}var d=c.projection,y=(0,p.Cf)(t.slice(),d),g=[[0,0]];if(d.canWrapX()&&n){var v=d.getExtent(),m=(0,l.dz)(v);g.push([-m,0],[m,0])}for(var _=e.layerStatesArray,x=_.length,b=[],w=[],C=0;C<g.length;C++)for(var E=x-1;E>=0;--E){var S=_[E],T=S.layer;if(T.hasRenderer()&&(0,h.j)(S,c)&&a.call(s,T)){var O=T.getRenderer(),P=T.getSource();if(O&&P){var R=P.getWrapX()?y:t,I=f.bind(null,S.managed);w[0]=R[0]+g[C][0],w[1]=R[1]+g[C][1],u=O.forEachFeatureAtCoordinate(w,e,r,I,b)}if(u)return u}}if(0!==b.length){var M=1/b.length;return b.forEach((function(t,e){return t.distanceSq+=e*M})),b.sort((function(t,e){return t.distanceSq-e.distanceSq})),b.some((function(t){return u=t.callback(t.feature,t.layer,t.geometry)})),u}},e.prototype.forEachLayerAtPixel=function(t,e,r,n,i){return(0,a.O3)()},e.prototype.hasFeatureAtCoordinate=function(t,e,r,n,i,a){return void 0!==this.forEachFeatureAtCoordinate(t,e,r,n,o.uX,this,i,a)},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){(0,a.O3)()},e.prototype.scheduleExpireIconCache=function(t){u.c.canExpireCache()&&t.postRenderFunctions.push(f)},e}(i.Z);var y=r(1846),g=r(6178),v=r(3557),m=r(8308),_=r(9680),x=r(5310),b=r(766),w=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const C=function(t){function e(e){var r=t.call(this,e)||this;r.fontChangeListenerKey_=(0,x.oL)(_.sG,y.Z.PROPERTYCHANGE,e.redrawText.bind(e)),r.element_=document.createElement("div");var n=r.element_.style;n.position="absolute",n.width="100%",n.height="100%",n.zIndex="0",r.element_.className=m.XV+" ol-layers";var i=e.getViewport();return i.insertBefore(r.element_,i.firstChild||null),r.children_=[],r.renderedVisible_=!0,r}return w(e,t),e.prototype.dispatchRenderEvent=function(t,e){var r=this.getMap();if(r.hasListener(t)){var n=new g.Z(t,void 0,e);r.dispatchEvent(n)}},e.prototype.disposeInternal=function(){(0,x.bN)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),t.prototype.disposeInternal.call(this)},e.prototype.renderFrame=function(t){if(t){this.calculateMatrices2D(t),this.dispatchRenderEvent(v.Z.PRECOMPOSE,t);var e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),r=t.viewState;this.children_.length=0;for(var n=[],i=null,o=0,a=e.length;o<a;++o){var s=e[o];t.layerIndex=o;var l=s.layer,u=l.getSourceState();if(!(0,h.j)(s,r)||"ready"!=u&&"undefined"!=u)l.unrender();else{var p=l.render(t,i);p&&(p!==i&&(this.children_.push(p),i=p),"getDeclutter"in l&&n.push(l))}}for(o=n.length-1;o>=0;--o)n[o].renderDeclutter(t);(0,b.hF)(this.element_,this.children_),this.dispatchRenderEvent(v.Z.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},e.prototype.forEachLayerAtPixel=function(t,e,r,n,i){for(var o=e.viewState,a=e.layerStatesArray,s=a.length-1;s>=0;--s){var l=a[s],u=l.layer;if(u.hasRenderer()&&(0,h.j)(l,o)&&i(u)){var p=u.getRenderer().getDataAtPixel(t,e,r);if(p){var c=n(u,p);if(c)return c}}}},e}(d);var E=r(12),S=r(6193),T=r(5917),O=r(7758),P=r(8319),R=r(7288),I=r(9751),M=r(273),A=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),k=function(t){function e(e,r){var n=t.call(this,e)||this;return n.layer=r,n}return A(e,t),e}(R.ZP),F="layers",L=function(t){function e(e){var r=this,n=e||{},i=(0,M.f0)({},n);delete i.layers;var o=n.layers;return(r=t.call(this,i)||this).on,r.once,r.un,r.layersListenerKeys_=[],r.listenerKeys_={},r.addChangeListener(F,r.handleLayersChanged_),o?Array.isArray(o)?o=new S.Z(o.slice(),{unique:!0}):(0,I.h)("function"==typeof o.getArray,43):o=new S.Z(void 0,{unique:!0}),r.setLayers(o),r}return A(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(x.bN),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push((0,x.oL)(t,T.Z.ADD,this.handleLayersAdd_,this),(0,x.oL)(t,T.Z.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(x.bN);(0,M.ZH)(this.listenerKeys_);for(var r=t.getArray(),n=0,i=r.length;n<i;n++){var o=r[n];this.registerLayerListeners_(o),this.dispatchEvent(new k("addlayer",o))}this.changed()},e.prototype.registerLayerListeners_=function(t){var r=[(0,x.oL)(t,y.Z.PROPERTYCHANGE,this.handleLayerChange_,this),(0,x.oL)(t,O.Z.CHANGE,this.handleLayerChange_,this)];t instanceof e&&r.push((0,x.oL)(t,"addlayer",this.handleLayerGroupAdd_,this),(0,x.oL)(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,a.sq)(t)]=r},e.prototype.handleLayerGroupAdd_=function(t){this.dispatchEvent(new k("addlayer",t.layer))},e.prototype.handleLayerGroupRemove_=function(t){this.dispatchEvent(new k("removelayer",t.layer))},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new k("addlayer",e)),this.changed()},e.prototype.handleLayersRemove_=function(t){var e=t.element,r=(0,a.sq)(e);this.listenerKeys_[r].forEach(x.bN),delete this.listenerKeys_[r],this.dispatchEvent(new k("removelayer",e)),this.changed()},e.prototype.getLayers=function(){return this.get(F)},e.prototype.setLayers=function(t){var e=this.getLayers();if(e)for(var r=e.getArray(),n=0,i=r.length;n<i;++n)this.dispatchEvent(new k("removelayer",r[n]));this.set(F,t)},e.prototype.getLayersArray=function(t){var e=void 0!==t?t:[];return this.getLayers().forEach((function(t){t.getLayersArray(e)})),e},e.prototype.getLayerStatesArray=function(t){var e=void 0!==t?t:[],r=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));var n=this.getLayerState(),i=n.zIndex;t||void 0!==n.zIndex||(i=0);for(var o=r,a=e.length;o<a;o++){var s=e[o];s.opacity*=n.opacity,s.visible=s.visible&&n.visible,s.maxResolution=Math.min(s.maxResolution,n.maxResolution),s.minResolution=Math.max(s.minResolution,n.minResolution),s.minZoom=Math.max(s.minZoom,n.minZoom),s.maxZoom=Math.min(s.maxZoom,n.maxZoom),void 0!==n.extent&&(void 0!==s.extent?s.extent=(0,l.Ed)(s.extent,n.extent):s.extent=n.extent),void 0===s.zIndex&&(s.zIndex=i)}return e},e.prototype.getSourceState=function(){return"ready"},e}(P.Z);const Z=L;var D=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const j=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.map=r,i.frameState=void 0!==n?n:null,i}return D(e,t),e}(R.ZP);var z=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const N=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r,o)||this;return s.originalEvent=n,s.pixel_=null,s.coordinate_=null,s.dragging=void 0!==i&&i,s.activePointers=a,s}return z(e,t),Object.defineProperty(e.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(t){this.pixel_=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(t){this.coordinate_=t},enumerable:!1,configurable:!0}),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){t.prototype.stopPropagation.call(this),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()},e}(j),G={SINGLECLICK:"singleclick",CLICK:O.Z.CLICK,DBLCLICK:O.Z.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},X="pointerdown";var W=r(8408),q=r(6299),Y=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const V=function(t){function e(e,r){var n=t.call(this,e)||this;n.map_=e,n.clickTimeoutId_,n.emulateClicks_=!1,n.dragging_=!1,n.dragListenerKeys_=[],n.moveTolerance_=void 0===r?1:r,n.down_=null;var i=n.map_.getViewport();return n.activePointers_=[],n.trackedTouches_={},n.element_=i,n.pointerdownListenerKey_=(0,x.oL)(i,X,n.handlePointerDown_,n),n.originalPointerMoveEvent_,n.relayedListenerKey_=(0,x.oL)(i,"pointermove",n.relayMoveEvent_,n),n.boundHandleTouchMove_=n.handleTouchMove_.bind(n),n.element_.addEventListener(O.Z.TOUCHMOVE,n.boundHandleTouchMove_,!!q.bM&&{passive:!1}),n}return Y(e,t),e.prototype.emulateClick_=function(t){var e=new N(G.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new N(G.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new N(G.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t,r=e.pointerId;if(e.type==G.POINTERUP||e.type==G.POINTERCANCEL){for(var n in delete this.trackedTouches_[r],this.trackedTouches_)if(this.trackedTouches_[n].target!==e.target){delete this.trackedTouches_[n];break}}else e.type!=G.POINTERDOWN&&e.type!=G.POINTERMOVE||(this.trackedTouches_[r]=e);this.activePointers_=(0,M.KX)(this.trackedTouches_)},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new N(G.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(x.bN),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},e.prototype.isMouseActionButton_=function(t){return 0===t.button},e.prototype.handlePointerDown_=function(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);var e=new N(G.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);for(var r in this.dispatchEvent(e),this.down_={},t){var n=t[r];this.down_[r]="function"==typeof n?o.Zn:n}if(0===this.dragListenerKeys_.length){var i=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,x.oL)(i,G.POINTERMOVE,this.handlePointerMove_,this),(0,x.oL)(i,G.POINTERUP,this.handlePointerUp_,this),(0,x.oL)(this.element_,G.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push((0,x.oL)(this.element_.getRootNode(),G.POINTERUP,this.handlePointerUp_,this))}},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;var e=new N(G.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}},e.prototype.relayMoveEvent_=function(t){this.originalPointerMoveEvent_=t;var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new N(G.POINTERMOVE,this.map_,t,e))},e.prototype.handleTouchMove_=function(t){var e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"==typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()},e.prototype.isMoving_=function(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&((0,x.bN)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(O.Z.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,x.bN)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(x.bN),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(W.Z),B="postrender",U="loadstart",K="loadend",H="layergroup",J="size",$="target",Q="view";var tt=1/0;const et=function(){function t(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return t.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,(0,M.ZH)(this.queuedElements_)},t.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,r=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var n=this.keyFunction_(r);return delete this.queuedElements_[n],r},t.prototype.enqueue=function(t){(0,I.h)(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=tt&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},t.prototype.getCount=function(){return this.elements_.length},t.prototype.getLeftChildIndex_=function(t){return 2*t+1},t.prototype.getRightChildIndex_=function(t){return 2*t+2},t.prototype.getParentIndex_=function(t){return t-1>>1},t.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},t.prototype.isEmpty=function(){return 0===this.elements_.length},t.prototype.isKeyQueued=function(t){return t in this.queuedElements_},t.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},t.prototype.siftUp_=function(t){for(var e=this.elements_,r=this.priorities_,n=e.length,i=e[t],o=r[t],a=t;t<n>>1;){var s=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),u=l<n&&r[l]<r[s]?l:s;e[t]=e[u],r[t]=r[u],t=u}e[t]=i,r[t]=o,this.siftDown_(a,t)},t.prototype.siftDown_=function(t,e){for(var r=this.elements_,n=this.priorities_,i=r[e],o=n[e];e>t;){var a=this.getParentIndex_(e);if(!(n[a]>o))break;r[e]=r[a],n[e]=n[a],e=a}r[e]=i,n[e]=o},t.prototype.reprioritize=function(){var t,e,r,n=this.priorityFunction_,i=this.elements_,o=this.priorities_,a=0,s=i.length;for(e=0;e<s;++e)(r=n(t=i[e]))==tt?delete this.queuedElements_[this.keyFunction_(t)]:(o[a]=r,i[a++]=t);i.length=a,o.length=a,this.heapify_()},t}();var rt=r(5816),nt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const it=function(t){function e(e,r){var n=t.call(this,(function(t){return e.apply(null,t)}),(function(t){return t[0].getKey()}))||this;return n.boundHandleTileChange_=n.handleTileChange.bind(n),n.tileChangeCallback_=r,n.tilesLoading_=0,n.tilesLoadingKeys_={},n}return nt(e,t),e.prototype.enqueue=function(e){var r=t.prototype.enqueue.call(this,e);return r&&e[0].addEventListener(O.Z.CHANGE,this.boundHandleTileChange_),r},e.prototype.getTilesLoading=function(){return this.tilesLoading_},e.prototype.handleTileChange=function(t){var e=t.target,r=e.getState();if(r===rt.Z.LOADED||r===rt.Z.ERROR||r===rt.Z.EMPTY){e.removeEventListener(O.Z.CHANGE,this.boundHandleTileChange_);var n=e.getKey();n in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[n],--this.tilesLoading_),this.tileChangeCallback_()}},e.prototype.loadMoreTiles=function(t,e){for(var r,n,i=0;this.tilesLoading_<t&&i<e&&this.getCount()>0;)n=(r=this.dequeue()[0]).getKey(),r.getState()!==rt.Z.IDLE||n in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[n]=!0,++this.tilesLoading_,++i,r.load())},e}(et);var ot=r(8615),at=r(8921),st=r(9786),lt=r(7814),ut=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function ht(t){t instanceof h.Z?t.setMapInternal(null):t instanceof Z&&t.getLayers().forEach(ht)}function pt(t,e){if(t instanceof h.Z)t.setMapInternal(e);else if(t instanceof Z)for(var r=t.getLayers().getArray(),n=0,i=r.length;n<i;++n)pt(r[n],e)}const ct=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var n=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var r,n,i,o={},a=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new Z({layers:t.layers});return o.layergroup=a,o.target=t.target,o.view=t.view instanceof ot.ZP?t.view:new ot.ZP,void 0!==t.controls&&(Array.isArray(t.controls)?r=new S.Z(t.controls.slice()):((0,I.h)("function"==typeof t.controls.getArray,47),r=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?n=new S.Z(t.interactions.slice()):((0,I.h)("function"==typeof t.interactions.getArray,48),n=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?i=new S.Z(t.overlays.slice()):((0,I.h)("function"==typeof t.overlays.getArray,49),i=t.overlays):i=new S.Z,{controls:r,interactions:n,keyboardEventTarget:e,overlays:i,values:o}}(e);r.renderComplete_,r.loaded_=!0,r.boundHandleBrowserEvent_=r.handleBrowserEvent.bind(r),r.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,r.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:q.MP,r.postRenderTimeoutHandle_,r.animationDelayKey_,r.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(r),r.coordinateToPixelTransform_=(0,s.Ue)(),r.pixelToCoordinateTransform_=(0,s.Ue)(),r.frameIndex_=0,r.frameState_=null,r.previousExtent_=null,r.viewPropertyListenerKey_=null,r.viewChangeListenerKey_=null,r.layerGroupPropertyListenerKeys_=null,r.viewport_=document.createElement("div"),r.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),r.viewport_.style.position="relative",r.viewport_.style.overflow="hidden",r.viewport_.style.width="100%",r.viewport_.style.height="100%",r.overlayContainer_=document.createElement("div"),r.overlayContainer_.style.position="absolute",r.overlayContainer_.style.zIndex="0",r.overlayContainer_.style.width="100%",r.overlayContainer_.style.height="100%",r.overlayContainer_.style.pointerEvents="none",r.overlayContainer_.className="ol-overlaycontainer",r.viewport_.appendChild(r.overlayContainer_),r.overlayContainerStopEvent_=document.createElement("div"),r.overlayContainerStopEvent_.style.position="absolute",r.overlayContainerStopEvent_.style.zIndex="0",r.overlayContainerStopEvent_.style.width="100%",r.overlayContainerStopEvent_.style.height="100%",r.overlayContainerStopEvent_.style.pointerEvents="none",r.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",r.viewport_.appendChild(r.overlayContainerStopEvent_),r.mapBrowserEventHandler_=null,r.moveTolerance_=e.moveTolerance,r.keyboardEventTarget_=n.keyboardEventTarget,r.targetChangeHandlerKeys_=null,r.controls=n.controls||new S.Z,r.interactions=n.interactions||new S.Z,r.overlays_=n.overlays,r.overlayIdIndex_={},r.renderer_=null,r.postRenderFunctions_=[],r.tileQueue_=new it(r.getTilePriority.bind(r),r.handleTileChange_.bind(r)),r.addChangeListener(H,r.handleLayerGroupChanged_),r.addChangeListener(Q,r.handleViewChanged_),r.addChangeListener(J,r.handleSizeChanged_),r.addChangeListener($,r.handleTargetChanged_),r.setProperties(n.values);var i=r;return!e.view||e.view instanceof ot.ZP||e.view.then((function(t){i.setView(new ot.ZP(t))})),r.controls.addEventListener(T.Z.ADD,function(t){t.element.setMap(this)}.bind(r)),r.controls.addEventListener(T.Z.REMOVE,function(t){t.element.setMap(null)}.bind(r)),r.interactions.addEventListener(T.Z.ADD,function(t){t.element.setMap(this)}.bind(r)),r.interactions.addEventListener(T.Z.REMOVE,function(t){t.element.setMap(null)}.bind(r)),r.overlays_.addEventListener(T.Z.ADD,function(t){this.addOverlayInternal_(t.element)}.bind(r)),r.overlays_.addEventListener(T.Z.REMOVE,function(t){var e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)}.bind(r)),r.controls.forEach(function(t){t.setMap(this)}.bind(r)),r.interactions.forEach(function(t){t.setMap(this)}.bind(r)),r.overlays_.forEach(r.addOverlayInternal_.bind(r)),r}return ut(e,t),e.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},e.prototype.addControl=function(t){this.getControls().push(t)},e.prototype.addInteraction=function(t){this.getInteractions().push(t)},e.prototype.addLayer=function(t){this.getLayerGroup().getLayers().push(t)},e.prototype.handleLayerAdd_=function(t){pt(t.layer,this)},e.prototype.addOverlay=function(t){this.getOverlays().push(t)},e.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},e.prototype.disposeInternal=function(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.setTarget(null),t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,e,r){if(this.frameState_&&this.renderer_){var n=this.getCoordinateFromPixelInternal(t),i=void 0!==(r=void 0!==r?r:{}).hitTolerance?r.hitTolerance:0,a=void 0!==r.layerFilter?r.layerFilter:o.uX,s=!1!==r.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,i,s,e,null,a,null)}},e.prototype.getFeaturesAtPixel=function(t,e){var r=[];return this.forEachFeatureAtPixel(t,(function(t){r.push(t)}),e),r},e.prototype.getAllLayers=function(){var t=[];return function e(r){r.forEach((function(r){r instanceof Z?e(r.getLayers()):t.push(r)}))}(this.getLayers()),t},e.prototype.forEachLayerAtPixel=function(t,e,r){if(this.frameState_&&this.renderer_){var n=r||{},i=void 0!==n.hitTolerance?n.hitTolerance:0,a=n.layerFilter||o.uX;return this.renderer_.forEachLayerAtPixel(t,this.frameState_,i,e,a)}},e.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_||!this.renderer_)return!1;var r=this.getCoordinateFromPixelInternal(t),n=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:o.uX,i=void 0!==e.hitTolerance?e.hitTolerance:0,a=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(r,this.frameState_,i,a,n,null)},e.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},e.prototype.getEventCoordinateInternal=function(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))},e.prototype.getEventPixel=function(t){var e=this.viewport_.getBoundingClientRect(),r="changedTouches"in t?t.changedTouches[0]:t;return[r.clientX-e.left,r.clientY-e.top]},e.prototype.getTarget=function(){return this.get($)},e.prototype.getTargetElement=function(){var t=this.getTarget();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},e.prototype.getCoordinateFromPixel=function(t){return(0,st.lO)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},e.prototype.getCoordinateFromPixelInternal=function(t){var e=this.frameState_;return e?(0,s.nn)(e.pixelToCoordinateTransform,t.slice()):null},e.prototype.getControls=function(){return this.controls},e.prototype.getOverlays=function(){return this.overlays_},e.prototype.getOverlayById=function(t){var e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getInteractions=function(){return this.interactions},e.prototype.getLayerGroup=function(){return this.get(H)},e.prototype.setLayers=function(t){var e=this.getLayerGroup();if(t instanceof S.Z)e.setLayers(t);else{var r=e.getLayers();r.clear(),r.extend(t)}},e.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},e.prototype.getLoadingOrNotReady=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,r=t.length;e<r;++e){var n=t[e];if(n.visible){var i=n.layer.getRenderer();if(i&&!i.ready)return!0;var o=n.layer.getSource();if(o&&o.loading)return!0}}return!1},e.prototype.getPixelFromCoordinate=function(t){var e=(0,st.Vs)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)},e.prototype.getPixelFromCoordinateInternal=function(t){var e=this.frameState_;return e?(0,s.nn)(e.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(J)},e.prototype.getView=function(){return this.get(Q)},e.prototype.getViewport=function(){return this.viewport_},e.prototype.getOverlayContainer=function(){return this.overlayContainer_},e.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},e.prototype.getOwnerDocument=function(){var t=this.getTargetElement();return t?t.ownerDocument:document},e.prototype.getTilePriority=function(t,e,r,n){return function(t,e,r,n,i){if(!t||!(r in t.wantedTiles))return tt;if(!t.wantedTiles[r][e.getKey()])return tt;var o=t.viewState.center,a=n[0]-o[0],s=n[1]-o[1];return 65536*Math.log(i)+Math.sqrt(a*a+s*s)/i}(this.frameState_,t,e,r,n)},e.prototype.handleBrowserEvent=function(t,e){var r=e||t.type,n=new N(r,this,t);this.handleMapBrowserEvent(n)},e.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){var e=t.originalEvent,r=e.type;if(r===X||r===O.Z.WHEEL||r===O.Z.KEYDOWN){var n=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():n,o=e.target;if(this.overlayContainerStopEvent_.contains(o)||!(i===n?n.documentElement:i).contains(o))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t))for(var a=this.getInteractions().getArray().slice(),s=a.length-1;s>=0;s--){var l=a[s];if(l.getMap()===this&&l.getActive()&&this.getTargetElement()&&(!l.handleEvent(t)||t.propagationStopped))break}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var r=this.maxTilesLoading_,n=r;if(t){var i=t.viewHints;if(i[at.Z.ANIMATING]||i[at.Z.INTERACTING]){var o=Date.now()-t.time>8;r=o?0:8,n=o?0:2}}e.getTilesLoading()<r&&(e.reprioritize(),e.loadMoreTiles(r,n))}t&&this.renderer_&&!t.animate&&(!0===this.renderComplete_?(this.hasListener(v.Z.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(v.Z.RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new j(K,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new j(U,this,t))));for(var a=this.postRenderFunctions_,s=0,l=a.length;s<l;++s)a[s](this,t);a.length=0},e.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},e.prototype.handleTargetChanged_=function(){if(this.mapBrowserEventHandler_){for(var t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)(0,x.bN)(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(O.Z.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(O.Z.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,(0,b.ZF)(this.viewport_)}var r=this.getTargetElement();if(r){for(var n in r.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new V(this,this.moveTolerance_),G)this.mapBrowserEventHandler_.addEventListener(G[n],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(O.Z.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(O.Z.WHEEL,this.boundHandleBrowserEvent_,!!q.bM&&{passive:!1});var i=this.getOwnerDocument().defaultView,o=this.keyboardEventTarget_?this.keyboardEventTarget_:r;this.targetChangeHandlerKeys_=[(0,x.oL)(o,O.Z.KEYDOWN,this.handleBrowserEvent,this),(0,x.oL)(o,O.Z.KEYPRESS,this.handleBrowserEvent,this),(0,x.oL)(i,O.Z.RESIZE,this.updateSize,this)]}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},e.prototype.handleTileChange_=function(){this.render()},e.prototype.handleViewPropertyChanged_=function(){this.render()},e.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&((0,x.bN)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,x.bN)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=(0,x.oL)(t,y.Z.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,x.oL)(t,O.Z.CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(x.bN),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.handleLayerAdd_(new k("addlayer",t)),this.layerGroupPropertyListenerKeys_=[(0,x.oL)(t,y.Z.PROPERTYCHANGE,this.render,this),(0,x.oL)(t,O.Z.CHANGE,this.render,this),(0,x.oL)(t,"addlayer",this.handleLayerAdd_,this),(0,x.oL)(t,"removelayer",this.handleLayerRemove_,this)]),this.render()},e.prototype.isRendered=function(){return!!this.frameState_},e.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},e.prototype.redrawText=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,r=t.length;e<r;++e){var n=t[e].layer;n.hasRenderer()&&n.getRenderer().handleFontsChanged()}},e.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},e.prototype.removeControl=function(t){return this.getControls().remove(t)},e.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},e.prototype.removeLayer=function(t){return this.getLayerGroup().getLayers().remove(t)},e.prototype.handleLayerRemove_=function(t){ht(t.layer)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var e=this,r=this.getSize(),n=this.getView(),i=this.frameState_,o=null;if(void 0!==r&&(0,lt.py)(r)&&n&&n.isDef()){var s=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),u=n.getState();if(o={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:(0,l.p8)(u.center,u.resolution,u.rotation,r),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:r,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:u,viewHints:s,wantedTiles:{},mapId:(0,a.sq)(this),renderTargets:{}},u.nextCenter&&u.nextResolution){var h=isNaN(u.nextRotation)?u.rotation:u.nextRotation;o.nextExtent=(0,l.p8)(u.nextCenter,u.nextResolution,h,r)}}this.frameState_=o,this.renderer_.renderFrame(o),o&&(o.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,o.postRenderFunctions),i&&(!this.previousExtent_||!(0,l.xb)(this.previousExtent_)&&!(0,l.fS)(o.extent,this.previousExtent_))&&(this.dispatchEvent(new j("movestart",this,i)),this.previousExtent_=(0,l.YN)(this.previousExtent_)),this.previousExtent_&&!o.viewHints[at.Z.ANIMATING]&&!o.viewHints[at.Z.INTERACTING]&&!(0,l.fS)(o.extent,this.previousExtent_)&&(this.dispatchEvent(new j("moveend",this,o)),(0,l.d9)(o.extent,this.previousExtent_))),this.dispatchEvent(new j(B,this,o)),this.renderComplete_=this.hasListener(U)||this.hasListener(K)||this.hasListener(v.Z.RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){e.postRenderTimeoutHandle_=void 0,e.handlePostRender()}),0))},e.prototype.setLayerGroup=function(t){var e=this.getLayerGroup();e&&this.handleLayerRemove_(new k("removelayer",e)),this.set(H,t)},e.prototype.setSize=function(t){this.set(J,t)},e.prototype.setTarget=function(t){this.set($,t)},e.prototype.setView=function(t){if(!t||t instanceof ot.ZP)this.set(Q,t);else{this.set(Q,new ot.ZP);var e=this;t.then((function(t){e.setView(new ot.ZP(t))}))}},e.prototype.updateSize=function(){var t=this.getTargetElement(),e=void 0;if(t){var r=getComputedStyle(t),n=t.offsetWidth-parseFloat(r.borderLeftWidth)-parseFloat(r.paddingLeft)-parseFloat(r.paddingRight)-parseFloat(r.borderRightWidth),i=t.offsetHeight-parseFloat(r.borderTopWidth)-parseFloat(r.paddingTop)-parseFloat(r.paddingBottom)-parseFloat(r.borderBottomWidth);isNaN(n)||isNaN(i)||(e=[n,i],!(0,lt.py)(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0."))}this.setSize(e),this.updateViewportSize_()},e.prototype.updateViewportSize_=function(){var t=this.getView();if(t){var e=void 0,r=getComputedStyle(this.viewport_);r.width&&r.height&&(e=[parseInt(r.width,10),parseInt(r.height,10)]),t.setViewportSize(e)}},e}(E.Z);var ft=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const dt=function(t){function e(e){var r=t.call(this)||this,n=e.element;return!n||e.target||n.style.pointerEvents||(n.style.pointerEvents="auto"),r.element=n||null,r.target_=null,r.map_=null,r.listenerKeys=[],e.render&&(r.render=e.render),e.target&&r.setTarget(e.target),r}return ft(e,t),e.prototype.disposeInternal=function(){(0,b.ZF)(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&(0,b.ZF)(this.element);for(var e=0,r=this.listenerKeys.length;e<r;++e)(0,x.bN)(this.listenerKeys[e]);this.listenerKeys.length=0,this.map_=t,t&&((this.target_?this.target_:t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==o.Zn&&this.listenerKeys.push((0,x.oL)(t,B,this.render,this)),t.render())},e.prototype.render=function(t){},e.prototype.setTarget=function(t){this.target_="string"==typeof t?document.getElementById(t):t},e}(E.Z);var yt=r(7782),gt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const vt=function(t){function e(e){var r=this,n=e||{};(r=t.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this).ulElement_=document.createElement("ul"),r.collapsed_=void 0===n.collapsed||n.collapsed,r.userCollapsed_=r.collapsed_,r.overrideCollapsible_=void 0!==n.collapsible,r.collapsible_=void 0===n.collapsible||n.collapsible,r.collapsible_||(r.collapsed_=!1);var i=void 0!==n.className?n.className:"ol-attribution",o=void 0!==n.tipLabel?n.tipLabel:"Attributions",a=void 0!==n.expandClassName?n.expandClassName:i+"-expand",s=void 0!==n.collapseLabel?n.collapseLabel:"›",l=void 0!==n.collapseClassName?n.collapseClassName:i+"-collapse";"string"==typeof s?(r.collapseLabel_=document.createElement("span"),r.collapseLabel_.textContent=s,r.collapseLabel_.className=l):r.collapseLabel_=s;var u=void 0!==n.label?n.label:"i";"string"==typeof u?(r.label_=document.createElement("span"),r.label_.textContent=u,r.label_.className=a):r.label_=u;var h=r.collapsible_&&!r.collapsed_?r.collapseLabel_:r.label_;r.toggleButton_=document.createElement("button"),r.toggleButton_.setAttribute("type","button"),r.toggleButton_.setAttribute("aria-expanded",String(!r.collapsed_)),r.toggleButton_.title=o,r.toggleButton_.appendChild(h),r.toggleButton_.addEventListener(O.Z.CLICK,r.handleClick_.bind(r),!1);var p=i+" "+m.XV+" "+m.hg+(r.collapsed_&&r.collapsible_?" "+m.hN:"")+(r.collapsible_?"":" ol-uncollapsible"),c=r.element;return c.className=p,c.appendChild(r.toggleButton_),c.appendChild(r.ulElement_),r.renderedAttributions_=[],r.renderedVisible_=!0,r}return gt(e,t),e.prototype.collectSourceAttributions_=function(t){for(var e={},r=[],n=!0,i=t.layerStatesArray,o=0,a=i.length;o<a;++o){var s=i[o];if((0,h.j)(s,t.viewState)){var l=s.layer.getSource();if(l){var u=l.getAttributions();if(u){var p=u(t);if(p)if(n=n&&!1!==l.getAttributionsCollapsible(),Array.isArray(p))for(var c=0,f=p.length;c<f;++c)p[c]in e||(r.push(p[c]),e[p[c]]=!0);else p in e||(r.push(p),e[p]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(n),r},e.prototype.updateElement_=function(t){if(t){var e=this.collectSourceAttributions_(t),r=e.length>0;if(this.renderedVisible_!=r&&(this.element.style.display=r?"":"none",this.renderedVisible_=r),!(0,yt.fS)(e,this.renderedAttributions_)){(0,b.ep)(this.ulElement_);for(var n=0,i=e.length;n<i;++n){var o=document.createElement("li");o.innerHTML=e[n],this.ulElement_.appendChild(o)}this.renderedAttributions_=e}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_},e.prototype.handleToggle_=function(){this.element.classList.toggle(m.hN),this.collapsed_?(0,b.$H)(this.collapseLabel_,this.label_):(0,b.$H)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.render=function(t){this.updateElement_(t.frameState)},e}(dt);var mt=r(6581),_t=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),xt=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this;var i=void 0!==n.className?n.className:"ol-rotate",o=void 0!==n.label?n.label:"⇧",a=void 0!==n.compassClassName?n.compassClassName:"ol-compass";r.label_=null,"string"==typeof o?(r.label_=document.createElement("span"),r.label_.className=a,r.label_.textContent=o):(r.label_=o,r.label_.classList.add(a));var s=n.tipLabel?n.tipLabel:"Reset rotation",l=document.createElement("button");l.className=i+"-reset",l.setAttribute("type","button"),l.title=s,l.appendChild(r.label_),l.addEventListener(O.Z.CLICK,r.handleClick_.bind(r),!1);var u=i+" "+m.XV+" "+m.hg,h=r.element;return h.className=u,h.appendChild(l),r.callResetNorth_=n.resetNorth?n.resetNorth:void 0,r.duration_=void 0!==n.duration?n.duration:250,r.autoHide_=void 0===n.autoHide||n.autoHide,r.rotation_=void 0,r.autoHide_&&r.element.classList.add(m.oj),r}return _t(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},e.prototype.resetNorth_=function(){var t=this.getMap().getView();if(t){var e=t.getRotation();void 0!==e&&(this.duration_>0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:mt.Vv}):t.setRotation(0))}},e.prototype.render=function(t){var e=t.frameState;if(e){var r=e.viewState.rotation;if(r!=this.rotation_){var n="rotate("+r+"rad)";if(this.autoHide_){var i=this.element.classList.contains(m.oj);i||0!==r?i&&0!==r&&this.element.classList.remove(m.oj):this.element.classList.add(m.oj)}this.label_.style.transform=n}this.rotation_=r}},e}(dt);const bt=xt;var wt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Ct=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),target:n.target})||this;var i=void 0!==n.className?n.className:"ol-zoom",o=void 0!==n.delta?n.delta:1,a=void 0!==n.zoomInClassName?n.zoomInClassName:i+"-in",s=void 0!==n.zoomOutClassName?n.zoomOutClassName:i+"-out",l=void 0!==n.zoomInLabel?n.zoomInLabel:"+",u=void 0!==n.zoomOutLabel?n.zoomOutLabel:"–",h=void 0!==n.zoomInTipLabel?n.zoomInTipLabel:"Zoom in",p=void 0!==n.zoomOutTipLabel?n.zoomOutTipLabel:"Zoom out",c=document.createElement("button");c.className=a,c.setAttribute("type","button"),c.title=h,c.appendChild("string"==typeof l?document.createTextNode(l):l),c.addEventListener(O.Z.CLICK,r.handleClick_.bind(r,o),!1);var f=document.createElement("button");f.className=s,f.setAttribute("type","button"),f.title=p,f.appendChild("string"==typeof u?document.createTextNode(u):u),f.addEventListener(O.Z.CLICK,r.handleClick_.bind(r,-o),!1);var d=i+" "+m.XV+" "+m.hg,y=r.element;return y.className=d,y.appendChild(c),y.appendChild(f),r.duration_=void 0!==n.duration?n.duration:250,r}return wt(e,t),e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap().getView();if(e){var r=e.getZoom();if(void 0!==r){var n=e.getConstrainedZoom(r+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:n,duration:this.duration_,easing:mt.Vv})):e.setZoom(n)}}},e}(dt),Et="active";var St=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function Tt(t,e,r,n){var i=t.getZoom();if(void 0!==i){var o=t.getConstrainedZoom(i+e),a=t.getResolutionForZoom(o);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:a,anchor:r,duration:void 0!==n?n:250,easing:mt.Vv})}}const Ot=function(t){function e(e){var r=t.call(this)||this;return r.on,r.once,r.un,e&&e.handleEvent&&(r.handleEvent=e.handleEvent),r.map_=null,r.setActive(!0),r}return St(e,t),e.prototype.getActive=function(){return this.get(Et)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(Et,t)},e.prototype.setMap=function(t){this.map_=t},e}(E.Z);var Pt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Rt=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.delta_=n.delta?n.delta:1,r.duration_=void 0!==n.duration?n.duration:250,r}return Pt(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==G.DBLCLICK){var r=t.originalEvent,n=t.map,i=t.coordinate,o=r.shiftKey?-this.delta_:this.delta_;Tt(n.getView(),o,i,this.duration_),r.preventDefault(),e=!0}return!e},e}(Ot);var It=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function Mt(t){for(var e=t.length,r=0,n=0,i=0;i<e;i++)r+=t[i].clientX,n+=t[i].clientY;return[r/e,n/e]}const At=function(t){function e(e){var r=this,n=e||{};return r=t.call(this,n)||this,n.handleDownEvent&&(r.handleDownEvent=n.handleDownEvent),n.handleDragEvent&&(r.handleDragEvent=n.handleDragEvent),n.handleMoveEvent&&(r.handleMoveEvent=n.handleMoveEvent),n.handleUpEvent&&(r.handleUpEvent=n.handleUpEvent),n.stopDown&&(r.stopDown=n.stopDown),r.handlingDownUpSequence=!1,r.targetPointers=[],r}return It(e,t),e.prototype.getPointerCount=function(){return this.targetPointers.length},e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==G.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==G.POINTERUP){var r=this.handleUpEvent(t);this.handlingDownUpSequence=r&&this.targetPointers.length>0}}else if(t.type==G.POINTERDOWN){var n=this.handleDownEvent(t);this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==G.POINTERMOVE&&this.handleMoveEvent(t);return!e},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){t.activePointers&&(this.targetPointers=t.activePointers)},e}(Ot);function kt(t){var e=arguments;return function(t){for(var r=!0,n=0,i=e.length;n<i&&(r=r&&e[n](t));++n);return r}}var Ft=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},Lt=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||function(t){var e=t.map.getTargetElement(),r=t.map.getOwnerDocument().activeElement;return e.contains(r)}(t)},Zt=o.uX,Dt=function(t){var e=t.originalEvent;return 0==e.button&&!(q.G$&&q.tK&&e.ctrlKey)},jt=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},zt=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},Nt=function(t){var e=t.originalEvent,r=e.target.tagName;return"INPUT"!==r&&"SELECT"!==r&&"TEXTAREA"!==r&&!e.target.isContentEditable},Gt=function(t){var e=t.originalEvent;return(0,I.h)(void 0!==e,56),"mouse"==e.pointerType},Xt=function(t){var e=t.originalEvent;return(0,I.h)(void 0!==e,56),e.isPrimary&&0===e.button},Wt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const qt=function(t){function e(e){var r=t.call(this,{stopDown:o.Dv})||this,n=e||{};r.kinetic_=n.kinetic,r.lastCentroid=null,r.lastPointersCount_,r.panning_=!1;var i=n.condition?n.condition:kt(jt,Xt);return r.condition_=n.onFocusOnly?kt(Lt,i):i,r.noKinetic_=!1,r}return Wt(e,t),e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,r=Mt(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(r[0],r[1]),this.lastCentroid){var n=[this.lastCentroid[0]-r[0],r[1]-this.lastCentroid[1]],i=t.map.getView();(0,p.bA)(n,i.getResolution()),(0,p.U1)(n,i.getRotation()),i.adjustCenterInternal(n)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=r,this.lastPointersCount_=e.length,t.originalEvent.preventDefault()},e.prototype.handleUpEvent=function(t){var e=t.map,r=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var n=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),o=r.getCenterInternal(),a=e.getPixelFromCoordinateInternal(o),s=e.getCoordinateFromPixelInternal([a[0]-n*Math.cos(i),a[1]-n*Math.sin(i)]);r.animateInternal({center:r.getConstrainedCenter(s),duration:500,easing:mt.Vv})}return this.panning_&&(this.panning_=!1,r.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(At);var Yt=r(6123),Vt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Bt=function(t){function e(e){var r=this,n=e||{};return(r=t.call(this,{stopDown:o.Dv})||this).condition_=n.condition?n.condition:Ft,r.lastAngle_=void 0,r.duration_=void 0!==n.duration?n.duration:250,r}return Vt(e,t),e.prototype.handleDragEvent=function(t){if(Gt(t)){var e=t.map,r=e.getView();if(r.getConstraints().rotation!==Yt.h$){var n=e.getSize(),i=t.pixel,o=Math.atan2(n[1]/2-i[1],i[0]-n[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;r.adjustRotationInternal(-a)}this.lastAngle_=o}}},e.prototype.handleUpEvent=function(t){return!Gt(t)||(t.map.getView().endInteraction(this.duration_),!1)},e.prototype.handleDownEvent=function(t){return!(!Gt(t)||!Dt(t)||!this.condition_(t)||(t.map.getView().beginInteraction(),this.lastAngle_=void 0,0))},e}(At);var Ut=r(5828),Kt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Ht=function(t){function e(e){var r=t.call(this)||this;return r.geometry_=null,r.element_=document.createElement("div"),r.element_.style.position="absolute",r.element_.style.pointerEvents="auto",r.element_.className="ol-box "+e,r.map_=null,r.startPixel_=null,r.endPixel_=null,r}return Kt(e,t),e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,r="px",n=this.element_.style;n.left=Math.min(t[0],e[0])+r,n.top=Math.min(t[1],e[1])+r,n.width=Math.abs(e[0]-t[0])+r,n.height=Math.abs(e[1]-t[1])+r},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,r=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);r[4]=r[0].slice(),this.geometry_?this.geometry_.setCoordinates([r]):this.geometry_=new Ut.ZP([r])},e.prototype.getGeometry=function(){return this.geometry_},e}(i.Z);var Jt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),$t=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.coordinate=r,i.mapBrowserEvent=n,i}return Jt(e,t),e}(R.ZP);const Qt=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var n=e||{};return r.box_=new Ht(n.className||"ol-dragbox"),r.minArea_=void 0!==n.minArea?n.minArea:64,n.onBoxEnd&&(r.onBoxEnd=n.onBoxEnd),r.startPixel_=null,r.condition_=n.condition?n.condition:Dt,r.boxEndCondition_=n.boxEndCondition?n.boxEndCondition:r.defaultBoxEndCondition,r}return Jt(e,t),e.prototype.defaultBoxEndCondition=function(t,e,r){var n=r[0]-e[0],i=r[1]-e[1];return n*n+i*i>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new $t("boxdrag",t.coordinate,t))},e.prototype.handleUpEvent=function(t){this.box_.setMap(null);var e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new $t(e?"boxend":"boxcancel",t.coordinate,t)),!1},e.prototype.handleDownEvent=function(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new $t("boxstart",t.coordinate,t)),!0)},e.prototype.onBoxEnd=function(t){},e}(At);var te=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const ee=function(t){function e(e){var r=this,n=e||{},i=n.condition?n.condition:zt;return(r=t.call(this,{condition:i,className:n.className||"ol-dragzoom",minArea:n.minArea})||this).duration_=void 0!==n.duration?n.duration:200,r.out_=void 0!==n.out&&n.out,r}return te(e,t),e.prototype.onBoxEnd=function(t){var e=this.getMap().getView(),r=this.getGeometry();if(this.out_){var n=e.rotatedExtentForGeometry(r),i=e.getResolutionForExtentInternal(n),o=e.getResolution()/i;(r=r.clone()).scale(o*o)}e.fitInternal(r,{duration:this.duration_,easing:mt.Vv})},e}(Qt);var re=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const ne=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.defaultCondition_=function(t){return jt(t)&&Nt(t)},r.condition_=void 0!==n.condition?n.condition:r.defaultCondition_,r.duration_=void 0!==n.duration?n.duration:100,r.pixelDelta_=void 0!==n.pixelDelta?n.pixelDelta:128,r}return re(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==O.Z.KEYDOWN){var r=t.originalEvent,n=r.keyCode;if(this.condition_(t)&&(40==n||37==n||39==n||38==n)){var i=t.map.getView(),o=i.getResolution()*this.pixelDelta_,a=0,s=0;40==n?s=-o:37==n?a=-o:39==n?a=o:s=o;var l=[a,s];(0,p.U1)(l,i.getRotation()),function(t,e,r){var n=t.getCenterInternal();if(n){var i=[n[0]+e[0],n[1]+e[1]];t.animateInternal({duration:void 0!==r?r:250,easing:mt.GE,center:t.getConstrainedCenter(i)})}}(i,l,this.duration_),r.preventDefault(),e=!0}}return!e},e}(Ot);var ie=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const oe=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.condition_=n.condition?n.condition:Nt,r.delta_=n.delta?n.delta:1,r.duration_=void 0!==n.duration?n.duration:100,r}return ie(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==O.Z.KEYDOWN||t.type==O.Z.KEYPRESS){var r=t.originalEvent,n=r.charCode;if(this.condition_(t)&&(n=="+".charCodeAt(0)||n=="-".charCodeAt(0))){var i=t.map,o=n=="+".charCodeAt(0)?this.delta_:-this.delta_;Tt(i.getView(),o,void 0,this.duration_),r.preventDefault(),e=!0}}return!e},e}(Ot),ae=function(){function t(t,e,r){this.decay_=t,this.minVelocity_=e,this.delay_=r,this.points_=[],this.angle_=0,this.initialVelocity_=0}return t.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},t.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},t.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;for(var r=e-3;r>0&&this.points_[r+2]>t;)r-=3;var n=this.points_[e+2]-this.points_[r+2];if(n<1e3/60)return!1;var i=this.points_[e]-this.points_[r],o=this.points_[e+1]-this.points_[r+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/n,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}();var se=r(7344),le=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ue="trackpad";const he=function(t){function e(e){var r=this,n=e||{};(r=t.call(this,n)||this).totalDelta_=0,r.lastDelta_=0,r.maxDelta_=void 0!==n.maxDelta?n.maxDelta:1,r.duration_=void 0!==n.duration?n.duration:250,r.timeout_=void 0!==n.timeout?n.timeout:80,r.useAnchor_=void 0===n.useAnchor||n.useAnchor,r.constrainResolution_=void 0!==n.constrainResolution&&n.constrainResolution;var i=n.condition?n.condition:Zt;return r.condition_=n.onFocusOnly?kt(Lt,i):i,r.lastAnchor_=null,r.startTime_=void 0,r.timeoutId_,r.mode_=void 0,r.trackpadEventGap_=400,r.trackpadTimeoutId_,r.deltaPerZoom_=300,r}return le(e,t),e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap();t&&t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;if(t.type!==O.Z.WHEEL)return!0;var e,r=t.map,n=t.originalEvent;if(n.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==O.Z.WHEEL&&(e=n.deltaY,q.V&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=q.MP),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)),0===e)return!1;this.lastDelta_=e;var i=Date.now();void 0===this.startTime_&&(this.startTime_=i),(!this.mode_||i-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(e)<4?ue:"wheel");var o=r.getView();if(this.mode_===ue&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-e/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=i,!1;this.totalDelta_+=e;var a=Math.max(this.timeout_-(i-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,r),a),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var r=-(0,se.uZ)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(r=r?r>0?1:-1:0),Tt(e,r,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(Ot);var pe=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const ce=function(t){function e(e){var r=this,n=e||{},i=n;return i.stopDown||(i.stopDown=o.Dv),(r=t.call(this,i)||this).anchor_=null,r.lastAngle_=void 0,r.rotating_=!1,r.rotationDelta_=0,r.threshold_=void 0!==n.threshold?n.threshold:.3,r.duration_=void 0!==n.duration?n.duration:250,r}return pe(e,t),e.prototype.handleDragEvent=function(t){var e=0,r=this.targetPointers[0],n=this.targetPointers[1],i=Math.atan2(n.clientY-r.clientY,n.clientX-r.clientX);if(void 0!==this.lastAngle_){var o=i-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=i;var a=t.map,s=a.getView();if(s.getConstraints().rotation!==Yt.h$){var l=a.getViewport().getBoundingClientRect(),u=Mt(this.targetPointers);u[0]-=l.left,u[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(u),this.rotating_&&(a.render(),s.adjustRotationInternal(e,this.anchor_))}},e.prototype.handleUpEvent=function(t){return!(this.targetPointers.length<2&&(t.map.getView().endInteraction(this.duration_),1))},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(At);var fe=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const de=function(t){function e(e){var r=this,n=e||{},i=n;return i.stopDown||(i.stopDown=o.Dv),(r=t.call(this,i)||this).anchor_=null,r.duration_=void 0!==n.duration?n.duration:400,r.lastDistance_=void 0,r.lastScaleDelta_=1,r}return fe(e,t),e.prototype.handleDragEvent=function(t){var e=1,r=this.targetPointers[0],n=this.targetPointers[1],i=r.clientX-n.clientX,o=r.clientY-n.clientY,a=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/a),this.lastDistance_=a;var s=t.map,l=s.getView();1!=e&&(this.lastScaleDelta_=e);var u=s.getViewport().getBoundingClientRect(),h=Mt(this.targetPointers);h[0]-=u.left,h[1]-=u.top,this.anchor_=s.getCoordinateFromPixelInternal(h),s.render(),l.adjustResolutionInternal(e,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView(),r=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,r),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(At);var ye=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ge=function(t){function e(e){return(e=(0,M.f0)({},e)).controls||(e.controls=function(t){var e={},r=new S.Z;return(void 0===e.zoom||e.zoom)&&r.push(new Ct(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&r.push(new bt(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&r.push(new vt(e.attributionOptions)),r}()),e.interactions||(e.interactions=function(t){var e={onFocusOnly:!0}||{},r=new S.Z,n=new ae(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&r.push(new Bt),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&r.push(new Rt({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&r.push(new qt({onFocusOnly:e.onFocusOnly,kinetic:n})),(void 0===e.pinchRotate||e.pinchRotate)&&r.push(new ce),(void 0===e.pinchZoom||e.pinchZoom)&&r.push(new de({duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(r.push(new ne),r.push(new oe({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&r.push(new he({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&r.push(new ee({duration:e.zoomDuration})),r}()),t.call(this,e)||this}return ye(e,t),e.prototype.createRenderer=function(){return new C(this)},e}(ct);const ve=ge},12:(t,e,r)=>{"use strict";r.d(e,{Z:()=>p});var n,i=r(7288),o=r(1846),a=r(9335),s=r(273),l=r(4415),u=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),h=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.key=r,i.oldValue=n,i}return u(e,t),e}(i.ZP);const p=function(t){function e(e){var r=t.call(this)||this;return r.on,r.once,r.un,(0,l.sq)(r),r.values_=null,void 0!==e&&r.setProperties(e),r}return u(e,t),e.prototype.get=function(t){var e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},e.prototype.getProperties=function(){return this.values_&&(0,s.f0)({},this.values_)||{}},e.prototype.hasProperties=function(){return!!this.values_},e.prototype.notify=function(t,e){var r;r="change:".concat(t),this.hasListener(r)&&this.dispatchEvent(new h(r,t,e)),r=o.Z.PROPERTYCHANGE,this.hasListener(r)&&this.dispatchEvent(new h(r,t,e))},e.prototype.addChangeListener=function(t,e){this.addEventListener("change:".concat(t),e)},e.prototype.removeChangeListener=function(t,e){this.removeEventListener("change:".concat(t),e)},e.prototype.set=function(t,e,r){var n=this.values_||(this.values_={});if(r)n[t]=e;else{var i=n[t];n[t]=e,i!==e&&this.notify(t,i)}},e.prototype.setProperties=function(t,e){for(var r in t)this.set(r,t[r],e)},e.prototype.applyProperties=function(t){t.values_&&(0,s.f0)(this.values_||(this.values_={}),t.values_)},e.prototype.unset=function(t,e){if(this.values_&&t in this.values_){var r=this.values_[t];delete this.values_[t],(0,s.xb)(this.values_)&&(this.values_=null),e||this.notify(t,r)}},e}(a.Z)},1846:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={PROPERTYCHANGE:"propertychange"}},9335:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});var n,i=r(8408),o=r(7758),a=r(5310),s=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),l=function(t){function e(){var e=t.call(this)||this;return e.on=e.onInternal,e.once=e.onceInternal,e.un=e.unInternal,e.revision_=0,e}return s(e,t),e.prototype.changed=function(){++this.revision_,this.dispatchEvent(o.Z.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,e){if(Array.isArray(t)){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=(0,a.oL)(this,t[i],e);return n}return(0,a.oL)(this,t,e)},e.prototype.onceInternal=function(t,e){var r;if(Array.isArray(t)){var n=t.length;r=new Array(n);for(var i=0;i<n;++i)r[i]=(0,a.Vx)(this,t[i],e)}else r=(0,a.Vx)(this,t,e);return e.ol_key=r,r},e.prototype.unInternal=function(t,e){var r=e.ol_key;if(r)!function(t){if(Array.isArray(t))for(var e=0,r=t.length;e<r;++e)(0,a.bN)(t[e]);else(0,a.bN)(t)}(r);else if(Array.isArray(t))for(var n=0,i=t.length;n<i;++n)this.removeEventListener(t[n],e);else this.removeEventListener(t,e)},e}(i.Z);l.prototype.on,l.prototype.once,l.prototype.un;const u=l},3102:(t,e,r)=>{"use strict";r.d(e,{Z:()=>h});var n,i=r(8408),o=r(7758),a=r(5816),s=r(4415),l=r(6581),u=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const h=function(t){function e(e,r,n){var i=t.call(this)||this,o=n||{};return i.tileCoord=e,i.state=r,i.interimTile=null,i.key="",i.transition_=void 0===o.transition?250:o.transition,i.transitionStarts_={},i.interpolate=!!o.interpolate,i}return u(e,t),e.prototype.changed=function(){this.dispatchEvent(o.Z.CHANGE)},e.prototype.release=function(){},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==a.Z.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==a.Z.LOADED){t.interimTile=null;break}t.getState()==a.Z.LOADING?e=t:t.getState()==a.Z.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){if(this.state!==a.Z.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){(0,s.O3)()},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var r=this.transitionStarts_[t];if(r){if(-1===r)return 1}else r=e,this.transitionStarts_[t]=r;var n=e-r+1e3/60;return n>=this.transition_?1:(0,l.YQ)(n/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(i.Z)},8441:(t,e,r)=>{"use strict";r.d(e,{T:()=>i,Z:()=>o});var n=function(){function t(t,e,r,n){this.minX=t,this.maxX=e,this.minY=r,this.maxY=n}return t.prototype.contains=function(t){return this.containsXY(t[1],t[2])},t.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},t.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},t.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},t.prototype.extend=function(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)},t.prototype.getHeight=function(){return this.maxY-this.minY+1},t.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},t.prototype.getWidth=function(){return this.maxX-this.minX+1},t.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},t}();function i(t,e,r,i,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=r,o.maxY=i,o):new n(t,e,r,i)}const o=n},5816:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},8615:(t,e,r)=>{"use strict";r.d(e,{ZP:()=>R});var n=r(12),i=r(8430),o=r(8921);const a={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var s=r(7348),l=r(9786),u=r(1998),h=r(5353),p=r(9751),c=r(273),f=r(7344);function d(t,e,r){return function(n,i,o,a,s){if(n){if(!i&&!e)return n;var l=e?0:o[0]*i,u=e?0:o[1]*i,h=s?s[0]:0,p=s?s[1]:0,c=t[0]+l/2+h,d=t[2]-l/2+h,y=t[1]+u/2+p,g=t[3]-u/2+p;c>d&&(d=c=(d+c)/2),y>g&&(g=y=(g+y)/2);var v=(0,f.uZ)(n[0],c,d),m=(0,f.uZ)(n[1],y,g);if(a&&r&&i){var _=30*i;v+=-_*Math.log(1+Math.max(0,c-n[0])/_)+_*Math.log(1+Math.max(0,n[0]-d)/_),m+=-_*Math.log(1+Math.max(0,y-n[1])/_)+_*Math.log(1+Math.max(0,n[1]-g)/_)}return[v,m]}}}function y(t){return t}var g=r(2005),v=r(7782);function m(t,e,r,n){var i=(0,g.dz)(e)/r[0],o=(0,g.Cr)(e)/r[1];return n?Math.min(t,Math.max(i,o)):Math.min(t,Math.min(i,o))}function _(t,e,r){var n=Math.min(t,e);return n*=Math.log(1+50*Math.max(0,t/e-1))/50+1,r&&(n=Math.max(n,r),n/=Math.log(1+50*Math.max(0,r/t-1))/50+1),(0,f.uZ)(n,r/2,2*e)}function x(t,e,r,n,i){return function(o,a,s,l){if(void 0!==o){var u=n?m(t,n,s,i):t;return(void 0===r||r)&&l?_(o,u,e):(0,f.uZ)(o,e,u)}}}var b,w=r(6123),C=r(6581),E=r(5828),S=(b=function(t,e){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},b(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function T(t,e){setTimeout((function(){t(e)}),0)}function O(t){return!(t.sourceCenter&&t.targetCenter&&!(0,h.fS)(t.sourceCenter,t.targetCenter))&&t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation}function P(t,e,r,n,i){var o=Math.cos(-i),a=Math.sin(-i),s=t[0]*o-t[1]*a,l=t[1]*o+t[0]*a;return[(s+=(e[0]/2-r[0])*n)*o-(l+=(r[1]-e[1]/2)*n)*(a=-a),l*o+s*a]}const R=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var n=(0,c.f0)({},e);return r.hints_=[0,0],r.animations_=[],r.updateAnimationKey_,r.projection_=(0,l.UQ)(n.projection,"EPSG:3857"),r.viewportSize_=[100,100],r.targetCenter_=null,r.targetResolution_,r.targetRotation_,r.nextCenter_=null,r.nextResolution_,r.nextRotation_,r.cancelAnchor_=void 0,n.projection&&(0,l.h_)(),n.center&&(n.center=(0,l.Vs)(n.center,r.projection_)),n.extent&&(n.extent=(0,l.dY)(n.extent,r.projection_)),r.applyOptions_(n),r}return S(e,t),e.prototype.applyOptions_=function(t){var e=(0,c.f0)({},t);for(var r in a)delete e[r];this.setProperties(e,!0);var n=function(t){var e,r,n,o=void 0!==t.minZoom?t.minZoom:0,a=void 0!==t.maxZoom?t.maxZoom:28,u=void 0!==t.zoomFactor?t.zoomFactor:2,h=void 0!==t.multiWorld&&t.multiWorld,p=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,c=void 0!==t.showFullExtent&&t.showFullExtent,d=(0,l.UQ)(t.projection,"EPSG:3857"),y=d.getExtent(),b=t.constrainOnlyCenter,w=t.extent;if(h||w||!d.isGlobal()||(b=!1,w=y),void 0!==t.resolutions){var C=t.resolutions;r=C[o],n=void 0!==C[a]?C[a]:C[C.length-1],e=t.constrainResolution?function(t,e,r,n){return function(i,o,a,s){if(void 0!==i){var l=t[0],u=t[t.length-1],h=r?m(l,r,a,n):l;if(s)return void 0===e||e?_(i,h,u):(0,f.uZ)(i,u,h);var p=Math.min(h,i),c=Math.floor((0,v.h7)(t,p,o));return t[c]>h&&c<t.length-1?t[c+1]:t[c]}}}(C,p,!b&&w,c):x(r,n,p,!b&&w,c)}else{var E=(y?Math.max((0,g.dz)(y),(0,g.Cr)(y)):360*l.Wm[i.ZP.DEGREES]/d.getMetersPerUnit())/s.S/Math.pow(2,0),S=E/Math.pow(2,28);void 0!==(r=t.maxResolution)?o=0:r=E/Math.pow(u,o),void 0===(n=t.minResolution)&&(n=void 0!==t.maxZoom?void 0!==t.maxResolution?r/Math.pow(u,a):E/Math.pow(u,a):S),a=o+Math.floor(Math.log(r/n)/Math.log(u)),n=r/Math.pow(u,a-o),e=t.constrainResolution?function(t,e,r,n,i,o){return function(a,s,l,u){if(void 0!==a){var h=i?m(e,i,l,o):e,p=void 0!==r?r:0;if(u)return void 0===n||n?_(a,h,p):(0,f.uZ)(a,p,h);var c=Math.ceil(Math.log(e/h)/Math.log(t)-1e-9),d=-s*(.5-1e-9)+.5,y=Math.min(h,a),g=Math.floor(Math.log(e/y)/Math.log(t)+d),v=Math.max(c,g),x=e/Math.pow(t,v);return(0,f.uZ)(x,p,h)}}}(u,r,n,p,!b&&w,c):x(r,n,p,!b&&w,c)}return{constraint:e,maxResolution:r,minResolution:n,minZoom:o,zoomFactor:u}}(t);this.maxResolution_=n.maxResolution,this.minResolution_=n.minResolution,this.zoomFactor_=n.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=n.minZoom;var o=function(t){if(void 0!==t.extent){var e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return d(t.extent,t.constrainOnlyCenter,e)}var r=(0,l.UQ)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&r.isGlobal()){var n=r.getExtent().slice();return n[0]=-1/0,n[2]=1/0,d(n,!1,!1)}return y}(t),u=n.constraint,h=function(t){if(void 0===t.enableRotation||t.enableRotation){var e=t.constrainRotation;return void 0===e||!0===e?(0,w.Gw)():!1===e?w.YP:"number"==typeof e?(0,w.gE)(e):w.YP}return w.h$}(t);this.constraints_={center:o,resolution:u,rotation:h},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom)},Object.defineProperty(e.prototype,"padding",{get:function(){return this.padding_},set:function(t){var e=this.padding_;this.padding_=t;var r=this.getCenter();if(r){var n=t||[0,0,0,0];e=e||[0,0,0,0];var i=this.getResolution(),o=i/2*(n[3]-e[3]+e[1]-n[1]),a=i/2*(n[0]-e[0]+e[2]-n[2]);this.setCenterInternal([r[0]+o,r[1]-a])}},enumerable:!1,configurable:!0}),e.prototype.getUpdatedOptions_=function(t){var e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),(0,c.f0)({},e,t)},e.prototype.animate=function(t){var e=arguments;this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var r=new Array(arguments.length),n=0;n<r.length;++n){var i=e[n];i.center&&((i=(0,c.f0)({},i)).center=(0,l.Vs)(i.center,this.getProjection())),i.anchor&&((i=(0,c.f0)({},i)).anchor=(0,l.Vs)(i.anchor,this.getProjection())),r[n]=i}this.animateInternal.apply(this,r)},e.prototype.animateInternal=function(t){var e,r=arguments,n=arguments.length;n>1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n);for(var i=0;i<n&&!this.isDef();++i){var a=r[i];a.center&&this.setCenterInternal(a.center),void 0!==a.zoom?this.setZoom(a.zoom):a.resolution&&this.setResolution(a.resolution),void 0!==a.rotation&&this.setRotation(a.rotation)}if(i!==n){for(var s=Date.now(),l=this.targetCenter_.slice(),u=this.targetResolution_,h=this.targetRotation_,p=[];i<n;++i){var c=r[i],d={start:s,complete:!1,anchor:c.anchor,duration:void 0!==c.duration?c.duration:1e3,easing:c.easing||C.rd,callback:e};if(c.center&&(d.sourceCenter=l,d.targetCenter=c.center.slice(),l=d.targetCenter),void 0!==c.zoom?(d.sourceResolution=u,d.targetResolution=this.getResolutionForZoom(c.zoom),u=d.targetResolution):c.resolution&&(d.sourceResolution=u,d.targetResolution=c.resolution,u=d.targetResolution),void 0!==c.rotation){d.sourceRotation=h;var y=(0,f.$W)(c.rotation-h+Math.PI,2*Math.PI)-Math.PI;d.targetRotation=h+y,h=d.targetRotation}O(d)?d.complete=!0:s+=d.duration,p.push(d)}this.animations_.push(p),this.setHint(o.Z.ANIMATING,1),this.updateAnimations_()}else e&&T(e,!0)},e.prototype.getAnimating=function(){return this.hints_[o.Z.ANIMATING]>0},e.prototype.getInteracting=function(){return this.hints_[o.Z.INTERACTING]>0},e.prototype.cancelAnimations=function(){var t;this.setHint(o.Z.ANIMATING,-this.hints_[o.Z.ANIMATING]);for(var e=0,r=this.animations_.length;e<r;++e){var n=this.animations_[e];if(n[0].callback&&T(n[0].callback,!1),!t)for(var i=0,a=n.length;i<a;++i){var s=n[i];if(!s.complete){t=s.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN},e.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,r=this.animations_.length-1;r>=0;--r){for(var n=this.animations_[r],i=!0,a=0,s=n.length;a<s;++a){var l=n[a];if(!l.complete){var u=t-l.start,h=l.duration>0?u/l.duration:1;h>=1?(l.complete=!0,h=1):i=!1;var p=l.easing(h);if(l.sourceCenter){var c=l.sourceCenter[0],d=l.sourceCenter[1],y=l.targetCenter[0],g=l.targetCenter[1];this.nextCenter_=l.targetCenter;var v=c+p*(y-c),m=d+p*(g-d);this.targetCenter_=[v,m]}if(l.sourceResolution&&l.targetResolution){var _=1===p?l.targetResolution:l.sourceResolution+p*(l.targetResolution-l.sourceResolution);if(l.anchor){var x=this.getViewportSize_(this.getRotation()),b=this.constraints_.resolution(_,0,x,!0);this.targetCenter_=this.calculateCenterZoom(b,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=_,this.applyTargetState_(!0)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var w=1===p?(0,f.$W)(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+p*(l.targetRotation-l.sourceRotation);if(l.anchor){var C=this.constraints_.rotation(w,!0);this.targetCenter_=this.calculateCenterRotate(C,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=w}if(this.applyTargetState_(!0),e=!0,!l.complete)break}}if(i){this.animations_[r]=null,this.setHint(o.Z.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var E=n[0].callback;E&&T(E,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,e){var r,n=this.getCenterInternal();return void 0!==n&&(r=[n[0]-e[0],n[1]-e[1]],(0,h.U1)(r,t-this.getRotation()),(0,h.IH)(r,e)),r},e.prototype.calculateCenterZoom=function(t,e){var r,n=this.getCenterInternal(),i=this.getResolution();return void 0!==n&&void 0!==i&&(r=[e[0]-t*(e[0]-n[0])/i,e[1]-t*(e[1]-n[1])/i]),r},e.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var r=e[0],n=e[1];return[Math.abs(r*Math.cos(t))+Math.abs(n*Math.sin(t)),Math.abs(r*Math.sin(t))+Math.abs(n*Math.cos(t))]}return e},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t?(0,l.lO)(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(a.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=this.calculateExtentInternal(t);return(0,l.Fj)(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSizeMinusPadding_(),r=this.getCenterInternal();(0,p.h)(r,1);var n=this.getResolution();(0,p.h)(void 0!==n,2);var i=this.getRotation();return(0,p.h)(void 0!==i,3),(0,g.p8)(r,n,i,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(a.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal((0,l.dY)(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var r=e||this.getViewportSizeMinusPadding_(),n=(0,g.dz)(t)/r[0],i=(0,g.Cr)(t)/r[1];return Math.max(n,i)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,r=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(r/n)/Math.log(e);return function(t){return r/Math.pow(e,t*i)}},e.prototype.getRotation=function(){return this.get(a.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),r=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(r/n)/e;return function(t){return Math.log(r/t)/e/i}},e.prototype.getViewportSizeMinusPadding_=function(t){var e=this.getViewportSize_(t),r=this.padding_;return r&&(e=[e[0]-r[1]-r[3],e[1]-r[0]-r[2]]),e},e.prototype.getState=function(){var t=this.getProjection(),e=this.getResolution(),r=this.getRotation(),n=this.getCenterInternal(),i=this.padding_;if(i){var o=this.getViewportSizeMinusPadding_();n=P(n,this.getViewportSize_(),[o[0]/2+i[3],o[1]/2+i[0]],e,r)}return{center:n.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:r,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},e.prototype.getZoomForResolution=function(t){var e,r,n=this.minZoom_||0;if(this.resolutions_){var i=(0,v.h7)(this.resolutions_,t,1);n=i,e=this.resolutions_[i],r=i==this.resolutions_.length-1?2:e/this.resolutions_[i+1]}else e=this.maxResolution_,r=this.zoomFactor_;return n+Math.log(e/t)/Math.log(r)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=(0,f.uZ)(Math.floor(t),0,this.resolutions_.length-2),r=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(r,(0,f.uZ)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var r;if((0,p.h)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)){(0,p.h)(!(0,g.xb)(t),25);var n=(0,l.dY)(t,this.getProjection());r=(0,E.oJ)(n)}else if("Circle"===t.getType())n=(0,l.dY)(t.getExtent(),this.getProjection()),(r=(0,E.oJ)(n)).rotate(this.getRotation(),(0,g.qg)(n));else{var i=(0,l.Cs)();r=i?t.clone().transform(i,this.getProjection()):t}this.fitInternal(r,e)},e.prototype.rotatedExtentForGeometry=function(t){for(var e=this.getRotation(),r=Math.cos(e),n=Math.sin(-e),i=t.getFlatCoordinates(),o=t.getStride(),a=1/0,s=1/0,l=-1/0,u=-1/0,h=0,p=i.length;h<p;h+=o){var c=i[h]*r-i[h+1]*n,f=i[h]*n+i[h+1]*r;a=Math.min(a,c),s=Math.min(s,f),l=Math.max(l,c),u=Math.max(u,f)}return[a,s,l,u]},e.prototype.fitInternal=function(t,e){var r=e||{},n=r.size;n||(n=this.getViewportSizeMinusPadding_());var i,o=void 0!==r.padding?r.padding:[0,0,0,0],a=void 0!==r.nearest&&r.nearest;i=void 0!==r.minResolution?r.minResolution:void 0!==r.maxZoom?this.getResolutionForZoom(r.maxZoom):0;var s=this.rotatedExtentForGeometry(t),l=this.getResolutionForExtentInternal(s,[n[0]-o[1]-o[3],n[1]-o[0]-o[2]]);l=isNaN(l)?i:Math.max(l,i),l=this.getConstrainedResolution(l,a?0:1);var h=this.getRotation(),p=Math.sin(h),c=Math.cos(h),f=(0,g.qg)(s);f[0]+=(o[1]-o[3])/2*l,f[1]+=(o[0]-o[2])/2*l;var d=f[0]*c-f[1]*p,y=f[1]*c+f[0]*p,v=this.getConstrainedCenter([d,y],l),m=r.callback?r.callback:u.Zn;void 0!==r.duration?this.animateInternal({resolution:l,center:v,duration:r.duration,easing:r.easing},m):(this.targetResolution_=l,this.targetCenter_=v,this.applyTargetState_(!1,!0),T(m,!0))},e.prototype.centerOn=function(t,e,r){this.centerOnInternal((0,l.Vs)(t,this.getProjection()),e,r)},e.prototype.centerOnInternal=function(t,e,r){this.setCenterInternal(P(t,e,r,this.getResolution(),this.getRotation()))},e.prototype.calculateCenterShift=function(t,e,r,n){var i,o=this.padding_;if(o&&t){var a=this.getViewportSizeMinusPadding_(-r),s=P(t,n,[a[0]/2+o[3],a[1]/2+o[0]],e,r);i=[t[0]-s[0],t[1]-s[1]]}return i},e.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},e.prototype.adjustCenter=function(t){var e=(0,l.lO)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustCenterInternal=function(t){var e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustResolution=function(t,e){var r=e&&(0,l.Vs)(e,this.getProjection());this.adjustResolutionInternal(t,r)},e.prototype.adjustResolutionInternal=function(t,e){var r=this.getAnimating()||this.getInteracting(),n=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*t,0,n,r);e&&(this.targetCenter_=this.calculateCenterZoom(i,e)),this.targetResolution_*=t,this.applyTargetState_()},e.prototype.adjustZoom=function(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)},e.prototype.adjustRotation=function(t,e){e&&(e=(0,l.Vs)(e,this.getProjection())),this.adjustRotationInternal(t,e)},e.prototype.adjustRotationInternal=function(t,e){var r=this.getAnimating()||this.getInteracting(),n=this.constraints_.rotation(this.targetRotation_+t,r);e&&(this.targetCenter_=this.calculateCenterRotate(n,e)),this.targetRotation_+=t,this.applyTargetState_()},e.prototype.setCenter=function(t){this.setCenterInternal(t?(0,l.Vs)(t,this.getProjection()):t)},e.prototype.setCenterInternal=function(t){this.targetCenter_=t,this.applyTargetState_()},e.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},e.prototype.setResolution=function(t){this.targetResolution_=t,this.applyTargetState_()},e.prototype.setRotation=function(t){this.targetRotation_=t,this.applyTargetState_()},e.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},e.prototype.applyTargetState_=function(t,e){var r=this.getAnimating()||this.getInteracting()||e,n=this.constraints_.rotation(this.targetRotation_,r),i=this.getViewportSize_(n),o=this.constraints_.resolution(this.targetResolution_,0,i,r),s=this.constraints_.center(this.targetCenter_,o,i,r,this.calculateCenterShift(this.targetCenter_,o,n,i));this.get(a.ROTATION)!==n&&this.set(a.ROTATION,n),this.get(a.RESOLUTION)!==o&&(this.set(a.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),s&&this.get(a.CENTER)&&(0,h.fS)(this.get(a.CENTER),s)||this.set(a.CENTER,s),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0},e.prototype.resolveConstraints=function(t,e,r){var n=void 0!==t?t:200,i=e||0,o=this.constraints_.rotation(this.targetRotation_),a=this.getViewportSize_(o),s=this.constraints_.resolution(this.targetResolution_,i,a),l=this.constraints_.center(this.targetCenter_,s,a,!1,this.calculateCenterShift(this.targetCenter_,s,o,a));if(0===n&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=o,this.targetCenter_=l,void this.applyTargetState_();var u=r||(0===n?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===o&&this.getCenterInternal()&&(0,h.fS)(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:l,resolution:s,duration:n,easing:C.Vv,anchor:u}))},e.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(o.Z.INTERACTING,1)},e.prototype.endInteraction=function(t,e,r){var n=r&&(0,l.Vs)(r,this.getProjection());this.endInteractionInternal(t,e,n)},e.prototype.endInteractionInternal=function(t,e,r){this.setHint(o.Z.INTERACTING,-1),this.resolveConstraints(t,e,r)},e.prototype.getConstrainedCenter=function(t,e){var r=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),r)},e.prototype.getConstrainedZoom=function(t,e){var r=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(r,e))},e.prototype.getConstrainedResolution=function(t,e){var r=e||0,n=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,r,n)},e}(n.Z)},8921:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={ANIMATING:0,INTERACTING:1}},7782:(t,e,r)=>{"use strict";function n(t,e,r){for(var n,o,a=r||i,s=0,l=t.length,u=!1;s<l;)(o=+a(t[n=s+(l-s>>1)],e))<0?s=n+1:(l=n,u=!o);return u?s:~s}function i(t,e){return t>e?1:t<e?-1:0}function o(t,e,r){var n=t.length;if(t[0]<=e)return 0;if(e<=t[n-1])return n-1;var i=void 0;if(r>0){for(i=1;i<n;++i)if(t[i]<e)return i-1}else if(r<0){for(i=1;i<n;++i)if(t[i]<=e)return i}else for(i=1;i<n;++i){if(t[i]==e)return i;if(t[i]<e)return"function"==typeof r?r(e,t[i-1],t[i])>0?i-1:i:t[i-1]-e<e-t[i]?i-1:i}return n-1}function a(t,e,r){for(;e<r;){var n=t[e];t[e]=t[r],t[r]=n,++e,--r}}function s(t,e){for(var r=Array.isArray(e)?e:[e],n=r.length,i=0;i<n;i++)t[t.length]=r[i]}function l(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function u(t,e,r){var n=e||i;return t.every((function(e,i){if(0===i)return!0;var o=n(t[i-1],e);return!(o>0||r&&0===o)}))}r.d(e,{FZ:()=>a,fS:()=>l,h7:()=>o,kK:()=>i,l7:()=>s,pT:()=>u,ry:()=>n})},9751:(t,e,r)=>{"use strict";r.d(e,{h:()=>i});var n=r(6643);function i(t,e){if(!t)throw new n.Z(e)}},8609:(t,e,r)=>{"use strict";r.d(e,{BB:()=>f,XC:()=>s,_2:()=>p});var n=r(9751),i=r(7344),o=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,a=/^([a-z]*)$|^hsla?\(.*\)$/i;function s(t){return"string"==typeof t?t:f(t)}var l,u,h=(l={},u=0,function(t){var e;if(l.hasOwnProperty(t))e=l[t];else{if(u>=1024){var r=0;for(var i in l)0==(3&r++)&&(delete l[i],--u)}e=function(t){var e,r,i,s,l;if(a.exec(t)&&(t=function(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var r=getComputedStyle(e).color;return document.body.removeChild(e),r}return""}(t)),o.exec(t)){var u,h=t.length-1;u=h<=4?1:2;var p=4===h||8===h;e=parseInt(t.substr(1+0*u,u),16),r=parseInt(t.substr(1+1*u,u),16),i=parseInt(t.substr(1+2*u,u),16),s=p?parseInt(t.substr(1+3*u,u),16):255,1==u&&(e=(e<<4)+e,r=(r<<4)+r,i=(i<<4)+i,p&&(s=(s<<4)+s)),l=[e,r,i,s/255]}else 0==t.indexOf("rgba(")?c(l=t.slice(5,-1).split(",").map(Number)):0==t.indexOf("rgb(")?((l=t.slice(4,-1).split(",").map(Number)).push(1),c(l)):(0,n.h)(!1,14);return l}(t),l[t]=e,++u}return e});function p(t){return Array.isArray(t)?t:h(t)}function c(t){return t[0]=(0,i.uZ)(t[0]+.5|0,0,255),t[1]=(0,i.uZ)(t[1]+.5|0,0,255),t[2]=(0,i.uZ)(t[2]+.5|0,0,255),t[3]=(0,i.uZ)(t[3],0,1),t}function f(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var r=t[1];r!=(0|r)&&(r=r+.5|0);var n=t[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+e+","+r+","+n+","+(void 0===t[3]?1:Math.round(100*t[3])/100)+")"}},6808:(t,e,r)=>{"use strict";r.d(e,{y:()=>i});var n=r(8609);function i(t){return Array.isArray(t)?(0,n.BB)(t):t}},5353:(t,e,r)=>{"use strict";r.d(e,{Cf:()=>l,IH:()=>i,U1:()=>a,bA:()=>s,fS:()=>o});var n=r(2005);function i(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function o(t,e){for(var r=!0,n=t.length-1;n>=0;--n)if(t[n]!=e[n]){r=!1;break}return r}function a(t,e){var r=Math.cos(e),n=Math.sin(e),i=t[0]*r-t[1]*n,o=t[1]*r+t[0]*n;return t[0]=i,t[1]=o,t}function s(t,e){return t[0]*=e,t[1]*=e,t}function l(t,e){if(e.canWrapX()){var r=(0,n.dz)(e.getExtent()),i=function(t,e,r){var i=e.getExtent(),o=0;if(e.canWrapX()&&(t[0]<i[0]||t[0]>i[2])){var a=r||(0,n.dz)(i);o=Math.floor((t[0]-i[0])/a)}return o}(t,e,r);i&&(t[0]-=i*r)}return t}},8308:(t,e,r)=>{"use strict";r.d(e,{XV:()=>i,hN:()=>a,hg:()=>o,oj:()=>n,p:()=>u});var n="ol-hidden",i="ol-unselectable",o="ol-control",a="ol-collapsed",s=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),l=["style","variant","weight","size","lineHeight","family"],u=function(t){var e=t.match(s);if(!e)return null;for(var r={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},n=0,i=l.length;n<i;++n){var o=e[n+1];void 0!==o&&(r[l[n]]=o)}return r.families=r.family.split(/,\s?/),r}},766:(t,e,r)=>{"use strict";r.d(e,{$H:()=>a,E4:()=>i,ZF:()=>s,ep:()=>l,hF:()=>u,jy:()=>o});var n=r(6299);function i(t,e,r,i){var o;return o=r&&r.length?r.shift():n.Id?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(o.width=t),e&&(o.height=e),o.getContext("2d",i)}function o(t){var e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function a(t,e){var r=e.parentNode;r&&r.replaceChild(t,e)}function s(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function l(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function u(t,e){for(var r=t.childNodes,n=0;;++n){var i=r[n],o=e[n];if(!i&&!o)break;i!==o&&(i?o?t.insertBefore(o,i):(t.removeChild(i),--n):t.appendChild(o))}}},6581:(t,e,r)=>{"use strict";function n(t){return Math.pow(t,3)}function i(t){return 1-n(1-t)}function o(t){return 3*t*t-2*t*t*t}function a(t){return t}r.d(e,{GE:()=>a,Vv:()=>i,YQ:()=>n,rd:()=>o})},5310:(t,e,r)=>{"use strict";r.d(e,{Vx:()=>o,bN:()=>a,oL:()=>i});var n=r(273);function i(t,e,r,n,i){if(n&&n!==t&&(r=r.bind(n)),i){var o=r;r=function(){t.removeEventListener(e,r),o.apply(this,arguments)}}var a={target:t,type:e,listener:r};return t.addEventListener(e,r),a}function o(t,e,r,n){return i(t,e,r,n,!0)}function a(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,n.ZH)(t))}},7288:(t,e,r)=>{"use strict";r.d(e,{ZP:()=>n});const n=function(){function t(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}return t.prototype.preventDefault=function(){this.defaultPrevented=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t}()},7758:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},8408:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});var n,i=r(2083),o=r(7288),a=r(1998),s=r(273),l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const u=function(t){function e(e){var r=t.call(this)||this;return r.eventTarget_=e,r.pendingRemovals_=null,r.dispatching_=null,r.listeners_=null,r}return l(e,t),e.prototype.addEventListener=function(t,e){if(t&&e){var r=this.listeners_||(this.listeners_={}),n=r[t]||(r[t]=[]);-1===n.indexOf(e)&&n.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"==typeof t,r=e?t:t.type,n=this.listeners_&&this.listeners_[r];if(n){var i=e?new o.ZP(t):t;i.target||(i.target=this.eventTarget_||this);var s,l=this.dispatching_||(this.dispatching_={}),u=this.pendingRemovals_||(this.pendingRemovals_={});r in l||(l[r]=0,u[r]=0),++l[r];for(var h=0,p=n.length;h<p;++h)if(!1===(s="handleEvent"in n[h]?n[h].handleEvent(i):n[h].call(this,i))||i.propagationStopped){s=!1;break}if(0==--l[r]){var c=u[r];for(delete u[r];c--;)this.removeEventListener(r,a.Zn);delete l[r]}return s}},e.prototype.disposeInternal=function(){this.listeners_&&(0,s.ZH)(this.listeners_)},e.prototype.getListeners=function(t){return this.listeners_&&this.listeners_[t]||void 0},e.prototype.hasListener=function(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)},e.prototype.removeEventListener=function(t,e){var r=this.listeners_&&this.listeners_[t];if(r){var n=r.indexOf(e);-1!==n&&(this.pendingRemovals_&&t in this.pendingRemovals_?(r[n]=a.Zn,++this.pendingRemovals_[t]):(r.splice(n,1),0===r.length&&delete this.listeners_[t]))}},e}(i.Z)},2005:(t,e,r)=>{"use strict";r.d(e,{Cf:()=>G,Cr:()=>M,EO:()=>j,Ed:()=>A,GN:()=>v,H6:()=>C,HK:()=>g,I7:()=>z,MV:()=>X,Ne:()=>N,T9:()=>d,Wj:()=>x,Xv:()=>F,YN:()=>y,b8:()=>u,bg:()=>E,d9:()=>s,dY:()=>I,dz:()=>L,f3:()=>a,fS:()=>m,g0:()=>P,hC:()=>S,hI:()=>o,jE:()=>p,kK:()=>Z,l7:()=>_,lJ:()=>f,p8:()=>R,pX:()=>c,qP:()=>b,qf:()=>l,qg:()=>O,r4:()=>h,rL:()=>k,w$:()=>T,xb:()=>D});var n=r(2110),i=r(9751);function o(t){for(var e=[1/0,1/0,-1/0,-1/0],r=0,n=t.length;r<n;++r)x(e,t[r]);return e}function a(t,e,r){return r?(r[0]=t[0]-e,r[1]=t[1]-e,r[2]=t[2]+e,r[3]=t[3]+e,r):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function s(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function l(t,e,r){var n,i;return(n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*n+(i=r<t[1]?t[1]-r:t[3]<r?r-t[3]:0)*i}function u(t,e){return p(t,e[0],e[1])}function h(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function p(t,e,r){return t[0]<=e&&e<=t[2]&&t[1]<=r&&r<=t[3]}function c(t,e){var r=t[0],i=t[1],o=t[2],a=t[3],s=e[0],l=e[1],u=n.Z.UNKNOWN;return s<r?u|=n.Z.LEFT:s>o&&(u|=n.Z.RIGHT),l<i?u|=n.Z.BELOW:l>a&&(u|=n.Z.ABOVE),u===n.Z.UNKNOWN&&(u=n.Z.INTERSECTING),u}function f(){return[1/0,1/0,-1/0,-1/0]}function d(t,e,r,n,i){return i?(i[0]=t,i[1]=e,i[2]=r,i[3]=n,i):[t,e,r,n]}function y(t){return d(1/0,1/0,-1/0,-1/0,t)}function g(t,e){var r=t[0],n=t[1];return d(r,n,r,n,e)}function v(t,e,r,n,i){return b(y(i),t,e,r,n)}function m(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function _(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function x(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function b(t,e,r,n,i){for(;r<n;r+=i)w(t,e[r],e[r+1]);return t}function w(t,e,r){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],r),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],r)}function C(t,e){var r;return(r=e(S(t)))||(r=e(T(t)))||(r=e(F(t)))?r:(r=e(k(t)))||!1}function E(t){var e=0;return D(t)||(e=L(t)*M(t)),e}function S(t){return[t[0],t[1]]}function T(t){return[t[2],t[1]]}function O(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function P(t,e){var r;return"bottom-left"===e?r=S(t):"bottom-right"===e?r=T(t):"top-left"===e?r=k(t):"top-right"===e?r=F(t):(0,i.h)(!1,13),r}function R(t,e,r,n,i){var o=I(t,e,r,n),a=o[0],s=o[1],l=o[2],u=o[3],h=o[4],p=o[5],c=o[6],f=o[7];return d(Math.min(a,l,h,c),Math.min(s,u,p,f),Math.max(a,l,h,c),Math.max(s,u,p,f),i)}function I(t,e,r,n){var i=e*n[0]/2,o=e*n[1]/2,a=Math.cos(r),s=Math.sin(r),l=i*a,u=i*s,h=o*a,p=o*s,c=t[0],f=t[1];return[c-l+p,f-u-h,c-l-p,f-u+h,c+l-p,f+u+h,c+l+p,f+u-h,c-l+p,f-u-h]}function M(t){return t[3]-t[1]}function A(t,e,r){var n=r||[1/0,1/0,-1/0,-1/0];return Z(t,e)?(t[0]>e[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]<e[2]?n[2]=t[2]:n[2]=e[2],t[3]<e[3]?n[3]=t[3]:n[3]=e[3]):y(n),n}function k(t){return[t[0],t[3]]}function F(t){return[t[2],t[3]]}function L(t){return t[2]-t[0]}function Z(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function D(t){return t[2]<t[0]||t[3]<t[1]}function j(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function z(t,e,r){var i=!1,o=c(t,e),a=c(t,r);if(o===n.Z.INTERSECTING||a===n.Z.INTERSECTING)i=!0;else{var s=t[0],l=t[1],u=t[2],h=t[3],p=e[0],f=e[1],d=r[0],y=r[1],g=(y-f)/(d-p),v=void 0,m=void 0;a&n.Z.ABOVE&&!(o&n.Z.ABOVE)&&(i=(v=d-(y-h)/g)>=s&&v<=u),i||!(a&n.Z.RIGHT)||o&n.Z.RIGHT||(i=(m=y-(d-u)*g)>=l&&m<=h),i||!(a&n.Z.BELOW)||o&n.Z.BELOW||(i=(v=d-(y-l)/g)>=s&&v<=u),i||!(a&n.Z.LEFT)||o&n.Z.LEFT||(i=(m=y-(d-s)*g)>=l&&m<=h)}return i}function N(t,e,r,n){var i=[];if(n>1)for(var o=t[2]-t[0],a=t[3]-t[1],s=0;s<n;++s)i.push(t[0]+o*s/n,t[1],t[2],t[1]+a*s/n,t[2]-o*s/n,t[3],t[0],t[3]-a*s/n);else i=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(i,i,2);for(var l=[],u=[],h=(s=0,i.length);s<h;s+=2)l.push(i[s]),u.push(i[s+1]);return function(t,e,r){return d(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),r)}(l,u,r)}function G(t,e){var r=e.getExtent(),n=O(t);if(e.canWrapX()&&(n[0]<r[0]||n[0]>=r[2])){var i=L(r),o=Math.floor((n[0]-r[0])/i)*i;t[0]-=o,t[2]-=o}return t}function X(t,e){if(e.canWrapX()){var r=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[r[0],t[1],r[2],t[3]]];G(t,e);var n=L(r);if(L(t)>n)return[[r[0],t[1],r[2],t[3]]];if(t[0]<r[0])return[[t[0]+n,t[1],r[2],t[3]],[r[0],t[1],t[2],t[3]]];if(t[2]>r[2])return[[t[0],t[1],r[2],t[3]],[r[0],t[1],t[2]-n,t[3]]]}return[t]}},2110:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},3618:(t,e,r)=>{"use strict";r.d(e,{Be:()=>o,ov:()=>i});var n=r(1998);function i(t,e,r,n,i,o,a){var s=new XMLHttpRequest;s.open("GET","function"==typeof t?t(r,n,i):t,!0),"arraybuffer"==e.getType()&&(s.responseType="arraybuffer"),s.withCredentials=false,s.onload=function(t){if(!s.status||s.status>=200&&s.status<300){var n=e.getType(),l=void 0;"json"==n||"text"==n?l=s.responseText:"xml"==n?(l=s.responseXML)||(l=(new DOMParser).parseFromString(s.responseText,"application/xml")):"arraybuffer"==n&&(l=s.response),l?o(e.readFeatures(l,{extent:r,featureProjection:i}),e.readProjection(l)):a()}else a()},s.onerror=a,s.send()}function o(t,e){return function(r,o,a,s,l){var u=this;i(t,e,r,o,a,(function(t,e){u.addFeatures(t),void 0!==s&&s(t)}),l||n.Zn)}}},5817:(t,e,r)=>{"use strict";r.d(e,{ZP:()=>s,fI:()=>l});var n=r(8430),i=r(4415),o=r(273),a=r(9786);const s=function(){function t(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}return t.prototype.getReadOptions=function(t,e){var r;if(e){var i=e.dataProjection?(0,a.U2)(e.dataProjection):this.readProjection(t);e.extent&&i&&i.getUnits()===n.ZP.TILE_PIXELS&&(i=(0,a.U2)(i)).setWorldExtent(e.extent),r={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(r)},t.prototype.adaptOptions=function(t){return(0,o.f0)({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},t.prototype.getType=function(){return(0,i.O3)()},t.prototype.readFeature=function(t,e){return(0,i.O3)()},t.prototype.readFeatures=function(t,e){return(0,i.O3)()},t.prototype.readGeometry=function(t,e){return(0,i.O3)()},t.prototype.readProjection=function(t){return(0,i.O3)()},t.prototype.writeFeature=function(t,e){return(0,i.O3)()},t.prototype.writeFeatures=function(t,e){return(0,i.O3)()},t.prototype.writeGeometry=function(t,e){return(0,i.O3)()},t}();function l(t,e,r){var n,i=r?(0,a.U2)(r.featureProjection):null,o=r?(0,a.U2)(r.dataProjection):null;if(n=i&&o&&!(0,a.OP)(i,o)?(e?t.clone():t).transform(e?i:o,e?o:i):t,e&&r&&void 0!==r.decimals){var s=Math.pow(10,r.decimals);n===t&&(n=t.clone()),n.applyTransform((function(t){for(var e=0,r=t.length;e<r;++e)t[e]=Math.round(t[e]*s)/s;return t}))}return n}},8833:(t,e,r)=>{"use strict";r.d(e,{Z:()=>A});var n,i=r(12),o=r(7758),a=r(9751),s=r(5310),l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=function(t){function e(e){var r=t.call(this)||this;if(r.on,r.once,r.un,r.id_=void 0,r.geometryName_="geometry",r.style_=null,r.styleFunction_=void 0,r.geometryChangeKey_=null,r.addChangeListener(r.geometryName_,r.handleGeometryChanged_),e)if("function"==typeof e.getSimplifiedGeometry){var n=e;r.setGeometry(n)}else{var i=e;r.setProperties(i)}return r}return l(e,t),e.prototype.clone=function(){var t=new e(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());var r=this.getGeometry();r&&t.setGeometry(r.clone());var n=this.getStyle();return n&&t.setStyle(n),t},e.prototype.getGeometry=function(){return this.get(this.geometryName_)},e.prototype.getId=function(){return this.id_},e.prototype.getGeometryName=function(){return this.geometryName_},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.handleGeometryChange_=function(){this.changed()},e.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&((0,s.bN)(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=(0,s.oL)(t,o.Z.CHANGE,this.handleGeometryChange_,this)),this.changed()},e.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},e.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?function(t){return"function"==typeof t?t:(Array.isArray(t)?e=t:((0,a.h)("function"==typeof t.getZIndex,41),e=[t]),function(){return e});var e}(t):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()},e}(i.Z);const h=u;var p=r(3176),c=r(2005),f=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function d(t){for(var e=[],r=0,n=t.length;r<n;++r)e.push(t[r].clone());return e}const y=function(t){function e(e){var r=t.call(this)||this;return r.geometries_=e||null,r.changeEventsKeys_=[],r.listenGeometriesChange_(),r}return f(e,t),e.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(s.bN),this.changeEventsKeys_.length=0},e.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,e=this.geometries_.length;t<e;++t)this.changeEventsKeys_.push((0,s.oL)(this.geometries_[t],o.Z.CHANGE,this.changed,this))},e.prototype.clone=function(){var t=new e(null);return t.setGeometries(this.geometries_),t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){if(n<(0,c.qf)(this.getExtent(),t,e))return n;for(var i=this.geometries_,o=0,a=i.length;o<a;++o)n=i[o].closestPointXY(t,e,r,n);return n},e.prototype.containsXY=function(t,e){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)if(r[n].containsXY(t,e))return!0;return!1},e.prototype.computeExtent=function(t){(0,c.YN)(t);for(var e=this.geometries_,r=0,n=e.length;r<n;++r)(0,c.l7)(t,e[r].getExtent());return t},e.prototype.getGeometries=function(){return d(this.geometries_)},e.prototype.getGeometriesArray=function(){return this.geometries_},e.prototype.getGeometriesArrayRecursive=function(){for(var t=[],e=this.geometries_,r=0,n=e.length;r<n;++r)e[r].getType()===this.getType()?t=t.concat(e[r].getGeometriesArrayRecursive()):t.push(e[r]);return t},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;for(var r=[],n=this.geometries_,i=!1,o=0,a=n.length;o<a;++o){var s=n[o],l=s.getSimplifiedGeometry(t);r.push(l),l!==s&&(i=!0)}if(i){var u=new e(null);return u.setGeometriesArray(r),u}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this},e.prototype.getType=function(){return"GeometryCollection"},e.prototype.intersectsExtent=function(t){for(var e=this.geometries_,r=0,n=e.length;r<n;++r)if(e[r].intersectsExtent(t))return!0;return!1},e.prototype.isEmpty=function(){return 0===this.geometries_.length},e.prototype.rotate=function(t,e){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)r[n].rotate(t,e);this.changed()},e.prototype.scale=function(t,e,r){var n=r;n||(n=(0,c.qg)(this.getExtent()));for(var i=this.geometries_,o=0,a=i.length;o<a;++o)i[o].scale(t,e,n);this.changed()},e.prototype.setGeometries=function(t){this.setGeometriesArray(d(t))},e.prototype.setGeometriesArray=function(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()},e.prototype.applyTransform=function(t){for(var e=this.geometries_,r=0,n=e.length;r<n;++r)e[r].applyTransform(t);this.changed()},e.prototype.translate=function(t,e){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)r[n].translate(t,e);this.changed()},e.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),t.prototype.disposeInternal.call(this)},e}(p.Z);var g=r(5817),v=r(4415),m=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function _(t){return"string"==typeof t?JSON.parse(t)||null:null!==t?t:null}const x=function(t){function e(){return t.call(this)||this}return m(e,t),e.prototype.getType=function(){return"json"},e.prototype.readFeature=function(t,e){return this.readFeatureFromObject(_(t),this.getReadOptions(t,e))},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromObject(_(t),this.getReadOptions(t,e))},e.prototype.readFeatureFromObject=function(t,e){return(0,v.O3)()},e.prototype.readFeaturesFromObject=function(t,e){return(0,v.O3)()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromObject(_(t),this.getReadOptions(t,e))},e.prototype.readGeometryFromObject=function(t,e){return(0,v.O3)()},e.prototype.readProjection=function(t){return this.readProjectionFromObject(_(t))},e.prototype.readProjectionFromObject=function(t){return(0,v.O3)()},e.prototype.writeFeature=function(t,e){return JSON.stringify(this.writeFeatureObject(t,e))},e.prototype.writeFeatureObject=function(t,e){return(0,v.O3)()},e.prototype.writeFeatures=function(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))},e.prototype.writeFeaturesObject=function(t,e){return(0,v.O3)()},e.prototype.writeGeometry=function(t,e){return JSON.stringify(this.writeGeometryObject(t,e))},e.prototype.writeGeometryObject=function(t,e){return(0,v.O3)()},e}(g.ZP);var b=r(8132),w=r(7659),C=r(9468),E=r(8264),S=r(1879),T=r(5828),O=r(273),P=r(9786),R=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function I(t,e){if(!t)return null;var r;switch(t.type){case"Point":r=function(t){return new S.Z(t.coordinates)}(t);break;case"LineString":r=function(t){return new b.Z(t.coordinates)}(t);break;case"Polygon":r=function(t){return new T.ZP(t.coordinates)}(t);break;case"MultiPoint":r=function(t){return new C.Z(t.coordinates)}(t);break;case"MultiLineString":r=function(t){return new w.Z(t.coordinates)}(t);break;case"MultiPolygon":r=function(t){return new E.Z(t.coordinates)}(t);break;case"GeometryCollection":r=function(t,e){var r=t.geometries.map((function(t){return I(t,undefined)}));return new y(r)}(t);break;default:throw new Error("Unsupported GeoJSON type: "+t.type)}return(0,g.fI)(r,!1,e)}function M(t,e){var r,n=(t=(0,g.fI)(t,!0,e)).getType();switch(n){case"Point":r=function(t,e){return{type:"Point",coordinates:t.getCoordinates()}}(t);break;case"LineString":r=function(t,e){return{type:"LineString",coordinates:t.getCoordinates()}}(t);break;case"Polygon":r=function(t,e){var r;return e&&(r=e.rightHanded),{type:"Polygon",coordinates:t.getCoordinates(r)}}(t,e);break;case"MultiPoint":r=function(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}}(t);break;case"MultiLineString":r=function(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}}(t);break;case"MultiPolygon":r=function(t,e){var r;return e&&(r=e.rightHanded),{type:"MultiPolygon",coordinates:t.getCoordinates(r)}}(t,e);break;case"GeometryCollection":r=function(t,e){return{type:"GeometryCollection",geometries:t.getGeometriesArray().map((function(t){var r=(0,O.f0)({},e);return delete r.featureProjection,M(t,r)}))}}(t,e);break;case"Circle":r={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+n)}return r}const A=function(t){function e(e){var r=this,n=e||{};return(r=t.call(this)||this).dataProjection=(0,P.U2)(n.dataProjection?n.dataProjection:"EPSG:4326"),n.featureProjection&&(r.defaultFeatureProjection=(0,P.U2)(n.featureProjection)),r.geometryName_=n.geometryName,r.extractGeometryName_=n.extractGeometryName,r.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],r}return R(e,t),e.prototype.readFeatureFromObject=function(t,e){var r,n=I((r="Feature"===t.type?t:{type:"Feature",geometry:t,properties:null}).geometry,e),i=new h;return this.geometryName_?i.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in r!==void 0&&i.setGeometryName(r.geometry_name),i.setGeometry(n),"id"in r&&i.setId(r.id),r.properties&&i.setProperties(r.properties,!0),i},e.prototype.readFeaturesFromObject=function(t,e){var r=null;if("FeatureCollection"===t.type){r=[];for(var n=t.features,i=0,o=n.length;i<o;++i)r.push(this.readFeatureFromObject(n[i],e))}else r=[this.readFeatureFromObject(t,e)];return r},e.prototype.readGeometryFromObject=function(t,e){return I(t,e)},e.prototype.readProjectionFromObject=function(t){var e,r=t.crs;return r?"name"==r.type?e=(0,P.U2)(r.properties.name):"EPSG"===r.type?e=(0,P.U2)("EPSG:"+r.properties.code):(0,a.h)(!1,36):e=this.dataProjection,e},e.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var r={type:"Feature",geometry:null,properties:null},n=t.getId();if(void 0!==n&&(r.id=n),!t.hasProperties())return r;var i=t.getProperties(),o=t.getGeometry();return o&&(r.geometry=M(o,e),delete i[t.getGeometryName()]),(0,O.xb)(i)||(r.properties=i),r},e.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);for(var r=[],n=0,i=t.length;n<i;++n)r.push(this.writeFeatureObject(t[n],e));return{type:"FeatureCollection",features:r}},e.prototype.writeGeometryObject=function(t,e){return M(t,this.adaptOptions(e))},e}(x)},1998:(t,e,r)=>{"use strict";r.d(e,{Dv:()=>o,Zn:()=>a,qe:()=>s,uX:()=>i});var n=r(7782);function i(){return!0}function o(){return!1}function a(){}function s(t){var e,r,i,o=!1;return function(){var a=Array.prototype.slice.call(arguments);return o&&this===i&&(0,n.fS)(a,r)||(o=!0,i=this,r=a,e=t.apply(this,arguments)),e}}},3176:(t,e,r)=>{"use strict";r.d(e,{Z:()=>d});var n,i=r(12),o=r(8430),a=r(4415),s=r(4765),l=r(2005),u=r(9786),h=r(1998),p=r(7810),c=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),f=(0,s.Ue)();const d=function(t){function e(){var e=t.call(this)||this;return e.extent_=(0,l.lJ)(),e.extentRevision_=-1,e.simplifiedGeometryMaxMinSquaredTolerance=0,e.simplifiedGeometryRevision=0,e.simplifyTransformedInternal=(0,h.qe)((function(t,e,r){if(!r)return this.getSimplifiedGeometry(e);var n=this.clone();return n.applyTransform(r),n.getSimplifiedGeometry(e)})),e}return c(e,t),e.prototype.simplifyTransformed=function(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)},e.prototype.clone=function(){return(0,a.O3)()},e.prototype.closestPointXY=function(t,e,r,n){return(0,a.O3)()},e.prototype.containsXY=function(t,e){var r=this.getClosestPoint([t,e]);return r[0]===t&&r[1]===e},e.prototype.getClosestPoint=function(t,e){var r=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],r,1/0),r},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return(0,a.O3)()},e.prototype.getExtent=function(t){if(this.extentRevision_!=this.getRevision()){var e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&(0,l.YN)(e),this.extentRevision_=this.getRevision()}return(0,l.EO)(this.extent_,t)},e.prototype.rotate=function(t,e){(0,a.O3)()},e.prototype.scale=function(t,e,r){(0,a.O3)()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return(0,a.O3)()},e.prototype.getType=function(){return(0,a.O3)()},e.prototype.applyTransform=function(t){(0,a.O3)()},e.prototype.intersectsExtent=function(t){return(0,a.O3)()},e.prototype.translate=function(t,e){(0,a.O3)()},e.prototype.transform=function(t,e){var r=(0,u.U2)(t),n=r.getUnits()==o.ZP.TILE_PIXELS?function(t,n,i){var o=r.getExtent(),a=r.getWorldExtent(),h=(0,l.Cr)(a)/(0,l.Cr)(o);return(0,s.qC)(f,a[0],a[3],h,-h,0,0,0),(0,p.vT)(t,0,t.length,i,f,n),(0,u.Ck)(r,e)(t,n,i)}:(0,u.Ck)(r,e);return this.applyTransform(n),this},e}(i.Z)},8476:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},8132:(t,e,r)=>{"use strict";r.d(e,{Z:()=>v});var n,i=r(8476),o=r(3062),a=r(6273),s=r(2005),l=r(3234),u=r(8033),h=r(7782),p=r(8190),c=r(9157),f=r(3174),d=r(8797),y=r(6097),g=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const v=function(t){function e(e,r){var n=t.call(this)||this;return n.flatMidpoint_=null,n.flatMidpointRevision_=-1,n.maxDelta_=-1,n.maxDeltaRevision_=-1,void 0===r||Array.isArray(e[0])?n.setCoordinates(e,r):n.setFlatCoordinates(r,e),n}return g(e,t),e.prototype.appendCoordinate=function(t){this.flatCoordinates?(0,h.l7)(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){return n<(0,s.qf)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,r,n))},e.prototype.forEachSegment=function(t){return(0,p.E)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinateAtM=function(t,e){if(this.layout!=i.Z.XYM&&this.layout!=i.Z.XYZM)return null;var r=void 0!==e&&e;return(0,f.iJ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r)},e.prototype.getCoordinates=function(){return(0,c.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinateAt=function(t,e){return(0,f.WW)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)},e.prototype.getLength=function(){return(0,y.W)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[];return r.length=(0,u.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r,0),new e(r,i.Z.XY)},e.prototype.getType=function(){return"LineString"},e.prototype.intersectsExtent=function(t){return(0,d.Kz)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,l.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(o.ZP)},7659:(t,e,r)=>{"use strict";r.d(e,{Z:()=>g});var n,i=r(8476),o=r(8132),a=r(3062),s=r(6273),l=r(2005),u=r(3234),h=r(8033),p=r(7782),c=r(9157),f=r(3174),d=r(8797),y=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const g=function(t){function e(e,r,n){var i=t.call(this)||this;if(i.ends_=[],i.maxDelta_=-1,i.maxDeltaRevision_=-1,Array.isArray(e[0]))i.setCoordinates(e,r);else if(void 0!==r&&n)i.setFlatCoordinates(r,e),i.ends_=n;else{for(var o=i.getLayout(),a=e,s=[],l=[],u=0,h=a.length;u<h;++u){var c=a[u];0===u&&(o=c.getLayout()),(0,p.l7)(s,c.getFlatCoordinates()),l.push(s.length)}i.setFlatCoordinates(o,s),i.ends_=l}return i}return y(e,t),e.prototype.appendLineString=function(t){this.flatCoordinates?(0,p.l7)(this.flatCoordinates,t.getFlatCoordinates().slice()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){return n<(0,l.qf)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,s.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,s.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,r,n))},e.prototype.getCoordinateAtM=function(t,e,r){if(this.layout!=i.Z.XYM&&this.layout!=i.Z.XYZM||0===this.flatCoordinates.length)return null;var n=void 0!==e&&e,o=void 0!==r&&r;return(0,f.dG)(this.flatCoordinates,0,this.ends_,this.stride,t,n,o)},e.prototype.getCoordinates=function(){return(0,c.o1)(this.flatCoordinates,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getLineString=function(t){return t<0||this.ends_.length<=t?null:new o.Z(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLineStrings=function(){for(var t=this.flatCoordinates,e=this.ends_,r=this.layout,n=[],i=0,a=0,s=e.length;a<s;++a){var l=e[a],u=new o.Z(t.slice(i,l),r);n.push(u),i=l}return n},e.prototype.getFlatMidpoints=function(){for(var t=[],e=this.flatCoordinates,r=0,n=this.ends_,i=this.stride,o=0,a=n.length;o<a;++o){var s=n[o],l=(0,f.WW)(e,r,s,i,.5);(0,p.l7)(t,l),r=s}return t},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[],n=[];return r.length=(0,h.UJ)(this.flatCoordinates,0,this.ends_,this.stride,t,r,0,n),new e(r,i.Z.XY,n)},e.prototype.getType=function(){return"MultiLineString"},e.prototype.intersectsExtent=function(t){return(0,d.AW)(this.flatCoordinates,0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var r=(0,u._5)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===r.length?0:r[r.length-1],this.changed()},e}(a.ZP)},9468:(t,e,r)=>{"use strict";r.d(e,{Z:()=>c});var n,i=r(1879),o=r(3062),a=r(2005),s=r(3234),l=r(7782),u=r(9157),h=r(7344),p=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const c=function(t){function e(e,r){var n=t.call(this)||this;return r&&!Array.isArray(e[0])?n.setFlatCoordinates(r,e):n.setCoordinates(e,r),n}return p(e,t),e.prototype.appendPoint=function(t){this.flatCoordinates?(0,l.l7)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){if(n<(0,a.qf)(this.getExtent(),t,e))return n;for(var i=this.flatCoordinates,o=this.stride,s=0,l=i.length;s<l;s+=o){var u=(0,h.bI)(t,e,i[s],i[s+1]);if(u<n){n=u;for(var p=0;p<o;++p)r[p]=i[s+p];r.length=o}}return n},e.prototype.getCoordinates=function(){return(0,u.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getPoint=function(t){var e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||e<=t?null:new i.Z(this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)},e.prototype.getPoints=function(){for(var t=this.flatCoordinates,e=this.layout,r=this.stride,n=[],o=0,a=t.length;o<a;o+=r){var s=new i.Z(t.slice(o,o+r),e);n.push(s)}return n},e.prototype.getType=function(){return"MultiPoint"},e.prototype.intersectsExtent=function(t){for(var e=this.flatCoordinates,r=this.stride,n=0,i=e.length;n<i;n+=r){var o=e[n],s=e[n+1];if((0,a.jE)(t,o,s))return!0}return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,s.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(o.ZP)},8264:(t,e,r)=>{"use strict";r.d(e,{Z:()=>b});var n,i=r(8476),o=r(9468),a=r(5828),s=r(3062),l=r(6273),u=r(2005),h=r(3234),p=r(7782),c=r(6096),f=r(9157),d=r(8797),y=r(7704),g=r(9260),v=r(215),m=r(1472),_=r(8033),x=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const b=function(t){function e(e,r,n){var i=t.call(this)||this;if(i.endss_=[],i.flatInteriorPointsRevision_=-1,i.flatInteriorPoints_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,!n&&!Array.isArray(e[0])){for(var o=i.getLayout(),a=e,s=[],l=[],u=0,h=a.length;u<h;++u){var c=a[u];0===u&&(o=c.getLayout());for(var f=s.length,d=c.getEnds(),y=0,g=d.length;y<g;++y)d[y]+=f;(0,p.l7)(s,c.getFlatCoordinates()),l.push(d)}r=o,e=s,n=l}return void 0!==r&&n?(i.setFlatCoordinates(r,e),i.endss_=n):i.setCoordinates(e,r),i}return x(e,t),e.prototype.appendPolygon=function(t){var e;if(this.flatCoordinates){var r=this.flatCoordinates.length;(0,p.l7)(this.flatCoordinates,t.getFlatCoordinates());for(var n=0,i=(e=t.getEnds().slice()).length;n<i;++n)e[n]+=r}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()},e.prototype.clone=function(){for(var t=this.endss_.length,r=new Array(t),n=0;n<t;++n)r[n]=this.endss_[n].slice();var i=new e(this.flatCoordinates.slice(),this.layout,r);return i.applyProperties(this),i},e.prototype.closestPointXY=function(t,e,r,n){return n<(0,u.qf)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,l.sD)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,l.gI)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,r,n))},e.prototype.containsXY=function(t,e){return(0,m.Zl)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)},e.prototype.getArea=function(){return(0,g.Eu)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,y.dL)(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,(0,f.ug)(e,0,this.endss_,this.stride)},e.prototype.getEndss=function(){return this.endss_},e.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var t=(0,v.E)(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=(0,c.U)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},e.prototype.getInteriorPoints=function(){return new o.Z(this.getFlatInteriorPoints().slice(),i.Z.XYM)},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;(0,y.Oj)(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,y.dL)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[],n=[];return r.length=(0,_.Pp)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),r,0,n),new e(r,i.Z.XY,n)},e.prototype.getPolygon=function(t){if(t<0||this.endss_.length<=t)return null;var e;if(0===t)e=0;else{var r=this.endss_[t-1];e=r[r.length-1]}var n=this.endss_[t].slice(),i=n[n.length-1];if(0!==e)for(var o=0,s=n.length;o<s;++o)n[o]-=e;return new a.ZP(this.flatCoordinates.slice(e,i),this.layout,n)},e.prototype.getPolygons=function(){for(var t=this.layout,e=this.flatCoordinates,r=this.endss_,n=[],i=0,o=0,s=r.length;o<s;++o){var l=r[o].slice(),u=l[l.length-1];if(0!==i)for(var h=0,p=l.length;h<p;++h)l[h]-=i;var c=new a.ZP(e.slice(i,u),t,l);n.push(c),i=u}return n},e.prototype.getType=function(){return"MultiPolygon"},e.prototype.intersectsExtent=function(t){return(0,d.oW)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);var r=(0,h.QT)(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===r.length)this.flatCoordinates.length=0;else{var n=r[r.length-1];this.flatCoordinates.length=0===n.length?0:n[n.length-1]}this.changed()},e}(s.ZP)},1879:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});var n,i=r(3062),o=r(2005),a=r(3234),s=r(7344),l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const u=function(t){function e(e,r){var n=t.call(this)||this;return n.setCoordinates(e,r),n}return l(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){var i=this.flatCoordinates,o=(0,s.bI)(t,e,i[0],i[1]);if(o<n){for(var a=this.stride,l=0;l<a;++l)r[l]=i[l];return r.length=a,o}return n},e.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},e.prototype.computeExtent=function(t){return(0,o.HK)(this.flatCoordinates,t)},e.prototype.getType=function(){return"Point"},e.prototype.intersectsExtent=function(t){return(0,o.jE)(t,this.flatCoordinates[0],this.flatCoordinates[1])},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,a.IG)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(i.ZP)},5828:(t,e,r)=>{"use strict";r.d(e,{ZP:()=>w,oJ:()=>C});var n,i=r(8476),o=r(3062),a=r(6273),s=r(2005),l=r(3234),u=r(8033),h=r(9157),p=r(9260),c=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const f=function(t){function e(e,r){var n=t.call(this)||this;return n.maxDelta_=-1,n.maxDeltaRevision_=-1,void 0===r||Array.isArray(e[0])?n.setCoordinates(e,r):n.setFlatCoordinates(r,e),n}return c(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,r,n){return n<(0,s.qf)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,r,n))},e.prototype.getArea=function(){return(0,p.QQ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return(0,h.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[];return r.length=(0,u.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r,0),new e(r,i.Z.XY)},e.prototype.getType=function(){return"LinearRing"},e.prototype.intersectsExtent=function(t){return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,l.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(o.ZP);var d=r(1879),y=r(7782),g=r(6096),v=r(8797),m=r(7704),_=r(1472),x=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),b=function(t){function e(e,r,n){var i=t.call(this)||this;return i.ends_=[],i.flatInteriorPointRevision_=-1,i.flatInteriorPoint_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,void 0!==r&&n?(i.setFlatCoordinates(r,e),i.ends_=n):i.setCoordinates(e,r),i}return x(e,t),e.prototype.appendLinearRing=function(t){this.flatCoordinates?(0,y.l7)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){return n<(0,s.qf)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,r,n))},e.prototype.containsXY=function(t,e){return(0,_.wY)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return(0,p.KP)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,m.zX)(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,(0,h.o1)(e,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var t=(0,s.qg)(this.getExtent());this.flatInteriorPoint_=(0,g.X)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new d.Z(this.getFlatInteriorPoint(),i.Z.XYM)},e.prototype.getLinearRingCount=function(){return this.ends_.length},e.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new f(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLinearRings=function(){for(var t=this.layout,e=this.flatCoordinates,r=this.ends_,n=[],i=0,o=0,a=r.length;o<a;++o){var s=r[o],l=new f(e.slice(i,s),t);n.push(l),i=s}return n},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;(0,m.$v)(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,m.zX)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[],n=[];return r.length=(0,u.Zh)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),r,0,n),new e(r,i.Z.XY,n)},e.prototype.getType=function(){return"Polygon"},e.prototype.intersectsExtent=function(t){return(0,v.ac)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var r=(0,l._5)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===r.length?0:r[r.length-1],this.changed()},e}(o.ZP);const w=b;function C(t){var e=t[0],r=t[1],n=t[2],o=t[3],a=[e,r,e,o,n,o,n,r,e,r];return new b(a,i.Z.XY,[a.length])}},3062:(t,e,r)=>{"use strict";r.d(e,{Kr:()=>p,ZP:()=>c});var n,i=r(3176),o=r(8476),a=r(4415),s=r(2005),l=r(7810),u=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function h(t){var e;return t==o.Z.XY?e=2:t==o.Z.XYZ||t==o.Z.XYM?e=3:t==o.Z.XYZM&&(e=4),e}function p(t,e,r){var n=t.getFlatCoordinates();if(n){var i=t.getStride();return(0,l.vT)(n,0,n.length,i,e,r)}return null}const c=function(t){function e(){var e=t.call(this)||this;return e.layout=o.Z.XY,e.stride=2,e.flatCoordinates=null,e}return u(e,t),e.prototype.computeExtent=function(t){return(0,s.GN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return(0,a.O3)()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},e.prototype.getSimplifiedGeometryInternal=function(t){return this},e.prototype.getStride=function(){return this.stride},e.prototype.setFlatCoordinates=function(t,e){this.stride=h(t),this.layout=t,this.flatCoordinates=e},e.prototype.setCoordinates=function(t,e){(0,a.O3)()},e.prototype.setLayout=function(t,e,r){var n;if(t)n=h(t);else{for(var i=0;i<r;++i){if(0===e.length)return this.layout=o.Z.XY,void(this.stride=2);e=e[0]}t=function(t){var e;return 2==t?e=o.Z.XY:3==t?e=o.Z.XYZ:4==t&&(e=o.Z.XYZM),e}(n=e.length)}this.layout=t,this.stride=n},e.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},e.prototype.rotate=function(t,e){var r=this.getFlatCoordinates();if(r){var n=this.getStride();(0,l.U1)(r,0,r.length,n,t,e,r),this.changed()}},e.prototype.scale=function(t,e,r){var n=e;void 0===n&&(n=t);var i=r;i||(i=(0,s.qg)(this.getExtent()));var o=this.getFlatCoordinates();if(o){var a=this.getStride();(0,l.bA)(o,0,o.length,a,t,n,i,o),this.changed()}},e.prototype.translate=function(t,e){var r=this.getFlatCoordinates();if(r){var n=this.getStride();(0,l.Iu)(r,0,r.length,n,t,e,r),this.changed()}},e}(i.Z)},9260:(t,e,r)=>{"use strict";function n(t,e,r,n){for(var i=0,o=t[r-n],a=t[r-n+1];e<r;e+=n){var s=t[e],l=t[e+1];i+=a*s-o*l,o=s,a=l}return i/2}function i(t,e,r,i){for(var o=0,a=0,s=r.length;a<s;++a){var l=r[a];o+=n(t,e,l,i),e=l}return o}function o(t,e,r,n){for(var o=0,a=0,s=r.length;a<s;++a){var l=r[a];o+=i(t,e,l,n),e=l[l.length-1]}return o}r.d(e,{Eu:()=>o,KP:()=>i,QQ:()=>n})},215:(t,e,r)=>{"use strict";r.d(e,{E:()=>i});var n=r(2005);function i(t,e,r,i){for(var o=[],a=(0,n.lJ)(),s=0,l=r.length;s<l;++s){var u=r[s];a=(0,n.GN)(t,e,u[0],i),o.push((a[0]+a[2])/2,(a[1]+a[3])/2),e=u[u.length-1]}return o}},6273:(t,e,r)=>{"use strict";r.d(e,{Af:()=>a,Bv:()=>o,H$:()=>l,Xl:()=>u,gI:()=>h,sD:()=>s});var n=r(7344);function i(t,e,r,i,o,a,s){var l,u=t[e],h=t[e+1],p=t[r]-u,c=t[r+1]-h;if(0===p&&0===c)l=e;else{var f=((o-u)*p+(a-h)*c)/(p*p+c*c);if(f>1)l=r;else{if(f>0){for(var d=0;d<i;++d)s[d]=(0,n.t7)(t[e+d],t[r+d],f);return void(s.length=i)}l=e}}for(d=0;d<i;++d)s[d]=t[l+d];s.length=i}function o(t,e,r,i,o){var a=t[e],s=t[e+1];for(e+=i;e<r;e+=i){var l=t[e],u=t[e+1],h=(0,n.bI)(a,s,l,u);h>o&&(o=h),a=l,s=u}return o}function a(t,e,r,n,i){for(var a=0,s=r.length;a<s;++a){var l=r[a];i=o(t,e,l,n,i),e=l}return i}function s(t,e,r,n,i){for(var o=0,s=r.length;o<s;++o){var l=r[o];i=a(t,e,l,n,i),e=l[l.length-1]}return i}function l(t,e,r,o,a,s,l,u,h,p,c){if(e==r)return p;var f,d;if(0===a){if((d=(0,n.bI)(l,u,t[e],t[e+1]))<p){for(f=0;f<o;++f)h[f]=t[e+f];return h.length=o,d}return p}for(var y=c||[NaN,NaN],g=e+o;g<r;)if(i(t,g-o,g,o,l,u,y),(d=(0,n.bI)(l,u,y[0],y[1]))<p){for(p=d,f=0;f<o;++f)h[f]=y[f];h.length=o,g+=o}else g+=o*Math.max((Math.sqrt(d)-Math.sqrt(p))/a|0,1);if(s&&(i(t,r-o,e,o,l,u,y),(d=(0,n.bI)(l,u,y[0],y[1]))<p)){for(p=d,f=0;f<o;++f)h[f]=y[f];h.length=o}return p}function u(t,e,r,n,i,o,a,s,u,h,p){for(var c=p||[NaN,NaN],f=0,d=r.length;f<d;++f){var y=r[f];h=l(t,e,y,n,i,o,a,s,u,h,c),e=y}return h}function h(t,e,r,n,i,o,a,s,l,h,p){for(var c=p||[NaN,NaN],f=0,d=r.length;f<d;++f){var y=r[f];h=u(t,e,y,n,i,o,a,s,l,h,c),e=y[y.length-1]}return h}},1472:(t,e,r)=>{"use strict";r.d(e,{TG:()=>o,Zl:()=>s,uG:()=>i,wY:()=>a});var n=r(2005);function i(t,e,r,i,a){return!(0,n.H6)(a,(function(n){return!o(t,e,r,i,n[0],n[1])}))}function o(t,e,r,n,i,o){for(var a=0,s=t[r-n],l=t[r-n+1];e<r;e+=n){var u=t[e],h=t[e+1];l<=o?h>o&&(u-s)*(o-l)-(i-s)*(h-l)>0&&a++:h<=o&&(u-s)*(o-l)-(i-s)*(h-l)<0&&a--,s=u,l=h}return 0!==a}function a(t,e,r,n,i,a){if(0===r.length)return!1;if(!o(t,e,r[0],n,i,a))return!1;for(var s=1,l=r.length;s<l;++s)if(o(t,r[s-1],r[s],n,i,a))return!1;return!0}function s(t,e,r,n,i,o){if(0===r.length)return!1;for(var s=0,l=r.length;s<l;++s){var u=r[s];if(a(t,e,u,n,i,o))return!0;e=u[u.length-1]}return!1}},3234:(t,e,r)=>{"use strict";function n(t,e,r,n){for(var i=0,o=r.length;i<o;++i)t[e++]=r[i];return e}function i(t,e,r,n){for(var i=0,o=r.length;i<o;++i)for(var a=r[i],s=0;s<n;++s)t[e++]=a[s];return e}function o(t,e,r,n,o){for(var a=o||[],s=0,l=0,u=r.length;l<u;++l){var h=i(t,e,r[l],n);a[s++]=h,e=h}return a.length=s,a}function a(t,e,r,n,i){for(var a=i||[],s=0,l=0,u=r.length;l<u;++l){var h=o(t,e,r[l],n,a[s]);a[s++]=h,e=h[h.length-1]}return a.length=s,a}r.d(e,{IG:()=>n,QT:()=>a,Sg:()=>i,_5:()=>o})},9157:(t,e,r)=>{"use strict";function n(t,e,r,n,i){for(var o=void 0!==i?i:[],a=0,s=e;s<r;s+=n)o[a++]=t.slice(s,s+n);return o.length=a,o}function i(t,e,r,i,o){for(var a=void 0!==o?o:[],s=0,l=0,u=r.length;l<u;++l){var h=r[l];a[s++]=n(t,e,h,i,a[s]),e=h}return a.length=s,a}function o(t,e,r,n,o){for(var a=void 0!==o?o:[],s=0,l=0,u=r.length;l<u;++l){var h=r[l];a[s++]=i(t,e,h,n,a[s]),e=h[h.length-1]}return a.length=s,a}r.d(e,{Ml:()=>n,o1:()=>i,ug:()=>o})},6096:(t,e,r)=>{"use strict";r.d(e,{U:()=>a,X:()=>o});var n=r(1472),i=r(7782);function o(t,e,r,o,a,s,l){for(var u,h,p,c,f,d,y,g=a[s+1],v=[],m=0,_=r.length;m<_;++m){var x=r[m];for(c=t[x-o],d=t[x-o+1],u=e;u<x;u+=o)f=t[u],y=t[u+1],(g<=d&&y<=g||d<=g&&g<=y)&&(p=(g-d)/(y-d)*(f-c)+c,v.push(p)),c=f,d=y}var b=NaN,w=-1/0;for(v.sort(i.kK),c=v[0],u=1,h=v.length;u<h;++u){f=v[u];var C=Math.abs(f-c);C>w&&(p=(c+f)/2,(0,n.wY)(t,e,r,o,p,g)&&(b=p,w=C)),c=f}return isNaN(b)&&(b=a[s]),l?(l.push(b,g,w),l):[b,g,w]}function a(t,e,r,n,i){for(var a=[],s=0,l=r.length;s<l;++s){var u=r[s];a=o(t,e,u,n,i,2*s,a),e=u[u.length-1]}return a}},3174:(t,e,r)=>{"use strict";r.d(e,{WW:()=>o,dG:()=>s,iJ:()=>a});var n=r(7782),i=r(7344);function o(t,e,r,o,a,s,l){var u,h,p=(r-e)/o;if(1===p)u=e;else if(2===p)u=e,h=a;else if(0!==p){for(var c=t[e],f=t[e+1],d=0,y=[0],g=e+o;g<r;g+=o){var v=t[g],m=t[g+1];d+=Math.sqrt((v-c)*(v-c)+(m-f)*(m-f)),y.push(d),c=v,f=m}var _=a*d,x=(0,n.ry)(y,_);x<0?(h=(_-y[-x-2])/(y[-x-1]-y[-x-2]),u=e+(-x-2)*o):u=e+x*o}var b=l>1?l:2,w=s||new Array(b);for(g=0;g<b;++g)w[g]=void 0===u?NaN:void 0===h?t[u+g]:(0,i.t7)(t[u+g],t[u+o+g],h);return w}function a(t,e,r,n,o,a){if(r==e)return null;var s;if(o<t[e+n-1])return a?((s=t.slice(e,e+n))[n-1]=o,s):null;if(t[r-1]<o)return a?((s=t.slice(r-n,r))[n-1]=o,s):null;if(o==t[e+n-1])return t.slice(e,e+n);for(var l=e/n,u=r/n;l<u;){var h=l+u>>1;o<t[(h+1)*n-1]?u=h:l=h+1}var p=t[l*n-1];if(o==p)return t.slice((l-1)*n,(l-1)*n+n);var c=(o-p)/(t[(l+1)*n-1]-p);s=[];for(var f=0;f<n-1;++f)s.push((0,i.t7)(t[(l-1)*n+f],t[l*n+f],c));return s.push(o),s}function s(t,e,r,n,i,o,s){if(s)return a(t,e,r[r.length-1],n,i,o);var l;if(i<t[n-1])return o?((l=t.slice(0,n))[n-1]=i,l):null;if(t[t.length-1]<i)return o?((l=t.slice(t.length-n))[n-1]=i,l):null;for(var u=0,h=r.length;u<h;++u){var p=r[u];if(e!=p){if(i<t[e+n-1])return null;if(i<=t[p-1])return a(t,e,p,n,i,!1);e=p}}return null}},8797:(t,e,r)=>{"use strict";r.d(e,{AW:()=>s,Kz:()=>a,ac:()=>u,mV:()=>l,oW:()=>h});var n=r(2005),i=r(8190),o=r(1472);function a(t,e,r,o,a){var s=(0,n.qP)((0,n.lJ)(),t,e,r,o);return!!(0,n.kK)(a,s)&&(!!(0,n.r4)(a,s)||s[0]>=a[0]&&s[2]<=a[2]||s[1]>=a[1]&&s[3]<=a[3]||(0,i.E)(t,e,r,o,(function(t,e){return(0,n.I7)(a,t,e)})))}function s(t,e,r,n,i){for(var o=0,s=r.length;o<s;++o){if(a(t,e,r[o],n,i))return!0;e=r[o]}return!1}function l(t,e,r,n,i){return!!(a(t,e,r,n,i)||(0,o.TG)(t,e,r,n,i[0],i[1])||(0,o.TG)(t,e,r,n,i[0],i[3])||(0,o.TG)(t,e,r,n,i[2],i[1])||(0,o.TG)(t,e,r,n,i[2],i[3]))}function u(t,e,r,n,i){if(!l(t,e,r[0],n,i))return!1;if(1===r.length)return!0;for(var s=1,u=r.length;s<u;++s)if((0,o.uG)(t,r[s-1],r[s],n,i)&&!a(t,r[s-1],r[s],n,i))return!1;return!0}function h(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o){var s=r[o];if(u(t,e,s,n,i))return!0;e=s[s.length-1]}return!1}},6097:(t,e,r)=>{"use strict";function n(t,e,r,n){for(var i=t[e],o=t[e+1],a=0,s=e+n;s<r;s+=n){var l=t[s],u=t[s+1];a+=Math.sqrt((l-i)*(l-i)+(u-o)*(u-o)),i=l,o=u}return a}r.d(e,{W:()=>n})},7704:(t,e,r)=>{"use strict";function n(t,e,r,n){for(;e<r-n;){for(var i=0;i<n;++i){var o=t[e+i];t[e+i]=t[r-n+i],t[r-n+i]=o}e+=n,r-=n}}function i(t,e,r,n){for(var i=0,o=t[r-n],a=t[r-n+1];e<r;e+=n){var s=t[e],l=t[e+1];i+=(s-o)*(l+a),o=s,a=l}return 0===i?void 0:i>0}function o(t,e,r,n,o){for(var a=void 0!==o&&o,s=0,l=r.length;s<l;++s){var u=r[s],h=i(t,e,u,n);if(0===s){if(a&&h||!a&&!h)return!1}else if(a&&!h||!a&&h)return!1;e=u}return!0}function a(t,e,r,n,i){for(var a=0,s=r.length;a<s;++a){var l=r[a];if(!o(t,e,l,n,i))return!1;l.length&&(e=l[l.length-1])}return!0}function s(t,e,r,o,a){for(var s=void 0!==a&&a,l=0,u=r.length;l<u;++l){var h=r[l],p=i(t,e,h,o);(0===l?s&&p||!s&&!p:s&&!p||!s&&p)&&n(t,e,h,o),e=h}return e}function l(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o)e=s(t,e,r[o],n,i);return e}function u(t,e){for(var r=[],n=0,o=0,a=0,s=e.length;a<s;++a){var l=e[a];if(i(t,n,l,2)){if(0===r.length)continue;r[r.length-1].push(e[o])}else r.push(e.slice(o,a+1));o=a+1,n=l}return r}r.d(e,{Q3:()=>u,$v:()=>o,Oj:()=>a,zX:()=>s,dL:()=>l})},8190:(t,e,r)=>{"use strict";function n(t,e,r,n,i){var o;for(e+=n;e<r;e+=n)if(o=i(t.slice(e-n,e),t.slice(e,e+n)))return o;return!1}r.d(e,{E:()=>n})},8033:(t,e,r)=>{"use strict";r.d(e,{Pp:()=>u,UJ:()=>o,Zh:()=>l,dt:()=>i,uZ:()=>a});var n=r(7344);function i(t,e,r,i,o,a,s){var l=(r-e)/i;if(l<3){for(;e<r;e+=i)a[s++]=t[e],a[s++]=t[e+1];return s}var u=new Array(l);u[0]=1,u[l-1]=1;for(var h=[e,r-i],p=0;h.length>0;){for(var c=h.pop(),f=h.pop(),d=0,y=t[f],g=t[f+1],v=t[c],m=t[c+1],_=f+i;_<c;_+=i){var x=t[_],b=t[_+1],w=(0,n.rU)(x,b,y,g,v,m);w>d&&(p=_,d=w)}d>o&&(u[(p-e)/i]=1,f+i<p&&h.push(f,p),p+i<c&&h.push(p,c))}for(_=0;_<l;++_)u[_]&&(a[s++]=t[e+_*i],a[s++]=t[e+_*i+1]);return s}function o(t,e,r,n,o,a,s,l){for(var u=0,h=r.length;u<h;++u){var p=r[u];s=i(t,e,p,n,o,a,s),l.push(s),e=p}return s}function a(t,e){return e*Math.round(t/e)}function s(t,e,r,n,i,o,s){if(e==r)return s;var l,u,h=a(t[e],i),p=a(t[e+1],i);e+=n,o[s++]=h,o[s++]=p;do{if(l=a(t[e],i),u=a(t[e+1],i),(e+=n)==r)return o[s++]=l,o[s++]=u,s}while(l==h&&u==p);for(;e<r;){var c=a(t[e],i),f=a(t[e+1],i);if(e+=n,c!=l||f!=u){var d=l-h,y=u-p,g=c-h,v=f-p;d*v==y*g&&(d<0&&g<d||d==g||d>0&&g>d)&&(y<0&&v<y||y==v||y>0&&v>y)?(l=c,u=f):(o[s++]=l,o[s++]=u,h=l,p=u,l=c,u=f)}}return o[s++]=l,o[s++]=u,s}function l(t,e,r,n,i,o,a,l){for(var u=0,h=r.length;u<h;++u){var p=r[u];a=s(t,e,p,n,i,o,a),l.push(a),e=p}return a}function u(t,e,r,n,i,o,a,s){for(var u=0,h=r.length;u<h;++u){var p=r[u],c=[];a=l(t,e,p,n,i,o,a,c),s.push(c),e=p[p.length-1]}return a}},7810:(t,e,r)=>{"use strict";function n(t,e,r,n,i,o){for(var a=o||[],s=0,l=e;l<r;l+=n){var u=t[l],h=t[l+1];a[s++]=i[0]*u+i[2]*h+i[4],a[s++]=i[1]*u+i[3]*h+i[5]}return o&&a.length!=s&&(a.length=s),a}function i(t,e,r,n,i,o,a){for(var s=a||[],l=Math.cos(i),u=Math.sin(i),h=o[0],p=o[1],c=0,f=e;f<r;f+=n){var d=t[f]-h,y=t[f+1]-p;s[c++]=h+d*l-y*u,s[c++]=p+d*u+y*l;for(var g=f+2;g<f+n;++g)s[c++]=t[g]}return a&&s.length!=c&&(s.length=c),s}function o(t,e,r,n,i,o,a,s){for(var l=s||[],u=a[0],h=a[1],p=0,c=e;c<r;c+=n){var f=t[c]-u,d=t[c+1]-h;l[p++]=u+i*f,l[p++]=h+o*d;for(var y=c+2;y<c+n;++y)l[p++]=t[y]}return s&&l.length!=p&&(l.length=p),l}function a(t,e,r,n,i,o,a){for(var s=a||[],l=0,u=e;u<r;u+=n){s[l++]=t[u]+i,s[l++]=t[u+1]+o;for(var h=u+2;h<u+n;++h)s[l++]=t[h]}return a&&s.length!=l&&(s.length=l),s}r.d(e,{Iu:()=>a,U1:()=>i,bA:()=>o,vT:()=>n})},6299:(t,e,r)=>{"use strict";r.d(e,{G$:()=>o,Id:()=>l,MP:()=>s,Tp:()=>u,V:()=>i,bM:()=>h,tK:()=>a});var n="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",i=-1!==n.indexOf("firefox"),o=(-1!==n.indexOf("safari")&&-1==n.indexOf("chrom")&&(n.indexOf("version/15.4")>=0||n.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==n.indexOf("webkit")&&-1==n.indexOf("edge")),a=-1!==n.indexOf("macintosh"),s="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,l="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,u="undefined"!=typeof Image&&Image.prototype.decode,h=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(t){}return t}()},8319:(t,e,r)=>{"use strict";r.d(e,{Z:()=>p});var n,i=r(12),o=r(6120),a=r(4415),s=r(9751),l=r(273),u=r(7344),h=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const p=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un,r.background_=e.background;var n=(0,l.f0)({},e);return"object"==typeof e.properties&&(delete n.properties,(0,l.f0)(n,e.properties)),n[o.Z.OPACITY]=void 0!==e.opacity?e.opacity:1,(0,s.h)("number"==typeof n[o.Z.OPACITY],64),n[o.Z.VISIBLE]=void 0===e.visible||e.visible,n[o.Z.Z_INDEX]=e.zIndex,n[o.Z.MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,n[o.Z.MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,n[o.Z.MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,n[o.Z.MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,r.className_=void 0!==n.className?n.className:"ol-layer",delete n.className,r.setProperties(n),r.state_=null,r}return h(e,t),e.prototype.getBackground=function(){return this.background_},e.prototype.getClassName=function(){return this.className_},e.prototype.getLayerState=function(t){var e=this.state_||{layer:this,managed:void 0===t||t},r=this.getZIndex();return e.opacity=(0,u.uZ)(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==r||e.managed?r:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e},e.prototype.getLayersArray=function(t){return(0,a.O3)()},e.prototype.getLayerStatesArray=function(t){return(0,a.O3)()},e.prototype.getExtent=function(){return this.get(o.Z.EXTENT)},e.prototype.getMaxResolution=function(){return this.get(o.Z.MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(o.Z.MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(o.Z.MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(o.Z.MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(o.Z.OPACITY)},e.prototype.getSourceState=function(){return(0,a.O3)()},e.prototype.getVisible=function(){return this.get(o.Z.VISIBLE)},e.prototype.getZIndex=function(){return this.get(o.Z.Z_INDEX)},e.prototype.setBackground=function(t){this.background_=t,this.changed()},e.prototype.setExtent=function(t){this.set(o.Z.EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(o.Z.MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(o.Z.MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(o.Z.MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(o.Z.MIN_ZOOM,t)},e.prototype.setOpacity=function(t){(0,s.h)("number"==typeof t,64),this.set(o.Z.OPACITY,t)},e.prototype.setVisible=function(t){this.set(o.Z.VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(o.Z.Z_INDEX,t)},e.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),t.prototype.disposeInternal.call(this)},e}(i.Z)},7582:(t,e,r)=>{"use strict";r.d(e,{Z:()=>h});var n,i=r(7385),o=r(53),a=r(273),s=r(6298),l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u="renderOrder";const h=function(t){function e(e){var r=this,n=e||{},i=(0,a.f0)({},n);return delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,(r=t.call(this,i)||this).declutter_=void 0!==n.declutter&&n.declutter,r.renderBuffer_=void 0!==n.renderBuffer?n.renderBuffer:100,r.style_=null,r.styleFunction_=void 0,r.setStyle(n.style),r.updateWhileAnimating_=void 0!==n.updateWhileAnimating&&n.updateWhileAnimating,r.updateWhileInteracting_=void 0!==n.updateWhileInteracting&&n.updateWhileInteracting,r}return l(e,t),e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(u)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.renderDeclutter=function(t){t.declutterTree||(t.declutterTree=new o(9)),this.getRenderer().renderDeclutter(t)},e.prototype.setRenderOrder=function(t){this.set(u,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:s.yF,this.styleFunction_=null===t?void 0:(0,s.J$)(this.style_),this.changed()},e}(i.Z)},7385:(t,e,r)=>{"use strict";r.d(e,{Z:()=>f,j:()=>c});var n,i=r(8319),o=r(7758),a=r(6120),s=r(3557),l=r(9751),u=r(273),h=r(5310),p=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function c(t,e){if(!t.visible)return!1;var r=e.resolution;if(r<t.minResolution||r>=t.maxResolution)return!1;var n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}const f=function(t){function e(e){var r=this,n=(0,u.f0)({},e);delete n.source,(r=t.call(this,n)||this).on,r.once,r.un,r.mapPrecomposeKey_=null,r.mapRenderKey_=null,r.sourceChangeKey_=null,r.renderer_=null,r.rendered=!1,e.render&&(r.render=e.render),e.map&&r.setMap(e.map),r.addChangeListener(a.Z.SOURCE,r.handleSourcePropertyChange_);var i=e.source?e.source:null;return r.setSource(i),r}return p(e,t),e.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},e.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},e.prototype.getSource=function(){return this.get(a.Z.SOURCE)||null},e.prototype.getRenderSource=function(){return this.getSource()},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():"undefined"},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&((0,h.bN)(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=(0,h.oL)(t,o.Z.CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.getFeatures=function(t){return this.renderer_?this.renderer_.getFeatures(t):new Promise((function(t){return t([])}))},e.prototype.getData=function(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null},e.prototype.render=function(t,e){var r=this.getRenderer();if(r.prepareFrame(t))return this.rendered=!0,r.renderFrame(t,e)},e.prototype.unrender=function(){this.rendered=!1},e.prototype.setMapInternal=function(t){t||this.unrender(),this.set(a.Z.MAP,t)},e.prototype.getMapInternal=function(){return this.get(a.Z.MAP)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&((0,h.bN)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,h.bN)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,h.oL)(t,s.Z.PRECOMPOSE,(function(t){var e=t.frameState.layerStatesArray,r=this.getLayerState(!1);(0,l.h)(!e.some((function(t){return t.layer===r.layer})),67),e.push(r)}),this),this.mapRenderKey_=(0,h.oL)(this,o.Z.CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(a.Z.SOURCE,t)},e.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},e.prototype.hasRenderer=function(){return!!this.renderer_},e.prototype.createRenderer=function(){return null},e.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),t.prototype.disposeInternal.call(this)},e}(i.Z)},6120:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},1393:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"}},5218:(t,e,r)=>{"use strict";r.d(e,{Z:()=>b});var n,i=r(7582),o=r(5704),a=r(4244),s=r(5787),l=r(8921),u=r(8010),h=r(4765),p=r(2005),c=r(766),f=r(1248),d=r(7782),y=r(9786),g=r(4415),v=r(5353),m=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const _=function(t){function e(e){var r=t.call(this,e)||this;return r.boundHandleStyleImageChange_=r.handleStyleImageChange_.bind(r),r.animatingOrInteracting_,r.hitDetectionImageData_=null,r.renderedFeatures_=null,r.renderedRevision_=-1,r.renderedResolution_=NaN,r.renderedExtent_=(0,p.lJ)(),r.wrappedRenderedExtent_=(0,p.lJ)(),r.renderedRotation_,r.renderedCenter_=null,r.renderedProjection_=null,r.renderedRenderOrder_=null,r.replayGroup_=null,r.replayGroupChanged=!0,r.declutterExecutorGroup=null,r.clipping=!0,r.compositionContext_=null,r.opacity_=1,r}return m(e,t),e.prototype.renderWorlds=function(t,e,r){var n=e.extent,i=e.viewState,o=i.center,a=i.resolution,s=i.projection,u=i.rotation,h=s.getExtent(),c=this.getLayer().getSource(),f=e.pixelRatio,d=e.viewHints,y=!(d[l.Z.ANIMATING]||d[l.Z.INTERACTING]),g=this.compositionContext_,v=Math.round(e.size[0]*f),m=Math.round(e.size[1]*f),_=c.getWrapX()&&s.canWrapX(),x=_?(0,p.dz)(h):null,b=_?Math.ceil((n[2]-h[2])/x)+1:1,w=_?Math.floor((n[0]-h[0])/x):0;do{var C=this.getRenderTransform(o,a,u,f,v,m,w*x);t.execute(g,1,C,u,y,void 0,r)}while(++w<b)},e.prototype.setupCompositionContext_=function(){if(1!==this.opacity_){var t=(0,c.E4)(this.context.canvas.width,this.context.canvas.height,a.r);this.compositionContext_=t}else this.compositionContext_=this.context},e.prototype.releaseCompositionContext_=function(){if(1!==this.opacity_){var t=this.context.globalAlpha;this.context.globalAlpha=this.opacity_,this.context.drawImage(this.compositionContext_.canvas,0,0),this.context.globalAlpha=t,(0,c.jy)(this.compositionContext_),a.r.push(this.compositionContext_.canvas),this.compositionContext_=null}},e.prototype.renderDeclutter=function(t){this.declutterExecutorGroup&&(this.setupCompositionContext_(),this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree),this.releaseCompositionContext_())},e.prototype.renderFrame=function(t,e){var r=t.pixelRatio,n=t.layerStatesArray[t.layerIndex];(0,h.n3)(this.pixelTransform,1/r,1/r),(0,h.nb)(this.inversePixelTransform,this.pixelTransform);var i=(0,h.BB)(this.pixelTransform);this.useContainer(e,i,this.getBackground(t));var o=this.context,a=o.canvas,s=this.replayGroup_,l=this.declutterExecutorGroup;if((!s||s.isEmpty())&&(!l||l.isEmpty()))return null;var u=Math.round(t.size[0]*r),c=Math.round(t.size[1]*r);a.width!=u||a.height!=c?(a.width=u,a.height=c,a.style.transform!==i&&(a.style.transform=i)):this.containerReused||o.clearRect(0,0,u,c),this.preRender(o,t);var f=t.viewState,d=f.projection;this.opacity_=n.opacity,this.setupCompositionContext_();var g=!1,v=!0;if(n.extent&&this.clipping){var m=(0,y.dY)(n.extent,d);(g=(v=(0,p.kK)(m,t.extent))&&!(0,p.r4)(m,t.extent))&&this.clipUnrotated(this.compositionContext_,t,m)}return v&&this.renderWorlds(s,t),g&&this.compositionContext_.restore(),this.releaseCompositionContext_(),this.postRender(o,t),this.renderedRotation_!==f.rotation&&(this.renderedRotation_=f.rotation,this.hitDetectionImageData_=null),this.container},e.prototype.getFeatures=function(t){return new Promise(function(e){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var r=[this.context.canvas.width,this.context.canvas.height];(0,h.nn)(this.pixelTransform,r);var n=this.renderedCenter_,i=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,s=this.wrappedRenderedExtent_,l=this.getLayer(),c=[],f=r[0]*u.UN,d=r[1]*u.UN;c.push(this.getRenderTransform(n,i,o,u.UN,f,d,0).slice());var y=l.getSource(),g=a.getExtent();if(y.getWrapX()&&a.canWrapX()&&!(0,p.r4)(g,s)){for(var v=s[0],m=(0,p.dz)(g),_=0,x=void 0;v<g[0];)x=m*--_,c.push(this.getRenderTransform(n,i,o,u.UN,f,d,x).slice()),v+=m;for(_=0,v=s[2];v>g[2];)x=m*++_,c.push(this.getRenderTransform(n,i,o,u.UN,f,d,x).slice()),v-=m}this.hitDetectionImageData_=(0,u.TU)(r,c,this.renderedFeatures_,l.getStyleFunction(),s,i,o)}e((0,u.ix)(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){var o=this;if(this.replayGroup_){var a,s=e.viewState.resolution,l=e.viewState.rotation,u=this.getLayer(),h={},p=function(t,e,r){var o=(0,g.sq)(t),a=h[o];if(a){if(!0!==a&&r<a.distanceSq){if(0===r)return h[o]=!0,i.splice(i.lastIndexOf(a),1),n(t,u,e);a.geometry=e,a.distanceSq=r}}else{if(0===r)return h[o]=!0,n(t,u,e);i.push(h[o]={feature:t,layer:u,geometry:e,distanceSq:r,callback:n})}},c=[this.replayGroup_];return this.declutterExecutorGroup&&c.push(this.declutterExecutorGroup),c.some((function(n){return a=n.forEachFeatureAtCoordinate(t,s,l,r,p,n===o.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map((function(t){return t.value})):null)})),a}},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t){var e=this.getLayer(),r=e.getSource();if(!r)return!1;var n=t.viewHints[l.Z.ANIMATING],i=t.viewHints[l.Z.INTERACTING],a=e.getUpdateWhileAnimating(),u=e.getUpdateWhileInteracting();if(this.ready&&!a&&n||!u&&i)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var h=t.extent,c=t.viewState,g=c.projection,m=c.resolution,_=t.pixelRatio,x=e.getRevision(),b=e.getRenderBuffer(),w=e.getRenderOrder();void 0===w&&(w=f.eR);var C=c.center.slice(),E=(0,p.f3)(h,b*m),S=E.slice(),T=[E.slice()],O=g.getExtent();if(r.getWrapX()&&g.canWrapX()&&!(0,p.r4)(O,t.extent)){var P=(0,p.dz)(O),R=Math.max((0,p.dz)(E)/2,P);E[0]=O[0]-R,E[2]=O[2]+R,(0,v.Cf)(C,g);var I=(0,p.Cf)(T[0],g);I[0]<O[0]&&I[2]<O[2]?T.push([I[0]+P,I[1],I[2]+P,I[3]]):I[0]>O[0]&&I[2]>O[2]&&T.push([I[0]-P,I[1],I[2]-P,I[3]])}if(this.ready&&this.renderedResolution_==m&&this.renderedRevision_==x&&this.renderedRenderOrder_==w&&(0,p.r4)(this.wrappedRenderedExtent_,E))return(0,d.fS)(this.renderedExtent_,S)||(this.hitDetectionImageData_=null,this.renderedExtent_=S),this.renderedCenter_=C,this.replayGroupChanged=!1,!0;this.replayGroup_=null;var M,A=new o.Z((0,f.Qz)(m,_),E,m,_);this.getLayer().getDeclutter()&&(M=new o.Z((0,f.Qz)(m,_),E,m,_));var k,F=(0,y.Cs)();if(F){for(var L=0,Z=T.length;L<Z;++L){var D=T[L],j=(0,y.Fj)(D,g);r.loadFeatures(j,(0,y.on)(m,g),F)}k=(0,y.WO)(F,g)}else for(L=0,Z=T.length;L<Z;++L)r.loadFeatures(T[L],m,g);var z=(0,f.se)(m,_),N=!0,G=function(t){var r,n=t.getStyleFunction()||e.getStyleFunction();if(n&&(r=n(t,m)),r){var i=this.renderFeature(t,z,r,A,k,M);N=N&&!i}}.bind(this),X=(0,y.Fj)(E,g),W=r.getFeaturesInExtent(X);for(w&&W.sort(w),L=0,Z=W.length;L<Z;++L)G(W[L]);this.renderedFeatures_=W,this.ready=N;var q=A.finish(),Y=new s.Z(E,m,_,r.getOverlaps(),q,e.getRenderBuffer());return M&&(this.declutterExecutorGroup=new s.Z(E,m,_,r.getOverlaps(),M.finish(),e.getRenderBuffer())),this.renderedResolution_=m,this.renderedRevision_=x,this.renderedRenderOrder_=w,this.renderedExtent_=S,this.wrappedRenderedExtent_=E,this.renderedCenter_=C,this.renderedProjection_=g,this.replayGroup_=Y,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},e.prototype.renderFeature=function(t,e,r,n,i,o){if(!r)return!1;var a=!1;if(Array.isArray(r))for(var s=0,l=r.length;s<l;++s)a=(0,f.Pn)(n,t,r[s],e,this.boundHandleStyleImageChange_,i,o)||a;else a=(0,f.Pn)(n,t,r,e,this.boundHandleStyleImageChange_,i,o);return a},e}(a.Z);var x=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const b=function(t){function e(e){return t.call(this,e)||this}return x(e,t),e.prototype.createRenderer=function(){return new _(this)},e}(i.Z)},3015:(t,e,r)=>{"use strict";r.d(e,{Z:()=>P});var n=r(7582),i=r(5704),o=r(5787),a=r(8237),s=r(5816);const l="hybrid",u="vector";var h,p=r(8921),c=r(8010),f=r(4765),d=r(2005),y=r(1248),g=r(4415),v=r(7814),m=r(5353),_=(h=function(t,e){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},h(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),x={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},b={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},w=function(t){function e(e){var r=t.call(this,e)||this;return r.boundHandleStyleImageChange_=r.handleStyleImageChange_.bind(r),r.renderedLayerRevision_,r.renderedPixelToCoordinateTransform_=null,r.renderedRotation_,r.tmpTransform_=(0,f.Ue)(),r}return _(e,t),e.prototype.prepareTile=function(t,e,r){var n,i=t.getState();return i!==s.Z.LOADED&&i!==s.Z.ERROR||(this.updateExecutorGroup_(t,e,r),this.tileImageNeedsRender_(t)&&(n=!0)),n},e.prototype.getTile=function(e,r,n,i){var o=i.pixelRatio,a=i.viewState,s=a.resolution,l=a.projection,h=this.getLayer(),c=h.getSource().getTile(e,r,n,o,l),f=i.viewHints,d=!(f[p.Z.ANIMATING]||f[p.Z.INTERACTING]);return!d&&c.wantedResolution||(c.wantedResolution=s),this.prepareTile(c,o,l)&&(d||Date.now()-i.time<8)&&h.getRenderMode()!==u&&this.renderTileImage_(c,i),t.prototype.getTile.call(this,e,r,n,i)},e.prototype.isDrawableTile=function(e){var r=this.getLayer();return t.prototype.isDrawableTile.call(this,e)&&(r.getRenderMode()===u?(0,g.sq)(r)in e.executorGroups:e.hasContext(r))},e.prototype.getTileImage=function(t){return t.getImage(this.getLayer())},e.prototype.prepareFrame=function(e){var r=this.getLayer().getRevision();return this.renderedLayerRevision_!==r&&(this.renderedLayerRevision_=r,this.renderedTiles.length=0),t.prototype.prepareFrame.call(this,e)},e.prototype.updateExecutorGroup_=function(t,e,r){var n=this.getLayer(),a=n.getRevision(),l=n.getRenderOrder()||null,h=t.wantedResolution,p=t.getReplayState(n);if(p.dirty||p.renderedResolution!==h||p.renderedRevision!=a||p.renderedRenderOrder!=l){var c=n.getSource(),f=n.getDeclutter(),v=c.getTileGrid(),m=c.getTileGridForProjection(r).getTileCoordExtent(t.wrappedTileCoord),_=c.getSourceTiles(e,r,t),x=(0,g.sq)(n);delete t.hitDetectionImageData[x],t.executorGroups[x]=[],f&&(t.declutterExecutorGroups[x]=[]),p.dirty=!1;for(var b=function(r,a){var g=_[r];if(g.getState()!=s.Z.LOADED)return"continue";var b=g.tileCoord,C=v.getTileCoordExtent(b),E=(0,d.Ed)(m,C),S=(0,d.f3)(E,n.getRenderBuffer()*h,w.tmpExtent),T=(0,d.fS)(C,E)?null:S,O=new i.Z(0,S,h,e),P=f?new i.Z(0,E,h,e):void 0,R=(0,y.se)(h,e),I=function(t){var e,r=t.getStyleFunction()||n.getStyleFunction();if(r&&(e=r(t,h)),e){var i=this.renderFeature(t,R,e,O,P);p.dirty=p.dirty||i}},M=g.getFeatures();l&&l!==p.renderedRenderOrder&&M.sort(l);for(var A=0,k=M.length;A<k;++A){var F=M[A];T&&!(0,d.kK)(T,F.getGeometry().getExtent())||I.call(w,F)}var L=O.finish(),Z=n.getRenderMode()!==u&&f&&1===_.length?null:E,D=new o.Z(Z,h,e,c.getOverlaps(),L,n.getRenderBuffer());if(t.executorGroups[x].push(D),P){var j=new o.Z(null,h,e,c.getOverlaps(),P.finish(),n.getRenderBuffer());t.declutterExecutorGroups[x].push(j)}},w=this,C=0,E=_.length;C<E;++C)b(C);p.renderedRevision=a,p.renderedRenderOrder=l,p.renderedResolution=h}},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){var o=e.viewState.resolution,a=e.viewState.rotation;r=null==r?0:r;var s=this.getLayer(),l=s.getSource().getTileGridForProjection(e.viewState.projection),u=(0,d.hI)([t]);(0,d.f3)(u,o*r,u);for(var h,p={},c=function(t,e,r){var o=t.getId();void 0===o&&(o=(0,g.sq)(t));var a=p[o];if(a){if(!0!==a&&r<a.distanceSq){if(0===r)return p[o]=!0,i.splice(i.lastIndexOf(a),1),n(t,s,e);a.geometry=e,a.distanceSq=r}}else{if(0===r)return p[o]=!0,n(t,s,e);i.push(p[o]={feature:t,layer:s,geometry:e,distanceSq:r,callback:n})}},f=this.renderedTiles,y=function(n,i){var p=f[n],y=l.getTileCoordExtent(p.wrappedTileCoord);if(!(0,d.kK)(y,u))return"continue";var v=(0,g.sq)(s),m=[p.executorGroups[v]],_=p.declutterExecutorGroups[v];_&&m.push(_),m.some((function(n){for(var i=n===_?e.declutterTree.all().map((function(t){return t.value})):null,s=0,l=n.length;s<l;++s){var u=n[s];if(h=u.forEachFeatureAtCoordinate(t,o,a,r,c,i))return!0}}))},v=0,m=f.length;!h&&v<m;++v)y(v);return h},e.prototype.getFeatures=function(t){return new Promise(function(e,r){for(var n,i=this.getLayer(),o=(0,g.sq)(i),a=i.getSource(),l=this.renderedProjection,u=l.getExtent(),h=this.renderedResolution,p=a.getTileGridForProjection(l),y=(0,f.nn)(this.renderedPixelToCoordinateTransform_,t.slice()),_=p.getTileCoordForCoordAndResolution(y,h),x=0,b=this.renderedTiles.length;x<b;++x)if(_.toString()===this.renderedTiles[x].tileCoord.toString()){if((n=this.renderedTiles[x]).getState()===s.Z.LOADED){var w=p.getTileCoordExtent(n.tileCoord);a.getWrapX()&&l.canWrapX()&&!(0,d.r4)(u,w)&&(0,m.Cf)(y,l);break}n=void 0}if(!n||n.loadingSourceTiles>0)e([]);else{var C=p.getTileCoordExtent(n.wrappedTileCoord),E=(0,d.rL)(C),S=[(y[0]-E[0])/h,(E[1]-y[1])/h],T=n.getSourceTiles().reduce((function(t,e){return t.concat(e.getFeatures())}),[]),O=n.hitDetectionImageData[o];if(!O&&!this.animatingOrInteracting_){var P=(0,v.Pq)(p.getTileSize(p.getZForResolution(h,a.zDirection))),R=this.renderedRotation_,I=[this.getRenderTransform(p.getTileCoordCenter(n.wrappedTileCoord),h,0,c.UN,P[0]*c.UN,P[1]*c.UN,0)];O=(0,c.TU)(P,I,T,i.getStyleFunction(),p.getTileCoordExtent(n.wrappedTileCoord),n.getReplayState(i).renderedResolution,R),n.hitDetectionImageData[o]=O}e((0,c.ix)(S,T,O))}}.bind(this))},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&void 0!==this.renderedLayerRevision_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.renderDeclutter=function(t){var e=this.context,r=e.globalAlpha;e.globalAlpha=this.getLayer().getOpacity();for(var n=t.viewHints,i=!(n[p.Z.ANIMATING]||n[p.Z.INTERACTING]),o=this.renderedTiles,a=0,s=o.length;a<s;++a){var l=o[a],u=l.declutterExecutorGroups[(0,g.sq)(this.getLayer())];if(u)for(var h=u.length-1;h>=0;--h)u[h].execute(this.context,1,this.getTileRenderTransform(l,t),t.viewState.rotation,i,void 0,t.declutterTree)}e.globalAlpha=r},e.prototype.getTileRenderTransform=function(t,e){var r=e.pixelRatio,n=e.viewState,i=n.center,o=n.resolution,a=n.rotation,s=e.size,l=Math.round(s[0]*r),u=Math.round(s[1]*r),h=this.getLayer().getSource().getTileGridForProjection(e.viewState.projection),p=t.tileCoord,c=h.getTileCoordExtent(t.wrappedTileCoord),d=h.getTileCoordExtent(p,this.tmpExtent)[0]-c[0];return(0,f.Jp)((0,f.bA)(this.inversePixelTransform.slice(),1/r,1/r),this.getRenderTransform(i,o,a,r,l,u,d))},e.prototype.renderFrame=function(e,r){var n=e.viewHints,i=!(n[p.Z.ANIMATING]||n[p.Z.INTERACTING]);t.prototype.renderFrame.call(this,e,r),this.renderedPixelToCoordinateTransform_=e.pixelToCoordinateTransform.slice(),this.renderedRotation_=e.viewState.rotation;var o=this.getLayer(),a=o.getRenderMode(),s=this.context,l=s.globalAlpha;s.globalAlpha=o.getOpacity();for(var u=b[a],h=e.viewState,c=h.rotation,f=o.getSource(),y=f.getTileGridForProjection(h.projection).getZForResolution(h.resolution,f.zDirection),v=this.renderedTiles,m=[],_=[],x=!0,w=v.length-1;w>=0;--w){var C=v[w];x=x&&!C.getReplayState(o).dirty;var E=C.executorGroups[(0,g.sq)(o)].filter((function(t){return t.hasExecutors(u)}));if(0!==E.length){var S=this.getTileRenderTransform(C,e),T=C.tileCoord[0],O=!1,P=E[0].getClipCoords(S);if(P){for(var R=0,I=m.length;R<I;++R)if(y!==T&&T<_[R]){var M=m[R];(0,d.kK)([P[0],P[3],P[4],P[7]],[M[0],M[3],M[4],M[7]])&&(O||(s.save(),O=!0),s.beginPath(),s.moveTo(P[0],P[1]),s.lineTo(P[2],P[3]),s.lineTo(P[4],P[5]),s.lineTo(P[6],P[7]),s.moveTo(M[6],M[7]),s.lineTo(M[4],M[5]),s.lineTo(M[2],M[3]),s.lineTo(M[0],M[1]),s.clip())}m.push(P),_.push(T)}for(var A=0,k=E.length;A<k;++A)E[A].execute(s,1,S,c,i,u);O&&s.restore()}}return s.globalAlpha=l,this.ready=x,this.container},e.prototype.renderFeature=function(t,e,r,n,i){if(!r)return!1;var o=!1;if(Array.isArray(r))for(var a=0,s=r.length;a<s;++a)o=(0,y.Pn)(n,t,r[a],e,this.boundHandleStyleImageChange_,void 0,i)||o;else o=(0,y.Pn)(n,t,r,e,this.boundHandleStyleImageChange_,void 0,i);return o},e.prototype.tileImageNeedsRender_=function(t){var e=this.getLayer();if(e.getRenderMode()===u)return!1;var r=t.getReplayState(e),n=e.getRevision(),i=t.wantedResolution;return r.renderedTileResolution!==i||r.renderedTileRevision!==n},e.prototype.renderTileImage_=function(t,e){var r=this.getLayer(),n=t.getReplayState(r),i=r.getRevision(),o=t.executorGroups[(0,g.sq)(r)];n.renderedTileRevision=i;var a=t.wrappedTileCoord,s=a[0],l=r.getSource(),u=e.pixelRatio,h=e.viewState.projection,p=l.getTileGridForProjection(h),c=p.getResolution(t.tileCoord[0]),d=e.pixelRatio/t.wantedResolution*c,y=p.getResolution(s),v=t.getContext(r);u=Math.round(Math.max(u,d/u));var m=l.getTilePixelSize(s,u,h);v.canvas.width=m[0],v.canvas.height=m[1];var _=u/d;if(1!==_){var b=(0,f.mc)(this.tmpTransform_);(0,f.bA)(b,_,_),v.setTransform.apply(v,b)}var w=p.getTileCoordExtent(a,this.tmpExtent),C=d/y,E=(0,f.mc)(this.tmpTransform_);(0,f.bA)(E,C,-C),(0,f.Iu)(E,-w[0],-w[3]);for(var S=0,T=o.length;S<T;++S)o[S].execute(v,_,E,0,!0,x[r.getRenderMode()]);n.renderedTileResolution=t.wantedResolution},e}(a.Z);const C=w;var E=r(1393),S=r(9751),T=r(273),O=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const P=function(t){function e(e){var r=this,n=e||{},i=(0,T.f0)({},n);delete i.preload,delete i.useInterimTilesOnError,(r=t.call(this,i)||this).on,r.once,r.un,"image"===n.renderMode&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),n.renderMode=void 0);var o=n.renderMode||l;return(0,S.h)(o==l||o==u,28),r.renderMode_=o,r.setPreload(n.preload?n.preload:0),r.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),r.getBackground,r.setBackground,r}return O(e,t),e.prototype.createRenderer=function(){return new C(this)},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderMode=function(){return this.renderMode_},e.prototype.getPreload=function(){return this.get(E.Z.PRELOAD)},e.prototype.getUseInterimTilesOnError=function(){return this.get(E.Z.USE_INTERIM_TILES_ON_ERROR)},e.prototype.setPreload=function(t){this.set(E.Z.PRELOAD,t)},e.prototype.setUseInterimTilesOnError=function(t){this.set(E.Z.USE_INTERIM_TILES_ON_ERROR,t)},e}(n.Z)},7344:(t,e,r)=>{"use strict";function n(t,e,r){return Math.min(Math.max(t,e),r)}r.d(e,{$W:()=>h,GW:()=>f,SV:()=>l,Yr:()=>u,bI:()=>s,f9:()=>i,k3:()=>o,mD:()=>d,rU:()=>a,t7:()=>p,uZ:()=>n});var i="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2},o="log2"in Math?Math.log2:function(t){return Math.log(t)*Math.LOG2E};function a(t,e,r,n,i,o){var a=i-r,l=o-n;if(0!==a||0!==l){var u=((t-r)*a+(e-n)*l)/(a*a+l*l);u>1?(r=i,n=o):u>0&&(r+=a*u,n+=l*u)}return s(t,e,r,n)}function s(t,e,r,n){var i=r-t,o=n-e;return i*i+o*o}function l(t){for(var e=t.length,r=0;r<e;r++){for(var n=r,i=Math.abs(t[r][r]),o=r+1;o<e;o++){var a=Math.abs(t[o][r]);a>i&&(i=a,n=o)}if(0===i)return null;var s=t[n];t[n]=t[r],t[r]=s;for(var l=r+1;l<e;l++)for(var u=-t[l][r]/t[r][r],h=r;h<e+1;h++)r==h?t[l][h]=0:t[l][h]+=u*t[r][h]}for(var p=new Array(e),c=e-1;c>=0;c--){p[c]=t[c][e]/t[c][c];for(var f=c-1;f>=0;f--)t[f][e]-=t[f][c]*p[c]}return p}function u(t){return t*Math.PI/180}function h(t,e){var r=t%e;return r*e<0?r+e:r}function p(t,e,r){return t+r*(e-t)}function c(t,e){var r=Math.pow(10,e);return Math.round(t*r)/r}function f(t,e){return Math.floor(c(t,e))}function d(t,e){return Math.ceil(c(t,e))}},273:(t,e,r)=>{"use strict";r.d(e,{KX:()=>o,ZH:()=>i,f0:()=>n,xb:()=>a});var n="function"==typeof Object.assign?Object.assign:function(t,e){var r=arguments;if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1,o=arguments.length;i<o;++i){var a=r[i];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(n[s]=a[s])}return n};function i(t){for(var e in t)delete t[e]}var o="function"==typeof Object.values?Object.values:function(t){var e=[];for(var r in t)e.push(t[r]);return e};function a(t){var e;for(e in t)return!1;return!e}},9786:(t,e,r)=>{"use strict";r.d(e,{Wm:()=>i.Wm,UQ:()=>k,h_:()=>T,OP:()=>L,mi:()=>F,Vs:()=>Y,dY:()=>B,U2:()=>I,_Q:()=>M,Ck:()=>D,WO:()=>Z,Cs:()=>W,lO:()=>q,Fj:()=>V,on:()=>U,vs:()=>j});var n,i=r(8430),o=r(544),a=r(7344),s=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),l=6378137,u=Math.PI*l,h=[-u,-u,u,u],p=[-180,-85,180,85],c=l*Math.log(Math.tan(Math.PI/2)),f=function(t){function e(e){return t.call(this,{code:e,units:i.ZP.METERS,extent:h,global:!0,worldExtent:p,getPointResolution:function(t,e){return t/(0,a.f9)(e[1]/l)}})||this}return s(e,t),e}(o.Z),d=[new f("EPSG:3857"),new f("EPSG:102100"),new f("EPSG:102113"),new f("EPSG:900913"),new f("http://www.opengis.net/def/crs/EPSG/0/3857"),new f("http://www.opengis.net/gml/srs/epsg.xml#3857")];var y=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=[-180,-90,180,90],v=6378137*Math.PI/180,m=function(t){function e(e,r){return t.call(this,{code:e,units:i.ZP.DEGREES,extent:g,axisOrientation:r,global:!0,metersPerUnit:v,worldExtent:g})||this}return y(e,t),e}(o.Z),_=[new m("CRS:84"),new m("EPSG:4326","neu"),new m("urn:ogc:def:crs:OGC:1.3:CRS84"),new m("urn:ogc:def:crs:OGC:2:84"),new m("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new m("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new m("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],x={},b={};function w(t,e,r){var n=t.getCode(),i=e.getCode();n in b||(b[n]={}),b[n][i]=r}r(2005);var C=r(5353);function E(t,e,r){var n=r||6371008.8,i=(0,a.Yr)(t[1]),o=(0,a.Yr)(e[1]),s=(o-i)/2,l=(0,a.Yr)(e[0]-t[0])/2,u=Math.sin(s)*Math.sin(s)+Math.sin(l)*Math.sin(l)*Math.cos(i)*Math.cos(o);return 2*n*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))}var S=!0;function T(t){S=!(void 0===t||t)}function O(t,e,r){var n;if(void 0!==e){for(var i=0,o=t.length;i<o;++i)e[i]=t[i];n=e}else n=t.slice();return n}function P(t,e,r){if(void 0!==e&&t!==e){for(var n=0,i=t.length;n<i;++n)e[n]=t[n];t=e}return t}function R(t){!function(t,e){x[t]=e}(t.getCode(),t),w(t,t,O)}function I(t){return"string"==typeof t?x[e=t]||x[e.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:t||null;var e}function M(t,e,r,n){var o,a=(t=I(t)).getPointResolutionFunc();if(a)o=a(e,r),n&&n!==t.getUnits()&&(l=t.getMetersPerUnit())&&(o=o*l/i.Wm[n]);else{var s=t.getUnits();if(s==i.ZP.DEGREES&&!n||n==i.ZP.DEGREES)o=e;else{var l,u=Z(t,I("EPSG:4326"));if(u===P&&s!==i.ZP.DEGREES)o=e*t.getMetersPerUnit();else{var h=[r[0]-e/2,r[1],r[0]+e/2,r[1],r[0],r[1]-e/2,r[0],r[1]+e/2];o=(E((h=u(h,h,2)).slice(0,2),h.slice(2,4))+E(h.slice(4,6),h.slice(6,8)))/2}void 0!==(l=n?i.Wm[n]:t.getMetersPerUnit())&&(o/=l)}}return o}function A(t){!function(t){t.forEach(R)}(t),t.forEach((function(e){t.forEach((function(t){e!==t&&w(e,t,O)}))}))}function k(t,e){return t?"string"==typeof t?I(t):t:I(e)}function F(t,e){return T(),j(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function L(t,e){if(t===e)return!0;var r=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||Z(t,e)===O)&&r}function Z(t,e){var r=function(t,e){var r;return t in b&&e in b[t]&&(r=b[t][e]),r}(t.getCode(),e.getCode());return r||(r=P),r}function D(t,e){return Z(I(t),I(e))}function j(t,e,r){return D(e,r)(t,void 0,t.length)}var z,N,G,X=null;function W(){return X}function q(t,e){return t}function Y(t,e){return S&&!(0,C.fS)(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(S=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t}function V(t,e){return t}function B(t,e){return t}function U(t,e){return t}A(d),A(_),z=d,N=function(t,e,r){var n=t.length,i=r>1?r:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(n));for(var a=0;a<n;a+=i){o[a]=u*t[a]/180;var s=l*Math.log(Math.tan(Math.PI*(+t[a+1]+90)/360));s>c?s=c:s<-c&&(s=-c),o[a+1]=s}return o},G=function(t,e,r){var n=t.length,i=r>1?r:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(n));for(var a=0;a<n;a+=i)o[a]=180*t[a]/u,o[a+1]=360*Math.atan(Math.exp(t[a+1]/l))/Math.PI-90;return o},_.forEach((function(t){z.forEach((function(e){w(t,e,N),w(e,t,G)}))}))},544:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(8430);const i=function(){function t(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}return t.prototype.canWrapX=function(){return this.canWrapX_},t.prototype.getCode=function(){return this.code_},t.prototype.getExtent=function(){return this.extent_},t.prototype.getUnits=function(){return this.units_},t.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||n.Wm[this.units_]},t.prototype.getWorldExtent=function(){return this.worldExtent_},t.prototype.getAxisOrientation=function(){return this.axisOrientation_},t.prototype.isGlobal=function(){return this.global_},t.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},t.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},t.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},t.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},t.prototype.setWorldExtent=function(t){this.worldExtent_=t},t.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},t.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},t}()},8430:(t,e,r)=>{"use strict";r.d(e,{Wm:()=>i,ZP:()=>o});var n={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},i={};i[n.RADIANS]=6370997/(2*Math.PI),i[n.DEGREES]=2*Math.PI*6370997/360,i[n.FEET]=.3048,i[n.METERS]=1,i[n.USFEET]=1200/3937;const o=n},6178:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});var n,i=r(7288),o=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const a=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.inversePixelTransform=r,o.frameState=n,o.context=i,o}return o(e,t),e}(i.ZP)},3557:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},7857:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n=function(){function t(){}return t.prototype.drawCustom=function(t,e,r,n){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}()},9680:(t,e,r)=>{"use strict";r.d(e,{Df:()=>u,He:()=>f,Kd:()=>I,PH:()=>v,Qx:()=>T,Tx:()=>g,V4:()=>y,X9:()=>c,Zw:()=>M,_f:()=>A,bL:()=>h,mb:()=>p,oB:()=>_,rc:()=>d,ru:()=>m,sG:()=>b,yC:()=>x});var n=r(12),i=r(8408),o=r(6299),a=r(273),s=r(766),l=r(8308),u="10px sans-serif",h="#000",p="round",c=[],f=0,d="round",y=10,g="#000",v="center",m="middle",_=[0,0,0,0],x=1,b=new n.Z;(new i.Z).setSize=function(){console.warn("labelCache is deprecated.")};var w,C,E=null,S={},T=function(){var t,e,r="32px ",n=["monospace","serif"],i=n.length,o="wmytzilWMYTZIL@#/&?$%10";function s(t,a,s){for(var l=!0,u=0;u<i;++u){var h=n[u];if(e=R(t+" "+a+" "+r+h,o),s!=h){var p=R(t+" "+a+" "+r+s+","+h,o);l=l&&p!=e}}return!!l}function u(){for(var e=!0,r=b.getKeys(),n=0,i=r.length;n<i;++n){var o=r[n];b.get(o)<100&&(s.apply(this,o.split("\n"))?((0,a.ZH)(S),E=null,w=void 0,b.set(o,100)):(b.set(o,b.get(o)+1,!0),e=!1))}e&&(clearInterval(t),t=void 0)}return function(e){var r=(0,l.p)(e);if(r)for(var n=r.families,i=0,o=n.length;i<o;++i){var a=n[i],h=r.style+"\n"+r.weight+"\n"+a;void 0===b.get(h)&&(b.set(h,100,!0),s(r.style,r.weight,a)||(b.set(h,0,!0),void 0===t&&(t=setInterval(u,32))))}}}(),O=function(t){var e=S[t];if(null==e){if(o.Id){var r=(0,l.p)(t),n=P(t,"Žg");e=(isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight))*(n.actualBoundingBoxAscent+n.actualBoundingBoxDescent)}else C||((C=document.createElement("div")).innerHTML="M",C.style.minHeight="0",C.style.maxHeight="none",C.style.height="auto",C.style.padding="0",C.style.border="none",C.style.position="absolute",C.style.display="block",C.style.left="-99999px"),C.style.font=t,document.body.appendChild(C),e=C.offsetHeight,document.body.removeChild(C);S[t]=e}return e};function P(t,e){return E||(E=(0,s.E4)(1,1)),t!=w&&(E.font=t,w=E.font),E.measureText(e)}function R(t,e){return P(t,e).width}function I(t,e,r){if(e in r)return r[e];var n=e.split("\n").reduce((function(e,r){return Math.max(e,R(t,r))}),0);return r[e]=n,n}function M(t,e){for(var r=[],n=[],i=[],o=0,a=0,s=0,l=0,u=0,h=e.length;u<=h;u+=2){var p=e[u];if("\n"!==p&&u!==h){var c=e[u+1]||t.font,f=R(c,p);r.push(f),a+=f;var d=O(c);n.push(d),l=Math.max(l,d)}else o=Math.max(o,a),i.push(a),a=0,s+=l}return{width:o,height:s,widths:r,heights:n,lineWidths:i}}function A(t,e,r,n,i,o,a,s,l,u,h){t.save(),1!==r&&(t.globalAlpha*=r),e&&t.setTransform.apply(t,e),n.contextInstructions?(t.translate(l,u),t.scale(h[0],h[1]),function(t,e){for(var r=t.contextInstructions,n=0,i=r.length;n<i;n+=2)Array.isArray(r[n+1])?e[r[n]].apply(e,r[n+1]):e[r[n]]=r[n+1]}(n,t)):h[0]<0||h[1]<0?(t.translate(l,u),t.scale(h[0],h[1]),t.drawImage(n,i,o,a,s,0,0,a,s)):t.drawImage(n,i,o,a,s,l,u,a*h[0],s*h[1]),t.restore()}},6112:(t,e,r)=>{"use strict";r.d(e,{Z:()=>f});var n,i=r(4531),o=r(2110),a=r(7857),s=r(6808),l=r(2005),u=r(9680),h=r(7782),p=r(9157),c=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const f=function(t){function e(e,r,n,i){var o=t.call(this)||this;return o.tolerance=e,o.maxExtent=r,o.pixelRatio=i,o.maxLineWidth=0,o.resolution=n,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return c(e,t),e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))},e.prototype.appendFlatPointCoordinates=function(t,e){for(var r=this.getBufferedMaxExtent(),n=this.tmpCoordinate_,i=this.coordinates,o=i.length,a=0,s=t.length;a<s;a+=e)n[0]=t[a],n[1]=t[a+1],(0,l.b8)(r,n)&&(i[o++]=n[0],i[o++]=n[1]);return o},e.prototype.appendFlatLineCoordinates=function(t,e,r,n,i,a){var s=this.coordinates,u=s.length,h=this.getBufferedMaxExtent();a&&(e+=n);var p,c,f,d=t[e],y=t[e+1],g=this.tmpCoordinate_,v=!0;for(p=e+n;p<r;p+=n)g[0]=t[p],g[1]=t[p+1],(f=(0,l.pX)(h,g))!==c?(v&&(s[u++]=d,s[u++]=y,v=!1),s[u++]=g[0],s[u++]=g[1]):f===o.Z.INTERSECTING?(s[u++]=g[0],s[u++]=g[1],v=!1):v=!0,d=g[0],y=g[1],c=f;return(i&&v||p===e+n)&&(s[u++]=d,s[u++]=y),u},e.prototype.drawCustomCoordinates_=function(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o){var s=r[o],l=this.appendFlatLineCoordinates(t,e,s,n,!1,!1);i.push(l),e=s}return e},e.prototype.drawCustom=function(t,e,r,n){this.beginGeometry(t,e);var o,a,s,l,u,h=t.getType(),c=t.getStride(),f=this.coordinates.length;switch(h){case"MultiPolygon":o=t.getOrientedFlatCoordinates(),l=[];var d=t.getEndss();u=0;for(var y=0,g=d.length;y<g;++y){var v=[];u=this.drawCustomCoordinates_(o,u,d[y],c,v),l.push(v)}this.instructions.push([i.ZP.CUSTOM,f,l,t,r,p.ug]),this.hitDetectionInstructions.push([i.ZP.CUSTOM,f,l,t,n||r,p.ug]);break;case"Polygon":case"MultiLineString":s=[],o="Polygon"==h?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),u=this.drawCustomCoordinates_(o,0,t.getEnds(),c,s),this.instructions.push([i.ZP.CUSTOM,f,s,t,r,p.o1]),this.hitDetectionInstructions.push([i.ZP.CUSTOM,f,s,t,n||r,p.o1]);break;case"LineString":case"Circle":o=t.getFlatCoordinates(),a=this.appendFlatLineCoordinates(o,0,o.length,c,!1,!1),this.instructions.push([i.ZP.CUSTOM,f,a,t,r,p.Ml]),this.hitDetectionInstructions.push([i.ZP.CUSTOM,f,a,t,n||r,p.Ml]);break;case"MultiPoint":o=t.getFlatCoordinates(),(a=this.appendFlatPointCoordinates(o,c))>f&&(this.instructions.push([i.ZP.CUSTOM,f,a,t,r,p.Ml]),this.hitDetectionInstructions.push([i.ZP.CUSTOM,f,a,t,n||r,p.Ml]));break;case"Point":o=t.getFlatCoordinates(),this.coordinates.push(o[0],o[1]),a=this.coordinates.length,this.instructions.push([i.ZP.CUSTOM,f,a,t,r]),this.hitDetectionInstructions.push([i.ZP.CUSTOM,f,a,t,n||r])}this.endGeometry(e)},e.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[i.ZP.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[i.ZP.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t,e=this.hitDetectionInstructions;e.reverse();var r,n,o=e.length,a=-1;for(t=0;t<o;++t)(n=(r=e[t])[0])==i.ZP.END_GEOMETRY?a=t:n==i.ZP.BEGIN_GEOMETRY&&(r[2]=t,(0,h.FZ)(this.hitDetectionInstructions,a,t),a=-1)},e.prototype.setFillStrokeStyle=function(t,e){var r=this.state;if(t){var n=t.getColor();r.fillStyle=(0,s.y)(n||u.bL)}else r.fillStyle=void 0;if(e){var i=e.getColor();r.strokeStyle=(0,s.y)(i||u.Tx);var o=e.getLineCap();r.lineCap=void 0!==o?o:u.mb;var a=e.getLineDash();r.lineDash=a?a.slice():u.X9;var l=e.getLineDashOffset();r.lineDashOffset=l||u.He;var h=e.getLineJoin();r.lineJoin=void 0!==h?h:u.rc;var p=e.getWidth();r.lineWidth=void 0!==p?p:u.yC;var c=e.getMiterLimit();r.miterLimit=void 0!==c?c:u.V4,r.lineWidth>this.maxLineWidth&&(this.maxLineWidth=r.lineWidth,this.bufferedMaxExtent_=null)}else r.strokeStyle=void 0,r.lineCap=void 0,r.lineDash=null,r.lineDashOffset=void 0,r.lineJoin=void 0,r.lineWidth=void 0,r.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,r=[i.ZP.SET_FILL_STYLE,e];return"string"!=typeof e&&r.push(!0),r},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[i.ZP.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e){var r=t.fillStyle;"string"==typeof r&&t.currentFillStyle==r||(void 0!==r&&this.instructions.push(e.call(this,t)),t.currentFillStyle=r)},e.prototype.updateStrokeStyle=function(t,e){var r=t.strokeStyle,n=t.lineCap,i=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,s=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=r||t.currentLineCap!=n||i!=t.currentLineDash&&!(0,h.fS)(t.currentLineDash,i)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=s||t.currentMiterLimit!=l)&&(void 0!==r&&e.call(this,t),t.currentStrokeStyle=r,t.currentLineCap=n,t.currentLineDash=i,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=s,t.currentMiterLimit=l)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var e=[i.ZP.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,l.d9)(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;(0,l.f3)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(a.Z)},5704:(t,e,r)=>{"use strict";r.d(e,{Z:()=>g});var n,i=r(6112),o=r(4531),a=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const s=function(t){function e(e,r,n,i){var o=t.call(this,e,r,n,i)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterMode_=void 0,o.declutterImageWithText_=void 0,o}return a(e,t),e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var r=t.getFlatCoordinates(),n=t.getStride(),i=this.coordinates.length,a=this.appendFlatPointCoordinates(r,n);this.instructions.push([o.ZP.DRAW_IMAGE,i,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([o.ZP.DRAW_IMAGE,i,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var r=t.getFlatCoordinates(),n=t.getStride(),i=this.coordinates.length,a=this.appendFlatPointCoordinates(r,n);this.instructions.push([o.ZP.DRAW_IMAGE,i,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([o.ZP.DRAW_IMAGE,i,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,t.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,e){var r=t.getAnchor(),n=t.getSize(),i=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=r[0],this.anchorY_=r[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=n[1],this.opacity_=t.getOpacity(),this.originX_=i[0],this.originY_=i[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=n[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e},e}(i.Z);var l=r(9680),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const h=function(t){function e(e,r,n,i){return t.call(this,e,r,n,i)||this}return u(e,t),e.prototype.drawFlatCoordinates_=function(t,e,r,n){var i=this.coordinates.length,a=this.appendFlatLineCoordinates(t,e,r,n,!1,!1),s=[o.ZP.MOVE_TO_LINE_TO,i,a];return this.instructions.push(s),this.hitDetectionInstructions.push(s),r},e.prototype.drawLineString=function(t,e){var r=this.state,n=r.strokeStyle,i=r.lineWidth;if(void 0!==n&&void 0!==i){this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([o.ZP.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,l.X9,l.He],o.$O);var a=t.getFlatCoordinates(),s=t.getStride();this.drawFlatCoordinates_(a,0,a.length,s),this.hitDetectionInstructions.push(o.Yc),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var r=this.state,n=r.strokeStyle,i=r.lineWidth;if(void 0!==n&&void 0!==i){this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([o.ZP.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset],o.$O);for(var a=t.getEnds(),s=t.getFlatCoordinates(),l=t.getStride(),u=0,h=0,p=a.length;h<p;++h)u=this.drawFlatCoordinates_(s,u,a[h],l);this.hitDetectionInstructions.push(o.Yc),this.endGeometry(e)}},e.prototype.finish=function(){var e=this.state;return null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(o.Yc),this.reverseHitDetectionInstructions(),this.state=null,t.prototype.finish.call(this)},e.prototype.applyStroke=function(e){null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(o.Yc),e.lastStroke=this.coordinates.length),e.lastStroke=0,t.prototype.applyStroke.call(this,e),this.instructions.push(o.$O)},e}(i.Z);var p=r(8033),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const f=function(t){function e(e,r,n,i){return t.call(this,e,r,n,i)||this}return c(e,t),e.prototype.drawFlatCoordinatess_=function(t,e,r,n){var i=this.state,a=void 0!==i.fillStyle,s=void 0!==i.strokeStyle,l=r.length;this.instructions.push(o.$O),this.hitDetectionInstructions.push(o.$O);for(var u=0;u<l;++u){var h=r[u],p=this.coordinates.length,c=this.appendFlatLineCoordinates(t,e,h,n,!0,!s),f=[o.ZP.MOVE_TO_LINE_TO,p,c];this.instructions.push(f),this.hitDetectionInstructions.push(f),s&&(this.instructions.push(o.s3),this.hitDetectionInstructions.push(o.s3)),e=h}return a&&(this.instructions.push(o.gO),this.hitDetectionInstructions.push(o.gO)),s&&(this.instructions.push(o.Yc),this.hitDetectionInstructions.push(o.Yc)),e},e.prototype.drawCircle=function(t,e){var r=this.state,n=r.fillStyle,i=r.strokeStyle;if(void 0!==n||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([o.ZP.SET_FILL_STYLE,l.bL]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([o.ZP.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);var a=t.getFlatCoordinates(),s=t.getStride(),u=this.coordinates.length;this.appendFlatLineCoordinates(a,0,a.length,s,!1,!1);var h=[o.ZP.CIRCLE,u];this.instructions.push(o.$O,h),this.hitDetectionInstructions.push(o.$O,h),void 0!==r.fillStyle&&(this.instructions.push(o.gO),this.hitDetectionInstructions.push(o.gO)),void 0!==r.strokeStyle&&(this.instructions.push(o.Yc),this.hitDetectionInstructions.push(o.Yc)),this.endGeometry(e)}},e.prototype.drawPolygon=function(t,e){var r=this.state,n=r.fillStyle,i=r.strokeStyle;if(void 0!==n||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([o.ZP.SET_FILL_STYLE,l.bL]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([o.ZP.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);var a=t.getEnds(),s=t.getOrientedFlatCoordinates(),u=t.getStride();this.drawFlatCoordinatess_(s,0,a,u),this.endGeometry(e)}},e.prototype.drawMultiPolygon=function(t,e){var r=this.state,n=r.fillStyle,i=r.strokeStyle;if(void 0!==n||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([o.ZP.SET_FILL_STYLE,l.bL]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([o.ZP.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);for(var a=t.getEndss(),s=t.getOrientedFlatCoordinates(),u=t.getStride(),h=0,p=0,c=a.length;p<c;++p)h=this.drawFlatCoordinatess_(s,h,a[p],u);this.endGeometry(e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var e=this.tolerance;if(0!==e)for(var r=this.coordinates,n=0,i=r.length;n<i;++n)r[n]=(0,p.uZ)(r[n],e);return t.prototype.finish.call(this)},e.prototype.setFillStrokeStyles_=function(){var t=this.state;void 0!==t.fillStyle&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)},e}(i.Z);var d=r(6301),y={Circle:f,Default:i.Z,Image:s,LineString:h,Polygon:f,Text:d.Z};const g=function(){function t(t,e,r,n){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=n,this.resolution_=r,this.buildersByZIndex_={}}return t.prototype.finish=function(){var t={};for(var e in this.buildersByZIndex_){t[e]=t[e]||{};var r=this.buildersByZIndex_[e];for(var n in r){var i=r[n].finish();t[e][n]=i}}return t},t.prototype.getBuilder=function(t,e){var r=void 0!==t?t.toString():"0",n=this.buildersByZIndex_[r];void 0===n&&(n={},this.buildersByZIndex_[r]=n);var i=n[e];return void 0===i&&(i=new(0,y[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[e]=i),i},t}()},5787:(t,e,r)=>{"use strict";r.d(e,{Z:()=>R});var n=r(4531),i=r(6301),o=r(6299),a=r(4765),s=r(2005),l=r(9680),u=r(7344),h=r(7810);function p(t,e,r,n,i,o,a,s,l,p,c,f){var d=t[e],y=t[e+1],g=0,v=0,m=0,_=0;function x(){g=d,v=y,d=t[e+=n],y=t[e+1],_+=m,m=Math.sqrt((d-g)*(d-g)+(y-v)*(y-v))}do{x()}while(e<r-n&&_+m<o);for(var b=0===m?0:(o-_)/m,w=(0,u.t7)(g,d,b),C=(0,u.t7)(v,y,b),E=e-n,S=_,T=o+s*l(p,i,c);e<r-n&&_+m<T;)x();b=0===m?0:(T-_)/m;var O,P=(0,u.t7)(g,d,b),R=(0,u.t7)(v,y,b);if(f){var I=[w,C,P,R];(0,h.U1)(I,0,4,2,f,I,I),O=I[0]>I[2]}else O=w>P;var M,A=Math.PI,k=[],F=E+n===e;if(m=0,_=S,d=t[e=E],y=t[e+1],F){x(),M=Math.atan2(y-v,d-g),O&&(M+=M>0?-A:A);var L=(P+w)/2,Z=(R+C)/2;return k[0]=[L,Z,(T-o)/2,M,i],k}for(var D=0,j=(i=i.replace(/\n/g," ")).length;D<j;){x();var z=Math.atan2(y-v,d-g);if(O&&(z+=z>0?-A:A),void 0!==M){var N=z-M;if(N+=N>A?-2*A:N<-A?2*A:0,Math.abs(N)>a)return null}M=z;for(var G=D,X=0;D<j;++D){var W=s*l(p,i[O?j-D-1:D],c);if(e+n<r&&_+m<o+X+W/2)break;X+=W}if(D!==G){var q=O?i.substring(j-G,j-D):i.substring(G,D);b=0===m?0:(o+X/2-_)/m,L=(0,u.t7)(g,d,b),Z=(0,u.t7)(v,y,b),k.push([L,Z,X/2,z,q]),o+=X}}return k}var c=r(7782),f=r(6097),d=(0,s.lJ)(),y=[],g=[],v=[],m=[];function _(t){return t[3].declutterBox}var x=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function b(t,e){return"start"!==e&&"end"!==e||x.test(t)||(e="start"===e?"left":"right"),i.I[e]}function w(t,e,r){return r>0&&t.push("\n",""),t.push(e,""),t}const C=function(){function t(t,e,r,n){this.overlaps=r,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,a.Ue)(),this.hitDetectionInstructions=n.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=n.fillStates||{},this.strokeStates=n.strokeStates||{},this.textStates=n.textStates||{},this.widths_={},this.labels_={}}return t.prototype.createLabel=function(t,e,r,n){var a=t+e+r+n;if(this.labels_[a])return this.labels_[a];var s=n?this.strokeStates[n]:null,u=r?this.fillStates[r]:null,h=this.textStates[e],p=this.pixelRatio,c=[h.scale[0]*p,h.scale[1]*p],f=Array.isArray(t),d=h.justify?i.I[h.justify]:b(Array.isArray(t)?t[0]:t,h.textAlign||l.PH),y=n&&s.lineWidth?s.lineWidth:0,g=f?t:t.split("\n").reduce(w,[]),v=(0,l.Zw)(h,g),m=v.width,_=v.height,x=v.widths,C=v.heights,E=v.lineWidths,S=m+y,T=[],O=(S+2)*c[0],P=(_+y)*c[1],R={width:O<0?Math.floor(O):Math.ceil(O),height:P<0?Math.floor(P):Math.ceil(P),contextInstructions:T};1==c[0]&&1==c[1]||T.push("scale",c),n&&(T.push("strokeStyle",s.strokeStyle),T.push("lineWidth",y),T.push("lineCap",s.lineCap),T.push("lineJoin",s.lineJoin),T.push("miterLimit",s.miterLimit),(o.Id?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D).prototype.setLineDash&&(T.push("setLineDash",[s.lineDash]),T.push("lineDashOffset",s.lineDashOffset))),r&&T.push("fillStyle",u.fillStyle),T.push("textBaseline","middle"),T.push("textAlign","center");for(var I,M=.5-d,A=d*S+M*y,k=[],F=[],L=0,Z=0,D=0,j=0,z=0,N=g.length;z<N;z+=2){var G=g[z];if("\n"!==G){var X=g[z+1]||h.font;X!==I&&(n&&k.push("font",X),r&&F.push("font",X),I=X),L=Math.max(L,C[D]);var W=[G,A+M*x[D]+d*(x[D]-E[j]),.5*(y+L)+Z];A+=x[D],n&&k.push("strokeText",W),r&&F.push("fillText",W),++D}else Z+=L,L=0,A=d*S+M*y,++j}return Array.prototype.push.apply(T,k),Array.prototype.push.apply(T,F),this.labels_[a]=R,R},t.prototype.replayTextBackground_=function(t,e,r,n,i,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,r),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())},t.prototype.calculateImageOrLabelDimensions_=function(t,e,r,n,i,o,l,u,h,p,c,f,_,x,b,w){var C,E=r-(l*=f[0]),S=n-(u*=f[1]),T=i+h>t?t-h:i,O=o+p>e?e-p:o,P=x[3]+T*f[0]+x[1],R=x[0]+O*f[1]+x[2],I=E-x[3],M=S-x[0];return(b||0!==c)&&(y[0]=I,m[0]=I,y[1]=M,g[1]=M,g[0]=I+P,v[0]=g[0],v[1]=M+R,m[1]=v[1]),0!==c?(C=(0,a.qC)((0,a.Ue)(),r,n,1,1,c,-r,-n),(0,a.nn)(C,y),(0,a.nn)(C,g),(0,a.nn)(C,v),(0,a.nn)(C,m),(0,s.T9)(Math.min(y[0],g[0],v[0],m[0]),Math.min(y[1],g[1],v[1],m[1]),Math.max(y[0],g[0],v[0],m[0]),Math.max(y[1],g[1],v[1],m[1]),d)):(0,s.T9)(Math.min(I,I+P),Math.min(M,M+R),Math.max(I,I+P),Math.max(M,M+R),d),_&&(E=Math.round(E),S=Math.round(S)),{drawImageX:E,drawImageY:S,drawImageW:T,drawImageH:O,originX:h,originY:p,declutterBox:{minX:d[0],minY:d[1],maxX:d[2],maxY:d[3],value:w},canvasTransform:C,scale:f}},t.prototype.replayImageOrLabel_=function(t,e,r,n,i,o,a){var s=!(!o&&!a),u=n.declutterBox,h=t.canvas,p=a?a[2]*n.scale[0]/2:0;return u.minX-p<=h.width/e&&u.maxX+p>=0&&u.minY-p<=h.height/e&&u.maxY+p>=0&&(s&&this.replayTextBackground_(t,y,g,v,m,o,a),(0,l._f)(t,n.canvasTransform,i,r,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0},t.prototype.fill_=function(t){if(this.alignFill_){var e=(0,a.nn)(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;t.save(),t.translate(e[0]%r,e[1]%r),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},t.prototype.setStrokeStyle_=function(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},t.prototype.drawLabelWithPointPlacement_=function(t,e,r,n){var o=this.textStates[e],a=this.createLabel(t,e,n,r),s=this.strokeStates[r],u=this.pixelRatio,h=b(Array.isArray(t)?t[0]:t,o.textAlign||l.PH),p=i.I[o.textBaseline||l.ru],c=s&&s.lineWidth?s.lineWidth:0;return{label:a,anchorX:h*(a.width/u-2*o.scale[0])+2*(.5-h)*c,anchorY:p*a.height/u+2*(.5-p)*c}},t.prototype.execute_=function(t,e,r,o,u,d,y,g){var v;this.pixelCoordinates_&&(0,c.fS)(r,this.renderedTransform_)?v=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),v=(0,h.vT)(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),(0,a.lk)(this.renderedTransform_,r));for(var m,x,b,w,C,E,S,T,O,P,R,I,M,A,k,F,L=0,Z=o.length,D=0,j=0,z=0,N=null,G=null,X=this.coordinateCache_,W=this.viewRotation_,q=Math.round(1e12*Math.atan2(-r[1],r[0]))/1e12,Y={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:W},V=this.instructions!=o||this.overlaps?0:200;L<Z;){var B=o[L];switch(B[0]){case n.ZP.BEGIN_GEOMETRY:M=B[1],F=B[3],M.getGeometry()?void 0===y||(0,s.kK)(y,F.getExtent())?++L:L=B[2]+1:L=B[2];break;case n.ZP.BEGIN_PATH:j>V&&(this.fill_(t),j=0),z>V&&(t.stroke(),z=0),j||z||(t.beginPath(),w=NaN,C=NaN),++L;break;case n.ZP.CIRCLE:var U=v[D=B[1]],K=v[D+1],H=v[D+2]-U,J=v[D+3]-K,$=Math.sqrt(H*H+J*J);t.moveTo(U+$,K),t.arc(U,K,$,0,2*Math.PI,!0),++L;break;case n.ZP.CLOSE_PATH:t.closePath(),++L;break;case n.ZP.CUSTOM:D=B[1],m=B[2];var Q=B[3],tt=B[4],et=6==B.length?B[5]:void 0;Y.geometry=Q,Y.feature=M,L in X||(X[L]=[]);var rt=X[L];et?et(v,D,m,2,rt):(rt[0]=v[D],rt[1]=v[D+1],rt.length=2),tt(rt,Y),++L;break;case n.ZP.DRAW_IMAGE:D=B[1],m=B[2],T=B[3],x=B[4],b=B[5];var nt=B[6],it=B[7],ot=B[8],at=B[9],st=B[10],lt=B[11],ut=B[12],ht=B[13],pt=B[14],ct=B[15];if(!T&&B.length>=20){O=B[19],P=B[20],R=B[21],I=B[22];var ft=this.drawLabelWithPointPlacement_(O,P,R,I);T=ft.label,B[3]=T;var dt=B[23];x=(ft.anchorX-dt)*this.pixelRatio,B[4]=x;var yt=B[24];b=(ft.anchorY-yt)*this.pixelRatio,B[5]=b,nt=T.height,B[6]=nt,ht=T.width,B[13]=ht}var gt=void 0;B.length>25&&(gt=B[25]);var vt=void 0,mt=void 0,_t=void 0;B.length>17?(vt=B[16],mt=B[17],_t=B[18]):(vt=l.oB,mt=!1,_t=!1),st&&q?lt+=W:st||q||(lt-=W);for(var xt=0;D<m;D+=2)if(!(gt&&gt[xt++]<ht/this.pixelRatio)){var bt=[t,e,T,Ut=this.calculateImageOrLabelDimensions_(T.width,T.height,v[D],v[D+1],ht,nt,x,b,ot,at,lt,ut,u,vt,mt||_t,M),it,mt?N:null,_t?G:null];if(g){if("none"===pt)continue;if("obstacle"===pt){g.insert(Ut.declutterBox);continue}var wt=void 0,Ct=void 0;if(ct){var Et=m-D;if(!ct[Et]){ct[Et]=bt;continue}if(wt=ct[Et],delete ct[Et],Ct=_(wt),g.collides(Ct))continue}if(g.collides(Ut.declutterBox))continue;wt&&(g.insert(Ct),this.replayImageOrLabel_.apply(this,wt)),g.insert(Ut.declutterBox)}this.replayImageOrLabel_.apply(this,bt)}++L;break;case n.ZP.DRAW_CHARS:var St=B[1],Tt=B[2],Ot=B[3],Pt=B[4];I=B[5];var Rt=B[6],It=B[7],Mt=B[8];R=B[9];var At=B[10];O=B[11],P=B[12];var kt=[B[13],B[13]],Ft=this.textStates[P],Lt=Ft.font,Zt=[Ft.scale[0]*It,Ft.scale[1]*It],Dt=void 0;Lt in this.widths_?Dt=this.widths_[Lt]:(Dt={},this.widths_[Lt]=Dt);var jt=(0,f.W)(v,St,Tt,2),zt=Math.abs(Zt[0])*(0,l.Kd)(Lt,O,Dt);if(Pt||zt<=jt){var Nt=this.textStates[P].textAlign,Gt=p(v,St,Tt,2,O,(jt-zt)*i.I[Nt],Rt,Math.abs(Zt[0]),l.Kd,Lt,Dt,q?0:this.viewRotation_);t:if(Gt){var Xt=[],Wt=void 0,qt=void 0,Yt=void 0,Vt=void 0,Bt=void 0;if(R)for(Wt=0,qt=Gt.length;Wt<qt;++Wt){Yt=(Bt=Gt[Wt])[4],Vt=this.createLabel(Yt,P,"",R),x=Bt[2]+(Zt[0]<0?-At:At),b=Ot*Vt.height+2*(.5-Ot)*At*Zt[1]/Zt[0]-Mt;var Ut=this.calculateImageOrLabelDimensions_(Vt.width,Vt.height,Bt[0],Bt[1],Vt.width,Vt.height,x,b,0,0,Bt[3],kt,!1,l.oB,!1,M);if(g&&g.collides(Ut.declutterBox))break t;Xt.push([t,e,Vt,Ut,1,null,null])}if(I)for(Wt=0,qt=Gt.length;Wt<qt;++Wt){if(Yt=(Bt=Gt[Wt])[4],Vt=this.createLabel(Yt,P,I,""),x=Bt[2],b=Ot*Vt.height-Mt,Ut=this.calculateImageOrLabelDimensions_(Vt.width,Vt.height,Bt[0],Bt[1],Vt.width,Vt.height,x,b,0,0,Bt[3],kt,!1,l.oB,!1,M),g&&g.collides(Ut.declutterBox))break t;Xt.push([t,e,Vt,Ut,1,null,null])}g&&g.load(Xt.map(_));for(var Kt=0,Ht=Xt.length;Kt<Ht;++Kt)this.replayImageOrLabel_.apply(this,Xt[Kt])}}++L;break;case n.ZP.END_GEOMETRY:if(void 0!==d){var Jt=d(M=B[1],F);if(Jt)return Jt}++L;break;case n.ZP.FILL:V?j++:this.fill_(t),++L;break;case n.ZP.MOVE_TO_LINE_TO:for(D=B[1],m=B[2],A=v[D],S=(k=v[D+1])+.5|0,(E=A+.5|0)===w&&S===C||(t.moveTo(A,k),w=E,C=S),D+=2;D<m;D+=2)E=(A=v[D])+.5|0,S=(k=v[D+1])+.5|0,D!=m-2&&E===w&&S===C||(t.lineTo(A,k),w=E,C=S);++L;break;case n.ZP.SET_FILL_STYLE:N=B,this.alignFill_=B[2],j&&(this.fill_(t),j=0,z&&(t.stroke(),z=0)),t.fillStyle=B[1],++L;break;case n.ZP.SET_STROKE_STYLE:G=B,z&&(t.stroke(),z=0),this.setStrokeStyle_(t,B),++L;break;case n.ZP.STROKE:V?z++:t.stroke(),++L;break;default:++L}}j&&this.fill_(t),z&&t.stroke()},t.prototype.execute=function(t,e,r,n,i,o){this.viewRotation_=n,this.execute_(t,e,r,this.instructions,i,void 0,void 0,o)},t.prototype.executeHitDetection=function(t,e,r,n,i){return this.viewRotation_=r,this.execute_(t,1,e,this.hitDetectionInstructions,!0,n,i)},t}();var E=r(766),S=r(273),T=["Polygon","Circle","LineString","Image","Text","Default"],O=function(){function t(t,e,r,n,i,o){this.maxExtent_=t,this.overlaps_=n,this.pixelRatio_=r,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=(0,a.Ue)(),this.createExecutors_(i)}return t.prototype.clip=function(t,e){var r=this.getClipCoords(e);t.beginPath(),t.moveTo(r[0],r[1]),t.lineTo(r[2],r[3]),t.lineTo(r[4],r[5]),t.lineTo(r[6],r[7]),t.clip()},t.prototype.createExecutors_=function(t){for(var e in t){var r=this.executorsByZIndex_[e];void 0===r&&(r={},this.executorsByZIndex_[e]=r);var n=t[e];for(var i in n){var o=n[i];r[i]=new C(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},t.prototype.hasExecutors=function(t){for(var e in this.executorsByZIndex_)for(var r=this.executorsByZIndex_[e],n=0,i=t.length;n<i;++n)if(t[n]in r)return!0;return!1},t.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i,o){var l=2*(n=Math.round(n))+1,u=(0,a.qC)(this.hitDetectionTransform_,n+.5,n+.5,1/e,-1/e,-r,-t[0],-t[1]),h=!this.hitDetectionContext_;h&&(this.hitDetectionContext_=(0,E.E4)(l,l));var p,f=this.hitDetectionContext_;f.canvas.width!==l||f.canvas.height!==l?(f.canvas.width=l,f.canvas.height=l):h||f.clearRect(0,0,l,l),void 0!==this.renderBuffer_&&(p=(0,s.lJ)(),(0,s.Wj)(p,t),(0,s.f3)(p,e*(this.renderBuffer_+n),p));var d,y=function(t){if(void 0!==P[t])return P[t];for(var e=2*t+1,r=t*t,n=new Array(r+1),i=0;i<=t;++i)for(var o=0;o<=t;++o){var a=i*i+o*o;if(a>r)break;var s=n[a];s||(s=[],n[a]=s),s.push(4*((t+i)*e+(t+o))+3),i>0&&s.push(4*((t-i)*e+(t+o))+3),o>0&&(s.push(4*((t+i)*e+(t-o))+3),i>0&&s.push(4*((t-i)*e+(t-o))+3))}for(var l=[],u=(i=0,n.length);i<u;++i)n[i]&&l.push.apply(l,n[i]);return P[t]=l,l}(n);function g(t,e){for(var r=f.getImageData(0,0,l,l).data,a=0,s=y.length;a<s;a++)if(r[y[a]]>0){if(!o||"Image"!==d&&"Text"!==d||-1!==o.indexOf(t)){var u=(y[a]-3)/4,h=n-u%l,p=n-(u/l|0),c=i(t,e,h*h+p*p);if(c)return c}f.clearRect(0,0,l,l);break}}var v,m,_,x,b,w=Object.keys(this.executorsByZIndex_).map(Number);for(w.sort(c.kK),v=w.length-1;v>=0;--v){var C=w[v].toString();for(_=this.executorsByZIndex_[C],m=T.length-1;m>=0;--m)if(void 0!==(x=_[d=T[m]])&&(b=x.executeHitDetection(f,u,r,g,p)))return b}},t.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var r=e[0],n=e[1],i=e[2],o=e[3],a=[r,n,r,o,i,o,i,n];return(0,h.vT)(a,0,8,2,t,a),a},t.prototype.isEmpty=function(){return(0,S.xb)(this.executorsByZIndex_)},t.prototype.execute=function(t,e,r,n,i,o,a){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(c.kK),this.maxExtent_&&(t.save(),this.clip(t,r));var l,u,h,p,f,d,y=o||T;for(a&&s.reverse(),l=0,u=s.length;l<u;++l){var g=s[l].toString();for(f=this.executorsByZIndex_[g],h=0,p=y.length;h<p;++h)void 0!==(d=f[y[h]])&&d.execute(t,e,r,n,i,a)}this.maxExtent_&&t.restore()},t}(),P={};const R=O},4531:(t,e,r)=>{"use strict";r.d(e,{$O:()=>a,Yc:()=>o,ZP:()=>l,gO:()=>i,s3:()=>s});var n={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},i=[n.FILL],o=[n.STROKE],a=[n.BEGIN_PATH],s=[n.CLOSE_PATH];const l=n},6301:(t,e,r)=>{"use strict";r.d(e,{I:()=>f,Z:()=>d});var n=r(6112),i=r(4531),o=r(2197),a=r(6808),s=r(9680),l=r(4415),u=r(2005);function h(t,e,r,n,i){var o,a,s,l,u,h,p,c,f,d=r,y=r,g=0,v=0,m=r;for(o=r;o<n;o+=i){var _=e[o],x=e[o+1];void 0!==l&&(c=_-l,f=x-u,s=Math.sqrt(c*c+f*f),void 0!==h&&(v+=a,Math.acos((h*c+p*f)/(a*s))>t&&(v>g&&(g=v,d=m,y=o),v=0,m=o-i)),a=s,h=c,p=f),l=_,u=x}return(v+=s)>g?[m,o]:[d,y]}var p,c=(p=function(t,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},p(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),f={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};const d=function(t){function e(e,r,n,i){var o=t.call(this,e,r,n,i)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return c(e,t),e.prototype.finish=function(){var e=t.prototype.finish.call(this);return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e},e.prototype.drawText=function(t,e){var r=this.textFillState_,n=this.textStrokeState_,a=this.textState_;if(""!==this.text_&&a&&(r||n)){var l=this.coordinates,p=l.length,c=t.getType(),f=null,d=t.getStride();if(a.placement!==o.Z.LINE||"LineString"!=c&&"MultiLineString"!=c&&"Polygon"!=c&&"MultiPolygon"!=c){var y=a.overflow?null:[];switch(c){case"Point":case"MultiPoint":f=t.getFlatCoordinates();break;case"LineString":f=t.getFlatMidpoint();break;case"Circle":f=t.getCenter();break;case"MultiLineString":f=t.getFlatMidpoints(),d=2;break;case"Polygon":f=t.getFlatInteriorPoint(),a.overflow||y.push(f[2]/this.resolution),d=3;break;case"MultiPolygon":var g=t.getFlatInteriorPoints();for(f=[],O=0,P=g.length;O<P;O+=3)a.overflow||y.push(g[O+2]/this.resolution),f.push(g[O],g[O+1]);if(0===f.length)return;d=2}if((L=this.appendFlatPointCoordinates(f,d))===p)return;if(y&&(L-p)/2!=f.length/d){var v=p/2;y=y.filter((function(t,e){var r=l[2*(v+e)]===f[e*d]&&l[2*(v+e)+1]===f[e*d+1];return r||--v,r}))}this.saveTextStates_(),(a.backgroundFill||a.backgroundStroke)&&(this.setFillStrokeStyle(a.backgroundFill,a.backgroundStroke),a.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),a.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);var m=a.padding;if(m!=s.oB&&(a.scale[0]<0||a.scale[1]<0)){var _=a.padding[0],x=a.padding[1],b=a.padding[2],w=a.padding[3];a.scale[0]<0&&(x=-x,w=-w),a.scale[1]<0&&(_=-_,b=-b),m=[_,x,b,w]}var C=this.pixelRatio;this.instructions.push([i.ZP.DRAW_IMAGE,p,L,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,m==s.oB?s.oB:m.map((function(t){return t*C})),!!a.backgroundFill,!!a.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,y]);var E=1/C;this.hitDetectionInstructions.push([i.ZP.DRAW_IMAGE,p,L,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[E,E],NaN,void 0,this.declutterImageWithText_,m,!!a.backgroundFill,!!a.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,y]),this.endGeometry(e)}else{if(!(0,u.kK)(this.getBufferedMaxExtent(),t.getExtent()))return;var S=void 0;if(f=t.getFlatCoordinates(),"LineString"==c)S=[f.length];else if("MultiLineString"==c)S=t.getEnds();else if("Polygon"==c)S=t.getEnds().slice(0,1);else if("MultiPolygon"==c){var T=t.getEndss();S=[];for(var O=0,P=T.length;O<P;++O)S.push(T[O][0])}this.beginGeometry(t,e);for(var R=a.textAlign,I=0,M=void 0,A=0,k=S.length;A<k;++A){if(null==R){var F=h(a.maxAngle,f,I,S[A],d);I=F[0],M=F[1]}else M=S[A];for(O=I;O<M;O+=d)l.push(f[O],f[O+1]);var L=l.length;I=S[A],this.drawChars_(p,L),p=L}this.endGeometry(e)}}},e.prototype.saveTextStates_=function(){var t=this.textStrokeState_,e=this.textState_,r=this.textFillState_,n=this.strokeKey_;t&&(n in this.strokeStates||(this.strokeStates[n]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));var i=this.textKey_;i in this.textStates||(this.textStates[i]={font:e.font,textAlign:e.textAlign||s.PH,justify:e.justify,textBaseline:e.textBaseline||s.ru,scale:e.scale});var o=this.fillKey_;r&&(o in this.fillStates||(this.fillStates[o]={fillStyle:r.fillStyle}))},e.prototype.drawChars_=function(t,e){var r=this.textStrokeState_,n=this.textState_,o=this.strokeKey_,a=this.textKey_,s=this.fillKey_;this.saveTextStates_();var l=this.pixelRatio,u=f[n.textBaseline],h=this.textOffsetY_*l,p=this.text_,c=r?r.lineWidth*Math.abs(n.scale[0])/2:0;this.instructions.push([i.ZP.DRAW_CHARS,t,e,u,n.overflow,s,n.maxAngle,l,h,o,c*l,p,a,1]),this.hitDetectionInstructions.push([i.ZP.DRAW_CHARS,t,e,u,n.overflow,s,n.maxAngle,1,h,o,c,p,a,1/l])},e.prototype.setTextStyle=function(t,e){var r,n,i;if(t){var o=t.getFill();o?((n=this.textFillState_)||(n={},this.textFillState_=n),n.fillStyle=(0,a.y)(o.getColor()||s.bL)):(n=null,this.textFillState_=n);var u=t.getStroke();if(u){(i=this.textStrokeState_)||(i={},this.textStrokeState_=i);var h=u.getLineDash(),p=u.getLineDashOffset(),c=u.getWidth(),f=u.getMiterLimit();i.lineCap=u.getLineCap()||s.mb,i.lineDash=h?h.slice():s.X9,i.lineDashOffset=void 0===p?s.He:p,i.lineJoin=u.getLineJoin()||s.rc,i.lineWidth=void 0===c?s.yC:c,i.miterLimit=void 0===f?s.V4:f,i.strokeStyle=(0,a.y)(u.getColor()||s.Tx)}else i=null,this.textStrokeState_=i;r=this.textState_;var d=t.getFont()||s.Df;(0,s.Qx)(d);var y=t.getScaleArray();r.overflow=t.getOverflow(),r.font=d,r.maxAngle=t.getMaxAngle(),r.placement=t.getPlacement(),r.textAlign=t.getTextAlign(),r.justify=t.getJustify(),r.textBaseline=t.getTextBaseline()||s.ru,r.backgroundFill=t.getBackgroundFill(),r.backgroundStroke=t.getBackgroundStroke(),r.padding=t.getPadding()||s.oB,r.scale=void 0===y?[1,1]:y;var g=t.getOffsetX(),v=t.getOffsetY(),m=t.getRotateWithView(),_=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===g?0:g,this.textOffsetY_=void 0===v?0:v,this.textRotateWithView_=void 0!==m&&m,this.textRotation_=void 0===_?0:_,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:(0,l.sq)(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=r.font+r.scale+(r.textAlign||"?")+(r.justify||"?")+(r.textBaseline||"?"),this.fillKey_=n?"string"==typeof n.fillStyle?n.fillStyle:"|"+(0,l.sq)(n.fillStyle):""}else this.text_="";this.declutterImageWithText_=e},e}(n.Z)},8010:(t,e,r)=>{"use strict";r.d(e,{UN:()=>_,TU:()=>x,ix:()=>b});var n,i=r(7857),o=r(6808),a=r(4765),s=r(9680),l=r(7782),u=r(2005),h=r(7810),p=r(3062),c=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),f=function(t){function e(e,r,n,i,o,s,l){var u=t.call(this)||this;return u.context_=e,u.pixelRatio_=r,u.extent_=n,u.transform_=i,u.viewRotation_=o,u.squaredTolerance_=s,u.userTransform_=l,u.contextFillState_=null,u.contextStrokeState_=null,u.contextTextState_=null,u.fillState_=null,u.strokeState_=null,u.image_=null,u.imageAnchorX_=0,u.imageAnchorY_=0,u.imageHeight_=0,u.imageOpacity_=0,u.imageOriginX_=0,u.imageOriginY_=0,u.imageRotateWithView_=!1,u.imageRotation_=0,u.imageScale_=[0,0],u.imageWidth_=0,u.text_="",u.textOffsetX_=0,u.textOffsetY_=0,u.textRotateWithView_=!1,u.textRotation_=0,u.textScale_=[0,0],u.textFillState_=null,u.textStrokeState_=null,u.textState_=null,u.pixelCoordinates_=[],u.tmpLocalTransform_=(0,a.Ue)(),u}return c(e,t),e.prototype.drawImages_=function(t,e,r,n){if(this.image_){var i=(0,h.vT)(t,e,r,n,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.tmpLocalTransform_,l=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=l*this.imageOpacity_);var u=this.imageRotation_;this.imageRotateWithView_&&(u+=this.viewRotation_);for(var p=0,c=i.length;p<c;p+=2){var f=i[p]-this.imageAnchorX_,d=i[p+1]-this.imageAnchorY_;if(0!==u||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var y=f+this.imageAnchorX_,g=d+this.imageAnchorY_;(0,a.qC)(s,y,g,1,1,u,-y,-g),o.setTransform.apply(o,s),o.translate(y,g),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.setTransform(1,0,0,1,0,0)}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,f,d,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=l)}},e.prototype.drawText_=function(t,e,r,n){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var i=(0,h.vT)(t,e,r,n,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.textRotation_;for(this.textRotateWithView_&&(s+=this.viewRotation_);e<r;e+=n){var l=i[e]+this.textOffsetX_,u=i[e+1]+this.textOffsetY_;if(0!==s||1!=this.textScale_[0]||1!=this.textScale_[1]){var p=(0,a.qC)(this.tmpLocalTransform_,l,u,1,1,s,-l,-u);o.setTransform.apply(o,p),o.translate(l,u),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&o.strokeText(this.text_,l,u),this.textFillState_&&o.fillText(this.text_,l,u)}}},e.prototype.moveToLineTo_=function(t,e,r,n,i){var o=this.context_,a=(0,h.vT)(t,e,r,n,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;i&&(s-=2);for(var l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return i&&o.closePath(),r},e.prototype.drawRings_=function(t,e,r,n){for(var i=0,o=r.length;i<o;++i)e=this.moveToLineTo_(t,e,r[i],n,!0);return e},e.prototype.drawCircle=function(t){if((0,u.kK)(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=(0,p.Kr)(t,this.transform_,this.pixelCoordinates_),r=e[2]-e[0],n=e[3]-e[1],i=Math.sqrt(r*r+n*n),o=this.context_;o.beginPath(),o.arc(e[0],e[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}},e.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},e.prototype.setTransform=function(t){this.transform_=t},e.prototype.drawGeometry=function(t){switch(t.getType()){case"Point":this.drawPoint(t);break;case"LineString":this.drawLineString(t);break;case"Polygon":this.drawPolygon(t);break;case"MultiPoint":this.drawMultiPoint(t);break;case"MultiLineString":this.drawMultiLineString(t);break;case"MultiPolygon":this.drawMultiPolygon(t);break;case"GeometryCollection":this.drawGeometryCollection(t);break;case"Circle":this.drawCircle(t)}},e.prototype.drawFeature=function(t,e){var r=e.getGeometryFunction()(t);r&&(0,u.kK)(this.extent_,r.getExtent())&&(this.setStyle(e),this.drawGeometry(r))},e.prototype.drawGeometryCollection=function(t){for(var e=t.getGeometriesArray(),r=0,n=e.length;r<n;++r)this.drawGeometry(e[r])},e.prototype.drawPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),r=t.getStride();this.image_&&this.drawImages_(e,0,e.length,r),""!==this.text_&&this.drawText_(e,0,e.length,r)},e.prototype.drawMultiPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),r=t.getStride();this.image_&&this.drawImages_(e,0,e.length,r),""!==this.text_&&this.drawText_(e,0,e.length,r)},e.prototype.drawLineString=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,u.kK)(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,r=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(r,0,r.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){var n=t.getFlatMidpoint();this.drawText_(n,0,2,2)}}},e.prototype.drawMultiLineString=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getExtent();if((0,u.kK)(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var r=this.context_,n=t.getFlatCoordinates(),i=0,o=t.getEnds(),a=t.getStride();r.beginPath();for(var s=0,l=o.length;s<l;++s)i=this.moveToLineTo_(n,i,o[s],a,!1);r.stroke()}if(""!==this.text_){var h=t.getFlatMidpoints();this.drawText_(h,0,h.length,2)}}},e.prototype.drawPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,u.kK)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var r=t.getFlatInteriorPoint();this.drawText_(r,0,2,2)}}},e.prototype.drawMultiPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,u.kK)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_,r=t.getOrientedFlatCoordinates(),n=0,i=t.getEndss(),o=t.getStride();e.beginPath();for(var a=0,s=i.length;a<s;++a){var l=i[a];n=this.drawRings_(r,n,l,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var h=t.getFlatInteriorPoints();this.drawText_(h,0,h.length,2)}}},e.prototype.setContextFillState_=function(t){var e=this.context_,r=this.contextFillState_;r?r.fillStyle!=t.fillStyle&&(r.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},e.prototype.setContextStrokeState_=function(t){var e=this.context_,r=this.contextStrokeState_;r?(r.lineCap!=t.lineCap&&(r.lineCap=t.lineCap,e.lineCap=t.lineCap),e.setLineDash&&((0,l.fS)(r.lineDash,t.lineDash)||e.setLineDash(r.lineDash=t.lineDash),r.lineDashOffset!=t.lineDashOffset&&(r.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset)),r.lineJoin!=t.lineJoin&&(r.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),r.lineWidth!=t.lineWidth&&(r.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),r.miterLimit!=t.miterLimit&&(r.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),r.strokeStyle!=t.strokeStyle&&(r.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},e.prototype.setContextTextState_=function(t){var e=this.context_,r=this.contextTextState_,n=t.textAlign?t.textAlign:s.PH;r?(r.font!=t.font&&(r.font=t.font,e.font=t.font),r.textAlign!=n&&(r.textAlign=n,e.textAlign=n),r.textBaseline!=t.textBaseline&&(r.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=n,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:n,textBaseline:t.textBaseline})},e.prototype.setFillStrokeStyle=function(t,e){var r=this;if(t){var n=t.getColor();this.fillState_={fillStyle:(0,o.y)(n||s.bL)}}else this.fillState_=null;if(e){var i=e.getColor(),a=e.getLineCap(),l=e.getLineDash(),u=e.getLineDashOffset(),h=e.getLineJoin(),p=e.getWidth(),c=e.getMiterLimit(),f=l||s.X9;this.strokeState_={lineCap:void 0!==a?a:s.mb,lineDash:1===this.pixelRatio_?f:f.map((function(t){return t*r.pixelRatio_})),lineDashOffset:(u||s.He)*this.pixelRatio_,lineJoin:void 0!==h?h:s.rc,lineWidth:(void 0!==p?p:s.yC)*this.pixelRatio_,miterLimit:void 0!==c?c:s.V4,strokeStyle:(0,o.y)(i||s.Tx)}}else this.strokeState_=null},e.prototype.setImageStyle=function(t){var e;if(t&&(e=t.getSize())){var r=t.getAnchor(),n=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=r[0]*this.pixelRatio_,this.imageAnchorY_=r[1]*this.pixelRatio_,this.imageHeight_=e[1]*this.pixelRatio_,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=n[0],this.imageOriginY_=n[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=t.getScaleArray(),this.imageWidth_=e[0]*this.pixelRatio_}else this.image_=null},e.prototype.setTextStyle=function(t){if(t){var e=t.getFill();if(e){var r=e.getColor();this.textFillState_={fillStyle:(0,o.y)(r||s.bL)}}else this.textFillState_=null;var n=t.getStroke();if(n){var i=n.getColor(),a=n.getLineCap(),l=n.getLineDash(),u=n.getLineDashOffset(),h=n.getLineJoin(),p=n.getWidth(),c=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==a?a:s.mb,lineDash:l||s.X9,lineDashOffset:u||s.He,lineJoin:void 0!==h?h:s.rc,lineWidth:void 0!==p?p:s.yC,miterLimit:void 0!==c?c:s.V4,strokeStyle:(0,o.y)(i||s.Tx)}}else this.textStrokeState_=null;var f=t.getFont(),d=t.getOffsetX(),y=t.getOffsetY(),g=t.getRotateWithView(),v=t.getRotation(),m=t.getScaleArray(),_=t.getText(),x=t.getTextAlign(),b=t.getTextBaseline();this.textState_={font:void 0!==f?f:s.Df,textAlign:void 0!==x?x:s.PH,textBaseline:void 0!==b?b:s.ru},this.text_=void 0!==_?Array.isArray(_)?_.reduce((function(t,e,r){return t+(r%2?" ":e)}),""):_:"",this.textOffsetX_=void 0!==d?this.pixelRatio_*d:0,this.textOffsetY_=void 0!==y?this.pixelRatio_*y:0,this.textRotateWithView_=void 0!==g&&g,this.textRotation_=void 0!==v?v:0,this.textScale_=[this.pixelRatio_*m[0],this.pixelRatio_*m[1]]}else this.text_=""},e}(i.Z);const d=f;var y=r(6951),g=r(6278),v=r(7344),m=r(766),_=.5;function x(t,e,r,n,i,o,a){var s=t[0]*_,h=t[1]*_,p=(0,m.E4)(s,h);p.imageSmoothingEnabled=!1;for(var c=p.canvas,f=new d(p,_,i,null,a),v=r.length,x=Math.floor(16777215/v),b={},w=1;w<=v;++w){var C=r[w-1],E=C.getStyleFunction()||n;if(n){var S=E(C,o);if(S){Array.isArray(S)||(S=[S]);for(var T="#"+("000000"+(w*x).toString(16)).slice(-6),O=0,P=S.length;O<P;++O){var R=S[O],I=R.getGeometryFunction()(C);if(I&&(0,u.kK)(i,I.getExtent())){var M=R.clone(),A=M.getFill();A&&A.setColor(T);var k=M.getStroke();k&&(k.setColor(T),k.setLineDash(null)),M.setText(void 0);var F=R.getImage();if(F&&0!==F.getOpacity()){var L=F.getImageSize();if(!L)continue;var Z=(0,m.E4)(L[0],L[1],void 0,{alpha:!1}),D=Z.canvas;Z.fillStyle=T,Z.fillRect(0,0,D.width,D.height),M.setImage(new g.Z({img:D,imgSize:L,anchor:F.getAnchor(),anchorXUnits:y.Z.PIXELS,anchorYUnits:y.Z.PIXELS,offset:F.getOrigin(),opacity:1,size:F.getSize(),scale:F.getScale(),rotation:F.getRotation(),rotateWithView:F.getRotateWithView()}))}var j=M.getZIndex()||0;(G=b[j])||(G={},b[j]=G,G.Polygon=[],G.Circle=[],G.LineString=[],G.Point=[]),G[I.getType().replace("Multi","")].push(I,M)}}}}}for(var z=Object.keys(b).map(Number).sort(l.kK),N=(w=0,z.length);w<N;++w){var G=b[z[w]];for(var X in G){var W=G[X];for(O=0,P=W.length;O<P;O+=2){f.setStyle(W[O+1]);for(var q=0,Y=e.length;q<Y;++q)f.setTransform(e[q]),f.drawGeometry(W[O])}}}return p.getImageData(0,0,c.width,c.height)}function b(t,e,r){var n=[];if(r){var i=Math.floor(Math.round(t[0])*_),o=Math.floor(Math.round(t[1])*_),a=4*((0,v.uZ)(i,0,r.width-1)+(0,v.uZ)(o,0,r.height-1)*r.width),s=r.data[a],l=r.data[a+1],u=r.data[a+2]+256*(l+256*s),h=Math.floor(16777215/e.length);u&&u%h==0&&n.push(e[u/h-1])}return n}},4244:(t,e,r)=>{"use strict";r.d(e,{r:()=>m,Z:()=>x});var n,i=r(7758),o=r(8260),a=r(9335),s=r(4415),l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const u=function(t){function e(e){var r=t.call(this)||this;return r.ready=!0,r.boundHandleImageChange_=r.handleImageChange_.bind(r),r.layer_=e,r.declutterExecutorGroup=null,r}return l(e,t),e.prototype.getFeatures=function(t){return(0,s.O3)()},e.prototype.getData=function(t){return null},e.prototype.prepareFrame=function(t){return(0,s.O3)()},e.prototype.renderFrame=function(t,e){return(0,s.O3)()},e.prototype.loadedTileCallback=function(t,e,r){t[e]||(t[e]={}),t[e][r.tileCoord.toString()]=r},e.prototype.createLoadedTileFinder=function(t,e,r){return function(n,i){var o=this.loadedTileCallback.bind(this,r,n);return t.forEachLoadedTile(e,n,i,o)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){},e.prototype.getDataAtPixel=function(t,e,r){return null},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){t.target.getState()===o.Z.LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=o.Z.LOADED&&e!=o.Z.ERROR&&t.addEventListener(i.Z.CHANGE,this.boundHandleImageChange_),e==o.Z.IDLE&&(t.load(),e=t.getState()),e==o.Z.LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()},e.prototype.disposeInternal=function(){delete this.layer_,t.prototype.disposeInternal.call(this)},e}(a.Z);var h=r(6178),p=r(3557),c=r(4765),f=r(8609),d=r(2005),y=r(766),g=r(7782),v=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),m=[],_=null;const x=function(t){function e(e){var r=t.call(this,e)||this;return r.container=null,r.renderedResolution,r.tempTransform=(0,c.Ue)(),r.pixelTransform=(0,c.Ue)(),r.inversePixelTransform=(0,c.Ue)(),r.context=null,r.containerReused=!1,r.pixelContext_=null,r.frameState=null,r}return v(e,t),e.prototype.getImageData=function(t,e,r){var n,i;_||((n=document.createElement("canvas")).width=1,n.height=1,_=n.getContext("2d")),_.clearRect(0,0,1,1);try{_.drawImage(t,e,r,1,1,0,0,1,1),i=_.getImageData(0,0,1,1).data}catch(t){return _=null,null}return i},e.prototype.getBackground=function(t){var e=this.getLayer().getBackground();return"function"==typeof e&&(e=e(t.viewState.resolution)),e||void 0},e.prototype.useContainer=function(t,e,r){var n,i,o=this.getLayer().getClassName();if(t&&t.className===o&&(!r||t&&t.style.backgroundColor&&(0,g.fS)((0,f._2)(t.style.backgroundColor),(0,f._2)(r)))&&(s=t.firstElementChild)instanceof HTMLCanvasElement&&(i=s.getContext("2d")),i&&i.canvas.style.transform===e?(this.container=t,this.context=i,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){(n=document.createElement("div")).className=o;var a=n.style;a.position="absolute",a.width="100%",a.height="100%";var s=(i=(0,y.E4)()).canvas;n.appendChild(s),(a=s.style).position="absolute",a.left="0",a.transformOrigin="top left",this.container=n,this.context=i}this.containerReused||!r||this.container.style.backgroundColor||(this.container.style.backgroundColor=r)},e.prototype.clipUnrotated=function(t,e,r){var n=(0,d.rL)(r),i=(0,d.Xv)(r),o=(0,d.w$)(r),a=(0,d.hC)(r);(0,c.nn)(e.coordinateToPixelTransform,n),(0,c.nn)(e.coordinateToPixelTransform,i),(0,c.nn)(e.coordinateToPixelTransform,o),(0,c.nn)(e.coordinateToPixelTransform,a);var s=this.inversePixelTransform;(0,c.nn)(s,n),(0,c.nn)(s,i),(0,c.nn)(s,o),(0,c.nn)(s,a),t.save(),t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()},e.prototype.dispatchRenderEvent_=function(t,e,r){var n=this.getLayer();if(n.hasListener(t)){var i=new h.Z(t,this.inversePixelTransform,r,e);n.dispatchEvent(i)}},e.prototype.preRender=function(t,e){this.frameState=e,this.dispatchRenderEvent_(p.Z.PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(p.Z.POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,r,n,i,o,a){var s=i/2,l=o/2,u=n/e,h=-u,p=-t[0]+a,f=-t[1];return(0,c.qC)(this.tempTransform,s,l,u,h,-r,p,f)},e.prototype.getDataAtPixel=function(t,e,r){var n=(0,c.nn)(this.inversePixelTransform,t.slice()),i=this.context,o=this.getLayer().getExtent();if(o){var a=(0,c.nn)(e.pixelToCoordinateTransform,t.slice());if(!(0,d.b8)(o,a))return null}var s,l=Math.round(n[0]),u=Math.round(n[1]),h=this.pixelContext_;if(!h){var p=document.createElement("canvas");p.width=1,p.height=1,h=p.getContext("2d"),this.pixelContext_=h}h.clearRect(0,0,1,1);try{h.drawImage(i.canvas,l,u,1,1,0,0,1,1),s=h.getImageData(0,0,1,1).data}catch(t){return"SecurityError"===t.name?(this.pixelContext_=null,new Uint8Array):s}return 0===s[3]?null:s},e.prototype.disposeInternal=function(){delete this.frameState,t.prototype.disposeInternal.call(this)},e}(u)},8237:(t,e,r)=>{"use strict";r.d(e,{Z:()=>m});var n,i=r(4244),o=r(7341),a=r(1528),s=r(8441),l=r(5816),u=r(1225),h=r(4765),p=r(273),c=r(2005),f=r(9786),d=r(4415),y=r(7782),g=r(7814),v=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const m=function(t){function e(e){var r=t.call(this,e)||this;return r.extentChanged=!0,r.renderedExtent_=null,r.renderedPixelRatio,r.renderedProjection=null,r.renderedRevision,r.renderedTiles=[],r.newTiles_=!1,r.tmpExtent=(0,c.lJ)(),r.tmpTileRange_=new s.Z(0,0,0,0),r}return v(e,t),e.prototype.isDrawableTile=function(t){var e=this.getLayer(),r=t.getState(),n=e.getUseInterimTilesOnError();return r==l.Z.LOADED||r==l.Z.EMPTY||r==l.Z.ERROR&&!n},e.prototype.getTile=function(t,e,r,n){var i=n.pixelRatio,o=n.viewState.projection,a=this.getLayer(),s=a.getSource().getTile(t,e,r,i,o);return s.getState()==l.Z.ERROR&&(a.getUseInterimTilesOnError()?a.getPreload()>0&&(this.newTiles_=!0):s.setState(l.Z.LOADED)),this.isDrawableTile(s)||(s=s.getInterimTile()),s},e.prototype.getData=function(t){var e=this.frameState;if(!e)return null;var r=this.getLayer(),n=(0,h.nn)(e.pixelToCoordinateTransform,t.slice()),i=r.getExtent();if(i&&!(0,c.b8)(i,n))return null;for(var s=e.pixelRatio,u=e.viewState.projection,p=e.viewState,f=r.getRenderSource(),d=f.getTileGridForProjection(p.projection),y=f.getTilePixelRatio(e.pixelRatio),v=d.getZForResolution(p.resolution);v>=d.getMinZoom();--v){var m=d.getTileCoordForCoordAndZ(n,v),_=f.getTile(v,m[1],m[2],s,u);if(!(_ instanceof o.Z||_ instanceof a.Z))return null;if(_.getState()===l.Z.LOADED){var x=d.getOrigin(v),b=(0,g.Pq)(d.getTileSize(v)),w=d.getResolution(v),C=Math.floor(y*((n[0]-x[0])/w-m[1]*b[0])),E=Math.floor(y*((x[1]-n[1])/w-m[2]*b[1])),S=Math.round(y*f.getGutterForProjection(p.projection));return this.getImageData(_.getImage(),C+S,E+S)}}return null},e.prototype.loadedTileCallback=function(e,r,n){return!!this.isDrawableTile(n)&&t.prototype.loadedTileCallback.call(this,e,r,n)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var r=t.layerStatesArray[t.layerIndex],n=t.viewState,i=n.projection,o=n.resolution,a=n.center,s=n.rotation,g=t.pixelRatio,v=this.getLayer(),m=v.getSource(),_=m.getRevision(),x=m.getTileGridForProjection(i),b=x.getZForResolution(o,m.zDirection),w=x.getResolution(b),C=t.extent,E=t.viewState.resolution,S=m.getTilePixelRatio(g),T=Math.round((0,c.dz)(C)/E*g),O=Math.round((0,c.Cr)(C)/E*g),P=r.extent&&(0,f.dY)(r.extent,i);P&&(C=(0,c.Ed)(C,(0,f.dY)(r.extent,i)));var R=w*T/2/S,I=w*O/2/S,M=[a[0]-R,a[1]-I,a[0]+R,a[1]+I],A=x.getTileRangeForExtentAndZ(C,b),k={};k[b]={};var F=this.createLoadedTileFinder(m,i,k),L=this.tmpExtent,Z=this.tmpTileRange_;this.newTiles_=!1;for(var D=s?(0,c.dY)(n.center,E,s,t.size):void 0,j=A.minX;j<=A.maxX;++j)for(var z=A.minY;z<=A.maxY;++z)if(!s||x.tileCoordIntersectsViewport([b,j,z],D)){var N=this.getTile(b,j,z,t);if(this.isDrawableTile(N)){var G=(0,d.sq)(this);if(N.getState()==l.Z.LOADED&&(k[b][N.tileCoord.toString()]=N,(ht=N.inTransition(G))&&1!==r.opacity&&(N.endTransition(G),ht=!1),this.newTiles_||!ht&&-1!==this.renderedTiles.indexOf(N)||(this.newTiles_=!0)),1===N.getAlpha(G,t.time))continue}var X=x.getTileCoordChildTileRange(N.tileCoord,Z,L),W=!1;X&&(W=F(b+1,X)),W||x.forEachTileCoordParentTileRange(N.tileCoord,F,Z,L)}var q=w/o*g/S;(0,h.qC)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/g,1/g,s,-T/2,-O/2);var Y=(0,h.BB)(this.pixelTransform);this.useContainer(e,Y,this.getBackground(t));var V=this.context,B=V.canvas;(0,h.nb)(this.inversePixelTransform,this.pixelTransform),(0,h.qC)(this.tempTransform,T/2,O/2,q,q,0,-T/2,-O/2),B.width!=T||B.height!=O?(B.width=T,B.height=O):this.containerReused||V.clearRect(0,0,T,O),P&&this.clipUnrotated(V,t,P),m.getInterpolate()||(0,p.f0)(V,u.$),this.preRender(V,t),this.renderedTiles.length=0;var U,K,H,J=Object.keys(k).map(Number);J.sort(y.kK),1!==r.opacity||this.containerReused&&!m.getOpaque(t.viewState.projection)?(U=[],K=[]):J=J.reverse();for(var $=J.length-1;$>=0;--$){var Q=J[$],tt=m.getTilePixelSize(Q,g,i),et=x.getResolution(Q)/w,rt=tt[0]*et*q,nt=tt[1]*et*q,it=x.getTileCoordForCoordAndZ((0,c.rL)(M),Q),ot=x.getTileCoordExtent(it),at=(0,h.nn)(this.tempTransform,[S*(ot[0]-M[0])/w,S*(M[3]-ot[3])/w]),st=S*m.getGutterForProjection(i),lt=k[Q];for(var ut in lt){var ht,pt=(N=lt[ut]).tileCoord,ct=it[1]-pt[1],ft=Math.round(at[0]-(ct-1)*rt),dt=it[2]-pt[2],yt=Math.round(at[1]-(dt-1)*nt),gt=ft-(j=Math.round(at[0]-ct*rt)),vt=yt-(z=Math.round(at[1]-dt*nt)),mt=b===Q,_t=!1;if(!(ht=mt&&1!==N.getAlpha((0,d.sq)(this),t.time)))if(U){H=[j,z,j+gt,z,j+gt,z+vt,j,z+vt];for(var xt=0,bt=U.length;xt<bt;++xt)if(b!==Q&&Q<K[xt]){var wt=U[xt];(0,c.kK)([j,z,j+gt,z+vt],[wt[0],wt[3],wt[4],wt[7]])&&(_t||(V.save(),_t=!0),V.beginPath(),V.moveTo(H[0],H[1]),V.lineTo(H[2],H[3]),V.lineTo(H[4],H[5]),V.lineTo(H[6],H[7]),V.moveTo(wt[6],wt[7]),V.lineTo(wt[4],wt[5]),V.lineTo(wt[2],wt[3]),V.lineTo(wt[0],wt[1]),V.clip())}U.push(H),K.push(Q)}else V.clearRect(j,z,gt,vt);this.drawTileImage(N,t,j,z,gt,vt,st,mt),U&&!ht?(_t&&V.restore(),this.renderedTiles.unshift(N)):this.renderedTiles.push(N),this.updateUsedTiles(t.usedTiles,m,N)}}return this.renderedRevision=_,this.renderedResolution=w,this.extentChanged=!this.renderedExtent_||!(0,c.fS)(this.renderedExtent_,M),this.renderedExtent_=M,this.renderedPixelRatio=g,this.renderedProjection=i,this.manageTilePyramid(t,m,x,g,i,C,b,v.getPreload()),this.scheduleExpireCache(t,m),this.postRender(V,t),r.extent&&V.restore(),(0,p.f0)(V,u.s),Y!==B.style.transform&&(B.style.transform=Y),this.container},e.prototype.drawTileImage=function(t,e,r,n,i,o,a,s){var l=this.getTileImage(t);if(l){var u=(0,d.sq)(this),h=e.layerStatesArray[e.layerIndex],p=h.opacity*(s?t.getAlpha(u,e.time):1),c=p!==this.context.globalAlpha;c&&(this.context.save(),this.context.globalAlpha=p),this.context.drawImage(l,a,a,l.width-2*a,l.height-2*a,r,n,i,o),c&&this.context.restore(),p!==h.opacity?e.animate=!0:s&&t.endTransition(u)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getTileImage=function(t){return t.getImage()},e.prototype.scheduleExpireCache=function(t,e){if(e.canExpireCache()){var r=function(t,e,r){var n=(0,d.sq)(t);n in r.usedTiles&&t.expireCache(r.viewState.projection,r.usedTiles[n])}.bind(null,e);t.postRenderFunctions.push(r)}},e.prototype.updateUsedTiles=function(t,e,r){var n=(0,d.sq)(e);n in t||(t[n]={}),t[n][r.getKey()]=!0},e.prototype.manageTilePyramid=function(t,e,r,n,i,o,a,s,u){var h=(0,d.sq)(e);h in t.wantedTiles||(t.wantedTiles[h]={});var p,f,y,g,v,m,_=t.wantedTiles[h],x=t.tileQueue,b=r.getMinZoom(),w=t.viewState.rotation,C=w?(0,c.dY)(t.viewState.center,t.viewState.resolution,w,t.size):void 0,E=0;for(m=b;m<=a;++m)for(f=r.getTileRangeForExtentAndZ(o,m,f),y=r.getResolution(m),g=f.minX;g<=f.maxX;++g)for(v=f.minY;v<=f.maxY;++v)w&&!r.tileCoordIntersectsViewport([m,g,v],C)||(a-m<=s?(++E,(p=e.getTile(m,g,v,n,i)).getState()==l.Z.IDLE&&(_[p.getKey()]=!0,x.isKeyQueued(p.getKey())||x.enqueue([p,h,r.getTileCoordCenter(p.tileCoord),y])),void 0!==u&&u(p)):e.useTile(m,g,v,i));e.updateCacheSize(E,i)},e}(i.Z)},1225:(t,e,r)=>{"use strict";r.d(e,{$:()=>n,s:()=>i});var n={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},i={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0}},1248:(t,e,r)=>{"use strict";r.d(e,{Pn:()=>u,Qz:()=>l,eR:()=>a,se:()=>s});var n=r(8260),i=r(4415),o={Point:function(t,e,r,i,o){var a,s=r.getImage(),l=r.getText();if(s){if(s.getImageState()!=n.Z.LOADED)return;var u=t;if(o){var h=s.getDeclutterMode();if("none"!==h)if(u=o,"obstacle"===h){var p=t.getBuilder(r.getZIndex(),"Image");p.setImageStyle(s,a),p.drawPoint(e,i)}else l&&l.getText()&&(a={})}var c=u.getBuilder(r.getZIndex(),"Image");c.setImageStyle(s,a),c.drawPoint(e,i)}if(l&&l.getText()){var f=t;o&&(f=o);var d=f.getBuilder(r.getZIndex(),"Text");d.setTextStyle(l,a),d.drawText(e,i)}},LineString:function(t,e,r,n,i){var o=r.getStroke();if(o){var a=t.getBuilder(r.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawLineString(e,n)}var s=r.getText();if(s&&s.getText()){var l=(i||t).getBuilder(r.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,n)}},Polygon:function(t,e,r,n,i){var o=r.getFill(),a=r.getStroke();if(o||a){var s=t.getBuilder(r.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawPolygon(e,n)}var l=r.getText();if(l&&l.getText()){var u=(i||t).getBuilder(r.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,n)}},MultiPoint:function(t,e,r,i,o){var a,s=r.getImage(),l=r.getText();if(s){if(s.getImageState()!=n.Z.LOADED)return;var u=t;if(o){var h=s.getDeclutterMode();if("none"!==h)if(u=o,"obstacle"===h){var p=t.getBuilder(r.getZIndex(),"Image");p.setImageStyle(s,a),p.drawMultiPoint(e,i)}else l&&l.getText()&&(a={})}var c=u.getBuilder(r.getZIndex(),"Image");c.setImageStyle(s,a),c.drawMultiPoint(e,i)}if(l&&l.getText()){var f=t;o&&(f=o);var d=f.getBuilder(r.getZIndex(),"Text");d.setTextStyle(l,a),d.drawText(e,i)}},MultiLineString:function(t,e,r,n,i){var o=r.getStroke();if(o){var a=t.getBuilder(r.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawMultiLineString(e,n)}var s=r.getText();if(s&&s.getText()){var l=(i||t).getBuilder(r.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,n)}},MultiPolygon:function(t,e,r,n,i){var o=r.getFill(),a=r.getStroke();if(a||o){var s=t.getBuilder(r.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawMultiPolygon(e,n)}var l=r.getText();if(l&&l.getText()){var u=(i||t).getBuilder(r.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,n)}},GeometryCollection:function(t,e,r,n,i){var a,s,l=e.getGeometriesArray();for(a=0,s=l.length;a<s;++a)(0,o[l[a].getType()])(t,l[a],r,n,i)},Circle:function(t,e,r,n,i){var o=r.getFill(),a=r.getStroke();if(o||a){var s=t.getBuilder(r.getZIndex(),"Circle");s.setFillStrokeStyle(o,a),s.drawCircle(e,n)}var l=r.getText();if(l&&l.getText()){var u=(i||t).getBuilder(r.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,n)}}};function a(t,e){return parseInt((0,i.sq)(t),10)-parseInt((0,i.sq)(e),10)}function s(t,e){var r=l(t,e);return r*r}function l(t,e){return.5*t/e}function u(t,e,r,i,a,s,l){var u=!1,p=r.getImage();if(p){var c=p.getImageState();c==n.Z.LOADED||c==n.Z.ERROR?p.unlistenImageChange(a):(c==n.Z.IDLE&&p.load(),p.listenImageChange(a),u=!0)}return function(t,e,r,n,i,a){var s=r.getGeometryFunction()(e);if(s){var l=s.simplifyTransformed(n,i);r.getRenderer()?h(t,l,r,e):(0,o[l.getType()])(t,l,r,e,a)}}(t,e,r,i,s,l),u}function h(t,e,r,n){if("GeometryCollection"!=e.getType())t.getBuilder(r.getZIndex(),"Default").drawCustom(e,n,r.getRenderer(),r.getHitDetectionRenderer());else for(var i=e.getGeometries(),o=0,a=i.length;o<a;++o)h(t,i[o],r,n)}},1528:(t,e,r)=>{"use strict";r.d(e,{Z:()=>w});var n=r(6443),i=r(7758),o=r(3102),a=r(5816),s=r(2005),l=r(9786),u=r(7344);const h=function(){function t(t,e,r,n,i,o){this.sourceProj_=t,this.targetProj_=e;var a={},h=(0,l.Ck)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return a[e]||(a[e]=h(t)),a[e]},this.maxSourceExtent_=n,this.errorThresholdSquared_=i*i,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!n&&!!this.sourceProj_.getExtent()&&(0,s.dz)(n)==(0,s.dz)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,s.dz)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,s.dz)(this.targetProj_.getExtent()):null;var p=(0,s.rL)(r),c=(0,s.Xv)(r),f=(0,s.w$)(r),d=(0,s.hC)(r),y=this.transformInv_(p),g=this.transformInv_(c),v=this.transformInv_(f),m=this.transformInv_(d),_=10+(o?Math.max(0,Math.ceil((0,u.k3)((0,s.bg)(r)/(o*o*256*256)))):0);if(this.addQuad_(p,c,f,d,y,g,v,m,_),this.wrapsXInSource_){var x=1/0;this.triangles_.forEach((function(t,e,r){x=Math.min(x,t.source[0][0],t.source[1][0],t.source[2][0])})),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-x>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-x>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-x>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-x>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var r=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-r<this.sourceWorldWidth_/2&&(t.source=e)}}.bind(this))}a={}}return t.prototype.addTriangle_=function(t,e,r,n,i,o){this.triangles_.push({source:[n,i,o],target:[t,e,r]})},t.prototype.addQuad_=function(t,e,r,n,i,o,a,l,h){var p=(0,s.hI)([i,o,a,l]),c=this.sourceWorldWidth_?(0,s.dz)(p)/this.sourceWorldWidth_:null,f=this.sourceWorldWidth_,d=this.sourceProj_.canWrapX()&&c>.5&&c<1,y=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var g=(0,s.hI)([t,e,r,n]);y=(0,s.dz)(g)/this.targetWorldWidth_>.25||y}!d&&this.sourceProj_.isGlobal()&&c&&(y=c>.25||y)}if(!(!y&&this.maxSourceExtent_&&isFinite(p[0])&&isFinite(p[1])&&isFinite(p[2])&&isFinite(p[3]))||(0,s.kK)(p,this.maxSourceExtent_)){var v=0;if(!(y||isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(l[0])&&isFinite(l[1])))if(h>0)y=!0;else if(1!=(v=(isFinite(i[0])&&isFinite(i[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(a[0])&&isFinite(a[1])?0:2)+(isFinite(l[0])&&isFinite(l[1])?0:1))&&2!=v&&4!=v&&8!=v)return;if(h>0){if(!y){var m=[(t[0]+r[0])/2,(t[1]+r[1])/2],_=this.transformInv_(m),x=void 0;x=d?((0,u.$W)(i[0],f)+(0,u.$W)(a[0],f))/2-(0,u.$W)(_[0],f):(i[0]+a[0])/2-_[0];var b=(i[1]+a[1])/2-_[1];y=x*x+b*b>this.errorThresholdSquared_}if(y){if(Math.abs(t[0]-r[0])<=Math.abs(t[1]-r[1])){var w=[(e[0]+r[0])/2,(e[1]+r[1])/2],C=this.transformInv_(w),E=[(n[0]+t[0])/2,(n[1]+t[1])/2],S=this.transformInv_(E);this.addQuad_(t,e,w,E,i,o,C,S,h-1),this.addQuad_(E,w,r,n,S,C,a,l,h-1)}else{var T=[(t[0]+e[0])/2,(t[1]+e[1])/2],O=this.transformInv_(T),P=[(r[0]+n[0])/2,(r[1]+n[1])/2],R=this.transformInv_(P);this.addQuad_(t,T,P,n,i,O,R,l,h-1),this.addQuad_(T,e,r,P,O,o,a,R,h-1)}return}}if(d){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&v)&&this.addTriangle_(t,r,n,i,a,l),0==(14&v)&&this.addTriangle_(t,r,e,i,a,o),v&&(0==(13&v)&&this.addTriangle_(e,n,t,o,l,i),0==(7&v)&&this.addTriangle_(e,n,r,o,l,a))}},t.prototype.calculateSourceExtent=function(){var t=(0,s.lJ)();return this.triangles_.forEach((function(e,r,n){var i=e.source;(0,s.Wj)(t,i[0]),(0,s.Wj)(t,i[1]),(0,s.Wj)(t,i[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}();var p,c=r(1225),f=r(273),d=r(766),y=[];function g(t,e,r,n,i){t.beginPath(),t.moveTo(0,0),t.lineTo(e,r),t.lineTo(n,i),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,n)+1,Math.max(r,i)),t.restore()}function v(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function m(t,e,r,n){var i=(0,l.vs)(r,e,t),o=(0,l._Q)(e,n,r),a=e.getMetersPerUnit();void 0!==a&&(o*=a);var u=t.getMetersPerUnit();void 0!==u&&(o/=u);var h=t.getExtent();if(!h||(0,s.b8)(h,i)){var p=(0,l._Q)(t,o,i)/o;isFinite(p)&&p>0&&(o/=p)}return o}var _,x=r(5310),b=(_=function(t,e){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},_(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const w=function(t){function e(e,r,i,o,l,p,c,f,d,y,g,v){var _=t.call(this,l,a.Z.IDLE,{interpolate:!!v})||this;_.renderEdges_=void 0!==g&&g,_.pixelRatio_=c,_.gutter_=f,_.canvas_=null,_.sourceTileGrid_=r,_.targetTileGrid_=o,_.wrappedTileCoord_=p||l,_.sourceTiles_=[],_.sourcesListenerKeys_=null,_.sourceZ_=0;var x=o.getTileCoordExtent(_.wrappedTileCoord_),b=_.targetTileGrid_.getExtent(),w=_.sourceTileGrid_.getExtent(),C=b?(0,s.Ed)(x,b):x;if(0===(0,s.bg)(C))return _.state=a.Z.EMPTY,_;var E=e.getExtent();E&&(w=w?(0,s.Ed)(w,E):E);var S=o.getResolution(_.wrappedTileCoord_[0]),T=function(t,e,r,n){var i=(0,s.qg)(r),o=m(t,e,i,n);return(!isFinite(o)||o<=0)&&(0,s.H6)(r,(function(r){return o=m(t,e,r,n),isFinite(o)&&o>0})),o}(e,i,C,S);if(!isFinite(T)||T<=0)return _.state=a.Z.EMPTY,_;var O=void 0!==y?y:n.m;if(_.triangulation_=new h(e,i,C,w,T*O,S),0===_.triangulation_.getTriangles().length)return _.state=a.Z.EMPTY,_;_.sourceZ_=r.getZForResolution(T);var P=_.triangulation_.calculateSourceExtent();if(w&&(e.canWrapX()?(P[1]=(0,u.uZ)(P[1],w[1],w[3]),P[3]=(0,u.uZ)(P[3],w[1],w[3])):P=(0,s.Ed)(P,w)),(0,s.bg)(P)){for(var R=r.getTileRangeForExtentAndZ(P,_.sourceZ_),I=R.minX;I<=R.maxX;I++)for(var M=R.minY;M<=R.maxY;M++){var A=d(_.sourceZ_,I,M,c);A&&_.sourceTiles_.push(A)}0===_.sourceTiles_.length&&(_.state=a.Z.EMPTY)}else _.state=a.Z.EMPTY;return _}return b(e,t),e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,r,n){e&&e.getState()==a.Z.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=a.Z.ERROR;else{var e=this.wrappedTileCoord_[0],r=this.targetTileGrid_.getTileSize(e),n="number"==typeof r?r:r[0],i="number"==typeof r?r:r[1],o=this.targetTileGrid_.getResolution(e),l=this.sourceTileGrid_.getResolution(this.sourceZ_),h=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(t,e,r,n,i,o,a,l,h,m,_,x){var b=(0,d.E4)(Math.round(r*t),Math.round(r*e),y);if(x||(0,f.f0)(b,c.$),0===h.length)return b.canvas;function w(t){return Math.round(t*r)/r}b.scale(r,r),b.globalCompositeOperation="lighter";var C=(0,s.lJ)();h.forEach((function(t,e,r){(0,s.l7)(C,t.extent)}));var E=(0,s.dz)(C),S=(0,s.Cr)(C),T=(0,d.E4)(Math.round(r*E/n),Math.round(r*S/n));x||(0,f.f0)(T,c.$);var O=r/n;h.forEach((function(t,e,r){var n=t.extent[0]-C[0],i=-(t.extent[3]-C[3]),o=(0,s.dz)(t.extent),a=(0,s.Cr)(t.extent);t.image.width>0&&t.image.height>0&&T.drawImage(t.image,m,m,t.image.width-2*m,t.image.height-2*m,n*O,i*O,o*O,a*O)}));var P=(0,s.rL)(a);return l.getTriangles().forEach((function(t,e,i){var a=t.source,s=t.target,l=a[0][0],h=a[0][1],c=a[1][0],f=a[1][1],d=a[2][0],y=a[2][1],m=w((s[0][0]-P[0])/o),_=w(-(s[0][1]-P[1])/o),E=w((s[1][0]-P[0])/o),S=w(-(s[1][1]-P[1])/o),O=w((s[2][0]-P[0])/o),R=w(-(s[2][1]-P[1])/o),I=l,M=h;l=0,h=0;var A=[[c-=I,f-=M,0,0,E-m],[d-=I,y-=M,0,0,O-m],[0,0,c,f,S-_],[0,0,d,y,R-_]],k=(0,u.SV)(A);if(k){if(b.save(),b.beginPath(),function(){if(void 0===p){var t=document.createElement("canvas").getContext("2d");t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",g(t,4,5,4,0),g(t,4,5,0,5);var e=t.getImageData(0,0,3,3).data;p=v(e,0)||v(e,4)||v(e,8)}return p}()||!x){b.moveTo(E,S);for(var F=m-E,L=_-S,Z=0;Z<4;Z++)b.lineTo(E+w((Z+1)*F/4),S+w(Z*L/3)),3!=Z&&b.lineTo(E+w((Z+1)*F/4),S+w((Z+1)*L/3));b.lineTo(O,R)}else b.moveTo(E,S),b.lineTo(m,_),b.lineTo(O,R);b.clip(),b.transform(k[0],k[2],k[1],k[3],m,_),b.translate(C[0]-I,C[3]-M),b.scale(n/r,-n/r),b.drawImage(T.canvas,0,0),b.restore()}})),_&&(b.save(),b.globalCompositeOperation="source-over",b.strokeStyle="black",b.lineWidth=1,l.getTriangles().forEach((function(t,e,r){var n=t.target,i=(n[0][0]-P[0])/o,a=-(n[0][1]-P[1])/o,s=(n[1][0]-P[0])/o,l=-(n[1][1]-P[1])/o,u=(n[2][0]-P[0])/o,h=-(n[2][1]-P[1])/o;b.beginPath(),b.moveTo(s,l),b.lineTo(i,a),b.lineTo(u,h),b.closePath(),b.stroke()})),b.restore()),b.canvas}(n,i,this.pixelRatio_,l,this.sourceTileGrid_.getExtent(),o,h,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=a.Z.LOADED}this.changed()},e.prototype.load=function(){if(this.state==a.Z.IDLE){this.state=a.Z.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,r,n){var o=e.getState();if(o==a.Z.IDLE||o==a.Z.LOADING){t++;var s=(0,x.oL)(e,i.Z.CHANGE,(function(r){var n=e.getState();n!=a.Z.LOADED&&n!=a.Z.ERROR&&n!=a.Z.EMPTY||((0,x.bN)(s),0==--t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(s)}}.bind(this)),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(t,e,r){t.getState()==a.Z.IDLE&&t.load()}))}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(x.bN),this.sourcesListenerKeys_=null},e.prototype.release=function(){this.canvas_&&((0,d.jy)(this.canvas_.getContext("2d")),y.push(this.canvas_),this.canvas_=null),t.prototype.release.call(this)},e}(o.Z)},6443:(t,e,r)=>{"use strict";r.d(e,{j:()=>i,m:()=>n});var n=.5,i=!0},6123:(t,e,r)=>{"use strict";r.d(e,{Gw:()=>s,YP:()=>o,gE:()=>a,h$:()=>i});var n=r(7344);function i(t){return void 0!==t?0:void 0}function o(t){return void 0!==t?t:void 0}function a(t){var e=2*Math.PI/t;return function(t,r){return r?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function s(t){var e=t||(0,n.Yr)(5);return function(t,r){return r?t:void 0!==t?Math.abs(t)<=e?0:t:void 0}}},7814:(t,e,r)=>{"use strict";function n(t){return t[0]>0&&t[1]>0}function i(t,e,r){return void 0===r&&(r=[0,0]),r[0]=t[0]*e+.5|0,r[1]=t[1]*e+.5|0,r}function o(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}r.d(e,{Pq:()=>o,bA:()=>i,py:()=>n})},266:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});var n,i=r(12),o=r(4415),a=r(9786),s=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function l(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}const u=function(t){function e(e){var r=t.call(this)||this;r.projection=(0,a.U2)(e.projection),r.attributions_=l(e.attributions),r.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,r.loading=!1,r.state_=void 0!==e.state?e.state:"ready",r.wrapX_=void 0!==e.wrapX&&e.wrapX,r.interpolate_=!!e.interpolate,r.viewResolver=null,r.viewRejector=null;var n=r;return r.viewPromise_=new Promise((function(t,e){n.viewResolver=t,n.viewRejector=e})),r}return s(e,t),e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection},e.prototype.getResolutions=function(){return(0,o.O3)()},e.prototype.getView=function(){return this.viewPromise_},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.getInterpolate=function(){return this.interpolate_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=l(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(i.Z)},8275:(t,e,r)=>{"use strict";r.d(e,{Z:()=>T});var n=r(6193),i=r(5917),o=r(7288),a=r(7758),s=r(1846),l=r(53),u=r(2005),h=r(4415),p=r(273);const c=function(){function t(t){this.rbush_=new l(t),this.items_={}}return t.prototype.insert=function(t,e){var r={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(r),this.items_[(0,h.sq)(e)]=r},t.prototype.load=function(t,e){for(var r=new Array(e.length),n=0,i=e.length;n<i;n++){var o=t[n],a=e[n],s={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:a};r[n]=s,this.items_[(0,h.sq)(a)]=s}this.rbush_.load(r)},t.prototype.remove=function(t){var e=(0,h.sq)(t),r=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(r)},t.prototype.update=function(t,e){var r=this.items_[(0,h.sq)(e)],n=[r.minX,r.minY,r.maxX,r.maxY];(0,u.fS)(n,t)||(this.remove(e),this.insert(t,e))},t.prototype.getAll=function(){return this.rbush_.all().map((function(t){return t.value}))},t.prototype.getInExtent=function(t){var e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(e).map((function(t){return t.value}))},t.prototype.forEach=function(t){return this.forEach_(this.getAll(),t)},t.prototype.forEachInExtent=function(t,e){return this.forEach_(this.getInExtent(t),e)},t.prototype.forEach_=function(t,e){for(var r,n=0,i=t.length;n<i;n++)if(r=e(t[n]))return r;return r},t.prototype.isEmpty=function(){return(0,p.xb)(this.items_)},t.prototype.clear=function(){this.rbush_.clear(),this.items_={}},t.prototype.getExtent=function(t){var e=this.rbush_.toJSON();return(0,u.T9)(e.minX,e.minY,e.maxX,e.maxY,t)},t.prototype.concat=function(t){for(var e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]},t}();var f=r(266);const d="addfeature",y="removefeature";var g=r(1998);function v(t,e){return[[-1/0,-1/0,1/0,1/0]]}r(9786);var m,_=r(9751),x=r(7782),b=r(5310),w=r(3618),C=(m=function(t,e){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},m(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),E=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.feature=r,i.features=n,i}return C(e,t),e}(o.ZP),S=function(t){function e(e){var r=this,i=e||{};(r=t.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===i.wrapX||i.wrapX})||this).on,r.once,r.un,r.loader_=g.Zn,r.format_=i.format,r.overlaps_=void 0===i.overlaps||i.overlaps,r.url_=i.url,void 0!==i.loader?r.loader_=i.loader:void 0!==r.url_&&((0,_.h)(r.format_,7),r.loader_=(0,w.Be)(r.url_,r.format_)),r.strategy_=void 0!==i.strategy?i.strategy:v;var o,a,s=void 0===i.useSpatialIndex||i.useSpatialIndex;return r.featuresRtree_=s?new c:null,r.loadedExtentsRtree_=new c,r.loadingExtentsCount_=0,r.nullGeometryFeatures_={},r.idIndex_={},r.uidIndex_={},r.featureChangeKeys_={},r.featuresCollection_=null,Array.isArray(i.features)?a=i.features:i.features&&(a=(o=i.features).getArray()),s||void 0!==o||(o=new n.Z(a)),void 0!==a&&r.addFeaturesInternal(a),void 0!==o&&r.bindFeaturesCollection_(o),r}return C(e,t),e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var e=(0,h.sq)(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var r=t.getGeometry();if(r){var n=r.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(n,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new E(d,t))}else this.featuresCollection_&&this.featuresCollection_.remove(t)},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[(0,b.oL)(e,a.Z.CHANGE,this.handleFeatureChange_,this),(0,b.oL)(e,s.Z.PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var r=!0,n=e.getId();return void 0!==n&&(n.toString()in this.idIndex_?r=!1:this.idIndex_[n.toString()]=e),r&&((0,_.h)(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),r},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],r=[],n=[],i=0,o=t.length;i<o;i++){var a=t[i],s=(0,h.sq)(a);this.addToIndex_(s,a)&&r.push(a)}i=0;for(var l=r.length;i<l;i++){a=r[i],s=(0,h.sq)(a),this.setupChangeEvents_(s,a);var u=a.getGeometry();if(u){var p=u.getExtent();e.push(p),n.push(a)}else this.nullGeometryFeatures_[s]=a}if(this.featuresRtree_&&this.featuresRtree_.load(e,n),this.hasListener(d)){i=0;for(var c=r.length;i<c;i++)this.dispatchEvent(new E(d,r[i]))}},e.prototype.bindFeaturesCollection_=function(t){var e=!1;this.addEventListener(d,(function(r){e||(e=!0,t.push(r.feature),e=!1)})),this.addEventListener(y,(function(r){e||(e=!0,t.remove(r.feature),e=!1)})),t.addEventListener(i.Z.ADD,function(t){e||(e=!0,this.addFeature(t.element),e=!1)}.bind(this)),t.addEventListener(i.Z.REMOVE,function(t){e||(e=!0,this.removeFeature(t.element),e=!1)}.bind(this)),this.featuresCollection_=t},e.prototype.clear=function(t){if(t){for(var e in this.featureChangeKeys_)this.featureChangeKeys_[e].forEach(b.bN);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var r=function(t){this.removeFeatureInternal(t)}.bind(this);for(var n in this.featuresRtree_.forEach(r),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[n])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var i=new E("clear");this.dispatchEvent(i),this.changed()},e.prototype.forEachFeature=function(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},e.prototype.forEachFeatureAtCoordinateDirect=function(t,e){var r=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(r,(function(r){return r.getGeometry().intersectsCoordinate(t)?e(r):void 0}))},e.prototype.forEachFeatureInExtent=function(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},e.prototype.forEachFeatureIntersectingExtent=function(t,e){return this.forEachFeatureInExtent(t,(function(r){if(r.getGeometry().intersectsExtent(t)){var n=e(r);if(n)return n}}))},e.prototype.getFeaturesCollection=function(){return this.featuresCollection_},e.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),(0,p.xb)(this.nullGeometryFeatures_)||(0,x.l7)(t,(0,p.KX)(this.nullGeometryFeatures_))),t},e.prototype.getFeaturesAtCoordinate=function(t){var e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e},e.prototype.getFeaturesInExtent=function(t,e){var r=this;if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);var n=(0,u.MV)(t,e);return[].concat.apply([],n.map((function(t){return r.featuresRtree_.getInExtent(t)})))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},e.prototype.getClosestFeatureToCoordinate=function(t,e){var r=t[0],n=t[1],i=null,o=[NaN,NaN],a=1/0,s=[-1/0,-1/0,1/0,1/0],l=e||g.uX;return this.featuresRtree_.forEachInExtent(s,(function(t){if(l(t)){var e=t.getGeometry(),u=a;if((a=e.closestPointXY(r,n,o,a))<u){i=t;var h=Math.sqrt(a);s[0]=r-h,s[1]=n-h,s[2]=r+h,s[3]=n+h}}})),i},e.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},e.prototype.getFeatureById=function(t){var e=this.idIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getFeatureByUid=function(t){var e=this.uidIndex_[t];return void 0!==e?e:null},e.prototype.getFormat=function(){return this.format_},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.getUrl=function(){return this.url_},e.prototype.handleFeatureChange_=function(t){var e=t.target,r=(0,h.sq)(e),n=e.getGeometry();if(n){var i=n.getExtent();r in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[r],this.featuresRtree_&&this.featuresRtree_.insert(i,e)):this.featuresRtree_&&this.featuresRtree_.update(i,e)}else r in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[r]=e);var o=e.getId();if(void 0!==o){var a=o.toString();this.idIndex_[a]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[a]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[r]=e;this.changed(),this.dispatchEvent(new E("changefeature",e))},e.prototype.hasFeature=function(t){var e=t.getId();return void 0!==e?e in this.idIndex_:(0,h.sq)(t)in this.uidIndex_},e.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&(0,p.xb)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()},e.prototype.loadFeatures=function(t,e,r){for(var n=this.loadedExtentsRtree_,i=this.strategy_(t,e,r),o=function(t,o){var s=i[t];n.forEachInExtent(s,(function(t){return(0,u.r4)(t.extent,s)}))||(++a.loadingExtentsCount_,a.dispatchEvent(new E("featuresloadstart")),a.loader_.call(a,s,e,r,function(t){--this.loadingExtentsCount_,this.dispatchEvent(new E("featuresloadend",void 0,t))}.bind(a),function(){--this.loadingExtentsCount_,this.dispatchEvent(new E("featuresloaderror"))}.bind(a)),n.insert(s,{extent:s.slice()}))},a=this,s=0,l=i.length;s<l;++s)o(s);this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),t.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var e,r=this.loadedExtentsRtree_;r.forEachInExtent(t,(function(r){if((0,u.fS)(r.extent,t))return e=r,!0})),e&&r.remove(e)},e.prototype.removeFeature=function(t){if(t){var e=(0,h.sq)(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t)&&this.changed()}},e.prototype.removeFeatureInternal=function(t){var e=(0,h.sq)(t),r=this.featureChangeKeys_[e];if(r){r.forEach(b.bN),delete this.featureChangeKeys_[e];var n=t.getId();return void 0!==n&&delete this.idIndex_[n.toString()],delete this.uidIndex_[e],this.dispatchEvent(new E(y,t)),t}},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var r in this.idIndex_)if(this.idIndex_[r]===t){delete this.idIndex_[r],e=!0;break}return e},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){(0,_.h)(this.format_,7),this.url_=t,this.setLoader((0,w.Be)(t,this.format_))},e}(f.Z);const T=S},8926:(t,e,r)=>{"use strict";r.d(e,{Z:()=>f});var n,i=r(8260),o=r(7589),a=r(8609),s=r(6808),l=r(766),u=r(9680),h=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const p=function(t){function e(e){var r=this,n=void 0!==e.rotateWithView&&e.rotateWithView;return(r=t.call(this,{opacity:1,rotateWithView:n,rotation:void 0!==e.rotation?e.rotation:0,scale:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0],declutterMode:e.declutterMode})||this).canvas_=void 0,r.hitDetectionCanvas_=null,r.fill_=void 0!==e.fill?e.fill:null,r.origin_=[0,0],r.points_=e.points,r.radius_=void 0!==e.radius?e.radius:e.radius1,r.radius2_=e.radius2,r.angle_=void 0!==e.angle?e.angle:0,r.stroke_=void 0!==e.stroke?e.stroke:null,r.size_=null,r.renderOptions_=null,r.render(),r}return h(e,t),e.prototype.clone=function(){var t=this.getScale(),r=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return r.setOpacity(this.getOpacity()),r},e.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var e=this.getDisplacement();return[t[0]/2-e[0],t[1]/2+e[1]]},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.setFill=function(t){this.fill_=t,this.render()},e.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},e.prototype.getImage=function(t){var e=this.canvas_[t];if(!e){var r=this.renderOptions_,n=(0,l.E4)(r.size*t,r.size*t);this.draw_(r,n,t),e=n.canvas,this.canvas_[t]=e}return e},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.size_},e.prototype.getImageState=function(){return i.Z.LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.setStroke=function(t){this.stroke_=t,this.render()},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.calculateLineJoinSize_=function(t,e,r){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;var n=this.radius_,i=void 0===this.radius2_?n:this.radius2_;if(n<i){var o=n;n=i,i=o}var a=void 0===this.radius2_?this.points_:2*this.points_,s=2*Math.PI/a,l=i*Math.sin(s),u=n-Math.sqrt(i*i-l*l),h=Math.sqrt(l*l+u*u),p=h/l;if("miter"===t&&p<=r)return p*e;var c=e/2/p,f=e/2*(u/h),d=Math.sqrt((n+c)*(n+c)+f*f)-n;if(void 0===this.radius2_||"bevel"===t)return 2*d;var y=n*Math.sin(s),g=i-Math.sqrt(n*n-y*y),v=Math.sqrt(y*y+g*g)/y;if(v<=r){var m=v*e/2-i-n;return 2*Math.max(d,m)}return 2*d},e.prototype.createRenderOptions=function(){var t,e=u.rc,r=0,n=null,i=0,o=0;this.stroke_&&(null===(t=this.stroke_.getColor())&&(t=u.Tx),t=(0,s.y)(t),void 0===(o=this.stroke_.getWidth())&&(o=u.yC),n=this.stroke_.getLineDash(),i=this.stroke_.getLineDashOffset(),void 0===(e=this.stroke_.getLineJoin())&&(e=u.rc),void 0===(r=this.stroke_.getMiterLimit())&&(r=u.V4));var a=this.calculateLineJoinSize_(e,o,r),l=Math.max(this.radius_,this.radius2_||0);return{strokeStyle:t,strokeWidth:o,size:Math.ceil(2*l+a),lineDash:n,lineDashOffset:i,lineJoin:e,miterLimit:r}},e.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var t=this.renderOptions_.size;this.canvas_={},this.size_=[t,t]},e.prototype.draw_=function(t,e,r){if(e.scale(r,r),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){var n=this.fill_.getColor();null===n&&(n=u.bL),e.fillStyle=(0,s.y)(n),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,e.setLineDash&&t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())},e.prototype.createHitDetectionCanvas_=function(t){if(this.fill_){var e=this.fill_.getColor(),r=0;if("string"==typeof e&&(e=(0,a._2)(e)),null===e?r=1:Array.isArray(e)&&(r=4===e.length?e[3]:1),0===r){var n=(0,l.E4)(t.size,t.size);this.hitDetectionCanvas_=n.canvas,this.drawHitDetectionCanvas_(t,n)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},e.prototype.createPath_=function(t){var e=this.points_,r=this.radius_;if(e===1/0)t.arc(0,0,r,0,2*Math.PI);else{var n=void 0===this.radius2_?r:this.radius2_;void 0!==this.radius2_&&(e*=2);for(var i=this.angle_-Math.PI/2,o=2*Math.PI/e,a=0;a<e;a++){var s=i+a*o,l=a%2==0?r:n;t.lineTo(l*Math.cos(s),l*Math.sin(s))}t.closePath()}},e.prototype.drawHitDetectionCanvas_=function(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=u.bL,e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())},e}(o.Z);var c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const f=function(t){function e(e){var r=e||{};return t.call(this,{points:1/0,fill:r.fill,radius:r.radius,stroke:r.stroke,scale:void 0!==r.scale?r.scale:1,rotation:void 0!==r.rotation?r.rotation:0,rotateWithView:void 0!==r.rotateWithView&&r.rotateWithView,displacement:void 0!==r.displacement?r.displacement:[0,0],declutterMode:r.declutterMode})||this}return c(e,t),e.prototype.clone=function(){var t=this.getScale(),r=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return r.setOpacity(this.getOpacity()),r},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(p)},4573:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0})},t.prototype.getColor=function(){return this.color_},t.prototype.setColor=function(t){this.color_=t},t}()},6278:(t,e,r)=>{"use strict";r.d(e,{Z:()=>E});var n=r(7758),i=r(6951);const o="bottom-left",a="bottom-right",s="top-left",l="top-right";var u,h=r(8260),p=r(7589),c=r(8609),f=r(9751),d=r(8408),y=r(766),g=r(6929),v=r(3458),m=(u=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},u(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),_=null,x=function(t){function e(e,r,n,i,o,a){var s=t.call(this)||this;return s.hitDetectionImage_=null,s.image_=e||new Image,null!==i&&(s.image_.crossOrigin=i),s.canvas_={},s.color_=a,s.unlisten_=null,s.imageState_=o,s.size_=n,s.src_=r,s.tainted_,s}return m(e,t),e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===h.Z.LOADED){_||(_=(0,y.E4)(1,1)),_.drawImage(this.image_,0,0);try{_.getImageData(0,0,1,1),this.tainted_=!1}catch(t){_=null,this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(n.Z.CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=h.Z.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=h.Z.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_},e.prototype.getPixelRatio=function(t){return this.replaceColor_(t),this.canvas_[t]?t:1},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var t=this.size_[0],e=this.size_[1],r=(0,y.E4)(t,e);r.fillRect(0,0,t,e),this.hitDetectionImage_=r.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==h.Z.IDLE){this.imageState_=h.Z.LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=(0,v.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(t){if(this.color_&&!this.canvas_[t]&&this.imageState_===h.Z.LOADED){var e=document.createElement("canvas");this.canvas_[t]=e,e.width=Math.ceil(this.image_.width*t),e.height=Math.ceil(this.image_.height*t);var r=e.getContext("2d");if(r.scale(t,t),r.drawImage(this.image_,0,0),r.globalCompositeOperation="multiply","multiply"===r.globalCompositeOperation||this.isTainted_())r.fillStyle=(0,c.XC)(this.color_),r.fillRect(0,0,e.width/t,e.height/t),r.globalCompositeOperation="destination-in",r.drawImage(this.image_,0,0);else{for(var n=r.getImageData(0,0,e.width,e.height),i=n.data,o=this.color_[0]/255,a=this.color_[1]/255,s=this.color_[2]/255,l=this.color_[3],u=0,p=i.length;u<p;u+=4)i[u]*=o,i[u+1]*=a,i[u+2]*=s,i[u+3]*=l;r.putImageData(n,0,0)}}},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(d.Z),b=r(4415),w=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),C=function(t){function e(e){var r=this,n=e||{},o=void 0!==n.opacity?n.opacity:1,a=void 0!==n.rotation?n.rotation:0,l=void 0!==n.scale?n.scale:1,u=void 0!==n.rotateWithView&&n.rotateWithView;(r=t.call(this,{opacity:o,rotation:a,scale:l,displacement:void 0!==n.displacement?n.displacement:[0,0],rotateWithView:u,declutterMode:n.declutterMode})||this).anchor_=void 0!==n.anchor?n.anchor:[.5,.5],r.normalizedAnchor_=null,r.anchorOrigin_=void 0!==n.anchorOrigin?n.anchorOrigin:s,r.anchorXUnits_=void 0!==n.anchorXUnits?n.anchorXUnits:i.Z.FRACTION,r.anchorYUnits_=void 0!==n.anchorYUnits?n.anchorYUnits:i.Z.FRACTION,r.crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null;var p=void 0!==n.img?n.img:null;r.imgSize_=n.imgSize;var d=n.src;(0,f.h)(!(void 0!==d&&p),4),(0,f.h)(!p||p&&r.imgSize_,5),void 0!==d&&0!==d.length||!p||(d=p.src||(0,b.sq)(p)),(0,f.h)(void 0!==d&&d.length>0,6);var y=void 0!==n.src?h.Z.IDLE:h.Z.LOADED;return r.color_=void 0!==n.color?(0,c._2)(n.color):null,r.iconImage_=function(t,e,r,n,i,o){var a=g.c.get(e,n,o);return a||(a=new x(t,e,r,n,i,o),g.c.set(e,n,o,a)),a}(p,d,void 0!==r.imgSize_?r.imgSize_:null,r.crossOrigin_,y,r.color_),r.offset_=void 0!==n.offset?n.offset:[0,0],r.offsetOrigin_=void 0!==n.offsetOrigin?n.offsetOrigin:s,r.origin_=null,r.size_=void 0!==n.size?n.size:null,r}return w(e,t),e.prototype.clone=function(){var t=this.getScale();return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},e.prototype.getAnchor=function(){var t=this.normalizedAnchor_;if(!t){t=this.anchor_;var e=this.getSize();if(this.anchorXUnits_==i.Z.FRACTION||this.anchorYUnits_==i.Z.FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==i.Z.FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==i.Z.FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=s){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=l&&this.anchorOrigin_!=a||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=o&&this.anchorOrigin_!=a||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}var r=this.getDisplacement();return[t[0]-r[0],t[1]+r[1]]},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=s){var e=this.getSize(),r=this.iconImage_.getSize();if(!e||!r)return null;t=t.slice(),this.offsetOrigin_!=l&&this.offsetOrigin_!=a||(t[0]=r[0]-e[0]-t[0]),this.offsetOrigin_!=o&&this.offsetOrigin_!=a||(t[1]=r[1]-e[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(n.Z.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(n.Z.CHANGE,t)},e}(p.Z);const E=C},6951:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={FRACTION:"fraction",PIXELS:"pixels"}},6929:(t,e,r)=>{"use strict";r.d(e,{c:()=>o});var n=r(8609);function i(t,e,r){return e+":"+t+":"+(r?(0,n.XC)(r):"null")}var o=new(function(){function t(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return t.prototype.clear=function(){this.cache_={},this.cacheSize_=0},t.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},t.prototype.expire=function(){if(this.canExpireCache()){var t=0;for(var e in this.cache_){var r=this.cache_[e];0!=(3&t++)||r.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},t.prototype.get=function(t,e,r){var n=i(t,e,r);return n in this.cache_?this.cache_[n]:null},t.prototype.set=function(t,e,r,n){var o=i(t,e,r);this.cache_[o]=n,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}())},7589:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(4415),i=r(7814);const o=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,i.Pq)(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}return t.prototype.clone=function(){var e=this.getScale();return new t({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},t.prototype.getOpacity=function(){return this.opacity_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getDisplacement=function(){return this.displacement_},t.prototype.getDeclutterMode=function(){return this.declutterMode_},t.prototype.getAnchor=function(){return(0,n.O3)()},t.prototype.getImage=function(t){return(0,n.O3)()},t.prototype.getHitDetectionImage=function(){return(0,n.O3)()},t.prototype.getPixelRatio=function(t){return 1},t.prototype.getImageState=function(){return(0,n.O3)()},t.prototype.getImageSize=function(){return(0,n.O3)()},t.prototype.getOrigin=function(){return(0,n.O3)()},t.prototype.getSize=function(){return(0,n.O3)()},t.prototype.setDisplacement=function(t){this.displacement_=t},t.prototype.setOpacity=function(t){this.opacity_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=(0,i.Pq)(t)},t.prototype.listenImageChange=function(t){(0,n.O3)()},t.prototype.load=function(){(0,n.O3)()},t.prototype.unlistenImageChange=function(t){(0,n.O3)()},t}()},2788:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},t.prototype.getColor=function(){return this.color_},t.prototype.getLineCap=function(){return this.lineCap_},t.prototype.getLineDash=function(){return this.lineDash_},t.prototype.getLineDashOffset=function(){return this.lineDashOffset_},t.prototype.getLineJoin=function(){return this.lineJoin_},t.prototype.getMiterLimit=function(){return this.miterLimit_},t.prototype.getWidth=function(){return this.width_},t.prototype.setColor=function(t){this.color_=t},t.prototype.setLineCap=function(t){this.lineCap_=t},t.prototype.setLineDash=function(t){this.lineDash_=t},t.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t},t.prototype.setLineJoin=function(t){this.lineJoin_=t},t.prototype.setMiterLimit=function(t){this.miterLimit_=t},t.prototype.setWidth=function(t){this.width_=t},t}()},6298:(t,e,r)=>{"use strict";r.d(e,{J$:()=>l,ZP:()=>c,yF:()=>h});var n=r(8926),i=r(4573),o=r(2788),a=r(9751),s=function(){function t(t){var e=t||{};this.geometry_=null,this.geometryFunction_=p,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.hitDetectionRenderer_=void 0!==e.hitDetectionRenderer?e.hitDetectionRenderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}return t.prototype.clone=function(){var e=this.getGeometry();return e&&"object"==typeof e&&(e=e.clone()),new t({geometry:e,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.setRenderer=function(t){this.renderer_=t},t.prototype.setHitDetectionRenderer=function(t){this.hitDetectionRenderer_=t},t.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},t.prototype.getGeometry=function(){return this.geometry_},t.prototype.getGeometryFunction=function(){return this.geometryFunction_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(t){this.fill_=t},t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(t){this.image_=t},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.getText=function(){return this.text_},t.prototype.setText=function(t){this.text_=t},t.prototype.getZIndex=function(){return this.zIndex_},t.prototype.setGeometry=function(t){"function"==typeof t?this.geometryFunction_=t:"string"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=p,this.geometry_=t},t.prototype.setZIndex=function(t){this.zIndex_=t},t}();function l(t){var e,r;"function"==typeof t?e=t:(Array.isArray(t)?r=t:((0,a.h)("function"==typeof t.getZIndex,41),r=[t]),e=function(){return r});return e}var u=null;function h(t,e){if(!u){var r=new i.Z({color:"rgba(255,255,255,0.4)"}),a=new o.Z({color:"#3399CC",width:1.25});u=[new s({image:new n.Z({fill:r,stroke:a,radius:5}),fill:r,stroke:a})]}return u}function p(t){return t.getGeometry()}const c=s},2197:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={POINT:"point",LINE:"line"}},7348:(t,e,r)=>{"use strict";r.d(e,{S:()=>i,e:()=>n});var n=42,i=256},4765:(t,e,r)=>{"use strict";r.d(e,{BB:()=>m,Iu:()=>y,Jp:()=>u,Ue:()=>s,bA:()=>f,lk:()=>p,mc:()=>l,n3:()=>d,nb:()=>v,nn:()=>c,qC:()=>g});var n,i=r(6299),o=r(9751),a=new Array(6);function s(){return[1,0,0,1,0,0]}function l(t){return h(t,1,0,0,1,0,0)}function u(t,e){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=e[0],u=e[1],h=e[2],p=e[3],c=e[4],f=e[5];return t[0]=r*l+i*u,t[1]=n*l+o*u,t[2]=r*h+i*p,t[3]=n*h+o*p,t[4]=r*c+i*f+a,t[5]=n*c+o*f+s,t}function h(t,e,r,n,i,o,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=o,t[5]=a,t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function c(t,e){var r=e[0],n=e[1];return e[0]=t[0]*r+t[2]*n+t[4],e[1]=t[1]*r+t[3]*n+t[5],e}function f(t,e,r){return u(t,h(a,e,0,0,r,0,0))}function d(t,e,r){return h(t,e,0,0,r,0,0)}function y(t,e,r){return u(t,h(a,1,0,0,1,e,r))}function g(t,e,r,n,i,o,a,s){var l=Math.sin(o),u=Math.cos(o);return t[0]=n*u,t[1]=i*l,t[2]=-n*l,t[3]=i*u,t[4]=a*n*u-s*n*l+e,t[5]=a*i*l+s*i*u+r,t}function v(t,e){var r,n=(r=e)[0]*r[3]-r[1]*r[2];(0,o.h)(0!==n,32);var i=e[0],a=e[1],s=e[2],l=e[3],u=e[4],h=e[5];return t[0]=l/n,t[1]=-a/n,t[2]=-s/n,t[3]=i/n,t[4]=(s*h-l*u)/n,t[5]=-(i*h-a*u)/n,t}function m(t){var e="matrix("+t.join(", ")+")";if(i.Id)return e;var r=n||(n=document.createElement("div"));return r.style.transform=e,r.style.transform}},4415:(t,e,r)=>{"use strict";function n(){return function(){throw new Error("Unimplemented abstract method.")}()}r.d(e,{O3:()=>n,q4:()=>a,sq:()=>o});var i=0;function o(t){return t.ol_uid||(t.ol_uid=String(++i))}var a="6.15.1"},5955:(t,e,r)=>{"use strict";r.d(e,{nn:()=>Zo,h0:()=>So,bg:()=>bo,ZP:()=>Zo,LN:()=>jo,uX:()=>Ln});var n={};r.r(n),r.d(n,{array:()=>ce,color:()=>pe,number:()=>he});var i={};r.r(i),r.d(i,{hcl:()=>Pe,lab:()=>Oe});var o=r(8926),a=r(4573),s=r(6278),l=r(4765),u=r(2005),h=r(7782),p=r(6096),c=r(9786),f=r(3174),d=r(215),y=r(7810),g=(0,l.Ue)(),v=function(){function t(t,e,r,n,i){this.styleFunction,this.extent_,this.id_=i,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=r,this.properties_=n}return t.prototype.get=function(t){return this.properties_[t]},t.prototype.getExtent=function(){return this.extent_||(this.extent_="Point"===this.type_?(0,u.HK)(this.flatCoordinates_):(0,u.GN)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},t.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var t=(0,u.qg)(this.getExtent());this.flatInteriorPoints_=(0,p.X)(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_},t.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var t=(0,d.E)(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=(0,p.U)(this.flatCoordinates_,0,this.ends_,2,t)}return this.flatInteriorPoints_},t.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=(0,f.WW)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},t.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var t=this.flatCoordinates_,e=0,r=this.ends_,n=0,i=r.length;n<i;++n){var o=r[n],a=(0,f.WW)(t,e,o,2,.5);(0,h.l7)(this.flatMidpoints_,a),e=o}}return this.flatMidpoints_},t.prototype.getId=function(){return this.id_},t.prototype.getOrientedFlatCoordinates=function(){return this.flatCoordinates_},t.prototype.getGeometry=function(){return this},t.prototype.getSimplifiedGeometry=function(t){return this},t.prototype.simplifyTransformed=function(t,e){return this},t.prototype.getProperties=function(){return this.properties_},t.prototype.getStride=function(){return 2},t.prototype.getStyleFunction=function(){return this.styleFunction},t.prototype.getType=function(){return this.type_},t.prototype.transform=function(t){var e=(t=(0,c.U2)(t)).getExtent(),r=t.getWorldExtent();if(e&&r){var n=(0,u.Cr)(r)/(0,u.Cr)(e);(0,l.qC)(g,r[0],r[3],n,-n,0,0,0),(0,y.vT)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,g,this.flatCoordinates_)}},t.prototype.getEnds=function(){return this.ends_},t}();v.prototype.getEndss=v.prototype.getEnds,v.prototype.getFlatCoordinates=v.prototype.getOrientedFlatCoordinates;const m=v;var _=r(2788),x=r(6298),b=r(2197),w=r(7814);const C=function(){function t(t){var e=t||{};this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.scaleArray_=(0,w.Pq)(void 0!==e.scale?e.scale:1),this.text_=e.text,this.textAlign_=e.textAlign,this.justify_=e.justify,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new a.Z({color:"#333"}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:b.Z.POINT,this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding}return t.prototype.clone=function(){var e=this.getScale();return new t({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},t.prototype.getOverflow=function(){return this.overflow_},t.prototype.getFont=function(){return this.font_},t.prototype.getMaxAngle=function(){return this.maxAngle_},t.prototype.getPlacement=function(){return this.placement_},t.prototype.getOffsetX=function(){return this.offsetX_},t.prototype.getOffsetY=function(){return this.offsetY_},t.prototype.getFill=function(){return this.fill_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.getText=function(){return this.text_},t.prototype.getTextAlign=function(){return this.textAlign_},t.prototype.getJustify=function(){return this.justify_},t.prototype.getTextBaseline=function(){return this.textBaseline_},t.prototype.getBackgroundFill=function(){return this.backgroundFill_},t.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},t.prototype.getPadding=function(){return this.padding_},t.prototype.setOverflow=function(t){this.overflow_=t},t.prototype.setFont=function(t){this.font_=t},t.prototype.setMaxAngle=function(t){this.maxAngle_=t},t.prototype.setOffsetX=function(t){this.offsetX_=t},t.prototype.setOffsetY=function(t){this.offsetY_=t},t.prototype.setPlacement=function(t){this.placement_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setFill=function(t){this.fill_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=(0,w.Pq)(void 0!==t?t:1)},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.setText=function(t){this.text_=t},t.prototype.setTextAlign=function(t){this.textAlign_=t},t.prototype.setJustify=function(t){this.justify_=t},t.prototype.setTextBaseline=function(t){this.textBaseline_=t},t.prototype.setBackgroundFill=function(t){this.backgroundFill_=t},t.prototype.setBackgroundStroke=function(t){this.backgroundStroke_=t},t.prototype.setPadding=function(t){this.padding_=t},t}();var E=r(5933),S=function(t,e,r,n){void 0===n&&(n=1),this.r=t,this.g=e,this.b=r,this.a=n};S.parse=function(t){if(t){if(t instanceof S)return t;if("string"==typeof t){var e=(0,E.G)(t);if(e)return new S(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},S.prototype.toString=function(){var t=this.toArray(),e=t[0],r=t[1],n=t[2],i=t[3];return"rgba("+Math.round(e)+","+Math.round(r)+","+Math.round(n)+","+i+")"},S.prototype.toArray=function(){var t=this,e=t.r,r=t.g,n=t.b,i=t.a;return 0===i?[0,0,0,0]:[255*e/i,255*r/i,255*n/i,i]},S.prototype.toArray01=function(){var t=this,e=t.r,r=t.g,n=t.b,i=t.a;return 0===i?[0,0,0,0]:[e/i,r/i,n/i,i]},S.prototype.toArray01PremultipliedAlpha=function(){var t=this;return[t.r,t.g,t.b,t.a]},S.black=new S(0,0,0,1),S.white=new S(1,1,1,1),S.transparent=new S(0,0,0,0),S.red=new S(1,0,0,1),S.blue=new S(0,0,1,1);const T=S;var O=r(1494);function P(t){return"object"==typeof t?["literal",t]:t}function R(t){switch(t.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function I(t,e){var r,n,i=P((r=t.default,n=e.default,void 0!==r?r:void 0!==n?n:void 0));return void 0===i&&"resolvedImage"===e.type?"":i}function M(t,e,r){var n=F(t,e),i=["get",t.property];if("categorical"===n&&"boolean"==typeof r[0][0]){O(t.stops.length>0&&t.stops.length<=2);for(var o=["case"],a=0,s=r;a<s.length;a+=1){var l=s[a];o.push(["==",i,l[0]],l[1])}return o.push(I(t,e)),o}if("categorical"===n){for(var u=["match",i],h=0,p=r;h<p.length;h+=1){var c=p[h];k(u,c[0],c[1],!1)}return u.push(I(t,e)),u}if("interval"===n){for(var f=["step",["number",i]],d=0,y=r;d<y.length;d+=1){var g=y[d];k(f,g[0],g[1],!0)}return A(f),void 0===t.default?f:["case",["==",["typeof",i],"number"],f,P(t.default)]}if("exponential"===n){for(var v=void 0!==t.base?t.base:1,m=[R(t),1===v?["linear"]:["exponential",v],["number",i]],_=0,x=r;_<x.length;_+=1){var b=x[_];k(m,b[0],b[1],!1)}return void 0===t.default?m:["case",["==",["typeof",i],"number"],m,P(t.default)]}throw new Error("Unknown property function type "+n)}function A(t){"step"===t[0]&&3===t.length&&(t.push(0),t.push(t[3]))}function k(t,e,r,n){t.length>3&&e===t[t.length-2]||(n&&2===t.length||t.push(e),t.push(r))}function F(t,e){return t.type?t.type:(O(e.expression),e.expression.interpolated?"exponential":"interval")}function L(t){for(var e=["concat"],r=/{([^{}]+)}/g,n=0,i=r.exec(t);null!==i;i=r.exec(t)){var o=t.slice(n,r.lastIndex-i[0].length);n=r.lastIndex,o.length>0&&e.push(o),e.push(["get",i[1]])}if(1===e.length)return t;if(n<t.length)e.push(t.slice(n));else if(2===e.length)return["to-string",e[1]];return e}function Z(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];for(var n=0,i=e;n<i.length;n+=1){var o=i[n];for(var a in o)t[a]=o[a]}return t}const D=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error);var j=function(t,e){void 0===e&&(e=[]),this.parent=t,this.bindings={};for(var r=0,n=e;r<n.length;r+=1){var i=n[r],o=i[0],a=i[1];this.bindings[o]=a}};j.prototype.concat=function(t){return new j(this,t)},j.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+" not found in scope.")},j.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};const z=j;var N={kind:"null"},G={kind:"number"},X={kind:"string"},W={kind:"boolean"},q={kind:"color"},Y={kind:"object"},V={kind:"value"},B={kind:"collator"},U={kind:"formatted"},K={kind:"resolvedImage"};function H(t,e){return{kind:"array",itemType:t,N:e}}function J(t){if("array"===t.kind){var e=J(t.itemType);return"number"==typeof t.N?"array<"+e+", "+t.N+">":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var $=[N,G,X,W,q,U,Y,H(V),K];function Q(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!Q(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var r=0,n=$;r<n.length;r+=1)if(!Q(n[r],e))return null}return"Expected "+J(t)+" but found "+J(e)+" instead."}function tt(t,e){return e.some((function(e){return e.kind===t.kind}))}function et(t,e){return e.some((function(e){return"null"===e?null===t:"array"===e?Array.isArray(t):"object"===e?t&&!Array.isArray(t)&&"object"==typeof t:e===typeof t}))}var rt=function(t,e,r){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};rt.prototype.compare=function(t,e){return this.collator.compare(t,e)},rt.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};const nt=rt;var it=function(t,e,r,n,i){this.text=t.normalize?t.normalize():t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i},ot=function(t){this.sections=t};ot.fromString=function(t){return new ot([new it(t,null,null,null,null)])},ot.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&&0!==t.image.name.length}))},ot.factory=function(t){return t instanceof ot?t:ot.fromString(t)},ot.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(t){return t.text})).join("")},ot.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e<r.length;e+=1){var n=r[e];if(n.image)t.push(["image",n.image.name]);else{t.push(n.text);var i={};n.fontStack&&(i["text-font"]=["literal",n.fontStack.split(",")]),n.scale&&(i["font-scale"]=n.scale),n.textColor&&(i["text-color"]=["rgba"].concat(n.textColor.toArray())),t.push(i)}}return t};const at=ot;var st=function(t){this.name=t.name,this.available=t.available};st.prototype.toString=function(){return this.name},st.fromString=function(t){return t?new st({name:t,available:!1}):null},st.prototype.serialize=function(){return["image",this.name]};const lt=st;function ut(t,e,r,n){return"number"==typeof t&&t>=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof r&&r>=0&&r<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:"Invalid rgba value ["+[t,e,r,n].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof n?[t,e,r,n]:[t,e,r]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function ht(t){if(null===t)return!0;if("string"==typeof t)return!0;if("boolean"==typeof t)return!0;if("number"==typeof t)return!0;if(t instanceof T)return!0;if(t instanceof nt)return!0;if(t instanceof at)return!0;if(t instanceof lt)return!0;if(Array.isArray(t)){for(var e=0,r=t;e<r.length;e+=1)if(!ht(r[e]))return!1;return!0}if("object"==typeof t){for(var n in t)if(!ht(t[n]))return!1;return!0}return!1}function pt(t){if(null===t)return N;if("string"==typeof t)return X;if("boolean"==typeof t)return W;if("number"==typeof t)return G;if(t instanceof T)return q;if(t instanceof nt)return B;if(t instanceof at)return U;if(t instanceof lt)return K;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n<i.length;n+=1){var o=pt(i[n]);if(e){if(e===o)continue;e=V;break}e=o}return H(e||V,r)}return O("object"==typeof t),Y}function ct(t){var e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof T||t instanceof at||t instanceof lt?t.toString():JSON.stringify(t)}var ft=function(t,e){this.type=t,this.value=e};ft.parse=function(t,e){if(2!==t.length)return e.error("'literal' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(!ht(t[1]))return e.error("invalid value");var r=t[1],n=pt(r),i=e.expectedType;return"array"!==n.kind||0!==n.N||!i||"array"!==i.kind||"number"==typeof i.N&&0!==i.N||(n=i),new ft(n,r)},ft.prototype.evaluate=function(){return this.value},ft.prototype.eachChild=function(){},ft.prototype.outputDefined=function(){return!0},ft.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof T?["rgba"].concat(this.value.toArray()):this.value instanceof at?this.value.serialize():(O(null===this.value||"string"==typeof this.value||"number"==typeof this.value||"boolean"==typeof this.value),this.value)};const dt=ft;var yt=function(t){this.name="ExpressionEvaluationError",this.message=t};yt.prototype.toJSON=function(){return this.message};const gt=yt;var vt={string:X,number:G,boolean:W,object:Y},mt=function(t,e){this.type=t,this.args=e};mt.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r,n=1,i=t[0];if("array"===i){var o,a;if(t.length>2){var s=t[1];if("string"!=typeof s||!(s in vt)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=vt[s],n++}else o=V;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);a=t[2],n++}r=H(o,a)}else O(vt[i],i),r=vt[i];for(var l=[];n<t.length;n++){var u=e.parse(t[n],n,V);if(!u)return null;l.push(u)}return new mt(r,l)},mt.prototype.evaluate=function(t){for(var e=0;e<this.args.length;e++){var r=this.args[e].evaluate(t);if(!Q(this.type,pt(r)))return r;if(e===this.args.length-1)throw new gt("Expected value to be of type "+J(this.type)+", but found "+J(pt(r))+" instead.")}return O(!1),null},mt.prototype.eachChild=function(t){this.args.forEach(t)},mt.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},mt.prototype.serialize=function(){var t=this.type,e=[t.kind];if("array"===t.kind){var r=t.itemType;if("string"===r.kind||"number"===r.kind||"boolean"===r.kind){e.push(r.kind);var n=t.N;("number"==typeof n||this.args.length>1)&&e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};const _t=mt;var xt=function(t){this.type=U,this.sections=t};xt.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[1];if(!Array.isArray(r)&&"object"==typeof r)return e.error("First argument must be an image or text section.");for(var n=[],i=!1,o=1;o<=t.length-1;++o){var a=t[o];if(i&&"object"==typeof a&&!Array.isArray(a)){i=!1;var s=null;if(a["font-scale"]&&!(s=e.parse(a["font-scale"],1,G)))return null;var l=null;if(a["text-font"]&&!(l=e.parse(a["text-font"],1,H(X))))return null;var u=null;if(a["text-color"]&&!(u=e.parse(a["text-color"],1,q)))return null;var h=n[n.length-1];h.scale=s,h.font=l,h.textColor=u}else{var p=e.parse(t[o],1,V);if(!p)return null;var c=p.type.kind;if("string"!==c&&"value"!==c&&"null"!==c&&"resolvedImage"!==c)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,n.push({content:p,scale:null,font:null,textColor:null})}}return new xt(n)},xt.prototype.evaluate=function(t){return new at(this.sections.map((function(e){var r=e.content.evaluate(t);return pt(r)===K?new it("",r,null,null,null):new it(ct(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)})))},xt.prototype.eachChild=function(t){for(var e=0,r=this.sections;e<r.length;e+=1){var n=r[e];t(n.content),n.scale&&t(n.scale),n.font&&t(n.font),n.textColor&&t(n.textColor)}},xt.prototype.outputDefined=function(){return!1},xt.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e<r.length;e+=1){var n=r[e];t.push(n.content.serialize());var i={};n.scale&&(i["font-scale"]=n.scale.serialize()),n.font&&(i["text-font"]=n.font.serialize()),n.textColor&&(i["text-color"]=n.textColor.serialize()),t.push(i)}return t};const bt=xt;var wt=function(t){this.type=K,this.input=t};wt.parse=function(t,e){if(2!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,X);return r?new wt(r):e.error("No image name provided.")},wt.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=lt.fromString(e);return r&&t.availableImages&&(r.available=t.availableImages.indexOf(e)>-1),r},wt.prototype.eachChild=function(t){t(this.input)},wt.prototype.outputDefined=function(){return!1},wt.prototype.serialize=function(){return["image",this.input.serialize()]};const Ct=wt;var Et={"to-boolean":W,"to-color":q,"to-number":G,"to-string":X},St=function(t,e){this.type=t,this.args=e};St.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[0];if(O(Et[r],r),("to-boolean"===r||"to-string"===r)&&2!==t.length)return e.error("Expected one argument.");for(var n=Et[r],i=[],o=1;o<t.length;o++){var a=e.parse(t[o],o,V);if(!a)return null;i.push(a)}return new St(n,i)},St.prototype.evaluate=function(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){for(var e,r,n=0,i=this.args;n<i.length;n+=1){if(r=null,(e=i[n].evaluate(t))instanceof T)return e;if("string"==typeof e){var o=t.parseColor(e);if(o)return o}else if(Array.isArray(e)&&!(r=e.length<3||e.length>4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":ut(e[0],e[1],e[2],e[3])))return new T(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new gt(r||"Could not parse color from value '"+("string"==typeof e?e:String(JSON.stringify(e)))+"'")}if("number"===this.type.kind){for(var a=null,s=0,l=this.args;s<l.length;s+=1){if(null===(a=l[s].evaluate(t)))return 0;var u=Number(a);if(!isNaN(u))return u}throw new gt("Could not convert "+JSON.stringify(a)+" to number.")}return"formatted"===this.type.kind?at.fromString(ct(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?lt.fromString(ct(this.args[0].evaluate(t))):ct(this.args[0].evaluate(t))},St.prototype.eachChild=function(t){this.args.forEach(t)},St.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},St.prototype.serialize=function(){if("formatted"===this.type.kind)return new bt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Ct(this.args[0]).serialize();var t=["to-"+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};const Tt=St;var Ot=["Unknown","Point","LineString","Polygon"],Pt=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null};Pt.prototype.id=function(){return this.feature&&"id"in this.feature&&this.feature.id?this.feature.id:null},Pt.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?Ot[this.feature.type]:this.feature.type:null},Pt.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},Pt.prototype.canonicalID=function(){return this.canonical},Pt.prototype.properties=function(){return this.feature&&this.feature.properties||{}},Pt.prototype.distanceFromCenter=function(){if(this.featureTileCoord&&this.featureDistanceData){var t=this.featureDistanceData.center,e=this.featureDistanceData.scale,r=this.featureTileCoord,n=r.x,i=r.y,o=n*e-t[0],a=i*e-t[1];return this.featureDistanceData.bearing[0]*o+this.featureDistanceData.bearing[1]*a}return 0},Pt.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=T.parse(t)),e};const Rt=Pt;var It=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};It.prototype.evaluate=function(t){return this._evaluate(t,this.args)},It.prototype.eachChild=function(t){this.args.forEach(t)},It.prototype.outputDefined=function(){return!1},It.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},It.parse=function(t,e){var r,n=t[0],i=It.definitions[n];if(!i)return e.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0);for(var o=Array.isArray(i)?i[0]:i.type,a=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=a.filter((function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1})),l=null,u=0,h=s;u<h.length;u+=1){var p=h[u],c=p[0],f=p[1];l=new ie(e.registry,e.path,null,e.scope);for(var d=[],y=!1,g=1;g<t.length;g++){var v=t[g],m=Array.isArray(c)?c[g-1]:c.type,_=l.parse(v,1+d.length,m);if(!_){y=!0;break}d.push(_)}if(!y)if(Array.isArray(c)&&c.length!==d.length)l.error("Expected "+c.length+" arguments, but found "+d.length+" instead.");else{for(var x=0;x<d.length;x++){var b=Array.isArray(c)?c[x]:c.type,w=d[x];l.concat(x+1).checkSubtype(b,w.type)}if(0===l.errors.length)return new It(n,o,f,d)}}if(O(!l||l.errors.length>0),1===s.length)(r=e.errors).push.apply(r,l.errors);else{for(var C=(s.length?s:a).map((function(t){var e;return e=t[0],Array.isArray(e)?"("+e.map(J).join(", ")+")":"("+J(e.type)+"...)"})).join(" | "),E=[],S=1;S<t.length;S++){var T=e.parse(t[S],1+E.length);if(!T)return null;E.push(J(T.type))}e.error("Expected arguments of type "+C+", but found ("+E.join(", ")+") instead.")}return null},It.register=function(t,e){for(var r in O(!It.definitions),It.definitions=e,e)t[r]=It};const Mt=It;var At=function(t,e,r){this.type=B,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};At.parse=function(t,e){if(2!==t.length)return e.error("Expected one argument.");var r=t[1];if("object"!=typeof r||Array.isArray(r))return e.error("Collator options argument must be an object.");var n=e.parse(void 0!==r["case-sensitive"]&&r["case-sensitive"],1,W);if(!n)return null;var i=e.parse(void 0!==r["diacritic-sensitive"]&&r["diacritic-sensitive"],1,W);if(!i)return null;var o=null;return r.locale&&!(o=e.parse(r.locale,1,X))?null:new At(n,i,o)},At.prototype.evaluate=function(t){return new nt(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},At.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)},At.prototype.outputDefined=function(){return!1},At.prototype.serialize=function(){var t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),["collator",t]};const kt=At;r(9828);var Ft=8192;function Lt(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function Zt(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function Dt(t,e){var r,n=(180+t[0])/360,i=(r=t[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r*Math.PI/360)))/360),o=Math.pow(2,e.z);return[Math.round(n*o*Ft),Math.round(i*o*Ft)]}function jt(t,e,r){return e[1]>t[1]!=r[1]>t[1]&&t[0]<(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function zt(t,e){for(var r,n,i,o,a,s,l,u=!1,h=0,p=e.length;h<p;h++)for(var c=e[h],f=0,d=c.length;f<d-1;f++){if(r=t,n=c[f],i=c[f+1],void 0,void 0,void 0,void 0,o=r[0]-n[0],a=r[1]-n[1],s=r[0]-i[0],o*(l=r[1]-i[1])-s*a==0&&o*s<=0&&a*l<=0)return!1;jt(t,c[f],c[f+1])&&(u=!u)}return u}function Nt(t,e){for(var r=0;r<e.length;r++)if(zt(t,e[r]))return!0;return!1}function Gt(t,e,r,n){var i=t[0]-r[0],o=t[1]-r[1],a=e[0]-r[0],s=e[1]-r[1],l=n[0]-r[0],u=n[1]-r[1],h=i*u-l*o,p=a*u-l*s;return h>0&&p<0||h<0&&p>0}function Xt(t,e,r){for(var n=0,i=r;n<i.length;n+=1)for(var o=i[n],a=0;a<o.length-1;++a)if(s=t,l=e,u=o[a],h=o[a+1],void 0,void 0,void 0,void 0,f=[l[0]-s[0],l[1]-s[1]],0!=(p=[h[0]-u[0],h[1]-u[1]])[0]*(c=f)[1]-p[1]*c[0]&&Gt(s,l,u,h)&&Gt(u,h,s,l))return!0;var s,l,u,h,p,c,f;return!1}function Wt(t,e){for(var r=0;r<t.length;++r)if(!zt(t[r],e))return!1;for(var n=0;n<t.length-1;++n)if(Xt(t[n],t[n+1],e))return!1;return!0}function qt(t,e){for(var r=0;r<e.length;r++)if(Wt(t,e[r]))return!0;return!1}function Yt(t,e,r){for(var n=[],i=0;i<t.length;i++){for(var o=[],a=0;a<t[i].length;a++){var s=Dt(t[i][a],r);Lt(e,s),o.push(s)}n.push(o)}return n}function Vt(t,e,r){for(var n=[],i=0;i<t.length;i++){var o=Yt(t[i],e,r);n.push(o)}return n}function Bt(t,e,r,n){if(t[0]<r[0]||t[0]>r[2]){var i=.5*n,o=t[0]-r[0]>i?-n:r[0]-t[0]>i?n:0;0===o&&(o=t[0]-r[2]>i?-n:r[2]-t[0]>i?n:0),t[0]+=o}Lt(e,t)}function Ut(t,e,r,n){var i=Math.pow(2,n.z)*Ft,o=[n.x*Ft,n.y*Ft],a=[];if(!t)return a;for(var s=0,l=t;s<l.length;s+=1)for(var u=0,h=l[s];u<h.length;u+=1){var p=h[u],c=[p.x+o[0],p.y+o[1]];Bt(c,e,r,i),a.push(c)}return a}function Kt(t,e,r,n){var i,o=Math.pow(2,n.z)*Ft,a=[n.x*Ft,n.y*Ft],s=[];if(!t)return s;for(var l=0,u=t;l<u.length;l+=1){for(var h=[],p=0,c=u[l];p<c.length;p+=1){var f=c[p],d=[f.x+a[0],f.y+a[1]];Lt(e,d),h.push(d)}s.push(h)}if(e[2]-e[0]<=o/2){(i=e)[0]=i[1]=1/0,i[2]=i[3]=-1/0;for(var y=0,g=s;y<g.length;y+=1)for(var v=0,m=g[y];v<m.length;v+=1)Bt(m[v],e,r,o)}return s}var Ht=function(t,e){this.type=W,this.geojson=t,this.geometries=e};Ht.parse=function(t,e){if(2!==t.length)return e.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(ht(t[1])){var r=t[1];if("FeatureCollection"===r.type)for(var n=0;n<r.features.length;++n){var i=r.features[n].geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new Ht(r,r.features[n].geometry)}else if("Feature"===r.type){var o=r.geometry.type;if("Polygon"===o||"MultiPolygon"===o)return new Ht(r,r.geometry)}else if("Polygon"===r.type||"MultiPolygon"===r.type)return new Ht(r,r)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")},Ht.prototype.evaluate=function(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(!i)return!1;if("Polygon"===e.type){var o=Yt(e.coordinates,n,i),a=Ut(t.geometry(),r,n,i);if(!Zt(r,n))return!1;for(var s=0,l=a;s<l.length;s+=1)if(!zt(l[s],o))return!1}if("MultiPolygon"===e.type){var u=Vt(e.coordinates,n,i),h=Ut(t.geometry(),r,n,i);if(!Zt(r,n))return!1;for(var p=0,c=h;p<c.length;p+=1)if(!Nt(c[p],u))return!1}return!0}(t,this.geometries);if("LineString"===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(!i)return!1;if("Polygon"===e.type){var o=Yt(e.coordinates,n,i),a=Kt(t.geometry(),r,n,i);if(!Zt(r,n))return!1;for(var s=0,l=a;s<l.length;s+=1)if(!Wt(l[s],o))return!1}if("MultiPolygon"===e.type){var u=Vt(e.coordinates,n,i),h=Kt(t.geometry(),r,n,i);if(!Zt(r,n))return!1;for(var p=0,c=h;p<c.length;p+=1)if(!qt(c[p],u))return!1}return!0}(t,this.geometries)}return!1},Ht.prototype.eachChild=function(){},Ht.prototype.outputDefined=function(){return!0},Ht.prototype.serialize=function(){return["within",this.geojson]};const Jt=Ht;function $t(t){if(t instanceof Mt){if("get"===t.name&&1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&&1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof Jt)return!1;var e=!0;return t.eachChild((function(t){e&&!$t(t)&&(e=!1)})),e}function Qt(t){if(t instanceof Mt&&"feature-state"===t.name)return!1;var e=!0;return t.eachChild((function(t){e&&!Qt(t)&&(e=!1)})),e}function te(t,e){if(t instanceof Mt&&e.indexOf(t.name)>=0)return!1;var r=!0;return t.eachChild((function(t){r&&!te(t,e)&&(r=!1)})),r}var ee=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};ee.parse=function(t,e){if(2!==t.length||"string"!=typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");var r=t[1];return e.scope.has(r)?new ee(r,e.scope.get(r)):e.error('Unknown variable "'+r+'". Make sure "'+r+'" has been bound in an enclosing "let" expression before using it.',1)},ee.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},ee.prototype.eachChild=function(){},ee.prototype.outputDefined=function(){return!1},ee.prototype.serialize=function(){return["var",this.name]};const re=ee;var ne=function(t,e,r,n,i){void 0===e&&(e=[]),void 0===n&&(n=new z),void 0===i&&(i=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return"["+t+"]"})).join(""),this.scope=n,this.errors=i,this.expectedType=r};ne.prototype.parse=function(t,e,r,n,i){return void 0===i&&(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},ne.prototype._parse=function(t,e){function r(t,e,r){return"assert"===r?new _t(e,[t]):"coerce"===r?new Tt(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var n=t[0];if("string"!=typeof n)return this.error("Expression name must be a string, but found "+typeof n+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var i=this.registry[n];if(i){var o=i.parse(t,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=r(o,a,e.typeAnnotation||"coerce");else o=r(o,a,e.typeAnnotation||"assert")}if(!(o instanceof dt)&&"resolvedImage"!==o.type.kind&&oe(o)){var l=new Rt;try{o=new dt(o.type,o.evaluate(l))}catch(t){return this.error(t.message),null}}return o}return this.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0)}return void 0===t?this.error("'undefined' value invalid. Use null instead."):"object"==typeof t?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof t+" instead.")},ne.prototype.concat=function(t,e,r){var n="number"==typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new ne(this.registry,n,e||null,i,this.errors)},ne.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var n=""+this.key+e.map((function(t){return"["+t+"]"})).join("");this.errors.push(new D(n,t))},ne.prototype.checkSubtype=function(t,e){var r=Q(t,e);return r&&this.error(r),r};const ie=ne;function oe(t){if(t instanceof re)return oe(t.boundExpression);if(t instanceof Mt&&"error"===t.name)return!1;if(t instanceof kt)return!1;if(t instanceof Jt)return!1;var e=t instanceof Tt||t instanceof _t,r=!0;return t.eachChild((function(t){r=e?r&&oe(t):r&&t instanceof dt})),!!r&&$t(t)&&te(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}function ae(t,e){for(var r,n,i=t.length-1,o=0,a=i,s=0;o<=a;)if(r=t[s=Math.floor((o+a)/2)],n=t[s+1],r<=e){if(s===i||e<n)return s;o=s+1}else{if(!(r>e))throw new gt("Input is not a number.");a=s-1}return 0}var se=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n<i.length;n+=1){var o=i[n],a=o[0],s=o[1];this.labels.push(a),this.outputs.push(s)}};se.parse=function(t,e){if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");var r=e.parse(t[1],1,G);if(!r)return null;var n=[],i=null;e.expectedType&&"value"!==e.expectedType.kind&&(i=e.expectedType);for(var o=1;o<t.length;o+=2){var a=1===o?-1/0:t[o],s=t[o+1],l=o,u=o+1;if("number"!=typeof a)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(n.length&&n[n.length-1][0]>=a)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var h=e.parse(s,u,i);if(!h)return null;i=i||h.type,n.push([a,h])}return new se(i,r,n)},se.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;return n>=e[i-1]?r[i-1].evaluate(t):r[ae(e,n)].evaluate(t)},se.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1)t(r[e])},se.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},se.prototype.serialize=function(){for(var t=["step",this.input.serialize()],e=0;e<this.labels.length;e++)e>0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};const le=se;var ue=r(8657);function he(t,e,r){return t*(1-r)+e*r}function pe(t,e,r){return new T(he(t.r,e.r,r),he(t.g,e.g,r),he(t.b,e.b,r),he(t.a,e.a,r))}function ce(t,e,r){return t.map((function(t,n){return he(t,e[n],r)}))}var fe=.95047,de=1.08883,ye=4/29,ge=6/29,ve=3*ge*ge,me=Math.PI/180,_e=180/Math.PI;function xe(t){return t>.008856451679035631?Math.pow(t,1/3):t/ve+ye}function be(t){return t>ge?t*t*t:ve*(t-ye)}function we(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ce(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ee(t){var e=Ce(t.r),r=Ce(t.g),n=Ce(t.b),i=xe((.4124564*e+.3575761*r+.1804375*n)/fe),o=xe((.2126729*e+.7151522*r+.072175*n)/1);return{l:116*o-16,a:500*(i-o),b:200*(o-xe((.0193339*e+.119192*r+.9503041*n)/de)),alpha:t.a}}function Se(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=1*be(e),r=fe*be(r),n=de*be(n),new T(we(3.2404542*r-1.5371385*e-.4985314*n),we(-.969266*r+1.8760108*e+.041556*n),we(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function Te(t,e,r){var n=e-t;return t+r*(n>180||n<-180?n-360*Math.round(n/360):n)}var Oe={forward:Ee,reverse:Se,interpolate:function(t,e,r){return{l:he(t.l,e.l,r),a:he(t.a,e.a,r),b:he(t.b,e.b,r),alpha:he(t.alpha,e.alpha,r)}}},Pe={forward:function(t){var e=Ee(t),r=e.l,n=e.a,i=e.b,o=Math.atan2(i,n)*_e;return{h:o<0?o+360:o,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}},reverse:function(t){var e=t.h*me,r=t.c;return Se({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:Te(t.h,e.h,r),c:he(t.c,e.c,r),l:he(t.l,e.l,r),alpha:he(t.alpha,e.alpha,r)}}},Re=function(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var o=0,a=i;o<a.length;o+=1){var s=a[o],l=s[0],u=s[1];this.labels.push(l),this.outputs.push(u)}};function Ie(t,e,r,n){var i=n-r,o=t-r;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}Re.interpolationFactor=function(t,e,r,n){var i=0;if("exponential"===t.name)i=Ie(e,t.base,r,n);else if("linear"===t.name)i=Ie(e,1,r,n);else if("cubic-bezier"===t.name){var o=t.controlPoints;i=new ue(o[0],o[1],o[2],o[3]).solve(Ie(e,1,r,n))}return i},Re.parse=function(t,e){var r=t[0],n=t[1],i=t[2],o=t.slice(3);if(!Array.isArray(n)||0===n.length)return e.error("Expected an interpolation type expression.",1);if("linear"===n[0])n={name:"linear"};else if("exponential"===n[0]){var a=n[1];if("number"!=typeof a)return e.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:a}}else{if("cubic-bezier"!==n[0])return e.error("Unknown interpolation type "+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some((function(t){return"number"!=typeof t||t<0||t>1})))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(i=e.parse(i,2,G)))return null;var l=[],u=null;"interpolate-hcl"===r||"interpolate-lab"===r?u=q:e.expectedType&&"value"!==e.expectedType.kind&&(u=e.expectedType);for(var h=0;h<o.length;h+=2){var p=o[h],c=o[h+1],f=h+3,d=h+4;if("number"!=typeof p)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',f);if(l.length&&l[l.length-1][0]>=p)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',f);var y=e.parse(c,d,u);if(!y)return null;u=u||y.type,l.push([p,y])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"==typeof u.N?new Re(u,r,n,i,l):e.error("Type "+J(u)+" is not interpolatable.")},Re.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var i=this.input.evaluate(t);if(i<=e[0])return r[0].evaluate(t);var o=e.length;if(i>=e[o-1])return r[o-1].evaluate(t);var a=ae(e,i),s=e[a],l=e[a+1],u=Re.interpolationFactor(this.interpolation,i,s,l),h=r[a].evaluate(t),p=r[a+1].evaluate(t);return"interpolate"===this.operator?n[this.type.kind.toLowerCase()](h,p,u):"interpolate-hcl"===this.operator?Pe.reverse(Pe.interpolate(Pe.forward(h),Pe.forward(p),u)):Oe.reverse(Oe.interpolate(Oe.forward(h),Oe.forward(p),u))},Re.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1)t(r[e])},Re.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},Re.prototype.serialize=function(){var t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],r=0;r<this.labels.length;r++)e.push(this.labels[r],this.outputs[r].serialize());return e};const Me=Re;var Ae=function(t,e){this.type=t,this.args=e};Ae.parse=function(t,e){if(t.length<2)return e.error("Expectected at least one argument.");var r=null,n=e.expectedType;n&&"value"!==n.kind&&(r=n);for(var i=[],o=0,a=t.slice(1);o<a.length;o+=1){var s=a[o],l=e.parse(s,1+i.length,r,void 0,{typeAnnotation:"omit"});if(!l)return null;r=r||l.type,i.push(l)}O(r);var u=n&&i.some((function(t){return Q(n,t.type)}));return new Ae(u?V:r,i)},Ae.prototype.evaluate=function(t){for(var e,r=null,n=0,i=0,o=this.args;i<o.length;i+=1){if(n++,(r=o[i].evaluate(t))&&r instanceof lt&&!r.available&&(e||(e=r),r=null,n===this.args.length))return e;if(null!==r)break}return r},Ae.prototype.eachChild=function(t){this.args.forEach(t)},Ae.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},Ae.prototype.serialize=function(){var t=["coalesce"];return this.eachChild((function(e){t.push(e.serialize())})),t};const ke=Ae;var Fe=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};Fe.prototype.evaluate=function(t){return this.result.evaluate(t)},Fe.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e<r.length;e+=1)t(r[e][1]);t(this.result)},Fe.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found "+(t.length-1)+" instead.");for(var r=[],n=1;n<t.length-1;n+=2){var i=t[n];if("string"!=typeof i)return e.error("Expected string, but found "+typeof i+" instead.",n);if(/[^a-zA-Z0-9_]/.test(i))return e.error("Variable names must contain only alphanumeric characters or '_'.",n);var o=e.parse(t[n+1],n+1);if(!o)return null;r.push([i,o])}var a=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return a?new Fe(r,a):null},Fe.prototype.outputDefined=function(){return this.result.outputDefined()},Fe.prototype.serialize=function(){for(var t=["let"],e=0,r=this.bindings;e<r.length;e+=1){var n=r[e],i=n[0],o=n[1];t.push(i,o.serialize())}return t.push(this.result.serialize()),t};const Le=Fe;var Ze=function(t,e,r){this.type=t,this.index=e,this.input=r};Ze.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,G),n=e.parse(t[2],2,H(e.expectedType||V));if(!r||!n)return null;var i=n.type;return new Ze(i.itemType,r,n)},Ze.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e<0)throw new gt("Array index out of bounds: "+e+" < 0.");if(e>=r.length)throw new gt("Array index out of bounds: "+e+" > "+(r.length-1)+".");if(e!==Math.floor(e))throw new gt("Array index must be an integer, but found "+e+" instead.");return r[e]},Ze.prototype.eachChild=function(t){t(this.index),t(this.input)},Ze.prototype.outputDefined=function(){return!1},Ze.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};const De=Ze;var je=function(t,e){this.type=W,this.needle=t,this.haystack=e};je.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,V),n=e.parse(t[2],2,V);return r&&n?tt(r.type,[W,X,G,N,V])?new je(r,n):e.error("Expected first argument to be of type boolean, string, number or null, but found "+J(r.type)+" instead"):null},je.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(null==r)return!1;if(!et(e,["boolean","string","number","null"]))throw new gt("Expected first argument to be of type boolean, string, number or null, but found "+J(pt(e))+" instead.");if(!et(r,["string","array"]))throw new gt("Expected second argument to be of type array or string, but found "+J(pt(r))+" instead.");return r.indexOf(e)>=0},je.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},je.prototype.outputDefined=function(){return!0},je.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};const ze=je;var Ne=function(t,e,r){this.type=G,this.needle=t,this.haystack=e,this.fromIndex=r};Ne.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,V),n=e.parse(t[2],2,V);if(!r||!n)return null;if(!tt(r.type,[W,X,G,N,V]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+J(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,G);return i?new Ne(r,n,i):null}return new Ne(r,n)},Ne.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!et(e,["boolean","string","number","null"]))throw new gt("Expected first argument to be of type boolean, string, number or null, but found "+J(pt(e))+" instead.");if(!et(r,["string","array"]))throw new gt("Expected second argument to be of type array or string, but found "+J(pt(r))+" instead.");if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},Ne.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},Ne.prototype.outputDefined=function(){return!1},Ne.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};const Ge=Ne;var Xe=function(t,e,r,n,i,o){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=o};Xe.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!=1)return e.error("Expected an even number of arguments.");var r,n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);for(var i={},o=[],a=2;a<t.length-1;a+=2){var s=t[a],l=t[a+1];Array.isArray(s)||(s=[s]);var u=e.concat(a);if(0===s.length)return u.error("Expected at least one branch label.");for(var h=0,p=s;h<p.length;h+=1){var c=p[h];if("number"!=typeof c&&"string"!=typeof c)return u.error("Branch labels must be numbers or strings.");if("number"==typeof c&&Math.abs(c)>Number.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof c&&Math.floor(c)!==c)return u.error("Numeric branch labels must be integer values.");if(r){if(u.checkSubtype(r,pt(c)))return null}else r=pt(c);if(void 0!==i[String(c)])return u.error("Branch labels must be unique.");i[String(c)]=o.length}var f=e.parse(l,a,n);if(!f)return null;n=n||f.type,o.push(f)}var d=e.parse(t[1],1,V);if(!d)return null;var y=e.parse(t[t.length-1],t.length-1,n);return y?(O(r&&n),"value"!==d.type.kind&&e.concat(1).checkSubtype(r,d.type)?null:new Xe(r,n,d,i,o,y)):null},Xe.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(pt(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},Xe.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},Xe.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},Xe.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],r=[],n={},i=0,o=Object.keys(this.cases).sort();i<o.length;i+=1){var a=o[i];void 0===(p=n[this.cases[a]])?(n[this.cases[a]]=r.length,r.push([this.cases[a],[a]])):r[p][1].push(a)}for(var s=function(e){return"number"===t.inputType.kind?Number(e):e},l=0,u=r;l<u.length;l+=1){var h=u[l],p=h[0],c=h[1];1===c.length?e.push(s(c[0])):e.push(c.map(s)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};const We=Xe;var qe=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};qe.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found only "+(t.length-1)+".");if(t.length%2!=0)return e.error("Expected an odd number of arguments.");var r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(var n=[],i=1;i<t.length-1;i+=2){var o=e.parse(t[i],i,W);if(!o)return null;var a=e.parse(t[i+1],i+1,r);if(!a)return null;n.push([o,a]),r=r||a.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?(O(r),new qe(r,n,s)):null},qe.prototype.evaluate=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var n=r[e],i=n[0],o=n[1];if(i.evaluate(t))return o.evaluate(t)}return this.otherwise.evaluate(t)},qe.prototype.eachChild=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var n=r[e],i=n[0],o=n[1];t(i),t(o)}t(this.otherwise)},qe.prototype.outputDefined=function(){return this.branches.every((function(t){return t[0],t[1].outputDefined()}))&&this.otherwise.outputDefined()},qe.prototype.serialize=function(){var t=["case"];return this.eachChild((function(e){t.push(e.serialize())})),t};const Ye=qe;var Ve=function(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n};Ve.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,V),n=e.parse(t[2],2,G);if(!r||!n)return null;if(!tt(r.type,[H(V),X,V]))return e.error("Expected first argument to be of type array or string, but found "+J(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,G);return i?new Ve(r.type,r,n,i):null}return new Ve(r.type,r,n)},Ve.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!et(e,["string","array"]))throw new gt("Expected first argument to be of type array or string, but found "+J(pt(e))+" instead.");if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},Ve.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},Ve.prototype.outputDefined=function(){return!1},Ve.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};const Be=Ve;function Ue(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function Ke(t,e,r,n){return 0===n.compare(e,r)}function He(t,e,r){var n="=="!==t&&"!="!==t;return function(){function i(t,e,r){this.type=W,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}return i.parse=function(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");var r=t[0],o=e.parse(t[1],1,V);if(!o)return null;if(!Ue(r,o.type))return e.concat(1).error('"'+r+"\" comparisons are not supported for type '"+J(o.type)+"'.");var a=e.parse(t[2],2,V);if(!a)return null;if(!Ue(r,a.type))return e.concat(2).error('"'+r+"\" comparisons are not supported for type '"+J(a.type)+"'.");if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot compare types '"+J(o.type)+"' and '"+J(a.type)+"'.");n&&("value"===o.type.kind&&"value"!==a.type.kind?o=new _t(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new _t(o.type,[a])));var s=null;if(4===t.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot use collator to compare non-string types.");if(!(s=e.parse(t[3],3,B)))return null}return new i(o,a,s)},i.prototype.evaluate=function(i){var o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(n&&this.hasUntypedArgument){var s=pt(o),l=pt(a);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new gt('Expected arguments for "'+t+'" to be (string, string) or (number, number), but found ('+s.kind+", "+l.kind+") instead.")}if(this.collator&&!n&&this.hasUntypedArgument){var u=pt(o),h=pt(a);if("string"!==u.kind||"string"!==h.kind)return e(i,o,a)}return this.collator?r(i,o,a,this.collator.evaluate(i)):e(i,o,a)},i.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},i}()}var Je=He("==",(function(t,e,r){return e===r}),Ke),$e=He("!=",(function(t,e,r){return e!==r}),(function(t,e,r,n){return!Ke(0,e,r,n)})),Qe=He("<",(function(t,e,r){return e<r}),(function(t,e,r,n){return n.compare(e,r)<0})),tr=He(">",(function(t,e,r){return e>r}),(function(t,e,r,n){return n.compare(e,r)>0})),er=He("<=",(function(t,e,r){return e<=r}),(function(t,e,r,n){return n.compare(e,r)<=0})),rr=He(">=",(function(t,e,r){return e>=r}),(function(t,e,r,n){return n.compare(e,r)>=0})),nr=function(t,e,r,n,i){this.type=X,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};nr.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,G);if(!r)return null;var n=t[2];if("object"!=typeof n||Array.isArray(n))return e.error("NumberFormat options argument must be an object.");var i=null;if(n.locale&&!(i=e.parse(n.locale,1,X)))return null;var o=null;if(n.currency&&!(o=e.parse(n.currency,1,X)))return null;var a=null;if(n["min-fraction-digits"]&&!(a=e.parse(n["min-fraction-digits"],1,G)))return null;var s=null;return n["max-fraction-digits"]&&!(s=e.parse(n["max-fraction-digits"],1,G))?null:new nr(r,i,o,a,s)},nr.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},nr.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},nr.prototype.outputDefined=function(){return!1},nr.prototype.serialize=function(){var t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};const ir=nr;var or=function(t){this.type=G,this.input=t};or.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?e.error("Expected argument of type string or array, but found "+J(r.type)+" instead."):new or(r):null},or.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new gt("Expected value to be of type string or array, but found "+J(pt(e))+" instead.")},or.prototype.eachChild=function(t){t(this.input)},or.prototype.outputDefined=function(){return!1},or.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var ar={"==":Je,"!=":$e,">":tr,"<":Qe,">=":rr,"<=":er,array:_t,at:De,boolean:_t,case:Ye,coalesce:ke,collator:kt,format:bt,image:Ct,in:ze,"index-of":Ge,interpolate:Me,"interpolate-hcl":Me,"interpolate-lab":Me,length:or,let:Le,literal:dt,match:We,number:_t,"number-format":ir,object:_t,slice:Be,step:le,string:_t,"to-boolean":Tt,"to-color":Tt,"to-number":Tt,"to-string":Tt,var:re,within:Jt};function sr(t,e){var r=e[0],n=e[1],i=e[2],o=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var a=o?o.evaluate(t):1,s=ut(r,n,i,a);if(s)throw new gt(s);return new T(r/255*a,n/255*a,i/255*a,a)}function lr(t,e){return t in e}function ur(t,e){var r=e[t];return void 0===r?null:r}function hr(t){return{type:t}}Mt.register(ar,{error:[{kind:"error"},[X],function(t,e){var r=e[0];throw new gt(r.evaluate(t))}],typeof:[X,[V],function(t,e){return J(pt(e[0].evaluate(t)))}],"to-rgba":[H(G,4),[q],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[q,[G,G,G],sr],rgba:[q,[G,G,G,G],sr],has:{type:W,overloads:[[[X],function(t,e){return lr(e[0].evaluate(t),t.properties())}],[[X,Y],function(t,e){var r=e[0],n=e[1];return lr(r.evaluate(t),n.evaluate(t))}]]},get:{type:V,overloads:[[[X],function(t,e){return ur(e[0].evaluate(t),t.properties())}],[[X,Y],function(t,e){var r=e[0],n=e[1];return ur(r.evaluate(t),n.evaluate(t))}]]},"feature-state":[V,[X],function(t,e){return ur(e[0].evaluate(t),t.featureState||{})}],properties:[Y,[],function(t){return t.properties()}],"geometry-type":[X,[],function(t){return t.geometryType()}],id:[V,[],function(t){return t.id()}],zoom:[G,[],function(t){return t.globals.zoom}],pitch:[G,[],function(t){return t.globals.pitch||0}],"distance-from-center":[G,[],function(t){return t.distanceFromCenter()}],"heatmap-density":[G,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[G,[],function(t){return t.globals.lineProgress||0}],"sky-radial-progress":[G,[],function(t){return t.globals.skyRadialProgress||0}],accumulated:[V,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[G,hr(G),function(t,e){for(var r=0,n=0,i=e;n<i.length;n+=1)r+=i[n].evaluate(t);return r}],"*":[G,hr(G),function(t,e){for(var r=1,n=0,i=e;n<i.length;n+=1)r*=i[n].evaluate(t);return r}],"-":{type:G,overloads:[[[G,G],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)-n.evaluate(t)}],[[G],function(t,e){return-e[0].evaluate(t)}]]},"/":[G,[G,G],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)/n.evaluate(t)}],"%":[G,[G,G],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)%n.evaluate(t)}],ln2:[G,[],function(){return Math.LN2}],pi:[G,[],function(){return Math.PI}],e:[G,[],function(){return Math.E}],"^":[G,[G,G],function(t,e){var r=e[0],n=e[1];return Math.pow(r.evaluate(t),n.evaluate(t))}],sqrt:[G,[G],function(t,e){var r=e[0];return Math.sqrt(r.evaluate(t))}],log10:[G,[G],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN10}],ln:[G,[G],function(t,e){var r=e[0];return Math.log(r.evaluate(t))}],log2:[G,[G],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN2}],sin:[G,[G],function(t,e){var r=e[0];return Math.sin(r.evaluate(t))}],cos:[G,[G],function(t,e){var r=e[0];return Math.cos(r.evaluate(t))}],tan:[G,[G],function(t,e){var r=e[0];return Math.tan(r.evaluate(t))}],asin:[G,[G],function(t,e){var r=e[0];return Math.asin(r.evaluate(t))}],acos:[G,[G],function(t,e){var r=e[0];return Math.acos(r.evaluate(t))}],atan:[G,[G],function(t,e){var r=e[0];return Math.atan(r.evaluate(t))}],min:[G,hr(G),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[G,hr(G),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[G,[G],function(t,e){var r=e[0];return Math.abs(r.evaluate(t))}],round:[G,[G],function(t,e){var r=e[0].evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[G,[G],function(t,e){var r=e[0];return Math.floor(r.evaluate(t))}],ceil:[G,[G],function(t,e){var r=e[0];return Math.ceil(r.evaluate(t))}],"filter-==":[W,[X,V],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],"filter-id-==":[W,[V],function(t,e){var r=e[0];return t.id()===r.value}],"filter-type-==":[W,[X],function(t,e){var r=e[0];return t.geometryType()===r.value}],"filter-<":[W,[X,V],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i==typeof o&&i<o}],"filter-id-<":[W,[V],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n<i}],"filter->":[W,[X,V],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i==typeof o&&i>o}],"filter-id->":[W,[V],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n>i}],"filter-<=":[W,[X,V],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i==typeof o&&i<=o}],"filter-id-<=":[W,[V],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n<=i}],"filter->=":[W,[X,V],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i==typeof o&&i>=o}],"filter-id->=":[W,[V],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n>=i}],"filter-has":[W,[V],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[W,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[W,[H(X)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[W,[H(V)],function(t,e){return e[0].value.indexOf(t.id())>=0}],"filter-in-small":[W,[X,H(V)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])>=0}],"filter-in-large":[W,[X,H(V)],function(t,e){var r=e[0],n=e[1];return function(t,e,r,n){for(;r<=n;){var i=r+n>>1;if(e[i]===t)return!0;e[i]>t?n=i-1:r=i+1}return!1}(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:W,overloads:[[[W,W],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)&&n.evaluate(t)}],[hr(W),function(t,e){for(var r=0,n=e;r<n.length;r+=1)if(!n[r].evaluate(t))return!1;return!0}]]},any:{type:W,overloads:[[[W,W],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)||n.evaluate(t)}],[hr(W),function(t,e){for(var r=0,n=e;r<n.length;r+=1)if(n[r].evaluate(t))return!0;return!1}]]},"!":[W,[W],function(t,e){return!e[0].evaluate(t)}],"is-supported-script":[W,[X],function(t,e){var r=e[0],n=t.globals&&t.globals.isSupportedScript;return!n||n(r.evaluate(t))}],upcase:[X,[X],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[X,[X],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[X,hr(V),function(t,e){return e.map((function(e){return ct(e.evaluate(t))})).join("")}],"resolved-locale":[X,[B],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});const pr=ar;function cr(t){return{result:"success",value:t}}function fr(t){return{result:"error",value:t}}function dr(t){return!!t.expression&&t.expression.interpolated}function yr(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function gr(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function vr(t){return t}function mr(t,e){var r,n,o,a="color"===e.type,s=t.stops&&"object"==typeof t.stops[0][0],l=s||void 0!==t.property,u=s||!l,h=t.type||(dr(e)?"exponential":"interval");if(a&&((t=Z({},t)).stops&&(t.stops=t.stops.map((function(t){return[t[0],T.parse(t[1])]}))),t.default?t.default=T.parse(t.default):t.default=T.parse(e.default)),t.colorSpace&&"rgb"!==t.colorSpace&&!i[t.colorSpace])throw new Error("Unknown color space: "+t.colorSpace);if("exponential"===h)r=wr;else if("interval"===h)r=br;else if("categorical"===h){r=xr,n=Object.create(null);for(var p=0,c=t.stops;p<c.length;p+=1){var f=c[p];n[f[0]]=f[1]}o=typeof t.stops[0][0]}else{if("identity"!==h)throw new Error('Unknown function type "'+h+'"');r=Cr}if(s){for(var d={},y=[],g=0;g<t.stops.length;g++){var v=t.stops[g],m=v[0].zoom;void 0===d[m]&&(d[m]={zoom:m,type:t.type,property:t.property,default:t.default,stops:[]},y.push(m)),d[m].stops.push([v[0].value,v[1]])}for(var _=[],x=0,b=y;x<b.length;x+=1){var w=b[x];_.push([d[w].zoom,mr(d[w],e)])}var C={name:"linear"};return{kind:"composite",interpolationType:C,interpolationFactor:Me.interpolationFactor.bind(void 0,C),zoomStops:_.map((function(t){return t[0]})),evaluate:function(r,n){var i=r.zoom;return wr({stops:_,base:t.base},e,i).evaluate(i,n)}}}if(u){var E="exponential"===h?{name:"exponential",base:void 0!==t.base?t.base:1}:null;return{kind:"camera",interpolationType:E,interpolationFactor:Me.interpolationFactor.bind(void 0,E),zoomStops:t.stops.map((function(t){return t[0]})),evaluate:function(i){var a=i.zoom;return r(t,e,a,n,o)}}}return{kind:"source",evaluate:function(i,a){var s=a&&a.properties?a.properties[t.property]:void 0;return void 0===s?_r(t.default,e.default):r(t,e,s,n,o)}}}function _r(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function xr(t,e,r,n,i){return _r(typeof r===i?n[r]:void 0,t.default,e.default)}function br(t,e,r){if("number"!==yr(r))return _r(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[n-1][0])return t.stops[n-1][1];var i=ae(t.stops.map((function(t){return t[0]})),r);return t.stops[i][1]}function wr(t,e,r){var o=void 0!==t.base?t.base:1;if("number"!==yr(r))return _r(t.default,e.default);var a=t.stops.length;if(1===a)return t.stops[0][1];if(r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[a-1][0])return t.stops[a-1][1];var s=ae(t.stops.map((function(t){return t[0]})),r),l=function(t,e,r,n){var i=n-r,o=t-r;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}(r,o,t.stops[s][0],t.stops[s+1][0]),u=t.stops[s][1],h=t.stops[s+1][1],p=n[e.type]||vr;if(t.colorSpace&&"rgb"!==t.colorSpace){var c=i[t.colorSpace];p=function(t,e){return c.reverse(c.interpolate(c.forward(t),c.forward(e),l))}}return"function"==typeof u.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=u.evaluate.apply(void 0,t),n=h.evaluate.apply(void 0,t);if(void 0!==r&&void 0!==n)return p(r,n,l)}}:p(u,h,l)}function Cr(t,e,r){return"color"===e.type?r=T.parse(r):"formatted"===e.type?r=at.fromString(r.toString()):"resolvedImage"===e.type?r=lt.fromString(r.toString()):yr(r)===e.type||"enum"===e.type&&e.values[r]||(r=void 0),_r(r,t.default,e.default)}var Er=function(t,e){var r;this.expression=t,this._warningHistory={},this._evaluator=new Rt,this._defaultValue=e?"color"===(r=e).type&&(gr(r.default)||Array.isArray(r.default))?new T(0,0,0,0):"color"===r.type?T.parse(r.default)||null:void 0===r.default?null:r.default:null,this._enumValues=e&&"enum"===e.type?e.values:null};function Sr(t,e){var r=new ie(pr,[],e?function(t){var e={color:q,string:X,number:G,enum:X,boolean:W,formatted:U,resolvedImage:K};return"array"===t.type?H(e[t.value]||V,t.length):e[t.type]}(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return n?cr(new Er(n,e)):(O(r.errors.length>0),fr(r.errors))}Er.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,o,a,s){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null,this.expression.evaluate(this._evaluator)},Er.prototype.evaluate=function(t,e,r,n,i,o,a,s){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null;try{var l=this.expression.evaluate(this._evaluator);if(null==l||"number"==typeof l&&l!=l)return this._defaultValue;if(this._enumValues&&!(l in this._enumValues))throw new gt("Expected value to be one of "+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", ")+", but found "+JSON.stringify(l)+" instead.");return l}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}};var Tr=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Qt(e.expression)};Tr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,o)},Tr.prototype.evaluate=function(t,e,r,n,i,o){return this._styleExpression.evaluate(t,e,r,n,i,o)};var Or=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent="camera"!==t&&!Qt(e.expression),this.interpolationType=n};function Pr(t,e){if("error"===(t=Sr(t,e)).result)return t;var r,n=t.value.expression,i=$t(n);if(!i&&"data-driven"!==(r=e)["property-type"]&&"cross-faded-data-driven"!==r["property-type"])return fr([new D("","data expressions not supported")]);var o=te(n,["zoom","pitch","distance-from-center"]);if(!o&&!function(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}(e))return fr([new D("","zoom expressions not supported")]);var a=Ir(n);if(!a&&!o)return fr([new D("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(a instanceof D)return fr([a]);if(a instanceof Me&&!dr(e))return fr([new D("",'"interpolate" expressions cannot be used with this property')]);if(!a)return cr(new Tr(i?"constant":"source",t.value));var s=a instanceof Me?a.interpolation:void 0;return cr(new Or(i?"camera":"composite",t.value,a.labels,s))}Or.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,o)},Or.prototype.evaluate=function(t,e,r,n,i,o){return this._styleExpression.evaluate(t,e,r,n,i,o)},Or.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?Me.interpolationFactor(this.interpolationType,t,e,r):0};var Rr=function(t,e){this._parameters=t,this._specification=e,Z(this,mr(this._parameters,this._specification))};function Ir(t){var e=null;if(t instanceof Le)e=Ir(t.result);else if(t instanceof ke)for(var r=0,n=t.args;r<n.length;r+=1){var i=n[r];if(e=Ir(i))break}else(t instanceof le||t instanceof Me)&&t.input instanceof Mt&&"zoom"===t.input.name&&(e=t);return e instanceof D||t.eachChild((function(t){var r=Ir(t);r instanceof D?e=r:!e&&r?e=new D("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&r&&e!==r&&(e=new D("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),e}function Mr(t){if(Array.isArray(t))return t.map(Mr);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var r in t)e[r]=Mr(t[r]);return e}return function(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}(t)}Rr.deserialize=function(t){return new Rr(t._parameters,t._specification)},Rr.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var Ar=r(840);const kr=Ar,Fr=function(t,e){if(void 0===e&&(e="fill"),null==t)return{filter:function(){return!0},needGeometry:!1,needFeature:!1};Lr(t)||(t=Xr(t));var r=t,n=!0;try{n=function(t){if(!jr(t))return t;var e=Mr(t);return Dr(e),Zr(e)}(r)}catch(t){console.warn("Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n"+JSON.stringify(r,null,2)+"\n ")}var i,o=kr["filter_"+e],a=Sr(n,o);if("error"===a.result)throw new Error(a.value.map((function(t){return t.key+": "+t.message})).join(", "));i=function(t,e,r){return a.value.evaluate(t,e,{},r)};var s=null,l=null;if(n!==r){var u=Sr(r,o);if("error"===u.result)throw new Error(u.value.map((function(t){return t.key+": "+t.message})).join(", "));s=function(t,e,r,n,i){return u.value.evaluate(t,e,{},r,void 0,void 0,n,i)},l=!$t(u.value.expression)}return{filter:i,dynamicFilter:s||void 0,needGeometry:Gr(n),needFeature:!!l}};function Lr(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,r=t.slice(1);e<r.length;e+=1){var n=r[e];if(!Lr(n)&&"boolean"!=typeof n)return!1}return!0;default:return!0}}function Zr(t){if(!Array.isArray(t))return t;var e=function(t){if(zr.has(t[0]))for(var e=1;e<t.length;e++)if(jr(t[e]))return!0;return t}(t);return!0===e?e:e.map((function(t){return Zr(t)}))}function Dr(t){var e=!1,r=[];if("case"===t[0]){for(var n=1;n<t.length-1;n+=2)e=e||jr(t[n]),r.push(t[n+1]);r.push(t[t.length-1])}else if("match"===t[0]){e=e||jr(t[1]);for(var i=2;i<t.length-1;i+=2)r.push(t[i+1]);r.push(t[t.length-1])}else if("step"===t[0]){e=e||jr(t[1]);for(var o=1;o<t.length-1;o+=2)r.push(t[o+1])}e&&(t.length=0,t.push.apply(t,["any"].concat(r)));for(var a=1;a<t.length;a++)Dr(t[a])}function jr(t){if(!Array.isArray(t))return!1;if("pitch"===(e=t[0])||"distance-from-center"===e)return!0;for(var e,r=1;r<t.length;r++)if(jr(t[r]))return!0;return!1}var zr=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function Nr(t,e){return t<e?-1:t>e?1:0}function Gr(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(var e=1;e<t.length;e++)if(Gr(t[e]))return!0;return!1}function Xr(t){if(!t)return!0;var e,r=t[0];return t.length<=1?"any"!==r:"=="===r?Wr(t[1],t[2],"=="):"!="===r?Vr(Wr(t[1],t[2],"==")):"<"===r||">"===r||"<="===r||">="===r?Wr(t[1],t[2],r):"any"===r?(e=t.slice(1),["any"].concat(e.map(Xr))):"all"===r?["all"].concat(t.slice(1).map(Xr)):"none"===r?["all"].concat(t.slice(1).map(Xr).map(Vr)):"in"===r?qr(t[1],t.slice(2)):"!in"===r?Vr(qr(t[1],t.slice(2))):"has"===r?Yr(t[1]):"!has"===r?Vr(Yr(t[1])):"within"!==r||t}function Wr(t,e,r){switch(t){case"$type":return["filter-type-"+r,e];case"$id":return["filter-id-"+r,e];default:return["filter-"+r,t,e]}}function qr(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((function(t){return typeof t!=typeof e[0]}))?["filter-in-large",t,["literal",e.sort(Nr)]]:["filter-in-small",t,["literal",e]]}}function Yr(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Vr(t){return["!",t]}const Br=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Ur(t,e){var r={};for(var n in t)"ref"!==n&&(r[n]=t[n]);return Br.forEach((function(t){t in e&&(r[t]=e[t])})),r}var Kr=r(4376),Hr=r(9680),Jr="https://api.mapbox.com";function $r(t){var e="mapbox://";return 0!==t.indexOf(e)?"":t.slice(e.length)}function Qr(t,e){var r=$r(t);if(!r)return decodeURI(new URL(t,location.href).href);var n="styles/";if(0!==r.indexOf(n))throw new Error("unexpected style url: "+t);var i=r.slice(n.length);return Jr+"/styles/v1/"+i+"?&access_token="+e}function tn(t,e,r,n){var i=new URL(t,n),o=$r(t);return o?"https://{a-d}.tiles.mapbox.com/v4/"+o+"/{z}/{x}/{y}.vector.pbf?access_token="+e:e?(i.searchParams.set(r,e),decodeURI(i.href)):decodeURI(i.href)}function en(t){return t*Math.PI/180}var rn=function(){for(var t=[],e=78271.51696402048;t.length<=24;e/=2)t.push(e);return t}();function nn(t,e){if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas)return new OffscreenCanvas(t,e);var r=document.createElement("canvas");return r.width=t,r.height=e,r}var on={};function an(t,e,r){if(void 0===r&&(r={}),e in on)return on[e];var n=r.transformRequest&&r.transformRequest(e,t)||new Request(e);n.headers.get("Accept")||n.headers.set("Accept","application/json");var i=fetch(n).then((function(t){return delete on[e],t.ok?t.json():Promise.reject(new Error("Error fetching source "+e))})).catch((function(t){return delete on[e],Promise.reject(new Error("Error fetching source "+e))}));return on[e]=i,i}function sn(t,e){if("string"!=typeof t)return Promise.resolve(t);if(!t.trim().startsWith("{"))return an("Style",t=Qr(t,e.accessToken),e);try{var r=JSON.parse(t);return Promise.resolve(r)}catch(t){return Promise.reject(t)}}var ln={};function un(t,e,r){void 0===r&&(r={});var n=[e,JSON.stringify(t)].toString(),i=ln[n];if(!i||r.transformRequest){var o=t.url;if(o&&!t.tiles){var a=tn(o,r.accessToken,r.accessTokenParam||"access_token",e||location.href);i=o.startsWith("mapbox://")?Promise.resolve(Object.assign({},t,{url:void 0,tiles:a})):an("Source",a,r).then((function(t){for(var e=0,n=t.tiles.length;e<n;++e){var i=t.tiles[e];if(r.transformRequest){var o=r.transformRequest(a,"Source");o&&(a=o.url)}var s=tn(i,r.accessToken,r.accessTokenParam||"access_token",a);if(r.transformRequest){var l=r.transformRequest(s,"Tiles");l instanceof Request&&(s=decodeURI(l.url))}t.tiles[e]=s}return Promise.resolve(t)}))}else t=Object.assign({},t,{tiles:t.tiles.map((function(t){return tn(t,r.accessToken,r.accessTokenParam||"access_token",e||location.href)}))}),i=Promise.resolve(Object.assign({},t));ln[n]=i}return i}var hn,pn=Array(256).join(" ");function cn(t,e){if(e>=.05){for(var r="",n=t.split("\n"),i=pn.slice(0,Math.round(e/.1)),o=0,a=n.length;o<a;++o)o>0&&(r+="\n"),r+=n[o].split("").join(i);return r}return t}function fn(){return hn||(hn=nn(1,1).getContext("2d")),hn}function dn(t,e){return fn().measureText(t).width+(t.length-1)*e}var yn={};function gn(t,e,r,n){if(-1!==t.indexOf("\n")){for(var i=t.split("\n"),o=[],a=0,s=i.length;a<s;++a)o.push(gn(i[a],e,r,n));return o.join("\n")}var l=r+","+e+","+t+","+n,u=yn[l];if(!u){var h=t.split(" ");if(h.length>1){var p=fn();p.font=e;for(var c=p.measureText("M").width*r,f="",d=[],y=0,g=h.length;y<g;++y){var v=h[y],m=f+(f?" ":"")+v;dn(m,n)<=c?f=m:(f&&d.push(f),f=v)}f&&d.push(f);for(var _=0,x=d.length;_<x&&x>1;++_){var b=d[_];if(dn(b,n)<.35*c){var w=_>0?dn(d[_-1],n):1/0,C=_<x-1?dn(d[_+1],n):1/0;d.splice(_,1),x-=1,w<C?(d[_-1]+=" "+b,_-=1):d[_]=b+" "+d[_]}}for(var E=0,S=d.length-1;E<S;++E){var T=d[E],O=d[E+1];if(dn(T,n)>.7*c&&dn(O,n)<.6*c){var P=T.split(" "),R=P.pop();dn(R,n)<.2*c&&(d[E]=P.join(" "),d[E+1]=R+" "+O),S-=1}}u=d.join("\n")}else u=t;u=cn(u,n),yn[l]=u}return u}var vn,mn=/font-family: ?([^;]*);/,_n=/("|')/g;function xn(t){if(!vn){vn={};for(var e=document.styleSheets,r=0,n=e.length;r<n;++r){var i=e[r];try{var o=i.rules||i.cssRules;if(o)for(var a=0,s=o.length;a<s;++a){var l=o[a];if(5==l.type){var u=l.cssText.match(mn);vn[u[1].replace(_n,"")]=!0}}}catch(t){}}}return t in vn}var bn={};function wn(t){var e=t.toString();if(e in bn)return bn[e];for(var r=[],n=0,i=t.length;n<i;++n){t[n]=t[n].replace("Arial Unicode MS","Arial");var o=t[n],a=Kr(o,1);(0,Hr.Qx)(a);var s=a.split(" ");r.push([s.slice(3).join(" ").replace(/"/g,""),s[1],s[0]])}for(var l=0,u=r.length;l<u;++l){var h=r[l],p=h[0];if(!xn(p)&&100!==Hr.sG.get(h[2]+"\n"+h[1]+" \n"+p)){var c="https://fonts.googleapis.com/css?family="+p.replace(/ /g,"+")+":"+h[1]+h[2];if(!document.querySelector('link[href="'+c+'"]')){var f=document.createElement("link");f.href=c,f.rel="stylesheet",document.head.appendChild(f)}}}return bn[e]=t,t}var Cn,En,Sn={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},Tn={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},On={},Pn={zoom:0};function Rn(t,e,r,n,i,o,a){var s=t.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[s]||(o[s]={});var l,u=o[s];if(!u[r]){var h=(t[e]||On)[r],p=Ar[e+"_"+t.type][r];void 0===h&&(h=p.default);var c=(l=h,Array.isArray(l)&&l.length>0&&"string"==typeof l[0]&&l[0]in pr);if(!c&&gr(h)&&(h=function(t,e){var r=t.stops;if(!r)return function(t,e){var r=["get",t.property];if(void 0===t.default)return"string"===e.type?["string",r]:r;if("enum"===e.type)return["match",r,Object.keys(e.values),r,t.default];var n=["color"===e.type?"to-color":e.type,r,P(t.default)];return"array"===e.type&&n.splice(1,0,e.value,e.length||null),n}(t,e);var n=r&&"object"==typeof r[0][0],i=n||void 0!==t.property,o=n||!i;return r=r.map((function(t){return!i&&e.tokens&&"string"==typeof t[1]?[t[0],L(t[1])]:[t[0],P(t[1])]})),n?function(t,e,r){for(var n={},i={},o=[],a=0;a<r.length;a++){var s=r[a],l=s[0].zoom;void 0===n[l]&&(n[l]={zoom:l,type:t.type,property:t.property,default:t.default},i[l]=[],o.push(l)),i[l].push([s[0].value,s[1]])}if("exponential"===F({},e)){for(var u=[R(t),["linear"],["zoom"]],h=0,p=o;h<p.length;h+=1){var c=p[h];k(u,c,M(n[c],e,i[c]),!1)}return u}for(var f=["step",["zoom"]],d=0,y=o;d<y.length;d+=1){var g=y[d];k(f,g,M(n[g],e,i[g]),!0)}return A(f),f}(t,e,r):o?function(t,e,r,n){void 0===n&&(n=["zoom"]);var i,o=F(t,e),a=!1;if("interval"===o)i=["step",n],a=!0;else{if("exponential"!==o)throw new Error('Unknown zoom function type "'+o+'"');var s=void 0!==t.base?t.base:1;i=[R(t),1===s?["linear"]:["exponential",s],n]}for(var l=0,u=r;l<u.length;l+=1){var h=u[l];k(i,h[0],h[1],a)}return A(i),i}(t,e,r):M(t,e,r)}(h,p),c=!0),c){var f=function(t,e){var r=Pr(t,e);if("error"===r.result)throw new Error(r.value.map((function(t){return t.key+": "+t.message})).join(", "));return r.value}(h,p);u[r]=f.evaluate.bind(f)}else"color"==p.type&&(h=T.parse(h)),u[r]=function(){return h}}return Pn.zoom=n,u[r](Pn,i,a)}function In(t,e,r,n){return Rn(t,"layout","icon-allow-overlap",e,r,n)?Rn(t,"layout","icon-ignore-placement",e,r,n)?"none":"obstacle":"declutter"}function Mn(t,e,r,n,i){return i||console.warn("No filterCache provided to evaluateFilter()"),t in i||(i[t]=Fr(e).filter),Pn.zoom=n,i[t](Pn,r)}function An(t,e){if(t){if(0===t.a||0===e)return;var r=t.a;return e=void 0===e?1:e,0===r?"transparent":"rgba("+Math.round(255*t.r/r)+","+Math.round(255*t.g/r)+","+Math.round(255*t.b/r)+","+r*e+")"}return t}var kn=/\{[^{}}]*\}/g;function Fn(t,e){return t.replace(kn,(function(t){return e[t.slice(1,-1)]||""}))}function Ln(t,e,r,n,i,l,u){if(void 0===n&&(n=rn),void 0===i&&(i=void 0),void 0===l&&(l=void 0),void 0===u&&(u=void 0),"string"==typeof e&&(e=JSON.parse(e)),8!=e.version)throw new Error("glStyle version 8 required.");var h,p;if(l)if("undefined"!=typeof Image){var c=new Image;c.crossOrigin="anonymous",c.onload=function(){h=c,p=[c.width,c.height],t.changed(),c.onload=null},c.src=l}else if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){var f=self;f.postMessage({action:"loadImage",src:l}),f.addEventListener("message",(function(t){"imageLoaded"===t.data.action&&t.data.src===l&&(h=t.data.image,p=[h.width,h.height])}))}for(var d,y=function(t){t=t.slice();for(var e=Object.create(null),r=0;r<t.length;r++)e[t[r].id]=t[r];for(var n=0;n<t.length;n++)"ref"in t[n]&&(t[n]=Ur(t[n],e[t[n].ref]));return t}(e.layers),g={},v=[],b={},w={},E={},S={},T=0,O=y.length;T<O;++T){var P=y[T],R=P.id;if("string"==typeof r&&P.source==r||-1!==r.indexOf(R)){var I=P["source-layer"];if(d){if(P.source!==d)throw new Error('Layer "'+R+'" does not use source "'+d)}else{d=P.source;var M=e.sources[d];if(!M)throw new Error('Source "'+d+'" is not defined');var A=M.type;if("vector"!==A&&"geojson"!==A)throw new Error('Source "'+d+'" is not of type "vector" or "geojson", but "'+A+'"')}var k=g[I];k||(k=[],g[I]=k),k.push({layer:P,index:T}),v.push(R)}}var F=new _.Z,L=new a.Z,Z=[],D=function(e,r){var l=e.getProperties(),c=g[l.layer];if(c){var f=n.indexOf(r);-1==f&&(f=function(t,e){for(var r=0,n=e.length;r<n;++r)if(e[r]<t&&r+1<n){var i=e[r]/e[r+1];return r+Math.log(e[r]/t)/Math.log(i)}return n-1}(r,n));for(var d=Sn[e.getGeometry().getType()],y={properties:l,type:d},v=t.get("mapbox-featurestate")[e.getId()],T=-1,O=0,P=c.length;O<P;++O){var R=c[O],I=R.layer,M=I.id,A=I.layout||On,k=I.paint||On;if(!("none"===A.visibility||"minzoom"in I&&f<I.minzoom||"maxzoom"in I&&f>=I.maxzoom)){var D=I.filter;if(!D||Mn(M,D,y,f,S)){I;var j=void 0,z=void 0,N=void 0,G=void 0,X=void 0,W=void 0,q=R.index;if(3==d&&("fill"==I.type||"fill-extrusion"==I.type))if(z=Rn(I,"paint",I.type+"-opacity",f,y,E,v),I.type+"-pattern"in k){var Y=Rn(I,"paint",I.type+"-pattern",f,y,E,v);if(Y){var V="string"==typeof Y?Fn(Y,l):Y.toString();if(h&&i&&i[V]){++T,(W=Z[T])&&W.getFill()&&!W.getStroke()&&!W.getText()||(W=new x.ZP({fill:new a.Z}),Z[T]=W),N=W.getFill(),W.setZIndex(q);var B=V+"."+z,U=w[B];if(!U){var K=i[V],H=nn(K.width,K.height),J=H.getContext("2d");J.globalAlpha=z,J.drawImage(h,K.x,K.y,K.width,K.height,0,0,K.width,K.height),U=J.createPattern(H,"repeat"),w[B]=U}N.setColor(U)}}}else j=An(Rn(I,"paint",I.type+"-color",f,y,E,v),z),I.type+"-outline-color"in k&&(X=An(Rn(I,"paint",I.type+"-outline-color",f,y,E,v),z)),X||(X=j),(j||X)&&(++T,(!(W=Z[T])||j&&!W.getFill()||!j&&W.getFill()||X&&!W.getStroke()||!X&&W.getStroke()||W.getText())&&(W=new x.ZP({fill:j?new a.Z:void 0,stroke:X?new _.Z:void 0}),Z[T]=W),j&&(N=W.getFill()).setColor(j),X&&((G=W.getStroke()).setColor(X),G.setWidth(.5)),W.setZIndex(q));if(1!=d&&"line"==I.type){j=!("line-pattern"in k)&&"line-color"in k?An(Rn(I,"paint","line-color",f,y,E,v),Rn(I,"paint","line-opacity",f,y,E,v)):void 0;var $=Rn(I,"paint","line-width",f,y,E,v);j&&$>0&&(++T,(W=Z[T])&&W.getStroke()&&!W.getFill()&&!W.getText()||(W=new x.ZP({stroke:new _.Z}),Z[T]=W),(G=W.getStroke()).setLineCap(Rn(I,"layout","line-cap",f,y,E,v)),G.setLineJoin(Rn(I,"layout","line-join",f,y,E,v)),G.setMiterLimit(Rn(I,"layout","line-miter-limit",f,y,E,v)),G.setColor(j),G.setWidth($),G.setLineDash(k["line-dasharray"]?Rn(I,"paint","line-dasharray",f,y,E,v).map((function(t){return t*$})):null),W.setZIndex(q))}var Q=!1,tt=null,et=0,rt=void 0,nt=void 0,it=void 0;if((1==d||2==d)&&"icon-image"in A){var ot=Rn(I,"layout","icon-image",f,y,E,v);if(ot){rt="string"==typeof ot?Fn(ot,l):ot.toString();var at=void 0;if(h&&i&&i[rt]){var st=Rn(I,"layout","icon-rotation-alignment",f,y,E,v);if(2==d){var lt=e.getGeometry();if(lt.getFlatMidpoint||lt.getFlatMidpoints){var ut=lt.getExtent();if(Math.sqrt(Math.max(Math.pow((ut[2]-ut[0])/r,2),Math.pow((ut[3]-ut[1])/r,2)))>150){var ht="MultiLineString"===lt.getType()?lt.getFlatMidpoints():lt.getFlatMidpoint();if(En||(En=new m("Point",Cn=[NaN,NaN],[],{},null)),at=En,Cn[0]=ht[0],Cn[1]=ht[1],"line"===Rn(I,"layout","symbol-placement",f,y,E,v)&&"map"===st)for(var pt=lt.getStride(),ct=lt.getFlatCoordinates(),ft=0,dt=ct.length-pt;ft<dt;ft+=pt){var yt=ct[ft],gt=ct[ft+1],vt=ct[ft+pt],mt=ct[ft+pt+1],_t=Math.min(yt,vt),xt=Math.min(gt,mt),bt=Math.max(yt,vt),wt=Math.max(gt,mt);if(ht[0]>=_t&&ht[0]<=bt&&ht[1]>=xt&&ht[1]<=wt){et=Math.atan2(gt-mt,vt-yt);break}}}}}if(2!==d||at){var Ct=Rn(I,"layout","icon-size",f,y,E,v),Et=void 0!==k["icon-color"]?Rn(I,"paint","icon-color",f,y,E,v):null;if(!Et||0!==Et.a){var St=rt+"."+Ct;if(null!==Et&&(St+="."+Et),!(nt=b[St])){var Tt=i[rt],Ot=In(I,f,y,E);nt=new s.Z({color:Et?[255*Et.r,255*Et.g,255*Et.b,Et.a]:void 0,img:h,imgSize:p,size:[Tt.width,Tt.height],offset:[Tt.x,Tt.y],rotateWithView:"map"===st,scale:Ct/Tt.pixelRatio,displacement:"icon-offset"in A?Rn(I,"layout","icon-offset",f,y,E,v).map((function(t){return-t*Tt.pixelRatio})):void 0,declutterMode:Ot}),b[St]=nt}}nt&&(++T,(W=Z[T])&&W.getImage()&&!W.getFill()&&!W.getStroke()||(W=new x.ZP,Z[T]=W),W.setGeometry(at),nt.setRotation(et+en(Rn(I,"layout","icon-rotate",f,y,E,v))),nt.setOpacity(Rn(I,"paint","icon-opacity",f,y,E,v)),nt.setAnchor(Tn[Rn(I,"layout","icon-anchor",f,y,E,v)]),W.setImage(nt),tt=W.getText(),W.setText(void 0),W.setZIndex(q),Q=!0,it=!1)}else it=!0}}}if(1==d&&"circle"===I.type){++T,(W=Z[T])&&W.getImage()&&!W.getFill()&&!W.getStroke()||(W=new x.ZP,Z[T]=W);var Pt="circle-radius"in k?Rn(I,"paint","circle-radius",f,y,E,v):5,Rt=An(Rn(I,"paint","circle-stroke-color",f,y,E,v),Rn(I,"paint","circle-stroke-opacity",f,y,E,v)),It=An(Rn(I,"paint","circle-color",f,y,E,v),Rn(I,"paint","circle-opacity",f,y,E,v)),Mt=Rn(I,"paint","circle-stroke-width",f,y,E,v),At=Pt+"."+Rt+"."+It+"."+Mt;(nt=b[At])||(nt=new o.Z({radius:Pt,stroke:Rt&&Mt>0?new _.Z({width:Mt,color:Rt}):void 0,fill:It?new a.Z({color:It}):void 0,declutterMode:"none"}),b[At]=nt),W.setImage(nt),tt=W.getText(),W.setText(void 0),W.setGeometry(void 0),W.setZIndex(q),Q=!0}var kt=void 0,Ft=void 0,Lt=void 0,Zt=void 0,Dt=void 0,jt=void 0;if("text-field"in A){Zt=Math.round(Rn(I,"layout","text-size",f,y,E,v));var zt=Rn(I,"layout","text-font",f,y,E,v);Lt=Rn(I,"layout","text-line-height",f,y,E,v),(Ft=Kr(u?u(zt):zt,Zt,Lt)).includes("sans-serif")||(Ft+=",sans-serif"),Dt=Rn(I,"layout","text-letter-spacing",f,y,E,v),jt=Rn(I,"layout","text-max-width",f,y,E,v);var Nt=Rn(I,"layout","text-field",f,y,E,v);kt="object"==typeof Nt&&Nt.sections?1===Nt.sections.length?Nt.toString():Nt.sections.reduce((function(t,e,r){var n=e.fontStack?e.fontStack.split(","):zt,i=Kr(u?u(n):n,Zt*(e.scale||1),Lt),o=e.text;if("\n"===o)return t.push("\n",""),t;if(2!=d){for(var a=0,s=(o=gn(o,i,jt,Dt).split("\n")).length;a<s;++a)a>0&&t.push("\n",""),t.push(o[a],i);return t}t.push(cn(o,Dt),i)}),[]):Fn(Nt,l).trim(),z=Rn(I,"paint","text-opacity",f,y,E,v)}if(kt&&z&&!it){Q||(++T,(W=Z[T])&&W.getText()&&!W.getFill()&&!W.getStroke()||(W=new x.ZP,Z[T]=W),W.setImage(void 0),W.setGeometry(void 0)),W.getText()||W.setText(tt||new C({padding:[2,2,2,2]})),tt=W.getText();var Gt=A["text-transform"];"uppercase"==Gt?kt=Array.isArray(kt)?kt.map((function(t,e){return e%2?t:t.toUpperCase()})):kt.toUpperCase():"lowercase"==Gt&&(kt=Array.isArray(kt)?kt.map((function(t,e){return e%2?t:t.toLowerCase()})):kt.toLowerCase());var Xt=Array.isArray(kt)?kt:2==d?cn(kt,Dt):gn(kt,Ft,jt,Dt);tt.setText(Xt),tt.setFont(Ft),tt.setRotation(en(Rn(I,"layout","text-rotate",f,y,E,v)));var Wt=Rn(I,"layout","text-anchor",f,y,E,v),qt=Q||1==d?"point":Rn(I,"layout","symbol-placement",f,y,E,v);tt.setPlacement(qt),tt.setOverflow("point"===qt);var Yt=Rn(I,"paint","text-halo-width",f,y,E,v),Vt=Rn(I,"layout","text-offset",f,y,E,v),Bt=Rn(I,"paint","text-translate",f,y,E,v),Ut=0,Kt=0;if("point"==qt){var Ht="center";-1!==Wt.indexOf("left")?(Ht="left",Kt=Yt):-1!==Wt.indexOf("right")&&(Ht="right",Kt=-Yt),tt.setTextAlign(Ht);var Jt=Rn(I,"layout","text-rotation-alignment",f,y,E,v);tt.setRotateWithView("map"==Jt)}else tt.setMaxAngle(en(Rn(I,"layout","text-max-angle",f,y,E,v))*kt.length/Xt.length),tt.setTextAlign(),tt.setRotateWithView(!1);var $t="middle";0==Wt.indexOf("bottom")?($t="bottom",Ut=-Yt-.5*(Lt-1)*Zt):0==Wt.indexOf("top")&&($t="top",Ut=Yt+.5*(Lt-1)*Zt),tt.setTextBaseline($t),tt.setOffsetX(Vt[0]*Zt+Kt+Bt[0]),tt.setOffsetY(Vt[1]*Zt+Ut+Bt[1]),L.setColor(An(Rn(I,"paint","text-color",f,y,E,v),z)),tt.setFill(L);var Qt=An(Rn(I,"paint","text-halo-color",f,y,E,v),z);if(Qt){F.setColor(Qt),Yt*=2;var te=.5*Zt;F.setWidth(Yt<=te?Yt:te),tt.setStroke(F)}else tt.setStroke(void 0);var ee=Rn(I,"layout","text-padding",f,y,E,v),re=tt.getPadding();ee!==re[0]&&(re[0]=ee,re[1]=ee,re[2]=ee,re[3]=ee),W.setZIndex(q)}}}}return T>-1?(Z.length=T+1,Z):void 0}};return t.setStyle(D),t.set("mapbox-source",d),t.set("mapbox-layers",v),t.set("mapbox-featurestate",{}),D}var Zn,Dn=r(8833),jn=r(5817),zn=r(8476),Nn=r(8132),Gn=r(7659),Xn=r(9468),Wn=r(8264),qn=r(9455),Yn=r(1879),Vn=r(5828),Bn=r(544),Un=r(8430),Kn=r(9751),Hn=r(7704),Jn=(Zn=function(t,e){return Zn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Zn(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Zn(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function $n(t,e,r){if(3===t){var n={keys:[],values:[],features:[]},i=r.readVarint()+r.pos;r.readFields(Qn,n,i),n.length=n.features.length,n.length&&(e[n.name]=n)}}function Qn(t,e,r){if(15===t)e.version=r.readVarint();else if(1===t)e.name=r.readString();else if(5===t)e.extent=r.readVarint();else if(2===t)e.features.push(r.pos);else if(3===t)e.keys.push(r.readString());else if(4===t){for(var n=null,i=r.readVarint()+r.pos;r.pos<i;)n=1==(t=r.readVarint()>>3)?r.readString():2===t?r.readFloat():3===t?r.readDouble():4===t?r.readVarint64():5===t?r.readVarint():6===t?r.readSVarint():7===t?r.readBoolean():null;e.values.push(n)}}function ti(t,e,r){if(1==t)e.id=r.readVarint();else if(2==t)for(var n=r.readVarint()+r.pos;r.pos<n;){var i=e.layer.keys[r.readVarint()],o=e.layer.values[r.readVarint()];e.properties[i]=o}else 3==t?e.type=r.readVarint():4==t&&(e.geometry=r.pos)}function ei(t,e,r){t.pos=e.features[r];var n=t.readVarint()+t.pos,i={layer:e,type:0,properties:{}};return t.readFields(ti,i,n),i}const ri=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.dataProjection=new Bn.Z({code:"",units:Un.ZP.TILE_PIXELS}),r.featureClass_=n.featureClass?n.featureClass:m,r.geometryName_=n.geometryName,r.layerName_=n.layerName?n.layerName:"layer",r.layers_=n.layers?n.layers:null,r.idProperty_=n.idProperty,r.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"],r}return Jn(e,t),e.prototype.readRawGeometry_=function(t,e,r,n){t.pos=e.geometry;for(var i=t.readVarint()+t.pos,o=1,a=0,s=0,l=0,u=0,h=0;t.pos<i;){if(!a){var p=t.readVarint();o=7&p,a=p>>3}a--,1===o||2===o?(s+=t.readSVarint(),l+=t.readSVarint(),1===o&&u>h&&(n.push(u),h=u),r.push(s,l),u+=2):7===o?u>h&&(r.push(r[h],r[h+1]),u+=2):(0,Kn.h)(!1,59)}u>h&&(n.push(u),h=u)},e.prototype.createFeature_=function(t,e,r){var n,i=e.type;if(0===i)return null;var o,a=e.properties;this.idProperty_?(o=a[this.idProperty_],delete a[this.idProperty_]):o=e.id,a[this.layerName_]=e.layer.name;var s=[],l=[];this.readRawGeometry_(t,e,s,l);var u=function(t,e){var r;return 1===t?r=1===e?"Point":"MultiPoint":2===t?r=1===e?"LineString":"MultiLineString":3===t&&(r="Polygon"),r}(i,l.length);if(this.featureClass_===m)(n=new this.featureClass_(u,s,l,a,o)).transform(r.dataProjection);else{var h=void 0;if("Polygon"==u){var p=(0,Hn.Q3)(s,l);h=p.length>1?new Wn.Z(s,zn.Z.XY,p):new Vn.ZP(s,zn.Z.XY,l)}else h="Point"===u?new Yn.Z(s,zn.Z.XY):"LineString"===u?new Nn.Z(s,zn.Z.XY):"MultiPoint"===u?new Xn.Z(s,zn.Z.XY):"MultiLineString"===u?new Gn.Z(s,zn.Z.XY,l):null;n=new(0,this.featureClass_),this.geometryName_&&n.setGeometryName(this.geometryName_);var c=(0,jn.fI)(h,!1,r);n.setGeometry(c),void 0!==o&&n.setId(o),n.setProperties(a,!0)}return n},e.prototype.getType=function(){return"arraybuffer"},e.prototype.readFeatures=function(t,e){var r=this.layers_,n=this.adaptOptions(e),i=(0,c.U2)(n.dataProjection);i.setWorldExtent(n.extent),n.dataProjection=i;var o=new qn(t),a=o.readFields($n,{}),s=[];for(var l in a)if(!r||-1!=r.indexOf(l)){var u=a[l],h=u?[0,0,u.extent,u.extent]:null;i.setExtent(h);for(var p=0,f=u.length;p<f;++p){var d=ei(o,u,p),y=this.createFeature_(o,d,n);null!==y&&s.push(y)}}return s},e.prototype.readProjection=function(t){return this.dataProjection},e.prototype.setLayers=function(t){this.layers_=t},e}(jn.ZP);var ni=r(6219),ii=r(8441),oi=r(7348),ai=r(7344);function si(t,e,r,n){return void 0!==n?(n[0]=t,n[1]=e,n[2]=r,n):[t,e,r]}function li(t,e,r){return t+"/"+e+"/"+r}function ui(t){return li(t[0],t[1],t[2])}function hi(t){return t.split("/").map(Number)}var pi=r(8797),ci=[0,0,0];const fi=function(){function t(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,(0,Kn.h)((0,h.pT)(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(var r=0,n=this.resolutions_.length-1;r<n;++r)if(e){if(this.resolutions_[r]/this.resolutions_[r+1]!==e){e=void 0;break}}else e=this.resolutions_[r]/this.resolutions_[r+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,(0,Kn.h)(this.origins_.length==this.resolutions_.length,20));var i=t.extent;void 0===i||this.origin_||this.origins_||(this.origin_=(0,u.rL)(i)),(0,Kn.h)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,(0,Kn.h)(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:oi.S,(0,Kn.h)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==i?i:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map((function(t,e){var r=new ii.Z(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(i){var n=this.getTileRangeForExtentAndZ(i,e);r.minX=Math.max(n.minX,r.minX),r.maxX=Math.min(n.maxX,r.maxX),r.minY=Math.max(n.minY,r.minY),r.maxY=Math.min(n.maxY,r.maxY)}return r}),this):i&&this.calculateTileRanges_(i)}return t.prototype.forEachTileCoord=function(t,e,r){for(var n=this.getTileRangeForExtentAndZ(t,e),i=n.minX,o=n.maxX;i<=o;++i)for(var a=n.minY,s=n.maxY;a<=s;++a)r([e,i,a])},t.prototype.forEachTileCoordParentTileRange=function(t,e,r,n){var i,o,a,s=null,l=t[0]-1;for(2===this.zoomFactor_?(o=t[1],a=t[2]):s=this.getTileCoordExtent(t,n);l>=this.minZoom;){if(2===this.zoomFactor_?(o=Math.floor(o/2),a=Math.floor(a/2),i=(0,ii.T)(o,o,a,a,r)):i=this.getTileRangeForExtentAndZ(s,l,r),e(l,i))return!0;--l}return!1},t.prototype.getExtent=function(){return this.extent_},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.getMinZoom=function(){return this.minZoom},t.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},t.prototype.getResolution=function(t){return this.resolutions_[t]},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getTileCoordChildTileRange=function(t,e,r){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var n=2*t[1],i=2*t[2];return(0,ii.T)(n,n+1,i,i+1,e)}var o=this.getTileCoordExtent(t,r||this.tmpExtent_);return this.getTileRangeForExtentAndZ(o,t[0]+1,e)}return null},t.prototype.getTileRangeForTileCoordAndZ=function(t,e,r){if(e>this.maxZoom||e<this.minZoom)return null;var n=t[0],i=t[1],o=t[2];if(e===n)return(0,ii.T)(i,o,i,o,r);if(this.zoomFactor_){var a=Math.pow(this.zoomFactor_,e-n),s=Math.floor(i*a),l=Math.floor(o*a);if(e<n)return(0,ii.T)(s,s,l,l,r);var u=Math.floor(a*(i+1))-1,h=Math.floor(a*(o+1))-1;return(0,ii.T)(s,u,l,h,r)}var p=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(p,e,r)},t.prototype.getTileRangeExtent=function(t,e,r){var n=this.getOrigin(t),i=this.getResolution(t),o=(0,w.Pq)(this.getTileSize(t),this.tmpSize_),a=n[0]+e.minX*o[0]*i,s=n[0]+(e.maxX+1)*o[0]*i,l=n[1]+e.minY*o[1]*i,h=n[1]+(e.maxY+1)*o[1]*i;return(0,u.T9)(a,l,s,h,r)},t.prototype.getTileRangeForExtentAndZ=function(t,e,r){var n=ci;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,n);var i=n[1],o=n[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,n),(0,ii.T)(i,n[1],o,n[2],r)},t.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),r=this.getResolution(t[0]),n=(0,w.Pq)(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*n[0]*r,e[1]-(t[2]+.5)*n[1]*r]},t.prototype.getTileCoordExtent=function(t,e){var r=this.getOrigin(t[0]),n=this.getResolution(t[0]),i=(0,w.Pq)(this.getTileSize(t[0]),this.tmpSize_),o=r[0]+t[1]*i[0]*n,a=r[1]-(t[2]+1)*i[1]*n,s=o+i[0]*n,l=a+i[1]*n;return(0,u.T9)(o,a,s,l,e)},t.prototype.getTileCoordForCoordAndResolution=function(t,e,r){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,r)},t.prototype.getTileCoordForXYAndResolution_=function(t,e,r,n,i){var o=this.getZForResolution(r),a=r/this.getResolution(o),s=this.getOrigin(o),l=(0,w.Pq)(this.getTileSize(o),this.tmpSize_),u=a*(t-s[0])/r/l[0],h=a*(s[1]-e)/r/l[1];return n?(u=(0,ai.mD)(u,5)-1,h=(0,ai.mD)(h,5)-1):(u=(0,ai.GW)(u,5),h=(0,ai.GW)(h,5)),si(o,u,h,i)},t.prototype.getTileCoordForXYAndZ_=function(t,e,r,n,i){var o=this.getOrigin(r),a=this.getResolution(r),s=(0,w.Pq)(this.getTileSize(r),this.tmpSize_),l=(t-o[0])/a/s[0],u=(o[1]-e)/a/s[1];return n?(l=(0,ai.mD)(l,5)-1,u=(0,ai.mD)(u,5)-1):(l=(0,ai.GW)(l,5),u=(0,ai.GW)(u,5)),si(r,l,u,i)},t.prototype.getTileCoordForCoordAndZ=function(t,e,r){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,r)},t.prototype.getTileCoordResolution=function(t){return this.resolutions_[t[0]]},t.prototype.getTileSize=function(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]},t.prototype.getFullTileRange=function(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null},t.prototype.getZForResolution=function(t,e){var r=(0,h.h7)(this.resolutions_,t,e||0);return(0,ai.uZ)(r,this.minZoom,this.maxZoom)},t.prototype.tileCoordIntersectsViewport=function(t,e){return(0,pi.mV)(e,0,e.length,2,this.getTileCoordExtent(t))},t.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,r=new Array(e),n=this.minZoom;n<e;++n)r[n]=this.getTileRangeForExtentAndZ(t,n);this.fullTileRanges_=r},t}();var di=r(7758),yi=r(7341),gi=r(1528),vi=function(){function t(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return t.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},t.prototype.expireCache=function(t){for(;this.canExpireCache();)this.pop()},t.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},t.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},t.prototype.forEach=function(t){for(var e=this.oldest_;e;)t(e.value_,e.key_,this),e=e.newer},t.prototype.get=function(t,e){var r=this.entries_[t];return(0,Kn.h)(void 0!==r,15),r===this.newest_||(r===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(r.newer.older=r.older,r.older.newer=r.newer),r.newer=null,r.older=this.newest_,this.newest_.newer=r,this.newest_=r),r.value_},t.prototype.remove=function(t){var e=this.entries_[t];return(0,Kn.h)(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},t.prototype.getCount=function(){return this.count_},t.prototype.getKeys=function(){var t,e=new Array(this.count_),r=0;for(t=this.newest_;t;t=t.older)e[r++]=t.key_;return e},t.prototype.getValues=function(){var t,e=new Array(this.count_),r=0;for(t=this.newest_;t;t=t.older)e[r++]=t.value_;return e},t.prototype.peekLast=function(){return this.oldest_.value_},t.prototype.peekLastKey=function(){return this.oldest_.key_},t.prototype.peekFirstKey=function(){return this.newest_.key_},t.prototype.peek=function(t){if(this.containsKey(t))return this.entries_[t].value_},t.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},t.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},t.prototype.set=function(t,e){(0,Kn.h)(!(t in this.entries_),16);var r={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=r:this.oldest_=r,this.newest_=r,this.entries_[t]=r,++this.count_},t.prototype.setSize=function(t){this.highWaterMark=t},t}();const mi=vi;var _i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const xi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _i(e,t),e.prototype.expireCache=function(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().release()},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=hi(this.peekFirstKey())[0];this.forEach(function(e){e.tileCoord[0]!==t&&(this.remove(ui(e.tileCoord)),e.release())}.bind(this))}},e}(mi);var bi=r(5816);var wi=r(7288),Ci=r(266),Ei=r(4415);function Si(t){var e=t.getDefaultTileGrid();return e||(e=function(t,e,r,n){return function(t,e,r,n){var i=Oi(t,undefined,r);return new fi({extent:t,origin:(0,u.g0)(t,"top-left"),resolutions:i,tileSize:r})}(Pi(t),0,void 0)}(t),t.setDefaultTileGrid(e)),e}function Ti(t){var e=t||{},r=e.extent||(0,c.U2)("EPSG:3857").getExtent(),n={extent:r,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:Oi(r,e.maxZoom,e.tileSize,e.maxResolution)};return new fi(n)}function Oi(t,e,r,n){for(var i=void 0!==e?e:oi.e,o=(0,u.Cr)(t),a=(0,u.dz)(t),s=(0,w.Pq)(void 0!==r?r:oi.S),l=n>0?n:Math.max(a/s[0],o/s[1]),h=i+1,p=new Array(h),c=0;c<h;++c)p[c]=l/Math.pow(2,c);return p}function Pi(t){var e=(t=(0,c.U2)(t)).getExtent();if(!e){var r=180*c.Wm[Un.ZP.DEGREES]/t.getMetersPerUnit();e=(0,u.T9)(-r,-r,r,r)}return e}var Ri=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ii=function(t){function e(e){var r=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX,interpolate:e.interpolate})||this;return r.on,r.once,r.un,r.opaque_=void 0!==e.opaque&&e.opaque,r.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,r.tileGrid=void 0!==e.tileGrid?e.tileGrid:null,r.tileGrid&&(0,w.Pq)(r.tileGrid.getTileSize(r.tileGrid.getMinZoom()),[256,256]),r.tileCache=new xi(e.cacheSize||0),r.tmpSize=[0,0],r.key_=e.key||"",r.tileOptions={transition:e.transition,interpolate:e.interpolate},r.zDirection=e.zDirection?e.zDirection:0,r}return Ri(e,t),e.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},e.prototype.expireCache=function(t,e){var r=this.getTileCacheForProjection(t);r&&r.expireCache(e)},e.prototype.forEachLoadedTile=function(t,e,r,n){var i=this.getTileCacheForProjection(t);if(!i)return!1;for(var o,a,s,l=!0,u=r.minX;u<=r.maxX;++u)for(var h=r.minY;h<=r.maxY;++h)a=li(e,u,h),s=!1,i.containsKey(a)&&(s=(o=i.get(a)).getState()===bi.Z.LOADED)&&(s=!1!==n(o)),s||(l=!1);return l},e.prototype.getGutterForProjection=function(t){return 0},e.prototype.getKey=function(){return this.key_},e.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},e.prototype.getOpaque=function(t){return this.opaque_},e.prototype.getResolutions=function(){return this.tileGrid?this.tileGrid.getResolutions():null},e.prototype.getTile=function(t,e,r,n,i){return(0,Ei.O3)()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:Si(t)},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();return(0,Kn.h)(null===e||(0,c.OP)(e,t),68),this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,e,r){var n=this.getTileGridForProjection(r),i=this.getTilePixelRatio(e),o=(0,w.Pq)(n.getTileSize(t),this.tmpSize);return 1==i?o:(0,w.bA)(o,i,this.tmpSize)},e.prototype.getTileCoordForTileUrlFunction=function(t,e){var r=void 0!==e?e:this.getProjection(),n=this.getTileGridForProjection(r);return this.getWrapX()&&r.isGlobal()&&(t=function(t,e,r){var n=e[0],i=t.getTileCoordCenter(e),o=Pi(r);if((0,u.b8)(o,i))return e;var a=(0,u.dz)(o),s=Math.ceil((o[0]-i[0])/a);return i[0]+=a*s,t.getTileCoordForCoordAndZ(i,n)}(n,t,r)),function(t,e){var r=t[0],n=t[1],i=t[2];if(e.getMinZoom()>r||r>e.getMaxZoom())return!1;var o=e.getFullTileRange(r);return!o||o.containsXY(n,i)}(t,n)?t:null},e.prototype.clear=function(){this.tileCache.clear()},e.prototype.refresh=function(){this.clear(),t.prototype.refresh.call(this)},e.prototype.updateCacheSize=function(t,e){var r=this.getTileCacheForProjection(e);t>r.highWaterMark&&(r.highWaterMark=t)},e.prototype.useTile=function(t,e,r,n){},e}(Ci.Z),Mi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.tile=r,n}return Ri(e,t),e}(wi.ZP);const Ai=Ii;function ki(t,e){var r=/\{z\}/g,n=/\{x\}/g,i=/\{y\}/g,o=/\{-y\}/g;return function(a,s,l){return a?t.replace(r,a[0].toString()).replace(n,a[1].toString()).replace(i,a[2].toString()).replace(o,(function(){var t=a[0],r=e.getFullTileRange(t);return(0,Kn.h)(r,55),(r.getHeight()-a[2]-1).toString()})):void 0}}function Fi(t,e){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=ki(t[i],e);return function(t){return 1===t.length?t[0]:function(e,r,n){if(e){var i=function(t){return(t[1]<<t[0])+t[2]}(e),o=(0,ai.$W)(i,t.length);return t[o](e,r,n)}}}(n)}var Li=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Zi=function(t){function e(r){var n=t.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,opaque:r.opaque,projection:r.projection,state:r.state,tileGrid:r.tileGrid,tilePixelRatio:r.tilePixelRatio,wrapX:r.wrapX,transition:r.transition,interpolate:r.interpolate,key:r.key,attributionsCollapsible:r.attributionsCollapsible,zDirection:r.zDirection})||this;return n.generateTileUrlFunction_=n.tileUrlFunction===e.prototype.tileUrlFunction,n.tileLoadFunction=r.tileLoadFunction,r.tileUrlFunction&&(n.tileUrlFunction=r.tileUrlFunction),n.urls=null,r.urls?n.setUrls(r.urls):r.url&&n.setUrl(r.url),n.tileLoadingKeys_={},n}return Li(e,t),e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,r=t.target,n=(0,Ei.sq)(r),i=r.getState();i==bi.Z.LOADING?(this.tileLoadingKeys_[n]=!0,e="tileloadstart"):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],e=i==bi.Z.ERROR?"tileloaderror":i==bi.Z.LOADED?"tileloadend":void 0),null!=e&&this.dispatchEvent(new Mi(e,r))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=function(t){var e=[],r=/\{([a-z])-([a-z])\}/.exec(t);if(r){var n=r[1].charCodeAt(0),i=r[2].charCodeAt(0),o=void 0;for(o=n;o<=i;++o)e.push(t.replace(r[0],String.fromCharCode(o)));return e}if(r=/\{(\d+)-(\d+)\}/.exec(t)){for(var a=parseInt(r[2],10),s=parseInt(r[1],10);s<=a;s++)e.push(t.replace(r[0],s.toString()));return e}return e.push(t),e}(t);this.urls=e,this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(Fi(t,this.tileGrid),e):this.setKey(e)},e.prototype.tileUrlFunction=function(t,e,r){},e.prototype.useTile=function(t,e,r){var n=li(t,e,r);this.tileCache.containsKey(n)&&this.tileCache.get(n)},e}(Ai);const Di=Zi;var ji=r(6443),zi=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ni=function(t){function e(e){var r=this,n=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(n=e.interpolate),(r=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Gi,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:n,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this).crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,r.tileClass=void 0!==e.tileClass?e.tileClass:yi.Z,r.tileCacheForProjection={},r.tileGridForProjection={},r.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,r.renderReprojectionEdges_=!1,r}return zi(e,t),e.prototype.canExpireCache=function(){if(!ji.j)return t.prototype.canExpireCache.call(this);if(this.tileCache.canExpireCache())return!0;for(var e in this.tileCacheForProjection)if(this.tileCacheForProjection[e].canExpireCache())return!0;return!1},e.prototype.expireCache=function(e,r){if(ji.j){var n=this.getTileCacheForProjection(e);for(var i in this.tileCache.expireCache(this.tileCache==n?r:{}),this.tileCacheForProjection){var o=this.tileCacheForProjection[i];o.expireCache(o==n?r:{})}}else t.prototype.expireCache.call(this,e,r)},e.prototype.getGutterForProjection=function(t){return ji.j&&this.getProjection()&&t&&!(0,c.OP)(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getKey=function(){var e=t.prototype.getKey.call(this);return this.getInterpolate()||(e+=":disable-interpolation"),e},e.prototype.getOpaque=function(e){return!(ji.j&&this.getProjection()&&e&&!(0,c.OP)(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(e){if(!ji.j)return t.prototype.getTileGridForProjection.call(this,e);var r=this.getProjection();if(!this.tileGrid||r&&!(0,c.OP)(r,e)){var n=(0,Ei.sq)(e);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=Si(e)),this.tileGridForProjection[n]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(e){if(!ji.j)return t.prototype.getTileCacheForProjection.call(this,e);var r=this.getProjection();if(!r||(0,c.OP)(r,e))return this.tileCache;var n=(0,Ei.sq)(e);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new xi(this.tileCache.highWaterMark)),this.tileCacheForProjection[n]},e.prototype.createTile_=function(t,e,r,n,i,o){var a=[t,e,r],s=this.getTileCoordForTileUrlFunction(a,i),l=s?this.tileUrlFunction(s,n,i):void 0,u=new this.tileClass(a,void 0!==l?bi.Z.IDLE:bi.Z.EMPTY,void 0!==l?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return u.key=o,u.addEventListener(di.Z.CHANGE,this.handleTileChange.bind(this)),u},e.prototype.getTile=function(t,e,r,n,i){var o=this.getProjection();if(ji.j&&o&&i&&!(0,c.OP)(o,i)){var a=this.getTileCacheForProjection(i),s=[t,e,r],l=void 0,u=ui(s);a.containsKey(u)&&(l=a.get(u));var h=this.getKey();if(l&&l.key==h)return l;var p=this.getTileGridForProjection(o),f=this.getTileGridForProjection(i),d=this.getTileCoordForTileUrlFunction(s,i),y=new gi.Z(o,p,i,f,s,d,this.getTilePixelRatio(n),this.getGutter(),function(t,e,r,n){return this.getTileInternal(t,e,r,n,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return y.key=h,l?(y.interimTile=l,y.refreshInterimChain(),a.replace(u,y)):a.set(u,y),y}return this.getTileInternal(t,e,r,n,o||i)},e.prototype.getTileInternal=function(t,e,r,n,i){var o=null,a=li(t,e,r),s=this.getKey();if(this.tileCache.containsKey(a)){if((o=this.tileCache.get(a)).key!=s){var l=o;o=this.createTile_(t,e,r,n,i,s),l.getState()==bi.Z.IDLE?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(t,e,r,n,i,s),this.tileCache.set(a,o);return o},e.prototype.setRenderReprojectionEdges=function(t){if(ji.j&&this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,e){if(ji.j){var r=(0,c.U2)(t);if(r){var n=(0,Ei.sq)(r);n in this.tileGridForProjection||(this.tileGridForProjection[n]=e)}}},e}(Di);function Gi(t,e){t.getImage().src=e}const Xi=Ni;var Wi,qi=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Wi=Error,qi((function(t){var e=this,r="Unexpected response status: "+t.status;return(e=Wi.call(this,r)||this).name="ResponseError",e.response=t,e}),Wi),function(t){qi((function(e){var r=t.call(this,"Failed to issue request")||this;return r.name="ClientError",r.client=e,r}),t)}(Error);var Yi=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Vi=function(t){function e(e){var r=this,n=void 0===e.imageSmoothing||e.imageSmoothing;if(void 0!==e.interpolate&&(n=e.interpolate),(r=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:n,projection:(0,c.U2)("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:e.zDirection})||this).tileJSON_=null,r.tileSize_=e.tileSize,e.url)if(e.jsonp)!function(t,e,r,n){var i=document.createElement("script"),o="olc_"+(0,Ei.sq)(e);function a(){delete window[o],i.parentNode.removeChild(i)}i.async=!0,i.src=t+(-1==t.indexOf("?")?"?":"&")+"callback="+o;var s=setTimeout((function(){a(),r&&r()}),1e4);window[o]=function(t){clearTimeout(s),a(),e(t)},document.head.appendChild(i)}(e.url,r.handleTileJSONResponse.bind(r),r.handleTileJSONError.bind(r));else{var i=new XMLHttpRequest;i.addEventListener("load",r.onXHRLoad_.bind(r)),i.addEventListener("error",r.onXHRError_.bind(r)),i.open("GET",e.url),i.send()}else e.tileJSON?r.handleTileJSONResponse(e.tileJSON):(0,Kn.h)(!1,51);return r}return Yi(e,t),e.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||e.status>=200&&e.status<300){var r=void 0;try{r=JSON.parse(e.responseText)}catch(t){return void this.handleTileJSONError()}this.handleTileJSONResponse(r)}else this.handleTileJSONError()},e.prototype.onXHRError_=function(t){this.handleTileJSONError()},e.prototype.getTileJSON=function(){return this.tileJSON_},e.prototype.handleTileJSONResponse=function(t){var e,r=(0,c.U2)("EPSG:4326"),n=this.getProjection();if(void 0!==t.bounds){var i=(0,c.WO)(r,n);e=(0,u.Ne)(t.bounds,i)}var o=Pi(n),a=t.minzoom||0,s=Ti({extent:o,maxZoom:t.maxzoom||22,minZoom:a,tileSize:this.tileSize_});if(this.tileGrid=s,this.tileUrlFunction=Fi(t.tiles,s),void 0!==t.attribution&&!this.getAttributions()){var l=void 0!==e?e:o;this.setAttributions((function(e){return(0,u.kK)(l,e.extent)?[t.attribution]:null}))}this.tileJSON_=t,this.setState("ready")},e.prototype.handleTileJSONError=function(){this.setState("error")},e}(Xi);const Bi=Vi;var Ui=r(7385),Ki=r(1393),Hi=r(273),Ji=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const $i=function(t){function e(e){var r=this,n=e||{},i=(0,Hi.f0)({},n);return delete i.preload,delete i.useInterimTilesOnError,(r=t.call(this,i)||this).on,r.once,r.un,r.setPreload(void 0!==n.preload?n.preload:0),r.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),r}return Ji(e,t),e.prototype.getPreload=function(){return this.get(Ki.Z.PRELOAD)},e.prototype.setPreload=function(t){this.set(Ki.Z.PRELOAD,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(Ki.Z.USE_INTERIM_TILES_ON_ERROR)},e.prototype.setUseInterimTilesOnError=function(t){this.set(Ki.Z.USE_INTERIM_TILES_ON_ERROR,t)},e.prototype.getData=function(e){return t.prototype.getData.call(this,e)},e}(Ui.Z);var Qi=r(8237),to=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const eo=function(t){function e(e){return t.call(this,e)||this}return to(e,t),e.prototype.createRenderer=function(){return new Qi.Z(this)},e}($i);var ro=r(5218),no=r(8275),io=r(3015),oo=r(3102),ao=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),so=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r,a)||this;return s.extent=null,s.format_=i,s.features_=null,s.loader_,s.projection=null,s.resolution,s.tileLoadFunction_=o,s.url_=n,s.key=n,s}return ao(e,t),e.prototype.getFormat=function(){return this.format_},e.prototype.getFeatures=function(){return this.features_},e.prototype.load=function(){this.state==bi.Z.IDLE&&(this.setState(bi.Z.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))},e.prototype.onLoad=function(t,e){this.setFeatures(t)},e.prototype.onError=function(){this.setState(bi.Z.ERROR)},e.prototype.setFeatures=function(t){this.features_=t,this.setState(bi.Z.LOADED)},e.prototype.setLoader=function(t){this.loader_=t},e}(oo.Z);const lo=so;var uo=r(766),ho=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),po=[];const co=function(t){function e(e,r,n,i){var o=t.call(this,e,r,{transition:0})||this;return o.context_={},o.executorGroups={},o.declutterExecutorGroups={},o.loadingSourceTiles=0,o.hitDetectionImageData={},o.replayState_={},o.sourceTiles=[],o.errorTileKeys={},o.wantedResolution,o.getSourceTiles=i.bind(void 0,o),o.wrappedTileCoord=n,o}return ho(e,t),e.prototype.getContext=function(t){var e=(0,Ei.sq)(t);return e in this.context_||(this.context_[e]=(0,uo.E4)(1,1,po)),this.context_[e]},e.prototype.hasContext=function(t){return(0,Ei.sq)(t)in this.context_},e.prototype.getImage=function(t){return this.hasContext(t)?this.getContext(t).canvas:null},e.prototype.getReplayState=function(t){var e=(0,Ei.sq)(t);return e in this.replayState_||(this.replayState_[e]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[e]},e.prototype.load=function(){this.getSourceTiles()},e.prototype.release=function(){for(var e in this.context_){var r=this.context_[e];(0,uo.jy)(r),po.push(r.canvas),delete this.context_[e]}t.prototype.release.call(this)},e}(oo.Z);var fo=r(3618),yo=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),go=function(t){function e(e){var r=this,n=e.projection||"EPSG:3857",i=e.extent||Pi(n),o=e.tileGrid||Ti({extent:i,maxResolution:e.maxResolution,maxZoom:void 0!==e.maxZoom?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});return(r=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,opaque:!1,projection:n,state:e.state,tileGrid:o,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:mo,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:void 0===e.zDirection?1:e.zDirection})||this).format_=e.format?e.format:null,r.sourceTileCache=new xi(r.tileCache.highWaterMark),r.overlaps_=null==e.overlaps||e.overlaps,r.tileClass=e.tileClass?e.tileClass:lo,r.tileGrids_={},r}return yo(e,t),e.prototype.getFeaturesInExtent=function(t){var e=[],r=this.tileCache;if(0===r.getCount())return e;var n=hi(r.peekFirstKey())[0],i=this.tileGrid;return r.forEach((function(r){if(r.tileCoord[0]===n&&r.getState()===bi.Z.LOADED)for(var o=r.getSourceTiles(),a=0,s=o.length;a<s;++a){var l=o[a],h=l.tileCoord;if((0,u.kK)(t,i.getTileCoordExtent(h))){var p=l.getFeatures();if(p)for(var c=0,f=p.length;c<f;++c){var d=p[c],y=d.getGeometry();(0,u.kK)(t,y.getExtent())&&e.push(d)}}}})),e},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.clear=function(){this.tileCache.clear(),this.sourceTileCache.clear()},e.prototype.expireCache=function(e,r){var n=this.getTileCacheForProjection(e),i=Object.keys(r).reduce((function(t,e){var r,i,o=li((i=(r=e).substring(r.lastIndexOf("/")+1,r.length).split(",").map(Number))[0],i[1],i[2]),a=n.peek(o);if(a)for(var s=a.sourceTiles,l=0,u=s.length;l<u;++l)t[s[l].getKey()]=!0;return t}),{});t.prototype.expireCache.call(this,e,r),this.sourceTileCache.expireCache(i)},e.prototype.getSourceTiles=function(t,e,r){var n=this;if(r.getState()===bi.Z.IDLE){r.setState(bi.Z.LOADING);var i=r.wrappedTileCoord,o=this.getTileGridForProjection(e),a=o.getTileCoordExtent(i),s=i[0],l=o.getResolution(s);(0,u.f3)(a,-l,a);var h=this.tileGrid,p=h.getExtent();p&&(0,u.Ed)(a,p,a);var c=h.getZForResolution(l,this.zDirection);h.forEachTileCoord(a,c,(function(i){var o=n.tileUrlFunction(i,t,e),a=n.sourceTileCache.containsKey(o)?n.sourceTileCache.get(o):new n.tileClass(i,o?bi.Z.IDLE:bi.Z.EMPTY,o,n.format_,n.tileLoadFunction);r.sourceTiles.push(a);var s=a.getState();if(s<bi.Z.LOADED){var l=function(t){n.handleTileChange(t);var e=a.getState();if(e===bi.Z.LOADED||e===bi.Z.ERROR){var i=a.getKey();i in r.errorTileKeys?a.getState()===bi.Z.LOADED&&delete r.errorTileKeys[i]:r.loadingSourceTiles--,e===bi.Z.ERROR?r.errorTileKeys[i]=!0:a.removeEventListener(di.Z.CHANGE,l),0===r.loadingSourceTiles&&r.setState((0,Hi.xb)(r.errorTileKeys)?bi.Z.LOADED:bi.Z.ERROR)}};a.addEventListener(di.Z.CHANGE,l),r.loadingSourceTiles++}s===bi.Z.IDLE&&(a.extent=h.getTileCoordExtent(i),a.projection=e,a.resolution=h.getResolution(i[0]),n.sourceTileCache.set(o,a),a.load())})),r.loadingSourceTiles||r.setState(r.sourceTiles.some((function(t){return t.getState()===bi.Z.ERROR}))?bi.Z.ERROR:bi.Z.LOADED)}return r.sourceTiles},e.prototype.getTile=function(t,e,r,n,i){var o,a=li(t,e,r),s=this.getKey();if(this.tileCache.containsKey(a)&&(o=this.tileCache.get(a)).key===s)return o;var l=[t,e,r],h=this.getTileCoordForTileUrlFunction(l,i),p=this.getTileGrid().getExtent(),c=this.getTileGridForProjection(i);if(h&&p){var f=c.getTileCoordExtent(h);(0,u.f3)(f,-c.getResolution(t),f),(0,u.kK)(p,f)||(h=null)}var d=!0;if(null!==h){var y=this.tileGrid,g=c.getResolution(t),v=y.getZForResolution(g,1),m=c.getTileCoordExtent(h);(0,u.f3)(m,-g,m),y.forEachTileCoord(m,v,function(t){d=d&&!this.tileUrlFunction(t,n,i)}.bind(this))}var _=new co(l,d?bi.Z.EMPTY:bi.Z.IDLE,h,this.getSourceTiles.bind(this,n,i));return _.key=s,o?(_.interimTile=o,_.refreshInterimChain(),this.tileCache.replace(a,_)):this.tileCache.set(a,_),_},e.prototype.getTileGridForProjection=function(t){var e=t.getCode(),r=this.tileGrids_[e];if(!r){for(var n=this.tileGrid,i=n.getResolutions().slice(),o=i.map((function(t,e){return n.getOrigin(e)})),a=i.map((function(t,e){return n.getTileSize(e)})),s=oi.e+1,l=i.length;l<s;++l)i.push(i[l-1]/2),o.push(o[l-1]),a.push(a[l-1]);r=new fi({extent:n.getExtent(),origins:o,resolutions:i,tileSizes:a}),this.tileGrids_[e]=r}return r},e.prototype.getTilePixelRatio=function(t){return t},e.prototype.getTilePixelSize=function(t,e,r){var n=this.getTileGridForProjection(r),i=(0,w.Pq)(n.getTileSize(t),this.tmpSize);return[Math.round(i[0]*e),Math.round(i[1]*e)]},e.prototype.updateCacheSize=function(e,r){t.prototype.updateCacheSize.call(this,2*e,r),this.sourceTileCache.highWaterMark=this.getTileCacheForProjection(r).highWaterMark},e}(Di);const vo=go;function mo(t,e){t.setLoader((function(r,n,i){(0,fo.ov)(e,t.getFormat(),r,n,i,t.onLoad.bind(t),t.onError.bind(t))}))}var _o=r(8615);function xo(t,e){return e.accessToken||(e=Object.assign({},e),new URL(t).searchParams.forEach((function(t,r){e.accessToken=t,e.accessTokenParam=r}))),e}function bo(t,e,r,n,i){var o,a,s;return void 0===r&&(r=""),void 0===n&&(n={}),void 0===i&&(i=void 0),"string"==typeof n?(o=n,s={}):(o=n.styleUrl,s=n),i||(i=s.resolutions),o||"string"!=typeof e||e.trim().startsWith("{")||(o=e),o&&(o=o.startsWith("data:")?location.href:Qr(o,s.accessToken),s=xo(o,s)),new Promise((function(n,l){sn(e,s).then((function(e){if(8!=e.version)return l(new Error("glStyle version 8 required."));if(!(t instanceof ro.Z||t instanceof io.Z))return l(new Error("Can only apply to VectorLayer or VectorTileLayer"));var u,h,p,f=t instanceof io.Z?"vector":"geojson";if(r?a=Array.isArray(r)?e.layers.find((function(t){return t.id===r[0]})).source:r:(a=Object.keys(e.sources).find((function(t){return e.sources[t].type===f})),r=a),!a)return l(new Error("No "+f+" source found in the glStyle."));function d(){if(t instanceof io.Z)return Po(e.sources[a],o,s).then((function(e){var r=t.getSource();if(r?e!==r&&(r.setTileUrlFunction(e.getTileUrlFunction()),r.format_||(r.format_=e.format_),r.getAttributions()||r.setAttributions(e.getAttributions()),r.getTileLoadFunction()===mo&&r.setTileLoadFunction(e.getTileLoadFunction()),(0,c.OP)(r.getProjection(),e.getProjection())&&(r.tileGrid=e.getTileGrid())):t.setSource(e),!isFinite(t.getMaxResolution())&&!isFinite(t.getMinZoom())){var n=t.getSource().getTileGrid();t.setMaxResolution(n.getResolution(n.getMinZoom()))}}));var r=e.sources[a],n=t.getSource();n&&n.get("mapbox-source")===r||(n=Ao(r,o,s));var i=t.getSource();return i?n!==i&&(i.getAttributions()||i.setAttributions(n.getAttributions()),i.format_||(i.format_=n.getFormat()),i.url_=n.getUrl()):t.setSource(n),Promise.resolve()}function y(){p||e.sprite&&!u?p?(t.setStyle(p),d().then(n).catch(l)):l(new Error("Something went wrong trying to apply style.")):(p=Ln(t,e,r,i,u,h,wn),t.getStyle()?d().then(n).catch(l):l(new Error("Nothing to show for source ["+a+"]")))}if(e.sprite){var g=new URL(function(t,e,r){var n=$r(t);if(!n)return decodeURI(new URL(t,r).href);var i="sprites/";if(0!==n.indexOf(i))throw new Error("unexpected sprites url: "+t);var o=n.slice(i.length);return Jr+"/styles/v1/"+o+"/sprite?access_token="+e}(e.sprite,s.accessToken,o||location.href)),v=.5==(window.devicePixelRatio>=1.5?.5:1)?"@2x":"",m=g.origin+g.pathname+v+".json"+g.search;new Promise((function(t,e){an("Sprite",m,s).then(t).catch((function(r){an("Sprite",m=g.origin+g.pathname+".json"+g.search,s).then(t).catch(e)}))})).then((function(t){if(void 0===t&&l(new Error("No sprites found.")),u=t,h=g.origin+g.pathname+v+".png"+g.search,s.transformRequest){var e=s.transformRequest(h,"SpriteImage");e instanceof Request&&(h=encodeURI(e.url))}y()})).catch((function(t){l(new Error("Sprites cannot be loaded: "+m+": "+t.message))}))}else y()})).catch(l)}))}var wo={};function Co(t,e){var r={id:e.id,type:e.type},n={};function i(i){var o=e.layout||{},a=e.paint||{};r.paint=a;var s,l,u="function"==typeof t.getSource?t.getSource().getTileGrid().getZForResolution(i):t.getView().getZoom(),h="function"==typeof t.getTargetElement?t.getTargetElement():void 0;if(void 0!==a["background-color"]&&(s=Rn(r,"paint","background-color",u,wo,n),h&&(h.style.background=T.parse(s).toString())),void 0!==a["background-opacity"]&&(l=Rn(r,"paint","background-opacity",u,wo,n),h&&(h.style.opacity=l)),"none"!=o.visibility)return An(s,l);h&&(h.style.backgroundColor="",h.style.opacity="")}if("function"==typeof t.getTargetElement)t.getTargetElement()&&i(),t.on(["change:resolution","change:target"],i);else{if("function"!=typeof t.setBackground)throw new Error("Unable to apply background.");t.setBackground(i)}}function Eo(t,e){e.layers.some((function(e){if("background"===e.type)return Co(t,e),!0}))}function So(t,e,r){return void 0===r&&(r={}),"object"==typeof e?(Eo(t,e),Promise.resolve()):sn(e,r).then((function(e){Eo(t,e)}))}function To(t,e){var r;return t.some((function(t){if(t.id==e)return r=t.source,!0})),r}function Oo(t){var e=t.bounds;if(e){var r=(0,c.mi)([e[0],e[1]]),n=(0,c.mi)([e[2],e[3]]);return[r[0],r[1],n[0],n[1]]}}function Po(t,e,r){return new Promise((function(n,i){un(t,e,r).then((function(t){var e=new Bi({tileJSON:t}),r=e.getTileJSON(),i=e.getTileGrid(),o=Oo(r),a=r.minzoom||0,s=r.maxzoom||22,l={attributions:e.getAttributions(),format:new ri,tileGrid:new fi({origin:i.getOrigin(0),extent:o||i.getExtent(),minZoom:a,resolutions:rn.slice(0,s+1),tileSize:512})};Array.isArray(r.tiles)?l.urls=r.tiles:l.url=r.tiles,t.olSourceOptions&&Object.assign(l,t.olSourceOptions),n(new vo(l))})).catch(i)}))}function Ro(t,e,r){var n=new io.Z({declutter:!0,visible:!1});return Po(t,e,r).then((function(e){e.set("mapbox-source",t),n.setSource(e)})).catch((function(t){n.setSource(void 0)})),n}function Io(t,e,r){var n=new eo;return un(t,e,r).then((function(e){var r=new Bi({transition:0,crossOrigin:"anonymous",tileJSON:e}),i=Oo(e),o=r.getTileGrid(),a=t.tileSize||e.tileSize||512,s=e.minzoom||0,l=e.maxzoom||22;r.tileGrid=new fi({origin:o.getOrigin(0),extent:i||o.getExtent(),minZoom:s,resolutions:Ti({maxZoom:l,tileSize:a}).getResolutions(),tileSize:a});var u=r.getTileUrlFunction();r.setTileUrlFunction((function(t,e,n){var i=u(t,e,n);if(-1!=i.indexOf("{bbox-epsg-3857}")){var o=r.getTileGrid().getTileCoordExtent(t);i=i.replace("{bbox-epsg-3857}",o.toString())}return i})),r.set("mapbox-source",t),n.setSource(r)})).catch((function(t){n.setSource(void 0)})),n}var Mo=new Dn.Z;function Ao(t,e,r){var n=t.data,i={};if("string"==typeof n){var o=tn(n,r.accessToken,r.accessTokenParam||"access_token",e||location.href);if(r.transformRequest){var a=r.transformRequest(o,"GeoJSON");a instanceof Request&&(o=encodeURI(a.url))}i.url=o}else i.features=Mo.readFeatures(n,{featureProjection:(0,c.Cs)()||"EPSG:3857"});var s=new no.Z(Object.assign({attributions:t.attribution,format:Mo},i));return s.set("mapbox-source",t),s}function ko(t,e,r){return new ro.Z({declutter:!0,source:Ao(t,e,r),visible:!1})}function Fo(t,e,r,n){var i=Rn(t,"paint","raster-opacity",r.getZoom(),wo,n);e.setOpacity(i)}function Lo(t,e,r,n){var i=[],o=e.getView();o.isDef()||o.getRotation()||o.getResolutions()||(o=new _o.ZP(Object.assign(o.getProperties(),{maxResolution:rn[0]})),e.setView(o)),"center"in t&&!o.getCenter()&&o.setCenter((0,c.mi)(t.center)),"zoom"in t&&void 0===o.getZoom()&&o.setResolution(rn[0]/Math.pow(2,t.zoom)),o.getCenter()&&void 0!==o.getZoom()||o.fit(o.getProjection().getExtent(),{nearest:!0,size:e.getSize()});for(var a,s,l,u,h,p=t.layers,f=[],d=0,y=p.length;d<y;++d){var g=(a=p[d]).type;if("heatmap"==g||"hillshade"==g)throw new Error(g+" layers are not supported");if("background"==g)Co(e,a);else{if((u=a.source||To(p,a.ref))!=l){if(f.length&&(i.push(Do(h,f,t,r,e,n)),f=[]),"vector"==(s=t.sources[u]).type)h=Ro(s,r,n);else if("raster"==s.type){(h=Io(s,r,n)).setVisible(!a.layout||"none"!==a.layout.visibility);var v={};o.on("change:resolution",Fo.bind(this,a,h,o,v)),Fo(a,h,o,v)}else"geojson"==s.type&&(h=ko(s,r,n));l=u,h&&h.set("mapbox-source",l)}f.push(a.id)}}return i.push(Do(h,f,t,r,e,n)),e.set("mapbox-style",t),Promise.all(i)}function Zo(t,e,r){var n;if(void 0===r&&(r={}),("string"==typeof t||t instanceof HTMLElement)&&(t=new ni.Z({target:t})),"string"==typeof e){var i=e.startsWith("data:")?location.href:Qr(e,r.accessToken);r=xo(i,r),n=new Promise((function(n,o){sn(e,r).then((function(e){Lo(e,t,i,r).then((function(){n(t)})).catch(o)})).catch((function(t){o(new Error("Could not load "+e+": "+t.message))}))}))}else n=new Promise((function(n,i){Lo(e,t,!r.styleUrl||r.styleUrl.startsWith("data:")?location.href:Qr(r.styleUrl,r.accessToken),r).then((function(){n(t)})).catch(i)}));return n}function Do(t,e,r,n,i,o){void 0===o&&(o={});for(var a=24,s=0,l=r.layers,u=0,h=l.length;u<h;++u){var p=l[u];-1!==e.indexOf(p.id)&&(a=Math.min("minzoom"in p?p.minzoom:0,a),s=Math.max("maxzoom"in p?p.maxzoom:24,s))}return new Promise((function(l,u){var h=function(){var i=t.getSource();if(i&&"error"!==i.getState()){if("getTileGrid"in i){var h=i.getTileGrid();if(h){var p=h.getMinZoom();(a>0||p>0)&&t.setMaxResolution(Math.min(rn[a],h.getResolution(p))+1e-9),s<24&&t.setMinResolution(rn[s]+1e-9)}}i instanceof no.Z||i instanceof vo?bo(t,r,e,Object.assign({styleUrl:n},o)).then((function(){t.setVisible(!0),l()})).catch(u):l()}else u(new Error("Error accessing data for source "+t.get("mapbox-source")))};t.set("mapbox-layers",e),-1===i.getLayers().getArray().indexOf(t)&&i.addLayer(t),t.getSource()?h():t.once("change:source",h)}))}function jo(t,e,r){for(var n=("getLayers"in t?function(t,e){for(var r=[],n=t.getAllLayers(),i=0,o=n.length;i<o;++i)n[i].get("mapbox-source")===e&&r.push(n[i]);return r}(t,e.source):[t]),i=0,o=n.length;i<o;++i){var a=n[i].get("mapbox-featurestate");if(!a)throw new Error('Map or layer for source "'+e.source+'" not found.');r?a[e.id]=r:delete a[e.id],n[i].changed()}}}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}};return e[t].call(o.exports,o,o.exports,n),o.exports}n.m=e,t=[],n.O=(e,r,i,o)=>{if(!r){var a=1/0;for(h=0;h<t.length;h++){for(var[r,i,o]=t[h],s=!0,l=0;l<r.length;l++)(!1&o||a>=o)&&Object.keys(n.O).every((t=>n.O[t](r[l])))?r.splice(l--,1):(s=!1,o<a&&(a=o));if(s){t.splice(h--,1);var u=i();void 0!==u&&(e=u)}}return e}o=o||0;for(var h=t.length;h>0&&t[h-1][2]>o;h--)t[h]=t[h-1];t[h]=[r,i,o]},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={592:0};n.O.j=e=>0===t[e];var e=(e,r)=>{var i,o,[a,s,l]=r,u=0;if(a.some((e=>0!==t[e]))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(l)var h=l(n)}for(e&&e(r);u<a.length;u++)o=a[u],n.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return n.O(h)},r=self.webpackChunkol_mapbox_style=self.webpackChunkol_mapbox_style||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})()})();
//# sourceMappingURL=common.js.map