PageSourceSearch

https://sac.plis.com.br/js/packages/provedor-dist/vendors-provedor…?version=08bb28c1443ef7ad433fe249c7ab7036

js plis.com.br collected 2026-10-08 12:31:18 UTC 882,323 bytes, 8 lines download raw bytes

vendor: 4,601 bytes, line 1
1(self.webpackChunkprovedor=self.webpackChunkprovedor||[]).push([[656],{2753:(t,e,r)=>{"use strict";const n=r(627),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),h=Symbol("noDisposeOnSet"),c=Symbol("lruList"),f=Symbol("cache"),p=Symbol("updateAgeOnGet"),d=()=>1;const g=(t,e,r)=>{const n=t[f].get(e);if(n){const e=n.value;if(_(t,e)){if(m(t,n),!t[s])return}else r&&(t[p]&&(n.value.now=Date.now()),t[c].unshiftNode(n));return e.value}},_=(t,e)=>{if(!e||!e.maxAge&&!t[l])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[l]&&r>t[l]},y=t=>{if(t[o]>t[i])for(let e=t[c].tail;t[o]>t[i]&&null!==e;){const r=e.prev;m(t,e),e=r}},m=(t,e)=>{if(e){const r=e.value;t[u]&&t[u](r.key,r.value),t[o]-=r.length,t[f].delete(r.key),t[c].removeNode(e)}};class v{constructor(t,e,r,n,i){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=i||0}}const w=(t,e,r,n)=>{let i=r.value;_(t,i)&&(m(t,r),t[s]||(i=void 0)),i&&e.call(n,i.value,i.key,t)};t.exports=class{constructor(t){if("number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;const e=t.length||d;if(this[a]="function"!=typeof e?d:e,this[s]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0,this[u]=t.dispose,this[h]=t.noDisposeOnSet||!1,this[p]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!=typeof t||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||1/0,y(this)}get max(){return this[i]}set allowStale(t){this[s]=!!t}get allowStale(){return this[s]}set maxAge(t){if("number"!=typeof t)throw new TypeError("maxAge must be a non-negative number");this[l]=t,y(this)}get maxAge(){return this[l]}set lengthCalculator(t){"function"!=typeof t&&(t=d),t!==this[a]&&(this[a]=t,this[o]=0,this[c].forEach((t=>{t.length=this[a](t.value,t.key),this[o]+=t.length}))),y(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[c].length}rforEach(t,e){e=e||this;for(let r=this[c].tail;null!==r;){const n=r.prev;w(this,t,r,e),r=n}}forEach(t,e){e=e||this;for(let r=this[c].head;null!==r;){const n=r.next;w(this,t,r,e),r=n}}keys(){return this[c].toArray().map((t=>t.key))}values(){return this[c].toArray().map((t=>t.value))}reset(){this[u]&&this[c]&&this[c].length&&this[c].forEach((t=>this[u](t.key,t.value))),this[f]=new Map,this[c]=new n,this[o]=0}dump(){return this[c].map((t=>!_(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[c]}set(t,e,r){if((r=r||this[l])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,s=this[a](e,t);if(this[f].has(t)){if(s>this[i])return m(this,this[f].get(t)),!1;const a=this[f].get(t).value;return this[u]&&(this[h]||this[u](t,a.value)),a.now=n,a.maxAge=r,a.value=e,this[o]+=s-a.length,a.length=s,this.get(t),y(this),!0}const p=new v(t,e,s,n,r);return p.length>this[i]?(this[u]&&this[u](t,e),!1):(this[o]+=p.length,this[c].unshift(p),this[f].set(t,this[c].head),y(this),!0)}has(t){if(!this[f].has(t))return!1;const e=this[f].get(t).value;return!_(this,e)}get(t){return g(this,t,!0)}peek(t){return g(this,t,!1)}pop(){const t=this[c].tail;return t?(m(this,t),t.value):null}del(t){m(this,this[f].get(t))}load(t){this.reset();const e=Date.now();for(let r=t.length-1;r>=0;r--){const n=t[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const t=i-e;t>0&&this.set(n.k,n.v,t)}}}prune(){this[f].forEach(((t,e)=>g(this,e,!1)))}}},5975:t=>{"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},627:(t,e,r)=>{"use strict";function n(t){var e=this;if(e instanceof n||(e=new n),e.tail=null,e.head=null,e.length=0,t&&"function"==typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}function i(t,e,r){var n=e===t.head?new s(r,null,e,t):new s(r,e,e.next,t);return null===n.next&&(t.tail=n),null===n.prev&&(t.head=n),t.length++,n}function o(t,e){t.tail=new s(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function a(t,e){t.head=new s(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function s(t,e,r,n){if(!(this instanceof s))return new s(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}t.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(t){if(t.list!==this)throw new Error("remov
1ing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e},n.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},n.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},n.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)o(this,arguments[t]);return this.length},n.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)a(this,arguments[t]);return this.length},n.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},n.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},n.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;null!==r;n++)t.call(e,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;null!==r;n--)t.call(e,r.value,n,this),r=r.prev},n.prototype.get=function(t){for(var e=0,r=this.head;null!==r&&e<t;e++)r=r.next;if(e===t&&null!==r)return r.value},n.prototype.getReverse=function(t){for(var e=0,r=this.tail;null!==r&&e<t;e++)r=r.prev;if(e===t&&null!==r)return r.value},n.prototype.map=function(t,e){e=e||this;for(var r=new n,i=this.head;null!==i;)r.push(t.call(e,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(t,e){e=e||this;for(var r=new n,i=this.tail;null!==i;)r.push(t.call(e,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=t(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;
1i--)r=t(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},n.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},n.prototype.slice=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,o=this.head;null!==o&&i<t;i++)o=o.next;for(;null!==o&&i<e;i++,o=o.next)r.push(o.value);return r},n.prototype.sliceReverse=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,o=this.tail;null!==o&&i>e;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,o=this.head;null!==o&&n<t;n++)o=o.next;var a=[];for(n=0;o&&n<e;n++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(n=0;n<r.length;n++)o=i(this,o,r[n]);return a},n.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};try{r(5975)(n)}catch(t){}},4827:(t,e)=>{var r,n,i,o,a,s,l,u,h,c,f,p,d;
2/* Copyright 2015-2021 Esri. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @preserve */n={defaultNoDataValue:-34027999387901484e22,decode:function(t,e){var r=(e=e||{}).encodedMaskData||null===e.encodedMaskData,l=s(t,e.inputOffset||0,r),u=null!==e.noDataValue?e.noDataValue:n.defaultNoDataValue,h=i(l,e.pixelType||Float32Array,e.encodedMaskData,u,e.returnMask),c={width:l.width,height:l.height,pixelData:h.resultPixels,minValue:h.minValue,maxValue:l.pixels.maxValue,noDataValue:u};return h.resultMask&&(c.maskData=h.resultMask),e.returnEncodedMask&&l.mask&&(c.encodedMaskData=l.mask.bitset?l.mask.bitset:null),e.returnFileInfo&&(c.fileInfo=o(l),e.computeUsedBitDepths&&(c.fileInfo.bitDepths=a(l))),c}},i=function(t,e,r,n,i){var o,a,s,u=0,h=t.pixels.numBlocksX,c=t.pixels.numBlocksY,f=Math.floor(t.width/h),p=Math.floor(t.height/c),d=2*t.maxZError,g=Number.MAX_VALUE;r=r||(t.mask?t.mask.bitset:null),a=new e(t.width*t.height),i&&r&&(s=new Uint8Array(t.width*t.height));for(var _,y,m=new Float32Array(f*p),v=0;v<=c;v++){var w=v!==c?p:t.height%c;if(0!==w)for(var x=0;x<=h;x++){var b=x!==h?f:t.width%h;if(0!==b){var E,A,S,C,T=v*t.width*p+x*f,P=t.width-b,I=t.pixels.blocks[u];if(I.encoding<2?(0===I.encoding?E=I.rawData:(l(I.stuffedData,I.bitsPerPixel,I.numValidPixels,I.offset,d,m,t.pixels.maxValue),E=m),A=0):S=2===I.encoding?0:I.offset,r)for(y=0;y<w;y++){for(7&T&&(C=r[T>>3],C<<=7&T),_=0;_<b;_++)7&T||(C=r[T>>3]),128&C?(s&&(s[T]=1),g=g>(o=I.encoding<2?E[A++]:S)?o:g,a[T++]=o):(s&&(s[T]=0),a[T++]=n),C<<=1;T+=P}else if(I.encoding<2)for(y=0;y<w;y++){for(_=0;_<b;_++)g=g>(o=E[A++])?o:g,a[T++]=o;T+=P}else for(g=g>S?S:g,y=0;y<w;y++){for(_=0;_<b;_++)a[T++]=S;T+=P}if(1===I.encoding&&A!==I.numValidPixels)throw"Block and Mask do not match";u++}}}return{resultPixels:a,resultMask:s,minValue:g}},o=function(t){return{fileIdentifierString:t.fileIdentifierString,fileVersion:t.fileVersion,imageType:t.imageType,height:t.height,width:t.width,maxZError:t.maxZError,eofOffset:t.eofOffset,mask:t.mask?{numBlocksX:t.mask.numBlocksX,numBlocksY:t.mask.numBlocksY,numBytes:t.mask.numBytes,maxValue:t.mask.maxValue}:null,pixels:{numBlocksX:t.pixels.numBlocksX,numBlocksY:t.pixels.numBlocksY,numBytes:t.pixels.numBytes,maxValue:t.pixels.maxValue,noDataValue:t.noDataValue}}},a=function(t){for(var e=t.pixels.numBlocksX*t.pixels.numBlocksY,r={},n=0;n<e;n++){var i=t.pixels.blocks[n];0===i.encoding?r.float32=!0:1===i.encoding?r[i.bitsPerPixel]=!0:r[0]=!0}return Object.keys(r)},s=function(t,e,r){var n={},i=new Uint8Array(t,e,10);if(n.fileIdentifierString=String.fromCharCode.apply(null,i),"CntZImage"!==n.fileIdentifierString.trim())throw"Unexpected file identifier string: "+n.fileIdentifierString;e+=10;var o=new DataView(t,e,24);if(n.fileVersion=o.getInt32(0,!0),n.imageType=o.getInt32(4,!0),n.height=o.getUint32(8,!0),n.width=o.getUint32(12,!0),n.maxZError=o.getFloat64(16,!0),e+=24,!r)if(o=new DataView(t,e,16),n.mask={},n.mask.numBlocksY=o.getUint32(0,!0),n.mask.numBlocksX=o.getUint32(4,!0),n.mask.numBytes=o.getUint32(8,!0),n.mask.maxValue=o.getFloat32(12,!0),e
2+=16,n.mask.numBytes>0){var a=new Uint8Array(Math.ceil(n.width*n.height/8)),s=(o=new DataView(t,e,n.mask.numBytes)).getInt16(0,!0),l=2,u=0;do{if(s>0)for(;s--;)a[u++]=o.getUint8(l++);else{var h=o.getUint8(l++);for(s=-s;s--;)a[u++]=h}s=o.getInt16(l,!0),l+=2}while(l<n.mask.numBytes);if(-32768!==s||u<a.length)throw"Unexpected end of mask RLE encoding";n.mask.bitset=a,e+=n.mask.numBytes}else n.mask.numBytes|n.mask.numBlocksY|n.mask.maxValue||(n.mask.bitset=new Uint8Array(Math.ceil(n.width*n.height/8)));o=new DataView(t,e,16),n.pixels={},n.pixels.numBlocksY=o.getUint32(0,!0),n.pixels.numBlocksX=o.getUint32(4,!0),n.pixels.numBytes=o.getUint32(8,!0),n.pixels.maxValue=o.getFloat32(12,!0),e+=16;var c=n.pixels.numBlocksX,f=n.pixels.numBlocksY,p=c+(n.width%c>0?1:0),d=f+(n.height%f>0?1:0);n.pixels.blocks=new Array(p*d);for(var g=0,_=0;_<d;_++)for(var y=0;y<p;y++){var m=0,v=t.byteLength-e;o=new DataView(t,e,Math.min(10,v));var w={};n.pixels.blocks[g++]=w;var x=o.getUint8(0);if(m++,w.encoding=63&x,w.encoding>3)throw"Invalid block encoding ("+w.encoding+")";if(2!==w.encoding){if(0!==x&&2!==x){if(x>>=6,w.offsetType=x,2===x)w.offset=o.getInt8(1),m++;else if(1===x)w.offset=o.getInt16(1,!0),m+=2;else{if(0!==x)throw"Invalid block offset type";w.offset=o.getFloat32(1,!0),m+=4}if(1===w.encoding)if(x=o.getUint8(m),m++,w.bitsPerPixel=63&x,x>>=6,w.numValidPixelsType=x,2===x)w.numValidPixels=o.getUint8(m),m++;else if(1===x)w.numValidPixels=o.getUint16(m,!0),m+=2;else{if(0!==x)throw"Invalid valid pixel count type";w.numValidPixels=o.getUint32(m,!0),m+=4}}var b;if(e+=m,3!==w.encoding)if(0===w.encoding){var E=(n.pixels.numBytes-1)/4;if(E!==Math.floor(E))throw"uncompressed block has invalid length";b=new ArrayBuffer(4*E),new Uint8Array(b).set(new Uint8Array(t,e,4*E));var A=new Float32Array(b);w.rawData=A,e+=4*E}else if(1===w.encoding){var S=Math.ceil(w.numValidPixels*w.bitsPerPixel/8),C=Math.ceil(S/4);b=new ArrayBuffer(4*C),new Uint8Array(b).set(new Uint8Array(t,e,S)),w.stuffedData=new Uint32Array(b),e+=S}}else e++}return n.eofOffset=e,n},l=function(t,e,r,n,i,o,a){var s,l,u,h=(1<<e)-1,c=0,f=0,p=Math.ceil((a-n)/i),d=4*t.length-Math.ceil(e*r/8);for(t[t.length-1]<<=8*d,s=0;s<r;s++){if(0===f&&(u=t[c++],f=32),f>=e)l=u>>>f-e&h,f-=e;else{var g=e-f;l=(u&h)<<g&h,l+=(u=t[c++])>>>(f=32-g)}o[s]=l<p?n+l*i:a}return o},c=n,f=function(){"use strict";var t=function(t,e,r,n,i,o,a,s){var l,u,h,c,f,p=(1<<r)-1,d=0,g=0,_=4*t.length-Math.ceil(r*n/8);if(t[t.length-1]<<=8*_,i)for(l=0;l<n;l++)0===g&&(h=t[d++],g=32),g>=r?(u=h>>>g-r&p,g-=r):(u=(h&p)<<(c=r-g)&p,u+=(h=t[d++])>>>(g=32-c)),e[l]=i[u];else for(f=Math.ceil((s-o)/a),l=0;l<n;l++)0===g&&(h=t[d++],g=32),g>=r?(u=h>>>g-r&p,g-=r):(u=(h&p)<<(c=r-g)&p,u+=(h=t[d++])>>>(g=32-c)),e[l]=u<f?o+u*a:s},e=function(t,e,r,n,i,o){var a,s=(1<<e)-1,l=0,u=0,h=0,c=0,f=0,p=[],d=4*t.length-Math.ceil(e*r/8);t[t.length-1]<<=8*d;var g=Math.ceil((o-n)/i);for(u=0;u<r;u++)0===c&&(a=t[l++],c=32),c>=e?(f=a>>>c-e&s,c-=e):(f=(a&s)<<(h=e-c)&s,f+=(a=t[l++])>>>(c=32-h)),p[u]=f<g?n+f*i:o;return p.unshift(n),p},r=function(t,e,r,n,i,o,a,s){var l,u,h,c,f=(1<<r)-1,p=0,d=0,g=0;if(i)for(l=0;l<n;l++)0===d&&(h=t[p++],d=32,g=0),d>=r?(u=h>>>g&f,d-=r,g+=r):(u=h>>>g&f,d=32-(c=r-d),u|=((h=t[p++])&(1<<c)-1)<<r-c,g=c),e[l]=i[u];else{var _=Math.ceil((s-o)/a);for(l=0;l<n;l++)0===d&&(h=t[p++],d=32,g=0),d>=r?(u=h>>>g&f,d-=r,g+=r):(u=h>>>g&f,d=32-(c=r-d),u|=((h=t[p++])&(1<<c)-1)<<r-c,g=c),e[l]=u<_?o+u*a:s}return e},n=function(t,e,r,n,i,o){var a,s=(1<<e)-1,l=0,u=0,h=0,c=0,f=0,p=0,d=[],g=Math.ceil((o-n)/i);for(u=0;u<r;u++)0===c&&(a=t[l++],c=32,p=0),c>=e?(f=a>>>p&s,c-=e,p+=e):(f=a>>>p&s,c=32-(h=e-c),f|=((a=t[l++])&(1<<h)-1)<<e-h,p=h),d[u]=f<g?n+f*i:o;return d.unshift(n),d},i=function(t,e,r,n){var i,o,a,s,l=(1<<r)-1,u=0,h=0,c=4*t.length-Math.ceil(r*n/8);for(t[t.length-1]<<=8*c,i=0;i<n;i++)0===h&&(a=t[u++],h=32),h>=r?(o=a>>>h-r&l,h-=r):(o=(a&l)<<(s=r-h)&l,o+=(a=t[u++])>>>(h=32-s)),e[i]=o;return e},o=function(t,e,r,n){var i,o,a,s,l=(1<<r)-1,u=0,h=0,c=0;for(i=0;i<n;i++)0===h&&(a=t[u++],h=32,c=0),h>=r?(o=a>>>c&l,h-=r,c+=r):(o=a>>>c&l,h=32-(s=r-h),o|=((a=t[u++])&(1<<s)-1)<<r-s,c=s),e[i]=o;return e},a={HUFFMAN_LUT_BITS_MAX:12,computeChecksumFletcher32:function(t){for(var e=65535,r=65535,n=t.length,i=Math.floor(n/2),o=0;i;){var a=i>=359?359:i;i-=a;do{e+=t[o++]<<8,r+=e+=t[o++]}while(--a);e=(65535&e)+(e>>>16),r=(65535&r)+(r>>>16)}return 1&n&&(r+=e+=t[o]<<8),((r=(65535&r)+(r>>>16))<<16|(e=(65535&e)+(e>>>16)))>>>0},readHeaderInfo:function(t,e){var r=e.ptr,n=new Uint8Array(t,r,6),i={};if(i.fileIdentifierString=String.fromCharCode.apply(null,n),0!==i.fileIdentifierString.lastIndexOf("Lerc2",0))throw"Unexpected file identifier string (expect Lerc2 ): "+i.fileIdentifierString;r+=6;var o,a=new DataView(t,r,8),s=a.getInt32(0,!0);if(i.fileVersion=s,r+=4,s>=3&&(i.checksum=a.getUint32(4,!0),r+=4),a=new DataView(t,r,12),i.height=a.getUint32(0,!0),i.width=a.getUint32(4,!0),r+=8,s>=4?(i.numDims=a.getUint32(8,!0),r+=4):i.numDims=1,a=new DataView(t,r,40),i.num
2ValidPixel=a.getUint32(0,!0),i.microBlockSize=a.getInt32(4,!0),i.blobSize=a.getInt32(8,!0),i.imageType=a.getInt32(12,!0),i.maxZError=a.getFloat64(16,!0),i.zMin=a.getFloat64(24,!0),i.zMax=a.getFloat64(32,!0),r+=40,e.headerInfo=i,e.ptr=r,s>=3&&(o=s>=4?52:48,this.computeChecksumFletcher32(new Uint8Array(t,r-o,i.blobSize-14))!==i.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(t,e){var r=e.headerInfo,n=this.getDataTypeArray(r.imageType),i=r.numDims*this.getDataTypeSize(r.imageType),o=this.readSubArray(t,e.ptr,n,i),a=this.readSubArray(t,e.ptr+i,n,i);e.ptr+=2*i;var s,l=!0;for(s=0;s<r.numDims;s++)if(o[s]!==a[s]){l=!1;break}return r.minValues=o,r.maxValues=a,l},readSubArray:function(t,e,r,n){var i;if(r===Uint8Array)i=new Uint8Array(t,e,n);else{var o=new ArrayBuffer(n);new Uint8Array(o).set(new Uint8Array(t,e,n)),i=new r(o)}return i},readMask:function(t,e){var r,n,i=e.ptr,o=e.headerInfo,a=o.width*o.height,s=o.numValidPixel,l=new DataView(t,i,4),u={};if(u.numBytes=l.getUint32(0,!0),i+=4,(0===s||a===s)&&0!==u.numBytes)throw"invalid mask";if(0===s)r=new Uint8Array(Math.ceil(a/8)),u.bitset=r,n=new Uint8Array(a),e.pixels.resultMask=n,i+=u.numBytes;else if(u.numBytes>0){r=new Uint8Array(Math.ceil(a/8));var h=(l=new DataView(t,i,u.numBytes)).getInt16(0,!0),c=2,f=0,p=0;do{if(h>0)for(;h--;)r[f++]=l.getUint8(c++);else for(p=l.getUint8(c++),h=-h;h--;)r[f++]=p;h=l.getInt16(c,!0),c+=2}while(c<u.numBytes);if(-32768!==h||f<r.length)throw"Unexpected end of mask RLE encoding";n=new Uint8Array(a);var d=0,g=0;for(g=0;g<a;g++)7&g?(d=r[g>>3],d<<=7&g):d=r[g>>3],128&d&&(n[g]=1);e.pixels.resultMask=n,u.bitset=r,i+=u.numBytes}return e.ptr=i,e.mask=u,!0},readDataOneSweep:function(t,e,r,n){var i,o=e.ptr,s=e.headerInfo,l=s.numDims,u=s.width*s.height,h=s.imageType,c=s.numValidPixel*a.getDataTypeSize(h)*l,f=e.pixels.resultMask;if(r===Uint8Array)i=new Uint8Array(t,o,c);else{var p=new ArrayBuffer(c);new Uint8Array(p).set(new Uint8Array(t,o,c)),i=new r(p)}if(i.length===u*l)e.pixels.resultPixels=n?a.swapDimensionOrder(i,u,l,r,!0):i;else{e.pixels.resultPixels=new r(u*l);var d=0,g=0,_=0,y=0;if(l>1){if(n){for(g=0;g<u;g++)if(f[g])for(y=g,_=0;_<l;_++,y+=u)e.pixels.resultPixels[y]=i[d++]}else for(g=0;g<u;g++)if(f[g])for(y=g*l,_=0;_<l;_++)e.pixels.resultPixels[y+_]=i[d++]}else for(g=0;g<u;g++)f[g]&&(e.pixels.resultPixels[g]=i[d++])}return o+=c,e.ptr=o,!0},readHuffmanTree:function(t,e){var r=this.HUFFMAN_LUT_BITS_MAX,n=new DataView(t,e.ptr,16);if(e.ptr+=16,n.getInt32(0,!0)<2)throw"unsupported Huffman version";var i=n.getInt32(4,!0),o=n.getInt32(8,!0),l=n.getInt32(12,!0);if(o>=l)return!1;var u=new Uint32Array(l-o);a.decodeBits(t,e,u);var h,c,f,p,d=[];for(h=o;h<l;h++)d[c=h-(h<i?0:i)]={first:u[h-o],second:null};var g=t.byteLength-e.ptr,_=Math.ceil(g/4),y=new ArrayBuffer(4*_);new Uint8Array(y).set(new Uint8Array(t,e.ptr,g));var m,v=new Uint32Array(y),w=0,x=0;for(m=v[0],h=o;h<l;h++)(p=d[c=h-(h<i?0:i)].first)>0&&(d[c].second=m<<w>>>32-p,32-w>=p?32===(w+=p)&&(w=0,m=v[++x]):(w+=p-32,m=v[++x],d[c].second|=m>>>32-w));var b=0,E=0,A=new s;for(h=0;h<d.length;h++)void 0!==d[h]&&(b=Math.max(b,d[h].first));E=b>=r?r:b;var S,C,T,P,I,O=[];for(h=o;h<l;h++)if((p=d[c=h-(h<i?0:i)].first)>0)if(S=[p,c],p<=E)for(C=d[c].second<<E-p,T=1<<E-p,f=0;f<T;f++)O[C|f]=S;else for(C=d[c].second,I=A,P=p-1;P>=0;P--)C>>>P&1?(I.right||(I.right=new s),I=I.right):(I.left||(I.left=new s),I=I.left),0!==P||I.val||(I.val=S[1]);return{decodeLut:O,numBitsLUTQick:E,numBitsLUT:b,tree:A,stuffedData:v,srcPtr:x,bitPos:w}},readHuffman:function(t,e,r,n){var i,o,s,l,u,h,c,f,p,d=e.headerInfo.numDims,g=e.headerInfo.height,_=e.headerInfo.width,y=_*g,m=this.readHuffmanTree(t,e),v=m.decodeLut,w=m.tree,x=m.stuffedData,b=m.srcPtr,E=m.bitPos,A=m.numBitsLUTQick,S=m.numBitsLUT,C=0===e.headerInfo.imageType?128:0,T=e.pixels.resultMask,P=0;E>0&&(b++,E=0);var I,O=x[b],R=1===e.encodeMode,L=new r(y*d),k=L;if(d<2||R){for(I=0;I<d;I++)if(d>1&&(k=new r(L.buffer,y*I,y),P=0),e.headerInfo.numValidPixel===_*g)for(f=0,h=0;h<g;h++)for(c=0;c<_;c++,f++){if(o=0,u=l=O<<E>>>32-A,32-E<A&&(u=l|=x[b+1]>>>64-E-A),v[u])o=v[u][1],E+=v[u][0];else for(u=l=O<<E>>>32-S,32-E<S&&(u=l|=x[b+1]>>>64-E-S),i=w,p=0;p<S;p++)if(!(i=l>>>S-p-1&1?i.right:i.left).left&&!i.right){o=i.val,E=E+p+1;break}E>=32&&(E-=32,O=x[++b]),s=o-C,R?(s+=c>0?P:h>0?k[f-_]:P,s&=255,k[f]=s,P=s):k[f]=s}else for(f=0,h=0;h<g;h++)for(c=0;c<_;c++,f++)if(T[f]){if(o=0,u=l=O<<E>>>32-A,32-E<A&&(u=l|=x[b+1]>>>64-E-A),v[u])o=v[u][1],E+=v[u][0];else for(u=l=O<<E>>>32-S,32-E<S&&(u=l|=x[b+1]>>>64-E-S),i=w,p=0;p<S;p++)if(!(i=l>>>S-p-1&1?i.right:i.left).left&&!i.right){o=i.val,E=E+p+1;break}E>=32&&(E-=32,O=x[++b]),s=o-C,R?(c>0&&T[f-1]?s+=P:h>0&&T[f-_]?s+=k[f-_]:s+=P,s&=255,k[f]=s,P=s):k[f]=s}}else for(f=0,h=0;h<g;h++)for(c=0;c<_;c++)if(f=h*_+c,!T||T[f])for(I=0;I<d;I++,f+=y){if(o=0,u=l=O<<E>>>32-A,32-E<A&&(u=l|=x[b+1]>>>64-E-A),v[u])o=v[u][1],E+=v[u][0];else for(u=l=O<<E>>>32-S,32-E<S&&(u=l|=x[b+1]>>>64-E-S),i=w,p=0;p<S;p++)if(!(i=l>>>S-p-1&1?i.right:i.left).left&&!i.right){o=i.val,E=E+p+1;break}E>=32&&(E-=32,O=x[++b]),s=o-C,k[f]=s}e.ptr=e.ptr+4*(b+1)+(E>0?4:0),e.pixels.resultPixels=L,d>1&&!n&&(e.pixels.resultPixels=a.swapDimensionOrder(L,y,d,r))},decodeBits:function(a,s,l,u,h){var c=s.headerInfo,f=c.fileVersion,p=0,d=a.byteLength-s.ptr>=5?5:a.byteLength-s.ptr,g=new DataView(a,s.ptr,d),_=g.getUint8(0);p++;var y=_>>6,m=0===y?4:3-y,v=(32&_)>0,w=31&_,x=0;if(1===m)x=g.getUint8(p),p++;else if(2===m)x=g.getUint16(p,!0),p+=2;else{if(4!==m)throw"Invalid valid pixel count type";x=g.getUint32(p,!0),p+=4}var b,E,A,S,C,T,P,I,O,R=2*c.maxZError,L=c.numDims>1?c.maxValues[h]:c.zMax;if(v){for(s.counter.lut++,I=g.getUint8(p),p++,S=Math.ceil((I-1)*w/8),C=Math.ceil(S/4),E=new ArrayBuffer(4*C),A=new Uint8Array(E),s.ptr+=p,A.set(new Uint8Array(a,s.ptr,S)),P=new Uint32Array(E),s.ptr+=S,O=0;I-1>>>O;)O++;S=Math.ceil(x*O/8),C=Math.ceil(S/4),E=new ArrayBuffer(4*C),(A=new Uint8Array(E)).set(new Uint8Array(a,s.ptr,S)),b=new Uint32Array(E),s.ptr+=S,T=f>=3?n(P,w,I-1,u,R,L):e(P,w,I-1,u,R,L),f>=3?r(b,l,O,x,T):t(b,l,O,x,T)}else s.counter.bitstuffer++,O=w,s.ptr+=p,O>0&&(S=Math.ceil(x*O/8),C=Math.ceil(S/4),E=new ArrayBuffer(4*C),(A=new Uint8Array(E)).set(new Uint8Array(a,s.ptr,S)),b=new Uint32Array(E),s.ptr+=S,f>=3?null==u?o(b,l,O,x):r(b,l,O,x,!1,u,R,L):null==u?i(b,l,O,x):t(b,l,O,x,!1,u,R,L))},readTiles:function(t,e,r,n){var i=e.headerInfo,o=i.width,s=i.height,l=o*s,u=i.microBlockSize,h=i.imageType,c=a.getDataTypeSize(h),f=Math.ceil(o/u),p=Math.ceil(s/u);
2e.pixels.numBlocksY=p,e.pixels.numBlocksX=f,e.pixels.ptr=0;var d,g,_,y,m,v,w,x,b,E,A=0,S=0,C=0,T=0,P=0,I=0,O=0,R=0,L=0,k=0,M=0,F=0,D=0,j=0,U=0,G=new r(u*u),N=s%u||u,B=o%u||u,z=i.numDims,V=e.pixels.resultMask,X=e.pixels.resultPixels,K=i.fileVersion>=5?14:15,W=i.zMax;for(C=0;C<p;C++)for(P=C!==p-1?u:N,T=0;T<f;T++)for(k=C*o*u+T*u,M=o-(I=T!==f-1?u:B),x=0;x<z;x++){if(z>1?(E=X,k=C*o*u+T*u,X=new r(e.pixels.resultPixels.buffer,l*x*c,l),W=i.maxValues[x]):E=null,O=t.byteLength-e.ptr,g={},U=0,R=(d=new DataView(t,e.ptr,Math.min(10,O))).getUint8(0),U++,b=i.fileVersion>=5?4&R:0,L=R>>6&255,(R>>2&K)!=(T*u>>3&K))throw"integrity issue";if(b&&0===x)throw"integrity issue";if((m=3&R)>3)throw e.ptr+=U,"Invalid block encoding ("+m+")";if(2!==m)if(0===m){if(b)throw"integrity issue";if(e.counter.uncompressed++,e.ptr+=U,F=(F=P*I*c)<(D=t.byteLength-e.ptr)?F:D,_=new ArrayBuffer(F%c==0?F:F+c-F%c),new Uint8Array(_).set(new Uint8Array(t,e.ptr,F)),y=new r(_),j=0,V)for(A=0;A<P;A++){for(S=0;S<I;S++)V[k]&&(X[k]=y[j++]),k++;k+=M}else for(A=0;A<P;A++){for(S=0;S<I;S++)X[k++]=y[j++];k+=M}e.ptr+=j*c}else if(v=a.getDataTypeUsed(b&&h<6?4:h,L),w=a.getOnePixel(g,U,v,d),U+=a.getDataTypeSize(v),3===m)if(e.ptr+=U,e.counter.constantoffset++,V)for(A=0;A<P;A++){for(S=0;S<I;S++)V[k]&&(X[k]=b?Math.min(W,E[k]+w):w),k++;k+=M}else for(A=0;A<P;A++){for(S=0;S<I;S++)X[k]=b?Math.min(W,E[k]+w):w,k++;k+=M}else if(e.ptr+=U,a.decodeBits(t,e,G,w,x),U=0,b)if(V)for(A=0;A<P;A++){for(S=0;S<I;S++)V[k]&&(X[k]=G[U++]+E[k]),k++;k+=M}else for(A=0;A<P;A++){for(S=0;S<I;S++)X[k]=G[U++]+E[k],k++;k+=M}else if(V)for(A=0;A<P;A++){for(S=0;S<I;S++)V[k]&&(X[k]=G[U++]),k++;k+=M}else for(A=0;A<P;A++){for(S=0;S<I;S++)X[k++]=G[U++];k+=M}else{if(b)if(V)for(A=0;A<P;A++)for(S=0;S<I;S++)V[k]&&(X[k]=E[k]),k++;else for(A=0;A<P;A++)for(S=0;S<I;S++)X[k]=E[k],k++;e.counter.constant++,e.ptr+=U}}z>1&&!n&&(e.pixels.resultPixels=a.swapDimensionOrder(e.pixels.resultPixels,l,z,r))},formatFileInfo:function(t){return{fileIdentifierString:t.headerInfo.fileIdentifierString,fileVersion:t.headerInfo.fileVersion,imageType:t.headerInfo.imageType,height:t.headerInfo.height,width:t.headerInfo.width,numValidPixel:t.headerInfo.numValidPixel,microBlockSize:t.headerInfo.microBlockSize,blobSize:t.headerInfo.blobSize,maxZError:t.headerInfo.maxZError,pixelType:a.getPixelType(t.headerInfo.imageType),eofOffset:t.eofOffset,mask:t.mask?{numBytes:t.mask.numBytes}:null,pixels:{numBlocksX:t.pixels.numBlocksX,numBlocksY:t.pixels.numBlocksY,maxValue:t.headerInfo.zMax,minValue:t.headerInfo.zMin,noDataValue:t.noDataValue}}},constructConstantSurface:function(t,e){var r=t.headerInfo.zMax,n=t.headerInfo.zMin,i=t.headerInfo.maxValues,o=t.headerInfo.numDims,a=t.headerInfo.height*t.headerInfo.width,s=0,l=0,u=0,h=t.pixels.resultMask,c=t.pixels.resultPixels;if(h)if(o>1){if(e)for(s=0;s<o;s++)for(u=s*a,r=i[s],l=0;l<a;l++)h[l]&&(c[u+l]=r);else for(l=0;l<a;l++)if(h[l])for(u=l*o,s=0;s<o;s++)c[u+o]=i[s]}else for(l=0;l<a;l++)h[l]&&(c[l]=r);else if(o>1&&n!==r)if(e)for(s=0;s<o;s++)for(u=s*a,r=i[s],l=0;l<a;l++)c[u+l]=r;else for(l=0;l<a;l++)for(u=l*o,s=0;s<o;s++)c[u+s]=i[s];else for(l=0;l<a*o;l++)c[l]=r},getDataTypeArray:function(t){var e;switch(t){case 0:e=Int8Array;break;case 1:e=Uint8Array;break;case 2:e=Int16Array;break;case 3:e=Uint16Array;break;case 4:e=Int32Array;break;case 5:e=Uint32Array;break;case 6:default:e=Float32Array;break;case 7:e=Float64Array}return e},getPixelType:function(t){var e;switch(t){case 0:e="S8";break;case 1:e="U8";break;case 2:e="S16";break;case 3:e="U16";break;case 4:e="S32";break;case 5:e="U32";break;case 6:default:e="F32";break;case 7:e="F64"}return e},isValidPixelValue:function(t,e){if(null==e)return!1;var r;switch(t){case 0:r=e>=-128&&e<=127;break;case 1:r=e>=0&&e<=255;break;case 2:r=e>=-32768&&e<=32767;break;case 3:r=e>=0&&e<=65536;break;case 4:r=e>=-2147483648&&e<=2147483647;break;case 5:r=e>=0&&e<=4294967296;break;case 6:r=e>=-34027999387901484e22&&e<=34027999387901484e22;break;case 7:r=e>=-17976931348623157e292&&e<=17976931348623157e292;break;default:r=!1}return r},getDataTypeSize:function(t){var e=0;switch(t){case 0:case 1:e=1;break;case 2:case 3:e=2;break;
2case 4:case 5:case 6:e=4;break;case 7:e=8;break;default:e=t}return e},getDataTypeUsed:function(t,e){var r=t;switch(t){case 2:case 4:r=t-e;break;case 3:case 5:r=t-2*e;break;case 6:r=0===e?t:1===e?2:1;break;case 7:r=0===e?t:t-2*e+1;break;default:r=t}return r},getOnePixel:function(t,e,r,n){var i=0;switch(r){case 0:i=n.getInt8(e);break;case 1:i=n.getUint8(e);break;case 2:i=n.getInt16(e,!0);break;case 3:i=n.getUint16(e,!0);break;case 4:i=n.getInt32(e,!0);break;case 5:i=n.getUInt32(e,!0);break;case 6:i=n.getFloat32(e,!0);break;case 7:i=n.getFloat64(e,!0);break;default:throw"the decoder does not understand this pixel type"}return i},swapDimensionOrder:function(t,e,r,n,i){var o=0,a=0,s=0,l=0,u=t;if(r>1)if(u=new n(e*r),i)for(o=0;o<e;o++)for(l=o,s=0;s<r;s++,l+=e)u[l]=t[a++];else for(o=0;o<e;o++)for(l=o,s=0;s<r;s++,l+=e)u[a++]=t[l];return u}},s=function(t,e,r){this.val=t,this.left=e,this.right=r};return{decode:function(t,e){var r=(e=e||{}).noDataValue,n=0,i={};if(i.ptr=e.inputOffset||0,i.pixels={},a.readHeaderInfo(t,i)){var o=i.headerInfo,s=o.fileVersion,l=a.getDataTypeArray(o.imageType);if(s>5)throw"unsupported lerc version 2."+s;a.readMask(t,i),o.numValidPixel===o.width*o.height||i.pixels.resultMask||(i.pixels.resultMask=e.maskData);var u=o.width*o.height;i.pixels.resultPixels=new l(u*o.numDims),i.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var h,c=!e.returnPixelInterleavedDims;if(0!==o.numValidPixel)if(o.zMax===o.zMin)a.constructConstantSurface(i,c);else if(s>=4&&a.checkMinMaxRanges(t,i))a.constructConstantSurface(i,c);else{var f=new DataView(t,i.ptr,2),p=f.getUint8(0);if(i.ptr++,p)a.readDataOneSweep(t,i,l,c);else if(s>1&&o.imageType<=1&&Math.abs(o.maxZError-.5)<1e-5){var d=f.getUint8(1);if(i.ptr++,i.encodeMode=d,d>2||s<4&&d>1)throw"Invalid Huffman flag "+d;d?a.readHuffman(t,i,l,c):a.readTiles(t,i,l,c)}else a.readTiles(t,i,l,c)}i.eofOffset=i.ptr,e.inputOffset?(h=i.headerInfo.blobSize+e.inputOffset-i.ptr,Math.abs(h)>=1&&(i.eofOffset=e.inputOffset+i.headerInfo.blobSize)):(h=i.headerInfo.blobSize-i.ptr,Math.abs(h)>=1&&(i.eofOffset=i.headerInfo.blobSize));var g={width:o.width,height:o.height,pixelData:i.pixels.resultPixels,minValue:o.zMin,maxValue:o.zMax,validPixelCount:o.numValidPixel,dimCount:o.numDims,dimStats:{minValues:o.minValues,maxValues:o.maxValues},maskData:i.pixels.resultMask};if(i.pixels.resultMask&&a.isValidPixelValue(o.imageType,r)){var _=i.pixels.resultMask;for(n=0;n<u;n++)_[n]||(g.pixelData[n]=r);g.noDataValue=r}return i.noDataValue=r,e.returnFileInfo&&(g.fileInfo=a.formatFileInfo(i)),g}},getBandCount:function(t){for(var e=0,r=0,n={ptr:0,pixels:{}};r<t.byteLength-58;)a.readHeaderInfo(t,n),r+=n.headerInfo.blobSize,e++,n.ptr=r;return e}}}(),u=new ArrayBuffer(4),h=new Uint8Array(u),new Uint32Array(u)[0]=1,p=1===h[0],d={decode:function(t,e){if(!p)throw"Big endian system is not supported.";var r,n,i=(e=e||{}).inputOffset||0,o=new Uint8Array(t,i,10),a=String.fromCharCode.apply(null,o);if("CntZImage"===a.trim())r=c,n=1;else{if("Lerc2"!==a.substring(0,5))throw"Unexpected file identifier string: "+a;r=f,n=2}for(var s,l,u,h,d,g,_=0,y=t.byteLength-10,m=[],v={width:0,height:0,pixels:[],pixelType:e.pixelType,mask:null,statistics:[]},w=0;i<y;){var x=r.decode(t,{inputOffset:i,encodedMaskData:s,maskData:u,returnMask:0===_,returnEncodedMask:0===_,returnFileInfo:!0,returnPixelInterleavedDims:e.returnPixelInterleavedDims,pixelType:e.pixelType||null,noDataValue:e.noDataValue||null});i=x.fileInfo.eofOffset,u=x.maskData,0===_&&(s=x.encodedMaskData,v.width=x.width,v.height=x.height,v.dimCount=x.dimCount||1,v.pixelType=x.pixelType||x.fileInfo.pixelType,v.mask=u),n>1&&(u&&m.push(u),x.fileInfo.mask&&x.fileInfo.mask.numBytes>0&&w++),_++,v.pixels.push(x.pixelData),v.statistics.push({minValue:x.minValue,maxValue:x.maxValue,noDataValue:x.noDataValue,dimStats:x.dimStats})}if(n>1&&w>1){for(g=v.width*v.height,v.bandMasks=m,(u=new Uint8Array(g)).set(m[0]),h=1;h<m.length;h++)for(l=m[h],d=0;d<g;d++)u[d]=u[d]&l[d];v.maskData=u}return v}},void 0===(r=function(){return d}.apply(e,[]))||(t.exports=r)},8508:()=>{},9868:function(t,e,r){
3/*!
4  * ol-contextmenu - v4.1.0
5  * https://github.com/jonataswalker/ol-contextmenu
6  * Built: Sat Aug 15 2020 10:43:26 GMT-0300 (Brasilia Standard Time)
7  */
8t.exports=function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=e(t),n="ol-ctx-menu",i={namespace:n,container:n+"-container",separator:n+"-separator",submenu:n+"-submenu",hidden:n+"-hidden",icon:n+"-icon",zoomIn:n+"-zoom-in",zoomOut:n+"-zoom-out",unselectable:"ol-unselectable"},o=i,a="beforeopen",s="open",l="close",u="contextmenu",h={width:150,scrollAt:4,eventType:u,defaultItems:!0},c=[{text:"Zoom In",classname:i.zoomIn+" "+i.icon,callback:function(t,e){var r=e.getView();r.animate({zoom:+r.getZoom()+1,duration:700,center:t.coordinate})}},{text:"Zoom Out",classname:i.zoomOut+" "+i.icon,callback:function(t,e){var r=e.getView();r.animate({zoom:+r.getZoom()-1,duration:700,center:t.coordinate})}}];function f(t,e){if(void 0===e&&(e="Assertion failed"),!t){if("undefined"!=typeof Error)throw new Error(e);throw e}}function p(t){return/^\d+$/.test(t)}function d(t,e){return t.classList?t.classList.contains(e):m(e).test(t.className)}function g(t,e,r){void 0===e&&(e=window.document);var n=Array.prototype.slice,i=[];if(/^(#?[\w-]+|\.[\w-.]+)$/.test(t))switch(t[0]){case"#":i=[_(t.substr(1))];break;case".":i=n.call(e.getElementsByClassName(t.substr(1).replace(/\./g," ")));break;default:i=n.call(e.getElementsByTagName(t))}else i=n.call(e.querySelectorAll(t));return r?i:i[0]}function _(t){return t="#"===t[0]?t.substr(1,t.length):t,document.getElementById(t)}function y(t){var e=document.createDocumentFragment(),r=document.createElement("div");for(r.innerHTML=t;r.firstChild;)e.appendChild(r.firstChild);return e}
8function m(t){return new RegExp("(^|\\s+) "+t+" (\\s+|$)")}function v(t,e,r){t.classList?t.classList.add(e):t.className=(t.className+" "+e).trim(),r&&p(r)&&window.setTimeout((function(){return w(t,e)}),r)}function w(t,e,r){t.classList?t.classList.remove(e):t.className=t.className.replace(m(e)," ").trim(),r&&p(r)&&window.setTimeout((function(){return v(t,e)}),r)}var x=function(t){return this.Base=t,this.map=void 0,this.viewport=void 0,this.coordinateClicked=void 0,this.pixelClicked=void 0,this.lineHeight=0,this.items={},this.opened=!1,this.submenu={left:t.options.width-15+"px",lastLeft:""},this.eventHandler=this.handleEvent.bind(this),this.eventMapMoveHandler=this.handleMapMoveEvent.bind(this),this};x.prototype.init=function(t){this.map=t,this.viewport=t.getViewport(),this.setListeners(),this.Base.Html.createMenu(),this.lineHeight=this.getItemsLength()>0?this.Base.container.offsetHeight/this.getItemsLength():this.Base.Html.cloneAndGetLineHeight()},x.prototype.getItemsLength=function(){var t=this,e=0;return Object.keys(this.items).forEach((function(r){t.items[r].submenu||t.items[r].separator||e++})),e},x.prototype.getPixelClicked=function(){return this.pixelClicked},x.prototype.getCoordinateClicked=function(){return this.coordinateClicked},x.prototype.positionContainer=function(t){var e=this,r=this.Base.container,n=this.map.getSize(),i=n[1]-t[1],a=n[0]-t[0],s=r.offsetWidth,l=Math.round(this.lineHeight*this.getItemsLength()),u=g("li."+o.submenu+">div",r,!0);a>=s?(r.style.right="auto",r.style.left=t[0]+5+"px"):(r.style.left="auto",r.style.right="15px"),i>=l?(r.style.bottom="auto",r.style.top=t[1]-10+"px"):(r.style.top="auto",r.style.bottom=0),function t(e,r,n){if(Array.isArray(e))e.forEach((function(e){return t(e,r,n)}));else for(var i=Array.isArray(r)?r:r.split(/\s+/),o=i.length;o--;)d(e,i[o])&&w(e,i[o],n)}(r,o.hidden),u.length&&(this.submenu.lastLeft=a<2*s?"-"+s+"px":this.submenu.left,u.forEach((function(t){var r,n,o,a={w:window.innerWidth||document.documentElement.clientWidth,h:window.innerHeight||document.documentElement.clientHeight},s=(n=(r=t).getBoundingClientRect(),o=document.documentElement,{left:n.left+window.pageXOffset-o.clientLeft,top:n.top+window.pageYOffset-o.clientTop,width:r.offsetWidth,height:r.offsetHeight}),l=s.height,u=i-l;u<0&&(u=l-(a.h-s.top),t.style.top="-"+u+"px"),t.style.left=e.submenu.lastLeft})))},x.prototype.openMenu=function(t,e){this.Base.dispatchEvent({type:s,pixel:t,coordinate:e}),this.opened=!0,this.positionContainer(t)},x.prototype.closeMenu=function(){this.opened=!1,function t(e,r,n){if(Array.isArray(e))e.forEach((function(e){return t(e,r)}));else for(var i=Array.isArray(r)?r:r.split(/\s+/),o=i.length;o--;)d(e,i[o])||v(e,i[o],n)}(this.Base.container,o.hidden),this.Base.dispatchEvent({type:l})},x.prototype.setListeners=function(){this.viewport.addEventListener(this.Base.options.eventType,this.eventHandler,!1),this.map.on("movestart",this.eventMapMoveHandler)},x.prototype.removeListeners=function(){this.viewport.removeEventListener(this.Base.options.eventType,this.eventHandler,!1),this.map.un("movestart",this.eventMapMoveHandler)},x.prototype.handleEvent=function(t){var e=this;this.coordinateClicked=this.map.getEventCoordinate(t),this.pixelClicked=this.map.getEventPixel(t),this.Base.dispatchEvent({type:a,pixel:this.pixelClicked,coordinate:this.coordinateClicked}),this.Base.disabled||(this.Base.options.eventType===u&&(t.stopPropagation(),t.preventDefault()),this.openMenu(this.pixelClicked,this.coordinateClicked),t.target.addEventListener("pointerdown",{handleEvent:function(r){e.opened&&(e.closeMenu(),r.stopPropagation(),t.target.removeEventListener(r.type,this,!1))}},!1))},x.prototype.handleMapMoveEvent=function(t){this.closeMenu()},x.prototype.setItemListener=function(t,e){var r,n=this;t&&"function"==typeof this.items[e].callback&&(r=this.items[e].callback,t.addEventListener("click",(function(t){t.preventDefault();var i={coordinate:n.getCoordinateClicked(),data:n.items[e].data||null};n.closeMenu(),r(i,n.map)}),!1))};var b=function(t){return this.Base=t,this.Base.container=this.container=this.createContainer(!0),this};return b.prototype.createContainer=function(t){var e=document.createElement("div"),r=document.createElement("ul"),n=[o.container,o.unselectable];return t&&n.push(o.hidden),e.className=n.join(" "),e.style.width=parseInt(this.Base.options.width,10)+"px",e.appendChild(r),e},b.prototype.createMenu=function(){var t=[];if("items"in this.Base.options?t=this.Base.options.defaultItems?this.Base.options.items.concat(c):this.Base.options.items:this.Base.options.defaultItems&&(t=c),0===t.length)return!1;t.forEach(this.addMenuEntry,this)},b.prototype.addMenuEntry=function(t){var e,r=this;if(t.items&&Array.isArray(t.items)){t.classname=t.classname||"",e=o.submenu,~t.classname.indexOf(e)||(t.classname=t.classname.length?" "+o.submenu:o.submenu);var n=this.generateHtmlAndPublish(this.container,t),i=this.createContainer();i.style.left=this.Base.Internal.submenu.lastLeft||this.Base.Internal.submenu.left,n.appendChild(i),t.items.forEac
8h((function(t){r.generateHtmlAndPublish(i,t,!0)}))}else this.generateHtmlAndPublish(this.container,t)},b.prototype.generateHtmlAndPublish=function(t,e,r){var n,i,a="_"+Math.random().toString(36).substr(2,9),s=!1;return"string"==typeof e&&"-"===e.trim()?(n=y('<li id="'+a+'" class="'+o.separator+'"><hr></li>'),i=[].slice.call(n.childNodes,0)[0],t.firstChild.appendChild(n),s=!0):(e.classname=e.classname||"",n=y("<span>"+e.text+"</span>"),i=document.createElement("li"),e.icon&&(""===e.classname?e.classname=o.icon:-1===e.classname.indexOf(o.icon)&&(e.classname+=" "+o.icon),i.setAttribute("style","background-image:url("+e.icon+")")),i.id=a,i.className=e.classname,i.appendChild(n),t.firstChild.appendChild(i)),this.Base.Internal.items[a]={id:a,submenu:r||0,separator:s,callback:e.callback,data:e.data||null},this.Base.Internal.setItemListener(i,a),i},b.prototype.removeMenuEntry=function(t){var e=g("#"+t,this.container.firstChild);e&&this.container.firstChild.removeChild(e),delete this.Base.Internal.items[t]},b.prototype.cloneAndGetLineHeight=function(){var t=this.container.cloneNode(),e=y("<span>Foo</span>"),r=y("<span>Foo</span>"),n=document.createElement("li"),i=document.createElement("li");n.appendChild(e),i.appendChild(r),t.appendChild(n),t.appendChild(i),this.container.parentNode.appendChild(t);var o=t.offsetHeight/2;return this.container.parentNode.removeChild(t),o},function(t){function e(e){void 0===e&&(e={}),f("object"==typeof e,"@param `opt_options` should be object type!"),this.options=function(t,e){var r={};for(var n in t)r[n]=t[n];for(var i in e)r[i]=e[i];return r}(h,e),this.disabled=!1,this.Internal=new x(this),this.Html=new b(this),t.call(this,{element:this.container})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clear=function(){Object.keys(this.Internal.items).forEach(this.Html.removeMenuEntry,this.Html)},e.prototype.close=function(){this.Internal.closeMenu()},e.prototype.enable=function(){this.disabled=!1},e.prototype.disable=function(){this.disabled=!0},e.prototype.getDefaultItems=function(){return c},e.prototype.countItems=function(){return Object.keys(this.Internal.items).length},e.prototype.extend=function(t){f(Array.isArray(t),"@param `arr` should be an Array."),t.forEach(this.push,this)},e.prototype.isOpen=function(){return this.Internal.opened},e.prototype.updatePosition=function(t){f(Array.isArray(t),"@param `pixel` should be an Array."),this.isOpen()&&this.Internal.positionContainer(t)},e.prototype.pop=function(){var t=Object.keys(this.Internal.items);this.Html.removeMenuEntry(t[t.length-1])},e.prototype.push=function(t){f(null!=t,"@param `item` must be informed."),this.Html.addMenuEntry(t)},e.prototype.shift=function(){this.Html.removeMenuEntry(Object.keys(this.Internal.items)[0])},e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),e?this.Internal.init(e,this):this.Internal.removeListeners()},e}(r.default)}(r(972))},9447:(t,e,r)=>{"use strict";r.d(e,{A:()=>y});var n=r(2498),i=r(972),o=r(4120);window.ol&&(ol.ext.input={});var a=function(t){t=t||{},o.A.call(this);var e,r=this.input=t.input;r||(r=this.input=document.createElement("INPUT"),t.type&&r.setAttribute("type",t.type),void 0!==t.min&&r.setAttribute("min",t.min),void 0!==t.max&&r.setAttribute("max",t.max),void 0!==t.step&&r.setAttribute("step",t.step),t.parent&&t.parent.appendChild(r)),t.disabled&&(r.disabled=!0),void 0!==t.checked&&(r.checked=!!t.checked),void 0!==t.val&&(r.value=t.val),t.hidden&&(r.style.display="none"),r.addEventListener("focus",function(){this.element&&this.element.classList.add("ol-focus")}.bind(this)),r.addEventListener("focusout",function(){this.element&&(e&&clearTimeout(e),e=setTimeout(function(){this.element.classList.remove("ol-focus")}.bind(this),0))}.bind(this))};(0,n.A)(a,o.A),a.prototype._listenDrag=function(t,e){var r=function(r){this.moving=!0,this.element.classList.add("ol-moving");var n=function(r){"pointerup"===r.type&&(document.removeEventListener("pointermove",n),document.removeEventListener("pointerup",n),document.removeEventListener("pointercancel",n),setTimeout(function(){this.moving=!1,this.element.classList.remove("ol-moving")}.bind(this))),r.target===t&&e(r),r.stopPropagation(),r.preventDefault()}.bind(this);document.addEventListener("pointermove",n,!1),document.addEventListener("pointerup",n,!1),document.addEventListener("pointercancel",n,!1),r.stopPropagation(),r.preventDefault()}.bind(this);t.addEventListener("mousedown",r,!1),t.addEventListener("touchstart",r,!1)},a.prototype.setValue=function(t){void 0!==t&&(this.input.value=t),this.input.dispatchEvent(new Event("change"))},a.prototype.getValue=function(){return this.input.value},a.prototype.getInputElement=function(){return this.input};const s=a;var l=function(t){t=t||{},s.call(this,t);var e=this.element=document.createElement("LABEL");t.html instanceof Element?e.appendChild(t.html):void 0!==t.html&&(e.innerHTML=t.html),e.className=("ol-ext-check ol-ext-checkbox "+(t.className||"")).trim(),this.input.parentNode&&this.input.parentNode.insertBefore(e,this.input),e.appendChild(this.input),e.appendChild(document.createElement("SPAN")),t.after&&e.appendChild(document.createTextNode(t.after)),this.input.addEventListener("change",function(){this.dispatchEvent({type:"check",checked:this.input.checked,value:this.input.value})}.bind(this))};(0,n.A)(l,s),l.prototype.isChecked=function(){return this.input.checked};const u=l;var h=function(t){t=t||{},u.call(this,t),this.element.className=("ol-ext-toggle-switch "+(t.className||"")).trim()};(0,n.A)(h,u);const c=h;var f=function(t){t=t||{},u.call(this,t),this.element.className=("ol-ext-check ol-ext-radio "+(t.className||"")).trim()};(0,n.A)(f,u);const p=f;var d={create:function(t,e){var r;if(e=e||{},"TEXT"===t)r=document.createTextNode(e.html||""),e.parent&&e.parent.appendChild(r);else for(var n in r=document.createElement(t),/button/i.test(t)&&r.setAttribute("type","button"),e)switch(n){case"className":e.className&&e.className.trim&&r.setAttribute("class",e.className.trim());break;case"text":r.innerText=e.text;break;case"html":e.html instanceof Element?r.appendChild(e.html):void 0!==e.html&&(r.innerHTML=e.html);break;case"parent":e.parent&&e.parent.appendChild(r);break;case"options":if(/select/i.test(t))for(var i in e.options)d.create("OPTION",{html:i,value:e.options[i],parent:r});break;case"style":d.setStyle(r,e.style);break;case"change":case"click":d.addListener(r,n,e[n]);break;case"on":for(var o in e.on)d.addListener(r,o,e.on[o]);break;case"checked":r.checked=!!e.checked;break;default:r.setAttribute(n,e[n])}return r},createSwitch:function(t){var e=d.create("INPUT",{type:"checkbox",on:t.on,click:t.click,change:t.change,parent:t.parent}),r=Object.assign({input:e},t||{});return new c(r),e},createCheck:function(t){var e=d.create("INPUT",{name:t.name,type:"radio"===t.type?"radio":"checkbox",on:t.on,parent:t.parent}),r=Object.assign({input:e},t||{});return"radio"===t.type?new p(r):new u(r),e},setHTML:function(t,e){e instanceof Element?t.appendChild(e):void 0!==e&&(t.innerHTML=e)},appendText:function(t,e){t.appendChild(document.createTextNode(e||""))},addListener:function(t,e,r,n){"string"==typeof e&&(e=e.split(" ")),e.forEach((function(e){t.addEventListener(e,r,n)}))},removeListener:function(t,e,r){"string"==typeof e&&(e=e.split(" ")),e.forEach((function(e){t.removeEventListener(e,r)}))},show:function(t){t.style.display=""},hide:function(t){t.style.display="none"},hidden:function(t){return"none"===d.getStyle(t,"display")},toggle:function(t){t.style.display="none"===t.style.display?"":"none"},setStyle:function(t,e){for(var r in e)switch(r){case"top":case"left":case"bottom":case"right":case"minWidth":case"maxWidth":case"width":case"height":"number"==typeof e[r]?t.style[r]=e[r]+"px":t.style[r]=e[r];break;default:t.style[r]=e[r]}},getStyle:function(t,e){var r,n=(t.ownerDocument||document).defaultView;if(n&&n.getComputedStyle)e=e.replace(/([A-Z])/g,"-$1").toLowerCase(),r=n.getComputedStyle(t,null).getPropertyValue(e);else if(t.currentStyle&&(e=e.replace(/-(\w)/g,(function(t,e){return e.toUpperCase()})),r=t.currentStyle[e],/^\d+(em|pt|%|ex)?$/i.test(r)))return function(e){var r=t.style.left,n=t.runtimeStyle.left;return t.runtimeStyle.left=t.currentStyle.left,t.style.left=e||0,e=t.style.pixelLeft+"px",t.style.left=r,t.runtimeStyle.left=n,e}(r);return/px$/.test(r)?parseInt(r):r},outerHeight:function(t){return t.offsetHeight+d.getStyle(t,"marginBottom")},outerWidth:function(t){return t.offsetWidth+d.getStyle(t,"marginLeft")},offsetRect:function(t){var e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left
8:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0),height:e.height||e.bottom-e.top,width:e.width||e.right-e.left}},getFixedOffset:function(t){var e={left:0,top:0},r=function(t){if(!t)return e;if("absolute"===d.getStyle(t,"position")&&"none"!==d.getStyle(t,"transform")){var n=t.getBoundingClientRect();return e.left+=n.left,e.top+=n.top,e}return r(t.offsetParent)};return r(t.offsetParent)},positionRect:function(t,e){var r=0,n=0,i=function(o){if(o)return r+=o.offsetLeft,n+=o.offsetTop,i(o.offsetParent);var a={top:t.offsetTop+n,left:t.offsetLeft+r};return e&&(a.top-=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,a.left-=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0),a.bottom=a.top+t.offsetHeight,a.right=a.top+t.offsetWidth,a};return i(t.offsetParent)},scrollDiv:function(t,e){var r,n,i,o,a,s=!1,l=0,u=0,h="function"==typeof(e=e||{}).onmove?e.onmove:function(){},c=e.vertical?"screenY":"screenX",f=e.vertical?"scrollTop":"scrollLeft",p=!1,g=0,_=function(){a&&(g++,setTimeout(y))},y=function(){if(a){if(--g)return;var e=t.clientHeight,r=t.scrollHeight;n=e/r,a.style.height=100*n+"%",a.style.top=t.scrollTop/r*100+"%",o.style.height=e+"px",e>r-.5?o.classList.add("ol-100pc"):o.classList.remove("ol-100pc")}},m=function(e){e.target.classList.contains("ol-noscroll")||(p=!1,s=e[c],u=new Date,t.classList.add("ol-move"),e.preventDefault(),window.addEventListener("pointermove",v),d.addListener(window,["pointerup","pointercancel"],b))},v=function(e){if(p=!0,!1!==s){var o=(i?-1/n:1)*(s-e[c]);t[f]+=o,(r=new Date)-u&&(l=(l+o/(r-u))/2),s=e[c],u=r,o&&h(!0)}},w=function(e){var r=e>0?Math.min(100,e/2):Math.max(-100,e/2);e-=r,t[f]+=r,-1<e&&e<1?(p?setTimeout((function(){t.classList.remove("ol-move")})):t.classList.remove("ol-move"),p=!1,h(!1)):setTimeout((function(){w(e)}),40)};if(e.vertical&&e.minibar){var x=function(r){t.removeEventListener("pointermove",x),t.parentNode.classList.add("ol-miniscroll"),a=d.create("DIV"),o=d.create("DIV",{className:"ol-scroll",html:a}),t.parentNode.insertBefore(o,t),a.addEventListener("pointerdown",(function(t){i=!0,m(t)})),e.mousewheel&&(d.addListener(o,["mousewheel","DOMMouseScroll","onmousewheel"],(function(t){E(t)})),d.addListener(a,["mousewheel","DOMMouseScroll","onmousewheel"],(function(t){E(t)}))),t.parentNode.addEventListener("pointerenter",_),window.addEventListener("resize",_),!1!==r&&_()};t.parentNode?x(!1):t.addEventListener("pointermove",x),t.addEventListener("scroll",(function(){_()}))}t.style["touch-action"]="none",t.style.overflow="hidden",t.classList.add("ol-scrolldiv"),d.addListener(t,["pointerdown"],(function(t){i=!1,m(t)})),t.addEventListener("click",(function(e){t.classList.contains("ol-move")&&(e.preventDefault(),e.stopPropagation())}),!0);var b=function(r){(u=new Date-u)>100||i?l=0:u>0&&(l=((l||0)+(s-r[c])/u)/2),w(!1===e.animate?0:200*l),s=!1,l=0,u=0,t.classList.contains("ol-move")?t.classList.remove("ol-hasClick"):(t.classList.add("ol-hasClick"),setTimeout((function(){t.classList.remove("ol-hasClick")}),500)),i=!1,window.removeEventListener("pointermove",v),d.removeListener(window,["pointerup","pointercancel"],b)},E=function(e){var r=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail));return t.classList.add("ol-move"),t[f]-=30*r,t.classList.remove("ol-move"),!1};return e.mousewheel&&d.addListener(t,["mousewheel","DOMMouseScroll","onmousewheel"],E),{refresh:_}},dispatchEvent:function(t,e){var r;try{r=new CustomEvent(t)}catch(e){(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,{})}e.dispatchEvent(r)}};const g=d;var _=function(t){t||(t={});var e=g.create("DIV",{className:t.className||"ol-print"});t.target||(e.classList.add("ol-unselectable","ol-control"),g.create("BUTTON",{type:"button",title:t.title||"Print",click:function(){this.print()}.bind(this),parent:e})),i.default.call(this,{element:e,target:t.target}),this.set("immediate",t.immediate),this.set("imageType",t.imageType||"image/jpeg"),this.set("quality",t.quality||.8),this.set("orientation",t.orientation)};(0,n.A)(_,i.default),_.prototype.toClipboard=function(t,e){try{t.canvas.toBlob((function(t){try{navigator.clipboard.write([new window.ClipboardItem(Object.defineProperty({},t.type,{value:t,enumerable:!0}))]),"function"==typeof e&&e(!0)}catch(t){"function"==typeof e&&e(!1)}}))}catch(t){"function"==typeof e&&e(!1)}},_.prototype.copyMap=function(t,e){this.once("print",function(t){this.toClipboard(t,e)}.bind(this)),this.print(t)},_.prototype._getCanvas=function(t,e,r){var n;if(t.context)r=t.context.canvas;else{if(r)n=r.getContext("2d");else{r=document.createElement("canvas");var i=this.getMap().getSize();r.width=i[0],r.height=i[1],n=r.getContext("2d"),/jp.*g$/.test(e)&&(n.fillStyle=this.get("bgColor")||"white",n.fillRect(0,0,r.width,r.height))}this.getMap().getViewport().querySelectorAll(".ol-layers canvas, canvas.ol-fixedoverlay").forEach(function(t){if(t.width){if(n.save(),"0"===t.parentNode.style.opacity)return;n.globalAlpha=parseFloat(t.parentNode.style.opacity)||1,"multiply"===g.getStyle(t.parentNode,"mix-blend-mode")&&(n.globalCompositeOperation="multiply");var e=g.getStyle(t,"transform")||g.getStyle(t,"-webkit-transform");/^matrix/.test(e)?((e=e.replace(/^matrix\(|\)$/g,"").split(",")).forEac
8h((function(t,r){e[r]=parseFloat(t)})),n.transform(e[0],e[1],e[2],e[3],e[4],e[5]),n.drawImage(t,0,0)):n.drawImage(t,0,0,g.getStyle(t,"width"),g.getStyle(t,"height")),n.restore()}}.bind(this))}return r},_.prototype.fastPrint=function(t,e){t=t||{},this._ol6?requestAnimationFrame(function(){e(this._getCanvas({},t.imageType,t.canvas))}.bind(this)):(this.getMap().once("postcompose",function(r){r.context||(this._ol6=!0),e(this._getCanvas(r,t.imageType,t.canvas))}.bind(this)),this.getMap().render())},_.prototype.print=function(t){var e=(t=t||{}).imageType||this.get("imageType"),r=t.quality||this.get("quality");if(this.getMap()){if("silent"!==t.immediate&&this.dispatchEvent(Object.assign({type:"printing"},t)),!t.immediate)return void setTimeout(function(){(t=Object.assign({},t)).immediate="silent",this.print(t)}.bind(this),200);this.getMap().once(this.get("immediate")?"postcompose":"rendercomplete",function(n){var i,o,a,s,l=this._getCanvas(n,e),u=t.size||[210,297],h=t.format||"a4",c=t.orient||this.get("orientation"),f="number"==typeof t.margin?t.margin:10;if(l){"landscape"!==c&&"portrait"!==c&&(c=l.width>l.height?"landscape":"portrait"),"landscape"===c&&(u=[u[1],u[0]]);var p=Math.min((u[0]-2*f)/l.width,(u[1]-2*f)/l.height);i=p*l.width,o=p*l.height,a=[(u[0]-i)/2,(u[1]-o)/2]}try{s=l?l.toDataURL(e,r):null}catch(d){return void this.dispatchEvent({type:"error",canvas:l})}var d=Object.assign({type:"print",print:{format:h,orientation:c,unit:"mm",size:u,position:a,imageWidth:i,imageHeight:o},image:s,imageType:e,quality:r,canvas:l},t);this.dispatchEvent(d)}.bind(this)),this.getMap().render()}};const y=_},1833:(t,e,r)=>{"use strict";r.d(e,{A:()=>m});var n=r(2498),i=r(4120),o=r(3474),a=r(5765),s=r(915),l=r(1854),u=r(8620),h=r(9276),c=r(7733),f=r(953),p=r(3346),d=r(731),g=r(6363),_=r(226),y=function(t){t=t||{},this.duration_="number"==typeof t.duration?t.duration>=0?t.duration:0:1e3,this.fade_="function"==typeof t.fade?t.fade:null,this.repeat_=Number(t.repeat);var e="function"==typeof t.easing?t.easing:o.linear;t.revers?this.easing_=function(t){return 1-e(t)}:this.easing_=e,this.hiddenStyle=t.hiddenStyle,i.A.call(this)};(0,n.A)(y,i.A),y.hiddenStyle=new h.Ay({image:new c.A({}),stroke:new f.A({color:"transparent"})}),y.prototype.drawGeom_=function(t,e,r){this.fade_&&(t.context.globalAlpha=this.fade_(1-t.elapsed));for(var n=t.style,i=0;i<n.length;i++)try{var o=t.vectorContext||(0,g.A)(t),a=(0,_.A)(t,n[i]);o.setStyle(a),a.getZIndex()<0?o.drawGeometry(r||e):o.drawGeometry(e)}catch(t){}},y.prototype.animate=function(){return!1},a.A.prototype.animateFeature=function(t,e){var r=this._featureAnimationLayer;r||(r=this._featureAnimationLayer=new p.A({source:new d.A})).setMap(this),r.getSource().addFeature(t);var n=e.on("animationend",(function(e){e.feature===t&&(r.getSource().removeFeature(t),(0,l.unByKey)(n))}));r.animateFeature(t,e)},u.A.prototype.animateFeature=function(t,e,r){var n,i=this,o=t.getStyle(),a=o||(this.getStyleFunction?this.getStyleFunction()(t):null);a||(a=[]),a instanceof Array||(a=[a]);var u={vectorContext:null,frameState:null,start:0,time:0,elapsed:0,extent:!1,feature:t,geom:t.getGeometry(),typeGeom:t.getGeometry().getType(),bbox:t.getGeometry().getExtent(),coord:(0,s.getCenter)(t.getGeometry().getExtent()),style:a};e instanceof Array||(e=[e]);for(var h=e.length-1;h>=0;h--)0===e[h].duration_&&e.splice(h,1);var c=0,f=0,p=r&&this.getFilters?this.getFilters():[];function d(r){u.type=r.type;try{u.vectorContext=r.vectorContext||(0,g.A)(r)}catch(r){}if(u.frameState=r.frameState,u.inversePixelTransform=r.inversePixelTransform,u.extent||(u.extent=r.frameState.extent,u.start=r.frameState.time,u.context=r.context),u.time=r.frameState.time-u.start,u.elapsed=u.time/e[f].duration_,u.elapsed>1&&(u.elapsed=1),r.context.save(),p.forEach((function(t){t.get("active")&&t.precompose(r)})),this.getOpacity&&(r.context.globalAlpha=this.getOpacity()),e[f].animate(u)){var n={type:"animating",step:f,start:u.start,time:u.time,elapsed:u.elapsed,rotation:u.rotation||0,geom:u.geom,coordinate:u.coord,feature:t};e[f].dispatchEvent(n),i.dispatchEvent(n)}else++c<e[f].repeat_?u.extent=!1:f<e.length-1?(e[f].dispatchEvent({type:"animationend",feature:t}),f++,c=0,u.extent=!1):_();p.forEach((function(t){t.get("active")&&t.postcompose(r)}
8)),r.context.restore(),r.frameState.animate=!0}function _(r){(0,l.unByKey)(n),n=null,t.setStyle(o);var a={type:"animationend",feature:t};if(r)for(var s in r)r.hasOwnProperty(s)&&(a[s]=r[s]);e[f].dispatchEvent(a),i.dispatchEvent(a)}function m(r){if(e.length&&!n){if(n=i.on(["postcompose","postrender"],d.bind(i)),i.renderSync)try{i.renderSync()}catch(t){}else i.changed();t.setStyle(e[f].hiddenStyle||y.hiddenStyle);var o={type:"animationstart",feature:t};if(r)for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);e[f].dispatchEvent(o),i.dispatchEvent(o)}}return m(),{start:m,stop:_,isPlaying:function(){return!!n}}};const m=y},8697:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>a});var n=r(2498),i=r(1833),o=function(t){t=t||{},i.A.call(this,t),this.set("zoomout",t.zoomOut)};(0,n.A)(o,i.A);(0,n.A)((function(t){(t=t||{}).zoomOut=!0,o.call(this,t)}),o),o.prototype.animate=function(t){var e=this.easing_(t.elapsed);if(e){this.get("zoomout")&&(e=1/e);var r,n,i=t.style,o=[];for(r=0;r<i.length;r++)(n=i[r].getImage())&&(o[r]=n.getScale(),"postrender"===t.type?n.setScale(o[r]*e/t.frameState.pixelRatio):n.setScale(o[r]*e));for(this.drawGeom_(t,t.geom),r=0;r<i.length;r++)(n=i[r].getImage())&&n.setScale(o[r])}return t.time<=this.duration_};const a=o},7673:(t,e,r)=>{"use strict";r.d(e,{A:()=>w});var n=r(2498),i=r(5765),o=r(71),a=r(3346),s=r(731),l=r(2770),u=r(6717),h=r(1217),c=r(1854),f=r(3474),p=r(4294),d=r(9276),g=r(7733),_=r(6363),y=r(915),m=r(8704),v=function(t){t=t||{},this.pointRadius=t.pointRadius||12,this.circleMaxObjects=t.circleMaxObjects||10,this.maxObjects=t.maxObjects||60,this.spiral=!1!==t.spiral,this.animate=t.animate,this.animationDuration=t.animationDuration||500,this.selectCluster_=!1!==t.selectCluster,this._autoClose=!1!==t.autoClose;var e=this.overlayLayer_=new a.A({source:new s.A({features:new o.A,wrapX:t.wrapX,useSpatialIndex:!0}),name:"Cluster overlay",updateWhileAnimating:!0,updateWhileInteracting:!0,displayInLayerSwitcher:!1,style:t.featureStyle});if(t.layers)if("function"==typeof t.layers){var r=t.layers;t.layers=function(t){return t===e||r(t)}}else t.layers.push&&t.layers.push(this.overlayLayer_);if(t.filter){var n=t.filter;t.filter=function(t,e){return!(!e&&t.get("selectclusterlink"))&&n(t,e)}}else t.filter=function(t,e){return!(!e&&t.get("selectclusterlink"))};this.filter_=t.filter,this._autoClose||t.toggleCondition||(t.toggleCondition=m.singleClick),l.A.call(this,t),this.on("select",this.selectCluster.bind(this))};(0,n.A)(v,l.A),v.prototype.setMap=function(t){this.getMap()&&this.getMap().removeLayer(this.overlayLayer_),this._listener&&(0,c.unByKey)(this._listener),this._listener=null,l.A.prototype.setMap.call(this,t),this.overlayLayer_.setMap(t),t&&t.getView()&&(this._listener=t.getView().on("change:resolution",this.clear.bind(this)))},v.prototype.clear=function(){this.getFeatures().clear(),this.overlayLayer_.getSource().clear()},v.prototype.getLayer=function(){return this.overlayLayer_},v.prototype.selectCluster=function(t){if(t instanceof u.A&&(t={selected:[t]}),t.selected.length){var e=t.selected[0];if(!e.get("selectclusterfeature")){var r=this.overlayLayer_.getSource();this._autoClose&&r.clear();var n=e.get("features");if(n&&1!=n.length){this.selectCluster_||this.getFeatures().clear();var i,o,a,s,l,c,f,d=e.getGeometry().getCoordinates(),g=this.getMap().getView().getResolution(),_=[];if(!this.spiral||n.length<=this.circleMaxObjects)for(s=Math.min(n.length,this.circleMaxObjects),i=g*this.pointRadius*(.5+s/4),a=0;a<s;a++)o=2*Math.PI*a/s,2!=s&&4!=s||(o+=Math.PI/4),l=[d[0]+i*Math.sin(o),d[1]+i*Math.cos(o)],(c=new u.A({selectclusterfeature:!0,features:[n[a]],geometry:new p.A(l)})).setStyle(n[a].getStyle()),_.push(c),f=new u.A({selectclusterlink:!0,geometry:new h.A([d,l])}),_.push(f);else{o=0;var y=2*this.pointRadius;for(s=Math.min(this.maxObjects,n.length),a=0;a<s;a++){o+=(y+.1)/(i=y/2+y*o/(2*Math.PI));var m=g*i*Math.sin(o),v=g*i*Math.cos(o);l=[d[0]+m,d[1]+v],(c=new u.A({selectclusterfeature:!0,features:[n[a]],geometry:new p.A(l)})).setStyle(n[a].getStyle()),_.push(c),f=new u.A({selectclusterlink:!0,geometry:new h.A([d,l])}),_.push(f)}}e.set("selectcluserfeatures",_),this.animate?this.animateCluster_(d,_):r.addFeatures(_)}}}else{this._autoClose?this.clear():t.deselected.forEach((t=>{var e=t.get("selectcluserfeatures");e&&e.forEach((t=>
8{this.overlayLayer_.getSource().removeFeature(t)}))}))}},v.prototype.animateCluster_=function(t,e){if(this.listenerKey_&&(0,c.unByKey)(this.listenerKey_),e.length){var r=this.overlayLayer_.getStyle(),n="function"==typeof r?r:r.length?function(){return r}:function(){return[r]},o=this.animationDuration||500,a=(new Date).getTime();this.listenerKey_=this.overlayLayer_.on(["postcompose","postrender"],function(r){for(var s,l=r.vectorContext||(0,_.A)(r),u=r.frameState.pixelRatio,h=this.getMap().getView().getResolution(),d=(0,f.easeOut)((r.frameState.time-a)/o),g=0;s=e[g];g++)if(s.get("features")){var y=s.getGeometry().getCoordinates();y[0]=t[0]+d*(y[0]-t[0]),y[1]=t[1]+d*(y[1]-t[1]);for(var m=new p.A(y),v=n(s,h),w=0;w<v.length;w++){var x,b=!i.A.prototype.getFeaturesAtPixel&&v[w].getImage();b&&(x=b.getScale(),b.setScale(u)),l.setStyle?(l.setStyle(v[w]),l.drawGeometry(m)):(l.setImageStyle(b),l.drawPointGeometry(m)),b&&b.setScale(x)}}if(d>1)return(0,c.unByKey)(this.listenerKey_),this.overlayLayer_.getSource().addFeatures(e),void this.overlayLayer_.changed();r.frameState.animate=!0}.bind(this));var s=new u.A(new p.A(this.getMap().getView().getCenter()));s.setStyle(new d.Ay({image:new g.A({})})),this.overlayLayer_.getSource().addFeature(s)}},v.prototype.getClusterExtent=function(t){if(!t.get("features"))return null;var e=(0,y.createEmpty)();return t.get("features").forEach((function(t){e=(0,y.extend)(e,t.getGeometry().getExtent())})),e[0]===e[2]&&e[1]===e[3]?null:e};const w=v},2359:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var n=r(2498),i=r(3346),o=r(731),a=r(6717),s=r(3474),l=r(915),u=r(4294),h=r(6363),c=r(226),f=function(t){var e=t||{};i.A.call(this,e),this.oldcluster=new o.A,this.clusters=[],this.animation={start:!1},this.set("animationDuration","number"==typeof e.animationDuration?e.animationDuration:700),this.set("animationMethod",e.animationMethod||s.easeOut),this.getSource().on("change",this.saveCluster.bind(this)),this.on(["precompose","prerender"],this.animate.bind(this)),this.on(["postcompose","postrender"],this.postanimate.bind(this))};(0,n.A)(f,i.A),f.prototype.saveCluster=function(){if(this.oldcluster){if(this.oldcluster.clear(),!this.get("animationDuration"))return;var t=this.getSource().getFeatures();t.length&&t[0].get("features")&&(this.oldcluster.addFeatures(this.cluster
8s),this.clusters=t.slice(0),this.sourceChanged=!0)}},f.prototype.getClusterForFeature=function(t,e){for(var r,n=0;r=e[n];n++){var i=r.get("features");if(i&&i.length)for(var o,a=0;o=i[a];a++)if(t===o)return r}return!1},f.prototype.stopAnimation=function(){this.animation.start=!1,this.animation.cA=[],this.animation.cB=[]},f.prototype.animate=function(t){var e=this.get("animationDuration");if(e){var r,n,i=t.frameState.viewState.resolution,o=this.animation,s=t.frameState.time;if(o.resolution!=i&&this.sourceChanged){var f=t.frameState.extent;for(o.resolution<i?(f=(0,l.buffer)(f,100*i),o.cA=this.oldcluster.getFeaturesInExtent(f),o.cB=this.getSource().getFeaturesInExtent(f),o.revers=!1):(f=(0,l.buffer)(f,100*i),o.cA=this.getSource().getFeaturesInExtent(f),o.cB=this.oldcluster.getFeaturesInExtent(f),o.revers=!0),o.clusters=[],r=0;n=o.cA[r];r++){var p=n.get("features");if(p&&p.length){var d=this.getClusterForFeature(p[0],o.cB);d&&o.clusters.push({f:n,pt:d.getGeometry().getCoordinates()})}}if(o.resolution=i,this.sourceChanged=!1,!o.clusters.length||o.clusters.length>1e3)return void this.stopAnimation();s=o.start=(new Date).getTime()}if(o.start){var g=t.vectorContext||(0,h.A)(t),_=(s-o.start)/e;_>1&&(this.stopAnimation(),_=1),_=this.get("animationMethod")(_);var y=this.getStyle(),m="function"==typeof y?y:y.length?function(){return y}:function(){return[y]};for(t.context.save(),t.context.globalAlpha=this.getOpacity(),r=0;d=o.clusters[r];r++){var v=d.f.getGeometry().getCoordinates(),w=v[0]-d.pt[0],x=v[1]-d.pt[1];o.revers?(v[0]=d.pt[0]+_*w,v[1]=d.pt[1]+_*x):(v[0]=v[0]-_*w,v[1]=v[1]-_*x);var b=m(d.f,i,!0);if(b.length||(b=[b]),1!==d.f.get("features").length||w||x){var E=new u.A(v);p=new a.A(E)}else p=d.f.get("features")[0];for(var A,S=0;A=b[S];S++)if(A.getText()&&/\n/.test(A.getText().getText())){var C,T=A.getText().getOffsetX(),P=A.getText().getOffsetY(),I=A.getText().getRotation()||0,O=1.2*Number((A.getText().getFont()||"10px").match(/\d+/)),R=A.getText().getText().split("\n"),L=R.length-1,k=A.clone();R.forEach((function(e,r){switch(1==r&&(k.setImage(),k.setFill(),k.setStroke()),A.getText().getTextBaseline()){case"alphabetic":case"ideographic":case"bottom":C=L;break;case"hanging":case"top":C=0;break;default:C=L/2}k.getText().setOffsetX(T-Math.sin(I)*O*(r-C)),k.getText().setOffsetY(P+Math.cos(I)*O*(r-C)),k.getText().setText(e),g.drawFeature(p,(0,c.A)(t,k))}))}else g.drawFeature(p,(0,c.A)(t,A))}t.context.restore(),t.frameState.animate=!0,t.context.save(),t.context.beginPath(),t.context.rect(0,0,0,0),t.context.clip(),this.clip_=!0}}},f.prototype.postanimate=function(t){this.clip_&&(t.context.restore(),this.clip_=!1)};const p=f},2498:(t,e,r)=>{"use strict";r.d(e,{A:()=>i}),window.ol&&!ol.ext&&(ol.ext={});var n=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t};window.ol&&(ol.inherits||(ol.inherits=n)),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.Element&&!Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});const i=n},6363:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9703),i=r(2236);const o=function(t){const e=t.frameState,r=(0,n.lw)(t.inversePixelTransform.slice(),e.coordinateToPixelTransform);return new i.A(t.context,e.pixelRatio,e.extent,r,e.viewState.rotation)}},226:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(4087),i=r(9700);window.ol&&(ol.util?ol.util.VERSION||(ol.util.VERSION=ol.VERSION||"6.1.0"):ol.util={VERSION:ol.VERSION||"5.3.0"});var o=n.xv.split(".");o=100*parseInt(o[0])+parseInt(o[1]);const a=function(t,e){var r=t.frameState.pixelRatio;if(o>605&&1!==r&&e.getImage()instanceof i.A){var n=(e=e.clone()).getImage();n.setScale(n.getScale()*r);var a=n.getAnchor();if(n.setDisplacement){var s=n.getDisplacement();s&&(s[0]-=a[0]/r,s[1]+=a[1]/r,n.setAnchor([0,0]))}else a&&(a[0]/=r,a[1]/=r)}return e}},5341:function(t){t.exports=function(){"use strict";function t(t,n,i,o,a){!function t(r,n,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=n-i+1,u=Math.log(s),h=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*h*(s-h)/s)*(l-s/2<0?-1:1);t(r,n,Math.max(i,Math.floor(n-l*h/s+c)),Math.min(o,Math.floor(n+(s-l)*h/s+c)),a)}var f=r[n],p=i,d=o;for(e(r,i,n),a(r[o],f)>0&&e(r,i,o);p<d;){for(e(r,p,d),p++,d--;a(r[p],f)<0;)p++;for(;a(r[d],f)>0;)d--}0===a(r[i],f)?e(r,i,d):e(r,++d,o),d<=n&&(i=d+1),n<=d&&(o=d-1)}}(t,n,i||0,o||t.length-1,a||r)}function e(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function r(t,e){return t<e?-1:t>e?1:0}var n=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(t,e,r){if(!r)return e.indexOf(t);for(var n=0;n<e.length;n++)if(r(t,e[n]))return n;return-1}function o(t,e){a(t,0,t.children.length,e,t)}function a(t,e,r,n,i){i||(i=d(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=e;o<r;o++){var a=t.children[o];s(i,t.leaf?n(a):a)}return i}function s(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function l(t,e){return t.minX-e.minX}function u(t,e){return t.minY-e.minY}
vendor: 5,320 bytes, line 8
8function h(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function c(t){return t.maxX-t.minX+(t.maxY-t.minY)}function f(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function p(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function d(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,r,n,i,o){for(var a=[r,n];a.length;)if(!((n=a.pop())-(r=a.pop())<=i)){var s=r+Math.ceil((n-r)/i/2)*i;t(e,s,r,n,o),a.push(r,s,s,n)}}return n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(t){var e=this.data,r=[];if(!p(t,e))return r;for(var n=this.toBBox,i=[];e;){for(var o=0;o<e.children.length;o++){var a=e.children[o],s=e.leaf?n(a):a;p(t,s)&&(e.leaf?r.push(a):f(t,s)?this._all(a,r):i.push(a))}e=i.pop()}return r},n.prototype.collides=function(t){var e=this.data;if(!p(t,e))return!1;for(var r=[];e;){for(var n=0;n<e.children.length;n++){var i=e.children[n],o=e.leaf?this.toBBox(i):i;if(p(t,o)){if(e.leaf||f(t,o))return!0;r.push(i)}}e=r.pop()}return!1},n.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var r=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var n=this.data;this.data=r,r=n}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},n.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},n.prototype.clear=function(){return this.data=d([]),this},n.prototype.remove=function(t,e){if(!t)return this;for(var r,n,o,a=this.data,s=this.toBBox(t),l=[],u=[];a||l.length;){if(a||(a=l.pop(),n=l[l.length-1],r=u.pop(),o=!0),a.leaf){var h=i(t,a.children,e);if(-1!==h)return a.children.splice(h,1),l.push(a),this._condense(l),this}o||a.leaf||!f(a,s)?n?(r++,a=n.children[r],o=!1):a=null:(l.push(a),u.push(r),r=0,n=a,a=a.children[0])}return this},n.prototype.toBBox=function(t){return t},n.prototype.compareMinX=function(t,e){return t.minX-e.minX},n.prototype.compareMinY=function(t,e){return t.minY-e.minY},n.prototype.toJSON=function(){return this.data},n.prototype.fromJSON=function(t){return this.data=t,this},n.prototype._all=function(t,e){for(var r=[];t;)t.leaf?e.push.apply(e,t.children):r.push.apply(r,t.children),t=r.pop();return e},n.prototype._build=function(t,e,r,n){var i,a=r-e+1,s=this._maxEntries;if(a<=s)return o(i=d(t.slice(e,r+1)),this.toBBox),i;n||(n=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,n-1))),(i=d([])).leaf=!1,i.height=n;var l=Math.ceil(a/s),u=l*Math.ceil(Math.sqrt(s));g(t,e,r,u,this.compareMinX);for(var h=e;h<=r;h+=u){var c=Math.min(h+u-1,r);g(t,h,c,l,this.compareMinY);for(var f=h;f<=c;f+=l){var p=Math.min(f+l-1,c);i.children.push(this._build(t,f,p,n-1))}}return o(i,this.toBBox),i},n.prototype._chooseSubtree=function(t,e,r,n){for(;n.push(e),!e.leaf&&n.length-1!==r;){for(var i=1/0,o=1/0,a=void 0,s=0;s<e.children.length;s++){var l=e.children[s],u=h(l),c=(f=t,p=l,(Math.max(p.maxX,f.maxX)-Math.min(p.minX,f.minX))*(Math.max(p.maxY,f.maxY)-Math.min(p.minY,f.minY))-u);c<o?(o=c,i=u<i?u:i,a=l):c===o&&u<i&&(i=u,a=l)}e=a||e.children[0]}var f,p;return e},n.prototype._insert=function(t,e,r){var n=r?t:this.toBBox(t),i=[],o=this._chooseSubtree(n,this.data,e,i);for(o.children.push(t),s(o,n);e>=0&&i[e].children.length>this._maxEntries;)this._split(i,e),e--;this._adjustParentBBoxes(n,i,e)},n.prototype._split=function(t,e){var r=t[e],n=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,n);var a=this._chooseSplitIndex(r,i,n),s=d(r.children.splice(a,r.children.length-a));s.height=r.height,s.leaf=r.leaf,o(r,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(r,s)},n.prototype._splitRoot=function(t,e){this.data=d([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},n.prototype._chooseSplitIndex=function(t,e,r){for(var n,i,o,s,l,u,c,f=1/0,p=1/0,d=e;d<=r-e;d++){var g=a(t,0,d,this.toBBox),_=a(t,d,r,this.toBBox),y=(i=g,o=_,s=void 0,l=void 0,u=void 0,c=void 0,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),u=Math.min(i.maxX,o.maxX),c=Math.min(i.maxY,o.maxY),Math.max(0,u-s)*Math.max(0,c-l)),m=h(g)+h(_);y<f?(f=y,n=d,p=m<p?m:p):y===f&&m<p&&(p=m,n=d)}return n||r-e},n.prototype._chooseSplitAxis=function(t,e,r){var n=t.leaf?this.compareMinX:l,i=t.leaf?this.compareMinY:u;this._allDistMargin(t,e,r,n)<this._allDistMargin(t,e,r,i)&&t.children.sort(n)},n.prototype._allDistMargin=function(t,e,r,n){t.children.sort(n);for(var i=this.toBBox,o=a(t,0,e,i),l=a(t,r-e,r,i),u=c(o)+c(l),h=e;h<r-e;h++){var f=t.children[h];s(o,t.leaf?i(f):f),u+=c(o)}for(var p=r-e-1;p>=e;p--){var d=t.children[p];s(l,t.leaf?i(d):d),u+=c(l)}return u},n.prototype._adjustParentBBoxes=function(t,e,r){for(var n=r;n>=0;n--)s(e[n],t)},n.prototype._condense=function(t){for(var e=t.length-1,r=void 0;e>=0;e--)0===t[e].children.length?e>0?(r=t[e-1].children).splice(r.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},n}()},6675:t=>{function e(t,e){const r=new RegExp(e,"g"),n=t.match(r);return n?n.length:0}t.exports=e,t.exports.default=e},8556:(t,e,r)=>{const n=r(3614),i=r(8694),o=r(6675);function a(t,e,r){const a=r&&r.debug||!1,s=!(r&&!1===typeof r.nested),l=r&&r.startIndex||
80;a&&console.log("[xml-utils] starting findTagByName with",e," and ",r);const u=n(t,`<${e}[ \n>/]`,l);if(a&&console.log("[xml-utils] start:",u),-1===u)return;const h=t.slice(u+e.length);let c=i(h,"^[^<]*[ /]>",0);const f=-1!==c&&"/"===h[c-1];if(a&&console.log("[xml-utils] selfClosing:",f),!1===f)if(s){let t=0,r=1,n=0;for(;-1!==(c=i(h,"[ /]"+e+">",t));){const i=h.substring(t,c+1);if(r+=o(i,"<"+e+"[ \n\t>]"),n+=o(i,"</"+e+">"),n>=r)break;t=c}}else c=i(h,"[ /]"+e+">",0);const p=u+e.length+c+1;if(a&&console.log("[xml-utils] end:",p),-1===p)return;const d=t.slice(u,p);let g;return g=f?null:d.slice(d.indexOf(">")+1,d.lastIndexOf("<")),{inner:g,outer:d,start:u,end:p}}t.exports=a,t.exports.default=a},563:(t,e,r)=>{const n=r(8556);function i(t,e,r){const i=[],o=r&&r.debug||!1,a=!r||"boolean"!=typeof r.nested||r.nested;let s,l=r&&r.startIndex||0;for(;s=n(t,e,{debug:o,startIndex:l});)l=a?s.start+1+e.length:s.end,i.push(s);return o&&console.log("findTagsByName found",i.length,"tags"),i}t.exports=i,t.exports.default=i},7379:t=>{function e(t,e,r){const n=r&&r.debug||!1;n&&console.log("[xml-utils] getting "+e+" in "+t);const i="object"==typeof t?t.outer:t,o=i.slice(0,i.indexOf(">")+1),a=['"',"'"];for(let t=0;t<a.length;t++){const r=a[t],i=e+"\\="+r+"([^"+r+"]*)"+r;n&&console.log("[xml-utils] pattern:",i);const s=new RegExp(i).exec(o);if(n&&console.log("[xml-utils] match:",s),s)return s[1]}}t.exports=e,t.exports.default=e},8694:t=>{function e(t,e,r){const n=new RegExp(e).exec(t.slice(r));return n?r+n.index+n[0].length-1:-1}t.exports=e,t.exports.default=e},3614:t=>{function e(t,e,r){const n=new RegExp(e).exec(t.slice(r));return n?r+n.index:-1}t.exports=e,t.exports.default=e},2132:(t,e,r)=>{"use strict";function n(t,e){let r=t.length-e,n=0;do{for(let r=e;r>0;r--)t[n+e]+=t[n],n++;r-=e}while(r>0)}function i(t,e,r){let n=0,i=t.length;const o=i/r;for(;i>e;){for(let r=e;r>0;--r)t[n+e]+=t[n],++n;i-=e}const a=t.slice();for(let e=0;e<o;++e)for(let n=0;n<r;++n)t[r*e+n]=a[(r-n-1)*o+e]}r.d(e,{A:()=>o});class o{async decode(t,e){const r=await this.decodeBlock(e),o=t.Predictor||1;if(1!==o){const e=!t.StripOffsets;return function(t,e,r,o,a,s){if(!e||1===e)return t;for(let t=0;t<a.length;++t){if(a[t]%8!=0)throw new Error("When decoding with predictor, only multiple of 8 bits are supported.");if(a[t]!==a[0])throw new Error("When decoding with predictor, all samples must have the same size.")}const l=a[0]/8,u=2===s?1:a.length;for(let s=0;s<o&&!(s*u*r*l>=t.byteLength);++s){let o;if(2===e){switch(a[0]){case 8:o=new Uint8Array(t,s*u*r*l,u*r*l);break;case 16:o=new Uint16Array(t,s*u*r*l,u*r*l/2);break;case 32:o=new Uint32Array(t,s*u*r*l,u*r*l/4);break;default:throw new Error(`Predictor 2 not allowed with ${a[0]} bits per sample.`)}n(o,u)}else 3===e&&(o=new Uint8Array(t,s*u*r*l,u*r*l),i(o,u,l))}return t}(r,o,e?t.TileWidth:t.ImageWidth,e?t.TileLength:t.RowsPerStrip||t.ImageLength,t.BitsPerSample,t.PlanarConfiguration)}return r}}},424:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>o});var n=r(3075),i=r(2132);class o extends i.A{decodeBlock(t){return(0,n.UD)(new Uint8Array(t)).buffer}}},6457:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>y});var n=r(2132);const i=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),o=4017,a=799,s=3406,l=2276,u=1567,h=3784,c=5793,f=2896;function p(t,e){let r=0;const n=[];let i=16;for(;i>0&&!t[i-1];)--i;n.push({children:[],index:0});let o,a=n[0];for(let s=0;s<i;s++){for(let i=0;i<t[s];i++){for(a=n.pop(),a.children[a.index]=e[r];a.index>0;)a=n.pop();for(a.index++,n.push(a);n.length<=s;)n.push(o={children:[],index:0}),a.children[a.index]=o.children,a=o;r++}s+1<i&&(n.push(o={children:[],index:0}),a.children[a.index]=o.children,a=o)}return n[0].children}function d(t,e,r,n,o,a,s,l,u){const{mcusPerLine:h,progressive:c}=r,f=e;let p=e,d=0,g=0;function _(){if(g>0)return g--,d>>g&1;if(d=t[p++],255===d){const e=t[p++];if(e)throw new Error(`unexpected marker: ${(d<<8|e).toString(16)}`)}return g=7,d>>>7}function y(t){let e,r=t;for(;null!==(e=_());){if(r=r[e],"number"==typeof r)return r;if("object"!=typeof r)throw new Error("invalid huffman sequence")}return null}function m(t){let e=t,r=0;for(;e>0;){const t=_();if(null===t)return;r=r<<1|t,--e}return r}function v(t){const e=m(t);return e>=1<<t-1?e:e+(-1<<t)+1}let w=0;let x,b=0;function E(t,e,r,n,i){const o=r%h,a=(r/h|0)*t.v+n,s=o*t.h+i;e(t,t.blocks[a][s])}function A(t,e,r){const n=r/t.blocksPerLine|0,i=r%t.blocksPerLine;e(t,t.blocks[n][i])}const S=n.length;let C,T,P,I,O,R;R=c?0===a?0===l?function(t,e){const r=y(t.huffmanTableDC),n=0===r?0:v(r)<<u;t.pred+=n,e[0]=t.pred}:function(t,e){e[0]|=_()<<u}:0===l?function(t,e){if(w>0)return void w--;let r=a;const n=s;for(;r<=n;){const n=y(t.huffmanTableAC),o=15&n,a=n>>4;if(0===o){if(a<15){w=m(a)+(1<<a)-1;break}r+=16}else r+=a,e[i[r]]=v(o)*(1<<u),r++}}:function(t,e){let r=a;const n=s;let o=0;for(;r<=n;){const n=i[r],a=e[n]<0?-1:1;switch(b){case 0:{const e=y(t.huffmanTableAC),r=15&e;if(o=e>>4,0===r)o<15?(w=m(o)+(1<<o),b=4):(o=16,b=1);else{if(1!==r)throw new Error("invalid ACn encoding");x=v(r),b=o?2:3}continue}case 1:case 2:e[n]?e[n]+=(_()<<u)*a:(o--,0===o&&(b=2===b?3:0));break;case 3:e[n]?e[n]+=(_()<<u)*a:(e[n]=x<<u,b=0);break;case 4:e[n]&&(e[n]+=(_()<<u)*a)}r++}4===b&&(w--,0===w&&(b=0))}:function(t,e){const r=y(t.huffmanTableDC),n=0===r?0:v(r);t.pred+=n,e[0]=t.pred;let o=1;for(;o<64;){const r=y(t.huffmanTableAC),n=15&r,a=r>>4;if(0===n){if(a<15)break;o+=16}else o+=a,e[i[o]]=v(n),o++}};let L,k,M=0;k=1===S?n[0].blocksPerLine*n[0].blocksPerColumn:h*r.mcusPerColumn;const F=o||k;for(;M<k;){for(T=0;T<S;T++)n[T].pred=0;if(w=0,1===S)for(C=n[0],O=0;O<F;O++)A(C,R,M),M++;else for(O=0;O<F;O++){for(T=0;T<S;T++){C=n[T];const{h:t,v:e}=C;for(P=0;P<e;P++)for(I=0;I<t;I++)E(C,R,M,P,I)}if(M++,M===k)break}if(g=0,L=t[p]<<8|t[p+1],L<65280)throw new Error("marker was not found");if(!(L>=65488&&L<=65495))break;p+=2}return p-f}function g(t,e){const r=[],{blocksPerLine:n,blocksPerColumn:i}=e,p=n<<3,d=new Int32Array(64),g=new Uint8Array(64);function _(t,r,n){const i=e.quantizationTable;let p,d,g,_,y,m,v,w,x;const b=n;let E;for(E=0;E<64;E++)b[E]=t[E]*i[E];for(E=0;E<8;++E){const t=8*E;0!==b[1+t]||0!==b[2+t]||0!==b[3+t]||0!==b[4+t]||0!==b[5+t]||0!==b[6+t]||0!==b[7+t]?(p=c*b[0+t]+128>>8,d=c*b[4+t]+128>>8,g=b[2+t],_=b[6+t],y=f*(b[1+t]-b[7+t])+128>>8,w=f*(b[1+t]+b[7+t])+128>>8,m=b[3+t]<<4,v=b[5+t]<<4,x=p-d+1>>1,p=p+d+1>>1,d=x,x=g*h+_*u+128>>8,g=g*u-_*h+128>>8,_=x,x=y-v+1>>1,y=y+v+1>>1,v=x,x=w+m+1>>1,m=w-m+1>>1,w=x,x=p-_+1>>1,p=p+_+1>>1,_=x,x=d-g+1>>1,d=d+g+1>>1,g=x,x=y*l+w*s+2048>>12,y=y*s-w*l+2048>>12,w=x,x=m*a+v*o+2048>>12,m=m*o-v*a+2048>>12,v=x,b[0+t]=p+w,b[7+t]=p-w,b[1+t]=d+v,b[6+t]=d-v,b[2+t]=g+m,b[5+t]=g-m,b[3+t]=_+y,b[4+t]=_-y):(x=c*b[0+t]+512>>10,b[0+t]=x,b[1+t]=x,b[2+t]=x,b[3+t]=x,b[4+t]=x,b[5+t]=x,b[6+t]=x,b[7+t]=x)}for(E=0;E<8;++E){const t=E;0!==b[8+t]||0!==b[16+t]||0!==b[24+t]||0!==b[32+t]||0!==b[40+t]||0!==b[48+t]||0!==b[56+t]?(p=c*b[0+t]+2048>>12,d=c*b[32+t]+2048>>12,g=b[16+t],_=b[48+t],y=f*(b[8+t]-b[56+t])+2048>>12,w=f*(b[8+t]+b[56+t])+2048>>12,m=b[24+t],v=b[40+t],x=p-d+1>>1,p=p+d+1>>1,d=x,x=g*h+_*u+2048>>12,g=g*u-_*h+2048>>12,_=x,x=y-v+1>>1,y=y+v+1>>1,v=x,x=w+m+1>>1,m=w-m+1>>1,w=x,x=p-_+1>>1,p=p+_+1>>1,_=x,x=d-g+1>>1,d=d+g+1>>1,g=x,x=y*l+w*s+2048>>12,y=y*s-w*l+2048>>12,w=x,x=m*a+v*o+2048>>12,m=m*o-v*a+2048>>12,v=x,b[0+t]=p+w,b[56+t]=p-w,b[8+t]=d+v,b[48+t]=d-v,b[16+t]=g+m,b[40+t]=g-m,b[24+t]=_+y,b[32+t]=_-y):(x=c*n[E+0]+8192>>14,b[0+t]=x,b[8+t]=x,b[16+t]=x,b[24+t]=x,b[32+t]=x,b[40+t]=x,b[48+t]=x,b[56+t]=x)}for(E=0;E<64;++E){const t=128+(b[E]+8>>4);r[E]=t<0?0:t>255?255:t}}for(let t=0;t<i;t++){const i=t<<3;for(let t=0;t<8;t++)r.push(new Uint8Array(p));for(let o=0;o<n;o++){_(e.blocks[t][o],g,d);let n=0;const a=o<<3;for(let t=0;t<8;t++){const e=r[i+t];for(let t=0;t<8;t++)e[a+t]=g[n++]}}}return r}class _{constructor(){this.jfif=null,this.adobe=null,this.quantizationTables=[],this.huffmanTablesAC=[],this.huffmanTablesDC=[],this.resetFrames()}resetFrames(){this.frames=[]}parse(t){let e=0;function r(){const r=t[e]<<8|t[e+1];return e+=2,r}function n(){const n=r(),i=t.subarray(e,e+n-2);return e+=i.length,i}function o(t){let e,r,n=0,i=0;for(r in t.components)t.components.hasOwnProperty(r)&&(e=t.components[r],n<e.h&&(n=e.h),i<e.v&&(i=e.v));const o=Math.ceil(t.samplesPerLine/8/n),a=Math.ceil(t.scanLines/8/i);for(r in t.components)if(t.components.hasOwnProperty(r)){e=t.components[r];const s=Math.ceil(Math.ceil(t.samplesPerLine/8)*e.h/n),l=Math.ceil(Math.ceil(t.scanLines/8)*e.v/i),u=o*e.h,h=a*e.v,c=[];for(let t=0;t<h;t++){const t=[];for(let e=0;e<u;e++)t.push(new Int32Array(64));c.push(t)}e.blocksPerLine=s,e.blocksPerColumn=l,e.blocks=c}t.maxH=n,t.maxV=i,t.mcusPerLine=o,t.mcusPerColumn=a}let a=r();if(65496!==a)throw new Error("SOI not found");for(a=r();65497!==a;){switch(a){case 65280:break;case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:{const t=n();65504===a&&74===t[0]&&70===t[1]&&73===t[2]&&70===t[3]&&0===t[4]&&(this.jfif={version:{major:t[5],minor:t[6]},densityUnits:t[7],xDensity:t[8]<<8|t[9],yDensity:t[10]<<8|t[11],thumbWidth:t[12],thumbHe
8ight:t[13],thumbData:t.subarray(14,14+3*t[12]*t[13])}),65518===a&&65===t[0]&&100===t[1]&&111===t[2]&&98===t[3]&&101===t[4]&&0===t[5]&&(this.adobe={version:t[6],flags0:t[7]<<8|t[8],flags1:t[9]<<8|t[10],transformCode:t[11]});break}case 65499:{const n=r()+e-2;for(;e<n;){const n=t[e++],o=new Int32Array(64);if(n>>4){if(n>>4!=1)throw new Error("DQT: invalid table spec");for(let t=0;t<64;t++){o[i[t]]=r()}}else for(let r=0;r<64;r++){o[i[r]]=t[e++]}this.quantizationTables[15&n]=o}break}case 65472:case 65473:case 65474:{r();const n={extended:65473===a,progressive:65474===a,precision:t[e++],scanLines:r(),samplesPerLine:r(),components:{},componentsOrder:[]},i=t[e++];let s;for(let r=0;r<i;r++){s=t[e];const r=t[e+1]>>4,i=15&t[e+1],o=t[e+2];n.componentsOrder.push(s),n.components[s]={h:r,v:i,quantizationIdx:o},e+=3}o(n),this.frames.push(n);break}case 65476:{const n=r();for(let r=2;r<n;){const n=t[e++],i=new Uint8Array(16);let o=0;for(let r=0;r<16;r++,e++)i[r]=t[e],o+=i[r];const a=new Uint8Array(o);for(let r=0;r<o;r++,e++)a[r]=t[e];r+=17+o,n>>4?this.huffmanTablesAC[15&n]=p(i,a):this.huffmanTablesDC[15&n]=p(i,a)}break}case 65501:r(),this.resetInterval=r();break;case 65498:{r();const n=t[e++],i=[],o=this.frames[0];for(let r=0;r<n;r++){const r=o.components[t[e++]],n=t[e++];r.huffmanTableDC=this.huffmanTablesDC[n>>4],r.huffmanTableAC=this.huffmanTablesAC[15&n],i.push(r)}const a=t[e++],s=t[e++],l=t[e++],u=d(t,e,o,i,this.resetInterval,a,s,l>>4,15&l);e+=u;break}case 65535:255!==t[e]&&e--;break;default:if(255===t[e-3]&&t[e-2]>=192&&t[e-2]<=254){e-=3;break}throw new Error(`unknown JPEG marker ${a.toString(16)}`)}a=r()}}getResult(){const{frames:t}=this;if(0===this.frames.length)throw new Error("no frames were decoded");this.frames.length>1&&console.warn("more than one frame is not supported");for(let t=0;t<this.frames.length;t++){const e=this.frames[t].components;for(const t of Object.keys(e))e[t].quantizationTable=this.quantizationTables[e[t].quantizationIdx],delete e[t].quantizationIdx}const e=t[0],{components:r,componentsOrder:n}=e,i=[],o=e.samplesPerLine,a=e.scanLines;for(let t=0;t<n.length;t++){const o=r[n[t]];i.push({lines:g(0,o),scaleX:o.h/e.maxH,scaleY:o.v/e.maxV})}const s=new Uint8Array(o*a*i.length);let l=0;for(let t=0;t<a;++t)for(let e=0;e<o;++e)for(let r=0;r<i.length;++r){const n=i[r];s[l]=n.lines[0|t*n.scaleY][0|e*n.scaleX],++l}return s}}class y extends n.A{constructor(t){super(),this.reader=new _,t.JPEGTables&&this.reader.parse(t.JPEGTables)}decodeBlock(t){return this.reader.resetFrames(),this.reader.parse(new Uint8Array(t)),this.reader.getResult().buffer}}},4623:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>s});var n=r(3075),i=r(4827),o=r(2132),a=r(8622);class s extends o.A{constructor(t){super(),this.planarConfiguration=void 0!==t.PlanarConfiguration?t.PlanarConfiguration:1,this.samplesPerPixel=void 0!==t.SamplesPerPixel?t.SamplesPerPixel:1,this.addCompression=t.LercParameters[a.TZ.AddCompression]}decodeBlock(t){switch(this.addCompression){case a.S3.None:break;case a.S3.Deflate:t=(0,n.UD)(new Uint8Array(t)).buffer;break;default:throw new Error(`Unsupported LERC additional compression method identifier: ${this.addCompression}`)}return i.decode(t,{returnPixelInterleavedDims:1===this.planarConfiguration}).pixels[0].buffer}}},2764:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>s});var n=r(2132);const i=257;function o(t,e){for(let r=e.length-1;r>=0;r--)t.push(e[r]);return t}function a(t){const e=new Uint16Array(4093),r=new Uint8Array(4093);for(let t=0;t<=257;t++)e[t]=4096,r[t]=t;let n=258,a=9,s=0;function l(){n=258,a=9}function u(t){const e=function(t,e,r){const n=e%8,o=Math.floor(e/8),a=8-n,s=e+r-8*(o+1);let l=8*(o+2)-(e+r);const u=8*(o+2)-e;if(l=Math.max(0,l),o>=t.length)return console.warn("ran off the end of the buffer before finding EOI_CODE (end on input code)"),i;let h=t[o]&2**(8-n)-1;h<<=r-a;let c=h;if(o+1<t.length){let e=t[o+1]>>>l;e<<=Math.max(0,r-u),c+=e}if(s>8&&o+2<t.length){const n=8*(o+3)-(e+r);c+=t[o+2]>>>n}return c}(t,s,a);return s+=a,e}function h(t,i){return r[n]=i,e[n]=t,n++,n-1}function c(t){const n=[];for(let i=t;4096!==i;i=e[i])n.push(r[i]);return n}const f=[];l();const p=new Uint8Array(t);let d,g=u(p);for(;g!==i;){if(256===g){for(l(),g=u(p);256===g;)g=u(p);if(g===i)break;if(g>256)throw new Error(`corrupted code at scanline ${g}`);o(f,c(g)),d=g}else if(g<n){const t=c(g);o(f,t),h(d,t[t.length-1]),d=g}else{const t=c(d);if(!t)throw new Error(`Bogus entry. Not in dictionary, ${d} / ${n}, position: ${s}`);o(f,t),f.push(t[t.length-1]),h(d,t[t.length-1]),d=g}n+1>=2**a&&(12===a?d=void 0:a++),g=u(p)}return new Uint8Array(f)}class s extends n.A{decodeBlock(t){return a(t).buffer}}},1030:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>i});var n=r(2132);class i extends n.A{decodeBlock(t){const e=new DataView(t),r=[];for(let n=0;n<t.byteLength;++n){let t=e.getInt8(n);if(t<0){const i=e.getUint8(n+1);t=-t;for(let e=0;e<=t;++e)r.push(i);n+=1}else{for(let i=0;i<=t;++i)r.push(e.getUint8(n+i+1));n+=t+1}}return new Uint8Array(r).buffer}}},5121:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>i});var n=r(2132);class i extends n.A{decodeBlock(t){return t}}},6568:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>i});var n=r(2132);class i extends n.A{constructor(){if(super(),"undefined"==typeof createImageBitmap)throw new Error("Cannot decode WebImage as `createImageBitmap` is not available");if("undefined"==typeof document&&"undefined"==typeof OffscreenCanvas)throw new Error("Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available")}async decode(t,e){const r=new Blob([e]),n=await createImageBitmap(r);let i;"undefined"!=typeof document?(i=document.createElement("canvas"),i.width=n.width,i.height=n.height):i=new OffscreenCanvas(n.width,n.height);const o=i.getContext("2d");
8return o.drawImage(n,0,0),o.getImageData(0,0,n.width,n.height).data.buffer}}},8622:(t,e,r)=>{"use strict";r.d(e,{$:()=>n,AC:()=>u,Hm:()=>f,NZ:()=>o,Rc:()=>a,S3:()=>c,TZ:()=>h,s$:()=>s,ub:()=>l});const n={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},i={};for(const t in n)n.hasOwnProperty(t)&&(i[n[t]]=parseInt(t,10));const o=[i.BitsPerSample,i.ExtraSamples,i.SampleFormat,i.StripByteCounts,i.StripOffsets,i.StripRowCounts,i.TileByteCounts,i.TileOffsets,i.SubIFDs],a={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},s={};for(const t in a)a.hasOwnProperty(t)&&(s[a[t]]=parseInt(t,10));const l={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},u={Unspecified:0,Assocalpha:1,Unassalpha:2},h={Version:0,AddCompression:1},c={None:0,Deflate:1},f={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"},p={};for(const t in f)f.hasOwnProperty(t)&&(p[f[t]]=parseInt(t,10))},2098:(t,e,r)=>{"use strict";r.r(e),r.d(e,{create:()=>i});const n=Worker;function i(){const t='function e(e,t,r,n,i,a,o){try{var s=e[a](o),f=s.value}catch(e){return void r(e)}
vendor: 4,873 bytes, line 8
8s.done?t(f):Promise.resolve(f).then(n,i)}function t(t){return function(){var r=this,n=arguments;return new Promise((function(i,a){var o=t.apply(r,n);function s(t){e(o,i,a,s,f,"next",t)}function f(t){e(o,i,a,s,f,"throw",t)}s(void 0)}))}}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var n={exports:{}};!function(e){var t=function(e){var t,n=Object.prototype,i=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),o=new T(n||[]);return a._invoke=function(e,t,r){var n=h;return function(i,a){if(n===p)throw new Error("Generator is already running");if(n===m){if("throw"===i)throw a;return E()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=I(o,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var f=c(e,t,r);if("normal"===f.type){if(n=r.done?m:d,f.arg===v)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(n=m,r.method="throw",r.arg=f.arg)}}}(e,r,o),a}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",m="completed",v={};function y(){}function w(){}function g(){}var b={};l(b,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(D([])));x&&x!==n&&i.call(x,o)&&(b=x);var _=g.prototype=y.prototype=Object.create(b);function A(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(a,o,s,f){var l=c(e[a],e,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"===r(h)&&i.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,s,f)}),(function(e){n("throw",e,s,f)})):t.resolve(h).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,f)}))}f(l.arg)}var a;this._invoke=function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}}function I(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,I(e,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a \'throw\' method")}return v}var i=c(n,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function U(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(U,this),this.reset(!0)}function D(e){if(e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function r(){for(;++n<e.length;)if(i.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:E}}function E(){return{value:t,done:!0}}return w.prototype=g,l(_,"constructor",g),l(g,"constructor",w),w.displayName=l(g,f,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,f,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},A(P.prototype),l(P.prototype,s,(function(){return this})),e.AsyncIterator=P,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new P(u(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},A(_),l(_,f,"Generator"),l(_,o,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=D,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
8h(S),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var f=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(f&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(n);var i=n.exports,a=new Map;function o(e,t){Array.isArray(e)||(e=[e]),e.forEach((function(e){return a.set(e,t)}))}function s(e){return f.apply(this,arguments)}function f(){return(f=t(i.mark((function e(t){var r,n;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=a.get(t.Compression)){e.next=3;break}throw new Error("Unknown compression method identifier: ".concat(t.Compression));case 3:return e.next=5,r();case 5:return n=e.sent,e.abrupt("return",new n(t));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}o([void 0,1],(function(){return Promise.resolve().then((function(){return _})).then((function(e){return e.default}))})),o(5,(function(){return Promise.resolve().then((function(){return S})).then((function(e){return e.default}))})),o(6,(function(){throw new Error("old style JPEG compression is not supported.")})),o(7,(function(){return Promise.resolve().then((function(){return L})).then((function(e){return e.default}))})),o([8,32946],(function(){return Promise.resolve().then((function(){return Ne})).then((function(e){return e.default}))})),o(32773,(function(){return Promise.resolve().then((function(){return Ye})).then((function(e){return e.default}))})),o(34887,(function(){return Promise.resolve().then((function(){return ut})).then((function(e){return e.default}))})),o(50001,(function(){return Promise.resolve().then((function(){return dt})).then((function(e){return e.default}))}));var l=globalThis;function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),e}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function m(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){var r=e.length-t,n=0;do{for(var i=t;i>0;i--)e[n+t]+=e[n],n++;r-=t}while(r>0)}function w(e,t,r){for(var n=0,i=e.length,a=i/r;i>t;){for(var o=t;o>0;--o)e[n+t]+=e[n],++n;i-=t}for(var s=e.slice(),f=0;f<a;++f)for(var l=0;l<r;++l)e[r*f+l]=s[(r-l-1)*a+f]}function g(e,t,r,n,i,a){if(!t||1===t)return e;for(var o=0;o<i.length;++o){if(i[o]%8!=0)throw new Error("When decoding with predictor, only multiple of 8 bits are supported.");
8if(i[o]!==i[0])throw new Error("When decoding with predictor, all samples must have the same size.")}for(var s=i[0]/8,f=2===a?1:i.length,l=0;l<n&&!(l*f*r*s>=e.byteLength);++l){var u=void 0;if(2===t){switch(i[0]){case 8:u=new Uint8Array(e,l*f*r*s,f*r*s);break;case 16:u=new Uint16Array(e,l*f*r*s,f*r*s/2);break;case 32:u=new Uint32Array(e,l*f*r*s,f*r*s/4);break;default:throw new Error("Predictor 2 not allowed with ".concat(i[0]," bits per sample."))}y(u,f)}else 3===t&&w(u=new Uint8Array(e,l*f*r*s,f*r*s),f,s)}return e}l.addEventListener("message",function(){var e=t(i.mark((function e(t){var r,n,a,o,f,u;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.data,n=r.id,a=r.fileDirectory,o=r.buffer,e.next=3,s(a);case 3:return f=e.sent,e.next=6,f.decode(a,o);case 6:u=e.sent,l.postMessage({decoded:u,id:n},[u]);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());var b=function(){function e(){u(this,e)}var r;return h(e,[{key:"decode",value:(r=t(i.mark((function e(t,r){var n,a,o,s,f;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.decodeBlock(r);case 2:if(n=e.sent,1===(a=t.Predictor||1)){e.next=9;break}return o=!t.StripOffsets,s=o?t.TileWidth:t.ImageWidth,f=o?t.TileLength:t.RowsPerStrip||t.ImageLength,e.abrupt("return",g(n,a,s,f,t.BitsPerSample,t.PlanarConfiguration));case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})}]),e}();function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}var x=function(e){p(r,b);var t=k(r);function r(){return u(this,r),t.apply(this,arguments)}return h(r,[{key:"decodeBlock",value:function(e){return e}}]),r}(),_=Object.freeze({__proto__:null,default:x});function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}function P(e,t){for(var r=t.length-1;r>=0;r--)e.push(t[r]);return e}function I(e){for(var t=new Uint16Array(4093),r=new Uint8Array(4093),n=0;n<=257;n++)t[n]=4096,r[n]=n;var i=258,a=9,o=0;function s(){i=258,a=9}function f(e){var t=function(e,t,r){var n=t%8,i=Math.floor(t/8),a=8-n,o=t+r-8*(i+1),s=8*(i+2)-(t+r),f=8*(i+2)-t;if(s=Math.max(0,s),i>=e.length)return console.warn("ran off the end of the buffer before finding EOI_CODE (end on input code)"),257;var l=e[i]&Math.pow(2,8-n)-1,u=l<<=r-a;if(i+1<e.length){var c=e[i+1]>>>s;u+=c<<=Math.max(0,r-f)}if(o>8&&i+2<e.length){var h=8*(i+3)-(t+r);u+=e[i+2]>>>h}return u}(e,o,a);return o+=a,t}function l(e,n){return r[i]=n,t[i]=e,++i-1}function u(e){for(var n=[],i=e;4096!==i;i=t[i])n.push(r[i]);return n}var c=[];s();for(var h,d=new Uint8Array(e),p=f(d);257!==p;){if(256===p){for(s(),p=f(d);256===p;)p=f(d);if(257===p)break;if(p>256)throw new Error("corrupted code at scanline ".concat(p));P(c,u(p)),h=p}else if(p<i){var m=u(p);P(c,m),l(h,m[m.length-1]),h=p}else{var v=u(h);if(!v)throw new Error("Bogus entry. Not in dictionary, ".concat(h," / ").concat(i,", position: ").concat(o));P(c,v),c.push(v[v.length-1]),l(h,v[v.length-1]),h=p}i+1>=Math.pow(2,a)&&(12===a?h=void 0:a++),p=f(d)}return new Uint8Array(c)}var U=function(e){p(r,b);var t=A(r);function r(){return u(this,r),t.apply(this,arguments)}return h(r,[{key:"decodeBlock",value:function(e){return I(e).buffer}}]),r}(),S=Object.freeze({__proto__:null,default:U});function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}var D=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,5
87,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);function E(e,t){for(var r=0,n=[],i=16;i>0&&!e[i-1];)--i;n.push({children:[],index:0});for(var a,o=n[0],s=0;s<i;s++){for(var f=0;f<e[s];f++){for((o=n.pop()).children[o.index]=t[r];o.index>0;)o=n.pop();for(o.index++,n.push(o);n.length<=s;)n.push(a={children:[],index:0}),o.children[o.index]=a.children,o=a;r++}s+1<i&&(n.push(a={children:[],index:0}),o.children[o.index]=a.children,o=a)}return n[0].children}function B(e,t,n,i,a,o,s,f,l){var u=n.mcusPerLine,c=n.progressive,h=t,d=t,p=0,m=0;function v(){if(m>0)return m--,p>>m&1;if(255===(p=e[d++])){var t=e[d++];if(t)throw new Error("unexpected marker: ".concat((p<<8|t).toString(16)))}return m=7,p>>>7}function y(e){for(var t,n=e;null!==(t=v());){if("number"==typeof(n=n[t]))return n;if("object"!==r(n))throw new Error("invalid huffman sequence")}return null}function w(e){for(var t=e,r=0;t>0;){var n=v();if(null===n)return;r=r<<1|n,--t}return r}function g(e){var t=w(e);return t>=1<<e-1?t:t+(-1<<e)+1}var b=0;var k,x=0;function _(e,t,r,n,i){var a=r%u,o=(r/u|0)*e.v+n,s=a*e.h+i;t(e,e.blocks[o][s])}function A(e,t,r){var n=r/e.blocksPerLine|0,i=r%e.blocksPerLine;t(e,e.blocks[n][i])}var P,I,U,S,T,E,B=i.length;E=c?0===o?0===f?function(e,t){var r=y(e.huffmanTableDC),n=0===r?0:g(r)<<l;e.pred+=n,t[0]=e.pred}:function(e,t){t[0]|=v()<<l}:0===f?function(e,t){if(b>0)b--;else for(var r=o,n=s;r<=n;){var i=y(e.huffmanTableAC),a=15&i,f=i>>4;if(0===a){if(f<15){b=w(f)+(1<<f)-1;break}r+=16}else t[D[r+=f]]=g(a)*(1<<l),r++}}:function(e,t){for(var r=o,n=s,i=0;r<=n;){var a=D[r],f=t[a]<0?-1:1;switch(x){case 0:var u=y(e.huffmanTableAC),c=15&u;if(i=u>>4,0===c)i<15?(b=w(i)+(1<<i),x=4):(i=16,x=1);else{if(1!==c)throw new Error("invalid ACn encoding");k=g(c),x=i?2:3}continue;case 1:case 2:t[a]?t[a]+=(v()<<l)*f:0==--i&&(x=2===x?3:0);break;case 3:t[a]?t[a]+=(v()<<l)*f:(t[a]=k<<l,x=0);break;case 4:t[a]&&(t[a]+=(v()<<l)*f)}r++}4===x&&0==--b&&(x=0)}:function(e,t){var r=y(e.huffmanTableDC),n=0===r?0:g(r);e.pred+=n,t[0]=e.pred;for(var i=1;i<64;){var a=y(e.huffmanTableAC),o=15&a,s=a>>4;if(0===o){if(s<15)break;i+=16}else t[D[i+=s]]=g(o),i++}};var O,M,C=0;M=1===B?i[0].blocksPerLine*i[0].blocksPerColumn:u*n.mcusPerColumn;for(var L=a||M;C<M;){for(I=0;I<B;I++)i[I].pred=0;if(b=0,1===B)for(P=i[0],T=0;T<L;T++)A(P,E,C),C++;else for(T=0;T<L;T++){for(I=0;I<B;I++){var R=P=i[I],V=R.h,G=R.v;for(U=0;U<G;U++)for(S=0;S<V;S++)_(P,E,C,U,S)}if(++C===M)break}if(m=0,(O=e[d]<<8|e[d+1])<65280)throw new Error("marker was not found");if(!(O>=65488&&O<=65495))break;d+=2}return d-h}function O(e,t){var r=[],n=t.blocksPerLine,i=t.blocksPerColumn,a=n<<3,o=new Int32Array(64),s=new Uint8Array(64);function f(e,r,n){var i,a,o,s,f,l,u,c,h,d,p=t.quantizationTable,m=n;for(d=0;d<64;d++)m[d]=e[d]*p[d];for(d=0;d<8;++d){var v=8*d;0!==m[1+v]||0!==m[2+v]||0!==m[3+v]||0!==m[4+v]||0!==m[5+v]||0!==m[6+v]||0!==m[7+v]?(i=5793*m[0+v]+128>>8,a=5793*m[4+v]+128>>8,o=m[2+v],s=m[6+v],f=2896*(m[1+v]-m[7+v])+128>>8,c=2896*(m[1+v]+m[7+v])+128>>8,l=m[3+v]<<4,h=i-a+1>>1,i=i+a+1>>1,a=h,h=3784*o+1567*s+128>>8,o=1567*o-3784*s+128>>8,s=h,h=f-(u=m[5+v]<<4)+1>>1,f=f+u+1>>1,u=h,h=c+l+1>>1,l=c-l+1>>1,c=h,h=i-s+1>>1,i=i+s+1>>1,s=h,h=a-o+1>>1,a=a+o+1>>1,o=h,h=2276*f+3406*c+2048>>12,f=3406*f-2276*c+2048>>12,c=h,h=799*l+4017*u+2048>>12,l=4017*l-799*u+2048>>12,u=h,m[0+v]=i+c,m[7+v]=i-c,m[1+v]=a+u,m[6+v]=a-u,m[2+v]=o+l,m[5+v]=o-l,m[3+v]=s+f,m[4+v]=s-f):(h=5793*m[0+v]+512>>10,m[0+v]=h,m[1+v]=h,m[2+v]=h,m[3+v]=h,m[4+v]=h,m[5+v]=h,m[6+v]=h,m[7+v]=h)}for(d=0;d<8;++d){var y=d;0!==m[8+y]||0!==m[16+y]||0!==m[24+y]||0!==m[32+y]||0!==m[40+y]||0!==m[48+y]||0!==m[56+y]?(i=5793*m[0+y]+2048>>12,a=5793*m[32+y]+2048>>12,o=m[16+y],s=m[48+y],f=2896*(m[8+y]-m[56+y])+2048>>12,c=2896*(m[8+y]+m[56+y])+2048>>12,l=m[24+y],h=i-a+1>>1,i=i+a+1>>1,a=h,h=3784*o+1567*s+2048>>12,o=1567*o-3784*s+2048>>12,s=h,h=f-(u=m[40+y])+1>>1,f=f+u+1>>1,u=h,h=c+l+1>>1,l=c-l+1>>1,c=h,h=i-s+1>>1,i=i+s+1>>1,s=h,h=a-o+1>>1,a=a+o+1>>1,o=h,h=2276*f+3406*c+2048>>12,f=3406*f-2276*c+2048>>12,c=h,h=799*l+4017*u+2048>>12,l=4017*l-799*u+2048>>12,u=h,m[0+y]=i+c,m[56+y]=i-c,m[8+y]=a+u,m[48+y]=a-u,m[16+y]=o+l,m[40+y]=o-l,m[24+y]=s+f,m[32+y]=s-f):(h=5793*n[d+0]+8192>>14,m[0+y]=h,m[8+y]=h,m[16+y]=h,m[24+y]=h,m[32+y]=h,m[40+y]=h,m[48+y]=h,m[56+y]=h)}for(d=0;d<64;++d){var w=128+(m[d]+8>>4);r[d]=w<0?0:w>255?255:w}}for(var l=0;l<i;l++){for(var u=l<<3,c=0;c<8;c++)r.push(new Uint8Array(a));for(var h=0;h<n;h++){f(t.blocks[l][h],s,o);for(var d=0,p=h<<3,m=0;m<8;m++)for(var v=r[u+m],y=0;y<8;y++)v[p+y]=s[d++]}}return r}var M=function(){function e(){u(this,e),this.jfif=null,this.adobe=null,this.quantizationTables=[],this.huffmanTablesAC=[],this.huffmanTablesDC=[],this.resetFrames()}return h(e,[{key:"resetFrames",value:function(){this.frames=[]}},{key:"parse",value:function(e){var t=0;function r(){var r=e[t]<<8|e[t+1];return t+=2,r}function n(e){var t,r,n=0,i=0;for(r in e.components)e.components.hasOwnProperty(r)&&(n<(t=e.components[r]).h&&(n=t.h),i<t.v&&(i=t.v));var a=Math.ceil(e.samplesPerLine/8/n),o=Math.ceil(e.scanLines/8/i);for(r in e.components)if(e.components.hasOwnProperty(r)){t=e.components[r];for(var s=Math.ceil(Math.ceil(e.samplesPerLine/8)*t.h/n),f=Math.ceil(Math.ceil(e.scanLines/8)*t.v/i),l=a*t.h,u=o*t.v,c=[],h=0;h<u;h++){for(var d=[],p=0;p<l;p++)d.push(new Int32Array(64));c.push(d)}t.blocksPerLine=s,t.blocksPerColumn=f,t.blocks=c}e.maxH=n,e.maxV=i,e.mcusPerLine=a,e.mcusPerColumn=o}
8var i,a,o=r();if(65496!==o)throw new Error("SOI not found");for(o=r();65497!==o;){switch(o){case 65280:break;case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var s=(i=void 0,a=void 0,i=r(),a=e.subarray(t,t+i-2),t+=a.length,a);65504===o&&74===s[0]&&70===s[1]&&73===s[2]&&70===s[3]&&0===s[4]&&(this.jfif={version:{major:s[5],minor:s[6]},densityUnits:s[7],xDensity:s[8]<<8|s[9],yDensity:s[10]<<8|s[11],thumbWidth:s[12],thumbHeight:s[13],thumbData:s.subarray(14,14+3*s[12]*s[13])}),65518===o&&65===s[0]&&100===s[1]&&111===s[2]&&98===s[3]&&101===s[4]&&0===s[5]&&(this.adobe={version:s[6],flags0:s[7]<<8|s[8],flags1:s[9]<<8|s[10],transformCode:s[11]});break;case 65499:for(var f=r()+t-2;t<f;){var l=e[t++],u=new Int32Array(64);if(l>>4==0)for(var c=0;c<64;c++){u[D[c]]=e[t++]}else{if(l>>4!=1)throw new Error("DQT: invalid table spec");for(var h=0;h<64;h++){u[D[h]]=r()}}this.quantizationTables[15&l]=u}break;case 65472:case 65473:case 65474:r();for(var d={extended:65473===o,progressive:65474===o,precision:e[t++],scanLines:r(),samplesPerLine:r(),components:{},componentsOrder:[]},p=e[t++],m=void 0,v=0;v<p;v++){m=e[t];var y=e[t+1]>>4,w=15&e[t+1],g=e[t+2];d.componentsOrder.push(m),d.components[m]={h:y,v:w,quantizationIdx:g},t+=3}n(d),this.frames.push(d);break;case 65476:for(var b=r(),k=2;k<b;){for(var x=e[t++],_=new Uint8Array(16),A=0,P=0;P<16;P++,t++)_[P]=e[t],A+=_[P];for(var I=new Uint8Array(A),U=0;U<A;U++,t++)I[U]=e[t];k+=17+A,x>>4==0?this.huffmanTablesDC[15&x]=E(_,I):this.huffmanTablesAC[15&x]=E(_,I)}break;case 65501:r(),this.resetInterval=r();break;case 65498:r();for(var S=e[t++],T=[],O=this.frames[0],M=0;M<S;M++){var C=O.components[e[t++]],L=e[t++];C.huffmanTableDC=this.huffmanTablesDC[L>>4],C.huffmanTableAC=this.huffmanTablesAC[15&L],T.push(C)}var R=e[t++],V=e[t++],G=e[t++],F=B(e,t,O,T,this.resetInterval,R,V,G>>4,15&G);t+=F;break;case 65535:255!==e[t]&&t--;break;default:if(255===e[t-3]&&e[t-2]>=192&&e[t-2]<=254){t-=3;break}throw new Error("unknown JPEG marker ".concat(o.toString(16)))}o=r()}}},{key:"getResult",value:function(){var e=this.frames;if(0===this.frames.length)throw new Error("no frames were decoded");this.frames.length>1&&console.warn("more than one frame is not supported");for(var t=0;t<this.frames.length;t++)for(var r=this.frames[t].components,n=0,i=Object.keys(r);n<i.length;n++){var a=i[n];r[a].quantizationTable=this.quantizationTables[r[a].quantizationIdx],delete r[a].quantizationIdx}for(var o=e[0],s=o.components,f=o.componentsOrder,l=[],u=o.samplesPerLine,c=o.scanLines,h=0;h<f.length;h++){var d=s[f[h]];l.push({lines:O(0,d),scaleX:d.h/o.maxH,scaleY:d.v/o.maxV})}for(var p=new Uint8Array(u*c*l.length),m=0,v=0;v<c;++v)for(var y=0;y<u;++y)for(var w=0;w<l.length;++w){var g=l[w];p[m]=g.lines[0|v*g.scaleY][0|y*g.scaleX],++m}return p}}]),e}(),C=function(e){p(r,b);var t=T(r);function r(e){var n;return u(this,r),(n=t.call(this)).reader=new M,e.JPEGTables&&n.reader.parse(e.JPEGTables),n}return h(r,[{key:"decodeBlock",value:function(e){return this.reader.resetFrames(),this.reader.parse(new Uint8Array(e)),this.reader.getResult().buffer}}]),r}(),L=Object.freeze({__proto__:null,default:C});function R(e){for(var t=e.length;--t>=0;)e[t]=0}R(new Array(576)),R(new Array(60)),R(new Array(512)),R(new Array(256)),R(new Array(29)),R(new Array(30));var V=function(e,t,r,n){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==r;){r-=o=r>2e3?2e3:r;do{a=a+(i=i+t[n++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0},G=new Uint32Array(function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}()),F=function(e,t,r,n){var i=G,a=n+r;e^=-1;for(var o=n;o<a;o++)e=e>>>8^i[255&(e^t[o])];return-1^e},z={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},j={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ER
vendor: 18,698 bytes, line 8
8ROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},N=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Z=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!==r(n))throw new TypeError(n+"must be non-object");for(var i in n)N(n,i)&&(e[i]=n[i])}}return e},K=function(e){for(var t=0,r=0,n=e.length;r<n;r++)t+=e[r].length;for(var i=new Uint8Array(t),a=0,o=0,s=e.length;a<s;a++){var f=e[a];i.set(f,o),o+=f.length}return i},H=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){H=!1}for(var Y=new Uint8Array(256),X=0;X<256;X++)Y[X]=X>=252?6:X>=248?5:X>=240?4:X>=224?3:X>=192?2:1;Y[254]=Y[254]=1;var W=function(e){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);var t,r,n,i,a,o=e.length,s=0;for(i=0;i<o;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(s),a=0,i=0;a<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t},q=function(e,t){var r,n,i=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));var a=new Array(2*i);for(n=0,r=0;r<i;){var o=e[r++];if(o<128)a[n++]=o;else{var s=Y[o];if(s>4)a[n++]=65533,r+=s-1;else{for(o&=2===s?31:3===s?15:7;s>1&&r<i;)o=o<<6|63&e[r++],s--;s>1?a[n++]=65533:o<65536?a[n++]=o:(o-=65536,a[n++]=55296|o>>10&1023,a[n++]=56320|1023&o)}}}return function(e,t){if(t<65534&&e.subarray&&H)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r}(a,n)},J=function(e,t){(t=t||e.length)>e.length&&(t=e.length);for(var r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+Y[e[r]]>t?r:t};var Q=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},$=function(e,t){var r,n,i,a,o,s,f,l,u,c,h,d,p,m,v,y,w,g,b,k,x,_,A,P,I=e.state;r=e.next_in,A=e.input,n=r+(e.avail_in-5),i=e.next_out,P=e.output,a=i-(t-e.avail_out),o=i+(e.avail_out-257),s=I.dmax,f=I.wsize,l=I.whave,u=I.wnext,c=I.window,h=I.hold,d=I.bits,p=I.lencode,m=I.distcode,v=(1<<I.lenbits)-1,y=(1<<I.distbits)-1;e:do{d<15&&(h+=A[r++]<<d,d+=8,h+=A[r++]<<d,d+=8),w=p[h&v];t:for(;;){if(h>>>=g=w>>>24,d-=g,0===(g=w>>>16&255))P[i++]=65535&w;else{if(!(16&g)){if(0==(64&g)){w=p[(65535&w)+(h&(1<<g)-1)];continue t}if(32&g){I.mode=12;break e}e.msg="invalid literal/length code",I.mode=30;break e}b=65535&w,(g&=15)&&(d<g&&(h+=A[r++]<<d,d+=8),b+=h&(1<<g)-1,h>>>=g,d-=g),d<15&&(h+=A[r++]<<d,d+=8,h+=A[r++]<<d,d+=8),w=m[h&y];r:for(;;){if(h>>>=g=w>>>24,d-=g,!(16&(g=w>>>16&255))){if(0==(64&g)){w=m[(65535&w)+(h&(1<<g)-1)];continue r}e.msg="invalid distance code",I.mode=30;break e}if(k=65535&w,d<(g&=15)&&(h+=A[r++]<<d,(d+=8)<g&&(h+=A[r++]<<d,d+=8)),(k+=h&(1<<g)-1)>s){e.msg="invalid distance too far back",I.mode=30;break e}if(h>>>=g,d-=g,k>(g=i-a)){if((g=k-g)>l&&I.sane){e.msg="invalid distance too far back",I.mode=30;break e}if(x=0,_=c,0===u){if(x+=f-g,g<b){b-=g;do{P[i++]=c[x++]}while(--g);x=i-k,_=P}}else if(u<g){if(x+=f+u-g,(g-=u)<b){b-=g;do{P[i++]=c[x++]}while(--g);if(x=0,u<b){b-=g=u;do{P[i++]=c[x++]}while(--g);x=i-k,_=P}}}else if(x+=u-g,g<b){b-=g;do{P[i++]=c[x++]}while(--g);x=i-k,_=P}for(;b>2;)P[i++]=_[x++],P[i++]=_[x++],P[i++]=_[x++],b-=3;b&&(P[i++]=_[x++],b>1&&(P[i++]=_[x++]))}else{x=i-k;do{P[i++]=P[x++],P[i++]=P[x++],P[i++]=P[x++],b-=3}while(b>2);b&&(P[i++]=P[x++],b>1&&(P[i++]=P[x++]))}break}}break}}while(r<n&&i<o);r-=b=d>>3,h&=(1<<(d-=b<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r<n?n-r+5:5-(r-n),e.avail_out=i<o?o-i+257:257-(i-o),I.hold=h,I.bits=d},ee=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),te=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),re=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ne=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),ie=function(e,t,r,n,i,a,o,s){var f,l,u,c,h,d,p,m,v,y=s.bits,w=0,g=0,b=0,k=0,x=0,_=0,A=0,P=0,I=0,U=0,S=null,T=0,D=new Uint16Array(16),E=new Uint16Array(16),B=null,O=0;for(w=0;w<=15;w++)D[w]=0;for(g=0;g<n;g++)D[t[r+g]]++;for(x=y,k=15;k>=1&&0===D[k];k--);if(x>k&&(x=k),0===k)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(b=1;b<k&&0===D[b];b++);for(x<b&&(x=b),P=1,w=1;w<=15;w++)if(P<<=1,(P-=D[w])<0)return-1;if(P>0&&(0===e||1!==k))return-1;for(E[1]=0,w=1;w<15;w++)E[w+1]=E[w]+D[w];for(g=0;g<n;g++)0!==t[r+g]&&(o[E[t[r+g]]++]=g);if(0===e?(S=B=o,d=19):1===e?(S=ee,T-=257,B=te,O-=257,d=256):(S=re,B=ne,d=-1),U=0,g=0,w=b,h=a,_=x,A=0,u=-1,c=(I=1<<x)-1,1===e&&I>852||2===e&&I>592)return 1;for(;;){p=w-A,o[g]<d?(m=0,v=o[g]):o[g]>d?(m=B[O+o[g]],v=S[T+o[g]]):(m=96,v=0),f=1<<w-A,b=l=1<<_;do{i[h+(U>>A)+(l-=f)]=p<<24|m<<16|v|0}while(0!==l);for(f=1<<w-1;U&f;)f>>=1;if(0!==f?(U&=f-1,U+=f):U=0,g++,0==--D[w]){if(w===k)break;w=t[r+o[g]]}if(w>x&&(U&c)!==u){for(0===A&&(A=x),h+=b,P=1<<(_=w-A);_+A<k&&!((P-=D[_+A])<=0);)_++,P<<=1;if(I+=1<<_,1===e&&I>852||2===e&&I>592)return 1;i[u=U&c]=x<<24|_<<16|h-a|0}}return 0!==U&&(i[h+U]=w-A<<24|64<<16|0),s.bits=x,0},ae=j.Z_FINISH,oe=j.Z_BLOCK,se=j.Z_TREES,fe=j.Z_OK,le=j.Z_STREAM_END,ue=j.Z_NEED_DICT,ce=j.Z_STREAM_ERROR,he=j.Z_DATA_ERROR,de=j.Z_MEM_ERROR,pe=j.Z_BUF_ERROR,me=j.Z_DEFLATED,ve=function(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)};function ye(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var we,ge,be=function(e){if(!e||!e.state)return ce;var t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,fe},ke=function(e){if(!e||!e.state)return ce;var t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,be(e)},xe=function(e,t){var r;if(!e||!e.state)return ce;var n=e.state;return t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?ce:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,ke(e))},_e=function(e,t){if(!e)return ce;var r=new ye;e.state=r,r.window=null;var n=xe(e,t);return n!==fe&&(e.state=null),n},Ae=!0,Pe=function(e){if(Ae){we=new Int32Array(512),ge=new Int32Array(32);for(var t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(ie(1,e.lens,0,288,we,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;ie(2,e.lens,0,32,ge,0,e.work,{bits:5}),Ae=!1}e.lencode=we,e.lenbits=9,e.distcode=ge,e.distbits=5},Ie=function(e,t,r,n){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),n>=a.wsize?(a.window.set(t.subarray(r-a.wsize,r),0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>n&&(i=n),a.window.set(t.subarray(r-n,r-n+i),a.wnext),(n-=i)?(a.window.set(t.subarray(r-n,r),0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},Ue={inflateReset:ke,inflateReset2:xe,inflateResetKeep:be,inflateInit:function(e){return _e(e,15)},inflateInit2:_e,inflate:function(e,t){var r,n,i,a,o,s,f,l,u,c,h,d,p,m,v,y,w,g,b,k,x,_,A,P,I=0,U=new Uint8Array(4),S=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return ce;12===(r=e.state).mode&&(r.mode=13),o=e.next_out,i=e.output,f=e.avail_out,a=e.next_in,n=e.input,s=e.avail_in,l=r.hold,u=r.bits,c=s,h=f,_=fe;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;u<16;){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}if(2&r.wrap&&35615===l){r.check=0,U[0]=255&l,U[1]=l>>>8&255,r.check=F(r.check,U,2,0),l=0,u=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&l)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=30;break}if((15&l)!==me){e.msg="unknown compression method",r.mode=30;break}if(u-=4,x=8+(15&(l>>>=4)),0===r.wbits)r.wbits=x;else if(x>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<r.wbits,e.adler=r.check=1,r.mode=512&l?10:12,l=0,u=0;break;case 2:for(;u<16;){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}if(r.flags=l,(255&r.flags)!==me){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=l>>8&1),512&r.flags&&(U[0]=255&l,U[1]=l>>>8&255,r.check=F(r.check,U,2,0)),l=0,u=0,r.mode=3;case 3:for(;u<32;){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}r.head&&(r.head.time=l),512&r.flags&&(U[0]=255&l,U[1]=l>>>8&255,U[2]=l>>>16&255,U[3]=l>>>24&255,r.check=F(r.check,U,4,0)),l=0,u=0,r.mode=4;case 4:for(;u<16;){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}r.head&&(r.head.xflags=255&l,r.head.os=l>>8),512&r.flags&&(U[0]=255&l,U[1]=l>>>8&255,r.check=F(r.check,U,2,0)),l=0,u=0,r.mode=5;case 5:if(1024&r.flags){for(;u<16;){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}r.length=l,r.head&&(r.head.extra_len=l),512&r.flags&&(U[0]=255&l,U[1]=l>>>8&255,r.check=F(r.check,U,2,0)),l=0,u=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((d=r.length)>s&&(d=s),d&&(r.head&&(x=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(a,a+d),x)),512&r.flags&&(r.check=F(r.check,n,d,a)),s-=d,a+=d,r.length-=d),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break e;d=0;do{x=n[a+d++],r.head&&x&&r.length<65536&&(r.head.name+=String.fromCharCode(x))}while(x&&d<s);if(512&r.flags&&(r.check=F(r.check,n,d,a)),s-=d,a+=d,x)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===s)break e;d=0;do{x=n[a+d++],r.head&&x&&r.length<65536&&(r.head.comment+=String.fromCharCode(x))}while(x&&d<s);if(512&r.flags&&(r.check=F(r.check,n,d,a)),s-=d,a+=d,x)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;u<16;){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}if(l!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}l=0,u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;u<32;){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}e.adler=r.check=ve(l),l=0,u=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=o,e.avail_out=f,e.next_in=a,e.avail_in=s,r.hold=l,r.bits=u,ue;e.adler=r.check=1,r.mode=12;case 12:if(t===oe||t===se)break e;case 13:if(r.last){l>>>=7&u,u-=7&u,r.mode=27;break}for(;u<3;){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}switch(r.last=1&l,u-=1,3&(l>>>=1)){case 0:r.mode=14;break;case 1:if(Pe(r),r.mode=20,t===se){l>>>=2,u-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}l>>>=2,u-=2;break;case 14:for(l>>>=7&u,u-=7&u;u<32;){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}if((65535&l)!=(l>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&l,l=0,u=0,r.mode=15,t===se)break e;case 15:r.mode=16;case 16:if(d=r.length){if(d>s&&(d=s),d>f&&(d=f),0===d)break e;i.set(n.subarray(a,a+d),o),s-=d,a+=d,f-=d,o+=d,r.length-=d;break}r.mode=12;break;case 17:for(;u<14;){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}if(r.nlen=257+(31&l),l>>>=5,u-=5,r.ndist=1+(31&l),l>>>=5,u-=5,r.ncode=4+(15&l),l>>>=4,u-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;u<3;){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}r.lens[S[r.have++]]=7&l,l>>>=3,u-=3}for(;r.have<19;)r.lens[S[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,A={bits:r.lenbits},_=ie(0,r.lens,0,19,r.lencode,0,r.work,A),r.lenbits=A.bits,_){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;y=(I=r.lencode[l&(1<<r.lenbits)-1])>>>16&255,w=65535&I,!((v=I>>>24)<=u);){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}if(w<16)l>>>=v,u-=v,r.lens[r.have++]=w;else{if(16===w){for(P=v+2;u<P;){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}if(l>>>=v,u-=v,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}x=r.lens[r.have-1],d=3+(3&l),l>>>=2,u-=2}else if(17===w){for(P=v+3;u<P;){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}u-=v,x=0,d=3+(7&(l>>>=v)),l>>>=3,u-=3}else{for(P=v+7;u<P;){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}u-=v,x=0,d=11+(127&(l>>>=v)),l>>>=7,u-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;d--;)r.lens[r.have++]=x}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,A={bits:r.lenbits},_=ie(1,r.lens,0,r.nlen,r.lencode,0,r.work,A),r.lenbits=A.bits,_){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,A={bits:r.distbits},_=ie(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,A),r.distbits=A.bits,_){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,t===se)break e;case 20:r.mode=21;case 21:if(s>=6&&f>=258){e.next_out=o,e.avail_out=f,e.next_in=a,e.avail_in=s,r.hold=l,r.bits=u,$(e,h),o=e.next_out,i=e.output,f=e.avail_out,a=e.next_in,n=e.input,s=e.avail_in,l=r.hold,u=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;y=(I=r.lencode[l&(1<<r.lenbits)-1])>>>16&255,w=65535&I,!((v=I>>>24)<=u);){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}if(y&&0==(240&y)){for(g=v,b=y,k=w;y=(I=r.lencode[k+((l&(1<<g+b)-1)>>g)])>>>16&255,w=65535&I,!(g+(v=I>>>24)<=u);){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}l>>>=g,u-=g,r.back+=g}if(l>>>=v,u-=v,r.back+=v,r.length=w,0===y){r.mode=26;break}if(32&y){r.back=-1,r.mode=12;break}if(64&y){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&y,r.mode=22;case 22:if(r.extra){for(P=r.extra;u<P;){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;y=(I=r.distcode[l&(1<<r.distbits)-1])>>>16&255,w=65535&I,!((v=I>>>24)<=u);){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}if(0==(240&y)){for(g=v,b=y,k=w;y=(I=r.distcode[k+((l&(1<<g+b)-1)>>g)])>>>16&255,w=65535&I,!(g+(v=I>>>24)<=u);){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}l>>>=g,u-=g,r.back+=g}if(l>>>=v,u-=v,r.back+=v,64&y){e.msg="invalid distance code",r.mode=30;break}r.offset=w,r.extra=15&y,r.mode=24;case 24:if(r.extra){for(P=r.extra;u<P;){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===f)break e;if(d=h-f,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}d>r.wnext?(d-=r.wnext,p=r.wsize-d):p=r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=i,p=o-r.offset,d=r.length;d>f&&(d=f),f-=d,r.length-=d;do{i[o++]=m[p++]}while(--d);0===r.length&&(r.mode=21);break;case 26:if(0===f)break e;i[o++]=r.length,f--,r.mode=21;break;case 27:if(r.wrap){for(;u<32;){if(0===s)break e;s--,l|=n[a++]<<u,u+=8}if(h-=f,e.total_out+=h,r.total+=h,h&&(e.adler=r.check=r.flags?F(r.check,i,h,o-h):V(r.check,i,h,o-h)),h=f,(r.flags?l:ve(l))!==r.check){e.msg="incorrect data check",r.mode=30;break}l=0,u=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;u<32;){if(0===s)break e;s--,l+=n[a++]<<u,u+=8}if(l!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}l=0,u=0}r.mode=29;case 29:_=le;break e;case 30:_=he;break e;case 31:return de;default:return ce}return e.next_out=o,e.avail_out=f,e.next_in=a,e.avail_in=s,r.hold=l,r.bits=u,(r.wsize||h!==e.avail_out&&r.mode<30&&(r.mode<27||t!==ae))&&Ie(e,e.output,e.next_out,h-e.avail_out),c-=e.avail_in,h-=e.avail_out,e.total_in+=c,e.total_out+=h,r.total+=h,r.wrap&&h&&(e.adler=r.check=r.flags?F(r.check,i,h,e.next_out-h):V(r.check,i,h,e.next_out-h)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===c&&0===h||t===ae)&&_===fe&&(_=pe),_},inflateEnd:function(e){if(!e||!e.state)return ce;var t=e.state;return t.window&&(t.window=null),e.state=null,fe},inflateGetHeader:function(e,t){if(!e||!e.state)return ce;var r=e.state;return 0==(2&r.wrap)?ce:(r.head=t,t.done=!1,fe)},inflateSetDictionary:function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?ce:11===r.mode&&V(1,t,n,0)!==r.check?he:Ie(e,t,n,n)?(r.mode=31,de):(r.havedict=1,fe):ce},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},Te=Object.prototype.toString,De=j.Z_NO_FLUSH,Ee=j.Z_FINISH,Be=j.Z_OK,Oe=j.Z_STREAM_END,Me=j.Z_NEED_DICT,Ce=j.Z_STREAM_ERROR,Le=j.Z_DATA_ERROR,Re=j.Z_MEM_ERROR;function Ve(e){this.options=Z({chunkSize:65536,windowBits:15,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Q,this.strm.avail_out=0;var r=Ue.inflateInit2(this.strm,t.windowBits);if(r!==Be)throw new Error(z[r]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=W(t.dictionary):"[object ArrayBuffer]"===Te.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Ue.inflateSetDictionary(this.strm,t.dictionary))!==Be))throw new Error(z[r])}function Ge(e,t){var r=new Ve(t);if(r.push(e),r.err)throw r.msg||z[r.err];return r.result}Ve.prototype.push=function(e,t){var r,n,i,a=this.strm,o=this.options.chunkSize,s=this.options.dictionary;if(this.ended)return!1;for(n=t===~~t?t:!0===t?Ee:De,"[object ArrayBuffer]"===Te.call(e)?a.input=new 
8Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(o),a.next_out=0,a.avail_out=o),(r=Ue.inflate(a,n))===Me&&s&&((r=Ue.inflateSetDictionary(a,s))===Be?r=Ue.inflate(a,n):r===Le&&(r=Me));a.avail_in>0&&r===Oe&&a.state.wrap>0&&0!==e[a.next_in];)Ue.inflateReset(a),r=Ue.inflate(a,n);switch(r){case Ce:case Le:case Me:case Re:return this.onEnd(r),this.ended=!0,!1}if(i=a.avail_out,a.next_out&&(0===a.avail_out||r===Oe))if("string"===this.options.to){var f=J(a.output,a.next_out),l=a.next_out-f,u=q(a.output,f);a.next_out=l,a.avail_out=o-l,l&&a.output.set(a.output.subarray(f,f+l),0),this.onData(u)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(r!==Be||0!==i){if(r===Oe)return r=Ue.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},Ve.prototype.onData=function(e){this.chunks.push(e)},Ve.prototype.onEnd=function(e){e===Be&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=K(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Fe={Inflate:Ve,inflate:Ge,inflateRaw:function(e,t){return(t=t||{}).raw=!0,Ge(e,t)},ungzip:Ge,constants:j}.inflate;function ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}var je=function(e){p(r,b);var t=ze(r);function r(){return u(this,r),t.apply(this,arguments)}return h(r,[{key:"decodeBlock",value:function(e){return Fe(new Uint8Array(e)).buffer}}]),r}(),Ne=Object.freeze({__proto__:null,default:je});function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}var Ke,He=function(e){p(r,b);var t=Ze(r);function r(){return u(this,r),t.apply(this,arguments)}return h(r,[{key:"decodeBlock",value:function(e){for(var t=new DataView(e),r=[],n=0;n<e.byteLength;++n){var i=t.getInt8(n);if(i<0){var a=t.getUint8(n+1);i=-i;for(var o=0;o<=i;++o)r.push(a);n+=1}else{for(var s=0;s<=i;++s)r.push(t.getUint8(n+s+1));n+=i+1}}return new Uint8Array(r).buffer}}]),r}(),Ye=Object.freeze({__proto__:null,default:He}),Xe={exports:{}};Ke=Xe,\n/* Copyright 2015-2021 Esri. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @preserve */\nfunction(){var e,t,r,n,i,a,o,s,f,l,u,c,h,d,p,m,v=(e={defaultNoDataValue:-34027999387901484e22,decode:function(a,o){var s=(o=o||{}).encodedMaskData||null===o.encodedMaskData,f=i(a,o.inputOffset||0,s),l=null!==o.noDataValue?o.noDataValue:e.defaultNoDataValue,u=t(f,o.pixelType||Float32Array,o.encodedMaskData,l,o.returnMask),c={width:f.width,height:f.height,pixelData:u.resultPixels,minValue:u.minValue,maxValue:f.pixels.maxValue,noDataValue:l};return u.resultMask&&(c.maskData=u.resultMask),o.returnEncodedMask&&f.mask&&(c.encodedMaskData=f.mask.bitset?f.mask.bitset:null),o.returnFileInfo&&(c.fileInfo=r(f),o.computeUsedBitDepths&&(c.fileInfo.bitDepths=n(f))),c}},t=function(e,t,r,n,i){var o,s,f,l=0,u=e.pixels.numBlocksX,c=e.pixels.numBlocksY,h=Math.floor(e.width/u),d=Math.floor(e.height/c),p=2*e.maxZError,m=Number.MAX_VALUE;r=r||(e.mask?e.mask.bitset:null),s=new t(e.width*e.height),i&&r&&(f=new Uint8Array(e.width*e.height));for(var v,y,w=new Float32Array(h*d),g=0;g<=c;g++){var b=g!==c?d:e.height%c;if(0!==b)for(var k=0;k<=u;k++){var x=k!==u?h:e.width%u;if(0!==x){var _,A,P,I,U=g*e.width*d+k*h,S=e.width-x,T=e.pixels.blocks[l];if(T.encoding<2?(0===T.encoding?_=T.rawData:(a(T.stuffedData,T.bitsPerPixel,T.numValidPixels,T.offset,p,w,e.pixels.maxValue),_=w),A=0):P=2===T.encoding?0:T.offset,r)for(y=0;y<b;y++){for(7&U&&(I=r[U>>3],I<<=7&U),v=0;v<x;v++)7&U||(I=r[U>>3]),128&I?(f&&(f[U]=1),m=m>(o=T.encoding<2?_[A++]:P)?o:m,s[U++]=o):(f&&(f[U]=0),s[U++]=n),I<<=1;U+=S}else if(T.encoding<2)for(y=0;y<b;y++){for(v=0;v<x;v++)m=m>(o=_[A++])?o:m,s[U++]=o;U+=S}else for(m=m>P?P:m,y=0;y<b;y++){for(v=0;v<x;v++)s[U++]=P;U+=S}if(1===T.encoding&&A!==T.numValidPixels)throw"Block and Mask do not match";l++}}}return{resultPixels:s,resultMask:f,minValue:m}},r=function(e){return{fileIdentifierString:e.fileIdentifierString,fileVersion:e.fileVersion,imageType:e.imageType,height:e.height,width:e.width,maxZError:e.maxZError,eofOffset:e.eofOffset,mask:e.mask?{numBlocksX:e.mask.numBlocksX,numBlocksY:e.mask.numBlocksY,numBytes:e.mask.numBytes,maxValue:e.mask.maxValue}:null,pixels:{numBlocksX:e.pixels.numBlocksX,numBlocksY:e.pixels.numBlocksY,numBytes:e.pixels.numBytes,maxValue:e.pixels.maxValue,noDataValue:e.noDataValue}}},n=function(e){for(var t=e.pixels.numBlocksX*e.pixels.numBlocksY,r={},n=0;n<t;n++){var i=e.pixels.blocks[n];0===i.encoding?r.float32=!0:1===i.encoding?r[i.bitsPerPixel]=!0:r[0]=!0}return Object.keys(r)},i=function(e,t,r){var n={},i=new Uint8Array(e,t,10);if(n.fileIdentifierString=String.fromCharCode.apply(null,i),"CntZImage"!==n.fileIdentifierString.trim())throw"Unexpected file identifier string: "+n.fileIdentifierString;t+=10;var a=new DataView(e,t,24);if(n.fileVersion=a.getInt32(0,!0),n.imageType=a.getInt32(4,!0),n.height=a.getUint32(8,!0),n.width=a.getUint32(12,!0),n.maxZError=a.getFloat64(16,!0),t+=24,!r)if(a=new DataView(e,t,16),n.mask={},n.mask.numBlocksY=a.getUint32(0,!0),n.mask.numBlocksX=a.getUint32(4,!0),n.mask.numBytes=a.getUint32(8,!0),n.mask.maxValue=a.getFloat32(12,!0),t+=16,n.mask.numBytes>0){var o=new Uint8Array(Math.ceil(n.width*n.height/8)),s=(a=new DataView(e,t,n.mask.numBytes)).getInt16(0,!0),f=2,l=0;do{if(s>0)for(;s--;)o[l++]=a.getUint8(f++);else{var u=a.getUint8(f++);for(s=-s;s--;)o[l++]=u}s=a.getInt16(f,!0),f+=2}while(f<n.mask.numBytes);if(-32768!==s||l<o.length)throw"Unexpected end of mask RLE encoding";n.mask.bitset=o,t+=n.mask.numBytes}else 0==(n.mask.numBytes|n.mask.numBlocksY|n.mask.maxValue)&&(n.mask.bitset=new 
8Uint8Array(Math.ceil(n.width*n.height/8)));a=new DataView(e,t,16),n.pixels={},n.pixels.numBlocksY=a.getUint32(0,!0),n.pixels.numBlocksX=a.getUint32(4,!0),n.pixels.numBytes=a.getUint32(8,!0),n.pixels.maxValue=a.getFloat32(12,!0),t+=16;var c=n.pixels.numBlocksX,h=n.pixels.numBlocksY,d=c+(n.width%c>0?1:0),p=h+(n.height%h>0?1:0);n.pixels.blocks=new Array(d*p);for(var m=0,v=0;v<p;v++)for(var y=0;y<d;y++){var w=0,g=e.byteLength-t;a=new DataView(e,t,Math.min(10,g));var b={};n.pixels.blocks[m++]=b;var k=a.getUint8(0);if(w++,b.encoding=63&k,b.encoding>3)throw"Invalid block encoding ("+b.encoding+")";if(2!==b.encoding){if(0!==k&&2!==k){if(k>>=6,b.offsetType=k,2===k)b.offset=a.getInt8(1),w++;else if(1===k)b.offset=a.getInt16(1,!0),w+=2;else{if(0!==k)throw"Invalid block offset type";b.offset=a.getFloat32(1,!0),w+=4}if(1===b.encoding)if(k=a.getUint8(w),w++,b.bitsPerPixel=63&k,k>>=6,b.numValidPixelsType=k,2===k)b.numValidPixels=a.getUint8(w),w++;else if(1===k)b.numValidPixels=a.getUint16(w,!0),w+=2;else{if(0!==k)throw"Invalid valid pixel count type";b.numValidPixels=a.getUint32(w,!0),w+=4}}var x;if(t+=w,3!==b.encoding)if(0===b.encoding){var _=(n.pixels.numBytes-1)/4;if(_!==Math.floor(_))throw"uncompressed block has invalid length";x=new ArrayBuffer(4*_),new Uint8Array(x).set(new Uint8Array(e,t,4*_));var A=new Float32Array(x);b.rawData=A,t+=4*_}else if(1===b.encoding){var P=Math.ceil(b.numValidPixels*b.bitsPerPixel/8),I=Math.ceil(P/4);x=new ArrayBuffer(4*I),new Uint8Array(x).set(new Uint8Array(e,t,P)),b.stuffedData=new Uint32Array(x),t+=P}}else t++}return n.eofOffset=t,n},a=function(e,t,r,n,i,a,o){var s,f,l,u=(1<<t)-1,c=0,h=0,d=Math.ceil((o-n)/i),p=4*e.length-Math.ceil(t*r/8);for(e[e.length-1]<<=8*p,s=0;s<r;s++){if(0===h&&(l=e[c++],h=32),h>=t)f=l>>>h-t&u,h-=t;else{var m=t-h;f=(l&u)<<m&u,f+=(l=e[c++])>>>(h=32-m)}a[s]=f<d?n+f*i:o}return a},e),y=(o=function(e,t,r,n,i,a,o,s){var f,l,u,c,h,d=(1<<r)-1,p=0,m=0,v=4*e.length-Math.ceil(r*n/8);if(e[e.length-1]<<=8*v,i)for(f=0;f<n;f++)0===m&&(u=e[p++],m=32),m>=r?(l=u>>>m-r&d,m-=r):(l=(u&d)<<(c=r-m)&d,l+=(u=e[p++])>>>(m=32-c)),t[f]=i[l];else for(h=Math.ceil((s-a)/o),f=0;f<n;f++)0===m&&(u=e[p++],m=32),m>=r?(l=u>>>m-r&d,m-=r):(l=(u&d)<<(c=r-m)&d,l+=(u=e[p++])>>>(m=32-c)),t[f]=l<h?a+l*o:s},s=function(e,t,r,n,i,a){var o,s=(1<<t)-1,f=0,l=0,u=0,c=0,h=0,d=[],p=4*e.length-Math.ceil(t*r/8);e[e.length-1]<<=8*p;var m=Math.ceil((a-n)/i);for(l=0;l<r;l++)0===c&&(o=e[f++],c=32),c>=t?(h=o>>>c-t&s,c-=t):(h=(o&s)<<(u=t-c)&s,h+=(o=e[f++])>>>(c=32-u)),d[l]=h<m?n+h*i:a;return d.unshift(n),d},f=function(e,t,r,n,i,a,o,s){var f,l,u,c,h=(1<<r)-1,d=0,p=0,m=0;if(i)for(f=0;f<n;f++)0===p&&(u=e[d++],p=32,m=0),p>=r?(l=u>>>m&h,p-=r,m+=r):(l=u>>>m&h,p=32-(c=r-p),l|=((u=e[d++])&(1<<c)-1)<<r-c,m=c),t[f]=i[l];else{var v=Math.ceil((s-a)/o);for(f=0;f<n;f++)0===p&&(u=e[d++],p=32,m=0),p>=r?(l=u>>>m&h,p-=r,m+=r):(l=u>>>m&h,p=32-(c=r-p),l|=((u=e[d++])&(1<<c)-1)<<r-c,m=c),t[f]=l<v?a+l*o:s}return t},l=function(e,t,r,n,i,a){var o,s=(1<<t)-1,f=0,l=0,u=0,c=0,h=0,d=0,p=[],m=Math.ceil((a-n)/i);for(l=0;l<r;l++)0===c&&(o=e[f++],c=32,d=0),c>=t?(h=o>>>d&s,c-=t,d+=t):(h=o>>>d&s,c=32-(u=t-c),h|=((o=e[f++])&(1<<u)-1)<<t-u,d=u),p[l]=h<m?n+h*i:a;return p.unshift(n),p},u=function(e,t,r,n){var i,a,o,s,f=(1<<r)-1,l=0,u=0,c=4*e.length-Math.ceil(r*n/8);for(e[e.length-1]<<=8*c,i=0;i<n;i++)0===u&&(o=e[l++],u=32),u>=r?(a=o>>>u-r&f,u-=r):(a=(o&f)<<(s=r-u)&f,a+=(o=e[l++])>>>(u=32-s)),t[i]=a;return t},c=function(e,t,r,n){var i,a,o,s,f=(1<<r)-1,l=0,u=0,c=0;for(i=0;i<n;i++)0===u&&(o=e[l++],u=32,c=0),u>=r?(a=o>>>c&f,u-=r,c+=r):(a=o>>>c&f,u=32-(s=r-u),a|=((o=e[l++])&(1<<s)-1)<<r-s,c=s),t[i]=a;return t},h={HUFFMAN_LUT_BITS_MAX:12,computeChecksumFletcher32:function(e){for(var t=65535,r=65535,n=e.length,i=Math.floor(n/2),a=0;i;){var o=i>=359?359:i;i-=o;do{t+=e[a++]<<8,r+=t+=e[a++]}while(--o);t=(65535&t)+(t>>>16),r=(65535&r)+(r>>>16)}return 1&n&&(r+=t+=e[a]<<8),((r=(65535&r)+(r>>>16))<<16|(t=(65535&t)+(t>>>16)))>>>0},readHeaderInfo:function(e,t){var r=t.ptr,n=new Uint8Array(e,r,6),i={};if(i.fileIdentifierString=String.fromCharCode.apply(null,n),0!==i.fileIdentifierString.lastIndexOf("Lerc2",0))throw"Unexpected file identifier string (expect Lerc2 ): "+i.fileIdentifierString;r+=6;var a,o=new DataView(e,r,8),s=o.getInt32(0,!0);if(i.fileVersion=s,r+=4,s>=3&&(i.checksum=o.getUint32(4,!0),r+=4),o=new DataView(e,r,12),i.height=o.getUint32(0,!0),i.width=o.getUint32(4,!0),r+=8,s>=4?(i.numDims=o.getUint32(8,!0),r+=4):i.numDims=1,o=new DataView(e,r,40),i.num
8ValidPixel=o.getUint32(0,!0),i.microBlockSize=o.getInt32(4,!0),i.blobSize=o.getInt32(8,!0),i.imageType=o.getInt32(12,!0),i.maxZError=o.getFloat64(16,!0),i.zMin=o.getFloat64(24,!0),i.zMax=o.getFloat64(32,!0),r+=40,t.headerInfo=i,t.ptr=r,s>=3&&(a=s>=4?52:48,this.computeChecksumFletcher32(new Uint8Array(e,r-a,i.blobSize-14))!==i.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(e,t){var r=t.headerInfo,n=this.getDataTypeArray(r.imageType),i=r.numDims*this.getDataTypeSize(r.imageType),a=this.readSubArray(e,t.ptr,n,i),o=this.readSubArray(e,t.ptr+i,n,i);t.ptr+=2*i;var s,f=!0;for(s=0;s<r.numDims;s++)if(a[s]!==o[s]){f=!1;break}return r.minValues=a,r.maxValues=o,f},readSubArray:function(e,t,r,n){var i;if(r===Uint8Array)i=new Uint8Array(e,t,n);else{var a=new ArrayBuffer(n);new Uint8Array(a).set(new Uint8Array(e,t,n)),i=new r(a)}return i},readMask:function(e,t){var r,n,i=t.ptr,a=t.headerInfo,o=a.width*a.height,s=a.numValidPixel,f=new DataView(e,i,4),l={};if(l.numBytes=f.getUint32(0,!0),i+=4,(0===s||o===s)&&0!==l.numBytes)throw"invalid mask";if(0===s)r=new Uint8Array(Math.ceil(o/8)),l.bitset=r,n=new Uint8Array(o),t.pixels.resultMask=n,i+=l.numBytes;else if(l.numBytes>0){r=new Uint8Array(Math.ceil(o/8));var u=(f=new DataView(e,i,l.numBytes)).getInt16(0,!0),c=2,h=0,d=0;do{if(u>0)for(;u--;)r[h++]=f.getUint8(c++);else for(d=f.getUint8(c++),u=-u;u--;)r[h++]=d;u=f.getInt16(c,!0),c+=2}while(c<l.numBytes);if(-32768!==u||h<r.length)throw"Unexpected end of mask RLE encoding";n=new Uint8Array(o);var p=0,m=0;for(m=0;m<o;m++)7&m?(p=r[m>>3],p<<=7&m):p=r[m>>3],128&p&&(n[m]=1);t.pixels.resultMask=n,l.bitset=r,i+=l.numBytes}return t.ptr=i,t.mask=l,!0},readDataOneSweep:function(e,t,r,n){var i,a=t.ptr,o=t.headerInfo,s=o.numDims,f=o.width*o.height,l=o.imageType,u=o.numValidPixel*h.getDataTypeSize(l)*s,c=t.pixels.resultMask;if(r===Uint8Array)i=new Uint8Array(e,a,u);else{var d=new ArrayBuffer(u);new Uint8Array(d).set(new Uint8Array(e,a,u)),i=new r(d)}if(i.length===f*s)t.pixels.resultPixels=n?h.swapDimensionOrder(i,f,s,r,!0):i;else{t.pixels.resultPixels=new r(f*s);var p=0,m=0,v=0,y=0;if(s>1){if(n){for(m=0;m<f;m++)if(c[m])for(y=m,v=0;v<s;v++,y+=f)t.pixels.resultPixels[y]=i[p++]}else for(m=0;m<f;m++)if(c[m])for(y=m*s,v=0;v<s;v++)t.pixels.resultPixels[y+v]=i[p++]}else for(m=0;m<f;m++)c[m]&&(t.pixels.resultPixels[m]=i[p++])}return a+=u,t.ptr=a,!0},readHuffmanTree:function(e,t){var r=this.HUFFMAN_LUT_BITS_MAX,n=new DataView(e,t.ptr,16);if(t.ptr+=16,n.getInt32(0,!0)<2)throw"unsupported Huffman version";var i=n.getInt32(4,!0),a=n.getInt32(8,!0),o=n.getInt32(12,!0);if(a>=o)return!1;var s=new Uint32Array(o-a);h.decodeBits(e,t,s);var f,l,u,c,p=[];for(f=a;f<o;f++)p[l=f-(f<i?0:i)]={first:s[f-a],second:null};var m=e.byteLength-t.ptr,v=Math.ceil(m/4),y=new ArrayBuffer(4*v);new Uint8Array(y).set(new Uint8Array(e,t.ptr,m));var w,g=new Uint32Array(y),b=0,k=0;for(w=g[0],f=a;f<o;f++)(c=p[l=f-(f<i?0:i)].first)>0&&(p[l].second=w<<b>>>32-c,32-b>=c?32===(b+=c)&&(b=0,w=g[++k]):(b+=c-32,w=g[++k],p[l].second|=w>>>32-b));var x=0,_=0,A=new d;for(f=0;f<p.length;f++)void 0!==p[f]&&(x=Math.max(x,p[f].first));_=x>=r?r:x;var P,I,U,S,T,D=[];for(f=a;f<o;f++)if((c=p[l=f-(f<i?0:i)].first)>0)if(P=[c,l],c<=_)for(I=p[l].second<<_-c,U=1<<_-c,u=0;u<U;u++)D[I|u]=P;else for(I=p[l].second,T=A,S=c-1;S>=0;S--)I>>>S&1?(T.right||(T.right=new d),T=T.right):(T.left||(T.left=new d),T=T.left),0!==S||T.val||(T.val=P[1]);return{decodeLut:D,numBitsLUTQick:_,numBitsLUT:x,tree:A,stuffedData:g,srcPtr:k,bitPos:b}},readHuffman:function(e,t,r,n){var i,a,o,s,f,l,u,c,d,p=t.headerInfo.numDims,m=t.headerInfo.height,v=t.headerInfo.width,y=v*m,w=this.readHuffmanTree(e,t),g=w.decodeLut,b=w.tree,k=w.stuffedData,x=w.srcPtr,_=w.bitPos,A=w.numBitsLUTQick,P=w.numBitsLUT,I=0===t.headerInfo.imageType?128:0,U=t.pixels.resultMask,S=0;_>0&&(x++,_=0);var T,D=k[x],E=1===t.encodeMode,B=new r(y*p),O=B;if(p<2||E){for(T=0;T<p;T++)if(p>1&&(O=new r(B.buffer,y*T,y),S=0),t.headerInfo.numValidPixel===v*m)for(c=0,l=0;l<m;l++)for(u=0;u<v;u++,c++){if(a=0,f=s=D<<_>>>32-A,32-_<A&&(f=s|=k[x+1]>>>64-_-A),g[f])a=g[f][1],_+=g[f][0];else for(f=s=D<<_>>>32-P,32-_<P&&(f=s|=k[x+1]>>>64-_-P),i=b,d=0;d<P;d++)if(!(i=s>
8>>P-d-1&1?i.right:i.left).left&&!i.right){a=i.val,_=_+d+1;break}_>=32&&(_-=32,D=k[++x]),o=a-I,E?(o+=u>0?S:l>0?O[c-v]:S,o&=255,O[c]=o,S=o):O[c]=o}else for(c=0,l=0;l<m;l++)for(u=0;u<v;u++,c++)if(U[c]){if(a=0,f=s=D<<_>>>32-A,32-_<A&&(f=s|=k[x+1]>>>64-_-A),g[f])a=g[f][1],_+=g[f][0];else for(f=s=D<<_>>>32-P,32-_<P&&(f=s|=k[x+1]>>>64-_-P),i=b,d=0;d<P;d++)if(!(i=s>>>P-d-1&1?i.right:i.left).left&&!i.right){a=i.val,_=_+d+1;break}_>=32&&(_-=32,D=k[++x]),o=a-I,E?(u>0&&U[c-1]?o+=S:l>0&&U[c-v]?o+=O[c-v]:o+=S,o&=255,O[c]=o,S=o):O[c]=o}}else for(c=0,l=0;l<m;l++)for(u=0;u<v;u++)if(c=l*v+u,!U||U[c])for(T=0;T<p;T++,c+=y){if(a=0,f=s=D<<_>>>32-A,32-_<A&&(f=s|=k[x+1]>>>64-_-A),g[f])a=g[f][1],_+=g[f][0];else for(f=s=D<<_>>>32-P,32-_<P&&(f=s|=k[x+1]>>>64-_-P),i=b,d=0;d<P;d++)if(!(i=s>>>P-d-1&1?i.right:i.left).left&&!i.right){a=i.val,_=_+d+1;break}_>=32&&(_-=32,D=k[++x]),o=a-I,O[c]=o}t.ptr=t.ptr+4*(x+1)+(_>0?4:0),t.pixels.resultPixels=B,p>1&&!n&&(t.pixels.resultPixels=h.swapDimensionOrder(B,y,p,r))},decodeBits:function(e,t,r,n,i){var a=t.headerInfo,h=a.fileVersion,d=0,p=e.byteLength-t.ptr>=5?5:e.byteLength-t.ptr,m=new DataView(e,t.ptr,p),v=m.getUint8(0);d++;var y=v>>6,w=0===y?4:3-y,g=(32&v)>0,b=31&v,k=0;if(1===w)k=m.getUint8(d),d++;else if(2===w)k=m.getUint16(d,!0),d+=2;else{if(4!==w)throw"Invalid valid pixel count type";k=m.getUint32(d,!0),d+=4}var x,_,A,P,I,U,S,T,D,E=2*a.maxZError,B=a.numDims>1?a.maxValues[i]:a.zMax;if(g){for(t.counter.lut++,T=m.getUint8(d),d++,P=Math.ceil((T-1)*b/8),I=Math.ceil(P/4),_=new ArrayBuffer(4*I),A=new Uint8Array(_),t.ptr+=d,A.set(new Uint8Array(e,t.ptr,P)),S=new Uint32Array(_),t.ptr+=P,D=0;T-1>>>D;)D++;P=Math.ceil(k*D/8),I=Math.ceil(P/4),_=new ArrayBuffer(4*I),(A=new Uint8Array(_)).set(new Uint8Array(e,t.ptr,P)),x=new Uint32Array(_),t.ptr+=P,U=h>=3?l(S,b,T-1,n,E,B):s(S,b,T-1,n,E,B),h>=3?f(x,r,D,k,U):o(x,r,D,k,U)}else t.counter.bitstuffer++,D=b,t.ptr+=d,D>0&&(P=Math.ceil(k*D/8),I=Math.ceil(P/4),_=new ArrayBuffer(4*I),(A=new Uint8Array(_)).set(new Uint8Array(e,t.ptr,P)),x=new Uint32Array(_),t.ptr+=P,h>=3?null==n?c(x,r,D,k):f(x,r,D,k,!1,n,E,B):null==n?u(x,r,D,k):o(x,r,D,k,!1,n,E,B))},readTiles:function(e,t,r,n){var i=t.headerInfo,a=i.width,o=i.height,s=a*o,f=i.microBlockSize,l=i.imageType,u=h.getDataTypeSize(l),c=Math.ceil(a/f),d=Math.ceil(o/f);t.pixels.numBlocksY=d,t.pixels.numBlocksX=c,t.pixels.ptr=0;var p,m,v,y,w,g,b,k,x,_,A=0,P=0,I=0,U=0,S=0,T=0,D=0,E=0,B=0,O=0,M=0,C=0,L=0,R=0,V=0,G=new r(f*f),F=o%f||f,z=a%f||f,j=i.numDims,N=t.pixels.resultMask,Z=t.pixels.resultPixels,K=i.fileVersion>=5?14:15,H=i.zMax;for(I=0;I<d;I++)for(S=I!==d-1?f:F,U=0;U<c;U++)for(O=I*a*f+U*f,M=a-(T=U!==c-1?f:z),k=0;k<j;k++){if(j>1?(_=Z,O=I*a*f+U*f,Z=new r(t.pixels.resultPixels.buffer,s*k*u,s),H=i.maxValues[k]):_=null,D=e.byteLength-t.ptr,m={},V=0,E=(p=new DataView(e,t.ptr,Math.min(10,D))).getUint8(0),V++,x=i.fileVersion>=5?4&E:0,B=E>>6&255,(E>>2&K)!=(U*f>>3&K))throw"integrity issue";if(x&&0===k)throw"integrity issue";if((w=3&E)>3)throw t.ptr+=V,"Invalid block encoding ("+w+")";if(2!==w)if(0===w){if(x)throw"integrity issue";if(t.counter.uncompressed++,t.ptr+=V,C=(C=S*T*u)<(L=e.byteLength-t.ptr)?C:L,v=new ArrayBuffer(C%u==0?C:C+u-C%u),new Uint8Array(v).set(new Uint8Array(e,t.ptr,C)),y=new r(v),R=0,N)for(A=0;A<S;A++){for(P=0;P<T;P++)N[O]&&(Z[O]=y[R++]),O++;O+=M}else for(A=0;A<S;A++){for(P=0;P<T;P++)Z[O++]=y[R++];O+=M}t.ptr+=R*u}else if(g=h.getDataTypeUsed(x&&l<6?4:l,B),b=h.getOnePixel(m,V,g,p),V+=h.getDataTypeSize(g),3===w)if(t.ptr+=V,t.counter.constantoffset++,N)for(A=0;A<S;A++){for(P=0;P<T;P++)N[O]&&(Z[O]=x?Math.min(H,_[O]+b):b),O++;O+=M}else for(A=0;A<S;A++){for(P=0;P<T;P++)Z[O]=x?Math.min(H,_[O]+b):b,O++;O+=M}else if(t.ptr+=V,h.decodeBits(e,t,G,b,k),V=0,x)if(N)for(A=0;A<S;A++){for(P=0;P<T;P++)N[O]&&(Z[O]=G[V++]+_[O]),O++;O+=M}else for(A=0;A<S;A++){for(P=0;P<T;P++)Z[O]=G[V++]+_[O],O++;O+=M}else if(N)for(A=0;A<S;A++){for(P=0;P<T;P++)N[O]&&(Z[O]=G[V++]),O++;O+=M}else for(A=0;A<S;A++){for(P=0;P<T;P++)Z[O++]=G[V++];O+=M}else{if(x)if(N)for(A=0;A<S;A++)for(P=0;P<T;P++)N[O]&&(Z[O]=_[O]),O++;else for(A=0;A<S;A++)for(P=0;P<T;P++)Z[O]=_[O],O++;t.counter.constant++,t.ptr+=V}}j>1&&!n&&(t.pixels.resultPixels=h.swapDimensionOrder(t.pixels.resultPixels,s,j,r))},formatFileInfo:function(e){return{fileIdentifierString:e.headerInfo.fileIdentifierString,fileVersion:e.headerInfo.fileVersion,imageType:e.headerInfo.imageType,height:e.headerInfo.height,width:e.headerInfo.width,numValidPixel:e.headerInfo.numValidPixel,microBlockSize:e.headerInfo.microBlockSize,blobSize:e.headerInfo.blobSize,maxZError:e.headerInfo.maxZError,pixelType:h.getPixelType(e.headerInfo.imageType),eofOffset:e.eofOffset,mask:e.mask?{numBytes:e.mask.numBytes}:null,pixels:{numBlocksX:e.pixels.numBlocksX,numBlocksY:e.pixels.numBlocksY,maxValue:e.headerInfo.zMax,minValue:e.headerInfo.zMin,noDataValue:e.noDataValue}}},constructConstantSurface:function(e,t){var r=e.headerInfo.zMax,n=e.headerInfo.zMin,i=e.headerInfo.maxValues,a=e.headerInfo.numDims,o=e.headerInfo.height*e.headerInfo.width,s=0,f=0,l=0,u=e.pixels.resultMask,c=e.pixels.resultPixels;if(u)if(a>1){if(t)for(s=0;s<a;s++)for(l=s*o,r=i[s],f=0;f<o;f++)u[f]&&(c[l+f]=r);else for(f=0;f<o;f++)if(u[f])for(l=f*a,s=0;s<a;s++)c[l+a]=i[s]}else for(f=0;f<o;f++)u[f]&&(c[f]=r);else if(a>1&&n!==r)if(t)for(s=0;s<a;s++)for(l=s*o,r=i[s],f=0;f<o;f++)c[l+f]=r;else for(f=0;f<o;f++)for(l=f*a,s=0;s<a;s++)c[l+s]=i[s];else for(f=0;f<o*a;f++)c[f]=r},getDataTypeArray:function(e){var t;switch(e){case 0:t=Int8Array;break;case 1:t=Uint8Array;break;case 2:t=Int16Array;break;case 3:t=Uint16Array;break;case 4:t=Int32Array;break;case 5:t=Uint32Array;break;case 6:default:t=Float32Array;break;case 7:t=Float64Array}return t},getPixelType:function(e){var t;switch(e){case 0:t="S8";break;case 1:t="U8";break;case 2:t="S16";break;case 3:t="U16";break;case 4:t="S32";break;case 5:t="U32";break;case 6:default:t="F32";break;case 7:t="F64"}return t},isValidPixelValue:function(e,t){if(null==t)return!1;var r;switch(e){case 0:r=t>=-128&&t<=127;break;case 1:r=t>=0&&t<=255;break;case 2:r=t>=-32768&&t<=32767;break;case 3:r=t>=0&&t<=65536;break;case 4:r=t>=-2147483648&&t<=2147483647;break;case 5:r=t>=0&&t<=4294967296;break;case 6:r=t>=-34027999387901484e22&&t<=34027999387901484e22;break;case 7:r=t>=-17976931348623157e292&&t<=17976931348623157e292;break;default:r=!1}return r},getDataTypeSize:function(e){var t=0;switch(e){case 0:case 1:t=1;break;case 2:case 3:t=2;break;
8case 4:case 5:case 6:t=4;break;case 7:t=8;break;default:t=e}return t},getDataTypeUsed:function(e,t){var r=e;switch(e){case 2:case 4:r=e-t;break;case 3:case 5:r=e-2*t;break;case 6:r=0===t?e:1===t?2:1;break;case 7:r=0===t?e:e-2*t+1;break;default:r=e}return r},getOnePixel:function(e,t,r,n){var i=0;switch(r){case 0:i=n.getInt8(t);break;case 1:i=n.getUint8(t);break;case 2:i=n.getInt16(t,!0);break;case 3:i=n.getUint16(t,!0);break;case 4:i=n.getInt32(t,!0);break;case 5:i=n.getUInt32(t,!0);break;case 6:i=n.getFloat32(t,!0);break;case 7:i=n.getFloat64(t,!0);break;default:throw"the decoder does not understand this pixel type"}return i},swapDimensionOrder:function(e,t,r,n,i){var a=0,o=0,s=0,f=0,l=e;if(r>1)if(l=new n(t*r),i)for(a=0;a<t;a++)for(f=a,s=0;s<r;s++,f+=t)l[f]=e[o++];else for(a=0;a<t;a++)for(f=a,s=0;s<r;s++,f+=t)l[o++]=e[f];return l}},d=function(e,t,r){this.val=e,this.left=t,this.right=r},{decode:function(e,t){var r=(t=t||{}).noDataValue,n=0,i={};i.ptr=t.inputOffset||0,i.pixels={},h.readHeaderInfo(e,i);var a=i.headerInfo,o=a.fileVersion,s=h.getDataTypeArray(a.imageType);if(o>5)throw"unsupported lerc version 2."+o;h.readMask(e,i),a.numValidPixel===a.width*a.height||i.pixels.resultMask||(i.pixels.resultMask=t.maskData);var f=a.width*a.height;i.pixels.resultPixels=new s(f*a.numDims),i.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var l,u=!t.returnPixelInterleavedDims;if(0!==a.numValidPixel)if(a.zMax===a.zMin)h.constructConstantSurface(i,u);else if(o>=4&&h.checkMinMaxRanges(e,i))h.constructConstantSurface(i,u);else{var c=new DataView(e,i.ptr,2),d=c.getUint8(0);if(i.ptr++,d)h.readDataOneSweep(e,i,s,u);else if(o>1&&a.imageType<=1&&Math.abs(a.maxZError-.5)<1e-5){var p=c.getUint8(1);if(i.ptr++,i.encodeMode=p,p>2||o<4&&p>1)throw"Invalid Huffman flag "+p;p?h.readHuffman(e,i,s,u):h.readTiles(e,i,s,u)}else h.readTiles(e,i,s,u)}i.eofOffset=i.ptr,t.inputOffset?(l=i.headerInfo.blobSize+t.inputOffset-i.ptr,Math.abs(l)>=1&&(i.eofOffset=t.inputOffset+i.headerInfo.blobSize)):(l=i.headerInfo.blobSize-i.ptr,Math.abs(l)>=1&&(i.eofOffset=i.headerInfo.blobSize));var m={width:a.width,height:a.height,pixelData:i.pixels.resultPixels,minValue:a.zMin,maxValue:a.zMax,validPixelCount:a.numValidPixel,dimCount:a.numDims,dimStats:{minValues:a.minValues,maxValues:a.maxValues},maskData:i.pixels.resultMask};if(i.pixels.resultMask&&h.isValidPixelValue(a.imageType,r)){var v=i.pixels.resultMask;for(n=0;n<f;n++)v[n]||(m.pixelData[n]=r);m.noDataValue=r}return i.noDataValue=r,t.returnFileInfo&&(m.fileInfo=h.formatFileInfo(i)),m},getBandCount:function(e){for(var t=0,r=0,n={ptr:0,pixels:{}};r<e.byteLength-58;)h.readHeaderInfo(e,n),r+=n.headerInfo.blobSize,t++,n.ptr=r;return t}}),w=(p=new ArrayBuffer(4),m=new Uint8Array(p),new Uint32Array(p)[0]=1,1===m[0]),g={decode:function(e,t){if(!w)throw"Big endian system is not supported.";var r,n,i=(t=t||{}).inputOffset||0,a=new Uint8Array(e,i,10),o=String.fromCharCode.apply(null,a);if("CntZImage"===o.trim())r=v,n=1;else{if("Lerc2"!==o.substring(0,5))throw"Unexpected file identifier string: "+o;r=y,n=2}for(var s,f,l,u,c,h,d=0,p=e.byteLength-10,m=[],g={width:0,height:0,pixels:[],pixelType:t.pixelType,mask:null,statistics:[]},b=0;i<p;){var k=r.decode(e,{inputOffset:i,encodedMaskData:s,maskData:l,returnMask:0===d,returnEncodedMask:0===d,returnFileInfo:!0,returnPixelInterleavedDims:t.returnPixelInterleavedDims,pixelType:t.pixelType||null,noDataValue:t.noDataValue||null});i=k.fileInfo.eofOffset,l=k.maskData,0===d&&(s=k.encodedMaskData,g.width=k.width,g.height=k.height,g.dimCount=k.dimCount||1,g.pixelType=k.pixelType||k.fileInfo.pixelType,g.mask=l),n>1&&(l&&m.push(l),k.fileInfo.mask&&k.fileInfo.mask.numBytes>0&&b++),d++,g.pixels.push(k.pixelData),g.statistics.push({minValue:k.minValue,maxValue:k.maxValue,noDataValue:k.noDataValue,dimStats:k.dimStats})}if(n>1&&b>1){for(h=g.width*g.height,g.bandMasks=m,(l=new Uint8Array(h)).set(m[0]),u=1;u<m.length;u++)for(f=m[u],c=0;c<h;c++)l[c]=l[c]&f[c];g.maskData=l}return g}};Ke.exports?Ke.exports=g:this.Lerc=g}();var We=Xe.exports,qe={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",28
80:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},Je={};for(var Qe in qe)qe.hasOwnProperty(Qe)&&(Je[qe[Qe]]=parseInt(Qe,10));Je.BitsPerSample,Je.ExtraSamples,Je.SampleFormat,Je.StripByteCounts,Je.StripOffsets,Je.StripRowCounts,Je.TileByteCounts,Je.TileOffsets,Je.SubIFDs;var $e={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},et={};for(var tt in $e)$e.hasOwnProperty(tt)&&(et[$e[tt]]=parseInt(tt,10));var rt=1,nt=0,it=1,at={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"},ot={};for(var st in at)at.hasOwnProperty(st)&&(ot[at[st]]=parseInt(st,10));function ft(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}var lt=function(e){p(r,b);var t=ft(r);function r(e){var n;return u(this,r),(n=t.call(this)).planarConfiguration=void 0!==e.PlanarConfiguration?e.PlanarConfiguration:1,n.samplesPerPixel=void 0!==e.SamplesPerPixel?e.SamplesPerPixel:1,n.addCompression=e.LercParameters[rt],n}return h(r,[{key:"decodeBlock",value:function(e){switch(this.addCompression){case nt:break;case it:e=Fe(new Uint8Array(e)).buffer;break;default:throw new Error("Unsupported LERC additional compression method identifier: ".concat(this.addCompression))}return We.decode(e,{returnPixelInterleavedDims:1===this.planarConfiguration}).pixels[0].buffer}}]),r}(),ut=Object.freeze({__proto__:null,default:lt});function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}var ht=function(e){p(a,b);var r,n=ct(a);function a(){var e;if(u(this,a),e=n.call(this),"undefined"==typeof createImageBitmap)throw new Error("Cannot decode WebImage as `createImageBitmap` is not available");if("undefined"==typeof document&&"undefined"==typeof OffscreenCanvas)throw new Error("Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available");return e}return h(a,[{key:"decode",value:(r=t(i.mark((function e(t,r){var n,a,o,s;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new Blob([r]),e.next=3,createImageBitmap(n);case 3:return a=e.sent,"undefined"!=typeof document?((o=document.createElement("canvas")).width=a.width,o.height=a.height):o=new OffscreenCanvas(a.width,a.height),(s=o.getContext("2d")).drawImage(a,0,0),e.abrupt("return",s.getImageData(0,0,a.width,a.height).data.buffer);case 8:case"end":return e.stop()}}),e)}))),function(e,t){return r.apply(this,arguments)})}]),a}(),dt=Object.freeze({__proto__:null,default:ht});';return new n("undefined"==typeof Blob?"data:application/javascript;base64,"+Buffer.from(t,"binary").toString("base64"):URL.createObjectURL(new Blob([t],{type:"application/javascript"})))}},17:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});
8var n,i=r(4087),o=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const a=function(t){function e(e){var r=this,n="Assertion failed. See https://openlayers.org/en/"+("latest"===i.xv?i.xv:"v"+i.xv.split("-")[0])+"/doc/errors/#"+e+" for details.";return(r=t.call(this,n)||this).code=e,r.name="AssertionError",r.message=n,r}return o(e,t),e}(Error)},71:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n,i=r(17),o=r(4120),a=r(2135),s=r(1685),l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u="length",h=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.element=r,i.index=n,i}return l(e,t),e}(s.Ay);const c=function(t){function e(e,r){var n=t.call(this)||this;n.on,n.once,n.un;var i=r||{};if(n.unique_=!!i.unique,n.array_=e||[],n.unique_)for(var o=0,a=n.array_.length;o<a;++o)n.assertUnique_(n.array_[o],o);return n.updateLength_(),n}return l(e,t),e.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},e.prototype.extend=function(t){for(var e=0,r=t.length;e<r;++e)this.push(t[e]);return this},e.prototype.forEach=function(t){for(var e=this.array_,r=0,n=e.length;r<n;++r)t(e[r],r,e)},e.prototype.getArray=function(){return this.array_},e.prototype.item=function(t){return this.array_[t]},e.prototype.getLength=function(){return this.get(u)},e.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new h(a.A.ADD,e,t))},e.prototype.pop=function(){return this.removeAt(this.getLength()-1)},e.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},e.prototype.remove=function(t){for(var e=this.array_,r=0,n=e.length;r<n;++r)if(e[r]===t)return this.removeAt(r)},e.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new h(a.A.REMOVE,e,t)),e},e.prototype.setAt=function(t,e){var r=this.getLength();if(t<r){this.unique_&&this.assertUnique_(e,t);var n=this.array_[t];this.array_[t]=e,this.dispatchEvent(new h(a.A.REMOVE,n,t)),this.dispatchEvent(new h(a.A.ADD,e,t))}else{for(var i=r;i<t;++i)this.insertAt(i,void 0);this.insertAt(t,e)}},e.prototype.updateLength_=function(){this.set(u,this.array_.length)},e.prototype.assertUnique_=function(t,e){for(var r=0,n=this.array_.length;r<n;++r)if(this.array_[r]===t&&r!==e)throw new i.A(58)},e}(o.A)},2135:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={ADD:"add",REMOVE:"remove"}},25:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(){function t(){this.disposed=!1}return t.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},t.prototype.disposeInternal=function(){},t}()},6717:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n,i=r(4120),o=r(6837),a=r(588),s=r(9438),l=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const u=function(t){function e(e){var r=t.call(this)||this;if(r.on,r.once,r.un,r.id_=void 0,r.geometryName_="geometry",r.style_=null,r.styleFunction_=void 0,r.geometryChangeKey_=null,r.addChangeListener(r.geometryName_,r.handleGeometryChanged_),e)if("function"==typeof e.getSimplifiedGeometry){var n=e;r.setGeometry(n)}else{var i=e;r.setProperties(i)}return r}return l(e,t),e.prototype.clone=function(){var t=new e(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());var r=this.getGeometry();r&&t.setGeometry(r.clone());var n=this.getStyle();return n&&t.setStyle(n),t},e.prototype.getGeometry=function(){return this.get(this.geometryName_)},e.prototype.getId=function(){return this.id_},e.prototype.getGeometryName=function(){return this.geometryName_},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.handleGeometryChange_=function(){this.changed()},e.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&((0,s.JH)(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=(0,s.KT)(t,o.A.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){if("function"==typeof t)return t;var e;Array.isArray(t)?e=t:((0,a.v)("function"==typeof t.getZIndex,41),e=[t]);return function(){return e}}(t):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()},e}(i.A)},3938:(t,e,r)=>{"use strict";r.d(e,{A:()=>f,f:()=>c});var n,i=r(6837),o=r(611),a=r(6141),s=r(7771),l=r(915),u=r(9438),h=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function c(t,e,r){var n=t,o=!0,a=!1,l=!1,h=[(0,u.Jz)(n,i.A.LOAD,(function(){l=!0,a||e()}))];return n.src&&s.DT?(a=!0,n.decode().then((function(){o&&e()})).catch((function(t){o&&(l?e():r())}))):h.push((0,u.Jz)(n,i.A.ERROR,r)),function(){o=!1,h.forEach(u.JH)}}const f=function(t){function e(e,r,n,i,o,s){var l=t.call(this,e,r,n,a.A.IDLE)||this;return l.src_=i,l.image_=new Image,null!==o&&(l.image_.crossOrigin=o),l.unlisten_=null,l.state=a.A.IDLE,l.imageLoadFunction_=s,l}return h(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=a.A.ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=(0,l.getHeight)(this.extent)/this.image_.height),this.state=a.A.LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=a.A.IDLE&&this.state!=a.A.ERROR||(this.state=a.A.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=c(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t,this.resolution=(0,l.getHeight)(this.extent)/this.image_.height},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(o.A)},611:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n,i=r(9332),o=r(6837),a=r(4087),s=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const l=function(t){function e(e,r,n,i){var o=t.call(this)||this;return o.extent=e,o.pixelRatio_=n,o.resolution=r,o.state=i,o}return s(e,t),e.prototype.changed=function(){this.dispatchEvent(o.A.CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return(0,a.b0)()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){(0,a.b0)()},e}(i.A)},6141:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},190:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n,i=r(8143),o=r(1078),a=r(8711),s=r(3938),l=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const u=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r,a)||this;return s.crossOrigin_=i,s.src_=n,s.key=n,s.image_=new Image,null!==i&&(s.image_.crossOrigin=i),s.unlisten_=null,s.tileLoadFunction_=o,s}return l(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=o.A.LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){var t;this.state=o.A.ERROR,this.unlistenImage_(),this.image_=((t=(0,a.Y)(1,1)).fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=o.A.LOADED:this.state=o.A.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==o.A.ERROR&&(this.state=o.A.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==o.A.IDLE&&(this.state=o.A.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,s.f)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(i.A)},5765:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var n,i=r(8100),o=r(7415),a=r(3530),s=r(6272),l=r(6150),u=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const h=function(t){function e(e){return(e=(0,a.kp)({},e)).controls||(e.controls=(0,s.defaults)()),e.interactions||(e.interactions=(0,l.defaults)({onFocusOnly:!0})),t.call(this,e)||this}return u(e,t),e.prototype.createRenderer=function(){return new i.A(this)},e}(o.A)},277:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n,i=r(5801),o=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const a=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r,o)||this;return s.originalEvent=n,s.pixel_=null,s.coordinate_=null,s.dragging=void 0!==i&&i,s.activePointers=a,s}return o(e,t),Object.defineProperty(e.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(t){this.pixel_=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(t){this.coordinate_=t},enumerable:!1,configurable:!0}),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){t.prototype.stopPropagation.call(this),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()},e}(i.A)},3445:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(6837);const i={SINGLECLICK:"singleclick",CLICK:n.A.CLICK,DBLCLICK:n.A.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},5801:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});
8var n,i=r(1685),o=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const a=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.map=r,i.frameState=void 0!==n?n:null,i}return o(e,t),e}(i.Ay)},2585:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},3116:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"}},4120:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n,i=r(1685),o=r(8450),a=r(1854),s=r(3530),l=r(4087),u=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),h=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.key=r,i.oldValue=n,i}return u(e,t),e}(i.Ay);const c=function(t){function e(e){var r=t.call(this)||this;return r.on,r.once,r.un,(0,l.v6)(r),r.values_=null,void 0!==e&&r.setProperties(e),r}return u(e,t),e.prototype.get=function(t){var e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},e.prototype.getProperties=function(){return this.values_&&(0,s.kp)({},this.values_)||{}},e.prototype.hasProperties=function(){return!!this.values_},e.prototype.notify=function(t,e){var r;r="change:".concat(t),this.hasListener(r)&&this.dispatchEvent(new h(r,t,e)),r=o.A.PROPERTYCHANGE,this.hasListener(r)&&this.dispatchEvent(new h(r,t,e))},e.prototype.addChangeListener=function(t,e){this.addEventListener("change:".concat(t),e)},e.prototype.removeChangeListener=function(t,e){this.removeEventListener("change:".concat(t),e)},e.prototype.set=function(t,e,r){var n=this.values_||(this.values_={});if(r)n[t]=e;else{var i=n[t];n[t]=e,i!==e&&this.notify(t,i)}},e.prototype.setProperties=function(t,e){for(var r in t)this.set(r,t[r],e)},e.prototype.applyProperties=function(t){t.values_&&(0,s.kp)(this.values_||(this.values_={}),t.values_)},e.prototype.unset=function(t,e){if(this.values_&&t in this.values_){var r=this.values_[t];delete this.values_[t],(0,s.Im)(this.values_)&&(this.values_=null),e||this.notify(t,r)}},e}(a.default)},8450:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={PROPERTYCHANGE:"propertychange"}},1854:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>h,unByKey:()=>u});var n,i=r(9332),o=r(6837),a=r(9438),s=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),l=function(t){function e(){var e=t.call(this)||this;return e.on=e.onInternal,e.once=e.onceInternal,e.un=e.unInternal,e.revision_=0,e}return s(e,t),e.prototype.changed=function(){++this.revision_,this.dispatchEvent(o.A.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,e){if(Array.isArray(t)){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=(0,a.KT)(this,t[i],e);return n}return(0,a.KT)(this,t,e)},e.prototype.onceInternal=function(t,e){var r;if(Array.isArray(t)){var n=t.length;r=new Array(n);for(var i=0;i<n;++i)r[i]=(0,a.Jz)(this,t[i],e)}else r=(0,a.Jz)(this,t,e);return e.ol_key=r,r},e.prototype.unInternal=function(t,e){var r=e.ol_key;if(r)u(r);else if(Array.isArray(t))for(var n=0,i=t.length;n<i;++n)this.removeEventListener(t[n],e);else this.removeEventListener(t,e)},e}(i.A);function u(t){if(Array.isArray(t))for(var e=0,r=t.length;e<r;++e)(0,a.JH)(t[e]);else(0,a.JH)(t)}l.prototype.on,l.prototype.once,l.prototype.un;const h=l},1795:(t,e,r)=>{"use strict";r.d(e,{A:()=>_});var n,i=r(4120),o=r(2585),a=r(5176),s=r(915),l=r(9438),u=r(8711),h=(n=function(t,e){return n=Object.
vendor: 4,113 bytes, line 8
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c="element",f="map",p="offset",d="position",g="positioning";const _=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un,r.options=e,r.id=e.id,r.insertFirst=void 0===e.insertFirst||e.insertFirst,r.stopEvent=void 0===e.stopEvent||e.stopEvent,r.element=document.createElement("div"),r.element.className=void 0!==e.className?e.className:"ol-overlay-container "+a.Q5,r.element.style.position="absolute",r.element.style.pointerEvents="auto";var n=e.autoPan;return n&&"object"!=typeof n&&(n={animation:e.autoPanAnimation,margin:e.autoPanMargin}),r.autoPan=n||!1,r.rendered={transform_:"",visible:!0},r.mapPostrenderListenerKey=null,r.addChangeListener(c,r.handleElementChanged),r.addChangeListener(f,r.handleMapChanged),r.addChangeListener(p,r.handleOffsetChanged),r.addChangeListener(d,r.handlePositionChanged),r.addChangeListener(g,r.handlePositioningChanged),void 0!==e.element&&r.setElement(e.element),r.setOffset(void 0!==e.offset?e.offset:[0,0]),r.setPositioning(e.positioning||"top-left"),void 0!==e.position&&r.setPosition(e.position),r}return h(e,t),e.prototype.getElement=function(){return this.get(c)},e.prototype.getId=function(){return this.id},e.prototype.getMap=function(){return this.get(f)||null},e.prototype.getOffset=function(){return this.get(p)},e.prototype.getPosition=function(){return this.get(d)},e.prototype.getPositioning=function(){return this.get(g)},e.prototype.handleElementChanged=function(){(0,u.gS)(this.element);var t=this.getElement();t&&this.element.appendChild(t)},e.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&((0,u.bf)(this.element),(0,l.JH)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();if(t){this.mapPostrenderListenerKey=(0,l.KT)(t,o.A.POSTRENDER,this.render,this),this.updatePixelPosition();var e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element),this.performAutoPan()}},e.prototype.render=function(){this.updatePixelPosition()},e.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},e.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.performAutoPan()},e.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},e.prototype.setElement=function(t){this.set(c,t)},e.prototype.setMap=function(t){this.set(f,t)},e.prototype.setOffset=function(t){this.set(p,t)},e.prototype.setPosition=function(t){this.set(d,t)},e.prototype.performAutoPan=function(){this.autoPan&&this.panIntoView(this.autoPan)},e.prototype.panIntoView=function(t){var e=this.getMap();if(e&&e.getTargetElement()&&this.get(d)){var r=this.getRect(e.getTargetElement(),e.getSize()),n=this.getElement(),i=this.getRect(n,[(0,u.Gq)(n),(0,u.DK)(n)]),o=t||{},a=void 0===o.margin?20:o.margin;if(!(0,s.containsExtent)(r,i)){var l=i[0]-r[0],h=r[2]-i[2],c=i[1]-r[1],f=r[3]-i[3],p=[0,0];if(l<0?p[0]=l-a:h<0&&(p[0]=Math.abs(h)+a),c<0?p[1]=c-a:f<0&&(p[1]=Math.abs(f)+a),0!==p[0]||0!==p[1]){var g=e.getView().getCenterInternal(),_=e.getPixelFromCoordinateInternal(g);if(!_)return;var y=[_[0]+p[0],_[1]+p[1]],m=o.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(y),duration:m.duration,easing:m.easing})}}}},e.prototype.getRect=function(t,e){var r=t.getBoundingClientRect(),n=r.left+window.pageXOffset,i=r.top+window.pageYOffset;return[n,i,n+e[0],i+e[1]]},e.prototype.setPositioning=function(t){this.set(g,t)},e.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},e.prototype.updatePixelPosition=function(){var t=this.getMap(),e=this.getPosition();
8if(t&&t.isRendered()&&e){var r=t.getPixelFromCoordinate(e),n=t.getSize();this.updateRenderedPosition(r,n)}else this.setVisible(!1)},e.prototype.updateRenderedPosition=function(t,e){var r=this.element.style,n=this.getOffset(),i=this.getPositioning();this.setVisible(!0);var o=Math.round(t[0]+n[0])+"px",a=Math.round(t[1]+n[1])+"px",s="0%",l="0%";"bottom-right"==i||"center-right"==i||"top-right"==i?s="-100%":"bottom-center"!=i&&"center-center"!=i&&"top-center"!=i||(s="-50%"),"bottom-left"==i||"bottom-center"==i||"bottom-right"==i?l="-100%":"center-left"!=i&&"center-center"!=i&&"center-right"!=i||(l="-50%");var u="translate(".concat(s,", ").concat(l,") translate(").concat(o,", ").concat(a,")");this.rendered.transform_!=u&&(this.rendered.transform_=u,r.transform=u,r.msTransform=u)},e.prototype.getOptions=function(){return this.options},e}(i.A)},7415:(t,e,r)=>{"use strict";r.d(e,{A:()=>V});var n,i=r(4120),o=r(71),a=r(2135),s=r(6837),l=r(764),u=r(8620),h=r(1685),c=r(8450),f=r(588),p=r(3530),d=r(915),g=r(4087),_=r(9438),y=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),m=function(t){function e(e,r){var n=t.call(this,e)||this;return n.layer=r,n}return y(e,t),e}(h.Ay),v="layers";const w=function(t){function e(e){var r=this,n=e||{},i=(0,p.kp)({},n);delete i.layers;var a=n.layers;return(r=t.call(this,i)||this).on,r.once,r.un,r.layersListenerKeys_=[],r.listenerKeys_={},r.addChangeListener(v,r.handleLayersChanged_),a?Array.isArray(a)?a=new o.A(a.slice(),{unique:!0}):(0,f.v)("function"==typeof a.getArray,43):a=new o.A(void 0,{unique:!0}),r.setLayers(a),r}return y(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(_.JH),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push((0,_.KT)(t,a.A.ADD,this.handleLayersAdd_,this),(0,_.KT)(t,a.A.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(_.JH);(0,p.IU)(this.listenerKeys_);for(var r=t.getArray(),n=0,i=r.length;n<i;n++){var o=r[n];this.registerLayerListeners_(o),this.dispatchEvent(new m("addlayer",o))}this.changed()},e.prototype.registerLayerListeners_=function(t){var r=[(0,_.KT)(t,c.A.PROPERTYCHANGE,this.handleLayerChange_,this),(0,_.KT)(t,s.A.CHANGE,this.handleLayerChange_,this)];t instanceof e&&r.push((0,_.KT)(t,"addlayer",this.handleLayerGroupAdd_,this),(0,_.KT)(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,g.v6)(t)]=r},e.prototype.handleLayerGroupAdd_=function(t){this.dispatchEvent(new m("addlayer",t.layer))},e.prototype.handleLayerGroupRemove_=function(t){this.dispatchEvent(new m("removelayer",t.layer))},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new m("addlayer",e)),this.changed()},e.prototype.handleLayersRemove_=function(t){var e=t.element,r=(0,g.v6)(e);this.listenerKeys_[r].forEach(_.JH),delete this.listenerKeys_[r],this.dispatchEvent(new m("removelayer",e)),this.changed()},e.prototype.getLayers=function(){return this.get(v)},e.prototype.setLayers=function(t){var e=this.getLayers();if(e)for(var r=e.getArray(),n=0,i=r.length;n<i;++n)this.dispatchEvent(new m("removelayer",r[n]));this.set(v,t)},e.prototype.getLayersArray=function(t){var e=void 0!==t?t:[];return this.getLayers().forEach((function(t){t.getLayersArray(e)})),e},e.prototype.getLayerStatesArray=function(t){var e=void 0!==t?t:[],r=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));var n=this.getLayerState(),i=n.zIndex;t||void 0!==n.zIndex||(i=0);for(var o=r,a=e.length;o<a;o++){var s=e[o];s.opacity*=n.opacity,s.visible=s.visible&&n.visible,s.maxResolution=Math.min(s.maxResolution,n.maxResolution),s.minResolution=Math.max(s.minResolution,n.minResolution),s.minZoom=Math.max(s.minZoom,n.minZoom),s.maxZoom=Math.min(s.maxZoom,n.maxZoom),void 0!==n.extent&&(void 0!==s.extent?s.extent=(0,d.getIntersection)(s.extent,n.extent):s.extent=n.extent),void 0===s.zIndex&&(s.zIndex=i)}return e},e.prototype.getSourceState=function(){return"ready"},e}(u.A);var x=r(277),b=r(3445),E=r(613),A=r(9332),S=r(7771),C=r(4238),T=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const P=function(t){function e(e,r){var n=t.call(this,e)||this;n.map_=e,n.clickTimeoutId_,n.emulateClicks_=!1,n.dragging_=!1,n.dragListenerKeys_=[],n.moveTolerance_=void 0===r?1:r,n.down_=null;var i=n.map_.getViewport();return n.activePointers_=[],n.trackedTouches_={},n.element_=i,n.pointerdownListenerKey_=(0,_.KT)(i,E.A.POINTERDOWN,n.handlePointerDown_,n),n.originalPointerMoveEvent_,n.relayedListenerKey_=(0,_.KT)(i,E.A.POINTERMOVE,n.relayMoveEvent_,n),n.boundHandleTouchMove_=n.handleTouchMove_.bind(n),n.element_.addEventListener(s.A.TOUCHMOVE,n.boundHandleTouchMove_,!!S.FT&&{passive:!1}),n}return T(e,t),e.prototype.emulateClick_=function(t){var e=new x.A(b.A.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new x.A(b.A.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new x.A(b.A.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t,r=e.pointerId;if(e.type==b.A.POINTERUP||e.type==b.A.POINTERCANCEL){for(var n in delete this.trackedTouches_[r],this.trackedTouches_)if(this.trackedTouches_[n].target!==e.target){delete this.trackedTouches_[n];break}}else e.type!=b.A.POINTERDOWN&&e.type!=b.A.POINTERMOVE||(this.trackedTouches_[r]=e);this.activePointers_=(0,p.BI)(this.trackedTouches_)},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new x.A(b.A.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(_.JH),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 x.A(b.A.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);for(var r in this.dispatchEvent(e),this.down_={},t){var n=t[r];this.down_[r]="function"==typeof n?C.tV:n}if(0===this.dragListenerKeys_.length){var i=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,_.KT)(i,b.A.POINTERMOVE,this.handlePointerMove_,this),(0,_.KT)(i,b.A.POINTERUP,this.handlePointerUp_,this),(0,_.KT)(this.element_,b.A.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push((0,_.KT)(this.element_.getRootNode(),b.A.POINTERUP,this.handlePointerUp_,this))}},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;var e=new x.A(b.A.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 x.A(b.A.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,_.JH)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(s.A.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,_.JH)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(_.JH),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(A.A);var I=r(5801),O=r(2585),R=r(3116),L=r(3984),k=r(6813),M=r(3568),F=r(2703),D=r(9703),j=r(7083),U=r(6782),G=r(8711),N=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function B(t){t instanceof l.A?t.setMapInternal(null):t instanceof w&&t.getLayers().forEac
vendor: 7,920 bytes, line 8
8h(B)}function z(t,e){if(t instanceof l.A)t.setMapInternal(e);else if(t instanceof w)for(var r=t.getLayers().getArray(),n=0,i=r.length;n<i;++n)z(r[n],e)}const V=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var n=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var r,n,i,a={},s=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new w({layers:t.layers});a[R.A.LAYERGROUP]=s,a[R.A.TARGET]=t.target,a[R.A.VIEW]=t.view instanceof M.Ay?t.view:new M.Ay,void 0!==t.controls&&(Array.isArray(t.controls)?r=new o.A(t.controls.slice()):((0,f.v)("function"==typeof t.controls.getArray,47),r=t.controls));void 0!==t.interactions&&(Array.isArray(t.interactions)?n=new o.A(t.interactions.slice()):((0,f.v)("function"==typeof t.interactions.getArray,48),n=t.interactions));void 0!==t.overlays?Array.isArray(t.overlays)?i=new o.A(t.overlays.slice()):((0,f.v)("function"==typeof t.overlays.getArray,49),i=t.overlays):i=new o.A;return{controls:r,interactions:n,keyboardEventTarget:e,overlays:i,values:a}}(e);r.renderComplete_,r.loaded_=!0,r.boundHandleBrowserEvent_=r.handleBrowserEvent.bind(r),r.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,r.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:S.cr,r.postRenderTimeoutHandle_,r.animationDelayKey_,r.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(r),r.coordinateToPixelTransform_=(0,D.vt)(),r.pixelToCoordinateTransform_=(0,D.vt)(),r.frameIndex_=0,r.frameState_=null,r.previousExtent_=null,r.viewPropertyListenerKey_=null,r.viewChangeListenerKey_=null,r.layerGroupPropertyListenerKeys_=null,r.viewport_=document.createElement("div"),r.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),r.viewport_.style.position="relative",r.viewport_.style.overflow="hidden",r.viewport_.style.width="100%",r.viewport_.style.height="100%",r.overlayContainer_=document.createElement("div"),r.overlayContainer_.style.position="absolute",r.overlayContainer_.style.zIndex="0",r.overlayContainer_.style.width="100%",r.overlayContainer_.style.height="100%",r.overlayContainer_.style.pointerEvents="none",r.overlayContainer_.className="ol-overlaycontainer",r.viewport_.appendChild(r.overlayContainer_),r.overlayContainerStopEvent_=document.createElement("div"),r.overlayContainerStopEvent_.style.position="absolute",r.overlayContainerStopEvent_.style.zIndex="0",r.overlayContainerStopEvent_.style.width="100%",r.overlayContainerStopEvent_.style.height="100%",r.overlayContainerStopEvent_.style.pointerEvents="none",r.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",r.viewport_.appendChild(r.overlayContainerStopEvent_),r.mapBrowserEventHandler_=null,r.moveTolerance_=e.moveTolerance,r.keyboardEventTarget_=n.keyboardEventTarget,r.targetChangeHandlerKeys_=null,r.controls=n.controls||new o.A,r.interactions=n.interactions||new o.A,r.overlays_=n.overlays,r.overlayIdIndex_={},r.renderer_=null,r.postRenderFunctions_=[],r.tileQueue_=new k.A(r.getTilePriority.bind(r),r.handleTileChange_.bind(r)),r.addChangeListener(R.A.LAYERGROUP,r.handleLayerGroupChanged_),r.addChangeListener(R.A.VIEW,r.handleViewChanged_),r.addChangeListener(R.A.SIZE,r.handleSizeChanged_),r.addChangeListener(R.A.TARGET,r.handleTargetChanged_),r.setProperties(n.values);var i=r;return!e.view||e.view instanceof M.Ay||e.view.then((function(t){i.setView(new M.Ay(t))})),r.controls.addEventListener(a.A.ADD,function(t){t.element.setMap(this)}.bind(r)),r.controls.addEventListener(a.A.REMOVE,function(t){t.element.setMap(null)}.bind(r)),r.interactions.addEventListener(a.A.ADD,function(t){t.element.setMap(this)}.bind(r)),r.interactions.addEventListener(a.A.REMOVE,function(t){t.element.setMap(null)}.bind(r)),r.overlays_.addEventListener(a.A.ADD,function(t){this.addOverlayInternal_(t.element)}.bind(r)),r.overlays_.addEventListener(a.A.REMOVE,function(t){var e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)}.bind(r)),r.controls.forEach(function(t){t.setMap(this)}.bind(r)),r.interactions.forEach(function(t){t.setMap(this)}.bind(r)),r.overlays_.forEach(r.addOverlayInternal_.bind(r)),r}return N(e,t),e.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},e.prototype.addControl=function(t){this.getControls().push(t)},e.prototype.addInteraction=function(t){this.getInteractions().push(t)},e.prototype.addLayer=function(t){this.getLayerGroup().getLayers().push(t)},e.prototype.handleLayerAdd_=function(t){z(t.layer,this)},e.prototype.addOverlay=function(t){this.getOverlays().push(t)},e.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},e.prototype.disposeInternal=function(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.setTarget(null),t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,e,r){if(this.frameState_&&this.renderer_){var n=this.getCoordinateFromPixelInternal(t),i=void 0!==(r=void 0!==r?r:{}).hitTolerance?r.hitTolerance:0,o=void 0!==r.layerFilter?r.layerFilter:C.rT,a=!1!==r.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,i,a,e,null,o,null)}},e.prototype.getFeaturesAtPixel=function(t,e){var r=[];return this.forEachFeatureAtPixel(t,(function(t){r.push(t)}),e),r},e.prototype.getAllLayers=function(){var t=[];return function e(r){r.forEach((function(r){r instanceof w?e(r.getLayers()):t.push(r)}))}(this.getLayers()),t},e.prototype.forEachLayerAtPixel=function(t,e,r){if(this.frameState_&&this.renderer_){var n=r||{},i=void 0!==n.hitTolerance?n.hitTolerance:0,o=n.layerFilter||C.rT;return this.renderer_.forEachLayerAtPixel(t,this.frameState_,i,e,o)}},e.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_||!this.renderer_)return!1;var r=this.getCoordinateFromPixelInternal(t),n=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:C.rT,i=void 0!==e.hitTolerance?e.hitTolerance:0,o=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(r,this.frameState_,i,o,n,null)},e.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},e.prototype.getEventCoordinateInternal=function(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))},e.prototype.getEventPixel=function(t){var e=this.viewport_.getBoundingClientRect(),r="changedTouches"in t?t.changedTouches[0]:t;return[r.clientX-e.left,r.clientY-e.top]},e.prototype.getTarget=function(){return this.get(R.A.TARGET)},e.prototype.getTargetElement=function(){var t=this.getTarget();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},e.prototype.getCoordinateFromPixel=function(t){return(0,j.toUserCoordinate)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},e.prototype.getCoordinateFromPixelInternal=function(t){var e=this.frameState_;return e?(0,D.Bb)(e.pixelToCoordinateTransform,t.slice()):null},e.prototype.getControls=function(){return this.controls},e.prototype.getOverlays=function(){return this.overlays_},e.prototype.getOverlayById=function(t){var e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getInteractions=function(){return this.interactions},e.prototype.getLayerGroup=function(){return this.get(R.A.LAYERGROUP)},e.prototype.setLayers=function(t){var e=this.getLayerGroup();if(t instanceof o.A)e.setLayers(t);else{var r=e.getLayers();r.clear(),r.extend(t)}},e.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},e.prototype.getLoadingOrNotReady=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,r=t.length;e<r;++e){var n=t[e];if(n.visible){var i=n.layer.getRenderer();if(i&&!i.ready)return!0;var o=n.layer.getSource();if(o&&o.loading)return!0}}return!1}
8,e.prototype.getPixelFromCoordinate=function(t){var e=(0,j.fromUserCoordinate)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)},e.prototype.getPixelFromCoordinateInternal=function(t){var e=this.frameState_;return e?(0,D.Bb)(e.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(R.A.SIZE)},e.prototype.getView=function(){return this.get(R.A.VIEW)},e.prototype.getViewport=function(){return this.viewport_},e.prototype.getOverlayContainer=function(){return this.overlayContainer_},e.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},e.prototype.getOwnerDocument=function(){var t=this.getTargetElement();return t?t.ownerDocument:document},e.prototype.getTilePriority=function(t,e,r,n){return(0,k.z)(this.frameState_,t,e,r,n)},e.prototype.handleBrowserEvent=function(t,e){var r=e||t.type,n=new x.A(r,this,t);this.handleMapBrowserEvent(n)},e.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){var e=t.originalEvent,r=e.type;if(r===E.A.POINTERDOWN||r===s.A.WHEEL||r===s.A.KEYDOWN){var n=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():n,o=e.target;if(this.overlayContainerStopEvent_.contains(o)||!(i===n?n.documentElement:i).contains(o))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t))for(var a=this.getInteractions().getArray().slice(),l=a.length-1;l>=0;l--){var u=a[l];if(u.getMap()===this&&u.getActive()&&this.getTargetElement())if(!u.handleEvent(t)||t.propagationStopped)break}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var r=this.maxTilesLoading_,n=r;if(t){var i=t.viewHints;if(i[F.A.ANIMATING]||i[F.A.INTERACTING]){var o=Date.now()-t.time>8;r=o?0:8,n=o?0:2}}e.getTilesLoading()<r&&(e.reprioritize(),e.loadMoreTiles(r,n))}t&&this.renderer_&&!t.animate&&(!0===this.renderComplete_?(this.hasListener(L.A.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(L.A.RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new I.A(O.A.LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new I.A(O.A.LOADSTART,this,t))));for(var a=this.postRenderFunctions_,s=0,l=a.length;s<l;++s)a[s](this,t);a.length=0},e.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},e.prototype.handleTargetChanged_=function(){if(this.mapBrowserEventHandler_){for(var t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)(0,_.JH)(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(s.A.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(s.A.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,(0,G.bf)(this.viewport_)}var r=this.getTargetElement();if(r){for(var n in r.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new P(this,this.moveTolerance_),b.A)this.mapBrowserEventHandler_.addEventListener(b.A[n],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(s.A.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(s.A.WHEEL,this.boundHandleBrowserEvent_,!!S.FT&&{passive:!1});var i=this.getOwnerDocument().defaultView,o=this.keyboardEventTarget_?this.keyboardEventTarget_:r;this.targetChangeHandlerKeys_=[(0,_.KT)(o,s.A.KEYDOWN,this.handleBrowserEvent,this),(0,_.KT)(o,s.A.KEYPRESS,this.handleBrowserEvent,this),(0,_.KT)(i,s.A.RESIZE,this.updateSize,this)]}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},e.prototype.handleTileChange_=function(){this.render()},e.prototype.handleViewPropertyChanged_=function(){this.render()},e.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&((0,_.JH)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,_.JH)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=(0,_.KT)(t,c.A.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,_.KT)(t,s.A.CHANGE,this.handleViewPropertyChanged_,this),t.resolve
8Constraints(0)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(_.JH),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.handleLayerAdd_(new m("addlayer",t)),this.layerGroupPropertyListenerKeys_=[(0,_.KT)(t,c.A.PROPERTYCHANGE,this.render,this),(0,_.KT)(t,s.A.CHANGE,this.render,this),(0,_.KT)(t,"addlayer",this.handleLayerAdd_,this),(0,_.KT)(t,"removelayer",this.handleLayerRemove_,this)]),this.render()},e.prototype.isRendered=function(){return!!this.frameState_},e.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},e.prototype.redrawText=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,r=t.length;e<r;++e){var n=t[e].layer;n.hasRenderer()&&n.getRenderer().handleFontsChanged()}},e.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},e.prototype.removeControl=function(t){return this.getControls().remove(t)},e.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},e.prototype.removeLayer=function(t){return this.getLayerGroup().getLayers().remove(t)},e.prototype.handleLayerRemove_=function(t){B(t.layer)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var e=this,r=this.getSize(),n=this.getView(),i=this.frameState_,o=null;if(void 0!==r&&(0,U.Ie)(r)&&n&&n.isDef()){var a=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),s=n.getState();if(o={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:(0,d.getForViewAndSize)(s.center,s.resolution,s.rotation,r),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:r,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:s,viewHints:a,wantedTiles:{},mapId:(0,g.v6)(this),renderTargets:{}},s.nextCenter&&s.nextResolution){var l=isNaN(s.nextRotation)?s.rotation:s.nextRotation;o.nextExtent=(0,d.getForViewAndSize)(s.nextCenter,s.nextResolution,l,r)}}if(this.frameState_=o,this.renderer_.renderFrame(o),o){if(o.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,o.postRenderFunctions),i)(!this.previousExtent_||!(0,d.isEmpty)(this.previousExtent_)&&!(0,d.equals)(o.extent,this.previousExtent_))&&(this.dispatchEvent(new I.A(O.A.MOVESTART,this,i)),this.previousExtent_=(0,d.createOrUpdateEmpty)(this.previousExtent_));this.previousExtent_&&!o.viewHints[F.A.ANIMATING]&&!o.viewHints[F.A.INTERACTING]&&!(0,d.equals)(o.extent,this.previousExtent_)&&(this.dispatchEvent(new I.A(O.A.MOVEEND,this,o)),(0,d.clone)(o.extent,this.previousExtent_))}this.dispatchEvent(new I.A(O.A.POSTRENDER,this,o)),this.renderComplete_=this.hasListener(O.A.LOADSTART)||this.hasListener(O.A.LOADEND)||this.hasListener(L.A.RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){e.postRenderTimeoutHandle_=void 0,e.handlePostRender()}),0))},e.prototype.setLayerGroup=function(t){var e=this.getLayerGroup();e&&this.handleLayerRemove_(new m("removelayer",e)),this.set(R.A.LAYERGROUP,t)},e.prototype.setSize=function(t){this.set(R.A.SIZE,t)},e.prototype.setTarget=function(t){this.set(R.A.TARGET,t)},e.prototype.setView=function(t){if(!t||t instanceof M.Ay)this.set(R.A.VIEW,t);else{this.set(R.A.VIEW,new M.Ay);var e=this;t.then((function(t){e.setView(new M.Ay(t))}))}},e.prototype.updateSize=function(){var t=this.getTargetElement(),e=void 0;if(t){var r=getComputedStyle(t),n=t.offsetWidth-parseFloat(r.borderLeftWidth)-parseFloat(r.paddingLeft)-parseFloat(r.paddingRight)-parseFloat(r.borderRightWidth),i=t.offsetHeight-parseFloat(r.borderTopWidth)-parseFloat(r.paddingTop)-parseFloat(r.paddingBottom)-parseFloat(r.borderBottomWidth);isNaN(n)||isNaN(i)||(e=[n,i],!(0,U.Ie)(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0."))}this.setSize(e),this.updateViewportSize_()},e.prototype.updateViewportSize_=function(){var t=this.getView();if(t){var e=void 0,r=getComputedStyle(this.viewport_);r.width&&r.height&&(e=[parseInt(r.width,10),parseInt(r.height,10)]),t.setViewportSize(e)}},e}(i.A)},8143:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var n,i=r(9332),o=r(6837),a=r(1078),s=r(4087),l=r(3474),u=(n=function(t,e){return n=Object.
vendor: 5,717 bytes, line 8
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const h=function(t){function e(e,r,n){var i=t.call(this)||this,o=n||{};return i.tileCoord=e,i.state=r,i.interimTile=null,i.key="",i.transition_=void 0===o.transition?250:o.transition,i.transitionStarts_={},i.interpolate=!!o.interpolate,i}return u(e,t),e.prototype.changed=function(){this.dispatchEvent(o.A.CHANGE)},e.prototype.release=function(){},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==a.A.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==a.A.LOADED){t.interimTile=null;break}t.getState()==a.A.LOADING?e=t:t.getState()==a.A.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){if(this.state!==a.A.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){(0,s.b0)()},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var r=this.transitionStarts_[t];if(r){if(-1===r)return 1}else r=e,this.transitionStarts_[t]=r;var n=e-r+1e3/60;return n>=this.transition_?1:(0,l.easeIn)(n/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(i.A)},6813:(t,e,r)=>{"use strict";r.d(e,{A:()=>c,z:()=>f});var n=r(6837),i=r(588),o=r(3530),a=1/0;const s=function(){function t(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return t.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,(0,o.IU)(this.queuedElements_)},t.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,r=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var n=this.keyFunction_(r);return delete this.queuedElements_[n],r},t.prototype.enqueue=function(t){(0,i.v)(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=a&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},t.prototype.getCount=function(){return this.elements_.length},t.prototype.getLeftChildIndex_=function(t){return 2*t+1},t.prototype.getRightChildIndex_=function(t){return 2*t+2},t.prototype.getParentIndex_=function(t){return t-1>>1},t.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},t.prototype.isEmpty=function(){return 0===this.elements_.length},t.prototype.isKeyQueued=function(t){return t in this.queuedElements_},t.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},t.prototype.siftUp_=function(t){for(var e=this.elements_,r=this.priorities_,n=e.length,i=e[t],o=r[t],a=t;t<n>>1;){var s=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),u=l<n&&r[l]<r[s]?l:s;e[t]=e[u],r[t]=r[u],t=u}e[t]=i,r[t]=o,this.siftDown_(a,t)},t.prototype.siftDown_=function(t,e){for(var r=this.elements_,n=this.priorities_,i=r[e],o=n[e];e>t;){var a=this.getParentIndex_(e);if(!(n[a]>o))break;r[e]=r[a],n[e]=n[a],e=a}r[e]=i,n[e]=o},t.prototype.reprioritize=function(){var t,e,r,n=this.priorityFunction_,i=this.elements_,o=this.priorities_,s=0,l=i.length;for(e=0;e<l;++e)(r=n(t=i[e]))==a?delete this.queuedElements_[this.keyFunction_(t)]:(o[s]=r,i[s++]=t);i.length=s,o.length=s,this.heapify_()},t}();var l,u=r(1078),h=(l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},l(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const c=function(t){function e(e,r){var n=t.call(this,(function(t){return e.apply(null,t)}),(function(t){return t[0].getKey()}))||this;return n.boundHandleTileChange_=n.handleTileChange.bind(n),n.tileChangeCallback_=r,n.tilesLoading_=0,n.tilesLoadingKeys_={},n}return h(e,t),e.prototype.enqueue=function(e){var r=t.prototype.enqueue.call(this,e);r&&e[0].addEventListener(n.A.CHANGE,this.boundHandleTileChange_);return r},e.prototype.getTilesLoading=function(){return this.tilesLoading_},e.prototype.handleTileChange=function(t){var e=t.target,r=e.getState();if(r===u.A.LOADED||r===u.A.ERROR||r===u.A.EMPTY){e.removeEventListener(n.A.CHANGE,this.boundHandleTileChange_);var i=e.getKey();i in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[i],--this.tilesLoading_),this.tileChangeCallback_()}},e.prototype.loadMoreTiles=function(t,e){for(var r,n,i=0;this.tilesLoading_<t&&i<e&&this.getCount()>0;)n=(r=this.dequeue()[0]).getKey(),r.getState()!==u.A.IDLE||n in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[n]=!0,++this.tilesLoading_,++i,r.load())},e}(s);function f(t,e,r,n,i){if(!t||!(r in t.wantedTiles))return a;
8if(!t.wantedTiles[r][e.getKey()])return a;var o=t.viewState.center,s=n[0]-o[0],l=n[1]-o[1];return 65536*Math.log(i)+Math.sqrt(s*s+l*l)/i}},1110:(t,e,r)=>{"use strict";r.d(e,{A:()=>o,N:()=>i});var n=function(){function t(t,e,r,n){this.minX=t,this.maxX=e,this.minY=r,this.maxY=n}return t.prototype.contains=function(t){return this.containsXY(t[1],t[2])},t.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},t.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},t.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},t.prototype.extend=function(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)},t.prototype.getHeight=function(){return this.maxY-this.minY+1},t.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},t.prototype.getWidth=function(){return this.maxX-this.minX+1},t.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},t}();function i(t,e,r,i,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=r,o.maxY=i,o):new n(t,e,r,i)}const o=n},1078:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},3568:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>I});var n=r(4120),i=r(5719),o=r(2703),a=r(9015),s=r(7115),l=r(7083),u=r(4238),h=r(6933),c=r(588),f=r(3530),p=r(1597);function d(t,e,r){return function(n,i,o,a,s){if(n){if(!i&&!e)return n;var l=e?0:o[0]*i,u=e?0:o[1]*i,h=s?s[0]:0,c=s?s[1]:0,f=t[0]+l/2+h,d=t[2]-l/2+h,g=t[1]+u/2+c,_=t[3]-u/2+c;f>d&&(d=f=(d+f)/2),g>_&&(_=g=(_+g)/2);var y=(0,p.qE)(n[0],f,d),m=(0,p.qE)(n[1],g,_);if(a&&r&&i){var v=30*i;y+=-v*Math.log(1+Math.max(0,f-n[0])/v)+v*Math.log(1+Math.max(0,n[0]-d)/v),m+=-v*Math.log(1+Math.max(0,g-n[1])/v)+v*Math.log(1+Math.max(0,n[1]-_)/v)}return[y,m]}}}function g(t){return t}var _=r(915),y=r(6514);function m(t,e,r,n){var i=(0,_.getWidth)(e)/r[0],o=(0,_.getHeight)(e)/r[1];return n?Math.min(t,Math.max(i,o)):Math.min(t,Math.min(i,o))}function v(t,e,r){var n=Math.min(t,e);return n*=Math.log(1+50*Math.max(0,t/e-1))/50+1,r&&(n=Math.max(n,r),n/=Math.log(1+50*Math.max(0,r/t-1))/50+1),(0,p.qE)(n,r/2,2*e)}function w(t,e,r,n,i){return function(o,a,s,l){if(void 0!==o){var u=n?m(t,n,s,i):t;return(void 0===r||r)&&l?v(o,u,e):(0,p.qE)(o,e,u)}}}var x,b=r(4498),E=r(3474),A=r(1064),S=(x=function(t,e){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},x(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}x(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function C(t,e){setTimeout((function(){t(e)}),0)}function T(t){return!(t.sourceCenter&&t.targetCenter&&!(0,h.aI)(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}function P(t,e,r,n,i){var o=Math.cos(-i),a=Math.sin(-i),s=t[0]*o-t[1]*a,l=t[1]*o+t[0]*a;return[(s+=(e[0]/2-r[0])*n)*o-(l+=(r[1]-e[1]/2)*n)*(a=-a),l*o+s*a]}const I=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var n=(0,f.kp)({},e);return r.hints_=[0,0],r.animations_=[],r.updateAnimationKey_,r.projection_=(0,l.createProjection)(n.projection,"EPSG:3857"),r.viewportSize_=[100,100],r.targetCenter_=null,r.targetResolution_,r.targetRotation_,r.nextCenter_=null,r.nextResolution_,r.nextRotation_,r.cancelAnchor_=void 0,n.projection&&(0,l.disableCoordinateWarning)(),n.center&&(n.center=(0,l.fromUserCoordinate)(n.center,r.projection_)),n.extent&&(n.extent=(0,l.fromUserExtent)(n.extent,r.projection_)),r.applyOptions_(n),r}return S(e,t),e.prototype.applyOptions_=function(t){var e=(0,f.kp)({},t);for(var r in a.A)delete e[r];this.setProperties(e,!0);var n=function(t){var e,r,n,o=28,a=2,u=void 0!==t.minZoom?t.minZoom:0,h=void 0!==t.maxZoom?t.maxZoom:
vendor: 11,556 bytes, line 8
8o,c=void 0!==t.zoomFactor?t.zoomFactor:a,f=void 0!==t.multiWorld&&t.multiWorld,d=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,g=void 0!==t.showFullExtent&&t.showFullExtent,x=(0,l.createProjection)(t.projection,"EPSG:3857"),b=x.getExtent(),E=t.constrainOnlyCenter,A=t.extent;f||A||!x.isGlobal()||(E=!1,A=b);if(void 0!==t.resolutions){var S=t.resolutions;r=S[u],n=void 0!==S[h]?S[h]:S[S.length-1],e=t.constrainResolution?function(t,e,r,n){return function(i,o,a,s){if(void 0!==i){var l=t[0],u=t[t.length-1],h=r?m(l,r,a,n):l;if(s)return void 0===e||e?v(i,h,u):(0,p.qE)(i,u,h);var c=Math.min(h,i),f=Math.floor((0,y.FT)(t,c,o));return t[f]>h&&f<t.length-1?t[f+1]:t[f]}}}(S,d,!E&&A,g):w(r,n,d,!E&&A,g)}else{var C=(b?Math.max((0,_.getWidth)(b),(0,_.getHeight)(b)):360*l.METERS_PER_UNIT[i.Ay.DEGREES]/x.getMetersPerUnit())/s.R/Math.pow(a,0),T=C/Math.pow(a,o-0);void 0!==(r=t.maxResolution)?u=0:r=C/Math.pow(c,u),void 0===(n=t.minResolution)&&(n=void 0!==t.maxZoom?void 0!==t.maxResolution?r/Math.pow(c,h):C/Math.pow(c,h):T),h=u+Math.floor(Math.log(r/n)/Math.log(c)),n=r/Math.pow(c,h-u),e=t.constrainResolution?function(t,e,r,n,i,o){return function(a,s,l,u){if(void 0!==a){var h=i?m(e,i,l,o):e,c=void 0!==r?r:0;if(u)return void 0===n||n?v(a,h,c):(0,p.qE)(a,c,h);var f=Math.ceil(Math.log(e/h)/Math.log(t)-1e-9),d=-s*(.5-1e-9)+.5,g=Math.min(h,a),_=Math.floor(Math.log(e/g)/Math.log(t)+d),y=Math.max(f,_),w=e/Math.pow(t,y);return(0,p.qE)(w,c,h)}}}(c,r,n,d,!E&&A,g):w(r,n,d,!E&&A,g)}return{constraint:e,maxResolution:r,minResolution:n,minZoom:u,zoomFactor:c}}(t);this.maxResolution_=n.maxResolution,this.minResolution_=n.minResolution,this.zoomFactor_=n.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=n.minZoom;var o=function(t){if(void 0!==t.extent){var e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return d(t.extent,t.constrainOnlyCenter,e)}var r=(0,l.createProjection)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&r.isGlobal()){var n=r.getExtent().slice();return n[0]=-1/0,n[2]=1/0,d(n,!1,!1)}return g}(t),u=n.constraint,h=function(t){var e=void 0===t.enableRotation||t.enableRotation;if(e){var r=t.constrainRotation;return void 0===r||!0===r?(0,b.cq)():!1===r?b.dv:"number"==typeof r?(0,b.a$)(r):b.dv}return b.b8}(t);this.constraints_={center:o,resolution:u,rotation:h},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom)},Object.defineProperty(e.prototype,"padding",{get:function(){return this.padding_},set:function(t){var e=this.padding_;this.padding_=t;var r=this.getCenter();if(r){var n=t||[0,0,0,0];e=e||[0,0,0,0];var i=this.getResolution(),o=i/2*(n[3]-e[3]+e[1]-n[1]),a=i/2*(n[0]-e[0]+e[2]-n[2]);this.setCenterInternal([r[0]+o,r[1]-a])}},enumerable:!1,configurable:!0}),e.prototype.getUpdatedOptions_=function(t){var e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),(0,f.kp)({},e,t)},e.prototype.animate=function(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var e=new Array(arguments.length),r=0;r<e.length;++r){var n=arguments[r];n.center&&((n=(0,f.kp)({},n)).center=(0,l.fromUserCoordinate)(n.center,this.getProjection())),n.anchor&&((n=(0,f.kp)({},n)).anchor=(0,l.fromUserCoordinate)(n.anchor,this.getProjection())),e[r]=n}this.animateInternal.apply(this,e)},e.prototype.animateInternal=function(t){var e,r=arguments.length;r>1&&"function"==typeof arguments[r-1]&&(e=arguments[r-1],--r);for(var n=0;n<r&&!this.isDef();++n){var i=arguments[n];i.center&&this.setCenterInternal(i.center),void 0!==i.zoom?this.setZoom(i.zoom):i.resolution&&this.setResolution(i.resolution),void 0!==i.rotation&&this.setRotation(i.rotation)}if(n!==r){for(var a=Date.now(),s=this.targetCenter_.slice(),l=this.targetResolution_,u=this.targetRotation_,h=[];n<r;++n){var c=arguments[n],f={start:a,complete:!1,anchor:c.anchor,duration:void 0!==c.duration?c.duration:1e3,easing:c.easing||E.inAndOut,callback:e};if(c.center&&(f.sourceCenter=s,f.targetCenter=c.center.slice(),s=f.targetCenter),void 0!==c.zoom?(f.sourceResolution=l,f.targetResolution=this.getResolutionForZoom(c.zoom),l=f.targetResolution):c.resolution&&(f.sourceResolution=l,f.targetResolution=c.resolution,l=f.targetResolution),void 0!==c.rotation){f.sourceRotation=u;var d=(0,p.xP)(c.rotation-u+Math.PI,2*Math.PI)-Math.PI;f.targetRotation=u+d,u=f.targetRotation}T(f)?f.complete=!0:a+=f.duration,h.push(f)}this.animations_.push(h),this.setHint(o.A.ANIMATING,1),this.updateAnimations_()}else e&&C(e,!0)},e.prototype.getAnimating=function(){return this.hints_[o.A.ANIMATING]>0},e.prototype.getInteracting=function(){return this.hints_[o.A.INTERACTING]>0},e.prototype.cancelAnimations=function(){var t;this.setHint(o.A.ANIMATING,-this.hints_[o.A.ANIMATING]);for(var e=0,r=this.animations_.length;e<r;++e){var n=this.animations_[e];if(n[0].callback&&C(n[0].callback,!1),!t)for(var i=0,a=n.length;i<a;++i){var s=n[i];if(!s.complete){t=s.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN},e.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,r=this.animations_.length-1;r>=0;--r){for(var n=this.animations_[r],i=!0,a=0,s=n.length;a<s;++a){var l=n[a];if(!l.complete){var u=t-l.start,h=l.duration>0?u/l.duration:1;h>=1?(l.complete=!0,h=1):i=!1;var c=l.easing(h);if(l.sourceCenter){var f=l.sourceCenter[0],d=l.sourceCenter[1],g=l.targetCenter[0],_=l.targetCenter[1];this.nextCenter_=l.targetCenter;var y=f+c*(g-f),m=d+c*(_-d);this.targetCenter_=[y,m]}if(l.sourceResolution&&l.targetResolution){var v=1===c?l.targetResolution:l.sourceResolution+c*(l.targetResolution-l.sourceResolution);if(l.anchor){var w=this.getViewportSize_(this.getRotation()),x=this.constraints_.resolution(v,0,w,!0);this.targetCenter_=this.calculateCenterZoom(x,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=v,this.applyTargetState_(!0)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var b=1===c?(0,p.xP)(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+c*(l.targetRotation-l.sourceRotation);if(l.anchor){var E=this.constraints_.rotation(b,!0);this.targetCenter_=this.calculateCenterRotate(E,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=b}if(this.applyTargetState_(!0),e=!0,!l.complete)break}}if(i){this.animations_[r]=null,this.setHint(o.A.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var A=n[0].callback;A&&C(A,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,e){var r,n=this.getCenterInternal();return void 0!==n&&(r=[n[0]-e[0],n[1]-e[1]],(0,h.e$)(r,t-this.getRotation()),(0,h.WQ)(r,e)),r},e.prototype.calculateCenterZoom=function(t,e){var r,n=this.getCenterInternal(),i=this.getResolution();void 0!==n&&void 0!==i&&(r=[e[0]-t*(e[0]-n[0])/i,e[1]-t*(e[1]-n[1])/i]);return r},e.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var r=e[0],n=e[1];return[Math.abs(r*Math.cos(t))+Math.abs(n*Math.sin(t)),Math.abs(r*Math.sin(t))+Math.abs(n*Math.cos(t))]}return e},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t?(0,l.toUserCoordinate)(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(a.A.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=this.calculateExtentInternal(t);return(0,l.toUserExtent)(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSizeMinusPadding_(),r=this.getCenterInternal();(0,c.v)(r,1);var n=this.getResolution();(0,c.v)(void 0!==n,2);var i=this.getRotation();return(0,c.v)(void 0!==i,3),(0,_.getForViewAndSize)(r,n,i,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(a.A.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal((0,l.fromUserExtent)(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var r=e||this.getViewportSizeMinusPadding_(),n=(0,_.getWidth)(t)/r[0],i=(0,_.getHeight)(t)/r[1];return Math.max(n,i)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,r=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(r/n)/Math.log(e);return function(t){return r/Math.pow(e,t*i)}},e.prototype.getRotation=function(){return this.get(a.A.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),r=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(r/n)/e;return function(t){return Math.log(r/t)/e/i}},e.prototype.getViewportSizeMinusPadding_=function(t){var e=this.getViewportSize_(t),r=this.padding_;return r&&(e=[e[0]-r[1]-r[3],e[1]-r[0]-r[2]]),e},e.prototype.getState=function(){var t=this.getProjection(),e=this.getResolution(),r=this.getRotation(),n=this.getCenterInternal(),i=this.padding_;if(i){var o=this.getViewportSizeMinusPadding_();n=P(n,this.getViewportSize_(),[o[0]/2+i[3],o[1]/2+i[0]],e,r)}return{center:n.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:r,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},e.prototype.getZoomForResolution=function(t){var e,r,n=this.minZoom_||0;if(this.resolutions_){var i=(0,y.FT)(this.resolutions_,t,1);n=i,e=this.resolutions_[i],r=i==this.resolutions_.length-1?2:e/this.resolutions_[i+1]}else e=this.maxResolution_,r=this.zoomFactor_;return n+Math.log(e/t)/Math.log(r)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=(0,p.qE)(Math.floor(t),0,this.resolutions_.length-2),r=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(r,(0,p.qE)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}
8,e.prototype.fit=function(t,e){var r;if((0,c.v)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)){(0,c.v)(!(0,_.isEmpty)(t),25);var n=(0,l.fromUserExtent)(t,this.getProjection());r=(0,A.VY)(n)}else if("Circle"===t.getType()){n=(0,l.fromUserExtent)(t.getExtent(),this.getProjection());(r=(0,A.VY)(n)).rotate(this.getRotation(),(0,_.getCenter)(n))}else{var i=(0,l.getUserProjection)();r=i?t.clone().transform(i,this.getProjection()):t}this.fitInternal(r,e)},e.prototype.rotatedExtentForGeometry=function(t){for(var e=this.getRotation(),r=Math.cos(e),n=Math.sin(-e),i=t.getFlatCoordinates(),o=t.getStride(),a=1/0,s=1/0,l=-1/0,u=-1/0,h=0,c=i.length;h<c;h+=o){var f=i[h]*r-i[h+1]*n,p=i[h]*n+i[h+1]*r;a=Math.min(a,f),s=Math.min(s,p),l=Math.max(l,f),u=Math.max(u,p)}return[a,s,l,u]},e.prototype.fitInternal=function(t,e){var r=e||{},n=r.size;n||(n=this.getViewportSizeMinusPadding_());var i,o=void 0!==r.padding?r.padding:[0,0,0,0],a=void 0!==r.nearest&&r.nearest;i=void 0!==r.minResolution?r.minResolution:void 0!==r.maxZoom?this.getResolutionForZoom(r.maxZoom):0;var s=this.rotatedExtentForGeometry(t),l=this.getResolutionForExtentInternal(s,[n[0]-o[1]-o[3],n[1]-o[0]-o[2]]);l=isNaN(l)?i:Math.max(l,i),l=this.getConstrainedResolution(l,a?0:1);var h=this.getRotation(),c=Math.sin(h),f=Math.cos(h),p=(0,_.getCenter)(s);p[0]+=(o[1]-o[3])/2*l,p[1]+=(o[0]-o[2])/2*l;var d=p[0]*f-p[1]*c,g=p[1]*f+p[0]*c,y=this.getConstrainedCenter([d,g],l),m=r.callback?r.callback:u.tV;void 0!==r.duration?this.animateInternal({resolution:l,center:y,duration:r.duration,easing:r.easing},m):(this.targetResolution_=l,this.targetCenter_=y,this.applyTargetState_(!1,!0),C(m,!0))},e.prototype.centerOn=function(t,e,r){this.centerOnInternal((0,l.fromUserCoordinate)(t,this.getProjection()),e,r)},e.prototype.centerOnInternal=function(t,e,r){this.setCenterInternal(P(t,e,r,this.getResolution(),this.getRotation()))},e.prototype.calculateCenterShift=function(t,e,r,n){var i,o=this.padding_;if(o&&t){var a=this.getViewportSizeMinusPadding_(-r),s=P(t,n,[a[0]/2+o[3],a[1]/2+o[0]],e,r);i=[t[0]-s[0],t[1]-s[1]]}return i},e.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},e.prototype.adjustCenter=function(t){var e=(0,l.toUserCoordinate)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustCenterInternal=function(t){var e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustResolution=function(t,e){var r=e&&(0,l.fromUserCoordinate)(e,this.getProjection());this.adjustResolutionInternal(t,r)},e.prototype.adjustResolutionInternal=function(t,e){var r=this.getAnimating()||this.getInteracting(),n=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*t,0,n,r);e&&(this.targetCenter_=this.calculateCenterZoom(i,e)),this.targetResolution_*=t,this.applyTargetState_()},e.prototype.adjustZoom=function(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)},e.prototype.adjustRotation=function(t,e){e&&(e=(0,l.fromUserCoordinate)(e,this.getProjection())),this.adjustRotationInternal(t,e)},e.prototype.adjustRotationInternal=function(t,e){var r=this.getAnimating()||this.getInteracting(),n=this.constraints_.rotation(this.targetRotation_+t,r);e&&(this.targetCenter_=this.calculateCenterRotate(n,e)),this.targetRotation_+=t,this.applyTargetState_()},e.prototype.setCenter=function(t){this.setCenterInternal(t?(0,l.fromUserCoordinate)(t,this.getProjection()):t)},e.prototype.setCenterInternal=function(t){this.targetCenter_=t,this.applyTargetState_()},e.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},e.prototype.setResolution=function(t){this.targetResolution_=t,this.applyTargetState_()},e.prototype.setRotation=function(t){this.targetRotation_=t,this.applyTargetState_()},e.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},e.prototype.applyTargetState_=function(t,e){var r=this.getAnimating()||this.getInteracting()||e,n=this.constraints_.rotation(this.targetRotation_,r),i=this.getViewportSize_(n),o=this.constraints_.resolution(this.targetResolution_,0,i,r),s=this.constraints_.center(this.targetCenter_,o,i,r,this.calculateCenterShift(this.targetCenter_,o,n,i));this.get(a.A.ROTATION)!==n&&this.set(a.A.ROTATION,n),this.get(a.A.RESOLUTION)!==o&&(this.set(a.A.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),s&&this.get(a.A.CENTER)&&(0,h.aI)(this.get(a.A.CENTER),s)||this.set(a.A.CENTER,s),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0}
vendor: 15,762 bytes, line 8
8,e.prototype.resolveConstraints=function(t,e,r){var n=void 0!==t?t:200,i=e||0,o=this.constraints_.rotation(this.targetRotation_),a=this.getViewportSize_(o),s=this.constraints_.resolution(this.targetResolution_,i,a),l=this.constraints_.center(this.targetCenter_,s,a,!1,this.calculateCenterShift(this.targetCenter_,s,o,a));if(0===n&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=o,this.targetCenter_=l,void this.applyTargetState_();var u=r||(0===n?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===o&&this.getCenterInternal()&&(0,h.aI)(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:l,resolution:s,duration:n,easing:E.easeOut,anchor:u}))},e.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(o.A.INTERACTING,1)},e.prototype.endInteraction=function(t,e,r){var n=r&&(0,l.fromUserCoordinate)(r,this.getProjection());this.endInteractionInternal(t,e,n)},e.prototype.endInteractionInternal=function(t,e,r){this.setHint(o.A.INTERACTING,-1),this.resolveConstraints(t,e,r)},e.prototype.getConstrainedCenter=function(t,e){var r=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),r)},e.prototype.getConstrainedZoom=function(t,e){var r=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(r,e))},e.prototype.getConstrainedResolution=function(t,e){var r=e||0,n=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,r,n)},e}(n.A)},2703:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={ANIMATING:0,INTERACTING:1}},9015:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"}},6514:(t,e,r)=>{"use strict";function n(t,e,r){for(var n,o,a=r||i,s=0,l=t.length,u=!1;s<l;)(o=+a(t[n=s+(l-s>>1)],e))<0?s=n+1:(l=n,u=!o);return u?s:~s}function i(t,e){return t>e?1:t<e?-1:0}function o(t,e){return t.indexOf(e)>=0}function a(t,e,r){var n=t.length;if(t[0]<=e)return 0;if(e<=t[n-1])return n-1;var i=void 0;if(r>0){for(i=1;i<n;++i)if(t[i]<e)return i-1}else if(r<0){for(i=1;i<n;++i)if(t[i]<=e)return i}else for(i=1;i<n;++i){if(t[i]==e)return i;if(t[i]<e)return"function"==typeof r?r(e,t[i-1],t[i])>0?i-1:i:t[i-1]-e<e-t[i]?i-1:i}return n-1}function s(t,e,r){for(;e<r;){var n=t[e];t[e]=t[r],t[r]=n,++e,--r}}function l(t,e){for(var r=Array.isArray(e)?e:[e],n=r.length,i=0;i<n;i++)t[t.length]=r[i]}function u(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function h(t,e,r){var n=e||i;return t.every((function(e,i){if(0===i)return!0;var o=n(t[i-1],e);return!(o>0||r&&0===o)}))}r.d(e,{El:()=>n,FT:()=>a,WC:()=>h,X$:()=>l,aI:()=>u,gI:()=>s,mK:()=>o,qA:()=>i})},588:(t,e,r)=>{"use strict";r.d(e,{v:()=>i});var n=r(17);function i(t,e){if(!t)throw new n.A(e)}},9352:(t,e,r)=>{"use strict";r.r(e),r.d(e,{asArray:()=>f,asString:()=>s,fromString:()=>c,isStringColor:()=>g,normalize:()=>p,toString:()=>d});var n=r(588),i=r(1597),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)}function l(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var r=getComputedStyle(e).color;return document.body.removeChild(e),r}return""}var u,h,c=(u={},h=0,function(t){var e;if(u.hasOwnProperty(t))e=u[t];else{if(h>=1024){var r=0;for(var i in u)3&r++||(delete u[i],--h)}e=function(t){var e,r,i,s,u;if(a.exec(t)&&(t=l(t)),o.exec(t)){var h=t.length-1,c=void 0;c=h<=4?1:2;var f=4===h||8===h;e=parseInt(t.substr(1+0*c,c),16),r=parseInt(t.substr(1+1*c,c),16),i=parseInt(t.substr(1+2*c,c),16),s=f?parseInt(t.substr(1+3*c,c),16):255,1==c&&(e=(e<<4)+e,r=(r<<4)+r,i=(i<<4)+i,f&&(s=(s<<4)+s)),u=[e,r,i,s/255]}else 0==t.indexOf("rgba(")?p(u=t.slice(5,-1).split(",").map(Number)):0==t.indexOf("rgb(")?((u=t.slice(4,-1).split(",").map(Number)).push(1),p(u)):(0,n.v)(!1,14);return u}(t),u[t]=e,++h}return e});function f(t){return Array.isArray(t)?t:c(t)}function p(t){return t[0]=(0,i.qE)(t[0]+.5|0,0,255),t[1]=(0,i.qE)(t[1]+.5|0,0,255),t[2]=(0,i.qE)(t[2]+.5|0,0,255),t[3]=(0,i.qE)(t[3],0,1),t}function d(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var r=t[1];r!=(0|r)&&(r=r+.5|0);var n=t[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+e+","+r+","+n+","+(void 0===t[3]?1:Math.round(100*t[3])/100)+")"}function g(t){return a.test(t)&&(t=l(t)),o.test(t)||0===t.indexOf("rgba(")||0===t.indexOf("rgb(")}},7295:(t,e,r)=>{"use strict";r.d(e,{F:()=>i});var n=r(9352);function i(t){return Array.isArray(t)?(0,n.toString)(t):t}},6272:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Attribution:()=>c,Control:()=>i.default,FullScreen:()=>T,MousePosition:()=>k,OverviewMap:()=>H,Rotate:()=>g,ScaleLine:()=>ot,Zoom:()=>y,ZoomSlider:()=>ct,ZoomToExtent:()=>pt,defaults:()=>dt});var n,i=r(972),o=r(6837),a=r(5176),s=r(6514),l=r(764),u=r(8711),h=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const c=function(t){function e(e){var r=this,n=e||{};(r=t.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this).ulElement_=document.createElement("ul"),r.collapsed_=void 0===n.collapsed||n.collapsed,r.userCollapsed_=r.collapsed_,r.overrideCollapsible_=void 0!==n.collapsible,r.collapsible_=void 0===n.collapsible||n.collapsible,r.collapsible_||(r.collapsed_=!1);var i=void 0!==n.className?n.className:"ol-attribution",s=void 0!==n.tipLabel?n.tipLabel:"Attributions",l=void 0!==n.expandClassName?n.expandClassName:i+"-expand",u=void 0!==n.collapseLabel?n.collapseLabel:"\u203a",h=void 0!==n.collapseClassName?n.collapseClassName:i+"-collapse";"string"==typeof u?(r.collapseLabel_=document.createElement("span"),r.collapseLabel_.textContent=u,r.collapseLabel_.className=h):r.collapseLabel_=u;var c=void 0!==n.label?n.label:"i";"string"==typeof c?(r.label_=document.createElement("span"),r.label_.textContent=c,r.label_.className=l):r.label_=c;var f=r.collapsible_&&!r.collapsed_?r.collapseLabel_:r.label_;r.toggleButton_=document.createElement("button"),r.toggleButton_.setAttribute("type","button"),r.toggleButton_.setAttribute("aria-expanded",String(!r.collapsed_)),r.toggleButton_.title=s,r.toggleButton_.appendChild(f),r.toggleButton_.addEventListener(o.A.CLICK,r.handleClick_.bind(r),!1);var p=i+" "+a.XI+" "+a.$N+(r.collapsed_&&r.collapsible_?" "+a.nT:"")+(r.collapsible_?"":" ol-uncollapsible"),d=r.element;return d.className=p,d.appendChild(r.toggleButton_),d.appendChild(r.ulElement_),r.renderedAttributions_=[],r.renderedVisible_=!0,r}return h(e,t),e.prototype.collectSourceAttributions_=function(t){for(var e={},r=[],n=!0,i=t.layerStatesArray,o=0,a=i.length;o<a;++o){var s=i[o];if((0,l.l)(s,t.viewState)){var u=s.layer.getSource();if(u){var h=u.getAttributions();if(h){var c=h(t);if(c)if(n=n&&!1!==u.getAttributionsCollapsible(),Array.isArray(c))for(var f=0,p=c.length;f<p;++f)c[f]in e||(r.push(c[f]),e[c[f]]=!0);else c in e||(r.push(c),e[c]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(n),r},e.prototype.updateElement_=function(t){if(t){var e=this.collectSourceAttributions_(t),r=e.length>0;if(this.renderedVisible_!=r&&(this.element.style.display=r?"":"none",this.renderedVisible_=r),!(0,s.aI)(e,this.renderedAttributions_)){(0,u.gS)(this.ulElement_);for(var n=0,i=e.length;n<i;++n){var o=document.createElement("li");o.innerHTML=e[n],this.ulElement_.appendChild(o)}this.renderedAttributions_=e}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_},e.prototype.handleToggle_=function(){this.element.classList.toggle(a.nT),this.collapsed_?(0,u.fo)(this.collapseLabel_,this.label_):(0,u.fo)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.render=function(t){this.updateElement_(t.frameState)},e}(i.default);var f=r(71),p=r(3474),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const g=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this;var i=void 0!==n.className?n.className:"ol-rotate",s=void 0!==n.label?n.label:"\u21e7",l=void 0!==n.compassClassName?n.compassClassName:"ol-compass";r.label_=null,"string"==typeof s?(r.label_=document.createElement("span"),r.label_.className=l,r.label_.textContent=s):(r.label_=s,r.label_.classList.add(l));var u=n.tipLabel?n.tipLabel:"Reset rotation",h=document.createElement("button");h.className=i+"-reset",h.setAttribute("type","button"),h.title=u,h.appendChild(r.label_),h.addEventListener(o.A.CLICK,r.handleClick_.bind(r),!1);var c=i+" "+a.XI+" "+a.$N,f=r.element;return f.className=c,f.appendChild(h),r.callResetNorth_=n.resetNorth?n.resetNorth:void 0,r.duration_=void 0!==n.duration?n.duration:250,r.autoHide_=void 0===n.autoHide||n.autoHide,r.rotation_=void 0,r.autoHide_&&r.element.classList.add(a.Si),r}return d(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},e.prototype.resetNorth_=function(){var t=this.getMap().getView();if(t){var e=t.getRotation();void 0!==e&&(this.duration_>0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:p.easeOut}):t.setRotation(0))}},e.prototype.render=function(t){var e=t.frameState;if(e){var r=e.viewState.rotation;if(r!=this.rotation_){var n="rotate("+r+"rad)";if(this.autoHide_){var i=this.element.classList.contains(a.Si);i||0!==r?i&&0!==r&&this.element.classList.remove(a.Si):this.element.classList.add(a.Si)}this.label_.style.transform=n}this.rotation_=r}},e}(i.default);var _=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const y=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),target:n.target})||this;var i=void 0!==n.className?n.className:"ol-zoom",s=void 0!==n.delta?n.delta:1,l=void 0!==n.zoomInClassName?n.zoomInClassName:i+"-in",u=void 0!==n.zoomOutClassName?n.zoomOutClassName:i+"-out",h=void 0!==n.zoomInLabel?n.zoomInLabel:"+",c=void 0!==n.zoomOutLabel?n.zoomOutLabel:"\u2013",f=void 0!==n.zoomInTipLabel?n.zoomInTipLabel:"Zoom in",p=void 0!==n.zoomOutTipLabel?n.zoomOutTipLabel:"Zoom out",d=document.createElement("button");d.className=l,d.setAttribute("type","button"),d.title=f,d.appendChild("string"==typeof h?document.createTextNode(h):h),d.addEventListener(o.A.CLICK,r.handleClick_.bind(r,s),!1);var g=document.createElement("button");g.className=u,g.setAttribute("type","button"),g.title=p,g.appendChild("string"==typeof c?document.createTextNode(c):c),g.addEventListener(o.A.CLICK,r.handleClick_.bind(r,-s),!1);var _=i+" "+a.XI+" "+a.$N,y=r.element;return y.className=_,y.appendChild(d),y.appendChild(g),r.duration_=void 0!==n.duration?n.duration:250,r}return _(e,t),e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap().getView();if(e){var r=e.getZoom();if(void 0!==r){var n=e.getConstrainedZoom(r+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:n,duration:this.duration_,easing:p.easeOut})):e.setZoom(n)}}},e}(i.default);var m=r(3116),v=r(9438),w=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),x=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],b="enterfullscreen",E="leavefullscreen";function A(t){var e=t.body;return!!(e.webkitRequestFullscreen||e.msRequestFullscreen&&t.msFullscreenEnabled||e.requestFullscreen&&t.fullscreenEnabled)}function S(t){return!!(t.webkitIsFullScreen||t.msFullscreenElement||t.fullscreenElement)}function C(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}const T=function(t){function e(e){var r=this,n=e||{};(r=t.call(this,{element:document.createElement("div"),target:n.target})||this).on,r.once,r.un,r.keys_=void 0!==n.keys&&n.keys,r.source_=n.source,r.isInFullscreen_=!1,r.boundHandleMapTargetChange_=r.handleMapTargetChange_.bind(r),r.cssClassName_=void 0!==n.className?n.className:"ol-full-screen",r.documentListeners_=[],r.activeClassName_=void 0!==n.activeClassName?n.activeClassName.split(" "):[r.cssClassName_+"-true"],r.inactiveClassName_=void 0!==n.inactiveClassName?n.inactiveClassName.split(" "):[r.cssClassName_+"-false"];var i=void 0!==n.label?n.label:"\u2922";r.labelNode_="string"==typeof i?document.createTextNode(i):i;var s=void 0!==n.labelActive?n.labelActive:"\xd7";r.labelActiveNode_="string"==typeof s?document.createTextNode(s):s;var l=n.tipLabel?n.tipLabel:"Toggle full-screen";return r.button_=document.createElement("button"),r.button_.title=l,r.button_.setAttribute("type","button"),r.button_.appendChild(r.labelNode_),r.button_.addEventListener(o.A.CLICK,r.handleClick_.bind(r),!1),r.setClassName_(r.button_,r.isInFullscreen_),r.element.className="".concat(r.cssClassName_," ").concat(a.XI," ").concat(a.$N),r.element.appendChild(r.button_),r}return w(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),this.handleFullScreen_()},e.prototype.handleFullScreen_=function(){var t=this.getMap();if(t){var e=t.getOwnerDocument();if(A(e))if(S(e))!function(t){t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen&&t.webkitExitFullscreen()}(e);else{var r=void 0;r=this.source_?"string"==typeof this.source_?e.getElementById(this.source_):this.source_:t.getTargetElement(),this.keys_?function(t){t.webkitRequestFullscreen?t.webkitRequestFullscreen():C(t)}(r):C(r)}
8}},e.prototype.handleFullScreenChange_=function(){var t=this.getMap();if(t){var e=this.isInFullscreen_;this.isInFullscreen_=S(t.getOwnerDocument()),e!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?((0,u.fo)(this.labelActiveNode_,this.labelNode_),this.dispatchEvent(b)):((0,u.fo)(this.labelNode_,this.labelActiveNode_),this.dispatchEvent(E)),t.updateSize())}},e.prototype.setClassName_=function(t,e){var r,n,i,o;e?((r=t.classList).remove.apply(r,this.inactiveClassName_),(n=t.classList).add.apply(n,this.activeClassName_)):((i=t.classList).remove.apply(i,this.activeClassName_),(o=t.classList).add.apply(o,this.inactiveClassName_))},e.prototype.setMap=function(e){var r=this.getMap();r&&r.removeChangeListener(m.A.TARGET,this.boundHandleMapTargetChange_),t.prototype.setMap.call(this,e),this.handleMapTargetChange_(),e&&e.addChangeListener(m.A.TARGET,this.boundHandleMapTargetChange_)},e.prototype.handleMapTargetChange_=function(){for(var t=this.documentListeners_,e=0,r=t.length;e<r;++e)(0,v.JH)(t[e]);t.length=0;var n=this.getMap();if(n){var i=n.getOwnerDocument();A(i)?this.element.classList.remove(a.Vv):this.element.classList.add(a.Vv);for(e=0,r=x.length;e<r;++e)t.push((0,v.KT)(i,x[e],this.handleFullScreenChange_,this));this.handleFullScreenChange_()}},e}(i.default);var P=r(613),I=r(7083),O=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),R="projection",L="coordinateFormat";const k=function(t){function e(e){var r=this,n=e||{},i=document.createElement("div");i.className=void 0!==n.className?n.className:"ol-mouse-position",(r=t.call(this,{element:i,render:n.render,target:n.target})||this).on,r.once,r.un,r.addChangeListener(R,r.handleProjectionChanged_),n.coordinateFormat&&r.setCoordinateFormat(n.coordinateFormat),n.projection&&r.setProjection(n.projection);var o=!0,a="&#160;";return"undefinedHTML"in n?(void 0!==n.undefinedHTML&&(a=n.undefinedHTML),o=!!a):"placeholder"in n&&(!1===n.placeholder?o=!1:a=String(n.placeholder)),r.placeholder_=a,r.renderOnMouseOut_=o,r.renderedHTML_=i.innerHTML,r.mapProjection_=null,r.transform_=null,r}return O(e,t),e.prototype.handleProjectionChanged_=function(){this.transform_=null},e.prototype.getCoordinateFormat=function(){return this.get(L)},e.prototype.getProjection=function(){return this.get(R)},e.prototype.handleMouseMove=function(t){var e=this.getMap();this.updateHTML_(e.getEventPixel(t))},e.prototype.handleMouseOut=function(t){this.updateHTML_(null)},e.prototype.setMap=function(e){if(t.prototype.setMap.call(this,e),e){var r=e.getViewport();this.listenerKeys.push((0,v.KT)(r,P.A.POINTERMOVE,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push((0,v.KT)(r,P.A.POINTEROUT,this.handleMouseOut,this)),this.updateHTML_(null)}},e.prototype.setCoordinateFormat=function(t){this.set(L,t)},e.prototype.setProjection=function(t){this.set(R,(0,I.get)(t))},e.prototype.updateHTML_=function(t){var e=this.placeholder_;if(t&&this.mapProjection_){if(!this.transform_){var r=this.getProjection();this.transform_=r?(0,I.getTransformFromProjections)(this.mapProjection_,r):I.identityTransform}var n=this.getMap().getCoordinateFromPixelInternal(t);if(n){var i=(0,I.getUserProjection)();i&&(this.transform_=(0,I.getTransformFromProjections)(this.mapProjection_,i)),this.transform_(n,n);var o=this.getCoordinateFormat();e=o?o(n):n.toString()}}this.renderedHTML_&&e===this.renderedHTML_||(this.element.innerHTML=e,this.renderedHTML_=e)},e.prototype.render=function(t){var e=t.frameState;e?this.mapProjection_!=e.viewState.projection&&(this.mapProjection_=e.viewState.projection,this.transform_=null):this.mapProjection_=null},e}(i.default);var M=r(8100),F=r(2585),D=r(8450),j=r(1795),U=r(7415),G=r(3568),N=r(9015),B=r(915),z=r(1064),V=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),X=.75,K=.1,W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return V(e,t),e.prototype.createRenderer=function(){return new M.A(this)},e}(U.A);const H=function(t){function e(e){var r=this,n=e||{};(r=t.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this).boundHandleRotationChanged_=r.handleRotationChanged_.bind(r),r.collapsed_=void 0===n.collapsed||n.collapsed,r.collapsible_=void 0===n.collapsible||n.collapsible,r.collapsible_||(r.collapsed_=!1),r.rotateWithView_=void 0!==n.rotateWithView&&n.rotateWithView,r.viewExtent_=void 0;var i=void 0!==n.className?n.className:"ol-overviewmap",s=void 0!==n.tipLabel?n.tipLabel:"Overview map",l=void 0!==n.collapseLabel?n.collapseLabel:"\u2039";"string"==typeof l?(r.collapseLabel_=document.createElement("span"),r.collapseLabel_.textContent=l):r.collapseLabel_=l;var u=void 0!==n.label?n.label:"\u203a";"string"==typeof u?(r.label_=document.createElement("span"),r.label_.textContent=u):r.label_=u;var h=r.collapsible_&&!r.collapsed_?r.collapseLabel_:r.label_,c=document.createElement("button");c.setAttribute("type","button"),c.title=s,c.appendChild(h),c.addEventListener(o.A.CLICK,r.handleClick_.bind(r),!1),r.ovmapDiv_=document.createElement("div"),r.ovmapDiv_.className="ol-overviewmap-map",r.view_=n.view,r.ovmap_=new W({view:n.view});var f=r.ovmap_;
vendor: 15,612 bytes, line 8
8n.layers&&n.layers.forEach((function(t){f.addLayer(t)}));var p=document.createElement("div");p.className="ol-overviewmap-box",p.style.boxSizing="border-box",r.boxOverlay_=new j.A({position:[0,0],positioning:"center-center",element:p}),r.ovmap_.addOverlay(r.boxOverlay_);var d=i+" "+a.XI+" "+a.$N+(r.collapsed_&&r.collapsible_?" "+a.nT:"")+(r.collapsible_?"":" ol-uncollapsible"),g=r.element;g.className=d,g.appendChild(r.ovmapDiv_),g.appendChild(c);var _=r,y=r.boxOverlay_,m=r.boxOverlay_.getElement(),v=function(t){var e,r={clientX:(e=t).clientX,clientY:e.clientY},n=f.getEventCoordinateInternal(r);y.setPosition(n)},w=function(t){var e=f.getEventCoordinateInternal(t);_.getMap().getView().setCenterInternal(e),window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",w)};return m.addEventListener("mousedown",(function(){window.addEventListener("mousemove",v),window.addEventListener("mouseup",w)})),r}return V(e,t),e.prototype.setMap=function(e){var r=this.getMap();if(e!==r){if(r){var n=r.getView();n&&this.unbindView_(n),this.ovmap_.setTarget(null)}if(t.prototype.setMap.call(this,e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push((0,v.KT)(e,D.A.PROPERTYCHANGE,this.handleMapPropertyChange_,this));var i=e.getView();i&&(this.bindView_(i),i.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}},e.prototype.handleMapPropertyChange_=function(t){if(t.key===m.A.VIEW){var e=t.oldValue;e&&this.unbindView_(e);var r=this.getMap().getView();this.bindView_(r)}else this.ovmap_.isRendered()||t.key!==m.A.TARGET&&t.key!==m.A.SIZE||this.ovmap_.updateSize()},e.prototype.bindView_=function(t){if(!this.view_){var e=new G.Ay({projection:t.getProjection()});this.ovmap_.setView(e)}t.addChangeListener(N.A.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_()},e.prototype.unbindView_=function(t){t.removeChangeListener(N.A.ROTATION,this.boundHandleRotationChanged_)},e.prototype.handleRotationChanged_=function(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())},e.prototype.validateExtent_=function(){var t=this.getMap(),e=this.ovmap_;if(t.isRendered()&&e.isRendered()){var r=t.getSize(),n=t.getView().calculateExtentInternal(r);if(!this.viewExtent_||!(0,B.equals)(n,this.viewExtent_)){this.viewExtent_=n;var i=e.getSize(),o=e.getView().calculateExtentInternal(i),a=e.getPixelFromCoordinateInternal((0,B.getTopLeft)(n)),s=e.getPixelFromCoordinateInternal((0,B.getBottomRight)(n)),l=Math.abs(a[0]-s[0]),u=Math.abs(a[1]-s[1]),h=i[0],c=i[1];l<h*K||u<c*K||l>h*X||u>c*X?this.resetExtent_():(0,B.containsExtent)(o,n)||this.recenter_()}}},e.prototype.resetExtent_=function(){var t=this.getMap(),e=this.ovmap_,r=t.getSize(),n=t.getView().calculateExtentInternal(r),i=e.getView(),o=Math.log(7.5)/Math.LN2,a=1/(Math.pow(2,o/2)*K);(0,B.scaleFromCenter)(n,a),i.fitInternal((0,z.VY)(n))},e.prototype.recenter_=function(){var t=this.getMap(),e=this.ovmap_,r=t.getView();e.getView().setCenterInternal(r.getCenterInternal())},e.prototype.updateBox_=function(){var t=this.getMap(),e=this.ovmap_;if(t.isRendered()&&e.isRendered()){var r=t.getSize(),n=t.getView(),i=e.getView(),o=this.rotateWithView_?0:-n.getRotation(),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),l=n.getCenterInternal(),u=n.getResolution(),h=i.getResolution(),c=r[0]*u/h,f=r[1]*u/h;if(a.setPosition(l),s){s.style.width=c+"px",s.style.height=f+"px";var p="rotate("+o+"rad)";s.style.transform=p}}},e.prototype.updateBoxAfterOvmapIsRendered_=function(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=(0,v.Jz)(this.ovmap_,F.A.POSTRENDER,(function(t){delete this.ovmapPostrenderKey_,this.updateBox_()}),this))},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle(a.nT),this.collapsed_?(0,u.fo)(this.collapseLabel_,this.label_):(0,u.fo)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var t=this.ovmap_;if(!this.collapsed_){if(t.isRendered())return this.viewExtent_=void 0,void t.render();t.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.setRotateWithView=function(t){this.rotateWithView_!==t&&(this.rotateWithView_=t,0!==this.getMap().getView().getRotation()&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))},e.prototype.getOverviewMap=function(){return this.ovmap_},e.prototype.render=function(t){this.validateExtent_(),this.updateBox_()},e}(i.default);var Y=r(5719),Z=r(588),q=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),$="units",J="degrees",Q="imperial",tt="nautical",et="metric",rt="us",nt=[1,2,5],it=25.4/.28;const ot=function(t){function e(e){var r=this,n=e||{},i=void 0!==n.className?n.className:n.bar?"ol-scale-bar":"ol-scale-line";return(r=t.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this).on,r.once,r.un,r.innerElement_=document.createElement("div"),r.innerElement_.className=i+"-inner",r.element.className=i+" "+a.XI,r.element.appendChild(r.innerElement_),r.viewState_=null,r.minWidth_=void 0!==n.minWidth?n.minWidth:64,r.maxWidth_=n.maxWidth,r.renderedVisible_=!1,r.renderedWidth_=void 0,r.renderedHTML_="",r.addChangeListener($,r.handleUnitsChanged_),r.setUnits(n.units||et),r.scaleBar_=n.bar||!1,r.scaleBarSteps_=n.steps||4,r.scaleBarText_=n.text||!1,r.dpi_=n.dpi||void 0,r}return q(e,t),e.prototype.getUnits=function(){return this.get($)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set($,t)},e.prototype.setDpi=function(t){this.dpi_=t},e.prototype.updateElement_=function(){var t=this.viewState_;if(t){var e=t.center,r=t.projection,n=this.getUnits(),i=n==J?Y.Ay.DEGREES:Y.Ay.METERS,o=(0,I.getPointResolution)(r,t.resolution,e,i),a=this.minWidth_*(this.dpi_||it)/it,s=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||it)/it:void 0,l=a*o,u="";if(n==J){var h=I.METERS_PER_UNIT[Y.Ay.DEGREES];(l*=h)<h/60?(u="\u2033",o*=3600):l<h?(u="\u2032",o*=60):u="\xb0"}else n==Q?l<.9144?(u="in",o/=.0254):l<1609.344?(u="ft",o/=.3048):(u="mi",o/=1609.344):n==tt?(o/=1852,u="NM"):n==et?l<.001?(u="\u03bcm",o*=1e6):l<1?(u="mm",o*=1e3):l<1e3?u="m":(u="km",o/=1e3):n==rt?l<.9144?(u="in",o*=39.37):l<1609.344?(u="ft",o/=.30480061):(u="mi",o/=1609.3472):(0,Z.v)(!1,33);for(var c,f,p,d,g,_,y,m=3*Math.floor(Math.log(a*o)/Math.log(10));;){p=Math.floor(m/3);var v=Math.pow(10,p);if(c=nt[(m%3+3)%3]*v,f=Math.round(c/o),isNaN(f))return this.element.style.display="none",void(this.renderedVisible_=!1);if(void 0!==s&&f>=s){c=d,f=g,p=_;break}if(f>=a)break;d=c,g=f,_=p,++m}y=this.scaleBar_?this.createScaleBar(f,c,u):c.toFixed(p<0?-p:0)+" "+u,this.renderedHTML_!=y&&(this.innerElement_.innerHTML=y,this.renderedHTML_=y),this.renderedWidth_!=f&&(this.innerElement_.style.width=f+"px",this.renderedWidth_=f),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.createScaleBar=function(t,e,r){for(var n="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),i=[],o=t/this.scaleBarSteps_,a="ol-scale-singlebar-odd",s=0;s<this.scaleBarSteps_;s++)0===s&&i.push(this.createMarker("absolute",s)),i.push('<div><div class="ol-scale-singlebar '+a+'" style="width: '+o+'px;"></div>'+this.createMarker("relative",s)+(s%2==0||2===this.scaleBarSteps_?this.createStepText(s,t,!1,e,r):"")+"</div>"),s===this.scaleBarSteps_-1&&i.push(this.createStepText(s+1,t,!0,e,r)),a="ol-scale-singlebar-odd"===a?"ol-scale-singlebar-even":"ol-scale-singlebar-odd";return'<div style="display: flex;">'+(this.scaleBarText_?'<div class="ol-scale-text" style="width: '+t+'px;">'+n+"</div>":"")+i.join("")+"</div>"},e.prototype.createMarker=function(t,e){return'<div class="ol-scale-step-marker" style="position: '+t+";top: "+("absolute"===t?3:-10)+'px;"></div>'},e.prototype.createStepText=function(t,e,r,n,i){var o=(0===t?0:Math.round(n/this.scaleBarSteps_*t*100)/100)+(0===t?"":" "+i);return'<div class="ol-scale-step-text" style="margin-left: '+(0===t?-3:e/this.scaleBarSteps_*-1)+"px;text-align: "+(0===t?"left":"center")+"; min-width: "+(0===t?0:e/this.scaleBarSteps_*2)+"px;left: "+(r?e+"px":"unset")+';">'+o+"</div>"},e.prototype.getScaleForResolution=function(){var t=(0,I.getPointResolution)(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,Y.Ay.METERS),e=this.dpi_||it;return parseFloat(t.toString())*(1e3/25.4)*e},e.prototype.render=function(t){var e=t.frameState;this.viewState_=e?e.viewState:null,this.updateElement_()},e}(i.default);var at=r(1597),st=r(1685),lt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ut=0,ht=1;const ct=function(t){function e(e){var r=this,n=e||{};(r=t.call(this,{element:document.createElement("div"),render:n.render})||this).dragListenerKeys_=[],r.currentResolution_=void 0,r.direction_=ut,r.dragging_,r.heightLimit_=0,r.widthLimit_=0,r.startX_,r.startY_,r.thumbSize_=null,r.sliderInitialized_=!1,r.duration_=void 0!==n.duration?n.duration:200;var i=void 0!==n.className?n.className:"ol-zoomslider",s=document.createElement("button");s.setAttribute("type","button"),s.className=i+"-thumb "+a.XI;var l=r.element;return l.className=i+" "+a.XI+" "+a.$N,l.appendChild(s),l.addEventListener(P.A.POINTERDOWN,r.handleDraggerStart_.bind(r),!1),l.addEventListener(P.A.POINTERMOVE,r.handleDraggerDrag_.bind(r),!1),l.addEventListener(P.A.POINTERUP,r.handleDraggerEnd_.bind(r),!1),l.addEventListener(o.A.CLICK,r.handleContainerClick_.bind(r),!1),s.addEventListener(o.A.CLICK,st.dG,!1),r}return lt(e,t),e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),e&&e.render()},e.prototype.initSlider_=function(){var t=this.element,e=t.offsetWidth,r=t.offsetHeight;if(0===e&&0===r)return this.sliderInitialized_=!1;var n=getComputedStyle(t);e-=parseFloat(n.paddingRight)+parseFloat(n.paddingLeft),r-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom);var i=t.firstElementChild,o=getComputedStyle(i),a=i.offsetWidth+parseFloat(o.marginRight)+parseFloat(o.marginLeft),s=i.offsetHeight+parseFloat(o.marginTop)+parseFloat(o.marginBottom);return this.thumbSize_=[a,s],e>r?(this.direction_=ht,this.widthLimit_=e-a):(this.direction_=ut,this.heightLimit_=r-s),this.sliderInitialized_=!0},e.prototype.handleContainerClick_=function(t){var e=this.getMap().getView(),r=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),n=this.getResolutionForPosition_(r),i=e.getConstrainedZoom(e.getZoomForResolution(n));e.animateInternal({zoom:i,duration:this.duration_,easing:p.easeOut})},e.prototype.handleDraggerStart_=function(t){if(!this.dragging_&&t.target===this.element.firstElementChild){var e=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=t.clientX-parseFloat(e.style.left),this.startY_=t.clientY-parseFloat(e.style.top),this.dragging_=!0,0===this.dragListenerKeys_.length){var r=this.handleDraggerDrag_,n=this.handleDraggerEnd_,i=this.getMap().getOwnerDocument();this.dragListenerKeys_.push((0,v.KT)(i,P.A.POINTERMOVE,r,this),(0,v.KT)(i,P.A.POINTERUP,n,this))}}},e.prototype.handleDraggerDrag_=function(t){if(this.dragging_){var e=t.clientX-this.startX_,r=t.clientY-this.startY_,n=this.getRelativePosition_(e,r);this.currentResolution_=this.getResolutionForPosition_(n),this.getMap().getView().setResolution(this.currentResolution_)}},e.prototype.handleDraggerEnd_=function(t){this.dragging_&&(this.getMap().getView().endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(v.JH),this.dragListenerKeys_.length=0)},e.prototype.setThumbPosition_=function(t){var e=this.getPositionForResolution_(t),r=this.element.firstElementChild;this.direction_==ht?r.style.left=this.widthLimit_*e+"px":r.style.top=this.heightLimit_*e+"px"},e.prototype.getRelativePosition_=function(t,e){var r;return r=this.direction_===ht?t/this.widthLimit_:e/this.heightLimit_,(0,at.qE)(r,0,1)},e.prototype.getResolutionForPosition_=function(t){return this.getMap().getView().getResolutionForValueFunction()(1-t)},e.prototype.getPositionForResolution_=function(t){var e=this.getMap().getView().getValueForResolutionFunction();return(0,at.qE)(1-e(t),0,1)},e.prototype.render=function(t){if(t.frameState&&(this.sliderInitialized_||this.initSlider_())){var e=t.frameState.viewState.resolution;this.currentResolution_=e,this.setThumbPosition_(e)}},e}(i.default);var ft=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const pt=function(t){function e(e){var r=this,n=e||{};(r=t.call(this,{element:document.createElement("div"),target:n.target})||this).extent=n.extent?n.extent:null;var i=void 0!==n.className?n.className:"ol-zoom-extent",s=void 0!==n.label?n.label:"E",l=void 0!==n.tipLabel?n.tipLabel:"Fit to extent",u=document.createElement("button");u.setAttribute("type","button"),u.title=l,u.appendChild("string"==typeof s?document.createTextNode(s):s),u.addEventListener(o.A.CLICK,r.handleClick_.bind(r),!1);var h=i+" "+a.XI+" "+a.$N,c=r.element;return c.className=h,c.appendChild(u),r}return ft(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),this.handleZoomToExtent()},e.prototype.handleZoomToExtent=function(){var t=this.getMap().getView(),e=this.extent?this.extent:t.getProjection().getExtent();t.fitInternal((0,z.VY)(e))},e}(i.default);function dt(t){var e=t||{},r=new f.A;return(void 0===e.zoom||e.zoom)&&r.push(new y(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&r.push(new g(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&r.push(new c(e.attributionOptions)),r}},972:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>h});var n,i=r(4120),o=r(2585),a=r(4238),s=r(9438),l=r(8711),u=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const h=function(t){function e(e){var r=t.call(this)||this,n=e.element;return!n||e.target||n.style.pointerEvents||(n.style.pointerEvents="auto"),r.element=n||null,r.target_=null,r.map_=null,r.listenerKeys=[],e.render&&(r.render=e.render),e.target&&r.setTarget(e.target),r}return u(e,t),e.prototype.disposeInternal=function(){(0,l.bf)(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&(0,l.bf)(this.element);for(var e=0,r=this.listenerKeys.length;e<r;++e)(0,s.JH)(this.listenerKeys[e]);(this.listenerKeys.length=0,this.map_=t,t)&&((this.target_?this.target_:t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==a.tV&&this.listenerKeys.push((0,s.KT)(t,o.A.POSTRENDER,this.render,this)),t.render())},e.prototype.render=function(t){},e.prototype.setTarget=function(t){this.target_="string"==typeof t?document.getElementById(t):t},e}(i.A)},6933:(t,e,r)=>{"use strict";r.d(e,{$x:()=>g,Io:()=>d,Li:()=>_,U$:()=>y,WQ:()=>a,aI:()=>h,aP:()=>u,e$:()=>c,hG:()=>p,hs:()=>f,hw:()=>s,sG:()=>l});var n=r(915),i=r(1597),o=r(2806);function a(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function s(t,e){var r=e.getRadius(),n=e.getCenter(),i=n[0],o=n[1],a=t[0]-i,s=t[1]-o;0===a&&0===s&&(a=1);var l=Math.sqrt(a*a+s*s);return[i+r*a/l,o+r*s/l]}function l(t,e){var r,n,i=t[0],o=t[1],a=e[0],s=e[1],l=a[0],u=a[1],h=s[0],c=s[1],f=h-l,p=c-u,d=0===f&&0===p?0:(f*(i-l)+p*(o-u))/(f*f+p*p||0);return d<=0?(r=l,n=u):d>=1?(r=h,n=c):(r=l+d*f,n=u+d*p),[r,n]}function u(t,e,r){var n=(0,i.xP)(e+180,360)-180,a=Math.abs(3600*n),s=r||0,l=Math.pow(10,s),u=Math.floor(a/3600),h=Math.floor((a-3600*u)/60),c=a-3600*u-60*h;return(c=Math.ceil(c*l)/l)>=60&&(c=0,h+=1),h>=60&&(h=0,u+=1),u+"\xb0 "+(0,o.H)(h,2)+"\u2032 "+(0,o.H)(c,2,s)+"\u2033"+(0==n?"":" "+t.charAt(n<0?1:0))}function h(t,e){for(var r=!0,n=t.length-1;n>=0;--n)if(t[n]!=e[n]){r=!1;break}return r}function c(t,e){var r=Math.cos(e),n=Math.sin(e),i=t[0]*r-t[1]*n,o=t[1]*r+t[0]*n;return t[0]=i,t[1]=o,t}function f(t,e){return t[0]*=e,t[1]*=e,t}function p(t,e){var r=t[0]-e[0],n=t[1]-e[1];return r*r+n*n}function d(t,e){return Math.sqrt(p(t,e))}function g(t,e){return p(t,l(t,e))}function _(t,e){if(e.canWrapX()){var r=(0,n.getWidth)(e.getExtent()),i=y(t,e,r);i&&(t[0]-=i*r)}return t}function y(t,e,r){var i=e.getExtent(),o=0;if(e.canWrapX()&&(t[0]<i[0]||t[0]>i[2])){var a=r||(0,n.getWidth)(i);o=Math.floor((t[0]-i[0])/a)}return o}},5176:(t,e,r)=>{"use strict";r.d(e,{$N:()=>s,K5:()=>c,Q5:()=>i,Si:()=>n,Vv:()=>a,XI:()=>o,nT:()=>l});var n="ol-hidden",i="ol-selectable",o="ol-unselectable",a="ol-unsupported",s="ol-control",l="ol-collapsed",u=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"),h=["style","variant","weight","size","lineHeight","family"],c=function(t){var e=t.match(u);if(!e)return null;for(var r={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},n=0,i=h.length;n<i;++n){var o=e[n+1];void 0!==o&&(r[h[n]]=o)}return r.families=r.family.split(/,\s?/),r}},8711:(t,e,r)=>{"use strict";r.d(e,{DK:()=>s,Gq:()=>a,WM:()=>c,Y:()=>i,Yg:()=>o,bf:()=>u,fo:()=>l,gS:()=>h});var n=r(7771);function i(t,e,r,i){var o;return o=r&&r.length?r.shift():n.Wl?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(o.width=t),e&&(o.height=e),o.getContext("2d",i)}function o(t){var e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function a(t){var e=t.offsetWidth,r=getComputedStyle(t);return e+=parseInt(r.marginLeft,10)+parseInt(r.marginRight,10)}function s(t){var e=t.offsetHeight,r=getComputedStyle(t);return e+=parseInt(r.marginTop,10)+parseInt(r.marginBottom,10)}function l(t,e){var r=e.parentNode;r&&r.replaceChild(t,e)}function u(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function h(t){for(;
8t.lastChild;)t.removeChild(t.lastChild)}function c(t,e){for(var r=t.childNodes,n=0;;++n){var i=r[n],o=e[n];if(!i&&!o)break;i!==o&&(i?o?t.insertBefore(o,i):(t.removeChild(i),--n):t.appendChild(o))}}},3474:(t,e,r)=>{"use strict";function n(t){return Math.pow(t,3)}function i(t){return 1-n(1-t)}function o(t){return 3*t*t-2*t*t*t}function a(t){return t}function s(t){return t<.5?o(2*t):1-o(2*(t-.5))}r.r(e),r.d(e,{easeIn:()=>n,easeOut:()=>i,inAndOut:()=>o,linear:()=>a,upAndDown:()=>s})},9438:(t,e,r)=>{"use strict";r.d(e,{JH:()=>a,Jz:()=>o,KT:()=>i});var n=r(3530);function i(t,e,r,n,i){if(n&&n!==t&&(r=r.bind(n)),i){var o=r;r=function(){t.removeEventListener(e,r),o.apply(this,arguments)}}var a={target:t,type:e,listener:r};return t.addEventListener(e,r),a}function o(t,e,r,n){return i(t,e,r,n,!0)}function a(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,n.IU)(t))}},1685:(t,e,r)=>{"use strict";function n(t){t.stopPropagation()}r.d(e,{Ay:()=>i,dG:()=>n});const i=function(){function t(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}return t.prototype.preventDefault=function(){this.defaultPrevented=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t}()},6837:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},9332:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n,i=r(25),o=r(1685),a=r(4238),s=r(3530),l=(n=function(t,e){return n=Object.
vendor: 6,676 bytes, line 8
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const u=function(t){function e(e){var r=t.call(this)||this;return r.eventTarget_=e,r.pendingRemovals_=null,r.dispatching_=null,r.listeners_=null,r}return l(e,t),e.prototype.addEventListener=function(t,e){if(t&&e){var r=this.listeners_||(this.listeners_={}),n=r[t]||(r[t]=[]);-1===n.indexOf(e)&&n.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"==typeof t,r=e?t:t.type,n=this.listeners_&&this.listeners_[r];if(n){var i=e?new o.Ay(t):t;i.target||(i.target=this.eventTarget_||this);var s,l=this.dispatching_||(this.dispatching_={}),u=this.pendingRemovals_||(this.pendingRemovals_={});r in l||(l[r]=0,u[r]=0),++l[r];for(var h=0,c=n.length;h<c;++h)if(!1===(s="handleEvent"in n[h]?n[h].handleEvent(i):n[h].call(this,i))||i.propagationStopped){s=!1;break}if(0==--l[r]){var f=u[r];for(delete u[r];f--;)this.removeEventListener(r,a.tV);delete l[r]}return s}},e.prototype.disposeInternal=function(){this.listeners_&&(0,s.IU)(this.listeners_)},e.prototype.getListeners=function(t){return this.listeners_&&this.listeners_[t]||void 0},e.prototype.hasListener=function(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)},e.prototype.removeEventListener=function(t,e){var r=this.listeners_&&this.listeners_[t];if(r){var n=r.indexOf(e);-1!==n&&(this.pendingRemovals_&&t in this.pendingRemovals_?(r[n]=a.tV,++this.pendingRemovals_[t]):(r.splice(n,1),0===r.length&&delete this.listeners_[t]))}},e}(i.A)},8704:(t,e,r)=>{"use strict";r.r(e),r.d(e,{all:()=>s,altKeyOnly:()=>l,altShiftKeysOnly:()=>u,always:()=>f,click:()=>p,doubleClick:()=>m,focus:()=>h,focusWithTabindex:()=>c,mouseActionButton:()=>d,mouseOnly:()=>E,never:()=>g,noModifierKeys:()=>v,penOnly:()=>S,platformModifierKeyOnly:()=>w,pointerMove:()=>_,primaryAction:()=>C,shiftKeyOnly:()=>x,singleClick:()=>y,targetNotEditable:()=>b,touchOnly:()=>A});var n=r(3445),i=r(4238),o=r(7771),a=r(588);function s(t){var e=arguments;return function(t){for(var r=!0,n=0,i=e.length;n<i&&(r=r&&e[n](t));++n);return r}}var l=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},u=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},h=function(t){var e=t.map.getTargetElement(),r=t.map.getOwnerDocument().activeElement;return e.contains(r)},c=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||h(t)},f=i.rT,p=function(t){return t.type==n.A.CLICK},d=function(t){var e=t.originalEvent;return 0==e.button&&!(o.j&&o.ew&&e.ctrlKey)},g=i.W8,_=function(t){return"pointermove"==t.type},y=function(t){return t.type==n.A.SINGLECLICK},m=function(t){return t.type==n.A.DBLCLICK},v=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},w=function(t){var e=t.originalEvent;return!e.altKey&&(o.ew?e.metaKey:e.ctrlKey)&&!e.shiftKey},x=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},b=function(t){var e=t.originalEvent,r=e.target.tagName;return"INPUT"!==r&&"SELECT"!==r&&"TEXTAREA"!==r&&!e.target.isContentEditable},E=function(t){var e=t.originalEvent;return(0,a.v)(void 0!==e,56),"mouse"==e.pointerType},A=function(t){var e=t.originalEvent;return(0,a.v)(void 0!==e,56),"touch"===e.pointerType},S=function(t){var e=t.originalEvent;return(0,a.v)(void 0!==e,56),"pen"===e.pointerType},C=function(t){var e=t.originalEvent;return(0,a.v)(void 0!==e,56),e.isPrimary&&0===e.button}},915:(t,e,r)=>{"use strict";r.r(e),r.d(e,{applyTransform:()=>q,approximatelyEquals:()=>x,boundingExtent:()=>o,buffer:()=>a,clone:()=>s,closestSquaredDistanceXY:()=>l,containsCoordinate:()=>u,containsExtent:()=>h,containsXY:()=>c,coordinateRelationship:()=>f,createEmpty:()=>p,createOrUpdate:()=>d,createOrUpdateEmpty:()=>g,createOrUpdateFromCoordinate:()=>_,createOrUpdateFromCoordinates:()=>y,createOrUpdateFromFlatCoordinates:()=>m,createOrUpdateFromRings:()=>v,equals:()=>w,extend:()=>b,extendCoordinate:()=>E,extendCoordinates:()=>A,extendFlatCoordinates:()=>S,extendRings:()=>C,extendXY:()=>T,forEachCorner:()=>P,getArea:()=>I,getBottomLeft:()=>O,getBottomRight:()=>R,getCenter:()=>L,getCorner:()=>k,getEnlargedArea:()=>M,getForViewAndSize:()=>F,getHeight:()=>j,getIntersection:()=>G,getIntersectionArea:()=>U,getMargin:()=>N,getRotatedViewport:()=>D,getSize:()=>B,getTopLeft:()=>z,getTopRight:()=>V,getWidth:()=>X,intersects:()=>K,intersectsSegment:()=>Z,isEmpty:()=>W,returnOrUpdate:()=>H,scaleFromCenter:()=>Y,wrapAndSliceX:()=>J,wrapX:()=>$});var n=r(1580),i=r(588);function o(t){for(var e=p(),r=0,n=t.length;r<n;++r)E(e,t[r]);return e}function a(t,e,r){return r?(r[0]=t[0]-e,r[1]=t[1]-e,r[2]=t[2]+e,r[3]=t[3]+e,r):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function s(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function l(t,e,r){var n,i;return(n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*n+(i=r<t[1]?t[1]-r:t[3]<r?r-t[3]:0)*i}function u(t,e){return c(t,e[0],e[1])}function h(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function c(t,e,r){return t[0]<=e&&e<=t[2]&&t[1]<=r&&r<=t[3]}function f(t,e){var r=t[0],i=t[1],o=t[2],a=t[3],s=e[0],l=e[1],u=n.A.UNKNOWN;return s<r?u|=n.A.LEFT:s>o&&(u|=n.A.RIGHT),l<i?u|=n.A.BELOW:l>a&&(u|=n.A.ABOVE),u===n.A.UNKNOWN&&(u=n.A.INTERSECTING),u}function p(){return[1/0,1/0,-1/0,-1/0]}function d(t,e,r,n,i){return i?(i[0]=t,i[1]=e,i[2]=r,i[3]=n,i):[t,e,r,n]}function g(t){return d(1/0,1/0,-1/0,-1/0,t)}function _(t,e){var r=t[0],n=t[1];return d(r,n,r,n,e)}function y(t,e){return A(g(e),t)}function m(t,e,r,n,i){return S(g(i),t,e,r,n)}function v(t,e){return C(g(e),t)}function w(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function x(t,e,r){return Math.abs(t[0]-e[0])<r&&Math.abs(t[2]-e[2])<r&&Math.abs(t[1]-e[1])<r&&Math.abs(t[3]-e[3])<r}function b(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function E(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function A(t,e){for(var r=0,n=e.length;r<n;++r)E(t,e[r]);return t}function S(t,e,r,n,i){for(;r<n;r+=i)T(t,e[r],e[r+1]);return t}function C(t,e){for(var r=0,n=e.length;r<n;++r)A(t,e[r]);return t}function T(t,e,r){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],r),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],r)}function P(t,e){var r;
8return(r=e(O(t)))||(r=e(R(t)))||(r=e(V(t)))?r:(r=e(z(t)))||!1}function I(t){var e=0;return W(t)||(e=X(t)*j(t)),e}function O(t){return[t[0],t[1]]}function R(t){return[t[2],t[1]]}function L(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function k(t,e){var r;return"bottom-left"===e?r=O(t):"bottom-right"===e?r=R(t):"top-left"===e?r=z(t):"top-right"===e?r=V(t):(0,i.v)(!1,13),r}function M(t,e){var r=Math.min(t[0],e[0]),n=Math.min(t[1],e[1]);return(Math.max(t[2],e[2])-r)*(Math.max(t[3],e[3])-n)}function F(t,e,r,n,i){var o=D(t,e,r,n),a=o[0],s=o[1],l=o[2],u=o[3],h=o[4],c=o[5],f=o[6],p=o[7];return d(Math.min(a,l,h,f),Math.min(s,u,c,p),Math.max(a,l,h,f),Math.max(s,u,c,p),i)}function D(t,e,r,n){var i=e*n[0]/2,o=e*n[1]/2,a=Math.cos(r),s=Math.sin(r),l=i*a,u=i*s,h=o*a,c=o*s,f=t[0],p=t[1];return[f-l+c,p-u-h,f-l-c,p-u+h,f+l-c,p+u+h,f+l+c,p+u-h,f-l+c,p-u-h]}function j(t){return t[3]-t[1]}function U(t,e){return I(G(t,e))}function G(t,e,r){var n=r||[1/0,1/0,-1/0,-1/0];return K(t,e)?(t[0]>e[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]<e[2]?n[2]=t[2]:n[2]=e[2],t[3]<e[3]?n[3]=t[3]:n[3]=e[3]):g(n),n}function N(t){return X(t)+j(t)}function B(t){return[t[2]-t[0],t[3]-t[1]]}function z(t){return[t[0],t[3]]}function V(t){return[t[2],t[3]]}function X(t){return t[2]-t[0]}function K(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function W(t){return t[2]<t[0]||t[3]<t[1]}function H(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function Y(t,e){var r=(t[2]-t[0])/2*(e-1),n=(t[3]-t[1])/2*(e-1);t[0]-=r,t[2]+=r,t[1]-=n,t[3]+=n}function Z(t,e,r){var i=!1,o=f(t,e),a=f(t,r);if(o===n.A.INTERSECTING||a===n.A.INTERSECTING)i=!0;else{var s=t[0],l=t[1],u=t[2],h=t[3],c=e[0],p=e[1],d=r[0],g=r[1],_=(g-p)/(d-c),y=void 0,m=void 0;a&n.A.ABOVE&&!(o&n.A.ABOVE)&&(i=(y=d-(g-h)/_)>=s&&y<=u),i||!(a&n.A.RIGHT)||o&n.A.RIGHT||(i=(m=g-(d-u)*_)>=l&&m<=h),i||!(a&n.A.BELOW)||o&n.A.BELOW||(i=(y=d-(g-l)/_)>=s&&y<=u),i||!(a&n.A.LEFT)||o&n.A.LEFT||(i=(m=g-(d-s)*_)>=l&&m<=h)}return i}function q(t,e,r,n){var i=[];if(n>1)for(var o=t[2]-t[0],a=t[3]-t[1],s=0;s<n;++s)i.push(t[0]+o*s/n,t[1],t[2],t[1]+a*s/n,t[2]-o*s/n,t[3],t[0],t[3]-a*s/n);else i=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(i,i,2);for(var l=[],u=[],h=(s=0,i.length);s<h;s+=2)l.push(i[s]),u.push(i[s+1]);return function(t,e,r){return d(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),r)}(l,u,r)}function $(t,e){var r=e.getExtent(),n=L(t);if(e.canWrapX()&&(n[0]<r[0]||n[0]>=r[2])){var i=X(r),o=Math.floor((n[0]-r[0])/i)*i;t[0]-=o,t[2]-=o}return t}function J(t,e){if(e.canWrapX()){var r=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[r[0],t[1],r[2],t[3]]];$(t,e);var n=X(r);if(X(t)>n)return[[r[0],t[1],r[2],t[3]]];if(t[0]<r[0])return[[t[0]+n,t[1],r[2],t[3]],[r[0],t[1],t[2],t[3]]];if(t[2]>r[2])return[[t[0],t[1],r[2],t[3]],[r[0],t[1],t[2]-n,t[3]]]}return[t]}},1580:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},1142:(t,e,r)=>{"use strict";r.d(e,{m8:()=>o,nF:()=>a});var n=r(4238),i=!1;function o(t,e,r,n,o,a,s){var l=new XMLHttpRequest;l.open("GET","function"==typeof t?t(r,n,o):t,!0),"arraybuffer"==e.getType()&&(l.responseType="arraybuffer"),l.withCredentials=i,l.onload=function(t){if(!l.status||l.status>=200&&l.status<300){var n=e.getType(),i=void 0;"json"==n||"text"==n?i=l.responseText:"xml"==n?(i=l.responseXML)||(i=(new DOMParser).parseFromString(l.responseText,"application/xml")):"arraybuffer"==n&&(i=l.response),i?a(e.readFeatures(i,{extent:r,featureProjection:o}),e.readProjection(i)):s()}else s()},l.onerror=s,l.send()}function a(t,e){return function(r,i,a,s,l){var u=this;o(t,e,r,i,a,(function(t,e){u.addFeatures(t),void 0!==s&&s(t)}),l||n.tV)}}},8217:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>s,hX:()=>l});var n=r(5719),i=r(4087),o=r(3530),a=r(7083);const s=function(){function t(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}return t.prototype.getReadOptions=function(t,e){var r;if(e){var i=e.dataProjection?(0,a.get)(e.dataProjection):this.readProjection(t);e.extent&&i&&i.getUnits()===n.Ay.TILE_PIXELS&&(i=(0,a.get)(i)).setWorldExtent(e.extent),r={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(r)},t.prototype.adaptOptions=function(t){return(0,o.kp)({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},t.prototype.getType=function(){return(0,i.b0)()},t.prototype.readFeature=function(t,e){return(0,i.b0)()},t.prototype.readFeatures=function(t,e){return(0,i.b0)()},t.prototype.readGeometry=function(t,e){return(0,i.b0)()},t.prototype.readProjection=function(t){return(0,i.b0)()},t.prototype.writeFeature=function(t,e){return(0,i.b0)()},t.prototype.writeFeatures=function(t,e){return(0,i.b0)()},t.prototype.writeGeometry=function(t,e){return(0,i.b0)()},t}();function l(t,e,r){var n,i=r?(0,a.get)(r.featureProjection):null,o=r?(0,a.get)(r.dataProjection):null;if(n=i&&o&&!(0,a.equivalent)(i,o)?(e?t.clone():t).transform(e?i:o,e?o:i):t,e&&r&&void 0!==r.decimals){var s=Math.pow(10,r.decimals);n===t&&(n=t.clone()),n.applyTransform((function(t){for(var e=0,r=t.length;e<r;++e)t[e]=Math.round(t[e]*s)/s;return t}))}return n}},1365:(t,e,r)=>{"use strict";r.d(e,{A:()=>E});var n,i=r(6717),o=r(4338),a=r(8217),s=r(4087),l=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function u(t){if("string"==typeof t){var e=JSON.parse(t);return e||null}return null!==t?t:null}const h=function(t){function e(){return t.call(this)||this}return l(e,t),e.prototype.getType=function(){return"json"},e.prototype.readFeature=function(t,e){return this.readFeatureFromObject(u(t),this.getReadOptions(t,e))},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromObject(u(t),this.getReadOptions(t,e))},e.prototype.readFeatureFromObject=function(t,e){return(0,s.b0)()},e.prototype.readFeaturesFromObject=function(t,e){return(0,s.b0)()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromObject(u(t),this.getReadOptions(t,e))},e.prototype.readGeometryFromObject=function(t,e){return(0,s.b0)()},e.prototype.readProjection=function(t){return this.readProjectionFromObject(u(t))},e.prototype.readProjectionFromObject=function(t){return(0,s.b0)()},e.prototype.writeFeature=function(t,e){return JSON.stringify(this.writeFeatureObject(t,e))},e.prototype.writeFeatureObject=function(t,e){return(0,s.b0)()},e.prototype.writeFeatures=function(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))},e.prototype.writeFeaturesObject=function(t,e){return(0,s.b0)()},e.prototype.writeGeometry=function(t,e){return JSON.stringify(this.writeGeometryObject(t,e))},e.prototype.writeGeometryObject=function(t,e){return(0,s.b0)()},e}(a.Ay);var c=r(1217),f=r(6702),p=r(503),d=r(3123),g=r(4294),_=r(1064),y=r(588),m=r(3530),v=r(7083),w=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function x(t,e){if(!t)return null;var r;switch(t.type){case"Point":r=function(t){return new g.A(t.coordinates)}(t);break;case"LineString":r=function(t){return new c.A(t.coordinates)}(t);break;case"Polygon":r=function(t){return new _.Ay(t.coordinates)}(t);break;case"MultiPoint":r=function(t){return new p.A(t.coordinates)}(t);break;case"MultiLineString":r=function(t){return new f.A(t.coordinates)}(t);break;case"MultiPolygon":r=function(t){return new d.A(t.coordinates)}(t);break;case"GeometryCollection":r=function(t,e){var r=t.geometries.map((function(t){return x(t,e)}));return new o.A(r)}(t);break;default:throw new Error("Unsupported GeoJSON type: "+t.type)}return(0,a.hX)(r,!1,e)}function b(t,e){var r,n=(t=(0,a.hX)(t,!0,e)).getType();switch(n){case"Point":r=function(t,e){return{type:"Point",coordinates:t.getCoordinates()}}(t);break;case"LineString":r=function(t,e){return{type:"LineString",coordinates:t.getCoordinates()}}(t);break;case"Polygon":r=function(t,e){var r;e&&(r=e.rightHanded);return{type:"Polygon",coordinates:t.getCoordinates(r)}}(t,e);break;case"MultiPoint":r=function(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}}(t);break;case"MultiLineString":r=function(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}}(t);break;case"MultiPolygon":r=function(t,e){var r;e&&(r=e.rightHanded);return{type:"MultiPolygon",coordinates:t.getCoordinates(r)}}(t,e);break;case"GeometryCollection":r=function(t,e){var r=t.getGeometriesArray().map((function(t){var r=(0,m.kp)({},e);return delete r.featureProjection,b(t,r)}));return{type:"GeometryCollection",geometries:r}}(t,e);break;case"Circle":r={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+n)}return r}const E=function(t){function e(e){var r=this,n=e||{};return(r=t.call(this)||this).dataProjection=(0,v.get)(n.dataProjection?n.dataProjection:"EPSG:4326"),n.featureProjection&&(r.defaultFeatureProjection=(0,v.get)(n.featureProjection)),r.geometryName_=n.geometryName,r.extractGeometryName_=n.extractGeometryName,r.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],r}return w(e,t),e.prototype.readFeatureFromObject=function(t,e){var r=null,n=x((r="Feature"===t.type?t:{type:"Feature",geometry:t,properties:null}).geometry,e),o=new i.A;return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in r!==void 0&&o.setGeometryName(r.geometry_name),o.setGeometry(n),"id"in r&&o.setId(r.id),r.properties&&o.setProperties(r.properties,!0),o},e.prototype.readFeaturesFromObject=function(t,e){var r=null;if("FeatureCollection"===t.type){r=[];for(var n=t.features,i=0,o=n.length;i<o;++i)r.push(this.readFeatureFromObject(n[i],e))}else r=[this.readFeatureFromObject(t,e)];return r},e.prototype.readGeometryFromObject=function(t,e){return x(t,e)},e.prototype.readProjectionFromObject=function(t){var e,r=t.crs;return r?"name"==r.type?e=(0,v.get)(r.properties.name):"EPSG"===r.type?e=(0,v.get)("EPSG:"+r.properties.code):(0,y.v)(!1,36):e=this.dataProjection,e},e.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var r={type:"Feature",geometry:null,properties:null},n=t.getId();if(void 0!==n&&(r.id=n),!t.hasProperties())return r;var i=t.getProperties(),o=t.getGeometry();return o&&(r.geometry=b(o,e),delete i[t.getGeometryName()]),(0,m.Im)(i)||(r.properties=i),r},e.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);for(var r=[],n=0,i=t.length;n<i;++n)r.push(this.writeFeatureObject(t[n],e));return{type:"FeatureCollection",features:r}},e.prototype.writeGeometryObject=function(t,e){return b(t,this.adaptOptions(e))},e}(h)},5387:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>or});
8var n=r(6717),i=r(3628),o=r(4338),a=r(9052),s=r(9700),l=r(5354),u=r(746),h=r(6141),c=r(1217),f=r(6702),p=r(503),d=r(3123),g=r(4294),_=r(1064),y=r(953),m=r(9276),v=r(1426),w=r(8217),x=r(4087),b=r(6514),E="http://www.w3.org/2001/XMLSchema-instance";function A(t,e){return X().createElementNS(t,e)}function S(t,e){return C(t,e,[]).join("")}function C(t,e,r){if(t.nodeType==Node.CDATA_SECTION_NODE||t.nodeType==Node.TEXT_NODE)e?r.push(String(t.nodeValue).replace(/(\r\n|\r|\n)/g,"")):r.push(t.nodeValue);else{var n=void 0;for(n=t.firstChild;n;n=n.nextSibling)C(n,e,r)}return r}function T(t){return"documentElement"in t}function P(t){return(new DOMParser).parseFromString(t,"application/xml")}function I(t,e){return function(r,n){var i=t.call(void 0!==e?e:this,r,n);if(void 0!==i){var o=n[n.length-1];(0,b.X$)(o,i)}}}function O(t,e){return function(r,n){var i=t.call(void 0!==e?e:this,r,n);void 0!==i&&n[n.length-1].push(i)}}function R(t,e){return function(r,n){var i=t.call(void 0!==e?e:this,r,n);void 0!==i&&(n[n.length-1]=i)}}function L(t,e,r){return function(n,i){var o=t.call(void 0!==r?r:this,n,i);void 0!==o&&(i[i.length-1][void 0!==e?e:n.localName]=o)}}function k(t,e){return function(r,n,i){t.call(void 0!==e?e:this,r,n,i),i[i.length-1].node.appendChild(r)}}function M(t,e){var r=t;return function(t,n,i){var o=n[n.length-1].node,a=r;return void 0===a&&(a=i),A(void 0!==e?e:o.namespaceURI,a)}}var F=M();function D(t,e){for(var r=e.length,n=new Array(r),i=0;i<r;++i)n[i]=t[e[i]];return n}function j(t,e,r){var n,i,o=void 0!==r?r:{};for(n=0,i=t.length;n<i;++n)o[t[n]]=e;return o}function U(t,e,r,n){var i;for(i=e.firstElementChild;i;i=i.nextElementSibling){var o=t[i.namespaceURI];if(void 0!==o){var a=o[i.localName];void 0!==a&&a.call(n,i,r)}}}function G(t,e,r,n,i){return n.push(t),U(e,r,n,i),n.pop()}function N(t,e,r,n,i,o){for(var a,s,l=(void 0!==i?i:r).length,u=0;u<l;++u)void 0!==(a=r[u])&&void 0!==(s=e.call(void 0!==o?o:this,a,n,void 0!==i?i[u]:void 0))&&t[s.namespaceURI][s.localName].call(o,s,a,n)}function B(t,e,r,n,i,o,a){return i.push(t),N(e,r,n,i,o,a),i.pop()}var z=void 0;var V=void 0;function X(){return void 0===V&&"undefined"!=typeof document&&(V=document.implementation.createDocument("","",null)),V}var K,W=(K=function(t,e){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},K(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}K(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const H=function(t){function e(){var e=t.call(this)||this;return e.xmlSerializer_=(void 0===z&&"undefined"!=typeof XMLSerializer&&(z=new XMLSerializer),z),e}return W(e,t),e.prototype.getType=function(){return"xml"},e.prototype.readFeature=function(t,e){if(t){if("string"==typeof t){var r=P(t);return this.readFeatureFromDocument(r,e)}return T(t)?this.readFeatureFromDocument(t,e):this.readFeatureFromNode(t,e)}return null},e.prototype.readFeatureFromDocument=function(t,e){var r=this.readFeaturesFromDocument(t,e);return r.length>0?r[0]:null},e.prototype.readFeatureFromNode=function(t,e){return null},e.prototype.readFeatures=function(t,e){if(t){if("string"==typeof t){var r=P(t);return this.readFeaturesFromDocument(r,e)}return T(t)?this.readFeaturesFromDocument(t,e):this.readFeaturesFromNode(t,e)}return[]},e.prototype.readFeaturesFromDocument=function(t,e){for(var r=[],n=t.firstChild;n;n=n.nextSibling)n.nodeType==Node.ELEMENT_NODE&&(0,b.X$)(r,this.readFeaturesFromNode(n,e));return r},e.prototype.readFeaturesFromNode=function(t,e){return(0,x.b0)()},e.prototype.readGeometry=function(t,e){if(t){if("string"==typeof t){var r=P(t);return this.readGeometryFromDocument(r,e)}return T(t)?this.readGeometryFromDocument(t,e):this.readGeometryFromNode(t,e)}return null},e.prototype.readGeometryFromDocument=function(t,e){return null},e.prototype.readGeometryFromNode=function(t,e){return null},e.prototype.readProjection=function(t){if(t){if("string"==typeof t){var e=P(t);return this.readProjectionFromDocument(e)}return T(t)?this.readProjectionFromDocument(t):this.readProjectionFromNode(t)}return null},e.prototype.readProjectionFromDocument=function(t){return this.dataProjection},e.prototype.readProjectionFromNode=function(t){return this.dataProjection},e.prototype.writeFeature=function(t,e){var r=this.writeFeatureNode(t,e);return this.xmlSerializer_.serializeToString(r)},e.prototype.writeFeatureNode=function(t,e){return null},e.prototype.writeFeatures=function(t,e){var r=this.writeFeaturesNode(t,e);return this.xmlSerializer_.serializeToString(r)},e.prototype.writeFeaturesNode=function(t,e){return null},e.prototype.writeGeometry=function(t,e){var r=this.writeGeometryNode(t,e);return this.xmlSerializer_.serializeToString(r)},e.prototype.writeGeometryNode=function(t,e){return null},e}(w.Ay);var Y=r(9352),Z=r(588),q=r(7083);r(2806);function $(t){return function(t){var e=/^\s*(true|1)|(false|0)\s*$/.exec(t);return e?void 0!==e[1]||!1:void 0}(S(t,!1))}function J(t){return function(t){var e=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(t);return e?parseFloat(e[1]):void 0}(S(t,!1))}function Q(t){return S(t,!1).trim()}function tt(t,e){rt(t,e?"1":"0")}function et(t,e){var r=e.toPrecision();t.appendChild(X().createTextNode(r))}function rt(t,e){t.appendChild(X().createTextNode(e))}
8var nt,it,ot,at,st,lt,ut=r(1597),ht=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ct=["http://www.google.com/kml/ext/2.2"],ft=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],pt={fraction:l.A.FRACTION,pixels:l.A.PIXELS,insetPixels:l.A.PIXELS},dt=j(ft,{ExtendedData:ce,Region:fe,MultiGeometry:L(re,"geometry"),LineString:L(Qt,"geometry"),LinearRing:L(te,"geometry"),Point:L(ne,"geometry"),Polygon:L(oe,"geometry"),Style:L(se),StyleMap:function(t,e){var r=Gt.call(this,t,e);if(!r)return;var n=e[e.length-1];Array.isArray(r)?n.Style=r:"string"==typeof r?n.styleUrl=r:(0,Z.v)(!1,38)},address:L(Q),description:L(Q),name:L(Q),open:L($),phoneNumber:L(Q),styleUrl:L(Dt),visibility:L($)},j(ct,{MultiTrack:L((function(t,e){var r=G([],Wt,t,e);if(!r)return;return new f.A(r)}),"geometry"),Track:L(Yt,"geometry")})),gt=j(ft,{ExtendedData:ce,Region:fe,Link:function(t,e){U(_t,t,e)},address:L(Q),description:L(Q),name:L(Q),open:L($),phoneNumber:L(Q),visibility:L($)}),_t=j(ft,{href:L(Ft)}),yt=j(ft,{LatLonAltBox:function(t,e){var r=G({},ge,t,e);if(!r)return;var n=e[e.length-1],i=[parseFloat(r.west),parseFloat(r.south),parseFloat(r.east),parseFloat(r.north)];n.extent=i,n.altitudeMode=r.altitudeMode,n.minAltitude=parseFloat(r.minAltitude),n.maxAltitude=parseFloat(r.maxAltitude)},Lod:function(t,e){var r=G({},_e,t,e);if(!r)return;var n=e[e.length-1];n.minLodPixels=parseFloat(r.minLodPixels),n.maxLodPixels=parseFloat(r.maxLodPixels),n.minFadeExtent=parseFloat(r.minFadeExtent),n.maxFadeExtent=parseFloat(r.maxFadeExtent)}}),mt=j(ft,["Document","Placemark"]),vt=j(ft,{Document:k((function(t,e,r){B({node:t},xe,be,e,r,void 0,this)})),Placemark:k(We)}),wt=null;var xt,bt=null;var Et,At=null;var St=null;var Ct=null;var Tt,Pt=null;function It(t){return 32/Math.min(t[0],t[1])}function Ot(t){return t}var Rt=function(t){function e(e){var r=t.call(this)||this,n=e||{};return Pt||(nt=[255,255,255,1],wt=new i.A({color:nt}),it=[20,2],ot=l.A.PIXELS,at=l.A.PIXELS,st=[64,64],lt="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png",bt=new s.A({anchor:it,anchorOrigin:u.A.BOTTOM_LEFT,anchorXUnits:ot,anchorYUnits:at,crossOrigin:"anonymous",rotation:0,scale:It(st),size:st,src:lt}),xt="NO_IMAGE",At=new y.A({color:nt,width:1}),Et=new y.A({color:[51,51,51,1],width:2}),St=new v.A({font:"bold 16px Helvetica",fill:wt,stroke:Et,scale:.8}),Ct=new m.Ay({fill:wt,image:bt,text:St,stroke:At,zIndex:0}),Pt=[Ct]),r.dataProjection=(0,q.get)("EPSG:4326"),r.defaultStyle_=n.defaultStyle?n.defaultStyle:Pt,r.extractStyles_=void 0===n.extractStyles||n.extractStyles,r.writeStyles_=void 0===n.writeStyles||n.writeStyles,r.sharedStyles_={},r.showPointNames_=void 0===n.showPointNames||n.showPointNames,r.crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:"anonymous",r.iconUrlFunction_=n.iconUrlFunction?n.iconUrlFunction:Ot,r.supportedMediaTypes=["application/vnd.google-earth.kml+xml"],r}return ht(e,t),e.prototype.readDocumentOrFolder_=function(t,e){var r=G([],j(ft,{Document:I(this.readDocumentOrFolder_,this),Folder:I(this.readDocumentOrFolder_,this),Placemark:O(this.readPlacemark_,this),Style:this.readSharedStyle_.bind(this),StyleMap:this.readSharedStyleMap_.bind(this)}),t,e,this);return r||void 0},e.prototype.readPlacemark_=function(t,e){var r=G({geometry:null},dt,t,e,this);if(r){var i=new n.A,a=t.getAttribute("id");null!==a&&i.setId(a);var s=e[0],l=r.geometry;if(l&&(0,w.hX)(l,!1,s),i.setGeometry(l),delete r.geometry,this.extractStyles_){var u=function(t,e,r,n,i){return function(a,s){var l=i,u="",h=[];if(l){var c=a.getGeometry();if(c)if(c instanceof o.A)h=c.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Point"===e||"MultiPoint"===e})),l=h.length>0;else{var f=c.getType();l="Point"===f||"MultiPoint"===f}}l&&(u=a.get("name"),(l=l&&!!u)&&u.search(/&[^&]+;/)>-1&&(Tt||(Tt=document.createElement("textarea")),Tt.innerHTML=u,u=Tt.value));var p=r;if(t?p=t:e&&(p=Lt(e,r,n)),l){var d=function(t,e){var r=[0,0],n="start",i=t.getImage();if(i){var o=i.getSize();if(o&&2==o.length){var a=i.getScaleArray(),s=i.getAnchor();r[0]=a[0]*(o[0]-s[0]),r[1]=a[1]*(o[1]/2-s[1]),n="left"}}var l=t.getText();l?((l=l.clone()).setFont(l.getFont()||St.getFont()),l.setScale(l.getScale()||St.getScale()),l.setFill(l.getFill
vendor: 5,030 bytes, line 8
8()||St.getFill()),l.setStroke(l.getStroke()||Et)):l=St.clone();l.setText(e),l.setOffsetX(r[0]),l.setOffsetY(r[1]),l.setTextAlign(n);var u=new m.Ay({image:i,text:l});return u}(p[0],u);return h.length>0?(d.setGeometry(new o.A(h)),[d,new m.Ay({geometry:p[0].getGeometry(),image:null,fill:p[0].getFill(),stroke:p[0].getStroke(),text:null})].concat(p.slice(1))):d}return p}}(r.Style,r.styleUrl,this.defaultStyle_,this.sharedStyles_,this.showPointNames_);i.setStyle(u)}return delete r.Style,i.setProperties(r,!0),i}},e.prototype.readSharedStyle_=function(t,e){var r=t.getAttribute("id");if(null!==r){var n=se.call(this,t,e);if(n){var i=void 0,o=t.baseURI;if(o&&"about:blank"!=o||(o=window.location.href),o)i=new URL("#"+r,o).href;else i="#"+r;this.sharedStyles_[i]=n}}},e.prototype.readSharedStyleMap_=function(t,e){var r=t.getAttribute("id");if(null!==r){var n=Gt.call(this,t,e);if(n){var i,o=t.baseURI;if(o&&"about:blank"!=o||(o=window.location.href),o)i=new URL("#"+r,o).href;else i="#"+r;this.sharedStyles_[i]=n}}},e.prototype.readFeatureFromNode=function(t,e){if(!(0,b.mK)(ft,t.namespaceURI))return null;var r=this.readPlacemark_(t,[this.getReadOptions(t,e)]);return r||null},e.prototype.readFeaturesFromNode=function(t,e){if(!(0,b.mK)(ft,t.namespaceURI))return[];var r,n=t.localName;if("Document"==n||"Folder"==n)return(r=this.readDocumentOrFolder_(t,[this.getReadOptions(t,e)]))||[];if("Placemark"==n){var i=this.readPlacemark_(t,[this.getReadOptions(t,e)]);return i?[i]:[]}if("kml"==n){r=[];for(var o=t.firstElementChild;o;o=o.nextElementSibling){var a=this.readFeaturesFromNode(o,e);a&&(0,b.X$)(r,a)}return r}return[]},e.prototype.readName=function(t){if(t){if("string"==typeof t){var e=P(t);return this.readNameFromDocument(e)}return T(t)?this.readNameFromDocument(t):this.readNameFromNode(t)}},e.prototype.readNameFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE){var r=this.readNameFromNode(e);if(r)return r}},e.prototype.readNameFromNode=function(t){for(var e=t.firstElementChild;e;e=e.nextElementSibling)if((0,b.mK)(ft,e.namespaceURI)&&"name"==e.localName)return Q(e);for(e=t.firstElementChild;e;e=e.nextElementSibling){var r=e.localName;if((0,b.mK)(ft,e.namespaceURI)&&("Document"==r||"Folder"==r||"Placemark"==r||"kml"==r)){var n=this.readNameFromNode(e);if(n)return n}}},e.prototype.readNetworkLinks=function(t){var e=[];if("string"==typeof t){var r=P(t);(0,b.X$)(e,this.readNetworkLinksFromDocument(r))}else T(t)?(0,b.X$)(e,this.readNetworkLinksFromDocument(t)):(0,b.X$)(e,this.readNetworkLinksFromNode(t));return e},e.prototype.readNetworkLinksFromDocument=function(t){for(var e=[],r=t.firstChild;r;r=r.nextSibling)r.nodeType==Node.ELEMENT_NODE&&(0,b.X$)(e,this.readNetworkLinksFromNode(r));return e},e.prototype.readNetworkLinksFromNode=function(t){for(var e=[],r=t.firstElementChild;r;r=r.nextElementSibling)if((0,b.mK)(ft,r.namespaceURI)&&"NetworkLink"==r.localName){var n=G({},gt,r,[]);e.push(n)}for(r=t.firstElementChild;r;r=r.nextElementSibling){var i=r.localName;!(0,b.mK)(ft,r.namespaceURI)||"Document"!=i&&"Folder"!=i&&"kml"!=i||(0,b.X$)(e,this.readNetworkLinksFromNode(r))}return e},e.prototype.readRegion=function(t){var e=[];if("string"==typeof t){var r=P(t);(0,b.X$)(e,this.readRegionFromDocument(r))}else T(t)?(0,b.X$)(e,this.readRegionFromDocument(t)):(0,b.X$)(e,this.readRegionFromNode(t));return e},e.prototype.readRegionFromDocument=function(t){for(var e=[],r=t.firstChild;r;r=r.nextSibling)r.nodeType==Node.ELEMENT_NODE&&(0,b.X$)(e,this.readRegionFromNode(r));return e},e.prototype.readRegionFromNode=function(t){for(var e=[],r=t.firstElementChild;r;r=r.nextElementSibling)if((0,b.mK)(ft,r.namespaceURI)&&"Region"==r.localName){var n=G({},yt,r,[]);e.push(n)}for(r=t.firstElementChild;r;r=r.nextElementSibling){var i=r.localName;!(0,b.mK)(ft,r.namespaceURI)||"Document"!=i&&"Folder"!=i&&"kml"!=i||(0,b.X$)(e,this.readRegionFromNode(r))}return e},e.prototype.writeFeaturesNode=function(t,e){e=this.adaptOptions(e);var r=A(ft[4],"kml"),n="http://www.w3.org/2000/xmlns/";r.setAttributeNS(n,"xmlns:gx",ct[0]),r.setAttributeNS(n,"xmlns:xsi",E),r.setAttributeNS(E,"xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");var i={node:r},o={};t.length>1?o.Document=t:1==t.length&&(o.Placemark=t[0]);var a=mt[r.namespaceURI],s=D(o,a);return B(i,vt,F,s,[e],a,this),r},e}(H);function Lt(t,e,r){return Array.isArray(t)?t:"string"==typeof t?Lt(r[t],e,r):e}function kt(t){var e=S(t,!1),r=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(e);if(r){var n=r[1];return[parseInt(n.substr(6,2),16),parseInt(n.substr(4,2),16),parseInt(n.substr(2,2),16),parseInt(n.substr(0,2),16)/255]}}function Mt(t){var e=S(t,!1),r=[];e=e.replace(/\s*,\s*/g,",");for(var n,i=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?),([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|,|$)(?:([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|$))?\s*/i;n=i.exec(e);){var o=parseFloat(n[1]),a=parseFloat(n[2]),s=n[3]?parseFloat(n[3]):0;r.push(o,a,s),e=e.substr(n[0].length)}if(""===e)return r}
8function Ft(t){var e=S(t,!1).trim(),r=t.baseURI;return r&&"about:blank"!=r||(r=window.location.href),r?new URL(e,r).href:e}function Dt(t){var e=S(t,!1).trim().replace(/^(?!.*#)/,"#"),r=t.baseURI;return r&&"about:blank"!=r||(r=window.location.href),r?new URL(e,r).href:e}function jt(t){return J(t)}var Ut=j(ft,{Pair:function(t,e){var r=G({},pe,t,e,this);if(!r)return;var n=r.key;if(n&&"normal"==n){var i=r.styleUrl;i&&(e[e.length-1]=i);var o=r.Style;o&&(e[e.length-1]=o)}}});function Gt(t,e){return G(void 0,Ut,t,e,this)}var Nt=j(ft,{Icon:L((function(t,e){var r=G({},Zt,t,e);return r||null})),color:L(kt),heading:L(J),hotSpot:L((function(t){var e,r=t.getAttribute("xunits"),n=t.getAttribute("yunits");return e="insetPixels"!==r?"insetPixels"!==n?u.A.BOTTOM_LEFT:u.A.TOP_LEFT:"insetPixels"!==n?u.A.BOTTOM_RIGHT:u.A.TOP_RIGHT,{x:parseFloat(t.getAttribute("x")),xunits:pt[r],y:parseFloat(t.getAttribute("y")),yunits:pt[n],origin:e}})),scale:L(jt)});var Bt=j(ft,{color:L(kt),scale:L(jt)});var zt=j(ft,{color:L(kt),width:L(J)});var Vt=j(ft,{color:L(kt),fill:L($),outline:L($)});var Xt=j(ft,{coordinates:R(Mt)});function Kt(t,e){return G(null,Xt,t,e)}var Wt=j(ct,{Track:O(Yt)});var Ht=j(ft,{when:function(t,e){var r=e[e.length-1].whens,n=S(t,!1),i=Date.parse(n);r.push(isNaN(i)?0:i)}},j(ct,{coord:function(t,e){var r=e[e.length-1].coordinates,n=S(t,!1),i=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(n);if(i){var o=parseFloat(i[1]),a=parseFloat(i[2]),s=parseFloat(i[3]);r.push([o,a,s])}else r.push([])}}));function Yt(t,e){var r=G({coordinates:[],whens:[]},Ht,t,e);if(r){for(var n=[],i=r.coordinates,o=r.whens,s=0,l=Math.min(i.length,o.length);s<l;++s)3==i[s].length&&n.push(i[s][0],i[s][1],i[s][2],o[s]);return new c.A(n,a.A.XYZM)}}var Zt=j(ft,{href:L(Ft)},j(ct,{x:L(J),y:L(J),w:L(J),h:L(J)}));var qt=j(ft,{coordinates:R(Mt)});function $t(t,e){return G(null,qt,t,e)}var Jt=j(ft,{extrude:L($),tessellate:L($),altitudeMode:L(Q)});function Qt(t,e){var r=G({},Jt,t,e),n=$t(t,e);if(n){var i=new c.A(n,a.A.XYZ);return i.setProperties(r,!0),i}}function te(t,e){var r=G({},Jt,t,e),n=$t(t,e);if(n){var i=new _.Ay(n,a.A.XYZ,[n.length]);return i.setProperties(r,!0),i}}var ee=j(ft,{LineString:O(Qt),LinearRing:O(te),MultiGeometry:O(re),Point:O(ne),Polygon:O(oe)});function re(t,e){var r,n=G([],ee,t,e);if(!n)return null;if(0===n.length)return new o.A(n);for(var i,a=!0,s=n[0].getType(),l=1,u=n.length;l<u;++l)if((i=n[l]).getType()!=s){a=!1;break}if(a){var h=void 0,c=void 0;if("Point"==s){var g=n[0];h=g.getLayout(),c=g.getFlatCoordinates();for(l=1,u=n.length;l<u;++l)i=n[l],(0,b.X$)(c,i.getFlatCoordinates());le(r=new p.A(c,h),n)}else"LineString"==s?le(r=new f.A(n),n):"Polygon"==s?le(r=new d.A(n),n):"GeometryCollection"==s?r=new o.A(n):(0,Z.v)(!1,37)}else r=new o.A(n);return r}function ne(t,e){var r=G({},Jt,t,e),n=$t(t,e);if(n){var i=new g.A(n,a.A.XYZ);return i.setProperties(r,!0),i}}var ie=j(ft,{innerBoundaryIs:function(t,e){var r=G([],ye,t,e);if(r.length>0){var n=e[e.length-1];n.push.apply(n,r)}},outerBoundaryIs:function(t,e){var r=G(void 0,me,t,e);if(r){e[e.length-1][0]=r}}});function oe(t,e){var r=G({},Jt,t,e),n=G([null],ie,t,e);if(n&&n[0]){for(var i=n[0],o=[i.length],s=1,l=n.length;s<l;++s)(0,b.X$)(i,n[s]),o.push(i.length);var u=new _.Ay(i,a.A.XYZ,o);return u.setProperties(r,!0),u}}var ae=j(ft,{IconStyle:function(t,e){var r=G({},Nt,t,e);if(r){var n,i,o,a,l=e[e.length-1],c="Icon"in r?r.Icon:{},f=!("Icon"in r)||Object.keys(c).length>0,p=c.href;p?n=p:f&&(n=lt);var d,g=u.A.BOTTOM_LEFT,_=r.hotSpot;_?(i=[_.x,_.y],o=_.xunits,a=_.yunits,g=_.origin):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(n)&&(/pushpin/.test(n)?(i=it,o=ot,a=at):/arrow-reverse/.test(n)?(i=[54,42],o=ot,a=at):/paddle/.test(n)&&(i=[32,1],o=ot,a=at));var y,m=c.x,v=c.y;void 0!==m&&void 0!==v&&(d=[m,v]);var w,x=c.w,b=c.h;void 0!==x&&void 0!==b&&(y=[x,b]);var E=r.heading;void 0!==E&&(w=(0,ut.eh)(E));var A=r.scale,S=r.color;if(f){n==lt&&(y=st);var C=new s.A({anchor:i,anchorOrigin:g,anchorXUnits:o,anchorYUnits:a,crossOrigin:this.crossOrigin_,offset:d,offsetOrigin:u.A.BOTTOM_LEFT,rotation:w,scale:A,size:y,src:this.iconUrlFunction_(n),color:S}
8),T=C.getScaleArray()[0],P=C.getSize();if(null===P){var I=C.getImageState();if(I===h.A.IDLE||I===h.A.LOADING){var O=function(){var t=C.getImageState();if(t!==h.A.IDLE&&t!==h.A.LOADING){var e=C.getSize();if(e&&2==e.length){var r=It(e);C.setScale(T*r)}C.unlistenImageChange(O)}};C.listenImageChange(O),I===h.A.IDLE&&C.load()}}else if(2==P.length){var R=It(P);C.setScale(T*R)}l.imageStyle=C}else l.imageStyle=xt}},LabelStyle:function(t,e){var r=G({},Bt,t,e);if(r){var n=e[e.length-1],o=new v.A({fill:new i.A({color:"color"in r?r.color:nt}),scale:r.scale});n.textStyle=o}},LineStyle:function(t,e){var r=G({},zt,t,e);if(r){var n=e[e.length-1],i=new y.A({color:"color"in r?r.color:nt,width:"width"in r?r.width:1});n.strokeStyle=i}},PolyStyle:function(t,e){var r=G({},Vt,t,e);if(r){var n=e[e.length-1],o=new i.A({color:"color"in r?r.color:nt});n.fillStyle=o;var a=r.fill;void 0!==a&&(n.fill=a);var s=r.outline;void 0!==s&&(n.outline=s)}}});function se(t,e){var r=G({},ae,t,e,this);if(!r)return null;var n,i="fillStyle"in r?r.fillStyle:wt,a=r.fill;void 0===a||a||(i=null),"imageStyle"in r?r.imageStyle!=xt&&(n=r.imageStyle):n=bt;var s="textStyle"in r?r.textStyle:St,l="strokeStyle"in r?r.strokeStyle:At,u=r.outline;return void 0===u||u?[new m.Ay({fill:i,image:n,stroke:l,text:s,zIndex:void 0})]:[new m.Ay({geometry:function(t){var e=t.getGeometry(),r=e.getType();if("GeometryCollection"===r){var n=e;return new o.A(n.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Polygon"!==e&&"MultiPolygon"!==e})))}if("Polygon"!==r&&"MultiPolygon"!==r)return e},fill:i,image:n,stroke:l,text:s,zIndex:void 0}),new m.Ay({geometry:function(t){var e=t.getGeometry(),r=e.getType();if("GeometryCollection"===r){var n=e;return new o.A(n.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Polygon"===e||"MultiPolygon"===e})))}if("Polygon"===r||"MultiPolygon"===r)return e},fill:i,stroke:null,zIndex:void 0})]}function le(t,e){var r,n,i,o=e.length,a=new Array(e.length),s=new Array(e.length),l=new Array(e.length);r=!1,n=!1,i=!1;for(var u=0;u<o;++u){var h=e[u];a[u]=h.get("extrude"),s[u]=h.get("tessellate"),l[u]=h.get("altitudeMode"),r=r||void 0!==a[u],n=n||void 0!==s[u],i=i||l[u]}r&&t.set("extrude",a),n&&t.set("tessellate",s),i&&t.set("altitudeMode",l)}var ue=j(ft,{displayName:L(Q),value:L(Q)});var he=j(ft,{Data:function(t,e){var r=t.getAttribute("name");U(ue,t,e);var n=e[e.length-1];r&&n.displayName?n[r]={value:n.value,displayName:n.displayName,toString:function(){return n.value}}:null!==r?n[r]=n.value:null!==n.displayName&&(n[n.displayName]=n.value),delete n.value},SchemaData:function(t,e){U(de,t,e)}});function ce(t,e){U(he,t,e)}function fe(t,e){U(yt,t,e)}var pe=j(ft,{Style:L(se),key:L(Q),styleUrl:L(Dt)});var de=j(ft,{SimpleData:function(t,e){var r=t.getAttribute("name");if(null!==r){var n=Q(t);e[e.length-1][r]=n}}});var ge=j(ft,{altitudeMode:L(Q),minAltitude:L(J),maxAltitude:L(J),north:L(J),south:L(J),east:L(J),west:L(J)});var _e=j(ft,{minLodPixels:L(J),maxLodPixels:L(J),minFadeExtent:L(J),maxFadeExtent:L(J)});var ye=j(ft,{LinearRing:O(Kt)});var me=j(ft,{LinearRing:R(Kt)});function ve(t,e){for(var r=(0,Y.asArray)(e),n=[255*(4==r.length?r[3]:1),r[2],r[1],r[0]],i=0;i<4;++i){var o=Math.floor(n[i]).toString(16);n[i]=1==o.length?"0"+o:o}rt(t,n.join(""))}var we=j(ft,{Data:k((function(t,e,r){t.setAttribute("name",e.name);var n={node:t},i=e.value;"object"==typeof i?(null!==i&&i.displayName&&B(n,we,F,[i.displayName],r,["displayName"]),null!==i&&i.value&&B(n,we,F,[i.value],r,["value"])):B(n,we,F,[i],r,["value"])})),value:k((function(t,e){rt(t,e)})),displayName:k((function(t,e){!function(t,e){t.appendChild(X().createCDATASection(e))}(t,e)}))});var xe=j(ft,{Placemark:k(We)}),be=function(t,e,r){return A(e[e.length-1].node.namespaceURI,"Placemark")};var Ee=M("Data");var Ae=j(ft,["href"],j(ct,["x","y","w","h"])),Se=j(ft,{href:k(rt)},j(ct,{x:k(et),y:k(et),w:k(et),h:k(et)})),Ce=function(t,e,r){return A(ct[0],"gx:"+r)};var Te=j(ft,["scale","heading","Icon","color","hotSpot"]),Pe=j(ft,{Icon:k((function(t,e,r){var n={node:t},i=r[r.length-1].node,o=Ae[i.namespaceURI],a=D(e,o);B(n,Se,F,a,r,o),a=D(e,o=Ae[ct[0]]),B(n,Se,Ce,a,r,o)})),color:k(ve),heading:k(et),hotSpot:k((function(t,e){t.setAttribute("x",String(e.x)),t.setAttribute("y",String(e.y)),t.setAttribute("xunits",e.xunits),t.setAttribute("yunits",e.yunits)})),scale:k(rr)});var Ie=j(ft,["color","scale"]),Oe=j(ft,{color:k(ve),scale:k(rr)});var Re=j(ft,["color","width"]),Le=j(ft,{color:k(ve),width:k(et)});var ke={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},Me=function(t,e,r){if(t)return A(e[e.length-1].node.namespaceURI,ke[t.getType()])},Fe=M("Point"),De=M("LineString"),je=M("LinearRing"),Ue=M("Polygon"),Ge=j(ft,{LineString:k(Ze),Point:k(Ze),Polygon:k(tr),GeometryCollection:k(Ne)});function Ne(t,e,r){var n,i={node:t},o=e.getType(),a=[];"GeometryCollection"===o?(e.getGeometriesArrayRecursive().forEac
8h((function(t){var e=t.getType();"MultiPoint"===e?a=a.concat(t.getPoints()):"MultiLineString"===e?a=a.concat(t.getLineStrings()):"MultiPolygon"===e?a=a.concat(t.getPolygons()):"Point"===e||"LineString"===e||"Polygon"===e?a.push(t):(0,Z.v)(!1,39)})),n=Me):"MultiPoint"===o?(a=e.getPoints(),n=Fe):"MultiLineString"===o?(a=e.getLineStrings(),n=De):"MultiPolygon"===o?(a=e.getPolygons(),n=Ue):(0,Z.v)(!1,39),B(i,Ge,n,a,r)}var Be=j(ft,{LinearRing:k(Ze)});function ze(t,e,r){B({node:t},Be,je,[e],r)}var Ve=j(ft,{ExtendedData:k((function(t,e,r){for(var n={node:t},i=e.names,o=e.values,a=i.length,s=0;s<a;s++)B(n,we,Ee,[{name:i[s],value:o[s]}],r)})),MultiGeometry:k(Ne),LineString:k(Ze),LinearRing:k(Ze),Point:k(Ze),Polygon:k(tr),Style:k((function(t,e,r){var n={node:t},i={};if(e.pointStyles.length){var o=e.pointStyles[0].getText();o&&(i.LabelStyle=o);var a=e.pointStyles[0].getImage();a&&"function"==typeof a.getSrc&&(i.IconStyle=a)}if(e.lineStyles.length){(s=e.lineStyles[0].getStroke())&&(i.LineStyle=s)}if(e.polyStyles.length){var s;(s=e.polyStyles[0].getStroke())&&!i.LineStyle&&(i.LineStyle=s),i.PolyStyle=e.polyStyles[0]}var l=r[r.length-1].node,u=nr[l.namespaceURI],h=D(i,u);B(n,ir,F,h,r,u)})),address:k(rt),description:k(rt),name:k(rt),open:k(tt),phoneNumber:k(rt),styleUrl:k(rt),visibility:k(tt)}),Xe=j(ft,["name","open","visibility","address","phoneNumber","description","styleUrl","Style"]),Ke=M("ExtendedData");function We(t,e,r){var n={node:t};e.getId()&&t.setAttribute("id",e.getId());var i=e.getProperties(),o={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};o[e.getGeometryName()]=1;var a=Object.keys(i||{}).sort().filter((function(t){return!o[t]})),s=e.getStyleFunction();if(s){var l=s(e,0);if(l){var u=Array.isArray(l)?l:[l],h=u;if(e.getGeometry()&&(h=u.filter((function(t){var r=t.getGeometryFunction()(e);if(r){var n=r.getType();return"GeometryCollection"===n?r.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Point"===e||"MultiPoint"===e})).length:"Point"===n||"MultiPoint"===n}}))),this.writeStyles_){var c=u,f=u;e.getGeometry()&&(c=u.filter((function(t){var r=t.getGeometryFunction()(e);if(r){var n=r.getType();return"GeometryCollection"===n?r.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"LineString"===e||"MultiLineString"===e})).length:"LineString"===n||"MultiLineString"===n}})),f=u.filter((function(t){var r=t.getGeometryFunction()(e);if(r){var n=r.getType();return"GeometryCollection"===n?r.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Polygon"===e||"MultiPolygon"===e})).length:"Polygon"===n||"MultiPolygon"===n}}))),i.Style={pointStyles:h,lineStyles:c,polyStyles:f}}if(h.length&&void 0===i.name){var p=h[0].getText();p&&(i.name=p.getText())}}}var d=r[r.length-1].node,g=Xe[d.namespaceURI],_=D(i,g);if(B(n,Ve,F,_,r,g),a.length>0){var y=D(i,a);B(n,Ve,Ke,[{names:a,values:y}],r)}var m=r[0],v=e.getGeometry();v&&(v=(0,w.hX)(v,!0,m)),B(n,Ve,Me,[v],r)}var He=j(ft,["extrude","tessellate","altitudeMode","coordinates"]),Ye=j(ft,{extrude:k(tt),tessellate:k(tt),altitudeMode:k(rt),coordinates:k((function(t,e,r){var n,i=r[r.length-1],o=i.layout,s=i.stride;o==a.A.XY||o==a.A.XYM?n=2:o==a.A.XYZ||o==a.A.XYZM?n=3:(0,Z.v)(!1,34);var l=e.length,u="";if(l>0){u+=e[0];for(var h=1;h<n;++h)u+=","+e[h];for(var c=s;c<l;c+=s){u+=" "+e[c];for(h=1;h<n;++h)u+=","+e[c+h]}}rt(t,u)}))});function Ze(t,e,r){var n=e.getFlatCoordinates(),i={node:t};i.layout=e.getLayout(),i.stride=e.getStride();var o=e.getProperties();o.coordinates=n;var a=r[r.length-1].node,s=He[a.namespaceURI],l=D(o,s);B(i,Ye,F,l,r,s)}var qe=j(ft,["color","fill","outline"]),$e=j(ft,{outerBoundaryIs:k(ze),innerBoundaryIs:k(ze)}),Je=M("innerBoundaryIs"),Qe=M("outerBoundaryIs");function tr(t,e,r){var n=e.getLinearRings(),i=n.shift(),o={node:t};B(o,$e,Je,n,r),B(o,$e,Qe,[i],r)}var er=j(ft,{color:k(ve),fill:k(tt),outline:k(tt)});function rr(t,e){et(t,Math.round(1e6*e)/1e6)}var nr=j(ft,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),ir=j(ft,{IconStyle:k((function(t,e,r){var n={node:t},i={},o=e.getSrc(),a=e.getSize(),s=e.getImageSize(),u={href:o};if(a){u.w=a[0],u.h=a[1];var h=e.getAnchor(),c=e.getOrigin();if(c&&s&&0!==c[0]&&c[1]!==a[1]&&(u.x=c[0],u.y=s[1]-(c[1]+a[1])),h&&(h[0]!==a[0]/2||h[1]!==a[1]/2)){var f={x:h[0],xunits:l.A.PIXELS,y:a[1]-h[1],yunits:l.A.PIXELS};i.hotSpot=f}}i.Icon=u;var p=e.getScaleArray()[0],d=a;null===d&&(d=st),2==d.length&&(p/=It(d)),1!==p&&(i.scale=p);var g=e.getRotation();0!==g&&(i.heading=g);var _=e.getColor();_&&(i.color=_);var y=r[r.length-1].node,m=Te[y.namespaceURI],v=D(i,m);B(n,Pe,F,v,r,m)})),LabelStyle:k((function(t,e,r){var n={node:t},i={}
8,o=e.getFill();o&&(i.color=o.getColor());var a=e.getScale();a&&1!==a&&(i.scale=a);var s=r[r.length-1].node,l=Ie[s.namespaceURI],u=D(i,l);B(n,Oe,F,u,r,l)})),LineStyle:k((function(t,e,r){var n={node:t},i={color:e.getColor(),width:Number(e.getWidth())||1},o=r[r.length-1].node,a=Re[o.namespaceURI],s=D(i,a);B(n,Le,F,s,r,a)})),PolyStyle:k((function(t,e,r){var n={node:t},i=e.getFill(),o=e.getStroke(),a={color:i?i.getColor():void 0,fill:!!i&&void 0,outline:!!o&&void 0},s=r[r.length-1].node,l=qe[s.namespaceURI],u=D(a,l);B(n,er,F,u,r,l)}))});const or=Rt},4238:(t,e,r)=>{"use strict";r.d(e,{B4:()=>s,W8:()=>o,hq:()=>l,rT:()=>i,tV:()=>a});var n=r(6514);function i(){return!0}function o(){return!1}function a(){}function s(t){var e,r,i,o=!1;return function(){var a=Array.prototype.slice.call(arguments);return o&&this===i&&(0,n.aI)(a,r)||(o=!0,i=this,r=a,e=t.apply(this,arguments)),e}}function l(t){return function(){var e;try{e=t()}catch(t){return Promise.reject(t)}return e instanceof Promise?e:Promise.resolve(e)}()}},4974:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var n,i=r(2096),o=r(915),a=r(2497),s=r(7622),l=(n=function(t,e){return n=Object.
vendor: 3,082 bytes, line 8
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=function(t){function e(e,r,n){var i=t.call(this)||this;if(void 0!==n&&void 0===r)i.setFlatCoordinates(n,e);else{var o=r||0;i.setCenterAndRadius(e,o,n)}return i}return l(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){var i=this.flatCoordinates,o=t-i[0],a=e-i[1],s=o*o+a*a;if(s<n){if(0===s)for(var l=0;l<this.stride;++l)r[l]=i[l];else{var u=this.getRadius()/Math.sqrt(s);r[0]=i[0]+u*o,r[1]=i[1]+u*a;for(l=2;l<this.stride;++l)r[l]=i[l]}return r.length=this.stride,s}return n},e.prototype.containsXY=function(t,e){var r=this.flatCoordinates,n=t-r[0],i=e-r[1];return n*n+i*i<=this.getRadiusSquared_()},e.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.computeExtent=function(t){var e=this.flatCoordinates,r=e[this.stride]-e[0];return(0,o.createOrUpdate)(e[0]-r,e[1]-r,e[0]+r,e[1]+r,t)},e.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},e.prototype.getRadiusSquared_=function(){var t=this.flatCoordinates[this.stride]-this.flatCoordinates[0],e=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return t*t+e*e},e.prototype.getType=function(){return"Circle"},e.prototype.intersectsExtent=function(t){var e=this.getExtent();if((0,o.intersects)(t,e)){var r=this.getCenter();return t[0]<=r[0]&&t[2]>=r[0]||(t[1]<=r[1]&&t[3]>=r[1]||(0,o.forEachCorner)(t,this.intersectsCoordinate.bind(this)))}return!1},e.prototype.setCenter=function(t){var e=this.stride,r=this.flatCoordinates[e]-this.flatCoordinates[0],n=t.slice();n[e]=n[0]+r;for(var i=1;i<e;++i)n[e+i]=t[i];this.setFlatCoordinates(this.layout,n),this.changed()},e.prototype.setCenterAndRadius=function(t,e,r){this.setLayout(r,t,0),this.flatCoordinates||(this.flatCoordinates=[]);var n=this.flatCoordinates,i=(0,a._n)(n,0,t,this.stride);n[i++]=n[0]+e;for(var o=1,s=this.stride;o<s;++o)n[i++]=n[o];n.length=i,this.changed()},e.prototype.getCoordinates=function(){return null},e.prototype.setCoordinates=function(t,e){},e.prototype.setRadius=function(t){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+t,this.changed()},e.prototype.rotate=function(t,e){var r=this.getCenter(),n=this.getStride();this.setCenter((0,s.e$)(r,0,r.length,n,t,e,r)),this.changed()},e.prototype.translate=function(t,e){var r=this.getCenter(),n=this.getStride();this.setCenter((0,s.Tl)(r,0,r.length,n,t,e,r)),this.changed()},e}(i.Ay);u.prototype.transform;const h=u},7430:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var n,i=r(4120),o=r(5719),a=r(4087),s=r(9703),l=r(915),u=r(7083),h=r(4238),c=r(7622),f=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=(0,s.vt)();const d=function(t){function e(){var e=t.call(this)||this;return e.extent_=(0,l.createEmpty)(),e.extentRevision_=-1,e.simplifiedGeometryMaxMinSquaredTolerance=0,e.simplifiedGeometryRevision=0,e.simplifyTransformedInternal=(0,h.B4)((function(t,e,r){if(!r)return this.getSimplifiedGeometry(e);var n=this.clone();return n.applyTransform(r),n.getSimplifiedGeometry(e)})),e}return f(e,t),e.prototype.simplifyTransformed=function(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)},e.prototype.clone=function(){return(0,a.b0)()},e.prototype.closestPointXY=function(t,e,r,n){return(0,a.b0)()},e.prototype.containsXY=function(t,e){var r=this.getClosestPoint([t,e]);return r[0]===t&&r[1]===e},e.prototype.getClosestPoint=function(t,e){var r=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],r,1/0),r},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return(0,a.b0)()},e.prototype.getExtent=function(t){if(this.extentRevision_!=this.getRevision()){var e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&(0,l.createOrUpdateEmpty)(e),this.extentRevision_=this.getRevision()}return(0,l.returnOrUpdate)(this.extent_,t)},e.prototype.rotate=function(t,e){(0,a.b0)()},e.prototype.scale=function(t,e,r){(0,a.b0)()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return(0,a.b0)()},e.prototype.getType=function(){return(0,a.b0)()},e.prototype.applyTransform=function(t){(0,a.b0)()},e.prototype.intersectsExtent=function(t){return(0,a.b0)()},e.prototype.translate=function(t,e){(0,a.b0)()},e.prototype.transform=function(t,e){var r=(0,u.get)(t),n=r.getUnits()==o.Ay.TILE_PIXELS?function(t,n,i){var o=r.getExtent(),a=r.getWorldExtent(),h=(0,l.getHeight)(a)/(0,l.getHeight)(o);return(0,s.Zz)(p,a[0],a[3],h,-h,0,0,0),(0,c.Rc)(t,0,t.length,i,p,n),(0,u.getTransform)(r,e)(t,n,i)}:(0,u.getTransform)(r,e);return this.applyTransform(n),this},e}(i.A)},4338:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var n,i=r(6837),o=r(7430),a=r(915),s=r(9438),l=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function u(t){for(var e=[],r=0,n=t.length;r<n;++r)e.push(t[r].clone());return e}const h=function(t){function e(e){var r=t.call(this)||this;return r.geometries_=e||null,r.changeEventsKeys_=[],r.listenGeometriesChange_(),r}return l(e,t),e.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(s.JH),this.changeEventsKeys_.length=0},e.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,e=this.geometries_.length;t<e;++t)this.changeEventsKeys_.push((0,s.KT)(this.geometries_[t],i.A.CHANGE,this.changed,this))},e.prototype.clone=function(){var t=new e(null);return t.setGeometries(this.geometries_),t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){if(n<(0,a.closestSquaredDistanceXY)(this.getExtent(),t,e))return n;for(var i=this.geometries_,o=0,s=i.length;o<s;++o)n=i[o].closestPointXY(t,e,r,n);return n},e.prototype.containsXY=function(t,e){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)if(r[n].containsXY(t,e))return!0;return!1},e.prototype.computeExtent=function(t){(0,a.createOrUpdateEmpty)(t);for(var e=this.geometries_,r=0,n=e.length;r<n;++r)(0,a.extend)(t,e[r].getExtent());return t},e.prototype.getGeometries=function(){return u(this.geometries_)},e.prototype.getGeometriesArray=function(){return this.geometries_},e.prototype.getGeometriesArrayRecursive=function(){for(var t=[],e=this.geometries_,r=0,n=e.length;r<n;++r)e[r].getType()===this.getType()?t=t.concat(e[r].getGeometriesArrayRecursive()):t.push(e[r]);return t},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;for(var r=[],n=this.geometries_,i=!1,o=0,a=n.length;o<a;++o){var s=n[o],l=s.getSimplifiedGeometry(t);r.push(l),l!==s&&(i=!0)}if(i){var u=new e(null);return u.setGeometriesArray(r),u}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this},e.prototype.getType=function(){return"GeometryCollection"},e.prototype.intersectsExtent=function(t){for(var e=this.geometries_,r=0,n=e.length;r<n;++r)if(e[r].intersectsExtent(t))return!0;return!1},e.prototype.isEmpty=function(){return 0===this.geometries_.length},e.prototype.rotate=function(t,e){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)r[n].rotate(t,e);this.changed()},e.prototype.scale=function(t,e,r){var n=r;n||(n=(0,a.getCenter)(this.getExtent()));for(var i=this.geometries_,o=0,s=i.length;o<s;++o)i[o].scale(t,e,n);this.changed()},e.prototype.setGeometries=function(t){this.setGeometriesArray(u(t))},e.prototype.setGeometriesArray=function(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()},e.prototype.applyTransform=function(t){for(var e=this.geometries_,r=0,n=e.length;r<n;++r)e[r].applyTransform(t);this.changed()},e.prototype.translate=function(t,e){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)r[n].translate(t,e);this.changed()},e.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),t.prototype.disposeInternal.call(this)},e}(o.A)},9052:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},1217:(t,e,r)=>{"use strict";r.d(e,{A:()=>y});var n,i=r(9052),o=r(2096),a=r(3953),s=r(915),l=r(2497),u=r(3671),h=r(6514),c=r(1374),f=r(6361),p=r(9969),d=r(4350),g=r(904),_=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const y=function(t){function e(e,r){var n=t.call(this)||this;return n.flatMidpoint_=null,n.flatMidpointRevision_=-1,n.maxDelta_=-1,n.maxDeltaRevision_=-1,void 0===r||Array.isArray(e[0])?n.setCoordinates(e,r):n.setFlatCoordinates(r,e),n}return _(e,t),e.prototype.appendCoordinate=function(t){this.flatCoordinates?(0,h.X$)(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){return n<(0,s.closestSquaredDistanceXY)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.MD)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.n)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,r,n))},e.prototype.forEachSegment=function(t){return(0,c.j)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinateAtM=function(t,e){if(this.layout!=i.A.XYM&&this.layout!=i.A.XYZM)return null;var r=void 0!==e&&e;return(0,p.gr)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r)},e.prototype.getCoordinates=function(){return(0,f.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinateAt=function(t,e){return(0,p.SH)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)},e.prototype.getLength=function(){return(0,g.k)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[];return r.length=(0,u.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r,0),new e(r,i.A.XY)},e.prototype.getType=function(){return"LineString"},e.prototype.intersectsExtent=function(t){return(0,d.gp)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,l.z2)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(o.Ay)},6702:(t,e,r)=>{"use strict";r.d(e,{A:()=>_});var n,i=r(9052),o=r(1217),a=r(2096),s=r(3953),l=r(915),u=r(2497),h=r(3671),c=r(6514),f=r(6361),p=r(9969),d=r(4350),g=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const _=function(t){function e(e,r,n){var i=t.call(this)||this;if(i.ends_=[],i.maxDelta_=-1,i.maxDeltaRevision_=-1,Array.isArray(e[0]))i.setCoordinates(e,r);else if(void 0!==r&&n)i.setFlatCoordinates(r,e),i.ends_=n;else{for(var o=i.getLayout(),a=e,s=[],l=[],u=0,h=a.length;u<h;++u){var f=a[u];0===u&&(o=f.getLayout()),(0,c.X$)(s,f.getFlatCoordinates()),l.push(s.length)}i.setFlatCoordinates(o,s),i.ends_=l}return i}return g(e,t),e.prototype.appendLineString=function(t){this.flatCoordinates?(0,c.X$)(this.flatCoordinates,t.getFlatCoordinates().slice()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){return n<(0,l.closestSquaredDistanceXY)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,s.HX)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,s.oW)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,r,n))},e.prototype.getCoordinateAtM=function(t,e,r){if(this.layout!=i.A.XYM&&this.layout!=i.A.XYZM||0===this.flatCoordinates.length)return null;var n=void 0!==e&&e,o=void 0!==r&&r;return(0,p.L8)(this.flatCoordinates,0,this.ends_,this.stride,t,n,o)},e.prototype.getCoordinates=function(){return(0,f.cD)(this.flatCoordinates,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getLineString=function(t){return t<0||this.ends_.length<=t?null:new o.A(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLineStrings=function(){for(var t=this.flatCoordinates,e=this.ends_,r=this.layout,n=[],i=0,a=0,s=e.length;a<s;++a){var l=e[a],u=new o.A(t.slice(i,l),r);n.push(u),i=l}return n},e.prototype.getFlatMidpoints=function(){for(var t=[],e=this.flatCoordinates,r=0,n=this.ends_,i=this.stride,o=0,a=n.length;o<a;++o){var s=n[o],l=(0,p.SH)(e,r,s,i,.5);(0,c.X$)(t,l),r=s}return t},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[],n=[];return r.length=(0,h.AL)(this.flatCoordinates,0,this.ends_,this.stride,t,r,0,n),new e(r,i.A.XY,n)},e.prototype.getType=function(){return"MultiLineString"},e.prototype.intersectsExtent=function(t){return(0,d.fB)(this.flatCoordinates,0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var r=(0,u.KG)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===r.length?0:r[r.length-1],this.changed()},e}(a.Ay)},503:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var n,i=r(4294),o=r(2096),a=r(915),s=r(2497),l=r(6514),u=r(6361),h=r(1597),c=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const f=function(t){function e(e,r){var n=t.call(this)||this;return r&&!Array.isArray(e[0])?n.setFlatCoordinates(r,e):n.setCoordinates(e,r),n}return c(e,t),e.prototype.appendPoint=function(t){this.flatCoordinates?(0,l.X$)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){if(n<(0,a.closestSquaredDistanceXY)(this.getExtent(),t,e))return n;for(var i=this.flatCoordinates,o=this.stride,s=0,l=i.length;s<l;s+=o){var u=(0,h.hG)(t,e,i[s],i[s+1]);if(u<n){n=u;for(var c=0;c<o;++c)r[c]=i[s+c];r.length=o}}return n},e.prototype.getCoordinates=function(){return(0,u.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getPoint=function(t){var e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||e<=t?null:new i.A(this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)},e.prototype.getPoints=function(){for(var t=this.flatCoordinates,e=this.layout,r=this.stride,n=[],o=0,a=t.length;o<a;o+=r){var s=new i.A(t.slice(o,o+r),e);n.push(s)}return n},e.prototype.getType=function(){return"MultiPoint"},e.prototype.intersectsExtent=function(t){for(var e=this.flatCoordinates,r=this.stride,n=0,i=e.length;n<i;n+=r){var o=e[n],s=e[n+1];if((0,a.containsXY)(t,o,s))return!0}return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,s.z2)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(o.Ay)},3123:(t,e,r)=>{"use strict";r.d(e,{A:()=>w});var n=r(9052),i=r(503),o=r(1064),a=r(2096),s=r(3953),l=r(915),u=r(2497),h=r(6514),c=r(2616),f=r(6361),p=r(4350),d=r(3402),g=r(8609);var _,y=r(2845),m=r(3671),v=(_=function(t,e){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},_(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const w=function(t){function e(e,r,n){var i=t.call(this)||this;if(i.endss_=[],i.flatInteriorPointsRevision_=-1,i.flatInteriorPoints_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,!n&&!Array.isArray(e[0])){for(var o=i.getLayout(),a=e,s=[],l=[],u=0,c=a.length;u<c;++u){var f=a[u];0===u&&(o=f.getLayout());for(var p=s.length,d=f.getEnds(),g=0,_=d.length;g<_;++g)d[g]+=p;(0,h.X$)(s,f.getFlatCoordinates()),l.push(d)}r=o,e=s,n=l}return void 0!==r&&n?(i.setFlatCoordinates(r,e),i.endss_=n):i.setCoordinates(e,r),i}return v(e,t),e.prototype.appendPolygon=function(t){var e;if(this.flatCoordinates){var r=this.flatCoordinates.length;(0,h.X$)(this.flatCoordinates,t.getFlatCoordinates());for(var n=0,i=(e=t.getEnds().slice()).length;n<i;++n)e[n]+=r}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()},e.prototype.clone=function(){for(var t=this.endss_.length,r=new Array(t),n=0;n<t;++n)r[n]=this.endss_[n].slice();var i=new e(this.flatCoordinates.slice(),this.layout,r);return i.applyProperties(this),i},e.prototype.closestPointXY=function(t,e,r,n){return n<(0,l.closestSquaredDistanceXY)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,s.c)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,s.te)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,r,n))},e.prototype.containsXY=function(t,e){return(0,y.Gd)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)},e.prototype.getArea=function(){return(0,g.Cs)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,d.NK)(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,(0,f.Dz)(e,0,this.endss_,this.stride)},e.prototype.getEndss=function(){return this.endss_},e.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var t=function(t,e,r,n){for(var i=[],o=(0,l.createEmpty)(),a=0,s=r.length;a<s;++a){var u=r[a];o=(0,l.createOrUpdateFromFlatCoordinates)(t,e,u[0],n),i.push((o[0]+o[2])/2,(o[1]+o[3])/2),e=u[u.length-1]}return i}(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=(0,c.p)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},e.prototype.getInteriorPoints=function(){return new i.A(this.getFlatInteriorPoints().slice(),n.A.XYM)},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;(0,d.mb)(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,d.NK)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[],i=[];
vendor: 1,303 bytes, line 8
8return r.length=(0,m.sx)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),r,0,i),new e(r,n.A.XY,i)},e.prototype.getPolygon=function(t){if(t<0||this.endss_.length<=t)return null;var e;if(0===t)e=0;else{var r=this.endss_[t-1];e=r[r.length-1]}var n=this.endss_[t].slice(),i=n[n.length-1];if(0!==e)for(var a=0,s=n.length;a<s;++a)n[a]-=e;return new o.Ay(this.flatCoordinates.slice(e,i),this.layout,n)},e.prototype.getPolygons=function(){for(var t=this.layout,e=this.flatCoordinates,r=this.endss_,n=[],i=0,a=0,s=r.length;a<s;++a){var l=r[a].slice(),u=l[l.length-1];if(0!==i)for(var h=0,c=l.length;h<c;++h)l[h]-=i;var f=new o.Ay(e.slice(i,u),t,l);n.push(f),i=u}return n},e.prototype.getType=function(){return"MultiPolygon"},e.prototype.intersectsExtent=function(t){return(0,p.Wp)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);var r=(0,u.d6)(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===r.length)this.flatCoordinates.length=0;else{var n=r[r.length-1];this.flatCoordinates.length=0===n.length?0:n[n.length-1]}this.changed()},e}(a.Ay)},4294:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n,i=r(2096),o=r(915),a=r(2497),s=r(1597),l=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const u=function(t){function e(e,r){var n=t.call(this)||this;return n.setCoordinates(e,r),n}return l(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){var i=this.flatCoordinates,o=(0,s.hG)(t,e,i[0],i[1]);if(o<n){for(var a=this.stride,l=0;l<a;++l)r[l]=i[l];return r.length=a,o}return n},e.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},e.prototype.computeExtent=function(t){return(0,o.createOrUpdateFromCoordinate)(this.flatCoordinates,t)},e.prototype.getType=function(){return"Point"},e.prototype.intersectsExtent=function(t){return(0,o.containsXY)(t,this.flatCoordinates[0],this.flatCoordinates[1])},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,a._n)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(i.Ay)},1064:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>E,nD:()=>S,VY:()=>A});var n,i=r(9052),o=r(2096),a=r(3953),s=r(915),l=r(2497),u=r(3671),h=r(6361),c=r(8609),f=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const p=function(t){function e(e,r){var n=t.call(this)||this;return n.maxDelta_=-1,n.maxDeltaRevision_=-1,void 0===r||Array.isArray(e[0])?n.setCoordinates(e,r):n.setFlatCoordinates(r,e),n}return f(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,r,n){return n<(0,s.closestSquaredDistanceXY)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.MD)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.n)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,r,n))},e.prototype.getArea=function(){return(0,c.eN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return(0,h.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[];return r.length=(0,u.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r,0),new e(r,i.A.XY)},e.prototype.getType=function(){return"LinearRing"},e.prototype.intersectsExtent=function(t){return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,l.z2)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(o.Ay);var d=r(4294),g=r(6514),_=r(2616),y=r(4350),m=r(3402),v=r(2845),w=r(1597),x=(r(2490),function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}()),b=function(t){function e(e,r,n){var i=t.call(this)||this;return i.ends_=[],i.flatInteriorPointRevision_=-1,i.flatInteriorPoint_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,void 0!==r&&n?(i.setFlatCoordinates(r,e),i.ends_=n):i.setCoordinates(e,r),i}return x(e,t),e.prototype.appendLinearRing=function(t){this.flatCoordinates?(0,g.X$)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){return n<(0,s.closestSquaredDistanceXY)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.HX)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.oW)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,r,n))},e.prototype.containsXY=function(t,e){return(0,v.zb)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return(0,c.PK)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,m.ug)(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,(0,h.cD)(e,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var t=(0,s.getCenter)(this.getExtent());this.flatInteriorPoint_=(0,_.J)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new d.A(this.getFlatInteriorPoint(),i.A.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,r=this.ends_,n=[],i=0,o=0,a=r.length;o<a;++o){var s=r[o],l=new p(e.slice(i,s),t);n.push(l),i=s}return n},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;(0,m.PA)(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,m.ug)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[],n=[];return r.length=(0,u.Hg)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),r,0,n),new e(r,i.A.XY,n)},e.prototype.getType=function(){return"Polygon"},e.prototype.intersectsExtent=function(t){return(0,y.HT)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var r=(0,l.KG)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===r.length?0:r[r.length-1],this.changed()},e}(o.Ay);const E=b;function A(t){var e=t[0],r=t[1],n=t[2],o=t[3],a=[e,r,e,o,n,o,n,r,e,r];return new b(a,i.A.XY,[a.length])}function S(t,e,r){for(var n=e||32,i=t.getStride(),o=t.getLayout(),a=t.getCenter(),s=i*(n+1),l=new Array(s),u=0;u<s;u+=i){l[u]=0,l[u+1]=0;for(var h=2;h<i;h++)l[u+h]=a[h]}var c=[l.length],f=new b(l,o,c);return function(t,e,r,n){for(var i=t.getFlatCoordinates(),o=t.getStride(),a=i.length/o-1,s=n||0,l=0;l<=a;++l){var u=l*o,h=s+2*(0,w.xP)(l,a)*Math.PI/a;i[u]=e[0]+r*Math.cos(h),i[u+1]=e[1]+r*Math.sin(h)}t.changed()}(f,a,t.getRadius(),r),f}},2096:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>f,dn:()=>h,v7:()=>c});var n,i=r(7430),o=r(9052),a=r(4087),s=r(915),l=r(7622),u=(n=function(t,e){return n=Object.
vendor: 52,588 bytes, line 8
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function h(t){var e;return t==o.A.XY?e=2:t==o.A.XYZ||t==o.A.XYM?e=3:t==o.A.XYZM&&(e=4),e}function c(t,e,r){var n=t.getFlatCoordinates();if(n){var i=t.getStride();return(0,l.Rc)(n,0,n.length,i,e,r)}return null}const f=function(t){function e(){var e=t.call(this)||this;return e.layout=o.A.XY,e.stride=2,e.flatCoordinates=null,e}return u(e,t),e.prototype.computeExtent=function(t){return(0,s.createOrUpdateFromFlatCoordinates)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return(0,a.b0)()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},e.prototype.getSimplifiedGeometryInternal=function(t){return this},e.prototype.getStride=function(){return this.stride},e.prototype.setFlatCoordinates=function(t,e){this.stride=h(t),this.layout=t,this.flatCoordinates=e},e.prototype.setCoordinates=function(t,e){(0,a.b0)()},e.prototype.setLayout=function(t,e,r){var n;if(t)n=h(t);else{for(var i=0;i<r;++i){if(0===e.length)return this.layout=o.A.XY,void(this.stride=2);e=e[0]}t=function(t){var e;2==t?e=o.A.XY:3==t?e=o.A.XYZ:4==t&&(e=o.A.XYZM);return e}(n=e.length)}this.layout=t,this.stride=n},e.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},e.prototype.rotate=function(t,e){var r=this.getFlatCoordinates();if(r){var n=this.getStride();(0,l.e$)(r,0,r.length,n,t,e,r),this.changed()}},e.prototype.scale=function(t,e,r){var n=e;void 0===n&&(n=t);var i=r;i||(i=(0,s.getCenter)(this.getExtent()));var o=this.getFlatCoordinates();if(o){var a=this.getStride();(0,l.hs)(o,0,o.length,a,t,n,i,o),this.changed()}},e.prototype.translate=function(t,e){var r=this.getFlatCoordinates();if(r){var n=this.getStride();(0,l.Tl)(r,0,r.length,n,t,e,r),this.changed()}},e}(i.A)},8609:(t,e,r)=>{"use strict";function n(t,e,r,n){for(var i=0,o=t[r-n],a=t[r-n+1];e<r;e+=n){var s=t[e],l=t[e+1];i+=a*s-o*l,o=s,a=l}return i/2}function i(t,e,r,i){for(var o=0,a=0,s=r.length;a<s;++a){var l=r[a];o+=n(t,e,l,i),e=l}return o}function o(t,e,r,n){for(var o=0,a=0,s=r.length;a<s;++a){var l=r[a];o+=i(t,e,l,n),e=l[l.length-1]}return o}r.d(e,{Cs:()=>o,PK:()=>i,eN:()=>n})},3953:(t,e,r)=>{"use strict";r.d(e,{HX:()=>a,MD:()=>o,c:()=>s,n:()=>l,oW:()=>u,te:()=>h});var n=r(1597);function i(t,e,r,i,o,a,s){var l,u=t[e],h=t[e+1],c=t[r]-u,f=t[r+1]-h;if(0===c&&0===f)l=e;else{var p=((o-u)*c+(a-h)*f)/(c*c+f*f);if(p>1)l=r;else{if(p>0){for(var d=0;d<i;++d)s[d]=(0,n.Cc)(t[e+d],t[r+d],p);return void(s.length=i)}l=e}}for(d=0;d<i;++d)s[d]=t[l+d];s.length=i}function o(t,e,r,i,o){var a=t[e],s=t[e+1];for(e+=i;e<r;e+=i){var l=t[e],u=t[e+1],h=(0,n.hG)(a,s,l,u);h>o&&(o=h),a=l,s=u}return o}function a(t,e,r,n,i){for(var a=0,s=r.length;a<s;++a){var l=r[a];i=o(t,e,l,n,i),e=l}return i}function s(t,e,r,n,i){for(var o=0,s=r.length;o<s;++o){var l=r[o];i=a(t,e,l,n,i),e=l[l.length-1]}return i}function l(t,e,r,o,a,s,l,u,h,c,f){if(e==r)return c;var p,d;if(0===a){if((d=(0,n.hG)(l,u,t[e],t[e+1]))<c){for(p=0;p<o;++p)h[p]=t[e+p];return h.length=o,d}return c}for(var g=f||[NaN,NaN],_=e+o;_<r;)if(i(t,_-o,_,o,l,u,g),(d=(0,n.hG)(l,u,g[0],g[1]))<c){for(c=d,p=0;p<o;++p)h[p]=g[p];h.length=o,_+=o}else _+=o*Math.max((Math.sqrt(d)-Math.sqrt(c))/a|0,1);if(s&&(i(t,r-o,e,o,l,u,g),(d=(0,n.hG)(l,u,g[0],g[1]))<c)){for(c=d,p=0;p<o;++p)h[p]=g[p];h.length=o}return c}function u(t,e,r,n,i,o,a,s,u,h,c){for(var f=c||[NaN,NaN],p=0,d=r.length;p<d;++p){var g=r[p];h=l(t,e,g,n,i,o,a,s,u,h,f),e=g}return h}function h(t,e,r,n,i,o,a,s,l,h,c){for(var f=c||[NaN,NaN],p=0,d=r.length;p<d;++p){var g=r[p];h=u(t,e,g,n,i,o,a,s,l,h,f),e=g[g.length-1]}return h}},2845:(t,e,r)=>{"use strict";r.d(e,{Gd:()=>s,a_:()=>o,t7:()=>i,zb:()=>a});var n=r(915);function i(t,e,r,i,a){return!(0,n.forEachCorner)(a,(function(n){return!o(t,e,r,i,n[0],n[1])}))}function o(t,e,r,n,i,o){for(var a=0,s=t[r-n],l=t[r-n+1];e<r;e+=n){var u=t[e],h=t[e+1];l<=o?h>o&&(u-s)*(o-l)-(i-s)*(h-l)>0&&a++:h<=o&&(u-s)*(o-l)-(i-s)*(h-l)<0&&a--,s=u,l=h}return 0!==a}function a(t,e,r,n,i,a){if(0===r.length)return!1;if(!o(t,e,r[0],n,i,a))return!1;for(var s=1,l=r.length;s<l;++s)if(o(t,r[s-1],r[s],n,i,a))return!1;return!0}function s(t,e,r,n,i,o){if(0===r.length)return!1;for(var s=0,l=r.length;s<l;++s){var u=r[s];if(a(t,e,u,n,i,o))return!0;e=u[u.length-1]}return!1}},2497:(t,e,r)=>{"use strict";function n(t,e,r,n){for(var i=0,o=r.length;i<o;++i)t[e++]=r[i];return e}function i(t,e,r,n){for(var i=0,o=r.length;i<o;++i)for(var a=r[i],s=0;s<n;++s)t[e++]=a[s];return e}function o(t,e,r,n,o){for(var a=o||[],s=0,l=0,u=r.length;l<u;++l){var h=i(t,e,r[l],n);a[s++]=h,e=h}return a.length=s,a}function a(t,e,r,n,i){for(var a=i||[],s=0,l=0,u=r.length;l<u;++l){var h=o(t,e,r[l],n,a[s]);a[s++]=h,e=h[h.length-1]}return a.length=s,a}r.d(e,{KG:()=>o,_n:()=>n,d6:()=>a,z2:()=>i})},6361:(t,e,r)=>{"use strict";function n(t,e,r,n,i){for(var o=void 0!==i?i:[],a=0,s=e;s<r;s+=n)o[a++]=t.slice(s,s+n);return o.length=a,o}function i(t,e,r,i,o){for(var a=void 0!==o?o:[],s=0,l=0,u=r.length;l<u;++l){var h=r[l];a[s++]=n(t,e,h,i,a[s]),e=h}return a.length=s,a}function o(t,e,r,n,o){for(var a=void 0!==o?o:[],s=0,l=0,u=r.length;l<u;++l){var h=r[l];a[s++]=i(t,e,h,n,a[s]),e=h[h.length-1]}return a.length=s,a}r.d(e,{Dz:()=>o,cD:()=>i,n2:()=>n})},2616:(t,e,r)=>{"use strict";r.d(e,{J:()=>o,p:()=>a});var n=r(2845),i=r(6514);function o(t,e,r,o,a,s,l){for(var u,h,c,f,p,d,g,_=a[s+1],y=[],m=0,v=r.length;m<v;++m){var w=r[m];for(f=t[w-o],d=t[w-o+1],u=e;u<w;u+=o)p=t[u],g=t[u+1],(_<=d&&g<=_||d<=_&&_<=g)&&(c=(_-d)/(g-d)*(p-f)+f,y.push(c)),f=p,d=g}var x=NaN,b=-1/0;for(y.sort(i.qA),f=y[0],u=1,h=y.length;u<h;++u){p=y[u];var E=Math.abs(p-f);E>b&&(c=(f+p)/2,(0,n.zb)(t,e,r,o,c,_)&&(x=c,b=E)),f=p}return isNaN(x)&&(x=a[s]),l?(l.push(x,_,b),l):[x,_,b]}function a(t,e,r,n,i){for(var a=[],s=0,l=r.length;s<l;++s){var u=r[s];a=o(t,e,u,n,i,2*s,a),e=u[u.length-1]}return a}},9969:(t,e,r)=>{"use strict";r.d(e,{L8:()=>s,SH:()=>o,gr:()=>a});var n=r(6514),i=r(1597);function o(t,e,r,o,a,s,l){var u,h,c=(r-e)/o;if(1===c)u=e;else if(2===c)u=e,h=a;else if(0!==c){for(var f=t[e],p=t[e+1],d=0,g=[0],_=e+o;_<r;_+=o){var y=t[_],m=t[_+1];d+=Math.sqrt((y-f)*(y-f)+(m-p)*(m-p)),g.push(d),f=y,p=m}var v=a*d,w=(0,n.El)(g,v);w<0?(h=(v-g[-w-2])/(g[-w-1]-g[-w-2]),u=e+(-w-2)*o):u=e+w*o}var x=l>1?l:2,b=s||new Array(x);for(_=0;_<x;++_)b[_]=void 0===u?NaN:void 0===h?t[u+_]:(0,i.Cc)(t[u+_],t[u+o+_],h);return b}function a(t,e,r,n,o,a){if(r==e)return null;var s;if(o<t[e+n-1])return a?((s=t.slice(e,e+n))[n-1]=o,s):null;if(t[r-1]<o)return a?((s=t.slice(r-n,r))[n-1]=o,s):null;if(o==t[e+n-1])return t.slice(e,e+n);for(var l=e/n,u=r/n;l<u;){var h=l+u>>1;o<t[(h+1)*n-1]?u=h:l=h+1}var c=t[l*n-1];if(o==c)return t.slice((l-1)*n,(l-1)*n+n);var f=(o-c)/(t[(l+1)*n-1]-c);s=[];for(var p=0;p<n-1;++p)s.push((0,i.Cc)(t[(l-1)*n+p],t[l*n+p],f));return s.push(o),s}function s(t,e,r,n,i,o,s){if(s)return a(t,e,r[r.length-1],n,i,o);var l;if(i<t[n-1])return o?((l=t.slice(0,n))[n-1]=i,l):null;if(t[t.length-1]<i)return o?((l=t.slice(t.length-n))[n-1]=i,l):null;for(var u=0,h=r.length;u<h;++u){var c=r[u];if(e!=c){if(i<t[e+n-1])return null;if(i<=t[c-1])return a(t,e,c,n,i,!1);e=c}}return null}},4350:(t,e,r)=>{"use strict";r.d(e,{HT:()=>u,Wp:()=>h,fB:()=>s,gp:()=>a,sj:()=>l});var n=r(915),i=r(1374),o=r(2845);function a(t,e,r,o,a){var s=(0,n.extendFlatCoordinates)((0,n.createEmpty)(),t,e,r,o);return!!(0,n.intersects)(a,s)&&(!!(0,n.containsExtent)(a,s)||(s[0]>=a[0]&&s[2]<=a[2]||(s[1]>=a[1]&&s[3]<=a[3]||(0,i.j)(t,e,r,o,(function(t,e){return(0,n.intersectsSegment)(a,t,e)})))))}function s(t,e,r,n,i){for(var o=0,s=r.length;o<s;++o){if(a(t,e,r[o],n,i))return!0;e=r[o]}return!1}function l(t,e,r,n,i){return!!a(t,e,r,n,i)||(!!(0,o.a_)(t,e,r,n,i[0],i[1])||(!!(0,o.a_)(t,e,r,n,i[0],i[3])||(!!(0,o.a_)(t,e,r,n,i[2],i[1])||!!(0,o.a_)(t,e,r,n,i[2],i[3]))))}function u(t,e,r,n,i){if(!l(t,e,r[0],n,i))return!1;if(1===r.length)return!0;for(var s=1,u=r.length;s<u;++s)if((0,o.t7)(t,r[s-1],r[s],n,i)&&!a(t,r[s-1],r[s],n,i))return!1;return!0}function h(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o){var s=r[o];if(u(t,e,s,n,i))return!0;e=s[s.length-1]}return!1}},904:(t,e,r)=>{"use strict";function n(t,e,r,n){for(var i=t[e],o=t[e+1],a=0,s=e+n;s<r;s+=n){var l=t[s],u=t[s+1];a+=Math.sqrt((l-i)*(l-i)+(u-o)*(u-o)),i=l,o=u}return a}r.d(e,{k:()=>n})},3402:(t,e,r)=>{"use strict";function n(t,e,r,n){for(;e<r-n;){for(var i=0;i<n;++i){var o=t[e+i];t[e+i]=t[r-n+i],t[r-n+i]=o}e+=n,r-=n}}function i(t,e,r,n){for(var i=0,o=t[r-n],a=t[r-n+1];e<r;e+=n){var s=t[e],l=t[e+1];i+=(s-o)*(l+a),o=s,a=l}return 0===i?void 0:i>0}function o(t,e,r,n,o){for(var a=void 0!==o&&o,s=0,l=r.length;s<l;++s){var u=r[s],h=i(t,e,u,n);if(0===s){if(a&&h||!a&&!h)return!1}else if(a&&!h||!a&&h)return!1;e=u}return!0}function a(t,e,r,n,i){for(var a=0,s=r.length;a<s;++a){var l=r[a];if(!o(t,e,l,n,i))return!1;l.length&&(e=l[l.length-1])}return!0}function s(t,e,r,o,a){for(var s=void 0!==a&&a,l=0,u=r.length;l<u;++l){var h=r[l],c=i(t,e,h,o);(0===l?s&&c||!s&&!c:s&&!c||!s&&c)&&n(t,e,h,o),e=h}return e}function l(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o)e=s(t,e,r[o],n,i);return e}r.d(e,{PA:()=>o,mb:()=>a,ug:()=>s,NK:()=>l})},1374:(t,e,r)=>{"use strict";function n(t,e,r,n,i){var o;for(e+=n;e<r;e+=n)if(o=i(t.slice(e-n,e),t.slice(e,e+n)))return o;return!1}r.d(e,{j:()=>n})},3671:(t,e,r)=>{"use strict";r.d(e,{AL:()=>o,Hg:()=>l,P4:()=>i,n$:()=>a,sx:()=>u});var n=r(1597);function i(t,e,r,i,o,a,s){var l=(r-e)/i;if(l<3){for(;e<r;e+=i)a[s++]=t[e],a[s++]=t[e+1];return s}var u=new Array(l);u[0]=1,u[l-1]=1;for(var h=[e,r-i],c=0;h.length>0;){for(var f=h.pop(),p=h.pop(),d=0,g=t[p],_=t[p+1],y=t[f],m=t[f+1],v=p+i;v<f;v+=i){var w=t[v],x=t[v+1],b=(0,n.Q1)(w,x,g,_,y,m);b>d&&(c=v,d=b)}d>o&&(u[(c-e)/i]=1,p+i<c&&h.push(p,c),c+i<f&&h.push(c,f))}for(v=0;v<l;++v)u[v]&&(a[s++]=t[e+v*i],a[s++]=t[e+v*i+1]);return s}function o(t,e,r,n,o,a,s,l){for(var u=0,h=r.length;u<h;++u){var c=r[u];s=i(t,e,c,n,o,a,s),l.push(s),e=c}return s}function a(t,e){return e*Math.round(t/e)}function s(t,e,r,n,i,o,s){if(e==r)return s;var l,u,h=a(t[e],i),c=a(t[e+1],i);e+=n,o[s++]=h,o[s++]=c;do{if(l=a(t[e],i),u=a(t[e+1],i),(e+=n)==r)return o[s++]=l,o[s++]=u,s}while(l==h&&u==c);for(;e<r;){var f=a(t[e],i),p=a(t[e+1],i);if(e+=n,f!=l||p!=u){var d=l-h,g=u-c,_=f-h,y=p-c;d*y==g*_&&(d<0&&_<d||d==_||d>0&&_>d)&&(g<0&&y<g||g==y||g>0&&y>g)?(l=f,u=p):(o[s++]=l,o[s++]=u,h=l,c=u,l=f,u=p)}}return o[s++]=l,o[s++]=u,s}function l(t,e,r,n,i,o,a,l){for(var u=0,h=r.length;u<h;++u){var c=r[u];a=s(t,e,c,n,i,o,a),l.push(a),e=c}return a}function u(t,e,r,n,i,o,a,s){for(var u=0,h=r.length;u<h;++u){var c=r[u],f=[];a=l(t,e,c,n,i,o,a,f),s.push(f),e=c[c.length-1]}return a}},7622:(t,e,r)=>{"use strict";function n(t,e,r,n,i,o){for(var a=o||[],s=0,l=e;l<r;l+=n){var u=t[l],h=t[l+1];a[s++]=i[0]*u+i[2]*h+i[4],a[s++]=i[1]*u+i[3]*h+i[5]}return o&&a.length!=s&&(a.length=s),a}function i(t,e,r,n,i,o,a){for(var s=a||[],l=Math.cos(i),u=Math.sin(i),h=o[0],c=o[1],f=0,p=e;p<r;p+=n){var d=t[p]-h,g=t[p+1]-c;s[f++]=h+d*l-g*u,s[f++]=c+d*u+g*l;for(var _=p+2;_<p+n;++_)s[f++]=t[_]}return a&&s.length!=f&&(s.length=f),s}function o(t,e,r,n,i,o,a,s){for(var l=s||[],u=a[0],h=a[1],c=0,f=e;f<r;f+=n){var p=t[f]-u,d=t[f+1]-h;l[c++]=u+i*p,l[c++]=h+o*d;for(var g=f+2;g<f+n;++g)l[c++]=t[g]}return s&&l.length!=c&&(l.length=c),l}function a(t,e,r,n,i,o,a){for(var s=a||[],l=0,u=e;u<r;u+=n){s[l++]=t[u]+i,s[l++]=t[u+1]+o;for(var h=u+2;h<u+n;++h)s[l++]=t[h]}return a&&s.length!=l&&(s.length=l),s}r.d(e,{Rc:()=>n,Tl:()=>a,e$:()=>i,hs:()=>o})},7771:(t,e,r)=>{"use strict";r.d(e,{DT:()=>h,FT:()=>c,Wl:()=>u,_p:()=>i,cr:()=>l,ew:()=>s,j:()=>a,oF:()=>o});var n="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",i=-1!==n.indexOf("firefox"),o=-1!==n.indexOf("safari")&&-1==n.indexOf("chrom")&&!!(n.indexOf("version/15.4")>=0||n.match(/cpu (os|iphone os) 15_4 like mac os x/)),a=-1!==n.indexOf("webkit")&&-1==n.indexOf("edge"),s=-1!==n.indexOf("macintosh"),l="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,u="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,h="undefined"!=typeof Image&&Image.prototype.decode,c=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}()},6150:(t,e,r)=>{"use strict";r.r(e),r.d(e,{DoubleClickZoom:()=>l,DragAndDrop:()=>at,DragBox:()=>L,DragPan:()=>y,DragRotate:()=>w,DragRotateAndZoom:()=>lt,DragZoom:()=>M,Draw:()=>kt,Extent:()=>Nt,Interaction:()=>o.Ay,KeyboardPan:()=>B,KeyboardZoom:()=>V,Modify:()=>ee,MouseWheelZoom:()=>q,PinchRotate:()=>J,PinchZoom:()=>tt,Pointer:()=>c,Select:()=>re.A,Snap:()=>se,Translate:()=>pe,defaults:()=>de});var n,i=r(71),o=r(6292),a=r(3445),s=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const l=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.delta_=n.delta?n.delta:1,r.duration_=void 0!==n.duration?n.duration:250,r}return s(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==a.A.DBLCLICK){var r=t.originalEvent,n=t.map,i=t.coordinate,s=r.shiftKey?-this.delta_:this.delta_,l=n.getView();(0,o.D2)(l,s,i,this.duration_),r.preventDefault(),e=!0}return!e},e}(o.Ay);var u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function h(t){for(var e=t.length,r=0,n=0,i=0;i<e;i++)r+=t[i].clientX,n+=t[i].clientY;return[r/e,n/e]}const c=function(t){function e(e){var r=this,n=e||{};return r=t.call(this,n)||this,n.handleDownEvent&&(r.handleDownEvent=n.handleDownEvent),n.handleDragEvent&&(r.handleDragEvent=n.handleDragEvent),n.handleMoveEvent&&(r.handleMoveEvent=n.handleMoveEvent),n.handleUpEvent&&(r.handleUpEvent=n.handleUpEvent),n.stopDown&&(r.stopDown=n.stopDown),r.handlingDownUpSequence=!1,r.targetPointers=[],r}return u(e,t),e.prototype.getPointerCount=function(){return this.targetPointers.length},e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==a.A.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==a.A.POINTERUP){var r=this.handleUpEvent(t);this.handlingDownUpSequence=r&&this.targetPointers.length>0}}else if(t.type==a.A.POINTERDOWN){var n=this.handleDownEvent(t);this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==a.A.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}(o.Ay);var f=r(4238),p=r(8704),d=r(3474),g=r(6933),_=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const y=function(t){function e(e){var r=t.call(this,{stopDown:f.W8})||this,n=e||{};r.kinetic_=n.kinetic,r.lastCentroid=null,r.lastPointersCount_,r.panning_=!1;var i=n.condition?n.condition:(0,p.all)(p.noModifierKeys,p.primaryAction);return r.condition_=n.onFocusOnly?(0,p.all)(p.focusWithTabindex,i):i,r.noKinetic_=!1,r}return _(e,t),e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,r=h(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(r[0],r[1]),this.lastCentroid){var n=[this.lastCentroid[0]-r[0],r[1]-this.lastCentroid[1]],i=t.map.getView();(0,g.hs)(n,i.getResolution()),(0,g.e$)(n,i.getRotation()),i.adjustCenterInternal(n)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=r,this.lastPointersCount_=e.length,t.originalEvent.preventDefault()},e.prototype.handleUpEvent=function(t){var e=t.map,r=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var n=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),o=r.getCenterInternal(),a=e.getPixelFromCoordinateInternal(o),s=e.getCoordinateFromPixelInternal([a[0]-n*Math.cos(i),a[1]-n*Math.sin(i)]);r.animateInternal({center:r.getConstrainedCenter(s),duration:500,easing:d.easeOut})}return this.panning_&&(this.panning_=!1,r.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(c);var m=r(4498),v=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const w=function(t){function e(e){var r=this,n=e||{};return(r=t.call(this,{stopDown:f.W8})||this).condition_=n.condition?n.condition:p.altShiftKeysOnly,r.lastAngle_=void 0,r.duration_=void 0!==n.duration?n.duration:250,r}return v(e,t),e.prototype.handleDragEvent=function(t){if((0,p.mouseOnly)(t)){var e=t.map,r=e.getView();if(r.getConstraints().rotation!==m.b8){var n=e.getSize(),i=t.pixel,o=Math.atan2(n[1]/2-i[1],i[0]-n[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;r.adjustRotationInternal(-a)}this.lastAngle_=o}}},e.prototype.handleUpEvent=function(t){return!(0,p.mouseOnly)(t)||(t.map.getView().endInteraction(this.duration_),!1)},e.prototype.handleDownEvent=function(t){return!!(0,p.mouseOnly)(t)&&(!(!(0,p.mouseActionButton)(t)||!this.condition_(t))&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0))},e}(c);var x=r(1685),b=r(25),E=r(1064),A=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const S=function(t){function e(e){var r=t.call(this)||this;return r.geometry_=null,r.element_=document.createElement("div"),r.element_.style.position="absolute",r.element_.style.pointerEvents="auto",r.element_.className="ol-box "+e,r.map_=null,r.startPixel_=null,r.endPixel_=null,r}return A(e,t),e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,r="px",n=this.element_.style;n.left=Math.min(t[0],e[0])+r,n.top=Math.min(t[1],e[1])+r,n.width=Math.abs(e[0]-t[0])+r,n.height=Math.abs(e[1]-t[1])+r},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,r=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);r[4]=r[0].slice(),this.geometry_?this.geometry_.setCoordinates([r]):this.geometry_=new E.Ay([r])},e.prototype.getGeometry=function(){return this.geometry_},e}(b.A);var C=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),T="boxstart",P="boxdrag",I="boxend",O="boxcancel",R=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.coordinate=r,i.mapBrowserEvent=n,i}return C(e,t),e}(x.Ay);const L=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var n=e||{};return r.box_=new S(n.className||"ol-dragbox"),r.minArea_=void 0!==n.minArea?n.minArea:64,n.onBoxEnd&&(r.onBoxEnd=n.onBoxEnd),r.startPixel_=null,r.condition_=n.condition?n.condition:p.mouseActionButton,r.boxEndCondition_=n.boxEndCondition?n.boxEndCondition:r.defaultBoxEndCondition,r}return C(e,t),e.prototype.defaultBoxEndCondition=function(t,e,r){var n=r[0]-e[0],i=r[1]-e[1];return n*n+i*i>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new R(P,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 R(e?I:O,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 R(T,t.coordinate,t)),!0)},e.prototype.onBoxEnd=function(t){},e}(c);var k=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const M=function(t){function e(e){var r=this,n=e||{},i=n.condition?n.condition:p.shiftKeyOnly;return(r=t.call(this,{condition:i,className:n.className||"ol-dragzoom",minArea:n.minArea})||this).duration_=void 0!==n.duration?n.duration:200,r.out_=void 0!==n.out&&n.out,r}return k(e,t),e.prototype.onBoxEnd=function(t){var e=this.getMap().getView(),r=this.getGeometry();if(this.out_){var n=e.rotatedExtentForGeometry(r),i=e.getResolutionForExtentInternal(n),o=e.getResolution()/i;(r=r.clone()).scale(o*o)}e.fitInternal(r,{duration:this.duration_,easing:d.easeOut})},e}(L);var F=r(6837);const D=37,j=38,U=39,G=40;var N=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const B=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.defaultCondition_=function(t){return(0,p.noModifierKeys)(t)&&(0,p.targetNotEditable)(t)},r.condition_=void 0!==n.condition?n.condition:r.defaultCondition_,r.duration_=void 0!==n.duration?n.duration:100,r.pixelDelta_=void 0!==n.pixelDelta?n.pixelDelta:128,r}return N(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==F.A.KEYDOWN){var r=t.originalEvent,n=r.keyCode;if(this.condition_(t)&&(n==G||n==D||n==U||n==j)){var i=t.map.getView(),a=i.getResolution()*this.pixelDelta_,s=0,l=0;n==G?l=-a:n==D?s=-a:n==U?s=a:l=a;var u=[s,l];(0,g.e$)(u,i.getRotation()),(0,o.e4)(i,u,this.duration_),r.preventDefault(),e=!0}}return!e},e}(o.Ay);var z=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const V=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.condition_=n.condition?n.condition:p.targetNotEditable,r.delta_=n.delta?n.delta:1,r.duration_=void 0!==n.duration?n.duration:100,r}return z(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==F.A.KEYDOWN||t.type==F.A.KEYPRESS){var r=t.originalEvent,n=r.charCode;if(this.condition_(t)&&(n=="+".charCodeAt(0)||n=="-".charCodeAt(0))){var i=t.map,a=n=="+".charCodeAt(0)?this.delta_:-this.delta_,s=i.getView();(0,o.D2)(s,a,void 0,this.duration_),r.preventDefault(),e=!0}}return!e},e}(o.Ay);const X=function(){function t(t,e,r){this.decay_=t,this.minVelocity_=e,this.delay_=r,this.points_=[],this.angle_=0,this.initialVelocity_=0}return t.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},t.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},t.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;for(var r=e-3;r>0&&this.points_[r+2]>t;)r-=3;var n=this.points_[e+2]-this.points_[r+2];if(n<1e3/60)return!1;var i=this.points_[e]-this.points_[r],o=this.points_[e+1]-this.points_[r+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/n,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}();var K=r(7771),W=r(1597),H=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Y="trackpad",Z="wheel";const q=function(t){function e(e){var r=this,n=e||{};(r=t.call(this,n)||this).totalDelta_=0,r.lastDelta_=0,r.maxDelta_=void 0!==n.maxDelta?n.maxDelta:1,r.duration_=void 0!==n.duration?n.duration:250,r.timeout_=void 0!==n.timeout?n.timeout:80,r.useAnchor_=void 0===n.useAnchor||n.useAnchor,r.constrainResolution_=void 0!==n.constrainResolution&&n.constrainResolution;var i=n.condition?n.condition:p.always;return r.condition_=n.onFocusOnly?(0,p.all)(p.focusWithTabindex,i):i,r.lastAnchor_=null,r.startTime_=void 0,r.timeoutId_,r.mode_=void 0,r.trackpadEventGap_=400,r.trackpadTimeoutId_,r.deltaPerZoom_=300,r}return H(e,t),e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap();t&&t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;if(t.type!==F.A.WHEEL)return!0;var e,r=t.map,n=t.originalEvent;if(n.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==F.A.WHEEL&&(e=n.deltaY,K._p&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=K.cr),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)),0===e)return!1;this.lastDelta_=e;var i=Date.now();void 0===this.startTime_&&(this.startTime_=i),(!this.mode_||i-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(e)<4?Y:Z);var o=r.getView();if(this.mode_===Y&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-e/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=i,!1;this.totalDelta_+=e;var a=Math.max(this.timeout_-(i-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,r),a),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var r=-(0,W.qE)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(r=r?r>0?1:-1:0),(0,o.D2)(e,r,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(o.Ay);var $=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const J=function(t){function e(e){var r=this,n=e||{},i=n;return i.stopDown||(i.stopDown=f.W8),(r=t.call(this,i)||this).anchor_=null,r.lastAngle_=void 0,r.rotating_=!1,r.rotationDelta_=0,r.threshold_=void 0!==n.threshold?n.threshold:.3,r.duration_=void 0!==n.duration?n.duration:250,r}return $(e,t),e.prototype.handleDragEvent=function(t){var e=0,r=this.targetPointers[0],n=this.targetPointers[1],i=Math.atan2(n.clientY-r.clientY,n.clientX-r.clientX);if(void 0!==this.lastAngle_){var o=i-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=i;var a=t.map,s=a.getView();if(s.getConstraints().rotation!==m.b8){var l=a.getViewport().getBoundingClientRect(),u=h(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}(c);var Q=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const tt=function(t){function e(e){var r=this,n=e||{},i=n;return i.stopDown||(i.stopDown=f.W8),(r=t.call(this,i)||this).anchor_=null,r.duration_=void 0!==n.duration?n.duration:400,r.lastDistance_=void 0,r.lastScaleDelta_=1,r}return Q(e,t),e.prototype.handleDragEvent=function(t){var e=1,r=this.targetPointers[0],n=this.targetPointers[1],i=r.clientX-n.clientX,o=r.clientY-n.clientY,a=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/a),this.lastDistance_=a;var s=t.map,l=s.getView();1!=e&&(this.lastScaleDelta_=e);var u=s.getViewport().getBoundingClientRect(),c=h(this.targetPointers);c[0]-=u.left,c[1]-=u.top,this.anchor_=s.getCoordinateFromPixelInternal(c),s.render(),l.adjustResolutionInternal(e,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView(),r=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,r),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(c);var et=r(7083),rt=r(9438),nt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),it="addfeatures",ot=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.features=n,o.file=r,o.projection=i,o}return nt(e,t),e}(x.Ay);const at=function(t){function e(e){var r=this,n=e||{};(r=t.call(this,{handleEvent:f.rT})||this).on,r.once,r.un,r.readAsBuffer_=!1,r.formats_=[];for(var i=n.formatConstructors?n.formatConstructors:[],o=0,a=i.length;o<a;++o){var s=i[o];"function"==typeof s&&(s=new s),r.formats_.push(s),r.readAsBuffer_=r.readAsBuffer_||"arraybuffer"===s.getType()}return r.projection_=n.projection?(0,et.get)(n.projection):null,r.dropListenKeys_=null,r.source_=n.source||null,r.target=n.target?n.target:null,r}return nt(e,t),e.prototype.handleResult_=function(t,e){var r,n=e.target.result,i=this.getMap(),o=this.projection_;o||(o=i.getView().getProjection());for(var a=this.formats_,s=0,l=a.length;s<l;++s){var u=a[s],h=n;this.readAsBuffer_&&"arraybuffer"!==u.getType()&&(void 0===r&&(r=(new TextDecoder).decode(n)),h=r);var c=this.tryReadFeatures_(u,h,{featureProjection:o});if(c&&c.length>0){this.source_&&(this.source_.clear(),this.source_.addFeatures(c)),this.dispatchEvent(new ot(it,t,c,o));break}}},e.prototype.registerListeners_=function(){var t=this.getMap();if(t){var e=this.target?this.target:t.getViewport();this.dropListenKeys_=[(0,rt.KT)(e,F.A.DROP,this.handleDrop,this),(0,rt.KT)(e,F.A.DRAGENTER,this.handleStop,this),(0,rt.KT)(e,F.A.DRAGOVER,this.handleStop,this),(0,rt.KT)(e,F.A.DROP,this.handleStop,this)]}},e.prototype.setActive=function(e){!this.getActive()&&e&&this.registerListeners_(),this.getActive()&&!e&&this.unregisterListeners_(),t.prototype.setActive.call(this,e)},e.prototype.setMap=function(e){this.unregisterListeners_(),t.prototype.setMap.call(this,e),this.getActive()&&this.registerListeners_()},e.prototype.tryReadFeatures_=function(t,e,r){try{return t.readFeatures(e,r)}catch(t){return null}},e.prototype.unregisterListeners_=function(){this.dropListenKeys_&&(this.dropListenKeys_.forEach(rt.JH),this.dropListenKeys_=null)},e.prototype.handleDrop=function(t){for(var e=t.dataTransfer.files,r=0,n=e.length;r<n;++r){var i=e.item(r),o=new FileReader;o.addEventListener(F.A.LOAD,this.handleResult_.bind(this,i)),this.readAsBuffer_?o.readAsArrayBuffer(i):o.readAsText(i)}},e.prototype.handleStop=function(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"},e}(o.Ay);var st=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const lt=function(t){function e(e){var r=this,n=e||{};return(r=t.call(this,n)||this).condition_=n.condition?n.condition:p.shiftKeyOnly,r.lastAngle_=void 0,r.lastMagnitude_=void 0,r.lastScaleDelta_=0,r.duration_=void 0!==n.duration?n.duration:400,r}return st(e,t),e.prototype.handleDragEvent=function(t){if((0,p.mouseOnly)(t)){var e=t.map,r=e.getSize(),n=t.pixel,i=n[0]-r[0]/2,o=r[1]/2-n[1],a=Math.atan2(o,i),s=Math.sqrt(i*i+o*o),l=e.getView();if(void 0!==this.lastAngle_){var u=this.lastAngle_-a;l.adjustRotationInternal(u)}this.lastAngle_=a,void 0!==this.lastMagnitude_&&l.adjustResolutionInternal(this.lastMagnitude_/s),void 0!==this.lastMagnitude_&&(this.lastScaleDelta_=this.lastMagnitude_/s),this.lastMagnitude_=s}},e.prototype.handleUpEvent=function(t){if(!(0,p.mouseOnly)(t))return!0;var e=t.map.getView(),r=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,r),this.lastScaleDelta_=0,!1},e.prototype.handleDownEvent=function(t){return!!(0,p.mouseOnly)(t)&&(!!this.condition_(t)&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0))},e}(c);var ut=r(4974),ht=r(6717),ct=r(9052),ft=r(2187),pt=r(1217),dt=r(277),gt=r(6702),_t=r(503),yt=r(3123),mt=r(4294),vt=r(3346),wt=r(731),xt=r(915),bt=r(9276),Et=r(2096),At=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),St="Point",Ct="LineString",Tt="Polygon",Pt="Circle",It="drawstart",Ot="drawend",Rt="drawabort",Lt=function(t){function e(e,r){var n=t.call(this,e)||this;return n.feature=r,n}return At(e,t),e}(x.Ay);const kt=function(t){function e(e){var r=this,n=e;n.stopDown||(n.stopDown=f.W8),(r=t.call(this,n)||this).on,r.once,r.un,r.shouldHandle_=!1,r.downPx_=null,r.downTimeout_,r.lastDragTime_,r.pointerType_,r.freehand_=!1,r.source_=e.source?e.source:null,r.features_=e.features?e.features:null,r.snapTolerance_=e.snapTolerance?e.snapTolerance:12,r.type_=e.type,r.mode_=function(t){switch(t){case"Point":case"MultiPoint":return St;case"LineString":case"MultiLineString":return Ct;case"Polygon":case"MultiPolygon":return Tt;case"Circle":return Pt;default:throw new Error("Invalid type: "+t)}}(r.type_),r.stopClick_=!!e.stopClick,r.minPoints_=e.minPoints?e.minPoints:r.mode_===Tt?3:2,r.maxPoints_=r.mode_===Pt?2:e.maxPoints?e.maxPoints:1/0,r.finishCondition_=e.finishCondition?e.finishCondition:f.rT,r.geometryLayout_=e.geometryLayout?e.geometryLayout:ct.A.XY;var i,o=e.geometryFunction;if(!o){var a,s=r.mode_;if(s===Pt)o=function(t,e,r){var n=e||new ut.A([NaN,NaN]),i=(0,et.fromUserCoordinate)(t[0],r),o=(0,g.hG)(i,(0,et.fromUserCoordinate)(t[t.length-1],r));n.setCenterAndRadius(i,Math.sqrt(o),this.geometryLayout_);var a=(0,et.getUserProjection)();return a&&n.transform(r,a),n};else s===St?a=mt.A:s===Ct?a=pt.A:s===Tt&&(a=E.Ay),o=function(t,e,r){return e?s===Tt?t[0].length?e.setCoordinates([t[0].concat([t[0][0]])],this.geometryLayout_):e.setCoordinates([],this.geometryLayout_):e.setCoordinates(t,this.geometryLayout_):e=new a(t,this.geometryLayout_),e}}return r.geometryFunction_=o,r.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,r.finishCoordinate_=null,r.sketchFeature_=null,r.sketchPoint_=null,r.sketchCoords_=null,r.sketchLine_=null,r.sketchLineCoords_=null,r.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,r.overlay_=new vt.A({source:new wt.A({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:(i=(0,bt.mY)(),function(t,e){return i[t.getGeometry().getType()]}),updateWhileInteracting:!0}),r.geometryName_=e.geometryName,r.condition_=e.condition?e.condition:p.noModifierKeys,r.freehandCondition_,e.freehand?r.freehandCondition_=p.always:r.freehandCondition_=e.freehandCondition?e.freehandCondition:p.shiftKeyOnly,r.addChangeListener(ft.A.ACTIVE,r.updateState_),r}return At(e,t),e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),this.updateState_()},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleEvent=function(e){e.originalEvent.type===F.A.CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!==St&&this.freehandCondition_(e);var r=e.type===a.A.POINTERMOVE,n=!0;!this.freehand_&&this.lastDragTime_&&e.type===a.A.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,r=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0));return this.freehand_&&e.type===a.A.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),n=!1):this.freehand_&&e.type===a.A.POINTERDOWN?n=!1:r&&this.getPointerCount()<2?(n=e.type===a.A.POINTERMOVE)&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===a.A.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e):e.type===a.A.DBLCLICK&&(n=!1),t.prototype.handleEvent.call(this,e)&&n},e.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t.coordinate),!0):this.condition_(t)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new dt.A(a.A.POINTERMOVE,t.map,t.originalEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)},e.prototype.handleUpEvent=function(t){var e=!0;if(0===this.getPointerCount())if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t),this.shouldHandle_){var r=!this.finishCoordinate_;r&&this.startDrawing_(t.coordinate),!r&&this.freehand_?this.finishDrawing():this.freehand_||r&&this.mode_!==St||(this.atFinish_(t.pixel)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t.coordinate)),e=!1}else this.freehand_&&this.abortDrawing();return!e&&this.stopClick_&&t.preventDefault(),e},e.prototype.handlePointerMove_=function(t){if(this.pointerType_=t.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var e=this.downPx_,r=t.pixel,n=e[0]-r[0],i=e[1]-r[1],o=n*n+i*i;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(t.coordinate):this.createOrUpdateSketchPoint_(t.coordinate.slice())},e.prototype.atFinish_=function(t){var e=!1;if(this.sketchFeature_){var r=!1,n=[this.finishCoordinate_],i=this.mode_;if(i===St)e=!0;else if(i===Pt)e=2===this.sketchCoords_.length;else if(i===Ct)r=this.sketchCoords_.length>this.minPoints_;else if(i===Tt){var o=this.sketchCoords_;r=o[0].length>this.minPoints_,n=[o[0][0],o[0][o[0].length-2]]}if(r)for(var a=this.getMap(),s=0,l=n.length;s<l;s++){var u=n[s],h=a.getPixelFromCoordinate(u),c=t[0]-h[0],f=t[1]-h[1],p=this.freehand_?1:this.snapTolerance_;if(e=Math.sqrt(c*c+f*f)<=p){this.finishCoordinate_=u;break}}}return e},e.prototype.createOrUpdateSketchPoint_=function(t){this.sketchPoint_?this.sketchPoint_.getGeometry().setCoordinates(t):(this.sketchPoint_=new ht.A(new mt.A(t)),this.updateSketchFeatures_())},e.prototype.createOrUpdateCustomSketchLine_=function(t){this.sketchLine_||(this.sketchLine_=new ht.A);var e=t.getLinearRing(0),r=this.sketchLine_.getGeometry();r?(r.setFlatCoordinates(e.getLayout(),e.getFlatCoordinates()),r.changed()):(r=new pt.A(e.getFlatCoordinates(),e.getLayout()),this.sketchLine_.setGeometry(r))},e.prototype.startDrawing_=function(t){for(var e=this.getMap().getView().getProjection(),r=(0,Et.dn)(this.geometryLayout_);t.length<r;)t.push(0);this.finishCoordinate_=t,this.mode_===St?this.sketchCoords_=t.slice():this.mode_===Tt?(this.sketchCoords_=[[t.slice(),t.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[t.slice(),t.slice()],this.sketchLineCoords_&&(this.sketchLine_=new ht.A(new pt.A(this.sketchLineCoords_)));var n=this.geometryFunction_(this.sketchCoords_,void 0,e);this.sketchFeature_=new ht.A,this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(n),this.updateSketchFeatures_(),this.dispatchEvent(new Lt(It,this.sketchFeature_))},e.prototype.modifyDrawing_=function(t){for(var e,r,n=this.getMap(),i=this.sketchFeature_.getGeometry(),o=n.getView().getProjection(),a=(0,Et.dn)(this.geometryLayout_);t.length<a;)t.push(0);(this.mode_===St?r=this.sketchCoords_:this.mode_===Tt?(r=(e=this.sketchCoords_[0])[e.length-1],this.atFinish_(n.getPixelFromCoordinate(t))&&(t=this.finishCoordinate_.slice())):r=(e=this.sketchCoords_)[e.length-1],r[0]=t[0],r[1]=t[1],this.geometryFunction_(this.sketchCoords_,i,o),this.sketchPoint_)&&this.sketchPoint_.getGeometry().setCoordinates(t);if("Polygon"===i.getType()&&this.mode_!==Tt)this.createOrUpdateCustomSketchLine_(i);else if(this.sketchLineCoords_){this.sketchLine_.getGeometry().setCoordinates(this.sketchLineCoords_)}this.updateSketchFeatures_()},e.prototype.addToDrawing_=function(t){var e,r,n=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),o=this.mode_;o===Ct||o===Pt?(this.finishCoordinate_=t.slice(),(r=this.sketchCoords_).length>=this.maxPoints_&&(this.freehand_?r.pop():e=!0),r.push(t.slice()),this.geometryFunction_(r,n,i)):o===Tt&&((r=this.sketchCoords_[0]).length>=this.maxPoints_&&(this.freehand_?r.pop():e=!0),r.push(t.slice()),e&&(this.finishCoordinate_=r[0]),this.geometryFunction_(this.sketchCoords_,n,i)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),e&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t,e=this.sketchFeature_.getGeometry(),r=this.getMap().getView().getProjection(),n=this.mode_;if(n===Ct||n===Pt){if((t=this.sketchCoords_).splice(-2,1),t.length>=2){this.finishCoordinate_=t[t.length-2].slice();var i=this.finishCoordinate_.slice();t[t.length-1]=i,this.createOrUpdateSketchPoint_(i)}this.geometryFunction_(t,e,r),"Polygon"===e.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(e)}else if(n===Tt){(t=this.sketchCoords_[0]).splice(-2,1);var o=this.sketchLine_.getGeometry();if(t.length>=2){i=t[t.length-2].slice();t[t.length-1]=i,this.createOrUpdateSketchPoint_(i)}o.setCoordinates(t),this.geometryFunction_(this.sketchCoords_,e,r)}1===t.length&&this.abortDrawing(),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var e=this.sketchCoords_,r=t.getGeometry(),n=this.getMap().getView().getProjection();this.mode_===Ct?(e.pop(),this.geometryFunction_(e,r,n)):this.mode_===Tt&&(e[0].pop(),this.geometryFunction_(e,r,n),e=r.getCoordinates()),"MultiPoint"===this.type_?t.setGeometry(new _t.A([e])):"MultiLineString"===this.type_?t.setGeometry(new gt.A([e])):"MultiPolygon"===this.type_&&t.setGeometry(new yt.A([e])),this.dispatchEvent(new Lt(Ot,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},e.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),t},e.prototype.abortDrawing=function(){var t=this.abortDrawing_();t&&this.dispatchEvent(new Lt(Rt,t))},e.prototype.appendCoordinates=function(t){var e,r=this.mode_,n=!this.sketchFeature_;if(n&&this.startDrawing_(t[0]),r===Ct||r===Pt)e=this.sketchCoords_;else{if(r!==Tt)return;e=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}n&&e.shift(),e.pop();for(var i=0;i<t.length;i++)this.addToDrawing_(t[i]);var o=t[t.length-1];this.addToDrawing_(o),this.modifyDrawing_(o)},e.prototype.extend=function(t){var e=t.getGeometry();this.sketchFeature_=t,this.sketchCoords_=e.getCoordinates();var r=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=r.slice(),this.sketchCoords_.push(r.slice()),this.sketchPoint_=new ht.A(new mt.A(r)),this.updateSketchFeatures_(),this.dispatchEvent(new Lt(It,this.sketchFeature_))},e.prototype.updateSketchFeatures_=function(){var t=[];this.sketchFeature_&&t.push(this.sketchFeature_),this.sketchLine_&&t.push(this.sketchLine_),this.sketchPoint_&&t.push(this.sketchPoint_);var e=this.overlay_.getSource();e.clear(!0),e.addFeatures(t)},e.prototype.updateState_=function(){var t=this.getMap(),e=this.getActive();t&&e||this.abortDrawing(),this.overlay_.setMap(e?t:null)},e}(c);var Mt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ft="extentchanged",Dt=function(t){function e(e){var r=t.call(this,Ft)||this;return r.extent=e,r}return Mt(e,t),e}(x.Ay);function jt(){var t=(0,bt.mY)();return function(e,r){return t.Point}}function Ut(t){return function(e){return(0,xt.boundingExtent)([t,e])}}function Gt(t,e){return t[0]==e[0]?function(r){return(0,xt.boundingExtent)([t,[r[0],e[1]]])}:t[1]==e[1]?function(r){return(0,xt.boundingExtent)([t,[e[0],r[1]]])}:null}const Nt=function(t){function e(e){var r,n=this,i=e||{};return(n=t.call(this,i)||this).on,n.once,n.un,n.condition_=i.condition?i.condition:p.always,n.extent_=null,n.pointerHandler_=null,n.pixelTolerance_=void 0!==i.pixelTolerance?i.pixelTolerance:10,n.snappedToVertex_=!1,n.extentFeature_=null,n.vertexFeature_=null,e||(e={}),n.extentOverlay_=new vt.A({source:new wt.A({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.boxStyle?e.boxStyle:(r=(0,bt.mY)(),function(t,e){return r.Polygon}),updateWhileAnimating:!0,updateWhileInteracting:!0}),n.vertexOverlay_=new vt.A({source:new wt.A({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.pointerStyle?e.pointerStyle:jt(),updateWhileAnimating:!0,updateWhileInteracting:!0}),e.extent&&n.setExtent(e.extent),n}return Mt(e,t),e.prototype.snapToVertex_=function(t,e){var r=e.getCoordinateFromPixelInternal(t),n=this.getExtentInternal();if(n){var i=function(t){return[[[t[0],t[1]],[t[0],t[3]]],[[t[0],t[3]],[t[2],t[3]]],[[t[2],t[3]],[t[2],t[1]]],[[t[2],t[1]],[t[0],t[1]]]]}(n);i.sort((function(t,e){return(0,g.$x)(r,t)-(0,g.$x)(r,e)}));
8var o=i[0],a=(0,g.sG)(r,o),s=e.getPixelFromCoordinateInternal(a);if((0,g.Io)(t,s)<=this.pixelTolerance_){var l=e.getPixelFromCoordinateInternal(o[0]),u=e.getPixelFromCoordinateInternal(o[1]),h=(0,g.hG)(s,l),c=(0,g.hG)(s,u),f=Math.sqrt(Math.min(h,c));return this.snappedToVertex_=f<=this.pixelTolerance_,this.snappedToVertex_&&(a=h>c?o[1]:o[0]),a}}return null},e.prototype.handlePointerMove_=function(t){var e=t.pixel,r=t.map,n=this.snapToVertex_(e,r);n||(n=r.getCoordinateFromPixelInternal(e)),this.createOrUpdatePointerFeature_(n)},e.prototype.createOrUpdateExtentFeature_=function(t){var e=this.extentFeature_;return e?t?e.setGeometry((0,E.VY)(t)):e.setGeometry(void 0):(e=t?new ht.A((0,E.VY)(t)):new ht.A({}),this.extentFeature_=e,this.extentOverlay_.getSource().addFeature(e)),e},e.prototype.createOrUpdatePointerFeature_=function(t){var e=this.vertexFeature_;e?e.getGeometry().setCoordinates(t):(e=new ht.A(new mt.A(t)),this.vertexFeature_=e,this.vertexOverlay_.getSource().addFeature(e));return e},e.prototype.handleEvent=function(e){return!e.originalEvent||!this.condition_(e)||(e.type!=a.A.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),t.prototype.handleEvent.call(this,e),!1)},e.prototype.handleDownEvent=function(t){var e=t.pixel,r=t.map,n=this.getExtentInternal(),i=this.snapToVertex_(e,r),o=function(t){var e=null,r=null;return t[0]==n[0]?e=n[2]:t[0]==n[2]&&(e=n[0]),t[1]==n[1]?r=n[3]:t[1]==n[3]&&(r=n[1]),null!==e&&null!==r?[e,r]:null};if(i&&n){var a=i[0]==n[0]||i[0]==n[2]?i[0]:null,s=i[1]==n[1]||i[1]==n[3]?i[1]:null;null!==a&&null!==s?this.pointerHandler_=Ut(o(i)):null!==a?this.pointerHandler_=Gt(o([a,n[1]]),o([a,n[3]])):null!==s&&(this.pointerHandler_=Gt(o([n[0],s]),o([n[2],s])))}else i=r.getCoordinateFromPixelInternal(e),this.setExtent([i[0],i[1],i[0],i[1]]),this.pointerHandler_=Ut(i);return!0},e.prototype.handleDragEvent=function(t){if(this.pointerHandler_){var e=t.coordinate;this.setExtent(this.pointerHandler_(e)),this.createOrUpdatePointerFeature_(e)}},e.prototype.handleUpEvent=function(t){this.pointerHandler_=null;var e=this.getExtentInternal();return e&&0!==(0,xt.getArea)(e)||this.setExtent(null),!1},e.prototype.setMap=function(e){this.extentOverlay_.setMap(e),this.vertexOverlay_.setMap(e),t.prototype.setMap.call(this,e)},e.prototype.getExtent=function(){return(0,et.toUserExtent)(this.getExtentInternal(),this.getMap().getView().getProjection())},e.prototype.getExtentInternal=function(){return this.extent_},e.prototype.setExtent=function(t){this.extent_=t||null,this.createOrUpdateExtentFeature_(t),this.dispatchEvent(new Dt(this.extent_))},e}(c);var Bt=r(2135),zt=r(5902),Vt=r(8280),Xt=r(6514),Kt=r(4087),Wt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ht=[0,0,0,0],Yt=[],Zt="modifystart",qt="modifyend",$t=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.features=r,i.mapBrowserEvent=n,i}return Wt(e,t),e}(x.Ay);function Jt(t,e){return t.index-e.index}function Qt(t,e,r){var n=e.geometry;if("Circle"===n.getType()){var i=n;if(1===e.index){var o=(0,et.getUserProjection)();o&&(i=i.clone().transform(o,r));var a=(0,g.hG)(i.getCenter(),(0,et.fromUserCoordinate)(t,r)),s=Math.sqrt(a)-i.getRadius();return s*s}}var l=(0,et.fromUserCoordinate)(t,r);return Yt[0]=(0,et.fromUserCoordinate)(e.segment[0],r),Yt[1]=(0,et.fromUserCoordinate)(e.segment[1],r),(0,g.$x)(l,Yt)}function te(t,e,r){var n=e.geometry;if("Circle"===n.getType()&&1===e.index){var i=n,o=(0,et.getUserProjection)();return o&&(i=i.clone().transform(o,r)),(0,et.toUserCoordinate)(i.getClosestPoint((0,et.fromUserCoordinate)(t,r)),r)}var a=(0,et.fromUserCoordinate)(t,r);return Yt[0]=(0,et.fromUserCoordinate)(e.segment[0],r),Yt[1]=(0,et.fromUserCoordinate)(e.segment[1],r),(0,et.toUserCoordinate)((0,g.sG)(a,Yt),r)}const ee=function(t){function e(e){var r,n,o=t.call(this,e)||this;if(o.on,o.once,o.un,o.boundHandleFeatureChange_=o.handleFeatureChange_.bind(o),o.condition_=e.condition?e.condition:p.primaryAction,o.defaultDeleteCondition_=function(t){return(0,p.altKeyOnl
vendor: 14,200 bytes, line 8
8y)(t)&&(0,p.singleClick)(t)},o.deleteCondition_=e.deleteCondition?e.deleteCondition:o.defaultDeleteCondition_,o.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:p.always,o.vertexFeature_=null,o.vertexSegments_=null,o.lastPixel_=[0,0],o.ignoreNextSingleClick_=!1,o.featuresBeingModified_=null,o.rBush_=new zt.A,o.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,o.snappedToVertex_=!1,o.changingFeature_=!1,o.dragSegments_=[],o.overlay_=new vt.A({source:new wt.A({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:(r=(0,bt.mY)(),function(t,e){return r.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0}),o.SEGMENT_WRITERS_={Point:o.writePointGeometry_.bind(o),LineString:o.writeLineStringGeometry_.bind(o),LinearRing:o.writeLineStringGeometry_.bind(o),Polygon:o.writePolygonGeometry_.bind(o),MultiPoint:o.writeMultiPointGeometry_.bind(o),MultiLineString:o.writeMultiLineStringGeometry_.bind(o),MultiPolygon:o.writeMultiPolygonGeometry_.bind(o),Circle:o.writeCircleGeometry_.bind(o),GeometryCollection:o.writeGeometryCollectionGeometry_.bind(o)},o.source_=null,o.hitDetection_=null,e.features?n=e.features:e.source&&(o.source_=e.source,n=new i.A(o.source_.getFeatures()),o.source_.addEventListener(Vt.A.ADDFEATURE,o.handleSourceAdd_.bind(o)),o.source_.addEventListener(Vt.A.REMOVEFEATURE,o.handleSourceRemove_.bind(o))),!n)throw new Error("The modify interaction requires features, a source or a layer");return e.hitDetection&&(o.hitDetection_=e.hitDetection),o.features_=n,o.features_.forEach(o.addFeature_.bind(o)),o.features_.addEventListener(Bt.A.ADD,o.handleFeatureAdd_.bind(o)),o.features_.addEventListener(Bt.A.REMOVE,o.handleFeatureRemove_.bind(o)),o.lastPointerEvent_=null,o.delta_=[0,0],o.snapToPointer_=void 0===e.snapToPointer?!o.hitDetection_:e.snapToPointer,o}return Wt(e,t),e.prototype.addFeature_=function(t){var e=t.getGeometry();if(e){var r=this.SEGMENT_WRITERS_[e.getType()];r&&r(t,e)}var n=this.getMap();n&&n.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,n),t.addEventListener(F.A.CHANGE,this.boundHandleFeatureChange_)},e.prototype.willModifyFeatures_=function(t,e){if(!this.featuresBeingModified_){this.featuresBeingModified_=new i.A;for(var r=this.featuresBeingModified_.getArray(),n=0,o=e.length;n<o;++n)for(var a=e[n],s=0,l=a.length;s<l;++s){var u=a[s].feature;u&&-1===r.indexOf(u)&&this.featuresBeingModified_.push(u)}0===this.featuresBeingModified_.getLength()?this.featuresBeingModified_=null:this.dispatchEvent(new $t(Zt,this.featuresBeingModified_,t))}},e.prototype.removeFeature_=function(t){this.removeFeatureSegmentData_(t),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.removeEventListener(F.A.CHANGE,this.boundHandleFeatureChange_)},e.prototype.removeFeatureSegmentData_=function(t){var e=this.rBush_,r=[];e.forEach((function(e){t===e.feature&&r.push(e)}));for(var n=r.length-1;n>=0;--n){for(var i=r[n],o=this.dragSegments_.length-1;o>=0;--o)this.dragSegments_[o][0]===i&&this.dragSegments_.splice(o,1);e.remove(i)}},e.prototype.setActive=function(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.prototype.setActive.call(this,e)},e.prototype.setMap=function(e){this.overlay_.setMap(e),t.prototype.setMap.call(this,e)},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleSourceAdd_=function(t){t.feature&&this.features_.push(t.feature)},e.prototype.handleSourceRemove_=function(t){t.feature&&this.features_.remove(t.feature)},e.prototype.handleFeatureAdd_=function(t){this.addFeature_(t.element)},e.prototype.handleFeatureChange_=function(t){if(!this.changingFeature_){var e=t.target;this.removeFeature_(e),this.addFeature_(e)}},e.prototype.handleFeatureRemove_=function(t){var e=t.element;this.removeFeature_(e)},e.prototype.writePointGeometry_=function(t,e){var r=e.getCoordinates(),n={feature:t,geometry:e,segment:[r,r]};this.rBush_.insert(e.getExtent(),n)},e.prototype.writeMultiPointGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n){var o=r[n],a={feature:t,geometry:e,depth:[n],index:n,segment:[o,o]};this.rBush_.insert(e.getExtent(),a)}},e.prototype.writeLineStringGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length-1;n<i;++n){var o=r.slice(n,n+2),a={feature:t,geometry:e,index:n,segment:o};this.rBush_.insert((0,xt.boundingExtent)(o),a)}},e.prototype.writeMultiLineStringGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),u={feature:t,geometry:e,depth:[n],index:a,segment:l};this.rBush_.insert((0,xt.boundingExtent)(l),u)}},e.prototype.writePolygonGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),u={feature:t,geometry:e,depth:[n],index:a,segment:l};this.rBush_.insert((0,xt.boundingExtent)(l),u)}},e.prototype.writeMultiPolygonGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length;a<s;++a)for(var l=o[a],u=0,h=l.length-1;u<h;++u){var c=l.slice(u,u+2),f={feature:t,geometry:e,depth:[a,n],index:u,segment:c};this.rBush_.insert((0,xt.boundingExtent)(c),f)}},e.prototype.writeCircleGeometry_=function(t,e){var r=e.getCenter(),n={feature:t,geometry:e,index:0,segment:[r,r]},i={feature:t,geometry:e,index:1,segment:[r,r]},o=[n,i];n.featureSegments=o,i.featureSegments=o,this.rBush_.insert((0,xt.createOrUpdateFromCoordinate)(r),n);var a=e,s=(0,et.getUserProjection)();if(s&&this.getMap()){var l=this.getMap().getView().getProjection();a=a.clone().transform(s,l),a=(0,E.nD)(a).transform(l,s)}this.rBush_.insert(a.getExtent(),i)},e.prototype.writeGeometryCollectionGeometry_=function(t,e){for(var r=e.getGeometriesArray(),n=0;n<r.length;++n){var i=r[n];(0,this.SEGMENT_WRITERS_[i.getType()])(t,i)}},e.prototype.createOrUpdateVertexFeature_=function(t,e,r){var n=this.vertexFeature_;n?n.getGeometry().setCoordinates(t):(n=new ht.A(new mt.A(t)),this.vertexFeature_=n,this.overlay_.getSource().addFeature(n));return n.set("features",e),n.set("geometries",r),n},e.prototype.handleEvent=function(e){return!e.originalEvent||(this.lastPointerEvent_=e,e.map.getView().getInteracting()||e.type!=a.A.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),this.vertexFeature_&&this.deleteCondition_(e)&&(r=!(e.type!=a.A.SINGLECLICK||!this.ignoreNextSingleClick_)||this.removePoint()),e.type==a.A.SINGLECLICK&&(this.ignoreNextSingleClick_=!1),t.prototype.handleEvent.call(this,e)&&!r);var r},e.prototype.handleDragEvent=function(t){this.ignoreNextSingleClick_=!1,this.willModifyFeatures_(t,this.dragSegments_);for(var e=[t.coordinate[0]+this.delta_[0],t.coordinate[1]+this.delta_[1]],r=[],n=[],i=0,o=this.dragSegments_.length;i<o;++i){var a=this.dragSegments_[i],s=a[0],l=s.feature;-1===r.indexOf(l)&&r.push(l);var u=s.geometry;-1===n.indexOf(u)&&n.push(u);for(var h=s.depth,c=void 0,f=s.segment,p=a[1];e.length<u.getStride();)e.push(f[p][e.length]);switch(u.getType()){case"Point":c=e,f[0]=e,f[1]=e;break;case"MultiPoint":(c=u.getCoordinates())[s.index]=e,f[0]=e,f[1]=e;break;case"LineString":(c=u.getCoordinates())[s.index+p]=e,f[p]=e;break;case"MultiLineString":case"Polygon":(c=u.getCoordinates())[h[0]][s.index+p]=e,f[p]=e;break;case"MultiPolygon":(c=u.getCoordinates())[h[1]][h[0]][s.index+p]=e,f[p]=e;break;case"Circle":if(f[0]=e,f[1]=e,0===s.index)this.changingFeature_=!0,u.setCenter(e),this.changingFeature_=!1;else{this.changingFeature_=!0;var d=t.map.getView().getProjection(),_=(0,g.Io)((0,et.fromUserCoordinate)(u.getCenter(),d),(0,et.fromUserCoordinate)(e,d)),y=(0,et.getUserProjection)();if(y){var m=u.clone().transform(y,d);m.setRadius(_),_=m.transform(d,y).getRadius()}u.setRadius(_),this.changingFeature_=!1}}c&&this.setGeometryCoordinates_(u,c)}this.createOrUpdateVertexFeature_(e,r,n)},e.prototype.handleDownEvent=function(t){if(!this.condition_(t))return!1;var e=t.coordinate;this.handlePointerAtPixel_(t.pixel,t.map,e),this.dragSegments_.length=0,this.featuresBeingModified_=null;var r=this.vertexFeature_;if(r){var n=t.map.getView().getProjection(),i=[],o=r.getGeometry().getCoordinates(),a=(0,xt.boundingExtent)([o]),s=this.rBush_.getInExtent(a),l={};s.sort(Jt);for(var u=0,h=s.length;u<h;++u){var c=s[u],f=c.segment,p=(0,Kt.v6)(c.geometry),d=c.depth;if(d&&(p+="-"+d.join("-")),l[p]||(l[p]=new Array(2)),"Circle"!==c.geometry.getType()||1!==c.index)if(!(0,g.aI)(f[0],o)||l[p][0])if(!(0,g.aI)(f[1],o)||l[p][1])(0,Kt.v6)(f)in this.vertexSegments_&&!l[p][0]&&!l[p][1]&&this.insertVertexCondition_(t)&&i.push(c);else{if(l[p][0]&&0===l[p][0].index){var _=c.geometry.getCoordinates();switch(c.geometry.getType()){case"LineString":case"MultiLineString":continue;case"MultiPolygon":_=_[d[1]];case"Polygon":if(c.index!==_[d[0]].length-2)continue}}this.dragSegments_.push([c,1]),l[p][1]=c}else this.dragSegments_.push([c,0]),l[p][0]=c;else{var y=te(e,c,n);(0,g.aI)(y,o)&&!l[p][0]&&(this.dragSegments_.push([c,0]),l[p][0]=c)}}i.length&&this.willModifyFeatures_(t,[i]);for(var m=i.length-1;m>=0;--m)this.insertVertex_(i[m],o)}return!!this.vertexFeature_},e.prototype.handleUpEvent=function(t){for(var e=this.dragSegments_.length-1;e>=0;--e){var r=this.dragSegments_[e][0],n=r.geometry;if("Circle"===n.getType()){var i=n.getCenter(),o=r.featureSegments[0],a=r.featureSegments[1];o.segment[0]=i,o.segment[1]=i,a.segment[0]=i,a.segment[1]=i,this.rBush_.update((0,xt.createOrUpdateFromCoordinate)(i),o);var s=n,l=(0,et.getUserProjection)();if(l){var u=t.map.getView().getProjection();s=s.clone().transform(l,u),s=(0,E.nD)(s).transform(u,l)}this.rBush_.update(s.getExtent(),a)}else this.rBush_.update((0,xt.boundingExtent)(r.segment),r)}return this.featuresBeingModified_&&(this.dispatchEvent(new $t(qt,this.featuresBeingModified_,t)),this.featuresBeingModified_=null),!1},e.prototype.handlePointerMove_=function(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map,t.coordinate)},e.prototype.handlePointerAtPixel_=function(t,e,r){var n,i,o=this,a=r||e.getCoordinateFromPixel(t),s=e.getView().getProjection();if(this.hitDetection_){var l="object"==typeof this.hitDetection_?function(t){return t===o.hitDetection_}:void 0;e.forEachFeatureAtPixel(t,(function(t,e,r){if("Point"===(r=r||t.getGeometry()).getType()&&(0,Xt.mK)(o.features_.getArray(),t)){i=r;var a=r.getFlatCoordinates().slice(0,2);n=[{feature:t,geometry:r,segment:[a,a]}]}return!0}),{layerFilter:l})}if(!n){var u=(0,et.fromUserExtent)((0,xt.createOrUpdateFromCoordinate)(a,Ht),s),h=e.getView().getResolution()*this.pixelTolerance_,c=(0,et.toUserExtent)((0,xt.buffer)(u,h,Ht),s);n=this.rBush_.getInExtent(c)}if(n&&n.length>0){var f=n.sort((function(t,e){return Qt(a,t,s)-Qt(a,e,s)}))[0],p=f.segment,d=te(a,f,s),_=e.getPixelFromCoordinate(d),y=(0,g.Io)(t,_);if(i||y<=this.pixelTolerance_){var m={};if(m[(0,Kt.v6)(p)]=!0,this.snapToPointer_||(this.delta_[0]=d[0]-a[0],this.delta_[1]=d[1]-a[1]),"Circle"===f.geometry.getType()&&1===f.index)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(d,[f.feature],[f.geometry]);else{var v=e.getPixelFromCoordinate(p[0]),w=e.getPixelFromCoordinate(p[1]),x=(0,g.hG)(_,v),b=(0,g.hG)(_,w);y=Math.sqrt(Math.min(x,b)),this.snappedToVertex_=y<=this.pixelTolerance_,this.snappedToVertex_&&(d=x>b?p[1]:p[0]),this.createOrUpdateVertexFeature_(d,[f.feature],[f.geometry]);var E={};E[(0,Kt.v6)(f.geometry)]=!0;for(var A=1,S=n.length;A<S;++A){var C=n[A].segment;if(!((0,g.aI)(p[0],C[0])&&(0,g.aI)(p[1],C[1])||(0,g.aI)(p[0],C[1])&&(0,g.aI)(p[1],C[0])))break;var T=(0,Kt.v6)(n[A].geometry);T in E||(E[T]=!0,m[(0,Kt.v6)(C)]=!0)}}return void(this.vertexSegments_=m)}}this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)},e.prototype.insertVertex_=function(t,e){for(var r,n=t.segment,i=t.feature,o=t.geometry,a=t.depth,s=t.index;e.length<o.getStride();)e.push(0);switch(o.getType()){case"MultiLineString":case"Polygon":(r=o.getCoordinates())[a[0]].splice(s+1,0,e);break;case"MultiPolygon":(r=o.getCoordinates())[a[1]][a[0]].splice(s+1,0,e);break;case"LineString":(r=o.getCoordinates()).splice(s+1,0,e);break;default:return}this.setGeometryCoordinates_(o,r);var l=this.rBush_;l.remove(t),this.updateSegmentIndices_(o,s,a,1);var u={segment:[n[0],e],feature:i,geometry:o,depth:a,index:s};l.insert((0,xt.boundingExtent)(u.segment),u),this.dragSegments_.push([u,1]);var h={segment:[e,n[1]],feature:i,geometry:o,depth:a,index:s+1};l.insert((0,xt.boundingExtent)(h.segment),h),this.dragSegments_.push([h,0]),this.ignoreNextSingleClick_=!0},e.prototype.removePoint=function(){if(this.lastPointerEvent_&&this.lastPointerEvent_.type!=a.A.POINTERDRAG){var t=this.lastPointerEvent_;this.willModifyFeatures_(t,this.dragSegments_);var e=this.removeVertex_();return this.featuresBeingModified_&&this.dispatchEvent(new $t(qt,this.featuresBeingModified_,t)),this.featuresBeingModified_=null,e}return!1},e.prototype.removeVertex_=function(){var t,e,r,n,i,o,a,s,l,u,h,c=this.dragSegments_,f={},p=!1;for(i=c.length-1;i>=0;--i)u=(r=c[i])[0],h=(0,Kt.v6)(u.feature),u.depth&&(h+="-"+u.depth.join("-")),h in f||(f[h]={}),0===r[1]?(f[h].right=u,f[h].index=u.index):1==r[1]&&(f[h].left=u,f[h].index=u.index+1);for(h in f){switch(l=f[h].right,a=f[h].left,(s=(o=f[h].index)-1)<0&&(s=0),t=e=(n=(u=void 0!==a?a:l).geometry).getCoordinates(),p=!1,n.getType()){case"MultiLineString":e[u.depth[0]].length>2&&(e[u.depth[0]].splice(o,1),p=!0);break;case"LineString":e.length>2&&(e.splice(o,1),p=!0);break;case"MultiPolygon":t=t[u.depth[1]];case"Polygon":(t=t[u.depth[0]]).length>4&&(o==t.length-1&&(o=0),t.splice(o,1),p=!0,0===o&&(t.pop(),t.push(t[0]),s=t.length-1))}if(p){this.setGeometryCoordinates_(n,e);var d=[];if(void 0!==a&&(this.rBush_.remove(a),d.push(a.segment[0])),void 0!==l&&(this.rBush_.remove(l),d.push(l.segment[1])),void 0!==a&&void 0!==l){var g={depth:u.depth,feature:u.feature,geometry:u.geometry,index:s,segment:d};this.rBush_.insert((0,xt.boundingExtent)(g.segment),g)}this.updateSegmentIndices_(n,o,u.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature
8(this.vertexFeature_),this.vertexFeature_=null),c.length=0}}return p},e.prototype.setGeometryCoordinates_=function(t,e){this.changingFeature_=!0,t.setCoordinates(e),this.changingFeature_=!1},e.prototype.updateSegmentIndices_=function(t,e,r,n){this.rBush_.forEachInExtent(t.getExtent(),(function(i){i.geometry===t&&(void 0===r||void 0===i.depth||(0,Xt.aI)(i.depth,r))&&i.index>e&&(i.index+=n)}))},e}(c);var re=r(2770),ne=r(3530),ie=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function oe(t){return t.feature?t.feature:t.element?t.element:void 0}var ae=[];const se=function(t){function e(e){var r=this,n=e||{},i=n;return i.handleDownEvent||(i.handleDownEvent=f.rT),i.stopDown||(i.stopDown=f.W8),(r=t.call(this,i)||this).source_=n.source?n.source:null,r.vertex_=void 0===n.vertex||n.vertex,r.edge_=void 0===n.edge||n.edge,r.features_=n.features?n.features:null,r.featuresListenerKeys_=[],r.featureChangeListenerKeys_={},r.indexedFeaturesExtents_={},r.pendingFeatures_={},r.pixelTolerance_=void 0!==n.pixelTolerance?n.pixelTolerance:10,r.rBush_=new zt.A,r.GEOMETRY_SEGMENTERS_={Point:r.segmentPointGeometry_.bind(r),LineString:r.segmentLineStringGeometry_.bind(r),LinearRing:r.segmentLineStringGeometry_.bind(r),Polygon:r.segmentPolygonGeometry_.bind(r),MultiPoint:r.segmentMultiPointGeometry_.bind(r),MultiLineString:r.segmentMultiLineStringGeometry_.bind(r),MultiPolygon:r.segmentMultiPolygonGeometry_.bind(r),GeometryCollection:r.segmentGeometryCollectionGeometry_.bind(r),Circle:r.segmentCircleGeometry_.bind(r)},r}return ie(e,t),e.prototype.addFeature=function(t,e){var r=void 0===e||e,n=(0,Kt.v6)(t),i=t.getGeometry();if(i){var o=this.GEOMETRY_SEGMENTERS_[i.getType()];if(o){this.indexedFeaturesExtents_[n]=i.getExtent((0,xt.createEmpty)());var a=[];if(o(a,i),1===a.length)this.rBush_.insert((0,xt.boundingExtent)(a[0]),{feature:t,segment:a[0]});else if(a.length>1){var s=a.map((function(t){return(0,xt.boundingExtent)(t)})),l=a.map((function(e){return{feature:t,segment:e}}));this.rBush_.load(s,l)}}}r&&(this.featureChangeListenerKeys_[n]=(0,rt.KT)(t,F.A.CHANGE,this.handleFeatureChange_,this))},e.prototype.forEachFeatureAdd_=function(t){this.addFeature(t)},e.prototype.forEachFeatureRemove_=function(t){this.removeFeature(t)},e.prototype.getFeatures_=function(){var t;return this.features_?t=this.features_:this.source_&&(t=this.source_.getFeatures()),t},e.prototype.handleEvent=function(e){var r=this.snapTo(e.pixel,e.coordinate,e.map);return r&&(e.coordinate=r.vertex.slice(0,2),e.pixel=r.vertexPixel),t.prototype.handleEvent.call(this,e)},e.prototype.handleFeatureAdd_=function(t){var e=oe(t);this.addFeature(e)},e.prototype.handleFeatureRemove_=function(t){var e=oe(t);this.removeFeature(e)},e.prototype.handleFeatureChange_=function(t){var e=t.target;if(this.handlingDownUpSequence){var r=(0,Kt.v6)(e);r in this.pendingFeatures_||(this.pendingFeatures_[r]=e)}else this.updateFeature_(e)},e.prototype.handleUpEvent=function(t){var e=(0,ne.BI)(this.pendingFeatures_);return e.length&&(e.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},e.prototype.removeFeature=function(t,e){var r=void 0===e||e,n=(0,Kt.v6)(t),i=this.indexedFeaturesExtents_[n];if(i){var o=this.rBush_,a=[];o.forEachInExtent(i,(function(e){t===e.feature&&a.push(e)}));for(var s=a.length-1;s>=0;--s)o.remove(a[s])}r&&((0,rt.JH)(this.featureChangeListenerKeys_[n]),delete this.featureChangeListenerKeys_[n])},e.prototype.setMap=function(e){var r=this.getMap(),n=this.featuresListenerKeys_,i=this.getFeatures_();r&&(n.forEach(rt.JH),n.length=0,i.forEach(this.forEachFeatureRemove_.bind(this))),t.prototype.setMap.call(this,e),e&&(this.features_?n.push((0,rt.KT)(this.features_,Bt.A.ADD,this.handleFeatureAdd_,this),(0,rt.KT)(this.features_,Bt.A.REMOVE,this.handleFeatureRemove_,this)):this.source_&&n.push((0,rt.KT)(this.source_,Vt.A.ADDFEATURE,this.handleFeatureAdd_,this),(0,rt.KT)(this.source_,Vt.A.REMOVEFEATURE,this.handleFeatureRemove_,this)),i.forEac
8h(this.forEachFeatureAdd_.bind(this)))},e.prototype.snapTo=function(t,e,r){var n=r.getCoordinateFromPixel([t[0]-this.pixelTolerance_,t[1]+this.pixelTolerance_]),i=r.getCoordinateFromPixel([t[0]+this.pixelTolerance_,t[1]-this.pixelTolerance_]),o=(0,xt.boundingExtent)([n,i]),a=this.rBush_.getInExtent(o),s=a.length;if(0===s)return null;var l,u=r.getView().getProjection(),h=(0,et.fromUserCoordinate)(e,u),c=1/0,f=this.pixelTolerance_*this.pixelTolerance_,p=function(){if(l){var e=r.getPixelFromCoordinate(l);if((0,g.hG)(t,e)<=f)return{vertex:l,vertexPixel:[Math.round(e[0]),Math.round(e[1])]}}return null};if(this.vertex_){for(var d=0;d<s;++d){"Circle"!==(_=a[d]).feature.getGeometry().getType()&&_.segment.forEach((function(t){var e=(0,et.fromUserCoordinate)(t,u),r=(0,g.hG)(h,e);r<c&&(l=t,c=r)}))}if(A=p())return A}if(this.edge_){for(d=0;d<s;++d){var _,y=null;if("Circle"===(_=a[d]).feature.getGeometry().getType()){var m=_.feature.getGeometry(),v=(0,et.getUserProjection)();v&&(m=m.clone().transform(v,u)),y=(0,et.toUserCoordinate)((0,g.hw)(h,m),u)}else{var w=_.segment,x=w[0],b=w[1];b&&(ae[0]=(0,et.fromUserCoordinate)(x,u),ae[1]=(0,et.fromUserCoordinate)(b,u),y=(0,g.sG)(h,ae))}if(y){var E=(0,g.hG)(h,y);E<c&&(l=y,c=E)}}var A;if(A=p())return A}return null},e.prototype.updateFeature_=function(t){this.removeFeature(t,!1),this.addFeature(t,!1)},e.prototype.segmentCircleGeometry_=function(t,e){var r=this.getMap().getView().getProjection(),n=e,i=(0,et.getUserProjection)();i&&(n=n.clone().transform(i,r));var o=(0,E.nD)(n);i&&o.transform(r,i);for(var a=o.getCoordinates()[0],s=0,l=a.length-1;s<l;++s)t.push(a.slice(s,s+2))},e.prototype.segmentGeometryCollectionGeometry_=function(t,e){for(var r=e.getGeometriesArray(),n=0;n<r.length;++n){var i=this.GEOMETRY_SEGMENTERS_[r[n].getType()];i&&i(t,r[n])}},e.prototype.segmentLineStringGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length-1;n<i;++n)t.push(r.slice(n,n+2))},e.prototype.segmentMultiLineStringGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length-1;a<s;++a)t.push(o.slice(a,a+2))},e.prototype.segmentMultiPointGeometry_=function(t,e){e.getCoordinates().forEac
vendor: 4,743 bytes, line 8
8h((function(e){t.push([e])}))},e.prototype.segmentMultiPolygonGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length;a<s;++a)for(var l=o[a],u=0,h=l.length-1;u<h;++u)t.push(l.slice(u,u+2))},e.prototype.segmentPointGeometry_=function(t,e){t.push([e.getCoordinates()])},e.prototype.segmentPolygonGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length-1;a<s;++a)t.push(o.slice(a,a+2))},e}(c);var le=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ue="translatestart",he="translating",ce="translateend",fe=function(t){function e(e,r,n,i,o){var a=t.call(this,e)||this;return a.features=r,a.coordinate=n,a.startCoordinate=i,a.mapBrowserEvent=o,a}return le(e,t),e}(x.Ay);const pe=function(t){function e(e){var r,n=this,i=e||{};if((n=t.call(this,i)||this).on,n.once,n.un,n.lastCoordinate_=null,n.startCoordinate_=null,n.features_=void 0!==i.features?i.features:null,i.layers&&!n.features_)if("function"==typeof i.layers)r=i.layers;else{var o=i.layers;r=function(t){return(0,Xt.mK)(o,t)}}else r=f.rT;return n.layerFilter_=r,n.filter_=i.filter&&!n.features_?i.filter:f.rT,n.hitTolerance_=i.hitTolerance?i.hitTolerance:0,n.condition_=i.condition?i.condition:p.always,n.lastFeature_=null,n.addChangeListener(ft.A.ACTIVE,n.handleActiveChanged_),n}return le(e,t),e.prototype.handleDownEvent=function(t){if(!t.originalEvent||!this.condition_(t))return!1;if(this.lastFeature_=this.featuresAtPixel_(t.pixel,t.map),!this.lastCoordinate_&&this.lastFeature_){this.startCoordinate_=t.coordinate,this.lastCoordinate_=t.coordinate,this.handleMoveEvent(t);var e=this.features_||new i.A([this.lastFeature_]);return this.dispatchEvent(new fe(ue,e,t.coordinate,this.startCoordinate_,t)),!0}return!1},e.prototype.handleUpEvent=function(t){if(this.lastCoordinate_){this.lastCoordinate_=null,this.handleMoveEvent(t);var e=this.features_||new i.A([this.lastFeature_]);return this.dispatchEvent(new fe(ce,e,t.coordinate,this.startCoordinate_,t)),this.startCoordinate_=null,!0}return!1},e.prototype.handleDragEvent=function(t){if(this.lastCoordinate_){var e=t.coordinate,r=e[0]-this.lastCoordinate_[0],n=e[1]-this.lastCoordinate_[1],o=this.features_||new i.A([this.lastFeature_]);o.forEach((function(t){var e=t.getGeometry();e.translate(r,n),t.setGeometry(e)})),this.lastCoordinate_=e,this.dispatchEvent(new fe(he,o,e,this.startCoordinate_,t))}},e.prototype.handleMoveEvent=function(t){var e=t.map.getViewport();this.featuresAtPixel_(t.pixel,t.map)?(e.classList.remove(this.lastCoordinate_?"ol-grab":"ol-grabbing"),e.classList.add(this.lastCoordinate_?"ol-grabbing":"ol-grab")):e.classList.remove("ol-grab","ol-grabbing")},e.prototype.featuresAtPixel_=function(t,e){return e.forEachFeatureAtPixel(t,function(t,e){if(this.filter_(t,e)&&(!this.features_||(0,Xt.mK)(this.features_.getArray(),t)))return t}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_})},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(e){var r=this.getMap();t.prototype.setMap.call(this,e),this.updateState_(r)},e.prototype.handleActiveChanged_=function(){this.updateState_(null)},e.prototype.updateState_=function(t){var e=this.getMap(),r=this.getActive();e&&r||(e=e||t)&&e.getViewport().classList.remove("ol-grab","ol-grabbing")},e}(c);function de(t){var e=t||{},r=new i.A,n=new X(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&r.push(new w),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&r.push(new l({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&r.push(new y({onFocusOnly:e.onFocusOnly,kinetic:n})),(void 0===e.pinchRotate||e.pinchRotate)&&r.push(new J),(void 0===e.pinchZoom||e.pinchZoom)&&r.push(new tt({duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(r.push(new B),r.push(new V({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&r.push(new q({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&r.push(new M({duration:e.zoomDuration})),r}},6292:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>h,D2:()=>u,e4:()=>l});var n,i=r(4120),o=r(2187),a=r(3474),s=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function l(t,e,r){var n=t.getCenterInternal();if(n){var i=[n[0]+e[0],n[1]+e[1]];t.animateInternal({duration:void 0!==r?r:250,easing:a.linear,center:t.getConstrainedCenter(i)})}}function u(t,e,r,n){var i=t.getZoom();if(void 0!==i){var o=t.getConstrainedZoom(i+e),s=t.getResolutionForZoom(o);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:s,anchor:r,duration:void 0!==n?n:250,easing:a.easeOut})}}const h=function(t){function e(e){var r=t.call(this)||this;return r.on,r.once,r.un,e&&e.handleEvent&&(r.handleEvent=e.handleEvent),r.map_=null,r.setActive(!0),r}return s(e,t),e.prototype.getActive=function(){return this.get(o.A.ACTIVE)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(o.A.ACTIVE,t)},e.prototype.setMap=function(t){this.map_=t},e}(i.A)},2187:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={ACTIVE:"active"}},2770:(t,e,r)=>{"use strict";r.d(e,{A:()=>v});var n,i=r(71),o=r(2135),a=r(1685),s=r(6292),l=r(3346),u=r(4238),h=r(3530),c=r(9276),f=r(6514),p=r(4087),d=r(8704),g=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),_="select",y=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.selected=r,o.deselected=n,o.mapBrowserEvent=i,o}return g(e,t),e}(a.Ay),m={};const v=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var n,o,a=e||{};if(r.boundAddFeature_=r.addFeature_.bind(r),r.boundRemoveFeature_=r.removeFeature_.bind(r),r.condition_=a.condition?a.condition:d.singleClick,r.addCondition_=a.addCondition?a.addCondition:d.never,r.removeCondition_=a.removeCondition?a.removeCondition:d.never,r.toggleCondition_=a.toggleCondition?a.toggleCondition:d.shiftKeyOnly,r.multi_=!!a.multi&&a.multi,r.filter_=a.filter?a.filter:u.rT,r.hitTolerance_=a.hitTolerance?a.hitTolerance:0,r.style_=void 0!==a.style?a.style:(n=(0,c.mY)(),(0,f.X$)(n.Polygon,n.LineString),(0,f.X$)(n.GeometryCollection,n.LineString),function(t){return t.getGeometry()?n[t.getGeometry().getType()]:null}),r.features_=a.features||new i.A,a.layers)if("function"==typeof a.layers)o=a.layers;else{var s=a.layers;o=function(t){return(0,f.mK)(s,t)}}else o=u.rT;return r.layerFilter_=o,r.featureLayerAssociation_={},r}return g(e,t),e.prototype.addFeatureLayerAssociation_=function(t,e){this.featureLayerAssociation_[(0,p.v6)(t)]=e},e.prototype.getFeatures=function(){return this.features_},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.getLayer=function(t){return this.featureLayerAssociation_[(0,p.v6)(t)]},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(e){this.getMap()&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),t.prototype.setMap.call(this,e),e?(this.features_.addEventListener(o.A.ADD,this.boundAddFeature_),this.features_.addEventListener(o.A.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(o.A.ADD,this.boundAddFeature_),this.features_.removeEventListener(o.A.REMOVE,this.boundRemoveFeature_))},e.prototype.addFeature_=function(t){var e=t.element;if(this.style_&&this.applySelectedStyle_(e),!this.getLayer(e)){var r=this.getMap().getAllLayers().find((function(t){if(t instanceof l.A&&t.getSource()&&t.getSource().hasFeature(e))return t}));r&&this.addFeatureLayerAssociation_(e,r)}},e.prototype.removeFeature_=function(t){var e=t.element;this.style_&&this.restorePreviousStyle_(e)},e.prototype.getStyle=function(){return this.style_},e.prototype.applySelectedStyle_=function(t){var e=(0,p.v6)(t);e in m||(m[e]=t.getStyle()),t.setStyle(this.style_)},e.prototype.restorePreviousStyle_=function(t){for(var r=this.getMap().getInteractions().getArray(),n=r.length-1;n>=0;--n){var i=r[n];if(i!==this&&i instanceof e&&i.getStyle()&&-1!==i.getFeatures().getArray().lastIndexOf(t))return void t.setStyle(i.getStyle())}var o=(0,p.v6)(t);t.setStyle(m[o]),delete m[o]},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[(0,p.v6)(t)]},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=this.addCondition_(t),r=this.removeCondition_(t),n=this.toggleCondition_(t),i=!e&&!r&&!n,o=t.map,a=this.getFeatures(),s=[],l=[];if(i){(0,h.IU)(this.featureLayerAssociation_),o.forEachFeatureAtPixel(t.pixel,function(t,e){if(this.filter_(t,e))return this.addFeatureLayerAssociation_(t,e),l.push(t),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var u=a.getLength()-1;u>=0;--u){var c=a.item(u),p=l.indexOf(c);p>-1?l.splice(p,1):(a.remove(c),s.push(c))}0!==l.length&&a.extend(l)}else{o.forEachFeatureAtPixel(t.pixel,function(t,i){if(this.filter_(t,i))return!e&&!n||(0,f.mK)(a.getArray(),t)?(r||n)&&(0,f.mK)(a.getArray(),t)&&(s.push(t),this.removeFeatureLayerAssociation_(t)):(this.addFeatureLayerAssociation_(t,i),l.push(t)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var d=s.length-1;d>=0;--d)a.remove(s[d]);a.extend(l)}return(l.length>0||s.length>0)&&this.dispatchEvent(new y(_,l,s,t)),!0},e}(s.Ay)},8620:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n,i=r(4120),o=r(5332),a=r(4087),s=r(588),l=r(3530),u=r(1597),h=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const c=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un,r.background_=e.background;var n=(0,l.kp)({},e);return"object"==typeof e.properties&&(delete n.properties,(0,l.kp)(n,e.properties)),n[o.A.OPACITY]=void 0!==e.opacity?e.opacity:1,(0,s.v)("number"==typeof n[o.A.OPACITY],64),n[o.A.VISIBLE]=void 0===e.visible||e.visible,n[o.A.Z_INDEX]=e.zIndex,n[o.A.MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,n[o.A.MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,n[o.A.MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,n[o.A.MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,r.className_=void 0!==n.className?n.className:"ol-layer",delete n.className,r.setProperties(n),r.state_=null,r}return h(e,t),e.prototype.getBackground=function(){return this.background_},e.prototype.getClassName=function(){return this.className_},e.prototype.getLayerState=function(t){var e=this.state_||{layer:this,managed:void 0===t||t},r=this.getZIndex();return e.opacity=(0,u.qE)(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==r||e.managed?r:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e},e.prototype.getLayersArray=function(t){return(0,a.b0)()},e.prototype.getLayerStatesArray=function(t){return(0,a.b0)()},e.prototype.getExtent=function(){return this.get(o.A.EXTENT)},e.prototype.getMaxResolution=function(){return this.get(o.A.MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(o.A.MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(o.A.MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(o.A.MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(o.A.OPACITY)},e.prototype.getSourceState=function(){return(0,a.b0)()},e.prototype.getVisible=function(){return this.get(o.A.VISIBLE)},e.prototype.getZIndex=function(){return this.get(o.A.Z_INDEX)},e.prototype.setBackground=function(t){this.background_=t,this.changed()},e.prototype.setExtent=function(t){this.set(o.A.EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(o.A.MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(o.A.MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(o.A.MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(o.A.MIN_ZOOM,t)},e.prototype.setOpacity=function(t){(0,s.v)("number"==typeof t,64),this.set(o.A.OPACITY,t)},e.prototype.setVisible=function(t){this.set(o.A.VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(o.A.Z_INDEX,t)},e.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),t.prototype.disposeInternal.call(this)},e}(i.A)},6323:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var n,i=r(764),o=r(5341),a=r(3530),s=r(9276),l=(n=function(t,e){return n=Object.
vendor: 5,587 bytes, line 8
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u="renderOrder";const h=function(t){function e(e){var r=this,n=e||{},i=(0,a.kp)({},n);return delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,(r=t.call(this,i)||this).declutter_=void 0!==n.declutter&&n.declutter,r.renderBuffer_=void 0!==n.renderBuffer?n.renderBuffer:100,r.style_=null,r.styleFunction_=void 0,r.setStyle(n.style),r.updateWhileAnimating_=void 0!==n.updateWhileAnimating&&n.updateWhileAnimating,r.updateWhileInteracting_=void 0!==n.updateWhileInteracting&&n.updateWhileInteracting,r}return l(e,t),e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(u)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.renderDeclutter=function(t){t.declutterTree||(t.declutterTree=new o(9)),this.getRenderer().renderDeclutter(t)},e.prototype.setRenderOrder=function(t){this.set(u,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:s.d1,this.styleFunction_=null===t?void 0:(0,s.mC)(this.style_),this.changed()},e}(i.A)},517:(t,e,r)=>{"use strict";r.d(e,{A:()=>C});var n=r(71),i=r(3984),o=r(6717),a=r(3628),s=r(9052),l=r(1217),u=r(4294),h=r(953),c=r(9276),f=r(1426),p=r(3346),d=r(731),g=r(915),_=r(3530),y=r(1597),m=r(6933),v=r(7083),w=r(7331);function x(t,e,r){for(var n,i,o,a,s,l,u=[],h=t(0),c=t(1),f=e(h),p=e(c),d=[c,h],g=[p,f],_=[1,0],m={},v=1e5;--v>0&&_.length>0;)o=_.pop(),h=d.pop(),f=g.pop(),(l=o.toString())in m||(u.push(f[0],f[1]),m[l]=!0),a=_.pop(),c=d.pop(),p=g.pop(),i=e(n=t(s=(o+a)/2)),(0,y.Q1)(i[0],i[1],f[0],f[1],p[0],p[1])<r?(u.push(p[0],p[1]),m[l=a.toString()]=!0):(_.push(a,s,s,o),g.push(p,i,i,f),d.push(c,n,n,h));return u}var b,E=(b=function(t,e){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},b(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),A=new h.A({color:"rgba(0,0,0,0.2)"}),S=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001];const C=function(t){function e(e){var r=this,o=e||{},s=(0,_.kp)({updateWhileAnimating:!0,updateWhileInteracting:!0,renderBuffer:0},o);return delete s.maxLines,delete s.strokeStyle,delete s.targetSize,delete s.showLabels,delete s.lonLabelFormatter,delete s.latLabelFormatter,delete s.lonLabelPosition,delete s.latLabelPosition,delete s.lonLabelStyle,delete s.latLabelStyle,delete s.intervals,(r=t.call(this,s)||this).projection_=null,r.maxLat_=1/0,r.maxLon_=1/0,r.minLat_=-1/0,r.minLon_=-1/0,r.maxX_=1/0,r.maxY_=1/0,r.minX_=-1/0,r.minY_=-1/0,r.targetSize_=void 0!==o.targetSize?o.targetSize:100,r.maxLines_=void 0!==o.maxLines?o.maxLines:100,r.meridians_=[],r.parallels_=[],r.strokeStyle_=void 0!==o.strokeStyle?o.strokeStyle:A,r.fromLonLatTransform_=void 0,r.toLonLatTransform_=void 0,r.projectionCenterLonLat_=null,r.bottomLeft_=null,r.bottomRight_=null,r.topLeft_=null,r.topRight_=null,r.meridiansLabels_=null,r.parallelsLabels_=null,o.showLabels&&(r.lonLabelFormatter_=null==o.lonLabelFormatter?m.aP.bind(r,"EW"):o.lonLabelFormatter,r.latLabelFormatter_=null==o.latLabelFormatter?m.aP.bind(r,"NS"):o.latLabelFormatter,r.lonLabelPosition_=null==o.lonLabelPosition?0:o.lonLabelPosition,r.latLabelPosition_=null==o.latLabelPosition?1:o.latLabelPosition,r.lonLabelStyleBase_=new c.Ay({text:void 0!==o.lonLabelStyle?o.lonLabelStyle.clone():new f.A({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new a.A({color:"rgba(0,0,0,1)"}),stroke:new h.A({color:"rgba(255,255,255,1)",width:3})})}),r.lonLabelStyle_=function(t){var e=t.get("graticule_label");return this.lonLabelStyleBase_.getText().setText(e),this.lonLabelStyleBase_}.bind(r),r.latLabelStyleBase_=new c.Ay({text:void 0!==o.latLabelStyle?o.latLabelStyle.clone():new f.A({font:"12px Calibri,sans-serif",textAlign:"right",fill:new a.A({color:"rgba(0,0,0,1)"}),stroke:new h.A({color:"rgba(255,255,255,1)",width:3})})}),r.latLabelStyle_=function(t){var e=t.get("graticule_label");return this.latLabelStyleBase_.getText().setText(e),this.latLabelStyleBase_}.bind(r),r.meridiansLabels_=[],r.parallelsLabels_=[],r.addEventListener(i.A.POSTRENDER,r.drawLabels_.bind(r))),r.intervals_=void 0!==o.intervals?o.intervals:S,r.setSource(new d.A({loader:r.loaderFunction.bind(r),strategy:r.strategyFunction.bind(r),features:new n.A,overlaps:!1,useSpatialIndex:!1,wrapX:o.wrapX})),r.featurePool_=[],r.lineStyle_=new c.Ay({stroke:r.strokeStyle_}),r.loadedExtent_=null,r.renderedExtent_=null,r.renderedResolution_=null,r.setRenderOrder(null),r}return E(e,t),e.prototype.strategyFunction=function(t,e){var r=t.slice();
8return this.projection_&&this.getSource().getWrapX()&&(0,g.wrapX)(r,this.projection_),this.loadedExtent_&&((0,g.approximatelyEquals)(this.loadedExtent_,r,e)?r=this.loadedExtent_.slice():this.getSource().removeLoadedExtent(this.loadedExtent_)),[r]},e.prototype.loaderFunction=function(t,e,r){this.loadedExtent_=t;var n=this.getSource(),i=this.getExtent()||[-1/0,-1/0,1/0,1/0],a=(0,g.getIntersection)(i,t);if(!(this.renderedExtent_&&(0,g.equals)(this.renderedExtent_,a)&&this.renderedResolution_===e||(this.renderedExtent_=a,this.renderedResolution_=e,(0,g.isEmpty)(a)))){var s=(0,g.getCenter)(a),l=e*e/4;(!this.projection_||!(0,v.equivalent)(this.projection_,r))&&this.updateProjectionInfo_(r),this.createGraticule_(a,s,e,l);var u,h=this.meridians_.length+this.parallels_.length;for(this.meridiansLabels_&&(h+=this.meridians_.length),this.parallelsLabels_&&(h+=this.parallels_.length);h>this.featurePool_.length;)u=new o.A,this.featurePool_.push(u);var c=n.getFeaturesCollection();c.clear();var f,p,d=0;for(f=0,p=this.meridians_.length;f<p;++f)(u=this.featurePool_[d++]).setGeometry(this.meridians_[f]),u.setStyle(this.lineStyle_),c.push(u);for(f=0,p=this.parallels_.length;f<p;++f)(u=this.featurePool_[d++]).setGeometry(this.parallels_[f]),u.setStyle(this.lineStyle_),c.push(u)}},e.prototype.addMeridian_=function(t,e,r,n,i,o){var a=this.getMeridian_(t,e,r,n,o);if((0,g.intersects)(a.getExtent(),i)){if(this.meridiansLabels_){var s=this.lonLabelFormatter_(t);o in this.meridiansLabels_?this.meridiansLabels_[o].text=s:this.meridiansLabels_[o]={geom:new u.A([]),text:s}}this.meridians_[o++]=a}return o},e.prototype.addParallel_=function(t,e,r,n,i,o){var a=this.getParallel_(t,e,r,n,o);if((0,g.intersects)(a.getExtent(),i)){if(this.parallelsLabels_){var s=this.latLabelFormatter_(t);o in this.parallelsLabels_?this.parallelsLabels_[o].text=s:this.parallelsLabels_[o]={geom:new u.A([]),text:s}}this.parallels_[o++]=a}return o},e.prototype.drawLabels_=function(t){var e=t.frameState.viewState.rotation,r=t.frameState.viewState.resolution,n=t.frameState.size,i=t.frameState.extent,o=(0,g.getCenter)(i),a=i;if(e){var s=n[0]*r,l=n[1]*r;a=[o[0]-s/2,o[1]-l/2,o[0]+s/2,o[1]+l/2]}var u=0,h=0,c=this.latLabelPosition_<.5,f=this.projection_.getExtent(),p=(0,g.getWidth)(f);this.getSource().getWrapX()&&this.projection_.canWrapX()&&!(0,g.containsExtent)(f,i)&&(u=Math.floor((i[0]-f[0])/p),h=Math.ceil((i[2]-f[2])/p),c=c!==Math.abs(e)>Math.PI/2);for(var d=(0,w.getVectorContext)(t),_=u;_<=h;++_){var y=this.meridians_.length+this.parallels_.length,m=void 0,v=void 0,x=void 0,b=void 0;if(this.meridiansLabels_)for(v=0,x=this.meridiansLabels_.length;v<x;++v){var E=this.meridians_[v];if(e||0!==_)(A=E.clone()).translate(_*p,0),A.rotate(-e,o),(b=this.getMeridianPoint_(A,a,v)).rotate(e,o);else b=this.getMeridianPoint_(E,i,v);(m=this.featurePool_[y++]).setGeometry(b),m.set("graticule_label",this.meridiansLabels_[v].text),d.drawFeature(m,this.lonLabelStyle_(m))}if(this.parallelsLabels_&&(_===u&&c||_===h&&!c))for(v=0,x=this.parallels_.length;v<x;++v){var A;E=this.parallels_[v];if(e||0!==_)(A=E.clone()).translate(_*p,0),A.rotate(-e,o),(b=this.getParallelPoint_(A,a,v)).rotate(e,o);else b=this.getParallelPoint_(E,i,v);(m=this.featurePool_[y++]).setGeometry(b),m.set("graticule_label",this.parallelsLabels_[v].text),d.drawFeature(m,this.latLabelStyle_(m))}}},e.prototype.createGraticule_=function(t,e,r,n){var i=this.getInterval_(r);if(-1==i)return this.meridians_.length=0,this.parallels_.length=0,this.meridiansLabels_&&(this.meridiansLabels_.length=0),void(this.parallelsLabels_&&(this.parallelsLabels_.length=0));var o=!1,a=this.projection_.getExtent(),s=(0,g.getWidth)(a);this.getSource().getWrapX()&&this.projection_.canWrapX()&&!(0,g.containsExtent)(a,t)&&((0,g.getWidth)(t)>=s?(t[0]=a[0],t[2]=a[2]):o=!0);var l=[(0,y.qE)(e[0],this.minX_,this.maxX_),(0,y.qE)(e[1],this.minY_,this.maxY_)],u=this.toLonLatTransform_(l);isNaN(u[1])&&(u[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_);var h,c,f,p,d=(0,y.qE)(u[0],this.minLon_,this.maxLon_),_=(0,y.qE)(u[1],this.minLat_,this.maxLat_),m=this.maxLines_,v=t;o||(v=[(0,y.qE)(t[0],this.minX_,this.maxX_),(0,y.qE)(t[1],this.minY_,this.maxY_),(0,y.qE)(t[2],this.minX_,this.maxX_),(0,y.qE)(t[3],this.minY_,this.maxY_)]);var w=(0,g.applyTransform)(v,this.toLonLatTransform_,void 0,8),x=w[3],b=w[2],E=w[1],A=w[0];if(o||((0,g.containsCoordinate)(v,this.bottomLeft_)&&(A=this.minLon_,E=this.minLat_),(0,g.containsCoordinate)(v,this.bottomRight_)&&(b=this.maxLon_,E=this.minLat_),(0,g.containsCoordinate)(v,this.topLeft_)&&(A=this.minLon_,x=this.maxLat_),(0,g.containsCoordinate)(v,this.topRight_)&&(b=this.maxLon_,x=this.maxLat_),x=(0,y.qE)(x,_,this.maxLat_),b=(0,y.qE)(b,d,this.maxLon_),E=(0,y.qE)(E,this.minLat_,_),A=(0,y.qE)(A,this.minLon_,d)),d=Math.floor(d/i)*i,p=(0,y.qE)(d,this.minLon_,this.maxLon_),c=this.addMeridian_(p,E,x,n,t,0),h=0,o)for(;(p-=i)>=A&&h++<m;)c=this.addMeridian_(p,E,x,n,t,c);else for(;p!=this.minLon_&&h++<m;)p=Math.max(p-i,this.minLon_),c=this.addMeridian_(p,E,x,n,t,c);if(p=(0,y.qE)(d,this.minLon_,this.maxLon_),h=0,o)for(;(p+=i)<=b&&h++<m;)c=this.addMeridian_(p,E,x,n,t,c);else for(;p!=this.maxLon_&&h++<m;)p=Math.min(p+i,this.maxLon_),c=this.addMeridian_(p,E,x,n,t,c);for(this.meridians_.length=c,this.meridiansLabels_&&(this.meridiansLabels_.length=c),_=Math.floor(_/i)*i,f=(0,y.qE)(_,this.minLat_,this.maxLat_),c=this.addParallel_(f,A,b,n,t,0),h=0;f!=this.minLat_&&h++<m;)f=Math.max(f-i,this.minLat_),c=this.addParallel_(f,A,b,n,t,c);for(f=(0,y.qE)(_,this.minLat_,this.maxLat_),h=0;f!=this.maxLat_&&h++<m;)f=Math.min(f+i,this.maxLat_),c=this.addParallel_(f,A,b,n,t,c);this.parallels_.length=c,this.parallelsLabels_&&(this.parallelsLabels_.length=c)},e.prototype.getInterval_=function(t){for(var e=this.projectionCenterLonLat_[0],r=this.projectionCenterLonLat_[1],n=-1,i=Math.pow(this.targetSize_*t,2),o=[],a=[],s=0,l=this.intervals_.length;s<l;++s){var u=(0,y.qE)(this.intervals_[s]/2,0,90),h=(0,y.qE)(r,-90+u,90-u);
8if(o[0]=e-u,o[1]=h-u,a[0]=e+u,a[1]=h+u,this.fromLonLatTransform_(o,o),this.fromLonLatTransform_(a,a),Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)<=i)break;n=this.intervals_[s]}return n},e.prototype.getMeridian_=function(t,e,r,n,i){var o=function(t,e,r,n,i){var o=(0,v.get)("EPSG:4326");return x((function(n){return[t,e+(r-e)*n]}),(0,v.getTransform)(o,n),i)}(t,e,r,this.projection_,n),a=this.meridians_[i];return a?(a.setFlatCoordinates(s.A.XY,o),a.changed()):(a=new l.A(o,s.A.XY),this.meridians_[i]=a),a},e.prototype.getMeridianPoint_=function(t,e,r){var n=t.getFlatCoordinates(),i=1,o=n.length-1;n[i]>n[o]&&(i=o,o=1);var a=Math.max(e[1],n[i]),s=Math.min(e[3],n[o]),l=(0,y.qE)(e[1]+Math.abs(e[1]-e[3])*this.lonLabelPosition_,a,s),u=[n[i-1]+(n[o-1]-n[i-1])*(l-n[i])/(n[o]-n[i]),l],h=this.meridiansLabels_[r].geom;return h.setCoordinates(u),h},e.prototype.getMeridians=function(){return this.meridians_},e.prototype.getParallel_=function(t,e,r,n,i){var o=function(t,e,r,n,i){var o=(0,v.get)("EPSG:4326");return x((function(n){return[e+(r-e)*n,t]}),(0,v.getTransform)(o,n),i)}(t,e,r,this.projection_,n),a=this.parallels_[i];return a?(a.setFlatCoordinates(s.A.XY,o),a.changed()):a=new l.A(o,s.A.XY),a},e.prototype.getParallelPoint_=function(t,e,r){var n=t.getFlatCoordinates(),i=0,o=n.length-2;n[i]>n[o]&&(i=o,o=0);var a=Math.max(e[0],n[i]),s=Math.min(e[2],n[o]),l=(0,y.qE)(e[0]+Math.abs(e[0]-e[2])*this.latLabelPosition_,a,s),u=[l,n[i+1]+(n[o+1]-n[i+1])*(l-n[i])/(n[o]-n[i])],h=this.parallelsLabels_[r].geom;return h.setCoordinates(u),h},e.prototype.getParallels=function(){return this.parallels_},e.prototype.updateProjectionInfo_=function(t){var e=(0,v.get)("EPSG:4326"),r=t.getWorldExtent();this.maxLat_=r[3],this.maxLon_=r[2],this.minLat_=r[1],this.minLon_=r[0];var n=(0,v.getTransform)(t,e);if(this.minLon_<this.maxLon_)this.toLonLatTransform_=n;else{var i=this.minLon_+this.maxLon_/2;this.maxLon_+=360,this.toLonLatTransform_=function(t,e,r){for(var o=r||2,a=n(t,e,o),s=0,l=a.length;s<l;s+=o)a[s]<i&&(a[s]+=360);return a}}this.fromLonLatTransform_=(0,v.getTransform)(e,t);var o=(0,g.applyTransform)([this.minLon_,this.minLat_,this.maxLon_,this.maxLat_],this.fromLonLatTransform_,void 0,8);this.minX_=o[0],this.maxX_=o[2],this.minY_=o[1],this.maxY_=o[3],this.bottomLeft_=this.fromLonLatTransform_([this.minLon_,this.minLat_]),this.bottomRight_=this.fromLonLatTransform_([this.maxLon_,this.minLat_]),this.topLeft_=this.fromLonLatTransform_([this.minLon_,this.maxLat_]),this.topRight_=this.fromLonLatTransform_([this.maxLon_,this.maxLat_]),this.projectionCenterLonLat_=this.toLonLatTransform_((0,g.getCenter)(t.getExtent())),isNaN(this.projectionCenterLonLat_[1])&&(this.projectionCenterLonLat_[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_),this.projection_=t},e}(p.A)},5717:(t,e,r)=>{"use strict";r.d(e,{A:()=>lt});var n=r(6323),i=r(8280),o=r(2703),a=r(7771),s=r(3530),l=34962,u=34963,h=35048,c=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function f(t,e){for(var r=(0,s.kp)({preserveDrawingBuffer:!0,antialias:!a.oF},e),n=c.length,i=0;i<n;++i)try{var o=t.getContext(c[i],r);if(o)return o}catch(t){}return null}var p=r(588),d=35044,g=function(){function t(t,e){this.array=null,this.type=t,(0,p.v)(t===l||t===u,62),this.usage=void 0!==e?e:d}return t.prototype.ofSize=function(t){this.array=new(_(this.type))(t)},t.prototype.fromArray=function(t){var e=_(this.type);this.array=e.from?e.from(t):new e(t)},t.prototype.fromArrayBuffer=function(t){this.array=new(_(this.type))(t)},t.prototype.getType=function(){return this.type},t.prototype.getArray=function(){return this.array},t.prototype.getUsage=function(){return this.usage},t.prototype.getSize=function(){return this.array?this.array.length:0},t}();function _(t){switch(t){case l:return Float32Array;case u:return Uint32Array;default:return Float32Array}}const y=g;var m=r(5332),v=r(5986),w=r(9960),x=r(3984);const b="webglcontextlost",E="webglcontextrestored";var A=r(25),S=r(4087);const C=function(){function t(t){this.gl_=t.webGlContext;var e=this.gl_;this.scaleRatio_=t.scaleRatio||1,this.renderTargetTexture_=e.createTexture(),this.renderTargetTextureSize_=null,this.frameBuffer_=e.createFramebuffer();var r=e.createShader(e.VERTEX_SHADER);e.shaderSource(r,t.vertexShader||"\n  precision mediump float;\n  \n  attribute vec2 a_position;\n  varying vec2 v_texCoord;\n  varying vec2 v_screenCoord;\n  \n  uniform vec2 u_screenSize;
8\n   \n  void main() {\n    v_texCoord = a_position * 0.5 + 0.5;\n    v_screenCoord = v_texCoord * u_screenSize;\n    gl_Position = vec4(a_position, 0.0, 1.0);\n  }\n"),e.compileShader(r);var n=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(n,t.fragmentShader||"\n  precision mediump float;\n   \n  uniform sampler2D u_image;\n  uniform float u_opacity;\n   \n  varying vec2 v_texCoord;\n   \n  void main() {\n    gl_FragColor = texture2D(u_image, v_texCoord) * u_opacity;\n  }\n"),e.compileShader(n),this.renderTargetProgram_=e.createProgram(),e.attachShader(this.renderTargetProgram_,r),e.attachShader(this.renderTargetProgram_,n),e.linkProgram(this.renderTargetProgram_),this.renderTargetVerticesBuffer_=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,-1,1,1,-1,1]),e.STATIC_DRAW),this.renderTargetAttribLocation_=e.getAttribLocation(this.renderTargetProgram_,"a_position"),this.renderTargetUniformLocation_=e.getUniformLocation(this.renderTargetProgram_,"u_screenSize"),this.renderTargetOpacityLocation_=e.getUniformLocation(this.renderTargetProgram_,"u_opacity"),this.renderTargetTextureLocation_=e.getUniformLocation(this.renderTargetProgram_,"u_image"),this.uniforms_=[],t.uniforms&&Object.keys(t.uniforms).forEach(function(r){this.uniforms_.push({value:t.uniforms[r],location:e.getUniformLocation(this.renderTargetProgram_,r)})}.bind(this))}return t.prototype.getGL=function(){return this.gl_},t.prototype.init=function(t){var e=this.getGL(),r=[e.drawingBufferWidth*this.scaleRatio_,e.drawingBufferHeight*this.scaleRatio_];if(e.bindFramebuffer(e.FRAMEBUFFER,this.getFrameBuffer()),e.viewport(0,0,r[0],r[1]),!this.renderTargetTextureSize_||this.renderTargetTextureSize_[0]!==r[0]||this.renderTargetTextureSize_[1]!==r[1]){this.renderTargetTextureSize_=r;var n=e.RGBA,i=e.RGBA,o=e.UNSIGNED_BYTE;e.bindTexture(e.TEXTURE_2D,this.renderTargetTexture_),e.texImage2D(e.TEXTURE_2D,0,n,r[0],r[1],0,i,o,null),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.renderTargetTexture_,0)}},t.prototype.apply=function(t,e,r,n){var i=this.getGL(),o=t.size;if(i.bindFramebuffer(i.FRAMEBUFFER,e?e.getFrameBuffer():null),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,this.renderTargetTexture_),!e){var a=(0,S.v6)(i.canvas);if(!t.renderTargets[a]){var s=i.getContextAttributes();s&&s.preserveDrawingBuffer&&(i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT)),t.renderTargets[a]=!0}}i.enable(i.BLEND),i.blendFunc(i.ONE,i.ONE_MINUS_SRC_ALPHA),i.viewport(0,0,i.drawingBufferWidth,i.drawingBufferHeight),i.bindBuffer(i.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),i.useProgram(this.renderTargetProgram_),i.enableVertexAttribArray(this.renderTargetAttribLocation_),i.vertexAttribPointer(this.renderTargetAttribLocation_,2,i.FLOAT,!1,0,0),i.uniform2f(this.renderTargetUniformLocation_,o[0],o[1]),i.uniform1i(this.renderTargetTextureLocation_,0);var l=t.layerStatesArray[t.layerIndex].opacity;i.uniform1f(this.renderTargetOpacityLocation_,l),this.applyUniforms(t),r&&r(i,t),i.drawArrays(i.TRIANGLES,0,6),n&&n(i,t)},t.prototype.getFrameBuffer=function(){return this.frameBuffer_},t.prototype.applyUniforms=function(t){var e,r=this.getGL(),n=1;this.uniforms_.forEach((function(i){if((e="function"==typeof i.value?i.value(t):i.value)instanceof HTMLCanvasElement||e instanceof ImageData)i.texture||(i.texture=r.createTexture()),r.activeTexture(r["TEXTURE".concat(n)]),r.bindTexture(r.TEXTURE_2D,i.texture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),e instanceof ImageData?r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,e.width,e.height,0,r.UNSIGNED_BYTE,new Uint8Array(e.data)):r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,e),r.uniform1i(i.location,n++);else if(Array.isArray(e))switch(e.length){case 2:return void r.uniform2f(i.location,e[0],e[1]);case 3:return void r.uniform3f(i.location,e[0],e[1],e[2]);case 4:return void r.uniform4f(i.location,e[0],e[1],e[2],e[3]);default:return}else"number"==typeof e&&r.uniform1f(i.location,e)}))},t}();var T=r(9703);function P(t,e){return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}
8var I,O=(I=function(t,e){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},I(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}I(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),R="u_projectionMatrix",L="u_offsetScaleMatrix",k="u_offsetRotateMatrix",M="u_time",F="u_zoom",D="u_resolution",j={UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123,UNSIGNED_INT:5125,FLOAT:5126},U={};function G(t){return"shared/"+t}var N=0;function B(t){switch(t){case j.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case j.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case j.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT;case j.FLOAT:default:return Float32Array.BYTES_PER_ELEMENT}}const z=function(t){function e(e){var r,n=t.call(this)||this,i=e||{};n.boundHandleWebGLContextLost_=n.handleWebGLContextLost.bind(n),n.boundHandleWebGLContextRestored_=n.handleWebGLContextRestored.bind(n),n.canvasCacheKey_=i.canvasCacheKey?G(i.canvasCacheKey):(r="unique/"+N,N+=1,r),n.canvas_=function(t){var e=U[t];if(!e){var r=document.createElement("canvas");r.style.position="absolute",r.style.left="0",e={users:0,canvas:r},U[t]=e}return e.users+=1,e.canvas}(n.canvasCacheKey_),n.gl_=f(n.canvas_),n.bufferCache_={},n.extensionCache_={},n.currentProgram_=null,n.canvas_.addEventListener(b,n.boundHandleWebGLContextLost_),n.canvas_.addEventListener(E,n.boundHandleWebGLContextRestored_),n.offsetRotateMatrix_=(0,T.vt)(),n.offsetScaleMatrix_=(0,T.vt)(),n.tmpMat4_=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],n.uniformLocations_={},n.attribLocations_={},n.uniforms_=[],i.uniforms&&n.setUniforms(i.uniforms);var o=n.getGL();return n.postProcessPasses_=i.postProcesses?i.postProcesses.map((function(t){return new C({webGlContext:o,scaleRatio:t.scaleRatio,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms})})):[new C({webGlContext:o})],n.shaderCompileErrors_=null,n.startTime_=Date.now(),n}return O(e,t),e.prototype.setUniforms=function(t){for(var e in this.uniforms_=[],t)this.uniforms_.push({name:e,value:t[e]});this.uniformLocations_={}},e.prototype.canvasCacheKeyMatches=function(t){return this.canvasCacheKey_===G(t)},e.prototype.getExtension=function(t){if(t in this.extensionCache_)return this.extensionCache_[t];var e=this.gl_.getExtension(t);return this.extensionCache_[t]=e,e},e.prototype.bindBuffer=function(t){var e=this.getGL(),r=(0,S.v6)(t),n=this.bufferCache_[r];n||(n={buffer:t,webGlBuffer:e.createBuffer()},this.bufferCache_[r]=n);e.bindBuffer(t.getType(),n.webGlBuffer)},e.prototype.flushBufferData=function(t){var e=this.getGL();this.bindBuffer(t),e.bufferData(t.getType(),t.getArray(),t.getUsage())},e.prototype.deleteBuffer=function(t){var e=this.getGL(),r=(0,S.v6)(t),n=this.bufferCache_[r];n&&!e.isContextLost()&&e.deleteBuffer(n.webGlBuffer),delete this.bufferCache_[r]},e.prototype.disposeInternal=function(){this.canvas_.removeEventListener(b,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(E,this.boundHandleWebGLContextRestored_),function(t){var e=U[t];if(e&&(e.users-=1,!(e.users>0))){var r=f(e.canvas).getExtension("WEBGL_lose_context");r&&r.loseContext(),delete U[t]}}(this.canvasCacheKey_),delete this.gl_,delete this.canvas_},e.prototype.prepareDraw=function(t,e){var r=this.getGL(),n=this.getCanvas(),i=t.size,o=t.pixelRatio;n.width=i[0]*o,n.height=i[1]*o,n.style.width=i[0]+"px",n.style.height=i[1]+"px",r.useProgram(this.currentProgram_);for(var a=this.postProcessPasses_.length-1;a>=0;a--)this.postProcessPasses_[a].init(t);r.bindTexture(r.TEXTURE_2D,null),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),r.enable(r.BLEND),r.blendFunc(r.ONE,e?r.ZERO:r.ONE_MINUS_SRC_ALPHA),r.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.prepareDrawToRenderTarget=function(t,e,r){var n=this.getGL(),i=e.getSize();n.bindFramebuffer(n.FRAMEBUFFER,e.getFramebuffer()),n.viewport(0,0,i[0],i[1]),n.bindTexture(n.TEXTURE_2D,e.getTexture()),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.enable(n.BLEND),n.blendFunc(n.ONE,r?n.ZERO:n.ONE_MINUS_SRC_ALPHA),n.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.drawElements=function(t,e){var r=this.getGL();this.getExtension("OES_element_index_uint");var n=r.UNSIGNED_INT,i=e-t,o=4*t;r.drawElements(r.TRIANGLES,i,n,o)},e.prototype.finalizeDraw=function(t,e,r){for(var n=0,i=this.postProcessPasses_.length;n<i;n++)n===i-1?this.postProcessPasses_[n].apply(t,null,e,r):this.postProcessPasses_[n].apply(t,this.postProcessPasses_[n+1])},e.prototype.getCanvas=function(){return this.canvas_},e.prototype.getGL=function(){return this.gl_},e.prototype.applyFrameState=function(t){var e=t.size,r=t.viewState.rotation,n=(0,T.cL)(this.offsetScaleMatrix_);(0,T.hs)(n,2/e[0],2/e[1]);var i=(0,T.cL)(this.offsetRotateMatrix_);0!==r&&(0,T.e$)(i,-r),this.setUniformMatrixValue(L,P(this.tmpMat4_,n)),this.setUniformMatrixValue(k,P(this.tmpMat4_,i)),this.setUniformFloatValue(M,.001*(Date.now()-this.startTime_)),this.setUniformFloatValue(F,t.viewState.zoom),this.setUniformFloatValue(D,t.viewState.resolution)},e.prototype.applyUniforms=function(t){var e,r=this.getGL(),n=0;this.uniforms_.forEach(function(i){if((e="function"==typeof i.value?i.value(t):i.value)instanceof HTMLCanvasElement||e instanceof HTMLImageElement||e instanceof ImageData)i.texture||(i.prevValue=void 0,i.texture=r.createTexture()),r.activeTexture(r["TEXTURE".concat(n)]),r.bindTexture(r.TEXTURE_2D,i.texture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),(!(e instanceof HTMLImageElement)||e.complete)&&i.prevValue!==e&&(i.prevValue=e,r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,e)),r.uniform1i(this.getUniformLocation(i.name),n++);else if(Array.isArray(e)&&6===e.length)this.setUniformMatrixValue(i.name,P(this.tmpMat4_,e));else if(Array.isArray(e)&&e.length<=4)switch(e.length){case 2:return void r.uniform2f(this.getUniformLocation(i.name),e[0],e[1]);case 3:return void r.uniform3f(this.getUniformLocation(i.name),e[0],e[1],e[2]);case 4:return void r.uniform4f(this.getUniformLocation(i.name),e[0],e[1],e[2],e[3]);default:return}else"number"==typeof e&&r.uniform1f(this.getUniformLocation(i.name),e)}.bind(this))},e.prototype.useProgram=function(t){return t!=this.currentProgram_&&(this.getGL().useProgram(t),this.currentProgram_=t,this.uniformLocations_={},this.attribLocations_={},!0)},e.prototype.compileShader=function(t,e){var r=this.getGL(),n=r.createShader(e);return r.shaderSource(n,t),r.compileShader(n),n},e.prototype.getProgram=function(t,e){var r=this.getGL(),n=this.compileShader(t,r.FRAGMENT_SHADER),i=this.compileShader(e,r.VERTEX_SHADER),o=r.createProgram();if(r.attachShader(o,n),r.attachShader(o,i),r.linkProgram(o),!r.getShaderParameter(n,r.COMPILE_STATUS)){var a="Fragment shader compliation failed: ".concat(r.getShaderInfoLog(n));throw new Error(a)}if(r.deleteShader(n),!r.getShaderParameter(i,r.COMPILE_STATUS)){a="Vertex shader compilation failed: ".concat(r.getShaderInfoLog(i));throw new Error(a)}if(r.deleteShader(i),!r.getProgramParameter(o,r.LINK_STATUS)){a="GL program linking failed: ".concat(r.getShaderInfoLog(i));throw new Error(a)}return o},e.prototype.getUniformLocation=function(t){return void 0===this.uniformLocations_[t]&&(this.uniformLocations_[t]=this.getGL().getUniformLocation(this.currentProgram_,t)),this.uniformLocations_[t]},e.prototype.getAttributeLocation=function(t){return void 0===this.attribLocations_[t]&&(this.attribLocations_[t]=this.getGL().getAttribLocation(this.currentProgram_,t)),this.attribLocations_[t]},e.prototype.makeProjectionTransform=function(t,e){var r=t.size,n=t.viewState.rotation,i=t.viewState.resolution,o=t.viewState.center;return(0,T.cL)(e),(0,T.Zz)(e,0,0,2/(i*r[0]),2/(i*r[1]),-n,-o[0],-o[1]),e},e.prototype.setUniformFloatValue=function(t,e){this.getGL().uniform1f(this.getUniformLocation(t),e)},e.prototype.setUniformFloatVec4=function(t,e){this.getGL().uniform4fv(this.getUniformLocation(t),e)},e.prototype.setUniformMatrixValue=function(t,e){this.getGL().uniformMatrix4fv(this.getUniformLocation(t),!1,e)},e.prototype.enableAttributeArray_=function(t,e,r,n,i){var o=this.getAttributeLocation(t);o<0||(this.getGL().enableVertexAttribArray(o),this.getGL().vertexAttribPointer(o,e,r,!1,n,i))},e.prototype.enableAttributes=function(t){for(var e=function(t){for(var e=0,r=0;r<t.length;r++){var n=t[r];e+=n.size*B(n.type)}return e}(t),r=0,n=0;n<t.length;n++){var i=t[n];this.enableAttributeArray_(i.name,i.size,i.type||5126,e,r),r+=i.size*B(i.type)}},e.prototype.handleWebGLContextLost=function(){(0,s.IU)(this.bufferCache_),this.currentProgram_=null},e.prototype.handleWebGLContextRestored=function(){},e.prototype.createTexture=function(t,e,r){var n=this.getGL(),i=r||n.createTexture(),o=n.RGBA,a=n.RGBA,s=n.UNSIGNED_BYTE;return n.bindTexture(n.TEXTURE_2D,i),e?n.texImage2D(n.TEXTURE_2D,0,o,a,s,e):n.texImage2D(n.TEXTURE_2D,0,o,t[0],t[1],0,a,s,null),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.L
8INEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),i},e}(A.A);var V=r(915),X=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),K="GENERATE_BUFFERS",W=function(t){function e(e,r){var n=t.call(this,e)||this,i=r||{};return n.inversePixelTransform_=(0,T.vt)(),n.pixelContext_=null,n.postProcesses_=i.postProcesses,n.uniforms_=i.uniforms,n.helper,e.addChangeListener(m.A.MAP,n.removeHelper.bind(n)),n.dispatchPreComposeEvent=n.dispatchPreComposeEvent.bind(n),n.dispatchPostComposeEvent=n.dispatchPostComposeEvent.bind(n),n}return X(e,t),e.prototype.dispatchPreComposeEvent=function(t,e){var r=this.getLayer();if(r.hasListener(x.A.PRECOMPOSE)){var n=new w.A(x.A.PRECOMPOSE,void 0,e,t);r.dispatchEvent(n)}},e.prototype.dispatchPostComposeEvent=function(t,e){var r=this.getLayer();if(r.hasListener(x.A.POSTCOMPOSE)){var n=new w.A(x.A.POSTCOMPOSE,void 0,e,t);r.dispatchEvent(n)}},e.prototype.reset=function(t){this.uniforms_=t.uniforms,this.helper&&this.helper.setUniforms(this.uniforms_)},e.prototype.removeHelper=function(){this.helper&&(this.helper.dispose(),delete this.helper)},e.prototype.prepareFrame=function(t){if(this.getLayer().getRenderSource()){for(var r=!0,n=-1,i=void 0,o=0,a=t.layerStatesArray.length;o<a;o++){var s=t.layerStatesArray[o].layer,l=s.getRenderer();if(l instanceof e){var u=s.getClassName();if((r||u!==i)&&(n+=1,r=!1),i=u,l===this)break}else r=!0}var h="map/"+t.mapId+"/group/"+n;this.helper&&this.helper.canvasCacheKeyMatches(h)||(this.removeHelper(),this.helper=new z({postProcesses:this.postProcesses_,uniforms:this.uniforms_,canvasCacheKey:h}),i&&(this.helper.getCanvas().className=i),this.afterHelperCreated())}return this.prepareFrameInternal(t)},e.prototype.afterHelperCreated=function(){},e.prototype.prepareFrameInternal=function(t){return!0},e.prototype.disposeInternal=function(){this.removeHelper(),t.prototype.disposeInternal.call(this)},e.prototype.dispatchRenderEvent_=function(t,e,r){var n=this.getLayer();if(n.hasListener(t)){(0,T.Zz)(this.inversePixelTransform_,0,0,r.pixelRatio,-r.pixelRatio,0,0,-r.size[1]);var i=new w.A(t,this.inversePixelTransform_,r,e);n.dispatchEvent(i)}},e.prototype.preRender=function(t,e){this.dispatchRenderEvent_(x.A.PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(x.A.POSTRENDER,t,e)},e.prototype.getDataAtPixel=function(t,e,r){var n=(0,T.Bb)([e.pixelRatio,0,0,e.pixelRatio,0,0],t.slice()),i=this.helper.getGL();if(!i)return null;var o=this.getLayer().getExtent();if(o){var a=(0,T.Bb)(e.pixelToCoordinateTransform,t.slice());if(!(0,V.containsCoordinate)(o,a))return null}var s=i.getContextAttributes();if(!s||!s.preserveDrawingBuffer)return new Uint8Array;var l,u=Math.round(n[0]),h=Math.round(n[1]),c=this.pixelContext_;if(!c){var f=document.createElement("canvas");f.width=1,f.height=1,c=f.getContext("2d"),this.pixelContext_=c}c.clearRect(0,0,1,1);try{c.drawImage(i.canvas,u,h,1,1,0,0,1,1),l=c.getImageData(0,0,1,1).data}catch(t){return l}return 0===l[3]?null:l},e}(v.A);function H(t,e){var r=e||[],n=256,i=255;return r[0]=Math.floor(t/n/n/n)/i,r[1]=Math.floor(t/n/n)%n/i,r[2]=Math.floor(t/n)%n/i,r[3]=t%n/i,r}const Y=W;var Z=r(6514),q=new Uint8Array(4);const $=function(){function t(t,e){this.helper_=t;var r=t.getGL();this.texture_=r.createTexture(),this.framebuffer_=r.createFramebuffer(),this.size_=e||[1,1],this.data_=new Uint8Array(0),this.dataCacheDirty_=!0,this.updateSize_()}return t.prototype.setSize=function(t){(0,Z.aI)(t,this.size_)||(this.size_[0]=t[0],this.size_[1]=t[1],this.updateSize_())},t.prototype.getSize=function(){return this.size_},t.prototype.clearCachedData=function(){this.dataCacheDirty_=!0},t.prototype.readAll=function(){if(this.dataCacheDirty_){var t=this.size_,e=this.helper_.getGL();e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer_),e.readPixels(0,0,t[0],t[1],e.RGBA,e.UNSIGNED_BYTE,this.data_),this.dataCacheDirty_=!1}return this.data_},t.prototype.readPixel=function(t,e){if(t<0||e<0||t>this.size_[0]||e>=this.size_[1])return q[0]=0,q[1]=0,q[2]=0,q[3]=0,q;
8this.readAll();var r=Math.floor(t)+(this.size_[1]-Math.floor(e)-1)*this.size_[0];return q[0]=this.data_[4*r],q[1]=this.data_[4*r+1],q[2]=this.data_[4*r+2],q[3]=this.data_[4*r+3],q},t.prototype.getTexture=function(){return this.texture_},t.prototype.getFramebuffer=function(){return this.framebuffer_},t.prototype.updateSize_=function(){var t=this.size_,e=this.helper_.getGL();this.texture_=this.helper_.createTexture(t,null,this.texture_),e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer_),e.viewport(0,0,t[0],t[1]),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.texture_,0),this.data_=new Uint8Array(t[0]*t[1]*4)},t}();var J=r(9438),Q=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const tt=function(t){function e(e,r){var n=this,o=r.uniforms||{},a=(0,T.vt)();o[R]=a,(n=t.call(this,e,{uniforms:o,postProcesses:r.postProcesses})||this).ready=!1,n.sourceRevision_=-1,n.verticesBuffer_=new y(l,h),n.hitVerticesBuffer_=new y(l,h),n.indicesBuffer_=new y(u,h),n.vertexShader_=r.vertexShader,n.fragmentShader_=r.fragmentShader,n.program_,n.hitDetectionEnabled_=!(!r.hitFragmentShader||!r.hitVertexShader),n.hitVertexShader_=r.hitVertexShader,n.hitFragmentShader_=r.hitFragmentShader,n.hitProgram_;var s=r.attributes?r.attributes.map((function(t){return{name:"a_"+t.name,size:1,type:j.FLOAT}})):[];n.attributes=[{name:"a_position",size:2,type:j.FLOAT},{name:"a_index",size:1,type:j.FLOAT}].concat(s),n.hitDetectionAttributes=[{name:"a_position",size:2,type:j.FLOAT},{name:"a_index",size:1,type:j.FLOAT},{name:"a_hitColor",size:4,type:j.FLOAT},{name:"a_featureUid",size:1,type:j.FLOAT}].concat(s),n.customAttributes=r.attributes?r.attributes:[],n.previousExtent_=(0,V.createEmpty)(),n.currentTransform_=a,n.renderTransform_=(0,T.vt)(),n.invertRenderTransform_=(0,T.vt)(),n.renderInstructions_=new Float32Array(0),n.hitRenderInstructions_=new Float32Array(0),n.hitRenderTarget_,n.generateBuffersRun_=0,n.worker_=function(){var t='const e="function"==typeof Object.assign?Object.assign:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const t=Object(e);for(let e=1,n=arguments.length;e<n;++e){const n=arguments[e];if(null!=n)for(const e in n)n.hasOwnProperty(e)&&(t[e]=n[e])}return t},n="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"";n.indexOf("firefox");-1!==n.indexOf("safari")&&-1==n.indexOf("chrom")&&(n.indexOf("version/15.4")>=0||n.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==n.indexOf("webkit")&&n.indexOf("edge"),n.indexOf("macintosh"),"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&(self,WorkerGlobalScope),function(){let e=!1;try{const n=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("_",null,n),window.removeEventListener("_",null,n)}catch(e){}}(),new Array(6);const t="GENERATE_BUFFERS",o=[],r={vertexPosition:0,indexPosition:0};function i(e,n,t,o,r){e[n+0]=t,e[n+1]=o,e[n+2]=r}function s(e,n,t,s,f,c){const l=3+f,a=e[n+0],u=e[n+1],d=o;d.length=f;for(let t=0;t<d.length;t++)d[t]=e[n+2+t];let g=c?c.vertexPosition:0,x=c?c.indexPosition:0;const h=g/l;return i(t,g,a,u,0),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,1),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,2),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,3),d.length&&t.set(d,g+3),g+=l,s[x++]=h,s[x++]=h+1,s[x++]=h+3,s[x++]=h+1,s[x++]=h+2,s[x++]=h+3,r.vertexPosition=g,r.indexPosition=x,r}const f=self;f.onmessage=n=>{const o=n.data;if(o.type===t){const n=3,t=2,r=o.customAttributesCount,i=t+r,c=new Float32Array(o.renderInstructions),l=c.length/i,a=4*l*(r+n),u=new Uint32Array(6*l),d=new Float32Array(a);let g;for(let e=0;e<c.length;e+=i)g=s(c,e,d,u,r,g);const x=e({vertexBuffer:d.buffer,indexBuffer:u.buffer,renderInstructions:c.buffer},o);f.postMessage(x,[d.buffer,u.buffer,c.buffer])}};';return new Worker("undefined"==typeof Blob?"data:application/javascript;base64,"+Buffer.from(t,"binary").toString("base64"):URL.createObjectURL(new Blob([t],{type:"application/javascript"})))}(),n.worker_.addEventListener("message",function(t){var e=t.data;if(e.type===K){var r=e.projectionTransform;e.hitDetection?(this.hitVerticesBuffer_.fromArrayBuffer(e.vertexBuffer),this.helper.flushBufferData(this.hitVerticesBuffer_)):(this.verticesBuffer_.fromArrayBuffer(e.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_)),this.indicesBuffer_.fromArrayBuffer(e.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=r,(0,T.T9)(this.invertRenderTransform_,this.renderTransform_),e.hitDetection?this.hitRenderInstructions_=new Float32Array(t.data.renderInstructions):(this.renderInstructions_=new Float32Array(t.data.renderInstructions),e.generateBuffersRun===this.generateBuffersRun_&&(this.ready=!0)),this.getLayer().changed()}}.bind(n)),n.featureCache_={},n.featureCount_=0;var c=n.getLayer().getSource();return n.sourceListenKeys_=[(0,J.KT)(c,i.A.ADDFEATURE,n.handleSourceFeatureAdded_,n
8),(0,J.KT)(c,i.A.CHANGEFEATURE,n.handleSourceFeatureChanged_,n),(0,J.KT)(c,i.A.REMOVEFEATURE,n.handleSourceFeatureDelete_,n),(0,J.KT)(c,i.A.CLEAR,n.handleSourceFeatureClear_,n)],c.forEachFeature(function(t){this.featureCache_[(0,S.v6)(t)]={feature:t,properties:t.getProperties(),geometry:t.getGeometry()},this.featureCount_++}.bind(n)),n}return Q(e,t),e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.hitDetectionEnabled_&&(this.hitProgram_=this.helper.getProgram(this.hitFragmentShader_,this.hitVertexShader_),this.hitRenderTarget_=new $(this.helper))},e.prototype.handleSourceFeatureAdded_=function(t){var e=t.feature;this.featureCache_[(0,S.v6)(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()},this.featureCount_++},e.prototype.handleSourceFeatureChanged_=function(t){var e=t.feature;this.featureCache_[(0,S.v6)(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()}},e.prototype.handleSourceFeatureDelete_=function(t){var e=t.feature;delete this.featureCache_[(0,S.v6)(e)],this.featureCount_--},e.prototype.handleSourceFeatureClear_=function(){this.featureCache_={},this.featureCount_=0},e.prototype.renderFrame=function(t){var e=this.helper.getGL();this.preRender(e,t);var r=t.viewState.projection,n=this.getLayer().getSource().getWrapX()&&r.canWrapX(),i=r.getExtent(),o=t.extent,a=n?(0,V.getWidth)(i):null,s=n?Math.ceil((o[2]-i[2])/a)+1:1,l=n?Math.floor((o[0]-i[0])/a):0,u=l,h=this.indicesBuffer_.getSize();do{this.helper.makeProjectionTransform(t,this.currentTransform_),(0,T.Tl)(this.currentTransform_,u*a,0),(0,T.lw)(this.currentTransform_,this.invertRenderTransform_),this.helper.applyUniforms(t),this.helper.drawElements(0,h)}while(++u<s);this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);var c=this.helper.getCanvas();return this.hitDetectionEnabled_&&(this.renderHitDetection(t,l,s,a),this.hitRenderTarget_.clearCachedData()),this.postRender(e,t),c},e.prototype.prepareFrameInternal=function(t){var e=this.getLayer(),r=e.getSource(),i=t.viewState,a=!t.viewHints[o.A.ANIMATING]&&!t.viewHints[o.A.INTERACTING],s=!(0,V.equals)(this.previousExtent_,t.extent),l=this.sourceRevision_<r.getRevision();if(l&&(this.sourceRevision_=r.getRevision()),a&&(s||l)){var u=i.projection,h=i.resolution,c=e instanceof n.A?e.getRenderBuffer():0,f=(0,V.buffer)(t.extent,c*h);r.loadFeatures(f,h,u),this.rebuildBuffers_(t),this.previousExtent_=t.extent.slice()}return this.helper.useProgram(this.program_),this.helper.prepareDraw(t),this.helper.bindBuffer(this.verticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.attributes),!0},e.prototype.rebuildBuffers_=function(t){var e=(0,T.vt)();this.helper.makeProjectionTransform(t,e);var r,n,i=(2+this.customAttributes.length)*this.featureCount_;if(this.renderInstructions_&&this.renderInstructions_.length===i||(this.renderInstructions_=new Float32Array(i)),this.hitDetectionEnabled_){var o=(7+this.customAttributes.length)*this.featureCount_;this.hitRenderInstructions_&&this.hitRenderInstructions_.length===o||(this.hitRenderInstructions_=new Float32Array(o))}var a,s=[],l=[],u=0,h=0;for(var c in this.featureCache_)if((n=(r=this.featureCache_[c]).geometry)&&"Point"===n.getType()){s[0]=n.getFlatCoordinates()[0],s[1]=n.getFlatCoordinates()[1],(0,T.Bb)(e,s),a=H(h+6,l),this.renderInstructions_[u++]=s[0],this.renderInstructions_[u++]=s[1],this.hitDetectionEnabled_&&(this.hitRenderInstructions_[h++]=s[0],this.hitRenderInstructions_[h++]=s[1],this.hitRenderInstructions_[h++]=a[0],this.hitRenderInstructions_[h++]=a[1],this.hitRenderInstructions_[h++]=a[2],this.hitRenderInstructions_[h++]=a[3],this.hitRenderInstructions_[h++]=Number(c));for(var f=void 0,p=0;p<this.customAttributes.length;p++)f=this.customAttributes[p].callback(r.feature,r.properties),this.renderInstructions_[u++]=f,this.hitDetectionEnabled_&&(this.hitRenderInstructions_[h++]=f)}var d={type:K,renderInstructions:this.renderInstructions_.buffer,customAttributesCount:this.customAttributes.length};if(d.projectionTransform=e,d.generateBuffersRun=++this.generateBuffersRun_,this.ready=!1,this.worker_.postMessage(d,[this.renderInstructions_.buffer]),this.renderInstructions_=null,this.hitDetectionEnabled_){var g={type:K,renderInstructions:this.hitRenderInstructions_.buffer,customAttributesCount:5+this.customAttributes.length};g.projectionTransform=e,g.hitDetection=!0,this.worker_.postMessage(g,[this.hitRenderInstructions_.buffer]),this.hitRenderInstructions_=null}},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){if((0,p.v)(this.hitDetectionEnabled_,66),this.hitRenderInstructions_){var o=(0,T.Bb)(e.coordinateToPixelTransform,t.slice()),a=this.hitRenderTarget_.readPixel(o[0]/2,o[1]/2),s=function(t){var e=0,r=256,n=255;return e+=Math.round(t[0]*r*r*r*n),e+=Math.round(t[1]*r*r*n),e+=Math.round(t[2]*r*n),e+Math.round(t[3]*n)}([a[0]/255,a[1]/255,a[2]/255,a[3]/255]),l=this.hitRenderInstructions_[s],u=Math.floor(l).toString(),h=this.getLayer().getSource().getFeatureByUid(u);return h?n(h,this.getLayer(),null):void 0}},e.prototype.renderHitDetection=function(t,e,r,n){if(this.hitVerticesBuffer_.getSize()){var i=e;this.hitRenderTarget_.setSize([Math.floor(t.size[0]/2),Math.floor(t.size[1]/2)]),this.helper.useProgram(this.hitProgram_),this.helper.prepareDrawToRenderTarget(t,this.hitRenderTarget_,!0),this.helper.bindBuffer(this.hitVerticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.hitDetectionAttributes);do{this.helper.makeProjectionTransform(t,this.currentTransform_),(0,T.Tl)(this.currentTransform_,i*n,0),(0,T.lw)(this.currentTransform_,this.invertRenderTransform_),this.helper.applyUniforms(t);var o=this.indicesBuffer_.getSize();this.helper.drawElements(0,o)}while(++i<r)}},e.prototype.disposeInternal=function(){this.worker_.terminate(),this.layer_=null,this.sourceListenKeys_.forEach((function(t){(0,J.JH)(t)})),this.sourceListenKeys_=null,t.prototype.disposeInternal.call(this)},e}(Y);var et=r(1597),rt=r(8711),nt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),it="blur",ot="gradient",at="radius",st=["#00f","#0ff","#0f0","#ff0","#f00"];const lt=function(t){function e(e){var r=this,n=e||{},i=(0,s.kp)({},n);delete i.gradient,delete i.radius,delete i.blur,delete i.weight,(r=t.call(this,i)||this).gradient_=null,r.addChangeListener(ot,r.handleGradientChanged_),r.setGradient(n.gradient?n.gradient:st),r.setBlur(void 0!==n.blur?n.blur:15),r.setRadius(void 0!==n.radius?n.radius:8);var o=n.weight?n.weight:"weight";return r.weightFunction_="string"==typeof o?function(t){return t.get(o)}:o,r.setRenderOrder(null),r}return nt(e,t),e.prototype.getBlur=function(){return this.get(it)},e.prototype.getGradient=function(){return this.get(ot)},e.prototype.getRadius=function(){return this.get(at)}
8,e.prototype.handleGradientChanged_=function(){this.gradient_=function(t){for(var e=1,r=256,n=(0,rt.Y)(e,r),i=n.createLinearGradient(0,0,e,r),o=1/(t.length-1),a=0,s=t.length;a<s;++a)i.addColorStop(a*o,t[a]);return n.fillStyle=i,n.fillRect(0,0,e,r),n.canvas}(this.getGradient())},e.prototype.setBlur=function(t){this.set(it,t)},e.prototype.setGradient=function(t){this.set(ot,t)},e.prototype.setRadius=function(t){this.set(at,t)},e.prototype.createRenderer=function(){return new tt(this,{className:this.getClassName(),attributes:[{name:"weight",callback:function(t){var e=this.weightFunction_(t);return void 0!==e?(0,et.qE)(e,0,1):1}.bind(this)}],vertexShader:"\n        precision mediump float;\n        uniform mat4 u_projectionMatrix;\n        uniform mat4 u_offsetScaleMatrix;\n        uniform float u_size;\n        attribute vec2 a_position;\n        attribute float a_index;\n        attribute float a_weight;\n\n        varying vec2 v_texCoord;\n        varying float v_weight;\n\n        void main(void) {\n          mat4 offsetMatrix = u_offsetScaleMatrix;\n          float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n          float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n          vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n          gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n          float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n          float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n          v_texCoord = vec2(u, v);\n          v_weight = a_weight;\n        }",fragmentShader:"\n        precision mediump float;\n        uniform float u_blurSlope;\n\n        varying vec2 v_texCoord;\n        varying float v_weight;\n\n        void main(void) {\n          vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n          float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n          float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n          float alpha = smoothstep(0.0, 1.0, value) * v_weight;
8\n          gl_FragColor = vec4(alpha, alpha, alpha, alpha);\n        }",hitVertexShader:"\n        precision mediump float;\n        uniform mat4 u_projectionMatrix;\n        uniform mat4 u_offsetScaleMatrix;\n        uniform float u_size;\n        attribute vec2 a_position;\n        attribute float a_index;\n        attribute float a_weight;\n        attribute vec4 a_hitColor;\n\n        varying vec2 v_texCoord;\n        varying float v_weight;\n        varying vec4 v_hitColor;\n\n        void main(void) {\n          mat4 offsetMatrix = u_offsetScaleMatrix;\n          float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n          float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n          vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n          gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n          float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n          float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n          v_texCoord = vec2(u, v);\n          v_hitColor = a_hitColor;\n          v_weight = a_weight;\n        }",hitFragmentShader:"\n        precision mediump float;\n        uniform float u_blurSlope;\n\n        varying vec2 v_texCoord;\n        varying float v_weight;\n        varying vec4 v_hitColor;\n\n        void main(void) {\n          vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n          float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n          float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n          float alpha = smoothstep(0.0, 1.0, value) * v_weight;\n          if (alpha < 0.05) {\n            discard;\n          }\n\n          gl_FragColor = v_hitColor;\n        }",uniforms:{u_size:function(){return 2*(this.get(at)+this.get(it))}.bind(this),u_blurSlope:function(){return this.get(at)/Math.max(1,this.get(it))}.bind(this)},postProcesses:[{fragmentShader:"\n            precision mediump float;\n\n            uniform sampler2D u_image;\n            uniform sampler2D u_gradientTexture;\n            uniform float u_opacity;\n\n            varying vec2 v_texCoord;\n\n            void main() {\n              vec4 color = texture2D(u_image, v_texCoord);\n              gl_FragColor.a = color.a * u_opacity;\n              gl_FragColor.rgb = texture2D(u_gradientTexture, vec2(0.5, color.a)).rgb;\n              gl_FragColor.rgb *= gl_FragColor.a;\n            }",uniforms:{u_gradientTexture:function(){return this.gradient_}.bind(this),u_opacity:function(){return this.getOpacity()}.bind(this)}}]})},e.prototype.renderDeclutter=function(){},e}(n.A)},764:(t,e,r)=>{"use strict";r.d(e,{A:()=>p,l:()=>f});var n,i=r(8620),o=r(6837),a=r(5332),s=r(3984),l=r(588),u=r(3530),h=r(9438),c=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function f(t,e){if(!t.visible)return!1;var r=e.resolution;if(r<t.minResolution||r>=t.maxResolution)return!1;var n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}const p=function(t){function e(e){var r=this,n=(0,u.kp)({},e);delete n.source,(r=t.call(this,n)||this).on,r.once,r.un,r.mapPrecomposeKey_=null,r.mapRenderKey_=null,r.sourceChangeKey_=null,r.renderer_=null,r.rendered=!1,e.render&&(r.render=e.render),e.map&&r.setMap(e.map),r.addChangeListener(a.A.SOURCE,r.handleSourcePropertyChange_);var i=e.source?e.source:null;return r.setSource(i),r}return c(e,t),e.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},e.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},e.prototype.getSource=function(){return this.get(a.A.SOURCE)||null},e.prototype.getRenderSource=function(){return this.getSource()},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():"undefined"},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&((0,h.JH)(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=(0,h.KT)(t,o.A.CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.getFeatures=function(t){return this.renderer_?this.renderer_.getFeatures(t):new Promise((function(t){return t([])}))},e.prototype.getData=function(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null},e.prototype.render=function(t,e){var r=this.getRenderer();if(r.prepareFrame(t))return this.rendered=!0,r.renderFrame(t,e)},e.prototype.unrender=function(){this.rendered=!1},e.prototype.setMapInternal=function(t){t||this.unrender(),this.set(a.A.MAP,t)},e.prototype.getMapInternal=function(){return this.get(a.A.MAP)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&((0,h.JH)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,h.JH)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,h.KT)(t,s.A.PRECOMPOSE,(function(t){var e=t.frameState.layerStatesArray,r=this.getLayerState(!1);(0,l.v)(!e.some((function(t){return t.layer===r.layer})),67),e.push(r)}),this),this.mapRenderKey_=(0,h.KT)(this,o.A.CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(a.A.SOURCE,t)},e.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},e.prototype.hasRenderer=function(){return!!this.renderer_},e.prototype.createRenderer=function(){return null},e.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),t.prototype.disposeInternal.call(this)},e}(i.A)},5332:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},3504:(t,e,r)=>{"use strict";r.d(e,{A:()=>S});var n=r(764);const i="preload",o="useInterimTilesOnError";var a,s=r(3530),l=(a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},a(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const u=function(t){function e(e){var r=this,n=e||{},i=(0,s.kp)({},n);return delete i.preload,delete i.useInterimTilesOnError,(r=t.call(this,i)||this).on,r.once,r.un,r.setPreload(void 0!==n.preload?n.preload:0),r.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),r}return l(e,t),e.prototype.getPreload=function(){return this.get(i)},e.prototype.setPreload=function(t){this.set(i,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(o)},e.prototype.setUseInterimTilesOnError=function(t){this.set(o,t)},e.prototype.getData=function(e){return t.prototype.getData.call(this,e)},e}(n.A);var h=r(6769),c=r(190),f=r(7404),p=r(1110),d=r(1078),g=r(6843),_=r(9703),y=r(915),m=r(7083),v=r(4087),w=r(6514),x=r(6782),b=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const E=function(t){function e(e){var r=t.call(this,e)||this;return r.extentChanged=!0,r.renderedExtent_=null,r.renderedPixelRatio,r.renderedProjection=null,r.renderedRevision,r.renderedTiles=[],r.newTiles_=!1,r.tmpExtent=(0,y.createEmpty)(),r.tmpTileRange_=new p.A(0,0,0,0),r}return b(e,t),e.prototype.isDrawableTile=function(t){var e=this.getLayer(),r=t.getState(),n=e.getUseInterimTilesOnError();return r==d.A.LOADED||r==d.A.EMPTY||r==d.A.ERROR&&!n},e.prototype.getTile=function(t,e,r,n){var i=n.pixelRatio,o=n.viewState.projection,a=this.getLayer(),s=a.getSource().getTile(t,e,r,i,o);return s.getState()==d.A.ERROR&&(a.getUseInterimTilesOnError()?a.getPreload()>0&&(this.newTiles_=!0):s.setState(d.A.LOADED)),this.isDrawableTile(s)||(s=s.getInterimTile()),s},e.prototype.getData=function(t){var e=this.frameState;if(!e)return null;var r=this.getLayer(),n=(0,_.Bb)(e.pixelToCoordinateTransform,t.slice()),i=r.getExtent();if(i&&!(0,y.containsCoordinate)(i,n))return null;for(var o=e.pixelRatio,a=e.viewState.projection,s=e.viewState,l=r.getRenderSource(),u=l.getTileGridForProjection(s.projection),h=l.getTilePixelRatio(e.pixelRatio),p=u.getZForResolution(s.resolution);p>
8=u.getMinZoom();--p){var g=u.getTileCoordForCoordAndZ(n,p),m=l.getTile(p,g[1],g[2],o,a);if(!(m instanceof c.A||m instanceof f.A))return null;if(m.getState()===d.A.LOADED){var v=u.getOrigin(p),w=(0,x.xq)(u.getTileSize(p)),b=u.getResolution(p),E=Math.floor(h*((n[0]-v[0])/b-g[1]*w[0])),A=Math.floor(h*((v[1]-n[1])/b-g[2]*w[1])),S=Math.round(h*l.getGutterForProjection(s.projection));return this.getImageData(m.getImage(),E+S,A+S)}}return null},e.prototype.loadedTileCallback=function(e,r,n){return!!this.isDrawableTile(n)&&t.prototype.loadedTileCallback.call(this,e,r,n)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var r=t.layerStatesArray[t.layerIndex],n=t.viewState,i=n.projection,o=n.resolution,a=n.center,l=n.rotation,u=t.pixelRatio,h=this.getLayer(),c=h.getSource(),f=c.getRevision(),p=c.getTileGridForProjection(i),x=p.getZForResolution(o,c.zDirection),b=p.getResolution(x),E=t.extent,A=t.viewState.resolution,S=c.getTilePixelRatio(u),C=Math.round((0,y.getWidth)(E)/A*u),T=Math.round((0,y.getHeight)(E)/A*u),P=r.extent&&(0,m.fromUserExtent)(r.extent,i);P&&(E=(0,y.getIntersection)(E,(0,m.fromUserExtent)(r.extent,i)));var I=b*C/2/S,O=b*T/2/S,R=[a[0]-I,a[1]-O,a[0]+I,a[1]+O],L=p.getTileRangeForExtentAndZ(E,x),k={};k[x]={};var M=this.createLoadedTileFinder(c,i,k),F=this.tmpExtent,D=this.tmpTileRange_;this.newTiles_=!1;for(var j=l?(0,y.getRotatedViewport)(n.center,A,l,t.size):void 0,U=L.minX;U<=L.maxX;++U)for(var G=L.minY;G<=L.maxY;++G)if(!l||p.tileCoordIntersectsViewport([x,U,G],j)){var N=this.getTile(x,U,G,t);if(this.isDrawableTile(N)){var B=(0,v.v6)(this);if(N.getState()==d.A.LOADED)k[x][N.tileCoord.toString()]=N,(ht=N.inTransition(B))&&1!==r.opacity&&(N.endTransition(B),ht=!1),this.newTiles_||!ht&&-1!==this.renderedTiles.indexOf(N)||(this.newTiles_=!0);if(1===N.getAlpha(B,t.time))continue}var z=p.getTileCoordChildTileRange(N.tileCoord,D,F),V=!1;z&&(V=M(x+1,z)),V||p.forEachTileCoordParentTileRange(N.tileCoord,M,D,F)}var X=b/o*u/S;(0,_.Zz)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/u,1/u,l,-C/2,-T/2);var K=(0,_.dI)(this.pixelTransform);this.useContainer(e,K,this.getBackground(t));var W=this.context,H=W.canvas;(0,_.T9)(this.inversePixelTransform,this.pixelTransform),(0,_.Zz)(this.tempTransform,C/2,T/2,X,X,0,-C/2,-T/2),H.width!=C||H.height!=T?(H.width=C,H.height=T):this.containerReused||W.clearRect(0,0,C,T),P&&this.clipUnrotated(W,t,P),c.getInterpolate()||(0,s.kp)(W,g.A),this.preRender(W,t),this.renderedTiles.length=0;var Y,Z,q,$=Object.keys(k).map(Number);$.sort(w.qA),1!==r.opacity||this.containerReused&&!c.getOpaque(t.viewState.projection)?(Y=[],Z=[]):$=$.reverse();for(var J=$.length-1;J>=0;--J){var Q=$[J],tt=c.getTilePixelSize(Q,u,i),et=p.getResolution(Q)/b,rt=tt[0]*et*X,nt=tt[1]*et*X,it=p.getTileCoordForCoordAndZ((0,y.getTopLeft)(R),Q),ot=p.getTileCoordExtent(it),at=(0,_.Bb)(this.tempTransform,[S*(ot[0]-R[0])/b,S*(R[3]-ot[3])/b]),st=S*c.getGutterForProjection(i),lt=k[Q];for(var ut in lt){var ht,ct=(N=lt[ut]).tileCoord,ft=it[1]-ct[1],pt=Math.round(at[0]-(ft-1)*rt),dt=it[2]-ct[2],gt=Math.round(at[1]-(dt-1)*nt),_t=pt-(U=Math.round(at[0]-ft*rt)),yt=gt-(G=Math.round(at[1]-dt*nt)),mt=x===Q,vt=!1;if(!(ht=mt&&1!==N.getAlpha((0,v.v6)(this),t.time)))if(Y){q=[U,G,U+_t,G,U+_t,G+yt,U,G+yt];for(var wt=0,xt=Y.length;wt<xt;++wt)if(x!==Q&&Q<Z[wt]){var bt=Y[wt];(0,y.intersects)([U,G,U+_t,G+yt],[bt[0],bt[3],bt[4],bt[7]])&&(vt||(W.save(),vt=!0),W.beginPath(),W.moveTo(q[0],q[1]),W.lineTo(q[2],q[3]),W.lineTo(q[4],q[5]),W.lineTo(q[6],q[7]),W.moveTo(bt[6],bt[7]),W.lineTo(bt[4],bt[5]),W.lineTo(bt[2],bt[3]),W.lineTo(bt[0],bt[1]),W.clip())}Y.push(q),Z.push(Q)}else W.clearRect(U,G,_t,yt);this.drawTileImage(N,t,U,G,_t,yt,st,mt),Y&&!ht?(vt&&W.restore(),this.renderedTiles.unshift(N)):this.renderedTiles.push(N),this.updateUsedTiles(t.usedTiles,c,N)}}return this.renderedRevision=f,this.renderedResolution=b,this.extentChanged=!this.renderedExtent_||!(0,y.equals)(this.renderedExtent_,R),this.renderedExtent_=R,this.renderedPixelRatio=u,this.renderedProjection=i,this.manageTilePyramid(t,c,p,u,i,E,x,h.getPreload()),this.scheduleExpireCache(t,c),this.postRender(W,t),r.extent&&W.restore(
8),(0,s.kp)(W,g.V),K!==H.style.transform&&(H.style.transform=K),this.container},e.prototype.drawTileImage=function(t,e,r,n,i,o,a,s){var l=this.getTileImage(t);if(l){var u=(0,v.v6)(this),h=e.layerStatesArray[e.layerIndex],c=h.opacity*(s?t.getAlpha(u,e.time):1),f=c!==this.context.globalAlpha;f&&(this.context.save(),this.context.globalAlpha=c),this.context.drawImage(l,a,a,l.width-2*a,l.height-2*a,r,n,i,o),f&&this.context.restore(),c!==h.opacity?e.animate=!0:s&&t.endTransition(u)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getTileImage=function(t){return t.getImage()},e.prototype.scheduleExpireCache=function(t,e){if(e.canExpireCache()){var r=function(t,e,r){var n=(0,v.v6)(t);n in r.usedTiles&&t.expireCache(r.viewState.projection,r.usedTiles[n])}.bind(null,e);t.postRenderFunctions.push(r)}},e.prototype.updateUsedTiles=function(t,e,r){var n=(0,v.v6)(e);n in t||(t[n]={}),t[n][r.getKey()]=!0},e.prototype.manageTilePyramid=function(t,e,r,n,i,o,a,s,l){var u=(0,v.v6)(e);u in t.wantedTiles||(t.wantedTiles[u]={});var h,c,f,p,g,_,m=t.wantedTiles[u],w=t.tileQueue,x=r.getMinZoom(),b=t.viewState.rotation,E=b?(0,y.getRotatedViewport)(t.viewState.center,t.viewState.resolution,b,t.size):void 0,A=0;for(_=x;_<=a;++_)for(c=r.getTileRangeForExtentAndZ(o,_,c),f=r.getResolution(_),p=c.minX;p<=c.maxX;++p)for(g=c.minY;g<=c.maxY;++g)b&&!r.tileCoordIntersectsViewport([_,p,g],E)||(a-_<=s?(++A,(h=e.getTile(_,p,g,n,i)).getState()==d.A.IDLE&&(m[h.getKey()]=!0,w.isKeyQueued(h.getKey())||w.enqueue([h,u,r.getTileCoordCenter(h.tileCoord),f])),void 0!==l&&l(h)):e.useTile(_,p,g,i));e.updateCacheSize(A,i)},e}(h.A);var A=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const S=function(t){function e(e){return t.call(this,e)||this}return A(e,t),e.prototype.createRenderer=function(){return new E(this)},e}(u)},3346:(t,e,r)=>{"use strict";r.d(e,{A:()=>yt});var n=r(6323),i={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},o=[i.FILL],a=[i.STROKE],s=[i.BEGIN_PATH],l=[i.CLOSE_PATH];const u=i;var h,c=r(1580),f=r(2826),p=r(7295),d=r(915),g=r(8774),_=r(6514),y=r(6361),m=(h=function(t,e){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},h(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),v=function(t){function e(e,r,n,i){var o=t.call(this)||this;return o.tolerance=e,o.maxExtent=r,o.pixelRatio=i,o.maxLineWidth=0,o.resolution=n,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return m(e,t),e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))},e.prototype.appendFlatPointCoordinates=function(t,e){for(var r=this.getBufferedMaxExtent(),n=this.tmpCoordinate_,i=this.coordinates,o=i.length,a=0,s=t.length;a<s;a+=e)n[0]=t[a],n[1]=t[a+1],(0,d.containsCoordinate)(r,n)&&(i[o++]=n[0],i[o++]=n[1]);return o},e.prototype.appendFlatLineCoordinates=function(t,e,r,n,i,o){var a=this.coordinates,s=a.length,l=this.getBufferedMaxExtent();o&&(e+=n);var u,h,f,p=t[e],g=t[e+1],_=this.tmpCoordinate_,y=!0;for(u=e+n;u<r;u+=n)_[0]=t[u],_[1]=t[u+1],(f=(0,d.coordinateRelationship)(l,_))!==h?(y&&(a[s++]=p,a[s++]=g,y=!1),a[s++]=_[0],a[s++]=_[1]):f===c.A.INTERSECTING?(a[s++]=_[0],a[s++]=_[1],y=!1):y=!0,p=_[0],g=_[1],h=f;return(i&&y||u===e+n)&&(a[s++]=p,a[s++]=g),s},e.prototype.drawCustomCoordinates_=function(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o){var s=r[o],l=this.appendFlatLineCoordinates(t,e,s,n,!1,!1);i.push(l),e=s}return e},e.prototype.drawCustom=function(t,e,r,n){this.beginGeometry(t,e);var i,o,a,s,l,h=t.getType(),c=t.getStride(),f=this.coordinates.length;switch(h){case"MultiPolygon":i=t.getOrientedFlatCoordinates(),s=[];var p=t.getEndss();l=0;for(var d=0,g=p.length;d<g;++d){var _=[];l=this.drawCustomCoordinates_(i,l,p[d],c,_),s.push(_)}this.instructions.push([u.CUSTOM,f,s,t,r,y.Dz]),this.hitDetectionInstructions.push([u.CUSTOM,f,s,t,n||r,y.Dz]);break;case"Polygon":case"MultiLineString":a=[],i="Polygon"==h?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),l=this.drawCustomCoordinates_(i,0,t.getEnds(),c,a),this.instructions.push([u.CUSTOM,f,a,t,r,y.cD]),this.hitDetectionInstructions.push([u.CUSTOM,f,a,t,n||r,y.cD]);break;
8case"LineString":case"Circle":i=t.getFlatCoordinates(),o=this.appendFlatLineCoordinates(i,0,i.length,c,!1,!1),this.instructions.push([u.CUSTOM,f,o,t,r,y.n2]),this.hitDetectionInstructions.push([u.CUSTOM,f,o,t,n||r,y.n2]);break;case"MultiPoint":i=t.getFlatCoordinates(),(o=this.appendFlatPointCoordinates(i,c))>f&&(this.instructions.push([u.CUSTOM,f,o,t,r,y.n2]),this.hitDetectionInstructions.push([u.CUSTOM,f,o,t,n||r,y.n2]));break;case"Point":i=t.getFlatCoordinates(),this.coordinates.push(i[0],i[1]),o=this.coordinates.length,this.instructions.push([u.CUSTOM,f,o,t,r]),this.hitDetectionInstructions.push([u.CUSTOM,f,o,t,n||r])}this.endGeometry(e)},e.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[u.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[u.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t,e=this.hitDetectionInstructions;e.reverse();var r,n,i=e.length,o=-1;for(t=0;t<i;++t)(n=(r=e[t])[0])==u.END_GEOMETRY?o=t:n==u.BEGIN_GEOMETRY&&(r[2]=t,(0,_.gI)(this.hitDetectionInstructions,o,t),o=-1)},e.prototype.setFillStrokeStyle=function(t,e){var r=this.state;if(t){var n=t.getColor();r.fillStyle=(0,p.F)(n||g.qY)}else r.fillStyle=void 0;if(e){var i=e.getColor();r.strokeStyle=(0,p.F)(i||g.NT);var o=e.getLineCap();r.lineCap=void 0!==o?o:g._m;var a=e.getLineDash();r.lineDash=a?a.slice():g.Oq;var s=e.getLineDashOffset();r.lineDashOffset=s||g.vk;var l=e.getLineJoin();r.lineJoin=void 0!==l?l:g._K;var u=e.getWidth();r.lineWidth=void 0!==u?u:g.aq;var h=e.getMiterLimit();r.miterLimit=void 0!==h?h:g.eL,r.lineWidth>this.maxLineWidth&&(this.maxLineWidth=r.lineWidth,this.bufferedMaxExtent_=null)}else r.strokeStyle=void 0,r.lineCap=void 0,r.lineDash=null,r.lineDashOffset=void 0,r.lineJoin=void 0,r.lineWidth=void 0,r.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,r=[u.SET_FILL_STYLE,e];return"string"!=typeof e&&r.push(!0),r},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[u.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e){var r=t.fillStyle;"string"==typeof r&&t.currentFillStyle==r||(void 0!==r&&this.instructions.push(e.call(this,t)),t.currentFillStyle=r)},e.prototype.updateStrokeStyle=function(t,e){var r=t.strokeStyle,n=t.lineCap,i=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,s=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=r||t.currentLineCap!=n||i!=t.currentLineDash&&!(0,_.aI)(t.currentLineDash,i)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=s||t.currentMiterLimit!=l)&&(void 0!==r&&e.call(this,t),t.currentStrokeStyle=r,t.currentLineCap=n,t.currentLineDash=i,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=s,t.currentMiterLimit=l)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var e=[u.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,d.clone)(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;(0,d.buffer)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(f.A);const w=v;var x=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const b=function(t){function e(e,r,n,i){var o=t.call(this,e,r,n,i)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anch
vendor: 4,245 bytes, line 8
8orX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterMode_=void 0,o.declutterImageWithText_=void 0,o}return x(e,t),e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var r=t.getFlatCoordinates(),n=t.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(r,n);this.instructions.push([u.DRAW_IMAGE,i,o,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([u.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var r=t.getFlatCoordinates(),n=t.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(r,n);this.instructions.push([u.DRAW_IMAGE,i,o,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([u.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,t.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,e){var r=t.getAnchor(),n=t.getSize(),i=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=r[0],this.anchorY_=r[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=n[1],this.opacity_=t.getOpacity(),this.originX_=i[0],this.originY_=i[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=n[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e},e}(w);var E=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const A=function(t){function e(e,r,n,i){return t.call(this,e,r,n,i)||this}return E(e,t),e.prototype.drawFlatCoordinates_=function(t,e,r,n){var i=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,r,n,!1,!1),a=[u.MOVE_TO_LINE_TO,i,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),r},e.prototype.drawLineString=function(t,e){var r=this.state,n=r.strokeStyle,i=r.lineWidth;if(void 0!==n&&void 0!==i){this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([u.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miter
8Limit,g.Oq,g.vk],s);var o=t.getFlatCoordinates(),l=t.getStride();this.drawFlatCoordinates_(o,0,o.length,l),this.hitDetectionInstructions.push(a),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var r=this.state,n=r.strokeStyle,i=r.lineWidth;if(void 0!==n&&void 0!==i){this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([u.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset],s);for(var o=t.getEnds(),l=t.getFlatCoordinates(),h=t.getStride(),c=0,f=0,p=o.length;f<p;++f)c=this.drawFlatCoordinates_(l,c,o[f],h);this.hitDetectionInstructions.push(a),this.endGeometry(e)}},e.prototype.finish=function(){var e=this.state;return null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(a),this.reverseHitDetectionInstructions(),this.state=null,t.prototype.finish.call(this)},e.prototype.applyStroke=function(e){null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(a),e.lastStroke=this.coordinates.length),e.lastStroke=0,t.prototype.applyStroke.call(this,e),this.instructions.push(s)},e}(w);var S=r(3671),C=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const T=function(t){function e(e,r,n,i){return t.call(this,e,r,n,i)||this}return C(e,t),e.prototype.drawFlatCoordinatess_=function(t,e,r,n){var i=this.state,h=void 0!==i.fillStyle,c=void 0!==i.strokeStyle,f=r.length;this.instructions.push(s),this.hitDetectionInstructions.push(s);for(var p=0;p<f;++p){var d=r[p],g=this.coordinates.length,_=this.appendFlatLineCoordinates(t,e,d,n,!0,!c),y=[u.MOVE_TO_LINE_TO,g,_];this.instructions.push(y),this.hitDetectionInstructions.push(y),c&&(this.instructions.push(l),this.hitDetectionInstructions.push(l)),e=d}return h&&(this.instructions.push(o),this.hitDetectionInstructions.push(o)),c&&(this.instructions.push(a),this.hitDetectionInstructions.push(a)),e},e.prototype.drawCircle=function(t,e){var r=this.state,n=r.fillStyle,i=r.strokeStyle;if(void 0!==n||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([u.SET_FILL_STYLE,g.qY]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([u.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);var l=t.getFlatCoordinates(),h=t.getStride(),c=this.coordinates.length;this.appendFlatLineCoordinates(l,0,l.length,h,!1,!1);var f=[u.CIRCLE,c];this.instructions.push(s,f),this.hitDetectionInstructions.push(s,f),void 0!==r.fillStyle&&(this.instructions.push(o),this.hitDetectionInstructions.push(o)),void 0!==r.strokeStyle&&(this.instructions.push(a),this.hitDetectionInstructions.push(a)),this.endGeometry(e)}},e.prototype.drawPolygon=function(t,e){var r=this.state,n=r.fillStyle,i=r.strokeStyle;if(void 0!==n||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([u.SET_FILL_STYLE,g.qY]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([u.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);var o=t.getEnds(),a=t.getOrientedFlatCoordinates(),s=t.getStride();this.drawFlatCoordinatess_(a,0,o,s),this.endGeometry(e)}},e.prototype.drawMultiPolygon=function(t,e){var r=this.state,n=r.fillStyle,i=r.strokeStyle;if(void 0!==n||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([u.SET_FILL_STYLE,g.qY]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([u.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);for(var o=t.getEndss(),a=t.getOrientedFlatCoordinates(),s=t.getStride(),l=0,h=0,c=o.length;h<c;++h)l=this.drawFlatCoordinatess_(a,l,o[h],s);this.endGeometry(e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var e=this.tolerance;if(0!==e)for(var r=this.coordinates,n=0,i=r.length;n<i;++n)r[n]=(0,S.n$)(r[n],e);return t.prototype.finish.call(this)},e.prototype.setFillStrokeStyles_=function(){var t=this.state;void 0!==t.fillStyle&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)},e}(w);var P=r(299),I=r(4087);function O(t,e,r,n,i){var o,a,s,l,u,h,c,f,p,d=r,g=r,_=0,y=0,m=r;
vendor: 10,636 bytes, line 8
8for(o=r;o<n;o+=i){var v=e[o],w=e[o+1];void 0!==l&&(f=v-l,p=w-u,s=Math.sqrt(f*f+p*p),void 0!==h&&(y+=a,Math.acos((h*f+c*p)/(a*s))>t&&(y>_&&(_=y,d=m,g=o),y=0,m=o-i)),a=s,h=f,c=p),l=v,u=w}return(y+=s)>_?[m,o]:[d,g]}var R=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),L={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},k=function(t){function e(e,r,n,i){var o=t.call(this,e,r,n,i)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return R(e,t),e.prototype.finish=function(){var e=t.prototype.finish.call(this);return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e},e.prototype.drawText=function(t,e){var r=this.textFillState_,n=this.textStrokeState_,i=this.textState_;if(""!==this.text_&&i&&(r||n)){var o=this.coordinates,a=o.length,s=t.getType(),l=null,h=t.getStride();if(i.placement!==P.A.LINE||"LineString"!=s&&"MultiLineString"!=s&&"Polygon"!=s&&"MultiPolygon"!=s){var c=i.overflow?null:[];switch(s){case"Point":case"MultiPoint":l=t.getFlatCoordinates();break;case"LineString":l=t.getFlatMidpoint();break;case"Circle":l=t.getCenter();break;case"MultiLineString":l=t.getFlatMidpoints(),h=2;break;case"Polygon":l=t.getFlatInteriorPoint(),i.overflow||c.push(l[2]/this.resolution),h=3;break;case"MultiPolygon":var f=t.getFlatInteriorPoints();l=[];for(S=0,C=f.length;S<C;S+=3)i.overflow||c.push(f[S+2]/this.resolution),l.push(f[S],f[S+1]);if(0===l.length)return;h=2}if((F=this.appendFlatPointCoordinates(l,h))===a)return;if(c&&(F-a)/2!=l.length/h){var p=a/2;c=c.filter((function(t,e){var r=o[2*(p+e)]===l[e*h]&&o[2*(p+e)+1]===l[e*h+1];return r||--p,r}))}this.saveTextStates_(),(i.backgroundFill||i.backgroundStroke)&&(this.setFillStrokeStyle(i.backgroundFill,i.backgroundStroke),i.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),i.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);var _=i.padding;if(_!=g.Tq&&(i.scale[0]<0||i.scale[1]<0)){var y=i.padding[0],m=i.padding[1],v=i.padding[2],w=i.padding[3];i.scale[0]<0&&(m=-m,w=-w),i.scale[1]<0&&(y=-y,v=-v),_=[y,m,v,w]}var x=this.pixelRatio;this.instructions.push([u.DRAW_IMAGE,a,F,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,_==g.Tq?g.Tq:_.map((function(t){return t*x})),!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,c]);var b=1/x;this.hitDetectionInstructions.push([u.DRAW_IMAGE,a,F,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[b,b],NaN,void 0,this.declutterImageWithText_,_,!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,c]),this.endGeometry(e)}else{if(!(0,d.intersects)(this.getBufferedMaxExtent(),t.getExtent()))return;var E=void 0;if(l=t.getFlatCoordinates(),"LineString"==s)E=[l.length];else if("MultiLineString"==s)E=t.getEnds();else if("Polygon"==s)E=t.getEnds().slice(0,1);else if("MultiPolygon"==s){var A=t.getEndss();E=[];for(var S=0,C=A.length;S<C;++S)E.push(A[S][0])}this.beginGeometry(t,e);for(var T=i.textAlign,I=0,R=void 0,L=0,k=E.length;L<k;++L){if(null==T){var M=O(i.maxAngle,l,I,E[L],h);I=M[0],R=M[1]}else R=E[L];for(var S=I;S<R;S+=h)o.push(l[S],l[S+1]);var F=o.length;I=E[L],this.drawChars_(a,F),a=F}this.endGeometry(e)}}},e.prototype.saveTextStates_=function(){var t=this.textStrokeState_,e=this.textState_,r=this.textFillState_,n=this.strokeKey_;t&&(n in this.strokeStates||(this.strokeStates[n]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));var i=this.textKey_;i in this.textStates||(this.textStates[i]={font:e.font,textAlign:e.textAlign||g.MY,justify:e.justify,textBaseline:e.textBaseline||g.M8,scale:e.scale});var o=this.fillKey_;r&&(o in this.fillStates||(this.fillStates[o]={fillStyle:r.fillStyle}))},e.prototype.drawChars_=function(t,e){var r=this.textStrokeState_,n=this.textState_,i=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();var s=this.pixelRatio,l=L[n.textBaseline],h=this.textOffsetY_*s,c=this.text_,f=r?r.lineWidth*Math.abs(n.scale[0])/2:0;this.instructions.push([u.DRAW_CHARS,t,e,l,n.overflow,a,n.maxAngle,s,h,i,f*s,c,o,1]),this.hitDetectionInstructions.push([u.DRAW_CHARS,t,e,l,n.overflow,a,n.maxAngle,1,h,i,f,c,o,1/s])},e.prototype.setTextStyle=function(t,e){var r,n,i;if(t){var o=t.getFill();o?((n=this.textFillState_)||(n={},this.textFillState_=n),n.fillStyle=(0,p.F)(o.getColor()||g.qY)):(n=null,this.textFillState_=n);var a=t.getStroke();if(a){(i=this.textStrokeState_)||(i={},this.textStrokeState_=i);var s=a.getLineDash(),l=a.getLineDashOffset(),u=a.getWidth(),h=a.getMiterLimit();i.lineCap=a.getLineCap()||g._m,i.lineDash=s?s.slice():g.Oq,i.lineDashOffset=void 0===l?g.vk:l,i.lineJoin=a.getLineJoin()||g._K,i.lineWidth=void 0===u?g.aq:u,i.miterLimit=void 0===h?g.eL:h,i.strokeStyle=(0,p.F)(a.getColor()||g.NT)}else i=null,this.textStrokeState_=i;r=this.textState_;var c=t.getFont()||g.ZV;(0,g.fZ)(c);var f=t.getScaleArray();r.overflow=t.getOverflow(),r.font=c,r.maxAngle=t.getMaxAngle(),r.placement=t.getPlacement(),r.textAlign=t.getTextAlign(),r.justify=t.getJustify(),r.textBaseline=t.getTextBaseline()||g.M8,r.backgroundFill=t.getBackgroundFill(),r.backgroundStroke=t.getBackgroundStroke(),r.padding=t.getPadding()||g.Tq,r.scale=void 0===f?[1,1]:f;var d=t.getOffsetX(),_=t.getOffsetY(),y=t.getRotateWithView(),m=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===d?0:d,this.textOffsetY_=void 0===_?0:_,this.textRotateWithView_=void 0!==y&&y,this.textRotation_=void 0===m?0:m,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:(0,I.v6)(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=r.font+r.scale+(r.textAlign||"?")+(r.justify||"?")+(r.textBaseline||"?"),this.fillKey_=n?"string"==typeof n.fillStyle?n.fillStyle:"|"+(0,I.v6)(n.fillStyle):""}else this.text_="";this.declutterImageWithText_=e},e}(w);var M={Circle:T,Default:w,Image:b,LineString:A,Polygon:T,Text:k};const F=function(){function t(t,e,r,n){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=n,this.resolution_=r,this.buildersByZIndex_={}}return t.prototype.finish=function(){var t={};for(var e in this.buildersByZIndex_){t[e]=t[e]||{};var r=this.buildersByZIndex_[e];for(var n in r){var i=r[n].finish();t[e][n]=i}}return t},t.prototype.getBuilder=function(t,e){var r=void 0!==t?t.toString():"0",n=this.buildersByZIndex_[r];void 0===n&&(n={},this.buildersByZIndex_[r]=n);var i=n[e];void 0===i&&(i=new(0,M[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[e]=i);return i},t}();var D=r(6769),j=r(7771),U=r(9703),G=r(1597),N=r(7622);function B(t,e,r,n,i,o,a,s,l,u,h,c){var f=t[e],p=t[e+1],d=0,g=0,_=0,y=0;function m(){d=f,g=p,f=t[e+=n],p=t[e+1],y+=_,_=Math.sqrt((f-d)*(f-d)+(p-g)*(p-g))}do{m()}while(e<r-n&&y+_<o);for(var v=0===_?0:(o-y)/_,w=(0,G.Cc)(d,f,v),x=(0,G.Cc)(g,p,v),b=e-n,E=y,A=o+s*l(u,i,h);e<r-n&&y+_<A;)m();v=0===_?0:(A-y)/_;var S,C=(0,G.Cc)(d,f,v),T=(0,G.Cc)(g,p,v);if(c){var P=[w,x,C,T];(0,N.e$)(P,0,4,2,c,P,P),S=P[0]>P[2]}else S=w>C;var I,O=Math.PI,R=[],L=b+n===e;if(_=0,y=E,f=t[e=b],p=t[e+1],L){m(),I=Math.atan2(p-g,f-d),S&&(I+=I>0?-O:O);var k=(C+w)/2,M=(T+x)/2;return R[0]=[k,M,(A-o)/2,I,i],R}for(var F=0,D=(i=i.replace(/\n/g," ")).length;F<D;){m();var j=Math.atan2(p-g,f-d);if(S&&(j+=j>0?-O:O),void 0!==I){var U=j-I;if(U+=U>O?-2*O:U<-O?2*O:0,Math.abs(U)>a)return null}I=j;for(var B=F,z=0;F<D;++F){var V=s*l(u,i[S?D-F-1:F],h);if(e+n<r&&y+_<o+z+V/2)break;z+=V}if(F!==B){var X=S?i.substring(D-B,D-F):i.substring(B,F);v=0===_?0:(o+z/2-y)/_;k=(0,G.Cc)(d,f,v),M=(0,G.Cc)(g,p,v);R.push([k,M,z/2,j,X]),o+=z}}return R}var z=r(904),V=(0,d.createEmpty)(),X=[],K=[],W=[],H=[];function Y(t){return t[3].declutterBox}var Z=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function q(t,e){return"start"!==e&&"end"!==e||Z.test(t)||(e="start"===e?"left":"right"),L[e]}function $(t,e,r){return r>0&&t.push("\n",""),t.push(e,""),t}var J=function(){function t(t,e,r,n){this.overlaps=r,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,U.vt)(),this.hitDetectionInstructions=n.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=n.fillStates||{},this.strokeStates=n.strokeStates||{},this.textStates=n.textStates||{},this.widths_={},this.labels_={}}return t.prototype.createLabel=function(t,e,r,n){var i=t+e+r+n;if(this.labels_[i])return this.labels_[i];var o=n?this.strokeStates[n]:null,a=r?this.fillStates[r]:null,s=this.textStates[e],l=this.pixelRatio,u=[s.scale[0]*l,s.scale[1]*l],h=Array.isArray(t),c=s.justify?L[s.justify]:q(Array.isArray(t)?t[0]:t,s.textAlign||g.MY),f=n&&o.lineWidth?o.lineWidth:0,p=h?t:t.split("\n").reduce($,[]),d=(0,g.jT)(s,p),_=d.width,y=d.height,m=d.widths,v=d.heights,w=d.lineWidths,x=_+f,b=[],E=(x+2)*u[0],A=(y+f)*u[1],S={width:E<0?Math.floor(E):Math.ceil(E),height:A<0?Math.floor(A):Math.ceil(A),contextInstructions:b};(1==u[0]&&1==u[1]||b.push("scale",u),n)&&(b.push("strokeStyle",o.strokeStyle),b.push("lineWidth",f),b.push("lineCap",o.lineCap),b.push("lineJoin",o.lineJoin),b.push("miterLimit",o.miterLimit),(j.Wl?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D).prototype.setLineDash&&(b.push("set
8LineDash",[o.lineDash]),b.push("lineDashOffset",o.lineDashOffset)));r&&b.push("fillStyle",a.fillStyle),b.push("textBaseline","middle"),b.push("textAlign","center");for(var C,T=.5-c,P=c*x+T*f,I=[],O=[],R=0,k=0,M=0,F=0,D=0,U=p.length;D<U;D+=2){var G=p[D];if("\n"!==G){var N=p[D+1]||s.font;N!==C&&(n&&I.push("font",N),r&&O.push("font",N),C=N),R=Math.max(R,v[M]);var B=[G,P+T*m[M]+c*(m[M]-w[F]),.5*(f+R)+k];P+=m[M],n&&I.push("strokeText",B),r&&O.push("fillText",B),++M}else k+=R,R=0,P=c*x+T*f,++F}return Array.prototype.push.apply(b,I),Array.prototype.push.apply(b,O),this.labels_[i]=S,S},t.prototype.replayTextBackground_=function(t,e,r,n,i,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,r),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())},t.prototype.calculateImageOrLabelDimensions_=function(t,e,r,n,i,o,a,s,l,u,h,c,f,p,g,_){var y,m=r-(a*=c[0]),v=n-(s*=c[1]),w=i+l>t?t-l:i,x=o+u>e?e-u:o,b=p[3]+w*c[0]+p[1],E=p[0]+x*c[1]+p[2],A=m-p[3],S=v-p[0];return(g||0!==h)&&(X[0]=A,H[0]=A,X[1]=S,K[1]=S,K[0]=A+b,W[0]=K[0],W[1]=S+E,H[1]=W[1]),0!==h?(y=(0,U.Zz)((0,U.vt)(),r,n,1,1,h,-r,-n),(0,U.Bb)(y,X),(0,U.Bb)(y,K),(0,U.Bb)(y,W),(0,U.Bb)(y,H),(0,d.createOrUpdate)(Math.min(X[0],K[0],W[0],H[0]),Math.min(X[1],K[1],W[1],H[1]),Math.max(X[0],K[0],W[0],H[0]),Math.max(X[1],K[1],W[1],H[1]),V)):(0,d.createOrUpdate)(Math.min(A,A+b),Math.min(S,S+E),Math.max(A,A+b),Math.max(S,S+E),V),f&&(m=Math.round(m),v=Math.round(v)),{drawImageX:m,drawImageY:v,drawImageW:w,drawImageH:x,originX:l,originY:u,declutterBox:{minX:V[0],minY:V[1],maxX:V[2],maxY:V[3],value:_},canvasTransform:y,scale:c}},t.prototype.replayImageOrLabel_=function(t,e,r,n,i,o,a){var s=!(!o&&!a),l=n.declutterBox,u=t.canvas,h=a?a[2]*n.scale[0]/2:0;return l.minX-h<=u.width/e&&l.maxX+h>=0&&l.minY-h<=u.height/e&&l.maxY+h>=0&&(s&&this.replayTextBackground_(t,X,K,W,H,o,a),(0,g.Jw)(t,n.canvasTransform,i,r,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0},t.prototype.fill_=function(t){if(this.alignFill_){var e=(0,U.Bb)(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;t.save(),t.translate(e[0]%r,e[1]%r),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},t.prototype.setStrokeStyle_=function(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},t.prototype.drawLabelWithPointPlacement_=function(t,e,r,n){var i=this.textStates[e],o=this.createLabel(t,e,n,r),a=this.strokeStates[r],s=this.pixelRatio,l=q(Array.isArray(t)?t[0]:t,i.textAlign||g.MY),u=L[i.textBaseline||g.M8],h=a&&a.lineWidth?a.lineWidth:0;return{label:o,anchorX:l*(o.width/s-2*i.scale[0])+2*(.5-l)*h,anchorY:u*o.height/s+2*(.5-u)*h}},t.prototype.execute_=function(t,e,r,n,i,o,a,s){var l;this.pixelCoordinates_&&(0,_.aI)(r,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=(0,N.Rc)(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),(0,U.k3)(this.renderedTransform_,r));for(var h,c,f,p,y,m,v,w,x,b,E,A,S,C,T,P,I=0,O=n.length,R=0,k=0,M=0,F=null,D=null,j=this.coordinateCache_,G=this.viewRotation_,V=Math.round(1e12*Math.atan2(-r[1],r[0]))/1e12,X={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:G},K=this.instructions!=n||this.overlaps?0:200;I<O;){var W=n[I];switch(W[0]){case u.BEGIN_GEOMETRY:S=W[1],P=W[3],S.getGeometry()?void 0===a||(0,d.intersects)(a,P.getExtent())?++I:I=W[2]+1:I=W[2];break;case u.BEGIN_PATH:k>K&&(this.fill_(t),k=0),M>K&&(t.stroke(),M=0),k||M||(t.beginPath(),p=NaN,y=NaN),++I;break;case u.CIRCLE:var H=l[R=W[1]],Z=l[R+1],q=l[R+2]-H,$=l[R+3]-Z,J=Math.sqrt(q*q+$*$);t.moveTo(H+J,Z),t.arc(H,Z,J,0,2*Math.PI,!0),++I;break;case u.CLOSE_PATH:t.closePath(),++I;break;case u.CUSTOM:R=W[1],h=W[2];var Q=W[3],tt=W[4],et=6==W.length?W[5]:void 0;X.geometry=Q,X.feature=S,I in j||(j[I]=[]);var rt=j[I];et?et(l,R,h,2,rt):(rt[0]=l[R],rt[1]=l[R+1],rt.length=2),tt(rt,X),++I;break;case u.DRAW_IMAGE:R=W[1],h=W[2],w=W[3],c=W[4],f=W[5];var nt=W[6],it=W[7],ot=W[8],at=W[9],st=W[10],lt=W[11],ut=W[12],ht=W[13],ct=W[14],ft=W[15];if(!w&&W.length>=20){x=W[19],b=W[20],E=W[21],A=W[22];var pt=this.drawLabelWithPointPlacement_(x,b,E,A);w=pt.label,W[3]=w;var dt=W[23];c=(pt.anchorX-dt)*this.pixelRatio,W[4]=c;var gt=W[24];
vendor: 18,241 bytes, line 8
8f=(pt.anchorY-gt)*this.pixelRatio,W[5]=f,nt=w.height,W[6]=nt,ht=w.width,W[13]=ht}var _t=void 0;W.length>25&&(_t=W[25]);var yt=void 0,mt=void 0,vt=void 0;W.length>17?(yt=W[16],mt=W[17],vt=W[18]):(yt=g.Tq,mt=!1,vt=!1),st&&V?lt+=G:st||V||(lt-=G);for(var wt=0;R<h;R+=2)if(!(_t&&_t[wt++]<ht/this.pixelRatio)){var xt=[t,e,w,Yt=this.calculateImageOrLabelDimensions_(w.width,w.height,l[R],l[R+1],ht,nt,c,f,ot,at,lt,ut,i,yt,mt||vt,S),it,mt?F:null,vt?D:null];if(s){if("none"===ct)continue;if("obstacle"===ct){s.insert(Yt.declutterBox);continue}var bt=void 0,Et=void 0;if(ft){var At=h-R;if(!ft[At]){ft[At]=xt;continue}if(bt=ft[At],delete ft[At],Et=Y(bt),s.collides(Et))continue}if(s.collides(Yt.declutterBox))continue;bt&&(s.insert(Et),this.replayImageOrLabel_.apply(this,bt)),s.insert(Yt.declutterBox)}this.replayImageOrLabel_.apply(this,xt)}++I;break;case u.DRAW_CHARS:var St=W[1],Ct=W[2],Tt=W[3],Pt=W[4];A=W[5];var It=W[6],Ot=W[7],Rt=W[8];E=W[9];var Lt=W[10];x=W[11],b=W[12];var kt=[W[13],W[13]],Mt=this.textStates[b],Ft=Mt.font,Dt=[Mt.scale[0]*Ot,Mt.scale[1]*Ot],jt=void 0;Ft in this.widths_?jt=this.widths_[Ft]:(jt={},this.widths_[Ft]=jt);var Ut=(0,z.k)(l,St,Ct,2),Gt=Math.abs(Dt[0])*(0,g.TA)(Ft,x,jt);if(Pt||Gt<=Ut){var Nt=this.textStates[b].textAlign,Bt=B(l,St,Ct,2,x,(Ut-Gt)*L[Nt],It,Math.abs(Dt[0]),g.TA,Ft,jt,V?0:this.viewRotation_);t:if(Bt){var zt=[],Vt=void 0,Xt=void 0,Kt=void 0,Wt=void 0,Ht=void 0;if(E)for(Vt=0,Xt=Bt.length;Vt<Xt;++Vt){Kt=(Ht=Bt[Vt])[4],Wt=this.createLabel(Kt,b,"",E),c=Ht[2]+(Dt[0]<0?-Lt:Lt),f=Tt*Wt.height+2*(.5-Tt)*Lt*Dt[1]/Dt[0]-Rt;var Yt=this.calculateImageOrLabelDimensions_(Wt.width,Wt.height,Ht[0],Ht[1],Wt.width,Wt.height,c,f,0,0,Ht[3],kt,!1,g.Tq,!1,S);if(s&&s.collides(Yt.declutterBox))break t;zt.push([t,e,Wt,Yt,1,null,null])}if(A)for(Vt=0,Xt=Bt.length;Vt<Xt;++Vt){Kt=(Ht=Bt[Vt])[4],Wt=this.createLabel(Kt,b,A,""),c=Ht[2],f=Tt*Wt.height-Rt;Yt=this.calculateImageOrLabelDimensions_(Wt.width,Wt.height,Ht[0],Ht[1],Wt.width,Wt.height,c,f,0,0,Ht[3],kt,!1,g.Tq,!1,S);if(s&&s.collides(Yt.declutterBox))break t;zt.push([t,e,Wt,Yt,1,null,null])}s&&s.load(zt.map(Y));for(var Zt=0,qt=zt.length;Zt<qt;++Zt)this.replayImageOrLabel_.apply(this,zt[Zt])}}++I;break;case u.END_GEOMETRY:if(void 0!==o){var $t=o(S=W[1],P);if($t)return $t}++I;break;case u.FILL:K?k++:this.fill_(t),++I;break;case u.MOVE_TO_LINE_TO:for(R=W[1],h=W[2],C=l[R],v=(T=l[R+1])+.5|0,(m=C+.5|0)===p&&v===y||(t.moveTo(C,T),p=m,y=v),R+=2;R<h;R+=2)m=(C=l[R])+.5|0,v=(T=l[R+1])+.5|0,R!=h-2&&m===p&&v===y||(t.lineTo(C,T),p=m,y=v);++I;break;case u.SET_FILL_STYLE:F=W,this.alignFill_=W[2],k&&(this.fill_(t),k=0,M&&(t.stroke(),M=0)),t.fillStyle=W[1],++I;break;case u.SET_STROKE_STYLE:D=W,M&&(t.stroke(),M=0),this.setStrokeStyle_(t,W),++I;break;case u.STROKE:K?M++:t.stroke(),++I;break;default:++I}}k&&this.fill_(t),M&&t.stroke()},t.prototype.execute=function(t,e,r,n,i,o){this.viewRotation_=n,this.execute_(t,e,r,this.instructions,i,void 0,void 0,o)},t.prototype.executeHitDetection=function(t,e,r,n,i){return this.viewRotation_=r,this.execute_(t,1,e,this.hitDetectionInstructions,!0,n,i)},t}();const Q=J;var tt=r(8711),et=r(3530),rt=["Polygon","Circle","LineString","Image","Text","Default"],nt=function(){function t(t,e,r,n,i,o){this.maxExtent_=t,this.overlaps_=n,this.pixelRatio_=r,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=(0,U.vt)(),this.createExecutors_(i)}return t.prototype.clip=function(t,e){var r=this.getClipCoords(e);t.beginPath(),t.moveTo(r[0],r[1]),t.lineTo(r[2],r[3]),t.lineTo(r[4],r[5]),t.lineTo(r[6],r[7]),t.clip()},t.prototype.createExecutors_=function(t){for(var e in t){var r=this.executorsByZIndex_[e];void 0===r&&(r={},this.executorsByZIndex_[e]=r);var n=t[e];for(var i in n){var o=n[i];r[i]=new Q(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},t.prototype.hasExecutors=function(t){for(var e in this.executorsByZIndex_)for(var r=this.executorsByZIndex_[e],n=0,i=t.length;n<i;++n)if(t[n]in r)return!0;return!1},t.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i,o){var a=2*(n=Math.round(n))+1,s=(0,U.Zz)(this.hitDetectionTransform_,n+.5,n+.5,1/e,-1/e,-r,-t[0],-t[1]),l=!this.hitDetectionContext_;l&&(this.hitDetectionContext_=(0,tt.Y)(a,a));var u,h=this.hitDetectionContext_;h.canvas.width!==a||h.canvas.height!==a?(h.canvas.width=a,h.canvas.height=a):l||h.clearRect(0,0,a,a),void 0!==this.renderBuffer_&&(u=(0,d.createEmpty)(),(0,d.extendCoordinate)(u,t),(0,d.buffer)(u,e*(this.renderBuffer_+n),u));var c,f=function(t){if(void 0!==it[t])return it[t];for(var e=2*t+1,r=t*t,n=new Array(r+1),i=0;i<=t;++i)for(var o=0;o<=t;++o){var a=i*i+o*o;if(a>r)break;var s=n[a];s||(s=[],n[a]=s),s.push(4*((t+i)*e+(t+o))+3),i>0&&s.push(4*((t-i)*e+(t+o))+3),o>0&&(s.push(4*((t+i)*e+(t-o))+3),i>0&&s.push(4*((t-i)*e+(t-o))+3))}for(var l=[],u=(i=0,n.length);i<u;++i)n[i]&&l.push.apply(l,n[i]);return it[t]=l,l}(n);function p(t,e){for(var r=h.getImageData(0,0,a,a).data,s=0,l=f.length;s<l;s++)if(r[f[s]]>0){if(!o||"Image"!==c&&"Text"!==c||-1!==o.indexOf(t)){var u=(f[s]-3)/4,p=n-u%a,d=n-(u/a|0),g=i(t,e,p*p+d*d);if(g)return g}h.clearRect(0,0,a,a);break}}var g,y,m,v,w,x=Object.keys(this.executorsByZIndex_).map(Number);for(x.sort(_.qA),g=x.length-1;g>=0;--g){var b=x[g].toString();for(m=this.executorsByZIndex_[b],y=rt.length-1;y>=0;--y)if(void 0!==(v=m[c=rt[y]])&&(w=v.executeHitDetection(h,s,r,p,u)))return w}},t.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var r=e[0],n=e[1],i=e[2],o=e[3],a=[r,n,r,o,i,o,i,n];return(0,N.Rc)(a,0,8,2,t,a),a},t.prototype.isEmpty=function(){return(0,et.Im)(this.executorsByZIndex_)},t.prototype.execute=function(t,e,r,n,i,o,a){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(_.qA),this.maxExtent_&&(t.save(),this.clip(t,r));var l,u,h,c,f,p,d=o||rt;for(a&&s.reverse(),l=0,u=s.length;l<u;++l){var g=s[l].toString();for(f=this.executorsByZIndex_[g],h=0,c=d.length;h<c;++h){void 0!==(p=f[d[h]])&&p.execute(t,e,r,n,i,a)}}this.maxExtent_&&t.restore()},t}(),it={};const ot=nt;var at=r(2703),st=r(2236),lt=r(5354),ut=(r(7733),r(3628),r(9700)),ht=(r(7907),r(940),r(6936),r(953),r(9276),r(1426),.5);var ct=r(3608),ft=r(7083),pt=r(6933),dt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const gt=function(t){function e(e){var r=t.call(this,e)||this;return r.boundHandleStyleImageChange_=r.handleStyleImageChange_.bind(r),r.animatingOrInteracting_,r.hitDetectionImageData_=null,r.renderedFeatures_=null,r.renderedRevision_=-1,r.renderedResolution_=NaN,r.renderedExtent_=(0,d.createEmpty)(),r.wrappedRenderedExtent_=(0,d.createEmpty)(),r.renderedRotation_,r.renderedCenter_=null,r.renderedProjection_=null,r.renderedRenderOrder_=null,r.replayGroup_=null,r.replayGroupChanged=!0,r.declutterExecutorGroup=null,r.clipping=!0,r.compositionContext_=null,r.opacity_=1,r}return dt(e,t),e.prototype.renderWorlds=function(t,e,r){var n=e.extent,i=e.viewState,o=i.center,a=i.resolution,s=i.projection,l=i.rotation,u=s.getExtent(),h=this.getLayer().getSource(),c=e.pixelRatio,f=e.viewHints,p=!(f[at.A.ANIMATING]||f[at.A.INTERACTING]),g=this.compositionContext_,_=Math.round(e.size[0]*c),y=Math.round(e.size[1]*c),m=h.getWrapX()&&s.canWrapX(),v=m?(0,d.getWidth)(u):null,w=m?Math.ceil((n[2]-u[2])/v)+1:1,x=m?Math.floor((n[0]-u[0])/v):0;do{var b=this.getRenderTransform(o,a,l,c,_,y,x*v);t.execute(g,1,b,l,p,void 0,r)}while(++x<w)},e.prototype.setupCompositionContext_=function(){if(1!==this.opacity_){var t=(0,tt.Y)(this.context.canvas.width,this.context.canvas.height,D.B);this.compositionContext_=t}else this.compositionContext_=this.context},e.prototype.releaseCompositionContext_=function(){if(1!==this.opacity_){var t=this.context.globalAlpha;this.context.globalAlpha=this.opacity_,this.context.drawImage(this.compositionContext_.canvas,0,0),this.context.globalAlpha=t,(0,tt.Yg)(this.compositionContext_),D.B.push(this.compositionContext_.canvas),this.compositionContext_=null}},e.prototype.renderDeclutter=function(t){this.declutterExecutorGroup&&(this.setupCompositionContext_(),this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree),this.releaseCompositionContext_())},e.prototype.renderFrame=function(t,e){var r=t.pixelRatio,n=t.layerStatesArray[t.layerIndex];(0,U.rQ)(this.pixelTransform,1/r,1/r),(0,U.T9)(this.inversePixelTransform,this.pixelTransform);var i=(0,U.dI)(this.pixelTransform);this.useContainer(e,i,this.getBackground(t));var o=this.context,a=o.canvas,s=this.replayGroup_,l=this.declutterExecutorGroup;if((!s||s.isEmpty())&&(!l||l.isEmpty()))return null;var u=Math.round(t.size[0]*r),h=Math.round(t.size[1]*r);a.width!=u||a.height!=h?(a.width=u,a.height=h,a.style.transform!==i&&(a.style.transform=i)):this.containerReused||o.clearRect(0,0,u,h),this.preRender(o,t);var c=t.viewState,f=c.projection;this.opacity_=n.opacity,this.setupCompositionContext_();var p=!1,g=!0;if(n.extent&&this.clipping){var _=(0,ft.fromUserExtent)(n.extent,f);(p=(g=(0,d.intersects)(_,t.extent))&&!(0,d.containsExtent)(_,t.extent))&&this.clipUnrotated(this.compositionContext_,t,_)}return g&&this.renderWorlds(s,t),p&&this.compositionContext_.restore(),this.releaseCompositionContext_(),this.postRender(o,t),this.renderedRotation_!==c.rotation&&(this.renderedRotation_=c.rotation,this.hitDetectionImageData_=null),this.container},e.prototype.getFeatures=function(t){return new Promise(function(e){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var r=[this.context.canvas.width,this.context.canvas.height];(0,U.Bb)(this.pixelTransform,r);var n=this.renderedCenter_,i=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,s=this.wrappedRenderedExtent_,l=this.getLayer(),u=[],h=r[0]*ht,c=r[1]*ht;u.push(this.getRenderTransform(n,i,o,ht,h,c,0).slice());var f=l.getSource(),p=a.getExtent();if(f.getWrapX()&&a.canWrapX()&&!(0,d.containsExtent)(p,s)){for(var g=s[0],y=(0,d.getWidth)(p),m=0,v=void 0;g<p[0];)v=y*--m,u.push(this.getRenderTransform(n,i,o,ht,h,c,v).slice()),g+=y;for(m=0,g=s[2];g>p[2];)v=y*++m,u.push(this.getRenderTransform(n,i,o,ht,h,c,v).slice()),g-=y}this.hitDetectionImageData_=function(t,e,r,n,i,o,a){var s=t[0]*ht,l=t[1]*ht,u=(0,tt.Y)(s,l);u.imageSmoothingEnabled=!1;for(var h=u.canvas,c=new st.A(u,ht,i,null,a),f=r.length,p=Math.floor(16777215/f),g={},y=1;y<=f;++y){var m=r[y-1],v=m.getStyleFunction()||n;if(n){var w=v(m,o);if(w){Array.isArray(w)||(w=[w]);for(var x="#"+("000000"+(y*p).toString(16)).slice(-6),b=0,E=w.length;b<E;++b){var A=w[b],S=A.getGeometryFunction()(m);if(S&&(0,d.intersects)(i,S.getExtent())){var C=A.clone(),T=C.getFill();T&&T.setColor(x);var P=C.getStroke();P&&(P.setColor(x),P.setLineDash(null)),C.setText(void 0);var I=A.getImage();if(I&&0!==I.getOpacity()){var O=I.getImageSize();if(!O)continue;var R=(0,tt.Y)(O[0],O[1],void 0,{alpha:!1}),L=R.canvas;R.fillStyle=x,R.fillRect(0,0,L.width,L.height),C.setImage(new ut.A({img:L,imgSize:O,anchor:I.getAnchor(),anchorXUnits:lt.A.PIXELS,anchorYUnits:lt.A.PIXELS,offset:I.getOrigin(),opacity:1,size:I.getSize(),scale:I.getScale(),rotation:I.getRotation(),rotateWithView:I.getRotateWithView()}))}var k=C.getZIndex()||0;(D=g[k])||(D={},g[k]=D,D.Polygon=[],D.Circle=[],D.LineString=[],D.Point=[]),D[S.getType().replace("Multi","")].push(S,C)}}}}}for(var M=Object.keys(g).map(Number).sort(_.qA),F=(y=0,M.length);y<F;++y){var D=g[M[y]];for(var j in D){var U=D[j];for(b=0,E=U.length;b<E;b+=2){c.setStyle(U[b+1]);for(var G=0,N=e.length;G<N;++G)c.setTransform(e[G]),c.drawGeometry(U[b])}}}return u.getImageData(0,0,h.width,h.height)}(r,u,this.renderedFeatures_,l.getStyleFunction(),s,i,o)}e(function(t,e,r){var n=[];if(r){var i=Math.floor(Math.round(t[0])*ht),o=Math.floor(Math.round(t[1])*ht),a=4*((0,G.qE)(i,0,r.width-1)+(0,G.qE)(o,0,r.height-1)*r.width),s=r.data[a],l=r.data[a+1],u=r.data[a+2]+256*(l+256*s),h=Math.floor(16777215/e.length);u&&u%h==0&&n.push(e[u/h-1])}return n}(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){var o=this;if(this.replayGroup_){var a,s=e.viewState.resolution,l=e.viewState.rotation,u=this.getLayer(),h={},c=function(t,e,r){var o=(0,I.v6)(t),a=h[o];if(a){if(!0!==a&&r<a.distanceSq){if(0===r)return h[o]=!0,i.splice(i.lastIndexOf(a),1),n(t,u,e);a.geometry=e,a.distanceSq=r}}else{if(0===r)return h[o]=!0,n(t,u,e);i.push(h[o]={feature:t,layer:u,geometry:e,distanceSq:r,callback:n})}},f=[this.replayGroup_];return this.declutterExecutorGroup&&f.push(this.declutterExecutorGroup),f.some((function(n){return a=n.forEachFeatureAtCoordinate(t,s,l,r,c,n===o.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map((function(t){return t.value})):null)})),a}},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t){var e=this.getLayer(),r=e.getSource();if(!r)return!1;var n=t.viewHints[at.A.ANIMATING],i=t.viewHints[at.A.INTERACTING],o=e.getUpdateWhileAnimating(),a=e.getUpdateWhileInteracting();if(this.ready&&!o&&n||!a&&i)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var s=t.extent,l=t.viewState,u=l.projection,h=l.resolution,c=t.pixelRatio,f=e.getRevision(),p=e.getRenderBuffer(),g=e.getRenderOrder();void 0===g&&(g=ct.Eo);var y=l.center.slice(),m=(0,d.buffer)(s,p*h),v=m.slice(),w=[m.slice()],x=u.getExtent();if(r.getWrapX()&&u.canWrapX()&&!(0,d.containsExtent)(x,t.extent)){var b=(0,d.getWidth)(x),E=Math.max((0,d.getWidth)(m)/2,b);m[0]=x[0]-E,m[2]=x[2]+E,(0,pt.Li)(y,u);var A=(0,d.wrapX)(w[0],u);A[0]<x[0]&&A[2]<x[2]?w.push([A[0]+b,A[1],A[2]+b,A[3]]):A[0]>x[0]&&A[2]>x[2]&&w.push([A[0]-b,A[1],A[2]-b,A[3]])}if(this.ready&&this.renderedResolution_==h&&this.renderedRevision_==f&&this.renderedRenderOrder_==g&&(0,d.containsExtent)(this.wrappedRenderedExtent_,m))return(0,_.aI)(this.renderedExtent_,v)||(this.hitDetectionImageData_=null,this.renderedExtent_=v),this.renderedCenter_=y,this.replayGroupChanged=!1,!0;this.replayGroup_=null;var S,C=new F((0,ct.gY)(h,c),m,h,c);this.getLayer().getDeclutter()&&(S=new F((0,ct.gY)(h,c),m,h,c));var T,P=(0,ft.getUserProjection)();if(P){for(var I=0,O=w.length;I<O;++I){var R=w[I],L=(0,ft.toUserExtent)(R,u);r.loadFeatures(L,(0,ft.toUserResolution)(h,u),P)}T=(0,ft.getTransformFromProjections)(P,u)}else for(I=0,O=w.length;I<O;++I)r.loadFeatures(w[I],h,u);var k=(0,ct.j)(h,c),M=!0,D=function(t){var r,n=t.getStyleFunction()||e.getStyleFunction();if(n&&(r=n(t,h)),r){var i=this.renderFeature(t,k,r,C,T,S);M=M&&!i}}.bind(this),j=(0,ft.toUserExtent)(m,u),U=r.getFeaturesInExtent(j);g&&U.sort(g);for(I=0,O=U.length;I<O;++I)D(U[I]);this.renderedFeatures_=U,this.ready=M;var G=C.finish(),N=new ot(m,h,c,r.getOverlaps(),G,e.getRenderBuffer());return S&&(this.declutterExecutorGroup=new ot(m,h,c,r.getOverlaps(),S.finish(),e.getRenderBuffer())),this.renderedResolution_=h,this.renderedRevision_=f,this.renderedRenderOrder_=g,this.renderedExtent_=v,this.wrappedRenderedExtent_=m,this.renderedCenter_=y,this.renderedProjection_=u,this.replayGroup_=N,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},e.prototype.renderFeature=function(t,e,r,n,i,o){if(!r)return!1;var a=!1;if(Array.isArray(r))for(var s=0,l=r.length;s<l;++s)a=(0,ct.nl)(n,t,r[s],e,this.boundHandleStyleImageChange_,i,o)||a;else a=(0,ct.nl)(n,t,r,e,this.boundHandleStyleImageChange_,i,o);return a},e}(D.A);var _t=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const yt=function(t){function e(e){return t.call(this,e)||this}return _t(e,t),e.prototype.createRenderer=function(){return new gt(this)},e}(n.A)},1597:(t,e,r)=>{"use strict";function n(t,e,r){return Math.min(Math.max(t,e),r)}r.d(e,{Cc:()=>f,KU:()=>l,LI:()=>d,Q1:()=>a,RI:()=>g,eh:()=>h,hG:()=>s,mk:()=>_,p6:()=>o,qE:()=>n,xP:()=>c,xW:()=>u,yI:()=>i});var i="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2},o="log2"in Math?Math.log2:function(t){return Math.log(t)*Math.LOG2E};function a(t,e,r,n,i,o){var a=i-r,l=o-n;if(0!==a||0!==l){var u=((t-r)*a+(e-n)*l)/(a*a+l*l);u>1?(r=i,n=o):u>0&&(r+=a*u,n+=l*u)}return s(t,e,r,n)}function s(t,e,r,n){var i=r-t,o=n-e;return i*i+o*o}function l(t){for(var e=t.length,r=0;r<e;r++){for(var n=r,i=Math.abs(t[r][r]),o=r+1;o<e;o++){var a=Math.abs(t[o][r]);a>i&&(i=a,n=o)}if(0===i)return null;var s=t[n];t[n]=t[r],t[r]=s;for(var l=r+1;l<e;l++)for(var u=-t[l][r]/t[r][r],h=r;h<e+1;h++)r==h?t[l][h]=0:t[l][h]+=u*t[r][h]}for(var c=new Array(e),f=e-1;f>=0;f--){c[f]=t[f][e]/t[f][f];for(var p=f-1;p>=0;p--)t[p][e]-=t[p][f]*c[f]}return c}function u(t){return 180*t/Math.PI}function h(t){return t*Math.PI/180}function c(t,e){var r=t%e;return r*e<0?r+e:r}function f(t,e,r){return t+r*(e-t)}function p(t,e){var r=Math.pow(10,e);return Math.round(t*r)/r}function d(t,e){return Math.round(p(t,e))}function g(t,e){return Math.floor(p(t,e))}function _(t,e){return Math.ceil(p(t,e))}},3530:(t,e,r)=>{"use strict";r.d(e,{BI:()=>o,IU:()=>i,Im:()=>a,kp:()=>n});var n="function"==typeof Object.assign?Object.assign:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),n=1,i=arguments.length;n<i;++n){var o=arguments[n];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])}return r};function i(t){for(var e in t)delete t[e]}var o="function"==typeof Object.values?Object.values:function(t){var e=[];for(var r in t)e.push(t[r]);return e};function a(t){var e;
8for(e in t)return!1;return!e}},613:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},7083:(t,e,r)=>{"use strict";r.r(e),r.d(e,{METERS_PER_UNIT:()=>n.Ig,Projection:()=>i,addCommon:()=>lt,addCoordinateTransforms:()=>B,addEquivalentProjections:()=>D,addEquivalentTransforms:()=>j,addProjection:()=>L,addProjections:()=>k,clearAllProjections:()=>U,clearUserProjection:()=>J,cloneTransform:()=>O,createProjection:()=>G,createSafeCoordinateTransform:()=>st,createTransformFromCoordinateTransform:()=>N,disableCoordinateWarning:()=>I,equivalent:()=>X,fromLonLat:()=>z,fromUserCoordinate:()=>rt,fromUserExtent:()=>it,fromUserResolution:()=>at,get:()=>M,getPointResolution:()=>F,getTransform:()=>W,getTransformFromProjections:()=>K,getUserProjection:()=>Q,identityTransform:()=>R,setUserProjection:()=>$,toLonLat:()=>V,toUserCoordinate:()=>et,toUserExtent:()=>nt,toUserResolution:()=>ot,transform:()=>H,transformExtent:()=>Y,transformWithProjections:()=>Z,useGeographic:()=>tt});var n=r(5719);const i=function(){function t(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}return t.prototype.canWrapX=function(){return this.canWrapX_},t.prototype.getCode=function(){return this.code_},t.prototype.getExtent=function(){return this.extent_},t.prototype.getUnits=function(){return this.units_},t.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||n.Ig[this.units_]},t.prototype.getWorldExtent=function(){return this.worldExtent_},t.prototype.getAxisOrientation=function(){return this.axisOrientation_},t.prototype.isGlobal=function(){return this.global_},t.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},t.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},t.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},t.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},t.prototype.setWorldExtent=function(t){this.worldExtent_=t},t.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},t.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},t}();var o,a=r(1597),s=(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),l=6378137,u=Math.PI*l,h=[-u,-u,u,u],c=[-180,-85,180,85],f=l*Math.log(Math.tan(Math.PI/2)),p=function(t){function e(e){return t.call(this,{code:e,units:n.Ay.METERS,extent:h,global:!0,worldExtent:c,getPointResolution:function(t,e){return t/(0,a.yI)(e[1]/l)}})||this}return s(e,t),e}(i),d=[new p("EPSG:3857"),new p("EPSG:102100"),new p("EPSG:102113"),new p("EPSG:900913"),new p("http://www.opengis.net/def/crs/EPSG/0/3857"),new p("http://www.opengis.net/gml/srs/epsg.xml#3857")];function g(t,e,r){var n=t.length,i=r>1?r:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(n));for(var a=0;a<n;a+=i){o[a]=u*t[a]/180;var s=l*Math.log(Math.tan(Math.PI*(+t[a+1]+90)/360));s>f?s=f:s<-f&&(s=-f),o[a+1]=s}return o}function _(t,e,r){var n=t.length,i=r>1?r:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(n));for(var a=0;a<n;a+=i)o[a]=180*t[a]/u,o[a+1]=360*Math.atan(Math.exp(t[a+1]/l))/Math.PI-90;return o}var y=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),m=[-180,-90,180,90],v=6378137*Math.PI/180,w=function(t){function e(e,r){return t.call(this,{code:e,units:n.Ay.DEGREES,extent:m,axisOrientation:r,global:!0,metersPerUnit:v,worldExtent:m})||this}return y(e,t),e}(i),x=[new w("CRS:84"),new w("EPSG:4326","neu"),new w("urn:ogc:def:crs:OGC:1.3:CRS84"),new w("urn:ogc:def:crs:OGC:2:84"),new w("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new w("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new w("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],b={};r(3530);var E={};function A(t,e,r){var n=t.getCode(),i=e.getCode();n in E||(E[n]={}),E[n][i]=r}var S=r(915),C=r(6933),T=r(2490),P=!0;function I(t){P=!(void 0===t||t)}function O(t,e,r){var n;if(void 0!==e){for(var i=0,o=t.length;i<o;++i)e[i]=t[i];n=e}else n=t.slice();return n}function R(t,e,r){if(void 0!==e&&t!==e){for(var n=0,i=t.length;n<i;++n)e[n]=t[n];t=e}return t}function L(t){!function(t,e){b[t]=e}(t.getCode(),t),A(t,t,O)}function k(t){t.forEach(L)}function M(t){return"string"==typeof t?b[e=t]||b[e.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:t||null;var e}function F(t,e,r,i){var o,a=(t=M(t)).getPointResolutionFunc();if(a){if(o=a(e,r),i&&i!==t.getUnits())(l=t.getMetersPerUnit())&&
8(o=o*l/n.Ig[i])}else{var s=t.getUnits();if(s==n.Ay.DEGREES&&!i||i==n.Ay.DEGREES)o=e;else{var l,u=K(t,M("EPSG:4326"));if(u===R&&s!==n.Ay.DEGREES)o=e*t.getMetersPerUnit();else{var h=[r[0]-e/2,r[1],r[0]+e/2,r[1],r[0],r[1]-e/2,r[0],r[1]+e/2];h=u(h,h,2),o=((0,T.getDistance)(h.slice(0,2),h.slice(2,4))+(0,T.getDistance)(h.slice(4,6),h.slice(6,8)))/2}void 0!==(l=i?n.Ig[i]:t.getMetersPerUnit())&&(o/=l)}}return o}function D(t){k(t),t.forEach((function(e){t.forEach((function(t){e!==t&&A(e,t,O)}))}))}function j(t,e,r,n){t.forEach((function(t){e.forEach((function(e){A(t,e,r),A(e,t,n)}))}))}function U(){b={},E={}}function G(t,e){return t?"string"==typeof t?M(t):t:M(e)}function N(t){return function(e,r,n){for(var i=e.length,o=void 0!==n?n:2,a=void 0!==r?r:new Array(i),s=0;s<i;s+=o)for(var l=t(e.slice(s,s+o)),u=l.length,h=0,c=o;h<c;++h)a[s+h]=h>=u?e[s+h]:l[h];return a}}function B(t,e,r,n){var i=M(t),o=M(e);A(i,o,N(r)),A(o,i,N(n))}function z(t,e){return I(),H(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function V(t,e){var r=H(t,void 0!==e?e:"EPSG:3857","EPSG:4326"),n=r[0];return(n<-180||n>180)&&(r[0]=(0,a.xP)(n+180,360)-180),r}function X(t,e){if(t===e)return!0;var r=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||K(t,e)===O)&&r}function K(t,e){var r=function(t,e){var r;return t in E&&e in E[t]&&(r=E[t][e]),r}(t.getCode(),e.getCode());return r||(r=R),r}function W(t,e){return K(M(t),M(e))}function H(t,e,r){return W(e,r)(t,void 0,t.length)}function Y(t,e,r,n){var i=W(e,r);return(0,S.applyTransform)(t,i,void 0,n)}function Z(t,e,r){return K(e,r)(t)}var q=null;function $(t){q=M(t)}function J(){q=null}function Q(){return q}function tt(){$("EPSG:4326")}function et(t,e){return q?H(t,e,q):t}function rt(t,e){return q?H(t,q,e):(P&&!(0,C.aI)(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(P=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function nt(t,e){return q?Y(t,e,q):t}function it(t,e){return q?Y(t,q,e):t}function ot(t,e){if(!q)return t;var r=M(e).getUnits(),i=q.getUnits();return r&&i?t*n.Ig[r]/n.Ig[i]:t}function at(t,e){if(!q)return t;var r=M(e).getUnits(),i=q.getUnits();return r&&i?t*n.Ig[i]/n.Ig[r]:t}function st(t,e,r){return function(n){var i,o;if(t.canWrapX()){var s=t.getExtent(),l=(0,S.getWidth)(s);n=n.slice(0),(o=(0,C.U$)(n,t,l))&&(n[0]=n[0]-o*l),n[0]=(0,a.qE)(n[0],s[0],s[2]),n[1]=(0,a.qE)(n[1],s[1],s[3]),i=r(n)}else i=r(n);return o&&e.canWrapX()&&(i[0]+=o*(0,S.getWidth)(e.getExtent())),i}}function lt(){D(d),D(x),j(x,d,g,_)}lt()},5719:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>s,Ig:()=>a,qs:()=>o});var n={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},i={9001:n.METERS,9002:n.FEET,9003:n.USFEET,9101:n.RADIANS,9102:n.DEGREES};function o(t){return i[t]}var a={};a[n.RADIANS]=6370997/(2*Math.PI),a[n.DEGREES]=2*Math.PI*6370997/360,a[n.FEET]=.3048,a[n.METERS]=1,a[n.USFEET]=1200/3937;const s=n},7331:(t,e,r)=>{"use strict";r.r(e),r.d(e,{getRenderPixel:()=>h,getVectorContext:()=>u,toContext:()=>l});var n=r(2236),i=r(7771),o=r(9703),a=r(3608),s=r(7083);function l(t,e){var r=t.canvas,a=e||{},s=a.pixelRatio||i.cr,l=a.size;l&&(r.width=l[0]*s,r.height=l[1]*s,r.style.width=l[0]+"px",r.style.height=l[1]+"px");var u=[0,0,r.width,r.height],h=(0,o.hs)((0,o.vt)(),s,s);return new n.A(t,s,u,h,0)}function u(t){if(!(t.context instanceof CanvasRenderingContext2D))throw new Error("Only works for render events from Canvas 2D layers");var e,r=t.inversePixelTransform[0],i=t.frameState,l=(0,o.lw)(t.inversePixelTransform.slice(),i.coordinateToPixelTransform),u=(0,a.j)(i.viewState.resolution,r),h=(0,s.getUserProjection)();return h&&(e=(0,s.getTransformFromProjections)(h,i.viewState.projection)),new n.A(t.context,r,i.extent,l,i.viewState.rotation,u,e)}function h(t,e){return(0,o.Bb)(t.inversePixelTransform,e.slice(0))}},9960:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});
8var n,i=r(1685),o=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const a=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.inversePixelTransform=r,o.frameState=n,o.context=i,o}return o(e,t),e}(i.Ay)},3984:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},2826:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(){function t(){}return t.prototype.drawCustom=function(t,e,r,n){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}()},8774:(t,e,r)=>{"use strict";r.d(e,{Jw:()=>L,M8:()=>m,MY:()=>y,NT:()=>_,Oq:()=>f,TA:()=>O,Tq:()=>v,ZV:()=>u,_K:()=>d,_m:()=>c,aq:()=>w,eL:()=>g,fZ:()=>C,jT:()=>R,qY:()=>h,vk:()=>p,yY:()=>x});var n=r(4120),i=r(9332),o=r(7771),a=r(3530),s=r(8711),l=r(5176),u="10px sans-serif",h="#000",c="round",f=[],p=0,d="round",g=10,_="#000",y="center",m="middle",v=[0,0,0,0],w=1,x=new n.A;(new i.A).setSize=function(){console.warn("labelCache is deprecated.")};var b,E,A=null,S={},C=function(){var t,e,r="32px ",n=["monospace","serif"],i=n.length,o="wmytzilWMYTZIL@#/&?$%10\uf013";function s(t,a,s){for(var l=!0,u=0;u<i;++u){var h=n[u];if(e=I(t+" "+a+" "+r+h,o),s!=h){var c=I(t+" "+a+" "+r+s+","+h,o);l=l&&c!=e}}return!!l}function u(){for(var e=!0,r=x.getKeys(),n=0,i=r.length;n<i;++n){var o=r[n];x.get(o)<100&&(s.apply(this,o.split("\n"))?((0,a.IU)(S),A=null,b=void 0,x.set(o,100)):(x.set(o,x.get(o)+1,!0),e=!1))}e&&(clearInterval(t),t=void 0)}return function(e){var r=(0,l.K5)(e);if(r)for(var n=r.families,i=0,o=n.length;i<o;++i){var a=n[i],h=r.style+"\n"+r.weight+"\n"+a;void 0===x.get(h)&&(x.set(h,100,!0),s(r.style,r.weight,a)||(x.set(h,0,!0),void 0===t&&(t=setInterval(u,32))))}}}(),T=function(t){var e=S[t];if(null==e){if(o.Wl){var r=(0,l.K5)(t),n=P(t,"\u017dg");e=(isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight))*(n.actualBoundingBoxAscent+n.actualBoundingBoxDescent)}else E||((E=document.createElement("div")).innerHTML="M",E.style.minHeight="0",E.style.maxHeight="none",E.style.height="auto",E.style.padding="0",E.style.border="none",E.style.position="absolute",E.style.display="block",E.style.left="-99999px"),E.style.font=t,document.body.appendChild(E),e=E.offsetHeight,document.body.removeChild(E);S[t]=e}return e};function P(t,e){return A||(A=(0,s.Y)(1,1)),t!=b&&(A.font=t,b=A.font),A.measureText(e)}function I(t,e){return P(t,e).width}function O(t,e,r){if(e in r)return r[e];var n=e.split("\n").reduce((function(e,r){return Math.max(e,I(t,r))}),0);return r[e]=n,n}function R(t,e){for(var r=[],n=[],i=[],o=0,a=0,s=0,l=0,u=0,h=e.length;u<=h;u+=2){var c=e[u];if("\n"!==c&&u!==h){var f=e[u+1]||t.font,p=I(f,c);r.push(p),a+=p;var d=T(f);n.push(d),l=Math.max(l,d)}else o=Math.max(o,a),i.push(a),a=0,s+=l}return{width:o,height:s,widths:r,heights:n,lineWidths:i}}function L(t,e,r,n,i,o,a,s,l,u,h){t.save(),1!==r&&(t.globalAlpha*=r),e&&t.setTransform.apply(t,e),n.contextInstructions?(t.translate(l,u),t.scale(h[0],h[1]),function(t,e){for(var r=t.contextInstructions,n=0,i=r.length;n<i;n+=2)Array.isArray(r[n+1])?e[r[n]].apply(e,r[n+1]):e[r[n]]=r[n+1]}(n,t)):h[0]<0||h[1]<0?(t.translate(l,u),t.scale(h[0],h[1]),t.drawImage(n,i,o,a,s,0,0,a,s)):t.drawImage(n,i,o,a,s,l,u,a*h[0],s*h[1]),t.restore(
vendor: 10,125 bytes, line 8
8)}},2236:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var n,i=r(2826),o=r(7295),a=r(9703),s=r(8774),l=r(6514),u=r(915),h=r(7622),c=r(2096),f=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const p=function(t){function e(e,r,n,i,o,s,l){var u=t.call(this)||this;return u.context_=e,u.pixelRatio_=r,u.extent_=n,u.transform_=i,u.viewRotation_=o,u.squaredTolerance_=s,u.userTransform_=l,u.contextFillState_=null,u.contextStrokeState_=null,u.contextTextState_=null,u.fillState_=null,u.strokeState_=null,u.image_=null,u.imageAnchorX_=0,u.imageAnchorY_=0,u.imageHeight_=0,u.imageOpacity_=0,u.imageOriginX_=0,u.imageOriginY_=0,u.imageRotateWithView_=!1,u.imageRotation_=0,u.imageScale_=[0,0],u.imageWidth_=0,u.text_="",u.textOffsetX_=0,u.textOffsetY_=0,u.textRotateWithView_=!1,u.textRotation_=0,u.textScale_=[0,0],u.textFillState_=null,u.textStrokeState_=null,u.textState_=null,u.pixelCoordinates_=[],u.tmpLocalTransform_=(0,a.vt)(),u}return f(e,t),e.prototype.drawImages_=function(t,e,r,n){if(this.image_){var i=(0,h.Rc)(t,e,r,n,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.tmpLocalTransform_,l=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=l*this.imageOpacity_);var u=this.imageRotation_;this.imageRotateWithView_&&(u+=this.viewRotation_);for(var c=0,f=i.length;c<f;c+=2){var p=i[c]-this.imageAnchorX_,d=i[c+1]-this.imageAnchorY_;if(0!==u||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var g=p+this.imageAnchorX_,_=d+this.imageAnchorY_;(0,a.Zz)(s,g,_,1,1,u,-g,-_),o.setTransform.apply(o,s),o.translate(g,_),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.setTransform(1,0,0,1,0,0)}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,p,d,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=l)}},e.prototype.drawText_=function(t,e,r,n){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var i=(0,h.Rc)(t,e,r,n,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.textRotation_;for(this.textRotateWithView_&&(s+=this.viewRotation_);e<r;e+=n){var l=i[e]+this.textOffsetX_,u=i[e+1]+this.textOffsetY_;if(0!==s||1!=this.textScale_[0]||1!=this.textScale_[1]){var c=(0,a.Zz)(this.tmpLocalTransform_,l,u,1,1,s,-l,-u);o.setTransform.apply(o,c),o.translate(l,u),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&o.strokeText(this.text_,l,u),this.textFillState_&&o.fillText(this.text_,l,u)}}},e.prototype.moveToLineTo_=function(t,e,r,n,i){var o=this.context_,a=(0,h.Rc)(t,e,r,n,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;i&&(s-=2);for(var l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return i&&o.closePath(),r},e.prototype.drawRings_=function(t,e,r,n){for(var i=0,o=r.length;i<o;++i)e=this.moveToLineTo_(t,e,r[i],n,!0);return e},e.prototype.drawCircle=function(t){if((0,u.intersects)(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=(0,c.v7)(t,this.transform_,this.pixelCoordinates_),r=e[2]-e[0],n=e[3]-e[1],i=Math.sqrt(r*r+n*n),o=this.context_;o.beginPath(),o.arc(e[0],e[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}},e.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},e.prototype.setTransform=function(t){this.transform_=t},e.prototype.drawGeometry=function(t){switch(t.getType()){case"Point":this.drawPoint(t);break;case"LineString":this.drawLineString(t);break;case"Polygon":this.drawPolygon(t);break;case"MultiPoint":this.drawMultiPoint(t);break;case"MultiLineString":this.drawMultiLineString(t);break;case"MultiPolygon":this.drawMultiPolygon(t);break;case"GeometryCollection":this.drawGeometryCollection(t);break;case"Circle":this.drawCircle(t)}},e.prototype.drawFeature=function(t,e){var r=e.getGeometryFunction()(t);r&&(0,u.intersects)(this.extent_,r.getExtent())&&(this.setStyle(e),this.drawGeometry(r))},e.prototype.drawGeometryCollection=function(t){for(var e=t.getGeometriesArray(),r=0,n=e.length;r<n;++r)this.drawGeometry(e[r])},e.prototype.drawPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),r=t.getStride();this.image_&&this.drawImages_(e,0,e.length,r),""!==this.text_&&this.drawText_(e,0,e.length,r)},e.prototype.drawMultiPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),r=t.getStride();this.image_&&this.drawImages_(e,0,e.length,r),""!==this.text_&&this.drawText_(e,0,e.length,r)},e.prototype.drawLineString=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,u.intersects)(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,r=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(r,0,r.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){var n=t.getFlatMidpoint();this.drawText_(n,0,2,2)}}},e.prototype.drawMultiLineString=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getExtent();if((0,u.intersects)(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var r=this.context_,n=t.getFlatCoordinates(),i=0,o=t.getEnds(),a=t.getStride();r.beginPath();for(var s=0,l=o.length;s<l;++s)i=this.moveToLineTo_(n,i,o[s],a,!1);r.stroke()}if(""!==this.text_){var h=t.getFlatMidpoints();this.drawText_(h,0,h.length,2)}}},e.prototype.drawPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,u.intersects)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var r=t.getFlatInteriorPoint();this.drawText_(r,0,2,2)}}},e.prototype.drawMultiPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,u.intersects)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_,r=t.getOrientedFlatCoordinates(),n=0,i=t.getEndss(),o=t.getStride();e.beginPath();for(var a=0,s=i.length;a<s;++a){var l=i[a];n=this.drawRings_(r,n,l,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var h=t.getFlatInteriorPoints();this.drawText_(h,0,h.length,2)}}},e.prototype.setContextFillState_=function(t){var e=this.context_,r=this.contextFillState_;r?r.fillStyle!=t.fillStyle&&(r.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},e.prototype.setContextStrokeState_=function(t){var e=this.context_,r=this.contextStrokeState_;r?(r.lineCap!=t.lineCap&&(r.lineCap=t.lineCap,e.lineCap=t.lineCap),e.setLineDash&&((0,l.aI)(r.lineDash,t.lineDash)||e.setLineDash(r.lineDash=t.lineDash),r.lineDashOffset!=t.lineDashOffset&&(r.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset)),r.lineJoin!=t.lineJoin&&(r.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),r.lineWidth!=t.lineWidth&&(r.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),r.miterLimit!=t.miterLimit&&(r.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),r.strokeStyle!=t.strokeStyle&&(r.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},e.prototype.setContextTextState_=function(t){var e=this.context_,r=this.contextTextState_,n=t.textAlign?t.textAlign:s.MY;r?(r.font!=t.font&&(r.font=t.font,e.font=t.font),r.textAlign!=n&&(r.textAlign=n,e.textAlign=n),r.textBaseline!=t.textBaseline&&(r.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=n,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:n,textBaseline:t.textBaseline})},e.prototype.setFillStrokeStyle=function(t,e){var r=this;if(t){var n=t.getColor();this.fillState_={fillStyle:(0,o.F)(n||s.qY)}}else this.fillState_=null;if(e){var i=e.getColor(),a=e.getLineCap(),l=e.getLineDash(),u=e.getLineDashOffset(),h=e.getLineJoin(),c=e.getWidth(),f=e.getMiterLimit(),p=l||s.Oq;this.strokeState_={lineCap:void 0!==a?a:s._m,lineDash:1===this.pixelRatio_?p:p.map((function(t){return t*r.pixelRatio_})),lineDashOffset:(u||s.vk)*this.pixelRatio_,lineJoin:void 0!==h?h:s._K,lineWidth:(void 0!==c?c:s.aq)*this.pixelRatio_,miter
8Limit:void 0!==f?f:s.eL,strokeStyle:(0,o.F)(i||s.NT)}}else this.strokeState_=null},e.prototype.setImageStyle=function(t){var e;if(t&&(e=t.getSize())){var r=t.getAnchor(),n=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=r[0]*this.pixelRatio_,this.imageAnchorY_=r[1]*this.pixelRatio_,this.imageHeight_=e[1]*this.pixelRatio_,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=n[0],this.imageOriginY_=n[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=t.getScaleArray(),this.imageWidth_=e[0]*this.pixelRatio_}else this.image_=null},e.prototype.setTextStyle=function(t){if(t){var e=t.getFill();if(e){var r=e.getColor();this.textFillState_={fillStyle:(0,o.F)(r||s.qY)}}else this.textFillState_=null;var n=t.getStroke();if(n){var i=n.getColor(),a=n.getLineCap(),l=n.getLineDash(),u=n.getLineDashOffset(),h=n.getLineJoin(),c=n.getWidth(),f=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==a?a:s._m,lineDash:l||s.Oq,lineDashOffset:u||s.vk,lineJoin:void 0!==h?h:s._K,lineWidth:void 0!==c?c:s.aq,miterLimit:void 0!==f?f:s.eL,strokeStyle:(0,o.F)(i||s.NT)}}else this.textStrokeState_=null;var p=t.getFont(),d=t.getOffsetX(),g=t.getOffsetY(),_=t.getRotateWithView(),y=t.getRotation(),m=t.getScaleArray(),v=t.getText(),w=t.getTextAlign(),x=t.getTextBaseline();this.textState_={font:void 0!==p?p:s.ZV,textAlign:void 0!==w?w:s.MY,textBaseline:void 0!==x?x:s.M8},this.text_=void 0!==v?Array.isArray(v)?v.reduce((function(t,e,r){return t+(r%2?" ":e)}),""):v:"",this.textOffsetX_=void 0!==d?this.pixelRatio_*d:0,this.textOffsetY_=void 0!==g?this.pixelRatio_*g:0,this.textRotateWithView_=void 0!==_&&_,this.textRotation_=void 0!==y?y:0,this.textScale_=[this.pixelRatio_*m[0],this.pixelRatio_*m[1]]}else this.text_=""},e}(i.A)},8100:(t,e,r)=>{"use strict";r.d(e,{A:()=>E});var n,i=r(25),o=r(4238),a=r(4087),s=r(9703),l=r(915),u=r(2241),h=r(764),c=r(6933),f=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function p(t,e){u.shared.expire()}const d=function(t){function e(e){var r=t.call(this)||this;return r.map_=e,r}return f(e,t),e.prototype.dispatchRenderEvent=function(t,e){(0,a.b0)()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,r=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;(0,s.Zz)(r,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),(0,s.T9)(n,r)},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i,o,a,s){var u,f=e.viewState;function p(t,e,r,n){return i.call(o,e,t?r:null,n)}var d=f.projection,g=(0,c.Li)(t.slice(),d),_=[[0,0]];if(d.canWrapX()&&n){var y=d.getExtent(),m=(0,l.getWidth)(y);_.push([-m,0],[m,0])}for(var v=e.layerStatesArray,w=v.length,x=[],b=[],E=0;E<_.length;E++)for(var A=w-1;A>=0;--A){var S=v[A],C=S.layer;if(C.hasRenderer()&&(0,h.l)(S,f)&&a.call(s,C)){var T=C.getRenderer(),P=C.getSource();if(T&&P){var I=P.getWrapX()?g:t,O=p.bind(null,S.managed);b[0]=I[0]+_[E][0],b[1]=I[1]+_[E][1],u=T.forEachFeatureAtCoordinate(b,e,r,O,x)}if(u)return u}}if(0!==x.length){var R=1/x.length;return x.forEach((function(t,e){return t.distanceSq+=e*R})),x.sort((function(t,e){return t.distanceSq-e.distanceSq})),x.some((function(t){return u=t.callback(t.feature,t.layer,t.geometry)})),u}},e.prototype.forEachLayerAtPixel=function(t,e,r,n,i){return(0,a.b0)()},e.prototype.hasFeatureAtCoordinate=function(t,e,r,n,i,a){return void 0!==this.forEachFeatureAtCoordinate(t,e,r,n,o.rT,this,i,a)},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){(0,a.b0)()},e.prototype.scheduleExpireIconCache=function(t){u.shared.canExpireCache()&&t.postRenderFunctions.push(p)},e}(i.A);var g=r(8450),_=r(9960),y=r(3984),m=r(5176),v=r(8774),w=r(9438),x=r(8711),b=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const E=function(t){function e(e){var r=t.call(this,e)||this;r.fontChangeListenerKey_=(0,w.KT)(v.yY,g.A.PROPERTYCHANGE,e.redrawText.bind(e)),r.element_=document.createElement("div");var n=r.element_.style;n.position="absolute",n.width="100%",n.height="100%",n.zIndex="0",r.element_.className=m.XI+" ol-layers";var i=e.getViewport();return i.insertBefore(r.element_,i.firstChild||null),r.children_=[],r.renderedVisible_=!0,r}return b(e,t),e.prototype.dispatchRenderEvent=function(t,e){var r=this.getMap();if(r.hasListener(t)){var n=new _.A(t,void 0,e);r.dispatchEvent(n)}},e.prototype.disposeInternal=function(){(0,w.JH)(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(y.A.PRECOMPOSE,t);var e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),r=t.viewState;this.children_.length=0;for(var n=[],i=null,o=0,a=e.length;o<a;++o){var s=e[o];t.layerIndex=o;var l=s.layer,u=l.getSourceState();if(!(0,h.l)(s,r)||"ready"!=u&&"undefined"!=u)l.unrender();else{var c=l.render(t,i);c&&(c!==i&&(this.children_.push(c),i=c),"getDeclutter"in l&&n.push(l))}}for(o=n.length-1;o>=0;--o)n[o].renderDeclutter(t);(0,x.WM)(this.element_,this.children_),this.dispatchRenderEvent(y.A.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},e.prototype.forEachLayerAtPixel=function(t,e,r,n,i){for(var o=e.viewState,a=e.layerStatesArray,s=a.length-1;s>=0;--s){var l=a[s],u=l.layer;if(u.hasRenderer()&&(0,h.l)(l,o)&&i(u)){var c=u.getRenderer().getDataAtPixel(t,e,r);
8if(c){var f=n(u,c);if(f)return f}}}},e}(d)},5986:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n,i=r(6837),o=r(6141),a=r(1854),s=r(4087),l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const u=function(t){function e(e){var r=t.call(this)||this;return r.ready=!0,r.boundHandleImageChange_=r.handleImageChange_.bind(r),r.layer_=e,r.declutterExecutorGroup=null,r}return l(e,t),e.prototype.getFeatures=function(t){return(0,s.b0)()},e.prototype.getData=function(t){return null},e.prototype.prepareFrame=function(t){return(0,s.b0)()},e.prototype.renderFrame=function(t,e){return(0,s.b0)()},e.prototype.loadedTileCallback=function(t,e,r){t[e]||(t[e]={}),t[e][r.tileCoord.toString()]=r},e.prototype.createLoadedTileFinder=function(t,e,r){return function(n,i){var o=this.loadedTileCallback.bind(this,r,n);return t.forEachLoadedTile(e,n,i,o)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){},e.prototype.getDataAtPixel=function(t,e,r){return null},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){t.target.getState()===o.A.LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=o.A.LOADED&&e!=o.A.ERROR&&t.addEventListener(i.A.CHANGE,this.boundHandleImageChange_),e==o.A.IDLE&&(t.load(),e=t.getState()),e==o.A.LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()},e.prototype.disposeInternal=function(){delete this.layer_,t.prototype.disposeInternal.call(this)},e}(a.default)},6769:(t,e,r)=>{"use strict";r.d(e,{A:()=>g,B:()=>p});var n,i=r(5986),o=r(9960),a=r(3984),s=r(9703),l=r(9352),u=r(915),h=r(8711),c=r(6514),f=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=[],d=null;const g=function(t){function e(e){var r=t.call(this,e)||this;return r.container=null,r.renderedResolution,r.tempTransform=(0,s.vt)(),r.pixelTransform=(0,s.vt)(),r.inversePixelTransform=(0,s.vt)(),r.context=null,r.containerReused=!1,r.pixelContext_=null,r.frameState=null,r}return f(e,t),e.prototype.getImageData=function(t,e,r){var n,i;d||((n=document.createElement("canvas")).width=1,n.height=1,d=n.getContext("2d")),d.clearRect(0,0,1,1);try{d.drawImage(t,e,r,1,1,0,0,1,1),i=d.getImageData(0,0,1,1).data}catch(t){return d=null,null}return i},e.prototype.getBackground=function(t){var e=this.getLayer().getBackground();return"function"==typeof e&&(e=e(t.viewState.resolution)),e||void 0},e.prototype.useContainer=function(t,e,r){var n,i,o=this.getLayer().getClassName();t&&t.className===o&&(!r||t&&t.style.backgroundColor&&(0,c.aI)((0,l.asArray)(t.style.backgroundColor),(0,l.asArray)(r)))&&((s=t.firstElementChild)instanceof HTMLCanvasElement&&(i=s.getContext("2d")));if(i&&i.canvas.style.transform===e?(this.container=t,this.context=i,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){(n=document.createElement("div")).className=o;var a=n.style;a.position="absolute",a.width="100%",a.height="100%";var s=(i=(0,h.Y)()).canvas;n.appendChild(s),(a=s.style).position="absolute",a.left="0",a.transformOrigin="top left",this.container=n,this.context=i}this.containerReused||!r||this.container.style.backgroundColor||(this.container.style.backgroundColor=r)},e.prototype.clipUnrotated=function(t,e,r){var n=(0,u.getTopLeft)(r),i=(0,u.getTopRight)(r),o=(0,u.getBottomRight)(r),a=(0,u.getBottomLeft)(r);(0,s.Bb)(e.coordinateToPixelTransform,n),(0,s.Bb)(e.coordinateToPixelTransform,i),(0,s.Bb)(e.coordinateToPixelTransform,o),(0,s.Bb)(e.coordinateToPixelTransform,a);var l=this.inversePixelTransform;(0,s.Bb)(l,n),(0,s.Bb)(l,i),(0,s.Bb)(l,o),(0,s.Bb)(l,a),t.save(),t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()},e.prototype.dispatchRenderEvent_=function(t,e,r){var n=this.getLayer();if(n.hasListener(t)){var i=new o.A(t,this.inversePixelTransform,r,e);n.dispatchEvent(i)}},e.prototype.preRender=function(t,e){this.frameState=e,this.dispatchRenderEvent_(a.A.PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(a.A.POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,r,n,i,o,a){var l=i/2,u=o/2,h=n/e,c=-h,f=-t[0]+a,p=-t[1];return(0,s.Zz)(this.tempTransform,l,u,h,c,-r,f,p)},e.prototype.getDataAtPixel=function(t,e,r){var n=(0,s.Bb)(this.inversePixelTransform,t.slice()),i=this.context,o=this.getLayer().getExtent();if(o){var a=(0,s.Bb)(e.pixelToCoordinateTransform,t.slice());if(!(0,u.containsCoordinate)(o,a))return null}var l,h=Math.round(n[0]),c=Math.round(n[1]),f=this.pixelContext_;if(!f){var p=document.createElement("canvas");p.width=1,p.height=1,f=p.getContext("2d"),this.pixelContext_=f}f.clearRect(0,0,1,1);try{f.drawImage(i.canvas,h,c,1,1,0,0,1,1),l=f.getImageData(0,0,1,1).data}catch(t){return"SecurityError"===t.name?(this.pixelContext_=null,new Uint8Array):l}return 0===l[3]?null:l},e.prototype.disposeInternal=function(){delete this.frameState,t.prototype.disposeInternal.call(this)},e}(i.A)},6843:(t,e,r)=>{"use strict";r.d(e,{A:()=>n,V:()=>i});var n={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},i={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0}},3608:(t,e,r)=>{"use strict";r.d(e,{Eo:()=>s,gY:()=>u,j:()=>l,nl:()=>h});var n=r(6141),i=r(4087),o=.5,a={Point:function(t,e,r,i,o){var a,s=r.getImage(),l=r.getText();if(s){if(s.getImageState()!=n.A.LOADED)return;var u=t;if(o){var h=s.getDeclutterMode();if("none"!==h)if(u=o,"obstacle"===h){var c=t.getBuilder(r.getZIndex(),"Image");c.setImageStyle(s,a),c.drawPoint(e,i)}else l&&l.getText()&&(a={})}var f=u.getBuilder(r.getZIndex(),"Image");f.setImageStyle(s,a),f.drawPoint(e,i)}if(l&&l.getText()){var p=t;o&&(p=o);var d=p.getBuilder(r.getZIndex(),"Text");d.setTextStyle(l,a),d.drawText(e,i)}},LineString:function(t,e,r,n,i){var o=r.getStroke();if(o){var a=t.getBuilder(r.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawLineString(e,n)}var s=r.getText();if(s&&s.getText()){var l=(i||t).getBuilder(r.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,n)}}
8,Polygon:function(t,e,r,n,i){var o=r.getFill(),a=r.getStroke();if(o||a){var s=t.getBuilder(r.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawPolygon(e,n)}var l=r.getText();if(l&&l.getText()){var u=(i||t).getBuilder(r.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,n)}},MultiPoint:function(t,e,r,i,o){var a,s=r.getImage(),l=r.getText();if(s){if(s.getImageState()!=n.A.LOADED)return;var u=t;if(o){var h=s.getDeclutterMode();if("none"!==h)if(u=o,"obstacle"===h){var c=t.getBuilder(r.getZIndex(),"Image");c.setImageStyle(s,a),c.drawMultiPoint(e,i)}else l&&l.getText()&&(a={})}var f=u.getBuilder(r.getZIndex(),"Image");f.setImageStyle(s,a),f.drawMultiPoint(e,i)}if(l&&l.getText()){var p=t;o&&(p=o);var d=p.getBuilder(r.getZIndex(),"Text");d.setTextStyle(l,a),d.drawText(e,i)}},MultiLineString:function(t,e,r,n,i){var o=r.getStroke();if(o){var a=t.getBuilder(r.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawMultiLineString(e,n)}var s=r.getText();if(s&&s.getText()){var l=(i||t).getBuilder(r.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,n)}}
8,MultiPolygon:function(t,e,r,n,i){var o=r.getFill(),a=r.getStroke();if(a||o){var s=t.getBuilder(r.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawMultiPolygon(e,n)}var l=r.getText();if(l&&l.getText()){var u=(i||t).getBuilder(r.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,n)}},GeometryCollection:function(t,e,r,n,i){var o,s,l=e.getGeometriesArray();for(o=0,s=l.length;o<s;++o){(0,a[l[o].getType()])(t,l[o],r,n,i)}},Circle:function(t,e,r,n,i){var o=r.getFill(),a=r.getStroke();if(o||a){var s=t.getBuilder(r.getZIndex(),"Circle");s.setFillStrokeStyle(o,a),s.drawCircle(e,n)}var l=r.getText();if(l&&l.getText()){var u=(i||t).getBuilder(r.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,n)}}};function s(t,e){return parseInt((0,i.v6)(t),10)-parseInt((0,i.v6)(e),10)}function l(t,e){var r=u(t,e);return r*r}function u(t,e){return o*t/e}function h(t,e,r,i,o,s,l){var u=!1,h=r.getImage();if(h){var f=h.getImageState();f==n.A.LOADED||f==n.A.ERROR?h.unlistenImageChange(o):(f==n.A.IDLE&&h.load(),h.listenImageChange(o),u=!0)}return function(t,e,r,n,i,o){var s=r.getGeometryFunction()(e);if(!s)return;var l=s.simplifyTransformed(n,i),u=r.getRenderer();if(u)c(t,l,r,e);else{(0,a[l.getType()])(t,l,r,e,o)}}(t,e,r,i,s,l),u}function c(t,e,r,n){if("GeometryCollection"!=e.getType())t.getBuilder(r.getZIndex(),"Default").drawCustom(e,n,r.getRenderer(),r.getHitDetectionRenderer());else for(var i=e.getGeometries(),o=0,a=i.length;o<a;++o)c(t,i[o],r,n)}},3513:(t,e,r)=>{"use strict";r.d(e,{BV:()=>h,KQ:()=>p,XX:()=>g,aY:()=>d});var n,i=r(6843),o=r(3530),a=r(915),s=r(8711),l=r(7083),u=r(1597),h=[];function c(t,e,r,n,i){t.beginPath(),t.moveTo(0,0),t.lineTo(e,r),t.lineTo(n,i),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,n)+1,Math.max(r,i)),t.restore()}function f(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function p(t,e,r,n){var i=(0,l.transform)(r,e,t),o=(0,l.getPointResolution)(e,n,r),s=e.getMetersPerUnit();void 0!==s&&(o*=s);var u=t.getMetersPerUnit();void 0!==u&&(o/=u);var h=t.getExtent();if(!h||(0,a.containsCoordinate)(h,i)){var c=(0,l.getPointResolution)(t,o,i)/o;isFinite(c)&&c>0&&(o/=c)}return o}function d(t,e,r,n){var i=(0,a.getCenter)(r),o=p(t,e,i,n);return(!isFinite(o)||o<=0)&&(0,a.forEachCorner)(r,(function(r){return o=p(t,e,r,n),isFinite(o)&&o>0})),o}function g(t,e,r,l,p,d,g,_,y,m,v,w){var x=(0,s.Y)(Math.round(r*t),Math.round(r*e),h);if(w||(0,o.kp)(x,i.A),0===y.length)return x.canvas;function b(t){return Math.round(t*r)/r}x.scale(r,r),x.globalCompositeOperation="lighter";var E=(0,a.createEmpty)();y.forEach((function(t,e,r){(0,a.extend)(E,t.extent)}));var A=(0,a.getWidth)(E),S=(0,a.getHeight)(E),C=(0,s.Y)(Math.round(r*A/l),Math.round(r*S/l));w||(0,o.kp)(C,i.A);var T=r/l;y.forEach((function(t,e,r){var n=t.extent[0]-E[0],i=-(t.extent[3]-E[3]),o=(0,a.getWidth)(t.extent),s=(0,a.getHeight)(t.extent);t.image.width>0&&t.image.height>0&&C.drawImage(t.image,m,m,t.image.width-2*m,t.image.height-2*m,n*T,i*T,o*T,s*T)}));var P=(0,a.getTopLeft)(g);
vendor: 1,101 bytes, line 8
8return _.getTriangles().forEach((function(t,e,i){var o=t.source,a=t.target,s=o[0][0],h=o[0][1],p=o[1][0],g=o[1][1],_=o[2][0],y=o[2][1],m=b((a[0][0]-P[0])/d),v=b(-(a[0][1]-P[1])/d),A=b((a[1][0]-P[0])/d),S=b(-(a[1][1]-P[1])/d),T=b((a[2][0]-P[0])/d),I=b(-(a[2][1]-P[1])/d),O=s,R=h;s=0,h=0;var L=[[p-=O,g-=R,0,0,A-m],[_-=O,y-=R,0,0,T-m],[0,0,p,g,S-v],[0,0,_,y,I-v]],k=(0,u.KU)(L);if(k){if(x.save(),x.beginPath(),function(){if(void 0===n){var t=document.createElement("canvas").getContext("2d");t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",c(t,4,5,4,0),c(t,4,5,0,5);var e=t.getImageData(0,0,3,3).data;n=f(e,0)||f(e,4)||f(e,8)}return n}()||!w){x.moveTo(A,S);for(var M=m-A,F=v-S,D=0;D<4;D++)x.lineTo(A+b((D+1)*M/4),S+b(D*F/3)),3!=D&&x.lineTo(A+b((D+1)*M/4),S+b((D+1)*F/3));x.lineTo(T,I)}else x.moveTo(A,S),x.lineTo(m,v),x.lineTo(T,I);x.clip(),x.transform(k[0],k[2],k[1],k[3],m,v),x.translate(E[0]-O,E[3]-R),x.scale(l/r,-l/r),x.drawImage(C.canvas,0,0),x.restore()}})),v&&(x.save(),x.globalCompositeOperation="source-over",x.strokeStyle="black",x.lineWidth=1,_.getTriangles().forEac
8h((function(t,e,r){var n=t.target,i=(n[0][0]-P[0])/d,o=-(n[0][1]-P[1])/d,a=(n[1][0]-P[0])/d,s=-(n[1][1]-P[1])/d,l=(n[2][0]-P[0])/d,u=-(n[2][1]-P[1])/d;x.beginPath(),x.moveTo(a,s),x.lineTo(i,o),x.lineTo(l,u),x.closePath(),x.stroke()})),x.restore()),x.canvas}},7404:(t,e,r)=>{"use strict";r.d(e,{A:()=>g});var n,i=r(3101),o=r(6837),a=r(8143),s=r(1078),l=r(2913),u=r(3513),h=r(1597),c=r(915),f=r(9438),p=r(8711),d=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const g=function(t){function e(e,r,n,o,a,f,p,d,g,_,y,m){var v=t.call(this,a,s.A.IDLE,{interpolate:!!m})||this;v.renderEdges_=void 0!==y&&y,v.pixelRatio_=p,v.gutter_=d,v.canvas_=null,v.sourceTileGrid_=r,v.targetTileGrid_=o,v.wrappedTileCoord_=f||a,v.sourceTiles_=[],v.sourcesListenerKeys_=null,v.sourceZ_=0;var w=o.getTileCoordExtent(v.wrappedTileCoord_),x=v.targetTileGrid_.getExtent(),b=v.sourceTileGrid_.getExtent(),E=x?(0,c.getIntersection)(w,x):w;if(0===(0,c.getArea)(E))return v.state=s.A.EMPTY,v;var A=e.getExtent();A&&(b=b?(0,c.getIntersection)(b,A):A);var S=o.getResolution(v.wrappedTileCoord_[0]),C=(0,u.aY)(e,n,E,S);if(!isFinite(C)||C<=0)return v.state=s.A.EMPTY,v;var T=void 0!==_?_:i.l;if(v.triangulation_=new l.A(e,n,E,b,C*T,S),0===v.triangulation_.getTriangles().length)return v.state=s.A.EMPTY,v;v.sourceZ_=r.getZForResolution(C);var P=v.triangulation_.calculateSourceExtent();if(b&&(e.canWrapX()?(P[1]=(0,h.qE)(P[1],b[1],b[3]),P[3]=(0,h.qE)(P[3],b[1],b[3])):P=(0,c.getIntersection)(P,b)),(0,c.getArea)(P)){for(var I=r.getTileRangeForExtentAndZ(P,v.sourceZ_),O=I.minX;O<=I.maxX;O++)for(var R=I.minY;R<=I.maxY;R++){var L=g(v.sourceZ_,O,R,p);L&&v.sourceTiles_.push(L)}0===v.sourceTiles_.length&&(v.state=s.A.EMPTY)}else v.state=s.A.EMPTY;return v}return d(e,t),e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,r,n){e&&e.getState()==s.A.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=s.A.ERROR;else{var e=this.wrappedTileCoord_[0],r=this.targetTileGrid_.getTileSize(e),n="number"==typeof r?r:r[0],i="number"==typeof r?r:r[1],o=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=(0,u.XX)(n,i,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,l,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=s.A.LOADED}this.changed()},e.prototype.load=function(){if(this.state==s.A.IDLE){this.state=s.A.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,r,n){var i=e.getState();if(i==s.A.IDLE||i==s.A.LOADING){t++;var a=(0,f.KT)(e,o.A.CHANGE,(function(r){var n=e.getState();n!=s.A.LOADED&&n!=s.A.ERROR&&n!=s.A.EMPTY||((0,f.JH)(a),0===--t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(a)}}.bind(this)),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(t,e,r){t.getState()==s.A.IDLE&&t.load()}))}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(f.JH),this.sourcesListenerKeys_=null},e.prototype.release=function(){this.canvas_&&((0,p.Yg)(this.canvas_.getContext("2d")),u.BV.push(this.canvas_),this.canvas_=null),t.prototype.release.call(this)},e}(a.A)},2913:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(915),i=r(7083),o=r(1597);const a=function(){function t(t,e,r,a,s,l){this.sourceProj_=t,this.targetProj_=e;var u={},h=(0,i.getTransform)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return u[e]||(u[e]=h(t)),u[e]},this.maxSourceExtent_=a,this.errorThresholdSquared_=s*s,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!a&&!!this.sourceProj_.getExtent()&&
vendor: 7,434 bytes, line 8
8(0,n.getWidth)(a)==(0,n.getWidth)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,n.getWidth)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,n.getWidth)(this.targetProj_.getExtent()):null;var c=(0,n.getTopLeft)(r),f=(0,n.getTopRight)(r),p=(0,n.getBottomRight)(r),d=(0,n.getBottomLeft)(r),g=this.transformInv_(c),_=this.transformInv_(f),y=this.transformInv_(p),m=this.transformInv_(d),v=10+(l?Math.max(0,Math.ceil((0,o.p6)((0,n.getArea)(r)/(l*l*256*256)))):0);if(this.addQuad_(c,f,p,d,g,_,y,m,v),this.wrapsXInSource_){var w=1/0;this.triangles_.forEach((function(t,e,r){w=Math.min(w,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])-w>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]-w>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-w>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-w>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var r=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-r<this.sourceWorldWidth_/2&&(t.source=e)}}.bind(this))}u={}}return t.prototype.addTriangle_=function(t,e,r,n,i,o){this.triangles_.push({source:[n,i,o],target:[t,e,r]})},t.prototype.addQuad_=function(t,e,r,i,a,s,l,u,h){var c=(0,n.boundingExtent)([a,s,l,u]),f=this.sourceWorldWidth_?(0,n.getWidth)(c)/this.sourceWorldWidth_:null,p=this.sourceWorldWidth_,d=this.sourceProj_.canWrapX()&&f>.5&&f<1,g=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var _=(0,n.boundingExtent)([t,e,r,i]);g=(0,n.getWidth)(_)/this.targetWorldWidth_>.25||g}!d&&this.sourceProj_.isGlobal()&&f&&(g=f>.25||g)}if(!(!g&&this.maxSourceExtent_&&isFinite(c[0])&&isFinite(c[1])&&isFinite(c[2])&&isFinite(c[3]))||(0,n.intersects)(c,this.maxSourceExtent_)){var y=0;if(!(g||isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(l[0])&&isFinite(l[1])&&isFinite(u[0])&&isFinite(u[1])))if(h>0)g=!0;else if(1!=(y=(isFinite(a[0])&&isFinite(a[1])?0:8)+(isFinite(s[0])&&isFinite(s[1])?0:4)+(isFinite(l[0])&&isFinite(l[1])?0:2)+(isFinite(u[0])&&isFinite(u[1])?0:1))&&2!=y&&4!=y&&8!=y)return;if(h>0){if(!g){var m=[(t[0]+r[0])/2,(t[1]+r[1])/2],v=this.transformInv_(m),w=void 0;if(d)w=((0,o.xP)(a[0],p)+(0,o.xP)(l[0],p))/2-(0,o.xP)(v[0],p);else w=(a[0]+l[0])/2-v[0];var x=(a[1]+l[1])/2-v[1];g=w*w+x*x>this.errorThresholdSquared_}if(g){if(Math.abs(t[0]-r[0])<=Math.abs(t[1]-r[1])){var b=[(e[0]+r[0])/2,(e[1]+r[1])/2],E=this.transformInv_(b),A=[(i[0]+t[0])/2,(i[1]+t[1])/2],S=this.transformInv_(A);this.addQuad_(t,e,b,A,a,s,E,S,h-1),this.addQuad_(A,b,r,i,S,E,l,u,h-1)}else{var C=[(t[0]+e[0])/2,(t[1]+e[1])/2],T=this.transformInv_(C),P=[(r[0]+i[0])/2,(r[1]+i[1])/2],I=this.transformInv_(P);this.addQuad_(t,C,P,i,a,T,I,u,h-1),this.addQuad_(C,e,r,P,T,s,l,I,h-1)}return}}if(d){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}11&y||this.addTriangle_(t,r,i,a,l,u),14&y||this.addTriangle_(t,r,e,a,l,s),y&&(13&y||this.addTriangle_(e,i,t,s,u,a),7&y||this.addTriangle_(e,i,r,s,u,l))}},t.prototype.calculateSourceExtent=function(){var t=(0,n.createEmpty)();return this.triangles_.forEach((function(e,r,i){var o=e.source;(0,n.extendCoordinate)(t,o[0]),(0,n.extendCoordinate)(t,o[1]),(0,n.extendCoordinate)(t,o[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}()},3101:(t,e,r)=>{"use strict";r.d(e,{b:()=>i,l:()=>n});var n=.5,i=!0},4498:(t,e,r)=>{"use strict";r.d(e,{a$:()=>a,b8:()=>i,cq:()=>s,dv:()=>o});var n=r(1597);function i(t){return void 0!==t?0:void 0}function o(t){return void 0!==t?t:void 0}function a(t){var e=2*Math.PI/t;return function(t,r){return r?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function s(t){var e=t||(0,n.eh)(5);return function(t,r){return r?t:void 0!==t?Math.abs(t)<=e?0:t:void 0}}},6782:(t,e,r)=>{"use strict";function n(t,e,r){return void 0===r&&(r=[0,0]),r[0]=t[0]+2*e,r[1]=t[1]+2*e,r}function i(t){return t[0]>0&&t[1]>0}function o(t,e,r){return void 0===r&&(r=[0,0]),r[0]=t[0]*e+.5|0,r[1]=t[1]*e+.5|0,r}function a(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}r.d(e,{Ie:()=>i,hs:()=>o,r:()=>n,xq:()=>a})},932:(t,e,r)=>{"use strict";r.r(e),r.d(e,{BingMaps:()=>nt,CartoDB:()=>lt,Cluster:()=>dt,DataTile:()=>xt,GeoTIFF:()=>Ai,IIIF:()=>zi,Image:()=>ro,ImageArcGISRest:()=>ao,ImageCanvas:()=>ho,ImageMapGuide:()=>fo,ImageStatic:()=>yo,ImageWMS:()=>Eo,OSM:()=>Co,Raster:()=>ra,Source:()=>b.A,Stamen:()=>sa,Tile:()=>z,TileArcGISRest:()=>ua,TileDebug:()=>fa,TileImage:()=>Q,TileJSON:()=>da,TileWMS:()=>ya,UTFGrid:()=>xa,UrlTile:()=>Z,Vector:()=>ct.A,VectorTile:()=>Ra,WMTS:()=>Da,XYZ:()=>ot,Zoomify:()=>Oi,sourcesFromTileGrid:()=>ja});var n=r(588);const i=function(){function t(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return t.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},t.prototype.expireCache=function(t){for(;this.canExpireCache();)this.pop()},t.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},t.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},t.prototype.forEach=function(t){for(var e=this.oldest_;e;)t(e.value_,e.key_,this),e=e.newer},t.prototype.get=function(t,e){var r=this.entries_[t];return(0,n.v)(void 0!==r,15),r===this.newest_||(r===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(r.newer.older=r.older,r.older.newer=r.newer),r.newer=null,r.older=this.newest_,this.newest_.newer=r,this.newest_=r),r.value_},t.prototype.remove=function(t){var e=this.entries_[t];return(0,n.v)(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},t.prototype.getCount=function(){return this.count_},t.prototype.getKeys=function(){var t,e=new Array(this.count_),r=0;for(t=this.newest_;t;t=t.older)e[r++]=t.key_;return e},t.prototype.getValues=function(){var t,e=new Array(this.count_),r=0;for(t=this.newest_;t;t=t.older)e[r++]=t.value_;return e},t.prototype.peekLast=function(){return this.oldest_.value_},t.prototype.peekLastKey=function(){return this.oldest_.key_},t.prototype.peekFirstKey=function(){return this.newest_.key_},t.prototype.peek=function(t){if(this.containsKey(t))return this.entries_[t].value_},t.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},t.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},t.prototype.set=function(t,e){(0,n.v)(!(t in this.entries_),16);var r={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=r:this.oldest_=r,this.newest_=r,this.entries_[t]=r,++this.count_},t.prototype.setSize=function(t){this.highWaterMark=t},t}();var o=r(915),a=r(6837),s=r(190),l=r(7404);function u(t,e,r,n){return void 0!==n?(n[0]=t,n[1]=e,n[2]=r,n):[t,e,r]}function h(t,e,r){return t+"/"+e+"/"+r}function c(t){return h(t[0],t[1],t[2])}function f(t){return t.split("/").map(Number)}function p(t){return(t[1]<<t[0])+t[2]}
8var d,g=(d=function(t,e){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},d(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return g(e,t),e.prototype.expireCache=function(t){for(;this.canExpireCache();){if(this.peekLast().getKey()in t)break;this.pop().release()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=f(this.peekFirstKey())[0];this.forEach(function(e){e.tileCoord[0]!==t&&(this.remove(c(e.tileCoord)),e.release())}.bind(this))}},e}(i);var y=r(1078);const m="tileloadstart",v="tileloadend",w="tileloaderror";var x=r(1685),b=r(6444),E=r(4087),A=r(7083),S=r(1110),C=r(7115),T=r(1597),P=r(4350),I=r(6514),O=r(6782),R=[0,0,0],L=function(){function t(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,(0,n.v)((0,I.WC)(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(var r=0,i=this.resolutions_.length-1;r<i;++r)if(e){if(this.resolutions_[r]/this.resolutions_[r+1]!==e){e=void 0;break}}else e=this.resolutions_[r]/this.resolutions_[r+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,(0,n.v)(this.origins_.length==this.resolutions_.length,20));var a=t.extent;void 0===a||this.origin_||this.origins_||(this.origin_=(0,o.getTopLeft)(a)),(0,n.v)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,(0,n.v)(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:C.R,(0,n.v)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==a?a:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map((function(t,e){var r=new S.A(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(a){var n=this.getTileRangeForExtentAndZ(a,e);r.minX=Math.max(n.minX,r.minX),r.maxX=Math.min(n.maxX,r.maxX),r.minY=Math.max(n.minY,r.minY),r.maxY=Math.min(n.maxY,r.maxY)}return r}),this):a&&this.calculateTileRanges_(a)}return t.prototype.forEachTileCoord=function(t,e,r){for(var n=this.getTileRangeForExtentAndZ(t,e),i=n.minX,o=n.maxX;i<=o;++i)for(var a=n.minY,s=n.maxY;a<=s;++a)r([e,i,a])},t.prototype.forEachTileCoordParentTileRange=function(t,e,r,n){var i,o,a,s=null,l=t[0]-1;for(2===this.zoomFactor_?(o=t[1],a=t[2]):s=this.getTileCoordExtent(t,n);l>=this.minZoom;){if(2===this.zoomFactor_?(o=Math.floor(o/2),a=Math.floor(a/2),i=(0,S.N)(o,o,a,a,r)):i=this.getTileRangeForExtentAndZ(s,l,r),e(l,i))return!0;--l}return!1},t.prototype.getExtent=function(){return this.extent_},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.getMinZoom=function(){return this.minZoom},t.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},t.prototype.getResolution=function(t){return this.resolutions_[t]},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getTileCoordChildTileRange=function(t,e,r){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var n=2*t[1],i=2*t[2];return(0,S.N)(n,n+1,i,i+1,e)}var o=this.getTileCoordExtent(t,r||this.tmpExtent_);return this.getTileRangeForExtentAndZ(o,t[0]+1,e)}return null},t.prototype.getTileRangeForTileCoordAndZ=function(t,e,r){if(e>this.maxZoom||e<this.minZoom)return null;var n=t[0],i=t[1],o=t[2];if(e===n)return(0,S.N)(i,o,i,o,r);if(this.zoomFactor_){var a=Math.pow(this.zoomFactor_,e-n),s=Math.floor(i*a),l=Math.floor(o*a);if(e<n)return(0,S.N)(s,s,l,l,r);var u=Math.floor(a*(i+1))-1,h=Math.floor(a*(o+1))-1;return(0,S.N)(s,u,l,h,r)}var c=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(c,e,r)},t.prototype.getTileRangeExtent=function(t,e,r){var n=this.getOrigin(t),i=this.getResolution(t),a=(0,O.xq)(this.getTileSize(t),this.tmpSize_),s=n[0]+e.minX*a[0]*i,l=n[0]+(e.maxX+1)*a[0]*i,u=n[1]+e.minY*a[1]*i,h=n[1]+(e.maxY+1)*a[1]*i;return(0,o.createOrUpdate)(s,u,l,h,r)},t.prototype.getTileRangeForExtentAndZ=function(t,e,r){var n=R;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,n);var i=n[1],o=n[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,n),(0,S.N)(i,n[1],o,n[2],r)},t.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),r=this.getResolution(t[0]),n=(0,O.xq)(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*n[0]*r,e[1]-(t[2]+.5)*n[1]*r]},t.prototype.getTileCoordExtent=function(t,e){var r=this.getOrigin(t[0]),n=this.getResolution(t[0]),i=(0,O.xq)(this.getTileSize(t[0]),this.tmpSize_),a=r[0]+t[1]*i[0]*n,s=r[1]-(t[2]+1)*i[1]*n,l=a+i[0]*n,u=s+i[1]*n;return(0,o.createOrUpdate)(a,s,l,u,e)},t.prototype.getTileCoordForCoordAndResolution=function(t,e,r){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,r)},t.prototype.getTileCoordForXYAndResolution_=function(t,e,r,n,i){var o=this.getZForResolution(r),a=r/this.getResolution(o),s=this.getOrigin(o),l=(0,O.xq)(this.getTileSize(o),this.tmpSize_),h=a*(t-s[0])/r/l[0],c=a*(s[1]-e)/r/l[1];return n?(h=(0,T.mk)(h,5)-1,c=(0,T.mk)(c,5)-1):(h=(0,T.RI)(h,5),c=(0,T.RI)(c,5)),u(o,h,c,i)},t.prototype.getTileCoordForXYAndZ_=function(t,e,r,n,i){var o=this.getOrigin(r),a=this.getResolution(r),s=(0,O.xq)(this.getTileSize(r),this.tmpSize_),l=(t-o[0])/a/s[0],h=(o[1]-e)/a/s[1];return n?(l=(0,T.mk)(l,5)-1,h=(0,T.mk)(h,5)-1):(l=(0,T.RI)(l,5),h=(0,T.RI)(h,5)),u(r,l,h,i)},t.prototype.getTileCoordForCoordAndZ=function(t,e,r){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,r)},t.prototype.getTileCoordResolution=function(t){return this.resolutions_[t[0]]},t.prototype.getTileSize=function(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]},t.prototype.getFullTileRange=function(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null},t.prototype.getZForResolution=function(t,e){var r=(0,I.FT)(this.resolutions_,t,e||0);return(0,T.qE)(r,this.minZoom,this.maxZoom)},t.prototype.tileCoordIntersectsViewport=function(t,e){return(0,P.sj)(e,0,e.length,2,this.getTileCoordExtent(t))},t.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,r=new Array(e),n=this.minZoom;n<e;++n)r[n]=this.getTileRangeForExtentAndZ(t,n);this.fullTileRanges_=r},t}();const k=L;var M=r(5719);function F(t){var e=t.getDefaultTileGrid();return e||(e=function(t,e,r,n){var i=U(t);return function(t,e,r,n){var i=void 0!==n?n:"top-left",a=j(t,e,r);return new k({extent:t,origin:(0,o.getCorner)(t,i),resolutions:a,tileSize:r})}(i,e,r,n)}(t),t.setDefaultTileGrid(e)),e}function D(t){var e=t||{},r=e.extent||(0,A.get)("EPSG:3857").getExtent(),n={extent:r,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:j(r,e.maxZoom,e.tileSize,e.maxResolution)};return new k(n)}function j(t,e,r,n){for(var i=void 0!==e?e:C.L,a=(0,o.getHeight)(t),s=(0,o.getWidth)(t),l=(0,O.xq)(void 0!==r?r:C.R),u=n>0?n:Math.max(s/l[0],a/l[1]),h=i+1,c=new Array(h),f=0;f<h;++f)c[f]=u/Math.pow(2,f);return c}function U(t){var e=(t=(0,A.get)(t)).getExtent();if(!e){var r=180*A.METERS_PER_UNIT[M.Ay.DEGREES]/t.getMetersPerUnit();e=(0,o.createOrUpdate)(-r,-r,r,r)}return e}var G=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),N=function(t){function e(e){var r=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX,interpolate:e.interpolate})||this;r.on,r.once,r.un,r.opaque_=void 0!==e.opaque&&e.opaque,r.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,r.tileGrid=void 0!==e.tileGrid?e.tileGrid:null;
vendor: 5,125 bytes, line 8
8return r.tileGrid&&(0,O.xq)(r.tileGrid.getTileSize(r.tileGrid.getMinZoom()),[256,256]),r.tileCache=new _(e.cacheSize||0),r.tmpSize=[0,0],r.key_=e.key||"",r.tileOptions={transition:e.transition,interpolate:e.interpolate},r.zDirection=e.zDirection?e.zDirection:0,r}return G(e,t),e.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},e.prototype.expireCache=function(t,e){var r=this.getTileCacheForProjection(t);r&&r.expireCache(e)},e.prototype.forEachLoadedTile=function(t,e,r,n){var i=this.getTileCacheForProjection(t);if(!i)return!1;for(var o,a,s,l=!0,u=r.minX;u<=r.maxX;++u)for(var c=r.minY;c<=r.maxY;++c)a=h(e,u,c),s=!1,i.containsKey(a)&&(s=(o=i.get(a)).getState()===y.A.LOADED)&&(s=!1!==n(o)),s||(l=!1);return l},e.prototype.getGutterForProjection=function(t){return 0},e.prototype.getKey=function(){return this.key_},e.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},e.prototype.getOpaque=function(t){return this.opaque_},e.prototype.getResolutions=function(){return this.tileGrid?this.tileGrid.getResolutions():null},e.prototype.getTile=function(t,e,r,n,i){return(0,E.b0)()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:F(t)},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();return(0,n.v)(null===e||(0,A.equivalent)(e,t),68),this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,e,r){var n=this.getTileGridForProjection(r),i=this.getTilePixelRatio(e),o=(0,O.xq)(n.getTileSize(t),this.tmpSize);return 1==i?o:(0,O.hs)(o,i,this.tmpSize)},e.prototype.getTileCoordForTileUrlFunction=function(t,e){var r=void 0!==e?e:this.getProjection(),n=this.getTileGridForProjection(r);return this.getWrapX()&&r.isGlobal()&&(t=function(t,e,r){var n=e[0],i=t.getTileCoordCenter(e),a=U(r);if((0,o.containsCoordinate)(a,i))return e;var s=(0,o.getWidth)(a),l=Math.ceil((a[0]-i[0])/s);return i[0]+=s*l,t.getTileCoordForCoordAndZ(i,n)}(n,t,r)),function(t,e){var r=t[0],n=t[1],i=t[2];if(e.getMinZoom()>r||r>e.getMaxZoom())return!1;var o=e.getFullTileRange(r);return!o||o.containsXY(n,i)}(t,n)?t:null},e.prototype.clear=function(){this.tileCache.clear()},e.prototype.refresh=function(){this.clear(),t.prototype.refresh.call(this)},e.prototype.updateCacheSize=function(t,e){var r=this.getTileCacheForProjection(e);t>r.highWaterMark&&(r.highWaterMark=t)},e.prototype.useTile=function(t,e,r,n){},e}(b.A),B=function(t){function e(e,r){var n=t.call(this,e)||this;return n.tile=r,n}return G(e,t),e}(x.Ay);const z=N;function V(t,e){var r=/\{z\}/g,i=/\{x\}/g,o=/\{y\}/g,a=/\{-y\}/g;return function(s,l,u){return s?t.replace(r,s[0].toString()).replace(i,s[1].toString()).replace(o,s[2].toString()).replace(a,(function(){var t=s[0],r=e.getFullTileRange(t);return(0,n.v)(r,55),(r.getHeight()-s[2]-1).toString()})):void 0}}function X(t,e){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=V(t[i],e);return K(n)}function K(t){return 1===t.length?t[0]:function(e,r,n){if(e){var i=p(e),o=(0,T.xP)(i,t.length);return t[o](e,r,n)}}}function W(t,e,r){}function H(t){var e=[],r=/\{([a-z])-([a-z])\}/.exec(t);if(r){var n=r[1].charCodeAt(0),i=r[2].charCodeAt(0),o=void 0;for(o=n;o<=i;++o)e.push(t.replace(r[0],String.fromCharCode(o)));return e}if(r=/\{(\d+)-(\d+)\}/.exec(t)){for(var a=parseInt(r[2],10),s=parseInt(r[1],10);s<=a;s++)e.push(t.replace(r[0],s.toString()));return e}return e.push(t),e}var Y=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Z=function(t){function e(r){var n=t.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,opaque:r.opaque,projection:r.projection,state:r.state,tileGrid:r.tileGrid,tilePixelRatio:r.tilePixelRatio,wrapX:r.wrapX,transition:r.transition,interpolate:r.interpolate,key:r.key,attributionsCollapsible:r.attributionsCollapsible,zDirection:r.zDirection})||this;return n.generateTileUrlFunction_=n.tileUrlFunction===e.prototype.tileUrlFunction,n.tileLoadFunction=r.tileLoadFunction,r.tileUrlFunction&&(n.tileUrlFunction=r.tileUrlFunction),n.urls=null,r.urls?n.setUrls(r.urls):r.url&&n.setUrl(r.url),n.tileLoadingKeys_={},n}return Y(e,t),e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,r=t.target,n=(0,E.v6)(r),i=r.getState();i==y.A.LOADING?(this.tileLoadingKeys_[n]=!0,e=m):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],e=i==y.A.ERROR?
8w:i==y.A.LOADED?v:void 0),null!=e&&this.dispatchEvent(new B(e,r))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=H(t);this.urls=e,this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(X(t,this.tileGrid),e):this.setKey(e)},e.prototype.tileUrlFunction=function(t,e,r){},e.prototype.useTile=function(t,e,r){var n=h(t,e,r);this.tileCache.containsKey(n)&&this.tileCache.get(n)},e}(z);var q=r(3101),$=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function J(t,e){t.getImage().src=e}const Q=function(t){function e(e){var r=this,n=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(n=e.interpolate),(r=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:J,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:n,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this).crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,r.tileClass=void 0!==e.tileClass?e.tileClass:s.A,r.tileCacheForProjection={},r.tileGridForProjection={},r.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,r.renderReprojectionEdges_=!1,r}return $(e,t),e.prototype.canExpireCache=function(){if(!q.b)return t.prototype.canExpireCache.call(this);if(this.tileCache.canExpireCache())return!0;for(var e in this.tileCacheForProjection)if(this.tileCacheForProjection[e].canExpireCache())return!0;return!1},e.prototype.expireCache=function(e,r){if(q.b){var n=this.getTileCacheForProjection(e);for(var i in this.tileCache.expireCache(this.tileCache==n?r:{}),this.tileCacheForProjection){var o=this.tileCacheForProjection[i];o.expireCache(o==n?r:{})}}else t.prototype.expireCache.call(this,e,r)},e.prototype.getGutterForProjection=function(t){return q.b&&this.getProjection()&&t&&!(0,A.equivalent)(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getKey=function(){var e=t.prototype.getKey.call(this);return this.getInterpolate()||(e+=":disable-interpolation"),e},e.prototype.getOpaque=function(e){return!(q.b&&this.getProjection()&&e&&!(0,A.equivalent)(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(e){if(!q.b)return t.prototype.getTileGridForProjection.call(this,e);var r=this.getProjection();if(!this.tileGrid||r&&!(0,A.equivalent)(r,e)){var n=(0,E.v6)(e);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=F(e)),this.tileGridForProjection[n]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(e){if(!q.b)return t.prototype.getTileCacheForProjection.call(this,e);var r=this.getProjection();if(!r||(0,A.equivalent)(r,e))return this.tileCache;var n=(0,E.v6)(e);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new _(this.tileCache.highWaterMark)),this.tileCacheForProjection[n]},e.prototype.createTile_=function(t,e,r,n,i,o){var s=[t,e,r],l=this.getTileCoordForTileUrlFunction(s,i),u=l?this.tileUrlFunction(l,n,i):void 0,h=new this.tileClass(s,void 0!==u?y.A.IDLE:y.A.EMPTY,void 0!==u?u:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return h.key=o,h.addEventListener(a.A.CHANGE,this.handleTileChange.bind(this)),h},e.prototype.getTile=function(t,e,r,n,i){var o=this.getProjection();if(q.b&&o&&i&&!(0,A.equivalent)(o,i)){var a=this.getTileCacheForProjection(i),s=[t,e,r],u=void 0,h=c(s);a.containsKey(h)&&(u=a.get(h));var f=this.getKey();if(u&&u.key==f)return u;var p=this.getTileGridForProjection(o),d=this.getTileGridForProjection(i),g=this.getTileCoordForTileUrlFunction(s,i),_=new l.A(o,p,i,d,s,g,this.getTilePixelRatio(n),this.getGutter(),function(t,e,r,n){return this.getTileInternal(t,e,r,n,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return _.key=f,u?(_.interimTile=u,_.refreshInterimChain(),a.replace(h,_)):a.set(h,_),_}return this.getTileInternal(t,e,r,n,o||i)},e.prototype.getTileInternal=function(t,e,r,n,i){var o=null,a=h(t,e,r),s=this.getKey();if(this.tileCache.containsKey(a)){if((o=this.tileCache.get(a)).key!=s){var l=o;o=this.createTile_(t,e,r,n,i,s),l.getState()==y.A.IDLE?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(t,e,r,n,i,s),this.tileCache.set(a,o);return o},e.prototype.setRenderReprojectionEdges=function(t){if(q.b&&this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,e){if(q.b){var r=(0,A.get)(t);if(r){var n=(0,E.v6)(r);n in this.tileGridForProjection||(this.tileGridForProjection[n]=e)}}},e}(Z);var tt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function et(t,e,r,n){var i=document.createElement("script"),o="olc_"+(0,E.v6)(e);function a(){delete window[o],i.parentNode.removeChild(i)}i.async=!0,i.src=t+(-1==t.indexOf("?")?"?":"&")+(n||"callback")+"="+o;var s=setTimeout((function(){a(),r&&r()}),1e4);window[o]=function(t){clearTimeout(s),a(),e(t)},document.head.appendChild(i)}(function(t){function e(e){var r=this,n="Unexpected response status: "+e.status;return(r=t.call(this,n)||this).name="ResponseError",r.response=e,r}tt(e,t)})(Error),function(t){function e(e){var r=t.call(this,"Failed to issue request")||this;return r.name="ClientError",r.client=e,r}tt(e,t)}(Error);var rt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const nt=function(t){function e(e){var r=this,n=void 0!==e.hidpi&&e.hidpi,i=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(i=e.interpolate),(r=t.call(this,{cacheSize:e.cacheSize,crossOrigin:"anonymous",interpolate:i,opaque:!0,projection:(0,A.get)("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,tilePixelRatio:n?2:1,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:e.zDirection})||this).hidpi_=n,r.culture_=void 0!==e.culture?e.culture:"en-us",r.maxZoom_=void 0!==e.maxZoom?e.maxZoom:-1,r.apiKey_=e.key,r.imagerySet_=e.imagerySet,et("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+r.imagerySet_+"?uriScheme=https&include=ImageryProviders&ke
8y="+r.apiKey_+"&c="+r.culture_,r.handleImageryMetadataResponse.bind(r),void 0,"jsonp"),r}return rt(e,t),e.prototype.getApiKey=function(){return this.apiKey_},e.prototype.getImagerySet=function(){return this.imagerySet_},e.prototype.handleImageryMetadataResponse=function(t){if(200==t.statusCode&&"OK"==t.statusDescription&&"ValidCredentials"==t.authenticationResultCode&&1==t.resourceSets.length&&1==t.resourceSets[0].resources.length){var e=t.resourceSets[0].resources[0],r=-1==this.maxZoom_?e.zoomMax:this.maxZoom_,n=U(this.getProjection()),i=this.hidpi_?2:1,a=e.imageWidth==e.imageHeight?e.imageWidth/i:[e.imageWidth/i,e.imageHeight/i],s=D({extent:n,minZoom:e.zoomMin,maxZoom:r,tileSize:a});this.tileGrid=s;var l=this.culture_,h=this.hidpi_;if(this.tileUrlFunction=K(e.imageUrlSubdomains.map((function(t){var r=[0,0,0],n=e.imageUrl.replace("{subdomain}",t).replace("{culture}",l);return function(t,e,i){if(t){u(t[0],t[1],t[2],r);var o=n;return h&&(o+="&dpi=d1&device=mobile"),o.replace("{quadkey}",function(t){var e,r,n=t[0],i=new Array(n),o=1<<n-1;for(e=0;e<n;++e)r=48,t[1]&o&&(r+=1),t[2]&o&&(r+=2),i[e]=String.fromCharCode(r),o>>=1;return i.join("")}(r))}}}))),e.imageryProviders){var c=(0,A.getTransformFromProjections)((0,A.get)("EPSG:4326"),this.getProjection());this.setAttributions(function(t){var r=[],n=t.viewState,i=this.getTileGrid(),a=i.getZForResolution(n.resolution,this.zDirection),s=i.getTileCoordForCoordAndZ(n.center,a)[0];return e.imageryProviders.map((function(e){for(var n=!1,i=e.coverageAreas,a=0,l=i.length;a<l;++a){var u=i[a];if(s>=u.zoomMin&&s<=u.zoomMax){var h=u.bbox,f=[h[1],h[0],h[3],h[2]],p=(0,o.applyTransform)(f,c);if((0,o.intersects)(p,t.extent)){n=!0;break}}}n&&r.push(e.attribution)})),r.push('<a class="ol-attribution-bing-tos" href="https://www.microsoft.com/maps/product/terms.html" target="_blank">Terms of Use</a>'),r}.bind(this))}this.setState("ready")}else this.setState("error")},e}(Q);var it=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const ot=function(t){function e(e){var r=this,n=e||{},i=void 0===n.imageSmoothing||n.imageSmoothing;void 0!==n.interpolate&&(i=n.interpolate);var o=void 0!==n.projection?n.projection:"EPSG:3857",a=void 0!==n.tileGrid?n.tileGrid:D({extent:U(o),maxResolution:n.maxResolution,maxZoom:n.maxZoom,minZoom:n.minZoom,tileSize:n.tileSize});return(r=t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:i,opaque:n.opaque,projection:o,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:a,tileLoadFunction:n.tileLoadFunction,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:n.tileUrlFunction,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this).gutter_=void 0!==n.gutter?n.gutter:0,r}return it(e,t),e.prototype.getGutter=function(){return this.gutter_},e}(Q);var at=r(3530),st=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const lt=function(t){function e(e){var r=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,maxZoom:void 0!==e.maxZoom?e.maxZoom:18,minZoom:e.minZoom,projection:e.projection,transition:e.transition,wrapX:e.wrapX,zDirection:e.zDirection})||this;return r.account_=e.account,r.mapId_=e.map||"",r.config_=e.config||{},r.templateCache_={},r.initializeMap_(),r}return st(e,t),e.prototype.getConfig=function(){return this.config_},e.prototype.updateConfig=function(t){(0,at.kp)(this.config_,t),this.initializeMap_()},e.prototype.setConfig=function(t){this.config_=t||{},this.initializeMap_()},e.prototype.initializeMap_=function(){var t=JSON.stringify(this.config_);if(this.templateCache_[t])this.applyTemplate_(this.templateCache_[t]);else{var e="https://"+this.account_+".carto.com/api/v1/map";this.mapId_&&(e+="/named/"+this.mapId_);var r=new XMLHttpRequest;r.addEventListener("load",this.handleInitResponse_.bind(this,t)),r.addEventListener("error",this.handleInitError_.bind(this)),r.open("POST",e),r.setRequestHeader("Content-type","application/json"),r.send(JSON.stringify(this.config_))}},e.prototype.handleInitResponse_=function(t,e){var r=e.target;
8if(!r.status||r.status>=200&&r.status<300){var n=void 0;try{n=JSON.parse(r.responseText)}catch(t){return void this.setState("error")}this.applyTemplate_(n),this.templateCache_[t]=n,this.setState("ready")}else this.setState("error")},e.prototype.handleInitError_=function(t){this.setState("error")},e.prototype.applyTemplate_=function(t){var e="https://"+t.cdn_url.https+"/"+this.account_+"/api/v1/map/"+t.layergroupid+"/{z}/{x}/{y}.png";this.setUrl(e)},e}(ot);var ut=r(6717),ht=r(4294),ct=r(731),ft=r(6933),pt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const dt=function(t){function e(e){var r=t.call(this,{attributions:e.attributions,wrapX:e.wrapX})||this;return r.resolution=void 0,r.distance=void 0!==e.distance?e.distance:20,r.minDistance=e.minDistance||0,r.interpolationRatio=0,r.features=[],r.geometryFunction=e.geometryFunction||function(t){var e=t.getGeometry();return(0,n.v)("Point"==e.getType(),10),e},r.createCustomCluster_=e.createCluster,r.source=null,r.boundRefresh_=r.refresh.bind(r),r.updateDistance(r.distance,r.minDistance),r.setSource(e.source||null),r}return pt(e,t),e.prototype.clear=function(e){this.features.length=0,t.prototype.clear.call(this,e)},e.prototype.getDistance=function(){return this.distance},e.prototype.getSource=function(){return this.source},e.prototype.loadFeatures=function(t,e,r){this.source.loadFeatures(t,e,r),e!==this.resolution&&(this.resolution=e,this.refresh())},e.prototype.setDistance=function(t){this.updateDistance(t,this.minDistance)},e.prototype.setMinDistance=function(t){this.updateDistance(this.distance,t)},e.prototype.getMinDistance=function(){return this.minDistance},e.prototype.setSource=function(t){this.source&&this.source.removeEventListener(a.A.CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(a.A.CHANGE,this.boundRefresh_),this.refresh()},e.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)},e.prototype.updateDistance=function(t,e){var r=0===t?0:Math.min(e,t)/t,n=t!==this.distance||this.interpolationRatio!==r;this.distance=t,this.minDistance=e,this.interpolationRatio=r,n&&this.refresh()}
8,e.prototype.cluster=function(){if(void 0!==this.resolution&&this.source)for(var t=(0,o.createEmpty)(),e=this.distance*this.resolution,r=this.source.getFeatures(),n={},i=0,a=r.length;i<a;i++){var s=r[i];if(!((0,E.v6)(s)in n)){var l=this.geometryFunction(s);if(l){var u=l.getCoordinates();(0,o.createOrUpdateFromCoordinate)(u,t),(0,o.buffer)(t,e,t);var h=this.source.getFeaturesInExtent(t).filter((function(t){var e=(0,E.v6)(t);return!(e in n)&&(n[e]=!0,!0)}));this.features.push(this.createCluster(h,t))}}}},e.prototype.createCluster=function(t,e){for(var r=[0,0],n=t.length-1;n>=0;--n){var i=this.geometryFunction(t[n]);i?(0,ft.WQ)(r,i.getCoordinates()):t.splice(n,1)}(0,ft.hs)(r,1/t.length);var a=(0,o.getCenter)(e),s=this.interpolationRatio,l=new ht.A([r[0]*(1-s)+a[0]*s,r[1]*(1-s)+a[1]*s]);return this.createCustomCluster_?this.createCustomCluster_(l,t):new ut.A({geometry:l,features:t})},e}(ct.A);var gt=r(8143),_t=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),yt=function(t){function e(e){var r=this,n=y.A.IDLE;return(r=t.call(this,e.tileCoord,n,{transition:e.transition,interpolate:e.interpolate})||this).loader_=e.loader,r.data_=null,r.error_=null,r.size_=e.size||[256,256],r}return _t(e,t),e.prototype.getSize=function(){return this.size_},e.prototype.getData=function(){return this.data_},e.prototype.getError=function(){return this.error_},e.prototype.load=function(){if(this.state===y.A.IDLE||this.state===y.A.ERROR){this.state=y.A.LOADING,this.changed();var t=this;this.loader_().then((function(e){t.data_=e,t.state=y.A.LOADED,t.changed()})).catch((function(e){t.error_=e,t.state=y.A.ERROR,t.changed()}))}},e}(gt.A);const mt=yt;var vt=r(4238),wt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const xt=function(t){function e(e){var r=this,n=void 0===e.projection?"EPSG:3857":e.projection,i=e.tileGrid;if(void 0===i&&n&&(i=D({extent:U(n),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize})),(r=t.call(this,{cacheSize:.1,attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:n,tileGrid:i,opaque:e.opaque,state:e.state,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate})||this).gutter_=void 0!==e.gutter?e.gutter:0,r.tileSize_=e.tileSize?(0,O.xq)(e.tileSize):null,!r.tileSize_&&e.tilePixelRatio&&i){var o=(0,O.xq)(i.getTileSize(0));r.tileSize_=[o[0]*e.tilePixelRatio,o[1]*e.tilePixelRatio]}return r.tileSizes_=null,r.tileLoadingKeys_={},r.loader_=e.loader,r.handleTileChange_=r.handleTileChange_.bind(r),r.bandCount=void 0===e.bandCount?4:e.bandCount,r}return wt(e,t),e.prototype.setTileSizes=function(t){this.tileSizes_=t},e.prototype.getTileSize=function(t){if(this.tileSizes_)return this.tileSizes_[t];if(this.tileSize_)return this.tileSize_;var e=this.getTileGrid();return e?(0,O.xq)(e.getTileSize(t)):[256,256]},e.prototype.getGutterForProjection=function(t){return this.gutter_},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.getTile=function(t,e,r,n,i){var o=this.getTileSize(t),s=h(t,e,r);if(this.tileCache.containsKey(s))return this.tileCache.get(s);var l=this.loader_;var u=(0,at.kp)({tileCoord:[t,e,r],loader:function(){return(0,vt.hq)((function(){return l(t,e,r)}))},size:o},this.tileOptions),c=new mt(u);return c.key=this.getKey(),c.addEventListener(a.A.CHANGE,this.handleTileChange_),this.tileCache.set(s,c),c},e.prototype.handleTileChange_=function(t){var e,r=t.target,n=(0,E.v6)(r),i=r.getState();i==y.A.LOADING?(this.tileLoadingKeys_[n]=!0,e=m):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],e=i==y.A.ERROR?
vendor: 25,767 bytes, line 8
8w:i==y.A.LOADED?v:void 0),e&&this.dispatchEvent(new B(e,r))},e}(z),bt="This constructor is not a subclass of Float16Array",Et="The constructor property value is not an object",At="Attempting to access detached ArrayBuffer",St="Cannot convert undefined or null to object",Ct="Cannot mix BigInt and other types, use explicit conversions",Tt="@@iterator property is not callable",Pt="Reduce of empty array with no initial value",It="Offset is out of bounds";function Ot(t){return(e,...r)=>Lt(t,e,r)}function Rt(t,e){return Ot(Dt(t,e).get)}const{apply:Lt,construct:kt,defineProperty:Mt,get:Ft,getOwnPropertyDescriptor:Dt,getPrototypeOf:jt,has:Ut,ownKeys:Gt,set:Nt,setPrototypeOf:Bt}=Reflect,zt=Proxy,{EPSILON:Vt,MAX_SAFE_INTEGER:Xt,isFinite:Kt,isNaN:Wt}=Number,{iterator:Ht,species:Yt,toStringTag:Zt,for:qt}=Symbol,$t=Object,{create:Jt,defineProperty:Qt,freeze:te,is:ee}=$t,re=$t.prototype,ne=re.__lookupGetter__?Ot(re.__lookupGetter__):(t,e)=>{if(null==t)throw $e(St);let r=$t(t);do{const t=Dt(r,e);if(void 0!==t)return ie(t,"get")?t.get:void 0}while(null!==(r=jt(r)))},ie=$t.hasOwn||Ot(re.hasOwnProperty),oe=Array,ae=oe.isArray,se=oe.prototype,le=Ot(se.join),ue=Ot(se.push),he=Ot(se.toLocaleString),ce=se[Ht],fe=Ot(ce),{abs:pe,trunc:de}=Math,ge=ArrayBuffer,_e=ge.isView,ye=ge.prototype,me=Ot(ye.slice),ve=Rt(ye,"byteLength"),we="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:null,xe=we&&Rt(we.prototype,"byteLength"),be=jt(Uint8Array),Ee=be.from,Ae=be.prototype,Se=Ae[Ht],Ce=Ot(Ae.keys),Te=Ot(Ae.values),Pe=Ot(Ae.entries),Ie=Ot(Ae.set),Oe=Ot(Ae.reverse),Re=Ot(Ae.fill),Le=Ot(Ae.copyWithin),ke=Ot(Ae.sort),Me=Ot(Ae.slice),Fe=Ot(Ae.subarray),De=Rt(Ae,"buffer"),je=Rt(Ae,"byteOffset"),Ue=Rt(Ae,"length"),Ge=Rt(Ae,Zt),Ne=Uint8Array,Be=Uint16Array,ze=(...t)=>Lt(Ee,Be,t),Ve=Uint32Array,Xe=Float32Array,Ke=jt([][Ht]()),We=Ot(Ke.next),He=Ot(function*(){}().next),Ye=jt(Ke),Ze=DataView.prototype,qe=Ot(Ze.getUint16),$e=(Ot(Ze.setUint16),TypeError),Je=RangeError,Qe=WeakSet,tr=Qe.prototype,er=Ot(tr.add),rr=Ot(tr.has),nr=WeakMap,ir=nr.prototype,or=Ot(ir.get),ar=Ot(ir.has),sr=Ot(ir.set),lr=new nr,ur=Jt(null,{next:{value:function(){const t=or(lr,this);return We(t)}},[Ht]:{value:function(){return this}}});function hr(t){if(t[Ht]===ce&&Ke.next===We)return t;const e=Jt(ur);return sr(lr,e,fe(t)),e}const cr=new nr,fr=Jt(Ye,{next:{value:function(){const t=or(cr,this);return He(t)},writable:!0,configurable:!0}});for(const t of Gt(Ke))"next"!==t&&Qt(fr,t,Dt(Ke,t));function pr(t){const e=Jt(fr);return sr(cr,e,t),e}function dr(t){return null!==t&&"object"==typeof t||"function"==typeof t}function gr(t){return null!==t&&"object"==typeof t}function _r(t){return void 0!==Ge(t)}function yr(t){const e=Ge(t);return"BigInt64Array"===e||"BigUint64Array"===e}function mr(t){if(null===we)return!1;try{return xe(t),!0}catch(t){return!1}}function vr(t){return function(t){try{return!ae(t)&&(ve(t),!0)}catch(t){return!1}}(t)||mr(t)}function wr(t){return!!ae(t)&&(t[Ht]===ce&&Ke.next===We)}function xr(t){if("string"!=typeof t)return!1;const e=+t;return t===e+""&&(!!Kt(e)&&e===de(e))}const br=qt("__Float16Array__");const Er=1/Vt;const Ar=6103515625e-14,Sr=65504,Cr=.0009765625,Tr=Cr*Ar,Pr=Cr*Er;function Ir(t){const e=+t;if(!Kt(e)||0===e)return e;const r=e>0?1:-1,n=pe(e);if(n<Ar)return r*function(t){return t+Er-Er}(n/Tr)*Tr;const i=(1+Pr)*n,o=i-(i-n);return o>Sr||Wt(o)?r*(1/0):r*o}const Or=new ge(4),Rr=new Xe(Or),Lr=new Ve(Or),kr=new Be(512),Mr=new Ne(512);for(let t=0;t<256;++t){const e=t-127;e<-24?(kr[t]=0,kr[256|t]=32768,Mr[t]=24,Mr[256|t]=24):e<-14?(kr[t]=1024>>-e-14,kr[256|t]=1024>>-e-14|32768,Mr[t]=-e-1,Mr[256|t]=-e-1):e<=15?(kr[t]=e+15<<10,kr[256|t]=e+15<<10|32768,Mr[t]=13,Mr[256|t]=13):e<128?(kr[t]=31744,kr[256|t]=64512,Mr[t]=24,Mr[256|t]=24):(kr[t]=31744,kr[256|t]=64512,Mr[t]=13,Mr[256|t]=13)}function Fr(t){Rr[0]=Ir(t);const e=Lr[0],r=e>>23&511;return kr[r]+((8388607&e)>>Mr[r])}const Dr=new Ve(2048);for(let t=1;t<1024;++t){let e=t<<13,r=0;for(;!(8388608&e);)e<<=1,r-=8388608;e&=-8388609,r+=947912704,Dr[t]=e|r}for(let t=1024;t<2048;++t)Dr[t]=939524096+(t-1024<<13);const jr=new Ve(64);for(let t=1;t<31;++t)jr[t]=t<<23;jr[31]=1199570944,jr[32]=2147483648;for(let t=33;t<63;++t)jr[t]=2147483648+(t-32<<23);jr[63]=3347054592;const Ur=new Be(64);for(let t=1;t<64;++t)32!==t&&(Ur[t]=1024);function Gr(t){const e=t>>10;return Lr[0]=Dr[Ur[e]+(1023&t)]+jr[e],Rr[0]}function Nr(t){const e=+t;return Wt(e)||0===e?0:de(e)}function Br(t){const e=Nr(t);return e<0?0:e<Xt?e:Xt}function zr(t,e){if(!dr(t))throw $e("This is not an object");const r=t.constructor;if(void 0===r)return e;if(!dr(r))throw $e(Et);const n=r[Yt];return null==n?e:n}function Vr(t){if(mr(t))return!1;try{return me(t,0,0),!1}catch(t){}return!0}function Xr(t,e){const r=Wt(t),n=Wt(e);if(r&&n)return 0;if(r)return 1;if(n)return-1;if(t<e)return-1;if(t>e)return 1;if(0===t&&0===e){const r=ee(t,0),n=ee(e,0);if(!r&&n)return-1;if(r&&!n)return 1}return 0}const Kr=new nr;function Wr(t){return ar(Kr,t)||!_e(t)&&function(t){if(!gr(t))return!1;const e=jt(t);if(!gr(e))return!1;const r=e.constructor;if(void 0===r)return!1;if(!dr(r))throw $e(Et);return Ut(r,br)}(t)}function Hr(t){if(!Wr(t))throw $e("This is not a Float16Array object")}function Yr(t,e){const r=Wr(t),n=_r(t);if(!r&&!n)throw $e("Species constructor didn't return TypedArray object");if("number"==typeof e){let n;if(r){const e=Zr(t);n=Ue(e)}else n=Ue(t);if(n<e)throw $e("Derived constructor created TypedArray object which was too small length")}if(yr(t))throw $e(Ct)}function Zr(t){const e=or(Kr,t);if(void 0!==e){if(Vr(De(e)))throw $e(At);return e}const r=t.buffer;if(Vr(r))throw $e(At);const n=kt(Qr,[r,t.byteOffset,t.length],t.constructor);return or(Kr,n)}function qr(t){const e=Ue(t),r=[];for(let n=0;n<e;++n)r[n]=Gr(t[n]);return r}const $r=new Qe;for(const t of Gt(Ae)){if(t===Zt)continue;const e=Dt(Ae,t);ie(e,"get")&&"function"==typeof e.get&&er($r,e.get)}const Jr=te({get:(t,e,r)=>xr(e)&&ie(t,e)?Gr(Ft(t,e)):rr($r,ne(t,e))?Ft(t,e):Ft(t,e,r),set:(t,e,r,n)=>xr(e)&&ie(t,e)?Nt(t,e,Fr(r)):Nt(t,e,r,n),getOwnPropertyDescriptor(t,e){if(xr(e)&&ie(t,e)){const r=Dt(t,e);return r.value=Gr(r.value),r}return Dt(t,e)},defineProperty:(t,e,r)=>xr(e)&&ie(t,e)&&ie(r,"value")?(r.value=Fr(r.value),Mt(t,e,r)):Mt(t,e,r)});class Qr{constructor(t,e,r){let n;if(Wr(t))n=kt(Be,[Zr(t)],new.target);else if(dr(t)&&!vr(t)){let e,r;if(_r(t)){e=t,r=Ue(t);if(Vr(De(t)))throw $e(At);if(yr(t))throw $e(Ct);const i=new ge(2*r);n=kt(Be,[i],new.target)}else{const i=t[Ht];if(null!=i&&"function"!=typeof i)throw $e(Tt);null!=i?wr(t)?(e=t,r=t.length):(e=[...t],r=e.length):(e=t,r=Br(e.length)),n=kt(Be,[r],new.target)}for(let t=0;t<r;++t)n[t]=Fr(e[t])}else n=kt(Be,arguments,new.target);const i=new zt(n,Jr);return sr(Kr,i,n),i}static from(t,...e){const r=this;if(!Ut(r,br))throw $e(bt);if(r===Qr){if(Wr(t)&&0===e.length){const e=Zr(t),r=new Be(De(e),je(e),Ue(e));return new Qr(De(Me(r)))}if(0===e.length)return new Qr(De(ze(t,Fr)));const r=e[0],n=e[1];return new Qr(De(ze(t,(function(t,...e){return Fr(Lt(r,this,[t,...hr(e)]))}),n)))}let n,i;const o=t[Ht];if(null!=o&&"function"!=typeof o)throw $e(Tt);if(null!=o)wr(t)?(n=t,i=t.length):_r(a=t)&&a[Ht]===Se&&Ke.next===We?(n=t,i=Ue(t)):(n=[...t],i=n.length);else{if(null==t)throw $e(St);n=$t(t),i=Br(n.length)}var a;const s=new r(i);if(0===e.length)for(let t=0;t<i;++t)s[t]=n[t];else{const t=e[0],r=e[1];for(let e=0;e<i;++e)s[e]=Lt(t,r,[n[e],e])}return s}static of(...t){const e=this;if(!Ut(e,br))throw $e(bt);const r=t.length;if(e===Qr){const e=new Qr(r),n=Zr(e);for(let e=0;e<r;++e)n[e]=Fr(t[e]);return e}const n=new e(r);for(let e=0;e<r;++e)n[e]=t[e];return n}keys(){Hr(this);const t=Zr(this);return Ce(t)}values(){Hr(this);const t=Zr(this);return pr(function*(){for(const e of Te(t))yield Gr(e)}())}entries(){Hr(this);const t=Zr(this);return pr(function*(){for(const[e,r]of Pe(t))yield[e,Gr(r)]}())}at(t){Hr(this);const e=Zr(this),r=Ue(e),n=Nr(t),i=n>=0?n:r+n;if(!(i<0||i>=r))return Gr(e[i])}with(t,e){Hr(this);const r=Zr(this),n=Ue(r),i=Nr(t),o=i>=0?i:n+i,a=+e;if(o<0||o>=n)throw Je(It);const s=new Be(De(r),je(r),Ue(r)),l=new Qr(De(Me(s)));return Zr(l)[o]=Fr(a),l}map(t,...e){Hr(this);const r=Zr(this),n=Ue(r),i=e[0],o=zr(r,Qr);if(o===Qr){const e=new Qr(n),o=Zr(e);for(let e=0;e<n;++e){const n=Gr(r[e]);o[e]=Fr(Lt(t,i,[n,e,this]))}return e}const a=new o(n);Yr(a,n);for(let e=0;e<n;++e){const n=Gr(r[e]);a[e]=Lt(t,i,[n,e,this])}return a}filter(t,...e){Hr(this);const r=Zr(this),n=Ue(r),i=e[0],o=[];for(let e=0;e<n;++e){const n=Gr(r[e]);Lt(t,i,[n,e,this])&&ue(o,n)}const a=new(zr(r,Qr))(o);return Yr(a),a}reduce(t,...e){Hr(this);const r=Zr(this),n=Ue(r);if(0===n&&0===e.length)throw $e(Pt);let i,o;0===e.length?(i=Gr(r[0]),o=1):(i=e[0],o=0);for(let e=o;e<n;++e)i=t(i,Gr(r[e]),e,this);return i}reduceRight(t,...e){Hr(this);const r=Zr(this),n=Ue(r);if(0===n&&0===e.length)throw $e(Pt);let i,o;0===e.length?(i=Gr(r[n-1]),o=n-2):(i=e[0],o=n-1);for(let e=o;e>=0;--e)i=t(i,Gr(r[e]),e,this);return i}forEach(t,...e){Hr(this);const r=Zr(this),n=Ue(r),i=e[0];for(let e=0;e<n;++e)Lt(t,i,[Gr(r[e]),e,this])}find(t,...e){Hr(this);const r=Zr(this),n=Ue(r),i=e[0];for(let e=0;e<n;++e){const n=Gr(r[e]);if(Lt(t,i,[n,e,this]))return n}}findIndex(t,...e){Hr(this);const r=Zr(this),n=Ue(r),i=e[0];for(let e=0;e<n;++e){const n=Gr(r[e]);if(Lt(t,i,[n,e,this]))return e}return-1}findLast(t,...e){Hr(this);const r=Zr(this),n=Ue(r),i=e[0];for(let e=n-1;e>=0;--e){const n=Gr(r[e]);if(Lt(t,i,[n,e,this]))return n}}findLastIndex(t,...e){Hr(this);const r=Zr(this),n=Ue(r),i=e[0];for(let e=n-1;e>=0;--e){const n=Gr(r[e]);if(Lt(t,i,[n,e,this]))return e}return-1}every(t,...e){Hr(this);const r=Zr(this),n=Ue(r),i=e[0];for(let e=0;e<n;++e)if(!Lt(t,i,[Gr(r[e]),e,this]))return!1;return!0}some(t,...e){Hr(this);const r=Zr(this),n=Ue(r),i=e[0];for(let e=0;e<n;++e)if(Lt(t,i,[Gr(r[e]),e,this]))return!0;return!1}set(t,...e){Hr(this);const r=Zr(this),n=Nr(e[0]);if(n<0)throw Je(It);if(null==t)throw $e(St);if(yr(t))throw $e(Ct);if(Wr(t))return Ie(Zr(this),Zr(t),n);if(_r(t)){if(Vr(De(t)))throw $e(At)}const i=Ue(r),o=$t(t),a=Br(o.length);if(n===1/0||a+n>i)throw Je(It);for(let t=0;t<a;++t)r[t+n]=Fr(o[t])}reverse(){Hr(this);const t=Zr(this);return Oe(t),this}toReversed(){Hr(this);const t=Zr(this),e=new Be(De(t),je(t),Ue(t)),r=new Qr(De(Me(e))),n=Zr(r);return Oe(n),r}fill(t,...e){Hr(this);const r=Zr(this);return Re(r,Fr(t),...hr(e)),this}copyWithin(t,e,...r){Hr(this);const n=Zr(this);return Le(n,t,e,...hr(r)),this}sort(t){Hr(this);const e=Zr(this),r=void 0!==t?t:Xr;return ke(e,((t,e)=>r(Gr(t),Gr(e)))),this}toSorted(t){Hr(this);const e=Zr(this);if(void 0!==t&&"function"!=typeof t)throw new $e("The comparison function must be either a function or undefined");const r=void 0!==t?t:Xr,n=new Be(De(e),je(e),Ue(e)),i=new Qr(De(Me(n))),o=Zr(i);return ke(o,((t,e)=>r(Gr(t),Gr(e)))),i}slice(t,e){Hr(this);const r=Zr(this),n=zr(r,Qr);if(n===Qr){const n=new Be(De(r),je(r),Ue(r));return new Qr(De(Me(n,t,e)))}const i=Ue(r),o=Nr(t),a=void 0===e?i:Nr(e);let s,l;s=o===-1/0?0:o<0?i+o>0?i+o:0:i<o?i:o,l=a===-1/0?0:a<0?i+a>0?i+a:0:i<a?i:a;const u=l-s>0?l-s:0,h=new n(u);if(Yr(h,u),0===u)return h;if(Vr(De(r)))throw $e(At);let c=0;for(;s<l;)h[c]=Gr(r[s]),++s,++c;return h}subarray(t,e){Hr(this);const r=Zr(this),n=zr(r,Qr),i=new Be(De(r),je(r),Ue(r)),o=Fe(i,t,e),a=new n(De(o),je(o),Ue(o));return Yr(a),a}indexOf(t,...e){Hr(this);const r=Zr(this),n=Ue(r);let i=Nr(e[0]);if(i===1/0)return-1;i<0&&(i+=n,i<0&&(i=0));for(let e=i;e<n;++e)if(ie(r,e)&&Gr(r[e])===t)return e;return-1}lastIndexOf(t,...e){Hr(this);const r=Zr(this),n=Ue(r);let i=e.length>=1?Nr(e[0]):n-1;if(i===-1/0)return-1;i>=0?i=i<n-1?i:n-1:i+=n;for(let e=i;e>=0;--e)if(ie(r,e)&&Gr(r[e])===t)return e;return-1}includes(t,...e){Hr(this);const r=Zr(this),n=Ue(r);let i=Nr(e[0]);if(i===1/0)return!1;i<0&&(i+=n,i<0&&(i=0));const o=Wt(t);for(let e=i;e<n;++e){const n=Gr(r[e]);if(o&&Wt(n))return!0;if(n===t)return!0}return!1}join(t){Hr(this);const e=qr(Zr(this));return le(e,t)}toLocaleString(...t){Hr(this);const e=qr(Zr(this));return he(e,...hr(t))}get[Zt](){if(Wr(this))return"Float16Array"}}Qt(Qr,"BYTES_PER_ELEMENT",{value:2}),Qt(Qr,br,{}),Bt(Qr,be);const tn=Qr.prototype;function en(t,e,...r){return Gr(qe(t,e,...hr(r)))}Qt(tn,"BYTES_PER_ELEMENT",{value:2}),Qt(tn,Ht,{value:tn.values,writable:!0,configurable:!0}),Bt(tn,Ae);var rn=r(7379),nn=r(563),on=r(8622);const an=new Map;function sn(t,e){Array.isArray(t)||(t=[t]),t.forEach((t=>an.set(t,e)))}async function ln(t){const e=an.get(t.Compression);if(!e)throw new Error(`Unknown compression method identifier: ${t.Compression}`);return new(await e())(t)}function un(t,e,r,n=1){return new(Object.getPrototypeOf(t).constructor)(e*r*n)}function hn(t,e,r){return(1-r)*t+r*e}function cn(t,e,r,n,i,o="nearest"){switch(o.toLowerCase()){case"nearest":return function(t,e,r,n,i){const o=e/n,a=r/i;return t.map((t=>{const s=un(t,n,i);for(let l=0;l<i;++l){const i=Math.min(Math.round(a*l),r-1);for(let r=0;r<n;++r){const a=Math.min(Math.round(o*r),e-1),u=t[i*e+a];s[l*n+r]=u}}return s}))}(t,e,r,n,i);case"bilinear":case"linear":return function(t,e,r,n,i){const o=e/n,a=r/i;return t.map((t=>{const s=un(t,n,i);for(let l=0;l<i;++l){const i=a*l,u=Math.floor(i),h=Math.min(Math.ceil(i),r-1);for(let r=0;r<n;++r){const a=o*r,c=a%1,f=Math.floor(a),p=Math.min(Math.ceil(a),e-1),d=t[u*e+f],g=t[u*e+p],_=t[h*e+f],y=t[h*e+p],m=hn(hn(d,g,c),hn(_,y,c),i%1);s[l*n+r]=m}}return s}))}(t,e,r,n,i);default:throw new Error(`Unsupported resampling method: '${o}'`)}}function fn(t,e,r,n,i,o,a="nearest"){switch(a.toLowerCase()){case"nearest":return function(t,e,r,n,i,o){const a=e/n,s=r/i,l=un(t,n,i,o);for(let u=0;u<i;++u){const i=Math.min(Math.round(s*u),r-1);for(let r=0;r<n;++r){const s=Math.min(Math.round(a*r),e-1);for(let a=0;a<o;++a){const h=t[i*e*o+s*o+a];l[u*n*o+r*o+a]=h}}}return l}(t,e,r,n,i,o);case"bilinear":case"linear":return function(t,e,r,n,i,o){const a=e/n,s=r/i,l=un(t,n,i,o);for(let u=0;u<i;++u){const i=s*u,h=Math.floor(i),c=Math.min(Math.ceil(i),r-1);for(let r=0;r<n;++r){const s=a*r,f=s%1,p=Math.floor(s),d=Math.min(Math.ceil(s),e-1);for(let a=0;a<o;++a){const s=t[h*e*o+p*o+a],g=t[h*e*o+d*o+a],_=t[c*e*o+p*o+a],y=t[c*e*o+d*o+a],m=hn(hn(s,g,f),hn(_,y,f),i%1);l[u*n*o+r*o+a]=m}}}return l}(t,e,r,n,i,o);default:throw new Error(`Unsupported resampling method: '${a}'`)}}function pn(t,e,r){let n=0;for(let i=e;i<r;++i)n+=t[i];return n}function dn(t,e,r){switch(t){case 1:if(e<=8)return new Uint8Array(r);if(e<=16)return new Uint16Array(r);if(e<=32)return new Uint32Array(r);break;case 2:if(8===e)return new Int8Array(r);if(16===e)return new Int16Array(r);if(32===e)return new Int32Array(r);break;case 3:switch(e){case 16:case 32:return new Float32Array(r);case 64:return new Float64Array(r)}}throw Error("Unsupported data format/bitsPerSample")}sn([void 0,1],(()=>r.e(656).then(r.bind(r,5121)).then((t=>t.default)))),sn(5,(()=>r.e(656).then(r.bind(r,2764)).then((t=>t.default)))),sn(6,(()=>{throw new Error("old style JPEG compression is not supported.")})),sn(7,(()=>r.e(656).then(r.bind(r,6457)).then((t=>t.default)))),sn([8,32946],(()=>r.e(656).then(r.bind(r,424)).then((t=>t.default)))),sn(32773,(()=>r.e(656).then(r.bind(r,1030)).then((t=>t.default)))),sn(34887,(()=>r.e(656).then(r.bind(r,4623)).then((t=>t.default)))),sn(50001,(()=>r.e(656).then(r.bind(r,6568)).then((t=>t.default))));const gn=class{constructor(t,e,r,n,i,o){this.fileDirectory=t,this.geoKeys=e,this.dataView=r,this.littleEndian=n,this.tiles=i?{}:null,this.isTiled=!t.StripOffsets;const a=t.PlanarConfiguration;if(this.planarConfiguration=void 0===a?1:a,1!==this.planarConfiguration&&2!==this.planarConfiguration)throw new Error("Invalid planar configuration.");this.source=o}getFileDirectory(){return this.fileDirectory}getGeoKeys(){return this.geoKeys}getWidth(){return this.fileDirectory.ImageWidth}getHeight(){return this.fileDirectory.ImageLength}getSamplesPerPixel(){return void 0!==this.fileDirectory.SamplesPerPixel?this.fileDirectory.SamplesPerPixel:1}getTileWidth(){return this.isTiled?this.fileDirectory.TileWidth:this.getWidth()}getTileHeight(){return this.isTiled?this.fileDirectory.TileLength:void 0!==this.fileDirectory.RowsPerStrip?Math.min(this.fileDirectory.RowsPerStrip,this.getHeight()):this.getHeight()}getBlockWidth(){return this.getTileWidth()}getBlockHeight(t){return this.isTiled||(t+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-t*this.getTileHeight()}getBytesPerPixel(){let t=0;for(let e=0;e<this.fileDirectory.BitsPerSample.length;++e)t+=this.getSampleByteSize(e);return t}getSampleByteSize(t){if(t>=this.fileDirectory.BitsPerSample.length)throw new RangeError(`Sample index ${t} is out of range.`);return Math.ceil(this.fileDirectory.BitsPerSample[t]/8)}getReaderForSample(t){const e=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1,r=this.fileDirectory.BitsPerSample[t];switch(e){case 1:if(r<=8)return DataView.prototype.getUint8;if(r<=16)return DataView.prototype.getUint16;if(r<=32)return DataView.prototype.getUint32;break;case 2:if(r<=8)return DataView.prototype.getInt8;if(r<=16)return DataView.prototype.getInt16;if(r<=32)return DataView.prototype.getInt32;break;case 3:switch(r){case 16:return function(t,e){return en(this,t,e)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64}}throw Error("Unsupported data format/bitsPerSample")}getSampleFormat(t=0){return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1}getBitsPerSample(t=0){return this.fileDirectory.BitsPerSample[t]}getArrayForSample(t,e){return dn(this.getSampleFormat(t),this.getBitsPerSample(t),e)}async getTileOrStrip(t,e,r,n,i){const o=Math.ceil(this.getWidth()/this.getTileWidth()),a=Math.ceil(this.getHeight()/this.getTileHeight());let s;const{tiles:l}=this;let u,h;1===this.planarConfiguration?s=e*o+t:2===this.planarConfiguration&&(s=r*o*a+e*o+t),this.isTiled?(u=this.fileDirectory.TileOffsets[s],h=this.fileDirectory.TileByteCounts[s]):(u=this.fileDirectory.StripOffsets[s],h=this.fileDirectory.StripByteCounts[s]);const c=(await this.source.fetch([{offset:u,length:h}],i))[0];let f;return null!==l&&l[s]?f=l[s]:(f=(async()=>{let t=await n.decode(this.fileDirectory,c);const r=this.getSampleFormat(),i=this.getBitsPerSample();return function(t,e){return(1!==t&&2!==t||!(e<=32)||e%8!=0)&&(3!==t||16!==e&&32!==e&&64!==e)}(r,i)&&(t=function(t,e,r,n,i,o,a){const s=new DataView(t),l=2===r?1:n,u=dn(e,i,2===r?a*o:a*o*n),h=parseInt("1".repeat(i),2);if(1===e){let t;t=1===r?n*i:i;let e=o*t;7&e&&(e=e+7&-8);for(let t=0;t<a;++t){const r=t*e;for(let e=0;e<o;++e){const n=r+e*l*i;for(let r=0;r<l;++r){const a=n+r*i,c=(t*o+e)*l+r,f=Math.floor(a/8),p=a%8;if(p+i<=8)u[c]=s.getUint8(f)>>8-i-p&h;else if(p+i<=16)u[c]=s.getUint16(f)>>16-i-p&h;else if(p+i<=24){const t=s.getUint16(f)<<8|s.getUint8(f+2);u[c]=t>>24-i-p&h}else u[c]=s.getUint32(f)>>32-i-p&h}}}}return u.buffer}(t,r,this.planarConfiguration,this.getSamplesPerPixel(),i,this.getTileWidth(),this.getBlockHeight(e))),t})(),null!==l&&(l[s]=f)),{x:t,y:e,sample:r,data:await f}}async _readRaster(t,e,r,n,i,o,a,s,l){const u=this.getTileWidth(),h=this.getTileHeight(),c=this.getWidth(),f=this.getHeight(),p=Math.max(Math.floor(t[0]/u),0),d=Math.min(Math.ceil(t[2]/u),Math.ceil(c/u)),g=Math.max(Math.floor(t[1]/h),0),_=Math.min(Math.ceil(t[3]/h),Math.ceil(f/h)),y=t[2]-t[0];let m=this.getBytesPerPixel();const v=[],w=[];for(let t=0;t<e.length;++t)1===this.planarConfiguration?v.push(pn(this.fileDirectory.BitsPerSample,0,e[t])/8):v.push(0),w.push(this.getReaderForSample(e[t]));const x=[],{littleEndian:b}=this;for(let o=g;o<_;++o)for(let a=p;a<d;++a)for(let s=0;s<e.length;++s){const p=s,d=e[s];2===this.planarConfiguration&&(m=this.getSampleByteSize(s));const g=this.getTileOrStrip(a,o,d,i,l);x.push(g),g.then((i=>{const o=i.data,a=new DataView(o),s=this.getBlockHeight(i.y),l=i.y*h,d=i.x*u,g=l+s,_=(i.x+1)*u,x=w[p],E=Math.min(s,s-(g-t[3]),f-l),A=Math.min(u,u-(_-t[2]),c-d);for(let i=Math.max(0,t[1]-l);i<E;++i)for(let o=Math.max(0,t[0]-d);o<A;++o){const s=(i*u+o)*m,h=x.call(a,s+v[p],b);let c;n?(c=(i+l-t[1])*y*e.length+(o+d-t[0])*e.length+p,r[c]=h):(c=(i+l-t[1])*y+o+d-t[0],r[p][c]=h)}}))}if(await Promise.all(x),o&&t[2]-t[0]!==o||a&&t[3]-t[1]!==a){let i;return i=n?fn(r,t[2]-t[0],t[3]-t[1],o,a,e.length,s):cn(r,t[2]-t[0],t[3]-t[1],o,a,s),i.width=o,i.height=a,i}return r.width=o||t[2]-t[0],r.height=a||t[3]-t[1],r}async readRasters({window:t,samples:e=[],interleave:r,pool:n=null,width:i,height:o,resampleMethod:a,fillValue:s,signal:l}={}){const u=t||[0,0,this.getWidth(),this.getHeight()];if(u[0]>u[2]||u[1]>u[3])throw new Error("Invalid subsets");const h=(u[2]-u[0])*(u[3]-u[1]),c=this.getSamplesPerPixel();if(e&&e.length){for(let t=0;t<e.length;++t)if(e[t]>=c)return Promise.reject(new RangeError(`Invalid sample index '${e[t]}'.`))}else for(let t=0;t<c;++t)e.push(t);let f;if(r){f=dn(this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,Math.max.apply(null,this.fileDirectory.BitsPerSample),h*e.length),s&&f.fill(s)}else{f=[];for(let t=0;t<e.length;++t){const r=this.getArrayForSample(e[t],h);Array.isArray(s)&&t<s.length?r.fill(s[t]):s&&!Array.isArray(s)&&r.fill(s),f.push(r)}}const p=n||await ln(this.fileDirectory);return await this._readRaster(u,e,f,r,p,i,o,a,l)}async readRGB({window:t,interleave:e=!0,pool:r=null,width:n,height:i,resampleMethod:o,enableAlpha:a=!1,signal:s}={}){const l=t||[0,0,this.getWidth(),this.getHeight()];if(l[0]>l[2]||l[1]>l[3])throw new Error("Invalid subsets");const u=this.fileDirectory.PhotometricInterpretation;if(u===on.ub.RGB){let l=[0,1,2];if(this.fileDirectory.ExtraSamples!==on.AC.Unspecified&&a){l=[];for(let t=0;t<this.fileDirectory.BitsPerSample.length;t+=1)l.push(t)}return this.readRasters({window:t,interleave:e,samples:l,pool:r,width:n,height:i,resampleMethod:o,signal:s})}let h;switch(u){case on.ub.WhiteIsZero:case on.ub.BlackIsZero:case on.ub.Palette:h=[0];break;case on.ub.CMYK:h=[0,1,2,3];break;case on.ub.YCbCr:case on.ub.CIELab:h=[0,1,2];break;default:throw new Error("Invalid or unsupported photometric interpretation.")}const c={window:l,interleave:!0,samples:h,pool:r,width:n,height:i,resampleMethod:o,signal:s},{fileDirectory:f}=this,p=await this.readRasters(c),d=2**this.fileDirectory.BitsPerSample[0];let g;switch(u){case on.ub.WhiteIsZero:g=function(t,e){const{width:r,height:n}=t,i=new Uint8Array(r*n*3);let o;for(let r=0,n=0;r<t.length;++r,n+=3)o=256-t[r]/e*256,i[n]=o,i[n+1]=o,i[n+2]=o;return i}(p,d);break;case on.ub.BlackIsZero:g=function(t,e){const{width:r,height:n}=t,i=new Uint8Array(r*n*3);let o;for(let r=0,n=0;r<t.length;++r,n+=3)o=t[r]/e*256,i[n]=o,i[n+1]=o,i[n+2]=o;return i}(p,d);break;case on.ub.Palette:g=function(t,e){const{width:r,height:n}=t,i=new Uint8Array(r*n*3),o=e.length/3,a=e.length/3*2;for(let r=0,n=0;r<t.length;++r,n+=3){const s=t[r];i[n]=e[s]/65536*256,i[n+1]=e[s+o]/65536*256,i[n+2]=e[s+a]/65536*256}return i}(p,f.ColorMap);break;case on.ub.CMYK:g=function(t){const{width:e,height:r}=t,n=new Uint8Array(e*r*3);for(let e=0,r=0;e<t.length;e+=4,r+=3){const i=t[e],o=t[e+1],a=t[e+2],s=t[e+3];n[r]=(255-i)/256*255*((255-s)/256),n[r+1]=(255-o)/256*255*((255-s)/256),n[r+2]=(255-a)/256*255*((255-s)/256)}return n}(p);break;case on.ub.YCbCr:g=function(t){const{width:e,height:r}=t,n=new Uint8ClampedArray(e*r*3);for(let e=0,r=0;e<t.length;e+=3,r+=3){const i=t[e],o=t[e+1],a=t[e+2];n[r]=i+1.402*(a-128),n[r+1]=i-.34414*(o-128)-.71414*(a-128),n[r+2]=i+1.772*(o-128)}return n}(p);break;case on.ub.CIELab:g=function(t){const{width:e,height:r}=t,n=new Uint8Array(e*r*3);for(let e=0,r=0;e<t.length;e+=3,r+=3){let i,o,a,s=(t[e+0]+16)/116,l=(t[e+1]<<24>>24)/500+s,u=s-(t[e+2]<<24>>24)/200;l=.95047*(l*l*l>.008856?l*l*l:(l-16/116)/7.787),s=1*(s*s*s>.008856?s*s*s:(s-16/116)/7.787),u=1.08883*(u*u*u>.008856?u*u*u:(u-16/116)/7.787),i=3.2406*l+-1.5372*s+-.4986*u,o=-.9689*l+1.8758*s+.0415*u,a=.0557*l+-.204*s+1.057*u,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,n[r]=255*Math.max(0,Math.min(1,i)),n[r+1]=255*Math.max(0,Math.min(1,o)),n[r+2]=255*Math.max(0,Math.min(1,a))}return n}(p);break;default:throw new Error("Unsupported photometric interpretation.")}if(!e){const t=new Uint8Array(g.length/3),e=new Uint8Array(g.length/3),r=new Uint8Array(g.length/3);for(let n=0,i=0;n<g.length;n+=3,++i)t[i]=g[n],e[i]=g[n+1],r[i]=g[n+2];g=[t,e,r]}return g.width=p.width,g.height=p.height,g}getTiePoints(){if(!this.fileDirectory.ModelTiepoint)return[];const t=[];for(let e=0;e<this.fileDirectory.ModelTiepoint.length;e+=6)t.push({i:this.fileDirectory.ModelTiepoint[e],j:this.fileDirectory.ModelTiepoint[e+1],k:this.fileDirectory.ModelTiepoint[e+2],x:this.fileDirectory.ModelTiepoint[e+3],y:this.fileDirectory.ModelTiepoint[e+4],z:this.fileDirectory.ModelTiepoint[e+5]});return t}getGDALMetadata(t=null){const e={};if(!this.fileDirectory.GDAL_METADATA)return null;const r=this.fileDirectory.GDAL_METADATA;let n=nn(r,"Item");n=null===t?n.filter((t=>void 0===rn(t,"sample"))):n.filter((e=>Number(rn(e,"sample"))===t));for(let t=0;t<n.length;++t){const r=n[t];e[rn(r,"name")]=r.inner}return e}getGDALNoData(){if(!this.fileDirectory.GDAL_NODATA)return null;const t=this.fileDirectory.GDAL_NODATA;return Number(t.substring(0,t.length-1))}getOrigin(){const t=this.fileDirectory.ModelTiepoint,e=this.fileDirectory.ModelTransformation;if(t&&6===t.length)return[t[3],t[4],t[5]];if(e)return[e[3],e[7],e[11]];throw new Error("The image does not have an affine transformation.")}getResolution(t=null){const e=this.fileDirectory.ModelPixelScale,r=this.fileDirectory.ModelTransformation;if(e)return[e[0],-e[1],e[2]];if(r)return[r[0],r[5],r[10]];if(t){const[e,r,n]=t.getResolution();return[e*t.getWidth()/this.getWidth(),r*t.getHeight()/this.getHeight(),n*t.getW
8idth()/this.getWidth()]}throw new Error("The image does not have an affine transformation.")}pixelIsArea(){return 1===this.geoKeys.GTRasterTypeGeoKey}getBoundingBox(){const t=this.getOrigin(),e=this.getResolution(),r=t[0],n=t[1],i=r+e[0]*this.getWidth(),o=n+e[1]*this.getHeight();return[Math.min(r,i),Math.min(n,o),Math.max(r,i),Math.max(n,o)]}};class _n{constructor(t){this._dataView=new DataView(t)}get buffer(){return this._dataView.buffer}getUint64(t,e){const r=this.getUint32(t,e),n=this.getUint32(t+4,e);let i;if(e){if(i=r+2**32*n,!Number.isSafeInteger(i))throw new Error(`${i} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return i}if(i=2**32*r+n,!Number.isSafeInteger(i))throw new Error(`${i} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return i}getInt64(t,e){let r=0;const n=(128&this._dataView.getUint8(t+(e?7:0)))>0;let i=!0;for(let o=0;o<8;o++){let a=this._dataView.getUint8(t+(e?o:7-o));n&&(i?0!==a&&(a=255&~(a-1),i=!1):a=255&~a),r+=a*256**o}return n&&(r=-r),r}getUint8(t,e){return this._dataView.getUint8(t,e)}getInt8(t,e){return this._dataView.getInt8(t,e)}getUint16(t,e){return this._dataView.getUint16(t,e)}getInt16(t,e){return this._dataView.getInt16(t,e)}getUint32(t,e){return this._dataView.getUint32(t,e)}getInt32(t,e){return this._dataView.getInt32(t,e)}getFloat16(t,e){return en(this._dataView,t,e)}getFloat32(t,e){return this._dataView.getFloat32(t,e)}getFloat64(t,e){return this._dataView.getFloat64(t,e)}}class yn{constructor(t,e,r,n){this._dataView=new DataView(t),this._sliceOffset=e,this._littleEndian=r,this._bigTiff=n}get sliceOffset(){return this._sliceOffset}get sliceTop(){return this._sliceOffset+this.buffer.byteLength}get littleEndian(){return this._littleEndian}get bigTiff(){return this._bigTiff}get buffer(){return this._dataView.buffer}covers(t,e){return this.sliceOffset<=t&&this.sliceTop>=t+e}readUint8(t){return this._dataView.getUint8(t-this._sliceOffset,this._littleEndian)}readInt8(t){return this._dataView.getInt8(t-this._sliceOffset,this._littleEndian)}readUint16(t){return this._dataView.getUint16(t-this._sliceOffset,this._littleEndian)}readInt16(t){return this._dataView.getInt16(t-this._sliceOffset,this._littleEndian)}readUint32(t){return this._dataView.getUint32(t-this._sliceOffset,this._littleEndian)}readInt32(t){return this._dataView.getInt32(t-this._sliceOffset,this._littleEndian)}readFloat32(t){return this._dataView.getFloat32(t-this._sliceOffset,this._littleEndian)}readFloat64(t){return this._dataView.getFloat64(t-this._sliceOffset,this._littleEndian)}readUint64(t){const e=this.readUint32(t),r=this.readUint32(t+4);let n;if(this._littleEndian){if(n=e+2**32*r,!Number.isSafeInteger(n))throw new Error(`${n} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return n}if(n=2**32*e+r,!Number.isSafeInteger(n))throw new Error(`${n} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return n}readInt64(t){let e=0;const r=(128&this._dataView.getUint8(t+(this._littleEndian?7:0)))>0;let n=!0;for(let i=0;i<8;i++){let o=this._dataView.getUint8(t+(this._littleEndian?i:7-i));r&&(n?0!==o&&(o=255&~(o-1),n=!1):o=255&~o),e+=o*256**i}return r&&(e=-e),e}readOffset(t){return this._bigTiff?this.readUint64(t):this.readUint32(t)}}const mn="undefined"!=typeof navigator&&navigator.hardwareConcurrency||2;const vn=class{constructor(t=mn,e){this.workers=null,this._awaitingDecoder=null,this.size=t,this.messageId=0,t&&(this._awaitingDecoder=e?Promise.resolve(e):new Promise((t=>{r.e(656).then(r.bind(r,2098)).then((e=>{t(e.create)}))})),this._awaitingDecoder.then((e=>{this._awaitingDecoder=null,this.workers=[];for(let r=0;r<t;r++)this.workers.push({worker:e(),idle:!0})})))}async decode(t,e){return this._awaitingDecoder&&await this._awaitingDecoder,0===this.size?ln(t).then((r=>r.decode(t,e))):new Promise((r=>{const n=this.workers.find((t=>t.idle))||this.workers[Math.floor(Math.random()*this.size)];n.idle=!1;const i=this.messageId++,o=t=>{t.data.id===i&&(n.idle=!0,r(t.data.decoded),n.worker.removeEventListener("message",o))};n.worker.addEventListener("message",o),n.worker.postMessage({fileDirectory:t,buffer:e,id:i},[e])}))}
8destroy(){this.workers&&(this.workers.forEach((t=>{t.worker.terminate()})),this.workers=null)}},wn="\r\n\r\n";function xn(t){if(void 0!==Object.fromEntries)return Object.fromEntries(t);const e={};for(const[r,n]of t)e[r.toLowerCase()]=n;return e}function bn(t){return xn(t.split("\r\n").map((t=>{const e=t.split(":").map((t=>t.trim()));return e[0]=e[0].toLowerCase(),e})))}function En(t){let e,r,n;return t&&([,e,r,n]=t.match(/bytes (\d+)-(\d+)\/(\d+)/),e=parseInt(e,10),r=parseInt(r,10),n=parseInt(n,10)),{start:e,end:r,total:n}}class An{async fetch(t,e=void 0){return Promise.all(t.map((t=>this.fetchSlice(t,e))))}async fetchSlice(t){throw new Error(`fetching of slice ${t} not possible, not implemented`)}get fileSize(){return null}async close(){}}var Sn=r(2753);function Cn(t,e){for(const r in e)e.hasOwnProperty(r)&&(t[r]=e[r])}function Tn(t){const e={};for(const r in t)if(t.hasOwnProperty(r)){e[t[r]]=r}return e}function Pn(t,e){const r=[];for(let n=0;n<t;n++)r.push(e(n));return r}function In(t,e){const r=Array.isArray(t)?t:Array.from(t),n=Array.isArray(e)?e:Array.from(e);return r.map(((t,e)=>[t,n[e]]))}class On extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,On),this.name="AbortError"}}class Rn extends Error{constructor(t,e){super(e),this.errors=t,this.message=e,this.name="AggregateError"}}const Ln=Rn;class kn{constructor(t,e,r=null){this.offset=t,this.length=e,this.data=r}get top(){return this.offset+this.length}}class Mn{constructor(t,e,r){this.offset=t,this.length=e,this.blockIds=r}}class Fn extends An{constructor(t,{blockSize:e=65536,cacheSize:r=100}={}){super(),this.source=t,this.blockSize=e,this.blockCache=new Sn({max:r}),this.blockRequests=new Map,this.blockIdsToFetch=new Set}get fileSize(){return this.source.fileSize}async fetch(t,e){const r=new Map,n=new Map,i=new Set;for(const{offset:e,length:o}of t){let t=e+o;const{fileSize:a}=this;null!==a&&(t=Math.min(t,a));for(let o=Math.floor(e/this.blockSize)*this.blockSize;o<t;o+=this.blockSize){const t=Math.floor(o/this.blockSize);this.blockCache.has(t)?r.set(t,this.blockCache.get(t)):this.blockRequests.has(t)?n.set(t,this.blockRequests.get(t)):(this.blockIdsToFetch.has(t)||this.blockIdsToFetch.add(t),i.add(t))}}await async function(t){return new Promise((e=>setTimeout(e,t)))}(),this.fetchBlocks(e);for(const t of i){const e=this.blockRequests.get(t),i=this.blockCache.get(t);if(e)n.set(t,e);else{if(!i)throw new Error(`Block ${t} is not in the block requests`);r.set(t,i)}}let o=await Promise.allSettled(Array.from(n.values()));if(o.some((t=>"rejected"===t.status))){const t=new Set;for(const[r,i]of In(n.keys(),o)){const{rejected:n,reason:o}=i;n&&"AbortError"===o.name&&o.signal!==e&&(this.blockIdsToFetch.add(r),t.add(r))}if(this.blockIdsToFetch.length>0){this.fetchBlocks(e);for(const e of t){const t=this.blockRequests.get(e);if(!t)throw new Error(`Block ${e} is not in the block requests`);n.set(e,t)}o=await Promise.allSettled(Array.from(n.values()))}}if(o.some((t=>"rejected"===t.status))){if(e&&e.aborted)throw new On("Request was aborted");throw new Ln(o.filter((t=>"rejected"===t.status)).map((t=>t.reason)),"Request failed")}const a=o.map((t=>t.value)),s=new Map(In(Array.from(n.keys()),a));for(const[t,e]of r)s.set(t,e);return this.readSliceData(t,s)}fetchBlocks(t){if(this.blockIdsToFetch.size>0){const e=this.groupBlocks(this.blockIdsToFetch),r=this.source.fetch(e,t);for(let n=0;n<e.length;++n){const i=e[n];for(const e of i.blockIds){const i=(async()=>{try{const t=(await r)[n],i=e*this.blockSize,o=i-t.offset,a=Math.min(o+this.blockSize,t.data.byteLength),s=t.data.slice(o,a),l=new kn(i,s.byteLength,s);return this.blockCache.set(e,l),l}catch(e){throw"AbortError"===e.name&&(e.signal=t),e}finally{this.blockRequests.delete(e)}})();this.blockRequests.set(e,i)}}this.blockIdsToFetch.clear()}}groupBlocks(t){const e=Array.from(t).sort(((t,e)=>t-e));if(0===e.length)return[];let r=[],n=null;const i=[];for(const t of e)null===n||n+1===t?(r.push(t),n=t):(i.push(new Mn(r[0]*this.blockSize,r.length*this.blockSize,r)),r=[t],n=t);return i.push(new Mn(r[0]*this.blockSize,r.length*this.blockSize,r)),i}readSliceData(t,e){return t.map((t=>{const r=t.offset+t.length,n=Math.floor(t.offset/this.blockSize),i=Math.floor((t.offset+t.length)/this.blockSize),o=new ArrayBuffer(t.length),a=new Uint8Array(o);for(let o=n;o<=i;++o){const n=e.get(o),i=n.offset-t.offset;let s,l=0,u=0;i<0?l=-i:i>
80&&(u=i),s=n.top-r<0?n.length-l:r-n.offset-l;const h=new Uint8Array(n.data,l,s);a.set(h,u)}return o}))}}class Dn{get ok(){return this.status>=200&&this.status<=299}get status(){throw new Error("not implemented")}getHeader(t){throw new Error("not implemented")}async getData(){throw new Error("not implemented")}}class jn{constructor(t){this.url=t}async request({headers:t,credentials:e,signal:r}={}){throw new Error("request is not implemented")}}class Un extends Dn{constructor(t){super(),this.response=t}get status(){return this.response.status}getHeader(t){return this.response.headers.get(t)}async getData(){return this.response.arrayBuffer?await this.response.arrayBuffer():(await this.response.buffer()).buffer}}class Gn extends jn{constructor(t,e){super(t),this.credentials=e}async request({headers:t,credentials:e,signal:r}={}){const n=await fetch(this.url,{headers:t,credentials:e,signal:r});return new Un(n)}}class Nn extends Dn{constructor(t,e){super(),this.xhr=t,this.data=e}get status(){return this.xhr.status}getHeader(t){return this.xhr.getResponseHeader(t)}async getData(){return this.data}}class Bn extends jn{constructRequest(t,e){return new Promise(((r,n)=>{const i=new XMLHttpRequest;i.open("GET",this.url),i.responseType="arraybuffer";for(const[e,r]of Object.entries(t))i.setRequestHeader(e,r);i.onload=()=>{const t=i.response;r(new Nn(i,t))},i.onerror=n,i.onabort=()=>n(new On("Request aborted")),i.send(),e&&(e.aborted&&i.abort(),e.addEventListener("abort",(()=>i.abort())))}))}async request({headers:t,signal:e}={}){return await this.constructRequest(t,e)}}var zn=r(8625),Vn=r(6504),Xn=r(6580);class Kn extends Dn{constructor(t,e){super(),this.response=t,this.dataPromise=e}get status(){return this.response.statusCode}getHeader(t){return this.response.headers[t]}async getData(){return await this.dataPromise}}class Wn extends jn{constructor(t){super(t),this.parsedUrl=Xn.parse(this.url),this.httpApi="http:"===this.parsedUrl.protocol?zn:Vn}constructRequest(t,e){return new Promise(((r,n)=>{const i=this.httpApi.get({...this.parsedUrl,headers:t},(t=>{const e=new Promise((e=>{const r=[];t.on("data",(t=>{r.push(t)})),t.on("end",(()=>{const t=Buffer.concat(r).buffer;e(t)})),t.on("error",n)}));r(new Kn(t,e))}));i.on("error",n),e&&(e.aborted&&i.destroy(new On("Request aborted")),e.addEventListener("abort",(()=>i.destroy(new On("Request aborted")))))}))}async request({headers:t,signal:e}={}){return await this.constructRequest(t,e)}}class Hn extends An{constructor(t,e,r,n){super(),this.client=t,this.headers=e,this.maxRanges=r,this.allowFullFile=n,this._fileSize=null}async fetch(t,e){return this.maxRanges>=t.length?this.fetchSlices(t,e):(this.maxRanges>0&&t.length,Promise.all(t.map((t=>this.fetchSlice(t,e)))))}async fetchSlices(t,e){const r=await this.client.request({headers:{...this.headers,Range:`bytes=${t.map((({offset:t,length:e})=>`${t}-${t+e}`)).join(",")}`},signal:e});if(r.ok){if(206===r.status){const{type:n,params:i}=function(t){const[e,...r]=t.split(";").map((t=>t.trim()));return{type:e,params:xn(r.map((t=>t.split("="))))}}(r.getHeader("content-type"));if("multipart/byteranges"===n){const t=function(t,e){let r=null;const n=new TextDecoder("ascii"),i=[],o=`--${e}`,a=`${o}--`;for(let e=0;e<10;++e)n.decode(new Uint8Array(t,e,o.length))===o&&(r=e);if(null===r)throw new Error("Could not find initial boundary");for(;r<t.byteLength;){const e=n.decode(new Uint8Array(t,r,Math.min(o.length+1024,t.byteLength-r)));if(0===e.length||e.startsWith(a))break;if(!e.startsWith(o))throw new Error("Part does not start with boundary");const s=e.substr(o.length+2);if(0===s.length)break;const l=s.indexOf(wn),u=bn(s.substr(0,l)),{start:h,end:c,total:f}=En(u["content-range"]),p=r+o.length+l+4,d=parseInt(c,10)+1-parseInt(h,10);i.push({headers:u,data:t.slice(p,p+d),offset:h,length:d,fileSize:f}),r=p+d+4}return i}(await r.getData(),i.boundary);return this._fileSize=t[0].fileSize||null,t}const o=await r.getData(),{start:a,end:s,total:l}=En(r.getHeader("content-range"));this._fileSize=l||null;const u=[{data:o,offset:a,length:s-a}];if(t.length>1){const r=await Promise.all(t.slice(1).map((t=>this.fetchSlice(t,e))));return u.concat(r)}return u}{if(!this.allowFullFile)throw new Error("Server responded with full file");const t=await r.getData();return this._fileSize=t.byteLength,[{data:t,offset:0,length:t.byteLength}]}}throw new Error("Error fetching data.")}async fetchSlice(t,e){const{offset:r,length:n}=t,i=await this.client.request({headers:{...this.headers,Range:`bytes=${r}-${r+n}`},signal:e});if(i.ok){if(206===i.status){const t=await i.getData(),{total:e}=En(i.getHeader("content-range"));return this._fileSize=e||null,{data:t,offset:r,length:n}}{if(!this.allowFullFile)throw new Error("Server responded with full file");const t=await i.getData();return this._fileSize=t.byteLength,{data:t,offset:0,length:t.byteLength}}}throw new Error("Error fetching data.")}get fileSize(){return this._fileSize}}function Yn(t,{blockSize:e,cacheSize:r}){return null===e?t:new Fn(t,e,r)}function Zn(t,{forceXHR:e=!1,...r}={}){return"function"!=typeof fetch||e?"undefined"!=typeof XMLHttpRequest?function(t,{headers:e={},maxRanges:r=0,allowFullFile:n=!1,...i}={}){const o=new Bn(t);return Yn(new Hn(o,e,r,n),i)}(t,r):function(t,{headers:e={},maxRanges:r=0,allowFullFile:n=!1,...i}={}){const o=new Wn(t);return Yn(new Hn(o,e,r,n),i)}(t,r):function(t,{headers:e={},credentials:r,maxRanges:n=0,allowFullFile:i=!1,...o}={}){const a=new Gn(t,r);return Yn(new Hn(a,e,n,i),o)}(t,r)}class qn extends An{constructor(t){super(),this.file=t}async fetchSlice(t,e){return new Promise(((r,n)=>{const i=this.file.slice(t.offset,t.offset+t.length),o=new FileReader;o.onload=t=>r(t.target.result),o.onerror=n,o.onabort=n,o.readAsArrayBuffer(i),e&&e.addEventListener("abort",(()=>o.abort()))}))}}r(8236);const $n=Tn(on.$),Jn=Tn(on.Hm),Qn={};Cn(Qn,$n),Cn(Qn,Jn);Tn(on.Rc);const ti={nextZero:(t,e)=>{let r=e;for(;0!==t[r];)r++;return r},readUshort:(t,e)=>t[e]<<8|t[e+1],readShort:(t,e)=>{const r=ti.ui8;return r[0]=t[e+1],r[1]=t[e+0],ti.i16[0]},readInt:(t,e)=>{const r=ti.ui8;return r[0]=t[e+3],r[1]=t[e+2],r[2]=t[e+1],r[3]=t[e+0],ti.i32[0]},readUint:(t,e)=>{const r=ti.ui8;return r[0]=t[e+3],r[1]=t[e+2],r[2]=t[e+1],r[3]=t[e+0],ti.ui32[0]},readASCII:(t,e,r)=>r.map((r=>String.fromCharCode(t[e+r]))).join(""),readFloat:(t,e)=>{const r=ti.ui8;return Pn(4,(n=>{r[n]=t[e+3-n]})),ti.fl32[0]},readDouble:(t,e)=>{const r=ti.ui8;return Pn(8,(n=>{r[n]=t[e+7-n]})),ti.fl64[0]},writeUshort:(t,e,r)=>{t[e]=r>>8&255,t[e+1]=255&r},writeUint:(t,e,r)=>{t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r},writeASCII:(t,e,r)=>{Pn(r.length,(n=>{t[e+n]=r.charCodeAt(n)}))},ui8:new Uint8Array(8)};ti.fl64=new Float64Array(ti.ui8.buffer),ti.writeDouble=(t,e,r)=>{ti.fl64[0]=r,Pn(8,(r=>{t[e+r]=ti.ui8[7-r]}))};class ei{log(){}debug(){}info(){}warn(){}error(){}time(){}timeEnd(){}}new ei;function ri(t){switch(t){case on.s$.BYTE:case on.s$.ASCII:case on.s$.SBYTE:case on.s$.UNDEFINED:return 1;case on.s$.SHORT:case on.s$.SSHORT:return 2;case on.s$.LONG:case on.s$.SLONG:case on.s$.FLOAT:case on.s$.IFD:return 4;case on.s$.RATIONAL:case on.s$.SRATIONAL:case on.s$.DOUBLE:case on.s$.LONG8:case on.s$.SLONG8:case on.s$.IFD8:return 8;default:throw new RangeError(`Invalid field type: ${t}`)}}function ni(t,e,r,n){let i=null,o=null;const a=ri(e);switch(e){case on.s$.BYTE:case on.s$.ASCII:case on.s$.UNDEFINED:i=new Uint8Array(r),o=t.readUint8;break;case on.s$.SBYTE:i=new Int8Array(r),o=t.readInt8;break;case on.s$.SHORT:i=new Uint16Array(r),o=t.readUint16;break;case on.s$.SSHORT:i=new Int16Array(r),o=t.readInt16;break;case on.s$.LONG:case on.s$.IFD:i=new Uint32Array(r),o=t.readUint32;break;case on.s$.SLONG:i=new Int32Array(r),o=t.readInt32;break;case on.s$.LONG8:case on.s$.IFD8:i=new Array(r),o=t.readUint64;break;case on.s$.SLONG8:i=new Array(r),o=t.readInt64;break;case on.s$.RATIONAL:i=new Uint32Array(2*r),o=t.readUint32;break;case on.s$.SRATIONAL:i=new Int32Array(2*r),o=t.readInt32;break;case on.s$.FLOAT:i=new Float32Array(r),o=t.readFloat32;break;case on.s$.DOUBLE:i=new Float64Array(r),o=t.readFloat64;break;default:throw new RangeError(`Invalid field type: ${e}`)}if(e!==on.s$.RATIONAL&&e!==on.s$.SRATIONAL)for(let e=0;e<r;++e)i[e]=o.call(t,n+e*a);else for(let e=0;e<r;e+=2)i[e]=o.call(t,n+e*a),i[e+1]=o.call(t,n+(e*a+4));return e===on.s$.ASCII?new TextDecoder("utf-8").decode(i):i}class ii{constructor(t,e,r){this.fileDirectory=t,this.geoKeyDirectory=e,this.nextIFDByteOffset=r}}
vendor: 3,573 bytes, line 8
8class oi extends Error{constructor(t){super(`No image at index ${t}`),this.index=t}}class ai{async readRasters(t={}){const{window:e,width:r,height:n}=t;let{resX:i,resY:o,bbox:a}=t;const s=await this.getImage();let l=s;const u=await this.getImageCount(),h=s.getBoundingBox();if(e&&a)throw new Error('Both "bbox" and "window" passed.');if(r||n){if(e){const[t,r]=s.getOrigin(),[n,i]=s.getResolution();a=[t+e[0]*n,r+e[1]*i,t+e[2]*n,r+e[3]*i]}const t=a||h;if(r){if(i)throw new Error("Both width and resX passed");i=(t[2]-t[0])/r}if(n){if(o)throw new Error("Both width and resY passed");o=(t[3]-t[1])/n}}if(i||o){const t=[];for(let e=0;e<u;++e){const r=await this.getImage(e),{SubfileType:n,NewSubfileType:i}=r.fileDirectory;(0===e||2===n||1&i)&&t.push(r)}t.sort(((t,e)=>t.getWidth()-e.getWidth()));for(let e=0;e<t.length;++e){const r=t[e],n=(h[2]-h[0])/r.getWidth(),a=(h[3]-h[1])/r.getHeight();if(l=r,i&&i>n||o&&o>a)break}}let c=e;if(a){const[t,e]=s.getOrigin(),[r,n]=l.getResolution(s);c=[Math.round((a[0]-t)/r),Math.round((a[1]-e)/n),Math.round((a[2]-t)/r),Math.round((a[3]-e)/n)],c=[Math.min(c[0],c[2]),Math.min(c[1],c[3]),Math.max(c[0],c[2]),Math.max(c[1],c[3])]}return l.readRasters({...t,window:c})}}class si extends ai{constructor(t,e,r,n,i={}){super(),this.source=t,this.littleEndian=e,this.bigTiff=r,this.firstIFDOffset=n,this.cache=i.cache||!1,this.ifdRequests=[],this.ghostValues=null}async getSlice(t,e){const r=this.bigTiff?4048:1024;return new yn((await this.source.fetch([{offset:t,length:void 0!==e?e:r}]))[0],t,this.littleEndian,this.bigTiff)}async parseFileDirectoryAt(t){const e=this.bigTiff?20:12,r=this.bigTiff?8:2;let n=await this.getSlice(t);const i=this.bigTiff?n.readUint64(t):n.readUint16(t),o=i*e+(this.bigTiff?16:6);n.covers(t,o)||(n=await this.getSlice(t,o));const a={};let s=t+(this.bigTiff?8:2);for(let t=0;t<i;s+=e,++t){const t=n.readUint16(s),e=n.readUint16(s+2),r=this.bigTiff?n.readUint64(s+4):n.readUint32(s+4);let i,o;const l=ri(e),u=s+(this.bigTiff?12:8);if(l*r<=(this.bigTiff?8:4))i=ni(n,e,r,u);else{const t=n.readOffset(u),o=ri(e)*r;if(n.covers(t,o))i=ni(n,e,r,t);else{i=ni(await this.getSlice(t,o),e,r,t)}}o=1===r&&-1===on.NZ.indexOf(t)&&e!==on.s$.RATIONAL&&e!==on.s$.SRATIONAL?i[0]:i,a[on.$[t]]=o}const l=function(t){const e=t.GeoKeyDirectory;if(!e)return null;const r={};for(let n=4;n<=4*e[3];n+=4){const i=on.Hm[e[n]],o=e[n+1]?on.$[e[n+1]]:null,a=e[n+2],s=e[n+3];let l=null;if(o){if(l=t[o],null==l)throw new Error(`Could not get value of geoKey '${i}'.`);"string"==typeof l?l=l.substring(s,s+a-1):l.subarray&&(l=l.subarray(s,s+a),1===a&&(l=l[0]))}else l=s;r[i]=l}return r}(a),u=n.readOffset(t+r+e*i);return new ii(a,l,u)}async requestIFD(t){if(this.ifdRequests[t])return this.ifdRequests[t];if(0===t)return this.ifdRequests[t]=this.parseFileDirectoryAt(this.firstIFDOffset),this.ifdRequests[t];if(!this.ifdRequests[t-1])try{this.ifdRequests[t-1]=this.requestIFD(t-1)}catch(e){if(e instanceof oi)throw new oi(t);throw e}return this.ifdRequests[t]=(async()=>{const e=await this.ifdRequests[t-1];if(0===e.nextIFDByteOffset)throw new oi(t);return this.parseFileDirectoryAt(e.nextIFDByteOffset)})(),this.ifdRequests[t]}async getImage(t=0){const e=await this.requestIFD(t);return new gn(e.fileDirectory,e.geoKeyDirectory,this.dataView,this.littleEndian,this.cache,this.source)}async getImageCount(){let t=0,e=!0;for(;e;)try{await this.requestIFD(t),++t}catch(t){if(!(t instanceof oi))throw t;e=!1}return t}async getGhostValues(){const t=this.bigTiff?16:8;if(this.ghostValues)return this.ghostValues;const e="GDAL_STRUCTURAL_METADATA_SIZE=";
8let r=await this.getSlice(t,130);if(e===ni(r,on.s$.ASCII,30,t)){const e=ni(r,on.s$.ASCII,130,t).split("\n")[0],n=Number(e.split("=")[1].split(" ")[0])+e.length;n>130&&(r=await this.getSlice(t,n));const i=ni(r,on.s$.ASCII,n,t);this.ghostValues={},i.split("\n").filter((t=>t.length>0)).map((t=>t.split("="))).forEach((([t,e])=>{this.ghostValues[t]=e}))}return this.ghostValues}static async fromSource(t,e,r){const n=(await t.fetch([{offset:0,length:1024}],r))[0],i=new _n(n),o=i.getUint16(0,0);let a;if(18761===o)a=!0;else{if(19789!==o)throw new TypeError("Invalid byte order value.");a=!1}const s=i.getUint16(2,a);let l;if(42===s)l=!1;else{if(43!==s)throw new TypeError("Invalid magic number.");l=!0;if(8!==i.getUint16(4,a))throw new Error("Unsupported offset byte-size.")}const u=l?i.getUint64(8,a):i.getUint32(4,a);return new si(t,a,l,u,e)}close(){return"function"==typeof this.source.close&&this.source.close()}}class li extends ai{constructor(t,e){super(),this.mainFile=t,this.overviewFiles=e,this.imageFiles=[t].concat(e),this.fileDirectoriesPerFile=null,this.fileDirectoriesPerFileParsing=null,this.imageCount=null}async parseFileDirectoriesPerFile(){const t=[this.mainFile.parseFileDirectoryAt(this.mainFile.firstIFDOffset)].concat(this.overviewFiles.map((t=>t.parseFileDirectoryAt(t.firstIFDOffset))));return this.fileDirectoriesPerFile=await Promise.all(t),this.fileDirectoriesPerFile}async getImage(t=0){await this.getImageCount(),await this.parseFileDirectoriesPerFile();let e=0,r=0;for(let n=0;n<this.imageFiles.length;n++){const i=this.imageFiles[n];for(let o=0;o<this.imageCounts[n];o++){if(t===e){const t=await i.requestIFD(r);return new gn(t.fileDirectory,t.geoKeyDirectory,i.dataView,i.littleEndian,i.cache,i.source)}e++,r++}r=0}throw new RangeError("Invalid image index")}async getImageCount(){if(null!==this.imageCount)return this.imageCount;const t=[this.mainFile.getImageCount()].concat(this.overviewFiles.map((t=>t.getImageCount())));return this.imageCounts=await Promise.all(t),this.imageCount=this.imageCounts.reduce(((t,e)=>t+e),0),this.imageCount}}async function ui(t,e){return si.fromSource(new qn(t),e)}var hi,ci=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),fi="STATISTICS_MAXIMUM",pi="STATISTICS_MINIMUM";function di(t){try{return t.getBoundingBox()}catch(r){var e=t.fileDirectory;return[0,0,e.ImageWidth,e.ImageLength]}}function gi(t){try{return t.getOrigin().slice(0,2)}catch(e){return[0,t.fileDirectory.ImageLength]}}function _i(t,e){try{return t.getResolution(e)}catch(r){return[e.fileDirectory.ImageWidth/t.fileDirectory.ImageWidth,e.fileDirectory.ImageHeight/t.fileDirectory.ImageHeight]}}function yi(t){var e=t.geoKeys;if(!e)return null;if(e.ProjectedCSTypeGeoKey){var r="EPSG:"+e.ProjectedCSTypeGeoKey;if(!(n=(0,A.get)(r)))(i=(0,M.qs)(e.ProjLinearUnitsGeoKey))&&(n=new A.Projection({code:r,units:i}));return n}if(e.GeographicTypeGeoKey){var n,i;r="EPSG:"+e.GeographicTypeGeoKey;if(!(n=(0,A.get)(r)))(i=(0,M.qs)(e.GeogAngularUnitsGeoKey))&&(n=new A.Projection({code:r,units:i}));return n}return null}function mi(t){return t.getImageCount().then((function(e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t.getImage(n);return Promise.all(r)}))}function vi(t,e){var r;return r=t.blob?ui(t.blob):t.overviews?async function(t,e=[],r={},n){const i=await si.fromSource(Zn(t,r),n),o=await Promise.all(e.map((t=>si.fromSource(Zn(t,r)))));return new li(i,o)}(t.url,t.overviews,e):async function(t,e={},r){return si.fromSource(Zn(t,e),r)}(t.url,e),r.then(mi)}function wi(t,e,r,n,i){if(Array.isArray(t)){var o=t.length;if(!Array.isArray(e)||o!=e.length){var a=new Error(n);throw i(a),a}for(var s=0;s<o;++s)wi(t[s],e[s],r,n,i)}else if(Math.abs(t-e)>r*t)throw new Error(n)}function xi(t){return t instanceof Int8Array?-128:t instanceof Int16Array?-32768:t instanceof Int32Array?-2147483648:t instanceof Float32Array?12e-39:0}function bi(t){return t instanceof Int8Array?127:t instanceof Uint8Array||t instanceof Uint8ClampedArray?255:t instanceof Int16Array?32767:t instanceof Uint16Array?65535:t instanceof Int32Array?2147483647:t instanceof Uint32Array?4294967295:t instanceof Float32Array?34e37:255}var Ei=function(t){function e(e){var r=t.call(this,{state:"loading",tileGrid:null,projection:null,opaque:e.opaque,transition:e.transition,interpolate:!1!==e.interpolate,wrapX:e.wrapX})||this;r.sourceInfo_=e.sources;var n=r.sourceInfo_.length;r.sourceOptions_=e.sourceOptions,r.sourceImagery_=new Array(n),r.resolutionFactors_=new Array(n),r.samplesPerPixel_,r.nodataValues_,r.metadata_,r.normalize_=!1!==e.normalize,r.addAlpha_=!1,r.error_=null,r.readMethod_=e.convertToRGB?"readRGB":"readRasters",r.setKey(r.sourceInfo_.map((function(t){return t.url})).join(","));for(var i=r,o=new Array(n),a=0;a<n;++a)o[a]=vi(r.sourceInfo_[a],r.sourceOptions_);return Promise.all(o).then((function(t){i.configure_(t)}
8)).catch((function(t){console.error(t),i.error_=t,i.setState("error")})),r}return ci(e,t),e.prototype.getError=function(){return this.error_},e.prototype.configure_=function(t){for(var e,r,n,i,a,s=new Array(t.length),l=new Array(t.length),u=new Array(t.length),h=0,c=t.length,f=function(c){var f=t[c],d=f.length,g=void 0,_=void 0,y=new Array(d),m=new Array(d),v=new Array(d);l[c]=new Array(d),u[c]=new Array(d);for(var w=0;w<d;++w){var x=f[w],b=x.getGDALNoData();u[c][w]=x.getGDALMetadata(0),l[c][w]=b;var E=p.sourceInfo_[c].bands;s[c]=E?E.length:x.getSamplesPerPixel();var A=d-(w+1);g||(g=di(x)),_||(_=gi(x));var S=_i(x,f[0]);v[A]=S[0];var C=[x.getTileWidth(),x.getTileHeight()];y[A]=C;var T=S[0]/Math.abs(S[1]);m[A]=[C[0],C[1]/T]}if(e?(0,o.getIntersection)(e,g,e):e=g,r){var P="Origin mismatch for source ".concat(c,", got [").concat(_,"] but expected [").concat(r,"]");wi(r,_,0,P,p.viewRejector)}else r=_;if(a){a.length-h>v.length&&(h=a.length-v.length);var I=a[a.length-1]/v[v.length-1];p.resolutionFactors_[c]=I;var O=v.map((function(t){return t*I}));P="Resolution mismatch for source ".concat(c,", got [").concat(O,"] but expected [").concat(a,"]");wi(a.slice(h,a.length),O,.02,P,p.viewRejector)}else a=v,p.resolutionFactors_[c]=1;n?wi(n.slice(h,n.length),m,.01,"Tile size mismatch for source ".concat(c),p.viewRejector):n=m,i?wi(i.slice(h,i.length),y,0,"Tile size mismatch for source ".concat(c),p.viewRejector):i=y,p.sourceImagery_[c]=f.reverse()},p=this,d=0;d<c;++d)f(d);for(var g=0,_=this.sourceImagery_.length;g<_;++g)for(var y=this.sourceImagery_[g];y.length<a.length;)y.unshift(void 0);if(!this.getProjection()){var m=t[0];for(g=m.length-1;g>=0;--g){var v=yi(m[g]);if(v){this.projection=v;break}}}this.samplesPerPixel_=s,this.nodataValues_=l,this.metadata_=u;t:for(d=0;d<c;++d){if(void 0!==this.sourceInfo_[d].nodata){this.addAlpha_=!0;break}var w=l[d],x=this.sourceInfo_[d].bands;if(x){for(g=0;g<x.length;++g)if(null!==w[x[g]-1]){this.addAlpha_=!0;break t}}else for(var b=0;b<w.length;++b)if(null!==w[b]){this.addAlpha_=!0;break t}}var E=this.addAlpha_?1:0;this.bandCount=s.reduce((function(t,e){return t+=e}),0)+E;var S=new k({extent:e,minZoom:h,origin:r,resolutions:a,tileSizes:n});this.tileGrid=S,this.setTileSizes(i),this.setLoader(this.loadTile_.bind(this)),this.setState("ready"),this.viewResolver({projection:this.projection,resolutions:a,center:(0,A.toUserCoordinate)((0,o.getCenter)(e),this.projection),extent:(0,A.toUserExtent)(e,this.projection),zoom:0})},e.prototype.loadTile_=function(t,e,r){for(var n=this.getTileSize(t),i=this.sourceImagery_.length,o=new Array(i),a=this.addAlpha_,s=this.bandCount,l=this.samplesPerPixel_,u=this.nodataValues_,h=this.sourceInfo_,c=function(i){var a=h[i],s=f.resolutionFactors_[i],l=[Math.round(e*(n[0]*s)),Math.round(r*(n[1]*s)),Math.round((e+1)*(n[0]*s)),Math.round((r+1)*(n[1]*s))],c=f.sourceImagery_[i][t],p=void 0;a.bands&&(p=a.bands.map((function(t){return t-1})));var d=void 0;d="nodata"in a&&null!==a.nodata?a.nodata:p?p.map((function(t){return u[i][t]})):u[i],o[i]=c[f.readMethod_]({window:l,width:n[0],height:n[1],samples:p,fillValue:d,pool:(hi||(hi=new vn),hi),interleave:!1})},f=this,p=0;p<i;++p)c(p);var d=n[0]*n[1],g=d*s,_=this.normalize_,y=this.metadata_;return Promise.all(o).then((function(t){var e;e=_?new Uint8Array(g):new Float32Array(g);for(var r=0,n=0;n<d;++n){for(var o=a,s=0;s<i;++s){var c=h[s],f=c.min,p=c.max,m=void 0,v=void 0;if(_){var w=y[s][0];void 0===f&&(f=w&&pi in w?parseFloat(w[pi]):xi(t[s][0])),void 0===p&&(p=w&&fi in w?parseFloat(w[fi]):bi(t[s][0])),v=-f*(m=255/(p-f))}for(var x=0;x<l[s];++x){var b=t[s][x][n],E=void 0;if(E=_?(0,T.qE)(m*b+v,0,255):b,a){var A=c.nodata;if(void 0===A){var S=void 0;S=c.bands?c.bands[x]-1:x,A=u[s][S]}var C=isNaN(A);(!C&&b!==A||C&&!isNaN(b))&&(o=!1,e[r]=E)}else e[r]=E;r++}}a&&(o||(e[r]=255),r++)}return e})).catch((function(t){throw console.error(t),t}))},e}(xt);Ei.prototype.getView;const Ai=Ei;var Si=r(8711),Ci=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ti="default",Pi="truncated",Ii=function(t){function e(e,r,n,i,o,a,s){var l=t.call(this,r,n,i,o,a,s)||this;return l.zoomifyImage_=null,l.tileSize_=e,l}return Ci(e,t),e.prototype.getImage=function(){if(this.zoomifyImage_)return this.zoomifyImage_;var e=t.prototype.getImage.call(this);if(this.state==y.A.LOADED){var r=this.tileSize_;if(e.width==r[0]&&e.height==r[1])return this.zoomifyImage_=e,e;var n=(0,Si.Y)(r[0],r[1]);return n.drawImage(e,0,0),this.zoomifyImage_=n.canvas,n.canvas}return e},e}(s.A);const Oi=function(t){function e(e){var r=this,i=e,a=void 0===i.imageSmoothing||i.imageSmoothing;void 0!==i.interpolate&&(a=i.interpolate);
vendor: 26,243 bytes, line 8
8var s=i.size,l=void 0!==i.tierSizeCalculation?i.tierSizeCalculation:Ti,u=i.tilePixelRatio||1,h=s[0],c=s[1],f=[],p=i.tileSize||C.R,d=p*u;switch(l){case Ti:for(;h>d||c>d;)f.push([Math.ceil(h/d),Math.ceil(c/d)]),d+=d;break;case Pi:for(var g=h,_=c;g>d||_>d;)f.push([Math.ceil(g/d),Math.ceil(_/d)]),g>>=1,_>>=1;break;default:(0,n.v)(!1,53)}f.push([1,1]),f.reverse();for(var y=[u],m=[0],v=1,w=f.length;v<w;v++)y.push(u<<v),m.push(f[v-1][0]*f[v-1][1]+m[v-1]);y.reverse();var x=new k({tileSize:p,extent:i.extent||[0,-c,h,0],resolutions:y}),b=i.url;b&&-1==b.indexOf("{TileGroup}")&&-1==b.indexOf("{tileIndex}")&&(b+="{TileGroup}/{z}-{x}-{y}.jpg");var E=H(b),A=p*u;var S=K(E.map((function(t){return function(e,r,n){if(e){var i=e[0],o=e[1],a=e[2],s=o+a*f[i][0],l={z:i,x:o,y:a,tileIndex:s,TileGroup:"TileGroup"+((s+m[i])/A|0)};return t.replace(/\{(\w+?)\}/g,(function(t,e){return l[e]}))}}}))),T=Ii.bind(null,(0,O.xq)(p*u));(r=t.call(this,{attributions:i.attributions,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,interpolate:a,projection:i.projection,tilePixelRatio:u,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileClass:T,tileGrid:x,tileUrlFunction:S,transition:i.transition})||this).zDirection=i.zDirection;var P=S(x.getTileCoordForCoordAndResolution((0,o.getCenter)(x.getExtent()),y[y.length-1]),1,null),I=new Image;return I.addEventListener("error",function(){A=p,this.changed()}.bind(r)),I.src=P,r}return Ci(e,t),e}(Q);var Ri=function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},Li="version1",ki="version2",Mi="version3",Fi={};Fi[Li]={level0:{supports:[],formats:[],qualities:["native"]},level1:{supports:["regionByPx","sizeByW","sizeByH","sizeByPct"],formats:["jpg"],qualities:["native"]},level2:{supports:["regionByPx","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByWh"],formats:["jpg","png"],qualities:["native","color","grey","bitonal"]}},Fi[ki]={level0:{supports:[],formats:["jpg"],qualities:["default"]},level1:{supports:["regionByPx","sizeByW","sizeByH","sizeByPct"],formats:["jpg"],qualities:["default"]},level2:{supports:["regionByPx","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByDistortedWh","sizeByWh"],formats:["jpg","png"],qualities:["default","bitonal"]}},Fi[Mi]={level0:{supports:[],formats:["jpg"],qualities:["default"]},level1:{supports:["regionByPx","regionSquare","sizeByW","sizeByH","sizeByWh"],formats:["jpg"],qualities:["default"]},level2:{supports:["regionByPx","regionSquare","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByWh"],formats:["jpg","png"],qualities:["default"]}},Fi.none={none:{supports:[],formats:[],qualities:[]}};var Di=/^https?:\/\/library\.stanford\.edu\/iiif\/image-api\/(?:1\.1\/)?compliance\.html#level[0-2]$/,ji=/^https?:\/\/iiif\.io\/api\/image\/2\/level[0-2](?:\.json)?$/,Ui=/(^https?:\/\/iiif\.io\/api\/image\/3\/level[0-2](?:\.json)?$)|(^level[0-2]$)/;var Gi={};Gi[Li]=function(t){var e=t.getComplianceLevelSupportedFeatures();return void 0===e&&(e=Fi[Li].level0),{url:void 0===t.imageInfo["@id"]?void 0:t.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),supports:e.supports,formats:Ri(Ri([],e.formats,!0),[void 0===t.imageInfo.formats?[]:t.imageInfo.formats],!1),qualities:Ri(Ri([],e.qualities,!0),[void 0===t.imageInfo.qualities?[]:t.imageInfo.qualities],!1),resolutions:t.imageInfo.scale_factors,tileSize:void 0!==t.imageInfo.tile_width?void 0!==t.imageInfo.tile_height?[t.imageInfo.tile_width,t.imageInfo.tile_height]:[t.imageInfo.tile_width,t.imageInfo.tile_width]:null!=t.imageInfo.tile_height?[t.imageInfo.tile_height,t.imageInfo.tile_height]:void 0}},Gi[ki]=function(t){var e=t.getComplianceLevelSupportedFeatures(),r=Array.isArray(t.imageInfo.profile)&&t.imageInfo.profile.length>1,n=r&&t.imageInfo.profile[1].supports?t.imageInfo.profile[1].supports:[],i=r&&t.imageInfo.profile[1].formats?t.imageInfo.profile[1].formats:[],o=r&&t.imageInfo.profile[1].qualities?t.imageInfo.profile[1].qualities:[];return{url:t.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),sizes:void 0===t.imageInfo.sizes?void 0:t.imageInfo.sizes.map((function(t){return[t.width,t.height]})),tileSize:void 0===t.imageInfo.tiles?void 0:[t.imageInfo.tiles.map((function(t){return t.width}))[0],t.imageInfo.tiles.map((function(t){return void 0===t.height?t.width:t.height}))[0]],resolutions:void 0===t.imageInfo.tiles?void 0:t.imageInfo.tiles.map((function(t){return t.scaleFactors}))[0],supports:Ri(Ri([],e.supports,!0),n,!0),formats:Ri(Ri([],e.formats,!0),i,!0),qualities:Ri(Ri([],e.qualities,!0),o,!0)}},Gi[Mi]=function(t){var e=t.getComplianceLevelSupportedFeatures(),r=void 0===t.imageInfo.extraFormats?e.formats:Ri(Ri([],e.formats,!0),t.imageInfo.extraFormats,!0),n=void 0!==t.imageInfo.preferredFormats&&Array.isArray(t.imageInfo.preferredFormats)&&t.imageInfo.preferredFormats.length>0?t.imageInfo.preferredFormats.filter((function(t){return(0,I.mK)(["jpg","png","gif"],t)})).reduce((function(t,e){return void 0===t&&(0,I.mK)(r,e)?e:t}),void 0):void 0;return{url:t.imageInfo.id,sizes:void 0===t.imageInfo.sizes?void 0:t.imageInfo.sizes.map((function(t){return[t.width,t.height]})),tileSize:void 0===t.imageInfo.tiles?void 0:[t.imageInfo.tiles.map((function(t){return t.width}))[0],t.imageInfo.tiles.map((function(t){return t.height}))[0]],resolutions:void 0===t.imageInfo.tiles?void 0:t.imageInfo.tiles.map((function(t){return t.scaleFactors}))[0],supports:void 0===t.imageInfo.extraFeatures?e.supports:Ri(Ri([],e.supports,!0),t.imageInfo.extraFeatures,!0),formats:r,qualities:void 0===t.imageInfo.extraQualities?e.qualities:Ri(Ri([],e.qualities,!0),t.imageInfo.extraQualities,!0),preferredFormat:n}};!function(){function t(t){this.setImageInfo(t)}t.prototype.setImageInfo=function(t){this.imageInfo="string"==typeof t?JSON.parse(t):t},t.prototype.getImageApiVersion=function(){if(void 0!==this.imageInfo){var t=this.imageInfo["@context"]||"ol-no-context";"string"==typeof t&&(t=[t]);for(var e=0;e<t.length;e++)switch(t[e]){case"http://library.stanford.edu/iiif/image-api/1.1/context.json":case"http://iiif.io/api/image/1/context.json":return Li;case"http://iiif.io/api/image/2/context.json":return ki;case"http://iiif.io/api/image/3/context.json":return Mi;case"ol-no-context":if(this.getComplianceLevelEntryFromProfile(Li)&&this.imageInfo.identifier)return Li}(0,n.v)(!1,61)}},t.prototype.getComplianceLevelEntryFromProfile=function(t){if(void 0!==this.imageInfo&&void 0!==this.imageInfo.profile)switch(void 0===t&&(t=this.getImageApiVersion()),t){case Li:if(Di.test(this.imageInfo.profile))return this.imageInfo.profile;break;case Mi:if(Ui.test(this.imageInfo.profile))return this.imageInfo.profile;break;case ki:if("string"==typeof this.imageInfo.profile&&ji.test(this.imageInfo.profile))return this.imageInfo.profile;if(Array.isArray(this.imageInfo.profile)&&this.imageInfo.profile.length>0&&"string"==typeof this.imageInfo.profile[0]&&ji.test(this.imageInfo.profile[0]))return this.imageInfo.profile[0]}},t.prototype.getComplianceLevelFromProfile=function(t){var e=this.getComplianceLevelEntryFromProfile(t);if(void 0!==e){var r=e.match(/level[0-2](?:\.json)?$/g);return Array.isArray(r)?r[0].replace(".json",""):void 0}},t.prototype.getComplianceLevelSupportedFeatures=function(){if(void 0!==this.imageInfo){var t=this.getImageApiVersion(),e=this.getComplianceLevelFromProfile(t);return void 0===e?Fi.none.none:Fi[t][e]}},t.prototype.getTileSourceOptions=function(t){var e=t||{},r=this.getImageApiVersion();if(void 0!==r){var n=void 0===r?void 0:Gi[r](this);if(void 0!==n)return{url:n.url,version:r,size:[this.imageInfo.width,this.imageInfo.height],sizes:n.sizes,format:void 0!==e.format&&(0,I.mK)(n.formats,e.format)?e.format:void 0!==n.preferredFormat?n.preferredFormat:"jpg",supports:n.supports,quality:e.quality&&(0,I.mK)(n.qualities,e.quality)?e.quality:(0,I.mK)(n.qualities,"native")?"native":"default",resolutions:Array.isArray(n.resolutions)?n.resolutions.sort((function(t,e){return e-t})):void 0,tileSize:n.tileSize}}}}();var Ni=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function Bi(t){return t.toLocaleString("en",{maximumFractionDigits:10})}const zi=function(t){function e(e){var r=this,i=e||{},a=void 0===i.imageSmoothing||i.imageSmoothing;void 0!==i.interpolate&&(a=i.interpolate);var s=i.url||"";s+=s.lastIndexOf("/")===s.length-1||""===s?"":"/";var l=i.version||ki,u=i.sizes||[],h=i.size;(0,n.v)(null!=h&&Array.isArray(h)&&2==h.length&&!isNaN(h[0])&&h[0]>0&&!isNaN(h[1])&&h[1]>0,60);var c,f,p,d=h[0],g=h[1],_=i.tileSize,y=i.tilePixelRatio||1,m=i.format||"jpg",v=i.quality||(i.version==Li?"native":"default"),w=i.resolutions||[],x=i.supports||[],b=i.extent||[0,-g,d,0],E=null!=u&&Array.isArray(u)&&u.length>0,A=void 0!==_&&("number"==typeof _&&Number.isInteger(_)&&_>0||Array.isArray(_)&&_.length>0),S=null!=x&&Array.isArray(x)&&((0,I.mK)(x,"regionByPx")||(0,I.mK)(x,"regionByPct"))&&((0,I.mK)(x,"sizeByWh")||(0,I.mK)(x,"sizeByH")||(0,I.mK)(x,"sizeByW")||(0,I.mK)(x,"sizeByPct"));if(w.sort((function(t,e){return e-t})),A||S)if(null!=_&&("number"==typeof _&&Number.isInteger(_)&&_>0?(c=_,f=_):Array.isArray(_)&&_.length>0&&((1==_.length||null==_[1]&&Number.isInteger(_[0]))&&(c=_[0],f=_[0]),2==_.length&&(Number.isInteger(_[0])&&Number.isInteger(_[1])?(c=_[0],f=_[1]):null==_[0]&&Number.isInteger(_[1])&&(c=_[1],f=_[1])))),void 0!==c&&void 0!==f||(c=C.R,f=C.R),0==w.length)for(var T=p=Math.max(Math.ceil(Math.log(d/c)/Math.LN2),Math.ceil(Math.log(g/f)/Math.LN2));T>=0;T--)w.push(Math.pow(2,T));else{var P=Math.max.apply(Math,w);p=Math.round(Math.log(P)/Math.LN2)}else if(c=d,f=g,w=[],E){u.sort((function(t,e){return t[0]-e[0]})),p=-1;var R=[];for(T=0;T<u.length;T++){var L=d/u[T][0];w.length>0&&w[w.length-1]==L?R.push(T):(w.push(L),p++)}if(R.length>0)for(T=0;T<R.length;T++)u.splice(R[T]-T,1)}else w.push(1),u.push([d,g]),p=0;var M=new k({tileSize:[c,f],extent:b,origin:(0,o.getTopLeft)(b),resolutions:w}),F=Ii.bind(null,(0,O.xq)(_||256).map((function(t){return t*y})));return(r=t.call(this,{attributions:i.attributions,attributionsCollapsible:i.attributionsCollapsible,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,interpolate:a,projection:i.projection,reprojectionErrorThreshold:i.reprojectionErrorThreshold,state:i.state,tileClass:F,tileGrid:M,tilePixelRatio:i.tilePixelRatio,tileUrlFunction:function(t,e,r){var n,i,o=t[0];if(!(o>p)){var a=t[1],h=t[2],_=w[o];if(!(void 0===a||void 0===h||void 0===_||a<0||Math.ceil(d/_/c)<=a||h<0||Math.ceil(g/_/f)<=h)){if(S||A){var y=a*c*_,b=h*f*_,C=c*_,T=f*_,P=c,O=f;if(y+C>d&&(C=d-y),b+T>g&&(T=g-b),y+c*_>d&&(P=Math.floor((d-y+_-1)/_)),b+f*_>g&&(O=Math.floor((g-b+_-1)/_)),0==y&&C==d&&0==b&&T==g)n="full";else if(!S||(0,I.mK)(x,"regionByPx"))n=y+","+b+","+C+","+T;else if((0,I.mK)(x,"regionByPct")){n="pct:"+Bi(y/d*100)+","+Bi(b/g*100)+","+Bi(C/d*100)+","+Bi(T/g*100)}l!=Mi||S&&!(0,I.mK)(x,"sizeByWh")?!S||(0,I.mK)(x,"sizeByW")?i=P+",":(0,I.mK)(x,"sizeByH")?i=","+O:(0,I.mK)(x,"sizeByWh")?i=P+","+O:(0,I.mK)(x,"sizeByPct")&&(i="pct:"+Bi(100/_)):i=P+","+O}else if(n="full",E){var R=u[o][0],L=u[o][1];i=l==Mi?R==d&&L==g?"max":R+","+L:R==d?"full":R+","}else i=l==Mi?"max":"full";return s+n+"/"+i+"/0/"+v+"."+m}}},transition:i.transition})||this).zDirection=i.zDirection,r}return Ni(e,t),e}(Q);var Vi=r(6141),Xi=r(611),Ki=r(2913),Wi=r(3513),Hi=r(9438),Yi=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Zi=function(t){function e(e,r,n,i,a,s,l){var u=this,h=e.getExtent(),c=r.getExtent(),f=c?(0,o.getIntersection)(n,c):n,p=(0,o.getCenter)(f),d=(0,Wi.KQ)(e,r,p,i),g=q.l,_=new Ki.A(e,r,f,h,d*g,i),y=s(_.calculateSourceExtent(),d,a),m=y?Vi.A.IDLE:Vi.A.EMPTY,v=y?y.getPixelRatio():1;return(u=t.call(this,n,i,v,m)||this).targetProj_=r,u.maxSourceExtent_=h,u.triangulation_=_,u.targetResolution_=i,u.targetExtent_=n,u.sourceImage_=y,u.sourcePixelRatio_=v,u.interpolate_=l,u.canvas_=null,u.sourceListenerKey_=null,u}return Yi(e,t),e.prototype.disposeInternal=function(){this.state==Vi.A.LOADING&&this.unlistenSource_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.getProjection=function(){return this.targetProj_},e.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==Vi.A.LOADED){var e=(0,o.getWidth)(this.targetExtent_)/this.targetResolution_,r=(0,o.getHeight)(this.targetExtent_)/this.targetResolution_;this.canvas_=(0,Wi.XX)(e,r,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=t,this.changed()},e.prototype.load=function(){if(this.state==Vi.A.IDLE){this.state=Vi.A.LOADING,this.changed();var t=this.sourceImage_.getState();t==Vi.A.LOADED||t==Vi.A.ERROR?this.reproject_():(this.sourceListenerKey_=(0,Hi.KT)(this.sourceImage_,a.A.CHANGE,(function(t){var e=this.sourceImage_.getState();e!=Vi.A.LOADED&&e!=Vi.A.ERROR||(this.unlistenSource_(),this.reproject_())}),this),this.sourceImage_.load())}},e.prototype.unlistenSource_=function(){(0,Hi.JH)(this.sourceListenerKey_),this.sourceListenerKey_=null},e}(Xi.A);var qi=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),$i="imageloadstart",Ji="imageloadend",Qi="imageloaderror",to=function(t){function e(e,r){var n=t.call(this,e)||this;return n.image=r,n}return qi(e,t),e}(x.Ay);function eo(t,e){t.getImage().src=e}const ro=function(t){function e(e){var r=this,n=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(n=e.interpolate),(r=t.call(this,{attributions:e.attributions,projection:e.projection,state:e.state,interpolate:n})||this).on,r.once,r.un,r.resolutions_=void 0!==e.resolutions?e.resolutions:null,r.reprojectedImage_=null,r.reprojectedRevision_=0,r}return qi(e,t),e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var e=(0,I.FT)(this.resolutions_,t,0);t=this.resolutions_[e]}return t},e.prototype.getImage=function(t,e,r,n){var i=this.getProjection();if(q.b&&i&&n&&!(0,A.equivalent)(i,n)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&(0,A.equivalent)(this.reprojectedImage_.getProjection(),n)&&this.reprojectedImage_.getResolution()==e&&(0,o.equals)(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new Zi(i,n,t,e,r,function(t,e,r){return this.getImageInternal(t,e,r,i)}.bind(this),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return i&&(n=i),this.getImageInternal(t,e,r,n)},e.prototype.getImageInternal=function(t,e,r,n){return(0,E.b0)()},e.prototype.handleImageChange=function(t){var e,r=t.target;switch(r.getState()){case Vi.A.LOADING:this.loading=!0,e=$i;break;case Vi.A.LOADED:this.loading=!1,e=Ji;break;case Vi.A.ERROR:this.loading=!1,e=Qi;break;default:return}this.hasListener(e)&&this.dispatchEvent(new to(e,r))},e}(b.A);var no=r(3938);function io(t,e){var r=[];Object.keys(e).forEach((function(t){null!==e[t]&&void 0!==e[t]&&r.push(t+"="+encodeURIComponent(e[t]))}));var n=r.join("&");return(t=-1===(t=t.replace(/[?&]$/,"")).indexOf("?")?t+"?":t+"&")+n}var oo=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const ao=function(t){function e(e){var r=this,n=e||{},i=void 0===n.imageSmoothing||n.imageSmoothing;return void 0!==n.interpolate&&(i=n.interpolate),(r=t.call(this,{attributions:n.attributions,interpolate:i,projection:n.projection,resolutions:n.resolutions})||this).crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null,r.hidpi_=void 0===n.hidpi||n.hidpi,r.url_=n.url,r.imageLoadFunction_=void 0!==n.imageLoadFunction?n.imageLoadFunction:eo,r.params_=n.params||{},r.image_=null,r.imageSize_=[0,0],r.renderedRevision_=0,r.ratio_=void 0!==n.ratio?n.ratio:1.5,r}return oo(e,t),e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,e,r,n){if(void 0===this.url_)return null;e=this.findNearestResolution(e),r=this.hidpi_?r:1;var i=this.image_;if(i&&this.renderedRevision_==this.getRevision()&&i.getResolution()==e&&i.getPixelRatio()==r&&(0,o.containsExtent)(i.getExtent(),t))return i;var s={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};(0,at.kp)(s,this.params_);var l=((t=t.slice())[0]+t[2])/2,u=(t[1]+t[3])/2;if(1!=this.ratio_){var h=this.ratio_*(0,o.getWidth)(t)/2,c=this.ratio_*(0,o.getHeight)(t)/2;t[0]=l-h,t[1]=u-c,t[2]=l+h,t[3]=u+c}var f=e/r,p=Math.ceil((0,o.getWidth)(t)/f),d=Math.ceil((0,o.getHeight)(t)/f);t[0]=l-f*p/2,t[2]=l+f*p/2,t[1]=u-f*d/2,t[3]=u+f*d/2,this.imageSize_[0]=p,this.imageSize_[1]=d;var g=this.getRequestUrl_(t,this.imageSize_,r,n,s);return this.image_=new no.A(t,e,r,g,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(a.A.CHANGE,this.handleImageChange.bind(this)),this.image_},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.getRequestUrl_=function(t,e,r,i,o){var a=i.getCode().split(/:(?=\d+$)/).pop();o.SIZE=e[0]+","+e[1],o.BBOX=t.join(","),o.BBOXSR=a,o.IMAGESR=a,o.DPI=Math.round(90*r);var s=this.url_,l=s.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage");return l==s&&(0,n.v)(!1,50),io(l,o)},e.prototype.getUrl=function(){return this.url_},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},e.prototype.updateParams=function(t){(0,at.kp)(this.params_,t),this.image_=null,this.changed()},e}(ro);var so=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const lo=function(t){function e(e,r,n,i,o){var a=this,s=void 0!==o?Vi.A.IDLE:Vi.A.LOADED;return(a=t.call(this,e,r,n,s)||this).loader_=void 0!==o?o:null,a.canvas_=i,a.error_=null,a}return so(e,t),e.prototype.getError=function(){return this.error_},e.prototype.handleLoad_=function(t){t?(this.error_=t,this.state=Vi.A.ERROR):this.state=Vi.A.LOADED,this.changed()},e.prototype.load=function(){this.state==Vi.A.IDLE&&(this.state=Vi.A.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))},e.prototype.getImage=function(){return this.canvas_},e}(Xi.A);var uo=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const ho=function(t){function e(e){var r=this,n=e||{},i=void 0===n.imageSmoothing||n.imageSmoothing;return void 0!==n.interpolate&&(i=n.interpolate),(r=t.call(this,{attributions:n.attributions,interpolate:i,projection:n.projection,resolutions:n.resolutions,state:n.state})||this).canvasFunction_=n.canvasFunction,r.canvas_=null,r.renderedRevision_=0,r.ratio_=void 0!==n.ratio?n.ratio:1.5,r}return uo(e,t),e.prototype.getImageInternal=function(t,e,r,n){e=this.findNearestResolution(e);var i=this.canvas_;if(i&&this.renderedRevision_==this.getRevision()&&i.getResolution()==e&&i.getPixelRatio()==r&&(0,o.containsExtent)(i.getExtent(),t))return i;t=t.slice(),(0,o.scaleFromCenter)(t,this.ratio_);var a=[(0,o.getWidth)(t)/e*r,(0,o.getHeight)(t)/e*r],s=this.canvasFunction_.call(this,t,e,r,a,n);return s&&(i=new lo(t,e,r,s)),this.canvas_=i,this.renderedRevision_=this.getRevision(),i},e}(ro);var co=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const fo=function(t){function e(e){var r=this,n=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(n=e.interpolate),(r=t.call(this,{interpolate:n,projection:e.projection,resolutions:e.resolutions})||this).crossOrigin_=void 0!==e.crossOrigin?e.crossOrigin:null,r.displayDpi_=void 0!==e.displayDpi?e.displayDpi:96,r.params_=e.params||{},r.url_=e.url,r.imageLoadFunction_=void 0!==e.imageLoadFunction?e.imageLoadFunction:eo,r.hidpi_=void 0===e.hidpi||e.hidpi,r.metersPerUnit_=void 0!==e.metersPerUnit?e.metersPerUnit:1,r.ratio_=void 0!==e.ratio?e.ratio:1,r.useOverlay_=void 0!==e.useOverlay&&e.useOverlay,r.image_=null,r.renderedRevision_=0,r}return co(e,t),e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,e,r,n){e=this.findNearestResolution(e),r=this.hidpi_?r:1;var i=this.image_;if(i&&this.renderedRevision_==this.getRevision()&&i.getResolution()==e&&i.getPixelRatio()==r&&(0,o.containsExtent)(i.getExtent(),t))return i;1!=this.ratio_&&(t=t.slice(),(0,o.scaleFromCenter)(t,this.ratio_));var s=[(0,o.getWidth)(t)/e*r,(0,o.getHeight)(t)/e*r];if(void 0!==this.url_){var l=this.getUrl(this.url_,this.params_,t,s,n);(i=new no.A(t,e,r,l,this.crossOrigin_,this.imageLoadFunction_)).addEventListener(a.A.CHANGE,this.handleImageChange.bind(this))}else i=null;return this.image_=i,this.renderedRevision_=this.getRevision(),i},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.updateParams=function(t){(0,at.kp)(this.params_,t),this.changed()},e.prototype.getUrl=function(t,e,r,n,i){var a=function(t,e,r,n){var i=(0,o.getWidth)(t),a=(0,o.getHeight)(t),s=e[0],l=e[1],u=.0254/n;return l*i>s*a?i*r/(s*u):a*r/(l*u)}(r,n,this.metersPerUnit_,this.displayDpi_),s=(0,o.getCenter)(r),l={OPERATION:this.useOverlay_?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol/source/ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.displayDpi_,SETDISPLAYWIDTH:Math.round(n[0]),SETDISPLAYHEIGHT:Math.round(n[1]),SETVIEWSCALE:a,SETVIEWCENTERX:s[0],SETVIEWCENTERY:s[1]};return(0,at.kp)(l,e),io(t,l)},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e}(ro);var po=r(6843),go=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),_o=function(t){function e(e){var r=this,n=void 0!==e.crossOrigin?e.crossOrigin:null,i=void 0!==e.imageLoadFunction?e.imageLoadFunction:eo,o=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(o=e.interpolate),(r=t.call(this,{attributions:e.attributions,interpolate:o,projection:(0,A.get)(e.projection)})||this).url_=e.url,r.imageExtent_=e.imageExtent,r.image_=new no.A(r.imageExtent_,void 0,1,r.url_,n,i),r.imageSize_=e.imageSize?e.imageSize:null,r.image_.addEventListener(a.A.CHANGE,r.handleImageChange.bind(r)),r}return go(e,t),e.prototype.getImageExtent=function(){return this.imageExtent_},e.prototype.getImageInternal=function(t,e,r,n){return(0,o.intersects)(t,this.image_.getExtent())?this.image_:null},e.prototype.getUrl=function(){return this.url_},e.prototype.handleImageChange=function(e){if(this.image_.getState()==Vi.A.LOADED){var r=this.image_.getExtent(),n=this.image_.getImage(),i=void 0,a=void 0;this.imageSize_?(i=this.imageSize_[0],a=this.imageSize_[1]):(i=n.width,a=n.height);var s=(0,o.getWidth)(r),l=(0,o.getHeight)(r),u=s/i,h=l/a,c=i,f=a;if(u>h?c=Math.round(s/h):f=Math.round(l/u),c!==i||f!==a){var p=(0,Si.Y)(c,f);this.getInterpolate()||(0,at.kp)(p,po.A);var d=p.canvas;
8p.drawImage(n,0,0,i,a,0,0,d.width,d.height),this.image_.setImage(d)}}t.prototype.handleImageChange.call(this,e)},e}(ro);const yo=_o;var mo="1.3.0",vo=r(2806),wo=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),xo=[101,101],bo=function(t){function e(e){var r=this,n=e||{},i=void 0===n.imageSmoothing||n.imageSmoothing;return void 0!==n.interpolate&&(i=n.interpolate),(r=t.call(this,{attributions:n.attributions,interpolate:i,projection:n.projection,resolutions:n.resolutions})||this).crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null,r.url_=n.url,r.imageLoadFunction_=void 0!==n.imageLoadFunction?n.imageLoadFunction:eo,r.params_=n.params||{},r.v13_=!0,r.updateV13_(),r.serverType_=n.serverType,r.hidpi_=void 0===n.hidpi||n.hidpi,r.image_=null,r.imageSize_=[0,0],r.renderedRevision_=0,r.ratio_=void 0!==n.ratio?n.ratio:1.5,r}return wo(e,t),e.prototype.getFeatureInfoUrl=function(t,e,r,n){if(void 0!==this.url_){var i=(0,A.get)(r),a=this.getProjection();a&&a!==i&&(e=(0,Wi.KQ)(a,i,t,e),t=(0,A.transform)(t,i,a));var s=(0,o.getForViewAndSize)(t,e,0,xo),l={SERVICE:"WMS",VERSION:mo,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};(0,at.kp)(l,this.params_,n);var u=(0,T.RI)((t[0]-s[0])/e,4),h=(0,T.RI)((s[3]-t[1])/e,4);return l[this.v13_?"I":"X"]=u,l[this.v13_?"J":"Y"]=h,this.getRequestUrl_(s,xo,1,a||i,l)}},e.prototype.getLegendUrl=function(t,e){if(void 0!==this.url_){var r={SERVICE:"WMS",VERSION:mo,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===e||void 0===e.LAYER){var n=this.params_.LAYERS;if(!(!Array.isArray(n)||1===n.length))return;r.LAYER=n}if(void 0!==t){var i=this.getProjection()?this.getProjection().getMetersPerUnit():1;r.SCALE=t*i/28e-5}return(0,at.kp)(r,e),io(this.url_,r)}},e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,e,r,n){if(void 0===this.url_)return null;e=this.findNearestResolution(e),1==r||this.hidpi_&&void 0!==this.serverType_||(r=1);var i=e/r,s=(0,o.getCenter)(t),l=(0,T.mk)((0,o.getWidth)(t)/i,4),u=(0,T.mk)((0,o.getHeight)(t)/i,4),h=(0,o.getForViewAndSize)(s,i,0,[l,u]),c=(0,T.mk)(this.ratio_*(0,o.getWidth)(t)/i,4),f=(0,T.mk)(this.ratio_*(0,o.getHeight)(t)/i,4),p=(0,o.getForViewAndSize)(s,i,0,[c,f]),d=this.image_;if(d&&this.renderedRevision_==this.getRevision()&&d.getResolution()==e&&d.getPixelRatio()==r&&(0,o.containsExtent)(d.getExtent(),h))return d;var g={SERVICE:"WMS",VERSION:mo,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};(0,at.kp)(g,this.params_),this.imageSize_[0]=(0,T.LI)((0,o.getWidth)(p)/i,4),this.imageSize_[1]=(0,T.LI)((0,o.getHeight)(p)/i,4);var _=this.getRequestUrl_(p,this.imageSize_,r,n,g);return this.image_=new no.A(p,e,r,_,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(a.A.CHANGE,this.handleImageChange.bind(this)),this.image_},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.getRequestUrl_=function(t,e,r,i,o){if((0,n.v)(void 0!==this.url_,9),o[this.v13_?"CRS":"SRS"]=i.getCode(),"STYLES"in this.params_||(o.STYLES=""),1!=r)switch(this.serverType_){case"geoserver":var a=90*r+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+a:o.FORMAT_OPTIONS="dpi:"+a;break;case"mapserver":o.MAP_RESOLUTION=90*r;break;case"carmentaserver":case"qgis":o.DPI=90*r;break;default:(0,n.v)(!1,8)}o.WIDTH=e[0],o.HEIGHT=e[1];var s,l=i.getAxisOrientation();return s=this.v13_&&"ne"==l.substr(0,2)?[t[1],t[0],t[3],t[2]]:t,o.BBOX=s.join(","),io(this.url_,o)},e.prototype.getUrl=function(){return this.url_},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},e.prototype.updateParams=function(t){(0,at.kp)(this.params_,t),this.updateV13_(),this.image_=null,this.changed()},e.prototype.updateV13_=function(){var t=this.params_.VERSION||mo;this.v13_=(0,vo.Z)(t,"1.3")>=0},e}(ro);const Eo=bo;var Ao=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),So='&#169; <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.';const Co=function(t){function e(e){var r,n=e||{},i=void 0===n.imageSmoothing||n.imageSmoothing;void 0!==n.interpolate&&(i=n.interpolate),r=void 0!==n.attributions?n.attributions:[So];var o=void 0!==n.crossOrigin?n.crossOrigin:"anonymous",a=void 0!==n.url?n.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";
8return t.call(this,{attributions:r,attributionsCollapsible:!1,cacheSize:n.cacheSize,crossOrigin:o,interpolate:i,maxZoom:void 0!==n.maxZoom?n.maxZoom:19,opaque:void 0===n.opaque||n.opaque,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileLoadFunction:n.tileLoadFunction,transition:n.transition,url:a,wrapX:n.wrapX,zDirection:n.zDirection})||this}return Ao(e,t),e}(ot);var To=r(25),Po=r(764),Io=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Oo=function(t){function e(e){var r=e||{};return t.call(this,r)||this}return Io(e,t),e}(Po.A);var Ro=r(6769),Lo=r(2703),ko=r(9703),Mo=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Fo=function(t){function e(e){var r=t.call(this,e)||this;return r.image_=null,r}return Mo(e,t),e.prototype.getImage=function(){return this.image_?this.image_.getImage():null},e.prototype.prepareFrame=function(t){var e=t.layerStatesArray[t.layerIndex],r=t.pixelRatio,n=t.viewState,i=n.resolution,a=this.getLayer().getSource(),s=t.viewHints,l=t.extent;if(void 0!==e.extent&&(l=(0,o.getIntersection)(l,(0,A.fromUserExtent)(e.extent,n.projection))),!s[Lo.A.ANIMATING]&&!s[Lo.A.INTERACTING]&&!(0,o.isEmpty)(l))if(a){var u=n.projection;if(!q.b){var h=a.getProjection();h&&(u=h)}var c=a.getImage(l,i,r,u);c&&(this.loadImage(c)?this.image_=c:c.getState()===Vi.A.EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_},e.prototype.getData=function(t){var e=this.frameState;if(!e)return null;var r=this.getLayer(),n=(0,ko.Bb)(e.pixelToCoordinateTransform,t.slice()),i=r.getExtent();if(i&&!(0,o.containsCoordinate)(i,n))return null;var a=this.image_.getExtent(),s=this.image_.getImage(),l=(0,o.getWidth)(a),u=Math.floor(s.width*((n[0]-a[0])/l));if(u<0||u>=s.width)return null;var h=(0,o.getHeight)(a),c=Math.floor(s.height*((a[3]-n[1])/h));return c<0||c>=s.height?null:this.getImageData(s,u,c)},e.prototype.renderFrame=function(t,e){var r=this.image_,n=r.getExtent(),i=r.getResolution(),a=r.getPixelRatio(),s=t.layerStatesArray[t.layerIndex],l=t.pixelRatio,u=t.viewState,h=u.center,c=l*i/(u.resolution*a),f=t.extent,p=u.resolution,d=u.rotation,g=Math.round((0,o.getWidth)(f)/p*l),_=Math.round((0,o.getHeight)(f)/p*l);(0,ko.Zz)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/l,1/l,d,-g/2,-_/2),(0,ko.T9)(this.inversePixelTransform,this.pixelTransform);var y=(0,ko.dI)(this.pixelTransform);this.useContainer(e,y,this.getBackground(t));var m=this.context,v=m.canvas;v.width!=g||v.height!=_?(v.width=g,v.height=_):this.containerReused||m.clearRect(0,0,g,_);var w=!1,x=!0;if(s.extent){var b=(0,A.fromUserExtent)(s.extent,u.projection);(w=(x=(0,o.intersects)(b,t.extent))&&!(0,o.containsExtent)(b,t.extent))&&this.clipUnrotated(m,t,b)}var E=r.getImage(),S=(0,ko.Zz)(this.tempTransform,g/2,_/2,c,c,0,a*(n[0]-h[0])/i,a*(h[1]-n[3])/i);this.renderedResolution=i*l/a;var C=E.width*S[0],T=E.height*S[3];if(this.getLayer().getSource().getInterpolate()||(0,at.kp)(m,po.A),this.preRender(m,t),x&&C>=.5&&T>=.5){var P=S[4],I=S[5],O=s.opacity,R=void 0;1!==O&&(R=m.globalAlpha,m.globalAlpha=O),m.drawImage(E,0,0,+E.width,+E.height,P,I,C,T),1!==O&&(m.globalAlpha=R)}return this.postRender(m,t),w&&m.restore(),(0,at.kp)(m,po.V),y!==v.style.transform&&(v.style.transform=y),this.container},e}(Ro.A);const Do=Fo;var jo=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Uo=function(t){function e(e){return t.call(this,e)||this}return jo(e,t),e.prototype.createRenderer=function(){return new Do(this)},e.prototype.getData=function(e){return t.prototype.getData.call(this,e)},e}(Oo);var Go,No=r(3504),Bo=r(6813),zo=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Vo=!0;try{new ImageData(10,10)}catch(t){Vo=!1}function Xo(t){var e=!0;try{new ImageData(10,10)}catch(t){e=!1}function r(t,r,n){return e?new ImageData(t,r,n):{data:t,width:r,height:n}}return function(e){var n=e.buffers,i=e.meta,o=e.imageOps,a=e.width,s=e.he
vendor: 5,852 bytes, line 8
8ight,l=n.length,u=n[0].byteLength;if(o){for(var h=new Array(l),c=0;c<l;++c)h[c]=r(new Uint8ClampedArray(n[c]),a,s);return t(h,i).data.buffer}var f=new Uint8ClampedArray(u),p=new Array(l),d=new Array(l);for(c=0;c<l;++c)p[c]=new Uint8ClampedArray(n[c]),d[c]=[0,0,0,0];for(var g=0;g<u;g+=4){for(var _=0;_<l;++_){var y=p[_];d[_][0]=y[g],d[_][1]=y[g+1],d[_][2]=y[g+2],d[_][3]=y[g+3]}var m=t(d,i);f[g]=m[0],f[g+1]=m[1],f[g+2]=m[2],f[g+3]=m[3]}return f.buffer}}function Ko(t,e){var r=Object.keys(t.lib||{}).map((function(e){return"var "+e+" = "+t.lib[e].toString()+";"})).concat(["var __minion__ = ("+Xo.toString()+")(",t.operation.toString(),");",'self.addEventListener("message", function(event) {',"  var buffer = __minion__(event.data);","  self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),n=new Worker("undefined"==typeof Blob?"data:text/javascript;base64,"+Buffer.from(r.join("\n"),"binary").toString("base64"):URL.createObjectURL(new Blob(r,{type:"text/javascript"})));return n.addEventListener("message",e),n}var Wo=function(t){function e(e){var r,n=t.call(this)||this;n._imageOps=!!e.imageOps,r=0===e.threads?0:n._imageOps?1:e.threads||1;var i=new Array(r);if(r)for(var o=0;o<r;++o)i[o]=Ko(e,n._onWorkerMessage.bind(n,o));else i[0]=function(t,e){var r=Xo(t.operation),n=!1;return{postMessage:function(t){setTimeout((function(){n||e({data:{buffer:r(t),meta:t.meta}})}),0)},terminate:function(){n=!0}}}(e,n._onWorkerMessage.bind(n,0));return n._workers=i,n._queue=[],n._maxQueueLength=e.queue||1/0,n._running=0,n._dataLookup={},n._job=null,n}return zo(e,t),e.prototype.process=function(t,e,r){this._enqueue({inputs:t,meta:e,callback:r}),this._dispatch()},e.prototype._enqueue=function(t){for(this._queue.push(t);this._queue.length>this._maxQueueLength;)this._queue.shift().callback(null,null)},e.prototype._dispatch=function(){if(!this._running&&0!==this._queue.length){var t=this._queue.shift();this._job=t;var e=t.inputs[0].width,r=t.inputs[0].height,n=t.inputs.map((function(t){return t.data.buffer})),i=this._workers.length;if(this._running=i,1!==i)for(var o=t.inputs[0].data.length,a=4*Math.ceil(o/4/i),s=0;s<i;++s){for(var l=s*a,u=[],h=0,c=n.length;h<c;++h)u.push(n[h].slice(l,l+a));this._workers[s].postMessage({buffers:u,meta:t.meta,imageOps:this._imageOps,width:e,height:r},u)}else this._workers[0].postMessage({buffers:n,meta:t.meta,imageOps:this._imageOps,width:e,height:r},n)}},e.prototype._onWorkerMessage=function(t,e){this.disposed||(this._dataLookup[t]=e.data,--this._running,0===this._running&&this._resolveJob())},e.prototype._resolveJob=function(){var t,e,r=this._job,n=this._workers.length;if(1===n)t=new Uint8ClampedArray(this._dataLookup[0].buffer),e=this._dataLookup[0].meta;else{var i=r.inputs[0].data.length;t=new Uint8ClampedArray(i),e=new Array(n);for(var o=4*Math.ceil(i/4/n),a=0;a<n;++a){var s=this._dataLookup[a].buffer,l=a*o;t.set(new Uint8ClampedArray(s),l),e[a]=this._dataLookup[a].meta}}this._job=null,this._dataLookup={},r.callback(null,function(t,e,r){if(Vo)return new ImageData(t,e,r);Go||(Go=document.createElement("canvas").getContext("2d"));var n=Go.createImageData(e,r);return n.data.set(t),n}(t,r.inputs[0].width,r.inputs[0].height),e),this._dispatch()},e.prototype.disposeInternal=function(){for(var t=0;t<this._workers.length;++t)this._workers[t].terminate();this._workers.length=0},e}(To.A),Ho="beforeoperations",Yo="afteroperations",Zo="pixel",qo="image",$o=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.extent=r.extent,i.resolution=r.viewState.resolution/r.pixelRatio,i.data=n,i}return zo(e,t),e}(x.Ay),Jo=function(t){function e(e){var r=t.call(this,{projection:null})||this;r.on,r.once,r.un,r.processor_=null,r.operationType_=void 0!==e.operationType?e.operationType:Zo,r.threads_=void 0!==e.threads?e.threads:1,r.layers_=function(t){for(var e=t.length,r=new Array(e),n=0;n<e;++n)r[n]=ea(t[n]);return r}(e.sources);for(var n,i=r.changed.bind(r),o=0,s=r.layers_.length;o<s;++o)r.layers_[o].addEventListener(a.A.CHANGE,i);return r.tileQueue_=new Bo.A((function(){return 1}),r.changed.bind(r)),r.requestedFrameState_,r.renderedImageCanvas_=null,r.renderedRevision_,r.frameState_={animate:!1,coordinateToPixelTransform:(0,ko.vt)(),declutterTree:null,extent:null,index:0,layerIndex:0,layerStatesArray:(n=r.layers_,n.map((function(t){return t.getLayerState()}))),pixelRatio:1,pixelToCoordinateTransform:(0,ko.vt)(),postRenderFunctions:[],size:[0,0],tileQueue:r.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:(0,E.v6)(r),renderTargets:{}},r.setAttributions((function(t){for(var r=[],n=0,i=e.sources.length;n<i;++n){var o=e.sources[n],a=(o instanceof b.A?o:o.getSource()).getAttributions();if("function"==typeof a){var s=a(t);r.push.apply(r,s)}}return 0!==r.length?r:null})),void 0!==e.operation&&r.setOperation(e.operation,e.lib),r}return zo(e,t),e.prototype.setOperation=function(t,e){this.processor_&&this.processor_.dispose(),this.processor_=new Wo({operation:t,imageOps:this.operationType_===qo,queue:1,lib:e,threads:this.threads_}),this.changed()},e.prototype.updateFrameState_=function(t,e,r){var n=(0,at.kp)({},this.frameState_);n.viewState=(0,at.kp)({},n.viewState);var i=(0,o.getCenter)(t);n.extent=t.slice(),n.size[0]=Math.round((0,o.getWidth)(t)/e),n.size[1]=Math.round((0,o.getHeight)(t)/e),n.time=Date.now();var a=n.viewState;return a.center=i,a.projection=r,a.resolution=e,n},e.prototype.allSourcesReady_=function(){for(var t=!0,e=0,r=this.layers_.length;e<r;++e)if("ready"!==this.layers_[e].getSource().getState()){t=!1;break}return t},e.prototype.getImage=function(t,e,r,n){if(!this.allSourcesReady_())return null;var i=this.updateFrameState_(t,e,n);if(this.requestedFrameState_=i,this.renderedImageCanvas_){var a=this.renderedImageCanvas_.getResolution(),s=this.renderedImageCanvas_.getExtent();
8e===a&&(0,o.equals)(t,s)||(this.renderedImageCanvas_=null)}return this.renderedImageCanvas_&&this.getRevision()===this.renderedRevision_||this.processSources_(),i.tileQueue.loadMoreTiles(16,16),i.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_},e.prototype.processSources_=function(){for(var t=this.requestedFrameState_,e=this.layers_.length,r=new Array(e),n=0;n<e;++n){t.layerIndex=n;var i=ta(this.layers_[n],t);if(!i)return;r[n]=i}var o={};this.dispatchEvent(new $o(Ho,t,o)),this.processor_.process(r,o,this.onWorkerComplete_.bind(this,t))},e.prototype.onWorkerComplete_=function(t,e,r,n){if(!e&&r){var i=t.extent,a=t.viewState.resolution;if(a===this.requestedFrameState_.viewState.resolution&&(0,o.equals)(i,this.requestedFrameState_.extent)){var s;if(this.renderedImageCanvas_)s=this.renderedImageCanvas_.getImage().getContext("2d");else{var l=Math.round((0,o.getWidth)(i)/a),u=Math.round((0,o.getHeight)(i)/a);s=(0,Si.Y)(l,u),this.renderedImageCanvas_=new lo(i,a,1,s.canvas)}s.putImageData(r,0,0),this.changed(),this.renderedRevision_=this.getRevision(),this.dispatchEvent(new $o(Yo,t,n)),t.animate&&requestAnimationFrame(this.changed.bind(this))}}},e.prototype.disposeInternal=function(){this.processor_&&this.processor_.dispose(),t.prototype.disposeInternal.call(this)},e}(ro);Jo.prototype.dispose;var Qo=null;function ta(t,e){var r=t.getRenderer();if(!r)throw new Error("Unsupported layer type: "+t);if(!r.prepareFrame(e))return null;var n=e.size[0],i=e.size[1];if(0===n||0===i)return null;var o,a=r.renderFrame(e,null);if(a instanceof HTMLCanvasElement)o=a;else{if(a&&(o=a.firstElementChild),!(o instanceof HTMLCanvasElement))throw new Error("Unsupported rendered element: "+o);if(o.width===n&&o.height===i)return o.getContext("2d").getImageData(0,0,n,i)}if(Qo){var s=Qo.canvas;s.width!==n||s.height!==i?Qo=(0,Si.Y)(n,i):Qo.clearRect(0,0,n,i)}else Qo=(0,Si.Y)(n,i);return Qo.drawImage(o,0,0,n,i),Qo.getImageData(0,0,n,i)}function ea(t){var e;return t instanceof b.A?t instanceof z?e=new No.A({source:t}):t instanceof ro&&(e=new Uo({source:t})):e=t,e}const ra=Jo;var na=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ia=['Map tiles by <a href="https://stamen.com/" target="_blank">Stamen Design</a>, under <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>.',So],oa={terrain:{extension:"jpg",opaque:!0},"terrain-background":{extension:"jpg",opaque:!0},"terrain-labels":{extension:"png",opaque:!1},"terrain-lines":{extension:"png",opaque:!1},"toner-background":{extension:"png",opaque:!0},toner:{extension:"png",opaque:!0},"toner-hybrid":{extension:"png",opaque:!1},"toner-labels":{extension:"png",opaque:!1},"toner-lines":{extension:"png",opaque:!1},"toner-lite":{extension:"png",opaque:!0},watercolor:{extension:"jpg",opaque:!0}},aa={terrain:{minZoom:0,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:0,maxZoom:18}};const sa=function(t){function e(e){var r=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(r=e.interpolate);var n=e.layer.indexOf("-"),i=-1==n?e.layer:e.layer.slice(0,n),o=aa[i],a=oa[e.layer],s=void 0!==e.url?e.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+e.layer+"/{z}/{x}/{y}."+a.extension;return t.call(this,{attributions:ia,cacheSize:e.cacheSize,crossOrigin:"anonymous",interpolate:r,maxZoom:null!=e.maxZoom?e.maxZoom:
8o.maxZoom,minZoom:null!=e.minZoom?e.minZoom:o.minZoom,opaque:a.opaque,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:s,wrapX:e.wrapX,zDirection:e.zDirection})||this}return na(e,t),e}(ot);var la=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const ua=function(t){function e(e){var r=this,n=e||{},i=void 0===n.imageSmoothing||n.imageSmoothing;return void 0!==n.interpolate&&(i=n.interpolate),(r=t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:i,projection:n.projection,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:n.tileGrid,tileLoadFunction:n.tileLoadFunction,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,zDirection:n.zDirection})||this).params_=n.params||{},r.hidpi_=void 0===n.hidpi||n.hidpi,r.tmpExtent_=(0,o.createEmpty)(),r.setKey(r.getKeyForParams_()),r}return la(e,t),e.prototype.getKeyForParams_=function(){var t=0,e=[];for(var r in this.params_)e[t++]=r+"-"+this.params_[r];return e.join("/")},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,e,r,n,i,o){var a=this.urls;if(a){var s,l=i.getCode().split(/:(?=\d+$)/).pop();if(o.SIZE=e[0]+","+e[1],o.BBOX=r.join(","),o.BBOXSR=l,o.IMAGESR=l,o.DPI=Math.round(o.DPI?o.DPI*n:90*n),1==a.length)s=a[0];else s=a[(0,T.xP)(p(t),a.length)];return io(s.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"),o)}},e.prototype.getTilePixelRatio=function(t){return this.hidpi_?t:1},e.prototype.updateParams=function(t){(0,at.kp)(this.params_,t),this.setKey(this.getKeyForParams_())},e.prototype.tileUrlFunction=function(t,e,r){var n=this.getTileGrid();if(n||(n=this.getTileGridForProjection(r)),!(n.getResolutions().length<=t[0])){1==e||this.hidpi_||(e=1);var i=n.getTileCoordExtent(t,this.tmpExtent_),o=(0,O.xq)(n.getTileSize(t[0]),this.tmpSize);1!=e&&(o=(0,O.hs)(o,e,this.tmpSize));var a={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};return(0,at.kp)(a,this.params_),this.getRequestUrl_(t,o,i,e,r,a)}},e}(Q);var ha=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ca=function(t){function e(e){var r=this,n=e||{};return r=t.call(this,{opaque:!1,projection:n.projection,tileGrid:n.tileGrid,wrapX:void 0===n.wrapX||n.wrapX,zDirection:n.zDirection,url:n.template||"z:{z} x:{x} y:{y}",tileLoadFunction:function(t,e){var n=t.getTileCoord()[0],i=(0,O.xq)(r.tileGrid.getTileSize(n)),o=(0,Si.Y)(i[0],i[1]);o.strokeStyle="grey",o.strokeRect(.5,.5,i[0]+.5,i[1]+.5),o.fillStyle="grey",o.strokeStyle="white",o.textAlign="center",o.textBaseline="middle",o.font="24px sans-serif",o.lineWidth=4,o.strokeText(e,i[0]/2,i[1]/2,i[0]),o.fillText(e,i[0]/2,i[1]/2,i[0]),t.setImage(o.canvas)}})||this,r}return ha(e,t),e}(ot);const fa=ca;var pa=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const da=function(t){function e(e){var r=this,i=void 0===e.imageSmoothing||e.imageSmoothing;if(void 0!==e.interpolate&&(i=e.interpolate),(r=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:i,projection:(0,A.get)("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:e.zDirection})||this).tileJSON_=null,r.tileSize_=e.tileSize,e.url)if(e.jsonp)et(e.url,r.handleTileJSONResponse.bind(r),r.handleTileJSONError.bind(r));else{var o=new XMLHttpRequest;o.addEventListener("load",r.onXHRLoad_.bind(r)),o.addEventListener("error",r.onXHRError_.bind(r)),o.open("GET",e.url),o.send()}else e.tileJSON?r.handleTileJSONResponse(e.tileJSON):(0,n.v)(!1,51);return r}return pa(e,t),e.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||e.status>=200&&e.status<300){var r=void 0;try{r=JSON.parse(e.responseText)}catch(t){return void this.handleTileJSONError()}this.handleTileJSONResponse(r)}else this.handleTileJSONError()},e.prototype.onXHRError_=function(t){this.handleTileJSONError()},e.prototype.getTileJSON=function(){return this.tileJSON_},e.prototype.handleTileJSONResponse=function(t){var e,r=(0,A.get)("EPSG:4326"),n=this.getProjection();if(void 0!==t.bounds){var i=(0,A.getTransformFromProjections)(r,n);e=(0,o.applyTransform)(t.bounds,i)}var a=U(n),s=t.minzoom||0,l=D({extent:a,maxZoom:t.maxzoom||22,minZoom:s,tileSize:this.tileSize_});if(this.tileGrid=l,this.tileUrlFunction=X(t.tiles,l),void 0!==t.attribution&&!this.getAttributions()){var u=void 0!==e?e:a;this.setAttributions((function(e){return(0,o.intersects)(u,e.extent)?[t.attribution]:null}))}this.tileJSON_=t,this.setState("ready")},e.prototype.handleTileJSONError=function(){this.setState("error")},e}(Q);var ga=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),_a=function(t){function e(e){var r=this,n=e||{},i=void 0===n.imageSmoothing||n.imageSmoothing;void 0!==n.interpolate&&(i=n.interpolate);var a=n.params||{},s=!("TRANSPARENT"in a)||a.TRANSPARENT;return(r=t.call(this,{attributions:n.attributions,attributionsCollapsible:n.attributionsCollapsible,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:i,opaque:!s,projection:n.projection,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileClass:n.tileClass,tileGrid:n.tileGrid,tileLoadFunction:n.tileLoadFunction,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,zDirection:n.zDirection})||this).gutter_=void 0!==n.gutter?n.gutter:0,r.params_=a,r.v13_=!0,r.serverType_=n.serverType,r.hidpi_=void 0===n.hidpi||n.hidpi,r.tmpExtent_=(0,o.createEmpty)(),r.updateV13_(),r.setKey(r.getKeyForParams_()),r}return ga(e,t),e.prototype.getFeatureInfoUrl=function(t,e,r,n){var i=(0,A.get)(r),a=this.getProjection(),s=this.getTileGrid();s||(s=this.getTileGridForProjection(i));var l=s.getZForResolution(e,this.zDirection),u=s.getTileCoordForCoordAndZ(t,l);if(!(s.getResolutions().length<=u[0])){var h=s.getResolution(u[0]),c=s.getTileCoordExtent(u,this.tmpExtent_),f=(0,O.xq)(s.getTileSize(u[0]),this.tmpSize),p=this.gutter_;0!==p&&(f=(0,O.r)(f,p,this.tmpSize),c=(0,o.buffer)(c,h*p,c)),a&&a!==i&&(h=(0,Wi.KQ)(a,i,t,h),c=(0,A.transformExtent)(c,i,a),t=(0,A.transform)(t,i,a));var d={SERVICE:"WMS",VERSION:mo,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};(0,at.kp)(d,this.params_,n);var g=Math.floor((t[0]-c[0])/h),_=Math.floor((c[3]-t[1])/h);return d[this.v13_?"I":"X"]=g,d[this.v13_?"J":"Y"]=_,this.getRequestUrl_(u,f,c,1,a||i,d)}},e.prototype.getLegendUrl=function(t,e){if(void 0!==this.urls[0]){var r={SERVICE:"WMS",VERSION:mo,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===e||void 0===e.LAYER){var n=this.params_.LAYERS;if(!(!Array.isArray(n)||1===n.length))return;r.LAYER=n}if(void 0!==t){var i=this.getProjection()?this.getProjection().getMetersPerUnit():1;r.SCALE=t*i/28e-5}return(0,at.kp)(r,e),io(this.urls[0],r)}},e.prototype.getGutter=function(){return this.gutter_},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,e,r,i,o,a){var s=this.urls;if(s){if(a.WIDTH=e[0],a.HEIGHT=e[1],a[this.v13_?"CRS":"SRS"]=o.getCode(),"STYLES"in this.params_||(a.STYLES=""),1!=i)switch(this.serverType_){case"geoserver":var l=90*i+.5|0;"FORMAT_OPTIONS"in a?a.FORMAT_OPTIONS+=";dpi:"+l:a.FORMAT_OPTIONS="dpi:"+l;break;case"mapserver":a.MAP_RESOLUTION=90*i;break;
vendor: 5,694 bytes, line 8
8case"carmentaserver":case"qgis":a.DPI=90*i;break;default:(0,n.v)(!1,52)}var u,h=o.getAxisOrientation(),c=r;if(this.v13_&&"ne"==h.substr(0,2)){var f=void 0;f=r[0],c[0]=r[1],c[1]=f,f=r[2],c[2]=r[3],c[3]=f}if(a.BBOX=c.join(","),1==s.length)u=s[0];else u=s[(0,T.xP)(p(t),s.length)];return io(u,a)}},e.prototype.getTilePixelRatio=function(t){return this.hidpi_&&void 0!==this.serverType_?t:1},e.prototype.getKeyForParams_=function(){var t=0,e=[];for(var r in this.params_)e[t++]=r+"-"+this.params_[r];return e.join("/")},e.prototype.updateParams=function(t){(0,at.kp)(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())},e.prototype.updateV13_=function(){var t=this.params_.VERSION||mo;this.v13_=(0,vo.Z)(t,"1.3")>=0},e.prototype.tileUrlFunction=function(t,e,r){var n=this.getTileGrid();if(n||(n=this.getTileGridForProjection(r)),!(n.getResolutions().length<=t[0])){1==e||this.hidpi_&&void 0!==this.serverType_||(e=1);var i=n.getResolution(t[0]),a=n.getTileCoordExtent(t,this.tmpExtent_),s=(0,O.xq)(n.getTileSize(t[0]),this.tmpSize),l=this.gutter_;0!==l&&(s=(0,O.r)(s,l,this.tmpSize),a=(0,o.buffer)(a,i*l,a)),1!=e&&(s=(0,O.hs)(s,e,this.tmpSize));var u={SERVICE:"WMS",VERSION:mo,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return(0,at.kp)(u,this.params_),this.getRequestUrl_(t,s,a,e,r,u)}},e}(Q);const ya=_a;var ma=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),va=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r)||this;return s.src_=n,s.extent_=i,s.preemptive_=o,s.grid_=null,s.keys_=null,s.data_=null,s.jsonp_=a,s}return ma(e,t),e.prototype.getImage=function(){return null},e.prototype.getData=function(t){if(!this.grid_||!this.keys_)return null;var e=(t[0]-this.extent_[0])/(this.extent_[2]-this.extent_[0]),r=(t[1]-this.extent_[1])/(this.extent_[3]-this.extent_[1]),n=this.grid_[Math.floor((1-r)*this.grid_.length)];if("string"!=typeof n)return null;var i=n.charCodeAt(Math.floor(e*n.length));i>=93&&i--,i>=35&&i--;var o=null;if((i-=32)in this.keys_){var a=this.keys_[i];o=this.data_&&a in this.data_?this.data_[a]:a}return o},e.prototype.forDataAtCoordinate=function(t,e,r){this.state==y.A.EMPTY&&!0===r?(this.state=y.A.IDLE,(0,Hi.Jz)(this,a.A.CHANGE,(function(r){e(this.getData(t))}),this),this.loadInternal_()):!0===r?setTimeout(function(){e(this.getData(t))}.bind(this),0):e(this.getData(t))},e.prototype.getKey=function(){return this.src_},e.prototype.handleError_=function(){this.state=y.A.ERROR,this.changed()},e.prototype.handleLoad_=function(t){this.grid_=t.grid,this.keys_=t.keys,this.data_=t.data,this.state=y.A.LOADED,this.changed()},e.prototype.loadInternal_=function(){if(this.state==y.A.IDLE)if(this.state=y.A.LOADING,this.jsonp_)et(this.src_,this.handleLoad_.bind(this),this.handleError_.bind(this));else{var t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",this.src_),t.send()}},e.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||e.status>=200&&e.status<300){var r=void 0;try{r=JSON.parse(e.responseText)}catch(t){return void this.handleError_()}this.handleLoad_(r)}else this.handleError_()},e.prototype.onXHRError_=function(t){this.handleError_()},e.prototype.load=function(){this.preemptive_?this.loadInternal_():this.setState(y.A.EMPTY)},e}(gt.A),wa=function(t){function e(e){var r=t.call(this,{projection:(0,A.get)("EPSG:3857"),state:"loading",zDirection:e.zDirection})||this;if(r.preemptive_=void 0===e.preemptive||e.preemptive,r.tileUrlFunction_=W,r.template_=void 0,r.jsonp_=e.jsonp||!1,e.url)if(r.jsonp_)et(e.url,r.handleTileJSONResponse.bind(r),r.handleTileJSONError.bind(r));else{var i=new XMLHttpRequest;i.addEventListener("load",r.onXHRLoad_.bind(r)),i.addEventListener("error",r.onXHRError_.bind(r)),i.open("GET",e.url),i.send()}else e.tileJSON?r.handleTileJSONResponse(e.tileJSON):(0,n.v)(!1,51);return r}return ma(e,t),e.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||e.status>=200&&e.status<300){var r=void 0;try{r=JSON.parse(e.responseText)}catch(t){return void this.handleTileJSONError()}this.handleTileJSONResponse(r)}else this.handleTileJSONError()},e.prototype.onXHRError_=function(t){this.handleTileJSONError()},e.prototype.getTemplate=function(){return this.template_},e.prototype.forDataAtCoordinateAndResolution=function(t,e,r,n){if(this.tileGrid){var i=this.tileGrid.getZForResolution(e,this.zDirection),o=this.tileGrid.getTileCoordForCoordAndZ(t,i);this.getTile(o[0],o[1],o[2],1,this.getProjection()).forDataAtCoordinate(t,r,n)}else!0===n?setTimeout((function(){r(null)}),0):r(null)},e.prototype.handleTileJSONError=function(){this.setState("error")},e.prototype.handleTileJSONResponse=function(t){var e,r=(0,A.get)("EPSG:4326"),n=this.getProjection();if(void 0!==t.bounds){var i=(0,A.getTransformFromProjections)(r,n);e=(0,o.applyTransform)(t.bounds,i)}var a=U(n),s=t.minzoom||0,l=D({extent:a,maxZoom:t.maxzoom||22,minZoom:s});this.tileGrid=l,this.template_=t.template;var u=t.grids;if(u){if(this.tileUrlFunction_=X(u,l),void 0!==t.attribution){var h=void 0!==e?e:a;this.setAttributions((function(e){return(0,o.intersects)(h,e.extent)?[t.attribution]:null}))}this.setState("ready")}else this.setState("error")},e.prototype.getTile=function(t,e,r,n,i){var o=h(t,e,r);
8if(this.tileCache.containsKey(o))return this.tileCache.get(o);var a=[t,e,r],s=this.getTileCoordForTileUrlFunction(a,i),l=this.tileUrlFunction_(s,n,i),u=new va(a,void 0!==l?y.A.IDLE:y.A.EMPTY,void 0!==l?l:"",this.tileGrid.getTileCoordExtent(a),this.preemptive_,this.jsonp_);return this.tileCache.set(o,u),u},e.prototype.useTile=function(t,e,r){var n=h(t,e,r);this.tileCache.containsKey(n)&&this.tileCache.get(n)},e}(z);const xa=wa;var ba=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Ea=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r,a)||this;return s.extent=null,s.format_=i,s.features_=null,s.loader_,s.projection=null,s.resolution,s.tileLoadFunction_=o,s.url_=n,s.key=n,s}return ba(e,t),e.prototype.getFormat=function(){return this.format_},e.prototype.getFeatures=function(){return this.features_},e.prototype.load=function(){this.state==y.A.IDLE&&(this.setState(y.A.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(y.A.ERROR)},e.prototype.setFeatures=function(t){this.features_=t,this.setState(y.A.LOADED)},e.prototype.setLoader=function(t){this.loader_=t},e}(gt.A);var Aa=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Sa=[],Ca=function(t){function e(e,r,n,i){var o=t.call(this,e,r,{transition:0})||this;return o.context_={},o.executorGroups={},o.declutterExecutorGroups={},o.loadingSourceTiles=0,o.hitDetectionImageData={},o.replayState_={},o.sourceTiles=[],o.errorTileKeys={},o.wantedResolution,o.getSourceTiles=i.bind(void 0,o),o.wrappedTileCoord=n,o}return Aa(e,t),e.prototype.getContext=function(t){var e=(0,E.v6)(t);return e in this.context_||(this.context_[e]=(0,Si.Y)(1,1,Sa)),this.context_[e]},e.prototype.hasContext=function(t){return(0,E.v6)(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,E.v6)(t);return e in this.replayState_||(this.replayState_[e]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[e]},e.prototype.load=function(){this.getSourceTiles()},e.prototype.release=function(){for(var e in this.context_){var r=this.context_[e];(0,Si.Yg)(r),Sa.push(r.canvas),delete this.context_[e]}t.prototype.release.call(this)},e}(gt.A);const Ta=Ca;var Pa=r(1142),Ia=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Oa=function(t){function e(e){var r=this,n=e.projection||"EPSG:3857",i=e.extent||U(n),o=e.tileGrid||D({extent:i,maxResolution:e.maxResolution,maxZoom:void 0!==e.maxZoom?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});return(r=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,opaque:!1,projection:n,state:e.state,tileGrid:o,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:La,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:void 0===e.zDirection?1:e.zDirection})||this).format_=e.format?e.format:null,r.sourceTileCache=new _(r.tileCache.highWaterMark),r.overlaps_=null==e.overlaps||e.overlaps,r.tileClass=e.tileClass?e.tileClass:Ea,r.tileGrids_={},r}return Ia(e,t),e.prototype.getFeaturesInExtent=function(t){var e=[],r=this.tileCache;if(0===r.getCount())return e;var n=f(r.peekFirstKey())[0],i=this.tileGrid;return r.forEach((function(r){if(r.tileCoord[0]===n&&r.getState()===y.A.LOADED)for(var a=r.getSourceTiles(),s=0,l=a.length;s<l;++s){var u=a[s],h=u.tileCoord;if((0,o.intersects)(t,i.getTileCoordExtent(h))){var c=u.getFeatures();if(c)for(var f=0,p=c.length;f<p;++f){var d=c[f],g=d.getGeometry();(0,o.intersects)(t,g.getExtent())&&e.push(d)}}}})),e},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.clear=function(){this.tileCache.clear(),this.sourceTileCache.clear()},e.prototype.expireCache=function(e,r){var n=this.getTileCacheForProjection(e),i=Object.keys(r).reduce((function(t,e){var r,i,o=h((i=(r=e).substring(r.lastIndexOf("/")+1,r.length).split(",").map(Number))[0],i[1],i[2]),a=n.peek(o);if(a)for(var s=a.sourceTiles,l=0,u=s.length;l<u;++l)t[s[l].getKey()]=!0;return t}),{});t.prototype.expireCache.call(this,e,r),this.sourceTileCache.expireCache(i)},e.prototype.getSourceTiles=function(t,e,r){var n=this;if(r.getState()===y.A.IDLE){r.setState(y.A.LOADING);var i=r.wrappedTileCoord,s=this.getTileGridForProjection(e),l=s.getTileCoordExtent(i),u=i[0],h=s.getResolution(u);(0,o.buffer)(l,-h,l);var c=this.tileGrid,f=c.getExtent();f&&(0,o.getIntersection)(l,f,l);var p=c.getZForResolution(h,this.zDirection);
8c.forEachTileCoord(l,p,(function(i){var o=n.tileUrlFunction(i,t,e),s=n.sourceTileCache.containsKey(o)?n.sourceTileCache.get(o):new n.tileClass(i,o?y.A.IDLE:y.A.EMPTY,o,n.format_,n.tileLoadFunction);r.sourceTiles.push(s);var l=s.getState();if(l<y.A.LOADED){var u=function(t){n.handleTileChange(t);var e=s.getState();if(e===y.A.LOADED||e===y.A.ERROR){var i=s.getKey();i in r.errorTileKeys?s.getState()===y.A.LOADED&&delete r.errorTileKeys[i]:r.loadingSourceTiles--,e===y.A.ERROR?r.errorTileKeys[i]=!0:s.removeEventListener(a.A.CHANGE,u),0===r.loadingSourceTiles&&r.setState((0,at.Im)(r.errorTileKeys)?y.A.LOADED:y.A.ERROR)}};s.addEventListener(a.A.CHANGE,u),r.loadingSourceTiles++}l===y.A.IDLE&&(s.extent=c.getTileCoordExtent(i),s.projection=e,s.resolution=c.getResolution(i[0]),n.sourceTileCache.set(o,s),s.load())})),r.loadingSourceTiles||r.setState(r.sourceTiles.some((function(t){return t.getState()===y.A.ERROR}))?y.A.ERROR:y.A.LOADED)}return r.sourceTiles},e.prototype.getTile=function(t,e,r,n,i){var a,s=h(t,e,r),l=this.getKey();if(this.tileCache.containsKey(s)&&(a=this.tileCache.get(s)).key===l)return a;var u=[t,e,r],c=this.getTileCoordForTileUrlFunction(u,i),f=this.getTileGrid().getExtent(),p=this.getTileGridForProjection(i);if(c&&f){var d=p.getTileCoordExtent(c);(0,o.buffer)(d,-p.getResolution(t),d),(0,o.intersects)(f,d)||(c=null)}var g=!0;if(null!==c){var _=this.tileGrid,m=p.getResolution(t),v=_.getZForResolution(m,1),w=p.getTileCoordExtent(c);(0,o.buffer)(w,-m,w),_.forEachTileCoord(w,v,function(t){g=g&&!this.tileUrlFunction(t,n,i)}.bind(this))}var x=new Ta(u,g?y.A.EMPTY:y.A.IDLE,c,this.getSourceTiles.bind(this,n,i));return x.key=l,a?(x.interimTile=a,x.refreshInterimChain(),this.tileCache.replace(s,x)):this.tileCache.set(s,x),x},e.prototype.getTileGridForProjection=function(t){var e=t.getCode(),r=this.tileGrids_[e];if(!r){for(var n=this.tileGrid,i=n.getResolutions().slice(),o=i.map((function(t,e){return n.getOrigin(e)})),a=i.map((function(t,e){return n.getTileSize(e)})),s=C.L+1,l=i.length;l<s;++l)i.push(i[l-1]/2),o.push(o[l-1]),a.push(a[l-1]);r=new k({extent:n.getExtent(),origins:o,resolutions:i,tileSizes:a}),this.tileGrids_[e]=r}return r},e.prototype.getTilePixelRatio=function(t){return t},e.prototype.getTilePixelSize=function(t,e,r){var n=this.getTileGridForProjection(r),i=(0,O.xq)(n.getTileSize(t),this.tmpSize);return[Math.round(i[0]*e),Math.round(i[1]*e)]},e.prototype.updateCacheSize=function(e,r){t.prototype.updateCacheSize.call(this,2*e,r),this.sourceTileCache.highWaterMark=this.getTileCacheForProjection(r).highWaterMark},e}(Z);const Ra=Oa;function La(t,e){t.setLoader((function(r,n,i){(0,Pa.m8)(e,t.getFormat(),r,n,i,t.onLoad.bind(t),t.onError.bind(t))}))}var ka=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();!function(t){function e(e){var r=t.call(this,{extent:e.extent,origin:e.origin,origins:e.origins,resolutions:e.resolutions,tileSize:e.tileSize,tileSizes:e.tileSizes,sizes:e.sizes})||this;return r.matrixIds_=e.matrixIds,r}ka(e,t),e.prototype.getMatrixId=function(t){return this.matrixIds_[t]},e.prototype.getMatrixIds=function(){return this.matrixIds_}}(k);var Ma=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Fa=function(t){function e(e){var r=this,n=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(n=e.interpolate);var i=void 0!==e.requestEncoding?e.requestEncoding:"KVP",o=e.tileGrid,a=e.urls;return void 0===a&&void 0!==e.url&&(a=H(e.url)),(r=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:n,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:o,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,urls:a,wrapX:void 0!==e.wrapX&&e.wrapX,transition:e.transition,zDirection:e.zDirection})||this).version_=void 0!==e.version?e.version:"1.0.0",r.format_=void 0!==e.format?e.format:"image/jpeg",r.dimensions_=void 0!==e.dimensions?e.dimensions:{},r.layer_=e.layer,r.matrixSet_=e.matrixSet,r.style_=e.style,r.requestEncoding_=i,r.setKey(r.getKeyForDimensions_()
8),a&&a.length>0&&(r.tileUrlFunction=K(a.map(r.createFromWMTSTemplate.bind(r)))),r}return Ma(e,t),e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.setTileUrlFunction(K(t.map(this.createFromWMTSTemplate.bind(this))),e)},e.prototype.getDimensions=function(){return this.dimensions_},e.prototype.getFormat=function(){return this.format_},e.prototype.getLayer=function(){return this.layer_},e.prototype.getMatrixSet=function(){return this.matrixSet_},e.prototype.getRequestEncoding=function(){return this.requestEncoding_},e.prototype.getStyle=function(){return this.style_},e.prototype.getVersion=function(){return this.version_},e.prototype.getKeyForDimensions_=function(){var t=0,e=[];for(var r in this.dimensions_)e[t++]=r+"-"+this.dimensions_[r];return e.join("/")},e.prototype.updateDimensions=function(t){(0,at.kp)(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},e.prototype.createFromWMTSTemplate=function(t){var e=this.requestEncoding_,r={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};"KVP"==e&&(0,at.kp)(r,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t="KVP"==e?io(t,r):t.replace(/\{(\w+?)\}/g,(function(t,e){return e.toLowerCase()in r?r[e.toLowerCase()]:t}));var n=this.tileGrid,i=this.dimensions_;return function(r,o,a){if(r){var s={TileMatrix:n.getMatrixId(r[0]),TileCol:r[1],TileRow:r[2]};(0,at.kp)(s,i);var l=t;return l="KVP"==e?io(l,s):l.replace(/\{(\w+?)\}/g,(function(t,e){return s[e]}))}}},e}(Q);const Da=Fa;function ja(t,e){var r=new i(32),n=t.getExtent();return function(i,a){r.expireCache(),n&&(i=(0,o.getIntersection)(n,i));var s=t.getZForResolution(a),l=[];return t.forEachTileCoord(i,s,(function(t){var n=t.toString();if(!r.containsKey(n)){var i=e(t);r.set(n,i)}l.push(r.get(n))})),l}}},6444:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n,i=r(4120),o=r(4087),a=r(7083),s=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function l(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}const u=function(t){function e(e){var r=t.call(this)||this;r.projection=(0,a.get)(e.projection),r.attributions_=l(e.attributions),r.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,r.loading=!1,r.state_=void 0!==e.state?e.state:"ready",r.wrapX_=void 0!==e.wrapX&&e.wrapX,r.interpolate_=!!e.interpolate,r.viewResolver=null,r.viewRejector=null;var n=r;return r.viewPromise_=new Promise((function(t,e){n.viewResolver=t,n.viewRejector=e})),r}return s(e,t),e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection},e.prototype.getResolutions=function(){return(0,o.b0)()},e.prototype.getView=function(){return this.viewPromise_},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.getInterpolate=function(){return this.interpolate_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=l(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(i.A)},731:(t,e,r)=>{"use strict";r.d(e,{A:()=>A});var n=r(71),i=r(2135),o=r(1685),a=r(6837),s=r(8450),l=r(5902),u=r(6444),h=r(8280),c=r(4238);r(7083);function f(t,e){return[[-1/0,-1/0,1/0,1/0]]}var p,d=r(588),g=r(915),_=r(6514),y=r(4087),m=r(3530),v=r(9438),w=r(1142),x=(p=function(t,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},p(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),b=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.feature=r,i.features=n,i}return x(e,t),e}(o.Ay),E=function(t){function e(e){var r=this,i=e||{};(r=t.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===i.wrapX||i.wrapX})||this).on,r.once,r.un,r.loader_=c.tV,r.format_=i.format,r.overlaps_=void 0===i.overlaps||i.overlaps,r.url_=i.url,void 0!==i.loader?r.loader_=i.loader:void 0!==r.url_&&((0,d.v)(r.format_,7),r.loader_=(0,w.nF)(r.url_,r.format_)),r.strategy_=void 0!==i.strategy?i.strategy:f;var o,a,s=void 0===i.useSpatialIndex||i.useSpatialIndex;return r.featuresRtree_=s?new l.A:null,r.loadedExtentsRtree_=new l.A,r.loadingExtentsCount_=0,r.nullGeometryFeatures_={}
vendor: 6,194 bytes, line 8
8,r.idIndex_={},r.uidIndex_={},r.featureChangeKeys_={},r.featuresCollection_=null,Array.isArray(i.features)?a=i.features:i.features&&(a=(o=i.features).getArray()),s||void 0!==o||(o=new n.A(a)),void 0!==a&&r.addFeaturesInternal(a),void 0!==o&&r.bindFeaturesCollection_(o),r}return x(e,t),e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var e=(0,y.v6)(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var r=t.getGeometry();if(r){var n=r.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(n,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new b(h.A.ADDFEATURE,t))}else this.featuresCollection_&&this.featuresCollection_.remove(t)},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[(0,v.KT)(e,a.A.CHANGE,this.handleFeatureChange_,this),(0,v.KT)(e,s.A.PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var r=!0,n=e.getId();return void 0!==n&&(n.toString()in this.idIndex_?r=!1:this.idIndex_[n.toString()]=e),r&&((0,d.v)(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),r},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],r=[],n=[],i=0,o=t.length;i<o;i++){var a=t[i],s=(0,y.v6)(a);this.addToIndex_(s,a)&&r.push(a)}i=0;for(var l=r.length;i<l;i++){a=r[i],s=(0,y.v6)(a);this.setupChangeEvents_(s,a);var u=a.getGeometry();if(u){var c=u.getExtent();e.push(c),n.push(a)}else this.nullGeometryFeatures_[s]=a}if(this.featuresRtree_&&this.featuresRtree_.load(e,n),this.hasListener(h.A.ADDFEATURE)){i=0;for(var f=r.length;i<f;i++)this.dispatchEvent(new b(h.A.ADDFEATURE,r[i]))}},e.prototype.bindFeaturesCollection_=function(t){var e=!1;this.addEventListener(h.A.ADDFEATURE,(function(r){e||(e=!0,t.push(r.feature),e=!1)})),this.addEventListener(h.A.REMOVEFEATURE,(function(r){e||(e=!0,t.remove(r.feature),e=!1)})),t.addEventListener(i.A.ADD,function(t){e||(e=!0,this.addFeature(t.element),e=!1)}.bind(this)),t.addEventListener(i.A.REMOVE,function(t){e||(e=!0,this.removeFeature(t.element),e=!1)}.bind(this)),this.featuresCollection_=t},e.prototype.clear=function(t){if(t){for(var e in this.featureChangeKeys_){this.featureChangeKeys_[e].forEach(v.JH)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var r=function(t){this.removeFeatureInternal(t)}.bind(this);for(var n in this.featuresRtree_.forEach(r),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[n])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var i=new b(h.A.CLEAR);this.dispatchEvent(i),this.changed()},e.prototype.forEachFeature=function(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},e.prototype.forEachFeatureAtCoordinateDirect=function(t,e){var r=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(r,(function(r){return r.getGeometry().intersectsCoordinate(t)?e(r):void 0}))},e.prototype.forEachFeatureInExtent=function(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},e.prototype.forEachFeatureIntersectingExtent=function(t,e){return this.forEachFeatureInExtent(t,(function(r){if(r.getGeometry().intersectsExtent(t)){var n=e(r);if(n)return n}}))},e.prototype.getFeaturesCollection=function(){return this.featuresCollection_},e.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),(0,m.Im)(this.nullGeometryFeatures_)||(0,_.X$)(t,(0,m.BI)(this.nullGeometryFeatures_))),t},e.prototype.getFeaturesAtCoordinate=function(t){var e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e},e.prototype.getFeaturesInExtent=function(t,e){var r=this;if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);var n=(0,g.wrapAndSliceX)(t,e);return[].concat.apply([],n.map((function(t){return r.featuresRtree_.getInExtent(t)})))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},e.prototype.getClosestFeatureToCoordinate=function(t,e){var r=t[0],n=t[1],i=null,o=[NaN,NaN],a=1/0,s=[-1/0,-1/0,1/0,1/0],l=e||c.rT;return this.featuresRtree_.forEachInExtent(s,(function(t){if(l(t)){var e=t.getGeometry(),u=a;if((a=e.closestPointXY(r,n,o,a))<u){i=t;var h=Math.sqrt(a);s[0]=r-h,s[1]=n-h,s[2]=r+h,s[3]=n+h}}})),i},e.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},e.prototype.getFeatureById=function(t){var e=this.idIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getFeatureByUid=function(t){var e=this.uidIndex_[t];return void 0!==e?e:null},e.prototype.getFormat=function(){return this.format_},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.getUrl=function(){return this.url_},e.prototype.handleFeatureChange_=function(t){var e=t.target,r=(0,y.v6)(e),n=e.getGeometry();if(n){var i=n.getExtent();r in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[r],this.featuresRtree_&&this.featuresRtree_.insert(i,e)):this.featuresRtree_&&this.featuresRtree_.update(i,e)}else r in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[r]=e);var o=e.getId();if(void 0!==o){var a=o.toString();this.idIndex_[a]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[a]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[r]=e;this.changed(),this.dispatchEvent(new b(h.A.CHANGEFEATURE,e))},e.prototype.hasFeature=function(t){var e=t.getId();return void 0!==e?e in this.idIndex_:(0,y.v6)(t)in this.uidIndex_},e.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&(0,m.Im)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()},e.prototype.loadFeatures=function(t,e,r){for(var n=this.loadedExtentsRtree_,i=this.strategy_(t,e,r),o=function(t,o){var s=i[t];
8n.forEachInExtent(s,(function(t){return(0,g.containsExtent)(t.extent,s)}))||(++a.loadingExtentsCount_,a.dispatchEvent(new b(h.A.FEATURESLOADSTART)),a.loader_.call(a,s,e,r,function(t){--this.loadingExtentsCount_,this.dispatchEvent(new b(h.A.FEATURESLOADEND,void 0,t))}.bind(a),function(){--this.loadingExtentsCount_,this.dispatchEvent(new b(h.A.FEATURESLOADERROR))}.bind(a)),n.insert(s,{extent:s.slice()}))},a=this,s=0,l=i.length;s<l;++s)o(s);this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),t.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var e,r=this.loadedExtentsRtree_;r.forEachInExtent(t,(function(r){if((0,g.equals)(r.extent,t))return e=r,!0})),e&&r.remove(e)},e.prototype.removeFeature=function(t){if(t){var e=(0,y.v6)(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,y.v6)(t),r=this.featureChangeKeys_[e];if(r){r.forEach(v.JH),delete this.featureChangeKeys_[e];var n=t.getId();return void 0!==n&&delete this.idIndex_[n.toString()],delete this.uidIndex_[e],this.dispatchEvent(new b(h.A.REMOVEFEATURE,t)),t}},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var r in this.idIndex_)if(this.idIndex_[r]===t){delete this.idIndex_[r],e=!0;break}return e},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){(0,d.v)(this.format_,7),this.url_=t,this.setLoader((0,w.nF)(t,this.format_))},e}(u.A);const A=E},8280:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},2490:(t,e,r)=>{"use strict";r.r(e),r.d(e,{DEFAULT_RADIUS:()=>i,getArea:()=>u,getDistance:()=>o,getLength:()=>s,offset:()=>h});var n=r(1597),i=6371008.8;function o(t,e,r){var o=r||i,a=(0,n.eh)(t[1]),s=(0,n.eh)(e[1]),l=(s-a)/2,u=(0,n.eh)(e[0]-t[0])/2,h=Math.sin(l)*Math.sin(l)+Math.sin(u)*Math.sin(u)*Math.cos(a)*Math.cos(s);return 2*o*Math.atan2(Math.sqrt(h),Math.sqrt(1-h))}function a(t,e){for(var r=0,n=0,i=t.length;n<i-1;++n)r+=o(t[n],t[n+1],e);return r}function s(t,e){var r=e||{},n=r.radius||i,o=r.projection||"EPSG:3857",l=t.getType();"GeometryCollection"!==l&&(t=t.clone().transform(o,"EPSG:4326"));var u,h,c,f,p,d,g=0;switch(l){case"Point":case"MultiPoint":break;case"LineString":case"LinearRing":g=a(u=t.getCoordinates(),n);break;case"MultiLineString":case"Polygon":for(c=0,f=(u=t.getCoordinates()).length;c<f;++c)g+=a(u[c],n);break;case"MultiPolygon":for(c=0,f=(u=t.getCoordinates()).length;c<f;++c)for(p=0,d=(h=u[c]).length;p<d;++p)g+=a(h[p],n);break;case"GeometryCollection":var _=t.getGeometries();for(c=0,f=_.length;c<f;++c)g+=s(_[c],e);break;default:throw new Error("Unsupported geometry type: "+l)}return g}function l(t,e){for(var r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1];r+=(0,n.eh)(l-o)*(2+Math.sin((0,n.eh)(a))+Math.sin((0,n.eh)(u))),o=l,a=u}return r*e*e/2}function u(t,e){var r=e||{},n=r.radius||i,o=r.projection||"EPSG:3857",a=t.getType();"GeometryCollection"!==a&&(t=t.clone().transform(o,"EPSG:4326"));var s,h,c,f,p,d,g=0;switch(a){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"LinearRing":break;case"Polygon":for(s=t.getCoordinates(),g=Math.abs(l(s[0],n)),c=1,f=s.length;c<f;++c)g-=Math.abs(l(s[c],n));break;case"MultiPolygon":for(c=0,f=(s=t.getCoordinates()).length;c<f;++c)for(h=s[c],g+=Math.abs(l(h[0],n)),p=1,d=h.length;p<d;++p)g-=Math.abs(l(h[p],n));break;case"GeometryCollection":var _=t.getGeometries();for(c=0,f=_.length;c<f;++c)g+=u(_[c],e);break;default:throw new Error("Unsupported geometry type: "+a)}return g}function h(t,e,r,o){var a=o||i,s=(0,n.eh)(t[1]),l=(0,n.eh)(t[0]),u=e/a,h=Math.asin(Math.sin(s)*Math.cos(u)+Math.cos(s)*Math.sin(u)*Math.cos(r)),c=l+Math.atan2(Math.sin(r)*Math.sin(u)*Math.cos(s),Math.cos(u)-Math.sin(s)*Math.sin(h));return[(0,n.xW)(c),(0,n.xW)(h)]}},2806:(t,e,r)=>{"use strict";function n(t,e,r){var n=void 0!==r?t.toFixed(r):""+t,i=n.indexOf(".");
8return(i=-1===i?n.length:i)>e?n:new Array(1+e-i).join("0")+n}function i(t,e){for(var r=(""+t).split("."),n=(""+e).split("."),i=0;i<Math.max(r.length,n.length);i++){var o=parseInt(r[i]||"0",10),a=parseInt(n[i]||"0",10);if(o>a)return 1;if(a>o)return-1}return 0}r.d(e,{H:()=>n,Z:()=>i})},5902:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(5341),i=r(915),o=r(4087),a=r(3530);const s=function(){function t(t){this.rbush_=new n(t),this.items_={}}return t.prototype.insert=function(t,e){var r={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(r),this.items_[(0,o.v6)(e)]=r},t.prototype.load=function(t,e){for(var r=new Array(e.length),n=0,i=e.length;n<i;n++){var a=t[n],s=e[n],l={minX:a[0],minY:a[1],maxX:a[2],maxY:a[3],value:s};r[n]=l,this.items_[(0,o.v6)(s)]=l}this.rbush_.load(r)},t.prototype.remove=function(t){var e=(0,o.v6)(t),r=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(r)},t.prototype.update=function(t,e){var r=this.items_[(0,o.v6)(e)],n=[r.minX,r.minY,r.maxX,r.maxY];(0,i.equals)(n,t)||(this.remove(e),this.insert(t,e))},t.prototype.getAll=function(){return this.rbush_.all().map((function(t){return t.value}))},t.prototype.getInExtent=function(t){var e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(e).map((function(t){return t.value}))},t.prototype.forEach=function(t){return this.forEach_(this.getAll(),t)},t.prototype.forEachInExtent=function(t,e){return this.forEach_(this.getInExtent(t),e)},t.prototype.forEach_=function(t,e){for(var r,n=0,i=t.length;n<i;n++)if(r=e(t[n]))return r;return r},t.prototype.isEmpty=function(){return(0,a.Im)(this.items_)},t.prototype.clear=function(){this.rbush_.clear(),this.items_={}},t.prototype.getExtent=function(t){var e=this.rbush_.toJSON();return(0,i.createOrUpdate)(e.minX,e.minY,e.maxX,e.maxY,t)},t.prototype.concat=function(t){for(var e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]},t}()},7733:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});
8var n,i=r(6936),o=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const a=function(t){function e(e){var r=e||{};return t.call(this,{points:1/0,fill:r.fill,radius:r.radius,stroke:r.stroke,scale:void 0!==r.scale?r.scale:1,rotation:void 0!==r.rotation?r.rotation:0,rotateWithView:void 0!==r.rotateWithView&&r.rotateWithView,displacement:void 0!==r.displacement?r.displacement:[0,0],declutterMode:r.declutterMode})||this}return o(e,t),e.prototype.clone=function(){var t=this.getScale(),r=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return r.setOpacity(this.getOpacity()),r},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(i.A)},3628:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0})},t.prototype.getColor=function(){return this.color_},t.prototype.setColor=function(t){this.color_=t},t}()},9700:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var n,i=r(6837),o=r(5354),a=r(746),s=r(6141),l=r(940),u=r(9352),h=r(588),c=r(7907),f=r(4087),p=(n=function(t,e){return n=Object.
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const d=function(t){function e(e){var r=this,n=e||{},i=void 0!==n.opacity?n.opacity:1,l=void 0!==n.rotation?n.rotation:0,p=void 0!==n.scale?n.scale:1,d=void 0!==n.rotateWithView&&n.rotateWithView;(r=t.call(this,{opacity:i,rotation:l,scale:p,displacement:void 0!==n.displacement?n.displacement:[0,0],rotateWithView:d,declutterMode:n.declutterMode})||this).anchor_=void 0!==n.anchor?n.anchor:[.5,.5],r.normalizedAnchor_=null,r.anchorOrigin_=void 0!==n.anchorOrigin?n.anchorOrigin:a.A.TOP_LEFT,r.anchorXUnits_=void 0!==n.anchorXUnits?n.anchorXUnits:o.A.FRACTION,r.anchorYUnits_=void 0!==n.anchorYUnits?n.anchorYUnits:o.A.FRACTION,r.crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null;var g=void 0!==n.img?n.img:null;r.imgSize_=n.imgSize;var _=n.src;(0,h.v)(!(void 0!==_&&g),4),(0,h.v)(!g||g&&r.imgSize_,5),void 0!==_&&0!==_.length||!g||(_=g.src||(0,f.v6)(g)),(0,h.v)(void 0!==_&&_.length>0,6);var y=void 0!==n.src?s.A.IDLE:s.A.LOADED;return r.color_=void 0!==n.color?(0,u.asArray)(n.color):null,r.iconImage_=(0,c.J)(g,_,void 0!==r.imgSize_?r.imgSize_:null,r.crossOrigin_,y,r.color_),r.offset_=void 0!==n.offset?n.offset:[0,0],r.offsetOrigin_=void 0!==n.offsetOrigin?n.offsetOrigin:a.A.TOP_LEFT,r.origin_=null,r.size_=void 0!==n.size?n.size:null,r}return p(e,t),e.prototype.clone=function(){var t=this.getScale();return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},e.prototype.getAnchor=function(){var t=this.normalizedAnchor_;if(!t){t=this.anchor_;var e=this.getSize();if(this.anchorXUnits_==o.A.FRACTION||this.anchorYUnits_==o.A.FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==o.A.FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==o.A.FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=a.A.TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=a.A.TOP_RIGHT&&this.anchorOrigin_!=a.A.BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=a.A.BOTTOM_LEFT&&this.anchorOrigin_!=a.A.BOTTOM_RIGHT||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}var r=this.getDisplacement();return[t[0]-r[0],t[1]+r[1]]},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=a.A.TOP_LEFT){var e=this.getSize(),r=this.iconImage_.getSize();if(!e||!r)return null;t=t.slice(),this.offsetOrigin_!=a.A.TOP_RIGHT&&this.offsetOrigin_!=a.A.BOTTOM_RIGHT||(t[0]=r[0]-e[0]-t[0]),this.offsetOrigin_!=a.A.BOTTOM_LEFT&&this.offsetOrigin_!=a.A.BOTTOM_RIGHT||(t[1]=r[1]-e[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(i.A.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(i.A.CHANGE,t)},e}(l.A)},5354:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={FRACTION:"fraction",PIXELS:"pixels"}},7907:(t,e,r)=>{"use strict";r.d(e,{J:()=>d});var n,i=r(9332),o=r(6837),a=r(6141),s=r(9352),l=r(8711),u=r(2241),h=r(3938),
vendor: 4,308 bytes, line 8
8c=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),f=null,p=function(t){function e(e,r,n,i,o,a){var s=t.call(this)||this;return s.hitDetectionImage_=null,s.image_=e||new Image,null!==i&&(s.image_.crossOrigin=i),s.canvas_={},s.color_=a,s.unlisten_=null,s.imageState_=o,s.size_=n,s.src_=r,s.tainted_,s}return c(e,t),e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===a.A.LOADED){f||(f=(0,l.Y)(1,1)),f.drawImage(this.image_,0,0);try{f.getImageData(0,0,1,1),this.tainted_=!1}catch(t){f=null,this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(o.A.CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=a.A.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=a.A.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_},e.prototype.getPixelRatio=function(t){return this.replaceColor_(t),this.canvas_[t]?t:1},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var t=this.size_[0],e=this.size_[1],r=(0,l.Y)(t,e);r.fillRect(0,0,t,e),this.hitDetectionImage_=r.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==a.A.IDLE){this.imageState_=a.A.LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=(0,h.f)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(t){if(this.color_&&!this.canvas_[t]&&this.imageState_===a.A.LOADED){var e=document.createElement("canvas");this.canvas_[t]=e,e.width=Math.ceil(this.image_.width*t),e.height=Math.ceil(this.image_.height*t);var r=e.getContext("2d");if(r.scale(t,t),r.drawImage(this.image_,0,0),r.globalCompositeOperation="multiply","multiply"===r.globalCompositeOperation||this.isTainted_())r.fillStyle=(0,s.asString)(this.color_),r.fillRect(0,0,e.width/t,e.height/t),r.globalCompositeOperation="destination-in",r.drawImage(this.image_,0,0);else{for(var n=r.getImageData(0,0,e.width,e.height),i=n.data,o=this.color_[0]/255,l=this.color_[1]/255,u=this.color_[2]/255,h=this.color_[3],c=0,f=i.length;c<f;c+=4)i[c]*=o,i[c+1]*=l,i[c+2]*=u,i[c+3]*=h;r.putImageData(n,0,0)}}},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(i.A);function d(t,e,r,n,i,o){var a=u.shared.get(e,n,o);return a||(a=new p(t,e,r,n,i,o),u.shared.set(e,n,o,a)),a}},2241:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a,shared:()=>s});var n=r(9352),i=function(){function t(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return t.prototype.clear=function(){this.cache_={},this.cacheSize_=0},t.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},t.prototype.expire=function(){if(this.canExpireCache()){var t=0;for(var e in this.cache_){var r=this.cache_[e];3&t++||r.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},t.prototype.get=function(t,e,r){var n=o(t,e,r);return n in this.cache_?this.cache_[n]:null},t.prototype.set=function(t,e,r,n){var i=o(t,e,r);this.cache_[i]=n,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}();function o(t,e,r){return e+":"+t+":"+(r?(0,n.asString)(r):"null")}const a=i;var s=new i},746:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},940:(t,e,r)=>{"use strict";r.d(e,{A:()=>
8o});var n=r(4087),i=r(6782);const o=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,i.xq)(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}return t.prototype.clone=function(){var e=this.getScale();return new t({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},t.prototype.getOpacity=function(){return this.opacity_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getDisplacement=function(){return this.displacement_},t.prototype.getDeclutterMode=function(){return this.declutterMode_},t.prototype.getAnchor=function(){return(0,n.b0)()},t.prototype.getImage=function(t){return(0,n.b0)()},t.prototype.getHitDetectionImage=function(){return(0,n.b0)()},t.prototype.getPixelRatio=function(t){return 1},t.prototype.getImageState=function(){return(0,n.b0)()},t.prototype.getImageSize=function(){return(0,n.b0)()},t.prototype.getOrigin=function(){return(0,n.b0)()},t.prototype.getSize=function(){return(0,n.b0)()},t.prototype.setDisplacement=function(t){this.displacement_=t},t.prototype.setOpacity=function(t){this.opacity_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=(0,i.xq)(t)},t.prototype.listenImageChange=function(t){(0,n.b0)()},t.prototype.load=function(){(0,n.b0)()},t.prototype.unlistenImageChange=function(t){(0,n.b0)()},t}()},6936:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n,i=r(6141),o=r(940),a=r(9352),s=r(7295),l=r(8711),u=r(8774),h=(n=function(t,e){return n=Object.
vendor: 11,443 bytes, line 8
8setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const c=function(t){function e(e){var r=this,n=void 0!==e.rotateWithView&&e.rotateWithView;return(r=t.call(this,{opacity:1,rotateWithView:n,rotation:void 0!==e.rotation?e.rotation:0,scale:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0],declutterMode:e.declutterMode})||this).canvas_=void 0,r.hitDetectionCanvas_=null,r.fill_=void 0!==e.fill?e.fill:null,r.origin_=[0,0],r.points_=e.points,r.radius_=void 0!==e.radius?e.radius:e.radius1,r.radius2_=e.radius2,r.angle_=void 0!==e.angle?e.angle:0,r.stroke_=void 0!==e.stroke?e.stroke:null,r.size_=null,r.renderOptions_=null,r.render(),r}return h(e,t),e.prototype.clone=function(){var t=this.getScale(),r=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return r.setOpacity(this.getOpacity()),r},e.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var e=this.getDisplacement();return[t[0]/2-e[0],t[1]/2+e[1]]},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.setFill=function(t){this.fill_=t,this.render()},e.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},e.prototype.getImage=function(t){var e=this.canvas_[t];if(!e){var r=this.renderOptions_,n=(0,l.Y)(r.size*t,r.size*t);this.draw_(r,n,t),e=n.canvas,this.canvas_[t]=e}return e},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.size_},e.prototype.getImageState=function(){return i.A.LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.setStroke=function(t){this.stroke_=t,this.render()},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.calculateLineJoinSize_=function(t,e,r){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;var n=this.radius_,i=void 0===this.radius2_?n:this.radius2_;if(n<i){var o=n;n=i,i=o}var a=void 0===this.radius2_?this.points_:2*this.points_,s=2*Math.PI/a,l=i*Math.sin(s),u=n-Math.sqrt(i*i-l*l),h=Math.sqrt(l*l+u*u),c=h/l;if("miter"===t&&c<=r)return c*e;var f=e/2/c,p=e/2*(u/h),d=Math.sqrt((n+f)*(n+f)+p*p)-n;if(void 0===this.radius2_||"bevel"===t)return 2*d;var g=n*Math.sin(s),_=i-Math.sqrt(n*n-g*g),y=Math.sqrt(g*g+_*_)/g;if(y<=r){var m=y*e/2-i-n;return 2*Math.max(d,m)}return 2*d},e.prototype.createRenderOptions=function(){var t,e=u._K,r=0,n=null,i=0,o=0;this.stroke_&&(null===(t=this.stroke_.getColor())&&(t=u.NT),t=(0,s.F)(t),void 0===(o=this.stroke_.getWidth())&&(o=u.aq),n=this.stroke_.getLineDash(),i=this.stroke_.getLineDashOffset(),void 0===(e=this.stroke_.getLineJoin())&&(e=u._K),void 0===(r=this.stroke_.getMiterLimit())&&(r=u.eL));var a=this.calculateLineJoinSize_(e,o,r),l=Math.max(this.radius_,this.radius2_||0);return{strokeStyle:t,strokeWidth:o,size:Math.ceil(2*l+a),lineDash:n,lineDashOffset:i,lineJoin:e,miterLimit:r}},e.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var t=this.renderOptions_.size;this.canvas_={},this.size_=[t,t]},e.prototype.draw_=function(t,e,r){if(e.scale(r,r),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){var n=this.fill_.getColor();null===n&&(n=u.qY),e.fillStyle=(0,s.F)(n),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,e.setLineDash&&t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())},e.prototype.createHitDetectionCanvas_=function(t){if(this.fill_){var e=this.fill_.getColor(),r=0;if("string"==typeof e&&(e=(0,a.asArray)(e)),null===e?r=1:Array.isArray(e)&&(r=4===e.length?e[3]:1),0===r){var n=(0,l.Y)(t.size,t.size);this.hitDetectionCanvas_=n.canvas,this.drawHitDetectionCanvas_(t,n)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},e.prototype.createPath_=function(t){var e=this.points_,r=this.radius_;if(e===1/0)t.arc(0,0,r,0,2*Math.PI);else{var n=void 0===this.radius2_?r:this.radius2_;void 0!==this.radius2_&&(e*=2);for(var i=this.angle_-Math.PI/2,o=2*Math.PI/e,a=0;a<e;a++){var s=i+a*o,l=a%2==0?r:n;t.lineTo(l*Math.cos(s),l*Math.sin(s))}t.closePath()}},e.prototype.drawHitDetectionCanvas_=function(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=u.qY,e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())},e}(o.A)},953:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},t.prototype.getColor=function(){return this.color_},t.prototype.getLineCap=function(){return this.lineCap_},t.prototype.getLineDash=function(){return this.lineDash_},t.prototype.getLineDashOffset=function(){return this.lineDashOffset_},t.prototype.getLineJoin=function(){return this.lineJoin_},t.prototype.getMiterLimit=function(){return this.miterLimit_},t.prototype.getWidth=function(){return this.width_},t.prototype.setColor=function(t){this.color_=t},t.prototype.setLineCap=function(t){this.lineCap_=t},t.prototype.setLineDash=function(t){this.lineDash_=t},t.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t},t.prototype.setLineJoin=function(t){this.lineJoin_=t},t.prototype.setMiterLimit=function(t){this.miterLimit_=t},t.prototype.setWidth=function(t){this.width_=t},t}()},9276:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>p,d1:()=>h,mC:()=>l,mY:()=>c});var n=r(7733),i=r(3628),o=r(953),a=r(588),s=function(){function t(t){var e=t||{};this.geometry_=null,this.geometryFunction_=f,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.hitDetectionRenderer_=void 0!==e.hitDetectionRenderer?e.hitDetectionRenderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}return t.prototype.clone=function(){var e=this.getGeometry();return e&&"object"==typeof e&&(e=e.clone()),new t({geometry:e,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.setRenderer=function(t){this.renderer_=t},t.prototype.setHitDetectionRenderer=function(t){this.hitDetectionRenderer_=t},t.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},t.prototype.getGeometry=function(){return this.geometry_},t.prototype.getGeometryFunction=function(){return this.geometryFunction_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(t){this.fill_=t},t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(t){this.image_=t},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.getText=function(){return this.text_},t.prototype.setText=function(t){this.text_=t},t.prototype.getZIndex=function(){return this.zIndex_},t.prototype.setGeometry=function(t){"function"==typeof t?this.geometryFunction_=t:"string"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=f,this.geometry_=t},t.prototype.setZIndex=function(t){this.zIndex_=t},t}();function l(t){var e;if("function"==typeof t)e=t;else{var r;if(Array.isArray(t))r=t;else(0,a.v)("function"==typeof t.getZIndex,41),r=[t];e=function(){return r}}return e}var u=null;function h(t,e){if(!u){var r=new i.A({color:"rgba(255,255,255,0.4)"}),a=new o.A({color:"#3399CC",width:1.25});u=[new s({image:new n.A({fill:r,stroke:a,radius:5}),fill:r,stroke:a})]}return u}function c(){var t={},e=[255,255,255,1],r=[0,153,255,1];return t.Polygon=[new s({fill:new i.A({color:[255,255,255,.5]})})],t.MultiPolygon=t.Polygon,t.LineString=[new s({stroke:new o.A({color:e,width:5})}),new s({stroke:new o.A({color:r,width:3})})],t.MultiLineString=t.LineString,t.Circle=t.Polygon.concat(t.LineString),t.Point=[new s({image:new n.A({radius:6,fill:new i.A({color:r}),stroke:new o.A({color:e,width:1.5})}),zIndex:1/0})],t.MultiPoint=t.Point,t.GeometryCollection=t.Polygon.concat(t.LineString,t.Point),t}function f(t){return t.getGeometry()}const p=s},1426:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(3628),i=r(299),o=r(6782);const a=function(){function t(t){var e=t||{};this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.scaleArray_=(0,o.xq)(void 0!==e.scale?e.scale:1),this.text_=e.text,this.textAlign_=e.textAlign,this.justify_=e.justify,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new n.A({color:"#333"}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:i.A.POINT,this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding}return t.prototype.clone=function(){var e=this.getScale();return new t({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.get
8Stroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},t.prototype.getOverflow=function(){return this.overflow_},t.prototype.getFont=function(){return this.font_},t.prototype.getMaxAngle=function(){return this.maxAngle_},t.prototype.getPlacement=function(){return this.placement_},t.prototype.getOffsetX=function(){return this.offsetX_},t.prototype.getOffsetY=function(){return this.offsetY_},t.prototype.getFill=function(){return this.fill_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.getText=function(){return this.text_},t.prototype.getTextAlign=function(){return this.textAlign_},t.prototype.getJustify=function(){return this.justify_},t.prototype.getTextBaseline=function(){return this.textBaseline_},t.prototype.getBackgroundFill=function(){return this.backgroundFill_},t.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},t.prototype.getPadding=function(){return this.padding_},t.prototype.setOverflow=function(t){this.overflow_=t},t.prototype.setFont=function(t){this.font_=t},t.prototype.setMaxAngle=function(t){this.maxAngle_=t},t.prototype.setOffsetX=function(t){this.offsetX_=t},t.prototype.setOffsetY=function(t){this.offsetY_=t},t.prototype.setPlacement=function(t){this.placement_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setFill=function(t){this.fill_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=(0,o.xq)(void 0!==t?t:1)},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.setText=function(t){this.text_=t},t.prototype.setTextAlign=function(t){this.textAlign_=t},t.prototype.setJustify=function(t){this.justify_=t},t.prototype.setTextBaseline=function(t){this.textBaseline_=t},t.prototype.setBackgroundFill=function(t){this.backgroundFill_=t},t.prototype.setBackgroundStroke=function(t){this.backgroundStroke_=t},t.prototype.setPadding=function(t){this.padding_=t},t}()},299:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={POINT:"point",LINE:"line"}},7115:(t,e,r)=>{"use strict";r.d(e,{L:()=>n,R:()=>i});var n=42,i=256},9703:(t,e,r)=>{"use strict";r.d(e,{Bb:()=>f,T9:()=>m,Tl:()=>_,Zz:()=>y,cL:()=>l,dI:()=>v,e$:()=>p,hs:()=>d,k3:()=>c,lw:()=>u,rQ:()=>g,vt:()=>s});var n,i=r(7771),o=r(588),a=new Array(6);function s(){return[1,0,0,1,0,0]}function l(t){return h(t,1,0,0,1,0,0)}function u(t,e){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=e[0],u=e[1],h=e[2],c=e[3],f=e[4],p=e[5];return t[0]=r*l+i*u,t[1]=n*l+o*u,t[2]=r*h+i*c,t[3]=n*h+o*c,t[4]=r*f+i*p+a,t[5]=n*f+o*p+s,t}function h(t,e,r,n,i,o,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=o,t[5]=a,t}function c(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 f(t,e){var r=e[0],n=e[1];return e[0]=t[0]*r+t[2]*n+t[4],e[1]=t[1]*r+t[3]*n+t[5],e}function p(t,e){var r=Math.cos(e),n=Math.sin(e);return u(t,h(a,r,n,-n,r,0,0))}function d(t,e,r){return u(t,h(a,e,0,0,r,0,0))}function g(t,e,r){return h(t,e,0,0,r,0,0)}function _(t,e,r){return u(t,h(a,1,0,0,1,e,r))}function y(t,e,r,n,i,o,a,s){var l=Math.sin(o),u=Math.cos(o);return t[0]=n*u,t[1]=i*l,t[2]=-n*l,t[3]=i*u,t[4]=a*n*u-s*n*l+e,t[5]=a*i*l+s*i*u+r,t}function m(t,e){var r,n=(r=e)[0]*r[3]-r[1]*r[2];(0,o.v)(0!==n,32);var i=e[0],a=e[1],s=e[2],l=e[3],u=e[4],h=e[5];return t[0]=l/n,t[1]=-a/n,t[2]=-s/n,t[3]=i/n,t[4]=(s*h-l*u)/n,t[5]=-(i*h-a*u)/n,t}function v(t){var e="matrix("+t.join(", ")+")";if(i.Wl)return e;var r=n||(n=document.createElement("div"));return r.style.transform=e,r.style.transform}},4087:(t,e,r)=>{"use strict";function n(){return function(){throw new Error("Unimplemented abstract method.")}()}r.d(e,{b0:()=>n,v6:()=>o,xv:()=>a});var i=0;function o(t){return t.ol_uid||(t.ol_uid=String(++i))}var a="6.15.1"},3075:(t,e,r)=>{"use strict";r.d(e,{UD:()=>_r});function n(t){let e=t.length;for(;--e>=0;)t[e]=0}const i=256,o=286,a=30,s=15,l=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),u=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),c=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=new Array(576);n(f);const p=new Array(60);n(p);const d=new Array(512);n(d);const g=new Array(256);n(g);const _=new Array(29);n(_);const y=new Array(a);function m(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}let v,w,x;function b(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}n(y);const E=t=>t<256?d[t]:d[256+(t>>>7)],A=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},S=(t,e,r)=>{t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,A(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)},C=(t,e,r)=>{S(t,r[2*e],r[2*e+1])},T=(t,e)=>{let r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1},P=(t,e,r)=>{const n=new Array(16);let i,o,a=0;for(i=1;i<=s;i++)a=a+r[i-1]<<1,n[i]=a;for(o=0;o<=e;o++){let e=t[2*o+1];0!==e&&(t[2*o]=T(n[e]++,e))}},I=t=>{let e;for(e=0;e<o;e++)t.dyn_ltree[2*e]=0;for(e=0;e<a;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},O=t=>{t.bi_valid>8?A(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},R=(t,e,r,n)=>{const i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]},L=(t,e,r)=>{const n=t.heap[r];let i=r<<1;for(;i<=t.heap_len&&(i<t.heap_len&&R(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!R(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n},k=(t,e,r)=>{let n,o,a,s,h=0;if(0!==t.sym_next)do{n=255&t.pending_buf[t.sym_buf+h++],n+=(255&t.pending_buf[t.sym_buf+h++])<<8,o=t.pending_buf[t.sym_buf+h++],0===n?C(t,o,e):(a=g[o],C(t,a+i+1,e),s=l[a],0!==s&&(o-=_[a],S(t,o,s)),n--,a=E(n),C(t,a,r),s=u[a],0!==s&&(n-=y[a],S(t,n,s)))}while(h<t.sym_next);C(t,256,e)},M=(t,e)=>{const r=e.dyn_tree,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,o=e.stat_desc.elems;let a,l,u,h=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<o;
vendor: 4,839 bytes, line 8
8a++)0!==r[2*a]?(t.heap[++t.heap_len]=h=a,t.depth[a]=0):r[2*a+1]=0;for(;t.heap_len<2;)u=t.heap[++t.heap_len]=h<2?++h:0,r[2*u]=1,t.depth[u]=0,t.opt_len--,i&&(t.static_len-=n[2*u+1]);for(e.max_code=h,a=t.heap_len>>1;a>=1;a--)L(t,r,a);u=o;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],L(t,r,1),l=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=l,r[2*u]=r[2*a]+r[2*l],t.depth[u]=(t.depth[a]>=t.depth[l]?t.depth[a]:t.depth[l])+1,r[2*a+1]=r[2*l+1]=u,t.heap[1]=u++,L(t,r,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const r=e.dyn_tree,n=e.max_code,i=e.stat_desc.static_tree,o=e.stat_desc.has_stree,a=e.stat_desc.extra_bits,l=e.stat_desc.extra_base,u=e.stat_desc.max_length;let h,c,f,p,d,g,_=0;for(p=0;p<=s;p++)t.bl_count[p]=0;for(r[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)c=t.heap[h],p=r[2*r[2*c+1]+1]+1,p>u&&(p=u,_++),r[2*c+1]=p,c>n||(t.bl_count[p]++,d=0,c>=l&&(d=a[c-l]),g=r[2*c],t.opt_len+=g*(p+d),o&&(t.static_len+=g*(i[2*c+1]+d)));if(0!==_){do{for(p=u-1;0===t.bl_count[p];)p--;t.bl_count[p]--,t.bl_count[p+1]+=2,t.bl_count[u]--,_-=2}while(_>0);for(p=u;0!==p;p--)for(c=t.bl_count[p];0!==c;)f=t.heap[--h],f>n||(r[2*f+1]!==p&&(t.opt_len+=(p-r[2*f+1])*r[2*f],r[2*f+1]=p),c--)}})(t,e),P(r,h,t.bl_count)},F=(t,e,r)=>{let n,i,o=-1,a=e[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<l&&i===a||(s<u?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(l=138,u=3):i===a?(l=6,u=3):(l=7,u=4))},D=(t,e,r)=>{let n,i,o=-1,a=e[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<l&&i===a)){if(s<u)do{C(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(C(t,i,t.bl_tree),s--),C(t,16,t.bl_tree),S(t,s-3,2)):s<=10?(C(t,17,t.bl_tree),S(t,s-3,3)):(C(t,18,t.bl_tree),S(t,s-11,7));s=0,o=i,0===a?(l=138,u=3):i===a?(l=6,u=3):(l=7,u=4)}};let j=!1;const U=(t,e,r,n)=>{S(t,0+(n?1:0),3),O(t),A(t,r),A(t,~r),r&&t.pending_buf.set(t.window.subarray(e,e+r),t.pending),t.pending+=r};var G=(t,e,r,n)=>{let o,a,s=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<i;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),M(t,t.l_desc),M(t,t.d_desc),s=(t=>{let e;for(F(t,t.dyn_ltree,t.l_desc.max_code),F(t,t.dyn_dtree,t.d_desc.max_code),M(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*c[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,a=t.static_len+3+7>>>3,a<=o&&(o=a)):o=a=r+5,r+4<=o&&-1!==e?U(t,e,r,n):4===t.strategy||a===o?(S(t,2+(n?1:0),3),k(t,f,p)):(S(t,4+(n?1:0),3),((t,e,r,n)=>{let i;for(S(t,e-257,5),S(t,r-1,5),S(t,n-4,4),i=0;i<n;i++)S(t,t.bl_tree[2*c[i]+1],3);D(t,t.dyn_ltree,e-1),D(t,t.dyn_dtree,r-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),k(t,t.dyn_ltree,t.dyn_dtree)),I(t),n&&O(t)},N={_tr_init:t=>{j||((()=>{let t,e,r,n,i;const c=new Array(16);for(r=0,n=0;n<28;n++)for(_[n]=r,t=0;t<1<<l[n];t++)g[r++]=n;for(g[r-1]=n,i=0,n=0;n<16;n++)for(y[n]=i,t=0;t<1<<u[n];t++)d[i++]=n;for(i>>=7;n<a;n++)for(y[n]=i<<7,t=0;t<1<<u[n]-7;t++)d[256+i++]=n;for(e=0;e<=s;e++)c[e]=0;for(t=0;t<=143;)f[2*t+1]=8,t++,c[8]++;for(;t<=255;)f[2*t+1]=9,t++,c[9]++;for(;t<=279;)f[2*t+1]=7,t++,c[7]++;for(;t<=287;)f[2*t+1]=8,t++,c[8]++;for(P(f,287,c),t=0;t<a;t++)p[2*t+1]=5,p[2*t]=T(t,5);v=new m(f,l,257,o,s),w=new m(p,u,0,a,s),x=new m(new Array(0),h,0,19,7)})(),j=!0),t.l_desc=new b(t.dyn_ltree,v),t.d_desc=new b(t.dyn_dtree,w),t.bl_desc=new b(t.bl_tree,x),t.bi_buf=0,t.bi_valid=0,I(t)},_tr_stored_block:U,_tr_flush_block:G,_tr_tally:(t,e,r)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=r,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(g[r]+i+1)]++,t.dyn_dtree[2*E(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{S(t,2,3),C(t,256,f),(t=>{16===t.bi_valid?(A(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var B=(t,e,r,n)=>{let i=65535&t,o=t>>>16&65535,a=0;for(;0!==r;){a=r>2e3?2e3:r,r-=a;do{i=i+e[n++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16};const z=new Uint32Array((()=>{let t,e=[];for(var r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e})());var V=(t,e,r,n)=>{const i=z,o=n+r;t^=-1;for(let r=n;r<o;r++)t=t>>>8^i[255&(t^e[r])];return~t},X={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ER
vendor: 9,827 bytes, line 8
8ROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:W,_tr_stored_block:H,_tr_flush_block:Y,_tr_tally:Z,_tr_align:q}=N,{Z_NO_FLUSH:$,Z_PARTIAL_FLUSH:J,Z_FULL_FLUSH:Q,Z_FINISH:tt,Z_BLOCK:et,Z_OK:rt,Z_STREAM_END:nt,Z_STREAM_ERROR:it,Z_DATA_ERROR:ot,Z_BUF_ERROR:at,Z_DEFAULT_COMPRESSION:st,Z_FILTERED:lt,Z_HUFFMAN_ONLY:ut,Z_RLE:ht,Z_FIXED:ct,Z_DEFAULT_STRATEGY:ft,Z_UNKNOWN:pt,Z_DEFLATED:dt}=K,gt=258,_t=262,yt=42,mt=113,vt=666,wt=(t,e)=>(t.msg=X[e],e),xt=t=>2*t-(t>4?9:0),bt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},Et=t=>{let e,r,n,i=t.w_size;e=t.hash_size,n=e;do{r=t.head[--n],t.head[n]=r>=i?r-i:0}while(--e);e=i,n=e;do{r=t.prev[--n],t.prev[n]=r>=i?r-i:0}while(--e)};let At=(t,e,r)=>(e<<t.hash_shift^r)&t.hash_mask;const St=t=>{const e=t.state;let r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+r),t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))},Ct=(t,e)=>{Y(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,St(t.strm)},Tt=(t,e)=>{t.pending_buf[t.pending++]=e},Pt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},It=(t,e,r,n)=>{let i=t.avail_in;return i>n&&(i=n),0===i?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),r),1===t.state.wrap?t.adler=B(t.adler,e,i,r):2===t.state.wrap&&(t.adler=V(t.adler,e,i,r)),t.next_in+=i,t.total_in+=i,i)},Ot=(t,e)=>{let r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match;const l=t.strstart>t.w_size-_t?t.strstart-(t.w_size-_t):0,u=t.window,h=t.w_mask,c=t.prev,f=t.strstart+gt;let p=u[o+a-1],d=u[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(r=e,u[r+a]===d&&u[r+a-1]===p&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&o<f);if(n=gt-(f-o),o=f-gt,n>a){if(t.match_start=e,a=n,n>=s)break;p=u[o+a-1],d=u[o+a]}}}while((e=c[e&h])>l&&0!=--i);return a<=t.lookahead?a:t.lookahead},Rt=t=>{const e=t.w_size;let r,n,i;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-_t)&&(t.window.set(t.window.subarray(e,e+e-n),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),Et(t),n+=e),0===t.strm.avail_in)break;if(r=It(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=r,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=At(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=At(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<_t&&0!==t.strm.avail_in)},Lt=(t,e)=>{let r,n,i,o=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,a=0,s=t.strm.avail_in;do{if(r=65535,i=t.bi_valid+42>>3,t.strm.avail_out<i)break;if(i=t.strm.avail_out-i,n=t.strstart-t.block_start,r>n+t.strm.avail_in&&(r=n+t.strm.avail_in),r>i&&(r=i),r<o&&(0===r&&e!==tt||e===$||r!==n+t.strm.avail_in))break;a=e===tt&&r===n+t.strm.avail_in?1:0,H(t,0,0,a),t.pending_buf[t.pending-4]=r,t.pending_buf[t.pending-3]=r>>8,t.pending_buf[t.pending-2]=~r,t.pending_buf[t.pending-1]=~r>>8,St(t.strm),n&&(n>r&&(n=r),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+n),t.strm.next_out),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n,t.block_start+=n,r-=n),r&&(It(t.strm,t.strm.output,t.strm.next_out,r),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r)}while(0===a);return s-=t.strm.avail_in,s&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),a?4:e!==$&&e!==tt&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(i=t.window_size-t.strstart,t.strm.avail_in>i&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,i+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),i>t.strm.avail_in&&(i=t.strm.avail_in),i&&(It(t.strm,t.window,t.strstart,i),t.strstart+=i,t.insert+=i>t.w_size-t.insert?t.w_size-t.insert:i),t.high_water<t.strstart&&(t.high_water=t.strstart),i=t.bi_valid+42>>3,i=t.pending_buf_size-i>65535?65535:t.pending_buf_size-i,o=i>t.w_size?t.w_size:i,n=t.strstart-t.block_start,(n>=o||(n||e===tt)&&e!==$&&0===t.strm.avail_in&&n<=i)&&(r=n>i?i:n,a=e===tt&&0===t.strm.avail_in&&r===n?1:0,H(t,t.block_start,r,a),t.block_start+=r,St(t.strm)),a?3:1)},kt=(t,e)=>{let r,n;for(;;){if(t.lookahead<_t){if(Rt(t),t.lookahead<_t&&e===$)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=At(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-_t&&(t.match_length=Ot(t,r)),t.match_length>=3)if(n=Z(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=At(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=At(t,t.ins_h,t.window[t.strstart+1]);else n=Z(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===tt?(Ct(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ct(t,!1),0===t.strm.avail_out)?1:2},Mt=(t,e)=>{let r,n,i;for(;;){if(t.lookahead<_t){if(Rt(t),t.lookahead<_t&&e===$)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=At(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-_t&&(t.match_length=Ot(t,r),t.match_length<=5&&(t.strategy===lt||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=Z(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=At(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Ct(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(n=Z(t,0,t.window[t.strstart-1]),n&&Ct(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=Z(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===tt?(Ct(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ct(t,!1),0===t.strm.avail_out)?1:2};function Ft(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}const Dt=[new Ft(0,0,0,0,Lt),new Ft(4,4,8,4,kt),new Ft(4,5,16,8,kt),new Ft(4,6,32,32,kt),new Ft(4,4,16,16,Mt),new Ft(8,16,32,32,Mt),new Ft(8,16,128,128,Mt),new Ft(8,32,128,256,Mt),new Ft(32,128,258,1024,Mt),new Ft(32,258,258,4096,Mt)];function jt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=dt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),bt(this.dyn_ltree),bt(this.dyn_dtree),bt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),bt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ut=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==yt&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&e.status!==mt&&e.status!==vt?1:0},Gt=t=>{if(Ut(t))return wt(t,it);t.total_in=t.total_out=0,t.data_type=pt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?yt:mt,t.adler=2===e.wrap?0:1,e.last_flush=-2,W(e),rt},Nt=t=>{const e=Gt(t);var r;return e===rt&&((r=t.state).window_size=2*r.w_size,bt(r.head),r.max_lazy_match=Dt[r.level].max_lazy,r.good_match=Dt[r.level].good_length,r.nice_match=Dt[r.level].nice_length,r.max_chain_length=Dt[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=2,r.match_available=0,r.ins_h=0),e},Bt=(t,e,r,n,i,o)=>
vendor: 2,940 bytes, line 8
8{if(!t)return it;let a=1;if(e===st&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>9||r!==dt||n<8||n>15||e<0||e>9||o<0||o>ct||8===n&&1!==a)return wt(t,it);8===n&&(n=9);const s=new jt;return t.state=s,s.strm=t,s.status=yt,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=e,s.strategy=o,s.method=r,Nt(t)};var zt={deflateInit:(t,e)=>Bt(t,e,dt,15,8,ft),deflateInit2:Bt,deflateReset:Nt,deflateResetKeep:Gt,deflateSetHeader:(t,e)=>Ut(t)||2!==t.state.wrap?it:(t.state.gzhead=e,rt),deflate:(t,e)=>{if(Ut(t)||e>et||e<0)return t?wt(t,it):it;const r=t.state;if(!t.output||0!==t.avail_in&&!t.input||r.status===vt&&e!==tt)return wt(t,0===t.avail_out?at:it);const n=r.last_flush;if(r.last_flush=e,0!==r.pending){if(St(t),0===t.avail_out)return r.last_flush=-1,rt}else if(0===t.avail_in&&xt(e)<=xt(n)&&e!==tt)return wt(t,at);if(r.status===vt&&0!==t.avail_in)return wt(t,at);if(r.status===yt&&0===r.wrap&&(r.status=mt),r.status===yt){let e=dt+(r.w_bits-8<<4)<<8,n=-1;if(n=r.strategy>=ut||r.level<2?0:r.level<6?1:6===r.level?2:3,e|=n<<6,0!==r.strstart&&(e|=32),e+=31-e%31,Pt(r,e),0!==r.strstart&&(Pt(r,t.adler>>>16),Pt(r,65535&t.adler)),t.adler=1,r.status=mt,St(t),0!==r.pending)return r.last_flush=-1,rt}if(57===r.status)if(t.adler=0,Tt(r,31),Tt(r,139),Tt(r,8),r.gzhead)Tt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Tt(r,255&r.gzhead.time),Tt(r,r.gzhead.time>>8&255),Tt(r,r.gzhead.time>>16&255),Tt(r,r.gzhead.time>>24&255),Tt(r,9===r.level?2:r.strategy>=ut||r.level<2?4:0),Tt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Tt(r,255&r.gzhead.extra.length),Tt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=V(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69;else if(Tt(r,0),Tt(r,0),Tt(r,0),Tt(r,0),Tt(r,0),Tt(r,9===r.level?2:r.strategy>=ut||r.level<2?4:0),Tt(r,3),r.status=mt,St(t),0!==r.pending)return r.last_flush=-1,rt;if(69===r.status){if(r.gzhead.extra){let e=r.pending,n=(65535&r.gzhead.extra.length)-r.gzindex;for(;r.pending+n>r.pending_buf_size;){let i=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+i),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>e&&(t.adler=V(t.adler,r.pending_buf,r.pending-e,e)),r.gzindex+=i,St(t),0!==r.pending)return r.last_flush=-1,rt;e=0,n-=i}let i=new Uint8Array(r.gzhead.extra);r.pending_buf.set(i.subarray(r.gzindex,r.gzindex+n),r.pending),r.pending+=n,r.gzhead.hcrc&&r.pending>e&&(t.adler=V(t.adler,r.pending_buf,r.pending-e,e)),r.gzindex=0}r.status=73}
vendor: 8,695 bytes, line 8
8if(73===r.status){if(r.gzhead.name){let e,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(t.adler=V(t.adler,r.pending_buf,r.pending-n,n)),St(t),0!==r.pending)return r.last_flush=-1,rt;n=0}e=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Tt(r,e)}while(0!==e);r.gzhead.hcrc&&r.pending>n&&(t.adler=V(t.adler,r.pending_buf,r.pending-n,n)),r.gzindex=0}r.status=91}if(91===r.status){if(r.gzhead.comment){let e,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(t.adler=V(t.adler,r.pending_buf,r.pending-n,n)),St(t),0!==r.pending)return r.last_flush=-1,rt;n=0}e=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Tt(r,e)}while(0!==e);r.gzhead.hcrc&&r.pending>n&&(t.adler=V(t.adler,r.pending_buf,r.pending-n,n))}r.status=103}if(103===r.status){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(St(t),0!==r.pending))return r.last_flush=-1,rt;Tt(r,255&t.adler),Tt(r,t.adler>>8&255),t.adler=0}if(r.status=mt,St(t),0!==r.pending)return r.last_flush=-1,rt}if(0!==t.avail_in||0!==r.lookahead||e!==$&&r.status!==vt){let n=0===r.level?Lt(r,e):r.strategy===ut?((t,e)=>{let r;for(;;){if(0===t.lookahead&&(Rt(t),0===t.lookahead)){if(e===$)return 1;break}if(t.match_length=0,r=Z(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(Ct(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ct(t,!1),0===t.strm.avail_out)?1:2})(r,e):r.strategy===ht?((t,e)=>{let r,n,i,o;const a=t.window;for(;;){if(t.lookahead<=gt){if(Rt(t),t.lookahead<=gt&&e===$)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(i=t.strstart-1,n=a[i],n===a[++i]&&n===a[++i]&&n===a[++i])){o=t.strstart+gt;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);t.match_length=gt-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=Z(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=Z(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(Ct(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ct(t,!1),0===t.strm.avail_out)?1:2})(r,e):Dt[r.level].func(r,e);if(3!==n&&4!==n||(r.status=vt),1===n||3===n)return 0===t.avail_out&&(r.last_flush=-1),rt;if(2===n&&(e===J?q(r):e!==et&&(H(r,0,0,!1),e===Q&&(bt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),St(t),0===t.avail_out))return r.last_flush=-1,rt}return e!==tt?rt:r.wrap<=0?nt:(2===r.wrap?(Tt(r,255&t.adler),Tt(r,t.adler>>8&255),Tt(r,t.adler>>16&255),Tt(r,t.adler>>24&255),Tt(r,255&t.total_in),Tt(r,t.total_in>>8&255),Tt(r,t.total_in>>16&255),Tt(r,t.total_in>>24&255)):(Pt(r,t.adler>>>16),Pt(r,65535&t.adler)),St(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?rt:nt)},deflateEnd:t=>{if(Ut(t))return it;const e=t.state.status;return t.state=null,e===mt?wt(t,ot):rt},deflateSetDictionary:(t,e)=>{let r=e.length;if(Ut(t))return it;const n=t.state,i=n.wrap;if(2===i||1===i&&n.status!==yt||n.lookahead)return it;if(1===i&&(t.adler=B(t.adler,e,r,0)),n.wrap=0,r>=n.w_size){0===i&&(bt(n.head),n.strstart=0,n.block_start=0,n.insert=0);let t=new Uint8Array(n.w_size);t.set(e.subarray(r-n.w_size,r),0),e=t,r=n.w_size}const o=t.avail_in,a=t.next_in,s=t.input;for(t.avail_in=r,t.next_in=0,t.input=e,Rt(n);n.lookahead>=3;){let t=n.strstart,e=n.lookahead-2;do{n.ins_h=At(n,n.ins_h,n.window[t+3-1]),n.prev[t&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=t,t++}while(--e);n.strstart=t,n.lookahead=2,Rt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=a,t.input=s,t.avail_in=o,n.wrap=i,rt},deflateInfo:"pako deflate (from Nodeca project)"};const Vt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Xt={assign:function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(const e in r)Vt(r,e)&&(t[e]=r[e])}}return t},flattenChunks:t=>{let e=0;for(let r=0,n=t.length;r<n;r++)e+=t[r].length;const r=new Uint8Array(e);for(let e=0,n=0,i=t.length;e<i;e++){let i=t[e];r.set(i,n),n+=i.length}return r}};let Kt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Kt=!1}const Wt=new Uint8Array(256);for(let t=0;t<256;t++)Wt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Wt[254]=Wt[254]=1;var Ht={string2buf:t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,r,n,i,o,a=t.length,s=0;for(i=0;i<a;i++)r=t.charCodeAt(i),55296==(64512&r)&&i+1<a&&(n=t.charCodeAt(i+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Uint8Array(s),o=0,i=0;o<s;i++)r=t.charCodeAt(i),55296==(64512&r)&&i+1<a&&(n=t.charCodeAt(i+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|63&r):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|63&r):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|63&r);return e},buf2string:(t,e)=>{const r=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let n,i;const o=new Array(2*r);for(i=0,n=0;n<r;){let e=t[n++];if(e<128){o[i++]=e;continue}let a=Wt[e];if(a>4)o[i++]=65533,n+=a-1;else{for(e&=2===a?31:3===a?15:7;a>1&&n<r;)e=e<<6|63&t[n++],a--;a>1?o[i++]=65533:e<65536?o[i++]=e:(e-=65536,o[i++]=55296|e>>10&1023,o[i++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Kt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let r="";for(let n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r})(o,i)},utf8border:(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let r=e-1;for(;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+Wt[t[r]]>e?r:e}};var Yt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Zt=Object.prototype.toString,{Z_NO_FLUSH:qt,Z_SYNC_FLUSH:$t,Z_FULL_FLUSH:Jt,Z_FINISH:Qt,Z_OK:te,Z_STREAM_END:ee,Z_DEFAULT_COMPRESSION:re,Z_DEFAULT_STRATEGY:ne,Z_DEFLATED:ie}=K;function oe(t){this.options=Xt.assign({level:re,method:ie,chunkSize:16384,windowBits:15,memLevel:8,strategy:ne},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Yt,this.strm.avail_out=0;let r=zt.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==te)throw new Error(X[r]);if(e.header&&zt.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Ht.string2buf(e.dictionary):"[object ArrayBuffer]"===Zt.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,r=zt.deflateSetDictionary(this.strm,t),r!==te)throw new Error(X[r]);this._dict_set=!0}}function ae(t,e){const r=new oe(e);if(r.push(t,!0),r.err)throw r.msg||X[r.err];return r.result}oe.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize;let i,o;if(this.ended)return!1;for(o=e===~~e?e:!0===e?Qt:qt,"string"==typeof t?r.input=Ht.string2buf(t):"[object ArrayBuffer]"===Zt.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(o===$t||o===Jt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(i=zt.deflate(r,o),i===ee)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=zt.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===te;if(0!==r.avail_out){if(o>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},oe.prototype.onData=function(t){this.chunks.push(t)},oe.prototype.onEnd=function(t){t===te&&(this.result=Xt.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var se={Deflate:oe,deflate:ae,deflateRaw:function(t,e){return(e=e||{}).raw=!0,ae(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,ae(t,e)},constants:K};const le=16209;var ue=function(t,e){let r,n,i,o,a,s,l,u,h,c,f,p,d,g,_,y,m,v,w,x,b,E,A,S;const C=t.state;r=t.next_in,A=t.input,n=r+(t.avail_in-5),i=t.next_out,S=t.output,o=i-(e-t.avail_out),a=i+(t.avail_out-257),s=C.dmax,l=C.wsize,u=C.whave,h=C.wnext,c=C.window,f=C.hold,p=C.bits,d=C.lencode,g=C.distcode,_=(1<<C.lenbits)-1,y=(1<<C.distbits)-1;
vendor: 4,827 bytes, line 8
8t:do{p<15&&(f+=A[r++]<<p,p+=8,f+=A[r++]<<p,p+=8),m=d[f&_];e:for(;;){if(v=m>>>24,f>>>=v,p-=v,v=m>>>16&255,0===v)S[i++]=65535&m;else{if(!(16&v)){if(64&v){if(32&v){C.mode=16191;break t}t.msg="invalid literal/length code",C.mode=le;break t}m=d[(65535&m)+(f&(1<<v)-1)];continue e}for(w=65535&m,v&=15,v&&(p<v&&(f+=A[r++]<<p,p+=8),w+=f&(1<<v)-1,f>>>=v,p-=v),p<15&&(f+=A[r++]<<p,p+=8,f+=A[r++]<<p,p+=8),m=g[f&y];;){if(v=m>>>24,f>>>=v,p-=v,v=m>>>16&255,16&v){if(x=65535&m,v&=15,p<v&&(f+=A[r++]<<p,p+=8,p<v&&(f+=A[r++]<<p,p+=8)),x+=f&(1<<v)-1,x>s){t.msg="invalid distance too far back",C.mode=le;break t}if(f>>>=v,p-=v,v=i-o,x>v){if(v=x-v,v>u&&C.sane){t.msg="invalid distance too far back",C.mode=le;break t}if(b=0,E=c,0===h){if(b+=l-v,v<w){w-=v;do{S[i++]=c[b++]}while(--v);b=i-x,E=S}}else if(h<v){if(b+=l+h-v,v-=h,v<w){w-=v;do{S[i++]=c[b++]}while(--v);if(b=0,h<w){v=h,w-=v;do{S[i++]=c[b++]}while(--v);b=i-x,E=S}}}else if(b+=h-v,v<w){w-=v;do{S[i++]=c[b++]}while(--v);b=i-x,E=S}for(;w>2;)S[i++]=E[b++],S[i++]=E[b++],S[i++]=E[b++],w-=3;w&&(S[i++]=E[b++],w>1&&(S[i++]=E[b++]))}else{b=i-x;do{S[i++]=S[b++],S[i++]=S[b++],S[i++]=S[b++],w-=3}while(w>2);w&&(S[i++]=S[b++],w>1&&(S[i++]=S[b++]))}break}if(64&v){t.msg="invalid distance code",C.mode=le;break t}m=g[(65535&m)+(f&(1<<v)-1)]}}break}}while(r<n&&i<a);w=p>>3,r-=w,p-=w<<3,f&=(1<<p)-1,t.next_in=r,t.next_out=i,t.avail_in=r<n?n-r+5:5-(r-n),t.avail_out=i<a?a-i+257:257-(i-a),C.hold=f,C.bits=p};const he=15,ce=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),fe=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),pe=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),de=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ge=(t,e,r,n,i,o,a,s)=>{const l=s.bits;let u,h,c,f,p,d,g=0,_=0,y=0,m=0,v=0,w=0,x=0,b=0,E=0,A=0,S=null;const C=new Uint16Array(16),T=new Uint16Array(16);let P,I,O,R=null;for(g=0;g<=he;g++)C[g]=0;for(_=0;_<n;_++)C[e[r+_]]++;for(v=l,m=he;m>=1&&0===C[m];m--);if(v>m&&(v=m),0===m)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(y=1;y<m&&0===C[y];y++);for(v<y&&(v=y),b=1,g=1;g<=he;g++)if(b<<=1,b-=C[g],b<0)return-1;if(b>0&&(0===t||1!==m))return-1;for(T[1]=0,g=1;g<he;g++)T[g+1]=T[g]+C[g];for(_=0;_<n;_++)0!==e[r+_]&&(a[T[e[r+_]]++]=_);if(0===t?(S=R=a,d=20):1===t?(S=ce,R=fe,d=257):(S=pe,R=de,d=0),A=0,_=0,g=y,p=o,w=v,x=0,c=-1,E=1<<v,f=E-1,1===t&&E>852||2===t&&E>592)return 1;for(;;){P=g-x,a[_]+1<d?(I=0,O=a[_]):a[_]>=d?(I=R[a[_]-d],O=S[a[_]-d]):(I=96,O=0),u=1<<g-x,h=1<<w,y=h;do{h-=u,i[p+(A>>x)+h]=P<<24|I<<16|O}while(0!==h);for(u=1<<g-1;A&u;)u>>=1;if(0!==u?(A&=u-1,A+=u):A=0,_++,0==--C[g]){if(g===m)break;g=e[r+a[_]]}if(g>v&&(A&f)!==c){for(0===x&&(x=v),p+=y,w=g-x,b=1<<w;w+x<m&&(b-=C[w+x],!(b<=0));)w++,b<<=1;if(E+=1<<w,1===t&&E>852||2===t&&E>592)return 1;c=A&f,i[c]=v<<24|w<<16|p-o}}return 0!==A&&(i[p+A]=g-x<<24|64<<16),s.bits=v,0};const{Z_FINISH:_e,Z_BLOCK:ye,Z_TREES:me,Z_OK:ve,Z_STREAM_END:we,Z_NEED_DICT:xe,Z_STREAM_ERROR:be,Z_DATA_ERROR:Ee,Z_MEM_ERROR:Ae,Z_BUF_ERROR:Se,Z_DEFLATED:Ce}=K,Te=16180,Pe=16190,Ie=16191,Oe=16192,Re=16194,Le=16199,ke=16200,Me=16206,Fe=16209,De=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function je(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ue=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<Te||e.mode>16211?1:0},Ge=t=>{if(Ue(t))return be;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=Te,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,ve},Ne=t=>{if(Ue(t))return be;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,Ge(t)},Be=(t,e)=>{let r;if(Ue(t))return be;const n=t.state;return e<0?(r=0,e=-e):(r=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?be:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,Ne(t))},ze=(t,e)=>{if(!t)return be;const r=new je;t.state=r,r.strm=t,r.window=null,r.mode=Te;const n=Be(t,e);return n!==ve&&(t.state=null),n};let Ve,Xe,Ke=!0;const We=t=>{if(Ke){Ve=new Int32Array(512),Xe=new Int32Array(32);let e=0;for(;e<144;
vendor: 9,078 bytes, line 8
8)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ge(1,t.lens,0,288,Ve,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ge(2,t.lens,0,32,Xe,0,t.work,{bits:5}),Ke=!1}t.lencode=Ve,t.lenbits=9,t.distcode=Xe,t.distbits=5},He=(t,e,r,n)=>{let i;const o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),n>=o.wsize?(o.window.set(e.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>n&&(i=n),o.window.set(e.subarray(r-n,r-n+i),o.wnext),(n-=i)?(o.window.set(e.subarray(r-n,r),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0};var Ye={inflateReset:Ne,inflateReset2:Be,inflateResetKeep:Ge,inflateInit:t=>ze(t,15),inflateInit2:ze,inflate:(t,e)=>{let r,n,i,o,a,s,l,u,h,c,f,p,d,g,_,y,m,v,w,x,b,E,A=0;const S=new Uint8Array(4);let C,T;const P=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ue(t)||!t.output||!t.input&&0!==t.avail_in)return be;r=t.state,r.mode===Ie&&(r.mode=Oe),a=t.next_out,i=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,u=r.hold,h=r.bits,c=s,f=l,E=ve;t:for(;;)switch(r.mode){case Te:if(0===r.wrap){r.mode=Oe;break}for(;h<16;){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}if(2&r.wrap&&35615===u){0===r.wbits&&(r.wbits=15),r.check=0,S[0]=255&u,S[1]=u>>>8&255,r.check=V(r.check,S,2,0),u=0,h=0,r.mode=16181;break}if(r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){t.msg="incorrect header check",r.mode=Fe;break}if((15&u)!==Ce){t.msg="unknown compression method",r.mode=Fe;break}if(u>>>=4,h-=4,b=8+(15&u),0===r.wbits&&(r.wbits=b),b>15||b>r.wbits){t.msg="invalid window size",r.mode=Fe;break}r.dmax=1<<r.wbits,r.flags=0,t.adler=r.check=1,r.mode=512&u?16189:Ie,u=0,h=0;break;case 16181:for(;h<16;){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}if(r.flags=u,(255&r.flags)!==Ce){t.msg="unknown compression method",r.mode=Fe;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=Fe;break}r.head&&(r.head.text=u>>8&1),512&r.flags&&4&r.wrap&&(S[0]=255&u,S[1]=u>>>8&255,r.check=V(r.check,S,2,0)),u=0,h=0,r.mode=16182;case 16182:for(;h<32;){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}r.head&&(r.head.time=u),512&r.flags&&4&r.wrap&&(S[0]=255&u,S[1]=u>>>8&255,S[2]=u>>>16&255,S[3]=u>>>24&255,r.check=V(r.check,S,4,0)),u=0,h=0,r.mode=16183;case 16183:for(;h<16;){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}r.head&&(r.head.xflags=255&u,r.head.os=u>>8),512&r.flags&&4&r.wrap&&(S[0]=255&u,S[1]=u>>>8&255,r.check=V(r.check,S,2,0)),u=0,h=0,r.mode=16184;case 16184:if(1024&r.flags){for(;h<16;){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}r.length=u,r.head&&(r.head.extra_len=u),512&r.flags&&4&r.wrap&&(S[0]=255&u,S[1]=u>>>8&255,r.check=V(r.check,S,2,0)),u=0,h=0}else r.head&&(r.head.extra=null);r.mode=16185;case 16185:if(1024&r.flags&&(p=r.length,p>s&&(p=s),p&&(r.head&&(b=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(o,o+p),b)),512&r.flags&&4&r.wrap&&(r.check=V(r.check,n,p,o)),s-=p,o+=p,r.length-=p),r.length))break t;r.length=0,r.mode=16186;case 16186:if(2048&r.flags){if(0===s)break t;p=0;do{b=n[o+p++],r.head&&b&&r.length<65536&&(r.head.name+=String.fromCharCode(b))}while(b&&p<s);if(512&r.flags&&4&r.wrap&&(r.check=V(r.check,n,p,o)),s-=p,o+=p,b)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=16187;case 16187:if(4096&r.flags){if(0===s)break t;p=0;do{b=n[o+p++],r.head&&b&&r.length<65536&&(r.head.comment+=String.fromCharCode(b))}while(b&&p<s);if(512&r.flags&&4&r.wrap&&(r.check=V(r.check,n,p,o)),s-=p,o+=p,b)break t}else r.head&&(r.head.comment=null);r.mode=16188;case 16188:if(512&r.flags){for(;h<16;){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}if(4&r.wrap&&u!==(65535&r.check)){t.msg="header crc mismatch",r.mode=Fe;break}u=0,h=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=Ie;break;case 16189:for(;h<32;){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}t.adler=r.check=De(u),u=0,h=0,r.mode=Pe;case Pe:if(0===r.havedict)return t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=u,r.bits=h,xe;t.adler=r.check=1,r.mode=Ie;case Ie:if(e===ye||e===me)break t;case Oe:if(r.last){u>>>=7&h,h-=7&h,r.mode=Me;break}for(;h<3;){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}switch(r.last=1&u,u>>>=1,h-=1,3&u){case 0:r.mode=16193;break;case 1:if(We(r),r.mode=Le,e===me){u>>>=2,h-=2;break t}break;case 2:r.mode=16196;break;case 3:t.msg="invalid block type",r.mode=Fe}u>>>=2,h-=2;break;case 16193:for(u>>>=7&h,h-=7&h;h<32;){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}if((65535&u)!=(u>>>16^65535)){t.msg="invalid stored block lengths",r.mode=Fe;break}if(r.length=65535&u,u=0,h=0,r.mode=Re,e===me)break t;case Re:r.mode=16195;case 16195:if(p=r.length,p){if(p>s&&(p=s),p>l&&(p=l),0===p)break t;i.set(n.subarray(o,o+p),a),s-=p,o+=p,l-=p,a+=p,r.length-=p;break}r.mode=Ie;break;case 16196:for(;h<14;){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}if(r.nlen=257+(31&u),u>>>=5,h-=5,r.ndist=1+(31&u),u>>>=5,h-=5,r.ncode=4+(15&u),u>>>=4,h-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=Fe;break}r.have=0,r.mode=16197;case 16197:for(;r.have<r.ncode;){for(;h<3;){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}r.lens[P[r.have++]]=7&u,u>>>=3,h-=3}for(;r.have<19;)r.lens[P[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},E=ge(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,E){t.msg="invalid code lengths set",r.mode=Fe;break}r.have=0,r.mode=16198;case 16198:for(;r.have<r.nlen+r.ndist;){for(;A=r.lencode[u&(1<<r.lenbits)-1],_=A>>>24,y=A>>>16&255,m=65535&A,!(_<=h);){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}if(m<16)u>>>=_,h-=_,r.lens[r.have++]=m;else{if(16===m){for(T=_+2;h<T;){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}if(u>>>=_,h-=_,0===r.have){t.msg="invalid bit length repeat",r.mode=Fe;break}b=r.lens[r.have-1],p=3+(3&u),u>>>=2,h-=2}else if(17===m){for(T=_+3;h<T;){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}u>>>=_,h-=_,b=0,p=3+(7&u),u>>>=3,h-=3}else{for(T=_+7;h<T;){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}u>>>=_,h-=_,b=0,p=11+(127&u),u>>>=7,h-=7}if(r.have+p>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=Fe;break}for(;p--;)r.lens[r.have++]=b}}if(r.mode===Fe)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=Fe;break}if(r.lenbits=9,C={bits:r.lenbits},E=ge(1,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,E){t.msg="invalid literal/lengths set",r.mode=Fe;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},E=ge(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,E){t.msg="invalid distances set",r.mode=Fe;break}if(r.mode=Le,e===me)break t;case Le:r.mode=ke;case ke:if(s>=6&&l>=258){t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=u,r.bits=h,ue(t,f),a=t.next_out,i=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,u=r.hold,h=r.bits,r.mode===Ie&&(r.back=-1);break}for(r.back=0;A=r.lencode[u&(1<<r.lenbits)-1],_=A>>>24,y=A>>>16&255,m=65535&A,!(_<=h);){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}if(y&&!(240&y)){for(v=_,w=y,x=m;A=r.lencode[x+((u&(1<<v+w)-1)>>v)],_=A>>>24,y=A>>>16&255,m=65535&A,!(v+_<=h);){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}u>>>=v,h-=v,r.back+=v}if(u>>>=_,h-=_,r.back+=_,r.length=m,0===y){r.mode=16205;break}if(32&y){r.back=-1,r.mode=Ie;break}if(64&y){t.msg="invalid literal/length code",r.mode=Fe;break}r.extra=15&y,r.mode=16201;case 16201:if(r.extra){for(T=r.extra;h<T;){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,h-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=16202;case 16202:for(;A=r.distcode[u&(1<<r.distbits)-1],_=A>>>24,y=A>>>16&255,m=65535&A,!(_<=h);){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}if(!(240&y)){for(v=_,w=y,x=m;A=r.distcode[x+((u&(1<<v+w)-1)>>v)],_=A>>>24,y=A>>>16&255,m=65535&A,!(v+_<=h);){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}u>>>=v,h-=v,r.back+=v}if(u>>>=_,h-=_,r.back+=_,64&y){t.msg="invalid distance code",r.mode=Fe;break}r.offset=m,r.extra=15&y,r.mode=16203;case 16203:if(r.extra){for(T=r.extra;h<T;){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,h-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=Fe;break}r.mode=16204;case 16204:if(0===l)break t;if(p=f-l,r.offset>p){if(p=r.offset-p,p>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=Fe;break}p>r.wnext?(p-=r.wnext,d=r.wsize-p):d=r.wnext-p,p>r.length&&(p=r.length),g=r.window}else g=i,d=a-r.offset,p=r.length;p>l&&(p=l),l-=p,r.length-=p;do{i[a++]=g[d++]}while(--p);0===r.length&&(r.mode=ke);break;case 16205:if(0===l)break t;i[a++]=r.length,l--,r.mode=ke;break;case Me:if(r.wrap){for(;h<32;){if(0===s)break t;s--,u|=n[o++]<<h,h+=8}if(f-=l,t.total_out+=f,r.total+=f,4&r.wrap&&f&&(t.adler=r.check=r.flags?V(r.check,i,f,a-f):B(r.check,i,f,a-f)),f=l,4&r.wrap&&(r.flags?u:De(u))!==r.check){t.msg="incorrect data check",r.mode=Fe;break}u=0,h=0}r.mode=16207;case 16207:if(r.wrap&&r.flags){for(;h<32;){if(0===s)break t;s--,u+=n[o++]<<h,h+=8}if(4&r.wrap&&u!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=Fe;break}u=0,h=0}r.mode=16208;case 16208:E=we;break t;
vendor: 3,827 bytes, line 8
8case Fe:E=Ee;break t;case 16210:return Ae;default:return be}return t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=u,r.bits=h,(r.wsize||f!==t.avail_out&&r.mode<Fe&&(r.mode<Me||e!==_e))&&He(t,t.output,t.next_out,f-t.avail_out),c-=t.avail_in,f-=t.avail_out,t.total_in+=c,t.total_out+=f,r.total+=f,4&r.wrap&&f&&(t.adler=r.check=r.flags?V(r.check,i,f,t.next_out-f):B(r.check,i,f,t.next_out-f)),t.data_type=r.bits+(r.last?64:0)+(r.mode===Ie?128:0)+(r.mode===Le||r.mode===Re?256:0),(0===c&&0===f||e===_e)&&E===ve&&(E=Se),E},inflateEnd:t=>{if(Ue(t))return be;let e=t.state;return e.window&&(e.window=null),t.state=null,ve},inflateGetHeader:(t,e)=>{if(Ue(t))return be;const r=t.state;return 2&r.wrap?(r.head=e,e.done=!1,ve):be},inflateSetDictionary:(t,e)=>{const r=e.length;let n,i,o;return Ue(t)?be:(n=t.state,0!==n.wrap&&n.mode!==Pe?be:n.mode===Pe&&(i=1,i=B(i,e,r,0),i!==n.check)?Ee:(o=He(t,e,r,r),o?(n.mode=16210,Ae):(n.havedict=1,ve)))},inflateInfo:"pako inflate (from Nodeca project)"};var Ze=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const qe=Object.prototype.toString,{Z_NO_FLUSH:$e,Z_FINISH:Je,Z_OK:Qe,Z_STREAM_END:tr,Z_NEED_DICT:er,Z_STREAM_ERROR:rr,Z_DATA_ERROR:nr,Z_MEM_ERROR:ir}=K;function or(t){this.options=Xt.assign({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Yt,this.strm.avail_out=0;let r=Ye.inflateInit2(this.strm,e.windowBits);if(r!==Qe)throw new Error(X[r]);if(this.header=new Ze,Ye.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Ht.string2buf(e.dictionary):"[object ArrayBuffer]"===qe.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=Ye.inflateSetDictionary(this.strm,e.dictionary),r!==Qe)))throw new Error(X[r])}function ar(t,e){const r=new or(e);if(r.push(t),r.err)throw r.msg||X[r.err];return r.result}or.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(a=e===~~e?e:!0===e?Je:$e,"[object ArrayBuffer]"===qe.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){for(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),o=Ye.inflate(r,a),o===er&&i&&(o=Ye.inflateSetDictionary(r,i),o===Qe?o=Ye.inflate(r,a):o===nr&&(o=er));r.avail_in>0&&o===tr&&r.state.wrap>0&&0!==t[r.next_in];)Ye.inflateReset(r),o=Ye.inflate(r,a);switch(o){case rr:case nr:case er:case ir:return this.onEnd(o),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(0===r.avail_out||o===tr))if("string"===this.options.to){let t=Ht.utf8border(r.output,r.next_out),e=r.next_out-t,i=Ht.buf2string(r.output,t);r.next_out=e,r.avail_out=n-e,e&&r.output.set(r.output.subarray(t,t+e),0),this.onData(i)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(o!==Qe||0!==s){if(o===tr)return o=Ye.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(0===r.avail_in)break}}return!0},or.prototype.onData=function(t){this.chunks.push(t)},or.prototype.onEnd=function(t){t===Qe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Xt.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var sr={Inflate:or,inflate:ar,inflateRaw:function(t,e){return(e=e||{}).raw=!0,ar(t,e)},ungzip:ar,constants:K};const{Deflate:lr,deflate:ur,deflateRaw:hr,gzip:cr}=se,{Inflate:fr,inflate:pr,inflateRaw:dr,ungzip:gr}=sr;var _r=pr}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.