/*! 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,i=t.y-this.y;return e*e+i*i},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,i=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=i,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),i=Math.sin(t),r=e*this.x-i*this.y,n=i*this.x+e*this.y;return this.x=r,this.y=n,this},_rotateAround:function(t,e){var i=Math.cos(t),r=Math.sin(t),n=e.x+i*(this.x-e.x)-r*(this.y-e.y),o=e.y+r*(this.x-e.x)+i*(this.y-e.y);return this.x=n,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,i,r){this.cx=3*t,this.bx=3*(i-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(r-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=r,this.p2x=i,this.p2y=r}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 i,r,n,o,a;for(void 0===e&&(e=1e-6),n=t,a=0;a<8;a++){if(o=this.sampleCurveX(n)-t,Math.abs(o)(r=1))return r;for(;io?i=n:r=n,n=.5*(r-i)+i}return n},e.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}},5933:(t,e)=>{var i={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 r(t){return(t=Math.round(t))<0?0:t>255?255:t}function n(t){return t<0?0:t>1?1:t}function o(t){return"%"===t[t.length-1]?r(parseFloat(t)/100*255):r(parseInt(t))}function a(t){return"%"===t[t.length-1]?n(parseFloat(t)/100):n(parseFloat(t))}function s(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}try{e.G=function(t){var e,n=t.replace(/ /g,"").toLowerCase();if(n in i)return i[n].slice();if("#"===n[0])return 4===n.length?(e=parseInt(n.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===n.length&&(e=parseInt(n.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var l=n.indexOf("("),u=n.indexOf(")");if(-1!==l&&u+1===n.length){var h=n.substr(0,l),p=n.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 d=(parseFloat(p[0])%360+360)%360/360,f=a(p[1]),g=a(p[2]),y=g<=.5?g*(f+1):g+f-g*f,v=2*g-y;return[r(255*s(v,y,d+1/3)),r(255*s(v,y,d)),r(255*s(v,y,d-1/3)),c];default:return null}}return null}}catch(t){}},5796:(t,e)=>{e.read=function(t,e,i,r,n){var o,a,s=8*n-r-1,l=(1<>1,h=-7,p=i?n-1:0,c=i?-1:1,d=t[e+p];for(p+=c,o=d&(1<<-h)-1,d>>=-h,h+=s;h>0;o=256*o+t[e+p],p+=c,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=r;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*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,i,r,n,o){var a,s,l,u=8*o-n-1,h=(1<>1,c=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,f=r?1:-1,g=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,n),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,n),a=0));n>=8;t[i+d]=255&s,d+=f,s/=256,n-=8);for(a=a<0;t[i+d]=255&a,d+=f,a/=256,u-=8);t[i+d-f]|=128*g}},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},i=" ",r=/(italic|oblique)$/i,n={};t.exports=function(t,o,a){var s=n[t];if(!s){Array.isArray(t)||(t=[t]);for(var l=400,u="normal",h=[],p=0,c=t.length;p1?d[d.length-2].toLowerCase():"";if(f==g||f==g.replace("-","")||y+"-"+f==g){l=e[g],d.pop(),y&&g.startsWith(y)&&d.pop();break}}"number"==typeof f&&(l=f);var v=d.join(i).replace("Klokantech Noto Sans","Noto Sans");-1!==v.indexOf(i)&&(v='"'+v+'"'),h.push(v)}s=n[t]=[u,l,h]}return s[0]+i+s[1]+i+o+"px"+(a?"/"+a:"")+i+s[2]}},1494:t=>{t.exports=function t(i,r){if(!i){var n=new e(r);throw Error.captureStackTrace&&Error.captureStackTrace(n,t),n}};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,i)=>{"use strict";t.exports=n;var r=i(5796);function n(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}n.Varint=0,n.Fixed64=1,n.Bytes=2,n.Fixed32=5;var o=4294967296,a=1/o,s="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function l(t){return t.type===n.Bytes?t.readVarint()+t.pos:t.pos+1}function u(t,e,i){return i?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function h(t,e,i){var r=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));i.realloc(r);for(var n=i.pos-1;n>=t;n--)i.buf[n+r]=i.buf[n]}function p(t,e){for(var i=0;i>>8,t[i+2]=e>>>16,t[i+3]=e>>>24}function C(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}n.prototype={destroy:function(){this.buf=null},readFields:function(t,e,i){for(i=i||this.length;this.pos>3,o=this.pos;this.type=7&r,t(n,e,this),this.pos===o&&this.skip(r)}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=C(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)+C(this.buf,this.pos+4)*o;return this.pos+=8,t},readFloat:function(){var t=r.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=r.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,i,r=this.buf;return e=127&(i=r[this.pos++]),i<128?e:(e|=(127&(i=r[this.pos++]))<<7,i<128?e:(e|=(127&(i=r[this.pos++]))<<14,i<128?e:(e|=(127&(i=r[this.pos++]))<<21,i<128?e:function(t,e,i){var r,n,o=i.buf;if(r=(112&(n=o[i.pos++]))>>4,n<128)return u(t,r,e);if(r|=(127&(n=o[i.pos++]))<<3,n<128)return u(t,r,e);if(r|=(127&(n=o[i.pos++]))<<10,n<128)return u(t,r,e);if(r|=(127&(n=o[i.pos++]))<<17,n<128)return u(t,r,e);if(r|=(127&(n=o[i.pos++]))<<24,n<128)return u(t,r,e);if(r|=(1&(n=o[i.pos++]))<<31,n<128)return u(t,r,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(i=r[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,i){return s.decode(t.subarray(e,i))}(this.buf,e,t):function(t,e,i){for(var r="",n=e;n239?4:l>223?3:l>191?2:1;if(n+h>i)break;1===h?l<128&&(u=l):2===h?128==(192&(o=t[n+1]))&&(u=(31&l)<<6|63&o)<=127&&(u=null):3===h?(o=t[n+1],a=t[n+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[n+1],a=t[n+2],s=t[n+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,r+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),r+=String.fromCharCode(u),n+=h}return r}(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!==n.Bytes)return t.push(this.readVarint(e));var i=l(this);for(t=t||[];this.pos127;);else if(e===n.Bytes)this.pos=this.readVarint()+this.pos;else if(e===n.Fixed32)this.pos+=4;else{if(e!==n.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;e268435455||t<0?function(t,e){var i,r;if(t>=0?(i=t%4294967296|0,r=t/4294967296|0):(r=~(-t/4294967296),4294967295^(i=~(-t%4294967296))?i=i+1|0:(i=0,r=r+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,i){i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos]=127&t}(i,0,e),function(t,e){var i=(7&t)<<4;e.buf[e.pos++]|=i|((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)))))}(r,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,i){for(var r,n,o=0;o55295&&r<57344){if(!n){r>56319||o+1===e.length?(t[i++]=239,t[i++]=191,t[i++]=189):n=r;continue}if(r<56320){t[i++]=239,t[i++]=191,t[i++]=189,n=r;continue}r=n-55296<<10|r-56320|65536,n=null}else n&&(t[i++]=239,t[i++]=191,t[i++]=189,n=null);r<128?t[i++]=r:(r<2048?t[i++]=r>>6|192:(r<65536?t[i++]=r>>12|224:(t[i++]=r>>18|240,t[i++]=r>>12&63|128),t[i++]=r>>6&63|128),t[i++]=63&r|128)}return i}(this.buf,t,this.pos);var i=this.pos-e;i>=128&&h(e,i,this),this.pos=e-1,this.writeVarint(i),this.pos+=i},writeFloat:function(t){this.realloc(4),r.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),r.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 i=0;i=128&&h(i,r,this),this.pos=i-1,this.writeVarint(r),this.pos+=r},writeMessage:function(t,e,i){this.writeTag(t,n.Bytes),this.writeRawMessage(e,i)},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,g,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,d,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,f,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,y,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,n.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,n.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,n.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,n.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,n.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,n.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,n.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,n.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,n.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,n.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}},53:function(t){t.exports=function(){"use strict";function t(t,r,n,o,a){!function t(i,r,n,o,a){for(;o>n;){if(o-n>600){var s=o-n+1,l=r-n+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(i,r,Math.max(n,Math.floor(r-l*h/s+p)),Math.min(o,Math.floor(r+(s-l)*h/s+p)),a)}var c=i[r],d=n,f=o;for(e(i,n,r),a(i[o],c)>0&&e(i,n,o);d0;)f--}0===a(i[n],c)?e(i,n,f):e(i,++f,o),f<=r&&(n=f+1),r<=f&&(o=f-1)}}(t,r,n||0,o||t.length-1,a||i)}function e(t,e,i){var r=t[e];t[e]=t[i],t[i]=r}function i(t,e){return te?1:0}var r=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 n(t,e,i){if(!i)return e.indexOf(t);for(var r=0;r=t.minX&&e.maxY>=t.minY}function f(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,i,r,n,o){for(var a=[i,r];a.length;)if(!((r=a.pop())-(i=a.pop())<=n)){var s=i+Math.ceil((r-i)/n/2)*n;t(e,s,i,r,o),a.push(i,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(t){var e=this.data,i=[];if(!d(t,e))return i;for(var r=this.toBBox,n=[];e;){for(var o=0;o=0&&n[e].children.length>this._maxEntries;)this._split(n,e),e--;this._adjustParentBBoxes(r,n,e)},r.prototype._split=function(t,e){var i=t[e],r=i.children.length,n=this._minEntries;this._chooseSplitAxis(i,n,r);var a=this._chooseSplitIndex(i,n,r),s=f(i.children.splice(a,i.children.length-a));s.height=i.height,s.leaf=i.leaf,o(i,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(i,s)},r.prototype._splitRoot=function(t,e){this.data=f([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(t,e,i){for(var r,n,o,s,l,u,p,c=1/0,d=1/0,f=e;f<=i-e;f++){var g=a(t,0,f,this.toBBox),y=a(t,f,i,this.toBBox),v=(n=g,o=y,void 0,void 0,void 0,void 0,s=Math.max(n.minX,o.minX),l=Math.max(n.minY,o.minY),u=Math.min(n.maxX,o.maxX),p=Math.min(n.maxY,o.maxY),Math.max(0,u-s)*Math.max(0,p-l)),m=h(g)+h(y);v=e;d--){var f=t.children[d];s(l,t.leaf?n(f):f),u+=p(l)}return u},r.prototype._adjustParentBBoxes=function(t,e,i){for(var r=i;r>=0;r--)s(e[r],t)},r.prototype._condense=function(t){for(var e=t.length-1,i=void 0;e>=0;e--)0===t[e].children.length?e>0?(i=t[e-1].children).splice(i.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},r}()},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,i)=>{"use strict";i.d(e,{Z:()=>n});var r=i(4415);const n=function(t){function e(e){var i="Assertion failed. See https://openlayers.org/en/"+("latest"===r.q4?r.q4:"v"+r.q4.split("-")[0])+"/doc/errors/#"+e+" for details.";t.call(this,i),this.code=e,this.name="AssertionError",this.message=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error)},6193:(t,e,i)=>{"use strict";i.d(e,{Z:()=>u});var r=i(6643),n=i(12),o=i(5917),a=i(7288),s="length",l=function(t){function e(e,i,r){t.call(this,e),this.element=i,this.index=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(a.ZP);const u=function(t){function e(e,i){if(t.call(this),this.on,this.once,this.un,i=i||{},this.unique_=!!i.unique,this.array_=e||[],this.unique_)for(var r=0,n=this.array_.length;r0;)this.pop()},e.prototype.extend=function(t){for(var e=0,i=t.length;ethis.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new l(o.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_,i=0,r=e.length;i=this.getLength())){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new l(o.Z.REMOVE,e,t)),e}},e.prototype.setAt=function(t,e){if(t>=this.getLength())this.insertAt(t,e);else{if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);var i=this.array_[t];this.array_[t]=e,this.dispatchEvent(new l(o.Z.REMOVE,i,t)),this.dispatchEvent(new l(o.Z.ADD,e,t))}},e.prototype.updateLength_=function(){this.set(s,this.array_.length)},e.prototype.assertUnique_=function(t,e){for(var i=0,n=this.array_.length;i{"use strict";i.d(e,{Z:()=>r});const r={ADD:"add",REMOVE:"remove"}},2083:(t,e,i)=>{"use strict";i.d(e,{Z:()=>n});var r=function(){this.disposed=!1};r.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},r.prototype.disposeInternal=function(){};const n=r},3458:(t,e,i)=>{"use strict";i.d(e,{K:()=>s});var r=i(7758),n=i(8408);i(4415);n.Z,i(8260);var o=i(6299),a=(i(2005),i(5310));function s(t,e,i){var n=t,s=!0,l=!1,u=!1,h=[(0,a.Vx)(n,r.Z.LOAD,(function(){u=!0,l||e()}))];return n.src&&o.Tp?(l=!0,n.decode().then((function(){s&&e()})).catch((function(t){s&&(u?e():i())}))):h.push((0,a.Vx)(n,r.Z.ERROR,i)),function(){s=!1,h.forEach(a.bN)}}},8260:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});const r={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},7341:(t,e,i)=>{"use strict";i.d(e,{Z:()=>s});var r=i(3102),n=i(5816),o=i(766),a=i(3458);const s=function(t){function e(e,i,r,n,o,a){t.call(this,e,i,a),this.crossOrigin_=n,this.src_=r,this.key=r,this.image_=new Image,null!==n&&(this.image_.crossOrigin=n),this.unlisten_=null,this.tileLoadFunction_=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=n.Z.LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){var t;this.state=n.Z.ERROR,this.unlistenImage_(),this.image_=((t=(0,o.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=n.Z.LOADED:this.state=n.Z.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==n.Z.ERROR&&(this.state=n.Z.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==n.Z.IDLE&&(this.state=n.Z.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,a.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(r.Z)},9487:(t,e,i)=>{"use strict";i.d(e,{Z:()=>$t});var r=i(12),n=i(6193),o=i(5917),a=i(2083),s=i(1998),l=i(4415),u=i(4765),h=i(2005),p=i(6929),c=i(7385),d=i(5353),f=function(t){function e(e){t.call(this),this.map_=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.dispatchRenderEvent=function(t,e){(0,l.O3)()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,i=t.coordinateToPixelTransform,r=t.pixelToCoordinateTransform;(0,u.qC)(i,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),(0,u.nb)(r,i)},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,r,n,o,a,s){var l,u=e.viewState;function p(t,e,i,r){return n.call(o,e,t?i:null,r)}var f=u.projection,g=(0,d.Cf)(t.slice(),f),y=[[0,0]];if(f.canWrapX()&&r){var v=f.getExtent(),m=(0,h.dz)(v);y.push([-m,0],[m,0])}for(var _=e.layerStatesArray,x=_.length,b=[],C=[],w=0;w=0;--S){var E=_[S],T=E.layer;if(T.hasRenderer()&&(0,c.j)(E,u)&&a.call(s,T)){var R=T.getRenderer(),I=T.getSource();if(R&&I){var P=I.getWrapX()?g:t,M=p.bind(null,E.managed);C[0]=P[0]+y[w][0],C[1]=P[1]+y[w][1],l=R.forEachFeatureAtCoordinate(C,e,i,M,b)}if(l)return l}}if(0!==b.length){var O=1/b.length;return b.forEach((function(t,e){return t.distanceSq+=e*O})),b.sort((function(t,e){return t.distanceSq-e.distanceSq})),b.some((function(t){return l=t.callback(t.feature,t.layer,t.geometry)})),l}},e.prototype.hasFeatureAtCoordinate=function(t,e,i,r,n,o){return void 0!==this.forEachFeatureAtCoordinate(t,e,i,r,s.uX,this,n,o)},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){(0,l.O3)()},e.prototype.scheduleExpireIconCache=function(t){p.c.canExpireCache()&&t.postRenderFunctions.push(g)},e}(a.Z);function g(t,e){p.c.expire()}const y=f;var v=i(1846),m=i(6178),_=i(3557),x=i(8308),b=i(9680),C=i(5310),w=i(766),S=function(t){function e(e){t.call(this,e),this.fontChangeListenerKey_=(0,C.oL)(b.sG,v.Z.PROPERTYCHANGE,e.redrawText.bind(e)),this.element_=document.createElement("div");var i=this.element_.style;i.position="absolute",i.width="100%",i.height="100%",i.zIndex="0",this.element_.className=x.XV+" ol-layers";var r=e.getViewport();r.insertBefore(this.element_,r.firstChild||null),this.children_=[],this.renderedVisible_=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.dispatchRenderEvent=function(t,e){var i=this.getMap();if(i.hasListener(t)){var r=new m.Z(t,void 0,e);i.dispatchEvent(r)}},e.prototype.disposeInternal=function(){(0,C.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(_.Z.PRECOMPOSE,t);var e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),i=t.viewState;this.children_.length=0;for(var r=[],n=null,o=0,a=e.length;o=0;--p)r[p].renderDeclutter(t);(0,w.hF)(this.element_,this.children_),this.dispatchRenderEvent(_.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}(y);const E=S;var T=i(7758),R=i(944),I=i(7288),P=function(t){function e(e,i,r){t.call(this,e),this.map=i,this.frameState=void 0!==r?r:null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(I.ZP);const M=P;var O=function(t){function e(e,i,r,n,o,a){t.call(this,e,i,o),this.originalEvent=r,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==n&&n,this.activePointers=a}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={pixel:{configurable:!0},coordinate:{configurable:!0}};return i.pixel.get=function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},i.pixel.set=function(t){this.pixel_=t},i.coordinate.get=function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},i.coordinate.set=function(t){this.coordinate_=t},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()},Object.defineProperties(e.prototype,i),e}(M);const k=O,F={SINGLECLICK:"singleclick",CLICK:T.Z.CLICK,DBLCLICK:T.Z.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},L="pointerdown";var Z=i(8408),A=i(6299),D=function(t){function e(e,i){t.call(this,e),this.map_=e,this.clickTimeoutId_,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=void 0===i?1:i,this.down_=null;var r=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=r,this.pointerdownListenerKey_=(0,C.oL)(r,L,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=(0,C.oL)(r,"pointermove",this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(T.Z.TOUCHMOVE,this.boundHandleTouchMove_,!!A.bM&&{passive:!1})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.emulateClick_=function(t){var e=new k(F.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new k(F.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new k(F.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t,i=e.pointerId;if(e.type==F.POINTERUP||e.type==F.POINTERCANCEL){for(var r in delete this.trackedTouches_[i],this.trackedTouches_)if(this.trackedTouches_[r].target!==e.target){delete this.trackedTouches_[r];break}}else e.type!=F.POINTERDOWN&&e.type!=F.POINTERMOVE||(this.trackedTouches_[i]=e);this.activePointers_=Object.values(this.trackedTouches_)},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new k(F.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(C.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 k(F.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);for(var i in this.dispatchEvent(e),this.down_={},t){var r=t[i];this.down_[i]="function"==typeof r?s.Zn:r}if(0===this.dragListenerKeys_.length){var n=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,C.oL)(n,F.POINTERMOVE,this.handlePointerMove_,this),(0,C.oL)(n,F.POINTERUP,this.handlePointerUp_,this),(0,C.oL)(this.element_,F.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==n&&this.dragListenerKeys_.push((0,C.oL)(this.element_.getRootNode(),F.POINTERUP,this.handlePointerUp_,this))}},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;var e=new k(F.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 k(F.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,C.bN)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(T.Z.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,C.bN)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(C.bN),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(Z.Z);const z=D,N="postrender",G="loadstart",j="loadend",W="layergroup",q="size",X="target",Y="view";var V=i(9751),B=i(273),U=1/0,K=function(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}};K.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,(0,B.Z)(this.queuedElements_)},K.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,i=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var r=this.keyFunction_(i);return delete this.queuedElements_[r],i},K.prototype.enqueue=function(t){(0,V.h)(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=U&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},K.prototype.getCount=function(){return this.elements_.length},K.prototype.getLeftChildIndex_=function(t){return 2*t+1},K.prototype.getRightChildIndex_=function(t){return 2*t+2},K.prototype.getParentIndex_=function(t){return t-1>>1},K.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},K.prototype.isEmpty=function(){return 0===this.elements_.length},K.prototype.isKeyQueued=function(t){return t in this.queuedElements_},K.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},K.prototype.siftUp_=function(t){for(var e=this.elements_,i=this.priorities_,r=e.length,n=e[t],o=i[t],a=t;t>1;){var s=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),u=lt;){var a=this.getParentIndex_(e);if(!(r[a]>o))break;i[e]=i[a],r[e]=r[a],e=a}i[e]=n,r[e]=o},K.prototype.reprioritize=function(){var t,e,i,r=this.priorityFunction_,n=this.elements_,o=this.priorities_,a=0,s=n.length;for(e=0;e0;)r=(i=this.dequeue()[0]).getKey(),i.getState()!==J.Z.IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++n,i.load())},e}(H);const Q=$;var tt=i(8615),et=i(8921);const it=function(t){function e(e){t.call(this);var i=e.element;!i||e.target||i.style.pointerEvents||(i.style.pointerEvents="auto"),this.element=i||null,this.target_=null,this.map_=null,this.listenerKeys=[],e.render&&(this.render=e.render),e.target&&this.setTarget(e.target)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){(0,w.ZF)(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&(0,w.ZF)(this.element);for(var e=0,i=this.listenerKeys.length;e0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!(0,rt.fS)(e,this.renderedAttributions_)){(0,w.ep)(this.ulElement_);for(var r=0,n=e.length;r0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:ot.Vv}):t.setRotation(0))}},e.prototype.render=function(t){var e=t.frameState;if(e){var i=e.viewState.rotation;if(i!=this.rotation_){var r="rotate("+i+"rad)";if(this.autoHide_){var n=this.element.classList.contains(x.oj);n||0!==i?n&&0!==i&&this.element.classList.remove(x.oj):this.element.classList.add(x.oj)}this.label_.style.transform=r}this.rotation_=i}},e}(it);const st=at;const lt=function(t){function e(e){e=e||{},t.call(this,{element:document.createElement("div"),target:e.target});var i=void 0!==e.className?e.className:"ol-zoom",r=void 0!==e.delta?e.delta:1,n=void 0!==e.zoomInClassName?e.zoomInClassName:i+"-in",o=void 0!==e.zoomOutClassName?e.zoomOutClassName:i+"-out",a=void 0!==e.zoomInLabel?e.zoomInLabel:"+",s=void 0!==e.zoomOutLabel?e.zoomOutLabel:"–",l=void 0!==e.zoomInTipLabel?e.zoomInTipLabel:"Zoom in",u=void 0!==e.zoomOutTipLabel?e.zoomOutTipLabel:"Zoom out",h=document.createElement("button");h.className=n,h.setAttribute("type","button"),h.title=l,h.appendChild("string"==typeof a?document.createTextNode(a):a),h.addEventListener(T.Z.CLICK,this.handleClick_.bind(this,r),!1);var p=document.createElement("button");p.className=o,p.setAttribute("type","button"),p.title=u,p.appendChild("string"==typeof s?document.createTextNode(s):s),p.addEventListener(T.Z.CLICK,this.handleClick_.bind(this,-r),!1);var c=i+" "+x.XV+" "+x.hg,d=this.element;d.className=c,d.appendChild(h),d.appendChild(p),this.duration_=void 0!==e.duration?e.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap().getView();if(e){var i=e.getZoom();if(void 0!==i){var r=e.getConstrainedZoom(i+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:r,duration:this.duration_,easing:ot.Vv})):e.setZoom(r)}}},e}(it),ut="active";function ht(t,e,i,r){var n=t.getZoom();if(void 0!==n){var o=t.getConstrainedZoom(n+e),a=t.getResolutionForZoom(o);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:a,anchor:i,duration:void 0!==r?r:250,easing:ot.Vv})}}const pt=function(t){function e(e){t.call(this),this.on,this.once,this.un,e&&e.handleEvent&&(this.handleEvent=e.handleEvent),this.map_=null,this.setActive(!0)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getActive=function(){return this.get(ut)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(ut,t)},e.prototype.setMap=function(t){this.map_=t},e}(r.Z);const ct=function(t){function e(e){t.call(this),e=e||{},this.delta_=e.delta?e.delta:1,this.duration_=void 0!==e.duration?e.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleEvent=function(t){var e=!1;if(t.type==F.DBLCLICK){var i=t.originalEvent,r=t.map,n=t.coordinate,o=i.shiftKey?-this.delta_:this.delta_;ht(r.getView(),o,n,this.duration_),i.preventDefault(),e=!0}return!e},e}(pt);function dt(t){for(var e=t.length,i=0,r=0,n=0;n0}}else if(t.type==F.POINTERDOWN){var r=this.handleDownEvent(t);this.handlingDownUpSequence=r,e=this.stopDown(r)}else t.type==F.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}(pt);function gt(t){var e=arguments;return function(t){for(var i=!0,r=0,n=e.length;r0&&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}(ft);const Tt=Et;var Rt=i(6123),It=function(t){function e(e){e=e||{},t.call(this,{stopDown:s.Dv}),this.condition_=e.condition?e.condition:yt,this.lastAngle_=void 0,this.duration_=void 0!==e.duration?e.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){if(wt(t)){var e=t.map,i=e.getView();if(i.getConstraints().rotation!==Rt.h$){var r=e.getSize(),n=t.pixel,o=Math.atan2(r[1]/2-n[1],n[0]-r[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;i.adjustRotationInternal(-a)}this.lastAngle_=o}}},e.prototype.handleUpEvent=function(t){return!wt(t)||(t.map.getView().endInteraction(this.duration_),!1)},e.prototype.handleDownEvent=function(t){return!(!wt(t)||!_t(t)||!this.condition_(t)||(t.map.getView().beginInteraction(),this.lastAngle_=void 0,0))},e}(ft);const Pt=It;var Mt=i(5828),Ot=function(t){function e(e){t.call(this),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,i="px",r=this.element_.style;r.left=Math.min(t[0],e[0])+i,r.top=Math.min(t[1],e[1])+i,r.width=Math.abs(e[0]-t[0])+i,r.height=Math.abs(e[1]-t[1])+i},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_,i=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new Mt.ZP([i])},e.prototype.getGeometry=function(){return this.geometry_},e}(a.Z);const kt=Ot;var Ft=function(t){function e(e,i,r){t.call(this,e),this.coordinate=i,this.mapBrowserEvent=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(I.ZP),Lt=function(t){function e(e){t.call(this),this.on,this.once,this.un,e=e||{},this.box_=new kt(e.className||"ol-dragbox"),this.minArea_=void 0!==e.minArea?e.minArea:64,e.onBoxEnd&&(this.onBoxEnd=e.onBoxEnd),this.startPixel_=null,this.condition_=e.condition?e.condition:_t,this.boxEndCondition_=e.boxEndCondition?e.boxEndCondition:this.defaultBoxEndCondition}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.defaultBoxEndCondition=function(t,e,i){var r=i[0]-e[0],n=i[1]-e[1];return r*r+n*n>=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 Ft("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 Ft(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 Ft("boxstart",t.coordinate,t)),!0)},e.prototype.onBoxEnd=function(t){},e}(ft),Zt=function(t){function e(e){var i=(e=e||{}).condition?e.condition:bt;t.call(this,{condition:i,className:e.className||"ol-dragzoom",minArea:e.minArea}),this.duration_=void 0!==e.duration?e.duration:200,this.out_=void 0!==e.out&&e.out}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.onBoxEnd=function(t){var e=this.getMap().getView(),i=this.getGeometry();if(this.out_){var r=e.rotatedExtentForGeometry(i),n=e.getResolutionForExtentInternal(r),o=e.getResolution()/n;(i=i.clone()).scale(o*o)}e.fitInternal(i,{duration:this.duration_,easing:ot.Vv})},e}(Lt);const At=Zt;const Dt=function(t){function e(e){t.call(this),e=e||{},this.defaultCondition_=function(t){return xt(t)&&Ct(t)},this.condition_=void 0!==e.condition?e.condition:this.defaultCondition_,this.duration_=void 0!==e.duration?e.duration:100,this.pixelDelta_=void 0!==e.pixelDelta?e.pixelDelta:128}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleEvent=function(t){var e=!1;if(t.type==T.Z.KEYDOWN){var i=t.originalEvent,r=i.keyCode;if(this.condition_(t)&&(40==r||37==r||39==r||38==r)){var n=t.map.getView(),o=n.getResolution()*this.pixelDelta_,a=0,s=0;40==r?s=-o:37==r?a=-o:39==r?a=o:s=o;var l=[a,s];(0,d.U1)(l,n.getRotation()),function(t,e,i){var r=t.getCenterInternal();if(r){var n=[r[0]+e[0],r[1]+e[1]];t.animateInternal({duration:void 0!==i?i:250,easing:ot.GE,center:t.getConstrainedCenter(n)})}}(n,l,this.duration_),i.preventDefault(),e=!0}}return!e},e}(pt);const zt=function(t){function e(e){t.call(this),e=e||{},this.condition_=e.condition?e.condition:Ct,this.delta_=e.delta?e.delta:1,this.duration_=void 0!==e.duration?e.duration:100}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleEvent=function(t){var e=!1;if(t.type==T.Z.KEYDOWN||t.type==T.Z.KEYPRESS){var i=t.originalEvent,r=i.charCode;if(this.condition_(t)&&(r=="+".charCodeAt(0)||r=="-".charCodeAt(0))){var n=t.map,o=r=="+".charCodeAt(0)?this.delta_:-this.delta_;ht(n.getView(),o,void 0,this.duration_),i.preventDefault(),e=!0}}return!e},e}(pt);var Nt=function(t,e,i){this.decay_=t,this.minVelocity_=e,this.delay_=i,this.points_=[],this.angle_=0,this.initialVelocity_=0};Nt.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},Nt.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},Nt.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]0&&this.points_[i+2]>t;)i-=3;var r=this.points_[e+2]-this.points_[i+2];if(r<1e3/60)return!1;var n=this.points_[e]-this.points_[i],o=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(o,n),this.initialVelocity_=Math.sqrt(n*n+o*o)/r,this.initialVelocity_>this.minVelocity_},Nt.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},Nt.prototype.getAngle=function(){return this.angle_};const Gt=Nt;var jt=i(7344);const Wt=function(t){function e(e){e=e||{},t.call(this,e),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==e.maxDelta?e.maxDelta:1,this.duration_=void 0!==e.duration?e.duration:250,this.timeout_=void 0!==e.timeout?e.timeout:80,this.useAnchor_=void 0===e.useAnchor||e.useAnchor,this.constrainResolution_=void 0!==e.constrainResolution&&e.constrainResolution;var i=e.condition?e.condition:mt;this.condition_=e.onFocusOnly?gt(vt,i):i,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,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!==T.Z.WHEEL)return!0;var e,i=t.map,r=t.originalEvent;if(r.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==T.Z.WHEEL&&(e=r.deltaY,A.V&&r.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=A.MP),r.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)),0===e)return!1;this.lastDelta_=e;var n=Date.now();void 0===this.startTime_&&(this.startTime_=n),(!this.mode_||n-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(e)<4?"trackpad":"wheel");var o=i.getView();if("trackpad"===this.mode_&&!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_=n,!1;this.totalDelta_+=e;var a=Math.max(this.timeout_-(n-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),a),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var i=-(0,jt.uZ)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),ht(e,i,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}(pt);var qt=function(t){function e(e){var i=e=e||{};i.stopDown||(i.stopDown=s.Dv),t.call(this,i),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==e.threshold?e.threshold:.3,this.duration_=void 0!==e.duration?e.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){var e=0,i=this.targetPointers[0],r=this.targetPointers[1],n=Math.atan2(r.clientY-i.clientY,r.clientX-i.clientX);if(void 0!==this.lastAngle_){var o=n-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=n;var a=t.map,s=a.getView();if(s.getConstraints().rotation!==Rt.h$){var l=a.getViewport().getBoundingClientRect(),u=dt(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}(ft);const Xt=qt;var Yt=function(t){function e(e){var i=e=e||{};i.stopDown||(i.stopDown=s.Dv),t.call(this,i),this.anchor_=null,this.duration_=void 0!==e.duration?e.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){var e=1,i=this.targetPointers[0],r=this.targetPointers[1],n=i.clientX-r.clientX,o=i.clientY-r.clientY,a=Math.sqrt(n*n+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=dt(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(),i=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,i),!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}(ft);const Vt=Yt;var Bt=i(9786),Ut=i(7814);function Kt(t){t instanceof c.Z?t.setMapInternal(null):t instanceof R.Z&&t.getLayers().forEach(Kt)}function Ht(t,e){if(t instanceof c.Z)t.setMapInternal(e);else if(t instanceof R.Z)for(var i=t.getLayers().getArray(),r=0,n=i.length;r=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 i=this.maxTilesLoading_,r=i;if(t){var n=t.viewHints;if(n[et.Z.ANIMATING]||n[et.Z.INTERACTING]){var o=Date.now()-t.time>8;i=o?0:8,r=o?0:2}}e.getTilesLoading(){"use strict";i.d(e,{Z:()=>u});var r=i(7288),n=i(1846),o=i(9335),a=i(4415),s=i(273),l=function(t){function e(e,i,r){t.call(this,e),this.key=i,this.oldValue=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(r.ZP);const u=function(t){function e(e){t.call(this),this.on,this.once,this.un,(0,a.sq)(this),this.values_=null,void 0!==e&&this.setProperties(e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,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_&&Object.assign({},this.values_)||{}},e.prototype.hasProperties=function(){return!!this.values_},e.prototype.notify=function(t,e){var i;i="change:"+t,this.hasListener(i)&&this.dispatchEvent(new l(i,t,e)),i=n.Z.PROPERTYCHANGE,this.hasListener(i)&&this.dispatchEvent(new l(i,t,e))},e.prototype.addChangeListener=function(t,e){this.addEventListener("change:"+t,e)},e.prototype.removeChangeListener=function(t,e){this.removeEventListener("change:"+t,e)},e.prototype.set=function(t,e,i){var r=this.values_||(this.values_={});if(i)r[t]=e;else{var n=r[t];r[t]=e,n!==e&&this.notify(t,n)}},e.prototype.setProperties=function(t,e){for(var i in t)this.set(i,t[i],e)},e.prototype.applyProperties=function(t){t.values_&&Object.assign(this.values_||(this.values_={}),t.values_)},e.prototype.unset=function(t,e){if(this.values_&&t in this.values_){var i=this.values_[t];delete this.values_[t],(0,s.x)(this.values_)&&(this.values_=null),e||this.notify(t,i)}},e}(o.Z)},1846:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});const r={PROPERTYCHANGE:"propertychange"}},9335:(t,e,i)=>{"use strict";i.d(e,{Z:()=>s});var r=i(8408),n=i(7758),o=i(5310),a=function(t){function e(){t.call(this),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.changed=function(){++this.revision_,this.dispatchEvent(n.Z.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,e){if(Array.isArray(t)){for(var i=t.length,r=new Array(i),n=0;n{"use strict";i.d(e,{Z:()=>l});var r=i(8408),n=i(7758),o=i(5816),a=i(4415),s=i(6581);const l=function(t){function e(e,i,r){t.call(this),r=r||{},this.tileCoord=e,this.state=i,this.interimTile=null,this.key="",this.transition_=void 0===r.transition?250:r.transition,this.transitionStarts_={},this.interpolate=!!r.interpolate}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.changed=function(){this.dispatchEvent(n.Z.CHANGE)},e.prototype.release=function(){this.state===o.Z.ERROR&&this.setState(o.Z.EMPTY)},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()==o.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()==o.Z.LOADED){t.interimTile=null;break}t.getState()==o.Z.LOADING?e=t:t.getState()==o.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!==o.Z.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){(0,a.O3)()},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var i=this.transitionStarts_[t];if(i){if(-1===i)return 1}else i=e,this.transitionStarts_[t]=i;var r=e-i+1e3/60;return r>=this.transition_?1:(0,s.YQ)(r/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}(r.Z)},8441:(t,e,i)=>{"use strict";i.d(e,{T:()=>n,Z:()=>o});var r=function(t,e,i,r){this.minX=t,this.maxX=e,this.minY=i,this.maxY=r};function n(t,e,i,n,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=i,o.maxY=n,o):new r(t,e,i,n)}r.prototype.contains=function(t){return this.containsXY(t[1],t[2])},r.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},r.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},r.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},r.prototype.extend=function(t){t.minXthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)},r.prototype.getHeight=function(){return this.maxY-this.minY+1},r.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},r.prototype.getWidth=function(){return this.maxX-this.minX+1},r.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY};const o=r},5816:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});const r={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},8615:(t,e,i)=>{"use strict";i.d(e,{ZP:()=>E});var r=i(12),n=i(8921);const o={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var a=i(7348),s=i(9786),l=i(1998),u=i(5353),h=i(9751),p=i(7344);function c(t,e,i){return function(r,n,o,a,s){if(r){if(!n&&!e)return r;var l=e?0:o[0]*n,u=e?0:o[1]*n,h=s?s[0]:0,c=s?s[1]:0,d=t[0]+l/2+h,f=t[2]-l/2+h,g=t[1]+u/2+c,y=t[3]-u/2+c;d>f&&(f=d=(f+d)/2),g>y&&(y=g=(y+g)/2);var v=(0,p.uZ)(r[0],d,f),m=(0,p.uZ)(r[1],g,y);if(a&&i&&n){var _=30*n;v+=-_*Math.log(1+Math.max(0,d-r[0])/_)+_*Math.log(1+Math.max(0,r[0]-f)/_),m+=-_*Math.log(1+Math.max(0,g-r[1])/_)+_*Math.log(1+Math.max(0,r[1]-y)/_)}return[v,m]}}}function d(t){return t}var f=i(2005),g=i(7782);function y(t,e,i,r){var n=(0,f.dz)(e)/i[0],o=(0,f.Cr)(e)/i[1];return r?Math.min(t,Math.max(n,o)):Math.min(t,Math.min(n,o))}function v(t,e,i){var r=Math.min(t,e);return r*=Math.log(1+50*Math.max(0,t/e-1))/50+1,i&&(r=Math.max(r,i),r/=Math.log(1+50*Math.max(0,i/t-1))/50+1),(0,p.uZ)(r,i/2,2*e)}function m(t,e,i,r,n){return i=void 0===i||i,function(o,a,s,l){if(void 0!==o){var u=r?y(t,r,s,n):t;return i&&l?v(o,u,e):(0,p.uZ)(o,e,u)}}}var _=i(6123),x=i(6581),b=i(5828);function C(t,e){setTimeout((function(){t(e)}),0)}function w(t){return!(t.sourceCenter&&t.targetCenter&&!(0,u.fS)(t.sourceCenter,t.targetCenter))&&t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation}function S(t,e,i,r,n){var o=Math.cos(-n),a=Math.sin(-n),s=t[0]*o-t[1]*a,l=t[1]*o+t[0]*a;return[(s+=(e[0]/2-i[0])*r)*o-(l+=(i[1]-e[1]/2)*r)*(a=-a),l*o+s*a]}const E=function(t){function e(e){t.call(this),this.on,this.once,this.un,e=Object.assign({},e),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=(0,s.UQ)(e.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,e.projection&&(0,s.h_)(),e.center&&(e.center=(0,s.Vs)(e.center,this.projection_)),e.extent&&(e.extent=(0,s.dY)(e.extent,this.projection_)),this.applyOptions_(e)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={padding:{configurable:!0}};return e.prototype.applyOptions_=function(t){var e=Object.assign({},t);for(var i in o)delete e[i];this.setProperties(e,!0);var r=function(t){var e,i,r,n=void 0!==t.minZoom?t.minZoom:0,o=void 0!==t.maxZoom?t.maxZoom:28,l=void 0!==t.zoomFactor?t.zoomFactor:2,u=void 0!==t.multiWorld&&t.multiWorld,h=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,c=void 0!==t.showFullExtent&&t.showFullExtent,d=(0,s.UQ)(t.projection,"EPSG:3857"),_=d.getExtent(),x=t.constrainOnlyCenter,b=t.extent;if(u||b||!d.isGlobal()||(x=!1,b=_),void 0!==t.resolutions){var C=t.resolutions;i=C[n],r=void 0!==C[o]?C[o]:C[C.length-1],e=t.constrainResolution?function(t,e,i,r){return e=void 0===e||e,function(n,o,a,s){if(void 0!==n){var l=t[0],u=t[t.length-1],h=i?y(l,i,a,r):l;if(s)return e?v(n,h,u):(0,p.uZ)(n,u,h);var c=Math.min(h,n),d=Math.floor((0,g.h7)(t,c,o));return t[d]>h&&d1&&"function"==typeof arguments[r-1]&&(e=arguments[r-1],--r);for(var o=0;o0},e.prototype.getInteracting=function(){return this.hints_[n.Z.INTERACTING]>0},e.prototype.cancelAnimations=function(){var t;this.setHint(n.Z.ANIMATING,-this.hints_[n.Z.ANIMATING]);for(var e=0,i=this.animations_.length;e=0;--i){for(var r=this.animations_[i],o=!0,a=0,s=r.length;a0?u/l.duration:1;h>=1?(l.complete=!0,h=1):o=!1;var c=l.easing(h);if(l.sourceCenter){var d=l.sourceCenter[0],f=l.sourceCenter[1],g=l.targetCenter[0],y=l.targetCenter[1];this.nextCenter_=l.targetCenter;var v=d+c*(g-d),m=f+c*(y-f);this.targetCenter_=[v,m]}if(l.sourceResolution&&l.targetResolution){var _=1===c?l.targetResolution:l.sourceResolution+c*(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===c?(0,p.$W)(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+c*(l.targetRotation-l.sourceRotation);if(l.anchor){var S=this.constraints_.rotation(w,!0);this.targetCenter_=this.calculateCenterRotate(S,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=w}if(this.applyTargetState_(!0),e=!0,!l.complete)break}}if(o){this.animations_[i]=null,this.setHint(n.Z.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var E=r[0].callback;E&&C(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 i,r=this.getCenterInternal();return void 0!==r&&(i=[r[0]-e[0],r[1]-e[1]],(0,u.U1)(i,t-this.getRotation()),(0,u.IH)(i,e)),i},e.prototype.calculateCenterZoom=function(t,e){var i,r=this.getCenterInternal(),n=this.getResolution();return void 0!==r&&void 0!==n&&(i=[e[0]-t*(e[0]-r[0])/n,e[1]-t*(e[1]-r[1])/n]),i},e.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var i=e[0],r=e[1];return[Math.abs(i*Math.cos(t))+Math.abs(r*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(r*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,s.lO)(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(o.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,s.Fj)(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){t=t||this.getViewportSizeMinusPadding_();var e=this.getCenterInternal();(0,h.h)(e,1);var i=this.getResolution();(0,h.h)(void 0!==i,2);var r=this.getRotation();return(0,h.h)(void 0!==r,3),(0,f.p8)(e,i,r,t)},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(o.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal((0,s.dY)(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){e=e||this.getViewportSizeMinusPadding_();var i=(0,f.dz)(t)/e[0],r=(0,f.Cr)(t)/e[1];return Math.max(i,r)},e.prototype.getResolutionForValueFunction=function(t){t=t||2;var e=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,r=Math.log(e/i)/Math.log(t);return function(i){return e/Math.pow(t,i*r)}},e.prototype.getRotation=function(){return this.get(o.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,n=Math.log(i/r)/e;return function(t){return Math.log(i/t)/e/n}},e.prototype.getViewportSizeMinusPadding_=function(t){var e=this.getViewportSize_(t),i=this.padding_;return i&&(e=[e[0]-i[1]-i[3],e[1]-i[0]-i[2]]),e},e.prototype.getState=function(){var t=this.getProjection(),e=this.getResolution(),i=this.getRotation(),r=this.getCenterInternal(),n=this.padding_;if(n){var o=this.getViewportSizeMinusPadding_();r=S(r,this.getViewportSize_(),[o[0]/2+n[3],o[1]/2+n[0]],e,i)}return{center:r.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,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,i,r=this.minZoom_||0;if(this.resolutions_){var n=(0,g.h7)(this.resolutions_,t,1);r=n,e=this.resolutions_[n],i=n==this.resolutions_.length-1?2:e/this.resolutions_[n+1]}else e=this.maxResolution_,i=this.zoomFactor_;return r+Math.log(e/t)/Math.log(i)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=(0,p.uZ)(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(i,(0,p.uZ)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var i;if((0,h.h)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)){(0,h.h)(!(0,f.xb)(t),25);var r=(0,s.dY)(t,this.getProjection());i=(0,b.oJ)(r)}else if("Circle"===t.getType()){var n=(0,s.dY)(t.getExtent(),this.getProjection());(i=(0,b.oJ)(n)).rotate(this.getRotation(),(0,f.qg)(n))}else{var o=(0,s.Cs)();i=o?t.clone().transform(o,this.getProjection()):t}this.fitInternal(i,e)},e.prototype.rotatedExtentForGeometry=function(t){for(var e=this.getRotation(),i=Math.cos(e),r=Math.sin(-e),n=t.getFlatCoordinates(),o=t.getStride(),a=1/0,s=1/0,l=-1/0,u=-1/0,h=0,p=n.length;h{"use strict";i.d(e,{Z:()=>r});const r={ANIMATING:0,INTERACTING:1}},7782:(t,e,i)=>{"use strict";function r(t,e,i){var r,o;i=i||n;for(var a=0,s=t.length,l=!1;a>1)],e))<0?a=r+1:(s=r,l=!o);return l?a:~a}function n(t,e){return t>e?1:t0){for(r=1;r0?r-1:r:t[r-1]-e0||i&&0===o)}))}i.d(e,{FZ:()=>a,fS:()=>l,h7:()=>o,kK:()=>n,l7:()=>s,pT:()=>u,ry:()=>r})},9751:(t,e,i)=>{"use strict";i.d(e,{h:()=>n});var r=i(6643);function n(t,e){if(!t)throw new r.Z(e)}},8609:(t,e,i)=>{"use strict";i.d(e,{BB:()=>d,XC:()=>s,_2:()=>p});var r=i(9751),n=i(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:d(t)}var l,u,h=(l={},u=0,function(t){var e;if(l.hasOwnProperty(t))e=l[t];else{if(u>=1024){var i=0;for(var n in l)0==(3&i++)&&(delete l[n],--u)}e=function(t){var e,i,n,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 i=getComputedStyle(e).color;return document.body.removeChild(e),i}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),i=parseInt(t.substr(1+1*u,u),16),n=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,i=(i<<4)+i,n=(n<<4)+n,p&&(s=(s<<4)+s)),l=[e,i,n,s/255]}else t.startsWith("rgba(")?c(l=t.slice(5,-1).split(",").map(Number)):t.startsWith("rgb(")?((l=t.slice(4,-1).split(",").map(Number)).push(1),c(l)):(0,r.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,n.uZ)(t[0]+.5|0,0,255),t[1]=(0,n.uZ)(t[1]+.5|0,0,255),t[2]=(0,n.uZ)(t[2]+.5|0,0,255),t[3]=(0,n.uZ)(t[3],0,1),t}function d(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var i=t[1];i!=(0|i)&&(i=i+.5|0);var r=t[2];return r!=(0|r)&&(r=r+.5|0),"rgba("+e+","+i+","+r+","+(void 0===t[3]?1:Math.round(100*t[3])/100)+")"}},6808:(t,e,i)=>{"use strict";i.d(e,{y:()=>n});var r=i(8609);function n(t){return Array.isArray(t)?(0,r.BB)(t):t}},5353:(t,e,i)=>{"use strict";i.d(e,{Cf:()=>l,IH:()=>n,U1:()=>a,bA:()=>s,fS:()=>o});var r=i(2005);function n(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function o(t,e){for(var i=!0,r=t.length-1;r>=0;--r)if(t[r]!=e[r]){i=!1;break}return i}function a(t,e){var i=Math.cos(e),r=Math.sin(e),n=t[0]*i-t[1]*r,o=t[1]*i+t[0]*r;return t[0]=n,t[1]=o,t}function s(t,e){return t[0]*=e,t[1]*=e,t}function l(t,e){if(e.canWrapX()){var i=(0,r.dz)(e.getExtent()),n=function(t,e,i){var n=e.getExtent(),o=0;return e.canWrapX()&&(t[0]n[2])&&(i=i||(0,r.dz)(n),o=Math.floor((t[0]-n[0])/i)),o}(t,e,i);n&&(t[0]-=n*i)}return t}},8308:(t,e,i)=>{"use strict";i.d(e,{XV:()=>n,hN:()=>a,hg:()=>o,oj:()=>r,p:()=>u});var r="ol-hidden",n="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 i={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},r=0,n=l.length;r{"use strict";i.d(e,{$H:()=>a,E4:()=>n,ZF:()=>s,ep:()=>l,hF:()=>u,jy:()=>o});var r=i(6299);function n(t,e,i,n){var o;return o=i&&i.length?i.shift():r.Id?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(o.width=t),e&&(o.height=e),o.getContext("2d",n)}function o(t){var e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function a(t,e){var i=e.parentNode;i&&i.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 i=t.childNodes,r=0;;++r){var n=i[r],o=e[r];if(!n&&!o)break;n!==o&&(n?o?t.insertBefore(o,n):(t.removeChild(n),--r):t.appendChild(o))}}},6581:(t,e,i)=>{"use strict";function r(t){return Math.pow(t,3)}function n(t){return 1-r(1-t)}function o(t){return 3*t*t-2*t*t*t}function a(t){return t}i.d(e,{GE:()=>a,Vv:()=>n,YQ:()=>r,rd:()=>o})},5310:(t,e,i)=>{"use strict";i.d(e,{Vx:()=>o,bN:()=>a,oL:()=>n});var r=i(273);function n(t,e,i,r,n){if(r&&r!==t&&(i=i.bind(r)),n){var o=i;i=function(){t.removeEventListener(e,i),o.apply(this,arguments)}}var a={target:t,type:e,listener:i};return t.addEventListener(e,i),a}function o(t,e,i,r){return n(t,e,i,r,!0)}function a(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,r.Z)(t))}},7288:(t,e,i)=>{"use strict";i.d(e,{ZP:()=>n});var r=function(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null};r.prototype.preventDefault=function(){this.defaultPrevented=!0},r.prototype.stopPropagation=function(){this.propagationStopped=!0};const n=r},7758:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});const r={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,i)=>{"use strict";i.d(e,{Z:()=>s});var r=i(2083),n=i(7288),o=i(1998),a=i(273);const s=function(t){function e(e){t.call(this),this.eventTarget_=e,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addEventListener=function(t,e){if(t&&e){var i=this.listeners_||(this.listeners_={}),r=i[t]||(i[t]=[]);r.includes(e)||r.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"==typeof t,i=e?t:t.type,r=this.listeners_&&this.listeners_[i];if(r){var a=e?new n.ZP(t):t;a.target||(a.target=this.eventTarget_||this);var s,l=this.dispatching_||(this.dispatching_={}),u=this.pendingRemovals_||(this.pendingRemovals_={});i in l||(l[i]=0,u[i]=0),++l[i];for(var h=0,p=r.length;h0)},e.prototype.removeEventListener=function(t,e){var i=this.listeners_&&this.listeners_[t];if(i){var r=i.indexOf(e);-1!==r&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[r]=o.Zn,++this.pendingRemovals_[t]):(i.splice(r,1),0===i.length&&delete this.listeners_[t]))}},e}(r.Z)},2005:(t,e,i)=>{"use strict";i.d(e,{Cf:()=>j,Cr:()=>O,EO:()=>z,Ed:()=>k,GN:()=>v,H6:()=>w,HK:()=>y,I7:()=>N,MV:()=>W,Ne:()=>G,T9:()=>f,Wj:()=>x,Xv:()=>L,YN:()=>g,b8:()=>u,bg:()=>S,d9:()=>s,dY:()=>M,dz:()=>Z,f3:()=>a,fS:()=>m,g0:()=>I,hC:()=>E,hI:()=>o,jE:()=>p,kK:()=>A,l7:()=>_,lJ:()=>d,p8:()=>P,pX:()=>c,qP:()=>b,qf:()=>l,qg:()=>R,r4:()=>h,rL:()=>F,w$:()=>T,xb:()=>D});var r=i(2110),n=i(9751);function o(t){for(var e=[1/0,1/0,-1/0,-1/0],i=0,r=t.length;io&&(u|=r.Z.RIGHT),la&&(u|=r.Z.ABOVE),u===r.Z.UNKNOWN&&(u=r.Z.INTERSECTING),u}function d(){return[1/0,1/0,-1/0,-1/0]}function f(t,e,i,r,n){return n?(n[0]=t,n[1]=e,n[2]=i,n[3]=r,n):[t,e,i,r]}function g(t){return f(1/0,1/0,-1/0,-1/0,t)}function y(t,e){var i=t[0],r=t[1];return f(i,r,i,r,e)}function v(t,e,i,r,n){return b(g(n),t,e,i,r)}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[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function x(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function b(t,e,i,r,n){for(;ie[0]?r[0]=t[0]:r[0]=e[0],t[1]>e[1]?r[1]=t[1]:r[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function D(t){return t[2]=u&&s<=p),n||!(a&r.Z.RIGHT)||o&r.Z.RIGHT||(n=(l=v-(y-p)*m)>=h&&l<=d),n||!(a&r.Z.BELOW)||o&r.Z.BELOW||(n=(s=y-(v-h)/m)>=u&&s<=p),n||!(a&r.Z.LEFT)||o&r.Z.LEFT||(n=(l=v-(y-u)*m)>=h&&l<=d)}return n}function G(t,e,i,r){var n=[];if(r>1)for(var o=t[2]-t[0],a=t[3]-t[1],s=0;s=i[2])){var n=Z(i),o=Math.floor((r[0]-i[0])/n)*n;t[0]-=o,t[2]-=o}return t}function W(t,e){if(e.canWrapX()){var i=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[i[0],t[1],i[2],t[3]]];j(t,e);var r=Z(i);if(Z(t)>r)return[[i[0],t[1],i[2],t[3]]];if(t[0]i[2])return[[t[0],t[1],i[2],t[3]],[i[0],t[1],t[2]-r,t[3]]]}return[t]}},2110:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});const r={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},3618:(t,e,i)=>{"use strict";i.d(e,{Be:()=>o,ov:()=>n});var r=i(1998);function n(t,e,i,r,n,o,a){var s=new XMLHttpRequest;s.open("GET","function"==typeof t?t(i,r,n):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 r,l=e.getType();"json"==l||"text"==l?r=s.responseText:"xml"==l?(r=s.responseXML)||(r=(new DOMParser).parseFromString(s.responseText,"application/xml")):"arraybuffer"==l&&(r=s.response),r?o(e.readFeatures(r,{extent:i,featureProjection:n}),e.readProjection(r)):a()}else a()},s.onerror=a,s.send()}function o(t,e){return function(i,o,a,s,l){var u=this;n(t,e,i,o,a,(function(t,e){u.addFeatures(t),void 0!==s&&s(t)}),l||r.Zn)}}},5817:(t,e,i)=>{"use strict";i.d(e,{ZP:()=>a,fI:()=>s});var r=i(4415),n=i(9786),o=function(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null};o.prototype.getReadOptions=function(t,e){if(e){var i=e.dataProjection?(0,n.U2)(e.dataProjection):this.readProjection(t);e.extent&&i&&"tile-pixels"===i.getUnits()&&(i=(0,n.U2)(i)).setWorldExtent(e.extent),e={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(e)},o.prototype.adaptOptions=function(t){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},o.prototype.getType=function(){return(0,r.O3)()},o.prototype.readFeature=function(t,e){return(0,r.O3)()},o.prototype.readFeatures=function(t,e){return(0,r.O3)()},o.prototype.readGeometry=function(t,e){return(0,r.O3)()},o.prototype.readProjection=function(t){return(0,r.O3)()},o.prototype.writeFeature=function(t,e){return(0,r.O3)()},o.prototype.writeFeatures=function(t,e){return(0,r.O3)()},o.prototype.writeGeometry=function(t,e){return(0,r.O3)()};const a=o;function s(t,e,i){var r,o=i?(0,n.U2)(i.featureProjection):null,a=i?(0,n.U2)(i.dataProjection):null;if(r=o&&a&&!(0,n.OP)(o,a)?(e?t.clone():t).transform(e?o:a,e?a:o):t,e&&i&&void 0!==i.decimals){var s=Math.pow(10,i.decimals);r===t&&(r=t.clone()),r.applyTransform((function(t){for(var e=0,i=t.length;e{"use strict";i.d(e,{Z:()=>I});var r=i(12),n=i(7758),o=i(9751),a=i(5310),s=function(t){function e(e){if(t.call(this),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),e)if("function"==typeof e.getSimplifiedGeometry){var i=e;this.setGeometry(i)}else{var r=e;this.setProperties(r)}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());var i=this.getGeometry();i&&t.setGeometry(i.clone());var r=this.getStyle();return r&&t.setStyle(r),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,a.bN)(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=(0,a.oL)(t,n.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,o.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}(r.Z);const l=s;var u=i(3176),h=i(2005),p=function(t){function e(e){t.call(this),this.geometries_=e||null,this.changeEventsKeys_=[],this.listenGeometriesChange_()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(a.bN),this.changeEventsKeys_.length=0},e.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,e=this.geometries_.length;t{"use strict";i.d(e,{Dv:()=>o,Zn:()=>a,qe:()=>s,uX:()=>n});var r=i(7782);function n(){return!0}function o(){return!1}function a(){}function s(t){var e,i,n,o=!1;return function(){var a=Array.prototype.slice.call(arguments);return o&&this===n&&(0,r.fS)(a,i)||(o=!0,n=this,i=a,e=t.apply(this,arguments)),e}}},3176:(t,e,i)=>{"use strict";i.d(e,{Z:()=>p});var r=i(12),n=i(4415),o=i(4765),a=i(2005),s=i(9786),l=i(1998),u=i(7810),h=(0,o.Ue)();const p=function(t){function e(){t.call(this),this.extent_=(0,a.lJ)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,l.qe)((function(t,e,i){if(!i)return this.getSimplifiedGeometry(e);var r=this.clone();return r.applyTransform(i),r.getSimplifiedGeometry(e)}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.simplifyTransformed=function(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)},e.prototype.clone=function(){return(0,n.O3)()},e.prototype.closestPointXY=function(t,e,i,r){return(0,n.O3)()},e.prototype.containsXY=function(t,e){var i=this.getClosestPoint([t,e]);return i[0]===t&&i[1]===e},e.prototype.getClosestPoint=function(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return(0,n.O3)()},e.prototype.getExtent=function(t){if(this.extentRevision_!=this.getRevision()){var e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&(0,a.YN)(e),this.extentRevision_=this.getRevision()}return(0,a.EO)(this.extent_,t)},e.prototype.rotate=function(t,e){(0,n.O3)()},e.prototype.scale=function(t,e,i){(0,n.O3)()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return(0,n.O3)()},e.prototype.getType=function(){return(0,n.O3)()},e.prototype.applyTransform=function(t){(0,n.O3)()},e.prototype.intersectsExtent=function(t){return(0,n.O3)()},e.prototype.translate=function(t,e){(0,n.O3)()},e.prototype.transform=function(t,e){var i=(0,s.U2)(t),r="tile-pixels"==i.getUnits()?function(t,r,n){var l=i.getExtent(),p=i.getWorldExtent(),c=(0,a.Cr)(p)/(0,a.Cr)(l);return(0,o.qC)(h,p[0],p[3],c,-c,0,0,0),(0,u.vT)(t,0,t.length,n,h,r),(0,s.Ck)(i,e)(t,r,n)}:(0,s.Ck)(i,e);return this.applyTransform(r),this},e}(r.Z)},8132:(t,e,i)=>{"use strict";i.d(e,{Z:()=>f});var r=i(3062),n=i(6273),o=i(2005),a=i(3234),s=i(8033),l=i(7782),u=i(8190),h=i(9157),p=i(3174),c=i(8797),d=i(6097);const f=function(t){function e(e,i){t.call(this),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===i||Array.isArray(e[0])?this.setCoordinates(e,i):this.setFlatCoordinates(i,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.appendCoordinate=function(t){this.flatCoordinates?(0,l.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,i,r){return r<(0,o.qf)(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,n.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,n.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,i,r))},e.prototype.forEachSegment=function(t){return(0,u.E)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinateAtM=function(t,e){return"XYM"!=this.layout&&"XYZM"!=this.layout?null:(e=void 0!==e&&e,(0,p.iJ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e))},e.prototype.getCoordinates=function(){return(0,h.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinateAt=function(t,e){return(0,p.WW)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)},e.prototype.getLength=function(){return(0,d.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 i=[];return i.length=(0,s.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,i,0),new e(i,"XY")},e.prototype.getType=function(){return"LineString"},e.prototype.intersectsExtent=function(t){return(0,c.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,a.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(r.ZP)},7659:(t,e,i)=>{"use strict";i.d(e,{Z:()=>d});var r=i(8132),n=i(3062),o=i(6273),a=i(2005),s=i(3234),l=i(8033),u=i(7782),h=i(9157),p=i(3174),c=i(8797);const d=function(t){function e(e,i,r){if(t.call(this),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(e[0]))this.setCoordinates(e,i);else if(void 0!==i&&r)this.setFlatCoordinates(i,e),this.ends_=r;else{for(var n=this.getLayout(),o=e,a=[],s=[],l=0,h=o.length;l{"use strict";i.d(e,{Z:()=>h});var r=i(1879),n=i(3062),o=i(2005),a=i(3234),s=i(7782),l=i(9157),u=i(7344);const h=function(t){function e(e,i){t.call(this),i&&!Array.isArray(e[0])?this.setFlatCoordinates(i,e):this.setCoordinates(e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.appendPoint=function(t){this.flatCoordinates?(0,s.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,i,r){if(r<(0,o.qf)(this.getExtent(),t,e))return r;for(var n=this.flatCoordinates,a=this.stride,s=0,l=n.length;s{"use strict";i.d(e,{Z:()=>m});var r=i(9468),n=i(5828),o=i(3062),a=i(6273),s=i(2005),l=i(3234),u=i(7782),h=i(6096),p=i(9157),c=i(8797),d=i(7704),f=i(9260),g=i(215),y=i(1472),v=i(8033);const m=function(t){function e(e,i,r){if(t.call(this),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!r&&!Array.isArray(e[0])){for(var n=this.getLayout(),o=e,a=[],s=[],l=0,h=o.length;l{"use strict";i.d(e,{Z:()=>s});var r=i(3062),n=i(2005),o=i(3234),a=i(7344);const s=function(t){function e(e,i){t.call(this),this.setCoordinates(e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,i,r){var n=this.flatCoordinates,o=(0,a.bI)(t,e,n[0],n[1]);if(o{"use strict";i.d(e,{ZP:()=>_,oJ:()=>x});var r=i(3062),n=i(6273),o=i(2005),a=i(3234),s=i(8033),l=i(9157),u=i(9260),h=function(t){function e(e,i){t.call(this),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===i||Array.isArray(e[0])?this.setCoordinates(e,i):this.setFlatCoordinates(i,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,i,r){return r<(0,o.qf)(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,n.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,n.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,i,r))},e.prototype.getArea=function(){return(0,u.QQ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return(0,l.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var i=[];return i.length=(0,s.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,i,0),new e(i,"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,a.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(r.ZP);const p=h;var c=i(1879),d=i(7782),f=i(6096),g=i(8797),y=i(7704),v=i(1472),m=function(t){function e(e,i,r){t.call(this),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==i&&r?(this.setFlatCoordinates(i,e),this.ends_=r):this.setCoordinates(e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.appendLinearRing=function(t){this.flatCoordinates?(0,d.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,i,r){return r<(0,o.qf)(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,n.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,n.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,i,r))},e.prototype.containsXY=function(t,e){return(0,v.wY)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return(0,u.KP)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,y.zX)(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,(0,l.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,o.qg)(this.getExtent());this.flatInteriorPoint_=(0,f.X)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new c.Z(this.getFlatInteriorPoint(),"XYM")},e.prototype.getLinearRingCount=function(){return this.ends_.length},e.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new p(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,i=this.ends_,r=[],n=0,o=0,a=i.length;o{"use strict";i.d(e,{Kr:()=>l,ZP:()=>u});var r=i(3176),n=i(4415),o=i(2005),a=i(7810);function s(t){var e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function l(t,e,i){var r=t.getFlatCoordinates();if(r){var n=t.getStride();return(0,a.vT)(r,0,r.length,n,e,i)}return null}const u=function(t){function e(){t.call(this),this.layout="XY",this.stride=2,this.flatCoordinates=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.computeExtent=function(t){return(0,o.GN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return(0,n.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{"use strict";function r(t,e,i,r){for(var n=0,o=t[i-r],a=t[i-r+1];eo,KP:()=>n,QQ:()=>r})},215:(t,e,i)=>{"use strict";i.d(e,{E:()=>n});var r=i(2005);function n(t,e,i,n){for(var o=[],a=(0,r.lJ)(),s=0,l=i.length;s{"use strict";i.d(e,{Af:()=>a,Bv:()=>o,H$:()=>l,Xl:()=>u,gI:()=>h,sD:()=>s});var r=i(7344);function n(t,e,i,n,o,a,s){var l,u=t[e],h=t[e+1],p=t[i]-u,c=t[i+1]-h;if(0===p&&0===c)l=e;else{var d=((o-u)*p+(a-h)*c)/(p*p+c*c);if(d>1)l=i;else{if(d>0){for(var f=0;fo&&(o=h),a=l,s=u}return o}function a(t,e,i,r,n){for(var a=0,s=i.length;a{"use strict";i.d(e,{TG:()=>o,Zl:()=>s,uG:()=>n,wY:()=>a});var r=i(2005);function n(t,e,i,n,a){return!(0,r.H6)(a,(function(r){return!o(t,e,i,n,r[0],r[1])}))}function o(t,e,i,r,n,o){for(var a=0,s=t[i-r],l=t[i-r+1];eo&&(u-s)*(o-l)-(n-s)*(h-l)>0&&a++:h<=o&&(u-s)*(o-l)-(n-s)*(h-l)<0&&a--,s=u,l=h}return 0!==a}function a(t,e,i,r,n,a){if(0===i.length)return!1;if(!o(t,e,i[0],r,n,a))return!1;for(var s=1,l=i.length;s{"use strict";function r(t,e,i,r){for(var n=0,o=i.length;nr,QT:()=>a,Sg:()=>n,_5:()=>o})},9157:(t,e,i)=>{"use strict";function r(t,e,i,r,n){n=void 0!==n?n:[];for(var o=0,a=e;ar,o1:()=>n,ug:()=>o})},6096:(t,e,i)=>{"use strict";i.d(e,{U:()=>a,X:()=>o});var r=i(1472),n=i(7782);function o(t,e,i,o,a,s,l){for(var u,h,p,c,d,f,g,y=a[s+1],v=[],m=0,_=i.length;m<_;++m){var x=i[m];for(c=t[x-o],f=t[x-o+1],u=e;uC&&(p=(c+d)/2,(0,r.wY)(t,e,i,o,p,y)&&(b=p,C=w)),c=d}return isNaN(b)&&(b=a[s]),l?(l.push(b,y,C),l):[b,y,C]}function a(t,e,i,r,n){for(var a=[],s=0,l=i.length;s{"use strict";i.d(e,{WW:()=>o,dG:()=>s,iJ:()=>a});var r=i(7782),n=i(7344);function o(t,e,i,o,a,s,l){var u,h,p=(i-e)/o;if(1===p)u=e;else if(2===p)u=e,h=a;else if(0!==p){for(var c=t[e],d=t[e+1],f=0,g=[0],y=e+o;y1?l:2,s=s||new Array(l);for(var b=0;b>1;o{"use strict";i.d(e,{AW:()=>s,Kz:()=>a,ac:()=>u,mV:()=>l,oW:()=>h});var r=i(2005),n=i(8190),o=i(1472);function a(t,e,i,o,a){var s=(0,r.qP)((0,r.lJ)(),t,e,i,o);return!!(0,r.kK)(a,s)&&(!!(0,r.r4)(a,s)||s[0]>=a[0]&&s[2]<=a[2]||s[1]>=a[1]&&s[3]<=a[3]||(0,n.E)(t,e,i,o,(function(t,e){return(0,r.I7)(a,t,e)})))}function s(t,e,i,r,n){for(var o=0,s=i.length;o{"use strict";function r(t,e,i,r){for(var n=t[e],o=t[e+1],a=0,s=e+r;sr})},7704:(t,e,i)=>{"use strict";function r(t,e,i,r){for(;e0}function o(t,e,i,r,o){o=void 0!==o&&o;for(var a=0,s=i.length;au,$v:()=>o,Oj:()=>a,zX:()=>s,dL:()=>l})},8190:(t,e,i)=>{"use strict";function r(t,e,i,r,n){var o;for(e+=r;er})},8033:(t,e,i)=>{"use strict";i.d(e,{Pp:()=>u,UJ:()=>o,Zh:()=>l,dt:()=>n,uZ:()=>a});var r=i(7344);function n(t,e,i,n,o,a,s){var l=(i-e)/n;if(l<3){for(;e0;){for(var c=h.pop(),d=h.pop(),f=0,g=t[d],y=t[d+1],v=t[c],m=t[c+1],_=d+n;_f&&(p=_,f=C)}f>o&&(u[(p-e)/n]=1,d+n0&&y>f)&&(g<0&&v0&&v>g)?(l=c,u=d):(o[s++]=l,o[s++]=u,h=l,p=u,l=c,u=d)}}return o[s++]=l,o[s++]=u,s}function l(t,e,i,r,n,o,a,l){for(var u=0,h=i.length;u{"use strict";function r(t,e,i,r,n,o){o=o||[];for(var a=0,s=e;sa,U1:()=>n,bA:()=>o,vT:()=>r})},6299:(t,e,i)=>{"use strict";i.d(e,{G$:()=>o,Id:()=>l,MP:()=>s,Tp:()=>u,V:()=>n,bM:()=>h,tK:()=>a});var r="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",n=r.includes("firefox"),o=(r.includes("safari")&&!r.includes("chrom")&&(r.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(r)),r.includes("webkit")&&!r.includes("edge")),a=r.includes("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,i)=>{"use strict";i.d(e,{Z:()=>l});var r=i(12),n=i(6120),o=i(4415),a=i(9751),s=i(7344);const l=function(t){function e(e){t.call(this),this.on,this.once,this.un,this.background_=e.background;var i=Object.assign({},e);"object"==typeof e.properties&&(delete i.properties,Object.assign(i,e.properties)),i[n.Z.OPACITY]=void 0!==e.opacity?e.opacity:1,(0,a.h)("number"==typeof i[n.Z.OPACITY],64),i[n.Z.VISIBLE]=void 0===e.visible||e.visible,i[n.Z.Z_INDEX]=e.zIndex,i[n.Z.MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,i[n.Z.MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,i[n.Z.MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,i[n.Z.MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,this.className_=void 0!==i.className?i.className:"ol-layer",delete i.className,this.setProperties(i),this.state_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,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},i=this.getZIndex();return e.opacity=(0,s.uZ)(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==i||e.managed?i: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,o.O3)()},e.prototype.getLayerStatesArray=function(t){return(0,o.O3)()},e.prototype.getExtent=function(){return this.get(n.Z.EXTENT)},e.prototype.getMaxResolution=function(){return this.get(n.Z.MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(n.Z.MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(n.Z.MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(n.Z.MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(n.Z.OPACITY)},e.prototype.getSourceState=function(){return(0,o.O3)()},e.prototype.getVisible=function(){return this.get(n.Z.VISIBLE)},e.prototype.getZIndex=function(){return this.get(n.Z.Z_INDEX)},e.prototype.setBackground=function(t){this.background_=t,this.changed()},e.prototype.setExtent=function(t){this.set(n.Z.EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(n.Z.MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(n.Z.MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(n.Z.MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(n.Z.MIN_ZOOM,t)},e.prototype.setOpacity=function(t){(0,a.h)("number"==typeof t,64),this.set(n.Z.OPACITY,t)},e.prototype.setVisible=function(t){this.set(n.Z.VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(n.Z.Z_INDEX,t)},e.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),t.prototype.disposeInternal.call(this)},e}(r.Z)},5152:(t,e,i)=>{"use strict";i.d(e,{Z:()=>_});var r=i(7385),n=i(53),o=i(6298),a=i(4103),s=i(4573),l=i(1214),u=i(853),h=i(2788),p=i(2238);function c(t){return new o.ZP({fill:d(t,""),stroke:f(t,""),text:g(t),image:y(t)})}function d(t,e){var i=t[e+"fill-color"];if(i)return new s.Z({color:i})}function f(t,e){var i=t[e+"stroke-width"],r=t[e+"stroke-color"];if(i||r)return new h.Z({width:i,color:r,lineCap:t[e+"stroke-line-cap"],lineJoin:t[e+"stroke-line-join"],lineDash:t[e+"stroke-line-dash"],lineDashOffset:t[e+"stroke-line-dash-offset"],miterLimit:t[e+"stroke-miter-limit"]})}function g(t){var e=t["text-value"];if(e)return new p.Z({text:e,font:t["text-font"],maxAngle:t["text-max-angle"],offsetX:t["text-offset-x"],offsetY:t["text-offset-y"],overflow:t["text-overflow"],placement:t["text-placement"],scale:t["text-scale"],rotateWithView:t["text-rotate-with-view"],rotation:t["text-rotation"],textAlign:t["text-align"],justify:t["text-justify"],textBaseline:t["text-baseline"],padding:t["text-padding"],fill:d(t,"text-"),backgroundFill:d(t,"text-background-"),stroke:f(t,"text-"),backgroundStroke:f(t,"text-background-")})}function y(t){var e=t["icon-src"],i=t["icon-img"];if(e||i)return new l.Z({src:e,img:i,imgSize:t["icon-img-size"],anchor:t["icon-anchor"],anchorOrigin:t["icon-anchor-origin"],anchorXUnits:t["icon-anchor-x-units"],anchorYUnits:t["icon-anchor-y-units"],color:t["icon-color"],crossOrigin:t["icon-cross-origin"],offset:t["icon-offset"],displacement:t["icon-displacement"],opacity:t["icon-opacity"],scale:t["icon-scale"],rotation:t["icon-rotation"],rotateWithView:t["icon-rotate-with-view"],size:t["icon-size"],declutterMode:t["icon-declutter-mode"]});var r=t["shape-points"];if(r){var n="shape-";return new u.Z({points:r,fill:d(t,n),stroke:f(t,n),radius:t["shape-radius"],radius1:t["shape-radius1"],radius2:t["shape-radius2"],angle:t["shape-angle"],displacement:t["shape-displacement"],rotation:t["shape-rotation"],rotateWithView:t["shape-rotate-with-view"],scale:t["shape-scale"],declutterMode:t["shape-declutter-mode"]})}var o=t["circle-radius"];if(o){var s="circle-";return new a.Z({radius:o,fill:d(t,s),stroke:f(t,s),displacement:t["circle-displacement"],scale:t["circle-scale"],rotation:t["circle-rotation"],rotateWithView:t["circle-rotate-with-view"],declutterMode:t["circle-declutter-mode"]})}}var v="renderOrder",m=function(t){function e(e){e=e||{};var i=Object.assign({},e);delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,t.call(this,i),this.declutter_=void 0!==e.declutter&&e.declutter,this.renderBuffer_=void 0!==e.renderBuffer?e.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(e.style),this.updateWhileAnimating_=void 0!==e.updateWhileAnimating&&e.updateWhileAnimating,this.updateWhileInteracting_=void 0!==e.updateWhileInteracting&&e.updateWhileInteracting}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,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(v)},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 n(9)),this.getRenderer().renderDeclutter(t)},e.prototype.setRenderOrder=function(t){this.set(v,t)},e.prototype.setStyle=function(t){var e;if(void 0===t)e=o.yF;else if(null===t)e=null;else if("function"==typeof t)e=t;else if(t instanceof o.ZP)e=t;else if(Array.isArray(t)){for(var i=t.length,r=new Array(i),n=0;n{"use strict";i.d(e,{V:()=>f,Z:()=>y});var r=i(8319),n=i(6193),o=i(5917),a=i(7288),s=i(7758),l=i(1846),u=i(9751),h=i(273),p=i(2005),c=i(4415),d=i(5310),f=function(t){function e(e,i){t.call(this,e),this.layer=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(a.ZP),g="layers";const y=function(t){function e(e){e=e||{};var i=Object.assign({},e);delete i.layers;var r=e.layers;t.call(this,i),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(g,this.handleLayersChanged_),r?Array.isArray(r)?r=new n.Z(r.slice(),{unique:!0}):(0,u.h)("function"==typeof r.getArray,43):r=new n.Z(void 0,{unique:!0}),this.setLayers(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(d.bN),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push((0,d.oL)(t,o.Z.ADD,this.handleLayersAdd_,this),(0,d.oL)(t,o.Z.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(d.bN);(0,h.Z)(this.listenerKeys_);for(var i=t.getArray(),r=0,n=i.length;r{"use strict";i.d(e,{Z:()=>h,j:()=>u});var r=i(8319),n=i(7758),o=i(6120),a=i(3557),s=i(9751),l=i(5310);function u(t,e){if(!t.visible)return!1;var i=e.resolution;if(i=t.maxResolution)return!1;var r=e.zoom;return r>t.minZoom&&r<=t.maxZoom}const h=function(t){function e(e){var i=Object.assign({},e);delete i.source,t.call(this,i),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.rendered=!1,e.render&&(this.render=e.render),e.map&&this.setMap(e.map),this.addChangeListener(o.Z.SOURCE,this.handleSourcePropertyChange_);var r=e.source?e.source:null;this.setSource(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getLayersArray=function(t){return(t=t||[]).push(this),t},e.prototype.getLayerStatesArray=function(t){return(t=t||[]).push(this.getLayerState()),t},e.prototype.getSource=function(){return this.get(o.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,l.bN)(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=(0,l.oL)(t,n.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 i=this.getRenderer();if(i.prepareFrame(t))return this.rendered=!0,i.renderFrame(t,e)},e.prototype.unrender=function(){this.rendered=!1},e.prototype.setMapInternal=function(t){t||this.unrender(),this.set(o.Z.MAP,t)},e.prototype.getMapInternal=function(){return this.get(o.Z.MAP)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&((0,l.bN)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,l.bN)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,l.oL)(t,a.Z.PRECOMPOSE,(function(t){var e=t.frameState.layerStatesArray,i=this.getLayerState(!1);(0,s.h)(!e.some((function(t){return t.layer===i.layer})),67),e.push(i)}),this),this.mapRenderKey_=(0,l.oL)(this,n.Z.CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(o.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}(r.Z)},6120:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});const r={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,i)=>{"use strict";i.d(e,{Z:()=>r});const r={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"}},5218:(t,e,i)=>{"use strict";i.d(e,{Z:()=>_});var r=i(5152),n=i(5704),o=i(4244),a=i(5787),s=i(8921),l=i(8010),u=i(4765),h=i(2005),p=i(766),c=i(1248),d=i(7782),f=i(9786),g=i(4415),y=i(5353),v=function(t){function e(e){t.call(this,e),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.animatingOrInteracting_,this.hitDetectionImageData_=null,this.renderedFeatures_=null,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=(0,h.lJ)(),this.wrappedRenderedExtent_=(0,h.lJ)(),this.renderedRotation_,this.renderedCenter_=null,this.renderedProjection_=null,this.renderedRenderOrder_=null,this.replayGroup_=null,this.replayGroupChanged=!0,this.declutterExecutorGroup=null,this.clipping=!0,this.compositionContext_=null,this.opacity_=1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderWorlds=function(t,e,i){var r=e.extent,n=e.viewState,o=n.center,a=n.resolution,l=n.projection,u=n.rotation,p=l.getExtent(),c=this.getLayer().getSource(),d=e.pixelRatio,f=e.viewHints,g=!(f[s.Z.ANIMATING]||f[s.Z.INTERACTING]),y=this.compositionContext_,v=Math.round(e.size[0]*d),m=Math.round(e.size[1]*d),_=c.getWrapX()&&l.canWrapX(),x=_?(0,h.dz)(p):null,b=_?Math.ceil((r[2]-p[2])/x)+1:1,C=_?Math.floor((r[0]-p[0])/x):0;do{var w=this.getRenderTransform(o,a,u,d,v,m,C*x);t.execute(y,1,w,u,g,void 0,i)}while(++Cy[2];)v=_*++x,c.push(this.getRenderTransform(r,n,o,l.UN,d,f,v).slice()),m-=_}this.hitDetectionImageData_=(0,l.TU)(i,c,this.renderedFeatures_,p.getStyleFunction(),s,n,o)}e((0,l.ix)(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,r,n){var o=this;if(this.replayGroup_){var a,s=e.viewState.resolution,l=e.viewState.rotation,u=this.getLayer(),h={},p=function(t,e,i){var o=(0,g.sq)(t),a=h[o];if(a){if(!0!==a&&iR[0]&&M[2]>R[2]&&T.push([M[0]-I,M[1],M[2]-I,M[3]])}if(this.ready&&this.renderedResolution_==m&&this.renderedRevision_==x&&this.renderedRenderOrder_==C&&(0,h.r4)(this.wrappedRenderedExtent_,S))return(0,d.fS)(this.renderedExtent_,E)||(this.hitDetectionImageData_=null,this.renderedExtent_=E),this.renderedCenter_=w,this.replayGroupChanged=!1,!0;this.replayGroup_=null;var O,k=new n.Z((0,c.Qz)(m,_),S,m,_);this.getLayer().getDeclutter()&&(O=new n.Z((0,c.Qz)(m,_),S,m,_));var F,L=(0,f.Cs)();if(L){for(var Z=0,A=T.length;Z{"use strict";i.d(e,{Z:()=>C});var r=i(5152),n=i(5704),o=i(5787),a=i(8237),s=i(5816),l=i(8921),u=i(8010),h=i(4765),p=i(2005),c=i(1248),d=i(4415),f=i(7814),g=i(5353),y={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},v={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},m=function(t){function e(e){t.call(this,e),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.renderedLayerRevision_,this.renderedPixelToCoordinateTransform_=null,this.renderedRotation_,this.tmpTransform_=(0,h.Ue)()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.prepareTile=function(t,e,i){var r,n=t.getState();return n!==s.Z.LOADED&&n!==s.Z.ERROR||(this.updateExecutorGroup_(t,e,i),this.tileImageNeedsRender_(t)&&(r=!0)),r},e.prototype.getTile=function(e,i,r,n){var o=n.pixelRatio,a=n.viewState,s=a.resolution,u=a.projection,h=this.getLayer(),p=h.getSource().getTile(e,i,r,o,u),c=n.viewHints,d=!(c[l.Z.ANIMATING]||c[l.Z.INTERACTING]);return!d&&p.wantedResolution||(p.wantedResolution=s),this.prepareTile(p,o,u)&&(d||Date.now()-n.time<8)&&"vector"!==h.getRenderMode()&&this.renderTileImage_(p,n),t.prototype.getTile.call(this,e,i,r,n)},e.prototype.isDrawableTile=function(e){var i=this.getLayer();return t.prototype.isDrawableTile.call(this,e)&&("vector"===i.getRenderMode()?(0,d.sq)(i)in e.executorGroups:e.hasContext(i))},e.prototype.getTileImage=function(t){return t.getImage(this.getLayer())},e.prototype.prepareFrame=function(e){var i=this.getLayer().getRevision();return this.renderedLayerRevision_!==i&&(this.renderedLayerRevision_=i,this.renderedTiles.length=0),t.prototype.prepareFrame.call(this,e)},e.prototype.updateExecutorGroup_=function(t,e,i){var r=this,a=this.getLayer(),l=a.getRevision(),u=a.getRenderOrder()||null,h=t.wantedResolution,f=t.getReplayState(a);if(f.dirty||f.renderedResolution!==h||f.renderedRevision!=l||f.renderedRenderOrder!=u){var g=a.getSource(),y=a.getDeclutter(),v=g.getTileGrid(),m=g.getTileGridForProjection(i).getTileCoordExtent(t.wrappedTileCoord),_=g.getSourceTiles(e,i,t),x=(0,d.sq)(a);delete t.hitDetectionImageData[x],t.executorGroups[x]=[],y&&(t.declutterExecutorGroups[x]=[]),f.dirty=!1;for(var b=function(i,l){var d=_[i];if(d.getState()==s.Z.LOADED){var b=d.tileCoord,C=v.getTileCoordExtent(b),w=(0,p.Ed)(m,C),S=(0,p.f3)(w,a.getRenderBuffer()*h,r.tmpExtent),E=(0,p.fS)(C,w)?null:S,T=new n.Z(0,S,h,e),R=y?new n.Z(0,w,h,e):void 0,I=(0,c.se)(h,e),P=function(t){var e,i=t.getStyleFunction()||a.getStyleFunction();if(i&&(e=i(t,h)),e){var r=this.renderFeature(t,I,e,T,R);f.dirty=f.dirty||r}},M=d.getFeatures();u&&u!==f.renderedRenderOrder&&M.sort(u);for(var O=0,k=M.length;O0)e([]);else{var w=v.getTileCoordExtent(r.wrappedTileCoord),S=(0,p.rL)(w),E=[(m[0]-S[0])/y,(S[1]-m[1])/y],T=r.getSourceTiles().reduce((function(t,e){return t.concat(e.getFeatures())}),[]),R=r.hitDetectionImageData[o];if(!R&&!this.animatingOrInteracting_){var I=(0,f.Pq)(v.getTileSize(v.getZForResolution(y,a.zDirection))),P=this.renderedRotation_,M=[this.getRenderTransform(v.getTileCoordCenter(r.wrappedTileCoord),y,0,u.UN,I[0]*u.UN,I[1]*u.UN,0)];R=(0,u.TU)(I,M,T,n.getStyleFunction(),v.getTileCoordExtent(r.wrappedTileCoord),r.getReplayState(n).renderedResolution,P),r.hitDetectionImageData[o]=R}e((0,u.ix)(E,T,R))}}.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,i=e.globalAlpha;e.globalAlpha=this.getLayer().getOpacity();for(var r=t.viewHints,n=!(r[l.Z.ANIMATING]||r[l.Z.INTERACTING]),o=this.renderedTiles,a=0,s=o.length;a=0;--p)h[p].execute(this.context,1,this.getTileRenderTransform(u,t),t.viewState.rotation,n,void 0,t.declutterTree)}e.globalAlpha=i},e.prototype.getTileRenderTransform=function(t,e){var i=e.pixelRatio,r=e.viewState,n=r.center,o=r.resolution,a=r.rotation,s=e.size,l=Math.round(s[0]*i),u=Math.round(s[1]*i),p=this.getLayer().getSource().getTileGridForProjection(e.viewState.projection),c=t.tileCoord,d=p.getTileCoordExtent(t.wrappedTileCoord),f=p.getTileCoordExtent(c,this.tmpExtent)[0]-d[0];return(0,h.Jp)((0,h.bA)(this.inversePixelTransform.slice(),1/i,1/i),this.getRenderTransform(n,o,a,i,l,u,f))},e.prototype.postRender=function(e,i){var r=i.viewHints,n=!(r[l.Z.ANIMATING]||r[l.Z.INTERACTING]);this.renderedPixelToCoordinateTransform_=i.pixelToCoordinateTransform.slice(),this.renderedRotation_=i.viewState.rotation;var o=this.getLayer(),a=o.getRenderMode(),s=e.globalAlpha;e.globalAlpha=o.getOpacity();for(var u=v[a],h=i.viewState,c=h.rotation,f=o.getSource(),g=f.getTileGridForProjection(h.projection).getZForResolution(h.resolution,f.zDirection),y=this.renderedTiles,m=[],_=[],x=!0,b=y.length-1;b>=0;--b){var C=y[b];x=x&&!C.getReplayState(o).dirty;var w=C.executorGroups[(0,d.sq)(o)].filter((function(t){return t.hasExecutors(u)}));if(0!==w.length){var S=this.getTileRenderTransform(C,i),E=C.tileCoord[0],T=!1,R=w[0].getClipCoords(S);if(R){for(var I=0,P=m.length;I{"use strict";function r(t,e,i){return Math.min(Math.max(t,e),i)}function n(t,e,i,r,n,a){var s=n-i,l=a-r;if(0!==s||0!==l){var u=((t-i)*s+(e-r)*l)/(s*s+l*l);u>1?(i=n,r=a):u>0&&(i+=s*u,r+=l*u)}return o(t,e,i,r)}function o(t,e,i,r){var n=i-t,o=r-e;return n*n+o*o}function a(t){for(var e=t.length,i=0;in&&(n=a,r=o)}if(0===n)return null;var s=t[r];t[r]=t[i],t[i]=s;for(var l=i+1;l=0;c--){p[c]=t[c][e]/t[c][c];for(var d=c-1;d>=0;d--)t[d][e]-=t[d][c]*p[c]}return p}function s(t){return t*Math.PI/180}function l(t,e){var i=t%e;return i*e<0?i+e:i}function u(t,e,i){return t+i*(e-t)}function h(t,e){var i=Math.pow(10,e);return Math.round(t*i)/i}function p(t,e){return Math.floor(h(t,e))}function c(t,e){return Math.ceil(h(t,e))}i.d(e,{$W:()=>l,GW:()=>p,SV:()=>a,Yr:()=>s,bI:()=>o,mD:()=>c,rU:()=>n,t7:()=>u,uZ:()=>r})},273:(t,e,i)=>{"use strict";function r(t){for(var e in t)delete t[e]}function n(t){var e;for(e in t)return!1;return!e}i.d(e,{Z:()=>r,x:()=>n})},9786:(t,e,i)=>{"use strict";i.d(e,{Wm:()=>g.W,UQ:()=>M,h_:()=>w,OP:()=>k,mi:()=>O,Vs:()=>W,dY:()=>X,U2:()=>R,_Q:()=>I,Ck:()=>L,WO:()=>F,Cs:()=>G,lO:()=>j,Fj:()=>q,on:()=>Y,vs:()=>Z});var r=i(544),n=6378137,o=Math.PI*n,a=[-o,-o,o,o],s=[-180,-85,180,85],l=n*Math.log(Math.tan(Math.PI/2)),u=function(t){function e(e){t.call(this,{code:e,units:"m",extent:a,global:!0,worldExtent:s,getPointResolution:function(t,e){return t/Math.cosh(e[1]/n)}})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(r.Z),h=[new u("EPSG:3857"),new u("EPSG:102100"),new u("EPSG:102113"),new u("EPSG:900913"),new u("http://www.opengis.net/def/crs/EPSG/0/3857"),new u("http://www.opengis.net/gml/srs/epsg.xml#3857")];var p=[-180,-90,180,90],c=6378137*Math.PI/180,d=function(t){function e(e,i){t.call(this,{code:e,units:"degrees",extent:p,axisOrientation:i,global:!0,metersPerUnit:c,worldExtent:p})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(r.Z),f=[new d("CRS:84"),new d("EPSG:4326","neu"),new d("urn:ogc:def:crs:OGC:1.3:CRS84"),new d("urn:ogc:def:crs:OGC:2:84"),new d("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new d("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new d("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],g=i(8430),y={},v={};function m(t,e,i){var r=t.getCode(),n=e.getCode();r in v||(v[r]={}),v[r][n]=i}i(2005);var _=i(5353),x=i(7344);function b(t,e,i){i=i||6371008.8;var r=(0,x.Yr)(t[1]),n=(0,x.Yr)(e[1]),o=(n-r)/2,a=(0,x.Yr)(e[0]-t[0])/2,s=Math.sin(o)*Math.sin(o)+Math.sin(a)*Math.sin(a)*Math.cos(r)*Math.cos(n);return 2*i*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))}var C=!0;function w(t){C=!(void 0===t||t)}function S(t,e,i){if(void 0!==e)for(var r=0,n=t.length;r=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(C=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t}function q(t,e){return t}function X(t,e){return t}function Y(t,e){return t}P(h),P(f),A=h,D=function(t,e,i){var r=t.length;i=i>1?i:2,void 0===e&&(e=i>2?t.slice():new Array(r));for(var a=0;al?s=l:s<-l&&(s=-l),e[a+1]=s}return e},z=function(t,e,i){var r=t.length;i=i>1?i:2,void 0===e&&(e=i>2?t.slice():new Array(r));for(var a=0;a{"use strict";i.d(e,{Z:()=>o});var r=i(8430),n=function(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};n.prototype.canWrapX=function(){return this.canWrapX_},n.prototype.getCode=function(){return this.code_},n.prototype.getExtent=function(){return this.extent_},n.prototype.getUnits=function(){return this.units_},n.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||r.W[this.units_]},n.prototype.getWorldExtent=function(){return this.worldExtent_},n.prototype.getAxisOrientation=function(){return this.axisOrientation_},n.prototype.isGlobal=function(){return this.global_},n.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},n.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},n.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},n.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},n.prototype.setWorldExtent=function(t){this.worldExtent_=t},n.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},n.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_};const o=n},8430:(t,e,i)=>{"use strict";i.d(e,{W:()=>r});var r={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937}},6178:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});const r=function(t){function e(e,i,r,n){t.call(this,e),this.inversePixelTransform=i,this.frameState=r,this.context=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(i(7288).ZP)},3557:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});const r={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},7857:(t,e,i)=>{"use strict";i.d(e,{Z:()=>n});var r=function(){};r.prototype.drawCustom=function(t,e,i,r){},r.prototype.drawGeometry=function(t){},r.prototype.setStyle=function(t){},r.prototype.drawCircle=function(t,e){},r.prototype.drawFeature=function(t,e){},r.prototype.drawGeometryCollection=function(t,e){},r.prototype.drawLineString=function(t,e){},r.prototype.drawMultiLineString=function(t,e){},r.prototype.drawMultiPoint=function(t,e){},r.prototype.drawMultiPolygon=function(t,e){},r.prototype.drawPoint=function(t,e){},r.prototype.drawPolygon=function(t,e){},r.prototype.drawText=function(t,e){},r.prototype.setFillStrokeStyle=function(t,e){},r.prototype.setImageStyle=function(t,e){},r.prototype.setTextStyle=function(t,e){};const n=r},9680:(t,e,i)=>{"use strict";i.d(e,{Df:()=>h,He:()=>f,Kd:()=>P,PH:()=>m,Qx:()=>E,Tx:()=>v,V4:()=>y,X9:()=>d,Zw:()=>M,_f:()=>O,bL:()=>p,mb:()=>c,oB:()=>x,rc:()=>g,ru:()=>_,sG:()=>C,yC:()=>b});var r,n,o=i(12),a=i(6299),s=i(273),l=i(766),u=i(8308),h="10px sans-serif",p="#000",c="round",d=[],f=0,g="round",y=10,v="#000",m="center",_="middle",x=[0,0,0,0],b=1,C=new o.Z,w=null,S={},E=function(){var t,e,i="32px ",n=["monospace","serif"],o=n.length,a="wmytzilWMYTZIL@#/&?$%10";function l(t,r,s){for(var l=!0,u=0;u{"use strict";i.d(e,{Z:()=>p});var r=i(4531),n=i(2110),o=i(7857),a=i(6808),s=i(2005),l=i(9680),u=i(7782),h=i(9157);const p=function(t){function e(e,i,r,n){t.call(this),this.tolerance=e,this.maxExtent=i,this.pixelRatio=n,this.maxLineWidth=0,this.resolution=r,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.tmpCoordinate_=[],this.hitDetectionInstructions=[],this.state={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,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 i=this.getBufferedMaxExtent(),r=this.tmpCoordinate_,n=this.coordinates,o=n.length,a=0,l=t.length;ad&&(this.instructions.push([r.ZP.CUSTOM,d,a,t,i,h.Ml]),this.hitDetectionInstructions.push([r.ZP.CUSTOM,d,a,t,n||i,h.Ml]));break;case"Point":o=t.getFlatCoordinates(),this.coordinates.push(o[0],o[1]),a=this.coordinates.length,this.instructions.push([r.ZP.CUSTOM,d,a,t,i]),this.hitDetectionInstructions.push([r.ZP.CUSTOM,d,a,t,n||i])}this.endGeometry(e)},e.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[r.ZP.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[r.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 i,n,o=e.length,a=-1;for(t=0;tthis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,i=[r.ZP.SET_FILL_STYLE,e];return"string"!=typeof e&&i.push(!0),i},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[r.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 i=t.fillStyle;"string"==typeof i&&t.currentFillStyle==i||(void 0!==i&&this.instructions.push(e.call(this,t)),t.currentFillStyle=i)},e.prototype.updateStrokeStyle=function(t,e){var i=t.strokeStyle,r=t.lineCap,n=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,s=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=r||n!=t.currentLineDash&&!(0,u.fS)(t.currentLineDash,n)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=s||t.currentMiterLimit!=l)&&(void 0!==i&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=r,t.currentLineDash=n,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=[r.ZP.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,s.d9)(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;(0,s.f3)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(o.Z)},5704:(t,e,i)=>{"use strict";i.d(e,{Z:()=>d});var r=i(6112),n=i(4531);const o=function(t){function e(e,i,r,n){t.call(this,e,i,r,n),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var i=t.getFlatCoordinates(),r=t.getStride(),o=this.coordinates.length,a=this.appendFlatPointCoordinates(i,r);this.instructions.push([n.ZP.DRAW_IMAGE,o,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([n.ZP.DRAW_IMAGE,o,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 i=t.getFlatCoordinates(),r=t.getStride(),o=this.coordinates.length,a=this.appendFlatPointCoordinates(i,r);this.instructions.push([n.ZP.DRAW_IMAGE,o,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([n.ZP.DRAW_IMAGE,o,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 i=t.getAnchor(),r=t.getSize(),n=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=r[1],this.opacity_=t.getOpacity(),this.originX_=n[0],this.originY_=n[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=r[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e},e}(r.Z);var a=i(9680);const s=function(t){function e(e,i,r,n){t.call(this,e,i,r,n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawFlatCoordinates_=function(t,e,i,r){var o=this.coordinates.length,a=this.appendFlatLineCoordinates(t,e,i,r,!1,!1),s=[n.ZP.MOVE_TO_LINE_TO,o,a];return this.instructions.push(s),this.hitDetectionInstructions.push(s),i},e.prototype.drawLineString=function(t,e){var i=this.state,r=i.strokeStyle,o=i.lineWidth;if(void 0!==r&&void 0!==o){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([n.ZP.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,a.X9,a.He],n.$O);var s=t.getFlatCoordinates(),l=t.getStride();this.drawFlatCoordinates_(s,0,s.length,l),this.hitDetectionInstructions.push(n.Yc),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var i=this.state,r=i.strokeStyle,o=i.lineWidth;if(void 0!==r&&void 0!==o){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([n.ZP.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],n.$O);for(var a=t.getEnds(),s=t.getFlatCoordinates(),l=t.getStride(),u=0,h=0,p=a.length;h{"use strict";i.d(e,{Z:()=>P});var r=i(4531),n=i(6301),o=i(4765),a=i(2005),s=i(9680),l=i(7344),u=i(7810);function h(t,e,i,r,n,o,a,s,h,p,c,d){var f=t[e],g=t[e+1],y=0,v=0,m=0,_=0;function x(){y=f,v=g,f=t[e+=r],g=t[e+1],_+=m,m=Math.sqrt((f-y)*(f-y)+(g-v)*(g-v))}do{x()}while(eM[2]}else R=C>I;var O,k=Math.PI,F=[],L=S+r===e;if(m=0,_=E,f=t[e=S],g=t[e+1],L){x(),O=Math.atan2(g-v,f-y),R&&(O+=O>0?-k:k);var Z=(I+C)/2,A=(P+w)/2;return F[0]=[Z,A,(T-o)/2,O,n],F}for(var D=0,z=(n=n.replace(/\n/g," ")).length;D0?-k:k),void 0!==O){var G=N-O;if(G+=G>k?-2*k:G<-k?2*k:0,Math.abs(G)>a)return null}O=N;for(var j=D,W=0;D0&&t.push("\n",""),t.push(e,""),t}var C=function(t,e,i,r){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,o.Ue)(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={}};C.prototype.createLabel=function(t,e,i,r){var o=t+e+i+r;if(this.labels_[o])return this.labels_[o];var a=r?this.strokeStates[r]:null,l=i?this.fillStates[i]:null,u=this.textStates[e],h=this.pixelRatio,p=[u.scale[0]*h,u.scale[1]*h],c=Array.isArray(t),d=u.justify?n.I[u.justify]:x(Array.isArray(t)?t[0]:t,u.textAlign||s.PH),f=r&&a.lineWidth?a.lineWidth:0,g=c?t:t.split("\n").reduce(b,[]),y=(0,s.Zw)(u,g),v=y.width,m=y.height,_=y.widths,C=y.heights,w=y.lineWidths,S=v+f,E=[],T=(S+2)*p[0],R=(m+f)*p[1],I={width:T<0?Math.floor(T):Math.ceil(T),height:R<0?Math.floor(R):Math.ceil(R),contextInstructions:E};1==p[0]&&1==p[1]||E.push("scale",p),r&&(E.push("strokeStyle",a.strokeStyle),E.push("lineWidth",f),E.push("lineCap",a.lineCap),E.push("lineJoin",a.lineJoin),E.push("miterLimit",a.miterLimit),E.push("setLineDash",[a.lineDash]),E.push("lineDashOffset",a.lineDashOffset)),i&&E.push("fillStyle",l.fillStyle),E.push("textBaseline","middle"),E.push("textAlign","center");for(var P,M=.5-d,O=d*S+M*f,k=[],F=[],L=0,Z=0,A=0,D=0,z=0,N=g.length;zt?t-h:n,R=s+p>e?e-p:s,I=x[3]+T*m[0]+x[1],P=x[0]+R*m[1]+x[2],M=S-x[3],O=E-x[0];return(b||0!==c)&&(f[0]=M,v[0]=M,f[1]=O,g[1]=O,g[0]=M+I,y[0]=g[0],y[1]=O+P,v[1]=y[1]),0!==c?(w=(0,o.qC)((0,o.Ue)(),i,r,1,1,c,-i,-r),(0,o.nn)(w,f),(0,o.nn)(w,g),(0,o.nn)(w,y),(0,o.nn)(w,v),(0,a.T9)(Math.min(f[0],g[0],y[0],v[0]),Math.min(f[1],g[1],y[1],v[1]),Math.max(f[0],g[0],y[0],v[0]),Math.max(f[1],g[1],y[1],v[1]),d)):(0,a.T9)(Math.min(M,M+I),Math.min(O,O+P),Math.max(M,M+I),Math.max(O,O+P),d),_&&(S=Math.round(S),E=Math.round(E)),{drawImageX:S,drawImageY:E,drawImageW:T,drawImageH:R,originX:h,originY:p,declutterBox:{minX:d[0],minY:d[1],maxX:d[2],maxY:d[3],value:C},canvasTransform:w,scale:m}},C.prototype.replayImageOrLabel_=function(t,e,i,r,n,o,a){var l=!(!o&&!a),u=r.declutterBox,h=t.canvas,p=a?a[2]*r.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&&(l&&this.replayTextBackground_(t,f,g,y,v,o,a),(0,s._f)(t,r.canvasTransform,n,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0},C.prototype.fill_=function(t){if(this.alignFill_){var e=(0,o.nn)(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.save(),t.translate(e[0]%i,e[1]%i),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},C.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.lineDashOffset=e[7],t.setLineDash(e[6])},C.prototype.drawLabelWithPointPlacement_=function(t,e,i,r){var o=this.textStates[e],a=this.createLabel(t,e,r,i),l=this.strokeStates[i],u=this.pixelRatio,h=x(Array.isArray(t)?t[0]:t,o.textAlign||s.PH),p=n.I[o.textBaseline||s.ru],c=l&&l.lineWidth?l.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}},C.prototype.execute_=function(t,e,i,l,d,f,g,y){var v;this.pixelCoordinates_&&(0,p.fS)(i,this.renderedTransform_)?v=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),v=(0,u.vT)(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),(0,o.lk)(this.renderedTransform_,i));for(var _,x,b,C,w,S,E,T,R,I,P,M,O,k,F,L,Z=0,A=l.length,D=0,z=0,N=0,G=null,j=null,W=this.coordinateCache_,q=this.viewRotation_,X=Math.round(1e12*Math.atan2(-i[1],i[0]))/1e12,Y={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:q},V=this.instructions!=l||this.overlaps?0:200;ZV&&(this.fill_(t),z=0),N>V&&(t.stroke(),N=0),z||N||(t.beginPath(),C=NaN,w=NaN),++Z;break;case r.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),++Z;break;case r.ZP.CLOSE_PATH:t.closePath(),++Z;break;case r.ZP.CUSTOM:D=B[1],_=B[2];var Q=B[3],tt=B[4],et=6==B.length?B[5]:void 0;Y.geometry=Q,Y.feature=O,Z in W||(W[Z]=[]);var it=W[Z];et?et(v,D,_,2,it):(it[0]=v[D],it[1]=v[D+1],it.length=2),tt(it,Y),++Z;break;case r.ZP.DRAW_IMAGE:D=B[1],_=B[2],T=B[3],x=B[4],b=B[5];var rt=B[6],nt=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){R=B[19],I=B[20],P=B[21],M=B[22];var dt=this.drawLabelWithPointPlacement_(R,I,P,M);T=dt.label,B[3]=T;var ft=B[23];x=(dt.anchorX-ft)*this.pixelRatio,B[4]=x;var gt=B[24];b=(dt.anchorY-gt)*this.pixelRatio,B[5]=b,rt=T.height,B[6]=rt,ht=T.width,B[13]=ht}var yt=void 0;B.length>25&&(yt=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=s.oB,mt=!1,_t=!1),st&&X?lt+=q:st||X||(lt-=q);for(var xt=0;D<_;D+=2)if(!(yt&&yt[xt++]i)break;var s=r[a];s||(s=[],r[a]=s),s.push(4*((t+n)*e+(t+o))+3),n>0&&s.push(4*((t-n)*e+(t+o))+3),o>0&&(s.push(4*((t+n)*e+(t-o))+3),n>0&&s.push(4*((t-n)*e+(t-o))+3))}for(var l=[],u=0,h=r.length;u0){if(!s||"Image"!==f&&"Text"!==f||s.includes(t)){var u=(g[o]-3)/4,h=r-u%l,p=r-(u/l|0),c=n(t,e,h*h+p*p);if(c)return c}d.clearRect(0,0,l,l);break}}var v,m,_,x,b,C=Object.keys(this.executorsByZIndex_).map(Number);for(C.sort(p.kK),v=C.length-1;v>=0;--v){var w=C[v].toString();for(_=this.executorsByZIndex_[w],m=T.length-1;m>=0;--m)if(void 0!==(x=_[f=T[m]])&&(b=x.executeHitDetection(d,u,i,y,c)))return b}},R.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var i=e[0],r=e[1],n=e[2],o=e[3],a=[i,r,i,o,n,o,n,r];return(0,u.vT)(a,0,8,2,t,a),a},R.prototype.isEmpty=function(){return(0,E.x)(this.executorsByZIndex_)},R.prototype.execute=function(t,e,i,r,n,o,a){var s,l,u,h,c,d,f=Object.keys(this.executorsByZIndex_).map(Number);for(f.sort(p.kK),this.maxExtent_&&(t.save(),this.clip(t,i)),o=o||T,a&&f.reverse(),s=0,l=f.length;s{"use strict";i.d(e,{$O:()=>a,Yc:()=>o,ZP:()=>l,gO:()=>n,s3:()=>s});var r={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},n=[r.FILL],o=[r.STROKE],a=[r.BEGIN_PATH],s=[r.CLOSE_PATH];const l=r},6301:(t,e,i)=>{"use strict";i.d(e,{I:()=>h,Z:()=>p});var r=i(6112),n=i(4531),o=i(6808),a=i(9680),s=i(4415),l=i(2005);function u(t,e,i,r,n){var o,a,s,l,u,h,p,c,d,f=i,g=i,y=0,v=0,m=i;for(o=i;ot&&(v>y&&(y=v,f=m,g=o),v=0,m=o-n)),a=s,h=c,p=d),l=_,u=x}return(v+=s)>y?[m,o]:[f,g]}var h={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};const p=function(t){function e(e,i,r,n){t.call(this,e,i,r,n),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterImageWithText_=void 0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,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 i=this.textFillState_,r=this.textStrokeState_,o=this.textState_;if(""!==this.text_&&o&&(i||r)){var s=this.coordinates,h=s.length,p=t.getType(),c=null,d=t.getStride();if("line"!==o.placement||"LineString"!=p&&"MultiLineString"!=p&&"Polygon"!=p&&"MultiPolygon"!=p){var f=o.overflow?null:[];switch(p){case"Point":case"MultiPoint":c=t.getFlatCoordinates();break;case"LineString":c=t.getFlatMidpoint();break;case"Circle":c=t.getCenter();break;case"MultiLineString":c=t.getFlatMidpoints(),d=2;break;case"Polygon":c=t.getFlatInteriorPoint(),o.overflow||f.push(c[2]/this.resolution),d=3;break;case"MultiPolygon":var g=t.getFlatInteriorPoints();c=[];for(var y=0,v=g.length;y{"use strict";i.d(e,{UN:()=>y,TU:()=>v,ix:()=>m});var r=i(7857),n=i(6808),o=i(4765),a=i(9680),s=i(7782),l=i(2005),u=i(7810),h=i(3062),p=function(t){function e(e,i,r,n,a,s,l){t.call(this),this.context_=e,this.pixelRatio_=i,this.extent_=r,this.transform_=n,this.viewRotation_=a,this.squaredTolerance_=s,this.userTransform_=l,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=[0,0],this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=[0,0],this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=(0,o.Ue)()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawImages_=function(t,e,i,r){if(this.image_){var n=(0,u.vT)(t,e,i,r,this.transform_,this.pixelCoordinates_),a=this.context_,s=this.tmpLocalTransform_,l=a.globalAlpha;1!=this.imageOpacity_&&(a.globalAlpha=l*this.imageOpacity_);var h=this.imageRotation_;this.imageRotateWithView_&&(h+=this.viewRotation_);for(var p=0,c=n.length;p{"use strict";i.d(e,{r:()=>y,Z:()=>_});var r=i(7758),n=i(8260),o=i(9335),a=i(4415),s=function(t){function e(e){t.call(this),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=e,this.declutterExecutorGroup=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getFeatures=function(t){return(0,a.O3)()},e.prototype.getData=function(t){return null},e.prototype.prepareFrame=function(t){return(0,a.O3)()},e.prototype.renderFrame=function(t,e){return(0,a.O3)()},e.prototype.loadedTileCallback=function(t,e,i){t[e]||(t[e]={}),t[e][i.tileCoord.toString()]=i},e.prototype.createLoadedTileFinder=function(t,e,i){return function(r,n){var o=this.loadedTileCallback.bind(this,i,r);return t.forEachLoadedTile(e,r,n,o)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,r,n){},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){t.target.getState()===n.Z.LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=n.Z.LOADED&&e!=n.Z.ERROR&&t.addEventListener(r.Z.CHANGE,this.boundHandleImageChange_),e==n.Z.IDLE&&(t.load(),e=t.getState()),e==n.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}(o.Z);const l=s;var u=i(6178),h=i(3557),p=i(4765),c=i(8609),d=i(766),f=i(7782),g=i(2005),y=[],v=null,m=function(t){function e(e){t.call(this,e),this.container=null,this.renderedResolution,this.tempTransform=(0,p.Ue)(),this.pixelTransform=(0,p.Ue)(),this.inversePixelTransform=(0,p.Ue)(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getImageData=function(t,e,i){var r,n;v||((r=document.createElement("canvas")).width=1,r.height=1,v=r.getContext("2d")),v.clearRect(0,0,1,1);try{v.drawImage(t,e,i,1,1,0,0,1,1),n=v.getImageData(0,0,1,1).data}catch(t){return v=null,null}return n},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,i){var r,n,o=this.getLayer().getClassName();if(t&&t.className===o&&(!i||t&&t.style.backgroundColor&&(0,f.fS)((0,c._2)(t.style.backgroundColor),(0,c._2)(i)))){var a=t.firstElementChild;a instanceof HTMLCanvasElement&&(n=a.getContext("2d"))}if(n&&n.canvas.style.transform===e?(this.container=t,this.context=n,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){(r=document.createElement("div")).className=o;var s=r.style;s.position="absolute",s.width="100%",s.height="100%";var l=(n=(0,d.E4)()).canvas;r.appendChild(l),(s=l.style).position="absolute",s.left="0",s.transformOrigin="top left",this.container=r,this.context=n}this.containerReused||!i||this.container.style.backgroundColor||(this.container.style.backgroundColor=i)},e.prototype.clipUnrotated=function(t,e,i){var r=(0,g.rL)(i),n=(0,g.Xv)(i),o=(0,g.w$)(i),a=(0,g.hC)(i);(0,p.nn)(e.coordinateToPixelTransform,r),(0,p.nn)(e.coordinateToPixelTransform,n),(0,p.nn)(e.coordinateToPixelTransform,o),(0,p.nn)(e.coordinateToPixelTransform,a);var s=this.inversePixelTransform;(0,p.nn)(s,r),(0,p.nn)(s,n),(0,p.nn)(s,o),(0,p.nn)(s,a),t.save(),t.beginPath(),t.moveTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(n[0]),Math.round(n[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,i){var r=this.getLayer();if(r.hasListener(t)){var n=new u.Z(t,this.inversePixelTransform,i,e);r.dispatchEvent(n)}},e.prototype.preRender=function(t,e){this.frameState=e,this.dispatchRenderEvent_(h.Z.PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(h.Z.POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,i,r,n,o,a){var s=n/2,l=o/2,u=r/e,h=-u,c=-t[0]+a,d=-t[1];return(0,p.qC)(this.tempTransform,s,l,u,h,-i,c,d)},e.prototype.disposeInternal=function(){delete this.frameState,t.prototype.disposeInternal.call(this)},e}(l);const _=m},8237:(t,e,i)=>{"use strict";i.d(e,{Z:()=>f});var r=i(4244),n=i(7341),o=i(9724),a=i(8441),s=i(5816),l=i(4765),u=i(2005),h=i(9786),p=i(4415),c=i(7782),d=i(7814);const f=function(t){function e(e){t.call(this,e),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=(0,u.lJ)(),this.tmpTileRange_=new a.Z(0,0,0,0)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isDrawableTile=function(t){var e=this.getLayer(),i=t.getState(),r=e.getUseInterimTilesOnError();return i==s.Z.LOADED||i==s.Z.EMPTY||i==s.Z.ERROR&&!r},e.prototype.getTile=function(t,e,i,r){var n=r.pixelRatio,o=r.viewState.projection,a=this.getLayer(),l=a.getSource().getTile(t,e,i,n,o);return l.getState()==s.Z.ERROR&&a.getUseInterimTilesOnError()&&a.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(l)||(l=l.getInterimTile()),l},e.prototype.getData=function(t){var e=this.frameState;if(!e)return null;var i=this.getLayer(),r=(0,l.nn)(e.pixelToCoordinateTransform,t.slice()),a=i.getExtent();if(a&&!(0,u.b8)(a,r))return null;for(var h=e.pixelRatio,p=e.viewState.projection,c=e.viewState,f=i.getRenderSource(),g=f.getTileGridForProjection(c.projection),y=f.getTilePixelRatio(e.pixelRatio),v=g.getZForResolution(c.resolution);v>=g.getMinZoom();--v){var m=g.getTileCoordForCoordAndZ(r,v),_=f.getTile(v,m[1],m[2],h,p);if(!(_ instanceof n.Z||_ instanceof o.Z))return null;if(_.getState()===s.Z.LOADED){var x=g.getOrigin(v),b=(0,d.Pq)(g.getTileSize(v)),C=g.getResolution(v),w=Math.floor(y*((r[0]-x[0])/C-m[1]*b[0])),S=Math.floor(y*((x[1]-r[1])/C-m[2]*b[1])),E=Math.round(y*f.getGutterForProjection(c.projection));return this.getImageData(_.getImage(),w+E,S+E)}}return null},e.prototype.loadedTileCallback=function(e,i,r){return!!this.isDrawableTile(r)&&t.prototype.loadedTileCallback.call(this,e,i,r)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var i=t.layerStatesArray[t.layerIndex],r=t.viewState,n=r.projection,o=r.resolution,a=r.center,d=r.rotation,f=t.pixelRatio,g=this.getLayer(),y=g.getSource(),v=y.getRevision(),m=y.getTileGridForProjection(n),_=m.getZForResolution(o,y.zDirection),x=m.getResolution(_),b=t.extent,C=t.viewState.resolution,w=y.getTilePixelRatio(f),S=Math.round((0,u.dz)(b)/C*f),E=Math.round((0,u.Cr)(b)/C*f),T=i.extent&&(0,h.dY)(i.extent,n);T&&(b=(0,u.Ed)(b,(0,h.dY)(i.extent,n)));var R=x*S/2/w,I=x*E/2/w,P=[a[0]-R,a[1]-I,a[0]+R,a[1]+I],M=m.getTileRangeForExtentAndZ(b,_),O={};O[_]={};var k=this.createLoadedTileFinder(y,n,O),F=this.tmpExtent,L=this.tmpTileRange_;this.newTiles_=!1;for(var Z=d?(0,u.dY)(r.center,C,d,t.size):void 0,A=M.minX;A<=M.maxX;++A)for(var D=M.minY;D<=M.maxY;++D)if(!d||m.tileCoordIntersectsViewport([_,A,D],Z)){var z=this.getTile(_,A,D,t);if(this.isDrawableTile(z)){var N=(0,p.sq)(this);if(z.getState()==s.Z.LOADED){O[_][z.tileCoord.toString()]=z;var G=z.inTransition(N);G&&1!==i.opacity&&(z.endTransition(N),G=!1),this.newTiles_||!G&&this.renderedTiles.includes(z)||(this.newTiles_=!0)}if(1===z.getAlpha(N,t.time))continue}var j=m.getTileCoordChildTileRange(z.tileCoord,L,F),W=!1;j&&(W=k(_+1,j)),W||m.forEachTileCoordParentTileRange(z.tileCoord,k,L,F)}var q=x/o*f/w;(0,l.qC)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/f,1/f,d,-S/2,-E/2);var X=(0,l.BB)(this.pixelTransform);this.useContainer(e,X,this.getBackground(t));var Y=this.context,V=Y.canvas;(0,l.nb)(this.inversePixelTransform,this.pixelTransform),(0,l.qC)(this.tempTransform,S/2,E/2,q,q,0,-S/2,-E/2),V.width!=S||V.height!=E?(V.width=S,V.height=E):this.containerReused||Y.clearRect(0,0,S,E),T&&this.clipUnrotated(Y,t,T),y.getInterpolate()||(Y.imageSmoothingEnabled=!1),this.preRender(Y,t),this.renderedTiles.length=0;var B,U,K,H=Object.keys(O).map(Number);H.sort(c.kK),1!==i.opacity||this.containerReused&&!y.getOpaque(t.viewState.projection)?(B=[],U=[]):H=H.reverse();for(var J=H.length-1;J>=0;--J){var $=H[J],Q=y.getTilePixelSize($,f,n),tt=m.getResolution($)/x,et=Q[0]*tt*q,it=Q[1]*tt*q,rt=m.getTileCoordForCoordAndZ((0,u.rL)(P),$),nt=m.getTileCoordExtent(rt),ot=(0,l.nn)(this.tempTransform,[w*(nt[0]-P[0])/x,w*(P[3]-nt[3])/x]),at=w*y.getGutterForProjection(n),st=O[$];for(var lt in st){var ut=st[lt],ht=ut.tileCoord,pt=rt[1]-ht[1],ct=Math.round(ot[0]-(pt-1)*et),dt=rt[2]-ht[2],ft=Math.round(ot[1]-(dt-1)*it),gt=Math.round(ot[0]-pt*et),yt=Math.round(ot[1]-dt*it),vt=ct-gt,mt=ft-yt,_t=_===$,xt=_t&&1!==ut.getAlpha((0,p.sq)(this),t.time),bt=!1;if(!xt)if(B){K=[gt,yt,gt+vt,yt,gt+vt,yt+mt,gt,yt+mt];for(var Ct=0,wt=B.length;Ct{"use strict";i.d(e,{Pn:()=>u,Qz:()=>l,eR:()=>a,se:()=>s});var r=i(8260),n=i(4415),o={Point:function(t,e,i,n,o){var a,s=i.getImage(),l=i.getText();if(s){if(s.getImageState()!=r.Z.LOADED)return;var u=t;if(o){var h=s.getDeclutterMode();if("none"!==h)if(u=o,"obstacle"===h){var p=t.getBuilder(i.getZIndex(),"Image");p.setImageStyle(s,a),p.drawPoint(e,n)}else l&&l.getText()&&(a={})}var c=u.getBuilder(i.getZIndex(),"Image");c.setImageStyle(s,a),c.drawPoint(e,n)}if(l&&l.getText()){var d=t;o&&(d=o);var f=d.getBuilder(i.getZIndex(),"Text");f.setTextStyle(l,a),f.drawText(e,n)}},LineString:function(t,e,i,r,n){var o=i.getStroke();if(o){var a=t.getBuilder(i.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawLineString(e,r)}var s=i.getText();if(s&&s.getText()){var l=(n||t).getBuilder(i.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,r)}},Polygon:function(t,e,i,r,n){var o=i.getFill(),a=i.getStroke();if(o||a){var s=t.getBuilder(i.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawPolygon(e,r)}var l=i.getText();if(l&&l.getText()){var u=(n||t).getBuilder(i.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,r)}},MultiPoint:function(t,e,i,n,o){var a,s=i.getImage(),l=i.getText();if(s){if(s.getImageState()!=r.Z.LOADED)return;var u=t;if(o){var h=s.getDeclutterMode();if("none"!==h)if(u=o,"obstacle"===h){var p=t.getBuilder(i.getZIndex(),"Image");p.setImageStyle(s,a),p.drawMultiPoint(e,n)}else l&&l.getText()&&(a={})}var c=u.getBuilder(i.getZIndex(),"Image");c.setImageStyle(s,a),c.drawMultiPoint(e,n)}if(l&&l.getText()){var d=t;o&&(d=o);var f=d.getBuilder(i.getZIndex(),"Text");f.setTextStyle(l,a),f.drawText(e,n)}},MultiLineString:function(t,e,i,r,n){var o=i.getStroke();if(o){var a=t.getBuilder(i.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawMultiLineString(e,r)}var s=i.getText();if(s&&s.getText()){var l=(n||t).getBuilder(i.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,r)}},MultiPolygon:function(t,e,i,r,n){var o=i.getFill(),a=i.getStroke();if(a||o){var s=t.getBuilder(i.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawMultiPolygon(e,r)}var l=i.getText();if(l&&l.getText()){var u=(n||t).getBuilder(i.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,r)}},GeometryCollection:function(t,e,i,r,n){var a,s,l=e.getGeometriesArray();for(a=0,s=l.length;a{"use strict";i.d(e,{Z:()=>_});var r=i(7758),n=i(3102),o=i(5816),a=i(2005),s=i(9786),l=i(7344),u=function(t,e,i,r,n,o){this.sourceProj_=t,this.targetProj_=e;var l={},u=(0,s.Ck)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return l[e]||(l[e]=u(t)),l[e]},this.maxSourceExtent_=r,this.errorThresholdSquared_=n*n,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&(0,a.dz)(r)==(0,a.dz)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,a.dz)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,a.dz)(this.targetProj_.getExtent()):null;var h=(0,a.rL)(i),p=(0,a.Xv)(i),c=(0,a.w$)(i),d=(0,a.hC)(i),f=this.transformInv_(h),g=this.transformInv_(p),y=this.transformInv_(c),v=this.transformInv_(d),m=10+(o?Math.max(0,Math.ceil(Math.log2((0,a.bg)(i)/(o*o*256*256)))):0);if(this.addQuad_(h,p,c,d,f,g,y,v,m),this.wrapsXInSource_){var _=1/0;this.triangles_.forEach((function(t,e,i){_=Math.min(_,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])-_>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]-_>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-_>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-_>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var i=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-i.5&&c<1,g=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var y=(0,a.hI)([t,e,i,r]);g=(0,a.dz)(y)/this.targetWorldWidth_>.25||g}!f&&this.sourceProj_.isGlobal()&&c&&(g=c>.25||g)}if(!(!g&&this.maxSourceExtent_&&isFinite(p[0])&&isFinite(p[1])&&isFinite(p[2])&&isFinite(p[3]))||(0,a.kK)(p,this.maxSourceExtent_)){var v=0;if(!(g||isFinite(n[0])&&isFinite(n[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(u[0])&&isFinite(u[1])))if(h>0)g=!0;else if(1!=(v=(isFinite(n[0])&&isFinite(n[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(s[0])&&isFinite(s[1])?0:2)+(isFinite(u[0])&&isFinite(u[1])?0:1))&&2!=v&&4!=v&&8!=v)return;if(h>0){if(!g){var m,_=[(t[0]+i[0])/2,(t[1]+i[1])/2],x=this.transformInv_(_);m=f?((0,l.$W)(n[0],d)+(0,l.$W)(s[0],d))/2-(0,l.$W)(x[0],d):(n[0]+s[0])/2-x[0];var b=(n[1]+s[1])/2-x[1];g=m*m+b*b>this.errorThresholdSquared_}if(g){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){var C=[(e[0]+i[0])/2,(e[1]+i[1])/2],w=this.transformInv_(C),S=[(r[0]+t[0])/2,(r[1]+t[1])/2],E=this.transformInv_(S);this.addQuad_(t,e,C,S,n,o,w,E,h-1),this.addQuad_(S,C,i,r,E,w,s,u,h-1)}else{var T=[(t[0]+e[0])/2,(t[1]+e[1])/2],R=this.transformInv_(T),I=[(i[0]+r[0])/2,(i[1]+r[1])/2],P=this.transformInv_(I);this.addQuad_(t,T,I,r,n,R,P,u,h-1),this.addQuad_(T,e,i,I,R,o,s,P,h-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&v)&&this.addTriangle_(t,i,r,n,s,u),0==(14&v)&&this.addTriangle_(t,i,e,n,s,o),v&&(0==(13&v)&&this.addTriangle_(e,r,t,o,u,n),0==(7&v)&&this.addTriangle_(e,r,i,o,u,s))}},u.prototype.calculateSourceExtent=function(){var t=(0,a.lJ)();return this.triangles_.forEach((function(e,i,r){var n=e.source;(0,a.Wj)(t,n[0]),(0,a.Wj)(t,n[1]),(0,a.Wj)(t,n[2])})),t},u.prototype.getTriangles=function(){return this.triangles_};const h=u;var p,c=i(766),d=[];function f(t,e,i,r,n){t.beginPath(),t.moveTo(0,0),t.lineTo(e,i),t.lineTo(r,n),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,r)+1,Math.max(i,n)),t.restore()}function g(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function y(t,e,i,r){var n=(0,s.vs)(i,e,t),o=(0,s._Q)(e,r,i),l=e.getMetersPerUnit();void 0!==l&&(o*=l);var u=t.getMetersPerUnit();void 0!==u&&(o/=u);var h=t.getExtent();if(!h||(0,a.b8)(h,n)){var p=(0,s._Q)(t,o,n)/o;isFinite(p)&&p>0&&(o/=p)}return o}var v=i(5310),m=function(t){function e(e,i,r,n,s,u,p,c,d,f,g,v){t.call(this,s,o.Z.IDLE,{interpolate:!!v}),this.renderEdges_=void 0!==g&&g,this.pixelRatio_=p,this.gutter_=c,this.canvas_=null,this.sourceTileGrid_=i,this.targetTileGrid_=n,this.wrappedTileCoord_=u||s,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;var m=n.getTileCoordExtent(this.wrappedTileCoord_),_=this.targetTileGrid_.getExtent(),x=this.sourceTileGrid_.getExtent(),b=_?(0,a.Ed)(m,_):m;if(0!==(0,a.bg)(b)){var C=e.getExtent();C&&(x=x?(0,a.Ed)(x,C):C);var w=n.getResolution(this.wrappedTileCoord_[0]),S=function(t,e,i,r){var n=(0,a.qg)(i),o=y(t,e,n,r);return(!isFinite(o)||o<=0)&&(0,a.H6)(i,(function(i){return o=y(t,e,i,r),isFinite(o)&&o>0})),o}(e,r,b,w);if(!isFinite(S)||S<=0)this.state=o.Z.EMPTY;else{var E=void 0!==f?f:.5;if(this.triangulation_=new h(e,r,b,x,S*E,w),0!==this.triangulation_.getTriangles().length){this.sourceZ_=i.getZForResolution(S);var T=this.triangulation_.calculateSourceExtent();if(x&&(e.canWrapX()?(T[1]=(0,l.uZ)(T[1],x[1],x[3]),T[3]=(0,l.uZ)(T[3],x[1],x[3])):T=(0,a.Ed)(T,x)),(0,a.bg)(T)){for(var R=i.getTileRangeForExtentAndZ(T,this.sourceZ_),I=R.minX;I<=R.maxX;I++)for(var P=R.minY;P<=R.maxY;P++){var M=d(this.sourceZ_,I,P,p);M&&this.sourceTiles_.push(M)}0===this.sourceTiles_.length&&(this.state=o.Z.EMPTY)}else this.state=o.Z.EMPTY}else this.state=o.Z.EMPTY}}else this.state=o.Z.EMPTY}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,i,r){e&&e.getState()==o.Z.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=o.Z.ERROR;else{var e=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(e),r="number"==typeof i?i:i[0],n="number"==typeof i?i:i[1],s=this.targetTileGrid_.getResolution(e),u=this.sourceTileGrid_.getResolution(this.sourceZ_),h=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(t,e,i,r,n,o,s,u,h,y,v,m){var _=(0,c.E4)(Math.round(i*t),Math.round(i*e),d);if(m||(_.imageSmoothingEnabled=!1),0===h.length)return _.canvas;function x(t){return Math.round(t*i)/i}_.scale(i,i),_.globalCompositeOperation="lighter";var b=(0,a.lJ)();h.forEach((function(t,e,i){(0,a.l7)(b,t.extent)}));var C=(0,a.dz)(b),w=(0,a.Cr)(b),S=(0,c.E4)(Math.round(i*C/r),Math.round(i*w/r));m||(S.imageSmoothingEnabled=!1);var E=i/r;h.forEach((function(t,e,i){var r=t.extent[0]-b[0],n=-(t.extent[3]-b[3]),o=(0,a.dz)(t.extent),s=(0,a.Cr)(t.extent);t.image.width>0&&t.image.height>0&&S.drawImage(t.image,y,y,t.image.width-2*y,t.image.height-2*y,r*E,n*E,o*E,s*E)}));var T=(0,a.rL)(s);return u.getTriangles().forEach((function(t,e,n){var a=t.source,s=t.target,u=a[0][0],h=a[0][1],c=a[1][0],d=a[1][1],y=a[2][0],v=a[2][1],C=x((s[0][0]-T[0])/o),w=x(-(s[0][1]-T[1])/o),E=x((s[1][0]-T[0])/o),R=x(-(s[1][1]-T[1])/o),I=x((s[2][0]-T[0])/o),P=x(-(s[2][1]-T[1])/o),M=u,O=h;u=0,h=0;var k=[[c-=M,d-=O,0,0,E-C],[y-=M,v-=O,0,0,I-C],[0,0,c,d,R-w],[0,0,y,v,P-w]],F=(0,l.SV)(k);if(F){if(_.save(),_.beginPath(),function(){if(void 0===p){var t=document.createElement("canvas").getContext("2d");t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",f(t,4,5,4,0),f(t,4,5,0,5);var e=t.getImageData(0,0,3,3).data;p=g(e,0)||g(e,4)||g(e,8)}return p}()||!m){_.moveTo(E,R);for(var L=C-E,Z=w-R,A=0;A<4;A++)_.lineTo(E+x((A+1)*L/4),R+x(A*Z/3)),3!=A&&_.lineTo(E+x((A+1)*L/4),R+x((A+1)*Z/3));_.lineTo(I,P)}else _.moveTo(E,R),_.lineTo(C,w),_.lineTo(I,P);_.clip(),_.transform(F[0],F[2],F[1],F[3],C,w),_.translate(b[0]-M,b[3]-O),_.scale(r/i,-r/i),_.drawImage(S.canvas,0,0),_.restore()}})),v&&(_.save(),_.globalCompositeOperation="source-over",_.strokeStyle="black",_.lineWidth=1,u.getTriangles().forEach((function(t,e,i){var r=t.target,n=(r[0][0]-T[0])/o,a=-(r[0][1]-T[1])/o,s=(r[1][0]-T[0])/o,l=-(r[1][1]-T[1])/o,u=(r[2][0]-T[0])/o,h=-(r[2][1]-T[1])/o;_.beginPath(),_.moveTo(s,l),_.lineTo(n,a),_.lineTo(u,h),_.closePath(),_.stroke()})),_.restore()),_.canvas}(r,n,this.pixelRatio_,u,this.sourceTileGrid_.getExtent(),s,h,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=o.Z.LOADED}this.changed()},e.prototype.load=function(){if(this.state==o.Z.IDLE){this.state=o.Z.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,i,n){var a=e.getState();if(a==o.Z.IDLE||a==o.Z.LOADING){t++;var s=(0,v.oL)(e,r.Z.CHANGE,(function(i){var r=e.getState();r!=o.Z.LOADED&&r!=o.Z.ERROR&&r!=o.Z.EMPTY||((0,v.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,i){t.getState()==o.Z.IDLE&&t.load()}))}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(v.bN),this.sourcesListenerKeys_=null},e.prototype.release=function(){this.canvas_&&((0,c.jy)(this.canvas_.getContext("2d")),d.push(this.canvas_),this.canvas_=null),t.prototype.release.call(this)},e}(n.Z);const _=m},6123:(t,e,i)=>{"use strict";i.d(e,{Gw:()=>s,YP:()=>o,gE:()=>a,h$:()=>n});var r=i(7344);function n(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,i){return i?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function s(t){return t=t||(0,r.Yr)(5),function(e,i){return i?e:void 0!==e?Math.abs(e)<=t?0:e:void 0}}},7814:(t,e,i)=>{"use strict";function r(t){return t[0]>0&&t[1]>0}function n(t,e,i){return void 0===i&&(i=[0,0]),i[0]=t[0]*e+.5|0,i[1]=t[1]*e+.5|0,i}function o(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}i.d(e,{Pq:()=>o,bA:()=>n,py:()=>r})},266:(t,e,i)=>{"use strict";i.d(e,{Z:()=>s});var r=i(12),n=i(4415),o=i(9786);function a(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}const s=function(t){function e(e){t.call(this),this.projection=(0,o.U2)(e.projection),this.attributions_=a(e.attributions),this.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,this.loading=!1,this.state_=void 0!==e.state?e.state:"ready",this.wrapX_=void 0!==e.wrapX&&e.wrapX,this.interpolate_=!!e.interpolate,this.viewResolver=null,this.viewRejector=null;var i=this;this.viewPromise_=new Promise((function(t,e){i.viewResolver=t,i.viewRejector=e}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,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,n.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_=a(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(r.Z)},8275:(t,e,i)=>{"use strict";i.d(e,{Z:()=>E});var r=i(6193),n=i(5917),o=i(7288),a=i(7758),s=i(1846),l=i(53),u=i(2005),h=i(4415),p=i(273),c=function(t){this.rbush_=new l(t),this.items_={}};c.prototype.insert=function(t,e){var i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[(0,h.sq)(e)]=i},c.prototype.load=function(t,e){for(var i=new Array(e.length),r=0,n=e.length;r0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),t.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var e,i=this.loadedExtentsRtree_;i.forEachInExtent(t,(function(i){if((0,u.fS)(i.extent,t))return e=i,!0})),e&&i.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),i=this.featureChangeKeys_[e];if(i){i.forEach(b.bN),delete this.featureChangeKeys_[e];var r=t.getId();return void 0!==r&&delete this.idIndex_[r.toString()],delete this.uidIndex_[e],this.dispatchEvent(new w(y,t)),t}},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],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,C.Be)(t,this.format_))},e}(f.Z);const E=S},4103:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});const r=function(t){function e(e){e=e||{radius:5},t.call(this,{points:1/0,fill:e.fill,radius:e.radius,stroke:e.stroke,scale:void 0!==e.scale?e.scale:1,rotation:void 0!==e.rotation?e.rotation:0,rotateWithView:void 0!==e.rotateWithView&&e.rotateWithView,displacement:void 0!==e.displacement?e.displacement:[0,0],declutterMode:e.declutterMode})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=this.getScale(),i=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 i.setOpacity(this.getOpacity()),i},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(i(853).Z)},4573:(t,e,i)=>{"use strict";i.d(e,{Z:()=>n});var r=function(t){t=t||{},this.color_=void 0!==t.color?t.color:null};r.prototype.clone=function(){var t=this.getColor();return new r({color:Array.isArray(t)?t.slice():t||void 0})},r.prototype.getColor=function(){return this.color_},r.prototype.setColor=function(t){this.color_=t};const n=r},1214:(t,e,i)=>{"use strict";i.d(e,{Z:()=>y});var r=i(7758),n=i(8260),o=i(7589),a=i(8609),s=i(9751),l=i(8408),u=i(766),h=i(6929),p=i(3458),c=null,d=function(t){function e(e,i,r,n,o,a){t.call(this),this.hitDetectionImage_=null,this.image_=e,this.crossOrigin_=n,this.canvas_={},this.color_=a,this.unlisten_=null,this.imageState_=o,this.size_=r,this.src_=i,this.tainted_}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initializeImage_=function(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)},e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===n.Z.LOADED){c||(c=(0,u.E4)(1,1)),c.drawImage(this.image_,0,0);try{c.getImageData(0,0,1,1),this.tainted_=!1}catch(t){c=null,this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(r.Z.CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=n.Z.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=n.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.image_||this.initializeImage_(),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.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){var t=this.size_[0],e=this.size_[1],i=(0,u.E4)(t,e);i.fillRect(0,0,t,e),this.hitDetectionImage_=i.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_===n.Z.IDLE){this.image_||this.initializeImage_(),this.imageState_=n.Z.LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=(0,p.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(t){if(this.color_&&!this.canvas_[t]&&this.imageState_===n.Z.LOADED){var e=this.image_,i=document.createElement("canvas");i.width=Math.ceil(e.width*t),i.height=Math.ceil(e.height*t);var r=i.getContext("2d");r.scale(t,t),r.drawImage(e,0,0),r.globalCompositeOperation="multiply",r.fillStyle=(0,a.XC)(this.color_),r.fillRect(0,0,i.width/t,i.height/t),r.globalCompositeOperation="destination-in",r.drawImage(e,0,0),this.canvas_[t]=i}},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(l.Z),f=i(4415),g=function(t){function e(e){var i=void 0!==(e=e||{}).opacity?e.opacity:1,r=void 0!==e.rotation?e.rotation:0,o=void 0!==e.scale?e.scale:1,l=void 0!==e.rotateWithView&&e.rotateWithView;t.call(this,{opacity:i,rotation:r,scale:o,displacement:void 0!==e.displacement?e.displacement:[0,0],rotateWithView:l,declutterMode:e.declutterMode}),this.anchor_=void 0!==e.anchor?e.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==e.anchorOrigin?e.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==e.anchorXUnits?e.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==e.anchorYUnits?e.anchorYUnits:"fraction",this.crossOrigin_=void 0!==e.crossOrigin?e.crossOrigin:null;var u=void 0!==e.img?e.img:null;this.imgSize_=e.imgSize;var p=e.src;(0,s.h)(!(void 0!==p&&u),4),(0,s.h)(!u||u&&this.imgSize_,5),void 0!==p&&0!==p.length||!u||(p=u.src||(0,f.sq)(u)),(0,s.h)(void 0!==p&&p.length>0,6);var c=void 0!==e.src?n.Z.IDLE:n.Z.LOADED;this.color_=void 0!==e.color?(0,a._2)(e.color):null,this.iconImage_=function(t,e,i,r,n,o){var a=h.c.get(e,r,o);return a||(a=new d(t,e,i,r,n,o),h.c.set(e,r,o,a)),a}(u,p,void 0!==this.imgSize_?this.imgSize_:null,this.crossOrigin_,c,this.color_),this.offset_=void 0!==e.offset?e.offset:[0,0],this.offsetOrigin_=void 0!==e.offsetOrigin?e.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==e.size?e.size:null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,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("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!e)return null;t=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(t[0]*=e[0]),"fraction"==this.anchorYUnits_&&(t[1]*=e[1])}if("top-left"!=this.anchorOrigin_){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),"top-right"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[0]=-t[0]+e[0]),"bottom-left"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}var i=this.getDisplacement(),r=this.getScaleArray();return[t[0]-i[0]/r[0],t[1]+i[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("top-left"!=this.offsetOrigin_){var e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),"top-right"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[0]=i[0]-e[0]-t[0]),"bottom-left"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[1]=i[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(r.Z.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(r.Z.CHANGE,t)},e}(o.Z);const y=g},6929:(t,e,i)=>{"use strict";i.d(e,{c:()=>a});var r=i(8609),n=function(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32};function o(t,e,i){return e+":"+t+":"+(i?(0,r.XC)(i):"null")}n.prototype.clear=function(){this.cache_={},this.cacheSize_=0},n.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},n.prototype.expire=function(){if(this.canExpireCache()){var t=0;for(var e in this.cache_){var i=this.cache_[e];0!=(3&t++)||i.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},n.prototype.get=function(t,e,i){var r=o(t,e,i);return r in this.cache_?this.cache_[r]:null},n.prototype.set=function(t,e,i,r){var n=o(t,e,i);this.cache_[n]=r,++this.cacheSize_},n.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()};var a=new n},7589:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(4415),n=i(7814),o=function(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,n.Pq)(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode};o.prototype.clone=function(){var t=this.getScale();return new o({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},o.prototype.getOpacity=function(){return this.opacity_},o.prototype.getRotateWithView=function(){return this.rotateWithView_},o.prototype.getRotation=function(){return this.rotation_},o.prototype.getScale=function(){return this.scale_},o.prototype.getScaleArray=function(){return this.scaleArray_},o.prototype.getDisplacement=function(){return this.displacement_},o.prototype.getDeclutterMode=function(){return this.declutterMode_},o.prototype.getAnchor=function(){return(0,r.O3)()},o.prototype.getImage=function(t){return(0,r.O3)()},o.prototype.getHitDetectionImage=function(){return(0,r.O3)()},o.prototype.getPixelRatio=function(t){return 1},o.prototype.getImageState=function(){return(0,r.O3)()},o.prototype.getImageSize=function(){return(0,r.O3)()},o.prototype.getOrigin=function(){return(0,r.O3)()},o.prototype.getSize=function(){return(0,r.O3)()},o.prototype.setDisplacement=function(t){this.displacement_=t},o.prototype.setOpacity=function(t){this.opacity_=t},o.prototype.setRotateWithView=function(t){this.rotateWithView_=t},o.prototype.setRotation=function(t){this.rotation_=t},o.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=(0,n.Pq)(t)},o.prototype.listenImageChange=function(t){(0,r.O3)()},o.prototype.load=function(){(0,r.O3)()},o.prototype.unlistenImageChange=function(t){(0,r.O3)()};const a=o},853:(t,e,i)=>{"use strict";i.d(e,{Z:()=>u});var r=i(8260),n=i(7589),o=i(8609),a=i(6808),s=i(766),l=i(9680);const u=function(t){function e(e){var i=void 0!==e.rotateWithView&&e.rotateWithView;t.call(this,{opacity:1,rotateWithView:i,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,this.hitDetectionCanvas_=null,this.fill_=void 0!==e.fill?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius_=void 0!==e.radius?e.radius:e.radius1,this.radius2_=e.radius2,this.angle_=void 0!==e.angle?e.angle:0,this.stroke_=void 0!==e.stroke?e.stroke:null,this.size_=null,this.renderOptions_=null,this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=this.getScale(),i=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 i.setOpacity(this.getOpacity()),i},e.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var e=this.getDisplacement(),i=this.getScaleArray();return[t[0]/2-e[0]/i[0],t[1]/2+e[1]/i[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 i=this.renderOptions_,r=(0,s.E4)(i.size*t,i.size*t);this.draw_(i,r,t),e=r.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 r.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,i){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;var r=this.radius_,n=void 0===this.radius2_?r:this.radius2_;if(r{"use strict";i.d(e,{Z:()=>n});var r=function(t){t=t||{},this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width};r.prototype.clone=function(){var t=this.getColor();return new r({color:Array.isArray(t)?t.slice():t||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()})},r.prototype.getColor=function(){return this.color_},r.prototype.getLineCap=function(){return this.lineCap_},r.prototype.getLineDash=function(){return this.lineDash_},r.prototype.getLineDashOffset=function(){return this.lineDashOffset_},r.prototype.getLineJoin=function(){return this.lineJoin_},r.prototype.getMiterLimit=function(){return this.miterLimit_},r.prototype.getWidth=function(){return this.width_},r.prototype.setColor=function(t){this.color_=t},r.prototype.setLineCap=function(t){this.lineCap_=t},r.prototype.setLineDash=function(t){this.lineDash_=t},r.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t},r.prototype.setLineJoin=function(t){this.lineJoin_=t},r.prototype.setMiterLimit=function(t){this.miterLimit_=t},r.prototype.setWidth=function(t){this.width_=t};const n=r},6298:(t,e,i)=>{"use strict";i.d(e,{J$:()=>l,ZP:()=>c,yF:()=>h});var r=i(4103),n=i(4573),o=i(2788),a=i(9751),s=function(t){t=t||{},this.geometry_=null,this.geometryFunction_=p,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.hitDetectionRenderer_=void 0!==t.hitDetectionRenderer?t.hitDetectionRenderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex};function l(t){var e,i;"function"==typeof t?e=t:(Array.isArray(t)?i=t:((0,a.h)("function"==typeof t.getZIndex,41),i=[t]),e=function(){return i});return e}s.prototype.clone=function(){var t=this.getGeometry();return t&&"object"==typeof t&&(t=t.clone()),new s({geometry:t,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()})},s.prototype.getRenderer=function(){return this.renderer_},s.prototype.setRenderer=function(t){this.renderer_=t},s.prototype.setHitDetectionRenderer=function(t){this.hitDetectionRenderer_=t},s.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},s.prototype.getGeometry=function(){return this.geometry_},s.prototype.getGeometryFunction=function(){return this.geometryFunction_},s.prototype.getFill=function(){return this.fill_},s.prototype.setFill=function(t){this.fill_=t},s.prototype.getImage=function(){return this.image_},s.prototype.setImage=function(t){this.image_=t},s.prototype.getStroke=function(){return this.stroke_},s.prototype.setStroke=function(t){this.stroke_=t},s.prototype.getText=function(){return this.text_},s.prototype.setText=function(t){this.text_=t},s.prototype.getZIndex=function(){return this.zIndex_},s.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},s.prototype.setZIndex=function(t){this.zIndex_=t};var u=null;function h(t,e){if(!u){var i=new n.Z({color:"rgba(255,255,255,0.4)"}),a=new o.Z({color:"#3399CC",width:1.25});u=[new s({image:new r.Z({fill:i,stroke:a,radius:5}),fill:i,stroke:a})]}return u}function p(t){return t.getGeometry()}const c=s},2238:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(4573),n=i(7814),o=function(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=(0,n.Pq)(void 0!==t.scale?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.justify_=t.justify,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new r.Z({color:"#333"}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:"point",this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding};o.prototype.clone=function(){var t=this.getScale();return new o({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,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})},o.prototype.getOverflow=function(){return this.overflow_},o.prototype.getFont=function(){return this.font_},o.prototype.getMaxAngle=function(){return this.maxAngle_},o.prototype.getPlacement=function(){return this.placement_},o.prototype.getOffsetX=function(){return this.offsetX_},o.prototype.getOffsetY=function(){return this.offsetY_},o.prototype.getFill=function(){return this.fill_},o.prototype.getRotateWithView=function(){return this.rotateWithView_},o.prototype.getRotation=function(){return this.rotation_},o.prototype.getScale=function(){return this.scale_},o.prototype.getScaleArray=function(){return this.scaleArray_},o.prototype.getStroke=function(){return this.stroke_},o.prototype.getText=function(){return this.text_},o.prototype.getTextAlign=function(){return this.textAlign_},o.prototype.getJustify=function(){return this.justify_},o.prototype.getTextBaseline=function(){return this.textBaseline_},o.prototype.getBackgroundFill=function(){return this.backgroundFill_},o.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},o.prototype.getPadding=function(){return this.padding_},o.prototype.setOverflow=function(t){this.overflow_=t},o.prototype.setFont=function(t){this.font_=t},o.prototype.setMaxAngle=function(t){this.maxAngle_=t},o.prototype.setOffsetX=function(t){this.offsetX_=t},o.prototype.setOffsetY=function(t){this.offsetY_=t},o.prototype.setPlacement=function(t){this.placement_=t},o.prototype.setRotateWithView=function(t){this.rotateWithView_=t},o.prototype.setFill=function(t){this.fill_=t},o.prototype.setRotation=function(t){this.rotation_=t},o.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=(0,n.Pq)(void 0!==t?t:1)},o.prototype.setStroke=function(t){this.stroke_=t},o.prototype.setText=function(t){this.text_=t},o.prototype.setTextAlign=function(t){this.textAlign_=t},o.prototype.setJustify=function(t){this.justify_=t},o.prototype.setTextBaseline=function(t){this.textBaseline_=t},o.prototype.setBackgroundFill=function(t){this.backgroundFill_=t},o.prototype.setBackgroundStroke=function(t){this.backgroundStroke_=t},o.prototype.setPadding=function(t){this.padding_=t};const a=o},7348:(t,e,i)=>{"use strict";i.d(e,{S:()=>n,e:()=>r});var r=42,n=256},4765:(t,e,i)=>{"use strict";i.d(e,{BB:()=>m,Iu:()=>g,Jp:()=>u,Ue:()=>s,bA:()=>d,lk:()=>p,mc:()=>l,n3:()=>f,nb:()=>v,nn:()=>c,qC:()=>y});var r,n=i(6299),o=i(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 i=t[0],r=t[1],n=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],d=e[5];return t[0]=i*l+n*u,t[1]=r*l+o*u,t[2]=i*h+n*p,t[3]=r*h+o*p,t[4]=i*c+n*d+a,t[5]=r*c+o*d+s,t}function h(t,e,i,r,n,o,a){return t[0]=e,t[1]=i,t[2]=r,t[3]=n,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 i=e[0],r=e[1];return e[0]=t[0]*i+t[2]*r+t[4],e[1]=t[1]*i+t[3]*r+t[5],e}function d(t,e,i){return u(t,h(a,e,0,0,i,0,0))}function f(t,e,i){return h(t,e,0,0,i,0,0)}function g(t,e,i){return u(t,h(a,1,0,0,1,e,i))}function y(t,e,i,r,n,o,a,s){var l=Math.sin(o),u=Math.cos(o);return t[0]=r*u,t[1]=n*l,t[2]=-r*l,t[3]=n*u,t[4]=a*r*u-s*r*l+e,t[5]=a*n*l+s*n*u+i,t}function v(t,e){var i,r=(i=e)[0]*i[3]-i[1]*i[2];(0,o.h)(0!==r,32);var n=e[0],a=e[1],s=e[2],l=e[3],u=e[4],h=e[5];return t[0]=l/r,t[1]=-a/r,t[2]=-s/r,t[3]=n/r,t[4]=(s*h-l*u)/r,t[5]=-(n*h-a*u)/r,t}function m(t){var e="matrix("+t.join(", ")+")";if(n.Id)return e;var i=r||(r=document.createElement("div"));return i.style.transform=e,i.style.transform}},4415:(t,e,i)=>{"use strict";function r(){throw new Error("Unimplemented abstract method.")}i.d(e,{O3:()=>r,q4:()=>a,sq:()=>o});var n=0;function o(t){return t.ol_uid||(t.ol_uid=String(++n))}var a="7.0.0"},8031:(t,e,i)=>{"use strict";i.d(e,{nn:()=>bo,h0:()=>uo,bg:()=>oo,ZP:()=>bo,LN:()=>wo,uX:()=>Fr});var r={};i.r(r),i.d(r,{array:()=>he,color:()=>ue,number:()=>le});var n={};i.r(n),i.d(n,{hcl:()=>Te,lab:()=>Ee});var o=i(4103),a=i(4573),s=i(1214),l=i(4765),u=i(2005),h=i(7782),p=i(6096),c=i(9786),d=i(3174),f=i(215),g=i(7810),y=(0,l.Ue)(),v=function(t,e,i,r,n){this.styleFunction,this.extent_,this.id_=n,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=i,this.properties_=r};v.prototype.get=function(t){return this.properties_[t]},v.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_},v.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_},v.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var t=(0,f.E)(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=(0,p.U)(this.flatCoordinates_,0,this.ends_,2,t)}return this.flatInteriorPoints_},v.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=(0,d.WW)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},v.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var t=this.flatCoordinates_,e=0,i=this.ends_,r=0,n=i.length;r0&&t.stops.length<=2);for(var o=["case"],a=0,s=i;a3&&e===t[t.length-2]||(r&&2===t.length||t.push(e),t.push(i))}function k(t,e){return t.type?t.type:(E(e.expression),e.expression.interpolated?"exponential":"interval")}function F(t){for(var e=["concat"],i=/{([^{}]+)}/g,r=0,n=i.exec(t);null!==n;n=i.exec(t)){var o=t.slice(r,i.lastIndex-n[0].length);r=i.lastIndex,o.length>0&&e.push(o),e.push(["get",n[1]])}if(1===e.length)return t;if(r0;)e[i]=arguments[i+1];for(var r=0,n=e;r":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var H=[z,N,G,j,W,V,q,U(X),B];function J(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!J(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 i=0,r=H;i=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof i&&i>=0&&i<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:"Invalid rgba value ["+[t,e,i,r].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof r?[t,e,i,r]:[t,e,i]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function lt(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 S)return!0;if(t instanceof et)return!0;if(t instanceof nt)return!0;if(t instanceof at)return!0;if(Array.isArray(t)){for(var e=0,i=t;e2){var s=t[1];if("string"!=typeof s||!(s in gt)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=gt[s],r++}else o=X;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],r++}i=U(o,a)}else E(gt[n],n),i=gt[n];for(var l=[];r1)&&e.push(r)}}return e.concat(this.args.map((function(t){return t.serialize()})))};const vt=yt;var mt=function(t){this.type=V,this.sections=t};mt.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var i=t[1];if(!Array.isArray(i)&&"object"==typeof i)return e.error("First argument must be an image or text section.");for(var r=[],n=!1,o=1;o<=t.length-1;++o){var a=t[o];if(n&&"object"==typeof a&&!Array.isArray(a)){n=!1;var s=null;if(a["font-scale"]&&!(s=e.parse(a["font-scale"],1,N)))return null;var l=null;if(a["text-font"]&&!(l=e.parse(a["text-font"],1,U(G))))return null;var u=null;if(a["text-color"]&&!(u=e.parse(a["text-color"],1,W)))return null;var h=r[r.length-1];h.scale=s,h.font=l,h.textColor=u}else{var p=e.parse(t[o],1,X);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'.");n=!0,r.push({content:p,scale:null,font:null,textColor:null})}}return new mt(r)},mt.prototype.evaluate=function(t){return new nt(this.sections.map((function(e){var i=e.content.evaluate(t);return ut(i)===B?new it("",i,null,null,null):new it(ht(i),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)})))},mt.prototype.eachChild=function(t){for(var e=0,i=this.sections;e-1),i},xt.prototype.eachChild=function(t){t(this.input)},xt.prototype.outputDefined=function(){return!1},xt.prototype.serialize=function(){return["image",this.input.serialize()]};const bt=xt;var Ct={"to-boolean":j,"to-color":W,"to-number":N,"to-string":G},wt=function(t,e){this.type=t,this.args=e};wt.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var i=t[0];if(E(Ct[i],i),("to-boolean"===i||"to-string"===i)&&2!==t.length)return e.error("Expected one argument.");for(var r=Ct[i],n=[],o=1;o4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":st(e[0],e[1],e[2],e[3])))return new S(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new ft(i||"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;s0),1===s.length)(i=e.errors).push.apply(i,l.errors);else{for(var w=(s.length?s:a).map((function(t){var e;return e=t[0],Array.isArray(e)?"("+e.map(K).join(", ")+")":"("+K(e.type)+"...)"})).join(" | "),S=[],T=1;T=e[2]||t[1]<=e[1]||t[3]>=e[3])}function Zt(t,e){var i,r=(180+t[0])/360,n=(i=t[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i*Math.PI/360)))/360),o=Math.pow(2,e.z);return[Math.round(r*o*kt),Math.round(n*o*kt)]}function At(t,e,i){return e[1]>t[1]!=i[1]>t[1]&&t[0]<(i[0]-e[0])*(t[1]-e[1])/(i[1]-e[1])+e[0]}function Dt(t,e){for(var i,r,n,o,a,s,l,u=!1,h=0,p=e.length;h0&&p<0||h<0&&p>0}function Gt(t,e,i){for(var r=0,n=i;ri[2]){var n=.5*r,o=t[0]-i[0]>n?-r:i[0]-t[0]>n?r:0;0===o&&(o=t[0]-i[2]>n?-r:i[2]-t[0]>n?r:0),t[0]+=o}Ft(e,t)}function Vt(t,e,i,r){var n=Math.pow(2,r.z)*kt,o=[r.x*kt,r.y*kt],a=[];if(!t)return a;for(var s=0,l=t;s=0)return!1;var i=!0;return t.eachChild((function(t){i&&!$t(t,e)&&(i=!1)})),i}var Qt=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};Qt.parse=function(t,e){if(2!==t.length||"string"!=typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");var i=t[1];return e.scope.has(i)?new Qt(i,e.scope.get(i)):e.error('Unknown variable "'+i+'". Make sure "'+i+'" has been bound in an enclosing "let" expression before using it.',1)},Qt.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},Qt.prototype.eachChild=function(){},Qt.prototype.outputDefined=function(){return!1},Qt.prototype.serialize=function(){return["var",this.name]};const te=Qt;var ee=function(t,e,i,r,n){void 0===e&&(e=[]),void 0===r&&(r=new D),void 0===n&&(n=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return"["+t+"]"})).join(""),this.scope=r,this.errors=n,this.expectedType=i};ee.prototype.parse=function(t,e,i,r,n){return void 0===n&&(n={}),e?this.concat(e,i,r)._parse(t,n):this._parse(t,n)},ee.prototype._parse=function(t,e){function i(t,e,i){return"assert"===i?new vt(e,[t]):"coerce"===i?new St(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 r=t[0];if("string"!=typeof r)return this.error("Expression name must be a string, but found "+typeof r+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var n=this.registry[r];if(n){var o=n.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=i(o,a,e.typeAnnotation||"coerce");else o=i(o,a,e.typeAnnotation||"assert")}if(!(o instanceof ct)&&"resolvedImage"!==o.type.kind&&re(o)){var l=new Rt;try{o=new ct(o.type,o.evaluate(l))}catch(t){return this.error(t.message),null}}return o}return this.error('Unknown expression "'+r+'". 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.")},ee.prototype.concat=function(t,e,i){var r="number"==typeof t?this.path.concat(t):this.path,n=i?this.scope.concat(i):this.scope;return new ee(this.registry,r,e||null,n,this.errors)},ee.prototype.error=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];var r=""+this.key+e.map((function(t){return"["+t+"]"})).join("");this.errors.push(new Z(r,t))},ee.prototype.checkSubtype=function(t,e){var i=J(t,e);return i&&this.error(i),i};const ie=ee;function re(t){if(t instanceof te)return re(t.boundExpression);if(t instanceof Pt&&"error"===t.name)return!1;if(t instanceof Ot)return!1;if(t instanceof Kt)return!1;var e=t instanceof St||t instanceof vt,i=!0;return t.eachChild((function(t){i=e?i&&re(t):i&&t instanceof ct})),!!i&&Ht(t)&&$t(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}function ne(t,e){for(var i,r,n=t.length-1,o=0,a=n,s=0;o<=a;)if(i=t[s=Math.floor((o+a)/2)],r=t[s+1],i<=e){if(s===n||ee))throw new ft("Input is not a number.");a=s-1}return 0}var oe=function(t,e,i){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var r=0,n=i;r=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,n);if(!h)return null;n=n||h.type,r.push([a,h])}return new oe(n,i,r)},oe.prototype.evaluate=function(t){var e=this.labels,i=this.outputs;if(1===e.length)return i[0].evaluate(t);var r=this.input.evaluate(t);if(r<=e[0])return i[0].evaluate(t);var n=e.length;return r>=e[n-1]?i[n-1].evaluate(t):i[ne(e,r)].evaluate(t)},oe.prototype.eachChild=function(t){t(this.input);for(var e=0,i=this.outputs;e0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};const ae=oe;var se=i(8657);function le(t,e,i){return t*(1-i)+e*i}function ue(t,e,i){return new S(le(t.r,e.r,i),le(t.g,e.g,i),le(t.b,e.b,i),le(t.a,e.a,i))}function he(t,e,i){return t.map((function(t,r){return le(t,e[r],i)}))}var pe=.95047,ce=1.08883,de=4/29,fe=6/29,ge=3*fe*fe,ye=Math.PI/180,ve=180/Math.PI;function me(t){return t>.008856451679035631?Math.pow(t,1/3):t/ge+de}function _e(t){return t>fe?t*t*t:ge*(t-de)}function xe(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function be(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ce(t){var e=be(t.r),i=be(t.g),r=be(t.b),n=me((.4124564*e+.3575761*i+.1804375*r)/pe),o=me((.2126729*e+.7151522*i+.072175*r)/1);return{l:116*o-16,a:500*(n-o),b:200*(o-me((.0193339*e+.119192*i+.9503041*r)/ce)),alpha:t.a}}function we(t){var e=(t.l+16)/116,i=isNaN(t.a)?e:e+t.a/500,r=isNaN(t.b)?e:e-t.b/200;return e=1*_e(e),i=pe*_e(i),r=ce*_e(r),new S(xe(3.2404542*i-1.5371385*e-.4985314*r),xe(-.969266*i+1.8760108*e+.041556*r),xe(.0556434*i-.2040259*e+1.0572252*r),t.alpha)}function Se(t,e,i){var r=e-t;return t+i*(r>180||r<-180?r-360*Math.round(r/360):r)}var Ee={forward:Ce,reverse:we,interpolate:function(t,e,i){return{l:le(t.l,e.l,i),a:le(t.a,e.a,i),b:le(t.b,e.b,i),alpha:le(t.alpha,e.alpha,i)}}},Te={forward:function(t){var e=Ce(t),i=e.l,r=e.a,n=e.b,o=Math.atan2(n,r)*ve;return{h:o<0?o+360:o,c:Math.sqrt(r*r+n*n),l:i,alpha:t.a}},reverse:function(t){var e=t.h*ye,i=t.c;return we({l:t.l,a:Math.cos(e)*i,b:Math.sin(e)*i,alpha:t.alpha})},interpolate:function(t,e,i){return{h:Se(t.h,e.h,i),c:le(t.c,e.c,i),l:le(t.l,e.l,i),alpha:le(t.alpha,e.alpha,i)}}},Re=function(t,e,i,r,n){this.type=t,this.operator=e,this.interpolation=i,this.input=r,this.labels=[],this.outputs=[];for(var o=0,a=n;o1})))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={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(!(n=e.parse(n,2,N)))return null;var l=[],u=null;"interpolate-hcl"===i||"interpolate-lab"===i?u=W:e.expectedType&&"value"!==e.expectedType.kind&&(u=e.expectedType);for(var h=0;h=p)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',d);var g=e.parse(c,f,u);if(!g)return null;u=u||g.type,l.push([p,g])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"==typeof u.N?new Re(u,i,r,n,l):e.error("Type "+K(u)+" is not interpolatable.")},Re.prototype.evaluate=function(t){var e=this.labels,i=this.outputs;if(1===e.length)return i[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return i[0].evaluate(t);var o=e.length;if(n>=e[o-1])return i[o-1].evaluate(t);var a=ne(e,n),s=e[a],l=e[a+1],u=Re.interpolationFactor(this.interpolation,n,s,l),h=i[a].evaluate(t),p=i[a+1].evaluate(t);return"interpolate"===this.operator?r[this.type.kind.toLowerCase()](h,p,u):"interpolate-hcl"===this.operator?Te.reverse(Te.interpolate(Te.forward(h),Te.forward(p),u)):Ee.reverse(Ee.interpolate(Ee.forward(h),Ee.forward(p),u))},Re.prototype.eachChild=function(t){t(this.input);for(var e=0,i=this.outputs;e=i.length)throw new ft("Array index out of bounds: "+e+" > "+(i.length-1)+".");if(e!==Math.floor(e))throw new ft("Array index must be an integer, but found "+e+" instead.");return i[e]},Le.prototype.eachChild=function(t){t(this.index),t(this.input)},Le.prototype.outputDefined=function(){return!1},Le.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};const Ze=Le;var Ae=function(t,e){this.type=j,this.needle=t,this.haystack=e};Ae.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var i=e.parse(t[1],1,X),r=e.parse(t[2],2,X);return i&&r?$(i.type,[j,G,N,z,X])?new Ae(i,r):e.error("Expected first argument to be of type boolean, string, number or null, but found "+K(i.type)+" instead"):null},Ae.prototype.evaluate=function(t){var e=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(null==i)return!1;if(!Q(e,["boolean","string","number","null"]))throw new ft("Expected first argument to be of type boolean, string, number or null, but found "+K(ut(e))+" instead.");if(!Q(i,["string","array"]))throw new ft("Expected second argument to be of type array or string, but found "+K(ut(i))+" instead.");return i.indexOf(e)>=0},Ae.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},Ae.prototype.outputDefined=function(){return!0},Ae.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};const De=Ae;var ze=function(t,e,i){this.type=N,this.needle=t,this.haystack=e,this.fromIndex=i};ze.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 i=e.parse(t[1],1,X),r=e.parse(t[2],2,X);if(!i||!r)return null;if(!$(i.type,[j,G,N,z,X]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+K(i.type)+" instead");if(4===t.length){var n=e.parse(t[3],3,N);return n?new ze(i,r,n):null}return new ze(i,r)},ze.prototype.evaluate=function(t){var e=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!Q(e,["boolean","string","number","null"]))throw new ft("Expected first argument to be of type boolean, string, number or null, but found "+K(ut(e))+" instead.");if(!Q(i,["string","array"]))throw new ft("Expected second argument to be of type array or string, but found "+K(ut(i))+" instead.");if(this.fromIndex){var r=this.fromIndex.evaluate(t);return i.indexOf(e,r)}return i.indexOf(e)},ze.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},ze.prototype.outputDefined=function(){return!1},ze.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 Ne=ze;var Ge=function(t,e,i,r,n,o){this.inputType=t,this.type=e,this.input=i,this.cases=r,this.outputs=n,this.otherwise=o};Ge.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 i,r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(var n={},o=[],a=2;aNumber.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(i){if(u.checkSubtype(i,ut(c)))return null}else i=ut(c);if(void 0!==n[String(c)])return u.error("Branch labels must be unique.");n[String(c)]=o.length}var d=e.parse(l,a,r);if(!d)return null;r=r||d.type,o.push(d)}var f=e.parse(t[1],1,X);if(!f)return null;var g=e.parse(t[t.length-1],t.length-1,r);return g?(E(i&&r),"value"!==f.type.kind&&e.concat(1).checkSubtype(i,f.type)?null:new Ge(i,r,f,n,o,g)):null},Ge.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(ut(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},Ge.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},Ge.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},Ge.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],i=[],r={},n=0,o=Object.keys(this.cases).sort();n=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var i=e.parse(t[1],1,X),r=e.parse(t[2],2,N);if(!i||!r)return null;if(!$(i.type,[U(X),G,X]))return e.error("Expected first argument to be of type array or string, but found "+K(i.type)+" instead");if(4===t.length){var n=e.parse(t[3],3,N);return n?new Xe(i.type,i,r,n):null}return new Xe(i.type,i,r)},Xe.prototype.evaluate=function(t){var e=this.input.evaluate(t),i=this.beginIndex.evaluate(t);if(!Q(e,["string","array"]))throw new ft("Expected first argument to be of type array or string, but found "+K(ut(e))+" instead.");if(this.endIndex){var r=this.endIndex.evaluate(t);return e.slice(i,r)}return e.slice(i)},Xe.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},Xe.prototype.outputDefined=function(){return!1},Xe.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 Ye=Xe;function Ve(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 Be(t,e,i,r){return 0===r.compare(e,i)}function Ue(t,e,i){var r="=="!==t&&"!="!==t;return function(){function n(t,e,i){this.type=j,this.lhs=t,this.rhs=e,this.collator=i,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}return n.parse=function(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");var i=t[0],o=e.parse(t[1],1,X);if(!o)return null;if(!Ve(i,o.type))return e.concat(1).error('"'+i+"\" comparisons are not supported for type '"+K(o.type)+"'.");var a=e.parse(t[2],2,X);if(!a)return null;if(!Ve(i,a.type))return e.concat(2).error('"'+i+"\" comparisons are not supported for type '"+K(a.type)+"'.");if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot compare types '"+K(o.type)+"' and '"+K(a.type)+"'.");r&&("value"===o.type.kind&&"value"!==a.type.kind?o=new vt(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new vt(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,Y)))return null}return new n(o,a,s)},n.prototype.evaluate=function(n){var o=this.lhs.evaluate(n),a=this.rhs.evaluate(n);if(r&&this.hasUntypedArgument){var s=ut(o),l=ut(a);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new ft('Expected arguments for "'+t+'" to be (string, string) or (number, number), but found ('+s.kind+", "+l.kind+") instead.")}if(this.collator&&!r&&this.hasUntypedArgument){var u=ut(o),h=ut(a);if("string"!==u.kind||"string"!==h.kind)return e(n,o,a)}return this.collator?i(n,o,a,this.collator.evaluate(n)):e(n,o,a)},n.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)},n.prototype.outputDefined=function(){return!0},n.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},n}()}var Ke=Ue("==",(function(t,e,i){return e===i}),Be),He=Ue("!=",(function(t,e,i){return e!==i}),(function(t,e,i,r){return!Be(0,e,i,r)})),Je=Ue("<",(function(t,e,i){return e",(function(t,e,i){return e>i}),(function(t,e,i,r){return r.compare(e,i)>0})),Qe=Ue("<=",(function(t,e,i){return e<=i}),(function(t,e,i,r){return r.compare(e,i)<=0})),ti=Ue(">=",(function(t,e,i){return e>=i}),(function(t,e,i,r){return r.compare(e,i)>=0})),ei=function(t,e,i,r,n){this.type=G,this.number=t,this.locale=e,this.currency=i,this.minFractionDigits=r,this.maxFractionDigits=n};ei.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var i=e.parse(t[1],1,N);if(!i)return null;var r=t[2];if("object"!=typeof r||Array.isArray(r))return e.error("NumberFormat options argument must be an object.");var n=null;if(r.locale&&!(n=e.parse(r.locale,1,G)))return null;var o=null;if(r.currency&&!(o=e.parse(r.currency,1,G)))return null;var a=null;if(r["min-fraction-digits"]&&!(a=e.parse(r["min-fraction-digits"],1,N)))return null;var s=null;return r["max-fraction-digits"]&&!(s=e.parse(r["max-fraction-digits"],1,N))?null:new ei(i,n,o,a,s)},ei.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))},ei.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)},ei.prototype.outputDefined=function(){return!1},ei.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 ii=ei;var ri=function(t){this.type=N,this.input=t};ri.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var i=e.parse(t[1],1);return i?"array"!==i.type.kind&&"string"!==i.type.kind&&"value"!==i.type.kind?e.error("Expected argument of type string or array, but found "+K(i.type)+" instead."):new ri(i):null},ri.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 ft("Expected value to be of type string or array, but found "+K(ut(e))+" instead.")},ri.prototype.eachChild=function(t){t(this.input)},ri.prototype.outputDefined=function(){return!1},ri.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var ni={"==":Ke,"!=":He,">":$e,"<":Je,">=":ti,"<=":Qe,array:vt,at:Ze,boolean:vt,case:qe,coalesce:Oe,collator:Ot,format:_t,image:bt,in:De,"index-of":Ne,interpolate:Pe,"interpolate-hcl":Pe,"interpolate-lab":Pe,length:ri,let:Fe,literal:ct,match:je,number:vt,"number-format":ii,object:vt,slice:Ye,step:ae,string:vt,"to-boolean":St,"to-color":St,"to-number":St,"to-string":St,var:te,within:Kt};function oi(t,e){var i=e[0],r=e[1],n=e[2],o=e[3];i=i.evaluate(t),r=r.evaluate(t),n=n.evaluate(t);var a=o?o.evaluate(t):1,s=st(i,r,n,a);if(s)throw new ft(s);return new S(i/255*a,r/255*a,n/255*a,a)}function ai(t,e){return t in e}function si(t,e){var i=e[t];return void 0===i?null:i}function li(t){return{type:t}}Pt.register(ni,{error:[{kind:"error"},[G],function(t,e){var i=e[0];throw new ft(i.evaluate(t))}],typeof:[G,[X],function(t,e){return K(ut(e[0].evaluate(t)))}],"to-rgba":[U(N,4),[W],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[W,[N,N,N],oi],rgba:[W,[N,N,N,N],oi],has:{type:j,overloads:[[[G],function(t,e){return ai(e[0].evaluate(t),t.properties())}],[[G,q],function(t,e){var i=e[0],r=e[1];return ai(i.evaluate(t),r.evaluate(t))}]]},get:{type:X,overloads:[[[G],function(t,e){return si(e[0].evaluate(t),t.properties())}],[[G,q],function(t,e){var i=e[0],r=e[1];return si(i.evaluate(t),r.evaluate(t))}]]},"feature-state":[X,[G],function(t,e){return si(e[0].evaluate(t),t.featureState||{})}],properties:[q,[],function(t){return t.properties()}],"geometry-type":[G,[],function(t){return t.geometryType()}],id:[X,[],function(t){return t.id()}],zoom:[N,[],function(t){return t.globals.zoom}],pitch:[N,[],function(t){return t.globals.pitch||0}],"distance-from-center":[N,[],function(t){return t.distanceFromCenter()}],"heatmap-density":[N,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[N,[],function(t){return t.globals.lineProgress||0}],"sky-radial-progress":[N,[],function(t){return t.globals.skyRadialProgress||0}],accumulated:[X,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[N,li(N),function(t,e){for(var i=0,r=0,n=e;r":[j,[G,X],function(t,e){var i=e[0],r=e[1],n=t.properties()[i.value],o=r.value;return typeof n==typeof o&&n>o}],"filter-id->":[j,[X],function(t,e){var i=e[0],r=t.id(),n=i.value;return typeof r==typeof n&&r>n}],"filter-<=":[j,[G,X],function(t,e){var i=e[0],r=e[1],n=t.properties()[i.value],o=r.value;return typeof n==typeof o&&n<=o}],"filter-id-<=":[j,[X],function(t,e){var i=e[0],r=t.id(),n=i.value;return typeof r==typeof n&&r<=n}],"filter->=":[j,[G,X],function(t,e){var i=e[0],r=e[1],n=t.properties()[i.value],o=r.value;return typeof n==typeof o&&n>=o}],"filter-id->=":[j,[X],function(t,e){var i=e[0],r=t.id(),n=i.value;return typeof r==typeof n&&r>=n}],"filter-has":[j,[X],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[j,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[j,[U(G)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[j,[U(X)],function(t,e){return e[0].value.indexOf(t.id())>=0}],"filter-in-small":[j,[G,U(X)],function(t,e){var i=e[0];return e[1].value.indexOf(t.properties()[i.value])>=0}],"filter-in-large":[j,[G,U(X)],function(t,e){var i=e[0],r=e[1];return function(t,e,i,r){for(;i<=r;){var n=i+r>>1;if(e[n]===t)return!0;e[n]>t?r=n-1:i=n+1}return!1}(t.properties()[i.value],r.value,0,r.value.length-1)}],all:{type:j,overloads:[[[j,j],function(t,e){var i=e[0],r=e[1];return i.evaluate(t)&&r.evaluate(t)}],[li(j),function(t,e){for(var i=0,r=e;i=t.stops[r-1][0])return t.stops[r-1][1];var n=ne(t.stops.map((function(t){return t[0]})),i);return t.stops[n][1]}function xi(t,e,i){var o=void 0!==t.base?t.base:1;if("number"!==di(i))return vi(t.default,e.default);var a=t.stops.length;if(1===a)return t.stops[0][1];if(i<=t.stops[0][0])return t.stops[0][1];if(i>=t.stops[a-1][0])return t.stops[a-1][1];var s=ne(t.stops.map((function(t){return t[0]})),i),l=function(t,e,i,r){var n=r-i,o=t-i;return 0===n?0:1===e?o/n:(Math.pow(e,o)-1)/(Math.pow(e,n)-1)}(i,o,t.stops[s][0],t.stops[s+1][0]),u=t.stops[s][1],h=t.stops[s+1][1],p=r[e.type]||gi;if(t.colorSpace&&"rgb"!==t.colorSpace){var c=n[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 i=u.evaluate.apply(void 0,t),r=h.evaluate.apply(void 0,t);if(void 0!==i&&void 0!==r)return p(i,r,l)}}:p(u,h,l)}function bi(t,e,i){return"color"===e.type?i=S.parse(i):"formatted"===e.type?i=nt.fromString(i.toString()):"resolvedImage"===e.type?i=at.fromString(i.toString()):di(i)===e.type||"enum"===e.type&&e.values[i]||(i=void 0),vi(i,t.default,e.default)}var Ci=function(t,e){var i;this.expression=t,this._warningHistory={},this._evaluator=new Rt,this._defaultValue=e?"color"===(i=e).type&&(fi(i.default)||Array.isArray(i.default))?new S(0,0,0,0):"color"===i.type?S.parse(i.default)||null:void 0===i.default?null:i.default:null,this._enumValues=e&&"enum"===e.type?e.values:null};function wi(t,e){var i=new ie(ui,[],e?function(t){var e={color:W,string:G,number:N,enum:G,boolean:j,formatted:V,resolvedImage:B};return"array"===t.type?U(e[t.value]||X,t.length):e[t.type]}(e):void 0),r=i.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return r?hi(new Ci(r,e)):(E(i.errors.length>0),pi(i.errors))}Ci.prototype.evaluateWithoutErrorHandling=function(t,e,i,r,n,o,a,s){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=i,this._evaluator.canonical=r||null,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null,this.expression.evaluate(this._evaluator)},Ci.prototype.evaluate=function(t,e,i,r,n,o,a,s){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=i||null,this._evaluator.canonical=r||null,this._evaluator.availableImages=n||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 ft("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 Si=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Jt(e.expression)};Si.prototype.evaluateWithoutErrorHandling=function(t,e,i,r,n,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,i,r,n,o)},Si.prototype.evaluate=function(t,e,i,r,n,o){return this._styleExpression.evaluate(t,e,i,r,n,o)};var Ei=function(t,e,i,r){this.kind=t,this.zoomStops=i,this._styleExpression=e,this.isStateDependent="camera"!==t&&!Jt(e.expression),this.interpolationType=r};function Ti(t,e){if("error"===(t=wi(t,e)).result)return t;var i,r=t.value.expression,n=Ht(r);if(!n&&"data-driven"!==(i=e)["property-type"]&&"cross-faded-data-driven"!==i["property-type"])return pi([new Z("","data expressions not supported")]);var o=$t(r,["zoom","pitch","distance-from-center"]);if(!o&&!function(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}(e))return pi([new Z("","zoom expressions not supported")]);var a=Ii(r);if(!a&&!o)return pi([new Z("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(a instanceof Z)return pi([a]);if(a instanceof Pe&&!ci(e))return pi([new Z("",'"interpolate" expressions cannot be used with this property')]);if(!a)return hi(new Si(n?"constant":"source",t.value));var s=a instanceof Pe?a.interpolation:void 0;return hi(new Ei(n?"camera":"composite",t.value,a.labels,s))}Ei.prototype.evaluateWithoutErrorHandling=function(t,e,i,r,n,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,i,r,n,o)},Ei.prototype.evaluate=function(t,e,i,r,n,o){return this._styleExpression.evaluate(t,e,i,r,n,o)},Ei.prototype.interpolationFactor=function(t,e,i){return this.interpolationType?Pe.interpolationFactor(this.interpolationType,t,e,i):0};var Ri=function(t,e){this._parameters=t,this._specification=e,L(this,yi(this._parameters,this._specification))};function Ii(t){var e=null;if(t instanceof Fe)e=Ii(t.result);else if(t instanceof Oe)for(var i=0,r=t.args;i=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,i=t.slice(1);e",">=","<","<=","to-boolean"]);function zi(t,e){return te?1:0}function Ni(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(var e=1;e"===i||"<="===i||">="===i?ji(t[1],t[2],i):"any"===i?(e=t.slice(1),["any"].concat(e.map(Gi))):"all"===i?["all"].concat(t.slice(1).map(Gi)):"none"===i?["all"].concat(t.slice(1).map(Gi).map(Xi)):"in"===i?Wi(t[1],t.slice(2)):"!in"===i?Xi(Wi(t[1],t.slice(2))):"has"===i?qi(t[1]):"!has"===i?Xi(qi(t[1])):"within"!==i||t}function ji(t,e,i){switch(t){case"$type":return["filter-type-"+i,e];case"$id":return["filter-id-"+i,e];default:return["filter-"+i,t,e]}}function Wi(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(zi)]]:["filter-in-small",t,["literal",e]]}}function qi(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Xi(t){return["!",t]}const Yi=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Vi(t,e){var i={};for(var r in t)"ref"!==r&&(i[r]=t[r]);return Yi.forEach((function(t){t in e&&(i[t]=e[t])})),i}var Bi=i(4376),Ui=i(9680),Ki="https://api.mapbox.com";function Hi(t){var e="mapbox://";return 0!==t.indexOf(e)?"":t.slice(e.length)}function Ji(t,e){var i=Hi(t);if(!i)return decodeURI(new URL(t,location.href).href);var r="styles/";if(0!==i.indexOf(r))throw new Error("unexpected style url: "+t);var n=i.slice(r.length);return Ki+"/styles/v1/"+n+"?&access_token="+e}function $i(t,e,i,r){var n=new URL(t,r),o=Hi(t);return o?"https://{a-d}.tiles.mapbox.com/v4/"+o+"/{z}/{x}/{y}.vector.pbf?access_token="+e:e?(n.searchParams.set(i,e),decodeURI(n.href)):decodeURI(n.href)}function Qi(t){return t*Math.PI/180}var tr=function(){for(var t=[],e=78271.51696402048;t.length<=24;e/=2)t.push(e);return t}();function er(t,e){if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas)return new OffscreenCanvas(t,e);var i=document.createElement("canvas");return i.width=t,i.height=e,i}function ir(t,e){for(var i=0,r=e.length;i=.05){for(var i="",r=t.split("\n"),n=ur.slice(0,Math.round(e/.1)),o=0,a=r.length;o0&&(i+="\n"),i+=r[o].split("").join(n);return i}return t}function pr(){return lr||(lr=er(1,1).getContext("2d")),lr}function cr(t,e){return pr().measureText(t).width+(t.length-1)*e}var dr={};function fr(t,e,i,r){if(-1!==t.indexOf("\n")){for(var n=t.split("\n"),o=[],a=0,s=n.length;a1){var p=pr();p.font=e;for(var c=p.measureText("M").width*i,d="",f=[],g=0,y=h.length;g1;++_){var b=f[_];if(cr(b,r)<.35*c){var C=_>0?cr(f[_-1],r):1/0,w=_.7*c&&cr(R,r)<.6*c){var I=T.split(" "),P=I.pop();cr(P,r)<.2*c&&(f[S]=I.join(" "),f[S+1]=P+" "+R),E-=1}}u=f.join("\n")}else u=t;u=hr(u,r),dr[l]=u}return u}var gr,yr=/font-family: ?([^;]*);/,vr=/("|')/g;function mr(t){if(!gr){gr={};for(var e=document.styleSheets,i=0,r=e.length;i0&&"string"==typeof l[0]&&l[0]in ui);if(!c&&fi(h)&&(h=function(t,e){var i=t.stops;if(!i)return function(t,e){var i=["get",t.property];if(void 0===t.default)return"string"===e.type?["string",i]:i;if("enum"===e.type)return["match",i,Object.keys(e.values),i,t.default];var r=["color"===e.type?"to-color":e.type,i,T(t.default)];return"array"===e.type&&r.splice(1,0,e.value,e.length||null),r}(t,e);var r=i&&"object"==typeof i[0][0],n=r||void 0!==t.property,o=r||!n;return i=i.map((function(t){return!n&&e.tokens&&"string"==typeof t[1]?[t[0],F(t[1])]:[t[0],T(t[1])]})),r?function(t,e,i){for(var r={},n={},o=[],a=0;a=M.maxzoom)){var D=M.filter;if(!D||Pr(O,D,g,d,E)){M;var z=void 0,N=void 0,G=void 0,j=void 0,W=void 0,q=void 0,X=P.index;if(3==f&&("fill"==M.type||"fill-extrusion"==M.type))if(N=Rr(M,"paint",M.type+"-opacity",d,g,S,v),M.type+"-pattern"in F){var Y=Rr(M,"paint",M.type+"-pattern",d,g,S,v);if(Y){var V="string"==typeof Y?kr(Y,l):Y.toString();if(h&&n&&n[V]){++T,(q=A[T])&&q.getFill()&&!q.getStroke()&&!q.getText()||(q=new x.ZP({fill:new a.Z}),A[T]=q),G=q.getFill(),q.setZIndex(X);var B=V+"."+N,U=w[B];if(!U){var K=n[V],H=er(K.width,K.height),J=H.getContext("2d");J.globalAlpha=N,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}G.setColor(U)}}}else z=Mr(Rr(M,"paint",M.type+"-color",d,g,S,v),N),M.type+"-outline-color"in F&&(W=Mr(Rr(M,"paint",M.type+"-outline-color",d,g,S,v),N)),W||(W=z),(z||W)&&(++T,(!(q=A[T])||z&&!q.getFill()||!z&&q.getFill()||W&&!q.getStroke()||!W&&q.getStroke()||q.getText())&&(q=new x.ZP({fill:z?new a.Z:void 0,stroke:W?new _.Z:void 0}),A[T]=q),z&&(G=q.getFill()).setColor(z),W&&((j=q.getStroke()).setColor(W),j.setWidth(.5)),q.setZIndex(X));if(1!=f&&"line"==M.type){z=!("line-pattern"in F)&&"line-color"in F?Mr(Rr(M,"paint","line-color",d,g,S,v),Rr(M,"paint","line-opacity",d,g,S,v)):void 0;var $=Rr(M,"paint","line-width",d,g,S,v);z&&$>0&&(++T,(q=A[T])&&q.getStroke()&&!q.getFill()&&!q.getText()||(q=new x.ZP({stroke:new _.Z}),A[T]=q),(j=q.getStroke()).setLineCap(Rr(M,"layout","line-cap",d,g,S,v)),j.setLineJoin(Rr(M,"layout","line-join",d,g,S,v)),j.setMiterLimit(Rr(M,"layout","line-miter-limit",d,g,S,v)),j.setColor(z),j.setWidth($),j.setLineDash(F["line-dasharray"]?Rr(M,"paint","line-dasharray",d,g,S,v).map((function(t){return t*$})):null),q.setZIndex(X))}var Q=!1,tt=null,et=0,it=void 0,rt=void 0,nt=void 0;if((1==f||2==f)&&"icon-image"in k){var ot=Rr(M,"layout","icon-image",d,g,S,v);if(ot){it="string"==typeof ot?kr(ot,l):ot.toString();var at=void 0;if(h&&n&&n[it]){var st=Rr(M,"layout","icon-rotation-alignment",d,g,S,v);if(2==f){var lt=e.getGeometry();if(lt.getFlatMidpoint||lt.getFlatMidpoints){var ut=lt.getExtent();if(Math.sqrt(Math.max(Math.pow((ut[2]-ut[0])/i,2),Math.pow((ut[3]-ut[1])/i,2)))>150){var ht="MultiLineString"===lt.getType()?lt.getFlatMidpoints():lt.getFlatMidpoint();if(Cr||(Cr=new m("Point",br=[NaN,NaN],[],{},null)),at=Cr,br[0]=ht[0],br[1]=ht[1],"line"===Rr(M,"layout","symbol-placement",d,g,S,v)&&"map"===st)for(var pt=lt.getStride(),ct=lt.getFlatCoordinates(),dt=0,ft=ct.length-pt;dt=_t&&ht[0]<=bt&&ht[1]>=xt&&ht[1]<=Ct){et=Math.atan2(yt-mt,vt-gt);break}}}}}if(2!==f||at){var wt=Rr(M,"layout","icon-size",d,g,S,v),St=void 0!==F["icon-color"]?Rr(M,"paint","icon-color",d,g,S,v):null;if(!St||0!==St.a){var Et=it+"."+wt;if(null!==St&&(Et+="."+St),!(rt=C[Et])){var Tt=n[it],Rt=Ir(M,d,g,S),It=void 0;"icon-offset"in k&&((It=Rr(M,"layout","icon-offset",d,g,S,v))[1]*=-1),rt=new s.Z({color:St?[255*St.r,255*St.g,255*St.b,St.a]:void 0,img:h,imgSize:p,size:[Tt.width,Tt.height],offset:[Tt.x,Tt.y],rotateWithView:"map"===st,scale:wt/Tt.pixelRatio,displacement:It,declutterMode:Rt}),C[Et]=rt}}rt&&(++T,(q=A[T])&&q.getImage()&&!q.getFill()&&!q.getStroke()||(q=new x.ZP,A[T]=q),q.setGeometry(at),rt.setRotation(et+Qi(Rr(M,"layout","icon-rotate",d,g,S,v))),rt.setOpacity(Rr(M,"paint","icon-opacity",d,g,S,v)),rt.setAnchor(Sr[Rr(M,"layout","icon-anchor",d,g,S,v)]),q.setImage(rt),tt=q.getText(),q.setText(void 0),q.setZIndex(X),Q=!0,nt=!1)}else nt=!0}}}if(1==f&&"circle"===M.type){++T,(q=A[T])&&q.getImage()&&!q.getFill()&&!q.getStroke()||(q=new x.ZP,A[T]=q);var Pt="circle-radius"in F?Rr(M,"paint","circle-radius",d,g,S,v):5,Mt=Mr(Rr(M,"paint","circle-stroke-color",d,g,S,v),Rr(M,"paint","circle-stroke-opacity",d,g,S,v)),Ot=Mr(Rr(M,"paint","circle-color",d,g,S,v),Rr(M,"paint","circle-opacity",d,g,S,v)),kt=Rr(M,"paint","circle-stroke-width",d,g,S,v),Ft=Pt+"."+Mt+"."+Ot+"."+kt;(rt=C[Ft])||(rt=new o.Z({radius:Pt,stroke:Mt&&kt>0?new _.Z({width:kt,color:Mt}):void 0,fill:Ot?new a.Z({color:Ot}):void 0,declutterMode:"none"}),C[Ft]=rt),q.setImage(rt),tt=q.getText(),q.setText(void 0),q.setGeometry(void 0),q.setZIndex(X),Q=!0}var Lt=void 0,Zt=void 0,At=void 0,Dt=void 0,zt=void 0,Nt=void 0;if("text-field"in k){Dt=Math.round(Rr(M,"layout","text-size",d,g,S,v));var Gt=Rr(M,"layout","text-font",d,g,S,v);At=Rr(M,"layout","text-line-height",d,g,S,v),(Zt=Bi(u?u(Gt):Gt,Dt,At)).includes("sans-serif")||(Zt+=",sans-serif"),zt=Rr(M,"layout","text-letter-spacing",d,g,S,v),Nt=Rr(M,"layout","text-max-width",d,g,S,v);var jt=Rr(M,"layout","text-field",d,g,S,v);Lt="object"==typeof jt&&jt.sections?1===jt.sections.length?jt.toString():jt.sections.reduce((function(t,e,i){var r=e.fontStack?e.fontStack.split(","):Gt,n=Bi(u?u(r):r,Dt*(e.scale||1),At),o=e.text;if("\n"===o)return t.push("\n",""),t;if(2!=f){for(var a=0,s=(o=fr(o,n,Nt,zt).split("\n")).length;a0&&t.push("\n",""),t.push(o[a],n);return t}t.push(hr(o,zt),n)}),[]):kr(jt,l).trim(),N=Rr(M,"paint","text-opacity",d,g,S,v)}if(Lt&&N&&!nt){Q||(++T,(q=A[T])&&q.getText()&&!q.getFill()&&!q.getStroke()||(q=new x.ZP,A[T]=q),q.setImage(void 0),q.setGeometry(void 0)),q.getText()||q.setText(tt||new b.Z({padding:[2,2,2,2]})),tt=q.getText();var Wt=k["text-transform"];"uppercase"==Wt?Lt=Array.isArray(Lt)?Lt.map((function(t,e){return e%2?t:t.toUpperCase()})):Lt.toUpperCase():"lowercase"==Wt&&(Lt=Array.isArray(Lt)?Lt.map((function(t,e){return e%2?t:t.toLowerCase()})):Lt.toLowerCase());var qt=Array.isArray(Lt)?Lt:2==f?hr(Lt,zt):fr(Lt,Zt,Nt,zt);tt.setText(qt),tt.setFont(Zt),tt.setRotation(Qi(Rr(M,"layout","text-rotate",d,g,S,v)));var Xt=Rr(M,"layout","text-anchor",d,g,S,v),Yt=Q||1==f?"point":Rr(M,"layout","symbol-placement",d,g,S,v);tt.setPlacement(Yt),tt.setOverflow("point"===Yt);var Vt=Rr(M,"paint","text-halo-width",d,g,S,v),Bt=Rr(M,"layout","text-offset",d,g,S,v),Ut=Rr(M,"paint","text-translate",d,g,S,v),Kt=0,Ht=0;if("point"==Yt){var Jt="center";-1!==Xt.indexOf("left")?(Jt="left",Ht=Vt):-1!==Xt.indexOf("right")&&(Jt="right",Ht=-Vt),tt.setTextAlign(Jt);var $t=Rr(M,"layout","text-rotation-alignment",d,g,S,v);tt.setRotateWithView("map"==$t)}else tt.setMaxAngle(Qi(Rr(M,"layout","text-max-angle",d,g,S,v))*Lt.length/qt.length),tt.setTextAlign(),tt.setRotateWithView(!1);var Qt="middle";0==Xt.indexOf("bottom")?(Qt="bottom",Kt=-Vt-.5*(At-1)*Dt):0==Xt.indexOf("top")&&(Qt="top",Kt=Vt+.5*(At-1)*Dt),tt.setTextBaseline(Qt);var te=Rr(M,"layout","text-justify",d,g,S,v);tt.setJustify("auto"===te?void 0:te),tt.setOffsetX(Bt[0]*Dt+Ht+Ut[0]),tt.setOffsetY(Bt[1]*Dt+Kt+Ut[1]),Z.setColor(Mr(Rr(M,"paint","text-color",d,g,S,v),N)),tt.setFill(Z);var ee=Mr(Rr(M,"paint","text-halo-color",d,g,S,v),N);if(ee){L.setColor(ee),Vt*=2;var ie=.5*Dt;L.setWidth(Vt<=ie?Vt:ie),tt.setStroke(L)}else tt.setStroke(void 0);var re=Rr(M,"layout","text-padding",d,g,S,v),ne=tt.getPadding();re!==ne[0]&&(ne[0]=re,ne[1]=re,ne[2]=re,ne[3]=re),q.setZIndex(X)}}}}return T>-1?(A.length=T+1,A):void 0}};return t.setStyle(D),t.set("mapbox-source",f),t.set("mapbox-layers",v),t.set("mapbox-featurestate",{}),D}var Lr=i(8833),Zr=i(5817),Ar=i(8132),Dr=i(7659),zr=i(9468),Nr=i(8264),Gr=i(9455),jr=i(1879),Wr=i(5828),qr=i(544),Xr=i(9751),Yr=i(7704);function Vr(t,e,i){if(3===t){var r={keys:[],values:[],features:[]},n=i.readVarint()+i.pos;i.readFields(Br,r,n),r.length=r.features.length,r.length&&(e[r.name]=r)}}function Br(t,e,i){if(15===t)e.version=i.readVarint();else if(1===t)e.name=i.readString();else if(5===t)e.extent=i.readVarint();else if(2===t)e.features.push(i.pos);else if(3===t)e.keys.push(i.readString());else if(4===t){for(var r=null,n=i.readVarint()+i.pos;i.pos>3)?i.readString():2===t?i.readFloat():3===t?i.readDouble():4===t?i.readVarint64():5===t?i.readVarint():6===t?i.readSVarint():7===t?i.readBoolean():null;e.values.push(r)}}function Ur(t,e,i){if(1==t)e.id=i.readVarint();else if(2==t)for(var r=i.readVarint()+i.pos;i.pos>3}a--,1===o||2===o?(s+=t.readSVarint(),l+=t.readSVarint(),1===o&&u>h&&(r.push(u),h=u),i.push(s,l),u+=2):7===o?u>h&&(i.push(i[h],i[h+1]),u+=2):(0,Xr.h)(!1,59)}u>h&&(r.push(u),h=u)},e.prototype.createFeature_=function(t,e,i){var r,n=e.type;if(0===n)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 i;return 1===t?i=1===e?"Point":"MultiPoint":2===t?i=1===e?"LineString":"MultiLineString":3===t&&(i="Polygon"),i}(n,l.length);if(this.featureClass_===m)(r=new this.featureClass_(u,s,l,a,o)).transform(i.dataProjection);else{var h;if("Polygon"==u){var p=(0,Yr.Q3)(s,l);h=p.length>1?new Nr.Z(s,"XY",p):new Wr.ZP(s,"XY",l)}else h="Point"===u?new jr.Z(s,"XY"):"LineString"===u?new Ar.Z(s,"XY"):"MultiPoint"===u?new zr.Z(s,"XY"):"MultiLineString"===u?new Dr.Z(s,"XY",l):null;r=new(0,this.featureClass_),this.geometryName_&&r.setGeometryName(this.geometryName_);var c=(0,Zr.fI)(h,!1,i);r.setGeometry(c),void 0!==o&&r.setId(o),r.setProperties(a,!0)}return r},e.prototype.getType=function(){return"arraybuffer"},e.prototype.readFeatures=function(t,e){var i=this.layers_;e=this.adaptOptions(e);var r=(0,c.U2)(e.dataProjection);r.setWorldExtent(e.extent),e.dataProjection=r;var n=new Gr(t),o=n.readFields(Vr,{}),a=[];for(var s in o)if(!i||i.includes(s)){var l=o[s],u=l?[0,0,l.extent,l.extent]:null;r.setExtent(u);for(var h=0,p=l.length;h=this.minZoom;){if(2===this.zoomFactor_?(o=Math.floor(o/2),a=Math.floor(a/2),n=(0,$r.T)(o,o,a,a,i)):n=this.getTileRangeForExtentAndZ(s,l,i),e(l,n))return!0;--l}return!1},un.prototype.getExtent=function(){return this.extent_},un.prototype.getMaxZoom=function(){return this.maxZoom},un.prototype.getMinZoom=function(){return this.minZoom},un.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},un.prototype.getResolution=function(t){return this.resolutions_[t]},un.prototype.getResolutions=function(){return this.resolutions_},un.prototype.getTileCoordChildTileRange=function(t,e,i){if(t[0]this.maxZoom||e0&&this.getCount()>this.highWaterMark},fn.prototype.expireCache=function(t){for(;this.canExpireCache();)this.pop()},fn.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},fn.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},fn.prototype.forEach=function(t){for(var e=this.oldest_;e;)t(e.value_,e.key_,this),e=e.newer},fn.prototype.get=function(t,e){var i=this.entries_[t];return(0,Xr.h)(void 0!==i,15),i===this.newest_||(i===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(i.newer.older=i.older,i.older.newer=i.newer),i.newer=null,i.older=this.newest_,this.newest_.newer=i,this.newest_=i),i.value_},fn.prototype.remove=function(t){var e=this.entries_[t];return(0,Xr.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_},fn.prototype.getCount=function(){return this.count_},fn.prototype.getKeys=function(){var t,e=new Array(this.count_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=t.key_;return e},fn.prototype.getValues=function(){var t,e=new Array(this.count_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=t.value_;return e},fn.prototype.peekLast=function(){return this.oldest_.value_},fn.prototype.peekLastKey=function(){return this.oldest_.key_},fn.prototype.peekFirstKey=function(){return this.newest_.key_},fn.prototype.peek=function(t){if(this.containsKey(t))return this.entries_[t].value_},fn.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_},fn.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},fn.prototype.set=function(t,e){(0,Xr.h)(!(t in this.entries_),16);var i={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[t]=i,++this.count_},fn.prototype.setSize=function(t){this.highWaterMark=t};var gn=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.prototype.clear=function(){for(;this.getCount()>0;)this.pop().release();t.prototype.clear.call(this)},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=on(this.peekFirstKey())[0];this.forEach(function(e){e.tileCoord[0]!==t&&(this.remove(nn(e.tileCoord)),e.release())}.bind(this))}},e}(fn);const yn=gn;var vn=i(5816);var mn=i(7288),_n=i(266),xn=i(4415);function bn(t){var e=t.getDefaultTileGrid();return e||(e=function(t,e,i,r){return function(t,e,i,r){r=void 0!==r?r:"top-left";var n=wn(t,undefined,i);return new hn({extent:t,origin:(0,u.g0)(t,r),resolutions:n,tileSize:i})}(Sn(t),0,void 0,void 0)}(t),t.setDefaultTileGrid(e)),e}function Cn(t){var e=t||{},i=e.extent||(0,c.U2)("EPSG:3857").getExtent(),r={extent:i,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:wn(i,e.maxZoom,e.tileSize,e.maxResolution)};return new hn(r)}function wn(t,e,i,r){e=void 0!==e?e:Qr.e,i=(0,sn.Pq)(void 0!==i?i:Qr.S);var n=(0,u.Cr)(t),o=(0,u.dz)(t);r=r>0?r:Math.max(o/i[0],n/i[1]);for(var a=e+1,s=new Array(a),l=0;li||i>e.getMaxZoom())return!1;var o=e.getFullTileRange(i);return!o||o.containsXY(r,n)}(t,i)?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 i=this.getTileCacheForProjection(e);t>i.highWaterMark&&(i.highWaterMark=t)},e.prototype.useTile=function(t,e,i,r){},e}(_n.Z),Tn=function(t){function e(e,i){t.call(this,e),this.tile=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(mn.ZP);function Rn(t,e){var i=/\{z\}/g,r=/\{x\}/g,n=/\{y\}/g,o=/\{-y\}/g;return function(a,s,l){return a?t.replace(i,a[0].toString()).replace(r,a[1].toString()).replace(n,a[2].toString()).replace(o,(function(){var t=a[0],i=e.getFullTileRange(t);return(0,Xr.h)(i,55),(i.getHeight()-a[2]-1).toString()})):void 0}}function In(t,e){for(var i=t.length,r=new Array(i),n=0;n=200&&e.status<300){var i;try{i=JSON.parse(e.responseText)}catch(t){return void this.handleTileJSONError()}this.handleTileJSONResponse(i)}else this.handleTileJSONError()},e.prototype.onXHRError_=function(t){this.handleTileJSONError()},e.prototype.getTileJSON=function(){return this.tileJSON_},e.prototype.handleTileJSONResponse=function(t){var e,i=(0,c.U2)("EPSG:4326"),r=this.getProjection();if(void 0!==t.bounds){var n=(0,c.WO)(i,r);e=(0,u.Ne)(t.bounds,n)}var o=Sn(r),a=t.minzoom||0,s=Cn({extent:o,maxZoom:t.maxzoom||22,minZoom:a,tileSize:this.tileSize_});if(this.tileGrid=s,this.tileUrlFunction=In(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}(On);const Ln=Fn;var Zn=i(7385),An=i(1393),Dn=function(t){function e(e){e=e||{};var i=Object.assign({},e);delete i.preload,delete i.useInterimTilesOnError,t.call(this,i),this.on,this.once,this.un,this.setPreload(void 0!==e.preload?e.preload:0),this.setUseInterimTilesOnError(void 0===e.useInterimTilesOnError||e.useInterimTilesOnError)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getPreload=function(){return this.get(An.Z.PRELOAD)},e.prototype.setPreload=function(t){this.set(An.Z.PRELOAD,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(An.Z.USE_INTERIM_TILES_ON_ERROR)},e.prototype.setUseInterimTilesOnError=function(t){this.set(An.Z.USE_INTERIM_TILES_ON_ERROR,t)},e.prototype.getData=function(e){return t.prototype.getData.call(this,e)},e}(Zn.Z);const zn=Dn;var Nn=i(8237),Gn=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRenderer=function(){return new Nn.Z(this)},e}(zn);const jn=Gn;var Wn=i(5218),qn=i(8275),Xn=i(3830),Yn=i(3102),Vn=function(t){function e(e,i,r,n,o,a){t.call(this,e,i,a),this.extent=null,this.format_=n,this.features_=null,this.loader_,this.projection=null,this.resolution,this.tileLoadFunction_=o,this.url_=r,this.key=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getFormat=function(){return this.format_},e.prototype.getFeatures=function(){return this.features_},e.prototype.load=function(){this.state==vn.Z.IDLE&&(this.setState(vn.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(vn.Z.ERROR)},e.prototype.setFeatures=function(t){this.features_=t,this.setState(vn.Z.LOADED)},e.prototype.setLoader=function(t){this.loader_=t},e}(Yn.Z);const Bn=Vn;var Un=i(766),Kn=[],Hn=function(t){function e(e,i,r,n){t.call(this,e,i,{transition:0}),this.context_={},this.executorGroups={},this.declutterExecutorGroups={},this.loadingSourceTiles=0,this.hitDetectionImageData={},this.replayState_={},this.sourceTiles=[],this.errorTileKeys={},this.wantedResolution,this.getSourceTiles=n.bind(void 0,this),this.wrappedTileCoord=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getContext=function(t){var e=(0,xn.sq)(t);return e in this.context_||(this.context_[e]=(0,Un.E4)(1,1,Kn)),this.context_[e]},e.prototype.hasContext=function(t){return(0,xn.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,xn.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 i=this.context_[e];(0,Un.jy)(i),Kn.push(i.canvas),delete this.context_[e]}t.prototype.release.call(this)},e}(Yn.Z);const Jn=Hn;var $n=i(273),Qn=i(3618),to=function(t){function e(e){var i=e.projection||"EPSG:3857",r=e.extent||Sn(i),n=e.tileGrid||Cn({extent:r,maxResolution:e.maxResolution,maxZoom:void 0!==e.maxZoom?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,opaque:!1,projection:i,state:e.state,tileGrid:n,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:io,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,this.sourceTileCache=new yn(this.tileCache.highWaterMark),this.overlaps_=null==e.overlaps||e.overlaps,this.tileClass=e.tileClass?e.tileClass:Bn,this.tileGrids_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getFeaturesInExtent=function(t){var e=[],i=this.tileCache;if(0===i.getCount())return e;var r=on(i.peekFirstKey())[0],n=this.tileGrid;return i.forEach((function(i){if(i.tileCoord[0]===r&&i.getState()===vn.Z.LOADED)for(var o=i.getSourceTiles(),a=0,s=o.length;a0||p>0)&&t.setMaxResolution(Math.min(tr[a],h.getResolution(p))+1e-9),s<24&&t.setMinResolution(tr[s]+1e-9)}}n instanceof qn.Z||n instanceof eo?oo(t,i,e,Object.assign({styleUrl:r},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);var p=n.getLayers();-1===p.getArray().indexOf(t)&&p.push(t),t.getSource()?h():t.once("change:source",h)}))}function wo(t,e,i){for(var r=("getLayers"in t?function(t,e){for(var i=[],r=t.getAllLayers(),n=0,o=r.length;n{if(!i){var a=1/0;for(h=0;h=o)&&Object.keys(r.O).every((t=>r.O[t](i[l])))?i.splice(l--,1):(s=!1,o0&&t[h-1][2]>o;h--)t[h]=t[h-1];t[h]=[i,n,o]},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={592:0};r.O.j=e=>0===t[e];var e=(e,i)=>{var n,o,[a,s,l]=i,u=0;if(a.some((e=>0!==t[e]))){for(n in s)r.o(s,n)&&(r.m[n]=s[n]);if(l)var h=l(r)}for(e&&e(i);u